1import{C as e,F as t,I as n,M as r,T as i,W as a,f as o,i as s,k as c,m as l,n as u,tt as d}from"./inject-obj-prop-DZ_J51Hg.js";import{s as f}from"./is-Cpg3R4Ao.js";import{i as p,o as m}from"./render-047kEs9y.js";import"./event-CCrGlHQk.js";import{c as h,l as g,m as _}from"./user-COzq_WXn.js";import{n as v}from"./QIcon-DQ0zo7K4.js";import{a as y,o as b,u as x}from"./use-router-link-BdyGrRKN.js";import{t as S}from"./prevent-scroll-kInvSfq3.js";import{n as ee,t as te}from"./use-tick-BuEP0kZU.js";import{d as C,l as ne,u as w}from"./use-key-composition-DbkMaHx_.js";function T(e,t,n){let i;function a(){i!==void 0&&(_.remove(i),i=void 0)}return r(()=>{e.value&&a()}),{removeFromHistory:a,addToHistory(){i={condition:()=>n.value,handler:t},_.add(i)}}}var E={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},D=[`beforeShow`,`show`,`beforeHide`,`hide`];function O({showing:n,canShow:r,hideOnRouteChange:i,handleShow:o,handleHide:s,processOnMount:l}){let u=e(),{props:d,emit:f,proxy:p}=u,m;function h(e){n.value?v(e):g(e)}function g(e){if(d.disable||e?.qAnchorHandled===!0||r!==void 0&&!r(e))return;let t=d[`onUpdate:modelValue`]!==void 0;t&&(f(`update:modelValue`,!0),m=e,c(()=>{m===e&&(m=void 0)})),(d.modelValue===null||!t)&&_(e)}function _(e){n.value||(n.value=!0,f(`beforeShow`,e),o===void 0?f(`show`,e):o(e))}function v(e){if(d.disable)return;let t=d[`onUpdate:modelValue`]!==void 0;t&&(f(`update:modelValue`,!1),m=e,c(()=>{m===e&&(m=void 0)})),(d.modelValue===null||!t)&&y(e)}function y(e){n.value&&(n.value=!1,f(`beforeHide`,e),s===void 0?f(`hide`,e):s(e))}function x(e){d.disable&&e?d[`onUpdate:modelValue`]!==void 0&&f(`update:modelValue`,!1):e===!0!==n.value&&(e?_:y)(m)}a(()=>d.modelValue,x),i!==void 0&&b(u)&&a(()=>p.$route.fullPath,()=>{i.value&&n.value&&v()}),l&&t(()=>{x(d.modelValue)});let S={show:g,hide:v,toggle:h};return Object.assign(p,S),S}var k={transitionShow:{type:String,default:`fade`},transitionHide:{type:String,default:`fade`},transitionDuration:{type:[String,Number],default:300}};function re(e,t=()=>{},n=()=>{}){return{transitionProps:l(()=>{let r=`q-transition--${e.transitionShow||t()}`,i=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${r}-enter-from`,enterActiveClass:`${r}-enter-active`,enterToClass:`${r}-enter-to`,leaveFromClass:`${i}-leave-from`,leaveActiveClass:`${i}-leave-active`,leaveToClass:`${i}-leave-to`}}),transitionStyle:l(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}var A=[];function j(e){return A.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function M(e,t){do{if(e.$options.name===`QMenu`){if(e.hide(t),e.$props.separateClosePopup)return y(e)}else if(e.__qPortal){let n=y(e);return n?.$options.name===`QPopupProxy`?(e.hide(t),n):e}e=y(e)}while(e!=null)}function N(e,t,n){for(;n!==0&&e!=null;){if(e.__qPortal){if(n--,e.$options.name===`QMenu`){e=M(e,t);continue}e.hide(t)}e=y(e)}}var P=m({name:`QPortal`,setup(e,{slots:t}){return()=>t.default()}});function F(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 I(e,t,r,a){let s=d(!1),c=d(!1),l=null,f={},p=a===`dialog`&&F(e);function m(t){if(t){C(f),c.value=!0;return}c.value=!1,s.value||(!p&&l===null&&(l=h(!1,a)),s.value=!0,A.push(e.proxy),w(f))}function _(t){if(c.value=!1,!t)return;C(f),s.value=!1;let n=A.indexOf(e.proxy);n!==-1&&A.splice(n,1),l!==null&&(g(l),l=null)}return n(()=>{_(!0)}),e.proxy.__qPortal=!0,u(e.proxy,`contentEl`,()=>t.value),{showPortal:m,hidePortal:_,portalIsActive:s,portalIsAccessible:c,renderPortal:()=>p?r():s.value?[i(o,{to:l},i(P,r))]:void 0}}function ie(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t)&&(e=t,S(t))}}}var L=[],R;function ae(e){R=e.keyCode===27}function z(){R&&=!1}function B(e){R&&(R=!1,v(e,27)&&L.at(-1)(e))}function V(e){window[e](`keydown`,ae),window[e](`blur`,z),window[e](`keyup`,B),R=!1}function H(e){f.is.desktop&&(L.push(e),L.length===1&&V(`addEventListener`))}function U(e){let t=L.indexOf(e);t!==-1&&(L.splice(t,1),L.length===0&&V(`removeEventListener`))}var W=[];function G(e){W.at(-1)(e)}function K(e){f.is.desktop&&(W.push(e),W.length===1&&document.body.addEventListener(`focusin`,G))}function q(e){let t=W.indexOf(e);t!==-1&&(W.splice(t,1),W.length===0&&document.body.removeEventListener(`focusin`,G))}
1var J=0,oe={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`},se={standard:[`scale`,`scale`],top:[`slide-down`,`slide-up`],bottom:[`slide-up`,`slide-down`],right:[`slide-left`,`slide-right`],left:[`slide-right`,`slide-left`]},Y=m({name:`QDialog`,inheritAttrs:!1,props:{...E,...k,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:[...D,`shake`,`click`,`escapeKey`],setup(t,{slots:n,emit:o,attrs:c}){let u=e(),f=d(null),m=d(!1),h=d(!1),g=null,_=null,v=!1,y=!1,b=l(()=>!t.persistent&&!t.noRouteDismiss&&!t.seamless),{preventBodyScroll:S}=ie(),{registerTimeout:C}=ee(),{registerTick:w,removeTick:E}=te(),{transitionProps:D,transitionStyle:k}=re(t,()=>se[t.position][0],()=>se[t.position][1]),A=l(()=>k.value+(t.backdropFilter===void 0?``:`;backdrop-filter:${t.backdropFilter};-webkit-backdrop-filter:${t.backdropFilter}`)),{showPortal:j,hidePortal:M,portalIsAccessible:N,renderPortal:P}=I(u,f,de,`dialog`),{hide:F}=O({showing:m,hideOnRouteChange:b,handleShow:W,handleHide:G,processOnMount:!0}),{addToHistory:L,removeFromHistory:R}=T(m,F,b),ae=l(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${t.maximized?`maximized`:`minimized`} q-dialog__inner--${t.position} ${oe[t.position]}`+(h.value?` q-dialog__inner--animating`:``)+(t.fullWidth?` q-dialog__inner--fullwidth`:``)+(t.fullHeight?` q-dialog__inner--fullheight`:``)+(t.square?` q-dialog__inner--square`:``)),z=l(()=>m.value&&!t.seamless),B=l(()=>t.autoClose?{onClick:le}:{}),V=l(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${z.value?`modal`:`seamless`}`,c.class]);a(()=>t.maximized,e=>{m.value&&Q(e)}),a(z,e=>{S(e),e?(K($),H(Z)):(q($),U(Z))});function W(e){L(),_=!t.noRefocus&&document.activeElement!==null?document.activeElement:null,Q(t.maximized),j(),h.value=!0,t.noFocus?E():(document.activeElement?.blur(),w(Y)),C(()=>{if(u.proxy.$q.platform.is.ios){if(!t.seamless&&document.activeElement){let{top:e,bottom:t}=document.activeElement.getBoundingClientRect(),{innerHeight:n}=window,r=window.visualViewport===void 0?n:window.visualViewport.height;e>0&&t>r/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-r,t>=n?1/0:Math.ceil(document.scrollingElement.scrollTop+t-r/2))),document.activeElement.scrollIntoView()}y=!0,f.value.click(),y=!1}j(!0),h.value=!1,o(`show`,e)},t.transitionDuration)}function G(e){E(),R(),ce(!0),h.value=!0,M(),_!==null&&(((e?.type.indexOf(`key`)===0?_.closest(`[tabindex]:not([tabindex^="-"])`):void 0)||_).focus(),_=null),C(()=>{M(!0),h.value=!1,o(`hide`,e)},t.transitionDuration)}function Y(e){ne(()=>{let t=f.value;if(t!==null){if(e!==void 0){let n=t.querySelector(e);if(n!==null){n.focus({preventScroll:!0});return}}t.contains(document.activeElement)||(t=t.querySelector(`[autofocus][tabindex], [data-autofocus][tabindex]`)||t.querySelector(`[autofocus] [tabindex], [data-autofocus] [tabindex]`)||t.querySelector(`[autofocus], [data-autofocus]`)||t,t.focus({preventScroll:!0}))}})}function X(e){e&&typeof e.focus==`function`?e.focus({preventScroll:!0}):Y(),o(`shake`);let t=f.value;t!==null&&(t.classList.remove(`q-animate--scale`),t.classList.add(`q-animate--scale`),g!==null&&clearTimeout(g),g=setTimeout(()=>{g=null,f.value!==null&&(t.classList.remove(`q-animate--scale`),Y())},170))}function Z(){t.seamless||(t.persistent||t.noEscDismiss?!t.maximized&&!t.noShake&&X():(o(`escapeKey`),F()))}function ce(e){g!==null&&(clearTimeout(g),g=null),(e||m.value)&&(Q(!1),t.seamless||(S(!1),q($),U(Z))),e||(_=null)}function Q(e){e?v||=(J<1&&document.body.classList.add(`q-body--dialog`),J++,!0):v&&=(J<2&&document.body.classList.remove(`q-body--dialog`),J--,!1)}function le(e){y||(F(e),o(`click`,e))}function ue(e){!t.persistent&&!t.noBackdropDismiss?F(e):t.noShake||X()}function $(e){!t.allowFocusOutside&&N.value&&!x(f.value,e.target)&&Y(`[tabindex]:not
1([tabindex="-1"])`)}Object.assign(u.proxy,{focus:Y,shake:X,__updateRefocusTarget(e){_=e||null}}),r(ce);function de(){return i(`div`,{role:`dialog`,"aria-modal":z.value?`true`:`false`,...c,class:V.value},[i(s,{name:`q-transition--fade`,appear:!0},()=>z.value?i(`div`,{class:`q-dialog__backdrop fixed-full`,style:A.value,"aria-hidden":`true`,onClick:ue}):null),i(s,D.value,()=>m.value?i(`div`,{ref:f,class:ae.value,style:k.value,tabindex:-1,...B.value},p(n.default)):null)])}return P}});export{T as _,U as a,M as c,A as d,re as f,E as g,D as h,H as i,N as l,O as m,K as n,ie as o,k as p,q as r,I as s,Y as t,j as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.