PageSourceSearch

https://smtm.ai/_next/static/chunks/6086.6af13d6105015c18.js

js smtm.ai collected 2026-10-05 15:08:44 UTC 12,633 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6086],{46086:function(e,r,n){n.r(r),n.d(r,{CrossAppAuthScreen:function(){return h},CrossAppAuthScreenView:function(){return u},default:function(){return h}});var i=n(27573),t=n(7653),o=n(31796),a=n(80223),s=n(88089),c=n(36170),l=n(50800),d=n(3538),p=n(68150);n(69021),n(97347),n(26996),n(7220),n(61899);let u=({providerApp:e,success:r,error:n,onClose:o})=>{let{title:a,subtitle:s}=(0,t.useMemo)(()=>r?{title:`Successfully connected with ${e.name}`,subtitle:"You're good to go!"}:n?{title:"Authentication failed",subtitle:n.message}:{title:`Connecting to ${e.name}`,subtitle:`Please check the pop-up from ${e.name} to continue`},[r,n,e.name]);return(0,i.jsx)(p.S,{title:a,subtitle:s,icon:e.logoUrl,iconVariant:"loading",iconLoadingStatus:{success:r,fail:!!n},onBack:o,watermark:!0})},h={component:()=>{let e=(0,o.u)(),{data:r,navigate:n,setModalData:p,onUserCloseViaDialogOrKeybindRef:h}=(0,c.a)(),{crossAppAuthFlow:g,updateWallets:m,closePrivyModal:f,createAnalyticsEvent:v}=(0,s.u)(),{logout:y}=(0,l.z)(),[x,b]=(0,t.useState)({}),w=r?.crossAppAuth,C=new s.a(`There was an issue connecting your ${w?.name} account. Please try again.`),j=new a.R(async e=>{if(w?.popup)try{let r=await g({appId:e,popup:w.popup,action:w.action});b({data:r})}catch(e){if(e instanceof s.a)b({error:e});else if(e instanceof s.e){if(e.privyErrorCode===s.b.ACCOUNT_TRANSFER_REQUIRED&&e.data?.data?.nonce)return p({accountTransfer:{nonce:e.data?.data?.nonce,account:e.data?.data?.subject,displayName:e.data?.data?.account?.displayName,linkMethod:`privy:${w.appId}`,embeddedWalletAddress:e.data?.data?.otherUser?.embeddedWalletAddress,oAuthUserInfo:e.data?.data?.otherUser?.oAuthUserInfo}}),void n("LinkConflictScreen");w.popup&&w.popup.close(),b({error:C})}else b({error:C})}else b({error:C})}),I=()=>{x.data&&(m(),w?.onSuccess(x.data),f({shouldCallAuthOnSuccess:!0,isSuccess:!0})),w?.onError(x.error??new s.a("User canceled flow")),f({shouldCallAuthOnSuccess:!1,isSuccess:!1})};return h.current=I,(0,t.useEffect)(()=>{w?.appId?.length&&j.execute(w.appId)},[w?.appId]),(0,t.useEffect)(()=>{if(!x.data)return;let r=x.data;if(e.legal.requireUsersAcceptTerms&&!r.hasAcceptedTerms){let e=setTimeout(()=>{n("AffirmativeConsentScreen")},o.q);return()=>clearTimeout(e)}if((0,d.s)(r,e.embeddedWallets)){let e=setTimeout(()=>{p({createWallet:{onSuccess:()=>{},onFailure:e=>{console.error(e),v({eventName:"embedded_wallet_creation_failure_logout",payload:{error:e,provider:`privy:${w?.appId}`,screen:"CrossAppAuthScreen"}}),y()},callAuthOnSuccessOnClose:!0}}),n("EmbeddedWalletOnAccountCreateScreen")},o.q);return()=>clearTimeout(e)}let i=setTimeout(I,o.q);return()=>clearTimeout(i)},[x.data]),w?.appId?(0,i.jsx)(u,{providerApp:{id:w?.appId,logoUrl:w?.logoUrl,name:w?.name},success:!!x.data,error:x.error,onClose:I}):(console.warn("Missing data for Screen"),null)},isShownBeforeReady:!0}},54037:function(e,r,n){n.d(r,{S:function(){return C}});var i=n(27573),t=n(7653),o=n(91628),a=n(50800),s=n(75593),c=n(29981);let l=o.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=o.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=o.zo.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),u=(0,o.zo)(s.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),h=o.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=o.zo.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]),m=o.zo.div.withConfig({displayName:"CenteredHeader",componentId:"sc-2e815abe-6"})(["text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--screen-space);"]),f=o.zo.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),v=o.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=o.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=o.zo.div.withConfig({displayName:"IconContainer",componentId:"sc-2e815abe-10"})(["background:",";border-radius:50%;width:64px;
1height: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=o.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=o.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,i.jsx)(l,{children:(0,i.jsx)(d,{...r,children:e})}),j=o.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;"]),I=(0,o.zo)(s.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),z=o.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),S=({step:e})=>e?(0,i.jsx)(j,{children:(0,i.jsx)(z,{pct:Math.min(100,e.current/e.total*100)})}):null;C.Header=({title:e,subtitle:r,icon:n,iconVariant:t,iconLoadingStatus:o,showBack:a,onBack:s,showInfo:c,onInfo:l,showClose:d,onClose:h,step:g,...x})=>(0,i.jsxs)(p,{...x,children:[(0,i.jsx)(u,{backFn:a?s:void 0,infoFn:c?l:void 0,onClose:d?h:void 0,closeable:d}),(n||t||e||r)&&(0,i.jsxs)(m,{children:[n||t?(0,i.jsx)(C.Icon,{icon:n,variant:t,loadingStatus:o}):null,(0,i.jsxs)(f,{children:[e&&(0,i.jsx)(v,{children:e}),r&&(0,i.jsx)(y,{children:r})]})]}),g&&(0,i.jsx)(S,{step:g})]}),(C.Body=t.forwardRef(({children:e,...r},n)=>(0,i.jsx)(h,{ref:n,...r,children:e}))).displayName="Screen.Body",C.Footer=({children:e,...r})=>(0,i.jsx)(g,{id:"privy-content-footer-container",...r,children:e}),C.Actions=({children:e,...r})=>(0,i.jsx)(k,{...r,children:e}),C.HelpText=({children:e,...r})=>(0,i.jsx)(N,{...r,children:e}),C.Watermark=()=>(0,i.jsx)(I,{}),C.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:""})}:t.isValidElement(e)?{children:e}:{children:t.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"}}):t.isValidElement(e)?t.cloneElement(e,{style:{width:"38px",height:"38px"}}):t.createElement(e,{style:{width:"38px",height:"38px"}})]})}):(0,i.jsx)(x,{$variant:r,children:(0,i.jsx)(c.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"}}
1):t.isValidElement(e)?e:t.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 k=o.zo.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),N=o.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,n){n.d(r,{S:function(){return a}});var i=n(27573),t=n(81781),o=n(54037);let a=({primaryCta:e,secondaryCta:r,helpText:n,watermark:a=!0,children:s,...c})=>{let l=e||r?(0,i.jsxs)(i.Fragment,{children:[e&&(()=>{let{label:r,...n}=e,o=n.variant||"primary";return(0,i.jsx)(t.B,{...n,variant:o,style:{width:"100%",...n.style},children:r})})(),r&&(()=>{let{label:e,...n}=r,o=n.variant||"secondary";return(0,i.jsx)(t.B,{...n,variant:o,style:{width:"100%",...n.style},children:e})})()]}):null;return(0,i.jsxs)(o.S,{id:c.id,className:c.className,children:[(0,i.jsx)(o.S.Header,{...c}),s?(0,i.jsx)(o.S.Body,{children:s}):null,n||l||a?(0,i.jsxs)(o.S.Footer,{children:[n?(0,i.jsx)(o.S.HelpText,{children:n}):null,l?(0,i.jsx)(o.S.Actions,{children:l}):null,a?(0,i.jsx)(o.S.Watermark,{}):null]}):null]})}},29981:function(e,r,n){n.d(r,{N:function(){return o}});var i=n(27573),t=n(91628);let o=({size:e,centerIcon:r})=>(0,i.jsx)(a,{$size:e,children:(0,i.jsxs)(s,{children:[(0,i.jsx)(l,{}),(0,i.jsx)(d,{}),r?(0,i.jsx)(c,{children:r}):null]})}),a=t.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=t.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;"]),c=t.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);}"]),l=t.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=t.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);}}"])},3538:function(e,r,n){n.d(r,{s:function(){return t}});var i=n(80223);let t=(e,r)=>(0,i.s)(e,r.ethereum.createOnLogin)||(0,i.k)(e,r.solana.createOnLogin)}}]);

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.