@thenamespace/ens-components 1.5.2 → 2.0.0-alpha.1

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
@@ -4,7 +4,7 @@ import * as chains$1 from 'viem/chains';
4
4
  import { baseSepolia, sepolia, mainnet, optimism, base as base$3, zoraSepolia, zora, celoAlfajores, celo, polygonMumbai, polygon, arbitrumSepolia, arbitrum, optimismSepolia } from 'viem/chains';
5
5
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
6
6
  import * as React from 'react';
7
- import React__default, { forwardRef, createElement, useState, useRef, useEffect, useCallback, useLayoutEffect, useMemo, createContext, useContext } from 'react';
7
+ import React__default, { forwardRef, createElement, useState, useRef, useEffect, useMemo, useCallback, useLayoutEffect, createContext, useContext } from 'react';
8
8
  import { useAccount, useSwitchChain, useReadContract, usePublicClient, useWalletClient } from 'wagmi';
9
9
  import { AvatarSDKError, ErrorCodes, createAvatarClient, HEADER_MAX_SIZE, AVATAR_MAX_SIZE, ALLOWED_FORMATS } from '@thenamespace/avatar';
10
10
  import 'crypto';
@@ -1516,6 +1516,97 @@ const ShurikenSpinner = ({
1516
1516
  );
1517
1517
  };
1518
1518
 
1519
+ const Tag = ({
1520
+ children,
1521
+ tone = "outline",
1522
+ className = "",
1523
+ dataTestId,
1524
+ ...rest
1525
+ }) => {
1526
+ const classes = ["ns-tag", `ns-tag--${tone}`, className].filter(Boolean).join(" ");
1527
+ return /* @__PURE__ */ jsx("span", { className: classes, "data-test-id": dataTestId, ...rest, children });
1528
+ };
1529
+
1530
+ const IDENTICON_LIGHT = "#9CCBE8";
1531
+ const IDENTICON_DARK = "#1E7FBF";
1532
+ const IDENTICON_GROUND = "#E6F1FA";
1533
+ const GRID = 8;
1534
+ const HALF = GRID / 2;
1535
+ const hashSeed = (seed) => {
1536
+ let hash = 2166136261;
1537
+ for (let i = 0; i < seed.length; i++) {
1538
+ hash ^= seed.charCodeAt(i);
1539
+ hash = Math.imul(hash, 16777619);
1540
+ }
1541
+ return hash >>> 0;
1542
+ };
1543
+ const makeRandom = (seed) => {
1544
+ let state = seed >>> 0;
1545
+ return () => {
1546
+ state = Math.imul(state, 1664525) + 1013904223 >>> 0;
1547
+ return state / 4294967296;
1548
+ };
1549
+ };
1550
+ const buildSvg = (seed) => {
1551
+ const random = makeRandom(hashSeed(seed));
1552
+ const cells = [];
1553
+ for (let y = 0; y < GRID; y++) {
1554
+ for (let x = 0; x < HALF; x++) {
1555
+ const filled = random() > 0.45;
1556
+ const fill = random() > 0.5 ? IDENTICON_DARK : IDENTICON_LIGHT;
1557
+ if (!filled) {
1558
+ continue;
1559
+ }
1560
+ cells.push(`<rect x="${x}" y="${y}" width="1" height="1" fill="${fill}"/>`);
1561
+ cells.push(
1562
+ `<rect x="${GRID - 1 - x}" y="${y}" width="1" height="1" fill="${fill}"/>`
1563
+ );
1564
+ }
1565
+ }
1566
+ return [
1567
+ `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${GRID} ${GRID}" shape-rendering="crispEdges">`,
1568
+ `<rect width="${GRID}" height="${GRID}" fill="${IDENTICON_GROUND}"/>`,
1569
+ cells.join(""),
1570
+ "</svg>"
1571
+ ].join("");
1572
+ };
1573
+ const Identicon = ({
1574
+ seed,
1575
+ size = 34,
1576
+ alt = "",
1577
+ className = "",
1578
+ style,
1579
+ dataTestId,
1580
+ ...rest
1581
+ }) => {
1582
+ const src = useMemo(
1583
+ () => `data:image/svg+xml;charset=utf-8,${encodeURIComponent(buildSvg(seed))}`,
1584
+ [seed]
1585
+ );
1586
+ const classes = ["ns-identicon", "identicon", className].filter(Boolean).join(" ");
1587
+ return /* @__PURE__ */ jsx(
1588
+ "img",
1589
+ {
1590
+ className: classes,
1591
+ src,
1592
+ alt,
1593
+ width: size,
1594
+ height: size,
1595
+ "data-test-id": dataTestId,
1596
+ style: {
1597
+ display: "block",
1598
+ flex: "none",
1599
+ width: size,
1600
+ height: size,
1601
+ borderRadius: 0,
1602
+ background: "var(--ns-blue-100)",
1603
+ ...style
1604
+ },
1605
+ ...rest
1606
+ }
1607
+ );
1608
+ };
1609
+
1519
1610
  const Dropdown = ({
1520
1611
  trigger,
1521
1612
  children,
@@ -12055,19 +12146,19 @@ const PricingDisplay = ({
12055
12146
  minSeconds: expiryPicker.minSeconds
12056
12147
  }
12057
12148
  ) }),
