@meshsdk/react 1.9.0-beta.2 → 1.9.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -23432,7 +23432,7 @@ var require_dist = __commonJS({
23432
23432
  });
23433
23433
 
23434
23434
  // src/cardano-wallet/index.tsx
23435
- import { useEffect as useEffect10, useState as useState12 } from "react";
23435
+ import { useEffect as useEffect10, useState as useState13 } from "react";
23436
23436
 
23437
23437
  // src/common/button.tsx
23438
23438
  import * as React from "react";
@@ -24220,7 +24220,6 @@ function IconDownload() {
24220
24220
  height: "24px",
24221
24221
  strokeWidth: "1px"
24222
24222
  },
24223
- className: "hover:mesh-fill-white",
24224
24223
  children: [
24225
24224
  /* @__PURE__ */ jsx9("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
24226
24225
  /* @__PURE__ */ jsx9("polyline", { points: "7 10 12 15 17 10" }),
@@ -24343,8 +24342,64 @@ function WalletIcon({
24343
24342
  ] });
24344
24343
  }
24345
24344
 
24345
+ // src/cardano-wallet/web3-services.tsx
24346
+ import { useState as useState10 } from "react";
24347
+ import { Web3Wallet } from "@meshsdk/web3-sdk";
24348
+
24349
+ // src/common/icons/icon-discord.tsx
24350
+ import { jsx as jsx14 } from "react/jsx-runtime";
24351
+ function IconDiscord() {
24352
+ return /* @__PURE__ */ jsx14(
24353
+ "svg",
24354
+ {
24355
+ viewBox: "0 0 20 20",
24356
+ "aria-hidden": "true",
24357
+ style: {
24358
+ color: "#ffadff",
24359
+ width: "24px",
24360
+ height: "24px",
24361
+ strokeWidth: "1px",
24362
+ fill: "#5865F2"
24363
+ },
24364
+ children: /* @__PURE__ */ jsx14("path", { d: "M16.238 4.515a14.842 14.842 0 0 0-3.664-1.136.055.055 0 0 0-.059.027 10.35 10.35 0 0 0-.456.938 13.702 13.702 0 0 0-4.115 0 9.479 9.479 0 0 0-.464-.938.058.058 0 0 0-.058-.027c-1.266.218-2.497.6-3.664 1.136a.052.052 0 0 0-.024.02C1.4 8.023.76 11.424 1.074 14.782a.062.062 0 0 0 .024.042 14.923 14.923 0 0 0 4.494 2.272.058.058 0 0 0 .064-.02c.346-.473.654-.972.92-1.496a.057.057 0 0 0-.032-.08 9.83 9.83 0 0 1-1.404-.669.058.058 0 0 1-.029-.046.058.058 0 0 1 .023-.05c.094-.07.189-.144.279-.218a.056.056 0 0 1 .058-.008c2.946 1.345 6.135 1.345 9.046 0a.056.056 0 0 1 .059.007c.09.074.184.149.28.22a.058.058 0 0 1 .023.049.059.059 0 0 1-.028.046 9.224 9.224 0 0 1-1.405.669.058.058 0 0 0-.033.033.056.056 0 0 0 .002.047c.27.523.58 1.022.92 1.495a.056.056 0 0 0 .062.021 14.878 14.878 0 0 0 4.502-2.272.055.055 0 0 0 .016-.018.056.056 0 0 0 .008-.023c.375-3.883-.63-7.256-2.662-10.246a.046.046 0 0 0-.023-.021Zm-9.223 8.221c-.887 0-1.618-.814-1.618-1.814s.717-1.814 1.618-1.814c.908 0 1.632.821 1.618 1.814 0 1-.717 1.814-1.618 1.814Zm5.981 0c-.887 0-1.618-.814-1.618-1.814s.717-1.814 1.618-1.814c.908 0 1.632.821 1.618 1.814 0 1-.71 1.814-1.618 1.814Z" })
24365
+ }
24366
+ );
24367
+ }
24368
+
24369
+ // src/cardano-wallet/web3-services.tsx
24370
+ import { jsx as jsx15 } from "react/jsx-runtime";
24371
+ function Web3Services({
24372
+ options,
24373
+ setOpen
24374
+ }) {
24375
+ const { setWallet } = useWallet();
24376
+ const [loading, setLoading] = useState10(false);
24377
+ async function loadWallet() {
24378
+ setLoading(true);
24379
+ const _options = {
24380
+ networkId: 0,
24381
+ fetcher: options.fetcher,
24382
+ submitter: options.submitter,
24383
+ appUrl: options.appUrl,
24384
+ projectId: options.projectId
24385
+ };
24386
+ const wallet = await Web3Wallet.enable(_options);
24387
+ setWallet(wallet, "Mesh Web3 Services");
24388
+ setLoading(false);
24389
+ setOpen(false);
24390
+ }
24391
+ return /* @__PURE__ */ jsx15(
24392
+ WalletIcon,
24393
+ {
24394
+ iconReactNode: IconDiscord(),
24395
+ name: `Discord`,
24396
+ action: () => loadWallet()
24397
+ }
24398
+ );
24399
+ }
24400
+
24346
24401
  // src/cardano-wallet/screen-main.tsx
