PageSourceSearch

https://playmate-dev.vercel.app/_next/static/chunks/993.7e1b786680af127a.js

js playmate-dev.vercel.app collected 2026-10-03 07:30:36 UTC 15,125 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[993],{66761:function(e,r,n){n.d(r,{C:function(){return a}});var i=n(75256),o=n(11741),t=n(76633);let a=({children:e,color:r,isLoading:n,isPulsing:o,...t})=>(0,i.jsx)(s,{$color:r,$isLoading:n,$isPulsing:o,...t,children:e}),s=o.zo.span.withConfig({displayName:"StyledSpan",componentId:"sc-80725f4-0"})(["padding:0.25rem;font-size:0.75rem;font-weight:500;line-height:1rem;border-radius:var(--privy-border-radius-xs);display:flex;align-items:center;"," ",""],e=>{let r,n;"green"===e.$color&&(r="var(--privy-color-success-dark)",n="var(--privy-color-success-light)"),"red"===e.$color&&(r="var(--privy-color-error)",n="var(--privy-color-error-light)"),"gray"===e.$color&&(r="var(--privy-color-foreground-2)",n="var(--privy-color-background-2)");let i=(0,o.F4)(["from,to{background-color:",";}50%{background-color:rgba(",",0.8);}"],n,n);return(0,o.iv)(["color:",";background-color:",";",";"],r,n,e.$isPulsing&&(0,o.iv)(["animation:"," 3s linear infinite;"],i))},t.L)},76633:function(e,r,n){n.d(r,{L:function(){return t}});var i=n(11741);let o=(0,i.F4)(["from,to{background:var(--privy-color-foreground-4);color:var(--privy-color-foreground-4);}50%{background:var(--privy-color-foreground-accent);color:var(--privy-color-foreground-accent);}"]),t=(0,i.iv)(["",""],e=>e.$isLoading?(0,i.iv)(["width:35%;animation:"," 2s linear infinite;border-radius:var(--privy-border-radius-sm);"],o):"")},16770:function(e,r,n){n.r(r),n.d(r,{MfaAuthEnrollmentFlowScreen:function(){return g},default:function(){return g}});var i=n(75256),o=n(31286),t=n(79073),a=n(23192),s=n(1643),l=n(60939),c=n(18213),d=n(91746),p=n(59562),u=n(77065),h=n(96553);n(19078),n(34627),n(14167),n(64336),n(30581),n(32681);let g={component:()=>{let{user:e,ready:r}=(0,p.u)(),{data:n,onUserCloseViaDialogOrKeybindRef:g}=(0,p.a)(),m=(0,d.u)(),[v,f]=(0,a.useState)(null),[y,x]=(0,a.useState)(null),[b,w]=(0,a.useState)(null),[j,C]=(0,a.useState)(!1),[k,z]=(0,a.useState)(!1),[I,S]=(0,a.useState)(),N=async()=>{I?F(I):e?await M({user:e}):F(Error("Must be logged in to manage MFA")),setTimeout(()=>{f(null),x(null)},500)};if(g.current=N,!n?.mfaEnroll)throw Error("Missing modal data for MFA enrollment screen.");let{onFailure:F,onSuccess:M,onBack:E,mfaMethods:B,verify:$,generateTotpSecret:R,enrollTotp:T,unenrollTotp:A,enrollPasskey:L}=n.mfaEnroll,P=e?.mfaMethods.includes("sms"),H=e?.mfaMethods.includes("totp"),W=e?.mfaMethods.includes("passkey"),U=!!e?.phone,V=e?.linkedAccounts.filter(e=>"passkey"===e.type).map(e=>e.credentialId)??[];function _(){f(null),x(null),S(void 0)}async function Z(e=V){try{S(void 0),z(!0);let r=await L(e);return await M({user:r})}catch(e){S(e)}finally{z(!1),C(!1)}}if(!r||!e||!m)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.M,{onClose:N,backFn:E},"header"),(0,i.jsx)(h.A,{children:(0,i.jsx)(u.M,{})}),(0,i.jsx)(h.C,{children:(0,i.jsx)(l.L,{})}),(0,i.jsx)(c.a,{})]});if("sms"===v)return null;if("totp"===v)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.M,{backFn:_,onClose:N},"header"),(0,i.jsx)(h.I,{style:{marginBottom:"1.5rem"},children:(0,i.jsx)(o.Z,{})}),(0,i.jsx)(h.T,{children:"Remove authenticator app verification?"}),(0,i.jsxs)(h.S,{children:["MFA adds an extra layer of security to your ",m?.name," account. Make sure you have other methods to secure your account."]}),(0,i.jsx)(h.B,{children:(0,i.jsx)(s.P,{$warn:!0,onClick:async function(){try{S(void 0),z(!0);let e=await A();return await M({user:e})}catch(e){S(e)}finally{z(!1),f(null)}},loading:k,children:"Remove"})}),(0,i.jsx)(c.a,{})]});if("passkey"===v){let e=n.mfaEnroll.shouldUnlinkOnUnenrollMfa??!0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.M,{backFn:_,onClose:N},"header"),(0,i.jsx)(h.I,{style:{marginBottom:"1.5rem"},children:(0,i.jsx)(o.Z,{})}),(0,i.jsx)(h.T,{children:"Are you sure you want to remove this passkey?"}),(0,i.jsx)(h.S,{children:e?"Removing your passkey will remove as both a verification method and a login method.":"Removing your passkey will remove as a verification method."}),(0,i.jsx)(h.B,{children:(0,i.jsx)(s.P,{$warn:!0,onClick:async function(){try{S(void 0),z(!0);let e=await L([]);return await M({user:e})}catch(e){S(e)}finally{z(!1),f(null)}},loading:k,children:"Remove"})}),(0,i.jsx)(c.a,{})]})}return 0!==B.length||P||H||W?"sms"===y?null:"totp"===y&&b?(0,i.jsx)(u.E,{onClose:N,onReset:_,submitEnrollmentWithTotp:e=>(async function(e){try{S(void 0),z(!0);let r=await T(e);return await M({user:r})}catch(e){S(e)}finally{z(!1),f(null)}})(e.mfaCode),error:I,totpInfo:{...b,appName:m?.name||"Privy"}}):"passkey"===y?(0,i.jsx)(u.a,{onReset:_,onClose:N,submitEnrollmentWithPasskey:Z}):(0,i.jsx)(u.b,{showIntro:!0,userMfaMethods:e.mfaMethods,appMfaMethods:m.mfa.methods,userHasAuthSms:U,backFn:E,handleSelectMethod:async function(e){
1S(void 0);try{await $()}catch(e){return void S(e)}return"totp"===e?(x(e),w(null),void R().then(({totpSecret:e,totpAuthUrl:r})=>{w({authUrl:r,secret:e})}).catch(()=>{w(null),_()})):"passkey"===e&&1===V.length?await Z():void x(e)},isTotpLoading:"totp"===y&&!b,isPasskeyLoading:j,error:I,onClose:N,setRemovingMfaMethod:async function(e){S(void 0);try{await $()}catch(e){return void S(e)}f(e)}}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.M,{onClose:N,backFn:E},"header"),(0,i.jsx)(h.I,{style:{marginBottom:"1.5rem"},children:(0,i.jsx)(t.Z,{})}),(0,i.jsx)(h.T,{children:"Add more security"}),(0,i.jsxs)(h.S,{children:[m?.name," does not have any verification methods enabled."]}),(0,i.jsx)(h.B,{children:(0,i.jsx)(s.P,{onClick:N,children:"Close"})}),(0,i.jsx)(c.a,{})]})}}},60984:function(e,r,n){n.d(r,{S:function(){return j}});var i=n(75256),o=n(23192),t=n(11741),a=n(60939),s=n(18213),l=n(87742);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);"]),d=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)(s.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);"]),m=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);"]),v=t.zo.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),f=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;}"]),y=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);}"]),x=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;
1left:50%;top:50%;transform:translate(-50%,-50%);}"]),j=({children:e,...r})=>(0,i.jsx)(c,{children:(0,i.jsx)(d,{...r,children:e})}),C=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;"]),k=(0,t.zo)(s.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"})(["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,i.jsx)(C,{children:(0,i.jsx)(z,{pct:Math.min(100,e.current/e.total*100)})}):null;j.Header=({title:e,subtitle:r,icon:n,iconVariant:o,iconLoadingStatus:t,showBack:a,onBack:s,showInfo:l,onInfo:c,showClose:d,onClose:h,step:g,...x})=>(0,i.jsxs)(p,{...x,children:[(0,i.jsx)(u,{backFn:a?s:void 0,infoFn:l?c:void 0,onClose:d?h:void 0,closeable:d}),(n||o||e||r)&&(0,i.jsxs)(m,{children:[n||o?(0,i.jsx)(j.Icon,{icon:n,variant:o,loadingStatus:t}):null,(0,i.jsxs)(v,{children:[e&&(0,i.jsx)(f,{children:e}),r&&(0,i.jsx)(y,{children:r})]})]}),g&&(0,i.jsx)(I,{step:g})]}),(j.Body=o.forwardRef(({children:e,...r},n)=>(0,i.jsx)(h,{ref:n,...r,children:e}))).displayName="Screen.Body",j.Footer=({children:e,...r})=>(0,i.jsx)(g,{id:"privy-content-footer-container",...r,children:e}),j.Actions=({children:e,...r})=>(0,i.jsx)(S,{...r,children:e}),j.HelpText=({children:e,...r})=>(0,i.jsx)(N,{...r,children:e}),j.Watermark=()=>(0,i.jsx)(k,{}),j.Icon=({icon:e,variant:r="subtle",loadingStatus:n})=>"logo"===r&&e?(0,i.jsx)(b,"string"==typeof e?{children:(0,i.jsx)("img",{src:e,alt:""})}:o.isValidElement(e)?{children:e}:{children:o.createElement(e)}):"loading"===r?e?(0,i.jsx)(w,{children:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,i.jsx)(a.a4,{success:n?.success,fail:n?.fail}),"string"==typeof e?(0,i.jsx)("span",{style:{background:`url('${e}') 0 0 / contain`,height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):o.isValidElement(e)?o.cloneElement(e,{style:{width:"38px",height:"38px"}}):o.createElement(e,{style:{width:"38px",height:"38px"}})]})}):(0,i.jsx)(x,{$variant:r,children:(0,i.jsx)(l.N,{size:"64px"})}):(0,i.jsx)(x,{$variant:r,children:e&&("string"==typeof e?(0,i.jsx)("img",{src:e,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):o.isValidElement(e)?e:o.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 S=t.zo.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),N=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);}}"])},35714:function(e,r,n){n.d(r,{S:function(){return a}});var i=n(75256),o=n(1643),t=n(60984);let a=({primaryCta:e,secondaryCta:r,helpText:n,watermark:a=!0,children:s,...l})=>{let c=e||r?(0,i.jsxs)(i.Fragment,{children:[e&&(()=>{let{label:r,...n}=e,t=n.variant||"primary";return(0,i.jsx)(o.B,{...n,variant:t,style:{width:"100%",...n.style},children:r})})(),r&&(()=>{let{label:e,...n}=r,t=n.variant||"secondary";return(0,i.jsx)(o.B,{...n,variant:t,style:{width:"100%",...n.style},children:e})})()]}):null;return(0,i.jsxs)(t.S,{id:l.id,className:l.className,children:[(0,i.jsx)(t.S.Header,{...l}),s?(0,i.jsx)(t.S.Body,{children:s}):null,n||c||a?(0,i.jsxs)(t.S.Footer,{children:[n?(0,i.jsx)(t.S.HelpText,{children:n}):null,c?(0,i.jsx)(t.S.Actions,{children:c}):null,a?(0,i.jsx)(t.S.Watermark,{}):null]}):null]})}},87742:function(e,r,n){n.d(r,{N:function(){return t}});
1var i=n(75256),o=n(11741);let t=({size:e,centerIcon:r})=>(0,i.jsx)(a,{$size:e,children:(0,i.jsxs)(s,{children:[(0,i.jsx)(c,{}),(0,i.jsx)(d,{}),r?(0,i.jsx)(l,{children:r}):null]})}),a=o.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"),s=o.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;"]),l=o.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=o.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%;}"]),d=o.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.