2 lines
39 KiB
JavaScript
2 lines
39 KiB
JavaScript
|
import{aK as Bt,d as I,t as Oe,a as jt,a9 as yt,aL as mn,b as ee,ad as Ze,_ as se,aM as _t,ay as $e,aj as Ft,I as hn,D as yn,L as bn,e as Dt,ax as bt,ap as wn}from"./cross-icon.71cd4afa.js";import{c as R,$ as De,U as F,o as Ke,a6 as On,H as c,al as Tn,r as j,e as Se,as as En,at as Cn,au as xn,F as Ce,d as L,E as ie,I as ke,G as le,t as Z,v as He,K as Lt,W as Rn,a2 as Je,Q as Nt,av as An,ag as Pn,O as Sn,aq as kn,aw as In,z as xe,J as ce,A as te,M as Xe,L as Re,ap as Mn,am as we,a9 as Bn,aa as jn,ab as _n,a4 as Fn,ax as Dn,ay as Ln,y as Nn}from"./entry.488ec7de.js";const Y=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const a=e==null?void 0:e(r);if(n===!1||!a)return t==null?void 0:t(r)},$n=Bt({type:I(Boolean),default:null}),Hn=Bt({type:I(Function)}),$t=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],r={[e]:$n,[n]:Hn};return{useModelToggle:({indicator:i,toggleReason:u,shouldHideWhenRouteChanges:s,shouldProceed:l,onShow:f,onHide:d})=>{const y=On(),{emit:g}=y,m=y.props,v=R(()=>De(m[n])),T=R(()=>m[e]===null),p=O=>{i.value!==!0&&(i.value=!0,u&&(u.value=O),De(f)&&f(O))},w=O=>{i.value!==!1&&(i.value=!1,u&&(u.value=O),De(d)&&d(O))},E=O=>{if(m.disabled===!0||De(l)&&!l())return;const x=v.value&&Oe;x&&g(t,!0),(T.value||!x)&&p(O)},h=O=>{if(m.disabled===!0||!Oe)return;const x=v.value&&Oe;x&&g(t,!1),(T.value||!x)&&w(O)},C=O=>{jt(O)&&(m.disabled&&O?v.value&&g(t,!1):i.value!==O&&(O?p():w()))},A=()=>{i.value?h():E()};return F(()=>m[e],C),s&&y.appContext.config.globalProperties.$route!==void 0&&F(()=>({...y.proxy.$route}),()=>{s.value&&i.value&&h()}),Ke(()=>{C(m[e])}),{hide:h,show:E,toggle:A,hasUpdateHandler:v}},useModelToggleProps:r,useModelToggleEmits:o}};$t("modelValue");var H="top",q="bottom",z="right",W="left",Ye="auto",Ie=[H,q,z,W],fe="start",Ae="end",Wn="clippingParents",Ht="viewport",be="popper",Kn="reference",wt=Ie.reduce(function(e,t){return e.concat([t+"-"+fe,t+"-"+Ae])},[]),Qe=[].concat(Ie,[Ye]).reduce(function(e,t){return e.concat([t,t+"-"+fe,t+"-"+Ae])},[]),qn="beforeRead",zn="read",Un="afterRead",Vn="beforeMain",Zn="main",Jn="afterMain",Gn="beforeWrite",Xn="write",Yn="afterWrite",Qn=[qn,zn,Un,Vn,Zn,Jn,Gn,Xn,Yn];function G(e){return e?(e.nodeName||"").toLowerCase():null}function U(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function de(e){var t=U(e).Element;return e instanceof t||e instanceof Element}function K(e){var t=U(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function et(e){if(typeof ShadowRoot>"u")return!1;var t=U(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function eo(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},a=t.elements[n];!K(a)||!G(a)||(Object.assign(a.style,o),Object.keys(r).forEach(function(i){var u=r[i];u===!1?a.removeAttribute(i):a.setAttribute(i,u===!0?"":u)}))})}function to(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],a=t.attributes[o]||{},i=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),u=i.reduce(function(s,l){return s[l]="",s},{});!K(r)||!G(r)||(Object.assign(r.style,u),Object.keys(a).forEach(function(s){r.removeAttribute(s)}))})}}var Wt={name:"applyStyles",enabled:!0,phase:"write",fn:eo,effect:to,requires:["computeStyles"]};function J(e){return e.split("-")[0]}var ae=Math.max,We=Math.min,ve=Math.round;function ge(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(K(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(o=ve(n.width)/i||1),a>0&&(r=ve(n.height)/a||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function tt(e){var t=ge(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.heig
|