1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26548],{26548:(e,t,n)=>{n.r(t),n.d(t,{OnboardingContainerV3:()=>Z});var r=n(95155),a=n(12115),l=n(53401),o=n(93420),s=n(80010),i=n(88184),u=n(62136),c=n(59370),d=n(32365),f=n(68068),m=n(18911),h=n(18691),x=n(61975),p=n(22043),v=n(45377),b=n(71450),g=n(90368),w=n(35299),y=n(5917),j=n(27937),k=n(77293),N=n(91729),C=n(39725),_=n(42667),S=n(32372),A=n(749),T=["Woman","Man","Trans"],L=[{value:"images",label:"Photos & videos"},{value:"streams",label:"Live cam shows"}];function E(e,t){return(0,x._)(function(){var n,r,a,l,o;return(0,b.YH)(this,function(s){switch(s.label){case 0:n=new AbortController,r=function(){return n.abort()},t.addEventListener("abort",r),a=setTimeout(r,4e3),s.label=1;case 1:return s.trys.push([1,4,5,6]),[4,fetch("/api/validation/username?username=".concat(encodeURIComponent(e)),{signal:n.signal})];case 2:if(!(l=s.sent()).ok)return[2,null];return[4,l.json()];case 3:return[2,!!(null==(o=s.sent())?void 0:o.exists)];case 4:return s.sent(),[2,null];case 5:return clearTimeout(a),t.removeEventListener("abort",r),[7];case 6:return[2]}})})()}function F(){var e=(0,l.q)(),t=e.userName,n=e.userType,o=e.creators,s=e.reset,u=e.addCreator,c=e.updateCreator,d=e.setCurrentStep,f=o[0],m=!!(null==f?void 0:f.databaseCreatorId),h=(0,p._)((0,a.useState)(S.tz),1)[0],F=(0,p._)((0,a.useState)(function(){var e,n;return null!=(n=null==f||null==(e=f.keywords)?void 0:e[0])?n:f?"":(null!=t?t:"").trim()}),2),R=F[0],I=F[1],M=(0,p._)((0,a.useState)(function(){return(null==f?void 0:f.username)&&(f.databaseCreatorId||!(0,N.TU)(f.username))?f.username:null}),2),U=M[0],B=M[1],O=(0,p._)((0,a.useState)(!1),2),P=O[0],q=O[1],D=(0,p._)((0,a.useState)(function(){return T.filter(function(e){var t;return(null!=(t=null==f?void 0:f.identities)?t:[]).some(function(t){return(null==t?void 0:t.toLowerCase())===e.toLowerCase()})})}),2),Y=D[0],W=D[1],z=function(e){W(function(t){return t.includes(e)?t.filter(function(t){return t!==e}):(0,v._)(t).concat([e])}),ee(null)},H=(0,p._)((0,a.useState)(function(){var e;return null!=(e=null==f?void 0:f.contentType)?e:[]}),2),K=H[0],X=H[1],G=function(e){X(function(t){return t.includes(e)?t.filter(function(t){return t!==e}):(0,v._)(t).concat([e])}),ee(null)},V=(0,p._)((0,a.useState)("idle"),2),$=V[0],Z=V[1],J=(0,p._)((0,a.useState)(null),2),Q=J[0],ee=J[1],et=(0,a.useRef)(!1),en=(0,a.useRef)(new Set),er=(0,p._)((0,a.useState)(function(){var e,t,n;return!(n=null!=(e=null==f?void 0:f.username)?e:"")||(null==f?void 0:f.databaseCreatorId)||(0,N.TU)(n)||(null!=(t=null==f?void 0:f.keywords)?t:[]).some(function(e){return(null!=e?e:"").toLowerCase()===n.toLowerCase()})?null:n}),2),ea=er[0],el=er[1],eo=(0,a.useMemo)(function(){return(0,k.i)(R)},[R]),es=(U||eo).trim(),ei=es?(0,N.TU)(es):null,eu=null!==U&&U!==eo&&!P&&!m;(0,a.useEffect)(function(){if(!es||ei)return void Z("idle");if(m||en.current.has(es.toLowerCase()))return void Z("available");var e=new AbortController;Z("checking");var t=setTimeout(function(){return(0,x._)(function(){var t,n,r,a,l,o,s,u,c;return(0,b.YH)(this,function(d){switch(d.label){case 0:return[4,E(es,e.signal)];case 1:if(t=d.sent(),e.signal.aborted)return[2];if(null===t)return Z("unknown"),[2];if(!t)return en.current.add(es.toLowerCase()),Z("available"),[2];n=!0,r=!1,a=void 0,d.label=2;case 2:d.trys.push([2,7,8,9]),l=(0,k.n)(es)[Symbol.iterator](),d.label=3;case 3:if(n=(o=l.next()).done)return[3,6];return[4,E(s=o.value,e.signal)];case 4:if(u=d.sent(),e.signal.aborted)return[2];if(null===u)return Z("unknown"),[2];if(!1===u)return en.current.add(s.toLowerCase()),(0,i.SH)(0,"v3_handle_alternative_used"),el(s),B(s),[2];d.label=5;case 5:return n=!0,[3,3];case 6:return[3,9];case 7:return c=d.sent(),r=!0,a=c,[3,9];case 8:try{n||null==l.return||l.return()}finally{if(r)throw a}return[7];case 9:return Z("taken"),[2]}})})()},500);return function(){e.abort(),clearTimeout(t)}},[es,ei,m]);var ec=(null!=R?R:"").normalize("NFKC").replace(RegExp("[\\p{Cc}\\p{Cf}]","gu"),"").replace(RegExp("[^\\p{L}\\p{N}\\s._'-]","gu")," ").replace(/\s+/g," ").trim(),ed=ec?(0,_._P)(ec):null,ef=(0,a.useMemo)(function(){return Array.from(new Set([ec,es===ea?"":es].filter(
1Boolean)))},[ec,es,ea]),em=ef.length>0&&!ed&&0===(0,C.R$)(ef).active.length,eh="checking"===$,ex=!m&&!es&&ec.length>=2,ep=P||ex,ev=!m&&(ep||!!es);return(0,r.jsxs)("section",{className:"mx-auto flex min-h-svh w-full max-w-[440px] flex-col gap-6 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",children:[(0,r.jsxs)("div",{className:"flex h-11 items-center justify-between",children:[(0,r.jsx)("button",{type:"button","aria-label":"Back",onClick:function(){if(!m&&null!==l.q.getState().userType&&(0,S.tz)()){(0,S.W3)("type"),l.q.getState().updateUserType(null);return}(0,S.xI)()},className:"flex h-11 w-11 items-center justify-center rounded-[14px] bg-white shadow-sm",children:(0,r.jsx)(g.A,{className:"h-5 w-5","aria-hidden":!0})}),(0,r.jsx)(A.v,{step:1,total:A.C}),(0,r.jsxs)("span",{className:"w-11 text-right text-[13px] font-bold text-[var(--night-blue)]/70",children:["1/",A.C]})]}),(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:"font-funnel text-[34px] font-medium leading-[1.06] tracking-[-0.04em] text-[#1e2440]",children:"What name do your fans know you by?"}),(0,r.jsx)("p",{className:"text-[15px] font-medium leading-[1.45] text-[var(--night-blue)]/75",children:m?(0,r.jsxs)(r.Fragment,{children:["Your profile is set up as ",(0,r.jsxs)("strong",{children:["@",null==f?void 0:f.username]}),". You can add more names from your account after the scan."]}):"This is what we search for. You add your other names in a moment."})]}),!m&&(0,r.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,r.jsx)("label",{htmlFor:"v3-name",className:"text-[13px] font-bold tracking-[0.02em]",children:"YOUR NAME"}),(0,r.jsx)("input",{id:"v3-name",type:"text",autoComplete:"nickname",value:R,maxLength:60,onFocus:function(){et.current||(et.current=!0,(0,i.SH)(0,"scan_form_focused",{variant:"v3"}))},onChange:function(e){I(e.target.value),ee(null),B(null),q(!1)},placeholder:"e.g. Bella Rose",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"}),ev&&(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:[ep?(0,r.jsxs)("label",{className:"flex flex-1 flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[12px] font-semibold text-[var(--night-blue)]/70",children:"Name on your takedown notices"}),(0,r.jsx)("input",{autoFocus:P,value:null!=U?U:eo,maxLength:40,onChange:function(e){B(e.target.value.replace(/\s+/g,"")),el(null),ee(null)},className:"h-9 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 flex-col gap-0.5",children:[(0,r.jsx)("span",{className:"text-[12px] font-semibold text-[var(--night-blue)]/70",children:"Name on your takedown notices"}),(0,r.jsxs)("span",{className:"text-[16px] font-bold text-[#1e2440]",children:["@",es]})]}),!ex&&(0,r.jsx)("button",{type:"button",onClick:function(){return q(function(e){return!e})},className:"min-h-11 rounded-[12px] bg-[#3A5AB7]/10 px-3 text-[14px] font-bold text-[#3A5AB7]",children:P?"Done":"Edit"})]}),(0,r.jsxs)("div",{"aria-live":"polite",className:"min-h-5 text-[13px] font-semibold",children:[ed&&(0,r.jsx)("span",{className:"text-red-700",children:ed}),!ed&&ei&&es&&(0,r.jsx)("span",{className:"text-red-700",children:ei}),!ed&&!ei&&"checking"===$&&(0,r.jsxs)("span",{className:"flex items-center gap-1.5 text-[var(--night-blue)]/70",children:[(0,r.jsx)(w.A,{className:"h-3.5 w-3.5 animate-spin","aria-hidden":!0}),"Checking it is freeâ¦"]}),!ed&&!ei&&"available"===$&&(0,r.jsxs)("span",{className:"flex items-center gap-1.5 text-[#1f7a4d]",children:[(0,r.jsx)(y.A,{className:"h-4 w-4",strokeWidth:2.6,"aria-hidden":!0}),eu?"Yours. The first one was taken, so we picked this.":"Available. We made it from your name."]}),!ed&&!ei&&"taken"===$&&(0,r.jsx)("span",{className:"text-red-700",children:"That name is taken. Tap Edit to make it yours."}),!ed&&!ei&&!P&&em&&"checking"!==$&&(0,r.jsx)("span",{className:"text-[#9a5b00]",children:"That name is very common. Add your stage name or handle so we find you, not everyone called that."})]})]}),!m&&(0,r.jsxs)("fieldset",{className:"flex flex-col gap-2.5",children:[(0,r.jsx)("legend",{className:"mb-2.5 text-[13px] font-bold tracking-[0.02em]",children:"I AM"}),(0,r.jsx)("div",{className:"grid grid-cols-3 gap-2.5",children:T.map(function(e){var t=Y.includes(e);return(0,r.jsx)("button",{type:"button","aria-pressed":t,onClick:function(){return z(e)}
1,className:"h-14 rounded-2xl text-[16px] transition-colors ".concat(t?"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)]"),children:e},e)})}),(0,r.jsx)("span",{className:"text-[13px] font-medium text-[var(--night-blue)]/70",children:"Tap all that apply. It tells us which sites to check."})]}),!m&&(0,r.jsxs)("fieldset",{className:"flex flex-col gap-2.5",children:[(0,r.jsx)("legend",{className:"mb-2.5 text-[13px] font-bold tracking-[0.02em]",children:"WHAT DO YOU POST?"}),(0,r.jsx)("div",{className:"grid grid-cols-2 gap-2.5",children:L.map(function(e){var t=K.includes(e.value);return(0,r.jsx)("button",{type:"button","aria-pressed":t,onClick:function(){return G(e.value)},className:"h-14 rounded-2xl px-3 text-[15px] transition-colors ".concat(t?"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)]"),children:e.label},e.value)})}),(0,r.jsx)("span",{className:"text-[13px] font-medium text-[var(--night-blue)]/70",children:"Tap both if you do both. It tells us what to look for."})]}),(0,r.jsx)("div",{className:"flex-1 lg:hidden"}),Q&&(0,r.jsx)("p",{role:"alert",className:"rounded-[14px] border border-red-200 bg-red-50 px-4 py-3 text-[14px] text-red-700",children:Q}),(0,r.jsx)("button",{type:"button",onClick:function(){if(m)return void d(5);if(ec.length<2)return ee("Type the name your fans know you by.");if(ed)return ee(ed);if(!es||ei)return ee(null!=ei?ei:"Pick the name for your takedown notices.");if(em)return ee("That name is too common to search on its own. Add your stage name or handle, like Bella Rose or bellarose99.");if("taken"===$)return ee("That name is taken. Edit it to make it yours.");if("checking"!==$){if(0===Y.length)return ee("Pick one so we know which sites to check.");if(0===K.length)return ee("Tap what you post, so we look for the right content.");ee(null);var e,r,a,o=(null!=t?t:"").trim().toLowerCase();(o&&o!==es.toLowerCase()&&!(0,S.eX)()||n&&"creator"!==n)&&s();var f=l.q.getState();f.updateUserType("creator"),f.updateUserName(es);var h=l.q.getState().creators[0],x=new Set([null==h||null==(e=h.keywords)?void 0:e[0],null==h?void 0:h.username].filter(function(e){return!!e}).map(function(e){return e.toLowerCase()})),p=(null!=(r=null==h?void 0:h.keywords)?r:[]).filter(function(e){return(null==e?void 0:e.trim())&&!x.has(e.toLowerCase())}),b=new Set,g=(0,v._)(ef).concat((0,v._)(p)).filter(function(e){var t=e.toLowerCase();return!b.has(t)&&(b.add(t),!0)}),w={username:es,website:null!=(a=null==h?void 0:h.website)?a:"",contentType:L.map(function(e){return e.value}).filter(function(e){return K.includes(e)}),identities:T.filter(function(e){return Y.includes(e)}),keywords:g,v3PagePart:"link"};if(h)c(h.id,w);else{u(w);var y=l.q.getState().creators[0];y&&c(y.id,{keywords:g})}(0,i.SH)(0,"v3_name_submitted",{identity:Y.join("+"),contentTypes:K,handleEdited:P||null!==U&&!eu}),d(3)}},disabled:eh,className:"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",children:eh?(0,r.jsx)(w.A,{className:"h-5 w-5 animate-spin","aria-hidden":!0}):(0,r.jsxs)(r.Fragment,{children:["Continue",(0,r.jsx)(j.A,{className:"h-5 w-5","aria-hidden":!0})]})}),!m&&!h&&(0,r.jsx)("a",{href:"/welcome?type=agency",onClick:S.SL,className:"text-center text-[14px] font-semibold text-[#3A5AB7] underline underline-offset-2",children:"Managing several creators? Sign up as an agency"})]})}var R=(0,n(71847).A)("FileCheck2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m3 15 2 2 4-4",key:"1lhrkk"}]]),I=n(55177),M=n(82175),U=n(28222),B=n(84290),O=n(39068),P=n(65229),q=n(6191);function D(e){var t=e.accounts,n=e.links,l=e.onChange,o=e.who,s=e.inputId,i=(0,p._)((0,a.useState)(""),2),u=i[0],c=i[1],d=(0,p._)((0,a.useState)(null),2),f=d[0],m=d[1],h=(0,p._)((0,a.useState)(null),2),x=h[0],v=h[1],b=function(){v(null);var e=(0,B.mr)(u.split(/[\s,;]+/).join("\n"),t,n,o);if(!e)return void m("Paste a link or type a domain, like mystudio.com.");var r=e.accounts.length-t.length;if(l(e.accounts,e.links),r>0&&v("That is an account: we added it to ".concat("you"===o?"your":"the
1ir"," accounts above.")),e.problem)return void m(e.problem);m(null),c("")};return(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[n.length>0&&(0,r.jsx)("ul",{"aria-label":"you"===o?"Your websites and authorized sites":"Their websites and authorized sites",className:"flex flex-wrap gap-2",children:n.map(function(e){var a=function(e){try{var t=new URL(/^https?:\/\//i.test(e)?e:"https://".concat(e)),n=t.hostname.replace(/^www\./i,""),r=t.pathname.replace(/\/+$/,"");return{label:"".concat(n).concat(r).concat(t.search),wholeSite:!r&&!t.search}}catch(t){return{label:e,wholeSite:!1}}}(e),o=a.label,s=a.wholeSite;return(0,r.jsxs)("li",{className:"flex max-w-full items-center gap-1.5 rounded-full border border-[#1f9d63]/30 bg-[#EFFAF4] py-1 pl-3 pr-1 text-[14px] font-semibold text-[#17744a]",children:[(0,r.jsx)(O.A,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}),(0,r.jsx)("span",{className:"truncate",children:o}),s&&(0,r.jsx)("span",{className:"shrink-0 text-[12px] font-medium text-[#17744a]/75",children:"\xb7 whole site"}),(0,r.jsx)("button",{type:"button","aria-label":"Remove ".concat(o),onClick:function(){return l(t,n.filter(function(t){return t!==e}))},className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full",children:(0,r.jsx)(P.A,{className:"h-4 w-4","aria-hidden":!0})})]},e)})}),(0,r.jsx)("label",{htmlFor:s,className:"text-[13px] font-semibold text-[var(--night-blue)]/80",children:"Add a website or a page: a domain covers the whole site"}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("input",{id:s,type:"text",inputMode:"url",autoComplete:"off",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:u,onChange:function(e){c(e.target.value),m(null),v(null)},onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),b())},onPaste:function(e){var t,n,r=e.clipboardData.getData("text");if(/[\r\n]/.test(r)){e.preventDefault();var a=e.currentTarget,l=null!=(t=a.selectionStart)?t:u.length,o=null!=(n=a.selectionEnd)?n:u.length;c("".concat(u.slice(0,l)).concat(r.trim().split(/\s*[\r\n]+\s*/).join(", ")).concat(u.slice(o))),m(null),v(null)}},placeholder:"mystudio.com",className:"h-12 min-w-0 flex-1 rounded-[14px] border border-[var(--night-blue)]/20 bg-white px-3.5 text-[16px] font-semibold text-[#1e2440] outline-none placeholder:font-medium placeholder:text-slate-400 focus:border-[#3A5AB7]"}),(0,r.jsxs)("button",{type:"button",onClick:b,disabled:!u.trim(),className:"flex h-12 items-center gap-1 rounded-[14px] bg-[#3A5AB7]/10 px-4 text-[15px] font-bold text-[#3A5AB7] disabled:opacity-50",children:[(0,r.jsx)(q.A,{className:"h-4 w-4","aria-hidden":!0}),"Add site"]})]}),(0,r.jsxs)("div",{"aria-live":"polite",className:"min-h-5 text-[13px] font-semibold",children:[f&&(0,r.jsx)("span",{className:"text-red-700",children:f}),!f&&x&&(0,r.jsx)("span",{className:"text-[var(--night-blue)]/75",children:x})]}),(0,r.jsxs)("span",{className:"text-[13px] font-medium text-[var(--night-blue)]/70",children:["you"===o?"Your own sites, and sites that post your content with your permission":"Their own sites, and sites that post their content with their permission",": a studio, a partner, an official channel. Add as many as you need. We never report them and never send a takedown there."]})]})}var Y=n(76805),W=["link","accounts","names"],z=["onlyfans.com/","fansly.com/","fanvue.com/"];function H(e){var t=e.icon,n=e.children;return(0,r.jsxs)("p",{className:"flex items-start gap-2.5 rounded-[16px] bg-[#3A5AB7]/[0.07] px-4 py-3 text-[13px] font-medium leading-[1.45] text-[var(--night-blue)]/85",children:[(0,r.jsx)("span",{className:"mt-0.5 shrink-0 text-[#3A5AB7]",children:t}),(0,r.jsx)("span",{children:n})]})}function K(){var e,t,n,o,s,u=(0,l.q)(),c=u.userName,d=u.creators,f=u.updateCreator,m=u.addCreatorKeyword,h=u.removeCreatorKeyword,x=u.setCurrentStep,b=u.autoDiscoverStatus,y=u.autoDiscoverResults,k=u.setAutoDiscoverStatus,N=u.setAutoDiscoverResults,T=d[0],L=(null!=c?c:"").trim(),E=(0,a.useMemo)(function(){var e;return null!=(e=null==T?void 0:T.keywords)?e:[]},[null==T?void 0:T.keywords]),F=(0,a.useMemo)(function(){var e;return(null!=(e=null==T?void 0:T.socialMedia)?e:[]).filter(function(e){var t;return e.platform&&(null==(t=e.username)?void 0:t.trim())})},[null==T?void 0:T.socialMedia]),O=(0,a.useMemo)(function(){return(null==T?void 0:T.ownAccountsConfirmed)?F:[]},[null==T?void 0:T.ownAccountsConfirmed,F]),P=(0,a.useMemo)(function(){var e;return(null!=(e=null==T?void 0:T.customLinks)?e:[]).filter(function(e){return e&&e!==(null==T?void 0:T.website)})},[null==T?void 0:T.customLinks,null==T?void 0:T.website]),q=(0,p._)((0,a.useState)(null!=(e=null==T?void 0:T.website)?e:""),2),K=q[0],X=q[1],G=(0,p._)((0,a.useState)(null!=(t=null==T?void 0:T.website)?t:""),2),V=G[0],$=G[1],Z=(0,p._)((0,a.useState)(null),2),J=Z[0],Q=Z[1],ee=(0,p._)((0,a.useState)(null!=(n=null==T?void 0:T.discoveredSocials)?n:[]),2),et=ee[0],en=ee[1],er=(0,p._)((0,a.useState)(null),2),ea=er[0],el=er[1],eo=(0,p._)((0,a.useState)(function(){var e,t,n,r;return t=null==T?void 0:T.v3PagePart,n=null!=(e=null==T?void 0:T.website)?e:"",r=(0,Y.qr)(O,P),(0,I.x)(n).ok?"names"!==t||r?null!=t?t:"link":"accounts":"link"}),2),es=eo[0],ei=eo[1],eu=(0,a.useRef)(null),ec=(0,a.useRef)(!1),ed=(0,a.useRef)(!1),ef=(0,M.RE)(y,L)?y:null;(0,a.useEffect)(function(){T||x(0)},[T,x]),(0,a.useEffect)(function(){if(T&&!T.ownAccountsConfirmed){var e=(0,v._)(et),t=!0,n=!1,r=void 0;try{for(var a,l=F[Symbol.iterator]();!(t=(a=l.next()).done);t=!0)!function(){var t=a.value;e.some(function(e){return e.platform.toLowerCase()===t.platform.toLowerCase()&&e.username.toLowerCase()===t.username.toLowerCase()})||e.push(t)}()}catch(e){n=!0,r=e}finally{try{t||null==l.return||l.return()}finally{if(n)throw r}}en(e),f(T.id,{socialMedia:[],ownAccountsConfirmed:!0,discoveredSocials:e})}},[null==T?void 0:T.id,null==T?void 0:T.ownAccountsConfirmed]),(0,a.useEffect)(function(){!ec.current&&!ef&&"loading"!==b&&(L.length<3||/\s/.test(L)||(ec.current=!0,k("loading"),fetch("/api/onboarding/auto-discover",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:L})}).then(function(e){return e.json()}).then(function(e){(null==e?void 0:e.found)?N({socials:e.socials,source:e.source,sourceUrl:e.sourceUrl,username:L}):k("not-found")}).catch(function(){return k("not-found")})))},[ef,b,L,k,N]),(0,a.useEffect)(function(){if("loading"===b){var e=setTimeout(function(){return k("not-found")},12e3);return function(){return clearTimeout(e)}}},[b,k]),(0,a.useEffect)(function(){var e=null==ef?void 0:ef.socials;if((null==e?void 0:e.length)&&!ed.current){ed.current=!0,en(function(t){return(0,M.XC)(e,t)});var t=(0,M.T2)(e);t&&!K.trim()&&(X(t),$(t),Q(t))}},[ef]);var em=et.map(function(e){return{platform:e.platform,username:e.username}}),eh=function(){if(T){var e=(0,I.x)(K),t=e.ok?e.url:K.trim();f(T.id,{website:t,customLinks:(0,v._)(t?[t]:[]).concat((0,v._)(P.filter(function(e){return e!==t}))),discoveredSocials:et})}},ex=function(e){var t,n;el(null),ei(e),T&&f(T.id,{v3PagePart:e}),null==(t=(n=window).scrollTo)||t.call(n,{top:0})},ep=function(e,t){if(T){el(null);var n=l.q.getState().creators[0],r=(0,U.b)({website:null!=(c=null==n?void 0:n.website)?c:"",discovered:[],existing:[],dismissed:[]}),a=new Set([L,null!=(d=null==n||null==(u=n.keywords)?void 0:u[0])?d:""].concat((0,v._)(r),(0,v._)(e.map(function(e){return e.username}))).map(function(e){return e.toLowerCase()})),o=!0,s=!1,i=void 0;try{for(var u,c,d,m,x=O[Symbol.iterator]();!(o=(m=x.next()).done);o=!0)!function(){var t,r=m.value,l=r.username.toLowerCase();if(!(a.has(l)||e.some(function(e){return e.id===r.id}))){var o=(null!=(t=null==n?void 0:n.keywords)?t:[]).find(function(e){return e.toLowerCase()===l});o&&h(T.id,o)}}()}catch(e){s=!0,i=e}finally{try{o||null==x.return||x.return()}finally{if(s)throw i}}f(T.id,{socialMedia:e,ownAccountsConfirmed:!0,customLinks:(0,v._)((null==n?void 0:n.website)?[n.website]:[]).concat((0,v._)(t))})}},ev=function(){var e=(0,I.x)(K);if(!e.ok)return el(e.error);X(e.url),$(e.url),eh(),(0,i.SH)(3,"v3_link_submitted",{pagePrefilled:null!==J&&e.url===J}),ex("accounts")};if(!T)return null;var eb={link:{eyebrow:"YOUR OFFICIAL PAGE",title:"Where do fans find you?",intro:"The page where fans pay for your content: your OnlyFans, Fansly or your own site.",next:ev},accounts:{eyebrow:"YOUR OWN ACCOUNTS",title:"Which accounts are yours?",intro:"Your profiles, your websites and the sites allowed to post your content go on your safe list, so a takedown never hits them by mistake.",next:function(){if(!(0,Y.qr)(O,P))return el(Y.hU.you);T&&f(T.id,{discoveredSocials:et}),(0,i.SH)(3,"v3_accounts_submitted",{ownAccounts:O.length+P.length,sites:P.length,discovered:et.length}),ex("names")}},names:{eyebrow:"YOUR NAMES",title:"What else do fans call you?",intro:"We search for every name on leak sites and file hosts. The more names, the more leaks we find.",next:function(){if(!T)return void x(0);var e=(0,I.x)(K);if(!e.ok)return ex("link"),el(e.error);if(!(0,Y.qr)(O,P))return ex("accounts"),el(Y.hU.you);var t=(0,U.b)({website:e.url,discovered:O,existing:E,dismissed:null!=(s=T.dismissedNameSuggestions)?s:[]}),n=(0,v._)(E).concat((0,v._)(t)),r=n.filter(function(e){return(0,_._P)(e)});if(r.length)return el("Remove or correct these names first: ".concat(r.join(", ")));if(0===(0,C.R$)(n).active.length)return el("Add a name that is unique to you, like your stage name or handle, so we find you and n
1ot everyone called that.");el(null);var a=!0,l=!1,o=void 0;try{for(var s,u,c=t[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value;m(T.id,d)}}catch(e){l=!0,o=e}finally{try{a||null==c.return||c.return()}finally{if(l)throw o}}f(T.id,{website:e.url,customLinks:[e.url].concat((0,v._)(P.filter(function(t){return t!==e.url}))),socialMedia:O,ownAccountsConfirmed:!0,discoveredSocials:et}),(0,i.SH)(3,"v3_page_submitted",{names:n.length,pagePrefilled:null!==J&&e.url===J,discovered:et.length,ownAccounts:O.length+P.length}),(0,S.Br)(),x(5)}}}[es],eg=2+W.indexOf(es),ew="loading"===b&&0===et.length;return(0,r.jsxs)("section",{className:"mx-auto flex min-h-svh w-full max-w-[440px] flex-col gap-6 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",children:[(0,r.jsxs)("div",{className:"flex h-11 items-center justify-between",children:[(0,r.jsx)("button",{type:"button","aria-label":"Back",onClick:function(){return"names"===es?ex("accounts"):"accounts"===es?ex("link"):void(eh(),(0,S.Br)(),x(0))},className:"flex h-11 w-11 items-center justify-center rounded-[14px] bg-white shadow-sm",children:(0,r.jsx)(g.A,{className:"h-5 w-5","aria-hidden":!0})}),(0,r.jsx)(A.v,{step:eg,total:A.C}),(0,r.jsxs)("span",{className:"w-11 text-right text-[13px] font-bold text-[var(--night-blue)]/70",children:[eg,"/",A.C]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-6 animate-[anim-slide-up_0.45s_ease-out_both]",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2 pt-2",children:[(0,r.jsx)("p",{className:"text-[12px] font-bold tracking-[0.14em] text-[var(--pink-cta)]",children:eb.eyebrow}),(0,r.jsx)("h1",{className:"font-funnel text-[34px] font-medium leading-[1.06] tracking-[-0.04em] text-[#1e2440]",children:eb.title}),(0,r.jsx)("p",{className:"text-[15px] font-medium leading-[1.45] text-[var(--night-blue)]/75",children:eb.intro})]}),"link"===es&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,r.jsx)("label",{htmlFor:"v3-official-page",className:"text-[13px] font-bold tracking-[0.02em]",children:"OFFICIAL PROFILE LINK"}),(0,r.jsx)("input",{ref:eu,id:"v3-official-page",type:"text",inputMode:"url",autoComplete:"url",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:K,onChange:function(e){X(e.target.value),el(null)},onBlur:function(){return $(K)},onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),ev())},placeholder:"onlyfans.com/yourname",className:"h-[60px] w-full rounded-[18px] border-2 border-[#3A5AB7] bg-white px-5 text-[18px] font-semibold text-[#1e2440] shadow-[0_0_0_5px_rgba(58,90,183,0.12)] outline-none placeholder:font-medium placeholder:text-slate-400"}),!K.trim()&&(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:z.map(function(e){return(0,r.jsx)("button",{type:"button","aria-label":"Start with ".concat(e),onClick:function(){X(e),el(null),requestAnimationFrame(function(){var t=eu.current;t&&(t.focus(),t.setSelectionRange(e.length,e.length))})},className:"flex min-h-9 items-center rounded-full border border-[#3A5AB7]/20 bg-white px-3.5 text-[14px] font-semibold text-[#3A5AB7]",children:e},e)})}),(0,r.jsx)("span",{className:"text-[13px] font-medium text-[var(--night-blue)]/70",children:J&&K===J?"We found it on ".concat(null!=(o=null==ef?void 0:ef.source)?o:"your link in bio",". Check it is yours."):"Paste it straight from your bio."}),ew&&(0,r.jsxs)("span",{className:"flex items-center gap-1.5 text-[13px] font-semibold text-[var(--night-blue)]/70",children:[(0,r.jsx)(w.A,{className:"h-3.5 w-3.5 animate-spin","aria-hidden":!0}),"Looking for your pagesâ¦"]})]}),(0,r.jsx)(H,{icon:(0,r.jsx)(R,{className:"h-4 w-4","aria-hidden":!0}),children:"Every takedown notice we send names this page as the original. Without it, sites can refuse to take your content down."})]}),"accounts"===es&&(0,r.jsxs)(r.Fragment,{children:[ew&&(0,r.jsxs)("span",{className:"flex items-center gap-1.5 text-[13px] font-semibold text-[var(--night-blue)]/70",children:[(0,r.jsx)(w.A,{className:"h-3.5 w-3.5 animate-spin","aria-hidden":!0}),"Looking for your pagesâ¦"]}),(0,r.jsxs)("fieldset",{className:"flex flex-col",children:[(0,r.jsx)("legend",{className:"mb-3 text-[13px] font-bold tracking-[0.02em]",children:"SOCIAL ACCOUNTS"}),(0,r.jsx)(B.Vz,{accounts:O,links:P,candidates:em,who:"you",inputId:"v3-own-account",onChange:ep,sitesElsewhere:!0})]}),(0,r.jsxs)("fieldset",{className:"flex flex-col",children:[(0,r.jsx)("legend",{className:"mb-3 text-[13px] font-bold tracking-[0.02em]",children:"WEBSITES AND AUTHORIZED SITES"}),(0,r.jsx)(D,{accounts:O,links:P,who:"you",inputId:"v3-own-site",onCh
1ange:ep})]})]}),"names"===es&&(0,r.jsxs)("fieldset",{className:"flex flex-col",children:[(0,r.jsx)("legend",{className:"sr-only",children:"Names we search for"}),(0,r.jsx)(U.T,{names:E,onAdd:function(e){return m(T.id,e)},onRemove:function(e){return h(T.id,e)},suggestFrom:V,discovered:et,confirmed:O,onEdit:function(){return el(null)},dismissed:null!=(s=T.dismissedNameSuggestions)?s:[],onDismiss:function(e){var t,n;return f(T.id,{dismissedNameSuggestions:(0,v._)(null!=(n=null==(t=l.q.getState().creators[0])?void 0:t.dismissedNameSuggestions)?n:[]).concat([e])})},inputId:"v3-add-name",listLabel:"Names we search for",addLabel:"Add another name or handle",suggestionsLabel:"SUGGESTED FROM YOUR PAGES"})]})]},es),(0,r.jsx)("div",{className:"flex-1 lg:hidden"}),ea&&(0,r.jsx)("p",{role:"alert",className:"rounded-[14px] border border-red-200 bg-red-50 px-4 py-3 text-[14px] text-red-700",children:ea}),(0,r.jsxs)("button",{type:"button",onClick:eb.next,className:"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]",children:["Continue",(0,r.jsx)(j.A,{className:"h-5 w-5","aria-hidden":!0})]})]})}var X=n(14171),G=n(86186),V=n(19271),$=["intro","presentation","set_profile","keywords","image_selection","email","leak_scan","results"];function Z(){var e,t=(0,l.q)(function(e){return e.currentStep}),n=(0,l.q)(function(e){return e.setCurrentStep}),x=(0,l.q)(function(e){return e.creators}),p=(0,o.j)();(0,a.useEffect)(function(){return(0,i.y$)()},[]);var v=3===t&&!!x[0]&&!(null==(e=x[0])?void 0:e.databaseCreatorId);(0,a.useEffect)(function(){if(p&&!v)if(t>=1&&t<=4){var e;n(5*(null!=(e=x[0])&&!!e.databaseCreatorId))}else t>7&&n(7)},[p,v,t,x,n]);var b=t>=1&&t<=4&&!v,g=(0,a.useRef)(null),w=(0,a.useRef)(!1);if((0,a.useEffect)(function(){if(p&&!b){if(!w.current){var e;w.current=!0,g.current=t,i.iX[t]&&(0,i.FY)(t,{via:"mount",variant:"v3"});return}if(t!==g.current){var n=null!=(e=g.current)?e:t;t>n&&i.iX[n]&&!(0,i.Sf)(n)&&(0,i.tb)(n,{toStep:t,variant:"v3"}),i.iX[t]&&(0,i.FY)(t,{fromStep:n,direction:t>n?"forward":"back",variant:"v3"}),(0,s.U)({event:"onboarding_step_completed",step_number:t,step_name:$[t]||"step_".concat(t),onboarding_variant:"v3"}),g.current=t}}},[t,p,b]),(0,a.useEffect)(function(){p&&window.scrollTo({top:0,behavior:"smooth"})},[t,p]),!p||b)return(0,r.jsx)(c.c,{});var y=(0,r.jsx)(d.t,{}),j=function(e,t){return(0,r.jsx)(m.i,{stepKey:t,children:e})};if(0===t||3===t||5===t)return j(0===t?(0,r.jsx)(F,{}):3===t?(0,r.jsx)(K,{}):(0,r.jsx)(X.bZ,{}),t);var k=7===t?(0,r.jsxs)(f.z,{mobileClassName:"",children:[y,(0,r.jsx)(u._,{stepKey:t,className:"relative lg:pt-16",children:(0,r.jsx)(V.n,{variant:"v3"})})]}):(0,r.jsxs)(f.z,{mobileClassName:"",children:[y,(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:t,children:(0,r.jsx)(G.b,{variant:"v3"})})})]});return(0,r.jsx)(h.H,{renderAnonymous:function(e){return e.checking?j((0,r.jsx)(X.q3,{label:7===t?"Preparing your reportâ¦":"Setting up your scanâ¦"}),"checking"):j((0,r.jsx)(X.cr,{actions:e}),"signin")},renderScreen:function(e){return j((0,r.jsx)(X.VE,{screen:e}),"gate-".concat(e.status))},children:k})}},39068:(e,t,n)=>{n.d(t,{A:()=>r});var r=(0,n(71847).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},82175:(e,t,n)=>{n.d(t,{RE:()=>u,T2:()=>c,XC:()=>f,v9:()=>d});var r=n(45377),a=n(80971),l=new Set(["onlyfans","fansly","manyvids","loyalfans","fanscentro","pocketstars","patreon","modelcentro"]),o=new Set(["chaturbate","stripchat","camsoda"]),s=["onlyfans","fansly","chaturbate","stripchat","camsoda","manyvids","loyalfans","fanscentro","pocketstars","patreon","modelcentro","instagram","twitter","tiktok"],i=function(e){return(null!=e?e:"").trim().toLowerCase()};function u(e,t){if(!e)return!1;var n=i(e.username);return""!==n&&n===i(t)}function c(e){var t=!0,n=!1,r=void 0;try{for(var l,o=s[Symbol.iterator]();!(t=(l=o.next()).done);t=!0){var u=function(){var t=l.value,n=e.find(function(e){return i(e.platform)===t&&e.url});if(null==n?void 0:n.url)return{v:n.url}}();if("object"===(0,a._)(u))return u.v}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}return null}function d(e,t){var n=new Set(e.map(function(e){return i(e.platform)})),a=new Set(t);return(0,r._)(n).some(function(e){return l.has(e)})&&a.add("images"),(0,r._)(n).some(function(e){return o.has(e)})&&a.add("streams"),Array.from(a)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r._)(t),a=new Set(t.map(function(e){return"".concat(i(e.platform),"|").concat(i(e.username))})),l=!0,o=!1,s=void 0;try{for(var u,c=e[Symbol.iterator]();!(l=(u=c.next()).done);l=!0){var d,f,m=u.value,h=(null!=(d=m.platform)?d:"").trim(),x=(null!=(f=m.username)?f:"").trim().replace(/^@/,"");if(h&&x){var p="".concat(i(h),"|").concat(i(x));a.has(p)||(a.add(p),n.push({id:"social_media_".concat(p.replace(/[^a-z0-9]+/gi,"_")),platform:h,username:x}))}}}catch(e){o=!0,s=e}finally{try{l||null==c.return||c.return()}finally{if(o)throw s}}return n}}}]);
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.