PageSourceSearch

https://marketize.biz/_nuxt/CAf3b4-g.js

js marketize.biz collected 2026-10-02 00:28:10 UTC 3,605 bytes, 1 lines download raw bytes

1import{_ as S}from"./CSkm8WXl.js";import{G as j,m as A,H as T,o as E,$ as y,c as p,a as t,u as n,F as h,d as B,t as d,e as w,w as x,i as C,r as f,b as v,f as _}from"./B27EFU-J.js";import{u as M}from"./kczUj8SE.js";const N={class:"flex min-h-screen items-center justify-center bg-gray-50 px-4"},V={class:"w-full max-w-sm text-center"},L={class:"mb-2 text-xl font-semibold text-gray-900"},P={class:"text-sm text-gray-500"},R={class:"mb-2 text-xl font-semibold text-gray-900"},F={class:"mb-6 text-sm text-gray-500"},I={class:"flex flex-col gap-3"},D={__name:"callback",setup(O){const l=j(),b=M(),k=A(),{getSocialType:g}=T(l),c=f("loading"),s=f("Connecting with Apple"),a=f("Please wait while we verify your account…");return E(async()=>{try{if(await l.fetchSocialType(),!g.value){await y("/auth/register");return}const i=g.value?.pageSource!=="registration";i?(s.value="Signing you in",a.value="Verifying your Apple account…"):(s.value="Creating your account",a.value="Setting up your Marketize account…");const e={code:k.query.code,redirect_uri:`${window.location.origin}/auth/apple/callback`,...!i&&{role:g.value?.userType}};await b.appleLogin(e).then(async o=>{c.value="success",s.value=i?"Signed in!":"Account created!",a.value="Redirecting you to your dashboard…",await l.deleteSocialType();const r=!!localStorage.getItem("book_campaign_form"),u=!!localStorage.getItem("create_service_form");await y(r?"/dashboard/book-campaign?step=3":u?"/dashboard/services/create-service?step=3":"/dashboard")}).catch(async o=>{c.value="error",s.value="Something went wrong",await l.deleteSocialType();const r=o?.response?._data;if(r&&typeof r=="object"){const u=[];Object.values(r).flat().forEach(m=>{u.push(m)}),a.value=u.join(". ")||"Apple sign-in failed. Please try again."}else a.value="Apple sign-in failed. Please try again."})}catch(i){c.value="error",s.value="Something went wrong",await l.deleteSocialType();const e=i?.response?._data;if(e&&typeof e=="object"){const o=[];Object.values(e).flat().forEach(r=>{o.push(r)}),a.value=o.join(". ")||"Apple sign-in failed. Please try again."}else a.value="Apple sign-in failed. Please try again."}}),(i,e)=>{const o=S;return v(),p("div",N,[t("div",V,[n(c)==="loading"?(v(),p(h,{key:0},[e[0]||(e[0]=B('<div class="mb-6 flex justify-center"><div class="relative h-14 w-14"><svg class="h-14 w-14 animate-spin" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="28" cy="28" r="24" stroke="#E5E7EB" stroke-width="4"></circle><path d="M52 28A24 24 0 0 0 4 28" stroke="#EF4444" stroke-width="4" stroke-linecap="round"></path></svg></div></div>',1)),t("h1",L,d(n(s)),1),t("p",P,d(n(a)),1)],64)):n(c)==="error"?(v(),p(h,{key:1},[e[3]||(e[3]=t("div",{class:"mb-6 flex justify-center"},[t("div",{class:"flex h-14 w-14 items-center justify-center rounded-full bg-red-100"},[t("svg",{class:"h-7 w-7 text-red-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2.5",d:"M6 18L18 6M6 6l12 12"})])])],-1)),t("h1",R,d(n(s)),1),t("p",F,d(n(a)),1),t("div",I,[w(o,{to:"/auth/login",class:"w-full rounded-full bg-red-500 py-3 text-sm font-medium text-white transition-all hover:bg-red-600 hover:shadow-md"},{default:x(()=>[...e[1]||(e[1]=[_(" Back to Login ",-1)])]),_:1}),w(o,{to:"/auth/register",class:"w-full rounded-full border border-gray-300 bg-white py-3 text-sm font-medium text-gray-700 transition-all hover:border-gray-400 hover:bg-gray-50"},{default:x(()=>[...e[2]||(e[2]=[_(" Create Account ",-1)])]),_:1})])],64)):C("",!0)])])}}};export{D 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.