index-legacy-4e8218c8.js 10 KB

12345
  1. <<<<<<<< HEAD:dist/assets/index-legacy-4e8218c8.js
  2. System.register(["./index-legacy-5f8741ef.js"],(function(e,t){"use strict";var a,i,l,o,n,u,r,v,s,c,h,p,d,f,g,w,m,b,y,x,S,C,z,$,I,M,O,T,k;return{setters:[e=>{a=e.c,i=e.t,l=e.n,o=e.b,n=e.d,u=e.r,r=e.x,v=e.u,s=e.ah,c=e.e,h=e.a3,p=e.w,d=e.bN,f=e.bO,g=e.aO,w=e.y,m=e.aW,b=e.bP,y=e.aX,x=e.aI,S=e.a4,C=e.a,z=e.bI,$=e.z,I=e.p,M=e.aR,O=e.a6,T=e.k,k=e.ak}],execute:function(){const[t,X]=a("swipe"),P={loop:i,width:l,height:l,vertical:Boolean,autoplay:o(0),duration:o(500),touchable:i,lazyRender:Boolean,initialSwipe:o(0),indicatorColor:String,showIndicators:i,stopPropagation:i},Y=Symbol(t);var D=n({name:t,props:P,emits:["change","dragStart","dragEnd"],setup(e,{emit:t,slots:a}){const i=u(),l=u(),o=r({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let n=!1;const T=v(),{children:k,linkChildren:P}=s(Y),D=c((()=>k.length)),E=c((()=>o[e.vertical?"height":"width"])),R=c((()=>e.vertical?T.deltaY.value:T.deltaX.value)),B=c((()=>o.rect?(e.vertical?o.rect.height:o.rect.width)-E.value*D.value:0)),W=c((()=>E.value?Math.ceil(Math.abs(B.value)/E.value):D.value)),j=c((()=>D.value*E.value)),A=c((()=>(o.active+D.value)%D.value)),H=c((()=>{const t=e.vertical?"vertical":"horizontal";return T.direction.value===t})),N=c((()=>{const t={transitionDuration:`${o.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${o.offset}px)`};if(E.value){const a=e.vertical?"height":"width",i=e.vertical?"width":"height";t[a]=`${j.value}px`,t[i]=e[i]?`${e[i]}px`:""}return t})),V=(t,a=0)=>{let i=t*E.value;e.loop||(i=Math.min(i,-B.value));let l=a-i;return e.loop||(l=O(l,B.value,0)),l},q=({pace:a=0,offset:i=0,emitChange:l})=>{if(D.value<=1)return;const{active:n}=o,u=(t=>{const{active:a}=o;return t?e.loop?O(a+t,-1,D.value):O(a+t,0,W.value):a})(a),r=V(u,i);if(e.loop){if(k[0]&&r!==B.value){const e=r<B.value;k[0].setOffset(e?j.value:0)}if(k[D.value-1]&&0!==r){const e=r>0;k[D.value-1].setOffset(e?-j.value:0)}}o.active=u,o.offset=r,l&&u!==n&&t("change",A.value)},F=()=>{o.swiping=!0,o.active<=-1?q({pace:D.value}):o.active>=D.value&&q({pace:-D.value})},G=()=>{F(),T.reset(),M((()=>{o.swiping=!1,q({pace:1,emitChange:!0})}))};let J;const K=()=>clearTimeout(J),L=()=>{K(),+e.autoplay>0&&D.value>1&&(J=setTimeout((()=>{G(),L()}),+e.autoplay))},Q=(t=+e.initialSwipe)=>{if(!i.value)return;const a=()=>{var a,l;if(!z(i)){const t={width:i.value.offsetWidth,height:i.value.offsetHeight};o.rect=t,o.width=+(null!=(a=e.width)?a:t.width),o.height=+(null!=(l=e.height)?l:t.height)}D.value&&-1===(t=Math.min(D.value-1,t))&&(t=D.value-1),o.active=t,o.swiping=!0,o.offset=V(t),k.forEach((e=>{e.setOffset(0)})),L()};z(i)?$().then(a):a()},U=()=>Q(o.active);let Z;const _=t=>{!e.touchable||t.touches.length>1||(T.start(t),n=!1,Z=Date.now(),K(),F())},ee=()=>{if(!e.touchable||!o.swiping)return;const a=Date.now()-Z,i=R.value/a;if((Math.abs(i)>.25||Math.abs(R.value)>E.value/2)&&H.value){const t=e.vertical?T.offsetY.value:T.offsetX.value;let a=0;a=e.loop?t>0?R.value>0?-1:1:0:-Math[R.value>0?"ceil":"floor"](R.value/E.value),q({pace:a,emitChange:!0})}else R.value&&q({pace:0});n=!1,o.swiping=!1,t("dragEnd",{index:A.value}),L()},te=(t,a)=>{const i=a===A.value,l=i?{backgroundColor:e.indicatorColor}:void 0;return C("i",{style:l,class:X("indicator",{active:i})},null)};return h({prev:()=>{F(),T.reset(),M((()=>{o.swiping=!1,q({pace:-1,emitChange:!0})}))},next:G,state:o,resize:U,swipeTo:(t,a={})=>{F(),T.reset(),M((()=>{let i;i=e.loop&&t===D.value?0===o.active?0:t:t%D.value,a.immediate?M((()=>{o.swiping=!1})):o.swiping=!1,q({pace:i-o.active,emitChange:!0})}))}}),P({size:E,props:e,count:D,activeIndicator:A}),p((()=>e.initialSwipe),(e=>Q(+e))),p(D,(()=>Q(o.active))),p((()=>e.autoplay),L),p([d,f,()=>e.width,()=>e.height],U),p(g(),(e=>{"visible"===e?L():K()})),w(Q),m((()=>Q(o.active))),b((()=>Q(o.active))),y(K),x(K),S("touchmove",(a=>{e.touchable&&o.swiping&&(T.move(a),H.value)&&(!e.loop&&(0===o.active&&R.value>0||o.active===D.value-1&&R.value<0)||(I(a,e.stopPropagation),q({offset:R.value}),n||(t("dragStart",{index:A.value}),n=!0)))}),{target:l}),()=>{var t;return C("div",{ref:i,class:X()},[C("div",{ref:l,style:N.value,class:X("track",{vertical:e.vertical}),onTouchstartPassive:_,onTouchend:ee,onTouchcancel:ee},[null==(t=a.default)?void 0:t.call(a)]),a.indicator?a.indicator({active:A.value,total:D.value}):e.showIndicators&&D.value>1?C("div",{class:X("indicators",{vertical:e.vertical})},[Array(D.value).fill("").map(te)]):void 0])}}});e("S",T(D));const[E,R]=a("swipe-item");var B=n({name:E,setup(e,{slots:t}){let a;const i=r({offset:0,inited:!1,mounted:!1}),{parent:l,index:o}=k(Y);if(!l)return void console.error("[Vant] <SwipeItem> must be a child component of <Swipe>.");const n=c((()=>{const e={},{vertical:t}=l.props;return l.size.value&&(e[t?"height":"width"]=`${l.size.value}px`),i.offset&&(e.transform=`translate${t?"Y":"X"}(${i.offset}px)`),e})),u=c((()=>{const{loop:e,lazyRender:t}=l.props;if(!t||a)return!0;if(!i.mounted)return!1;const n=l.activeIndicator.value,u=l.count.value-1,r=0===n&&e?u:n-1,v=n===u&&e?0:n+1;return a=o.value===n||o.value===r||o.value===v,a}));return w((()=>{$((()=>{i.mounted=!0}))})),h({setOffset:e=>{i.offset=e}}),()=>{var e;return C("div",{class:R(),style:n.value},[u.value?null==(e=t.default)?void 0:e.call(t):null])}}});e("a",T(B))}}}));
  3. ========
  4. System.register(["./index-legacy-23bc5b47.js"],(function(e,t){"use strict";var a,i,l,o,n,u,r,v,s,c,h,p,d,f,g,w,m,b,y,x,S,C,z,$,M,I,O,T,k;return{setters:[e=>{a=e.c,i=e.t,l=e.n,o=e.b,n=e.d,u=e.r,r=e.x,v=e.u,s=e.ah,c=e.e,h=e.a3,p=e.w,d=e.bO,f=e.bP,g=e.aO,w=e.y,m=e.aW,b=e.bQ,y=e.aX,x=e.aI,S=e.a4,C=e.a,z=e.bJ,$=e.z,M=e.p,I=e.aR,O=e.a6,T=e.k,k=e.ak}],execute:function(){const[t,X]=a("swipe"),P={loop:i,width:l,height:l,vertical:Boolean,autoplay:o(0),duration:o(500),touchable:i,lazyRender:Boolean,initialSwipe:o(0),indicatorColor:String,showIndicators:i,stopPropagation:i},Y=Symbol(t);var D=n({name:t,props:P,emits:["change","dragStart","dragEnd"],setup(e,{emit:t,slots:a}){const i=u(),l=u(),o=r({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let n=!1;const T=v(),{children:k,linkChildren:P}=s(Y),D=c((()=>k.length)),E=c((()=>o[e.vertical?"height":"width"])),R=c((()=>e.vertical?T.deltaY.value:T.deltaX.value)),B=c((()=>o.rect?(e.vertical?o.rect.height:o.rect.width)-E.value*D.value:0)),W=c((()=>E.value?Math.ceil(Math.abs(B.value)/E.value):D.value)),j=c((()=>D.value*E.value)),A=c((()=>(o.active+D.value)%D.value)),H=c((()=>{const t=e.vertical?"vertical":"horizontal";return T.direction.value===t})),J=c((()=>{const t={transitionDuration:`${o.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${o.offset}px)`};if(E.value){const a=e.vertical?"height":"width",i=e.vertical?"width":"height";t[a]=`${j.value}px`,t[i]=e[i]?`${e[i]}px`:""}return t})),Q=(t,a=0)=>{let i=t*E.value;e.loop||(i=Math.min(i,-B.value));let l=a-i;return e.loop||(l=O(l,B.value,0)),l},V=({pace:a=0,offset:i=0,emitChange:l})=>{if(D.value<=1)return;const{active:n}=o,u=(t=>{const{active:a}=o;return t?e.loop?O(a+t,-1,D.value):O(a+t,0,W.value):a})(a),r=Q(u,i);if(e.loop){if(k[0]&&r!==B.value){const e=r<B.value;k[0].setOffset(e?j.value:0)}if(k[D.value-1]&&0!==r){const e=r>0;k[D.value-1].setOffset(e?-j.value:0)}}o.active=u,o.offset=r,l&&u!==n&&t("change",A.value)},q=()=>{o.swiping=!0,o.active<=-1?V({pace:D.value}):o.active>=D.value&&V({pace:-D.value})},F=()=>{q(),T.reset(),I((()=>{o.swiping=!1,V({pace:1,emitChange:!0})}))};let G;const K=()=>clearTimeout(G),L=()=>{K(),+e.autoplay>0&&D.value>1&&(G=setTimeout((()=>{F(),L()}),+e.autoplay))},N=(t=+e.initialSwipe)=>{if(!i.value)return;const a=()=>{var a,l;if(!z(i)){const t={width:i.value.offsetWidth,height:i.value.offsetHeight};o.rect=t,o.width=+(null!=(a=e.width)?a:t.width),o.height=+(null!=(l=e.height)?l:t.height)}D.value&&-1===(t=Math.min(D.value-1,t))&&(t=D.value-1),o.active=t,o.swiping=!0,o.offset=Q(t),k.forEach((e=>{e.setOffset(0)})),L()};z(i)?$().then(a):a()},U=()=>N(o.active);let Z;const _=t=>{!e.touchable||t.touches.length>1||(T.start(t),n=!1,Z=Date.now(),K(),q())},ee=()=>{if(!e.touchable||!o.swiping)return;const a=Date.now()-Z,i=R.value/a;if((Math.abs(i)>.25||Math.abs(R.value)>E.value/2)&&H.value){const t=e.vertical?T.offsetY.value:T.offsetX.value;let a=0;a=e.loop?t>0?R.value>0?-1:1:0:-Math[R.value>0?"ceil":"floor"](R.value/E.value),V({pace:a,emitChange:!0})}else R.value&&V({pace:0});n=!1,o.swiping=!1,t("dragEnd",{index:A.value}),L()},te=(t,a)=>{const i=a===A.value,l=i?{backgroundColor:e.indicatorColor}:void 0;return C("i",{style:l,class:X("indicator",{active:i})},null)};return h({prev:()=>{q(),T.reset(),I((()=>{o.swiping=!1,V({pace:-1,emitChange:!0})}))},next:F,state:o,resize:U,swipeTo:(t,a={})=>{q(),T.reset(),I((()=>{let i;i=e.loop&&t===D.value?0===o.active?0:t:t%D.value,a.immediate?I((()=>{o.swiping=!1})):o.swiping=!1,V({pace:i-o.active,emitChange:!0})}))}}),P({size:E,props:e,count:D,activeIndicator:A}),p((()=>e.initialSwipe),(e=>N(+e))),p(D,(()=>N(o.active))),p((()=>e.autoplay),L),p([d,f,()=>e.width,()=>e.height],U),p(g(),(e=>{"visible"===e?L():K()})),w(N),m((()=>N(o.active))),b((()=>N(o.active))),y(K),x(K),S("touchmove",(a=>{e.touchable&&o.swiping&&(T.move(a),H.value)&&(!e.loop&&(0===o.active&&R.value>0||o.active===D.value-1&&R.value<0)||(M(a,e.stopPropagation),V({offset:R.value}),n||(t("dragStart",{index:A.value}),n=!0)))}),{target:l}),()=>{var t;return C("div",{ref:i,class:X()},[C("div",{ref:l,style:J.value,class:X("track",{vertical:e.vertical}),onTouchstartPassive:_,onTouchend:ee,onTouchcancel:ee},[null==(t=a.default)?void 0:t.call(a)]),a.indicator?a.indicator({active:A.value,total:D.value}):e.showIndicators&&D.value>1?C("div",{class:X("indicators",{vertical:e.vertical})},[Array(D.value).fill("").map(te)]):void 0])}}});e("S",T(D));const[E,R]=a("swipe-item");var B=n({name:E,setup(e,{slots:t}){let a;const i=r({offset:0,inited:!1,mounted:!1}),{parent:l,index:o}=k(Y);if(!l)return void console.error("[Vant] <SwipeItem> must be a child component of <Swipe>.");const n=c((()=>{const e={},{vertical:t}=l.props;return l.size.value&&(e[t?"height":"width"]=`${l.size.value}px`),i.offset&&(e.transform=`translate${t?"Y":"X"}(${i.offset}px)`),e})),u=c((()=>{const{loop:e,lazyRender:t}=l.props;if(!t||a)return!0;if(!i.mounted)return!1;const n=l.activeIndicator.value,u=l.count.value-1,r=0===n&&e?u:n-1,v=n===u&&e?0:n+1;return a=o.value===n||o.value===r||o.value===v,a}));return w((()=>{$((()=>{i.mounted=!0}))})),h({setOffset:e=>{i.offset=e}}),()=>{var e;return C("div",{class:R(),style:n.value},[u.value?null==(e=t.default)?void 0:e.call(t):null])}}});e("a",T(B))}}}));
  5. >>>>>>>> iteration-20250327-light:dist/assets/index-legacy-214294fc.js