PageSourceSearch

https://anthum.ai/assets/WrongAccountType-DSAEqIil.js

js anthum.ai collected 2026-10-05 11:50:49 UTC 5,874 bytes, 6 lines download raw bytes

1import{p as B,r as u,j as e,a as C,L as P}from"./vendor-CSpQeQFa.js";import{u as S,o as _,a8 as D,v as p,B as b,s as R}from"./entry-main-PLc9_a6q.js";import{U as H}from"./UnifiedLandingNavbar-YbhbV29r.js";import{B as I}from"./BrandCampaignFooter-C-Dv8MPy.js";import{L as U}from"./BlogLayout-DjYXQEOb.js";import{c as M}from"./zerionWallet-YD6NMGW7-anviiTIZ.js";import{L as T}from"./BonusExpiryCountdown-DZAQV4Wx.js";import{U as f}from"./imagePrewarm-Cu68tRU8.js";import{B as g}from"./useReportTemplate-CZAtBovG.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const V=M("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);function w(s,n){return s==="business"||s==="creator"?s:n}function Y(s){return s==="business"?"brand":"creator"}const j={creator:"Creator",business:"Brand"},Z=()=>{const[s]=B(),{profile:n,refreshProfile:A}=S(),{provisionRole:y}=_(),[o,i]=u.useState(!1),[c,l]=u.useState(null),a=w(s.get("attempted"),"creator"),r=w(s.get("account")??n?.user_type??null,"business"),d=Y(a),t=a==="business",x=a==="creator",N=j[r],h=j[a],v=a==="business"?"/company-dashboard":D(),m=r==="creator"?p("creator","/creator"):p("brand","/company-dashboard"),k=r==="creator"?"Go to Creator Hub":"Go to Brand Dashboard",L=async()=>{i(!0),l(null);try{if(await y(a),a==="business")try{await R.functions.invoke("auth-brand-auto-approve-v1",{body:{}})}catch{}await A(),window.location.href=v}catch{i(!1),l("We couldn't enable that just now. Please try again.")}},$=()=>{window.location.href="/logout"},E=x?f:g,z=r==="business"?g:f;return e.jsxs("div",{className:`min-h-dvh flex flex-col font-dm-sans antialiased ${t?"bg-neutral-100 text-[#1A1A1A]":"bg-zinc-950 text-white"}`,children:[C.createPortal(e.jsx("div",{className:"fixed top-0 left-0 right-0 z-50",children:e.jsx(H,{activeView:d,morphedView:d,showMarketingActions:!1,authenticatedActions:[{label:"Go to dashboard",href:m,variant:"primary"}]})}),document.body),e.jsx("main",{className:"flex flex-1 items-center justify-center px-5 pb-12 sm:px-8 sm:pb-16",style:{paddingTop:"calc(var(--sat, 0px) + clamp(5.5rem, 14dvh, 7.5rem))"},children:e.jsx("div",{className:"w-full max-w-md",children:e.jsxs("div",{className:`rounded-2xl border p-6 shadow-[0_8px_30px_rgba(0,0,0,0.08)] sm:p-8 min-[2400px]:rounded-3xl min-[2400px]:p-10 ${t?"border-black/10 bg-white":"border-white/10 bg-zinc-900/80"}`,children:[e.jsxs("div",{className:"mb-5 flex items-center justify-center gap-3",children:[e.jsx("div",{className:`flex h-12 w-12 items-center justify-center rounded-xl ${t?"bg-black/[0.04] text-[#6A7282]":"bg-white/10 text-zinc-400"}`,children:e.jsx(z,{className:"h-6 w-6","aria-hidden":!0})}),e.jsx(V,{className:`h-5 w-5 ${t?"text-[#6A7282]":"text-zinc-500"}`,"aria-hidden":!0}),e.jsx("div",{className:`flex h-12 w-12 items-center justify-center rounded-xl ${t?"bg-neutral-900/10 text-neutral-900":"bg-white/15 text-white"}`,children:e.jsx(E,{className:"h-6 w-6","aria-hidden":!0})})]}),e.jsx("p",{className:`mb-2 text-center text-[11px] font-medium uppercase tracking-wider ${t?"text-[#6A7282]":"text-zinc-500"}`,children:"One login, both sides"}),e.jsxs("h1",{className:`text-center font-dm-serif text-[clamp(1.25rem,2.4dvh,1.75rem)] leading-snug tracking-tight sm:text-2xl ${t?"text-[#1A1A1A]":"text-white"}`,children:["Use the"," ",e.jsx("span",{className:t?"text-neutral-900":"text-white",children:h})," ","side with this account"]}),e.jsx("p",{className:`mt-4 text-center text-sm leading-relaxed sm:text-[15px] ${t?"text-[#6A7282]":"text-zinc-400"}`,children:x?"Your login works on the creator side too. Enable creator access to start creating — no separate account or email needed.":"Your login works on the brand side too. Enable brand access to set up campaigns — no separate account or email needed."}),e.jsx("div",{className:`mt-5 rounded-xl border px-4 py-3 ${t?"border-black/10 bg-neutral-50":"border-white/10 bg-white/5"}`,children:e.jsxs("p",{className:`text-center text-xs leading-relaxed sm:text-[13px] ${t?"text-[#6A7282]":"text-zinc-400"}`,children:["Your ",N," account stays exactly as it is. You can switch between both sides anytime with this same login."]})}),c&&e.jsx("p",{className:"mt-4 text-center text-sm text-red-500",role:"alert",children:c}),e.jsxs("div",{className:"mt-6 flex flex-col gap-2.5 sm:flex-row",children:[e.jsx(b,{type:"button",onClick:L,disabled:o,className:"h-11 flex-1 rounded-xl border-0 bg-[#1A1A1A] text-sm font-semibold text-white shadow-[0_4px_14px_rgba(0,0,0,0.14)] hover:bg-black disabled:opacity-70 sm:h-12",children:o?e.jsxs("span",{className:"flex items-center justify-center gap-2",children:[e.jsx(T,{className:"h-4 w-4 animate-spin","aria-hidden":!0}),"Enabling…"]}):`Enable ${h} access`}),e.jsx(b,{type:"button",onClick:()=>{window.location.href=m},variant:"outline",disabled:o,className:`h-11 flex-1 rounded-xl text-sm font-semibold sm:h-12 ${t?"border-black/15 bg-transparent text-[#1A1A1A] hover:bg-black/5":"border-white/20 bg-transparent text-white hover:bg-white/10"}`,children:k})]}),e.jsxs("p",{className:"mt-6 flex items-center justify-center gap-3 text-center",children:[e.jsx("button",{type:"button",onClick:$,className:`text-xs transition-colors sm:text-[13px] ${t?"text-[#6A7282] hover:text-[#1A1A1A]":"text-zinc-500 hover:text-white"}`,children:"Sign out"}),e.jsx("span",{className:t?"text-black/20":"text-white/20",children:"·"}),e.jsx(P,{to:"/contact",className:`text-xs transition-colors sm:text-[13px] ${t?"text-[#6A7282] hover:text-[#1A1A1A]":"text-zinc-500 hover:text-white"}`,children:"Need help? Contact support"})]})]})})}),t?e.jsx(I,{showCreatorsSection:!0}
6):e.jsx(U,{})]})};export{Z 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.