@validol4ik/uikit 0.10.0 → 0.10.2

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.
Files changed (26) hide show
  1. package/dist/{AppButtonCopy-De7Y98Yy.cjs → AppButtonCopy-66cFhDuo.cjs} +1 -1
  2. package/dist/{AppButtonCopy-DSs0dXar.js → AppButtonCopy-QvkjU_h4.js} +1 -1
  3. package/dist/{AppSelect-BTUOPDH4.js → AppSelect-0p8QDBZ9.js} +4 -4
  4. package/dist/{AppSelect-CAAOjfdd.cjs → AppSelect-D0gQOyMy.cjs} +1 -1
  5. package/dist/BottomSheet-CUWjgAeZ.cjs +1 -0
  6. package/dist/{BottomSheet-9uzA-2TP.js → BottomSheet-PinLAITZ.js} +47 -46
  7. package/dist/{DropdownButton-BttZdBXU.cjs → DropdownButton-Cz1xTcUt.cjs} +1 -1
  8. package/dist/{DropdownButton-qIkO6ywS.js → DropdownButton-Dhvb9D_L.js} +3 -3
  9. package/dist/{QDialog-rFoiLZiW.js → QDialog-Cy2w4ntF.js} +2 -2
  10. package/dist/{QDialog-BVJY6hH4.cjs → QDialog-tGGvOIPj.cjs} +1 -1
  11. package/dist/{QMenu-MYBYWMlR.js → QMenu-k3AStoLY.js} +2 -2
  12. package/dist/{QMenu-BZenROvh.cjs → QMenu-lZpXWLnn.cjs} +1 -1
  13. package/dist/{escape-key-7EcYZQ8M.js → escape-key-BlsDwJUQ.js} +1 -1
  14. package/dist/{escape-key-DLxLHWMV.cjs → escape-key-CRpXNCKN.cjs} +1 -1
  15. package/dist/index-BB31xQaa.cjs +1 -0
  16. package/dist/index-DFNWQp-Z.js +1878 -0
  17. package/dist/style.css +1 -1
  18. package/dist/types/components/form/AppSegment/AppSegment.vue.d.ts +11 -2
  19. package/dist/types/components/form/AppSegment/types.d.ts +4 -1
  20. package/dist/types/components/menu/BottomSheet/types.d.ts +1 -0
  21. package/dist/uikit.cjs +1 -1
  22. package/dist/uikit.es.js +1 -1
  23. package/package.json +1 -1
  24. package/dist/BottomSheet-d3Ou7oyK.cjs +0 -1
  25. package/dist/index-Cw_78hFI.js +0 -1838
  26. package/dist/index-DfudeOYM.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";const i=require("vue"),f=require("./focusout-DzWGke-4.cjs"),u=require("./index-DfudeOYM.cjs"),r=require("./escape-key-DLxLHWMV.cjs");function ce(e,t,a){function s(){}return i.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:s,addToHistory(){}}}let p=0,H,z,y,O=!1,X,Y,I,h=null;function de(e){fe(e)&&u.stopAndPrevent(e)}function fe(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=u.getEventPath(e),a=e.shiftKey&&!e.deltaX,s=!a&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),c=a||s?e.deltaY:e.deltaX;for(let d=0;d<t.length;d++){const n=t[d];if(r.hasScrollbar(n,s))return s?c<0&&n.scrollTop===0?!0:c>0&&n.scrollTop+n.clientHeight===n.scrollHeight:c<0&&n.scrollLeft===0?!0:c>0&&n.scrollLeft+n.clientWidth===n.scrollWidth}return!0}function j(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function T(e){O!==!0&&(O=!0,requestAnimationFrame(()=>{O=!1;const{height:t}=e.target,{clientHeight:a,scrollTop:s}=document.scrollingElement;(y===void 0||t!==window.innerHeight)&&(y=a-t,document.scrollingElement.scrollTop=s),s>y&&(document.scrollingElement.scrollTop-=Math.ceil((s-y)/8))}))}function Q(e){const t=document.body,a=window.visualViewport!==void 0;if(e==="add"){const{overflowY:s,overflowX:c}=window.getComputedStyle(t);H=r.getHorizontalScrollPosition(window),z=r.getVerticalScrollPosition(window),X=t.style.left,Y=t.style.top,I=window.location.href,t.style.left=`-${H}px`,t.style.top=`-${z}px`,c!=="hidden"&&(c==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),s!=="hidden"&&(s==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,f.client.is.ios===!0&&(a===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",T,u.listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",T,u.listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",j,u.listenOpts.passiveCapture))}f.client.is.desktop===!0&&f.client.is.mac===!0&&window[`${e}EventListener`]("wheel",de,u.listenOpts.notPassive),e==="remove"&&(f.client.is.ios===!0&&(a===!0?(window.visualViewport.removeEventListener("resize",T,u.listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",T,u.listenOpts.passiveCapture)):window.removeEventListener("scroll",j,u.listenOpts.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=X,t.style.top=Y,window.location.href===I&&window.scrollTo(H,z),y=void 0)}function me(e){let t="add";if(e===!0){if(p++,h!==null){clearTimeout(h),h=null;return}if(p>1)return}else{if(p===0||(p--,p>0))return;if(t="remove",f.client.is.ios===!0&&f.client.is.nativeMobile===!0){h!==null&&clearTimeout(h),h=setTimeout(()=>{Q(t),h=null},100);return}}Q(t)}function ve(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,me(t))}}}let S=0;const he={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},U={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},ge=u.createComponent({name:"QDialog",inheritAttrs:!1,props:{...r.useModelToggleProps,...r.useTransitionProps,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...r.useModelToggleEmits,"shake","click","escapeKey"],setup(e,{slots:t,emit:a,attrs:s}){const c=i.getCurrentInstance(),d=i.ref(null),n=i.ref(!1),g=i.ref(!1);let m=null,v=null,b,k;const G=i.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:M}=ve(),{registerTimeout:D}=r.useTimeout(),{registerTick:J,removeTick:R}=r.useTick(),{transitionProps:N,transitionStyle:V}=r.useTransition(e,()=>U[e.position][0],()=>U[e.position][1]),Z=i.computed(()=>V.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:$,hidePortal:A,portalIsAccessible:ee,renderPortal:te}=r.usePortal(c,d,ue,"dialog"),{hide:E}=r.useModelToggle({showing:n,hideOnRouteChange:G,handleShow:ne,handleHide:se,processOnMount:!0});ce(n);const oe=i.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${he[e.position]}`+(g.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),q=i.computed(()=>n.value===!0&&e.seamless!==!0),ie=i.computed(()=>e.autoClose===!0?{onClick:re}:{}),le=i.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${q.value===!0?"modal":"seamless"}`,s.class]);i.watch(()=>e.maximized,o=>{n.value===!0&&L(o)}),i.watch(q,o=>{M(o),o===!0?(f.addFocusout(P),r.addEscapeKey(C)):(f.removeFocusout(P),r.removeEscapeKey(C))});function ne(o){var l;v=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,L(e.maximized),$(),g.value=!0,e.noFocus!==!0?((l=document.activeElement)==null||l.blur(),J(w)):R(),D(()=>{if(c.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:x,bottom:_}=document.activeElement.getBoundingClientRect(),{innerHeight:W}=window,F=window.visualViewport!==void 0?window.visualViewport.height:W;x>0&&_>F/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-F,_>=W?1/0:Math.ceil(document.scrollingElement.scrollTop+_-F/2))),document.activeElement.scrollIntoView()}k=!0,d.value.click(),k=!1}$(!0),g.value=!1,a("show",o)},e.transitionDuration)}function se(o){R(),K(!0),g.value=!0,A(),v!==null&&((((o==null?void 0:o.type.indexOf("key"))===0?v.closest('[tabindex]:not([tabindex^="-"])'):void 0)||v).focus(),v=null),D(()=>{A(!0),g.value=!1,a("hide",o)},e.transitionDuration)}function w(o){r.addFocusFn(()=>{let l=d.value;if(l!==null){if(o!==void 0){const x=l.querySelector(o);if(x!==null){x.focus({preventScroll:!0});return}}l.contains(document.activeElement)!==!0&&(l=l.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||l.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||l.querySelector("[autofocus], [data-autofocus]")||l,l.focus({preventScroll:!0}))}})}function B(o){o&&typeof o.focus=="function"?o.focus({preventScroll:!0}):w(),a("shake");const l=d.value;l!==null&&(l.classList.remove("q-animate--scale"),l.classList.add("q-animate--scale"),m!==null&&clearTimeout(m),m=setTimeout(()=>{m=null,d.value!==null&&(l.classList.remove("q-animate--scale"),w())},170))}function C(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&B():(a("escapeKey"),E()))}function K(o){m!==null&&(clearTimeout(m),m=null),(o===!0||n.value===!0)&&(L(!1),e.seamless!==!0&&(M(!1),f.removeFocusout(P),r.removeEscapeKey(C))),o!==!0&&(v=null)}function L(o){o===!0?b!==!0&&(S<1&&document.body.classList.add("q-body--dialog"),S++,b=!0):b===!0&&(S<2&&document.body.classList.remove("q-body--dialog"),S--,b=!1)}function re(o){k!==!0&&(E(o),a("click",o))}function ae(o){e.persistent!==!0&&e.noBackdropDismiss!==!0?E(o):e.noShake!==!0&&B()}function P(o){e.allowFocusOutside!==!0&&ee.value===!0&&u.childHasFocus(d.value,o.target)!==!0&&w('[tabindex]:not([tabindex="-1"])')}Object.assign(c.proxy,{focus:w,shake:B,__updateRefocusTarget(o){v=o||null}}),i.onBeforeUnmount(K);function ue(){return i.h("div",{role:"dialog","aria-modal":q.value===!0?"true":"false",...s,class:le.value},[i.h(i.Transition,{name:"q-transition--fade",appear:!0},()=>q.value===!0?i.h("div",{class:"q-dialog__backdrop fixed-full",style:Z.value,"aria-hidden":"true",tabindex:-1,onClick:ae}):null),i.h(i.Transition,N.value,()=>n.value===!0?i.h("div",{ref:d,class:oe.value,style:V.value,tabindex:-1,...ie.value},u.hSlot(t.default)):null)])}return te}});exports.QDialog=ge;
1
+ "use strict";const i=require("vue"),f=require("./focusout-DzWGke-4.cjs"),u=require("./index-BB31xQaa.cjs"),r=require("./escape-key-CRpXNCKN.cjs");function ce(e,t,a){function s(){}return i.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:s,addToHistory(){}}}let p=0,H,z,y,O=!1,X,Y,I,h=null;function de(e){fe(e)&&u.stopAndPrevent(e)}function fe(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=u.getEventPath(e),a=e.shiftKey&&!e.deltaX,s=!a&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),c=a||s?e.deltaY:e.deltaX;for(let d=0;d<t.length;d++){const n=t[d];if(r.hasScrollbar(n,s))return s?c<0&&n.scrollTop===0?!0:c>0&&n.scrollTop+n.clientHeight===n.scrollHeight:c<0&&n.scrollLeft===0?!0:c>0&&n.scrollLeft+n.clientWidth===n.scrollWidth}return!0}function j(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function T(e){O!==!0&&(O=!0,requestAnimationFrame(()=>{O=!1;const{height:t}=e.target,{clientHeight:a,scrollTop:s}=document.scrollingElement;(y===void 0||t!==window.innerHeight)&&(y=a-t,document.scrollingElement.scrollTop=s),s>y&&(document.scrollingElement.scrollTop-=Math.ceil((s-y)/8))}))}function Q(e){const t=document.body,a=window.visualViewport!==void 0;if(e==="add"){const{overflowY:s,overflowX:c}=window.getComputedStyle(t);H=r.getHorizontalScrollPosition(window),z=r.getVerticalScrollPosition(window),X=t.style.left,Y=t.style.top,I=window.location.href,t.style.left=`-${H}px`,t.style.top=`-${z}px`,c!=="hidden"&&(c==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),s!=="hidden"&&(s==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,f.client.is.ios===!0&&(a===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",T,u.listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",T,u.listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",j,u.listenOpts.passiveCapture))}f.client.is.desktop===!0&&f.client.is.mac===!0&&window[`${e}EventListener`]("wheel",de,u.listenOpts.notPassive),e==="remove"&&(f.client.is.ios===!0&&(a===!0?(window.visualViewport.removeEventListener("resize",T,u.listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",T,u.listenOpts.passiveCapture)):window.removeEventListener("scroll",j,u.listenOpts.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=X,t.style.top=Y,window.location.href===I&&window.scrollTo(H,z),y=void 0)}function me(e){let t="add";if(e===!0){if(p++,h!==null){clearTimeout(h),h=null;return}if(p>1)return}else{if(p===0||(p--,p>0))return;if(t="remove",f.client.is.ios===!0&&f.client.is.nativeMobile===!0){h!==null&&clearTimeout(h),h=setTimeout(()=>{Q(t),h=null},100);return}}Q(t)}function ve(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,me(t))}}}let S=0;const he={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},U={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},ge=u.createComponent({name:"QDialog",inheritAttrs:!1,props:{...r.useModelToggleProps,...r.useTransitionProps,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...r.useModelToggleEmits,"shake","click","escapeKey"],setup(e,{slots:t,emit:a,attrs:s}){const c=i.getCurrentInstance(),d=i.ref(null),n=i.ref(!1),g=i.ref(!1);let m=null,v=null,b,k;const G=i.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:M}=ve(),{registerTimeout:D}=r.useTimeout(),{registerTick:J,removeTick:R}=r.useTick(),{transitionProps:N,transitionStyle:V}=r.useTransition(e,()=>U[e.position][0],()=>U[e.position][1]),Z=i.computed(()=>V.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:$,hidePortal:A,portalIsAccessible:ee,renderPortal:te}=r.usePortal(c,d,ue,"dialog"),{hide:E}=r.useModelToggle({showing:n,hideOnRouteChange:G,handleShow:ne,handleHide:se,processOnMount:!0});ce(n);const oe=i.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${he[e.position]}`+(g.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),q=i.computed(()=>n.value===!0&&e.seamless!==!0),ie=i.computed(()=>e.autoClose===!0?{onClick:re}:{}),le=i.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${q.value===!0?"modal":"seamless"}`,s.class]);i.watch(()=>e.maximized,o=>{n.value===!0&&L(o)}),i.watch(q,o=>{M(o),o===!0?(f.addFocusout(P),r.addEscapeKey(C)):(f.removeFocusout(P),r.removeEscapeKey(C))});function ne(o){var l;v=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,L(e.maximized),$(),g.value=!0,e.noFocus!==!0?((l=document.activeElement)==null||l.blur(),J(w)):R(),D(()=>{if(c.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:x,bottom:_}=document.activeElement.getBoundingClientRect(),{innerHeight:W}=window,F=window.visualViewport!==void 0?window.visualViewport.height:W;x>0&&_>F/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-F,_>=W?1/0:Math.ceil(document.scrollingElement.scrollTop+_-F/2))),document.activeElement.scrollIntoView()}k=!0,d.value.click(),k=!1}$(!0),g.value=!1,a("show",o)},e.transitionDuration)}function se(o){R(),K(!0),g.value=!0,A(),v!==null&&((((o==null?void 0:o.type.indexOf("key"))===0?v.closest('[tabindex]:not([tabindex^="-"])'):void 0)||v).focus(),v=null),D(()=>{A(!0),g.value=!1,a("hide",o)},e.transitionDuration)}function w(o){r.addFocusFn(()=>{let l=d.value;if(l!==null){if(o!==void 0){const x=l.querySelector(o);if(x!==null){x.focus({preventScroll:!0});return}}l.contains(document.activeElement)!==!0&&(l=l.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||l.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||l.querySelector("[autofocus], [data-autofocus]")||l,l.focus({preventScroll:!0}))}})}function B(o){o&&typeof o.focus=="function"?o.focus({preventScroll:!0}):w(),a("shake");const l=d.value;l!==null&&(l.classList.remove("q-animate--scale"),l.classList.add("q-animate--scale"),m!==null&&clearTimeout(m),m=setTimeout(()=>{m=null,d.value!==null&&(l.classList.remove("q-animate--scale"),w())},170))}function C(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&B():(a("escapeKey"),E()))}function K(o){m!==null&&(clearTimeout(m),m=null),(o===!0||n.value===!0)&&(L(!1),e.seamless!==!0&&(M(!1),f.removeFocusout(P),r.removeEscapeKey(C))),o!==!0&&(v=null)}function L(o){o===!0?b!==!0&&(S<1&&document.body.classList.add("q-body--dialog"),S++,b=!0):b===!0&&(S<2&&document.body.classList.remove("q-body--dialog"),S--,b=!1)}function re(o){k!==!0&&(E(o),a("click",o))}function ae(o){e.persistent!==!0&&e.noBackdropDismiss!==!0?E(o):e.noShake!==!0&&B()}function P(o){e.allowFocusOutside!==!0&&ee.value===!0&&u.childHasFocus(d.value,o.target)!==!0&&w('[tabindex]:not([tabindex="-1"])')}Object.assign(c.proxy,{focus:w,shake:B,__updateRefocusTarget(o){v=o||null}}),i.onBeforeUnmount(K);function ue(){return i.h("div",{role:"dialog","aria-modal":q.value===!0?"true":"false",...s,class:le.value},[i.h(i.Transition,{name:"q-transition--fade",appear:!0},()=>q.value===!0?i.h("div",{class:"q-dialog__backdrop fixed-full",style:Z.value,"aria-hidden":"true",tabindex:-1,onClick:ae}):null),i.h(i.Transition,N.value,()=>n.value===!0?i.h("div",{ref:d,class:oe.value,style:V.value,tabindex:-1,...ie.value},u.hSlot(t.default)):null)])}return te}});exports.QDialog=ge;
@@ -1,7 +1,7 @@
1
1
  import { ref as S, onMounted as fe, watch as C, computed as T, getCurrentInstance as he, nextTick as Ce, onBeforeUnmount as Q, h as J, Transition as He } from "vue";
