PageSourceSearch

https://dmeet.org/assets/AffirmativeConsentScreen-B1Xtn9l_-CJYOoJx0.js

js dmeet.org collected 2026-10-03 20:15:17 UTC 2,425 bytes, 7 lines download raw bytes

1import{b1 as f,P as h,s as v,I as g,j as e,a_ as C}from"./privy-C70SmBOt.js";import"./vendor-BhTrWUXb.js";import{y as p}from"./ModalHeader-D7u2VQIH-DmAvoeoM.js";import{a as k}from"./shouldProceedtoEmbeddedWalletCreationFlow-BTsQS1ZO-Dh9n3qtd.js";import{n as x}from"./ScreenLayout-BgwOsyLd-B2abtQKQ.js";import{c as A}from"./createLucideIcon-CXLgQO5a.js";import{E as m}from"./external-link-D5Q_CgcZ.js";import"./Screen-yabWN6I5-CKn-9o50.js";import"./index-Dq_xe9dz-C35b9bEG.js";const b=[["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"}]],j=A("file-check",b),z={component:()=>{let{user:t,logout:r}=f(),{onUserCloseViaDialogOrKeybindRef:n,setModalData:i,navigate:o}=h(),a=v(),{acceptTerms:u,closePrivyModal:l,createAnalyticsEvent:y}=g(),c=s=>{s?.preventDefault(),l({shouldCallAuthOnSuccess:!1}),r()};return n.current=c,e.jsx(w,{termsAndConditionsUrl:a?.legal.termsAndConditionsUrl,privacyPolicyUrl:a?.legal.privacyPolicyUrl,onAccept:async s=>{s?.preventDefault(),await u(),t&&k(t,a.embeddedWallets)?(i({createWallet:{onSuccess:()=>{},onFailure:d=>{console.error(d),y({eventName:"embedded_wallet_creation_failure_logout",payload:{error:d,screen:"AffirmativeConsentScreen"}}),r()},callAuthOnSuccessOnClose:!0}}),o("EmbeddedWalletOnAccountCreateScreen")):l()},onDecline:c})}},w=({termsAndConditionsUrl:t,privacyPolicyUrl:r,onAccept:n,onDecline:i,title:o="One last step",subtitle:a="By signing up, you agree to our terms and privacy policy."})=>e.jsx(x,{title:o,subtitle:a,icon:j,primaryCta:{label:"Accept",onClick:n},secondaryCta:{label:"No thanks",onClick:i},watermark:!0,children:(t||r)&&e.jsxs(_,{children:[t&&e.jsxs(p,{variant:"muted",href:t,target:"_blank",size:"lg",style:{justifyContent:"space-between"},as:"a",children:["View Terms",e.jsx(m,{width:16,height:16,strokeWidth:2.25})]}),r&&e.jsxs(p,{variant:"muted",href:r,target:"_blank",size:"lg",style:{justifyContent:"space-between"},as:"a",children:["View Privacy Policy",e.jsx(m,{width:16,height:16,strokeWidth:2.25})]})]})});let _=C.div`
2  display: flex;
3  flex-direction: column;
4  gap: 12px;
5  margin-top: var(--screen-space);
6`;export{z as AffirmativeConsentScreen,w as AffirmativeConsentScreenView,z as default};
7//# sourceMappingURL=AffirmativeConsentScreen-B1Xtn9l_-CJYOoJx0.js.map

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.