PageSourceSearch

https://smtm.ai/_next/static/chunks/3838.b3206175aa9c6745.js

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

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3838],{10224:function(e,n,t){var r=t(7653);let o=r.forwardRef(function(e,n){let{title:t,titleId:o,...i}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":o},i),t?r.createElement("title",{id:o},t):null,r.createElement("path",{fillRule:"evenodd",d:"M15.97 2.47a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06l3.22-3.22H7.5a.75.75 0 0 1 0-1.5h11.69l-3.22-3.22a.75.75 0 0 1 0-1.06Zm-7.94 9a.75.75 0 0 1 0 1.06l-3.22 3.22H16.5a.75.75 0 0 1 0 1.5H4.81l3.22 3.22a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}))});n.Z=o},42645:function(e,n,t){var r=t(7653);let o=r.forwardRef(function(e,n){let{title:t,titleId:o,...i}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":o},i),t?r.createElement("title",{id:o},t):null,r.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",clipRule:"evenodd"}))});n.Z=o},93838:function(e,n,t){t.r(n),t.d(n,{CoinbaseOnrampStatusScreen:function(){return h},default:function(){return h}});var r=t(27573),o=t(10224),i=t(42645),a=t(7653),l=t(91628),c=t(81781),s=t(47179),d=t(50800),u=t(75593),f=t(88089),p=t(36170),m=t(66664),g=t(80223);t(69021),t(26996),t(97347),t(7220),t(61899);let h={component:()=>{let{data:e,setModalData:n,navigate:t,navigateBack:o}=(0,p.a)(),{closePrivyModal:i,createAnalyticsEvent:l,client:c}=(0,f.u)(),[s,d]=(0,a.useState)("pending-in-flow"),g=(0,a.useRef)(0),h={...e?.funding,showAlternateFundingMethod:!0};h.usingDefaultFundingMethod&&(h.usingDefaultFundingMethod=!1);let{partnerUserId:y,popup:v}=e?.coinbaseOnrampStatus??{};return(0,a.useEffect)(()=>{if("pending-in-flow"===s||"pending-after-flow"===s){let r=setInterval(async()=>{if(y)try{let{status:r}=await c.getCoinbaseOnRampStatus({partnerUserId:y});if("success"===r)return void d("success");if("failure"===r)throw Error("There was an error completing Coinbase Onramp flow.");if(g.current>=3)return n({funding:h,solanaFundingData:e?.solanaFundingData}),void t("FundingMethodSelectionScreen");v?.closed&&(g.current=g.current+1,d("pending-after-flow"))}catch(r){console.error(r),d("error"),l({eventName:m.O,payload:{status:"failure",provider:"coinbase-onramp",error:r.message}}),n({funding:{...h,errorMessage:"Something went wrong adding funds. Please try again or use another method."},solanaFundingData:e?.solanaFundingData}),t("FundingMethodSelectionScreen")}},1500);return()=>clearInterval(r)}},[y,v,s]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.M,{title:"Fund account",backFn:()=>{n({funding:h,solanaFundingData:e?.solanaFundingData}),o()}},"header"),(0,r.jsx)(x,{status:s,onClickCta:i}),(0,r.jsx)(u.B,{})]})}},x=({status:e,onClickCta:n})=>{let{title:t,body:o,cta:i}=(0,a.useMemo)(()=>(e=>{switch(e){case"success":return{title:"You've funded your account!",body:"It may take a few minutes for the assets to appear.",cta:"Continue"};case"pending-after-flow":return{title:"In Progress",body:"Almost done. Retrieving transaction status from Coinbase",cta:""};case"error":case"pending-in-flow":return{title:"In Progress",body:"Go back to Coinbase Onramp to finish funding your account.",cta:""}}})(e),[e]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(w,{children:[(0,r.jsx)(y,{isSucccess:"success"===e}),(0,r.jsxs)(s.a,{children:[(0,r.jsx)("h3",{children:t}),(0,r.jsx)(v,{children:o})]})]}),i&&(0,r.jsx)(c.P,{onClick:n,children:i})]})},y=({isSucccess:e})=>{if(!e){let e="var(--privy-color-foreground-4)";return(0,r.jsxs)("div",{style:{position:"relative"},children:[(0,r.jsx)(d.L,{color:e,style:{position:"absolute"}}),(0,r.jsx)(d.a7,{color:e}),(0,r.jsx)(g.G,{style:{position:"absolute",width:"2.8rem",height:"2.8rem",top:"1.2rem",left:"1.2rem"}})]})}let n=e?i.Z:()=>(0,r.jsx)(o.Z,{width:"3rem",height:"3rem",style:{backgroundColor:"var(--privy-color-foreground-4)",color:"var(--privy-color-background)",borderRadius:"100%",padding:"0.5rem",margin:"0.5rem"}}),t=e?"var(--privy-color-success)":"var(--privy-color-foreground-4)";return(0,r.jsx)("div",{style:{borderColor:t,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"100%",borderWidth:2,padding:"0.5rem",marginBottom:"0.5rem"},children:n&&(0,r.jsx)(n,{width:"4rem",height:"4rem",color:t})})},v=l.zo.p.withConfig({displayName:"StatusBody",componentId:"sc-e4350fdc-0"})(["font-size:1rem;color:var(--privy-color-foreground-3);margin-bottom:1rem;display:flex;flex-direction:column;gap:1rem;"]),w=l.zo.div.withConfig({displayName:"ConnectContainer",componentId:"sc-e4350fdc-1"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;margin-left:1.75rem;margin-right:1.75rem;padding:2rem 0;"])},47179:function(e,n,t){t.d(n,{B:function(){return o},C:function(){return l},F:function(){return s},H:function(){return a},R:function(){return p},S:function(){return u},a:function(){return d},b:function(){return f},c:function(){return c},d:function(){return m},e:function(){return i}});var r=t(91628);let o=r.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;"]),i=r.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=r.zo.div.withConfig({displayName:"HorizontallyCenteredItem",componentId:"sc-cb963810-2"})(["display:flex;flex-direction:column;align-items:center;width:100%;"]),l=(0,r.zo)(i).withConfig({displayName:"CenteredItemWithPadding",componentId:"sc-cb963810-3"})(["padding:20px 0;"]),c=(0,r.zo)(i).withConfig({displayName:"CenteredItemWithGap",componentId:"sc-cb963810-4"})(["gap:16px;"]),s=r.zo.div.withConfig({displayName:"FlexContainer",componentId:"sc-cb963810-5"})(["display:flex;flex-direction:column;width:100%;"]),d=r.zo.div.withConfig({displayName:"FixedGappedContainer",componentId:"sc-cb963810-6"})(["display:flex;flex-direction:column;gap:8px;"]),u=r.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;}"]),f=r.zo.div.withConfig({displayName:"RefactorSpacerTop",componentId:"sc-cb963810-9"})(["height:16px;"]),p=r.zo.div.withConfig({displayName:"RefactorSpacerBottom",componentId:"sc-cb963810-10"}
1)(["height:12px;"]),m=r.zo.div.withConfig({displayName:"ConfigurableSpacer",componentId:"sc-cb963810-12"})(["height:","px;"],e=>e.height??"12")},66664:function(e,n,t){t.d(n,{O:function(){return r}});let r="sdk_fiat_on_ramp_completed_with_status"}}]);

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.