12058
- /* @__PURE__ */ jsxs("div", { className: "d-flex justify-content-between align-items-center mb-1", children: [
12059
- /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", children: primaryFee.label }),
12060
- /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", children: primaryFee.isChecking ? /* @__PURE__ */ jsx(ShurikenSpinner, { size: 14 }) : isSentinel(primaryFee.amount) ? primaryFee.amount : `${primaryFee.amount} ETH` })
12149
+ /* @__PURE__ */ jsxs("div", { className: "d-flex justify-content-between align-items-center mb-1 pricing-row", children: [
12150
+ /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", className: "pricing-label", children: primaryFee.label }),
12151
+ /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", className: "pricing-value", children: primaryFee.isChecking ? /* @__PURE__ */ jsx(ShurikenSpinner, { size: 14 }) : isSentinel(primaryFee.amount) ? primaryFee.amount : `${primaryFee.amount} ETH` })
12061
12152
  ] }),
12062
- networkFees && /* @__PURE__ */ jsxs("div", { className: "d-flex justify-content-between align-items-center mb-1", children: [
12063
- /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", children: "Est. network fees" }),
12064
- /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", children: networkFees.isChecking ? /* @__PURE__ */ jsx(ShurikenSpinner, { size: 14 }) : networkFees.amount === "N/A" ? "N/A" : `${networkFees.amount} ETH` })
12153
+ networkFees && /* @__PURE__ */ jsxs("div", { className: "d-flex justify-content-between align-items-center mb-1 pricing-row", children: [
12154
+ /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", className: "pricing-label", children: "Est. network fees" }),
12155
+ /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", className: "pricing-value", children: networkFees.isChecking ? /* @__PURE__ */ jsx(ShurikenSpinner, { size: 14 }) : networkFees.amount === "N/A" ? "N/A" : `${networkFees.amount} ETH` })
12065
12156
  ] }),
12066
12157
  /* @__PURE__ */ jsxs("div", { className: "d-flex justify-content-between align-items-center mt-2 total-fee", children: [
12067
- /* @__PURE__ */ jsx(Text, { size: "lg", weight: "bold", children: "Total" }),
12068
- /* @__PURE__ */ jsxs("div", { style: { textAlign: "right" }, children: [
12069
- /* @__PURE__ */ jsx(Text, { size: "lg", weight: "bold", children: totalLoading ? /* @__PURE__ */ jsx(ShurikenSpinner, { size: 18 }) : isSentinel(total.amount) ? total.amount : `${total.amount} ETH` }),
12070
- /* @__PURE__ */ jsx(Text, { size: "xs", color: "grey", children: totalUsd ? `\u2248 $${totalUsd}` : NBSP })
12158
+ /* @__PURE__ */ jsx(Text, { size: "lg", weight: "bold", className: "pricing-total-label", children: "Total" }),
12159
+ /* @__PURE__ */ jsxs("div", { className: "pricing-total-values", style: { textAlign: "right" }, children: [
12160
+ /* @__PURE__ */ jsx(Text, { size: "lg", weight: "bold", className: "pricing-total-value", children: totalLoading ? /* @__PURE__ */ jsx(ShurikenSpinner, { size: 18 }) : isSentinel(total.amount) ? total.amount : `${total.amount} ETH` }),
12161
+ /* @__PURE__ */ jsx(Text, { size: "xs", color: "grey", className: "pricing-total-usd", children: totalUsd ? `\u2248 $${totalUsd}` : NBSP })
12071
12162
  ] })
12072
12163
  ] })
12073
12164
  ] });
@@ -12082,7 +12173,8 @@ const TextRecords = ({
12082
12173
  initialTexts,
12083
12174
  searchFilter,
12084
12175
  focusRecordKey,
12085
- focusTrigger
12176
+ focusTrigger,
12177
+ onVisibilityChange
12086
12178
  }) => {
12087
12179
  const existingTextsMap = useMemo(() => {
12088
12180
  const map = {};
@@ -12229,7 +12321,11 @@ const TextRecords = ({
12229
12321
  }, [searchFilter]);
12230
12322
  const isGeneralCategory = category === TextRecordCategory.General;
12231
12323
  const hasCustomContent = isGeneralCategory && (committedCustomTexts.length > 0 || customDrafts.length > 0);
12232
- if (filteredItems.length === 0 && !hasCustomContent) {
12324
+ const isVisible = filteredItems.length > 0 || hasCustomContent;
12325
+ useEffect(() => {
12326
+ onVisibilityChange?.(isVisible);
12327
+ }, [isVisible]);
12328
+ if (!isVisible) {
12233
12329
  return /* @__PURE__ */ jsx(Fragment, {});
12234
12330
  }
12235
12331
  return /* @__PURE__ */ jsxs("div", { className: "ns-text-records", children: [
@@ -12374,13 +12470,13 @@ const TextRecords = ({
12374
12470
  className: "ns-text-suggestion",
12375
12471
  onClick: () => handleTextAdded(record.key),
12376
12472
  children: [
12377
- /* @__PURE__ */ jsx(Icon, { size: 18, color: "grey", name: record.icon }),
12473
+ /* @__PURE__ */ jsx(Icon, { size: 16, color: "grey", name: record.icon }),
12378
12474
  /* @__PURE__ */ jsx(Text, { className: "ns-mt-1", size: "xs", weight: "medium", children: record.label })
12379
12475
  ]
12380
12476
  }
12381
12477
  ) }, record.key)),
12382
12478
  isGeneralCategory && /* @__PURE__ */ jsx("div", { className: "col col-lg-3 col-sm-6 col-6", children: /* @__PURE__ */ jsxs("div", { className: "ns-text-suggestion", onClick: handleAddCustomDraft, children: [
12383
- /* @__PURE__ */ jsx(Icon, { size: 18, color: "grey", name: "circle-help" }),
12479
+ /* @__PURE__ */ jsx(Icon, { size: 16, color: "grey", name: "circle-help" }),
12384
12480
  /* @__PURE__ */ jsx(Text, { className: "ns-mt-1", size: "xs", weight: "medium", children: "Custom" })
12385
12481
  ] }) })
12386
12482
  ] })
@@ -12391,7 +12487,8 @@ const AddressRecords = ({
12391
12487
  addresses,
12392
12488
  onAddressesChanged,
12393
12489
  initialAddresses,
12394
- searchFilter
12490
+ searchFilter,
12491
+ onVisibilityChange
12395
12492
  }) => {
12396
12493
  const existingAddressMap = useMemo(() => {
12397
12494
  const map = {};
@@ -12442,7 +12539,11 @@ const AddressRecords = ({
12442
12539
  const filteredAddresses = useMemo(() => {
12443
12540
  return supportedAddresses.filter((record) => filterAddress(record));
12444
12541
  }, [searchFilter]);
12445
- if (filteredAddresses.length === 0) {
12542
+ const isVisible = filteredAddresses.length > 0;
12543
+ useEffect(() => {
12544
+ onVisibilityChange?.(isVisible);
12545
+ }, [isVisible]);
12546
+ if (!isVisible) {
12446
12547
  return /* @__PURE__ */ jsx(Fragment, {});
12447
12548
  }
12448
12549
  return /* @__PURE__ */ jsxs("div", { className: "ns-text-records", children: [
@@ -12509,7 +12610,7 @@ const AddressRecords = ({
12509
12610
  className: "ns-text-suggestion",
12510
12611
  onClick: () => handleAddressAdded(record.coinType),
12511
12612
  children: [
12512
- /* @__PURE__ */ jsx(ChainIcon, { size: 20, chain: record.chainName }),
12613
+ /* @__PURE__ */ jsx(ChainIcon, { size: 16, chain: record.chainName }),
12513
12614
  /* @__PURE__ */ jsx(Text, { className: "ns-mt-1", size: "xs", weight: "medium", children: record.label })
12514
12615
  ]
12515
12616
  }
@@ -12522,7 +12623,8 @@ const ContenthashRecord = ({
12522
12623
  onContenthashChanged,
12523
12624
  onContenthashRemoved,
12524
12625
  onContenthashAdded,
12525
- searchFilter
12626
+ searchFilter,
12627
+ onVisibilityChange
12526
12628
  }) => {
12527
12629
  const inputRef = useRef(null);
12528
12630
  const metadata = useMemo(() => {
@@ -12565,7 +12667,11 @@ const ContenthashRecord = ({
12565
12667
  const filteredSuggestions = useMemo(() => {
12566
12668
  return supportedContenthashRecords.filter((record) => filterChash(record));
12567
12669
  }, [searchFilter]);
12568
- if (filteredSuggestions.length === 0) {
12670
+ const isVisible = filteredSuggestions.length > 0;
12671
+ useEffect(() => {
12672
+ onVisibilityChange?.(isVisible);
12673
+ }, [isVisible]);
12674
+ if (!isVisible) {
12569
12675
  return /* @__PURE__ */ jsx(Fragment, {});
12570
12676
  }
12571
12677
  return /* @__PURE__ */ jsxs("div", { className: "ns-text-records", children: [
@@ -12576,7 +12682,7 @@ const ContenthashRecord = ({
12576
12682
  className: "ns-text-suggestion",
12577
12683
  onClick: () => onContenthashAdded(record.protocol),
12578
12684
  children: [
12579
- /* @__PURE__ */ jsx(ContenthashIcon, { size: 20, protocol: record.protocol }),
12685
+ /* @__PURE__ */ jsx(ContenthashIcon, { size: 16, protocol: record.protocol }),
12580
12686
  /* @__PURE__ */ jsx(Text, { className: "ns-mt-1", size: "xs", weight: "medium", children: record.label })
12581
12687
  ]
12582
12688
  }
@@ -48278,6 +48384,12 @@ var RecordsSidebarItem = /* @__PURE__ */ ((RecordsSidebarItem2) => {
48278
48384
  RecordsSidebarItem2["Website"] = "Website";
48279
48385
  return RecordsSidebarItem2;
48280
48386
  })(RecordsSidebarItem || {});
48387
+ const navIcons = {
48388
+ ["General" /* General */]: "box",
48389
+ ["Social" /* Social */]: "square-user",
48390
+ ["Addresses" /* Addresses */]: "pin",
48391
+ ["Website" /* Website */]: "globe"
48392
+ };
48281
48393
  const IMAGE_RECORD_LABELS = {
48282
48394
  avatar: "Avatar",
48283
48395
  header: "Header"
@@ -48303,6 +48415,15 @@ const SelectRecordsForm = ({
48303
48415
  const addressesCategoryRef = useRef(null);
48304
48416
  const websiteCategoryRef = useRef(null);
48305
48417
  const [searchFilter, setSearchFilter] = useState("");
48418
+ const [sectionVisibility, setSectionVisibility] = useState({});
48419
+ const handleSectionVisibility = useCallback(
48420
+ (section) => (isVisible) => setSectionVisibility(
48421
+ (prev) => prev[section] === isVisible ? prev : { ...prev, [section]: isVisible }
48422
+ ),
48423
+ []
48424
+ );
48425
+ const hasSearchResults = Object.values(sectionVisibility).some(Boolean);
48426
+ const showEmptyState = searchFilter.trim().length > 0 && !hasSearchResults;
48306
48427
  const [currentNav, setCurrentNav] = useState(
48307
48428
  "General" /* General */
48308
48429
  );
@@ -48539,12 +48660,15 @@ const SelectRecordsForm = ({
48539
48660
  }
48540
48661
  ) }),
48541
48662
  /* @__PURE__ */ jsx("div", { className: "col col-sm-3 col-12 ns-records-sidebar", children: Object.keys(RecordsSidebarItem).map((item) => {
48542
- return /* @__PURE__ */ jsx(
48663
+ return /* @__PURE__ */ jsxs(
48543
48664
  "div",
48544
48665
  {
48545
48666
  onClick: () => handleSidebarChange(item),
48546
48667
  className: `sidebar-item ${item === currentNav ? "active" : ""}`,
48547
- children: /* @__PURE__ */ jsx(Text, { weight: "medium", size: "sm", children: item })
48668
+ children: [
48669
+ /* @__PURE__ */ jsx(Icon, { size: 16, name: navIcons[item] }),
48670
+ /* @__PURE__ */ jsx(Text, { weight: "medium", size: "sm", children: item })
48671
+ ]
48548
48672
  },
48549
48673
  item
48550
48674
  );
@@ -48563,6 +48687,7 @@ const SelectRecordsForm = ({
48563
48687
  onTextsChanged: handleTextsUpdated,
48564
48688
  category: TextRecordCategory.General,
48565
48689
  searchFilter,
48690
+ onVisibilityChange: handleSectionVisibility("general"),
48566
48691
  focusRecordKey: imageManualFocus?.record,
48567
48692
  focusTrigger: imageManualFocus?.trigger
48568
48693
  }
@@ -48574,7 +48699,8 @@ const SelectRecordsForm = ({
48574
48699
  texts: records.texts,
48575
48700
  onTextsChanged: handleTextsUpdated,
48576
48701
  category: TextRecordCategory.Social,
48577
- searchFilter
48702
+ searchFilter,
48703
+ onVisibilityChange: handleSectionVisibility("social")
48578
48704
  }
48579
48705
  ) }),
48580
48706
  /* @__PURE__ */ jsx("div", { ref: addressesCategoryRef, className: "ns-mb-2", children: /* @__PURE__ */ jsx(
@@ -48583,7 +48709,8 @@ const SelectRecordsForm = ({
48583
48709
  initialAddresses: initialRecords.addresses,
48584
48710
  addresses: records.addresses,
48585
48711
  onAddressesChanged: (e) => handleAddressesUpdated(e),
48586
- searchFilter
48712
+ searchFilter,
48713
+ onVisibilityChange: handleSectionVisibility("addresses")
48587
48714
  }
48588
48715
  ) }),
48589
48716
  /* @__PURE__ */ jsx("div", { ref: websiteCategoryRef, className: "ns-mb-2", children: /* @__PURE__ */ jsx(
@@ -48593,9 +48720,22 @@ const SelectRecordsForm = ({
48593
48720
  onContenthashChanged: (e) => handleContenthashUpdated(e),
48594
48721
  onContenthashRemoved: () => handleContenthashRemoved(),
48595
48722
  onContenthashAdded: (e) => handleContenthashAdded(e),
48596
- searchFilter
48723
+ searchFilter,
48724
+ onVisibilityChange: handleSectionVisibility("website")
48597
48725
  }
48598
- ) })
48726
+ ) }),
48727
+ showEmptyState && /* @__PURE__ */ jsxs("div", { className: "ns-records-empty", children: [
48728
+ /* @__PURE__ */ jsx(Text, { weight: "medium", size: "sm", children: "No records found" }),
48729
+ /* @__PURE__ */ jsx(
48730
+ "button",
48731
+ {
48732
+ type: "button",
48733
+ className: "ns-records-empty__clear",
48734
+ onClick: () => setSearchFilter(""),
48735
+ children: "Clear filter"
48736
+ }
48737
+ )
48738
+ ] })
48599
48739
  ]
48600
48740
  }
48601
48741
  )
@@ -48746,21 +48886,28 @@ const RegistrationSummary = ({
48746
48886
  suffix: /* @__PURE__ */ jsx(Text, { weight: "medium", size: "sm", color: "grey", children: ".eth" })
48747
48887
  }
48748
48888
  ),
48749
- label.length < MIN_ENS_LEN$2 && /* @__PURE__ */ jsx("div", { className: "ns-text-center mt-2", children: /* @__PURE__ */ jsx(Text, { size: "xs", color: "grey", children: "Minimum ENS name length is 3 characters" }) }),
48750
- label.length >= MIN_ENS_LEN$2 && nameValidation.isChecking && /* @__PURE__ */ jsxs(
48751
- "div",
48752
- {
48753
- className: "ns-text-center mt-2 d-flex align-items-center justify-content-center",
48754
- style: { gap: "8px" },
48755
- children: [
48756
- /* @__PURE__ */ jsx(ShurikenSpinner, { size: 18 }),
48757
- /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", children: "Checking availability" })
48758
- ]
48759
- }
48760
- ),
48761
- label.length >= MIN_ENS_LEN$2 && !nameValidation.isChecking && nameValidation.isTaken && /* @__PURE__ */ jsx("div", { className: "ns-text-center mt-2", children: /* @__PURE__ */ jsxs(Text, { size: "xs", color: "grey", children: [
48762
- label,
48763
- ".eth is not available"
48889
+ /* @__PURE__ */ jsx("div", { className: "ns-name-status", children: label.length < MIN_ENS_LEN$2 ? /* @__PURE__ */ jsxs(Fragment, { children: [
48890
+ /* @__PURE__ */ jsx("span", { className: "ns-dot" }),
48891
+ /* @__PURE__ */ jsxs("span", { className: "ns-name-status__text", children: [
48892
+ "Minimum ENS name length is ",
48893
+ MIN_ENS_LEN$2,
48894
+ " characters"
48895
+ ] })
48896
+ ] }) : nameValidation.isChecking ? /* @__PURE__ */ jsxs(Fragment, { children: [
48897
+ /* @__PURE__ */ jsx(ShurikenSpinner, { size: 14 }),
48898
+ /* @__PURE__ */ jsx("span", { className: "ns-name-status__text", children: "Checking availability" })
48899
+ ] }) : nameValidation.isTaken ? /* @__PURE__ */ jsxs(Fragment, { children: [
48900
+ /* @__PURE__ */ jsx("span", { className: "ns-dot ns-dot--bad" }),
48901
+ /* @__PURE__ */ jsxs("span", { className: "ns-name-status__text", children: [
48902
+ label,
48903
+ ".eth is not available"
48904
+ ] })
48905
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
48906
+ /* @__PURE__ */ jsx("span", { className: "ns-dot ns-dot--ok" }),
48907
+ /* @__PURE__ */ jsxs("span", { className: "ns-name-status__text", children: [
48908
+ label,
48909
+ ".eth is available"
48910
+ ] })
48764
48911
  ] }) }),
48765
48912
  isNameAvailable && /* @__PURE__ */ jsxs(Fragment, { children: [
48766
48913
  /* @__PURE__ */ jsx(
@@ -48800,7 +48947,19 @@ const RegistrationSummary = ({
48800
48947
  /* @__PURE__ */ jsx(Text, { size: "xs", color: "grey", children: "Make your ENS more discoverable" })
48801
48948
  ] })
48802
48949
  ] }),
48803
- /* @__PURE__ */ jsx(Button, { style: { width: 40, height: 40 }, children: `>` })
48950
+ /* @__PURE__ */ jsx("span", { className: "profile-cta-arrow", "aria-hidden": "true", children: /* @__PURE__ */ jsx(
48951
+ "svg",
48952
+ {
48953
+ width: "14",
48954
+ height: "14",
48955
+ viewBox: "0 0 16 16",
48956
+ fill: "none",
48957
+ stroke: "currentColor",
48958
+ strokeWidth: "1.6",
48959
+ strokeLinecap: "round",
48960
+ children: /* @__PURE__ */ jsx("path", { d: "M6 3.6 10.4 8 6 12.4" })
48961
+ }
48962
+ ) })
48804
48963
  ] })
48805
48964
  }
48806
48965
  )
@@ -49960,8 +50119,6 @@ function extractCanvasProps(props) {
49960
50119
  }
49961
50120
  const ReactConfetti = React__default.forwardRef((props, ref) => jsx(ReactConfettiInternal, { canvasRef: ref, ...props }));
49962
50121
 
49963
- var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAACBCAYAAABpepAsAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA+JSURBVHgB7V2/b9xGFv54uSJIc3udO48BFwFcWIcghSvxylRWAqQMtNcdkCJS/gGtuwQIIMmFixRZGUhq2U1arosA10mu4o5MbeBkl9eEx7fc0XK5/DFDzgxnuPMBT7viktzhzMdv37x5nAE8PNSDff3119F8Pk9//vnnOAzDE3h4OIJJZgeZhXzD+fl5nBYQx3F6//79I0gjqHnv0Q+u1KX5cu599913NxmWpCUiZ9u+of/L+P7772+Qk3+cCCQ/9PenfSgrMWE6naZVuPnvTUeV1gXPKI9N7F1dXW0Rl5Q6iqJKUj99+jSGBhSp+ReIIi0fquDbPfpDW31un/jBgwfTH3744ZI6fFlH7+Ddu3db+zDGkCRJ5Rm/+uorRueAYqTw8JAERSpIfYtKfHR0VKnEnVXaVrGzoVyBon1sgI5yyp7zl19+icvkJNLWEZdCdlWgDqMOleYQdzkkYMNPQKponyKGugF01KfsOT/66CNW3papdq17sbe3h8VisbV9Mpngyy+/1BaX1kLosWKXfbVMWa+rttf5zERo7mNfX18v35PR+8PDQ6ZTpT0shw2uERGwKr5c515QBIR8aR6jLv5P7589exZBAz6Ac/BhkiHw9u3byYcffjgllc1el64DB22j/2k7KfCdO3eW79+8eYOPP/54uQ9t5+9J0T/99FP2+vXrV0mdz+LhACy9F9uKVY5wkCIX/69SYeos8u30ypWZqzx9rkOlvQ+tA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5HZndrCqgZULz4ZKx3UgDFyrlFK3toXTuvxgCU5+lNlmHpdZodsr56kL34GESUwzDkxg1k1N2czlEHL+OzmHDIQlyd+GP1esCzjx/t8tDeFqunSH/FV6g9FBxN0I3lq9z4nYCviJTTtoEaxInMIFl0XU0gLrzuXdraC1tiFytL5D72Emw2sDo01JlJWiZGKaict9hs8OVlF75smFJxasbcFhsNRQ9RM1k+QNV0wU8PMaE/wMRdkPOOuRNywAAAABJRU5ErkJggg==";
49964
-
49965
50122
  const SuccessScreen$1 = ({
49966
50123
  ensName,
49967
50124
  durationLabel,
@@ -49998,7 +50155,7 @@ const SuccessScreen$1 = ({
49998
50155
  {
49999
50156
  ref: containerRef,
50000
50157
  className: "ens-registration-success-container",
50001
- style: { position: "relative", overflow: "hidden", padding: "10px" },
50158
+ style: { position: "relative", overflow: "hidden" },
50002
50159
  children: [
50003
50160
  containerSize.width > 0 && containerSize.height > 0 && /* @__PURE__ */ jsx(
50004
50161
  ReactConfetti,
@@ -50015,71 +50172,73 @@ const SuccessScreen$1 = ({
50015
50172
  }
50016
50173
  ),
50017
50174
  /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-card", style: { position: "relative", zIndex: 1 }, children: [
50018
- /* @__PURE__ */ jsx("div", { className: "ens-registration-success-illustration", children: /* @__PURE__ */ jsx("img", { src: img, alt: "Success Illustration" }) }),
50019
- /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-title-section", children: [
50020
- /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", className: "mb-2", children: "Hooray! You've registered" }),
50021
- /* @__PURE__ */ jsxs(Text, { size: "lg", weight: "bold", children: [
50022
- ensName,
50023
- ".eth"
50024
- ] })
50025
- ] }),
50026
- /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-summary", children: [
50027
- /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-summary-row", children: [
50028
- /* @__PURE__ */ jsxs(Text, { size: "sm", color: "grey", children: [
50029
- durationLabel,
50030
- " registration"
50031
- ] }),
50032
- /* @__PURE__ */ jsxs(Text, { size: "sm", color: "grey", children: [
50033
- parseFloat(registrationCost).toFixed(4),
50034
- " ETH"
50175
+ /* @__PURE__ */ jsx("div", { className: "ens-registration-success-band", children: "REGISTERED" }),
50176
+ /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-body", children: [
50177
+ /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-title-section", children: [
50178
+ /* @__PURE__ */ jsx(Identicon, { seed: `${ensName}.eth`, size: 44 }),
50179
+ /* @__PURE__ */ jsxs("span", { className: "ens-registration-success-name", children: [
50180
+ ensName,
50181
+ ".eth"
50035
50182
  ] })
50036
50183
  ] }),
50037
- /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-summary-row", children: [
50038
- /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", children: "Transaction fees" }),
50039
- /* @__PURE__ */ jsxs(Text, { size: "sm", color: "grey", children: [
50040
- parseFloat(transactionFees).toFixed(4),
50041
- " ETH"
50184
+ /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-summary", children: [
50185
+ /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-summary-row", children: [
50186
+ /* @__PURE__ */ jsxs(Text, { size: "sm", color: "grey", children: [
50187
+ durationLabel,
50188
+ " registration"
50189
+ ] }),
50190
+ /* @__PURE__ */ jsxs(Text, { size: "sm", color: "grey", children: [
50191
+ parseFloat(registrationCost).toFixed(4),
50192
+ " ETH"
50193
+ ] })
50194
+ ] }),
50195
+ /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-summary-row", children: [
50196
+ /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", children: "Transaction fees" }),
50197
+ /* @__PURE__ */ jsxs(Text, { size: "sm", color: "grey", children: [
50198
+ parseFloat(transactionFees).toFixed(4),
50199
+ " ETH"
50200
+ ] })
50201
+ ] }),
50202
+ /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-summary-row ens-registration-success-total", children: [
50203
+ /* @__PURE__ */ jsx(Text, { size: "lg", weight: "bold", children: "Total" }),
50204
+ /* @__PURE__ */ jsx("div", { className: "ens-registration-success-total-amount", children: /* @__PURE__ */ jsxs(Text, { size: "lg", weight: "bold", children: [
50205
+ parseFloat(total).toFixed(4),
50206
+ " ETH"
50207
+ ] }) })
50208
+ ] }),
50209
+ /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-summary-row ens-registration-success-expiry", children: [
50210
+ /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", children: "Name Expires" }),
50211
+ /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", children: expiryDate })
50042
50212
  ] })
50043
50213
  ] }),
50044
- /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-summary-row ens-registration-success-total", children: [
50045
- /* @__PURE__ */ jsx(Text, { size: "lg", weight: "bold", children: "Total" }),
50046
- /* @__PURE__ */ jsx("div", { className: "ens-registration-success-total-amount", children: /* @__PURE__ */ jsxs(Text, { size: "lg", weight: "bold", children: [
50047
- parseFloat(total).toFixed(4),
50048
- " ETH"
50049
- ] }) })
50214
+ /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-actions", children: [
50215
+ /* @__PURE__ */ jsx(
50216
+ Button,
50217
+ {
50218
+ variant: "outline",
50219
+ onClick: onRegisterAnother,
50220
+ className: "ens-registration-success-register-another-btn",
50221
+ children: "Register another"
50222
+ }
50223
+ ),
50224
+ /* @__PURE__ */ jsx(
50225
+ Button,
50226
+ {
50227
+ variant: "outline",
50228
+ onClick: () => {
50229
+ if (onViewName) {
50230
+ onViewName();
50231
+ } else {
50232
+ window.open(getEnsAppUrl(`${ensName}.eth`, isTestnet), "_blank", "noopener,noreferrer");
50233
+ }
50234
+ },
50235
+ className: "ens-registration-success-view-name-btn",
50236
+ children: "View Name"
50237
+ }
50238
+ )
50050
50239
  ] }),
50051
- /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-summary-row ens-registration-success-expiry", children: [
50052
- /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", children: "Name Expires" }),
50053
- /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", children: expiryDate })
50054
- ] })
50055
- ] }),
50056
- /* @__PURE__ */ jsxs("div", { className: "ens-registration-success-actions", children: [
50057
- /* @__PURE__ */ jsx(
50058
- Button,
50059
- {
50060
- variant: "outline",
50061
- onClick: onRegisterAnother,
50062
- className: "ens-registration-success-register-another-btn",
50063
- children: "Register another"
50064
- }
50065
- ),
50066
- /* @__PURE__ */ jsx(
50067
- Button,
50068
- {
50069
- variant: "outline",
50070
- onClick: () => {
50071
- if (onViewName) {
50072
- onViewName();
50073
- } else {
50074
- window.open(getEnsAppUrl(`${ensName}.eth`, isTestnet), "_blank", "noopener,noreferrer");
50075
- }
50076
- },
50077
- className: "ens-registration-success-view-name-btn",
50078
- children: "View Name"
50079
- }
50080
- )
50081
- ] }),
50082
- /* @__PURE__ */ jsx(Button, { onClick: () => onGreat?.(), size: "lg", className: "ns-wd-100 mt-2", children: "Great!" })
50240
+ /* @__PURE__ */ jsx(Button, { onClick: () => onGreat?.(), size: "lg", className: "ns-wd-100 mt-2", children: "Great!" })
50241
+ ] })
50083
50242
  ] })
50084
50243
  ]
50085
50244
  }
@@ -50974,6 +51133,8 @@ const RecordUpdateSummary = ({
50974
51133
  ] });
50975
51134
  };
50976
51135
 
51136
+ var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAACBCAYAAABpepAsAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA+JSURBVHgB7V2/b9xGFv54uSJIc3udO48BFwFcWIcghSvxylRWAqQMtNcdkCJS/gGtuwQIIMmFixRZGUhq2U1arosA10mu4o5MbeBkl9eEx7fc0XK5/DFDzgxnuPMBT7viktzhzMdv37x5nAE8PNSDff3119F8Pk9//vnnOAzDE3h4OIJJZgeZhXzD+fl5nBYQx3F6//79I0gjqHnv0Q+u1KX5cu599913NxmWpCUiZ9u+of/L+P7772+Qk3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Qet5BtaycJrYN32tBe2HPkT+K8gC5oUwD9kG3rYQntcEUrwAK5IpO/rDREulWtTilAP9QQ2hDTrKzoPtcudGyC3E8mMi+gAU7xVzHVajqF9lWJuehUn29pPJZUmNyLoQetlKJ7u6yOVNyozkQ5HP7VHCWRObq3i54W9WE7fRg1kW2F/YTu7WsEy3zytGK7JpXwRB4QRgndiUK9OZfWnEL+xALZcJ7IA8MooV2PHtWU3xPZIngfujsWyDPhFrAFPlFJN6HdrOGGUpMCP0c+qrdo3ds0WorRO8TmADQTWldyhN7KTbe/cpFt3JjEcV2KXZBEd66xhtBipBnmvjX2jQlyNT7LvvLdYKVQCFUtarNe9xopHKE2JchJvMAOTeO6hvvt7juFOXFfYWdJ3BGWyrQiQtcNXlgJch+ukU9sTp27BD3Rp22dDUxYWmhFhLaezAvkSy8TgYnMSuPFfbzOHY+yiSJCHiK9ENk5HZndrCqgZULz4ZKx3UgDFyrlFK3toXTuvxgCU5+lNlmHpdZodsr56kL34GESUwzDkxg1k1N2czlEHL+OzmHDIQlyd+GP1esCzjx/t8tDeFqunSH/FV6g9FBxN0I3lq9z4nYCviJTTtoEaxInMIFl0XU0gLrzuXdraC1tiFytL5D72Emw2sDo01JlJWiZGKaict9hs8OVlF75smFJxasbcFhsNRQ9RM1k+QNV0wU8PMaE/wMRdkPOOuRNywAAAABJRU5ErkJggg==";
51137
+
50977
51138
  const RecordUpdateProgress = ({
50978
51139
  tx,
50979
51140
  chainId,
@@ -51451,29 +51612,41 @@ const NameAvailabilityInput = ({
51451
51612
  suffix: /* @__PURE__ */ jsx(Text, { weight: "medium", size: "sm", color: "grey", children: parentName })
51452
51613
  }
51453
51614
  ),
51454
- showMinLengthMessage && /* @__PURE__ */ jsx("div", { className: "ns-text-center mt-2", children: /* @__PURE__ */ jsx(Text, { size: "xs", color: "grey", children: "Minimum subname length is 1 character" }) }),
51455
- showCheckingMessage && /* @__PURE__ */ jsxs(
51456
- "div",
51457
- {
51458
- className: "ns-text-center mt-2 d-flex align-items-center justify-content-center",
51459
- style: { gap: "8px" },
51460
- children: [
51461
- /* @__PURE__ */ jsx(ShurikenSpinner, { size: 18 }),
51462
- /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", children: "Checking availability" })
51463
- ]
51464
- }
51465
- ),
51466
- showUnavailableMessage && /* @__PURE__ */ jsx("div", { className: "ns-text-center mt-2", children: /* @__PURE__ */ jsxs(Text, { size: "xs", color: "grey", children: [
51467
- label,
51468
- ".",
51469
- parentName,
51470
- " is not available"
51471
- ] }) }),
51472
- showReservedMessage && /* @__PURE__ */ jsx("div", { className: "ns-text-center mt-2", children: /* @__PURE__ */ jsxs(Text, { size: "xs", color: "grey", children: [
51473
- label,
51474
- ".",
51475
- parentName,
51476
- " is reserved"
51615
+ /* @__PURE__ */ jsx("div", { className: "ns-name-status", children: showMinLengthMessage ? /* @__PURE__ */ jsxs(Fragment, { children: [
51616
+ /* @__PURE__ */ jsx("span", { className: "ns-dot" }),
51617
+ /* @__PURE__ */ jsxs("span", { className: "ns-name-status__text", children: [
51618
+ "Minimum subname length is ",
51619
+ minLength,
51620
+ " character",
51621
+ minLength === 1 ? "" : "s"
51622
+ ] })
51623
+ ] }) : showCheckingMessage ? /* @__PURE__ */ jsxs(Fragment, { children: [
51624
+ /* @__PURE__ */ jsx(ShurikenSpinner, { size: 14 }),
51625
+ /* @__PURE__ */ jsx("span", { className: "ns-name-status__text", children: "Checking availability" })
51626
+ ] }) : showUnavailableMessage ? /* @__PURE__ */ jsxs(Fragment, { children: [
51627
+ /* @__PURE__ */ jsx("span", { className: "ns-dot ns-dot--bad" }),
51628
+ /* @__PURE__ */ jsxs("span", { className: "ns-name-status__text", children: [
51629
+ label,
51630
+ ".",
51631
+ parentName,
51632
+ " is not available"
51633
+ ] })
51634
+ ] }) : showReservedMessage ? /* @__PURE__ */ jsxs(Fragment, { children: [
51635
+ /* @__PURE__ */ jsx("span", { className: "ns-dot ns-dot--soon" }),
51636
+ /* @__PURE__ */ jsxs("span", { className: "ns-name-status__text", children: [
51637
+ label,
51638
+ ".",
51639
+ parentName,
51640
+ " is reserved"
51641
+ ] })
51642
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
51643
+ /* @__PURE__ */ jsx("span", { className: "ns-dot ns-dot--ok" }),
51644
+ /* @__PURE__ */ jsxs("span", { className: "ns-name-status__text", children: [
51645
+ label,
51646
+ ".",
51647
+ parentName,
51648
+ " is available"
51649
+ ] })
51477
51650
  ] }) })
51478
51651
  ] });
51479
51652
  };
@@ -51501,7 +51674,19 @@ const ProfileSelector = ({ onSelect }) => {
51501
51674
  /* @__PURE__ */ jsx(Text, { size: "xs", color: "grey", children: "Make your ENS more discoverable" })
51502
51675
  ] })
51503
51676
  ] }),
