@latticexyz/entrykit 2.2.22-091ece6264dd4cdbdc21ea3d22347a6f1043a6a3 → 2.2.22-0e714cf3a76af8d526debc4ca830b53a7fab74d2
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.
|
@@ -22,7 +22,7 @@ import { forwardRef, useEffect, useRef, useState } from "react";
|
|
|
22
22
|
import ReactDOM from "react-dom";
|
|
23
23
|
|
|
24
24
|
// ../../node_modules/.pnpm/tailwindcss@3.4.13/node_modules/tailwindcss/tailwind.css?inline
|
|
25
|
-
var tailwind_default = '*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */ /* 3 */\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type=\'button\']),\ninput:where([type=\'reset\']),\ninput:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n.container {\n width: 100%;\n}\n\n@media (min-width: 640px) {\n\n .container {\n max-width: 640px;\n }\n}\n\n@media (min-width: 768px) {\n\n .container {\n max-width: 768px;\n }\n}\n\n@media (min-width: 1024px) {\n\n .container {\n max-width: 1024px;\n }\n}\n\n@media (min-width: 1280px) {\n\n .container {\n max-width: 1280px;\n }\n}\n\n@media (min-width: 1536px) {\n\n .container {\n max-width: 1536px;\n }\n}\n\n.grid-cols-2.divide-y > :not([hidden]) ~ :not([hidden]):nth-child(-n + 2) {\n border-top-width: 0;\n border-bottom-width: 0;\n}\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.pointer-events-none {\n pointer-events: none;\n}\n\n.pointer-events-auto {\n pointer-events: auto;\n}\n\n.fixed {\n position: fixed;\n}\n\n.absolute {\n position: absolute;\n}\n\n.relative {\n position: relative;\n}\n\n.sticky {\n position: sticky;\n}\n\n.inset-0 {\n inset: 0px;\n}\n\n.bottom-0 {\n bottom: 0px;\n}\n\n.left-0 {\n left: 0px;\n}\n\n.right-0 {\n right: 0px;\n}\n\n.top-0 {\n top: 0px;\n}\n\n.col-start-1 {\n grid-column-start: 1;\n}\n\n.row-start-1 {\n grid-row-start: 1;\n}\n\n.m-0 {\n margin: 0px;\n}\n\n.m-2 {\n margin: 0.5rem;\n}\n\n.-mx-0\\.5 {\n margin-left: -0.125rem;\n margin-right: -0.125rem;\n}\n\n.-my-1 {\n margin-top: -0.25rem;\n margin-bottom: -0.25rem;\n}\n\n.-my-\\[0\\.125em\\] {\n margin-top: -0.125em;\n margin-bottom: -0.125em;\n}\n\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n\n.-ml-3 {\n margin-left: -0.75rem;\n}\n\n.-mr-1 {\n margin-right: -0.25rem;\n}\n\n.-mt-2 {\n margin-top: -0.5rem;\n}\n\n.mt-1 {\n margin-top: 0.25rem;\n}\n\n.mt-4 {\n margin-top: 1rem;\n}\n\n.block {\n display: block;\n}\n\n.inline-block {\n display: inline-block;\n}\n\n.flex {\n display: flex;\n}\n\n.inline-flex {\n display: inline-flex;\n}\n\n.table {\n display: table;\n}\n\n.grid {\n display: grid;\n}\n\n.inline-grid {\n display: inline-grid;\n}\n\n.contents {\n display: contents;\n}\n\n.hidden {\n display: none;\n}\n\n.aspect-square {\n aspect-ratio: 1 / 1;\n}\n\n.h-10 {\n height: 2.5rem;\n}\n\n.h-12 {\n height: 3rem;\n}\n\n.h-16 {\n height: 4rem;\n}\n\n.h-3\\.5 {\n height: 0.875rem;\n}\n\n.h-4 {\n height: 1rem;\n}\n\n.h-6 {\n height: 1.5rem;\n}\n\n.h-64 {\n height: 16rem;\n}\n\n.h-\\[1\\.25em\\] {\n height: 1.25em;\n}\n\n.h-\\[1em\\] {\n height: 1em;\n}\n\n.h-\\[2px\\] {\n height: 2px;\n}\n\n.h-full {\n height: 100%;\n}\n\n.max-h-full {\n max-height: 100%;\n}\n\n.w-10 {\n width: 2.5rem;\n}\n\n.w-16 {\n width: 4rem;\n}\n\n.w-24 {\n width: 6rem;\n}\n\n.w-28 {\n width: 7rem;\n}\n\n.w-3\\.5 {\n width: 0.875rem;\n}\n\n.w-4 {\n width: 1rem;\n}\n\n.w-48 {\n width: 12rem;\n}\n\n.w-6 {\n width: 1.5rem;\n}\n\n.w-60 {\n width: 15rem;\n}\n\n.w-8 {\n width: 2rem;\n}\n\n.w-\\[0\\.6em\\] {\n width: 0.6em;\n}\n\n.w-\\[1\\.25em\\] {\n width: 1.25em;\n}\n\n.w-\\[352px\\] {\n width: 352px;\n}\n\n.w-full {\n width: 100%;\n}\n\n.max-w-\\[26rem\\] {\n max-width: 26rem;\n}\n\n.flex-shrink-0 {\n flex-shrink: 0;\n}\n\n.flex-grow {\n flex-grow: 1;\n}\n\n.-translate-y-2 {\n --tw-translate-y: -0.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.-translate-y-4 {\n --tw-translate-y: -1rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.translate-x-2 {\n --tw-translate-x: 0.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.translate-y-0 {\n --tw-translate-y: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.scale-100 {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.scale-50 {\n --tw-scale-x: .5;\n --tw-scale-y: .5;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n@keyframes spin {\n\n to {\n transform: rotate(360deg);\n }\n}\n\n.animate-spin {\n animation: spin 1s linear infinite;\n}\n\n.cursor-pointer {\n cursor: pointer;\n}\n\n.cursor-text {\n cursor: text;\n}\n\n.grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n\n.grid-cols-\\[1fr_auto_1fr\\] {\n grid-template-columns: 1fr auto 1fr;\n}\n\n.flex-col {\n flex-direction: column;\n}\n\n.place-items-center {\n place-items: center;\n}\n\n.items-end {\n align-items: flex-end;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-end {\n justify-content: flex-end;\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.gap-1 {\n gap: 0.25rem;\n}\n\n.gap-2 {\n gap: 0.5rem;\n}\n\n.gap-2\\.5 {\n gap: 0.625rem;\n}\n\n.gap-4 {\n gap: 1rem;\n}\n\n.gap-5 {\n gap: 1.25rem;\n}\n\n.gap-6 {\n gap: 1.5rem;\n}\n\n.space-y-6 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));\n}\n\n.divide-y > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-y-reverse: 0;\n border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));\n border-bottom-width: calc(1px * var(--tw-divide-y-reverse));\n}\n\n.divide-neutral-200 > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-opacity: 1;\n border-color: rgb(229 229 229 / var(--tw-divide-opacity));\n}\n\n.divide-neutral-300 > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-opacity: 1;\n border-color: rgb(212 212 212 / var(--tw-divide-opacity));\n}\n\n.divide-neutral-800 > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-opacity: 1;\n border-color: rgb(38 38 38 / var(--tw-divide-opacity));\n}\n\n.self-auto {\n align-self: auto;\n}\n\n.self-center {\n align-self: center;\n}\n\n.overflow-auto {\n overflow: auto;\n}\n\n.overflow-clip {\n overflow: clip;\n}\n\n.whitespace-pre-wrap {\n white-space: pre-wrap;\n}\n\n.rounded-full {\n border-radius: 9999px;\n}\n\n.border {\n border-width: 1px;\n}\n\n.border-2 {\n border-width: 2px;\n}\n\n.border-4 {\n border-width: 4px;\n}\n\n.border-dashed {\n border-style: dashed;\n}\n\n.border-black\\/20 {\n border-color: rgb(0 0 0 / 0.2);\n}\n\n.border-neutral-300 {\n --tw-border-opacity: 1;\n border-color: rgb(212 212 212 / var(--tw-border-opacity));\n}\n\n.border-transparent {\n border-color: transparent;\n}\n\n.bg-black\\/10 {\n background-color: rgb(0 0 0 / 0.1);\n}\n\n.bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n}\n\n.bg-blue-600 {\n --tw-bg-opacity: 1;\n background-color: rgb(37 99 235 / var(--tw-bg-opacity));\n}\n\n.bg-blue-700 {\n --tw-bg-opacity: 1;\n background-color: rgb(29 78 216 / var(--tw-bg-opacity));\n}\n\n.bg-blue-700\\/60 {\n background-color: rgb(29 78 216 / 0.6);\n}\n\n.bg-green-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(34 197 94 / var(--tw-bg-opacity));\n}\n\n.bg-neutral-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(245 245 245 / var(--tw-bg-opacity));\n}\n\n.bg-neutral-700 {\n --tw-bg-opacity: 1;\n background-color: rgb(64 64 64 / var(--tw-bg-opacity));\n}\n\n.bg-neutral-800 {\n --tw-bg-opacity: 1;\n background-color: rgb(38 38 38 / var(--tw-bg-opacity));\n}\n\n.bg-neutral-800\\/85 {\n background-color: rgb(38 38 38 / 0.85);\n}\n\n.bg-neutral-900 {\n --tw-bg-opacity: 1;\n background-color: rgb(23 23 23 / var(--tw-bg-opacity));\n}\n\n.bg-orange-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 115 22 / var(--tw-bg-opacity));\n}\n\n.bg-orange-600 {\n --tw-bg-opacity: 1;\n background-color: rgb(234 88 12 / var(--tw-bg-opacity));\n}\n\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity));\n}\n\n.bg-transparent {\n background-color: transparent;\n}\n\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n\n.bg-gradient-to-b {\n background-image: linear-gradient(to bottom, var(--tw-gradient-stops));\n}\n\n.from-transparent {\n --tw-gradient-from: transparent var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.to-blue-700 {\n --tw-gradient-to: #1d4ed8 var(--tw-gradient-to-position);\n}\n\n.bg-cover {\n background-size: cover;\n}\n\n.bg-center {\n background-position: center;\n}\n\n.bg-no-repeat {\n background-repeat: no-repeat;\n}\n\n.object-cover {\n object-fit: cover;\n}\n\n.p-1 {\n padding: 0.25rem;\n}\n\n.p-2 {\n padding: 0.5rem;\n}\n\n.p-2\\.5 {\n padding: 0.625rem;\n}\n\n.p-3 {\n padding: 0.75rem;\n}\n\n.p-4 {\n padding: 1rem;\n}\n\n.p-6 {\n padding: 1.5rem;\n}\n\n.p-\\[\\.75em\\] {\n padding: .75em;\n}\n\n.px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n\n.py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.py-8 {\n padding-top: 2rem;\n padding-bottom: 2rem;\n}\n\n.pb-2 {\n padding-bottom: 0.5rem;\n}\n\n.pb-8 {\n padding-bottom: 2rem;\n}\n\n.pt-10 {\n padding-top: 2.5rem;\n}\n\n.pt-8 {\n padding-top: 2rem;\n}\n\n.text-left {\n text-align: left;\n}\n\n.text-center {\n text-align: center;\n}\n\n.font-mono {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;\n}\n\n.text-2xl {\n font-size: 1.5rem;\n line-height: 2rem;\n}\n\n.text-\\[\\.75em\\] {\n font-size: .75em;\n}\n\n.text-base {\n font-size: 1rem;\n line-height: 1.5rem;\n}\n\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n\n.font-bold {\n font-weight: 700;\n}\n\n.font-medium {\n font-weight: 500;\n}\n\n.leading-loose {\n line-height: 2;\n}\n\n.leading-none {\n line-height: 1;\n}\n\n.tracking-\\[-1ch\\] {\n letter-spacing: -1ch;\n}\n\n.text-amber-500 {\n --tw-text-opacity: 1;\n color: rgb(245 158 11 / var(--tw-text-opacity));\n}\n\n.text-black {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity));\n}\n\n.text-green-600 {\n --tw-text-opacity: 1;\n color: rgb(22 163 74 / var(--tw-text-opacity));\n}\n\n.text-neutral-400 {\n --tw-text-opacity: 1;\n color: rgb(163 163 163 / var(--tw-text-opacity));\n}\n\n.text-neutral-500 {\n --tw-text-opacity: 1;\n color: rgb(115 115 115 / var(--tw-text-opacity));\n}\n\n.text-neutral-700 {\n --tw-text-opacity: 1;\n color: rgb(64 64 64 / var(--tw-text-opacity));\n}\n\n.text-orange-500 {\n --tw-text-opacity: 1;\n color: rgb(249 115 22 / var(--tw-text-opacity));\n}\n\n.text-transparent {\n color: transparent;\n}\n\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n\n.text-white\\/20 {\n color: rgb(255 255 255 / 0.2);\n}\n\n.text-white\\/80 {\n color: rgb(255 255 255 / 0.8);\n}\n\n.opacity-0 {\n opacity: 0;\n}\n\n.opacity-100 {\n opacity: 1;\n}\n\n.opacity-25 {\n opacity: 0.25;\n}\n\n.opacity-30 {\n opacity: 0.3;\n}\n\n.opacity-50 {\n opacity: 0.5;\n}\n\n.opacity-75 {\n opacity: 0.75;\n}\n\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.ring-1 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n.ring-2 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n.ring-neutral-700\\/50 {\n --tw-ring-color: rgb(64 64 64 / 0.5);\n}\n\n.ring-transparent {\n --tw-ring-color: transparent;\n}\n\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n\n.transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n\n.duration-100 {\n transition-duration: 100ms;\n}\n\n.duration-300 {\n transition-duration: 300ms;\n}\n\n.ease-linear {\n transition-timing-function: linear;\n}\n\n@keyframes enter {\n\n from {\n opacity: var(--tw-enter-opacity, 1);\n transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));\n }\n}\n\n@keyframes exit {\n\n to {\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));\n }\n}\n\n.animate-in {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n\n.animate-out {\n animation-name: exit;\n animation-duration: 150ms;\n --tw-exit-opacity: initial;\n --tw-exit-scale: initial;\n --tw-exit-rotate: initial;\n --tw-exit-translate-x: initial;\n --tw-exit-translate-y: initial;\n}\n\n.fade-in {\n --tw-enter-opacity: 0;\n}\n\n.fade-out {\n --tw-exit-opacity: 0;\n}\n\n.slide-in-from-bottom-16 {\n --tw-enter-translate-y: 4rem;\n}\n\n.slide-in-from-bottom-2 {\n --tw-enter-translate-y: 0.5rem;\n}\n\n.slide-in-from-bottom-8 {\n --tw-enter-translate-y: 2rem;\n}\n\n.slide-in-from-top-2 {\n --tw-enter-translate-y: -0.5rem;\n}\n\n.animate-duration-300 {\n animation-duration: 300ms;\n}\n\n.ease-linear {\n animation-timing-function: linear;\n}\n\n@property --tw-border-gradient-angle {\n syntax: \'<angle>\';\n inherits: true;\n initial-value: 0deg;\n}\n\n@property --tw-conic-gradient-angle {\n syntax: \'<angle>\';\n inherits: true;\n initial-value: 0deg;\n}\n\n@keyframes border-gradient {\n\n to {\n --tw-border-gradient-angle: 360deg;\n }\n}\n\n.placeholder\\:text-neutral-400::placeholder {\n --tw-text-opacity: 1;\n color: rgb(163 163 163 / var(--tw-text-opacity));\n}\n\n.after\\:select-none::after {\n content: var(--tw-content);\n -webkit-user-select: none;\n user-select: none;\n}\n\n.after\\:content-\\[\\\'\\2026\\\'\\]::after {\n --tw-content: \'\u2026\';\n content: var(--tw-content);\n}\n\n.focus-within\\:border-transparent:focus-within {\n border-color: transparent;\n}\n\n.focus-within\\:ring-orange-500:focus-within {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgb(249 115 22 / var(--tw-ring-opacity));\n}\n\n.hover\\:bg-blue-500:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n}\n\n.hover\\:bg-neutral-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(229 229 229 / var(--tw-bg-opacity));\n}\n\n.hover\\:bg-orange-400:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(251 146 60 / var(--tw-bg-opacity));\n}\n\n.hover\\:text-black:hover {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity));\n}\n\n.hover\\:text-white:hover {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n\n.hover\\:text-white\\/40:hover {\n color: rgb(255 255 255 / 0.4);\n}\n\n.hover\\:text-white\\/80:hover {\n color: rgb(255 255 255 / 0.8);\n}\n\n.hover\\:brightness-125:hover {\n --tw-brightness: brightness(1.25);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n\n.focus\\:border-orange-500:focus {\n --tw-border-opacity: 1;\n border-color: rgb(249 115 22 / var(--tw-border-opacity));\n}\n\n.focus\\:border-yellow-400:focus {\n --tw-border-opacity: 1;\n border-color: rgb(250 204 21 / var(--tw-border-opacity));\n}\n\n.focus\\:bg-white:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n\n.active\\:bg-orange-600:active {\n --tw-bg-opacity: 1;\n background-color: rgb(234 88 12 / var(--tw-bg-opacity));\n}\n\n.active\\:brightness-150:active {\n --tw-brightness: brightness(1.5);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n\n.group:hover .group-hover\\:pointer-events-none {\n pointer-events: none;\n}\n\n.group:hover .group-hover\\:pointer-events-auto {\n pointer-events: auto;\n}\n\n.group:hover .group-hover\\:rotate-90 {\n --tw-rotate: 90deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.group:hover .group-hover\\:opacity-0 {\n opacity: 0;\n}\n\n.group:hover .group-hover\\:opacity-100 {\n opacity: 1;\n}\n\n.peer:placeholder-shown ~ .peer-placeholder-shown\\:text-neutral-400 {\n --tw-text-opacity: 1;\n color: rgb(163 163 163 / var(--tw-text-opacity));\n}\n\n.aria-busy\\:pointer-events-none[aria-busy="true"] {\n pointer-events: none;\n}\n\n.aria-busy\\:bg-blue-500[aria-busy="true"] {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n}\n\n.aria-disabled\\:pointer-events-none[aria-disabled="true"] {\n pointer-events: none;\n}\n\n.aria-disabled\\:opacity-50[aria-disabled="true"] {\n opacity: 0.5;\n}\n\n.group[aria-busy="true"] .group-aria-busy\\:inline {\n display: inline;\n}\n\n.group[aria-busy="true"] .group-aria-busy\\:hidden {\n display: none;\n}\n\n.group\\/button[aria-busy="true"] .group-aria-busy\\/button\\:translate-x-0 {\n --tw-translate-x: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.group[aria-busy="true"] .group-aria-busy\\:scale-100 {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.group[aria-busy="true"] .group-aria-busy\\:scale-125 {\n --tw-scale-x: 1.25;\n --tw-scale-y: 1.25;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.group\\/button[aria-busy="true"] .group-aria-busy\\/button\\:opacity-100 {\n opacity: 1;\n}\n\n.group[aria-busy="true"] .group-aria-busy\\:opacity-0 {\n opacity: 0;\n}\n\n.group[aria-busy="true"] .group-aria-busy\\:opacity-100 {\n opacity: 1;\n}\n\n.group\\/button[aria-busy="true"] .group-aria-busy\\/button\\:duration-300 {\n transition-duration: 300ms;\n}\n\n.group[aria-expanded="true"] .group-aria-expanded\\:inline {\n display: inline;\n}\n\n.group[aria-expanded="true"] .group-aria-expanded\\:hidden {\n display: none;\n}\n\n.data-\\[highlighted\\]\\:bg-neutral-200[data-highlighted] {\n --tw-bg-opacity: 1;\n background-color: rgb(229 229 229 / var(--tw-bg-opacity));\n}\n\n.data-\\[state\\=checked\\]\\:bg-neutral-200[data-state="checked"] {\n --tw-bg-opacity: 1;\n background-color: rgb(229 229 229 / var(--tw-bg-opacity));\n}\n\n.links\\:font-medium a[href]:not(.links-unset) {\n font-weight: 500;\n}\n\n.links\\:text-white a[href]:not(.links-unset) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n\n.links\\:underline a[href]:not(.links-unset) {\n text-decoration-line: underline;\n}\n\n.links\\:decoration-neutral-500 a[href]:not(.links-unset) {\n text-decoration-color: #737373;\n}\n\n.links\\:underline-offset-4 a[href]:not(.links-unset) {\n text-underline-offset: 4px;\n}\n\n.hover\\:links\\:decoration-orange-500 a[href]:not(.links-unset):hover {\n text-decoration-color: #f97316;\n}\n\n@media (min-width: 640px) {\n\n .sm\\:items-center {\n align-items: center;\n }\n}\n\n.dark\\:divide-neutral-700:where([data-theme="dark"], [data-theme="dark"] *) > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-opacity: 1;\n border-color: rgb(64 64 64 / var(--tw-divide-opacity));\n}\n\n.dark\\:border-neutral-700:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-border-opacity: 1;\n border-color: rgb(64 64 64 / var(--tw-border-opacity));\n}\n\n.dark\\:border-white\\/50:where([data-theme="dark"], [data-theme="dark"] *) {\n border-color: rgb(255 255 255 / 0.5);\n}\n\n.dark\\:bg-blue-600:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-bg-opacity: 1;\n background-color: rgb(37 99 235 / var(--tw-bg-opacity));\n}\n\n.dark\\:bg-green-600:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-bg-opacity: 1;\n background-color: rgb(22 163 74 / var(--tw-bg-opacity));\n}\n\n.dark\\:bg-neutral-800:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-bg-opacity: 1;\n background-color: rgb(38 38 38 / var(--tw-bg-opacity));\n}\n\n.dark\\:bg-neutral-900:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-bg-opacity: 1;\n background-color: rgb(23 23 23 / var(--tw-bg-opacity));\n}\n\n.dark\\:bg-red-600:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-bg-opacity: 1;\n background-color: rgb(220 38 38 / var(--tw-bg-opacity));\n}\n\n.dark\\:bg-white\\/10:where([data-theme="dark"], [data-theme="dark"] *) {\n background-color: rgb(255 255 255 / 0.1);\n}\n\n.dark\\:text-neutral-300:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-text-opacity: 1;\n color: rgb(212 212 212 / var(--tw-text-opacity));\n}\n\n.dark\\:text-neutral-400:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-text-opacity: 1;\n color: rgb(163 163 163 / var(--tw-text-opacity));\n}\n\n.dark\\:text-neutral-500:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-text-opacity: 1;\n color: rgb(115 115 115 / var(--tw-text-opacity));\n}\n\n.dark\\:text-white:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n\n.dark\\:placeholder\\:text-neutral-500:where([data-theme="dark"], [data-theme="dark"] *)::placeholder {\n --tw-text-opacity: 1;\n color: rgb(115 115 115 / var(--tw-text-opacity));\n}\n\n.dark\\:hover\\:bg-neutral-700:hover:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-bg-opacity: 1;\n background-color: rgb(64 64 64 / var(--tw-bg-opacity));\n}\n\n.dark\\:hover\\:text-white:hover:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n\n.dark\\:focus\\:bg-neutral-700:focus:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-bg-opacity: 1;\n background-color: rgb(64 64 64 / var(--tw-bg-opacity));\n}\n\n.peer:placeholder-shown ~ .dark\\:peer-placeholder-shown\\:text-neutral-500:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-text-opacity: 1;\n color: rgb(115 115 115 / var(--tw-text-opacity));\n}\n\n.dark\\:data-\\[state\\=checked\\]\\:bg-neutral-900[data-state="checked"]:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-bg-opacity: 1;\n background-color: rgb(23 23 23 / var(--tw-bg-opacity));\n}\n\n.\\[\\&_\\>_\\:is\\(dt\\2c dd\\)\\]\\:px-1 > :is(dt,dd) {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n.\\[\\&_\\>_dd\\]\\:text-right > dd {\n text-align: right;\n}\n';
|
|
25
|
+
var tailwind_default = '*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */ /* 3 */\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font-family by default.\n2. Use the user\'s configured `mono` font-feature-settings by default.\n3. Use the user\'s configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type=\'button\']),\ninput:where([type=\'reset\']),\ninput:where([type=\'submit\']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n.container {\n width: 100%;\n}\n\n@media (min-width: 640px) {\n\n .container {\n max-width: 640px;\n }\n}\n\n@media (min-width: 768px) {\n\n .container {\n max-width: 768px;\n }\n}\n\n@media (min-width: 1024px) {\n\n .container {\n max-width: 1024px;\n }\n}\n\n@media (min-width: 1280px) {\n\n .container {\n max-width: 1280px;\n }\n}\n\n@media (min-width: 1536px) {\n\n .container {\n max-width: 1536px;\n }\n}\n\n.grid-cols-2.divide-y > :not([hidden]) ~ :not([hidden]):nth-child(-n + 2) {\n border-top-width: 0;\n border-bottom-width: 0;\n}\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.pointer-events-none {\n pointer-events: none;\n}\n\n.pointer-events-auto {\n pointer-events: auto;\n}\n\n.fixed {\n position: fixed;\n}\n\n.absolute {\n position: absolute;\n}\n\n.relative {\n position: relative;\n}\n\n.sticky {\n position: sticky;\n}\n\n.inset-0 {\n inset: 0px;\n}\n\n.bottom-0 {\n bottom: 0px;\n}\n\n.left-0 {\n left: 0px;\n}\n\n.right-0 {\n right: 0px;\n}\n\n.top-0 {\n top: 0px;\n}\n\n.col-start-1 {\n grid-column-start: 1;\n}\n\n.row-start-1 {\n grid-row-start: 1;\n}\n\n.m-0 {\n margin: 0px;\n}\n\n.m-2 {\n margin: 0.5rem;\n}\n\n.-mx-0\\.5 {\n margin-left: -0.125rem;\n margin-right: -0.125rem;\n}\n\n.-my-1 {\n margin-top: -0.25rem;\n margin-bottom: -0.25rem;\n}\n\n.-my-\\[0\\.125em\\] {\n margin-top: -0.125em;\n margin-bottom: -0.125em;\n}\n\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n\n.-ml-3 {\n margin-left: -0.75rem;\n}\n\n.-mr-1 {\n margin-right: -0.25rem;\n}\n\n.-mt-2 {\n margin-top: -0.5rem;\n}\n\n.mt-1 {\n margin-top: 0.25rem;\n}\n\n.mt-4 {\n margin-top: 1rem;\n}\n\n.block {\n display: block;\n}\n\n.inline-block {\n display: inline-block;\n}\n\n.flex {\n display: flex;\n}\n\n.inline-flex {\n display: inline-flex;\n}\n\n.table {\n display: table;\n}\n\n.grid {\n display: grid;\n}\n\n.inline-grid {\n display: inline-grid;\n}\n\n.contents {\n display: contents;\n}\n\n.hidden {\n display: none;\n}\n\n.aspect-square {\n aspect-ratio: 1 / 1;\n}\n\n.h-10 {\n height: 2.5rem;\n}\n\n.h-12 {\n height: 3rem;\n}\n\n.h-16 {\n height: 4rem;\n}\n\n.h-3 {\n height: 0.75rem;\n}\n\n.h-3\\.5 {\n height: 0.875rem;\n}\n\n.h-4 {\n height: 1rem;\n}\n\n.h-6 {\n height: 1.5rem;\n}\n\n.h-64 {\n height: 16rem;\n}\n\n.h-\\[1\\.25em\\] {\n height: 1.25em;\n}\n\n.h-\\[1em\\] {\n height: 1em;\n}\n\n.h-\\[2px\\] {\n height: 2px;\n}\n\n.h-full {\n height: 100%;\n}\n\n.max-h-\\[230px\\] {\n max-height: 230px;\n}\n\n.max-h-full {\n max-height: 100%;\n}\n\n.w-10 {\n width: 2.5rem;\n}\n\n.w-16 {\n width: 4rem;\n}\n\n.w-24 {\n width: 6rem;\n}\n\n.w-28 {\n width: 7rem;\n}\n\n.w-3 {\n width: 0.75rem;\n}\n\n.w-3\\.5 {\n width: 0.875rem;\n}\n\n.w-4 {\n width: 1rem;\n}\n\n.w-48 {\n width: 12rem;\n}\n\n.w-6 {\n width: 1.5rem;\n}\n\n.w-60 {\n width: 15rem;\n}\n\n.w-8 {\n width: 2rem;\n}\n\n.w-\\[0\\.6em\\] {\n width: 0.6em;\n}\n\n.w-\\[1\\.25em\\] {\n width: 1.25em;\n}\n\n.w-\\[352px\\] {\n width: 352px;\n}\n\n.w-full {\n width: 100%;\n}\n\n.max-w-\\[26rem\\] {\n max-width: 26rem;\n}\n\n.flex-shrink-0 {\n flex-shrink: 0;\n}\n\n.flex-grow {\n flex-grow: 1;\n}\n\n.-translate-y-2 {\n --tw-translate-y: -0.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.-translate-y-4 {\n --tw-translate-y: -1rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.translate-x-2 {\n --tw-translate-x: 0.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.translate-y-0 {\n --tw-translate-y: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.scale-100 {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.scale-50 {\n --tw-scale-x: .5;\n --tw-scale-y: .5;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n@keyframes spin {\n\n to {\n transform: rotate(360deg);\n }\n}\n\n.animate-spin {\n animation: spin 1s linear infinite;\n}\n\n.cursor-pointer {\n cursor: pointer;\n}\n\n.cursor-text {\n cursor: text;\n}\n\n.grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n\n.grid-cols-\\[1fr_auto_1fr\\] {\n grid-template-columns: 1fr auto 1fr;\n}\n\n.flex-col {\n flex-direction: column;\n}\n\n.place-items-center {\n place-items: center;\n}\n\n.items-end {\n align-items: flex-end;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-end {\n justify-content: flex-end;\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.gap-1 {\n gap: 0.25rem;\n}\n\n.gap-2 {\n gap: 0.5rem;\n}\n\n.gap-2\\.5 {\n gap: 0.625rem;\n}\n\n.gap-4 {\n gap: 1rem;\n}\n\n.gap-5 {\n gap: 1.25rem;\n}\n\n.gap-6 {\n gap: 1.5rem;\n}\n\n.space-y-6 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));\n}\n\n.divide-y > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-y-reverse: 0;\n border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));\n border-bottom-width: calc(1px * var(--tw-divide-y-reverse));\n}\n\n.divide-neutral-700 > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-opacity: 1;\n border-color: rgb(64 64 64 / var(--tw-divide-opacity));\n}\n\n.divide-neutral-800 > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-opacity: 1;\n border-color: rgb(38 38 38 / var(--tw-divide-opacity));\n}\n\n.self-auto {\n align-self: auto;\n}\n\n.self-center {\n align-self: center;\n}\n\n.overflow-auto {\n overflow: auto;\n}\n\n.overflow-clip {\n overflow: clip;\n}\n\n.overflow-y-auto {\n overflow-y: auto;\n}\n\n.whitespace-nowrap {\n white-space: nowrap;\n}\n\n.whitespace-pre-wrap {\n white-space: pre-wrap;\n}\n\n.rounded-full {\n border-radius: 9999px;\n}\n\n.border {\n border-width: 1px;\n}\n\n.border-2 {\n border-width: 2px;\n}\n\n.border-4 {\n border-width: 4px;\n}\n\n.border-dashed {\n border-style: dashed;\n}\n\n.border-neutral-300 {\n --tw-border-opacity: 1;\n border-color: rgb(212 212 212 / var(--tw-border-opacity));\n}\n\n.border-neutral-700 {\n --tw-border-opacity: 1;\n border-color: rgb(64 64 64 / var(--tw-border-opacity));\n}\n\n.border-transparent {\n border-color: transparent;\n}\n\n.border-white\\/50 {\n border-color: rgb(255 255 255 / 0.5);\n}\n\n.bg-black\\/10 {\n background-color: rgb(0 0 0 / 0.1);\n}\n\n.bg-blue-600 {\n --tw-bg-opacity: 1;\n background-color: rgb(37 99 235 / var(--tw-bg-opacity));\n}\n\n.bg-blue-700 {\n --tw-bg-opacity: 1;\n background-color: rgb(29 78 216 / var(--tw-bg-opacity));\n}\n\n.bg-blue-700\\/60 {\n background-color: rgb(29 78 216 / 0.6);\n}\n\n.bg-green-600 {\n --tw-bg-opacity: 1;\n background-color: rgb(22 163 74 / var(--tw-bg-opacity));\n}\n\n.bg-neutral-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(245 245 245 / var(--tw-bg-opacity));\n}\n\n.bg-neutral-700 {\n --tw-bg-opacity: 1;\n background-color: rgb(64 64 64 / var(--tw-bg-opacity));\n}\n\n.bg-neutral-800 {\n --tw-bg-opacity: 1;\n background-color: rgb(38 38 38 / var(--tw-bg-opacity));\n}\n\n.bg-neutral-800\\/85 {\n background-color: rgb(38 38 38 / 0.85);\n}\n\n.bg-neutral-900 {\n --tw-bg-opacity: 1;\n background-color: rgb(23 23 23 / var(--tw-bg-opacity));\n}\n\n.bg-orange-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 115 22 / var(--tw-bg-opacity));\n}\n\n.bg-orange-600 {\n --tw-bg-opacity: 1;\n background-color: rgb(234 88 12 / var(--tw-bg-opacity));\n}\n\n.bg-red-600 {\n --tw-bg-opacity: 1;\n background-color: rgb(220 38 38 / var(--tw-bg-opacity));\n}\n\n.bg-transparent {\n background-color: transparent;\n}\n\n.bg-gradient-to-b {\n background-image: linear-gradient(to bottom, var(--tw-gradient-stops));\n}\n\n.from-transparent {\n --tw-gradient-from: transparent var(--tw-gradient-from-position);\n --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n}\n\n.to-blue-700 {\n --tw-gradient-to: #1d4ed8 var(--tw-gradient-to-position);\n}\n\n.bg-cover {\n background-size: cover;\n}\n\n.bg-center {\n background-position: center;\n}\n\n.bg-no-repeat {\n background-repeat: no-repeat;\n}\n\n.object-cover {\n object-fit: cover;\n}\n\n.p-1 {\n padding: 0.25rem;\n}\n\n.p-2 {\n padding: 0.5rem;\n}\n\n.p-2\\.5 {\n padding: 0.625rem;\n}\n\n.p-3 {\n padding: 0.75rem;\n}\n\n.p-4 {\n padding: 1rem;\n}\n\n.p-6 {\n padding: 1.5rem;\n}\n\n.p-\\[\\.75em\\] {\n padding: .75em;\n}\n\n.px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n}\n\n.py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.py-8 {\n padding-top: 2rem;\n padding-bottom: 2rem;\n}\n\n.pb-2 {\n padding-bottom: 0.5rem;\n}\n\n.pb-8 {\n padding-bottom: 2rem;\n}\n\n.pt-10 {\n padding-top: 2.5rem;\n}\n\n.pt-8 {\n padding-top: 2rem;\n}\n\n.text-left {\n text-align: left;\n}\n\n.text-center {\n text-align: center;\n}\n\n.font-mono {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;\n}\n\n.text-2xl {\n font-size: 1.5rem;\n line-height: 2rem;\n}\n\n.text-\\[\\.75em\\] {\n font-size: .75em;\n}\n\n.text-base {\n font-size: 1rem;\n line-height: 1.5rem;\n}\n\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n\n.font-bold {\n font-weight: 700;\n}\n\n.font-medium {\n font-weight: 500;\n}\n\n.leading-loose {\n line-height: 2;\n}\n\n.leading-none {\n line-height: 1;\n}\n\n.tracking-\\[-1ch\\] {\n letter-spacing: -1ch;\n}\n\n.text-amber-500 {\n --tw-text-opacity: 1;\n color: rgb(245 158 11 / var(--tw-text-opacity));\n}\n\n.text-black {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity));\n}\n\n.text-gray-400 {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity));\n}\n\n.text-green-600 {\n --tw-text-opacity: 1;\n color: rgb(22 163 74 / var(--tw-text-opacity));\n}\n\n.text-neutral-300 {\n --tw-text-opacity: 1;\n color: rgb(212 212 212 / var(--tw-text-opacity));\n}\n\n.text-neutral-400 {\n --tw-text-opacity: 1;\n color: rgb(163 163 163 / var(--tw-text-opacity));\n}\n\n.text-neutral-500 {\n --tw-text-opacity: 1;\n color: rgb(115 115 115 / var(--tw-text-opacity));\n}\n\n.text-orange-500 {\n --tw-text-opacity: 1;\n color: rgb(249 115 22 / var(--tw-text-opacity));\n}\n\n.text-transparent {\n color: transparent;\n}\n\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n\n.text-white\\/20 {\n color: rgb(255 255 255 / 0.2);\n}\n\n.text-white\\/50 {\n color: rgb(255 255 255 / 0.5);\n}\n\n.text-white\\/80 {\n color: rgb(255 255 255 / 0.8);\n}\n\n.underline {\n text-decoration-line: underline;\n}\n\n.decoration-neutral-500 {\n text-decoration-color: #737373;\n}\n\n.underline-offset-4 {\n text-underline-offset: 4px;\n}\n\n.opacity-0 {\n opacity: 0;\n}\n\n.opacity-100 {\n opacity: 1;\n}\n\n.opacity-25 {\n opacity: 0.25;\n}\n\n.opacity-30 {\n opacity: 0.3;\n}\n\n.opacity-50 {\n opacity: 0.5;\n}\n\n.opacity-75 {\n opacity: 0.75;\n}\n\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.ring-1 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n.ring-2 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n.ring-neutral-700\\/50 {\n --tw-ring-color: rgb(64 64 64 / 0.5);\n}\n\n.ring-transparent {\n --tw-ring-color: transparent;\n}\n\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n\n.transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n\n.duration-100 {\n transition-duration: 100ms;\n}\n\n.duration-300 {\n transition-duration: 300ms;\n}\n\n.ease-linear {\n transition-timing-function: linear;\n}\n\n@keyframes enter {\n\n from {\n opacity: var(--tw-enter-opacity, 1);\n transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));\n }\n}\n\n@keyframes exit {\n\n to {\n opacity: var(--tw-exit-opacity, 1);\n transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));\n }\n}\n\n.animate-in {\n animation-name: enter;\n animation-duration: 150ms;\n --tw-enter-opacity: initial;\n --tw-enter-scale: initial;\n --tw-enter-rotate: initial;\n --tw-enter-translate-x: initial;\n --tw-enter-translate-y: initial;\n}\n\n.animate-out {\n animation-name: exit;\n animation-duration: 150ms;\n --tw-exit-opacity: initial;\n --tw-exit-scale: initial;\n --tw-exit-rotate: initial;\n --tw-exit-translate-x: initial;\n --tw-exit-translate-y: initial;\n}\n\n.fade-in {\n --tw-enter-opacity: 0;\n}\n\n.fade-out {\n --tw-exit-opacity: 0;\n}\n\n.slide-in-from-bottom-16 {\n --tw-enter-translate-y: 4rem;\n}\n\n.slide-in-from-bottom-2 {\n --tw-enter-translate-y: 0.5rem;\n}\n\n.slide-in-from-bottom-8 {\n --tw-enter-translate-y: 2rem;\n}\n\n.slide-in-from-top-2 {\n --tw-enter-translate-y: -0.5rem;\n}\n\n.animate-duration-300 {\n animation-duration: 300ms;\n}\n\n.ease-linear {\n animation-timing-function: linear;\n}\n\n@property --tw-border-gradient-angle {\n syntax: \'<angle>\';\n inherits: true;\n initial-value: 0deg;\n}\n\n@property --tw-conic-gradient-angle {\n syntax: \'<angle>\';\n inherits: true;\n initial-value: 0deg;\n}\n\n@keyframes border-gradient {\n\n to {\n --tw-border-gradient-angle: 360deg;\n }\n}\n\n.placeholder\\:text-neutral-500::placeholder {\n --tw-text-opacity: 1;\n color: rgb(115 115 115 / var(--tw-text-opacity));\n}\n\n.after\\:select-none::after {\n content: var(--tw-content);\n -webkit-user-select: none;\n user-select: none;\n}\n\n.after\\:content-\\[\\\'\\2026\\\'\\]::after {\n --tw-content: \'\u2026\';\n content: var(--tw-content);\n}\n\n.focus-within\\:border-transparent:focus-within {\n border-color: transparent;\n}\n\n.focus-within\\:ring-orange-500:focus-within {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgb(249 115 22 / var(--tw-ring-opacity));\n}\n\n.hover\\:bg-blue-500:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n}\n\n.hover\\:bg-neutral-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(229 229 229 / var(--tw-bg-opacity));\n}\n\n.hover\\:bg-orange-400:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(251 146 60 / var(--tw-bg-opacity));\n}\n\n.hover\\:text-white:hover {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n\n.hover\\:text-white\\/40:hover {\n color: rgb(255 255 255 / 0.4);\n}\n\n.hover\\:text-white\\/80:hover {\n color: rgb(255 255 255 / 0.8);\n}\n\n.hover\\:decoration-orange-500:hover {\n text-decoration-color: #f97316;\n}\n\n.hover\\:brightness-125:hover {\n --tw-brightness: brightness(1.25);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n\n.focus\\:border-orange-500:focus {\n --tw-border-opacity: 1;\n border-color: rgb(249 115 22 / var(--tw-border-opacity));\n}\n\n.focus\\:border-yellow-400:focus {\n --tw-border-opacity: 1;\n border-color: rgb(250 204 21 / var(--tw-border-opacity));\n}\n\n.focus\\:bg-neutral-700:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(64 64 64 / var(--tw-bg-opacity));\n}\n\n.active\\:bg-orange-600:active {\n --tw-bg-opacity: 1;\n background-color: rgb(234 88 12 / var(--tw-bg-opacity));\n}\n\n.active\\:brightness-150:active {\n --tw-brightness: brightness(1.5);\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n\n.group:hover .group-hover\\:pointer-events-none {\n pointer-events: none;\n}\n\n.group:hover .group-hover\\:pointer-events-auto {\n pointer-events: auto;\n}\n\n.group:hover .group-hover\\:inline-block {\n display: inline-block;\n}\n\n.group:hover .group-hover\\:hidden {\n display: none;\n}\n\n.group:hover .group-hover\\:rotate-90 {\n --tw-rotate: 90deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.group:hover .group-hover\\:opacity-0 {\n opacity: 0;\n}\n\n.group:hover .group-hover\\:opacity-100 {\n opacity: 1;\n}\n\n.peer:placeholder-shown ~ .peer-placeholder-shown\\:text-neutral-500 {\n --tw-text-opacity: 1;\n color: rgb(115 115 115 / var(--tw-text-opacity));\n}\n\n.aria-busy\\:pointer-events-none[aria-busy="true"] {\n pointer-events: none;\n}\n\n.aria-busy\\:bg-blue-500[aria-busy="true"] {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n}\n\n.aria-disabled\\:pointer-events-none[aria-disabled="true"] {\n pointer-events: none;\n}\n\n.aria-disabled\\:opacity-50[aria-disabled="true"] {\n opacity: 0.5;\n}\n\n.group[aria-busy="true"] .group-aria-busy\\:inline {\n display: inline;\n}\n\n.group[aria-busy="true"] .group-aria-busy\\:hidden {\n display: none;\n}\n\n.group\\/button[aria-busy="true"] .group-aria-busy\\/button\\:translate-x-0 {\n --tw-translate-x: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.group[aria-busy="true"] .group-aria-busy\\:scale-100 {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.group[aria-busy="true"] .group-aria-busy\\:scale-125 {\n --tw-scale-x: 1.25;\n --tw-scale-y: 1.25;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.group\\/button[aria-busy="true"] .group-aria-busy\\/button\\:opacity-100 {\n opacity: 1;\n}\n\n.group[aria-busy="true"] .group-aria-busy\\:opacity-0 {\n opacity: 0;\n}\n\n.group[aria-busy="true"] .group-aria-busy\\:opacity-100 {\n opacity: 1;\n}\n\n.group\\/button[aria-busy="true"] .group-aria-busy\\/button\\:duration-300 {\n transition-duration: 300ms;\n}\n\n.group[aria-expanded="true"] .group-aria-expanded\\:inline {\n display: inline;\n}\n\n.group[aria-expanded="true"] .group-aria-expanded\\:hidden {\n display: none;\n}\n\n.data-\\[highlighted\\]\\:bg-neutral-200[data-highlighted] {\n --tw-bg-opacity: 1;\n background-color: rgb(229 229 229 / var(--tw-bg-opacity));\n}\n\n.data-\\[state\\=checked\\]\\:bg-neutral-900[data-state="checked"] {\n --tw-bg-opacity: 1;\n background-color: rgb(23 23 23 / var(--tw-bg-opacity));\n}\n\n.links\\:font-medium a[href]:not(.links-unset) {\n font-weight: 500;\n}\n\n.links\\:text-white a[href]:not(.links-unset) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n\n.links\\:underline a[href]:not(.links-unset) {\n text-decoration-line: underline;\n}\n\n.links\\:decoration-neutral-500 a[href]:not(.links-unset) {\n text-decoration-color: #737373;\n}\n\n.links\\:underline-offset-4 a[href]:not(.links-unset) {\n text-underline-offset: 4px;\n}\n\n.hover\\:links\\:decoration-orange-500 a[href]:not(.links-unset):hover {\n text-decoration-color: #f97316;\n}\n\n@media (min-width: 640px) {\n\n .sm\\:items-center {\n align-items: center;\n }\n}\n\n.dark\\:border-neutral-700:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-border-opacity: 1;\n border-color: rgb(64 64 64 / var(--tw-border-opacity));\n}\n\n.dark\\:bg-neutral-800:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-bg-opacity: 1;\n background-color: rgb(38 38 38 / var(--tw-bg-opacity));\n}\n\n.dark\\:bg-white\\/10:where([data-theme="dark"], [data-theme="dark"] *) {\n background-color: rgb(255 255 255 / 0.1);\n}\n\n.dark\\:text-white:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n\n.dark\\:hover\\:bg-neutral-700:hover:where([data-theme="dark"], [data-theme="dark"] *) {\n --tw-bg-opacity: 1;\n background-color: rgb(64 64 64 / var(--tw-bg-opacity));\n}\n\n.\\[\\&_\\>_\\:is\\(dt\\2c dd\\)\\]\\:px-1 > :is(dt,dd) {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n.\\[\\&_\\>_dd\\]\\:text-right > dd {\n text-align: right;\n}\n';
|
|
26
26
|
|
|
27
27
|
// src/ui/Shadow.tsx
|
|
28
28
|
import { useResizeObserver } from "usehooks-ts";
|
|
@@ -47,9 +47,7 @@ function useFrame() {
|
|
|
47
47
|
import { useMediaQuery } from "usehooks-ts";
|
|
48
48
|
|
|
49
49
|
// src/EntryKitConfigProvider.tsx
|
|
50
|
-
import "@rainbow-me/rainbowkit/styles.css";
|
|
51
50
|
import { createContext as createContext2, useContext as useContext2 } from "react";
|
|
52
|
-
import { RainbowKitProvider, midnightTheme } from "@rainbow-me/rainbowkit";
|
|
53
51
|
import { useChains } from "wagmi";
|
|
54
52
|
|
|
55
53
|
// src/getBundlerTransport.ts
|
|
@@ -141,8 +139,11 @@ var debug2 = debug.extend("quarry");
|
|
|
141
139
|
|
|
142
140
|
// src/quarry/transports/userOpExecutor.ts
|
|
143
141
|
import { setBalance } from "viem/actions";
|
|
144
|
-
function userOpExecutor({
|
|
145
|
-
|
|
142
|
+
function userOpExecutor({
|
|
143
|
+
executor,
|
|
144
|
+
fallbackDefaultTransport
|
|
145
|
+
}) {
|
|
146
|
+
return (opts) => {
|
|
146
147
|
debug2("using a local user op executor", executor.account.address);
|
|
147
148
|
if (executor.chain.id === 31337) {
|
|
148
149
|
debug2("setting executor balance");
|
|
@@ -177,7 +178,9 @@ function userOpExecutor({ executor }) {
|
|
|
177
178
|
if (method === "eth_estimateUserOperationGas") {
|
|
178
179
|
return await estimateUserOperationGas(params);
|
|
179
180
|
}
|
|
180
|
-
|
|
181
|
+
debug2(`userOpExecutor: method "${method}" not overridden, falling back to fallback transport`);
|
|
182
|
+
const { request: fallbackRequest } = fallbackDefaultTransport(opts);
|
|
183
|
+
return fallbackRequest({ method, params });
|
|
181
184
|
};
|
|
182
185
|
return createTransport({
|
|
183
186
|
key: "userOpExecutor",
|
|
@@ -189,23 +192,31 @@ function userOpExecutor({ executor }) {
|
|
|
189
192
|
}
|
|
190
193
|
|
|
191
194
|
// src/getBundlerTransport.ts
|
|
195
|
+
import { wiresaw } from "@latticexyz/common/internal";
|
|
192
196
|
function getBundlerTransport(chain) {
|
|
197
|
+
if ("wiresaw" in chain.rpcUrls) {
|
|
198
|
+
return wiresaw();
|
|
199
|
+
}
|
|
193
200
|
const bundlerHttpUrl = chain.rpcUrls.bundler?.http[0];
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
chain,
|
|
197
|
-
transport: fallback([webSocket(), http()]),
|
|
198
|
-
account: privateKeyToAccount(keccak256(stringToHex("local user op executor"))),
|
|
199
|
-
pollingInterval: 10
|
|
200
|
-
}).extend(transactionQueue())
|
|
201
|
-
}) : null;
|
|
202
|
-
if (!bundlerTransport) {
|
|
203
|
-
throw new Error(`Chain ${chain.id} config did not include a bundler RPC URL.`);
|
|
201
|
+
if (bundlerHttpUrl) {
|
|
202
|
+
return http(bundlerHttpUrl);
|
|
204
203
|
}
|
|
205
|
-
|
|
204
|
+
if (chain.id === 31337) {
|
|
205
|
+
return userOpExecutor({
|
|
206
|
+
executor: createClient({
|
|
207
|
+
chain,
|
|
208
|
+
transport: fallback([webSocket(), http()]),
|
|
209
|
+
account: privateKeyToAccount(keccak256(stringToHex("local user op executor"))),
|
|
210
|
+
pollingInterval: 10
|
|
211
|
+
}).extend(transactionQueue()),
|
|
212
|
+
fallbackDefaultTransport: http()
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
throw new Error(`Chain ${chain.id} config did not include a bundler RPC URL.`);
|
|
206
216
|
}
|
|
207
217
|
|
|
208
218
|
// src/EntryKitConfigProvider.tsx
|
|
219
|
+
import { ConnectKitProvider } from "connectkit";
|
|
209
220
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
210
221
|
var Context2 = createContext2(null);
|
|
211
222
|
function EntryKitConfigProvider({ config, children }) {
|
|
@@ -216,14 +227,14 @@ function EntryKitConfigProvider({ config, children }) {
|
|
|
216
227
|
if (!chain) throw new Error(`Could not find configured chain for chain ID ${config.chainId}.`);
|
|
217
228
|
getBundlerTransport(chain);
|
|
218
229
|
return /* @__PURE__ */ jsx2(
|
|
219
|
-
|
|
230
|
+
ConnectKitProvider,
|
|
220
231
|
{
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
//
|
|
232
|
+
theme: "midnight",
|
|
233
|
+
options: {
|
|
234
|
+
// Prevent Wagmi trying to switch chains after connection
|
|
235
|
+
// https://github.com/wevm/wagmi/blob/f5b717ccf8a5b283263cadc984ba00b354bcefae/packages/core/src/connectors/injected.ts#L174-L182
|
|
236
|
+
initialChainId: 0
|
|
225
237
|
},
|
|
226
|
-
theme: midnightTheme({ borderRadius: "none" }),
|
|
227
238
|
children: /* @__PURE__ */ jsx2(Context2.Provider, { value: { ...config, chain }, children })
|
|
228
239
|
}
|
|
229
240
|
);
|
|
@@ -274,7 +285,9 @@ var Shadow = forwardRef(function Shadow2({ mode, children }, forwardedRef) {
|
|
|
274
285
|
inset: "0",
|
|
275
286
|
width: "100%",
|
|
276
287
|
height: "100%",
|
|
277
|
-
|
|
288
|
+
// one less than ConnectKit's modal z-index
|
|
289
|
+
// so that ConnectKit can overlap properly
|
|
290
|
+
zIndex: "2147483645"
|
|
278
291
|
} : frameSize.width && frameSize.height ? {
|
|
279
292
|
all: "unset",
|
|
280
293
|
display: "inline-grid",
|
|
@@ -373,14 +386,11 @@ function useAccountModal() {
|
|
|
373
386
|
}
|
|
374
387
|
|
|
375
388
|
// src/AccountModal.tsx
|
|
376
|
-
import { twMerge as
|
|
389
|
+
import { twMerge as twMerge20 } from "tailwind-merge";
|
|
377
390
|
|
|
378
391
|
// src/AccountModalContent.tsx
|
|
379
392
|
import { useAccount as useAccount8, useConnectorClient } from "wagmi";
|
|
380
393
|
|
|
381
|
-
// src/ConnectWallet.tsx
|
|
382
|
-
import { useAccount } from "wagmi";
|
|
383
|
-
|
|
384
394
|
// src/ui/Button.tsx
|
|
385
395
|
import { twMerge as twMerge3 } from "tailwind-merge";
|
|
386
396
|
|
|
@@ -446,7 +456,7 @@ var Button = ({ pending, variant, type, className, children, disabled, ...props
|
|
|
446
456
|
};
|
|
447
457
|
|
|
448
458
|
// src/ConnectWallet.tsx
|
|
449
|
-
import {
|
|
459
|
+
import { useModal } from "connectkit";
|
|
450
460
|
|
|
451
461
|
// src/icons/Logo.tsx
|
|
452
462
|
import { twMerge as twMerge4 } from "tailwind-merge";
|
|
@@ -506,7 +516,7 @@ function AppInfo() {
|
|
|
506
516
|
return /* @__PURE__ */ jsxs6("div", { className: "flex-grow flex flex-col items-center justify-center gap-2", children: [
|
|
507
517
|
/* @__PURE__ */ jsx8("div", { className: "w-16 h-16 m-2", children: !appIconLoading ? hasAppIcon ? /* @__PURE__ */ jsx8("img", { src: appIcon, className: "w-full h-full object-cover" }) : (
|
|
508
518
|
// TODO: swap with favicon
|
|
509
|
-
/* @__PURE__ */ jsx8(Logo, { className: "w-full h-full text-orange-500
|
|
519
|
+
/* @__PURE__ */ jsx8(Logo, { className: "w-full h-full text-orange-500 bg-neutral-800" })
|
|
510
520
|
) : null }),
|
|
511
521
|
/* @__PURE__ */ jsx8("div", { className: "text-2xl text-white text-center", children: appName })
|
|
512
522
|
] });
|
|
@@ -514,18 +524,17 @@ function AppInfo() {
|
|
|
514
524
|
|
|
515
525
|
// src/ConnectWallet.tsx
|
|
516
526
|
import { twMerge as twMerge5 } from "tailwind-merge";
|
|
517
|
-
import { useEffect as useEffect3,
|
|
527
|
+
import { useEffect as useEffect3, useRef as useRef2 } from "react";
|
|
518
528
|
import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
519
529
|
function ConnectWallet() {
|
|
520
|
-
const
|
|
521
|
-
const
|
|
522
|
-
const [hasAutoOpened, setHasAutoOpened] = useState2(false);
|
|
530
|
+
const { open, setOpen } = useModal();
|
|
531
|
+
const hasAutoOpenedRef = useRef2(false);
|
|
523
532
|
useEffect3(() => {
|
|
524
|
-
if (!
|
|
525
|
-
|
|
526
|
-
|
|
533
|
+
if (!open && !hasAutoOpenedRef.current) {
|
|
534
|
+
setOpen(true);
|
|
535
|
+
hasAutoOpenedRef.current = true;
|
|
527
536
|
}
|
|
528
|
-
}, [
|
|
537
|
+
}, [open, setOpen]);
|
|
529
538
|
return /* @__PURE__ */ jsxs7(
|
|
530
539
|
"div",
|
|
531
540
|
{
|
|
@@ -537,8 +546,7 @@ function ConnectWallet() {
|
|
|
537
546
|
{
|
|
538
547
|
variant: "secondary",
|
|
539
548
|
className: "self-auto flex justify-center",
|
|
540
|
-
|
|
541
|
-
onClick: openConnectModal,
|
|
549
|
+
onClick: () => setOpen(true),
|
|
542
550
|
autoFocus: true,
|
|
543
551
|
children: "Connect wallet"
|
|
544
552
|
},
|
|
@@ -550,13 +558,13 @@ function ConnectWallet() {
|
|
|
550
558
|
}
|
|
551
559
|
|
|
552
560
|
// src/onboarding/ConnectedSteps.tsx
|
|
553
|
-
import { useEffect as useEffect15, useMemo as useMemo4, useRef as
|
|
554
|
-
import { twMerge as
|
|
561
|
+
import { useEffect as useEffect15, useMemo as useMemo4, useRef as useRef5, useState as useState5 } from "react";
|
|
562
|
+
import { twMerge as twMerge18 } from "tailwind-merge";
|
|
555
563
|
|
|
556
564
|
// src/onboarding/usePrerequisites.ts
|
|
557
565
|
import { useClient as useClient6, useConfig } from "wagmi";
|
|
558
566
|
import { getBalanceQueryOptions as getBalanceQueryOptions2 } from "wagmi/query";
|
|
559
|
-
import { queryOptions as queryOptions6,
|
|
567
|
+
import { queryOptions as queryOptions6, useQuery as useQuery7, useQueryClient } from "@tanstack/react-query";
|
|
560
568
|
|
|
561
569
|
// src/getPaymaster.ts
|
|
562
570
|
function getPaymaster(chain) {
|
|
@@ -596,7 +604,8 @@ var paymasterAbi = parseAbi([
|
|
|
596
604
|
"error BalanceSystem_BalanceTooHigh(address user, uint256 balance, uint256 max)",
|
|
597
605
|
"error BalanceSystem_InsufficientBalance(address user, uint256 amount, uint256 balance)",
|
|
598
606
|
"function registerSpender(address spender)",
|
|
599
|
-
"function depositTo(address to) payable"
|
|
607
|
+
"function depositTo(address to) payable",
|
|
608
|
+
"function withdrawTo(address to, uint256 amount)"
|
|
600
609
|
]);
|
|
601
610
|
var paymasterConfig = defineStore({
|
|
602
611
|
namespaces: {
|
|
@@ -910,7 +919,9 @@ function getPrequisitesQueryOptions({
|
|
|
910
919
|
}) {
|
|
911
920
|
return queryOptions6({
|
|
912
921
|
queryKey: ["getPrerequisites", client?.uid, userAddress],
|
|
913
|
-
queryFn:
|
|
922
|
+
queryFn: async () => {
|
|
923
|
+
if (!client) throw new Error("Viem client not ready.");
|
|
924
|
+
if (!userAddress) throw new Error("User not connected.");
|
|
914
925
|
const paymaster = getPaymaster(client.chain);
|
|
915
926
|
const {
|
|
916
927
|
account: { address: sessionAddress }
|
|
@@ -938,7 +949,7 @@ function getPrequisitesQueryOptions({
|
|
|
938
949
|
// we intentionally don't enforce an allowance/gas balance here
|
|
939
950
|
complete: isSpender && hasDelegation
|
|
940
951
|
};
|
|
941
|
-
}
|
|
952
|
+
},
|
|
942
953
|
retry: false
|
|
943
954
|
});
|
|
944
955
|
}
|
|
@@ -1170,8 +1181,12 @@ function EthIcon({ className, ...props }) {
|
|
|
1170
1181
|
import { formatEther } from "viem";
|
|
1171
1182
|
function formatBalance(wei) {
|
|
1172
1183
|
const formatted = formatEther(wei);
|
|
1173
|
-
const
|
|
1174
|
-
|
|
1184
|
+
const parsed = parseFloat(formatted);
|
|
1185
|
+
if (parsed > 0 && parsed < 1e-5) {
|
|
1186
|
+
return "<0.00001";
|
|
1187
|
+
}
|
|
1188
|
+
const magnitude = Math.floor(parsed).toString().length;
|
|
1189
|
+
return parsed.toLocaleString("en-US", { maximumFractionDigits: Math.max(0, 6 - magnitude) });
|
|
1175
1190
|
}
|
|
1176
1191
|
|
|
1177
1192
|
// src/ui/Balance.tsx
|
|
@@ -1256,6 +1271,7 @@ import { resourceToHex as resourceToHex2 } from "@latticexyz/common";
|
|
|
1256
1271
|
import IBaseWorldAbi from "@latticexyz/world/out/IBaseWorld.sol/IBaseWorld.abi.json";
|
|
1257
1272
|
|
|
1258
1273
|
// src/utils/callWithSignature.ts
|
|
1274
|
+
import { parseErc6492Signature } from "viem";
|
|
1259
1275
|
import { writeContract as viem_writeContract } from "viem/actions";
|
|
1260
1276
|
import { getAction as getAction3 } from "viem/utils";
|
|
1261
1277
|
|
|
@@ -1310,7 +1326,13 @@ async function callWithSignature({
|
|
|
1310
1326
|
sessionClient,
|
|
1311
1327
|
...opts
|
|
1312
1328
|
}) {
|
|
1313
|
-
const
|
|
1329
|
+
const rawSignature = await signCall(opts);
|
|
1330
|
+
const { address, signature } = parseErc6492Signature(rawSignature);
|
|
1331
|
+
if (address != null) {
|
|
1332
|
+
throw new Error(
|
|
1333
|
+
"ERC-6492 signatures, like from Coinbase Smart Wallet, are not yet supported. Try using a different wallet?"
|
|
1334
|
+
);
|
|
1335
|
+
}
|
|
1314
1336
|
return getAction3(
|
|
1315
1337
|
sessionClient,
|
|
1316
1338
|
viem_writeContract,
|
|
@@ -1438,7 +1460,6 @@ function useSetupSession({ userClient }) {
|
|
|
1438
1460
|
import { useClient as useClient9 } from "wagmi";
|
|
1439
1461
|
import {
|
|
1440
1462
|
queryOptions as queryOptions7,
|
|
1441
|
-
skipToken as skipToken7,
|
|
1442
1463
|
useQuery as useQuery9,
|
|
1443
1464
|
useQueryClient as useQueryClient4
|
|
1444
1465
|
} from "@tanstack/react-query";
|
|
@@ -1526,7 +1547,8 @@ function getSessionClientQueryOptions({
|
|
|
1526
1547
|
}) {
|
|
1527
1548
|
return queryOptions7({
|
|
1528
1549
|
queryKey: ["getSessionClient", client?.uid, userAddress, worldAddress],
|
|
1529
|
-
queryFn:
|
|
1550
|
+
queryFn: async () => {
|
|
1551
|
+
if (!userAddress) throw new Error("User not connected.");
|
|
1530
1552
|
const { account: sessionAccount, signer: sessionSigner } = await queryClient.fetchQuery(
|
|
1531
1553
|
getSessionAccountQueryOptions({ client, userAddress })
|
|
1532
1554
|
);
|
|
@@ -1536,7 +1558,7 @@ function getSessionClientQueryOptions({
|
|
|
1536
1558
|
userAddress,
|
|
1537
1559
|
worldAddress
|
|
1538
1560
|
});
|
|
1539
|
-
}
|
|
1561
|
+
},
|
|
1540
1562
|
staleTime: Infinity,
|
|
1541
1563
|
// TODO: replace with function to retry only connection errors
|
|
1542
1564
|
retry: false
|
|
@@ -1613,7 +1635,7 @@ function Session({ isActive, isExpanded, userClient, registerSpender, registerDe
|
|
|
1613
1635
|
}
|
|
1614
1636
|
|
|
1615
1637
|
// src/onboarding/GasBalance.tsx
|
|
1616
|
-
import { useEffect as useEffect9, useState as
|
|
1638
|
+
import { useEffect as useEffect9, useState as useState2 } from "react";
|
|
1617
1639
|
import { parseEther as parseEther4 } from "viem";
|
|
1618
1640
|
import { useQueryClient as useQueryClient6 } from "@tanstack/react-query";
|
|
1619
1641
|
import { useBalance as useBalance2, useWatchBlockNumber } from "wagmi";
|
|
@@ -1922,9 +1944,9 @@ function useSetBalance() {
|
|
|
1922
1944
|
}
|
|
1923
1945
|
|
|
1924
1946
|
// src/errors/usePrevious.ts
|
|
1925
|
-
import { useEffect as useEffect8, useRef as
|
|
1947
|
+
import { useEffect as useEffect8, useRef as useRef3 } from "react";
|
|
1926
1948
|
function usePrevious(value, initialValue) {
|
|
1927
|
-
const ref =
|
|
1949
|
+
const ref = useRef3();
|
|
1928
1950
|
useEffect8(() => {
|
|
1929
1951
|
ref.current = { value };
|
|
1930
1952
|
}, [value]);
|
|
@@ -1985,7 +2007,7 @@ import { Fragment, jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
|
1985
2007
|
function GasBalance({ isActive, isExpanded, sessionAddress }) {
|
|
1986
2008
|
const queryClient = useQueryClient6();
|
|
1987
2009
|
const { chain } = useEntryKitConfig();
|
|
1988
|
-
const [copied, setCopied] =
|
|
2010
|
+
const [copied, setCopied] = useState2(false);
|
|
1989
2011
|
const balance = useShowQueryError(useBalance2({ chainId: chain.id, address: sessionAddress }));
|
|
1990
2012
|
const prevBalance = usePrevious(balance.data);
|
|
1991
2013
|
useWatchBlockNumber({ onBlockNumber: () => balance.refetch() });
|
|
@@ -2069,24 +2091,28 @@ function GasBalance({ isActive, isExpanded, sessionAddress }) {
|
|
|
2069
2091
|
] });
|
|
2070
2092
|
}
|
|
2071
2093
|
|
|
2094
|
+
// src/onboarding/quarry/GasBalance.tsx
|
|
2095
|
+
import { useEffect as useEffect14 } from "react";
|
|
2096
|
+
import { useQueryClient as useQueryClient9 } from "@tanstack/react-query";
|
|
2097
|
+
|
|
2072
2098
|
// src/onboarding/deposit/DepositFormContainer.tsx
|
|
2073
|
-
import { useState as
|
|
2099
|
+
import { useState as useState4 } from "react";
|
|
2074
2100
|
import { useChains as useChains4, useChainId } from "wagmi";
|
|
2075
2101
|
|
|
2076
2102
|
// src/onboarding/deposit/DepositViaTransferForm.tsx
|
|
2077
|
-
import { useAccount as
|
|
2103
|
+
import { useAccount as useAccount4, useWriteContract, usePrepareTransactionRequest, usePublicClient } from "wagmi";
|
|
2078
2104
|
import { encodeFunctionData as encodeFunctionData2 } from "viem";
|
|
2079
|
-
import { useMutation as useMutation4, useQuery as
|
|
2105
|
+
import { useMutation as useMutation4, useQuery as useQuery12 } from "@tanstack/react-query";
|
|
2080
2106
|
|
|
2081
2107
|
// src/onboarding/deposit/DepositForm.tsx
|
|
2082
|
-
import { useEffect as useEffect11, useRef as
|
|
2083
|
-
import { useAccount as
|
|
2108
|
+
import { useEffect as useEffect11, useRef as useRef4 } from "react";
|
|
2109
|
+
import { useAccount as useAccount3, useBalance as useBalance4, useWatchBlockNumber as useWatchBlockNumber2 } from "wagmi";
|
|
2084
2110
|
import { useIsMounted } from "usehooks-ts";
|
|
2085
2111
|
import { twMerge as twMerge15 } from "tailwind-merge";
|
|
2086
2112
|
|
|
2087
2113
|
// src/onboarding/deposit/ChainSelect.tsx
|
|
2088
2114
|
import { useEffect as useEffect10, useMemo as useMemo2 } from "react";
|
|
2089
|
-
import {
|
|
2115
|
+
import { useSwitchChain } from "wagmi";
|
|
2090
2116
|
import { twMerge as twMerge12 } from "tailwind-merge";
|
|
2091
2117
|
import * as Select from "@radix-ui/react-select";
|
|
2092
2118
|
|
|
@@ -2151,8 +2177,7 @@ function Input({ asChild, className, ...props }) {
|
|
|
2151
2177
|
className: twMerge9(
|
|
2152
2178
|
"p-2.5 gap-1 border text-lg font-medium transition",
|
|
2153
2179
|
"outline-none ring-2 ring-transparent focus-within:ring-orange-500 focus-within:border-transparent",
|
|
2154
|
-
"bg-
|
|
2155
|
-
"dark:bg-neutral-900 dark:border-neutral-700 dark:text-white dark:placeholder:text-neutral-500",
|
|
2180
|
+
"bg-neutral-900 border-neutral-700 text-white placeholder:text-neutral-500",
|
|
2156
2181
|
className
|
|
2157
2182
|
),
|
|
2158
2183
|
...props
|
|
@@ -2160,42 +2185,34 @@ function Input({ asChild, className, ...props }) {
|
|
|
2160
2185
|
);
|
|
2161
2186
|
}
|
|
2162
2187
|
|
|
2163
|
-
// src/onboarding/deposit/ChainBalance.tsx
|
|
2164
|
-
import { useBalance as useBalance3 } from "wagmi";
|
|
2165
|
-
import { Fragment as Fragment2, jsx as jsx23 } from "react/jsx-runtime";
|
|
2166
|
-
function ChainBalance({ chainId, address }) {
|
|
2167
|
-
const balance = useBalance3({ chainId, address });
|
|
2168
|
-
return /* @__PURE__ */ jsx23(Fragment2, { children: balance.data ? /* @__PURE__ */ jsx23(Balance, { wei: balance.data.value }) : /* @__PURE__ */ jsx23(PendingIcon, {}) });
|
|
2169
|
-
}
|
|
2170
|
-
|
|
2171
2188
|
// src/onboarding/deposit/ChainIcon.tsx
|
|
2172
2189
|
import { twMerge as twMerge11 } from "tailwind-merge";
|
|
2173
2190
|
|
|
2174
2191
|
// src/onboarding/deposit/PreloadedImage.tsx
|
|
2175
2192
|
import { twMerge as twMerge10 } from "tailwind-merge";
|
|
2176
|
-
import { jsx as
|
|
2193
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2177
2194
|
function PreloadedImage({ url, fallback: fallback2, className }) {
|
|
2178
2195
|
const { isSuccess, isLoading } = usePreloadImage(url);
|
|
2179
|
-
return /* @__PURE__ */
|
|
2196
|
+
return /* @__PURE__ */ jsx23("span", { className: twMerge10("inline-flex w-full h-full items-center justify-center overflow-clip", className), children: !isLoading ? isSuccess ? /* @__PURE__ */ jsx23("img", { src: url, className: "w-full h-full object-cover" }) : fallback2 : null });
|
|
2180
2197
|
}
|
|
2181
2198
|
|
|
2182
2199
|
// src/onboarding/deposit/ChainIcon.tsx
|
|
2183
2200
|
import { forwardRef as forwardRef2 } from "react";
|
|
2184
|
-
import { jsx as
|
|
2201
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2185
2202
|
var ChainIcon = forwardRef2(function ChainIcon2({ name, url, className }, forwardedRef) {
|
|
2186
|
-
return /* @__PURE__ */
|
|
2203
|
+
return /* @__PURE__ */ jsx24(
|
|
2187
2204
|
"span",
|
|
2188
2205
|
{
|
|
2189
2206
|
ref: forwardedRef,
|
|
2190
2207
|
className: twMerge11("flex-shrink-0 inline-flex w-6 aspect-square rounded-full overflow-clip", className),
|
|
2191
|
-
children: url ? /* @__PURE__ */
|
|
2208
|
+
children: url ? /* @__PURE__ */ jsx24(PreloadedImage, { url }) : (
|
|
2192
2209
|
// TODO: better placeholder
|
|
2193
|
-
/* @__PURE__ */
|
|
2210
|
+
/* @__PURE__ */ jsx24(
|
|
2194
2211
|
"span",
|
|
2195
2212
|
{
|
|
2196
2213
|
className: twMerge11(
|
|
2197
2214
|
"inline-flex items-center justify-center w-full h-full rounded-full",
|
|
2198
|
-
"border-2 border-dashed border-
|
|
2215
|
+
"border-2 border-dashed border-white/50 opacity-50"
|
|
2199
2216
|
),
|
|
2200
2217
|
children: name?.slice(0, 1)
|
|
2201
2218
|
}
|
|
@@ -2239,12 +2256,36 @@ function useRelay() {
|
|
|
2239
2256
|
});
|
|
2240
2257
|
}
|
|
2241
2258
|
|
|
2259
|
+
// src/onboarding/deposit/useChainBalances.ts
|
|
2260
|
+
import { useAccount, useConfig as useWagmiConfig } from "wagmi";
|
|
2261
|
+
import { getBalance as getBalance2 } from "wagmi/actions";
|
|
2262
|
+
import { useQuery as useQuery11, skipToken as skipToken6 } from "@tanstack/react-query";
|
|
2263
|
+
import { isNotNull } from "@latticexyz/common/utils";
|
|
2264
|
+
function useChainBalances({ chains }) {
|
|
2265
|
+
const { address: userAddress } = useAccount();
|
|
2266
|
+
const wagmiConfig = useWagmiConfig();
|
|
2267
|
+
const chainIds = chains.map((chain) => chain.id);
|
|
2268
|
+
return useQuery11({
|
|
2269
|
+
queryKey: ["chainBalances", chainIds, userAddress],
|
|
2270
|
+
queryFn: userAddress ? async () => {
|
|
2271
|
+
const chainBalances = await Promise.allSettled(
|
|
2272
|
+
chains.map(async (chain) => {
|
|
2273
|
+
const balance = await getBalance2(wagmiConfig, { chainId: chain.id, address: userAddress });
|
|
2274
|
+
return { chain, balance };
|
|
2275
|
+
})
|
|
2276
|
+
);
|
|
2277
|
+
return chainBalances.map((result) => result.status === "fulfilled" ? result.value : null).filter(isNotNull);
|
|
2278
|
+
} : skipToken6,
|
|
2279
|
+
refetchInterval: 1e3 * 60,
|
|
2280
|
+
retry: 1
|
|
2281
|
+
});
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2242
2284
|
// src/onboarding/deposit/ChainSelect.tsx
|
|
2243
|
-
import { Fragment as
|
|
2285
|
+
import { Fragment as Fragment2, jsx as jsx25, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2244
2286
|
function ChainSelect({ value, onChange }) {
|
|
2245
2287
|
const theme = useTheme();
|
|
2246
2288
|
const { frame } = useFrame();
|
|
2247
|
-
const userAccount = useAccount2();
|
|
2248
2289
|
const { chains, switchChain } = useSwitchChain();
|
|
2249
2290
|
const relay = useRelay();
|
|
2250
2291
|
const relayChains = relay.data?.chains;
|
|
@@ -2258,27 +2299,33 @@ function ChainSelect({ value, onChange }) {
|
|
|
2258
2299
|
}).filter((c) => c.relayChain);
|
|
2259
2300
|
}, [chains, relayChains]);
|
|
2260
2301
|
const selectedChain = sourceChains.find((c) => c.id === value);
|
|
2302
|
+
const { data: chainsBalances, isLoading } = useShowQueryError(useChainBalances({ chains: sourceChains }));
|
|
2303
|
+
const renderedChains = useMemo2(() => {
|
|
2304
|
+
if (!chainsBalances) return [];
|
|
2305
|
+
const chainsWithBalance = chainsBalances.filter(({ balance }) => balance.value > 0n).map(({ chain, balance }) => ({ chain, balance: balance.value }));
|
|
2306
|
+
return chainsWithBalance.length > 0 ? chainsWithBalance : sourceChains.map((chain) => ({ chain, balance: 0n }));
|
|
2307
|
+
}, [chainsBalances, sourceChains]);
|
|
2261
2308
|
useEffect10(() => {
|
|
2262
|
-
if (
|
|
2263
|
-
const defaultChain =
|
|
2309
|
+
if (renderedChains.length > 0 && (!selectedChain || !renderedChains.find((c) => c.chain.id === selectedChain?.id))) {
|
|
2310
|
+
const defaultChain = renderedChains[0].chain;
|
|
2264
2311
|
onChange(defaultChain.id);
|
|
2265
2312
|
switchChain({ chainId: defaultChain.id });
|
|
2266
2313
|
}
|
|
2267
|
-
}, [value, selectedChain,
|
|
2314
|
+
}, [value, selectedChain, renderedChains, onChange, switchChain]);
|
|
2268
2315
|
return /* @__PURE__ */ jsxs15(
|
|
2269
2316
|
Select.Root,
|
|
2270
2317
|
{
|
|
2271
2318
|
value: value.toString(),
|
|
2272
2319
|
onValueChange: (value2) => {
|
|
2273
2320
|
if (value2) {
|
|
2274
|
-
const chain =
|
|
2321
|
+
const chain = renderedChains.find((item) => item.chain.id.toString() === value2)?.chain;
|
|
2275
2322
|
if (!chain) throw new Error(`Unknown chain selected: ${value2}`);
|
|
2276
2323
|
onChange(chain.id);
|
|
2277
2324
|
}
|
|
2278
2325
|
},
|
|
2279
2326
|
children: [
|
|
2280
|
-
/* @__PURE__ */
|
|
2281
|
-
/* @__PURE__ */
|
|
2327
|
+
/* @__PURE__ */ jsx25(Input, { asChild: true, children: /* @__PURE__ */ jsxs15(Select.Trigger, { className: "group inline-flex items-center justify-center", children: [
|
|
2328
|
+
/* @__PURE__ */ jsx25(Select.Value, { asChild: true, children: /* @__PURE__ */ jsx25(
|
|
2282
2329
|
ChainIcon,
|
|
2283
2330
|
{
|
|
2284
2331
|
id: selectedChain?.id,
|
|
@@ -2287,42 +2334,45 @@ function ChainSelect({ value, onChange }) {
|
|
|
2287
2334
|
className: "w-8"
|
|
2288
2335
|
}
|
|
2289
2336
|
) }),
|
|
2290
|
-
/* @__PURE__ */
|
|
2291
|
-
/* @__PURE__ */
|
|
2292
|
-
/* @__PURE__ */
|
|
2337
|
+
/* @__PURE__ */ jsx25(Select.Icon, { asChild: true, children: /* @__PURE__ */ jsxs15(Fragment2, { children: [
|
|
2338
|
+
/* @__PURE__ */ jsx25(ChevronDownIcon, { className: "text-sm -mr-1 group-aria-expanded:hidden" }),
|
|
2339
|
+
/* @__PURE__ */ jsx25(ChevronUpIcon, { className: "text-sm -mr-1 hidden group-aria-expanded:inline" })
|
|
2293
2340
|
] }) })
|
|
2294
2341
|
] }) }),
|
|
2295
|
-
frame.contentDocument ? /* @__PURE__ */
|
|
2296
|
-
Select.
|
|
2342
|
+
frame.contentDocument ? /* @__PURE__ */ jsx25(Select.Portal, { container: frame.contentDocument.body, children: /* @__PURE__ */ jsx25(
|
|
2343
|
+
Select.Content,
|
|
2297
2344
|
{
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
{
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2345
|
+
position: "popper",
|
|
2346
|
+
className: "w-[352px] max-h-[230px] overflow-y-auto mt-1 animate-in fade-in slide-in-from-top-2",
|
|
2347
|
+
children: /* @__PURE__ */ jsx25(Select.Viewport, { children: /* @__PURE__ */ jsx25(
|
|
2348
|
+
Select.Group,
|
|
2349
|
+
{
|
|
2350
|
+
className: twMerge12(
|
|
2351
|
+
"flex flex-col border divide-y",
|
|
2352
|
+
"bg-neutral-800 text-neutral-300 border-neutral-700 divide-neutral-700"
|
|
2353
|
+
),
|
|
2354
|
+
children: isLoading ? /* @__PURE__ */ jsx25("div", { className: "flex items-center justify-center p-4", children: /* @__PURE__ */ jsx25(PendingIcon, { className: "h-6 w-6 animate-spin text-gray-400" }) }) : renderedChains.map(({ chain, balance }) => {
|
|
2355
|
+
return /* @__PURE__ */ jsxs15(
|
|
2356
|
+
Select.Item,
|
|
2357
|
+
{
|
|
2358
|
+
value: chain.id.toString(),
|
|
2359
|
+
className: twMerge12(
|
|
2360
|
+
"group flex p-2.5 gap-2.5 items-center cursor-pointer outline-none",
|
|
2361
|
+
"text-white focus:bg-neutral-700 data-[state=checked]:bg-neutral-900"
|
|
2362
|
+
),
|
|
2363
|
+
children: [
|
|
2364
|
+
/* @__PURE__ */ jsx25(ChainIcon, { id: chain.id, name: chain.name, url: chain.relayChain?.icon?.[theme] }),
|
|
2365
|
+
/* @__PURE__ */ jsx25("span", { className: "flex-grow flex-shrink-0", children: chain.name }),
|
|
2366
|
+
/* @__PURE__ */ jsx25("span", { className: "flex-shrink-0 font-mono text-sm text-neutral-400", children: /* @__PURE__ */ jsx25(Balance, { wei: balance }) })
|
|
2367
|
+
]
|
|
2368
|
+
},
|
|
2369
|
+
chain.id
|
|
2370
|
+
);
|
|
2371
|
+
})
|
|
2372
|
+
}
|
|
2373
|
+
) })
|
|
2324
2374
|
}
|
|
2325
|
-
) })
|
|
2375
|
+
) }) : null
|
|
2326
2376
|
]
|
|
2327
2377
|
}
|
|
2328
2378
|
);
|
|
@@ -2332,18 +2382,14 @@ function ChainSelect({ value, onChange }) {
|
|
|
2332
2382
|
import { formatEther as formatEther3, parseEther as parseEther5 } from "viem";
|
|
2333
2383
|
import { twMerge as twMerge13 } from "tailwind-merge";
|
|
2334
2384
|
import { forwardRef as forwardRef3 } from "react";
|
|
2335
|
-
import { jsx as
|
|
2385
|
+
import { jsx as jsx26, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2336
2386
|
var AmountInput = forwardRef3(function AmountInput2({ initialAmount, onChange }, forwardedRef) {
|
|
2337
|
-
return /* @__PURE__ */
|
|
2338
|
-
/* @__PURE__ */
|
|
2387
|
+
return /* @__PURE__ */ jsx26(Input, { asChild: true, className: "w-full cursor-text flex items-center", children: /* @__PURE__ */ jsxs16("label", { children: [
|
|
2388
|
+
/* @__PURE__ */ jsx26(
|
|
2339
2389
|
"input",
|
|
2340
2390
|
{
|
|
2341
2391
|
ref: forwardedRef,
|
|
2342
|
-
className: twMerge13(
|
|
2343
|
-
"peer flex-grow outline-none bg-transparent",
|
|
2344
|
-
"placeholder:text-neutral-400",
|
|
2345
|
-
"dark:placeholder:text-neutral-500"
|
|
2346
|
-
),
|
|
2392
|
+
className: twMerge13("peer flex-grow outline-none bg-transparent", "placeholder:text-neutral-500"),
|
|
2347
2393
|
placeholder: "0.005",
|
|
2348
2394
|
required: true,
|
|
2349
2395
|
autoFocus: true,
|
|
@@ -2364,33 +2410,23 @@ var AmountInput = forwardRef3(function AmountInput2({ initialAmount, onChange },
|
|
|
2364
2410
|
}
|
|
2365
2411
|
}
|
|
2366
2412
|
),
|
|
2367
|
-
/* @__PURE__ */
|
|
2368
|
-
"span",
|
|
2369
|
-
{
|
|
2370
|
-
className: twMerge13(
|
|
2371
|
-
"flex-shrink-0 text-2xl",
|
|
2372
|
-
"peer-placeholder-shown:text-neutral-400",
|
|
2373
|
-
"dark:peer-placeholder-shown:text-neutral-500"
|
|
2374
|
-
),
|
|
2375
|
-
children: /* @__PURE__ */ jsx27(EthIcon, {})
|
|
2376
|
-
}
|
|
2377
|
-
)
|
|
2413
|
+
/* @__PURE__ */ jsx26("span", { className: twMerge13("flex-shrink-0 text-2xl", "peer-placeholder-shown:text-neutral-500"), children: /* @__PURE__ */ jsx26(EthIcon, {}) })
|
|
2378
2414
|
] }) });
|
|
2379
2415
|
});
|
|
2380
2416
|
|
|
2381
2417
|
// src/onboarding/deposit/SubmitButton.tsx
|
|
2382
|
-
import { useAccount as
|
|
2418
|
+
import { useAccount as useAccount2, useBalance as useBalance3, useSwitchChain as useSwitchChain2 } from "wagmi";
|
|
2383
2419
|
import { twMerge as twMerge14 } from "tailwind-merge";
|
|
2384
2420
|
import { parseEther as parseEther6 } from "viem";
|
|
2385
|
-
import { jsx as
|
|
2421
|
+
import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2386
2422
|
var MAX_DEPOSIT_AMOUNT = "0.1";
|
|
2387
2423
|
function SubmitButton({ amount, chainId, className, ...buttonProps }) {
|
|
2388
|
-
const { chainId: userChainId, address: userAddress } =
|
|
2389
|
-
const { data: userBalance } =
|
|
2424
|
+
const { chainId: userChainId, address: userAddress } = useAccount2();
|
|
2425
|
+
const { data: userBalance } = useBalance3({ address: userAddress });
|
|
2390
2426
|
const shouldSwitchChain = chainId != null && chainId !== userChainId;
|
|
2391
2427
|
const switchChain = useSwitchChain2();
|
|
2392
2428
|
if (shouldSwitchChain) {
|
|
2393
|
-
return /* @__PURE__ */
|
|
2429
|
+
return /* @__PURE__ */ jsx27(
|
|
2394
2430
|
Button,
|
|
2395
2431
|
{
|
|
2396
2432
|
type: "button",
|
|
@@ -2409,16 +2445,16 @@ function SubmitButton({ amount, chainId, className, ...buttonProps }) {
|
|
|
2409
2445
|
" ETH"
|
|
2410
2446
|
] });
|
|
2411
2447
|
} else if (amount > (userBalance?.value ?? 0n)) {
|
|
2412
|
-
return /* @__PURE__ */
|
|
2448
|
+
return /* @__PURE__ */ jsx27(Button, { type: "button", className: twMerge14("w-full", className), disabled: true, children: "Insufficient balance" });
|
|
2413
2449
|
}
|
|
2414
2450
|
}
|
|
2415
|
-
return /* @__PURE__ */
|
|
2451
|
+
return /* @__PURE__ */ jsx27(Button, { type: "submit", className: twMerge14("w-full", className), ...buttonProps });
|
|
2416
2452
|
}
|
|
2417
2453
|
|
|
2418
2454
|
// src/icons/WarningIcon.tsx
|
|
2419
|
-
import { jsx as
|
|
2455
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
2420
2456
|
function WarningIcon(props) {
|
|
2421
|
-
return /* @__PURE__ */
|
|
2457
|
+
return /* @__PURE__ */ jsx28(IconSVG, { fill: "none", ...props, children: /* @__PURE__ */ jsx28(
|
|
2422
2458
|
"path",
|
|
2423
2459
|
{
|
|
2424
2460
|
d: "M12 9V11M12 15H12.01M5.07183 19H18.9282C20.4678 19 21.4301 17.3333 20.6603 16L13.7321 4C12.9623 2.66667 11.0378 2.66667 10.268 4L3.33978 16C2.56998 17.3333 3.53223 19 5.07183 19Z",
|
|
@@ -2439,7 +2475,7 @@ function formatGas(wei) {
|
|
|
2439
2475
|
}
|
|
2440
2476
|
|
|
2441
2477
|
// src/onboarding/deposit/DepositForm.tsx
|
|
2442
|
-
import { Fragment as
|
|
2478
|
+
import { Fragment as Fragment3, jsx as jsx29, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2443
2479
|
function DepositForm({
|
|
2444
2480
|
sourceChain,
|
|
2445
2481
|
setSourceChainId,
|
|
@@ -2450,10 +2486,10 @@ function DepositForm({
|
|
|
2450
2486
|
onSubmit,
|
|
2451
2487
|
submitButton
|
|
2452
2488
|
}) {
|
|
2453
|
-
const amountInputRef =
|
|
2489
|
+
const amountInputRef = useRef4(null);
|
|
2454
2490
|
const isMounted = useIsMounted();
|
|
2455
|
-
const { address: userAddress, chainId: userChainId } =
|
|
2456
|
-
const balance = useShowQueryError(
|
|
2491
|
+
const { address: userAddress, chainId: userChainId } = useAccount3();
|
|
2492
|
+
const balance = useShowQueryError(useBalance4({ chainId: sourceChain.id, address: userAddress }));
|
|
2457
2493
|
const quarryBalance = useShowQueryError(useBalance(userAddress));
|
|
2458
2494
|
useWatchBlockNumber2({
|
|
2459
2495
|
onBlockNumber: () => {
|
|
@@ -2488,33 +2524,32 @@ function DepositForm({
|
|
|
2488
2524
|
},
|
|
2489
2525
|
children: [
|
|
2490
2526
|
/* @__PURE__ */ jsxs18("div", { className: "flex gap-2", children: [
|
|
2491
|
-
/* @__PURE__ */
|
|
2492
|
-
/* @__PURE__ */
|
|
2527
|
+
/* @__PURE__ */ jsx29(ChainSelect, { value: sourceChain.id, onChange: setSourceChainId }),
|
|
2528
|
+
/* @__PURE__ */ jsx29(AmountInput, { ref: amountInputRef, initialAmount: amount, onChange: setAmount })
|
|
2493
2529
|
] }),
|
|
2494
2530
|
/* @__PURE__ */ jsxs18(
|
|
2495
2531
|
"dl",
|
|
2496
2532
|
{
|
|
2497
2533
|
className: twMerge15(
|
|
2498
2534
|
"grid grid-cols-2 divide-y text-sm leading-loose [&_>_:is(dt,dd)]:px-1 [&_>_dd]:text-right",
|
|
2499
|
-
"divide-neutral-
|
|
2500
|
-
"dark:divide-neutral-700 dark:text-neutral-400"
|
|
2535
|
+
"divide-neutral-700 text-neutral-400"
|
|
2501
2536
|
),
|
|
2502
2537
|
children: [
|
|
2503
|
-
/* @__PURE__ */
|
|
2504
|
-
/* @__PURE__ */
|
|
2505
|
-
/* @__PURE__ */
|
|
2506
|
-
/* @__PURE__ */
|
|
2507
|
-
/* @__PURE__ */
|
|
2508
|
-
/* @__PURE__ */
|
|
2538
|
+
/* @__PURE__ */ jsx29("dt", { children: "Available to deposit" }),
|
|
2539
|
+
/* @__PURE__ */ jsx29("dd", { children: balance.isSuccess ? /* @__PURE__ */ jsx29(Balance, { wei: balance.data.value }) : balance.isError ? /* @__PURE__ */ jsx29("span", { title: String(balance.error), children: /* @__PURE__ */ jsx29(WarningIcon, { className: "inline-block text-amber-500" }) }) : balance.isLoading ? /* @__PURE__ */ jsx29(PendingIcon, { className: "inline-block text-xs" }) : null }),
|
|
2540
|
+
/* @__PURE__ */ jsx29("dt", { children: "Gas balance after deposit" }),
|
|
2541
|
+
/* @__PURE__ */ jsx29("dd", { children: /* @__PURE__ */ jsx29(Balance, { wei: (quarryBalance.data ?? 0n) + (amount ?? 0n) }) }),
|
|
2542
|
+
/* @__PURE__ */ jsx29("dt", { children: "Estimated fee" }),
|
|
2543
|
+
/* @__PURE__ */ jsx29("dd", { children: estimatedFee.fee ? /* @__PURE__ */ jsxs18(Fragment3, { children: [
|
|
2509
2544
|
formatGas(estimatedFee.fee),
|
|
2510
2545
|
" gwei"
|
|
2511
|
-
] }) : estimatedFee.error ? /* @__PURE__ */
|
|
2512
|
-
/* @__PURE__ */
|
|
2513
|
-
/* @__PURE__ */
|
|
2546
|
+
] }) : estimatedFee.error ? /* @__PURE__ */ jsx29("span", { title: String(estimatedFee.error), children: /* @__PURE__ */ jsx29(WarningIcon, { className: "inline-block text-amber-500" }) }) : estimatedFee.isLoading ? /* @__PURE__ */ jsx29(PendingIcon, { className: "inline-block text-xs" }) : null }),
|
|
2547
|
+
/* @__PURE__ */ jsx29("dt", { children: "Time to deposit" }),
|
|
2548
|
+
/* @__PURE__ */ jsx29("dd", { children: estimatedTime })
|
|
2514
2549
|
]
|
|
2515
2550
|
}
|
|
2516
2551
|
),
|
|
2517
|
-
hasMinimumBalance ? submitButton : /* @__PURE__ */
|
|
2552
|
+
hasMinimumBalance ? submitButton : /* @__PURE__ */ jsx29(SubmitButton, { disabled: true, children: "Not enough funds" })
|
|
2518
2553
|
]
|
|
2519
2554
|
}
|
|
2520
2555
|
);
|
|
@@ -2568,18 +2603,18 @@ function useDeposits() {
|
|
|
2568
2603
|
}
|
|
2569
2604
|
|
|
2570
2605
|
// src/onboarding/deposit/DepositViaTransferForm.tsx
|
|
2571
|
-
import { jsx as
|
|
2606
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
2572
2607
|
function DepositViaTransferForm({ amount, setAmount, sourceChain, setSourceChainId }) {
|
|
2573
2608
|
const { chain } = useEntryKitConfig();
|
|
2574
2609
|
const paymaster = getPaymaster(chain);
|
|
2575
2610
|
const publicClient = usePublicClient();
|
|
2576
|
-
const { address: userAddress } =
|
|
2611
|
+
const { address: userAddress } = useAccount4();
|
|
2577
2612
|
const { writeContractAsync } = useWriteContract();
|
|
2578
2613
|
const { addDeposit } = useDeposits();
|
|
2579
2614
|
if (!userAddress) {
|
|
2580
2615
|
throw new Error("User address not found");
|
|
2581
2616
|
}
|
|
2582
|
-
const { data: gasPrice } =
|
|
2617
|
+
const { data: gasPrice } = useQuery12({
|
|
2583
2618
|
queryKey: ["gasPrice", sourceChain.id],
|
|
2584
2619
|
queryFn: async () => {
|
|
2585
2620
|
if (!publicClient) throw new Error("Public client not available");
|
|
@@ -2636,7 +2671,7 @@ function DepositViaTransferForm({ amount, setAmount, sourceChain, setSourceChain
|
|
|
2636
2671
|
}
|
|
2637
2672
|
});
|
|
2638
2673
|
const estimatedFee = prepareData?.gas && gasPrice ? prepareData.gas * gasPrice : void 0;
|
|
2639
|
-
return /* @__PURE__ */
|
|
2674
|
+
return /* @__PURE__ */ jsx30(
|
|
2640
2675
|
DepositForm,
|
|
2641
2676
|
{
|
|
2642
2677
|
sourceChain,
|
|
@@ -2652,7 +2687,7 @@ function DepositViaTransferForm({ amount, setAmount, sourceChain, setSourceChain
|
|
|
2652
2687
|
onSubmit: async () => {
|
|
2653
2688
|
await deposit.mutateAsync();
|
|
2654
2689
|
},
|
|
2655
|
-
submitButton: /* @__PURE__ */
|
|
2690
|
+
submitButton: /* @__PURE__ */ jsx30(
|
|
2656
2691
|
SubmitButton,
|
|
2657
2692
|
{
|
|
2658
2693
|
variant: "primary",
|
|
@@ -2669,19 +2704,19 @@ function DepositViaTransferForm({ amount, setAmount, sourceChain, setSourceChain
|
|
|
2669
2704
|
|
|
2670
2705
|
// src/onboarding/deposit/DepositViaRelayForm.tsx
|
|
2671
2706
|
import { encodeFunctionData as encodeFunctionData3 } from "viem";
|
|
2672
|
-
import { useAccount as
|
|
2673
|
-
import { useMutation as useMutation5, useQuery as
|
|
2674
|
-
import { jsx as
|
|
2707
|
+
import { useAccount as useAccount5, useWalletClient } from "wagmi";
|
|
2708
|
+
import { useMutation as useMutation5, useQuery as useQuery13 } from "@tanstack/react-query";
|
|
2709
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2675
2710
|
var ETH_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
2676
2711
|
function DepositViaRelayForm({ amount, setAmount, sourceChain, setSourceChainId }) {
|
|
2677
2712
|
const { chain, chainId: destinationChainId } = useEntryKitConfig();
|
|
2678
2713
|
const paymaster = getPaymaster(chain);
|
|
2679
2714
|
const { data: wallet } = useWalletClient();
|
|
2680
|
-
const { address: userAddress } =
|
|
2715
|
+
const { address: userAddress } = useAccount5();
|
|
2681
2716
|
const { addDeposit } = useDeposits();
|
|
2682
2717
|
const { data: relay } = useRelay();
|
|
2683
2718
|
const relayClient = relay?.client;
|
|
2684
|
-
const quote =
|
|
2719
|
+
const quote = useQuery13({
|
|
2685
2720
|
queryKey: ["relayBridgeQuote", sourceChain.id, amount?.toString()],
|
|
2686
2721
|
queryFn: async () => {
|
|
2687
2722
|
if (!relayClient) throw new Error("No Relay client found.");
|
|
@@ -2757,7 +2792,7 @@ function DepositViaRelayForm({ amount, setAmount, sourceChain, setSourceChainId
|
|
|
2757
2792
|
const gasFee = BigInt(fees?.gas?.amount ?? 0);
|
|
2758
2793
|
const relayerFee = BigInt(fees?.relayer?.amount ?? 0);
|
|
2759
2794
|
const fee = gasFee + relayerFee;
|
|
2760
|
-
return /* @__PURE__ */
|
|
2795
|
+
return /* @__PURE__ */ jsx31(
|
|
2761
2796
|
DepositForm,
|
|
2762
2797
|
{
|
|
2763
2798
|
sourceChain,
|
|
@@ -2774,7 +2809,7 @@ function DepositViaRelayForm({ amount, setAmount, sourceChain, setSourceChainId
|
|
|
2774
2809
|
if (!quote.data || !amount) return;
|
|
2775
2810
|
await deposit.mutateAsync({ quote: quote.data, amount });
|
|
2776
2811
|
},
|
|
2777
|
-
submitButton: /* @__PURE__ */
|
|
2812
|
+
submitButton: /* @__PURE__ */ jsx31(
|
|
2778
2813
|
SubmitButton,
|
|
2779
2814
|
{
|
|
2780
2815
|
variant: "primary",
|
|
@@ -2791,19 +2826,19 @@ function DepositViaRelayForm({ amount, setAmount, sourceChain, setSourceChainId
|
|
|
2791
2826
|
|
|
2792
2827
|
// src/onboarding/deposit/Deposits.tsx
|
|
2793
2828
|
import { useEffect as useEffect13 } from "react";
|
|
2794
|
-
import { useQuery as
|
|
2829
|
+
import { useQuery as useQuery16, useQueryClient as useQueryClient7 } from "@tanstack/react-query";
|
|
2795
2830
|
|
|
2796
2831
|
// src/onboarding/deposit/TransferDepositStatus.tsx
|
|
2797
|
-
import { useQuery as
|
|
2832
|
+
import { useQuery as useQuery14 } from "@tanstack/react-query";
|
|
2798
2833
|
|
|
2799
2834
|
// src/onboarding/deposit/DepositStatus.tsx
|
|
2800
|
-
import { useEffect as useEffect12, useState as
|
|
2835
|
+
import { useEffect as useEffect12, useState as useState3 } from "react";
|
|
2801
2836
|
import { twMerge as twMerge16 } from "tailwind-merge";
|
|
2802
2837
|
|
|
2803
2838
|
// src/icons/CloseIcon.tsx
|
|
2804
|
-
import { jsx as
|
|
2839
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2805
2840
|
function CloseIcon(props) {
|
|
2806
|
-
return /* @__PURE__ */
|
|
2841
|
+
return /* @__PURE__ */ jsx32(IconSVG, { strokeWidth: "2", stroke: "currentColor", ...props, children: /* @__PURE__ */ jsx32(
|
|
2807
2842
|
"path",
|
|
2808
2843
|
{
|
|
2809
2844
|
d: "M6 18L18 6M6 6L18 18",
|
|
@@ -2817,18 +2852,18 @@ function CloseIcon(props) {
|
|
|
2817
2852
|
}
|
|
2818
2853
|
|
|
2819
2854
|
// src/onboarding/deposit/DepositStatus.tsx
|
|
2820
|
-
import { jsx as
|
|
2855
|
+
import { jsx as jsx33, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2821
2856
|
function DepositStatus({ status, progress, children, onDismiss }) {
|
|
2822
|
-
const [appear, setAppear] =
|
|
2857
|
+
const [appear, setAppear] = useState3(false);
|
|
2823
2858
|
useEffect12(() => {
|
|
2824
2859
|
setAppear(true);
|
|
2825
2860
|
}, []);
|
|
2826
|
-
return /* @__PURE__ */ jsxs19("div", { className: "group bg-
|
|
2861
|
+
return /* @__PURE__ */ jsxs19("div", { className: "group bg-neutral-900 flex flex-col animate-in fade-in slide-in-from-bottom-2 animate-out fade-out", children: [
|
|
2827
2862
|
/* @__PURE__ */ jsxs19("div", { className: "py-1 text-sm flex items-center gap-2", children: [
|
|
2828
|
-
/* @__PURE__ */
|
|
2863
|
+
/* @__PURE__ */ jsx33("div", { className: "flex-grow", children }),
|
|
2829
2864
|
/* @__PURE__ */ jsxs19("div", { className: "flex-shrink-0 grid", children: [
|
|
2830
|
-
/* @__PURE__ */
|
|
2831
|
-
/* @__PURE__ */
|
|
2865
|
+
/* @__PURE__ */ jsx33("span", { className: "col-start-1 row-start-1 transition opacity-100 group-hover:opacity-0 group-hover:pointer-events-none", children: status === "success" ? /* @__PURE__ */ jsx33(CheckIcon, { className: "text-green-600" }) : status === "error" ? /* @__PURE__ */ jsx33(WarningIcon, { className: "text-amber-500" }) : /* @__PURE__ */ jsx33(PendingIcon, { className: "text-neutral-500 transition" }) }),
|
|
2866
|
+
/* @__PURE__ */ jsx33(
|
|
2832
2867
|
"button",
|
|
2833
2868
|
{
|
|
2834
2869
|
type: "button",
|
|
@@ -2836,22 +2871,21 @@ function DepositStatus({ status, progress, children, onDismiss }) {
|
|
|
2836
2871
|
"col-start-1 row-start-1 flex items-center justify-center transition",
|
|
2837
2872
|
"opacity-0 pointer-events-none",
|
|
2838
2873
|
"group-hover:opacity-100 group-hover:pointer-events-auto",
|
|
2839
|
-
"text-neutral-
|
|
2840
|
-
"dark:text-neutral-500 dark:hover:text-white"
|
|
2874
|
+
"text-neutral-500 hover:text-white"
|
|
2841
2875
|
),
|
|
2842
2876
|
title: "Dismiss",
|
|
2843
2877
|
onClick: onDismiss,
|
|
2844
|
-
children: /* @__PURE__ */
|
|
2878
|
+
children: /* @__PURE__ */ jsx33(CloseIcon, {})
|
|
2845
2879
|
}
|
|
2846
2880
|
)
|
|
2847
2881
|
] })
|
|
2848
2882
|
] }),
|
|
2849
|
-
/* @__PURE__ */
|
|
2883
|
+
/* @__PURE__ */ jsx33("div", { className: "w-full h-[2px] -mt-full overflow-clip", children: /* @__PURE__ */ jsx33(
|
|
2850
2884
|
"div",
|
|
2851
2885
|
{
|
|
2852
2886
|
className: twMerge16(
|
|
2853
2887
|
"w-full h-full transition ease-linear",
|
|
2854
|
-
status === "success" ? "bg-green-
|
|
2888
|
+
status === "success" ? "bg-green-600" : status === "error" ? "bg-red-600" : "bg-blue-600",
|
|
2855
2889
|
status === "pending" ? "opacity-100" : "opacity-0"
|
|
2856
2890
|
),
|
|
2857
2891
|
style: status === "pending" ? {
|
|
@@ -2866,7 +2900,7 @@ function DepositStatus({ status, progress, children, onDismiss }) {
|
|
|
2866
2900
|
|
|
2867
2901
|
// src/onboarding/deposit/TransferDepositStatus.tsx
|
|
2868
2902
|
import { useChains as useChains2 } from "wagmi";
|
|
2869
|
-
import { Fragment as
|
|
2903
|
+
import { Fragment as Fragment4, jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2870
2904
|
function TransferDepositStatus({
|
|
2871
2905
|
amount,
|
|
2872
2906
|
chainL1Id,
|
|
@@ -2878,11 +2912,11 @@ function TransferDepositStatus({
|
|
|
2878
2912
|
}) {
|
|
2879
2913
|
const chains = useChains2();
|
|
2880
2914
|
const chain = chains.find((chain2) => chain2.id === chainL1Id);
|
|
2881
|
-
const receipt =
|
|
2915
|
+
const receipt = useQuery14({
|
|
2882
2916
|
queryKey: ["transferDepositStatus", hash],
|
|
2883
2917
|
queryFn: () => receiptPromise
|
|
2884
2918
|
});
|
|
2885
|
-
return /* @__PURE__ */
|
|
2919
|
+
return /* @__PURE__ */ jsx34(
|
|
2886
2920
|
DepositStatus,
|
|
2887
2921
|
{
|
|
2888
2922
|
status: receipt.status,
|
|
@@ -2894,10 +2928,10 @@ function TransferDepositStatus({
|
|
|
2894
2928
|
children: (() => {
|
|
2895
2929
|
const blockExplorer = chain.blockExplorers?.default.url;
|
|
2896
2930
|
if (receipt.status === "pending") {
|
|
2897
|
-
return /* @__PURE__ */ jsxs20(
|
|
2931
|
+
return /* @__PURE__ */ jsxs20(Fragment4, { children: [
|
|
2898
2932
|
"Confirming deposit on",
|
|
2899
2933
|
" ",
|
|
2900
|
-
/* @__PURE__ */
|
|
2934
|
+
/* @__PURE__ */ jsx34(
|
|
2901
2935
|
"a",
|
|
2902
2936
|
{
|
|
2903
2937
|
href: blockExplorer ? `${blockExplorer}/tx/${hash}` : void 0,
|
|
@@ -2910,10 +2944,10 @@ function TransferDepositStatus({
|
|
|
2910
2944
|
] });
|
|
2911
2945
|
}
|
|
2912
2946
|
if (receipt.status === "error") {
|
|
2913
|
-
return /* @__PURE__ */ jsxs20(
|
|
2947
|
+
return /* @__PURE__ */ jsxs20(Fragment4, { children: [
|
|
2914
2948
|
"Could not find deposit on",
|
|
2915
2949
|
" ",
|
|
2916
|
-
/* @__PURE__ */
|
|
2950
|
+
/* @__PURE__ */ jsx34(
|
|
2917
2951
|
"a",
|
|
2918
2952
|
{
|
|
2919
2953
|
href: blockExplorer ? `${blockExplorer}/tx/${hash}` : void 0,
|
|
@@ -2925,10 +2959,10 @@ function TransferDepositStatus({
|
|
|
2925
2959
|
"."
|
|
2926
2960
|
] });
|
|
2927
2961
|
}
|
|
2928
|
-
return /* @__PURE__ */ jsxs20(
|
|
2962
|
+
return /* @__PURE__ */ jsxs20(Fragment4, { children: [
|
|
2929
2963
|
"Successfully",
|
|
2930
2964
|
" ",
|
|
2931
|
-
/* @__PURE__ */
|
|
2965
|
+
/* @__PURE__ */ jsx34(
|
|
2932
2966
|
"a",
|
|
2933
2967
|
{
|
|
2934
2968
|
href: blockExplorer ? `${blockExplorer}/tx/${receipt.data.transactionHash}` : void 0,
|
|
@@ -2938,7 +2972,7 @@ function TransferDepositStatus({
|
|
|
2938
2972
|
}
|
|
2939
2973
|
),
|
|
2940
2974
|
" ",
|
|
2941
|
-
/* @__PURE__ */
|
|
2975
|
+
/* @__PURE__ */ jsx34(Balance, { wei: amount })
|
|
2942
2976
|
] });
|
|
2943
2977
|
})()
|
|
2944
2978
|
}
|
|
@@ -2946,9 +2980,9 @@ function TransferDepositStatus({
|
|
|
2946
2980
|
}
|
|
2947
2981
|
|
|
2948
2982
|
// src/onboarding/deposit/RelayDepositStatus.tsx
|
|
2949
|
-
import { useQuery as
|
|
2983
|
+
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
|
2950
2984
|
import { useChains as useChains3 } from "wagmi";
|
|
2951
|
-
import { Fragment as
|
|
2985
|
+
import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2952
2986
|
function RelayDepositStatus({
|
|
2953
2987
|
amount,
|
|
2954
2988
|
chainL1Id,
|
|
@@ -2961,11 +2995,11 @@ function RelayDepositStatus({
|
|
|
2961
2995
|
const chains = useChains3();
|
|
2962
2996
|
const chainL1 = chains.find((chain) => chain.id === chainL1Id);
|
|
2963
2997
|
const chainL2 = chains.find((chain) => chain.id === chainL2Id);
|
|
2964
|
-
const deposit =
|
|
2998
|
+
const deposit = useQuery15({
|
|
2965
2999
|
queryKey: ["relayDepositPromise", chainL1Id, chainL2Id, amount.toString(), start.toISOString()],
|
|
2966
3000
|
queryFn: () => depositPromise
|
|
2967
3001
|
});
|
|
2968
|
-
return /* @__PURE__ */
|
|
3002
|
+
return /* @__PURE__ */ jsx35(
|
|
2969
3003
|
DepositStatus,
|
|
2970
3004
|
{
|
|
2971
3005
|
status: deposit.status,
|
|
@@ -2976,22 +3010,22 @@ function RelayDepositStatus({
|
|
|
2976
3010
|
onDismiss,
|
|
2977
3011
|
children: (() => {
|
|
2978
3012
|
if (deposit.status === "pending") {
|
|
2979
|
-
return /* @__PURE__ */ jsxs21(
|
|
3013
|
+
return /* @__PURE__ */ jsxs21(Fragment5, { children: [
|
|
2980
3014
|
"Relay bridge deposit pending on ",
|
|
2981
3015
|
chainL1.name,
|
|
2982
3016
|
"\u2026"
|
|
2983
3017
|
] });
|
|
2984
3018
|
}
|
|
2985
3019
|
if (deposit.status === "error") {
|
|
2986
|
-
return /* @__PURE__ */ jsxs21(
|
|
3020
|
+
return /* @__PURE__ */ jsxs21(Fragment5, { children: [
|
|
2987
3021
|
"Relay bridge deposit to ",
|
|
2988
3022
|
chainL2.name,
|
|
2989
3023
|
" failed."
|
|
2990
3024
|
] });
|
|
2991
3025
|
}
|
|
2992
|
-
return /* @__PURE__ */ jsxs21(
|
|
3026
|
+
return /* @__PURE__ */ jsxs21(Fragment5, { children: [
|
|
2993
3027
|
"Successfully bridged ",
|
|
2994
|
-
/* @__PURE__ */
|
|
3028
|
+
/* @__PURE__ */ jsx35(Balance, { wei: amount }),
|
|
2995
3029
|
" to ",
|
|
2996
3030
|
chainL2.name,
|
|
2997
3031
|
"!"
|
|
@@ -3002,15 +3036,15 @@ function RelayDepositStatus({
|
|
|
3002
3036
|
}
|
|
3003
3037
|
|
|
3004
3038
|
// src/onboarding/deposit/Deposits.tsx
|
|
3005
|
-
import { useAccount as
|
|
3006
|
-
import { jsx as
|
|
3039
|
+
import { useAccount as useAccount6, useClient as useClient11 } from "wagmi";
|
|
3040
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3007
3041
|
function Deposits() {
|
|
3008
3042
|
const queryClient = useQueryClient7();
|
|
3009
3043
|
const { chainId } = useEntryKitConfig();
|
|
3010
3044
|
const client = useClient11({ chainId });
|
|
3011
|
-
const { address: userAddress } =
|
|
3045
|
+
const { address: userAddress } = useAccount6();
|
|
3012
3046
|
const { deposits, removeDeposit } = useDeposits();
|
|
3013
|
-
const { data: isComplete } =
|
|
3047
|
+
const { data: isComplete } = useQuery16({
|
|
3014
3048
|
queryKey: ["depositsComplete", deposits.map((deposit) => deposit.uid)],
|
|
3015
3049
|
queryFn: async () => {
|
|
3016
3050
|
if (!deposits.length) return false;
|
|
@@ -3025,26 +3059,26 @@ function Deposits() {
|
|
|
3025
3059
|
}
|
|
3026
3060
|
}, [client?.uid, isComplete, queryClient, userAddress]);
|
|
3027
3061
|
if (!deposits.length) return null;
|
|
3028
|
-
return /* @__PURE__ */
|
|
3062
|
+
return /* @__PURE__ */ jsx36("div", { className: "flex flex-col gap-1 mt-4", children: deposits.map((deposit) => {
|
|
3029
3063
|
if (deposit.type === "transfer") {
|
|
3030
|
-
return /* @__PURE__ */
|
|
3064
|
+
return /* @__PURE__ */ jsx36(TransferDepositStatus, { ...deposit, onDismiss: () => removeDeposit(deposit.uid) }, deposit.uid);
|
|
3031
3065
|
} else if (deposit.type === "relay") {
|
|
3032
|
-
return /* @__PURE__ */
|
|
3066
|
+
return /* @__PURE__ */ jsx36(RelayDepositStatus, { ...deposit, onDismiss: () => removeDeposit(deposit.uid) }, deposit.uid);
|
|
3033
3067
|
}
|
|
3034
3068
|
}) });
|
|
3035
3069
|
}
|
|
3036
3070
|
|
|
3037
3071
|
// src/onboarding/deposit/DepositFormContainer.tsx
|
|
3038
|
-
import { jsx as
|
|
3072
|
+
import { jsx as jsx37, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3039
3073
|
function DepositFormContainer() {
|
|
3040
3074
|
const { chainId: destinationChainId } = useEntryKitConfig();
|
|
3041
3075
|
const chainId = useChainId();
|
|
3042
3076
|
const chains = useChains4();
|
|
3043
|
-
const [amount, setAmount] =
|
|
3044
|
-
const [sourceChainId, setSourceChainId] =
|
|
3077
|
+
const [amount, setAmount] = useState4(void 0);
|
|
3078
|
+
const [sourceChainId, setSourceChainId] = useState4(chainId);
|
|
3045
3079
|
const sourceChain = chains.find(({ id }) => id === sourceChainId);
|
|
3046
3080
|
return /* @__PURE__ */ jsxs22("div", { className: "pt-10 pb-2", children: [
|
|
3047
|
-
destinationChainId === sourceChainId ? /* @__PURE__ */
|
|
3081
|
+
destinationChainId === sourceChainId ? /* @__PURE__ */ jsx37(
|
|
3048
3082
|
DepositViaTransferForm,
|
|
3049
3083
|
{
|
|
3050
3084
|
amount,
|
|
@@ -3052,7 +3086,7 @@ function DepositFormContainer() {
|
|
|
3052
3086
|
sourceChain,
|
|
3053
3087
|
setSourceChainId
|
|
3054
3088
|
}
|
|
3055
|
-
) : /* @__PURE__ */
|
|
3089
|
+
) : /* @__PURE__ */ jsx37(
|
|
3056
3090
|
DepositViaRelayForm,
|
|
3057
3091
|
{
|
|
3058
3092
|
amount,
|
|
@@ -3061,14 +3095,14 @@ function DepositFormContainer() {
|
|
|
3061
3095
|
setSourceChainId
|
|
3062
3096
|
}
|
|
3063
3097
|
),
|
|
3064
|
-
/* @__PURE__ */
|
|
3098
|
+
/* @__PURE__ */ jsx37(Deposits, {})
|
|
3065
3099
|
] });
|
|
3066
3100
|
}
|
|
3067
3101
|
|
|
3068
3102
|
// src/icons/ArrowLeftIcon.tsx
|
|
3069
|
-
import { jsx as
|
|
3103
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
3070
3104
|
function ArrowLeftIcon(props) {
|
|
3071
|
-
return /* @__PURE__ */
|
|
3105
|
+
return /* @__PURE__ */ jsx38(IconSVG, { ...props, children: /* @__PURE__ */ jsx38(
|
|
3072
3106
|
"path",
|
|
3073
3107
|
{
|
|
3074
3108
|
d: "M19 12H5M12 19l-7-7 7-7",
|
|
@@ -3081,12 +3115,91 @@ function ArrowLeftIcon(props) {
|
|
|
3081
3115
|
) });
|
|
3082
3116
|
}
|
|
3083
3117
|
|
|
3084
|
-
// src/onboarding/quarry/
|
|
3085
|
-
import {
|
|
3118
|
+
// src/onboarding/quarry/WithdrawGasBalanceButton.tsx
|
|
3119
|
+
import { getAction as getAction6 } from "viem/utils";
|
|
3120
|
+
import { waitForTransactionReceipt as waitForTransactionReceipt3 } from "viem/actions";
|
|
3121
|
+
import { useAccount as useAccount7, useClient as useClient12, useSwitchChain as useSwitchChain3, useWriteContract as useWriteContract2 } from "wagmi";
|
|
3122
|
+
import { twMerge as twMerge17 } from "tailwind-merge";
|
|
3123
|
+
import { useMutation as useMutation6 } from "@tanstack/react-query";
|
|
3086
3124
|
import { useQueryClient as useQueryClient8 } from "@tanstack/react-query";
|
|
3087
|
-
import {
|
|
3088
|
-
function
|
|
3125
|
+
import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3126
|
+
function WithdrawGasBalanceButton({ userAddress }) {
|
|
3127
|
+
const { writeContractAsync } = useWriteContract2();
|
|
3128
|
+
const { switchChain } = useSwitchChain3();
|
|
3129
|
+
const { chain, chainId } = useEntryKitConfig();
|
|
3130
|
+
const { chainId: userChainId } = useAccount7();
|
|
3089
3131
|
const queryClient = useQueryClient8();
|
|
3132
|
+
const client = useClient12({ chainId });
|
|
3133
|
+
const paymaster = getPaymaster(chain);
|
|
3134
|
+
const balance = useShowQueryError(useBalance(userAddress));
|
|
3135
|
+
const shouldSwitchChain = chainId != null && chainId !== userChainId;
|
|
3136
|
+
const withdraw = useMutation6({
|
|
3137
|
+
mutationKey: ["withdraw", userAddress],
|
|
3138
|
+
mutationFn: async () => {
|
|
3139
|
+
if (!client) throw new Error("Client not ready.");
|
|
3140
|
+
if (!paymaster) throw new Error("Paymaster not found");
|
|
3141
|
+
if (!balance.data) throw new Error("No gas balance to withdraw.");
|
|
3142
|
+
try {
|
|
3143
|
+
const hash = await writeContractAsync({
|
|
3144
|
+
address: paymaster.address,
|
|
3145
|
+
abi: paymasterAbi,
|
|
3146
|
+
functionName: "withdrawTo",
|
|
3147
|
+
args: [userAddress, balance.data],
|
|
3148
|
+
chainId
|
|
3149
|
+
});
|
|
3150
|
+
await getAction6(client, waitForTransactionReceipt3, "waitForTransactionReceipt")({ hash });
|
|
3151
|
+
await Promise.all([
|
|
3152
|
+
queryClient.invalidateQueries({ queryKey: ["balance"] }),
|
|
3153
|
+
queryClient.invalidateQueries({ queryKey: ["getPrerequisites"] })
|
|
3154
|
+
]);
|
|
3155
|
+
} catch (error2) {
|
|
3156
|
+
console.error("Error while withdrawing", error2);
|
|
3157
|
+
throw error2;
|
|
3158
|
+
}
|
|
3159
|
+
}
|
|
3160
|
+
});
|
|
3161
|
+
if (balance.data == null || balance.data === 0n) {
|
|
3162
|
+
return null;
|
|
3163
|
+
}
|
|
3164
|
+
return /* @__PURE__ */ jsx39(
|
|
3165
|
+
"button",
|
|
3166
|
+
{
|
|
3167
|
+
onClick: () => {
|
|
3168
|
+
if (shouldSwitchChain) {
|
|
3169
|
+
return switchChain({ chainId });
|
|
3170
|
+
}
|
|
3171
|
+
withdraw.mutate();
|
|
3172
|
+
},
|
|
3173
|
+
className: twMerge17(
|
|
3174
|
+
"text-sm font-medium text-white/50 group whitespace-nowrap",
|
|
3175
|
+
withdraw.isPending ? "opacity-50 pointer-events-none" : "cursor-pointer hover:text-white"
|
|
3176
|
+
),
|
|
3177
|
+
disabled: withdraw.isPending,
|
|
3178
|
+
children: /* @__PURE__ */ jsxs23("span", { className: "inline-block", children: [
|
|
3179
|
+
/* @__PURE__ */ jsxs23(
|
|
3180
|
+
"span",
|
|
3181
|
+
{
|
|
3182
|
+
className: twMerge17(
|
|
3183
|
+
"inline-flex items-center gap-1 underline decoration-neutral-500 underline-offset-4",
|
|
3184
|
+
!withdraw.isPending && "hover:decoration-orange-500",
|
|
3185
|
+
shouldSwitchChain && "group-hover:hidden"
|
|
3186
|
+
),
|
|
3187
|
+
children: [
|
|
3188
|
+
withdraw.isPending && /* @__PURE__ */ jsx39(PendingIcon, { className: "w-3 h-3" }),
|
|
3189
|
+
"Withdraw"
|
|
3190
|
+
]
|
|
3191
|
+
}
|
|
3192
|
+
),
|
|
3193
|
+
shouldSwitchChain && /* @__PURE__ */ jsx39("span", { className: "hidden group-hover:inline-block underline decoration-neutral-500 underline-offset-4 hover:decoration-orange-500", children: "Switch chain" })
|
|
3194
|
+
] })
|
|
3195
|
+
}
|
|
3196
|
+
);
|
|
3197
|
+
}
|
|
3198
|
+
|
|
3199
|
+
// src/onboarding/quarry/GasBalance.tsx
|
|
3200
|
+
import { jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3201
|
+
function GasBalance2({ isActive, isExpanded, isFocused, setFocused, userAddress }) {
|
|
3202
|
+
const queryClient = useQueryClient9();
|
|
3090
3203
|
const balance = useShowQueryError(useBalance(userAddress));
|
|
3091
3204
|
const prevBalance = usePrevious(balance.data || 0n);
|
|
3092
3205
|
useEffect14(() => {
|
|
@@ -3096,7 +3209,7 @@ function GasBalance2({ isActive, isExpanded, isFocused, setFocused, userAddress
|
|
|
3096
3209
|
}
|
|
3097
3210
|
}, [balance.data, prevBalance, setFocused, queryClient, userAddress]);
|
|
3098
3211
|
if (isFocused) {
|
|
3099
|
-
return /* @__PURE__ */
|
|
3212
|
+
return /* @__PURE__ */ jsxs24("div", { children: [
|
|
3100
3213
|
isFocused && /* @__PURE__ */ jsx40("div", { className: "absolute top-0 left-0", children: /* @__PURE__ */ jsx40(
|
|
3101
3214
|
"div",
|
|
3102
3215
|
{
|
|
@@ -3108,23 +3221,26 @@ function GasBalance2({ isActive, isExpanded, isFocused, setFocused, userAddress
|
|
|
3108
3221
|
/* @__PURE__ */ jsx40(DepositFormContainer, {})
|
|
3109
3222
|
] });
|
|
3110
3223
|
}
|
|
3111
|
-
return /* @__PURE__ */
|
|
3112
|
-
/* @__PURE__ */
|
|
3113
|
-
/* @__PURE__ */
|
|
3224
|
+
return /* @__PURE__ */ jsxs24("div", { className: "flex flex-col gap-4", children: [
|
|
3225
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex justify-between gap-4", children: [
|
|
3226
|
+
/* @__PURE__ */ jsxs24("div", { children: [
|
|
3114
3227
|
/* @__PURE__ */ jsx40("div", { children: "Gas balance" }),
|
|
3115
3228
|
/* @__PURE__ */ jsx40("div", { className: "font-mono text-white", children: balance.data != null ? /* @__PURE__ */ jsx40(Balance, { wei: balance.data }) : /* @__PURE__ */ jsx40(PendingIcon, { className: "text-sm" }) })
|
|
3116
3229
|
] }),
|
|
3117
|
-
/* @__PURE__ */
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3230
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex flex-col gap-1 justify-center items-center", children: [
|
|
3231
|
+
/* @__PURE__ */ jsx40(
|
|
3232
|
+
Button,
|
|
3233
|
+
{
|
|
3234
|
+
variant: isActive ? "primary" : "tertiary",
|
|
3235
|
+
className: "flex-shrink-0 text-sm p-1 w-28",
|
|
3236
|
+
autoFocus: isActive || isExpanded,
|
|
3237
|
+
pending: balance.status === "pending",
|
|
3238
|
+
onClick: () => setFocused(true),
|
|
3239
|
+
children: "Top up"
|
|
3240
|
+
}
|
|
3241
|
+
),
|
|
3242
|
+
/* @__PURE__ */ jsx40(WithdrawGasBalanceButton, { userAddress })
|
|
3243
|
+
] })
|
|
3128
3244
|
] }),
|
|
3129
3245
|
isExpanded ? /* @__PURE__ */ jsx40("p", { className: "text-sm", children: "Your gas balance is used to pay for onchain computation." }) : null
|
|
3130
3246
|
] });
|
|
@@ -3135,7 +3251,7 @@ import { jsx as jsx41 } from "react/jsx-runtime";
|
|
|
3135
3251
|
function ConnectedSteps({ userClient, initialUserAddress }) {
|
|
3136
3252
|
const { chain } = useEntryKitConfig();
|
|
3137
3253
|
const paymaster = getPaymaster(chain);
|
|
3138
|
-
const [focusedId, setFocusedId] =
|
|
3254
|
+
const [focusedId, setFocusedId] = useState5(null);
|
|
3139
3255
|
const userAddress = userClient.account.address;
|
|
3140
3256
|
const { data: prerequisites, error: prerequisitesError } = usePrerequisites(userAddress);
|
|
3141
3257
|
useEffect15(() => {
|
|
@@ -3145,7 +3261,7 @@ function ConnectedSteps({ userClient, initialUserAddress }) {
|
|
|
3145
3261
|
}, [prerequisitesError]);
|
|
3146
3262
|
const { closeAccountModal } = useAccountModal();
|
|
3147
3263
|
const isNewConnection = userAddress !== initialUserAddress;
|
|
3148
|
-
const initialPrerequisites =
|
|
3264
|
+
const initialPrerequisites = useRef5(prerequisites);
|
|
3149
3265
|
useEffect15(() => {
|
|
3150
3266
|
if (prerequisites == null) return;
|
|
3151
3267
|
if (initialPrerequisites.current == null) {
|
|
@@ -3215,7 +3331,7 @@ function ConnectedSteps({ userClient, initialUserAddress }) {
|
|
|
3215
3331
|
userAddress,
|
|
3216
3332
|
userClient
|
|
3217
3333
|
]);
|
|
3218
|
-
const [selectedStepId] =
|
|
3334
|
+
const [selectedStepId] = useState5(null);
|
|
3219
3335
|
const nextStep = steps.find((step) => step.content != null && !step.isComplete);
|
|
3220
3336
|
const completedSteps = steps.filter((step) => step.isComplete);
|
|
3221
3337
|
const activeStep = (selectedStepId != null ? steps.find((step) => step.id === selectedStepId) : null) ?? nextStep ?? (completedSteps.length < steps.length ? completedSteps.at(-1) : null);
|
|
@@ -3223,9 +3339,9 @@ function ConnectedSteps({ userClient, initialUserAddress }) {
|
|
|
3223
3339
|
return /* @__PURE__ */ jsx41(
|
|
3224
3340
|
"div",
|
|
3225
3341
|
{
|
|
3226
|
-
className:
|
|
3342
|
+
className: twMerge18(
|
|
3227
3343
|
"px-8 flex flex-col",
|
|
3228
|
-
|
|
3344
|
+
"divide-y divide-neutral-800",
|
|
3229
3345
|
"animate-in animate-duration-300 fade-in slide-in-from-bottom-8"
|
|
3230
3346
|
),
|
|
3231
3347
|
children: steps.map((step, i) => {
|
|
@@ -3245,20 +3361,20 @@ function ConnectedSteps({ userClient, initialUserAddress }) {
|
|
|
3245
3361
|
}
|
|
3246
3362
|
return null;
|
|
3247
3363
|
}
|
|
3248
|
-
return /* @__PURE__ */ jsx41("div", { className:
|
|
3364
|
+
return /* @__PURE__ */ jsx41("div", { className: twMerge18("py-8 flex flex-col justify-center", isActive ? "flex-grow" : null), children: /* @__PURE__ */ jsx41("div", { className: twMerge18("flex flex-col", isDisabled ? "opacity-30 pointer-events-none" : null), children: content }) }, step.id);
|
|
3249
3365
|
})
|
|
3250
3366
|
}
|
|
3251
3367
|
);
|
|
3252
3368
|
}
|
|
3253
3369
|
|
|
3254
3370
|
// src/AccountModalContent.tsx
|
|
3255
|
-
import { useRef as
|
|
3371
|
+
import { useRef as useRef6 } from "react";
|
|
3256
3372
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3257
3373
|
function AccountModalContent() {
|
|
3258
3374
|
const { chainId } = useEntryKitConfig();
|
|
3259
3375
|
const userClient = useConnectorClient({ chainId });
|
|
3260
3376
|
const { address: userAddress } = useAccount8();
|
|
3261
|
-
const initialUserAddress =
|
|
3377
|
+
const initialUserAddress = useRef6(userAddress);
|
|
3262
3378
|
if (userClient.status !== "success") {
|
|
3263
3379
|
return /* @__PURE__ */ jsx42(ConnectWallet, {});
|
|
3264
3380
|
}
|
|
@@ -3272,19 +3388,19 @@ import { ErrorBoundary } from "react-error-boundary";
|
|
|
3272
3388
|
// src/errors/ErrorOverlay.tsx
|
|
3273
3389
|
import { wait } from "@latticexyz/common/utils";
|
|
3274
3390
|
import { useEffect as useEffect16 } from "react";
|
|
3275
|
-
import { twMerge as
|
|
3276
|
-
import { Fragment as
|
|
3391
|
+
import { twMerge as twMerge19 } from "tailwind-merge";
|
|
3392
|
+
import { Fragment as Fragment6, jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3277
3393
|
function ErrorOverlay({ error: error2, retry, dismiss }) {
|
|
3278
3394
|
useEffect16(() => {
|
|
3279
3395
|
if (error2) {
|
|
3280
3396
|
console.error(error2);
|
|
3281
3397
|
}
|
|
3282
3398
|
}, [error2]);
|
|
3283
|
-
return /* @__PURE__ */
|
|
3399
|
+
return /* @__PURE__ */ jsxs25("div", { className: "pointer-events-none absolute inset-0 overflow-clip", children: [
|
|
3284
3400
|
/* @__PURE__ */ jsx43(
|
|
3285
3401
|
"div",
|
|
3286
3402
|
{
|
|
3287
|
-
className:
|
|
3403
|
+
className: twMerge19(
|
|
3288
3404
|
"absolute inset-0 bg-blue-700/60",
|
|
3289
3405
|
"transition duration-300",
|
|
3290
3406
|
error2 ? "opacity-100 pointer-events-auto" : "opacity-0"
|
|
@@ -3294,24 +3410,24 @@ function ErrorOverlay({ error: error2, retry, dismiss }) {
|
|
|
3294
3410
|
/* @__PURE__ */ jsx43(
|
|
3295
3411
|
"div",
|
|
3296
3412
|
{
|
|
3297
|
-
className:
|
|
3413
|
+
className: twMerge19(
|
|
3298
3414
|
"absolute inset-0 pb-8",
|
|
3299
3415
|
"transition duration-300",
|
|
3300
3416
|
error2 ? "translate-y-0 opacity-100 pointer-events-auto" : "-translate-y-4 opacity-0"
|
|
3301
3417
|
),
|
|
3302
|
-
children: error2 ? /* @__PURE__ */ jsx43(
|
|
3303
|
-
/* @__PURE__ */
|
|
3418
|
+
children: error2 ? /* @__PURE__ */ jsx43(Fragment6, { children: /* @__PURE__ */ jsxs25("div", { className: "w-full max-h-full bg-blue-700 text-white/80 overflow-auto", children: [
|
|
3419
|
+
/* @__PURE__ */ jsxs25("div", { className: "space-y-6 px-8 pt-8", children: [
|
|
3304
3420
|
/* @__PURE__ */ jsx43("div", { className: "text-white text-lg font-bold", children: "Oops! It broke :(" }),
|
|
3305
3421
|
/* @__PURE__ */ jsx43("div", { className: "font-mono text-xs whitespace-pre-wrap", children: error2.message.trim() }),
|
|
3306
3422
|
/* @__PURE__ */ jsx43("div", { className: "text-sm", children: "See the console for more info." })
|
|
3307
3423
|
] }),
|
|
3308
|
-
/* @__PURE__ */
|
|
3424
|
+
/* @__PURE__ */ jsxs25("div", { className: "pointer-events-none sticky bottom-0 left-0 -mt-2", children: [
|
|
3309
3425
|
/* @__PURE__ */ jsx43("div", { className: "w-full h-12 bg-gradient-to-b from-transparent to-blue-700" }),
|
|
3310
|
-
retry ? /* @__PURE__ */ jsx43("div", { className: "bg-blue-700 text-center", children: /* @__PURE__ */
|
|
3426
|
+
retry ? /* @__PURE__ */ jsx43("div", { className: "bg-blue-700 text-center", children: /* @__PURE__ */ jsxs25(
|
|
3311
3427
|
"button",
|
|
3312
3428
|
{
|
|
3313
3429
|
type: "button",
|
|
3314
|
-
className:
|
|
3430
|
+
className: twMerge19(
|
|
3315
3431
|
"pointer-events-auto group w-24 p-1 -translate-y-2 transition",
|
|
3316
3432
|
"bg-blue-600 hover:bg-blue-500 aria-busy:bg-blue-500",
|
|
3317
3433
|
"text-white text-sm font-medium",
|
|
@@ -3334,7 +3450,7 @@ function ErrorOverlay({ error: error2, retry, dismiss }) {
|
|
|
3334
3450
|
"button",
|
|
3335
3451
|
{
|
|
3336
3452
|
type: "button",
|
|
3337
|
-
className:
|
|
3453
|
+
className: twMerge19(
|
|
3338
3454
|
"pointer-events-auto group w-24 p-1 -translate-y-2 transition",
|
|
3339
3455
|
"bg-blue-600 hover:bg-blue-500 aria-busy:bg-blue-500",
|
|
3340
3456
|
"text-white text-sm font-medium",
|
|
@@ -3366,13 +3482,13 @@ function ErrorsOverlay() {
|
|
|
3366
3482
|
}
|
|
3367
3483
|
|
|
3368
3484
|
// src/AccountModal.tsx
|
|
3369
|
-
import { jsx as jsx46, jsxs as
|
|
3485
|
+
import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3370
3486
|
function AccountModal() {
|
|
3371
3487
|
const { accountModalOpen, toggleAccountModal } = useAccountModal();
|
|
3372
|
-
return /* @__PURE__ */ jsx46(Modal, { open: accountModalOpen, onOpenChange: toggleAccountModal, children: accountModalOpen ? /* @__PURE__ */
|
|
3488
|
+
return /* @__PURE__ */ jsx46(Modal, { open: accountModalOpen, onOpenChange: toggleAccountModal, children: accountModalOpen ? /* @__PURE__ */ jsxs26(
|
|
3373
3489
|
"div",
|
|
3374
3490
|
{
|
|
3375
|
-
className:
|
|
3491
|
+
className: twMerge20(
|
|
3376
3492
|
"relative py-2 ring-1",
|
|
3377
3493
|
"bg-neutral-900 text-neutral-400 ring-neutral-700/50",
|
|
3378
3494
|
"links:font-medium links:underline links:underline-offset-4",
|
|
@@ -3380,11 +3496,11 @@ function AccountModal() {
|
|
|
3380
3496
|
"links:decoration-neutral-500 hover:links:decoration-orange-500"
|
|
3381
3497
|
),
|
|
3382
3498
|
children: [
|
|
3383
|
-
/* @__PURE__ */
|
|
3499
|
+
/* @__PURE__ */ jsxs26(ErrorBoundary, { FallbackComponent: ErrorFallback, children: [
|
|
3384
3500
|
/* @__PURE__ */ jsx46(AccountModalContent, {}),
|
|
3385
3501
|
/* @__PURE__ */ jsx46(ErrorsOverlay, {})
|
|
3386
3502
|
] }),
|
|
3387
|
-
/* @__PURE__ */
|
|
3503
|
+
/* @__PURE__ */ jsxs26(
|
|
3388
3504
|
"a",
|
|
3389
3505
|
{
|
|
3390
3506
|
href: "https://mud.dev",
|
|
@@ -3400,7 +3516,7 @@ function AccountModal() {
|
|
|
3400
3516
|
/* @__PURE__ */ jsx46("div", { className: "absolute top-0 right-0", children: /* @__PURE__ */ jsx46(
|
|
3401
3517
|
DialogClose,
|
|
3402
3518
|
{
|
|
3403
|
-
className:
|
|
3519
|
+
className: twMerge20(
|
|
3404
3520
|
"pointer-events-auto leading-none p-2 transition",
|
|
3405
3521
|
"text-white/20 hover:text-white/40"
|
|
3406
3522
|
),
|
|
@@ -3414,9 +3530,9 @@ function AccountModal() {
|
|
|
3414
3530
|
}
|
|
3415
3531
|
|
|
3416
3532
|
// src/EntryKitProvider.tsx
|
|
3417
|
-
import { jsx as jsx47, jsxs as
|
|
3533
|
+
import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3418
3534
|
function EntryKitProvider({ config, children }) {
|
|
3419
|
-
return /* @__PURE__ */
|
|
3535
|
+
return /* @__PURE__ */ jsxs27(EntryKitConfigProvider, { config, children: [
|
|
3420
3536
|
children,
|
|
3421
3537
|
/* @__PURE__ */ jsx47(AccountModal, {})
|
|
3422
3538
|
] });
|
|
@@ -3424,21 +3540,21 @@ function EntryKitProvider({ config, children }) {
|
|
|
3424
3540
|
|
|
3425
3541
|
// src/AccountButton.tsx
|
|
3426
3542
|
import { useAccount as useAccount9 } from "wagmi";
|
|
3427
|
-
import { twMerge as
|
|
3543
|
+
import { twMerge as twMerge22 } from "tailwind-merge";
|
|
3428
3544
|
|
|
3429
3545
|
// src/AccountName.tsx
|
|
3430
|
-
import { twMerge as
|
|
3431
|
-
import { Fragment as
|
|
3546
|
+
import { twMerge as twMerge21 } from "tailwind-merge";
|
|
3547
|
+
import { Fragment as Fragment7, jsx as jsx48, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3432
3548
|
function AccountName({ address }) {
|
|
3433
3549
|
const { data: ens } = useENS(address);
|
|
3434
3550
|
const avatar = usePreloadImage(ens?.avatar);
|
|
3435
|
-
return /* @__PURE__ */
|
|
3436
|
-
/* @__PURE__ */
|
|
3551
|
+
return /* @__PURE__ */ jsxs28(Fragment7, { children: [
|
|
3552
|
+
/* @__PURE__ */ jsxs28("span", { className: "flex-shrink-0 w-6 h-6 -my-1 -mx-0.5 grid place-items-center", children: [
|
|
3437
3553
|
/* @__PURE__ */ jsx48(
|
|
3438
3554
|
"img",
|
|
3439
3555
|
{
|
|
3440
3556
|
src: ens?.avatar && avatar.isSuccess ? ens.avatar : void 0,
|
|
3441
|
-
className:
|
|
3557
|
+
className: twMerge21(
|
|
3442
3558
|
"col-start-1 row-start-1",
|
|
3443
3559
|
"inline-flex w-full h-full rounded-full bg-black/10 dark:bg-white/10 bg-cover bg-no-repeat bg-center",
|
|
3444
3560
|
"transtion duration-300",
|
|
@@ -3449,7 +3565,7 @@ function AccountName({ address }) {
|
|
|
3449
3565
|
/* @__PURE__ */ jsx48(
|
|
3450
3566
|
Logo,
|
|
3451
3567
|
{
|
|
3452
|
-
className:
|
|
3568
|
+
className: twMerge21(
|
|
3453
3569
|
"col-start-1 row-start-1 text-orange-500",
|
|
3454
3570
|
"transition duration-300",
|
|
3455
3571
|
ens && (!ens.avatar || avatar.isError) ? "opacity-100" : "opacity-0"
|
|
@@ -3462,24 +3578,24 @@ function AccountName({ address }) {
|
|
|
3462
3578
|
}
|
|
3463
3579
|
|
|
3464
3580
|
// src/AccountButton.tsx
|
|
3465
|
-
import { useRef as
|
|
3466
|
-
import { jsx as jsx49, jsxs as
|
|
3467
|
-
var containerClassNames =
|
|
3581
|
+
import { useRef as useRef7 } from "react";
|
|
3582
|
+
import { jsx as jsx49, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3583
|
+
var containerClassNames = twMerge22(
|
|
3468
3584
|
"w-48 p-3 inline-flex outline-none transition",
|
|
3469
3585
|
"border border-transparent",
|
|
3470
3586
|
"text-base leading-none"
|
|
3471
3587
|
);
|
|
3472
|
-
var secondaryClassNames =
|
|
3588
|
+
var secondaryClassNames = twMerge22(
|
|
3473
3589
|
"bg-neutral-100 border-neutral-300 text-black",
|
|
3474
3590
|
"dark:bg-neutral-800 dark:border-neutral-700 dark:text-white"
|
|
3475
3591
|
);
|
|
3476
|
-
var secondaryInteractiveClassNames =
|
|
3592
|
+
var secondaryInteractiveClassNames = twMerge22(
|
|
3477
3593
|
"cursor-pointer outline-none hover:bg-neutral-200 data-[highlighted]:bg-neutral-200 dark:hover:bg-neutral-700"
|
|
3478
3594
|
);
|
|
3479
3595
|
function AccountButton() {
|
|
3480
3596
|
const { openAccountModal, accountModalOpen } = useAccountModal();
|
|
3481
3597
|
const { status, address: userAddress } = useAccount9();
|
|
3482
|
-
const initialUserAddress =
|
|
3598
|
+
const initialUserAddress = useRef7(userAddress);
|
|
3483
3599
|
const prereqs = usePrerequisites(userAddress);
|
|
3484
3600
|
const isConnected = status === "connected" || status === "reconnecting" && userAddress;
|
|
3485
3601
|
const isNewConnection = userAddress !== initialUserAddress.current;
|
|
@@ -3495,16 +3611,16 @@ function AccountButton() {
|
|
|
3495
3611
|
"button",
|
|
3496
3612
|
{
|
|
3497
3613
|
type: "button",
|
|
3498
|
-
className:
|
|
3614
|
+
className: twMerge22(containerClassNames, secondaryClassNames, secondaryInteractiveClassNames),
|
|
3499
3615
|
onClick: openAccountModal,
|
|
3500
3616
|
children: /* @__PURE__ */ jsx49("span", { className: "flex-grow inline-flex gap-2.5 items-center text-left font-medium", children: userAddress ? /* @__PURE__ */ jsx49(AccountName, { address: userAddress }) : null })
|
|
3501
3617
|
},
|
|
3502
3618
|
"connected"
|
|
3503
|
-
) : /* @__PURE__ */
|
|
3619
|
+
) : /* @__PURE__ */ jsxs29(
|
|
3504
3620
|
"button",
|
|
3505
3621
|
{
|
|
3506
3622
|
type: "button",
|
|
3507
|
-
className:
|
|
3623
|
+
className: twMerge22(
|
|
3508
3624
|
containerClassNames,
|
|
3509
3625
|
"group",
|
|
3510
3626
|
"items-center justify-center gap-2.5",
|
|
@@ -3512,14 +3628,14 @@ function AccountButton() {
|
|
|
3512
3628
|
"hover:bg-orange-400",
|
|
3513
3629
|
"active:bg-orange-600"
|
|
3514
3630
|
),
|
|
3515
|
-
"aria-busy": accountModalOpen,
|
|
3631
|
+
"aria-busy": accountModalOpen || prereqs.isPending,
|
|
3516
3632
|
onClick: openAccountModal,
|
|
3517
3633
|
children: [
|
|
3518
|
-
/* @__PURE__ */
|
|
3634
|
+
/* @__PURE__ */ jsxs29("span", { className: "pointer-events-none inline-grid place-items-center -ml-3", children: [
|
|
3519
3635
|
/* @__PURE__ */ jsx49(
|
|
3520
3636
|
"span",
|
|
3521
3637
|
{
|
|
3522
|
-
className:
|
|
3638
|
+
className: twMerge22(
|
|
3523
3639
|
"col-start-1 row-start-1 leading-none",
|
|
3524
3640
|
"scale-100 opacity-100 transition duration-300",
|
|
3525
3641
|
"group-aria-busy:scale-125 group-aria-busy:opacity-0"
|
|
@@ -3531,7 +3647,7 @@ function AccountButton() {
|
|
|
3531
3647
|
"span",
|
|
3532
3648
|
{
|
|
3533
3649
|
"aria-hidden": true,
|
|
3534
|
-
className:
|
|
3650
|
+
className: twMerge22(
|
|
3535
3651
|
"col-start-1 row-start-1",
|
|
3536
3652
|
"scale-50 opacity-0 transition duration-300 delay-50",
|
|
3537
3653
|
"group-aria-busy:scale-100 group-aria-busy:opacity-100"
|
|
@@ -3548,58 +3664,391 @@ function AccountButton() {
|
|
|
3548
3664
|
}
|
|
3549
3665
|
|
|
3550
3666
|
// src/useSessionClientReady.ts
|
|
3551
|
-
import {
|
|
3667
|
+
import { useAccount as useAccount10 } from "wagmi";
|
|
3552
3668
|
function useSessionClientReady() {
|
|
3553
|
-
const {
|
|
3554
|
-
const userClient = useConnectorClient2({ chainId });
|
|
3555
|
-
if (userClient.error) console.error("Error retrieving user client", userClient.error);
|
|
3556
|
-
const userAddress = userClient.data?.account.address;
|
|
3669
|
+
const { address: userAddress } = useAccount10();
|
|
3557
3670
|
const prerequisites = usePrerequisites(userAddress);
|
|
3558
3671
|
const sessionClient = useSessionClient(userAddress);
|
|
3559
|
-
if (!
|
|
3560
|
-
|
|
3672
|
+
if (!prerequisites.isSuccess || !prerequisites.data.complete) {
|
|
3673
|
+
return { ...prerequisites, data: void 0 };
|
|
3674
|
+
}
|
|
3561
3675
|
return sessionClient;
|
|
3562
3676
|
}
|
|
3563
3677
|
|
|
3564
3678
|
// src/createWagmiConfig.ts
|
|
3565
|
-
import { connectorsForWallets } from "@rainbow-me/rainbowkit";
|
|
3566
3679
|
import { createConfig } from "wagmi";
|
|
3680
|
+
import { getDefaultConfig } from "connectkit";
|
|
3681
|
+
import { injected, coinbaseWallet, safe } from "wagmi/connectors";
|
|
3567
3682
|
|
|
3568
|
-
// src/
|
|
3569
|
-
import {
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3683
|
+
// src/connectors/walletConnect.ts
|
|
3684
|
+
import { ChainNotConfiguredError, ProviderNotFoundError, createConnector } from "wagmi";
|
|
3685
|
+
import {
|
|
3686
|
+
SwitchChainError,
|
|
3687
|
+
UserRejectedRequestError,
|
|
3688
|
+
getAddress,
|
|
3689
|
+
numberToHex as numberToHex3
|
|
3690
|
+
} from "viem";
|
|
3691
|
+
walletConnect.type = "walletConnect";
|
|
3692
|
+
function walletConnect(parameters) {
|
|
3693
|
+
const isNewChainsStale = parameters.isNewChainsStale ?? true;
|
|
3694
|
+
let provider_;
|
|
3695
|
+
let providerPromise;
|
|
3696
|
+
const NAMESPACE = "eip155";
|
|
3697
|
+
let accountsChanged;
|
|
3698
|
+
let chainChanged;
|
|
3699
|
+
let connect;
|
|
3700
|
+
let displayUri;
|
|
3701
|
+
let sessionDelete;
|
|
3702
|
+
let disconnect;
|
|
3703
|
+
return createConnector((config) => ({
|
|
3704
|
+
id: "walletConnect",
|
|
3705
|
+
name: "WalletConnect",
|
|
3706
|
+
type: walletConnect.type,
|
|
3707
|
+
async setup() {
|
|
3708
|
+
const provider = await this.getProvider().catch(() => null);
|
|
3709
|
+
if (!provider) return;
|
|
3710
|
+
if (!connect) {
|
|
3711
|
+
connect = this.onConnect.bind(this);
|
|
3712
|
+
provider.on("connect", connect);
|
|
3713
|
+
}
|
|
3714
|
+
if (!sessionDelete) {
|
|
3715
|
+
sessionDelete = this.onSessionDelete.bind(this);
|
|
3716
|
+
provider.on("session_delete", sessionDelete);
|
|
3717
|
+
}
|
|
3718
|
+
},
|
|
3719
|
+
async connect({ chainId, ...rest } = {}) {
|
|
3720
|
+
try {
|
|
3721
|
+
const provider = await this.getProvider();
|
|
3722
|
+
if (!provider) throw new ProviderNotFoundError();
|
|
3723
|
+
if (!displayUri) {
|
|
3724
|
+
displayUri = this.onDisplayUri;
|
|
3725
|
+
provider.on("display_uri", displayUri);
|
|
3726
|
+
}
|
|
3727
|
+
let targetChainId = chainId;
|
|
3728
|
+
if (!targetChainId) {
|
|
3729
|
+
const state = await config.storage?.getItem("state") ?? {};
|
|
3730
|
+
const isChainSupported = config.chains.some((x) => x.id === state.chainId);
|
|
3731
|
+
if (isChainSupported) targetChainId = state.chainId;
|
|
3732
|
+
else targetChainId = config.chains[0]?.id;
|
|
3733
|
+
}
|
|
3734
|
+
if (!targetChainId) throw new Error("No chains found on connector.");
|
|
3735
|
+
const isChainsStale = await this.isChainsStale();
|
|
3736
|
+
if (provider.session && isChainsStale) await provider.disconnect();
|
|
3737
|
+
if (!provider.session || isChainsStale) {
|
|
3738
|
+
const optionalChains = config.chains.filter((chain) => chain.id !== targetChainId).map((optionalChain) => optionalChain.id);
|
|
3739
|
+
await provider.connect({
|
|
3740
|
+
optionalChains: [targetChainId, ...optionalChains],
|
|
3741
|
+
..."pairingTopic" in rest ? { pairingTopic: rest.pairingTopic } : {}
|
|
3742
|
+
});
|
|
3743
|
+
this.setRequestedChainsIds(config.chains.map((x) => x.id));
|
|
3744
|
+
}
|
|
3745
|
+
const accounts = (await provider.enable()).map((x) => getAddress(x));
|
|
3746
|
+
let currentChainId = await this.getChainId();
|
|
3747
|
+
if (chainId && currentChainId !== chainId) {
|
|
3748
|
+
const chain = await this.switchChain({ chainId }).catch((error2) => {
|
|
3749
|
+
if (error2.code === UserRejectedRequestError.code) throw error2;
|
|
3750
|
+
return { id: currentChainId };
|
|
3751
|
+
});
|
|
3752
|
+
currentChainId = chain?.id ?? currentChainId;
|
|
3753
|
+
}
|
|
3754
|
+
if (displayUri) {
|
|
3755
|
+
provider.removeListener("display_uri", displayUri);
|
|
3756
|
+
displayUri = void 0;
|
|
3757
|
+
}
|
|
3758
|
+
if (connect) {
|
|
3759
|
+
provider.removeListener("connect", connect);
|
|
3760
|
+
connect = void 0;
|
|
3761
|
+
}
|
|
3762
|
+
if (!accountsChanged) {
|
|
3763
|
+
accountsChanged = this.onAccountsChanged.bind(this);
|
|
3764
|
+
provider.on("accountsChanged", accountsChanged);
|
|
3765
|
+
}
|
|
3766
|
+
if (!chainChanged) {
|
|
3767
|
+
chainChanged = this.onChainChanged.bind(this);
|
|
3768
|
+
provider.on("chainChanged", chainChanged);
|
|
3769
|
+
}
|
|
3770
|
+
if (!disconnect) {
|
|
3771
|
+
disconnect = this.onDisconnect.bind(this);
|
|
3772
|
+
provider.on("disconnect", disconnect);
|
|
3773
|
+
}
|
|
3774
|
+
if (!sessionDelete) {
|
|
3775
|
+
sessionDelete = this.onSessionDelete.bind(this);
|
|
3776
|
+
provider.on("session_delete", sessionDelete);
|
|
3777
|
+
}
|
|
3778
|
+
return { accounts, chainId: currentChainId };
|
|
3779
|
+
} catch (error2) {
|
|
3780
|
+
if (/(user rejected|connection request reset)/i.test(error2?.message)) {
|
|
3781
|
+
throw new UserRejectedRequestError(error2);
|
|
3782
|
+
}
|
|
3783
|
+
throw error2;
|
|
3784
|
+
}
|
|
3785
|
+
},
|
|
3786
|
+
async disconnect() {
|
|
3787
|
+
const provider = await this.getProvider();
|
|
3788
|
+
try {
|
|
3789
|
+
await provider?.disconnect();
|
|
3790
|
+
} catch (error2) {
|
|
3791
|
+
if (!/No matching key/i.test(error2.message)) throw error2;
|
|
3792
|
+
} finally {
|
|
3793
|
+
if (chainChanged) {
|
|
3794
|
+
provider?.removeListener("chainChanged", chainChanged);
|
|
3795
|
+
chainChanged = void 0;
|
|
3796
|
+
}
|
|
3797
|
+
if (disconnect) {
|
|
3798
|
+
provider?.removeListener("disconnect", disconnect);
|
|
3799
|
+
disconnect = void 0;
|
|
3800
|
+
}
|
|
3801
|
+
if (!connect) {
|
|
3802
|
+
connect = this.onConnect.bind(this);
|
|
3803
|
+
provider?.on("connect", connect);
|
|
3804
|
+
}
|
|
3805
|
+
if (accountsChanged) {
|
|
3806
|
+
provider?.removeListener("accountsChanged", accountsChanged);
|
|
3807
|
+
accountsChanged = void 0;
|
|
3808
|
+
}
|
|
3809
|
+
if (sessionDelete) {
|
|
3810
|
+
provider?.removeListener("session_delete", sessionDelete);
|
|
3811
|
+
sessionDelete = void 0;
|
|
3812
|
+
}
|
|
3813
|
+
this.setRequestedChainsIds([]);
|
|
3814
|
+
}
|
|
3815
|
+
},
|
|
3816
|
+
async getAccounts() {
|
|
3817
|
+
const provider = await this.getProvider();
|
|
3818
|
+
return provider.accounts.map((x) => getAddress(x));
|
|
3819
|
+
},
|
|
3820
|
+
async getProvider() {
|
|
3821
|
+
async function initProvider() {
|
|
3822
|
+
const optionalChains = config.chains.map((x) => x.id);
|
|
3823
|
+
if (!optionalChains.length) return;
|
|
3824
|
+
const { EthereumProvider } = await import("@walletconnect/ethereum-provider");
|
|
3825
|
+
return await EthereumProvider.init({
|
|
3826
|
+
...parameters,
|
|
3827
|
+
disableProviderPing: true,
|
|
3828
|
+
optionalChains,
|
|
3829
|
+
projectId: parameters.projectId,
|
|
3830
|
+
rpcMap: Object.fromEntries(
|
|
3831
|
+
config.chains.map((chain) => {
|
|
3832
|
+
const [url] = extractRpcUrls({
|
|
3833
|
+
chain,
|
|
3834
|
+
transports: config.transports
|
|
3835
|
+
});
|
|
3836
|
+
return [chain.id, url];
|
|
3837
|
+
})
|
|
3838
|
+
),
|
|
3839
|
+
showQrModal: parameters.showQrModal ?? true
|
|
3840
|
+
});
|
|
3841
|
+
}
|
|
3842
|
+
if (!provider_) {
|
|
3843
|
+
if (!providerPromise) providerPromise = initProvider();
|
|
3844
|
+
provider_ = await providerPromise;
|
|
3845
|
+
provider_?.events.setMaxListeners(Number.POSITIVE_INFINITY);
|
|
3846
|
+
}
|
|
3847
|
+
return provider_;
|
|
3848
|
+
},
|
|
3849
|
+
async getChainId() {
|
|
3850
|
+
const provider = await this.getProvider();
|
|
3851
|
+
return provider.chainId;
|
|
3852
|
+
},
|
|
3853
|
+
async isAuthorized() {
|
|
3854
|
+
try {
|
|
3855
|
+
const [accounts, provider] = await Promise.all([this.getAccounts(), this.getProvider()]);
|
|
3856
|
+
if (!accounts.length) return false;
|
|
3857
|
+
const isChainsStale = await this.isChainsStale();
|
|
3858
|
+
if (isChainsStale && provider.session) {
|
|
3859
|
+
await provider.disconnect().catch(() => {
|
|
3860
|
+
});
|
|
3861
|
+
return false;
|
|
3862
|
+
}
|
|
3863
|
+
return true;
|
|
3864
|
+
} catch {
|
|
3865
|
+
return false;
|
|
3866
|
+
}
|
|
3867
|
+
},
|
|
3868
|
+
async switchChain({ addEthereumChainParameter, chainId }) {
|
|
3869
|
+
const provider = await this.getProvider();
|
|
3870
|
+
if (!provider) throw new ProviderNotFoundError();
|
|
3871
|
+
const chain = config.chains.find((x) => x.id === chainId);
|
|
3872
|
+
if (!chain) throw new SwitchChainError(new ChainNotConfiguredError());
|
|
3873
|
+
try {
|
|
3874
|
+
await Promise.all([
|
|
3875
|
+
new Promise((resolve) => {
|
|
3876
|
+
const listener2 = ({ chainId: currentChainId }) => {
|
|
3877
|
+
if (currentChainId === chainId) {
|
|
3878
|
+
config.emitter.off("change", listener2);
|
|
3879
|
+
resolve();
|
|
3880
|
+
}
|
|
3881
|
+
};
|
|
3882
|
+
config.emitter.on("change", listener2);
|
|
3883
|
+
}),
|
|
3884
|
+
provider.request({
|
|
3885
|
+
method: "wallet_switchEthereumChain",
|
|
3886
|
+
params: [{ chainId: numberToHex3(chainId) }]
|
|
3887
|
+
})
|
|
3888
|
+
]);
|
|
3889
|
+
const requestedChains = await this.getRequestedChainsIds();
|
|
3890
|
+
this.setRequestedChainsIds([...requestedChains, chainId]);
|
|
3891
|
+
return chain;
|
|
3892
|
+
} catch (err) {
|
|
3893
|
+
const error2 = err;
|
|
3894
|
+
if (/(user rejected)/i.test(error2.message)) throw new UserRejectedRequestError(error2);
|
|
3895
|
+
try {
|
|
3896
|
+
let blockExplorerUrls;
|
|
3897
|
+
if (addEthereumChainParameter?.blockExplorerUrls)
|
|
3898
|
+
blockExplorerUrls = addEthereumChainParameter.blockExplorerUrls;
|
|
3899
|
+
else blockExplorerUrls = chain.blockExplorers?.default.url ? [chain.blockExplorers?.default.url] : [];
|
|
3900
|
+
let rpcUrls;
|
|
3901
|
+
if (addEthereumChainParameter?.rpcUrls?.length) rpcUrls = addEthereumChainParameter.rpcUrls;
|
|
3902
|
+
else rpcUrls = [...chain.rpcUrls.default.http];
|
|
3903
|
+
const addEthereumChain = {
|
|
3904
|
+
blockExplorerUrls,
|
|
3905
|
+
chainId: numberToHex3(chainId),
|
|
3906
|
+
chainName: addEthereumChainParameter?.chainName ?? chain.name,
|
|
3907
|
+
iconUrls: addEthereumChainParameter?.iconUrls,
|
|
3908
|
+
nativeCurrency: addEthereumChainParameter?.nativeCurrency ?? chain.nativeCurrency,
|
|
3909
|
+
rpcUrls
|
|
3910
|
+
};
|
|
3911
|
+
await provider.request({
|
|
3912
|
+
method: "wallet_addEthereumChain",
|
|
3913
|
+
params: [addEthereumChain]
|
|
3914
|
+
});
|
|
3915
|
+
const requestedChains = await this.getRequestedChainsIds();
|
|
3916
|
+
this.setRequestedChainsIds([...requestedChains, chainId]);
|
|
3917
|
+
return chain;
|
|
3918
|
+
} catch (error3) {
|
|
3919
|
+
throw new UserRejectedRequestError(error3);
|
|
3920
|
+
}
|
|
3921
|
+
}
|
|
3922
|
+
},
|
|
3923
|
+
onAccountsChanged(accounts) {
|
|
3924
|
+
if (accounts.length === 0) this.onDisconnect();
|
|
3925
|
+
else
|
|
3926
|
+
config.emitter.emit("change", {
|
|
3927
|
+
accounts: accounts.map((x) => getAddress(x))
|
|
3928
|
+
});
|
|
3929
|
+
},
|
|
3930
|
+
onChainChanged(chain) {
|
|
3931
|
+
const chainId = Number(chain);
|
|
3932
|
+
config.emitter.emit("change", { chainId });
|
|
3933
|
+
},
|
|
3934
|
+
async onConnect(connectInfo) {
|
|
3935
|
+
const chainId = Number(connectInfo.chainId);
|
|
3936
|
+
const accounts = await this.getAccounts();
|
|
3937
|
+
config.emitter.emit("connect", { accounts, chainId });
|
|
3938
|
+
},
|
|
3939
|
+
async onDisconnect(_error) {
|
|
3940
|
+
this.setRequestedChainsIds([]);
|
|
3941
|
+
config.emitter.emit("disconnect");
|
|
3942
|
+
const provider = await this.getProvider();
|
|
3943
|
+
if (accountsChanged) {
|
|
3944
|
+
provider.removeListener("accountsChanged", accountsChanged);
|
|
3945
|
+
accountsChanged = void 0;
|
|
3946
|
+
}
|
|
3947
|
+
if (chainChanged) {
|
|
3948
|
+
provider.removeListener("chainChanged", chainChanged);
|
|
3949
|
+
chainChanged = void 0;
|
|
3950
|
+
}
|
|
3951
|
+
if (disconnect) {
|
|
3952
|
+
provider.removeListener("disconnect", disconnect);
|
|
3953
|
+
disconnect = void 0;
|
|
3954
|
+
}
|
|
3955
|
+
if (sessionDelete) {
|
|
3956
|
+
provider.removeListener("session_delete", sessionDelete);
|
|
3957
|
+
sessionDelete = void 0;
|
|
3958
|
+
}
|
|
3959
|
+
if (!connect) {
|
|
3960
|
+
connect = this.onConnect.bind(this);
|
|
3961
|
+
provider.on("connect", connect);
|
|
3962
|
+
}
|
|
3963
|
+
},
|
|
3964
|
+
onDisplayUri(uri) {
|
|
3965
|
+
config.emitter.emit("message", { type: "display_uri", data: uri });
|
|
3966
|
+
},
|
|
3967
|
+
onSessionDelete() {
|
|
3968
|
+
this.onDisconnect();
|
|
3969
|
+
},
|
|
3970
|
+
getNamespaceChainsIds() {
|
|
3971
|
+
if (!provider_) return [];
|
|
3972
|
+
const chainIds = provider_.session?.namespaces[NAMESPACE]?.accounts?.map(
|
|
3973
|
+
(account) => Number.parseInt(account.split(":")[1] || "")
|
|
3974
|
+
);
|
|
3975
|
+
return chainIds ?? [];
|
|
3976
|
+
},
|
|
3977
|
+
async getRequestedChainsIds() {
|
|
3978
|
+
return await config.storage?.getItem(this.requestedChainsStorageKey) ?? [];
|
|
3979
|
+
},
|
|
3980
|
+
/**
|
|
3981
|
+
* Checks if the target chains match the chains that were
|
|
3982
|
+
* initially requested by the connector for the WalletConnect session.
|
|
3983
|
+
* If there is a mismatch, this means that the chains on the connector
|
|
3984
|
+
* are considered stale, and need to be revalidated at a later point (via
|
|
3985
|
+
* connection).
|
|
3986
|
+
*
|
|
3987
|
+
* There may be a scenario where a dapp adds a chain to the
|
|
3988
|
+
* connector later on, however, this chain will not have been approved or rejected
|
|
3989
|
+
* by the wallet. In this case, the chain is considered stale.
|
|
3990
|
+
*/
|
|
3991
|
+
async isChainsStale() {
|
|
3992
|
+
if (!isNewChainsStale) return false;
|
|
3993
|
+
const connectorChains = config.chains.map((x) => x.id);
|
|
3994
|
+
const namespaceChains = this.getNamespaceChainsIds();
|
|
3995
|
+
if (namespaceChains.length && !namespaceChains.some((id) => connectorChains.includes(id))) return false;
|
|
3996
|
+
const requestedChains = await this.getRequestedChainsIds();
|
|
3997
|
+
return !connectorChains.every((id) => requestedChains.includes(id));
|
|
3998
|
+
},
|
|
3999
|
+
async setRequestedChainsIds(chains) {
|
|
4000
|
+
await config.storage?.setItem(this.requestedChainsStorageKey, chains);
|
|
4001
|
+
},
|
|
4002
|
+
get requestedChainsStorageKey() {
|
|
4003
|
+
return `${this.id}.requestedChains`;
|
|
4004
|
+
}
|
|
4005
|
+
}));
|
|
4006
|
+
}
|
|
4007
|
+
function extractRpcUrls(parameters) {
|
|
4008
|
+
const { chain } = parameters;
|
|
4009
|
+
const fallbackUrl = chain.rpcUrls.default.http[0];
|
|
4010
|
+
if (!parameters.transports) return [fallbackUrl];
|
|
4011
|
+
const transport = parameters.transports?.[chain.id]?.({ chain });
|
|
4012
|
+
const transports = transport?.value?.transports || [transport];
|
|
4013
|
+
return transports.map(({ value }) => value?.url || fallbackUrl);
|
|
3576
4014
|
}
|
|
3577
4015
|
|
|
3578
4016
|
// src/createWagmiConfig.ts
|
|
3579
4017
|
function createWagmiConfig(config) {
|
|
3580
|
-
const
|
|
3581
|
-
const
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
4018
|
+
const connectors = [];
|
|
4019
|
+
const shouldUseSafeConnector = !(typeof window === "undefined") && window?.parent !== window;
|
|
4020
|
+
if (shouldUseSafeConnector) {
|
|
4021
|
+
connectors.push(
|
|
4022
|
+
safe({
|
|
4023
|
+
allowedDomains: [/gnosis-safe.io$/, /app.safe.global$/]
|
|
4024
|
+
})
|
|
4025
|
+
);
|
|
4026
|
+
}
|
|
4027
|
+
connectors.push(
|
|
4028
|
+
injected({ target: "metaMask" }),
|
|
4029
|
+
coinbaseWallet({
|
|
4030
|
+
appName: config.appName,
|
|
4031
|
+
overrideIsMetaMask: false
|
|
4032
|
+
})
|
|
4033
|
+
);
|
|
4034
|
+
if (config.walletConnectProjectId) {
|
|
4035
|
+
connectors.push(
|
|
4036
|
+
walletConnect({
|
|
4037
|
+
showQrModal: false,
|
|
4038
|
+
projectId: config.walletConnectProjectId
|
|
4039
|
+
})
|
|
4040
|
+
);
|
|
4041
|
+
}
|
|
4042
|
+
const configParams = getDefaultConfig({
|
|
3587
4043
|
chains: config.chains,
|
|
3588
4044
|
transports: config.transports,
|
|
3589
|
-
pollingInterval: config.pollingInterval
|
|
3590
|
-
});
|
|
3591
|
-
}
|
|
3592
|
-
|
|
3593
|
-
// src/getConnectors.ts
|
|
3594
|
-
import { connectorsForWallets as connectorsForWallets2 } from "@rainbow-me/rainbowkit";
|
|
3595
|
-
function getConnectors({
|
|
3596
|
-
wallets,
|
|
3597
|
-
...config
|
|
3598
|
-
}) {
|
|
3599
|
-
return connectorsForWallets2(wallets ?? getWallets(config), {
|
|
4045
|
+
pollingInterval: config.pollingInterval,
|
|
3600
4046
|
appName: config.appName,
|
|
3601
|
-
|
|
4047
|
+
walletConnectProjectId: config.walletConnectProjectId,
|
|
4048
|
+
enableFamily: false,
|
|
4049
|
+
connectors
|
|
3602
4050
|
});
|
|
4051
|
+
return createConfig(configParams);
|
|
3603
4052
|
}
|
|
3604
4053
|
|
|
3605
4054
|
// src/validateSigner.ts
|
|
@@ -3650,8 +4099,6 @@ export {
|
|
|
3650
4099
|
EntryKitProvider,
|
|
3651
4100
|
createWagmiConfig,
|
|
3652
4101
|
defineConfig,
|
|
3653
|
-
getConnectors,
|
|
3654
|
-
getWallets,
|
|
3655
4102
|
internal_validateSigner,
|
|
3656
4103
|
useAccountModal,
|
|
3657
4104
|
useEntryKitConfig,
|