24347
- import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
24402
+ import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
24348
24403
  function ScreenMain({
24349
24404
  injectFn,
24350
24405
  extensions,
@@ -24353,12 +24408,14 @@ function ScreenMain({
24353
24408
  persist,
24354
24409
  cardanoPeerConnect,
24355
24410
  burnerWallet,
24356
- webauthn
24411
+ webauthn,
24412
+ showDownload,
24413
+ web3Services
24357
24414
  }) {
24358
24415
  const wallets = useWalletList({ injectFn });
24359
24416
  const { connect: connect2 } = useWallet();
24360
- return /* @__PURE__ */ jsx14(TooltipProvider, { children: /* @__PURE__ */ jsxs10("div", { className: "mesh-grid mesh-gap-4 mesh-py-4 mesh-grid-cols-5 mesh-place-items-center mesh-gap-y-8", children: [
24361
- wallets.map((wallet, index) => /* @__PURE__ */ jsx14(
24417
+ return /* @__PURE__ */ jsx16(TooltipProvider, { children: /* @__PURE__ */ jsxs10("div", { className: "mesh-grid mesh-gap-4 mesh-py-4 mesh-grid-cols-5 mesh-place-items-center mesh-gap-y-8", children: [
24418
+ wallets.map((wallet, index) => /* @__PURE__ */ jsx16(
24362
24419
  WalletIcon,
24363
24420
  {
24364
24421
  icon: wallet.icon,
@@ -24370,7 +24427,8 @@ function ScreenMain({
24370
24427
  },
24371
24428
  index
24372
24429
  )),
24373
- webauthn && /* @__PURE__ */ jsx14(
24430
+ web3Services && /* @__PURE__ */ jsx16(Web3Services, { options: web3Services, setOpen }),
24431
+ webauthn && /* @__PURE__ */ jsx16(
24374
24432
  WalletIcon,
24375
24433
  {
24376
24434
  iconReactNode: IconFingerprint(),
@@ -24380,7 +24438,7 @@ function ScreenMain({
24380
24438
  }
24381
24439
  }
24382
24440
  ),
24383
- cardanoPeerConnect && /* @__PURE__ */ jsx14(
24441
+ cardanoPeerConnect && /* @__PURE__ */ jsx16(
24384
24442
  WalletIcon,
24385
24443
  {
24386
24444
  iconReactNode: IconMonitorSmartphone(),
@@ -24390,7 +24448,7 @@ function ScreenMain({
24390
24448
  }
24391
24449
  }
24392
24450
  ),
24393
- burnerWallet && /* @__PURE__ */ jsx14(
24451
+ burnerWallet && /* @__PURE__ */ jsx16(
24394
24452
  WalletIcon,
24395
24453
  {
24396
24454
  iconReactNode: IconBookDashed(),
@@ -24400,7 +24458,7 @@ function ScreenMain({
24400
24458
  }
24401
24459
  }
24402
24460
  ),
24403
- /* @__PURE__ */ jsx14(
24461
+ showDownload && /* @__PURE__ */ jsx16(
24404
24462
  WalletIcon,
24405
24463
  {
24406
24464
  iconReactNode: IconDownload(),
@@ -24418,16 +24476,16 @@ function ScreenMain({
24418
24476
 
24419
24477
  // src/cardano-wallet/screen-p2p.tsx
24420
24478
  var import_cardano_peer_connect = __toESM(require_dist(), 1);
24421
- import { useEffect as useEffect9, useRef as useRef2, useState as useState10 } from "react";
24422
- import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
24479
+ import { useEffect as useEffect9, useRef as useRef2, useState as useState11 } from "react";
24480
+ import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
24423
24481
  function ScreenP2P({
24424
24482
  cardanoPeerConnect,
24425
24483
  setOpen
24426
24484
  }) {
24427
24485
  const dAppConnect = useRef2(null);
24428
24486
  const qrCodeField = useRef2(null);
24429
- const [address, setAddress] = useState10("");
24430
- const [copied, setCopied] = useState10(false);
24487
+ const [address, setAddress] = useState11("");
24488
+ const [copied, setCopied] = useState11(false);
24431
24489
  const { connect: connect2 } = useWallet();
24432
24490
  useEffect9(() => {
24433
24491
  if (cardanoPeerConnect) {
@@ -24464,8 +24522,8 @@ function ScreenP2P({
24464
24522
  }
24465
24523
  }, []);
24466
24524
  return /* @__PURE__ */ jsxs11("div", { className: "mesh-flex mesh-flex-col mesh-items-center mesh-justify-center", children: [
24467
- /* @__PURE__ */ jsx15("div", { style: { marginTop: 16, marginBottom: 16 }, ref: qrCodeField }),
24468
- /* @__PURE__ */ jsx15(
24525
+ /* @__PURE__ */ jsx17("div", { style: { marginTop: 16, marginBottom: 16 }, ref: qrCodeField }),
24526
+ /* @__PURE__ */ jsx17(
24469
24527
  Button,
24470
24528
  {
24471
24529
  variant: "outline",
@@ -24480,15 +24538,15 @@ function ScreenP2P({
24480
24538
  }
24481
24539
 
24482
24540
  // src/cardano-wallet/screen-webauthn.tsx
24483
- import { useState as useState11 } from "react";
24541
+ import { useState as useState12 } from "react";
24484
24542
  import { connect, MeshWallet as MeshWallet2 } from "@meshsdk/wallet";
24485
24543
 
24486
24544
  // src/common/input.tsx
24487
24545
  import * as React5 from "react";
24488
- import { jsx as jsx16 } from "react/jsx-runtime";
24546
+ import { jsx as jsx18 } from "react/jsx-runtime";
24489
24547
  var Input = React5.forwardRef(
24490
24548
  ({ className, type, ...props }, ref) => {
24491
- return /* @__PURE__ */ jsx16(
24549
+ return /* @__PURE__ */ jsx18(
24492
24550
  "input",
24493
24551
  {
24494
24552
  type,
@@ -24508,11 +24566,11 @@ Input.displayName = "Input";
24508
24566
  import * as React6 from "react";
24509
24567
  import * as LabelPrimitive from "@radix-ui/react-label";
24510
24568
  import { cva as cva2 } from "class-variance-authority";
24511
- import { jsx as jsx17 } from "react/jsx-runtime";
24569
+ import { jsx as jsx19 } from "react/jsx-runtime";
24512
24570
  var labelVariants = cva2(
24513
24571
  "mesh-text-sm mesh-font-medium mesh-leading-none peer-disabled:mesh-cursor-not-allowed peer-disabled:mesh-opacity-70"
24514
24572
  );
24515
- var Label2 = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
24573
+ var Label2 = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
24516
24574
  LabelPrimitive.Root,
24517
24575
  {
24518
24576
  ref,
@@ -24523,16 +24581,16 @@ var Label2 = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
24523
24581
  Label2.displayName = LabelPrimitive.Root.displayName;
24524
24582
 
24525
24583
  // src/cardano-wallet/screen-webauthn.tsx
24526
- import { Fragment as Fragment3, jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
24584
+ import { Fragment as Fragment3, jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
24527
24585
  function ScreenWebauthn({
24528
24586
  url,
24529
24587
  networkId,
24530
24588
  provider,
24531
24589
  setOpen
24532
24590
  }) {
24533
- const [loading, setLoading] = useState11(false);
24534
- const [userName, setUserName] = useState11("");
24535
- const [password, setPassword] = useState11("");
24591
+ const [loading, setLoading] = useState12(false);
24592
+ const [userName, setUserName] = useState12("");
24593
+ const [password, setPassword] = useState12("");
24536
24594
  const { setWallet } = useWallet();
24537
24595
  function createWallet(root) {
24538
24596
  setTimeout(() => {
@@ -24557,10 +24615,10 @@ function ScreenWebauthn({
24557
24615
  createWallet(res.wallet.bech32PrivateKey);
24558
24616
  }
24559
24617
  }
24560
- return /* @__PURE__ */ jsx18("div", { className: "mesh-flex mesh-flex-row mesh-flex-gap-4 mesh-items-center mesh-justify-center", children: loading ? /* @__PURE__ */ jsx18(Fragment3, { children: "Connecting wallet..." }) : /* @__PURE__ */ jsx18(Fragment3, { children: /* @__PURE__ */ jsxs12("div", { className: "mesh-flex mesh-flex-col mesh-gap-6 mesh-w-full mesh-mx-8", children: [
24618
+ return /* @__PURE__ */ jsx20("div", { className: "mesh-flex mesh-flex-row mesh-flex-gap-4 mesh-items-center mesh-justify-center", children: loading ? /* @__PURE__ */ jsx20(Fragment3, { children: "Connecting wallet..." }) : /* @__PURE__ */ jsx20(Fragment3, { children: /* @__PURE__ */ jsxs12("div", { className: "mesh-flex mesh-flex-col mesh-gap-6 mesh-w-full mesh-mx-8", children: [
24561
24619
  /* @__PURE__ */ jsxs12("div", { className: "mesh-grid mesh-gap-2", children: [
24562
- /* @__PURE__ */ jsx18(Label2, { htmlFor: "username", children: "Username" }),
24563
- /* @__PURE__ */ jsx18(
24620
+ /* @__PURE__ */ jsx20(Label2, { htmlFor: "username", children: "Username" }),
24621
+ /* @__PURE__ */ jsx20(
24564
24622
  Input,
24565
24623
  {
24566
24624
  id: "username",
@@ -24570,11 +24628,11 @@ function ScreenWebauthn({
24570
24628
  onChange: (e2) => setUserName(e2.target.value)
24571
24629
  }
24572
24630
  ),
24573
- /* @__PURE__ */ jsx18("p", { className: "mesh-text-gray-500 mesh-text-xs", children: "Unique to the application you are connecting." })
24631
+ /* @__PURE__ */ jsx20("p", { className: "mesh-text-gray-500 mesh-text-xs", children: "Unique to the application you are connecting." })
24574
24632
  ] }),
24575
24633
  /* @__PURE__ */ jsxs12("div", { className: "mesh-grid mesh-gap-2", children: [
24576
- /* @__PURE__ */ jsx18("div", { className: "mesh-flex mesh-items-center", children: /* @__PURE__ */ jsx18(Label2, { htmlFor: "password", children: "Unique Code" }) }),
24577
- /* @__PURE__ */ jsx18(
24634
+ /* @__PURE__ */ jsx20("div", { className: "mesh-flex mesh-items-center", children: /* @__PURE__ */ jsx20(Label2, { htmlFor: "password", children: "Unique Code" }) }),
24635
+ /* @__PURE__ */ jsx20(
24578
24636
  Input,
24579
24637
  {
24580
24638
  id: "password",
@@ -24584,9 +24642,9 @@ function ScreenWebauthn({
24584
24642
  onChange: (e2) => setPassword(e2.target.value)
24585
24643
  }
24586
24644
  ),
24587
- /* @__PURE__ */ jsx18("p", { className: "mesh-text-gray-500 mesh-text-xs", children: "Additional security to derive your wallet." })
24645
+ /* @__PURE__ */ jsx20("p", { className: "mesh-text-gray-500 mesh-text-xs", children: "Additional security to derive your wallet." })
24588
24646
  ] }),
24589
- /* @__PURE__ */ jsx18(
24647
+ /* @__PURE__ */ jsx20(
24590
24648
  Button,
24591
24649
  {
24592
24650
  className: "mesh-w-full",
@@ -24599,7 +24657,7 @@ function ScreenWebauthn({
24599
24657
  }
24600
24658
 
24601
24659
  // src/cardano-wallet/index.tsx
24602
- import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
24660
+ import { jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
24603
24661
  var CardanoWallet = ({
24604
24662
  label = "Connect Wallet",
24605
24663
  onConnected = void 0,
@@ -24609,10 +24667,12 @@ var CardanoWallet = ({
24609
24667
  injectFn = void 0,
24610
24668
  cardanoPeerConnect = void 0,
24611
24669
  burnerWallet = void 0,
24612
- webauthn = void 0
24670
+ webauthn = void 0,
24671
+ showDownload = true,
24672
+ web3Services = void 0
24613
24673
  }) => {
24614
- const [open, setOpen] = useState12(false);
24615
- const [screen, setScreen] = useState12("main");
24674
+ const [open, setOpen] = useState13(false);
24675
+ const [screen, setScreen] = useState13("main");
24616
24676
  const { wallet, connected, setPersist } = useWallet();
24617
24677
  useEffect10(() => {
24618
24678
  setPersist(persist);
@@ -24623,15 +24683,15 @@ var CardanoWallet = ({
24623
24683
  }
24624
24684
  }, [connected, wallet]);
24625
24685
  return /* @__PURE__ */ jsxs13(Dialog, { open, onOpenChange: setOpen, children: [
24626
- /* @__PURE__ */ jsx19("div", { className: isDark ? "mesh-dark" : "", children: !connected ? /* @__PURE__ */ jsx19(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx19(Button, { variant: "outline", children: label }) }) : /* @__PURE__ */ jsx19(ConnectedButton, {}) }),
24686
+ /* @__PURE__ */ jsx21("div", { className: isDark ? "mesh-dark" : "", children: !connected ? /* @__PURE__ */ jsx21(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx21(Button, { variant: "outline", className: isDark ? "mesh-dark" : "", children: label }) }) : /* @__PURE__ */ jsx21(ConnectedButton, {}) }),
24627
24687
  /* @__PURE__ */ jsxs13(
24628
24688
  DialogContent,
24629
24689
  {
24630
24690
  className: "sm:mesh-max-w-[425px] mesh-dark",
24631
24691
  onOpenAutoFocus: (event) => event.preventDefault(),
24632
24692
  children: [
24633
- /* @__PURE__ */ jsx19(Header, { screen, setScreen }),
24634
- screen == "main" && /* @__PURE__ */ jsx19(
24693
+ /* @__PURE__ */ jsx21(Header, { screen, setScreen }),
24694
+ screen == "main" && /* @__PURE__ */ jsx21(
24635
24695
  ScreenMain,
24636
24696
  {
24637
24697
  injectFn,
@@ -24641,17 +24701,19 @@ var CardanoWallet = ({
24641
24701
  persist,
24642
24702
  cardanoPeerConnect: cardanoPeerConnect != void 0,
24643
24703
  burnerWallet: burnerWallet != void 0,
24644
- webauthn: webauthn != void 0
24704
+ webauthn: webauthn != void 0,
24705
+ showDownload,
24706
+ web3Services
24645
24707
  }
24646
24708
  ),
24647
- screen == "p2p" && /* @__PURE__ */ jsx19(
24709
+ screen == "p2p" && /* @__PURE__ */ jsx21(
24648
24710
  ScreenP2P,
24649
24711
  {
24650
24712
  cardanoPeerConnect,
24651
24713
  setOpen
24652
24714
  }
24653
24715
  ),
24654
- screen == "burner" && burnerWallet && /* @__PURE__ */ jsx19(
24716
+ screen == "burner" && burnerWallet && /* @__PURE__ */ jsx21(
24655
24717
  ScreenBurner,
24656
24718
  {
24657
24719
  networkId: burnerWallet.networkId,
@@ -24659,7 +24721,7 @@ var CardanoWallet = ({
24659
24721
  setOpen
24660
24722
  }
24661
24723
  ),
24662
- screen == "webauthn" && webauthn && /* @__PURE__ */ jsx19(
24724
+ screen == "webauthn" && webauthn && /* @__PURE__ */ jsx21(
24663
24725
  ScreenWebauthn,
24664
24726
  {
24665
24727
  url: webauthn.url,
@@ -24668,7 +24730,7 @@ var CardanoWallet = ({
24668
24730
  setOpen
24669
24731
  }
24670
24732
  ),
24671
- /* @__PURE__ */ jsx19(Footer, {})
24733
+ /* @__PURE__ */ jsx21(Footer, {})
24672
24734
  ]
24673
24735
  }
24674
24736
  )
@@ -24680,23 +24742,23 @@ function Header({
24680
24742
  }) {
24681
24743
  return /* @__PURE__ */ jsxs13(DialogHeader, { children: [
24682
24744
  /* @__PURE__ */ jsxs13(DialogTitle, { className: "mesh-flex mesh-justify-between", children: [
24683
- screen != "main" ? /* @__PURE__ */ jsx19("button", { onClick: () => setScreen("main"), children: /* @__PURE__ */ jsx19(IconChevronRight, {}) }) : /* @__PURE__ */ jsx19("span", { style: { width: "24px" } }),
24684
- /* @__PURE__ */ jsx19("span", { children: screens[screen].title }),
24685
- /* @__PURE__ */ jsx19("span", { style: { width: "24px" } })
24745
+ screen != "main" ? /* @__PURE__ */ jsx21("button", { onClick: () => setScreen("main"), children: /* @__PURE__ */ jsx21(IconChevronRight, {}) }) : /* @__PURE__ */ jsx21("span", { style: { width: "24px" } }),
24746
+ /* @__PURE__ */ jsx21("span", { children: screens[screen].title }),
24747
+ /* @__PURE__ */ jsx21("span", { style: { width: "24px" } })
24686
24748
  ] }),
24687
- /* @__PURE__ */ jsx19(DialogDescription, { children: screens[screen].subtitle && screens[screen].subtitle })
24749
+ /* @__PURE__ */ jsx21(DialogDescription, { children: screens[screen].subtitle && screens[screen].subtitle })
24688
24750
  ] });
24689
24751
  }
24690
24752
  function Footer() {
24691
- return /* @__PURE__ */ jsx19(DialogFooter, { className: "mesh-justify-center mesh-text-sm", children: /* @__PURE__ */ jsxs13(
24753
+ return /* @__PURE__ */ jsx21(DialogFooter, { className: "mesh-justify-center mesh-text-sm", children: /* @__PURE__ */ jsxs13(
24692
24754
  "a",
24693
24755
  {
24694
24756
  href: "https://meshjs.dev/",
24695
24757
  target: "_blank",
24696
24758
  className: "mesh-grow mesh-flex mesh-gap-1 mesh-items-center mesh-justify-center mesh-text-zinc-500 hover:mesh-text-white mesh-fill-zinc-500 hover:mesh-fill-white",
24697
24759
  children: [
24698
- /* @__PURE__ */ jsx19("span", { className: "", children: "Powered by" }),
24699
- /* @__PURE__ */ jsx19(
24760
+ /* @__PURE__ */ jsx21("span", { className: "", children: "Powered by" }),
24761
+ /* @__PURE__ */ jsx21(
24700
24762
  "svg",
24701
24763
  {
24702
24764
  width: 24,
@@ -24704,30 +24766,30 @@ function Footer() {
24704
24766
  enableBackground: "new 0 0 300 200",
24705
24767
  viewBox: "0 0 300 200",
24706
24768
  xmlns: "http://www.w3.org/2000/svg",
24707
- children: /* @__PURE__ */ jsx19("path", { d: "m289 127-45-60-45-60c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-37 49.3c-2 2.7-6 2.7-8 0l-37-49.3c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-45 60-45 60c-1.3 1.8-1.3 4.2 0 6l45 60c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l45-60c1.3-1.8 1.3-4.2 0-6zm-90-103.3 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-90 0 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-53 152.6-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0z" })
24769
+ children: /* @__PURE__ */ jsx21("path", { d: "m289 127-45-60-45-60c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-37 49.3c-2 2.7-6 2.7-8 0l-37-49.3c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-45 60-45 60c-1.3 1.8-1.3 4.2 0 6l45 60c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l45-60c1.3-1.8 1.3-4.2 0-6zm-90-103.3 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-90 0 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-53 152.6-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0z" })
24708
24770
  }
24709
24771
  ),
24710
- /* @__PURE__ */ jsx19("span", { className: "", children: "Mesh SDK" })
24772
+ /* @__PURE__ */ jsx21("span", { className: "", children: "Mesh SDK" })
24711
24773
  ]
24712
24774
  }
24713
24775
  ) });
24714
24776
  }
24715
24777
 
24716
24778
  // src/mesh-badge/mesh-logo.tsx
24717
- import { jsx as jsx20 } from "react/jsx-runtime";
24718
- var MeshLogo = () => /* @__PURE__ */ jsx20(
24779
+ import { jsx as jsx22 } from "react/jsx-runtime";
24780
+ var MeshLogo = () => /* @__PURE__ */ jsx22(
24719
24781
  "svg",
24720
24782
  {
24721
24783
  className: "mesh-h-16 mesh-p-2",
24722
24784
  fill: "currentColor",
24723
24785
  viewBox: "0 0 300 200",
24724
24786
  xmlns: "http://www.w3.org/2000/svg",
24725
- children: /* @__PURE__ */ jsx20("path", { d: "m289 127-45-60-45-60c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-37 49.3c-2 2.7-6 2.7-8 0l-37-49.3c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-45 60-45 60c-1.3 1.8-1.3 4.2 0 6l45 60c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l45-60c1.3-1.8 1.3-4.2 0-6zm-90-103.3 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-90 0 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-53 152.6-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0z" })
24787
+ children: /* @__PURE__ */ jsx22("path", { d: "m289 127-45-60-45-60c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-37 49.3c-2 2.7-6 2.7-8 0l-37-49.3c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-45 60-45 60c-1.3 1.8-1.3 4.2 0 6l45 60c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l45-60c1.3-1.8 1.3-4.2 0-6zm-90-103.3 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-90 0 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-53 152.6-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0z" })
24726
24788
  }
24727
24789
  );
24728
24790
 
24729
24791
  // src/mesh-badge/index.tsx
24730
- import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
24792
+ import { jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
24731
24793
  var MeshBadge = ({ isDark = false }) => /* @__PURE__ */ jsxs14(
24732
24794
  "a",
24733
24795
  {
@@ -24740,21 +24802,21 @@ var MeshBadge = ({ isDark = false }) => /* @__PURE__ */ jsxs14(
24740
24802
  rel: "noopener noreferrer",
24741
24803
  target: "_blank",
24742
24804
  children: [
24743
- /* @__PURE__ */ jsx21(MeshLogo, {}),
24805
+ /* @__PURE__ */ jsx23(MeshLogo, {}),
24744
24806
  "Mesh"
24745
24807
  ]
24746
24808
  }
24747
24809
  );
24748
24810
 
24749
24811
  // src/stake-button/index.tsx
24750
- import { useEffect as useEffect12, useState as useState14 } from "react";
24812
+ import { useEffect as useEffect12, useState as useState15 } from "react";
24751
24813
  import { Transaction } from "@meshsdk/transaction";
24752
24814
 
24753
24815
  // src/cardano-wallet-dropdown/index.tsx
24754
- import { useEffect as useEffect11, useState as useState13 } from "react";
24816
+ import { useEffect as useEffect11, useState as useState14 } from "react";
24755
24817
 
24756
24818
  // src/common/button-dropdown.tsx
24757
- import { jsx as jsx22 } from "react/jsx-runtime";
24819
+ import { jsx as jsx24 } from "react/jsx-runtime";
24758
24820
  function ButtonDropdown({
24759
24821
  children,
24760
24822
  isDarkMode = false,
@@ -24763,7 +24825,7 @@ function ButtonDropdown({
24763
24825
  onMouseEnter,
24764
24826
  onMouseLeave
24765
24827
  }) {
24766
- return /* @__PURE__ */ jsx22(
24828
+ return /* @__PURE__ */ jsx24(
24767
24829
  "button",
24768
24830
  {
24769
24831
  className: `mesh-mr-menu-list mesh-flex mesh-w-60 mesh-items-center mesh-justify-center mesh-rounded-t-md mesh-border mesh-px-4 mesh-py-2 mesh-text-lg mesh-font-normal mesh-shadow-sm ${isDarkMode ? `mesh-bg-neutral-950 mesh-text-neutral-50` : `mesh-bg-neutral-50 mesh-text-neutral-950`}`,
@@ -24776,7 +24838,7 @@ function ButtonDropdown({
24776
24838
  }
24777
24839
 
24778
24840
  // src/cardano-wallet-dropdown/menu-item.tsx
24779
- import { jsx as jsx23, jsxs as jsxs15 } from "react/jsx-runtime";
24841
+ import { jsx as jsx25, jsxs as jsxs15 } from "react/jsx-runtime";
24780
24842
  function MenuItem({
24781
24843
  icon,
24782
24844
  label,
@@ -24789,8 +24851,8 @@ function MenuItem({
24789
24851
  className: "mesh-flex mesh-cursor-pointer mesh-items-center mesh-px-4 mesh-py-2 mesh-opacity-80 hover:mesh-opacity-100 mesh-h-16",
24790
24852
  onClick: action,
24791
24853
  children: [
24792
- icon && /* @__PURE__ */ jsx23("img", { className: "mesh-pr-2 mesh-m-1 mesh-h-8", src: icon }),
24793
- /* @__PURE__ */ jsx23("span", { className: "mesh-mr-menu-item mesh-text-xl mesh-font-normal mesh-text-neutral-700 hover:mesh-text-black", children: label.split(" ").map((word) => {
24854
+ icon && /* @__PURE__ */ jsx25("img", { className: "mesh-pr-2 mesh-m-1 mesh-h-8", src: icon }),
24855
+ /* @__PURE__ */ jsx25("span", { className: "mesh-mr-menu-item mesh-text-xl mesh-font-normal mesh-text-neutral-700 hover:mesh-text-black", children: label.split(" ").map((word) => {
24794
24856
  return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();
24795
24857
  }).join(" ") })
24796
24858
  ]
@@ -24799,8 +24861,8 @@ function MenuItem({
24799
24861
  }
24800
24862
 
24801
24863
  // src/cardano-wallet-dropdown/chevron-down.tsx
24802
- import { jsx as jsx24 } from "react/jsx-runtime";
24803
- var ChevronDown = () => /* @__PURE__ */ jsx24(
24864
+ import { jsx as jsx26 } from "react/jsx-runtime";
24865
+ var ChevronDown = () => /* @__PURE__ */ jsx26(
24804
24866
  "svg",
24805
24867
  {
24806
24868
  className: "mesh-m-2 mesh-h-6",
@@ -24809,7 +24871,7 @@ var ChevronDown = () => /* @__PURE__ */ jsx24(
24809
24871
  viewBox: "0 0 24 24",
24810
24872
  stroke: "currentColor",
24811
24873
  xmlns: "http://www.w3.org/2000/svg",
24812
- children: /* @__PURE__ */ jsx24(
24874
+ children: /* @__PURE__ */ jsx26(
24813
24875
  "path",
24814
24876
  {
24815
24877
  strokeLinecap: "round",
@@ -24822,7 +24884,7 @@ var ChevronDown = () => /* @__PURE__ */ jsx24(
24822
24884
  );
24823
24885
 
24824
24886
  // src/cardano-wallet-dropdown/wallet-balance.tsx
24825
- import { Fragment as Fragment4, jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
24887
+ import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs16 } from "react/jsx-runtime";
24826
24888
  var WalletBalance = ({
24827
24889
  connected,
24828
24890
  connecting,
@@ -24831,21 +24893,21 @@ var WalletBalance = ({
24831
24893
  }) => {
24832
24894
  const lovelace = useLovelace();
24833
24895
  return connected && lovelace && wallet?.icon ? /* @__PURE__ */ jsxs16(Fragment4, { children: [
24834
- /* @__PURE__ */ jsx25("img", { className: "mesh-m-2 mesh-h-6", src: wallet.icon }),
24896
+ /* @__PURE__ */ jsx27("img", { className: "mesh-m-2 mesh-h-6", src: wallet.icon }),
24835
24897
  "\u20B3",
24836
24898
  " ",
24837
24899
  parseInt((parseInt(lovelace, 10) / 1e6).toString(), 10),
24838
24900
  ".",
24839
- /* @__PURE__ */ jsx25("span", { className: "mesh-text-xs", children: lovelace.substring(lovelace.length - 6) })
24840
- ] }) : connected && wallet?.icon ? /* @__PURE__ */ jsx25(Fragment4, { children: /* @__PURE__ */ jsx25("img", { className: "mesh-m-2 mesh-h-6", src: wallet.icon }) }) : connecting ? /* @__PURE__ */ jsx25(Fragment4, { children: "Connecting..." }) : /* @__PURE__ */ jsxs16(Fragment4, { children: [
24901
+ /* @__PURE__ */ jsx27("span", { className: "mesh-text-xs", children: lovelace.substring(lovelace.length - 6) })
24902
+ ] }) : connected && wallet?.icon ? /* @__PURE__ */ jsx27(Fragment4, { children: /* @__PURE__ */ jsx27("img", { className: "mesh-m-2 mesh-h-6", src: wallet.icon }) }) : connecting ? /* @__PURE__ */ jsx27(Fragment4, { children: "Connecting..." }) : /* @__PURE__ */ jsxs16(Fragment4, { children: [
24841
24903
  label,
24842
24904
  " ",
24843
- /* @__PURE__ */ jsx25(ChevronDown, {})
24905
+ /* @__PURE__ */ jsx27(ChevronDown, {})
24844
24906
  ] });
24845
24907
  };
24846
24908
 
24847
24909
  // src/cardano-wallet-dropdown/index.tsx
24848
- import { Fragment as Fragment5, jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
24910
+ import { Fragment as Fragment5, jsx as jsx28, jsxs as jsxs17 } from "react/jsx-runtime";
24849
24911
  var CardanoWallet2 = ({
24850
24912
  label = "Connect Wallet",
24851
24913
  onConnected = void 0,
@@ -24853,8 +24915,8 @@ var CardanoWallet2 = ({
24853
24915
  extensions = [],
24854
24916
  cardanoPeerConnect = void 0
24855
24917
  }) => {
24856
- const [isDarkMode, setIsDarkMode] = useState13(false);
24857
- const [hideMenuList, setHideMenuList] = useState13(true);
24918
+ const [isDarkMode, setIsDarkMode] = useState14(false);
24919
+ const [hideMenuList, setHideMenuList] = useState14(true);
24858
24920
  const { connect: connect2, connecting, connected, disconnect, name } = useWallet();
24859
24921
  const wallets = useWalletList();
24860
24922
  useEffect11(() => {
@@ -24872,13 +24934,13 @@ var CardanoWallet2 = ({
24872
24934
  onMouseLeave: () => setHideMenuList(true),
24873
24935
  style: { width: "min-content", zIndex: 50 },
24874
24936
  children: [
24875
- /* @__PURE__ */ jsx26(
24937
+ /* @__PURE__ */ jsx28(
24876
24938
  ButtonDropdown,
24877
24939
  {
24878
24940
  isDarkMode,
24879
24941
  hideMenuList,
24880
24942
  setHideMenuList,
24881
- children: /* @__PURE__ */ jsx26(
24943
+ children: /* @__PURE__ */ jsx28(
24882
24944
  WalletBalance,
24883
24945
  {
24884
24946
  connected,
@@ -24889,12 +24951,12 @@ var CardanoWallet2 = ({
24889
24951
  )
24890
24952
  }
24891
24953
  ),
24892
- /* @__PURE__ */ jsx26(
24954
+ /* @__PURE__ */ jsx28(
24893
24955
  "div",
24894
24956
  {
24895
24957
  className: `mesh-mr-menu-list mesh-absolute mesh-w-60 mesh-rounded-b-md mesh-border mesh-text-center mesh-shadow-sm mesh-backdrop-blur ${hideMenuList && "mesh-hidden"} ${isDarkMode ? `mesh-bg-neutral-950 mesh-text-neutral-50` : `mesh-bg-neutral-50 mesh-text-neutral-950`}`,
24896
24958
  style: { zIndex: 50 },
24897
- children: !connected && wallets.length > 0 ? /* @__PURE__ */ jsx26(Fragment5, { children: wallets.map((wallet, index) => /* @__PURE__ */ jsx26(
24959
+ children: !connected && wallets.length > 0 ? /* @__PURE__ */ jsx28(Fragment5, { children: wallets.map((wallet, index) => /* @__PURE__ */ jsx28(
24898
24960
  MenuItem,
24899
24961
  {
24900
24962
  icon: wallet.icon,
@@ -24906,7 +24968,7 @@ var CardanoWallet2 = ({
24906
24968
  active: name === wallet.id
24907
24969
  },
24908
24970
  index
24909
- )) }) : wallets.length === 0 ? /* @__PURE__ */ jsx26("span", { children: "No Wallet Found" }) : /* @__PURE__ */ jsx26(Fragment5, { children: /* @__PURE__ */ jsx26(
24971
+ )) }) : wallets.length === 0 ? /* @__PURE__ */ jsx28("span", { children: "No Wallet Found" }) : /* @__PURE__ */ jsx28(Fragment5, { children: /* @__PURE__ */ jsx28(
24910
24972
  MenuItem,
24911
24973
  {
24912
24974
  active: false,
@@ -24923,7 +24985,7 @@ var CardanoWallet2 = ({
24923
24985
  };
24924
24986
 
24925
24987
  // src/stake-button/index.tsx
24926
- import { Fragment as Fragment6, jsx as jsx27 } from "react/jsx-runtime";
24988
+ import { Fragment as Fragment6, jsx as jsx29 } from "react/jsx-runtime";
24927
24989
  var StakeButton = ({
24928
24990
  label = "Stake your ADA",
24929
24991
  isDark = false,
@@ -24931,19 +24993,19 @@ var StakeButton = ({
24931
24993
  onCheck,
24932
24994
  onDelegated = void 0
24933
24995
  }) => {
24934
- const [isDarkMode, setIsDarkMode] = useState14(false);
24996
+ const [isDarkMode, setIsDarkMode] = useState15(false);
24935
24997
  const { connected } = useWallet();
24936
24998
  useEffect12(() => {
24937
24999
  setIsDarkMode(isDark);
24938
25000
  }, [isDark]);
24939
- return /* @__PURE__ */ jsx27(Fragment6, { children: connected ? /* @__PURE__ */ jsx27(ButtonDropdown, { isDarkMode, children: /* @__PURE__ */ jsx27(
25001
+ return /* @__PURE__ */ jsx29(Fragment6, { children: connected ? /* @__PURE__ */ jsx29(ButtonDropdown, { isDarkMode, children: /* @__PURE__ */ jsx29(
24940
25002
  Delegate,
24941
25003
  {
24942
25004
  poolId,
24943
25005
  onCheck,
24944
25006
  onDelegated
24945
25007
  }
24946
- ) }) : /* @__PURE__ */ jsx27(CardanoWallet2, { label, isDark }) });
25008
+ ) }) : /* @__PURE__ */ jsx29(CardanoWallet2, { label, isDark }) });
24947
25009
  };
24948
25010
  var Delegate = ({
24949
25011
  poolId,
@@ -24952,11 +25014,11 @@ var Delegate = ({
24952
25014
  }) => {
24953
25015
  const { wallet } = useWallet();
24954
25016
  const rewardAddress = useRewardAddress();
24955
- const [_, setError] = useState14();
24956
- const [checking, setChecking] = useState14(false);
24957
- const [accountInfo, setAccountInfo] = useState14();
24958
- const [processing, setProcessing] = useState14(false);
24959
- const [done, setDone] = useState14(false);
25017
+ const [_, setError] = useState15();
25018
+ const [checking, setChecking] = useState15(false);
25019
+ const [accountInfo, setAccountInfo] = useState15();
25020
+ const [processing, setProcessing] = useState15(false);
25021
+ const [done, setDone] = useState15(false);
24960
25022
  const checkAccountStatus = async () => {
24961
25023
  try {
24962
25024
  setChecking(true);
@@ -25011,18 +25073,18 @@ var Delegate = ({
25011
25073
  checkAccountStatus();
25012
25074
  }, [rewardAddress]);
25013
25075
  if (checking) {
25014
- return /* @__PURE__ */ jsx27("span", { children: "Checking..." });
25076
+ return /* @__PURE__ */ jsx29("span", { children: "Checking..." });
25015
25077
  }
25016
25078
  if (processing) {
25017
- return /* @__PURE__ */ jsx27("span", { children: "Loading..." });
25079
+ return /* @__PURE__ */ jsx29("span", { children: "Loading..." });
25018
25080
  }
25019
25081
  if (done) {
25020
- return /* @__PURE__ */ jsx27("span", { children: "Stake Delegated" });
25082
+ return /* @__PURE__ */ jsx29("span", { children: "Stake Delegated" });
25021
25083
  }
25022
25084
  if (accountInfo?.active) {
25023
- return accountInfo.poolId === poolId ? /* @__PURE__ */ jsx27("span", { children: "Stake Delegated" }) : /* @__PURE__ */ jsx27("span", { onClick: delegateStake, children: "Begin Staking" });
25085
+ return accountInfo.poolId === poolId ? /* @__PURE__ */ jsx29("span", { children: "Stake Delegated" }) : /* @__PURE__ */ jsx29("span", { onClick: delegateStake, children: "Begin Staking" });
25024
25086
  }
25025
- return /* @__PURE__ */ jsx27("span", { onClick: registerAddress, children: "Begin Staking" });
25087
+ return /* @__PURE__ */ jsx29("span", { onClick: registerAddress, children: "Begin Staking" });
25026
25088
  };
25027
25089
  export {
25028
25090
  CardanoWallet,