51504
- /* @__PURE__ */ jsx(Button, { style: { width: 40, height: 40 }, children: `>` })
51677
+ /* @__PURE__ */ jsx("span", { className: "profile-cta-arrow", "aria-hidden": "true", children: /* @__PURE__ */ jsx(
51678
+ "svg",
51679
+ {
51680
+ width: "14",
51681
+ height: "14",
51682
+ viewBox: "0 0 16 16",
51683
+ fill: "none",
51684
+ stroke: "currentColor",
51685
+ strokeWidth: "1.6",
51686
+ strokeLinecap: "round",
51687
+ children: /* @__PURE__ */ jsx("path", { d: "M6 3.6 10.4 8 6 12.4" })
51688
+ }
51689
+ ) })
51505
51690
  ] })
51506
51691
  }
51507
51692
  );
@@ -52374,16 +52559,33 @@ const SubnameInput = ({
52374
52559
  ] }) })
52375
52560
  }
52376
52561
  ),
52377
- value.length > 0 && value.length < minLength && /* @__PURE__ */ jsx("div", { className: "ns-text-center mt-2", children: /* @__PURE__ */ jsxs(Text, { size: "xs", color: "grey", children: [
52378
- "Minimum subname length is ",
52379
- minLength,
52380
- " character"
52381
- ] }) }),
52382
- !isUpdateMode && value.length >= minLength && !isChecking && !isLoading && !isAvailable && /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsxs(Text, { size: "xs", color: "grey", children: [
52383
- value,
52384
- ".",
52385
- parentName,
52386
- " is not available"
52562
+ !isUpdateMode && value.length > 0 && /* @__PURE__ */ jsx("div", { className: "ns-name-status", children: value.length < minLength ? /* @__PURE__ */ jsxs(Fragment, { children: [
52563
+ /* @__PURE__ */ jsx("span", { className: "ns-dot" }),
52564
+ /* @__PURE__ */ jsxs("span", { className: "ns-name-status__text", children: [
52565
+ "Minimum subname length is ",
52566
+ minLength,
52567
+ " character",
52568
+ minLength === 1 ? "" : "s"
52569
+ ] })
52570
+ ] }) : isChecking || isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
52571
+ /* @__PURE__ */ jsx(ShurikenSpinner, { size: 14 }),
52572
+ /* @__PURE__ */ jsx("span", { className: "ns-name-status__text", children: "Checking availability" })
52573
+ ] }) : isAvailable ? /* @__PURE__ */ jsxs(Fragment, { children: [
52574
+ /* @__PURE__ */ jsx("span", { className: "ns-dot ns-dot--ok" }),
52575
+ /* @__PURE__ */ jsxs("span", { className: "ns-name-status__text", children: [
52576
+ value,
52577
+ ".",
52578
+ parentName,
52579
+ " is available"
52580
+ ] })
52581
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
52582
+ /* @__PURE__ */ jsx("span", { className: "ns-dot ns-dot--bad" }),
52583
+ /* @__PURE__ */ jsxs("span", { className: "ns-name-status__text", children: [
52584
+ value,
52585
+ ".",
52586
+ parentName,
52587
+ " is not available"
52588
+ ] })
52387
52589
  ] }) })
