"use strict";var e=require("react/jsx-runtime"),r=require("styled-components"),t=require("./modal-context-BgeioxwT.js"),i=require("./ScreenLayout-DaFW0I3a.js");require("react"),require("./context-rs-ygOK2.js"),require("@privy-io/js-sdk-core"),require("tinycolor2"),require("./internal-context-CdsQ3LEl.js"),require("./ModalHeader-Cpls13mi.js"),require("./useActiveWallet-dTc6deka.js"),require("viem/utils"),require("./wallet-connect-BuohfvHK.js"),require("./errors-CBapWvRs.js"),require("ofetch"),require("./getPublicClient-CFd_sHBk.js"),require("viem"),require("viem/chains"),require("eventemitter3"),require("./events-context-Di6--rDg.js"),require("./privy-context-UTJouJ1x.js"),require("@privy-io/are-addresses-equal"),require("./index-Ub4KpwSY.js"),require("zustand"),require("react-device-detect"),require("./get-entropy-details-for-user-D63rM5_a.js"),require("./user-D2oPA-vS.js"),require("@heroicons/react/24/outline/ArrowLeftIcon"),require("@heroicons/react/24/outline/ArrowRightIcon"),require("@heroicons/react/24/outline/QuestionMarkCircleIcon"),require("@heroicons/react/24/outline/XMarkIcon"),require("./Screen-8NusMFtu.js"),require("./index-ByFhjjzH.js");const n=r=>/*#__PURE__*/e.jsx("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",...r,children:/*#__PURE__*/e.jsx("g",{children:/*#__PURE__*/e.jsx("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"})})}),o=({onContinueWithLedger:r,onContinueWithoutLedger:t,title:o="Using a hardware wallet?",subtitle:s="If you have a Ledger connected,\ncontinue to sign with Ledger"})=>/*#__PURE__*/e.jsx(i.ScreenLayout,{title:o,subtitle:/*#__PURE__*/e.jsx(a,{children:s}),primaryCta:{label:"Continue with Ledger",onClick:r},secondaryCta:{label:"Continue without Ledger",onClick:t},watermark:!0,children:/*#__PURE__*/e.jsx(c,{children:/*#__PURE__*/e.jsx(n,{style:{width:"48px",height:"48px"}})})});function s(){let{data:r,setModalData:i,navigate:n}=t.usePrivyModal();/*#__PURE__*/return e.jsx(o,{onContinueWithLedger:function(){i({...r,login:{...r?.login,isSigningInWithLedgerSolana:!0}}),n("ConnectionStatusScreen")},onContinueWithoutLedger:function(){i({...r,login:{...r?.login,isSigningInWithLedgerSolana:!1}}),n("ConnectionStatusScreen")}})}const u={component:s};let c=r.styled.div`
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--screen-space);
`,a=r.styled.span`
  white-space: pre-wrap;
`;exports.ConnectLedgerScreen=u,exports.ConnectLedgerScreenComponent=s,exports.ConnectLedgerScreenView=o,exports.default=u;
//# sourceMappingURL=ConnectLedgerScreen-BLmHSkmn.js.map
