@luizleon/sf.prefeiturasp.vuecomponents 5.0.5 → 5.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sf.prefeiturasp.vuecomponents.js +7 -12
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/navmenu/NavMenu.vue.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -15
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -338,7 +338,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
338
338
|
}
|
|
339
339
|
`)},Ba={root:"p-ink"},Na=he.extend({name:"ripple-directive",theme:$a,classes:Ba}),Ma=j.extend({style:Na});function Ht(t){"@babel/helpers - typeof";return Ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(t)}function Da(t){return Ha(t)||Va(t)||Ua(t)||Ra()}function Ra(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
340
340
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ua(t,e){if(t){if(typeof t=="string")return Yn(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yn(t,e):void 0}}function Va(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ha(t){if(Array.isArray(t))return Yn(t)}function Yn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function po(t,e,n){return(e=ja(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ja(t){var e=Fa(t,"string");return Ht(e)=="symbol"?e:e+""}function Fa(t,e){if(Ht(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ht(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var za=Ma.extend("ripple",{watch:{"config.ripple":function(e){e?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute("data-pd-ripple",!0),this.$host.style.overflow="hidden",this.$host.style.position="relative"):(this.remove(this.$host),this.$host.removeAttribute("data-pd-ripple"))}},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener("mousedown",this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener("mousedown",this.onMouseDown.bind(this))},createRipple:function(e){var n=Is("span",po(po({role:"presentation","aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx("root"),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,""),"p-bind",this.ptm("root")));e.appendChild(n),this.$el=n},remove:function(e){var n=this.getInk(e);n&&(this.$host.style.overflow="",this.$host.style.position="",this.unbindEvents(e),n.removeEventListener("animationend",this.onAnimationEnd),n.remove())},onMouseDown:function(e){var n=this,r=e.currentTarget,o=this.getInk(r);if(!(!o||getComputedStyle(o,null).display==="none")){if(!this.isUnstyled()&&Dn(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"),!Nr(o)&&!Mr(o)){var i=Math.max(Es(r),Ps(r));o.style.height=i+"px",o.style.width=i+"px"}var l=As(r),a=e.pageX-l.left+document.body.scrollTop-Mr(o)/2,c=e.pageY-l.top+document.body.scrollLeft-Nr(o)/2;o.style.top=c+"px",o.style.left=a+"px",!this.isUnstyled()&&Cs(o,"p-ink-active"),o.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){o&&(!n.isUnstyled()&&Dn(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&Dn(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Da(e.children).find(function(n){return xt(n,"data-pc-name")==="ripple"}):void 0}}}),Ka={name:"BasePanelMenu",extends:bn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Ia,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},ho={name:"PanelMenuSub",hostName:"PanelMenu",extends:bn,emits:["item-toggle","item-mousemove"],props:{panelId:{type:String,default:null},focusedItemId:{type:String,default:null},items:{type:Array,default:null},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:-1}},methods:{getItemId:function(e){return"".concat(this.panelId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,n,r){return e&&e.item?Ce(e.item[n],r):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{item:n.item,index:r,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return Z(e.items)},onItemClick:function(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.$emit("item-toggle",{processedItem:n,expanded:!this.isItemActive(n)})},onItemToggle:function(e){this.$emit("item-toggle",e)},onItemMouseMove:function(e,n){this.$emit("item-mousemove",{originalEvent:e,processedItem:n})},getAriaSetSize:function(){var e=this;return this.items.filter(function(n){return e.isItemVisible(n)&&!e.getItemProp(n,"separator")}).length},getAriaPosInset:function(e){var n=this;return e-this.items.slice(0,e).filter(function(r){return n.isItemVisible(r)&&n.getItemProp(r,"separator")}).length+1},getMenuItemProps:function(e,n){return{action:s.mergeProps({class:this.cx("itemLink"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("itemLink",e,n)),icon:s.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:s.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:s.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:Gn,ChevronDownIcon:Wn},directives:{ripple:za}},Wa=["tabindex"],Ga=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],qa=["onClick","onMousemove"],Ya=["href","target"];function Xa(t,e,n,r,o,i){var l=s.resolveComponent("PanelMenuSub",!0),a=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("ul",{class:s.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.items,function(c,d){return s.openBlock(),s.createElementBlock(s.Fragment,{key:i.getItemKey(c)},[i.isItemVisible(c)&&!i.getItemProp(c,"separator")?(s.openBlock(),s.createElementBlock("li",s.mergeProps({key:0,id:i.getItemId(c),class:[t.cx("item",{processedItem:c}),i.getItemProp(c,"class")],style:i.getItemProp(c,"style"),role:"treeitem","aria-label":i.getItemLabel(c),"aria-expanded":i.isItemGroup(c)?i.isItemActive(c):void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(d),ref_for:!0},i.getPTOptions("item",c,d),{"data-p-focused":i.isItemFocused(c),"data-p-disabled":i.isItemDisabled(c)}),[s.createElementVNode("div",s.mergeProps({class:t.cx("itemContent"),onClick:function(p){return i.onItemClick(p,c)},onMousemove:function(p){return i.onItemMouseMove(p,c)},ref_for:!0},i.getPTOptions("itemContent",c,d)),[n.templates.item?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.item),{key:1,item:c.item,root:!1,active:i.isItemActive(c),hasSubmenu:i.isItemGroup(c),label:i.getItemLabel(c),props:i.getMenuItemProps(c,d)},null,8,["item","active","hasSubmenu","label","props"])):s.withDirectives((s.openBlock(),s.createElementBlock("a",s.mergeProps({key:0,href:i.getItemProp(c,"url"),class:t.cx("itemLink"),target:i.getItemProp(c,"target"),tabindex:"-1",ref_for:!0},i.getPTOptions("itemLink",c,d)),[i.isItemGroup(c)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[n.templates.submenuicon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.submenuicon),s.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(c),ref_for:!0},i.getPTOptions("submenuIcon",c,d)),null,16,["class","active"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.isItemActive(c)?"ChevronDownIcon":"ChevronRightIcon"),s.mergeProps({key:1,class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",c,d)),null,16,["class"]))],64)):s.createCommentVNode("",!0),n.templates.itemicon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.itemicon),{key:1,item:c.item,class:s.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.getItemProp(c,"icon")?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:2,class:[t.cx("itemIcon"),i.getItemProp(c,"icon")],ref_for:!0},i.getPTOptions("itemIcon",c,d)),null,16)):s.createCommentVNode("",!0),s.createElementVNode("span",s.mergeProps({class:t.cx("itemLabel"),ref_for:!0},i.getPTOptions("itemLabel",c,d)),s.toDisplayString(i.getItemLabel(c)),17)],16,Ya)),[[a]])],16,qa),s.createVNode(s.Transition,s.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:s.withCtx(function(){return[s.withDirectives(s.createElementVNode("div",s.mergeProps({class:t.cx("contentContainer"),ref_for:!0},t.ptm("contentContainer")),[i.isItemVisible(c)&&i.isItemGroup(c)?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,id:i.getItemId(c)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:c.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:i.onItemToggle,onItemMousemove:e[0]||(e[0]=function(f){return t.$emit("item-mousemove",f)}),pt:t.pt,unstyled:t.unstyled,ref_for:!0},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):s.createCommentVNode("",!0)],16),[[s.vShow,i.isItemActive(c)]])]}),_:2},1040)],16,Ga)):s.createCommentVNode("",!0),i.isItemVisible(c)&&i.getItemProp(c,"separator")?(s.openBlock(),s.createElementBlock("li",s.mergeProps({key:1,style:i.getItemProp(c,"style"),class:[t.cx("separator"),i.getItemProp(c,"class")],role:"separator",ref_for:!0},t.ptm("separator")),null,16)):s.createCommentVNode("",!0)],64)}),128))],10,Wa)}ho.render=Xa;function Za(t,e){return tl(t)||el(t,e)||Qa(t,e)||Ja()}function Ja(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
341
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qa(t,e){if(t){if(typeof t=="string")return go(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?go(t,e):void 0}}function go(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function el(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,l,a=[],c=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw o}}return a}}function tl(t){if(Array.isArray(t))return t}var yo={name:"PanelMenuList",hostName:"PanelMenu",extends:bn,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},mounted:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?Ce(e.item[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.parentKey})},isItemGroup:function(e){return Z(e.items)},onFocus:function(e){this.focused=!0,this.focusedItem=this.focusedItem||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem())},onBlur:function(){this.focused=!1,this.focusedItem=null,this.searchValue=""},onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&$s(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=Z(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=Z(this.focusedItem)?this.findPrevItem(this.focusedItem):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()},onArrowLeftKey:function(e){var n=this;if(Z(this.focusedItem)){var r=this.activeItemPath.some(function(o){return o.key===n.focusedItem.key});r?this.activeItemPath=this.activeItemPath.filter(function(o){return o.key!==n.focusedItem.key}):this.focusedItem=Z(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(Z(this.focusedItem)){var r=this.isItemGroup(this.focusedItem);if(r){var o=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});o?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if(Z(this.focusedItem)){var n=$e(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&($e(n,'[data-pc-section="itemlink"]')||$e(n,"a,button"));r?r.click():n&&n.click()}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onItemToggle:function(e){var n=e.processedItem,r=e.expanded;this.expandedKeys?this.$emit("item-toggle",{item:n.item,expanded:r}):(this.activeItemPath=this.activeItemPath.filter(function(o){return o.parentKey!==n.parentKey}),r&&this.activeItemPath.push(n)),this.focusedItem=n,Lt(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var r=e.currentTarget.closest('[data-pc-section="panel"]');return r&&r.contains(n)},isItemMatched:function(e){var n;return this.isValidItem(e)&&((n=this.getItemLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale)))},isVisibleItem:function(e){return!!e&&(e.level===0||this.isItemActive(e))&&this.isItemVisible(e)},isValidItem:function(e){return!!e&&!this.isItemDisabled(e)&&!this.getItemProp(e,"separator")},findFirstItem:function(){var e=this;return this.visibleItems.find(function(n){return e.isValidItem(n)})},findLastItem:function(){var e=this;return Rr(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r<this.visibleItems.length-1?this.visibleItems.slice(r+1).find(function(i){return n.isValidItem(i)}):void 0;return o||e},findPrevItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r>0?Rr(this.visibleItems.slice(0,r),function(i){return n.isValidItem(i)}):void 0;return o||e},searchItems:function(e,n){var r=this;this.searchValue=(this.searchValue||"")+n;var o=null,i=!1;if(Z(this.focusedItem)){var l=this.visibleItems.findIndex(function(a){return a.key===r.focusedItem.key});o=this.visibleItems.slice(l).find(function(a){return r.isItemMatched(a)}),o=at(o)?this.visibleItems.slice(0,l).find(function(a){return r.isItemMatched(a)}):o}else o=this.visibleItems.find(function(a){return r.isItemMatched(a)});return Z(o)&&(i=!0),at(o)&&at(this.focusedItem)&&(o=this.findFirstItem()),Z(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,r=e.processedItem,o=e.focusOnNext,i=e.selfCheck,l=e.allowHeaderFocus,a=l===void 0?!0:l;Z(this.focusedItem)&&this.focusedItem.key!==r.key?(this.focusedItem=r,this.scrollInView()):a&&this.$emit("header-focus",{originalEvent:n,focusOnNext:o,selfCheck:i})},scrollInView:function(){var e=$e(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},autoUpdateActiveItemPath:function(e){var n=this;this.activeItemPath=Object.entries(e||{}).reduce(function(r,o){var i=Za(o,2),l=i[0],a=i[1];if(a){var c=n.findProcessedItemByItemKey(l);c&&r.push(c)}return r},[])},findProcessedItemByItemKey:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||r===0&&this.processedItems,!n)return null;for(var o=0;o<n.length;o++){var i=n[o];if(this.getItemProp(i,"key")===e)return i;var l=this.findProcessedItemByItemKey(e,i.items,r+1);if(l)return l}},createProcessedItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",l=[];return e&&e.forEach(function(a,c){var d=(i!==""?i+"_":"")+c,f={item:a,index:c,level:r,key:d,parent:o,parentKey:i};f.items=n.createProcessedItems(a.items,r+1,f,d),l.push(f)}),l},flatItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(o){n.isVisibleItem(o)&&(r.push(o),n.flatItems(o.items,r))}),r}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return Z(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:ho}};function nl(t,e,n,r,o,i){var l=s.resolveComponent("PanelMenuSub");return s.openBlock(),s.createBlock(l,s.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":o.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:o.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:o.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}yo.render=nl;function jt(t){"@babel/helpers - typeof";return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(t)}function bo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function rl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bo(Object(n),!0).forEach(function(r){ol(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ol(t,e,n){return(e=il(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function il(t){var e=sl(t,"string");return jt(e)=="symbol"?e:e+""}function sl(t,e){if(jt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(jt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var vo={name:"PanelMenu",extends:Ka,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||pn()}},mounted:function(){this.id=this.id||pn()},methods:{getItemProp:function(e,n){return e?Ce(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{index:r,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.expandedKeys?this.expandedKeys[this.getItemProp(e,"key")]:this.multiple?this.activeItems.some(function(n){return yt(e,n)}):yt(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return yt(e,this.activeItem)},getPanelId:function(e){return"".concat(this.id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),Lt(e.currentTarget)},onHeaderKeyDown:function(e,n){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onHeaderEnterKey(e,n);break}},onHeaderArrowDownKey:function(e){var n=xt(e.currentTarget,"data-p-active")===!0?$e(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Lt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=xt(n,"data-p-active")===!0?$e(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;r?Lt(r):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()},onHeaderHomeKey:function(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()},onHeaderEndKey:function(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()},onHeaderEnterKey:function(e,n){var r=$e(e.currentTarget,'[data-pc-section="headerlink"]');r?r.click():this.onHeaderClick(e,n),e.preventDefault()},findNextHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.nextElementSibling,o=$e(r,'[data-pc-section="header"]');return o?xt(o,"data-p-disabled")?this.findNextHeader(o.parentElement):o:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.previousElementSibling,o=$e(r,'[data-pc-section="header"]');return o?xt(o,"data-p-disabled")?this.findPrevHeader(o.parentElement):o:null},findFirstHeader:function(){return this.findNextHeader(this.$el.firstElementChild,!0)},findLastHeader:function(){return this.findPrevHeader(this.$el.lastElementChild,!0)},updateFocusedHeader:function(e){var n=e.originalEvent,r=e.focusOnNext,o=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),l=o?$e(i,'[data-pc-section="header"]'):r?this.findNextHeader(i):this.findPrevHeader(i);l?this.changeFocusedHeader(n,l):r?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var o=this.isItemActive(n),i=o?"panel-close":"panel-open";this.activeItem=r?n:this.activeItem&&yt(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(l){return yt(n,l)})?this.activeItems=this.activeItems.filter(function(l){return!yt(n,l)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!o}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,r=e.expanded,o=r===void 0?!1:r;if(this.expandedKeys){var i=rl({},this.expandedKeys);o?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Lt(n)},getMenuItemProps:function(e,n){return{icon:s.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:s.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:yo,ChevronRightIcon:Gn,ChevronDownIcon:Wn}},al=["id"],ll=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],cl=["href"],ul=["id","aria-labelledby"];function dl(t,e,n,r,o,i){var l=s.resolveComponent("PanelMenuList");return s.openBlock(),s.createElementBlock("div",s.mergeProps({id:o.id,class:t.cx("root")},t.ptmi("root")),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.model,function(a,c){return s.openBlock(),s.createElementBlock(s.Fragment,{key:i.getPanelKey(c)},[i.isItemVisible(a)?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,style:i.getItemProp(a,"style"),class:[t.cx("panel"),i.getItemProp(a,"class")],ref_for:!0},t.ptm("panel")),[s.createElementVNode("div",s.mergeProps({id:i.getHeaderId(c),class:[t.cx("header",{item:a}),i.getItemProp(a,"headerClass")],tabindex:i.isItemDisabled(a)?-1:t.tabindex,role:"button","aria-label":i.getItemLabel(a),"aria-expanded":i.isItemActive(a),"aria-controls":i.getContentId(c),"aria-disabled":i.isItemDisabled(a),onClick:function(f){return i.onHeaderClick(f,a)},onKeydown:function(f){return i.onHeaderKeyDown(f,a)},ref_for:!0},i.getPTOptions("header",a,c),{"data-p-active":i.isItemActive(a),"data-p-disabled":i.isItemDisabled(a)}),[s.createElementVNode("div",s.mergeProps({class:t.cx("headerContent"),ref_for:!0},i.getPTOptions("headerContent",a,c)),[t.$slots.item?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.item),{key:1,item:a,root:!0,active:i.isItemActive(a),hasSubmenu:i.getItemProp(a,"items"),label:i.getItemLabel(a),props:i.getMenuItemProps(a,c)},null,8,["item","active","hasSubmenu","label","props"])):(s.openBlock(),s.createElementBlock("a",s.mergeProps({key:0,href:i.getItemProp(a,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},i.getPTOptions("headerLink",a,c)),[i.getItemProp(a,"items")?s.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(a)},function(){return[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),s.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",a,c)),null,16,["class"]))]}):s.createCommentVNode("",!0),t.$slots.headericon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.headericon),{key:1,item:a,class:s.normalizeClass([t.cx("headerIcon"),i.getItemProp(a,"icon")])},null,8,["item","class"])):i.getItemProp(a,"icon")?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(a,"icon")],ref_for:!0},i.getPTOptions("headerIcon",a,c)),null,16)):s.createCommentVNode("",!0),s.createElementVNode("span",s.mergeProps({class:t.cx("headerLabel"),ref_for:!0},i.getPTOptions("headerLabel",a,c)),s.toDisplayString(i.getItemLabel(a)),17)],16,cl))],16)],16,ll),s.createVNode(s.Transition,s.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:s.withCtx(function(){return[s.withDirectives(s.createElementVNode("div",s.mergeProps({id:i.getContentId(c),class:t.cx("contentContainer"),role:"region","aria-labelledby":i.getHeaderId(c),ref_for:!0},t.ptm("contentContainer")),[i.getItemProp(a,"items")?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[s.createVNode(l,{panelId:i.getPanelId(c),items:i.getItemProp(a,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:i.changeExpandedKeys,onHeaderFocus:i.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):s.createCommentVNode("",!0)],16,ul),[[s.vShow,i.isItemActive(a)]])]}),_:2},1040)],16)):s.createCommentVNode("",!0)],64)}),128))],16,al)}vo.render=dl;const fl={class:"panel-menu-wrapper"},ml=["data-active","href","onClick"],pl={key:0,class:"material-symbols-outlined item-menu-icon-left"},hl=["onClick"],gl={key:0,class:"material-symbols-outlined item-menu-icon-left"},yl={key:2,class:s.normalizeClass(["item-menu sf-ripple"])},bl={key:0,class:"material-symbols-outlined item-menu-icon-left"},vl=gt(s.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(o,i)=>{o.disabled||i()},r=(o,i)=>{i.disabled||typeof i.command=="function"&&i.command(o)};return(o,i)=>{const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",fl,[s.createVNode(s.unref(vo),{model:e.items,unstyled:!0},{item:s.withCtx(({item:a,active:c})=>[a.path?(s.openBlock(),s.createBlock(l,{key:0,to:{path:a.path,params:a.params??{},query:a.query??{}},custom:""},{default:s.withCtx(({navigate:d,isActive:f})=>[s.createElementVNode("a",{class:s.normalizeClass(["item-menu",{"sf-ripple":!a.disabled,disabled:a.disabled}]),"data-active":f,href:a.path,onClick:s.withModifiers(p=>n(a,d),["prevent"])},[a.icon?(s.openBlock(),s.createElementBlock("span",pl,s.toDisplayString(a.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",null,s.toDisplayString(a.text),1)],10,ml)]),_:2},1032,["to"])):typeof a.command=="function"?(s.openBlock(),s.createElementBlock("span",{key:1,class:s.normalizeClass(["item-menu",{"sf-ripple":!a.disabled,disabled:a.disabled}]),onClick:s.withModifiers(d=>r(d,a),["stop"])},[a.icon?(s.openBlock(),s.createElementBlock("span",gl,s.toDisplayString(a.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",null,s.toDisplayString(a.text),1)],10,hl)):(s.openBlock(),s.createElementBlock("a",yl,[a.icon?(s.openBlock(),s.createElementBlock("span",bl,s.toDisplayString(a.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",null,s.toDisplayString(a.text),1),i[0]||(i[0]=s.createElementVNode("div",{class:"sep"},null,-1)),s.createElementVNode("span",{class:s.normalizeClass(["material-symbols-outlined arrow",{"--expand":c}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-fbc3d38a"]]),wo=Symbol();class wl{get storedTheme(){return localStorage.getItem("color-scheme")}get IsDark(){return document.documentElement.classList.contains("dark")}Toggle(){this.IsDark?this.EnableLightMode():this.EnableDarkMode()}EnableDarkMode(){document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light"),localStorage.setItem("color-scheme","dark")}EnableLightMode(){document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("color-scheme","light")}SetInitialTheme(){if(this.storedTheme==="light")return this.EnableLightMode();if(this.storedTheme==="dark")return this.EnableDarkMode();if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return this.EnableDarkMode();this.EnableLightMode()}ClearStoredTheme(){localStorage.removeItem("color-scheme")}}const Ft=new wl,ko="SweetAlert2:",kl=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Xn=t=>t.charAt(0).toUpperCase()+t.slice(1),Ee=t=>Array.prototype.slice.call(t),we=t=>{console.warn(`${ko} ${typeof t=="object"?t.join(" "):t}`)},lt=t=>{console.error(`${ko} ${t}`)},_o=[],_l=t=>{_o.includes(t)||(_o.push(t),we(t))},Sl=(t,e)=>{_l(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},vn=t=>typeof t=="function"?t():t,Zn=t=>t&&typeof t.toPromise=="function",zt=t=>Zn(t)?t.toPromise():Promise.resolve(t),Jn=t=>t&&Promise.resolve(t)===t,bt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Cl=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],El={},Il=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],So=t=>Object.prototype.hasOwnProperty.call(bt,t),Co=t=>Cl.indexOf(t)!==-1,Qn=t=>El[t],Tl=t=>{So(t)||we(`Unknown parameter "${t}"`)},Al=t=>{Il.includes(t)&&we(`The parameter "${t}" is incompatible with toasts`)},Pl=t=>{Qn(t)&&Sl(t,Qn(t))},Ll=t=>{!t.backdrop&&t.allowOutsideClick&&we('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Tl(e),t.toast&&Al(e),Pl(e)},xl="swal2-",Eo=t=>{const e={};for(const n in t)e[t[n]]=xl+t[n];return e},g=Eo(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),Kt=Eo(["success","warning","info","question","error"]),se=()=>document.body.querySelector(`.${g.container}`),Wt=t=>{const e=se();return e?e.querySelector(t):null},Pe=t=>Wt(`.${t}`),J=()=>Pe(g.popup),Gt=()=>Pe(g.icon),Io=()=>Pe(g.title),wn=()=>Pe(g["html-container"]),To=()=>Pe(g.image),Ao=()=>Pe(g["progress-steps"]),kn=()=>Pe(g["validation-message"]),Me=()=>Wt(`.${g.actions} .${g.confirm}`),rt=()=>Wt(`.${g.actions} .${g.deny}`),Ol=()=>Pe(g["input-label"]),vt=()=>Wt(`.${g.loader}`),ct=()=>Wt(`.${g.actions} .${g.cancel}`),qt=()=>Pe(g.actions),Po=()=>Pe(g.footer),_n=()=>Pe(g["timer-progress-bar"]),er=()=>Pe(g.close),$l=`
|
|
341
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qa(t,e){if(t){if(typeof t=="string")return go(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?go(t,e):void 0}}function go(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function el(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,l,a=[],c=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw o}}return a}}function tl(t){if(Array.isArray(t))return t}var yo={name:"PanelMenuList",hostName:"PanelMenu",extends:bn,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},mounted:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?Ce(e.item[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.parentKey})},isItemGroup:function(e){return Z(e.items)},onFocus:function(e){this.focused=!0,this.focusedItem=this.focusedItem||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem())},onBlur:function(){this.focused=!1,this.focusedItem=null,this.searchValue=""},onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&$s(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=Z(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=Z(this.focusedItem)?this.findPrevItem(this.focusedItem):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()},onArrowLeftKey:function(e){var n=this;if(Z(this.focusedItem)){var r=this.activeItemPath.some(function(o){return o.key===n.focusedItem.key});r?this.activeItemPath=this.activeItemPath.filter(function(o){return o.key!==n.focusedItem.key}):this.focusedItem=Z(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(Z(this.focusedItem)){var r=this.isItemGroup(this.focusedItem);if(r){var o=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});o?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if(Z(this.focusedItem)){var n=$e(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&($e(n,'[data-pc-section="itemlink"]')||$e(n,"a,button"));r?r.click():n&&n.click()}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onItemToggle:function(e){var n=e.processedItem,r=e.expanded;this.expandedKeys?this.$emit("item-toggle",{item:n.item,expanded:r}):(this.activeItemPath=this.activeItemPath.filter(function(o){return o.parentKey!==n.parentKey}),r&&this.activeItemPath.push(n)),this.focusedItem=n,Lt(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var r=e.currentTarget.closest('[data-pc-section="panel"]');return r&&r.contains(n)},isItemMatched:function(e){var n;return this.isValidItem(e)&&((n=this.getItemLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale)))},isVisibleItem:function(e){return!!e&&(e.level===0||this.isItemActive(e))&&this.isItemVisible(e)},isValidItem:function(e){return!!e&&!this.isItemDisabled(e)&&!this.getItemProp(e,"separator")},findFirstItem:function(){var e=this;return this.visibleItems.find(function(n){return e.isValidItem(n)})},findLastItem:function(){var e=this;return Rr(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r<this.visibleItems.length-1?this.visibleItems.slice(r+1).find(function(i){return n.isValidItem(i)}):void 0;return o||e},findPrevItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r>0?Rr(this.visibleItems.slice(0,r),function(i){return n.isValidItem(i)}):void 0;return o||e},searchItems:function(e,n){var r=this;this.searchValue=(this.searchValue||"")+n;var o=null,i=!1;if(Z(this.focusedItem)){var l=this.visibleItems.findIndex(function(a){return a.key===r.focusedItem.key});o=this.visibleItems.slice(l).find(function(a){return r.isItemMatched(a)}),o=at(o)?this.visibleItems.slice(0,l).find(function(a){return r.isItemMatched(a)}):o}else o=this.visibleItems.find(function(a){return r.isItemMatched(a)});return Z(o)&&(i=!0),at(o)&&at(this.focusedItem)&&(o=this.findFirstItem()),Z(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,r=e.processedItem,o=e.focusOnNext,i=e.selfCheck,l=e.allowHeaderFocus,a=l===void 0?!0:l;Z(this.focusedItem)&&this.focusedItem.key!==r.key?(this.focusedItem=r,this.scrollInView()):a&&this.$emit("header-focus",{originalEvent:n,focusOnNext:o,selfCheck:i})},scrollInView:function(){var e=$e(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},autoUpdateActiveItemPath:function(e){var n=this;this.activeItemPath=Object.entries(e||{}).reduce(function(r,o){var i=Za(o,2),l=i[0],a=i[1];if(a){var c=n.findProcessedItemByItemKey(l);c&&r.push(c)}return r},[])},findProcessedItemByItemKey:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||r===0&&this.processedItems,!n)return null;for(var o=0;o<n.length;o++){var i=n[o];if(this.getItemProp(i,"key")===e)return i;var l=this.findProcessedItemByItemKey(e,i.items,r+1);if(l)return l}},createProcessedItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",l=[];return e&&e.forEach(function(a,c){var d=(i!==""?i+"_":"")+c,f={item:a,index:c,level:r,key:d,parent:o,parentKey:i};f.items=n.createProcessedItems(a.items,r+1,f,d),l.push(f)}),l},flatItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(o){n.isVisibleItem(o)&&(r.push(o),n.flatItems(o.items,r))}),r}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return Z(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:ho}};function nl(t,e,n,r,o,i){var l=s.resolveComponent("PanelMenuSub");return s.openBlock(),s.createBlock(l,s.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":o.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:o.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:o.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}yo.render=nl;function jt(t){"@babel/helpers - typeof";return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(t)}function bo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function rl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bo(Object(n),!0).forEach(function(r){ol(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ol(t,e,n){return(e=il(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function il(t){var e=sl(t,"string");return jt(e)=="symbol"?e:e+""}function sl(t,e){if(jt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(jt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var vo={name:"PanelMenu",extends:Ka,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||pn()}},mounted:function(){this.id=this.id||pn()},methods:{getItemProp:function(e,n){return e?Ce(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{index:r,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.expandedKeys?this.expandedKeys[this.getItemProp(e,"key")]:this.multiple?this.activeItems.some(function(n){return yt(e,n)}):yt(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return yt(e,this.activeItem)},getPanelId:function(e){return"".concat(this.id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),Lt(e.currentTarget)},onHeaderKeyDown:function(e,n){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onHeaderEnterKey(e,n);break}},onHeaderArrowDownKey:function(e){var n=xt(e.currentTarget,"data-p-active")===!0?$e(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Lt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=xt(n,"data-p-active")===!0?$e(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;r?Lt(r):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()},onHeaderHomeKey:function(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()},onHeaderEndKey:function(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()},onHeaderEnterKey:function(e,n){var r=$e(e.currentTarget,'[data-pc-section="headerlink"]');r?r.click():this.onHeaderClick(e,n),e.preventDefault()},findNextHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.nextElementSibling,o=$e(r,'[data-pc-section="header"]');return o?xt(o,"data-p-disabled")?this.findNextHeader(o.parentElement):o:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.previousElementSibling,o=$e(r,'[data-pc-section="header"]');return o?xt(o,"data-p-disabled")?this.findPrevHeader(o.parentElement):o:null},findFirstHeader:function(){return this.findNextHeader(this.$el.firstElementChild,!0)},findLastHeader:function(){return this.findPrevHeader(this.$el.lastElementChild,!0)},updateFocusedHeader:function(e){var n=e.originalEvent,r=e.focusOnNext,o=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),l=o?$e(i,'[data-pc-section="header"]'):r?this.findNextHeader(i):this.findPrevHeader(i);l?this.changeFocusedHeader(n,l):r?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var o=this.isItemActive(n),i=o?"panel-close":"panel-open";this.activeItem=r?n:this.activeItem&&yt(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(l){return yt(n,l)})?this.activeItems=this.activeItems.filter(function(l){return!yt(n,l)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!o}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,r=e.expanded,o=r===void 0?!1:r;if(this.expandedKeys){var i=rl({},this.expandedKeys);o?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Lt(n)},getMenuItemProps:function(e,n){return{icon:s.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:s.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:yo,ChevronRightIcon:Gn,ChevronDownIcon:Wn}},al=["id"],ll=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],cl=["href"],ul=["id","aria-labelledby"];function dl(t,e,n,r,o,i){var l=s.resolveComponent("PanelMenuList");return s.openBlock(),s.createElementBlock("div",s.mergeProps({id:o.id,class:t.cx("root")},t.ptmi("root")),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.model,function(a,c){return s.openBlock(),s.createElementBlock(s.Fragment,{key:i.getPanelKey(c)},[i.isItemVisible(a)?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,style:i.getItemProp(a,"style"),class:[t.cx("panel"),i.getItemProp(a,"class")],ref_for:!0},t.ptm("panel")),[s.createElementVNode("div",s.mergeProps({id:i.getHeaderId(c),class:[t.cx("header",{item:a}),i.getItemProp(a,"headerClass")],tabindex:i.isItemDisabled(a)?-1:t.tabindex,role:"button","aria-label":i.getItemLabel(a),"aria-expanded":i.isItemActive(a),"aria-controls":i.getContentId(c),"aria-disabled":i.isItemDisabled(a),onClick:function(f){return i.onHeaderClick(f,a)},onKeydown:function(f){return i.onHeaderKeyDown(f,a)},ref_for:!0},i.getPTOptions("header",a,c),{"data-p-active":i.isItemActive(a),"data-p-disabled":i.isItemDisabled(a)}),[s.createElementVNode("div",s.mergeProps({class:t.cx("headerContent"),ref_for:!0},i.getPTOptions("headerContent",a,c)),[t.$slots.item?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.item),{key:1,item:a,root:!0,active:i.isItemActive(a),hasSubmenu:i.getItemProp(a,"items"),label:i.getItemLabel(a),props:i.getMenuItemProps(a,c)},null,8,["item","active","hasSubmenu","label","props"])):(s.openBlock(),s.createElementBlock("a",s.mergeProps({key:0,href:i.getItemProp(a,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},i.getPTOptions("headerLink",a,c)),[i.getItemProp(a,"items")?s.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(a)},function(){return[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),s.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",a,c)),null,16,["class"]))]}):s.createCommentVNode("",!0),t.$slots.headericon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.headericon),{key:1,item:a,class:s.normalizeClass([t.cx("headerIcon"),i.getItemProp(a,"icon")])},null,8,["item","class"])):i.getItemProp(a,"icon")?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(a,"icon")],ref_for:!0},i.getPTOptions("headerIcon",a,c)),null,16)):s.createCommentVNode("",!0),s.createElementVNode("span",s.mergeProps({class:t.cx("headerLabel"),ref_for:!0},i.getPTOptions("headerLabel",a,c)),s.toDisplayString(i.getItemLabel(a)),17)],16,cl))],16)],16,ll),s.createVNode(s.Transition,s.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:s.withCtx(function(){return[s.withDirectives(s.createElementVNode("div",s.mergeProps({id:i.getContentId(c),class:t.cx("contentContainer"),role:"region","aria-labelledby":i.getHeaderId(c),ref_for:!0},t.ptm("contentContainer")),[i.getItemProp(a,"items")?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[s.createVNode(l,{panelId:i.getPanelId(c),items:i.getItemProp(a,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:i.changeExpandedKeys,onHeaderFocus:i.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):s.createCommentVNode("",!0)],16,ul),[[s.vShow,i.isItemActive(a)]])]}),_:2},1040)],16)):s.createCommentVNode("",!0)],64)}),128))],16,al)}vo.render=dl;const fl={class:"panel-menu-wrapper"},ml=["data-active","onClick"],pl={key:0,class:"material-symbols-outlined item-menu-icon-left"},hl=["onClick"],gl={key:0,class:"material-symbols-outlined item-menu-icon-left"},yl={key:2,class:s.normalizeClass(["item-menu sf-ripple"])},bl={key:0,class:"material-symbols-outlined item-menu-icon-left"},vl=gt(s.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(o,i)=>{o.disabled||i()},r=(o,i)=>{i.disabled||typeof i.command=="function"&&i.command(o)};return(o,i)=>{const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",fl,[s.createVNode(s.unref(vo),{model:e.items,unstyled:!0},{item:s.withCtx(({item:a,active:c})=>[a.to?(s.openBlock(),s.createBlock(l,{key:0,to:a.to,custom:""},{default:s.withCtx(({navigate:d,isActive:f})=>[s.createElementVNode("a",{class:s.normalizeClass(["item-menu",{"sf-ripple":!a.disabled,disabled:a.disabled}]),"data-active":f,onClick:s.withModifiers(p=>n(a,d),["prevent"])},[a.icon?(s.openBlock(),s.createElementBlock("span",pl,s.toDisplayString(a.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",null,s.toDisplayString(a.label),1)],10,ml)]),_:2},1032,["to"])):typeof a.command=="function"?(s.openBlock(),s.createElementBlock("span",{key:1,class:s.normalizeClass(["item-menu",{"sf-ripple":!a.disabled,disabled:a.disabled}]),onClick:s.withModifiers(d=>r(d,a),["stop"])},[a.icon?(s.openBlock(),s.createElementBlock("span",gl,s.toDisplayString(a.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",null,s.toDisplayString(a.label),1)],10,hl)):(s.openBlock(),s.createElementBlock("a",yl,[a.icon?(s.openBlock(),s.createElementBlock("span",bl,s.toDisplayString(a.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",null,s.toDisplayString(a.label),1),i[0]||(i[0]=s.createElementVNode("div",{class:"sep"},null,-1)),s.createElementVNode("span",{class:s.normalizeClass(["material-symbols-outlined arrow",{"--expand":c}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-66143c5e"]]),wo=Symbol();class wl{get storedTheme(){return localStorage.getItem("color-scheme")}get IsDark(){return document.documentElement.classList.contains("dark")}Toggle(){this.IsDark?this.EnableLightMode():this.EnableDarkMode()}EnableDarkMode(){document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light"),localStorage.setItem("color-scheme","dark")}EnableLightMode(){document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("color-scheme","light")}SetInitialTheme(){if(this.storedTheme==="light")return this.EnableLightMode();if(this.storedTheme==="dark")return this.EnableDarkMode();if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return this.EnableDarkMode();this.EnableLightMode()}ClearStoredTheme(){localStorage.removeItem("color-scheme")}}const Ft=new wl,ko="SweetAlert2:",kl=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Xn=t=>t.charAt(0).toUpperCase()+t.slice(1),Ee=t=>Array.prototype.slice.call(t),we=t=>{console.warn(`${ko} ${typeof t=="object"?t.join(" "):t}`)},lt=t=>{console.error(`${ko} ${t}`)},_o=[],_l=t=>{_o.includes(t)||(_o.push(t),we(t))},Sl=(t,e)=>{_l(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},vn=t=>typeof t=="function"?t():t,Zn=t=>t&&typeof t.toPromise=="function",zt=t=>Zn(t)?t.toPromise():Promise.resolve(t),Jn=t=>t&&Promise.resolve(t)===t,bt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Cl=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],El={},Il=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],So=t=>Object.prototype.hasOwnProperty.call(bt,t),Co=t=>Cl.indexOf(t)!==-1,Qn=t=>El[t],Tl=t=>{So(t)||we(`Unknown parameter "${t}"`)},Al=t=>{Il.includes(t)&&we(`The parameter "${t}" is incompatible with toasts`)},Pl=t=>{Qn(t)&&Sl(t,Qn(t))},Ll=t=>{!t.backdrop&&t.allowOutsideClick&&we('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Tl(e),t.toast&&Al(e),Pl(e)},xl="swal2-",Eo=t=>{const e={};for(const n in t)e[t[n]]=xl+t[n];return e},g=Eo(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),Kt=Eo(["success","warning","info","question","error"]),se=()=>document.body.querySelector(`.${g.container}`),Wt=t=>{const e=se();return e?e.querySelector(t):null},Pe=t=>Wt(`.${t}`),J=()=>Pe(g.popup),Gt=()=>Pe(g.icon),Io=()=>Pe(g.title),wn=()=>Pe(g["html-container"]),To=()=>Pe(g.image),Ao=()=>Pe(g["progress-steps"]),kn=()=>Pe(g["validation-message"]),Me=()=>Wt(`.${g.actions} .${g.confirm}`),rt=()=>Wt(`.${g.actions} .${g.deny}`),Ol=()=>Pe(g["input-label"]),vt=()=>Wt(`.${g.loader}`),ct=()=>Wt(`.${g.actions} .${g.cancel}`),qt=()=>Pe(g.actions),Po=()=>Pe(g.footer),_n=()=>Pe(g["timer-progress-bar"]),er=()=>Pe(g.close),$l=`
|
|
342
342
|
a[href],
|
|
343
343
|
area[href],
|
|
344
344
|
input:not([disabled]),
|