@latticexyz/entrykit 2.2.22-6a26a049c793442fcefed7a3268d2de7849cd2ae → 2.2.22-725f1aed27b397ad153bec254b2530eb20d2d743
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-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-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.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\\: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\\.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-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.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-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\\/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-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\\: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\\: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
|
|
@@ -206,6 +204,7 @@ function getBundlerTransport(chain) {
|
|
|
206
204
|
}
|
|
207
205
|
|
|
208
206
|
// src/EntryKitConfigProvider.tsx
|
|
207
|
+
import { ConnectKitProvider } from "connectkit";
|
|
209
208
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
210
209
|
var Context2 = createContext2(null);
|
|
211
210
|
function EntryKitConfigProvider({ config, children }) {
|
|
@@ -216,14 +215,14 @@ function EntryKitConfigProvider({ config, children }) {
|
|
|
216
215
|
if (!chain) throw new Error(`Could not find configured chain for chain ID ${config.chainId}.`);
|
|
217
216
|
getBundlerTransport(chain);
|
|
218
217
|
return /* @__PURE__ */ jsx2(
|
|
219
|
-
|
|
218
|
+
ConnectKitProvider,
|
|
220
219
|
{
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
//
|
|
220
|
+
theme: "midnight",
|
|
221
|
+
options: {
|
|
222
|
+
// Prevent Wagmi trying to switch chains after connection
|
|
223
|
+
// https://github.com/wevm/wagmi/blob/f5b717ccf8a5b283263cadc984ba00b354bcefae/packages/core/src/connectors/injected.ts#L174-L182
|
|
224
|
+
initialChainId: 0
|
|
225
225
|
},
|
|
226
|
-
theme: midnightTheme({ borderRadius: "none" }),
|
|
227
226
|
children: /* @__PURE__ */ jsx2(Context2.Provider, { value: { ...config, chain }, children })
|
|
228
227
|
}
|
|
229
228
|
);
|
|
@@ -274,7 +273,9 @@ var Shadow = forwardRef(function Shadow2({ mode, children }, forwardedRef) {
|
|
|
274
273
|
inset: "0",
|
|
275
274
|
width: "100%",
|
|
276
275
|
height: "100%",
|
|
277
|
-
|
|
276
|
+
// one less than ConnectKit's modal z-index
|
|
277
|
+
// so that ConnectKit can overlap properly
|
|
278
|
+
zIndex: "2147483645"
|
|
278
279
|
} : frameSize.width && frameSize.height ? {
|
|
279
280
|
all: "unset",
|
|
280
281
|
display: "inline-grid",
|
|
@@ -376,10 +377,7 @@ function useAccountModal() {
|
|
|
376
377
|
import { twMerge as twMerge19 } from "tailwind-merge";
|
|
377
378
|
|
|
378
379
|
// src/AccountModalContent.tsx
|
|
379
|
-
import { useAccount as
|
|
380
|
-
|
|
381
|
-
// src/ConnectWallet.tsx
|
|
382
|
-
import { useAccount } from "wagmi";
|
|
380
|
+
import { useAccount as useAccount7, useConnectorClient } from "wagmi";
|
|
383
381
|
|
|
384
382
|
// src/ui/Button.tsx
|
|
385
383
|
import { twMerge as twMerge3 } from "tailwind-merge";
|
|
@@ -446,7 +444,7 @@ var Button = ({ pending, variant, type, className, children, disabled, ...props
|
|
|
446
444
|
};
|
|
447
445
|
|
|
448
446
|
// src/ConnectWallet.tsx
|
|
449
|
-
import {
|
|
447
|
+
import { useModal } from "connectkit";
|
|
450
448
|
|
|
451
449
|
// src/icons/Logo.tsx
|
|
452
450
|
import { twMerge as twMerge4 } from "tailwind-merge";
|
|
@@ -506,7 +504,7 @@ function AppInfo() {
|
|
|
506
504
|
return /* @__PURE__ */ jsxs6("div", { className: "flex-grow flex flex-col items-center justify-center gap-2", children: [
|
|
507
505
|
/* @__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
506
|
// TODO: swap with favicon
|
|
509
|
-
/* @__PURE__ */ jsx8(Logo, { className: "w-full h-full text-orange-500
|
|
507
|
+
/* @__PURE__ */ jsx8(Logo, { className: "w-full h-full text-orange-500 bg-neutral-800" })
|
|
510
508
|
) : null }),
|
|
511
509
|
/* @__PURE__ */ jsx8("div", { className: "text-2xl text-white text-center", children: appName })
|
|
512
510
|
] });
|
|
@@ -514,18 +512,17 @@ function AppInfo() {
|
|
|
514
512
|
|
|
515
513
|
// src/ConnectWallet.tsx
|
|
516
514
|
import { twMerge as twMerge5 } from "tailwind-merge";
|
|
517
|
-
import { useEffect as useEffect3,
|
|
515
|
+
import { useEffect as useEffect3, useRef as useRef2 } from "react";
|
|
518
516
|
import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
519
517
|
function ConnectWallet() {
|
|
520
|
-
const
|
|
521
|
-
const
|
|
522
|
-
const [hasAutoOpened, setHasAutoOpened] = useState2(false);
|
|
518
|
+
const { open, setOpen } = useModal();
|
|
519
|
+
const hasAutoOpenedRef = useRef2(false);
|
|
523
520
|
useEffect3(() => {
|
|
524
|
-
if (!
|
|
525
|
-
|
|
526
|
-
|
|
521
|
+
if (!open && !hasAutoOpenedRef.current) {
|
|
522
|
+
setOpen(true);
|
|
523
|
+
hasAutoOpenedRef.current = true;
|
|
527
524
|
}
|
|
528
|
-
}, [
|
|
525
|
+
}, [open, setOpen]);
|
|
529
526
|
return /* @__PURE__ */ jsxs7(
|
|
530
527
|
"div",
|
|
531
528
|
{
|
|
@@ -537,8 +534,7 @@ function ConnectWallet() {
|
|
|
537
534
|
{
|
|
538
535
|
variant: "secondary",
|
|
539
536
|
className: "self-auto flex justify-center",
|
|
540
|
-
|
|
541
|
-
onClick: openConnectModal,
|
|
537
|
+
onClick: () => setOpen(true),
|
|
542
538
|
autoFocus: true,
|
|
543
539
|
children: "Connect wallet"
|
|
544
540
|
},
|
|
@@ -550,7 +546,7 @@ function ConnectWallet() {
|
|
|
550
546
|
}
|
|
551
547
|
|
|
552
548
|
// src/onboarding/ConnectedSteps.tsx
|
|
553
|
-
import { useEffect as
|
|
549
|
+
import { useEffect as useEffect15, useMemo as useMemo4, useRef as useRef5, useState as useState5 } from "react";
|
|
554
550
|
import { twMerge as twMerge17 } from "tailwind-merge";
|
|
555
551
|
|
|
556
552
|
// src/onboarding/usePrerequisites.ts
|
|
@@ -927,13 +923,13 @@ function getPrequisitesQueryOptions({
|
|
|
927
923
|
const hasAllowance = allowance == null || allowance > 0n;
|
|
928
924
|
const isSpender = spender == null ? true : spender;
|
|
929
925
|
const hasGasBalance = sessionBalance == null || sessionBalance.value > 0n;
|
|
930
|
-
const
|
|
926
|
+
const hasQuarryGasBalance = quarryBalance == null || quarryBalance > 0n;
|
|
931
927
|
return {
|
|
932
928
|
sessionAddress,
|
|
933
929
|
hasAllowance,
|
|
934
930
|
isSpender,
|
|
935
931
|
hasGasBalance,
|
|
936
|
-
|
|
932
|
+
hasQuarryGasBalance,
|
|
937
933
|
hasDelegation,
|
|
938
934
|
// we intentionally don't enforce an allowance/gas balance here
|
|
939
935
|
complete: isSpender && hasDelegation
|
|
@@ -1235,6 +1231,9 @@ function Allowance({ isActive, isExpanded, userAddress }) {
|
|
|
1235
1231
|
] });
|
|
1236
1232
|
}
|
|
1237
1233
|
|
|
1234
|
+
// src/onboarding/Session.tsx
|
|
1235
|
+
import { useEffect as useEffect7 } from "react";
|
|
1236
|
+
|
|
1238
1237
|
// src/onboarding/useSetupSession.ts
|
|
1239
1238
|
import { encodeFunctionData } from "viem";
|
|
1240
1239
|
import { useMutation as useMutation2, useQueryClient as useQueryClient3 } from "@tanstack/react-query";
|
|
@@ -1253,6 +1252,7 @@ import { resourceToHex as resourceToHex2 } from "@latticexyz/common";
|
|
|
1253
1252
|
import IBaseWorldAbi from "@latticexyz/world/out/IBaseWorld.sol/IBaseWorld.abi.json";
|
|
1254
1253
|
|
|
1255
1254
|
// src/utils/callWithSignature.ts
|
|
1255
|
+
import { parseErc6492Signature } from "viem";
|
|
1256
1256
|
import { writeContract as viem_writeContract } from "viem/actions";
|
|
1257
1257
|
import { getAction as getAction3 } from "viem/utils";
|
|
1258
1258
|
|
|
@@ -1307,7 +1307,13 @@ async function callWithSignature({
|
|
|
1307
1307
|
sessionClient,
|
|
1308
1308
|
...opts
|
|
1309
1309
|
}) {
|
|
1310
|
-
const
|
|
1310
|
+
const rawSignature = await signCall(opts);
|
|
1311
|
+
const { address, signature } = parseErc6492Signature(rawSignature);
|
|
1312
|
+
if (address != null) {
|
|
1313
|
+
throw new Error(
|
|
1314
|
+
"ERC-6492 signatures, like from Coinbase Smart Wallet, are not yet supported. Try using a different wallet?"
|
|
1315
|
+
);
|
|
1316
|
+
}
|
|
1311
1317
|
return getAction3(
|
|
1312
1318
|
sessionClient,
|
|
1313
1319
|
viem_writeContract,
|
|
@@ -1431,9 +1437,6 @@ function useSetupSession({ userClient }) {
|
|
|
1431
1437
|
});
|
|
1432
1438
|
}
|
|
1433
1439
|
|
|
1434
|
-
// src/onboarding/Session.tsx
|
|
1435
|
-
import { useEffect as useEffect7 } from "react";
|
|
1436
|
-
|
|
1437
1440
|
// src/useSessionClient.ts
|
|
1438
1441
|
import { useClient as useClient9 } from "wagmi";
|
|
1439
1442
|
import {
|
|
@@ -1562,9 +1565,11 @@ function Session({ isActive, isExpanded, userClient, registerSpender, registerDe
|
|
|
1562
1565
|
const sessionClient = useShowQueryError(useSessionClient(userClient.account.address));
|
|
1563
1566
|
const setup = useShowMutationError(useSetupSession({ userClient }));
|
|
1564
1567
|
const hasSession = !registerDelegation && !registerDelegation;
|
|
1568
|
+
const { data: prerequisites } = usePrerequisites(userClient.account.address);
|
|
1569
|
+
const { hasAllowance, hasGasBalance, hasQuarryGasBalance } = prerequisites ?? {};
|
|
1565
1570
|
useEffect7(() => {
|
|
1566
1571
|
const timer = setTimeout(() => {
|
|
1567
|
-
if (isActive && setup.status === "idle" && sessionClient.data && !hasSession) {
|
|
1572
|
+
if (isActive && setup.status === "idle" && sessionClient.data && !hasSession && (hasAllowance || hasGasBalance || hasQuarryGasBalance)) {
|
|
1568
1573
|
setup.mutate({
|
|
1569
1574
|
sessionClient: sessionClient.data,
|
|
1570
1575
|
registerSpender,
|
|
@@ -1573,7 +1578,17 @@ function Session({ isActive, isExpanded, userClient, registerSpender, registerDe
|
|
|
1573
1578
|
}
|
|
1574
1579
|
});
|
|
1575
1580
|
return () => clearTimeout(timer);
|
|
1576
|
-
}, [
|
|
1581
|
+
}, [
|
|
1582
|
+
hasSession,
|
|
1583
|
+
isActive,
|
|
1584
|
+
registerDelegation,
|
|
1585
|
+
registerSpender,
|
|
1586
|
+
sessionClient,
|
|
1587
|
+
setup,
|
|
1588
|
+
hasAllowance,
|
|
1589
|
+
hasGasBalance,
|
|
1590
|
+
hasQuarryGasBalance
|
|
1591
|
+
]);
|
|
1577
1592
|
return /* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-4", children: [
|
|
1578
1593
|
/* @__PURE__ */ jsxs13("div", { className: "flex justify-between gap-4", children: [
|
|
1579
1594
|
/* @__PURE__ */ jsxs13("div", { children: [
|
|
@@ -1601,7 +1616,9 @@ function Session({ isActive, isExpanded, userClient, registerSpender, registerDe
|
|
|
1601
1616
|
}
|
|
1602
1617
|
|
|
1603
1618
|
// src/onboarding/GasBalance.tsx
|
|
1619
|
+
import { useEffect as useEffect9, useState as useState2 } from "react";
|
|
1604
1620
|
import { parseEther as parseEther4 } from "viem";
|
|
1621
|
+
import { useQueryClient as useQueryClient6 } from "@tanstack/react-query";
|
|
1605
1622
|
import { useBalance as useBalance2, useWatchBlockNumber } from "wagmi";
|
|
1606
1623
|
|
|
1607
1624
|
// src/data/relayChains.json
|
|
@@ -1907,21 +1924,93 @@ function useSetBalance() {
|
|
|
1907
1924
|
});
|
|
1908
1925
|
}
|
|
1909
1926
|
|
|
1927
|
+
// src/errors/usePrevious.ts
|
|
1928
|
+
import { useEffect as useEffect8, useRef as useRef3 } from "react";
|
|
1929
|
+
function usePrevious(value, initialValue) {
|
|
1930
|
+
const ref = useRef3();
|
|
1931
|
+
useEffect8(() => {
|
|
1932
|
+
ref.current = { value };
|
|
1933
|
+
}, [value]);
|
|
1934
|
+
return ref.current ? ref.current.value : initialValue;
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
// src/icons/IconSVG.tsx
|
|
1938
|
+
import { twMerge as twMerge7 } from "tailwind-merge";
|
|
1939
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1940
|
+
function IconSVG({ className, children, ...props }) {
|
|
1941
|
+
return /* @__PURE__ */ jsx16(
|
|
1942
|
+
"svg",
|
|
1943
|
+
{
|
|
1944
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1945
|
+
viewBox: "0 0 24 24",
|
|
1946
|
+
fill: "currentColor",
|
|
1947
|
+
className: twMerge7("-my-[0.125em] h-[1.25em] w-[1.25em]", className),
|
|
1948
|
+
...props,
|
|
1949
|
+
children
|
|
1950
|
+
}
|
|
1951
|
+
);
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
// src/icons/CopyIcon.tsx
|
|
1955
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1956
|
+
function CopyIcon(props) {
|
|
1957
|
+
return /* @__PURE__ */ jsx17(IconSVG, { ...props, children: /* @__PURE__ */ jsx17(
|
|
1958
|
+
"path",
|
|
1959
|
+
{
|
|
1960
|
+
d: "M8 5H6C4.89543 5 4 5.89543 4 7V19C4 20.1046 4.89543 21 6 21H16C17.1046 21 18 20.1046 18 19V18M8 5C8 6.10457 8.89543 7 10 7H12C13.1046 7 14 6.10457 14 5M8 5C8 3.89543 8.89543 3 10 3H12C13.1046 3 14 3.89543 14 5M14 5H16C17.1046 5 18 5.89543 18 7V10M20 14H10M10 14L13 11M10 14L13 17",
|
|
1961
|
+
fill: "none",
|
|
1962
|
+
stroke: "currentColor",
|
|
1963
|
+
strokeWidth: "2",
|
|
1964
|
+
strokeLinecap: "round",
|
|
1965
|
+
strokeLinejoin: "round"
|
|
1966
|
+
}
|
|
1967
|
+
) });
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
// src/icons/CheckIcon.tsx
|
|
1971
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1972
|
+
function CheckIcon(props) {
|
|
1973
|
+
return /* @__PURE__ */ jsx18(IconSVG, { ...props, children: /* @__PURE__ */ jsx18(
|
|
1974
|
+
"path",
|
|
1975
|
+
{
|
|
1976
|
+
d: "M5 13L9 17L19 7",
|
|
1977
|
+
fill: "none",
|
|
1978
|
+
stroke: "currentColor",
|
|
1979
|
+
strokeWidth: "2",
|
|
1980
|
+
strokeLinecap: "round",
|
|
1981
|
+
strokeLinejoin: "round"
|
|
1982
|
+
}
|
|
1983
|
+
) });
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1910
1986
|
// src/onboarding/GasBalance.tsx
|
|
1911
|
-
import { Fragment, jsx as
|
|
1987
|
+
import { Fragment, jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1912
1988
|
function GasBalance({ isActive, isExpanded, sessionAddress }) {
|
|
1989
|
+
const queryClient = useQueryClient6();
|
|
1913
1990
|
const { chain } = useEntryKitConfig();
|
|
1991
|
+
const [copied, setCopied] = useState2(false);
|
|
1914
1992
|
const balance = useShowQueryError(useBalance2({ chainId: chain.id, address: sessionAddress }));
|
|
1993
|
+
const prevBalance = usePrevious(balance.data);
|
|
1915
1994
|
useWatchBlockNumber({ onBlockNumber: () => balance.refetch() });
|
|
1916
1995
|
const setBalance3 = useShowMutationError(useSetBalance());
|
|
1917
1996
|
const relayChain = relayChains_default[chain.id];
|
|
1997
|
+
const handleCopy = () => {
|
|
1998
|
+
navigator.clipboard.writeText(sessionAddress);
|
|
1999
|
+
setCopied(true);
|
|
2000
|
+
setTimeout(() => setCopied(false), 2e3);
|
|
2001
|
+
};
|
|
2002
|
+
useEffect9(() => {
|
|
2003
|
+
if (balance.data != null && prevBalance?.value === 0n && balance.data.value > 0n) {
|
|
2004
|
+
queryClient.invalidateQueries({ queryKey: ["getPrerequisites"] });
|
|
2005
|
+
}
|
|
2006
|
+
}, [balance.data, prevBalance, setBalance3, sessionAddress, queryClient]);
|
|
1918
2007
|
return /* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-4", children: [
|
|
1919
2008
|
/* @__PURE__ */ jsxs14("div", { className: "flex justify-between gap-4", children: [
|
|
1920
2009
|
/* @__PURE__ */ jsxs14("div", { children: [
|
|
1921
|
-
/* @__PURE__ */
|
|
1922
|
-
/* @__PURE__ */
|
|
2010
|
+
/* @__PURE__ */ jsx19("div", { children: "Gas balance" }),
|
|
2011
|
+
/* @__PURE__ */ jsx19("div", { className: "font-mono text-white", children: balance.data != null ? /* @__PURE__ */ jsx19(Balance, { wei: balance.data.value }) : /* @__PURE__ */ jsx19(PendingIcon, { className: "text-sm" }) })
|
|
1923
2012
|
] }),
|
|
1924
|
-
chain.id === 31337 ? /* @__PURE__ */
|
|
2013
|
+
chain.id === 31337 ? /* @__PURE__ */ jsx19(
|
|
1925
2014
|
Button,
|
|
1926
2015
|
{
|
|
1927
2016
|
variant: isActive ? "primary" : "tertiary",
|
|
@@ -1936,13 +2025,13 @@ function GasBalance({ isActive, isExpanded, sessionAddress }) {
|
|
|
1936
2025
|
}
|
|
1937
2026
|
) : relayChain != null ? (
|
|
1938
2027
|
// TODO: convert this to a <ButtonLink>
|
|
1939
|
-
/* @__PURE__ */
|
|
2028
|
+
/* @__PURE__ */ jsx19(
|
|
1940
2029
|
"a",
|
|
1941
2030
|
{
|
|
1942
2031
|
href: `${relayChain.bridgeUrl}?${new URLSearchParams({ toAddress: sessionAddress, amount: "0.01" })}`,
|
|
1943
2032
|
target: "_blank",
|
|
1944
2033
|
rel: "noopener noreferrer",
|
|
1945
|
-
children: /* @__PURE__ */
|
|
2034
|
+
children: /* @__PURE__ */ jsx19(
|
|
1946
2035
|
Button,
|
|
1947
2036
|
{
|
|
1948
2037
|
variant: isActive ? "primary" : "tertiary",
|
|
@@ -1957,11 +2046,23 @@ function GasBalance({ isActive, isExpanded, sessionAddress }) {
|
|
|
1957
2046
|
) : null
|
|
1958
2047
|
] }),
|
|
1959
2048
|
isExpanded ? /* @__PURE__ */ jsxs14(Fragment, { children: [
|
|
1960
|
-
/* @__PURE__ */
|
|
2049
|
+
/* @__PURE__ */ jsx19("p", { className: "text-sm", children: "Your session's gas balance is used to pay for onchain computation." }),
|
|
1961
2050
|
/* @__PURE__ */ jsxs14("p", { className: "text-sm", children: [
|
|
1962
2051
|
"Send funds to",
|
|
1963
2052
|
" ",
|
|
1964
|
-
/* @__PURE__ */
|
|
2053
|
+
/* @__PURE__ */ jsxs14(
|
|
2054
|
+
"span",
|
|
2055
|
+
{
|
|
2056
|
+
className: "inline-flex items-center gap-1 font-mono text-white cursor-pointer hover:text-white/80 transition-colors",
|
|
2057
|
+
onClick: handleCopy,
|
|
2058
|
+
title: "Click to copy",
|
|
2059
|
+
children: [
|
|
2060
|
+
/* @__PURE__ */ jsx19(TruncatedHex, { hex: sessionAddress }),
|
|
2061
|
+
" ",
|
|
2062
|
+
copied ? /* @__PURE__ */ jsx19(CheckIcon, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ jsx19(CopyIcon, { className: "w-3.5 h-3.5" })
|
|
2063
|
+
]
|
|
2064
|
+
}
|
|
2065
|
+
),
|
|
1965
2066
|
" ",
|
|
1966
2067
|
"on ",
|
|
1967
2068
|
chain.name,
|
|
@@ -1973,46 +2074,29 @@ function GasBalance({ isActive, isExpanded, sessionAddress }) {
|
|
|
1973
2074
|
|
|
1974
2075
|
// src/onboarding/deposit/DepositFormContainer.tsx
|
|
1975
2076
|
import { useState as useState4 } from "react";
|
|
1976
|
-
import { useChains as
|
|
2077
|
+
import { useChains as useChains4, useChainId } from "wagmi";
|
|
1977
2078
|
|
|
1978
2079
|
// src/onboarding/deposit/DepositViaTransferForm.tsx
|
|
1979
|
-
import { useAccount as
|
|
2080
|
+
import { useAccount as useAccount4, useWriteContract, usePrepareTransactionRequest, usePublicClient } from "wagmi";
|
|
1980
2081
|
import { encodeFunctionData as encodeFunctionData2 } from "viem";
|
|
1981
2082
|
import { useMutation as useMutation4, useQuery as useQuery11 } from "@tanstack/react-query";
|
|
1982
2083
|
|
|
1983
2084
|
// src/onboarding/deposit/DepositForm.tsx
|
|
1984
|
-
import { useEffect as
|
|
1985
|
-
import { useAccount as
|
|
2085
|
+
import { useEffect as useEffect11, useRef as useRef4 } from "react";
|
|
2086
|
+
import { useAccount as useAccount3, useBalance as useBalance5, useWatchBlockNumber as useWatchBlockNumber2 } from "wagmi";
|
|
1986
2087
|
import { useIsMounted } from "usehooks-ts";
|
|
1987
2088
|
import { twMerge as twMerge15 } from "tailwind-merge";
|
|
1988
2089
|
|
|
1989
2090
|
// src/onboarding/deposit/ChainSelect.tsx
|
|
1990
|
-
import { useMemo as useMemo2 } from "react";
|
|
2091
|
+
import { useEffect as useEffect10, useMemo as useMemo2 } from "react";
|
|
2092
|
+
import { useAccount, useSwitchChain } from "wagmi";
|
|
1991
2093
|
import { twMerge as twMerge12 } from "tailwind-merge";
|
|
1992
2094
|
import * as Select from "@radix-ui/react-select";
|
|
1993
|
-
import { useAccount as useAccount2, useChains as useChains2 } from "wagmi";
|
|
1994
|
-
|
|
1995
|
-
// src/icons/IconSVG.tsx
|
|
1996
|
-
import { twMerge as twMerge7 } from "tailwind-merge";
|
|
1997
|
-
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1998
|
-
function IconSVG({ className, children, ...props }) {
|
|
1999
|
-
return /* @__PURE__ */ jsx17(
|
|
2000
|
-
"svg",
|
|
2001
|
-
{
|
|
2002
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2003
|
-
viewBox: "0 0 24 24",
|
|
2004
|
-
fill: "currentColor",
|
|
2005
|
-
className: twMerge7("-my-[0.125em] h-[1.25em] w-[1.25em]", className),
|
|
2006
|
-
...props,
|
|
2007
|
-
children
|
|
2008
|
-
}
|
|
2009
|
-
);
|
|
2010
|
-
}
|
|
2011
2095
|
|
|
2012
2096
|
// src/icons/ChevronUpIcon.tsx
|
|
2013
|
-
import { jsx as
|
|
2097
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
2014
2098
|
function ChevronUpIcon(props) {
|
|
2015
|
-
return /* @__PURE__ */
|
|
2099
|
+
return /* @__PURE__ */ jsx20(IconSVG, { viewBox: "0 0 20 20", ...props, children: /* @__PURE__ */ jsx20(
|
|
2016
2100
|
"path",
|
|
2017
2101
|
{
|
|
2018
2102
|
d: "M14.7071 12.7071C14.3166 13.0976 13.6834 13.0976 13.2929 12.7071L10 9.41421L6.70711 12.7071C6.31658 13.0976 5.68342 13.0976 5.29289 12.7071C4.90237 12.3166 4.90237 11.6834 5.29289 11.2929L9.29289 7.29289C9.68342 6.90237 10.3166 6.90237 10.7071 7.29289L14.7071 11.2929C15.0976 11.6834 15.0976 12.3166 14.7071 12.7071Z",
|
|
@@ -2023,9 +2107,9 @@ function ChevronUpIcon(props) {
|
|
|
2023
2107
|
}
|
|
2024
2108
|
|
|
2025
2109
|
// src/icons/ChevronDownIcon.tsx
|
|
2026
|
-
import { jsx as
|
|
2110
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
2027
2111
|
function ChevronDownIcon(props) {
|
|
2028
|
-
return /* @__PURE__ */
|
|
2112
|
+
return /* @__PURE__ */ jsx21(IconSVG, { viewBox: "0 0 20 20", ...props, children: /* @__PURE__ */ jsx21(
|
|
2029
2113
|
"path",
|
|
2030
2114
|
{
|
|
2031
2115
|
d: "M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.70711 7.29289L10 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68342 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z",
|
|
@@ -2061,17 +2145,16 @@ function Slot({
|
|
|
2061
2145
|
|
|
2062
2146
|
// src/ui/Input.tsx
|
|
2063
2147
|
import { twMerge as twMerge9 } from "tailwind-merge";
|
|
2064
|
-
import { jsx as
|
|
2148
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
2065
2149
|
function Input({ asChild, className, ...props }) {
|
|
2066
2150
|
const Child = asChild ? Slot : "input";
|
|
2067
|
-
return /* @__PURE__ */
|
|
2151
|
+
return /* @__PURE__ */ jsx22(
|
|
2068
2152
|
Child,
|
|
2069
2153
|
{
|
|
2070
2154
|
className: twMerge9(
|
|
2071
2155
|
"p-2.5 gap-1 border text-lg font-medium transition",
|
|
2072
2156
|
"outline-none ring-2 ring-transparent focus-within:ring-orange-500 focus-within:border-transparent",
|
|
2073
|
-
"bg-
|
|
2074
|
-
"dark:bg-neutral-900 dark:border-neutral-700 dark:text-white dark:placeholder:text-neutral-500",
|
|
2157
|
+
"bg-neutral-900 border-neutral-700 text-white placeholder:text-neutral-500",
|
|
2075
2158
|
className
|
|
2076
2159
|
),
|
|
2077
2160
|
...props
|
|
@@ -2081,10 +2164,10 @@ function Input({ asChild, className, ...props }) {
|
|
|
2081
2164
|
|
|
2082
2165
|
// src/onboarding/deposit/ChainBalance.tsx
|
|
2083
2166
|
import { useBalance as useBalance3 } from "wagmi";
|
|
2084
|
-
import { Fragment as Fragment2, jsx as
|
|
2167
|
+
import { Fragment as Fragment2, jsx as jsx23 } from "react/jsx-runtime";
|
|
2085
2168
|
function ChainBalance({ chainId, address }) {
|
|
2086
2169
|
const balance = useBalance3({ chainId, address });
|
|
2087
|
-
return /* @__PURE__ */
|
|
2170
|
+
return /* @__PURE__ */ jsx23(Fragment2, { children: balance.data ? /* @__PURE__ */ jsx23(Balance, { wei: balance.data.value }) : /* @__PURE__ */ jsx23(PendingIcon, {}) });
|
|
2088
2171
|
}
|
|
2089
2172
|
|
|
2090
2173
|
// src/onboarding/deposit/ChainIcon.tsx
|
|
@@ -2092,29 +2175,29 @@ import { twMerge as twMerge11 } from "tailwind-merge";
|
|
|
2092
2175
|
|
|
2093
2176
|
// src/onboarding/deposit/PreloadedImage.tsx
|
|
2094
2177
|
import { twMerge as twMerge10 } from "tailwind-merge";
|
|
2095
|
-
import { jsx as
|
|
2178
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2096
2179
|
function PreloadedImage({ url, fallback: fallback2, className }) {
|
|
2097
2180
|
const { isSuccess, isLoading } = usePreloadImage(url);
|
|
2098
|
-
return /* @__PURE__ */
|
|
2181
|
+
return /* @__PURE__ */ jsx24("span", { className: twMerge10("inline-flex w-full h-full items-center justify-center overflow-clip", className), children: !isLoading ? isSuccess ? /* @__PURE__ */ jsx24("img", { src: url, className: "w-full h-full object-cover" }) : fallback2 : null });
|
|
2099
2182
|
}
|
|
2100
2183
|
|
|
2101
2184
|
// src/onboarding/deposit/ChainIcon.tsx
|
|
2102
2185
|
import { forwardRef as forwardRef2 } from "react";
|
|
2103
|
-
import { jsx as
|
|
2186
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
2104
2187
|
var ChainIcon = forwardRef2(function ChainIcon2({ name, url, className }, forwardedRef) {
|
|
2105
|
-
return /* @__PURE__ */
|
|
2188
|
+
return /* @__PURE__ */ jsx25(
|
|
2106
2189
|
"span",
|
|
2107
2190
|
{
|
|
2108
2191
|
ref: forwardedRef,
|
|
2109
2192
|
className: twMerge11("flex-shrink-0 inline-flex w-6 aspect-square rounded-full overflow-clip", className),
|
|
2110
|
-
children: url ? /* @__PURE__ */
|
|
2193
|
+
children: url ? /* @__PURE__ */ jsx25(PreloadedImage, { url }) : (
|
|
2111
2194
|
// TODO: better placeholder
|
|
2112
|
-
/* @__PURE__ */
|
|
2195
|
+
/* @__PURE__ */ jsx25(
|
|
2113
2196
|
"span",
|
|
2114
2197
|
{
|
|
2115
2198
|
className: twMerge11(
|
|
2116
2199
|
"inline-flex items-center justify-center w-full h-full rounded-full",
|
|
2117
|
-
"border-2 border-dashed border-
|
|
2200
|
+
"border-2 border-dashed border-white/50 opacity-50"
|
|
2118
2201
|
),
|
|
2119
2202
|
children: name?.slice(0, 1)
|
|
2120
2203
|
}
|
|
@@ -2159,12 +2242,12 @@ function useRelay() {
|
|
|
2159
2242
|
}
|
|
2160
2243
|
|
|
2161
2244
|
// src/onboarding/deposit/ChainSelect.tsx
|
|
2162
|
-
import { Fragment as Fragment3, jsx as
|
|
2245
|
+
import { Fragment as Fragment3, jsx as jsx26, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2163
2246
|
function ChainSelect({ value, onChange }) {
|
|
2164
2247
|
const theme = useTheme();
|
|
2165
2248
|
const { frame } = useFrame();
|
|
2166
|
-
const userAccount =
|
|
2167
|
-
const chains =
|
|
2249
|
+
const userAccount = useAccount();
|
|
2250
|
+
const { chains, switchChain } = useSwitchChain();
|
|
2168
2251
|
const relay = useRelay();
|
|
2169
2252
|
const relayChains = relay.data?.chains;
|
|
2170
2253
|
const sourceChains = useMemo2(() => {
|
|
@@ -2177,6 +2260,13 @@ function ChainSelect({ value, onChange }) {
|
|
|
2177
2260
|
}).filter((c) => c.relayChain);
|
|
2178
2261
|
}, [chains, relayChains]);
|
|
2179
2262
|
const selectedChain = sourceChains.find((c) => c.id === value);
|
|
2263
|
+
useEffect10(() => {
|
|
2264
|
+
if (sourceChains.length > 0 && !selectedChain) {
|
|
2265
|
+
const defaultChain = sourceChains[0];
|
|
2266
|
+
onChange(defaultChain.id);
|
|
2267
|
+
switchChain({ chainId: defaultChain.id });
|
|
2268
|
+
}
|
|
2269
|
+
}, [value, selectedChain, sourceChains, onChange, switchChain]);
|
|
2180
2270
|
return /* @__PURE__ */ jsxs15(
|
|
2181
2271
|
Select.Root,
|
|
2182
2272
|
{
|
|
@@ -2189,8 +2279,8 @@ function ChainSelect({ value, onChange }) {
|
|
|
2189
2279
|
}
|
|
2190
2280
|
},
|
|
2191
2281
|
children: [
|
|
2192
|
-
/* @__PURE__ */
|
|
2193
|
-
/* @__PURE__ */
|
|
2282
|
+
/* @__PURE__ */ jsx26(Input, { asChild: true, children: /* @__PURE__ */ jsxs15(Select.Trigger, { className: "group inline-flex items-center justify-center", children: [
|
|
2283
|
+
/* @__PURE__ */ jsx26(Select.Value, { asChild: true, children: /* @__PURE__ */ jsx26(
|
|
2194
2284
|
ChainIcon,
|
|
2195
2285
|
{
|
|
2196
2286
|
id: selectedChain?.id,
|
|
@@ -2199,18 +2289,17 @@ function ChainSelect({ value, onChange }) {
|
|
|
2199
2289
|
className: "w-8"
|
|
2200
2290
|
}
|
|
2201
2291
|
) }),
|
|
2202
|
-
/* @__PURE__ */
|
|
2203
|
-
/* @__PURE__ */
|
|
2204
|
-
/* @__PURE__ */
|
|
2292
|
+
/* @__PURE__ */ jsx26(Select.Icon, { asChild: true, children: /* @__PURE__ */ jsxs15(Fragment3, { children: [
|
|
2293
|
+
/* @__PURE__ */ jsx26(ChevronDownIcon, { className: "text-sm -mr-1 group-aria-expanded:hidden" }),
|
|
2294
|
+
/* @__PURE__ */ jsx26(ChevronUpIcon, { className: "text-sm -mr-1 hidden group-aria-expanded:inline" })
|
|
2205
2295
|
] }) })
|
|
2206
2296
|
] }) }),
|
|
2207
|
-
frame.contentDocument ? /* @__PURE__ */
|
|
2297
|
+
frame.contentDocument ? /* @__PURE__ */ jsx26(Select.Portal, { container: frame.contentDocument.body, children: /* @__PURE__ */ jsx26(Select.Content, { position: "popper", className: "w-[352px] mt-1 animate-in fade-in slide-in-from-top-2", children: /* @__PURE__ */ jsx26(Select.Viewport, { children: /* @__PURE__ */ jsx26(
|
|
2208
2298
|
Select.Group,
|
|
2209
2299
|
{
|
|
2210
2300
|
className: twMerge12(
|
|
2211
2301
|
"flex flex-col border divide-y",
|
|
2212
|
-
"bg-neutral-
|
|
2213
|
-
"dark:bg-neutral-800 dark:text-neutral-300 dark:border-neutral-700 dark:divide-neutral-700"
|
|
2302
|
+
"bg-neutral-800 text-neutral-300 border-neutral-700 divide-neutral-700"
|
|
2214
2303
|
),
|
|
2215
2304
|
children: sourceChains.map((chain) => (
|
|
2216
2305
|
// TODO: figure out why up/down arrow jump to top/bottom rather than cycling through items
|
|
@@ -2221,13 +2310,12 @@ function ChainSelect({ value, onChange }) {
|
|
|
2221
2310
|
className: twMerge12(
|
|
2222
2311
|
"group flex p-2.5 gap-2.5 items-center cursor-pointer outline-none",
|
|
2223
2312
|
// TODO: different style for checked/active state
|
|
2224
|
-
"text-
|
|
2225
|
-
"dark:text-white dark:focus:bg-neutral-700 dark:data-[state=checked]:bg-neutral-900"
|
|
2313
|
+
"text-white focus:bg-neutral-700 data-[state=checked]:bg-neutral-900"
|
|
2226
2314
|
),
|
|
2227
2315
|
children: [
|
|
2228
|
-
/* @__PURE__ */
|
|
2229
|
-
/* @__PURE__ */
|
|
2230
|
-
/* @__PURE__ */
|
|
2316
|
+
/* @__PURE__ */ jsx26(ChainIcon, { id: chain.id, name: chain.name, url: chain.relayChain?.icon?.[theme] }),
|
|
2317
|
+
/* @__PURE__ */ jsx26("span", { className: "flex-grow flex-shrink-0", children: chain.name }),
|
|
2318
|
+
/* @__PURE__ */ jsx26("span", { className: "flex-shrink-0 font-mono text-sm text-neutral-400", children: /* @__PURE__ */ jsx26(ChainBalance, { chainId: chain.id, address: userAccount.address }) })
|
|
2231
2319
|
]
|
|
2232
2320
|
},
|
|
2233
2321
|
chain.id
|
|
@@ -2244,18 +2332,14 @@ function ChainSelect({ value, onChange }) {
|
|
|
2244
2332
|
import { formatEther as formatEther3, parseEther as parseEther5 } from "viem";
|
|
2245
2333
|
import { twMerge as twMerge13 } from "tailwind-merge";
|
|
2246
2334
|
import { forwardRef as forwardRef3 } from "react";
|
|
2247
|
-
import { jsx as
|
|
2335
|
+
import { jsx as jsx27, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2248
2336
|
var AmountInput = forwardRef3(function AmountInput2({ initialAmount, onChange }, forwardedRef) {
|
|
2249
|
-
return /* @__PURE__ */
|
|
2250
|
-
/* @__PURE__ */
|
|
2337
|
+
return /* @__PURE__ */ jsx27(Input, { asChild: true, className: "w-full cursor-text flex items-center", children: /* @__PURE__ */ jsxs16("label", { children: [
|
|
2338
|
+
/* @__PURE__ */ jsx27(
|
|
2251
2339
|
"input",
|
|
2252
2340
|
{
|
|
2253
2341
|
ref: forwardedRef,
|
|
2254
|
-
className: twMerge13(
|
|
2255
|
-
"peer flex-grow outline-none bg-transparent",
|
|
2256
|
-
"placeholder:text-neutral-400",
|
|
2257
|
-
"dark:placeholder:text-neutral-500"
|
|
2258
|
-
),
|
|
2342
|
+
className: twMerge13("peer flex-grow outline-none bg-transparent", "placeholder:text-neutral-500"),
|
|
2259
2343
|
placeholder: "0.005",
|
|
2260
2344
|
required: true,
|
|
2261
2345
|
autoFocus: true,
|
|
@@ -2276,36 +2360,27 @@ var AmountInput = forwardRef3(function AmountInput2({ initialAmount, onChange },
|
|
|
2276
2360
|
}
|
|
2277
2361
|
}
|
|
2278
2362
|
),
|
|
2279
|
-
/* @__PURE__ */
|
|
2280
|
-
"span",
|
|
2281
|
-
{
|
|
2282
|
-
className: twMerge13(
|
|
2283
|
-
"flex-shrink-0 text-2xl",
|
|
2284
|
-
"peer-placeholder-shown:text-neutral-400",
|
|
2285
|
-
"dark:peer-placeholder-shown:text-neutral-500"
|
|
2286
|
-
),
|
|
2287
|
-
children: /* @__PURE__ */ jsx25(EthIcon, {})
|
|
2288
|
-
}
|
|
2289
|
-
)
|
|
2363
|
+
/* @__PURE__ */ jsx27("span", { className: twMerge13("flex-shrink-0 text-2xl", "peer-placeholder-shown:text-neutral-500"), children: /* @__PURE__ */ jsx27(EthIcon, {}) })
|
|
2290
2364
|
] }) });
|
|
2291
2365
|
});
|
|
2292
2366
|
|
|
2293
2367
|
// src/onboarding/deposit/SubmitButton.tsx
|
|
2294
|
-
import { useAccount as
|
|
2368
|
+
import { useAccount as useAccount2, useBalance as useBalance4, useSwitchChain as useSwitchChain2 } from "wagmi";
|
|
2295
2369
|
import { twMerge as twMerge14 } from "tailwind-merge";
|
|
2296
2370
|
import { parseEther as parseEther6 } from "viem";
|
|
2297
|
-
import { jsx as
|
|
2371
|
+
import { jsx as jsx28, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2298
2372
|
var MAX_DEPOSIT_AMOUNT = "0.1";
|
|
2299
2373
|
function SubmitButton({ amount, chainId, className, ...buttonProps }) {
|
|
2300
|
-
const { chainId: userChainId, address: userAddress } =
|
|
2374
|
+
const { chainId: userChainId, address: userAddress } = useAccount2();
|
|
2301
2375
|
const { data: userBalance } = useBalance4({ address: userAddress });
|
|
2302
2376
|
const shouldSwitchChain = chainId != null && chainId !== userChainId;
|
|
2303
|
-
const switchChain =
|
|
2377
|
+
const switchChain = useSwitchChain2();
|
|
2304
2378
|
if (shouldSwitchChain) {
|
|
2305
|
-
return /* @__PURE__ */
|
|
2379
|
+
return /* @__PURE__ */ jsx28(
|
|
2306
2380
|
Button,
|
|
2307
2381
|
{
|
|
2308
2382
|
type: "button",
|
|
2383
|
+
variant: "primary",
|
|
2309
2384
|
className: twMerge14("w-full", className),
|
|
2310
2385
|
pending: switchChain.isPending,
|
|
2311
2386
|
onClick: () => switchChain.switchChain({ chainId }),
|
|
@@ -2320,16 +2395,16 @@ function SubmitButton({ amount, chainId, className, ...buttonProps }) {
|
|
|
2320
2395
|
" ETH"
|
|
2321
2396
|
] });
|
|
2322
2397
|
} else if (amount > (userBalance?.value ?? 0n)) {
|
|
2323
|
-
return /* @__PURE__ */
|
|
2398
|
+
return /* @__PURE__ */ jsx28(Button, { type: "button", className: twMerge14("w-full", className), disabled: true, children: "Insufficient balance" });
|
|
2324
2399
|
}
|
|
2325
2400
|
}
|
|
2326
|
-
return /* @__PURE__ */
|
|
2401
|
+
return /* @__PURE__ */ jsx28(Button, { type: "submit", className: twMerge14("w-full", className), ...buttonProps });
|
|
2327
2402
|
}
|
|
2328
2403
|
|
|
2329
2404
|
// src/icons/WarningIcon.tsx
|
|
2330
|
-
import { jsx as
|
|
2405
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
2331
2406
|
function WarningIcon(props) {
|
|
2332
|
-
return /* @__PURE__ */
|
|
2407
|
+
return /* @__PURE__ */ jsx29(IconSVG, { fill: "none", ...props, children: /* @__PURE__ */ jsx29(
|
|
2333
2408
|
"path",
|
|
2334
2409
|
{
|
|
2335
2410
|
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",
|
|
@@ -2350,7 +2425,7 @@ function formatGas(wei) {
|
|
|
2350
2425
|
}
|
|
2351
2426
|
|
|
2352
2427
|
// src/onboarding/deposit/DepositForm.tsx
|
|
2353
|
-
import { Fragment as Fragment4, jsx as
|
|
2428
|
+
import { Fragment as Fragment4, jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2354
2429
|
function DepositForm({
|
|
2355
2430
|
sourceChain,
|
|
2356
2431
|
setSourceChainId,
|
|
@@ -2361,9 +2436,9 @@ function DepositForm({
|
|
|
2361
2436
|
onSubmit,
|
|
2362
2437
|
submitButton
|
|
2363
2438
|
}) {
|
|
2364
|
-
const amountInputRef =
|
|
2439
|
+
const amountInputRef = useRef4(null);
|
|
2365
2440
|
const isMounted = useIsMounted();
|
|
2366
|
-
const { address: userAddress, chainId: userChainId } =
|
|
2441
|
+
const { address: userAddress, chainId: userChainId } = useAccount3();
|
|
2367
2442
|
const balance = useShowQueryError(useBalance5({ chainId: sourceChain.id, address: userAddress }));
|
|
2368
2443
|
const quarryBalance = useShowQueryError(useBalance(userAddress));
|
|
2369
2444
|
useWatchBlockNumber2({
|
|
@@ -2374,7 +2449,7 @@ function DepositForm({
|
|
|
2374
2449
|
});
|
|
2375
2450
|
const minimumBalance = amount != null ? amount + (estimatedFee?.fee ?? 0n) : void 0;
|
|
2376
2451
|
const hasMinimumBalance = balance.data != null ? balance.data.value > (minimumBalance ?? 0n) : void 0;
|
|
2377
|
-
|
|
2452
|
+
useEffect11(() => {
|
|
2378
2453
|
amountInputRef.current?.focus();
|
|
2379
2454
|
}, [userChainId]);
|
|
2380
2455
|
return /* @__PURE__ */ jsxs18(
|
|
@@ -2399,33 +2474,32 @@ function DepositForm({
|
|
|
2399
2474
|
},
|
|
2400
2475
|
children: [
|
|
2401
2476
|
/* @__PURE__ */ jsxs18("div", { className: "flex gap-2", children: [
|
|
2402
|
-
/* @__PURE__ */
|
|
2403
|
-
/* @__PURE__ */
|
|
2477
|
+
/* @__PURE__ */ jsx30(ChainSelect, { value: sourceChain.id, onChange: setSourceChainId }),
|
|
2478
|
+
/* @__PURE__ */ jsx30(AmountInput, { ref: amountInputRef, initialAmount: amount, onChange: setAmount })
|
|
2404
2479
|
] }),
|
|
2405
2480
|
/* @__PURE__ */ jsxs18(
|
|
2406
2481
|
"dl",
|
|
2407
2482
|
{
|
|
2408
2483
|
className: twMerge15(
|
|
2409
2484
|
"grid grid-cols-2 divide-y text-sm leading-loose [&_>_:is(dt,dd)]:px-1 [&_>_dd]:text-right",
|
|
2410
|
-
"divide-neutral-
|
|
2411
|
-
"dark:divide-neutral-700 dark:text-neutral-400"
|
|
2485
|
+
"divide-neutral-700 text-neutral-400"
|
|
2412
2486
|
),
|
|
2413
2487
|
children: [
|
|
2414
|
-
/* @__PURE__ */
|
|
2415
|
-
/* @__PURE__ */
|
|
2416
|
-
/* @__PURE__ */
|
|
2417
|
-
/* @__PURE__ */
|
|
2418
|
-
/* @__PURE__ */
|
|
2419
|
-
/* @__PURE__ */
|
|
2488
|
+
/* @__PURE__ */ jsx30("dt", { children: "Available to deposit" }),
|
|
2489
|
+
/* @__PURE__ */ jsx30("dd", { children: balance.isSuccess ? /* @__PURE__ */ jsx30(Balance, { wei: balance.data.value }) : balance.isError ? /* @__PURE__ */ jsx30("span", { title: String(balance.error), children: /* @__PURE__ */ jsx30(WarningIcon, { className: "inline-block text-amber-500" }) }) : balance.isLoading ? /* @__PURE__ */ jsx30(PendingIcon, { className: "inline-block text-xs" }) : null }),
|
|
2490
|
+
/* @__PURE__ */ jsx30("dt", { children: "Gas balance after deposit" }),
|
|
2491
|
+
/* @__PURE__ */ jsx30("dd", { children: /* @__PURE__ */ jsx30(Balance, { wei: (quarryBalance.data ?? 0n) + (amount ?? 0n) }) }),
|
|
2492
|
+
/* @__PURE__ */ jsx30("dt", { children: "Estimated fee" }),
|
|
2493
|
+
/* @__PURE__ */ jsx30("dd", { children: estimatedFee.fee ? /* @__PURE__ */ jsxs18(Fragment4, { children: [
|
|
2420
2494
|
formatGas(estimatedFee.fee),
|
|
2421
2495
|
" gwei"
|
|
2422
|
-
] }) : estimatedFee.error ? /* @__PURE__ */
|
|
2423
|
-
/* @__PURE__ */
|
|
2424
|
-
/* @__PURE__ */
|
|
2496
|
+
] }) : estimatedFee.error ? /* @__PURE__ */ jsx30("span", { title: String(estimatedFee.error), children: /* @__PURE__ */ jsx30(WarningIcon, { className: "inline-block text-amber-500" }) }) : estimatedFee.isLoading ? /* @__PURE__ */ jsx30(PendingIcon, { className: "inline-block text-xs" }) : null }),
|
|
2497
|
+
/* @__PURE__ */ jsx30("dt", { children: "Time to deposit" }),
|
|
2498
|
+
/* @__PURE__ */ jsx30("dd", { children: estimatedTime })
|
|
2425
2499
|
]
|
|
2426
2500
|
}
|
|
2427
2501
|
),
|
|
2428
|
-
hasMinimumBalance ? submitButton : /* @__PURE__ */
|
|
2502
|
+
hasMinimumBalance ? submitButton : /* @__PURE__ */ jsx30(SubmitButton, { disabled: true, children: "Not enough funds" })
|
|
2429
2503
|
]
|
|
2430
2504
|
}
|
|
2431
2505
|
);
|
|
@@ -2479,12 +2553,12 @@ function useDeposits() {
|
|
|
2479
2553
|
}
|
|
2480
2554
|
|
|
2481
2555
|
// src/onboarding/deposit/DepositViaTransferForm.tsx
|
|
2482
|
-
import { jsx as
|
|
2556
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2483
2557
|
function DepositViaTransferForm({ amount, setAmount, sourceChain, setSourceChainId }) {
|
|
2484
2558
|
const { chain } = useEntryKitConfig();
|
|
2485
2559
|
const paymaster = getPaymaster(chain);
|
|
2486
2560
|
const publicClient = usePublicClient();
|
|
2487
|
-
const { address: userAddress } =
|
|
2561
|
+
const { address: userAddress } = useAccount4();
|
|
2488
2562
|
const { writeContractAsync } = useWriteContract();
|
|
2489
2563
|
const { addDeposit } = useDeposits();
|
|
2490
2564
|
if (!userAddress) {
|
|
@@ -2547,7 +2621,7 @@ function DepositViaTransferForm({ amount, setAmount, sourceChain, setSourceChain
|
|
|
2547
2621
|
}
|
|
2548
2622
|
});
|
|
2549
2623
|
const estimatedFee = prepareData?.gas && gasPrice ? prepareData.gas * gasPrice : void 0;
|
|
2550
|
-
return /* @__PURE__ */
|
|
2624
|
+
return /* @__PURE__ */ jsx31(
|
|
2551
2625
|
DepositForm,
|
|
2552
2626
|
{
|
|
2553
2627
|
sourceChain,
|
|
@@ -2563,7 +2637,7 @@ function DepositViaTransferForm({ amount, setAmount, sourceChain, setSourceChain
|
|
|
2563
2637
|
onSubmit: async () => {
|
|
2564
2638
|
await deposit.mutateAsync();
|
|
2565
2639
|
},
|
|
2566
|
-
submitButton: /* @__PURE__ */
|
|
2640
|
+
submitButton: /* @__PURE__ */ jsx31(
|
|
2567
2641
|
SubmitButton,
|
|
2568
2642
|
{
|
|
2569
2643
|
variant: "primary",
|
|
@@ -2580,15 +2654,15 @@ function DepositViaTransferForm({ amount, setAmount, sourceChain, setSourceChain
|
|
|
2580
2654
|
|
|
2581
2655
|
// src/onboarding/deposit/DepositViaRelayForm.tsx
|
|
2582
2656
|
import { encodeFunctionData as encodeFunctionData3 } from "viem";
|
|
2583
|
-
import { useAccount as
|
|
2657
|
+
import { useAccount as useAccount5, useWalletClient } from "wagmi";
|
|
2584
2658
|
import { useMutation as useMutation5, useQuery as useQuery12 } from "@tanstack/react-query";
|
|
2585
|
-
import { jsx as
|
|
2659
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2586
2660
|
var ETH_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
2587
2661
|
function DepositViaRelayForm({ amount, setAmount, sourceChain, setSourceChainId }) {
|
|
2588
2662
|
const { chain, chainId: destinationChainId } = useEntryKitConfig();
|
|
2589
2663
|
const paymaster = getPaymaster(chain);
|
|
2590
2664
|
const { data: wallet } = useWalletClient();
|
|
2591
|
-
const { address: userAddress } =
|
|
2665
|
+
const { address: userAddress } = useAccount5();
|
|
2592
2666
|
const { addDeposit } = useDeposits();
|
|
2593
2667
|
const { data: relay } = useRelay();
|
|
2594
2668
|
const relayClient = relay?.client;
|
|
@@ -2668,7 +2742,7 @@ function DepositViaRelayForm({ amount, setAmount, sourceChain, setSourceChainId
|
|
|
2668
2742
|
const gasFee = BigInt(fees?.gas?.amount ?? 0);
|
|
2669
2743
|
const relayerFee = BigInt(fees?.relayer?.amount ?? 0);
|
|
2670
2744
|
const fee = gasFee + relayerFee;
|
|
2671
|
-
return /* @__PURE__ */
|
|
2745
|
+
return /* @__PURE__ */ jsx32(
|
|
2672
2746
|
DepositForm,
|
|
2673
2747
|
{
|
|
2674
2748
|
sourceChain,
|
|
@@ -2685,7 +2759,7 @@ function DepositViaRelayForm({ amount, setAmount, sourceChain, setSourceChainId
|
|
|
2685
2759
|
if (!quote.data || !amount) return;
|
|
2686
2760
|
await deposit.mutateAsync({ quote: quote.data, amount });
|
|
2687
2761
|
},
|
|
2688
|
-
submitButton: /* @__PURE__ */
|
|
2762
|
+
submitButton: /* @__PURE__ */ jsx32(
|
|
2689
2763
|
SubmitButton,
|
|
2690
2764
|
{
|
|
2691
2765
|
variant: "primary",
|
|
@@ -2701,36 +2775,20 @@ function DepositViaRelayForm({ amount, setAmount, sourceChain, setSourceChainId
|
|
|
2701
2775
|
}
|
|
2702
2776
|
|
|
2703
2777
|
// src/onboarding/deposit/Deposits.tsx
|
|
2704
|
-
import { useEffect as
|
|
2705
|
-
import { useQuery as useQuery15, useQueryClient as
|
|
2778
|
+
import { useEffect as useEffect13 } from "react";
|
|
2779
|
+
import { useQuery as useQuery15, useQueryClient as useQueryClient7 } from "@tanstack/react-query";
|
|
2706
2780
|
|
|
2707
2781
|
// src/onboarding/deposit/TransferDepositStatus.tsx
|
|
2708
2782
|
import { useQuery as useQuery13 } from "@tanstack/react-query";
|
|
2709
2783
|
|
|
2710
2784
|
// src/onboarding/deposit/DepositStatus.tsx
|
|
2711
|
-
import { useEffect as
|
|
2785
|
+
import { useEffect as useEffect12, useState as useState3 } from "react";
|
|
2712
2786
|
import { twMerge as twMerge16 } from "tailwind-merge";
|
|
2713
2787
|
|
|
2714
|
-
// src/icons/CheckIcon.tsx
|
|
2715
|
-
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2716
|
-
function CheckIcon(props) {
|
|
2717
|
-
return /* @__PURE__ */ jsx31(IconSVG, { ...props, children: /* @__PURE__ */ jsx31(
|
|
2718
|
-
"path",
|
|
2719
|
-
{
|
|
2720
|
-
d: "M5 13L9 17L19 7",
|
|
2721
|
-
fill: "none",
|
|
2722
|
-
stroke: "currentColor",
|
|
2723
|
-
strokeWidth: "2",
|
|
2724
|
-
strokeLinecap: "round",
|
|
2725
|
-
strokeLinejoin: "round"
|
|
2726
|
-
}
|
|
2727
|
-
) });
|
|
2728
|
-
}
|
|
2729
|
-
|
|
2730
2788
|
// src/icons/CloseIcon.tsx
|
|
2731
|
-
import { jsx as
|
|
2789
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2732
2790
|
function CloseIcon(props) {
|
|
2733
|
-
return /* @__PURE__ */
|
|
2791
|
+
return /* @__PURE__ */ jsx33(IconSVG, { strokeWidth: "2", stroke: "currentColor", ...props, children: /* @__PURE__ */ jsx33(
|
|
2734
2792
|
"path",
|
|
2735
2793
|
{
|
|
2736
2794
|
d: "M6 18L18 6M6 6L18 18",
|
|
@@ -2744,18 +2802,18 @@ function CloseIcon(props) {
|
|
|
2744
2802
|
}
|
|
2745
2803
|
|
|
2746
2804
|
// src/onboarding/deposit/DepositStatus.tsx
|
|
2747
|
-
import { jsx as
|
|
2805
|
+
import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2748
2806
|
function DepositStatus({ status, progress, children, onDismiss }) {
|
|
2749
2807
|
const [appear, setAppear] = useState3(false);
|
|
2750
|
-
|
|
2808
|
+
useEffect12(() => {
|
|
2751
2809
|
setAppear(true);
|
|
2752
2810
|
}, []);
|
|
2753
|
-
return /* @__PURE__ */ jsxs19("div", { className: "group bg-
|
|
2811
|
+
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: [
|
|
2754
2812
|
/* @__PURE__ */ jsxs19("div", { className: "py-1 text-sm flex items-center gap-2", children: [
|
|
2755
|
-
/* @__PURE__ */
|
|
2813
|
+
/* @__PURE__ */ jsx34("div", { className: "flex-grow", children }),
|
|
2756
2814
|
/* @__PURE__ */ jsxs19("div", { className: "flex-shrink-0 grid", children: [
|
|
2757
|
-
/* @__PURE__ */
|
|
2758
|
-
/* @__PURE__ */
|
|
2815
|
+
/* @__PURE__ */ jsx34("span", { className: "col-start-1 row-start-1 transition opacity-100 group-hover:opacity-0 group-hover:pointer-events-none", children: status === "success" ? /* @__PURE__ */ jsx34(CheckIcon, { className: "text-green-600" }) : status === "error" ? /* @__PURE__ */ jsx34(WarningIcon, { className: "text-amber-500" }) : /* @__PURE__ */ jsx34(PendingIcon, { className: "text-neutral-500 transition" }) }),
|
|
2816
|
+
/* @__PURE__ */ jsx34(
|
|
2759
2817
|
"button",
|
|
2760
2818
|
{
|
|
2761
2819
|
type: "button",
|
|
@@ -2763,22 +2821,21 @@ function DepositStatus({ status, progress, children, onDismiss }) {
|
|
|
2763
2821
|
"col-start-1 row-start-1 flex items-center justify-center transition",
|
|
2764
2822
|
"opacity-0 pointer-events-none",
|
|
2765
2823
|
"group-hover:opacity-100 group-hover:pointer-events-auto",
|
|
2766
|
-
"text-neutral-
|
|
2767
|
-
"dark:text-neutral-500 dark:hover:text-white"
|
|
2824
|
+
"text-neutral-500 hover:text-white"
|
|
2768
2825
|
),
|
|
2769
2826
|
title: "Dismiss",
|
|
2770
2827
|
onClick: onDismiss,
|
|
2771
|
-
children: /* @__PURE__ */
|
|
2828
|
+
children: /* @__PURE__ */ jsx34(CloseIcon, {})
|
|
2772
2829
|
}
|
|
2773
2830
|
)
|
|
2774
2831
|
] })
|
|
2775
2832
|
] }),
|
|
2776
|
-
/* @__PURE__ */
|
|
2833
|
+
/* @__PURE__ */ jsx34("div", { className: "w-full h-[2px] -mt-full overflow-clip", children: /* @__PURE__ */ jsx34(
|
|
2777
2834
|
"div",
|
|
2778
2835
|
{
|
|
2779
2836
|
className: twMerge16(
|
|
2780
2837
|
"w-full h-full transition ease-linear",
|
|
2781
|
-
status === "success" ? "bg-green-
|
|
2838
|
+
status === "success" ? "bg-green-600" : status === "error" ? "bg-red-600" : "bg-blue-600",
|
|
2782
2839
|
status === "pending" ? "opacity-100" : "opacity-0"
|
|
2783
2840
|
),
|
|
2784
2841
|
style: status === "pending" ? {
|
|
@@ -2792,8 +2849,8 @@ function DepositStatus({ status, progress, children, onDismiss }) {
|
|
|
2792
2849
|
}
|
|
2793
2850
|
|
|
2794
2851
|
// src/onboarding/deposit/TransferDepositStatus.tsx
|
|
2795
|
-
import { useChains as
|
|
2796
|
-
import { Fragment as Fragment5, jsx as
|
|
2852
|
+
import { useChains as useChains2 } from "wagmi";
|
|
2853
|
+
import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2797
2854
|
function TransferDepositStatus({
|
|
2798
2855
|
amount,
|
|
2799
2856
|
chainL1Id,
|
|
@@ -2803,13 +2860,13 @@ function TransferDepositStatus({
|
|
|
2803
2860
|
estimatedTime,
|
|
2804
2861
|
onDismiss
|
|
2805
2862
|
}) {
|
|
2806
|
-
const chains =
|
|
2863
|
+
const chains = useChains2();
|
|
2807
2864
|
const chain = chains.find((chain2) => chain2.id === chainL1Id);
|
|
2808
2865
|
const receipt = useQuery13({
|
|
2809
2866
|
queryKey: ["transferDepositStatus", hash],
|
|
2810
2867
|
queryFn: () => receiptPromise
|
|
2811
2868
|
});
|
|
2812
|
-
return /* @__PURE__ */
|
|
2869
|
+
return /* @__PURE__ */ jsx35(
|
|
2813
2870
|
DepositStatus,
|
|
2814
2871
|
{
|
|
2815
2872
|
status: receipt.status,
|
|
@@ -2824,7 +2881,7 @@ function TransferDepositStatus({
|
|
|
2824
2881
|
return /* @__PURE__ */ jsxs20(Fragment5, { children: [
|
|
2825
2882
|
"Confirming deposit on",
|
|
2826
2883
|
" ",
|
|
2827
|
-
/* @__PURE__ */
|
|
2884
|
+
/* @__PURE__ */ jsx35(
|
|
2828
2885
|
"a",
|
|
2829
2886
|
{
|
|
2830
2887
|
href: blockExplorer ? `${blockExplorer}/tx/${hash}` : void 0,
|
|
@@ -2840,7 +2897,7 @@ function TransferDepositStatus({
|
|
|
2840
2897
|
return /* @__PURE__ */ jsxs20(Fragment5, { children: [
|
|
2841
2898
|
"Could not find deposit on",
|
|
2842
2899
|
" ",
|
|
2843
|
-
/* @__PURE__ */
|
|
2900
|
+
/* @__PURE__ */ jsx35(
|
|
2844
2901
|
"a",
|
|
2845
2902
|
{
|
|
2846
2903
|
href: blockExplorer ? `${blockExplorer}/tx/${hash}` : void 0,
|
|
@@ -2855,7 +2912,7 @@ function TransferDepositStatus({
|
|
|
2855
2912
|
return /* @__PURE__ */ jsxs20(Fragment5, { children: [
|
|
2856
2913
|
"Successfully",
|
|
2857
2914
|
" ",
|
|
2858
|
-
/* @__PURE__ */
|
|
2915
|
+
/* @__PURE__ */ jsx35(
|
|
2859
2916
|
"a",
|
|
2860
2917
|
{
|
|
2861
2918
|
href: blockExplorer ? `${blockExplorer}/tx/${receipt.data.transactionHash}` : void 0,
|
|
@@ -2865,8 +2922,7 @@ function TransferDepositStatus({
|
|
|
2865
2922
|
}
|
|
2866
2923
|
),
|
|
2867
2924
|
" ",
|
|
2868
|
-
/* @__PURE__ */
|
|
2869
|
-
" !"
|
|
2925
|
+
/* @__PURE__ */ jsx35(Balance, { wei: amount })
|
|
2870
2926
|
] });
|
|
2871
2927
|
})()
|
|
2872
2928
|
}
|
|
@@ -2875,8 +2931,8 @@ function TransferDepositStatus({
|
|
|
2875
2931
|
|
|
2876
2932
|
// src/onboarding/deposit/RelayDepositStatus.tsx
|
|
2877
2933
|
import { useQuery as useQuery14 } from "@tanstack/react-query";
|
|
2878
|
-
import { useChains as
|
|
2879
|
-
import { Fragment as Fragment6, jsx as
|
|
2934
|
+
import { useChains as useChains3 } from "wagmi";
|
|
2935
|
+
import { Fragment as Fragment6, jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2880
2936
|
function RelayDepositStatus({
|
|
2881
2937
|
amount,
|
|
2882
2938
|
chainL1Id,
|
|
@@ -2886,14 +2942,14 @@ function RelayDepositStatus({
|
|
|
2886
2942
|
depositPromise,
|
|
2887
2943
|
onDismiss
|
|
2888
2944
|
}) {
|
|
2889
|
-
const chains =
|
|
2945
|
+
const chains = useChains3();
|
|
2890
2946
|
const chainL1 = chains.find((chain) => chain.id === chainL1Id);
|
|
2891
2947
|
const chainL2 = chains.find((chain) => chain.id === chainL2Id);
|
|
2892
2948
|
const deposit = useQuery14({
|
|
2893
2949
|
queryKey: ["relayDepositPromise", chainL1Id, chainL2Id, amount.toString(), start.toISOString()],
|
|
2894
2950
|
queryFn: () => depositPromise
|
|
2895
2951
|
});
|
|
2896
|
-
return /* @__PURE__ */
|
|
2952
|
+
return /* @__PURE__ */ jsx36(
|
|
2897
2953
|
DepositStatus,
|
|
2898
2954
|
{
|
|
2899
2955
|
status: deposit.status,
|
|
@@ -2919,7 +2975,7 @@ function RelayDepositStatus({
|
|
|
2919
2975
|
}
|
|
2920
2976
|
return /* @__PURE__ */ jsxs21(Fragment6, { children: [
|
|
2921
2977
|
"Successfully bridged ",
|
|
2922
|
-
/* @__PURE__ */
|
|
2978
|
+
/* @__PURE__ */ jsx36(Balance, { wei: amount }),
|
|
2923
2979
|
" to ",
|
|
2924
2980
|
chainL2.name,
|
|
2925
2981
|
"!"
|
|
@@ -2930,13 +2986,13 @@ function RelayDepositStatus({
|
|
|
2930
2986
|
}
|
|
2931
2987
|
|
|
2932
2988
|
// src/onboarding/deposit/Deposits.tsx
|
|
2933
|
-
import { useAccount as
|
|
2934
|
-
import { jsx as
|
|
2989
|
+
import { useAccount as useAccount6, useClient as useClient11 } from "wagmi";
|
|
2990
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2935
2991
|
function Deposits() {
|
|
2936
|
-
const queryClient =
|
|
2992
|
+
const queryClient = useQueryClient7();
|
|
2937
2993
|
const { chainId } = useEntryKitConfig();
|
|
2938
2994
|
const client = useClient11({ chainId });
|
|
2939
|
-
const { address: userAddress } =
|
|
2995
|
+
const { address: userAddress } = useAccount6();
|
|
2940
2996
|
const { deposits, removeDeposit } = useDeposits();
|
|
2941
2997
|
const { data: isComplete } = useQuery15({
|
|
2942
2998
|
queryKey: ["depositsComplete", deposits.map((deposit) => deposit.uid)],
|
|
@@ -2946,33 +3002,33 @@ function Deposits() {
|
|
|
2946
3002
|
return true;
|
|
2947
3003
|
}
|
|
2948
3004
|
});
|
|
2949
|
-
|
|
3005
|
+
useEffect13(() => {
|
|
2950
3006
|
if (isComplete) {
|
|
2951
3007
|
queryClient.invalidateQueries({ queryKey: ["balance"] });
|
|
2952
3008
|
queryClient.invalidateQueries({ queryKey: ["getBalance", client?.uid, userAddress] });
|
|
2953
3009
|
}
|
|
2954
3010
|
}, [client?.uid, isComplete, queryClient, userAddress]);
|
|
2955
3011
|
if (!deposits.length) return null;
|
|
2956
|
-
return /* @__PURE__ */
|
|
3012
|
+
return /* @__PURE__ */ jsx37("div", { className: "flex flex-col gap-1 mt-4", children: deposits.map((deposit) => {
|
|
2957
3013
|
if (deposit.type === "transfer") {
|
|
2958
|
-
return /* @__PURE__ */
|
|
3014
|
+
return /* @__PURE__ */ jsx37(TransferDepositStatus, { ...deposit, onDismiss: () => removeDeposit(deposit.uid) }, deposit.uid);
|
|
2959
3015
|
} else if (deposit.type === "relay") {
|
|
2960
|
-
return /* @__PURE__ */
|
|
3016
|
+
return /* @__PURE__ */ jsx37(RelayDepositStatus, { ...deposit, onDismiss: () => removeDeposit(deposit.uid) }, deposit.uid);
|
|
2961
3017
|
}
|
|
2962
3018
|
}) });
|
|
2963
3019
|
}
|
|
2964
3020
|
|
|
2965
3021
|
// src/onboarding/deposit/DepositFormContainer.tsx
|
|
2966
|
-
import { jsx as
|
|
3022
|
+
import { jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2967
3023
|
function DepositFormContainer() {
|
|
2968
3024
|
const { chainId: destinationChainId } = useEntryKitConfig();
|
|
2969
3025
|
const chainId = useChainId();
|
|
2970
|
-
const chains =
|
|
3026
|
+
const chains = useChains4();
|
|
2971
3027
|
const [amount, setAmount] = useState4(void 0);
|
|
2972
3028
|
const [sourceChainId, setSourceChainId] = useState4(chainId);
|
|
2973
3029
|
const sourceChain = chains.find(({ id }) => id === sourceChainId);
|
|
2974
3030
|
return /* @__PURE__ */ jsxs22("div", { className: "pt-10 pb-2", children: [
|
|
2975
|
-
destinationChainId === sourceChainId ? /* @__PURE__ */
|
|
3031
|
+
destinationChainId === sourceChainId ? /* @__PURE__ */ jsx38(
|
|
2976
3032
|
DepositViaTransferForm,
|
|
2977
3033
|
{
|
|
2978
3034
|
amount,
|
|
@@ -2980,7 +3036,7 @@ function DepositFormContainer() {
|
|
|
2980
3036
|
sourceChain,
|
|
2981
3037
|
setSourceChainId
|
|
2982
3038
|
}
|
|
2983
|
-
) : /* @__PURE__ */
|
|
3039
|
+
) : /* @__PURE__ */ jsx38(
|
|
2984
3040
|
DepositViaRelayForm,
|
|
2985
3041
|
{
|
|
2986
3042
|
amount,
|
|
@@ -2989,14 +3045,14 @@ function DepositFormContainer() {
|
|
|
2989
3045
|
setSourceChainId
|
|
2990
3046
|
}
|
|
2991
3047
|
),
|
|
2992
|
-
/* @__PURE__ */
|
|
3048
|
+
/* @__PURE__ */ jsx38(Deposits, {})
|
|
2993
3049
|
] });
|
|
2994
3050
|
}
|
|
2995
3051
|
|
|
2996
3052
|
// src/icons/ArrowLeftIcon.tsx
|
|
2997
|
-
import { jsx as
|
|
3053
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2998
3054
|
function ArrowLeftIcon(props) {
|
|
2999
|
-
return /* @__PURE__ */
|
|
3055
|
+
return /* @__PURE__ */ jsx39(IconSVG, { ...props, children: /* @__PURE__ */ jsx39(
|
|
3000
3056
|
"path",
|
|
3001
3057
|
{
|
|
3002
3058
|
d: "M19 12H5M12 19l-7-7 7-7",
|
|
@@ -3010,29 +3066,39 @@ function ArrowLeftIcon(props) {
|
|
|
3010
3066
|
}
|
|
3011
3067
|
|
|
3012
3068
|
// src/onboarding/quarry/GasBalance.tsx
|
|
3013
|
-
import {
|
|
3069
|
+
import { useEffect as useEffect14 } from "react";
|
|
3070
|
+
import { useQueryClient as useQueryClient8 } from "@tanstack/react-query";
|
|
3071
|
+
import { Fragment as Fragment7, jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3014
3072
|
function GasBalance2({ isActive, isExpanded, isFocused, setFocused, userAddress }) {
|
|
3073
|
+
const queryClient = useQueryClient8();
|
|
3015
3074
|
const balance = useShowQueryError(useBalance(userAddress));
|
|
3075
|
+
const prevBalance = usePrevious(balance.data || 0n);
|
|
3076
|
+
useEffect14(() => {
|
|
3077
|
+
if (balance.data != null && prevBalance === 0n && balance.data > 0n) {
|
|
3078
|
+
queryClient.invalidateQueries({ queryKey: ["getPrerequisites"] });
|
|
3079
|
+
setFocused(false);
|
|
3080
|
+
}
|
|
3081
|
+
}, [balance.data, prevBalance, setFocused, queryClient, userAddress]);
|
|
3016
3082
|
if (isFocused) {
|
|
3017
3083
|
return /* @__PURE__ */ jsxs23(Fragment7, { children: [
|
|
3018
|
-
isFocused && /* @__PURE__ */
|
|
3084
|
+
isFocused && /* @__PURE__ */ jsx40("div", { className: "absolute top-0 left-0", children: /* @__PURE__ */ jsx40(
|
|
3019
3085
|
"div",
|
|
3020
3086
|
{
|
|
3021
3087
|
className: "flex items-center justify-center w-10 h-10 text-white/20 hover:text-white/40 cursor-pointer",
|
|
3022
3088
|
onClick: () => setFocused(false),
|
|
3023
|
-
children: /* @__PURE__ */
|
|
3089
|
+
children: /* @__PURE__ */ jsx40(ArrowLeftIcon, { className: "m-0" })
|
|
3024
3090
|
}
|
|
3025
3091
|
) }),
|
|
3026
|
-
/* @__PURE__ */
|
|
3092
|
+
/* @__PURE__ */ jsx40(DepositFormContainer, {})
|
|
3027
3093
|
] });
|
|
3028
3094
|
}
|
|
3029
3095
|
return /* @__PURE__ */ jsxs23("div", { className: "flex flex-col gap-4", children: [
|
|
3030
3096
|
/* @__PURE__ */ jsxs23("div", { className: "flex justify-between gap-4", children: [
|
|
3031
3097
|
/* @__PURE__ */ jsxs23("div", { children: [
|
|
3032
|
-
/* @__PURE__ */
|
|
3033
|
-
/* @__PURE__ */
|
|
3098
|
+
/* @__PURE__ */ jsx40("div", { children: "Gas balance" }),
|
|
3099
|
+
/* @__PURE__ */ jsx40("div", { className: "font-mono text-white", children: balance.data != null ? /* @__PURE__ */ jsx40(Balance, { wei: balance.data }) : /* @__PURE__ */ jsx40(PendingIcon, { className: "text-sm" }) })
|
|
3034
3100
|
] }),
|
|
3035
|
-
/* @__PURE__ */
|
|
3101
|
+
/* @__PURE__ */ jsx40(
|
|
3036
3102
|
Button,
|
|
3037
3103
|
{
|
|
3038
3104
|
variant: isActive ? "primary" : "tertiary",
|
|
@@ -3044,27 +3110,27 @@ function GasBalance2({ isActive, isExpanded, isFocused, setFocused, userAddress
|
|
|
3044
3110
|
}
|
|
3045
3111
|
)
|
|
3046
3112
|
] }),
|
|
3047
|
-
isExpanded ? /* @__PURE__ */
|
|
3113
|
+
isExpanded ? /* @__PURE__ */ jsx40("p", { className: "text-sm", children: "Your gas balance is used to pay for onchain computation." }) : null
|
|
3048
3114
|
] });
|
|
3049
3115
|
}
|
|
3050
3116
|
|
|
3051
3117
|
// src/onboarding/ConnectedSteps.tsx
|
|
3052
|
-
import { jsx as
|
|
3118
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3053
3119
|
function ConnectedSteps({ userClient, initialUserAddress }) {
|
|
3054
3120
|
const { chain } = useEntryKitConfig();
|
|
3055
3121
|
const paymaster = getPaymaster(chain);
|
|
3056
3122
|
const [focusedId, setFocusedId] = useState5(null);
|
|
3057
3123
|
const userAddress = userClient.account.address;
|
|
3058
3124
|
const { data: prerequisites, error: prerequisitesError } = usePrerequisites(userAddress);
|
|
3059
|
-
|
|
3125
|
+
useEffect15(() => {
|
|
3060
3126
|
if (prerequisitesError) {
|
|
3061
3127
|
console.error("Could not get prerequisites", prerequisitesError);
|
|
3062
3128
|
}
|
|
3063
3129
|
}, [prerequisitesError]);
|
|
3064
3130
|
const { closeAccountModal } = useAccountModal();
|
|
3065
3131
|
const isNewConnection = userAddress !== initialUserAddress;
|
|
3066
|
-
const initialPrerequisites =
|
|
3067
|
-
|
|
3132
|
+
const initialPrerequisites = useRef5(prerequisites);
|
|
3133
|
+
useEffect15(() => {
|
|
3068
3134
|
if (prerequisites == null) return;
|
|
3069
3135
|
if (initialPrerequisites.current == null) {
|
|
3070
3136
|
initialPrerequisites.current = prerequisites;
|
|
@@ -3075,7 +3141,7 @@ function ConnectedSteps({ userClient, initialUserAddress }) {
|
|
|
3075
3141
|
}
|
|
3076
3142
|
}
|
|
3077
3143
|
}, [closeAccountModal, isNewConnection, prerequisites]);
|
|
3078
|
-
const { sessionAddress, hasAllowance, isSpender, hasDelegation, hasGasBalance,
|
|
3144
|
+
const { sessionAddress, hasAllowance, isSpender, hasDelegation, hasGasBalance, hasQuarryGasBalance } = prerequisites ?? {};
|
|
3079
3145
|
const steps = useMemo4(() => {
|
|
3080
3146
|
if (!userAddress) {
|
|
3081
3147
|
return [
|
|
@@ -3090,7 +3156,7 @@ function ConnectedSteps({ userClient, initialUserAddress }) {
|
|
|
3090
3156
|
{
|
|
3091
3157
|
id: "wallet",
|
|
3092
3158
|
isComplete: true,
|
|
3093
|
-
content: (props) => /* @__PURE__ */
|
|
3159
|
+
content: (props) => /* @__PURE__ */ jsx41(Wallet, { ...props, userAddress })
|
|
3094
3160
|
}
|
|
3095
3161
|
];
|
|
3096
3162
|
if (!paymaster) {
|
|
@@ -3098,7 +3164,7 @@ function ConnectedSteps({ userClient, initialUserAddress }) {
|
|
|
3098
3164
|
steps2.push({
|
|
3099
3165
|
id: "gasBalance",
|
|
3100
3166
|
isComplete: !!hasGasBalance,
|
|
3101
|
-
content: (props) => /* @__PURE__ */
|
|
3167
|
+
content: (props) => /* @__PURE__ */ jsx41(GasBalance, { ...props, sessionAddress })
|
|
3102
3168
|
});
|
|
3103
3169
|
}
|
|
3104
3170
|
} else if (paymaster.type === "quarry") {
|
|
@@ -3106,27 +3172,27 @@ function ConnectedSteps({ userClient, initialUserAddress }) {
|
|
|
3106
3172
|
steps2.push({
|
|
3107
3173
|
id: "allowance",
|
|
3108
3174
|
isComplete: !!hasAllowance,
|
|
3109
|
-
content: (props) => /* @__PURE__ */
|
|
3175
|
+
content: (props) => /* @__PURE__ */ jsx41(Allowance, { ...props, userAddress })
|
|
3110
3176
|
});
|
|
3111
3177
|
} else {
|
|
3112
3178
|
steps2.push({
|
|
3113
3179
|
id: "gasBalanceQuarry",
|
|
3114
|
-
isComplete: !!
|
|
3115
|
-
content: (props) => /* @__PURE__ */
|
|
3180
|
+
isComplete: !!hasQuarryGasBalance,
|
|
3181
|
+
content: (props) => /* @__PURE__ */ jsx41(GasBalance2, { ...props, userAddress })
|
|
3116
3182
|
});
|
|
3117
3183
|
}
|
|
3118
3184
|
}
|
|
3119
3185
|
steps2.push({
|
|
3120
3186
|
id: "session",
|
|
3121
3187
|
isComplete: !!isSpender && !!hasDelegation,
|
|
3122
|
-
content: (props) => /* @__PURE__ */
|
|
3188
|
+
content: (props) => /* @__PURE__ */ jsx41(Session, { ...props, userClient, registerSpender: !isSpender, registerDelegation: !hasDelegation })
|
|
3123
3189
|
});
|
|
3124
3190
|
return steps2;
|
|
3125
3191
|
}, [
|
|
3126
3192
|
hasAllowance,
|
|
3127
3193
|
hasDelegation,
|
|
3128
3194
|
hasGasBalance,
|
|
3129
|
-
|
|
3195
|
+
hasQuarryGasBalance,
|
|
3130
3196
|
isSpender,
|
|
3131
3197
|
paymaster,
|
|
3132
3198
|
sessionAddress,
|
|
@@ -3138,7 +3204,7 @@ function ConnectedSteps({ userClient, initialUserAddress }) {
|
|
|
3138
3204
|
const completedSteps = steps.filter((step) => step.isComplete);
|
|
3139
3205
|
const activeStep = (selectedStepId != null ? steps.find((step) => step.id === selectedStepId) : null) ?? nextStep ?? (completedSteps.length < steps.length ? completedSteps.at(-1) : null);
|
|
3140
3206
|
const activeStepIndex = activeStep ? steps.indexOf(activeStep) : -1;
|
|
3141
|
-
return /* @__PURE__ */
|
|
3207
|
+
return /* @__PURE__ */ jsx41(
|
|
3142
3208
|
"div",
|
|
3143
3209
|
{
|
|
3144
3210
|
className: twMerge17(
|
|
@@ -3163,24 +3229,24 @@ function ConnectedSteps({ userClient, initialUserAddress }) {
|
|
|
3163
3229
|
}
|
|
3164
3230
|
return null;
|
|
3165
3231
|
}
|
|
3166
|
-
return /* @__PURE__ */
|
|
3232
|
+
return /* @__PURE__ */ jsx41("div", { className: twMerge17("py-8 flex flex-col justify-center", isActive ? "flex-grow" : null), children: /* @__PURE__ */ jsx41("div", { className: twMerge17("flex flex-col", isDisabled ? "opacity-30 pointer-events-none" : null), children: content }) }, step.id);
|
|
3167
3233
|
})
|
|
3168
3234
|
}
|
|
3169
3235
|
);
|
|
3170
3236
|
}
|
|
3171
3237
|
|
|
3172
3238
|
// src/AccountModalContent.tsx
|
|
3173
|
-
import { useRef as
|
|
3174
|
-
import { jsx as
|
|
3239
|
+
import { useRef as useRef6 } from "react";
|
|
3240
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3175
3241
|
function AccountModalContent() {
|
|
3176
3242
|
const { chainId } = useEntryKitConfig();
|
|
3177
3243
|
const userClient = useConnectorClient({ chainId });
|
|
3178
|
-
const { address: userAddress } =
|
|
3179
|
-
const initialUserAddress =
|
|
3244
|
+
const { address: userAddress } = useAccount7();
|
|
3245
|
+
const initialUserAddress = useRef6(userAddress);
|
|
3180
3246
|
if (userClient.status !== "success") {
|
|
3181
|
-
return /* @__PURE__ */
|
|
3247
|
+
return /* @__PURE__ */ jsx42(ConnectWallet, {});
|
|
3182
3248
|
}
|
|
3183
|
-
return /* @__PURE__ */
|
|
3249
|
+
return /* @__PURE__ */ jsx42(ConnectedSteps, { userClient: userClient.data, initialUserAddress: initialUserAddress.current });
|
|
3184
3250
|
}
|
|
3185
3251
|
|
|
3186
3252
|
// src/AccountModal.tsx
|
|
@@ -3189,17 +3255,17 @@ import { ErrorBoundary } from "react-error-boundary";
|
|
|
3189
3255
|
|
|
3190
3256
|
// src/errors/ErrorOverlay.tsx
|
|
3191
3257
|
import { wait } from "@latticexyz/common/utils";
|
|
3192
|
-
import { useEffect as
|
|
3258
|
+
import { useEffect as useEffect16 } from "react";
|
|
3193
3259
|
import { twMerge as twMerge18 } from "tailwind-merge";
|
|
3194
|
-
import { Fragment as Fragment8, jsx as
|
|
3260
|
+
import { Fragment as Fragment8, jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3195
3261
|
function ErrorOverlay({ error: error2, retry, dismiss }) {
|
|
3196
|
-
|
|
3262
|
+
useEffect16(() => {
|
|
3197
3263
|
if (error2) {
|
|
3198
3264
|
console.error(error2);
|
|
3199
3265
|
}
|
|
3200
3266
|
}, [error2]);
|
|
3201
3267
|
return /* @__PURE__ */ jsxs24("div", { className: "pointer-events-none absolute inset-0 overflow-clip", children: [
|
|
3202
|
-
/* @__PURE__ */
|
|
3268
|
+
/* @__PURE__ */ jsx43(
|
|
3203
3269
|
"div",
|
|
3204
3270
|
{
|
|
3205
3271
|
className: twMerge18(
|
|
@@ -3209,7 +3275,7 @@ function ErrorOverlay({ error: error2, retry, dismiss }) {
|
|
|
3209
3275
|
)
|
|
3210
3276
|
}
|
|
3211
3277
|
),
|
|
3212
|
-
/* @__PURE__ */
|
|
3278
|
+
/* @__PURE__ */ jsx43(
|
|
3213
3279
|
"div",
|
|
3214
3280
|
{
|
|
3215
3281
|
className: twMerge18(
|
|
@@ -3217,15 +3283,15 @@ function ErrorOverlay({ error: error2, retry, dismiss }) {
|
|
|
3217
3283
|
"transition duration-300",
|
|
3218
3284
|
error2 ? "translate-y-0 opacity-100 pointer-events-auto" : "-translate-y-4 opacity-0"
|
|
3219
3285
|
),
|
|
3220
|
-
children: error2 ? /* @__PURE__ */
|
|
3286
|
+
children: error2 ? /* @__PURE__ */ jsx43(Fragment8, { children: /* @__PURE__ */ jsxs24("div", { className: "w-full max-h-full bg-blue-700 text-white/80 overflow-auto", children: [
|
|
3221
3287
|
/* @__PURE__ */ jsxs24("div", { className: "space-y-6 px-8 pt-8", children: [
|
|
3222
|
-
/* @__PURE__ */
|
|
3223
|
-
/* @__PURE__ */
|
|
3224
|
-
/* @__PURE__ */
|
|
3288
|
+
/* @__PURE__ */ jsx43("div", { className: "text-white text-lg font-bold", children: "Oops! It broke :(" }),
|
|
3289
|
+
/* @__PURE__ */ jsx43("div", { className: "font-mono text-xs whitespace-pre-wrap", children: error2.message.trim() }),
|
|
3290
|
+
/* @__PURE__ */ jsx43("div", { className: "text-sm", children: "See the console for more info." })
|
|
3225
3291
|
] }),
|
|
3226
3292
|
/* @__PURE__ */ jsxs24("div", { className: "pointer-events-none sticky bottom-0 left-0 -mt-2", children: [
|
|
3227
|
-
/* @__PURE__ */
|
|
3228
|
-
retry ? /* @__PURE__ */
|
|
3293
|
+
/* @__PURE__ */ jsx43("div", { className: "w-full h-12 bg-gradient-to-b from-transparent to-blue-700" }),
|
|
3294
|
+
retry ? /* @__PURE__ */ jsx43("div", { className: "bg-blue-700 text-center", children: /* @__PURE__ */ jsxs24(
|
|
3229
3295
|
"button",
|
|
3230
3296
|
{
|
|
3231
3297
|
type: "button",
|
|
@@ -3244,11 +3310,11 @@ function ErrorOverlay({ error: error2, retry, dismiss }) {
|
|
|
3244
3310
|
}
|
|
3245
3311
|
},
|
|
3246
3312
|
children: [
|
|
3247
|
-
/* @__PURE__ */
|
|
3248
|
-
/* @__PURE__ */
|
|
3313
|
+
/* @__PURE__ */ jsx43("span", { className: "group-aria-busy:hidden", children: "Retry" }),
|
|
3314
|
+
/* @__PURE__ */ jsx43("span", { className: "hidden group-aria-busy:inline", children: "Retrying\u2026" })
|
|
3249
3315
|
]
|
|
3250
3316
|
}
|
|
3251
|
-
) }) : dismiss ? /* @__PURE__ */
|
|
3317
|
+
) }) : dismiss ? /* @__PURE__ */ jsx43("div", { className: "bg-blue-700 text-center", children: /* @__PURE__ */ jsx43(
|
|
3252
3318
|
"button",
|
|
3253
3319
|
{
|
|
3254
3320
|
type: "button",
|
|
@@ -3270,24 +3336,24 @@ function ErrorOverlay({ error: error2, retry, dismiss }) {
|
|
|
3270
3336
|
}
|
|
3271
3337
|
|
|
3272
3338
|
// src/errors/ErrorFallback.tsx
|
|
3273
|
-
import { jsx as
|
|
3339
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
3274
3340
|
function ErrorFallback({ error: error2, resetErrorBoundary }) {
|
|
3275
|
-
return /* @__PURE__ */
|
|
3341
|
+
return /* @__PURE__ */ jsx44("div", { className: "h-64", children: /* @__PURE__ */ jsx44(ErrorOverlay, { error: error2, retry: resetErrorBoundary }) });
|
|
3276
3342
|
}
|
|
3277
3343
|
|
|
3278
3344
|
// src/errors/ErrorsOverlay.tsx
|
|
3279
3345
|
import { useStore as useStore3 } from "zustand";
|
|
3280
|
-
import { jsx as
|
|
3346
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
3281
3347
|
function ErrorsOverlay() {
|
|
3282
3348
|
const error2 = useStore3(store3, (state) => state.errors.at(0));
|
|
3283
|
-
return /* @__PURE__ */
|
|
3349
|
+
return /* @__PURE__ */ jsx45(ErrorOverlay, { error: error2?.error, retry: error2?.retry, dismiss: error2?.dismiss });
|
|
3284
3350
|
}
|
|
3285
3351
|
|
|
3286
3352
|
// src/AccountModal.tsx
|
|
3287
|
-
import { jsx as
|
|
3353
|
+
import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3288
3354
|
function AccountModal() {
|
|
3289
3355
|
const { accountModalOpen, toggleAccountModal } = useAccountModal();
|
|
3290
|
-
return /* @__PURE__ */
|
|
3356
|
+
return /* @__PURE__ */ jsx46(Modal, { open: accountModalOpen, onOpenChange: toggleAccountModal, children: accountModalOpen ? /* @__PURE__ */ jsxs25(
|
|
3291
3357
|
"div",
|
|
3292
3358
|
{
|
|
3293
3359
|
className: twMerge19(
|
|
@@ -3299,8 +3365,8 @@ function AccountModal() {
|
|
|
3299
3365
|
),
|
|
3300
3366
|
children: [
|
|
3301
3367
|
/* @__PURE__ */ jsxs25(ErrorBoundary, { FallbackComponent: ErrorFallback, children: [
|
|
3302
|
-
/* @__PURE__ */
|
|
3303
|
-
/* @__PURE__ */
|
|
3368
|
+
/* @__PURE__ */ jsx46(AccountModalContent, {}),
|
|
3369
|
+
/* @__PURE__ */ jsx46(ErrorsOverlay, {})
|
|
3304
3370
|
] }),
|
|
3305
3371
|
/* @__PURE__ */ jsxs25(
|
|
3306
3372
|
"a",
|
|
@@ -3310,12 +3376,12 @@ function AccountModal() {
|
|
|
3310
3376
|
rel: "noreferrer noopener",
|
|
3311
3377
|
className: "group self-center p-3 flex items-center justify-center gap-2 links-unset text-sm font-mono transition text-neutral-400 hover:text-white",
|
|
3312
3378
|
children: [
|
|
3313
|
-
/* @__PURE__ */
|
|
3314
|
-
/* @__PURE__ */
|
|
3379
|
+
/* @__PURE__ */ jsx46("span", { className: "block w-4 h-4", children: /* @__PURE__ */ jsx46(Logo, { className: "w-full h-full text-orange-500 group-hover:rotate-90 transition duration-300" }) }),
|
|
3380
|
+
/* @__PURE__ */ jsx46("span", { children: "Powered by MUD" })
|
|
3315
3381
|
]
|
|
3316
3382
|
}
|
|
3317
3383
|
),
|
|
3318
|
-
/* @__PURE__ */
|
|
3384
|
+
/* @__PURE__ */ jsx46("div", { className: "absolute top-0 right-0", children: /* @__PURE__ */ jsx46(
|
|
3319
3385
|
DialogClose,
|
|
3320
3386
|
{
|
|
3321
3387
|
className: twMerge19(
|
|
@@ -3323,7 +3389,7 @@ function AccountModal() {
|
|
|
3323
3389
|
"text-white/20 hover:text-white/40"
|
|
3324
3390
|
),
|
|
3325
3391
|
title: "Close",
|
|
3326
|
-
children: /* @__PURE__ */
|
|
3392
|
+
children: /* @__PURE__ */ jsx46(CloseIcon, { className: "m-0" })
|
|
3327
3393
|
}
|
|
3328
3394
|
) })
|
|
3329
3395
|
]
|
|
@@ -3332,27 +3398,27 @@ function AccountModal() {
|
|
|
3332
3398
|
}
|
|
3333
3399
|
|
|
3334
3400
|
// src/EntryKitProvider.tsx
|
|
3335
|
-
import { jsx as
|
|
3401
|
+
import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3336
3402
|
function EntryKitProvider({ config, children }) {
|
|
3337
3403
|
return /* @__PURE__ */ jsxs26(EntryKitConfigProvider, { config, children: [
|
|
3338
3404
|
children,
|
|
3339
|
-
/* @__PURE__ */
|
|
3405
|
+
/* @__PURE__ */ jsx47(AccountModal, {})
|
|
3340
3406
|
] });
|
|
3341
3407
|
}
|
|
3342
3408
|
|
|
3343
3409
|
// src/AccountButton.tsx
|
|
3344
|
-
import { useAccount as
|
|
3410
|
+
import { useAccount as useAccount8 } from "wagmi";
|
|
3345
3411
|
import { twMerge as twMerge21 } from "tailwind-merge";
|
|
3346
3412
|
|
|
3347
3413
|
// src/AccountName.tsx
|
|
3348
3414
|
import { twMerge as twMerge20 } from "tailwind-merge";
|
|
3349
|
-
import { Fragment as Fragment9, jsx as
|
|
3415
|
+
import { Fragment as Fragment9, jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3350
3416
|
function AccountName({ address }) {
|
|
3351
3417
|
const { data: ens } = useENS(address);
|
|
3352
3418
|
const avatar = usePreloadImage(ens?.avatar);
|
|
3353
3419
|
return /* @__PURE__ */ jsxs27(Fragment9, { children: [
|
|
3354
3420
|
/* @__PURE__ */ jsxs27("span", { className: "flex-shrink-0 w-6 h-6 -my-1 -mx-0.5 grid place-items-center", children: [
|
|
3355
|
-
/* @__PURE__ */
|
|
3421
|
+
/* @__PURE__ */ jsx48(
|
|
3356
3422
|
"img",
|
|
3357
3423
|
{
|
|
3358
3424
|
src: ens?.avatar && avatar.isSuccess ? ens.avatar : void 0,
|
|
@@ -3364,7 +3430,7 @@ function AccountName({ address }) {
|
|
|
3364
3430
|
)
|
|
3365
3431
|
}
|
|
3366
3432
|
),
|
|
3367
|
-
/* @__PURE__ */
|
|
3433
|
+
/* @__PURE__ */ jsx48(
|
|
3368
3434
|
Logo,
|
|
3369
3435
|
{
|
|
3370
3436
|
className: twMerge20(
|
|
@@ -3375,13 +3441,13 @@ function AccountName({ address }) {
|
|
|
3375
3441
|
}
|
|
3376
3442
|
)
|
|
3377
3443
|
] }),
|
|
3378
|
-
/* @__PURE__ */
|
|
3444
|
+
/* @__PURE__ */ jsx48("span", { className: "flex-grow", children: ens?.name ?? /* @__PURE__ */ jsx48(TruncatedHex, { hex: address }) })
|
|
3379
3445
|
] });
|
|
3380
3446
|
}
|
|
3381
3447
|
|
|
3382
3448
|
// src/AccountButton.tsx
|
|
3383
|
-
import { useRef as
|
|
3384
|
-
import { jsx as
|
|
3449
|
+
import { useRef as useRef7 } from "react";
|
|
3450
|
+
import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3385
3451
|
var containerClassNames = twMerge21(
|
|
3386
3452
|
"w-48 p-3 inline-flex outline-none transition",
|
|
3387
3453
|
"border border-transparent",
|
|
@@ -3396,8 +3462,8 @@ var secondaryInteractiveClassNames = twMerge21(
|
|
|
3396
3462
|
);
|
|
3397
3463
|
function AccountButton() {
|
|
3398
3464
|
const { openAccountModal, accountModalOpen } = useAccountModal();
|
|
3399
|
-
const { status, address: userAddress } =
|
|
3400
|
-
const initialUserAddress =
|
|
3465
|
+
const { status, address: userAddress } = useAccount8();
|
|
3466
|
+
const initialUserAddress = useRef7(userAddress);
|
|
3401
3467
|
const prereqs = usePrerequisites(userAddress);
|
|
3402
3468
|
const isConnected = status === "connected" || status === "reconnecting" && userAddress;
|
|
3403
3469
|
const isNewConnection = userAddress !== initialUserAddress.current;
|
|
@@ -3409,13 +3475,13 @@ function AccountButton() {
|
|
|
3409
3475
|
}
|
|
3410
3476
|
return "Sign in";
|
|
3411
3477
|
})();
|
|
3412
|
-
return /* @__PURE__ */
|
|
3478
|
+
return /* @__PURE__ */ jsx49(Shadow, { mode: "child", children: isSignedIn ? /* @__PURE__ */ jsx49(
|
|
3413
3479
|
"button",
|
|
3414
3480
|
{
|
|
3415
3481
|
type: "button",
|
|
3416
3482
|
className: twMerge21(containerClassNames, secondaryClassNames, secondaryInteractiveClassNames),
|
|
3417
3483
|
onClick: openAccountModal,
|
|
3418
|
-
children: /* @__PURE__ */
|
|
3484
|
+
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 })
|
|
3419
3485
|
},
|
|
3420
3486
|
"connected"
|
|
3421
3487
|
) : /* @__PURE__ */ jsxs28(
|
|
@@ -3434,7 +3500,7 @@ function AccountButton() {
|
|
|
3434
3500
|
onClick: openAccountModal,
|
|
3435
3501
|
children: [
|
|
3436
3502
|
/* @__PURE__ */ jsxs28("span", { className: "pointer-events-none inline-grid place-items-center -ml-3", children: [
|
|
3437
|
-
/* @__PURE__ */
|
|
3503
|
+
/* @__PURE__ */ jsx49(
|
|
3438
3504
|
"span",
|
|
3439
3505
|
{
|
|
3440
3506
|
className: twMerge21(
|
|
@@ -3442,10 +3508,10 @@ function AccountButton() {
|
|
|
3442
3508
|
"scale-100 opacity-100 transition duration-300",
|
|
3443
3509
|
"group-aria-busy:scale-125 group-aria-busy:opacity-0"
|
|
3444
3510
|
),
|
|
3445
|
-
children: /* @__PURE__ */
|
|
3511
|
+
children: /* @__PURE__ */ jsx49(Logo, {})
|
|
3446
3512
|
}
|
|
3447
3513
|
),
|
|
3448
|
-
/* @__PURE__ */
|
|
3514
|
+
/* @__PURE__ */ jsx49(
|
|
3449
3515
|
"span",
|
|
3450
3516
|
{
|
|
3451
3517
|
"aria-hidden": true,
|
|
@@ -3454,11 +3520,11 @@ function AccountButton() {
|
|
|
3454
3520
|
"scale-50 opacity-0 transition duration-300 delay-50",
|
|
3455
3521
|
"group-aria-busy:scale-100 group-aria-busy:opacity-100"
|
|
3456
3522
|
),
|
|
3457
|
-
children: /* @__PURE__ */
|
|
3523
|
+
children: /* @__PURE__ */ jsx49(PendingIcon, {})
|
|
3458
3524
|
}
|
|
3459
3525
|
)
|
|
3460
3526
|
] }),
|
|
3461
|
-
/* @__PURE__ */
|
|
3527
|
+
/* @__PURE__ */ jsx49("span", { className: "font-medium", children: buttonLabel })
|
|
3462
3528
|
]
|
|
3463
3529
|
},
|
|
3464
3530
|
"sign in"
|
|
@@ -3480,44 +3546,18 @@ function useSessionClientReady() {
|
|
|
3480
3546
|
}
|
|
3481
3547
|
|
|
3482
3548
|
// src/createWagmiConfig.ts
|
|
3483
|
-
import { connectorsForWallets } from "@rainbow-me/rainbowkit";
|
|
3484
3549
|
import { createConfig } from "wagmi";
|
|
3485
|
-
|
|
3486
|
-
// src/getWallets.ts
|
|
3487
|
-
import { getDefaultWallets } from "@rainbow-me/rainbowkit";
|
|
3488
|
-
function getWallets(_config) {
|
|
3489
|
-
const { wallets: defaultWallets } = getDefaultWallets();
|
|
3490
|
-
return [
|
|
3491
|
-
// TODO: passkey wallet
|
|
3492
|
-
...defaultWallets
|
|
3493
|
-
];
|
|
3494
|
-
}
|
|
3495
|
-
|
|
3496
|
-
// src/createWagmiConfig.ts
|
|
3550
|
+
import { getDefaultConfig } from "connectkit";
|
|
3497
3551
|
function createWagmiConfig(config) {
|
|
3498
|
-
const
|
|
3499
|
-
const connectors = connectorsForWallets(wallets, {
|
|
3500
|
-
appName: config.appName,
|
|
3501
|
-
projectId: config.walletConnectProjectId
|
|
3502
|
-
});
|
|
3503
|
-
return createConfig({
|
|
3504
|
-
connectors,
|
|
3552
|
+
const configParams = getDefaultConfig({
|
|
3505
3553
|
chains: config.chains,
|
|
3506
3554
|
transports: config.transports,
|
|
3507
|
-
pollingInterval: config.pollingInterval
|
|
3508
|
-
});
|
|
3509
|
-
}
|
|
3510
|
-
|
|
3511
|
-
// src/getConnectors.ts
|
|
3512
|
-
import { connectorsForWallets as connectorsForWallets2 } from "@rainbow-me/rainbowkit";
|
|
3513
|
-
function getConnectors({
|
|
3514
|
-
wallets,
|
|
3515
|
-
...config
|
|
3516
|
-
}) {
|
|
3517
|
-
return connectorsForWallets2(wallets ?? getWallets(config), {
|
|
3555
|
+
pollingInterval: config.pollingInterval,
|
|
3518
3556
|
appName: config.appName,
|
|
3519
|
-
|
|
3557
|
+
walletConnectProjectId: config.walletConnectProjectId,
|
|
3558
|
+
enableFamily: false
|
|
3520
3559
|
});
|
|
3560
|
+
return createConfig(configParams);
|
|
3521
3561
|
}
|
|
3522
3562
|
|
|
3523
3563
|
// src/validateSigner.ts
|
|
@@ -3568,8 +3608,6 @@ export {
|
|
|
3568
3608
|
EntryKitProvider,
|
|
3569
3609
|
createWagmiConfig,
|
|
3570
3610
|
defineConfig,
|
|
3571
|
-
getConnectors,
|
|
3572
|
-
getWallets,
|
|
3573
3611
|
internal_validateSigner,
|
|
3574
3612
|
useAccountModal,
|
|
3575
3613
|
useEntryKitConfig,
|