@instantdb/components 0.22.89-experimental.drewh-use-env-for-explorer-demo.20280152775.1 → 0.22.89-experimental.drewh-ssr.20280366757.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +5 -5
- package/dist/components/explorer/index.d.ts.map +1 -1
- package/dist/components/explorer/inner-explorer.d.ts.map +1 -1
- package/dist/components/explorer/view-settings.d.ts.map +1 -1
- package/dist/components/ui.d.ts +3 -2
- package/dist/components/ui.d.ts.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +812 -796
- package/package.json +9 -8
- package/src/components/explorer/explorer-layout.tsx +2 -2
- package/src/components/explorer/index.tsx +8 -0
- package/src/components/explorer/inner-explorer.tsx +4 -0
- package/src/components/explorer/view-settings.tsx +1 -0
- package/src/components/ui.tsx +9 -0
package/dist/index.js
CHANGED
|
@@ -1,41 +1,43 @@
|
|
|
1
1
|
import { jsxs as h, jsx as r, Fragment as M } from "react/jsx-runtime";
|
|
2
2
|
import { toast as St, Toaster as ca } from "sonner";
|
|
3
|
-
import { Toaster as
|
|
4
|
-
import {
|
|
3
|
+
import { Toaster as Zi, toast as Qi } from "sonner";
|
|
4
|
+
import { VisuallyHidden as ua } from "@radix-ui/react-visually-hidden";
|
|
5
|
+
import { Editor as pa } from "@monaco-editor/react";
|
|
5
6
|
import Oe from "clsx";
|
|
6
7
|
import He from "copy-to-clipboard";
|
|
7
|
-
import { twMerge as
|
|
8
|
+
import { twMerge as ga } from "tailwind-merge";
|
|
8
9
|
import * as le from "@radix-ui/react-select";
|
|
9
|
-
import { ChevronDownIcon as Nt, ChevronRightIcon as
|
|
10
|
-
import sr, { useMemo as se, useState as C, useEffect as H, useRef as X, useCallback as at, useSyncExternalStore as
|
|
11
|
-
import { createPortal as
|
|
10
|
+
import { ChevronDownIcon as Nt, ChevronRightIcon as ha, ArrowUturnLeftIcon as fa, ArrowPathIcon as ma, ClockIcon as ir, ArrowUpIcon as ba, ArrowDownIcon as wa, ArrowsUpDownIcon as va, Cog6ToothIcon as ya, XMarkIcon as lr, PencilSquareIcon as ka, ArrowUpOnSquareIcon as xa, TrashIcon as Sa, ExclamationTriangleIcon as Na, CheckIcon as Ea, ChevronUpIcon as Ca, InformationCircleIcon as Ia } from "@heroicons/react/24/outline";
|
|
11
|
+
import sr, { useMemo as se, useState as C, useEffect as H, useRef as X, useCallback as at, useSyncExternalStore as Aa, useLayoutEffect as vt, Component as dr, createContext as cr, useContext as lt, useId as ur, createElement as Ra, Fragment as Ta } from "react";
|
|
12
|
+
import { createPortal as Oa } from "react-dom";
|
|
12
13
|
import * as Ge from "@radix-ui/react-dialog";
|
|
13
|
-
import {
|
|
14
|
-
import ja from "
|
|
15
|
-
import
|
|
14
|
+
import { DialogTitle as _a } from "@radix-ui/react-dialog";
|
|
15
|
+
import { ArrowLeftIcon as Pt, PlusIcon as Da, ArrowRightIcon as La, Table as Fa, FileDown as $a, CurlyBraces as za, ArrowRightFromLine as ja, XIcon as Ma } from "lucide-react";
|
|
16
|
+
import Ba from "json5";
|
|
17
|
+
import { Combobox as pr, ComboboxInput as gr, ComboboxOptions as hr, ComboboxOption as fr, useClose as We, Popover as Ua, PopoverButton as Pa, PopoverPanel as qa } from "@headlessui/react";
|
|
16
18
|
import * as Te from "@radix-ui/react-dropdown-menu";
|
|
17
19
|
import * as qt from "@radix-ui/react-toggle-group";
|
|
18
|
-
import { ArrowLeftIcon as st, PencilSquareIcon as
|
|
20
|
+
import { ArrowLeftIcon as st, PencilSquareIcon as Ga, TrashIcon as nt, PlusIcon as mr, ArrowUturnLeftIcon as Ve, ArrowPathIcon as Ha, InformationCircleIcon as Wa, Cog8ToothIcon as Va, ChevronLeftIcon as Ya, Bars3Icon as Ka, XMarkIcon as Xa, EyeSlashIcon as br, EyeIcon as wr, ClipboardDocumentIcon as Et, CheckCircleIcon as Za } from "@heroicons/react/24/solid";
|
|
19
21
|
import vr from "react-copy-to-clipboard";
|
|
20
22
|
import * as ne from "@radix-ui/react-tooltip";
|
|
21
23
|
import * as Gt from "@radix-ui/react-switch";
|
|
22
|
-
import
|
|
23
|
-
import { InstantAPIError as
|
|
24
|
-
import { add as kr, formatDistanceToNow as xr, format as
|
|
25
|
-
import { id as Pe, tx as
|
|
26
|
-
import { useSensors as
|
|
27
|
-
import { markdownTable as
|
|
28
|
-
import { mkConfig as
|
|
29
|
-
import { restrictToHorizontalAxis as
|
|
30
|
-
import { useSortable as Sr, SortableContext as Ht, horizontalListSortingStrategy as Wt, arrayMove as
|
|
31
|
-
import { flexRender as ot, useReactTable as
|
|
32
|
-
import { debounce as
|
|
24
|
+
import Qa, { useSWRConfig as yr } from "swr";
|
|
25
|
+
import { InstantAPIError as Ja, id as je, coerceToDate as en, tx as tn } from "@instantdb/core";
|
|
26
|
+
import { add as kr, formatDistanceToNow as xr, format as rn } from "date-fns";
|
|
27
|
+
import { id as Pe, tx as an, init as nn } from "@instantdb/react";
|
|
28
|
+
import { useSensors as on, useSensor as bt, MouseSensor as ln, TouchSensor as sn, KeyboardSensor as dn, DndContext as cn, closestCenter as un } from "@dnd-kit/core";
|
|
29
|
+
import { markdownTable as pn } from "markdown-table";
|
|
30
|
+
import { mkConfig as gn, generateCsv as hn, download as fn } from "export-to-csv";
|
|
31
|
+
import { restrictToHorizontalAxis as mn } from "@dnd-kit/modifiers";
|
|
32
|
+
import { useSortable as Sr, SortableContext as Ht, horizontalListSortingStrategy as Wt, arrayMove as bn } from "@dnd-kit/sortable";
|
|
33
|
+
import { flexRender as ot, useReactTable as wn, getCoreRowModel as vn } from "@tanstack/react-table";
|
|
34
|
+
import { debounce as yn, last as kn, isObject as Ne } from "lodash";
|
|
33
35
|
import { CSS as Nr } from "@dnd-kit/utilities";
|
|
34
36
|
import "swr/subscription";
|
|
35
|
-
import { validate as
|
|
36
|
-
const kn = `/*! 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;--container-2xl:42rem;--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}[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%}.max-w-2xl{max-width:var(--container-2xl)}.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}.align-top{vertical-align:top}.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-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", xn = kt("devBackend");
|
|
37
|
+
import { validate as xn } from "uuid";
|
|
38
|
+
const Sn = `/*! 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;--container-2xl:42rem;--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}[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%}.max-w-2xl{max-width:var(--container-2xl)}.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}.align-top{vertical-align:top}.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-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", Nn = kt("devBackend");
|
|
37
39
|
let yt = "8888";
|
|
38
|
-
if (
|
|
40
|
+
if (Nn && Er) {
|
|
39
41
|
const e = new URL(location.href).searchParams.get("port");
|
|
40
42
|
e && (yt = e);
|
|
41
43
|
}
|
|
@@ -106,16 +108,16 @@ const Ct = {
|
|
|
106
108
|
`${t.cardinality}-${t["unique?"]}`,
|
|
107
109
|
e
|
|
108
110
|
])
|
|
109
|
-
),
|
|
111
|
+
), En = ({
|
|
110
112
|
attr: e,
|
|
111
113
|
gracePeriodDays: t,
|
|
112
114
|
isExpanded: a,
|
|
113
115
|
setIsExpanded: n,
|
|
114
116
|
onRestore: o
|
|
115
117
|
}) => {
|
|
116
|
-
const
|
|
118
|
+
const l = kr(new Date(e["deletion-marked-at"]), {
|
|
117
119
|
days: t
|
|
118
|
-
}),
|
|
120
|
+
}), i = () => e["forward-identity"][2], g = () => e["reverse-identity"]?.[2], c = () => {
|
|
119
121
|
const s = e["forward-identity"][1], m = e["reverse-identity"]?.[1];
|
|
120
122
|
return { forwardEtype: s, reverseEtype: m };
|
|
121
123
|
}, p = () => {
|
|
@@ -126,7 +128,7 @@ const Ct = {
|
|
|
126
128
|
}, d = (() => {
|
|
127
129
|
if (e["value-type"] === "blob")
|
|
128
130
|
return [];
|
|
129
|
-
const s = p(), { forwardEtype: m, reverseEtype: b } = c(), w =
|
|
131
|
+
const s = p(), { forwardEtype: m, reverseEtype: b } = c(), w = i(), v = g(), k = (x, _) => x === "one-one" ? "has one" : x === "many-many" ? "has many" : x === "one-many" ? _ ? "has one" : "has many" : x === "many-one" ? _ ? "has many" : "has one" : "has";
|
|
130
132
|
return [
|
|
131
133
|
{
|
|
132
134
|
label: "forward",
|
|
@@ -161,11 +163,11 @@ const Ct = {
|
|
|
161
163
|
onClick: f,
|
|
162
164
|
children: [
|
|
163
165
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-3", children: [
|
|
164
|
-
a ? /* @__PURE__ */ r(Nt, { width: 14, className: "text-gray-400" }) : /* @__PURE__ */ r(
|
|
166
|
+
a ? /* @__PURE__ */ r(Nt, { width: 14, className: "text-gray-400" }) : /* @__PURE__ */ r(ha, { width: 14, className: "text-gray-400" }),
|
|
165
167
|
/* @__PURE__ */ r("span", { className: "font-mono text-sm font-medium", children: e["forward-identity"][2] }),
|
|
166
168
|
/* @__PURE__ */ h("span", { className: "font-mono text-xs text-gray-400", children: [
|
|
167
169
|
"expires ",
|
|
168
|
-
xr(
|
|
170
|
+
xr(l, { includeSeconds: !1 })
|
|
169
171
|
] })
|
|
170
172
|
] }),
|
|
171
173
|
/* @__PURE__ */ h(
|
|
@@ -178,7 +180,7 @@ const Ct = {
|
|
|
178
180
|
s.stopPropagation(), o(e.id);
|
|
179
181
|
},
|
|
180
182
|
children: [
|
|
181
|
-
/* @__PURE__ */ r(
|
|
183
|
+
/* @__PURE__ */ r(fa, { width: 14 }),
|
|
182
184
|
"Restore"
|
|
183
185
|
]
|
|
184
186
|
}
|
|
@@ -200,7 +202,7 @@ const Ct = {
|
|
|
200
202
|
] });
|
|
201
203
|
}, It = (e) => {
|
|
202
204
|
const t = de(), a = t.adminToken;
|
|
203
|
-
return
|
|
205
|
+
return Qa(["recently-deleted", e], async () => {
|
|
204
206
|
const o = await fetch(
|
|
205
207
|
`${t.apiURI}/dash/apps/${e}/soft_deleted_attrs`,
|
|
206
208
|
{
|
|
@@ -209,33 +211,33 @@ const Ct = {
|
|
|
209
211
|
Authorization: `Bearer ${a}`
|
|
210
212
|
}
|
|
211
213
|
}
|
|
212
|
-
),
|
|
214
|
+
), l = await o.json();
|
|
213
215
|
if (!o.ok)
|
|
214
|
-
throw console.error("Failed to fetch recently deleted attrs",
|
|
215
|
-
"Failed to fetch recently deleted attrs" + JSON.stringify(
|
|
216
|
+
throw console.error("Failed to fetch recently deleted attrs", l), new Error(
|
|
217
|
+
"Failed to fetch recently deleted attrs" + JSON.stringify(l)
|
|
216
218
|
);
|
|
217
219
|
return {
|
|
218
|
-
...
|
|
219
|
-
attrs:
|
|
220
|
+
...l,
|
|
221
|
+
attrs: l.attrs.map(An)
|
|
220
222
|
};
|
|
221
223
|
});
|
|
222
224
|
}, Ir = (e) => {
|
|
223
225
|
const { data: t } = It(e);
|
|
224
226
|
return se(() => {
|
|
225
227
|
const n = t?.attrs || [];
|
|
226
|
-
return n.filter((
|
|
228
|
+
return n.filter((i) => i["forward-identity"][2] === "id").map((i) => {
|
|
227
229
|
const g = n.filter(
|
|
228
|
-
(c) => c.metadata.soft_delete_snapshot?.id_attr_id ===
|
|
230
|
+
(c) => c.metadata.soft_delete_snapshot?.id_attr_id === i.id
|
|
229
231
|
);
|
|
230
|
-
return { idAttr:
|
|
232
|
+
return { idAttr: i, remainingCols: g.filter((c) => i.id !== c.id) };
|
|
231
233
|
});
|
|
232
234
|
}, [t?.attrs]);
|
|
233
235
|
};
|
|
234
|
-
function
|
|
236
|
+
function Cn({
|
|
235
237
|
appId: e,
|
|
236
238
|
db: t
|
|
237
239
|
}) {
|
|
238
|
-
const { data: a, mutate: n } = It(e), o = Ir(e),
|
|
240
|
+
const { data: a, mutate: n } = It(e), o = Ir(e), l = a?.["grace-period-days"] || 2, i = async ({ idAttr: g, remainingCols: c }) => {
|
|
239
241
|
if (!t || !a) return;
|
|
240
242
|
const p = [g, ...c].map((d) => d.id);
|
|
241
243
|
await t.core._reactor.pushOps(
|
|
@@ -253,7 +255,7 @@ function Nn({
|
|
|
253
255
|
const c = new Date(
|
|
254
256
|
g.idAttr["deletion-marked-at"]
|
|
255
257
|
), p = kr(c, {
|
|
256
|
-
days:
|
|
258
|
+
days: l
|
|
257
259
|
});
|
|
258
260
|
return /* @__PURE__ */ h(
|
|
259
261
|
"div",
|
|
@@ -264,7 +266,7 @@ function Nn({
|
|
|
264
266
|
/* @__PURE__ */ r("div", { className: "font-semibold dark:text-white", children: g.idAttr["forward-identity"][1] }),
|
|
265
267
|
/* @__PURE__ */ h("div", { className: "mt-1 text-xs text-neutral-500 dark:text-neutral-400", children: [
|
|
266
268
|
"Deleted ",
|
|
267
|
-
|
|
269
|
+
rn(c, "MMM d, h:mm a"),
|
|
268
270
|
" ·",
|
|
269
271
|
" ",
|
|
270
272
|
"expires",
|
|
@@ -284,9 +286,9 @@ function Nn({
|
|
|
284
286
|
{
|
|
285
287
|
size: "mini",
|
|
286
288
|
variant: "secondary",
|
|
287
|
-
onClick: () =>
|
|
289
|
+
onClick: () => i(g),
|
|
288
290
|
children: [
|
|
289
|
-
/* @__PURE__ */ r(
|
|
291
|
+
/* @__PURE__ */ r(ma, { className: "h-3.5 w-3.5" }),
|
|
290
292
|
"Restore"
|
|
291
293
|
]
|
|
292
294
|
}
|
|
@@ -298,21 +300,21 @@ function Nn({
|
|
|
298
300
|
}) }) : /* @__PURE__ */ r("p", { className: "text-sm text-neutral-500 dark:text-neutral-400", children: "No recently deleted namespaces." })
|
|
299
301
|
] });
|
|
300
302
|
}
|
|
301
|
-
const
|
|
302
|
-
const { data: o, mutate:
|
|
303
|
+
const In = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
304
|
+
const { data: o, mutate: l, error: i } = It(t), [g, c] = C(null), p = it(), f = async (s) => {
|
|
303
305
|
if (a && o)
|
|
304
306
|
try {
|
|
305
|
-
await a.core._reactor.pushOps([["restore-attr", s]]),
|
|
307
|
+
await a.core._reactor.pushOps([["restore-attr", s]]), l({
|
|
306
308
|
attrs: o.attrs.filter((b) => b.id !== s) ?? [],
|
|
307
309
|
"grace-period-days": o["grace-period-days"]
|
|
308
310
|
});
|
|
309
311
|
const m = o.attrs.find((b) => b.id === s);
|
|
310
312
|
if (m) {
|
|
311
|
-
const b =
|
|
313
|
+
const b = Rn(m);
|
|
312
314
|
b && n.setNote(s, b);
|
|
313
315
|
}
|
|
314
316
|
} catch (m) {
|
|
315
|
-
console.error(m), m instanceof
|
|
317
|
+
console.error(m), m instanceof Ja ? m.body?.type === "record-not-unique" ? ie(
|
|
316
318
|
"Attribute already exists. Rename existing attribute first and then try again to restore."
|
|
317
319
|
) : ie(m.message) : ie("Failed to restore attr");
|
|
318
320
|
}
|
|
@@ -321,13 +323,13 @@ const En = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
|
321
323
|
);
|
|
322
324
|
return H(() => {
|
|
323
325
|
u?.length === 0 && p.onClose();
|
|
324
|
-
}, [u]),
|
|
326
|
+
}, [u]), i || !u || u.length === 0 ? null : /* @__PURE__ */ h("div", { className: "pb-2", children: [
|
|
325
327
|
/* @__PURE__ */ r(ht, { className: "pb-2", children: /* @__PURE__ */ h("div", { className: "flex w-full grow items-center justify-center gap-2 text-center opacity-60", children: [
|
|
326
328
|
/* @__PURE__ */ r(ir, { width: 16 }),
|
|
327
329
|
"Recently Deleted"
|
|
328
330
|
] }) }),
|
|
329
331
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-2", children: u?.map((s) => /* @__PURE__ */ r(
|
|
330
|
-
|
|
332
|
+
En,
|
|
331
333
|
{
|
|
332
334
|
isExpanded: g === s.id,
|
|
333
335
|
setIsExpanded: (m) => {
|
|
@@ -340,17 +342,17 @@ const En = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
|
340
342
|
s.id
|
|
341
343
|
)) })
|
|
342
344
|
] });
|
|
343
|
-
}, Yt = "_deleted$",
|
|
345
|
+
}, Yt = "_deleted$", An = (e) => {
|
|
344
346
|
const t = { ...e }, [a, n, o] = e["forward-identity"];
|
|
345
347
|
if (t["forward-identity"] = [
|
|
346
348
|
a,
|
|
347
349
|
tt(n),
|
|
348
350
|
tt(o)
|
|
349
351
|
], e["reverse-identity"]) {
|
|
350
|
-
const [
|
|
352
|
+
const [l, i, g] = e["reverse-identity"];
|
|
351
353
|
t["reverse-identity"] = [
|
|
352
|
-
|
|
353
|
-
tt(
|
|
354
|
+
l,
|
|
355
|
+
tt(i),
|
|
354
356
|
tt(g)
|
|
355
357
|
];
|
|
356
358
|
}
|
|
@@ -358,22 +360,22 @@ const En = ({ namespace: e, appId: t, db: a, notes: n }) => {
|
|
|
358
360
|
}, tt = (e) => {
|
|
359
361
|
const t = e.indexOf(Yt);
|
|
360
362
|
return t === -1 ? e : e.slice(t + Yt.length);
|
|
361
|
-
},
|
|
362
|
-
function
|
|
363
|
+
}, Rn = (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;
|
|
364
|
+
function Tn({
|
|
363
365
|
db: e,
|
|
364
366
|
onClose: t
|
|
365
367
|
}) {
|
|
366
368
|
const [a, n] = C("");
|
|
367
369
|
async function o() {
|
|
368
|
-
const
|
|
370
|
+
const l = {
|
|
369
371
|
id: Pe(),
|
|
370
372
|
"forward-identity": [Pe(), a, "id"],
|
|
371
373
|
"value-type": "blob",
|
|
372
374
|
cardinality: "one",
|
|
373
375
|
"unique?": !0,
|
|
374
376
|
"index?": !1
|
|
375
|
-
},
|
|
376
|
-
await e.core._reactor.pushOps(
|
|
377
|
+
}, i = [["add-attr", l]];
|
|
378
|
+
await e.core._reactor.pushOps(i), t({ id: l.id, name: a });
|
|
377
379
|
}
|
|
378
380
|
return /* @__PURE__ */ h(ge, { className: "flex flex-col gap-4", children: [
|
|
379
381
|
/* @__PURE__ */ r("h5", { className: "flex items-center text-lg font-bold", children: "Create a new namespace" }),
|
|
@@ -382,7 +384,7 @@ function An({
|
|
|
382
384
|
{
|
|
383
385
|
value: a,
|
|
384
386
|
placeholder: "Name your namespace",
|
|
385
|
-
onChange: (
|
|
387
|
+
onChange: (l) => n(l),
|
|
386
388
|
autoFocus: !0
|
|
387
389
|
}
|
|
388
390
|
),
|
|
@@ -399,25 +401,25 @@ function An({
|
|
|
399
401
|
)
|
|
400
402
|
] });
|
|
401
403
|
}
|
|
402
|
-
const
|
|
404
|
+
const On = [
|
|
403
405
|
// Exclude computed fields
|
|
404
406
|
["$files", "url"]
|
|
405
407
|
], Kt = [":", ">", "<"];
|
|
406
|
-
function
|
|
408
|
+
function _n(e) {
|
|
407
409
|
let t = 0, a, n;
|
|
408
410
|
const o = [];
|
|
409
|
-
let
|
|
410
|
-
for (const
|
|
411
|
-
if (
|
|
412
|
-
t =
|
|
411
|
+
let l = -1;
|
|
412
|
+
for (const i of e) {
|
|
413
|
+
if (l++, i === " " && !Kt.includes(e[l + 1])) {
|
|
414
|
+
t = l + 1;
|
|
413
415
|
continue;
|
|
414
416
|
}
|
|
415
|
-
if (Kt.includes(
|
|
417
|
+
if (Kt.includes(i)) {
|
|
416
418
|
a && n != null && (a.value = e.substring(n, t).trim(), o.push(a)), a = {
|
|
417
|
-
field: e.substring(t,
|
|
418
|
-
operator:
|
|
419
|
+
field: e.substring(t, l).trim(),
|
|
420
|
+
operator: i,
|
|
419
421
|
value: ""
|
|
420
|
-
}, n =
|
|
422
|
+
}, n = l + 1;
|
|
421
423
|
continue;
|
|
422
424
|
}
|
|
423
425
|
}
|
|
@@ -435,72 +437,72 @@ function Me(e) {
|
|
|
435
437
|
throw new Error("what kind of op is this? " + e);
|
|
436
438
|
}
|
|
437
439
|
}
|
|
438
|
-
function
|
|
440
|
+
function Dn({
|
|
439
441
|
query: e,
|
|
440
442
|
attrsByName: t,
|
|
441
443
|
stringIndexed: a
|
|
442
444
|
}) {
|
|
443
445
|
if (!e.trim())
|
|
444
446
|
return [];
|
|
445
|
-
const n =
|
|
446
|
-
(
|
|
447
|
-
const
|
|
448
|
-
if (!
|
|
447
|
+
const n = _n(e), o = n.flatMap(
|
|
448
|
+
(l) => {
|
|
449
|
+
const i = t[l.field];
|
|
450
|
+
if (!i || !l.value)
|
|
449
451
|
return [];
|
|
450
|
-
if (
|
|
451
|
-
return [[
|
|
452
|
+
if (l.value.toLowerCase() === "null" && l.operator === ":" && !i.isRequired)
|
|
453
|
+
return [[l.field, "$isNull", null]];
|
|
452
454
|
const g = [];
|
|
453
|
-
if (
|
|
454
|
-
if (
|
|
455
|
-
const c =
|
|
455
|
+
if (i.checkedDataType && i.isIndex) {
|
|
456
|
+
if (i.checkedDataType === "string") {
|
|
457
|
+
const c = l.value;
|
|
456
458
|
return [
|
|
457
459
|
[
|
|
458
|
-
|
|
460
|
+
l.field,
|
|
459
461
|
c === c.toLowerCase() ? "$ilike" : "$like",
|
|
460
|
-
`%${
|
|
462
|
+
`%${l.value}%`
|
|
461
463
|
]
|
|
462
464
|
];
|
|
463
465
|
}
|
|
464
|
-
if (
|
|
466
|
+
if (i.checkedDataType === "number")
|
|
465
467
|
try {
|
|
466
468
|
return [
|
|
467
469
|
[
|
|
468
|
-
|
|
469
|
-
Me(
|
|
470
|
-
JSON.parse(
|
|
470
|
+
l.field,
|
|
471
|
+
Me(l.operator),
|
|
472
|
+
JSON.parse(l.value)
|
|
471
473
|
]
|
|
472
474
|
];
|
|
473
475
|
} catch {
|
|
474
476
|
}
|
|
475
|
-
if (
|
|
477
|
+
if (i.checkedDataType === "date")
|
|
476
478
|
try {
|
|
477
479
|
return [
|
|
478
480
|
[
|
|
479
|
-
|
|
480
|
-
Me(
|
|
481
|
-
JSON.parse(
|
|
481
|
+
l.field,
|
|
482
|
+
Me(l.operator),
|
|
483
|
+
JSON.parse(l.value)
|
|
482
484
|
]
|
|
483
485
|
];
|
|
484
486
|
} catch {
|
|
485
|
-
return [[
|
|
487
|
+
return [[l.field, Me(l.operator), l.value]];
|
|
486
488
|
}
|
|
487
489
|
}
|
|
488
|
-
for (const c of
|
|
490
|
+
for (const c of i.inferredTypes || ["json"])
|
|
489
491
|
switch (c) {
|
|
490
492
|
case "boolean":
|
|
491
493
|
case "number": {
|
|
492
494
|
try {
|
|
493
495
|
g.push([
|
|
494
|
-
|
|
495
|
-
Me(
|
|
496
|
-
JSON.parse(
|
|
496
|
+
l.field,
|
|
497
|
+
Me(l.operator),
|
|
498
|
+
JSON.parse(l.value)
|
|
497
499
|
]);
|
|
498
500
|
} catch {
|
|
499
501
|
}
|
|
500
502
|
break;
|
|
501
503
|
}
|
|
502
504
|
default: {
|
|
503
|
-
g.push([
|
|
505
|
+
g.push([l.field, Me(l.operator), l.value]);
|
|
504
506
|
break;
|
|
505
507
|
}
|
|
506
508
|
}
|
|
@@ -508,15 +510,15 @@ function On({
|
|
|
508
510
|
}
|
|
509
511
|
);
|
|
510
512
|
if (!n.length && e.trim() && a.length)
|
|
511
|
-
for (const
|
|
513
|
+
for (const l of a)
|
|
512
514
|
o.push([
|
|
513
|
-
|
|
515
|
+
l.name,
|
|
514
516
|
e.toLowerCase() === e ? "$ilike" : "$like",
|
|
515
517
|
`%${e.trim()}%`
|
|
516
518
|
]);
|
|
517
519
|
return o;
|
|
518
520
|
}
|
|
519
|
-
function
|
|
521
|
+
function Ln(e, t) {
|
|
520
522
|
if (t.length === e.length) {
|
|
521
523
|
for (let a = 0; a < t.length; a++)
|
|
522
524
|
for (let n = 0; n < 3; n++)
|
|
@@ -526,24 +528,24 @@ function _n(e, t) {
|
|
|
526
528
|
}
|
|
527
529
|
return !1;
|
|
528
530
|
}
|
|
529
|
-
function
|
|
531
|
+
function Fn({
|
|
530
532
|
onSearchChange: e,
|
|
531
533
|
attrs: t,
|
|
532
534
|
initialFilters: a = []
|
|
533
535
|
}) {
|
|
534
|
-
const [n, o] = C(""),
|
|
536
|
+
const [n, o] = C(""), l = X(a), { attrsByName: i, stringIndexed: g } = se(() => {
|
|
535
537
|
const s = {}, m = [];
|
|
536
538
|
for (const b of t || [])
|
|
537
539
|
s[b.name] = b, b.isIndex && b.checkedDataType === "string" && m.push(b);
|
|
538
540
|
return { attrsByName: s, stringIndexed: m };
|
|
539
541
|
}, [t]), c = at(
|
|
540
|
-
|
|
541
|
-
const m =
|
|
542
|
-
|
|
542
|
+
yn((s) => {
|
|
543
|
+
const m = Dn({ query: s, attrsByName: i, stringIndexed: g });
|
|
544
|
+
Ln(l.current, m) || (l.current = m, e(m));
|
|
543
545
|
}, 80),
|
|
544
|
-
[
|
|
545
|
-
), p = n.indexOf(":") !== -1 ?
|
|
546
|
-
const m =
|
|
546
|
+
[i, g, l]
|
|
547
|
+
), p = n.indexOf(":") !== -1 ? kn(n.split(" ")) : n, f = (t || []).flatMap((s) => {
|
|
548
|
+
const m = On.some(
|
|
547
549
|
([v, k]) => v === s.namespace && k === s.name
|
|
548
550
|
);
|
|
549
551
|
if (s.type === "ref" || m)
|
|
@@ -622,20 +624,20 @@ function Dn({
|
|
|
622
624
|
}
|
|
623
625
|
);
|
|
624
626
|
}
|
|
625
|
-
function
|
|
627
|
+
function $n(e) {
|
|
626
628
|
const [, t, a] = e["forward-identity"];
|
|
627
629
|
return e.catalog !== "system" || t === "$users" || t === "$files";
|
|
628
630
|
}
|
|
629
|
-
function
|
|
631
|
+
function zn(e) {
|
|
630
632
|
const t = {}, a = {};
|
|
631
|
-
for (const [o,
|
|
632
|
-
|
|
633
|
+
for (const [o, l] of Object.entries(e))
|
|
634
|
+
$n(l) && (a[o] = l);
|
|
633
635
|
for (const o of Object.values(a)) {
|
|
634
|
-
const [,
|
|
635
|
-
t[
|
|
636
|
+
const [, l] = o["forward-identity"];
|
|
637
|
+
t[l] || (t[l] = { id: l, name: l, attrs: {} });
|
|
636
638
|
}
|
|
637
639
|
for (const o of Object.values(a)) {
|
|
638
|
-
const
|
|
640
|
+
const l = {
|
|
639
641
|
forward: {
|
|
640
642
|
id: o["forward-identity"][0],
|
|
641
643
|
namespace: o["forward-identity"][1],
|
|
@@ -662,7 +664,7 @@ function Fn(e) {
|
|
|
662
664
|
isRequired: o["required?"],
|
|
663
665
|
isPrimary: o["primary?"],
|
|
664
666
|
cardinality: o.cardinality,
|
|
665
|
-
linkConfig:
|
|
667
|
+
linkConfig: l,
|
|
666
668
|
inferredTypes: o["inferred-types"],
|
|
667
669
|
catalog: o.catalog,
|
|
668
670
|
checkedDataType: o["checked-data-type"],
|
|
@@ -673,7 +675,7 @@ function Fn(e) {
|
|
|
673
675
|
}
|
|
674
676
|
if (!o["reverse-identity"])
|
|
675
677
|
continue;
|
|
676
|
-
const [
|
|
678
|
+
const [i, g, c, p] = o["reverse-identity"];
|
|
677
679
|
if (t[g] && p !== !1) {
|
|
678
680
|
const f = o.id + "-reverse";
|
|
679
681
|
t[g].attrs[f] = {
|
|
@@ -686,7 +688,7 @@ function Fn(e) {
|
|
|
686
688
|
isUniq: o["unique?"],
|
|
687
689
|
isRequired: o["required?"],
|
|
688
690
|
cardinality: o.cardinality,
|
|
689
|
-
linkConfig:
|
|
691
|
+
linkConfig: l,
|
|
690
692
|
sortable: o["index?"] && !!o["checked-data-type"],
|
|
691
693
|
onDelete: o["on-delete"],
|
|
692
694
|
onDeleteReverse: o["on-delete-reverse"],
|
|
@@ -703,21 +705,21 @@ function Fn(e) {
|
|
|
703
705
|
function Xt(e, t) {
|
|
704
706
|
return e.name === "id" ? -1 : t.name === "id" ? 1 : e.name < t.name ? -1 : e.name > t.name ? 1 : 0;
|
|
705
707
|
}
|
|
706
|
-
function
|
|
708
|
+
function jn(e, t) {
|
|
707
709
|
const a = {};
|
|
708
|
-
return e && (a[e[0]] = e[1]), t?.length && (a.or = t.map(([n, o,
|
|
710
|
+
return e && (a[e[0]] = e[1]), t?.length && (a.or = t.map(([n, o, l]) => {
|
|
709
711
|
switch (o) {
|
|
710
712
|
case "=":
|
|
711
|
-
return { [n]:
|
|
713
|
+
return { [n]: l };
|
|
712
714
|
case "$isNull":
|
|
713
715
|
return { [n]: { [o]: !0 } };
|
|
714
716
|
default:
|
|
715
|
-
return { [n]: { [o]:
|
|
717
|
+
return { [n]: { [o]: l } };
|
|
716
718
|
}
|
|
717
719
|
})), a;
|
|
718
720
|
}
|
|
719
|
-
function
|
|
720
|
-
const c = g ? "asc" : "desc", p =
|
|
721
|
+
function Mn(e, t, a, n, o, l, i, g) {
|
|
722
|
+
const c = g ? "asc" : "desc", p = jn(a, n), f = t ? {
|
|
721
723
|
[t.name]: {
|
|
722
724
|
...Object.fromEntries(
|
|
723
725
|
t.attrs.filter((m) => m.type === "ref").map((m) => [m.name, { $: { fields: ["id"] } }])
|
|
@@ -725,8 +727,8 @@ function zn(e, t, a, n, o, i, l, g) {
|
|
|
725
727
|
$: {
|
|
726
728
|
...p ? { where: p } : {},
|
|
727
729
|
...o ? { limit: o } : {},
|
|
728
|
-
...
|
|
729
|
-
order: { [
|
|
730
|
+
...l ? { offset: l } : {},
|
|
731
|
+
order: { [i]: c }
|
|
730
732
|
}
|
|
731
733
|
}
|
|
732
734
|
} : {}, d = e.useQuery(f), s = e.useQuery(
|
|
@@ -744,13 +746,13 @@ function zn(e, t, a, n, o, i, l, g) {
|
|
|
744
746
|
allCount: s
|
|
745
747
|
};
|
|
746
748
|
}
|
|
747
|
-
function
|
|
749
|
+
function Bn(e) {
|
|
748
750
|
const [t, a] = C({ namespaces: null, attrs: null });
|
|
749
751
|
return e.useQuery({ ____explorer___: {} }), H(() => {
|
|
750
752
|
function n(o) {
|
|
751
753
|
a({
|
|
752
754
|
attrs: o,
|
|
753
|
-
namespaces:
|
|
755
|
+
namespaces: zn(o)
|
|
754
756
|
});
|
|
755
757
|
}
|
|
756
758
|
return e._core._reactor.subscribeAttrs(n);
|
|
@@ -765,7 +767,7 @@ const Zt = (e) => {
|
|
|
765
767
|
} catch (a) {
|
|
766
768
|
return console.error("Failed to parse column visibility", a), {};
|
|
767
769
|
}
|
|
768
|
-
},
|
|
770
|
+
}, Un = (e) => {
|
|
769
771
|
const [t, a] = C(
|
|
770
772
|
Zt(e.appId)
|
|
771
773
|
);
|
|
@@ -787,7 +789,7 @@ function Qt(e) {
|
|
|
787
789
|
} catch {
|
|
788
790
|
}
|
|
789
791
|
}
|
|
790
|
-
function
|
|
792
|
+
function Pn(e, t) {
|
|
791
793
|
if (typeof window > "u")
|
|
792
794
|
throw new Error("useLocalStorage/setState needs to run on the client");
|
|
793
795
|
const a = JSON.stringify(t);
|
|
@@ -801,22 +803,22 @@ function Bn(e, t) {
|
|
|
801
803
|
new StorageEvent("storage", { key: e, newValue: a })
|
|
802
804
|
);
|
|
803
805
|
}
|
|
804
|
-
function
|
|
805
|
-
const a = X(Qt(e) || t), n = at((
|
|
806
|
-
const
|
|
807
|
-
a.current = Qt(e) || t,
|
|
806
|
+
function qn(e, t) {
|
|
807
|
+
const a = X(Qt(e) || t), n = at((l) => {
|
|
808
|
+
const i = () => {
|
|
809
|
+
a.current = Qt(e) || t, l();
|
|
808
810
|
};
|
|
809
|
-
return window.addEventListener("storage",
|
|
810
|
-
window.removeEventListener("storage",
|
|
811
|
+
return window.addEventListener("storage", i), () => {
|
|
812
|
+
window.removeEventListener("storage", i);
|
|
811
813
|
};
|
|
812
814
|
}, []);
|
|
813
|
-
return [
|
|
815
|
+
return [Aa(
|
|
814
816
|
n,
|
|
815
817
|
() => a.current,
|
|
816
818
|
() => t
|
|
817
|
-
), (
|
|
819
|
+
), (l) => Pn(e, l)];
|
|
818
820
|
}
|
|
819
|
-
function
|
|
821
|
+
function Gn(e) {
|
|
820
822
|
const t = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"];
|
|
821
823
|
let a = 0;
|
|
822
824
|
if (!e) return "0 bytes";
|
|
@@ -824,44 +826,44 @@ function Pn(e) {
|
|
|
824
826
|
e /= 1024, a++;
|
|
825
827
|
return e.toFixed(2) + " " + t[a];
|
|
826
828
|
}
|
|
827
|
-
const
|
|
829
|
+
const Hn = (e, t) => {
|
|
828
830
|
const a = document.querySelector(`.th-${e}`);
|
|
829
831
|
if (!a)
|
|
830
832
|
throw new Error(`Element with class th-${e} not found`);
|
|
831
833
|
const n = document.querySelectorAll(`span.td-${e}`), o = document.createElement("div");
|
|
832
834
|
o.style.position = "absolute", o.style.visibility = "hidden", o.style.top = "-9999px", o.style.left = "-9999px", o.style.width = "auto", o.style.whiteSpace = "nowrap", document.body.appendChild(o);
|
|
833
835
|
try {
|
|
834
|
-
const
|
|
835
|
-
|
|
836
|
-
const
|
|
836
|
+
const l = a.cloneNode(!0);
|
|
837
|
+
l.style.display = "inline-block", l.style.overflow = "visible", l.style.width = "auto", l.style.maxWidth = "none", l.style.whiteSpace = "nowrap", o.appendChild(l);
|
|
838
|
+
const i = l.scrollWidth, g = Array.from(n).map((d) => {
|
|
837
839
|
const u = d.cloneNode(!0);
|
|
838
840
|
u.style.display = "inline-block", u.style.overflow = "visible", u.style.width = "auto", u.style.maxWidth = "none", u.style.whiteSpace = "nowrap", o.appendChild(u);
|
|
839
841
|
const s = u.scrollWidth;
|
|
840
842
|
return o.removeChild(u), s;
|
|
841
|
-
}), c = g.length > 0 ? Math.max(...g) : 0, f = Math.max(
|
|
843
|
+
}), c = g.length > 0 ? Math.max(...g) : 0, f = Math.max(i, c) + 12;
|
|
842
844
|
return Math.min(f, t);
|
|
843
845
|
} finally {
|
|
844
846
|
document.body.removeChild(o);
|
|
845
847
|
}
|
|
846
848
|
};
|
|
847
|
-
function
|
|
849
|
+
function Wn() {
|
|
848
850
|
const e = X(null), [t, a] = C(!1);
|
|
849
851
|
return vt(() => {
|
|
850
852
|
const { current: n } = e;
|
|
851
853
|
n && (() => {
|
|
852
|
-
const
|
|
853
|
-
a(
|
|
854
|
+
const l = n.scrollWidth > n.clientWidth || n.scrollHeight > n.clientHeight;
|
|
855
|
+
a(l);
|
|
854
856
|
})();
|
|
855
857
|
}, [e]), { ref: e, isOverflow: t, setIsOverflow: a };
|
|
856
858
|
}
|
|
857
|
-
const
|
|
859
|
+
const Vn = ({
|
|
858
860
|
header: e,
|
|
859
861
|
table: t,
|
|
860
862
|
headerGroup: a,
|
|
861
863
|
index: n,
|
|
862
864
|
setMinViableColWidth: o,
|
|
863
|
-
onSort:
|
|
864
|
-
currentSortAttr:
|
|
865
|
+
onSort: l,
|
|
866
|
+
currentSortAttr: i,
|
|
865
867
|
currentSortAsc: g
|
|
866
868
|
}) => {
|
|
867
869
|
const {
|
|
@@ -883,7 +885,7 @@ const Hn = ({
|
|
|
883
885
|
whiteSpace: "nowrap",
|
|
884
886
|
width: e.column.getSize(),
|
|
885
887
|
zIndex: f ? 1 : 0
|
|
886
|
-
}, w = !!e.column.columnDef?.meta?.sortable, v = typeof e.column.columnDef.header == "string" ? e.column.columnDef.header : "", k =
|
|
888
|
+
}, w = !!e.column.columnDef?.meta?.sortable, v = typeof e.column.columnDef.header == "string" ? e.column.columnDef.header : "", k = i === v || i === "serverCreatedAt" && v === "id";
|
|
887
889
|
return /* @__PURE__ */ h(
|
|
888
890
|
"div",
|
|
889
891
|
{
|
|
@@ -916,7 +918,7 @@ const Hn = ({
|
|
|
916
918
|
{
|
|
917
919
|
className: "relative z-50 flex items-center gap-1 py-2 pr-5",
|
|
918
920
|
onClick: () => {
|
|
919
|
-
|
|
921
|
+
l && l(v === "id" ? "serverCreatedAt" : v, i, g);
|
|
920
922
|
},
|
|
921
923
|
children: [
|
|
922
924
|
/* @__PURE__ */ r("span", { className: O(k && "underline"), children: e.isPlaceholder ? null : ot(
|
|
@@ -931,7 +933,7 @@ const Hn = ({
|
|
|
931
933
|
opacity: k ? 1 : void 0,
|
|
932
934
|
fontWeight: k ? "bold" : "normal"
|
|
933
935
|
},
|
|
934
|
-
children: k ? g ? /* @__PURE__ */ r(
|
|
936
|
+
children: k ? g ? /* @__PURE__ */ r(ba, { strokeWidth: 3, width: 10 }) : /* @__PURE__ */ r(wa, { strokeWidth: 3, width: 10 }) : /* @__PURE__ */ r(va, { strokeWidth: 3, width: 10 })
|
|
935
937
|
}
|
|
936
938
|
)
|
|
937
939
|
]
|
|
@@ -965,11 +967,11 @@ const Hn = ({
|
|
|
965
967
|
},
|
|
966
968
|
e.id
|
|
967
969
|
);
|
|
968
|
-
},
|
|
969
|
-
const t = e.column.getIsResizing(), { history: a } = dt(), n = e.column.columnDef.meta, { isDragging: o, setNodeRef:
|
|
970
|
+
}, Yn = ({ cell: e }) => {
|
|
971
|
+
const t = e.column.getIsResizing(), { history: a } = dt(), n = e.column.columnDef.meta, { isDragging: o, setNodeRef: l, transform: i } = Sr({
|
|
970
972
|
id: e.column.id,
|
|
971
973
|
disabled: e.column.id === "select-col"
|
|
972
|
-
}), [g, c] = C(!1), { ref: p, isOverflow: f, setIsOverflow: d } =
|
|
974
|
+
}), [g, c] = C(!1), { ref: p, isOverflow: f, setIsOverflow: d } = Wn(), u = (f || Ne(e.getValue())) && !n?.isLink;
|
|
973
975
|
H(() => {
|
|
974
976
|
const w = new ResizeObserver(() => {
|
|
975
977
|
const v = p.current.scrollWidth > p.current.clientWidth || p.current.scrollHeight > p.current.clientHeight;
|
|
@@ -982,7 +984,7 @@ const Hn = ({
|
|
|
982
984
|
const s = {
|
|
983
985
|
opacity: o ? 0.8 : 1,
|
|
984
986
|
position: "relative",
|
|
985
|
-
transform: e.column.id === "select-col" ? void 0 : Nr.Translate.toString(
|
|
987
|
+
transform: e.column.id === "select-col" ? void 0 : Nr.Translate.toString(i),
|
|
986
988
|
// translate instead of transform to avoid squishing
|
|
987
989
|
transition: "width transform 0.2s ease-in-out",
|
|
988
990
|
width: e.column.getSize(),
|
|
@@ -994,7 +996,7 @@ const Hn = ({
|
|
|
994
996
|
"div",
|
|
995
997
|
{
|
|
996
998
|
ref: (w) => {
|
|
997
|
-
|
|
999
|
+
l(w), p.current = w;
|
|
998
1000
|
},
|
|
999
1001
|
style: {
|
|
1000
1002
|
...s,
|
|
@@ -1032,7 +1034,7 @@ const Hn = ({
|
|
|
1032
1034
|
{
|
|
1033
1035
|
className: O(Ne(b) && "p-0"),
|
|
1034
1036
|
side: "bottom",
|
|
1035
|
-
children: typeof b == "string" ? ot(e.column.columnDef.cell, e.getContext()) : /* @__PURE__ */ r(
|
|
1037
|
+
children: typeof b == "string" ? ot(e.column.columnDef.cell, e.getContext()) : /* @__PURE__ */ r(Kn, { pretty: !0, data: b })
|
|
1036
1038
|
}
|
|
1037
1039
|
)
|
|
1038
1040
|
] });
|
|
@@ -1040,7 +1042,7 @@ const Hn = ({
|
|
|
1040
1042
|
function Ar(e, t) {
|
|
1041
1043
|
return Ne(e) ? JSON.stringify(e, null, t ? 2 : void 0) : String(e);
|
|
1042
1044
|
}
|
|
1043
|
-
function
|
|
1045
|
+
function Kn({ data: e, pretty: t }) {
|
|
1044
1046
|
const a = Ar(e, t), n = de();
|
|
1045
1047
|
return t && Ne(e) ? /* @__PURE__ */ r(
|
|
1046
1048
|
Dt,
|
|
@@ -1051,7 +1053,7 @@ function Vn({ data: e, pretty: t }) {
|
|
|
1051
1053
|
}
|
|
1052
1054
|
) : /* @__PURE__ */ r(M, { children: a });
|
|
1053
1055
|
}
|
|
1054
|
-
const
|
|
1056
|
+
const Xn = ({
|
|
1055
1057
|
visiblity: e,
|
|
1056
1058
|
localDates: t,
|
|
1057
1059
|
setLocalDates: a
|
|
@@ -1061,7 +1063,7 @@ const Yn = ({
|
|
|
1061
1063
|
/* @__PURE__ */ r(
|
|
1062
1064
|
gt,
|
|
1063
1065
|
{
|
|
1064
|
-
icon: /* @__PURE__ */ r(
|
|
1066
|
+
icon: /* @__PURE__ */ r(ya, { width: 16 }),
|
|
1065
1067
|
label: "View Settings",
|
|
1066
1068
|
onClick: () => o(!0)
|
|
1067
1069
|
}
|
|
@@ -1069,6 +1071,7 @@ const Yn = ({
|
|
|
1069
1071
|
/* @__PURE__ */ h(
|
|
1070
1072
|
fe,
|
|
1071
1073
|
{
|
|
1074
|
+
title: "Explorer View Settings",
|
|
1072
1075
|
hideCloseButton: !0,
|
|
1073
1076
|
onClose: () => o(!1),
|
|
1074
1077
|
open: n,
|
|
@@ -1079,17 +1082,17 @@ const Yn = ({
|
|
|
1079
1082
|
] }),
|
|
1080
1083
|
/* @__PURE__ */ h("div", { className: "py-2", children: [
|
|
1081
1084
|
/* @__PURE__ */ r("div", { children: "Visible Columns" }),
|
|
1082
|
-
/* @__PURE__ */ r("div", { className: "py-1", children: e.attrs?.map((
|
|
1085
|
+
/* @__PURE__ */ r("div", { className: "py-1", children: e.attrs?.map((l) => /* @__PURE__ */ r("div", { className: "flex gap-2", children: /* @__PURE__ */ r(
|
|
1083
1086
|
ee,
|
|
1084
1087
|
{
|
|
1085
|
-
label:
|
|
1086
|
-
checked: e.visibility[
|
|
1087
|
-
onChange: (
|
|
1088
|
+
label: l.name,
|
|
1089
|
+
checked: e.visibility[l.id + l.name] !== !1,
|
|
1090
|
+
onChange: (i) => e.setVisibility((g) => ({
|
|
1088
1091
|
...g,
|
|
1089
|
-
[
|
|
1092
|
+
[l.id + l.name]: i
|
|
1090
1093
|
}))
|
|
1091
1094
|
}
|
|
1092
|
-
) },
|
|
1095
|
+
) }, l.id + l.name)) })
|
|
1093
1096
|
] }),
|
|
1094
1097
|
/* @__PURE__ */ r(ht, { className: "py-2" }),
|
|
1095
1098
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
|
|
@@ -1097,7 +1100,7 @@ const Yn = ({
|
|
|
1097
1100
|
/* @__PURE__ */ r(
|
|
1098
1101
|
Yr,
|
|
1099
1102
|
{
|
|
1100
|
-
onClick: (
|
|
1103
|
+
onClick: (l) => {
|
|
1101
1104
|
a(!t);
|
|
1102
1105
|
},
|
|
1103
1106
|
checked: t
|
|
@@ -1110,17 +1113,17 @@ const Yn = ({
|
|
|
1110
1113
|
)
|
|
1111
1114
|
] });
|
|
1112
1115
|
};
|
|
1113
|
-
async function
|
|
1116
|
+
async function Zn({
|
|
1114
1117
|
appId: e,
|
|
1115
1118
|
attrId: t,
|
|
1116
1119
|
jobType: a,
|
|
1117
1120
|
checkedDataType: n,
|
|
1118
1121
|
apiURI: o
|
|
1119
|
-
},
|
|
1122
|
+
}, l) {
|
|
1120
1123
|
return (await (await fetch(`${o}/dash/apps/${e}/indexing-jobs`, {
|
|
1121
1124
|
method: "POST",
|
|
1122
1125
|
headers: {
|
|
1123
|
-
authorization: `Bearer ${
|
|
1126
|
+
authorization: `Bearer ${l}`,
|
|
1124
1127
|
"content-type": "application/json"
|
|
1125
1128
|
},
|
|
1126
1129
|
body: JSON.stringify({
|
|
@@ -1132,14 +1135,14 @@ async function Kn({
|
|
|
1132
1135
|
})).json()).job;
|
|
1133
1136
|
}
|
|
1134
1137
|
function Rr(e, t, a, n) {
|
|
1135
|
-
let o = !1,
|
|
1138
|
+
let o = !1, l = !1, i = 20, g = null;
|
|
1136
1139
|
const c = (f) => {
|
|
1137
1140
|
if (f !== g)
|
|
1138
|
-
return
|
|
1139
|
-
const d =
|
|
1140
|
-
return
|
|
1141
|
+
return i = 20, g = f, i;
|
|
1142
|
+
const d = i;
|
|
1143
|
+
return i = Math.min(1e4, i * 2), d;
|
|
1141
1144
|
}, p = async (f) => {
|
|
1142
|
-
for (; !o && !
|
|
1145
|
+
for (; !o && !l; )
|
|
1143
1146
|
try {
|
|
1144
1147
|
const u = await (await fetch(
|
|
1145
1148
|
`${n}/dash/apps/${e}/indexing-jobs/${t}`,
|
|
@@ -1149,7 +1152,7 @@ function Rr(e, t, a, n) {
|
|
|
1149
1152
|
return m;
|
|
1150
1153
|
await new Promise((b) => setTimeout(b, c(u)));
|
|
1151
1154
|
} catch (d) {
|
|
1152
|
-
console.error("Job polling error:", d),
|
|
1155
|
+
console.error("Job polling error:", d), l = !0, f(null, d);
|
|
1153
1156
|
}
|
|
1154
1157
|
};
|
|
1155
1158
|
return {
|
|
@@ -1165,14 +1168,14 @@ function me(e) {
|
|
|
1165
1168
|
function be(e) {
|
|
1166
1169
|
return e.job_status === "completed" || e.job_status === "errored";
|
|
1167
1170
|
}
|
|
1168
|
-
const
|
|
1171
|
+
const Qn = ({
|
|
1169
1172
|
attr: e,
|
|
1170
1173
|
appId: t,
|
|
1171
1174
|
isRequired: a,
|
|
1172
1175
|
isIndexed: n,
|
|
1173
1176
|
isUnique: o,
|
|
1174
|
-
checkedDataType:
|
|
1175
|
-
token:
|
|
1177
|
+
checkedDataType: l,
|
|
1178
|
+
token: i
|
|
1176
1179
|
}) => {
|
|
1177
1180
|
const [g, c] = C({}), [p, f] = C({}), [d, u] = C({}), s = de();
|
|
1178
1181
|
H(() => {
|
|
@@ -1187,14 +1190,14 @@ const Xn = ({
|
|
|
1187
1190
|
})), o === e.isUniq ? c((x) => ({ ...x, unique: void 0 })) : o ? c((x) => ({ ...x, unique: { jobType: "unique" } })) : o || c((x) => ({
|
|
1188
1191
|
...x,
|
|
1189
1192
|
unique: { jobType: "remove-unique" }
|
|
1190
|
-
})),
|
|
1193
|
+
})), l === (e.checkedDataType || "any") ? c((x) => ({ ...x, type: void 0 })) : c(l === "any" ? (x) => ({
|
|
1191
1194
|
...x,
|
|
1192
1195
|
type: { jobType: "remove-data-type" }
|
|
1193
1196
|
}) : (x) => ({
|
|
1194
1197
|
...x,
|
|
1195
|
-
type: { jobType: "check-data-type", checkedDataType:
|
|
1198
|
+
type: { jobType: "check-data-type", checkedDataType: l }
|
|
1196
1199
|
})));
|
|
1197
|
-
}, [a, n, o,
|
|
1200
|
+
}, [a, n, o, l, e, p]);
|
|
1198
1201
|
const [m, b] = C(!1), w = async () => {
|
|
1199
1202
|
m || (f({}), b(!0), Object.entries(g).forEach(async ([k, x]) => {
|
|
1200
1203
|
if (!x) return;
|
|
@@ -1203,7 +1206,7 @@ const Xn = ({
|
|
|
1203
1206
|
{
|
|
1204
1207
|
method: "POST",
|
|
1205
1208
|
headers: {
|
|
1206
|
-
authorization: `Bearer ${
|
|
1209
|
+
authorization: `Bearer ${i}`,
|
|
1207
1210
|
"content-type": "application/json"
|
|
1208
1211
|
},
|
|
1209
1212
|
body: JSON.stringify({
|
|
@@ -1218,7 +1221,7 @@ const Xn = ({
|
|
|
1218
1221
|
const B = Rr(
|
|
1219
1222
|
t,
|
|
1220
1223
|
P.job.id,
|
|
1221
|
-
|
|
1224
|
+
i,
|
|
1222
1225
|
s.apiURI
|
|
1223
1226
|
);
|
|
1224
1227
|
await B.start((L, q) => {
|
|
@@ -1244,64 +1247,64 @@ const Xn = ({
|
|
|
1244
1247
|
running: p,
|
|
1245
1248
|
apply: w
|
|
1246
1249
|
};
|
|
1247
|
-
},
|
|
1250
|
+
}, Jn = () => {
|
|
1248
1251
|
const [e, t] = C({});
|
|
1249
1252
|
return {
|
|
1250
1253
|
notes: e,
|
|
1251
|
-
setNote: (o,
|
|
1252
|
-
t((
|
|
1254
|
+
setNote: (o, l) => {
|
|
1255
|
+
t((i) => ({ ...i, [o]: { message: l } }));
|
|
1253
1256
|
},
|
|
1254
1257
|
removeNote: (o) => {
|
|
1255
|
-
t((
|
|
1256
|
-
const
|
|
1257
|
-
return delete
|
|
1258
|
+
t((l) => {
|
|
1259
|
+
const i = { ...l };
|
|
1260
|
+
return delete i[o], i;
|
|
1258
1261
|
});
|
|
1259
1262
|
}
|
|
1260
1263
|
};
|
|
1261
|
-
},
|
|
1264
|
+
}, eo = (e, t, a) => {
|
|
1262
1265
|
const n = t.name, o = [];
|
|
1263
|
-
return t.attrs.forEach((
|
|
1266
|
+
return t.attrs.forEach((l) => {
|
|
1264
1267
|
o.push([
|
|
1265
1268
|
"update-attr",
|
|
1266
1269
|
{
|
|
1267
|
-
id:
|
|
1270
|
+
id: l.id,
|
|
1268
1271
|
"forward-identity": [
|
|
1269
|
-
|
|
1272
|
+
l.linkConfig.forward.id,
|
|
1270
1273
|
e,
|
|
1271
|
-
|
|
1274
|
+
l.linkConfig.forward.attr
|
|
1272
1275
|
]
|
|
1273
1276
|
}
|
|
1274
1277
|
]);
|
|
1275
|
-
}), a.forEach((
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
+
}), a.forEach((l) => {
|
|
1279
|
+
l.attrs.forEach((i) => {
|
|
1280
|
+
i.linkConfig.reverse?.namespace === n && o.push([
|
|
1278
1281
|
"update-attr",
|
|
1279
1282
|
{
|
|
1280
|
-
id:
|
|
1283
|
+
id: i.id,
|
|
1281
1284
|
"reverse-identity": [
|
|
1282
|
-
|
|
1285
|
+
i.linkConfig.reverse.id,
|
|
1283
1286
|
e,
|
|
1284
|
-
|
|
1287
|
+
i.linkConfig.reverse.attr
|
|
1285
1288
|
]
|
|
1286
1289
|
}
|
|
1287
1290
|
]);
|
|
1288
1291
|
});
|
|
1289
1292
|
}), o;
|
|
1290
1293
|
};
|
|
1291
|
-
function
|
|
1294
|
+
function to({
|
|
1292
1295
|
db: e,
|
|
1293
1296
|
namespace: t,
|
|
1294
1297
|
namespaces: a,
|
|
1295
1298
|
onClose: n,
|
|
1296
1299
|
isSystemCatalogNs: o
|
|
1297
1300
|
}) {
|
|
1298
|
-
const
|
|
1301
|
+
const i = de().appId, { history: g } = dt(), { mutate: c } = yr(), [p, f] = C({ type: "main" }), [d, u] = C(t.name), [s, m] = C(
|
|
1299
1302
|
null
|
|
1300
1303
|
);
|
|
1301
1304
|
async function b() {
|
|
1302
1305
|
const x = t.attrs.map((_) => ["delete-attr", _.id]);
|
|
1303
1306
|
await e.core._reactor.pushOps(x), setTimeout(() => {
|
|
1304
|
-
c(["recently-deleted",
|
|
1307
|
+
c(["recently-deleted", i]);
|
|
1305
1308
|
}, 500), n({ ok: !0 });
|
|
1306
1309
|
}
|
|
1307
1310
|
async function w(x) {
|
|
@@ -1309,7 +1312,7 @@ function Jn({
|
|
|
1309
1312
|
m("Namespace name cannot start with $");
|
|
1310
1313
|
return;
|
|
1311
1314
|
}
|
|
1312
|
-
const _ =
|
|
1315
|
+
const _ = eo(x, t, a);
|
|
1313
1316
|
await e.core._reactor.pushOps(_), g.push(
|
|
1314
1317
|
{
|
|
1315
1318
|
namespace: x
|
|
@@ -1317,7 +1320,7 @@ function Jn({
|
|
|
1317
1320
|
!0
|
|
1318
1321
|
), oe("Renamed namespace to " + x), u(""), f({ type: "main" });
|
|
1319
1322
|
}
|
|
1320
|
-
const v =
|
|
1323
|
+
const v = Jn(), k = se(() => p.type === "edit" && t.attrs.find(
|
|
1321
1324
|
(x) => x.id === p.attrId && x.isForward === p.isForward
|
|
1322
1325
|
), [
|
|
1323
1326
|
p.type === "edit" ? p.attrId : null,
|
|
@@ -1391,7 +1394,7 @@ function Jn({
|
|
|
1391
1394
|
onClick: () => {
|
|
1392
1395
|
f({ type: "rename" });
|
|
1393
1396
|
},
|
|
1394
|
-
icon: /* @__PURE__ */ r(
|
|
1397
|
+
icon: /* @__PURE__ */ r(Ga, { className: "h-4 w-4 opacity-50" }),
|
|
1395
1398
|
label: "Rename"
|
|
1396
1399
|
}
|
|
1397
1400
|
),
|
|
@@ -1453,16 +1456,16 @@ function Jn({
|
|
|
1453
1456
|
}
|
|
1454
1457
|
) }),
|
|
1455
1458
|
/* @__PURE__ */ r(
|
|
1456
|
-
|
|
1459
|
+
In,
|
|
1457
1460
|
{
|
|
1458
1461
|
notes: v,
|
|
1459
1462
|
db: e,
|
|
1460
|
-
appId:
|
|
1463
|
+
appId: i,
|
|
1461
1464
|
namespace: t
|
|
1462
1465
|
}
|
|
1463
1466
|
)
|
|
1464
1467
|
] }) : p.type === "add" ? /* @__PURE__ */ r(
|
|
1465
|
-
|
|
1468
|
+
ro,
|
|
1466
1469
|
{
|
|
1467
1470
|
db: e,
|
|
1468
1471
|
namespace: t,
|
|
@@ -1482,7 +1485,7 @@ function Jn({
|
|
|
1482
1485
|
onConfirm: b
|
|
1483
1486
|
}
|
|
1484
1487
|
) : p.type === "edit" && k ? /* @__PURE__ */ r(
|
|
1485
|
-
|
|
1488
|
+
po,
|
|
1486
1489
|
{
|
|
1487
1490
|
db: e,
|
|
1488
1491
|
attr: k,
|
|
@@ -1536,14 +1539,14 @@ function Tr({
|
|
|
1536
1539
|
] })
|
|
1537
1540
|
] });
|
|
1538
1541
|
}
|
|
1539
|
-
function
|
|
1542
|
+
function ro({
|
|
1540
1543
|
db: e,
|
|
1541
1544
|
namespace: t,
|
|
1542
1545
|
namespaces: a,
|
|
1543
1546
|
onClose: n,
|
|
1544
1547
|
constraints: o
|
|
1545
1548
|
}) {
|
|
1546
|
-
const [
|
|
1549
|
+
const [l, i] = C(!1), [g, c] = C(!1), [p, f] = C(!1), [d, u] = C(!1), [s, m] = C(!1), [b, w] = C(null), [v, k] = C("blob"), [x, _] = C("many-many"), [P, B] = C(() => a.find((A) => A.name !== t.name) ?? a[0]), [L, q] = C(""), [G, Y] = C(t.name), z = x === "one-one" || x === "one-many", j = x === "one-one" || x === "many-one", S = _r({
|
|
1547
1550
|
attrName: L,
|
|
1548
1551
|
reverseAttrName: G,
|
|
1549
1552
|
namespaceName: t.name,
|
|
@@ -1563,7 +1566,7 @@ function eo({
|
|
|
1563
1566
|
cardinality: "one",
|
|
1564
1567
|
"unique?": p,
|
|
1565
1568
|
"index?": g,
|
|
1566
|
-
"required?":
|
|
1569
|
+
"required?": l,
|
|
1567
1570
|
"checked-data-type": b ?? void 0
|
|
1568
1571
|
}]];
|
|
1569
1572
|
await e._core._reactor.pushOps(D), n();
|
|
@@ -1576,7 +1579,7 @@ function eo({
|
|
|
1576
1579
|
"reverse-identity": [je(), P.name, G],
|
|
1577
1580
|
"value-type": "ref",
|
|
1578
1581
|
"index?": !1,
|
|
1579
|
-
"required?":
|
|
1582
|
+
"required?": l,
|
|
1580
1583
|
"on-delete": z && d ? "cascade" : void 0,
|
|
1581
1584
|
"on-delete-reverse": j && s ? "cascade" : void 0
|
|
1582
1585
|
}]];
|
|
@@ -1614,8 +1617,8 @@ function eo({
|
|
|
1614
1617
|
ee,
|
|
1615
1618
|
{
|
|
1616
1619
|
disabled: o.require.disabled,
|
|
1617
|
-
checked:
|
|
1618
|
-
onChange: (A) =>
|
|
1620
|
+
checked: l,
|
|
1621
|
+
onChange: (A) => i(A),
|
|
1619
1622
|
label: /* @__PURE__ */ h("span", { children: [
|
|
1620
1623
|
/* @__PURE__ */ r("strong", { children: "Require this attribute" }),
|
|
1621
1624
|
" so all entities will be guaranteed to have it"
|
|
@@ -1719,8 +1722,8 @@ function eo({
|
|
|
1719
1722
|
isCascadeReverseAllowed: j,
|
|
1720
1723
|
isCascadeReverse: s,
|
|
1721
1724
|
setIsCascadeReverse: m,
|
|
1722
|
-
isRequired:
|
|
1723
|
-
setIsRequired:
|
|
1725
|
+
isRequired: l,
|
|
1726
|
+
setIsRequired: i,
|
|
1724
1727
|
constraints: o
|
|
1725
1728
|
}
|
|
1726
1729
|
)
|
|
@@ -1907,8 +1910,8 @@ function Or({
|
|
|
1907
1910
|
namespaceName: a,
|
|
1908
1911
|
reverseNamespaceName: n,
|
|
1909
1912
|
relationship: o,
|
|
1910
|
-
setAttrName:
|
|
1911
|
-
setReverseAttrName:
|
|
1913
|
+
setAttrName: l,
|
|
1914
|
+
setReverseAttrName: i,
|
|
1912
1915
|
setRelationship: g,
|
|
1913
1916
|
isCascade: c,
|
|
1914
1917
|
setIsCascade: p,
|
|
@@ -1931,7 +1934,7 @@ function Or({
|
|
|
1931
1934
|
disabled: w.attr.disabled,
|
|
1932
1935
|
title: w.attr.message,
|
|
1933
1936
|
value: e,
|
|
1934
|
-
onChange: (k) =>
|
|
1937
|
+
onChange: (k) => l(k)
|
|
1935
1938
|
}
|
|
1936
1939
|
),
|
|
1937
1940
|
/* @__PURE__ */ r("div", { className: "rounded-xs py-0.5 text-xs text-gray-500 dark:text-neutral-400", children: v ? /* @__PURE__ */ h(M, { children: [
|
|
@@ -1953,7 +1956,7 @@ function Or({
|
|
|
1953
1956
|
disabled: w.attr.disabled,
|
|
1954
1957
|
title: w.attr.message,
|
|
1955
1958
|
value: t,
|
|
1956
|
-
onChange: (k) =>
|
|
1959
|
+
onChange: (k) => i(k)
|
|
1957
1960
|
}
|
|
1958
1961
|
),
|
|
1959
1962
|
/* @__PURE__ */ r("div", { className: "rounded-xs py-0.5 text-xs text-gray-500 dark:text-neutral-400", children: v ? /* @__PURE__ */ h(M, { children: [
|
|
@@ -1971,7 +1974,7 @@ function Or({
|
|
|
1971
1974
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-1", children: [
|
|
1972
1975
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Relationship" }),
|
|
1973
1976
|
/* @__PURE__ */ r(
|
|
1974
|
-
|
|
1977
|
+
ao,
|
|
1975
1978
|
{
|
|
1976
1979
|
disabled: !v || w.attr.disabled,
|
|
1977
1980
|
value: o,
|
|
@@ -1989,7 +1992,7 @@ function Or({
|
|
|
1989
1992
|
"div",
|
|
1990
1993
|
{
|
|
1991
1994
|
className: "text-xs wrap-break-word text-gray-500 dark:text-neutral-400",
|
|
1992
|
-
children: v ?
|
|
1995
|
+
children: v ? no[o](
|
|
1993
1996
|
a,
|
|
1994
1997
|
n,
|
|
1995
1998
|
e,
|
|
@@ -2060,14 +2063,14 @@ function Or({
|
|
|
2060
2063
|
] })
|
|
2061
2064
|
] });
|
|
2062
2065
|
}
|
|
2063
|
-
function
|
|
2066
|
+
function ao({
|
|
2064
2067
|
value: e,
|
|
2065
2068
|
disabled: t,
|
|
2066
2069
|
onChange: a,
|
|
2067
2070
|
namespace: n,
|
|
2068
2071
|
attr: o,
|
|
2069
|
-
reverseNamespace:
|
|
2070
|
-
reverseAttr:
|
|
2072
|
+
reverseNamespace: l,
|
|
2073
|
+
reverseAttr: i,
|
|
2071
2074
|
title: g
|
|
2072
2075
|
}) {
|
|
2073
2076
|
return /* @__PURE__ */ r(
|
|
@@ -2088,11 +2091,11 @@ function to({
|
|
|
2088
2091
|
value: "one-one"
|
|
2089
2092
|
},
|
|
2090
2093
|
{
|
|
2091
|
-
label: `${n} has-many ${o || "---"} / ${
|
|
2094
|
+
label: `${n} has-many ${o || "---"} / ${l} has-one ${i || "---"}`,
|
|
2092
2095
|
value: "many-one"
|
|
2093
2096
|
},
|
|
2094
2097
|
{
|
|
2095
|
-
label: `${n} has-one ${o || "---"} / ${
|
|
2098
|
+
label: `${n} has-one ${o || "---"} / ${l} has-many ${i || "---"}`,
|
|
2096
2099
|
value: "one-many"
|
|
2097
2100
|
}
|
|
2098
2101
|
],
|
|
@@ -2100,7 +2103,7 @@ function to({
|
|
|
2100
2103
|
}
|
|
2101
2104
|
);
|
|
2102
2105
|
}
|
|
2103
|
-
const
|
|
2106
|
+
const no = {
|
|
2104
2107
|
"many-many": (e, t, a, n) => /* @__PURE__ */ h(M, { children: [
|
|
2105
2108
|
/* @__PURE__ */ r("strong", { children: e }),
|
|
2106
2109
|
" can have many ",
|
|
@@ -2144,32 +2147,32 @@ const ro = {
|
|
|
2144
2147
|
/* @__PURE__ */ r("strong", { children: n })
|
|
2145
2148
|
] })
|
|
2146
2149
|
};
|
|
2147
|
-
async function
|
|
2150
|
+
async function oo({
|
|
2148
2151
|
appId: e,
|
|
2149
2152
|
attr: t,
|
|
2150
2153
|
isRequired: a,
|
|
2151
2154
|
authToken: n,
|
|
2152
2155
|
setIndexingJob: o,
|
|
2153
|
-
stopFetchLoop:
|
|
2154
|
-
apiURI:
|
|
2156
|
+
stopFetchLoop: l,
|
|
2157
|
+
apiURI: i
|
|
2155
2158
|
}) {
|
|
2156
2159
|
if (!n || a === t.isRequired)
|
|
2157
2160
|
return;
|
|
2158
|
-
|
|
2161
|
+
l.current?.();
|
|
2159
2162
|
const g = `${t.namespace}.${t.name}`;
|
|
2160
2163
|
try {
|
|
2161
|
-
const c = await
|
|
2164
|
+
const c = await Zn(
|
|
2162
2165
|
{
|
|
2163
2166
|
appId: e,
|
|
2164
2167
|
attrId: t.id,
|
|
2165
2168
|
jobType: a ? "required" : "remove-required",
|
|
2166
|
-
apiURI:
|
|
2169
|
+
apiURI: i
|
|
2167
2170
|
},
|
|
2168
2171
|
n
|
|
2169
2172
|
);
|
|
2170
2173
|
o(c);
|
|
2171
|
-
const p = Rr(e, c.id, n,
|
|
2172
|
-
|
|
2174
|
+
const p = Rr(e, c.id, n, i);
|
|
2175
|
+
l.current = p.stop;
|
|
2173
2176
|
const f = await p.start((d, u) => {
|
|
2174
2177
|
u && ie(`Error while marking ${g} as required.`), d && o(d);
|
|
2175
2178
|
});
|
|
@@ -2187,18 +2190,18 @@ async function ao({
|
|
|
2187
2190
|
return console.error(c), ie(`Unexpected error while updating ${g}`), "errored";
|
|
2188
2191
|
}
|
|
2189
2192
|
}
|
|
2190
|
-
const
|
|
2193
|
+
const io = ({
|
|
2191
2194
|
pendingJob: e,
|
|
2192
2195
|
runningJob: t,
|
|
2193
2196
|
value: a,
|
|
2194
2197
|
setValue: n,
|
|
2195
2198
|
disabled: o,
|
|
2196
|
-
disabledReason:
|
|
2197
|
-
attr:
|
|
2199
|
+
disabledReason: l,
|
|
2200
|
+
attr: i
|
|
2198
2201
|
}) => {
|
|
2199
2202
|
const g = !t || be(t), c = We();
|
|
2200
2203
|
return H(() => {
|
|
2201
|
-
t && me(t) && n(
|
|
2204
|
+
t && me(t) && n(i.checkedDataType || "any");
|
|
2202
2205
|
}, [t]), /* @__PURE__ */ h(M, { children: [
|
|
2203
2206
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ h("h6", { className: "text-md font-bold", children: [
|
|
2204
2207
|
"Enforce type",
|
|
@@ -2213,7 +2216,7 @@ const no = ({
|
|
|
2213
2216
|
e && "border-[#606AF4] ring-1 ring-[#606AF4] ring-inset focus:ring-[#606AF4]"
|
|
2214
2217
|
),
|
|
2215
2218
|
disabled: o || t && !be(t),
|
|
2216
|
-
title: o ?
|
|
2219
|
+
title: o ? l : void 0,
|
|
2217
2220
|
value: a,
|
|
2218
2221
|
onChange: (p) => {
|
|
2219
2222
|
p && n(p.value);
|
|
@@ -2246,7 +2249,7 @@ const no = ({
|
|
|
2246
2249
|
Ve,
|
|
2247
2250
|
{
|
|
2248
2251
|
onClick: () => {
|
|
2249
|
-
n(
|
|
2252
|
+
n(i.checkedDataType || "any");
|
|
2250
2253
|
},
|
|
2251
2254
|
height: "1.2rem",
|
|
2252
2255
|
className: "cursor-pointer pr-2 text-[#606AF4]"
|
|
@@ -2257,30 +2260,30 @@ const no = ({
|
|
|
2257
2260
|
Ye,
|
|
2258
2261
|
{
|
|
2259
2262
|
indexingJob: t,
|
|
2260
|
-
attr:
|
|
2263
|
+
attr: i,
|
|
2261
2264
|
onClose: c
|
|
2262
2265
|
}
|
|
2263
2266
|
)
|
|
2264
2267
|
] });
|
|
2265
|
-
},
|
|
2268
|
+
}, lo = ({
|
|
2266
2269
|
pendingJob: e,
|
|
2267
2270
|
runningJob: t,
|
|
2268
2271
|
value: a,
|
|
2269
2272
|
setValue: n,
|
|
2270
2273
|
disabled: o,
|
|
2271
|
-
disabledReason:
|
|
2272
|
-
attr:
|
|
2274
|
+
disabledReason: l,
|
|
2275
|
+
attr: i
|
|
2273
2276
|
}) => {
|
|
2274
2277
|
const g = We();
|
|
2275
2278
|
return H(() => {
|
|
2276
|
-
t && me(t) && n(
|
|
2279
|
+
t && me(t) && n(i.isRequired || !1);
|
|
2277
2280
|
}, [t]), /* @__PURE__ */ h(M, { children: [
|
|
2278
2281
|
/* @__PURE__ */ h("div", { className: "flex justify-between", children: [
|
|
2279
2282
|
/* @__PURE__ */ r(
|
|
2280
2283
|
ee,
|
|
2281
2284
|
{
|
|
2282
2285
|
disabled: o || t && !be(t),
|
|
2283
|
-
title: o ?
|
|
2286
|
+
title: o ? l : void 0,
|
|
2284
2287
|
checked: a,
|
|
2285
2288
|
onChange: (c) => n(c),
|
|
2286
2289
|
label: /* @__PURE__ */ h(
|
|
@@ -2313,30 +2316,30 @@ const no = ({
|
|
|
2313
2316
|
Ye,
|
|
2314
2317
|
{
|
|
2315
2318
|
indexingJob: t,
|
|
2316
|
-
attr:
|
|
2319
|
+
attr: i,
|
|
2317
2320
|
onClose: g
|
|
2318
2321
|
}
|
|
2319
2322
|
)
|
|
2320
2323
|
] });
|
|
2321
|
-
},
|
|
2324
|
+
}, so = ({
|
|
2322
2325
|
pendingJob: e,
|
|
2323
2326
|
runningJob: t,
|
|
2324
2327
|
value: a,
|
|
2325
2328
|
setValue: n,
|
|
2326
2329
|
disabled: o,
|
|
2327
|
-
disabledReason:
|
|
2328
|
-
attr:
|
|
2330
|
+
disabledReason: l,
|
|
2331
|
+
attr: i
|
|
2329
2332
|
}) => {
|
|
2330
2333
|
const g = We();
|
|
2331
2334
|
return H(() => {
|
|
2332
|
-
t && me(t) && n(
|
|
2335
|
+
t && me(t) && n(i.isIndex);
|
|
2333
2336
|
}, [t]), /* @__PURE__ */ h(M, { children: [
|
|
2334
2337
|
/* @__PURE__ */ h("div", { className: "flex justify-between", children: [
|
|
2335
2338
|
/* @__PURE__ */ r(
|
|
2336
2339
|
ee,
|
|
2337
2340
|
{
|
|
2338
2341
|
disabled: o || t && !be(t),
|
|
2339
|
-
title: o ?
|
|
2342
|
+
title: o ? l : void 0,
|
|
2340
2343
|
checked: a,
|
|
2341
2344
|
onChange: (c) => n(c),
|
|
2342
2345
|
label: /* @__PURE__ */ h(
|
|
@@ -2369,30 +2372,30 @@ const no = ({
|
|
|
2369
2372
|
Ye,
|
|
2370
2373
|
{
|
|
2371
2374
|
indexingJob: t,
|
|
2372
|
-
attr:
|
|
2375
|
+
attr: i,
|
|
2373
2376
|
onClose: g
|
|
2374
2377
|
}
|
|
2375
2378
|
)
|
|
2376
2379
|
] });
|
|
2377
|
-
},
|
|
2380
|
+
}, co = ({
|
|
2378
2381
|
pendingJob: e,
|
|
2379
2382
|
runningJob: t,
|
|
2380
2383
|
value: a,
|
|
2381
2384
|
setValue: n,
|
|
2382
2385
|
disabled: o,
|
|
2383
|
-
disabledReason:
|
|
2384
|
-
attr:
|
|
2386
|
+
disabledReason: l,
|
|
2387
|
+
attr: i
|
|
2385
2388
|
}) => {
|
|
2386
2389
|
const g = We();
|
|
2387
2390
|
return H(() => {
|
|
2388
|
-
t && me(t) && n(
|
|
2391
|
+
t && me(t) && n(i.isUniq);
|
|
2389
2392
|
}, [t]), /* @__PURE__ */ h(M, { children: [
|
|
2390
2393
|
/* @__PURE__ */ h("div", { className: "flex justify-between", children: [
|
|
2391
2394
|
/* @__PURE__ */ r(
|
|
2392
2395
|
ee,
|
|
2393
2396
|
{
|
|
2394
2397
|
disabled: o || t && !be(t),
|
|
2395
|
-
title: o ?
|
|
2398
|
+
title: o ? l : void 0,
|
|
2396
2399
|
checked: a,
|
|
2397
2400
|
onChange: (c) => n(c),
|
|
2398
2401
|
label: /* @__PURE__ */ h(
|
|
@@ -2425,31 +2428,31 @@ const no = ({
|
|
|
2425
2428
|
Ye,
|
|
2426
2429
|
{
|
|
2427
2430
|
indexingJob: t,
|
|
2428
|
-
attr:
|
|
2431
|
+
attr: i,
|
|
2429
2432
|
onClose: g
|
|
2430
2433
|
}
|
|
2431
2434
|
)
|
|
2432
2435
|
] });
|
|
2433
|
-
},
|
|
2436
|
+
}, uo = ({
|
|
2434
2437
|
appId: e,
|
|
2435
2438
|
attr: t,
|
|
2436
2439
|
constraints: a
|
|
2437
2440
|
}) => {
|
|
2438
2441
|
const [n, o] = C(
|
|
2439
2442
|
t.isRequired || !1
|
|
2440
|
-
), [
|
|
2443
|
+
), [l, i] = C(t.isIndex), [g, c] = C(t.isUniq), [p, f] = C(t.checkedDataType || "any"), d = de(), { isPending: u, pending: s, apply: m, isRunning: b, running: w, progress: v } = Qn({
|
|
2441
2444
|
attr: t,
|
|
2442
2445
|
appId: e,
|
|
2443
2446
|
token: d.adminToken,
|
|
2444
2447
|
isRequired: n,
|
|
2445
|
-
isIndexed:
|
|
2448
|
+
isIndexed: l,
|
|
2446
2449
|
isUnique: g,
|
|
2447
2450
|
checkedDataType: p
|
|
2448
2451
|
});
|
|
2449
2452
|
return /* @__PURE__ */ r("div", { children: /* @__PURE__ */ h("div", { className: "flex flex-col gap-2", children: [
|
|
2450
2453
|
/* @__PURE__ */ r("h6", { className: "text-md font-bold", children: "Constraints" }),
|
|
2451
2454
|
/* @__PURE__ */ r(
|
|
2452
|
-
|
|
2455
|
+
lo,
|
|
2453
2456
|
{
|
|
2454
2457
|
pendingJob: s.require,
|
|
2455
2458
|
runningJob: w.require,
|
|
@@ -2461,19 +2464,19 @@ const no = ({
|
|
|
2461
2464
|
}
|
|
2462
2465
|
),
|
|
2463
2466
|
/* @__PURE__ */ r(
|
|
2464
|
-
|
|
2467
|
+
so,
|
|
2465
2468
|
{
|
|
2466
2469
|
pendingJob: s.index,
|
|
2467
2470
|
runningJob: w.index,
|
|
2468
|
-
value:
|
|
2469
|
-
setValue:
|
|
2471
|
+
value: l,
|
|
2472
|
+
setValue: i,
|
|
2470
2473
|
disabled: a.attr.disabled,
|
|
2471
2474
|
disabledReason: a.attr.message,
|
|
2472
2475
|
attr: t
|
|
2473
2476
|
}
|
|
2474
2477
|
),
|
|
2475
2478
|
/* @__PURE__ */ r(
|
|
2476
|
-
|
|
2479
|
+
co,
|
|
2477
2480
|
{
|
|
2478
2481
|
pendingJob: s.unique,
|
|
2479
2482
|
runningJob: w.unique,
|
|
@@ -2485,7 +2488,7 @@ const no = ({
|
|
|
2485
2488
|
}
|
|
2486
2489
|
),
|
|
2487
2490
|
/* @__PURE__ */ r(
|
|
2488
|
-
|
|
2491
|
+
io,
|
|
2489
2492
|
{
|
|
2490
2493
|
pendingJob: s.type,
|
|
2491
2494
|
runningJob: w.type,
|
|
@@ -2510,13 +2513,13 @@ const no = ({
|
|
|
2510
2513
|
)
|
|
2511
2514
|
] }) });
|
|
2512
2515
|
};
|
|
2513
|
-
function
|
|
2516
|
+
function po({
|
|
2514
2517
|
db: e,
|
|
2515
2518
|
attr: t,
|
|
2516
2519
|
onClose: a,
|
|
2517
2520
|
constraints: n
|
|
2518
2521
|
}) {
|
|
2519
|
-
const
|
|
2522
|
+
const l = de().appId, { mutate: i } = yr(), [g, c] = C({
|
|
2520
2523
|
type: "main"
|
|
2521
2524
|
}), [p, f] = C(t.linkConfig.forward.attr), [d, u] = C(
|
|
2522
2525
|
t.linkConfig.reverse?.attr
|
|
@@ -2538,8 +2541,8 @@ function co({
|
|
|
2538
2541
|
async function I() {
|
|
2539
2542
|
if (!t.linkConfig.reverse)
|
|
2540
2543
|
throw new Error("No reverse link config");
|
|
2541
|
-
if (_ !== B && await
|
|
2542
|
-
appId:
|
|
2544
|
+
if (_ !== B && await oo({
|
|
2545
|
+
appId: l,
|
|
2543
2546
|
attr: t,
|
|
2544
2547
|
isRequired: _,
|
|
2545
2548
|
authToken: b.adminToken,
|
|
@@ -2589,7 +2592,7 @@ function co({
|
|
|
2589
2592
|
}
|
|
2590
2593
|
async function D() {
|
|
2591
2594
|
await e.core._reactor.pushOps([["delete-attr", t.id]]), setTimeout(() => {
|
|
2592
|
-
|
|
2595
|
+
i(["recently-deleted", l]);
|
|
2593
2596
|
}, 500), a();
|
|
2594
2597
|
}
|
|
2595
2598
|
return g.type === "delete" ? /* @__PURE__ */ r(
|
|
@@ -2628,9 +2631,9 @@ function co({
|
|
|
2628
2631
|
] }),
|
|
2629
2632
|
t.type === "blob" ? /* @__PURE__ */ h(M, { children: [
|
|
2630
2633
|
/* @__PURE__ */ r(
|
|
2631
|
-
|
|
2634
|
+
uo,
|
|
2632
2635
|
{
|
|
2633
|
-
appId:
|
|
2636
|
+
appId: l,
|
|
2634
2637
|
attr: t,
|
|
2635
2638
|
constraints: n
|
|
2636
2639
|
}
|
|
@@ -2723,12 +2726,12 @@ function _r({
|
|
|
2723
2726
|
attrName: a,
|
|
2724
2727
|
reverseAttrName: n
|
|
2725
2728
|
}) {
|
|
2726
|
-
const o = e && e === t,
|
|
2729
|
+
const o = e && e === t, l = a && t && e && n, i = a !== n;
|
|
2727
2730
|
return {
|
|
2728
2731
|
isSelfLink: o,
|
|
2729
|
-
isNonEmptyLink:
|
|
2730
|
-
isValidLink:
|
|
2731
|
-
shouldShowSelfLinkNameError:
|
|
2732
|
+
isNonEmptyLink: l,
|
|
2733
|
+
isValidLink: l && (o ? i : !0),
|
|
2734
|
+
shouldShowSelfLinkNameError: l && o && !i
|
|
2732
2735
|
};
|
|
2733
2736
|
}
|
|
2734
2737
|
function Jt({
|
|
@@ -2736,7 +2739,7 @@ function Jt({
|
|
|
2736
2739
|
isSystemCatalogNs: t,
|
|
2737
2740
|
attr: a
|
|
2738
2741
|
}) {
|
|
2739
|
-
const n = a?.catalog === "system", o = a ? `${a.namespace}.${a.name} is managed by the system and can't be edited` : void 0,
|
|
2742
|
+
const n = a?.catalog === "system", o = a ? `${a.namespace}.${a.name} is managed by the system and can't be edited` : void 0, l = n ? o : t ? `The ${e} namespace is managed by the system and can't modify required constraints yet.` : void 0;
|
|
2740
2743
|
return {
|
|
2741
2744
|
attr: {
|
|
2742
2745
|
disabled: n || !1,
|
|
@@ -2744,7 +2747,7 @@ function Jt({
|
|
|
2744
2747
|
},
|
|
2745
2748
|
require: {
|
|
2746
2749
|
disabled: n || t,
|
|
2747
|
-
message:
|
|
2750
|
+
message: l
|
|
2748
2751
|
}
|
|
2749
2752
|
};
|
|
2750
2753
|
}
|
|
@@ -2754,18 +2757,18 @@ const qe = [
|
|
|
2754
2757
|
{ value: "boolean", label: "boolean" },
|
|
2755
2758
|
{ value: "json", label: "json" }
|
|
2756
2759
|
];
|
|
2757
|
-
function
|
|
2760
|
+
function go({
|
|
2758
2761
|
onSave: e,
|
|
2759
2762
|
onChange: t,
|
|
2760
2763
|
onKeyDown: a,
|
|
2761
2764
|
...n
|
|
2762
2765
|
}) {
|
|
2763
|
-
const o = X(null),
|
|
2764
|
-
const g =
|
|
2765
|
-
|
|
2766
|
+
const o = X(null), l = (i) => {
|
|
2767
|
+
const g = i.closest(".overflow-y-auto"), c = g?.scrollTop || 0;
|
|
2768
|
+
i.style.height = "auto", i.style.height = i.scrollHeight + "px", g && (g.scrollTop = c);
|
|
2766
2769
|
};
|
|
2767
2770
|
return H(() => {
|
|
2768
|
-
o.current && (
|
|
2771
|
+
o.current && (l(o.current), o.current && l(o.current));
|
|
2769
2772
|
}, [n.value]), /* @__PURE__ */ r(
|
|
2770
2773
|
"textarea",
|
|
2771
2774
|
{
|
|
@@ -2774,11 +2777,11 @@ function uo({
|
|
|
2774
2777
|
rows: 1,
|
|
2775
2778
|
placeholder: "hello world (Shift+Enter for new line)",
|
|
2776
2779
|
...n,
|
|
2777
|
-
onChange: (
|
|
2778
|
-
t?.(
|
|
2780
|
+
onChange: (i) => {
|
|
2781
|
+
t?.(i), l(i.target);
|
|
2779
2782
|
},
|
|
2780
|
-
onKeyDown: (
|
|
2781
|
-
|
|
2783
|
+
onKeyDown: (i) => {
|
|
2784
|
+
i.key === "Enter" && !i.shiftKey && e && (i.preventDefault(), e()), a?.(i);
|
|
2782
2785
|
}
|
|
2783
2786
|
}
|
|
2784
2787
|
);
|
|
@@ -2789,27 +2792,27 @@ const wt = {
|
|
|
2789
2792
|
boolean: !1,
|
|
2790
2793
|
json: {}
|
|
2791
2794
|
};
|
|
2792
|
-
function
|
|
2795
|
+
function ho(e) {
|
|
2793
2796
|
return e ? e === "date" ? qe.filter(
|
|
2794
2797
|
(t) => t.value === "string" || t.value === "number"
|
|
2795
2798
|
) : qe.filter((t) => t.value === e) : qe;
|
|
2796
2799
|
}
|
|
2797
2800
|
const Dr = (e) => !!e && typeof e == "object";
|
|
2798
|
-
function
|
|
2801
|
+
function fo(e) {
|
|
2799
2802
|
try {
|
|
2800
2803
|
return JSON.parse(e), !0;
|
|
2801
2804
|
} catch {
|
|
2802
2805
|
return !1;
|
|
2803
2806
|
}
|
|
2804
2807
|
}
|
|
2805
|
-
function
|
|
2808
|
+
function mo(e) {
|
|
2806
2809
|
try {
|
|
2807
2810
|
return JSON.parse(e);
|
|
2808
2811
|
} catch {
|
|
2809
2812
|
return e;
|
|
2810
2813
|
}
|
|
2811
2814
|
}
|
|
2812
|
-
function
|
|
2815
|
+
function bo(e, t) {
|
|
2813
2816
|
if (e.checkedDataType)
|
|
2814
2817
|
return e.checkedDataType === "date" ? "string" : e.checkedDataType;
|
|
2815
2818
|
if (t != null) {
|
|
@@ -2834,35 +2837,35 @@ function er(e, t) {
|
|
|
2834
2837
|
if (t === "string")
|
|
2835
2838
|
return Dr(e) ? JSON.stringify(e) : String(e);
|
|
2836
2839
|
if (t === "json")
|
|
2837
|
-
return
|
|
2840
|
+
return mo(e);
|
|
2838
2841
|
}
|
|
2839
2842
|
return e;
|
|
2840
2843
|
}
|
|
2841
|
-
function
|
|
2842
|
-
return
|
|
2844
|
+
function wo(e) {
|
|
2845
|
+
return xn(e) ? null : "Invalid UUID.";
|
|
2843
2846
|
}
|
|
2844
2847
|
function tr({
|
|
2845
2848
|
db: e,
|
|
2846
2849
|
namespace: t,
|
|
2847
2850
|
item: a
|
|
2848
2851
|
}) {
|
|
2849
|
-
const [n, o] = C(!1), [
|
|
2850
|
-
n ||
|
|
2852
|
+
const [n, o] = C(!1), [l, i] = C(!1), { data: g, isLoading: c } = e.useQuery(
|
|
2853
|
+
n || l ? { [t.name]: { $: { where: { id: a.id } } } } : null
|
|
2851
2854
|
);
|
|
2852
2855
|
return /* @__PURE__ */ r(ne.Provider, { children: /* @__PURE__ */ h(ne.Root, { delayDuration: 0, open: n, children: [
|
|
2853
2856
|
/* @__PURE__ */ r(
|
|
2854
2857
|
ne.Trigger,
|
|
2855
2858
|
{
|
|
2856
2859
|
asChild: !0,
|
|
2857
|
-
onMouseEnter: () =>
|
|
2858
|
-
onTouchStart: () =>
|
|
2860
|
+
onMouseEnter: () => i(!0),
|
|
2861
|
+
onTouchStart: () => i(!0),
|
|
2859
2862
|
children: /* @__PURE__ */ r("span", { children: /* @__PURE__ */ r(
|
|
2860
2863
|
V,
|
|
2861
2864
|
{
|
|
2862
2865
|
size: "mini",
|
|
2863
2866
|
variant: "subtle",
|
|
2864
2867
|
onClick: () => o((p) => !p),
|
|
2865
|
-
children: /* @__PURE__ */ r(
|
|
2868
|
+
children: /* @__PURE__ */ r(Wa, { height: 14 })
|
|
2866
2869
|
}
|
|
2867
2870
|
) })
|
|
2868
2871
|
}
|
|
@@ -2878,17 +2881,17 @@ function tr({
|
|
|
2878
2881
|
children: JSON.stringify(g?.[t.name]?.[0] || a, null, 2)
|
|
2879
2882
|
}
|
|
2880
2883
|
),
|
|
2881
|
-
c ? /* @__PURE__ */ r("div", { className: "absolute top-0 right-0 animate-spin p-2 opacity-50", children: /* @__PURE__ */ r(
|
|
2884
|
+
c ? /* @__PURE__ */ r("div", { className: "absolute top-0 right-0 animate-spin p-2 opacity-50", children: /* @__PURE__ */ r(Va, { width: 12 }) }) : null
|
|
2882
2885
|
] }) })
|
|
2883
2886
|
] }) });
|
|
2884
2887
|
}
|
|
2885
|
-
function
|
|
2888
|
+
function vo({
|
|
2886
2889
|
q: e,
|
|
2887
2890
|
option: t,
|
|
2888
2891
|
uniqueAttrs: a,
|
|
2889
2892
|
filterableAttrs: n
|
|
2890
2893
|
}) {
|
|
2891
|
-
const [o,
|
|
2894
|
+
const [o, l] = C(!1);
|
|
2892
2895
|
return /* @__PURE__ */ r(
|
|
2893
2896
|
fr,
|
|
2894
2897
|
{
|
|
@@ -2902,25 +2905,25 @@ function bo({
|
|
|
2902
2905
|
ne.Trigger,
|
|
2903
2906
|
{
|
|
2904
2907
|
asChild: !0,
|
|
2905
|
-
onMouseEnter: () =>
|
|
2906
|
-
onMouseLeave: () =>
|
|
2908
|
+
onMouseEnter: () => l(!0),
|
|
2909
|
+
onMouseLeave: () => l(!1),
|
|
2907
2910
|
children: /* @__PURE__ */ h("div", { children: [
|
|
2908
2911
|
/* @__PURE__ */ r("div", { children: /* @__PURE__ */ r("code", { children: t.id }) }),
|
|
2909
2912
|
/* @__PURE__ */ h("div", { className: "truncate", children: [
|
|
2910
2913
|
n.filter(
|
|
2911
|
-
(
|
|
2912
|
-
).slice(0, 3).map((
|
|
2913
|
-
/* @__PURE__ */ r("span", { className: "font-medium", children:
|
|
2914
|
+
(i) => t.hasOwnProperty(i.name) && !i.isUniq && e && JSON.stringify(t[i.name]).toLowerCase().indexOf(e.toLowerCase()) !== -1
|
|
2915
|
+
).slice(0, 3).map((i) => /* @__PURE__ */ h("div", { children: [
|
|
2916
|
+
/* @__PURE__ */ r("span", { className: "font-medium", children: i.name }),
|
|
2914
2917
|
":",
|
|
2915
2918
|
" ",
|
|
2916
|
-
JSON.stringify(t[
|
|
2917
|
-
] },
|
|
2918
|
-
a.filter((
|
|
2919
|
-
/* @__PURE__ */ r("span", { className: "font-medium", children:
|
|
2919
|
+
JSON.stringify(t[i.name])
|
|
2920
|
+
] }, i.id)),
|
|
2921
|
+
a.filter((i) => t.hasOwnProperty(i.name)).slice(0, 3).map((i) => /* @__PURE__ */ h("div", { children: [
|
|
2922
|
+
/* @__PURE__ */ r("span", { className: "font-medium", children: i.name }),
|
|
2920
2923
|
":",
|
|
2921
2924
|
" ",
|
|
2922
|
-
JSON.stringify(t[
|
|
2923
|
-
] },
|
|
2925
|
+
JSON.stringify(t[i.name])
|
|
2926
|
+
] }, i.id))
|
|
2924
2927
|
] })
|
|
2925
2928
|
] })
|
|
2926
2929
|
}
|
|
@@ -2940,30 +2943,30 @@ function bo({
|
|
|
2940
2943
|
t.id
|
|
2941
2944
|
);
|
|
2942
2945
|
}
|
|
2943
|
-
function
|
|
2946
|
+
function yo({
|
|
2944
2947
|
db: e,
|
|
2945
2948
|
namespace: t,
|
|
2946
2949
|
onLinkRef: a,
|
|
2947
2950
|
ignoreIds: n,
|
|
2948
2951
|
onClose: o
|
|
2949
2952
|
}) {
|
|
2950
|
-
const [
|
|
2953
|
+
const [l, i] = C(""), g = X(null), { uniqueAttrs: c, filterableAttrs: p } = se(() => {
|
|
2951
2954
|
const m = [], b = [];
|
|
2952
2955
|
for (const [w, v] of Object.entries(t.attrs))
|
|
2953
2956
|
v.isUniq && v.name !== "id" && v.type === "blob" && m.push(v), v.isIndex && (v.checkedDataType === "string" || v.checkedDataType === "number") && b.push(v);
|
|
2954
2957
|
return { uniqueAttrs: m, filterableAttrs: b };
|
|
2955
2958
|
}, [t.attrs]), f = se(() => {
|
|
2956
|
-
const m = [{ $entityIdStartsWith:
|
|
2959
|
+
const m = [{ $entityIdStartsWith: l }];
|
|
2957
2960
|
let b;
|
|
2958
2961
|
try {
|
|
2959
|
-
const w = JSON.parse(
|
|
2962
|
+
const w = JSON.parse(l);
|
|
2960
2963
|
typeof w == "number" && (b = w);
|
|
2961
2964
|
} catch {
|
|
2962
2965
|
}
|
|
2963
2966
|
for (const w of p)
|
|
2964
|
-
w.checkedDataType === "string" &&
|
|
2967
|
+
w.checkedDataType === "string" && l.trim() && m.push({ [w.name]: { $ilike: `%${l.trim()}%` } }), w.checkedDataType === "number" && b != null && m.push({ [w.name]: b });
|
|
2965
2968
|
for (const w of c)
|
|
2966
|
-
w.checkedDataType || (m.push({ [w.name]:
|
|
2969
|
+
w.checkedDataType || (m.push({ [w.name]: l }), b != null && m.push({ [w.name]: b }));
|
|
2967
2970
|
return {
|
|
2968
2971
|
[t.name]: {
|
|
2969
2972
|
$: {
|
|
@@ -2974,12 +2977,12 @@ function wo({
|
|
|
2974
2977
|
}
|
|
2975
2978
|
}
|
|
2976
2979
|
};
|
|
2977
|
-
}, [t.name, p,
|
|
2980
|
+
}, [t.name, p, l]), { data: d, isLoading: u } = e.useQuery(f), s = d?.[t.name]?.filter((m) => !n.has(m.id));
|
|
2978
2981
|
return /* @__PURE__ */ r("div", { className: "relative mt-1 w-full", children: /* @__PURE__ */ h(
|
|
2979
2982
|
pr,
|
|
2980
2983
|
{
|
|
2981
2984
|
onChange: (m) => {
|
|
2982
|
-
m && (a(m),
|
|
2985
|
+
m && (a(m), i(""), o());
|
|
2983
2986
|
},
|
|
2984
2987
|
onClose: o,
|
|
2985
2988
|
immediate: !0,
|
|
@@ -2991,9 +2994,9 @@ function wo({
|
|
|
2991
2994
|
autoFocus: !0,
|
|
2992
2995
|
size: 32,
|
|
2993
2996
|
className: "w-full rounded-md border border-gray-300 px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-800 dark:placeholder:text-neutral-500",
|
|
2994
|
-
value:
|
|
2997
|
+
value: l,
|
|
2995
2998
|
onChange: (m) => {
|
|
2996
|
-
|
|
2999
|
+
i(m.target.value);
|
|
2997
3000
|
},
|
|
2998
3001
|
placeholder: `Search ${t.name}...`
|
|
2999
3002
|
}
|
|
@@ -3006,9 +3009,9 @@ function wo({
|
|
|
3006
3009
|
static: !0,
|
|
3007
3010
|
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",
|
|
3008
3011
|
children: (s || []).map((m) => /* @__PURE__ */ r(
|
|
3009
|
-
|
|
3012
|
+
vo,
|
|
3010
3013
|
{
|
|
3011
|
-
q:
|
|
3014
|
+
q: l,
|
|
3012
3015
|
option: m,
|
|
3013
3016
|
uniqueAttrs: c,
|
|
3014
3017
|
filterableAttrs: p
|
|
@@ -3026,14 +3029,14 @@ function wo({
|
|
|
3026
3029
|
u ? "query-loading" : "query-loaded"
|
|
3027
3030
|
) });
|
|
3028
3031
|
}
|
|
3029
|
-
function
|
|
3032
|
+
function ko({
|
|
3030
3033
|
db: e,
|
|
3031
3034
|
item: t,
|
|
3032
3035
|
attr: a,
|
|
3033
3036
|
namespace: n,
|
|
3034
3037
|
refUpdates: o,
|
|
3035
|
-
handleLinkRef:
|
|
3036
|
-
handleUnlinkRef:
|
|
3038
|
+
handleLinkRef: l,
|
|
3039
|
+
handleUnlinkRef: i
|
|
3037
3040
|
}) {
|
|
3038
3041
|
const [g, c] = C(!1), p = se(() => {
|
|
3039
3042
|
const u = /* @__PURE__ */ new Set();
|
|
@@ -3057,7 +3060,7 @@ function vo({
|
|
|
3057
3060
|
size: "mini",
|
|
3058
3061
|
variant: s ? "subtle" : "destructive",
|
|
3059
3062
|
className: "border-none",
|
|
3060
|
-
onClick: () => s ?
|
|
3063
|
+
onClick: () => s ? l(a, u) : i(a, u.id),
|
|
3061
3064
|
children: s ? /* @__PURE__ */ r(Ve, { height: 14 }) : /* @__PURE__ */ r(nt, { height: 14 })
|
|
3062
3065
|
}
|
|
3063
3066
|
)
|
|
@@ -3076,17 +3079,17 @@ function vo({
|
|
|
3076
3079
|
size: "mini",
|
|
3077
3080
|
variant: "destructive",
|
|
3078
3081
|
className: "border-none",
|
|
3079
|
-
onClick: () =>
|
|
3082
|
+
onClick: () => i(a, u),
|
|
3080
3083
|
children: /* @__PURE__ */ r(nt, { height: 14 })
|
|
3081
3084
|
}
|
|
3082
3085
|
)
|
|
3083
3086
|
] }, u);
|
|
3084
3087
|
}),
|
|
3085
3088
|
g ? /* @__PURE__ */ r(
|
|
3086
|
-
|
|
3089
|
+
yo,
|
|
3087
3090
|
{
|
|
3088
3091
|
namespace: n,
|
|
3089
|
-
onLinkRef: (u) =>
|
|
3092
|
+
onLinkRef: (u) => l(a, u),
|
|
3090
3093
|
db: e,
|
|
3091
3094
|
ignoreIds: p,
|
|
3092
3095
|
onClose: () => c(!1)
|
|
@@ -3094,19 +3097,19 @@ function vo({
|
|
|
3094
3097
|
) : /* @__PURE__ */ r(V, { variant: "secondary", onClick: () => c(!0), children: f === "many" || !d ? "Add link" : "Replace link" })
|
|
3095
3098
|
] });
|
|
3096
3099
|
}
|
|
3097
|
-
const
|
|
3100
|
+
const xo = (e, t) => t.type === "blob" && e.name !== "$files" || e.name === "$files" && t.type === "blob" && t.name === "path";
|
|
3098
3101
|
function rr({
|
|
3099
3102
|
db: e,
|
|
3100
3103
|
namespace: t,
|
|
3101
3104
|
item: a,
|
|
3102
3105
|
onClose: n
|
|
3103
3106
|
}) {
|
|
3104
|
-
const o = a.id ? "edit" : "add",
|
|
3107
|
+
const o = a.id ? "edit" : "add", l = de(), i = [], g = [];
|
|
3105
3108
|
for (const S of t.attrs)
|
|
3106
|
-
S.name !== "id" && (
|
|
3107
|
-
const c =
|
|
3109
|
+
S.name !== "id" && (xo(t, S) && i.push(S), S.type === "ref" && g.push(S));
|
|
3110
|
+
const c = i.reduce(
|
|
3108
3111
|
(S, T) => {
|
|
3109
|
-
const I = a[T.name], A =
|
|
3112
|
+
const I = a[T.name], A = bo(T, I), D = o === "add" ? T.isRequired ? wt[A] : null : I;
|
|
3110
3113
|
return {
|
|
3111
3114
|
...S,
|
|
3112
3115
|
[T.name]: {
|
|
@@ -3121,19 +3124,19 @@ function rr({
|
|
|
3121
3124
|
...c,
|
|
3122
3125
|
...o === "add" ? { id: { type: "string", value: Pe() } } : {}
|
|
3123
3126
|
}), [d, u] = C({}), [s, m] = C({}), [b, w] = C(
|
|
3124
|
-
|
|
3127
|
+
i.reduce((S, T) => ({
|
|
3125
3128
|
...S,
|
|
3126
3129
|
[T.name]: o === "edit" ? a[T.name] === null || a[T.name] === void 0 : p[T.name].value === null
|
|
3127
3130
|
}), {})
|
|
3128
3131
|
), v = Object.values(p).some((S) => !!S.error), [k, x] = C(!1), _ = () => {
|
|
3129
3132
|
u({}), f({ ...c }), w(
|
|
3130
|
-
|
|
3133
|
+
i.reduce((T, I) => ({
|
|
3131
3134
|
...T,
|
|
3132
3135
|
[I.name]: o === "edit" ? a[I.name] === null || a[I.name] === void 0 : !1
|
|
3133
3136
|
}), {})
|
|
3134
3137
|
);
|
|
3135
3138
|
const S = {};
|
|
3136
|
-
|
|
3139
|
+
i.forEach((T) => {
|
|
3137
3140
|
c[T.name]?.type === "json" && a[T.name] !== void 0 && (S[T.name] = a[T.name] === null ? "null" : JSON.stringify(a[T.name], null, 2));
|
|
3138
3141
|
}), m(S), x(!1);
|
|
3139
3142
|
}, P = (S, T) => {
|
|
@@ -3165,7 +3168,7 @@ function rr({
|
|
|
3165
3168
|
[S]: { type: "json", value: void 0, error: "Invalid JSON" }
|
|
3166
3169
|
} : {
|
|
3167
3170
|
...I,
|
|
3168
|
-
[S]:
|
|
3171
|
+
[S]: fo(T) ? { type: "json", value: JSON.parse(T), error: null } : { ...A, type: "json", error: "Invalid JSON" }
|
|
3169
3172
|
};
|
|
3170
3173
|
});
|
|
3171
3174
|
}, q = (S, T) => {
|
|
@@ -3251,7 +3254,7 @@ function rr({
|
|
|
3251
3254
|
), T = a.id || S.id || Pe();
|
|
3252
3255
|
delete S.id;
|
|
3253
3256
|
try {
|
|
3254
|
-
let I =
|
|
3257
|
+
let I = an[t.name][T];
|
|
3255
3258
|
const A = [], D = [];
|
|
3256
3259
|
for (const [F, Q] of Object.entries(d))
|
|
3257
3260
|
for (const [te, { action: W }] of Object.entries(Q))
|
|
@@ -3290,7 +3293,7 @@ function rr({
|
|
|
3290
3293
|
size: "mini",
|
|
3291
3294
|
variant: "subtle",
|
|
3292
3295
|
onClick: () => B("id", Pe()),
|
|
3293
|
-
children: /* @__PURE__ */ r(
|
|
3296
|
+
children: /* @__PURE__ */ r(Ha, { height: 14 })
|
|
3294
3297
|
}
|
|
3295
3298
|
)
|
|
3296
3299
|
] }) }) }),
|
|
@@ -3299,13 +3302,13 @@ function rr({
|
|
|
3299
3302
|
{
|
|
3300
3303
|
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",
|
|
3301
3304
|
value: p.id?.value ?? "",
|
|
3302
|
-
onChange: (S) => B("id", S.target.value,
|
|
3305
|
+
onChange: (S) => B("id", S.target.value, wo)
|
|
3303
3306
|
}
|
|
3304
3307
|
) }),
|
|
3305
3308
|
" ",
|
|
3306
3309
|
p.id?.error && k && /* @__PURE__ */ r("span", { className: "text-sm font-medium text-red-500", children: p.id.error })
|
|
3307
3310
|
] }, "id") : null,
|
|
3308
|
-
|
|
3311
|
+
i.map((S, T) => {
|
|
3309
3312
|
const I = T + 1, { type: A, value: D, error: F } = p[S.name] || {
|
|
3310
3313
|
type: "string",
|
|
3311
3314
|
value: wt.string
|
|
@@ -3327,7 +3330,7 @@ function rr({
|
|
|
3327
3330
|
{
|
|
3328
3331
|
className: "w-24 rounded-sm px-2 py-0.5 text-sm",
|
|
3329
3332
|
value: A,
|
|
3330
|
-
options:
|
|
3333
|
+
options: ho(S.checkedDataType),
|
|
3331
3334
|
onChange: (W) => P(
|
|
3332
3335
|
S.name,
|
|
3333
3336
|
W.value
|
|
@@ -3350,7 +3353,7 @@ function rr({
|
|
|
3350
3353
|
/* @__PURE__ */ r("div", { className: "flex-1", children: A === "json" ? /* @__PURE__ */ r("div", { className: "h-32 w-full rounded-sm border", children: /* @__PURE__ */ r(
|
|
3351
3354
|
_t,
|
|
3352
3355
|
{
|
|
3353
|
-
darkMode:
|
|
3356
|
+
darkMode: l.darkMode,
|
|
3354
3357
|
tabIndex: I,
|
|
3355
3358
|
language: "json",
|
|
3356
3359
|
value: Q,
|
|
@@ -3377,7 +3380,7 @@ function rr({
|
|
|
3377
3380
|
onChange: (W) => B(S.name, W.target.value)
|
|
3378
3381
|
}
|
|
3379
3382
|
) : /* @__PURE__ */ r(
|
|
3380
|
-
|
|
3383
|
+
go,
|
|
3381
3384
|
{
|
|
3382
3385
|
tabIndex: I,
|
|
3383
3386
|
value: D ?? "",
|
|
@@ -3418,7 +3421,7 @@ function rr({
|
|
|
3418
3421
|
] })
|
|
3419
3422
|
] }),
|
|
3420
3423
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-1", children: /* @__PURE__ */ r(
|
|
3421
|
-
|
|
3424
|
+
ko,
|
|
3422
3425
|
{
|
|
3423
3426
|
db: e,
|
|
3424
3427
|
item: a,
|
|
@@ -3439,7 +3442,7 @@ function rr({
|
|
|
3439
3442
|
/* @__PURE__ */ r(
|
|
3440
3443
|
ve,
|
|
3441
3444
|
{
|
|
3442
|
-
tabIndex:
|
|
3445
|
+
tabIndex: i.length + 1,
|
|
3443
3446
|
type: "submit",
|
|
3444
3447
|
variant: "primary",
|
|
3445
3448
|
label: "Save",
|
|
@@ -3452,62 +3455,62 @@ function rr({
|
|
|
3452
3455
|
] })
|
|
3453
3456
|
] });
|
|
3454
3457
|
}
|
|
3455
|
-
const
|
|
3456
|
-
function
|
|
3458
|
+
const So = [];
|
|
3459
|
+
function No(e, t, a, n = !1) {
|
|
3457
3460
|
if (e.length === 0) return;
|
|
3458
3461
|
const o = t.filter(
|
|
3459
3462
|
(c) => c.id !== "select-col" && c.header !== void 0 && !c.meta?.isLink
|
|
3460
|
-
),
|
|
3463
|
+
), l = e.map((c) => {
|
|
3461
3464
|
const p = {};
|
|
3462
3465
|
return o.forEach((f) => {
|
|
3463
3466
|
const d = c[f.header];
|
|
3464
3467
|
d == null ? p[f.header] = "" : typeof d == "object" ? p[f.header] = JSON.stringify(d) : p[f.header] = d;
|
|
3465
3468
|
}), p;
|
|
3466
|
-
}),
|
|
3469
|
+
}), i = gn({
|
|
3467
3470
|
fieldSeparator: ",",
|
|
3468
3471
|
filename: `${a}_export`,
|
|
3469
3472
|
decimalSeparator: ".",
|
|
3470
3473
|
useKeysAsHeaders: !0
|
|
3471
|
-
}), g =
|
|
3472
|
-
n ? (
|
|
3474
|
+
}), g = hn(i)(l);
|
|
3475
|
+
n ? (fn(i)(g), oe("CSV file downloaded")) : (He(g.toString()), oe("CSV copied to clipboard"));
|
|
3473
3476
|
}
|
|
3474
|
-
function
|
|
3477
|
+
function Eo(e, t, a, n = !1) {
|
|
3475
3478
|
if (e.length === 0) return;
|
|
3476
3479
|
const o = t.filter(
|
|
3477
3480
|
(c) => c.id !== "select-col" && c.header !== void 0 && !c.meta?.isLink
|
|
3478
|
-
),
|
|
3481
|
+
), l = o.map((c) => c.header), i = e.map((c) => o.map((p) => {
|
|
3479
3482
|
const f = c[p.header];
|
|
3480
3483
|
return f == null ? " " : typeof f == "object" ? JSON.stringify(f) : String(f);
|
|
3481
|
-
})), g =
|
|
3484
|
+
})), g = pn([l, ...i]);
|
|
3482
3485
|
if (n) {
|
|
3483
3486
|
const c = new Blob([g], { type: "text/markdown" }), p = URL.createObjectURL(c), f = document.createElement("a");
|
|
3484
3487
|
f.href = p, f.download = `${a}_export.md`, document.body.appendChild(f), f.click(), document.body.removeChild(f), URL.revokeObjectURL(p), oe("Markdown file downloaded");
|
|
3485
3488
|
} else
|
|
3486
3489
|
He(g), oe("Markdown copied to clipboard");
|
|
3487
3490
|
}
|
|
3488
|
-
function
|
|
3491
|
+
function Co(e, t, a, n = !1) {
|
|
3489
3492
|
if (e.length === 0) return;
|
|
3490
3493
|
const o = t.filter(
|
|
3491
3494
|
(g) => g.id !== "select-col" && g.header !== void 0 && !g.meta?.isLink
|
|
3492
|
-
),
|
|
3495
|
+
), l = e.map((g) => {
|
|
3493
3496
|
const c = {};
|
|
3494
3497
|
return o.forEach((p) => {
|
|
3495
3498
|
const f = g[p.header];
|
|
3496
3499
|
c[p.header] = f;
|
|
3497
3500
|
}), c;
|
|
3498
|
-
}),
|
|
3501
|
+
}), i = JSON.stringify(l, null, 2);
|
|
3499
3502
|
if (n) {
|
|
3500
|
-
const g = new Blob([
|
|
3503
|
+
const g = new Blob([i], { type: "application/json" }), c = URL.createObjectURL(g), p = document.createElement("a");
|
|
3501
3504
|
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");
|
|
3502
3505
|
} else
|
|
3503
|
-
He(
|
|
3506
|
+
He(i), oe("JSON copied to clipboard");
|
|
3504
3507
|
}
|
|
3505
|
-
const
|
|
3506
|
-
const { explorerState: a, history: n } = dt(), o = de(),
|
|
3507
|
-
(E) => E.id ===
|
|
3508
|
+
const Io = ({ db: e, namespaces: t }) => {
|
|
3509
|
+
const { explorerState: a, history: n } = dt(), o = de(), l = a, i = t.find(
|
|
3510
|
+
(E) => E.id === l.namespace
|
|
3508
3511
|
), [g, c] = C(50), [p, f] = C([]), [d, u] = C(!1), [s, m] = C(""), [b, w] = C(!1), [v, k] = C(null), [x, _] = C(null), [P, B] = C(!1);
|
|
3509
3512
|
X(null);
|
|
3510
|
-
const L = X(null), [q, G] = C({}), Y = X(null), z =
|
|
3513
|
+
const L = X(null), [q, G] = C({}), Y = X(null), z = i?.name?.startsWith("$") ?? !1, j = i?.name ?? "", S = z && !["$users", "$files"].includes(j), T = q[j] || 0, I = l?.sortAttr || "serverCreatedAt", A = l?.sortAsc ?? !0, D = (E, N) => {
|
|
3511
3514
|
const R = ae.options.data.map((pe) => pe.id), $ = R.indexOf(E), U = R.indexOf(L.current), [K, J] = [
|
|
3512
3515
|
Math.min($, U),
|
|
3513
3516
|
Math.max($, U)
|
|
@@ -3520,25 +3523,25 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3520
3523
|
}
|
|
3521
3524
|
return ze;
|
|
3522
3525
|
});
|
|
3523
|
-
}, [F, Q] = C([]), { itemsRes: te, allCount: W } =
|
|
3526
|
+
}, [F, Q] = C([]), { itemsRes: te, allCount: W } = Mn(
|
|
3524
3527
|
e,
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
+
i,
|
|
3529
|
+
l?.where,
|
|
3530
|
+
l?.filters || F,
|
|
3528
3531
|
g,
|
|
3529
3532
|
T,
|
|
3530
3533
|
I,
|
|
3531
3534
|
A
|
|
3532
|
-
), re = te.data?.[
|
|
3535
|
+
), re = te.data?.[i?.name ?? ""] ?? So;
|
|
3533
3536
|
function ye(E, N) {
|
|
3534
3537
|
return E.filter((R) => N[R.id]);
|
|
3535
3538
|
}
|
|
3536
|
-
const ce = W ? Math.ceil(W / g) : 1, Z = T / g + 1, [ke, Kr] =
|
|
3539
|
+
const ce = W ? Math.ceil(W / g) : 1, Z = T / g + 1, [ke, Kr] = qn("localDates", !1), Xr = async () => {
|
|
3537
3540
|
try {
|
|
3538
3541
|
if (u(!0), p.length === 0)
|
|
3539
3542
|
return;
|
|
3540
3543
|
const [E] = p;
|
|
3541
|
-
await
|
|
3544
|
+
await To(
|
|
3542
3545
|
o.adminToken,
|
|
3543
3546
|
o.appId,
|
|
3544
3547
|
E,
|
|
@@ -3555,13 +3558,13 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3555
3558
|
Ut(E, 285);
|
|
3556
3559
|
return;
|
|
3557
3560
|
}
|
|
3558
|
-
const N =
|
|
3561
|
+
const N = Hn(E, 800);
|
|
3559
3562
|
Ut(E, N);
|
|
3560
3563
|
}, Ut = (E, N = 200) => {
|
|
3561
|
-
if (!
|
|
3564
|
+
if (!i)
|
|
3562
3565
|
return;
|
|
3563
3566
|
const R = {};
|
|
3564
|
-
|
|
3567
|
+
i?.attrs.forEach(($) => {
|
|
3565
3568
|
R[$.id + $.name] = ae.getColumn($.id + $.name)?.getSize() || 0;
|
|
3566
3569
|
}), ae.setColumnSizing({
|
|
3567
3570
|
...R,
|
|
@@ -3608,11 +3611,11 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3608
3611
|
{
|
|
3609
3612
|
className: "translate-y-0.5 opacity-0 transition-opacity group-hover:opacity-100",
|
|
3610
3613
|
onClick: () => _(N.id),
|
|
3611
|
-
children: /* @__PURE__ */ r(
|
|
3614
|
+
children: /* @__PURE__ */ r(ka, { className: "h-4 w-4 text-neutral-500 dark:text-neutral-400" })
|
|
3612
3615
|
}
|
|
3613
3616
|
)
|
|
3614
3617
|
] })
|
|
3615
|
-
}),
|
|
3618
|
+
}), i?.attrs?.forEach((N) => {
|
|
3616
3619
|
E.push({
|
|
3617
3620
|
id: N.id + N.name,
|
|
3618
3621
|
header: N.name,
|
|
@@ -3658,19 +3661,19 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3658
3661
|
}
|
|
3659
3662
|
);
|
|
3660
3663
|
if (N.name === "size")
|
|
3661
|
-
return
|
|
3664
|
+
return Gn(R.row.original[N.name]);
|
|
3662
3665
|
}
|
|
3663
3666
|
if (N.checkedDataType === "boolean")
|
|
3664
3667
|
return R.row.original[N.name] ? "true" : "false";
|
|
3665
3668
|
if (N.checkedDataType === "date") {
|
|
3666
|
-
const $ =
|
|
3669
|
+
const $ = en(R.row.original[N.name]);
|
|
3667
3670
|
return ke && $?.toLocaleString() || R.row.original[N.name];
|
|
3668
3671
|
}
|
|
3669
|
-
return Ne(R.row.original[N.name]) ? /* @__PURE__ */ r(
|
|
3672
|
+
return Ne(R.row.original[N.name]) ? /* @__PURE__ */ r(Ro, { data: R.row.original[N.name] }) : R.row.original[N.name];
|
|
3670
3673
|
}
|
|
3671
3674
|
});
|
|
3672
3675
|
}), E;
|
|
3673
|
-
}, [
|
|
3676
|
+
}, [i?.attrs, ke]), [Qr, Jr] = C({}), ea = () => {
|
|
3674
3677
|
const E = Object.entries(ae.getState().columnSizing).reduce(
|
|
3675
3678
|
(U, [K, J]) => Qe.visibility[K] !== !1 ? {
|
|
3676
3679
|
...U,
|
|
@@ -3688,40 +3691,40 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3688
3691
|
});
|
|
3689
3692
|
}
|
|
3690
3693
|
Bt(!1), ae.setColumnSizing(() => ({ ...E }));
|
|
3691
|
-
}, ta = "onChange", ra = "ltr", Qe =
|
|
3694
|
+
}, ta = "onChange", ra = "ltr", Qe = Un({
|
|
3692
3695
|
appId: o.appId,
|
|
3693
|
-
attrs:
|
|
3694
|
-
namespaceId:
|
|
3696
|
+
attrs: i?.attrs,
|
|
3697
|
+
namespaceId: i?.id
|
|
3695
3698
|
}), [Le, Je] = C(
|
|
3696
3699
|
() => De.map((E) => E.id)
|
|
3697
3700
|
);
|
|
3698
3701
|
vt(() => {
|
|
3699
|
-
if (
|
|
3702
|
+
if (i?.attrs) {
|
|
3700
3703
|
const E = localStorage.getItem(
|
|
3701
|
-
`order-${
|
|
3704
|
+
`order-${i.id}-${o.appId}`
|
|
3702
3705
|
);
|
|
3703
3706
|
if (E)
|
|
3704
3707
|
Je(JSON.parse(E));
|
|
3705
3708
|
else {
|
|
3706
|
-
const N =
|
|
3709
|
+
const N = i.attrs.map(
|
|
3707
3710
|
(R) => R.id + R.name
|
|
3708
3711
|
);
|
|
3709
3712
|
Je(["select-col", ...N]);
|
|
3710
3713
|
}
|
|
3711
3714
|
}
|
|
3712
|
-
}, [
|
|
3713
|
-
|
|
3714
|
-
`order-${
|
|
3715
|
+
}, [i?.attrs]), H(() => {
|
|
3716
|
+
i?.id && localStorage.setItem(
|
|
3717
|
+
`order-${i.id}-${o.appId}`,
|
|
3715
3718
|
JSON.stringify(Le)
|
|
3716
3719
|
);
|
|
3717
|
-
}, [Le,
|
|
3720
|
+
}, [Le, i?.id]);
|
|
3718
3721
|
const [xe, Ce] = C(
|
|
3719
3722
|
{}
|
|
3720
3723
|
);
|
|
3721
3724
|
H(() => {
|
|
3722
3725
|
Ce({}), L.current = null;
|
|
3723
|
-
}, [
|
|
3724
|
-
const Fe = Object.keys(xe).length, Ie = j === "$files" ? Fe === 1 ? "file" : "files" : Fe === 1 ? "row" : "rows", ae =
|
|
3726
|
+
}, [i?.id]);
|
|
3727
|
+
const Fe = Object.keys(xe).length, Ie = j === "$files" ? Fe === 1 ? "file" : "files" : Fe === 1 ? "row" : "rows", ae = wn({
|
|
3725
3728
|
columnResizeDirection: ra,
|
|
3726
3729
|
columnResizeMode: ta,
|
|
3727
3730
|
onColumnVisibilityChange: Qe.setVisibility,
|
|
@@ -3729,7 +3732,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3729
3732
|
data: Lt,
|
|
3730
3733
|
enableColumnResizing: !0,
|
|
3731
3734
|
enableRowSelection: !0,
|
|
3732
|
-
getCoreRowModel:
|
|
3735
|
+
getCoreRowModel: vn(),
|
|
3733
3736
|
getRowId: (E) => E.id,
|
|
3734
3737
|
onColumnOrderChange: Je,
|
|
3735
3738
|
onRowSelectionChange: Ce,
|
|
@@ -3758,7 +3761,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3758
3761
|
const { active: N, over: R } = E;
|
|
3759
3762
|
N && R && N.id !== R.id && N.id !== "select-col" && R.id !== "select-col" && Je(($) => {
|
|
3760
3763
|
const U = $.indexOf(N.id), K = $.indexOf(R.id);
|
|
3761
|
-
return
|
|
3764
|
+
return bn($, U, K);
|
|
3762
3765
|
});
|
|
3763
3766
|
}
|
|
3764
3767
|
const mt = se(
|
|
@@ -3788,27 +3791,27 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3788
3791
|
return $ && R.observe($), window.addEventListener("resize", N), () => {
|
|
3789
3792
|
E.removeEventListener("scroll", N), R.disconnect(), window.removeEventListener("resize", N);
|
|
3790
3793
|
};
|
|
3791
|
-
}, [
|
|
3792
|
-
const oa =
|
|
3793
|
-
bt(
|
|
3794
|
-
bt(
|
|
3795
|
-
bt(
|
|
3794
|
+
}, [i, Lt]);
|
|
3795
|
+
const oa = on(
|
|
3796
|
+
bt(ln, {}),
|
|
3797
|
+
bt(sn, {}),
|
|
3798
|
+
bt(dn, {})
|
|
3796
3799
|
), ia = n.items.length >= 1, la = (E) => E === "id" ? 140 : E === "url" ? 120 : E.length * 7.2 + 50;
|
|
3797
3800
|
if (vt(() => {
|
|
3798
|
-
if (
|
|
3801
|
+
if (i?.id) {
|
|
3799
3802
|
if (localStorage.getItem(
|
|
3800
|
-
`$sizing-${
|
|
3803
|
+
`$sizing-${i.id}-${o.appId}`
|
|
3801
3804
|
)) {
|
|
3802
3805
|
const U = JSON.parse(
|
|
3803
3806
|
localStorage.getItem(
|
|
3804
|
-
`sizing-${
|
|
3807
|
+
`sizing-${i.id}-${o.appId}`
|
|
3805
3808
|
) || "{}"
|
|
3806
3809
|
);
|
|
3807
3810
|
ae.setColumnSizing(() => ({ ...U }));
|
|
3808
3811
|
return;
|
|
3809
3812
|
}
|
|
3810
3813
|
const E = _e.current?.clientWidth || -1, N = {};
|
|
3811
|
-
|
|
3814
|
+
i?.attrs.forEach((U) => {
|
|
3812
3815
|
N[U.id + U.name] = la(U.name);
|
|
3813
3816
|
});
|
|
3814
3817
|
const R = Object.values(N).reduce(
|
|
@@ -3823,16 +3826,17 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3823
3826
|
}
|
|
3824
3827
|
ae.setColumnSizing(N);
|
|
3825
3828
|
}
|
|
3826
|
-
}, [_e.current,
|
|
3829
|
+
}, [_e.current, i]), !i)
|
|
3827
3830
|
return null;
|
|
3828
|
-
const sa =
|
|
3831
|
+
const sa = i.id;
|
|
3829
3832
|
return /* @__PURE__ */ h(M, { children: [
|
|
3830
3833
|
/* @__PURE__ */ r(
|
|
3831
3834
|
fe,
|
|
3832
3835
|
{
|
|
3836
|
+
title: "Delete Rows",
|
|
3833
3837
|
open: b,
|
|
3834
3838
|
onClose: () => w(!1),
|
|
3835
|
-
children:
|
|
3839
|
+
children: i ? /* @__PURE__ */ h(ge, { className: "min flex flex-col gap-4", children: [
|
|
3836
3840
|
/* @__PURE__ */ h("h5", { className: "flex text-lg font-bold", children: [
|
|
3837
3841
|
"Delete ",
|
|
3838
3842
|
Ie
|
|
@@ -3853,7 +3857,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3853
3857
|
] }),
|
|
3854
3858
|
"associated with",
|
|
3855
3859
|
" ",
|
|
3856
|
-
/* @__PURE__ */ r("strong", { className: "dark:text-white", children:
|
|
3860
|
+
/* @__PURE__ */ r("strong", { className: "dark:text-white", children: i.name }),
|
|
3857
3861
|
"."
|
|
3858
3862
|
] }),
|
|
3859
3863
|
/* @__PURE__ */ r(
|
|
@@ -3865,12 +3869,12 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3865
3869
|
submitLabel: `Deleting ${Ie}...`,
|
|
3866
3870
|
errorMessage: `Failed to delete ${Ie}`,
|
|
3867
3871
|
className: "border-red-500 text-red-500",
|
|
3868
|
-
title: S ? `The ${
|
|
3872
|
+
title: S ? `The ${i?.name} namespace is read-only.` : void 0,
|
|
3869
3873
|
onClick: async () => {
|
|
3870
3874
|
try {
|
|
3871
|
-
if (
|
|
3875
|
+
if (i.name === "$files") {
|
|
3872
3876
|
const E = re.filter((N) => N.id in xe).map((N) => N.path);
|
|
3873
|
-
await
|
|
3877
|
+
await Oo(
|
|
3874
3878
|
o.adminToken,
|
|
3875
3879
|
o.appId,
|
|
3876
3880
|
E,
|
|
@@ -3879,7 +3883,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3879
3883
|
} else
|
|
3880
3884
|
await e.transact(
|
|
3881
3885
|
Object.keys(xe).map(
|
|
3882
|
-
(E) =>
|
|
3886
|
+
(E) => tn[i.name][E].delete()
|
|
3883
3887
|
)
|
|
3884
3888
|
);
|
|
3885
3889
|
} catch (E) {
|
|
@@ -3899,14 +3903,15 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3899
3903
|
/* @__PURE__ */ r(
|
|
3900
3904
|
fe,
|
|
3901
3905
|
{
|
|
3906
|
+
title: "Edit Row",
|
|
3902
3907
|
open: P,
|
|
3903
3908
|
onClose: () => B(!1),
|
|
3904
|
-
children:
|
|
3909
|
+
children: i ? /* @__PURE__ */ r(
|
|
3905
3910
|
rr,
|
|
3906
3911
|
{
|
|
3907
3912
|
db: e,
|
|
3908
3913
|
item: {},
|
|
3909
|
-
namespace:
|
|
3914
|
+
namespace: i,
|
|
3910
3915
|
onClose: () => B(!1)
|
|
3911
3916
|
}
|
|
3912
3917
|
) : null
|
|
@@ -3915,13 +3920,14 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3915
3920
|
/* @__PURE__ */ r(
|
|
3916
3921
|
fe,
|
|
3917
3922
|
{
|
|
3923
|
+
title: "Edit Row",
|
|
3918
3924
|
open: !!mt,
|
|
3919
3925
|
onClose: () => _(null),
|
|
3920
|
-
children:
|
|
3926
|
+
children: i && mt ? /* @__PURE__ */ r(
|
|
3921
3927
|
rr,
|
|
3922
3928
|
{
|
|
3923
3929
|
db: e,
|
|
3924
|
-
namespace:
|
|
3930
|
+
namespace: i,
|
|
3925
3931
|
item: mt,
|
|
3926
3932
|
onClose: () => _(null)
|
|
3927
3933
|
}
|
|
@@ -3931,16 +3937,17 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3931
3937
|
/* @__PURE__ */ r(
|
|
3932
3938
|
fe,
|
|
3933
3939
|
{
|
|
3940
|
+
title: "Edit Namespace",
|
|
3934
3941
|
stopFocusPropagation: !0,
|
|
3935
3942
|
open: !!v,
|
|
3936
3943
|
onClose: () => k(null),
|
|
3937
|
-
children:
|
|
3938
|
-
|
|
3944
|
+
children: i ? /* @__PURE__ */ r(
|
|
3945
|
+
to,
|
|
3939
3946
|
{
|
|
3940
3947
|
readOnly: S,
|
|
3941
3948
|
isSystemCatalogNs: z,
|
|
3942
3949
|
db: e,
|
|
3943
|
-
namespace:
|
|
3950
|
+
namespace: i,
|
|
3944
3951
|
namespaces: t ?? [],
|
|
3945
3952
|
onClose: (E) => {
|
|
3946
3953
|
k(null), E?.ok && n.push({ namespace: t?.[0].id });
|
|
@@ -3960,7 +3967,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3960
3967
|
onClick: () => n.pop()
|
|
3961
3968
|
}
|
|
3962
3969
|
) : null,
|
|
3963
|
-
|
|
3970
|
+
l.where ? /* @__PURE__ */ r(
|
|
3964
3971
|
lr,
|
|
3965
3972
|
{
|
|
3966
3973
|
className: "mr-4 inline cursor-pointer",
|
|
@@ -3968,7 +3975,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3968
3975
|
onClick: () => {
|
|
3969
3976
|
n.push(
|
|
3970
3977
|
{
|
|
3971
|
-
namespace:
|
|
3978
|
+
namespace: i.id
|
|
3972
3979
|
},
|
|
3973
3980
|
!0
|
|
3974
3981
|
);
|
|
@@ -3976,21 +3983,21 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3976
3983
|
}
|
|
3977
3984
|
) : null,
|
|
3978
3985
|
/* @__PURE__ */ h("div", { className: "text-ellipses shrink truncate overflow-hidden font-mono text-xs whitespace-nowrap dark:text-white", children: [
|
|
3979
|
-
/* @__PURE__ */ r("strong", { children:
|
|
3986
|
+
/* @__PURE__ */ r("strong", { children: i.name }),
|
|
3980
3987
|
" ",
|
|
3981
|
-
|
|
3988
|
+
l.where ? /* @__PURE__ */ h(M, { children: [
|
|
3982
3989
|
" ",
|
|
3983
3990
|
"where ",
|
|
3984
|
-
/* @__PURE__ */ r("strong", { children:
|
|
3991
|
+
/* @__PURE__ */ r("strong", { children: l.where[0] }),
|
|
3985
3992
|
" =",
|
|
3986
3993
|
" ",
|
|
3987
|
-
/* @__PURE__ */ r("em", { className: "rounded-xs border bg-white px-1 dark:border-neutral-700 dark:bg-neutral-800 dark:text-white", children: JSON.stringify(
|
|
3994
|
+
/* @__PURE__ */ r("em", { className: "rounded-xs border bg-white px-1 dark:border-neutral-700 dark:bg-neutral-800 dark:text-white", children: JSON.stringify(l.where[1]) })
|
|
3988
3995
|
] }) : null,
|
|
3989
|
-
|
|
3996
|
+
l?.filters?.length ? /* @__PURE__ */ r(
|
|
3990
3997
|
"span",
|
|
3991
3998
|
{
|
|
3992
|
-
title:
|
|
3993
|
-
children:
|
|
3999
|
+
title: l.filters.map(([E, N, R]) => `${E} ${N} ${R}`).join(" || "),
|
|
4000
|
+
children: l.filters.map(([E, N, R], $) => /* @__PURE__ */ h("span", { children: [
|
|
3994
4001
|
/* @__PURE__ */ h("em", { className: "rounded-xs border bg-white px-1 dark:border-neutral-700 dark:bg-neutral-800 dark:text-white", children: [
|
|
3995
4002
|
E,
|
|
3996
4003
|
" ",
|
|
@@ -3998,7 +4005,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
3998
4005
|
" ",
|
|
3999
4006
|
R
|
|
4000
4007
|
] }),
|
|
4001
|
-
|
|
4008
|
+
l?.filters?.length && $ < l.filters.length - 1 ? " || " : null
|
|
4002
4009
|
] }, E))
|
|
4003
4010
|
}
|
|
4004
4011
|
) : null
|
|
@@ -4012,23 +4019,23 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4012
4019
|
variant: "secondary",
|
|
4013
4020
|
size: "mini",
|
|
4014
4021
|
onClick: () => {
|
|
4015
|
-
k(
|
|
4022
|
+
k(i);
|
|
4016
4023
|
},
|
|
4017
4024
|
children: "Edit Schema"
|
|
4018
4025
|
}
|
|
4019
4026
|
),
|
|
4020
4027
|
/* @__PURE__ */ r(
|
|
4021
|
-
|
|
4028
|
+
Fn,
|
|
4022
4029
|
{
|
|
4023
4030
|
onSearchChange: (E) => Q(E),
|
|
4024
|
-
attrs:
|
|
4025
|
-
initialFilters:
|
|
4031
|
+
attrs: i?.attrs,
|
|
4032
|
+
initialFilters: l?.filters || []
|
|
4026
4033
|
},
|
|
4027
4034
|
sa
|
|
4028
4035
|
)
|
|
4029
4036
|
] })
|
|
4030
4037
|
] }) }),
|
|
4031
|
-
|
|
4038
|
+
i.name === "$files" ? /* @__PURE__ */ r("div", { className: "flex gap-2 px-2 py-2", children: /* @__PURE__ */ h("div", { className: "flex w-full gap-2", children: [
|
|
4032
4039
|
/* @__PURE__ */ h("div", { className: "flex shrink-0 gap-2", children: [
|
|
4033
4040
|
/* @__PURE__ */ r(
|
|
4034
4041
|
"input",
|
|
@@ -4070,18 +4077,18 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4070
4077
|
] })
|
|
4071
4078
|
] }) }) : null,
|
|
4072
4079
|
/* @__PURE__ */ h("div", { className: "flex items-center justify-start space-x-2 border-b border-b-gray-200 p-1 text-xs dark:border-neutral-700 dark:text-white", children: [
|
|
4073
|
-
|
|
4080
|
+
i.name !== "$files" ? /* @__PURE__ */ h(
|
|
4074
4081
|
V,
|
|
4075
4082
|
{
|
|
4076
4083
|
disabled: S,
|
|
4077
|
-
title: S ? `The ${
|
|
4084
|
+
title: S ? `The ${i?.name} namespace is read-only.` : void 0,
|
|
4078
4085
|
size: "mini",
|
|
4079
4086
|
variant: "secondary",
|
|
4080
4087
|
onClick: () => {
|
|
4081
4088
|
B(!0);
|
|
4082
4089
|
},
|
|
4083
4090
|
children: [
|
|
4084
|
-
/* @__PURE__ */ r(
|
|
4091
|
+
/* @__PURE__ */ r(Da, { width: 12 }),
|
|
4085
4092
|
"Add row"
|
|
4086
4093
|
]
|
|
4087
4094
|
}
|
|
@@ -4091,7 +4098,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4091
4098
|
{
|
|
4092
4099
|
className: O(
|
|
4093
4100
|
"px-1",
|
|
4094
|
-
|
|
4101
|
+
i.name === "$files" && "pb-1"
|
|
4095
4102
|
),
|
|
4096
4103
|
children: /* @__PURE__ */ r(
|
|
4097
4104
|
we,
|
|
@@ -4131,7 +4138,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4131
4138
|
onClick: () => {
|
|
4132
4139
|
G({
|
|
4133
4140
|
...q,
|
|
4134
|
-
[
|
|
4141
|
+
[i.name]: Math.max(0, T - g)
|
|
4135
4142
|
}), n.push((E) => ({
|
|
4136
4143
|
...E,
|
|
4137
4144
|
page: Math.max(1, Z - 1)
|
|
@@ -4160,7 +4167,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4160
4167
|
onClick: () => {
|
|
4161
4168
|
G({
|
|
4162
4169
|
...q,
|
|
4163
|
-
[
|
|
4170
|
+
[i.name]: N * g
|
|
4164
4171
|
}), n.push(($) => ({
|
|
4165
4172
|
...$,
|
|
4166
4173
|
page: R
|
|
@@ -4180,14 +4187,14 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4180
4187
|
onClick: () => {
|
|
4181
4188
|
G({
|
|
4182
4189
|
...q,
|
|
4183
|
-
[
|
|
4190
|
+
[i.name]: T + g
|
|
4184
4191
|
}), n.push((E) => ({
|
|
4185
4192
|
...E,
|
|
4186
4193
|
page: Math.min(ce, Z + 1)
|
|
4187
4194
|
}));
|
|
4188
4195
|
},
|
|
4189
4196
|
children: /* @__PURE__ */ r(
|
|
4190
|
-
|
|
4197
|
+
La,
|
|
4191
4198
|
{
|
|
4192
4199
|
className: O("inline", {
|
|
4193
4200
|
"opacity-40": Z >= ce
|
|
@@ -4207,7 +4214,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4207
4214
|
},
|
|
4208
4215
|
variant: "secondary",
|
|
4209
4216
|
children: [
|
|
4210
|
-
/* @__PURE__ */ r(
|
|
4217
|
+
/* @__PURE__ */ r(xa, { width: 14 }),
|
|
4211
4218
|
"Export (",
|
|
4212
4219
|
Fe,
|
|
4213
4220
|
")"
|
|
@@ -4231,16 +4238,16 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4231
4238
|
re,
|
|
4232
4239
|
xe
|
|
4233
4240
|
);
|
|
4234
|
-
|
|
4241
|
+
No(
|
|
4235
4242
|
N,
|
|
4236
4243
|
De,
|
|
4237
|
-
|
|
4244
|
+
i.name,
|
|
4238
4245
|
Se
|
|
4239
4246
|
), $e(!1);
|
|
4240
4247
|
},
|
|
4241
4248
|
className: "flex items-center gap-2",
|
|
4242
4249
|
children: [
|
|
4243
|
-
/* @__PURE__ */ r(
|
|
4250
|
+
/* @__PURE__ */ r(Fa, { width: 12 }),
|
|
4244
4251
|
Se ? "Download as CSV" : "Copy as CSV"
|
|
4245
4252
|
]
|
|
4246
4253
|
}
|
|
@@ -4254,16 +4261,16 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4254
4261
|
re,
|
|
4255
4262
|
xe
|
|
4256
4263
|
);
|
|
4257
|
-
|
|
4264
|
+
Eo(
|
|
4258
4265
|
N,
|
|
4259
4266
|
De,
|
|
4260
|
-
|
|
4267
|
+
i.name,
|
|
4261
4268
|
Se
|
|
4262
4269
|
), $e(!1);
|
|
4263
4270
|
},
|
|
4264
4271
|
className: "flex items-center gap-2",
|
|
4265
4272
|
children: [
|
|
4266
|
-
/* @__PURE__ */ r(
|
|
4273
|
+
/* @__PURE__ */ r($a, { width: 12 }),
|
|
4267
4274
|
Se ? "Download as Markdown" : "Copy as Markdown"
|
|
4268
4275
|
]
|
|
4269
4276
|
}
|
|
@@ -4277,16 +4284,16 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4277
4284
|
re,
|
|
4278
4285
|
xe
|
|
4279
4286
|
);
|
|
4280
|
-
|
|
4287
|
+
Co(
|
|
4281
4288
|
N,
|
|
4282
4289
|
De,
|
|
4283
|
-
|
|
4290
|
+
i.name,
|
|
4284
4291
|
Se
|
|
4285
4292
|
), $e(!1);
|
|
4286
4293
|
},
|
|
4287
4294
|
className: "flex items-center gap-2",
|
|
4288
4295
|
children: [
|
|
4289
|
-
/* @__PURE__ */ r(
|
|
4296
|
+
/* @__PURE__ */ r(za, { width: 12 }),
|
|
4290
4297
|
Se ? "Download as JSON" : "Copy as JSON"
|
|
4291
4298
|
]
|
|
4292
4299
|
}
|
|
@@ -4315,7 +4322,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4315
4322
|
className: "px-2",
|
|
4316
4323
|
variant: "destructive",
|
|
4317
4324
|
children: [
|
|
4318
|
-
/* @__PURE__ */ r(
|
|
4325
|
+
/* @__PURE__ */ r(Sa, { width: 14 }),
|
|
4319
4326
|
"Delete Selected Rows"
|
|
4320
4327
|
]
|
|
4321
4328
|
}
|
|
@@ -4323,7 +4330,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4323
4330
|
] }),
|
|
4324
4331
|
/* @__PURE__ */ r("div", { className: "grow" }),
|
|
4325
4332
|
/* @__PURE__ */ r("div", { className: "px-2", children: /* @__PURE__ */ r(
|
|
4326
|
-
|
|
4333
|
+
Xn,
|
|
4327
4334
|
{
|
|
4328
4335
|
localDates: ke,
|
|
4329
4336
|
setLocalDates: Kr,
|
|
@@ -4332,10 +4339,10 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4332
4339
|
) })
|
|
4333
4340
|
] }),
|
|
4334
4341
|
/* @__PURE__ */ r(
|
|
4335
|
-
|
|
4342
|
+
cn,
|
|
4336
4343
|
{
|
|
4337
|
-
collisionDetection:
|
|
4338
|
-
modifiers: [
|
|
4344
|
+
collisionDetection: un,
|
|
4345
|
+
modifiers: [mn],
|
|
4339
4346
|
onDragEnd: na,
|
|
4340
4347
|
sensors: oa,
|
|
4341
4348
|
children: /* @__PURE__ */ h("div", { className: "relative flex-1 overflow-hidden bg-neutral-100 dark:bg-neutral-900/50", children: [
|
|
@@ -4376,7 +4383,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4376
4383
|
items: Le,
|
|
4377
4384
|
strategy: Wt,
|
|
4378
4385
|
children: E.headers.map((N, R) => /* @__PURE__ */ r(
|
|
4379
|
-
|
|
4386
|
+
Vn,
|
|
4380
4387
|
{
|
|
4381
4388
|
header: N,
|
|
4382
4389
|
table: ae,
|
|
@@ -4390,8 +4397,8 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4390
4397
|
sortAsc: U !== $ ? !0 : !K
|
|
4391
4398
|
}));
|
|
4392
4399
|
},
|
|
4393
|
-
currentSortAttr:
|
|
4394
|
-
currentSortAsc:
|
|
4400
|
+
currentSortAttr: l?.sortAttr,
|
|
4401
|
+
currentSortAsc: l?.sortAsc
|
|
4395
4402
|
},
|
|
4396
4403
|
N.id
|
|
4397
4404
|
))
|
|
@@ -4406,7 +4413,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4406
4413
|
{
|
|
4407
4414
|
items: Le,
|
|
4408
4415
|
strategy: Wt,
|
|
4409
|
-
children: /* @__PURE__ */ r(
|
|
4416
|
+
children: /* @__PURE__ */ r(Yn, { cell: N }, N.id)
|
|
4410
4417
|
},
|
|
4411
4418
|
N.id
|
|
4412
4419
|
))
|
|
@@ -4422,7 +4429,7 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4422
4429
|
className: "opacity-60",
|
|
4423
4430
|
labelDirection: "bottom",
|
|
4424
4431
|
label: "Fill Width",
|
|
4425
|
-
icon: /* @__PURE__ */ r(
|
|
4432
|
+
icon: /* @__PURE__ */ r(ja, {}),
|
|
4426
4433
|
onClick: ea
|
|
4427
4434
|
}
|
|
4428
4435
|
) })
|
|
@@ -4433,19 +4440,19 @@ const Eo = ({ db: e, namespaces: t }) => {
|
|
|
4433
4440
|
] })
|
|
4434
4441
|
] });
|
|
4435
4442
|
};
|
|
4436
|
-
function
|
|
4443
|
+
function Ao(e, t) {
|
|
4437
4444
|
return Ne(e) ? JSON.stringify(e, null, t ? 2 : void 0) : String(e);
|
|
4438
4445
|
}
|
|
4439
|
-
function
|
|
4440
|
-
const a = de(), n =
|
|
4446
|
+
function Ro({ data: e, pretty: t }) {
|
|
4447
|
+
const a = de(), n = Ao(e, t);
|
|
4441
4448
|
return t && Ne(e) ? /* @__PURE__ */ r(Dt, { darkMode: a.darkMode, code: n, language: "json" }) : /* @__PURE__ */ r(M, { children: n });
|
|
4442
4449
|
}
|
|
4443
4450
|
async function Lr(e, t) {
|
|
4444
4451
|
const a = await fetch(e, t), n = await a.json();
|
|
4445
4452
|
return a.status === 200 ? Promise.resolve(n) : Promise.reject({ status: a.status, body: n });
|
|
4446
4453
|
}
|
|
4447
|
-
async function
|
|
4448
|
-
const
|
|
4454
|
+
async function To(e, t, a, n, o) {
|
|
4455
|
+
const l = {
|
|
4449
4456
|
app_id: t,
|
|
4450
4457
|
path: n || a.name,
|
|
4451
4458
|
authorization: `Bearer ${e}`,
|
|
@@ -4453,11 +4460,11 @@ async function Ao(e, t, a, n, o) {
|
|
|
4453
4460
|
};
|
|
4454
4461
|
return await Lr(`${o}/dash/apps/${t}/storage/upload`, {
|
|
4455
4462
|
method: "PUT",
|
|
4456
|
-
headers:
|
|
4463
|
+
headers: l,
|
|
4457
4464
|
body: a
|
|
4458
4465
|
});
|
|
4459
4466
|
}
|
|
4460
|
-
async function
|
|
4467
|
+
async function Oo(e, t, a, n) {
|
|
4461
4468
|
const { data: o } = await Lr(
|
|
4462
4469
|
`${n}/dash/apps/${t}/storage/files/delete`,
|
|
4463
4470
|
{
|
|
@@ -4471,7 +4478,7 @@ async function Ro(e, t, a, n) {
|
|
|
4471
4478
|
);
|
|
4472
4479
|
return o;
|
|
4473
4480
|
}
|
|
4474
|
-
function
|
|
4481
|
+
function _o(e, t) {
|
|
4475
4482
|
const a = (n) => {
|
|
4476
4483
|
e.current && n.target instanceof HTMLElement && !e.current.contains(n.target) && t();
|
|
4477
4484
|
};
|
|
@@ -4479,18 +4486,18 @@ function To(e, t) {
|
|
|
4479
4486
|
document.removeEventListener("click", a);
|
|
4480
4487
|
}));
|
|
4481
4488
|
}
|
|
4482
|
-
const
|
|
4489
|
+
const Do = ({
|
|
4483
4490
|
namespaces: e,
|
|
4484
4491
|
db: t
|
|
4485
4492
|
}) => {
|
|
4486
|
-
const a = de(), n = it(), o = it(),
|
|
4493
|
+
const a = de(), n = it(), o = it(), l = e.find(
|
|
4487
4494
|
(f) => f.id === a.explorerState?.namespace
|
|
4488
|
-
), [
|
|
4489
|
-
|
|
4495
|
+
), [i, g] = C(!1), c = X(null);
|
|
4496
|
+
_o(c, () => {
|
|
4490
4497
|
g(!1);
|
|
4491
4498
|
}), H(() => {
|
|
4492
|
-
!
|
|
4493
|
-
}, [
|
|
4499
|
+
!l && e.length > 0 && a.setExplorerState({ namespace: e[0].id });
|
|
4500
|
+
}, [l, e, a]);
|
|
4494
4501
|
const p = Ir(a.appId);
|
|
4495
4502
|
return /* @__PURE__ */ h(
|
|
4496
4503
|
"div",
|
|
@@ -4500,9 +4507,9 @@ const Oo = ({
|
|
|
4500
4507
|
a.className
|
|
4501
4508
|
),
|
|
4502
4509
|
children: [
|
|
4503
|
-
/* @__PURE__ */ r(fe, { ...n, children: /* @__PURE__ */ r(
|
|
4504
|
-
/* @__PURE__ */ r(fe, { ...o, children: /* @__PURE__ */ r(
|
|
4505
|
-
|
|
4510
|
+
/* @__PURE__ */ r(fe, { title: "Recently Deleted Namespaces", ...n, children: /* @__PURE__ */ r(Cn, { appId: a.appId, db: t }) }),
|
|
4511
|
+
/* @__PURE__ */ r(fe, { title: "New Namespace", ...o, children: /* @__PURE__ */ r(
|
|
4512
|
+
Tn,
|
|
4506
4513
|
{
|
|
4507
4514
|
db: t,
|
|
4508
4515
|
onClose: (f) => {
|
|
@@ -4517,13 +4524,13 @@ const Oo = ({
|
|
|
4517
4524
|
className: O(
|
|
4518
4525
|
"absolute top-0 bottom-0 left-0 z-40 flex min-w-[200px] flex-col gap-1 border-r border-solid border-r-gray-200 bg-white p-2 shadow-md md:static md:flex md:shadow-none dark:border-neutral-700 dark:bg-neutral-800 dark:text-white",
|
|
4519
4526
|
{
|
|
4520
|
-
hidden: !
|
|
4527
|
+
hidden: !i
|
|
4521
4528
|
}
|
|
4522
4529
|
),
|
|
4523
4530
|
children: [
|
|
4524
4531
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-1 text-sm font-semibold dark:text-white", children: [
|
|
4525
4532
|
/* @__PURE__ */ r(
|
|
4526
|
-
|
|
4533
|
+
Ya,
|
|
4527
4534
|
{
|
|
4528
4535
|
height: "1rem",
|
|
4529
4536
|
className: "cursor-pointer md:hidden dark:text-white",
|
|
@@ -4590,20 +4597,20 @@ const Oo = ({
|
|
|
4590
4597
|
onClick: (f) => {
|
|
4591
4598
|
f.stopPropagation(), g(!0);
|
|
4592
4599
|
},
|
|
4593
|
-
children: /* @__PURE__ */ r(
|
|
4600
|
+
children: /* @__PURE__ */ r(Ka, { height: "1rem", className: "dark:text-white" })
|
|
4594
4601
|
}
|
|
4595
4602
|
) }),
|
|
4596
|
-
a.explorerState && /* @__PURE__ */ r(
|
|
4603
|
+
a.explorerState && /* @__PURE__ */ r(Io, { namespaces: e, db: t })
|
|
4597
4604
|
]
|
|
4598
4605
|
}
|
|
4599
4606
|
);
|
|
4600
|
-
},
|
|
4607
|
+
}, Lo = ({
|
|
4601
4608
|
appId: e,
|
|
4602
4609
|
apiURI: t,
|
|
4603
4610
|
websocketURI: a,
|
|
4604
4611
|
adminToken: n
|
|
4605
4612
|
}) => se(
|
|
4606
|
-
() =>
|
|
4613
|
+
() => nn({
|
|
4607
4614
|
appId: e,
|
|
4608
4615
|
apiURI: t,
|
|
4609
4616
|
websocketURI: a,
|
|
@@ -4613,7 +4620,7 @@ const Oo = ({
|
|
|
4613
4620
|
}),
|
|
4614
4621
|
[e, t, a, n]
|
|
4615
4622
|
);
|
|
4616
|
-
class
|
|
4623
|
+
class Fo extends dr {
|
|
4617
4624
|
state = {
|
|
4618
4625
|
hasError: !1,
|
|
4619
4626
|
error: null
|
|
@@ -4630,7 +4637,7 @@ class Do extends dr {
|
|
|
4630
4637
|
render() {
|
|
4631
4638
|
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: [
|
|
4632
4639
|
/* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-3 text-center", children: [
|
|
4633
|
-
/* @__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(
|
|
4640
|
+
/* @__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(Na, { className: "h-6 w-6 text-red-600 dark:text-red-400" }) }),
|
|
4634
4641
|
/* @__PURE__ */ h("div", { className: "flex flex-col gap-1", children: [
|
|
4635
4642
|
/* @__PURE__ */ r("h2", { className: "text-lg font-semibold text-gray-900 dark:text-white", children: "Something went wrong" }),
|
|
4636
4643
|
/* @__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." })
|
|
@@ -4667,7 +4674,7 @@ const At = cr({ props: null, history: { push: () => {
|
|
|
4667
4674
|
"useExplorerProps must be used within an Explorer component"
|
|
4668
4675
|
);
|
|
4669
4676
|
return { explorerState: e.props.explorerState, history: e.history };
|
|
4670
|
-
}, Fr = (e) => e.explorerState !== void 0 || e.setExplorerState !== void 0,
|
|
4677
|
+
}, Fr = (e) => e.explorerState !== void 0 || e.setExplorerState !== void 0, $o = (e, t, a) => {
|
|
4671
4678
|
const n = Fr(e);
|
|
4672
4679
|
return {
|
|
4673
4680
|
...e,
|
|
@@ -4680,27 +4687,32 @@ const At = cr({ props: null, history: { push: () => {
|
|
|
4680
4687
|
setExplorerState: e.setExplorerState || a,
|
|
4681
4688
|
useShadowDOM: e.useShadowDOM || !1
|
|
4682
4689
|
};
|
|
4683
|
-
},
|
|
4690
|
+
}, Vi = (e) => {
|
|
4684
4691
|
const [t, a] = C(
|
|
4685
4692
|
null
|
|
4686
|
-
), n =
|
|
4693
|
+
), n = $o(
|
|
4687
4694
|
e,
|
|
4688
4695
|
t,
|
|
4689
4696
|
a
|
|
4690
|
-
)
|
|
4697
|
+
);
|
|
4698
|
+
if (!n.adminToken)
|
|
4699
|
+
throw new Error("adminToken is required for explorer");
|
|
4700
|
+
if (!n.appId)
|
|
4701
|
+
throw new Error("appId is required for explorer");
|
|
4702
|
+
const { explorerState: o, setExplorerState: l } = n, [i, g] = C([]), c = at(
|
|
4691
4703
|
(w, v = !1) => {
|
|
4692
|
-
g((k) => !v && o ? [...k, o] : k),
|
|
4704
|
+
g((k) => !v && o ? [...k, o] : k), l(w);
|
|
4693
4705
|
},
|
|
4694
|
-
[o,
|
|
4706
|
+
[o, l]
|
|
4695
4707
|
), p = at(() => {
|
|
4696
4708
|
g((w) => {
|
|
4697
4709
|
if (w.length > 0) {
|
|
4698
4710
|
const [v, ...k] = w;
|
|
4699
|
-
return
|
|
4711
|
+
return l(v), k;
|
|
4700
4712
|
}
|
|
4701
4713
|
return w;
|
|
4702
4714
|
});
|
|
4703
|
-
}, [
|
|
4715
|
+
}, [l]), f = Lo({
|
|
4704
4716
|
appId: n.appId,
|
|
4705
4717
|
apiURI: n.apiURI,
|
|
4706
4718
|
websocketURI: n.websocketURI,
|
|
@@ -4713,18 +4725,18 @@ const At = cr({ props: null, history: { push: () => {
|
|
|
4713
4725
|
}
|
|
4714
4726
|
u.current !== n.appId && (u.current = n.appId, g([]), Fr(e) || a(null));
|
|
4715
4727
|
}, [n.appId, e]);
|
|
4716
|
-
const s =
|
|
4728
|
+
const s = Bn(f), m = se(
|
|
4717
4729
|
() => ({
|
|
4718
4730
|
props: n,
|
|
4719
4731
|
history: {
|
|
4720
4732
|
push: c,
|
|
4721
4733
|
pop: p,
|
|
4722
|
-
items:
|
|
4734
|
+
items: i
|
|
4723
4735
|
}
|
|
4724
4736
|
}),
|
|
4725
|
-
[n, c, p,
|
|
4726
|
-
), b = n.useShadowDOM ?
|
|
4727
|
-
return /* @__PURE__ */ r(At.Provider, { value: m, children: /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(
|
|
4737
|
+
[n, c, p, i]
|
|
4738
|
+
), b = n.useShadowDOM ? zo : sr.Fragment;
|
|
4739
|
+
return /* @__PURE__ */ r(At.Provider, { value: m, children: /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(Fo, { children: /* @__PURE__ */ r(Do, { db: f, namespaces: s.namespaces || [] }) }) }) });
|
|
4728
4740
|
}, Rt = cr({
|
|
4729
4741
|
shadowRoot: null,
|
|
4730
4742
|
container: null,
|
|
@@ -4736,38 +4748,38 @@ function ct() {
|
|
|
4736
4748
|
function ut() {
|
|
4737
4749
|
return lt(Rt).darkMode;
|
|
4738
4750
|
}
|
|
4739
|
-
const
|
|
4740
|
-
const t = X(null), a = X(null), [n, o] = C(null),
|
|
4751
|
+
const zo = ({ children: e }) => {
|
|
4752
|
+
const t = X(null), a = X(null), [n, o] = C(null), i = de().darkMode;
|
|
4741
4753
|
H(() => {
|
|
4742
4754
|
if (t.current && !n)
|
|
4743
4755
|
try {
|
|
4744
4756
|
const c = t.current.attachShadow({ mode: "open" });
|
|
4745
4757
|
a.current = c;
|
|
4746
4758
|
const p = document.createElement("style");
|
|
4747
|
-
p.textContent =
|
|
4759
|
+
p.textContent = Sn;
|
|
4748
4760
|
const f = document.createElement("div");
|
|
4749
|
-
f.setAttribute("class",
|
|
4761
|
+
f.setAttribute("class", i ? "h-full dark" : "h-full"), c.appendChild(p), c.appendChild(f), o(f);
|
|
4750
4762
|
} catch {
|
|
4751
4763
|
}
|
|
4752
4764
|
}, [n]), H(() => {
|
|
4753
|
-
n && n.setAttribute("class",
|
|
4754
|
-
}, [
|
|
4765
|
+
n && n.setAttribute("class", i ? "h-full dark" : "h-full");
|
|
4766
|
+
}, [i, n]);
|
|
4755
4767
|
const g = sr.useMemo(
|
|
4756
4768
|
() => ({
|
|
4757
4769
|
shadowRoot: a.current,
|
|
4758
4770
|
container: n,
|
|
4759
|
-
darkMode:
|
|
4771
|
+
darkMode: i
|
|
4760
4772
|
}),
|
|
4761
|
-
[n,
|
|
4773
|
+
[n, i]
|
|
4762
4774
|
);
|
|
4763
|
-
return /* @__PURE__ */ r("div", { ref: t, style: { height: "100%" }, className: O("h-full"), children: /* @__PURE__ */ r(Rt.Provider, { value: g, children: n ?
|
|
4775
|
+
return /* @__PURE__ */ r("div", { ref: t, style: { height: "100%" }, className: O("h-full"), children: /* @__PURE__ */ r(Rt.Provider, { value: g, children: n ? Oa(e, n) : null }) });
|
|
4764
4776
|
};
|
|
4765
|
-
function
|
|
4777
|
+
function jo({
|
|
4766
4778
|
...e
|
|
4767
4779
|
}) {
|
|
4768
4780
|
return /* @__PURE__ */ r(le.Root, { "data-slot": "select", ...e });
|
|
4769
4781
|
}
|
|
4770
|
-
function
|
|
4782
|
+
function Mo({
|
|
4771
4783
|
...e
|
|
4772
4784
|
}) {
|
|
4773
4785
|
return /* @__PURE__ */ r(
|
|
@@ -4779,7 +4791,7 @@ function zo({
|
|
|
4779
4791
|
}
|
|
4780
4792
|
);
|
|
4781
4793
|
}
|
|
4782
|
-
function
|
|
4794
|
+
function Bo({
|
|
4783
4795
|
className: e,
|
|
4784
4796
|
size: t = "default",
|
|
4785
4797
|
children: a,
|
|
@@ -4802,13 +4814,13 @@ function jo({
|
|
|
4802
4814
|
}
|
|
4803
4815
|
);
|
|
4804
4816
|
}
|
|
4805
|
-
function
|
|
4817
|
+
function Uo({
|
|
4806
4818
|
className: e,
|
|
4807
4819
|
children: t,
|
|
4808
4820
|
position: a = "popper",
|
|
4809
4821
|
...n
|
|
4810
4822
|
}) {
|
|
4811
|
-
const o = ct(),
|
|
4823
|
+
const o = ct(), l = ut();
|
|
4812
4824
|
return /* @__PURE__ */ r(le.Portal, { container: o, children: /* @__PURE__ */ h(
|
|
4813
4825
|
le.Content,
|
|
4814
4826
|
{
|
|
@@ -4816,13 +4828,13 @@ function Mo({
|
|
|
4816
4828
|
className: O(
|
|
4817
4829
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-sm border bg-gray-100 text-gray-900 shadow-md dark:border-neutral-700 dark:bg-neutral-800 dark:text-white",
|
|
4818
4830
|
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
4819
|
-
|
|
4831
|
+
l ? "dark" : "",
|
|
4820
4832
|
e
|
|
4821
4833
|
),
|
|
4822
4834
|
position: a,
|
|
4823
4835
|
...n,
|
|
4824
4836
|
children: [
|
|
4825
|
-
/* @__PURE__ */ r(
|
|
4837
|
+
/* @__PURE__ */ r(qo, {}),
|
|
4826
4838
|
/* @__PURE__ */ r(
|
|
4827
4839
|
le.Viewport,
|
|
4828
4840
|
{
|
|
@@ -4833,12 +4845,12 @@ function Mo({
|
|
|
4833
4845
|
children: t
|
|
4834
4846
|
}
|
|
4835
4847
|
),
|
|
4836
|
-
/* @__PURE__ */ r(
|
|
4848
|
+
/* @__PURE__ */ r(Go, {})
|
|
4837
4849
|
]
|
|
4838
4850
|
}
|
|
4839
4851
|
) });
|
|
4840
4852
|
}
|
|
4841
|
-
function
|
|
4853
|
+
function Po({
|
|
4842
4854
|
className: e,
|
|
4843
4855
|
children: t,
|
|
4844
4856
|
...a
|
|
@@ -4853,13 +4865,13 @@ function Bo({
|
|
|
4853
4865
|
),
|
|
4854
4866
|
...a,
|
|
4855
4867
|
children: [
|
|
4856
|
-
/* @__PURE__ */ r("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(le.ItemIndicator, { children: /* @__PURE__ */ r(
|
|
4868
|
+
/* @__PURE__ */ r("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r(le.ItemIndicator, { children: /* @__PURE__ */ r(Ea, { width: 12, className: "size-4" }) }) }),
|
|
4857
4869
|
/* @__PURE__ */ r(le.ItemText, { children: t })
|
|
4858
4870
|
]
|
|
4859
4871
|
}
|
|
4860
4872
|
);
|
|
4861
4873
|
}
|
|
4862
|
-
function
|
|
4874
|
+
function qo({
|
|
4863
4875
|
className: e,
|
|
4864
4876
|
...t
|
|
4865
4877
|
}) {
|
|
@@ -4872,11 +4884,11 @@ function Uo({
|
|
|
4872
4884
|
e
|
|
4873
4885
|
),
|
|
4874
4886
|
...t,
|
|
4875
|
-
children: /* @__PURE__ */ r(
|
|
4887
|
+
children: /* @__PURE__ */ r(Ca, { className: "size-4" })
|
|
4876
4888
|
}
|
|
4877
4889
|
);
|
|
4878
4890
|
}
|
|
4879
|
-
function
|
|
4891
|
+
function Go({
|
|
4880
4892
|
className: e,
|
|
4881
4893
|
...t
|
|
4882
4894
|
}) {
|
|
@@ -5251,7 +5263,7 @@ var xt = function() {
|
|
|
5251
5263
|
delete u.rest;
|
|
5252
5264
|
}
|
|
5253
5265
|
var b = new g();
|
|
5254
|
-
return c(b, b.head, d),
|
|
5266
|
+
return c(b, b.head, d), i(d, b, u, b.head, 0), f(b);
|
|
5255
5267
|
},
|
|
5256
5268
|
/**
|
|
5257
5269
|
* @namespace
|
|
@@ -5320,7 +5332,7 @@ var xt = function() {
|
|
|
5320
5332
|
v += " " + k + '="' + (b.attributes[k] || "").replace(/"/g, """) + '"';
|
|
5321
5333
|
return "<" + b.tag + ' class="' + b.classes.join(" ") + '"' + v + ">" + b.content + "</" + b.tag + ">";
|
|
5322
5334
|
};
|
|
5323
|
-
function
|
|
5335
|
+
function l(d, u, s, m) {
|
|
5324
5336
|
d.lastIndex = u;
|
|
5325
5337
|
var b = d.exec(s);
|
|
5326
5338
|
if (b && m && b[1]) {
|
|
@@ -5329,7 +5341,7 @@ var xt = function() {
|
|
|
5329
5341
|
}
|
|
5330
5342
|
return b;
|
|
5331
5343
|
}
|
|
5332
|
-
function
|
|
5344
|
+
function i(d, u, s, m, b, w) {
|
|
5333
5345
|
for (var v in s)
|
|
5334
5346
|
if (!(!s.hasOwnProperty(v) || !s[v])) {
|
|
5335
5347
|
var k = s[v];
|
|
@@ -5349,7 +5361,7 @@ var xt = function() {
|
|
|
5349
5361
|
if (!(S instanceof o)) {
|
|
5350
5362
|
var T = 1, I;
|
|
5351
5363
|
if (L) {
|
|
5352
|
-
if (I =
|
|
5364
|
+
if (I = l(Y, j, d, B), !I || I.index >= d.length)
|
|
5353
5365
|
break;
|
|
5354
5366
|
var Q = I.index, A = I.index + I[0].length, D = j;
|
|
5355
5367
|
for (D += z.value.length; Q >= D; )
|
|
@@ -5359,7 +5371,7 @@ var xt = function() {
|
|
|
5359
5371
|
for (var F = z; F !== u.tail && (D < A || typeof F.value == "string"); F = F.next)
|
|
5360
5372
|
T++, D += F.value.length;
|
|
5361
5373
|
T--, S = d.slice(j, D), I.index -= j;
|
|
5362
|
-
} else if (I =
|
|
5374
|
+
} else if (I = l(Y, 0, S, B), !I)
|
|
5363
5375
|
continue;
|
|
5364
5376
|
var Q = I.index, te = I[0], W = S.slice(0, Q), re = S.slice(Q + te.length), ye = j + S.length;
|
|
5365
5377
|
w && ye > w.reach && (w.reach = ye);
|
|
@@ -5371,7 +5383,7 @@ var xt = function() {
|
|
|
5371
5383
|
cause: v + "," + x,
|
|
5372
5384
|
reach: ye
|
|
5373
5385
|
};
|
|
5374
|
-
|
|
5386
|
+
i(d, u, s, z.prev, j, ke), w && ke.reach > w.reach && (w.reach = ke.reach);
|
|
5375
5387
|
}
|
|
5376
5388
|
}
|
|
5377
5389
|
}
|
|
@@ -5502,15 +5514,15 @@ Object.defineProperty(y.languages.markup.tag, "addInlined", {
|
|
|
5502
5514
|
pattern: /[\s\S]+/,
|
|
5503
5515
|
inside: y.languages[a]
|
|
5504
5516
|
};
|
|
5505
|
-
var
|
|
5506
|
-
|
|
5517
|
+
var l = {};
|
|
5518
|
+
l[t] = {
|
|
5507
5519
|
pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
|
5508
5520
|
return t;
|
|
5509
5521
|
}), "i"),
|
|
5510
5522
|
lookbehind: !0,
|
|
5511
5523
|
greedy: !0,
|
|
5512
5524
|
inside: o
|
|
5513
|
-
}, y.languages.insertBefore("markup", "cdata",
|
|
5525
|
+
}, y.languages.insertBefore("markup", "cdata", l);
|
|
5514
5526
|
}
|
|
5515
5527
|
});
|
|
5516
5528
|
Object.defineProperty(y.languages.markup.tag, "addAttribute", {
|
|
@@ -5747,8 +5759,8 @@ y.languages.rss = y.languages.xml;
|
|
|
5747
5759
|
lookbehind: !0
|
|
5748
5760
|
}
|
|
5749
5761
|
}, a.inside = e.languages.bash;
|
|
5750
|
-
for (var o = ["comment", "function-name", "for-or-select", "assign-left", "string", "environment", "function", "keyword", "builtin", "boolean", "file-descriptor", "operator", "punctuation", "number"],
|
|
5751
|
-
|
|
5762
|
+
for (var o = ["comment", "function-name", "for-or-select", "assign-left", "string", "environment", "function", "keyword", "builtin", "boolean", "file-descriptor", "operator", "punctuation", "number"], l = n.variable[1].inside, i = 0; i < o.length; i++)
|
|
5763
|
+
l[o[i]] = e.languages.bash[o[i]];
|
|
5752
5764
|
e.languages.shell = e.languages.bash;
|
|
5753
5765
|
})(y);
|
|
5754
5766
|
y.languages.clike = {
|
|
@@ -6273,8 +6285,8 @@ y.languages.js = y.languages.javascript;
|
|
|
6273
6285
|
(function(e) {
|
|
6274
6286
|
var t = /[*&][^\s[\]{},]+/, a = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, n = "(?:" + a.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + a.source + ")?)", o = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
|
|
6275
6287
|
return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
|
|
6276
|
-
}),
|
|
6277
|
-
function
|
|
6288
|
+
}), l = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
|
|
6289
|
+
function i(g, c) {
|
|
6278
6290
|
c = (c || "").replace(/m/g, "") + "m";
|
|
6279
6291
|
var p = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
|
|
6280
6292
|
return n;
|
|
@@ -6296,7 +6308,7 @@ y.languages.js = y.languages.javascript;
|
|
|
6296
6308
|
pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
|
|
6297
6309
|
return n;
|
|
6298
6310
|
}).replace(/<<key>>/g, function() {
|
|
6299
|
-
return "(?:" + o + "|" +
|
|
6311
|
+
return "(?:" + o + "|" + l + ")";
|
|
6300
6312
|
})),
|
|
6301
6313
|
lookbehind: !0,
|
|
6302
6314
|
greedy: !0,
|
|
@@ -6308,27 +6320,27 @@ y.languages.js = y.languages.javascript;
|
|
|
6308
6320
|
alias: "important"
|
|
6309
6321
|
},
|
|
6310
6322
|
datetime: {
|
|
6311
|
-
pattern:
|
|
6323
|
+
pattern: i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
|
|
6312
6324
|
lookbehind: !0,
|
|
6313
6325
|
alias: "number"
|
|
6314
6326
|
},
|
|
6315
6327
|
boolean: {
|
|
6316
|
-
pattern:
|
|
6328
|
+
pattern: i(/false|true/.source, "i"),
|
|
6317
6329
|
lookbehind: !0,
|
|
6318
6330
|
alias: "important"
|
|
6319
6331
|
},
|
|
6320
6332
|
null: {
|
|
6321
|
-
pattern:
|
|
6333
|
+
pattern: i(/null|~/.source, "i"),
|
|
6322
6334
|
lookbehind: !0,
|
|
6323
6335
|
alias: "important"
|
|
6324
6336
|
},
|
|
6325
6337
|
string: {
|
|
6326
|
-
pattern: l
|
|
6338
|
+
pattern: i(l),
|
|
6327
6339
|
lookbehind: !0,
|
|
6328
6340
|
greedy: !0
|
|
6329
6341
|
},
|
|
6330
6342
|
number: {
|
|
6331
|
-
pattern:
|
|
6343
|
+
pattern: i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
|
|
6332
6344
|
lookbehind: !0
|
|
6333
6345
|
},
|
|
6334
6346
|
tag: a,
|
|
@@ -6345,7 +6357,7 @@ y.languages.js = y.languages.javascript;
|
|
|
6345
6357
|
}
|
|
6346
6358
|
var n = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, o = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
|
|
6347
6359
|
return n;
|
|
6348
|
-
}),
|
|
6360
|
+
}), l = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
|
|
6349
6361
|
e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", {
|
|
6350
6362
|
"front-matter-block": {
|
|
6351
6363
|
pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
|
|
@@ -6366,10 +6378,10 @@ y.languages.js = y.languages.javascript;
|
|
|
6366
6378
|
alias: "punctuation"
|
|
6367
6379
|
},
|
|
6368
6380
|
table: {
|
|
6369
|
-
pattern: RegExp("^" + o +
|
|
6381
|
+
pattern: RegExp("^" + o + l + "(?:" + o + ")*", "m"),
|
|
6370
6382
|
inside: {
|
|
6371
6383
|
"table-data-rows": {
|
|
6372
|
-
pattern: RegExp("^(" + o +
|
|
6384
|
+
pattern: RegExp("^(" + o + l + ")(?:" + o + ")*$"),
|
|
6373
6385
|
lookbehind: !0,
|
|
6374
6386
|
inside: {
|
|
6375
6387
|
"table-data": {
|
|
@@ -6380,7 +6392,7 @@ y.languages.js = y.languages.javascript;
|
|
|
6380
6392
|
}
|
|
6381
6393
|
},
|
|
6382
6394
|
"table-line": {
|
|
6383
|
-
pattern: RegExp("^(" + o + ")" +
|
|
6395
|
+
pattern: RegExp("^(" + o + ")" + l + "$"),
|
|
6384
6396
|
lookbehind: !0,
|
|
6385
6397
|
inside: {
|
|
6386
6398
|
punctuation: /\||:?-{3,}:?/
|
|
@@ -6610,14 +6622,14 @@ y.languages.js = y.languages.javascript;
|
|
|
6610
6622
|
}
|
|
6611
6623
|
}
|
|
6612
6624
|
});
|
|
6613
|
-
var
|
|
6625
|
+
var i = RegExp(e.languages.markup.tag.pattern.source, "gi"), g = {
|
|
6614
6626
|
amp: "&",
|
|
6615
6627
|
lt: "<",
|
|
6616
6628
|
gt: ">",
|
|
6617
6629
|
quot: '"'
|
|
6618
6630
|
}, c = String.fromCodePoint || String.fromCharCode;
|
|
6619
6631
|
function p(f) {
|
|
6620
|
-
var d = f.replace(
|
|
6632
|
+
var d = f.replace(i, "");
|
|
6621
6633
|
return d = d.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(u, s) {
|
|
6622
6634
|
if (s = s.toLowerCase(), s[0] === "#") {
|
|
6623
6635
|
var m;
|
|
@@ -6700,7 +6712,7 @@ y.hooks.add("after-tokenize", function(t) {
|
|
|
6700
6712
|
function o(b) {
|
|
6701
6713
|
return a[n + b];
|
|
6702
6714
|
}
|
|
6703
|
-
function
|
|
6715
|
+
function l(b, w) {
|
|
6704
6716
|
w = w || 0;
|
|
6705
6717
|
for (var v = 0; v < b.length; v++) {
|
|
6706
6718
|
var k = o(v + w);
|
|
@@ -6709,7 +6721,7 @@ y.hooks.add("after-tokenize", function(t) {
|
|
|
6709
6721
|
}
|
|
6710
6722
|
return !0;
|
|
6711
6723
|
}
|
|
6712
|
-
function
|
|
6724
|
+
function i(b, w) {
|
|
6713
6725
|
for (var v = 1, k = n; k < a.length; k++) {
|
|
6714
6726
|
var x = a[k], _ = x.content;
|
|
6715
6727
|
if (x.type === "punctuation" && typeof _ == "string") {
|
|
@@ -6729,9 +6741,9 @@ y.hooks.add("after-tokenize", function(t) {
|
|
|
6729
6741
|
var c = a[n++];
|
|
6730
6742
|
if (c.type === "keyword" && c.content === "mutation") {
|
|
6731
6743
|
var p = [];
|
|
6732
|
-
if (
|
|
6744
|
+
if (l(["definition-mutation", "punctuation"]) && o(1).content === "(") {
|
|
6733
6745
|
n += 2;
|
|
6734
|
-
var f =
|
|
6746
|
+
var f = i(/^\($/, /^\)$/);
|
|
6735
6747
|
if (f === -1)
|
|
6736
6748
|
continue;
|
|
6737
6749
|
for (; n < f; n++) {
|
|
@@ -6740,8 +6752,8 @@ y.hooks.add("after-tokenize", function(t) {
|
|
|
6740
6752
|
}
|
|
6741
6753
|
n = f + 1;
|
|
6742
6754
|
}
|
|
6743
|
-
if (
|
|
6744
|
-
var u =
|
|
6755
|
+
if (l(["punctuation", "property-query"]) && o(0).content === "{" && (n++, g(o(0), "property-mutation"), p.length > 0)) {
|
|
6756
|
+
var u = i(/^\{$/, /^\}$/);
|
|
6745
6757
|
if (u === -1)
|
|
6746
6758
|
continue;
|
|
6747
6759
|
for (var s = n; s < u; s++) {
|
|
@@ -6783,8 +6795,8 @@ y.languages.sql = {
|
|
|
6783
6795
|
punctuation: /[;[\]()`,.]/
|
|
6784
6796
|
};
|
|
6785
6797
|
(function(e) {
|
|
6786
|
-
var t = e.languages.javascript["template-string"], a = t.pattern.source, n = t.inside.interpolation, o = n.inside["interpolation-punctuation"],
|
|
6787
|
-
function
|
|
6798
|
+
var t = e.languages.javascript["template-string"], a = t.pattern.source, n = t.inside.interpolation, o = n.inside["interpolation-punctuation"], l = n.pattern.source;
|
|
6799
|
+
function i(s, m) {
|
|
6788
6800
|
if (e.languages[s])
|
|
6789
6801
|
return {
|
|
6790
6802
|
pattern: RegExp("((?:" + m + ")\\s*)" + a),
|
|
@@ -6807,18 +6819,18 @@ y.languages.sql = {
|
|
|
6807
6819
|
// css`a { color: #25F; }`
|
|
6808
6820
|
// styled-components:
|
|
6809
6821
|
// styled.h1`color: red;`
|
|
6810
|
-
|
|
6822
|
+
i("css", /\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),
|
|
6811
6823
|
// html`<p></p>`
|
|
6812
6824
|
// div.innerHTML = `<p></p>`
|
|
6813
|
-
|
|
6825
|
+
i("html", /\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),
|
|
6814
6826
|
// svg`<path fill="#fff" d="M55.37 ..."/>`
|
|
6815
|
-
|
|
6827
|
+
i("svg", /\bsvg/.source),
|
|
6816
6828
|
// md`# h1`, markdown`## h2`
|
|
6817
|
-
|
|
6829
|
+
i("markdown", /\b(?:markdown|md)/.source),
|
|
6818
6830
|
// gql`...`, graphql`...`, graphql.experimental`...`
|
|
6819
|
-
|
|
6831
|
+
i("graphql", /\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),
|
|
6820
6832
|
// sql`...`
|
|
6821
|
-
|
|
6833
|
+
i("sql", /\bsql/.source),
|
|
6822
6834
|
// vanilla template string
|
|
6823
6835
|
t
|
|
6824
6836
|
].filter(Boolean);
|
|
@@ -6846,7 +6858,7 @@ y.languages.sql = {
|
|
|
6846
6858
|
function f(s, m, b) {
|
|
6847
6859
|
var w = e.tokenize(s, {
|
|
6848
6860
|
interpolation: {
|
|
6849
|
-
pattern: RegExp(
|
|
6861
|
+
pattern: RegExp(l),
|
|
6850
6862
|
lookbehind: !0
|
|
6851
6863
|
}
|
|
6852
6864
|
}), v = 0, k = {}, x = w.map(function(L) {
|
|
@@ -7052,17 +7064,17 @@ y.languages.sql = {
|
|
|
7052
7064
|
}
|
|
7053
7065
|
});
|
|
7054
7066
|
for (var a = ["function", "function-variable", "method", "method-variable", "property-access"], n = 0; n < a.length; n++) {
|
|
7055
|
-
var o = a[n],
|
|
7056
|
-
e.util.type(
|
|
7057
|
-
pattern:
|
|
7067
|
+
var o = a[n], l = e.languages.javascript[o];
|
|
7068
|
+
e.util.type(l) === "RegExp" && (l = e.languages.javascript[o] = {
|
|
7069
|
+
pattern: l
|
|
7058
7070
|
});
|
|
7059
|
-
var
|
|
7060
|
-
|
|
7071
|
+
var i = l.inside || {};
|
|
7072
|
+
l.inside = i, i["maybe-class-name"] = /^[A-Z][\s\S]*/;
|
|
7061
7073
|
}
|
|
7062
7074
|
})(y);
|
|
7063
7075
|
(function(e) {
|
|
7064
7076
|
var t = e.util.clone(e.languages.javascript), a = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, n = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, o = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
|
|
7065
|
-
function
|
|
7077
|
+
function l(c, p) {
|
|
7066
7078
|
return c = c.replace(/<S>/g, function() {
|
|
7067
7079
|
return a;
|
|
7068
7080
|
}).replace(/<BRACES>/g, function() {
|
|
@@ -7071,15 +7083,15 @@ y.languages.sql = {
|
|
|
7071
7083
|
return o;
|
|
7072
7084
|
}), RegExp(c, p);
|
|
7073
7085
|
}
|
|
7074
|
-
o =
|
|
7086
|
+
o = l(o).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = l(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", {
|
|
7075
7087
|
spread: {
|
|
7076
|
-
pattern:
|
|
7088
|
+
pattern: l(/<SPREAD>/.source),
|
|
7077
7089
|
inside: e.languages.jsx
|
|
7078
7090
|
}
|
|
7079
7091
|
}, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", {
|
|
7080
7092
|
script: {
|
|
7081
7093
|
// Allow for two levels of nesting
|
|
7082
|
-
pattern:
|
|
7094
|
+
pattern: l(/=<BRACES>/.source),
|
|
7083
7095
|
alias: "language-javascript",
|
|
7084
7096
|
inside: {
|
|
7085
7097
|
"script-punctuation": {
|
|
@@ -7090,17 +7102,17 @@ y.languages.sql = {
|
|
|
7090
7102
|
}
|
|
7091
7103
|
}
|
|
7092
7104
|
}, e.languages.jsx.tag);
|
|
7093
|
-
var
|
|
7094
|
-
return c ? typeof c == "string" ? c : typeof c.content == "string" ? c.content : c.content.map(
|
|
7105
|
+
var i = function(c) {
|
|
7106
|
+
return c ? typeof c == "string" ? c : typeof c.content == "string" ? c.content : c.content.map(i).join("") : "";
|
|
7095
7107
|
}, g = function(c) {
|
|
7096
7108
|
for (var p = [], f = 0; f < c.length; f++) {
|
|
7097
7109
|
var d = c[f], u = !1;
|
|
7098
|
-
if (typeof d != "string" && (d.type === "tag" && d.content[0] && d.content[0].type === "tag" ? d.content[0].content[0].content === "</" ? p.length > 0 && p[p.length - 1].tagName ===
|
|
7099
|
-
tagName:
|
|
7110
|
+
if (typeof d != "string" && (d.type === "tag" && d.content[0] && d.content[0].type === "tag" ? d.content[0].content[0].content === "</" ? p.length > 0 && p[p.length - 1].tagName === i(d.content[0].content[1]) && p.pop() : d.content[d.content.length - 1].content === "/>" || p.push({
|
|
7111
|
+
tagName: i(d.content[0].content[1]),
|
|
7100
7112
|
openedBraces: 0
|
|
7101
7113
|
}) : p.length > 0 && d.type === "punctuation" && d.content === "{" ? p[p.length - 1].openedBraces++ : p.length > 0 && p[p.length - 1].openedBraces > 0 && d.type === "punctuation" && d.content === "}" ? p[p.length - 1].openedBraces-- : u = !0), (u || typeof d == "string") && p.length > 0 && p[p.length - 1].openedBraces === 0) {
|
|
7102
|
-
var s =
|
|
7103
|
-
f < c.length - 1 && (typeof c[f + 1] == "string" || c[f + 1].type === "plain-text") && (s +=
|
|
7114
|
+
var s = i(d);
|
|
7115
|
+
f < c.length - 1 && (typeof c[f + 1] == "string" || c[f + 1].type === "plain-text") && (s += i(c[f + 1]), c.splice(f + 1, 1)), f > 0 && (typeof c[f - 1] == "string" || c[f - 1].type === "plain-text") && (s = i(c[f - 1]) + s, c.splice(f - 1, 1), f--), c[f] = new e.Token("plain-text", s, null, s);
|
|
7104
7116
|
}
|
|
7105
7117
|
d.content && typeof d.content != "string" && g(d.content);
|
|
7106
7118
|
}
|
|
@@ -7257,15 +7269,15 @@ delete y.languages.go["class-name"];
|
|
|
7257
7269
|
* @param {RegExp} placeholderPattern The matches of this pattern will be replaced by placeholders.
|
|
7258
7270
|
* @param {(match: string) => boolean} [replaceFilter]
|
|
7259
7271
|
*/
|
|
7260
|
-
value: function(a, n, o,
|
|
7272
|
+
value: function(a, n, o, l) {
|
|
7261
7273
|
if (a.language === n) {
|
|
7262
|
-
var
|
|
7274
|
+
var i = a.tokenStack = [];
|
|
7263
7275
|
a.code = a.code.replace(o, function(g) {
|
|
7264
|
-
if (typeof
|
|
7276
|
+
if (typeof l == "function" && !l(g))
|
|
7265
7277
|
return g;
|
|
7266
|
-
for (var c =
|
|
7278
|
+
for (var c = i.length, p; a.code.indexOf(p = t(n, c)) !== -1; )
|
|
7267
7279
|
++c;
|
|
7268
|
-
return
|
|
7280
|
+
return i[c] = g, p;
|
|
7269
7281
|
}), a.grammar = e.languages.markup;
|
|
7270
7282
|
}
|
|
7271
7283
|
}
|
|
@@ -7281,22 +7293,22 @@ delete y.languages.go["class-name"];
|
|
|
7281
7293
|
if (a.language !== n || !a.tokenStack)
|
|
7282
7294
|
return;
|
|
7283
7295
|
a.grammar = e.languages[n];
|
|
7284
|
-
var o = 0,
|
|
7285
|
-
function
|
|
7286
|
-
for (var c = 0; c < g.length && !(o >=
|
|
7296
|
+
var o = 0, l = Object.keys(a.tokenStack);
|
|
7297
|
+
function i(g) {
|
|
7298
|
+
for (var c = 0; c < g.length && !(o >= l.length); c++) {
|
|
7287
7299
|
var p = g[c];
|
|
7288
7300
|
if (typeof p == "string" || p.content && typeof p.content == "string") {
|
|
7289
|
-
var f =
|
|
7301
|
+
var f = l[o], d = a.tokenStack[f], u = typeof p == "string" ? p : p.content, s = t(n, f), m = u.indexOf(s);
|
|
7290
7302
|
if (m > -1) {
|
|
7291
7303
|
++o;
|
|
7292
7304
|
var b = u.substring(0, m), w = new e.Token(n, e.tokenize(d, a.grammar), "language-" + n, d), v = u.substring(m + s.length), k = [];
|
|
7293
|
-
b && k.push.apply(k,
|
|
7305
|
+
b && k.push.apply(k, i([b])), k.push(w), v && k.push.apply(k, i([v])), typeof p == "string" ? g.splice.apply(g, [c, 1].concat(k)) : p.content = k;
|
|
7294
7306
|
}
|
|
7295
|
-
} else p.content &&
|
|
7307
|
+
} else p.content && i(p.content);
|
|
7296
7308
|
}
|
|
7297
7309
|
return g;
|
|
7298
7310
|
}
|
|
7299
|
-
|
|
7311
|
+
i(a.tokens);
|
|
7300
7312
|
}
|
|
7301
7313
|
}
|
|
7302
7314
|
});
|
|
@@ -7865,7 +7877,7 @@ y.languages.wasm = {
|
|
|
7865
7877
|
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/,
|
|
7866
7878
|
punctuation: /[()]/
|
|
7867
7879
|
};
|
|
7868
|
-
var
|
|
7880
|
+
var Ho = {
|
|
7869
7881
|
plain: {
|
|
7870
7882
|
backgroundColor: "#2a2734",
|
|
7871
7883
|
color: "#9a86fd"
|
|
@@ -7931,10 +7943,10 @@ var qo = {
|
|
|
7931
7943
|
color: "#c4b9fe"
|
|
7932
7944
|
}
|
|
7933
7945
|
}]
|
|
7934
|
-
},
|
|
7946
|
+
}, Wo = {
|
|
7935
7947
|
// $FlowFixMe
|
|
7936
7948
|
Prism: y,
|
|
7937
|
-
theme:
|
|
7949
|
+
theme: Ho
|
|
7938
7950
|
};
|
|
7939
7951
|
function Be(e, t, a) {
|
|
7940
7952
|
return t in e ? Object.defineProperty(e, t, {
|
|
@@ -7954,7 +7966,7 @@ function he() {
|
|
|
7954
7966
|
return e;
|
|
7955
7967
|
}, he.apply(this, arguments);
|
|
7956
7968
|
}
|
|
7957
|
-
var
|
|
7969
|
+
var Vo = /\r\n|\r|\n/, ar = function(e) {
|
|
7958
7970
|
e.length === 0 ? e.push({
|
|
7959
7971
|
types: ["plain"],
|
|
7960
7972
|
content: `
|
|
@@ -7965,15 +7977,15 @@ var Ho = /\r\n|\r|\n/, ar = function(e) {
|
|
|
7965
7977
|
}, nr = function(e, t) {
|
|
7966
7978
|
var a = e.length;
|
|
7967
7979
|
return a > 0 && e[a - 1] === t ? e : e.concat(t);
|
|
7968
|
-
},
|
|
7969
|
-
for (var t = [[]], a = [e], n = [0], o = [e.length],
|
|
7970
|
-
for (; (
|
|
7971
|
-
var p = void 0, f = t[
|
|
7972
|
-
if (typeof u == "string" ? (f =
|
|
7973
|
-
|
|
7980
|
+
}, Yo = function(e) {
|
|
7981
|
+
for (var t = [[]], a = [e], n = [0], o = [e.length], l = 0, i = 0, g = [], c = [g]; i > -1; ) {
|
|
7982
|
+
for (; (l = n[i]++) < o[i]; ) {
|
|
7983
|
+
var p = void 0, f = t[i], d = a[i], u = d[l];
|
|
7984
|
+
if (typeof u == "string" ? (f = i > 0 ? f : ["plain"], p = u) : (f = nr(f, u.type), u.alias && (f = nr(f, u.alias)), p = u.content), typeof p != "string") {
|
|
7985
|
+
i++, t.push(f), a.push(p), n.push(0), o.push(p.length);
|
|
7974
7986
|
continue;
|
|
7975
7987
|
}
|
|
7976
|
-
var s = p.split(
|
|
7988
|
+
var s = p.split(Vo), m = s.length;
|
|
7977
7989
|
g.push({
|
|
7978
7990
|
types: f,
|
|
7979
7991
|
content: s[0]
|
|
@@ -7984,16 +7996,16 @@ var Ho = /\r\n|\r|\n/, ar = function(e) {
|
|
|
7984
7996
|
content: s[b]
|
|
7985
7997
|
});
|
|
7986
7998
|
}
|
|
7987
|
-
|
|
7999
|
+
i--, t.pop(), a.pop(), n.pop(), o.pop();
|
|
7988
8000
|
}
|
|
7989
8001
|
return ar(g), c;
|
|
7990
|
-
},
|
|
7991
|
-
var a = e.plain, n = /* @__PURE__ */ Object.create(null), o = e.styles.reduce(function(
|
|
7992
|
-
var g =
|
|
7993
|
-
return g && !g.includes(t) ||
|
|
7994
|
-
var f = he({},
|
|
7995
|
-
|
|
7996
|
-
}),
|
|
8002
|
+
}, Ko = function(e, t) {
|
|
8003
|
+
var a = e.plain, n = /* @__PURE__ */ Object.create(null), o = e.styles.reduce(function(l, i) {
|
|
8004
|
+
var g = i.languages, c = i.style;
|
|
8005
|
+
return g && !g.includes(t) || i.types.forEach(function(p) {
|
|
8006
|
+
var f = he({}, l[p], c);
|
|
8007
|
+
l[p] = f;
|
|
8008
|
+
}), l;
|
|
7997
8009
|
}, n);
|
|
7998
8010
|
return o.root = a, o.plain = he({}, a, {
|
|
7999
8011
|
backgroundColor: null
|
|
@@ -8004,89 +8016,89 @@ function or(e, t) {
|
|
|
8004
8016
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) === -1 && (a[n] = e[n]);
|
|
8005
8017
|
return a;
|
|
8006
8018
|
}
|
|
8007
|
-
var
|
|
8019
|
+
var Xo = /* @__PURE__ */ function(e) {
|
|
8008
8020
|
function t() {
|
|
8009
8021
|
for (var a = this, n = [], o = arguments.length; o--; ) n[o] = arguments[o];
|
|
8010
|
-
e.apply(this, n), Be(this, "getThemeDict", function(
|
|
8011
|
-
if (a.themeDict !== void 0 &&
|
|
8022
|
+
e.apply(this, n), Be(this, "getThemeDict", function(l) {
|
|
8023
|
+
if (a.themeDict !== void 0 && l.theme === a.prevTheme && l.language === a.prevLanguage)
|
|
8012
8024
|
return a.themeDict;
|
|
8013
|
-
a.prevTheme =
|
|
8014
|
-
var
|
|
8015
|
-
return a.themeDict =
|
|
8016
|
-
}), Be(this, "getLineProps", function(
|
|
8017
|
-
var
|
|
8025
|
+
a.prevTheme = l.theme, a.prevLanguage = l.language;
|
|
8026
|
+
var i = l.theme ? Ko(l.theme, l.language) : void 0;
|
|
8027
|
+
return a.themeDict = i;
|
|
8028
|
+
}), Be(this, "getLineProps", function(l) {
|
|
8029
|
+
var i = l.key, g = l.className, c = l.style, p = or(l, ["key", "className", "style", "line"]), f = p, d = he({}, f, {
|
|
8018
8030
|
className: "token-line",
|
|
8019
8031
|
style: void 0,
|
|
8020
8032
|
key: void 0
|
|
8021
8033
|
}), u = a.getThemeDict(a.props);
|
|
8022
|
-
return u !== void 0 && (d.style = u.plain), c !== void 0 && (d.style = d.style !== void 0 ? he({}, d.style, c) : c),
|
|
8023
|
-
}), Be(this, "getStyleForToken", function(
|
|
8024
|
-
var
|
|
8034
|
+
return u !== void 0 && (d.style = u.plain), c !== void 0 && (d.style = d.style !== void 0 ? he({}, d.style, c) : c), i !== void 0 && (d.key = i), g && (d.className += " " + g), d;
|
|
8035
|
+
}), Be(this, "getStyleForToken", function(l) {
|
|
8036
|
+
var i = l.types, g = l.empty, c = i.length, p = a.getThemeDict(a.props);
|
|
8025
8037
|
if (p !== void 0) {
|
|
8026
8038
|
{
|
|
8027
|
-
if (c === 1 &&
|
|
8039
|
+
if (c === 1 && i[0] === "plain")
|
|
8028
8040
|
return g ? {
|
|
8029
8041
|
display: "inline-block"
|
|
8030
8042
|
} : void 0;
|
|
8031
8043
|
if (c === 1 && !g)
|
|
8032
|
-
return p[
|
|
8044
|
+
return p[i[0]];
|
|
8033
8045
|
}
|
|
8034
8046
|
var f = g ? {
|
|
8035
8047
|
display: "inline-block"
|
|
8036
|
-
} : {}, d =
|
|
8048
|
+
} : {}, d = i.map(function(u) {
|
|
8037
8049
|
return p[u];
|
|
8038
8050
|
});
|
|
8039
8051
|
return Object.assign.apply(Object, [f].concat(d));
|
|
8040
8052
|
}
|
|
8041
|
-
}), Be(this, "getTokenProps", function(
|
|
8042
|
-
var
|
|
8053
|
+
}), Be(this, "getTokenProps", function(l) {
|
|
8054
|
+
var i = l.key, g = l.className, c = l.style, p = l.token, f = or(l, ["key", "className", "style", "token"]), d = f, u = he({}, d, {
|
|
8043
8055
|
className: "token " + p.types.join(" "),
|
|
8044
8056
|
children: p.content,
|
|
8045
8057
|
style: a.getStyleForToken(p),
|
|
8046
8058
|
key: void 0
|
|
8047
8059
|
});
|
|
8048
|
-
return c !== void 0 && (u.style = u.style !== void 0 ? he({}, u.style, c) : c),
|
|
8049
|
-
}), Be(this, "tokenize", function(
|
|
8060
|
+
return c !== void 0 && (u.style = u.style !== void 0 ? he({}, u.style, c) : c), i !== void 0 && (u.key = i), g && (u.className += " " + g), u;
|
|
8061
|
+
}), Be(this, "tokenize", function(l, i, g, c) {
|
|
8050
8062
|
var p = {
|
|
8051
|
-
code:
|
|
8063
|
+
code: i,
|
|
8052
8064
|
grammar: g,
|
|
8053
8065
|
language: c,
|
|
8054
8066
|
tokens: []
|
|
8055
8067
|
};
|
|
8056
|
-
|
|
8057
|
-
var f = p.tokens =
|
|
8058
|
-
return
|
|
8068
|
+
l.hooks.run("before-tokenize", p);
|
|
8069
|
+
var f = p.tokens = l.tokenize(p.code, p.grammar, p.language);
|
|
8070
|
+
return l.hooks.run("after-tokenize", p), f;
|
|
8059
8071
|
});
|
|
8060
8072
|
}
|
|
8061
8073
|
return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t.prototype.render = function() {
|
|
8062
|
-
var n = this.props, o = n.Prism,
|
|
8074
|
+
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], f = p !== void 0 ? this.tokenize(o, i, p, l) : [i], d = Yo(f);
|
|
8063
8075
|
return g({
|
|
8064
8076
|
tokens: d,
|
|
8065
|
-
className: "prism-code language-" +
|
|
8077
|
+
className: "prism-code language-" + l,
|
|
8066
8078
|
style: c !== void 0 ? c.root : {},
|
|
8067
8079
|
getLineProps: this.getLineProps,
|
|
8068
8080
|
getTokenProps: this.getTokenProps
|
|
8069
8081
|
});
|
|
8070
8082
|
}, t;
|
|
8071
8083
|
}(dr);
|
|
8072
|
-
const
|
|
8073
|
-
() =>
|
|
8074
|
-
),
|
|
8084
|
+
const Zo = (e) => Qo(
|
|
8085
|
+
() => Ba.parse(e, (a, n) => n === !0 ? "true" : n === !1 ? "false" : n)
|
|
8086
|
+
), Qo = (e) => {
|
|
8075
8087
|
try {
|
|
8076
8088
|
return { status: "ok", value: e() };
|
|
8077
8089
|
} catch (t) {
|
|
8078
8090
|
return { status: "error", error: t };
|
|
8079
8091
|
}
|
|
8080
8092
|
};
|
|
8081
|
-
function
|
|
8093
|
+
function Jo(e, t, a) {
|
|
8082
8094
|
const n = ur();
|
|
8083
8095
|
H(() => {
|
|
8084
8096
|
if (!t || !a) return;
|
|
8085
|
-
const o = `http://myserver/myJsonTypeSchema-${n}`,
|
|
8097
|
+
const o = `http://myserver/myJsonTypeSchema-${n}`, l = t.languages.json.jsonDefaults.diagnosticsOptions, i = l.schemas || [];
|
|
8086
8098
|
return t.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
8087
|
-
...
|
|
8099
|
+
...l,
|
|
8088
8100
|
schemas: [
|
|
8089
|
-
...
|
|
8101
|
+
...i,
|
|
8090
8102
|
{
|
|
8091
8103
|
uri: o,
|
|
8092
8104
|
fileMatch: [e],
|
|
@@ -8102,7 +8114,7 @@ function Zo(e, t, a) {
|
|
|
8102
8114
|
};
|
|
8103
8115
|
}, [t, e, a, n]);
|
|
8104
8116
|
}
|
|
8105
|
-
const
|
|
8117
|
+
const ei = {
|
|
8106
8118
|
plain: {
|
|
8107
8119
|
backgroundColor: "#fff",
|
|
8108
8120
|
color: "#575279"
|
|
@@ -8145,10 +8157,10 @@ const Qo = {
|
|
|
8145
8157
|
style: { color: "#b4637a" }
|
|
8146
8158
|
}
|
|
8147
8159
|
]
|
|
8148
|
-
},
|
|
8160
|
+
}, ti = ue("div", "flex flex-col gap-2"), ri = ue("div", "flex flex-col gap-2 md:flex-row"), pt = ue("div", "prose dark:text-neutral-400"), ai = ue("div", "text-2xl font-bold"), ni = ue("div", "text-xl font-bold"), oi = ue("div", "text-lg"), ii = ue("div", "text-md font-bold"), li = ue("div", "text-sm text-gray-400"), Re = ue(
|
|
8149
8161
|
"div",
|
|
8150
8162
|
"text-sm font-bold dark:text-neutral-400 text-gray-700"
|
|
8151
|
-
),
|
|
8163
|
+
), si = ({ size: e = "mini" }) => /* @__PURE__ */ r("img", { src: "/img/icon/logo-512.svg", className: {
|
|
8152
8164
|
mini: "h-4 w-4",
|
|
8153
8165
|
normal: "h-6 w-6"
|
|
8154
8166
|
}[e] });
|
|
@@ -8158,25 +8170,25 @@ function $r({
|
|
|
8158
8170
|
items: a,
|
|
8159
8171
|
onChange: n,
|
|
8160
8172
|
selectedId: o,
|
|
8161
|
-
disabled:
|
|
8173
|
+
disabled: l
|
|
8162
8174
|
}) {
|
|
8163
|
-
return /* @__PURE__ */ r("div", { className: O("flex w-full flex-col gap-0.5", e), children: a.map((
|
|
8175
|
+
return /* @__PURE__ */ r("div", { className: O("flex w-full flex-col gap-0.5", e), children: a.map((i) => /* @__PURE__ */ r(
|
|
8164
8176
|
"button",
|
|
8165
8177
|
{
|
|
8166
|
-
disabled:
|
|
8178
|
+
disabled: l,
|
|
8167
8179
|
onClick: () => {
|
|
8168
|
-
n(
|
|
8180
|
+
n(i);
|
|
8169
8181
|
},
|
|
8170
8182
|
className: O(
|
|
8171
8183
|
"block cursor-pointer truncate rounded bg-none px-3 py-1 text-left whitespace-nowrap hover:bg-gray-100 disabled:text-gray-400 dark:hover:bg-neutral-700/80",
|
|
8172
8184
|
{
|
|
8173
|
-
"bg-gray-200 dark:bg-neutral-600/50": o ===
|
|
8185
|
+
"bg-gray-200 dark:bg-neutral-600/50": o === i.id
|
|
8174
8186
|
},
|
|
8175
8187
|
t
|
|
8176
8188
|
),
|
|
8177
|
-
children:
|
|
8189
|
+
children: i.label
|
|
8178
8190
|
},
|
|
8179
|
-
|
|
8191
|
+
i.id
|
|
8180
8192
|
)) });
|
|
8181
8193
|
}
|
|
8182
8194
|
function zr({
|
|
@@ -8191,8 +8203,8 @@ function zr({
|
|
|
8191
8203
|
value: a,
|
|
8192
8204
|
onValueChange: (o) => {
|
|
8193
8205
|
if (!o) return;
|
|
8194
|
-
const
|
|
8195
|
-
|
|
8206
|
+
const l = e.find((i) => i.id === o);
|
|
8207
|
+
l && t(l);
|
|
8196
8208
|
},
|
|
8197
8209
|
className: "flex gap-1 rounded-sm border border-gray-300 bg-gray-200 p-0.5 text-sm dark:border-neutral-700 dark:bg-neutral-800",
|
|
8198
8210
|
type: "single",
|
|
@@ -8220,8 +8232,8 @@ function Ee({
|
|
|
8220
8232
|
autoFocus: a,
|
|
8221
8233
|
className: n,
|
|
8222
8234
|
onChange: o,
|
|
8223
|
-
onKeyDown:
|
|
8224
|
-
label:
|
|
8235
|
+
onKeyDown: l,
|
|
8236
|
+
label: i,
|
|
8225
8237
|
error: g,
|
|
8226
8238
|
placeholder: c,
|
|
8227
8239
|
inputMode: p,
|
|
@@ -8235,7 +8247,7 @@ function Ee({
|
|
|
8235
8247
|
return H(() => {
|
|
8236
8248
|
a && b.current?.focus();
|
|
8237
8249
|
}, []), /* @__PURE__ */ h("label", { className: "flex flex-col gap-1", children: [
|
|
8238
|
-
|
|
8250
|
+
i ? /* @__PURE__ */ r(Re, { children: i }) : null,
|
|
8239
8251
|
/* @__PURE__ */ r(
|
|
8240
8252
|
"input",
|
|
8241
8253
|
{
|
|
@@ -8258,7 +8270,7 @@ function Ee({
|
|
|
8258
8270
|
onChange: (w) => {
|
|
8259
8271
|
o(w.target.value);
|
|
8260
8272
|
},
|
|
8261
|
-
onKeyDown:
|
|
8273
|
+
onKeyDown: l,
|
|
8262
8274
|
onBlur: m,
|
|
8263
8275
|
tabIndex: f,
|
|
8264
8276
|
required: s
|
|
@@ -8267,14 +8279,14 @@ function Ee({
|
|
|
8267
8279
|
g ? /* @__PURE__ */ r("div", { className: "text-sm text-red-600", children: g }) : null
|
|
8268
8280
|
] });
|
|
8269
8281
|
}
|
|
8270
|
-
function
|
|
8282
|
+
function di({
|
|
8271
8283
|
value: e,
|
|
8272
8284
|
autoFocus: t,
|
|
8273
8285
|
className: a,
|
|
8274
8286
|
onChange: n,
|
|
8275
8287
|
onKeyDown: o,
|
|
8276
|
-
label:
|
|
8277
|
-
error:
|
|
8288
|
+
label: l,
|
|
8289
|
+
error: i,
|
|
8278
8290
|
placeholder: g,
|
|
8279
8291
|
inputMode: c,
|
|
8280
8292
|
tabIndex: p,
|
|
@@ -8287,7 +8299,7 @@ function li({
|
|
|
8287
8299
|
return H(() => {
|
|
8288
8300
|
t && m.current?.focus();
|
|
8289
8301
|
}, []), /* @__PURE__ */ h("label", { className: "flex flex-col gap-2", children: [
|
|
8290
|
-
|
|
8302
|
+
l ? /* @__PURE__ */ r(Re, { children: l }) : null,
|
|
8291
8303
|
/* @__PURE__ */ r(
|
|
8292
8304
|
"textarea",
|
|
8293
8305
|
{
|
|
@@ -8301,7 +8313,7 @@ function li({
|
|
|
8301
8313
|
"flex w-full flex-1 rounded-sm border-gray-200 bg-white px-3 py-1 placeholder:text-gray-400 disabled:text-gray-400 dark:border-neutral-700 dark:bg-neutral-800",
|
|
8302
8314
|
a,
|
|
8303
8315
|
{
|
|
8304
|
-
"border-red-500":
|
|
8316
|
+
"border-red-500": i
|
|
8305
8317
|
}
|
|
8306
8318
|
),
|
|
8307
8319
|
onChange: (b) => {
|
|
@@ -8313,7 +8325,7 @@ function li({
|
|
|
8313
8325
|
rows: s
|
|
8314
8326
|
}
|
|
8315
8327
|
),
|
|
8316
|
-
|
|
8328
|
+
i ? /* @__PURE__ */ r("div", { className: "text-sm text-red-600", children: i }) : null
|
|
8317
8329
|
] });
|
|
8318
8330
|
}
|
|
8319
8331
|
function ee({
|
|
@@ -8322,8 +8334,8 @@ function ee({
|
|
|
8322
8334
|
checked: a,
|
|
8323
8335
|
onChange: n,
|
|
8324
8336
|
className: o,
|
|
8325
|
-
labelClassName:
|
|
8326
|
-
required:
|
|
8337
|
+
labelClassName: l,
|
|
8338
|
+
required: i,
|
|
8327
8339
|
disabled: g,
|
|
8328
8340
|
title: c,
|
|
8329
8341
|
style: p
|
|
@@ -8334,7 +8346,7 @@ function ee({
|
|
|
8334
8346
|
className: O(
|
|
8335
8347
|
"items-top flex cursor-pointer gap-2 dark:disabled:opacity-40",
|
|
8336
8348
|
g ? "cursor-default text-gray-400 opacity-60" : "",
|
|
8337
|
-
|
|
8349
|
+
l
|
|
8338
8350
|
),
|
|
8339
8351
|
title: c,
|
|
8340
8352
|
children: [
|
|
@@ -8344,7 +8356,7 @@ function ee({
|
|
|
8344
8356
|
style: p,
|
|
8345
8357
|
disabled: g,
|
|
8346
8358
|
title: c,
|
|
8347
|
-
required:
|
|
8359
|
+
required: i,
|
|
8348
8360
|
className: O(
|
|
8349
8361
|
"mt-0.5 align-middle font-medium text-gray-900 disabled:border-gray-300 disabled:bg-gray-200 dark:border-neutral-500 dark:bg-neutral-600/40 dark:ring-neutral-500 dark:disabled:border-neutral-400 dark:disabled:opacity-50",
|
|
8350
8362
|
o
|
|
@@ -8367,15 +8379,15 @@ function we({
|
|
|
8367
8379
|
className: a,
|
|
8368
8380
|
onChange: n,
|
|
8369
8381
|
disabled: o,
|
|
8370
|
-
emptyLabel:
|
|
8371
|
-
tabIndex:
|
|
8382
|
+
emptyLabel: l,
|
|
8383
|
+
tabIndex: i,
|
|
8372
8384
|
title: g,
|
|
8373
8385
|
noOptionsLabel: c,
|
|
8374
8386
|
contentClassName: p,
|
|
8375
8387
|
visibleValue: f
|
|
8376
8388
|
}) {
|
|
8377
8389
|
return /* @__PURE__ */ h(
|
|
8378
|
-
|
|
8390
|
+
jo,
|
|
8379
8391
|
{
|
|
8380
8392
|
disabled: o,
|
|
8381
8393
|
onValueChange: (d) => {
|
|
@@ -8384,10 +8396,10 @@ function we({
|
|
|
8384
8396
|
},
|
|
8385
8397
|
value: e?.toString(),
|
|
8386
8398
|
children: [
|
|
8387
|
-
/* @__PURE__ */ r(
|
|
8388
|
-
/* @__PURE__ */ h(
|
|
8399
|
+
/* @__PURE__ */ r(Bo, { className: a, title: g, tabIndex: i, children: /* @__PURE__ */ r(Mo, { placeholder: l, children: f }) }),
|
|
8400
|
+
/* @__PURE__ */ h(Uo, { className: p, children: [
|
|
8389
8401
|
t.map((d) => /* @__PURE__ */ r(
|
|
8390
|
-
|
|
8402
|
+
Po,
|
|
8391
8403
|
{
|
|
8392
8404
|
value: d.value?.toString(),
|
|
8393
8405
|
children: d.label
|
|
@@ -8406,8 +8418,8 @@ function V({
|
|
|
8406
8418
|
type: a = "button",
|
|
8407
8419
|
onClick: n,
|
|
8408
8420
|
href: o,
|
|
8409
|
-
className:
|
|
8410
|
-
children:
|
|
8421
|
+
className: l,
|
|
8422
|
+
children: i,
|
|
8411
8423
|
disabled: g,
|
|
8412
8424
|
loading: c,
|
|
8413
8425
|
autoFocus: p,
|
|
@@ -8450,7 +8462,7 @@ function V({
|
|
|
8450
8462
|
// Apply wait cursor and lower opacity when loading,
|
|
8451
8463
|
"bg-gray-200 text-gray-400 dark:bg-neutral-700 dark:text-neutral-500": e == "cta" && g
|
|
8452
8464
|
},
|
|
8453
|
-
|
|
8465
|
+
l
|
|
8454
8466
|
);
|
|
8455
8467
|
return s ? /* @__PURE__ */ r(
|
|
8456
8468
|
"a",
|
|
@@ -8461,7 +8473,7 @@ function V({
|
|
|
8461
8473
|
className: m,
|
|
8462
8474
|
...a === "link-new" ? { target: "_blank", rel: "noopener noreferrer" } : {},
|
|
8463
8475
|
...c || g ? { "aria-disabled": !0 } : { href: o, onClick: n },
|
|
8464
|
-
children:
|
|
8476
|
+
children: i
|
|
8465
8477
|
}
|
|
8466
8478
|
) : /* @__PURE__ */ r(
|
|
8467
8479
|
"button",
|
|
@@ -8473,7 +8485,7 @@ function V({
|
|
|
8473
8485
|
type: a === "submit" ? "submit" : "button",
|
|
8474
8486
|
className: m,
|
|
8475
8487
|
onClick: n,
|
|
8476
|
-
children:
|
|
8488
|
+
children: i
|
|
8477
8489
|
}
|
|
8478
8490
|
);
|
|
8479
8491
|
}
|
|
@@ -8483,8 +8495,8 @@ const gt = ({
|
|
|
8483
8495
|
onClick: a,
|
|
8484
8496
|
disabled: n,
|
|
8485
8497
|
labelDirection: o,
|
|
8486
|
-
variant:
|
|
8487
|
-
className:
|
|
8498
|
+
variant: l,
|
|
8499
|
+
className: i
|
|
8488
8500
|
}) => /* @__PURE__ */ h(Ke, { children: [
|
|
8489
8501
|
/* @__PURE__ */ r(Xe, { children: /* @__PURE__ */ r(
|
|
8490
8502
|
"button",
|
|
@@ -8494,11 +8506,11 @@ const gt = ({
|
|
|
8494
8506
|
onClick: a,
|
|
8495
8507
|
className: O(
|
|
8496
8508
|
"flex h-9 w-9 cursor-pointer items-center justify-center rounded-sm p-2",
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8509
|
+
l === "primary" && "bg-[#616AF4] text-white hover:bg-[#4543E9]",
|
|
8510
|
+
l === "secondary" && "border border-gray-300 bg-white text-gray-800 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-200 dark:hover:bg-neutral-700/50",
|
|
8511
|
+
l === "subtle" && "text-gray-800 hover:bg-gray-200/30 dark:bg-neutral-800 dark:text-neutral-200 dark:hover:bg-neutral-700/50",
|
|
8500
8512
|
n && "cursor-not-allowed opacity-40",
|
|
8501
|
-
|
|
8513
|
+
i
|
|
8502
8514
|
),
|
|
8503
8515
|
children: e
|
|
8504
8516
|
}
|
|
@@ -8520,7 +8532,7 @@ function it() {
|
|
|
8520
8532
|
}
|
|
8521
8533
|
};
|
|
8522
8534
|
}
|
|
8523
|
-
function
|
|
8535
|
+
function ci({
|
|
8524
8536
|
...e
|
|
8525
8537
|
}) {
|
|
8526
8538
|
return /* @__PURE__ */ r(Ge.Root, { "data-slot": "dialog", ...e });
|
|
@@ -8550,10 +8562,11 @@ function Br({
|
|
|
8550
8562
|
className: e,
|
|
8551
8563
|
children: t,
|
|
8552
8564
|
showCloseButton: a = !1,
|
|
8553
|
-
|
|
8565
|
+
title: n,
|
|
8566
|
+
...o
|
|
8554
8567
|
}) {
|
|
8555
|
-
const
|
|
8556
|
-
return /* @__PURE__ */ r(jr, { container:
|
|
8568
|
+
const l = ct(), i = ut();
|
|
8569
|
+
return /* @__PURE__ */ r(jr, { container: l, "data-slot": "dialog-portal", children: /* @__PURE__ */ r(Mr, { className: O(i ? "dark" : "", "overflow-y-auto"), children: /* @__PURE__ */ h(
|
|
8557
8570
|
Ge.Content,
|
|
8558
8571
|
{
|
|
8559
8572
|
"data-slot": "dialog-content",
|
|
@@ -8562,8 +8575,9 @@ function Br({
|
|
|
8562
8575
|
i ? "dark" : "",
|
|
8563
8576
|
e
|
|
8564
8577
|
),
|
|
8565
|
-
...
|
|
8578
|
+
...o,
|
|
8566
8579
|
children: [
|
|
8580
|
+
/* @__PURE__ */ r(ua, { children: /* @__PURE__ */ r(_a, { children: n }) }),
|
|
8567
8581
|
t,
|
|
8568
8582
|
a && /* @__PURE__ */ h(
|
|
8569
8583
|
Ge.Close,
|
|
@@ -8571,7 +8585,7 @@ function Br({
|
|
|
8571
8585
|
"data-slot": "dialog-close",
|
|
8572
8586
|
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",
|
|
8573
8587
|
children: [
|
|
8574
|
-
/* @__PURE__ */ r(
|
|
8588
|
+
/* @__PURE__ */ r(Ma, {}),
|
|
8575
8589
|
/* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
|
|
8576
8590
|
]
|
|
8577
8591
|
}
|
|
@@ -8585,28 +8599,30 @@ function fe({
|
|
|
8585
8599
|
children: t,
|
|
8586
8600
|
onClose: a,
|
|
8587
8601
|
className: n,
|
|
8588
|
-
|
|
8602
|
+
title: o,
|
|
8603
|
+
stopFocusPropagation: l = !1,
|
|
8589
8604
|
hideCloseButton: i = !1
|
|
8590
8605
|
}) {
|
|
8591
8606
|
return /* @__PURE__ */ r(
|
|
8592
|
-
|
|
8607
|
+
ci,
|
|
8593
8608
|
{
|
|
8594
|
-
onOpenChange: (
|
|
8595
|
-
|
|
8609
|
+
onOpenChange: (g) => {
|
|
8610
|
+
g || a();
|
|
8596
8611
|
},
|
|
8597
8612
|
open: e,
|
|
8598
8613
|
children: /* @__PURE__ */ h(
|
|
8599
8614
|
Br,
|
|
8600
8615
|
{
|
|
8601
|
-
|
|
8602
|
-
|
|
8616
|
+
title: o,
|
|
8617
|
+
onFocusCapture: (g) => {
|
|
8618
|
+
l && g.stopPropagation();
|
|
8603
8619
|
},
|
|
8604
8620
|
autoFocus: !1,
|
|
8605
8621
|
tabIndex: void 0,
|
|
8606
8622
|
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}`,
|
|
8607
8623
|
children: [
|
|
8608
8624
|
!i && /* @__PURE__ */ r(
|
|
8609
|
-
|
|
8625
|
+
Xa,
|
|
8610
8626
|
{
|
|
8611
8627
|
className: "absolute top-[18px] right-3 h-4 w-4 cursor-pointer",
|
|
8612
8628
|
onClick: a
|
|
@@ -8625,11 +8641,11 @@ function ge({
|
|
|
8625
8641
|
}) {
|
|
8626
8642
|
return /* @__PURE__ */ r("form", { onSubmit: (a) => a.preventDefault(), className: e, children: t });
|
|
8627
8643
|
}
|
|
8628
|
-
function
|
|
8644
|
+
function ui(e, t) {
|
|
8629
8645
|
let a = e;
|
|
8630
|
-
const n = t?.message, o = t?.hint?.errors?.[0]?.message,
|
|
8631
|
-
return
|
|
8632
|
-
${n}`), o?.length && (!
|
|
8646
|
+
const n = t?.message, o = t?.hint?.errors?.[0]?.message, l = n?.length;
|
|
8647
|
+
return l && (a += `
|
|
8648
|
+
${n}`), o?.length && (!l || n.indexOf(o) === -1) && (a += `
|
|
8633
8649
|
${o}`), a;
|
|
8634
8650
|
}
|
|
8635
8651
|
function ve({
|
|
@@ -8638,8 +8654,8 @@ function ve({
|
|
|
8638
8654
|
disabled: a,
|
|
8639
8655
|
className: n,
|
|
8640
8656
|
label: o,
|
|
8641
|
-
submitLabel:
|
|
8642
|
-
errorMessage:
|
|
8657
|
+
submitLabel: l,
|
|
8658
|
+
errorMessage: i,
|
|
8643
8659
|
successMessage: g,
|
|
8644
8660
|
onClick: c,
|
|
8645
8661
|
tabIndex: p,
|
|
@@ -8652,7 +8668,7 @@ function ve({
|
|
|
8652
8668
|
try {
|
|
8653
8669
|
await c(), g && oe(g);
|
|
8654
8670
|
} catch (m) {
|
|
8655
|
-
ie(
|
|
8671
|
+
ie(ui(i, m));
|
|
8656
8672
|
} finally {
|
|
8657
8673
|
u(!1);
|
|
8658
8674
|
}
|
|
@@ -8668,23 +8684,23 @@ function ve({
|
|
|
8668
8684
|
className: n,
|
|
8669
8685
|
onClick: s,
|
|
8670
8686
|
title: f,
|
|
8671
|
-
children: d ?
|
|
8687
|
+
children: d ? l : o
|
|
8672
8688
|
}
|
|
8673
8689
|
);
|
|
8674
8690
|
}
|
|
8675
8691
|
function Tt(e) {
|
|
8676
8692
|
return e.length === 36 && e.indexOf("-") === 8 ? e.replaceAll(/[^-]/g, "*") : e.replaceAll(/./g, "*");
|
|
8677
8693
|
}
|
|
8678
|
-
function
|
|
8694
|
+
function pi({
|
|
8679
8695
|
value: e,
|
|
8680
8696
|
label: t,
|
|
8681
8697
|
size: a = "normal",
|
|
8682
8698
|
defaultHidden: n,
|
|
8683
8699
|
hideValue: o,
|
|
8684
|
-
onChangeHideValue:
|
|
8685
|
-
multiline:
|
|
8700
|
+
onChangeHideValue: l,
|
|
8701
|
+
multiline: i = !1
|
|
8686
8702
|
}) {
|
|
8687
|
-
const [g, c] = C(n), p =
|
|
8703
|
+
const [g, c] = C(n), p = l || (n ? () => c(!g) : null), [f, d] = C(!1);
|
|
8688
8704
|
return /* @__PURE__ */ h(
|
|
8689
8705
|
"div",
|
|
8690
8706
|
{
|
|
@@ -8712,8 +8728,8 @@ function ci({
|
|
|
8712
8728
|
"pre",
|
|
8713
8729
|
{
|
|
8714
8730
|
className: Oe("flex-1 cursor-pointer px-2 py-1.5 select-text", {
|
|
8715
|
-
truncate: !
|
|
8716
|
-
"break-all whitespace-pre-wrap":
|
|
8731
|
+
truncate: !i,
|
|
8732
|
+
"break-all whitespace-pre-wrap": i
|
|
8717
8733
|
}),
|
|
8718
8734
|
title: o || g ? "Copy to clipboard" : e,
|
|
8719
8735
|
onClick: (u) => {
|
|
@@ -8740,17 +8756,17 @@ function ci({
|
|
|
8740
8756
|
}
|
|
8741
8757
|
);
|
|
8742
8758
|
}
|
|
8743
|
-
function
|
|
8759
|
+
function gi({
|
|
8744
8760
|
value: e,
|
|
8745
8761
|
label: t,
|
|
8746
8762
|
size: a = "normal",
|
|
8747
8763
|
defaultHidden: n,
|
|
8748
8764
|
hideValue: o,
|
|
8749
|
-
onChangeHideValue:
|
|
8750
|
-
multiline:
|
|
8765
|
+
onChangeHideValue: l,
|
|
8766
|
+
multiline: i,
|
|
8751
8767
|
onCopy: g
|
|
8752
8768
|
}) {
|
|
8753
|
-
const [c, p] = C(n), [f, d] = C(!1), [u, s] = C("Copy"), m =
|
|
8769
|
+
const [c, p] = C(n), [f, d] = C(!1), [u, s] = C("Copy"), m = l || (n ? () => p(!c) : null);
|
|
8754
8770
|
return /* @__PURE__ */ h(
|
|
8755
8771
|
"div",
|
|
8756
8772
|
{
|
|
@@ -8778,8 +8794,8 @@ function ui({
|
|
|
8778
8794
|
"pre",
|
|
8779
8795
|
{
|
|
8780
8796
|
className: Oe("flex-1 cursor-pointer px-2 py-1.5 select-text", {
|
|
8781
|
-
truncate: !
|
|
8782
|
-
"break-all whitespace-pre-wrap":
|
|
8797
|
+
truncate: !i,
|
|
8798
|
+
"break-all whitespace-pre-wrap": i
|
|
8783
8799
|
}),
|
|
8784
8800
|
title: o || c ? "Copy to clipboard" : e,
|
|
8785
8801
|
onClick: (b) => {
|
|
@@ -8832,7 +8848,7 @@ function ui({
|
|
|
8832
8848
|
}
|
|
8833
8849
|
);
|
|
8834
8850
|
}
|
|
8835
|
-
function
|
|
8851
|
+
function hi({ value: e }) {
|
|
8836
8852
|
const [t, a] = C(!1);
|
|
8837
8853
|
return /* @__PURE__ */ h("span", { className: "inline-flex items-center rounded-sm bg-gray-500 px-2 text-sm text-white", children: [
|
|
8838
8854
|
/* @__PURE__ */ r(
|
|
@@ -8840,8 +8856,8 @@ function pi({ value: e }) {
|
|
|
8840
8856
|
{
|
|
8841
8857
|
className: "truncate",
|
|
8842
8858
|
onClick: (n) => {
|
|
8843
|
-
const o = n.target,
|
|
8844
|
-
!
|
|
8859
|
+
const o = n.target, l = window.getSelection();
|
|
8860
|
+
!l || !o || l.selectAllChildren(o);
|
|
8845
8861
|
},
|
|
8846
8862
|
children: e
|
|
8847
8863
|
}
|
|
@@ -8855,7 +8871,7 @@ function pi({ value: e }) {
|
|
|
8855
8871
|
a(!1);
|
|
8856
8872
|
}, 2500));
|
|
8857
8873
|
},
|
|
8858
|
-
children: t ? /* @__PURE__ */ r(
|
|
8874
|
+
children: t ? /* @__PURE__ */ r(Za, { className: "pl-1", height: "1em" }) : /* @__PURE__ */ r(
|
|
8859
8875
|
Et,
|
|
8860
8876
|
{
|
|
8861
8877
|
className: "cursor-pointer pl-1",
|
|
@@ -8890,14 +8906,14 @@ const ht = ({
|
|
|
8890
8906
|
}
|
|
8891
8907
|
)
|
|
8892
8908
|
] }), Ot = ({ children: e }) => /* @__PURE__ */ h(
|
|
8893
|
-
|
|
8909
|
+
Ua,
|
|
8894
8910
|
{
|
|
8895
8911
|
as: "span",
|
|
8896
8912
|
className: "relative inline-flex align-middle",
|
|
8897
8913
|
"data-open": "true",
|
|
8898
8914
|
children: [
|
|
8899
|
-
/* @__PURE__ */ r(
|
|
8900
|
-
|
|
8915
|
+
/* @__PURE__ */ r(Pa, { className: "inline", children: /* @__PURE__ */ r(
|
|
8916
|
+
Ia,
|
|
8901
8917
|
{
|
|
8902
8918
|
height: "1em",
|
|
8903
8919
|
width: "1em",
|
|
@@ -8905,7 +8921,7 @@ const ht = ({
|
|
|
8905
8921
|
}
|
|
8906
8922
|
) }),
|
|
8907
8923
|
/* @__PURE__ */ r(
|
|
8908
|
-
|
|
8924
|
+
qa,
|
|
8909
8925
|
{
|
|
8910
8926
|
anchor: "bottom start",
|
|
8911
8927
|
className: "z-50 rounded-lg bg-white p-2 shadow-lg dark:bg-neutral-800",
|
|
@@ -8914,7 +8930,7 @@ const ht = ({
|
|
|
8914
8930
|
)
|
|
8915
8931
|
]
|
|
8916
8932
|
}
|
|
8917
|
-
),
|
|
8933
|
+
), fi = ({
|
|
8918
8934
|
children: e,
|
|
8919
8935
|
className: t
|
|
8920
8936
|
}) => /* @__PURE__ */ r(
|
|
@@ -8933,9 +8949,9 @@ function Ur({
|
|
|
8933
8949
|
className: a,
|
|
8934
8950
|
children: n,
|
|
8935
8951
|
variant: o,
|
|
8936
|
-
...
|
|
8952
|
+
...l
|
|
8937
8953
|
}) {
|
|
8938
|
-
const
|
|
8954
|
+
const i = {
|
|
8939
8955
|
transform: t ? `scaleX(${Math.max(0, Math.min(100, e)) / 100})` : "scaleX(0)",
|
|
8940
8956
|
transition: "transform 0.3s ease-in-out",
|
|
8941
8957
|
transformOrigin: "left"
|
|
@@ -8949,12 +8965,12 @@ function Ur({
|
|
|
8949
8965
|
return /* @__PURE__ */ h(
|
|
8950
8966
|
V,
|
|
8951
8967
|
{
|
|
8952
|
-
...
|
|
8968
|
+
...l,
|
|
8953
8969
|
variant: o,
|
|
8954
8970
|
loading: t,
|
|
8955
8971
|
className: O("relative overflow-hidden", a),
|
|
8956
8972
|
children: [
|
|
8957
|
-
t && /* @__PURE__ */ r("div", { className: g, style:
|
|
8973
|
+
t && /* @__PURE__ */ r("div", { className: g, style: i }),
|
|
8958
8974
|
/* @__PURE__ */ r("span", { className: "relative z-10", children: n })
|
|
8959
8975
|
]
|
|
8960
8976
|
}
|
|
@@ -8989,7 +9005,7 @@ function Ze({
|
|
|
8989
9005
|
children: a,
|
|
8990
9006
|
...n
|
|
8991
9007
|
}) {
|
|
8992
|
-
const o = ct(),
|
|
9008
|
+
const o = ct(), l = ut();
|
|
8993
9009
|
return /* @__PURE__ */ r(ne.Portal, { container: o, children: /* @__PURE__ */ r(
|
|
8994
9010
|
ne.Content,
|
|
8995
9011
|
{
|
|
@@ -8997,7 +9013,7 @@ function Ze({
|
|
|
8997
9013
|
sideOffset: t,
|
|
8998
9014
|
className: O(
|
|
8999
9015
|
"animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) border border-gray-100 bg-white px-3 py-1.5 text-xs text-balance text-gray-900 dark:border-neutral-600 dark:bg-neutral-800 dark:text-white",
|
|
9000
|
-
|
|
9016
|
+
l ? "dark" : "",
|
|
9001
9017
|
e
|
|
9002
9018
|
),
|
|
9003
9019
|
...n,
|
|
@@ -9066,21 +9082,21 @@ function Wr({
|
|
|
9066
9082
|
}
|
|
9067
9083
|
function ue(e, t) {
|
|
9068
9084
|
return function(a) {
|
|
9069
|
-
return
|
|
9085
|
+
return Ra(e, {
|
|
9070
9086
|
...a,
|
|
9071
9087
|
className: O(t, a.className)
|
|
9072
9088
|
});
|
|
9073
9089
|
};
|
|
9074
9090
|
}
|
|
9075
9091
|
function O(...e) {
|
|
9076
|
-
return
|
|
9092
|
+
return ga(Oe(e));
|
|
9077
9093
|
}
|
|
9078
9094
|
function Vr() {
|
|
9079
9095
|
return /* @__PURE__ */ r("div", { className: "animate-slow-pulse flex w-full flex-1 flex-col bg-gray-300" });
|
|
9080
9096
|
}
|
|
9081
9097
|
function _t(e) {
|
|
9082
9098
|
return /* @__PURE__ */ r(
|
|
9083
|
-
|
|
9099
|
+
pa,
|
|
9084
9100
|
{
|
|
9085
9101
|
theme: e.darkMode ? "vs-dark" : "vs-light",
|
|
9086
9102
|
className: O(
|
|
@@ -9110,9 +9126,9 @@ function _t(e) {
|
|
|
9110
9126
|
}
|
|
9111
9127
|
);
|
|
9112
9128
|
}
|
|
9113
|
-
function
|
|
9114
|
-
const [t, a] = C(e.value), o = `json-editor-${ur()}.json`, [
|
|
9115
|
-
return
|
|
9129
|
+
function mi(e) {
|
|
9130
|
+
const [t, a] = C(e.value), o = `json-editor-${ur()}.json`, [l, i] = C(void 0);
|
|
9131
|
+
return Jo(o, l, e.schema), H(() => {
|
|
9116
9132
|
a(e.value);
|
|
9117
9133
|
}, [e.value]), /* @__PURE__ */ h("div", { className: "flex h-full min-h-0 flex-col bg-gray-50 dark:bg-[#252525]", children: [
|
|
9118
9134
|
/* @__PURE__ */ h("div", { className: "flex items-center justify-between gap-4 border-b px-4 py-2 dark:border-b-neutral-700", children: [
|
|
@@ -9128,7 +9144,7 @@ function hi(e) {
|
|
|
9128
9144
|
path: o,
|
|
9129
9145
|
onChange: (g) => a(g),
|
|
9130
9146
|
onMount: function(c, p) {
|
|
9131
|
-
|
|
9147
|
+
i(p), c.addCommand(
|
|
9132
9148
|
p.KeyMod.CtrlCmd | p.KeyCode.KeyS,
|
|
9133
9149
|
() => e.onSave(c.getValue())
|
|
9134
9150
|
), c.onDidPaste(async () => {
|
|
@@ -9136,7 +9152,7 @@ function hi(e) {
|
|
|
9136
9152
|
f && setTimeout(async () => {
|
|
9137
9153
|
const d = f.getValue();
|
|
9138
9154
|
if (!d.trim()) return;
|
|
9139
|
-
const u =
|
|
9155
|
+
const u = Zo(d);
|
|
9140
9156
|
u.status === "ok" && f.setValue(JSON.stringify(u.value, null, 2));
|
|
9141
9157
|
}, 20);
|
|
9142
9158
|
});
|
|
@@ -9151,13 +9167,13 @@ function Dt({
|
|
|
9151
9167
|
style: a,
|
|
9152
9168
|
darkMode: n,
|
|
9153
9169
|
className: o,
|
|
9154
|
-
copyable:
|
|
9170
|
+
copyable: l
|
|
9155
9171
|
}) {
|
|
9156
|
-
const [
|
|
9172
|
+
const [i, g] = C("Copy");
|
|
9157
9173
|
return /* @__PURE__ */ r(
|
|
9158
|
-
|
|
9174
|
+
Xo,
|
|
9159
9175
|
{
|
|
9160
|
-
...
|
|
9176
|
+
...Wo,
|
|
9161
9177
|
code: e.trimEnd(),
|
|
9162
9178
|
language: t,
|
|
9163
9179
|
theme: n ? {
|
|
@@ -9166,7 +9182,7 @@ function Dt({
|
|
|
9166
9182
|
color: "white"
|
|
9167
9183
|
},
|
|
9168
9184
|
styles: []
|
|
9169
|
-
} :
|
|
9185
|
+
} : ei,
|
|
9170
9186
|
children: ({ className: c, style: p, tokens: f, getTokenProps: d }) => /* @__PURE__ */ h(
|
|
9171
9187
|
"pre",
|
|
9172
9188
|
{
|
|
@@ -9174,10 +9190,10 @@ function Dt({
|
|
|
9174
9190
|
style: {
|
|
9175
9191
|
...p,
|
|
9176
9192
|
...a,
|
|
9177
|
-
...
|
|
9193
|
+
...l ? { position: "relative" } : {}
|
|
9178
9194
|
},
|
|
9179
9195
|
children: [
|
|
9180
|
-
|
|
9196
|
+
l ? /* @__PURE__ */ r("div", { className: "absolute top-0 right-0 flex items-center px-2", children: /* @__PURE__ */ h(
|
|
9181
9197
|
"button",
|
|
9182
9198
|
{
|
|
9183
9199
|
onClick: (u) => {
|
|
@@ -9194,11 +9210,11 @@ function Dt({
|
|
|
9194
9210
|
"aria-hidden": "true"
|
|
9195
9211
|
}
|
|
9196
9212
|
),
|
|
9197
|
-
|
|
9213
|
+
i
|
|
9198
9214
|
]
|
|
9199
9215
|
}
|
|
9200
9216
|
) }) : null,
|
|
9201
|
-
/* @__PURE__ */ r("code", { children: f.map((u, s) => /* @__PURE__ */ h(
|
|
9217
|
+
/* @__PURE__ */ r("code", { children: f.map((u, s) => /* @__PURE__ */ h(Ta, { children: [
|
|
9202
9218
|
u.filter((m) => !m.empty).map((m, b) => {
|
|
9203
9219
|
const { key: w, ...v } = d({ token: m });
|
|
9204
9220
|
return /* @__PURE__ */ r("span", { ...v }, w || b);
|
|
@@ -9237,18 +9253,18 @@ function Yr({
|
|
|
9237
9253
|
}
|
|
9238
9254
|
);
|
|
9239
9255
|
}
|
|
9240
|
-
const
|
|
9256
|
+
const Yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9241
9257
|
__proto__: null,
|
|
9242
9258
|
ActionButton: ve,
|
|
9243
9259
|
ActionForm: ge,
|
|
9244
|
-
Badge:
|
|
9245
|
-
BlockHeading:
|
|
9260
|
+
Badge: fi,
|
|
9261
|
+
BlockHeading: ii,
|
|
9246
9262
|
Button: V,
|
|
9247
9263
|
Checkbox: ee,
|
|
9248
9264
|
CodeEditor: _t,
|
|
9249
9265
|
Content: pt,
|
|
9250
|
-
Copyable:
|
|
9251
|
-
Copytext:
|
|
9266
|
+
Copyable: gi,
|
|
9267
|
+
Copytext: hi,
|
|
9252
9268
|
Dialog: fe,
|
|
9253
9269
|
DialogContent: Br,
|
|
9254
9270
|
DialogOverlay: Mr,
|
|
@@ -9261,22 +9277,22 @@ const Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9261
9277
|
DropdownMenuTrigger: Gr,
|
|
9262
9278
|
Fence: Dt,
|
|
9263
9279
|
FullscreenLoading: Vr,
|
|
9264
|
-
Group:
|
|
9265
|
-
Hint:
|
|
9280
|
+
Group: ri,
|
|
9281
|
+
Hint: li,
|
|
9266
9282
|
IconButton: gt,
|
|
9267
9283
|
InfoTip: Ot,
|
|
9268
|
-
JSONEditor:
|
|
9284
|
+
JSONEditor: mi,
|
|
9269
9285
|
Label: Re,
|
|
9270
|
-
LogoIcon:
|
|
9286
|
+
LogoIcon: si,
|
|
9271
9287
|
ProgressButton: Ur,
|
|
9272
|
-
ScreenHeading:
|
|
9273
|
-
SectionHeading:
|
|
9288
|
+
ScreenHeading: ai,
|
|
9289
|
+
SectionHeading: ni,
|
|
9274
9290
|
Select: we,
|
|
9275
|
-
SmallCopyable:
|
|
9276
|
-
Stack:
|
|
9277
|
-
SubsectionHeading:
|
|
9291
|
+
SmallCopyable: pi,
|
|
9292
|
+
Stack: ti,
|
|
9293
|
+
SubsectionHeading: oi,
|
|
9278
9294
|
Switch: Yr,
|
|
9279
|
-
TextArea:
|
|
9295
|
+
TextArea: di,
|
|
9280
9296
|
TextInput: Ee,
|
|
9281
9297
|
Toaster: ca,
|
|
9282
9298
|
ToggleCollection: $r,
|
|
@@ -9294,14 +9310,14 @@ const Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9294
9310
|
export {
|
|
9295
9311
|
ve as ActionButton,
|
|
9296
9312
|
ge as ActionForm,
|
|
9297
|
-
|
|
9298
|
-
|
|
9313
|
+
fi as Badge,
|
|
9314
|
+
ii as BlockHeading,
|
|
9299
9315
|
V as Button,
|
|
9300
9316
|
ee as Checkbox,
|
|
9301
9317
|
_t as CodeEditor,
|
|
9302
9318
|
pt as Content,
|
|
9303
|
-
|
|
9304
|
-
|
|
9319
|
+
gi as Copyable,
|
|
9320
|
+
hi as Copytext,
|
|
9305
9321
|
fe as Dialog,
|
|
9306
9322
|
Br as DialogContent,
|
|
9307
9323
|
Mr as DialogOverlay,
|
|
@@ -9312,28 +9328,28 @@ export {
|
|
|
9312
9328
|
Ue as DropdownMenuItem,
|
|
9313
9329
|
Wr as DropdownMenuSeparator,
|
|
9314
9330
|
Gr as DropdownMenuTrigger,
|
|
9315
|
-
|
|
9331
|
+
Vi as Explorer,
|
|
9316
9332
|
Dt as Fence,
|
|
9317
9333
|
Vr as FullscreenLoading,
|
|
9318
|
-
|
|
9319
|
-
|
|
9334
|
+
ri as Group,
|
|
9335
|
+
li as Hint,
|
|
9320
9336
|
gt as IconButton,
|
|
9321
9337
|
Ot as InfoTip,
|
|
9322
|
-
|
|
9338
|
+
mi as JSONEditor,
|
|
9323
9339
|
Re as Label,
|
|
9324
|
-
|
|
9340
|
+
si as LogoIcon,
|
|
9325
9341
|
Ur as ProgressButton,
|
|
9326
|
-
|
|
9327
|
-
|
|
9342
|
+
ai as ScreenHeading,
|
|
9343
|
+
ni as SectionHeading,
|
|
9328
9344
|
we as Select,
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
|
|
9332
|
-
|
|
9345
|
+
pi as SmallCopyable,
|
|
9346
|
+
ti as Stack,
|
|
9347
|
+
zo as StyleMe,
|
|
9348
|
+
oi as SubsectionHeading,
|
|
9333
9349
|
Yr as Switch,
|
|
9334
|
-
|
|
9350
|
+
di as TextArea,
|
|
9335
9351
|
Ee as TextInput,
|
|
9336
|
-
|
|
9352
|
+
Zi as Toaster,
|
|
9337
9353
|
$r as ToggleCollection,
|
|
9338
9354
|
zr as ToggleGroup,
|
|
9339
9355
|
Ke as Tooltip,
|
|
@@ -9342,8 +9358,8 @@ export {
|
|
|
9342
9358
|
Xe as TooltipTrigger,
|
|
9343
9359
|
O as cn,
|
|
9344
9360
|
Tt as redactedValue,
|
|
9345
|
-
|
|
9361
|
+
Qi as toast,
|
|
9346
9362
|
ue as twel,
|
|
9347
|
-
|
|
9363
|
+
Yi as ui,
|
|
9348
9364
|
it as useDialog
|
|
9349
9365
|
};
|