PageSourceSearch

https://app.magicstudio.com/_next/static/chunks/app/%5Blocale%5D/l…?dpl=dpl_59RFXD2GPEjgGmNbrm36ESTzNL7z

js magicstudio.com collected 2026-09-24 18:23:23 UTC 29,573 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="91148a07-95f6-4eaa-87f4-d435e8e18eee",e._sentryDebugIdIdentifier="sentry-dbid-91148a07-95f6-4eaa-87f4-d435e8e18eee")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5495],{2145:(e,t,l)=>{"use strict";l.d(t,{Ay:()=>c,NZ:()=>i,Uf:()=>d,YI:()=>o});var a=l(80101),r=l(75188),n=l(84185),s=l(39764),i=function(e){return e.TEXT="text",e.EMAIL="email",e.PASSWORD="password",e.NUMBER="number",e.TEL="tel",e.URL="url",e.SEARCH="search",e}({}),o=function(e){return e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e}({}),d=function(e){return e.NONE="none",e.TEXT="text",e.TEL="tel",e.URL="url",e.EMAIL="email",e.NUMERIC="numeric",e.DECIMAL="decimal",e.SEARCH="search",e}({});let c=e=>{let{className:t="",type:l="text",placeholder:i="Enter your name",value:o,defaultValue:d,onChange:c,onFocus:u,onBlur:h,onKeyDown:f,onPaste:m,disabled:g=!1,error:x=!1,errorMessage:p,size:v="lg",id:w,name:y,autoComplete:b="off",autoFocus:j=!1,readOnly:N=!1,required:E=!1,maxLength:_,minLength:I,pattern:A,allowClear:S=!1,onClear:k,inputMode:C,dataT:L}=e,[M,T]=(0,r.J0)(!1),[O,R]=(0,r.J0)(!1),P=null!=C?C:(()=>{switch(l){case"email":return"email";case"tel":return"tel";case"url":return"url";case"search":return"search";case"number":return"numeric";default:return}})(),F=(0,r.hb)(e=>{T(!0),void 0!==u&&u(e)},[u]),q=(0,r.hb)(e=>{T(!1),void 0!==h&&h(e)},[h]),D=(0,s.cn)("w-full bg-bg-section subheading-2-r transition-colors duration-200 focus:outline-none",(()=>{switch(v){case"sm":return"h-10 px-3 text-center rounded-sm";case"md":return"h-[44px] px-3 text-center rounded-md";default:return"h-12 px-[14px] text-left rounded-md"}})(),g?"border-1.5 border-border-input cursor-not-allowed opacity-50":x?"border-1.5 !border-border-error":M||O?"border-1.5 border-border-secondary":"border-1.5 border-border-input","text-text-primary placeholder:text-text-secondary","numeric"===P&&"[&:not(:placeholder-shown)]:tracking-widest",t),z=void 0!==o&&""!==o||void 0!==d&&""!==d,U=S&&void 0!==k&&void 0!==o&&o.length>0;return(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:l,className:(0,s.cn)(D,U?"pr-10":""),placeholder:M||z?"":i,value:o,defaultValue:d,onChange:c,onFocus:F,onBlur:q,onKeyDown:f,onPaste:m,onMouseEnter:()=>{R(!0)},onMouseLeave:()=>{R(!1)},disabled:g,id:w,name:y,"aria-describedby":void 0!==p?"".concat(null!=w?w:"","-error"):void 0,"aria-invalid":x,autoComplete:b,autoFocus:j,readOnly:N,required:E,maxLength:_,minLength:I,pattern:A,inputMode:P,...void 0!==L?{"data-t":L}:{}}),U?(0,a.jsx)("button",{type:"button",onClick:k,className:"absolute right-3 top-1/2 flex size-6 -translate-y-1/2 items-center justify-center text-text-secondary transition-colors hover:text-text-primary","aria-label":"Clear input",children:(0,a.jsx)(n.CloseIcon,{className:"ih-size-5"})}):null]}),x&&void 0!==p&&""!==p?(0,a.jsx)("p",{id:"".concat(null!=w?w:"","-error"),className:"mt-2 ".concat("sm"===v?"body-m text-system-error":"body-l font-medium text-system-error"),role:"alert",children:p}):null]})}},9540:(e,t,l)=>{"use strict";l.d(t,{rQ:()=>f,fr:()=>g});var a=l(80101),r=l(51052),n=l(39764),s=l(30048),i=l(61058),o=l(38162),d=l(9521),c=l(52175),u=l(26292);let h=e=>{let t=void 0!==e.leading&&null!==e.leading||void 0!==e.trailing&&null!==e.trailing;return(0,a.jsxs)("div",{className:"flex shrink-0 flex-row items-center gap-3",children:[e.leading,e.trailing,t&&e.showControlsDivider?(0,a.jsx)("div",{"aria-hidden":!0,className:"h-4 w-px shrink-0 bg-border-primary"}):null,e.closeButton]})},f=e=>{var t,l;let{title:f,children:m,trailing:g,leading:x,onBack:p,backAriaLabel:v="Back",showClose:w=!0,onClose:y,closeAriaLabel:b="Close",dragHandle:j,className:N,stackClose:E=!1,collapsingTitle:_=!0,stackTitleBelowControls:I=!1,showControlsDivider:A=!0}=e,S=(0,d.OS)(),k=(0,c.e5)(),C=(0,r.li)(null),L=null!==k;(0,u.H)(null!=(t=null==k?void 0:k.scrollRef)?t:null,C,{active:null!=(l=null==k?void 0:k.active)&&l});let M=void 0!==p?(0,a.jsx)(s.Ay,{variant:s.nl.EMPTY,shape:s.lq.SQUARE,size:s.Tp.MEDIUM,onClick:p,"aria-label":v,icon:(0,a.jsx)(i.A,{className:"ih-size-6"}),className:"-m-2.5"}):null,T=w&&void 0!==y?(0,a.jsx)(s.Ay,{variant:s.nl.EMPTY,shape:s.lq.SQUARE,size:s.Tp.MEDIUM2,onClick:y,"aria-label":b,icon:(0,a.jsx)(o.A,{className:"ih-size-6"}),className:"-m-1"}):null,O=(0,a.jsx)(h,{leading:x,trailing:g,showControlsDivider:A,closeButton:T}),R=void 0!==f?(0,a.jsx)("h2",{className:"heading-1 w-full min-w-0 text-text-primary",children:f}):null,P=null!=m?m:R,F=void 0!==y||void 0!==m||void 0!==f,q=L&&_&&!E&&(void 0===p?F:null!==P),D=P;return void 0!==p?D=((e,t,l,r)=>(0,a.jsxs)("div",{className:"flex w-full min-w-0 max-w-full flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex w-full shrink-0 flex-row items-center justify-between gap-3",children:[(0,a.jsx)("div",{"data-scaffold-back":!0,className:"flex size-6 shrink-0 items-center justify-center",children:t}),(0,a.jsx)("div",{"data-scaffold-controls":!0,className:"-my-1 -mr-1 flex shrink-0",children:l})]}),e?(0,a.jsx)("div",{"data-scaffold-title-block":!0,className:"min-w-0 origin-top-left",children:r}):r]}))(q,M,O,P):F&&(D=I?((e,t,l)=>(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("div",{"data-scaffold-controls":!0,className:"-mr-1 -mt-1 flex justify-end",children:t}),e?(0,a.jsx)("div",{"data-scaffold-title-block":!0,className:"min-w-0 origin-top-left",children:l}):(0,a.jsx)("div",{className:"min-w-0",children:l})]}))(L&&_,O,P):((e,t,l,r,n)=>l?(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("div",{className:"-mt-1 flex justify-end",children:r}),(0,a.jsx)("div",{className:"min-w-0",children:n})]}):e?(0,a.jsxs)("div",{className:"flex w-full min-w-0 max-w-full flex-row items-start justify-between gap-3",children:[t?(0,a.jsx)("div",{"data-scaffold-title-block":!0,"data-scaffold-inline":!0,className:"min-w-0 flex-1 origin-top-left",children:n}):(0,a.jsx)("div",{className:"min-w-0 flex-1",children:n}),(0,a.jsx)("div",{"data-scaffold-controls":!0,className:"-mr-1 -mt-1 ml-auto shrink-0",children:r})]}):t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{"data-scaffold-controls":!0,className:"absolute right-5 top-5 z-10",children:r}),(0,a.jsx)("div",{"data-scaffold-title-block":!0,className:"min-w-0 origin-top-left",children:n})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("div",{className:"-mt-1 flex justify-end",children:r}),(0,a.jsx)("div",{className:"min-w-0",children:n})]}))(S,L&&_,E,O,P)),(0,a.jsxs)("div",{ref:C,className:(0,n.cn)("relative",(null==k?void 0:k.showHeaderShadow)===!0&&!q&&"shadow-header-bottom transition-shadow",N),children:[j,D]})};var m=l(92067);let g=Object.assign(e=>{let{children:t,className:l,active:s=!0,"data-t":i}=e,o=(0,r.li)(null),{showHeaderShadow:d,showFooterShadow:u}=(0,m.o)(o,{active:s});return(0,a.jsx)(c.aq,{value:{scrollRef:o,showHeaderShadow:d,showFooterShadow:u,active:s},children:(0,a.jsx)("div",{className:(0,n.cn)("flex min-h-0 w-full min-w-0 max-w-full flex-col",l),...void 0!==i?{"data-t":i}:{},children:t})})},{Header:e=>(0,a.jsx)(f,{...e,className:(0,n.cn)("z-10 shrink-0 bg-bg-section px-6 pb-6 pt-4 transition-shadow",e.className)}),Body:e=>{let{children:t,className:l}=e,{scrollRef:r}=(0,c.EO)();return(0,a.jsx)("div",{ref:r,className:(0,n.cn)("min-h-0 w-full min-w-0 max-w-full flex-1 overflow-y-auto overscroll-y-contain px-6 pb-4",l),children:t})},Footer:e=>{let{children:t,className:l,shadowAlways:r=!1,"data-t":s}=e,{showFooterShadow:i}=(0,c.EO)();return(0,a.jsx)("div",{className:(0,n.cn)("pb-safe shrink-0 bg-bg-section px-6 pb-3 pt-4 transition-shadow md:pb-6",(r||i)&&"shadow-footer-top",l),...void 0!==s?{"data-t":s}:{},children:t})}})},13591:(e,t,l)=>{"use strict";l.d(t,{x:()=>b});var a=l(6059),r=l(76787),n=l(4333),s=l(56253),i=l(85972),o=l(98991),d=l(39051),c=l(90985),u=l(99134),h=l(90906),f=l(23979),m=l(34816),g=l(218),x=l(78036),p=l(99795),v=l(15230);let w="about:blank",y=e=>
1{let t=(0,m.PE)(e);return"INVALID_OR_EXPIRED_OTP"===t||"OTP_EMAIL_MISMATCH"===t},b=e=>{let{onSuccess:t,photoShootDetails:l,disableButtonsDuringOtp:b=!0,onMaxFreePhotoShootsReached:j,onPrepaidSelection:N,source:E}=e,_=(0,r.c3)("individualCreatorFlow"),I=(0,r.c3)("login"),{captureEvent:A}=(0,s.useUnifiedAnalytics)(),S=null==l?void 0:l.photo_shoot_id,k=(0,a.Kr)(()=>(0,v.ho)(null==l?void 0:l.sub_type)?{pack_selected:d.yZ}:{},[null==l?void 0:l.sub_type]),C=(0,h.ws)(e=>{var t;return null==(t=e.userProfile)?void 0:t.id}),L=(0,a.hb)(e=>{if(y(e))return _("errorInvalidOtp");let t=(0,m.PE)(e),l=o.rM[t];return void 0===l?t:I(l)},[_,I]),M=(0,a.hb)((e,t)=>{if(A("login_completed",{photo_shoot_id:S,source_view:t,source:E,source_action:(e===f.AG.SIGNUP).toString(),new_user:e===f.AG.SIGNUP,...k}),e===f.AG.SIGNUP){var l;let{referral_code:e}=(0,i.HC)(),t=null==(l=h.ws.getState().userProfile)?void 0:l.id;void 0!==e&&void 0!==t&&A("referred_user_signed_up",{metadata:{referee_id:t,referral_code:e}})}},[A,S,E,k]),[T,O]=(0,a.J0)(""),[R,P]=(0,a.J0)(!1),[F,q]=(0,a.J0)(!1),[D,z]=(0,a.J0)(!1),[U,B]=(0,a.J0)(""),{handleAuth:G,completeEmailOtpLogin:J,isLoading:H,error:V}=(0,u.A)(),K=(0,h.ws)(e=>e.refreshUserProfile),Y=(0,a.hb)(async(e,l)=>{await t(),await K(),M(e,l),(0,n.wS)(C),(0,n.Q0)("auth","login_success",{flowType:e,sourceView:l})},[t,K,M,C]);(0,a.vJ)(()=>{null!==V&&(0,g.uI)(V)&&(B(L(V)),P(!1),q(!1))},[V,L]);let W=(0,a.hb)(e=>{if(null!==e&&!e.closed)try{if(e.location.href!==w)return;e.document.write("Loading...")}catch(e){if((e instanceof DOMException||e instanceof Error)&&"SecurityError"===e.name)return;throw e}},[]),X=(0,a.hb)(()=>{B(_("errorPopupBlocked")),P(!1)},[_]),Q=(0,a.hb)(async e=>(null==e?void 0:e.prepaid_photo_shoot)!==void 0&&void 0!==N&&(await N(e.photo_shoot_id,e.prepaid_photo_shoot),!0),[N]),Z=(0,a.hb)(async e=>{if(e.login_request.message===m.cy.MAX_FREE_PHOTO_SHOOTS_REACHED&&void 0!==j){M(e.login_request.flow_type,"google"),await K(),await j();return}await Q(e.login_request.photo_shoot)||await Y(e.login_request.flow_type,"google")},[j,M,K,Q,Y]),$=async()=>{let e=window.open(w,"popup","width=500,height=500");A("login_initiated",{source_view:"google",source:null!=E?E:"unknown",photo_shoot_id:S,...k});try{if(P(!0),B(""),W(e),null===e||e.closed)return void X();let t=await G({provider:f.nh.GOOGLE,params:{idToken:(0,p.A)(),anonymousUserId:(0,p.A)(),...l&&{photoShootDetails:l},openedWindow:e}});(e=>"object"==typeof e&&null!==e&&"login_request"in e&&"object"==typeof e.login_request&&null!==e.login_request&&"status"in e.login_request&&e.login_request.status===f.a2.FINISHED)(t)&&await Z(t),P(!1)}catch(l){if(null===e||e.closed||e.close(),l instanceof Error&&l.message===o.Kg){B(""),P(!1);return}let t=l instanceof Error?l.message:_("errorGoogleSignIn");B(L(t)),P(!1),(0,x.vV)(t,{component:"useLoginFormController",action:"handleGoogleSignIn",severity:x.MU.CRITICAL,metadata:{error:t,stack:l instanceof Error?l.stack:void 0}})}},ee=async e=>{try{B(""),await G({provider:f.nh.EMAIL_OTP,params:{idToken:(0,p.A)(),email:T,photoShootDetails:null!=l?l:{}}})}catch(n){let t=(0,m.PE)(n),l=(0,m.$p)(n),a=(0,g.uI)(t)?t:_("errorSendOtp");B(a);let r=null!==l&&l>=400&&l<500;throw(0,x.vV)(Error(a),{component:"useLoginFormController",action:e,severity:r?x.MU.WARNING:x.MU.CRITICAL,metadata:{error:a,statusCode:l,stack:n instanceof Error?n.stack:void 0}}),n}},et=async()=>{if(!(0,g.B9)(T))return void B(_("errorInvalidEmail"));A("login_initiated",{source_view:"email",source:null!=E?E:"unknown",photo_shoot_id:S,...k});try{q(!0),z(!0),await ee("handleEmailSubmit"),q(!1)}catch{z(!1),q(!1)}},el=async e=>{try{B("");let t=await J({email:T,otp:e});if(t.login_request.status!==f.a2.FINISHED)throw Error(_("errorVerifyOtp"));("message"in t.login_request?t.login_request.message:void 0)===m.cy.MAX_FREE_PHOTO_SHOOTS_REACHED&&void 0!==j?(M(t.login_request.flow_type,"email"),await K(),await j()):await Q(t.login_request.photo_shoot)||await Y(t.login_request.flow_type,"email"),z(!1)}catch(l){let e=L(l),t=""!==e?e:_("errorInvalidOtp");B(t),y(l)||(0,x.vV)(Error(t),{component:"useLoginFormController",action:"handleOtpVerify",severity:x.MU.CRITICAL,metadata:{error:t,stack:l instanceof Error?l.stack:void 0}})}},ea=async()=>{await ee("handleResendCode")},er=(0,a.hb)(()=>{z(!1),B("")},[]),en=(0,g.B9)(T),es=R||F||H||b&&D,ei=(0,c.hs)(()=>{et()},{isFormValid:en&&!es,isProcessing:F});
1return{email:T,setEmail:O,isGoogleLoading:R,isEmailLoading:F,isAuthLoading:H,showOtpModal:D,setShowOtpModal:z,errorMessage:U,setErrorMessage:B,handleGoogleSignIn:$,handleEmailSubmit:et,handleOtpVerify:el,handleResendCode:ea,handleEditEmail:er,isEmailValid:en,areButtonsDisabled:es,handleKeyDown:ei}}},26292:(e,t,l)=>{"use strict";l.d(t,{H:()=>n});var a=l(84722);let r=(e,t,l)=>Math.min(l,Math.max(t,e)),n=function(e,t){let{active:l=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,a.vJ)(()=>{var a;if(!l||null===e)return;let n=e.current,s=t.current;if(null===n||null===s)return;let i=s.querySelector("[data-scaffold-title-block]"),o=null!=(a=null==i?void 0:i.querySelector("[data-scaffold-title], h1, h2"))?a:null;if(null===i||null===o)return;let d=s.querySelector("[data-scaffold-controls]"),c=s.querySelector("[data-scaffold-back]"),u=i.querySelector("[data-scaffold-leading]"),h=Array.from(i.querySelectorAll("[data-scaffold-secondary], [data-scaffold-leading]")),f=1,m=0,g=0,x=1,p=0,v=0,w=-1,y=!1,b=e=>{y=e,o.style.whiteSpace=e?"nowrap":"",o.style.overflow=e?"hidden":"",o.style.textOverflow=e?"ellipsis":"",o.style.maxWidth=e?"".concat(p.toString(),"px"):""},j=()=>{s.style.height="",s.style.boxShadow="",s.style.transition="",i.style.position="",i.style.top="",i.style.left="",i.style.width="",i.style.transform="",i.style.willChange="",b(!1),h.forEach(e=>{e.style.opacity=""}),n.style.paddingTop=""},N=i.hasAttribute("data-scaffold-inline"),E=()=>{let e=r(n.scrollTop/f,0,1);if(e===w)return;w=e;let t=e>0;t!==y&&b(t);let l=1+(x-1)*e,a=null===u?e:r((e-.5)/.5,0,1);i.style.transform="translate(".concat((g*a).toString(),"px, ").concat((m*e).toString(),"px) scale(").concat(l.toString(),")");
1let o=r(e/.5,0,1);h.forEach(e=>{e.style.opacity=(1-o).toString()});s.style.boxShadow="0px -2px 12px 0px rgba(0,0,0,".concat((.08*(e>=1)).toString(),")")},_=()=>{0===v&&(v=requestAnimationFrame(()=>{v=0,E()}))},I=()=>{let e=n.scrollTop;(()=>{var e,t;j(),o.style.whiteSpace="nowrap";let l=o.getBoundingClientRect().height;o.style.whiteSpace="";let a=s.getBoundingClientRect(),r=i.getBoundingClientRect(),h=o.getBoundingClientRect(),v=null!=(e=null==d?void 0:d.getBoundingClientRect())?e:null,w=null!=(t=null==c?void 0:c.getBoundingClientRect())?t:null,y=parseFloat(window.getComputedStyle(o).fontSize);x=Number.isFinite(y)&&y>0?Math.min(1,20/y):1;let b=h.top-r.top,E=h.left-r.left,_=N||null!==c?r.top-a.top:64,I=_+r.height+32,A=64,S=32;null!==v&&v.height>=8&&(A=Math.max(2*(S=v.top-a.top+v.height/2),v.bottom-a.top)),A=Math.min(A,I),m=S-l*x/2-(_+b*x),g=null!==w?w.right-a.left+12-(r.left-a.left+E*x):null!==u?-E*x:0;let k=r.left-a.left+E*x+g;p=Math.max(0,((null!==v?v.left-a.left:a.width)-12-k)/x),f=Math.max(1,I-A),s.style.height="".concat(A.toString(),"px"),s.style.transition="box-shadow 0.2s ease",i.style.position="absolute",i.style.top="".concat(_.toString(),"px"),i.style.left="".concat((r.left-a.left).toString(),"px"),i.style.width="".concat(r.width.toString(),"px"),i.style.willChange="transform",n.style.paddingTop="".concat(f.toString(),"px")})(),n.scrollTop=e,w=-1,E()};I();let A=0,S=()=>{0===A&&(A=requestAnimationFrame(()=>{A=0,I()}))};n.addEventListener("scroll",_,{passive:!0}),window.addEventListener("resize",S);let k=null;if("undefined"!=typeof ResizeObserver){let e=!1;(k=new ResizeObserver(()=>{if(!e){e=!0;return}S()})).observe(o),h.forEach(e=>null==k?void 0:k.observe(e))}return()=>{0!==v&&cancelAnimationFrame(v),0!==A&&cancelAnimationFrame(A),n.removeEventListener("scroll",_),window.removeEventListener("resize",S),null==k||k.disconnect(),j()}},[l,e,t])}},39042:(e,t,l)=>{"use strict";l.d(t,{M:()=>a});let a=[{originalImage:"/images/creator-flow/info-screen/eva/upload.jpeg",headshot:"/images/creator-flow/info-screen/eva/headshot.png"},{originalImage:"/images/creator-flow/info-screen/jamie/upload.jpeg",headshot:"/images/creator-flow/info-screen/jamie/headshot.png"},{originalImage:"/images/creator-flow/info-screen/christine/upload.jpeg",headshot:"/images/creator-flow/info-screen/christine/headshot.png"},{originalImage:"/images/creator-flow/info-screen/evan/upload.JPG",headshot:"/images/creator-flow/info-screen/evan/headshot.png"},{originalImage:"/images/creator-flow/info-screen/rosanna/upload.jpeg",headshot:"/images/creator-flow/info-screen/rosanna/headshot.png"},{originalImage:"/images/creator-flow/info-screen/bobby/upload.jpeg",headshot:"/images/creator-flow/info-screen/bobby/headshot.png"},{originalImage:"/images/creator-flow/info-screen/helen/upload.jpeg",headshot:"/images/creator-flow/info-screen/helen/headshot.png"},{originalImage:"/images/creator-flow/info-screen/laura/upload.jpg",headshot:"/images/creator-flow/info-screen/laura/headshot.png"}]},44666:(e,t,l)=>{"use strict";l.d(t,{A:()=>c});var a=l(80101),r=l(80626),n=l(76787),s=l(28835),i=l(2145),o=l(35463),d=l(9540);let c=e=>{let t=(0,n.c3)("otpModal"),{open:l,onOpenChange:c,email:u,onEditEmail:h,onVerify:f,onResendCode:m,errorMessage:g,onErrorMessageChange:x,resendCooldown:p=30,verifyButtonText:v,claimContent:w}=e,[y,b]=(0,r.J0)(""),[j,N]=(0,r.J0)(!1),[E,_]=(0,r.J0)(p),[I,A]=(0,r.J0)(!1),S=null!=w;(0,r.vJ)(()=>{l||(b(""),_(p),A(!1),N(!1),""!==g&&x(""))},[l,p,g,x]),(0,r.vJ)(()=>{if(!l||E<=0){E<=0&&A(!0);return}let e=setInterval(()=>{_(e=>e<=1?(A(!0),0):e-1)},1e3);return()=>{clearInterval(e)}},[l,E]);let k=async()=>{if(6===y.length&&!j){N(!0),""!==g&&x("");try{await f(y)}finally{N(!1)}}},C=6===y.length;return(0,a.jsx)(o.aF,{open:l,onOpenChange:c,enableLayoutAnimation:!0,...S?{dismissable:!1,showCloseButton:!1,className:"shadow-none md:rounded-xl",sheetPinToVisualViewport:!0}:{dismissable:!j,closeOnBackdropClick:!1,showCloseButton:!1,sheetPinToVisualViewport:!0,...C&&{onEnter:()=>{k()}}},children:S?w:(0,a.jsxs)(o.Gs,{open:l,className:"flex flex-col gap-8 !rounded-xl !p-6",dataT:"otp-modal",children:[(0,a.jsx)(o.wt,{className:"sr-only",children:t("modalTitle")}),(0,a.jsxs)("div",{className:"flex flex-col gap-8 md:gap-4",children:[(0,a.jsx)(d.rQ,{onClose:()=>{c(!1)},showClose:!j,closeAriaLabel:t("closeAriaLabel"),children:(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)("h2",{className:"heading-1 font-greed text-text-primary",children:t("heading")}),(0,a.jsxs)("p",{className:"subheading-1 font-greed text-text-secondary",children:["".concat(t("instructionText",{email:u}
1)," "),(0,a.jsx)(s.Ay,{onClick:h,disabled:j,variant:s.Ak.LINK,className:"inline-flex p-0 align-baseline",dataT:"otp-change-email",children:t("changeEmailLink")})]})]})}),(0,a.jsx)(i.Ay,{type:i.NZ.TEXT,placeholder:t("inputPlaceholder"),value:y,onChange:e=>{b(e.target.value.replace(/\D/g,"").slice(0,6)),""!==g&&x("")},onKeyDown:e=>{"Enter"===e.key&&C&&!j&&(e.preventDefault(),k())},size:i.YI.LARGE,className:"w-full !text-left",maxLength:6,autoFocus:!0,error:""!==g,errorMessage:g,inputMode:i.Uf.NUMERIC,dataT:"otp-input"})]}),(0,a.jsx)(s.Ay,{onClick:()=>{k()},disabled:!C||j,variant:s.Ak.PRIMARY,className:"w-full",dataT:"otp-verify",children:null!=v?v:t("confirmButton")}),(0,a.jsxs)("div",{className:"flex items-center justify-start gap-1",children:[(0,a.jsx)("span",{className:"body-l font-greed text-text-secondary",children:t("resendPrompt")}),I?(0,a.jsx)(s.Ay,{onClick:()=>{I&&!j&&(b(""),_(p),A(!1),""!==g&&x(""),m())},variant:s.Ak.LINK,className:"p-0",dataT:"otp-resend-link",children:t("resendLink")}):(0,a.jsx)("span",{className:"body-l font-greed tabular-nums text-text-secondary",children:t("resendTimer",{time:String(Math.round(E))})})]})]})})}},52175:(e,t,l)=>{"use strict";l.d(t,{EO:()=>s,aq:()=>n,e5:()=>i});var a=l(92877);let r=(0,a.q6)(null),n=r.Provider,s=()=>{let e=(0,a.NT)(r);if(null===e)throw Error("OverlayScaffold.Header/Body/Footer must be rendered inside <OverlayScaffold>");return e},i=()=>(0,a.NT)(r)},72589:(e,t,l)=>{"use strict";l.d(t,{Kr:()=>a.useMemo,hb:()=>a.useCallback,vJ:()=>a.useEffect});var a=l(78849)},78396:(e,t,l)=>{Promise.resolve().then(l.bind(l,99023))},89510:(e,t,l)=>{"use strict";l.d(t,{A:()=>d});var a=l(80101),r=l(80626),n=l(80309),s=l(35355),i=l(27),o=l(39042);let d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{assets:t=o.M}=e,[l,d]=(0,r.J0)(0);(0,r.vJ)(()=>{let e=setInterval(()=>{d(e=>(e+1)%t.length)},6e3);return()=>{clearInterval(e)}},[t]);let c=t[l];return c?(0,a.jsxs)("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:[(0,a.jsx)(s.N,{children:(0,a.jsx)(i.P.div,{className:"absolute inset-0 h-full w-full",initial:{opacity:0,filter:"blur(10px)",scale:1.1},animate:{opacity:1,filter:"blur(0px)",scale:1},exit:{opacity:0,zIndex:0},transition:{duration:.8,ease:"easeInOut"},children:(0,a.jsx)(n.default,{src:c.headshot,alt:"Testimonial result ".concat(l+1),fill:!0,sizes:"(min-width: 1024px) 50vw, 100vw",quality:60,className:"object-cover",priority:!0})},"bg-".concat(l))}),(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 z-20",children:(0,a.jsx)(s.N,{children:(0,a.jsx)(i.P.div,{className:"pointer-events-auto absolute inset-0 flex items-start justify-end p-1",initial:{opacity:0,filter:"blur(10px)",scale:1.05},animate:{opacity:1,filter:"blur(0px)",scale:1},exit:{opacity:0,zIndex:0},transition:{duration:.8,ease:"easeInOut"},children:(0,a.jsx)("div",{className:"relative shrink-0",children:(0,a.jsx)("div",{className:"relative h-20 w-20 overflow-hidden rounded-md border-1.5 border-border-primary bg-shapes-midnight shadow-thumbnail",children:(0,a.jsx)(n.default,{src:c.originalImage,alt:"Original upload ".concat(l+1),fill:!0,sizes:"80px",quality:60,className:"object-cover",priority:!0})})})},"overlay-".concat(l))})}),(0,a.jsx)("div",{className:"invisible absolute h-0 w-0 overflow-hidden",children:(()=>{let e=(l+1)%o.M.length,t=o.M[e];return t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.default,{src:t.headshot,alt:"",fill:!0,sizes:"(min-width: 1024px) 50vw, 100vw",quality:60,priority:!0}),(0,a.jsx)(n.default,{src:t.originalImage,alt:"",width:80,height:80,sizes:"80px",quality:60,priority:!0})]}):null})()})]}):(0,a.jsx)("div",{className:"h-full w-full bg-shapes-midnight"})}},92067:(e,t,l)=>{"use strict";l.d(t,{o:()=>n});var a=l(15346);let r={showHeaderShadow:!1,showFooterShadow:!1},n=function(e){let{active:t=!0,headerThresholdPx:l=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[n,s]=(0,a.J0)(r),i=(0,a.li)(!1);return(0,a.vJ)(()=>{if(!t)return void s(r);let a=e.current;if(null===a)return void s(r);let n=()=>{let{scrollTop:e,scrollHeight:t,clientHeight:r}=a,n=e>l,i=e+r<t-1;s(e=>e.showHeaderShadow===n&&e.showFooterShadow===i?e:{showHeaderShadow:n,showFooterShadow:i})},o=()=>{i.current||(i.current=!0,requestAnimationFrame(()=>{i.current=!1,n()}))};n(),a.addEventListener("scroll",o,{passive:!0});let d=null;return"undefined"!=typeof ResizeObserver?((d=new ResizeObserver(()=>{n()})).observe(a),a.firstElementChild instanceof HTMLElement&&d.observe(a.firstElementChild)):window.addEventListener("resize",n,{passive:!0}),()=>{a.removeEventListener("scroll",o),null!==d?d.disconnect():window.removeEventListener("resize",n)}},[e,t,l]),n}},99023:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>j});var a=l(80101),r=l(72589),n=l(39782),s=l(96985),i=l(84722),o=l(76787),d=l(13591),c=l(28835),u=l(2145),h=l(84185),f=l(44666),m=l(23979),g=l(39764);let x=e=>{let{onSuccess:t,displayReturningEmail:l,lastUsedMethod:r,isFromMagicLink:n,className:s}=e,x=(0,o.c3)("login"),p=(0,o.c3)("individualCreatorFlow"),{email:v,setEmail:w,isGoogleLoading:y,isEmailLoa
1ding:b,showOtpModal:j,setShowOtpModal:N,errorMessage:E,setErrorMessage:_,handleGoogleSignIn:I,handleEmailSubmit:A,handleOtpVerify:S,handleResendCode:k,handleEditEmail:C,isEmailValid:L,areButtonsDisabled:M,handleKeyDown:T}=(0,d.x)({onSuccess:t,onMaxFreePhotoShootsReached:()=>{},source:"login_page"});(0,i.vJ)(()=>{n&&l.length>0&&w(l)},[n,l,w]);let O=()=>(0,a.jsx)("span",{className:"body-xs-600 font-greed text-shapes-forestGreen",children:x("lastUsed")}),R=e=>(0,a.jsx)(c.Ay,{onClick:()=>{I()},disabled:M,variant:c.Ak.PRIMARY,state:y?c.w.LOADING:M?c.w.DISABLED:c.w.DEFAULT,className:(0,g.cn)("w-full",e),dataT:"login-google-cta",children:(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"flex items-center",children:(0,a.jsx)(h.GoogleIcon,{className:"ih-size-4"})}),x("continueWithGoogleButton")]})}),P=()=>(0,a.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,a.jsx)(u.Ay,{type:u.NZ.EMAIL,placeholder:p("emailPlaceholder"),value:v,onChange:e=>{w(e.target.value),E.length>0&&_("")},disabled:M,onKeyDown:T,size:u.YI.LARGE,className:"border border-border-primary hover:border-border-secondary focus:border-border-secondary",dataT:"login-email-input"}),(0,a.jsx)(c.Ay,{onClick:()=>{A()},disabled:!L||M,variant:c.Ak.PRIMARY,state:b?c.w.LOADING:M||!L?c.w.DISABLED:c.w.DEFAULT,className:"w-full",dataT:"login-email-cta",children:x("continueWithEmail")})]}),F=()=>(0,a.jsxs)("div",{className:"flex w-full items-center gap-2",children:[(0,a.jsx)("span",{className:"h-px flex-1 bg-gradient-to-r from-white to-greys-12","aria-hidden":"true"}),(0,a.jsx)("span",{className:"body-l font-greed capitalize text-text-secondary",children:x("orDividerLabel")}),(0,a.jsx)("span",{className:"h-px flex-1 bg-gradient-to-l from-white to-greys-12","aria-hidden":"true"})]});return(0,a.jsxs)("div",{className:(0,g.cn)("flex w-full flex-col gap-10 lg:gap-8",s),"data-redesign":"true",children:[(0,a.jsx)("div",{className:"flex flex-col gap-3 text-left md:text-center lg:text-left",children:n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("h1",{className:"heading-1 font-greed text-text-primary",children:[x("welcomeBack"),",",(0,a.jsx)("span",{className:"block break-words",children:l})]}),(0,a.jsxs)("p",{className:"subheading-1 font-greed text-text-secondary",children:[x("loginLinkExpired"),(0,a.jsx)("br",{"aria-hidden":"true"}),x("logInBelowToGetBack")]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h1",{className:"heading-1 font-greed text-text-primary",children:x("signInHeading")}),(0,a.jsx)("p",{className:"subheading-1 font-greed text-text-secondary",children:x("signInDescription")})]})}),(0,a.jsx)("div",{className:"flex flex-col gap-4",children:r===m.xm.EMAIL?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex w-full flex-col",children:[(0,a.jsx)("div",{className:"-mb-2 flex items-center justify-center rounded-t-md bg-last-used-strip px-8 pb-3.5 pt-1.5",children:O()}),P()]}),F(),R()]}):(0,a.jsxs)(a.Fragment,{children:[r===m.xm.GOOGLE?(0,a.jsxs)("div",{className:"flex w-full flex-col items-center overflow-hidden rounded-lg bg-last-used-wrap px-0.5 pb-0.5",children:[(0,a.jsx)("div",{className:"-mb-2 flex items-center justify-center px-8 pb-3.5 pt-1.5",children:O()}),R("rounded-lg")]}):R(),F(),P()]})}),(0,a.jsx)(f.A,{open:j,onOpenChange:e=>{N(e),e||_("")},email:v,onEditEmail:C,onVerify:S,onResendCode:()=>{k()},errorMessage:j?E:"",onErrorMessageChange:_})]})};var p=l(89510),v=l(98991),w=l(80309),y=l(74592);let b=()=>(0,a.jsx)("header",{className:"flex h-15 w-full shrink-0 items-center px-6",children:(0,a.jsx)(w.default,{src:y.$yU,alt:y.esP,width:107,height:24,priority:!0,className:"h-7 w-auto lg:h-6"})}),j=()=>{var e;let t=(0,s.useRouter)(),l=(0,n.useSearchParams)(),i=(0,r.hb)(()=>{t.push("/")},[t]),o=(0,r.Kr)(()=>{let e=(e=>{if(null===e||0===e.length)return null;try{let t=atob(e);return JSON.parse(t)}catch{return null}})(l.get("state"));if((e=>{if(null===e||"object"!=typeof e)return!1;let{email:t,auth_provider:l}=e;return"string"==typeof t&&t.length>0&&"string"==typeof l&&l.length>0})(e)){let{email:t,auth_provider:l}=e;return{email:t,auth_provider:l}}return null},[l]);(0,r.vJ)(()=>{let e=new URL(window.location.href);e.searchParams.has("state")&&(e.searchParams.delete("state"),window.history.replaceState(window.history.state,document.title,"".concat(e.pathname).concat(e.search).concat(e.hash)))},[]);let d=null!==o,c=null!=(e=null==o?void 0:o.email)?e:"",u=d?(e=>"google"===e?m.xm.GOOGLE:"aarzoo"===e||"aarzoo_email_otp"===e?m.xm.EMAIL:v.jp)(o.auth_provider):v.jp;return(0,a.jsx)("div",{className:"flex min-h-dvh w-full flex-col bg-white lg:bg-greys-03","data-redesign":"true",children:(0,a.jsxs)("div",{className:"mx-auto flex w-full max-w-screen-xl flex-1 flex-col",children:[(0,a.jsx)(b,{}),(0,a.jsxs)("main",{className:"flex flex-1 flex-col px-6 pb-4 md:pb-6 lg:flex-row lg:gap-6",children:[(0,a.jsx)("section",{className:"flex flex-1 flex-col lg:items-center lg:justify-center lg:rou
1nded-lg lg:bg-white",children:(0,a.jsx)("div",{className:"mt-10 flex w-full flex-col md:mx-auto md:mt-20 md:max-w-content-login lg:mt-0",children:(0,a.jsx)(x,{onSuccess:i,displayReturningEmail:c,lastUsedMethod:u,isFromMagicLink:c.length>0})})}),(0,a.jsx)("aside",{className:"relative hidden overflow-hidden rounded-lg lg:block lg:flex-1",children:(0,a.jsx)(p.A,{})})]})]})})}}},e=>{e.O(0,[21,816,1442,309,7802,2043,7686,4289,583,7684,7256,407,2638,57,1017,9634,6253,8379,5066,4185,9677,4975,4869,462,7358],()=>e(e.s=78396)),_N_E=e.O()}]);

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.