PageSourceSearch

https://workagnt.ai/assets/AffirmativeConsentScreen-DxxzXwpf-Ci5oBSh3.js

js workagnt.ai collected 2026-10-05 13:18:24 UTC 2,543 bytes, 11 lines download raw bytes

1import{a7 as f,a0 as h,$ as v,a1 as g,j as a,a3 as C}from"./index-S47fUQMa.js";import{y as m}from"./ModalHeader-rFKqcgRs-D0Jzj3Ja.js";import{a as k}from"./shouldProceedtoEmbeddedWalletCreationFlow-D74vhcr8-fbmABFl8.js";import{n as x}from"./ScreenLayout-Dmp7r6fS-QMMIYncL.js";import{c as A}from"./createLucideIcon-YS6omZXm.js";import{E as p}from"./external-link-pnWC3rV-.js";import"./Screen-DXLhhfU3-POavDMLB.js";import"./index-Dq_xe9dz-VESxGw0N.js";/**
2 * @license lucide-react v0.554.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 */const j=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]],b=A("file-check",j),z={component:()=>{let{user:r,logout:n}=f(),{onUserCloseViaDialogOrKeybindRef:s,setModalData:i,navigate:o}=h(),e=v(),{acceptTerms:u,closePrivyModal:l,createAnalyticsEvent:y}=g(),c=t=>{t==null||t.preventDefault(),l({shouldCallAuthOnSuccess:!1}),n()};return s.current=c,a.jsx(w,{termsAndConditionsUrl:e==null?void 0:e.legal.termsAndConditionsUrl,privacyPolicyUrl:e==null?void 0:e.legal.privacyPolicyUrl,onAccept:async t=>{t==null||t.preventDefault(),await u(),r&&k(r,e.embeddedWallets)?(i({createWallet:{onSuccess:()=>{},onFailure:d=>{console.error(d),y({eventName:"embedded_wallet_creation_failure_logout",payload:{error:d,screen:"AffirmativeConsentScreen"}}),n()},callAuthOnSuccessOnClose:!0}}),o("EmbeddedWalletOnAccountCreateScreen")):l()},onDecline:c})}},w=({termsAndConditionsUrl:r,privacyPolicyUrl:n,onAccept:s,onDecline:i,title:o="One last step",subtitle:e="By signing up, you agree to our terms and privacy policy."})=>a.jsx(x,{title:o,subtitle:e,icon:b,primaryCta:{label:"Accept",onClick:s},secondaryCta:{label:"No thanks",onClick:i},watermark:!0,children:(r||n)&&a.jsxs(_,{children:[r&&a.jsxs(m,{variant:"muted",href:r,target:"_blank",size:"lg",style:{justifyContent:"space-between"},as:"a",children:["View Terms",a.jsx(p,{width:16,height:16,strokeWidth:2.25})]}),n&&a.jsxs(m,{variant:"muted",href:n,target:"_blank",size:"lg",style:{justifyContent:"space-between"},as:"a",children:["View Privacy Policy",a.jsx(p,{width:16,height:16,strokeWidth:2.25})]})]})});let _=C.div`
7  display: flex;
8  flex-direction: column;
9  gap: 12px;
10  margin-top: var(--screen-space);
11`;export{z as AffirmativeConsentScreen,w as AffirmativeConsentScreenView,z as default};

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.