66coinmte.top
Open in
urlscan Pro
2606:4700:3033::ac43:d19f
Public Scan
URL:
https://66coinmte.top/assets/index.12563f83.js
Submission: On November 28 via api from US — Scanned from US
Submission: On November 28 via api from US — Scanned from US
Form analysis
0 forms found in the DOMText Content
import{bN as q,d as L,m as se,i as j,bQ as ce,cj as ue,b as h,bV as K,q as x,bW as re,bX as ve,ck as fe,s as Q,cl as he,cm as de,cn as me,v as ge,h as P,b_ as z,bP as H,c0 as O,co as I,cp as V,L as U,bS as we,bT as D,c8 as F,cq as be}from"./index.a5680e6b.js";const[G,M]=q("swipe"),pe={loop:z,width:H,height:H,vertical:Boolean,autoplay:O(0),duration:O(500),touchable:z,lazyRender:Boolean,initialSwipe:O(0),indicatorColor:String,showIndicators:z,stopPropagation:z},J=Symbol(G);var ye=L({name:G,props:pe,emits:["change"],setup(a,{emit:C,slots:d}){const u=se(),e=j({rect:null,width:0,height:0,offset:0,active:0,swiping:!1}),s=ce(),{children:m,linkChildren:_}=ue(J),i=h(()=>m.length),n=h(()=>e[a.vertical?"height":"width"]),r=h(()=>a.vertical?s.deltaY.value:s.deltaX.value),f=h(()=>e.rect?(a.vertical?e.rect.height:e.rect.width)-n.value*i.value:0),$=h(()=>Math.ceil(Math.abs(f.value)/n.value)),p=h(()=>i.value*n.value),w=h(()=>(e.active+i.value)%i.value),R=h(()=>{const t=a.vertical?"vertical":"horizontal";return s.direction.value===t}),Z=h(()=>{const t={transitionDuration:`${e.swiping?0:a.duration}ms`,transform:`translate${a.vertical?"Y":"X"}(${e.offset}px)`};if(n.value){const l=a.vertical?"height":"width",o=a.vertical?"width":"height";t[l]=`${p.value}px`,t[o]=a[o]?`${a[o]}px`:""}return t}),ee=t=>{const{active:l}=e;return t?a.loop?D(l+t,-1,i.value):D(l+t,0,$.value):l},B=(t,l=0)=>{let o=t*n.value;a.loop||(o=Math.min(o,-f.value));let v=l-o;return a.loop||(v=D(v,f.value,0)),v},g=({pace:t=0,offset:l=0,emitChange:o})=>{if(i.value<=1)return;const{active:v}=e,c=ee(t),S=B(c,l);if(a.loop){if(m[0]&&S!==f.value){const k=S<f.value;m[0].setOffset(k?p.value:0)}if(m[i.value-1]&&S!==0){const k=S>0;m[i.value-1].setOffset(k?-p.value:0)}}e.active=c,e.offset=S,o&&c!==v&&C("change",w.value)},A=()=>{e.swiping=!0,e.active<=-1?g({pace:i.value}):e.active>=i.value&&g({pace:-i.value})},te=()=>{A(),s.reset(),I(()=>{e.swiping=!1,g({pace:-1,emitChange:!0})})},E=()=>{A(),s.reset(),I(()=>{e.swiping=!1,g({pace:1,emitChange:!0})})};let X;const y=()=>clearTimeout(X),T=()=>{y(),a.autoplay>0&&i.value>1&&(X=setTimeout(()=>{E(),T()},+a.autoplay))},b=(t=+a.initialSwipe)=>{if(!u.value)return;const l=()=>{var o,v;if(!V(u)){const c={width:u.value.offsetWidth,height:u.value.offsetHeight};e.rect=c,e.width=+((o=a.width)!=null?o:c.width),e.height=+((v=a.height)!=null?v:c.height)}i.value&&(t=Math.min(i.value-1,t)),e.active=t,e.swiping=!0,e.offset=B(t),m.forEach(c=>{c.setOffset(0)}),T()};V(u)?U().then(l):l()},Y=()=>b(e.active);let N;const ae=t=>{!a.touchable||(s.start(t),N=Date.now(),y(),A())},ie=t=>{a.touchable&&e.swiping&&(s.move(t),R.value&&(we(t,a.stopPropagation),g({offset:r.value})))},W=()=>{if(!a.touchable||!e.swiping)return;const t=Date.now()-N,l=r.value/t;if((Math.abs(l)>.25||Math.abs(r.value)>n.value/2)&&R.value){const v=a.vertical?s.offsetY.value:s.offsetX.value;let c=0;a.loop?c=v>0?r.value>0?-1:1:0:c=-Math[r.value>0?"ceil":"floor"](r.value/n.value),g({pace:c,emitChange:!0})}else r.value&&g({pace:0});e.swiping=!1,T()},ne=(t,l={})=>{A(),s.reset(),I(()=>{let o;a.loop&&t===i.value?o=e.active===0?0:t:o=t%i.value,l.immediate?I(()=>{e.swiping=!1}):e.swiping=!1,g({pace:o-e.active,emitChange:!0})})},oe=(t,l)=>{const o=l===w.value,v=o?{backgroundColor:a.indicatorColor}:void 0;return P("i",{style:v,class:M("indicator",{active:o})},null)},le=()=>{if(d.indicator)return d.indicator({active:w.value,total:i.value});if(a.showIndicators&&i.value>1)return P("div",{class:M("indicators",{vertical:a.vertical})},[Array(i.value).fill("").map(oe)])};return K({prev:te,next:E,state:e,resize:Y,swipeTo:ne}),_({size:n,props:a,count:i,activeIndicator:w}),x(()=>a.initialSwipe,t=>b(+t)),x(i,()=>b(e.active)),x(()=>a.autoplay,T),x([re,ve],Y),x(fe(),t=>{t==="visible"?T():y()}),Q(b),he(()=>b(e.active)),de(()=>b(e.active)),me(y),ge(y),()=>{var t;return P("div",{ref:u,class:M()},[P("div",{style:Z.value,class:M("track",{vertical:a.vertical}),onTouchstart:ae,onTouchmove:ie,onTouchend:W,onTouchcancel:W},[(t=d.default)==null?void 0:t.call(d)]),le()])}}});const Ce=F(ye),[Te,Se]=q("swipe-item");var xe=L({name:Te,setup(a,{slots:C}){let d;const u=j({offset:0,inited:!1,mounted:!1}),{parent:e,index:s}=be(J);if(!e)return;const m=h(()=>{const n={},{vertical:r}=e.props;return e.size.value&&(n[r?"height":"width"]=`${e.size.value}px`),u.offset&&(n.transform=`translate${r?"Y":"X"}(${u.offset}px)`),n}),_=h(()=>{const{loop:n,lazyRender:r}=e.props;if(!r||d)return!0;if(!u.mounted)return!1;const f=e.activeIndicator.value,$=e.count.value-1,p=f===0&&n?$:f-1,w=f===$&&n?0:f+1;return d=s.value===f||s.value===p||s.value===w,d}),i=n=>{u.offset=n};return Q(()=>{U(()=>{u.mounted=!0})}),K({setOffset:i}),()=>{var n;return P("div",{class:Se(),style:m.value},[_.value?(n=C.default)==null?void 0:n.call(C):null])}}});const $e=F(xe);export{$e as S,Ce as a};