1import{D as e,K as t,N as n,b as r}from"./runtime-core.esm-bundler-BT8nuk6-.js";import{c as i}from"./_plugin-vue_export-helper-BUYFFUka.js";var a={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},o=[`beforeShow`,`show`,`beforeHide`,`hide`];function s({showing:a,canShow:o,hideOnRouteChange:s,handleShow:c,handleHide:l,handleRouteChange:u,processOnMount:d}){let f=r(),{props:p,emit:m,proxy:h}=f,g;function _(e){a.value?b(e):v(e)}function v(t){if(p.disable||(t==null?void 0:t.qAnchorHandled)===!0||o!==void 0&&!o(t))return;let n=p[`onUpdate:modelValue`]!==void 0;n&&(m(`update:modelValue`,!0),g=t,e(()=>{g===t&&(g=void 0)})),(p.modelValue===null||!n)&&y(t)}function y(e){a.value||(a.value=!0,m(`beforeShow`,e),c===void 0?m(`show`,e):c(e))}function b(t){if(p.disable)return;let n=p[`onUpdate:modelValue`]!==void 0;n&&(m(`update:modelValue`,!1),g=t,e(()=>{g===t&&(g=void 0)})),(p.modelValue===null||!n)&&x(t)}function x(e){a.value&&(a.value=!1,m(`beforeHide`,e),l===void 0?m(`hide`,e):l(e))}function S(e){p.disable&&e?p[`onUpdate:modelValue`]!==void 0&&m(`update:modelValue`,!1):e===!0!==a.value&&(e?y:x)(g)}t(()=>p.modelValue,S),s!==void 0&&i(f)&&t(()=>h.$route.fullPath,()=>{s.value&&a.value&&(u==null||u(),b())}),d&&n(()=>{S(p.modelValue)});let C={show:v,hide:b,toggle:_};return Object.assign(h,C),C}export{o as n,a as r,s as t};
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.