2
2
  import { i as ke, P as Me, c as Pe, r as We, a as Be } from "./focusout-DjvPXP_b.js";
3
- import { p as ee, w as te, m as qe, x as Ae, y as j, z as ne, c as Re, u as Le, a as $e, B as ze, D as Fe, h as De, E as Ke, s as Ie } from "./index-Cw_78hFI.js";
4
- import { g as je, b as Oe, s as _e, u as Qe, c as Ue, d as Ne, e as Ve, f as Xe, h as Ye, i as Ze, j as oe, k as Ge, a as Je, l as et } from "./escape-key-7EcYZQ8M.js";
3
+ import { p as ee, w as te, m as qe, x as Ae, y as j, z as ne, c as Re, u as Le, a as $e, B as ze, D as Fe, h as De, E as Ke, s as Ie } from "./index-DFNWQp-Z.js";
4
+ import { g as je, b as Oe, s as _e, u as Qe, c as Ue, d as Ne, e as Ve, f as Xe, h as Ye, i as Ze, j as oe, k as Ge, a as Je, l as et } from "./escape-key-BlsDwJUQ.js";
5
5
  let K, q = 0;
6
6
  const v = new Array(256);
7
7
  for (let e = 0; e < 256; e++)
@@ -1 +1 @@
1
- "use strict";const a=require("vue"),W=require("./focusout-DzWGke-4.cjs"),v=require("./index-DfudeOYM.cjs"),y=require("./escape-key-DLxLHWMV.cjs");let I,A=0;const x=new Array(256);for(let e=0;e<256;e++)x[e]=(e+256).toString(16).substring(1);const xe=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return t=>{const o=new Uint8Array(t);return e.getRandomValues(o),o}}return t=>{const o=[];for(let n=t;n>0;n--)o.push(Math.floor(Math.random()*256));return o}})(),G=4096;function _(){(I===void 0||A+16>G)&&(A=0,I=xe(G));const e=Array.prototype.slice.call(I,A,A+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,x[e[0]]+x[e[1]]+x[e[2]]+x[e[3]]+"-"+x[e[4]]+x[e[5]]+"-"+x[e[6]]+x[e[7]]+"-"+x[e[8]]+x[e[9]]+"-"+x[e[10]]+x[e[11]]+x[e[12]]+x[e[13]]+x[e[14]]+x[e[15]]}function ye(e){return e??null}function J(e,t){return e??(t===!0?`f_${_()}`:null)}function pe({getValue:e,required:t=!0}={}){if(W.isRuntimeSsrPreHydration.value===!0){const o=e!==void 0?a.ref(ye(e())):a.ref(null);return t===!0&&o.value===null&&a.onMounted(()=>{o.value=`f_${_()}`}),e!==void 0&&a.watch(e,n=>{o.value=J(n,t)}),o}return e!==void 0?a.computed(()=>J(e(),t)):a.ref(`f_${_()}`)}function be(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),W.Platform.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const we={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Ee={...we,contextMenu:Boolean};function Te({showing:e,avoidEmit:t,configureAnchorEl:o}){const{props:n,proxy:i,emit:d}=a.getCurrentInstance(),l=a.ref(null);let h=null;function m(u){return l.value===null?!1:u===void 0||u.touches===void 0||u.touches.length<=1}const c={};o===void 0&&(Object.assign(c,{hide(u){i.hide(u)},toggle(u){i.toggle(u),u.qAnchorHandled=!0},toggleKey(u){v.isKeyCode(u,13)===!0&&c.toggle(u)},contextClick(u){i.hide(u),v.prevent(u),a.nextTick(()=>{i.show(u),u.qAnchorHandled=!0})},prevent:v.prevent,mobileTouch(u){if(c.mobileCleanup(u),m(u)!==!0)return;i.hide(u),l.value.classList.add("non-selectable");const s=u.target;v.addEvt(c,"anchor",[[s,"touchmove","mobileCleanup","passive"],[s,"touchend","mobileCleanup","passive"],[s,"touchcancel","mobileCleanup","passive"],[l.value,"contextmenu","prevent","notPassive"]]),h=setTimeout(()=>{h=null,i.show(u),u.qAnchorHandled=!0},300)},mobileCleanup(u){l.value.classList.remove("non-selectable"),h!==null&&(clearTimeout(h),h=null),e.value===!0&&u!==void 0&&be()}}),o=function(u=n.contextMenu){if(n.noParentEvent===!0||l.value===null)return;let s;u===!0?i.$q.platform.is.mobile===!0?s=[[l.value,"touchstart","mobileTouch","passive"]]:s=[[l.value,"mousedown","hide","passive"],[l.value,"contextmenu","contextClick","notPassive"]]:s=[[l.value,"click","toggle","passive"],[l.value,"keyup","toggleKey","passive"]],v.addEvt(c,"anchor",s)});function f(){v.cleanEvt(c,"anchor")}function b(u){for(l.value=u;l.value.classList.contains("q-anchor--skip");)l.value=l.value.parentNode;o()}function w(){if(n.target===!1||n.target===""||i.$el.parentNode===null)l.value=null;else if(n.target===!0)b(i.$el.parentNode);else{let u=n.target;if(typeof n.target=="string")try{u=document.querySelector(n.target)}catch{u=void 0}u!=null?(l.value=u.$el||u,o()):(l.value=null,console.error(`Anchor: target "${n.target}" not found`))}}return a.watch(()=>n.contextMenu,u=>{l.value!==null&&(f(),o(u))}),a.watch(()=>n.target,()=>{l.value!==null&&f(),w()}),a.watch(()=>n.noParentEvent,u=>{l.value!==null&&(u===!0?f():o())}),a.onMounted(()=>{w(),t!==!0&&n.modelValue===!0&&l.value===null&&d("update:modelValue",!1)}),a.onBeforeUnmount(()=>{h!==null&&clearTimeout(h),f()}),{anchorEl:l,canShow:m,anchorEvents:c}}function Se(e,t){const o=a.ref(null);let n;function i(h,m){const c=`${m!==void 0?"add":"remove"}EventListener`,f=m!==void 0?m:n;h!==window&&h[c]("scroll",f,v.listenOpts.passive),window[c]("scroll",f,v.listenOpts.passive),n=m}function d(){o.value!==null&&(i(o.value),o.value=null)}const l=a.watch(()=>e.noParentEvent,()=>{o.value!==null&&(d(),t())});return a.onBeforeUnmount(l),{localScrollTarget:o,unconfigureScrollTarget:d,changeScrollEvent:i}}const{notPassiveCapture:L}=v.listenOpts,H=[];function R(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let o=v.portalProxyList.length-1;for(;o>=0;){const n=v.portalProxyList[o].$;if(n.type.name==="QTooltip"){o--;continue}if(n.type.name!=="QDialog")break;if(n.props.seamless!==!0)return;o--}for(let n=H.length-1;n>=0;n--){const i=H[n];if((i.anchorEl.value===null||i.anchorEl.value.contains(t)===!1)&&(t===document.body||i.innerRef.value!==null&&i.innerRef.value.contains(t)===!1))e.qClickOutside=!0,i.onClickOutside(e);else return}}function Ce(e){H.push(e),H.length===1&&(document.addEventListener("mousedown",R,L),document.addEventListener("touchstart",R,L))}function ee(e){const t=H.findIndex(o=>o===e);t!==-1&&(H.splice(t,1),H.length===0&&(document.removeEventListener("mousedown",R,L),document.removeEventListener("touchstart",R,L)))}let te,ne;function oe(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function He(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const j={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{j[`${e}#ltr`]=e,j[`${e}#rtl`]=e});function ie(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:j[`${o[1]}#${t===!0?"rtl":"ltr"}`]}}function Me(e,t){let{top:o,left:n,right:i,bottom:d,width:l,height:h}=e.getBoundingClientRect();return t!==void 0&&(o-=t[1],n-=t[0],d+=t[1],i+=t[0],l+=t[0],h+=t[1]),{top:o,bottom:d,height:h,left:n,right:i,width:l,middle:n+(i-n)/2,center:o+(d-o)/2}}function ke(e,t,o){let{top:n,left:i}=e.getBoundingClientRect();return n+=t.top,i+=t.left,o!==void 0&&(n+=o[1],i+=o[0]),{top:n,bottom:n+1,height:1,left:i,right:i+1,width:1,middle:i,center:n}}function Pe(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function le(e,t,o,n){return{top:e[o.vertical]-t[n.vertical],left:e[o.horizontal]-t[n.horizontal]}}function ue(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{ue(e,t+1)},10);return}const{targetEl:o,offset:n,anchorEl:i,anchorOrigin:d,selfOrigin:l,absoluteOffset:h,fit:m,cover:c,maxHeight:f,maxWidth:b}=e;if(W.client.is.ios===!0&&window.visualViewport!==void 0){const M=document.body.style,{offsetLeft:E,offsetTop:T}=window.visualViewport;E!==te&&(M.setProperty("--q-pe-left",E+"px"),te=E),T!==ne&&(M.setProperty("--q-pe-top",T+"px"),ne=T)}const{scrollLeft:w,scrollTop:u}=o,s=h===void 0?Me(i,c===!0?[0,0]:n):ke(i,h,n);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:b,maxHeight:f,visibility:"visible"});const{offsetWidth:B,offsetHeight:k}=o,{elWidth:q,elHeight:$}=m===!0||c===!0?{elWidth:Math.max(s.width,B),elHeight:c===!0?Math.max(s.height,k):k}:{elWidth:B,elHeight:k};let p={maxWidth:b,maxHeight:f};(m===!0||c===!0)&&(p.minWidth=s.width+"px",c===!0&&(p.minHeight=s.height+"px")),Object.assign(o.style,p);const S=Pe(q,$);let g=le(s,S,d,l);if(h===void 0||n===void 0)O(g,s,S,d,l);else{const{top:M,left:E}=g;O(g,s,S,d,l);let T=!1;if(g.top!==M){T=!0;const C=2*n[1];s.center=s.top-=C,s.bottom-=C+2}if(g.left!==E){T=!0;const C=2*n[0];s.middle=s.left-=C,s.right-=C+2}T===!0&&(g=le(s,S,d,l),O(g,s,S,d,l))}p={top:g.top+"px",left:g.left+"px"},g.maxHeight!==void 0&&(p.maxHeight=g.maxHeight+"px",s.height>g.maxHeight&&(p.minHeight=p.maxHeight)),g.maxWidth!==void 0&&(p.maxWidth=g.maxWidth+"px",s.width>g.maxWidth&&(p.minWidth=p.maxWidth)),Object.assign(o.style,p),o.scrollTop!==u&&(o.scrollTop=u),o.scrollLeft!==w&&(o.scrollLeft=w)}function O(e,t,o,n,i){const d=o.bottom,l=o.right,h=y.getScrollbarWidth(),m=window.innerHeight-h,c=document.body.clientWidth;if(e.top<0||e.top+d>m)if(i.vertical==="center")e.top=t[n.vertical]>m/2?Math.max(0,m-d):0,e.maxHeight=Math.min(d,m);else if(t[n.vertical]>m/2){const f=Math.min(m,n.vertical==="center"?t.center:n.vertical===i.vertical?t.bottom:t.top);e.maxHeight=Math.min(d,f),e.top=Math.max(0,f-d)}else e.top=Math.max(0,n.vertical==="center"?t.center:n.vertical===i.vertical?t.top:t.bottom),e.maxHeight=Math.min(d,m-e.top);if(e.left<0||e.left+l>c)if(e.maxWidth=Math.min(l,c),i.horizontal==="middle")e.left=t[n.horizontal]>c/2?Math.max(0,c-l):0;else if(t[n.horizontal]>c/2){const f=Math.min(c,n.horizontal==="middle"?t.middle:n.horizontal===i.horizontal?t.right:t.left);e.maxWidth=Math.min(l,f),e.left=Math.max(0,f-e.maxWidth)}else e.left=Math.max(0,n.horizontal==="middle"?t.middle:n.horizontal===i.horizontal?t.left:t.right),e.maxWidth=Math.min(l,c-e.left)}const We=v.createComponent({name:"QMenu",inheritAttrs:!1,props:{...Ee,...y.useModelToggleProps,...v.useDarkProps,...y.useTransitionProps,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:oe},self:{type:String,validator:oe},offset:{type:Array,validator:He},scrollTarget:y.scrollTargetProp,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...y.useModelToggleEmits,"click","escapeKey"],setup(e,{slots:t,emit:o,attrs:n}){let i=null,d,l,h;const m=a.getCurrentInstance(),{proxy:c}=m,{$q:f}=c,b=a.ref(null),w=a.ref(!1),u=a.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),s=v.useDark(e,f),{registerTick:B,removeTick:k}=y.useTick(),{registerTimeout:q}=y.useTimeout(),{transitionProps:$,transitionStyle:p}=y.useTransition(e),{localScrollTarget:S,changeScrollEvent:g,unconfigureScrollTarget:M}=Se(e,Y),{anchorEl:E,canShow:T}=Te({showing:w}),{hide:C}=y.useModelToggle({showing:w,canShow:T,handleShow:de,handleHide:fe,hideOnRouteChange:u,processOnMount:!0}),{showPortal:Q,hidePortal:U,renderPortal:re}=y.usePortal(m,b,me,"menu"),F={anchorEl:E,innerRef:b,onClickOutside(r){if(e.persistent!==!0&&w.value===!0)return C(r),(r.type==="touchstart"||r.target.classList.contains("q-dialog__backdrop"))&&v.stopAndPrevent(r),!0}},N=a.computed(()=>ie(e.anchor||(e.cover===!0?"center middle":"bottom start"),f.lang.rtl)),ae=a.computed(()=>e.cover===!0?N.value:ie(e.self||"top start",f.lang.rtl)),se=a.computed(()=>(e.square===!0?" q-menu--square":"")+(s.value===!0?" q-menu--dark q-dark":"")),ce=a.computed(()=>e.autoClose===!0?{onClick:he}:{}),V=a.computed(()=>w.value===!0&&e.persistent!==!0);a.watch(V,r=>{r===!0?(y.addEscapeKey(D),Ce(F)):(y.removeEscapeKey(D),ee(F))});function z(){y.addFocusFn(()=>{let r=b.value;r&&r.contains(document.activeElement)!==!0&&(r=r.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||r.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||r.querySelector("[autofocus], [data-autofocus]")||r,r.focus({preventScroll:!0}))})}function de(r){if(i=e.noRefocus===!1?document.activeElement:null,W.addFocusout(Z),Q(),Y(),d=void 0,r!==void 0&&(e.touchPosition||e.contextMenu)){const K=v.position(r);if(K.left!==void 0){const{top:ve,left:ge}=E.value.getBoundingClientRect();d={left:K.left-ge,top:K.top-ve}}}l===void 0&&(l=a.watch(()=>f.screen.width+"|"+f.screen.height+"|"+e.self+"|"+e.anchor+"|"+f.lang.rtl,P)),e.noFocus!==!0&&document.activeElement.blur(),B(()=>{P(),e.noFocus!==!0&&z()}),q(()=>{f.platform.is.ios===!0&&(h=e.autoClose,b.value.click()),P(),Q(!0),o("show",r)},e.transitionDuration)}function fe(r){k(),U(),X(!0),i!==null&&(r===void 0||r.qClickOutside!==!0)&&((((r==null?void 0:r.type.indexOf("key"))===0?i.closest('[tabindex]:not([tabindex^="-"])'):void 0)||i).focus(),i=null),q(()=>{U(!0),o("hide",r)},e.transitionDuration)}function X(r){d=void 0,l!==void 0&&(l(),l=void 0),(r===!0||w.value===!0)&&(W.removeFocusout(Z),M(),ee(F),y.removeEscapeKey(D)),r!==!0&&(i=null)}function Y(){(E.value!==null||e.scrollTarget!==void 0)&&(S.value=y.getScrollTarget(E.value,e.scrollTarget),g(S.value,P))}function he(r){h!==!0?(v.closePortalMenus(c,r),o("click",r)):h=!1}function Z(r){V.value===!0&&e.noFocus!==!0&&v.childHasFocus(b.value,r.target)!==!0&&z()}function D(r){e.noEscDismiss!==!0&&(o("escapeKey"),C(r))}function P(){ue({targetEl:b.value,offset:e.offset,anchorEl:E.value,anchorOrigin:N.value,selfOrigin:ae.value,absoluteOffset:d,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function me(){return a.h(a.Transition,$.value,()=>w.value===!0?a.h("div",{role:"menu",...n,ref:b,tabindex:-1,class:["q-menu q-position-engine scroll"+se.value,n.class],style:[n.style,p.value],...ce.value},v.hSlot(t.default)):null)}return a.onBeforeUnmount(X),Object.assign(c,{focus:z,updatePosition:P}),re}});exports.QMenu=We;exports.useId=pe;
1
+ "use strict";const a=require("vue"),W=require("./focusout-DzWGke-4.cjs"),v=require("./index-BB31xQaa.cjs"),y=require("./escape-key-CRpXNCKN.cjs");let I,A=0;const x=new Array(256);for(let e=0;e<256;e++)x[e]=(e+256).toString(16).substring(1);const xe=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return t=>{const o=new Uint8Array(t);return e.getRandomValues(o),o}}return t=>{const o=[];for(let n=t;n>0;n--)o.push(Math.floor(Math.random()*256));return o}})(),G=4096;function _(){(I===void 0||A+16>G)&&(A=0,I=xe(G));const e=Array.prototype.slice.call(I,A,A+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,x[e[0]]+x[e[1]]+x[e[2]]+x[e[3]]+"-"+x[e[4]]+x[e[5]]+"-"+x[e[6]]+x[e[7]]+"-"+x[e[8]]+x[e[9]]+"-"+x[e[10]]+x[e[11]]+x[e[12]]+x[e[13]]+x[e[14]]+x[e[15]]}function ye(e){return e??null}function J(e,t){return e??(t===!0?`f_${_()}`:null)}function pe({getValue:e,required:t=!0}={}){if(W.isRuntimeSsrPreHydration.value===!0){const o=e!==void 0?a.ref(ye(e())):a.ref(null);return t===!0&&o.value===null&&a.onMounted(()=>{o.value=`f_${_()}`}),e!==void 0&&a.watch(e,n=>{o.value=J(n,t)}),o}return e!==void 0?a.computed(()=>J(e(),t)):a.ref(`f_${_()}`)}function be(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),W.Platform.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const we={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Ee={...we,contextMenu:Boolean};function Te({showing:e,avoidEmit:t,configureAnchorEl:o}){const{props:n,proxy:i,emit:d}=a.getCurrentInstance(),l=a.ref(null);let h=null;function m(u){return l.value===null?!1:u===void 0||u.touches===void 0||u.touches.length<=1}const c={};o===void 0&&(Object.assign(c,{hide(u){i.hide(u)},toggle(u){i.toggle(u),u.qAnchorHandled=!0},toggleKey(u){v.isKeyCode(u,13)===!0&&c.toggle(u)},contextClick(u){i.hide(u),v.prevent(u),a.nextTick(()=>{i.show(u),u.qAnchorHandled=!0})},prevent:v.prevent,mobileTouch(u){if(c.mobileCleanup(u),m(u)!==!0)return;i.hide(u),l.value.classList.add("non-selectable");const s=u.target;v.addEvt(c,"anchor",[[s,"touchmove","mobileCleanup","passive"],[s,"touchend","mobileCleanup","passive"],[s,"touchcancel","mobileCleanup","passive"],[l.value,"contextmenu","prevent","notPassive"]]),h=setTimeout(()=>{h=null,i.show(u),u.qAnchorHandled=!0},300)},mobileCleanup(u){l.value.classList.remove("non-selectable"),h!==null&&(clearTimeout(h),h=null),e.value===!0&&u!==void 0&&be()}}),o=function(u=n.contextMenu){if(n.noParentEvent===!0||l.value===null)return;let s;u===!0?i.$q.platform.is.mobile===!0?s=[[l.value,"touchstart","mobileTouch","passive"]]:s=[[l.value,"mousedown","hide","passive"],[l.value,"contextmenu","contextClick","notPassive"]]:s=[[l.value,"click","toggle","passive"],[l.value,"keyup","toggleKey","passive"]],v.addEvt(c,"anchor",s)});function f(){v.cleanEvt(c,"anchor")}function b(u){for(l.value=u;l.value.classList.contains("q-anchor--skip");)l.value=l.value.parentNode;o()}function w(){if(n.target===!1||n.target===""||i.$el.parentNode===null)l.value=null;else if(n.target===!0)b(i.$el.parentNode);else{let u=n.target;if(typeof n.target=="string")try{u=document.querySelector(n.target)}catch{u=void 0}u!=null?(l.value=u.$el||u,o()):(l.value=null,console.error(`Anchor: target "${n.target}" not found`))}}return a.watch(()=>n.contextMenu,u=>{l.value!==null&&(f(),o(u))}),a.watch(()=>n.target,()=>{l.value!==null&&f(),w()}),a.watch(()=>n.noParentEvent,u=>{l.value!==null&&(u===!0?f():o())}),a.onMounted(()=>{w(),t!==!0&&n.modelValue===!0&&l.value===null&&d("update:modelValue",!1)}),a.onBeforeUnmount(()=>{h!==null&&clearTimeout(h),f()}),{anchorEl:l,canShow:m,anchorEvents:c}}function Se(e,t){const o=a.ref(null);let n;function i(h,m){const c=`${m!==void 0?"add":"remove"}EventListener`,f=m!==void 0?m:n;h!==window&&h[c]("scroll",f,v.listenOpts.passive),window[c]("scroll",f,v.listenOpts.passive),n=m}function d(){o.value!==null&&(i(o.value),o.value=null)}const l=a.watch(()=>e.noParentEvent,()=>{o.value!==null&&(d(),t())});return a.onBeforeUnmount(l),{localScrollTarget:o,unconfigureScrollTarget:d,changeScrollEvent:i}}const{notPassiveCapture:L}=v.listenOpts,H=[];function R(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let o=v.portalProxyList.length-1;for(;o>=0;){const n=v.portalProxyList[o].$;if(n.type.name==="QTooltip"){o--;continue}if(n.type.name!=="QDialog")break;if(n.props.seamless!==!0)return;o--}for(let n=H.length-1;n>=0;n--){const i=H[n];if((i.anchorEl.value===null||i.anchorEl.value.contains(t)===!1)&&(t===document.body||i.innerRef.value!==null&&i.innerRef.value.contains(t)===!1))e.qClickOutside=!0,i.onClickOutside(e);else return}}function Ce(e){H.push(e),H.length===1&&(document.addEventListener("mousedown",R,L),document.addEventListener("touchstart",R,L))}function ee(e){const t=H.findIndex(o=>o===e);t!==-1&&(H.splice(t,1),H.length===0&&(document.removeEventListener("mousedown",R,L),document.removeEventListener("touchstart",R,L)))}let te,ne;function oe(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function He(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const j={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{j[`${e}#ltr`]=e,j[`${e}#rtl`]=e});function ie(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:j[`${o[1]}#${t===!0?"rtl":"ltr"}`]}}function Me(e,t){let{top:o,left:n,right:i,bottom:d,width:l,height:h}=e.getBoundingClientRect();return t!==void 0&&(o-=t[1],n-=t[0],d+=t[1],i+=t[0],l+=t[0],h+=t[1]),{top:o,bottom:d,height:h,left:n,right:i,width:l,middle:n+(i-n)/2,center:o+(d-o)/2}}function ke(e,t,o){let{top:n,left:i}=e.getBoundingClientRect();return n+=t.top,i+=t.left,o!==void 0&&(n+=o[1],i+=o[0]),{top:n,bottom:n+1,height:1,left:i,right:i+1,width:1,middle:i,center:n}}function Pe(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function le(e,t,o,n){return{top:e[o.vertical]-t[n.vertical],left:e[o.horizontal]-t[n.horizontal]}}function ue(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{ue(e,t+1)},10);return}const{targetEl:o,offset:n,anchorEl:i,anchorOrigin:d,selfOrigin:l,absoluteOffset:h,fit:m,cover:c,maxHeight:f,maxWidth:b}=e;if(W.client.is.ios===!0&&window.visualViewport!==void 0){const M=document.body.style,{offsetLeft:E,offsetTop:T}=window.visualViewport;E!==te&&(M.setProperty("--q-pe-left",E+"px"),te=E),T!==ne&&(M.setProperty("--q-pe-top",T+"px"),ne=T)}const{scrollLeft:w,scrollTop:u}=o,s=h===void 0?Me(i,c===!0?[0,0]:n):ke(i,h,n);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:b,maxHeight:f,visibility:"visible"});const{offsetWidth:B,offsetHeight:k}=o,{elWidth:q,elHeight:$}=m===!0||c===!0?{elWidth:Math.max(s.width,B),elHeight:c===!0?Math.max(s.height,k):k}:{elWidth:B,elHeight:k};let p={maxWidth:b,maxHeight:f};(m===!0||c===!0)&&(p.minWidth=s.width+"px",c===!0&&(p.minHeight=s.height+"px")),Object.assign(o.style,p);const S=Pe(q,$);let g=le(s,S,d,l);if(h===void 0||n===void 0)O(g,s,S,d,l);else{const{top:M,left:E}=g;O(g,s,S,d,l);let T=!1;if(g.top!==M){T=!0;const C=2*n[1];s.center=s.top-=C,s.bottom-=C+2}if(g.left!==E){T=!0;const C=2*n[0];s.middle=s.left-=C,s.right-=C+2}T===!0&&(g=le(s,S,d,l),O(g,s,S,d,l))}p={top:g.top+"px",left:g.left+"px"},g.maxHeight!==void 0&&(p.maxHeight=g.maxHeight+"px",s.height>g.maxHeight&&(p.minHeight=p.maxHeight)),g.maxWidth!==void 0&&(p.maxWidth=g.maxWidth+"px",s.width>g.maxWidth&&(p.minWidth=p.maxWidth)),Object.assign(o.style,p),o.scrollTop!==u&&(o.scrollTop=u),o.scrollLeft!==w&&(o.scrollLeft=w)}function O(e,t,o,n,i){const d=o.bottom,l=o.right,h=y.getScrollbarWidth(),m=window.innerHeight-h,c=document.body.clientWidth;if(e.top<0||e.top+d>m)if(i.vertical==="center")e.top=t[n.vertical]>m/2?Math.max(0,m-d):0,e.maxHeight=Math.min(d,m);else if(t[n.vertical]>m/2){const f=Math.min(m,n.vertical==="center"?t.center:n.vertical===i.vertical?t.bottom:t.top);e.maxHeight=Math.min(d,f),e.top=Math.max(0,f-d)}else e.top=Math.max(0,n.vertical==="center"?t.center:n.vertical===i.vertical?t.top:t.bottom),e.maxHeight=Math.min(d,m-e.top);if(e.left<0||e.left+l>c)if(e.maxWidth=Math.min(l,c),i.horizontal==="middle")e.left=t[n.horizontal]>c/2?Math.max(0,c-l):0;else if(t[n.horizontal]>c/2){const f=Math.min(c,n.horizontal==="middle"?t.middle:n.horizontal===i.horizontal?t.right:t.left);e.maxWidth=Math.min(l,f),e.left=Math.max(0,f-e.maxWidth)}else e.left=Math.max(0,n.horizontal==="middle"?t.middle:n.horizontal===i.horizontal?t.left:t.right),e.maxWidth=Math.min(l,c-e.left)}const We=v.createComponent({name:"QMenu",inheritAttrs:!1,props:{...Ee,...y.useModelToggleProps,...v.useDarkProps,...y.useTransitionProps,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:oe},self:{type:String,validator:oe},offset:{type:Array,validator:He},scrollTarget:y.scrollTargetProp,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...y.useModelToggleEmits,"click","escapeKey"],setup(e,{slots:t,emit:o,attrs:n}){let i=null,d,l,h;const m=a.getCurrentInstance(),{proxy:c}=m,{$q:f}=c,b=a.ref(null),w=a.ref(!1),u=a.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),s=v.useDark(e,f),{registerTick:B,removeTick:k}=y.useTick(),{registerTimeout:q}=y.useTimeout(),{transitionProps:$,transitionStyle:p}=y.useTransition(e),{localScrollTarget:S,changeScrollEvent:g,unconfigureScrollTarget:M}=Se(e,Y),{anchorEl:E,canShow:T}=Te({showing:w}),{hide:C}=y.useModelToggle({showing:w,canShow:T,handleShow:de,handleHide:fe,hideOnRouteChange:u,processOnMount:!0}),{showPortal:Q,hidePortal:U,renderPortal:re}=y.usePortal(m,b,me,"menu"),F={anchorEl:E,innerRef:b,onClickOutside(r){if(e.persistent!==!0&&w.value===!0)return C(r),(r.type==="touchstart"||r.target.classList.contains("q-dialog__backdrop"))&&v.stopAndPrevent(r),!0}},N=a.computed(()=>ie(e.anchor||(e.cover===!0?"center middle":"bottom start"),f.lang.rtl)),ae=a.computed(()=>e.cover===!0?N.value:ie(e.self||"top start",f.lang.rtl)),se=a.computed(()=>(e.square===!0?" q-menu--square":"")+(s.value===!0?" q-menu--dark q-dark":"")),ce=a.computed(()=>e.autoClose===!0?{onClick:he}:{}),V=a.computed(()=>w.value===!0&&e.persistent!==!0);a.watch(V,r=>{r===!0?(y.addEscapeKey(D),Ce(F)):(y.removeEscapeKey(D),ee(F))});function z(){y.addFocusFn(()=>{let r=b.value;r&&r.contains(document.activeElement)!==!0&&(r=r.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||r.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||r.querySelector("[autofocus], [data-autofocus]")||r,r.focus({preventScroll:!0}))})}function de(r){if(i=e.noRefocus===!1?document.activeElement:null,W.addFocusout(Z),Q(),Y(),d=void 0,r!==void 0&&(e.touchPosition||e.contextMenu)){const K=v.position(r);if(K.left!==void 0){const{top:ve,left:ge}=E.value.getBoundingClientRect();d={left:K.left-ge,top:K.top-ve}}}l===void 0&&(l=a.watch(()=>f.screen.width+"|"+f.screen.height+"|"+e.self+"|"+e.anchor+"|"+f.lang.rtl,P)),e.noFocus!==!0&&document.activeElement.blur(),B(()=>{P(),e.noFocus!==!0&&z()}),q(()=>{f.platform.is.ios===!0&&(h=e.autoClose,b.value.click()),P(),Q(!0),o("show",r)},e.transitionDuration)}function fe(r){k(),U(),X(!0),i!==null&&(r===void 0||r.qClickOutside!==!0)&&((((r==null?void 0:r.type.indexOf("key"))===0?i.closest('[tabindex]:not([tabindex^="-"])'):void 0)||i).focus(),i=null),q(()=>{U(!0),o("hide",r)},e.transitionDuration)}function X(r){d=void 0,l!==void 0&&(l(),l=void 0),(r===!0||w.value===!0)&&(W.removeFocusout(Z),M(),ee(F),y.removeEscapeKey(D)),r!==!0&&(i=null)}function Y(){(E.value!==null||e.scrollTarget!==void 0)&&(S.value=y.getScrollTarget(E.value,e.scrollTarget),g(S.value,P))}function he(r){h!==!0?(v.closePortalMenus(c,r),o("click",r)):h=!1}function Z(r){V.value===!0&&e.noFocus!==!0&&v.childHasFocus(b.value,r.target)!==!0&&z()}function D(r){e.noEscDismiss!==!0&&(o("escapeKey"),C(r))}function P(){ue({targetEl:b.value,offset:e.offset,anchorEl:E.value,anchorOrigin:N.value,selfOrigin:ae.value,absoluteOffset:d,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function me(){return a.h(a.Transition,$.value,()=>w.value===!0?a.h("div",{role:"menu",...n,ref:b,tabindex:-1,class:["q-menu q-position-engine scroll"+se.value,n.class],style:[n.style,p.value],...ce.value},v.hSlot(t.default)):null)}return a.onBeforeUnmount(X),Object.assign(c,{focus:z,updatePosition:P}),re}});exports.QMenu=We;exports.useId=pe;
@@ -1,5 +1,5 @@
1
1
  import { getCurrentInstance as E, watch as V, onMounted as I, nextTick as x, ref as $, onUnmounted as K, h as k, Teleport as U, computed as D, onDeactivated as N, onBeforeUnmount as O } from "vue";
2
- import { H as G, z as T, c as Q, I as W, J as j, K as H, m as _ } from "./index-Cw_78hFI.js";
2
+ import { H as G, z as T, c as Q, I as W, J as j, K as H, m as _ } from "./index-DFNWQp-Z.js";
3
3
  import { b as z, c as B } from "./focusout-DjvPXP_b.js";
4
4
  let c = [], h = [];
5
5
  function q(e) {
@@ -1 +1 @@
1
- "use strict";const i=require("vue"),u=require("./index-DfudeOYM.cjs"),$=require("./focusout-DzWGke-4.cjs");let f=[],y=[];function k(e){y=y.filter(t=>t!==e)}function L(e){k(e),y.push(e)}function C(e){k(e),y.length===0&&f.length!==0&&(f[f.length-1](),f=[])}function M(e){y.length===0?e():f.push(e)}function q(e){f=f.filter(t=>t!==e)}const H={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},N=["beforeShow","show","beforeHide","hide"];function W({showing:e,canShow:t,hideOnRouteChange:o,handleShow:l,handleHide:r,processOnMount:v}){const d=i.getCurrentInstance(),{props:s,emit:a,proxy:b}=d;let c;function h(n){e.value===!0?x(n):w(n)}function w(n){if(s.disable===!0||(n==null?void 0:n.qAnchorHandled)===!0||t!==void 0&&t(n)!==!0)return;const m=s["onUpdate:modelValue"]!==void 0;m===!0&&(a("update:modelValue",!0),c=n,i.nextTick(()=>{c===n&&(c=void 0)})),(s.modelValue===null||m===!1)&&P(n)}function P(n){e.value!==!0&&(e.value=!0,a("beforeShow",n),l!==void 0?l(n):a("show",n))}function x(n){if(s.disable===!0)return;const m=s["onUpdate:modelValue"]!==void 0;m===!0&&(a("update:modelValue",!1),c=n,i.nextTick(()=>{c===n&&(c=void 0)})),(s.modelValue===null||m===!1)&&E(n)}function E(n){e.value!==!1&&(e.value=!1,a("beforeHide",n),r!==void 0?r(n):a("hide",n))}function S(n){s.disable===!0&&n===!0?s["onUpdate:modelValue"]!==void 0&&a("update:modelValue",!1):n===!0!==e.value&&(n===!0?P:E)(c)}i.watch(()=>s.modelValue,S),o!==void 0&&u.vmHasRouter(d)===!0&&i.watch(()=>b.$route.fullPath,()=>{o.value===!0&&e.value===!0&&x()}),i.onMounted(()=>{S(s.modelValue)});const F={show:w,hide:x,toggle:h};return Object.assign(b,F),F}const V={};let I=1,O=document.body;function K(e,t){const o=document.createElement("div");if(o.id=t!==void 0?`q-portal--${t}--${I++}`:e,V.globalNodes!==void 0){const l=V.globalNodes.class;l!==void 0&&(o.className=l)}return O.appendChild(o),o}function U(e){e.remove()}const A=u.createComponent({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function G(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function Q(e,t,o,l){const r=i.ref(!1),v=i.ref(!1);let d=null;const s={},a=l==="dialog"&&G(e);function b(h){if(h===!0){C(s),v.value=!0;return}v.value=!1,r.value===!1&&(a===!1&&d===null&&(d=K(!1,l)),r.value=!0,u.portalProxyList.push(e.proxy),L(s))}function c(h){if(v.value=!1,h!==!0)return;C(s),r.value=!1;const w=u.portalProxyList.indexOf(e.proxy);w!==-1&&u.portalProxyList.splice(w,1),d!==null&&(U(d),d=null)}return i.onUnmounted(()=>{c(!0)}),e.proxy.__qPortal=!0,$.injectProp(e.proxy,"contentEl",()=>t.value),{showPortal:b,hidePortal:c,portalIsActive:r,portalIsAccessible:v,renderPortal:()=>a===!0?o():r.value===!0?[i.h(i.Teleport,{to:d},i.h(A,o))]:void 0}}const B={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function _(e,t=()=>{},o=()=>{}){return{transitionProps:i.computed(()=>{const l=`q-transition--${e.transitionShow||t()}`,r=`q-transition--${e.transitionHide||o()}`;return{appear:!0,enterFromClass:`${l}-enter-from`,enterActiveClass:`${l}-enter-active`,enterToClass:`${l}-enter-to`,leaveFromClass:`${r}-leave-from`,leaveActiveClass:`${r}-leave-active`,leaveToClass:`${r}-leave-to`}}),transitionStyle:i.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function j(){let e;const t=i.getCurrentInstance();function o(){e=void 0}return i.onDeactivated(o),i.onBeforeUnmount(o),{removeTick:o,registerTick(l){e=l,i.nextTick(()=>{e===l&&(u.vmIsDestroyed(t)===!1&&e(),e=void 0)})}}}function z(){let e=null;const t=i.getCurrentInstance();function o(){e!==null&&(clearTimeout(e),e=null)}return i.onDeactivated(o),i.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(l,r){o(),u.vmIsDestroyed(t)===!1&&(e=setTimeout(()=>{e=null,l()},r))}}}const X=[Element,String],Y=[null,document,document.body,document.scrollingElement,document.documentElement];function J(e,t){let o=u.getElement(t);if(o===void 0){if(e==null)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return Y.includes(o)?window:o}function R(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function Z(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let T;function ee(){if(T!==void 0)return T;const e=document.createElement("p"),t=document.createElement("div");u.css(e,{width:"100%",height:"200px"}),u.css(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let l=e.offsetWidth;return o===l&&(l=t.clientWidth),t.remove(),T=o-l,T}function te(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const p=[];let g;function oe(e){g=e.keyCode===27}function ne(){g===!0&&(g=!1)}function le(e){g===!0&&(g=!1,u.isKeyCode(e,27)===!0&&p[p.length-1](e))}function D(e){window[e]("keydown",oe),window[e]("blur",ne),window[e]("keyup",le),g=!1}function ie(e){$.client.is.desktop===!0&&(p.push(e),p.length===1&&D("addEventListener"))}function re(e){const t=p.indexOf(e);t!==-1&&(p.splice(t,1),p.length===0&&D("removeEventListener"))}exports.addEscapeKey=ie;exports.addFocusFn=M;exports.getHorizontalScrollPosition=Z;exports.getScrollTarget=J;exports.getScrollbarWidth=ee;exports.getVerticalScrollPosition=R;exports.hasScrollbar=te;exports.removeEscapeKey=re;exports.removeFocusFn=q;exports.scrollTargetProp=X;exports.useModelToggle=W;exports.useModelToggleEmits=N;exports.useModelToggleProps=H;exports.usePortal=Q;exports.useTick=j;exports.useTimeout=z;exports.useTransition=_;exports.useTransitionProps=B;
1
+ "use strict";const i=require("vue"),u=require("./index-BB31xQaa.cjs"),$=require("./focusout-DzWGke-4.cjs");let f=[],y=[];function k(e){y=y.filter(t=>t!==e)}function L(e){k(e),y.push(e)}function C(e){k(e),y.length===0&&f.length!==0&&(f[f.length-1](),f=[])}function M(e){y.length===0?e():f.push(e)}function q(e){f=f.filter(t=>t!==e)}const H={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},N=["beforeShow","show","beforeHide","hide"];function W({showing:e,canShow:t,hideOnRouteChange:o,handleShow:l,handleHide:r,processOnMount:v}){const d=i.getCurrentInstance(),{props:s,emit:a,proxy:b}=d;let c;function h(n){e.value===!0?x(n):w(n)}function w(n){if(s.disable===!0||(n==null?void 0:n.qAnchorHandled)===!0||t!==void 0&&t(n)!==!0)return;const m=s["onUpdate:modelValue"]!==void 0;m===!0&&(a("update:modelValue",!0),c=n,i.nextTick(()=>{c===n&&(c=void 0)})),(s.modelValue===null||m===!1)&&P(n)}function P(n){e.value!==!0&&(e.value=!0,a("beforeShow",n),l!==void 0?l(n):a("show",n))}function x(n){if(s.disable===!0)return;const m=s["onUpdate:modelValue"]!==void 0;m===!0&&(a("update:modelValue",!1),c=n,i.nextTick(()=>{c===n&&(c=void 0)})),(s.modelValue===null||m===!1)&&E(n)}function E(n){e.value!==!1&&(e.value=!1,a("beforeHide",n),r!==void 0?r(n):a("hide",n))}function S(n){s.disable===!0&&n===!0?s["onUpdate:modelValue"]!==void 0&&a("update:modelValue",!1):n===!0!==e.value&&(n===!0?P:E)(c)}i.watch(()=>s.modelValue,S),o!==void 0&&u.vmHasRouter(d)===!0&&i.watch(()=>b.$route.fullPath,()=>{o.value===!0&&e.value===!0&&x()}),i.onMounted(()=>{S(s.modelValue)});const F={show:w,hide:x,toggle:h};return Object.assign(b,F),F}const V={};let I=1,O=document.body;function K(e,t){const o=document.createElement("div");if(o.id=t!==void 0?`q-portal--${t}--${I++}`:e,V.globalNodes!==void 0){const l=V.globalNodes.class;l!==void 0&&(o.className=l)}return O.appendChild(o),o}function U(e){e.remove()}const A=u.createComponent({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function G(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function Q(e,t,o,l){const r=i.ref(!1),v=i.ref(!1);let d=null;const s={},a=l==="dialog"&&G(e);function b(h){if(h===!0){C(s),v.value=!0;return}v.value=!1,r.value===!1&&(a===!1&&d===null&&(d=K(!1,l)),r.value=!0,u.portalProxyList.push(e.proxy),L(s))}function c(h){if(v.value=!1,h!==!0)return;C(s),r.value=!1;const w=u.portalProxyList.indexOf(e.proxy);w!==-1&&u.portalProxyList.splice(w,1),d!==null&&(U(d),d=null)}return i.onUnmounted(()=>{c(!0)}),e.proxy.__qPortal=!0,$.injectProp(e.proxy,"contentEl",()=>t.value),{showPortal:b,hidePortal:c,portalIsActive:r,portalIsAccessible:v,renderPortal:()=>a===!0?o():r.value===!0?[i.h(i.Teleport,{to:d},i.h(A,o))]:void 0}}const B={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function _(e,t=()=>{},o=()=>{}){return{transitionProps:i.computed(()=>{const l=`q-transition--${e.transitionShow||t()}`,r=`q-transition--${e.transitionHide||o()}`;return{appear:!0,enterFromClass:`${l}-enter-from`,enterActiveClass:`${l}-enter-active`,enterToClass:`${l}-enter-to`,leaveFromClass:`${r}-leave-from`,leaveActiveClass:`${r}-leave-active`,leaveToClass:`${r}-leave-to`}}),transitionStyle:i.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function j(){let e;const t=i.getCurrentInstance();function o(){e=void 0}return i.onDeactivated(o),i.onBeforeUnmount(o),{removeTick:o,registerTick(l){e=l,i.nextTick(()=>{e===l&&(u.vmIsDestroyed(t)===!1&&e(),e=void 0)})}}}function z(){let e=null;const t=i.getCurrentInstance();function o(){e!==null&&(clearTimeout(e),e=null)}return i.onDeactivated(o),i.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(l,r){o(),u.vmIsDestroyed(t)===!1&&(e=setTimeout(()=>{e=null,l()},r))}}}const X=[Element,String],Y=[null,document,document.body,document.scrollingElement,document.documentElement];function J(e,t){let o=u.getElement(t);if(o===void 0){if(e==null)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return Y.includes(o)?window:o}function R(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function Z(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let T;function ee(){if(T!==void 0)return T;const e=document.createElement("p"),t=document.createElement("div");u.css(e,{width:"100%",height:"200px"}),u.css(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let l=e.offsetWidth;return o===l&&(l=t.clientWidth),t.remove(),T=o-l,T}function te(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const p=[];let g;function oe(e){g=e.keyCode===27}function ne(){g===!0&&(g=!1)}function le(e){g===!0&&(g=!1,u.isKeyCode(e,27)===!0&&p[p.length-1](e))}function D(e){window[e]("keydown",oe),window[e]("blur",ne),window[e]("keyup",le),g=!1}function ie(e){$.client.is.desktop===!0&&(p.push(e),p.length===1&&D("addEventListener"))}function re(e){const t=p.indexOf(e);t!==-1&&(p.splice(t,1),p.length===0&&D("removeEventListener"))}exports.addEscapeKey=ie;exports.addFocusFn=M;exports.getHorizontalScrollPosition=Z;exports.getScrollTarget=J;exports.getScrollbarWidth=ee;exports.getVerticalScrollPosition=R;exports.hasScrollbar=te;exports.removeEscapeKey=re;exports.removeFocusFn=q;exports.scrollTargetProp=X;exports.useModelToggle=W;exports.useModelToggleEmits=N;exports.useModelToggleProps=H;exports.usePortal=Q;exports.useTick=j;exports.useTimeout=z;exports.useTransition=_;exports.useTransitionProps=B;
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue");const Oe=({app:e})=>{const o=e.config.globalProperties.$q;o.iconMapFn=n=>{if(n.startsWith("icon-kl:"))return{cls:`icon-kl icon-kl-${n.slice(8)}`}}},G={PRIMARY:"primary",INFO:"info"},w={SM:"sm",MD:"md",LG:"lg",XL:"xl"},De={[w.SM]:"3px 9px",[w.MD]:"5px 12px",[w.LG]:"6px 15px",[w.XL]:"9px 20px"},ne={xs:18,sm:24,md:32,lg:38,xl:46},Q={size:String};function U(e,o=ne){return t.computed(()=>e.size!==void 0?{fontSize:e.size in o?`${o[e.size]}px`:e.size}:null)}function N(e){return t.markRaw(t.defineComponent(e))}function he(e){return t.markRaw(e)}function oe(e,o){return e!==void 0&&e()||o}function je(e,o){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return o}function A(e,o){return e!==void 0?o.concat(e()):o}function xe(e,o){return e===void 0?o:o!==void 0?o.concat(e()):e()}function Fe(e,o,n,l,i,r){o.key=l+i;const a=t.h(e,o,n);return i===!0?t.withDirectives(a,r()):a}const ie="0 0 24 24",ee=e=>e,te=e=>`ionicons ${e}`,be={"mdi-":e=>`mdi ${e}`,"icon-":ee,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":te,"ion-ios":te,"ion-logo":te,"iconfont ":ee,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":ee},ke={o_:"-outlined",r_:"-round",s_:"-sharp"},ye={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Ke=new RegExp("^("+Object.keys(be).join("|")+")"),Qe=new RegExp("^("+Object.keys(ke).join("|")+")"),se=new RegExp("^("+Object.keys(ye).join("|")+")"),Ue=/^[Mm]\s?[-+]?\.?\d/,He=/^img:/,We=/^svguse:/,Xe=/^ion-/,Ye=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,Y=N({name:"QIcon",props:{...Q,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:o}){const{proxy:{$q:n}}=t.getCurrentInstance(),l=U(e),i=t.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),r=t.computed(()=>{let a,s=e.name;if(s==="none"||!s)return{none:!0};if(n.iconMapFn!==null){const f=n.iconMapFn(s);if(f!==void 0)if(f.icon!==void 0){if(s=f.icon,s==="none"||!s)return{none:!0}}else return{cls:f.cls,content:f.content!==void 0?f.content:" "}}if(Ue.test(s)===!0){const[f,_=ie]=s.split("|");return{svg:!0,viewBox:_,nodes:f.split("&&").map(c=>{const[b,u,p]=c.split("@@");return t.h("path",{style:u,d:b,transform:p})})}}if(He.test(s)===!0)return{img:!0,src:s.substring(4)};if(We.test(s)===!0){const[f,_=ie]=s.split("|");return{svguse:!0,src:f.substring(7),viewBox:_}}let y=" ";const B=s.match(Ke);if(B!==null)a=be[B[1]](s);else if(Ye.test(s)===!0)a=s;else if(Xe.test(s)===!0)a=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(se.test(s)===!0){a="notranslate material-symbols";const f=s.match(se);f!==null&&(s=s.substring(6),a+=ye[f[1]]),y=s}else{a="notranslate material-icons";const f=s.match(Qe);f!==null&&(s=s.substring(2),a+=ke[f[1]]),y=s}return{cls:a,content:y}});return()=>{const a={class:i.value,style:l.value,"aria-hidden":"true"};return r.value.none===!0?t.h(e.tag,a,oe(o.default)):r.value.img===!0?t.h(e.tag,a,A(o.default,[t.h("img",{src:r.value.src})])):r.value.svg===!0?t.h(e.tag,a,A(o.default,[t.h("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):r.value.svguse===!0?t.h(e.tag,a,A(o.default,[t.h("svg",{viewBox:r.value.viewBox},[t.h("use",{"xlink:href":r.value.src})])])):(r.value.cls!==void 0&&(a.class+=" "+r.value.cls),t.h(e.tag,a,A(o.default,[r.value.content])))}}}),Ge={size:{type:[String,Number],default:"1em"},color:String};function Ze(e){return{cSize:t.computed(()=>e.size in ne?`${ne[e.size]}px`:e.size),classes:t.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const le=N({name:"QSpinner",props:{...Ge,thickness:{type:Number,default:5}},setup(e){const{cSize:o,classes:n}=Ze(e);return()=>t.h("svg",{class:n.value+" q-spinner-mat",width:o.value,height:o.value,viewBox:"25 25 50 50"},[t.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function _e(e,o){const n=e.style;for(const l in o)n[l]=o[l]}function Je(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const o=t.unref(e);if(o)return o.$el||o}function et(e,o){if(e==null||e.contains(o)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(o))return!0;return!1}const H={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(H,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function tt(){}function Be(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function nt(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const o=[];let n=e.target;for(;n;){if(o.push(n),n.tagName==="HTML")return o.push(document),o.push(window),o;n=n.parentElement}}function ae(e){e.stopPropagation()}function Ce(e){e.cancelable!==!1&&e.preventDefault()}function z(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function $e(e,o,n){const l=`__q_${o}_evt`;e[l]=e[l]!==void 0?e[l].concat(n):n,n.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],H[i[3]])})}function qe(e,o){const n=`__q_${o}_evt`;e[n]!==void 0&&(e[n].forEach(l=>{l[0].removeEventListener(l[1],e[l[2]],H[l[3]])}),e[n]=void 0)}function Ee(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function F(e,o){return Ee(e)===!0?!1:[].concat(o).includes(e.keyCode)}function ot(e,o=250){let n=!1,l;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},o),l=e.apply(this,arguments)),l}}function ue(e,o,n,l){n.modifiers.stop===!0&&ae(e);const i=n.modifiers.color;let r=n.modifiers.center;r=r===!0||l===!0;const a=document.createElement("span"),s=document.createElement("span"),y=Be(e),{left:B,top:f,width:_,height:c}=o.getBoundingClientRect(),b=Math.sqrt(_*_+c*c),u=b/2,p=`${(_-b)/2}px`,d=r?p:`${y.left-B-u}px`,g=`${(c-b)/2}px`,k=r?g:`${y.top-f-u}px`;s.className="q-ripple__inner",_e(s,{height:`${b}px`,width:`${b}px`,transform:`translate3d(${d},${k},0) scale3d(.2,.2,1)`,opacity:0}),a.className=`q-ripple${i?" text-"+i:""}`,a.setAttribute("dir","ltr"),a.appendChild(s),o.appendChild(a);const v=()=>{a.remove(),clearTimeout($)};n.abort.push(v);let $=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${p},${g},0) scale3d(1,1,1)`,s.style.opacity=.2,$=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,$=setTimeout(()=>{a.remove(),n.abort.splice(n.abort.indexOf(v),1)},275)},250)},50)}function ce(e,{modifiers:o,value:n,arg:l}){const i=Object.assign({},e.cfg.ripple,o,n);e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||l,keyCodes:[].concat(i.keyCodes||13)}}const Se=he({name:"ripple",beforeMount(e,o){const n=o.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const l={cfg:n,enabled:o.value!==!1,modifiers:{},abort:[],start(i){l.enabled===!0&&i.qSkipRipple!==!0&&i.type===(l.modifiers.early===!0?"pointerdown":"click")&&ue(i,e,l,i.qKeyEvent===!0)},keystart:ot(i=>{l.enabled===!0&&i.qSkipRipple!==!0&&F(i,l.modifiers.keyCodes)===!0&&i.type===`key${l.modifiers.early===!0?"down":"up"}`&&ue(i,e,l,!0)},300)};ce(l,o),e.__qripple=l,$e(l,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,o){if(o.oldValue!==o.value){const n=e.__qripple;n!==void 0&&(n.enabled=o.value!==!1,n.enabled===!0&&Object(o.value)===o.value&&ce(n,o))}},beforeUnmount(e){const o=e.__qripple;o!==void 0&&(o.abort.forEach(n=>{n()}),qe(o,"main"),delete e._qripple)}}),we={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},lt=Object.keys(we),at={align:{type:String,validator:e=>lt.includes(e)}};function rt(e){return t.computed(()=>{const o=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${we[o]}`})}function W(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:o}=e.$;for(;Object(o)===o;){if(Object(o.proxy)===o.proxy)return o.proxy;o=o.parent}}function Ve(e){return e.appContext.config.globalProperties.$router!==void 0}function it(e){return e.isUnmounted===!0||e.isDeactivated===!0}function de(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function me(e,o){return(e.aliasOf||e)===(o.aliasOf||o)}function st(e,o){for(const n in o){const l=o[n],i=e[n];if(typeof l=="string"){if(l!==i)return!1}else if(Array.isArray(i)===!1||i.length!==l.length||l.some((r,a)=>r!==i[a]))return!1}return!0}function fe(e,o){return Array.isArray(o)===!0?e.length===o.length&&e.every((n,l)=>n===o[l]):e.length===1&&e[0]===o}function ut(e,o){return Array.isArray(e)===!0?fe(e,o):Array.isArray(o)===!0?fe(o,e):e===o}function ct(e,o){if(Object.keys(e).length!==Object.keys(o).length)return!1;for(const n in e)if(ut(e[n],o[n])===!1)return!1;return!0}const Re={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},dt={...Re,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Pe({fallbackTag:e,useDisableForRouterLinkProps:o=!0}={}){const n=t.getCurrentInstance(),{props:l,proxy:i,emit:r}=n,a=Ve(n),s=t.computed(()=>l.disable!==!0&&l.href!==void 0),y=o===!0?t.computed(()=>a===!0&&l.disable!==!0&&s.value!==!0&&l.to!==void 0&&l.to!==null&&l.to!==""):t.computed(()=>a===!0&&s.value!==!0&&l.to!==void 0&&l.to!==null&&l.to!==""),B=t.computed(()=>y.value===!0?k(l.to):null),f=t.computed(()=>B.value!==null),_=t.computed(()=>s.value===!0||f.value===!0),c=t.computed(()=>l.type==="a"||_.value===!0?"a":l.tag||e||"div"),b=t.computed(()=>s.value===!0?{href:l.href,target:l.target}:f.value===!0?{href:B.value.href,target:l.target}:{}),u=t.computed(()=>{if(f.value===!1)return-1;const{matched:C}=B.value,{length:E}=C,S=C[E-1];if(S===void 0)return-1;const M=i.$route.matched;if(M.length===0)return-1;const L=M.findIndex(me.bind(null,S));if(L!==-1)return L;const O=de(C[E-2]);return E>1&&de(S)===O&&M[M.length-1].path!==O?M.findIndex(me.bind(null,C[E-2])):L}),p=t.computed(()=>f.value===!0&&u.value!==-1&&st(i.$route.params,B.value.params)),d=t.computed(()=>p.value===!0&&u.value===i.$route.matched.length-1&&ct(i.$route.params,B.value.params)),g=t.computed(()=>f.value===!0?d.value===!0?` ${l.exactActiveClass} ${l.activeClass}`:l.exact===!0?"":p.value===!0?` ${l.activeClass}`:"":"");function k(C){try{return i.$router.resolve(C)}catch{}return null}function v(C,{returnRouterError:E,to:S=l.to,replace:M=l.replace}={}){if(l.disable===!0)return C.preventDefault(),Promise.resolve(!1);if(C.metaKey||C.altKey||C.ctrlKey||C.shiftKey||C.button!==void 0&&C.button!==0||l.target==="_blank")return Promise.resolve(!1);C.preventDefault();const L=i.$router[M===!0?"replace":"push"](S);return E===!0?L:L.then(()=>{}).catch(()=>{})}function $(C){if(f.value===!0){const E=S=>v(C,S);r("click",C,E),C.defaultPrevented!==!0&&E()}else r("click",C)}return{hasRouterLink:f,hasHrefLink:s,hasLink:_,linkTag:c,resolvedLink:B,linkIsActive:p,linkIsExactActive:d,linkClass:g,linkAttrs:b,getLink:k,navigateToRouterLink:v,navigateOnClick:$}}const pe={none:0,xs:4,sm:8,md:16,lg:24,xl:32},mt={xs:8,sm:10,md:14,lg:20,xl:24},ft=["button","submit","reset"],pt=/[^\s]\/[^\s]/,vt=["flat","outline","push","unelevated"];function Me(e,o){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":o}function gt(e){const o=Me(e);return o!==void 0?{[o]:!0}:{}}const Le={...Q,...Re,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...vt.reduce((e,o)=>(e[o]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...at.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},ht={...Le,round:Boolean};function bt(e){const o=U(e,mt),n=rt(e),{hasRouterLink:l,hasLink:i,linkTag:r,linkAttrs:a,navigateOnClick:s}=Pe({fallbackTag:"button"}),y=t.computed(()=>{const d=e.fab===!1&&e.fabMini===!1?o.value:{};return e.padding!==void 0?Object.assign({},d,{padding:e.padding.split(/\s+/).map(g=>g in pe?pe[g]+"px":g).join(" "),minWidth:"0",minHeight:"0"}):d}),B=t.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),f=t.computed(()=>e.disable!==!0&&e.loading!==!0),_=t.computed(()=>f.value===!0?e.tabindex||0:-1),c=t.computed(()=>Me(e,"standard")),b=t.computed(()=>{const d={tabindex:_.value};return i.value===!0?Object.assign(d,a.value):ft.includes(e.type)===!0&&(d.type=e.type),r.value==="a"?(e.disable===!0?d["aria-disabled"]="true":d.href===void 0&&(d.role="button"),l.value!==!0&&pt.test(e.type)===!0&&(d.type=e.type)):e.disable===!0&&(d.disabled="",d["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(d,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),d}),u=t.computed(()=>{let d;e.color!==void 0?e.flat===!0||e.outline===!0?d=`text-${e.textColor||e.color}`:d=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(d=`text-${e.textColor}`);const g=e.round===!0?"round":`rectangle${B.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${c.value} q-btn--${g}`+(d!==void 0?" "+d:"")+(f.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),p=t.computed(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:u,style:y,innerClasses:p,attributes:b,hasLink:i,linkTag:r,navigateOnClick:s,isActionable:f}}const{passiveCapture:P}=H;let D=null,j=null,x=null;const ze=N({name:"QBtn",props:{...ht,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:o,emit:n}){const{proxy:l}=t.getCurrentInstance(),{classes:i,style:r,innerClasses:a,attributes:s,hasLink:y,linkTag:B,navigateOnClick:f,isActionable:_}=bt(e),c=t.ref(null),b=t.ref(null);let u=null,p,d=null;const g=t.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),k=t.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:y.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),v=t.computed(()=>({center:e.round})),$=t.computed(()=>{const m=Math.max(0,Math.min(100,e.percentage));return m>0?{transition:"transform 0.6s",transform:`translateX(${m-100}%)`}:{}}),C=t.computed(()=>{if(e.loading===!0)return{onMousedown:V,onTouchstart:V,onClick:V,onKeydown:V,onKeyup:V};if(_.value===!0){const m={onClick:S,onKeydown:M,onMousedown:O};if(l.$q.platform.has.touch===!0){const q=e.onTouchstart!==void 0?"":"Passive";m[`onTouchstart${q}`]=L}return m}return{onClick:z}}),E=t.computed(()=>({ref:c,class:"q-btn q-btn-item non-selectable no-outline "+i.value,style:r.value,...s.value,...C.value}));function S(m){if(c.value!==null){if(m!==void 0){if(m.defaultPrevented===!0)return;const q=document.activeElement;if(e.type==="submit"&&q!==document.body&&c.value.contains(q)===!1&&q.contains(c.value)===!1){m.qAvoidFocus!==!0&&c.value.focus();const T=()=>{var K;document.removeEventListener("keydown",z,!0),document.removeEventListener("keyup",T,P),(K=c.value)==null||K.removeEventListener("blur",T,P)};document.addEventListener("keydown",z,!0),document.addEventListener("keyup",T,P),c.value.addEventListener("blur",T,P)}}f(m)}}function M(m){c.value!==null&&(n("keydown",m),F(m,[13,32])===!0&&j!==c.value&&(j!==null&&h(),m.defaultPrevented!==!0&&(m.qAvoidFocus!==!0&&c.value.focus(),j=c.value,c.value.classList.add("q-btn--active"),document.addEventListener("keyup",R,!0),c.value.addEventListener("blur",R,P)),z(m)))}function L(m){c.value!==null&&(n("touchstart",m),m.defaultPrevented!==!0&&(D!==c.value&&(D!==null&&h(),D=c.value,u=m.target,u.addEventListener("touchcancel",R,P),u.addEventListener("touchend",R,P)),p=!0,d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,p=!1},200)))}function O(m){c.value!==null&&(m.qSkipRipple=p===!0,n("mousedown",m),m.defaultPrevented!==!0&&x!==c.value&&(x!==null&&h(),x=c.value,c.value.classList.add("q-btn--active"),document.addEventListener("mouseup",R,P)))}function R(m){if(c.value!==null&&!((m==null?void 0:m.type)==="blur"&&document.activeElement===c.value)){if((m==null?void 0:m.type)==="keyup"){if(j===c.value&&F(m,[13,32])===!0){const q=new MouseEvent("click",m);q.qKeyEvent=!0,m.defaultPrevented===!0&&Ce(q),m.cancelBubble===!0&&ae(q),c.value.dispatchEvent(q),z(m),m.qKeyEvent=!0}n("keyup",m)}h()}}function h(m){var T,K;const q=b.value;m!==!0&&(D===c.value||x===c.value)&&q!==null&&q!==document.activeElement&&(q.setAttribute("tabindex",-1),q.focus()),D===c.value&&(u!==null&&(u.removeEventListener("touchcancel",R,P),u.removeEventListener("touchend",R,P)),D=u=null),x===c.value&&(document.removeEventListener("mouseup",R,P),x=null),j===c.value&&(document.removeEventListener("keyup",R,!0),(T=c.value)==null||T.removeEventListener("blur",R,P),j=null),(K=c.value)==null||K.classList.remove("q-btn--active")}function V(m){z(m),m.qSkipRipple=!0}return t.onBeforeUnmount(()=>{h(!0)}),Object.assign(l,{click:m=>{_.value===!0&&S(m)}}),()=>{let m=[];e.icon!==void 0&&m.push(t.h(Y,{name:e.icon,left:e.stack!==!0&&g.value===!0,role:"img"})),g.value===!0&&m.push(t.h("span",{class:"block"},[e.label])),m=A(o.default,m),e.iconRight!==void 0&&e.round===!1&&m.push(t.h(Y,{name:e.iconRight,right:e.stack!==!0&&g.value===!0,role:"img"}));const q=[t.h("span",{class:"q-focus-helper",ref:b})];return e.loading===!0&&e.percentage!==void 0&&q.push(t.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[t.h("span",{class:"q-btn__progress-indicator fit block",style:$.value})])),q.push(t.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+a.value},m)),e.loading!==null&&q.push(t.h(t.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[t.h("span",{key:"loading",class:"absolute-full flex flex-center"},o.loading!==void 0?o.loading():[t.h(le)])]:null)),t.withDirectives(t.h(B.value,E.value,q),[[Se,k.value,void 0,v.value]])}}}),kt=t.defineComponent({__name:"AppButton",props:{size:{default:w.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:G.PRIMARY},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{},download:{}},emits:["click"],setup(e){const o=e,n=t.computed(()=>["app-btn",{"app-btn_default":!o.transparent&&!o.flat,"app-btn_trans":o.transparent,"app-btn_flat":o.flat,"app-btn_rounded":o.rounded,"app-btn_icon-left":o.iconLeft,"app-btn_icon-right":o.iconRight,"app-btn_icon-middle":o.iconMiddle},`app-btn_${o.size}`,`app-btn_${o.color}`]);return(l,i)=>(t.openBlock(),t.createBlock(t.unref(ze),{"no-caps":"",unelevated:"",class:t.normalizeClass(n.value),padding:t.unref(De)[l.size||t.unref(w).MD],loading:l.loading,disable:l.disabled||void 0,to:l.to,href:l.href,target:l.target,type:l.submit?"submit":void 0,"aria-label":l.ariaLabel,download:l.download,onClick:i[0]||(i[0]=r=>l.$emit("click",r))},{default:t.withCtx(()=>[l.iconLeft||l.iconMiddle?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(["icon-kl",l.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${l.iconLeft||l.iconMiddle}`,l.transparent||l.flat?`text-${l.color}`:"text-secondary"])},null,2)):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"default",{},void 0,!0),l.label?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(l.label),1)],64)):t.createCommentVNode("",!0),l.iconRight?(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass(["icon-kl","icon-kl_right",`icon-kl-${l.iconRight}`,l.transparent?`text-${l.color}`:"text-secondary"])},null,2)):t.createCommentVNode("",!0)]),_:3},8,["class","padding","loading","disable","to","href","target","type","aria-label","download"]))}}),I=(e,o)=>{const n=e.__vccOpts||e;for(const[l,i]of o)n[l]=i;return n},yt=I(kt,[["__scopeId","data-v-c9951ab6"]]),_t=t.defineComponent({__name:"CloseButton",props:{size:{default:w.MD}},setup(e){const o=e,n=t.computed(()=>["close-btn",`close-btn_${o.size}`]);return(l,i)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(n.value),type:"button","aria-label":"Close"},[...i[0]||(i[0]=[t.createElementVNode("i",{class:"icon-kl icon-kl-close"},null,-1)])],2))}}),Bt=I(_t,[["__scopeId","data-v-7cc56d51"]]),Ct={key:0,class:"app-toggle__label app-toggle__label_left"},$t={class:"app-toggle__container"},qt=["checked","disabled"],Et={class:"app-toggle__thumb"},St={key:1,class:"app-toggle__label"},wt=t.defineComponent({__name:"AppToggle",props:{modelValue:{type:Boolean},size:{default:w.MD},label:{},disabled:{type:Boolean},color:{default:G.PRIMARY},iconColor:{},icon:{},iconActive:{},labelLeft:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:o}){const n=e,l=o,i=t.computed({get:()=>n.modelValue,set:a=>{l("update:modelValue",a)}}),r=t.computed(()=>["app-toggle",{"app-toggle_active":i.value,"app-toggle_disabled":n.disabled},`app-toggle_${n.size}`,`app-toggle_${n.color}`]);return(a,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.value),onClick:s[1]||(s[1]=t.withModifiers(()=>{},["stop"]))},[a.label&&a.labelLeft?(t.openBlock(),t.createElementBlock("span",Ct,t.toDisplayString(a.label),1)):t.createCommentVNode("",!0),t.createElementVNode("label",$t,[t.createElementVNode("input",{type:"checkbox",checked:i.value,onChange:s[0]||(s[0]=y=>i.value=!i.value),disabled:a.disabled,class:"app-toggle__input"},null,40,qt),t.createElementVNode("span",{class:t.normalizeClass(["app-toggle__slider",i.value?`bg-${a.color}`:""])},[t.createElementVNode("span",Et,[a.icon&&!a.modelValue?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(["icon-kl",`icon-kl-${a.icon}`,"app-toggle__icon"])},null,2)):t.createCommentVNode("",!0),a.modelValue&&(a.iconActive||a.icon)?(t.openBlock(),t.createElementBlock("i",{key:1,class:t.normalizeClass(["icon-kl",`icon-kl-${a.iconActive||a.icon}`,"app-toggle__icon",i.value?`text-${a.iconColor}`:""])},null,2)):t.createCommentVNode("",!0)])],2),t.renderSlot(a.$slots,"default",{},void 0,!0)]),a.label&&!a.labelLeft?(t.openBlock(),t.createElementBlock("span",St,t.toDisplayString(a.label),1)):t.createCommentVNode("",!0)],2))}}),re=I(wt,[["__scopeId","data-v-ba49356e"]]),Z={dark:{type:Boolean,default:null}};function J(e,o){return t.computed(()=>e.dark===null?o.dark.isActive:e.dark)}function Vt(e,o){const n=t.ref(null),l=t.computed(()=>e.disable===!0?null:t.h("span",{ref:n,class:"no-outline",tabindex:-1}));function i(r){const a=o.value;(r==null?void 0:r.qAvoidFocus)!==!0&&((r==null?void 0:r.type.indexOf("key"))===0?document.activeElement!==a&&(a==null?void 0:a.contains(document.activeElement))===!0&&a.focus():n.value!==null&&(r===void 0||(a==null?void 0:a.contains(r.target))===!0)&&n.value.focus())}return{refocusTargetEl:l,refocusTarget:i}}const Ie={name:String};function Rt(e={}){return(o,n,l)=>{o[n](t.h("input",{class:"hidden"+(l||""),...e.value}))}}function Pt(e){return t.computed(()=>e.name||e.for)}const Mt={xs:30,sm:35,md:40,lg:50,xl:60},Lt={...Z,...Q,...Ie,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},zt=["update:modelValue"];function It(e,o){const{props:n,slots:l,emit:i,proxy:r}=t.getCurrentInstance(),{$q:a}=r,s=J(n,a),y=t.ref(null),{refocusTargetEl:B,refocusTarget:f}=Vt(n,y),_=U(n,Mt),c=t.computed(()=>n.val!==void 0&&Array.isArray(n.modelValue)),b=t.computed(()=>{const h=t.toRaw(n.val);return c.value===!0?n.modelValue.findIndex(V=>t.toRaw(V)===h):-1}),u=t.computed(()=>c.value===!0?b.value!==-1:t.toRaw(n.modelValue)===t.toRaw(n.trueValue)),p=t.computed(()=>c.value===!0?b.value===-1:t.toRaw(n.modelValue)===t.toRaw(n.falseValue)),d=t.computed(()=>u.value===!1&&p.value===!1),g=t.computed(()=>n.disable===!0?-1:n.tabindex||0),k=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?" disabled":"")+(s.value===!0?` q-${e}--dark`:"")+(n.dense===!0?` q-${e}--dense`:"")+(n.leftLabel===!0?" reverse":"")),v=t.computed(()=>{const h=u.value===!0?"truthy":p.value===!0?"falsy":"indet",V=n.color!==void 0&&(n.keepColor===!0||p.value!==!0)?` text-${n.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${h}${V}`}),$=t.computed(()=>{const h={type:"checkbox"};return n.name!==void 0&&Object.assign(h,{".checked":u.value,"^checked":u.value===!0?"checked":void 0,name:n.name,value:c.value===!0?n.val:n.trueValue}),h}),C=Rt($),E=t.computed(()=>{const h={tabindex:g.value,role:"checkbox","aria-label":n.label,"aria-checked":d.value===!0?"mixed":u.value===!0?"true":"false"};return n.disable===!0&&(h["aria-disabled"]="true"),h});function S(h){h!==void 0&&(z(h),f(h)),n.disable!==!0&&i("update:modelValue",M(),h)}function M(){if(c.value===!0){if(u.value===!0){const h=n.modelValue.slice();return h.splice(b.value,1),h}return n.modelValue.concat([n.val])}if(u.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(p.value===!0){if(n.toggleOrder==="ft"||n.toggleIndeterminate===!1)return n.trueValue}else return n.toggleOrder!=="ft"?n.trueValue:n.falseValue;return n.indeterminateValue}function L(h){(h.keyCode===13||h.keyCode===32)&&z(h)}function O(h){(h.keyCode===13||h.keyCode===32)&&S(h)}const R=o(u,d);return Object.assign(r,{toggle:S}),()=>{const h=R();n.disable!==!0&&C(h,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const V=[t.h("div",{class:v.value,style:_.value,"aria-hidden":"true"},h)];B.value!==null&&V.push(B.value);const m=n.label!==void 0?A(l.default,[n.label]):oe(l.default);return m!==void 0&&V.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},m)),t.h("div",{ref:y,class:k.value,...E.value,onClick:S,onKeydown:L,onKeyup:O},V)}}const At=()=>t.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[t.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[t.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),t.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),Tt=N({name:"QCheckbox",props:Lt,emits:zt,setup(e){const o=At();function n(l,i){const r=t.computed(()=>(l.value===!0?e.checkedIcon:i.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>r.value!==null?[t.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t.h(Y,{class:"q-checkbox__icon",name:r.value})])]:[o]}return It("checkbox",n)}}),Ae=[];function Nt(e){return Ae.find(o=>o.contentEl!==null&&o.contentEl.contains(e))}function Te(e,o){do{if(e.$options.name==="QMenu"){if(e.hide(o),e.$props.separateClosePopup===!0)return W(e)}else if(e.__qPortal===!0){const n=W(e);return(n==null?void 0:n.$options.name)==="QPopupProxy"?(e.hide(o),n):e}e=W(e)}while(e!=null)}function Ot(e,o,n){for(;n!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(n--,e.$options.name==="QMenu"){e=Te(e,o);continue}e.hide(o)}e=W(e)}}function ve(e){if(e===!1)return 0;if(e===!0||e===void 0)return 1;const o=parseInt(e,10);return isNaN(o)?0:o}const Dt=he({name:"close-popup",beforeMount(e,{value:o}){const n={depth:ve(o),handler(l){n.depth!==0&&setTimeout(()=>{const i=Nt(e);i!==void 0&&Ot(i,l,n.depth)})},handlerKey(l){F(l,13)===!0&&n.handler(l)}};e.__qclosepopup=n,e.addEventListener("click",n.handler),e.addEventListener("keyup",n.handlerKey)},updated(e,{value:o,oldValue:n}){o!==n&&(e.__qclosepopup.depth=ve(o))},beforeUnmount(e){const o=e.__qclosepopup;e.removeEventListener("click",o.handler),e.removeEventListener("keyup",o.handlerKey),delete e.__qclosepopup}}),jt={key:0,class:"menu-item__loading"},xt={key:0,class:"menu-item__checked"},Ft={key:2,class:"menu-item__icon"},Kt={class:"menu-item__label"},Qt={key:3,class:"menu-item__icon-right icon-kl icon-kl-arrow-right"},Ut=t.defineComponent({__name:"PopupItem",props:{label:{},icon:{},iconSize:{},color:{},iconRight:{},arrow:{type:Boolean},toggle:{type:Boolean},checkbox:{type:Boolean},active:{type:Boolean},modelValue:{type:Boolean},persistent:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},gap:{type:Boolean},checked:{type:Boolean},isMobile:{type:Boolean}},emits:["update:modelValue","closePopup"],setup(e,{emit:o}){const n=e,l=o,i=()=>{n.disabled||(n.toggle||n.checkbox?l("update:modelValue",!n.modelValue):n.persistent||l("closePopup"))};return(r,a)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["menu-item",[{"menu-item_gap":r.gap},{"menu-item_disabled":r.disabled},{"menu-item_active":r.active},{"menu-item_mobile":r.isMobile}]]),onClick:i},[t.createElementVNode("div",{class:t.normalizeClass(["row items-center no-wrap",`text-${r.color?r.color:"dark"}`])},[r.loading?(t.openBlock(),t.createElementBlock("div",jt,[t.createVNode(t.unref(le),{size:"19px",color:r.color?r.color:"dark"},null,8,["color"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.checked?(t.openBlock(),t.createElementBlock("div",xt,[...a[3]||(a[3]=[t.createElementVNode("i",{class:"icon-kl icon-kl-check"},null,-1)])])):t.createCommentVNode("",!0),r.checkbox?(t.openBlock(),t.createBlock(Tt,{key:1,class:"menu-item__checkbox",size:"34px","model-value":r.modelValue,"onUpdate:modelValue":a[0]||(a[0]=s=>l("update:modelValue",s)),onClick:a[1]||(a[1]=t.withModifiers(()=>{},["stop"]))},null,8,["model-value"])):t.createCommentVNode("",!0),r.icon?(t.openBlock(),t.createElementBlock("div",Ft,[t.createElementVNode("i",{class:t.normalizeClass(`icon-kl icon-kl-${r.icon}`),style:t.normalizeStyle({fontSize:r.iconSize||"27px"})},null,6)])):t.createCommentVNode("",!0)],64)),t.createElementVNode("span",Kt,t.toDisplayString(r.label),1)],2),r.$slots.right?t.renderSlot(r.$slots,"right",{key:0},void 0,!0):r.toggle?(t.openBlock(),t.createBlock(re,{key:1,class:"menu-item__toggle","model-value":r.modelValue,disabled:r.disabled||r.loading,"onUpdate:modelValue":a[2]||(a[2]=s=>l("update:modelValue",s))},null,8,["model-value","disabled"])):r.iconRight?(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass(["menu-item__icon-right menu-item__icon-right_custom icon-kl",`icon-kl-${r.iconRight}`])},null,2)):r.arrow?(t.openBlock(),t.createElementBlock("i",Qt)):t.createCommentVNode("",!0)],2)),[[Dt,!r.toggle&&!r.checkbox&&!r.persistent&&!r.disabled]])}}),Ht=I(Ut,[["__scopeId","data-v-4b2a03b5"]]),Wt=t.defineComponent({__name:"AppIcon",props:{name:{},size:{},color:{}},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("i",{class:t.normalizeClass(["icon-kl",`icon-kl-${o.name}`,o.color?`text-${o.color}`:""]),style:t.normalizeStyle(o.size?`font-size: ${o.size}`:void 0)},null,6))}}),X=I(Wt,[["__scopeId","data-v-941765ee"]]),Xt={xs:2,sm:4,md:6,lg:10,xl:14};function ge(e,o,n){return{transform:o===!0?`translateX(${n.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const Yt=N({name:"QLinearProgress",props:{...Z,...Q,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:o}){const{proxy:n}=t.getCurrentInstance(),l=J(e,n.$q),i=U(e,Xt),r=t.computed(()=>e.indeterminate===!0||e.query===!0),a=t.computed(()=>e.reverse!==e.query),s=t.computed(()=>({...i.value!==null?i.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),y=t.computed(()=>"q-linear-progress"+(e.color!==void 0?` text-${e.color}`:"")+(e.reverse===!0||e.query===!0?" q-linear-progress--reverse":"")+(e.rounded===!0?" rounded-borders":"")),B=t.computed(()=>ge(e.buffer!==void 0?e.buffer:1,a.value,n.$q)),f=t.computed(()=>`with${e.instantFeedback===!0?"out":""}-transition`),_=t.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${f.value} q-linear-progress__track--${l.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),c=t.computed(()=>ge(r.value===!0?1:e.value,a.value,n.$q)),b=t.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${r.value===!0?"in":""}determinate`),u=t.computed(()=>({width:`${e.value*100}%`})),p=t.computed(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${f.value}`);return()=>{const d=[t.h("div",{class:_.value,style:B.value}),t.h("div",{class:b.value,style:c.value})];return e.stripe===!0&&r.value===!1&&d.push(t.h("div",{class:p.value,style:u.value})),t.h("div",{class:y.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},A(o.default,d))}}}),Gt={key:0,class:"code-field__label"},Zt={class:"code-field__inputs"},Jt=["onUpdate:modelValue","disabled","onInput","onKeydown","onPaste"],en=t.defineComponent({__name:"AppCodeInput",props:{length:{default:5},size:{default:w.MD},label:{},disabled:{type:Boolean},loading:{type:Boolean},autofocus:{type:Boolean},color:{}},emits:["update:modelValue","completed"],setup(e,{expose:o,emit:n}){const l=e,i=n,r=t.ref(Array(l.length).fill("")),a=t.ref([]),s=t.computed(()=>["code-field",{"code-field_disabled":l.disabled||l.loading},`code-field_${l.size}`,`code-field_${l.color}`]),y=t.computed(()=>{let u="";return l.size==w.SM&&(u+=`width: ${l.length*26+(l.length-1)*5}px`),l.size==w.MD&&(u+=`width: ${l.length*32+(l.length-1)*8}px`),l.size==w.LG&&(u+=`width: ${l.length*44+(l.length-1)*10}px`),u}),B=(u,p)=>{var k;const g=u.target.value;if(g.length===1)p<l.length-1&&a.value&&((k=a.value[p+1])==null||k.focus());else if(g.length>1){const v=g.slice(0,l.length-p).split("");v.forEach(($,C)=>{r.value[p+C]=$}),t.nextTick(()=>{var $;a.value&&(($=a.value[Math.min(p+v.length,l.length-1)])==null||$.focus())})}},f=u=>{var p;r.value[u]===""&&a.value&&u>0&&((p=a.value[u-1])==null||p.focus())},_=(u,p)=>{var k;u.preventDefault();const d=((k=u.clipboardData)==null?void 0:k.getData("text"))??"";if(!d)return;const g=d.slice(0,l.length-p).split("");g.forEach((v,$)=>{r.value[p+$]=v}),t.nextTick(()=>{var v;a.value&&((v=a.value[Math.min(p+g.length,l.length-1)])==null||v.focus())})};t.watch(r,u=>{const p=u.join("");c(p)},{deep:!0});const c=u=>{i("update:modelValue",u),u.length===l.length&&!u.includes(" ")&&i("completed",u)},b=u=>{u&&(r.value=u.split("").slice(0,l.length))};return t.onMounted(()=>{l.autofocus&&a.value&&a.value[0]&&a.value[0].focus()}),o({injectCode:b}),(u,p)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.value),style:t.normalizeStyle(y.value)},[u.label?(t.openBlock(),t.createElementBlock("label",Gt,t.toDisplayString(u.label),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Zt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.length,(d,g)=>t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:g,"onUpdate:modelValue":k=>r.value[g]=k,ref_for:!0,ref_key:"inputRefs",ref:a,type:"number",maxlength:"1",class:"code-field__input",disabled:u.disabled||u.loading,onInput:k=>B(k,g),onKeydown:t.withKeys(k=>f(g),["backspace"]),onPaste:k=>_(k,g)},null,40,Jt)),[[t.vModelText,r.value[g]]])),128))]),u.loading?(t.openBlock(),t.createBlock(Yt,{key:1,indeterminate:"",rounded:"",color:u.color,class:"code-field__loading"},null,8,["color"])):t.createCommentVNode("",!0)],6))}}),tn=I(en,[["__scopeId","data-v-4e11db87"]]),nn=["onClick","disabled"],on=t.defineComponent({__name:"AppSegment",props:t.mergeModels({options:{},disabled:{type:Boolean},size:{default:w.MD},color:{default:G.PRIMARY},glass:{type:Boolean},blur:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const o=t.useModel(e,"modelValue"),n=e,l=t.useTemplateRef("scroller"),i=t.useTemplateRef("content"),r=t.useTemplateRef("buttons"),a=t.ref(!1),s=t.ref(!1),y=t.ref({left:0,width:0}),B=t.computed(()=>["app-segment",{"app-segment_disabled":n.disabled,"app-segment_scrollable":s.value,"app-segment_glass":n.glass,"app-segment_blur":n.blur},`app-segment_${n.size}`,`app-segment_${n.color}`]),f=t.computed(()=>n.options.findIndex(d=>d.value===o.value)),_=t.computed(()=>({width:`${y.value.width}px`,transform:`translateX(${y.value.left}px)`,opacity:y.value.width?1:0}));function c(){var g;const d=(g=r.value)==null?void 0:g[f.value];y.value=d?{left:d.offsetLeft,width:d.offsetWidth}:{left:0,width:0},l.value&&(s.value=l.value.scrollWidth-l.value.clientWidth>1)}function b(d="smooth"){var k,v;const g=(k=r.value)==null?void 0:k[f.value];!g||!((v=l.value)!=null&&v.scrollTo)||l.value.scrollTo({left:g.offsetLeft+g.offsetWidth/2-l.value.clientWidth/2,behavior:d})}function u(d){n.disabled||(o.value=d,t.nextTick(()=>b()))}let p;return t.onMounted(async()=>{c(),await t.nextTick(),b("auto"),a.value=!0,typeof ResizeObserver<"u"&&l.value&&i.value&&(p=new ResizeObserver(c),p.observe(l.value),p.observe(i.value))}),t.onBeforeUnmount(()=>p==null?void 0:p.disconnect()),t.watch([f,s,()=>n.options,()=>n.size],()=>t.nextTick(c)),(d,g)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"scroller",ref:l,class:t.normalizeClass(B.value)},[t.createElementVNode("div",{ref_key:"content",ref:i,class:"app-segment__content"},[t.createElementVNode("div",{class:t.normalizeClass(["app-segment__thumb",{"app-segment__thumb_animated":a.value}]),style:t.normalizeStyle(_.value)},null,6),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.options,(k,v)=>(t.openBlock(),t.createElementBlock("button",{ref_for:!0,ref_key:"buttons",ref:r,key:v,class:t.normalizeClass(["app-segment__btn",{"app-segment__btn_active":o.value===k.value}]),onClick:$=>u(k.value),disabled:d.disabled},[t.renderSlot(d.$slots,"option",{option:k},()=>[t.createTextVNode(t.toDisplayString(k.label),1)],!0)],10,nn))),128))],512)],2))}}),ln=I(on,[["__scopeId","data-v-a34e690c"]]),an={},rn={class:"system-menu"};function sn(e,o){return t.openBlock(),t.createElementBlock("div",rn,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const un=I(an,[["render",sn],["__scopeId","data-v-5649b2f4"]]),Ne=N({name:"QItem",props:{...Z,...dt,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:o,emit:n}){const{proxy:{$q:l}}=t.getCurrentInstance(),i=J(e,l),{hasLink:r,linkAttrs:a,linkClass:s,linkTag:y,navigateOnClick:B}=Pe(),f=t.ref(null),_=t.ref(null),c=t.computed(()=>e.clickable===!0||r.value===!0||e.tag==="label"),b=t.computed(()=>e.disable!==!0&&c.value===!0),u=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(i.value===!0?" q-item--dark":"")+(r.value===!0&&e.active===null?s.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(b.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),p=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(l.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function d(v){b.value===!0&&(_.value!==null&&v.qAvoidFocus!==!0&&(v.qKeyEvent!==!0&&document.activeElement===f.value?_.value.focus():document.activeElement===_.value&&f.value.focus()),B(v))}function g(v){if(b.value===!0&&F(v,[13,32])===!0){z(v),v.qKeyEvent=!0;const $=new MouseEvent("click",v);$.qKeyEvent=!0,f.value.dispatchEvent($)}n("keyup",v)}function k(){const v=je(o.default,[]);return b.value===!0&&v.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:_})),v}return()=>{const v={ref:f,class:u.value,style:p.value,role:"listitem",onClick:d,onKeyup:g};return b.value===!0?(v.tabindex=e.tabindex||"0",Object.assign(v,a.value)):c.value===!0&&(v["aria-disabled"]="true"),t.h(y.value,v,k())}}}),cn={class:"menu-item__content"},dn={key:0,class:"menu-item__value"},mn=t.defineComponent({__name:"MenuItem",props:t.mergeModels({label:{},icon:{},iconRight:{},arrow:{type:Boolean},color:{},to:{},href:{},target:{},disabled:{type:Boolean},toggle:{type:Boolean},isMobile:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:t.mergeModels(["click"],["update:modelValue"]),setup(e,{emit:o}){const n=e,l=o,i=t.useModel(e,"modelValue"),r=async()=>{n.toggle&&(i.value=!i.value),l("click")};return(a,s)=>(t.openBlock(),t.createBlock(t.unref(Ne),{class:t.normalizeClass(["menu-item",{"menu-item_disabled":a.disabled,"menu-item_mobile":a.isMobile}]),to:a.to,href:a.href,target:a.target,disable:a.disabled,clickable:"",onClick:r},{default:t.withCtx(()=>[a.icon?(t.openBlock(),t.createBlock(t.unref(X),{key:0,name:a.icon.name,class:t.normalizeClass(["menu-item__icon",`bg-${a.icon.color}`])},null,8,["name","class"])):t.createCommentVNode("",!0),t.createElementVNode("div",cn,[t.createElementVNode("span",{class:t.normalizeClass(["app-menu-item__label",a.color?`text-${a.color}`:""])},[t.createTextVNode(t.toDisplayString(a.label)+" ",1),t.renderSlot(a.$slots,"default",{},void 0,!0)],2),a.$slots.value?(t.openBlock(),t.createElementBlock("span",dn,[t.renderSlot(a.$slots,"value",{},void 0,!0)])):t.createCommentVNode("",!0),a.toggle?(t.openBlock(),t.createBlock(t.unref(re),{key:1,modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=y=>i.value=y)},null,8,["modelValue"])):t.createCommentVNode("",!0),a.iconRight?(t.openBlock(),t.createBlock(t.unref(X),{key:2,class:"menu-item__icon-right",name:a.iconRight.name,color:a.iconRight.color},null,8,["name","color"])):t.createCommentVNode("",!0),a.arrow?(t.openBlock(),t.createBlock(t.unref(X),{key:3,class:"menu-item__icon-right menu-item__arrow",name:"arrow-right"})):t.createCommentVNode("",!0)])]),_:3},8,["class","to","href","target","disable"]))}}),fn=I(mn,[["__scopeId","data-v-b9907ab7"]]),pn=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppButtonCopy-66cFhDuo.cjs"))),vn=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./AppSelect-D0gQOyMy.cjs"))),gn=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DropdownButton-Cz1xTcUt.cjs"))),hn=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BottomSheet-CUWjgAeZ.cjs")));exports.AppButton=yt;exports.AppButtonCopy=pn;exports.AppCodeInput=tn;exports.AppIcon=X;exports.AppSegment=ln;exports.AppSelect=vn;exports.AppToggle=re;exports.BottomSheet=hn;exports.COLORS=G;exports.CloseButton=Bt;exports.DropdownButton=gn;exports.MenuItem=fn;exports.PopupItem=Ht;exports.QBtn=ze;exports.QIcon=Y;exports.QItem=Ne;exports.QSpinner=le;exports.Ripple=Se;exports.SIZES=w;exports.SystemMenu=un;exports._export_sfc=I;exports.addEvt=$e;exports.childHasFocus=et;exports.cleanEvt=qe;exports.closePortalMenus=Te;exports.createComponent=N;exports.css=_e;exports.getBtnDesignAttr=gt;exports.getElement=Je;exports.getEventPath=nt;exports.hDir=Fe;exports.hMergeSlot=A;exports.hMergeSlotSafely=xe;exports.hSlot=oe;exports.iconSet=Oe;exports.isKeyCode=F;exports.listenOpts=H;exports.nonRoundBtnProps=Le;exports.noop=tt;exports.portalProxyList=Ae;exports.position=Be;exports.prevent=Ce;exports.shouldIgnoreKey=Ee;exports.stop=ae;exports.stopAndPrevent=z;exports.useDark=J;exports.useDarkProps=Z;exports.useFormInputNameAttr=Pt;exports.useFormProps=Ie;exports.useSize=U;exports.useSizeProps=Q;exports.vmHasRouter=Ve;exports.vmIsDestroyed=it;