Files
appco_dist/.output/public/_nuxt/B6YAPRst.js
T

2 lines
11 KiB
JavaScript
Raw Normal View History

2026-02-01 21:53:26 +03:30
import{i as Ce,a as xe,n as Pe,t as w,b as C,c as x,m as P,d as k,e as D,f as ke,w as E,u as ae,g as _,h as Se,s as Te,p as Ee,j as _e}from"./DkKOCi34.js";import{aT as se,af as ce,k as L,r as y,I as Z,aU as N,a9 as re,bx as Ae,dd as U,bj as Be,$,o as le,ae as V,d2 as ie,J as G,d as A,C as d,de as T,e as ze,T as ue,cU as de,a5 as fe,a6 as ve,a0 as De}from"./CqMGdh3i.js";var H=typeof window<"u";function xn(e){const n=se(e,null);if(n){const t=N(),{link:a,unlink:s,internalChildren:r}=n;a(t),ce(()=>s(t));const l=L(()=>r.indexOf(t));return{parent:n,index:l}}return{parent:null,index:y(-1)}}function Le(e){const n=[],t=a=>{Array.isArray(a)&&a.forEach(s=>{var r;Ae(s)&&(n.push(s),(r=s.component)!=null&&r.subTree&&(n.push(s.component.subTree),t(s.component.subTree.children)),s.children&&t(s.children))})};return t(e),n}var J=(e,n)=>{const t=e.indexOf(n);return t===-1?e.findIndex(a=>n.key!==void 0&&n.key!==null&&a.type===n.type&&a.key===n.key):t};function Ne(e,n,t){const a=Le(e.subTree.children);t.sort((r,l)=>J(a,r.vnode)-J(a,l.vnode));const s=t.map(r=>r.proxy);n.sort((r,l)=>{const o=s.indexOf(r),i=s.indexOf(l);return o-i})}function Pn(e){const n=Z([]),t=Z([]),a=N();return{children:n,linkChildren:r=>{re(e,Object.assign({link:i=>{i.proxy&&(t.push(i),n.push(i.proxy),Ne(a,n,t))},unlink:i=>{const u=t.indexOf(i);n.splice(u,1),t.splice(u,1)},children:n,internalChildren:t},r))}}}function me(e){let n;le(()=>{e(),V(()=>{n=!0})}),ie(()=>{n&&e()})}function ye(e,n,t={}){if(!H)return;const{target:a=window,passive:s=!1,capture:r=!1}=t;let l=!1,o;const i=c=>{if(l)return;const v=G(c);v&&!o&&(v.addEventListener(e,n,{capture:r,passive:s}),o=!0)},u=c=>{if(l)return;const v=G(c);v&&o&&(v.removeEventListener(e,n,r),o=!1)};ce(()=>u(a)),U(()=>u(a)),me(()=>i(a));let f;return Be(a)&&(f=$(a,(c,v)=>{u(v),i(c)})),()=>{f?.(),u(a),l=!0}}var z,M;function $e(){if(!z&&(z=y(0),M=y(0),H)){const e=()=>{z.value=window.innerWidth,M.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:z,height:M}}var Re=/scroll|auto|overlay/i,Ye=H?window:void 0;function je(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Me(e,n=Ye){let t=e;for(;t&&t!==n&&je(t);){const{overflowY:a}=window.getComputedStyle(t);if(Re.test(a))return t;t=t.parentNode}return n}Ce();const Ke=e=>e.stopPropagation();function he(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),Ke(e)}$e();const kn="van-hairline",ge="van-haptics-feedback",q=5;function Ue(e,{args:n=[],done:t,canceled:a,error:s}){if(e){const r=e.apply(null,n);xe(r)?r.then(l=>{l?t():a&&a()}).catch(s||Pe):r?t():a&&a()}else t()}const[Ve,Q]=k("badge"),He={dot:Boolean,max:C,tag:P("div"),color:String,offset:Array,content:C,showZero:w,position:P("top-right")};var Xe=A({name:Ve,props:He,setup(e,{slots:n}){const t=()=>{if(n.content)return!0;const{content:o,showZero:i}=e;return D(o)&&o!==""&&(i||o!==0&&o!=="0")},a=()=>{const{dot:o,max:i,content:u}=e;if(!o&&t())return n.content?n.content():D(i)&&ke(u)&&+u>+i?`${i}+`:u},s=o=>o.startsWith("-")?o.replace("-",""):`-${o}`,r=L(()=>{const o={background:e.color};if(e.offset){const[i,u]=e.offset,{position:f}=e,[c,v]=f.split("-");n.default?(typeof u=="number"?o[c]=x(c==="top"?u:-u):o[c]=c==="top"?x(u):s(u),typeof i=="number"?o[v]=x(v==="left"?i:-i):o[v]=v==="left"?x(i):s(i)):(o.marginTop=x(u),o.marginLeft=x(i))}return o}),l=()=>{if(t()||e.dot)return d("div",{class:Q([e.position,{dot:e.dot,fixed:!!n.default}]),style:r.value},[a()])};return()=>{if(n.default){const{tag:o}=e;return d(o,{class:Q("wrapper")},{default:()=>[n.default(),l()]})}return l()}}});const Fe=E(Xe);let We=2e3;const Ze=()=>++We,[Ge]=k("config-provider"),Je=Symbol(Ge),[qe,ee]=k("icon"),Qe=e=>e?.includes("/"),en={dot:Boolean,tag:P("i"),name:String,size:C,badge:C,color:String,badgeProps:Object,classPrefix:String};var nn=A({name:qe,props:en,setup(e,{slots:n}){const t=se(Je,null),a=L(()=>e.classPrefix||t?.iconPrefix||ee());return()=>{const{tag:s,dot:r,name:l,size:o,badge:i,color:u}=e,f=Qe(l);return d(Fe,T({dot:r,tag:s,cl