import{x as ue,z as v,b,c as S,d as n,F as N,D as P,ad as F,s as p,A as $,ae as we,f as O,w as Ce,p as q,E as y,B as g,af as Ge,P as de,ag as Je,a7 as oe,a8 as Y,a4 as Me,J as ne,e as ce,m as Z,o as me,v as re,n as xe,q as Q,h as J,ab as Ke,y as $e,r as Qe,ah as te,ai as B,aj as Ze,ak as Be,al as Le,am as K,an as G,a9 as et,ao as tt,ap as nt,V as at,aq as lt,H as ye,ar as st,as as it,U as ot,M as rt,R as ut}from"./entry.DCZz6JvG.js";import{_ as dt}from"./base-search-block.CKB5ZpWk.js";const ct={class:"deco-scroll-down"},mt={class:"text-circle w-100 h-100"},vt={__name:"deco-scroll-down",setup(e){const s=v("SCROLL DOWN SCROLL DOWN ");return(t,r)=>(b(),S("div",ct,[n("div",mt,[(b(!0),S(N,null,P(p(s),(d,i)=>(b(),S("span",{key:i,class:"d-inline-block rem-40 font-weight-black",style:F({transform:`rotate(${(360/p(s).length*i).toFixed(2)}deg)`})},$(d),5))),128))])]))}},ft=ue(vt,[["__scopeId","data-v-ccc1e959"]]),qe=""+globalThis.__publicAssetsURL("img/icon-arrow-prev.svg"),De=""+globalThis.__publicAssetsURL("img/icon-arrow-next.svg"),pt=["textContent"],gt=["src","alt"],_t={class:"d-flex justify-space-between align-center"},ht=["textContent"],xt={__name:"landing-partner",async setup(e){let s,t;const{$store:r}=ne(),{lgAndUp:d,xs:i}=we(),u=v(null),w=O(()=>d.value?12:i.value?4:8),f=O(()=>Math.ceil(a.value.length/w.value)),x=o=>{const l=u.value+o;u.value=l>f.value-1?0:l<0?f.value-1:l},a=v([]),h=async()=>{const o=await r.getPartnerList();o.value.status!==200||!o.value.data||(a.value=o.value.data.map(l=>({name:l.name,imageUrl:l.image_url})))};return[s,t]=Ce(()=>h()),await s,t(),(o,l)=>(b(),q(Me,{class:"py-10 px-7",color:"dark-black",rounded:"xl",border:"disabled sm opacity-100"},{default:y(()=>[n("h2",{class:"text-center mb-5",textContent:$(o.$t("partners"))},null,8,pt),g(Ge,{modelValue:p(u),"onUpdate:modelValue":l[0]||(l[0]=c=>de(u)?u.value=c:null),class:"mb-0 mb-md-5",cycle:"","hide-delimiters":"","hide-delimiter-background":"","show-arrows":!1,height:p(i)?140:p(d)?"fit-content":160},{default:y(()=>[(b(!0),S(N,null,P(p(f),(c,_)=>(b(),q(Je,{key:`carousel-${c}`},{default:y(()=>[g(oe,null,{default:y(()=>[(b(!0),S(N,null,P(p(a).slice(p(w)*_,p(w)*(_+1)),C=>(b(),q(Y,{key:C.name,class:"pa-2 pa-md-3 mb-0 mb-md-5 d-flex justify-center align-center",cols:"6",sm:"3",lg:"2"},{default:y(()=>[n("img",{src:C.imageUrl,alt:`logo-${C.name}`},null,8,gt)]),_:2},1024))),128))]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["modelValue","height"]),n("div",_t,[n("div",{textContent:$(`${p(u)+1}/${p(f)}`)},null,8,ht),n("div",null,[n("img",{class:"can-click mr-7",src:qe,alt:"icon-prev",onClick:l[1]||(l[1]=c=>x(-1))}),n("img",{class:"can-click",src:De,alt:"icon-next",onClick:l[2]||(l[2]=c=>x(1))})])])]),_:1}))}},yt=ue(xt,[["__scopeId","data-v-815cca21"]]),bt=ce({__name:"Marquee",props:{style:{default:()=>()=>({})},class:{default:""},autoFill:{type:Boolean,default:!1},play:{type:Boolean,default:!0},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},direction:{default:"left"},speed:{default:50},delay:{default:0},loop:{default:0},gradient:{type:Boolean,default:!1},gradientColor:{default:"white"},gradientWidth:{default:200}},emits:["finish","cycleComplete"],setup(e,{emit:s}){const t=s,r=v(),d=v(),i=v(0),u=v(0),w=v(1),f=v(!1),x=v(),a=O(()=>e.autoFill?u.value*w.value/e.speed:u<i?i.value/e.speed:u.value/e.speed),h=O(()=>({...e.style,"--pause-on-hover":!e.play||e.pauseOnHover?"paused":"running","--pause-on-click":!e.play||e.pauseOnHover&&!e.pauseOnClick||e.pauseOnClick?"paused":"running","--width":e.direction==="up"||e.direction==="down"?"100vh":"100%","--transform":e.direction==="up"?"rotate(-90deg)":e.direction==="down"?"rotate(90deg)":"none"})),o=O(()=>({"--gradient-color":e.gradientColor,"--gradient-width":typeof e.gradientWidth=="number"?`${e.gradientWidth}px`:e.gradientWidth})),l=O(()=>({"--play":e.play?"running":"paused","--direction":e.direction==="left"?"normal":"reverse","--duration":`${a.value}s`,"--delay":`${e.delay}s`,"--iteration-count":e.loop?`${e.loop}`:"infinite","--min-width":e.autoFill?"auto":"100%"})),c=O(()=>({"--transform":e.direction==="up"?"rotate(90deg)":e.direction==="down"?"rotate(-90deg)":"none"})),_=()=>{if(d.value&&r.value){const A=r.value.getBoundingClientRect(),j=d.value.getBoundingClientRect();let T=A.width,L=j.width;(e.direction==="up"||e.direction==="down")&&(T=A.height,L=j.height),e.autoFill&&T&&L?w.value=L<T?Math.ceil(T/L):1:w.value=1,i.value=T,u.value=L}},C=A=>[...Array(Number.isFinite(A)&&A>=0?A:0)];return Z([()=>e.autoFill,()=>e.direction,f,r],()=>{f.value&&(_(),d.value&&r.value&&(x.value&&x.value.disconnect(),x.value=new ResizeObserver(()=>_()),x.value.observe(r.value),x.value.observe(d.value)))}),me(()=>{f.value=!0}),(A,j)=>f.value?(b(),S("div",{key:0,ref_key:"containerRef",ref:r,class:Q(["vfm-marquee-container",e.class]),style:F(h.value)},[A.gradient?(b(),S("div",{key:0,style:F(o.value),class:"vfm-overlay"},null,4)):re("",!0),n("div",{class:"vfm-marquee",style:F(l.value),onAnimationiteration:j[0]||(j[0]=T=>t("cycleComplete")),onAnimationend:j[1]||(j[1]=T=>t("finish"))},[n("div",{style:F(c.value),class:"vfm-parent",ref_key:"marqueeRef",ref:d},[xe(A.$slots,"default")],4),(b(!0),S(N,null,P(C(w.value-1),T=>(b(),S("div",{style:F(c.value),class:"vfm-parent"},[xe(A.$slots,"default")],4))),256))],36),n("div",{class:"vfm-marquee",style:F(l.value)},[(b(!0),S(N,null,P(C(w.value),T=>(b(),S("div",{style:F(c.value),class:"vfm-parent"},[xe(A.$slots,"default")],4))),256))],4)],6)):re("",!0)}}),wt={name:"NuxtMarquee",emits:["finish","cycleComplete"],props:["style","class","autoFill","play","pauseOnHover","pauseOnClick","direction","speed","delay","loop","gradient","gradientColor","gradientWidth"],setup(e,{slots:s,emit:t}){return()=>J(bt,{...e,onCycleComplete:()=>t("cycleComplete"),onFinish:()=>t("finish")},s)}},Ct=""+globalThis.__publicAssetsURL("img/img-index-demo-chat.webp"),$t={class:"question-marquee-wrap"},St={class:"question-marquee"},kt=["textContent"],At={__name:"landing-chat",async setup(e){let s,t;const{$store:r,$localePath:d}=ne(),i=v(3),u=v(2),w=v([]),f=async()=>{const x=await r.getIndexQuestion();x.value.status!==200||!x.value.data||(w.value=x.value.data.map(a=>a.question))};return[s,t]=Ce(()=>f()),await s,t(),(x,a)=>{const h=Ke,o=wt;return b(),S("div",$t,[a[0]||(a[0]=n("img",{id:"animate-chat-image",class:"d-block mx-auto animate-fade",src:Ct,alt:"img-jcard-verify-chat-demo"},null,-1)),n("div",St,[(b(!0),S(N,null,P(p(i),l=>(b(),q(o,{key:l,class:Q(["chat-question-list d-flex",{"mb-6 mb-sm-8 mb-md-10 mb-lg-13":l!==p(i)}]),"auto-fill":"","pause-on-hover":"",speed:"50",direction:l%2===0?"right":"left"},{default:y(()=>[(b(!0),S(N,null,P(p(w).slice(p(u)*(l-1),p(u)*l),c=>(b(),q(h,{key:c,to:p(d)(`/chat?q=${c}`)},{default:y(()=>[n("div",{class:"question-item rem-h1 text-primary animate",textContent:$(c)},null,8,kt)]),_:2},1032,["to"]))),128))]),_:2},1032,["class","direction"]))),128))])])}}},Tt=ue(At,[["__scopeId","data-v-230b7d47"]]),Ot={class:"d-flex justify-space-around align-center flex-column flex-sm-row mb-5 mb-sm-0"},jt=["id"],It=["textContent"],Nt={class:"rem-24 rem-md-36 pr-3 d-inline-block text-success"},Rt={__name:"landing-achievement",setup(e){const{lgAndUp:s}=we(),{$store:t}=ne(),{numberSplit:r}=$e(),d=v(0),i=v(0),u=async()=>{const a=await t.getVerifyAmounts();a.value.status===200&&(d.value=a.value.data.scan_wallet_amount,i.value=a.value.data.total_amount)},w=v(0),f=async()=>{const a=await t.getSearchAmount();a.value.status===200&&(w.value=a.value.data.count_amount)},x=O(()=>[{title:"walletScanAmount",content:"walletScanAmountCount",amount:d.value},{title:"verifyAmount",content:"verifyAmountCount",amount:i.value},{title:"searchAmount",content:"searchAmountCount",amount:w.value}]);return u(),f(),(a,h)=>{const o=Qe("i18n-t");return b(),S("div",Ot,[(b(!0),S(N,null,P(p(x),(l,c)=>(b(),S("div",{key:l.title,id:`animate-achievement-${c+1}`,class:Q(["text-center font-weight-bold px-0 px-sm-5 mb-10 animate-fade",c===1?"animate-delay-500ms":c===2?"animate-delay-1000ms":""])},[n("h3",{class:Q(["text-light-gray mb-6",p(s)?"rem-h2":"rem-h4"]),textContent:$(a.$t(l.title))},null,10,It),g(o,{class:"rem-12 rem-lg-18 text-light-gray",tag:"p",scope:"global",keypath:l.content},{count:y(()=>[n("span",Nt,$(p(r)(l.amount)),1)]),_:2},1032,["keypath"])],10,jt))),128))])}}};/**
 * Vue 3 Carousel 0.5.1
 * (c) 2024
 * @license MIT
 */const Ue=["center","start","end","center-even","center-odd"],Fe=["viewport","carousel"],We=["ltr","rtl"],Vt={ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"},k={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,throttle:16,wrapAround:!1,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,snapAlign:Ue[0],dir:We[0],breakpointMode:Fe[0],breakpoints:void 0,i18n:Vt},Ee={itemsToShow:{default:k.itemsToShow,type:Number},itemsToScroll:{default:k.itemsToScroll,type:Number},wrapAround:{default:k.wrapAround,type:Boolean},throttle:{default:k.throttle,type:Number},snapAlign:{default:k.snapAlign,validator(e){return Ue.includes(e)}},transition:{default:k.transition,type:Number},breakpointMode:{default:k.breakpointMode,validator(e){return Fe.includes(e)}},breakpoints:{default:k.breakpoints,type:Object},autoplay:{default:k.autoplay,type:Number},pauseAutoplayOnHover:{default:k.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:k.mouseDrag,type:Boolean},touchDrag:{default:k.touchDrag,type:Boolean},dir:{default:k.dir,validator(e){return We.includes(e)}},i18n:{default:k.i18n,type:Object}};function Lt({config:e,slidesCount:s}){const{snapAlign:t,wrapAround:r,itemsToShow:d=1}=e;if(r)return Math.max(s-1,0);let i;switch(t){case"start":i=s-d;break;case"end":i=s-1;break;case"center":case"center-odd":i=s-Math.ceil((d-.5)/2);break;case"center-even":i=s-Math.ceil(d/2);break;default:i=0;break}return Math.max(i,0)}function Et({config:e,slidesCount:s}){const{wrapAround:t,snapAlign:r,itemsToShow:d=1}=e;let i=0;if(t||d>s)return i;switch(r){case"start":i=0;break;case"end":i=d-1;break;case"center":case"center-odd":i=Math.floor((d-1)/2);break;case"center-even":i=Math.floor((d-2)/2);break;default:i=0;break}return i}function be({val:e,max:s,min:t}){return s<t?e:Math.min(Math.max(e,t),s)}function Pt({config:e,currentSlide:s,slidesCount:t}){const{snapAlign:r,wrapAround:d,itemsToShow:i=1}=e;let u=s;switch(r){case"center":case"center-odd":u-=(i-1)/2;break;case"center-even":u-=(i-2)/2;break;case"end":u-=i-1;break}return d?u:be({val:u,max:t-i,min:0})}function He(e){return e?e.reduce((s,t)=>{var r;return t.type===N?[...s,...He(t.children)]:((r=t.type)===null||r===void 0?void 0:r.name)==="CarouselSlide"?[...s,t]:s},[]):[]}function Mt({val:e,max:s,min:t=0}){const r=s-t+1;return((e-t)%r+r)%r+t}function Bt(e,s){let t;return s?function(...r){const d=this;t||(e.apply(d,r),t=!0,setTimeout(()=>t=!1,s))}:e}function qt(e,s){let t;return function(...r){t&&clearTimeout(t),t=setTimeout(()=>{e(...r),t=null},s)}}function Dt(e="",s={}){return Object.entries(s).reduce((t,[r,d])=>t.replace(`{${r}}`,String(d)),e)}var Ut=ce({name:"ARIA",setup(){const e=K("config",te(Object.assign({},k))),s=K("currentSlide",v(0)),t=K("slidesCount",v(0));return()=>J("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Dt(e.i18n.itemXofY,{currentSlide:s.value+1,slidesCount:t.value}))}}),Ft=ce({name:"Carousel",props:Ee,setup(e,{slots:s,emit:t,expose:r}){var d;const i=v(null),u=v([]),w=v(0),f=v(0),x=O(()=>Object.assign(Object.assign(Object.assign({},k),e),{i18n:Object.assign(Object.assign({},k.i18n),e.i18n),breakpoints:void 0})),a=te(Object.assign({},x.value)),h=v((d=e.modelValue)!==null&&d!==void 0?d:0),o=v(0),l=v(0),c=v(0),_=v(0);let C=null,A=null,j=null;B("config",a),B("slidesCount",f),B("currentSlide",h),B("maxSlide",c),B("minSlide",_),B("slideWidth",w);function T(){var m;if(!e.breakpoints)return;const I=(a.breakpointMode==="carousel"?(m=i.value)===null||m===void 0?void 0:m.getBoundingClientRect().width:window.innerWidth)||0,V=Object.keys(e.breakpoints||{}).map(E=>Number(E)).sort((E,M)=>+M-+E);let U=Object.assign({},x.value);V.some(E=>{var M;return I>=E?(U=Object.assign(Object.assign({},U),(M=e.breakpoints)===null||M===void 0?void 0:M[E]),!0):!1}),Object.assign(a,U)}const L=qt(()=>{T(),D(),W()},16);function W(){if(!i.value)return;const m=i.value.getBoundingClientRect();w.value=m.width/a.itemsToShow}function D(){f.value<=0||(l.value=Math.ceil((f.value-1)/2),c.value=Lt({config:a,slidesCount:f.value}),_.value=Et({config:a,slidesCount:f.value}),a.wrapAround||(h.value=be({val:h.value,max:c.value,min:_.value})))}me(()=>{Ze(()=>W()),setTimeout(()=>W(),1e3),T(),Te(),window.addEventListener("resize",L,{passive:!0}),j=new ResizeObserver(L),i.value&&j.observe(i.value),t("init")}),Be(()=>{A&&clearTimeout(A),C&&clearInterval(C),j&&i.value&&(j.unobserve(i.value),j=null),window.removeEventListener("resize",L,{passive:!0})});let R=!1;const ae={x:0,y:0},le={x:0,y:0},H=te({x:0,y:0}),se=v(!1),ve=v(!1),ze=()=>{se.value=!0},Xe=()=>{se.value=!1};function Se(m){["INPUT","TEXTAREA","SELECT"].includes(m.target.tagName)||(R=m.type==="touchstart",R||m.preventDefault(),!(!R&&m.button!==0||z.value)&&(ae.x=R?m.touches[0].clientX:m.clientX,ae.y=R?m.touches[0].clientY:m.clientY,document.addEventListener(R?"touchmove":"mousemove",ke),document.addEventListener(R?"touchend":"mouseup",Ae)))}const ke=Bt(m=>{ve.value=!0,le.x=R?m.touches[0].clientX:m.clientX,le.y=R?m.touches[0].clientY:m.clientY;const I=le.x-ae.x,V=le.y-ae.y;H.y=V,H.x=I},a.throttle);function Ae(){const m=a.dir==="rtl"?-1:1,I=Math.sign(H.x)*.4,V=Math.round(H.x/w.value+I)*m;if(V&&!R){const U=E=>{E.preventDefault(),window.removeEventListener("click",U)};window.addEventListener("click",U)}X(h.value-V),H.x=0,H.y=0,ve.value=!1,document.removeEventListener(R?"touchmove":"mousemove",ke),document.removeEventListener(R?"touchend":"mouseup",Ae)}function Te(){!a.autoplay||a.autoplay<=0||(C=setInterval(()=>{a.pauseAutoplayOnHover&&se.value||ie()},a.autoplay))}function Oe(){C&&(clearInterval(C),C=null),Te()}const z=v(!1);function X(m){const I=a.wrapAround?m:be({val:m,max:c.value,min:_.value});h.value===I||z.value||(t("slide-start",{slidingToIndex:m,currentSlideIndex:h.value,prevSlideIndex:o.value,slidesCount:f.value}),z.value=!0,o.value=h.value,h.value=I,A=setTimeout(()=>{if(a.wrapAround){const V=Mt({val:I,max:c.value,min:0});V!==h.value&&(h.value=V,t("loop",{currentSlideIndex:h.value,slidingToIndex:m}))}t("update:modelValue",h.value),t("slide-end",{currentSlideIndex:h.value,prevSlideIndex:o.value,slidesCount:f.value}),z.value=!1,Oe()},a.transition))}function ie(){X(h.value+a.itemsToScroll)}function fe(){X(h.value-a.itemsToScroll)}const je={slideTo:X,next:ie,prev:fe};B("nav",je),B("isSliding",z);const Ie=O(()=>Pt({config:a,currentSlide:h.value,slidesCount:f.value}));B("slidesToScroll",Ie);const Ye=O(()=>{const m=a.dir==="rtl"?-1:1,I=Ie.value*w.value*m;return{transform:`translateX(${H.x-I}px)`,transition:`${z.value?a.transition:0}ms`,margin:a.wrapAround?`0 -${f.value*w.value}px`:"",width:"100%"}});function Ne(){T(),D(),W(),Oe()}Object.keys(Ee).forEach(m=>{["modelValue"].includes(m)||Z(()=>e[m],Ne)}),Z(()=>e.modelValue,m=>{m!==h.value&&X(Number(m))}),Z(f,D),t("before-init");const Re={config:a,slidesCount:f,slideWidth:w,next:ie,prev:fe,slideTo:X,currentSlide:h,maxSlide:c,minSlide:_,middleSlide:l};r({updateBreakpointsConfig:T,updateSlidesData:D,updateSlideWidth:W,restartCarousel:Ne,slideTo:X,next:ie,prev:fe,nav:je,data:Re});const pe=s.default||s.slides,ge=s.addons,Ve=te(Re);return()=>{const m=He(pe==null?void 0:pe(Ve)),I=(ge==null?void 0:ge(Ve))||[];m.forEach((M,_e)=>M.props.index=_e);let V=m;if(a.wrapAround){const M=m.map((he,ee)=>Le(he,{index:-m.length+ee,isClone:!0,key:`clone-before-${ee}`})),_e=m.map((he,ee)=>Le(he,{index:m.length+ee,isClone:!0,key:`clone-after-${ee}`}));V=[...M,...m,..._e]}u.value=m,f.value=Math.max(m.length,1);const U=J("ol",{class:"carousel__track",style:Ye.value,onMousedownCapture:a.mouseDrag?Se:null,onTouchstartPassiveCapture:a.touchDrag?Se:null},V),E=J("div",{class:"carousel__viewport"},U);return J("section",{ref:i,class:{carousel:!0,"is-sliding":z.value,"is-dragging":ve.value,"is-hover":se.value,"carousel--rtl":a.dir==="rtl"},dir:a.dir,"aria-label":a.i18n.ariaGallery,tabindex:"0",onMouseenter:ze,onMouseleave:Xe},[E,I,J(Ut)])}}}),Pe;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Pe||(Pe={}));var Wt=ce({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:s}){const t=K("config",te(Object.assign({},k))),r=K("currentSlide",v(0)),d=K("slidesToScroll",v(0)),i=K("isSliding",v(!1)),u=O(()=>e.index===r.value),w=O(()=>e.index===r.value-1),f=O(()=>e.index===r.value+1),x=O(()=>{const a=Math.floor(d.value),h=Math.ceil(d.value+t.itemsToShow-1);return e.index>=a&&e.index<=h});return()=>{var a;return J("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":x.value,"carousel__slide--active":u.value,"carousel__slide--prev":w.value,"carousel__slide--next":f.value,"carousel__slide--sliding":i.value},"aria-hidden":!x.value},(a=s.default)===null||a===void 0?void 0:a.call(s,{isActive:u.value,isClone:e.isClone,isPrev:w.value,isNext:f.value,isSliding:i.value,isVisible:x.value}))}}});const Ht=["textContent"],zt={class:"landing-recommend-wrap"},Xt={class:"d-flex align-center mb-6"},Yt=["src","alt"],Gt=["textContent"],Jt=["textContent"],Kt=["textContent"],Qt={class:"d-flex justify-space-between align-center"},Zt=["textContent"],en={class:"mr-12"},tn={__name:"landing-recommend",async setup(e){let s,t;const{$store:r}=ne(),{xs:d,width:i}=we(),u=v(null),w=O(()=>o.value.length),f=v(null),x=v(2.2);Z(i,()=>{if(h(),d.value){x.value=1;return}const c=document.getElementById("recommend-carousel");if(!c){x.value=2.2;return}const _=c.getBoundingClientRect();x.value=parseFloat((_.width/(a.value+16)).toFixed(1))}),Z(x,c=>{f.value.data.config.itemsToShow=c,f.value.updateSlideWidth()});const a=v(0),h=()=>{let c=560;if(d.value){const _=document.getElementsByClassName("recommend-card")[0];if(!_)return;c=_.getBoundingClientRect().width}a.value=c},o=v([]),l=async()=>{const c=await r.getScholar();c.value.status!==200||!c.value.data||(o.value=c.value.data.map(_=>({name:_.name,avatar:_.url,title:_.scholar_title,content:_.description})))};return[s,t]=Ce(()=>l()),await s,t(),me(()=>{h()}),(c,_)=>(b(),S(N,null,[g(G,null,{default:y(()=>[n("h2",{class:"mb-10 text-left",textContent:$(c.$t("recommend"))},null,8,Ht)]),_:1}),n("div",zt,[g(p(Ft),{ref_key:"recommendCarousel",ref:f,id:"recommend-carousel",modelValue:p(u),"onUpdate:modelValue":_[0]||(_[0]=C=>de(u)?u.value=C:null),"wrap-around":"","snap-align":"start","items-to-show":p(x),"items-to-scroll":1},{default:y(()=>[(b(!0),S(N,null,P(p(o),C=>(b(),q(p(Wt),{key:C.name,class:"justify-start align-start"},{default:y(()=>[g(Me,{class:"recommend-card pa-4 pa-md-6 mr-4 mb-6 lh-150 text-white text-left",color:"dark-black",rounded:"xl",border:"disabled sm opacity-100",height:"fit-content"},{default:y(()=>[n("div",Xt,[n("img",{class:"mr-6 rounded-circle",src:C.avatar,alt:`avatar-${C.name}`},null,8,Yt),n("div",null,[n("div",{class:"rem-2 font-weight-light mb-1",textContent:$(C.title)},null,8,Gt),n("div",{class:"rem-6 font-weight-medium",textContent:$(C.name)},null,8,Jt)])]),n("div",{class:"recommend-content font-weight-light",textContent:$(C.content)},null,8,Kt)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["modelValue","items-to-show"]),n("div",Qt,[n("div",{textContent:$(`${p(u)+1}/${p(w)}`)},null,8,Zt),n("div",en,[n("img",{class:"can-click mr-7",src:qe,alt:"icon-prev",onClick:_[1]||(_[1]=C=>p(f).prev())}),n("img",{class:"can-click",src:De,alt:"icon-next",onClick:_[2]||(_[2]=C=>p(f).next())})])])])],64))}},nn=ue(tn,[["__scopeId","data-v-ce7eba03"]]),an=["textContent"],ln={class:"faq-item d-flex"},sn=["textContent"],on={class:"faq-question flex-grow-1"},rn=["textContent"],un={__name:"landing-faq",setup(e){const{numberZeroFormat:s}=$e(),t=v(null);return(r,d)=>(b(),S(N,null,[n("h2",{class:"mb-10 text-center",textContent:$(r.$t("faq"))},null,8,an),g(et,{class:"border-opacity-100 border-disabled border-t-0"}),g(st,{modelValue:p(t),"onUpdate:modelValue":d[0]||(d[0]=i=>de(t)?t.value=i:null)},{default:y(()=>[(b(!0),S(N,null,P(r.$tm("faqContent"),(i,u)=>(b(),q(tt,{key:i.title,elevation:"0","bg-color":"transparent","selected-class":"bg-transparent"},{default:y(()=>[n("div",ln,[n("div",{class:"faq-index rem-32 rem-md-52 font-weight-thin",textContent:$(p(s)(parseInt(u)+1))},null,8,sn),n("div",on,[g(nt,{class:Q(["faq-title d-flex justify-space-between align-center bg-transparent mb-2 mb-md-5 py-5 px-3 pa-md-5",{"active text-primary":p(t)===parseInt(u)}]),"hide-actions":""},{default:y(()=>[n("div",{class:Q(["flex-grow-1 rem-6 font-weight-bold lh-125",{"text-primary animate":p(t)===parseInt(u)}]),textContent:$(i.title)},null,10,rn),g(at,{class:"expand-icon",icon:"mdi-plus"})]),_:2},1032,["class"]),g(lt,{class:"font-weight-light lh-150"},{default:y(()=>[ye($(i.content),1)]),_:2},1024)])])]),_:2},1024))),128))]),_:1},8,["modelValue"])],64))}},dn=""+globalThis.__publicAssetsURL("img/img-index-demo.webp"),cn=""+globalThis.__publicAssetsURL("img/img-index-chat-intro.webp"),mn=""+globalThis.__publicAssetsURL("img/img-index-demo-laptop.webp"),vn={class:"landing-page overflow-x-visible"},fn={class:"landing-slogan"},pn={class:"mr-2 mr-sm-8"},gn=["textContent"],_n=["textContent"],hn={class:"d-flex justify-center w-100"},xn={class:"landing-partner"},yn={class:"landing-chat-question"},bn={class:"landing-chat-intro"},wn=["textContent"],Cn={id:"animate-chat-intro-subtitle",class:"rem-h2 mb-4 mb-md-6 d-flex flex-wrap flex-column flex-sm-row text-center text-sm-left animate-fade"},$n=["textContent"],Sn=["textContent"],kn=["textContent"],An={class:"landing-achievement"},Tn={class:"landing-jv-intro"},On={id:"animate-jv-intro-subtitle",class:"rem-h2 mb-4 mb-md-6 d-flex flex-wrap flex-column flex-sm-row text-center text-sm-left animate-fade"},jn=["textContent"],In=["textContent"],Nn=["textContent"],Rn={class:"landing-recommend"},Vn={id:"animate-recommend",class:"animate-fade"},Ln={id:"faq",class:"landing-faq"},Mn={__name:"index",setup(e){const{$localePath:s}=ne(),t=it(),{showDialog:r}=ot(),{addressRule:d}=rt(),{checkIsWallet:i}=$e(),u=v(""),w=async()=>{if(u.value){if(d(u.value)===!0){const l=await i(u.value)?`/wallet/${u.value}`:`/search/details/${u.value}`;t.push(s(l));return}t.push({path:s("/search"),query:{v:encodeURIComponent(u.value)}})}},f=v([]),x=v([{id:"animate-title",animate:"animate-fade-in-up-text"},{id:"animate-subtitle",animate:"animate-fade-in-up-text"},{id:"animate-demo-image",animate:"animate-fade-in-right"},{id:"animate-partner-content",animate:"animate-fade-in-up"},{id:"animate-chat-image",animate:"animate-fade-in-up"},{id:"animate-chat-intro-image",animate:"animate-fade-in-left"},{id:"animate-chat-intro-title",animate:"animate-fade-in-up-text"},{id:"animate-chat-intro-subtitle",animate:"animate-fade-in-up-text"},{id:"animate-chat-intro-description",animate:"animate-fade-in-up-text"},{id:"animate-achievement-1",animate:"animate-fade-in-up"},{id:"animate-achievement-2",animate:"animate-fade-in-up"},{id:"animate-achievement-3",animate:"animate-fade-in-up"},{id:"animate-jv-intro-image",animate:"animate-fade-in-right"},{id:"animate-jv-intro-title",animate:"animate-fade-in-up-text"},{id:"animate-jv-intro-subtitle",animate:"animate-fade-in-up-text"},{id:"animate-jv-intro-description",animate:"animate-fade-in-up-text"},{id:"animate-recommend",animate:"animate-fade-in-up"},{id:"animate-faq",animate:"animate-fade-in-up"}]),a=v(null),h=()=>{f.value=x.value.map(o=>document.getElementById(o.id)),window.setTimeout(()=>{try{if(!f.value.length)return;f.value.forEach(o=>{a.value.observe(o)})}catch{h()}},1e3)};return me(()=>{a.value=new IntersectionObserver(o=>{o.forEach((l,c)=>{const _=x.value.find(C=>C.id===l.target.id);_!==-1&&(l.isIntersecting?l.target.classList.add(_.animate):l.target.classList.remove(_.animate))})}),h()}),Be(()=>{a.value.disconnect()}),(o,l)=>{const c=ut,_=ft,C=yt,A=Tt,j=Rt,T=dt,L=nn,W=un;return b(),S("section",vn,[n("section",fn,[l[5]||(l[5]=n("div",{class:"bg-deco deco-slogan-left"},null,-1)),g(G,null,{default:y(()=>[g(oe,{class:"flex-column-reverse flex-md-row"},{default:y(()=>[g(Y,{class:"slogan-search-block d-flex flex-column justify-center align-center",cols:"12",md:"6"},{default:y(()=>[n("h1",{id:"animate-title",class:Q(["mb-1 d-flex flex-wrap animate-fade",{"rem-h2":o.$vuetify.display.mdAndDown}])},[n("span",pn,[ye($(o.$t("indexSlogan[0][0]"))+" ",1),n("span",{class:"text-primary",textContent:$(o.$t("indexSlogan[0][1]"))},null,8,gn)]),n("span",null,[ye($(o.$t("indexSlogan[1][0]"))+" ",1),n("span",{class:"text-tertiary",textContent:$(o.$t("indexSlogan[1][1]"))},null,8,_n)])],2),l[3]||(l[3]=n("div",{id:"animate-subtitle",class:"rem-6 rem-sm-12 rem-lg-16 mb-8 mb-md-10 animate-fade animate-delay-500ms",textContent:"Verify Before You Invest in Crypto"},null,-1)),n("div",hn,[o.$store.isLogin?re("",!0):(b(),q(c,{key:0,class:"mr-4","text-no-i18n":"",variant:"outlined","btn-text":`${o.$t("login")}/${o.$t("register")}`,"max-width":o.$vuetify.display.xs?"calc(50% - 8px)":"200px",onClickBtn:l[0]||(l[0]=D=>p(r)("login"))},null,8,["btn-text","max-width"])),g(c,{"btn-text":"startUsing","max-width":o.$vuetify.display.xs?"calc(50% - 8px)":"200px",to:p(s)("/explore")},null,8,["max-width","to"])])]),_:1}),g(Y,{cols:"12",md:"6"},{default:y(()=>l[4]||(l[4]=[n("div",{id:"animate-demo-image",class:"animate-fade animate-delay-1000ms"},[n("img",{src:dn,alt:"img-jcard-verify-demo"})],-1)])),_:1})]),_:1})]),_:1}),o.$vuetify.display.mdAndUp?(b(),q(_,{key:0})):re("",!0)]),n("section",xn,[g(G,null,{default:y(()=>[g(C,{id:"animate-partner-content",class:"animate-fade"})]),_:1})]),n("section",yn,[g(A)]),n("section",bn,[g(G,null,{default:y(()=>[g(oe,{class:"flex-column flex-sm-row"},{default:y(()=>[g(Y,{class:"d-flex justify-center justify-md-end align-center",cols:"12",sm:"5"},{default:y(()=>l[6]||(l[6]=[n("img",{id:"animate-chat-intro-image",class:"d-block animate-fade animate-delay-1000ms",src:cn,alt:"img-jcard-verify-chat-intro"},null,-1)])),_:1}),g(Y,{class:"d-flex flex-column justify-center align-center align-sm-start",cols:"12",sm:"7"},{default:y(()=>[n("h2",{id:"animate-chat-intro-title",class:"mb-2 animate-fade",textContent:$(o.$t("aiChatTitle"))},null,8,wn),n("h3",Cn,[n("span",{class:"mr-0 mr-sm-5",textContent:$(o.$t("aiChatSlogan[0]"))},null,8,$n),n("span",{class:"text-tertiary",textContent:$(o.$t("aiChatSlogan[1]"))},null,8,Sn)]),n("div",{id:"animate-chat-intro-description",class:"lh-150 mb-8 mb-md-10 text-center text-sm-left animate-fade animate-delay-500ms",textContent:$(o.$t("aiChatIntroduction"))},null,8,kn),g(c,{"btn-text":"startChatting",width:"347px",height:o.$vuetify.display.lgAndUp?"60px":"38px",to:`${p(s)("/chat")}`},null,8,["height","to"])]),_:1})]),_:1})]),_:1})]),n("section",An,[g(G,null,{default:y(()=>[g(j)]),_:1})]),n("section",Tn,[g(G,null,{default:y(()=>[g(oe,{class:"flex-column-reverse flex-sm-row"},{default:y(()=>[g(Y,{class:"d-flex flex-column justify-center align-center align-sm-start",cols:"12",sm:"7"},{default:y(()=>[l[7]||(l[7]=n("h2",{id:"animate-jv-intro-title",class:"mb-2 animate-fade",textContent:"Jcard Verify"},null,-1)),n("h3",On,[n("span",{class:"mr-0 mr-sm-5",textContent:$(o.$t("jvSlogan[0]"))},null,8,jn),n("span",{class:"text-tertiary",textContent:$(o.$t("jvSlogan[1]"))},null,8,In)]),n("div",{id:"animate-jv-intro-description",class:"lh-150 mb-8 mb-md-10 text-center text-sm-left pre-wrap animate-fade animate-delay-500ms",textContent:$(o.$t("jvIntroduction"))},null,8,Nn),g(T,{class:"w-100 mb-7","input-text":p(u),"onUpdate:inputText":l[1]||(l[1]=D=>de(u)?u.value=D:null),"is-absolute":"",placeholder:"searchKeywordsOrAddress"},null,8,["input-text"]),g(c,{"btn-text":"startSearching",width:"327px",height:o.$vuetify.display.lgAndUp?"60px":"38px",onClickBtn:l[2]||(l[2]=D=>w())},null,8,["height"])]),_:1}),g(Y,{class:"d-flex justify-center justify-md-end align-center",cols:"12",sm:"5"},{default:y(()=>l[8]||(l[8]=[n("img",{id:"animate-jv-intro-image",class:"d-block w-100 animate-fade animate-delay-1000ms",src:mn,alt:"img-jcard-verify-intro"},null,-1)])),_:1})]),_:1})]),_:1})]),n("section",Rn,[n("div",Vn,[g(L)]),l[9]||(l[9]=n("div",{class:"bg-deco deco-recommend"},null,-1))]),n("section",Ln,[g(G,{id:"animate-faq",class:"animate-fade"},{default:y(()=>[g(W)]),_:1}),l[10]||(l[10]=n("div",{class:"bg-deco deco-faq"},null,-1))])])}}};export{Mn as default};