jingcai-html-dist/public/seller/assets/index.f8944d7f.js

2 lines
18 KiB
JavaScript

import{c as U,h as ae,e as j,r as me,n as z,q as X,y as le,b as it,F as ye,j as ee,d as oe,p as Ne,H as Ie,G as Me,s as he,I as Ae,J as ct,i as st,o as De,K as pe,M as xe,f as rt,N as be,v as q,A as ze,C as ut,m as we,z as p,w as ie,E as dt,O as Ce,Q as ft,t as Q,a as Oe,R as vt,T as mt,U as Be,l as ht,B as bt,u as gt,V as Tt,S as yt,D as J,W as ue,L as xt,X as wt}from"./index.2929c215.js";import{bI as F,r as O,a as B,bA as Ve,H as h,w as P,g as Le,bQ as Ct,P as St,f as kt,u as Ue,T as V,o as It,O as Ot,D as Bt,bR as Rt,bN as $t,d as Pt,aI as _t,bu as Et,ad as Fe}from"./index.39dbb28b.js";const Ht={to:[String,Object],url:String,replace:Boolean};function Nt({to:e,url:t,replace:n,$router:l}){e&&l?l[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}const[Mt,L,Re]=U("picker"),Ke=e=>e.find(t=>!t.disabled)||e[0];function At(e,t){const n=e[0];if(n){if(Array.isArray(n))return"multiple";if(t.children in n)return"cascade"}return"default"}function ge(e,t){t=me(t,0,e.length);for(let n=t;n<e.length;n++)if(!e[n].disabled)return n;for(let n=t-1;n>=0;n--)if(!e[n].disabled)return n;return 0}const $e=(e,t,n)=>t!==void 0&&!!e.find(l=>l[n.value]===t);function Te(e,t,n){const l=e.findIndex(a=>a[n.value]===t),i=ge(e,l);return e[i]}function Dt(e,t,n){const l=[];let i={[t.children]:e},a=0;for(;i&&i[t.children];){const s=i[t.children],d=n.value[a];if(i=ae(d)?Te(s,d,t):void 0,!i&&s.length){const u=Ke(s)[t.value];i=Te(s,u,t)}a++,l.push(s)}return l}function pt(e){const{transform:t}=window.getComputedStyle(e),n=t.slice(7,t.length-1).split(", ")[5];return Number(n)}function zt(e){return j({text:"text",value:"value",children:"children"},e)}const Pe=200,_e=300,Vt=15,[We,de]=U("picker-column"),Ye=Symbol(We);var Lt=F({name:We,props:{value:z,fields:X(Object),options:le(),readonly:Boolean,allowHtml:Boolean,optionHeight:X(Number),swipeDuration:X(z),visibleOptionNum:X(z)},emits:["change","clickOption","scrollInto"],setup(e,{emit:t,slots:n}){let l,i,a,s,d;const u=O(),x=O(),T=O(0),C=O(0),m=it(),I=()=>e.options.length,y=()=>e.optionHeight*(+e.visibleOptionNum-1)/2,k=b=>{const o=ge(e.options,b),r=-o*e.optionHeight,f=()=>{const H=e.options[o][e.fields.value];H!==e.value&&t("change",H)};l&&r!==T.value?d=f:f(),T.value=r},v=()=>e.readonly||!e.options.length,_=b=>{l||v()||(d=null,C.value=Pe,k(b),t("clickOption",e.options[b]))},w=b=>me(Math.round(-b/e.optionHeight),0,I()-1),M=B(()=>w(T.value)),K=(b,o)=>{const r=Math.abs(b/o);b=T.value+r/.003*(b<0?-1:1);const f=w(b);C.value=+e.swipeDuration,k(f)},A=()=>{l=!1,C.value=0,d&&(d(),d=null)},W=b=>{if(!v()){if(m.start(b),l){const o=pt(x.value);T.value=Math.min(0,o-y())}C.value=0,i=T.value,a=Date.now(),s=i,d=null}},D=b=>{if(v())return;m.move(b),m.isVertical()&&(l=!0,Ne(b,!0));const o=me(i+m.deltaY.value,-(I()*e.optionHeight),e.optionHeight),r=w(o);r!==M.value&&t("scrollInto",e.options[r]),T.value=o;const f=Date.now();f-a>_e&&(a=f,s=o)},Y=()=>{if(v())return;const b=T.value-s,o=Date.now()-a;if(o<_e&&Math.abs(b)>Vt){K(b,o);return}const f=w(T.value);C.value=Pe,k(f),setTimeout(()=>{l=!1},0)},E=()=>{const b={height:`${e.optionHeight}px`};return e.options.map((o,r)=>{const f=o[e.fields.text],{disabled:H}=o,Z=o[e.fields.value],se={role:"button",style:b,tabindex:H?-1:0,class:[de("item",{disabled:H,selected:Z===e.value}),o.className],onClick:()=>_(r)},re={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:f};return h("li",se,[n.option?n.option(o,r):h("div",re,null)])})};return ye(Ye),ee({stopMomentum:A}),Ve(()=>{const b=e.options.findIndex(f=>f[e.fields.value]===e.value),r=-ge(e.options,b)*e.optionHeight;T.value=r}),oe("touchmove",D,{target:u}),()=>h("div",{ref:u,class:de(),onTouchstartPassive:W,onTouchend:Y,onTouchcancel:Y},[h("ul",{ref:x,style:{transform:`translate3d(0, ${T.value+y()}px, 0)`,transitionDuration:`${C.value}ms`,transitionProperty:C.value?"all":"none"},class:de("wrapper"),onTransitionend:A},[E()])])}});const[Ut]=U("picker-toolbar"),ce={title:String,cancelButtonText:String,confirmButtonText:String},je=["cancel","confirm","title","toolbar"],Ft=Object.keys(ce);var Ze=F({name:Ut,props:ce,emits:["confirm","cancel"],setup(e,{emit:t,slots:n}){const l=()=>{if(n.title)return n.title();if(e.title)return h("div",{class:[L("title"),"van-ellipsis"]},[e.title])},i=()=>t("cancel"),a=()=>t("confirm"),s=()=>{const u=e.cancelButtonText||Re("cancel");return h("button",{type:"button",class:[L("cancel"),Ie],onClick:i},[n.cancel?n.cancel():u])},d=()=>{const u=e.confirmButtonText||Re("confirm");return h("button",{type:"button",class:[L("confirm"),Ie],onClick:a},[n.confirm?n.confirm():u])};return()=>h("div",{class:L("toolbar")},[n.toolbar?n.toolbar():[s(),l(),d()]])}});const Kt=(e,t)=>{const n=O(e());return P(e,l=>{l!==n.value&&(n.value=l)}),P(n,l=>{l!==e()&&t(l)}),n};function Wt(e,t,n){let l,i=0;const a=e.scrollLeft,s=n===0?1:Math.round(n*1e3/16);function d(){Me(l)}function u(){e.scrollLeft+=(t-a)/s,++i<s&&(l=he(u))}return u(),d}function Yt(e,t,n,l){let i,a=Ae(e);const s=a<t,d=n===0?1:Math.round(n*1e3/16),u=(t-a)/d;function x(){Me(i)}function T(){a+=u,(s&&a>t||!s&&a<t)&&(a=t),ct(e,a),s&&a<t||!s&&a>t?i=he(T):l&&(i=he(l))}return T(),x}let jt=0;function Ge(){const e=Le(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return`${t}-${++jt}`}function Zt(){const e=O([]),t=[];return Ct(()=>{e.value=[]}),[e,l=>(t[l]||(t[l]=i=>{e.value[l]=i}),t[l])]}function Xe(e,t){if(!st||!window.IntersectionObserver)return;const n=new IntersectionObserver(a=>{t(a[0].intersectionRatio>0)},{root:document.body}),l=()=>{e.value&&n.observe(e.value)},i=()=>{e.value&&n.unobserve(e.value)};St(i),kt(i),De(l)}const[Gt,Xt]=U("sticky"),qt={zIndex:z,position:we("top"),container:Object,offsetTop:p(0),offsetBottom:p(0)};var Qt=F({name:Gt,props:qt,emits:["scroll","change"],setup(e,{emit:t,slots:n}){const l=O(),i=pe(l),a=Ue({fixed:!1,width:0,height:0,transform:0}),s=O(!1),d=B(()=>xe(e.position==="top"?e.offsetTop:e.offsetBottom)),u=B(()=>{if(s.value)return;const{fixed:m,height:I,width:y}=a;if(m)return{width:`${y}px`,height:`${I}px`}}),x=B(()=>{if(!a.fixed||s.value)return;const m=j(rt(e.zIndex),{width:`${a.width}px`,height:`${a.height}px`,[e.position]:`${d.value}px`});return a.transform&&(m.transform=`translate3d(0, ${a.transform}px, 0)`),m}),T=m=>t("scroll",{scrollTop:m,isFixed:a.fixed}),C=()=>{if(!l.value||be(l))return;const{container:m,position:I}=e,y=q(l),k=Ae(window);if(a.width=y.width,a.height=y.height,I==="top")if(m){const v=q(m),_=v.bottom-d.value-a.height;a.fixed=d.value>y.top&&v.bottom>0,a.transform=_<0?_:0}else a.fixed=d.value>y.top;else{const{clientHeight:v}=document.documentElement;if(m){const _=q(m),w=v-_.top-d.value-a.height;a.fixed=v-d.value<y.bottom&&v>_.top,a.transform=w<0?-w:0}else a.fixed=v-d.value<y.bottom}T(k)};return P(()=>a.fixed,m=>t("change",m)),oe("scroll",C,{target:i,passive:!0}),Xe(l,C),P([ze,ut],()=>{!l.value||be(l)||!a.fixed||(s.value=!0,V(()=>{const m=q(l);a.width=m.width,a.height=m.height,s.value=!1}))}),()=>{var m;return h("div",{ref:l,style:u.value},[h("div",{class:Xt({fixed:a.fixed&&!s.value}),style:x.value},[(m=n.default)==null?void 0:m.call(n)])])}}});const Jt=ie(Qt),[en,Ee]=U("tabs");var tn=F({name:en,props:{count:X(Number),inited:Boolean,animated:Boolean,duration:X(z),swipeable:Boolean,lazyRender:Boolean,currentIndex:X(Number)},emits:["change"],setup(e,{emit:t,slots:n}){const l=O(),i=d=>t("change",d),a=()=>{var d;const u=(d=n.default)==null?void 0:d.call(n);return e.animated||e.swipeable?h(dt,{ref:l,loop:!1,class:Ee("track"),duration:+e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:i},{default:()=>[u]}):u},s=d=>{const u=l.value;u&&u.state.active!==d&&u.swipeTo(d,{immediate:!e.inited})};return P(()=>e.currentIndex,s),It(()=>{s(e.currentIndex)}),ee({swipeRef:l}),()=>h("div",{class:Ee("content",{animated:e.animated||e.swipeable})},[a()])}});const[qe,ne]=U("tabs"),nn={type:we("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:p(0),duration:p(.3),animated:Boolean,ellipsis:Q,swipeable:Boolean,scrollspy:Boolean,offsetTop:p(0),background:String,lazyRender:Q,lineWidth:z,lineHeight:z,beforeChange:Function,swipeThreshold:p(5),titleActiveColor:String,titleInactiveColor:String},Qe=Symbol(qe);var an=F({name:qe,props:nn,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:t,slots:n}){let l,i,a,s,d;const u=O(),x=O(),T=O(),C=O(),m=Ge(),I=pe(u),[y,k]=Zt(),{children:v,linkChildren:_}=Ce(Qe),w=Ue({inited:!1,position:"",lineStyle:{},currentIndex:-1}),M=B(()=>v.length>+e.swipeThreshold||!e.ellipsis||e.shrink),K=B(()=>({borderColor:e.color,background:e.background})),A=(c,g)=>{var S;return(S=c.name)!=null?S:g},W=B(()=>{const c=v[w.currentIndex];if(c)return A(c,w.currentIndex)}),D=B(()=>xe(e.offsetTop)),Y=B(()=>e.sticky?D.value+l:0),E=c=>{const g=x.value,S=y.value;if(!M.value||!g||!S||!S[w.currentIndex])return;const $=S[w.currentIndex].$el,R=$.offsetLeft-(g.offsetWidth-$.offsetWidth)/2;s&&s(),s=Wt(g,R,c?0:+e.duration)},b=()=>{const c=w.inited;V(()=>{const g=y.value;if(!g||!g[w.currentIndex]||e.type!=="line"||be(u.value))return;const S=g[w.currentIndex].$el,{lineWidth:$,lineHeight:R}=e,N=S.offsetLeft+S.offsetWidth/2,G={width:Oe($),backgroundColor:e.color,transform:`translateX(${N}px) translateX(-50%)`};if(c&&(G.transitionDuration=`${e.duration}s`),ae(R)){const te=Oe(R);G.height=te,G.borderRadius=te}w.lineStyle=G})},o=c=>{const g=c<w.currentIndex?-1:1;for(;c>=0&&c<v.length;){if(!v[c].disabled)return c;c+=g}},r=(c,g)=>{const S=o(c);if(!ae(S))return;const $=v[S],R=A($,S),N=w.currentIndex!==null;w.currentIndex!==S&&(w.currentIndex=S,g||E(),b()),R!==e.active&&(t("update:active",R),N&&t("change",R,$.title)),a&&!e.scrollspy&&mt(Math.ceil(Be(u.value)-D.value))},f=(c,g)=>{const S=v.find((R,N)=>A(R,N)===c),$=S?v.indexOf(S):0;r($,g)},H=(c=!1)=>{if(e.scrollspy){const g=v[w.currentIndex].$el;if(g&&I.value){const S=Be(g,I.value)-Y.value;i=!0,d&&d(),d=Yt(I.value,S,c?0:+e.duration,()=>{i=!1})}}},Z=(c,g,S)=>{const{title:$,disabled:R}=v[g],N=A(v[g],g);R||(ht(e.beforeChange,{args:[N],done:()=>{r(g),H()}}),Nt(c)),t("clickTab",{name:N,title:$,event:S,disabled:R})},se=c=>{a=c.isFixed,t("scroll",c)},re=c=>{V(()=>{f(c),H(!0)})},tt=()=>{for(let c=0;c<v.length;c++){const{top:g}=q(v[c].$el);if(g>Y.value)return c===0?0:c-1}return v.length-1},nt=()=>{if(e.scrollspy&&!i){const c=tt();r(c)}},at=()=>{if(e.type==="line"&&v.length)return h("div",{class:ne("line"),style:w.lineStyle},null)},Se=()=>{var c,g,S;const{type:$,border:R,sticky:N}=e,G=[h("div",{ref:N?void 0:T,class:[ne("wrap"),{[vt]:$==="line"&&R}]},[h("div",{ref:x,role:"tablist",class:ne("nav",[$,{shrink:e.shrink,complete:M.value}]),style:K.value,"aria-orientation":"horizontal"},[(c=n["nav-left"])==null?void 0:c.call(n),v.map(te=>te.renderTitle(Z)),at(),(g=n["nav-right"])==null?void 0:g.call(n)])]),(S=n["nav-bottom"])==null?void 0:S.call(n)];return N?h("div",{ref:T},[G]):G},ke=()=>{b(),V(()=>{var c,g;E(!0),(g=(c=C.value)==null?void 0:c.swipeRef.value)==null||g.resize()})};P(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],b),P(ze,ke),P(()=>e.active,c=>{c!==W.value&&f(c)}),P(()=>v.length,()=>{w.inited&&(f(e.active),b(),V(()=>{E(!0)}))});const lt=()=>{f(e.active,!0),V(()=>{w.inited=!0,T.value&&(l=q(T.value).height),E(!0)})},ot=(c,g)=>t("rendered",c,g);return ee({resize:ke,scrollTo:re}),Ot(b),ft(b),De(lt),Xe(u,b),oe("scroll",nt,{target:I,passive:!0}),_({id:m,props:e,setLine:b,scrollable:M,onRendered:ot,currentName:W,setTitleRefs:k,scrollIntoView:E}),()=>h("div",{ref:u,class:ne([e.type])},[e.sticky?h(Jt,{container:u.value,offsetTop:D.value,onScroll:se},{default:()=>[Se()]}):Se(),h(tn,{ref:C,count:v.length,inited:w.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:w.currentIndex,onChange:r},{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n)]}})])}});const ln=Symbol(),[on,He]=U("tab"),cn=F({name:on,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:z,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:Q},setup(e,{slots:t}){const n=B(()=>{const i={},{type:a,color:s,disabled:d,isActive:u,activeColor:x,inactiveColor:T}=e;s&&a==="card"&&(i.borderColor=s,d||(u?i.backgroundColor=s:i.color=s));const m=u?x:T;return m&&(i.color=m),i}),l=()=>{const i=h("span",{class:He("text",{ellipsis:!e.scrollable})},[t.title?t.title():e.title]);return e.dot||ae(e.badge)&&e.badge!==""?h(bt,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[i]}):i};return()=>h("div",{id:e.id,role:"tab",class:[He([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:n.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls},[l()])}}),[sn,fe]=U("tab"),rn=j({},Ht,{dot:Boolean,name:z,badge:z,title:String,disabled:Boolean,titleClass:gt,titleStyle:[String,Object],showZeroBadge:Q});var un=F({name:sn,props:rn,setup(e,{slots:t}){const n=Ge(),l=O(!1),i=Le(),{parent:a,index:s}=ye(Qe);if(!a)return;const d=()=>{var y;return(y=e.name)!=null?y:s.value},u=()=>{l.value=!0,a.props.lazyRender&&V(()=>{a.onRendered(d(),e.title)})},x=B(()=>{const y=d()===a.currentName.value;return y&&!l.value&&u(),y}),T=O(""),C=O("");Ve(()=>{const{titleClass:y,titleStyle:k}=e;T.value=y?Bt(y):"",C.value=k&&typeof k!="string"?Rt($t(k)):k});const m=y=>h(cn,Fe({key:n,id:`${a.id}-${s.value}`,ref:a.setTitleRefs(s.value),style:C.value,class:T.value,isActive:x.value,controls:n,scrollable:a.scrollable.value,activeColor:a.props.titleActiveColor,inactiveColor:a.props.titleInactiveColor,onClick:k=>y(i.proxy,s.value,k)},J(a.props,["type","color","shrink"]),J(e,["dot","badge","title","disabled","showZeroBadge"])),{title:t.title}),I=O(!x.value);return P(x,y=>{y?I.value=!1:Tt(()=>{I.value=!0})}),P(()=>e.title,()=>{a.setLine(),a.scrollIntoView()}),Pt(ln,x),ee({id:n,renderTitle:m}),()=>{var y;const k=`${a.id}-${s.value}`,{animated:v,swipeable:_,scrollspy:w,lazyRender:M}=a.props;if(!t.default&&!v)return;const K=w||x.value;if(v||_)return h(yt,{id:n,role:"tabpanel",class:fe("panel-wrapper",{inactive:I.value}),tabindex:x.value?0:-1,"aria-hidden":!x.value,"aria-labelledby":k},{default:()=>{var D;return[h("div",{class:fe("panel")},[(D=t.default)==null?void 0:D.call(t)])]}});const W=l.value||w||!M?(y=t.default)==null?void 0:y.call(t):null;return _t(h("div",{id:n,role:"tabpanel",class:fe("panel"),tabindex:K?0:-1,"aria-labelledby":k},[W]),[[Et,K]])}}});const dn=ie(un),fn=ie(an),[Je,ve]=U("picker-group"),et=Symbol(Je),vn=j({tabs:le(),activeTab:p(0),nextStepText:String},ce);F({name:Je,props:vn,emits:["confirm","cancel","update:activeTab"],setup(e,{emit:t,slots:n}){const l=Kt(()=>e.activeTab,x=>t("update:activeTab",x)),{children:i,linkChildren:a}=Ce(et);a();const s=()=>+l.value<e.tabs.length-1&&e.nextStepText,d=()=>{s()?l.value=+l.value+1:t("confirm",i.map(x=>x.confirm()))},u=()=>t("cancel");return()=>{var x;const T=(x=n.default)==null?void 0:x.call(n),C=s()?e.nextStepText:e.confirmButtonText;return h("div",{class:ve()},[h(Ze,{title:e.title,cancelButtonText:e.cancelButtonText,confirmButtonText:C,onConfirm:d,onCancel:u},J(n,je)),h(fn,{active:l.value,"onUpdate:active":m=>l.value=m,class:ve("tabs"),shrink:!0,animated:!0,lazyRender:!1},{default:()=>[e.tabs.map((m,I)=>h(dn,{title:m,titleClass:ve("tab-title")},{default:()=>[T==null?void 0:T[I]]}))]})])}}});const mn=j({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:p(44),showToolbar:Q,swipeDuration:p(1e3),visibleOptionNum:p(6)},ce),hn=j({},mn,{columns:le(),modelValue:le(),toolbarPosition:we("top"),columnsFieldNames:Object});var bn=F({name:Mt,props:hn,emits:["confirm","cancel","change","scrollInto","clickOption","update:modelValue"],setup(e,{emit:t,slots:n}){const l=O(),i=O(e.modelValue.slice(0)),{parent:a}=ye(et),{children:s,linkChildren:d}=Ce(Ye);d();const u=B(()=>zt(e.columnsFieldNames)),x=B(()=>xe(e.optionHeight)),T=B(()=>At(e.columns,u.value)),C=B(()=>{const{columns:o}=e;switch(T.value){case"multiple":return o;case"cascade":return Dt(o,u.value,i);default:return[o]}}),m=B(()=>C.value.some(o=>o.length)),I=B(()=>C.value.map((o,r)=>Te(o,i.value[r],u.value))),y=B(()=>C.value.map((o,r)=>o.findIndex(f=>f[u.value.value]===i.value[r]))),k=(o,r)=>{if(i.value[o]!==r){const f=i.value.slice(0);f[o]=r,i.value=f}},v=()=>({selectedValues:i.value.slice(0),selectedOptions:I.value,selectedIndexes:y.value}),_=(o,r)=>{k(r,o),T.value==="cascade"&&i.value.forEach((f,H)=>{const Z=C.value[H];$e(Z,f,u.value)||k(H,Z.length?Z[0][u.value.value]:void 0)}),V(()=>{t("change",j({columnIndex:r},v()))})},w=(o,r)=>{const f={columnIndex:r,currentOption:o};t("clickOption",j(v(),f)),t("scrollInto",f)},M=()=>{s.forEach(r=>r.stopMomentum());const o=v();return V(()=>{t("confirm",o)}),o},K=()=>t("cancel",v()),A=()=>C.value.map((o,r)=>h(Lt,{value:i.value[r],fields:u.value,options:o,readonly:e.readonly,allowHtml:e.allowHtml,optionHeight:x.value,swipeDuration:e.swipeDuration,visibleOptionNum:e.visibleOptionNum,onChange:f=>_(f,r),onClickOption:f=>w(f,r),onScrollInto:f=>{t("scrollInto",{currentOption:f,columnIndex:r})}},{option:n.option})),W=o=>{if(m.value){const r={height:`${x.value}px`},f={backgroundSize:`100% ${(o-x.value)/2}px`};return[h("div",{class:L("mask"),style:f},null),h("div",{class:[wt,L("frame")],style:r},null)]}},D=()=>{const o=x.value*+e.visibleOptionNum,r={height:`${o}px`};return h("div",{ref:l,class:L("columns"),style:r},[A(),W(o)])},Y=()=>{if(e.showToolbar&&!a)return h(Ze,Fe(J(e,Ft),{onConfirm:M,onCancel:K}),J(n,je))};P(C,o=>{o.forEach((r,f)=>{r.length&&!$e(r,i.value[f],u.value)&&k(f,Ke(r)[u.value.value])})},{immediate:!0});let E;return P(()=>e.modelValue,o=>{!ue(o,i.value)&&!ue(o,E)&&(i.value=o.slice(0),E=o.slice(0))},{deep:!0}),P(i,o=>{ue(o,e.modelValue)||(E=o.slice(0),t("update:modelValue",E))},{immediate:!0}),oe("touchmove",Ne,{target:l}),ee({confirm:M,getSelectedOptions:()=>I.value}),()=>{var o,r;return h("div",{class:L()},[e.toolbarPosition==="top"?Y():null,e.loading?h(xt,{class:L("loading")},null):null,(o=n["columns-top"])==null?void 0:o.call(n),D(),(r=n["columns-bottom"])==null?void 0:r.call(n),e.toolbarPosition==="bottom"?Y():null])}}});const yn=ie(bn);export{yn as P,mn as p};