1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3261],{59565:function(e,r,i){i.d(r,{Z:function(){return d}});var o=i(7653);/** 2 * @license lucide-react v0.428.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),t=function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return r.filter((e,r,i)=>!!e&&i.indexOf(e)===r).join(" ")};/** 7 * @license lucide-react v0.428.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 12 * @license lucide-react v0.428.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let l=(0,o.forwardRef)((e,r)=>{let{color:i="currentColor",size:n=24,strokeWidth:l=2,absoluteStrokeWidth:d,className:c="",children:s,iconNode:p,...u}=e;return(0,o.createElement)("svg",{ref:r,...a,width:n,height:n,stroke:i,strokeWidth:d?24*Number(l)/Number(n):l,className:t("lucide",c),...u},[...p.map(e=>{let[r,i]=e;return(0,o.createElement)(r,i)}),...Array.isArray(s)?s:[s]])}),d=(e,r)=>{let i=(0,o.forwardRef)((i,a)=>{let{className:d,...c}=i;return(0,o.createElement)(l,{ref:a,iconNode:r,className:t("lucide-".concat(n(e)),d),...c})});return i.displayName="".concat(e),i}},74678:function(e,r,i){i.d(r,{Z:function(){return o}});/** 17 * @license lucide-react v0.428.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let o=(0,i(59565).Z)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},43251:function(e,r,i){var o=i(7653);let n=o.forwardRef(function(e,r){let{title:i,titleId:n,...t}=e;return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),i?o.createElement("title",{id:n},i):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"}))});r.Z=n},48408:function(e,r,i){i.d(r,{E:function(){return a},I:function(){return d},a:function(){return l}});var o=i(91628),n=i(71818);let t=o.zo.label.withConfig({displayName:"BaseEmailForm",componentId:"sc-f34af797-0"})(["display:block;position:relative;width:100%;height:56px;&& > :first-child{position:absolute;left:0.75em;top:50%;transform:translate(0,-50%);}&& > input{font-size:16px;line-height:24px;color:var(--privy-color-foreground);padding:12px 88px 12px 52px;flex-grow:1;background:var(--privy-color-background);border:1px solid ",";border-radius:var(--privy-border-radius-md);width:100%;height:100%;@media (min-width:441px){font-size:14px;padding-right:78px;}:focus{outline:none;border-color:",";box-shadow:",";}:autofill,:-webkit-autofill{background:var(--privy-color-background);}&& > input::placeholder{color:var(--privy-color-foreground-3);}&:disabled{opacity:0.4;cursor:not-allowed;}&:disabled,&:disabled:hover,&:disabled > span{color:var(--privy-color-foreground-3);}}&& > button:last-child{right:0px;line-height:24px;padding:13px 17px;:focus{outline:none;}&:disabled{opacity:0.4;cursor:not-allowed;}&:disabled,&:disabled:hover,&:disabled > span{color:var(--privy-color-foreground-3);}}"],({$error:e})=>e?"var(--privy-color-error) !important":"var(--privy-color-foreground-4)",({$error:e})=>e?"var(--privy-color-error) !important":"var(--privy-color-accent-light)",({$error:e})=>e?"none":"0 0 0 1px var(--privy-color-accent-light)"),a=(0,o.zo)(t).withConfig({displayName:"EmailUpdateForm",componentId:"sc-f34af797-1"})(["background-color:var(--privy-color-background);transition:background-color 200ms ease;&& > button{right:0;line-height:24px;position:absolute;padding:13px 17px;background-color:#090;:focus{outline:none;border-color:var(--privy-color-accent);}}"]),l=(0,o.zo)(t).withConfig({displayName:"EmailInputForm",componentId:"sc-f34af797-2"})(["&& > input{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-right:",";border:1px solid ",";&& > input::placeholder{color:var(--privy-color-foreground-3);}}&& > :last-child{right:16px;position:absolute;top:50%;transform:translate(0,-50%);}&& > button:last-child{right:0px;line-height:24px;padding:13px 17px;:focus{outline:none;}}"],e=>e.$stacked?"16px":"88px",({$error:e})=>e?"var(--privy-color-error) !important":"var(--privy-color-foreground-4)"),d=o.zo.div.withConfig({displayName:"InputContainerForm",componentId:"sc-f34af797-3"})(["width:100%;&& > ","{display:block;text-align:left;padding-left:var(--privy-border-radius-md);padding-bottom:5px;}"],n.E)},71818:function(e,r,i){i.d(r,{E:function(){return o}});let o=i(91628).zo.span.withConfig({displayName:"ErrorMessage",componentId:"sc-fcb8cd50-0"})(["text-align:left;font-size:0.75rem;font-weight:500;line-height:1.125rem;color:var(--privy-color-error);"])},47179:function(e,r,i){i.d(r,{B:function(){return n},C:function(){return l},F:function(){return c},H:function(){return a},R:function(){return h},S:function(){return p},a:function(){return s},b:function(){return u},c:function(){return d},d:function(){return g},e:function(){return t}});var o=i(91628);let n=o.zo.div.withConfig({displayName:"BottomPusherContainer",componentId:"sc-cb963810-0"})(["display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;margin-top:auto;gap:16px;flex-grow:100;"]),t=o.zo.div.withConfig({displayName:"CenteredItem",componentId:"sc-cb963810-1"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;flex-grow:1;width:100%;"]),a=o.zo.div.withConfig({displayName:"HorizontallyCenteredItem",componentId:"sc-cb963810-2"})(["display:flex;flex-direction:column;align-items:center;width:100%;"]),l=(0,o.zo)(t).withConfig({displayName:"CenteredItemWithPadding",componentId:"sc-cb963810-3"})(["padding:20px 0;"]),d=(0,o.zo)(t).withConfig({displayName:"CenteredItemWithGap",componentId:"sc-cb963810-4"})(["gap:16px;"]),c=o.zo.div.withConfig({displayName:"FlexContainer",componentId:"sc-cb963810-5"})(["display:flex;flex-direction:column;width:100%;"]),s=o.zo.div.withConfig({displayName:"FixedGappedContainer",componentId:"sc-cb963810-6"})(["display:flex;flex-direction:column;gap:8px;"]),p=o.zo.div.withConfig({displayName:"StyledCalloutSection",componentId:"sc-cb963810-8"})(["display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;text-align:left;gap:8px;padding:16px;margin-top:16px;margin-bottom:16px;width:100%;background:var(--privy-color-background-2);border-radius:var(--privy-border-radius-md);&& h4{color:var(--privy-color-foreground-3);font-size:14px;text-decoration:underline;font-weight:medium;}&& p{color:var(--privy-color-foreground-3);font-size:14px;}"]),u=o.zo.div.withConfig({displayName:"RefactorSpacerTop",componentId:"sc-cb963810-9"})(["height:16px;"]),h=o.zo.div.withConfig({displayName:"RefactorSpacerBottom",componentId:"sc-cb963810-10"}
21)(["height:12px;"]),g=o.zo.div.withConfig({displayName:"ConfigurableSpacer",componentId:"sc-cb963810-12"})(["height:","px;"],e=>e.height??"12")},54037:function(e,r,i){i.d(r,{S:function(){return C}});var o=i(27573),n=i(7653),t=i(91628),a=i(50800),l=i(75593),d=i(29981);let c=t.zo.div.withConfig({displayName:"ScreenRoot",componentId:"sc-2e815abe-0"})(["--screen-space:16px;--screen-space-lg:calc(var(--screen-space) * 1.5);position:relative;overflow:hidden;margin:0 calc(-1 * var(--screen-space));height:100%;border-radius:var(--privy-border-radius-lg);"]),s=t.zo.div.withConfig({displayName:"ScreenRootInner",componentId:"sc-2e815abe-1"})(["display:flex;flex-direction:column;gap:calc(var(--screen-space) * 1.5);width:100%;background:var(--privy-color-background);padding:0 var(--screen-space-lg) var(--screen-space);height:100%;border-radius:var(--privy-border-radius-lg);"]),p=t.zo.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),u=(0,t.zo)(l.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),h=t.zo.div.withConfig({displayName:"BodyContainer",componentId:"sc-2e815abe-4"})(["flex:1 1 auto;display:flex;flex-direction:column;overflow-y:auto;padding:3px;margin:-3px;&::-webkit-scrollbar{display:none;}scrollbar-gutter:stable both-edges;scrollbar-width:none;-ms-overflow-style:none;"," background-repeat:no-repeat;background-size:100% 32px,100% 16px;background-attachment:local,scroll;"],({$colorScheme:e})=>"light"===e?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.06)) bottom;":"dark"===e?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.06)) bottom;":void 0),g=t.zo.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]),f=t.zo.div.withConfig({displayName:"CenteredHeader",componentId:"sc-2e815abe-6"})(["text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--screen-space);"]),m=t.zo.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),v=t.zo.h3.withConfig({displayName:"HeaderTitle",componentId:"sc-2e815abe-8"})(["&&{font-size:20px;line-height:32px;font-weight:500;color:var(--privy-color-foreground);margin:0;}"]),x=t.zo.p.withConfig({displayName:"HeaderSubtitle",componentId:"sc-2e815abe-9"})(["&&{margin:0;font-size:16px;font-weight:300;line-height:24px;color:var(--privy-color-foreground);}"]),y=t.zo.div.withConfig({displayName:"IconContainer",componentId:"sc-2e815abe-10"})(["background:",";border-radius:50%;width:64px;height:64px;display:flex;align-items:center;justify-content:center;"],({$variant:e})=>{switch(e){case"success":return"var(--privy-color-success-bg, #EAFCEF)";case"warning":return"var(--privy-color-warn, #FEF3C7)";case"error":return"var(--privy-color-error-bg, #FEE2E2)";case"loading":case"logo":return"transparent";default:return"var(--privy-color-background-2)"}}),b=t.zo.div.withConfig({displayName:"LogoContainer",componentId:"sc-2e815abe-11"})(["display:flex;align-items:center;justify-content:center;margin-bottom:var(--screen-space);img,svg{max-height:90px;max-width:180px;}"]),w=t.zo.div.withConfig({displayName:"LoadingWithIconContainer",componentId:"sc-2e815abe-12"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:82px;> div{position:relative;}> div > :first-child{position:relative;}> div > :last-child{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);}"]),C=({children:e,...r})=>(0,o.jsx)(c,{children:(0,o.jsx)(s,{...r,children:e})}),k=t.zo.div.withConfig({displayName:"ProgressBarContainer",componentId:"sc-2e815abe-13"})(["position:absolute;top:0;left:calc(-1 * var(--screen-space-lg));width:calc(100% + calc(var(--screen-space-lg) * 2));height:4px;background:var(--privy-color-background-2);border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden;"]),j=(0,t.zo)(l.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),z=t.zo.div.withConfig({displayName:"ProgressBarFill",componentId:"sc-2e815abe-15"}
21)(["height:100%;width:","%;background:var(--privy-color-foreground-3);border-radius:2px;transition:width 300ms ease-in-out;"],({pct:e})=>e),I=({step:e})=>e?(0,o.jsx)(k,{children:(0,o.jsx)(z,{pct:Math.min(100,e.current/e.total*100)})}):null;C.Header=({title:e,subtitle:r,icon:i,iconVariant:n,iconLoadingStatus:t,showBack:a,onBack:l,showInfo:d,onInfo:c,showClose:s,onClose:h,step:g,...y})=>(0,o.jsxs)(p,{...y,children:[(0,o.jsx)(u,{backFn:a?l:void 0,infoFn:d?c:void 0,onClose:s?h:void 0,closeable:s}),(i||n||e||r)&&(0,o.jsxs)(f,{children:[i||n?(0,o.jsx)(C.Icon,{icon:i,variant:n,loadingStatus:t}):null,(0,o.jsxs)(m,{children:[e&&(0,o.jsx)(v,{children:e}),r&&(0,o.jsx)(x,{children:r})]})]}),g&&(0,o.jsx)(I,{step:g})]}),(C.Body=n.forwardRef(({children:e,...r},i)=>(0,o.jsx)(h,{ref:i,...r,children:e}))).displayName="Screen.Body",C.Footer=({children:e,...r})=>(0,o.jsx)(g,{id:"privy-content-footer-container",...r,children:e}),C.Actions=({children:e,...r})=>(0,o.jsx)(N,{...r,children:e}),C.HelpText=({children:e,...r})=>(0,o.jsx)(S,{...r,children:e}),C.Watermark=()=>(0,o.jsx)(j,{}),C.Icon=({icon:e,variant:r="subtle",loadingStatus:i})=>"logo"===r&&e?(0,o.jsx)(b,"string"==typeof e?{children:(0,o.jsx)("img",{src:e,alt:""})}:n.isValidElement(e)?{children:e}:{children:n.createElement(e)}):"loading"===r?e?(0,o.jsx)(w,{children:(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,o.jsx)(a.a4,{success:i?.success,fail:i?.fail}),"string"==typeof e?(0,o.jsx)("span",{style:{background:`url('${e}') 0 0 / contain`,height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):n.isValidElement(e)?n.cloneElement(e,{style:{width:"38px",height:"38px"}}):n.createElement(e,{style:{width:"38px",height:"38px"}})]})}):(0,o.jsx)(y,{$variant:r,children:(0,o.jsx)(d.N,{size:"64px"})}):(0,o.jsx)(y,{$variant:r,children:e&&("string"==typeof e?(0,o.jsx)("img",{src:e,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):n.isValidElement(e)?e:n.createElement(e,{width:32,height:32,stroke:(()=>{switch(r){case"success":return"var(--privy-color-icon-success)";case"warning":return"var(--privy-color-icon-warning)";case"error":return"var(--privy-color-icon-error)";default:return"var(--privy-color-icon-muted)"}})(),strokeWidth:2}))});let N=t.zo.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),S=t.zo.p.withConfig({displayName:"HelpTextContainer",componentId:"sc-2e815abe-17"})(["&&{margin:0;width:100%;text-align:center;color:var(--privy-color-foreground-3);font-size:14px;line-height:22px;& a{color:var(--privy-color-accent);}}"])},68150:function(e,r,i){i.d(r,{S:function(){return a}});var o=i(27573),n=i(81781),t=i(54037);let a=({primaryCta:e,secondaryCta:r,helpText:i,watermark:a=!0,children:l,...d})=>{let c=e||r?(0,o.jsxs)(o.Fragment,{children:[e&&(()=>{let{label:r,...i}=e,t=i.variant||"primary";return(0,o.jsx)(n.B,{...i,variant:t,style:{width:"100%",...i.style},children:r})})(),r&&(()=>{let{label:e,...i}=r,t=i.variant||"secondary";return(0,o.jsx)(n.B,{...i,variant:t,style:{width:"100%",...i.style},children:e})})()]}):null;return(0,o.jsxs)(t.S,{id:d.id,className:d.className,children:[(0,o.jsx)(t.S.Header,{...d}),l?(0,o.jsx)(t.S.Body,{children:l}):null,i||c||a?(0,o.jsxs)(t.S.Footer,{children:[i?(0,o.jsx)(t.S.HelpText,{children:i}):null,c?(0,o.jsx)(t.S.Actions,{children:c}):null,a?(0,o.jsx)(t.S.Watermark,{}):null]}):null]})}},31518:function(e,r,i){i.r(r),i.d(r,{UpdateEmailScreen:function(){return w},UpdateEmailScreenView:function(){return b},default:function(){return w}});var o=i(27573),n=i(43251),t=i(47179),a=i(74678),l=i(7653),d=i(31796),c=i(80223),s=i(88089),p=i(36170),u=i(50800),h=i(81781),g=i(48408),f=i(71818),m=i(68150);i(69021),i(97347),i(26996),i(7220),i(61899);let v=(0,l.forwardRef)((e,r)=>{let[i,n]=(0,l.useState)(""),[t,g]=(0,l.useState)(""),[m,v]=(0,l.useState)(!1),{authenticated:b,user:w}=(0,p.u)(),{initUpdateEmail:C}=(0,s.u)(),{navigate:k,setModalData:j,currentScreen:z}=(0,p.a)(),{enabled:I,token:N}=(0,c.a)(),S=(0,d.u)(),E=(0,u.a1)(i)&&(S.disablePlusEmails&&i.includes("+")?(t||g("Please enter a valid email address without a '+'."),!1):(t&&g(""),!0)),F=m||!E,B=()=>{!I||N||b?(async e=>{if(!w?.email)throw Error("User is required to have an email address to update it.");v(!0);try{await C({oldAddress:w.email.address,newAddress:i,captchaToken:e}),k("AwaitingPasswordlessCodeScreen")}
21catch(e){j({errorModalData:{error:e,previousScreen:z||"LandingScreen"}}),k("ErrorScreen")}v(!1)})(N):(j({captchaModalData:{callback:e=>{if(!w?.email)throw Error("User is required to have an email address to update it.");return C({oldAddress:w.email.address,newAddress:i,captchaToken:e})},userIntentRequired:!1,onSuccessNavigateTo:"AwaitingPasswordlessCodeScreen",onErrorNavigateTo:"ErrorScreen"}}),k("CaptchaScreen"))};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(x,{children:[t&&(0,o.jsx)(f.E,{style:{marginTop:"0.25rem",textAlign:"left"},children:t}),(0,o.jsxs)(y,{$error:!!t,children:[(0,o.jsx)(u.V,{children:(0,o.jsx)(a.Z,{})}),(0,o.jsx)("input",{ref:r,id:"email-input",type:"email",placeholder:"[email protected]",onChange:e=>n(e.target.value),onKeyUp:e=>{"Enter"===e.key&&B()},value:i,autoComplete:"email"}),e.stacked?null:(0,o.jsx)(h.E,{isSubmitting:m,onClick:B,disabled:F,children:"Submit"})]})]}),e.stacked?(0,o.jsx)(h.P,{loadingText:null,loading:m,disabled:F,onClick:B,style:{width:"100%"},children:"Submit"}):null]})}),x=g.I,y=g.E,b=({title:e="Update your email",subtitle:r="Add the email address you'd like to use going forward. We'll send you a confirmation code"})=>(0,o.jsx)(m.S,{title:e,subtitle:r,icon:n.Z,watermark:!0,children:(0,o.jsx)(t.B,{children:(0,o.jsx)(v,{stacked:!0})})}),w={component:()=>(0,o.jsx)(b,{})}},29981:function(e,r,i){i.d(r,{N:function(){return t}});var o=i(27573),n=i(91628);let t=({size:e,centerIcon:r})=>(0,o.jsx)(a,{$size:e,children:(0,o.jsxs)(l,{children:[(0,o.jsx)(c,{}),(0,o.jsx)(s,{}),r?(0,o.jsx)(d,{children:r}):null]})}),a=n.zo.div.withConfig({displayName:"LoadingContainer",componentId:"sc-ebc93df8-0"})(["--spinner-size:",";display:inline-flex;justify-content:center;align-items:center;@media all and (display-mode:standalone){margin-bottom:30px;}"],e=>e.$size?e.$size:"96px"),l=n.zo.div.withConfig({displayName:"SpinnerContainer",componentId:"sc-ebc93df8-1"})(["position:relative;height:var(--spinner-size);width:var(--spinner-size);opacity:1;animation:fadein 200ms ease;"]),d=n.zo.div.withConfig({displayName:"CenterIconContainer",componentId:"sc-ebc93df8-2"})(["position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;svg,img{width:calc(var(--spinner-size) * 0.4);height:calc(var(--spinner-size) * 0.4);border-radius:var(--privy-border-radius-full);}"]),c=n.zo.div.withConfig({displayName:"CircleFixed",componentId:"sc-ebc93df8-3"})(["position:absolute;top:0;right:0;bottom:0;left:0;width:var(--spinner-size);height:var(--spinner-size);&&{border:4px solid var(--privy-color-border-default);border-radius:50%;}"]),s=n.zo.div.withConfig({displayName:"CircleRotate",componentId:"sc-ebc93df8-4"})(["position:absolute;top:0;right:0;bottom:0;left:0;width:var(--spinner-size);height:var(--spinner-size);animation:spin 1200ms linear infinite;&&{border:4px solid;border-color:var(--privy-color-icon-subtle) transparent transparent transparent;border-radius:50%;}@keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}"])}}]);
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.