PageSourceSearch

https://dreamware.ai/_next/static/chunks/3155.cde8dff9339727b1.js

js dreamware.ai collected 2026-10-05 12:54:50 UTC 6,811 bytes, 92 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3155],{5858:(e,t,r)=>{r.d(t,{O:()=>n});let n="sdk_fiat_on_ramp_completed_with_status"},18041:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(38962);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.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:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.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"}))})},23155:(e,t,r)=>{r.r(t),r.d(t,{CoinbaseOnrampStatusScreen:()=>m,default:()=>m});var n=r(67194),i=r(33240),a=r(18041),o=r(38962),l=r(12236),s=r(67528),d=r(70195),c=r(79830),u=r(53427),f=r(26954),g=r(5858),p=r(1982);r(52438),r(81898),r(44726),r(74967),r(27236);let m={component:()=>{let{data:e,setModalData:t,navigate:r,navigateBack:i}=(0,f.a)(),{closePrivyModal:a,createAnalyticsEvent:l,client:d}=(0,u.u)(),[c,p]=(0,o.useState)("pending-in-flow"),m=(0,o.useRef)(0),v={...e?.funding,showAlternateFundingMethod:!0};v.usingDefaultFundingMethod&&(v.usingDefaultFundingMethod=!1);let{partnerUserId:x,popup:y}=e?.coinbaseOnrampStatus??{};return(0,o.useEffect)(()=>{if("pending-in-flow"===c||"pending-after-flow"===c){let n=setInterval(async()=>{if(x)try{let{status:n}=await d.getCoinbaseOnRampStatus({partnerUserId:x});if("success"===n)return void p("success");if("failure"===n)throw Error("There was an error completing Coinbase Onramp flow.");if(m.current>=3)return t({funding:v,solanaFundingData:e?.solanaFundingData}),void r("FundingMethodSelectionScreen");y?.closed&&(m.current=m.current+1,p("pending-after-flow"))}catch(n){console.error(n),p("error"),l({eventName:g.O,payload:{status:"failure",provider:"coinbase-onramp",error:n.message}}),t({funding:{...v,errorMessage:"Something went wrong adding funds. Please try again or use another method."},solanaFundingData:e?.solanaFundingData}),r("FundingMethodSelectionScreen")}},1500);return()=>clearInterval(n)}},[x,y,c]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.M,{title:"Fund account",backFn:()=>{t({funding:v,solanaFundingData:e?.solanaFundingData}),i()}},"header"),(0,n.jsx)(h,{status:c,onClickCta:a}),(0,n.jsx)(s.B,{})]})}},h=({status:e,onClickCta:t})=>{let{title:r,body:i,cta:a}=(0,o.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,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(y,{children:[(0,n.jsx)(v,{isSucccess:"success"===e}),(0,n.jsxs)(d.a,{children:[(0,n.jsx)("h3",{children:r}),(0,n.jsx)(x,{children:i})]})]}),a&&(0,n.jsx)(s.P,{onClick:t,children:a})]})},v=({isSucccess:e})=>{if(!e){let e="var(--privy-color-foreground-4)";return(0,n.jsxs)("div",{style:{position:"relative"},children:[(0,n.jsx)(c.L,{color:e,style:{position:"absolute"}}),(0,n.jsx)(c.a7,{color:e}),(0,n.jsx)(p.H,{style:{position:"absolute",width:"2.8rem",height:"2.8rem",top:"1.2rem",left:"1.2rem"}})]})}let t=e?a.A:()=>(0,n.jsx)(i.A,{width:"3rem",height:"3rem",style:{backgroundColor:"var(--privy-color-foreground-4)",color:"var(--privy-color-background)",borderRadius:"100%",padding:"0.5rem",margin:"0.5rem"}}),r=e?"var(--privy-color-success)":"var(--privy-color-foreground-4)";return(0,n.jsx)("div",{style:{borderColor:r,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"100%",borderWidth:2,padding:"0.5rem",marginBottom:"0.5rem"},children:t&&(0,n.jsx)(t,{width:"4rem",height:"4rem",color:r})})},x=l.I4.p`
2  font-size: 1rem;
3  color: var(--privy-color-foreground-3);
4  margin-bottom: 1rem;
5  display: flex;
6  flex-direction: column;
7  gap: 1rem;
8`,y=l.I4.div`
9  display: flex;
10  flex-direction: column;
11  align-items: center;
12  justify-content: center;
13  margin-left: 1.75rem;
14  margin-right: 1.75rem;
15  padding: 2rem 0;
16`},33240:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(38962);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
16currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.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"}))})},70195:(e,t,r)=>{r.d(t,{B:()=>i,C:()=>l,F:()=>d,H:()=>o,R:()=>g,S:()=>u,a:()=>c,b:()=>f,c:()=>s,d:()=>p,e:()=>a});var n=r(12236);let i=n.I4.div`
17  display: flex;
18  flex-direction: column;
19  align-items: flex-start;
20  justify-content: flex-end;
21  margin-top: auto;
22  gap: 16px;
23  flex-grow: 100;
24`,a=n.I4.div`
25  display: flex;
26  flex-direction: column;
27  align-items: center;
28  justify-content: center;
29  flex-grow: 1;
30  width: 100%;
31`,o=n.I4.div`
32  display: flex;
33  flex-direction: column;
34  align-items: center;
35  width: 100%;
36`,l=(0,n.I4)(a)`
37  padding: 20px 0;
38`,s=(0,n.I4)(a)`
39  gap: 16px;
40`,d=n.I4.div`
41  display: flex;
42  flex-direction: column;
43  width: 100%;
44`,c=n.I4.div`
45  display: flex;
46  flex-direction: column;
47  gap: 8px;
48`;n.I4.div`
49  display: flex;
50  flex-direction: column;
51  justify-content: space-between;
52  height: 100%;
53`;let u=n.I4.div`
54  display: flex;
55  flex-direction: column;
56  justify-content: flex-start;
57  align-items: flex-start;
58  text-align: left;
59  gap: 8px;
60  padding: 16px;
61  margin-top: 16px;
62  margin-bottom: 16px;
63  width: 100%;
64  background: var(--privy-color-background-2);
65  border-radius: var(--privy-border-radius-md);
66  && h4 {
67    color: var(--privy-color-foreground-3);
68    font-size: 14px;
69    text-decoration: underline;
70    font-weight: medium;
71  }
72  && p {
73    color: var(--privy-color-foreground-3);
74    font-size: 14px;
75  }
76`,f=n.I4.div`
77  height: 16px;
78`,g=n.I4.div`
79  height: 12px;
80`;n.I4.div`
81  position: relative;
82`;let p=n.I4.div`
83  height: ${e=>e.height??"12"}px;
84`;n.I4.div`
85  background-color: var(--privy-color-accent);
86  display: flex;
87  justify-content: center;
88  align-items: center;
89  border-radius: 50%;
90  border-color: white;
91  border-width: 2px !important;
92`}}]);

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.