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CAACR,OAAO,CAAC;IAC9C,CAAC,MAAM;MACHH,KAAK,CAACK,SAAS,CAACG,IAAI,CAACG,YAAY,CAACE,IAAI,CAAC,IAAI,CAAC,CAACA,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5D;EACJ,CAAC,MAAM;IACHb,KAAK,CAACK,SAAS,CAACG,IAAI,CAACM,UAAU,CAAC;EACpC;AACJ,CAAC;AAEDd,KAAK,CAACU,qBAAqB,GAAG,UAACD,MAAM,EAAK;EACtC,IAAIN,OAAO,GAAG,EAAE;EAEhB/D,MAAM,CAAC2E,MAAM,CAACN,MAAM,CAAC,CAACO,OAAO,CAAC,UAACC,IAAI,EAAK;IACpC,IAAId,OAAO,KAAK,EAAE,EAAE;MAChBA,OAAO,IAAI,IAAI;IACnB;IACAA,OAAO,IAAIc,IAAI;EACnB,CAAC,CAAC;EAEFjB,KAAK,CAACK,SAAS,CAACF,OAAO,CAAC;AAC5B,CAAC,C","sources":["webpack:///./platform/core/base/resources/js/base/toast.js","webpack:///webpack/bootstrap","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///./platform/packages/theme/resources/js/toast.js"],"sourcesContent":["/**\n * Options used for Toastify\n * @typedef {Object} ToastifyConfigurationObject\n * @property {string} text - Message to be displayed in the toast\n * @property {Element} node - Provide a node to be mounted inside the toast. node takes higher precedence over text\n * @property {number} duration - Duration for which the toast should be displayed. -1 for permanent toast\n * @property {string|Element} selector - CSS ID Selector on which the toast should be added\n * @property {boolean} close - To show the close icon or not\n * @property {string} gravity - To show the toast from top or bottom\n * @property {string} position - To show the toast on left or right\n * @property {string} className - Ability to provide custom class name for further customization\n * @property {boolean} stopOnFocus - To stop timer when hovered over the toast (Only if duration is set)\n * @property {Function} callback - Invoked when the toast is dismissed\n * @property {Function} onClick - Invoked when the toast is clicked\n * @property {Object} offset - Ability to add some offset to axis\n * @property {boolean} escapeMarkup - Toggle the default behavior of escaping HTML markup\n * @property {string} ariaLive - Use the HTML DOM style property to add styles to toast\n * @property {Object} style - Use the HTML DOM style property to add styles to toast\n * @property {string} icon - Icon to be shown before text\n */\n\nclass Toastify {\n defaults = {\n oldestFirst: true,\n text: 'Toastify is awesome!',\n node: undefined,\n duration: 3000,\n selector: undefined,\n callback: function () {},\n close: false,\n gravity: 'toastify-top',\n position: '',\n className: '',\n stopOnFocus: true,\n onClick: function () {},\n offset: { x: 0, y: 0 },\n escapeMarkup: true,\n ariaLive: 'polite',\n style: { background: '' },\n }\n\n constructor(options) {\n /**\n * The configuration object to configure Toastify\n * @type {ToastifyConfigurationObject}\n * @public\n */\n this.options = {}\n\n /**\n * The element that is the Toast\n * @type {Element}\n * @public\n */\n this.toastElement = null\n\n /**\n * The root element that contains all the toasts\n * @type {Element}\n * @private\n */\n this._rootElement = document.body\n\n this._init(options)\n }\n\n /**\n * Display the toast\n * @public\n */\n showToast() {\n this.toastElement = this._buildToast()\n\n if (typeof this.options.selector === 'string') {\n this._rootElement = document.getElementById(this.options.selector)\n } else if (this.options.selector instanceof HTMLElement || this.options.selector instanceof ShadowRoot) {\n this._rootElement = this.options.selector\n } else {\n this._rootElement = document.body\n }\n\n if (!this._rootElement) {\n throw 'Root element is not defined'\n }\n\n this._rootElement.insertBefore(this.toastElement, this._rootElement.firstChild)\n\n this._reposition()\n\n if (this.options.duration > 0) {\n this.toastElement.timeOutValue = window.setTimeout(() => {\n this._removeElement(this.toastElement)\n }, this.options.duration)\n }\n\n return this\n }\n\n /**\n * Hide the toast\n * @public\n */\n hideToast() {\n if (this.toastElement.timeOutValue) {\n clearTimeout(this.toastElement.timeOutValue)\n }\n this._removeElement(this.toastElement)\n }\n\n /**\n * Init the Toastify class\n * @param {ToastifyConfigurationObject} options - The configuration object to configure Toastify\n * @param {string} [options.text=Hi there!] - Message to be displayed in the toast\n * @param {Element} [options.node] - Provide a node to be mounted inside the toast. node takes higher precedence over text\n * @param {number} [options.duration=3000] - Duration for which the toast should be displayed. -1 for permanent toast\n * @param {string} [options.selector] - CSS Selector on which the toast should be added\n * @param {boolean} [options.close=false] - To show the close icon or not\n * @param {string} [options.gravity=toastify-top] - To show the toast from top or bottom\n * @param {string} [options.position=right] - To show the toast on left or right\n * @param {string} [options.className] - Ability to provide custom class name for further customization\n * @param {boolean} [options.stopOnFocus] - To stop timer when hovered over the toast (Only if duration is set)\n * @param {Function} [options.callback] - Invoked when the toast is dismissed\n * @param {Function} [options.onClick] - Invoked when the toast is clicked\n * @param {Object} [options.offset] - Ability to add some offset to axis\n * @param {boolean} [options.escapeMarkup=true] - Toggle the default behavior of escaping HTML markup\n * @param {string} [options.ariaLive] - Announce the toast to screen readers\n * @param {Object} [options.style] - Use the HTML DOM style property to add styles to toast\n * @private\n */\n _init(options) {\n this.options = Object.assign(this.defaults, options)\n\n this.toastElement = null\n\n this.options.gravity = options.gravity === 'bottom' ? 'toastify-bottom' : 'toastify-top'\n\n this.options.stopOnFocus = options.stopOnFocus === undefined ? true : options.stopOnFocus\n }\n\n /**\n * Build the Toastify element\n * @returns {Element}\n * @private\n */\n _buildToast() {\n if (!this.options) {\n throw 'Toastify is not initialized'\n }\n\n let divElement = document.createElement('div')\n divElement.className = `toastify on ${this.options.className} pe-5`\n\n divElement.className += ` toastify-${this.options.position}`\n\n divElement.className += ` ${this.options.gravity}`\n\n for (const property in this.options.style) {\n divElement.style[property] = this.options.style[property]\n }\n\n if (this.options.ariaLive) {\n divElement.setAttribute('aria-live', this.options.ariaLive)\n }\n\n if (this.options.icon !== '') {\n let iconElement = document.createElement('div')\n iconElement.className = 'toastify-icon'\n iconElement.innerHTML = this.options.icon\n\n divElement.appendChild(iconElement)\n }\n\n const textElement = document.createElement('span')\n textElement.className = 'toastify-text'\n\n if (this.options.node && this.options.node.nodeType === Node.ELEMENT_NODE) {\n textElement.appendChild(this.options.node)\n } else {\n if (this.options.escapeMarkup) {\n textElement.innerText = this.options.text\n } else {\n textElement.innerHTML = this.options.text\n }\n }\n\n divElement.appendChild(textElement)\n\n if (this.options.close === true) {\n let closeElement = document.createElement('button')\n closeElement.type = 'button'\n closeElement.setAttribute('aria-label', 'Close')\n closeElement.className = 'toast-close'\n closeElement.style.cssText = 'position: absolute; top: 8px; inset-inline-end: 8px;'\n closeElement.innerHTML = `\n \n \n \n `\n\n closeElement.addEventListener('click', (event) => {\n event.stopPropagation()\n this._removeElement(this.toastElement)\n window.clearTimeout(this.toastElement.timeOutValue)\n })\n\n //Calculating screen width\n const width = window.innerWidth > 0 ? window.innerWidth : screen.width\n\n if (this.options.position === 'left' && width > 360) {\n divElement.insertAdjacentElement('afterbegin', closeElement)\n } else {\n divElement.appendChild(closeElement)\n }\n }\n\n if (this.options.stopOnFocus && this.options.duration > 0) {\n divElement.addEventListener('mouseover', (event) => {\n window.clearTimeout(divElement.timeOutValue)\n })\n\n divElement.addEventListener('mouseleave', () => {\n divElement.timeOutValue = window.setTimeout(() => {\n this._removeElement(divElement)\n }, this.options.duration)\n })\n }\n\n if (typeof this.options.onClick === 'function') {\n divElement.addEventListener('click', (event) => {\n event.stopPropagation()\n this.options.onClick()\n })\n }\n\n if (typeof this.options.offset === 'object') {\n const x = this._getAxisOffsetAValue('x', this.options)\n const y = this._getAxisOffsetAValue('y', this.options)\n\n const xOffset = this.options.position === 'left' ? x : `-${x}`\n const yOffset = this.options.gravity === 'toastify-top' ? y : `-${y}`\n\n divElement.style.transform = `translate(${xOffset},${yOffset})`\n }\n\n return divElement\n }\n\n /**\n * Remove the toast from the DOM\n * @param {Element} toastElement\n */\n _removeElement(toastElement) {\n toastElement.className = toastElement.className.replace(' on', '')\n\n window.setTimeout(() => {\n if (this.options.node && this.options.node.parentNode) {\n this.options.node.parentNode.removeChild(this.options.node)\n }\n\n if (toastElement.parentNode) {\n toastElement.parentNode.removeChild(toastElement)\n }\n\n this.options.callback.call(toastElement)\n\n this._reposition()\n }, 400)\n }\n\n /**\n * Position the toast on the DOM\n * @private\n */\n _reposition() {\n let topLeftOffsetSize = {\n top: 15,\n bottom: 15,\n }\n let topRightOffsetSize = {\n top: 15,\n bottom: 15,\n }\n let offsetSize = {\n top: 15,\n bottom: 15,\n }\n\n let allToasts = this._rootElement.querySelectorAll('.toastify')\n\n let classUsed\n\n for (let i = 0; i < allToasts.length; i++) {\n if (allToasts[i].classList.contains('toastify-top') === true) {\n classUsed = 'toastify-top'\n } else {\n classUsed = 'toastify-bottom'\n }\n\n let height = allToasts[i].offsetHeight\n classUsed = classUsed.substr(9, classUsed.length - 1)\n\n let offset = 15\n\n let width = window.innerWidth > 0 ? window.innerWidth : screen.width\n\n if (width <= 360) {\n allToasts[i].style[classUsed] = `${offsetSize[classUsed]}px`\n\n offsetSize[classUsed] += height + offset\n } else {\n if (allToasts[i].classList.contains('toastify-left') === true) {\n allToasts[i].style[classUsed] = `${topLeftOffsetSize[classUsed]}px`\n\n topLeftOffsetSize[classUsed] += height + offset\n } else {\n allToasts[i].style[classUsed] = `${topRightOffsetSize[classUsed]}px`\n\n topRightOffsetSize[classUsed] += height + offset\n }\n }\n }\n }\n\n /**\n * Helper function to get offset\n * @param {string} axis - 'x' or 'y'\n * @param {ToastifyConfigurationObject} options - The options object containing the offset object\n */\n _getAxisOffsetAValue(axis, options) {\n if (options.offset[axis]) {\n if (isNaN(options.offset[axis])) {\n return options.offset[axis]\n } else {\n return `${options.offset[axis]}px`\n }\n }\n\n return '0px'\n }\n}\n\nfunction injectCSS() {\n const element = document.createElement('style')\n\n element.textContent = `\n .toastify {\n padding: 0.75rem 2rem 0.75rem 0.75rem;\n color: #ffffff;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n box-shadow:\n 0 3px 6px -1px rgba(0, 0, 0, 0.12),\n 0 10px 36px -4px rgba(77, 96, 232, 0.3);\n background: -webkit-linear-gradient(315deg, #73a5ff, #5477f5);\n background: linear-gradient(135deg, #73a5ff, #5477f5);\n position: fixed;\n opacity: 0;\n transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);\n border-radius: 2px;\n cursor: pointer;\n text-decoration: none;\n z-index: 999999;\n width: 25rem;\n max-width: calc(100% - 30px);\n }\n\n .toastify.on {\n opacity: 1;\n }\n\n .toastify-icon {\n width: 1.5rem;\n height: 1.5rem;\n }\n\n .toast-close {\n background: transparent;\n border: 0;\n color: white;\n cursor: pointer;\n font-family: inherit;\n font-size: 1em;\n opacity: 0.4;\n padding: 0 5px;\n position: absolute;\n top: 0.25rem;\n inset-inline-end: 0.25rem;\n }\n\n .toast-close svg {\n width: 1em;\n height: 1em;\n }\n\n .toastify-text a {\n text-decoration: underline;\n color: #fff;\n }\n\n .toastify-right {\n inset-inline-end: 15px;\n }\n\n .toastify-left {\n inset-inline-start: 15px;\n }\n\n .toastify-top {\n top: -150px;\n }\n\n .toastify-bottom {\n bottom: -150px;\n }\n\n .toastify-rounded {\n border-radius: 25px;\n }\n\n .toastify-center {\n margin-inline-start: auto;\n margin-inline-end: auto;\n inset-inline-start: 0;\n inset-inline-end: 0;\n max-width: fit-content;\n max-width: -moz-fit-content;\n }\n\n @media only screen and (max-width: 360px) {\n .toastify-right,\n .toastify-left {\n margin-inline-start: auto;\n margin-inline-end: auto;\n inset-inline-start: 0;\n inset-inline-end: 0;\n max-width: fit-content;\n }\n }\n `\n\n document.head.appendChild(element)\n}\n\ninjectCSS()\n\nfunction StartToastifyInstance(options) {\n return new Toastify(options)\n}\n\nexport default StartToastifyInstance\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import Toastify from '../../../../core/base/resources/js/base/toast'\n\nconst Theme = Theme || {}\nwindow.Theme = Theme\n\nTheme.showNotice = function (messageType, message) {\n let color = '#fff'\n let icon = ''\n\n switch (messageType) {\n case 'success':\n color = '#51a351'\n icon =\n ''\n break\n case 'danger':\n color = '#bd362f'\n icon =\n ''\n break\n case 'warning':\n color = '#f89406'\n icon =\n ''\n break\n case 'info':\n color = '#2f96b4'\n icon =\n ''\n break\n }\n\n Toastify({\n text: message,\n icon: icon,\n duration: 5000,\n close: true,\n gravity: 'bottom',\n position: 'right',\n stopOnFocus: true,\n style: {\n background: color,\n },\n escapeMarkup: false,\n }).showToast()\n}\n\nTheme.showError = function (message) {\n this.showNotice('danger', message)\n}\n\nTheme.showSuccess = function (message) {\n this.showNotice('success', message)\n}\n\nTheme.handleError = (data) => {\n if (typeof data.errors !== 'undefined' && data.errors.length) {\n Theme.handleValidationError(data.errors)\n } else if (typeof data.responseJSON !== 'undefined') {\n if (typeof data.responseJSON.errors !== 'undefined') {\n if (data.status === 422) {\n Theme.handleValidationError(data.responseJSON.errors)\n }\n } else if (typeof data.responseJSON.message !== 'undefined') {\n Theme.showError(data.responseJSON.message)\n } else {\n Theme.showError(data.responseJSON.join(', ').join(', '))\n }\n } else {\n Theme.showError(data.statusText)\n }\n}\n\nTheme.handleValidationError = (errors) => {\n let message = ''\n\n Object.values(errors).forEach((item) => {\n if (message !== '') {\n message += '\\n'\n }\n message += item\n })\n\n Theme.showError(message)\n}\n"],"names":["Toastify","options","_classCallCheck","_defineProperty","oldestFirst","text","node","undefined","duration","selector","callback","close","gravity","position","className","stopOnFocus","onClick","offset","x","y","escapeMarkup","ariaLive","style","background","toastElement","_rootElement","document","body","_init","_createClass","key","value","showToast","_this","_buildToast","getElementById","HTMLElement","ShadowRoot","insertBefore","firstChild","_reposition","timeOutValue","window","setTimeout","_removeElement","hideToast","clearTimeout","Object","assign","defaults","_this2","divElement","createElement","concat","property","setAttribute","icon","iconElement","innerHTML","appendChild","textElement","nodeType","Node","ELEMENT_NODE","innerText","closeElement","type","cssText","addEventListener","event","stopPropagation","width","innerWidth","screen","insertAdjacentElement","_typeof","_getAxisOffsetAValue","xOffset","yOffset","transform","_this3","replace","parentNode","removeChild","call","topLeftOffsetSize","top","bottom","topRightOffsetSize","offsetSize","allToasts","querySelectorAll","classUsed","i","length","classList","contains","height","offsetHeight","substr","axis","isNaN","injectCSS","element","textContent","head","StartToastifyInstance","Theme","showNotice","messageType","message","color","showError","showSuccess","handleError","data","errors","handleValidationError","responseJSON","status","join","statusText","values","forEach","item"],"sourceRoot":""}