{"version":3,"sources":["webpack:///./src/components/Form/ShadowControl.vue","webpack:///./src/components/Form/ShadowControl.vue?083c","webpack:///./src/components/Form/AppInputStatus.vue?a905","webpack:///./src/components/ui/FullscreenLoader.vue?9dd2","webpack:///./src/components/Table/ts/AppTable.vue?3d31","webpack:///./src/hooks/formatingDate.ts","webpack:///./src/hooks/payments/usePayments.ts","webpack:///./src/assets/img/tooltip-arrow.svg","webpack:///./src/hooks/layout/useBaseAppLayout.ts","webpack:///./src/components/Templates/ManageTemplateModal.vue?b464","webpack:///./src/hooks/animation/useListHeightTransition.ts","webpack:///./src/components/ui/TooltipDropdown.vue","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getWindow.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","webpack:///./node_modules/@popperjs/core/lib/utils/math.js","webpack:///./node_modules/@popperjs/core/lib/utils/userAgent.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","webpack:///./node_modules/@popperjs/core/lib/enums.js","webpack:///./node_modules/@popperjs/core/lib/utils/orderModifiers.js","webpack:///./node_modules/@popperjs/core/lib/utils/debounce.js","webpack:///./node_modules/@popperjs/core/lib/utils/mergeByName.js","webpack:///./node_modules/@popperjs/core/lib/createPopper.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/eventListeners.js","webpack:///./node_modules/@popperjs/core/lib/utils/getBasePlacement.js","webpack:///./node_modules/@popperjs/core/lib/utils/getVariation.js","webpack:///./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","webpack:///./node_modules/@popperjs/core/lib/utils/computeOffsets.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/computeStyles.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/applyStyles.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/offset.js","webpack:///./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","webpack:///./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/contains.js","webpack:///./node_modules/@popperjs/core/lib/utils/rectToClientRect.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","webpack:///./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","webpack:///./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","webpack:///./node_modules/@popperjs/core/lib/utils/expandToHashMap.js","webpack:///./node_modules/@popperjs/core/lib/utils/detectOverflow.js","webpack:///./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/flip.js","webpack:///./node_modules/@popperjs/core/lib/utils/getAltAxis.js","webpack:///./node_modules/@popperjs/core/lib/utils/within.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/arrow.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/hide.js","webpack:///./node_modules/@popperjs/core/lib/popper.js","webpack:///./src/components/ui/TooltipDropdown.vue?c4b5","webpack:///./src/components/Form/ShadowControl.vue?c45b","webpack:///./src/components/Form/SelectInput.vue?7cd4","webpack:///./src/components/Form/SelectInput.vue","webpack:///./src/components/Form/SelectInput.vue?6d1c","webpack:///./src/components/Form/AppInputStatus.vue?e620","webpack:///./src/components/ui/CustomScrollbar.vue?790e","webpack:///./src/components/Form/AppCheckbox.vue","webpack:///./src/components/Form/AppCheckbox.vue?3abe","webpack:///./src/components/ui/FullscreenLoader.vue","webpack:///./src/components/ui/FullscreenLoader.vue?5e8b","webpack:///./src/components/Form/AppInput.vue?b617","webpack:///./src/components/Table/ts/AppTable.vue?2bd8","webpack:///./src/components/Table/ts/AppTableController.vue?db59","webpack:///./src/components/ui/EmptyBlock.vue?3b14","webpack:///./src/components/ui/EmptyBlock.vue","webpack:///./src/components/ui/EmptyBlock.vue?24ef","webpack:///./src/components/Table/ts/AppTableController.vue","webpack:///./src/components/Table/ts/AppTableController.vue?27b8","webpack:///./src/components/Table/ts/AppTable.vue?2623","webpack:///./src/components/Table/ts/AppTable.vue","webpack:///./src/components/Table/ts/AppTable.vue?81e5","webpack:///./src/views/Templates.vue?792d","webpack:///./src/components/Templates/ManageTemplateModal.vue?7677","webpack:///./src/components/Templates/ManageTemplateModal.vue","webpack:///./src/components/Templates/ManageTemplateModal.vue?bfd6","webpack:///./src/components/Table/ts/interfaces/tableInstances/templateTable.ts","webpack:///./src/components/Table/ts/instances/templates/TemplatesTable.vue?ce21","webpack:///./src/components/Table/ts/instances/templates/TemplatesTable.vue","webpack:///./src/components/Table/ts/instances/templates/TemplatesTable.vue?0d55","webpack:///./src/views/Templates.vue","webpack:///./src/views/Templates.vue?08d4","webpack:///./src/components/Form/AppInput.vue","webpack:///./src/components/Form/AppInputStatus.vue","webpack:///./src/components/Form/AppInputStatus.vue?c393","webpack:///./src/components/Form/AppInput.vue?e841","webpack:///./src/components/ui/CustomScrollbar.vue","webpack:///./src/components/ui/CustomScrollbar.vue?c631","webpack:///./src/components/Table/ts/AppTableController.vue?7b54","webpack:///./src/components/Form/SelectInput.vue?4e0a","webpack:///./src/mixins/useCustomScrollbar.js","webpack:///./src/components/Form/AppCheckbox.vue?bb34","webpack:///./src/components/ui/CustomScrollbar.vue?9ec2","webpack:///./src/components/Form/AppInput.vue?9211","webpack:///./src/components/ui/TooltipDropdown.vue?da70","webpack:///./src/components/Table/ts/AppTableController.vue?e681","webpack:///./src/components/ui/EmptyBlock.vue?c416","webpack:///./src/components/ui/FullscreenLoader.vue?7e12"],"names":["class","_createElementBlock","_hoisted_1","$props","_createBlock","_component_FormControlWithIcon","_mergeProps","key","_ctx","id","icon","onChange","$options","_component_FormControl","name","changeTimout","components","FormControl","FormControlWithIcon","props","String","type","required","inputTimeout","Boolean","default","emits","change","methods","changeHandler","evt","this","clearTimeout","setTimeout","$emit","__exports__","render","module","exports","formatDate","date","result","moment","local","format","formatDateForGroup","isSame","subtract","formateLLTime","formateLTTime","formatDateUntill","usePayments","options","viewConfig","filter","store","useStore","async","requestPaymentsHandler","dispatch","success","message","groupByDate","tableBody","datedIds","item","formattedItem","added","length","push","Object","entries","changeViewConfigurationHandler","page","perPage","createRefund","data","changeFilterHandler","from","to","mapFilterOptions","selectedIdx","map","option","idx","selected","useBaseAppLayout","initialSearchQuery","filterOptions","initialSelectedFilterOptionIdx","onFiltersChange","onChangeSearchQuery","searchQuery","ref","reactive","Function","watchable","forEach","watch","selectedFilterOption","computed","find","searchHandler","target","value","onFilterSelect","useListHeightTransition","baseDelay","makeDelay","beforeEnter","el","gsap","set","height","autoAlpha","enter","done","parseInt","dataset","index","delay","duration","ease","onComplete","leave","_createElementVNode","data-popper-arrow","src","_imports_0","alt","_createVNode","_component_DarkOverlay","shown","$data","onClick","trigger","_renderSlot","_component_SortButton","sort","asc","desc","data-show","_hoisted_2","_hoisted_3","style","width","getWindow","node","window","toString","ownerDocument","defaultView","isElement","OwnElement","Element","isHTMLElement","HTMLElement","isShadowRoot","ShadowRoot","Math","max","min","round","getUAString","uaData","navigator","userAgentData","brands","brand","version","join","userAgent","isLayoutViewport","test","getBoundingClientRect","element","includeScale","isFixedStrategy","clientRect","scaleX","scaleY","offsetWidth","offsetHeight","_ref","visualViewport","addVisualOffsets","x","left","offsetLeft","y","top","offsetTop","right","bottom","getWindowScroll","win","scrollLeft","pageXOffset","scrollTop","pageYOffset","getHTMLElementScroll","getNodeScroll","getNodeName","nodeName","toLowerCase","getDocumentElement","document","documentElement","getWindowScrollBarX","getComputedStyle","isScrollParent","_getComputedStyle","overflow","overflowX","overflowY","isElementScaled","rect","getCompositeRect","elementOrVirtualElement","offsetParent","isFixed","isOffsetParentAnElement","offsetParentIsScaled","scroll","offsets","clientLeft","clientTop","getLayoutRect","abs","getParentNode","assignedSlot","parentNode","host","getScrollParent","indexOf","body","listScrollParents","list","_element$ownerDocumen","scrollParent","isBody","concat","updatedList","isTableElement","getTrueOffsetParent","position","getContainingBlock","isFirefox","isIE","elementCss","currentNode","css","transform","perspective","contain","willChange","getOffsetParent","auto","basePlacements","start","end","viewport","variationPlacements","reduce","acc","placement","beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite","modifierPhases","order","modifiers","Map","visited","Set","modifier","add","requires","requiresIfExists","dep","has","depModifier","get","orderModifiers","orderedModifiers","phase","debounce","fn","pending","Promise","resolve","then","undefined","mergeByName","merged","current","existing","assign","keys","DEFAULT_OPTIONS","strategy","areValidElements","_len","arguments","args","Array","_key","some","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","reference","popper","state","modifiersData","elements","attributes","styles","effectCleanupFns","isDestroyed","instance","setOptions","setOptionsAction","cleanupModifierEffects","scrollParents","contextElement","m","enabled","runModifierEffects","update","forceUpdate","_state$elements","rects","reset","_state$orderedModifie","_state$orderedModifie2","_options","destroy","_ref3","_ref3$options","effect","cleanupFn","noopFn","onFirstUpdate","passive","_options$scroll","_options$resize","resize","addEventListener","removeEventListener","getBasePlacement","split","getVariation","getMainAxisFromPlacement","computeOffsets","basePlacement","variation","commonX","commonY","mainAxis","len","unsetSides","roundOffsetsByDPR","dpr","devicePixelRatio","mapToStyles","_ref2","_Object$assign2","popperRect","gpuAcceleration","adaptive","roundOffsets","_offsets$x","_offsets$y","hasX","hasOwnProperty","hasY","sideX","sideY","heightProp","widthProp","offsetY","offsetX","_Object$assign","commonStyles","_ref4","computeStyles","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","popperOffsets","arrow","applyStyles","removeAttribute","setAttribute","initialStyles","margin","styleProperties","property","attribute","distanceAndSkiddingToXY","offset","invertDistance","skidding","distance","_options$offset","_data$state$placement","hash","getOppositePlacement","replace","matched","getOppositeVariationPlacement","getViewportRect","html","clientWidth","clientHeight","layoutViewport","getDocumentRect","winScroll","scrollWidth","scrollHeight","direction","contains","parent","child","rootNode","getRootNode","next","isSameNode","rectToClientRect","getInnerBoundingClientRect","getClientRectFromMixedType","clippingParent","getClippingParents","clippingParents","canEscapeClipping","clipperElement","getClippingRect","boundary","rootBoundary","mainClippingParents","firstClippingParent","clippingRect","accRect","getFreshSideObject","mergePaddingObject","paddingObject","expandToHashMap","hashMap","detectOverflow","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","padding","altContext","clippingClientRect","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","multiply","axis","computeAutoPlacement","flipVariations","_options$allowedAutoP","allowedAutoPlacements","placements","allowedPlacements","overflows","a","b","getExpandedFallbackPlacements","oppositePlacement","flip","_skip","_options$mainAxis","checkMainAxis","_options$altAxis","altAxis","checkAltAxis","specifiedFallbackPlacements","fallbackPlacements","_options$flipVariatio","preferredPlacement","isBasePlacement","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","i","_basePlacement","isStartVariation","isVertical","mainVariationSide","altVariationSide","checks","every","check","numberOfChecks","_loop","_i","fittingPlacement","slice","_ret","getAltAxis","within","withinMaxClamp","v","preventOverflow","_options$tether","tether","_options$tetherOffset","tetherOffset","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowElement","arrowRect","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","arrowOffsetParent","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_min","_max","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","_state$modifiersData$","minProp","maxProp","endDiff","startDiff","clientSize","centerToReference","center","axisProp","centerOffset","_options$element","querySelector","getSideOffsets","preventedOffsets","isAnySideFullyClipped","side","hide","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","eventListeners","DarkOverlay","SortButton","disabled","validator","s","maxHeight","includes","show","sortOrders","popperInstance","dropdownContentWrapper","$refs","newState","isShown","scale","beforeUnmount","mounted","dropdownTrigger","dropdownContent","createPopper","scrollToActive","tooltipScrollWrapper","querySelectorAll","optionHeight","activeIdx","$option","active","activeOptionYPosition","scrollTo","behavior","toggle","onClickOutside","_component_AppInput","label","input-type","readonly","_component_TooltipDropdown","onHide","_component_SearchControl","on-search","field-type","placeholder","input-timeout","onSearch","_component_CustomScrollbar","max-height","_TransitionGroup","tag","_toHandlers","_Fragment","title","data-tooltip-option","data-active","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_component_svg_icon","_hoisted_8","CustomScrollbar","SearchControl","SvgIcon","TooltipDropdown","AppInput","mixins","useCustomScrollbar","emptyKey","getId","fieldValue","size","useSearch","listMaxHeight","listMaxWidth","tooltipShown","transition","opt","o","emptyText","searchOptions","query","trim","tooltipShownHandler","tooltipHideHandler","selectHandler","for","hidden","_component_SvgIcon","inheritAttrs","inheritProps","model","modelValue","isDelay","localChecked","$nextTick","checkHandler","$event","checked","clickHandler","preventDefault","stopPropagation","_component_AppPreloader","AppPreloader","Number","_cache","$setup","_component_FullscreenLoader","_resolveComponent","_component_BtnContent","_component_AppButton","_component_EmptyBlock","_openBlock","_normalizeClass","tableLoad","_Transition","mode","_withCtx","useLoader","tableLoading","appLoading","showTable","$slots","emptyIcon","description","fullscreen","_createSlots","_","emptyButtonText","iconColor","_createCommentVNode","_toDisplayString","button","defineComponent","BtnContent","AppButton","EmptyBlock","FullscreenLoader","emptyButtonClick","loadTimeout","getTableLoad","handler","immediate","mapGetters","_component_AppTableBodyCell","_component_TableRow","_component_AppTableLayout","tableHead","paginationCaptureKey","totalRows","currentPage","$attrs","withMoreMenu","spaceBetween","withFooter","onSort","arg","onChangeViewConfiguration","conf","_renderList","mappedRows","actions","withAction","status","cells","bgStatus","content","componentName","componentContent","cellProps","params","hideButton","rightAlign","onEditItem","editItem","onDeleteItem","deleteItem","onSelectData","selectData","tableStatuses","verified","unverified","blocked","AppTableLayout","AppTableBodyCell","TableRow","changeViewConfiguration","updatedBodyRows","row","cell","mapTableRowsToTableContent","_component_ManageTemplateModal","_component_ShadowControl","_component_PageMainHeading","_component_TemplatesTable","_component_AppTableController","editingModalData","opened","manageTemplateModalOpened","loading","modalLoading","types","templatesTypesList","toggleManageTemplateModal","onSubmit","endEditingTemplate","onRemove","deleteTemplate","templatesList","onEmptyButtonClick","totalTemplatesCount","viewConfiguration","sortConfig","onToggleEdit","onDelete","_hoisted_9","_component_SelectInput","_component_AppCheckbox","_component_Dialog","modalTitle","_withModifiers","submitData","subject","typeSelect","onSelect","typesSelectHandler","isActive","submit","_createTextVNode","remove","defaultTitle","AppCheckbox","SelectInput","Dialog","code","typeId","isOpen","isEdit","titleFind","getDefaultHtml","f","templateTableHead","_component_AppTable","rows","totalRowsCount","changeSorting","AppTable","toggleEdit","delete","setup","emit","initialViewConfiguration","initialSortOptions","bySubject","turnOff","keyName","keyNameInModel","templateEditHandler","rowClickHandler","templateDeleteHandler","tableRefs","useBaseTable","generateRows","createdAt","createdBy","templateStatus","text","infoWithImage","email","image","onViewConfigurationChanged","currentSort","parentViewConfiguration","search","sortField","sortType","AppTableController","ManageTemplateModal","PageMainHeading","ShadowControl","TemplatesTable","layoutRefs","requestTemplatesHandler","fullFilter","requestTemplateTypes","getters","totalTemplates","editTemplateTitle","mapActions","saveTemplateHandler","setAppLoading","$store","autosize","autocomplete","data-rule","data-required","onInput","onFocus","onFocusout","onBlur","_component_app_input_status","AppInputStatus","inject","t","isTextarea","inputType","staticText","validators","staticFocused","showControls","maxValue","minValue","validationType","preventBrowserAutocomplete","textareaRequired","isAutoSize","focused","needShowControls","inputError","inputErrors","error","touched","errorMessage","prevValue","input","event","createEvent","initEvent","dispatchEvent","unmounted","destroyed","focusHandler","incr","intValue","decr","scrollbarOptions","scrollArea","scrollbar","scrollbarInit","scrollbarConfig","SimpleBar","autoHide","scrollbarDestroy","unMount"],"mappings":"sIACOA,MAAM,kB,oKAAXC,gCAgBM,MAhBNC,EAgBM,CAdIC,QAAI,yBADZC,yBAMEC,EANFC,wBAME,CAAAC,OAJQC,SAAM,CACbC,GAAIN,KACJO,KAAMP,OACNQ,SAAQC,kB,6DAGXR,yBAMES,EANFP,wBAME,CAAAC,OAJQC,SAAM,CACbC,GAAIN,KACLW,KAAK,GACJH,SAAQC,kB,0DAQf,IAAIG,EAAe,KACJ,OACbD,KAAM,gBACNE,WAAY,CAAEC,mBAAaC,4BAC3BC,MAAO,CACLT,KAAMU,OACNN,KAAM,CAAEO,KAAMD,OAAQE,UAAU,GAChCb,GAAI,CAAEY,KAAMD,OAAQE,UAAU,GAC9BC,aAAc,CAAEF,KAAMG,QAASC,SAAS,IAE1CC,MAA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\n \n \n\n \n \n\n\n\n\n\n","import { render } from \"./ShadowControl.vue?vue&type=template&id=23b89d0f&scoped=true\"\nimport script from \"./ShadowControl.vue?vue&type=script&lang=js\"\nexport * from \"./ShadowControl.vue?vue&type=script&lang=js\"\n\nimport \"./ShadowControl.vue?vue&type=style&index=0&id=23b89d0f&scoped=true&lang=scss\"\n\nimport exportComponent from \"/var/www/html/telesim-admin-panel/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-23b89d0f\"]])\n\nexport default __exports__","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./AppInputStatus.vue?vue&type=style&index=0&id=02b4e27c&lang=scss\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"bgColor\":\"#f5f6fa\",\"fontColor\":\"#333\",\"lightColor\":\"#fff\",\"primaryColor\":\"#2f80ed\",\"successColor\":\"#27ae60\",\"warningColor\":\"#f2994a\",\"warningLightColor\":\"#fef5ed\",\"dangerColor\":\"#eb5757\",\"dangerLightColor\":\"#fdefef\",\"darkBackgroundColor\":\"rgba(0,0,0,.1)\",\"activeMenuItemGradient\":\"linear-gradient(0deg, #F3F4F8, #F3F4F8)\",\"gradientPrimaryLight\":\"linear-gradient(90.25deg, #DFE9F7 1.96%, #F5F6FA 99.73%)\",\"gradientPrimaryLightTransparent\":\"linear-gradient(90.25deg, #DFE9F7 1.96%, #F5F6FA 99.73%)\",\"colIndent\":\"1rem\",\"tableColXxs\":\"4rem\",\"tableColXs\":\"5.2rem\",\"tableColSm\":\"7rem\",\"tableColSmL\":\"9.5rem\",\"tableColMd\":\"11.5rem\",\"tableColLg\":\"18rem\",\"tableColXg\":\"25rem\",\"buttonSizesArray\":\"icon,xs,sm,smL,md-fluid,md,lg,xl,fluid\"};","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./AppTable.vue?vue&type=style&index=0&id=30198167&lang=scss\"","import moment from \"moment\";\n\nexport function formatDate(date: string) {\n const result = moment(date)\n .local()\n .format(\"D.MM.YYYY\");\n return `${result} at ${moment(date)\n .local()\n .format(\"h:mm a\")}`;\n}\n\nexport function formatDateForGroup(date: string) {\n if (moment(date).isSame(moment(), \"day\")) {\n return \"Today\";\n }\n if (moment(date).isSame(moment().subtract(1, \"day\"), \"day\")) {\n return \"Yesterday\";\n }\n return moment(date).format(\"D MMM YYYY\");\n}\n\nexport function formateLLTime(date: string) {\n return moment(date).format(\"ll\");\n}\n\nexport function formateLTTime(date: string) {\n return moment(date).format(\"LT\");\n}\n","import { useStore } from \"vuex\";\nimport { ITableViewConfiguration } from \"@/components/Table/ts/interfaces/common\";\nimport moment from \"moment\";\nimport { CreateRefundDto } from \"@/store/interfaces/payments/CreateRefund.dto\";\nimport { formatDateForGroup } from \"@/hooks/formatingDate\";\n\ninterface Options {\n viewConfig: ITableViewConfiguration;\n filter: any;\n}\nexport function formatDate(date: string) {\n const result = moment(date)\n .local()\n .format(\"D.MM.YYYY\");\n return `${result} at ${moment(date)\n .local()\n .format(\"h:mm a\")}`;\n}\n\nexport function formatDateUntill(date: string) {\n const result = moment(date)\n .local()\n .format(\"D.MM.YYYY\");\n return `${result} ${moment(date)\n .local()\n .format(\"h:mm a\")}`;\n}\n\nexport function usePayments(options: Options) {\n const { viewConfig, filter } = options;\n const store = useStore();\n async function requestPaymentsHandler() {\n await store.dispatch(\"setAppLoading\", true);\n\n const { success, message } = await store.dispatch(\"fetchPaymentsList\", {\n viewConfig,\n filter\n });\n if (!success) {\n await store.dispatch(\"showErrorNotification\", message);\n }\n await store.dispatch(\"setAppLoading\", false);\n }\n function groupByDate(tableBody: any) {\n const datedIds = [] as any;\n for (const item of tableBody) {\n const formattedItem = formatDateForGroup(\n moment(item?.date || item?.added).format(\"D MMM YYYY\")\n );\n if (datedIds?.[formattedItem] && datedIds?.[formattedItem]?.length) {\n datedIds[formattedItem].push({\n ...item,\n date: formatDate(item?.date || item?.added)\n });\n } else {\n datedIds[formattedItem] = [\n {\n ...item,\n date: formatDate(item?.date || item?.added)\n }\n ];\n }\n }\n return Object.entries(datedIds);\n }\n\n async function changeViewConfigurationHandler({\n page,\n perPage\n }: ITableViewConfiguration): Promise {\n if (page === viewConfig.page && perPage !== viewConfig.perPage) {\n viewConfig.page = 1;\n } else {\n viewConfig.page = page;\n }\n viewConfig.perPage = perPage;\n requestPaymentsHandler();\n }\n\n async function createRefund(data: CreateRefundDto): Promise {\n await store.dispatch(\"setAppLoading\", true);\n\n const { success, message } = await store.dispatch(\"createRefund\", { data });\n if (!success) {\n await store.dispatch(\"showErrorNotification\", message);\n }\n await store.dispatch(\"setAppLoading\", false);\n return success;\n }\n\n async function changeFilterHandler({\n type,\n from,\n to\n }: {\n type: string;\n from: string;\n to: string;\n }) {\n filter.type = type;\n filter.from = from;\n filter.to = to;\n requestPaymentsHandler();\n }\n\n return {\n requestPaymentsHandler,\n formatDate,\n formatDateForGroup,\n groupByDate,\n changeViewConfigurationHandler,\n createRefund,\n changeFilterHandler\n };\n}\n","module.exports = __webpack_public_path__ + \"img/tooltip-arrow.4fbd267b.svg\";","import { ComputedRef, reactive, ref, Ref, watch } from \"vue\";\nimport { computed } from \"@vue/reactivity\";\n\nexport type pageFilter = {\n name: string;\n id: string;\n selected: boolean;\n};\n\nexport type useBaseAppLayoutOptions = {\n initialSearchQuery?: string;\n filterOptions?: string[];\n initialSelectedFilterOptionIdx?: number;\n onFiltersChange?: () => void;\n onChangeSearchQuery?: () => void;\n};\n\nexport interface IUseBaseAppLayout {\n filter: pageFilter[];\n selectedFilterOption: ComputedRef;\n searchQuery: Ref;\n\n searchHandler: (evt: Event) => void;\n onFilterSelect: (id: string) => void | Promise;\n}\n\nfunction mapFilterOptions(\n options: string[],\n selectedIdx: number | undefined = 0\n): pageFilter[] {\n return options.map(\n (option: string, idx: number): pageFilter => ({\n name: option,\n id: option,\n selected: idx === selectedIdx\n })\n );\n}\n\nexport function useBaseAppLayout(\n options: useBaseAppLayoutOptions\n): IUseBaseAppLayout {\n const {\n initialSearchQuery = \"\",\n filterOptions,\n initialSelectedFilterOptionIdx,\n onFiltersChange,\n onChangeSearchQuery\n } = options;\n\n const searchQuery: Ref = ref(initialSearchQuery);\n let filter: pageFilter[] | null = null;\n\n if (filterOptions) {\n filter = reactive(\n mapFilterOptions(filterOptions, initialSelectedFilterOptionIdx)\n );\n }\n\n if (onFiltersChange instanceof Function) {\n const watchable = [searchQuery, filter];\n\n watchable.forEach((ref: any, idx: number) => {\n watch(ref, () => {\n if (idx === 0 && onChangeSearchQuery) {\n onChangeSearchQuery();\n }\n\n onFiltersChange();\n });\n });\n }\n\n return {\n filter: filter || [],\n searchQuery,\n selectedFilterOption: computed(() => {\n if (!filter) {\n return null;\n }\n\n return filter.find(({ selected }) => !!selected) || null;\n }),\n\n searchHandler: ({ target }: Event) => {\n if (target) {\n searchQuery.value = (target as HTMLInputElement).value;\n }\n },\n\n onFilterSelect: (id: string): void => {\n if (filter) {\n filter.forEach((option: pageFilter) => {\n option.selected = option.id === id;\n });\n }\n }\n };\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./ManageTemplateModal.vue?vue&type=style&index=0&id=8a937cd0&lang=css\"","import gsap from \"gsap\";\n\nexport const useListHeightTransition = (baseDelay = 0.15) => {\n const makeDelay = (idx: number) => {\n return baseDelay * idx;\n };\n\n return {\n beforeEnter(el: HTMLElement) {\n gsap.set(el, { height: 0, autoAlpha: 0 });\n },\n\n enter(el: HTMLElement, done: () => void | null) {\n const idx: number = parseInt(el.dataset.index || \"\") || 0;\n const delay = makeDelay(idx);\n gsap.to(el, {\n autoAlpha: 1,\n height: \"auto\",\n duration: 0.4,\n delay,\n ease: \"expo.outIn\",\n\n onComplete: done\n });\n },\n\n leave(el: HTMLElement, done: () => void | null) {\n const idx: number = parseInt(el.dataset.index || \"\") || 0;\n const delay = makeDelay(idx);\n\n gsap.to(el, {\n autoAlpha: 0,\n height: 0,\n delay,\n duration: 0.3,\n ease: \"expo.outIn\",\n\n onComplete: done\n });\n }\n };\n};\n","\n \n\n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n \n\n\n\n\n\n","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport getComputedStyle from \"./dom-utils/getComputedStyle.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport validateModifiers from \"./utils/validateModifiers.js\";\nimport uniqueBy from \"./utils/uniqueBy.js\";\nimport getBasePlacement from \"./utils/getBasePlacement.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nimport { auto } from \"./enums.js\";\nvar INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';\nvar INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n }); // Validate the provided modifiers so that the consumer will get warned\n // if one of the modifiers is invalid for any reason\n\n if (process.env.NODE_ENV !== \"production\") {\n var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {\n var name = _ref.name;\n return name;\n });\n validateModifiers(modifiers);\n\n if (getBasePlacement(state.options.placement) === auto) {\n var flipModifier = state.orderedModifiers.find(function (_ref2) {\n var name = _ref2.name;\n return name === 'flip';\n });\n\n if (!flipModifier) {\n console.error(['Popper: \"auto\" placements require the \"flip\" modifier be', 'present and enabled to work.'].join(' '));\n }\n }\n\n var _getComputedStyle = getComputedStyle(popper),\n marginTop = _getComputedStyle.marginTop,\n marginRight = _getComputedStyle.marginRight,\n marginBottom = _getComputedStyle.marginBottom,\n marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can\n // cause bugs with positioning, so we'll warn the consumer\n\n\n if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {\n return parseFloat(margin);\n })) {\n console.warn(['Popper: CSS \"margin\" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));\n }\n }\n\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(INVALID_ELEMENT_ERROR);\n }\n\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n var __debug_loops__ = 0;\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (process.env.NODE_ENV !== \"production\") {\n __debug_loops__ += 1;\n\n if (__debug_loops__ > 100) {\n console.error(INFINITE_LOOP_ERROR);\n break;\n }\n }\n\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(INVALID_ELEMENT_ERROR);\n }\n\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref3) {\n var name = _ref3.name,\n _ref3$options = _ref3.options,\n options = _ref3$options === void 0 ? {} : _ref3$options,\n effect = _ref3.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref) {\n var x = _ref.x,\n y = _ref.y;\n var win = window;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n\n if (process.env.NODE_ENV !== \"production\") {\n var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';\n\n if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {\n return transitionProperty.indexOf(property) >= 0;\n })) {\n console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: \"transform\", \"top\", \"right\", \"bottom\", \"left\".', '\\n\\n', 'Disable the \"computeStyles\" modifier\\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\\n\\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));\n }\n }\n\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n\n if (process.env.NODE_ENV !== \"production\") {\n console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, \"auto\" cannot be used to allow \"bottom-start\".', 'Use \"auto-start\" instead.'].join(' '));\n }\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!isHTMLElement(arrowElement)) {\n console.error(['Popper: \"arrow\" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(['Popper: \"arrow\" modifier\\'s `element` must be a child of the popper', 'element.'].join(' '));\n }\n\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","import { render } from \"./TooltipDropdown.vue?vue&type=template&id=49cacb34&scoped=true\"\nimport script from \"./TooltipDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./TooltipDropdown.vue?vue&type=script&lang=js\"\n\nimport \"./TooltipDropdown.vue?vue&type=style&index=0&id=49cacb34&scoped=true&lang=scss\"\n\nimport exportComponent from \"/var/www/html/telesim-admin-panel/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-49cacb34\"]])\n\nexport default __exports__","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./ShadowControl.vue?vue&type=style&index=0&id=23b89d0f&scoped=true&lang=scss\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"bgColor\":\"#f5f6fa\",\"fontColor\":\"#333\",\"lightColor\":\"#fff\",\"primaryColor\":\"#2f80ed\",\"successColor\":\"#27ae60\",\"warningColor\":\"#f2994a\",\"warningLightColor\":\"#fef5ed\",\"dangerColor\":\"#eb5757\",\"dangerLightColor\":\"#fdefef\",\"darkBackgroundColor\":\"rgba(0,0,0,.1)\",\"activeMenuItemGradient\":\"linear-gradient(0deg, #F3F4F8, #F3F4F8)\",\"gradientPrimaryLight\":\"linear-gradient(90.25deg, #DFE9F7 1.96%, #F5F6FA 99.73%)\",\"gradientPrimaryLightTransparent\":\"linear-gradient(90.25deg, #DFE9F7 1.96%, #F5F6FA 99.73%)\",\"colIndent\":\"1rem\",\"tableColXxs\":\"4rem\",\"tableColXs\":\"5.2rem\",\"tableColSm\":\"7rem\",\"tableColSmL\":\"9.5rem\",\"tableColMd\":\"11.5rem\",\"tableColLg\":\"18rem\",\"tableColXg\":\"25rem\",\"buttonSizesArray\":\"icon,xs,sm,smL,md-fluid,md,lg,xl,fluid\"};","\n \n \n\n \n \n \n {}\"\n name=\"tooltip-search\"\n field-type=\"inline-field\"\n placeholder=\"search\"\n :input-timeout=\"true\"\n @search=\"searchHandler\"\n />\n \n\n \n \n \n \n \n \n \n \n {{ name || title }}\n \n\n \n \n \n \n \n \n \n \n \n\n \n {{ emptyText }}\n \n \n \n \n \n\n\n\n\n\n","import { render } from \"./SelectInput.vue?vue&type=template&id=6f14d5da\"\nimport script from \"./SelectInput.vue?vue&type=script&lang=js\"\nexport * from \"./SelectInput.vue?vue&type=script&lang=js\"\n\nimport \"./SelectInput.vue?vue&type=style&index=0&id=6f14d5da&lang=scss\"\n\nimport exportComponent from \"/var/www/html/telesim-admin-panel/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","// extracted by mini-css-extract-plugin\nmodule.exports = {\"bgColor\":\"#f5f6fa\",\"fontColor\":\"#333\",\"lightColor\":\"#fff\",\"primaryColor\":\"#2f80ed\",\"successColor\":\"#27ae60\",\"warningColor\":\"#f2994a\",\"warningLightColor\":\"#fef5ed\",\"dangerColor\":\"#eb5757\",\"dangerLightColor\":\"#fdefef\",\"darkBackgroundColor\":\"rgba(0,0,0,.1)\",\"activeMenuItemGradient\":\"linear-gradient(0deg, #F3F4F8, #F3F4F8)\",\"gradientPrimaryLight\":\"linear-gradient(90.25deg, #DFE9F7 1.96%, #F5F6FA 99.73%)\",\"gradientPrimaryLightTransparent\":\"linear-gradient(90.25deg, #DFE9F7 1.96%, #F5F6FA 99.73%)\",\"colIndent\":\"1rem\",\"tableColXxs\":\"4rem\",\"tableColXs\":\"5.2rem\",\"tableColSm\":\"7rem\",\"tableColSmL\":\"9.5rem\",\"tableColMd\":\"11.5rem\",\"tableColLg\":\"18rem\",\"tableColXg\":\"25rem\",\"buttonSizesArray\":\"icon,xs,sm,smL,md-fluid,md,lg,xl,fluid\"};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./CustomScrollbar.vue?vue&type=style&index=0&id=3da28ec2&lang=scss\"","\n \n \n \n \n \n \n \n {{ label }}\n \n\n\n\n\n\n","import { render } from \"./AppCheckbox.vue?vue&type=template&id=07b72113&scoped=true\"\nimport script from \"./AppCheckbox.vue?vue&type=script&lang=js\"\nexport * from \"./AppCheckbox.vue?vue&type=script&lang=js\"\n\nimport \"./AppCheckbox.vue?vue&type=style&index=0&id=07b72113&scoped=true&lang=scss\"\n\nimport exportComponent from \"/var/www/html/telesim-admin-panel/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-07b72113\"]])\n\nexport default __exports__","\n \n \n \n\n\n\n\n\n","import { render } from \"./FullscreenLoader.vue?vue&type=template&id=4b07da65\"\nimport script from \"./FullscreenLoader.vue?vue&type=script&lang=js\"\nexport * from \"./FullscreenLoader.vue?vue&type=script&lang=js\"\n\nimport \"./FullscreenLoader.vue?vue&type=style&index=0&id=4b07da65&lang=scss\"\n\nimport exportComponent from \"/var/www/html/telesim-admin-panel/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./AppInput.vue?vue&type=style&index=0&id=de9b3e74&lang=scss\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"bgColor\":\"#f5f6fa\",\"fontColor\":\"#333\",\"lightColor\":\"#fff\",\"primaryColor\":\"#2f80ed\",\"successColor\":\"#27ae60\",\"warningColor\":\"#f2994a\",\"warningLightColor\":\"#fef5ed\",\"dangerColor\":\"#eb5757\",\"dangerLightColor\":\"#fdefef\",\"darkBackgroundColor\":\"rgba(0,0,0,.1)\",\"activeMenuItemGradient\":\"linear-gradient(0deg, #F3F4F8, #F3F4F8)\",\"gradientPrimaryLight\":\"linear-gradient(90.25deg, #DFE9F7 1.96%, #F5F6FA 99.73%)\",\"gradientPrimaryLightTransparent\":\"linear-gradient(90.25deg, #DFE9F7 1.96%, #F5F6FA 99.73%)\",\"colIndent\":\"1rem\",\"tableColXxs\":\"4rem\",\"tableColXs\":\"5.2rem\",\"tableColSm\":\"7rem\",\"tableColSmL\":\"9.5rem\",\"tableColMd\":\"11.5rem\",\"tableColLg\":\"18rem\",\"tableColXg\":\"25rem\",\"buttonSizesArray\":\"icon,xs,sm,smL,md-fluid,md,lg,xl,fluid\"};","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, withCtx as _withCtx, createSlots as _createSlots, createBlock as _createBlock, Transition as _Transition, normalizeClass as _normalizeClass } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"container loader-container\"\n}\nconst _hoisted_2 = { style: {\"overflow\":\"hidden\"} }\nconst _hoisted_3 = { key: 1 }\nconst _hoisted_4 = { key: 0 }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_FullscreenLoader = _resolveComponent(\"FullscreenLoader\")!\n const _component_BtnContent = _resolveComponent(\"BtnContent\")!\n const _component_AppButton = _resolveComponent(\"AppButton\")!\n const _component_EmptyBlock = _resolveComponent(\"EmptyBlock\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"app-table-controller\", { 'min-height-1': _ctx.tableLoad }])\n }, [\n _createVNode(_Transition, {\n name: \"fade\",\n mode: \"out-in\"\n }, {\n default: _withCtx(() => [\n (_ctx.useLoader && (_ctx.tableLoading || _ctx.appLoading))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_FullscreenLoader)\n ])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n (_ctx.showTable)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n _renderSlot(_ctx.$slots, \"default\")\n ]))\n : (_openBlock(), _createBlock(_component_EmptyBlock, {\n key: 1,\n icon: _ctx.emptyIcon,\n description: _ctx.emptyText,\n \"icon-color\": \"dark\",\n fullscreen: true\n }, _createSlots({ _: 2 }, [\n (_ctx.emptyButtonText)\n ? {\n name: \"button\",\n fn: _withCtx(() => [\n _createVNode(_component_AppButton, {\n type: \"secondary\",\n size: \"lg\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.$emit('emptyButtonClick')))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_BtnContent, {\n icon: \"plus\",\n label: _ctx.emptyButtonText\n }, null, 8, [\"label\"])\n ]),\n _: 1\n })\n ]),\n key: \"0\"\n }\n : undefined\n ]), 1032, [\"icon\", \"description\"]))\n ]))\n ]),\n _: 3\n })\n ], 2))\n}","import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderSlot as _renderSlot, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-28469b4f\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"empty-block-description\" }\nconst _hoisted_2 = {\n key: 1,\n class: \"empty-block--button-wrapper mt-4\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_svg_icon = _resolveComponent(\"svg-icon\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"empty-block d-flex justify-content-center flex-column align-items-center\", {\n [`color-${_ctx.iconColor}`]: true,\n fullscreen: _ctx.fullscreen\n }])\n }, [\n (_ctx.icon)\n ? (_openBlock(), _createBlock(_component_svg_icon, {\n key: 0,\n icon: _ctx.icon,\n class: \"mb-3\"\n }, null, 8, [\"icon\"]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"p\", _hoisted_1, _toDisplayString(_ctx.description), 1),\n (_ctx.$slots.button)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _renderSlot(_ctx.$slots, \"button\", {}, undefined, true)\n ]))\n : _createCommentVNode(\"\", true)\n ], 2))\n}","\nimport { defineComponent, PropType } from \"vue\";\nimport SvgIcon from \"@/components/ui/SvgIcon.vue\";\nexport default defineComponent({\n name: \"EmptyBlock\",\n components: { SvgIcon },\n props: {\n icon: { type: String, required: false },\n description: { type: String, required: true },\n fullscreen: { type: Boolean, default: false },\n iconColor: {\n type: String as PropType<\"grey\" | \"dark\">,\n default: \"grey\"\n }\n }\n});\n","import { render } from \"./EmptyBlock.vue?vue&type=template&id=28469b4f&scoped=true&ts=true\"\nimport script from \"./EmptyBlock.vue?vue&type=script&lang=ts\"\nexport * from \"./EmptyBlock.vue?vue&type=script&lang=ts\"\n\nimport \"./EmptyBlock.vue?vue&type=style&index=0&id=28469b4f&scoped=true&lang=scss\"\n\nimport exportComponent from \"/var/www/html/telesim-admin-panel/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-28469b4f\"]])\n\nexport default __exports__","\nimport { mapGetters } from \"vuex\";\nimport { defineComponent } from \"vue\";\nimport FullscreenLoader from \"@/components/ui/FullscreenLoader.vue\";\nimport EmptyBlock from \"@/components/ui/EmptyBlock.vue\";\nimport AppButton from \"@/components/ui/Buttons/AppButton.vue\";\nimport BtnContent from \"@/components/ui/Buttons/BtnContent.vue\";\n\nexport default defineComponent({\n name: \"AppTableController\",\n components: { BtnContent, AppButton, EmptyBlock, FullscreenLoader },\n props: {\n tableLoading: {\n type: Boolean,\n default: false\n },\n\n useLoader: {\n type: Boolean,\n default: true\n },\n\n showTable: {\n type: Boolean,\n default: true\n },\n\n searchQuery: {\n type: String,\n default: \"\"\n },\n\n emptyKey: {\n type: String,\n required: true\n },\n\n emptyButtonText: { type: String, default: \"\" },\n\n emptyIcon: {\n type: String,\n default: \"\"\n }\n },\n emits: {\n emptyButtonClick: null\n },\n\n data() {\n return {\n tableLoad: false,\n loadTimeout: null as ReturnType | null\n };\n },\n\n watch: {\n getTableLoad: {\n handler(data) {\n this.loadTimeout && clearTimeout(this.loadTimeout);\n this.loadTimeout = setTimeout(\n () => {\n this.tableLoad = data;\n },\n data ? 0 : 500\n );\n },\n immediate: true\n }\n },\n\n computed: {\n ...mapGetters([\"appLoading\"]),\n emptyText(): string {\n if (!this.searchQuery) {\n return `There are no ${this.emptyKey} created yet!`;\n }\n\n return `No ${this.emptyKey} found by request \"${this.searchQuery}\"`;\n },\n getTableLoad() {\n return !this.showTable || this.tableLoading || this.appLoading;\n }\n }\n});\n","import { render } from \"./AppTableController.vue?vue&type=template&id=ea90f002&ts=true\"\nimport script from \"./AppTableController.vue?vue&type=script&lang=ts\"\nexport * from \"./AppTableController.vue?vue&type=script&lang=ts\"\n\nimport \"./AppTableController.vue?vue&type=style&index=0&id=ea90f002&lang=scss\"\n\nimport exportComponent from \"/var/www/html/telesim-admin-panel/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, mergeProps as _mergeProps, createBlock as _createBlock, normalizeClass as _normalizeClass, withCtx as _withCtx } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_AppTableBodyCell = _resolveComponent(\"AppTableBodyCell\")!\n const _component_TableRow = _resolveComponent(\"TableRow\")!\n const _component_AppTableLayout = _resolveComponent(\"AppTableLayout\")!\n\n return (_openBlock(), _createBlock(_component_AppTableLayout, _mergeProps({\n \"table-head\": _ctx.tableHead,\n \"pagination-capture-key\": _ctx.paginationCaptureKey,\n \"total-rows\": _ctx.totalRows,\n \"per-page\": _ctx.perPage,\n \"current-page\": _ctx.currentPage\n }, _ctx.$attrs.class, {\n class: { withMoreMenu: _ctx.withMoreMenu },\n \"space-between\": _ctx.spaceBetween,\n \"with-footer\": _ctx.withFooter,\n onSort: _cache[0] || (_cache[0] = \n (...arg: any[]) => {\n _ctx.$emit('sort', ...arg);\n }\n ),\n onChangeViewConfiguration: _cache[1] || (_cache[1] = \n (conf) => {\n _ctx.$emit('changeViewConfiguration', conf);\n }\n )\n }), {\n \"table-body\": _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.mappedRows, ({\n id,\n actions,\n withAction,\n status,\n cells,\n bgStatus = '',\n onClick = () => {}\n }, idx) => {\n return (_openBlock(), _createBlock(_component_TableRow, {\n key: idx,\n status: status,\n \"more-menu\": actions,\n \"space-between\": _ctx.spaceBetween,\n class: _normalizeClass({\n 'with-footer': !_ctx.withFooter,\n 'hover-scale': withAction,\n [`status-${bgStatus}`]: true\n }),\n onClick: onClick\n }, {\n content: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(cells, ({ componentName, componentContent, cellProps, params }, idx) => {\n return (_openBlock(), _createBlock(_component_AppTableBodyCell, _mergeProps({\n id: id,\n key: idx,\n \"component-info\": {\n name: componentName,\n content: componentContent\n },\n \"hide-button\": _ctx.hideButton,\n \"right-align\": params.rightAlign\n }, { ...cellProps }, {\n onEditItem: _ctx.editItem,\n onDeleteItem: _ctx.deleteItem,\n onSelectData: _ctx.selectData\n }), null, 16, [\"id\", \"component-info\", \"hide-button\", \"right-align\", \"onEditItem\", \"onDeleteItem\", \"onSelectData\"]))\n }), 128))\n ]),\n _: 2\n }, 1032, [\"status\", \"more-menu\", \"space-between\", \"class\", \"onClick\"]))\n }), 128))\n ]),\n _: 1\n }, 16, [\"table-head\", \"pagination-capture-key\", \"total-rows\", \"per-page\", \"current-page\", \"class\", \"space-between\", \"with-footer\"]))\n}","\nimport { defineComponent, PropType } from \"vue\";\nimport { IObjectKeys } from \"@/interfaces/IObjectKeys\";\nimport TableRow from \"@/components/Table/TableRow.vue\";\n\nimport {\n ITableBodyRow,\n ITableHeadCell\n} from \"@/components/Table/ts/interfaces/TableStructure\";\nimport { mapTableRowsToTableContent } from \"@/hooks/tables/modules/baseTable/mapTableRowsToTableContent\";\nimport AppTableBodyCell from \"@/components/Table/ts/AppTableBodyCell.vue\";\nimport AppTableLayout from \"@/components/Table/ts/AppTableLayout.vue\";\n\nconst tableStatuses: IObjectKeys = {\n verified: \"base\",\n unverified: \"warn\",\n blocked: \"error\"\n};\n\nexport type tableHeadCellsList = ITableHeadCell[];\nexport type tableBodyList = ITableBodyRow[];\n\nexport default defineComponent({\n name: \"AppTable\",\n components: {\n AppTableLayout,\n AppTableBodyCell,\n TableRow\n },\n inheritAttrs: false,\n props: {\n paginationCaptureKey: {\n type: String,\n default: \"\"\n },\n totalRows: { type: Number as PropType, default: 0 },\n perPage: { type: Number, default: 10 },\n currentPage: { type: Number, default: 1 },\n tableHead: {\n type: Array as PropType,\n required: true\n },\n\n tableBody: {\n type: Array as PropType,\n required: true\n },\n\n hideButton: { type: Boolean, default: false },\n spaceBetween: { type: Boolean, default: true },\n withFooter: { type: Boolean, default: true }\n },\n emits: {\n changeViewConfiguration: null,\n sort: null,\n deleteItem: null,\n editItem: null,\n selectData: null\n },\n computed: {\n withMoreMenu(): boolean {\n return !!this.tableBody[0]?.actions;\n },\n\n updatedBodyRows(): tableBodyList {\n return this.tableBody.map(row => {\n const status = row.status || \"base\";\n\n return {\n ...row,\n cells: row.cells.map((cell, idx) => ({\n ...cell,\n size: this.tableHead[idx].size\n })),\n withAction: !!row.onClick,\n status: tableStatuses[status] || \"base\"\n };\n });\n },\n\n mappedRows() {\n return mapTableRowsToTableContent(this.updatedBodyRows);\n }\n },\n\n methods: {\n deleteItem(id: number) {\n this.$emit(\"deleteItem\", id);\n },\n editItem(id: number) {\n this.$emit(\"editItem\", id);\n },\n selectData(data: any) {\n this.$emit(\"selectData\", data);\n }\n }\n});\n","import { render } from \"./AppTable.vue?vue&type=template&id=30198167&ts=true\"\nimport script from \"./AppTable.vue?vue&type=script&lang=ts\"\nexport * from \"./AppTable.vue?vue&type=script&lang=ts\"\n\nimport \"./AppTable.vue?vue&type=style&index=0&id=30198167&lang=scss\"\n\nimport exportComponent from \"/var/www/html/telesim-admin-panel/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"container templates\" }\nconst _hoisted_2 = { class: \"d-flex w-100 justify-content-end page-heading-toolbar\" }\nconst _hoisted_3 = { class: \"page-heading-toolbar--col\" }\nconst _hoisted_4 = { class: \"page-heading-toolbar--col\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_ManageTemplateModal = _resolveComponent(\"ManageTemplateModal\")!\n const _component_ShadowControl = _resolveComponent(\"ShadowControl\")!\n const _component_BtnContent = _resolveComponent(\"BtnContent\")!\n const _component_AppButton = _resolveComponent(\"AppButton\")!\n const _component_PageMainHeading = _resolveComponent(\"PageMainHeading\")!\n const _component_TemplatesTable = _resolveComponent(\"TemplatesTable\")!\n const _component_AppTableController = _resolveComponent(\"AppTableController\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(_component_ManageTemplateModal, {\n id: _ctx.editingModalData?.id,\n data: _ctx.editingModalData.id != 0 ? _ctx.editingModalData : null,\n opened: _ctx.manageTemplateModalOpened,\n \"is-open\": _ctx.manageTemplateModalOpened,\n loading: _ctx.modalLoading,\n types: _ctx.templatesTypesList,\n onHide: _cache[0] || (_cache[0] = ($event: any) => (_ctx.toggleManageTemplateModal({ status: false }))),\n onSubmit: _ctx.endEditingTemplate,\n onRemove: _ctx.deleteTemplate\n }, null, 8, [\"id\", \"data\", \"opened\", \"is-open\", \"loading\", \"types\", \"onSubmit\", \"onRemove\"]),\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_component_PageMainHeading, { title: \"Templates\" }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(_component_ShadowControl, {\n id: \"templates-search\",\n class: \"search-control\",\n icon: \"search\",\n placeholder: \"Search...\",\n name: \"accounts-search\",\n \"input-timeout\": true,\n onChange: _ctx.searchHandler\n }, null, 8, [\"onChange\"])\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(_component_AppButton, {\n type: \"secondary\",\n size: \"lg\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_BtnContent, {\n label: \"Create Template\",\n icon: \"plus\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.toggleManageTemplateModal({ status: true })))\n })\n ]),\n _: 1\n })\n ])\n ])\n ]),\n _: 1\n })\n ]),\n _createVNode(_component_AppTableController, {\n \"show-table\": !!_ctx.templatesList.length,\n \"search-query\": _ctx.searchQuery,\n \"empty-button-text\": \"Create Template\",\n \"empty-key\": \"templates\",\n \"empty-icon\": \"templates\",\n onEmptyButtonClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.toggleManageTemplateModal({ status: true })))\n }, {\n default: _withCtx(() => [\n (_ctx.templatesList.length)\n ? (_openBlock(), _createBlock(_component_TemplatesTable, {\n key: 0,\n \"templates-list\": _ctx.templatesList,\n \"total-rows-count\": _ctx.totalTemplatesCount,\n \"view-configuration\": _ctx.viewConfiguration,\n sort: _ctx.sortConfig,\n onToggleEdit: _ctx.toggleManageTemplateModal,\n onDelete: _ctx.deleteTemplate,\n onChangeViewConfiguration: _ctx.changeViewConfigurationHandler\n }, null, 8, [\"templates-list\", \"total-rows-count\", \"view-configuration\", \"sort\", \"onToggleEdit\", \"onDelete\", \"onChangeViewConfiguration\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"show-table\", \"search-query\"])\n ], 64))\n}","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, withModifiers as _withModifiers, mergeProps as _mergeProps } from \"vue\"\n\nconst _hoisted_1 = { style: {\"margin-top\":\"15px\"} }\nconst _hoisted_2 = { class: \"mt-3 pt-1\" }\nconst _hoisted_3 = { class: \"mt-3 pt-1\" }\nconst _hoisted_4 = [\"for\"]\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"d-block ms-2\" }, \"Active\", -1)\nconst _hoisted_6 = { class: \"mt-5\" }\nconst _hoisted_7 = {\n key: 0,\n class: \"row no-gutters\"\n}\nconst _hoisted_8 = { class: \"col-6\" }\nconst _hoisted_9 = { class: \"col-6\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_AppInput = _resolveComponent(\"AppInput\")!\n const _component_SelectInput = _resolveComponent(\"SelectInput\")!\n const _component_AppCheckbox = _resolveComponent(\"AppCheckbox\")!\n const _component_AppButton = _resolveComponent(\"AppButton\")!\n const _component_Dialog = _resolveComponent(\"Dialog\")!\n\n return (_openBlock(), _createBlock(_component_Dialog, _mergeProps(_ctx.$attrs, {\n title: _ctx.modalTitle,\n class: \"template-modal\"\n }), {\n default: _withCtx(() => [\n _createElementVNode(\"form\", {\n onSubmit: _cache[3] || (_cache[3] = _withModifiers(() => {}, [\"prevent\"]))\n }, [\n _createElementVNode(\"div\", null, [\n _createVNode(_component_AppInput, {\n id: `${_ctx.data?.id}:subject`,\n modelValue: _ctx.submitData.subject,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.submitData.subject) = $event)),\n label: \"Subject\",\n \"input-type\": \"material\"\n }, null, 8, [\"id\", \"modelValue\"])\n ]),\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_component_SelectInput, {\n label: \"Type\",\n options: _ctx.types,\n \"field-value\": _ctx.typeSelect,\n size: \"xl\",\n onSelect: _ctx.typesSelectHandler\n }, null, 8, [\"options\", \"field-value\", \"onSelect\"])\n ]),\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_AppInput, {\n id: `${_ctx.data?.id}:html`,\n modelValue: _ctx.submitData.html,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.submitData.html) = $event)),\n label: \"HTML Code\",\n \"input-type\": \"material\",\n \"is-textarea\": true\n }, null, 8, [\"id\", \"modelValue\"])\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"label\", {\n for: `${_ctx.data?.id}:active`,\n class: \"d-flex align-items-center cursor-pointer\"\n }, [\n _createVNode(_component_AppCheckbox, {\n id: `${_ctx.data?.id}:active`,\n modelValue: _ctx.submitData.isActive,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.submitData.isActive) = $event))\n }, null, 8, [\"id\", \"modelValue\"]),\n _hoisted_5\n ], 8, _hoisted_4)\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n (_ctx.data?.id)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(_component_AppButton, {\n loading: _ctx.loading,\n type: \"secondary\",\n size: \"xl\",\n onClick: _ctx.submit\n }, {\n default: _withCtx(() => [\n _createTextVNode(\" Save \")\n ]),\n _: 1\n }, 8, [\"loading\", \"onClick\"])\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createVNode(_component_AppButton, {\n loading: _ctx.loading,\n type: \"danger-transparent\",\n size: \"xl\",\n onClick: _ctx.remove\n }, {\n default: _withCtx(() => [\n _createTextVNode(\" Delete \")\n ]),\n _: 1\n }, 8, [\"loading\", \"onClick\"])\n ])\n ]))\n : (_openBlock(), _createBlock(_component_AppButton, {\n key: 1,\n loading: _ctx.loading,\n type: \"secondary\",\n size: \"xl\",\n onClick: _ctx.submit\n }, {\n default: _withCtx(() => [\n _createTextVNode(\" Add template \")\n ]),\n _: 1\n }, 8, [\"loading\", \"onClick\"]))\n ])\n ], 32)\n ]),\n _: 1\n }, 16, [\"title\"]))\n}","\nimport Dialog from \"@/components/ui/Modal/Dialog/Dialog.vue\";\nimport AppInput from \"@/components/Form/AppInput.vue\";\nimport SelectInput from \"@/components/Form/SelectInput.vue\";\nimport AppButton from \"@/components/ui/Buttons/AppButton.vue\";\nimport AppCheckbox from \"@/components/Form/AppCheckbox.vue\";\nimport { defineComponent } from \"vue\";\nconst defaultTitle = \"New Template\";\ninterface submitData {\n html: string;\n subject: string;\n isActive: boolean;\n}\n\ninterface selectedType {\n id: number;\n active: boolean;\n name: string;\n selected: boolean;\n}\n\nexport default defineComponent({\n name: \"ManageTemplateModal\",\n components: { AppCheckbox, AppButton, AppInput, SelectInput, Dialog },\n props: {\n data: {\n type: Object,\n default: () => {\n return {\n code: \"\",\n id: 0,\n subject: \"\",\n status: false,\n typeId: 0\n };\n }\n },\n types: {\n type: Object,\n default: () => {\n return {\n id: 0,\n active: true,\n name: \"\",\n selected: false\n } as selectedType;\n }\n },\n isOpen: { type: Boolean, default: false },\n loading: { type: Boolean, default: false }\n },\n emits: [\"submit\", \"remove\"],\n data() {\n return {\n submitData: {} as submitData\n };\n },\n\n computed: {\n isEdit(): string {\n if (this.data) return this.data.subject;\n return defaultTitle;\n },\n modalTitle(): string {\n return this.data?.subject ?? defaultTitle;\n },\n typeSelect(): string {\n const titleFind: selectedType = this.types.find(\n (type: selectedType) => type.selected\n );\n if (titleFind?.name) return titleFind.name;\n const title: string = this.types.find(\n (type: selectedType) => type.id === this.data?.typeId\n )?.name;\n if (title) return title;\n return \"\";\n }\n },\n\n watch: {\n isOpen(): void {\n if (this.data?.id) {\n this.submitData = {\n subject: this.data.subject,\n html: this.data.code,\n isActive: this.data.status\n };\n } else {\n this.submitData = {\n isActive: false\n } as submitData;\n }\n }\n },\n methods: {\n remove(): void {\n this.$emit(\"remove\", this.data?.id);\n },\n submit(): void {\n this.$emit(\"submit\", {\n ...this.submitData,\n typeId:\n this.types.find((type: selectedType) => type.selected)?.id ??\n this.data.typeId\n });\n this.submitData = {} as submitData;\n },\n getDefaultHtml(): string {\n if (!this.data) {\n return \"\";\n }\n return this.data.code;\n },\n typesSelectHandler(id: number): void {\n this.types.forEach((f: selectedType) => (f.selected = f.id === id));\n }\n }\n});\n","import { render } from \"./ManageTemplateModal.vue?vue&type=template&id=8a937cd0&ts=true\"\nimport script from \"./ManageTemplateModal.vue?vue&type=script&lang=ts\"\nexport * from \"./ManageTemplateModal.vue?vue&type=script&lang=ts\"\n\nimport \"./ManageTemplateModal.vue?vue&type=style&index=0&id=8a937cd0&lang=css\"\n\nimport exportComponent from \"/var/www/html/telesim-admin-panel/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","export const templateTableHead = [\n {\n size: \"xl\",\n sort: \"subject\",\n label: \"subject\",\n id: \"subject\"\n },\n {\n size: \"lg\",\n sort: \"data-created\",\n label: \"data created\"\n },\n {\n size: \"lg\",\n sort: \"created-by\",\n label: \"created by\"\n },\n {\n size: \"md\",\n label: \"status\"\n },\n {\n size: \"xxs\",\n label: \"\"\n }\n];\n","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"account-wrapper\",\n style: {\"max-width\":\"100%\",\"overflow\":\"auto\"}\n}\nconst _hoisted_2 = { class: \"container\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_AppTable = _resolveComponent(\"AppTable\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_AppTable, {\n \"pagination-capture-key\": \"templates\",\n \"table-head\": _ctx.tableHead,\n \"table-body\": _ctx.rows,\n \"total-rows\": _ctx.totalRowsCount,\n \"current-page\": _ctx.viewConfiguration.page,\n \"per-page\": _ctx.viewConfiguration.perPage,\n onChangeViewConfiguration: _ctx.changeViewConfiguration,\n onSort: _ctx.changeSorting\n }, null, 8, [\"table-head\", \"table-body\", \"total-rows\", \"current-page\", \"per-page\", \"onChangeViewConfiguration\", \"onSort\"])\n ])\n ]))\n}","\nimport { ComputedRef, defineComponent, PropType, computed } from \"vue\";\nimport {\n ITableBodyRow,\n ITableHeadCell\n} from \"@/components/Table/ts/interfaces/TableStructure\";\nimport { sortItem, sortOrders } from \"@/enums/main/sortOrders\";\nimport {\n infoWithImage,\n ITableViewConfiguration\n} from \"@/components/Table/ts/interfaces/common\";\nimport { userId } from \"@/store/interfaces/auth/common\";\nimport AppTable from \"@/components/Table/ts/AppTable.vue\";\nimport { useBaseTable } from \"@/hooks/tables/useTable\";\nimport { ITemplatesData } from \"@/store/interfaces/templates/ITemplateData\";\nimport { templatesData } from \"@/api/interfaces/templates/common\";\nimport { formatDate } from \"@/hooks/payments/usePayments\";\n\ntype tableHeadCells = ITableHeadCell[];\n\nexport type templatesTableSort = {\n bySubject: sortItem;\n};\n\nexport default defineComponent({\n name: \"TemplatesTable\",\n components: {\n AppTable\n },\n\n emits: {\n toggleEdit: null,\n delete: null,\n changeViewConfiguration: null\n },\n setup(props, { emit }) {\n const initialViewConfiguration = {\n page: 1,\n perPage: 10\n };\n\n const initialSortOptions: templatesTableSort = {\n bySubject: {\n order: sortOrders.turnOff,\n keyName: \"subject\",\n keyNameInModel: \"subject\"\n }\n };\n\n // rows actions\n const templateEditHandler = (data: ITemplatesData) => rowClickHandler(data);\n const templateDeleteHandler = (id: userId) => emit(\"delete\", id);\n\n async function rowClickHandler(data: templatesData): Promise {\n emit(\"toggleEdit\", { status: true, data });\n }\n\n // table model\n const templatesList: ComputedRef = computed(\n () => props.templatesList\n );\n\n const tableRefs = useBaseTable({\n initialViewConfiguration,\n initialSortOptions,\n model: templatesList,\n generateRows(templatesList: ITemplatesData[]): ITableBodyRow[] {\n return templatesList.map(\n ({\n id,\n subject,\n createdAt,\n createdBy,\n status,\n code,\n typeId\n }: ITemplatesData): ITableBodyRow => {\n let templateStatus = status ? \"active\" : \"inactive\";\n return {\n status: templateStatus,\n onClick: (): void => {\n templateEditHandler({\n id,\n subject,\n createdAt,\n createdBy,\n status,\n code,\n typeId\n });\n },\n actions: [\n {\n text: \"Edit\",\n onClick: (): void => {\n templateEditHandler({\n id,\n subject,\n status,\n createdAt,\n createdBy,\n code,\n typeId\n });\n }\n },\n {\n text: \"Remove\",\n onClick: (): void => {\n templateDeleteHandler(id);\n }\n }\n ],\n cells: [\n {\n label: subject\n },\n {\n label: formatDate(createdAt)\n },\n {\n infoWithImage: {\n title: createdBy?.email,\n image: createdBy?.image\n } as infoWithImage\n },\n {\n label: status ? \"active\" : \"inactive\"\n }\n ]\n };\n }\n );\n },\n onViewConfigurationChanged(\n viewConfiguration: ITableViewConfiguration\n ): void {\n // get data by parent component\n emit(\"changeViewConfiguration\", viewConfiguration);\n }\n });\n\n const {\n rows,\n changeViewConfiguration,\n changeSorting,\n viewConfiguration,\n currentSort\n } = tableRefs;\n\n return {\n rows,\n changeViewConfiguration,\n changeSorting,\n viewConfiguration,\n currentSort\n };\n },\n\n props: {\n totalRowsCount: {\n type: Number,\n required: true\n },\n\n templatesList: {\n type: Array as PropType,\n required: true\n },\n\n sort: {\n type: Object as PropType,\n required: true\n },\n\n parentViewConfiguration: {\n type: Object as PropType,\n default: () => ({\n page: 1,\n perPage: 10,\n search: \"\",\n sortField: \"subject\",\n sortType: \"ASC\"\n })\n }\n },\n\n computed: {\n tableHead(): tableHeadCells {\n const { bySubject } = this.currentSort;\n return [\n {\n size: \"xl\",\n sort: {\n keyName: bySubject.keyName,\n order: bySubject.order\n },\n\n label: \"subject\",\n id: \"subject\"\n },\n {\n size: \"lg\",\n label: \"data created\",\n id: \"data-created\"\n },\n {\n size: \"xl\",\n label: \"created by\",\n id: \"created-by\"\n },\n {\n size: \"xs\",\n label: \"status\",\n id: \"status\"\n }\n ];\n }\n }\n});\n","import { render } from \"./TemplatesTable.vue?vue&type=template&id=a828491a&ts=true\"\nimport script from \"./TemplatesTable.vue?vue&type=script&lang=tsx\"\nexport * from \"./TemplatesTable.vue?vue&type=script&lang=tsx\"\n\nimport exportComponent from \"/var/www/html/telesim-admin-panel/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\nimport PageMainHeading from \"@/components/Layout/PageMainHeading.vue\";\nimport ShadowControl from \"@/components/Form/ShadowControl.vue\";\nimport BtnContent from \"@/components/ui/Buttons/BtnContent.vue\";\nimport ManageTemplateModal from \"@/components/Templates/ManageTemplateModal.vue\";\nimport AppButton from \"@/components/ui/Buttons/AppButton.vue\";\n\nimport { mapActions, useStore } from \"vuex\";\nimport { templateTableHead } from \"@/components/Table/ts/interfaces/tableInstances/templateTable\";\nimport { computed, defineComponent, reactive, watch } from \"vue\";\nimport { ITableViewConfiguration } from \"@/components/Table/ts/interfaces/common\";\nimport TemplatesTable from \"@/components/Table/ts/instances/templates/TemplatesTable.vue\";\nimport { templatesSetup } from \"./interfaces/templatesInterfaces\";\nimport {\n IUseBaseAppLayout,\n useBaseAppLayout\n} from \"@/hooks/layout/useBaseAppLayout\";\nimport { sortOrders } from \"@/enums/main/sortOrders\";\nimport AppTableController from \"@/components/Table/ts/AppTableController.vue\";\n\nexport default defineComponent({\n name: \"Templates\",\n components: {\n AppTableController,\n ManageTemplateModal,\n BtnContent,\n PageMainHeading,\n ShadowControl,\n AppButton,\n TemplatesTable\n },\n setup(): templatesSetup {\n const store = useStore();\n\n const viewConfiguration: ITableViewConfiguration = reactive({\n page: 1,\n perPage: 10\n });\n\n // Page layout refs\n const layoutRefs: IUseBaseAppLayout = useBaseAppLayout({\n initialSearchQuery: \"\",\n onFiltersChange: requestTemplatesHandler,\n onChangeSearchQuery() {\n changeViewConfigurationHandler({\n page: 1,\n perPage: viewConfiguration.perPage\n });\n }\n });\n\n watch(viewConfiguration, requestTemplatesHandler);\n\n const { searchQuery } = layoutRefs;\n\n const fullFilter = computed(() => {\n return {\n search: searchQuery.value,\n sortField: \"subject\",\n sortType: sortOrders.asc\n };\n });\n\n async function requestTemplatesHandler(): Promise {\n await store.dispatch(\"setAppLoading\", true);\n\n const { success, message } = await store.dispatch(\"fetchTemplateData\", {\n query: { ...viewConfiguration, ...fullFilter.value }\n });\n\n if (!success && message) {\n await store.dispatch(\"showErrorNotification\", message);\n }\n\n await store.dispatch(\"setAppLoading\", false);\n }\n\n async function requestTemplateTypes(): Promise {\n await store.dispatch(\"fetchTemplatesTypes\");\n }\n\n requestTemplatesHandler();\n requestTemplateTypes();\n\n function changeViewConfigurationHandler({\n page,\n perPage\n }: // search,\n ITableViewConfiguration): void {\n viewConfiguration.page = page;\n viewConfiguration.perPage = perPage;\n }\n\n return {\n ...layoutRefs,\n viewConfiguration,\n searchQuery,\n templatesList: computed(() => store.getters.templatesList),\n totalTemplatesCount: computed(() => store.getters.totalTemplates),\n requestTemplatesHandler,\n changeViewConfigurationHandler,\n templatesTypesList: computed(() => store.getters.templatesTypesList)\n };\n },\n\n data() {\n return {\n tableHead: templateTableHead,\n manageTemplateModalOpened: false,\n editingModalData: {\n id: 0,\n code: \"\",\n status: \"\",\n subject: \"\",\n typeId: 0\n },\n editTemplateTitle: \"\",\n modalLoading: false,\n sortConfig: {\n bySubject: { order: sortOrders.turnOff, keyName: \"subject\" }\n }\n };\n },\n\n methods: {\n ...mapActions([\"setAppLoading\", \"showErrorNotification\"]),\n toggleManageTemplateModal(data: any) {\n this.manageTemplateModalOpened = data.status;\n if (data.data && data.data.id !== 0) {\n this.editingModalData = data.data;\n }\n if (!data.status) {\n this.editingModalData.id = 0;\n }\n },\n\n async endEditingTemplate(data: any) {\n if (data) {\n await this.saveTemplateHandler(data);\n }\n await this.requestTemplatesHandler();\n this.toggleManageTemplateModal({ status: false });\n this.editingModalData.id = 0;\n },\n\n async saveTemplateHandler(data: any) {\n this.setAppLoading(true);\n if (this.editingModalData?.id) {\n await this.$store.dispatch(\"editTemplateData\", {\n data: {\n id: Number(this.editingModalData.id),\n code: data.html,\n subject: data.subject,\n status: data.isActive,\n typeId: data.typeId\n }\n });\n } else {\n await this.$store.dispatch(\"addTemplate\", {\n data: {\n code: data.html,\n subject: data.subject,\n status: data.isActive,\n typeId: data.typeId\n }\n });\n }\n setTimeout(() => {\n this.setAppLoading(false);\n }, 500);\n },\n\n async deleteTemplate(id: number) {\n await this.$store.dispatch(\"deleteTemplate\", { id });\n await this.requestTemplatesHandler();\n this.toggleManageTemplateModal(false);\n },\n\n searchHandler({ target }: Event) {\n if (!target) {\n return;\n }\n\n this.viewConfiguration.search = (target as HTMLInputElement).value;\n }\n }\n});\n","import { render } from \"./Templates.vue?vue&type=template&id=d39de306&ts=true\"\nimport script from \"./Templates.vue?vue&type=script&lang=ts\"\nexport * from \"./Templates.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"/var/www/html/telesim-admin-panel/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n \n \n {{ staticText }}\n \n\n \n\n \n {{ label }}\n \n\n \n \n \n \n\n {{ errorMessage }}\n\n \n\n \n \n \n\n\n\n\n\n","\n \n \n {{ label }}\n \n\n\n\n\n\n","import { render } from \"./AppInputStatus.vue?vue&type=template&id=02b4e27c\"\nimport script from \"./AppInputStatus.vue?vue&type=script&lang=js\"\nexport * from \"./AppInputStatus.vue?vue&type=script&lang=js\"\n\nimport \"./AppInputStatus.vue?vue&type=style&index=0&id=02b4e27c&lang=scss\"\n\nimport exportComponent from \"/var/www/html/telesim-admin-panel/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./AppInput.vue?vue&type=template&id=de9b3e74\"\nimport script from \"./AppInput.vue?vue&type=script&lang=js\"\nexport * from \"./AppInput.vue?vue&type=script&lang=js\"\n\nimport \"./AppInput.vue?vue&type=style&index=0&id=de9b3e74&lang=scss\"\n\nimport exportComponent from \"/var/www/html/telesim-admin-panel/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n \n \n \n\n\n\n\n\n","import { render } from \"./CustomScrollbar.vue?vue&type=template&id=3da28ec2\"\nimport script from \"./CustomScrollbar.vue?vue&type=script&lang=js\"\nexport * from \"./CustomScrollbar.vue?vue&type=script&lang=js\"\n\nimport \"./CustomScrollbar.vue?vue&type=style&index=0&id=3da28ec2&lang=scss\"\n\nimport exportComponent from \"/var/www/html/telesim-admin-panel/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./AppTableController.vue?vue&type=style&index=0&id=ea90f002&lang=scss\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./SelectInput.vue?vue&type=style&index=0&id=6f14d5da&lang=scss\"","import SimpleBar from \"simplebar\";\n\nexport const useCustomScrollbar = {\n data() {\n return {\n scrollArea: null,\n scrollbar: null\n };\n },\n\n methods: {\n scrollbarInit() {\n const conf = this.scrollbarConfig ?? {};\n this.scrollbar = new SimpleBar(this.scrollArea, {\n autoHide: false,\n ...conf\n });\n },\n\n scrollbarDestroy() {\n this.scrollbar?.unMount();\n this.scrollbar = null;\n }\n },\n watch: {\n scrollArea(node) {\n if (node) {\n this.scrollbarInit();\n } else {\n this.scrollbarDestroy();\n }\n }\n },\n\n mounted() {\n setTimeout(() => {\n this.scrollArea = this.$refs.scrollArea;\n }, 150);\n },\n unmounted() {\n this.scrollArea = null;\n }\n};\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./AppCheckbox.vue?vue&type=style&index=0&id=07b72113&scoped=true&lang=scss\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"bgColor\":\"#f5f6fa\",\"fontColor\":\"#333\",\"lightColor\":\"#fff\",\"primaryColor\":\"#2f80ed\",\"successColor\":\"#27ae60\",\"warningColor\":\"#f2994a\",\"warningLightColor\":\"#fef5ed\",\"dangerColor\":\"#eb5757\",\"dangerLightColor\":\"#fdefef\",\"darkBackgroundColor\":\"rgba(0,0,0,.1)\",\"activeMenuItemGradient\":\"linear-gradient(0deg, #F3F4F8, #F3F4F8)\",\"gradientPrimaryLight\":\"linear-gradient(90.25deg, #DFE9F7 1.96%, #F5F6FA 99.73%)\",\"gradientPrimaryLightTransparent\":\"linear-gradient(90.25deg, #DFE9F7 1.96%, #F5F6FA 99.73%)\",\"colIndent\":\"1rem\",\"tableColXxs\":\"4rem\",\"tableColXs\":\"5.2rem\",\"tableColSm\":\"7rem\",\"tableColSmL\":\"9.5rem\",\"tableColMd\":\"11.5rem\",\"tableColLg\":\"18rem\",\"tableColXg\":\"25rem\",\"buttonSizesArray\":\"icon,xs,sm,smL,md-fluid,md,lg,xl,fluid\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"bgColor\":\"#f5f6fa\",\"fontColor\":\"#333\",\"lightColor\":\"#fff\",\"primaryColor\":\"#2f80ed\",\"successColor\":\"#27ae60\",\"warningColor\":\"#f2994a\",\"warningLightColor\":\"#fef5ed\",\"dangerColor\":\"#eb5757\",\"dangerLightColor\":\"#fdefef\",\"darkBackgroundColor\":\"rgba(0,0,0,.1)\",\"activeMenuItemGradient\":\"linear-gradient(0deg, #F3F4F8, #F3F4F8)\",\"gradientPrimaryLight\":\"linear-gradient(90.25deg, #DFE9F7 1.96%, #F5F6FA 99.73%)\",\"gradientPrimaryLightTransparent\":\"linear-gradient(90.25deg, #DFE9F7 1.96%, #F5F6FA 99.73%)\",\"colIndent\":\"1rem\",\"tableColXxs\":\"4rem\",\"tableColXs\":\"5.2rem\",\"tableColSm\":\"7rem\",\"tableColSmL\":\"9.5rem\",\"tableColMd\":\"11.5rem\",\"tableColLg\":\"18rem\",\"tableColXg\":\"25rem\",\"buttonSizesArray\":\"icon,xs,sm,smL,md-fluid,md,lg,xl,fluid\"};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./TooltipDropdown.vue?vue&type=style&index=0&id=49cacb34&scoped=true&lang=scss\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"bgColor\":\"#f5f6fa\",\"fontColor\":\"#333\",\"lightColor\":\"#fff\",\"primaryColor\":\"#2f80ed\",\"successColor\":\"#27ae60\",\"warningColor\":\"#f2994a\",\"warningLightColor\":\"#fef5ed\",\"dangerColor\":\"#eb5757\",\"dangerLightColor\":\"#fdefef\",\"darkBackgroundColor\":\"rgba(0,0,0,.1)\",\"activeMenuItemGradient\":\"linear-gradient(0deg, #F3F4F8, #F3F4F8)\",\"gradientPrimaryLight\":\"linear-gradient(90.25deg, #DFE9F7 1.96%, #F5F6FA 99.73%)\",\"gradientPrimaryLightTransparent\":\"linear-gradient(90.25deg, #DFE9F7 1.96%, #F5F6FA 99.73%)\",\"colIndent\":\"1rem\",\"tableColXxs\":\"4rem\",\"tableColXs\":\"5.2rem\",\"tableColSm\":\"7rem\",\"tableColSmL\":\"9.5rem\",\"tableColMd\":\"11.5rem\",\"tableColLg\":\"18rem\",\"tableColXg\":\"25rem\",\"buttonSizesArray\":\"icon,xs,sm,smL,md-fluid,md,lg,xl,fluid\"};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./EmptyBlock.vue?vue&type=style&index=0&id=28469b4f&scoped=true&lang=scss\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./FullscreenLoader.vue?vue&type=style&index=0&id=4b07da65&lang=scss\""],"sourceRoot":""}
\n {{ emptyText }}\n