@instantdb/components 0.22.171 → 0.22.172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +7 -7
- package/dist/components/ui.d.ts +9 -0
- package/dist/components/ui.d.ts.map +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +846 -738
- package/dist/style.css +1 -1
- package/package.json +6 -6
- package/src/components/ui.tsx +87 -2
package/dist/index.js
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { jsxs as h, jsx as r, Fragment as
|
|
2
|
-
import { toast as Nt, Toaster as
|
|
3
|
-
import { Toaster as
|
|
4
|
-
import { VisuallyHidden as
|
|
5
|
-
import { Editor as
|
|
1
|
+
import { jsxs as h, jsx as r, Fragment as B } from "react/jsx-runtime";
|
|
2
|
+
import { toast as Nt, Toaster as fa } from "sonner";
|
|
3
|
+
import { Toaster as tl, toast as rl } from "sonner";
|
|
4
|
+
import { VisuallyHidden as ma } from "@radix-ui/react-visually-hidden";
|
|
5
|
+
import { Editor as ba, DiffEditor as wa } from "@monaco-editor/react";
|
|
6
6
|
import _e from "clsx";
|
|
7
7
|
import We from "copy-to-clipboard";
|
|
8
|
-
import He, { useMemo as
|
|
9
|
-
import { twMerge as
|
|
10
|
-
import * as
|
|
11
|
-
import { ChevronDownIcon as Et, ChevronRightIcon as
|
|
12
|
-
import { createPortal as
|
|
13
|
-
import
|
|
14
|
-
import { InstantAPIError as
|
|
15
|
-
import { add as
|
|
16
|
-
import { ArrowLeftIcon as ct, PencilSquareIcon as
|
|
17
|
-
import { id as qe, tx as
|
|
18
|
-
import { useSensors as
|
|
19
|
-
import { markdownTable as
|
|
20
|
-
import { mkConfig as
|
|
21
|
-
import { restrictToHorizontalAxis as
|
|
22
|
-
import { useSortable as
|
|
23
|
-
import { flexRender as lt, useReactTable as
|
|
24
|
-
import { ArrowLeftIcon as
|
|
25
|
-
import { Combobox as
|
|
26
|
-
import { debounce as
|
|
27
|
-
import { CSS as
|
|
8
|
+
import He, { useMemo as se, useState as C, useEffect as P, useRef as X, useCallback as ot, useSyncExternalStore as va, useLayoutEffect as yt, Component as dr, createContext as cr, useContext as dt, useId as ur, createElement as ya, Fragment as ka } from "react";
|
|
9
|
+
import { twMerge as xa } from "tailwind-merge";
|
|
10
|
+
import * as J from "@radix-ui/react-select";
|
|
11
|
+
import { ChevronDownIcon as Et, ChevronRightIcon as Sa, ArrowUturnLeftIcon as Na, ArrowPathIcon as Ea, ClockIcon as pr, ArrowUpIcon as Ca, ArrowDownIcon as Ia, ArrowsUpDownIcon as Aa, Cog6ToothIcon as Ra, XMarkIcon as gr, PencilSquareIcon as Ta, ArrowUpOnSquareIcon as Oa, TrashIcon as _a, ExclamationTriangleIcon as Da, CheckIcon as La, ChevronUpIcon as Fa, InformationCircleIcon as $a } from "@heroicons/react/24/outline";
|
|
12
|
+
import { createPortal as ja } from "react-dom";
|
|
13
|
+
import za, { useSWRConfig as hr } from "swr";
|
|
14
|
+
import { InstantAPIError as Ba, id as Be, coerceToDate as Ma, tx as Ua } from "@instantdb/core";
|
|
15
|
+
import { add as fr, formatDistanceToNow as mr, format as Pa } from "date-fns";
|
|
16
|
+
import { ArrowLeftIcon as ct, PencilSquareIcon as qa, TrashIcon as it, PlusIcon as br, ArrowUturnLeftIcon as Ve, ArrowPathIcon as Ga, InformationCircleIcon as Ha, Cog8ToothIcon as Wa, ChevronLeftIcon as Va, Bars3Icon as Ya, XMarkIcon as Ka, EyeSlashIcon as wr, EyeIcon as vr, ClipboardDocumentIcon as Ct, CheckCircleIcon as Xa } from "@heroicons/react/24/solid";
|
|
17
|
+
import { id as qe, tx as Za, init as Qa } from "@instantdb/react";
|
|
18
|
+
import { useSensors as Ja, useSensor as wt, MouseSensor as en, TouchSensor as tn, KeyboardSensor as rn, DndContext as an, closestCenter as nn } from "@dnd-kit/core";
|
|
19
|
+
import { markdownTable as on } from "markdown-table";
|
|
20
|
+
import { mkConfig as ln, generateCsv as sn, download as dn } from "export-to-csv";
|
|
21
|
+
import { restrictToHorizontalAxis as cn } from "@dnd-kit/modifiers";
|
|
22
|
+
import { useSortable as yr, SortableContext as Ht, horizontalListSortingStrategy as Wt, arrayMove as un } from "@dnd-kit/sortable";
|
|
23
|
+
import { flexRender as lt, useReactTable as pn, getCoreRowModel as gn } from "@tanstack/react-table";
|
|
24
|
+
import { ArrowLeftIcon as Vt, PlusIcon as hn, ArrowRightIcon as fn, Table as mn, FileDown as bn, CurlyBraces as wn, ArrowRightFromLine as vn, XIcon as yn } from "lucide-react";
|
|
25
|
+
import { Combobox as kr, ComboboxInput as xr, ComboboxOptions as Sr, ComboboxOption as Nr, useClose as Ye, Popover as kn, PopoverButton as xn, PopoverPanel as Sn } from "@headlessui/react";
|
|
26
|
+
import { debounce as Nn, last as En, isObject as Se } from "lodash";
|
|
27
|
+
import { CSS as Er } from "@dnd-kit/utilities";
|
|
28
28
|
import "swr/subscription";
|
|
29
|
-
import * as
|
|
30
|
-
import { validate as
|
|
29
|
+
import * as ne from "@radix-ui/react-tooltip";
|
|
30
|
+
import { validate as Cn } from "uuid";
|
|
31
31
|
import * as Te from "@radix-ui/react-dialog";
|
|
32
|
-
import
|
|
32
|
+
import In from "json5";
|
|
33
33
|
import * as Oe from "@radix-ui/react-dropdown-menu";
|
|
34
|
-
import * as
|
|
35
|
-
import
|
|
36
|
-
import * as
|
|
37
|
-
const xn = `/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-600:oklch(64.6% .222 41.116);--color-amber-500:oklch(76.9% .188 70.08);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-slate-100:oklch(96.8% .007 247.896);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-neutral-50:oklch(98.5% 0 0);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-400:oklch(70.8% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-600:oklch(43.9% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-neutral-950:oklch(14.5% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-xs:4px;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before,::backdrop{border-color:#e5e7eb}::file-selector-button{border-color:#e5e7eb}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:#6a7282;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#155dfc;outline:2px solid #0000}input::placeholder,textarea::placeholder{color:#6a7282;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-date-and-time-value{text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{print-color-adjust:exact;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{appearance:none;print-color-adjust:exact;vertical-align:middle;-webkit-user-select:none;user-select:none;color:#155dfc;--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:#6a7282;flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}@media (forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.top-\\[18px\\]{top:18px}.top-\\[50\\%\\]{top:50%}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-\\[50\\%\\]{left:50%}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-100{z-index:100}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-2{margin-inline:calc(var(--spacing)*2)}.my-1{margin-block:calc(var(--spacing)*1)}.my-2{margin-block:calc(var(--spacing)*2)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-8{margin-top:calc(var(--spacing)*8)}.mr-0\\.5{margin-right:calc(var(--spacing)*.5)}.mr-4{margin-right:calc(var(--spacing)*4)}.mr-8{margin-right:calc(var(--spacing)*8)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.-ml-0\\.5{margin-left:calc(var(--spacing)*-.5)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-3\\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.h-\\(--radix-select-trigger-height\\){height:var(--radix-select-trigger-height)}.h-1{height:calc(var(--spacing)*1)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-12{height:calc(var(--spacing)*12)}.h-32{height:calc(var(--spacing)*32)}.h-64{height:calc(var(--spacing)*64)}.h-\\[1\\.15rem\\]{height:1.15rem}.h-full{height:100%}.h-px{height:1px}.max-h-\\(--radix-select-content-available-height\\){max-height:var(--radix-select-content-available-height)}.max-h-\\[25vh\\]{max-height:25vh}.max-h-\\[calc\\(100\\%-2rem\\)\\]{max-height:calc(100% - 2rem)}.max-h-full{max-height:100%}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\\[30vh\\]{min-height:30vh}.min-h-\\[34px\\]{min-height:34px}.min-h-full{min-height:100%}.w-\\(--input-width\\){width:var(--input-width)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-12{width:calc(var(--spacing)*12)}.w-24{width:calc(var(--spacing)*24)}.w-48{width:calc(var(--spacing)*48)}.w-\\[30px\\]{width:30px}.w-\\[62px\\]{width:62px}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.max-w-\\[67vw\\]{max-width:67vw}.max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 2rem)}.max-w-fit{max-width:fit-content}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-xl{max-width:var(--container-xl)}.min-w-\\(--radix-select-trigger-width\\){min-width:var(--radix-select-trigger-width)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-32{min-width:calc(var(--spacing)*32)}.min-w-48{min-width:calc(var(--spacing)*48)}.min-w-\\[200px\\]{min-width:200px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-\\(--radix-select-content-transform-origin\\){transform-origin:var(--radix-select-content-transform-origin)}.origin-\\(--radix-tooltip-content-transform-origin\\){transform-origin:var(--radix-tooltip-content-transform-origin)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0\\.5{--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-rotate-45{rotate:-45deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.resize{resize:both}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-around{justify-content:space-around}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1{column-gap:calc(var(--spacing)*1)}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-visible{overflow:visible}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#606AF4\\]{border-color:#606af4}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-300\\/80{border-color:#d1d5dccc}@supports (color:color-mix(in lab,red,red)){.border-gray-300\\/80{border-color:color-mix(in oklab,var(--color-gray-300)80%,transparent)}}.border-gray-500{border-color:var(--color-gray-500)}.border-neutral-200{border-color:var(--color-neutral-200)}.border-neutral-300{border-color:var(--color-neutral-300)}.border-red-200{border-color:var(--color-red-200)}.border-red-500{border-color:var(--color-red-500)}.border-transparent{border-color:#0000}.border-r-gray-200{border-right-color:var(--color-gray-200)}.border-b-gray-200{border-bottom-color:var(--color-gray-200)}.border-l-red-500{border-left-color:var(--color-red-500)}.bg-\\[\\#606AF4\\]{background-color:#606af4}.bg-\\[\\#616AF4\\]{background-color:#616af4}.bg-\\[\\#4543e9\\]{background-color:#4543e9}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-neutral-200{background-color:var(--color-neutral-200)}.bg-neutral-300{background-color:var(--color-neutral-300)}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-600{background-color:var(--color-orange-600)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-200{background-color:var(--color-red-200)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-linear-to-l{--tw-gradient-position:to left}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-l{--tw-gradient-position:to left in oklab}}.bg-linear-to-l{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-r{--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r{--tw-gradient-position:to right in oklab}}.bg-linear-to-r{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-none{background-image:none}.from-black\\/10{--tw-gradient-from:#0000001a}@supports (color:color-mix(in lab,red,red)){.from-black\\/10{--tw-gradient-from:color-mix(in oklab,var(--color-black)10%,transparent)}}.from-black\\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-black\\/20{--tw-gradient-from:#0003}@supports (color:color-mix(in lab,red,red)){.from-black\\/20{--tw-gradient-from:color-mix(in oklab,var(--color-black)20%,transparent)}}.from-black\\/20{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-black\\/0{--tw-gradient-via:#0000}@supports (color:color-mix(in lab,red,red)){.via-black\\/0{--tw-gradient-via:color-mix(in oklab,var(--color-black)0%,transparent)}}.via-black\\/0{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/5{--tw-gradient-via:#0000000d}@supports (color:color-mix(in lab,red,red)){.via-black\\/5{--tw-gradient-via:color-mix(in oklab,var(--color-black)5%,transparent)}}.via-black\\/5{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.p-0{padding:calc(var(--spacing)*0)}.p-0\\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.pt-1\\.5{padding-top:calc(var(--spacing)*1.5)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-5{padding-right:calc(var(--spacing)*5)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-6{padding-left:calc(var(--spacing)*6)}.pl-24{padding-left:calc(var(--spacing)*24)}.text-center{text-align:center}.text-left{text-align:left}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-balance{text-wrap:balance}.wrap-break-word{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[\\#606AF4\\]{color:#606af4}.text-\\[\\#2563EB\\]{color:#2563eb}.text-blue-800{color:var(--color-blue-800)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-700{color:var(--color-neutral-700)}.text-neutral-950{color:var(--color-neutral-950)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-\\[\\#606AF4\\]{--tw-ring-color:#606af4}.ring-gray-300{--tw-ring-color:var(--color-gray-300)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.blur{--tw-blur:blur(8px);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,)}.blur-sm{--tw-blur:blur(var(--blur-sm));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,)}.filter{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,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.content-\\[hi\\]{--tw-content:hi;content:var(--tw-content)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.group-hover\\:text-amber-500:is(:where(.group):hover *){color:var(--color-amber-500)}.group-hover\\:opacity-70:is(:where(.group):hover *){opacity:.7}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.file\\:rounded-xs::file-selector-button{border-radius:var(--radius-xs)}.file\\:border-none::file-selector-button{--tw-border-style:none;border-style:none}.file\\:border-neutral-200::file-selector-button{border-color:var(--color-neutral-200)}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:p-2::file-selector-button{padding:calc(var(--spacing)*2)}.file\\:pt-1::file-selector-button{padding-top:calc(var(--spacing)*1)}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:shadow-none::file-selector-button{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}.placeholder\\:text-neutral-500::placeholder{color:var(--color-neutral-500)}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.empty\\:invisible:empty{visibility:hidden}.focus-within\\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:ring-blue-700:focus-within{--tw-ring-color:var(--color-blue-700)}@media (hover:hover){.hover\\:cursor-col-resize:hover{cursor:col-resize}.hover\\:cursor-grab:hover{cursor:grab}.hover\\:border-red-300:hover{border-color:var(--color-red-300)}.hover\\:bg-\\[\\#4543E9\\]:hover,.hover\\:bg-\\[\\#4543e9\\]:hover{background-color:#4543e9}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-gray-50\\/30:hover{background-color:#f9fafb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-gray-50\\/30:hover{background-color:color-mix(in oklab,var(--color-gray-50)30%,transparent)}}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-200\\/30:hover{background-color:#e5e7eb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-gray-200\\/30:hover{background-color:color-mix(in oklab,var(--color-gray-200)30%,transparent)}}.hover\\:bg-gray-200\\/50:hover{background-color:#e5e7eb80}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-gray-200\\/50:hover{background-color:color-mix(in oklab,var(--color-gray-200)50%,transparent)}}.hover\\:bg-neutral-100:hover{background-color:var(--color-neutral-100)}.hover\\:bg-neutral-300:hover{background-color:var(--color-neutral-300)}.hover\\:bg-orange-500:hover{background-color:var(--color-orange-500)}.hover\\:text-black:hover{color:var(--color-black)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-gray-700:hover{color:var(--color-gray-700)}.hover\\:text-red-600:hover{color:var(--color-red-600)}.hover\\:text-slate-100:hover{color:var(--color-slate-100)}.hover\\:opacity-100:hover{opacity:1}}.focus\\:bg-neutral-100:focus{background-color:var(--color-neutral-100)}.focus\\:text-neutral-900:focus{color:var(--color-neutral-900)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-\\[\\#606AF4\\]:focus{--tw-ring-color:#606af4}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-neutral-950:focus-visible{--tw-ring-color:var(--color-neutral-950)}.focus-visible\\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.active\\:cursor-grabbing:active{cursor:grabbing}@media (hover:hover){.hover\\:enabled\\:border-red-300:hover:enabled{border-color:var(--color-red-300)}.hover\\:enabled\\:bg-\\[\\#4543e9\\]:hover:enabled{background-color:#4543e9}.hover\\:enabled\\:bg-gray-50\\/30:hover:enabled{background-color:#f9fafb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:enabled\\:bg-gray-50\\/30:hover:enabled{background-color:color-mix(in oklab,var(--color-gray-50)30%,transparent)}}.hover\\:enabled\\:bg-gray-200\\/30:hover:enabled{background-color:#e5e7eb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:enabled\\:bg-gray-200\\/30:hover:enabled{background-color:color-mix(in oklab,var(--color-gray-200)30%,transparent)}}.hover\\:enabled\\:bg-orange-500:hover:enabled{background-color:var(--color-orange-500)}.hover\\:enabled\\:text-gray-600:hover:enabled{color:var(--color-gray-600)}.hover\\:enabled\\:text-red-600:hover:enabled{color:var(--color-red-600)}.hover\\:enabled\\:text-slate-100:hover:enabled{color:var(--color-slate-100)}}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{border-color:var(--color-gray-300)}.disabled\\:border-red-50:disabled{border-color:var(--color-red-50)}.disabled\\:bg-\\[\\#9197f3\\]:disabled{background-color:#9197f3}.disabled\\:bg-gray-200:disabled{background-color:var(--color-gray-200)}.disabled\\:text-gray-400:disabled{color:var(--color-gray-400)}.disabled\\:text-red-300:disabled{color:var(--color-red-300)}.disabled\\:opacity-20:disabled{opacity:.2}.disabled\\:opacity-50:disabled{opacity:.5}.data-disabled\\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\\:opacity-50[data-disabled]{opacity:.5}.data-focus\\:bg-blue-100[data-focus]{background-color:var(--color-blue-100)}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[size\\=default\\]\\:h-9[data-size=default]{height:calc(var(--spacing)*9)}.data-\\[size\\=sm\\]\\:h-8[data-size=sm]{height:calc(var(--spacing)*8)}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:flex>*)[data-slot=select-value]{display:flex}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\\[state\\=checked\\]\\:translate-x-\\[calc\\(100\\%-2px\\)\\][data-state=checked]{--tw-translate-x: calc(100% - 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[state\\=checked\\]\\:bg-neutral-800[data-state=checked]{background-color:var(--color-neutral-800)}.data-\\[state\\=checked\\]\\:bg-white[data-state=checked]{background-color:var(--color-white)}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[state\\=unchecked\\]\\:bg-neutral-300[data-state=unchecked]{background-color:var(--color-neutral-300)}@media (min-width:40rem){.sm\\:max-w-lg{max-width:var(--container-lg)}}@media (min-width:48rem){.md\\:static{position:static}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:flex-row{flex-direction:row}.md\\:items-center{align-items:center}.md\\:justify-start{justify-content:flex-start}.md\\:gap-2{gap:calc(var(--spacing)*2)}.md\\:border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.md\\:shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}:where(.dark\\:divide-neutral-700:where(.dark,.dark *)>:not(:last-child)){border-color:var(--color-neutral-700)}.dark\\:border:where(.dark,.dark *){border-style:var(--tw-border-style);border-width:1px}.dark\\:border-neutral-500:where(.dark,.dark *){border-color:var(--color-neutral-500)}.dark\\:border-neutral-600:where(.dark,.dark *){border-color:var(--color-neutral-600)}.dark\\:border-neutral-700:where(.dark,.dark *){border-color:var(--color-neutral-700)}.dark\\:border-neutral-800:where(.dark,.dark *){border-color:var(--color-neutral-800)}.dark\\:border-red-900\\/60:where(.dark,.dark *){border-color:#82181a99}@supports (color:color-mix(in lab,red,red)){.dark\\:border-red-900\\/60:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-red-900)60%,transparent)}}.dark\\:border-y-neutral-700:where(.dark,.dark *){border-block-color:var(--color-neutral-700)}.dark\\:border-y-neutral-800:where(.dark,.dark *){border-block-color:var(--color-neutral-800)}.dark\\:border-t-neutral-700:where(.dark,.dark *){border-top-color:var(--color-neutral-700)}.dark\\:border-r-neutral-700:where(.dark,.dark *){border-right-color:var(--color-neutral-700)}.dark\\:border-b-neutral-600:where(.dark,.dark *){border-bottom-color:var(--color-neutral-600)}.dark\\:border-b-neutral-700:where(.dark,.dark *){border-bottom-color:var(--color-neutral-700)}.dark\\:border-l-neutral-700:where(.dark,.dark *){border-left-color:var(--color-neutral-700)}.dark\\:bg-\\[\\#606AF4\\]:where(.dark,.dark *){background-color:#606af4}.dark\\:bg-\\[\\#252525\\]:where(.dark,.dark *){background-color:#252525}.dark\\:bg-\\[\\#303030\\]:where(.dark,.dark *){background-color:#303030}.dark\\:bg-blue-700\\/30:where(.dark,.dark *){background-color:#1447e64d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-blue-700\\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-700)30%,transparent)}}.dark\\:bg-neutral-200:where(.dark,.dark *){background-color:var(--color-neutral-200)}.dark\\:bg-neutral-600\\/20:where(.dark,.dark *){background-color:#52525233}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-600\\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-600)20%,transparent)}}.dark\\:bg-neutral-600\\/40:where(.dark,.dark *){background-color:#52525266}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-600\\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-600)40%,transparent)}}.dark\\:bg-neutral-600\\/50:where(.dark,.dark *){background-color:#52525280}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-600\\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-600)50%,transparent)}}.dark\\:bg-neutral-700:where(.dark,.dark *){background-color:var(--color-neutral-700)}.dark\\:bg-neutral-700\\/50:where(.dark,.dark *){background-color:#40404080}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-700\\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-700)50%,transparent)}}.dark\\:bg-neutral-800:where(.dark,.dark *){background-color:var(--color-neutral-800)}.dark\\:bg-neutral-900:where(.dark,.dark *){background-color:var(--color-neutral-900)}.dark\\:bg-neutral-900\\/50:where(.dark,.dark *){background-color:#17171780}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-900\\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-900)50%,transparent)}}.dark\\:bg-orange-600:where(.dark,.dark *){background-color:var(--color-orange-600)}.dark\\:bg-red-500\\/10:where(.dark,.dark *){background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-red-500\\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-500)10%,transparent)}}.dark\\:bg-red-900\\/30:where(.dark,.dark *){background-color:#82181a4d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-red-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-900)30%,transparent)}}.dark\\:bg-transparent:where(.dark,.dark *){background-color:#0000}.dark\\:text-blue-100:where(.dark,.dark *){color:var(--color-blue-100)}.dark\\:text-neutral-50:where(.dark,.dark *){color:var(--color-neutral-50)}.dark\\:text-neutral-200:where(.dark,.dark *){color:var(--color-neutral-200)}.dark\\:text-neutral-300:where(.dark,.dark *){color:var(--color-neutral-300)}.dark\\:text-neutral-400:where(.dark,.dark *){color:var(--color-neutral-400)}.dark\\:text-neutral-500:where(.dark,.dark *){color:var(--color-neutral-500)}.dark\\:text-neutral-600:where(.dark,.dark *){color:var(--color-neutral-600)}.dark\\:text-red-400:where(.dark,.dark *){color:var(--color-red-400)}.dark\\:text-white:where(.dark,.dark *){color:var(--color-white)}.dark\\:ring-neutral-500:where(.dark,.dark *){--tw-ring-color:var(--color-neutral-500)}.dark\\:ring-neutral-600:where(.dark,.dark *){--tw-ring-color:var(--color-neutral-600)}.dark\\:ring-neutral-700:where(.dark,.dark *){--tw-ring-color:var(--color-neutral-700)}.dark\\:file\\:border-neutral-700:where(.dark,.dark *)::file-selector-button{border-color:var(--color-neutral-700)}.dark\\:file\\:text-white:where(.dark,.dark *)::file-selector-button{color:var(--color-white)}.dark\\:placeholder\\:text-neutral-400:where(.dark,.dark *)::placeholder{color:var(--color-neutral-400)}.dark\\:placeholder\\:text-neutral-500:where(.dark,.dark *)::placeholder{color:var(--color-neutral-500)}.dark\\:checked\\:border-\\[\\#2563EB\\]:where(.dark,.dark *):checked{border-color:#2563eb}.dark\\:checked\\:bg-\\[\\#2563EB\\]:where(.dark,.dark *):checked{background-color:#2563eb}.dark\\:focus-within\\:ring-blue-500:where(.dark,.dark *):focus-within{--tw-ring-color:var(--color-blue-500)}@media (hover:hover){.dark\\:hover\\:border-red-800:where(.dark,.dark *):hover{border-color:var(--color-red-800)}.dark\\:hover\\:bg-\\[\\#4543e9\\]:where(.dark,.dark *):hover{background-color:#4543e9}.dark\\:hover\\:bg-neutral-600:where(.dark,.dark *):hover{background-color:var(--color-neutral-600)}.dark\\:hover\\:bg-neutral-700:where(.dark,.dark *):hover{background-color:var(--color-neutral-700)}.dark\\:hover\\:bg-neutral-700\\/30:where(.dark,.dark *):hover{background-color:#4040404d}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-neutral-700\\/30:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-neutral-700)30%,transparent)}}.dark\\:hover\\:bg-neutral-700\\/50:where(.dark,.dark *):hover{background-color:#40404080}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-neutral-700\\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-neutral-700)50%,transparent)}}.dark\\:hover\\:bg-neutral-700\\/80:where(.dark,.dark *):hover{background-color:#404040cc}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-neutral-700\\/80:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-neutral-700)80%,transparent)}}.dark\\:hover\\:bg-neutral-800:where(.dark,.dark *):hover{background-color:var(--color-neutral-800)}.dark\\:hover\\:bg-orange-500:where(.dark,.dark *):hover{background-color:var(--color-orange-500)}.dark\\:hover\\:text-neutral-100:where(.dark,.dark *):hover{color:var(--color-neutral-100)}.dark\\:hover\\:text-neutral-300:where(.dark,.dark *):hover{color:var(--color-neutral-300)}.dark\\:hover\\:text-white:where(.dark,.dark *):hover{color:var(--color-white)}}.dark\\:focus\\:bg-neutral-700:where(.dark,.dark *):focus{background-color:var(--color-neutral-700)}.dark\\:focus\\:text-neutral-50:where(.dark,.dark *):focus{color:var(--color-neutral-50)}.dark\\:focus-visible\\:ring-neutral-400:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--color-neutral-400)}@media (hover:hover){.dark\\:hover\\:enabled\\:border-red-800:where(.dark,.dark *):hover:enabled{border-color:var(--color-red-800)}.dark\\:hover\\:enabled\\:bg-\\[\\#4543e9\\]:where(.dark,.dark *):hover:enabled{background-color:#4543e9}.dark\\:hover\\:enabled\\:bg-neutral-700\\/30:where(.dark,.dark *):hover:enabled{background-color:#4040404d}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:enabled\\:bg-neutral-700\\/30:where(.dark,.dark *):hover:enabled{background-color:color-mix(in oklab,var(--color-neutral-700)30%,transparent)}}.dark\\:hover\\:enabled\\:bg-orange-500:where(.dark,.dark *):hover:enabled{background-color:var(--color-orange-500)}.dark\\:hover\\:enabled\\:text-neutral-100:where(.dark,.dark *):hover:enabled{color:var(--color-neutral-100)}.dark\\:hover\\:enabled\\:text-neutral-300:where(.dark,.dark *):hover:enabled{color:var(--color-neutral-300)}.dark\\:hover\\:enabled\\:text-red-500:where(.dark,.dark *):hover:enabled{color:var(--color-red-500)}}.dark\\:disabled\\:border-neutral-400:where(.dark,.dark *):disabled{border-color:var(--color-neutral-400)}.dark\\:disabled\\:border-red-950:where(.dark,.dark *):disabled{border-color:var(--color-red-950)}.dark\\:disabled\\:bg-\\[\\#9197f3\\]:where(.dark,.dark *):disabled{background-color:#9197f3}.dark\\:disabled\\:text-neutral-600:where(.dark,.dark *):disabled{color:var(--color-neutral-600)}.dark\\:disabled\\:text-neutral-700:where(.dark,.dark *):disabled{color:var(--color-neutral-700)}.dark\\:disabled\\:text-red-800:where(.dark,.dark *):disabled{color:var(--color-red-800)}.dark\\:disabled\\:opacity-40:where(.dark,.dark *):disabled{opacity:.4}.dark\\:disabled\\:opacity-50:where(.dark,.dark *):disabled{opacity:.5}.dark\\:data-focus\\:bg-neutral-700:where(.dark,.dark *)[data-focus]{background-color:var(--color-neutral-700)}.dark\\:data-\\[state\\=checked\\]\\:border-transparent:where(.dark,.dark *)[data-state=checked]{border-color:#0000}.dark\\:data-\\[state\\=checked\\]\\:bg-neutral-600:where(.dark,.dark *)[data-state=checked]{background-color:var(--color-neutral-600)}.dark\\:data-\\[state\\=checked\\]\\:bg-white:where(.dark,.dark *)[data-state=checked]{background-color:var(--color-white)}.dark\\:data-\\[state\\=unchecked\\]\\:bg-neutral-200:where(.dark,.dark *)[data-state=unchecked]{background-color:var(--color-neutral-200)}.dark\\:data-\\[state\\=unchecked\\]\\:bg-neutral-700:where(.dark,.dark *)[data-state=unchecked]{background-color:var(--color-neutral-700)}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}:is(.\\*\\:\\[span\\]\\:last\\:flex>*):is(span):last-child{display:flex}:is(.\\*\\:\\[span\\]\\:last\\:items-center>*):is(span):last-child{align-items:center}:is(.\\*\\:\\[span\\]\\:last\\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`, Er = typeof window < "u", Sn = xt("devBackend");
|
|
34
|
+
import * as Yt from "@radix-ui/react-toggle-group";
|
|
35
|
+
import Cr from "react-copy-to-clipboard";
|
|
36
|
+
import * as Kt from "@radix-ui/react-switch";
|
|
37
|
+
const An = `/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-600:oklch(64.6% .222 41.116);--color-amber-500:oklch(76.9% .188 70.08);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-slate-100:oklch(96.8% .007 247.896);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-neutral-50:oklch(98.5% 0 0);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-400:oklch(70.8% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-600:oklch(43.9% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-neutral-950:oklch(14.5% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-xs:4px;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before,::backdrop{border-color:#e5e7eb}::file-selector-button{border-color:#e5e7eb}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:#6a7282;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#155dfc;outline:2px solid #0000}input::placeholder,textarea::placeholder{color:#6a7282;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-date-and-time-value{text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{print-color-adjust:exact;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{appearance:none;print-color-adjust:exact;vertical-align:middle;-webkit-user-select:none;user-select:none;color:#155dfc;--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:#6a7282;flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}@media (forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.top-\\[18px\\]{top:18px}.top-\\[50\\%\\]{top:50%}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-\\[50\\%\\]{left:50%}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-100{z-index:100}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-2{margin-inline:calc(var(--spacing)*2)}.my-1{margin-block:calc(var(--spacing)*1)}.my-2{margin-block:calc(var(--spacing)*2)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-8{margin-top:calc(var(--spacing)*8)}.mr-0\\.5{margin-right:calc(var(--spacing)*.5)}.mr-4{margin-right:calc(var(--spacing)*4)}.mr-8{margin-right:calc(var(--spacing)*8)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.-ml-0\\.5{margin-left:calc(var(--spacing)*-.5)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-3\\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.h-\\(--radix-select-trigger-height\\){height:var(--radix-select-trigger-height)}.h-1{height:calc(var(--spacing)*1)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-12{height:calc(var(--spacing)*12)}.h-32{height:calc(var(--spacing)*32)}.h-64{height:calc(var(--spacing)*64)}.h-\\[1\\.15rem\\]{height:1.15rem}.h-full{height:100%}.h-px{height:1px}.max-h-\\(--radix-select-content-available-height\\){max-height:var(--radix-select-content-available-height)}.max-h-\\[25vh\\]{max-height:25vh}.max-h-\\[calc\\(100\\%-2rem\\)\\]{max-height:calc(100% - 2rem)}.max-h-full{max-height:100%}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\\[30vh\\]{min-height:30vh}.min-h-\\[34px\\]{min-height:34px}.min-h-full{min-height:100%}.w-\\(--input-width\\){width:var(--input-width)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-12{width:calc(var(--spacing)*12)}.w-24{width:calc(var(--spacing)*24)}.w-48{width:calc(var(--spacing)*48)}.w-\\[30px\\]{width:30px}.w-\\[62px\\]{width:62px}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.max-w-\\[67vw\\]{max-width:67vw}.max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 2rem)}.max-w-fit{max-width:fit-content}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-xl{max-width:var(--container-xl)}.min-w-\\(--radix-select-trigger-width\\){min-width:var(--radix-select-trigger-width)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-32{min-width:calc(var(--spacing)*32)}.min-w-48{min-width:calc(var(--spacing)*48)}.min-w-\\[200px\\]{min-width:200px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-\\(--radix-select-content-transform-origin\\){transform-origin:var(--radix-select-content-transform-origin)}.origin-\\(--radix-tooltip-content-transform-origin\\){transform-origin:var(--radix-tooltip-content-transform-origin)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0\\.5{--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-rotate-45{rotate:-45deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.resize{resize:both}.resize-none{resize:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-around{justify-content:space-around}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1{column-gap:calc(var(--spacing)*1)}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-visible{overflow:visible}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#606AF4\\]{border-color:#606af4}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-300\\/80{border-color:#d1d5dccc}@supports (color:color-mix(in lab,red,red)){.border-gray-300\\/80{border-color:color-mix(in oklab,var(--color-gray-300)80%,transparent)}}.border-gray-500{border-color:var(--color-gray-500)}.border-neutral-200{border-color:var(--color-neutral-200)}.border-neutral-300{border-color:var(--color-neutral-300)}.border-red-200{border-color:var(--color-red-200)}.border-red-500{border-color:var(--color-red-500)}.border-transparent{border-color:#0000}.border-r-gray-200{border-right-color:var(--color-gray-200)}.border-b-gray-200{border-bottom-color:var(--color-gray-200)}.border-l-red-500{border-left-color:var(--color-red-500)}.bg-\\[\\#606AF4\\]{background-color:#606af4}.bg-\\[\\#616AF4\\]{background-color:#616af4}.bg-\\[\\#4543e9\\]{background-color:#4543e9}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-neutral-200{background-color:var(--color-neutral-200)}.bg-neutral-300{background-color:var(--color-neutral-300)}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-600{background-color:var(--color-orange-600)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-200{background-color:var(--color-red-200)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-linear-to-l{--tw-gradient-position:to left}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-l{--tw-gradient-position:to left in oklab}}.bg-linear-to-l{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-r{--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r{--tw-gradient-position:to right in oklab}}.bg-linear-to-r{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-none{background-image:none}.from-black\\/10{--tw-gradient-from:#0000001a}@supports (color:color-mix(in lab,red,red)){.from-black\\/10{--tw-gradient-from:color-mix(in oklab,var(--color-black)10%,transparent)}}.from-black\\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-black\\/20{--tw-gradient-from:#0003}@supports (color:color-mix(in lab,red,red)){.from-black\\/20{--tw-gradient-from:color-mix(in oklab,var(--color-black)20%,transparent)}}.from-black\\/20{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-black\\/0{--tw-gradient-via:#0000}@supports (color:color-mix(in lab,red,red)){.via-black\\/0{--tw-gradient-via:color-mix(in oklab,var(--color-black)0%,transparent)}}.via-black\\/0{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/5{--tw-gradient-via:#0000000d}@supports (color:color-mix(in lab,red,red)){.via-black\\/5{--tw-gradient-via:color-mix(in oklab,var(--color-black)5%,transparent)}}.via-black\\/5{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.p-0{padding:calc(var(--spacing)*0)}.p-0\\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.pt-1\\.5{padding-top:calc(var(--spacing)*1.5)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-5{padding-right:calc(var(--spacing)*5)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-6{padding-left:calc(var(--spacing)*6)}.pl-24{padding-left:calc(var(--spacing)*24)}.text-center{text-align:center}.text-left{text-align:left}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-balance{text-wrap:balance}.wrap-break-word{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[\\#606AF4\\]{color:#606af4}.text-\\[\\#2563EB\\]{color:#2563eb}.text-blue-800{color:var(--color-blue-800)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-700{color:var(--color-neutral-700)}.text-neutral-950{color:var(--color-neutral-950)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-\\[\\#606AF4\\]{--tw-ring-color:#606af4}.ring-gray-300{--tw-ring-color:var(--color-gray-300)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.blur{--tw-blur:blur(8px);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,)}.blur-sm{--tw-blur:blur(var(--blur-sm));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,)}.filter{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,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.content-\\[hi\\]{--tw-content:hi;content:var(--tw-content)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.group-hover\\:text-amber-500:is(:where(.group):hover *){color:var(--color-amber-500)}.group-hover\\:opacity-70:is(:where(.group):hover *){opacity:.7}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.file\\:rounded-xs::file-selector-button{border-radius:var(--radius-xs)}.file\\:border-none::file-selector-button{--tw-border-style:none;border-style:none}.file\\:border-neutral-200::file-selector-button{border-color:var(--color-neutral-200)}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:p-2::file-selector-button{padding:calc(var(--spacing)*2)}.file\\:pt-1::file-selector-button{padding-top:calc(var(--spacing)*1)}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:shadow-none::file-selector-button{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}.placeholder\\:text-neutral-500::placeholder{color:var(--color-neutral-500)}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.empty\\:invisible:empty{visibility:hidden}.focus-within\\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:ring-blue-700:focus-within{--tw-ring-color:var(--color-blue-700)}@media (hover:hover){.hover\\:cursor-col-resize:hover{cursor:col-resize}.hover\\:cursor-grab:hover{cursor:grab}.hover\\:border-red-300:hover{border-color:var(--color-red-300)}.hover\\:bg-\\[\\#4543E9\\]:hover,.hover\\:bg-\\[\\#4543e9\\]:hover{background-color:#4543e9}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-gray-50\\/30:hover{background-color:#f9fafb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-gray-50\\/30:hover{background-color:color-mix(in oklab,var(--color-gray-50)30%,transparent)}}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-200\\/30:hover{background-color:#e5e7eb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-gray-200\\/30:hover{background-color:color-mix(in oklab,var(--color-gray-200)30%,transparent)}}.hover\\:bg-gray-200\\/50:hover{background-color:#e5e7eb80}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-gray-200\\/50:hover{background-color:color-mix(in oklab,var(--color-gray-200)50%,transparent)}}.hover\\:bg-neutral-100:hover{background-color:var(--color-neutral-100)}.hover\\:bg-neutral-300:hover{background-color:var(--color-neutral-300)}.hover\\:bg-orange-500:hover{background-color:var(--color-orange-500)}.hover\\:text-black:hover{color:var(--color-black)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-gray-700:hover{color:var(--color-gray-700)}.hover\\:text-red-600:hover{color:var(--color-red-600)}.hover\\:text-slate-100:hover{color:var(--color-slate-100)}.hover\\:opacity-100:hover{opacity:1}}.focus\\:bg-neutral-100:focus{background-color:var(--color-neutral-100)}.focus\\:text-neutral-900:focus{color:var(--color-neutral-900)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-\\[\\#606AF4\\]:focus{--tw-ring-color:#606af4}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-neutral-950:focus-visible{--tw-ring-color:var(--color-neutral-950)}.focus-visible\\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.active\\:cursor-grabbing:active{cursor:grabbing}@media (hover:hover){.hover\\:enabled\\:border-red-300:hover:enabled{border-color:var(--color-red-300)}.hover\\:enabled\\:bg-\\[\\#4543e9\\]:hover:enabled{background-color:#4543e9}.hover\\:enabled\\:bg-gray-50\\/30:hover:enabled{background-color:#f9fafb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:enabled\\:bg-gray-50\\/30:hover:enabled{background-color:color-mix(in oklab,var(--color-gray-50)30%,transparent)}}.hover\\:enabled\\:bg-gray-200\\/30:hover:enabled{background-color:#e5e7eb4d}@supports (color:color-mix(in lab,red,red)){.hover\\:enabled\\:bg-gray-200\\/30:hover:enabled{background-color:color-mix(in oklab,var(--color-gray-200)30%,transparent)}}.hover\\:enabled\\:bg-orange-500:hover:enabled{background-color:var(--color-orange-500)}.hover\\:enabled\\:text-gray-600:hover:enabled{color:var(--color-gray-600)}.hover\\:enabled\\:text-red-600:hover:enabled{color:var(--color-red-600)}.hover\\:enabled\\:text-slate-100:hover:enabled{color:var(--color-slate-100)}}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{border-color:var(--color-gray-300)}.disabled\\:border-red-50:disabled{border-color:var(--color-red-50)}.disabled\\:bg-\\[\\#9197f3\\]:disabled{background-color:#9197f3}.disabled\\:bg-gray-200:disabled{background-color:var(--color-gray-200)}.disabled\\:text-gray-400:disabled{color:var(--color-gray-400)}.disabled\\:text-red-300:disabled{color:var(--color-red-300)}.disabled\\:opacity-20:disabled{opacity:.2}.disabled\\:opacity-50:disabled{opacity:.5}.data-disabled\\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\\:opacity-50[data-disabled]{opacity:.5}.data-focus\\:bg-blue-100[data-focus]{background-color:var(--color-blue-100)}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[size\\=default\\]\\:h-9[data-size=default]{height:calc(var(--spacing)*9)}.data-\\[size\\=sm\\]\\:h-8[data-size=sm]{height:calc(var(--spacing)*8)}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:flex>*)[data-slot=select-value]{display:flex}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\\*\\:data-\\[slot\\=select-value\\]\\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\\[state\\=checked\\]\\:translate-x-\\[calc\\(100\\%-2px\\)\\][data-state=checked]{--tw-translate-x: calc(100% - 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[state\\=checked\\]\\:bg-neutral-800[data-state=checked]{background-color:var(--color-neutral-800)}.data-\\[state\\=checked\\]\\:bg-white[data-state=checked]{background-color:var(--color-white)}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[state\\=unchecked\\]\\:bg-neutral-300[data-state=unchecked]{background-color:var(--color-neutral-300)}@media (min-width:40rem){.sm\\:max-w-lg{max-width:var(--container-lg)}}@media (min-width:48rem){.md\\:static{position:static}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:flex-row{flex-direction:row}.md\\:items-center{align-items:center}.md\\:justify-start{justify-content:flex-start}.md\\:gap-2{gap:calc(var(--spacing)*2)}.md\\:border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.md\\:shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}:where(.dark\\:divide-neutral-700:where(.dark,.dark *)>:not(:last-child)){border-color:var(--color-neutral-700)}.dark\\:border:where(.dark,.dark *){border-style:var(--tw-border-style);border-width:1px}.dark\\:border-neutral-500:where(.dark,.dark *){border-color:var(--color-neutral-500)}.dark\\:border-neutral-600:where(.dark,.dark *){border-color:var(--color-neutral-600)}.dark\\:border-neutral-700:where(.dark,.dark *){border-color:var(--color-neutral-700)}.dark\\:border-neutral-800:where(.dark,.dark *){border-color:var(--color-neutral-800)}.dark\\:border-red-900\\/60:where(.dark,.dark *){border-color:#82181a99}@supports (color:color-mix(in lab,red,red)){.dark\\:border-red-900\\/60:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-red-900)60%,transparent)}}.dark\\:border-y-neutral-700:where(.dark,.dark *){border-block-color:var(--color-neutral-700)}.dark\\:border-y-neutral-800:where(.dark,.dark *){border-block-color:var(--color-neutral-800)}.dark\\:border-t-neutral-700:where(.dark,.dark *){border-top-color:var(--color-neutral-700)}.dark\\:border-r-neutral-700:where(.dark,.dark *){border-right-color:var(--color-neutral-700)}.dark\\:border-b-neutral-600:where(.dark,.dark *){border-bottom-color:var(--color-neutral-600)}.dark\\:border-b-neutral-700:where(.dark,.dark *){border-bottom-color:var(--color-neutral-700)}.dark\\:border-l-neutral-700:where(.dark,.dark *){border-left-color:var(--color-neutral-700)}.dark\\:bg-\\[\\#606AF4\\]:where(.dark,.dark *){background-color:#606af4}.dark\\:bg-\\[\\#252525\\]:where(.dark,.dark *){background-color:#252525}.dark\\:bg-\\[\\#303030\\]:where(.dark,.dark *){background-color:#303030}.dark\\:bg-blue-700\\/30:where(.dark,.dark *){background-color:#1447e64d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-blue-700\\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-700)30%,transparent)}}.dark\\:bg-neutral-200:where(.dark,.dark *){background-color:var(--color-neutral-200)}.dark\\:bg-neutral-600\\/20:where(.dark,.dark *){background-color:#52525233}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-600\\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-600)20%,transparent)}}.dark\\:bg-neutral-600\\/40:where(.dark,.dark *){background-color:#52525266}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-600\\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-600)40%,transparent)}}.dark\\:bg-neutral-600\\/50:where(.dark,.dark *){background-color:#52525280}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-600\\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-600)50%,transparent)}}.dark\\:bg-neutral-700:where(.dark,.dark *){background-color:var(--color-neutral-700)}.dark\\:bg-neutral-700\\/50:where(.dark,.dark *){background-color:#40404080}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-700\\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-700)50%,transparent)}}.dark\\:bg-neutral-800:where(.dark,.dark *){background-color:var(--color-neutral-800)}.dark\\:bg-neutral-900:where(.dark,.dark *){background-color:var(--color-neutral-900)}.dark\\:bg-neutral-900\\/50:where(.dark,.dark *){background-color:#17171780}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-neutral-900\\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-neutral-900)50%,transparent)}}.dark\\:bg-orange-600:where(.dark,.dark *){background-color:var(--color-orange-600)}.dark\\:bg-red-500\\/10:where(.dark,.dark *){background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-red-500\\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-500)10%,transparent)}}.dark\\:bg-red-900\\/30:where(.dark,.dark *){background-color:#82181a4d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-red-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-900)30%,transparent)}}.dark\\:bg-transparent:where(.dark,.dark *){background-color:#0000}.dark\\:text-blue-100:where(.dark,.dark *){color:var(--color-blue-100)}.dark\\:text-neutral-50:where(.dark,.dark *){color:var(--color-neutral-50)}.dark\\:text-neutral-200:where(.dark,.dark *){color:var(--color-neutral-200)}.dark\\:text-neutral-300:where(.dark,.dark *){color:var(--color-neutral-300)}.dark\\:text-neutral-400:where(.dark,.dark *){color:var(--color-neutral-400)}.dark\\:text-neutral-500:where(.dark,.dark *){color:var(--color-neutral-500)}.dark\\:text-neutral-600:where(.dark,.dark *){color:var(--color-neutral-600)}.dark\\:text-red-400:where(.dark,.dark *){color:var(--color-red-400)}.dark\\:text-white:where(.dark,.dark *){color:var(--color-white)}.dark\\:ring-neutral-500:where(.dark,.dark *){--tw-ring-color:var(--color-neutral-500)}.dark\\:ring-neutral-600:where(.dark,.dark *){--tw-ring-color:var(--color-neutral-600)}.dark\\:ring-neutral-700:where(.dark,.dark *){--tw-ring-color:var(--color-neutral-700)}.dark\\:file\\:border-neutral-700:where(.dark,.dark *)::file-selector-button{border-color:var(--color-neutral-700)}.dark\\:file\\:text-white:where(.dark,.dark *)::file-selector-button{color:var(--color-white)}.dark\\:placeholder\\:text-neutral-400:where(.dark,.dark *)::placeholder{color:var(--color-neutral-400)}.dark\\:placeholder\\:text-neutral-500:where(.dark,.dark *)::placeholder{color:var(--color-neutral-500)}.dark\\:checked\\:border-\\[\\#2563EB\\]:where(.dark,.dark *):checked{border-color:#2563eb}.dark\\:checked\\:bg-\\[\\#2563EB\\]:where(.dark,.dark *):checked{background-color:#2563eb}.dark\\:focus-within\\:ring-blue-500:where(.dark,.dark *):focus-within{--tw-ring-color:var(--color-blue-500)}@media (hover:hover){.dark\\:hover\\:border-red-800:where(.dark,.dark *):hover{border-color:var(--color-red-800)}.dark\\:hover\\:bg-\\[\\#4543e9\\]:where(.dark,.dark *):hover{background-color:#4543e9}.dark\\:hover\\:bg-neutral-600:where(.dark,.dark *):hover{background-color:var(--color-neutral-600)}.dark\\:hover\\:bg-neutral-700:where(.dark,.dark *):hover{background-color:var(--color-neutral-700)}.dark\\:hover\\:bg-neutral-700\\/30:where(.dark,.dark *):hover{background-color:#4040404d}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-neutral-700\\/30:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-neutral-700)30%,transparent)}}.dark\\:hover\\:bg-neutral-700\\/50:where(.dark,.dark *):hover{background-color:#40404080}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-neutral-700\\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-neutral-700)50%,transparent)}}.dark\\:hover\\:bg-neutral-700\\/80:where(.dark,.dark *):hover{background-color:#404040cc}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-neutral-700\\/80:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-neutral-700)80%,transparent)}}.dark\\:hover\\:bg-neutral-800:where(.dark,.dark *):hover{background-color:var(--color-neutral-800)}.dark\\:hover\\:bg-orange-500:where(.dark,.dark *):hover{background-color:var(--color-orange-500)}.dark\\:hover\\:text-neutral-100:where(.dark,.dark *):hover{color:var(--color-neutral-100)}.dark\\:hover\\:text-neutral-300:where(.dark,.dark *):hover{color:var(--color-neutral-300)}.dark\\:hover\\:text-white:where(.dark,.dark *):hover{color:var(--color-white)}}.dark\\:focus\\:bg-neutral-700:where(.dark,.dark *):focus{background-color:var(--color-neutral-700)}.dark\\:focus\\:text-neutral-50:where(.dark,.dark *):focus{color:var(--color-neutral-50)}.dark\\:focus-visible\\:ring-neutral-400:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--color-neutral-400)}@media (hover:hover){.dark\\:hover\\:enabled\\:border-red-800:where(.dark,.dark *):hover:enabled{border-color:var(--color-red-800)}.dark\\:hover\\:enabled\\:bg-\\[\\#4543e9\\]:where(.dark,.dark *):hover:enabled{background-color:#4543e9}.dark\\:hover\\:enabled\\:bg-neutral-700\\/30:where(.dark,.dark *):hover:enabled{background-color:#4040404d}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:enabled\\:bg-neutral-700\\/30:where(.dark,.dark *):hover:enabled{background-color:color-mix(in oklab,var(--color-neutral-700)30%,transparent)}}.dark\\:hover\\:enabled\\:bg-orange-500:where(.dark,.dark *):hover:enabled{background-color:var(--color-orange-500)}.dark\\:hover\\:enabled\\:text-neutral-100:where(.dark,.dark *):hover:enabled{color:var(--color-neutral-100)}.dark\\:hover\\:enabled\\:text-neutral-300:where(.dark,.dark *):hover:enabled{color:var(--color-neutral-300)}.dark\\:hover\\:enabled\\:text-red-500:where(.dark,.dark *):hover:enabled{color:var(--color-red-500)}}.dark\\:disabled\\:border-neutral-400:where(.dark,.dark *):disabled{border-color:var(--color-neutral-400)}.dark\\:disabled\\:border-red-950:where(.dark,.dark *):disabled{border-color:var(--color-red-950)}.dark\\:disabled\\:bg-\\[\\#9197f3\\]:where(.dark,.dark *):disabled{background-color:#9197f3}.dark\\:disabled\\:text-neutral-600:where(.dark,.dark *):disabled{color:var(--color-neutral-600)}.dark\\:disabled\\:text-neutral-700:where(.dark,.dark *):disabled{color:var(--color-neutral-700)}.dark\\:disabled\\:text-red-800:where(.dark,.dark *):disabled{color:var(--color-red-800)}.dark\\:disabled\\:opacity-40:where(.dark,.dark *):disabled{opacity:.4}.dark\\:disabled\\:opacity-50:where(.dark,.dark *):disabled{opacity:.5}.dark\\:data-focus\\:bg-neutral-700:where(.dark,.dark *)[data-focus]{background-color:var(--color-neutral-700)}.dark\\:data-\\[state\\=checked\\]\\:border-transparent:where(.dark,.dark *)[data-state=checked]{border-color:#0000}.dark\\:data-\\[state\\=checked\\]\\:bg-neutral-600:where(.dark,.dark *)[data-state=checked]{background-color:var(--color-neutral-600)}.dark\\:data-\\[state\\=checked\\]\\:bg-white:where(.dark,.dark *)[data-state=checked]{background-color:var(--color-white)}.dark\\:data-\\[state\\=unchecked\\]\\:bg-neutral-200:where(.dark,.dark *)[data-state=unchecked]{background-color:var(--color-neutral-200)}.dark\\:data-\\[state\\=unchecked\\]\\:bg-neutral-700:where(.dark,.dark *)[data-state=unchecked]{background-color:var(--color-neutral-700)}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}:is(.\\*\\:\\[span\\]\\:last\\:flex>*):is(span):last-child{display:flex}:is(.\\*\\:\\[span\\]\\:last\\:items-center>*):is(span):last-child{align-items:center}:is(.\\*\\:\\[span\\]\\:last\\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`, Ir = typeof window < "u", Rn = xt("devBackend");
|
|
38
38
|
let kt = "8888";
|
|
39
|
-
if (
|
|
39
|
+
if (Rn && Ir) {
|
|
40
40
|
const e = new URL(location.href).searchParams.get("port");
|
|
41
41
|
e && (kt = e);
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const Xt = {
|
|
44
44
|
apiURI: xt("devBackend") ? `http://localhost:${kt}` : "https://api.instantdb.com",
|
|
45
45
|
websocketURI: xt("devBackend") ? `ws://localhost:${kt}/runtime/session` : "wss://api.instantdb.com/runtime/session"
|
|
46
46
|
};
|
|
47
47
|
function xt(e) {
|
|
48
|
-
if (!
|
|
48
|
+
if (!Ir)
|
|
49
49
|
return null;
|
|
50
50
|
try {
|
|
51
51
|
const t = localStorage.getItem(e);
|
|
@@ -54,12 +54,12 @@ function xt(e) {
|
|
|
54
54
|
return null;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function oe(e) {
|
|
58
58
|
Nt.success(e, {
|
|
59
59
|
richColors: !0
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function le(e, t) {
|
|
63
63
|
Nt.error(e, {
|
|
64
64
|
duration: t?.autoClose,
|
|
65
65
|
richColors: !0
|
|
@@ -102,26 +102,26 @@ const It = {
|
|
|
102
102
|
cardinality: "one",
|
|
103
103
|
"unique?": !1
|
|
104
104
|
}
|
|
105
|
-
},
|
|
105
|
+
}, Ar = Object.fromEntries(
|
|
106
106
|
Object.entries(It).map(([e, t]) => [
|
|
107
107
|
`${t.cardinality}-${t["unique?"]}`,
|
|
108
108
|
e
|
|
109
109
|
])
|
|
110
|
-
),
|
|
110
|
+
), Tn = ({
|
|
111
111
|
attr: e,
|
|
112
112
|
gracePeriodDays: t,
|
|
113
113
|
isExpanded: a,
|
|
114
114
|
setIsExpanded: n,
|
|
115
115
|
onRestore: o
|
|
116
116
|
}) => {
|
|
117
|
-
const l =
|
|
117
|
+
const l = fr(new Date(e["deletion-marked-at"]), {
|
|
118
118
|
days: t
|
|
119
119
|
}), i = () => e["forward-identity"][2], g = () => e["reverse-identity"]?.[2], c = () => {
|
|
120
120
|
const s = e["forward-identity"][1], f = e["reverse-identity"]?.[1];
|
|
121
121
|
return { forwardEtype: s, reverseEtype: f };
|
|
122
122
|
}, p = () => {
|
|
123
123
|
const s = `${e.cardinality}-${e["unique?"]}`;
|
|
124
|
-
return
|
|
124
|
+
return Ar[s];
|
|
125
125
|
}, m = () => {
|
|
126
126
|
n(!a);
|
|
127
127
|
}, d = (() => {
|
|
@@ -162,11 +162,11 @@ const It = {
|
|
|
162
162
|
onClick: m,
|
|
163
163
|
children: [
|
|
164
164
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-3", children: [
|
|
165
|
-
a ? /* @__PURE__ */ r(Et, { width: 14, className: "text-gray-400" }) : /* @__PURE__ */ r(
|
|
165
|
+
a ? /* @__PURE__ */ r(Et, { width: 14, className: "text-gray-400" }) : /* @__PURE__ */ r(Sa, { width: 14, className: "text-gray-400" }),
|
|
166
166
|
/* @__PURE__ */ r("span", { className: "font-mono text-sm font-medium", children: e["forward-identity"][2] }),
|
|
167
167
|
/* @__PURE__ */ h("span", { className: "font-mono text-xs text-gray-400", children: [
|
|
168
168
|
"expires ",
|
|
169
|
-
|
|
169
|
+
mr(l, { includeSeconds: !1 })
|
|
170
170
|
] })
|
|
171
171
|
] }),
|
|
172
172
|
/* @__PURE__ */ h(
|
|
@@ -179,7 +179,7 @@ const It = {
|
|
|
179
179
|
s.stopPropagation(), o(e.id);
|
|
180
180
|
},
|
|
181
181
|
children: [
|
|
182
|
-
/* @__PURE__ */ r(
|
|
182
|
+
/* @__PURE__ */ r(Na, { width: 14 }),
|
|
183
183
|
"Restore"
|
|
184
184
|
]
|
|
185
185
|
}
|
|
@@ -201,7 +201,7 @@ const It = {
|
|
|
201
201
|
] });
|
|
202
202
|
}, At = (e) => {
|
|
203
203
|
const t = de(), a = t.adminToken;
|
|
204
|
-
return
|
|
204
|
+
return za(["recently-deleted", e], async () => {
|
|
205
205
|
const o = await fetch(
|
|
206
206
|
`${t.apiURI}/dash/apps/${e}/soft_deleted_attrs`,
|
|
207
207
|
{
|
|
@@ -217,12 +217,12 @@ const It = {
|
|
|
217
217
|
);
|
|
218
218
|
return {
|
|
219
219
|
...l,
|
|
220
|
-
attrs: l.attrs.map(
|
|
220
|
+
attrs: l.attrs.map(Dn)
|
|
221
221
|
};
|
|
222
222
|
});
|
|
223
|
-
},
|
|
223
|
+
}, Rr = (e) => {
|
|
224
224
|
const { data: t } = At(e);
|
|
225
|
-
return
|
|
225
|
+
return se(() => {
|
|
226
226
|
const n = t?.attrs || [];
|
|
227
227
|
return n.filter((i) => i["forward-identity"][2] === "id").map((i) => {
|
|
228
228
|
const g = n.filter(
|
|
@@ -232,11 +232,11 @@ const It = {
|
|
|
232
232
|
});
|
|
233
233
|
}, [t?.attrs]);
|
|
234
234
|
};
|
|
235
|
-
function
|
|
235
|
+
function On({
|
|
236
236
|
appId: e,
|
|
237
237
|
db: t
|
|
238
238
|
}) {
|
|
239
|
-
const { data: a, mutate: n } = At(e), o =
|
|
239
|
+
const { data: a, mutate: n } = At(e), o = Rr(e), l = a?.["grace-period-days"] || 2, i = async ({ idAttr: g, remainingCols: c }) => {
|
|
240
240
|
if (!t || !a) return;
|
|
241
241
|
const p = [g, ...c].map((d) => d.id);
|
|
242
242
|
await t.core._reactor.pushOps(
|
|
@@ -253,7 +253,7 @@ function En({
|
|
|
253
253
|
o.length ? /* @__PURE__ */ r("div", { className: "flex flex-col gap-2 overflow-hidden", children: o.toSorted((g, c) => +new Date(c.idAttr["deletion-marked-at"]) - +new Date(g.idAttr["deletion-marked-at"])).map((g) => {
|
|
254
254
|
const c = new Date(
|
|
255
255
|
g.idAttr["deletion-marked-at"]
|
|
256
|
-
), p =
|
|
256
|
+
), p = fr(c, {
|
|
257
257
|
days: l
|
|
258
258
|
});
|
|
259
259
|
return /* @__PURE__ */ h(
|
|
@@ -265,12 +265,12 @@ function En({
|
|
|
265
265
|
/* @__PURE__ */ r("div", { className: "truncate font-semibold dark:text-white", children: g.idAttr["forward-identity"][1] }),
|
|
266
266
|
/* @__PURE__ */ h("div", { className: "mt-1 text-xs text-neutral-500 dark:text-neutral-400", children: [
|
|
267
267
|
"Deleted ",
|
|
268
|
-
|
|
268
|
+
Pa(c, "MMM d, h:mm a"),
|
|
269
269
|
" ·",
|
|
270
270
|
" ",
|
|
271
271
|
"expires",
|
|
272
272
|
" ",
|
|
273
|
-
|
|
273
|
+
mr(p, {
|
|
274
274
|
includeSeconds: !1
|
|
275
275
|
})
|
|
276
276
|
] }),
|
|
@@ -294,7 +294,7 @@ function En({
|
|
|
294
294
|
variant: "secondary",
|
|
295
295
|
onClick: () => i(g),
|
|
296
296
|
children: [
|
|
297
|
-
/* @__PURE__ */ r(
|
|
297
|
+
/* @__PURE__ */ r(Ea, { className: "h-3.5 w-3.5" }),
|
|
298
298
|
"Restore"
|
|
299
299
|
]
|
|
300
300
|
}
|
|
@@ -306,7 +306,7 @@ function En({
|
|
|
306
306
|
}) }) : /* @__PURE__ */ r("p", { className: "text-sm text-neutral-500 dark:text-neutral-400", children: "No recently deleted namespaces." })
|
|
307
307
|
] });
|
|
308
308
|
}
|
|
309
|
-
const
|
|
309
|
+
const _n = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
310
310
|
const { data: o, mutate: l, error: i } = At(t), [g, c] = C(null), p = st(), m = async (s) => {
|
|
311
311
|
if (a && o)
|
|
312
312
|
try {
|
|
@@ -316,13 +316,13 @@ const Cn = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
|
316
316
|
});
|
|
317
317
|
const f = o.attrs.find((b) => b.id === s);
|
|
318
318
|
if (f) {
|
|
319
|
-
const b =
|
|
319
|
+
const b = Ln(f);
|
|
320
320
|
b && n.setNote(s, b);
|
|
321
321
|
}
|
|
322
322
|
} catch (f) {
|
|
323
|
-
console.error(f), f instanceof
|
|
323
|
+
console.error(f), f instanceof Ba ? f.body?.type === "record-not-unique" ? le(
|
|
324
324
|
"Attribute already exists. Rename existing attribute first and then try again to restore."
|
|
325
|
-
) :
|
|
325
|
+
) : le(f.message) : le("Failed to restore attr");
|
|
326
326
|
}
|
|
327
327
|
}, d = e.attrs.find((s) => s.name === "id")?.id || "unk", u = o?.attrs?.filter(
|
|
328
328
|
(s) => s.metadata?.soft_delete_snapshot?.id_attr_id === d
|
|
@@ -331,11 +331,11 @@ const Cn = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
|
331
331
|
u?.length === 0 && p.onClose();
|
|
332
332
|
}, [u]), i || !u || u.length === 0 ? null : /* @__PURE__ */ h("div", { className: "pb-2", children: [
|
|
333
333
|
/* @__PURE__ */ r(ft, { className: "pb-2", children: /* @__PURE__ */ h("div", { className: "flex w-full grow items-center justify-center gap-2 text-center opacity-60", children: [
|
|
334
|
-
/* @__PURE__ */ r(
|
|
334
|
+
/* @__PURE__ */ r(pr, { width: 16 }),
|
|
335
335
|
"Recently Deleted"
|
|
336
336
|
] }) }),
|
|
337
337
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-2", children: u?.map((s) => /* @__PURE__ */ r(
|
|
338
|
-
|
|
338
|
+
Tn,
|
|
339
339
|
{
|
|
340
340
|
isExpanded: g === s.id,
|
|
341
341
|
setIsExpanded: (f) => {
|
|
@@ -348,7 +348,7 @@ const Cn = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
|
348
348
|
s.id
|
|
349
349
|
)) })
|
|
350
350
|
] });
|
|
351
|
-
},
|
|
351
|
+
}, Zt = "_deleted$", Dn = (e) => {
|
|
352
352
|
const t = { ...e }, [a, n, o] = e["forward-identity"];
|
|
353
353
|
if (t["forward-identity"] = [
|
|
354
354
|
a,
|
|
@@ -364,10 +364,10 @@ const Cn = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
|
364
364
|
}
|
|
365
365
|
return t;
|
|
366
366
|
}, at = (e) => {
|
|
367
|
-
const t = e.indexOf(
|
|
368
|
-
return t === -1 ? e : e.slice(t +
|
|
369
|
-
},
|
|
370
|
-
function
|
|
367
|
+
const t = e.indexOf(Zt);
|
|
368
|
+
return t === -1 ? e : e.slice(t + Zt.length);
|
|
369
|
+
}, Ln = (e) => e && e?.metadata?.soft_delete_snapshot ? e.metadata.soft_delete_snapshot.is_indexed && e.metadata.soft_delete_snapshot.is_required ? "Index and required constraints were dropped after restoring" : e.metadata.soft_delete_snapshot.is_indexed ? "Indexed constraint was dropped after restoring" : e.metadata.soft_delete_snapshot.is_required ? "Required constraint was dropped after restoring" : null : null;
|
|
370
|
+
function Fn({
|
|
371
371
|
db: e,
|
|
372
372
|
onClose: t
|
|
373
373
|
}) {
|
|
@@ -407,20 +407,20 @@ function Rn({
|
|
|
407
407
|
)
|
|
408
408
|
] });
|
|
409
409
|
}
|
|
410
|
-
const
|
|
410
|
+
const $n = [
|
|
411
411
|
// Exclude computed fields
|
|
412
412
|
["$files", "url"]
|
|
413
|
-
],
|
|
414
|
-
function
|
|
413
|
+
], Qt = [":", ">", "<"];
|
|
414
|
+
function jn(e) {
|
|
415
415
|
let t = 0, a, n;
|
|
416
416
|
const o = [];
|
|
417
417
|
let l = -1;
|
|
418
418
|
for (const i of e) {
|
|
419
|
-
if (l++, i === " " && !
|
|
419
|
+
if (l++, i === " " && !Qt.includes(e[l + 1])) {
|
|
420
420
|
t = l + 1;
|
|
421
421
|
continue;
|
|
422
422
|
}
|
|
423
|
-
if (
|
|
423
|
+
if (Qt.includes(i)) {
|
|
424
424
|
a && n != null && (a.value = e.substring(n, t).trim(), o.push(a)), a = {
|
|
425
425
|
field: e.substring(t, l).trim(),
|
|
426
426
|
operator: i,
|
|
@@ -431,7 +431,7 @@ function On(e) {
|
|
|
431
431
|
}
|
|
432
432
|
return a && n != null && (a.value = e.substring(n).trim(), o.push(a)), o;
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function Me(e) {
|
|
435
435
|
switch (e) {
|
|
436
436
|
case ":":
|
|
437
437
|
return "=";
|
|
@@ -443,14 +443,14 @@ function Be(e) {
|
|
|
443
443
|
throw new Error("what kind of op is this? " + e);
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function zn({
|
|
447
447
|
query: e,
|
|
448
448
|
attrsByName: t,
|
|
449
449
|
stringIndexed: a
|
|
450
450
|
}) {
|
|
451
451
|
if (!e.trim())
|
|
452
452
|
return [];
|
|
453
|
-
const n =
|
|
453
|
+
const n = jn(e), o = n.flatMap(
|
|
454
454
|
(l) => {
|
|
455
455
|
const i = t[l.field];
|
|
456
456
|
if (!i || !l.value)
|
|
@@ -474,7 +474,7 @@ function _n({
|
|
|
474
474
|
return [
|
|
475
475
|
[
|
|
476
476
|
l.field,
|
|
477
|
-
|
|
477
|
+
Me(l.operator),
|
|
478
478
|
JSON.parse(l.value)
|
|
479
479
|
]
|
|
480
480
|
];
|
|
@@ -485,12 +485,12 @@ function _n({
|
|
|
485
485
|
return [
|
|
486
486
|
[
|
|
487
487
|
l.field,
|
|
488
|
-
|
|
488
|
+
Me(l.operator),
|
|
489
489
|
JSON.parse(l.value)
|
|
490
490
|
]
|
|
491
491
|
];
|
|
492
492
|
} catch {
|
|
493
|
-
return [[l.field,
|
|
493
|
+
return [[l.field, Me(l.operator), l.value]];
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
for (const c of i.inferredTypes || ["json"])
|
|
@@ -500,7 +500,7 @@ function _n({
|
|
|
500
500
|
try {
|
|
501
501
|
g.push([
|
|
502
502
|
l.field,
|
|
503
|
-
|
|
503
|
+
Me(l.operator),
|
|
504
504
|
JSON.parse(l.value)
|
|
505
505
|
]);
|
|
506
506
|
} catch {
|
|
@@ -508,7 +508,7 @@ function _n({
|
|
|
508
508
|
break;
|
|
509
509
|
}
|
|
510
510
|
default: {
|
|
511
|
-
g.push([l.field,
|
|
511
|
+
g.push([l.field, Me(l.operator), l.value]);
|
|
512
512
|
break;
|
|
513
513
|
}
|
|
514
514
|
}
|
|
@@ -524,7 +524,7 @@ function _n({
|
|
|
524
524
|
]);
|
|
525
525
|
return o;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function Bn(e, t) {
|
|
528
528
|
if (t.length === e.length) {
|
|
529
529
|
for (let a = 0; a < t.length; a++)
|
|
530
530
|
for (let n = 0; n < 3; n++)
|
|
@@ -534,24 +534,24 @@ function Dn(e, t) {
|
|
|
534
534
|
}
|
|
535
535
|
return !1;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function Mn({
|
|
538
538
|
onSearchChange: e,
|
|
539
539
|
attrs: t,
|
|
540
540
|
initialFilters: a = []
|
|
541
541
|
}) {
|
|
542
|
-
const [n, o] = C(""), l = X(a), { attrsByName: i, stringIndexed: g } =
|
|
542
|
+
const [n, o] = C(""), l = X(a), { attrsByName: i, stringIndexed: g } = se(() => {
|
|
543
543
|
const s = {}, f = [];
|
|
544
544
|
for (const b of t || [])
|
|
545
545
|
s[b.name] = b, b.isIndex && b.checkedDataType === "string" && f.push(b);
|
|
546
546
|
return { attrsByName: s, stringIndexed: f };
|
|
547
547
|
}, [t]), c = ot(
|
|
548
|
-
|
|
549
|
-
const f =
|
|
550
|
-
|
|
548
|
+
Nn((s) => {
|
|
549
|
+
const f = zn({ query: s, attrsByName: i, stringIndexed: g });
|
|
550
|
+
Bn(l.current, f) || (l.current = f, e(f));
|
|
551
551
|
}, 80),
|
|
552
552
|
[i, g, l]
|
|
553
|
-
), p = n.indexOf(":") !== -1 ?
|
|
554
|
-
const f =
|
|
553
|
+
), p = n.indexOf(":") !== -1 ? En(n.split(" ")) : n, m = (t || []).flatMap((s) => {
|
|
554
|
+
const f = $n.some(
|
|
555
555
|
([v, k]) => v === s.namespace && k === s.name
|
|
556
556
|
);
|
|
557
557
|
if (s.type === "ref" || f)
|
|
@@ -579,7 +579,7 @@ function Ln({
|
|
|
579
579
|
return P(() => {
|
|
580
580
|
a.length > 0 && !n && o(a.map((s) => `${s[0]}:${s[2]}`).join(" "));
|
|
581
581
|
}, [a]), /* @__PURE__ */ h(
|
|
582
|
-
|
|
582
|
+
kr,
|
|
583
583
|
{
|
|
584
584
|
value: n,
|
|
585
585
|
onChange: (s) => {
|
|
@@ -588,7 +588,7 @@ function Ln({
|
|
|
588
588
|
immediate: !0,
|
|
589
589
|
children: [
|
|
590
590
|
/* @__PURE__ */ r(
|
|
591
|
-
|
|
591
|
+
xr,
|
|
592
592
|
{
|
|
593
593
|
size: 32,
|
|
594
594
|
className: "rounded-md border border-neutral-300 px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-800 dark:text-white dark:placeholder:text-neutral-500",
|
|
@@ -607,13 +607,13 @@ function Ln({
|
|
|
607
607
|
}
|
|
608
608
|
),
|
|
609
609
|
/* @__PURE__ */ r(
|
|
610
|
-
|
|
610
|
+
Sr,
|
|
611
611
|
{
|
|
612
612
|
anchor: "bottom start",
|
|
613
613
|
modal: !1,
|
|
614
614
|
className: "z-10 mt-1 w-(--input-width) divide-y overflow-auto rounded-md border border-neutral-300 bg-white shadow-lg dark:divide-neutral-700 dark:border-neutral-700 dark:bg-neutral-800",
|
|
615
615
|
children: m.map((s, f) => /* @__PURE__ */ r(
|
|
616
|
-
|
|
616
|
+
Nr,
|
|
617
617
|
{
|
|
618
618
|
value: s.display,
|
|
619
619
|
className: O(
|
|
@@ -630,14 +630,14 @@ function Ln({
|
|
|
630
630
|
}
|
|
631
631
|
);
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function Un(e) {
|
|
634
634
|
const [, t, a] = e["forward-identity"];
|
|
635
635
|
return e.catalog !== "system" || t === "$users" || t === "$files" || t === "$streams";
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function Pn(e) {
|
|
638
638
|
const t = {}, a = {};
|
|
639
639
|
for (const [o, l] of Object.entries(e))
|
|
640
|
-
|
|
640
|
+
Un(l) && (a[o] = l);
|
|
641
641
|
for (const o of Object.values(a)) {
|
|
642
642
|
const [, l] = o["forward-identity"];
|
|
643
643
|
t[l] || (t[l] = { id: l, name: l, attrs: {} });
|
|
@@ -705,13 +705,13 @@ function $n(e) {
|
|
|
705
705
|
}
|
|
706
706
|
return Object.values(t).map((o) => ({
|
|
707
707
|
...o,
|
|
708
|
-
attrs: Object.values(o.attrs).sort(
|
|
709
|
-
})).sort(
|
|
708
|
+
attrs: Object.values(o.attrs).sort(Jt)
|
|
709
|
+
})).sort(Jt);
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Jt(e, t) {
|
|
712
712
|
return e.name === "id" ? -1 : t.name === "id" ? 1 : e.name < t.name ? -1 : e.name > t.name ? 1 : 0;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function qn(e, t) {
|
|
715
715
|
const a = {};
|
|
716
716
|
return e && (a[e[0]] = e[1]), t?.length && (a.or = t.map(([n, o, l]) => {
|
|
717
717
|
switch (o) {
|
|
@@ -724,8 +724,8 @@ function zn(e, t) {
|
|
|
724
724
|
}
|
|
725
725
|
})), a;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
728
|
-
const c = g ? "asc" : "desc", p =
|
|
727
|
+
function Gn(e, t, a, n, o, l, i, g) {
|
|
728
|
+
const c = g ? "asc" : "desc", p = qn(a, n), m = t ? {
|
|
729
729
|
[t.name]: {
|
|
730
730
|
...Object.fromEntries(
|
|
731
731
|
t.attrs.filter((f) => f.type === "ref").map((f) => [f.name, { $: { fields: ["id"] } }])
|
|
@@ -752,19 +752,19 @@ function jn(e, t, a, n, o, l, i, g) {
|
|
|
752
752
|
allCount: s
|
|
753
753
|
};
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function Hn(e) {
|
|
756
756
|
const [t, a] = C({ namespaces: null, attrs: null });
|
|
757
757
|
return e.useQuery({ ____explorer___: {} }), P(() => {
|
|
758
758
|
function n(o) {
|
|
759
759
|
a({
|
|
760
760
|
attrs: o,
|
|
761
|
-
namespaces:
|
|
761
|
+
namespaces: Pn(o)
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
764
|
return e._core._reactor.subscribeAttrs(n);
|
|
765
765
|
}, [e]), t;
|
|
766
766
|
}
|
|
767
|
-
const
|
|
767
|
+
const er = (e) => {
|
|
768
768
|
const t = localStorage.getItem(`columnVisibility_${e}`);
|
|
769
769
|
if (!t)
|
|
770
770
|
return {};
|
|
@@ -773,9 +773,9 @@ const Qt = (e) => {
|
|
|
773
773
|
} catch (a) {
|
|
774
774
|
return console.error("Failed to parse column visibility", a), {};
|
|
775
775
|
}
|
|
776
|
-
},
|
|
776
|
+
}, Wn = (e) => {
|
|
777
777
|
const [t, a] = C(
|
|
778
|
-
|
|
778
|
+
er(e.appId)
|
|
779
779
|
);
|
|
780
780
|
return P(() => {
|
|
781
781
|
localStorage.setItem(
|
|
@@ -783,10 +783,10 @@ const Qt = (e) => {
|
|
|
783
783
|
JSON.stringify(t)
|
|
784
784
|
);
|
|
785
785
|
}, [e.appId, t]), P(() => {
|
|
786
|
-
a(
|
|
786
|
+
a(er(e.appId));
|
|
787
787
|
}, [e.appId]), { visibility: t, setVisibility: a, attrs: e.attrs };
|
|
788
788
|
};
|
|
789
|
-
function
|
|
789
|
+
function tr(e) {
|
|
790
790
|
if (typeof window > "u") return;
|
|
791
791
|
let t = window.localStorage.getItem(e);
|
|
792
792
|
if (t)
|
|
@@ -795,7 +795,7 @@ function Jt(e) {
|
|
|
795
795
|
} catch {
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Vn(e, t) {
|
|
799
799
|
if (typeof window > "u")
|
|
800
800
|
throw new Error("useLocalStorage/setState needs to run on the client");
|
|
801
801
|
const a = JSON.stringify(t);
|
|
@@ -809,22 +809,22 @@ function Un(e, t) {
|
|
|
809
809
|
new StorageEvent("storage", { key: e, newValue: a })
|
|
810
810
|
);
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
const a = X(
|
|
812
|
+
function Rt(e, t) {
|
|
813
|
+
const a = X(tr(e) || t), n = ot((l) => {
|
|
814
814
|
const i = () => {
|
|
815
|
-
a.current =
|
|
815
|
+
a.current = tr(e) || t, l();
|
|
816
816
|
};
|
|
817
817
|
return window.addEventListener("storage", i), () => {
|
|
818
818
|
window.removeEventListener("storage", i);
|
|
819
819
|
};
|
|
820
820
|
}, []);
|
|
821
|
-
return [
|
|
821
|
+
return [va(
|
|
822
822
|
n,
|
|
823
823
|
() => a.current,
|
|
824
824
|
() => t
|
|
825
|
-
), (l) =>
|
|
825
|
+
), (l) => Vn(e, l)];
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function Yn(e) {
|
|
828
828
|
const t = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"];
|
|
829
829
|
let a = 0;
|
|
830
830
|
if (!e) return "0 bytes";
|
|
@@ -832,7 +832,7 @@ function Pn(e) {
|
|
|
832
832
|
e /= 1024, a++;
|
|
833
833
|
return e.toFixed(2) + " " + t[a];
|
|
834
834
|
}
|
|
835
|
-
const
|
|
835
|
+
const Kn = (e, t) => {
|
|
836
836
|
const a = document.querySelector(`.th-${e}`);
|
|
837
837
|
if (!a)
|
|
838
838
|
throw new Error(`Element with class th-${e} not found`);
|
|
@@ -852,7 +852,7 @@ const qn = (e, t) => {
|
|
|
852
852
|
document.body.removeChild(o);
|
|
853
853
|
}
|
|
854
854
|
};
|
|
855
|
-
function
|
|
855
|
+
function Xn() {
|
|
856
856
|
const e = X(null), [t, a] = C(!1);
|
|
857
857
|
return yt(() => {
|
|
858
858
|
const { current: n } = e;
|
|
@@ -862,7 +862,7 @@ function Gn() {
|
|
|
862
862
|
})();
|
|
863
863
|
}, [e]), { ref: e, isOverflow: t, setIsOverflow: a };
|
|
864
864
|
}
|
|
865
|
-
const
|
|
865
|
+
const Zn = ({
|
|
866
866
|
header: e,
|
|
867
867
|
table: t,
|
|
868
868
|
headerGroup: a,
|
|
@@ -879,13 +879,13 @@ const Hn = ({
|
|
|
879
879
|
listeners: d,
|
|
880
880
|
setNodeRef: u,
|
|
881
881
|
transform: s
|
|
882
|
-
} =
|
|
882
|
+
} = yr({
|
|
883
883
|
id: e.column.id,
|
|
884
884
|
disabled: e.id === "select-col"
|
|
885
885
|
}), f = {
|
|
886
886
|
opacity: m ? 0.8 : 1,
|
|
887
887
|
position: "relative",
|
|
888
|
-
transform: e.id === "select-col" ? void 0 :
|
|
888
|
+
transform: e.id === "select-col" ? void 0 : Er.Translate.toString(s),
|
|
889
889
|
// translate instead of transform to avoid squishing
|
|
890
890
|
transition: "width transform 0.2s ease-in-out",
|
|
891
891
|
whiteSpace: "nowrap",
|
|
@@ -939,12 +939,12 @@ const Hn = ({
|
|
|
939
939
|
opacity: k ? 1 : void 0,
|
|
940
940
|
fontWeight: k ? "bold" : "normal"
|
|
941
941
|
},
|
|
942
|
-
children: k ? g ? /* @__PURE__ */ r(
|
|
942
|
+
children: k ? g ? /* @__PURE__ */ r(Ca, { strokeWidth: 3, width: 10 }) : /* @__PURE__ */ r(Ia, { strokeWidth: 3, width: 10 }) : /* @__PURE__ */ r(Aa, { strokeWidth: 3, width: 10 })
|
|
943
943
|
}
|
|
944
944
|
)
|
|
945
945
|
]
|
|
946
946
|
}
|
|
947
|
-
) : /* @__PURE__ */ r(
|
|
947
|
+
) : /* @__PURE__ */ r(B, { children: e.isPlaceholder ? null : lt(
|
|
948
948
|
e.column.columnDef.header,
|
|
949
949
|
e.getContext()
|
|
950
950
|
) })
|
|
@@ -973,11 +973,11 @@ const Hn = ({
|
|
|
973
973
|
},
|
|
974
974
|
e.id
|
|
975
975
|
);
|
|
976
|
-
},
|
|
977
|
-
const t = e.column.getIsResizing(), { history: a } = ut(), n = e.column.columnDef.meta, { isDragging: o, setNodeRef: l, transform: i } =
|
|
976
|
+
}, Qn = ({ cell: e }) => {
|
|
977
|
+
const t = e.column.getIsResizing(), { history: a } = ut(), n = e.column.columnDef.meta, { isDragging: o, setNodeRef: l, transform: i } = yr({
|
|
978
978
|
id: e.column.id,
|
|
979
979
|
disabled: e.column.id === "select-col"
|
|
980
|
-
}), [g, c] = C(!1), { ref: p, isOverflow: m, setIsOverflow: d } =
|
|
980
|
+
}), [g, c] = C(!1), { ref: p, isOverflow: m, setIsOverflow: d } = Xn(), u = (m || Se(e.getValue())) && !n?.isLink;
|
|
981
981
|
P(() => {
|
|
982
982
|
const w = new ResizeObserver(() => {
|
|
983
983
|
const v = p.current.scrollWidth > p.current.clientWidth || p.current.scrollHeight > p.current.clientHeight;
|
|
@@ -990,7 +990,7 @@ const Hn = ({
|
|
|
990
990
|
const s = {
|
|
991
991
|
opacity: o ? 0.8 : 1,
|
|
992
992
|
position: "relative",
|
|
993
|
-
transform: e.column.id === "select-col" ? void 0 :
|
|
993
|
+
transform: e.column.id === "select-col" ? void 0 : Er.Translate.toString(i),
|
|
994
994
|
// translate instead of transform to avoid squishing
|
|
995
995
|
transition: "width transform 0.2s ease-in-out",
|
|
996
996
|
width: e.column.getSize(),
|
|
@@ -1027,7 +1027,7 @@ const Hn = ({
|
|
|
1027
1027
|
return;
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
|
-
n?.copyable && We(
|
|
1030
|
+
n?.copyable && We(Tr(b)) && (c(!0), setTimeout(() => c(!1), 1e3));
|
|
1031
1031
|
},
|
|
1032
1032
|
children: g ? /* @__PURE__ */ r("div", { className: "h-1", children: "Copied!" }) : lt(e.column.columnDef.cell, e.getContext())
|
|
1033
1033
|
}
|
|
@@ -1040,36 +1040,36 @@ const Hn = ({
|
|
|
1040
1040
|
{
|
|
1041
1041
|
className: O(Se(b) && "p-0"),
|
|
1042
1042
|
side: "bottom",
|
|
1043
|
-
children: typeof b == "string" ? lt(e.column.columnDef.cell, e.getContext()) : /* @__PURE__ */ r(
|
|
1043
|
+
children: typeof b == "string" ? lt(e.column.columnDef.cell, e.getContext()) : /* @__PURE__ */ r(Jn, { pretty: !0, data: b })
|
|
1044
1044
|
}
|
|
1045
1045
|
)
|
|
1046
1046
|
] });
|
|
1047
1047
|
};
|
|
1048
|
-
function
|
|
1048
|
+
function Tr(e, t) {
|
|
1049
1049
|
return Se(e) ? JSON.stringify(e, null, t ? 2 : void 0) : String(e);
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1052
|
-
const a =
|
|
1051
|
+
function Jn({ data: e, pretty: t }) {
|
|
1052
|
+
const a = Tr(e, t), n = de();
|
|
1053
1053
|
return t && Se(e) ? /* @__PURE__ */ r(
|
|
1054
|
-
|
|
1054
|
+
$t,
|
|
1055
1055
|
{
|
|
1056
1056
|
darkMode: n.darkMode,
|
|
1057
1057
|
code: a,
|
|
1058
1058
|
language: "json"
|
|
1059
1059
|
}
|
|
1060
|
-
) : /* @__PURE__ */ r(
|
|
1060
|
+
) : /* @__PURE__ */ r(B, { children: a });
|
|
1061
1061
|
}
|
|
1062
|
-
const
|
|
1062
|
+
const eo = ({
|
|
1063
1063
|
visiblity: e,
|
|
1064
1064
|
localDates: t,
|
|
1065
1065
|
setLocalDates: a
|
|
1066
1066
|
}) => {
|
|
1067
1067
|
const [n, o] = C(!1);
|
|
1068
|
-
return /* @__PURE__ */ h(
|
|
1068
|
+
return /* @__PURE__ */ h(B, { children: [
|
|
1069
1069
|
/* @__PURE__ */ r(
|
|
1070
1070
|
ht,
|
|
1071
1071
|
{
|
|
1072
|
-
icon: /* @__PURE__ */ r(
|
|
1072
|
+
icon: /* @__PURE__ */ r(Ra, { width: 16 }),
|
|
1073
1073
|
label: "View Settings",
|
|
1074
1074
|
onClick: () => o(!0)
|
|
1075
1075
|
}
|
|
@@ -1084,12 +1084,12 @@ const Yn = ({
|
|
|
1084
1084
|
children: [
|
|
1085
1085
|
/* @__PURE__ */ h("div", { className: "flex items-center justify-between", children: [
|
|
1086
1086
|
/* @__PURE__ */ r("div", { className: "text-lg", children: "Explorer View Settings" }),
|
|
1087
|
-
/* @__PURE__ */ r("button", { onClick: () => o(!1), children: /* @__PURE__ */ r(
|
|
1087
|
+
/* @__PURE__ */ r("button", { onClick: () => o(!1), children: /* @__PURE__ */ r(gr, { className: "h-4 w-4 cursor-pointer" }) })
|
|
1088
1088
|
] }),
|
|
1089
1089
|
/* @__PURE__ */ h("div", { className: "py-2", children: [
|
|
1090
1090
|
/* @__PURE__ */ r("div", { children: "Visible Columns" }),
|
|
1091
1091
|
/* @__PURE__ */ r("div", { className: "py-1", children: e.attrs?.map((l) => /* @__PURE__ */ r("div", { className: "flex gap-2", children: /* @__PURE__ */ r(
|
|
1092
|
-
|
|
1092
|
+
te,
|
|
1093
1093
|
{
|
|
1094
1094
|
label: l.name,
|
|
1095
1095
|
checked: e.visibility[l.id + l.name] !== !1,
|
|
@@ -1104,7 +1104,7 @@ const Yn = ({
|
|
|
1104
1104
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
|
|
1105
1105
|
/* @__PURE__ */ r("div", { children: "Show Dates in Local Time" }),
|
|
1106
1106
|
/* @__PURE__ */ r(
|
|
1107
|
-
|
|
1107
|
+
Jr,
|
|
1108
1108
|
{
|
|
1109
1109
|
onClick: (l) => {
|
|
1110
1110
|
a(!t);
|
|
@@ -1119,7 +1119,7 @@ const Yn = ({
|
|
|
1119
1119
|
)
|
|
1120
1120
|
] });
|
|
1121
1121
|
};
|
|
1122
|
-
async function
|
|
1122
|
+
async function to({
|
|
1123
1123
|
appId: e,
|
|
1124
1124
|
attrId: t,
|
|
1125
1125
|
jobType: a,
|
|
@@ -1140,7 +1140,7 @@ async function Kn({
|
|
|
1140
1140
|
})
|
|
1141
1141
|
})).json()).job;
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function Or(e, t, a, n) {
|
|
1144
1144
|
let o = !1, l = !1, i = 20, g = null;
|
|
1145
1145
|
const c = (m) => {
|
|
1146
1146
|
if (m !== g)
|
|
@@ -1174,7 +1174,7 @@ function me(e) {
|
|
|
1174
1174
|
function be(e) {
|
|
1175
1175
|
return e.job_status === "completed" || e.job_status === "errored";
|
|
1176
1176
|
}
|
|
1177
|
-
const
|
|
1177
|
+
const ro = ({
|
|
1178
1178
|
attr: e,
|
|
1179
1179
|
appId: t,
|
|
1180
1180
|
isRequired: a,
|
|
@@ -1224,25 +1224,25 @@ const Xn = ({
|
|
|
1224
1224
|
}
|
|
1225
1225
|
)).json();
|
|
1226
1226
|
m((L) => ({ ...L, [k]: q.job })), c((L) => ({ ...L, [k]: void 0 })), b(!1);
|
|
1227
|
-
const
|
|
1227
|
+
const M = Or(
|
|
1228
1228
|
t,
|
|
1229
1229
|
q.job.id,
|
|
1230
1230
|
i,
|
|
1231
1231
|
s.apiURI
|
|
1232
1232
|
);
|
|
1233
|
-
await
|
|
1233
|
+
await M.start((L, G) => {
|
|
1234
1234
|
if (!G && L) {
|
|
1235
|
-
const H = L.work_estimate ?? 5e4, Y = L.work_completed ?? 0,
|
|
1235
|
+
const H = L.work_estimate ?? 5e4, Y = L.work_completed ?? 0, j = Math.floor(
|
|
1236
1236
|
Y / H * 100
|
|
1237
1237
|
);
|
|
1238
|
-
u((
|
|
1239
|
-
...
|
|
1238
|
+
u((z) => ({ ...z, [k]: j })), m((z) => ({
|
|
1239
|
+
...z,
|
|
1240
1240
|
[k]: L
|
|
1241
1241
|
}));
|
|
1242
1242
|
}
|
|
1243
|
-
}),
|
|
1243
|
+
}), M.stop();
|
|
1244
1244
|
}));
|
|
1245
|
-
}, v =
|
|
1245
|
+
}, v = se(() => Object.values(d).filter((k) => k > 0 && k < 100).reduce((k, x) => k + x, 0) / Object.values(d).filter((k) => k > 0 && k < 100).length, [d]);
|
|
1246
1246
|
return {
|
|
1247
1247
|
isPending: Object.values(g).filter(Boolean).length > 0,
|
|
1248
1248
|
progress: v,
|
|
@@ -1253,7 +1253,7 @@ const Xn = ({
|
|
|
1253
1253
|
running: p,
|
|
1254
1254
|
apply: w
|
|
1255
1255
|
};
|
|
1256
|
-
},
|
|
1256
|
+
}, ao = () => {
|
|
1257
1257
|
const [e, t] = C({});
|
|
1258
1258
|
return {
|
|
1259
1259
|
notes: e,
|
|
@@ -1267,7 +1267,7 @@ const Xn = ({
|
|
|
1267
1267
|
});
|
|
1268
1268
|
}
|
|
1269
1269
|
};
|
|
1270
|
-
},
|
|
1270
|
+
}, no = (e, t, a) => {
|
|
1271
1271
|
const n = t.name, o = [];
|
|
1272
1272
|
return t.attrs.forEach((l) => {
|
|
1273
1273
|
o.push([
|
|
@@ -1297,14 +1297,14 @@ const Xn = ({
|
|
|
1297
1297
|
});
|
|
1298
1298
|
}), o;
|
|
1299
1299
|
};
|
|
1300
|
-
function
|
|
1300
|
+
function oo({
|
|
1301
1301
|
db: e,
|
|
1302
1302
|
namespace: t,
|
|
1303
1303
|
namespaces: a,
|
|
1304
1304
|
onClose: n,
|
|
1305
1305
|
isSystemCatalogNs: o
|
|
1306
1306
|
}) {
|
|
1307
|
-
const i = de().appId, { history: g } = ut(), { mutate: c } =
|
|
1307
|
+
const i = de().appId, { history: g } = ut(), { mutate: c } = hr(), [p, m] = C({ type: "main" }), [d, u] = C(t.name), [s, f] = C(
|
|
1308
1308
|
null
|
|
1309
1309
|
);
|
|
1310
1310
|
async function b() {
|
|
@@ -1318,22 +1318,22 @@ function Jn({
|
|
|
1318
1318
|
f("Namespace name cannot start with $");
|
|
1319
1319
|
return;
|
|
1320
1320
|
}
|
|
1321
|
-
const _ =
|
|
1321
|
+
const _ = no(x, t, a);
|
|
1322
1322
|
await e.core._reactor.pushOps(_), g.push(
|
|
1323
1323
|
{
|
|
1324
1324
|
namespace: x
|
|
1325
1325
|
},
|
|
1326
1326
|
!0
|
|
1327
|
-
),
|
|
1327
|
+
), oe("Renamed namespace to " + x), u(""), m({ type: "main" });
|
|
1328
1328
|
}
|
|
1329
|
-
const v =
|
|
1329
|
+
const v = ao(), k = se(() => p.type === "edit" && t.attrs.find(
|
|
1330
1330
|
(x) => x.id === p.attrId && x.isForward === p.isForward
|
|
1331
1331
|
), [
|
|
1332
1332
|
p.type === "edit" ? p.attrId : null,
|
|
1333
1333
|
p.type === "edit" ? p.isForward : null,
|
|
1334
1334
|
t.attrs
|
|
1335
1335
|
]);
|
|
1336
|
-
return /* @__PURE__ */ h(
|
|
1336
|
+
return /* @__PURE__ */ h(B, { children: [
|
|
1337
1337
|
p.type === "rename" && /* @__PURE__ */ h("div", { className: "px-2", children: [
|
|
1338
1338
|
/* @__PURE__ */ r(
|
|
1339
1339
|
"button",
|
|
@@ -1400,7 +1400,7 @@ function Jn({
|
|
|
1400
1400
|
onClick: () => {
|
|
1401
1401
|
m({ type: "rename" });
|
|
1402
1402
|
},
|
|
1403
|
-
icon: /* @__PURE__ */ r(
|
|
1403
|
+
icon: /* @__PURE__ */ r(qa, { className: "h-4 w-4 opacity-50" }),
|
|
1404
1404
|
label: "Rename"
|
|
1405
1405
|
}
|
|
1406
1406
|
),
|
|
@@ -1427,7 +1427,7 @@ function Jn({
|
|
|
1427
1427
|
children: [
|
|
1428
1428
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-3", children: [
|
|
1429
1429
|
/* @__PURE__ */ r("span", { className: "py-0.5 font-bold", children: x.name }),
|
|
1430
|
-
v.notes[x.id]?.message && /* @__PURE__ */ r(
|
|
1430
|
+
v.notes[x.id]?.message && /* @__PURE__ */ r(Dt, { children: /* @__PURE__ */ r("div", { className: "px-2 text-xs text-gray-500 dark:text-neutral-400", children: v.notes[x.id].message }) })
|
|
1431
1431
|
] }),
|
|
1432
1432
|
x.name !== "id" ? /* @__PURE__ */ r(
|
|
1433
1433
|
V,
|
|
@@ -1456,13 +1456,13 @@ function Jn({
|
|
|
1456
1456
|
variant: "secondary",
|
|
1457
1457
|
onClick: () => m({ type: "add" }),
|
|
1458
1458
|
children: [
|
|
1459
|
-
/* @__PURE__ */ r(
|
|
1459
|
+
/* @__PURE__ */ r(br, { className: "inline", height: "12px" }),
|
|
1460
1460
|
"New attribute"
|
|
1461
1461
|
]
|
|
1462
1462
|
}
|
|
1463
1463
|
) }),
|
|
1464
1464
|
/* @__PURE__ */ r(
|
|
1465
|
-
|
|
1465
|
+
_n,
|
|
1466
1466
|
{
|
|
1467
1467
|
notes: v,
|
|
1468
1468
|
db: e,
|
|
@@ -1471,19 +1471,19 @@ function Jn({
|
|
|
1471
1471
|
}
|
|
1472
1472
|
)
|
|
1473
1473
|
] }) : p.type === "add" ? /* @__PURE__ */ r(
|
|
1474
|
-
|
|
1474
|
+
io,
|
|
1475
1475
|
{
|
|
1476
1476
|
db: e,
|
|
1477
1477
|
namespace: t,
|
|
1478
1478
|
namespaces: a,
|
|
1479
1479
|
onClose: () => m({ type: "main" }),
|
|
1480
|
-
constraints:
|
|
1480
|
+
constraints: rr({
|
|
1481
1481
|
namespaceName: t.name,
|
|
1482
1482
|
isSystemCatalogNs: o
|
|
1483
1483
|
})
|
|
1484
1484
|
}
|
|
1485
1485
|
) : p.type === "delete" ? /* @__PURE__ */ r(
|
|
1486
|
-
|
|
1486
|
+
_r,
|
|
1487
1487
|
{
|
|
1488
1488
|
name: t.name,
|
|
1489
1489
|
type: "namespace",
|
|
@@ -1491,12 +1491,12 @@ function Jn({
|
|
|
1491
1491
|
onConfirm: b
|
|
1492
1492
|
}
|
|
1493
1493
|
) : p.type === "edit" && k ? /* @__PURE__ */ r(
|
|
1494
|
-
|
|
1494
|
+
mo,
|
|
1495
1495
|
{
|
|
1496
1496
|
db: e,
|
|
1497
1497
|
attr: k,
|
|
1498
1498
|
onClose: () => m({ type: "main" }),
|
|
1499
|
-
constraints:
|
|
1499
|
+
constraints: rr({
|
|
1500
1500
|
namespaceName: t.name,
|
|
1501
1501
|
isSystemCatalogNs: o,
|
|
1502
1502
|
attr: k
|
|
@@ -1505,7 +1505,7 @@ function Jn({
|
|
|
1505
1505
|
) : null
|
|
1506
1506
|
] });
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function _r({
|
|
1509
1509
|
name: e,
|
|
1510
1510
|
type: t,
|
|
1511
1511
|
onClose: a,
|
|
@@ -1545,14 +1545,14 @@ function Or({
|
|
|
1545
1545
|
] })
|
|
1546
1546
|
] });
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function io({
|
|
1549
1549
|
db: e,
|
|
1550
1550
|
namespace: t,
|
|
1551
1551
|
namespaces: a,
|
|
1552
1552
|
onClose: n,
|
|
1553
1553
|
constraints: o
|
|
1554
1554
|
}) {
|
|
1555
|
-
const [l, i] = C(!1), [g, c] = C(!1), [p, m] = C(!1), [d, u] = C(!1), [s, f] = C(!1), [b, w] = C(null), [v, k] = C("blob"), [x, _] = C("many-many"), [q,
|
|
1555
|
+
const [l, i] = C(!1), [g, c] = C(!1), [p, m] = C(!1), [d, u] = C(!1), [s, f] = C(!1), [b, w] = C(null), [v, k] = C("blob"), [x, _] = C("many-many"), [q, M] = C(() => a.find((A) => A.name !== t.name) ?? a[0]), [L, G] = C(""), [H, Y] = C(t.name), j = x === "one-one" || x === "one-many", z = x === "one-one" || x === "many-one", S = Lr({
|
|
1556
1556
|
attrName: L,
|
|
1557
1557
|
reverseAttrName: H,
|
|
1558
1558
|
namespaceName: t.name,
|
|
@@ -1566,8 +1566,8 @@ function eo({
|
|
|
1566
1566
|
async function I() {
|
|
1567
1567
|
if (v === "blob") {
|
|
1568
1568
|
const D = [["add-attr", {
|
|
1569
|
-
id:
|
|
1570
|
-
"forward-identity": [
|
|
1569
|
+
id: Be(),
|
|
1570
|
+
"forward-identity": [Be(), t.name, L],
|
|
1571
1571
|
"value-type": "blob",
|
|
1572
1572
|
cardinality: "one",
|
|
1573
1573
|
"unique?": p,
|
|
@@ -1579,15 +1579,15 @@ function eo({
|
|
|
1579
1579
|
} else {
|
|
1580
1580
|
if (!q) throw new Error("No reverse namespace");
|
|
1581
1581
|
const D = [["add-attr", {
|
|
1582
|
-
id:
|
|
1582
|
+
id: Be(),
|
|
1583
1583
|
...It[x],
|
|
1584
|
-
"forward-identity": [
|
|
1585
|
-
"reverse-identity": [
|
|
1584
|
+
"forward-identity": [Be(), t.name, L],
|
|
1585
|
+
"reverse-identity": [Be(), q.name, H],
|
|
1586
1586
|
"value-type": "ref",
|
|
1587
1587
|
"index?": !1,
|
|
1588
1588
|
"required?": l,
|
|
1589
|
-
"on-delete":
|
|
1590
|
-
"on-delete-reverse":
|
|
1589
|
+
"on-delete": j && d ? "cascade" : void 0,
|
|
1590
|
+
"on-delete-reverse": z && s ? "cascade" : void 0
|
|
1591
1591
|
}]];
|
|
1592
1592
|
await e._core._reactor.pushOps(D), n();
|
|
1593
1593
|
}
|
|
@@ -1600,7 +1600,7 @@ function eo({
|
|
|
1600
1600
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-1", children: [
|
|
1601
1601
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Type" }),
|
|
1602
1602
|
/* @__PURE__ */ r(
|
|
1603
|
-
|
|
1603
|
+
qr,
|
|
1604
1604
|
{
|
|
1605
1605
|
ariaLabel: "Text alignment",
|
|
1606
1606
|
selectedId: v,
|
|
@@ -1612,7 +1612,7 @@ function eo({
|
|
|
1612
1612
|
}
|
|
1613
1613
|
)
|
|
1614
1614
|
] }),
|
|
1615
|
-
v === "blob" ? /* @__PURE__ */ h(
|
|
1615
|
+
v === "blob" ? /* @__PURE__ */ h(B, { children: [
|
|
1616
1616
|
/* @__PURE__ */ h("div", { className: "flex flex-1 flex-col gap-1", children: [
|
|
1617
1617
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Name" }),
|
|
1618
1618
|
/* @__PURE__ */ r(Ne, { value: L, onChange: (A) => G(A) })
|
|
@@ -1620,7 +1620,7 @@ function eo({
|
|
|
1620
1620
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-2", children: [
|
|
1621
1621
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Constraints" }),
|
|
1622
1622
|
/* @__PURE__ */ r("div", { className: "flex gap-2", children: /* @__PURE__ */ r(
|
|
1623
|
-
|
|
1623
|
+
te,
|
|
1624
1624
|
{
|
|
1625
1625
|
disabled: o.require.disabled,
|
|
1626
1626
|
checked: l,
|
|
@@ -1633,7 +1633,7 @@ function eo({
|
|
|
1633
1633
|
}
|
|
1634
1634
|
) }),
|
|
1635
1635
|
/* @__PURE__ */ r("div", { className: "flex gap-2", children: /* @__PURE__ */ r(
|
|
1636
|
-
|
|
1636
|
+
te,
|
|
1637
1637
|
{
|
|
1638
1638
|
checked: g,
|
|
1639
1639
|
onChange: (A) => c(A),
|
|
@@ -1644,7 +1644,7 @@ function eo({
|
|
|
1644
1644
|
}
|
|
1645
1645
|
) }),
|
|
1646
1646
|
/* @__PURE__ */ r("div", { className: "flex gap-2", children: /* @__PURE__ */ r(
|
|
1647
|
-
|
|
1647
|
+
te,
|
|
1648
1648
|
{
|
|
1649
1649
|
checked: p,
|
|
1650
1650
|
onChange: (A) => m(A),
|
|
@@ -1692,7 +1692,7 @@ function eo({
|
|
|
1692
1692
|
}
|
|
1693
1693
|
) })
|
|
1694
1694
|
] })
|
|
1695
|
-
] }) : v === "ref" ? /* @__PURE__ */ h(
|
|
1695
|
+
] }) : v === "ref" ? /* @__PURE__ */ h(B, { children: [
|
|
1696
1696
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-1", children: [
|
|
1697
1697
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Link to namespace" }),
|
|
1698
1698
|
/* @__PURE__ */ r(
|
|
@@ -1706,13 +1706,13 @@ function eo({
|
|
|
1706
1706
|
onChange: (A) => {
|
|
1707
1707
|
if (!A) return;
|
|
1708
1708
|
const D = a.find((F) => F.id === A.value);
|
|
1709
|
-
|
|
1709
|
+
M(D);
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
1712
1712
|
)
|
|
1713
1713
|
] }),
|
|
1714
1714
|
/* @__PURE__ */ r(
|
|
1715
|
-
|
|
1715
|
+
Dr,
|
|
1716
1716
|
{
|
|
1717
1717
|
relationship: x,
|
|
1718
1718
|
attrName: L,
|
|
@@ -1722,10 +1722,10 @@ function eo({
|
|
|
1722
1722
|
setAttrName: G,
|
|
1723
1723
|
setReverseAttrName: Y,
|
|
1724
1724
|
setRelationship: _,
|
|
1725
|
-
isCascadeAllowed:
|
|
1725
|
+
isCascadeAllowed: j,
|
|
1726
1726
|
isCascade: d,
|
|
1727
1727
|
setIsCascade: u,
|
|
1728
|
-
isCascadeReverseAllowed:
|
|
1728
|
+
isCascadeReverseAllowed: z,
|
|
1729
1729
|
isCascadeReverse: s,
|
|
1730
1730
|
setIsCascadeReverse: f,
|
|
1731
1731
|
isRequired: l,
|
|
@@ -1910,7 +1910,7 @@ function Ke({
|
|
|
1910
1910
|
] });
|
|
1911
1911
|
}
|
|
1912
1912
|
}
|
|
1913
|
-
function
|
|
1913
|
+
function Dr({
|
|
1914
1914
|
attrName: e,
|
|
1915
1915
|
reverseAttrName: t,
|
|
1916
1916
|
namespaceName: a,
|
|
@@ -1930,7 +1930,7 @@ function _r({
|
|
|
1930
1930
|
constraints: w
|
|
1931
1931
|
}) {
|
|
1932
1932
|
const v = e && n && t;
|
|
1933
|
-
return /* @__PURE__ */ h(
|
|
1933
|
+
return /* @__PURE__ */ h(B, { children: [
|
|
1934
1934
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-4 md:flex-row md:gap-2", children: [
|
|
1935
1935
|
/* @__PURE__ */ h("div", { className: "flex flex-1 flex-col gap-1", children: [
|
|
1936
1936
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Forward attribute name" }),
|
|
@@ -1943,7 +1943,7 @@ function _r({
|
|
|
1943
1943
|
onChange: (k) => l(k)
|
|
1944
1944
|
}
|
|
1945
1945
|
),
|
|
1946
|
-
/* @__PURE__ */ r("div", { className: "rounded-xs py-0.5 text-xs text-gray-500 dark:text-neutral-400", children: v ? /* @__PURE__ */ h(
|
|
1946
|
+
/* @__PURE__ */ r("div", { className: "rounded-xs py-0.5 text-xs text-gray-500 dark:text-neutral-400", children: v ? /* @__PURE__ */ h(B, { children: [
|
|
1947
1947
|
/* @__PURE__ */ h("strong", { children: [
|
|
1948
1948
|
a,
|
|
1949
1949
|
".",
|
|
@@ -1952,7 +1952,7 @@ function _r({
|
|
|
1952
1952
|
" ",
|
|
1953
1953
|
"will link to ",
|
|
1954
1954
|
/* @__PURE__ */ r("strong", { children: n })
|
|
1955
|
-
] }) : /* @__PURE__ */ r(
|
|
1955
|
+
] }) : /* @__PURE__ */ r(B, { children: " " }) })
|
|
1956
1956
|
] }),
|
|
1957
1957
|
/* @__PURE__ */ h("div", { className: "flex flex-1 flex-col gap-1", children: [
|
|
1958
1958
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Reverse attribute name" }),
|
|
@@ -1965,7 +1965,7 @@ function _r({
|
|
|
1965
1965
|
onChange: (k) => i(k)
|
|
1966
1966
|
}
|
|
1967
1967
|
),
|
|
1968
|
-
/* @__PURE__ */ r("div", { className: "rounded-xs py-0.5 text-xs text-gray-500 dark:text-neutral-400", children: v ? /* @__PURE__ */ h(
|
|
1968
|
+
/* @__PURE__ */ r("div", { className: "rounded-xs py-0.5 text-xs text-gray-500 dark:text-neutral-400", children: v ? /* @__PURE__ */ h(B, { children: [
|
|
1969
1969
|
/* @__PURE__ */ h("strong", { children: [
|
|
1970
1970
|
n,
|
|
1971
1971
|
".",
|
|
@@ -1974,13 +1974,13 @@ function _r({
|
|
|
1974
1974
|
" ",
|
|
1975
1975
|
"will link to ",
|
|
1976
1976
|
/* @__PURE__ */ r("strong", { children: a })
|
|
1977
|
-
] }) : /* @__PURE__ */ r(
|
|
1977
|
+
] }) : /* @__PURE__ */ r(B, { children: " " }) })
|
|
1978
1978
|
] })
|
|
1979
1979
|
] }),
|
|
1980
1980
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-1", children: [
|
|
1981
1981
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Relationship" }),
|
|
1982
1982
|
/* @__PURE__ */ r(
|
|
1983
|
-
|
|
1983
|
+
lo,
|
|
1984
1984
|
{
|
|
1985
1985
|
disabled: !v || w.attr.disabled,
|
|
1986
1986
|
value: o,
|
|
@@ -1998,17 +1998,17 @@ function _r({
|
|
|
1998
1998
|
"div",
|
|
1999
1999
|
{
|
|
2000
2000
|
className: "text-xs wrap-break-word text-gray-500 dark:text-neutral-400",
|
|
2001
|
-
children: v ?
|
|
2001
|
+
children: v ? so[o](
|
|
2002
2002
|
a,
|
|
2003
2003
|
n,
|
|
2004
2004
|
e,
|
|
2005
2005
|
t
|
|
2006
|
-
) : /* @__PURE__ */ r(
|
|
2006
|
+
) : /* @__PURE__ */ r(B, { children: " " })
|
|
2007
2007
|
}
|
|
2008
2008
|
)
|
|
2009
2009
|
] }),
|
|
2010
2010
|
/* @__PURE__ */ r("div", { className: "flex gap-2", children: /* @__PURE__ */ r(
|
|
2011
|
-
|
|
2011
|
+
te,
|
|
2012
2012
|
{
|
|
2013
2013
|
checked: m && c,
|
|
2014
2014
|
disabled: !m || w.attr.disabled,
|
|
@@ -2030,7 +2030,7 @@ function _r({
|
|
|
2030
2030
|
}
|
|
2031
2031
|
) }),
|
|
2032
2032
|
/* @__PURE__ */ r("div", { className: "flex gap-2", children: /* @__PURE__ */ r(
|
|
2033
|
-
|
|
2033
|
+
te,
|
|
2034
2034
|
{
|
|
2035
2035
|
checked: s && d,
|
|
2036
2036
|
disabled: !s || w.attr.disabled,
|
|
@@ -2054,7 +2054,7 @@ function _r({
|
|
|
2054
2054
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-1", children: [
|
|
2055
2055
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Constraints" }),
|
|
2056
2056
|
/* @__PURE__ */ r("div", { className: "flex gap-2", children: /* @__PURE__ */ r(
|
|
2057
|
-
|
|
2057
|
+
te,
|
|
2058
2058
|
{
|
|
2059
2059
|
disabled: w.require.disabled,
|
|
2060
2060
|
title: w.require.message,
|
|
@@ -2069,7 +2069,7 @@ function _r({
|
|
|
2069
2069
|
] })
|
|
2070
2070
|
] });
|
|
2071
2071
|
}
|
|
2072
|
-
function
|
|
2072
|
+
function lo({
|
|
2073
2073
|
value: e,
|
|
2074
2074
|
disabled: t,
|
|
2075
2075
|
onChange: a,
|
|
@@ -2109,8 +2109,8 @@ function to({
|
|
|
2109
2109
|
}
|
|
2110
2110
|
);
|
|
2111
2111
|
}
|
|
2112
|
-
const
|
|
2113
|
-
"many-many": (e, t, a, n) => /* @__PURE__ */ h(
|
|
2112
|
+
const so = {
|
|
2113
|
+
"many-many": (e, t, a, n) => /* @__PURE__ */ h(B, { children: [
|
|
2114
2114
|
/* @__PURE__ */ r("strong", { children: e }),
|
|
2115
2115
|
" can have many ",
|
|
2116
2116
|
/* @__PURE__ */ r("strong", { children: a }),
|
|
@@ -2121,7 +2121,7 @@ const ro = {
|
|
|
2121
2121
|
" ",
|
|
2122
2122
|
/* @__PURE__ */ r("strong", { children: n })
|
|
2123
2123
|
] }),
|
|
2124
|
-
"one-one": (e, t, a, n) => /* @__PURE__ */ h(
|
|
2124
|
+
"one-one": (e, t, a, n) => /* @__PURE__ */ h(B, { children: [
|
|
2125
2125
|
/* @__PURE__ */ r("strong", { children: e }),
|
|
2126
2126
|
" can have only one ",
|
|
2127
2127
|
/* @__PURE__ */ r("strong", { children: a }),
|
|
@@ -2131,7 +2131,7 @@ const ro = {
|
|
|
2131
2131
|
" can only have one ",
|
|
2132
2132
|
/* @__PURE__ */ r("strong", { children: n })
|
|
2133
2133
|
] }),
|
|
2134
|
-
"many-one": (e, t, a, n) => /* @__PURE__ */ h(
|
|
2134
|
+
"many-one": (e, t, a, n) => /* @__PURE__ */ h(B, { children: [
|
|
2135
2135
|
/* @__PURE__ */ r("strong", { children: e }),
|
|
2136
2136
|
" can have many ",
|
|
2137
2137
|
/* @__PURE__ */ r("strong", { children: a }),
|
|
@@ -2141,7 +2141,7 @@ const ro = {
|
|
|
2141
2141
|
" can only have one ",
|
|
2142
2142
|
/* @__PURE__ */ r("strong", { children: n })
|
|
2143
2143
|
] }),
|
|
2144
|
-
"one-many": (e, t, a, n) => /* @__PURE__ */ h(
|
|
2144
|
+
"one-many": (e, t, a, n) => /* @__PURE__ */ h(B, { children: [
|
|
2145
2145
|
/* @__PURE__ */ r("strong", { children: e }),
|
|
2146
2146
|
" can have only one ",
|
|
2147
2147
|
/* @__PURE__ */ r("strong", { children: a }),
|
|
@@ -2153,7 +2153,7 @@ const ro = {
|
|
|
2153
2153
|
/* @__PURE__ */ r("strong", { children: n })
|
|
2154
2154
|
] })
|
|
2155
2155
|
};
|
|
2156
|
-
async function
|
|
2156
|
+
async function co({
|
|
2157
2157
|
appId: e,
|
|
2158
2158
|
attr: t,
|
|
2159
2159
|
isRequired: a,
|
|
@@ -2167,7 +2167,7 @@ async function ao({
|
|
|
2167
2167
|
l.current?.();
|
|
2168
2168
|
const g = `${t.namespace}.${t.name}`;
|
|
2169
2169
|
try {
|
|
2170
|
-
const c = await
|
|
2170
|
+
const c = await to(
|
|
2171
2171
|
{
|
|
2172
2172
|
appId: e,
|
|
2173
2173
|
attrId: t.id,
|
|
@@ -2177,26 +2177,26 @@ async function ao({
|
|
|
2177
2177
|
n
|
|
2178
2178
|
);
|
|
2179
2179
|
o(c);
|
|
2180
|
-
const p =
|
|
2180
|
+
const p = Or(e, c.id, n, i);
|
|
2181
2181
|
l.current = p.stop;
|
|
2182
2182
|
const m = await p.start((d, u) => {
|
|
2183
|
-
u &&
|
|
2183
|
+
u && le(`Error while marking ${g} as required.`), d && o(d);
|
|
2184
2184
|
});
|
|
2185
2185
|
if (m) {
|
|
2186
2186
|
if (m.job_status === "completed")
|
|
2187
|
-
return
|
|
2187
|
+
return oe(
|
|
2188
2188
|
a ? `Marked ${g} as required.` : `Marked ${g} as optional.`
|
|
2189
2189
|
), "completed";
|
|
2190
2190
|
if (m.job_status === "canceled")
|
|
2191
|
-
return
|
|
2191
|
+
return le("Marking required was canceled."), "canceled";
|
|
2192
2192
|
if (m.job_status === "errored")
|
|
2193
|
-
return m.error === "invalid-triple-error" ?
|
|
2193
|
+
return m.error === "invalid-triple-error" ? le(`Found invalid data while updating ${g}.`) : le(`Encountered an error while updating ${g}.`), "errored";
|
|
2194
2194
|
}
|
|
2195
2195
|
} catch (c) {
|
|
2196
|
-
return console.error(c),
|
|
2196
|
+
return console.error(c), le(`Unexpected error while updating ${g}`), "errored";
|
|
2197
2197
|
}
|
|
2198
2198
|
}
|
|
2199
|
-
const
|
|
2199
|
+
const uo = ({
|
|
2200
2200
|
pendingJob: e,
|
|
2201
2201
|
runningJob: t,
|
|
2202
2202
|
value: a,
|
|
@@ -2208,11 +2208,11 @@ const no = ({
|
|
|
2208
2208
|
const g = !t || be(t), c = Ye();
|
|
2209
2209
|
return P(() => {
|
|
2210
2210
|
t && me(t) && n(i.checkedDataType || "any");
|
|
2211
|
-
}, [t]), /* @__PURE__ */ h(
|
|
2211
|
+
}, [t]), /* @__PURE__ */ h(B, { children: [
|
|
2212
2212
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ h("h6", { className: "text-md font-bold", children: [
|
|
2213
2213
|
"Enforce type",
|
|
2214
2214
|
" ",
|
|
2215
|
-
/* @__PURE__ */ r(
|
|
2215
|
+
/* @__PURE__ */ r(Dt, { children: /* @__PURE__ */ r("div", { className: "w-48 text-sm", children: "Checks the type on all existing entities and enforces the type when entities are created or updated." }) })
|
|
2216
2216
|
] }) }),
|
|
2217
2217
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
|
|
2218
2218
|
/* @__PURE__ */ r(
|
|
@@ -2271,7 +2271,7 @@ const no = ({
|
|
|
2271
2271
|
}
|
|
2272
2272
|
)
|
|
2273
2273
|
] });
|
|
2274
|
-
},
|
|
2274
|
+
}, po = ({
|
|
2275
2275
|
pendingJob: e,
|
|
2276
2276
|
runningJob: t,
|
|
2277
2277
|
value: a,
|
|
@@ -2283,10 +2283,10 @@ const no = ({
|
|
|
2283
2283
|
const g = Ye();
|
|
2284
2284
|
return P(() => {
|
|
2285
2285
|
t && me(t) && n(i.isRequired || !1);
|
|
2286
|
-
}, [t]), /* @__PURE__ */ h(
|
|
2286
|
+
}, [t]), /* @__PURE__ */ h(B, { children: [
|
|
2287
2287
|
/* @__PURE__ */ h("div", { className: "flex justify-between", children: [
|
|
2288
2288
|
/* @__PURE__ */ r(
|
|
2289
|
-
|
|
2289
|
+
te,
|
|
2290
2290
|
{
|
|
2291
2291
|
disabled: o || t && !be(t),
|
|
2292
2292
|
title: o ? l : void 0,
|
|
@@ -2327,7 +2327,7 @@ const no = ({
|
|
|
2327
2327
|
}
|
|
2328
2328
|
)
|
|
2329
2329
|
] });
|
|
2330
|
-
},
|
|
2330
|
+
}, go = ({
|
|
2331
2331
|
pendingJob: e,
|
|
2332
2332
|
runningJob: t,
|
|
2333
2333
|
value: a,
|
|
@@ -2339,10 +2339,10 @@ const no = ({
|
|
|
2339
2339
|
const g = Ye();
|
|
2340
2340
|
return P(() => {
|
|
2341
2341
|
t && me(t) && n(i.isIndex);
|
|
2342
|
-
}, [t]), /* @__PURE__ */ h(
|
|
2342
|
+
}, [t]), /* @__PURE__ */ h(B, { children: [
|
|
2343
2343
|
/* @__PURE__ */ h("div", { className: "flex justify-between", children: [
|
|
2344
2344
|
/* @__PURE__ */ r(
|
|
2345
|
-
|
|
2345
|
+
te,
|
|
2346
2346
|
{
|
|
2347
2347
|
disabled: o || t && !be(t),
|
|
2348
2348
|
title: o ? l : void 0,
|
|
@@ -2383,7 +2383,7 @@ const no = ({
|
|
|
2383
2383
|
}
|
|
2384
2384
|
)
|
|
2385
2385
|
] });
|
|
2386
|
-
},
|
|
2386
|
+
}, ho = ({
|
|
2387
2387
|
pendingJob: e,
|
|
2388
2388
|
runningJob: t,
|
|
2389
2389
|
value: a,
|
|
@@ -2395,10 +2395,10 @@ const no = ({
|
|
|
2395
2395
|
const g = Ye();
|
|
2396
2396
|
return P(() => {
|
|
2397
2397
|
t && me(t) && n(i.isUniq);
|
|
2398
|
-
}, [t]), /* @__PURE__ */ h(
|
|
2398
|
+
}, [t]), /* @__PURE__ */ h(B, { children: [
|
|
2399
2399
|
/* @__PURE__ */ h("div", { className: "flex justify-between", children: [
|
|
2400
2400
|
/* @__PURE__ */ r(
|
|
2401
|
-
|
|
2401
|
+
te,
|
|
2402
2402
|
{
|
|
2403
2403
|
disabled: o || t && !be(t),
|
|
2404
2404
|
title: o ? l : void 0,
|
|
@@ -2439,14 +2439,14 @@ const no = ({
|
|
|
2439
2439
|
}
|
|
2440
2440
|
)
|
|
2441
2441
|
] });
|
|
2442
|
-
},
|
|
2442
|
+
}, fo = ({
|
|
2443
2443
|
appId: e,
|
|
2444
2444
|
attr: t,
|
|
2445
2445
|
constraints: a
|
|
2446
2446
|
}) => {
|
|
2447
2447
|
const [n, o] = C(
|
|
2448
2448
|
t.isRequired || !1
|
|
2449
|
-
), [l, i] = C(t.isIndex), [g, c] = C(t.isUniq), [p, m] = C(t.checkedDataType || "any"), d = de(), { isPending: u, pending: s, apply: f, isRunning: b, running: w, progress: v } =
|
|
2449
|
+
), [l, i] = C(t.isIndex), [g, c] = C(t.isUniq), [p, m] = C(t.checkedDataType || "any"), d = de(), { isPending: u, pending: s, apply: f, isRunning: b, running: w, progress: v } = ro({
|
|
2450
2450
|
attr: t,
|
|
2451
2451
|
appId: e,
|
|
2452
2452
|
token: d.adminToken,
|
|
@@ -2458,7 +2458,7 @@ const no = ({
|
|
|
2458
2458
|
return /* @__PURE__ */ r("div", { children: /* @__PURE__ */ h("div", { className: "flex flex-col gap-2", children: [
|
|
2459
2459
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Constraints" }),
|
|
2460
2460
|
/* @__PURE__ */ r(
|
|
2461
|
-
|
|
2461
|
+
po,
|
|
2462
2462
|
{
|
|
2463
2463
|
pendingJob: s.require,
|
|
2464
2464
|
runningJob: w.require,
|
|
@@ -2470,7 +2470,7 @@ const no = ({
|
|
|
2470
2470
|
}
|
|
2471
2471
|
),
|
|
2472
2472
|
/* @__PURE__ */ r(
|
|
2473
|
-
|
|
2473
|
+
go,
|
|
2474
2474
|
{
|
|
2475
2475
|
pendingJob: s.index,
|
|
2476
2476
|
runningJob: w.index,
|
|
@@ -2482,7 +2482,7 @@ const no = ({
|
|
|
2482
2482
|
}
|
|
2483
2483
|
),
|
|
2484
2484
|
/* @__PURE__ */ r(
|
|
2485
|
-
|
|
2485
|
+
ho,
|
|
2486
2486
|
{
|
|
2487
2487
|
pendingJob: s.unique,
|
|
2488
2488
|
runningJob: w.unique,
|
|
@@ -2494,7 +2494,7 @@ const no = ({
|
|
|
2494
2494
|
}
|
|
2495
2495
|
),
|
|
2496
2496
|
/* @__PURE__ */ r(
|
|
2497
|
-
|
|
2497
|
+
uo,
|
|
2498
2498
|
{
|
|
2499
2499
|
pendingJob: s.type,
|
|
2500
2500
|
runningJob: w.type,
|
|
@@ -2506,7 +2506,7 @@ const no = ({
|
|
|
2506
2506
|
}
|
|
2507
2507
|
),
|
|
2508
2508
|
/* @__PURE__ */ r(
|
|
2509
|
-
|
|
2509
|
+
Vr,
|
|
2510
2510
|
{
|
|
2511
2511
|
loading: b,
|
|
2512
2512
|
percentage: b && v || 0,
|
|
@@ -2519,26 +2519,26 @@ const no = ({
|
|
|
2519
2519
|
)
|
|
2520
2520
|
] }) });
|
|
2521
2521
|
};
|
|
2522
|
-
function
|
|
2522
|
+
function mo({
|
|
2523
2523
|
db: e,
|
|
2524
2524
|
attr: t,
|
|
2525
2525
|
onClose: a,
|
|
2526
2526
|
constraints: n
|
|
2527
2527
|
}) {
|
|
2528
|
-
const l = de().appId, { mutate: i } =
|
|
2528
|
+
const l = de().appId, { mutate: i } = hr(), [g, c] = C({
|
|
2529
2529
|
type: "main"
|
|
2530
2530
|
}), [p, m] = C(t.linkConfig.forward.attr), [d, u] = C(
|
|
2531
2531
|
t.linkConfig.reverse?.attr
|
|
2532
2532
|
), [s, f] = C(() => {
|
|
2533
2533
|
const F = `${t.cardinality}-${t.isUniq}`;
|
|
2534
|
-
return
|
|
2534
|
+
return Ar[F];
|
|
2535
2535
|
}), b = de(), [w, v] = C(() => t.onDelete === "cascade"), [k, x] = C(
|
|
2536
2536
|
() => t.onDeleteReverse === "cascade"
|
|
2537
|
-
), [_, q] = C(t.isRequired || !1), [
|
|
2537
|
+
), [_, q] = C(t.isRequired || !1), [M, L] = C(_), [G, H] = C(
|
|
2538
2538
|
null
|
|
2539
|
-
), Y = X(null),
|
|
2539
|
+
), Y = X(null), j = Ye();
|
|
2540
2540
|
P(() => () => Y.current?.(), [Y]);
|
|
2541
|
-
const
|
|
2541
|
+
const z = s === "one-one" || s === "one-many", S = s === "one-one" || s === "many-one", T = Lr({
|
|
2542
2542
|
attrName: p,
|
|
2543
2543
|
reverseAttrName: d,
|
|
2544
2544
|
namespaceName: t.linkConfig.forward.namespace,
|
|
@@ -2547,7 +2547,7 @@ function co({
|
|
|
2547
2547
|
async function I() {
|
|
2548
2548
|
if (!t.linkConfig.reverse)
|
|
2549
2549
|
throw new Error("No reverse link config");
|
|
2550
|
-
if (_ !==
|
|
2550
|
+
if (_ !== M && await co({
|
|
2551
2551
|
appId: l,
|
|
2552
2552
|
attr: t,
|
|
2553
2553
|
isRequired: _,
|
|
@@ -2573,12 +2573,12 @@ function co({
|
|
|
2573
2573
|
t.linkConfig.reverse.namespace,
|
|
2574
2574
|
d
|
|
2575
2575
|
],
|
|
2576
|
-
"on-delete":
|
|
2576
|
+
"on-delete": z && w ? "cascade" : null,
|
|
2577
2577
|
"on-delete-reverse": S && k ? "cascade" : null
|
|
2578
2578
|
}
|
|
2579
2579
|
]
|
|
2580
2580
|
];
|
|
2581
|
-
await e.core._reactor.pushOps(F), _ ==
|
|
2581
|
+
await e.core._reactor.pushOps(F), _ == M && oe("Updated attribute");
|
|
2582
2582
|
}
|
|
2583
2583
|
async function A() {
|
|
2584
2584
|
const F = [
|
|
@@ -2594,7 +2594,7 @@ function co({
|
|
|
2594
2594
|
}
|
|
2595
2595
|
]
|
|
2596
2596
|
];
|
|
2597
|
-
await e.core._reactor.pushOps(F),
|
|
2597
|
+
await e.core._reactor.pushOps(F), oe("Renamed attribute");
|
|
2598
2598
|
}
|
|
2599
2599
|
async function D() {
|
|
2600
2600
|
await e.core._reactor.pushOps([["delete-attr", t.id]]), setTimeout(() => {
|
|
@@ -2602,7 +2602,7 @@ function co({
|
|
|
2602
2602
|
}, 500), a();
|
|
2603
2603
|
}
|
|
2604
2604
|
return g.type === "delete" ? /* @__PURE__ */ r(
|
|
2605
|
-
|
|
2605
|
+
_r,
|
|
2606
2606
|
{
|
|
2607
2607
|
onConfirm: D,
|
|
2608
2608
|
onClose: a,
|
|
@@ -2635,9 +2635,9 @@ function co({
|
|
|
2635
2635
|
}
|
|
2636
2636
|
)
|
|
2637
2637
|
] }),
|
|
2638
|
-
t.type === "blob" ? /* @__PURE__ */ h(
|
|
2638
|
+
t.type === "blob" ? /* @__PURE__ */ h(B, { children: [
|
|
2639
2639
|
/* @__PURE__ */ r(
|
|
2640
|
-
|
|
2640
|
+
fo,
|
|
2641
2641
|
{
|
|
2642
2642
|
appId: l,
|
|
2643
2643
|
attr: t,
|
|
@@ -2677,7 +2677,7 @@ function co({
|
|
|
2677
2677
|
] })
|
|
2678
2678
|
] }) : /* @__PURE__ */ h(ge, { className: "flex flex-col gap-6", children: [
|
|
2679
2679
|
/* @__PURE__ */ r(
|
|
2680
|
-
|
|
2680
|
+
Dr,
|
|
2681
2681
|
{
|
|
2682
2682
|
relationship: s,
|
|
2683
2683
|
attrName: p,
|
|
@@ -2687,7 +2687,7 @@ function co({
|
|
|
2687
2687
|
setAttrName: m,
|
|
2688
2688
|
setReverseAttrName: u,
|
|
2689
2689
|
setRelationship: f,
|
|
2690
|
-
isCascadeAllowed:
|
|
2690
|
+
isCascadeAllowed: z,
|
|
2691
2691
|
isCascade: w,
|
|
2692
2692
|
setIsCascade: v,
|
|
2693
2693
|
isCascadeReverseAllowed: S,
|
|
@@ -2704,7 +2704,7 @@ function co({
|
|
|
2704
2704
|
indexingJob: G,
|
|
2705
2705
|
attr: t,
|
|
2706
2706
|
onClose: () => {
|
|
2707
|
-
|
|
2707
|
+
j(), a();
|
|
2708
2708
|
}
|
|
2709
2709
|
}
|
|
2710
2710
|
),
|
|
@@ -2726,7 +2726,7 @@ function co({
|
|
|
2726
2726
|
] })
|
|
2727
2727
|
] });
|
|
2728
2728
|
}
|
|
2729
|
-
function
|
|
2729
|
+
function Lr({
|
|
2730
2730
|
reverseNamespaceName: e,
|
|
2731
2731
|
namespaceName: t,
|
|
2732
2732
|
attrName: a,
|
|
@@ -2740,7 +2740,7 @@ function Dr({
|
|
|
2740
2740
|
shouldShowSelfLinkNameError: l && o && !i
|
|
2741
2741
|
};
|
|
2742
2742
|
}
|
|
2743
|
-
function
|
|
2743
|
+
function rr({
|
|
2744
2744
|
namespaceName: e,
|
|
2745
2745
|
isSystemCatalogNs: t,
|
|
2746
2746
|
attr: a
|
|
@@ -2763,7 +2763,7 @@ const Ge = [
|
|
|
2763
2763
|
{ value: "boolean", label: "boolean" },
|
|
2764
2764
|
{ value: "json", label: "json" }
|
|
2765
2765
|
];
|
|
2766
|
-
function
|
|
2766
|
+
function bo({
|
|
2767
2767
|
onSave: e,
|
|
2768
2768
|
onChange: t,
|
|
2769
2769
|
onKeyDown: a,
|
|
@@ -2798,37 +2798,37 @@ const vt = {
|
|
|
2798
2798
|
boolean: !1,
|
|
2799
2799
|
json: {}
|
|
2800
2800
|
};
|
|
2801
|
-
function
|
|
2801
|
+
function wo(e) {
|
|
2802
2802
|
return e ? e === "date" ? Ge.filter(
|
|
2803
2803
|
(t) => t.value === "string" || t.value === "number"
|
|
2804
2804
|
) : Ge.filter((t) => t.value === e) : Ge;
|
|
2805
2805
|
}
|
|
2806
|
-
const
|
|
2807
|
-
function
|
|
2806
|
+
const Fr = (e) => !!e && typeof e == "object";
|
|
2807
|
+
function vo(e) {
|
|
2808
2808
|
try {
|
|
2809
2809
|
return JSON.parse(e), !0;
|
|
2810
2810
|
} catch {
|
|
2811
2811
|
return !1;
|
|
2812
2812
|
}
|
|
2813
2813
|
}
|
|
2814
|
-
function
|
|
2814
|
+
function yo(e) {
|
|
2815
2815
|
try {
|
|
2816
2816
|
return JSON.parse(e);
|
|
2817
2817
|
} catch {
|
|
2818
2818
|
return e;
|
|
2819
2819
|
}
|
|
2820
2820
|
}
|
|
2821
|
-
function
|
|
2821
|
+
function ko(e, t) {
|
|
2822
2822
|
if (e.checkedDataType)
|
|
2823
2823
|
return e.checkedDataType === "date" ? "string" : e.checkedDataType;
|
|
2824
2824
|
if (t != null) {
|
|
2825
|
-
const a =
|
|
2825
|
+
const a = Fr(t) ? "json" : typeof t, n = Ge.find((o) => o.value === a);
|
|
2826
2826
|
if (n)
|
|
2827
2827
|
return n.value;
|
|
2828
2828
|
}
|
|
2829
2829
|
return e.inferredTypes?.length ? e.inferredTypes[0] : Ge[0].value;
|
|
2830
2830
|
}
|
|
2831
|
-
function
|
|
2831
|
+
function ar(e, t) {
|
|
2832
2832
|
if (e === null)
|
|
2833
2833
|
return null;
|
|
2834
2834
|
if (t === "number") {
|
|
@@ -2841,16 +2841,16 @@ function tr(e, t) {
|
|
|
2841
2841
|
if (t === "boolean")
|
|
2842
2842
|
return e === "true";
|
|
2843
2843
|
if (t === "string")
|
|
2844
|
-
return
|
|
2844
|
+
return Fr(e) ? JSON.stringify(e) : String(e);
|
|
2845
2845
|
if (t === "json")
|
|
2846
|
-
return
|
|
2846
|
+
return yo(e);
|
|
2847
2847
|
}
|
|
2848
2848
|
return e;
|
|
2849
2849
|
}
|
|
2850
|
-
function
|
|
2851
|
-
return
|
|
2850
|
+
function xo(e) {
|
|
2851
|
+
return Cn(e) ? null : "Invalid UUID.";
|
|
2852
2852
|
}
|
|
2853
|
-
function
|
|
2853
|
+
function nr({
|
|
2854
2854
|
db: e,
|
|
2855
2855
|
namespace: t,
|
|
2856
2856
|
item: a
|
|
@@ -2858,9 +2858,9 @@ function rr({
|
|
|
2858
2858
|
const [n, o] = C(!1), [l, i] = C(!1), { data: g, isLoading: c } = e.useQuery(
|
|
2859
2859
|
n || l ? { [t.name]: { $: { where: { id: a.id } } } } : null
|
|
2860
2860
|
);
|
|
2861
|
-
return /* @__PURE__ */ r(
|
|
2861
|
+
return /* @__PURE__ */ r(ne.Provider, { children: /* @__PURE__ */ h(ne.Root, { delayDuration: 0, open: n, children: [
|
|
2862
2862
|
/* @__PURE__ */ r(
|
|
2863
|
-
|
|
2863
|
+
ne.Trigger,
|
|
2864
2864
|
{
|
|
2865
2865
|
asChild: !0,
|
|
2866
2866
|
onMouseEnter: () => i(!0),
|
|
@@ -2871,12 +2871,12 @@ function rr({
|
|
|
2871
2871
|
size: "mini",
|
|
2872
2872
|
variant: "subtle",
|
|
2873
2873
|
onClick: () => o((p) => !p),
|
|
2874
|
-
children: /* @__PURE__ */ r(
|
|
2874
|
+
children: /* @__PURE__ */ r(Ha, { height: 14 })
|
|
2875
2875
|
}
|
|
2876
2876
|
) })
|
|
2877
2877
|
}
|
|
2878
2878
|
),
|
|
2879
|
-
/* @__PURE__ */ r(
|
|
2879
|
+
/* @__PURE__ */ r(ne.Content, { collisionPadding: 10, side: "bottom", children: /* @__PURE__ */ h("div", { className: "relative", children: [
|
|
2880
2880
|
/* @__PURE__ */ r(
|
|
2881
2881
|
"div",
|
|
2882
2882
|
{
|
|
@@ -2887,11 +2887,11 @@ function rr({
|
|
|
2887
2887
|
children: JSON.stringify(g?.[t.name]?.[0] || a, null, 2)
|
|
2888
2888
|
}
|
|
2889
2889
|
),
|
|
2890
|
-
c ? /* @__PURE__ */ r("div", { className: "absolute top-0 right-0 animate-spin p-2 opacity-50", children: /* @__PURE__ */ r(
|
|
2890
|
+
c ? /* @__PURE__ */ r("div", { className: "absolute top-0 right-0 animate-spin p-2 opacity-50", children: /* @__PURE__ */ r(Wa, { width: 12 }) }) : null
|
|
2891
2891
|
] }) })
|
|
2892
2892
|
] }) });
|
|
2893
2893
|
}
|
|
2894
|
-
function
|
|
2894
|
+
function So({
|
|
2895
2895
|
q: e,
|
|
2896
2896
|
option: t,
|
|
2897
2897
|
uniqueAttrs: a,
|
|
@@ -2899,16 +2899,16 @@ function bo({
|
|
|
2899
2899
|
}) {
|
|
2900
2900
|
const [o, l] = C(!1);
|
|
2901
2901
|
return /* @__PURE__ */ r(
|
|
2902
|
-
|
|
2902
|
+
Nr,
|
|
2903
2903
|
{
|
|
2904
2904
|
value: t,
|
|
2905
2905
|
className: _e(
|
|
2906
2906
|
"cursor-pointer px-3 py-1 data-focus:bg-blue-100 dark:border-neutral-700 dark:bg-neutral-800",
|
|
2907
2907
|
{}
|
|
2908
2908
|
),
|
|
2909
|
-
children: /* @__PURE__ */ r(
|
|
2909
|
+
children: /* @__PURE__ */ r(ne.Provider, { children: /* @__PURE__ */ h(ne.Root, { delayDuration: 0, open: o, children: [
|
|
2910
2910
|
/* @__PURE__ */ r(
|
|
2911
|
-
|
|
2911
|
+
ne.Trigger,
|
|
2912
2912
|
{
|
|
2913
2913
|
asChild: !0,
|
|
2914
2914
|
onMouseEnter: () => l(!0),
|
|
@@ -2934,7 +2934,7 @@ function bo({
|
|
|
2934
2934
|
] })
|
|
2935
2935
|
}
|
|
2936
2936
|
),
|
|
2937
|
-
/* @__PURE__ */ r(
|
|
2937
|
+
/* @__PURE__ */ r(ne.Content, { collisionPadding: 10, children: /* @__PURE__ */ r(
|
|
2938
2938
|
"div",
|
|
2939
2939
|
{
|
|
2940
2940
|
className: "bg-opacity-90 max-w-md overflow-auto border bg-white p-2 font-mono text-xs whitespace-pre shadow-md backdrop-blur-xs dark:border-neutral-700 dark:bg-neutral-800",
|
|
@@ -2949,19 +2949,19 @@ function bo({
|
|
|
2949
2949
|
t.id
|
|
2950
2950
|
);
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2952
|
+
function No({
|
|
2953
2953
|
db: e,
|
|
2954
2954
|
namespace: t,
|
|
2955
2955
|
onLinkRef: a,
|
|
2956
2956
|
ignoreIds: n,
|
|
2957
2957
|
onClose: o
|
|
2958
2958
|
}) {
|
|
2959
|
-
const [l, i] = C(""), g = X(null), { uniqueAttrs: c, filterableAttrs: p } =
|
|
2959
|
+
const [l, i] = C(""), g = X(null), { uniqueAttrs: c, filterableAttrs: p } = se(() => {
|
|
2960
2960
|
const f = [], b = [];
|
|
2961
2961
|
for (const [w, v] of Object.entries(t.attrs))
|
|
2962
2962
|
v.isUniq && v.name !== "id" && v.type === "blob" && f.push(v), v.isIndex && (v.checkedDataType === "string" || v.checkedDataType === "number") && b.push(v);
|
|
2963
2963
|
return { uniqueAttrs: f, filterableAttrs: b };
|
|
2964
|
-
}, [t.attrs]), m =
|
|
2964
|
+
}, [t.attrs]), m = se(() => {
|
|
2965
2965
|
const f = [{ $entityIdStartsWith: l }];
|
|
2966
2966
|
let b;
|
|
2967
2967
|
try {
|
|
@@ -2985,7 +2985,7 @@ function wo({
|
|
|
2985
2985
|
};
|
|
2986
2986
|
}, [t.name, p, l]), { data: d, isLoading: u } = e.useQuery(m), s = d?.[t.name]?.filter((f) => !n.has(f.id));
|
|
2987
2987
|
return /* @__PURE__ */ r("div", { className: "relative mt-1 w-full", children: /* @__PURE__ */ h(
|
|
2988
|
-
|
|
2988
|
+
kr,
|
|
2989
2989
|
{
|
|
2990
2990
|
onChange: (f) => {
|
|
2991
2991
|
f && (a(f), i(""), o());
|
|
@@ -2994,7 +2994,7 @@ function wo({
|
|
|
2994
2994
|
immediate: !0,
|
|
2995
2995
|
children: [
|
|
2996
2996
|
/* @__PURE__ */ r(
|
|
2997
|
-
|
|
2997
|
+
xr,
|
|
2998
2998
|
{
|
|
2999
2999
|
ref: g,
|
|
3000
3000
|
autoFocus: !0,
|
|
@@ -3008,14 +3008,14 @@ function wo({
|
|
|
3008
3008
|
}
|
|
3009
3009
|
),
|
|
3010
3010
|
/* @__PURE__ */ r(
|
|
3011
|
-
|
|
3011
|
+
Sr,
|
|
3012
3012
|
{
|
|
3013
3013
|
portal: !1,
|
|
3014
3014
|
unmount: !1,
|
|
3015
3015
|
static: !0,
|
|
3016
3016
|
className: "absolute left-0 z-10 mt-1 max-h-[25vh] w-full divide-y overflow-scroll rounded-md border border-gray-300 bg-white shadow-lg empty:invisible dark:border-neutral-700 dark:bg-neutral-800",
|
|
3017
3017
|
children: (s || []).map((f) => /* @__PURE__ */ r(
|
|
3018
|
-
|
|
3018
|
+
So,
|
|
3019
3019
|
{
|
|
3020
3020
|
q: l,
|
|
3021
3021
|
option: f,
|
|
@@ -3035,7 +3035,7 @@ function wo({
|
|
|
3035
3035
|
u ? "query-loading" : "query-loaded"
|
|
3036
3036
|
) });
|
|
3037
3037
|
}
|
|
3038
|
-
function
|
|
3038
|
+
function Eo({
|
|
3039
3039
|
db: e,
|
|
3040
3040
|
item: t,
|
|
3041
3041
|
attr: a,
|
|
@@ -3044,7 +3044,7 @@ function vo({
|
|
|
3044
3044
|
handleLinkRef: l,
|
|
3045
3045
|
handleUnlinkRef: i
|
|
3046
3046
|
}) {
|
|
3047
|
-
const [g, c] = C(!1), p =
|
|
3047
|
+
const [g, c] = C(!1), p = se(() => {
|
|
3048
3048
|
const u = /* @__PURE__ */ new Set();
|
|
3049
3049
|
for (const [s] of Object.entries(o || {}))
|
|
3050
3050
|
u.add(s);
|
|
@@ -3052,12 +3052,12 @@ function vo({
|
|
|
3052
3052
|
u.add(s.id);
|
|
3053
3053
|
return u;
|
|
3054
3054
|
}, [t[a.name], o]), m = a.cardinality, d = t[a.name]?.length > 0;
|
|
3055
|
-
return /* @__PURE__ */ h(
|
|
3055
|
+
return /* @__PURE__ */ h(B, { children: [
|
|
3056
3056
|
t[a.name]?.map((u) => {
|
|
3057
3057
|
const s = o?.[u.id]?.action === "unlink";
|
|
3058
3058
|
return /* @__PURE__ */ h("div", { children: [
|
|
3059
3059
|
/* @__PURE__ */ r("code", { className: s ? "line-through" : "", children: u.id }),
|
|
3060
|
-
/* @__PURE__ */ r(
|
|
3060
|
+
/* @__PURE__ */ r(nr, { db: e, namespace: n, item: u }),
|
|
3061
3061
|
/* @__PURE__ */ r(
|
|
3062
3062
|
V,
|
|
3063
3063
|
{
|
|
@@ -3076,7 +3076,7 @@ function vo({
|
|
|
3076
3076
|
if (s === "link")
|
|
3077
3077
|
return /* @__PURE__ */ h("div", { children: [
|
|
3078
3078
|
/* @__PURE__ */ r("code", { children: u }),
|
|
3079
|
-
/* @__PURE__ */ r(
|
|
3079
|
+
/* @__PURE__ */ r(nr, { db: e, namespace: n, item: f }),
|
|
3080
3080
|
/* @__PURE__ */ r(
|
|
3081
3081
|
V,
|
|
3082
3082
|
{
|
|
@@ -3092,7 +3092,7 @@ function vo({
|
|
|
3092
3092
|
] }, u);
|
|
3093
3093
|
}),
|
|
3094
3094
|
g ? /* @__PURE__ */ r(
|
|
3095
|
-
|
|
3095
|
+
No,
|
|
3096
3096
|
{
|
|
3097
3097
|
namespace: n,
|
|
3098
3098
|
onLinkRef: (u) => l(a, u),
|
|
@@ -3103,7 +3103,7 @@ function vo({
|
|
|
3103
3103
|
) : /* @__PURE__ */ r(V, { variant: "secondary", onClick: () => c(!0), children: m === "many" || !d ? "Add link" : "Replace link" })
|
|
3104
3104
|
] });
|
|
3105
3105
|
}
|
|
3106
|
-
const
|
|
3106
|
+
const Co = (e, t) => {
|
|
3107
3107
|
switch (e.name) {
|
|
3108
3108
|
case "$files":
|
|
3109
3109
|
return t.type === "blob" && t.name === "path";
|
|
@@ -3112,7 +3112,7 @@ const yo = (e, t) => {
|
|
|
3112
3112
|
default:
|
|
3113
3113
|
return t.type === "blob";
|
|
3114
3114
|
}
|
|
3115
|
-
},
|
|
3115
|
+
}, Io = (e) => {
|
|
3116
3116
|
switch (e.namespace) {
|
|
3117
3117
|
case "$streams":
|
|
3118
3118
|
return !1;
|
|
@@ -3120,7 +3120,7 @@ const yo = (e, t) => {
|
|
|
3120
3120
|
return e.type === "ref";
|
|
3121
3121
|
}
|
|
3122
3122
|
};
|
|
3123
|
-
function
|
|
3123
|
+
function or({
|
|
3124
3124
|
db: e,
|
|
3125
3125
|
namespace: t,
|
|
3126
3126
|
item: a,
|
|
@@ -3128,10 +3128,10 @@ function ar({
|
|
|
3128
3128
|
}) {
|
|
3129
3129
|
const o = a.id ? "edit" : "add", l = de(), i = [], g = [];
|
|
3130
3130
|
for (const S of t.attrs)
|
|
3131
|
-
S.name !== "id" && (
|
|
3131
|
+
S.name !== "id" && (Co(t, S) && i.push(S), S.type === "ref" && Io(S) && g.push(S));
|
|
3132
3132
|
const c = i.reduce(
|
|
3133
3133
|
(S, T) => {
|
|
3134
|
-
const I = a[T.name], A =
|
|
3134
|
+
const I = a[T.name], A = ko(T, I), D = o === "add" ? T.isRequired ? vt[A] : null : I;
|
|
3135
3135
|
return {
|
|
3136
3136
|
...S,
|
|
3137
3137
|
[T.name]: {
|
|
@@ -3166,10 +3166,10 @@ function ar({
|
|
|
3166
3166
|
const A = I[S]?.value;
|
|
3167
3167
|
return {
|
|
3168
3168
|
...I,
|
|
3169
|
-
[S]: { type: T, value:
|
|
3169
|
+
[S]: { type: T, value: ar(A, T) }
|
|
3170
3170
|
};
|
|
3171
3171
|
});
|
|
3172
|
-
},
|
|
3172
|
+
}, M = (S, T, I) => {
|
|
3173
3173
|
const A = I ? I(T) : null;
|
|
3174
3174
|
m((D) => {
|
|
3175
3175
|
const F = D[S]?.type || "string";
|
|
@@ -3177,7 +3177,7 @@ function ar({
|
|
|
3177
3177
|
...D,
|
|
3178
3178
|
[S]: {
|
|
3179
3179
|
type: F,
|
|
3180
|
-
value:
|
|
3180
|
+
value: ar(T, F),
|
|
3181
3181
|
error: A
|
|
3182
3182
|
}
|
|
3183
3183
|
};
|
|
@@ -3190,7 +3190,7 @@ function ar({
|
|
|
3190
3190
|
[S]: { type: "json", value: void 0, error: "Invalid JSON" }
|
|
3191
3191
|
} : {
|
|
3192
3192
|
...I,
|
|
3193
|
-
[S]:
|
|
3193
|
+
[S]: vo(T) ? { type: "json", value: JSON.parse(T), error: null } : { ...A, type: "json", error: "Invalid JSON" }
|
|
3194
3194
|
};
|
|
3195
3195
|
});
|
|
3196
3196
|
}, G = (S, T) => {
|
|
@@ -3234,7 +3234,7 @@ function ar({
|
|
|
3234
3234
|
const A = T.id, D = I[S.name]?.[A];
|
|
3235
3235
|
if (D && D.action === "unlink") {
|
|
3236
3236
|
if (S.cardinality === "one") {
|
|
3237
|
-
const { [S.name]:
|
|
3237
|
+
const { [S.name]: re, ...W } = I;
|
|
3238
3238
|
return W;
|
|
3239
3239
|
}
|
|
3240
3240
|
const { [A]: F, ...Q } = I[S.name];
|
|
@@ -3261,12 +3261,12 @@ function ar({
|
|
|
3261
3261
|
}
|
|
3262
3262
|
};
|
|
3263
3263
|
});
|
|
3264
|
-
},
|
|
3264
|
+
}, j = (S) => {
|
|
3265
3265
|
requestAnimationFrame(() => {
|
|
3266
3266
|
const T = document.querySelector(`[tabindex="${S}"]`);
|
|
3267
3267
|
T && T instanceof HTMLElement && T.focus();
|
|
3268
3268
|
});
|
|
3269
|
-
},
|
|
3269
|
+
}, z = async () => {
|
|
3270
3270
|
if (v) {
|
|
3271
3271
|
x(!0);
|
|
3272
3272
|
return;
|
|
@@ -3276,33 +3276,33 @@ function ar({
|
|
|
3276
3276
|
), T = a.id || S.id || qe();
|
|
3277
3277
|
delete S.id;
|
|
3278
3278
|
try {
|
|
3279
|
-
let I =
|
|
3279
|
+
let I = Za[t.name][T];
|
|
3280
3280
|
const A = [], D = [];
|
|
3281
3281
|
for (const [F, Q] of Object.entries(d))
|
|
3282
|
-
for (const [
|
|
3283
|
-
W === "link" && D.push({ [F]:
|
|
3282
|
+
for (const [re, { action: W }] of Object.entries(Q))
|
|
3283
|
+
W === "link" && D.push({ [F]: re }), W === "unlink" && A.push({ [F]: re });
|
|
3284
3284
|
for (const F of A)
|
|
3285
3285
|
I = I.unlink(F);
|
|
3286
3286
|
I = I.update(S);
|
|
3287
3287
|
for (const F of D)
|
|
3288
3288
|
I = I.link(F);
|
|
3289
|
-
await e.transact(I), n(),
|
|
3289
|
+
await e.transact(I), n(), oe("Successfully updated row!");
|
|
3290
3290
|
} catch (I) {
|
|
3291
3291
|
const A = I.message;
|
|
3292
3292
|
if (A)
|
|
3293
|
-
|
|
3293
|
+
le(`Failed to save row: ${A}`);
|
|
3294
3294
|
else
|
|
3295
3295
|
throw I;
|
|
3296
3296
|
}
|
|
3297
3297
|
};
|
|
3298
3298
|
return /* @__PURE__ */ h(ge, { className: "p-4", children: [
|
|
3299
3299
|
/* @__PURE__ */ r("h5", { className: "flex text-lg font-bold", children: o == "edit" ? "Edit row" : "Add row" }),
|
|
3300
|
-
/* @__PURE__ */ r("code", { className: "font-mono text-sm font-medium text-gray-500 dark:text-neutral-500", children: o == "edit" ? /* @__PURE__ */ h(
|
|
3300
|
+
/* @__PURE__ */ r("code", { className: "font-mono text-sm font-medium text-gray-500 dark:text-neutral-500", children: o == "edit" ? /* @__PURE__ */ h(B, { children: [
|
|
3301
3301
|
t.name,
|
|
3302
3302
|
"['",
|
|
3303
3303
|
a.id,
|
|
3304
3304
|
"']"
|
|
3305
|
-
] }) : /* @__PURE__ */ r(
|
|
3305
|
+
] }) : /* @__PURE__ */ r(B, { children: t.name }) }),
|
|
3306
3306
|
/* @__PURE__ */ h("div", { className: "mt-4 flex flex-col gap-4", children: [
|
|
3307
3307
|
o === "add" ? /* @__PURE__ */ h("div", { className: "flex flex-col gap-1", children: [
|
|
3308
3308
|
/* @__PURE__ */ r("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ r(Re, { className: "font-mono", children: /* @__PURE__ */ h("div", { className: "flex gap-1", children: [
|
|
@@ -3314,8 +3314,8 @@ function ar({
|
|
|
3314
3314
|
type: "link",
|
|
3315
3315
|
size: "mini",
|
|
3316
3316
|
variant: "subtle",
|
|
3317
|
-
onClick: () =>
|
|
3318
|
-
children: /* @__PURE__ */ r(
|
|
3317
|
+
onClick: () => M("id", qe()),
|
|
3318
|
+
children: /* @__PURE__ */ r(Ga, { height: 14 })
|
|
3319
3319
|
}
|
|
3320
3320
|
)
|
|
3321
3321
|
] }) }) }),
|
|
@@ -3324,7 +3324,7 @@ function ar({
|
|
|
3324
3324
|
{
|
|
3325
3325
|
className: "flex w-full flex-1 rounded-xs border-gray-200 bg-white px-3 py-1 placeholder:text-gray-400 dark:border-neutral-700 dark:bg-neutral-800",
|
|
3326
3326
|
value: p.id?.value ?? "",
|
|
3327
|
-
onChange: (S) =>
|
|
3327
|
+
onChange: (S) => M("id", S.target.value, xo)
|
|
3328
3328
|
}
|
|
3329
3329
|
) }),
|
|
3330
3330
|
" ",
|
|
@@ -3334,15 +3334,15 @@ function ar({
|
|
|
3334
3334
|
const I = T + 1, { type: A, value: D, error: F } = p[S.name] || {
|
|
3335
3335
|
type: "string",
|
|
3336
3336
|
value: vt.string
|
|
3337
|
-
}, Q = s[S.name] || (D !== null ? JSON.stringify(D, null, 2) : "null"),
|
|
3337
|
+
}, Q = s[S.name] || (D !== null ? JSON.stringify(D, null, 2) : "null"), re = b[S.name];
|
|
3338
3338
|
return /* @__PURE__ */ h("div", { className: "flex flex-col gap-1", children: [
|
|
3339
3339
|
/* @__PURE__ */ h("div", { className: "flex items-center justify-between", children: [
|
|
3340
3340
|
/* @__PURE__ */ r(Re, { className: "font-mono", children: S.name }),
|
|
3341
3341
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
|
|
3342
3342
|
/* @__PURE__ */ r("div", { className: "flex items-center", children: !S.isRequired && /* @__PURE__ */ r(
|
|
3343
|
-
|
|
3343
|
+
te,
|
|
3344
3344
|
{
|
|
3345
|
-
checked:
|
|
3345
|
+
checked: re,
|
|
3346
3346
|
onChange: (W) => G(S.name, W),
|
|
3347
3347
|
label: /* @__PURE__ */ r("span", { className: "text-[10px] text-gray-600 uppercase dark:text-neutral-600", children: "null" })
|
|
3348
3348
|
}
|
|
@@ -3352,7 +3352,7 @@ function ar({
|
|
|
3352
3352
|
{
|
|
3353
3353
|
className: "w-24 rounded-sm px-2 py-0.5 text-sm",
|
|
3354
3354
|
value: A,
|
|
3355
|
-
options:
|
|
3355
|
+
options: wo(S.checkedDataType),
|
|
3356
3356
|
onChange: (W) => q(
|
|
3357
3357
|
S.name,
|
|
3358
3358
|
W.value
|
|
@@ -3362,18 +3362,18 @@ function ar({
|
|
|
3362
3362
|
] })
|
|
3363
3363
|
] }),
|
|
3364
3364
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-1", children: [
|
|
3365
|
-
|
|
3365
|
+
re ? /* @__PURE__ */ r(
|
|
3366
3366
|
"button",
|
|
3367
3367
|
{
|
|
3368
3368
|
onClick: () => {
|
|
3369
|
-
G(S.name, !1),
|
|
3369
|
+
G(S.name, !1), j(I);
|
|
3370
3370
|
},
|
|
3371
3371
|
className: "flex-1 rounded-xs border border-gray-200 bg-gray-50 px-3 py-1 text-left text-gray-500 italic dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-400",
|
|
3372
3372
|
children: "null"
|
|
3373
3373
|
}
|
|
3374
3374
|
) : /* @__PURE__ */ h("div", { className: "flex space-x-1", children: [
|
|
3375
3375
|
/* @__PURE__ */ r("div", { className: "flex-1", children: A === "json" ? /* @__PURE__ */ r("div", { className: "h-32 w-full rounded-sm border", children: /* @__PURE__ */ r(
|
|
3376
|
-
|
|
3376
|
+
Ft,
|
|
3377
3377
|
{
|
|
3378
3378
|
darkMode: l.darkMode,
|
|
3379
3379
|
tabIndex: I,
|
|
@@ -3390,7 +3390,7 @@ function ar({
|
|
|
3390
3390
|
{ value: "false", label: "false" },
|
|
3391
3391
|
{ value: "true", label: "true" }
|
|
3392
3392
|
],
|
|
3393
|
-
onChange: (W) =>
|
|
3393
|
+
onChange: (W) => M(S.name, W.value)
|
|
3394
3394
|
}
|
|
3395
3395
|
) : A === "number" ? /* @__PURE__ */ r(
|
|
3396
3396
|
"input",
|
|
@@ -3399,15 +3399,15 @@ function ar({
|
|
|
3399
3399
|
type: "number",
|
|
3400
3400
|
className: "flex w-full flex-1 rounded-xs border-gray-200 bg-white px-3 py-1 placeholder:text-gray-400 dark:border-neutral-700 dark:bg-neutral-800",
|
|
3401
3401
|
value: D ?? "",
|
|
3402
|
-
onChange: (W) =>
|
|
3402
|
+
onChange: (W) => M(S.name, W.target.value)
|
|
3403
3403
|
}
|
|
3404
3404
|
) : /* @__PURE__ */ r(
|
|
3405
|
-
|
|
3405
|
+
bo,
|
|
3406
3406
|
{
|
|
3407
3407
|
tabIndex: I,
|
|
3408
3408
|
value: D ?? "",
|
|
3409
|
-
onChange: (W) =>
|
|
3410
|
-
onSave:
|
|
3409
|
+
onChange: (W) => M(S.name, W.target.value),
|
|
3410
|
+
onSave: z
|
|
3411
3411
|
}
|
|
3412
3412
|
) }),
|
|
3413
3413
|
S.checkedDataType === "date" && /* @__PURE__ */ h(
|
|
@@ -3416,13 +3416,13 @@ function ar({
|
|
|
3416
3416
|
variant: "subtle",
|
|
3417
3417
|
size: "mini",
|
|
3418
3418
|
onClick: () => {
|
|
3419
|
-
|
|
3419
|
+
M(
|
|
3420
3420
|
S.name,
|
|
3421
3421
|
A === "number" ? Date.now() : (/* @__PURE__ */ new Date()).toISOString()
|
|
3422
3422
|
);
|
|
3423
3423
|
},
|
|
3424
3424
|
children: [
|
|
3425
|
-
/* @__PURE__ */ r(
|
|
3425
|
+
/* @__PURE__ */ r(pr, { height: 14 }),
|
|
3426
3426
|
"now"
|
|
3427
3427
|
]
|
|
3428
3428
|
}
|
|
@@ -3443,7 +3443,7 @@ function ar({
|
|
|
3443
3443
|
] })
|
|
3444
3444
|
] }),
|
|
3445
3445
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-1", children: /* @__PURE__ */ r(
|
|
3446
|
-
|
|
3446
|
+
Eo,
|
|
3447
3447
|
{
|
|
3448
3448
|
db: e,
|
|
3449
3449
|
item: a,
|
|
@@ -3470,15 +3470,15 @@ function ar({
|
|
|
3470
3470
|
label: "Save",
|
|
3471
3471
|
submitLabel: "Saving...",
|
|
3472
3472
|
errorMessage: "Failed to save row.",
|
|
3473
|
-
onClick:
|
|
3473
|
+
onClick: z
|
|
3474
3474
|
}
|
|
3475
3475
|
)
|
|
3476
3476
|
] })
|
|
3477
3477
|
] })
|
|
3478
3478
|
] });
|
|
3479
3479
|
}
|
|
3480
|
-
const
|
|
3481
|
-
function
|
|
3480
|
+
const Ao = [];
|
|
3481
|
+
function Ro(e, t, a, n = !1) {
|
|
3482
3482
|
if (e.length === 0) return;
|
|
3483
3483
|
const o = t.filter(
|
|
3484
3484
|
(c) => c.id !== "select-col" && c.header !== void 0 && !c.meta?.isLink
|
|
@@ -3488,29 +3488,29 @@ function So(e, t, a, n = !1) {
|
|
|
3488
3488
|
const d = c[m.header];
|
|
3489
3489
|
d == null ? p[m.header] = "" : typeof d == "object" ? p[m.header] = JSON.stringify(d) : p[m.header] = d;
|
|
3490
3490
|
}), p;
|
|
3491
|
-
}), i =
|
|
3491
|
+
}), i = ln({
|
|
3492
3492
|
fieldSeparator: ",",
|
|
3493
3493
|
filename: `${a}_export`,
|
|
3494
3494
|
decimalSeparator: ".",
|
|
3495
3495
|
useKeysAsHeaders: !0
|
|
3496
|
-
}), g =
|
|
3497
|
-
n ? (
|
|
3496
|
+
}), g = sn(i)(l);
|
|
3497
|
+
n ? (dn(i)(g), oe("CSV file downloaded")) : (We(g.toString()), oe("CSV copied to clipboard"));
|
|
3498
3498
|
}
|
|
3499
|
-
function
|
|
3499
|
+
function To(e, t, a, n = !1) {
|
|
3500
3500
|
if (e.length === 0) return;
|
|
3501
3501
|
const o = t.filter(
|
|
3502
3502
|
(c) => c.id !== "select-col" && c.header !== void 0 && !c.meta?.isLink
|
|
3503
3503
|
), l = o.map((c) => c.header), i = e.map((c) => o.map((p) => {
|
|
3504
3504
|
const m = c[p.header];
|
|
3505
3505
|
return m == null ? " " : typeof m == "object" ? JSON.stringify(m) : String(m);
|
|
3506
|
-
})), g =
|
|
3506
|
+
})), g = on([l, ...i]);
|
|
3507
3507
|
if (n) {
|
|
3508
3508
|
const c = new Blob([g], { type: "text/markdown" }), p = URL.createObjectURL(c), m = document.createElement("a");
|
|
3509
|
-
m.href = p, m.download = `${a}_export.md`, document.body.appendChild(m), m.click(), document.body.removeChild(m), URL.revokeObjectURL(p),
|
|
3509
|
+
m.href = p, m.download = `${a}_export.md`, document.body.appendChild(m), m.click(), document.body.removeChild(m), URL.revokeObjectURL(p), oe("Markdown file downloaded");
|
|
3510
3510
|
} else
|
|
3511
|
-
We(g),
|
|
3511
|
+
We(g), oe("Markdown copied to clipboard");
|
|
3512
3512
|
}
|
|
3513
|
-
function
|
|
3513
|
+
function Oo(e, t, a, n = !1) {
|
|
3514
3514
|
if (e.length === 0) return;
|
|
3515
3515
|
const o = t.filter(
|
|
3516
3516
|
(g) => g.id !== "select-col" && g.header !== void 0 && !g.meta?.isLink
|
|
@@ -3523,27 +3523,27 @@ function Eo(e, t, a, n = !1) {
|
|
|
3523
3523
|
}), i = JSON.stringify(l, null, 2);
|
|
3524
3524
|
if (n) {
|
|
3525
3525
|
const g = new Blob([i], { type: "application/json" }), c = URL.createObjectURL(g), p = document.createElement("a");
|
|
3526
|
-
p.href = c, p.download = `${a}_export.json`, document.body.appendChild(p), p.click(), document.body.removeChild(p), URL.revokeObjectURL(c),
|
|
3526
|
+
p.href = c, p.download = `${a}_export.json`, document.body.appendChild(p), p.click(), document.body.removeChild(p), URL.revokeObjectURL(c), oe("JSON file downloaded");
|
|
3527
3527
|
} else
|
|
3528
|
-
We(i),
|
|
3528
|
+
We(i), oe("JSON copied to clipboard");
|
|
3529
3529
|
}
|
|
3530
|
-
const
|
|
3530
|
+
const _o = ({ db: e, namespaces: t }) => {
|
|
3531
3531
|
const { explorerState: a, history: n } = ut(), o = de(), l = a, i = t.find(
|
|
3532
3532
|
(E) => E.id === l.namespace
|
|
3533
|
-
), [g, c] = C(50), [p, m] = C([]), [d, u] = C(!1), [s, f] = C(""), [b, w] = C(!1), [v, k] = C(null), [x, _] = C(null), [q,
|
|
3534
|
-
const R =
|
|
3533
|
+
), [g, c] = C(50), [p, m] = C([]), [d, u] = C(!1), [s, f] = C(""), [b, w] = C(!1), [v, k] = C(null), [x, _] = C(null), [q, M] = C(!1), L = X(null), [G, H] = C({}), Y = X(null), j = i?.name?.startsWith("$") ?? !1, z = i?.name ?? "", S = j && !["$users", "$files", "$streams"].includes(z), T = G[z] || 0, I = l?.sortAttr || "serverCreatedAt", A = l?.sortAsc ?? !0, D = (E, N) => {
|
|
3534
|
+
const R = ae.options.data.map((pe) => pe.id), $ = R.indexOf(E), U = R.indexOf(L.current), [K, ee] = [
|
|
3535
3535
|
Math.min($, U),
|
|
3536
3536
|
Math.max($, U)
|
|
3537
3537
|
];
|
|
3538
3538
|
Ce((pe) => {
|
|
3539
|
-
const
|
|
3540
|
-
for (let Ae = K; Ae <=
|
|
3539
|
+
const ze = { ...pe };
|
|
3540
|
+
for (let Ae = K; Ae <= ee; Ae++) {
|
|
3541
3541
|
const rt = R[Ae];
|
|
3542
|
-
N ?
|
|
3542
|
+
N ? ze[rt] = !0 : delete ze[rt];
|
|
3543
3543
|
}
|
|
3544
|
-
return
|
|
3544
|
+
return ze;
|
|
3545
3545
|
});
|
|
3546
|
-
}, [F, Q] = C([]), { itemsRes:
|
|
3546
|
+
}, [F, Q] = C([]), { itemsRes: re, allCount: W } = Gn(
|
|
3547
3547
|
e,
|
|
3548
3548
|
i,
|
|
3549
3549
|
l?.where,
|
|
@@ -3552,45 +3552,45 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3552
3552
|
T,
|
|
3553
3553
|
I,
|
|
3554
3554
|
A
|
|
3555
|
-
),
|
|
3555
|
+
), ie = re.data?.[i?.name ?? ""] ?? Ao;
|
|
3556
3556
|
function ye(E, N) {
|
|
3557
3557
|
return E.filter((R) => N[R.id]);
|
|
3558
3558
|
}
|
|
3559
|
-
const ce = W ? Math.ceil(W / g) : 1, Z = T / g + 1, [ke,
|
|
3559
|
+
const ce = W ? Math.ceil(W / g) : 1, Z = T / g + 1, [ke, ea] = Rt("localDates", !1), ta = async () => {
|
|
3560
3560
|
try {
|
|
3561
3561
|
if (u(!0), p.length === 0)
|
|
3562
3562
|
return;
|
|
3563
3563
|
const [E] = p;
|
|
3564
|
-
await
|
|
3564
|
+
await $o(
|
|
3565
3565
|
o.adminToken,
|
|
3566
3566
|
o.appId,
|
|
3567
3567
|
E,
|
|
3568
3568
|
s,
|
|
3569
3569
|
o.apiURI
|
|
3570
|
-
) && (m([]), f(""), Y.current && (Y.current.value = "")),
|
|
3570
|
+
) && (m([]), f(""), Y.current && (Y.current.value = "")), oe("Successfully uploaded!");
|
|
3571
3571
|
} catch (E) {
|
|
3572
|
-
console.error("Failed to upload:", E),
|
|
3572
|
+
console.error("Failed to upload:", E), le(`Failed to upload: ${E.body.message}`);
|
|
3573
3573
|
} finally {
|
|
3574
3574
|
u(!1);
|
|
3575
3575
|
}
|
|
3576
|
-
},
|
|
3577
|
-
if (
|
|
3578
|
-
|
|
3576
|
+
}, jt = se(() => ie, [ie]), De = X(null), [zt, Bt] = C(0), [Mt, Ut] = C(1), [Pt, qt] = C(!1), ra = (E) => {
|
|
3577
|
+
if (ae?.getColumn(E)?.columnDef.header === "id") {
|
|
3578
|
+
Gt(E, 285);
|
|
3579
3579
|
return;
|
|
3580
3580
|
}
|
|
3581
|
-
const N =
|
|
3582
|
-
|
|
3583
|
-
},
|
|
3581
|
+
const N = Kn(E, 800);
|
|
3582
|
+
Gt(E, N);
|
|
3583
|
+
}, Gt = (E, N = 200) => {
|
|
3584
3584
|
if (!i)
|
|
3585
3585
|
return;
|
|
3586
3586
|
const R = {};
|
|
3587
3587
|
i?.attrs.forEach(($) => {
|
|
3588
|
-
R[$.id + $.name] =
|
|
3589
|
-
}),
|
|
3588
|
+
R[$.id + $.name] = ae.getColumn($.id + $.name)?.getSize() || 0;
|
|
3589
|
+
}), ae.setColumnSizing({
|
|
3590
3590
|
...R,
|
|
3591
3591
|
[E]: N
|
|
3592
3592
|
});
|
|
3593
|
-
}, Le =
|
|
3593
|
+
}, Le = se(() => {
|
|
3594
3594
|
const E = [];
|
|
3595
3595
|
return E.push({
|
|
3596
3596
|
id: "select-col",
|
|
@@ -3600,7 +3600,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3600
3600
|
enableResizing: !1,
|
|
3601
3601
|
size: 52,
|
|
3602
3602
|
header: ({ table: N }) => /* @__PURE__ */ r(
|
|
3603
|
-
|
|
3603
|
+
te,
|
|
3604
3604
|
{
|
|
3605
3605
|
className: "relative z-10 text-[#2563EB] dark:checked:border-[#2563EB] dark:checked:bg-[#2563EB]",
|
|
3606
3606
|
style: {
|
|
@@ -3608,19 +3608,19 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3608
3608
|
},
|
|
3609
3609
|
checked: N.getIsAllRowsSelected(),
|
|
3610
3610
|
onChange: (R) => {
|
|
3611
|
-
R ? (N.toggleAllRowsSelected(),
|
|
3611
|
+
R ? (N.toggleAllRowsSelected(), ie.length > 0 && (L.current = ie[0].id)) : (Ce({}), L.current = null);
|
|
3612
3612
|
}
|
|
3613
3613
|
}
|
|
3614
3614
|
),
|
|
3615
3615
|
cell: ({ row: N, column: R }) => /* @__PURE__ */ h("div", { className: "flex h-1 justify-around gap-2", children: [
|
|
3616
3616
|
/* @__PURE__ */ r(
|
|
3617
|
-
|
|
3617
|
+
te,
|
|
3618
3618
|
{
|
|
3619
3619
|
className: "relative z-10 text-[#2563EB] dark:checked:border-[#2563EB] dark:checked:bg-[#2563EB]",
|
|
3620
3620
|
checked: N.getIsSelected(),
|
|
3621
3621
|
onChange: ($, U) => {
|
|
3622
|
-
(U.nativeEvent ? U.nativeEvent.shiftKey : !1) && L.current ? D(N.id, U.target.checked) : Ce((
|
|
3623
|
-
const pe = { ...
|
|
3622
|
+
(U.nativeEvent ? U.nativeEvent.shiftKey : !1) && L.current ? D(N.id, U.target.checked) : Ce((ee) => {
|
|
3623
|
+
const pe = { ...ee };
|
|
3624
3624
|
return U.target.checked ? pe[N.id] = !0 : delete pe[N.id], pe;
|
|
3625
3625
|
}), L.current = N.id;
|
|
3626
3626
|
}
|
|
@@ -3631,7 +3631,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3631
3631
|
{
|
|
3632
3632
|
className: "translate-y-0.5 opacity-0 transition-opacity group-hover:opacity-100",
|
|
3633
3633
|
onClick: () => _(N.id),
|
|
3634
|
-
children: /* @__PURE__ */ r(
|
|
3634
|
+
children: /* @__PURE__ */ r(Ta, { className: "h-4 w-4 text-neutral-500 dark:text-neutral-400" })
|
|
3635
3635
|
}
|
|
3636
3636
|
)
|
|
3637
3637
|
] })
|
|
@@ -3681,23 +3681,23 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3681
3681
|
}
|
|
3682
3682
|
);
|
|
3683
3683
|
if (N.name === "size")
|
|
3684
|
-
return
|
|
3684
|
+
return Yn(R.row.original[N.name]);
|
|
3685
3685
|
}
|
|
3686
3686
|
if (N.checkedDataType === "boolean")
|
|
3687
3687
|
return R.row.original[N.name] ? "true" : "false";
|
|
3688
3688
|
if (N.checkedDataType === "date") {
|
|
3689
|
-
const $ =
|
|
3689
|
+
const $ = Ma(R.row.original[N.name]);
|
|
3690
3690
|
return ke && $?.toLocaleString() || R.row.original[N.name];
|
|
3691
3691
|
}
|
|
3692
|
-
return Se(R.row.original[N.name]) ? /* @__PURE__ */ r(
|
|
3692
|
+
return Se(R.row.original[N.name]) ? /* @__PURE__ */ r(Lo, { data: R.row.original[N.name] }) : R.row.original[N.name];
|
|
3693
3693
|
}
|
|
3694
3694
|
});
|
|
3695
3695
|
}), E;
|
|
3696
|
-
}, [i?.attrs, ke]), [
|
|
3697
|
-
const E = Object.entries(
|
|
3698
|
-
(U, [K,
|
|
3696
|
+
}, [i?.attrs, ke]), [aa, na] = C({}), oa = () => {
|
|
3697
|
+
const E = Object.entries(ae.getState().columnSizing).reduce(
|
|
3698
|
+
(U, [K, ee]) => et.visibility[K] !== !1 ? {
|
|
3699
3699
|
...U,
|
|
3700
|
-
[K]:
|
|
3700
|
+
[K]: ee
|
|
3701
3701
|
} : U,
|
|
3702
3702
|
{}
|
|
3703
3703
|
), N = De.current?.clientWidth || -1, R = Object.values(E).reduce(
|
|
@@ -3706,12 +3706,12 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3706
3706
|
), $ = N - 52 - R;
|
|
3707
3707
|
if ($ > 0) {
|
|
3708
3708
|
const U = Object.keys(E).length, K = $ / U;
|
|
3709
|
-
Object.keys(E).forEach((
|
|
3710
|
-
E[
|
|
3709
|
+
Object.keys(E).forEach((ee) => {
|
|
3710
|
+
E[ee] += K;
|
|
3711
3711
|
});
|
|
3712
3712
|
}
|
|
3713
|
-
|
|
3714
|
-
},
|
|
3713
|
+
qt(!1), ae.setColumnSizing(() => ({ ...E }));
|
|
3714
|
+
}, ia = "onChange", la = "ltr", et = Wn({
|
|
3715
3715
|
appId: o.appId,
|
|
3716
3716
|
attrs: i?.attrs,
|
|
3717
3717
|
namespaceId: i?.id
|
|
@@ -3744,21 +3744,21 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3744
3744
|
P(() => {
|
|
3745
3745
|
Ce({}), L.current = null;
|
|
3746
3746
|
}, [i?.id]);
|
|
3747
|
-
const $e = Object.keys(Ee).length, Ie =
|
|
3748
|
-
columnResizeDirection:
|
|
3749
|
-
columnResizeMode:
|
|
3747
|
+
const $e = Object.keys(Ee).length, Ie = z === "$files" ? $e === 1 ? "file" : "files" : $e === 1 ? "row" : "rows", ae = pn({
|
|
3748
|
+
columnResizeDirection: la,
|
|
3749
|
+
columnResizeMode: ia,
|
|
3750
3750
|
onColumnVisibilityChange: et.setVisibility,
|
|
3751
3751
|
columns: Le,
|
|
3752
|
-
data:
|
|
3752
|
+
data: jt,
|
|
3753
3753
|
enableColumnResizing: !0,
|
|
3754
3754
|
enableRowSelection: !0,
|
|
3755
|
-
getCoreRowModel:
|
|
3755
|
+
getCoreRowModel: gn(),
|
|
3756
3756
|
getRowId: (E) => E.id,
|
|
3757
3757
|
onColumnOrderChange: tt,
|
|
3758
3758
|
onRowSelectionChange: Ce,
|
|
3759
|
-
onColumnSizingChange:
|
|
3759
|
+
onColumnSizingChange: na,
|
|
3760
3760
|
state: {
|
|
3761
|
-
columnSizing:
|
|
3761
|
+
columnSizing: aa,
|
|
3762
3762
|
columnOrder: Fe,
|
|
3763
3763
|
columnVisibility: et.visibility,
|
|
3764
3764
|
rowSelection: Ee
|
|
@@ -3776,33 +3776,33 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3776
3776
|
window.removeEventListener("keydown", E), window.removeEventListener("keyup", N), window.removeEventListener("blur-sm", R);
|
|
3777
3777
|
};
|
|
3778
3778
|
}, []);
|
|
3779
|
-
const [
|
|
3780
|
-
function
|
|
3779
|
+
const [sa, je] = C(!1);
|
|
3780
|
+
function da(E) {
|
|
3781
3781
|
const { active: N, over: R } = E;
|
|
3782
3782
|
N && R && N.id !== R.id && N.id !== "select-col" && R.id !== "select-col" && tt(($) => {
|
|
3783
3783
|
const U = $.indexOf(N.id), K = $.indexOf(R.id);
|
|
3784
|
-
return
|
|
3784
|
+
return un($, U, K);
|
|
3785
3785
|
});
|
|
3786
3786
|
}
|
|
3787
|
-
const bt =
|
|
3788
|
-
() =>
|
|
3789
|
-
[
|
|
3787
|
+
const bt = se(
|
|
3788
|
+
() => ie.find((E) => E.id === x),
|
|
3789
|
+
[ie.length, x]
|
|
3790
3790
|
);
|
|
3791
3791
|
P(() => {
|
|
3792
3792
|
const E = De.current;
|
|
3793
3793
|
if (!E) return;
|
|
3794
3794
|
const N = () => {
|
|
3795
|
-
const U =
|
|
3796
|
-
|
|
3797
|
-
const { scrollLeft:
|
|
3795
|
+
const U = ae.getCenterTotalSize(), K = E.clientWidth;
|
|
3796
|
+
qt(U < K - 5);
|
|
3797
|
+
const { scrollLeft: ee, scrollWidth: pe, clientWidth: ze } = E, Ae = pe - ze;
|
|
3798
3798
|
if (Ae <= 0) {
|
|
3799
|
-
|
|
3799
|
+
Bt(0), Ut(0);
|
|
3800
3800
|
return;
|
|
3801
3801
|
}
|
|
3802
|
-
const rt = Math.min(
|
|
3803
|
-
|
|
3804
|
-
const
|
|
3805
|
-
|
|
3802
|
+
const rt = Math.min(ee / 30, 1);
|
|
3803
|
+
Bt(rt);
|
|
3804
|
+
const ha = Math.min((Ae - ee) / 30, 1);
|
|
3805
|
+
Ut(ha);
|
|
3806
3806
|
};
|
|
3807
3807
|
N(), E.addEventListener("scroll", N);
|
|
3808
3808
|
const R = new ResizeObserver(N);
|
|
@@ -3811,12 +3811,12 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3811
3811
|
return $ && R.observe($), window.addEventListener("resize", N), () => {
|
|
3812
3812
|
E.removeEventListener("scroll", N), R.disconnect(), window.removeEventListener("resize", N);
|
|
3813
3813
|
};
|
|
3814
|
-
}, [i,
|
|
3815
|
-
const
|
|
3816
|
-
wt(
|
|
3817
|
-
wt(
|
|
3818
|
-
wt(
|
|
3819
|
-
),
|
|
3814
|
+
}, [i, jt]);
|
|
3815
|
+
const ca = Ja(
|
|
3816
|
+
wt(en, {}),
|
|
3817
|
+
wt(tn, {}),
|
|
3818
|
+
wt(rn, {})
|
|
3819
|
+
), ua = n.items.length >= 1, pa = (E) => E === "id" ? 140 : E === "url" ? 120 : E.length * 7.2 + 50;
|
|
3820
3820
|
if (yt(() => {
|
|
3821
3821
|
if (i?.id) {
|
|
3822
3822
|
if (localStorage.getItem(
|
|
@@ -3827,12 +3827,12 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3827
3827
|
`sizing-${i.id}-${o.appId}`
|
|
3828
3828
|
) || "{}"
|
|
3829
3829
|
);
|
|
3830
|
-
|
|
3830
|
+
ae.setColumnSizing(() => ({ ...U }));
|
|
3831
3831
|
return;
|
|
3832
3832
|
}
|
|
3833
3833
|
const E = De.current?.clientWidth || -1, N = {};
|
|
3834
3834
|
i?.attrs.forEach((U) => {
|
|
3835
|
-
N[U.id + U.name] =
|
|
3835
|
+
N[U.id + U.name] = pa(U.name);
|
|
3836
3836
|
});
|
|
3837
3837
|
const R = Object.values(N).reduce(
|
|
3838
3838
|
(U, K) => U + K,
|
|
@@ -3840,16 +3840,16 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3840
3840
|
), $ = E - 52 - R;
|
|
3841
3841
|
if ($ > 0) {
|
|
3842
3842
|
const U = Object.keys(N).length, K = $ / U;
|
|
3843
|
-
Object.keys(N).forEach((
|
|
3844
|
-
N[
|
|
3843
|
+
Object.keys(N).forEach((ee) => {
|
|
3844
|
+
N[ee] += K;
|
|
3845
3845
|
});
|
|
3846
3846
|
}
|
|
3847
|
-
|
|
3847
|
+
ae.setColumnSizing(N);
|
|
3848
3848
|
}
|
|
3849
3849
|
}, [De.current, i]), !i)
|
|
3850
3850
|
return null;
|
|
3851
|
-
const
|
|
3852
|
-
return /* @__PURE__ */ h(
|
|
3851
|
+
const ga = i.id;
|
|
3852
|
+
return /* @__PURE__ */ h(B, { children: [
|
|
3853
3853
|
/* @__PURE__ */ r(
|
|
3854
3854
|
fe,
|
|
3855
3855
|
{
|
|
@@ -3894,12 +3894,12 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3894
3894
|
try {
|
|
3895
3895
|
await e.transact(
|
|
3896
3896
|
Object.keys(Ee).map(
|
|
3897
|
-
(E) =>
|
|
3897
|
+
(E) => Ua[i.name][E].delete()
|
|
3898
3898
|
)
|
|
3899
3899
|
);
|
|
3900
3900
|
} catch (E) {
|
|
3901
3901
|
const N = E.message;
|
|
3902
|
-
|
|
3902
|
+
le(
|
|
3903
3903
|
`Failed to delete ${Ie}${N ? `: ${N}` : ""}`
|
|
3904
3904
|
);
|
|
3905
3905
|
return;
|
|
@@ -3916,14 +3916,14 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3916
3916
|
{
|
|
3917
3917
|
title: "Edit Row",
|
|
3918
3918
|
open: q,
|
|
3919
|
-
onClose: () =>
|
|
3919
|
+
onClose: () => M(!1),
|
|
3920
3920
|
children: i ? /* @__PURE__ */ r(
|
|
3921
|
-
|
|
3921
|
+
or,
|
|
3922
3922
|
{
|
|
3923
3923
|
db: e,
|
|
3924
3924
|
item: {},
|
|
3925
3925
|
namespace: i,
|
|
3926
|
-
onClose: () =>
|
|
3926
|
+
onClose: () => M(!1)
|
|
3927
3927
|
}
|
|
3928
3928
|
) : null
|
|
3929
3929
|
}
|
|
@@ -3935,7 +3935,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3935
3935
|
open: !!bt,
|
|
3936
3936
|
onClose: () => _(null),
|
|
3937
3937
|
children: i && bt ? /* @__PURE__ */ r(
|
|
3938
|
-
|
|
3938
|
+
or,
|
|
3939
3939
|
{
|
|
3940
3940
|
db: e,
|
|
3941
3941
|
namespace: i,
|
|
@@ -3953,10 +3953,10 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3953
3953
|
open: !!v,
|
|
3954
3954
|
onClose: () => k(null),
|
|
3955
3955
|
children: i ? /* @__PURE__ */ r(
|
|
3956
|
-
|
|
3956
|
+
oo,
|
|
3957
3957
|
{
|
|
3958
3958
|
readOnly: S,
|
|
3959
|
-
isSystemCatalogNs:
|
|
3959
|
+
isSystemCatalogNs: j,
|
|
3960
3960
|
db: e,
|
|
3961
3961
|
namespace: i,
|
|
3962
3962
|
namespaces: t ?? [],
|
|
@@ -3970,8 +3970,8 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3970
3970
|
/* @__PURE__ */ h("div", { className: "flex flex-1 grow flex-col overflow-hidden bg-white dark:bg-neutral-800", children: [
|
|
3971
3971
|
/* @__PURE__ */ r("div", { className: "flex items-center overflow-hidden border-b border-b-gray-200 dark:border-neutral-700", children: /* @__PURE__ */ h("div", { className: "flex flex-1 flex-col justify-between py-2 md:flex-row md:items-center", children: [
|
|
3972
3972
|
/* @__PURE__ */ h("div", { className: "flex items-center overflow-hidden border-b px-2 py-1 pl-4 md:border-b-0 dark:border-neutral-700", children: [
|
|
3973
|
-
|
|
3974
|
-
|
|
3973
|
+
ua ? /* @__PURE__ */ r(
|
|
3974
|
+
Vt,
|
|
3975
3975
|
{
|
|
3976
3976
|
className: "mr-4 inline cursor-pointer",
|
|
3977
3977
|
height: "1rem",
|
|
@@ -3979,7 +3979,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3979
3979
|
}
|
|
3980
3980
|
) : null,
|
|
3981
3981
|
l.where ? /* @__PURE__ */ r(
|
|
3982
|
-
|
|
3982
|
+
gr,
|
|
3983
3983
|
{
|
|
3984
3984
|
className: "mr-4 inline cursor-pointer",
|
|
3985
3985
|
height: "1rem",
|
|
@@ -3996,7 +3996,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
3996
3996
|
/* @__PURE__ */ h("div", { className: "text-ellipses shrink truncate overflow-hidden font-mono text-xs whitespace-nowrap dark:text-white", children: [
|
|
3997
3997
|
/* @__PURE__ */ r("strong", { children: i.name }),
|
|
3998
3998
|
" ",
|
|
3999
|
-
l.where ? /* @__PURE__ */ h(
|
|
3999
|
+
l.where ? /* @__PURE__ */ h(B, { children: [
|
|
4000
4000
|
" ",
|
|
4001
4001
|
"where ",
|
|
4002
4002
|
/* @__PURE__ */ r("strong", { children: l.where[0] }),
|
|
@@ -4036,13 +4036,13 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4036
4036
|
}
|
|
4037
4037
|
),
|
|
4038
4038
|
/* @__PURE__ */ r(
|
|
4039
|
-
|
|
4039
|
+
Mn,
|
|
4040
4040
|
{
|
|
4041
4041
|
onSearchChange: (E) => Q(E),
|
|
4042
4042
|
attrs: i?.attrs,
|
|
4043
4043
|
initialFilters: l?.filters || []
|
|
4044
4044
|
},
|
|
4045
|
-
|
|
4045
|
+
ga
|
|
4046
4046
|
)
|
|
4047
4047
|
] })
|
|
4048
4048
|
] }) }),
|
|
@@ -4067,7 +4067,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4067
4067
|
disabled: p.length === 0,
|
|
4068
4068
|
size: "mini",
|
|
4069
4069
|
loading: d,
|
|
4070
|
-
onClick:
|
|
4070
|
+
onClick: ta,
|
|
4071
4071
|
className: "rounded-sm",
|
|
4072
4072
|
children: d ? "Uploading..." : "Upload file"
|
|
4073
4073
|
}
|
|
@@ -4096,10 +4096,10 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4096
4096
|
size: "mini",
|
|
4097
4097
|
variant: "secondary",
|
|
4098
4098
|
onClick: () => {
|
|
4099
|
-
|
|
4099
|
+
M(!0);
|
|
4100
4100
|
},
|
|
4101
4101
|
children: [
|
|
4102
|
-
/* @__PURE__ */ r(
|
|
4102
|
+
/* @__PURE__ */ r(hn, { width: 12 }),
|
|
4103
4103
|
"Add row"
|
|
4104
4104
|
]
|
|
4105
4105
|
}
|
|
@@ -4133,7 +4133,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4133
4133
|
)
|
|
4134
4134
|
}
|
|
4135
4135
|
),
|
|
4136
|
-
/* @__PURE__ */ r("div", { className: "w-[62px]", children: W !== void 0 && (W === 0 ? /* @__PURE__ */ r(
|
|
4136
|
+
/* @__PURE__ */ r("div", { className: "w-[62px]", children: W !== void 0 && (W === 0 ? /* @__PURE__ */ r(B, { children: "No Results" }) : /* @__PURE__ */ h(B, { children: [
|
|
4137
4137
|
(Z - 1) * g + 1,
|
|
4138
4138
|
" -",
|
|
4139
4139
|
" ",
|
|
@@ -4156,7 +4156,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4156
4156
|
}));
|
|
4157
4157
|
},
|
|
4158
4158
|
children: /* @__PURE__ */ r(
|
|
4159
|
-
|
|
4159
|
+
Vt,
|
|
4160
4160
|
{
|
|
4161
4161
|
className: O("inline", {
|
|
4162
4162
|
"opacity-40": Z <= 1
|
|
@@ -4205,7 +4205,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4205
4205
|
}));
|
|
4206
4206
|
},
|
|
4207
4207
|
children: /* @__PURE__ */ r(
|
|
4208
|
-
|
|
4208
|
+
fn,
|
|
4209
4209
|
{
|
|
4210
4210
|
className: O("inline", {
|
|
4211
4211
|
"opacity-40": Z >= ce
|
|
@@ -4216,16 +4216,16 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4216
4216
|
}
|
|
4217
4217
|
),
|
|
4218
4218
|
$e > 0 && /* @__PURE__ */ h("div", { className: "flex items-center gap-2 pl-4", children: [
|
|
4219
|
-
/* @__PURE__ */ h(
|
|
4220
|
-
/* @__PURE__ */ r(
|
|
4219
|
+
/* @__PURE__ */ h(Kr, { open: sa, onOpenChange: je, children: [
|
|
4220
|
+
/* @__PURE__ */ r(Xr, { children: /* @__PURE__ */ h(
|
|
4221
4221
|
V,
|
|
4222
4222
|
{
|
|
4223
4223
|
onClick: () => {
|
|
4224
|
-
|
|
4224
|
+
je(!0);
|
|
4225
4225
|
},
|
|
4226
4226
|
variant: "secondary",
|
|
4227
4227
|
children: [
|
|
4228
|
-
/* @__PURE__ */ r(
|
|
4228
|
+
/* @__PURE__ */ r(Oa, { width: 14 }),
|
|
4229
4229
|
"Export (",
|
|
4230
4230
|
$e,
|
|
4231
4231
|
")"
|
|
@@ -4233,7 +4233,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4233
4233
|
}
|
|
4234
4234
|
) }),
|
|
4235
4235
|
/* @__PURE__ */ h(
|
|
4236
|
-
|
|
4236
|
+
Zr,
|
|
4237
4237
|
{
|
|
4238
4238
|
className: "z-100",
|
|
4239
4239
|
align: "end",
|
|
@@ -4246,19 +4246,19 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4246
4246
|
onSelect: (E) => {
|
|
4247
4247
|
E.preventDefault();
|
|
4248
4248
|
const N = ye(
|
|
4249
|
-
|
|
4249
|
+
ie,
|
|
4250
4250
|
Ee
|
|
4251
4251
|
);
|
|
4252
|
-
|
|
4252
|
+
Ro(
|
|
4253
4253
|
N,
|
|
4254
4254
|
Le,
|
|
4255
4255
|
i.name,
|
|
4256
4256
|
xe
|
|
4257
|
-
),
|
|
4257
|
+
), je(!1);
|
|
4258
4258
|
},
|
|
4259
4259
|
className: "flex items-center gap-2",
|
|
4260
4260
|
children: [
|
|
4261
|
-
/* @__PURE__ */ r(
|
|
4261
|
+
/* @__PURE__ */ r(mn, { width: 12 }),
|
|
4262
4262
|
xe ? "Download as CSV" : "Copy as CSV"
|
|
4263
4263
|
]
|
|
4264
4264
|
}
|
|
@@ -4269,19 +4269,19 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4269
4269
|
onSelect: (E) => {
|
|
4270
4270
|
E.preventDefault();
|
|
4271
4271
|
const N = ye(
|
|
4272
|
-
|
|
4272
|
+
ie,
|
|
4273
4273
|
Ee
|
|
4274
4274
|
);
|
|
4275
|
-
|
|
4275
|
+
To(
|
|
4276
4276
|
N,
|
|
4277
4277
|
Le,
|
|
4278
4278
|
i.name,
|
|
4279
4279
|
xe
|
|
4280
|
-
),
|
|
4280
|
+
), je(!1);
|
|
4281
4281
|
},
|
|
4282
4282
|
className: "flex items-center gap-2",
|
|
4283
4283
|
children: [
|
|
4284
|
-
/* @__PURE__ */ r(
|
|
4284
|
+
/* @__PURE__ */ r(bn, { width: 12 }),
|
|
4285
4285
|
xe ? "Download as Markdown" : "Copy as Markdown"
|
|
4286
4286
|
]
|
|
4287
4287
|
}
|
|
@@ -4292,25 +4292,25 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4292
4292
|
onSelect: (E) => {
|
|
4293
4293
|
E.preventDefault();
|
|
4294
4294
|
const N = ye(
|
|
4295
|
-
|
|
4295
|
+
ie,
|
|
4296
4296
|
Ee
|
|
4297
4297
|
);
|
|
4298
|
-
|
|
4298
|
+
Oo(
|
|
4299
4299
|
N,
|
|
4300
4300
|
Le,
|
|
4301
4301
|
i.name,
|
|
4302
4302
|
xe
|
|
4303
|
-
),
|
|
4303
|
+
), je(!1);
|
|
4304
4304
|
},
|
|
4305
4305
|
className: "flex items-center gap-2",
|
|
4306
4306
|
children: [
|
|
4307
|
-
/* @__PURE__ */ r(
|
|
4307
|
+
/* @__PURE__ */ r(wn, { width: 12 }),
|
|
4308
4308
|
xe ? "Download as JSON" : "Copy as JSON"
|
|
4309
4309
|
]
|
|
4310
4310
|
}
|
|
4311
4311
|
),
|
|
4312
|
-
!xe && /* @__PURE__ */ h(
|
|
4313
|
-
/* @__PURE__ */ r(
|
|
4312
|
+
!xe && /* @__PURE__ */ h(B, { children: [
|
|
4313
|
+
/* @__PURE__ */ r(Qr, {}),
|
|
4314
4314
|
/* @__PURE__ */ r(
|
|
4315
4315
|
Pe,
|
|
4316
4316
|
{
|
|
@@ -4333,7 +4333,7 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4333
4333
|
className: "px-2",
|
|
4334
4334
|
variant: "destructive",
|
|
4335
4335
|
children: [
|
|
4336
|
-
/* @__PURE__ */ r(
|
|
4336
|
+
/* @__PURE__ */ r(_a, { width: 14 }),
|
|
4337
4337
|
"Delete Selected Rows"
|
|
4338
4338
|
]
|
|
4339
4339
|
}
|
|
@@ -4341,30 +4341,30 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4341
4341
|
] }),
|
|
4342
4342
|
/* @__PURE__ */ r("div", { className: "grow" }),
|
|
4343
4343
|
/* @__PURE__ */ r("div", { className: "px-2", children: /* @__PURE__ */ r(
|
|
4344
|
-
|
|
4344
|
+
eo,
|
|
4345
4345
|
{
|
|
4346
4346
|
localDates: ke,
|
|
4347
|
-
setLocalDates:
|
|
4347
|
+
setLocalDates: ea,
|
|
4348
4348
|
visiblity: et
|
|
4349
4349
|
}
|
|
4350
4350
|
) })
|
|
4351
4351
|
] }),
|
|
4352
4352
|
/* @__PURE__ */ r(
|
|
4353
|
-
|
|
4353
|
+
an,
|
|
4354
4354
|
{
|
|
4355
|
-
collisionDetection:
|
|
4356
|
-
modifiers: [
|
|
4357
|
-
onDragEnd:
|
|
4358
|
-
sensors:
|
|
4355
|
+
collisionDetection: nn,
|
|
4356
|
+
modifiers: [cn],
|
|
4357
|
+
onDragEnd: da,
|
|
4358
|
+
sensors: ca,
|
|
4359
4359
|
children: /* @__PURE__ */ h("div", { className: "relative flex-1 overflow-hidden bg-neutral-100 dark:bg-neutral-900/50", children: [
|
|
4360
|
-
!
|
|
4360
|
+
!Pt && /* @__PURE__ */ r(
|
|
4361
4361
|
"div",
|
|
4362
4362
|
{
|
|
4363
4363
|
className: "absolute top-0 right-0 bottom-0 z-50 w-[30px] bg-linear-to-l from-black/20 via-black/5 to-transparent transition-opacity duration-150",
|
|
4364
4364
|
style: {
|
|
4365
4365
|
pointerEvents: "none",
|
|
4366
|
-
opacity:
|
|
4367
|
-
display:
|
|
4366
|
+
opacity: Mt,
|
|
4367
|
+
display: Mt == 0 ? "none" : void 0
|
|
4368
4368
|
}
|
|
4369
4369
|
}
|
|
4370
4370
|
),
|
|
@@ -4374,8 +4374,8 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4374
4374
|
className: "absolute top-0 bottom-0 left-0 z-50 w-[30px] bg-linear-to-r from-black/10 via-black/0 to-transparent transition-opacity duration-150",
|
|
4375
4375
|
style: {
|
|
4376
4376
|
pointerEvents: "none",
|
|
4377
|
-
opacity:
|
|
4378
|
-
display:
|
|
4377
|
+
opacity: zt,
|
|
4378
|
+
display: zt == 0 ? "none" : void 0
|
|
4379
4379
|
}
|
|
4380
4380
|
}
|
|
4381
4381
|
),
|
|
@@ -4384,26 +4384,26 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4384
4384
|
"div",
|
|
4385
4385
|
{
|
|
4386
4386
|
style: {
|
|
4387
|
-
width:
|
|
4387
|
+
width: ae.getCenterTotalSize()
|
|
4388
4388
|
},
|
|
4389
4389
|
className: "z-0 text-left font-mono text-xs text-neutral-500 dark:text-neutral-400",
|
|
4390
4390
|
children: [
|
|
4391
|
-
/* @__PURE__ */ r("div", { className: "sticky top-0 z-10 border-r border-b border-gray-200 border-r-gray-200 bg-white text-neutral-700 shadow-sm dark:border-r-neutral-700 dark:border-b-neutral-600 dark:bg-[#303030] dark:text-neutral-300", children:
|
|
4392
|
-
|
|
4391
|
+
/* @__PURE__ */ r("div", { className: "sticky top-0 z-10 border-r border-b border-gray-200 border-r-gray-200 bg-white text-neutral-700 shadow-sm dark:border-r-neutral-700 dark:border-b-neutral-600 dark:bg-[#303030] dark:text-neutral-300", children: ae.getHeaderGroups().map((E) => /* @__PURE__ */ r("div", { className: "flex w-full", children: /* @__PURE__ */ r(
|
|
4392
|
+
Ht,
|
|
4393
4393
|
{
|
|
4394
4394
|
items: Fe,
|
|
4395
|
-
strategy:
|
|
4395
|
+
strategy: Wt,
|
|
4396
4396
|
children: E.headers.map((N, R) => /* @__PURE__ */ r(
|
|
4397
|
-
|
|
4397
|
+
Zn,
|
|
4398
4398
|
{
|
|
4399
4399
|
header: N,
|
|
4400
|
-
table:
|
|
4400
|
+
table: ae,
|
|
4401
4401
|
headerGroup: E,
|
|
4402
4402
|
index: R,
|
|
4403
|
-
setMinViableColWidth:
|
|
4403
|
+
setMinViableColWidth: ra,
|
|
4404
4404
|
onSort: ($, U, K) => {
|
|
4405
|
-
n.push((
|
|
4406
|
-
...
|
|
4405
|
+
n.push((ee) => ({
|
|
4406
|
+
...ee,
|
|
4407
4407
|
sortAttr: $,
|
|
4408
4408
|
sortAsc: U !== $ ? !0 : !K
|
|
4409
4409
|
}));
|
|
@@ -4415,16 +4415,16 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4415
4415
|
))
|
|
4416
4416
|
}
|
|
4417
4417
|
) }, E.id)) }),
|
|
4418
|
-
/* @__PURE__ */ r("div", { children:
|
|
4418
|
+
/* @__PURE__ */ r("div", { children: ae.getRowModel().rows.map((E) => /* @__PURE__ */ r(
|
|
4419
4419
|
"div",
|
|
4420
4420
|
{
|
|
4421
4421
|
className: "group flex border-r border-b border-r-gray-200 border-b-gray-200 bg-white dark:border-neutral-700 dark:border-r-neutral-700 dark:bg-neutral-800",
|
|
4422
4422
|
children: E.getVisibleCells().map((N) => /* @__PURE__ */ r(
|
|
4423
|
-
|
|
4423
|
+
Ht,
|
|
4424
4424
|
{
|
|
4425
4425
|
items: Fe,
|
|
4426
|
-
strategy:
|
|
4427
|
-
children: /* @__PURE__ */ r(
|
|
4426
|
+
strategy: Wt,
|
|
4427
|
+
children: /* @__PURE__ */ r(Qn, { cell: N }, N.id)
|
|
4428
4428
|
},
|
|
4429
4429
|
N.id
|
|
4430
4430
|
))
|
|
@@ -4434,14 +4434,14 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4434
4434
|
]
|
|
4435
4435
|
}
|
|
4436
4436
|
),
|
|
4437
|
-
|
|
4437
|
+
Pt && /* @__PURE__ */ r("div", { className: "sticky top-0", children: /* @__PURE__ */ r(
|
|
4438
4438
|
ht,
|
|
4439
4439
|
{
|
|
4440
4440
|
className: "opacity-60",
|
|
4441
4441
|
labelDirection: "bottom",
|
|
4442
4442
|
label: "Fill Width",
|
|
4443
|
-
icon: /* @__PURE__ */ r(
|
|
4444
|
-
onClick:
|
|
4443
|
+
icon: /* @__PURE__ */ r(vn, {}),
|
|
4444
|
+
onClick: oa
|
|
4445
4445
|
}
|
|
4446
4446
|
) })
|
|
4447
4447
|
] }) })
|
|
@@ -4451,31 +4451,31 @@ const Co = ({ db: e, namespaces: t }) => {
|
|
|
4451
4451
|
] })
|
|
4452
4452
|
] });
|
|
4453
4453
|
};
|
|
4454
|
-
function
|
|
4454
|
+
function Do(e, t) {
|
|
4455
4455
|
return Se(e) ? JSON.stringify(e, null, t ? 2 : void 0) : String(e);
|
|
4456
4456
|
}
|
|
4457
|
-
function
|
|
4458
|
-
const a = de(), n =
|
|
4459
|
-
return t && Se(e) ? /* @__PURE__ */ r(
|
|
4457
|
+
function Lo({ data: e, pretty: t }) {
|
|
4458
|
+
const a = de(), n = Do(e, t);
|
|
4459
|
+
return t && Se(e) ? /* @__PURE__ */ r($t, { darkMode: a.darkMode, code: n, language: "json" }) : /* @__PURE__ */ r(B, { children: n });
|
|
4460
4460
|
}
|
|
4461
|
-
async function
|
|
4461
|
+
async function Fo(e, t) {
|
|
4462
4462
|
const a = await fetch(e, t), n = await a.json();
|
|
4463
4463
|
return a.status === 200 ? Promise.resolve(n) : Promise.reject({ status: a.status, body: n });
|
|
4464
4464
|
}
|
|
4465
|
-
async function
|
|
4465
|
+
async function $o(e, t, a, n, o) {
|
|
4466
4466
|
const l = {
|
|
4467
4467
|
app_id: t,
|
|
4468
4468
|
path: n || a.name,
|
|
4469
4469
|
authorization: `Bearer ${e}`,
|
|
4470
4470
|
"content-type": a.type
|
|
4471
4471
|
};
|
|
4472
|
-
return await
|
|
4472
|
+
return await Fo(`${o}/dash/apps/${t}/storage/upload`, {
|
|
4473
4473
|
method: "PUT",
|
|
4474
4474
|
headers: l,
|
|
4475
4475
|
body: a
|
|
4476
4476
|
});
|
|
4477
4477
|
}
|
|
4478
|
-
function
|
|
4478
|
+
function jo(e, t) {
|
|
4479
4479
|
const a = (n) => {
|
|
4480
4480
|
e.current && n.target instanceof HTMLElement && !e.current.contains(n.target) && t();
|
|
4481
4481
|
};
|
|
@@ -4483,18 +4483,18 @@ function Oo(e, t) {
|
|
|
4483
4483
|
document.removeEventListener("click", a);
|
|
4484
4484
|
}));
|
|
4485
4485
|
}
|
|
4486
|
-
const
|
|
4486
|
+
const zo = ({
|
|
4487
4487
|
namespaces: e,
|
|
4488
4488
|
db: t,
|
|
4489
4489
|
appId: a
|
|
4490
4490
|
}) => {
|
|
4491
4491
|
const n = de(), o = st(), l = st(), i = e.find(
|
|
4492
4492
|
(s) => s.id === n.explorerState?.namespace
|
|
4493
|
-
), [g, c] = C(!1), p = X(null), [m, d] =
|
|
4493
|
+
), [g, c] = C(!1), p = X(null), [m, d] = Rt(
|
|
4494
4494
|
`${a}:recentExplorerNamespace`,
|
|
4495
4495
|
i?.id || ""
|
|
4496
4496
|
);
|
|
4497
|
-
|
|
4497
|
+
jo(p, () => {
|
|
4498
4498
|
c(!1);
|
|
4499
4499
|
}), P(
|
|
4500
4500
|
function() {
|
|
@@ -4511,7 +4511,7 @@ const _o = ({
|
|
|
4511
4511
|
} else
|
|
4512
4512
|
n.setExplorerState({ namespace: e[0].id });
|
|
4513
4513
|
}, [i, e, n]);
|
|
4514
|
-
const u =
|
|
4514
|
+
const u = Rr(n.appId);
|
|
4515
4515
|
return /* @__PURE__ */ h(
|
|
4516
4516
|
"div",
|
|
4517
4517
|
{
|
|
@@ -4520,9 +4520,9 @@ const _o = ({
|
|
|
4520
4520
|
n.className
|
|
4521
4521
|
),
|
|
4522
4522
|
children: [
|
|
4523
|
-
/* @__PURE__ */ r(fe, { title: "Recently Deleted Namespaces", ...o, children: /* @__PURE__ */ r(
|
|
4523
|
+
/* @__PURE__ */ r(fe, { title: "Recently Deleted Namespaces", ...o, children: /* @__PURE__ */ r(On, { appId: n.appId, db: t }) }),
|
|
4524
4524
|
/* @__PURE__ */ r(fe, { title: "New Namespace", ...l, children: /* @__PURE__ */ r(
|
|
4525
|
-
|
|
4525
|
+
Fn,
|
|
4526
4526
|
{
|
|
4527
4527
|
db: t,
|
|
4528
4528
|
onClose: (s) => {
|
|
@@ -4543,7 +4543,7 @@ const _o = ({
|
|
|
4543
4543
|
children: [
|
|
4544
4544
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-1 text-sm font-semibold dark:text-white", children: [
|
|
4545
4545
|
/* @__PURE__ */ r(
|
|
4546
|
-
|
|
4546
|
+
Va,
|
|
4547
4547
|
{
|
|
4548
4548
|
height: "1rem",
|
|
4549
4549
|
className: "cursor-pointer md:hidden dark:text-white",
|
|
@@ -4552,9 +4552,9 @@ const _o = ({
|
|
|
4552
4552
|
),
|
|
4553
4553
|
"Namespaces"
|
|
4554
4554
|
] }),
|
|
4555
|
-
e ? /* @__PURE__ */ h(
|
|
4555
|
+
e ? /* @__PURE__ */ h(B, { children: [
|
|
4556
4556
|
/* @__PURE__ */ r("div", { className: "overflow-x-hidden overflow-y-auto", children: e.length ? /* @__PURE__ */ r(
|
|
4557
|
-
|
|
4557
|
+
Pr,
|
|
4558
4558
|
{
|
|
4559
4559
|
className: "text-sm",
|
|
4560
4560
|
selectedId: n.explorerState?.namespace,
|
|
@@ -4575,7 +4575,7 @@ const _o = ({
|
|
|
4575
4575
|
className: "justify-center",
|
|
4576
4576
|
onClick: l.onOpen,
|
|
4577
4577
|
children: [
|
|
4578
|
-
/* @__PURE__ */ r(
|
|
4578
|
+
/* @__PURE__ */ r(br, { height: "1rem" }),
|
|
4579
4579
|
" Create"
|
|
4580
4580
|
]
|
|
4581
4581
|
}
|
|
@@ -4610,20 +4610,20 @@ const _o = ({
|
|
|
4610
4610
|
onClick: (s) => {
|
|
4611
4611
|
s.stopPropagation(), c(!0);
|
|
4612
4612
|
},
|
|
4613
|
-
children: /* @__PURE__ */ r(
|
|
4613
|
+
children: /* @__PURE__ */ r(Ya, { height: "1rem", className: "dark:text-white" })
|
|
4614
4614
|
}
|
|
4615
4615
|
) }),
|
|
4616
|
-
n.explorerState && /* @__PURE__ */ r(
|
|
4616
|
+
n.explorerState && /* @__PURE__ */ r(_o, { namespaces: e, db: t })
|
|
4617
4617
|
]
|
|
4618
4618
|
}
|
|
4619
4619
|
);
|
|
4620
|
-
},
|
|
4620
|
+
}, Bo = ({
|
|
4621
4621
|
appId: e,
|
|
4622
4622
|
apiURI: t,
|
|
4623
4623
|
websocketURI: a,
|
|
4624
4624
|
adminToken: n
|
|
4625
|
-
}) =>
|
|
4626
|
-
() =>
|
|
4625
|
+
}) => se(
|
|
4626
|
+
() => Qa({
|
|
4627
4627
|
appId: e,
|
|
4628
4628
|
apiURI: t,
|
|
4629
4629
|
websocketURI: a,
|
|
@@ -4634,7 +4634,7 @@ const _o = ({
|
|
|
4634
4634
|
}),
|
|
4635
4635
|
[e, t, a, n]
|
|
4636
4636
|
);
|
|
4637
|
-
class
|
|
4637
|
+
class Mo extends dr {
|
|
4638
4638
|
state = {
|
|
4639
4639
|
hasError: !1,
|
|
4640
4640
|
error: null
|
|
@@ -4651,7 +4651,7 @@ class Lo extends lr {
|
|
|
4651
4651
|
render() {
|
|
4652
4652
|
return this.state.hasError ? /* @__PURE__ */ h("div", { className: "flex h-full w-full flex-1 flex-col items-center justify-center gap-4 bg-white p-6 dark:bg-neutral-800", children: [
|
|
4653
4653
|
/* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-3 text-center", children: [
|
|
4654
|
-
/* @__PURE__ */ r("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-red-100 dark:bg-red-900/30", children: /* @__PURE__ */ r(
|
|
4654
|
+
/* @__PURE__ */ r("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-red-100 dark:bg-red-900/30", children: /* @__PURE__ */ r(Da, { className: "h-6 w-6 text-red-600 dark:text-red-400" }) }),
|
|
4655
4655
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-1", children: [
|
|
4656
4656
|
/* @__PURE__ */ r("h2", { className: "text-lg font-semibold text-gray-900 dark:text-white", children: "Something went wrong" }),
|
|
4657
4657
|
/* @__PURE__ */ r("p", { className: "max-w-md text-sm text-gray-500 dark:text-neutral-400", children: "An unexpected error occurred. Please try again or contact support if the problem persists." })
|
|
@@ -4672,28 +4672,28 @@ class Lo extends lr {
|
|
|
4672
4672
|
] }) : this.props.children;
|
|
4673
4673
|
}
|
|
4674
4674
|
}
|
|
4675
|
-
const
|
|
4675
|
+
const Tt = cr({ props: null, history: { push: () => {
|
|
4676
4676
|
}, pop: () => {
|
|
4677
4677
|
}, items: [] } }), de = () => {
|
|
4678
|
-
const e = dt(
|
|
4678
|
+
const e = dt(Tt);
|
|
4679
4679
|
if (!e.props)
|
|
4680
4680
|
throw new Error(
|
|
4681
4681
|
"useExplorerProps must be used within an Explorer component"
|
|
4682
4682
|
);
|
|
4683
4683
|
return e.props;
|
|
4684
4684
|
}, ut = () => {
|
|
4685
|
-
const e = dt(
|
|
4685
|
+
const e = dt(Tt);
|
|
4686
4686
|
if (!e.props || !e.props.explorerState)
|
|
4687
4687
|
throw new Error(
|
|
4688
4688
|
"useExplorerProps must be used within an Explorer component"
|
|
4689
4689
|
);
|
|
4690
4690
|
return { explorerState: e.props.explorerState, history: e.history };
|
|
4691
|
-
},
|
|
4692
|
-
const n =
|
|
4691
|
+
}, $r = (e) => e.explorerState !== void 0 || e.setExplorerState !== void 0, Uo = (e, t, a) => {
|
|
4692
|
+
const n = $r(e);
|
|
4693
4693
|
return {
|
|
4694
4694
|
...e,
|
|
4695
|
-
apiURI: e.apiURI ||
|
|
4696
|
-
websocketURI: e.websocketURI ||
|
|
4695
|
+
apiURI: e.apiURI || Xt.apiURI,
|
|
4696
|
+
websocketURI: e.websocketURI || Xt.websocketURI,
|
|
4697
4697
|
darkMode: e.darkMode === void 0 ? !1 : e.darkMode,
|
|
4698
4698
|
// In controlled mode, use the provided state (even if null)
|
|
4699
4699
|
// In uncontrolled mode, use the internal state
|
|
@@ -4701,10 +4701,10 @@ const Rt = sr({ props: null, history: { push: () => {
|
|
|
4701
4701
|
setExplorerState: e.setExplorerState || a,
|
|
4702
4702
|
useShadowDOM: e.useShadowDOM === void 0 ? !0 : e.useShadowDOM
|
|
4703
4703
|
};
|
|
4704
|
-
},
|
|
4704
|
+
}, Zi = (e) => {
|
|
4705
4705
|
const [t, a] = C(
|
|
4706
4706
|
null
|
|
4707
|
-
), n =
|
|
4707
|
+
), n = Uo(
|
|
4708
4708
|
e,
|
|
4709
4709
|
t,
|
|
4710
4710
|
a
|
|
@@ -4726,7 +4726,7 @@ const Rt = sr({ props: null, history: { push: () => {
|
|
|
4726
4726
|
}
|
|
4727
4727
|
return w;
|
|
4728
4728
|
});
|
|
4729
|
-
}, [l]), m =
|
|
4729
|
+
}, [l]), m = Bo({
|
|
4730
4730
|
appId: n.appId,
|
|
4731
4731
|
apiURI: n.apiURI,
|
|
4732
4732
|
websocketURI: n.websocketURI,
|
|
@@ -4737,9 +4737,9 @@ const Rt = sr({ props: null, history: { push: () => {
|
|
|
4737
4737
|
d.current = !1;
|
|
4738
4738
|
return;
|
|
4739
4739
|
}
|
|
4740
|
-
u.current !== n.appId && (u.current = n.appId, g([]),
|
|
4740
|
+
u.current !== n.appId && (u.current = n.appId, g([]), $r(e) || a(null));
|
|
4741
4741
|
}, [n.appId, e]);
|
|
4742
|
-
const s =
|
|
4742
|
+
const s = Hn(m), f = se(
|
|
4743
4743
|
() => ({
|
|
4744
4744
|
props: n,
|
|
4745
4745
|
history: {
|
|
@@ -4749,27 +4749,27 @@ const Rt = sr({ props: null, history: { push: () => {
|
|
|
4749
4749
|
}
|
|
4750
4750
|
}),
|
|
4751
4751
|
[n, c, p, i]
|
|
4752
|
-
), b = n.useShadowDOM ?
|
|
4753
|
-
return /* @__PURE__ */ r(
|
|
4754
|
-
|
|
4752
|
+
), b = n.useShadowDOM ? Po : He.Fragment;
|
|
4753
|
+
return /* @__PURE__ */ r(Tt.Provider, { value: f, children: /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(Mo, { children: /* @__PURE__ */ r(
|
|
4754
|
+
zo,
|
|
4755
4755
|
{
|
|
4756
4756
|
appId: n.appId,
|
|
4757
4757
|
db: m,
|
|
4758
4758
|
namespaces: s.namespaces || []
|
|
4759
4759
|
}
|
|
4760
4760
|
) }) }) });
|
|
4761
|
-
},
|
|
4761
|
+
}, Ot = cr({
|
|
4762
4762
|
shadowRoot: null,
|
|
4763
4763
|
container: null,
|
|
4764
4764
|
darkMode: !1
|
|
4765
4765
|
});
|
|
4766
4766
|
function Xe() {
|
|
4767
|
-
return dt(
|
|
4767
|
+
return dt(Ot).container;
|
|
4768
4768
|
}
|
|
4769
4769
|
function pt() {
|
|
4770
|
-
return dt(
|
|
4770
|
+
return dt(Ot).darkMode;
|
|
4771
4771
|
}
|
|
4772
|
-
const
|
|
4772
|
+
const Po = ({ children: e }) => {
|
|
4773
4773
|
const t = X(null), a = X(null), [n, o] = C(null), i = de().darkMode;
|
|
4774
4774
|
P(() => {
|
|
4775
4775
|
if (t.current && !n)
|
|
@@ -4777,7 +4777,7 @@ const $o = ({ children: e }) => {
|
|
|
4777
4777
|
const c = t.current.attachShadow({ mode: "open" });
|
|
4778
4778
|
a.current = c;
|
|
4779
4779
|
const p = document.createElement("style");
|
|
4780
|
-
p.textContent =
|
|
4780
|
+
p.textContent = An;
|
|
4781
4781
|
const m = document.createElement("div");
|
|
4782
4782
|
m.setAttribute("class", i ? "h-full dark" : "h-full"), c.appendChild(p), c.appendChild(m), o(m);
|
|
4783
4783
|
} catch {
|
|
@@ -4793,18 +4793,23 @@ const $o = ({ children: e }) => {
|
|
|
4793
4793
|
}),
|
|
4794
4794
|
[n, i]
|
|
4795
4795
|
);
|
|
4796
|
-
return /* @__PURE__ */ r("div", { ref: t, style: { height: "100%" }, className: O("h-full"), children: /* @__PURE__ */ r(
|
|
4796
|
+
return /* @__PURE__ */ r("div", { ref: t, style: { height: "100%" }, className: O("h-full"), children: /* @__PURE__ */ r(Ot.Provider, { value: g, children: n ? ja(e, n) : null }) });
|
|
4797
4797
|
};
|
|
4798
|
-
function
|
|
4798
|
+
function jr({
|
|
4799
4799
|
...e
|
|
4800
4800
|
}) {
|
|
4801
|
-
return /* @__PURE__ */ r(
|
|
4801
|
+
return /* @__PURE__ */ r(J.Root, { "data-slot": "select", ...e });
|
|
4802
4802
|
}
|
|
4803
|
-
function
|
|
4803
|
+
function qo({
|
|
4804
|
+
...e
|
|
4805
|
+
}) {
|
|
4806
|
+
return /* @__PURE__ */ r(J.Group, { "data-slot": "select-group", ...e });
|
|
4807
|
+
}
|
|
4808
|
+
function zr({
|
|
4804
4809
|
...e
|
|
4805
4810
|
}) {
|
|
4806
4811
|
return /* @__PURE__ */ r(
|
|
4807
|
-
|
|
4812
|
+
J.Value,
|
|
4808
4813
|
{
|
|
4809
4814
|
className: "content-[hi]",
|
|
4810
4815
|
"data-slot": "select-value",
|
|
@@ -4812,14 +4817,14 @@ function jo({
|
|
|
4812
4817
|
}
|
|
4813
4818
|
);
|
|
4814
4819
|
}
|
|
4815
|
-
function
|
|
4820
|
+
function Br({
|
|
4816
4821
|
className: e,
|
|
4817
4822
|
size: t = "default",
|
|
4818
4823
|
children: a,
|
|
4819
4824
|
...n
|
|
4820
4825
|
}) {
|
|
4821
4826
|
return /* @__PURE__ */ h(
|
|
4822
|
-
|
|
4827
|
+
J.Trigger,
|
|
4823
4828
|
{
|
|
4824
4829
|
"data-slot": "select-trigger",
|
|
4825
4830
|
"data-size": t,
|
|
@@ -4830,20 +4835,20 @@ function Mo({
|
|
|
4830
4835
|
...n,
|
|
4831
4836
|
children: [
|
|
4832
4837
|
a,
|
|
4833
|
-
/* @__PURE__ */ r(
|
|
4838
|
+
/* @__PURE__ */ r(J.Icon, { asChild: !0, children: /* @__PURE__ */ r(Et, { width: 14 }) })
|
|
4834
4839
|
]
|
|
4835
4840
|
}
|
|
4836
4841
|
);
|
|
4837
4842
|
}
|
|
4838
|
-
function
|
|
4843
|
+
function Mr({
|
|
4839
4844
|
className: e,
|
|
4840
4845
|
children: t,
|
|
4841
4846
|
position: a = "popper",
|
|
4842
4847
|
...n
|
|
4843
4848
|
}) {
|
|
4844
4849
|
const o = Xe(), l = pt();
|
|
4845
|
-
return /* @__PURE__ */ r(
|
|
4846
|
-
|
|
4850
|
+
return /* @__PURE__ */ r(J.Portal, { container: o, children: /* @__PURE__ */ h(
|
|
4851
|
+
J.Content,
|
|
4847
4852
|
{
|
|
4848
4853
|
"data-slot": "select-content",
|
|
4849
4854
|
className: O(
|
|
@@ -4855,9 +4860,9 @@ function Bo({
|
|
|
4855
4860
|
position: a,
|
|
4856
4861
|
...n,
|
|
4857
4862
|
children: [
|
|
4858
|
-
/* @__PURE__ */ r(
|
|
4863
|
+
/* @__PURE__ */ r(Wo, {}),
|
|
4859
4864
|
/* @__PURE__ */ r(
|
|
4860
|
-
|
|
4865
|
+
J.Viewport,
|
|
4861
4866
|
{
|
|
4862
4867
|
className: O(
|
|
4863
4868
|
"p-1",
|
|
@@ -4866,18 +4871,31 @@ function Bo({
|
|
|
4866
4871
|
children: t
|
|
4867
4872
|
}
|
|
4868
4873
|
),
|
|
4869
|
-
/* @__PURE__ */ r(
|
|
4874
|
+
/* @__PURE__ */ r(Vo, {})
|
|
4870
4875
|
]
|
|
4871
4876
|
}
|
|
4872
4877
|
) });
|
|
4873
4878
|
}
|
|
4874
|
-
function
|
|
4879
|
+
function Go({
|
|
4880
|
+
className: e,
|
|
4881
|
+
...t
|
|
4882
|
+
}) {
|
|
4883
|
+
return /* @__PURE__ */ r(
|
|
4884
|
+
J.Label,
|
|
4885
|
+
{
|
|
4886
|
+
"data-slot": "select-label",
|
|
4887
|
+
className: O("text-muted-foreground px-2 py-1.5 text-xs", e),
|
|
4888
|
+
...t
|
|
4889
|
+
}
|
|
4890
|
+
);
|
|
4891
|
+
}
|
|
4892
|
+
function Ur({
|
|
4875
4893
|
className: e,
|
|
4876
4894
|
children: t,
|
|
4877
4895
|
...a
|
|
4878
4896
|
}) {
|
|
4879
4897
|
return /* @__PURE__ */ h(
|
|
4880
|
-
|
|
4898
|
+
J.Item,
|
|
4881
4899
|
{
|
|
4882
4900
|
"data-slot": "select-item",
|
|
4883
4901
|
className: O(
|
|
@@ -4886,18 +4904,31 @@ function Uo({
|
|
|
4886
4904
|
),
|
|
4887
4905
|
...a,
|
|
4888
4906
|
children: [
|
|
4889
|
-
/* @__PURE__ */ r("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(
|
|
4890
|
-
/* @__PURE__ */ r(
|
|
4907
|
+
/* @__PURE__ */ r("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(J.ItemIndicator, { children: /* @__PURE__ */ r(La, { width: 12, className: "size-4" }) }) }),
|
|
4908
|
+
/* @__PURE__ */ r(J.ItemText, { children: t })
|
|
4891
4909
|
]
|
|
4892
4910
|
}
|
|
4893
4911
|
);
|
|
4894
4912
|
}
|
|
4895
|
-
function
|
|
4913
|
+
function Ho({
|
|
4896
4914
|
className: e,
|
|
4897
4915
|
...t
|
|
4898
4916
|
}) {
|
|
4899
4917
|
return /* @__PURE__ */ r(
|
|
4900
|
-
|
|
4918
|
+
J.Separator,
|
|
4919
|
+
{
|
|
4920
|
+
"data-slot": "select-separator",
|
|
4921
|
+
className: O("bg-border pointer-events-none -mx-1 my-1 h-px", e),
|
|
4922
|
+
...t
|
|
4923
|
+
}
|
|
4924
|
+
);
|
|
4925
|
+
}
|
|
4926
|
+
function Wo({
|
|
4927
|
+
className: e,
|
|
4928
|
+
...t
|
|
4929
|
+
}) {
|
|
4930
|
+
return /* @__PURE__ */ r(
|
|
4931
|
+
J.ScrollUpButton,
|
|
4901
4932
|
{
|
|
4902
4933
|
"data-slot": "select-scroll-up-button",
|
|
4903
4934
|
className: O(
|
|
@@ -4905,16 +4936,16 @@ function Po({
|
|
|
4905
4936
|
e
|
|
4906
4937
|
),
|
|
4907
4938
|
...t,
|
|
4908
|
-
children: /* @__PURE__ */ r(
|
|
4939
|
+
children: /* @__PURE__ */ r(Fa, { className: "size-4" })
|
|
4909
4940
|
}
|
|
4910
4941
|
);
|
|
4911
4942
|
}
|
|
4912
|
-
function
|
|
4943
|
+
function Vo({
|
|
4913
4944
|
className: e,
|
|
4914
4945
|
...t
|
|
4915
4946
|
}) {
|
|
4916
4947
|
return /* @__PURE__ */ r(
|
|
4917
|
-
|
|
4948
|
+
J.ScrollDownButton,
|
|
4918
4949
|
{
|
|
4919
4950
|
"data-slot": "select-scroll-down-button",
|
|
4920
4951
|
className: O(
|
|
@@ -5370,41 +5401,41 @@ var St = function() {
|
|
|
5370
5401
|
for (var x = 0; x < k.length; ++x) {
|
|
5371
5402
|
if (w && w.cause == v + "," + x)
|
|
5372
5403
|
return;
|
|
5373
|
-
var _ = k[x], q = _.inside,
|
|
5404
|
+
var _ = k[x], q = _.inside, M = !!_.lookbehind, L = !!_.greedy, G = _.alias;
|
|
5374
5405
|
if (L && !_.pattern.global) {
|
|
5375
5406
|
var H = _.pattern.toString().match(/[imsuy]*$/)[0];
|
|
5376
5407
|
_.pattern = RegExp(_.pattern.source, H + "g");
|
|
5377
5408
|
}
|
|
5378
|
-
for (var Y = _.pattern || _,
|
|
5379
|
-
var S =
|
|
5409
|
+
for (var Y = _.pattern || _, j = f.next, z = b; j !== u.tail && !(w && z >= w.reach); z += j.value.length, j = j.next) {
|
|
5410
|
+
var S = j.value;
|
|
5380
5411
|
if (u.length > d.length)
|
|
5381
5412
|
return;
|
|
5382
5413
|
if (!(S instanceof o)) {
|
|
5383
5414
|
var T = 1, I;
|
|
5384
5415
|
if (L) {
|
|
5385
|
-
if (I = l(Y,
|
|
5416
|
+
if (I = l(Y, z, d, M), !I || I.index >= d.length)
|
|
5386
5417
|
break;
|
|
5387
|
-
var Q = I.index, A = I.index + I[0].length, D =
|
|
5388
|
-
for (D +=
|
|
5389
|
-
|
|
5390
|
-
if (D -=
|
|
5418
|
+
var Q = I.index, A = I.index + I[0].length, D = z;
|
|
5419
|
+
for (D += j.value.length; Q >= D; )
|
|
5420
|
+
j = j.next, D += j.value.length;
|
|
5421
|
+
if (D -= j.value.length, z = D, j.value instanceof o)
|
|
5391
5422
|
continue;
|
|
5392
|
-
for (var F =
|
|
5423
|
+
for (var F = j; F !== u.tail && (D < A || typeof F.value == "string"); F = F.next)
|
|
5393
5424
|
T++, D += F.value.length;
|
|
5394
|
-
T--, S = d.slice(
|
|
5395
|
-
} else if (I = l(Y, 0, S,
|
|
5425
|
+
T--, S = d.slice(z, D), I.index -= z;
|
|
5426
|
+
} else if (I = l(Y, 0, S, M), !I)
|
|
5396
5427
|
continue;
|
|
5397
|
-
var Q = I.index,
|
|
5428
|
+
var Q = I.index, re = I[0], W = S.slice(0, Q), ie = S.slice(Q + re.length), ye = z + S.length;
|
|
5398
5429
|
w && ye > w.reach && (w.reach = ye);
|
|
5399
|
-
var ce =
|
|
5400
|
-
W && (ce = c(u, ce, W),
|
|
5401
|
-
var Z = new o(v, q ? n.tokenize(
|
|
5402
|
-
if (
|
|
5430
|
+
var ce = j.prev;
|
|
5431
|
+
W && (ce = c(u, ce, W), z += W.length), p(u, ce, T);
|
|
5432
|
+
var Z = new o(v, q ? n.tokenize(re, q) : re, G, re);
|
|
5433
|
+
if (j = c(u, ce, Z), ie && c(u, j, ie), T > 1) {
|
|
5403
5434
|
var ke = {
|
|
5404
5435
|
cause: v + "," + x,
|
|
5405
5436
|
reach: ye
|
|
5406
5437
|
};
|
|
5407
|
-
i(d, u, s,
|
|
5438
|
+
i(d, u, s, j.prev, z, ke), w && ke.reach > w.reach && (w.reach = ke.reach);
|
|
5408
5439
|
}
|
|
5409
5440
|
}
|
|
5410
5441
|
}
|
|
@@ -6890,32 +6921,32 @@ y.languages.sql = {
|
|
|
6890
6921
|
return k[H] = G, H;
|
|
6891
6922
|
}).join(""), _ = c(x, f, b), q = Object.keys(k);
|
|
6892
6923
|
v = 0;
|
|
6893
|
-
function
|
|
6924
|
+
function M(L) {
|
|
6894
6925
|
for (var G = 0; G < L.length; G++) {
|
|
6895
6926
|
if (v >= q.length)
|
|
6896
6927
|
return;
|
|
6897
6928
|
var H = L[G];
|
|
6898
6929
|
if (typeof H == "string" || typeof H.content == "string") {
|
|
6899
|
-
var Y = q[v],
|
|
6930
|
+
var Y = q[v], j = typeof H == "string" ? H : (
|
|
6900
6931
|
/** @type {string} */
|
|
6901
6932
|
H.content
|
|
6902
|
-
),
|
|
6903
|
-
if (
|
|
6933
|
+
), z = j.indexOf(Y);
|
|
6934
|
+
if (z !== -1) {
|
|
6904
6935
|
++v;
|
|
6905
|
-
var S =
|
|
6936
|
+
var S = j.substring(0, z), T = p(k[Y]), I = j.substring(z + Y.length), A = [];
|
|
6906
6937
|
if (S && A.push(S), A.push(T), I) {
|
|
6907
6938
|
var D = [I];
|
|
6908
|
-
|
|
6939
|
+
M(D), A.push.apply(A, D);
|
|
6909
6940
|
}
|
|
6910
6941
|
typeof H == "string" ? (L.splice.apply(L, [G, 1].concat(A)), G += A.length - 1) : H.content = A;
|
|
6911
6942
|
}
|
|
6912
6943
|
} else {
|
|
6913
6944
|
var F = H.content;
|
|
6914
|
-
Array.isArray(F) ?
|
|
6945
|
+
Array.isArray(F) ? M(F) : M([F]);
|
|
6915
6946
|
}
|
|
6916
6947
|
}
|
|
6917
6948
|
}
|
|
6918
|
-
return
|
|
6949
|
+
return M(_), new e.Token(b, _, "language-" + b, s);
|
|
6919
6950
|
}
|
|
6920
6951
|
var d = {
|
|
6921
6952
|
javascript: !0,
|
|
@@ -6940,7 +6971,7 @@ y.languages.sql = {
|
|
|
6940
6971
|
if (k.type === "template-string") {
|
|
6941
6972
|
var _ = x[1];
|
|
6942
6973
|
if (x.length === 3 && typeof _ != "string" && _.type === "embedded-code") {
|
|
6943
|
-
var q = u(_),
|
|
6974
|
+
var q = u(_), M = _.alias, L = Array.isArray(M) ? M[0] : M, G = e.languages[L];
|
|
6944
6975
|
if (!G)
|
|
6945
6976
|
continue;
|
|
6946
6977
|
x[1] = m(q, G, L);
|
|
@@ -7898,7 +7929,7 @@ y.languages.wasm = {
|
|
|
7898
7929
|
number: /[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,
|
|
7899
7930
|
punctuation: /[()]/
|
|
7900
7931
|
};
|
|
7901
|
-
var
|
|
7932
|
+
var Yo = {
|
|
7902
7933
|
plain: {
|
|
7903
7934
|
backgroundColor: "#2a2734",
|
|
7904
7935
|
color: "#9a86fd"
|
|
@@ -7964,10 +7995,10 @@ var Go = {
|
|
|
7964
7995
|
color: "#c4b9fe"
|
|
7965
7996
|
}
|
|
7966
7997
|
}]
|
|
7967
|
-
},
|
|
7998
|
+
}, Ko = {
|
|
7968
7999
|
// $FlowFixMe
|
|
7969
8000
|
Prism: y,
|
|
7970
|
-
theme:
|
|
8001
|
+
theme: Yo
|
|
7971
8002
|
};
|
|
7972
8003
|
function Ue(e, t, a) {
|
|
7973
8004
|
return t in e ? Object.defineProperty(e, t, {
|
|
@@ -7987,7 +8018,7 @@ function he() {
|
|
|
7987
8018
|
return e;
|
|
7988
8019
|
}, he.apply(this, arguments);
|
|
7989
8020
|
}
|
|
7990
|
-
var
|
|
8021
|
+
var Xo = /\r\n|\r|\n/, ir = function(e) {
|
|
7991
8022
|
e.length === 0 ? e.push({
|
|
7992
8023
|
types: ["plain"],
|
|
7993
8024
|
content: `
|
|
@@ -7995,32 +8026,32 @@ var Wo = /\r\n|\r|\n/, nr = function(e) {
|
|
|
7995
8026
|
empty: !0
|
|
7996
8027
|
}) : e.length === 1 && e[0].content === "" && (e[0].content = `
|
|
7997
8028
|
`, e[0].empty = !0);
|
|
7998
|
-
},
|
|
8029
|
+
}, lr = function(e, t) {
|
|
7999
8030
|
var a = e.length;
|
|
8000
8031
|
return a > 0 && e[a - 1] === t ? e : e.concat(t);
|
|
8001
|
-
},
|
|
8032
|
+
}, Zo = function(e) {
|
|
8002
8033
|
for (var t = [[]], a = [e], n = [0], o = [e.length], l = 0, i = 0, g = [], c = [g]; i > -1; ) {
|
|
8003
8034
|
for (; (l = n[i]++) < o[i]; ) {
|
|
8004
8035
|
var p = void 0, m = t[i], d = a[i], u = d[l];
|
|
8005
|
-
if (typeof u == "string" ? (m = i > 0 ? m : ["plain"], p = u) : (m =
|
|
8036
|
+
if (typeof u == "string" ? (m = i > 0 ? m : ["plain"], p = u) : (m = lr(m, u.type), u.alias && (m = lr(m, u.alias)), p = u.content), typeof p != "string") {
|
|
8006
8037
|
i++, t.push(m), a.push(p), n.push(0), o.push(p.length);
|
|
8007
8038
|
continue;
|
|
8008
8039
|
}
|
|
8009
|
-
var s = p.split(
|
|
8040
|
+
var s = p.split(Xo), f = s.length;
|
|
8010
8041
|
g.push({
|
|
8011
8042
|
types: m,
|
|
8012
8043
|
content: s[0]
|
|
8013
8044
|
});
|
|
8014
8045
|
for (var b = 1; b < f; b++)
|
|
8015
|
-
|
|
8046
|
+
ir(g), c.push(g = []), g.push({
|
|
8016
8047
|
types: m,
|
|
8017
8048
|
content: s[b]
|
|
8018
8049
|
});
|
|
8019
8050
|
}
|
|
8020
8051
|
i--, t.pop(), a.pop(), n.pop(), o.pop();
|
|
8021
8052
|
}
|
|
8022
|
-
return
|
|
8023
|
-
},
|
|
8053
|
+
return ir(g), c;
|
|
8054
|
+
}, Qo = function(e, t) {
|
|
8024
8055
|
var a = e.plain, n = /* @__PURE__ */ Object.create(null), o = e.styles.reduce(function(l, i) {
|
|
8025
8056
|
var g = i.languages, c = i.style;
|
|
8026
8057
|
return g && !g.includes(t) || i.types.forEach(function(p) {
|
|
@@ -8032,22 +8063,22 @@ var Wo = /\r\n|\r|\n/, nr = function(e) {
|
|
|
8032
8063
|
backgroundColor: null
|
|
8033
8064
|
}), o;
|
|
8034
8065
|
};
|
|
8035
|
-
function
|
|
8066
|
+
function sr(e, t) {
|
|
8036
8067
|
var a = {};
|
|
8037
8068
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) === -1 && (a[n] = e[n]);
|
|
8038
8069
|
return a;
|
|
8039
8070
|
}
|
|
8040
|
-
var
|
|
8071
|
+
var Jo = /* @__PURE__ */ function(e) {
|
|
8041
8072
|
function t() {
|
|
8042
8073
|
for (var a = this, n = [], o = arguments.length; o--; ) n[o] = arguments[o];
|
|
8043
8074
|
e.apply(this, n), Ue(this, "getThemeDict", function(l) {
|
|
8044
8075
|
if (a.themeDict !== void 0 && l.theme === a.prevTheme && l.language === a.prevLanguage)
|
|
8045
8076
|
return a.themeDict;
|
|
8046
8077
|
a.prevTheme = l.theme, a.prevLanguage = l.language;
|
|
8047
|
-
var i = l.theme ?
|
|
8078
|
+
var i = l.theme ? Qo(l.theme, l.language) : void 0;
|
|
8048
8079
|
return a.themeDict = i;
|
|
8049
8080
|
}), Ue(this, "getLineProps", function(l) {
|
|
8050
|
-
var i = l.key, g = l.className, c = l.style, p =
|
|
8081
|
+
var i = l.key, g = l.className, c = l.style, p = sr(l, ["key", "className", "style", "line"]), m = p, d = he({}, m, {
|
|
8051
8082
|
className: "token-line",
|
|
8052
8083
|
style: void 0,
|
|
8053
8084
|
key: void 0
|
|
@@ -8072,7 +8103,7 @@ var Ko = /* @__PURE__ */ function(e) {
|
|
|
8072
8103
|
return Object.assign.apply(Object, [m].concat(d));
|
|
8073
8104
|
}
|
|
8074
8105
|
}), Ue(this, "getTokenProps", function(l) {
|
|
8075
|
-
var i = l.key, g = l.className, c = l.style, p = l.token, m =
|
|
8106
|
+
var i = l.key, g = l.className, c = l.style, p = l.token, m = sr(l, ["key", "className", "style", "token"]), d = m, u = he({}, d, {
|
|
8076
8107
|
className: "token " + p.types.join(" "),
|
|
8077
8108
|
children: p.content,
|
|
8078
8109
|
style: a.getStyleForToken(p),
|
|
@@ -8092,7 +8123,7 @@ var Ko = /* @__PURE__ */ function(e) {
|
|
|
8092
8123
|
});
|
|
8093
8124
|
}
|
|
8094
8125
|
return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t.prototype.render = function() {
|
|
8095
|
-
var n = this.props, o = n.Prism, l = n.language, i = n.code, g = n.children, c = this.getThemeDict(this.props), p = o.languages[l], m = p !== void 0 ? this.tokenize(o, i, p, l) : [i], d =
|
|
8126
|
+
var n = this.props, o = n.Prism, l = n.language, i = n.code, g = n.children, c = this.getThemeDict(this.props), p = o.languages[l], m = p !== void 0 ? this.tokenize(o, i, p, l) : [i], d = Zo(m);
|
|
8096
8127
|
return g({
|
|
8097
8128
|
tokens: d,
|
|
8098
8129
|
className: "prism-code language-" + l,
|
|
@@ -8101,18 +8132,18 @@ var Ko = /* @__PURE__ */ function(e) {
|
|
|
8101
8132
|
getTokenProps: this.getTokenProps
|
|
8102
8133
|
});
|
|
8103
8134
|
}, t;
|
|
8104
|
-
}(
|
|
8105
|
-
const
|
|
8106
|
-
() =>
|
|
8107
|
-
),
|
|
8135
|
+
}(dr);
|
|
8136
|
+
const ei = (e) => ti(
|
|
8137
|
+
() => In.parse(e, (a, n) => n === !0 ? "true" : n === !1 ? "false" : n)
|
|
8138
|
+
), ti = (e) => {
|
|
8108
8139
|
try {
|
|
8109
8140
|
return { status: "ok", value: e() };
|
|
8110
8141
|
} catch (t) {
|
|
8111
8142
|
return { status: "error", error: t };
|
|
8112
8143
|
}
|
|
8113
8144
|
};
|
|
8114
|
-
function
|
|
8115
|
-
const n =
|
|
8145
|
+
function ri(e, t, a) {
|
|
8146
|
+
const n = ur();
|
|
8116
8147
|
P(() => {
|
|
8117
8148
|
if (!t || !a) return;
|
|
8118
8149
|
const o = `http://myserver/myJsonTypeSchema-${n}`, l = t.languages.json.jsonDefaults.diagnosticsOptions, i = l.schemas || [];
|
|
@@ -8135,7 +8166,7 @@ function Qo(e, t, a) {
|
|
|
8135
8166
|
};
|
|
8136
8167
|
}, [t, e, a, n]);
|
|
8137
8168
|
}
|
|
8138
|
-
const
|
|
8169
|
+
const ai = {
|
|
8139
8170
|
plain: {
|
|
8140
8171
|
backgroundColor: "#fff",
|
|
8141
8172
|
color: "#575279"
|
|
@@ -8178,14 +8209,14 @@ const Jo = {
|
|
|
8178
8209
|
style: { color: "#b4637a" }
|
|
8179
8210
|
}
|
|
8180
8211
|
]
|
|
8181
|
-
},
|
|
8212
|
+
}, ni = ue("div", "flex flex-col gap-2"), oi = ue("div", "flex flex-col gap-2 md:flex-row"), gt = ue("div", "prose dark:text-neutral-400"), ii = ue("div", "text-2xl font-bold"), li = ue("div", "text-xl font-bold"), si = ue("div", "text-lg"), di = ue("div", "text-md font-bold"), ci = ue("div", "text-sm text-gray-400"), Re = ue(
|
|
8182
8213
|
"div",
|
|
8183
8214
|
"text-sm font-bold dark:text-neutral-400 text-gray-700"
|
|
8184
|
-
),
|
|
8215
|
+
), ui = ({ size: e = "mini" }) => /* @__PURE__ */ r("img", { src: "/img/icon/logo-512.svg", className: {
|
|
8185
8216
|
mini: "h-4 w-4",
|
|
8186
8217
|
normal: "h-6 w-6"
|
|
8187
8218
|
}[e] });
|
|
8188
|
-
function
|
|
8219
|
+
function Pr({
|
|
8189
8220
|
className: e,
|
|
8190
8221
|
buttonClassName: t,
|
|
8191
8222
|
items: a,
|
|
@@ -8212,14 +8243,14 @@ function $r({
|
|
|
8212
8243
|
i.id
|
|
8213
8244
|
)) });
|
|
8214
8245
|
}
|
|
8215
|
-
function
|
|
8246
|
+
function qr({
|
|
8216
8247
|
items: e,
|
|
8217
8248
|
onChange: t,
|
|
8218
8249
|
selectedId: a,
|
|
8219
8250
|
ariaLabel: n
|
|
8220
8251
|
}) {
|
|
8221
8252
|
return /* @__PURE__ */ r(
|
|
8222
|
-
|
|
8253
|
+
Yt.Root,
|
|
8223
8254
|
{
|
|
8224
8255
|
value: a,
|
|
8225
8256
|
onValueChange: (o) => {
|
|
@@ -8232,7 +8263,7 @@ function zr({
|
|
|
8232
8263
|
defaultValue: "center",
|
|
8233
8264
|
"aria-label": n,
|
|
8234
8265
|
children: e.map((o) => /* @__PURE__ */ r(
|
|
8235
|
-
|
|
8266
|
+
Yt.Item,
|
|
8236
8267
|
{
|
|
8237
8268
|
className: O(
|
|
8238
8269
|
"flex-1 rounded-sm p-0.5",
|
|
@@ -8300,7 +8331,7 @@ function Ne({
|
|
|
8300
8331
|
g ? /* @__PURE__ */ r("div", { className: "text-sm text-red-600", children: g }) : null
|
|
8301
8332
|
] });
|
|
8302
8333
|
}
|
|
8303
|
-
function
|
|
8334
|
+
function pi({
|
|
8304
8335
|
value: e,
|
|
8305
8336
|
autoFocus: t,
|
|
8306
8337
|
className: a,
|
|
@@ -8349,7 +8380,7 @@ function si({
|
|
|
8349
8380
|
i ? /* @__PURE__ */ r("div", { className: "text-sm text-red-600", children: i }) : null
|
|
8350
8381
|
] });
|
|
8351
8382
|
}
|
|
8352
|
-
function
|
|
8383
|
+
function te({
|
|
8353
8384
|
label: e,
|
|
8354
8385
|
error: t,
|
|
8355
8386
|
checked: a,
|
|
@@ -8408,7 +8439,7 @@ function we({
|
|
|
8408
8439
|
visibleValue: m
|
|
8409
8440
|
}) {
|
|
8410
8441
|
return /* @__PURE__ */ h(
|
|
8411
|
-
|
|
8442
|
+
jr,
|
|
8412
8443
|
{
|
|
8413
8444
|
disabled: o,
|
|
8414
8445
|
onValueChange: (d) => {
|
|
@@ -8417,10 +8448,10 @@ function we({
|
|
|
8417
8448
|
},
|
|
8418
8449
|
value: e?.toString() ?? "",
|
|
8419
8450
|
children: [
|
|
8420
|
-
/* @__PURE__ */ r(
|
|
8421
|
-
/* @__PURE__ */ h(
|
|
8451
|
+
/* @__PURE__ */ r(Br, { className: a, title: g, tabIndex: i, children: /* @__PURE__ */ r(zr, { placeholder: l, children: m }) }),
|
|
8452
|
+
/* @__PURE__ */ h(Mr, { className: p, children: [
|
|
8422
8453
|
t.map((d) => /* @__PURE__ */ r(
|
|
8423
|
-
|
|
8454
|
+
Ur,
|
|
8424
8455
|
{
|
|
8425
8456
|
value: d.value?.toString(),
|
|
8426
8457
|
children: d.label
|
|
@@ -8553,17 +8584,17 @@ function st() {
|
|
|
8553
8584
|
}
|
|
8554
8585
|
};
|
|
8555
8586
|
}
|
|
8556
|
-
function
|
|
8587
|
+
function gi({
|
|
8557
8588
|
...e
|
|
8558
8589
|
}) {
|
|
8559
8590
|
return /* @__PURE__ */ r(Te.Root, { "data-slot": "dialog", ...e });
|
|
8560
8591
|
}
|
|
8561
|
-
function
|
|
8592
|
+
function Gr({
|
|
8562
8593
|
...e
|
|
8563
8594
|
}) {
|
|
8564
8595
|
return /* @__PURE__ */ r(Te.Portal, { "data-slot": "dialog-portal", ...e });
|
|
8565
8596
|
}
|
|
8566
|
-
const
|
|
8597
|
+
const Hr = He.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
8567
8598
|
Te.Overlay,
|
|
8568
8599
|
{
|
|
8569
8600
|
ref: a,
|
|
@@ -8575,7 +8606,7 @@ const Mr = He.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r(
|
|
|
8575
8606
|
...t
|
|
8576
8607
|
}
|
|
8577
8608
|
));
|
|
8578
|
-
function
|
|
8609
|
+
function hi({ title: e }) {
|
|
8579
8610
|
const t = Xe(), a = He.useRef(null);
|
|
8580
8611
|
return He.useEffect(() => {
|
|
8581
8612
|
if (!t || process.env.NODE_ENV === "production")
|
|
@@ -8586,9 +8617,9 @@ function ci({ title: e }) {
|
|
|
8586
8617
|
return o.id = n, o.style.display = "none", document.body.appendChild(o), () => {
|
|
8587
8618
|
o.remove();
|
|
8588
8619
|
};
|
|
8589
|
-
}, [t]), /* @__PURE__ */ r(
|
|
8620
|
+
}, [t]), /* @__PURE__ */ r(ma, { children: /* @__PURE__ */ r(Te.Title, { ref: a, children: e }) });
|
|
8590
8621
|
}
|
|
8591
|
-
function
|
|
8622
|
+
function Wr({
|
|
8592
8623
|
className: e,
|
|
8593
8624
|
children: t,
|
|
8594
8625
|
showCloseButton: a = !1,
|
|
@@ -8596,7 +8627,7 @@ function Br({
|
|
|
8596
8627
|
...o
|
|
8597
8628
|
}) {
|
|
8598
8629
|
const l = Xe(), i = pt();
|
|
8599
|
-
return /* @__PURE__ */ r(
|
|
8630
|
+
return /* @__PURE__ */ r(Gr, { container: l, "data-slot": "dialog-portal", children: /* @__PURE__ */ r(Hr, { className: O(i ? "dark" : "", "overflow-y-auto"), children: /* @__PURE__ */ h(
|
|
8600
8631
|
Te.Content,
|
|
8601
8632
|
{
|
|
8602
8633
|
"aria-label": n,
|
|
@@ -8608,7 +8639,7 @@ function Br({
|
|
|
8608
8639
|
),
|
|
8609
8640
|
...o,
|
|
8610
8641
|
children: [
|
|
8611
|
-
/* @__PURE__ */ r(
|
|
8642
|
+
/* @__PURE__ */ r(hi, { title: n }),
|
|
8612
8643
|
t,
|
|
8613
8644
|
a && /* @__PURE__ */ h(
|
|
8614
8645
|
Te.Close,
|
|
@@ -8616,7 +8647,7 @@ function Br({
|
|
|
8616
8647
|
"data-slot": "dialog-close",
|
|
8617
8648
|
className: "absolute top-4 right-4 rounded-xs opacity-70 transition-opacity duration-100 hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
8618
8649
|
children: [
|
|
8619
|
-
/* @__PURE__ */ r(
|
|
8650
|
+
/* @__PURE__ */ r(yn, {}),
|
|
8620
8651
|
/* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
|
|
8621
8652
|
]
|
|
8622
8653
|
}
|
|
@@ -8635,14 +8666,14 @@ function fe({
|
|
|
8635
8666
|
hideCloseButton: i = !1
|
|
8636
8667
|
}) {
|
|
8637
8668
|
return /* @__PURE__ */ r(
|
|
8638
|
-
|
|
8669
|
+
gi,
|
|
8639
8670
|
{
|
|
8640
8671
|
onOpenChange: (g) => {
|
|
8641
8672
|
g || a();
|
|
8642
8673
|
},
|
|
8643
8674
|
open: e,
|
|
8644
8675
|
children: /* @__PURE__ */ h(
|
|
8645
|
-
|
|
8676
|
+
Wr,
|
|
8646
8677
|
{
|
|
8647
8678
|
title: o,
|
|
8648
8679
|
onFocusCapture: (g) => {
|
|
@@ -8653,7 +8684,7 @@ function fe({
|
|
|
8653
8684
|
className: `w-full max-w-xl overflow-y-auto rounded border-solid bg-white p-3 text-sm shadow dark:bg-neutral-800 dark:text-white ${n}`,
|
|
8654
8685
|
children: [
|
|
8655
8686
|
!i && /* @__PURE__ */ r(
|
|
8656
|
-
|
|
8687
|
+
Ka,
|
|
8657
8688
|
{
|
|
8658
8689
|
className: "absolute top-[18px] right-3 h-4 w-4 cursor-pointer",
|
|
8659
8690
|
onClick: a
|
|
@@ -8672,7 +8703,7 @@ function ge({
|
|
|
8672
8703
|
}) {
|
|
8673
8704
|
return /* @__PURE__ */ r("form", { onSubmit: (a) => a.preventDefault(), className: e, children: t });
|
|
8674
8705
|
}
|
|
8675
|
-
function
|
|
8706
|
+
function fi(e, t) {
|
|
8676
8707
|
let a = e;
|
|
8677
8708
|
const n = t?.message, o = t?.hint?.errors?.[0]?.message, l = n?.length;
|
|
8678
8709
|
return l && (a += `
|
|
@@ -8697,9 +8728,9 @@ function ve({
|
|
|
8697
8728
|
if (!d) {
|
|
8698
8729
|
u(!0);
|
|
8699
8730
|
try {
|
|
8700
|
-
await c(), g &&
|
|
8731
|
+
await c(), g && oe(g);
|
|
8701
8732
|
} catch (f) {
|
|
8702
|
-
|
|
8733
|
+
le(fi(i, f));
|
|
8703
8734
|
} finally {
|
|
8704
8735
|
u(!1);
|
|
8705
8736
|
}
|
|
@@ -8719,10 +8750,10 @@ function ve({
|
|
|
8719
8750
|
}
|
|
8720
8751
|
);
|
|
8721
8752
|
}
|
|
8722
|
-
function
|
|
8753
|
+
function _t(e) {
|
|
8723
8754
|
return e.length === 36 && e.indexOf("-") === 8 ? e.replaceAll(/[^-]/g, "*") : e.replaceAll(/./g, "*");
|
|
8724
8755
|
}
|
|
8725
|
-
function
|
|
8756
|
+
function mi({
|
|
8726
8757
|
value: e,
|
|
8727
8758
|
label: t,
|
|
8728
8759
|
size: a = "normal",
|
|
@@ -8767,7 +8798,7 @@ function pi({
|
|
|
8767
8798
|
const s = window.getSelection();
|
|
8768
8799
|
(!s || s.toString().length === 0) && (window.navigator.clipboard.writeText(e), d(!0), setTimeout(() => d(!1), 1e3));
|
|
8769
8800
|
},
|
|
8770
|
-
children: o || g ?
|
|
8801
|
+
children: o || g ? _t(e) : e
|
|
8771
8802
|
}
|
|
8772
8803
|
) }),
|
|
8773
8804
|
/* @__PURE__ */ r(Je, { side: "bottom", children: "Copied!" })
|
|
@@ -8780,14 +8811,14 @@ function pi({
|
|
|
8780
8811
|
"flex items-center gap-x-1 rounded-sm px-2 py-1 opacity-50 transition-colors hover:bg-gray-50 dark:hover:bg-neutral-700",
|
|
8781
8812
|
{ "text-xs": a === "normal", "text-sm": a === "large" }
|
|
8782
8813
|
),
|
|
8783
|
-
children: o || g ? /* @__PURE__ */ r(
|
|
8814
|
+
children: o || g ? /* @__PURE__ */ r(wr, { className: "h-4 w-4", "aria-hidden": "true" }) : /* @__PURE__ */ r(vr, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
8784
8815
|
}
|
|
8785
8816
|
) })
|
|
8786
8817
|
]
|
|
8787
8818
|
}
|
|
8788
8819
|
);
|
|
8789
8820
|
}
|
|
8790
|
-
function
|
|
8821
|
+
function bi({
|
|
8791
8822
|
value: e,
|
|
8792
8823
|
label: t,
|
|
8793
8824
|
size: a = "normal",
|
|
@@ -8833,7 +8864,7 @@ function gi({
|
|
|
8833
8864
|
const w = window.getSelection();
|
|
8834
8865
|
(!w || w.toString().length === 0) && (window.navigator.clipboard.writeText(e), d(!0), setTimeout(() => d(!1), 1e3), g?.());
|
|
8835
8866
|
},
|
|
8836
|
-
children: o || c ?
|
|
8867
|
+
children: o || c ? _t(e) : e
|
|
8837
8868
|
}
|
|
8838
8869
|
) }),
|
|
8839
8870
|
/* @__PURE__ */ r(Je, { side: "bottom", children: "Copied!" })
|
|
@@ -8847,10 +8878,10 @@ function gi({
|
|
|
8847
8878
|
"flex items-center gap-x-1 rounded-sm bg-white px-2 py-1 ring-1 ring-gray-300 ring-inset hover:bg-gray-50 dark:bg-neutral-600/20 dark:ring-neutral-600 dark:hover:bg-neutral-600",
|
|
8848
8879
|
{ "text-xs": a === "normal", "text-sm": a === "large" }
|
|
8849
8880
|
),
|
|
8850
|
-
children: o || c ? /* @__PURE__ */ r(
|
|
8881
|
+
children: o || c ? /* @__PURE__ */ r(wr, { className: "h-4 w-4", "aria-hidden": "true" }) : /* @__PURE__ */ r(vr, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
8851
8882
|
}
|
|
8852
8883
|
),
|
|
8853
|
-
/* @__PURE__ */ r(
|
|
8884
|
+
/* @__PURE__ */ r(Cr, { text: e, children: /* @__PURE__ */ h(
|
|
8854
8885
|
"button",
|
|
8855
8886
|
{
|
|
8856
8887
|
onClick: () => {
|
|
@@ -8879,7 +8910,7 @@ function gi({
|
|
|
8879
8910
|
}
|
|
8880
8911
|
);
|
|
8881
8912
|
}
|
|
8882
|
-
function
|
|
8913
|
+
function wi({ value: e }) {
|
|
8883
8914
|
const [t, a] = C(!1);
|
|
8884
8915
|
return /* @__PURE__ */ h("span", { className: "inline-flex items-center rounded-sm bg-gray-500 px-2 text-sm text-white", children: [
|
|
8885
8916
|
/* @__PURE__ */ r(
|
|
@@ -8894,7 +8925,7 @@ function hi({ value: e }) {
|
|
|
8894
8925
|
}
|
|
8895
8926
|
),
|
|
8896
8927
|
/* @__PURE__ */ r(
|
|
8897
|
-
|
|
8928
|
+
Cr,
|
|
8898
8929
|
{
|
|
8899
8930
|
text: e,
|
|
8900
8931
|
onCopy: (n, o) => {
|
|
@@ -8902,7 +8933,7 @@ function hi({ value: e }) {
|
|
|
8902
8933
|
a(!1);
|
|
8903
8934
|
}, 2500));
|
|
8904
8935
|
},
|
|
8905
|
-
children: t ? /* @__PURE__ */ r(
|
|
8936
|
+
children: t ? /* @__PURE__ */ r(Xa, { className: "pl-1", height: "1em" }) : /* @__PURE__ */ r(
|
|
8906
8937
|
Ct,
|
|
8907
8938
|
{
|
|
8908
8939
|
className: "cursor-pointer pl-1",
|
|
@@ -8936,15 +8967,15 @@ const ft = ({
|
|
|
8936
8967
|
role: "separator"
|
|
8937
8968
|
}
|
|
8938
8969
|
)
|
|
8939
|
-
] }),
|
|
8940
|
-
|
|
8970
|
+
] }), Dt = ({ children: e }) => /* @__PURE__ */ h(
|
|
8971
|
+
kn,
|
|
8941
8972
|
{
|
|
8942
8973
|
as: "span",
|
|
8943
8974
|
className: "relative inline-flex align-middle",
|
|
8944
8975
|
"data-open": "true",
|
|
8945
8976
|
children: [
|
|
8946
|
-
/* @__PURE__ */ r(
|
|
8947
|
-
|
|
8977
|
+
/* @__PURE__ */ r(xn, { className: "inline", children: /* @__PURE__ */ r(
|
|
8978
|
+
$a,
|
|
8948
8979
|
{
|
|
8949
8980
|
height: "1em",
|
|
8950
8981
|
width: "1em",
|
|
@@ -8952,7 +8983,7 @@ const ft = ({
|
|
|
8952
8983
|
}
|
|
8953
8984
|
) }),
|
|
8954
8985
|
/* @__PURE__ */ r(
|
|
8955
|
-
|
|
8986
|
+
Sn,
|
|
8956
8987
|
{
|
|
8957
8988
|
anchor: "bottom start",
|
|
8958
8989
|
className: "z-50 rounded-lg bg-white p-2 shadow-lg dark:bg-neutral-800",
|
|
@@ -8961,7 +8992,7 @@ const ft = ({
|
|
|
8961
8992
|
)
|
|
8962
8993
|
]
|
|
8963
8994
|
}
|
|
8964
|
-
),
|
|
8995
|
+
), vi = ({
|
|
8965
8996
|
children: e,
|
|
8966
8997
|
className: t
|
|
8967
8998
|
}) => /* @__PURE__ */ r(
|
|
@@ -8974,7 +9005,7 @@ const ft = ({
|
|
|
8974
9005
|
children: e
|
|
8975
9006
|
}
|
|
8976
9007
|
);
|
|
8977
|
-
function
|
|
9008
|
+
function Vr({
|
|
8978
9009
|
percentage: e = 0,
|
|
8979
9010
|
loading: t,
|
|
8980
9011
|
className: a,
|
|
@@ -9007,12 +9038,12 @@ function Ur({
|
|
|
9007
9038
|
}
|
|
9008
9039
|
);
|
|
9009
9040
|
}
|
|
9010
|
-
function
|
|
9041
|
+
function Yr({
|
|
9011
9042
|
delayDuration: e = 100,
|
|
9012
9043
|
...t
|
|
9013
9044
|
}) {
|
|
9014
9045
|
return /* @__PURE__ */ r(
|
|
9015
|
-
|
|
9046
|
+
ne.Provider,
|
|
9016
9047
|
{
|
|
9017
9048
|
"data-slot": "tooltip-provider",
|
|
9018
9049
|
delayDuration: e,
|
|
@@ -9023,12 +9054,12 @@ function Pr({
|
|
|
9023
9054
|
function Ze({
|
|
9024
9055
|
...e
|
|
9025
9056
|
}) {
|
|
9026
|
-
return /* @__PURE__ */ r(
|
|
9057
|
+
return /* @__PURE__ */ r(Yr, { children: /* @__PURE__ */ r(ne.Root, { "data-slot": "tooltip", ...e }) });
|
|
9027
9058
|
}
|
|
9028
9059
|
function Qe({
|
|
9029
9060
|
...e
|
|
9030
9061
|
}) {
|
|
9031
|
-
return /* @__PURE__ */ r(
|
|
9062
|
+
return /* @__PURE__ */ r(ne.Trigger, { "data-slot": "tooltip-trigger", ...e });
|
|
9032
9063
|
}
|
|
9033
9064
|
function Je({
|
|
9034
9065
|
className: e,
|
|
@@ -9037,8 +9068,8 @@ function Je({
|
|
|
9037
9068
|
...n
|
|
9038
9069
|
}) {
|
|
9039
9070
|
const o = Xe(), l = pt();
|
|
9040
|
-
return /* @__PURE__ */ r(
|
|
9041
|
-
|
|
9071
|
+
return /* @__PURE__ */ r(ne.Portal, { container: o, children: /* @__PURE__ */ r(
|
|
9072
|
+
ne.Content,
|
|
9042
9073
|
{
|
|
9043
9074
|
"data-slot": "tooltip-content",
|
|
9044
9075
|
sideOffset: t,
|
|
@@ -9052,17 +9083,17 @@ function Je({
|
|
|
9052
9083
|
}
|
|
9053
9084
|
) });
|
|
9054
9085
|
}
|
|
9055
|
-
function
|
|
9086
|
+
function Kr({
|
|
9056
9087
|
...e
|
|
9057
9088
|
}) {
|
|
9058
9089
|
return /* @__PURE__ */ r(Oe.Root, { ...e });
|
|
9059
9090
|
}
|
|
9060
|
-
function
|
|
9091
|
+
function Xr({
|
|
9061
9092
|
...e
|
|
9062
9093
|
}) {
|
|
9063
9094
|
return /* @__PURE__ */ r(Oe.Trigger, { ...e });
|
|
9064
9095
|
}
|
|
9065
|
-
function
|
|
9096
|
+
function Zr({
|
|
9066
9097
|
className: e,
|
|
9067
9098
|
sideOffset: t = 4,
|
|
9068
9099
|
...a
|
|
@@ -9096,7 +9127,7 @@ function Pe({
|
|
|
9096
9127
|
}
|
|
9097
9128
|
);
|
|
9098
9129
|
}
|
|
9099
|
-
function
|
|
9130
|
+
function Qr({
|
|
9100
9131
|
className: e,
|
|
9101
9132
|
...t
|
|
9102
9133
|
}) {
|
|
@@ -9113,21 +9144,21 @@ function Wr({
|
|
|
9113
9144
|
}
|
|
9114
9145
|
function ue(e, t) {
|
|
9115
9146
|
return function(a) {
|
|
9116
|
-
return
|
|
9147
|
+
return ya(e, {
|
|
9117
9148
|
...a,
|
|
9118
9149
|
className: O(t, a.className)
|
|
9119
9150
|
});
|
|
9120
9151
|
};
|
|
9121
9152
|
}
|
|
9122
9153
|
function O(...e) {
|
|
9123
|
-
return
|
|
9154
|
+
return xa(_e(e));
|
|
9124
9155
|
}
|
|
9125
|
-
function
|
|
9156
|
+
function Lt() {
|
|
9126
9157
|
return /* @__PURE__ */ r("div", { className: "animate-slow-pulse flex w-full flex-1 flex-col bg-gray-300" });
|
|
9127
9158
|
}
|
|
9128
|
-
function
|
|
9159
|
+
function Ft(e) {
|
|
9129
9160
|
return /* @__PURE__ */ r(
|
|
9130
|
-
|
|
9161
|
+
ba,
|
|
9131
9162
|
{
|
|
9132
9163
|
theme: e.darkMode ? "vs-dark" : "vs-light",
|
|
9133
9164
|
className: O(
|
|
@@ -9153,21 +9184,30 @@ function Dt(e) {
|
|
|
9153
9184
|
onMount: e.onMount,
|
|
9154
9185
|
beforeMount: (t) => {
|
|
9155
9186
|
},
|
|
9156
|
-
loading: /* @__PURE__ */ r(
|
|
9187
|
+
loading: /* @__PURE__ */ r(Lt, {})
|
|
9157
9188
|
}
|
|
9158
9189
|
);
|
|
9159
9190
|
}
|
|
9160
|
-
function
|
|
9161
|
-
const [t, a] = C(e.value), o = `json-editor-${
|
|
9162
|
-
return
|
|
9191
|
+
function yi(e) {
|
|
9192
|
+
const [t, a] = C(e.value), o = `json-editor-${ur()}.json`, [l, i] = C(void 0);
|
|
9193
|
+
return ri(o, l, e.schema), P(() => {
|
|
9163
9194
|
a(e.value);
|
|
9164
9195
|
}, [e.value]), /* @__PURE__ */ h("div", { className: "flex h-full min-h-0 flex-col bg-gray-50 dark:bg-[#252525]", children: [
|
|
9165
9196
|
/* @__PURE__ */ h("div", { className: "flex items-center justify-between gap-4 border-b px-4 py-2 dark:border-b-neutral-700", children: [
|
|
9166
9197
|
/* @__PURE__ */ r("div", { className: "font-mono", children: e.label }),
|
|
9167
|
-
/* @__PURE__ */ r(
|
|
9198
|
+
/* @__PURE__ */ r(
|
|
9199
|
+
V,
|
|
9200
|
+
{
|
|
9201
|
+
size: "mini",
|
|
9202
|
+
disabled: t === e.value,
|
|
9203
|
+
title: t === e.value ? "No changes" : void 0,
|
|
9204
|
+
onClick: () => e.onSave(t),
|
|
9205
|
+
children: "Save"
|
|
9206
|
+
}
|
|
9207
|
+
)
|
|
9168
9208
|
] }),
|
|
9169
9209
|
/* @__PURE__ */ r("div", { className: "min-h-0 grow", children: /* @__PURE__ */ r(
|
|
9170
|
-
|
|
9210
|
+
Ft,
|
|
9171
9211
|
{
|
|
9172
9212
|
darkMode: e.darkMode,
|
|
9173
9213
|
language: "json",
|
|
@@ -9183,7 +9223,7 @@ function mi(e) {
|
|
|
9183
9223
|
m && setTimeout(async () => {
|
|
9184
9224
|
const d = m.getValue();
|
|
9185
9225
|
if (!d.trim()) return;
|
|
9186
|
-
const u =
|
|
9226
|
+
const u = ei(d);
|
|
9187
9227
|
u.status === "ok" && m.setValue(JSON.stringify(u.value, null, 2));
|
|
9188
9228
|
}, 20);
|
|
9189
9229
|
});
|
|
@@ -9192,7 +9232,57 @@ function mi(e) {
|
|
|
9192
9232
|
) })
|
|
9193
9233
|
] });
|
|
9194
9234
|
}
|
|
9195
|
-
function
|
|
9235
|
+
function ki(e) {
|
|
9236
|
+
const [t, a] = Rt("diffSideBySide", !1), n = X(null);
|
|
9237
|
+
return P(() => {
|
|
9238
|
+
const o = n.current;
|
|
9239
|
+
o && (o.updateOptions({ renderSideBySide: t }), o.getOriginalEditor().updateOptions({
|
|
9240
|
+
lineNumbers: t ? "on" : "off"
|
|
9241
|
+
}));
|
|
9242
|
+
}, [t]), /* @__PURE__ */ h("div", { className: "flex h-full min-h-0 flex-col bg-gray-50 dark:bg-[#252525]", children: [
|
|
9243
|
+
/* @__PURE__ */ h("div", { className: "flex items-center justify-between gap-4 border-b px-4 py-2 dark:border-b-neutral-700", children: [
|
|
9244
|
+
/* @__PURE__ */ r("div", { className: "font-mono", children: e.label }),
|
|
9245
|
+
/* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
|
|
9246
|
+
/* @__PURE__ */ r(
|
|
9247
|
+
"button",
|
|
9248
|
+
{
|
|
9249
|
+
onClick: () => a(!t),
|
|
9250
|
+
title: t ? "Inline diff" : "Side-by-side diff",
|
|
9251
|
+
className: "rounded px-1.5 py-0.5 text-xs text-gray-500 hover:bg-gray-200 dark:text-neutral-400 dark:hover:bg-neutral-700",
|
|
9252
|
+
children: t ? "Inline" : "Split"
|
|
9253
|
+
}
|
|
9254
|
+
),
|
|
9255
|
+
e.action
|
|
9256
|
+
] })
|
|
9257
|
+
] }),
|
|
9258
|
+
/* @__PURE__ */ r("div", { className: "min-h-0 grow", children: /* @__PURE__ */ r(
|
|
9259
|
+
wa,
|
|
9260
|
+
{
|
|
9261
|
+
theme: e.darkMode ? "vs-dark" : "vs-light",
|
|
9262
|
+
height: "100%",
|
|
9263
|
+
language: "json",
|
|
9264
|
+
original: e.original,
|
|
9265
|
+
modified: e.modified,
|
|
9266
|
+
options: {
|
|
9267
|
+
scrollBeyondLastLine: !1,
|
|
9268
|
+
overviewRulerLanes: 0,
|
|
9269
|
+
hideCursorInOverviewRuler: !0,
|
|
9270
|
+
minimap: { enabled: !1 },
|
|
9271
|
+
automaticLayout: !0,
|
|
9272
|
+
readOnly: !0,
|
|
9273
|
+
domReadOnly: !0,
|
|
9274
|
+
renderSideBySide: t,
|
|
9275
|
+
renderOverviewRuler: !1
|
|
9276
|
+
},
|
|
9277
|
+
onMount: (o) => {
|
|
9278
|
+
n.current = o, t || o.getOriginalEditor().updateOptions({ lineNumbers: "off" });
|
|
9279
|
+
},
|
|
9280
|
+
loading: /* @__PURE__ */ r(Lt, {})
|
|
9281
|
+
}
|
|
9282
|
+
) })
|
|
9283
|
+
] });
|
|
9284
|
+
}
|
|
9285
|
+
function $t({
|
|
9196
9286
|
code: e,
|
|
9197
9287
|
language: t,
|
|
9198
9288
|
style: a,
|
|
@@ -9202,9 +9292,9 @@ function Lt({
|
|
|
9202
9292
|
}) {
|
|
9203
9293
|
const [i, g] = C("Copy");
|
|
9204
9294
|
return /* @__PURE__ */ r(
|
|
9205
|
-
|
|
9295
|
+
Jo,
|
|
9206
9296
|
{
|
|
9207
|
-
...
|
|
9297
|
+
...Ko,
|
|
9208
9298
|
code: e.trimEnd(),
|
|
9209
9299
|
language: t,
|
|
9210
9300
|
theme: n ? {
|
|
@@ -9213,7 +9303,7 @@ function Lt({
|
|
|
9213
9303
|
color: "white"
|
|
9214
9304
|
},
|
|
9215
9305
|
styles: []
|
|
9216
|
-
} :
|
|
9306
|
+
} : ai,
|
|
9217
9307
|
children: ({ className: c, style: p, tokens: m, getTokenProps: d }) => /* @__PURE__ */ h(
|
|
9218
9308
|
"pre",
|
|
9219
9309
|
{
|
|
@@ -9245,7 +9335,7 @@ function Lt({
|
|
|
9245
9335
|
]
|
|
9246
9336
|
}
|
|
9247
9337
|
) }) : null,
|
|
9248
|
-
/* @__PURE__ */ r("code", { children: m.map((u, s) => /* @__PURE__ */ h(
|
|
9338
|
+
/* @__PURE__ */ r("code", { children: m.map((u, s) => /* @__PURE__ */ h(ka, { children: [
|
|
9249
9339
|
u.filter((f) => !f.empty).map((f, b) => {
|
|
9250
9340
|
const { key: w, ...v } = d({ token: f });
|
|
9251
9341
|
return /* @__PURE__ */ r("span", { ...v }, w || b);
|
|
@@ -9259,12 +9349,12 @@ function Lt({
|
|
|
9259
9349
|
}
|
|
9260
9350
|
);
|
|
9261
9351
|
}
|
|
9262
|
-
function
|
|
9352
|
+
function Jr({
|
|
9263
9353
|
className: e,
|
|
9264
9354
|
...t
|
|
9265
9355
|
}) {
|
|
9266
9356
|
return /* @__PURE__ */ r(
|
|
9267
|
-
|
|
9357
|
+
Kt.Root,
|
|
9268
9358
|
{
|
|
9269
9359
|
"data-slot": "switch",
|
|
9270
9360
|
className: O(
|
|
@@ -9273,7 +9363,7 @@ function Yr({
|
|
|
9273
9363
|
),
|
|
9274
9364
|
...t,
|
|
9275
9365
|
children: /* @__PURE__ */ r(
|
|
9276
|
-
|
|
9366
|
+
Kt.Thumb,
|
|
9277
9367
|
{
|
|
9278
9368
|
"data-slot": "switch-thumb",
|
|
9279
9369
|
className: O(
|
|
@@ -9284,56 +9374,65 @@ function Yr({
|
|
|
9284
9374
|
}
|
|
9285
9375
|
);
|
|
9286
9376
|
}
|
|
9287
|
-
const
|
|
9377
|
+
const Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9288
9378
|
__proto__: null,
|
|
9289
9379
|
ActionButton: ve,
|
|
9290
9380
|
ActionForm: ge,
|
|
9291
|
-
Badge:
|
|
9292
|
-
|
|
9381
|
+
Badge: vi,
|
|
9382
|
+
BaseSelect: jr,
|
|
9383
|
+
BlockHeading: di,
|
|
9293
9384
|
Button: V,
|
|
9294
|
-
Checkbox:
|
|
9295
|
-
CodeEditor:
|
|
9385
|
+
Checkbox: te,
|
|
9386
|
+
CodeEditor: Ft,
|
|
9296
9387
|
Content: gt,
|
|
9297
|
-
Copyable:
|
|
9298
|
-
Copytext:
|
|
9388
|
+
Copyable: bi,
|
|
9389
|
+
Copytext: wi,
|
|
9299
9390
|
Dialog: fe,
|
|
9300
|
-
DialogContent:
|
|
9301
|
-
DialogOverlay:
|
|
9302
|
-
DialogPortal:
|
|
9391
|
+
DialogContent: Wr,
|
|
9392
|
+
DialogOverlay: Hr,
|
|
9393
|
+
DialogPortal: Gr,
|
|
9303
9394
|
Divider: ft,
|
|
9304
|
-
DropdownMenu:
|
|
9305
|
-
DropdownMenuContent:
|
|
9395
|
+
DropdownMenu: Kr,
|
|
9396
|
+
DropdownMenuContent: Zr,
|
|
9306
9397
|
DropdownMenuItem: Pe,
|
|
9307
|
-
DropdownMenuSeparator:
|
|
9308
|
-
DropdownMenuTrigger:
|
|
9309
|
-
Fence:
|
|
9310
|
-
FullscreenLoading:
|
|
9311
|
-
Group:
|
|
9312
|
-
Hint:
|
|
9398
|
+
DropdownMenuSeparator: Qr,
|
|
9399
|
+
DropdownMenuTrigger: Xr,
|
|
9400
|
+
Fence: $t,
|
|
9401
|
+
FullscreenLoading: Lt,
|
|
9402
|
+
Group: oi,
|
|
9403
|
+
Hint: ci,
|
|
9313
9404
|
IconButton: ht,
|
|
9314
|
-
InfoTip:
|
|
9315
|
-
|
|
9405
|
+
InfoTip: Dt,
|
|
9406
|
+
JSONDiffEditor: ki,
|
|
9407
|
+
JSONEditor: yi,
|
|
9316
9408
|
Label: Re,
|
|
9317
|
-
LogoIcon:
|
|
9318
|
-
ProgressButton:
|
|
9319
|
-
ScreenHeading:
|
|
9320
|
-
SectionHeading:
|
|
9409
|
+
LogoIcon: ui,
|
|
9410
|
+
ProgressButton: Vr,
|
|
9411
|
+
ScreenHeading: ii,
|
|
9412
|
+
SectionHeading: li,
|
|
9321
9413
|
Select: we,
|
|
9322
|
-
|
|
9323
|
-
|
|
9324
|
-
|
|
9325
|
-
|
|
9326
|
-
|
|
9414
|
+
SelectContent: Mr,
|
|
9415
|
+
SelectGroup: qo,
|
|
9416
|
+
SelectItem: Ur,
|
|
9417
|
+
SelectLabel: Go,
|
|
9418
|
+
SelectSeparator: Ho,
|
|
9419
|
+
SelectTrigger: Br,
|
|
9420
|
+
SelectValue: zr,
|
|
9421
|
+
SmallCopyable: mi,
|
|
9422
|
+
Stack: ni,
|
|
9423
|
+
SubsectionHeading: si,
|
|
9424
|
+
Switch: Jr,
|
|
9425
|
+
TextArea: pi,
|
|
9327
9426
|
TextInput: Ne,
|
|
9328
|
-
Toaster:
|
|
9329
|
-
ToggleCollection:
|
|
9330
|
-
ToggleGroup:
|
|
9427
|
+
Toaster: fa,
|
|
9428
|
+
ToggleCollection: Pr,
|
|
9429
|
+
ToggleGroup: qr,
|
|
9331
9430
|
Tooltip: Ze,
|
|
9332
9431
|
TooltipContent: Je,
|
|
9333
|
-
TooltipProvider:
|
|
9432
|
+
TooltipProvider: Yr,
|
|
9334
9433
|
TooltipTrigger: Qe,
|
|
9335
9434
|
cn: O,
|
|
9336
|
-
redactedValue:
|
|
9435
|
+
redactedValue: _t,
|
|
9337
9436
|
toast: Nt,
|
|
9338
9437
|
twel: ue,
|
|
9339
9438
|
useDialog: st
|
|
@@ -9341,56 +9440,65 @@ const Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9341
9440
|
export {
|
|
9342
9441
|
ve as ActionButton,
|
|
9343
9442
|
ge as ActionForm,
|
|
9344
|
-
|
|
9345
|
-
|
|
9443
|
+
vi as Badge,
|
|
9444
|
+
jr as BaseSelect,
|
|
9445
|
+
di as BlockHeading,
|
|
9346
9446
|
V as Button,
|
|
9347
|
-
|
|
9348
|
-
|
|
9447
|
+
te as Checkbox,
|
|
9448
|
+
Ft as CodeEditor,
|
|
9349
9449
|
gt as Content,
|
|
9350
|
-
|
|
9351
|
-
|
|
9450
|
+
bi as Copyable,
|
|
9451
|
+
wi as Copytext,
|
|
9352
9452
|
fe as Dialog,
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9453
|
+
Wr as DialogContent,
|
|
9454
|
+
Hr as DialogOverlay,
|
|
9455
|
+
Gr as DialogPortal,
|
|
9356
9456
|
ft as Divider,
|
|
9357
|
-
|
|
9358
|
-
|
|
9457
|
+
Kr as DropdownMenu,
|
|
9458
|
+
Zr as DropdownMenuContent,
|
|
9359
9459
|
Pe as DropdownMenuItem,
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
|
|
9364
|
-
|
|
9365
|
-
|
|
9366
|
-
|
|
9460
|
+
Qr as DropdownMenuSeparator,
|
|
9461
|
+
Xr as DropdownMenuTrigger,
|
|
9462
|
+
Zi as Explorer,
|
|
9463
|
+
$t as Fence,
|
|
9464
|
+
Lt as FullscreenLoading,
|
|
9465
|
+
oi as Group,
|
|
9466
|
+
ci as Hint,
|
|
9367
9467
|
ht as IconButton,
|
|
9368
|
-
|
|
9369
|
-
|
|
9468
|
+
Dt as InfoTip,
|
|
9469
|
+
ki as JSONDiffEditor,
|
|
9470
|
+
yi as JSONEditor,
|
|
9370
9471
|
Re as Label,
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
|
|
9374
|
-
|
|
9472
|
+
ui as LogoIcon,
|
|
9473
|
+
Vr as ProgressButton,
|
|
9474
|
+
ii as ScreenHeading,
|
|
9475
|
+
li as SectionHeading,
|
|
9375
9476
|
we as Select,
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
9477
|
+
Mr as SelectContent,
|
|
9478
|
+
qo as SelectGroup,
|
|
9479
|
+
Ur as SelectItem,
|
|
9480
|
+
Go as SelectLabel,
|
|
9481
|
+
Ho as SelectSeparator,
|
|
9482
|
+
Br as SelectTrigger,
|
|
9483
|
+
zr as SelectValue,
|
|
9484
|
+
mi as SmallCopyable,
|
|
9485
|
+
ni as Stack,
|
|
9486
|
+
Po as StyleMe,
|
|
9487
|
+
si as SubsectionHeading,
|
|
9488
|
+
Jr as Switch,
|
|
9489
|
+
pi as TextArea,
|
|
9382
9490
|
Ne as TextInput,
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
|
|
9491
|
+
tl as Toaster,
|
|
9492
|
+
Pr as ToggleCollection,
|
|
9493
|
+
qr as ToggleGroup,
|
|
9386
9494
|
Ze as Tooltip,
|
|
9387
9495
|
Je as TooltipContent,
|
|
9388
|
-
|
|
9496
|
+
Yr as TooltipProvider,
|
|
9389
9497
|
Qe as TooltipTrigger,
|
|
9390
9498
|
O as cn,
|
|
9391
|
-
|
|
9392
|
-
|
|
9499
|
+
_t as redactedValue,
|
|
9500
|
+
rl as toast,
|
|
9393
9501
|
ue as twel,
|
|
9394
|
-
|
|
9502
|
+
Qi as ui,
|
|
9395
9503
|
st as useDialog
|
|
9396
9504
|
};
|