PageSourceSearch

https://pro.sport.fun/static/assets/AffirmativeConsentScreen-DqS-kE9s-Djo9ashq.js

js sport.fun collected 2026-09-29 14:37:13 UTC 2,328 bytes, 6 lines download raw bytes

1import{gt as f,go as g,gn as h,gp as v,j as e,gs as C}from"./index-BSx329UM.js";import{y as p}from"./ModalHeader-DffkxvO4-4hAT2A9_.js";import{a as k}from"./shouldProceedtoEmbeddedWalletCreationFlow-SyjOJUom-CBEDzyRW.js";import{n as x}from"./ScreenLayout-Caq5mGD8-C8e_i3Eq.js";import{c as A}from"./createLucideIcon-DVQ5gbwD.js";import{E as m}from"./external-link-DuEk1Oyx.js";import"./Screen-D8KNyGVj-aZIJz9Of.js";import"./index-Dq_xe9dz-txSzgltx.js";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:t,logout:a}=f(),{onUserCloseViaDialogOrKeybindRef:n,setModalData:s,navigate:i}=g(),r=h(),{acceptTerms:u,closePrivyModal:l,createAnalyticsEvent:y}=v(),c=o=>{o?.preventDefault(),l({shouldCallAuthOnSuccess:!1}),a()};return n.current=c,e.jsx(w,{termsAndConditionsUrl:r?.legal.termsAndConditionsUrl,privacyPolicyUrl:r?.legal.privacyPolicyUrl,onAccept:async o=>{o?.preventDefault(),await u(),t&&k(t,r.embeddedWallets)?(s({createWallet:{onSuccess:()=>{},onFailure:d=>{console.error(d),y({eventName:"embedded_wallet_creation_failure_logout",payload:{error:d,screen:"AffirmativeConsentScreen"}}),a()},callAuthOnSuccessOnClose:!0}}),i("EmbeddedWalletOnAccountCreateScreen")):l()},onDecline:c})}},w=({termsAndConditionsUrl:t,privacyPolicyUrl:a,onAccept:n,onDecline:s,title:i="One last step",subtitle:r="By signing up, you agree to our terms and privacy policy."})=>e.jsx(x,{title:i,subtitle:r,icon:b,primaryCta:{label:"Accept",onClick:n},secondaryCta:{label:"No thanks",onClick:s},watermark:!0,children:(t||a)&&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})]}),a&&e.jsxs(p,{variant:"muted",href:a,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};

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.