1import{_ as w}from"./hHFHewoq.js";import{d as k,u as B,n as E,G as N,r as i,o as I,f as l,a as o,b as e,q as $,h as s,p as h,e as j,g as y,H as c,t as u,s as L}from"./zGN25SIG.js";import{_ as C}from"./B4Q5fQQX.js";const P={id:"link-social-main",class:"w-full mx-auto max-w-[438px] overflow-hidden relative min-h-screen"},S={class:"h-[calc(100vh-72px)] overflow-auto pb-[100px]"},T={class:"min-h-full flex flex-col"},z={class:"my-auto w-full py-8"},V={class:"login-form mt-6"},U={key:0,class:"flex flex-col items-center gap-3 py-8"},q={key:1,class:"flex flex-col items-center gap-3 text-center py-8 px-4"},A={key:2,class:"flex flex-col items-center gap-3 text-center py-8 px-4"},D={key:3,class:"flex flex-col items-center gap-5 py-6 px-6"},R={class:"relative"},G=["src"],H={key:1,class:"w-20 h-20 rounded-full border-2 border-[#06c755] flex items-center justify-center bg-white/10"},M={class:"absolute -bottom-1 -right-1 w-7 h-7 bg-[#06c755] rounded-full flex items-center justify-center p-1 shadow-md"},O=["src"],F={class:"text-center"},J={class:"font-bold text-lg text-white"},K={class:"text-sm text-center text-white/70 leading-relaxed"},Q={class:"text-[#E3BB72] font-semibold"},W={key:0,class:"text-red-400 text-xs text-center"},X={class:"flex gap-3 w-full"},Y=["disabled"],le=k({__name:"line",setup(Z){const g=B(),x=E(),p=N(()=>g.query.token||""),a=i(null),f=i(!0),m=i(!1),r=i(!1),v=i(!1),d=i("");I(async()=>{if(!p.value){m.value=!0,f.value=!1;return}try{const n="https://davyjones.mrwed.cloud/".replace(/\/$/,"");a.value=await $fetch(`${n}/customer/v2/my/line-link-info?token=${encodeURIComponent(p.value)}`,{headers:{Authorization:`Bearer ${x.secureToken}`}})}catch{m.value=!0}finally{f.value=!1}});async function _(){if(!r.value){r.value=!0,d.value="";try{const n="https://davyjones.mrwed.cloud/".replace(/\/$/,"");await $fetch(`${n}/customer/v2/my/link-line`,{method:"POST",headers:{Authorization:`Bearer ${x.secureToken}`},body:{token:p.value}}),v.value=!0}catch(n){const t=n;d.value=t?.data?.message||t?.message||"à¹à¸à¸´à¸à¸à¹à¸à¸à¸´à¸à¸à¸¥à¸²à¸ à¸à¸£à¸¸à¸à¸²à¸¥à¸à¸à¹à¸«à¸¡à¹"}finally{r.value=!1}}}function b(){L("/home")}return(n,t)=>(o(),l("div",P,[e("div",{class:"login-bg",style:$({backgroundImage:`url(${s(h)("/images/login-backdrop.webp")})`})},null,4),e("section",null,[t[1]||(t[1]=e("div",{style:{height:"72px"}},null,-1)),e("div",{class:"flex justify-between items-center p-4",style:{position:"fixed",top:"0",width:"100%","max-width":"438px","z-index":"10"}},[e("img",{class:"cursor-pointer",src:w,alt:"back",onClick:b}),t[0]||(t[0]=e("div",null,null,-1))])]),e("div",S,[e("div",T,[e("div",z,[j(C),e("div",V,[s(f)?(o(),l("div",U,t[2]||(t[2]=[e("div",{class:"w-8 h-8 border-2 border-[#E3BB72] border-t-transparent rounded-full animate-spin"},null,-1),e("p",{class:"text-sm text-white/50"},"à¸à¸³à¸¥à¸±à¸à¹à¸«à¸¥à¸...",-1)]))):s(m)?(o(),l("div",q,t[3]||(t[3]=[e("div",{class:"text-5xl"},"â°",-1),e("p",{class:"font-bold text-lg text-[#E3BB72]"},"ลิà¸à¸à¹à¸«à¸¡à¸à¸à¸²à¸¢à¸¸à¹à¸¥à¹à¸§",-1),e("p",{class:"text-sm text-white/60"},"à¸à¸£à¸¸à¸à¸²à¸à¸¥à¸±à¸à¹à¸à¸à¸à¹à¸à¸·à¹à¸à¸¡à¸à¸±à¸à¸à¸µà¹à¸«à¸¡à¹à¹à¸à¹à¸à¸ LINE",-1)]))):s(v)?(o(),l("div",A,t[4]||(t[4]=[e("div",{class:"text-5xl"},"â
",-1),e("p",{class:"font-bold text-xl text-[#E3BB72]"},"à¹à¸à¸·à¹à¸à¸¡à¸à¸±à¸à¸à¸µ LINE สำà¹à¸£à¹à¸!",-1),e("p",{class:"text-sm text-white/60"},[c("สามารà¸à¸à¸´à¸à¸«à¸à¹à¸²à¸à¹à¸²à¸à¸à¸µà¹à¹à¸à¹"),e("br"),c("หรืà¸à¸à¸¥à¸±à¸à¹à¸à¸à¸µà¹à¹à¸à¸ LINE")],-1)]))):s(a)?(o(),l("div",D,[e("div",R,[s(a).lineProfilePicture?(o(),l("img",{key:0,src:s(a).lineProfilePicture,class:"w-20 h-20 rounded-full object-cover border-2 border-[#06c755]",alt:"LINE profile"},null,8,G)):(o(),l("div",H,t[5]||(t[5]=[e("span",{class:"text-3xl"},"ð¤",-1)]))),e("div",M,[e("img",{src:s(h)("/images/layout/icn-line.svg"),alt:"LINE",class:"w-full h-full object-contain"},null,8,O)])]),e("div",F,[t[6]||(t[6]=e("p",{class:"text-[11px] text-white/40 uppercase tracking-widest mb-1"},"à¸à¸·à¹à¸ LINE",-1)),e("p",J,u(s(a).lineDisplayName),1)]),t[11]||(t[11]=e("div",{class:"w-full h-px bg-[#E3BB72]/20"},null,-1)),e("p",K,[t[7]||(t[7]=c(" à¸à¹à¸à¸à¸à¸²à¸£à¹à¸à¸·à¹à¸à¸¡à¸à¸±à¸à¸à¸µ LINE à¸à¸µà¹",-1)),t[8]||(t[8]=e("br",null,null,-1)),t[9]||(t[9]=c(" à¸à¸±à¸à¸à¸±à¸à¸à¸µ ",
1-1)),e("span",Q,u(s(x).username),1),t[10]||(t[10]=c(" à¸à¸à¸à¸à¸¸à¸à¹à¸à¹à¹à¸«à¸¡? ",-1))]),s(d)?(o(),l("p",W,u(s(d)),1)):y("",!0),e("div",X,[e("button",{class:"flex-1 h-[44px] rounded-[10px] border border-white/20 text-white/60 font-medium text-sm transition-all active:bg-white/5",onClick:b},"ยà¸à¹à¸¥à¸´à¸"),e("button",{class:"flex-1 h-[44px] rounded-[10px] bg-[#06c755] text-white font-bold text-sm transition-all active:opacity-80 disabled:opacity-50",disabled:s(r),onClick:_},u(s(r)?"à¸à¸³à¸¥à¸±à¸à¹à¸à¸·à¹à¸à¸¡...":"ยืà¸à¸¢à¸±à¸"),9,Y)])])):y("",!0)])])])])]))}});export{le as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.