Files
YG_FT/frontend/dist/assets/el-popper-CLrIR86e.js

2 lines
39 KiB
JavaScript
Raw Normal View History

import{cM as Ht,R as F,D as $,G as qe,N as En,k as Je,j as T,b8 as Le,bt as Ce,y as N,f as p,H as te,aQ as Tn,c4 as Et,cN as Cn,cO as Rn,c8 as An,ak as Ge,b as _,F as Pe,d as ne,a as we,B as ue,o as Y,c as $e,al as Pn,n as $t,aU as Qe,aK as Tt,K as Wt,ao as Bn,by as Ct,a3 as Fn,M as Mn,ca as Sn,s as Be,bw as ve,e as ge,w as ee,h as se,Y as tt,g as We,a2 as Vt,cf as Rt,a8 as qt,a6 as nt,a7 as jn,bJ as In,l as Kt,W as Ye,ba as Q,V as kn,P as Dn,Q as Ut,a9 as Te,c9 as Ln,Z as Nn,L as Hn,bg as $n,bT as Wn,cP as Vn,aa as qn,bb as Kn}from"./index-OHfcEHzU.js";import{a as Un,h as At,f as zn}from"./index-DxHEHYfx.js";import{u as zt}from"./index-e-x1HcvT.js";import{f as Yn}from"./index-DLbPkASX.js";function Zn(e){return e===void 0}const Jn=Ht({type:F(Boolean),default:null}),Gn=Ht({type:F(Function)}),Qn=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],r={[e]:Jn,[n]:Gn};return{useModelToggle:({indicator:u,toggleReason:s,shouldHideWhenRouteChanges:a,shouldProceed:l,onShow:c,onHide:f})=>{const v=En(),{emit:g}=v,h=v.props,m=T(()=>Le(h[n])),x=T(()=>h[e]===null),y=O=>{u.value!==!0&&(u.value=!0,s&&(s.value=O),Le(c)&&c(O))},b=O=>{u.value!==!1&&(u.value=!1,s&&(s.value=O),Le(f)&&f(O))},E=O=>{if(h.disabled===!0||Le(l)&&!l())return;const R=m.value&&Ce;R&&g(t,!0),(x.value||!R)&&y(O)},d=O=>{if(h.disabled===!0||!Ce)return;const R=m.value&&Ce;R&&g(t,!1),(x.value||!R)&&b(O)},w=O=>{Je(O)&&(h.disabled&&O?m.value&&g(t,!1):u.value!==O&&(O?y():b()))},C=()=>{u.value?d():E()};return $(()=>h[e],w),a&&v.appContext.config.globalProperties.$route!==void 0&&$(()=>({...v.proxy.$route}),()=>{a.value&&u.value&&d()}),qe(()=>{w(h[e])}),{hide:d,show:E,toggle:C,hasUpdateHandler:m}},useModelToggleProps:r,useModelToggleEmits:o}};var W="top",U="bottom",z="right",V="left",ot="auto",Se=[W,U,z,V],me="start",Fe="end",Xn="clippingParents",Yt="viewport",Ee="popper",_n="reference",Pt=Se.reduce(function(e,t){return e.concat([t+"-"+me,t+"-"+Fe])},[]),rt=[].concat(Se,[ot]).reduce(function(e,t){return e.concat([t,t+"-"+me,t+"-"+Fe])},[]),eo="beforeRead",to="read",no="afterRead",oo="beforeMain",ro="main",ao="afterMain",io="beforeWrite",so="write",lo="afterWrite",uo=[eo,to,no,oo,ro,ao,io,so,lo];function J(e){return e?(e.nodeName||"").toLowerCase():null}function q(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function le(e){var t=q(e).Element;return e instanceof t||e instanceof Element}function K(e){var t=q(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function at(e){if(typeof ShadowRoot>"u")return!1;var t=q(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function co(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!K(i)||!J(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(u){var s=r[u];s===!1?i.removeAttribute(u):i.setAttribute(u,s===!0?"":s)}))})}function fo(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],i=t.attributes[o]||{},u=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),s=u.reduce(function(a,l){return a[l]="",a},{});!K(r)||!J(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(a){r.removeAttribute(a)}))})}}var Zt={name:"applyStyles",enabled:!0,phase:"write",fn:co,effect:fo,requires:["computeStyles"]};function Z(e){return e.split("-")[0]}var ie=Math.max,Ve=Math.min,he=Math.round;function Xe(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Jt(){return!/^((?!chrome|android).)*safari/i.test(Xe())}function ye(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&K(e)&&(r=e.offsetWidth>0&&he(o.width)/e.offsetWidth||1,i=e.offsetHe