@validol4ik/uikit 0.7.8 → 0.7.10

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),l=require("./index-BfBnkGiX.cjs"),w=require("./QMenu-CcTpLiR7.cjs"),D={[l.SIZES.SM]:"3px 9px",[l.SIZES.MD]:"5px 12px",[l.SIZES.LG]:"6px 15px",[l.SIZES.XL]:"9px 20px"},q=l.createComponent({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(e,{slots:d}){const a=n.computed(()=>{const u=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(r=>e[r]===!0).map(r=>`q-btn-group--${r}`).join(" ");return`q-btn-group row no-wrap${u.length!==0?" "+u:""}`+(e.spread===!0?" q-btn-group--spread":" inline")});return()=>n.h("div",{class:a.value},l.hSlot(d.default))}}),M=Object.keys(l.nonRoundBtnProps);function I(e){return M.reduce((d,a)=>{const u=e[a];return u!==void 0&&(d[a]=u),d},{})}const A=l.createComponent({name:"QBtnDropdown",props:{...l.nonRoundBtnProps,...w.useTransitionProps,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,noRefocus:Boolean,noFocus:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean,toggleAriaLabel:String},emits:["update:modelValue","click","beforeShow","show","beforeHide","hide"],setup(e,{slots:d,emit:a}){const{proxy:u}=n.getCurrentInstance(),r=n.ref(e.modelValue),s=n.ref(null),c=w.useId(),f=n.computed(()=>{const o={"aria-expanded":r.value===!0?"true":"false","aria-haspopup":"true","aria-controls":c.value,"aria-label":e.toggleAriaLabel||u.$q.lang.label[r.value===!0?"collapse":"expand"](e.label)};return(e.disable===!0||e.split===!1&&e.disableMainBtn===!0||e.disableDropdown===!0)&&(o["aria-disabled"]="true"),o}),t=n.computed(()=>"q-btn-dropdown__arrow"+(r.value===!0&&e.noIconAnimation===!1?" rotate-180":"")+(e.split===!1?" q-btn-dropdown__arrow-container":"")),m=n.computed(()=>l.getBtnDesignAttr(e)),B=n.computed(()=>I(e));n.watch(()=>e.modelValue,o=>{var i;(i=s.value)==null||i[o?"show":"hide"]()}),n.watch(()=>e.split,b);function g(o){r.value=!0,a("beforeShow",o)}function S(o){a("show",o),a("update:modelValue",!0)}function p(o){r.value=!1,a("beforeHide",o)}function v(o){a("hide",o),a("update:modelValue",!1)}function C(o){a("click",o)}function y(o){l.stop(o),b(),a("click",o)}function k(o){var i;(i=s.value)==null||i.toggle(o)}function h(o){var i;(i=s.value)==null||i.show(o)}function b(o){var i;(i=s.value)==null||i.hide(o)}return Object.assign(u,{show:h,hide:b,toggle:k}),n.onMounted(()=>{e.modelValue===!0&&h()}),()=>{const o=[n.h(l.QIcon,{class:t.value,name:e.dropdownIcon||u.$q.iconSet.arrow.dropdown})];return e.disableDropdown!==!0&&o.push(n.h(w.QMenu,{ref:s,id:c.value,class:e.contentClass,style:e.contentStyle,cover:e.cover,fit:!0,persistent:e.persistent,noEscDismiss:e.noEscDismiss,noRouteDismiss:e.noRouteDismiss,autoClose:e.autoClose,noFocus:e.noFocus,noRefocus:e.noRefocus,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,separateClosePopup:!0,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:g,onShow:S,onBeforeHide:p,onHide:v},d.default)),e.split===!1?n.h(l.QBtn,{class:"q-btn-dropdown q-btn-dropdown--simple",...B.value,...f.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:C},{default:()=>l.hSlot(d.label,[]).concat(o),loading:d.loading}):n.h(q,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",rounded:e.rounded,square:e.square,...m.value,glossy:e.glossy,stretch:e.stretch},()=>[n.h(l.QBtn,{class:"q-btn-dropdown--current",...B.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:y},{default:d.label,loading:d.loading}),n.h(l.QBtn,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...f.value,...m.value,disable:e.disable===!0||e.disableDropdown===!0,rounded:e.rounded,color:e.color,textColor:e.textColor,dense:e.dense,size:e.size,padding:e.padding,ripple:e.ripple},()=>o)])}}}),L=n.defineComponent({__name:"DropdownButton",props:{size:{default:l.SIZES.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:l.COLORS.PRIMARY},iconLeft:{},iconMiddle:{},hideDropIcon:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},ariaLabel:{},label:{},menuOffset:{},menuAnchor:{},menuSelf:{},menuClass:{}},emits:["menuShown","menuHidden"],setup(e,{emit:d}){const a=e,u=d,r=n.ref(!1),s=n.computed(()=>["dropdown-btn",{"dropdown-btn_default":!a.transparent&&!a.flat,"dropdown-btn_trans":a.transparent,"dropdown-btn_flat":a.flat,"dropdown-btn_rounded":a.rounded,"dropdown-btn_icon-left":a.iconLeft,"dropdown-btn_icon-middle":a.iconMiddle},`dropdown-btn_${a.size}`,`dropdown-btn_${a.color}`]),c=()=>{r.value=!0,u("menuShown")},f=()=>{r.value=!1,u("menuHidden")};return(t,m)=>(n.openBlock(),n.createBlock(n.unref(A),{"no-caps":"",unelevated:"",class:n.normalizeClass(s.value),padding:n.unref(D)[t.size||n.unref(l.SIZES).MD],loading:t.loading,disable:t.disabled||void 0,"aria-label":t.ariaLabel,"menu-offset":t.menuOffset,"menu-anchor":t.menuAnchor,"menu-self":t.menuSelf,"content-class":["glass-menu dropdown-menu",t.menuClass],onBeforeShow:c,onBeforeHide:f},{label:n.withCtx(()=>[t.iconLeft||t.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",t.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${t.iconLeft||t.iconMiddle}`,t.transparent||t.flat?`text-${t.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),t.label?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(t.label),1)],64)):n.createCommentVNode("",!0),t.hideDropIcon?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["icon-kl","icon-kl-arrow-down",{"icon-kl-arrow-down_rotated":r.value},t.transparent?`text-${t.color}`:"text-secondary"])},null,2))]),default:n.withCtx(()=>[n.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["class","padding","loading","disable","aria-label","menu-offset","menu-anchor","menu-self","content-class"]))}}),E=l._export_sfc(L,[["__scopeId","data-v-f70155d0"]]);exports.default=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),l=require("./index-CbRV0UFS.cjs"),w=require("./QMenu-CjgKlmio.cjs"),D={[l.SIZES.SM]:"3px 9px",[l.SIZES.MD]:"5px 12px",[l.SIZES.LG]:"6px 15px",[l.SIZES.XL]:"9px 20px"},q=l.createComponent({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(e,{slots:d}){const a=n.computed(()=>{const u=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(r=>e[r]===!0).map(r=>`q-btn-group--${r}`).join(" ");return`q-btn-group row no-wrap${u.length!==0?" "+u:""}`+(e.spread===!0?" q-btn-group--spread":" inline")});return()=>n.h("div",{class:a.value},l.hSlot(d.default))}}),M=Object.keys(l.nonRoundBtnProps);function I(e){return M.reduce((d,a)=>{const u=e[a];return u!==void 0&&(d[a]=u),d},{})}const A=l.createComponent({name:"QBtnDropdown",props:{...l.nonRoundBtnProps,...w.useTransitionProps,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,noRefocus:Boolean,noFocus:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean,toggleAriaLabel:String},emits:["update:modelValue","click","beforeShow","show","beforeHide","hide"],setup(e,{slots:d,emit:a}){const{proxy:u}=n.getCurrentInstance(),r=n.ref(e.modelValue),s=n.ref(null),c=w.useId(),f=n.computed(()=>{const o={"aria-expanded":r.value===!0?"true":"false","aria-haspopup":"true","aria-controls":c.value,"aria-label":e.toggleAriaLabel||u.$q.lang.label[r.value===!0?"collapse":"expand"](e.label)};return(e.disable===!0||e.split===!1&&e.disableMainBtn===!0||e.disableDropdown===!0)&&(o["aria-disabled"]="true"),o}),t=n.computed(()=>"q-btn-dropdown__arrow"+(r.value===!0&&e.noIconAnimation===!1?" rotate-180":"")+(e.split===!1?" q-btn-dropdown__arrow-container":"")),m=n.computed(()=>l.getBtnDesignAttr(e)),B=n.computed(()=>I(e));n.watch(()=>e.modelValue,o=>{var i;(i=s.value)==null||i[o?"show":"hide"]()}),n.watch(()=>e.split,b);function g(o){r.value=!0,a("beforeShow",o)}function S(o){a("show",o),a("update:modelValue",!0)}function p(o){r.value=!1,a("beforeHide",o)}function v(o){a("hide",o),a("update:modelValue",!1)}function C(o){a("click",o)}function y(o){l.stop(o),b(),a("click",o)}function k(o){var i;(i=s.value)==null||i.toggle(o)}function h(o){var i;(i=s.value)==null||i.show(o)}function b(o){var i;(i=s.value)==null||i.hide(o)}return Object.assign(u,{show:h,hide:b,toggle:k}),n.onMounted(()=>{e.modelValue===!0&&h()}),()=>{const o=[n.h(l.QIcon,{class:t.value,name:e.dropdownIcon||u.$q.iconSet.arrow.dropdown})];return e.disableDropdown!==!0&&o.push(n.h(w.QMenu,{ref:s,id:c.value,class:e.contentClass,style:e.contentStyle,cover:e.cover,fit:!0,persistent:e.persistent,noEscDismiss:e.noEscDismiss,noRouteDismiss:e.noRouteDismiss,autoClose:e.autoClose,noFocus:e.noFocus,noRefocus:e.noRefocus,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,separateClosePopup:!0,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:g,onShow:S,onBeforeHide:p,onHide:v},d.default)),e.split===!1?n.h(l.QBtn,{class:"q-btn-dropdown q-btn-dropdown--simple",...B.value,...f.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:C},{default:()=>l.hSlot(d.label,[]).concat(o),loading:d.loading}):n.h(q,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",rounded:e.rounded,square:e.square,...m.value,glossy:e.glossy,stretch:e.stretch},()=>[n.h(l.QBtn,{class:"q-btn-dropdown--current",...B.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:y},{default:d.label,loading:d.loading}),n.h(l.QBtn,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...f.value,...m.value,disable:e.disable===!0||e.disableDropdown===!0,rounded:e.rounded,color:e.color,textColor:e.textColor,dense:e.dense,size:e.size,padding:e.padding,ripple:e.ripple},()=>o)])}}}),L=n.defineComponent({__name:"DropdownButton",props:{size:{default:l.SIZES.MD},transparent:{type:Boolean},flat:{type:Boolean},rounded:{type:Boolean},color:{default:l.COLORS.PRIMARY},iconLeft:{},iconMiddle:{},hideDropIcon:{type:Boolean},disabled:{type:Boolean},loading:{type:Boolean},ariaLabel:{},label:{},menuOffset:{},menuAnchor:{},menuSelf:{},menuClass:{}},emits:["menuShown","menuHidden"],setup(e,{emit:d}){const a=e,u=d,r=n.ref(!1),s=n.computed(()=>["dropdown-btn",{"dropdown-btn_default":!a.transparent&&!a.flat,"dropdown-btn_trans":a.transparent,"dropdown-btn_flat":a.flat,"dropdown-btn_rounded":a.rounded,"dropdown-btn_icon-left":a.iconLeft,"dropdown-btn_icon-middle":a.iconMiddle},`dropdown-btn_${a.size}`,`dropdown-btn_${a.color}`]),c=()=>{r.value=!0,u("menuShown")},f=()=>{r.value=!1,u("menuHidden")};return(t,m)=>(n.openBlock(),n.createBlock(n.unref(A),{"no-caps":"",unelevated:"",class:n.normalizeClass(s.value),padding:n.unref(D)[t.size||n.unref(l.SIZES).MD],loading:t.loading,disable:t.disabled||void 0,"aria-label":t.ariaLabel,"menu-offset":t.menuOffset,"menu-anchor":t.menuAnchor,"menu-self":t.menuSelf,"content-class":["glass-menu dropdown-menu",t.menuClass],onBeforeShow:c,onBeforeHide:f},{label:n.withCtx(()=>[t.iconLeft||t.iconMiddle?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["icon-kl",t.iconLeft?"icon-kl_left":"icon-kl_middle",`icon-kl-${t.iconLeft||t.iconMiddle}`,t.transparent||t.flat?`text-${t.color}`:"text-secondary"])},null,2)):n.createCommentVNode("",!0),t.label?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(t.label),1)],64)):n.createCommentVNode("",!0),t.hideDropIcon?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["icon-kl","icon-kl-arrow-down",{"icon-kl-arrow-down_rotated":r.value},t.transparent?`text-${t.color}`:"text-secondary"])},null,2))]),default:n.withCtx(()=>[n.renderSlot(t.$slots,"default",{},void 0,!0),n.renderSlot(t.$slots,"options",{hideMenu:f,showMenu:c},void 0,!0)]),_:3},8,["class","padding","loading","disable","aria-label","menu-offset","menu-anchor","menu-self","content-class"]))}}),E=l._export_sfc(L,[["__scopeId","data-v-f9fc47d1"]]);exports.default=E;
@@ -1 +1 @@
1
- "use strict";const r=require("vue"),L=require("./focusout-DzWGke-4.cjs"),g=require("./index-BfBnkGiX.cjs");let N,D=0;const b=new Array(256);for(let e=0;e<256;e++)b[e]=(e+256).toString(16).substring(1);const Ae=(()=>{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}})(),ne=4096;function _(){(N===void 0||D+16>ne)&&(D=0,N=Ae(ne));const e=Array.prototype.slice.call(N,D,D+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,b[e[0]]+b[e[1]]+b[e[2]]+b[e[3]]+"-"+b[e[4]]+b[e[5]]+"-"+b[e[6]]+b[e[7]]+"-"+b[e[8]]+b[e[9]]+"-"+b[e[10]]+b[e[11]]+b[e[12]]+b[e[13]]+b[e[14]]+b[e[15]]}function De(e){return e??null}function le(e,t){return e??(t===!0?`f_${_()}`:null)}function Re({getValue:e,required:t=!0}={}){if(L.isRuntimeSsrPreHydration.value===!0){const o=e!==void 0?r.ref(De(e())):r.ref(null);return t===!0&&o.value===null&&r.onMounted(()=>{o.value=`f_${_()}`}),e!==void 0&&r.watch(e,n=>{o.value=le(n,t)}),o}return e!==void 0?r.computed(()=>le(e(),t)):r.ref(`f_${_()}`)}let k=[],A=[];function me(e){A=A.filter(t=>t!==e)}function Ie(e){me(e),A.push(e)}function ie(e){me(e),A.length===0&&k.length!==0&&(k[k.length-1](),k=[])}function he(e){A.length===0?e():k.push(e)}function ze(e){k=k.filter(t=>t!==e)}function Oe(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),L.Platform.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ve={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Ke={...Ve,contextMenu:Boolean};function Ue({showing:e,avoidEmit:t,configureAnchorEl:o}){const{props:n,proxy:l,emit:m}=r.getCurrentInstance(),i=r.ref(null);let a=null;function h(u){return i.value===null?!1:u===void 0||u.touches===void 0||u.touches.length<=1}const d={};o===void 0&&(Object.assign(d,{hide(u){l.hide(u)},toggle(u){l.toggle(u),u.qAnchorHandled=!0},toggleKey(u){g.isKeyCode(u,13)===!0&&d.toggle(u)},contextClick(u){l.hide(u),g.prevent(u),r.nextTick(()=>{l.show(u),u.qAnchorHandled=!0})},prevent:g.prevent,mobileTouch(u){if(d.mobileCleanup(u),h(u)!==!0)return;l.hide(u),i.value.classList.add("non-selectable");const f=u.target;g.addEvt(d,"anchor",[[f,"touchmove","mobileCleanup","passive"],[f,"touchend","mobileCleanup","passive"],[f,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),a=setTimeout(()=>{a=null,l.show(u),u.qAnchorHandled=!0},300)},mobileCleanup(u){i.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),e.value===!0&&u!==void 0&&Oe()}}),o=function(u=n.contextMenu){if(n.noParentEvent===!0||i.value===null)return;let f;u===!0?l.$q.platform.is.mobile===!0?f=[[i.value,"touchstart","mobileTouch","passive"]]:f=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:f=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],g.addEvt(d,"anchor",f)});function c(){g.cleanEvt(d,"anchor")}function y(u){for(i.value=u;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;o()}function w(){if(n.target===!1||n.target===""||l.$el.parentNode===null)i.value=null;else if(n.target===!0)y(l.$el.parentNode);else{let u=n.target;if(typeof n.target=="string")try{u=document.querySelector(n.target)}catch{u=void 0}u!=null?(i.value=u.$el||u,o()):(i.value=null,console.error(`Anchor: target "${n.target}" not found`))}}return r.watch(()=>n.contextMenu,u=>{i.value!==null&&(c(),o(u))}),r.watch(()=>n.target,()=>{i.value!==null&&c(),w()}),r.watch(()=>n.noParentEvent,u=>{i.value!==null&&(u===!0?c():o())}),r.onMounted(()=>{w(),t!==!0&&n.modelValue===!0&&i.value===null&&m("update:modelValue",!1)}),r.onBeforeUnmount(()=>{a!==null&&clearTimeout(a),c()}),{anchorEl:i,canShow:h,anchorEvents:d}}function Ne(e,t){const o=r.ref(null);let n;function l(a,h){const d=`${h!==void 0?"add":"remove"}EventListener`,c=h!==void 0?h:n;a!==window&&a[d]("scroll",c,g.listenOpts.passive),window[d]("scroll",c,g.listenOpts.passive),n=h}function m(){o.value!==null&&(l(o.value),o.value=null)}const i=r.watch(()=>e.noParentEvent,()=>{o.value!==null&&(m(),t())});return r.onBeforeUnmount(i),{localScrollTarget:o,unconfigureScrollTarget:m,changeScrollEvent:l}}const ve={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},ge=["beforeShow","show","beforeHide","hide"];function pe({showing:e,canShow:t,hideOnRouteChange:o,handleShow:n,handleHide:l,processOnMount:m}){const i=r.getCurrentInstance(),{props:a,emit:h,proxy:d}=i;let c;function y(v){e.value===!0?f(v):w(v)}function w(v){if(a.disable===!0||(v==null?void 0:v.qAnchorHandled)===!0||t!==void 0&&t(v)!==!0)return;const p=a["onUpdate:modelValue"]!==void 0;p===!0&&(h("update:modelValue",!0),c=v,r.nextTick(()=>{c===v&&(c=void 0)})),(a.modelValue===null||p===!1)&&u(v)}function u(v){e.value!==!0&&(e.value=!0,h("beforeShow",v),n!==void 0?n(v):h("show",v))}function f(v){if(a.disable===!0)return;const p=a["onUpdate:modelValue"]!==void 0;p===!0&&(h("update:modelValue",!1),c=v,r.nextTick(()=>{c===v&&(c=void 0)})),(a.modelValue===null||p===!1)&&H(v)}function H(v){e.value!==!1&&(e.value=!1,h("beforeHide",v),l!==void 0?l(v):h("hide",v))}function C(v){a.disable===!0&&v===!0?a["onUpdate:modelValue"]!==void 0&&h("update:modelValue",!1):v===!0!==e.value&&(v===!0?u:H)(c)}r.watch(()=>a.modelValue,C),o!==void 0&&g.vmHasRouter(i)===!0&&r.watch(()=>d.$route.fullPath,()=>{o.value===!0&&e.value===!0&&f()}),r.onMounted(()=>{C(a.modelValue)});const M={show:w,hide:f,toggle:y};return Object.assign(d,M),M}const re={};let Qe=1,_e=document.body;function je(e,t){const o=document.createElement("div");if(o.id=t!==void 0?`q-portal--${t}--${Qe++}`:e,re.globalNodes!==void 0){const n=re.globalNodes.class;n!==void 0&&(o.className=n)}return _e.appendChild(o),o}function Ge(e){e.remove()}const Xe=g.createComponent({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Ye(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 ye(e,t,o,n){const l=r.ref(!1),m=r.ref(!1);let i=null;const a={},h=n==="dialog"&&Ye(e);function d(y){if(y===!0){ie(a),m.value=!0;return}m.value=!1,l.value===!1&&(h===!1&&i===null&&(i=je(!1,n)),l.value=!0,g.portalProxyList.push(e.proxy),Ie(a))}function c(y){if(m.value=!1,y!==!0)return;ie(a),l.value=!1;const w=g.portalProxyList.indexOf(e.proxy);w!==-1&&g.portalProxyList.splice(w,1),i!==null&&(Ge(i),i=null)}return r.onUnmounted(()=>{c(!0)}),e.proxy.__qPortal=!0,L.injectProp(e.proxy,"contentEl",()=>t.value),{showPortal:d,hidePortal:c,portalIsActive:l,portalIsAccessible:m,renderPortal:()=>h===!0?o():l.value===!0?[r.h(r.Teleport,{to:i},r.h(Xe,o))]:void 0}}const we={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function xe(e,t=()=>{},o=()=>{}){return{transitionProps:r.computed(()=>{const n=`q-transition--${e.transitionShow||t()}`,l=`q-transition--${e.transitionHide||o()}`;return{appear:!0,enterFromClass:`${n}-enter-from`,enterActiveClass:`${n}-enter-active`,enterToClass:`${n}-enter-to`,leaveFromClass:`${l}-leave-from`,leaveActiveClass:`${l}-leave-active`,leaveToClass:`${l}-leave-to`}}),transitionStyle:r.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function be(){let e;const t=r.getCurrentInstance();function o(){e=void 0}return r.onDeactivated(o),r.onBeforeUnmount(o),{removeTick:o,registerTick(n){e=n,r.nextTick(()=>{e===n&&(g.vmIsDestroyed(t)===!1&&e(),e=void 0)})}}}function Ee(){let e=null;const t=r.getCurrentInstance();function o(){e!==null&&(clearTimeout(e),e=null)}return r.onDeactivated(o),r.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(n,l){o(),g.vmIsDestroyed(t)===!1&&(e=setTimeout(()=>{e=null,n()},l))}}}const Ze=[Element,String],Je=[null,document,document.body,document.scrollingElement,document.documentElement];function et(e,t){let o=g.getElement(t);if(o===void 0){if(e==null)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return Je.includes(o)?window:o}function tt(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function ot(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let R;function nt(){if(R!==void 0)return R;const e=document.createElement("p"),t=document.createElement("div");g.css(e,{width:"100%",height:"200px"}),g.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 n=e.offsetWidth;return o===n&&(n=t.clientWidth),t.remove(),R=o-n,R}function lt(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 W=[];let F;function it(e){F=e.keyCode===27}function rt(){F===!0&&(F=!1)}function ut(e){F===!0&&(F=!1,g.isKeyCode(e,27)===!0&&W[W.length-1](e))}function Te(e){window[e]("keydown",it),window[e]("blur",rt),window[e]("keyup",ut),F=!1}function Ce(e){L.client.is.desktop===!0&&(W.push(e),W.length===1&&Te("addEventListener"))}function j(e){const t=W.indexOf(e);t!==-1&&(W.splice(t,1),W.length===0&&Te("removeEventListener"))}const{notPassiveCapture:I}=g.listenOpts,q=[];function z(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let o=g.portalProxyList.length-1;for(;o>=0;){const n=g.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=q.length-1;n>=0;n--){const l=q[n];if((l.anchorEl.value===null||l.anchorEl.value.contains(t)===!1)&&(t===document.body||l.innerRef.value!==null&&l.innerRef.value.contains(t)===!1))e.qClickOutside=!0,l.onClickOutside(e);else return}}function at(e){q.push(e),q.length===1&&(document.addEventListener("mousedown",z,I),document.addEventListener("touchstart",z,I))}function ue(e){const t=q.findIndex(o=>o===e);t!==-1&&(q.splice(t,1),q.length===0&&(document.removeEventListener("mousedown",z,I),document.removeEventListener("touchstart",z,I)))}let ae,se;function ce(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 st(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const G={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{G[`${e}#ltr`]=e,G[`${e}#rtl`]=e});function de(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:G[`${o[1]}#${t===!0?"rtl":"ltr"}`]}}function ct(e,t){let{top:o,left:n,right:l,bottom:m,width:i,height:a}=e.getBoundingClientRect();return t!==void 0&&(o-=t[1],n-=t[0],m+=t[1],l+=t[0],i+=t[0],a+=t[1]),{top:o,bottom:m,height:a,left:n,right:l,width:i,middle:n+(l-n)/2,center:o+(m-o)/2}}function dt(e,t,o){let{top:n,left:l}=e.getBoundingClientRect();return n+=t.top,l+=t.left,o!==void 0&&(n+=o[1],l+=o[0]),{top:n,bottom:n+1,height:1,left:l,right:l+1,width:1,middle:l,center:n}}function ft(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function fe(e,t,o,n){return{top:e[o.vertical]-t[n.vertical],left:e[o.horizontal]-t[n.horizontal]}}function Se(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Se(e,t+1)},10);return}const{targetEl:o,offset:n,anchorEl:l,anchorOrigin:m,selfOrigin:i,absoluteOffset:a,fit:h,cover:d,maxHeight:c,maxWidth:y}=e;if(L.client.is.ios===!0&&window.visualViewport!==void 0){const B=document.body.style,{offsetLeft:E,offsetTop:T}=window.visualViewport;E!==ae&&(B.setProperty("--q-pe-left",E+"px"),ae=E),T!==se&&(B.setProperty("--q-pe-top",T+"px"),se=T)}const{scrollLeft:w,scrollTop:u}=o,f=a===void 0?ct(l,d===!0?[0,0]:n):dt(l,a,n);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:y,maxHeight:c,visibility:"visible"});const{offsetWidth:H,offsetHeight:C}=o,{elWidth:M,elHeight:v}=h===!0||d===!0?{elWidth:Math.max(f.width,H),elHeight:d===!0?Math.max(f.height,C):C}:{elWidth:H,elHeight:C};let p={maxWidth:y,maxHeight:c};(h===!0||d===!0)&&(p.minWidth=f.width+"px",d===!0&&(p.minHeight=f.height+"px")),Object.assign(o.style,p);const S=ft(M,v);let x=fe(f,S,m,i);if(a===void 0||n===void 0)Q(x,f,S,m,i);else{const{top:B,left:E}=x;Q(x,f,S,m,i);let T=!1;if(x.top!==B){T=!0;const P=2*n[1];f.center=f.top-=P,f.bottom-=P+2}if(x.left!==E){T=!0;const P=2*n[0];f.middle=f.left-=P,f.right-=P+2}T===!0&&(x=fe(f,S,m,i),Q(x,f,S,m,i))}p={top:x.top+"px",left:x.left+"px"},x.maxHeight!==void 0&&(p.maxHeight=x.maxHeight+"px",f.height>x.maxHeight&&(p.minHeight=p.maxHeight)),x.maxWidth!==void 0&&(p.maxWidth=x.maxWidth+"px",f.width>x.maxWidth&&(p.minWidth=p.maxWidth)),Object.assign(o.style,p),o.scrollTop!==u&&(o.scrollTop=u),o.scrollLeft!==w&&(o.scrollLeft=w)}function Q(e,t,o,n,l){const m=o.bottom,i=o.right,a=nt(),h=window.innerHeight-a,d=document.body.clientWidth;if(e.top<0||e.top+m>h)if(l.vertical==="center")e.top=t[n.vertical]>h/2?Math.max(0,h-m):0,e.maxHeight=Math.min(m,h);else if(t[n.vertical]>h/2){const c=Math.min(h,n.vertical==="center"?t.center:n.vertical===l.vertical?t.bottom:t.top);e.maxHeight=Math.min(m,c),e.top=Math.max(0,c-m)}else e.top=Math.max(0,n.vertical==="center"?t.center:n.vertical===l.vertical?t.top:t.bottom),e.maxHeight=Math.min(m,h-e.top);if(e.left<0||e.left+i>d)if(e.maxWidth=Math.min(i,d),l.horizontal==="middle")e.left=t[n.horizontal]>d/2?Math.max(0,d-i):0;else if(t[n.horizontal]>d/2){const c=Math.min(d,n.horizontal==="middle"?t.middle:n.horizontal===l.horizontal?t.right:t.left);e.maxWidth=Math.min(i,c),e.left=Math.max(0,c-e.maxWidth)}else e.left=Math.max(0,n.horizontal==="middle"?t.middle:n.horizontal===l.horizontal?t.left:t.right),e.maxWidth=Math.min(i,d-e.left)}const mt=g.createComponent({name:"QMenu",inheritAttrs:!1,props:{...Ke,...ve,...g.useDarkProps,...we,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:ce},self:{type:String,validator:ce},offset:{type:Array,validator:st},scrollTarget:Ze,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...ge,"click","escapeKey"],setup(e,{slots:t,emit:o,attrs:n}){let l=null,m,i,a;const h=r.getCurrentInstance(),{proxy:d}=h,{$q:c}=d,y=r.ref(null),w=r.ref(!1),u=r.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),f=g.useDark(e,c),{registerTick:H,removeTick:C}=be(),{registerTimeout:M}=Ee(),{transitionProps:v,transitionStyle:p}=xe(e),{localScrollTarget:S,changeScrollEvent:x,unconfigureScrollTarget:B}=Ne(e,te),{anchorEl:E,canShow:T}=Ue({showing:w}),{hide:P}=pe({showing:w,canShow:T,handleShow:We,handleHide:qe,hideOnRouteChange:u,processOnMount:!0}),{showPortal:X,hidePortal:Y,renderPortal:Pe}=ye(h,y,Be,"menu"),O={anchorEl:E,innerRef:y,onClickOutside(s){if(e.persistent!==!0&&w.value===!0)return P(s),(s.type==="touchstart"||s.target.classList.contains("q-dialog__backdrop"))&&g.stopAndPrevent(s),!0}},Z=r.computed(()=>de(e.anchor||(e.cover===!0?"center middle":"bottom start"),c.lang.rtl)),He=r.computed(()=>e.cover===!0?Z.value:de(e.self||"top start",c.lang.rtl)),Me=r.computed(()=>(e.square===!0?" q-menu--square":"")+(f.value===!0?" q-menu--dark q-dark":"")),ke=r.computed(()=>e.autoClose===!0?{onClick:Le}:{}),J=r.computed(()=>w.value===!0&&e.persistent!==!0);r.watch(J,s=>{s===!0?(Ce(K),at(O)):(j(K),ue(O))});function V(){he(()=>{let s=y.value;s&&s.contains(document.activeElement)!==!0&&(s=s.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||s.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||s.querySelector("[autofocus], [data-autofocus]")||s,s.focus({preventScroll:!0}))})}function We(s){if(l=e.noRefocus===!1?document.activeElement:null,L.addFocusout(oe),X(),te(),m=void 0,s!==void 0&&(e.touchPosition||e.contextMenu)){const U=g.position(s);if(U.left!==void 0){const{top:Fe,left:$e}=E.value.getBoundingClientRect();m={left:U.left-$e,top:U.top-Fe}}}i===void 0&&(i=r.watch(()=>c.screen.width+"|"+c.screen.height+"|"+e.self+"|"+e.anchor+"|"+c.lang.rtl,$)),e.noFocus!==!0&&document.activeElement.blur(),H(()=>{$(),e.noFocus!==!0&&V()}),M(()=>{c.platform.is.ios===!0&&(a=e.autoClose,y.value.click()),$(),X(!0),o("show",s)},e.transitionDuration)}function qe(s){C(),Y(),ee(!0),l!==null&&(s===void 0||s.qClickOutside!==!0)&&((((s==null?void 0:s.type.indexOf("key"))===0?l.closest('[tabindex]:not([tabindex^="-"])'):void 0)||l).focus(),l=null),M(()=>{Y(!0),o("hide",s)},e.transitionDuration)}function ee(s){m=void 0,i!==void 0&&(i(),i=void 0),(s===!0||w.value===!0)&&(L.removeFocusout(oe),B(),ue(O),j(K)),s!==!0&&(l=null)}function te(){(E.value!==null||e.scrollTarget!==void 0)&&(S.value=et(E.value,e.scrollTarget),x(S.value,$))}function Le(s){a!==!0?(g.closePortalMenus(d,s),o("click",s)):a=!1}function oe(s){J.value===!0&&e.noFocus!==!0&&g.childHasFocus(y.value,s.target)!==!0&&V()}function K(s){e.noEscDismiss!==!0&&(o("escapeKey"),P(s))}function $(){Se({targetEl:y.value,offset:e.offset,anchorEl:E.value,anchorOrigin:Z.value,selfOrigin:He.value,absoluteOffset:m,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function Be(){return r.h(r.Transition,v.value,()=>w.value===!0?r.h("div",{role:"menu",...n,ref:y,tabindex:-1,class:["q-menu q-position-engine scroll"+Me.value,n.class],style:[n.style,p.value],...ke.value},g.hSlot(t.default)):null)}return r.onBeforeUnmount(ee),Object.assign(d,{focus:V,updatePosition:$}),Pe}});exports.QMenu=mt;exports.addEscapeKey=Ce;exports.addFocusFn=he;exports.getHorizontalScrollPosition=ot;exports.getVerticalScrollPosition=tt;exports.hasScrollbar=lt;exports.removeEscapeKey=j;exports.removeFocusFn=ze;exports.useId=Re;exports.useModelToggle=pe;exports.useModelToggleEmits=ge;exports.useModelToggleProps=ve;exports.usePortal=ye;exports.useTick=be;exports.useTimeout=Ee;exports.useTransition=xe;exports.useTransitionProps=we;
1
+ "use strict";const r=require("vue"),L=require("./focusout-DzWGke-4.cjs"),g=require("./index-CbRV0UFS.cjs");let N,D=0;const b=new Array(256);for(let e=0;e<256;e++)b[e]=(e+256).toString(16).substring(1);const Ae=(()=>{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}})(),ne=4096;function _(){(N===void 0||D+16>ne)&&(D=0,N=Ae(ne));const e=Array.prototype.slice.call(N,D,D+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,b[e[0]]+b[e[1]]+b[e[2]]+b[e[3]]+"-"+b[e[4]]+b[e[5]]+"-"+b[e[6]]+b[e[7]]+"-"+b[e[8]]+b[e[9]]+"-"+b[e[10]]+b[e[11]]+b[e[12]]+b[e[13]]+b[e[14]]+b[e[15]]}function De(e){return e??null}function le(e,t){return e??(t===!0?`f_${_()}`:null)}function Re({getValue:e,required:t=!0}={}){if(L.isRuntimeSsrPreHydration.value===!0){const o=e!==void 0?r.ref(De(e())):r.ref(null);return t===!0&&o.value===null&&r.onMounted(()=>{o.value=`f_${_()}`}),e!==void 0&&r.watch(e,n=>{o.value=le(n,t)}),o}return e!==void 0?r.computed(()=>le(e(),t)):r.ref(`f_${_()}`)}let k=[],A=[];function me(e){A=A.filter(t=>t!==e)}function Ie(e){me(e),A.push(e)}function ie(e){me(e),A.length===0&&k.length!==0&&(k[k.length-1](),k=[])}function he(e){A.length===0?e():k.push(e)}function ze(e){k=k.filter(t=>t!==e)}function Oe(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),L.Platform.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ve={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Ke={...Ve,contextMenu:Boolean};function Ue({showing:e,avoidEmit:t,configureAnchorEl:o}){const{props:n,proxy:l,emit:m}=r.getCurrentInstance(),i=r.ref(null);let a=null;function h(u){return i.value===null?!1:u===void 0||u.touches===void 0||u.touches.length<=1}const d={};o===void 0&&(Object.assign(d,{hide(u){l.hide(u)},toggle(u){l.toggle(u),u.qAnchorHandled=!0},toggleKey(u){g.isKeyCode(u,13)===!0&&d.toggle(u)},contextClick(u){l.hide(u),g.prevent(u),r.nextTick(()=>{l.show(u),u.qAnchorHandled=!0})},prevent:g.prevent,mobileTouch(u){if(d.mobileCleanup(u),h(u)!==!0)return;l.hide(u),i.value.classList.add("non-selectable");const f=u.target;g.addEvt(d,"anchor",[[f,"touchmove","mobileCleanup","passive"],[f,"touchend","mobileCleanup","passive"],[f,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),a=setTimeout(()=>{a=null,l.show(u),u.qAnchorHandled=!0},300)},mobileCleanup(u){i.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),e.value===!0&&u!==void 0&&Oe()}}),o=function(u=n.contextMenu){if(n.noParentEvent===!0||i.value===null)return;let f;u===!0?l.$q.platform.is.mobile===!0?f=[[i.value,"touchstart","mobileTouch","passive"]]:f=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:f=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],g.addEvt(d,"anchor",f)});function c(){g.cleanEvt(d,"anchor")}function y(u){for(i.value=u;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;o()}function w(){if(n.target===!1||n.target===""||l.$el.parentNode===null)i.value=null;else if(n.target===!0)y(l.$el.parentNode);else{let u=n.target;if(typeof n.target=="string")try{u=document.querySelector(n.target)}catch{u=void 0}u!=null?(i.value=u.$el||u,o()):(i.value=null,console.error(`Anchor: target "${n.target}" not found`))}}return r.watch(()=>n.contextMenu,u=>{i.value!==null&&(c(),o(u))}),r.watch(()=>n.target,()=>{i.value!==null&&c(),w()}),r.watch(()=>n.noParentEvent,u=>{i.value!==null&&(u===!0?c():o())}),r.onMounted(()=>{w(),t!==!0&&n.modelValue===!0&&i.value===null&&m("update:modelValue",!1)}),r.onBeforeUnmount(()=>{a!==null&&clearTimeout(a),c()}),{anchorEl:i,canShow:h,anchorEvents:d}}function Ne(e,t){const o=r.ref(null);let n;function l(a,h){const d=`${h!==void 0?"add":"remove"}EventListener`,c=h!==void 0?h:n;a!==window&&a[d]("scroll",c,g.listenOpts.passive),window[d]("scroll",c,g.listenOpts.passive),n=h}function m(){o.value!==null&&(l(o.value),o.value=null)}const i=r.watch(()=>e.noParentEvent,()=>{o.value!==null&&(m(),t())});return r.onBeforeUnmount(i),{localScrollTarget:o,unconfigureScrollTarget:m,changeScrollEvent:l}}const ve={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},ge=["beforeShow","show","beforeHide","hide"];function pe({showing:e,canShow:t,hideOnRouteChange:o,handleShow:n,handleHide:l,processOnMount:m}){const i=r.getCurrentInstance(),{props:a,emit:h,proxy:d}=i;let c;function y(v){e.value===!0?f(v):w(v)}function w(v){if(a.disable===!0||(v==null?void 0:v.qAnchorHandled)===!0||t!==void 0&&t(v)!==!0)return;const p=a["onUpdate:modelValue"]!==void 0;p===!0&&(h("update:modelValue",!0),c=v,r.nextTick(()=>{c===v&&(c=void 0)})),(a.modelValue===null||p===!1)&&u(v)}function u(v){e.value!==!0&&(e.value=!0,h("beforeShow",v),n!==void 0?n(v):h("show",v))}function f(v){if(a.disable===!0)return;const p=a["onUpdate:modelValue"]!==void 0;p===!0&&(h("update:modelValue",!1),c=v,r.nextTick(()=>{c===v&&(c=void 0)})),(a.modelValue===null||p===!1)&&H(v)}function H(v){e.value!==!1&&(e.value=!1,h("beforeHide",v),l!==void 0?l(v):h("hide",v))}function C(v){a.disable===!0&&v===!0?a["onUpdate:modelValue"]!==void 0&&h("update:modelValue",!1):v===!0!==e.value&&(v===!0?u:H)(c)}r.watch(()=>a.modelValue,C),o!==void 0&&g.vmHasRouter(i)===!0&&r.watch(()=>d.$route.fullPath,()=>{o.value===!0&&e.value===!0&&f()}),r.onMounted(()=>{C(a.modelValue)});const M={show:w,hide:f,toggle:y};return Object.assign(d,M),M}const re={};let Qe=1,_e=document.body;function je(e,t){const o=document.createElement("div");if(o.id=t!==void 0?`q-portal--${t}--${Qe++}`:e,re.globalNodes!==void 0){const n=re.globalNodes.class;n!==void 0&&(o.className=n)}return _e.appendChild(o),o}function Ge(e){e.remove()}const Xe=g.createComponent({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Ye(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 ye(e,t,o,n){const l=r.ref(!1),m=r.ref(!1);let i=null;const a={},h=n==="dialog"&&Ye(e);function d(y){if(y===!0){ie(a),m.value=!0;return}m.value=!1,l.value===!1&&(h===!1&&i===null&&(i=je(!1,n)),l.value=!0,g.portalProxyList.push(e.proxy),Ie(a))}function c(y){if(m.value=!1,y!==!0)return;ie(a),l.value=!1;const w=g.portalProxyList.indexOf(e.proxy);w!==-1&&g.portalProxyList.splice(w,1),i!==null&&(Ge(i),i=null)}return r.onUnmounted(()=>{c(!0)}),e.proxy.__qPortal=!0,L.injectProp(e.proxy,"contentEl",()=>t.value),{showPortal:d,hidePortal:c,portalIsActive:l,portalIsAccessible:m,renderPortal:()=>h===!0?o():l.value===!0?[r.h(r.Teleport,{to:i},r.h(Xe,o))]:void 0}}const we={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function xe(e,t=()=>{},o=()=>{}){return{transitionProps:r.computed(()=>{const n=`q-transition--${e.transitionShow||t()}`,l=`q-transition--${e.transitionHide||o()}`;return{appear:!0,enterFromClass:`${n}-enter-from`,enterActiveClass:`${n}-enter-active`,enterToClass:`${n}-enter-to`,leaveFromClass:`${l}-leave-from`,leaveActiveClass:`${l}-leave-active`,leaveToClass:`${l}-leave-to`}}),transitionStyle:r.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function be(){let e;const t=r.getCurrentInstance();function o(){e=void 0}return r.onDeactivated(o),r.onBeforeUnmount(o),{removeTick:o,registerTick(n){e=n,r.nextTick(()=>{e===n&&(g.vmIsDestroyed(t)===!1&&e(),e=void 0)})}}}function Ee(){let e=null;const t=r.getCurrentInstance();function o(){e!==null&&(clearTimeout(e),e=null)}return r.onDeactivated(o),r.onBeforeUnmount(o),{removeTimeout:o,registerTimeout(n,l){o(),g.vmIsDestroyed(t)===!1&&(e=setTimeout(()=>{e=null,n()},l))}}}const Ze=[Element,String],Je=[null,document,document.body,document.scrollingElement,document.documentElement];function et(e,t){let o=g.getElement(t);if(o===void 0){if(e==null)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return Je.includes(o)?window:o}function tt(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function ot(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let R;function nt(){if(R!==void 0)return R;const e=document.createElement("p"),t=document.createElement("div");g.css(e,{width:"100%",height:"200px"}),g.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 n=e.offsetWidth;return o===n&&(n=t.clientWidth),t.remove(),R=o-n,R}function lt(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 W=[];let F;function it(e){F=e.keyCode===27}function rt(){F===!0&&(F=!1)}function ut(e){F===!0&&(F=!1,g.isKeyCode(e,27)===!0&&W[W.length-1](e))}function Te(e){window[e]("keydown",it),window[e]("blur",rt),window[e]("keyup",ut),F=!1}function Ce(e){L.client.is.desktop===!0&&(W.push(e),W.length===1&&Te("addEventListener"))}function j(e){const t=W.indexOf(e);t!==-1&&(W.splice(t,1),W.length===0&&Te("removeEventListener"))}const{notPassiveCapture:I}=g.listenOpts,q=[];function z(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let o=g.portalProxyList.length-1;for(;o>=0;){const n=g.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=q.length-1;n>=0;n--){const l=q[n];if((l.anchorEl.value===null||l.anchorEl.value.contains(t)===!1)&&(t===document.body||l.innerRef.value!==null&&l.innerRef.value.contains(t)===!1))e.qClickOutside=!0,l.onClickOutside(e);else return}}function at(e){q.push(e),q.length===1&&(document.addEventListener("mousedown",z,I),document.addEventListener("touchstart",z,I))}function ue(e){const t=q.findIndex(o=>o===e);t!==-1&&(q.splice(t,1),q.length===0&&(document.removeEventListener("mousedown",z,I),document.removeEventListener("touchstart",z,I)))}let ae,se;function ce(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 st(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const G={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{G[`${e}#ltr`]=e,G[`${e}#rtl`]=e});function de(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:G[`${o[1]}#${t===!0?"rtl":"ltr"}`]}}function ct(e,t){let{top:o,left:n,right:l,bottom:m,width:i,height:a}=e.getBoundingClientRect();return t!==void 0&&(o-=t[1],n-=t[0],m+=t[1],l+=t[0],i+=t[0],a+=t[1]),{top:o,bottom:m,height:a,left:n,right:l,width:i,middle:n+(l-n)/2,center:o+(m-o)/2}}function dt(e,t,o){let{top:n,left:l}=e.getBoundingClientRect();return n+=t.top,l+=t.left,o!==void 0&&(n+=o[1],l+=o[0]),{top:n,bottom:n+1,height:1,left:l,right:l+1,width:1,middle:l,center:n}}function ft(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function fe(e,t,o,n){return{top:e[o.vertical]-t[n.vertical],left:e[o.horizontal]-t[n.horizontal]}}function Se(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Se(e,t+1)},10);return}const{targetEl:o,offset:n,anchorEl:l,anchorOrigin:m,selfOrigin:i,absoluteOffset:a,fit:h,cover:d,maxHeight:c,maxWidth:y}=e;if(L.client.is.ios===!0&&window.visualViewport!==void 0){const B=document.body.style,{offsetLeft:E,offsetTop:T}=window.visualViewport;E!==ae&&(B.setProperty("--q-pe-left",E+"px"),ae=E),T!==se&&(B.setProperty("--q-pe-top",T+"px"),se=T)}const{scrollLeft:w,scrollTop:u}=o,f=a===void 0?ct(l,d===!0?[0,0]:n):dt(l,a,n);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:y,maxHeight:c,visibility:"visible"});const{offsetWidth:H,offsetHeight:C}=o,{elWidth:M,elHeight:v}=h===!0||d===!0?{elWidth:Math.max(f.width,H),elHeight:d===!0?Math.max(f.height,C):C}:{elWidth:H,elHeight:C};let p={maxWidth:y,maxHeight:c};(h===!0||d===!0)&&(p.minWidth=f.width+"px",d===!0&&(p.minHeight=f.height+"px")),Object.assign(o.style,p);const S=ft(M,v);let x=fe(f,S,m,i);if(a===void 0||n===void 0)Q(x,f,S,m,i);else{const{top:B,left:E}=x;Q(x,f,S,m,i);let T=!1;if(x.top!==B){T=!0;const P=2*n[1];f.center=f.top-=P,f.bottom-=P+2}if(x.left!==E){T=!0;const P=2*n[0];f.middle=f.left-=P,f.right-=P+2}T===!0&&(x=fe(f,S,m,i),Q(x,f,S,m,i))}p={top:x.top+"px",left:x.left+"px"},x.maxHeight!==void 0&&(p.maxHeight=x.maxHeight+"px",f.height>x.maxHeight&&(p.minHeight=p.maxHeight)),x.maxWidth!==void 0&&(p.maxWidth=x.maxWidth+"px",f.width>x.maxWidth&&(p.minWidth=p.maxWidth)),Object.assign(o.style,p),o.scrollTop!==u&&(o.scrollTop=u),o.scrollLeft!==w&&(o.scrollLeft=w)}function Q(e,t,o,n,l){const m=o.bottom,i=o.right,a=nt(),h=window.innerHeight-a,d=document.body.clientWidth;if(e.top<0||e.top+m>h)if(l.vertical==="center")e.top=t[n.vertical]>h/2?Math.max(0,h-m):0,e.maxHeight=Math.min(m,h);else if(t[n.vertical]>h/2){const c=Math.min(h,n.vertical==="center"?t.center:n.vertical===l.vertical?t.bottom:t.top);e.maxHeight=Math.min(m,c),e.top=Math.max(0,c-m)}else e.top=Math.max(0,n.vertical==="center"?t.center:n.vertical===l.vertical?t.top:t.bottom),e.maxHeight=Math.min(m,h-e.top);if(e.left<0||e.left+i>d)if(e.maxWidth=Math.min(i,d),l.horizontal==="middle")e.left=t[n.horizontal]>d/2?Math.max(0,d-i):0;else if(t[n.horizontal]>d/2){const c=Math.min(d,n.horizontal==="middle"?t.middle:n.horizontal===l.horizontal?t.right:t.left);e.maxWidth=Math.min(i,c),e.left=Math.max(0,c-e.maxWidth)}else e.left=Math.max(0,n.horizontal==="middle"?t.middle:n.horizontal===l.horizontal?t.left:t.right),e.maxWidth=Math.min(i,d-e.left)}const mt=g.createComponent({name:"QMenu",inheritAttrs:!1,props:{...Ke,...ve,...g.useDarkProps,...we,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:ce},self:{type:String,validator:ce},offset:{type:Array,validator:st},scrollTarget:Ze,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...ge,"click","escapeKey"],setup(e,{slots:t,emit:o,attrs:n}){let l=null,m,i,a;const h=r.getCurrentInstance(),{proxy:d}=h,{$q:c}=d,y=r.ref(null),w=r.ref(!1),u=r.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),f=g.useDark(e,c),{registerTick:H,removeTick:C}=be(),{registerTimeout:M}=Ee(),{transitionProps:v,transitionStyle:p}=xe(e),{localScrollTarget:S,changeScrollEvent:x,unconfigureScrollTarget:B}=Ne(e,te),{anchorEl:E,canShow:T}=Ue({showing:w}),{hide:P}=pe({showing:w,canShow:T,handleShow:We,handleHide:qe,hideOnRouteChange:u,processOnMount:!0}),{showPortal:X,hidePortal:Y,renderPortal:Pe}=ye(h,y,Be,"menu"),O={anchorEl:E,innerRef:y,onClickOutside(s){if(e.persistent!==!0&&w.value===!0)return P(s),(s.type==="touchstart"||s.target.classList.contains("q-dialog__backdrop"))&&g.stopAndPrevent(s),!0}},Z=r.computed(()=>de(e.anchor||(e.cover===!0?"center middle":"bottom start"),c.lang.rtl)),He=r.computed(()=>e.cover===!0?Z.value:de(e.self||"top start",c.lang.rtl)),Me=r.computed(()=>(e.square===!0?" q-menu--square":"")+(f.value===!0?" q-menu--dark q-dark":"")),ke=r.computed(()=>e.autoClose===!0?{onClick:Le}:{}),J=r.computed(()=>w.value===!0&&e.persistent!==!0);r.watch(J,s=>{s===!0?(Ce(K),at(O)):(j(K),ue(O))});function V(){he(()=>{let s=y.value;s&&s.contains(document.activeElement)!==!0&&(s=s.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||s.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||s.querySelector("[autofocus], [data-autofocus]")||s,s.focus({preventScroll:!0}))})}function We(s){if(l=e.noRefocus===!1?document.activeElement:null,L.addFocusout(oe),X(),te(),m=void 0,s!==void 0&&(e.touchPosition||e.contextMenu)){const U=g.position(s);if(U.left!==void 0){const{top:Fe,left:$e}=E.value.getBoundingClientRect();m={left:U.left-$e,top:U.top-Fe}}}i===void 0&&(i=r.watch(()=>c.screen.width+"|"+c.screen.height+"|"+e.self+"|"+e.anchor+"|"+c.lang.rtl,$)),e.noFocus!==!0&&document.activeElement.blur(),H(()=>{$(),e.noFocus!==!0&&V()}),M(()=>{c.platform.is.ios===!0&&(a=e.autoClose,y.value.click()),$(),X(!0),o("show",s)},e.transitionDuration)}function qe(s){C(),Y(),ee(!0),l!==null&&(s===void 0||s.qClickOutside!==!0)&&((((s==null?void 0:s.type.indexOf("key"))===0?l.closest('[tabindex]:not([tabindex^="-"])'):void 0)||l).focus(),l=null),M(()=>{Y(!0),o("hide",s)},e.transitionDuration)}function ee(s){m=void 0,i!==void 0&&(i(),i=void 0),(s===!0||w.value===!0)&&(L.removeFocusout(oe),B(),ue(O),j(K)),s!==!0&&(l=null)}function te(){(E.value!==null||e.scrollTarget!==void 0)&&(S.value=et(E.value,e.scrollTarget),x(S.value,$))}function Le(s){a!==!0?(g.closePortalMenus(d,s),o("click",s)):a=!1}function oe(s){J.value===!0&&e.noFocus!==!0&&g.childHasFocus(y.value,s.target)!==!0&&V()}function K(s){e.noEscDismiss!==!0&&(o("escapeKey"),P(s))}function $(){Se({targetEl:y.value,offset:e.offset,anchorEl:E.value,anchorOrigin:Z.value,selfOrigin:He.value,absoluteOffset:m,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function Be(){return r.h(r.Transition,v.value,()=>w.value===!0?r.h("div",{role:"menu",...n,ref:y,tabindex:-1,class:["q-menu q-position-engine scroll"+Me.value,n.class],style:[n.style,p.value],...ke.value},g.hSlot(t.default)):null)}return r.onBeforeUnmount(ee),Object.assign(d,{focus:V,updatePosition:$}),Pe}});exports.QMenu=mt;exports.addEscapeKey=Ce;exports.addFocusFn=he;exports.getHorizontalScrollPosition=ot;exports.getVerticalScrollPosition=tt;exports.hasScrollbar=lt;exports.removeEscapeKey=j;exports.removeFocusFn=ze;exports.useId=Re;exports.useModelToggle=pe;exports.useModelToggleEmits=ge;exports.useModelToggleProps=ve;exports.usePortal=ye;exports.useTick=be;exports.useTimeout=Ee;exports.useTransition=xe;exports.useTransitionProps=we;
@@ -1,6 +1,6 @@
1
1
  import { ref as T, onMounted as te, watch as S, computed as E, getCurrentInstance as R, nextTick as I, onBeforeUnmount as z, onUnmounted as Oe, h as K, Teleport as Ie, onDeactivated as Te, Transition as Ke } from "vue";
2
2
  import { i as Ne, P as Qe, b as _e, c as Se, r as je, a as Ue } from "./focusout-DjvPXP_b.js";
3
- import { p as se, D as ce, k as Ce, E as Ge, m as J, F as Xe, c as He, G as B, H as ke, I as Ye, J as de, u as Je, a as Ze, K as et, L as tt, h as ot, o as nt, s as lt } from "./index-8UC8Fzfc.js";
3
+ import { p as se, D as ce, k as Ce, E as Ge, m as J, F as Xe, c as He, G as B, H as ke, I as Ye, J as de, u as Je, a as Ze, K as et, L as tt, h as ot, o as nt, s as lt } from "./index-B4esBocL.js";
4
4
  let X, V = 0;
5
5
  const w = new Array(256);
6
6
  for (let e = 0; e < 256; e++)
@@ -1,4 +1,4 @@
1
- import { computed as r, markRaw as Ee, defineComponent as K, h as p, withDirectives as oe, getCurrentInstance as ee, unref as Z, ref as W, onBeforeUnmount as Fe, Transition as Qe, createBlock as ae, openBlock as b, normalizeClass as P, withCtx as Ue, createElementBlock as _, createCommentVNode as A, renderSlot as se, Fragment as ie, createTextVNode as Pe, toDisplayString as Y, createElementVNode as T, toRaw as Q, createVNode as He, normalizeStyle as re, watch as Xe, onMounted as We, renderList as Le, withKeys as Ye, vModelText as Ge, nextTick as he, mergeModels as Je, useModel as Ze, defineAsyncComponent as ge } from "vue";
1
+ import { computed as r, markRaw as Ee, defineComponent as K, h as p, withDirectives as oe, getCurrentInstance as ee, unref as Z, ref as W, onBeforeUnmount as Fe, Transition as Qe, createBlock as ae, openBlock as b, normalizeClass as P, withCtx as Ue, createElementBlock as _, createCommentVNode as V, renderSlot as se, Fragment as ie, createTextVNode as Pe, toDisplayString as Y, createElementVNode as T, toRaw as Q, createVNode as He, normalizeStyle as re, watch as Xe, onMounted as We, renderList as Le, withKeys as Ye, vModelText as Ge, nextTick as he, mergeModels as Je, useModel as Ze, defineAsyncComponent as ge } from "vue";
2
2
  const _n = ({ app: e }) => {
3
3
  const t = e.config.globalProperties.$q;
4
4
  t.iconMapFn = (n) => {
@@ -38,7 +38,7 @@ function te(e) {
38
38
  function Me(e) {
39
39
  return Ee(e);
40
40
  }
41
- function Ae(e, t) {
41
+ function Ve(e, t) {
42
42
  return e !== void 0 && e() || t;
43
43
  }
44
44
  function $n(e, t) {
@@ -60,7 +60,7 @@ function Sn(e, t, n, a, s, l) {
60
60
  const o = p(e, t, n);
61
61
  return s === !0 ? oe(o, l()) : o;
62
62
  }
63
- const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ve = {
63
+ const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ae = {
64
64
  "mdi-": (e) => `mdi ${e}`,
65
65
  "icon-": fe,
66
66
  // fontawesome equiv
@@ -82,7 +82,7 @@ const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ve = {
82
82
  sym_o_: "-outlined",
83
83
  sym_r_: "-rounded",
84
84
  sym_s_: "-sharp"
85
- }, tt = new RegExp("^(" + Object.keys(Ve).join("|") + ")"), nt = new RegExp("^(" + Object.keys(Ie).join("|") + ")"), ke = new RegExp("^(" + Object.keys(Te).join("|") + ")"), at = /^[Mm]\s?[-+]?\.?\d/, lt = /^img:/, ot = /^svguse:/, st = /^ion-/, it = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, me = te({
85
+ }, tt = new RegExp("^(" + Object.keys(Ae).join("|") + ")"), nt = new RegExp("^(" + Object.keys(Ie).join("|") + ")"), ke = new RegExp("^(" + Object.keys(Te).join("|") + ")"), at = /^[Mm]\s?[-+]?\.?\d/, lt = /^img:/, ot = /^svguse:/, st = /^ion-/, it = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, me = te({
86
86
  name: "QIcon",
87
87
  props: {
88
88
  ...ue,
@@ -141,7 +141,7 @@ const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ve = {
141
141
  let $ = " ";
142
142
  const y = i.match(tt);
143
143
  if (y !== null)
144
- o = Ve[y[1]](i);
144
+ o = Ae[y[1]](i);
145
145
  else if (it.test(i) === !0)
146
146
  o = i;
147
147
  else if (st.test(i) === !0)
@@ -166,7 +166,7 @@ const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ve = {
166
166
  style: a.value,
167
167
  "aria-hidden": "true"
168
168
  };
169
- return l.value.none === !0 ? p(e.tag, o, Ae(t.default)) : l.value.img === !0 ? p(e.tag, o, N(t.default, [
169
+ return l.value.none === !0 ? p(e.tag, o, Ve(t.default)) : l.value.img === !0 ? p(e.tag, o, N(t.default, [
170
170
  p("img", { src: l.value.src })
171
171
  ])) : l.value.svg === !0 ? p(e.tag, o, N(t.default, [
172
172
  p("svg", {
@@ -682,7 +682,7 @@ function Mt(e) {
682
682
  }
683
683
  const { passiveCapture: I } = de;
684
684
  let U = null, H = null, X = null;
685
- const At = te({
685
+ const Vt = te({
686
686
  name: "QBtn",
687
687
  props: {
688
688
  ...Rt,
@@ -761,17 +761,17 @@ const At = te({
761
761
  }
762
762
  }
763
763
  function O(c) {
764
- d.value !== null && (n("keydown", c), le(c, [13, 32]) === !0 && H !== d.value && (H !== null && g(), c.defaultPrevented !== !0 && (c.qAvoidFocus !== !0 && d.value.focus(), H = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("keyup", V, !0), d.value.addEventListener("blur", V, I)), D(c)));
764
+ d.value !== null && (n("keydown", c), le(c, [13, 32]) === !0 && H !== d.value && (H !== null && g(), c.defaultPrevented !== !0 && (c.qAvoidFocus !== !0 && d.value.focus(), H = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("keyup", A, !0), d.value.addEventListener("blur", A, I)), D(c)));
765
765
  }
766
766
  function j(c) {
767
- d.value !== null && (n("touchstart", c), c.defaultPrevented !== !0 && (U !== d.value && (U !== null && g(), U = d.value, u = c.target, u.addEventListener("touchcancel", V, I), u.addEventListener("touchend", V, I)), m = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
767
+ d.value !== null && (n("touchstart", c), c.defaultPrevented !== !0 && (U !== d.value && (U !== null && g(), U = d.value, u = c.target, u.addEventListener("touchcancel", A, I), u.addEventListener("touchend", A, I)), m = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
768
768
  v = null, m = !1;
769
769
  }, 200)));
770
770
  }
771
771
  function F(c) {
772
- d.value !== null && (c.qSkipRipple = m === !0, n("mousedown", c), c.defaultPrevented !== !0 && X !== d.value && (X !== null && g(), X = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("mouseup", V, I)));
772
+ d.value !== null && (c.qSkipRipple = m === !0, n("mousedown", c), c.defaultPrevented !== !0 && X !== d.value && (X !== null && g(), X = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("mouseup", A, I)));
773
773
  }
774
- function V(c) {
774
+ function A(c) {
775
775
  if (d.value !== null && !((c == null ? void 0 : c.type) === "blur" && document.activeElement === d.value)) {
776
776
  if ((c == null ? void 0 : c.type) === "keyup") {
777
777
  if (H === d.value && le(c, [13, 32]) === !0) {
@@ -786,7 +786,7 @@ const At = te({
786
786
  function g(c) {
787
787
  var x, J;
788
788
  const B = q.value;
789
- c !== !0 && (U === d.value || X === d.value) && B !== null && B !== document.activeElement && (B.setAttribute("tabindex", -1), B.focus()), U === d.value && (u !== null && (u.removeEventListener("touchcancel", V, I), u.removeEventListener("touchend", V, I)), U = u = null), X === d.value && (document.removeEventListener("mouseup", V, I), X = null), H === d.value && (document.removeEventListener("keyup", V, !0), (x = d.value) == null || x.removeEventListener("blur", V, I), H = null), (J = d.value) == null || J.classList.remove("q-btn--active");
789
+ c !== !0 && (U === d.value || X === d.value) && B !== null && B !== document.activeElement && (B.setAttribute("tabindex", -1), B.focus()), U === d.value && (u !== null && (u.removeEventListener("touchcancel", A, I), u.removeEventListener("touchend", A, I)), U = u = null), X === d.value && (document.removeEventListener("mouseup", A, I), X = null), H === d.value && (document.removeEventListener("keyup", A, !0), (x = d.value) == null || x.removeEventListener("blur", A, I), H = null), (J = d.value) == null || J.classList.remove("q-btn--active");
790
790
  }
791
791
  function M(c) {
792
792
  D(c), c.qSkipRipple = !0;
@@ -857,7 +857,7 @@ const At = te({
857
857
  );
858
858
  };
859
859
  }
860
- }), Vt = /* @__PURE__ */ K({
860
+ }), At = /* @__PURE__ */ K({
861
861
  __name: "AppButton",
862
862
  props: {
863
863
  size: { default: z.MD },
@@ -894,7 +894,7 @@ const At = te({
894
894
  `app-btn_${t.size}`,
895
895
  `app-btn_${t.color}`
896
896
  ]);
897
- return (a, s) => (b(), ae(Z(At), {
897
+ return (a, s) => (b(), ae(Z(Vt), {
898
898
  "no-caps": "",
899
899
  unelevated: "",
900
900
  class: P(n.value),
@@ -918,11 +918,11 @@ const At = te({
918
918
  `icon-kl-${a.iconLeft || a.iconMiddle}`,
919
919
  a.transparent || a.flat ? `text-${a.color}` : "text-secondary"
920
920
  ])
921
- }, null, 2)) : A("", !0),
921
+ }, null, 2)) : V("", !0),
922
922
  se(a.$slots, "default", {}, void 0, !0),
923
923
  a.label ? (b(), _(ie, { key: 1 }, [
924
924
  Pe(Y(a.label), 1)
925
- ], 64)) : A("", !0),
925
+ ], 64)) : V("", !0),
926
926
  a.iconRight ? (b(), _("i", {
927
927
  key: 2,
928
928
  class: P([
@@ -931,7 +931,7 @@ const At = te({
931
931
  `icon-kl-${a.iconRight}`,
932
932
  a.transparent ? `text-${a.color}` : "text-secondary"
933
933
  ])
934
- }, null, 2)) : A("", !0)
934
+ }, null, 2)) : V("", !0)
935
935
  ]),
936
936
  _: 3
937
937
  }, 8, ["class", "padding", "loading", "disable", "to", "href", "target", "type", "aria-label", "download"]));
@@ -941,7 +941,7 @@ const At = te({
941
941
  for (const [a, s] of t)
942
942
  n[a] = s;
943
943
  return n;
944
- }, Mn = /* @__PURE__ */ G(Vt, [["__scopeId", "data-v-44d5548c"]]), It = {
944
+ }, Mn = /* @__PURE__ */ G(At, [["__scopeId", "data-v-c9951ab6"]]), It = {
945
945
  key: 0,
946
946
  class: "app-toggle__label app-toggle__label_left"
947
947
  }, Tt = { class: "app-toggle__container" }, zt = ["checked", "disabled"], Ot = { class: "app-toggle__thumb" }, jt = {
@@ -979,7 +979,7 @@ const At = te({
979
979
  return (o, i) => (b(), _("div", {
980
980
  class: P(l.value)
981
981
  }, [
982
- o.label && o.labelLeft ? (b(), _("span", It, Y(o.label), 1)) : A("", !0),
982
+ o.label && o.labelLeft ? (b(), _("span", It, Y(o.label), 1)) : V("", !0),
983
983
  T("label", Tt, [
984
984
  T("input", {
985
985
  type: "checkbox",
@@ -995,7 +995,7 @@ const At = te({
995
995
  o.icon && !o.modelValue ? (b(), _("i", {
996
996
  key: 0,
997
997
  class: P(["icon-kl", `icon-kl-${o.icon}`, "app-toggle__icon"])
998
- }, null, 2)) : A("", !0),
998
+ }, null, 2)) : V("", !0),
999
999
  o.modelValue && (o.iconActive || o.icon) ? (b(), _("i", {
1000
1000
  key: 1,
1001
1001
  class: P([
@@ -1004,12 +1004,12 @@ const At = te({
1004
1004
  "app-toggle__icon",
1005
1005
  s.value ? `text-${o.iconColor}` : ""
1006
1006
  ])
1007
- }, null, 2)) : A("", !0)
1007
+ }, null, 2)) : V("", !0)
1008
1008
  ])
1009
1009
  ], 2),
1010
1010
  se(o.$slots, "default", {}, void 0, !0)
1011
1011
  ]),
1012
- o.label && !o.labelLeft ? (b(), _("span", jt, Y(o.label), 1)) : A("", !0)
1012
+ o.label && !o.labelLeft ? (b(), _("span", jt, Y(o.label), 1)) : V("", !0)
1013
1013
  ], 2));
1014
1014
  }
1015
1015
  }), xt = /* @__PURE__ */ G(Dt, [["__scopeId", "data-v-c6702cb0"]]), Ne = {
@@ -1049,7 +1049,7 @@ function Ft(e = {}) {
1049
1049
  );
1050
1050
  };
1051
1051
  }
1052
- function An(e) {
1052
+ function Vn(e) {
1053
1053
  return r(() => e.name || e.for);
1054
1054
  }
1055
1055
  const Qt = {
@@ -1144,9 +1144,9 @@ function Xt(e, t) {
1144
1144
  function F(g) {
1145
1145
  (g.keyCode === 13 || g.keyCode === 32) && R(g);
1146
1146
  }
1147
- const V = t(u, v);
1147
+ const A = t(u, v);
1148
1148
  return Object.assign(l, { toggle: R }), () => {
1149
- const g = V();
1149
+ const g = A();
1150
1150
  n.disable !== !0 && k(
1151
1151
  g,
1152
1152
  "unshift",
@@ -1160,7 +1160,7 @@ function Xt(e, t) {
1160
1160
  }, g)
1161
1161
  ];
1162
1162
  y.value !== null && M.push(y.value);
1163
- const c = n.label !== void 0 ? N(a.default, [n.label]) : Ae(a.default);
1163
+ const c = n.label !== void 0 ? N(a.default, [n.label]) : Ve(a.default);
1164
1164
  return c !== void 0 && M.push(
1165
1165
  p("div", {
1166
1166
  class: `q-${e}__label q-anchor--skip`
@@ -1301,7 +1301,7 @@ const tn = Me(
1301
1301
  iconSize: {},
1302
1302
  color: {},
1303
1303
  iconRight: {},
1304
- noArrow: { type: Boolean },
1304
+ arrow: { type: Boolean },
1305
1305
  toggle: { type: Boolean },
1306
1306
  checkbox: { type: Boolean },
1307
1307
  active: { type: Boolean },
@@ -1338,20 +1338,20 @@ const tn = Me(
1338
1338
  ])) : (b(), _(ie, { key: 1 }, [
1339
1339
  l.checked ? (b(), _("div", an, [...o[2] || (o[2] = [
1340
1340
  T("i", { class: "icon-kl icon-kl-check" }, null, -1)
1341
- ])])) : A("", !0),
1341
+ ])])) : V("", !0),
1342
1342
  l.checkbox ? (b(), ae(Yt, {
1343
1343
  key: 1,
1344
1344
  class: "menu-item__checkbox",
1345
1345
  size: "34px",
1346
1346
  "model-value": l.modelValue,
1347
1347
  "onUpdate:modelValue": o[0] || (o[0] = (i) => a("update:modelValue", i))
1348
- }, null, 8, ["model-value"])) : A("", !0),
1348
+ }, null, 8, ["model-value"])) : V("", !0),
1349
1349
  l.icon ? (b(), _("div", ln, [
1350
1350
  T("i", {
1351
1351
  class: P(`icon-kl icon-kl-${l.icon}`),
1352
1352
  style: re({ fontSize: l.iconSize || "27px" })
1353
1353
  }, null, 6)
1354
- ])) : A("", !0)
1354
+ ])) : V("", !0)
1355
1355
  ], 64)),
1356
1356
  T("span", on, Y(l.label), 1)
1357
1357
  ], 2),
@@ -1367,12 +1367,12 @@ const tn = Me(
1367
1367
  "menu-item__icon-right menu-item__icon-right_custom icon-kl",
1368
1368
  `icon-kl-${l.iconRight}`
1369
1369
  ])
1370
- }, null, 2)) : !l.noArrow && !l.loading ? (b(), _("i", sn)) : A("", !0)
1370
+ }, null, 2)) : l.arrow ? (b(), _("i", sn)) : V("", !0)
1371
1371
  ], 2)), [
1372
1372
  [tn, !l.toggle && !l.checkbox && !l.persistent && !l.disabled]
1373
1373
  ]);
1374
1374
  }
1375
- }), Vn = /* @__PURE__ */ G(rn, [["__scopeId", "data-v-ad1350d0"]]), un = /* @__PURE__ */ K({
1375
+ }), An = /* @__PURE__ */ G(rn, [["__scopeId", "data-v-6b725efb"]]), un = /* @__PURE__ */ K({
1376
1376
  __name: "AppIcon",
1377
1377
  props: {
1378
1378
  name: {},
@@ -1536,7 +1536,7 @@ const dn = te({
1536
1536
  class: P(i.value),
1537
1537
  style: re($.value)
1538
1538
  }, [
1539
- u.label ? (b(), _("label", fn, Y(u.label), 1)) : A("", !0),
1539
+ u.label ? (b(), _("label", fn, Y(u.label), 1)) : V("", !0),
1540
1540
  T("div", vn, [
1541
1541
  (b(!0), _(ie, null, Le(u.length, (v, h) => oe((b(), _("input", {
1542
1542
  key: h,
@@ -1561,7 +1561,7 @@ const dn = te({
1561
1561
  rounded: "",
1562
1562
  color: u.color,
1563
1563
  class: "code-field__loading"
1564
- }, null, 8, ["color"])) : A("", !0)
1564
+ }, null, 8, ["color"])) : V("", !0)
1565
1565
  ], 6));
1566
1566
  }
1567
1567
  }), Tn = /* @__PURE__ */ G(mn, [["__scopeId", "data-v-4e11db87"]]), gn = { class: "app-segment__track" }, hn = { class: "app-segment__buttons" }, bn = ["onClick", "disabled"], kn = /* @__PURE__ */ K({
@@ -1609,15 +1609,15 @@ const dn = te({
1609
1609
  ], 2));
1610
1610
  }
1611
1611
  }), zn = /* @__PURE__ */ G(kn, [["__scopeId", "data-v-ff56abdf"]]), On = ge(
1612
- () => import("./AppButtonCopy-rkIJl8t7.js")
1612
+ () => import("./AppButtonCopy-DD7r5RW-.js")
1613
1613
  ), jn = ge(
1614
- () => import("./AppSelect-wGAcCCc9.js")
1614
+ () => import("./AppSelect-C77b9lc7.js")
1615
1615
  ), Dn = ge(
1616
- () => import("./DropdownButton-DTKHCdbp.js")
1616
+ () => import("./DropdownButton-CLFfWb2S.js")
1617
1617
  );
1618
1618
  export {
1619
1619
  Mn as A,
1620
- At as B,
1620
+ Vt as B,
1621
1621
  Re as C,
1622
1622
  vt as D,
1623
1623
  pt as E,
@@ -1631,7 +1631,7 @@ export {
1631
1631
  Dn as M,
1632
1632
  On as N,
1633
1633
  jn as O,
1634
- Vn as P,
1634
+ An as P,
1635
1635
  me as Q,
1636
1636
  ht as R,
1637
1637
  z as S,
@@ -1648,7 +1648,7 @@ export {
1648
1648
  ce as e,
1649
1649
  Sn as f,
1650
1650
  qn as g,
1651
- Ae as h,
1651
+ Ve as h,
1652
1652
  Ln as i,
1653
1653
  Ct as j,
1654
1654
  le as k,
@@ -1660,7 +1660,7 @@ export {
1660
1660
  wn as q,
1661
1661
  Kt as r,
1662
1662
  D as s,
1663
- An as t,
1663
+ Vn as t,
1664
1664
  Ne as u,
1665
1665
  mt as v,
1666
1666
  Oe as w,