PageSourceSearch

https://leakremover.ai/_next/static/chunks/5372.761ad77195ef30f0.js

js leakremover.ai collected 2026-10-05 12:10:52 UTC 40,013 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5372],{5372:(e,t,n)=>{n.r(t),n.d(t,{AgencyFlowV3:()=>e_});var a=n(82732),r=n(95155),s=n(12115),i=n(53401),l=n(93420),c=n(80010),o=n(88184),u=n(62136),d=n(59370),h=n(32365),m=n(68068),f=n(18911),x=n(18691),p=n(14171),g=n(86186),b=n(19271),v=n(61975),j=n(22043),y=n(71450),N=n(35299),w=n(27937),k=n(32372),C=n(90368),_=n(99708),A=n(749),S=n(47988),T="mx-auto flex min-h-svh w-full max-w-[440px] flex-col gap-5 px-5 pb-28 pt-4 font-kumbh text-[var(--night-blue)] lg:min-h-0 lg:px-0 lg:pb-0 lg:pt-0",F="flex h-[58px] w-full items-center justify-center gap-2.5 rounded-[18px] bg-[var(--pink-cta)] text-[17px] font-semibold text-white shadow-[0_10px_24px_rgba(194,0,122,0.28)] transition active:scale-[0.98] disabled:opacity-70",E="flex h-[54px] w-full items-center justify-center gap-2.5 rounded-[18px] border border-[var(--night-blue)]/15 bg-white text-[16px] font-semibold text-[var(--night-blue)] disabled:opacity-70",L="font-funnel text-[34px] font-medium leading-[1.06] tracking-[-0.04em] text-[#1e2440]",O="text-[15px] font-medium leading-[1.45] text-[var(--night-blue)]/75",q="text-[13px] font-bold tracking-[0.02em]",H="text-[13px] font-medium text-[var(--night-blue)]/70",I="rounded-[14px] border border-red-200 bg-red-50 px-4 py-3 text-[14px] text-red-700",B="min-h-11 rounded-[12px] bg-[#3A5AB7]/10 px-3 text-[14px] font-bold text-[#3A5AB7]",Y="h-[56px] w-full rounded-[18px] border-2 border-[var(--night-blue)]/15 bg-white px-5 text-[17px] font-semibold text-[#1e2440] outline-none transition-shadow placeholder:font-medium placeholder:text-slate-400 focus:border-[#3A5AB7] focus:shadow-[0_0_0_5px_rgba(58,90,183,0.12)]";function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"identity";return"".concat("identity"===t?"h-14 rounded-2xl text-[16px] transition-colors":"h-14 rounded-2xl px-3 text-[15px] transition-colors"," ").concat(e?"border-2 border-[var(--pink-cta)] bg-[#FFF0F8] font-bold text-[var(--pink-cta)]":"border border-[var(--night-blue)]/15 bg-white font-semibold text-[var(--night-blue)]")}function P(e){var t=e.step,n=e.onBack;return(0,r.jsxs)("div",{className:"flex h-11 items-center justify-between",children:[n?(0,r.jsx)("button",{type:"button","aria-label":"Back",onClick:n,className:"flex h-11 w-11 items-center justify-center rounded-[14px] bg-white shadow-sm",children:(0,r.jsx)(C.A,{className:"h-5 w-5","aria-hidden":!0})}):(0,r.jsx)("span",{className:"w-11"}),(0,r.jsx)(A.v,{step:t,total:S.fw}),(0,r.jsxs)("span",{className:"w-11 text-right text-[13px] font-bold text-[var(--night-blue)]/70",children:[t,"/",S.fw]})]})}function U(){return(0,r.jsxs)("p",{className:"text-center text-[12px] text-[var(--night-blue)]/70",children:["By continuing you agree to our"," ",(0,r.jsx)("a",{href:"/terms-of-service",target:"_blank",className:"font-bold text-[var(--night-blue)] underline",children:"Terms"})," and"," ",(0,r.jsx)("a",{href:"/privacy-policy",target:"_blank",className:"font-bold text-[var(--night-blue)] underline",children:"Privacy Policy"})," ","on behalf of the creators you represent."]})}function M(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex items-center justify-center gap-3.5 text-[12px] font-semibold text-[var(--night-blue)]/70",children:[(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)(_.A,{className:"h-3.5 w-3.5","aria-hidden":!0}),"Private"]}),(0,r.jsx)("span",{children:"Free, no card"}),(0,r.jsx)("span",{children:"4.9/5 Trustpilot"})]}),(0,r.jsx)(U,{})]})}function W(){var e=(0,j._)((0,s.useState)(!1),2),t=e[0],n=e[1];return(0,s.useEffect)(function(){n(/Instagram|FBAN|FBAV|FB_IAB|TikTok|musical_ly|Bytedance|Snapchat/i.test(navigator.userAgent))},[]),t}function D(){var e=(0,i.q)(function(e){return e.userName}),t=(0,i.q)(function(e){return e.email}),n=(0,i.q)(function(e){return e.creators.some(function(e){return e.databaseCreatorId})})&&!!e.trim(),a=(0,j._)((0,s.useState)(function(){return null!=e?e:""}),2),l=a[0],c=a[1],o=(0,j._)((0,s.useState)(null),2),u=o[0],d=o[1],h=(0,j._)((0,s.useState)(!1),2),m=h[0],f=h[1];return(0,r.jsxs)("form",{onSubmit:function(e){return(0,v._)(function(){var a,r,s;return(0,y.YH)(this,function(c){switch(c.label){case 0:var o;if(null==e||e.preventDefault(),m)return[2];if(a=i.q.getState(),n)return a.setCurrentStep(2),[2];if((r=l.trim()).length<2)return[2,d("Enter your agency or business name.")];if(r.length>60)return[2,d("Use 60 characters or fewer.")];return d(null),f(!0),[4,(o=r,(0,v._)(function(){var e,n,a;return(0,y.YH)(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),e=(null!=t?t:"").trim(),[4,fetch("/api/agency/".concat(encodeURIComponent(o),"?email=").concat(encodeURIComponent(e)))];case 1:if(!(n=r.sent()).ok)return[2,null];return[4,n.json()];case 2:if(a=r.sent(),!e)return[2,"This agency name is already in use. Please choose another."];if((null==a?void 0:a.agencyEmailMatches)!==!0)return[2,"This agency name is already in use with a different email."];return[2,null];case 3:return r.sent(),[2,null];case 4:return[2]}})})())];case 1:if(s=c.sent(),f(!1),s)return[2,d(s)];return a.setTosAccepted(!0),a.updateUserName(r),a.setCurrentStep(2),[2]}})})()},noValidate:!0,className:"".concat(T," gap-6"),children:[(0,r.jsx)(P,{step:1,onBack:function(){if(!n&&(0,k.tz)()){(0,k.W3)("type"),i.q.getState().updateUserType(null);return}(0,k.xI)()}}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 pt-2 animate-[anim-slide-up_0.5s_ease-out_both]",children:[(0,r.jsx)("h1",{className:L,children:"What is your agency called?"}),(0,r.jsx)("p",{className:O,children:n?(0,r.jsxs)(r.Fragment,{children:["Your agency is set up as ",(0,r.jsx)("strong",{children:e.trim()}),". Next, your creators."]}):"Next you'll add every creator you protect."})]}),!n&&(0,r.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,r.jsx)("label",{htmlFor:"v3-agency-name",className:q,children:"AGENCY OR BUSINESS NAME"}),(0,r.jsx)("input",{id:"v3-agency-name",type:"text",autoComplete:"organization",value:l,maxLength:60,onChange:function(e){c(e.target.value),d(null)},placeholder:"e.g. Velvet Management",className:"h-[60px] w-full rounded-[18px] border-2 border-[#3A5AB7] bg-white px-5 text-[19px] font-semibold text-[#1e2440] shadow-[0_0_0_5px_rgba(58,90,183,0.12)] outline-none placeholder:font-medium placeholder:text-slate-400"})]}),(0,r.jsx)("div",{className:"flex-1 lg:hidden"}),u&&(0,r.jsx)("p",{role:"alert",className:I,children:u}),(0,r.jsx)("button",{type:"submit",disabled:m,className:F,children:m?(0,r.jsx)(N.A,{className:"h-5 w-5 animate-spin","aria-hidden":!0}):(0,r.jsxs)(r.Fragment,{children:["Continue",(0,r.jsx)(w.A,{className:"h-5 w-5","aria-hidden":!0})]})}),(0,r.jsx)(U,{})]})}var G=n(45849),V=n(45377),z=n(80971),K=n(99265),J=n(65229),X=n(5917),$=n(6191),Q=n(77293),Z=n(91729),ee=n(39725),et=n(42667),en=n(98328),ea=n(28222),er=n(84290),es=n(76805),ei={displayName:"",handleOverride:null,editingHandle:!1,identities:[],contentTypes:[],website:"",extraNames:[],dismissedNames:[],ownAccounts:[],ownLinks:[],accountCandidates:[]},el="Free sign-up is limited to ".concat(S.gB," creators. You can add more after choosing a plan."),ec=function(e){var t;return!!(e.displayName.trim()||(null==(t=e.handleOverride)?void 0:t.trim())||e.identities.length||e.contentTypes.length||e.website.trim()||e.extraNames.length||e.ownAccounts.length||e.ownLinks.length)};function eo(){var e,t=(0,i.q)(function(e){return e.creators}),n=(0,i.q)(function(e){return e.setCurrentStep}),l=(0,i.q)(function(e){return e.addCreator}),c=(0,i.q)(function(e){return e.updateCreator}),u=(0,i.q)(function(e){return e.removeCreator}
1),d=(0,j._)((0,s.useState)(function(){return 0===t.length}),2),h=d[0],m=d[1],f=(0,j._)((0,s.useState)(null),2),x=f[0],p=f[1],g=(0,j._)((0,s.useState)(ei),2),b=g[0],k=g[1],C=(0,j._)((0,s.useState)(null),2),_=C[0],A=C[1],U=(0,j._)((0,s.useState)(null),2),M=U[0],W=U[1],D=(0,j._)((0,s.useState)("idle"),2),eo=D[0],eu=D[1],ed=(0,j._)((0,s.useState)(null),2),eh=ed[0],em=ed[1],ef=(0,j._)((0,s.useState)(""),2),ex=ef[0],ep=ef[1],eg=(0,s.useRef)(new Set),eb=(0,s.useRef)(null),ev=function(e){k(function(t){return(0,a._)({},t,e)}),A(null)},ej=(0,s.useMemo)(function(){return(0,Q.i)(b.displayName)},[b.displayName]),ey=(b.handleOverride||ej).trim(),eN=ey?(0,Z.TU)(ey):null,ew=null!==b.handleOverride&&b.handleOverride===eh&&!b.editingHandle,ek=t.filter(function(e){return e.id!==x}).map(function(e){var t;return(null!=(t=e.username)?t:"").toLowerCase()}),eC=ek.join("|"),e_=!!ey&&ek.includes(ey.toLowerCase());(0,s.useEffect)(function(){if(!h||!ey||eN||e_)return void eu("idle");if(eg.current.has(ey.toLowerCase()))return void eu("available");var e=new Set(eC?eC.split("|"):[]),t=new AbortController;eu("checking");var n=setTimeout(function(){return(0,v._)(function(){var n,r,s,i,l,c,u,d,h;return(0,y.YH)(this,function(m){switch(m.label){case 0:return[4,(0,S.G9)(ey,t.signal)];case 1:if(n=m.sent(),t.signal.aborted)return[2];if(null===n)return eu("unknown"),[2];if(!n)return eg.current.add(ey.toLowerCase()),eu("available"),[2];r=!0,s=!1,i=void 0,m.label=2;case 2:m.trys.push([2,7,8,9]),l=function(){var n,r;return(0,y.YH)(this,function(s){switch(s.label){case 0:if(n=u.value,e.has(n.toLowerCase()))return[2,"continue"];return[4,(0,S.G9)(n,t.signal)];case 1:if(r=s.sent(),t.signal.aborted)return[2,{v:void 0}];if(null===r)return eu("unknown"),[2,{v:void 0}];if(!1===r)return eg.current.add(n.toLowerCase()),(0,o.SH)(2,"v3_handle_alternative_used",{accountType:"agency"}),em(n),k(function(e){return(0,G._)((0,a._)({},e),{handleOverride:n})}),[2,{v:void 0}];return[2]}})},c=(0,Q.n)(ey)[Symbol.iterator](),m.label=3;case 3:if(r=(u=c.next()).done)return[3,6];return[5,(0,y.Ju)(l())];case 4:if(d=m.sent(),"object"===(0,z._)(d))return[2,d.v];m.label=5;case 5:return r=!0,[3,3];case 6:return[3,9];case 7:return h=m.sent(),s=!0,i=h,[3,9];case 8:try{r||null==c.return||c.return()}finally{if(s)throw i}return[7];case 9:return eu("taken"),[2]}})})()},500);return function(){t.abort(),clearTimeout(n)}},[h,ey,eN,e_,eC]);var eA=(0,S.zB)(b.displayName),eS=eA?(0,et._P)(eA):null,eT=(0,s.useMemo)(function(){return Array.from(new Set([eA,ey===eh?"":ey].filter(Boolean)))},[eA,ey,eh]),eF=(0,s.useMemo)(function(){var e=new Set(eT.map(function(e){return e.toLowerCase()}));return(0,V._)(eT).concat((0,V._)(b.extraNames.filter(function(t){return!e.has(t.toLowerCase())})))},[eT,b.extraNames]),eE=eF.length>0&&!eS&&0===(0,ee.R$)(eF).active.length,eL=function(){k(ei),p(null),em(null),ep(""),A(null),m(!1)},eO=function(e){var t,n,a,r,s,i,l,c,o,u,d,h,f,x;k(e?(u=(null!=(a=e.username)?a:"").toLowerCase(),d=(null!=(r=e.socialMedia)?r:[]).filter(function(e){var t;return e.platform&&(null==(t=e.username)?void 0:t.trim())}),{displayName:(0,S.Y7)(e),handleOverride:e.username||null,editingHandle:!1,identities:S.IM.filter(function(t){var n;return(null!=(n=e.identities)?n:[]).some(function(e){return(null==e?void 0:e.toLowerCase())===t.toLowerCase()})}),contentTypes:null!=(s=e.contentType)?s:[],website:null!=(i=e.website)?i:"",extraNames:(null!=(l=e.keywords)?l:[]).slice(1).filter(function(e){return(null==e?void 0:e.trim())&&e.toLowerCase()!==u}),dismissedNames:null!=(c=e.dismissedNameSuggestions)?c:[],ownAccounts:e.ownAccountsConfirmed?d:[],accountCandidates:e.ownAccountsConfirmed?[]:d.map(function(e){return{platform:e.platform,username:e.username}}),ownLinks:(null!=(o=e.customLinks)?o:[]).filter(function(t){return t&&t!==e.website})}):ei),p(null!=(t=null==e?void 0:e.id)?t:null),em(e&&(x=null!=(h=e.username)?h:"")?(null!=(f=e.keywords)?f:[]).some(function(e){return(null!=e?e:"").toLowerCase()===x.toLowerCase()})?null:x:null),ep(null!=(n=null==e?void 0:e.website)?n:""),A(null),m(!0),setTimeout(function(){var e;return null==(e=eb.current)?void 0:e.focus()},0)},eq=function(){if(eA.length<2)return A("Type the name fans know this creator by."),!1;if(eS)return A(eS),!1;if(!ey||eN)return A(null!=eN?eN:"Pick the name for their takedown notices."),!1;if(e_)return A("This creator is already in your list."),!1;if(eE)return A("That name is too common to search on its own. Add their stage name or handle, like Bella Rose or bellarose99."),!1;if("taken"===eo)return A("That name is taken. Edit it to make it theirs."),!1;if("checking"===eo)return!1;
1if(0===b.identities.length)return A("Pick one so we know which sites to check."),!1;if(0===b.contentTypes.length)return A("Tap what they post, so we look for the right content."),!1;var e=(0,S.Wd)(b.website);if(void 0!==e.error)return A(e.error),!1;if(!(0,es.qr)(b.ownAccounts,b.ownLinks))return A(es.hU.them),!1;if(!x&&t.length>=S.gB)return A(el),!1;var n=e.url,r=(0,V._)(eF).concat((0,V._)((0,ea.b)({website:n,discovered:b.ownAccounts,existing:eF,dismissed:b.dismissedNames}))),s={username:ey,website:n,contentType:S.B9.map(function(e){return e.value}).filter(function(e){return b.contentTypes.includes(e)}),identities:S.IM.filter(function(e){return b.identities.includes(e)}),socialMedia:b.ownAccounts,ownAccountsConfirmed:!0};if(x){var u=b.ownLinks.filter(function(e){return e!==n});c(x,(0,G._)((0,a._)({},s),{keywords:r,dismissedNameSuggestions:b.dismissedNames,customLinks:[n].concat((0,V._)(u)),scanStatus:null,scanStage:null,scanError:null}))}else{l((0,G._)((0,a._)({},s),{customLinks:[n].concat((0,V._)(b.ownLinks.filter(function(e){return e!==n})))}));var d=i.q.getState().creators.slice(-1)[0];d&&c(d.id,{keywords:r,dismissedNameSuggestions:b.dismissedNames})}return(0,o.SH)(2,"v3_agency_creator_saved",{accountType:"agency",edited:!!x,identity:b.identities.join("+"),extraNames:r.length-eT.length,contentTypes:s.contentType,handleEdited:b.editingHandle||null!==b.handleOverride&&b.handleOverride!==ej&&b.handleOverride!==eh}),x||(0,en.Tw)("agency"),!x&&i.q.getState().creators.length<S.gB?eO():eL(),!0},eH=function(e){u(e.id),x===e.id&&eL(),W(null)},eI=h&&ec(b)&&"checking"===eo,eB=t.length>=S.gB,eY=!ey&&eA.length>=2,eR=b.editingHandle||eY,eP=eR||!!ey,eU=x?t.find(function(e){return e.id===x}):void 0;return(0,r.jsxs)("section",{className:"".concat(T," gap-6"),children:[(0,r.jsx)(P,{step:2,onBack:function(){return n(0)}}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 pt-2 animate-[anim-slide-up_0.5s_ease-out_both]",children:[(0,r.jsx)("h1",{className:L,children:"Your creators"}),(0,r.jsx)("p",{className:O,children:"Add each creator you protect. Each one gets a free first scan."})]}),t.length>0&&(0,r.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,r.jsx)("ul",{className:"flex flex-col gap-2.5","aria-label":"Your creators",children:t.map(function(e){var t=(0,S.Y7)(e),n=!!e.databaseCreatorId,a=(0,S.Y8)(e),s=n||"creator_creation_failed"!==e.scanStage?null:e.scanError;return(0,r.jsxs)("li",{className:"flex flex-col gap-2 rounded-2xl border bg-white px-3.5 py-3 ".concat(x===e.id?"border-2 border-[var(--pink-cta)]":"border-[var(--night-blue)]/15"),children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("span",{"aria-hidden":!0,className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-[14px] bg-[#FFF0F8] text-[var(--pink-cta)]",children:(0,r.jsx)(K.A,{className:"h-5 w-5",strokeWidth:2.2})}),(0,r.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,r.jsx)("span",{className:"truncate text-[16px] font-bold leading-tight text-[#1e2440]",children:t}),(0,r.jsxs)("span",{className:"truncate text-[13px] font-semibold text-[var(--night-blue)]/70",children:["@",e.username,(0,S.M8)(e.contentType)&&(0,r.jsxs)(r.Fragment,{children:[" \xb7 ",(0,S.M8)(e.contentType)]})]})]}),n?(0,r.jsx)("span",{className:"shrink-0 rounded-full bg-[#EFFAF4] px-2.5 py-1 text-[12px] font-bold text-[#17744a]",children:"Added"}):(0,r.jsxs)("span",{className:"flex shrink-0 items-center gap-1",children:[(0,r.jsx)("button",{type:"button","aria-label":"".concat(a.length>0?"Complete":"Edit"," ").concat(t),onClick:function(){W(null),eO(e)},className:B,children:a.length>0?"Complete":"Edit"}),(0,r.jsx)("button",{type:"button","aria-label":"Remove ".concat(t),onClick:function(){return eH(e)},className:"flex h-11 w-11 items-center justify-center rounded-[12px] text-[var(--night-blue)]/60 transition-colors hover:bg-[var(--night-blue)]/5 hover:text-[var(--night-blue)]",children:(0,r.jsx)(J.A,{className:"h-5 w-5","aria-hidden":!0})})]})]}),a.length>0&&(0,r.jsxs)("p",{className:"text-[12px] font-semibold text-[#9a5b00]",children:["Missing ",(0,S.j$)(a)]}),s&&(0,r.jsx)("p",{className:"text-[12px] font-semibold text-red-700",children:s})]},e.id)})}),(0,r.jsxs)("p",{className:"text-[13px] font-semibold ".concat(eB?"text-[var(--pink-cta)]":"text-[var(--night-blue)]/70"),children:[t.length," / ",S.gB," creators",eB&&(0,r.jsx)("span",{className:"font-medium text-[var(--night-blue)]/70",children:". Choose a plan to add more."})]})]}),h?(0,r.jsxs)("form",{noValidate:!0,onSubmit:function(e){e.preventDefault(),W(null),eq()},className:"flex flex-col gap-5 rounded-[22px] border border-[var(--night-blue)]/10 bg-white/70 p-4 lg:bg-[#FAF9FD]",children:[(0,r.jsx)("p",{className:"text-[15px] font-bold text-[#1e2440]",children:eU?"Edit ".concat((0,S.Y7)(eU)):0===t.length?"Your first creator":"Add a creator"}),(0,r.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,r.jsx)("label",{htmlFor:"v3-agency-creator-name",className:q,children:"CREATOR NAME"}),(0,r.jsx)("input",{id:"v3-agency-creator-name",ref:eb,type:"text",autoComplete:"off",value:b.displayName,maxLength:60,onChange:function(e){ev({displayName:e.target.value,handleOverride:null,editingHandle:!1}),em(null)},placeholder:"e.g. Bella Rose",className:Y}),(0,r.jsx)("span",{className:H,children:"The name fans know them by. This is what we search for."}),eP&&(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-[14px] border border-[var(--night-blue)]/10 bg-white px-3.5 py-3",children:[eR?(0,r.jsxs)("label",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[12px] font-semibold text-[var(--night-blue)]/70",children:"Name on their takedown notices"}),(0,r.jsx)("input",{autoFocus:b.editingHandle,value:null!=(e=b.handleOverride)?e:ej,maxLength:40,onChange:function(e){ev({handleOverride:e.target.value.replace(/\s+/g,"")}),em(null)},className:"h-9 w-full min-w-0 rounded-[10px] border border-[var(--night-blue)]/20 px-2 text-[16px] font-bold text-[#1e2440] outline-none focus:border-[#3A5AB7]"})]}):(0,r.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,r.jsx)("span",{className:"text-[12px] font-semibold text-[var(--night-blue)]/70",children:"Name on their takedown notices"}),(0,r.jsxs)("span",{className:"truncate text-[16px] font-bold text-[#1e2440]",children:["@",ey]})]}),!eY&&(0,r.jsx)("button",{type:"button",onClick:function(){return ev({editingHandle:!b.editingHandle})},className:B,children:b.editingHandle?"Done":"Edit"})]}),(0,r.jsxs)("div",{"aria-live":"polite",className:"min-h-5 text-[13px] font-semibold",children:[eS&&(0,r.jsx)("span",{className:"text-red-700",children:eS}),!eS&&eN&&ey&&(0,r.jsx)("span",{className:"text-red-700",children:eN}),!eS&&!eN&&e_&&(0,r.jsx)("span",{className:"text-red-700",children:"This creator is already in your list."}),!eS&&!eN&&!e_&&"checking"===eo&&(0,r.jsxs)("span",{className:"flex items-center gap-1.5 text-[var(--night-blue)]/70",children:[(0,r.jsx)(N.A,{className:"h-3.5 w-3.5 animate-spin","aria-hidden":!0}),"Checking it is free…"]}),!eS&&!eN&&!e_&&"available"===eo&&(0,r.jsxs)("span",{className:"flex items-center gap-1.5 text-[#1f7a4d]",children:[(0,r.jsx)(X.A,{className:"h-4 w-4",strokeWidth:2.6,"aria-hidden":!0}),ew?"Free. The first one was taken, so we picked this.":ey===ej?"Available. We made it from the name.":"Available."]}),!eS&&!eN&&!e_&&"taken"===eo&&(0,r.jsx)("span",{className:"text-red-700",children:"That name is taken. Tap Edit to make it theirs."}),!eS&&!eN&&!e_&&!b.editingHandle&&eE&&"checking"!==eo&&(0,r.jsx)("span",{className:"text-[#9a5b00]",children:"That name is very common. Add their stage name or handle so we find them, not everyone called that."})]})]}),(0,r.jsxs)("fieldset",{className:"flex flex-col gap-2.5",children:[(0,r.jsx)("legend",{className:"mb-2.5 ".concat(q),children:"THIS CREATOR IS"}),(0,r.jsx)("div",{className:"grid grid-cols-3 gap-2.5",children:S.IM.map(function(e){var t=b.identities.includes(e);return(0,r.jsx)("button",{type:"button","aria-pressed":t,onClick:function(){return ev({identities:t?b.identities.filter(function(t){return t!==e}):(0,V._)(b.identities).concat([e])})},className:R(t),children:e},e)})}),(0,r.jsx)("span",{className:H,children:"Tap all that apply. It tells us which sites to check."})]}),(0,r.jsxs)("fieldset",{className:"flex flex-col gap-2.5",children:[(0,r.jsx)("legend",{className:"mb-2.5 ".concat(q),children:"WHAT DO THEY POST?"}),(0,r.jsx)("div",{className:"grid grid-cols-2 gap-2.5",children:S.B9.map(function(e){var t=b.contentTypes.includes(e.value);return(0,r.jsx)("button",{type:"button","aria-pressed":t,onClick:function(){return ev({contentTypes:t?b.contentTypes.filter(function(t){return t!==e.value}):(0,V._)(b.contentTypes).concat([e.value])})},className:R(t,"content"),children:e.label},e.value)})}),(0,r.jsx)("span",{className:H,children:"Tap both if they do both. It tells us what to look for."})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,r.jsx)("label",{htmlFor:"v3-agency-creator-page",className:q,children:"OFFICIAL PAGE"}),(0,r.jsx)("input",{id:"v3-agency-creator-page",type:"url",inputMode:"url",autoComplete:"off",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:b.website,onChange:function(e){return ev({website:e.target.value})},onBlur:function(){return ep(b.website)},placeholder:"e.g. onlyfans.com/bellarose",className:Y}),(0,r.jsx)("span",{className:H,children:"Where fans pay for their content. Every takedown we send points to it as the original."})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,r.jsx)("p",{className:q,children:"THEIR OWN ACCOUNTS"}),(0,r.jsx)(er.Vz,{accounts:b.ownAccounts,links:b.ownLinks,candidates:b.accountCandidates,who:"them",inputId:"v3-agency-own-account",onChange:function(e,t){k(function(n){var r=(0,ea.b)({website:n.website,discovered:[],existing:[],dismissed:[]}),s=new Set((0,V._)(r).concat((0,V._)(e.map(function(e){return e.username}))).map(function(e){return e.toLowerCase()})),i=new Set(n.ownAccounts.map(function(e){return e.username.toLowerCase()}).filter(function(e){return!s.has(e)}));return(0,G._)((0,a._)({},n),{ownAccounts:e,ownLinks:t,extraNames:n.extraNames.filter(function(e){return!i.has(e.toLowerCase())})})}),A(null)}})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,r.jsxs)("p",{className:q,children:["OTHER NAMES ",(0,r.jsx)("span",{className:"font-semibold text-[var(--night-blue)]/60",children:"(OPTIONAL)"})]}),(0,r.jsx)("span",{className:H,children:"We search the name and the handle above, and the handle in their official page. Remove any that is not theirs, add the others they use."}),(0,r.jsx)(ea.T,{names:b.extraNames,alsoSearched:eT,onAdd:function(e){k(function(t){return(0,G._)((0,a._)({},t),{extraNames:(0,V._)(t.extraNames).concat([e])})}),A(null)},onRemove:function(e){k(function(t){return(0,G._)((0,a._)({},t),{extraNames:t.extraNames.filter(function(t){return t.toLowerCase()!==e.toLowerCase()})})}),A(null)}
1,suggestFrom:ex,confirmed:b.ownAccounts,dismissed:b.dismissedNames,onDismiss:function(e){return k(function(t){return(0,G._)((0,a._)({},t),{dismissedNames:(0,V._)(t.dismissedNames).concat([e])})})},inputId:"v3-agency-other-name",who:"them",listLabel:"Other names we search for",addLabel:"Another name or handle they use",suggestionsLabel:"SUGGESTED FROM THEIR PAGE"})]}),_&&(0,r.jsx)("p",{role:"alert",className:I,children:_}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("button",{type:"submit",disabled:eI,className:E,children:eI?(0,r.jsx)(N.A,{className:"h-5 w-5 animate-spin","aria-hidden":!0}):eU?"Save changes":"Add to my list"}),(t.length>0||eU)&&(0,r.jsx)("button",{type:"button",onClick:eL,className:"mx-auto min-h-11 text-[14px] font-bold text-[#3A5AB7] underline-offset-2 hover:underline",children:"Cancel"})]})]}):eB?null:(0,r.jsxs)("button",{type:"button",onClick:function(){W(null),eO()},className:E,children:[(0,r.jsx)($.A,{className:"h-5 w-5","aria-hidden":!0}),"Add another creator"]}),(0,r.jsx)("div",{className:"flex-1 lg:hidden"}),M&&(0,r.jsx)("p",{role:"alert",className:I,children:M}),(0,r.jsx)("button",{type:"button",onClick:function(){if(W(null),!(
1h&&ec(b))||eq()){var e=i.q.getState().creators;if(0===e.length){W("Add at least one creator before continuing."),h||eO();return}var t=e.find(function(e){return(0,S.Y8)(e).length>0});if(t){W("Complete ".concat((0,S.Y7)(t),"'s details to continue.")),eO(t);return}h&&eL(),n(5)}},disabled:eI,className:F,children:eI?(0,r.jsx)(N.A,{className:"h-5 w-5 animate-spin","aria-hidden":!0}):(0,r.jsxs)(r.Fragment,{children:["Continue",(0,r.jsx)(w.A,{className:"h-5 w-5","aria-hidden":!0})]})})]})}var eu=n(79703),ed=n(23664),eh=n(73577),em=n(99787),ef=n(79755),ex=n(23772),ep=n(61763),eg="mx-auto flex min-h-11 w-fit items-center text-[14px] font-bold text-[#3A5AB7] underline-offset-2 hover:underline disabled:opacity-60";function eb(){return 1===(0,i.q)(function(e){return e.creators.length})?"scan":"scans"}function ev(e){var t=e.actions,n=(0,i.q)(function(e){return e.creators}),a=(0,i.q)(function(e){return e.setCurrentStep}),s=(0,i.q)(function(e){return e.setTosAccepted}),l=eb(),c=W(),o=(0,ef.L7)("google")&&!c,u=function(e){s(!0),t.trackLogin(e)};if(t.checking)return(0,r.jsx)(p.q3,{label:"One moment…"});var d=(0,S.V0)(n);return(0,r.jsxs)("section",{className:T,children:[(0,r.jsx)(P,{step:3,onBack:function(){return a(2)}}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 pt-1.5",children:[(0,r.jsxs)("h1",{className:L,children:["Last step. The ",l," ","scan"===l?"starts":"start"," right after."]}),(0,r.jsxs)("p",{className:O,children:["Only your account sees the results.",d&&(0,r.jsxs)(r.Fragment,{children:[" We keep ",(0,r.jsx)("strong",{className:"text-[var(--night-blue)]",children:d})," for you as soon as you sign in."]})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[o&&(0,r.jsxs)("a",{href:t.loginHref(!0),onClick:function(){return u("google")},className:F,children:[(0,r.jsx)("span",{className:"flex h-7 w-7 items-center justify-center rounded-full bg-white",children:(0,r.jsx)("span",{className:"block h-4 w-4",children:(0,r.jsx)(em.yF,{})})}),"Continue with Google"]}),(0,r.jsxs)("a",{href:t.loginHref(),onClick:function(){return u("email")},className:o?E:F,children:[(0,r.jsx)(ed.A,{className:"h-[18px] w-[18px]","aria-hidden":!0}),"Continue with email"]})]}),o&&(0,r.jsx)("span",{className:"text-center text-[12px] font-semibold text-[var(--night-blue)]/70",children:"Google is fastest: no password, no email to confirm."}),(0,r.jsxs)("p",{className:"text-center text-[13px] font-medium text-[var(--night-blue)]/75",children:["Already a customer?"," ",(0,r.jsx)("a",{href:"/auth/login?returnTo=%2Fdashboard",className:"font-bold text-[var(--night-blue)] underline underline-offset-2",children:"Log in"})]}),(0,r.jsx)("div",{className:"flex-1 lg:hidden"}),(0,r.jsx)(M,{})]})}function ej(e){var t=e.actions,n=eb(),a=W(),s=(0,ef.L7)("google")&&!a;return t.checking?(0,r.jsx)(p.q3,{label:"One moment…"}):(0,r.jsxs)("section",{className:T,children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2 pt-1.5",children:[(0,r.jsxs)("h1",{className:L,children:["Sign in to see your ",n]}),(0,r.jsxs)("p",{className:O,children:["Your results are private. Use the account you started the ",n," with."]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[s&&(0,r.jsxs)("a",{href:t.loginHref(!0),onClick:function(){return t.trackLogin("google")},className:F,children:[(0,r.jsx)("span",{className:"flex h-7 w-7 items-center justify-center rounded-full bg-white",children:(0,r.jsx)("span",{className:"block h-4 w-4",children:(0,r.jsx)(em.yF,{})})}),"Continue with Google"]}),(0,r.jsxs)("a",{href:t.loginHref(),onClick:function(){return t.trackLogin("email")},className:s?E:F,children:[(0,r.jsx)(ed.A,{className:"h-[18px] w-[18px]","aria-hidden":!0}),"Continue with email"]})]}),(0,r.jsx)("div",{className:"flex-1 lg:hidden"}),(0,r.jsx)(M,{})]})}function ey(e){var t,n=e.screen,a=e.onBack,s=eb(),i=(0,r.jsxs)(r.Fragment,{children:[n.notice&&(0,r.jsx)("p",{role:"status",className:"rounded-[14px] border border-[#1f9d63]/25 bg-[#EFFAF4] px-4 py-3 text-[14px] font-medium text-[#17744a]",children:n.notice}),n.error&&(0,r.jsx)("p",{role:"alert",className:I,children:n.error})]});return t="verify_email"===n.status?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2 pt-1.5",children:[(0,r.jsx)("span",{"aria-hidden":!0,
1className:"mb-2 flex h-14 w-14 items-center justify-center rounded-[18px] bg-[#FFF0F8] text-[var(--pink-cta)]",children:(0,r.jsx)(eh.A,{className:"h-7 w-7"})}),(0,r.jsx)("h1",{className:L,children:"Check your email"}),(0,r.jsxs)("p",{className:O,children:["We sent a link to ",(0,r.jsx)("strong",{className:"break-all text-[var(--night-blue)]",children:n.email||"your email address"}),". Open it, then come back here. The ",s," ","scan"===s?"starts":"start"," right after."]})]}),i,(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsxs)("button",{type:"button",disabled:n.busy,onClick:n.recheck,className:F,children:[n.busy&&(0,r.jsx)(N.A,{className:"h-5 w-5 animate-spin","aria-hidden":!0}),"I have verified my email"]}),(0,r.jsxs)("button",{type:"button",disabled:n.busy,onClick:n.resend,className:E,children:[(0,r.jsx)(ed.A,{className:"h-[18px] w-[18px]","aria-hidden":!0}),"Send the email again"]})]}),(0,r.jsx)("p",{className:"text-center text-[12px] font-semibold text-[var(--night-blue)]/70",children:"Not there? Look in spam or promotions."}),(0,r.jsx)("a",{href:n.otherAccountHref,onClick:n.trackOtherAccount,className:eg,children:"Use a different email"})]}):"already_registered"===n.status?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2 pt-1.5",children:[(0,r.jsx)("h1",{className:L,children:"Welcome back"}),(0,r.jsx)("p",{className:O,children:"This login already has an account. Continue there, or use another email to set up your agency."})]}),(0,r.jsx)("a",{href:"/dashboard",className:F,children:"Continue to my account"}),(0,r.jsx)("a",{href:n.otherAccountHref,onClick:n.trackOtherAccount,className:eg,children:"Use a different email"})]}):"change_email"===n.status?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2 pt-1.5",children:[(0,r.jsx)("h1",{className:L,children:"Use another email"}),(0,r.jsx)("p",{className:O,children:"This sign-in has no email we can confirm. Use an account with a permanent email address."})]}),i,(0,r.jsx)("a",{href:n.otherAccountHref,onClick:n.trackOtherAccount,className:F,children:"Use another account"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2 pt-1.5",children:[(0,r.jsx)("h1",{className:L,children:"We could not check your account"}),(0,r.jsx)("p",{className:O,children:"Nothing is lost. Your agency and your creators are still here."})]}),i,(0,r.jsxs)("button",{type:"button",disabled:n.busy,onClick:n.recheck,className:F,children:[n.busy&&(0,r.jsx)(N.A,{className:"h-5 w-5 animate-spin","aria-hidden":!0}),"Try again"]})]}),(0,r.jsxs)("section",{className:T,children:[(0,r.jsx)(P,{step:3,onBack:a}),t,(0,r.jsx)("div",{className:"flex-1 lg:hidden"}),(0,r.jsx)(M,{})]})}function eN(){var e=(0,i.q)(function(e){return e.setCurrentStep}),t=(0,i.q)(function(e){return e.setTosAccepted}),n=eb(),a=(0,j._)((0,s.useState)(function(){var e=i.q.getState(),t=e.tosAccepted,n=e.creators;return t&&n.some(function(e){return!e.databaseCreatorId})}),2),l=a[0],o=a[1],u=(0,j._)((0,s.useState)(!1),2),d=u[0],h=u[1],m=(0,j._)((0,s.useState)(null),2),f=m[0],x=m[1],g=(0,s.useRef)(!1);function b(){return(0,v._)(function(){var n;return(0,y.YH)(this,function(a){switch(a.label){case 0:i.q.getState().tosAccepted||t(!0),h(!0),x(null),a.label=1;case 1:return a.trys.push([1,3,4,5]),[4,(0,v._)(function(){var e,t,n,a,r,s,l,o,u,d,h,m,f,x,p,g,b;return(0,y.YH)(this,function(j){var N,w,k;switch(j.label){case 0:if(!(n=(null!=(t=(e=i.q.getState()).userName)?t:"").trim()))throw Error("Add your agency name first.");if(0===e.creators.length)throw Error("Add at least one creator before continuing.");a=!0,r=!1,s=void 0,j.label=1;case 1:j.trys.push([1,8,9,10]),l=e.creators[Symbol.iterator](),j.label=2;case 2:if(a=(o=l.next()).done)return[3,7];if(!(u=o.value).databaseCreatorId)return[3,4];return[4,(N=u,(0,v._)(function(){var e,t;return(0,y.YH)(this,function(n){switch(n.label){case 0:if(!N.onboardingKeywordsPending)return[2];return[4,fetch("/api/onboarding/keywords",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({creatorId:N.databaseCreatorId,keywords:N.keywords})})];case 1:return[4,(e=n.sent()).json().catch(function(){return{}})];case 2:if(t=n.sent(),409===e.status&&(null==t?void 0:t.code)==="PROFILE_ALREADY_ACTIVE")throw Error("".concat((0,S.Y7)(N)," is already set up. You can change their names from your dashboard."));if(!e.ok)throw Error((null==t?void 0:t.error)||"Could not update ".concat(N.username,"."));return i.q.getState().updateCreator(N.id,{onboardingKeywordsPending:!1}),[2]}})})())];case 3:return j.sent(),[3,6];case 4:return[4,(w=u,k=n,(0,v._)(function(){var e,t,n,a,r,s,l,o,u,d,h,m,f,x,p,g,b,v,j,N;return(0,y.YH)(this,function(y){switch(y.label){case 0:if(o=i.q.getState(),!(d=(null!=(u=w.website)?u:"").trim()))throw Error("Add the official page for ".concat((0,S.Y7)(w),". Go back to your creators to add it."));return[4,(0,ep.h)(w.username,w.keywords||[],d,w.accountStatus,w.isTest,w.customLinks,w.socialMedia,w.contentType,w.identities,[],null,w.originCountry,k)];case 1:if(!(h=y.sent()).success||!h.creatorId)throw m=h.error&&/already taken by another account/i.test(h.error)?"@".concat(w.username," is already taken by another account. Edit ").concat((0,S.Y7)(w)," to pick another name for the notices."):h.error||"Could not create ".concat(w.username,"."),o.setCreatorScanState(w.id,{scanStatus:"failed",scanStage:"creator_creation_failed",scanError:m,scanRetryable:!1,scanLastUpdatedAt:new Date().toISOString(),scanProgress:null}),Error(m);return o.setCreatorDatabaseId(w.id,h.creatorId),o.updateCreator(w.id,{onboardingKeywordsPending:!1}),(0,c.U)({event:"creator_account_created",creators_created:1,onboarding_variant:"v3",account_type:"agency"}),(0,en.H6)(),o.setCreatorScanState(w.id,{scanJobId:null!=(f=null==(e=h.scan)?void 0:e.jobId)?f:null,scanJobName:null!=(x=null==(t=h.scan)?void 0:t.jobName)?x:null,scanStatus:null!=(p=null==(n=h.scan)?void 0:n.status)?p:"creator_created",scanStage:null!=(g=null==(a=h.scan)?void 0:a.stage)?g:null,scanError:null!=(v=null!=(b=null==(r=h.scan)?void 0:r.error)?b:h.error)?v:null,scanRetryable:null!=(j=null==(s=h.scan)?void 0:s.retryable)?j:h.partialSuccess,scanLastUpdatedAt:null!=(N=null==(l=h.scan)?void 0:l.lastCheckedAt)?N:new Date().toISOString(),scanProgress:null}),[2]}})})())];case 5:j.sent(),j.label=6;case 6:return a=!0,[3,2];case 7:return[3,10];case 8:return d=j.sent(),r=!0,s=d,[3,10];case 9:try{a||null==l.return||l.return()}finally{if(r)throw s}
1return[7];case 10:return h=i.q.getState().creators,[4,fetch("/api/onboarding/google-provision",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:null,billingFrequency:"monthly",entityType:"agency",entityId:null,agencyBusinessName:n,agencyCreatorUsernames:h.map(function(e){return e.username})})})];case 11:return[4,(m=j.sent()).json().catch(function(){return{}})];case 12:if(f=j.sent(),!m.ok)throw Error((null==f?void 0:f.error)||"Could not finish your setup. Please try again.");if(p=(x=i.q.getState()).tosAccepted,g=x.tosAcceptedAt,!(p&&g))return[3,16];j.label=13;case 13:return j.trys.push([13,15,,16]),[4,fetch("/api/user/accept-tos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({version:ex.Ky,acceptedAt:g})})];case 14:return(b=j.sent()).ok||console.error("Failed to save ToS acceptance:",b.status),[3,16];case 15:return console.error("Failed to save ToS acceptance:",j.sent()),[3,16];case 16:return[2]}})})()];case 2:return a.sent(),e(6),[3,5];case 3:return n=a.sent(),x((0,eu._)(n,Error)?n.message:"Please try again."),[3,5];case 4:return h(!1),[7];case 5:return[2]}})})()}return((0,s.useEffect)(function(){l&&!g.current&&(g.current=!0,b())},[l]),l&&!f)?(0,r.jsx)(p.q3,{label:"Setting up your ".concat(n,"…")}):(0,r.jsxs)("section",{className:T,children:[(0,r.jsx)(P,{step:3,onBack:function(){return e(2)}}),(0,r.jsx)("h1",{className:"pt-1.5 ".concat(L),children:f?"One thing to fix":"One tap and the ".concat(n," ").concat("scan"===n?"starts":"start")}),!f&&(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsxs)("button",{type:"button",onClick:function(){return o(!0)},className:F,children:["Start the ",n]}),(0,r.jsx)("button",{type:"button",onClick:function(){return e(2)},className:E,children:"Edit my creators"})]}),f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{role:"alert",className:I,children:f}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("button",{type:"button",onClick:function(){return e(2)},className:F,children:"Edit my creators"}),(0,r.jsxs)("button",{type:"button",disabled:d,onClick:function(){b()},className:E,children:[d&&(0,r.jsx)(N.A,{className:"h-5 w-5 animate-spin","aria-hidden":!0}),"Try again"]})]})]}),(0,r.jsx)("div",{className:"flex-1 lg:hidden"}),(0,r.jsx)(M,{})]})}function ew(){var e=(0,i.q)(function(e){return e.setCurrentStep});return(0,r.jsx)(x.H,{isAgency:!0,renderAnonymous:function(e){return(0,r.jsx)(ev,{actions:e})},renderScreen:function(t){return(0,r.jsx)(ey,{screen:t,onBack:function(){return e(2)}})},children:(0,r.jsx)(eN,{})})}var ek=["intro","presentation","set_profile","keywords","image_selection","email","leak_scan","results"],eC={variant:"v3",accountType:"agency"};function e_(){var e=(0,i.q)(function(e){return e.currentStep}),t=(0,i.q)(function(e){return e.setCurrentStep}),n=(0,i.q)(function(e){return e.creators}),v=(0,i.q)(function(e){return e.userName}),j=(0,l.j)();(0,s.useEffect)(function(){return(0,o.y$)()},[]);var y=(0,S.O3)(e,n,v),N=j&&y!==e;(0,s.useEffect)(function(){N&&t(y)},[N,y,t]);var w=(0,s.useRef)(null),k=(0,s.useRef)(!1);if((0,s.useEffect)(function(){if(j&&!N){if(!k.current){var t;k.current=!0,w.current=e,o.iX[e]&&(0,o.FY)(e,(0,a._)({via:"mount"},eC));return}if(e!==w.current){var n=null!=(t=w.current)?t:e;e>n&&o.iX[n]&&!(0,o.Sf)(n)&&(0,o.tb)(n,(0,a._)({toStep:e},eC)),o.iX[e]&&(0,o.FY)(e,(0,a._)({fromStep:n,direction:e>n?"forward":"back"},eC)),(0,c.U)({event:"onboarding_step_completed",step_number:e,step_name:ek[e]||"step_".concat(e),onboarding_variant:"v3",account_type:"agency"}),w.current=e}}},[e,j,N]),(0,s.useEffect)(function(){j&&window.scrollTo({top:0,behavior:"smooth"})},[e,j]),!j||N)return(0,r.jsx)(d.c,{});var C=function(e,t){return(0,r.jsx)(f.i,{stepKey:t,pitch:"agency",children:e})};if(0===e)return C((0,r.jsx)(D,{}),0);if(2===e)return C((0,r.jsx)(eo,{}),2);if(5===e)return C((0,r.jsx)(ew,{}),5);var _=(0,r.jsx)(h.t,{}),A=7===e?(0,r.jsxs)(m.z,{mobileClassName:"",children:[_,(0,r.jsx)(u._,{stepKey:e,className:"relative lg:pt-16",children:(0,r.jsx)(b.n,{variant:"v3"})})]}):(0,r.jsxs)(m.z,{mobileClassName:"",children:[_,(0,r.jsx)("div",{className:"relative lg:flex lg:min-h-svh lg:items-center lg:justify-center lg:px-10 lg:py-24",children:(0,r.jsx)(u._,{stepKey:e,children:(0,r.jsx)(g.b,{variant:"v3"})})})]});return(0,r.jsx)(x.H,{isAgency:!0,renderAnonymous:function(t){return t.checking?C((0,r.jsx)(p.q3,{label:7===e?"Preparing your report…":"Setting up your scans…"}),"checking"):C((0,r.jsx)(ej,{actions:t}),"signin")},renderScreen:function(e){return C((0,r.jsx)(ey,{screen:e}),"gate-".concat(e.status))},children:A})}}}]);

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.