PageSourceSearch

https://static.app.ailingtu.com/assets/js/tiktokBusiness-D5wmhC1o.js

js ailingtu.com collected 2026-09-24 13:42:40 UTC 8,024 bytes, 1 lines download raw bytes

1import{h as E,al as T,J as V,g as F,a3 as l,a4 as e,u as r,W as o,_ as k,c as i,F as H,aA as U,aw as g,ak as q,a1 as u}from"./vendor-vue-CgQCeYUO.js";import{d as I,H as O,a as P}from"./index-DJC6Sr4p.js";import"./vendor-Cw-6FgMu.js";import"./vendor-charts-CWma0ncG.js";import"./vendor-vuetify-DfLvkJma.js";import"./vendor-vxe-Chlhsjt_.js";const W={class:"page-wrapper !m-0 !min-h-dvh !w-full !rounded-none !bg-[#F7F8FA] !p-0"},$={class:"mx-auto flex min-h-dvh w-full max-w-md flex-col justify-center px-5 py-10 sm:px-6 sm:py-14"},N={class:"mb-8 flex items-center justify-between gap-4"},Z=["href"],J=["src","alt"],R={class:"text-lg font-semibold tracking-tight text-[#0D1321]"},G={class:"relative"},K={key:0,class:"absolute right-0 z-20 mt-2 w-40 rounded-xl border border-gray-200 bg-white py-1 text-[13px] text-[#2D3348] shadow-lg"},Q=["onClick"],X={class:"truncate"},Y={key:0,class:"text-[12px] text-[#6A5CFF]"},ee={class:"rounded-3xl border border-gray-200/80 bg-white p-5 shadow-[0_1px_2px_rgba(16,24,40,0.04)] sm:p-8"},te={class:"flex flex-col items-center text-center"},se={key:0,class:"h-7 w-7",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},ne={key:1,class:"h-7 w-7",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},oe={key:2,class:"h-7 w-7",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},re={class:"mt-4 text-xl font-semibold tracking-tight text-[#0D1321]"},ie={class:"mt-2 text-sm leading-6 text-[#687280]"},ae={class:"mt-7 rounded-2xl border border-gray-200/80 bg-[#F7F8FA] p-3"},le={class:"mb-2 flex items-center justify-between gap-3"},ue={class:"text-[12px] font-semibold text-[#687280]"},ce={class:"break-all rounded-xl bg-white px-3 py-2 font-mono text-[12px] leading-5 text-[#2D3348] ring-1 ring-gray-200"},de={class:"mt-6 flex flex-col gap-2 sm:flex-row sm:gap-2.5"},he=["href"],Fe=E({__name:"tiktokBusiness",setup(pe){const _="/daren360-favicon.png",b="https://www.ailingtu.com",p=q(),{t:s}=T(),x=I(),{showMessage:v}=P(),d=F(""),y=`${window.location.origin}/manage/authorized-accounts`,m=O.map(t=>({value:t.value,label:t.nativeText,shortLabel:t.shortLabel,menuLabel:t.nativeText})),f=i({get:()=>x.currentLocale,set:t=>{x.setLocale(t)}}),h=F(!1),C=i(()=>{const t=m.find(n=>n.value===f.value);return(t==null?void 0:t.shortLabel)??"中"}),A=t=>{f.value=t,h.value=!1},L=async()=>{if(d.value)try{await navigator.clipboard.writeText(d.value),v(s("businessAuthorization.copyLinkSuccess"),"success")}catch{v(s("businessAuthorization.copyLinkFailed"),"error")}},w=i(()=>{const t=Array.isArray(p.query.status)?p.query.status[0]:p.query.status;return typeof t=="string"?t.trim():""}),a=i(()=>{const t=w.value.toUpperCase();return t?t==="SUCCESS"?"success":t==="FAILED"?"error":"unknown":"unknown"}),D=i(()=>{switch(a.value){case"success":return s("businessAuthorization.authSuccessTitle");case"error":return s("businessAuthorization.authFailedTitle");default:return s("businessAuthorization.authStatusTitle")}}),z=i(()=>{switch(a.value){case"success":return s("businessAuthorization.statusSuccess");case"error":return s("businessAuthorization.statusFailed");default:return w.value||s("shopPage.unknown")}}),S=i(()=>{switch(a.value){case"success":return s("businessAuthorization.authSuccessDesc");case"error":return s("businessAuthorization.authFailedDesc");default:return s("businessAuthorization.authUnknownDesc")}}),B=i(()=>{switch(a.value){case"success":return"bg-[#E6FFFB] text-[#009B91]";case"error":return"bg-[#FFE6EC] text-[#D93658]";default:return"bg-[#F4F2FF] text-[#5B4DFF]"}}),M=i(()=>{switch(a.value){case"success":return"bg-[#E6FFFB] text-[#007C73]";case"error":return"bg-[#FFE6EC] text-[#D93658]";default:return"bg-[#F4F2FF] text-[#5B4DFF]"}}),j=i(()=>{switch(a.value){case"success":return"bg-[#009B91]";case"error":return"bg-[#FF4D6D]";default:return"bg-[#6A5CFF]"}});return V(()=>{d.value=window.location.href}),(t,n)=>(u(),l("div",W,[e("div",$,[e("div",N,[e("a",{href:r(b),target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-2.5 rounded-2xl py-1 pr-2 transition duration-200 hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#6A5CFF]/25"},[e("img",{src:r(_),alt:r(s)("logo.name"),class:"h-9 w-9 object-contain"},null,8,J),e("span",R,o(r(s)("logo.name")),1)],8,Z),e("div",G,[e("button",{type:"button",class:"inline-flex items-center gap-1.5 rounded-full border border-gray-200 bg-white px-3 py-1.5 text-[12px] font-medium text-[#2D3348] transition duration-200 hover:bg-[#F7F8FA] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#6A5CFF]/25",onClick:n[0]||(n[0]=c=>h.value=!h.value)},[e("span",null,o(C.value),1),n[1]||(n[1]=e("svg",{class:"h-3.5 w-3.5 text-[#8A93A1]",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M6 8L10 12L14 8",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"})],-1))]),h.value?(u(),l("div",K,[(u(!0),l(H,null,U(r(m),c=>(u(),l("button",{key:c.value,type:"button",class:"flex w-full items-center justify-between gap-2 px-3 py-2 text-left transition duration-200 hover:bg-[#F7F8FA]",onClick:fe=>A(c.value)},[e("span",X,o(c.menuLabel),1),c.value===f.value?(u(),l("span",Y,"✓")):k("",!0)],8,Q))),128))])):k("",!0)])]),e("div",ee,[e("div",te,[e("div",{class:g(["inline-flex h-14 w-14 items-center justify-center rounded-full",B.value])},[a.value==="success"?(u(),l("svg",se,[...n[2]||(n[2]=[e("path",{d:"M5 12.5L9.2 16.5L19 7",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):a.value==="error"?(u(),l("svg",ne,[...n[3]||(n[3]=[e("path",{d:"M12 8V13",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round"},null,-1),e("path",{d:"M12 17H12.01",stroke:"currentColor","stroke-width":"2.8","stroke-linecap":"round"},null,-1),e("path",{d:"M10.3 4.2L2.9 17.1C2.1 18.5 3.1 20.2 4.7 20.2H19.3C20.9 20.2 21.9 18.5 21.1 17.1L13.7 4.2C12.9 2.8 11.1 2.8 10.3 4.2Z",
1stroke:"currentColor","stroke-width":"1.8","stroke-linejoin":"round"},null,-1)])])):(u(),l("svg",oe,[...n[4]||(n[4]=[e("path",{d:"M12 11V16",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round"},null,-1),e("path",{d:"M12 8H12.01",stroke:"currentColor","stroke-width":"2.8","stroke-linecap":"round"},null,-1),e("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"1.8"},null,-1)])]))],2),e("div",{class:g(["mt-4 inline-flex items-center gap-2 rounded-full px-3 py-1.5 text-[12px] font-semibold",M.value])},[e("span",{class:g(["h-1.5 w-1.5 rounded-full",j.value])},null,2),e("span",null,o(z.value),1)],2),e("h1",re,o(D.value),1),e("p",ie,o(S.value),1)]),e("div",ae,[e("div",le,[e("p",ue,o(r(s)("businessAuthorization.currentLink")),1),e("button",{type:"button",class:"inline-flex h-8 items-center rounded-full bg-white px-3 text-[12px] font-semibold text-[#6A5CFF] ring-1 ring-gray-200 transition duration-200 hover:bg-[#F8F7FF] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#6A5CFF]/25",onClick:L},o(r(s)("businessAuthorization.copyLink")),1)]),e("p",ce,o(d.value||"-"),1)]),e("div",de,[e("a",{href:y,class:"inline-flex h-12 w-full items-center justify-center rounded-full bg-[#0D1321] px-6 text-sm font-medium text-white transition duration-200 hover:bg-[#1C2433] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#6A5CFF]/30 focus-visible:ring-offset-2 sm:flex-1"},o(r(s)("businessAuthorization.goToAuthorizedAccounts")),1),e("a",{href:r(b),target:"_blank",rel:"noopener noreferrer",class:"inline-flex h-11 w-full items-center justify-center rounded-full text-sm font-medium text-[#687280] transition duration-200 hover:text-[#0D1321] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#6A5CFF]/25 sm:h-12 sm:flex-1 sm:border sm:border-gray-200 sm:bg-white sm:px-6 sm:text-[#2D3348] sm:hover:bg-[#F7F8FA]"},o(r(s)("businessAuthorization.openWebsite")),9,he)])])])]))}});export{Fe 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.