import{jsx as t}from"react/jsx-runtime";import{styled as e}from"styled-components";import{u as i}from"./modal-context-DBwfUxD-.mjs";import{S as o}from"./ScreenLayout-Caq5mGD8.mjs";import"react";import"./context-BKnOUECq.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"./internal-context-dfitw7Ot.mjs";import"./ModalHeader-DffkxvO4.mjs";import"./useActiveWallet-BEfvREjE.mjs";import"viem/utils";import"./wallet-connect-58EobR5U.mjs";import"./errors-Dd6zfYtp.mjs";import"ofetch";import"./getPublicClient-D4yNgeGy.mjs";import"viem";import"viem/chains";import"eventemitter3";import"./events-context-BJ75xIIf.mjs";import"./privy-context-Bi6vqCPc.mjs";import"@privy-io/are-addresses-equal";import"./index-BtwxknTg.mjs";import"zustand";import"react-device-detect";import"./get-entropy-details-for-user-BIWg0YxF.mjs";import"./user-D5cqJNp9.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"./Screen-D8KNyGVj.mjs";import"./index-Dq_xe9dz.mjs";const r=e=>/*#__PURE__*/t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"-0.625 12.48 397.647 399.546",width:"2500",height:"674",preserveAspectRatio:"none",...e,children:/*#__PURE__*/t("g",{children:/*#__PURE__*/t("path",{fill:"#333745",d:"M 333.9 12.8 L 150.9 12.8 L 150.9 258.4 L 396.5 258.4 L 396.5 76.7 C 396.6 42.2 368.4 12.8 333.9 12.8 Z M 94.7 12.8 L 64 12.8 C 29.5 12.8 0 40.9 0 76.8 L 0 107.5 L 94.7 107.5 L 94.7 12.8 Z M 0 165 L 94.7 165 L 94.7 259.7 L 0 259.7 L 0 165 Z M 301.9 410.6 L 332.6 410.6 C 367.1 410.6 396.6 382.5 396.6 346.6 L 396.6 316 L 301.9 316 L 301.9 410.6 Z M 150.9 316 L 245.6 316 L 245.6 410.7 L 150.9 410.7 L 150.9 316 Z M 0 316 L 0 346.7 C 0 381.2 28.1 410.7 64 410.7 L 94.7 410.7 L 94.7 316 L 0 316 Z"})})}),n=({onContinueWithLedger:e,onContinueWithoutLedger:i,title:n="Using a hardware wallet?",subtitle:m="If you have a Ledger connected,\ncontinue to sign with Ledger"})=>/*#__PURE__*/t(o,{title:n,subtitle:/*#__PURE__*/t(c,{children:m}),primaryCta:{label:"Continue with Ledger",onClick:e},secondaryCta:{label:"Continue without Ledger",onClick:i},watermark:!0,children:/*#__PURE__*/t(a,{children:/*#__PURE__*/t(r,{style:{width:"48px",height:"48px"}})})});function m(){let{data:e,setModalData:o,navigate:r}=i();/*#__PURE__*/return t(n,{onContinueWithLedger:function(){o({...e,login:{...e?.login,isSigningInWithLedgerSolana:!0}}),r("ConnectionStatusScreen")},onContinueWithoutLedger:function(){o({...e,login:{...e?.login,isSigningInWithLedgerSolana:!1}}),r("ConnectionStatusScreen")}})}const s={component:m};let a=e.div`
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--screen-space);
`,c=e.span`
  white-space: pre-wrap;
`;export{s as ConnectLedgerScreen,m as ConnectLedgerScreenComponent,n as ConnectLedgerScreenView,s as default};
//# sourceMappingURL=ConnectLedgerScreen-Dz7jCuFr.mjs.map
