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oB,KAAY2F,EACZ5F,EAAoByB,EAAEmE,EAAa3F,KACrCD,EAAoBt1B,EAAEu1B,GAAY2F,EAAY3F,IAGhD,GAAG4F,EAAS,IAAI18B,EAAS08B,EAAQ7F,EAClC,CAEA,IADG2F,GAA4BA,EAA2B/8B,GACrDoD,EAAI00B,EAASv1B,OAAQa,IACzB41B,EAAUlB,EAAS10B,GAChBg0B,EAAoByB,EAAE4D,EAAiBzD,IAAYyD,EAAgBzD,IACrEyD,EAAgBzD,GAAS,KAE1ByD,EAAgBzD,GAAW,EAE5B,OAAO5B,EAAoBS,EAAEt3B,EAC9B,EAEI48B,EAAqBC,KAAK,4BAA8BA,KAAK,6BAA+B,GAChGD,EAAmB38B,QAAQs8B,EAAqBjC,KAAK,KAAM,IAC3DsC,EAAmBv8B,KAAOk8B,EAAqBjC,KAAK,KAAMsC,EAAmBv8B,KAAKi6B,KAAKsC,G,ICpFvF,IAAIE,EAAsBjG,EAAoBS,OAAEjwB,EAAW,CAAC,MAAM,WAAa,OAAOwvB,EAAoB,MAAQ,IAClHiG,EAAsBjG,EAAoBS,EAAEwF,E","sources":["webpack://smeta-expert/./src/assets/ts/_utils/_ElementStyleUtil.ts","webpack://smeta-expert/./src/assets/ts/_utils/_DataUtil.ts","webpack://smeta-expert/./src/assets/ts/_utils/_TypesHelpers.ts","webpack://smeta-expert/./src/assets/ts/_utils/_DOMEventHandlerUtil.ts","webpack://smeta-expert/./src/assets/ts/_utils/ElementAnimateUtil.ts","webpack://smeta-expert/./src/assets/ts/_utils/DomHelpers.ts","webpack://smeta-expert/./src/assets/ts/_utils/EventHandlerUtil.ts","webpack://smeta-expert/./src/assets/ts/components/_DrawerComponent.ts","webpack://smeta-expert/./src/assets/ts/components/_ScrollTopComponent.ts","webpack://smeta-expert/./src/assets/ts/components/_StepperComponent.ts","webpack://smeta-expert/./src/assets/ts/components/_CookieComponent.ts","webpack://smeta-expert/./src/assets/ts/components/_ScrollComponent.ts","webpack://smeta-expert/./src/assets/ts/components/_StickyComponent.ts","webpack://smeta-expert/./src/assets/ts/components/_ToggleComponent.ts","webpack://smeta-expert/./src/assets/ts/components/_PasswordMeterComponent.ts","webpack://smeta-expert/./src/assets/ts/components/_SwapperComponent.ts","webpack://smeta-expert/./src/assets/ts/components/MenuComponent.ts","webpack://smeta-expert/./src/core/plugins/keenthemes.ts","webpack://smeta-expert/./src/core/services/ApiService.ts","webpack://smeta-expert/./src/core/services/AuthService.ts","webpack://smeta-expert/./src/core/services/HTTPService.ts","webpack://smeta-expert/./src/core/services/JwtService.ts","webpack://smeta-expert/./src/App.vue?0e02","webpack://smeta-expert/./src/App.vue","webpack://smeta-expert/./src/App.vue?7ccd","webpack://smeta-expert/./src/core/plugins/i18n.ts","webpack://smeta-expert/./src/core/plugins/apexcharts.ts","webpack://smeta-expert/./src/core/plugins/inline-svg.ts","webpack://smeta-expert/./src/core/plugins/vee-validate.ts","webpack://smeta-expert/./src/locales/element-plus/ru.ts","webpack://smeta-expert/./src/main.ts","webpack://smeta-expert/./src/router/index.ts","webpack://smeta-expert/./src/store/enums/StoreEnums.ts","webpack://smeta-expert/./src/store/modules/BodyModule.ts","webpack://smeta-expert/./src/store/modules/BreadcrumbsModule.ts","webpack://smeta-expert/./src/core/config/DefaultLayoutConfig.ts","webpack://smeta-expert/./src/store/modules/ConfigModule.ts","webpack://smeta-expert/./src/store/index.ts","webpack://smeta-expert/./src/store/modules/AuthModule.ts","webpack://smeta-expert/webpack/bootstrap","webpack://smeta-expert/webpack/runtime/amd options","webpack://smeta-expert/webpack/runtime/chunk loaded","webpack://smeta-expert/webpack/runtime/compat get default export","webpack://smeta-expert/webpack/runtime/define property getters","webpack://smeta-expert/webpack/runtime/ensure chunk","webpack://smeta-expert/webpack/runtime/get javascript chunk filename","webpack://smeta-expert/webpack/runtime/get mini-css chunk filename","webpack://smeta-expert/webpack/runtime/global","webpack://smeta-expert/webpack/runtime/harmony module decorator","webpack://smeta-expert/webpack/runtime/hasOwnProperty shorthand","webpack://smeta-expert/webpack/runtime/load script","webpack://smeta-expert/webpack/runtime/make namespace object","webpack://smeta-expert/webpack/runtime/node module decorator","webpack://smeta-expert/webpack/runtime/publicPath","webpack://smeta-expert/webpack/runtime/css loading","webpack://smeta-expert/webpack/runtime/jsonp chunk loading","webpack://smeta-expert/webpack/startup"],"sourcesContent":["export class ElementStyleUtil {\n public static set(element: HTMLElement, property: string, value?: any, important?: boolean) {\n if (important) {\n element.style.setProperty(property, value, 'important')\n } else {\n element.style.setProperty(property, value)\n }\n }\n\n public static get(element: HTMLElement, attributeName: string) {\n return element.style.getPropertyValue(attributeName)\n }\n\n public static remove(element: HTMLElement, attibuteName: string) {\n element.style.removeProperty(attibuteName)\n }\n}\n","export class DataUtil {\n static store: Map> = new Map()\n\n public static set(instance: HTMLElement | undefined, key: string, data: any): void {\n if (!instance) {\n return\n }\n\n const instanceData = DataUtil.store.get(instance)\n if (!instanceData) {\n const newMap = new Map().set(key, data)\n DataUtil.store.set(instance, newMap)\n return\n }\n\n instanceData.set(key, data)\n }\n\n public static get(instance: HTMLElement, key: string): any | undefined {\n const instanceData = DataUtil.store.get(instance)\n if (!instanceData) {\n return\n }\n\n return instanceData.get(key)\n }\n\n public static remove(instance: HTMLElement, key: string): void {\n const instanceData = DataUtil.store.get(instance)\n if (!instanceData) {\n return\n }\n\n instanceData.delete(key)\n }\n\n public static has(instance: HTMLElement, key: string): boolean {\n const instanceData = DataUtil.store.get(instance)\n if (instanceData) {\n return instanceData.has(key)\n }\n\n return false\n }\n\n public static getAllInstancesByKey(key: string) {\n const result: any[] = []\n DataUtil.store.forEach((val) => {\n val.forEach((v, k) => {\n if (k === key) {\n result.push(v)\n }\n })\n })\n return result\n }\n}\n","function getObjectPropertyValueByKey(obj: any, key: string): any | undefined {\n const map = new Map(Object.entries(obj))\n if (obj.hasOwnProperty(key) && map) {\n return map.get(key)\n }\n}\n\n/**\n * Generates unique ID for give prefix.\n * @param {string} prefix Prefix for generated ID\n * @returns {boolean}\n */\nfunction getUniqueIdWithPrefix(prefix: string | undefined): string {\n const result = Math.floor(Math.random() * new Date().getTime()).toString()\n if (!prefix) {\n return result\n }\n\n return `${prefix}${result}`\n}\n\n/* eslint-disable no-useless-escape */\nfunction stringSnakeToCamel(str: string): string {\n return str.replace(/(\\-\\w)/g, function (m) {\n return m[1].toUpperCase()\n })\n}\n\nfunction toJSON(value: string | JSON): JSON | undefined {\n if (typeof value !== 'string') {\n return value\n }\n\n if (!value) {\n return undefined\n }\n\n // (\"'\" => \"\\\"\");\n const result = value\n .toString()\n .split('')\n .map((el) => (el !== \"'\" ? el : '\"'))\n .join('')\n var jsonStr = result.replace(/(\\w+:)|(\\w+ :)/g, function (matched) {\n return '\"' + matched.substring(0, matched.length - 1) + '\":'\n })\n try {\n return JSON.parse(jsonStr)\n } catch {\n return undefined\n }\n}\n\nexport {getObjectPropertyValueByKey, getUniqueIdWithPrefix, stringSnakeToCamel, toJSON}\n","import {getUniqueIdWithPrefix} from './_TypesHelpers'\n\nexport class DOMEventHandlerUtil {\n public static store = new Map()\n\n public static on(\n element: HTMLElement,\n selector: string,\n eventName: string,\n callBack: any\n ): string {\n const eventId = getUniqueIdWithPrefix('DOMEvent')\n DOMEventHandlerUtil.store.set(eventId, (e: Event) => {\n const targets = element.querySelectorAll(selector)\n let target: HTMLElement | null = e.target as HTMLElement\n while (target && target !== element) {\n for (let i = 0; i < targets.length; i++) {\n if (target === targets[i]) {\n callBack.call(target, e)\n }\n }\n\n if (target.parentElement) {\n target = target.parentElement\n } else {\n target = null\n }\n }\n })\n element.addEventListener(eventName, DOMEventHandlerUtil.store.get(eventId))\n return eventId\n }\n\n public static off(element: HTMLElement, eventName: string, eventId: string): void {\n const funcFromStore = DOMEventHandlerUtil.store.get(eventId)\n if (!funcFromStore) {\n return\n }\n\n element.removeEventListener(eventName, funcFromStore)\n DOMEventHandlerUtil.store.delete(eventId)\n }\n\n public static one(element: HTMLElement, eventName: string, callBack: Function): void {\n element.addEventListener(eventName, function calee(e) {\n // remove event\n if (e.target && e.target.removeEventListener) {\n e.target.removeEventListener(e.type, calee)\n }\n\n if (element && e && e.currentTarget) {\n // if (element && element.removeEventListener && e && e.currentTarget) {\n e.currentTarget.removeEventListener(e.type, calee)\n }\n\n // call hander\n return callBack(e)\n })\n }\n}\n","import {DOMEventHandlerUtil} from './_DOMEventHandlerUtil'\nimport {ElementStyleUtil} from './_ElementStyleUtil'\nimport {getElementOffset} from './DomHelpers'\n\nexport class ElementAnimateUtil {\n public static animate(\n from: number,\n to: number,\n duration: number,\n update: Function,\n complete?: Function\n ) {\n /**\n * TinyAnimate.easings\n * Adapted from jQuery Easing\n */\n const easings = {\n linear: function (t: number, b: number, c: number, d: number) {\n return (c * t) / d + b\n },\n }\n\n // Create mock done() function if necessary\n if (!complete) {\n complete = function () {}\n }\n\n // Animation loop\n // let canceled = false;\n const change = to - from\n\n function loop(timestamp: number) {\n var time = (timestamp || +new Date()) - start\n\n if (time >= 0) {\n update(easings.linear(time, from, change, duration))\n }\n if (time >= 0 && time >= duration) {\n update(to)\n if (complete) {\n complete()\n }\n } else {\n window.requestAnimationFrame(loop)\n }\n }\n\n update(from)\n\n // Start animation loop\n const start =\n window.performance && window.performance.now ? window.performance.now() : +new Date()\n\n window.requestAnimationFrame(loop)\n }\n\n public static animateClass(\n element: HTMLElement,\n animationName: string,\n callBack?: Function\n ): void {\n const animateClasses = animationName.split(' ')\n animateClasses.forEach((cssClass) => element.classList.add(cssClass))\n DOMEventHandlerUtil.one(element, 'animationend', function () {\n animateClasses.forEach((cssClass) => element.classList.remove(cssClass))\n })\n\n if (callBack) {\n DOMEventHandlerUtil.one(element, 'animationend', callBack)\n }\n }\n\n public static transitionEnd(element: HTMLElement, callBack: Function) {\n DOMEventHandlerUtil.one(element, 'transitionend', callBack)\n }\n\n public static animationEnd(element: HTMLElement, callBack: Function) {\n DOMEventHandlerUtil.one(element, 'animationend', callBack)\n }\n\n public static animationDelay(element: HTMLElement, value: string) {\n ElementStyleUtil.set(element, 'animation-delay', value)\n }\n\n public static animationDuration(element: HTMLElement, value: string) {\n ElementStyleUtil.set(element, 'animation-duration', value)\n }\n\n public static scrollTo(element: HTMLElement | null, offset: number, duration: number = 500) {\n let targetPos = element ? getElementOffset(element).top : 0\n let scrollPos =\n window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0\n\n if (offset) {\n scrollPos += offset\n targetPos = targetPos - offset\n }\n\n const from = scrollPos\n const to = targetPos\n\n ElementAnimateUtil.animate(from, to, duration, function (value: number) {\n document.documentElement.scrollTop = value\n // document.body.parentNode.scrollTop = value;\n document.body.scrollTop = value\n }) //, easing, done\n }\n public static scrollTop(offset: number, duration: number) {\n ElementAnimateUtil.scrollTo(null, offset, duration)\n }\n}\n","import {OffsetModel} from './models/OffsetModel'\nimport {ViewPortModel} from './models/ViewPortModel'\nimport {ElementStyleUtil} from './_ElementStyleUtil'\nimport {DataUtil} from './_DataUtil'\nimport {ElementAnimateUtil} from './ElementAnimateUtil'\nimport {getObjectPropertyValueByKey, toJSON} from './_TypesHelpers'\n\nfunction getCSS(el: HTMLElement, styleProp: string) {\n const defaultView = (el.ownerDocument || document).defaultView\n\n if (!defaultView) {\n return ''\n }\n\n // sanitize property name to css notation\n // (hyphen separated words eg. font-Size)\n styleProp = styleProp.replace(/([A-Z])/g, '-$1').toLowerCase()\n\n return defaultView.getComputedStyle(el, null).getPropertyValue(styleProp)\n}\n\nfunction getCSSVariableValue(variableName: string) {\n let hex = getComputedStyle(document.documentElement).getPropertyValue(variableName)\n if (hex && hex.length > 0) {\n hex = hex.trim()\n }\n\n return hex\n}\n\nfunction getElementActualCss(el: HTMLElement, prop: any, cache: boolean) {\n let css = ''\n\n if (!el.getAttribute('kt-hidden-' + prop) || cache === false) {\n let value\n\n // the element is hidden so:\n // making the el block so we can meassure its height but still be hidden\n css = el.style.cssText\n el.style.cssText = 'position: absolute; visibility: hidden; display: block;'\n\n if (prop === 'width') {\n value = el.offsetWidth\n } else if (prop === 'height') {\n value = el.offsetHeight\n }\n\n el.style.cssText = css\n\n // store it in cache\n if (value !== undefined) {\n el.setAttribute('kt-hidden-' + prop, value.toString())\n return parseFloat(value.toString())\n }\n return 0\n } else {\n // store it in cache\n const attributeValue = el.getAttribute('kt-hidden-' + prop)\n if (attributeValue || attributeValue === '0') {\n return parseFloat(attributeValue)\n }\n }\n}\n\nfunction getElementActualHeight(el: HTMLElement) {\n return getElementActualCss(el, 'height', false)\n}\n\nfunction getElementActualWidth(el: HTMLElement, cache?: boolean) {\n return getElementActualCss(el, 'width', false)\n}\n\nfunction getElementIndex(element: HTMLElement) {\n if (element.parentNode) {\n const c = element.parentNode.children\n for (let i = 0; i < c.length; i++) {\n if (c[i] === element) return i\n }\n }\n return -1\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/API/Element/matches\nfunction getElementMatches(element: HTMLElement, selector: string) {\n const p = Element.prototype\n const f = p.matches || p.webkitMatchesSelector\n\n if (element && element.tagName) {\n return f.call(element, selector)\n } else {\n return false\n }\n}\n\nfunction getElementOffset(el: HTMLElement): OffsetModel {\n // Return zeros for disconnected and hidden (display: none) elements (gh-2310)\n // Support: IE <=11 only\n // Running getBoundingClientRect on a\n // disconnected node in IE throws an error\n if (!el.getClientRects().length) {\n return {top: 0, left: 0}\n }\n\n // Get document-relative position by adding viewport scroll to viewport-relative gBCR\n const rect = el.getBoundingClientRect()\n const win = el.ownerDocument.defaultView\n if (win) {\n return {\n top: rect.top + win.pageYOffset,\n left: rect.left + win.pageXOffset,\n }\n }\n\n return rect\n}\n\nfunction getElementParents(element: Element, selector: string) {\n // Element.matches() polyfill\n if (!Element.prototype.matches) {\n Element.prototype.matches = function (s) {\n const matches = (document || this.ownerDocument).querySelectorAll(s)\n let i = matches.length\n while (--i >= 0 && matches.item(i) !== this) {}\n return i > -1\n }\n }\n\n // Set up a parent array\n const parents:Array = []\n\n let el: Element | null = element\n\n // Push each parent element to the array\n for (; el && el !== document.body; el = el.parentElement) {\n if (selector) {\n if (el.matches(selector)) {\n parents.push(el)\n }\n continue\n }\n parents.push(el)\n }\n\n // Return our parent array\n return parents\n}\n\nfunction getHighestZindex(el: HTMLElement) {\n let bufferNode: Node | null = el as Node\n let buffer = el\n while (bufferNode && bufferNode !== document) {\n // Ignore z-index if position is set to a value where z-index is ignored by the browser\n // This makes behavior of this function consistent across browsers\n // WebKit always returns auto if the element is positioned\n const position = buffer.style.getPropertyValue('position')\n if (position === 'absolute' || position === 'relative' || position === 'fixed') {\n // IE returns 0 when zIndex is not specified\n // other browsers return a string\n // we ignore the case of nested elements with an explicit value of 0\n //
\n const value = parseInt(buffer.style.getPropertyValue('z-index'))\n if (!isNaN(value) && value !== 0) {\n return value\n }\n }\n\n bufferNode = bufferNode.parentNode\n buffer = bufferNode as HTMLElement\n }\n return null\n}\n\nfunction getScrollTop(): number {\n return (document.scrollingElement || document.documentElement).scrollTop\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth\nfunction getViewPort(): ViewPortModel {\n return {\n width: window.innerWidth,\n height: window.innerHeight,\n }\n}\n\nfunction insertAfterElement(el: HTMLElement, referenceNode: HTMLElement) {\n return referenceNode.parentNode?.insertBefore(el, referenceNode.nextSibling)\n}\n\nfunction isElementHasClasses(element: HTMLElement, classesStr: string): boolean {\n const classes = classesStr.split(' ')\n for (let i = 0; i < classes.length; i++) {\n if (!element.classList.contains(classes[i])) {\n return false\n }\n }\n\n return true\n}\n\nfunction isVisibleElement(element: HTMLElement): boolean {\n return !(element.offsetWidth === 0 && element.offsetHeight === 0)\n}\n\n// Throttle function: Input as function which needs to be throttled and delay is the time interval in milliseconds\nfunction throttle(timer: number | undefined, func: Function, delay?: number) {\n // If setTimeout is already scheduled, no need to do anything\n if (timer) {\n return\n }\n\n // Schedule a setTimeout after delay seconds\n timer = window.setTimeout(function () {\n func()\n\n // Once setTimeout function execution is finished, timerId = undefined so that in
\n // the next scroll event function execution can be scheduled by the setTimeout\n timer = undefined\n }, delay)\n}\n\nfunction getElementChildren(element: HTMLElement, selector: string): Array | null {\n if (!element || !element.childNodes) {\n return null\n }\n\n const result: Array = []\n for (let i = 0; i < element.childNodes.length; i++) {\n const child = element.childNodes[i]\n // child.nodeType == 1 => Element, Text, Comment, ProcessingInstruction, CDATASection, EntityReference\n if (child.nodeType === 1 && getElementMatches(child as HTMLElement, selector)) {\n result.push(child as HTMLElement)\n }\n }\n\n return result\n}\n\nfunction getElementChild(element: HTMLElement, selector: string): HTMLElement | null {\n const children = getElementChildren(element, selector)\n return children ? children[0] : null\n}\n\nfunction isMobileDevice(): boolean {\n let test = getViewPort().width < +getBreakpoint('lg') ? true : false\n\n if (test === false) {\n // For use within normal web clients\n test = navigator.userAgent.match(/iPad/i) != null\n }\n\n return test\n}\n\nfunction slide(el: HTMLElement, dir: string, speed: number, callback: any) {\n if (\n !el ||\n (dir === 'up' && isVisibleElement(el) === false) ||\n (dir === 'down' && isVisibleElement(el) === true)\n ) {\n return\n }\n\n speed = speed ? speed : 600\n let calcHeight = getElementActualHeight(el)\n let calcPaddingTop: number = 0\n let calcPaddingBottom: number = 0\n\n if (ElementStyleUtil.get(el, 'padding-top') && DataUtil.get(el, 'slide-padding-top') !== true) {\n DataUtil.set(el, 'slide-padding-top', ElementStyleUtil.get(el, 'padding-top'))\n }\n\n if (\n ElementStyleUtil.get(el, 'padding-bottom') &&\n DataUtil.has(el, 'slide-padding-bottom') !== true\n ) {\n DataUtil.set(el, 'slide-padding-bottom', ElementStyleUtil.get(el, 'padding-bottom'))\n }\n\n if (DataUtil.has(el, 'slide-padding-top')) {\n calcPaddingTop = parseInt(DataUtil.get(el, 'slide-padding-top'))\n }\n\n if (DataUtil.has(el, 'slide-padding-bottom')) {\n calcPaddingBottom = parseInt(DataUtil.get(el, 'slide-padding-bottom'))\n }\n\n if (dir === 'up') {\n // up\n el.style.cssText = 'display: block; overflow: hidden;'\n\n if (calcPaddingTop) {\n ElementAnimateUtil.animate(0, calcPaddingTop, speed, function (value: number) {\n el.style.paddingTop = calcPaddingTop - value + 'px'\n })\n }\n\n if (calcPaddingBottom) {\n ElementAnimateUtil.animate(0, calcPaddingBottom, speed, function (value: number) {\n el.style.paddingBottom = calcPaddingBottom - value + 'px'\n })\n }\n\n ElementAnimateUtil.animate(\n 0,\n calcHeight || 0,\n speed,\n function (value: number) {\n el.style.height = (calcHeight || 0) - value + 'px'\n },\n function () {\n el.style.height = ''\n el.style.display = 'none'\n\n if (typeof callback === 'function') {\n callback()\n }\n }\n )\n } else if (dir === 'down') {\n // down\n el.style.cssText = 'display: block; overflow: hidden;'\n\n if (calcPaddingTop) {\n ElementAnimateUtil.animate(\n 0,\n calcPaddingTop,\n speed,\n function (value: number) {\n //\n el.style.paddingTop = value + 'px'\n },\n function () {\n el.style.paddingTop = ''\n }\n )\n }\n\n if (calcPaddingBottom) {\n ElementAnimateUtil.animate(\n 0,\n calcPaddingBottom,\n speed,\n function (value: number) {\n el.style.paddingBottom = value + 'px'\n },\n function () {\n el.style.paddingBottom = ''\n }\n )\n }\n\n ElementAnimateUtil.animate(\n 0,\n calcHeight || 0,\n speed,\n function (value: number) {\n el.style.height = value + 'px'\n },\n function () {\n el.style.height = ''\n el.style.display = ''\n el.style.overflow = ''\n\n if (typeof callback === 'function') {\n callback()\n }\n }\n )\n }\n}\n\nfunction slideUp(el: HTMLElement, speed: number, callback: any) {\n slide(el, 'up', speed, callback)\n}\n\nfunction slideDown(el: HTMLElement, speed: number, callback: any) {\n slide(el, 'down', speed, callback)\n}\n\nfunction getBreakpoint(breakpoint: string) {\n let value: number | string = getCSSVariableValue('--bs-' + breakpoint)\n if (value) {\n value = parseInt(value.trim())\n }\n\n return value\n}\n\nfunction getAttributeValueByBreakpoint(incomingAttr: string): string | JSON {\n let value = toJSON(incomingAttr)\n if (typeof value !== 'object') {\n return incomingAttr\n }\n\n const width = getViewPort().width\n let resultKey\n let resultBreakpoint = -1\n let breakpoint\n\n for (let key in value) {\n if (key === 'default') {\n breakpoint = 0\n } else {\n breakpoint = getBreakpoint(key) ? +getBreakpoint(key) : parseInt(key)\n }\n\n if (breakpoint <= width && breakpoint > resultBreakpoint) {\n resultKey = key\n resultBreakpoint = breakpoint\n }\n }\n\n return resultKey ? getObjectPropertyValueByKey(value, resultKey) : value\n}\n\nfunction colorLighten(color: string, amount: number) {\n const addLight = (_color: string, _amount: number) => {\n const cc = parseInt(_color, 16) + _amount\n const cNum = cc > 255 ? 255 : cc\n const c = cNum.toString(16).length > 1 ? cNum.toString(16) : `0${cNum.toString(16)}`\n return c\n }\n\n color = color.indexOf('#') >= 0 ? color.substring(1, color.length) : color\n amount = parseInt(((255 * amount) / 100).toString())\n return (color = `#${addLight(color.substring(0, 2), amount)}${addLight(\n color.substring(2, 4),\n amount\n )}${addLight(color.substring(4, 6), amount)}`)\n}\n\nfunction colorDarken(color: string, amount: number) {\n const subtractLight = (_color: string, _amount: number) => {\n const cc = parseInt(color, 16) - amount\n const cNum = cc < 0 ? 0 : cc\n const c = cNum.toString(16).length > 1 ? cNum.toString(16) : `0${cNum.toString(16)}`\n return c\n }\n\n color = color.indexOf('#') >= 0 ? color.substring(1, color.length) : color\n amount = parseInt(((255 * amount) / 100).toString())\n\n return (color = `#${subtractLight(color.substring(0, 2), amount)}${subtractLight(\n color.substring(2, 4),\n amount\n )}${subtractLight(color.substring(4, 6), amount)}`)\n}\n\nexport {\n getBreakpoint,\n getCSS,\n getCSSVariableValue,\n getElementActualCss,\n getElementActualHeight,\n getElementActualWidth,\n getElementIndex,\n getElementMatches,\n getElementOffset,\n getElementParents,\n getHighestZindex,\n getScrollTop,\n getViewPort,\n insertAfterElement,\n isElementHasClasses,\n isVisibleElement,\n throttle,\n getElementChildren,\n getElementChild,\n isMobileDevice,\n slide,\n slideUp,\n slideDown,\n getAttributeValueByBreakpoint,\n colorLighten,\n colorDarken,\n}\n","import {DataUtil} from './_DataUtil'\nimport {getUniqueIdWithPrefix} from './_TypesHelpers'\n\nexport interface EventMeta {\n name: string\n callback: Function\n one: boolean\n fired: boolean\n}\n\nexport class EventHandlerUtil {\n static store: Map> = new Map()\n\n private static setEventMetasByName(name: string, metas: Map): void {\n EventHandlerUtil.store.set(name, metas)\n }\n\n private static getEventMetasByName(name: string): Map | undefined {\n return EventHandlerUtil.store.get(name)\n }\n\n private static setEventMetaByNameAndHandlerId(\n name: string,\n handlerId: string,\n meta: EventMeta\n ): void {\n let metas = EventHandlerUtil.getEventMetasByName(name)\n if (!metas) {\n metas = new Map()\n }\n\n metas.set(handlerId, meta)\n EventHandlerUtil.setEventMetasByName(name, metas)\n }\n\n private static getEventsMetaByHandlerId(name: string, handlerId: string): EventMeta | undefined {\n const metas = EventHandlerUtil.store.get(name)\n if (!metas) {\n return\n }\n\n return metas.get(handlerId)\n }\n\n private static setFiredByNameAndHandlerId(name: string, handerId: string, fired: boolean): void {\n const meta = EventHandlerUtil.getEventsMetaByHandlerId(name, handerId)\n if (!meta) {\n return\n }\n\n meta.fired = fired\n EventHandlerUtil.setEventMetaByNameAndHandlerId(name, handerId, meta)\n }\n\n private static addEvent(\n element: HTMLElement,\n name: string,\n callback: Function,\n one: boolean = false\n ) {\n const handlerId = getUniqueIdWithPrefix('event')\n DataUtil.set(element, name, handlerId)\n const meta: EventMeta = {\n name: name,\n callback: callback,\n one: one,\n fired: false,\n }\n\n EventHandlerUtil.setEventMetaByNameAndHandlerId(name, handlerId, meta)\n }\n\n private static removeEvent(element: HTMLElement, name: string) {\n const handlerId = DataUtil.get(element, name)\n if (!handlerId) {\n return\n }\n\n const metas = EventHandlerUtil.getEventMetasByName(name)\n if (!metas) {\n return\n }\n\n metas.delete(handlerId)\n EventHandlerUtil.setEventMetasByName(name, metas)\n }\n\n public static trigger(element: HTMLElement, name: string, e?: Event) {\n if (DataUtil.has(element, name)) {\n const handlerId = DataUtil.get(element, name)\n if (!handlerId) {\n return undefined\n }\n\n const handler = EventHandlerUtil.getEventsMetaByHandlerId(name, handlerId)\n if (handler) {\n if (handler.name === name) {\n if (handler.one === true) {\n if (handler.fired === false) {\n EventHandlerUtil.setFiredByNameAndHandlerId(name, handlerId, true)\n return handler.callback.call(this, e)\n }\n } else {\n return handler.callback.call(this, e)\n }\n }\n }\n }\n\n return null\n }\n\n public static on = function (element: HTMLElement, name: string, callBack: Function): void {\n EventHandlerUtil.addEvent(element, name, callBack, false)\n }\n\n public static one(element: HTMLElement, name: string, callBack: Function): void {\n EventHandlerUtil.addEvent(element, name, callBack, true)\n }\n\n public static off(element: HTMLElement, name: string): void {\n EventHandlerUtil.removeEvent(element, name)\n }\n}\n","import {\n EventHandlerUtil,\n getUniqueIdWithPrefix,\n getObjectPropertyValueByKey,\n stringSnakeToCamel,\n getAttributeValueByBreakpoint,\n throttle,\n getCSS,\n DOMEventHandlerUtil,\n ElementStyleUtil,\n} from '../_utils/index'\n\nexport class DrawerStore {\n static store: Map = new Map()\n\n public static set(instanceId: string, drawerComponentObj: DrawerComponent): void {\n if (DrawerStore.has(instanceId)) {\n return\n }\n\n DrawerStore.store.set(instanceId, drawerComponentObj);\n }\n\n public static get(instanceId: string): DrawerComponent | undefined {\n if (!DrawerStore.has(instanceId)) {\n return\n }\n return DrawerStore.store.get(instanceId);\n }\n\n public static remove(instanceId: string): void {\n if (!DrawerStore.has(instanceId)) {\n return\n }\n\n DrawerStore.store.delete(instanceId)\n }\n\n public static has(instanceId: string): boolean {\n return DrawerStore.store.has(instanceId);\n }\n\n public static getAllInstances() {\n return DrawerStore.store;\n }\n}\n\nexport interface DrawerOptions {\n overlay: boolean\n baseClass: string\n overlayClass: string\n direction: string\n}\n\nconst defaultDrawerOptions: DrawerOptions = {\n overlay: true,\n baseClass: 'drawer',\n overlayClass: 'drawer-overlay',\n direction: 'end',\n}\n\nclass DrawerComponent {\n element: HTMLElement\n overlayElement: HTMLElement | null = null\n toggleElement: HTMLElement | null = null\n options: DrawerOptions\n instanceUid: string\n name: string = ''\n shown: boolean = false\n lastWidth: number = 0\n closeElement: HTMLElement | null = null\n\n constructor(_element: HTMLElement, options: DrawerOptions) {\n this.element = _element\n this.options = Object.assign(defaultDrawerOptions, options)\n this.instanceUid = getUniqueIdWithPrefix('drawer')\n this.overlayElement = null\n this.name = this.element.getAttribute('data-kt-drawer-name') || ''\n this.shown = false\n this.toggleElement = null\n // Event Handlers\n this._handlers()\n // Update Instance\n this._update()\n // Bind Instance\n DrawerStore.set(this.element.id, this)\n }\n\n private _handlers = () => {\n const togglers = this._getOption('toggle') as string\n const closers = this._getOption('close') as string\n\n if (togglers !== null && togglers.length > 0) {\n DOMEventHandlerUtil.on(document.body, togglers, 'click', (e: Event) => {\n e.preventDefault()\n this.toggleElement = document.getElementById(togglers)\n this._toggle()\n })\n }\n\n if (closers !== null && closers.length > 0) {\n DOMEventHandlerUtil.on(document.body, closers, 'click', (e: Event) => {\n e.preventDefault()\n this.closeElement = document.getElementById(closers)\n\n this._hide()\n })\n }\n }\n\n private _update = () => {\n const width = String(this._getOption('width'))\n const direction = String(this._getOption('direction'))\n\n // Reset state\n const hasBaseClass = this.element.classList.contains(`${this.options.baseClass}-on`)\n const bodyCanvasAttr = String(document.body.getAttribute(`data-kt-drawer-${this.name}-`))\n\n if (hasBaseClass === true && bodyCanvasAttr === 'on') {\n this.shown = true\n } else {\n this.shown = false\n }\n\n // Activate/deactivate\n if (this._getOption('activate') === true) {\n this.element.classList.add(this.options.baseClass)\n this.element.classList.add(`${this.options.baseClass}-${direction}`)\n ElementStyleUtil.set(this.element, 'width', width, true)\n\n this.lastWidth = parseInt(width)\n } else {\n ElementStyleUtil.set(this.element, 'width', '')\n this.element.classList.remove(this.options.baseClass)\n this.element.classList.remove(`${this.options.baseClass}-${direction}`)\n this._hide()\n }\n }\n\n private _getOption = (name: string) => {\n const attr = this.element.getAttribute(`data-kt-drawer-${name}`)\n if (attr) {\n let value = getAttributeValueByBreakpoint(attr)\n if (value !== null && String(value) === 'true') {\n return true\n } else {\n if (value !== null && String(value) === 'false') {\n return false\n }\n }\n\n return value\n } else {\n const optionName = stringSnakeToCamel(name)\n const option = getObjectPropertyValueByKey(this.options, optionName)\n if (option) {\n return getAttributeValueByBreakpoint(option)\n } else {\n return null\n }\n }\n }\n\n private _toggle = () => {\n if (EventHandlerUtil.trigger(this.element, 'kt.drawer.toggle') === false) {\n return\n }\n\n if (this.shown) {\n this._hide()\n } else {\n this._show()\n }\n\n EventHandlerUtil.trigger(this.element, 'kt.drawer.toggled')\n }\n\n private _hide = () => {\n if (EventHandlerUtil.trigger(this.element, 'kt.drawer.hide') === false) {\n return\n }\n\n this.shown = false\n this._deleteOverlay()\n document.body.removeAttribute(`data-kt-drawer-${this.name}`)\n document.body.removeAttribute(`data-kt-drawer`)\n this.element.classList.remove(`${this.options.baseClass}-on`)\n if (this.toggleElement != null) {\n this.toggleElement.classList.remove('active')\n }\n\n EventHandlerUtil.trigger(this.element, 'kt.drawer.after.hidden')\n }\n\n private _show = () => {\n if (EventHandlerUtil.trigger(this.element, 'kt.drawer.show') === false) {\n return\n }\n\n this.shown = true\n this._createOverlay()\n document.body.setAttribute(`data-kt-drawer-${this.name}`, 'on')\n document.body.setAttribute('data-kt-drawer', 'on')\n this.element.classList.add(`${this.options.baseClass}-on`)\n if (this.toggleElement !== null) {\n this.toggleElement.classList.add('active')\n }\n\n EventHandlerUtil.trigger(this.element, 'kt.drawer.shown')\n }\n\n private _createOverlay = () => {\n if (this._getOption('overlay') === true) {\n this.overlayElement = document.createElement('DIV')\n const elementZIndex = getCSS(this.element, 'z-index')\n if (elementZIndex) {\n const overlayZindex = parseInt(elementZIndex) - 1\n ElementStyleUtil.set(this.overlayElement, 'z-index', overlayZindex) // update\n }\n document.body.append(this.overlayElement)\n const overlayClassOption = this._getOption('overlay-class')\n if (overlayClassOption) {\n this.overlayElement.classList.add(overlayClassOption.toString())\n }\n this.overlayElement.addEventListener('click', (e) => {\n e.preventDefault()\n this._hide()\n })\n }\n }\n\n private _deleteOverlay = () => {\n if (this.overlayElement !== null && this.overlayElement.parentNode) {\n this.overlayElement.parentNode.removeChild(this.overlayElement)\n }\n }\n\n private _getDirection = () => {\n return String(this._getOption('direction')) === 'left' ? 'left' : 'right'\n }\n\n private _getWidth = () => {\n let width = this._getOption('width')\n if (width && width === 'auto') {\n width = getCSS(this.element, 'width')\n }\n\n return width\n }\n\n ///////////////////////\n // ** Public API ** //\n ///////////////////////\n public toggle = () => {\n this._toggle()\n }\n\n public show = () => {\n this._show()\n }\n\n public hide = () => {\n this._hide()\n }\n\n public isShown = () => {\n return this.shown\n }\n\n public update = () => {\n this._update()\n }\n\n public goElement = () => {\n return this.element\n }\n\n // Event API\n public on = (name: string, handler: Function) => {\n return EventHandlerUtil.on(this.element, name, handler)\n }\n\n public one = (name: string, handler: Function) => {\n return EventHandlerUtil.one(this.element, name, handler)\n }\n\n public off = (name: string) => {\n return EventHandlerUtil.off(this.element, name)\n }\n\n public trigger = (name: string, event: Event) => {\n return EventHandlerUtil.trigger(this.element, name, event)\n }\n\n // Static methods\n public static hasInstace = (elementId: string): boolean => {\n return DrawerStore.has(elementId)\n }\n\n public static getInstance = (elementId: string) => {\n return DrawerStore.get(elementId)\n }\n\n public static hideAll = () => {\n const oldInstances = DrawerStore.getAllInstances()\n oldInstances.forEach((dr) => {\n dr.hide()\n })\n }\n\n public static updateAll = () => {\n const oldInstances = DrawerStore.getAllInstances()\n oldInstances.forEach((dr) => {\n dr.update()\n })\n }\n\n // Create Instances\n public static createInstances(selector: string): void {\n const elements = document.body.querySelectorAll(selector)\n elements.forEach((element) => {\n const item = element as HTMLElement\n let drawer = DrawerComponent.getInstance(item.id)\n if (!drawer) {\n drawer = new DrawerComponent(item, defaultDrawerOptions)\n }\n drawer.element = item;\n drawer.hide()\n })\n }\n\n // Dismiss instances\n public static handleDismiss = () => {\n // External drawer toggle handler\n DOMEventHandlerUtil.on(document.body, '[data-kt-drawer-dismiss=\"true\"]', 'click', () => {\n /* @ts-ignore */\n const element = this.closest('[data-kt-drawer=\"true\"]')\n if (element) {\n const drawer = DrawerComponent.getInstance(element)\n if (drawer && drawer.isShown()) {\n drawer.hide()\n }\n }\n })\n }\n\n // Global Initialization\n public static initGlobalHandlers(): void {\n // Window Resize Handling\n window.addEventListener('resize', function () {\n let timer: number | undefined\n throttle(\n timer,\n () => {\n // Locate and update Drawer instances on window resize\n const elements = document.body.querySelectorAll('[data-kt-drawer=\"true\"]')\n elements.forEach((el) => {\n const item = el as HTMLElement\n const instance = DrawerComponent.getInstance(item.id)\n if (instance) {\n instance.element = item;\n instance.update()\n }\n })\n },\n 200\n )\n })\n }\n\n public static bootstrap = () => {\n DrawerComponent.createInstances('[data-kt-drawer=\"true\"]')\n DrawerComponent.initGlobalHandlers()\n DrawerComponent.handleDismiss()\n }\n\n public static reinitialization = () => {\n DrawerComponent.createInstances('[data-kt-drawer=\"true\"]')\n DrawerComponent.hideAll()\n DrawerComponent.updateAll()\n DrawerComponent.handleDismiss()\n }\n}\n\nexport {DrawerComponent, defaultDrawerOptions}\n","import {\n getScrollTop,\n getAttributeValueByBreakpoint,\n throttle,\n getObjectPropertyValueByKey,\n stringSnakeToCamel,\n getUniqueIdWithPrefix,\n DataUtil,\n ElementAnimateUtil,\n} from '../_utils/index'\n\nexport interface IScrollTopOptions {\n offset: number\n speed: number\n}\n\nconst defaultScrollTopOptions: IScrollTopOptions = {\n offset: 200,\n speed: 600,\n}\n\nclass ScrollTopComponent {\n element: HTMLElement\n options: IScrollTopOptions\n instanceUid: string\n\n constructor(_element: HTMLElement, options: IScrollTopOptions) {\n this.element = _element\n this.options = Object.assign(defaultScrollTopOptions, options)\n this.instanceUid = getUniqueIdWithPrefix('scrolltop')\n\n // Event Handlers\n this._handlers()\n\n // Bind Instance\n DataUtil.set(this.element, 'scrolltop', this)\n }\n\n private _handlers = () => {\n let timer: number\n window.addEventListener('scroll', () => {\n throttle(timer, () => {\n this._scroll()\n })\n })\n\n this.element.addEventListener('click', (e: Event) => {\n e.preventDefault()\n this._go()\n })\n }\n\n private _scroll = () => {\n const offset = parseInt(this._getOption('offset') as string)\n const pos = getScrollTop() // current vertical position\n if (pos > offset) {\n if (!document.body.hasAttribute('data-kt-scrolltop')) {\n document.body.setAttribute('data-kt-scrolltop', 'on')\n }\n } else {\n if (document.body.hasAttribute('data-kt-scrolltop')) {\n document.body.removeAttribute('data-kt-scrolltop')\n }\n }\n }\n\n private _go = () => {\n const speed = parseInt(this._getOption('speed') as string)\n ElementAnimateUtil.scrollTop(0, speed)\n }\n\n private _getOption = (name: string) => {\n const attr = this.element.getAttribute(`data-kt-scrolltop-${name}`)\n if (attr) {\n const value = getAttributeValueByBreakpoint(attr)\n return value !== null && String(value) === 'true'\n }\n\n const optionName = stringSnakeToCamel(name)\n const option = getObjectPropertyValueByKey(this.options, optionName)\n if (option) {\n return getAttributeValueByBreakpoint(option)\n }\n\n return null\n }\n\n ///////////////////////\n // ** Public API ** //\n ///////////////////////\n\n // Plugin API\n public go = () => {\n return this._go()\n }\n\n public getElement = () => {\n return this.element\n }\n\n // Static methods\n public static getInstance = (el: HTMLElement) => {\n const scrollTop = DataUtil.get(el, 'scrolltop')\n if (scrollTop) {\n return scrollTop\n }\n\n return null\n }\n\n public static createInstances = (selector: string) => {\n const elements = document.body.querySelectorAll(selector)\n elements.forEach((el) => {\n const item = el as HTMLElement\n let scrollTop = ScrollTopComponent.getInstance(item)\n if (!scrollTop) {\n scrollTop = new ScrollTopComponent(item, defaultScrollTopOptions)\n }\n })\n }\n\n public static createInsance = (\n selector: string,\n options: IScrollTopOptions = defaultScrollTopOptions\n ): ScrollTopComponent | undefined => {\n const element = document.body.querySelector(selector)\n if (!element) {\n return\n }\n const item = element as HTMLElement\n let scrollTop = ScrollTopComponent.getInstance(item)\n if (!scrollTop) {\n scrollTop = new ScrollTopComponent(item, options)\n }\n return scrollTop\n }\n\n public static bootstrap = () => {\n ScrollTopComponent.createInstances('[data-kt-scrolltop=\"true\"]')\n }\n\n public static reinitialization = () => {\n ScrollTopComponent.createInstances('[data-kt-scrolltop=\"true\"]')\n }\n\n public static goTop = () => {\n ElementAnimateUtil.scrollTop(0, defaultScrollTopOptions.speed)\n }\n}\nexport {ScrollTopComponent, defaultScrollTopOptions}\n","import {\n getElementIndex,\n getUniqueIdWithPrefix,\n ElementAnimateUtil,\n EventHandlerUtil,\n DataUtil,\n DOMEventHandlerUtil,\n ElementStyleUtil,\n} from '../_utils/index'\n\nexport interface IStepperOptions {\n startIndex: number\n animation: boolean\n animationSpeed: string\n animationNextClass: string\n animationPreviousClass: string\n}\n\nconst defaultStepperOptions: IStepperOptions = {\n startIndex: 1,\n animation: false,\n animationSpeed: '0.3s',\n animationNextClass: 'animate__animated animate__slideInRight animate__fast',\n animationPreviousClass: 'animate__animated animate__slideInLeft animate__fast',\n}\n\nclass StepperComponent {\n element: HTMLElement\n options: IStepperOptions\n instanceUid: string\n steps: NodeListOf\n btnNext: HTMLElement | null\n btnPrev: HTMLElement | null\n btnSubmit: HTMLElement | null\n totatStepsNumber: number = 0\n passedStepIndex: number = 0\n currentStepIndex: number = 1\n\n constructor(_element: HTMLElement, options: IStepperOptions) {\n this.element = _element\n this.options = Object.assign(defaultStepperOptions, options)\n this.instanceUid = getUniqueIdWithPrefix('stepper')\n\n // Elements\n this.steps = this.element.querySelectorAll('[data-kt-stepper-element=\"nav\"]')\n this.btnNext = this.element.querySelector('[data-kt-stepper-action=\"next\"]')\n this.btnPrev = this.element.querySelector('[data-kt-stepper-action=\"previous\"]')\n this.btnSubmit = this.element.querySelector('[data-kt-stepper-action=\"submit\"]')\n\n // Variables\n this.totatStepsNumber = this.steps?.length | 0\n this.passedStepIndex = 0\n this.currentStepIndex = 1\n\n // Set Current Step\n if (this.options.startIndex > 1) {\n this._goTo(this.options.startIndex)\n }\n\n // Event Handlers\n this.initHandlers()\n\n // Bind Instance\n DataUtil.set(this.element, 'stepper', this)\n }\n\n private _goTo = (index: number) => {\n EventHandlerUtil.trigger(this.element, 'kt.stepper.change')\n // Skip if this step is already shown\n if (index === this.currentStepIndex || index > this.totatStepsNumber || index < 0) {\n return\n }\n\n // Validate step number\n index = parseInt(index.toString())\n // Set current step\n this.passedStepIndex = this.currentStepIndex\n this.currentStepIndex = index\n\n // Refresh elements\n this.refreshUI()\n\n EventHandlerUtil.trigger(this.element, 'kt.stepper.changed')\n }\n\n private initHandlers = () => {\n this.btnNext?.addEventListener('click', (e: Event) => {\n e.preventDefault()\n\n EventHandlerUtil.trigger(this.element, 'kt.stepper.next', e)\n })\n\n this.btnPrev?.addEventListener('click', (e: Event) => {\n e.preventDefault()\n\n EventHandlerUtil.trigger(this.element, 'kt.stepper.previous', e)\n })\n\n DOMEventHandlerUtil.on(this.element, '[data-kt-stepper-action=\"step\"]', 'click', (e: Event) => {\n e.preventDefault()\n\n if (this.steps && this.steps.length > 0) {\n for (let i = 0; i < this.steps.length; i++) {\n if ((this.steps[i] as HTMLElement) === this.element) {\n let index = i + 1\n\n const stepDirection = this._getStepDirection(index)\n EventHandlerUtil.trigger(this.element, `stepper.${stepDirection}`, e)\n return\n }\n }\n }\n })\n }\n\n private _getStepDirection = (index: number) => {\n return index > this.currentStepIndex ? 'next' : 'previous'\n }\n\n private getStepContent = (index: number) => {\n const content = this.element.querySelectorAll('[data-kt-stepper-element=\"content\"]')\n if (!content) {\n return false\n }\n\n if (content[index - 1]) {\n return content[index - 1]\n }\n\n return false\n }\n\n private getLastStepIndex = () => {\n return this.totatStepsNumber\n }\n\n private getTotalStepsNumber = () => {\n return this.totatStepsNumber\n }\n\n private refreshUI = () => {\n let state = ''\n\n if (this.isLastStep()) {\n state = 'last'\n } else if (this.isFirstStep()) {\n state = 'first'\n } else {\n state = 'between'\n }\n\n // Set state class\n this.element.classList.remove('last')\n this.element.classList.remove('first')\n this.element.classList.remove('between')\n\n this.element.classList.add(state)\n\n // Step Items\n const elements = this.element.querySelectorAll(\n '[data-kt-stepper-element=\"nav\"], [data-kt-stepper-element=\"content\"], [data-kt-stepper-element=\"info\"]'\n )\n\n if (!elements || elements.length <= 0) {\n return\n }\n\n for (var i = 0, len = elements.length; i < len; i++) {\n var element = elements[i] as HTMLElement\n var index = getElementIndex(element) + 1\n\n element.classList.remove('current')\n element.classList.remove('completed')\n element.classList.remove('pending')\n\n if (index === this.currentStepIndex) {\n element.classList.add('current')\n\n if (\n this.options.animation !== false &&\n element.getAttribute('data-kt-stepper-element') === 'content'\n ) {\n ElementStyleUtil.set(element, 'animationDuration', this.options.animationSpeed)\n\n const animation =\n this._getStepDirection(this.passedStepIndex) === 'previous'\n ? this.options.animationPreviousClass\n : this.options.animationNextClass\n ElementAnimateUtil.animateClass(element, animation)\n }\n } else {\n if (index < this.currentStepIndex) {\n element.classList.add('completed')\n } else {\n element.classList.add('pending')\n }\n }\n }\n }\n\n private isLastStep = () => {\n return this.currentStepIndex === this.totatStepsNumber\n }\n\n private isFirstStep = () => {\n return this.currentStepIndex === 1\n }\n\n private isBetweenStep = () => {\n return this.isLastStep() === false && this.isFirstStep() === false\n }\n\n // ///////////////////////\n // // ** Public API ** //\n // ///////////////////////\n\n // // Plugin API\n public goto = (index: number) => {\n return this._goTo(index)\n }\n\n public goNext = () => {\n return this.goto(this.getNextStepIndex())\n }\n\n public goPrev = () => {\n return this.goto(this.getPrevStepIndex())\n }\n\n public goFirst = () => {\n return this.goto(1)\n }\n\n public goLast = () => {\n return this.goto(this.getLastStepIndex())\n }\n\n public getCurrentStepIndex = () => {\n return this.currentStepIndex\n }\n\n public getNextStepIndex = () => {\n if (this.totatStepsNumber >= this.currentStepIndex + 1) {\n return this.currentStepIndex + 1\n } else {\n return this.totatStepsNumber\n }\n }\n\n public getPassedStepIndex = () => {\n return this.passedStepIndex\n }\n\n public getPrevStepIndex = () => {\n if (this.currentStepIndex - 1 > 1) {\n return this.currentStepIndex - 1\n } else {\n return 1\n }\n }\n\n public getElement = (index: number) => {\n return this.element\n }\n\n // Event API\n public on = (name: string, handler: Function) => {\n return EventHandlerUtil.on(this.element, name, handler)\n }\n\n public one = (name: string, handler: Function) => {\n return EventHandlerUtil.one(this.element, name, handler)\n }\n\n public off = (name: string) => {\n return EventHandlerUtil.off(this.element, name)\n }\n\n public destroy = () => {\n console.log('destroy stepper')\n }\n\n public trigger = (name: string, event: Event) => {\n return EventHandlerUtil.trigger(this.element, name, event)\n }\n\n // Static methods\n public static hasInstace(element: HTMLElement): boolean {\n return DataUtil.has(element, 'stepper')\n }\n\n public static getInstance(element: HTMLElement): StepperComponent | null {\n if (element !== null && StepperComponent.hasInstace(element)) {\n return DataUtil.get(element, 'stepper')\n }\n return null\n }\n\n // Create Instances\n public static createInstances(selector: string): void {\n const elements = document.body.querySelectorAll(selector)\n elements.forEach((element) => {\n const item = element as HTMLElement\n let stepper = StepperComponent.getInstance(item)\n if (!stepper) {\n stepper = new StepperComponent(item, defaultStepperOptions)\n }\n })\n }\n\n public static createInsance = (\n element: HTMLElement,\n options: IStepperOptions = defaultStepperOptions\n ): StepperComponent | null => {\n if (!element) {\n return null\n }\n let stepper = StepperComponent.getInstance(element)\n if (!stepper) {\n stepper = new StepperComponent(element, options)\n }\n return stepper\n }\n\n public static bootstrap(attr: string = '[data-kt-stepper]') {\n StepperComponent.createInstances(attr)\n }\n}\n\nexport {StepperComponent, defaultStepperOptions}\n","/* eslint-disable no-useless-escape */\n// DOCS: https://javascript.info/cookie\nexport class CookieComponent {\n /**\n * Returns the cookie with the given name, or undefined if not found\n *\n * @param {string} name - cookie name\n * @returns string | null\n */\n public static get(name: string): string | undefined {\n let matches = document.cookie.match(\n new RegExp('(?:^|; )' + name.replace(/([\\.$?*|{}\\(\\)\\[\\]\\\\\\/\\+^])/g, '\\\\$1') + '=([^;]*)')\n )\n return matches ? decodeURIComponent(matches[1]) : undefined\n }\n\n /**\n * Please note that a cookie value is encoded,\n * so getCookie uses a built-in decodeURIComponent function to decode it.\n *\n * @param {string} name - cookie name\n * @param {string | number | boolean} value - cookie value\n * @param {any} cookieOptions - cookie options\n * @returns void\n */\n public static set(name: string, value: string | number | boolean, cookieOptions: any): void {\n const options = {\n path: '/',\n // add other defaults here if necessary\n ...cookieOptions,\n }\n\n if (options.expires instanceof Date) {\n options.expires = options.expires.toUTCString()\n }\n\n let updatedCookie = encodeURIComponent(name) + '=' + encodeURIComponent(value)\n\n for (let optionKey in options) {\n updatedCookie += '; ' + optionKey\n let optionValue = options[optionKey]\n if (optionValue !== true) {\n updatedCookie += '=' + optionValue\n }\n }\n\n document.cookie = updatedCookie\n }\n\n /**\n * To delete a cookie, we can call it with a negative expiration date\n *\n * @param {string} name\n */\n public static delete(name: string): void {\n CookieComponent.set(name, '', {\n 'max-age': -1,\n })\n }\n}\n","import {\n DataUtil,\n getObjectPropertyValueByKey,\n stringSnakeToCamel,\n getAttributeValueByBreakpoint,\n getViewPort,\n isVisibleElement,\n throttle,\n getCSS,\n ElementStyleUtil,\n} from '../_utils/index'\nimport {CookieComponent} from './_CookieComponent'\n\nexport interface ScrollOptions {\n saveState?: boolean\n}\n\nconst defaultScrollOptions: ScrollOptions = {\n saveState: true,\n}\n\nclass ScrollComponent {\n element: HTMLElement\n options: ScrollOptions\n id: string\n\n constructor(_element: HTMLElement, options: ScrollOptions) {\n this.element = _element\n this.options = Object.assign(defaultScrollOptions, options)\n this.id = this.element.getAttribute('id') || ''\n this.update()\n // this.element.setAttribute('data-kt-scrolltop', 'true')\n DataUtil.set(this.element, 'scroll', this)\n }\n\n private getOption = (name: string) => {\n if (this.element.hasAttribute('data-kt-scroll-' + name) === true) {\n const attr = this.element.getAttribute('data-kt-scroll-' + name) || ''\n let value: string | JSON | boolean = getAttributeValueByBreakpoint(attr)\n if (value !== null && String(value) === 'true') {\n value = true\n } else if (value !== null && String(value) === 'false') {\n value = false\n }\n\n return value\n } else {\n const optionName = stringSnakeToCamel(name)\n const option = getObjectPropertyValueByKey(this.options, optionName)\n if (option) {\n return getAttributeValueByBreakpoint(option)\n } else {\n return null\n }\n }\n }\n\n private getHeightType = () => {\n if (this.getOption('height')) {\n return 'height'\n }\n if (this.getOption('min-height')) {\n return 'min-height'\n }\n if (this.getOption('max-height')) {\n return 'max-height'\n }\n }\n\n private getAutoHeight = () => {\n let height: number | string = getViewPort().height\n const dependencies = this.getOption('dependencies')\n const wrappers = this.getOption('wrappers')\n const offset = this.getOption('offset')\n\n // Height dependencies\n if (dependencies !== null) {\n const elements = document.querySelectorAll(dependencies as string)\n if (elements && elements.length > 0) {\n for (let i = 0, len = elements.length; i < len; i++) {\n const element = elements[i] as HTMLElement\n if (isVisibleElement(element) === false) {\n continue\n }\n\n height = height - parseInt(getCSS(element, 'height'))\n height = height - parseInt(getCSS(element, 'margin-top'))\n height = height - parseInt(getCSS(element, 'margin-bottom'))\n\n const borderTop = getCSS(element, 'border-top')\n if (borderTop) {\n height = height - parseInt(borderTop)\n }\n\n const borderBottom = getCSS(element, 'border-bottom')\n if (borderBottom) {\n height = height - parseInt(borderBottom)\n }\n }\n }\n }\n\n // Wrappers\n if (wrappers !== null) {\n var elements = document.querySelectorAll(wrappers as string)\n if (elements && elements.length > 0) {\n for (let i = 0, len = elements.length; i < len; i++) {\n const element = elements[i] as HTMLElement\n\n if (!isVisibleElement(element)) {\n continue\n }\n\n height = height - parseInt(getCSS(element, 'margin-top'))\n height = height - parseInt(getCSS(element, 'margin-bottom'))\n height = height - parseInt(getCSS(element, 'padding-top'))\n height = height - parseInt(getCSS(element, 'padding-bottom'))\n\n const borderTop = getCSS(element, 'border-top')\n if (borderTop) {\n height = height - parseInt(borderTop)\n }\n\n const borderBottom = getCSS(element, 'border-bottom')\n if (borderBottom) {\n height = height - parseInt(borderBottom)\n }\n }\n }\n }\n\n // Custom offset\n if (offset !== null) {\n height = height - parseInt(offset as string)\n }\n\n height = height - parseInt(getCSS(this.element, 'margin-top'))\n height = height - parseInt(getCSS(this.element, 'margin-bottom'))\n\n const borderTop = getCSS(this.element, 'border-top')\n if (borderTop) {\n height = height - parseInt(borderTop)\n }\n\n const borderBottom = getCSS(this.element, 'border-bottom')\n if (borderBottom) {\n height = height - parseInt(borderBottom)\n }\n\n height = String(height) + 'px'\n\n return height\n }\n\n private setupHeight = () => {\n let height = this.getHeight()\n let heightType = this.getHeightType() as string\n\n // Set height\n if (height !== null && height.length > 0) {\n ElementStyleUtil.set(this.element, heightType, height)\n } else {\n ElementStyleUtil.set(this.element, heightType, '')\n }\n }\n\n private setupState = () => {\n if (this.getOption('save-state') === true && this.id) {\n const cookie = CookieComponent.get(this.id + 'st')\n if (cookie) {\n var pos = parseInt(cookie)\n\n if (pos > 0) {\n this.element.scrollTop = pos\n }\n }\n }\n }\n\n private setupScrollHandler = () => {\n if (this.getOption('save-state') === true && this.id) {\n this.element.addEventListener('scroll', this.scrollHandler)\n } else {\n this.element.removeEventListener('scroll', this.scrollHandler)\n }\n }\n\n private scrollHandler = () => {\n const cookieId = this.id + 'st'\n CookieComponent.set(cookieId, this.element.scrollTop, {})\n }\n\n private destroyScrollHandler = () => {\n this.element.removeEventListener('scroll', this.scrollHandler)\n }\n\n private resetHeight = () => {\n const heghtType = this.getHeightType()\n if (heghtType) {\n ElementStyleUtil.set(this.element, heghtType, '')\n }\n }\n\n ///////////////////////\n // ** Public API ** //\n ///////////////////////\n public update = () => {\n // Activate/deactivate\n if (\n this.getOption('activate') === true ||\n !this.element.hasAttribute('data-kt-scroll-activate')\n ) {\n this.setupHeight()\n this.setupScrollHandler()\n this.setupState()\n } else {\n this.resetHeight()\n this.destroyScrollHandler()\n }\n }\n\n public getHeight = () => {\n const heightType = this.getHeightType()\n const height = this.getOption(heightType || '')\n if (height instanceof Function) {\n return height.call(height)\n } else if (height !== null && typeof height === 'string' && height.toLowerCase() === 'auto') {\n return this.getAutoHeight()\n } else {\n return height\n }\n }\n\n public getElement = () => {\n return this.element\n }\n\n // Static methods\n public static hasInstace(element: HTMLElement) {\n return DataUtil.has(element, 'scroll')\n }\n\n public static getInstance(element: HTMLElement) {\n if (element !== null && ScrollComponent.hasInstace(element)) {\n return DataUtil.get(element, 'scroll')\n }\n }\n\n // Create Instances\n public static createInstances(selector: string) {\n const elements = document.body.querySelectorAll(selector)\n elements.forEach((element: Element) => {\n const item = element as HTMLElement\n let scroll = ScrollComponent.getInstance(item)\n if (!scroll) {\n scroll = new ScrollComponent(item, defaultScrollOptions)\n }\n })\n }\n\n public static destroyAll(attr: string = '[data-kt-scroll=\"true\"]') {}\n\n public static bootstrap(attr: string = '[data-kt-scroll=\"true\"]') {\n ScrollComponent.createInstances(attr)\n ScrollComponent.resize()\n }\n\n public static createInstance = (\n element: HTMLElement,\n options: ScrollOptions = defaultScrollOptions\n ): ScrollComponent | undefined => {\n let scroll = ScrollComponent.getInstance(element)\n if (!scroll) {\n scroll = new ScrollComponent(element, options)\n }\n return scroll\n }\n\n public static reinitialization(attr: string = '[data-kt-scroll=\"true\"]') {\n ScrollComponent.createInstances(attr)\n }\n\n public static updateAll(){\n const elements = document.body.querySelectorAll('[data-kt-scroll=\"true\"]')\n elements.forEach((element: Element) => {\n const instance = ScrollComponent.getInstance(element as HTMLElement)\n if (instance) {\n instance.update()\n }\n })\n }\n\n public static resize() {\n // Window Resize Handling\n window.addEventListener('resize', function () {\n let timer\n throttle(\n timer,\n () => {\n // Locate and update Drawer instances on window resize\n ScrollComponent.updateAll();\n },\n 200\n )\n })\n }\n}\n\nexport {ScrollComponent, defaultScrollOptions}\n","import {\n getElementOffset,\n getScrollTop,\n getAttributeValueByBreakpoint,\n getUniqueIdWithPrefix,\n getObjectPropertyValueByKey,\n stringSnakeToCamel,\n getCSS,\n ElementAnimateUtil,\n ElementStyleUtil,\n EventHandlerUtil,\n} from '../_utils/index';\n\nexport class StickyStore {\n static store: Map = new Map()\n\n public static set(instanceId: string, stickyComponentObj: StickyComponent): void {\n if (StickyStore.has(instanceId)) {\n return\n }\n\n StickyStore.store.set(instanceId, stickyComponentObj);\n }\n\n public static get(instanceId: string): StickyComponent | undefined {\n if (!StickyStore.has(instanceId)) {\n return\n }\n return StickyStore.store.get(instanceId);\n }\n\n public static remove(instanceId: string): void {\n if (!StickyStore.has(instanceId)) {\n return\n }\n\n StickyStore.store.delete(instanceId)\n }\n\n public static has(instanceId: string): boolean {\n return StickyStore.store.has(instanceId);\n }\n\n public static getAllInstances() {\n return StickyStore.store;\n }\n}\n\nexport interface StickyOptions {\n offset: number\n reverse: boolean\n animation: boolean\n animationSpeed: string\n animationClass: string\n}\n\nconst defaultStickyOptions: StickyOptions = {\n offset: 200,\n reverse: false,\n animation: true,\n animationSpeed: '0.3s',\n animationClass: 'animation-slide-in-down',\n}\n\nclass StickyComponent {\n element: HTMLElement\n options: StickyOptions\n instanceUid: string\n instanceName: string | null = ''\n attributeName: string\n eventTriggerState: boolean\n lastScrollTop: number\n\n constructor(_element: HTMLElement, options: StickyOptions) {\n this.element = _element\n this.options = Object.assign(defaultStickyOptions, options)\n this.instanceUid = getUniqueIdWithPrefix('sticky')\n this.instanceName = this.element.getAttribute('data-kt-sticky-name')\n this.attributeName = 'data-kt-sticky-' + this.instanceName\n this.eventTriggerState = true\n this.lastScrollTop = 0\n\n // Event Handlers\n window.addEventListener('scroll', this.scroll)\n\n // Initial Launch\n this.scroll()\n\n StickyStore.set(this.element.id, this)\n }\n\n private scroll = () => {\n let offset: any = this.getOption('offset');\n let releaseOffset: any = this.getOption('release-offset');\n let reverse: any = this.getOption('reverse');\n let st: any;\n let diff: any;\n\n // Exit if false\n if ( offset === false ) {\n return;\n }\n\n offset = parseInt(offset);\n releaseOffset = releaseOffset ? parseInt(releaseOffset) : 0;\n st = getScrollTop();\n diff = document.documentElement.scrollHeight - window.innerHeight - getScrollTop();\n\n if ( reverse === true ) { // Release on reverse scroll mode\n if ( st > offset && (releaseOffset === 0 || releaseOffset < diff)) {\n if (document.body.hasAttribute(this.attributeName) === false) {\n this.enable();\n document.body.setAttribute(this.attributeName, 'on');\n }\n\n if ( this.eventTriggerState === true ) {\n EventHandlerUtil.trigger(this.element, 'kt.sticky.on');\n EventHandlerUtil.trigger(this.element, 'kt.sticky.change');\n\n this.eventTriggerState = false;\n }\n } else { // Back scroll mode\n if (document.body.hasAttribute(this.attributeName) === true) {\n this.disable();\n document.body.removeAttribute(this.attributeName);\n }\n\n if ( this.eventTriggerState === false ) {\n EventHandlerUtil.trigger(this.element, 'kt.sticky.off');\n EventHandlerUtil.trigger(this.element, 'kt.sticky.change');\n this.eventTriggerState = true;\n }\n }\n\n this.lastScrollTop = st;\n } else { // Classic scroll mode\n if ( st>offset && (releaseOffset === 0 || releaseOffset < diff)) {\n if (document.body.hasAttribute(this.attributeName) === false) {\n this.enable();\n document.body.setAttribute(this.attributeName, 'on');\n }\n\n if ( this.eventTriggerState === true ) {\n EventHandlerUtil.trigger(this.element, 'kt.sticky.on');\n EventHandlerUtil.trigger(this.element, 'kt.sticky.change');\n this.eventTriggerState = false;\n }\n } else { // back scroll mode\n if (document.body.hasAttribute(this.attributeName) === true) {\n this.disable();\n document.body.removeAttribute(this.attributeName);\n }\n\n if ( this.eventTriggerState === false ) {\n EventHandlerUtil.trigger(this.element, 'kt.sticky.off');\n EventHandlerUtil.trigger(this.element, 'kt.sticky.change');\n this.eventTriggerState = true;\n }\n }\n }\n\n if (releaseOffset > 0) {\n if (diff {\n const dataStickyAttr = 'data-kt-sticky-' + name\n if (this.element.hasAttribute(dataStickyAttr) === true) {\n const attrValueInStr = this.element.getAttribute(dataStickyAttr)\n const attrValue = getAttributeValueByBreakpoint(attrValueInStr || '')\n if (attrValue !== null && String(attrValue) === 'true') {\n return true\n } else if (attrValue !== null && String(attrValue) === 'false') {\n return false\n }\n\n return attrValue\n } else {\n const optionName = stringSnakeToCamel(name)\n const option = getObjectPropertyValueByKey(this.options, optionName)\n if (option) {\n return getAttributeValueByBreakpoint(option)\n }\n }\n }\n\n private disable = () => {\n ElementStyleUtil.remove(this.element, 'top')\n ElementStyleUtil.remove(this.element, 'width')\n ElementStyleUtil.remove(this.element, 'left')\n ElementStyleUtil.remove(this.element, 'right')\n ElementStyleUtil.remove(this.element, 'z-index')\n ElementStyleUtil.remove(this.element, 'position')\n }\n\n private enable = (update: boolean = false) => {\n const top = this.getOption('top')\n const left = this.getOption('left')\n // const right = this.getOption(\"right\");\n let width = this.getOption('width')\n const zindex = this.getOption('zindex')\n\n if (update !== true && this.getOption('animation') === true) {\n ElementStyleUtil.set(this.element, 'animationDuration', this.getOption('animationSpeed'))\n ElementAnimateUtil.animateClass(this.element, 'animation ' + this.getOption('animationClass'))\n }\n\n if (zindex !== null) {\n ElementStyleUtil.set(this.element, 'z-index', zindex)\n ElementStyleUtil.set(this.element, 'position', 'fixed')\n }\n\n if (top !== null) {\n ElementStyleUtil.set(this.element, 'top', top)\n }\n\n if (width !== null && width !== undefined) {\n const widthTarget = getObjectPropertyValueByKey(width, 'target')\n if (widthTarget) {\n const targetElement = document.querySelector(widthTarget)\n if (targetElement) {\n width = getCSS(targetElement, 'width')\n }\n }\n ElementStyleUtil.set(this.element, 'width', width)\n }\n\n if (left !== null) {\n if (String(left).toLowerCase() === 'auto') {\n var offsetLeft = getElementOffset(this.element).left\n\n if (offsetLeft > 0) {\n ElementStyleUtil.set(this.element, 'left', String(offsetLeft) + 'px')\n }\n }\n }\n }\n\n public update = () => {\n if (document.body.hasAttribute(this.attributeName) === true) {\n this.disable()\n document.body.removeAttribute(this.attributeName)\n this.enable(true)\n document.body.setAttribute(this.attributeName, 'on')\n }\n }\n\n // Event API\n public on = (name: string, callBack: Function) => {\n return EventHandlerUtil.on(this.element, name, callBack)\n }\n\n public one = (name: string, callback: Function) => {\n return EventHandlerUtil.one(this.element, name, callback)\n }\n\n public off = (name: string) => {\n return EventHandlerUtil.off(this.element, name)\n }\n\n public trigger = (name: string) => {\n return EventHandlerUtil.trigger(this.element, name)\n }\n\n // Static methods\n public static hasInstace(element: HTMLElement) {\n return StickyStore.has(element.id)\n }\n\n public static getInstance(element: HTMLElement) {\n if (element !== null && StickyComponent.hasInstace(element)) {\n return StickyStore.get(element.id)\n }\n }\n\n // Create Instances\n public static createInstances(selector: string) {\n const elements = document.body.querySelectorAll(selector)\n elements.forEach((element) => {\n const item = element as HTMLElement\n let sticky = StickyComponent.getInstance(item)\n if (!sticky) {\n sticky = new StickyComponent(item, defaultStickyOptions)\n } else {\n sticky.element = item;\n sticky.update();\n }\n })\n }\n\n public static createInsance = (\n selector: string,\n options: StickyOptions = defaultStickyOptions\n ): StickyComponent | undefined => {\n const element = document.body.querySelector(selector)\n if (!element) {\n return\n }\n const item = element as HTMLElement\n let sticky = StickyComponent.getInstance(item)\n if (!sticky) {\n sticky = new StickyComponent(item, options)\n }\n return sticky\n }\n\n public static bootstrap(attr: string = '[data-kt-sticky=\"true\"]') {\n StickyComponent.createInstances(attr)\n }\n\n public static reInitialization(attr: string = '[data-kt-sticky=\"true\"]') {\n StickyComponent.createInstances(attr)\n }\n}\n\nexport {StickyComponent, defaultStickyOptions}\n","import {DataUtil, getUniqueIdWithPrefix, EventHandlerUtil} from '../_utils/index'\n// Helpers\nimport {CookieComponent} from './_CookieComponent'\n\nexport interface ToggleOptions {\n saveState: boolean\n targetState?: string\n toggleState?: string\n targetToggleMode?: string\n}\n\nconst defaultToggleOptions: ToggleOptions = {\n saveState: false,\n}\n\nclass ToggleComponent {\n element: HTMLElement\n instanceUid: string\n options: ToggleOptions\n state: string = ''\n target: HTMLElement | null = null\n attribute: string = ''\n\n constructor(_element: HTMLElement, options: ToggleOptions) {\n this.options = Object.assign(defaultToggleOptions, options)\n this.instanceUid = getUniqueIdWithPrefix('toggle')\n this.element = _element\n\n const elementTargetAttr = this.element.getAttribute('data-kt-toggle-target')\n if (elementTargetAttr) {\n this.target = document.querySelector(elementTargetAttr)\n }\n const elementToggleAttr = this.element.getAttribute('data-kt-toggle-state')\n this.state = elementToggleAttr || ''\n this.attribute = 'data-kt-' + this.element.getAttribute('data-kt-toggle-name')\n\n // Event Handlers\n this._handlers()\n\n // Update Instance\n // Bind Instance\n DataUtil.set(this.element, 'toggle', this)\n }\n\n private _handlers = () => {\n this.element.addEventListener('click', (e: Event) => {\n e.preventDefault()\n this._toggle()\n })\n }\n\n // Event handlers\n private _toggle = () => {\n // Trigger \"after.toggle\" event\n EventHandlerUtil.trigger(this.element, 'kt.toggle.change')\n\n if (this._isEnabled()) {\n this._disable()\n } else {\n this._enable()\n }\n\n // Trigger \"before.toggle\" event\n EventHandlerUtil.trigger(this.element, 'kt.toggle.changed')\n return this\n }\n\n private _enable = () => {\n if (this._isEnabled()) {\n return\n }\n\n EventHandlerUtil.trigger(this.element, 'kt.toggle.enable')\n this.target?.setAttribute(this.attribute, 'on')\n if (this.state.length > 0) {\n this.element.classList.add(this.state)\n }\n\n if (this.options.saveState) {\n CookieComponent.set(this.attribute, 'on', {})\n }\n\n EventHandlerUtil.trigger(this.element, 'kt.toggle.enabled')\n return this\n }\n\n private _disable = () => {\n if (!this._isEnabled()) {\n return false\n }\n\n EventHandlerUtil.trigger(this.element, 'kt.toggle.disable')\n this.target?.removeAttribute(this.attribute)\n\n if (this.state.length > 0) {\n this.element.classList.remove(this.state)\n }\n\n if (this.options.saveState) {\n CookieComponent.delete(this.attribute)\n }\n\n EventHandlerUtil.trigger(this.element, 'kt.toggle.disabled')\n return this\n }\n\n private _isEnabled = () => {\n if (!this.target) {\n return false\n }\n\n return String(this.target.getAttribute(this.attribute)).toLowerCase() === 'on'\n }\n\n ///////////////////////\n // ** Public API ** //\n ///////////////////////\n\n // Plugin API\n // Plugin API\n public toggle = () => {\n return this._toggle()\n }\n\n public enable = () => {\n return this._enable()\n }\n\n public disable = () => {\n return this._disable()\n }\n\n public isEnabled = () => {\n return this._isEnabled()\n }\n\n public goElement = () => {\n return this.element\n }\n\n // Event API\n public on = (name: string, handler: Function) => {\n return EventHandlerUtil.on(this.element, name, handler)\n }\n\n public one = (name: string, handler: Function) => {\n return EventHandlerUtil.one(this.element, name, handler)\n }\n\n public off = (name: string) => {\n return EventHandlerUtil.off(this.element, name)\n }\n\n public trigger = (name: string, event?: Event) => {\n return EventHandlerUtil.trigger(this.element, name, event)\n }\n\n // Static methods\n public static getInstance = (el: HTMLElement) => {\n const toggleElement = DataUtil.get(el, 'toggle')\n if (toggleElement) {\n return toggleElement\n }\n\n return null\n }\n\n public static createInstances = (selector: string) => {\n const elements = document.body.querySelectorAll(selector)\n elements.forEach((el) => {\n const item = el as HTMLElement\n let toggleElement = ToggleComponent.getInstance(item)\n if (!toggleElement) {\n toggleElement = new ToggleComponent(item, defaultToggleOptions)\n }\n })\n }\n\n public static createInsance = (\n selector: string,\n options: ToggleOptions = defaultToggleOptions\n ): ToggleComponent | undefined => {\n const element = document.body.querySelector(selector)\n if (!element) {\n return\n }\n const item = element as HTMLElement\n let toggle = ToggleComponent.getInstance(item)\n if (!toggle) {\n toggle = new ToggleComponent(item, options)\n }\n return toggle\n }\n\n public static reinitialization = () => {\n ToggleComponent.createInstances('[data-kt-toggle]')\n }\n\n public static bootstrap = () => {\n ToggleComponent.createInstances('[data-kt-toggle]')\n }\n}\n\nexport {ToggleComponent, defaultToggleOptions}\n","/* eslint-disable array-callback-return */\n/* eslint-disable no-useless-escape */\nimport {DataUtil} from '../_utils/index'\n\nexport interface IPasswordMeterOptions {\n minLength: number\n checkUppercase: boolean\n checkLowercase: boolean\n checkDigit: boolean\n checkChar: boolean\n scoreHighlightClass: string\n}\n\nexport interface IPasswordMeterQueries {\n componentName: string\n instanseQuery: string\n inputQuery: string\n visibilityQuery: string\n highlightQuery: string\n}\n\nconst defaultPasswordMeterOptions = {\n minLength: 8,\n checkUppercase: true,\n checkLowercase: true,\n checkDigit: true,\n checkChar: true,\n scoreHighlightClass: 'active',\n}\n\nconst defaultPasswordMeterQueires: IPasswordMeterQueries = {\n componentName: 'password-meter',\n instanseQuery: '[data-kt-password-meter]',\n inputQuery: 'input[type]',\n visibilityQuery: '[data-kt-password-meter-control=\"visibility\"]',\n highlightQuery: '[data-kt-password-meter-control=\"highlight\"]',\n}\n\nclass PasswordMeterComponent {\n element: HTMLElement\n inputElement: HTMLInputElement | null\n visibilityElement: HTMLElement | null\n highlightElement: HTMLElement | null\n options: IPasswordMeterOptions\n queries: IPasswordMeterQueries\n score: number\n checkSteps: number\n\n constructor(\n _element: HTMLElement,\n _options: IPasswordMeterOptions,\n _queries: IPasswordMeterQueries\n ) {\n this.element = _element\n this.options = Object.assign(defaultPasswordMeterOptions, _options)\n this.queries = _queries\n this.score = 0\n this.checkSteps = 5\n\n // Elements\n this.inputElement = this.element.querySelector(this.queries.inputQuery)\n this.visibilityElement = this.element.querySelector(this.queries.visibilityQuery)\n this.highlightElement = this.element.querySelector(this.queries.highlightQuery)\n\n // Event Handlers\n this.handlers()\n\n DataUtil.set(this.element, this.queries.componentName, this)\n }\n\n private handlers(): void {\n if (this.inputElement) {\n this.inputElement.addEventListener('input', () => {\n this.check()\n })\n }\n\n if (this.visibilityElement) {\n this.visibilityElement.addEventListener('click', () => {\n this.visitbility()\n })\n }\n }\n\n private visitbility() {\n if (this.visibilityElement && this.inputElement) {\n const visibleIcon = this.visibilityElement.querySelector(\n 'i:not(.d-none), .svg-icon:not(.d-none)'\n )\n\n const hiddenIcon = this.visibilityElement.querySelector('i.d-none, .svg-icon.d-none')\n\n const typeAttr = this.inputElement.getAttribute('type') || ''\n\n if (typeAttr === 'password') {\n this.inputElement.setAttribute('type', 'text')\n } else {\n this.inputElement.setAttribute('type', 'password')\n }\n\n visibleIcon?.classList.add('d-none')\n hiddenIcon?.classList.remove('d-none')\n\n this.inputElement.focus()\n }\n }\n\n private checkScore(): number {\n return 0\n }\n\n private checkLength(): boolean {\n if (this.inputElement) {\n return this.inputElement.value.length >= this.options.minLength // 20 score\n }\n\n return false\n }\n\n private checkLowerCase(): boolean {\n const val = this.inputElement ? this.inputElement.value : ''\n return /[a-z]/.test(val) // 20 score\n }\n\n private checkUppercase(): boolean {\n const val = this.inputElement ? this.inputElement.value : ''\n return /[A-Z]/.test(val) // 20 score\n }\n\n private checkDigit(): boolean {\n const val = this.inputElement ? this.inputElement.value : ''\n return /[0-9]/.test(val) // 20 score\n }\n\n private checkChar(): boolean {\n const val = this.inputElement ? this.inputElement.value : ''\n return /[~`!#$%\\^&*+=\\-\\[\\]\\\\';,/{}|\\\\\":<>\\?]/g.test(val) // 20 score\n }\n\n private getCheckScore(): number {\n let count = 1\n if (this.options.checkUppercase) {\n count++\n }\n\n if (this.options.checkLowercase) {\n count++\n }\n\n if (this.options.checkDigit) {\n count++\n }\n\n if (this.options.checkChar) {\n count++\n }\n\n this.checkSteps = count\n return 100 / this.checkSteps\n }\n\n private highlight() {\n const items = this.highlightElement\n ? [].slice.call(this.highlightElement.querySelectorAll('div'))\n : []\n const total = items.length\n let index = 0\n const checkScore = this.getCheckScore()\n const score = this.getScore()\n\n items.map((item: HTMLElement) => {\n index++\n if (checkScore * index * (this.checkSteps / total) <= score) {\n item.classList.add('active')\n } else {\n item.classList.remove('active')\n }\n })\n }\n\n ///////////////////////\n // ** Public API ** //\n ///////////////////////\n public reset = () => {\n this.score = 0\n this.highlight()\n }\n\n public getScore() {\n return this.score\n }\n\n public check() {\n let score = 0\n const checkScore = this.getCheckScore()\n if (this.checkLength()) {\n score = score + checkScore\n }\n\n if (this.options.checkUppercase && this.checkLowerCase()) {\n score = score + checkScore\n }\n\n if (this.options.checkLowercase && this.checkUppercase()) {\n score = score + checkScore\n }\n\n if (this.options.checkDigit && this.checkDigit()) {\n score = score + checkScore\n }\n\n if (this.options.checkChar && this.checkChar()) {\n score = score + checkScore\n }\n\n this.score = score\n this.highlight()\n }\n\n // Static methods\n public static getInstance = (\n el: HTMLElement,\n componentName: string = defaultPasswordMeterQueires.componentName\n ) => {\n const passwordMeter = DataUtil.get(el, componentName)\n if (passwordMeter) {\n return passwordMeter\n }\n\n return null\n }\n\n public static createInstances = (\n selector: string = defaultPasswordMeterQueires.instanseQuery,\n options: IPasswordMeterOptions = defaultPasswordMeterOptions,\n queries: IPasswordMeterQueries = defaultPasswordMeterQueires\n ) => {\n const elements = document.body.querySelectorAll(selector)\n elements.forEach((el) => {\n const item = el as HTMLElement\n let passwordMeter = PasswordMeterComponent.getInstance(item)\n if (!passwordMeter) {\n passwordMeter = new PasswordMeterComponent(item, options, queries)\n }\n })\n }\n\n public static createInsance = (\n selector: string = defaultPasswordMeterQueires.instanseQuery,\n options: IPasswordMeterOptions = defaultPasswordMeterOptions,\n queries: IPasswordMeterQueries = defaultPasswordMeterQueires\n ): PasswordMeterComponent | undefined => {\n const element = document.body.querySelector(selector)\n if (!element) {\n return\n }\n const item = element as HTMLElement\n let passwordMeter = PasswordMeterComponent.getInstance(item)\n if (!passwordMeter) {\n passwordMeter = new PasswordMeterComponent(item, options, queries)\n }\n return passwordMeter\n }\n\n public static bootstrap = (selector: string = defaultPasswordMeterQueires.instanseQuery) => {\n PasswordMeterComponent.createInstances(selector)\n }\n\n public static reinitialization = (\n selector: string = defaultPasswordMeterQueires.instanseQuery\n ) => {\n PasswordMeterComponent.createInstances(selector)\n }\n}\nexport {PasswordMeterComponent, defaultPasswordMeterOptions, defaultPasswordMeterQueires}\n","import {\n getAttributeValueByBreakpoint,\n stringSnakeToCamel,\n getObjectPropertyValueByKey,\n EventHandlerUtil,\n throttle,\n} from '../_utils/index'\n\nexport class SwapperStore {\n static store: Map = new Map()\n\n public static set(instanceId: string, drawerComponentObj: SwapperComponent): void {\n if (SwapperStore.has(instanceId)) {\n return\n }\n\n SwapperStore.store.set(instanceId, drawerComponentObj);\n }\n\n public static get(instanceId: string): SwapperComponent | undefined {\n if (!SwapperStore.has(instanceId)) {\n return\n }\n return SwapperStore.store.get(instanceId);\n }\n\n public static remove(instanceId: string): void {\n if (!SwapperStore.has(instanceId)) {\n return\n }\n\n SwapperStore.store.delete(instanceId)\n }\n\n public static has(instanceId: string): boolean {\n return SwapperStore.store.has(instanceId);\n }\n\n public static getAllInstances() {\n return SwapperStore.store;\n }\n}\n\nexport interface ISwapperOptions {\n mode: string\n}\n\nexport interface ISwapperQueries {\n componentName: string\n instanseQuery: string\n attrQuery: string\n}\n\nconst defaultSwapperOptions: ISwapperOptions = {\n mode: 'append',\n}\n\nconst defaultSwapperQueires: ISwapperQueries = {\n componentName: 'swapper',\n instanseQuery: '[data-kt-swapper=\"true\"]',\n attrQuery: 'data-kt-swapper-',\n}\n\nclass SwapperComponent {\n element: HTMLElement\n options: ISwapperOptions\n queries: ISwapperQueries\n\n constructor(_element: HTMLElement, _options: ISwapperOptions, _queries: ISwapperQueries) {\n this.element = _element\n this.options = Object.assign(defaultSwapperOptions, _options)\n this.queries = _queries\n\n // Initial update\n this.update()\n\n SwapperStore.set(this.element.id, this)\n }\n\n private getOption(name: string) {\n const attr = this.element.getAttribute(`${this.queries.attrQuery}${name}`)\n if (attr) {\n let value = getAttributeValueByBreakpoint(attr)\n if (attr != null && String(value) === 'true') {\n return true\n } else if (value !== null && String(value) === 'false') {\n return false\n }\n return value\n } else {\n const optionName = stringSnakeToCamel(name)\n const option = getObjectPropertyValueByKey(this.options, optionName)\n if (option) {\n return getAttributeValueByBreakpoint(option)\n } else {\n return null\n }\n }\n }\n\n ///////////////////////\n // ** Public API ** //\n ///////////////////////\n public update = () => {\n const parentSelector = this.getOption('parent')?.toString()\n const mode = this.getOption('mode')\n const parentElement = parentSelector ? document.querySelector(parentSelector) : null\n\n if (parentElement && this.element.parentNode !== parentElement) {\n if (mode === 'prepend') {\n parentElement.prepend(this.element)\n } else if (mode === 'append') {\n parentElement.append(this.element)\n }\n }\n }\n\n // Event API\n public on = (name: string, handler: Function) => {\n return EventHandlerUtil.on(this.element, name, handler)\n }\n\n public one = (name: string, handler: Function) => {\n return EventHandlerUtil.one(this.element, name, handler)\n }\n\n public off = (name: string) => {\n return EventHandlerUtil.off(this.element, name)\n }\n\n public trigger = (name: string, event: Event) => {\n return EventHandlerUtil.trigger(this.element, name, event)\n }\n\n // Static methods\n public static getInstance = (\n el: HTMLElement,\n componentName: string = defaultSwapperQueires.componentName\n ): SwapperComponent | null => {\n const place = SwapperStore.get(el.id)\n if (place) {\n return place as SwapperComponent\n }\n\n return null\n }\n\n public static createInstances = (\n selector: string = defaultSwapperQueires.instanseQuery,\n options: ISwapperOptions = defaultSwapperOptions,\n queries: ISwapperQueries = defaultSwapperQueires\n ) => {\n const elements = document.body.querySelectorAll(selector)\n elements.forEach((el) => {\n const item = el as HTMLElement\n let place = SwapperComponent.getInstance(item)\n if (!place) {\n place = new SwapperComponent(item, options, queries)\n }\n place.element = item;\n place.update();\n })\n }\n\n public static createInsance = (\n selector: string = defaultSwapperQueires.instanseQuery,\n options: ISwapperOptions = defaultSwapperOptions,\n queries: ISwapperQueries = defaultSwapperQueires\n ): SwapperComponent | undefined => {\n const element = document.body.querySelector(selector)\n if (!element) {\n return\n }\n const item = element as HTMLElement\n let place = SwapperComponent.getInstance(item)\n if (!place) {\n place = new SwapperComponent(item, options, queries)\n }\n return place\n }\n\n public static bootstrap = (selector: string = defaultSwapperQueires.instanseQuery) => {\n SwapperComponent.createInstances(selector)\n }\n\n public static reinitialization = (selector: string = defaultSwapperQueires.instanseQuery) => {\n SwapperComponent.createInstances(selector)\n }\n}\n\n// Window resize handler\nwindow.addEventListener('resize', function () {\n let timer\n throttle(\n timer,\n () => {\n // Locate and update Offcanvas instances on window resize\n const elements = document.querySelectorAll(defaultSwapperQueires.instanseQuery)\n elements.forEach((el) => {\n const place = SwapperComponent.getInstance(el as HTMLElement)\n if (place) {\n place.update()\n }\n })\n },\n 200\n )\n})\n\nexport {SwapperComponent, defaultSwapperOptions, defaultSwapperQueires}\n","import {createPopper, VirtualElement} from '@popperjs/core'\nimport {\n getElementChild,\n getElementParents,\n getAttributeValueByBreakpoint,\n getUniqueIdWithPrefix,\n DataUtil,\n ElementStyleUtil,\n EventHandlerUtil,\n insertAfterElement,\n slideUp,\n slideDown,\n DOMEventHandlerUtil,\n throttle,\n getHighestZindex,\n} from '../_utils/index'\n\nexport interface MenuOptions {\n dropdown: {\n hoverTimeout: number\n zindex: number\n }\n accordion: {\n slideSpeed: number\n expand: boolean\n }\n}\n\nconst defaultMenuOptions: MenuOptions = {\n dropdown: {\n hoverTimeout: 200,\n zindex: 115,\n },\n accordion: {\n slideSpeed: 250,\n expand: false,\n },\n}\n\ntype PopperPlacement =\n | 'right'\n | 'auto'\n | 'auto-start'\n | 'auto-end'\n | 'top'\n | 'bottom'\n | 'left'\n | 'top-start'\n | 'top-end'\n | 'bottom-start'\n | 'bottom-end'\n | 'right-start'\n | 'right-end'\n | 'left-start'\n | 'left-end'\n | undefined\n\nclass MenuComponent {\n element: HTMLElement\n options: MenuOptions\n instanceUid: string\n triggerElement: HTMLElement | null = null\n\n constructor(_element: HTMLElement, options: MenuOptions) {\n this.element = _element\n this.options = Object.assign(defaultMenuOptions, options)\n this.instanceUid = getUniqueIdWithPrefix('menu')\n // this.element.setAttribute('data-kt-menu', 'true')\n this._setTriggerElement()\n this._update()\n DataUtil.set(this.element, 'menu', this)\n return this\n }\n\n // Set external trigger element\n private _setTriggerElement = () => {\n const target = document.querySelector(\n `[data-kt-menu-target=\"#${this.element.getAttribute('id')}\"`\n )\n\n if (target) {\n this.triggerElement = target as HTMLElement\n } else if (this.element.closest('[data-kt-menu-trigger]')) {\n this.triggerElement = this.element.closest('[data-kt-menu-trigger]') as HTMLElement\n } else if (\n this.element.parentNode &&\n getElementChild(this.element.parentNode as HTMLElement, '[data-kt-menu-trigger]')\n ) {\n const child = getElementChild(\n this.element.parentNode as HTMLElement,\n '[data-kt-menu-trigger]'\n )\n if (child) {\n this.triggerElement = child\n }\n }\n\n if (this.triggerElement) {\n DataUtil.set(this.triggerElement, 'menu', this)\n }\n }\n\n // Test if menu has external trigger element\n private _isTriggerElement = (item: HTMLElement) => {\n return this.triggerElement === item\n }\n\n // Get item option(through html attributes)\n private _getItemOption = (item: HTMLElement, name: string) => {\n let value: string | JSON | null | boolean = null\n if (item && item.hasAttribute('data-kt-menu-' + name)) {\n const attr = item.getAttribute('data-kt-menu-' + name) || ''\n value = getAttributeValueByBreakpoint(attr)\n if (value !== null && String(value) === 'true') {\n value = true\n } else if (value !== null && String(value) === 'false') {\n value = false\n }\n }\n return value\n }\n\n // Get item element\n private _getItemElement = (_element: HTMLElement) => {\n // Element is the external trigger element\n if (this._isTriggerElement(_element)) {\n return _element\n }\n\n // Element has item toggler attribute\n if (_element.hasAttribute('data-kt-menu-trigger')) {\n return _element\n }\n\n // Element has item DOM reference in it's data storage\n const itemElement = DataUtil.get(_element, 'item')\n if (itemElement) {\n return itemElement\n }\n\n // Item is parent of element\n const item = _element.closest('.menu-item[data-kt-menu-trigger]')\n if (item) {\n return item\n }\n\n // Element's parent has item DOM reference in it's data storage\n const sub = _element.closest('.menu-sub')\n if (sub) {\n const subItem = DataUtil.get(sub as HTMLElement, 'item')\n if (subItem) {\n return subItem\n }\n }\n }\n\n // Get item parent element\n private _getItemParentElement = (item: HTMLElement) => {\n const sub = item.closest('.menu-sub')\n if (!sub) {\n return null\n }\n\n const subItem = DataUtil.get(sub as HTMLElement, 'item')\n if (subItem) {\n return subItem\n }\n\n const parentItem = sub.closest('.menu-item[data-kt-menu-trigger]')\n if (sub && parentItem) {\n return parentItem\n }\n\n return null\n }\n\n // Get item parent elements\n private _getItemParentElements = (item: HTMLElement) => {\n const parents:Array = []\n let parent:Element\n let i = 0\n let buffer:HTMLElement = item\n\n do {\n parent = this._getItemParentElement(buffer)\n if (parent) {\n parents.push(parent)\n buffer = parent as HTMLElement\n }\n\n i++\n } while (parent !== null && i < 20)\n\n if (this.triggerElement) {\n parents.unshift(this.triggerElement)\n }\n\n return parents\n }\n\n // Prepare popper config for dropdown(see: https://popper.js.org/docs/v2/)\n private _getDropdownPopperConfig = (item: HTMLElement) => {\n // Placement\n const placementOption = this._getItemOption(item, 'placement')\n let placement: PopperPlacement = 'right'\n if (placementOption) {\n placement = placementOption as PopperPlacement\n }\n\n // Flip\n // const flipValue = this._getItemOption(item, 'flip')\n // const flip = flipValue ? flipValue.toString().split(',') : []\n\n // Offset\n const offsetValue = this._getItemOption(item, 'offset')\n const offset = offsetValue ? offsetValue.toString().split(',') : []\n\n // Strategy\n const strategy: 'absolute' | 'fixed' | undefined =\n this._getItemOption(item, 'overflow') === true ? 'absolute' : 'fixed'\n\n return {\n placement: placement,\n strategy: strategy,\n modifiers: [\n {\n name: 'offset',\n options: {\n offset: offset,\n },\n },\n {\n name: 'preventOverflow'\n },\n {\n name: 'flip',\n options: {\n // altBoundary: true,\n // fallbackPlacements: flip,\n flipVariations: false\n },\n },\n ],\n }\n }\n\n // Get item child element\n private _getItemChildElement = (item: HTMLElement) => {\n let selector = item\n\n const subItem = DataUtil.get(item, 'sub')\n if (subItem) {\n selector = subItem\n }\n\n if (selector) {\n //element = selector.querySelector('.show.menu-item[data-kt-menu-trigger]');\n const element = selector.querySelector('.menu-item[data-kt-menu-trigger]')\n if (element) {\n return element\n }\n }\n return null\n }\n\n // Get item child elements\n private _getItemChildElements = (item: HTMLElement) => {\n const children: Array = []\n let child:Element | null\n let i = 0\n let buffer = item\n do {\n child = this._getItemChildElement(buffer)\n if (child) {\n children.push(child)\n buffer = child as HTMLElement\n }\n\n i++\n } while (child !== null && i < 20)\n\n return children\n }\n\n // Get item sub element\n private _getItemSubElement = (item: HTMLElement) => {\n if (!item) {\n return null\n }\n\n if (this._isTriggerElement(item)) {\n return this.element\n }\n\n if (item.classList.contains('menu-sub')) {\n return item\n } else if (DataUtil.has(item, 'sub')) {\n return DataUtil.get(item, 'sub')\n } else {\n return getElementChild(item, '.menu-sub')\n }\n }\n\n private _getCss = (el: HTMLElement, styleProp: string) => {\n const defaultView = (el.ownerDocument || document).defaultView\n if (!defaultView) {\n return ''\n }\n\n // sanitize property name to css notation\n // (hyphen separated words eg. font-Size)\n styleProp = styleProp.replace(/([A-Z])/g, '-$1').toLowerCase()\n\n return defaultView.getComputedStyle(el, null).getPropertyValue(styleProp)\n }\n\n // Get item sub type\n private _getItemSubType = (element: HTMLElement) => {\n const sub = this._getItemSubElement(element)\n if (sub && parseInt(this._getCss(sub, 'z-index')) > 0) {\n return 'dropdown'\n } else {\n return 'accordion'\n }\n }\n\n // Test if item's sub is shown\n private _isItemSubShown = (item: HTMLElement) => {\n let sub = this._getItemSubElement(item)\n if (sub) {\n if (this._getItemSubType(item) === 'dropdown') {\n return sub.classList.contains('show') && sub.hasAttribute('data-popper-placement')\n } else {\n return item.classList.contains('show')\n }\n }\n\n return false\n }\n\n // Test if item dropdown is permanent\n private _isItemDropdownPermanent = (item: HTMLElement) => {\n return this._getItemOption(item, 'permanent') === true\n }\n\n // Test if item's parent is shown\n private _isItemParentShown = (item: HTMLElement) => {\n return getElementParents(item, '.menu-item.show').length > 0\n }\n\n // Test of it is item sub element\n private _isItemSubElement = (item: HTMLElement) => {\n return item.classList.contains('menu-sub')\n }\n\n // Test if item has sub\n private _hasItemSub = (item: HTMLElement) => {\n return item.classList.contains('menu-item') && item.hasAttribute('data-kt-menu-trigger')\n }\n\n // Get link element\n private _getItemLinkElement = (item: HTMLElement) => {\n return getElementChild(item, '.menu-link')\n }\n\n // Get toggle element\n private _getItemToggleElement = (item: HTMLElement) => {\n if (this.triggerElement) {\n return this.triggerElement\n }\n\n return this._getItemLinkElement(item)\n }\n\n // Show item dropdown\n private _showDropdown = (item: HTMLElement) => {\n if (EventHandlerUtil.trigger(this.element, 'kt.menu.dropdown.show') === false) {\n return\n }\n\n // Hide all currently shown dropdowns except current one\n MenuComponent.hideDropdowns(item)\n\n // const toggle = this._isTriggerElement(item) ? item : this._getItemLinkElement(item);\n const sub = this._getItemSubElement(item)\n const width = this._getItemOption(item, 'width')\n const height = this._getItemOption(item, 'height')\n\n let zindex = this.options.dropdown.zindex\n const parentZindex = getHighestZindex(item) // update\n // Apply a new z-index if dropdown's toggle element or it's parent has greater z-index // update\n if (parentZindex !== null && parentZindex >= zindex) {\n zindex = parentZindex + 1\n }\n\n if (zindex) {\n ElementStyleUtil.set(sub, 'z-index', zindex)\n }\n\n if (width) {\n ElementStyleUtil.set(sub, 'width', width)\n }\n\n if (height) {\n ElementStyleUtil.set(sub, 'height', height)\n }\n\n this.initDropdownPopper(item, sub)\n\n item.classList.add('show')\n item.classList.add('menu-dropdown')\n sub.classList.add('show')\n\n // Append the sub the the root of the menu\n if (this._getItemOption(item, 'overflow') === true) {\n document.body.appendChild(sub)\n DataUtil.set(item, 'sub', sub)\n DataUtil.set(sub, 'item', item)\n DataUtil.set(sub, 'menu', this)\n } else {\n DataUtil.set(sub, 'item', item)\n }\n\n EventHandlerUtil.trigger(this.element, 'kt.menu.dropdown.shown')\n }\n\n // Init dropdown popper(new)\n private initDropdownPopper = (item: HTMLElement, sub: HTMLElement) => {\n // Setup popper instance\n let reference\n const attach = this._getItemOption(item, 'attach') as string\n\n if (attach) {\n if (attach === 'parent') {\n reference = item.parentNode\n } else {\n reference = document.querySelector(attach)\n }\n } else {\n reference = item\n }\n\n if (reference) {\n const popper = createPopper(\n reference as Element | VirtualElement,\n sub,\n this._getDropdownPopperConfig(item)\n )\n DataUtil.set(item, 'popper', popper)\n }\n }\n\n // Hide item dropdown\n private _hideDropdown = (item: HTMLElement) => {\n if (EventHandlerUtil.trigger(this.element, 'kt.menu.dropdown.hide') === false) {\n return\n }\n\n const sub = this._getItemSubElement(item)\n ElementStyleUtil.set(sub, 'z-index', '')\n ElementStyleUtil.set(sub, 'width', '')\n ElementStyleUtil.set(sub, 'height', '')\n item.classList.remove('show')\n item.classList.remove('menu-dropdown')\n sub.classList.remove('show')\n\n // Append the sub back to it's parent\n if (this._getItemOption(item, 'overflow') === true) {\n if (item.classList.contains('menu-item')) {\n item.appendChild(sub)\n } else {\n insertAfterElement(this.element, item)\n }\n\n DataUtil.remove(item, 'sub')\n DataUtil.remove(sub, 'item')\n DataUtil.remove(sub, 'menu')\n }\n\n if (DataUtil.has(item, 'popper') === true) {\n DataUtil.get(item, 'popper').destroy()\n DataUtil.remove(item, 'popper')\n }\n\n // Destroy popper(new)\n this.destroyDropdownPopper(item)\n EventHandlerUtil.trigger(this.element, 'kt.menu.dropdown.hidden')\n }\n\n // Destroy dropdown popper(new)\n private destroyDropdownPopper = (item: HTMLElement) => {\n if (DataUtil.has(item, 'popper') === true) {\n DataUtil.get(item, 'popper').destroy()\n DataUtil.remove(item, 'popper')\n }\n\n EventHandlerUtil.trigger(this.element, 'kt.menu.dropdown.hidden')\n }\n\n private _showAccordion = (item: HTMLElement) => {\n if (EventHandlerUtil.trigger(this.element, 'kt.menu.accordion.show') === false) {\n return\n }\n\n if (this.options.accordion.expand === false) {\n this._hideAccordions(item)\n }\n\n if (DataUtil.has(item, 'popper') === true) {\n this._hideDropdown(item)\n }\n\n item.classList.add('hover') // updateWW\n item.classList.add('showing')\n\n const subElement = this._getItemSubElement(item)\n if (subElement) {\n const sub = subElement as HTMLElement\n slideDown(sub, this.options.accordion.slideSpeed, () => {\n item.classList.remove('showing')\n item.classList.add('show')\n sub.classList.add('show')\n EventHandlerUtil.trigger(this.element, 'kt.menu.accordion.shown')\n })\n }\n }\n\n private _hideAccordion = (item: HTMLElement) => {\n if (EventHandlerUtil.trigger(this.element, 'kt.menu.accordion.hide') === false) {\n return\n }\n\n const sub = this._getItemSubElement(item)\n item.classList.add('hiding')\n\n if (sub) {\n slideUp(sub, this.options.accordion.slideSpeed, () => {\n item.classList.remove('hiding')\n item.classList.remove('show')\n sub.classList.remove('show')\n item.classList.remove('hover') // update\n EventHandlerUtil.trigger(this.element, 'kt.menu.accordion.hidden')\n })\n }\n }\n\n // Hide all shown accordions of item\n private _hideAccordions = (item: HTMLElement) => {\n const itemsToHide = this.element.querySelectorAll('.show[data-kt-menu-trigger]')\n if (itemsToHide && itemsToHide.length > 0) {\n for (var i = 0, len = itemsToHide.length; i < len; i++) {\n const itemToHide = itemsToHide[i] as HTMLElement\n\n if (\n this._getItemSubType(itemToHide) === 'accordion' &&\n itemToHide !== item &&\n item.contains(itemToHide) === false &&\n itemToHide.contains(item) === false\n ) {\n this._hideAccordion(itemToHide)\n }\n }\n }\n }\n\n // Event Handlers\n // Reset item state classes if item sub type changed\n private _reset = (item: HTMLElement) => {\n if (this._hasItemSub(item) === false) {\n return\n }\n\n const sub = this._getItemSubElement(item)\n\n // Reset sub state if sub type is changed during the window resize\n if (DataUtil.has(item, 'type') && DataUtil.get(item, 'type') !== this._getItemSubType(item)) {\n // updated\n item.classList.remove('hover')\n item.classList.remove('show')\n item.classList.remove('show')\n if (sub && sub.removeClass) {\n sub.removeClass(sub, 'show')\n }\n } // updated\n }\n\n // TODO: not done\n private _destroy = () => {}\n\n // Update all item state classes if item sub type changed\n private _update = () => {\n const items = this.element.querySelectorAll('.menu-item[data-kt-menu-trigger]')\n items.forEach((el) => this._reset(el as HTMLElement))\n }\n\n // Hide item sub\n private _hide = (item: HTMLElement) => {\n if (!item) {\n return\n }\n\n if (this._isItemSubShown(item) === false) {\n return\n }\n\n if (this._getItemSubType(item) === 'dropdown') {\n this._hideDropdown(item)\n } else if (this._getItemSubType(item) === 'accordion') {\n this._hideAccordion(item)\n }\n }\n\n // Show item sub\n private _show = (item: HTMLElement) => {\n if (!item) {\n return\n }\n\n if (this._isItemSubShown(item) === true) {\n return\n }\n\n if (this._getItemSubType(item) === 'dropdown') {\n this._showDropdown(item) // // show current dropdown\n } else if (this._getItemSubType(item) === 'accordion') {\n this._showAccordion(item)\n }\n\n // Remember last submenu type\n\n DataUtil.set(item, 'type', this._getItemSubType(item)) // updated\n }\n\n // Toggle item sub\n private _toggle = (item: HTMLElement) => {\n if (!item) {\n return\n }\n\n if (this._isItemSubShown(item) === true) {\n this._hide(item)\n } else {\n this._show(item)\n }\n }\n\n // Mouseout handle\n private _mouseout = (element: HTMLElement, e: MouseEvent) => {\n const item = this._getItemElement(element)\n if (!item) {\n return\n }\n\n if (this._getItemOption(item, 'trigger') !== 'hover') {\n return\n }\n\n const timeout = setTimeout(() => {\n if (DataUtil.get(item, 'hover') === '1') {\n this._hide(item)\n }\n }, this.options.dropdown.hoverTimeout)\n\n DataUtil.set(item, 'hover', '1')\n DataUtil.set(item, 'timeout', timeout)\n }\n\n // Mouseover handle\n private _mouseover = (element: HTMLElement, e: MouseEvent) => {\n const item = this._getItemElement(element)\n if (!item) {\n return\n }\n\n if (this._getItemOption(item, 'trigger') !== 'hover') {\n return\n }\n\n if (DataUtil.get(item, 'hover') === '1') {\n clearTimeout(DataUtil.get(item, 'timeout'))\n DataUtil.remove(item, 'hover')\n DataUtil.remove(item, 'timeout')\n }\n\n this._show(item)\n }\n\n // Dismiss handler\n private _dismiss = (element: HTMLElement, e: Event) => {\n const item = this._getItemElement(element)\n const items = this._getItemChildElements(item)\n //if ( item !== null && _getItemOption(item, 'trigger') === 'click' && _getItemSubType(item) === 'dropdown' ) {\n const itemSubType = this._getItemSubType(item)\n if (item !== null && itemSubType === 'dropdown') {\n this._hide(item) // hide items dropdown\n\n // Hide all child elements as well\n if (items.length > 0) {\n for (let i = 0, len = items.length; i < len; i++) {\n //if ( _getItemOption(item, 'trigger') === 'click' && _getItemSubType(item) === 'dropdown' ) {\n if (items[i] !== null && this._getItemSubType(items[i] as HTMLElement) === 'dropdown') {\n this._hide(items[i] as HTMLElement)\n }\n }\n }\n }\n }\n\n // Link handler\n private _link = (element: HTMLElement, e: Event) => {\n if (EventHandlerUtil.trigger(this.element, 'kt.menu.link.click') === false) {\n return\n }\n\n // Dismiss all shown dropdowns\n MenuComponent.hideDropdowns(undefined)\n EventHandlerUtil.trigger(this.element, 'kt.menu.link.clicked')\n }\n\n private _click = (element: HTMLElement, e: Event) => {\n e.preventDefault()\n const item = this._getItemElement(element)\n if (this._getItemOption(item, 'trigger') !== 'click') {\n return\n }\n\n if (this._getItemOption(item, 'toggle') === false) {\n this._show(item)\n } else {\n this._toggle(item)\n }\n }\n\n ///////////////////////\n // ** Public API ** //\n ///////////////////////\n public click = (element: HTMLElement, e: Event) => {\n return this._click(element, e)\n }\n\n public link = (element: HTMLElement, e: Event) => {\n return this._link(element, e)\n }\n\n public dismiss = (element: HTMLElement, e: Event) => {\n return this._dismiss(element, e)\n }\n\n public mouseover = (element: HTMLElement, e: Event) => {\n return this._mouseover(element, e as MouseEvent)\n }\n\n public mouseout = (element: HTMLElement, e: Event) => {\n return this._mouseout(element, e as MouseEvent)\n }\n\n // General Methods\n public getItemTriggerType = (item: HTMLElement) => {\n return this._getItemOption(item, 'trigger')\n }\n\n public getItemSubType = (element: HTMLElement) => {\n return this._getItemSubType(element)\n }\n\n public show = (item: HTMLElement) => {\n return this._show(item)\n }\n\n public hide = (item: HTMLElement) => {\n return this._hide(item)\n }\n\n public reset = (item: HTMLElement) => {\n return this._reset(item)\n }\n\n public update = () => {\n return this._update()\n }\n\n public getElement = () => {\n return this.element\n }\n\n public getItemLinkElement = (item: HTMLElement) => {\n return this._getItemLinkElement(item)\n }\n\n public getItemToggleElement = (item: HTMLElement) => {\n return this._getItemToggleElement(item)\n }\n\n public getItemSubElement = (item: HTMLElement) => {\n return this._getItemSubElement(item)\n }\n\n public getItemParentElements = (item: HTMLElement) => {\n return this._getItemParentElements(item)\n }\n\n public isItemSubShown = (item: HTMLElement) => {\n return this._isItemSubShown(item)\n }\n\n public isItemParentShown = (item: HTMLElement) => {\n return this._isItemParentShown(item)\n }\n\n public getTriggerElement = () => {\n return this.triggerElement\n }\n\n public isItemDropdownPermanent = (item: HTMLElement) => {\n return this._isItemDropdownPermanent(item)\n }\n\n // Accordion Mode Methods\n public hideAccordions = (item: HTMLElement) => {\n return this._hideAccordions(item)\n }\n\n // Event API\n public on = (name: string, handler: any) => {\n return EventHandlerUtil.on(this.element, name, handler)\n }\n\n public one = (name: string, handler: any) => {\n return EventHandlerUtil.one(this.element, name, handler)\n }\n\n public off = (name: string) => {\n return EventHandlerUtil.off(this.element, name)\n }\n\n // public static methods\n // Get KTMenu instance by element\n public static getInstance = (element: HTMLElement) => {\n // Element has menu DOM reference in it's DATA storage\n const elementMenu = DataUtil.get(element, 'menu')\n if (elementMenu) {\n return elementMenu\n }\n\n // Element has .menu parent\n const menu = element.closest('.menu')\n if (menu) {\n const menuData = DataUtil.get(menu as HTMLElement, 'menu')\n if (menuData) {\n return menuData\n }\n }\n\n // Element has a parent with DOM reference to .menu in it's DATA storage\n if (element.classList.contains('menu-link')) {\n const sub = element.closest('.menu-sub')\n if (sub) {\n const subMenu = DataUtil.get(sub as HTMLElement, 'menu')\n if (subMenu) {\n return subMenu\n }\n }\n }\n\n return null\n }\n\n // Hide all dropdowns and skip one if provided\n public static hideDropdowns = (skip: HTMLElement | undefined) => {\n const items = document.querySelectorAll('.show.menu-dropdown[data-kt-menu-trigger]')\n\n if (items && items.length > 0) {\n for (let i = 0, len = items.length; i < len; i++) {\n const item = items[i]\n const menu = MenuComponent.getInstance(item as HTMLElement)\n\n if (menu && menu.getItemSubType(item) === 'dropdown') {\n if (skip) {\n if (\n menu.getItemSubElement(item).contains(skip) === false &&\n item.contains(skip) === false &&\n item !== skip\n ) {\n menu.hide(item)\n }\n } else {\n menu.hide(item)\n }\n }\n }\n }\n }\n\n public static updateDropdowns = () => {\n const items = document.querySelectorAll('.show.menu-dropdown[data-kt-menu-trigger]')\n if (items && items.length > 0) {\n for (var i = 0, len = items.length; i < len; i++) {\n var item = items[i]\n\n if (DataUtil.has(item as HTMLElement, 'popper')) {\n DataUtil.get(item as HTMLElement, 'popper').forceUpdate()\n }\n }\n }\n }\n\n // Global handlers\n public static createInstances = (selector: string) => {\n // Initialize menus\n document.querySelectorAll(selector).forEach((el) => {\n const menuItem = el as HTMLElement\n let menuInstance = MenuComponent.getInstance(menuItem)\n if (!menuInstance) {\n menuInstance = new MenuComponent(el as HTMLElement, defaultMenuOptions)\n }\n })\n }\n\n public static initGlobalHandlers = () => {\n // Dropdown handler\n document.addEventListener('click', (e) => {\n const menuItems = document.querySelectorAll('.show.menu-dropdown[data-kt-menu-trigger]')\n if (menuItems && menuItems.length > 0) {\n for (let i = 0; i < menuItems.length; i++) {\n const item = menuItems[i] as HTMLElement\n const menuObj = MenuComponent.getInstance(item) as MenuComponent\n if (menuObj && menuObj.getItemSubType(item) === 'dropdown') {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const menu = menuObj.getElement()\n const sub = menuObj.getItemSubElement(item) as HTMLElement\n if (item === e.target || item.contains(e.target as HTMLElement)) {\n continue\n }\n\n if (sub && (sub === e.target || sub.contains(e.target as HTMLElement))) {\n continue\n }\n menuObj.hide(item)\n }\n }\n }\n })\n\n // Sub toggle handler\n DOMEventHandlerUtil.on(\n document.body,\n '.menu-item[data-kt-menu-trigger] > .menu-link, [data-kt-menu-trigger]:not(.menu-item):not([data-kt-menu-trigger=\"auto\"])',\n 'click',\n function (this: HTMLElement, e: Event) {\n const menu = MenuComponent.getInstance(this) as MenuComponent\n if (menu) {\n return menu.click(this, e)\n }\n }\n )\n\n // // Link handler\n DOMEventHandlerUtil.on(\n document.body,\n '.menu-item:not([data-kt-menu-trigger]) > .menu-link',\n 'click',\n function (this: HTMLElement, e: Event) {\n e.stopPropagation()\n const menu = MenuComponent.getInstance(this)\n if (menu && menu.link) {\n return menu.link(this, e)\n }\n }\n )\n\n // Dismiss handler\n DOMEventHandlerUtil.on(\n document.body,\n '[data-kt-menu-dismiss=\"true\"]',\n 'click',\n function (this: HTMLElement, e: Event) {\n const menu = MenuComponent.getInstance(this) as MenuComponent\n if (menu) {\n return menu.dismiss(this, e)\n }\n }\n )\n\n // Mouseover handler\n DOMEventHandlerUtil.on(\n document.body,\n '[data-kt-menu-trigger], .menu-sub',\n 'mouseover',\n function (this: HTMLElement, e: Event) {\n const menu = MenuComponent.getInstance(this) as MenuComponent\n if (menu && menu.getItemSubType(this) === 'dropdown') {\n return menu.mouseover(this, e)\n }\n }\n )\n\n // Mouseout handler\n DOMEventHandlerUtil.on(\n document.body,\n '[data-kt-menu-trigger], .menu-sub',\n 'mouseout',\n function (this: HTMLElement, e: Event) {\n const menu = MenuComponent.getInstance(this) as MenuComponent\n if (menu && menu.getItemSubType(this) === 'dropdown') {\n return menu.mouseout(this, e)\n }\n }\n )\n\n // Resize handler\n window.addEventListener('resize', () => {\n let timer\n throttle(\n timer,\n () => {\n // Locate and update Drawer instances on window resize\n const elements = document.querySelectorAll('[data-kt-menu=\"true\"]')\n elements.forEach((el) => {\n const menu = MenuComponent.getInstance(el as HTMLElement)\n if (menu) {\n menu.update()\n }\n })\n },\n 200\n )\n })\n }\n\n public static bootstrap = () => {\n MenuComponent.initGlobalHandlers()\n MenuComponent.createInstances('[data-kt-menu=\"true\"]')\n }\n\n public static reinitialization = () => {\n MenuComponent.createInstances('[data-kt-menu=\"true\"]')\n }\n\n public static createInsance = (\n selector: string,\n options: MenuOptions = defaultMenuOptions\n ): MenuComponent | undefined => {\n const element = document.body.querySelector(selector)\n if (!element) {\n return\n }\n const item = element as HTMLElement\n let menu = MenuComponent.getInstance(item)\n if (!menu) {\n menu = new MenuComponent(item, options)\n }\n return menu\n }\n}\n\nexport {MenuComponent, defaultMenuOptions}\n","import {\n MenuComponent,\n ScrollComponent,\n StickyComponent,\n ToggleComponent,\n DrawerComponent,\n SwapperComponent,\n} from \"@/assets/ts/components\";\n\n/**\n * @description Initialize KeenThemes custom components\n */\nconst initializeComponents = () => {\n setTimeout(() => {\n ToggleComponent.bootstrap();\n StickyComponent.bootstrap();\n MenuComponent.bootstrap();\n ScrollComponent.bootstrap();\n DrawerComponent.bootstrap();\n SwapperComponent.bootstrap();\n }, 0);\n};\n\n/**\n * @description Reinitialize KeenThemes custom components\n */\nconst reinitializeComponents = () => {\n setTimeout(() => {\n ToggleComponent.reinitialization();\n StickyComponent.reInitialization();\n MenuComponent.reinitialization();\n reinitializeScrollComponent().then(() => {\n ScrollComponent.updateAll();\n });\n DrawerComponent.reinitialization();\n SwapperComponent.reinitialization();\n }, 0);\n};\n\nconst reinitializeScrollComponent = async () => {\n await ScrollComponent.reinitialization();\n};\n\nexport {\n initializeComponents,\n reinitializeComponents,\n reinitializeScrollComponent,\n};\n","import Axios, { AxiosInstance } from \"axios\";\nimport AuthService from \"@/core/services/AuthService\";\nimport Swal from \"sweetalert2/dist/sweetalert2.min.js\";\n\nimport router from \"@/router\";\nimport { App } from \"vue\";\nimport VueAxios from \"vue-axios\";\nimport axios from \"axios\";\nimport HTTPService from \"@/core/services/HTTPService\";\nimport JwtService from \"@/core/services/JwtService\";\n\nclass ApiService {\n public static vueInstance: App;\n private static _httpRequest: AxiosInstance = Axios.create(\n ApiService.getConfig()\n );\n public static accessTokenKey = \"token\";\n\n public static async init(app: App) {\n ApiService.vueInstance = app;\n ApiService.vueInstance.use(VueAxios, axios);\n\n ApiService.createRequestHandler();\n ApiService.events();\n\n const r = router.currentRoute.value;\n\n const needAuth =\n typeof r.meta.auth !== \"undefined\" ? !(r.meta.auth === false) : true;\n\n if (needAuth) {\n await AuthService.me();\n }\n }\n\n public static get httpRequest(): AxiosInstance {\n return ApiService._httpRequest;\n }\n\n public static set httpRequest(value: AxiosInstance) {\n ApiService._httpRequest = value;\n }\n\n public static createRequestHandler() {\n ApiService._httpRequest = Axios.create(ApiService.getConfig());\n }\n\n public static getConfig() {\n const token = localStorage.getItem(ApiService.accessTokenKey);\n let config;\n\n if (token) {\n ApiService.config.headers.Authorization = `Bearer ${token}`;\n config = ApiService.config;\n } else {\n config = ApiService.configWithoutAuth;\n }\n\n return config;\n }\n\n public static events() {\n ApiService._httpRequest.interceptors.response.use(\n (res) => {\n return res;\n },\n (err) => {\n // Exception\n if (\n typeof err.message !== \"undefined\" &&\n err.message.length > 0 &&\n typeof err.response === \"undefined\"\n ) {\n router.push(\"/500\").then(() => {\n console.error(err);\n });\n } else if (err.response.status === 401) {\n if (err.response.data.message === \"Token has expired\") {\n return Axios.post(\n process.env.VUE_APP_API_URL + \"refresh\",\n {},\n {\n headers: {\n Authorization:\n \"Bearer \" + localStorage.getItem(ApiService.accessTokenKey),\n },\n }\n )\n .then((res) => {\n JwtService.saveToken(res.data.access_token);\n\n ApiService.createRequestHandler();\n const header = err.config.headers;\n header.Authorization = \"Bearer \" + res.data.access_token;\n\n err.config.headers = header;\n\n // double request\n return ApiService._httpRequest.request(err.config);\n })\n .catch((err) => {\n if (err.response.status === 405) {\n if (err.response.data.data.type === \"expired\") {\n Swal.fire({\n text: \"Ошибка авторизации!\",\n icon: \"error\",\n buttonsStyling: false,\n confirmButtonText: \"ОК\",\n customClass: {\n confirmButton: \"btn fw-bold btn-light-primary\",\n },\n });\n\n AuthService.removeToken();\n router.push(\"/login\").then(() => {\n console.info(\"redirect to login\");\n });\n }\n } else {\n AuthService.removeToken();\n router.push(\"/login\").then(() => {\n console.info(\"redirect to login\");\n });\n }\n\n return null;\n });\n } else if (\n err.response.data.message ===\n \"Token has expired and can no longer be refreshed\"\n ) {\n router.push(\"/login\").then((r) => {\n console.warn(\"Error redirect: \" + r);\n });\n } else {\n ApiService.unsetToken();\n if (router.currentRoute.value.path !== \"/login\") {\n router.push(\"/login\").then((r) => {\n console.warn(\"Error redirect: \" + r);\n });\n }\n }\n } else if (err.response.status === 412 || err.response.status === 428) {\n Swal.fire({\n text: \"Ошибка запроса, обратитесь в службу поддержки. Код: 1006\",\n icon: \"error\",\n buttonsStyling: false,\n confirmButtonText: \"ОК\",\n customClass: {\n confirmButton: \"btn fw-bold btn-light-primary\",\n },\n });\n } else if (err.response.status === 413) {\n Swal.fire({\n text: \"Ошибка запроса, обратитесь в службу поддержки. Код: 1005\",\n icon: \"error\",\n buttonsStyling: false,\n confirmButtonText: \"ОК\",\n customClass: {\n confirmButton: \"btn fw-bold btn-light-primary\",\n },\n });\n } else if (err.response.status === 422 || err.response.status === 429) {\n err.data = err.response.data;\n return err;\n } else if (err.response.status === 404) {\n // redirect to 500 page\n router.push(\"/404\").then(() => {\n console.warn(\"404 Server error\");\n });\n } else if (err.response.status === 500) {\n const elements = document.getElementsByClassName(\"modal-backdrop\");\n\n if (elements.length > 0) {\n for (let i = 0; i < elements.length; i++) {\n (elements[i] as HTMLElement).style.display = \"none\";\n }\n }\n\n // redirect to 500 page\n router.push(\"/500\").then(() => {\n console.warn(\"500 Server error\");\n });\n } else {\n console.log(\"TEST\");\n if (typeof err.response.data !== \"undefined\") {\n err.data = err.response.data;\n return null;\n }\n }\n }\n );\n }\n\n public static unsetToken() {\n localStorage.removeItem(ApiService.accessTokenKey);\n localStorage.removeItem(\"email\");\n }\n\n public static config = {\n baseURL: process.env.VUE_APP_API_URL,\n headers: {\n \"Content-Type\": \"application/json\",\n \"X-Requested-With\": \"XMLHttpRequest\",\n Authorization: \"\",\n },\n };\n\n public static configWithoutAuth = {\n baseURL: process.env.VUE_APP_API_URL,\n headers: {\n \"Content-Type\": \"application/json\",\n \"X-Requested-With\": \"XMLHttpRequest\",\n },\n };\n}\n\nexport default ApiService;\n","import HTTPService from \"@/core/services/HTTPService\";\n// import { AxiosResponse } from \"axios\";\nimport { createStore, useStore } from \"vuex\";\nimport { useRouter } from \"vue-router\";\nimport Swal from \"sweetalert2/dist/sweetalert2.min.js\";\nimport * as Yup from \"yup\";\nimport AuthModule from \"@/store/modules/AuthModule\";\nimport { Mutations } from \"@/store/enums/StoreEnums\";\n\nclass AuthService {\n public static async me() {\n const store = createStore({\n modules: {\n AuthModule,\n },\n });\n\n if (AuthService.getToken().length > 0) {\n await HTTPService.post(\"me\", {})\n .then(({ data }) => {\n if (\n typeof data.data === \"undefined\" ||\n typeof data.data.id === \"undefined\"\n ) {\n store.commit(Mutations.SET_ERROR, HTTPService.serverError());\n\n store.commit(Mutations.PURGE_AUTH, data);\n } else {\n store.commit(Mutations.SET_AUTH, data.data);\n }\n })\n .catch(({ response }) => {\n //\n });\n }\n }\n\n public static removeToken() {\n localStorage.removeItem(\"token\");\n localStorage.removeItem(\"email\");\n }\n\n public static getToken(): string {\n return localStorage.getItem(\"token\") ?? \"\";\n }\n\n /*\n login(email: string, password: string) {\n const urn = \"/auth/login\";\n const data = { email, password };\n\n return ApiService.httpRequest.post(urn, data);\n }\n\n logout() {\n const urn = \"/auth/logout\";\n return ApiService.httpRequest.post(urn);\n }\n\n signup(\n email: string,\n password: string,\n passwordConfirm: string,\n name: string\n ) {\n const urn = \"/auth/signup\";\n const data = { email, password, passwordConfirm, name };\n\n return ApiService.httpRequest.post(urn, data);\n }\n\n isAuthorized(): boolean {\n return this.getToken().length > 0;\n }\n\n getToken(): string {\n return localStorage.getItem(\"token\") ?? \"\";\n }\n\n getEmail(): string {\n return localStorage.getItem(\"email\") ?? \"\";\n }\n\n showMenu() {\n return this.isAuthorized();\n }\n\n setToken() {\n ApiService.createRequestHandler();\n }\n\n\n\n updateLocalStorage(responseServer: AxiosResponse, email: string) {\n if (\n responseServer.data.data &&\n typeof responseServer.data.data.accessToken !== \"undefined\"\n ) {\n localStorage.setItem(\"token\", responseServer.data.data.accessToken);\n localStorage.setItem(\"email\", email);\n\n const sessionBackUrl = sessionStorage.getItem(\"backUrl\");\n\n return sessionBackUrl !== null ? sessionBackUrl : \"/\";\n }\n\n return null;\n }\n\n hideNonAuthSection(): boolean {\n const currentName = router.currentRoute.value.name;\n return currentName == \"login\" || currentName == \"signup\";\n }*/\n}\n\nexport default AuthService;\n","import ApiService from \"@/core/services/ApiService\";\n\nclass HTTPService {\n public static post(urn: string, data: object) {\n ApiService.events();\n return ApiService.httpRequest.post(urn, data);\n }\n\n public static patch(urn: string, data: object) {\n ApiService.events();\n return ApiService.httpRequest.patch(urn, data);\n }\n\n public static uploadFile(urn: string, data: object) {\n ApiService.events();\n return ApiService.httpRequest.post(urn, data, {\n headers: {\n \"Content-Type\": \"multipart/form-data\",\n },\n });\n }\n\n public static get(urn: string, paramsRequest = {}) {\n ApiService.events();\n return ApiService.httpRequest.get(urn, { params: paramsRequest });\n }\n\n public static delete(urn: string, paramsRequest = {} as any) {\n ApiService.events();\n\n return ApiService.httpRequest.post(urn, {\n params: paramsRequest,\n _method: \"delete\",\n });\n }\n\n public static isValid(response) {\n return response !== null && typeof response !== \"undefined\";\n }\n\n public static serverError() {\n return { 0: \"Ошибка сервера, обратитесь в службу поддержки!\" };\n }\n}\n\nexport default HTTPService;\n","import HTTPService from \"@/core/services/HTTPService\";\n\nconst ID_TOKEN_KEY = \"token\" as string;\n\n/**\n * @description get token form localStorage\n */\nexport const getToken = (): string | null => {\n return window.localStorage.getItem(ID_TOKEN_KEY) ?? \"\";\n};\n\n/**\n * @description save token into localStorage\n * @param token: string\n */\nexport const saveToken = (token: string): void => {\n window.localStorage.setItem(ID_TOKEN_KEY, token);\n};\n\n/**\n * @description remove token form localStorage\n */\nexport const destroyToken = (): void => {\n window.localStorage.removeItem(ID_TOKEN_KEY);\n};\n\nexport default { getToken, saveToken, destroyToken };\n","import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_router_view = _resolveComponent(\"router-view\")!\n\n return (_openBlock(), _createBlock(_component_router_view))\n}","\n\n\n\n\n","import { render } from \"./App.vue?vue&type=template&id=ee52d760&ts=true\"\nimport script from \"./App.vue?vue&type=script&lang=ts\"\nexport * from \"./App.vue?vue&type=script&lang=ts\"\n\nimport \"./App.vue?vue&type=style&index=0&id=ee52d760&lang=scss\"\n\nimport exportComponent from \"../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { createI18n } from \"vue-i18n\";\n\nconst messages = {\n en: {\n dashboard: \"Dashboard\",\n layoutBuilder: \"Layout builder\",\n craft: \"Crafted\",\n pages: \"Pages\",\n profile: \"Profile\",\n profileOverview: \"Overview\",\n projects: \"Projects\",\n campaigns: \"Campaigns\",\n documents: \"Documents\",\n connections: \"Connections\",\n wizards: \"Wizards\",\n horizontal: \"Horizontal\",\n vertical: \"Vertical\",\n account: \"Account\",\n accountOverview: \"Overview\",\n settings: \"Settings\",\n authentication: \"Authentication\",\n basicFlow: \"Basic Flow\",\n signIn: \"Sign-in\",\n signUp: \"Sign-up\",\n passwordReset: \"Password Reset\",\n multiStepSignUp: \"Multi-steps Sign up\",\n error404: \"Error 404\",\n error500: \"Error 500\",\n apps: \"Apps\",\n chat: \"Chat\",\n privateChat: \"Private Chat\",\n groupChat: \"Group Chat\",\n drawerChat: \"Drawer Chat\",\n widgets: \"Widgets\",\n widgetsLists: \"Lists\",\n widgetsStatistics: \"Statistics\",\n widgetsCharts: \"Charts\",\n widgetsMixed: \"Mixed\",\n widgetsTables: \"Tables\",\n widgetsFeeds: \"Feeds\",\n changelog: \"Changelog\",\n docsAndComponents: \"Docs & Components\",\n megaMenu: \"Mega Menu\",\n exampleLink: \"Example link\",\n modals: \"Modals\",\n general: \"General\",\n inviteFriends: \"Invite Friends\",\n viewUsers: \"View Users\",\n upgradePlan: \"Upgrade Plan\",\n shareAndEarn: \"Share & Earn\",\n forms: \"Forms\",\n newTarget: \"New Target\",\n newCard: \"New Card\",\n newAddress: \"New Address\",\n createAPIKey: \"Create API Key\",\n twoFactorAuth: \"Two Factor Auth\",\n createApp: \"Create App\",\n createAccount: \"Create Account\",\n documentation: \"Documentation\",\n components: \"Components\",\n resources: \"Resources\",\n activity: \"Activity\",\n customers: \"Customers\",\n gettingStarted: \"Getting Started\",\n customersListing: \"Customers Listing\",\n customerDetails: \"Customers Details\",\n calendarApp: \"Calendar\",\n subscriptions: \"Subscriptions\",\n getStarted: \"Getting Started\",\n subscriptionList: \"Subscription List\",\n addSubscription: \"Add Subscription\",\n viewSubscription: \"View Subscription\",\n },\n es: {\n dashboard: \"Tablero\",\n layoutBuilder: \"Constructor de maquetación\",\n craft: \"Elaborado\",\n pages: \"Paginas\",\n profile: \"Perfil\",\n profileOverview: \"Descripción general\",\n projects: \"Proyectos\",\n campaigns: \"Campañas\",\n documents: \"Documentos\",\n connections: \"Conexiones\",\n wizards: \"Magos\",\n horizontal: \"Horizontal\",\n vertical: \"Vertical\",\n account: \"Cuenta\",\n accountOverview: \"Descripción general\",\n settings: \"Ajustes\",\n authentication: \"Autenticación\",\n basicFlow: \"Flujo básico\",\n signIn: \"Registrarse\",\n signUp: \"Inscribirse\",\n passwordReset: \"Restablecimiento de contraseña\",\n multiStepSignUp: \"Regístrese Multi-Pasos\",\n error404: \"Error 404\",\n error500: \"Error 500\",\n apps: \"Aplicaciones\",\n chat: \"Chat\",\n privateChat: \"Chat privado\",\n groupChat: \"Grupo de chat\",\n drawerChat: \"Chat del cajón\",\n widgets: \"Widgets\",\n widgetsLists: \"Liza\",\n widgetsStatistics: \"Estadísticas\",\n widgetsCharts: \"Gráficos\",\n widgetsMixed: \"Mezclada\",\n widgetsTables: \"Mesas\",\n widgetsFeeds: \"Alimenta\",\n changelog: \"Registro de cambios\",\n docsAndComponents: \"Documentos & Componentes\",\n megaMenu: \"Mega menú\",\n exampleLink: \"Enlace de ejemplo\",\n modals: \"Modales\",\n general: \"General\",\n inviteFriends: \"Invitar A Amigos\",\n viewUsers: \"Ver Usuarios\",\n upgradePlan: \"Plan De Actualización\",\n shareAndEarn: \"Compartir Y Ganar\",\n forms: \"Formas\",\n newTarget: \"Nuevo Objetivo\",\n newCard: \"Nueva Tarjeta\",\n newAddress: \"Nueva Direccion\",\n createAPIKey: \"Crea Clave De Api\",\n twoFactorAuth: \"Dos Factores\",\n createApp: \"Crear Aplicacion\",\n createAccount: \"Crear Una Cuenta\",\n activity: \"Actividad\",\n documentation: \"Documentación\",\n components: \"Componentes\",\n resources: \"Recursos\",\n customers: \"Clientes\",\n gettingStarted: \"Empezando\",\n customersListing: \"Listado De Clientes\",\n customerDetails: \"Detalles De Los Clientes\",\n calendarApp: \"Calendario\",\n subscriptions: \"Suscripciones\",\n getStarted: \"Empezando\",\n subscriptionList: \"Lista De Suscripción\",\n addSubscription: \"Añadir Suscripción\",\n viewSubscription: \"Suscripción\",\n },\n de: {\n dashboard: \"Instrumententafel\",\n layoutBuilder: \"Layout-Builder\",\n craft: \"Hergestellt\",\n pages: \"Seiten\",\n profile: \"Profil\",\n profileOverview: \"Überblick\",\n projects: \"Projekte\",\n campaigns: \"Kampagnen\",\n documents: \"Unterlagen\",\n connections: \"Anschlüsse\",\n wizards: \"Zauberer\",\n horizontal: \"Horizontal\",\n vertical: \"Vertikal\",\n account: \"Konto\",\n accountOverview: \"Überblick\",\n settings: \"Die Einstellungen\",\n authentication: \"Authentifizierung\",\n basicFlow: \"Grundfluss\",\n signIn: \"Einloggen\",\n signUp: \"Anmelden\",\n passwordReset: \"Passwort zurücksetzen\",\n multiStepSignUp: \"Multi-Steps-Anmeldung\",\n error404: \"Fehler 404\",\n error500: \"Fehler 500\",\n apps: \"Apps\",\n chat: \"Plaudern\",\n privateChat: \"Private Chat\",\n groupChat: \"Privater Chat\",\n drawerChat: \"Gruppenchat Schubladen-Chat\",\n widgets: \"Widgets\",\n widgetsLists: \"Listen\",\n widgetsStatistics: \"Statistiken\",\n widgetsCharts: \"Diagramme\",\n widgetsMixed: \"Gemischt\",\n widgetsTables: \"Tabellen\",\n widgetsFeeds: \"Einspeisungen\",\n changelog: \"Änderungsprotokoll\",\n docsAndComponents: \"Dokumente & Komponenten\",\n megaMenu: \"Mega-Menü\",\n exampleLink: \"Beispiellink\",\n modals: \"Modale\",\n general: \"Allgemeines\",\n inviteFriends: \"Freunde Einladen\",\n viewUsers: \"Benutzer Anzeigen.\",\n upgradePlan: \"Upgrade-Plan\",\n shareAndEarn: \"Teilen & Verdienen\",\n forms: \"Formen\",\n newTarget: \"Neues Ziel\",\n newCard: \"Neue Karte\",\n newAddress: \"Neue Adresse\",\n createAPIKey: \"Api-Key Erstellen\",\n twoFactorAuth: \"Zwei Faktor Auth.\",\n createApp: \"App Erstellen\",\n createAccount: \"Benutzerkonto Erstellen\",\n activity: \"Aktivität\",\n documentation: \"Dokumentation\",\n components: \"Bauteile\",\n resources: \"Ressourcen\",\n customers: \"Kunden\",\n gettingStarted: \"Einstieg\",\n customersListing: \"Kundenauflistung\",\n customerDetails: \"Kundenangaben\",\n calendarApp: \"Kalender\",\n subscriptions: \"Abonnements\",\n getStarted: \"Einstieg\",\n subscriptionList: \"Abonnementliste\",\n addSubscription: \"Subskription Hinzufügen.\",\n viewSubscription: \"Abonnement Anzeigen.\",\n },\n ja: {\n dashboard: \"ダッシュボード\",\n layoutBuilder: \"レイアウトビルダー\",\n craft: \"作成された\",\n pages: \"ページ\",\n profile: \"プロフィール\",\n profileOverview: \"概要\",\n projects: \"プロジェクト\",\n campaigns: \"キャンペーン\",\n documents: \"書類\",\n connections: \"接続\",\n wizards: \"ウィザード\",\n horizontal: \"横\",\n vertical: \"垂直\",\n account: \"アカウント\",\n accountOverview: \"概要\",\n settings: \"設定\",\n authentication: \"認証\",\n basicFlow: \"基本的な流れ\",\n signIn: \"サインイン\",\n signUp: \"サインアップ\",\n passwordReset: \"パスワードのリセット\",\n multiStepSignUp: \"マルチステップサインアップ\",\n error404: \"エラー404\",\n error500: \"エラー 500\",\n apps: \"アプリ\",\n chat: \"チャット\",\n privateChat: \"プライベートチャット\",\n groupChat: \"グループチャット\",\n drawerChat: \"ドロワーチャット\",\n widgets: \"ウィジェット\",\n widgetsLists: \"リスト\",\n widgetsStatistics: \"統計\",\n widgetsCharts: \"チャート\",\n widgetsMixed: \"混合\",\n widgetsTables: \"テーブル\",\n widgetsFeeds: \"フィード\",\n changelog: \"変更ログ\",\n docsAndComponents: \"ドキュメントとコンポーネント\",\n megaMenu: \"メガメニュー\",\n exampleLink: \"リンク例\",\n modals: \"モーダルズ\",\n general: \"一般\",\n inviteFriends: \"友達を招待\",\n viewUsers: \"ユーザーを表示します\",\n upgradePlan: \"アップグレードプラン\",\n shareAndEarn: \"シェア&稼働\",\n forms: \"フォーム\",\n newTarget: \"新しいターゲット\",\n newCard: \"新しいカード\",\n newAddress: \"新しいアドレス\",\n createAPIKey: \"Apiキーを作成します\",\n twoFactorAuth: \"2つの要因Auth\",\n createApp: \"アプリを作成します\",\n createAccount: \"アカウントを作成する\",\n activity: \"アクティビティ\",\n documentation: \"ドキュメンテーション\",\n components: \"コンポーネント\",\n resources: \"資力\",\n customers: \"お客様のお客様\",\n gettingStarted: \"入門\",\n customersListing: \"顧客のリスト\",\n customerDetails: \"お客様の詳細\",\n calendarApp: \"カレンダー\",\n subscriptions: \"購読\",\n getStarted: \"入門\",\n subscriptionList: \"サブスクリプションリスト\",\n addSubscription: \"サブスクリプションを追加します\",\n viewSubscription: \"購読を見る\",\n },\n fr: {\n dashboard: \"Générateur de mise\",\n layoutBuilder: \"En page\",\n craft: \"Fabriqué\",\n pages: \"Pages\",\n profile: \"Profil\",\n profileOverview: \"Aperçu\",\n projects: \"Projets\",\n campaigns: \"Campagnes\",\n documents: \"Documents\",\n connections: \"Connexions\",\n wizards: \"Sorciers\",\n horizontal: \"Horizontal\",\n vertical: \"Verticale\",\n account: \"Compte\",\n accountOverview: \"Aperçu\",\n settings: \"Paramètres\",\n authentication: \"Authentification\",\n basicFlow: \"Flux de base\",\n signIn: \"SS'identifier\",\n signUp: \"Inscrivez-vous\",\n passwordReset: \"Réinitialisation du mot de passe\",\n multiStepSignUp: \"S'Inscrire Multi-Étapes\",\n error404: \"Erreur 404\",\n error500: \"Erreur 500\",\n apps: \"Applications\",\n chat: \"Discuter\",\n privateChat: \"Discussion privée\",\n groupChat: \"Discussion de groupe\",\n drawerChat: \"Chat de tiroir\",\n widgets: \"Widgets\",\n widgetsLists: \"Listes\",\n widgetsStatistics: \"Statistiques\",\n widgetsCharts: \"Graphiques\",\n widgetsMixed: \"Mixte\",\n widgetsTables: \"Les tables\",\n widgetsFeeds: \"Flux\",\n changelog: \"Journal des modifications\",\n docsAndComponents: \"Documents & composants\",\n megaMenu: \"Méga Menu\",\n exampleLink: \"Exemple de lien\",\n modals: \"Modals\",\n general: \"Général\",\n inviteFriends: \"Inviter Des Amis\",\n viewUsers: \"Voir Les Utilisateurs\",\n upgradePlan: \"Plan De Mise À Niveau\",\n shareAndEarn: \"Partager Et Gagner\",\n forms: \"Formes\",\n newTarget: \"Nouvelle Cible\",\n newCard: \"Nouvelle Carte\",\n newAddress: \"Nouvelle Adresse\",\n createAPIKey: \"Créer Une Touche Api\",\n twoFactorAuth: \"Deux Facteurs D'Authentification\",\n createApp: \"Créer Une Application\",\n createAccount: \"Créer Un Compte\",\n activity: \"Activité\",\n documentation: \"Documentation\",\n components: \"Composants\",\n resources: \"Ressources\",\n customers: \"Les Clients\",\n gettingStarted: \"Commencer\",\n customersListing: \"Liste Des Clients\",\n customerDetails: \"Détails Des Clients\",\n calendarApp: \"Calendrier\",\n subscriptions: \"Abonnements\",\n getStarted: \"Commencer\",\n subscriptionList: \"Liste D'Abonnement\",\n addSubscription: \"Ajouter Un Abonnement\",\n viewSubscription: \"Voir L'Abonnement\",\n },\n};\n\nconst i18n = createI18n({\n legacy: false,\n locale: \"en\",\n globalInjection: true,\n messages,\n});\n\nexport default i18n;\n","import { App } from \"vue\";\nimport VueApexCharts from \"vue3-apexcharts\";\n\n/**\n * Initialize VueApexChart component\n * @param app vue instance\n */\nexport function initApexCharts(app: App) {\n app.use(VueApexCharts);\n}\n","import { App } from \"vue\";\nimport InlineSvg from \"vue-inline-svg\";\n\n/**\n * Initialize Inline-Svg component\n * @param app vue instance\n */\nexport function initInlineSvg(app: App) {\n app.component(\"inline-svg\", InlineSvg);\n}\n","import { configure } from \"vee-validate\";\n\nexport function initVeeValidate() {\n // Updating default vee-validate configuration\n configure({\n validateOnBlur: true,\n validateOnChange: true,\n validateOnInput: true,\n validateOnModelUpdate: true,\n });\n}\n","export default {\n name: \"ru\",\n el: {\n colorpicker: {\n confirm: \"OK\",\n clear: \"Очистить\",\n },\n datepicker: {\n now: \"Сейчас\",\n today: \"Сегодня\",\n cancel: \"Отмена\",\n clear: \"Очистить\",\n confirm: \"OK\",\n selectDate: \"Выбрать дату\",\n selectTime: \"Выбрать время\",\n startDate: \"Дата начала\",\n startTime: \"Время начала\",\n endDate: \"Дата окончания\",\n endTime: \"Время окончания\",\n prevYear: \"Предыдущий год\",\n nextYear: \"Следующий год\",\n prevMonth: \"Предыдущий месяц\",\n nextMonth: \"Следующий месяц\",\n year: \"\",\n month1: \"Январь\",\n month2: \"Февраль\",\n month3: \"Март\",\n month4: \"Апрель\",\n month5: \"Май\",\n month6: \"Июнь\",\n month7: \"Июль\",\n month8: \"Август\",\n month9: \"Сентябрь\",\n month10: \"Октябрь\",\n month11: \"Ноябрь\",\n month12: \"Декабрь\",\n week: \"неделя\",\n weeks: {\n sun: \"Вс\",\n mon: \"Пн\",\n tue: \"Вт\",\n wed: \"Ср\",\n thu: \"Чт\",\n fri: \"Пт\",\n sat: \"Сб\",\n },\n months: {\n jan: \"Янв\",\n feb: \"Фев\",\n mar: \"Мар\",\n apr: \"Апр\",\n may: \"Май\",\n jun: \"Июн\",\n jul: \"Июл\",\n aug: \"Авг\",\n sep: \"Сен\",\n oct: \"Окт\",\n nov: \"Ноя\",\n dec: \"Дек\",\n },\n },\n select: {\n loading: \"Загрузка\",\n noMatch: \"Совпадений не найдено\",\n noData: \"Нет данных\",\n placeholder: \"Выбрать\",\n },\n cascader: {\n noMatch: \"Совпадений не найдено\",\n loading: \"Загрузка\",\n placeholder: \"Выбрать\",\n noData: \"Нет данных\",\n },\n pagination: {\n goto: \"Перейти\",\n pagesize: \" на странице\",\n total: \"Всего {total}\",\n pageClassifier: \"\",\n },\n messagebox: {\n title: \"Сообщение\",\n confirm: \"OK\",\n cancel: \"Отмена\",\n error: \"Недопустимый ввод данных\",\n },\n upload: {\n deleteTip: \"Нажмите [Удалить] для удаления\",\n delete: \"Удалить\",\n preview: \"Превью\",\n continue: \"Продолжить\",\n },\n table: {\n emptyText: \"Нет данных\",\n confirmFilter: \"Подтвердить\",\n resetFilter: \"Сбросить\",\n clearFilter: \"Все\",\n sumText: \"Сумма\",\n },\n tree: {\n emptyText: \"Нет данных\",\n },\n transfer: {\n noMatch: \"Совпадений не найдено\",\n noData: \"Нет данных\",\n titles: [\"Список 1\", \"Список 2\"],\n filterPlaceholder: \"Введите ключевое слово\",\n noCheckedFormat: \"{total} пунктов\",\n hasCheckedFormat: \"{checked}/{total} выбрано\",\n },\n image: {\n error: \"FAILED\", // to be translated\n },\n pageHeader: {\n title: \"Back\", // to be translated\n },\n popconfirm: {\n confirmButtonText: \"OK\",\n cancelButtonText: \"Отмена\",\n },\n },\n};\n","import { createApp } from \"vue\";\nimport App from \"./App.vue\";\n\n/*\nTIP: To get started with clean router change path to @/router/clean.ts.\n */\nimport router from \"./router\";\nimport store from \"./store\";\nimport ElementPlus from \"element-plus\";\nimport i18n from \"@/core/plugins/i18n\";\n\n//imports for app initialization\nimport ApiService from \"@/core/services/ApiService\";\nimport { initApexCharts } from \"@/core/plugins/apexcharts\";\nimport { initInlineSvg } from \"@/core/plugins/inline-svg\";\nimport { initVeeValidate } from \"@/core/plugins/vee-validate\";\nimport ru from \"@/locales/element-plus/ru\";\n\nimport \"@/core/plugins/prismjs\";\nimport \"bootstrap\";\nimport \"./assets/css/main.css\";\nimport \"./assets/css/report.css\";\nimport \"@imengyu/vue3-context-menu/lib/vue3-context-menu.css\";\n\nconst app = createApp(App);\n\napp.use(store);\napp.use(router);\napp.use(ElementPlus, {\n size: \"medium\", // Здесь вы можете установить размер элементов по умолчанию\n zIndex: 1000, // Здесь вы можете установить начальное значение zIndex\n locale: ru,\n});\n\n(async () => {\n await ApiService.init(app); //API promises\n // the rest of the code\n\n initApexCharts(app);\n initInlineSvg(app);\n initVeeValidate();\n\n app.use(i18n);\n\n app.mount(\"#app\");\n})();\n","import { createRouter, createWebHashHistory, RouteRecordRaw } from \"vue-router\";\nimport store from \"@/store\";\nimport { Mutations, Actions } from \"@/store/enums/StoreEnums\";\nimport JwtService from \"@/core/services/JwtService\";\nimport { User } from \"@/store/modules/AuthModule\";\nimport HTTPService from \"@/core/services/HTTPService\";\nimport AuthService from \"@/core/services/AuthService\";\n\nconst routes: Array = [\n {\n path: \"/\",\n redirect: \"/projects\",\n component: () => import(\"@/layout/Layout.vue\"),\n children: [\n {\n path: \"/dashboard\",\n name: \"dashboard\",\n component: () => import(\"@/views/Dashboard.vue\"),\n },\n {\n path: \"/news\",\n name: \"news\",\n component: () => import(\"@/views/NewsList.vue\"),\n },\n {\n path: \"/settings\",\n name: \"settings\",\n component: () => import(\"@/views/SettingsForm.vue\"),\n },\n {\n path: \"/ksr\",\n name: \"ksr\",\n component: () => import(\"@/views/KsrTable.vue\"),\n },\n {\n path: \"/nomenclatures\",\n name: \"nomenclatures\",\n component: () => import(\"@/views/nomenclature/NomenclatureList.vue\"),\n },\n {\n path: \"projects\",\n name: \"projects\",\n component: () => import(\"@/views/project/ProjectLayout.vue\"),\n children: [\n {\n path: \"\",\n name: \"project-list\",\n component: () => import(\"@/views/project/ProjectList.vue\"),\n },\n {\n path: \":id\",\n name: \"project-detail\",\n component: () => import(\"@/views/project/ProjectDetail.vue\"),\n },\n {\n path: \":id/reports\",\n name: \"project-report-layout\",\n component: () => import(\"@/views/project/ProjectLayout.vue\"),\n children: [\n {\n path: \"create\",\n name: \"project-report-create\",\n component: () =>\n import(\"@/views/project/report/ReportForm.vue\"),\n },\n {\n path: \":reportId\",\n name: \"project-report-view\",\n meta: { minify: true },\n component: () =>\n import(\"@/views/project/report/ReportView.vue\"),\n },\n {\n path: \":reportId/imports\",\n name: \"project-report-import-layout\",\n component: () =>\n import(\"@/views/project/report/ReportImportLayout.vue\"),\n children: [\n {\n path: \"excel\",\n name: \"project-report-import-excel\",\n component: () =>\n import(\"@/views/project/report/import/ExcelForm.vue\"),\n },\n {\n path: \"xml\",\n name: \"project-report-import-xml\",\n component: () =>\n import(\"@/views/project/report/import/XmlForm.vue\"),\n },\n ],\n },\n ],\n },\n {\n path: \"create\",\n name: \"project-create\",\n component: () => import(\"@/views/project/ProjectCreate.vue\"),\n },\n ],\n },\n {\n path: \"/builder\",\n name: \"builder\",\n component: () => import(\"@/views/Builder.vue\"),\n },\n {\n path: \"/crafted/pages/profile\",\n name: \"profile\",\n component: () => import(\"@/components/page-layouts/Profile.vue\"),\n children: [\n {\n path: \"overview\",\n name: \"profile-overview\",\n component: () =>\n import(\"@/views/crafted/pages/profile/Overview.vue\"),\n },\n {\n path: \"projects\",\n name: \"profile-projects\",\n component: () =>\n import(\"@/views/crafted/pages/profile/Projects.vue\"),\n },\n {\n path: \"campaigns\",\n name: \"profile-campaigns\",\n component: () =>\n import(\"@/views/crafted/pages/profile/Campaigns.vue\"),\n },\n {\n path: \"documents\",\n name: \"profile-documents\",\n component: () =>\n import(\"@/views/crafted/pages/profile/Documents.vue\"),\n },\n {\n path: \"connections\",\n name: \"profile-connections\",\n component: () =>\n import(\"@/views/crafted/pages/profile/Connections.vue\"),\n },\n {\n path: \"activity\",\n name: \"profile-activity\",\n component: () =>\n import(\"@/views/crafted/pages/profile/Activity.vue\"),\n },\n ],\n },\n {\n path: \"/crafted/pages/wizards/horizontal\",\n name: \"horizontal-wizard\",\n component: () => import(\"@/views/crafted/pages/wizards/Horizontal.vue\"),\n },\n {\n path: \"/crafted/pages/wizards/vertical\",\n name: \"vertical-wizard\",\n component: () => import(\"@/views/crafted/pages/wizards/Vertical.vue\"),\n },\n {\n path: \"/crafted/account\",\n name: \"account\",\n component: () => import(\"@/views/crafted/account/Account.vue\"),\n children: [\n {\n path: \"overview\",\n name: \"account-overview\",\n component: () => import(\"@/views/crafted/account/Overview.vue\"),\n },\n {\n path: \"settings\",\n name: \"account-settings\",\n component: () => import(\"@/views/crafted/account/Settings.vue\"),\n },\n ],\n },\n {\n path: \"/apps/customers/getting-started\",\n name: \"apps-customers-getting-started\",\n component: () => import(\"@/views/apps/customers/GettingStarted.vue\"),\n },\n {\n path: \"/apps/customers/customers-listing\",\n name: \"apps-customers-listing\",\n component: () => import(\"@/views/apps/customers/CustomersListing.vue\"),\n },\n {\n path: \"/apps/customers/customer-details\",\n name: \"apps-customers-details\",\n component: () => import(\"@/views/apps/customers/CustomerDetails.vue\"),\n },\n {\n path: \"/apps/subscriptions/getting-started\",\n name: \"apps-subscriptions-getting-started\",\n component: () =>\n import(\"@/views/apps/subscriptions/GettingStarted.vue\"),\n },\n {\n path: \"/apps/subscriptions/subscription-list\",\n name: \"apps-subscriptions-subscription-list\",\n component: () =>\n import(\"@/views/apps/subscriptions/SubscriptionList.vue\"),\n },\n {\n path: \"/apps/subscriptions/add-subscription\",\n name: \"apps-subscriptions-add-subscription\",\n component: () =>\n import(\"@/views/apps/subscriptions/AddSubscription.vue\"),\n },\n {\n path: \"/apps/subscriptions/view-subscription\",\n name: \"apps-subscriptions-view-subscription\",\n component: () =>\n import(\"@/views/apps/subscriptions/ViewSubscription.vue\"),\n },\n {\n path: \"/apps/calendar\",\n name: \"apps-calendar\",\n component: () => import(\"@/views/apps/Calendar.vue\"),\n },\n {\n path: \"/apps/chat/private-chat\",\n name: \"apps-private-chat\",\n component: () => import(\"@/views/apps/chat/Chat.vue\"),\n },\n {\n path: \"/apps/chat/group-chat\",\n name: \"apps-group-chat\",\n component: () => import(\"@/views/apps/chat/Chat.vue\"),\n },\n {\n path: \"/apps/chat/drawer-chat\",\n name: \"apps-drawer-chat\",\n component: () => import(\"@/views/apps/chat/DrawerChat.vue\"),\n },\n {\n path: \"/crafted/modals/general/invite-friends\",\n name: \"modals-general-invite-friends\",\n component: () =>\n import(\"@/views/crafted/modals/general/InviteFriends.vue\"),\n },\n {\n path: \"/crafted/modals/general/view-user\",\n name: \"modals-general-view-user\",\n component: () => import(\"@/views/crafted/modals/general/ViewUsers.vue\"),\n },\n {\n path: \"/crafted/modals/general/upgrade-plan\",\n name: \"modals-general-upgrade-plan\",\n component: () =>\n import(\"@/views/crafted/modals/general/UpgradePlan.vue\"),\n },\n {\n path: \"/crafted/modals/general/share-and-earn\",\n name: \"modals-general-share-and-earn\",\n component: () =>\n import(\"@/views/crafted/modals/general/ShareAndEarn.vue\"),\n },\n {\n path: \"/crafted/modals/forms/new-target\",\n name: \"modals-forms-new-target\",\n component: () => import(\"@/views/crafted/modals/forms/NewTarget.vue\"),\n },\n {\n path: \"/crafted/modals/forms/new-card\",\n name: \"modals-forms-new-card\",\n component: () => import(\"@/views/crafted/modals/forms/NewCard.vue\"),\n },\n {\n path: \"/crafted/modals/forms/new-address\",\n name: \"modals-forms-new-address\",\n component: () => import(\"@/views/crafted/modals/forms/NewAddress.vue\"),\n },\n {\n path: \"/crafted/modals/forms/create-api-key\",\n name: \"modals-forms-create-api-key\",\n component: () =>\n import(\"@/views/crafted/modals/forms/CreateApiKey.vue\"),\n },\n {\n path: \"/crafted/modals/wizards/two-factor-auth\",\n name: \"modals-wizards-two-factor-auth\",\n component: () =>\n import(\"@/views/crafted/modals/wizards/TwoFactorAuth.vue\"),\n },\n {\n path: \"/crafted/modals/wizards/create-app\",\n name: \"modals-wizards-create-app\",\n component: () => import(\"@/views/crafted/modals/wizards/CreateApp.vue\"),\n },\n {\n path: \"/crafted/modals/wizards/create-account\",\n name: \"modals-wizards-create-account\",\n component: () =>\n import(\"@/views/crafted/modals/wizards/CreateAccount.vue\"),\n },\n {\n path: \"/crafted/widgets/lists\",\n name: \"widgets-list\",\n component: () => import(\"@/views/crafted/widgets/Lists.vue\"),\n },\n {\n path: \"/crafted/widgets/statistics\",\n name: \"widgets-statistics\",\n component: () => import(\"@/views/crafted/widgets/Statistics.vue\"),\n },\n {\n path: \"/crafted/widgets/charts\",\n name: \"widgets-charts\",\n component: () => import(\"@/views/crafted/widgets/Charts.vue\"),\n },\n {\n path: \"/crafted/widgets/mixed\",\n name: \"widgets-mixed\",\n component: () => import(\"@/views/crafted/widgets/Mixed.vue\"),\n },\n {\n path: \"/crafted/widgets/tables\",\n name: \"widgets-tables\",\n component: () => import(\"@/views/crafted/widgets/Tables.vue\"),\n },\n {\n path: \"/crafted/widgets/feeds\",\n name: \"widgets-feeds\",\n component: () => import(\"@/views/crafted/widgets/Feeds.vue\"),\n },\n ],\n },\n\n {\n path: \"/\",\n component: () => import(\"@/components/page-layouts/Auth.vue\"),\n children: [\n {\n path: \"/sign-in\",\n name: \"sign-in\",\n meta: { auth: false },\n component: () =>\n import(\"@/views/crafted/authentication/basic-flow/SignIn.vue\"),\n },\n {\n path: \"/sign-up\",\n name: \"sign-up\",\n meta: { auth: false },\n\n component: () =>\n import(\"@/views/crafted/authentication/basic-flow/SignUp.vue\"),\n },\n {\n path: \"/password-reset\",\n name: \"password-reset\",\n meta: { auth: false },\n\n component: () =>\n import(\"@/views/crafted/authentication/basic-flow/PasswordReset.vue\"),\n },\n ],\n },\n {\n path: \"/multi-step-sign-up\",\n name: \"multi-step-sign-up\",\n component: () =>\n import(\"@/views/crafted/authentication/MultiStepSignUp.vue\"),\n },\n {\n // the 404 route, when none of the above matches\n path: \"/404\",\n name: \"404\",\n component: () => import(\"@/views/crafted/authentication/Error404.vue\"),\n },\n {\n path: \"/500\",\n name: \"500\",\n component: () => import(\"@/views/crafted/authentication/Error500.vue\"),\n },\n {\n path: \"/:pathMatch(.*)*\",\n redirect: \"/404\",\n },\n];\n\nconst router = createRouter({\n history: createWebHashHistory(),\n routes,\n});\n\nrouter.beforeEach(async (r) => {\n // reset config to initial state\n store.commit(Mutations.RESET_LAYOUT_CONFIG);\n\n const needAuth =\n typeof r.meta.auth !== \"undefined\" ? !(r.meta.auth === false) : true;\n\n if (needAuth) {\n //const user = store.getters.currentUser;\n if (AuthService.getToken().length === 0) {\n router.push({ name: \"sign-in\" }).then(() => {\n console.warn(\"not auth\");\n });\n }\n\n /*\n if (typeof user.id === \"undefined\") {\n router.push({ name: \"sign-in\" }).then(() => {\n console.warn(\"not auth\");\n });\n }*/\n /*\n await store\n .dispatch(Actions.VERIFY_AUTH, {\n api_token: JwtService.getToken(),\n })\n .then(() => {\n\n if (typeof store.getters.getErrors.loginPage !== \"undefined\") {\n router.push({ name: \"sign-in\" });\n }\n });*/\n }\n\n // Scroll page to top on every route change\n setTimeout(() => {\n window.scrollTo(0, 0);\n }, 100);\n});\n\nexport default router;\n","enum Actions {\n // action types\n ADD_BODY_CLASSNAME = \"addBodyClassName\",\n REMOVE_BODY_CLASSNAME = \"removeBodyClassName\",\n ADD_BODY_ATTRIBUTE = \"addBodyAttribute\",\n REMOVE_BODY_ATTRIBUTE = \"removeBodyAttribute\",\n ADD_CLASSNAME = \"addClassName\",\n VERIFY_AUTH = \"verifyAuth\",\n LOGIN = \"login\",\n LOGOUT = \"logout\",\n REGISTER = \"register\",\n UPDATE_USER = \"updateUser\",\n FORGOT_PASSWORD = \"forgotPassword\",\n SET_BREADCRUMB_ACTION = \"setBreadcrumbAction\",\n}\n\nenum Mutations {\n // mutation types\n SET_CLASSNAME_BY_POSITION = \"appendBreadcrumb\",\n PURGE_AUTH = \"logOut\",\n SET_AUTH = \"setAuth\",\n SET_USER = \"setUser\",\n GET_USER = \"getUser\",\n SET_PASSWORD = \"setPassword\",\n SET_ERROR = \"setError\",\n SET_BREADCRUMB_MUTATION = \"setBreadcrumbMutation\",\n SET_LAYOUT_CONFIG = \"setLayoutConfig\",\n RESET_LAYOUT_CONFIG = \"resetLayoutConfig\",\n OVERRIDE_LAYOUT_CONFIG = \"overrideLayoutConfig\",\n OVERRIDE_PAGE_LAYOUT_CONFIG = \"overridePageLayoutConfig\",\n}\n\nexport { Actions, Mutations };\n","import { Module, VuexModule, Mutation, Action } from \"vuex-module-decorators\";\nimport { Actions, Mutations } from \"@/store/enums/StoreEnums\";\n\nexport interface StoreInfo {\n classes: {\n header?: Array;\n headerContainer?: Array;\n headerMobile?: Array;\n headerMenu?: Array;\n aside?: Array;\n asideMenu?: Array;\n asideToggle?: Array;\n toolbar?: Array;\n toolbarContainer?: Array;\n content?: Array;\n contentContainer?: Array;\n footerContainer?: Array;\n sidebar?: Array;\n pageTitle?: Array;\n };\n}\n\n@Module\nexport default class BodyModule extends VuexModule implements StoreInfo {\n classes = {};\n\n /**\n * Get current page title\n * @returns string\n */\n get getClasses() {\n return (position) => {\n if (typeof position !== \"undefined\") {\n return this.classes[position];\n }\n return this.classes;\n };\n }\n\n @Mutation\n [Mutations.SET_CLASSNAME_BY_POSITION](payload) {\n const { position, className } = payload;\n if (!this.classes[position]) {\n this.classes[position] = [];\n }\n this.classes[position].push(className);\n }\n\n @Action\n [Actions.ADD_BODY_CLASSNAME](className) {\n document.body.classList.add(className);\n }\n\n @Action\n [Actions.REMOVE_BODY_CLASSNAME](className) {\n document.body.classList.remove(className);\n }\n\n @Action\n [Actions.ADD_BODY_ATTRIBUTE](payload) {\n const { qulifiedName, value } = payload;\n document.body.setAttribute(qulifiedName, value);\n }\n\n @Action\n [Actions.REMOVE_BODY_ATTRIBUTE](payload) {\n const { qulifiedName } = payload;\n document.body.removeAttribute(qulifiedName);\n }\n\n @Action\n [Actions.ADD_CLASSNAME](payload) {\n this.context.commit(Mutations.SET_CLASSNAME_BY_POSITION, payload);\n }\n}\n","import { Action, Mutation, Module, VuexModule } from \"vuex-module-decorators\";\nimport { Actions, Mutations } from \"@/store/enums/StoreEnums\";\n\ninterface Breadcrumb {\n title: string;\n pageBreadcrumbPath: Array;\n}\n\ninterface StoreInfo {\n breadcrumbs: Breadcrumb;\n}\n\n@Module\nexport default class BreadcrumbsModule extends VuexModule implements StoreInfo {\n breadcrumbs = {} as Breadcrumb;\n\n /**\n * Get breadcrumb object for current page\n * @returns object\n */\n get getBreadcrumbs(): Breadcrumb {\n return this.breadcrumbs;\n }\n\n /**\n * Get breadcrumb array for current page\n * @returns object\n */\n get pageBreadcrumbPath(): Array {\n return this.breadcrumbs.pageBreadcrumbPath;\n }\n\n /**\n * Get current page title\n * @returns string\n */\n get pageTitle(): string {\n return this.breadcrumbs.title;\n }\n\n @Mutation\n [Mutations.SET_BREADCRUMB_MUTATION](payload) {\n this.breadcrumbs = payload;\n }\n\n @Action\n [Actions.SET_BREADCRUMB_ACTION](payload) {\n this.context.commit(Mutations.SET_BREADCRUMB_MUTATION, payload);\n }\n}\n","import LayoutConfigTypes from \"@/core/config/LayoutConfigTypes\";\n\nconst config: LayoutConfigTypes = {\n themeName: \"Smeta.expert\",\n themeVersion: \"1.0.0\",\n demo: \"smeta\",\n main: {\n type: \"default\",\n primaryColor: \"#009EF7\",\n logo: {\n dark: \"media/logos/logo-1-dark.svg\",\n light: \"media/logos/logo-1.svg\",\n },\n },\n illustrations: {\n set: \"dozzy-1\",\n },\n loader: {\n logo: \"media/logos/logo-1-dark.svg\",\n display: true,\n type: \"default\",\n },\n scrollTop: {\n display: true,\n },\n header: {\n display: true,\n menuIcon: \"font\",\n width: \"fixed\",\n fixed: {\n desktop: false,\n tabletAndMobile: false,\n },\n },\n toolbar: {\n display: true,\n width: \"fixed\",\n fixed: {\n desktop: true,\n tabletAndMobile: true,\n },\n },\n aside: {\n display: true,\n theme: \"dark\",\n fixed: true,\n menuIcon: \"font\",\n minimized: false,\n minimize: true,\n hoverable: true,\n },\n sidebar: {\n display: false,\n },\n content: {\n width: \"fluid\",\n },\n footer: {\n width: \"fixed\",\n },\n};\n\nexport default config;\n","import objectPath from \"object-path\";\nimport merge from \"deepmerge\";\nimport layoutConfig from \"@/core/config/DefaultLayoutConfig\";\nimport { Mutations } from \"@/store/enums/StoreEnums\";\nimport { Mutation, Module, VuexModule } from \"vuex-module-decorators\";\nimport LayoutConfigTypes from \"@/core/config/LayoutConfigTypes\";\n\ninterface StoreInfo {\n config: LayoutConfigTypes;\n initial: LayoutConfigTypes;\n}\n\n@Module\nexport default class ConfigModule extends VuexModule implements StoreInfo {\n config: LayoutConfigTypes = layoutConfig;\n initial: LayoutConfigTypes = layoutConfig;\n\n /**\n * Get config from layout config\n * @returns {function(path, defaultValue): *}\n */\n get layoutConfig() {\n return (path, defaultValue) => {\n return objectPath.get(this.config, path, defaultValue);\n };\n }\n\n @Mutation\n [Mutations.SET_LAYOUT_CONFIG](payload): void {\n this.config = payload;\n }\n\n @Mutation\n [Mutations.RESET_LAYOUT_CONFIG]() {\n this.config = Object.assign({}, this.initial);\n }\n\n @Mutation\n [Mutations.OVERRIDE_LAYOUT_CONFIG](): void {\n this.config = this.initial = Object.assign(\n {},\n this.initial,\n JSON.parse(window.localStorage.getItem(\"config\") || \"{}\")\n );\n }\n\n @Mutation\n [Mutations.OVERRIDE_PAGE_LAYOUT_CONFIG](payload): void {\n this.config = merge(this.config, payload);\n }\n}\n","import { createStore } from \"vuex\";\nimport { config } from \"vuex-module-decorators\";\n\nimport AuthModule from \"@/store/modules/AuthModule\";\nimport BodyModule from \"@/store/modules/BodyModule\";\nimport BreadcrumbsModule from \"@/store/modules/BreadcrumbsModule\";\nimport ConfigModule from \"@/store/modules/ConfigModule\";\n\nconfig.rawError = true;\n\nconst store = createStore({\n modules: {\n AuthModule,\n BodyModule,\n BreadcrumbsModule,\n ConfigModule,\n },\n});\n\nexport default store;\n","import HTTPService from \"@/core/services/HTTPService\";\n\nimport JwtService from \"@/core/services/JwtService\";\nimport { Actions, Mutations } from \"@/store/enums/StoreEnums\";\nimport { Module, Action, Mutation, VuexModule } from \"vuex-module-decorators\";\nimport AuthService from \"@/core/services/AuthService\";\nimport ApiService from \"@/core/services/ApiService\";\n\nexport interface User {\n name: string;\n surname: string;\n email: string;\n password: string;\n}\n\nexport interface UserAuthInfo {\n errors: object;\n user: User;\n isAuthenticated: boolean;\n}\n\n@Module\nexport default class AuthModule extends VuexModule implements UserAuthInfo {\n errors = {};\n user = {} as User;\n isAuthenticated = !!JwtService.getToken();\n\n /**\n * Get current user object\n * @returns User\n */\n get currentUser(): User {\n return this.user;\n }\n\n /**\n * Verify user authentication\n * @returns boolean\n */\n get isUserAuthenticated(): boolean {\n return this.isAuthenticated;\n }\n\n public test;\n /**\n * Get authentification errors\n * @returns array\n */\n get getErrors() {\n return this.errors;\n }\n\n @Mutation\n [Mutations.SET_ERROR](error) {\n this.errors = { ...error };\n }\n\n @Mutation\n [Mutations.SET_AUTH](user) {\n this.isAuthenticated = true;\n this.user = user;\n this.errors = {};\n\n JwtService.saveToken(user.authorization.token);\n ApiService.createRequestHandler();\n\n // AuthService.me();\n }\n\n @Mutation\n [Mutations.SET_USER](user) {\n this.user = user;\n // TODO write in localstorage\n }\n\n @Mutation\n [Mutations.SET_PASSWORD](password) {\n this.user.password = password;\n }\n\n @Mutation\n [Mutations.PURGE_AUTH]() {\n this.isAuthenticated = false;\n this.user = {} as User;\n this.errors = [];\n JwtService.destroyToken();\n }\n\n @Action\n [Actions.LOGIN](credentials) {\n return HTTPService.post(\"login\", credentials)\n .then(({ data }) => {\n this.context.commit(Mutations.SET_AUTH, data);\n })\n .catch(({ response }) => {\n this.context.commit(\n Mutations.SET_ERROR,\n HTTPService.isValid(response)\n ? response.data.errors\n : HTTPService.serverError()\n );\n });\n }\n\n @Action\n [Actions.LOGOUT]() {\n this.context.commit(Mutations.PURGE_AUTH);\n }\n\n @Action\n [Actions.REGISTER](credentials) {\n return HTTPService.post(\"register\", credentials)\n .then(({ data }) => {\n this.context.commit(Mutations.SET_AUTH, data);\n })\n .catch(({ response }) => {\n this.context.commit(\n Mutations.SET_ERROR,\n HTTPService.isValid(response)\n ? response.data.errors\n : HTTPService.serverError()\n );\n });\n }\n\n @Action\n me() {\n return HTTPService.post(\"me\", {})\n .then(({ data }) => {\n this.context.commit(Mutations.SET_AUTH, data);\n })\n .catch(({ response }) => {\n this.context.commit(\n Mutations.SET_ERROR,\n HTTPService.isValid(response)\n ? response.data.errors\n : HTTPService.serverError()\n );\n });\n }\n\n @Action\n [Actions.FORGOT_PASSWORD](payload) {\n //\n }\n\n @Action\n async [Actions.VERIFY_AUTH](payload) {\n //\n }\n}\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\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdO = {};","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(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__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + chunkId + \".\" + {\"98\":\"73583e7c\",\"176\":\"806c4f9c\",\"314\":\"09983d28\",\"410\":\"993cf718\",\"637\":\"57e33ed2\",\"679\":\"21b8a248\",\"861\":\"320b8b12\",\"928\":\"1b523be6\",\"1042\":\"a9b84990\",\"1339\":\"6a5ba223\",\"1353\":\"49581468\",\"1418\":\"5cb9cd26\",\"1525\":\"44e37774\",\"1579\":\"b7533c52\",\"1587\":\"8c389d23\",\"1715\":\"a8651e6b\",\"1986\":\"065c0bfd\",\"2073\":\"836c8170\",\"2107\":\"a231ed85\",\"2151\":\"9e88b245\",\"2191\":\"930003a9\",\"2287\":\"09fa20b7\",\"2313\":\"17f54298\",\"2335\":\"fd3e957b\",\"2344\":\"275de62f\",\"2446\":\"862eae5b\",\"2519\":\"ae42c2fb\",\"2772\":\"3bc8d7d0\",\"2896\":\"27c981fa\",\"2974\":\"8fa58e57\",\"3085\":\"9e75e367\",\"3145\":\"1afb1ed4\",\"3185\":\"0cc813a0\",\"3216\":\"57b1219f\",\"3538\":\"05269bd9\",\"3593\":\"8bc75251\",\"3659\":\"7134bb12\",\"3664\":\"07153a32\",\"3958\":\"9c732d1e\",\"3987\":\"5a5105aa\",\"4081\":\"0931b040\",\"4378\":\"6bd0ba2f\",\"4406\":\"14646f5d\",\"4816\":\"abaf11c2\",\"4948\":\"33ae07dc\",\"5295\":\"247c6f5f\",\"6214\":\"31ccdb8d\",\"6344\":\"b17efc20\",\"6561\":\"6d068d4e\",\"6673\":\"e5799f13\",\"6742\":\"541742b2\",\"6857\":\"ecc95172\",\"7008\":\"42dac4a5\",\"7030\":\"19b7d825\",\"7188\":\"bdf1f10a\",\"7194\":\"ba44ccc2\",\"7249\":\"ae1bd7a0\",\"7318\":\"83a0b96a\",\"7403\":\"37cc668a\",\"7578\":\"7c21cb53\",\"7777\":\"74330e42\",\"7803\":\"bf9d081a\",\"8021\":\"1227b842\",\"8498\":\"3a420b81\",\"8614\":\"4b6f6dcd\",\"8626\":\"d3245c79\",\"8674\":\"50714354\",\"8776\":\"0b6cc7a4\",\"9017\":\"c8f06e12\",\"9033\":\"6d33c790\",\"9132\":\"f944b69b\",\"9188\":\"64fdcae0\",\"9221\":\"5f3b5d07\",\"9476\":\"85b0fbdb\",\"9547\":\"ad3cadb7\",\"9567\":\"d8115cfa\",\"9591\":\"941d02db\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + chunkId + \".\" + {\"314\":\"b4f7e3e5\",\"410\":\"61fdfed7\",\"1579\":\"acff1fe6\",\"2191\":\"567a9b74\",\"2335\":\"25bc8a15\",\"3145\":\"acff1fe6\",\"3216\":\"acff1fe6\",\"3538\":\"bb81508c\",\"3659\":\"2f205303\",\"6561\":\"7a47b449\",\"6742\":\"48ecde88\",\"7249\":\"531121d7\",\"8021\":\"acff1fe6\",\"8614\":\"221af18c\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.hmd = function(module) {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: function() {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"smeta-expert:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(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};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tif (__webpack_require__.nc) {\n\t\tlinkTag.nonce = __webpack_require__.nc;\n\t}\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && event.type;\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t3524: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"314\":1,\"410\":1,\"1579\":1,\"2191\":1,\"2335\":1,\"3145\":1,\"3216\":1,\"3538\":1,\"3659\":1,\"6561\":1,\"6742\":1,\"7249\":1,\"8021\":1,\"8614\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr\n\n// no prefetching\n\n// no preloaded","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t3524: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunksmeta_expert\"] = self[\"webpackChunksmeta_expert\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(59972); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["ElementStyleUtil","set","element","property","value","important","style","setProperty","get","attributeName","getPropertyValue","remove","attibuteName","removeProperty","DataUtil","static","Map","instance","key","data","instanceData","store","newMap","delete","has","getAllInstancesByKey","result","forEach","val","v","k","push","getObjectPropertyValueByKey","obj","map","Object","entries","hasOwnProperty","getUniqueIdWithPrefix","prefix","Math","floor","random","Date","getTime","toString","stringSnakeToCamel","str","replace","m","toUpperCase","toJSON","split","el","join","jsonStr","matched","substring","length","JSON","parse","DOMEventHandlerUtil","on","selector","eventName","callBack","eventId","e","targets","querySelectorAll","target","i","call","parentElement","addEventListener","off","funcFromStore","removeEventListener","one","calee","type","currentTarget","ElementAnimateUtil","animate","from","to","duration","update","complete","easings","linear","t","b","c","d","change","loop","timestamp","time","start","window","requestAnimationFrame","performance","now","animateClass","animationName","animateClasses","cssClass","classList","add","transitionEnd","animationEnd","animationDelay","animationDuration","scrollTo","offset","targetPos","getElementOffset","top","scrollPos","pageYOffset","document","documentElement","scrollTop","body","getCSS","styleProp","defaultView","ownerDocument","toLowerCase","getComputedStyle","getCSSVariableValue","variableName","hex","trim","getElementActualCss","prop","cache","css","getAttribute","cssText","offsetWidth","offsetHeight","undefined","setAttribute","parseFloat","attributeValue","getElementActualHeight","getElementIndex","parentNode","children","getElementMatches","p","Element","prototype","f","matches","webkitMatchesSelector","tagName","getClientRects","left","rect","getBoundingClientRect","win","pageXOffset","getElementParents","s","this","item","parents","getHighestZindex","bufferNode","buffer","position","parseInt","isNaN","getScrollTop","scrollingElement","getViewPort","width","innerWidth","height","innerHeight","insertAfterElement","referenceNode","insertBefore","nextSibling","isVisibleElement","throttle","timer","func","delay","setTimeout","getElementChildren","childNodes","child","nodeType","getElementChild","slide","dir","speed","callback","calcHeight","calcPaddingTop","calcPaddingBottom","paddingTop","paddingBottom","display","overflow","slideUp","slideDown","getBreakpoint","breakpoint","getAttributeValueByBreakpoint","incomingAttr","resultKey","resultBreakpoint","EventHandlerUtil","setEventMetasByName","name","metas","getEventMetasByName","setEventMetaByNameAndHandlerId","handlerId","meta","getEventsMetaByHandlerId","setFiredByNameAndHandlerId","handerId","fired","addEvent","removeEvent","trigger","handler","DrawerStore","instanceId","drawerComponentObj","getAllInstances","defaultDrawerOptions","overlay","baseClass","overlayClass","direction","DrawerComponent","overlayElement","toggleElement","options","instanceUid","shown","lastWidth","closeElement","constructor","_element","assign","_handlers","_update","id","togglers","_getOption","closers","preventDefault","getElementById","_toggle","_hide","String","hasBaseClass","contains","bodyCanvasAttr","attr","optionName","option","_show","_deleteOverlay","removeAttribute","_createOverlay","createElement","elementZIndex","overlayZindex","append","overlayClassOption","removeChild","_getDirection","_getWidth","toggle","show","hide","isShown","goElement","event","elementId","oldInstances","dr","createInstances","elements","drawer","getInstance","closest","initGlobalHandlers","handleDismiss","hideAll","updateAll","defaultScrollTopOptions","ScrollTopComponent","_scroll","_go","pos","hasAttribute","go","getElement","querySelector","defaultStepperOptions","startIndex","animation","animationSpeed","animationNextClass","animationPreviousClass","StepperComponent","steps","btnNext","btnPrev","btnSubmit","totatStepsNumber","passedStepIndex","currentStepIndex","_goTo","initHandlers","index","refreshUI","stepDirection","_getStepDirection","getStepContent","content","getLastStepIndex","getTotalStepsNumber","state","isLastStep","isFirstStep","len","isBetweenStep","goto","goNext","getNextStepIndex","goPrev","getPrevStepIndex","goFirst","goLast","getCurrentStepIndex","getPassedStepIndex","destroy","console","log","hasInstace","stepper","bootstrap","CookieComponent","cookie","match","RegExp","decodeURIComponent","cookieOptions","path","expires","toUTCString","updatedCookie","encodeURIComponent","optionKey","optionValue","defaultScrollOptions","saveState","ScrollComponent","getOption","getHeightType","getAutoHeight","dependencies","wrappers","borderTop","borderBottom","setupHeight","getHeight","heightType","setupState","setupScrollHandler","scrollHandler","cookieId","destroyScrollHandler","resetHeight","heghtType","Function","scroll","destroyAll","resize","reinitialization","StickyStore","stickyComponentObj","defaultStickyOptions","reverse","animationClass","StickyComponent","instanceName","eventTriggerState","lastScrollTop","st","diff","releaseOffset","scrollHeight","enable","disable","dataStickyAttr","attrValueInStr","attrValue","zindex","widthTarget","targetElement","offsetLeft","sticky","reInitialization","defaultToggleOptions","ToggleComponent","attribute","elementTargetAttr","elementToggleAttr","_isEnabled","_disable","_enable","isEnabled","defaultPasswordMeterOptions","minLength","checkUppercase","checkLowercase","checkDigit","checkChar","scoreHighlightClass","defaultPasswordMeterQueires","componentName","instanseQuery","inputQuery","visibilityQuery","highlightQuery","PasswordMeterComponent","inputElement","visibilityElement","highlightElement","queries","score","checkSteps","_options","_queries","handlers","check","visitbility","visibleIcon","hiddenIcon","typeAttr","focus","checkScore","checkLength","checkLowerCase","test","getCheckScore","count","highlight","items","slice","total","getScore","reset","passwordMeter","SwapperStore","defaultSwapperOptions","mode","defaultSwapperQueires","attrQuery","SwapperComponent","parentSelector","prepend","place","dropdown","hoverTimeout","accordion","slideSpeed","expand","triggerElement","_setTriggerElement","_isTriggerElement","_getItemOption","_getItemElement","itemElement","sub","subItem","_getItemParentElement","parentItem","_getItemParentElements","parent","unshift","_getDropdownPopperConfig","placementOption","placement","offsetValue","strategy","modifiers","flipVariations","_getItemChildElement","_getItemChildElements","_getItemSubElement","_getCss","_getItemSubType","_isItemSubShown","_isItemDropdownPermanent","_isItemParentShown","_isItemSubElement","_hasItemSub","_getItemLinkElement","_getItemToggleElement","_showDropdown","hideDropdowns","parentZindex","initDropdownPopper","appendChild","reference","attach","popper","_hideDropdown","destroyDropdownPopper","_showAccordion","_hideAccordions","subElement","_hideAccordion","itemsToHide","itemToHide","_reset","removeClass","_destroy","_mouseout","timeout","_mouseover","clearTimeout","_dismiss","itemSubType","_link","_click","click","link","dismiss","mouseover","mouseout","getItemTriggerType","getItemSubType","getItemLinkElement","getItemToggleElement","getItemSubElement","getItemParentElements","isItemSubShown","isItemParentShown","getTriggerElement","isItemDropdownPermanent","hideAccordions","elementMenu","menu","menuData","subMenu","skip","forceUpdate","menuItem","menuInstance","menuItems","menuObj","stopPropagation","initializeComponents","reinitializeComponents","reinitializeScrollComponent","then","async","ApiService","getConfig","init","app","vueInstance","use","createRequestHandler","events","r","currentRoute","needAuth","auth","A","me","httpRequest","_httpRequest","token","localStorage","getItem","accessTokenKey","config","headers","Authorization","configWithoutAuth","interceptors","response","res","err","message","error","status","access_token","header","request","catch","text","icon","buttonsStyling","confirmButtonText","customClass","confirmButton","removeToken","info","warn","unsetToken","getElementsByClassName","removeItem","baseURL","AuthService","modules","AuthModule","getToken","post","commit","SET_ERROR","serverError","PURGE_AUTH","SET_AUTH","HTTPService","urn","patch","uploadFile","paramsRequest","params","_method","isValid","ID_TOKEN_KEY","saveToken","setItem","destroyToken","render","_ctx","_cache","$props","$setup","$data","$options","_component_router_view","defineComponent","setup","router","onMounted","OVERRIDE_LAYOUT_CONFIG","nextTick","__exports__","messages","en","dashboard","layoutBuilder","craft","pages","profile","profileOverview","projects","campaigns","documents","connections","wizards","horizontal","vertical","account","accountOverview","settings","authentication","basicFlow","signIn","signUp","passwordReset","multiStepSignUp","error404","error500","apps","chat","privateChat","groupChat","drawerChat","widgets","widgetsLists","widgetsStatistics","widgetsCharts","widgetsMixed","widgetsTables","widgetsFeeds","changelog","docsAndComponents","megaMenu","exampleLink","modals","general","inviteFriends","viewUsers","upgradePlan","shareAndEarn","forms","newTarget","newCard","newAddress","createAPIKey","twoFactorAuth","createApp","createAccount","documentation","components","resources","activity","customers","gettingStarted","customersListing","customerDetails","calendarApp","subscriptions","getStarted","subscriptionList","addSubscription","viewSubscription","es","de","ja","fr","i18n","legacy","locale","globalInjection","initApexCharts","initInlineSvg","component","initVeeValidate","validateOnBlur","validateOnChange","validateOnInput","validateOnModelUpdate","colorpicker","confirm","clear","datepicker","today","cancel","selectDate","selectTime","startDate","startTime","endDate","endTime","prevYear","nextYear","prevMonth","nextMonth","year","month1","month2","month3","month4","month5","month6","month7","month8","month9","month10","month11","month12","week","weeks","sun","mon","tue","wed","thu","fri","sat","months","jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec","select","loading","noMatch","noData","placeholder","cascader","pagination","pagesize","pageClassifier","messagebox","title","upload","deleteTip","preview","continue","table","emptyText","confirmFilter","resetFilter","clearFilter","sumText","tree","transfer","titles","filterPlaceholder","noCheckedFormat","hasCheckedFormat","image","pageHeader","popconfirm","cancelButtonText","App","size","zIndex","ru","mount","routes","redirect","minify","history","beforeEach","RESET_LAYOUT_CONFIG","Actions","Mutations","BodyModule","classes","getClasses","SET_CLASSNAME_BY_POSITION","payload","className","ADD_BODY_CLASSNAME","REMOVE_BODY_CLASSNAME","ADD_BODY_ATTRIBUTE","qulifiedName","REMOVE_BODY_ATTRIBUTE","ADD_CLASSNAME","context","BreadcrumbsModule","breadcrumbs","getBreadcrumbs","pageBreadcrumbPath","pageTitle","SET_BREADCRUMB_MUTATION","SET_BREADCRUMB_ACTION","themeName","themeVersion","demo","main","primaryColor","logo","dark","light","illustrations","loader","menuIcon","fixed","desktop","tabletAndMobile","toolbar","aside","theme","minimized","minimize","hoverable","sidebar","footer","ConfigModule","initial","layoutConfig","defaultValue","SET_LAYOUT_CONFIG","OVERRIDE_PAGE_LAYOUT_CONFIG","rawError","errors","user","isAuthenticated","currentUser","isUserAuthenticated","getErrors","authorization","SET_USER","SET_PASSWORD","password","LOGIN","credentials","LOGOUT","REGISTER","FORGOT_PASSWORD","VERIFY_AUTH","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","loaded","__webpack_modules__","amdO","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","keys","every","splice","n","getter","__esModule","a","definition","o","defineProperty","enumerable","chunkId","Promise","all","reduce","promises","u","miniCssF","g","globalThis","hmd","create","Error","inProgress","dataWebpackPrefix","l","url","done","script","needAttach","scripts","getElementsByTagName","charset","nc","src","onScriptComplete","prev","onerror","onload","doneFns","bind","head","Symbol","toStringTag","nmd","paths","createStylesheet","fullhref","oldTag","resolve","reject","linkTag","rel","nonce","onLinkComplete","errorType","realHref","href","code","findStylesheet","existingLinkTags","tag","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","installedChunks","installedChunkData","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}