PageSourceSearch

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

js magicstudio.com collected 2026-10-02 04:09:11 UTC 30,830 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]="e5b0f7e1-6d6e-4b14-94bf-ef118a13be99",e._sentryDebugIdIdentifier="sentry-dbid-e5b0f7e1-6d6e-4b14-94bf-ef118a13be99")}()}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),s=l(84185),n=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:p=!1,errorMessage:x,size:v="lg",id:w,name:y,autoComplete:b="off",autoFocus:j=!1,readOnly:E=!1,required:N=!1,maxLength:_,minLength:A,pattern:I,allowClear:R=!1,onClear:M,inputMode:S,dataT:T}=e,[C,L]=(0,r.J0)(!1),[O,k]=(0,r.J0)(!1),P=null!=S?S:(()=>{switch(l){case"email":return"email";case"tel":return"tel";case"url":return"url";case"search":return"search";case"number":return"numeric";default:return}})(),D=(0,r.hb)(e=>{L(!0),void 0!==u&&u(e)},[u]),F=(0,r.hb)(e=>{L(!1),void 0!==h&&h(e)},[h]),q=(0,n.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":p?"border-1.5 !border-border-error":C||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),B=void 0!==o&&""!==o||void 0!==d&&""!==d,G=R&&void 0!==M&&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,n.cn)(q,G?"pr-10":""),placeholder:C||B?"":i,value:o,defaultValue:d,onChange:c,onFocus:D,onBlur:F,onKeyDown:f,onPaste:m,onMouseEnter:()=>{k(!0)},onMouseLeave:()=>{k(!1)},disabled:g,id:w,name:y,"aria-describedby":void 0!==x?"".concat(null!=w?w:"","-error"):void 0,"aria-invalid":p,autoComplete:b,autoFocus:j,readOnly:E,required:N,maxLength:_,minLength:A,pattern:I,inputMode:P,...void 0!==T?{"data-t":T}:{}}),G?(0,a.jsx)("button",{type:"button",onClick:M,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)(s.CloseIcon,{className:"ih-size-5"})}):null]}),p&&void 0!==x&&""!==x?(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:x}):null]})}},9540:(e,t,l)=>{"use strict";l.d(t,{rQ:()=>f,fr:()=>g});var a=l(80101),r=l(51052),s=l(39764),n=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:p,onBack:x,backAriaLabel:v="Back",showClose:w=!0,onClose:y,closeAriaLabel:b="Close",dragHandle:j,className:E,stackClose:N=!1,collapsingTitle:_=!0,stackTitleBelowControls:A=!1,showControlsDivider:I=!0}=e,R=(0,d.OS)(),M=(0,c.e5)(),S=(0,r.li)(null),T=null!==M;(0,u.H)(null!=(t=null==M?void 0:M.scrollRef)?t:null,S,{active:null!=(l=null==M?void 0:M.active)&&l});let C=void 0!==x?(0,a.jsx)(n.Ay,{variant:n.nl.EMPTY,shape:n.lq.SQUARE,size:n.Tp.MEDIUM,onClick:x,"aria-label":v,icon:(0,a.jsx)(i.A,{className:"ih-size-6"}),className:"-m-2.5"}):null,L=w&&void 0!==y?(0,a.jsx)(n.Ay,{variant:n.nl.EMPTY,shape:n.lq.SQUARE,size:n.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:p,trailing:g,showControlsDivider:I,closeButton:L}),k=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:k,D=void 0!==y||void 0!==m||void 0!==f,F=T&&_&&!N&&(void 0===x?D:null!==P),q=P;return void 0!==x?q=((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]}))(F,C,O,P):D&&(q=A?((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})]}))(T&&_,O,P):((e,t,l,r,s)=>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:s})]}):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:s}):(0,a.jsx)("div",{className:"min-w-0 flex-1",children:s}),(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:s})]}):(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:s})]}))(R,T&&_,N,O,P)),(0,a.jsxs)("div",{ref:S,className:(0,s.cn)("relative",(null==M?void 0:M.showHeaderShadow)===!0&&!F&&"shadow-header-bottom transition-shadow",E),children:[j,q]})};var m=l(92067);let g=Object.assign(e=>{let{children:t,className:l,active:n=!0,"data-t":i}=e,o=(0,r.li)(null),{showHeaderShadow:d,showFooterShadow:u}=(0,m.o)(o,{active:n});return(0,a.jsx)(c.aq,{value:{scrollRef:o,showHeaderShadow:d,showFooterShadow:u,active:n},children:(0,a.jsx)("div",{className:(0,s.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,s.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,s.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":n}=e,{showFooterShadow:i}=(0,c.EO)();return(0,a.jsx)("div",{className:(0,s.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!==n?{"data-t":n}:{},children:t})}})},13591:(e,t,l)=>{"use strict";l.d(t,{x:()=>b});var a=l(6059),r=l(76787),s=l(4333),n=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),p=l(78036),x=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:E,source:N}=e,_=(0,r.c3)("individualCreatorFlow"),A=(0,r.c3)("login"),{captureEvent:I}=(0,n.useUnifiedAnalytics)(),R=null==l?void 0:l.photo_shoot_id,M=(0,a.Kr)(()=>(0,v.ho)(null==l?void 0:l.sub_type)?{pack_selected:d.yZ}:{},[null==l?void 0:l.sub_type]),S=(0,h.ws)(e=>{var t;return null==(t=e.userProfile)?void 0:t.id}),T=(0,a.hb)(e=>{if(y(e))return _("errorInvalidOtp");let t=(0,m.PE)(e),l=o.rM[t];return void 0===l?t:A(l)},[_,A]),C=(0,a.hb)((e,t)=>{if(I("login_completed",{photo_shoot_id:R,source_view:t,source:N,source_action:(e===f.AG.SIGNUP).toString(),new_user:e===f.AG.SIGNUP,...M}),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&&I("referred_user_signed_up",{metadata:{referee_id:t,referral_code:e}})}},[I,R,N,M]),[L,O]=(0,a.J0)(""),[k,P]=(0,a.J0)(!1),[D,F]=(0,a.J0)(!1),[q,B]=(0,a.J0)(!1),[G,U]=(0,a.J0)(""),{handleAuth:z,completeEmailOtpLogin:H,isLoading:J,error:Q}=(0,u.A)(),Y=(0,h.ws)(e=>e.refreshUserProfile),V=(0,a.hb)(async(e,l)=>{await t(),await Y(),C(e,l),(0,s.wS)(S),(0,s.Q0)("auth","login_success",{flowType:e,sourceView:l})},[t,Y,C,S]);(0,a.vJ)(()=>{null!==Q&&(0,g.uI)(Q)&&(U(T(Q)),P(!1),F(!1))},[Q,T]);let K=(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}},[]),W=(0,a.hb)(()=>{U(_("errorPopupBlocked")),P(!1)},[_]),X=(0,a.hb)(async e=>(null==e?void 0:e.prepaid_photo_shoot)!==void 0&&void 0!==E&&(await E(e.photo_shoot_id,e.prepaid_photo_shoot),!0),[E]),Z=(0,a.hb)(async e=>{if(e.login_request.message===m.cy.MAX_FREE_PHOTO_SHOOTS_REACHED&&void 0!==j){C(e.login_request.flow_type,"google"),await Y(),await j();return}await X(e.login_request.photo_shoot)||await V(e.login_request.flow_type,"google")},[j,C,Y,X,V]),$=async()=>{let e=window.open(w,"popup","width=500,height=500");I("login_initiated",{source_view:"google",source:null!=N?N:"unknown",photo_shoot_id:R,...M});try{if(P(!0),U(""),K(e),null===e||e.closed)return void W();let t=await z({provider:f.nh.GOOGLE,params:{idToken:(0,x.A)(),anonymousUserId:(0,x.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){U(""),P(!1);return}let t=l instanceof Error?l.message:_("errorGoogleSignIn");U(T(t)),P(!1),(0,p.vV)(t,{component:"useLoginFormController",action:"handleGoogleSignIn",severity:p.MU.CRITICAL,metadata:{error:t,stack:l instanceof Error?l.stack:void 0}})}},ee=async e=>{try{U(""),await z({provider:f.nh.EMAIL_OTP,params:{idToken:(0,x.A)(),email:L,photoShootDetails:null!=l?l:{}}})}catch(s){let t=(0,m.PE)(s),l=(0,m.$p)(s),a=(0,g.uI)(t)?t:_("errorSendOtp");U(a);let r=null!==l&&l>=400&&l<500;throw(0,p.vV)(Error(a),{component:"useLoginFormController",action:e,severity:r?p.MU.WARNING:p.MU.CRITICAL,metadata:{error:a,statusCode:l,stack:s instanceof Error?s.stack:void 0}}),s}},et=async()=>{if(!(0,g.B9)(L))return void U(_("errorInvalidEmail"));I("login_initiated",{source_view:"email",source:null!=N?N:"unknown",photo_shoot_id:R,...M});try{F(!0),B(!0),await ee("handleEmailSubmit"),F(!1)}catch{B(!1),F(!1)}},el=async e=>{try{U("");let t=await H({email:L,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?(C(t.login_request.flow_type,"email"),await Y(),await j()):await X(t.login_request.photo_shoot)||await V(t.login_request.flow_type,"email"),B(!1)}catch(l){let e=T(l),t=""!==e?e:_("errorInvalidOtp");U(t),y(l)||(0,p.vV)(Error(t),{component:"useLoginFormController",action:"handleOtpVerify",severity:p.MU.CRITICAL,metadata:{error:t,stack:l instanceof Error?l.stack:void 0}})}},ea=async()=>{await ee("handleResendCode")},er=(0,a.hb)(()=>{B(!1),U("")},[]),es=(0,g.B9)(L),en=k||D||J||b&&q,ei=(0,c.hs)(()=>{et()},{isFormValid:es&&!en,isProcessing:D});
1return{email:L,setEmail:O,isGoogleLoading:k,isEmailLoading:D,isAuthLoading:J,showOtpModal:q,setShowOtpModal:B,errorMessage:G,setErrorMessage:U,handleGoogleSignIn:$,handleEmailSubmit:et,handleOtpVerify:el,handleResendCode:ea,handleEditEmail:er,isEmailValid:es,areButtonsDisabled:en,handleKeyDown:ei}}},15230:(e,t,l)=>{"use strict";l.d(t,{IH:()=>u,Lf:()=>c,XP:()=>m,ho:()=>f,my:()=>h,tp:()=>d});var a=l(64556),r=l(26621),s=l(80269),n=l(30571);let i=a.k5n([s.QR.REDO,s.QR.PERSONAL,s.QR.COMPLIMENTARY,s.QR.TEAM,s.QR.GIFT,s.QR.TEAM_REDO,s.QR.TEAM_COMPLIMENTARY,s.QR.CREATE_NEW_PHOTOSHOOT,s.QR.CART_RECOVERY,s.QR.GENERATE_BEFORE_PAY,s.QR.FREE,s.QR.ERAS]),o=a.k5n([s.QR.GIFT,s.QR.COMPLIMENTARY,s.QR.FREE]),d=e=>{if(!e)return!1;let t=i.safeParse(e);if(!t.success)return!1;let l=t.data;return l===s.QR.TEAM||l===s.QR.TEAM_REDO||l===s.QR.TEAM_COMPLIMENTARY},c=e=>{var t;return!!d(null==e?void 0:e.sub_type)&&null!=(t=null==e?void 0:e.is_admin)&&!t&&((null==e?void 0:e.disable_team_credits)===!0||(null==e?void 0:e.credits_used_by)!==r.Z.MEMBER)},u=e=>null!=e&&Date.now()-new Date(e).getTime()>1728e5,h=e=>{if(!e)return!1;let t=i.safeParse(e);return!!t.success&&t.data===s.QR.GIFT},f=e=>{if(!e)return!1;let t=i.safeParse(e);return!!t.success&&t.data===s.QR.ERAS},m=(e,t)=>null!=e&&""!==e&&(!!o.safeParse(e).success||d(e)&&t===n.Oi.MEMBER)},26292:(e,t,l)=>{"use strict";l.d(t,{H:()=>s});var a=l(84722);let r=(e,t,l)=>Math.min(l,Math.max(t,e)),s=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 s=e.current,n=t.current;if(null===s||null===n)return;let i=n.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=n.querySelector("[data-scaffold-controls]"),c=n.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,p=1,x=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(x.toString(),"px"):""},j=()=>{n.style.height="",n.style.boxShadow="",n.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=""}),s.style.paddingTop=""},E=i.hasAttribute("data-scaffold-inline"),N=()=>{let e=r(s.scrollTop/f,0,1);if(e===w)return;w=e;let t=e>0;t!==y&&b(t);let l=1+(p-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()});n.style.boxShadow="0px -2px 12px 0px rgba(0,0,0,".concat((.08*(e>=1)).toString(),")")},_=()=>{0===v&&(v=requestAnimationFrame(()=>{v=0,N()}))},A=()=>{let e=s.scrollTop;(()=>{var e,t;j(),o.style.whiteSpace="nowrap";let l=o.getBoundingClientRect().height;o.style.whiteSpace="";let a=n.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);p=Number.isFinite(y)&&y>0?Math.min(1,20/y):1;let b=h.top-r.top,N=h.left-r.left,_=E||null!==c?r.top-a.top:64,A=_+r.height+32,I=64,R=32;null!==v&&v.height>=8&&(I=Math.max(2*(R=v.top-a.top+v.height/2),v.bottom-a.top)),I=Math.min(I,A),m=R-l*p/2-(_+b*p),g=null!==w?w.right-a.left+12-(r.left-a.left+N*p):null!==u?-N*p:0;let M=r.left-a.left+N*p+g;x=Math.max(0,((null!==v?v.left-a.left:a.width)-12-M)/p),f=Math.max(1,A-I),n.style.height="".concat(I.toString(),"px"),n.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",s.style.paddingTop="".concat(f.toString(),"px")})(),s.scrollTop=e,w=-1,N()};A();let I=0,R=()=>{0===I&&(I=requestAnimationFrame(()=>{I=0,A()}))};s.addEventListener("scroll",_,{passive:!0}),window.addEventListener("resize",R);let M=null;if("undefined"!=typeof ResizeObserver){let e=!1;(M=new ResizeObserver(()=>{if(!e){e=!0;return}R()})).observe(o),h.forEach(e=>null==M?void 0:M.observe(e))}return()=>{0!==v&&cancelAnimationFrame(v),0!==I&&cancelAnimationFrame(I),s.removeEventListener("scroll",_),window.removeEventListener("resize",R),null==M||M.disconnect(),j()}},[l,e,t])}},26621:(e,t,l)=>{"use strict";l.d(t,{J:()=>a,Z:()=>r});var a=function(e){return e.DETAILS="DETAILS",e.USAGE_HISTORY="USAGE_HISTORY",e.BUY_CREDITS="BUY_CREDITS",e}({}),r=function(e){return e.ADMIN="ADMIN",e.MEMBER="MEMBER",e}({})},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),s=l(76787),n=l(28835),i=l(2145),o=l(35463),d=l(9540);let c=e=>{let t=(0,s.c3)("otpModal"),{open:l,onOpenChange:c,email:u,onEditEmail:h,onVerify:f,onResendCode:m,errorMessage:g,onErrorMessageChange:p,resendCooldown:x=30,verifyButtonText:v,claimContent:w}=e,[y,b]=(0,r.J0)(""),[j,E]=(0,r.J0)(!1),[N,_]=(0,r.J0)(x),[A,I]=(0,r.J0)(!1),R=null!=w;(0,r.vJ)(()=>{l||(b(""),_(x),I(!1),E(!1),""!==g&&p(""))},[l,x,g,p]),(0,r.vJ)(()=>{if(!l||N<=0){N<=0&&I(!0);return}let e=setInterval(()=>{_(e=>e<=1?(I(!0),0):e-1)},1e3);return()=>{clearInterval(e)}},[l,N]);let M=async()=>{if(6===y.length&&!j){E(!0),""!==g&&p("");try{await f(y)}finally{E(!1)}}},S=6===y.length;return(0,a.jsx)(o.aF,{open:l,onOpenChange:c,enableLayoutAnimation:!0,...R?{dismissable:!1,showCloseButton:!1,className:"shadow-none md:rounded-xl",sheetPinToVisualViewport:!0}:{dismissable:!j,closeOnBackdropClick:!1,showCloseButton:!1,sheetPinToVisualViewport:!0,...S&&{onEnter:()=>{M()}}},children:R?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})," "),(0,a.jsx)(n.Ay,{onClick:h,disabled:j,variant:n.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&&p("")},onKeyDown:e=>{"Enter"===e.key&&S&&!j&&(e.preventDefault(),M())},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)(n.Ay,{onClick:()=>{M()},disabled:!S||j,variant:n.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")}),A?(0,a.jsx)(n.Ay,{onClick:()=>{A&&!j&&(b(""),_(x),I(!1),""!==g&&p(""),m())},variant:n.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(N))})})]})]})})}},52175:(e,t,l)=>{"use strict";l.d(t,{EO:()=>n,aq:()=>s,e5:()=>i});var a=l(92877);let r=(0,a.q6)(null),s=r.Provider,n=()=>{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),s=l(80309),n=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)(n.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}
1,animate:{opacity:1,filter:"blur(0px)",scale:1},exit:{opacity:0,zIndex:0},transition:{duration:.8,ease:"easeInOut"},children:(0,a.jsx)(s.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)(n.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)(s.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)(s.default,{src:t.headshot,alt:"",fill:!0,sizes:"(min-width: 1024px) 50vw, 100vw",quality:60,priority:!0}),(0,a.jsx)(s.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:()=>s});var a=l(15346);let r={showHeaderShadow:!1,showFooterShadow:!1},s=function(e){let{active:t=!0,headerThresholdPx:l=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[s,n]=(0,a.J0)(r),i=(0,a.li)(!1);return(0,a.vJ)(()=>{if(!t)return void n(r);let a=e.current;if(null===a)return void n(r);let s=()=>{let{scrollTop:e,scrollHeight:t,clientHeight:r}=a,s=e>l,i=e+r<t-1;n(e=>e.showHeaderShadow===s&&e.showFooterShadow===i?e:{showHeaderShadow:s,showFooterShadow:i})},o=()=>{i.current||(i.current=!0,requestAnimationFrame(()=>{i.current=!1,s()}))};s(),a.addEventListener("scroll",o,{passive:!0});let d=null;return"undefined"!=typeof ResizeObserver?((d=new ResizeObserver(()=>{s()})).observe(a),a.firstElementChild instanceof HTMLElement&&d.observe(a.firstElementChild)):window.addEventListener("resize",s,{passive:!0}),()=>{a.removeEventListener("scroll",o),null!==d?d.disconnect():window.removeEventListener("resize",s)}},[e,t,l]),s}},99023:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>j});var a=l(80101),r=l(72589),s=l(39782),n=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 p=e=>{let{onSuccess:t,displayReturningEmail:l,lastUsedMethod:r,isFromMagicLink:s,className:n}=e,p=(0,o.c3)("login"),x=(0,o.c3)("individualCreatorFlow"),{email:v,setEmail:w,isGoogleLoading:y,isEmailLoading:b,showOtpModal:j,setShowOtpModal:E,errorMessage:N,setErrorMessage:_,handleGoogleSignIn:A,handleEmailSubmit:I,handleOtpVerify:R,handleResendCode:M,handleEditEmail:S,isEmailValid:T,areButtonsDisabled:C,handleKeyDown:L}=(0,d.x)({onSuccess:t,onMaxFreePhotoShootsReached:()=>{},source:"login_page"});(0,i.vJ)(()=>{s&&l.length>0&&w(l)},[s,l,w]);let O=()=>(0,a.jsx)("span",{className:"body-xs-600 font-greed text-shapes-forestGreen",children:p("lastUsed")}),k=e=>(0,a.jsx)(c.Ay,{onClick:()=>{A()},disabled:C,variant:c.Ak.PRIMARY,state:y?c.w.LOADING:C?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"})}),p("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:x("emailPlaceholder"),value:v,onChange:e=>{w(e.target.value),N.length>0&&_("")},disabled:C,onKeyDown:L,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:()=>{I()},disabled:!T||C,variant:c.Ak.PRIMARY,state:b?c.w.LOADING:C||!T?c.w.DISABLED:c.w.DEFAULT,className:"w-full",dataT:"login-email-cta",children:p("continueWithEmail")})]}),D=()=>(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:p("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",n),"data-redesign":"true",children:[(0,a.jsx)("div",{className:"flex flex-col gap-3 text-left md:text-center lg:text-left",children:s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("h1",{className:"heading-1 font-greed text-text-primary",children:[p("welcomeBack"),",",(0,a.jsx)("span",{className:"block break-words",children:l})]}),(0,a.jsxs)("p",{className:"subheading-1 font-greed text-text-secondary",children:[p("loginLinkExpired"),(0,a.jsx)("br",{"aria-hidden":"true"}),p("logInBelowToGetBack")]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h1",{className:"heading-1 font-greed text-text-primary",children:p("signInHeading")}),(0,a.jsx)("p",{className:"subheading-1 font-greed text-text-secondary",children:p("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()]}),D(),k()]}):(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()}),k("rounded-lg")]}):k(),D(),P()]})}),(0,a.jsx)(f.A,{open:j,onOpenChange:e=>{E(e),e||_("")},email:v,onEditEmail:S,onVerify:R,onResendCode:()=>{M()},errorMessage:j?N:"",onErrorMessageChange:_})]})};var x=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;
1let t=(0,n.useRouter)(),l=(0,s.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:rounded-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)(p,{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)(x.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.