52388
52590
  ] });
52389
52591
  };
@@ -52884,5 +53086,5 @@ const useTheme = () => {
52884
53086
  return ctx;
52885
53087
  };
52886
53088
 
52887
- export { Accordion, Alert, Button, Card, ChainIcon, ConnectAndSetChain, ContenthashIcon, ContenthashProtocol, ContractErrorLabel, Dropdown, DurationPicker, ENS_RESOLVER_ABI, ETH_SENTINELS, EnsNameRegistrationForm, EnsRecordsForm, Icon, Input, ListingNetwork, ListingType, MIN_REGISTRATION_SECONDS, MULTICALL, Modal, ONE_DAY, ONE_YEAR, OffchainSubnameForm, PricingDisplay, ProfileHeader, ProgressBar, SET_ADDRESS_FUNC, SET_CONTENTHASH_FUNC, SET_TEXT_FUNC, SelectRecordsForm, ShurikenSpinner, SubnameMintForm, Text, TextRecordCategory, Textarea, ThemeProvider, Tooltip, TransactionPendingScreen, TxProgress, capitalize, computeUsd, convertEVMChainIdToCoinType, convertToMulticallResolverData, convertToResolverData, createEnsReferer, debounce, deepCopy, diffToEnsRecords, ensureFloatInput, equalsIgnoreCase, formatDurationSummary, formatEth, formatFloat, getAvatarUploadErrorMessage, getBlockExplorer, getBlockExplorerAddressUrl, getBlockExplorerName, getBlockExplorerTransactionUrl, getChainIdForListingNetwork, getEnsAppUrl, getEnsRecordsDiff, getImageUploadErrorMessage, getSupportedAddressByChainId, getSupportedAddressByCoin, getSupportedAddressByName, getSupportedAddressMap, getSupportedChashByProtocol, getSupportedText, isCommitmentToNewErr, isContenthashValid, isSentinel, isUserDeniedError, roundDurationWithDay, secondsFromYears, secondsToDateInput, supportedAddresses, supportedContenthashRecords, supportedTexts, usdFromWei, useAvatarClient, useENSResolver, useEthDollarValue, useMintManager, useMintSubname, useOffchainManager, useRegisterENS, useTheme, useWaitTransaction, validateEnsRecords, wait, yearsFromSeconds };
53089
+ export { Accordion, Alert, Button, Card, ChainIcon, ConnectAndSetChain, ContenthashIcon, ContenthashProtocol, ContractErrorLabel, Dropdown, DurationPicker, ENS_RESOLVER_ABI, ETH_SENTINELS, EnsNameRegistrationForm, EnsRecordsForm, Icon, Identicon, Input, ListingNetwork, ListingType, MIN_REGISTRATION_SECONDS, MULTICALL, Modal, ONE_DAY, ONE_YEAR, OffchainSubnameForm, PricingDisplay, ProfileHeader, ProgressBar, SET_ADDRESS_FUNC, SET_CONTENTHASH_FUNC, SET_TEXT_FUNC, SelectRecordsForm, ShurikenSpinner, SubnameMintForm, Tag, Text, TextRecordCategory, Textarea, ThemeProvider, Tooltip, TransactionPendingScreen, TxProgress, capitalize, computeUsd, convertEVMChainIdToCoinType, convertToMulticallResolverData, convertToResolverData, createEnsReferer, debounce, deepCopy, diffToEnsRecords, ensureFloatInput, equalsIgnoreCase, formatDurationSummary, formatEth, formatFloat, getAvatarUploadErrorMessage, getBlockExplorer, getBlockExplorerAddressUrl, getBlockExplorerName, getBlockExplorerTransactionUrl, getChainIdForListingNetwork, getEnsAppUrl, getEnsRecordsDiff, getImageUploadErrorMessage, getSupportedAddressByChainId, getSupportedAddressByCoin, getSupportedAddressByName, getSupportedAddressMap, getSupportedChashByProtocol, getSupportedText, isCommitmentToNewErr, isContenthashValid, isSentinel, isUserDeniedError, roundDurationWithDay, secondsFromYears, secondsToDateInput, supportedAddresses, supportedContenthashRecords, supportedTexts, usdFromWei, useAvatarClient, useENSResolver, useEthDollarValue, useMintManager, useMintSubname, useOffchainManager, useRegisterENS, useTheme, useWaitTransaction, validateEnsRecords, wait, yearsFromSeconds };
52888
53090
  //# sourceMappingURL=index.js.map