PageSourceSearch

https://smtm.ai/_next/static/chunks/8703.0d1d755616d26ccc.js

js smtm.ai collected 2026-10-05 15:10:39 UTC 14,643 bytes, 21 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8703],{59565:function(e,r,t){t.d(r,{Z:function(){return s}});var n=t(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 i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter((e,r,t)=>!!e&&t.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 o={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,n.forwardRef)((e,r)=>{let{color:t="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:c="",children:d,iconNode:p,...u}=e;return(0,n.createElement)("svg",{ref:r,...o,width:i,height:i,stroke:t,strokeWidth:s?24*Number(l)/Number(i):l,className:a("lucide",c),...u},[...p.map(e=>{let[r,t]=e;return(0,n.createElement)(r,t)}),...Array.isArray(d)?d:[d]])}),s=(e,r)=>{let t=(0,n.forwardRef)((t,o)=>{let{className:s,...c}=t;return(0,n.createElement)(l,{ref:o,iconNode:r,className:a("lucide-".concat(i(e)),s),...c})});return t.displayName="".concat(e),t}},75530:function(e,r,t){t.d(r,{Z:function(){return n}});/**
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 n=(0,t(59565).Z)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},8703:function(e,r,t){t.r(r),t.d(r,{EmbeddedWalletOnAccountCreateScreen:function(){return h},EmbeddedWalletOnAccountCreateView:function(){return u},default:function(){return h}});var n=t(27573),i=t(75530),a=t(7653),o=t(31796),l=t(80223),s=t(88089),c=t(2261),d=t(36170),p=t(68150);t(69021),t(97347),t(26996),t(7220),t(61899);let u=({errorMessage:e,onClose:r})=>(0,n.jsx)(p.S,e?{title:"Something went wrong",subtitle:e,icon:i.Z,iconVariant:"error",primaryCta:{label:"Close",onClick:r},watermark:!0}:{title:"Creating your wallet",subtitle:"Please wait...",iconVariant:"loading",watermark:!1}),h={component:()=>{let{setModalData:e,navigate:r,data:t,onUserCloseViaDialogOrKeybindRef:i}=(0,d.a)(),p=(0,o.u)(),[h,g]=(0,a.useState)(""),{embeddedWallets:m}=(0,o.u)(),{authenticated:v,user:f}=(0,d.u)(),{closePrivyModal:y,walletProxy:x,client:b}=(0,s.u)(),{onSuccess:w,onFailure:C,callAuthOnSuccessOnClose:j,shouldCreateEth:k,shouldCreateSol:z}=t.createWallet,S="legacy-embedded-wallets-only"===p.embeddedWallets.mode&&!0===p?.embeddedWallets.requireUserOwnedRecoveryOnCreate,[I,N]=(0,a.useState)(null),{create:E}=(0,c.u)(),A=k??(!!f&&(0,l.s)(f,p.embeddedWallets.ethereum.createOnLogin)),W=z??(!!f&&(0,l.k)(f,p.embeddedWallets.solana.createOnLogin)),F=new l.R(async()=>{let e=await b.getAccessToken();if(f&&e&&x)try{let e;if(A&&W)e=await E({chainType:"ethereum",walletIndex:0,latestUser:f}),e=await E({chainType:"solana",walletIndex:0,latestUser:e.user});else if(W)e=await E({chainType:"solana",walletIndex:0,latestUser:f});else{if(!A)return void y({shouldCallAuthOnSuccess:j});e=await E({chainType:"ethereum",walletIndex:0,latestUser:f})}N(e),r("EmbeddedWalletCreatedScreen")}catch(e){g(e.message)}});return(0,a.useEffect)(()=>v&&f?S?(e({...t,createWallet:{...t.createWallet,shouldCreateEth:A,shouldCreateSol:W},recoverySelection:{...t?.recoverySelection,isInAccountCreateFlow:!0,shouldCreateEth:A,shouldCreateSol:W}}),r((0,l.E)({walletAction:"create",showAutomaticRecovery:!1,availableRecoveryMethods:m.userOwnedRecoveryOptions,legacySetWalletPasswordFlow:!1,isResettingPassword:!1}))):void F.execute():(r("LandingScreen"),void C(Error("User must be authenticated before creating a Privy wallet"))),[S,v]),i.current=()=>null,(0,n.jsx)(u,{errorMessage:h||void 0,onClose:()=>{I?(w(I),y({shouldCallAuthOnSuccess:j})):(C(new s.m("User wallet creation failed")),y({shouldCallAuthOnSuccess:!1}))}})}}},54037:function(e,r,t){t.d(r,{S:function(){return C}});var n=t(27573),i=t(7653),a=t(91628),o=t(50800),l=t(75593),s=t(29981);let c=a.zo.div.withConfig({displayName:"ScreenRoot",componentId:"sc-2e815abe-0"})(["--screen-space:16px;
21--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=a.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=a.zo.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),u=(0,a.zo)(l.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),h=a.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=a.zo.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]),m=a.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=a.zo.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),f=a.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=a.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=a.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=a.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=a.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,n.jsx)(c,{children:(0,n.jsx)(d,{...r,children:e})}),j=a.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,a.zo)(l.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),z=a.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),S=({step:e})=>e?(0,n.jsx)(j,{children:(0,n.jsx)(z,{pct:Math.min(100,e.current/e.total*100)})}):null;C.Header=({title:e,subtitle:r,icon:t,iconVariant:i,iconLoadingStatus:a,showBack:o,onBack:l,showInfo:s,onInfo:c,showClose:d,onClose:h,step:g,...x})=>(0,n.jsxs)(p,{...x,children:[(0,n.jsx)(u,{backFn:o?l:void 0,infoFn:s?c:void 0,onClose:d?h:void 0,closeable:d}),(t||i||e||r)&&(0,n.jsxs)(m,{children:[t||i?(0,n.jsx)(C.Icon,{icon:t,variant:i,loadingStatus:a}):null,(0,n.jsxs)(v,{children:[e&&(0,n.jsx)(f,{children:e}),r&&(0,n.jsx)(y,{children:r})]})]}),g&&(0,n.jsx)(S,{step:g})]}),(C.Body=i.forwardRef(({children:e,...r},t)=>(0,n.jsx)(h,{ref:t,...r,children:e}))).displayName="Screen.Body",C.Footer=({children:e,...r})=>(0,n.jsx)(g,{id:"privy-content-footer-container",...r,children:e}),C.Actions=({children:e,...r})=>(0,n.jsx)(I,{...r,children:e}),C.HelpText=({children:e,...r})=>(0,n.jsx)(N,{...r,children:e}),C.Watermark=()=>(0,n.jsx)(k,{}),C.Icon=({icon:e,variant:r="subtle",loadingStatus:t})=>"logo"===r&&e?(0,n.jsx)(b,"string"==typeof e?{children:(0,n.jsx)("img",{src:e,alt:""})}:i.isValidElement(e)?{children:e}:{children:i.createElement(e)}):"loading"===r?e?(0,n.jsx)(w,{children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,n.jsx)(o.a4,{success:t?.success,fail:t?.fail}),"string"==typeof e?(0,n.jsx)("span",{style:{background:`url('${e}') 0 0 / contain`,height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):i.isValidElement(e)?i.cloneElement(e,{style:{width:"38px",height:"38px"}}):i.createElement(e,{style:{width:"38px",height:"38px"}})]})}):(0,n.jsx)(x,{$variant:r,children:(0,n.jsx)(s.N,{size:"64px"})}):(0,n.jsx)(x,{$variant:r,children:e&&("string"==typeof e?(0,n.jsx)("img",{src:e,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):i.isValidElement(e)?e:i.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 I=a.zo.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),N=a.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,t){t.d(r,{S:function(){return o}});var n=t(27573),i=t(81781),a=t(54037);let o=({primaryCta:e,secondaryCta:r,helpText:t,watermark:o=!0,children:l,...s})=>{let c=e||r?(0,n.jsxs)(n.Fragment,{children:[e&&(()=>{let{label:r,...t}=e,a=t.variant||"primary";return(0,n.jsx)(i.B,{...t,variant:a,style:{width:"100%",...t.style},children:r})})(),r&&(()=>{let{label:e,...t}=r,a=t.variant||"secondary";return(0,n.jsx)(i.B,{...t,variant:a,style:{width:"100%",...t.style},children:e})})()]}):null;return(0,n.jsxs)(a.S,{id:s.id,className:s.className,children:[(0,n.jsx)(a.S.Header,{...s}),l?(0,n.jsx)(a.S.Body,{children:l}):null,t||c||o?(0,n.jsxs)(a.S.Footer,{children:[t?(0,n.jsx)(a.S.HelpText,{children:t}):null,c?(0,n.jsx)(a.S.Actions,{children:c}):null,o?(0,n.jsx)(a.S.Watermark,{}):null]}):null]})}},29981:function(e,r,t){t.d(r,{N:function(){return a}});var n=t(27573),i=t(91628);let a=({size:e,centerIcon:r})=>(0,n.jsx)(o,{$size:e,children:(0,n.jsxs)(l,{children:[(0,n.jsx)(c,{}),(0,n.jsx)(d,{}),r?(0,n.jsx)(s,{children:r}):null]})}),o=i.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=i.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;"]),s=i.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=i.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=i.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);}}"])},2261:function(e,r,t){t.d(r,{u:function(){return o}});var n=t(63002),i=t(31796),a=t(88089);let o=()=>{let{walletProxy:e,recoverEmbeddedWallet:r,setUser:t,refreshSessionAndUser:o,privy:l,client:s}=(0,a.u)(),c=(0,i.u)();return{create:async({walletIndex:i,chainType:a,latestUser:d,recoveryMethod:p,recoveryPassword:u,recoveryAccessToken:h})=>{let g=d;g||(g=await o());let m=await s.getAccessToken();if(!g||!m||!e)throw Error("User must be authenticated before creating a Privy wallet");return await (0,n.k)({appConfig:c,user:g,refreshSessionAndUser:o,privy:l,accessToken:m,proxy:e,recoverEmbeddedWallet:r,setUser:t,walletIndex:i,chainType:a,recoveryMethod:p,recoveryPassword:u,recoveryAccessToken:h})}}}}}]);

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.