treege 3.0.0-beta.65 → 3.0.0-beta.67

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.
@@ -1,31 +1,31 @@
1
- import { C as e, D as t, S as n, T as r, _ as i, b as a, g as o, k as s, m as c, p as l, s as u, v as d, w as f, y as p } from "./ThemeContext-7cghqUb0.js";
2
- import * as m from "react";
3
- import { createContext as h, useCallback as g, useContext as _, useEffect as v, useMemo as y, useRef as b, useState as x } from "react";
4
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
5
- import { Check as T, CheckIcon as E, ChevronDownIcon as D, ChevronLeftIcon as ee, ChevronRightIcon as te, ChevronUpIcon as ne, ChevronsUpDown as re, CircleIcon as ie, Loader2 as O, MapPin as k, SearchIcon as ae, XIcon as A } from "lucide-react";
6
- import { Slot as j } from "@radix-ui/react-slot";
7
- import { cva as M } from "class-variance-authority";
1
+ import { D as e, E as t, S as n, T as r, _ as i, b as a, j as o, k as s, m as c, p as l, s as u, v as d, w as f, x as p, y as m } from "./ThemeContext-DaPU-Jb0.js";
2
+ import * as h from "react";
3
+ import { createContext as g, useCallback as _, useContext as v, useEffect as y, useMemo as b, useRef as x, useState as S } from "react";
4
+ import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
5
+ import { Check as ee, CheckIcon as E, ChevronDownIcon as D, ChevronLeftIcon as te, ChevronRightIcon as ne, ChevronUpIcon as O, ChevronsUpDown as re, CircleIcon as ie, Loader2 as k, MapPin as A, SearchIcon as ae, XIcon as j } from "lucide-react";
6
+ import { Slot as M } from "@radix-ui/react-slot";
7
+ import { cva as N } from "class-variance-authority";
8
8
  import { clsx as oe } from "clsx";
9
- import { extendTailwindMerge as N } from "tailwind-merge";
9
+ import { extendTailwindMerge as P } from "tailwind-merge";
10
10
  import * as se from "@radix-ui/react-checkbox";
11
- import * as P from "@radix-ui/react-label";
12
- import * as F from "@radix-ui/react-popover";
13
- import * as I from "@radix-ui/react-select";
14
- import * as L from "@radix-ui/react-tooltip";
15
- import * as R from "@radix-ui/react-separator";
16
- import { Command as z } from "cmdk";
17
- import * as B from "@radix-ui/react-dialog";
18
- import { DayPicker as ce, getDefaultClassNames as V } from "react-day-picker";
19
- import * as H from "@radix-ui/react-radio-group";
20
- import * as U from "@radix-ui/react-switch";
11
+ import * as F from "@radix-ui/react-label";
12
+ import * as I from "@radix-ui/react-popover";
13
+ import * as L from "@radix-ui/react-select";
14
+ import * as R from "@radix-ui/react-tooltip";
15
+ import * as z from "@radix-ui/react-separator";
16
+ import { Command as B } from "cmdk";
17
+ import * as V from "@radix-ui/react-dialog";
18
+ import { DayPicker as ce, getDefaultClassNames as H } from "react-day-picker";
19
+ import * as U from "@radix-ui/react-radio-group";
20
+ import * as W from "@radix-ui/react-switch";
21
21
  //#region src/shared/lib/utils.ts
22
- var le = N({ prefix: "tg" });
23
- function W(...e) {
22
+ var le = P({ prefix: "tg" });
23
+ function G(...e) {
24
24
  return le(oe(e));
25
25
  }
26
26
  //#endregion
27
27
  //#region src/shared/components/ui/button.tsx
28
- var ue = M("tg:inline-flex tg:items-center tg:justify-center tg:gap-2 tg:whitespace-nowrap tg:rounded-md tg:text-sm tg:font-medium tg:transition-all tg:disabled:pointer-events-none tg:disabled:opacity-50 tg:[&_svg]:pointer-events-none tg:[&_svg:not([class*='size-'])]:size-4 tg:shrink-0 tg:[&_svg]:shrink-0 tg:outline-none tg:focus-visible:border-ring tg:focus-visible:ring-ring/50 tg:focus-visible:ring-[3px] tg:aria-invalid:ring-destructive/20 tg:dark:aria-invalid:ring-destructive/40 tg:aria-invalid:border-destructive", {
28
+ var ue = N("tg:inline-flex tg:items-center tg:justify-center tg:gap-2 tg:whitespace-nowrap tg:rounded-md tg:text-sm tg:font-medium tg:transition-all tg:disabled:pointer-events-none tg:disabled:opacity-50 tg:[&_svg]:pointer-events-none tg:[&_svg:not([class*='size-'])]:size-4 tg:shrink-0 tg:[&_svg]:shrink-0 tg:outline-none tg:focus-visible:border-ring tg:focus-visible:ring-ring/50 tg:focus-visible:ring-[3px] tg:aria-invalid:ring-destructive/20 tg:dark:aria-invalid:ring-destructive/40 tg:aria-invalid:border-destructive", {
29
29
  defaultVariants: {
30
30
  size: "default",
31
31
  variant: "default"
@@ -51,10 +51,10 @@ var ue = M("tg:inline-flex tg:items-center tg:justify-center tg:gap-2 tg:whitesp
51
51
  }
52
52
  }
53
53
  });
54
- function G({ className: e, variant: t, size: n, asChild: r = !1, ...i }) {
55
- return /* @__PURE__ */ C(r ? j : "button", {
54
+ function de({ className: e, variant: t, size: n, asChild: r = !1, ...i }) {
55
+ return /* @__PURE__ */ w(r ? M : "button", {
56
56
  "data-slot": "button",
57
- className: W(ue({
57
+ className: G(ue({
58
58
  className: e,
59
59
  size: n,
60
60
  variant: t
@@ -64,241 +64,241 @@ function G({ className: e, variant: t, size: n, asChild: r = !1, ...i }) {
64
64
  }
65
65
  //#endregion
66
66
  //#region src/shared/components/ui/checkbox.tsx
67
- function de({ className: e, ...t }) {
68
- return /* @__PURE__ */ C(se.Root, {
67
+ function fe({ className: e, ...t }) {
68
+ return /* @__PURE__ */ w(se.Root, {
69
69
  "data-slot": "checkbox",
70
- className: W("tg:peer tg:size-4 tg:shrink-0 tg:rounded-[4px] tg:border tg:border-input tg:shadow-xs tg:outline-none tg:transition-shadow tg:focus-visible:border-ring tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50 tg:disabled:cursor-not-allowed tg:disabled:opacity-50 tg:aria-invalid:border-destructive tg:aria-invalid:ring-destructive/20 tg:data-[state=checked]:border-primary tg:data-[state=checked]:bg-primary tg:data-[state=checked]:text-primary-foreground tg:dark:bg-input/30 tg:dark:data-[state=checked]:bg-primary tg:dark:aria-invalid:ring-destructive/40", e),
70
+ className: G("tg:peer tg:size-4 tg:shrink-0 tg:rounded-[4px] tg:border tg:border-input tg:shadow-xs tg:outline-none tg:transition-shadow tg:focus-visible:border-ring tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50 tg:disabled:cursor-not-allowed tg:disabled:opacity-50 tg:aria-invalid:border-destructive tg:aria-invalid:ring-destructive/20 tg:data-[state=checked]:border-primary tg:data-[state=checked]:bg-primary tg:data-[state=checked]:text-primary-foreground tg:dark:bg-input/30 tg:dark:data-[state=checked]:bg-primary tg:dark:aria-invalid:ring-destructive/40", e),
71
71
  ...t,
72
- children: /* @__PURE__ */ C(se.Indicator, {
72
+ children: /* @__PURE__ */ w(se.Indicator, {
73
73
  "data-slot": "checkbox-indicator",
74
74
  className: "tg:grid tg:place-content-center tg:text-current tg:transition-none",
75
- children: /* @__PURE__ */ C(E, { className: "tg:size-3.5" })
75
+ children: /* @__PURE__ */ w(E, { className: "tg:size-3.5" })
76
76
  })
77
77
  });
78
78
  }
79
79
  //#endregion
80
80
  //#region src/shared/components/ui/form.tsx
81
81
  function K({ className: e, ...t }) {
82
- return /* @__PURE__ */ C("div", {
82
+ return /* @__PURE__ */ w("div", {
83
83
  "data-slot": "form-item",
84
- className: W("tg:grid tg:gap-2", e),
84
+ className: G("tg:grid tg:gap-2", e),
85
85
  ...t
86
86
  });
87
87
  }
88
88
  function q({ className: e, ...t }) {
89
- return /* @__PURE__ */ C("p", {
89
+ return /* @__PURE__ */ w("p", {
90
90
  "data-slot": "form-description",
91
- className: W("tg:text-muted-foreground tg:text-xs", e),
91
+ className: G("tg:text-muted-foreground tg:text-xs", e),
92
92
  ...t
93
93
  });
94
94
  }
95
95
  function J({ className: e, ...t }) {
96
- return /* @__PURE__ */ C("p", {
96
+ return /* @__PURE__ */ w("p", {
97
97
  "data-slot": "form-error",
98
- className: W("tg:text-destructive tg:text-xs", e),
98
+ className: G("tg:text-destructive tg:text-xs", e),
99
99
  ...t
100
100
  });
101
101
  }
102
102
  //#endregion
103
103
  //#region src/shared/components/ui/input.tsx
104
104
  function Y({ className: e, type: t, ...n }) {
105
- return /* @__PURE__ */ C("input", {
105
+ return /* @__PURE__ */ w("input", {
106
106
  type: t,
107
107
  "data-slot": "input",
108
- className: W("tg:h-9 tg:w-full tg:min-w-0 tg:rounded-md tg:border tg:border-input tg:bg-transparent tg:px-3 tg:py-1 tg:text-base tg:shadow-xs tg:outline-none tg:transition-[color,box-shadow] tg:selection:bg-primary tg:selection:text-primary-foreground tg:file:inline-flex tg:file:h-7 tg:file:border-0 tg:file:bg-transparent tg:file:font-medium tg:file:text-foreground tg:file:text-sm tg:placeholder:text-muted-foreground tg:disabled:pointer-events-none tg:disabled:cursor-not-allowed tg:disabled:opacity-50 tg:md:text-sm tg:dark:bg-input/30", "tg:focus-visible:border-ring tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50", "tg:aria-invalid:border-destructive tg:aria-invalid:ring-destructive/20 tg:dark:aria-invalid:ring-destructive/40", e),
108
+ className: G("tg:h-9 tg:w-full tg:min-w-0 tg:rounded-md tg:border tg:border-input tg:bg-transparent tg:px-3 tg:py-1 tg:text-base tg:shadow-xs tg:outline-none tg:transition-[color,box-shadow] tg:selection:bg-primary tg:selection:text-primary-foreground tg:file:inline-flex tg:file:h-7 tg:file:border-0 tg:file:bg-transparent tg:file:font-medium tg:file:text-foreground tg:file:text-sm tg:placeholder:text-muted-foreground tg:disabled:pointer-events-none tg:disabled:cursor-not-allowed tg:disabled:opacity-50 tg:md:text-sm tg:dark:bg-input/30", "tg:focus-visible:border-ring tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50", "tg:aria-invalid:border-destructive tg:aria-invalid:ring-destructive/20 tg:dark:aria-invalid:ring-destructive/40", e),
109
109
  ...n
110
110
  });
111
111
  }
112
112
  //#endregion
113
113
  //#region src/shared/components/ui/label.tsx
114
- var X = ({ className: e, ...t }) => /* @__PURE__ */ C(P.Root, {
114
+ var X = ({ className: e, ...t }) => /* @__PURE__ */ w(F.Root, {
115
115
  "data-slot": "label",
116
- className: W("tg:flex tg:select-none tg:items-center tg:gap-2 tg:font-medium tg:text-muted-foreground tg:text-sm tg:leading-none tg:peer-disabled:cursor-not-allowed tg:peer-disabled:opacity-50 tg:group-data-[disabled=true]:pointer-events-none tg:group-data-[disabled=true]:opacity-50", e),
116
+ className: G("tg:flex tg:select-none tg:items-center tg:gap-2 tg:font-medium tg:text-muted-foreground tg:text-sm tg:leading-none tg:peer-disabled:cursor-not-allowed tg:peer-disabled:opacity-50 tg:group-data-[disabled=true]:pointer-events-none tg:group-data-[disabled=true]:opacity-50", e),
117
117
  ...t
118
- }), fe = h(null), Z = () => _(fe), Q = ({ container: e, children: t }) => /* @__PURE__ */ C(fe.Provider, {
118
+ }), pe = g(null), Z = () => v(pe), Q = ({ container: e, children: t }) => /* @__PURE__ */ w(pe.Provider, {
119
119
  value: e,
120
120
  children: t
121
121
  });
122
122
  //#endregion
123
123
  //#region src/shared/components/ui/popover.tsx
124
- function pe({ ...e }) {
125
- return /* @__PURE__ */ C(F.Root, {
124
+ function me({ ...e }) {
125
+ return /* @__PURE__ */ w(I.Root, {
126
126
  "data-slot": "popover",
127
127
  ...e
128
128
  });
129
129
  }
130
- function me({ ...e }) {
131
- return /* @__PURE__ */ C(F.Trigger, {
130
+ function he({ ...e }) {
131
+ return /* @__PURE__ */ w(I.Trigger, {
132
132
  "data-slot": "popover-trigger",
133
133
  ...e
134
134
  });
135
135
  }
136
- function he({ className: e, align: t = "center", sideOffset: n = 4, disablePortal: r = !1, container: i, ...a }) {
137
- let o = Z(), s = i ?? o, c = /* @__PURE__ */ C(F.Content, {
136
+ function ge({ className: e, align: t = "center", sideOffset: n = 4, disablePortal: r = !1, container: i, ...a }) {
137
+ let o = Z(), s = i ?? o, c = /* @__PURE__ */ w(I.Content, {
138
138
  "data-slot": "popover-content",
139
139
  align: t,
140
140
  sideOffset: n,
141
- className: W("tg:data-[state=closed]:fade-out-0 tg:data-[state=open]:fade-in-0 tg:data-[state=closed]:zoom-out-95 tg:data-[state=open]:zoom-in-95 tg:data-[side=bottom]:slide-in-from-top-2 tg:data-[side=left]:slide-in-from-right-2 tg:data-[side=right]:slide-in-from-left-2 tg:data-[side=top]:slide-in-from-bottom-2 tg:z-[2000] tg:w-72 tg:origin-(--radix-popover-content-transform-origin) tg:rounded-md tg:border tg:bg-popover tg:p-4 tg:text-popover-foreground tg:shadow-md tg:outline-hidden tg:data-[state=closed]:animate-out tg:data-[state=open]:animate-in", e),
141
+ className: G("tg:data-[state=closed]:fade-out-0 tg:data-[state=open]:fade-in-0 tg:data-[state=closed]:zoom-out-95 tg:data-[state=open]:zoom-in-95 tg:data-[side=bottom]:slide-in-from-top-2 tg:data-[side=left]:slide-in-from-right-2 tg:data-[side=right]:slide-in-from-left-2 tg:data-[side=top]:slide-in-from-bottom-2 tg:z-[2000] tg:w-72 tg:origin-(--radix-popover-content-transform-origin) tg:rounded-md tg:border tg:bg-popover tg:p-4 tg:text-popover-foreground tg:shadow-md tg:outline-hidden tg:data-[state=closed]:animate-out tg:data-[state=open]:animate-in", e),
142
142
  ...a
143
143
  });
144
- return r ? c : /* @__PURE__ */ C(F.Portal, {
144
+ return r ? c : /* @__PURE__ */ w(I.Portal, {
145
145
  container: s ?? void 0,
146
146
  children: c
147
147
  });
148
148
  }
149
149
  //#endregion
150
150
  //#region src/shared/components/ui/select.tsx
151
- var ge = ({ ...e }) => /* @__PURE__ */ C(I.Root, {
151
+ var _e = ({ ...e }) => /* @__PURE__ */ w(L.Root, {
152
152
  "data-slot": "select",
153
153
  ...e
154
- }), _e = ({ ...e }) => /* @__PURE__ */ C(I.Group, {
154
+ }), ve = ({ ...e }) => /* @__PURE__ */ w(L.Group, {
155
155
  "data-slot": "select-group",
156
156
  ...e
157
- }), ve = ({ ...e }) => /* @__PURE__ */ C(I.Value, {
157
+ }), ye = ({ ...e }) => /* @__PURE__ */ w(L.Value, {
158
158
  "data-slot": "select-value",
159
159
  ...e
160
- }), ye = ({ className: e, size: t = "default", children: n, ...r }) => /* @__PURE__ */ w(I.Trigger, {
160
+ }), be = ({ className: e, size: t = "default", children: n, ...r }) => /* @__PURE__ */ T(L.Trigger, {
161
161
  "data-slot": "select-trigger",
162
162
  "data-size": t,
163
- className: W("tg:flex tg:w-fit tg:items-center tg:justify-between tg:gap-2 tg:whitespace-nowrap tg:rounded-md tg:border tg:border-input tg:bg-transparent tg:px-3 tg:py-2 tg:text-sm tg:shadow-xs tg:outline-none tg:transition-[color,box-shadow] tg:focus-visible:border-ring tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50 tg:disabled:cursor-not-allowed tg:disabled:opacity-50 tg:aria-invalid:border-destructive tg:aria-invalid:ring-destructive/20 tg:data-[size=default]:h-9 tg:data-[size=sm]:h-8 tg:data-[placeholder]:text-muted-foreground tg:*:data-[slot=select-value]:line-clamp-1 tg:*:data-[slot=select-value]:flex tg:*:data-[slot=select-value]:items-center tg:*:data-[slot=select-value]:gap-2 tg:dark:bg-input/30 tg:dark:aria-invalid:ring-destructive/40 tg:dark:hover:bg-input/50 tg:[&_svg:not([class*='size-'])]:size-4 tg:[&_svg:not([class*='text-'])]:text-muted-foreground tg:[&_svg]:pointer-events-none tg:[&_svg]:shrink-0", e),
163
+ className: G("tg:flex tg:w-fit tg:items-center tg:justify-between tg:gap-2 tg:whitespace-nowrap tg:rounded-md tg:border tg:border-input tg:bg-transparent tg:px-3 tg:py-2 tg:text-sm tg:shadow-xs tg:outline-none tg:transition-[color,box-shadow] tg:focus-visible:border-ring tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50 tg:disabled:cursor-not-allowed tg:disabled:opacity-50 tg:aria-invalid:border-destructive tg:aria-invalid:ring-destructive/20 tg:data-[size=default]:h-9 tg:data-[size=sm]:h-8 tg:data-[placeholder]:text-muted-foreground tg:*:data-[slot=select-value]:line-clamp-1 tg:*:data-[slot=select-value]:flex tg:*:data-[slot=select-value]:items-center tg:*:data-[slot=select-value]:gap-2 tg:dark:bg-input/30 tg:dark:aria-invalid:ring-destructive/40 tg:dark:hover:bg-input/50 tg:[&_svg:not([class*='size-'])]:size-4 tg:[&_svg:not([class*='text-'])]:text-muted-foreground tg:[&_svg]:pointer-events-none tg:[&_svg]:shrink-0", e),
164
164
  ...r,
165
- children: [n, /* @__PURE__ */ C(I.Icon, {
165
+ children: [n, /* @__PURE__ */ w(L.Icon, {
166
166
  asChild: !0,
167
- children: /* @__PURE__ */ C(D, { className: "tg:size-4 tg:opacity-50" })
167
+ children: /* @__PURE__ */ w(D, { className: "tg:size-4 tg:opacity-50" })
168
168
  })]
169
- }), be = ({ className: e, children: t, position: n = "popper", ...r }) => /* @__PURE__ */ C(I.Portal, {
169
+ }), xe = ({ className: e, children: t, position: n = "popper", ...r }) => /* @__PURE__ */ w(L.Portal, {
170
170
  container: Z() ?? void 0,
171
- children: /* @__PURE__ */ w(I.Content, {
171
+ children: /* @__PURE__ */ T(L.Content, {
172
172
  "data-slot": "select-content",
173
- className: W("tg:data-[state=closed]:fade-out-0 tg:data-[state=open]:fade-in-0 tg:data-[state=closed]:zoom-out-95 tg:data-[state=open]:zoom-in-95 tg:data-[side=bottom]:slide-in-from-top-2 tg:data-[side=left]:slide-in-from-right-2 tg:data-[side=right]:slide-in-from-left-2 tg:data-[side=top]:slide-in-from-bottom-2 tg:relative tg:z-[2000] tg:max-h-(--radix-select-content-available-height) tg:min-w-[8rem] tg:origin-(--radix-select-content-transform-origin) tg:overflow-y-auto tg:overflow-x-hidden tg:rounded-md tg:border tg:bg-popover tg:text-popover-foreground tg:shadow-md tg:data-[state=closed]:animate-out tg:data-[state=open]:animate-in", n === "popper" && "tg:data-[side=left]:-translate-x-1 tg:data-[side=top]:-translate-y-1 tg:data-[side=right]:translate-x-1 tg:data-[side=bottom]:translate-y-1", e),
173
+ className: G("tg:data-[state=closed]:fade-out-0 tg:data-[state=open]:fade-in-0 tg:data-[state=closed]:zoom-out-95 tg:data-[state=open]:zoom-in-95 tg:data-[side=bottom]:slide-in-from-top-2 tg:data-[side=left]:slide-in-from-right-2 tg:data-[side=right]:slide-in-from-left-2 tg:data-[side=top]:slide-in-from-bottom-2 tg:relative tg:z-[2000] tg:max-h-(--radix-select-content-available-height) tg:min-w-[8rem] tg:origin-(--radix-select-content-transform-origin) tg:overflow-y-auto tg:overflow-x-hidden tg:rounded-md tg:border tg:bg-popover tg:text-popover-foreground tg:shadow-md tg:data-[state=closed]:animate-out tg:data-[state=open]:animate-in", n === "popper" && "tg:data-[side=left]:-translate-x-1 tg:data-[side=top]:-translate-y-1 tg:data-[side=right]:translate-x-1 tg:data-[side=bottom]:translate-y-1", e),
174
174
  position: n,
175
175
  ...r,
176
176
  children: [
177
- /* @__PURE__ */ C(we, {}),
178
- /* @__PURE__ */ C(I.Viewport, {
179
- className: W("tg:p-1", n === "popper" && "tg:h-[var(--radix-select-trigger-height)] tg:w-full tg:min-w-[var(--radix-select-trigger-width)] tg:scroll-my-1"),
177
+ /* @__PURE__ */ w(Te, {}),
178
+ /* @__PURE__ */ w(L.Viewport, {
179
+ className: G("tg:p-1", n === "popper" && "tg:h-[var(--radix-select-trigger-height)] tg:w-full tg:min-w-[var(--radix-select-trigger-width)] tg:scroll-my-1"),
180
180
  children: t
181
181
  }),
182
- /* @__PURE__ */ C(Te, {})
182
+ /* @__PURE__ */ w(Ee, {})
183
183
  ]
184
184
  })
185
- }), xe = ({ className: e, htmlFor: t, children: n, ...r }) => /* @__PURE__ */ C(I.Label, {
185
+ }), Se = ({ className: e, htmlFor: t, children: n, ...r }) => /* @__PURE__ */ w(L.Label, {
186
186
  "data-slot": "select-label",
187
- className: W("tg:pb-1.5 tg:font-medium tg:text-muted-foreground tg:text-sm", e),
187
+ className: G("tg:pb-1.5 tg:font-medium tg:text-muted-foreground tg:text-sm", e),
188
188
  ...r,
189
- children: /* @__PURE__ */ C("label", {
189
+ children: /* @__PURE__ */ w("label", {
190
190
  htmlFor: t,
191
191
  children: n
192
192
  })
193
- }), Se = ({ className: e, children: t, ...n }) => /* @__PURE__ */ w(I.Item, {
193
+ }), Ce = ({ className: e, children: t, ...n }) => /* @__PURE__ */ T(L.Item, {
194
194
  "data-slot": "select-item",
195
- className: W("tg:relative tg:flex tg:w-full tg:cursor-pointer tg:select-none tg:items-center tg:gap-2 tg:rounded-sm tg:py-1.5 tg:pr-8 tg:pl-2 tg:text-sm tg:outline-hidden tg:focus:bg-accent tg:focus:text-accent-foreground tg:data-[disabled]:pointer-events-none tg:data-[disabled]:opacity-50 tg:[&_svg:not([class*='size-'])]:size-4 tg:[&_svg:not([class*='text-'])]:text-muted-foreground tg:[&_svg]:pointer-events-none tg:[&_svg]:shrink-0 tg:*:[span]:last:flex tg:*:[span]:last:items-center tg:*:[span]:last:gap-2", e),
195
+ className: G("tg:relative tg:flex tg:w-full tg:cursor-pointer tg:select-none tg:items-center tg:gap-2 tg:rounded-sm tg:py-1.5 tg:pr-8 tg:pl-2 tg:text-sm tg:outline-hidden tg:focus:bg-accent tg:focus:text-accent-foreground tg:data-[disabled]:pointer-events-none tg:data-[disabled]:opacity-50 tg:[&_svg:not([class*='size-'])]:size-4 tg:[&_svg:not([class*='text-'])]:text-muted-foreground tg:[&_svg]:pointer-events-none tg:[&_svg]:shrink-0 tg:*:[span]:last:flex tg:*:[span]:last:items-center tg:*:[span]:last:gap-2", e),
196
196
  ...n,
197
- children: [/* @__PURE__ */ C("span", {
197
+ children: [/* @__PURE__ */ w("span", {
198
198
  className: "tg:absolute tg:right-2 tg:flex tg:size-3.5 tg:items-center tg:justify-center",
199
- children: /* @__PURE__ */ C(I.ItemIndicator, { children: /* @__PURE__ */ C(E, { className: "tg:size-4" }) })
200
- }), /* @__PURE__ */ C(I.ItemText, { children: t })]
201
- }), Ce = ({ className: e, ...t }) => /* @__PURE__ */ C(I.Separator, {
199
+ children: /* @__PURE__ */ w(L.ItemIndicator, { children: /* @__PURE__ */ w(E, { className: "tg:size-4" }) })
200
+ }), /* @__PURE__ */ w(L.ItemText, { children: t })]
201
+ }), we = ({ className: e, ...t }) => /* @__PURE__ */ w(L.Separator, {
202
202
  "data-slot": "select-separator",
203
- className: W("tg:-mx-1 tg:pointer-events-none tg:my-1 tg:h-px tg:bg-border", e),
203
+ className: G("tg:-mx-1 tg:pointer-events-none tg:my-1 tg:h-px tg:bg-border", e),
204
204
  ...t
205
- }), we = ({ className: e, ...t }) => /* @__PURE__ */ C(I.ScrollUpButton, {
205
+ }), Te = ({ className: e, ...t }) => /* @__PURE__ */ w(L.ScrollUpButton, {
206
206
  "data-slot": "select-scroll-up-button",
207
- className: W("tg:flex tg:cursor-default tg:items-center tg:justify-center tg:py-1", e),
207
+ className: G("tg:flex tg:cursor-default tg:items-center tg:justify-center tg:py-1", e),
208
208
  ...t,
209
- children: /* @__PURE__ */ C(ne, { className: "tg:size-4" })
210
- }), Te = ({ className: e, ...t }) => /* @__PURE__ */ C(I.ScrollDownButton, {
209
+ children: /* @__PURE__ */ w(O, { className: "tg:size-4" })
210
+ }), Ee = ({ className: e, ...t }) => /* @__PURE__ */ w(L.ScrollDownButton, {
211
211
  "data-slot": "select-scroll-down-button",
212
- className: W("tg:flex tg:cursor-default tg:items-center tg:justify-center tg:py-1", e),
212
+ className: G("tg:flex tg:cursor-default tg:items-center tg:justify-center tg:py-1", e),
213
213
  ...t,
214
- children: /* @__PURE__ */ C(D, { className: "tg:size-4" })
214
+ children: /* @__PURE__ */ w(D, { className: "tg:size-4" })
215
215
  });
216
216
  //#endregion
217
217
  //#region src/shared/components/ui/tooltip.tsx
218
- function Ee({ delayDuration: e = 0, ...t }) {
219
- return /* @__PURE__ */ C(L.Provider, {
218
+ function De({ delayDuration: e = 0, ...t }) {
219
+ return /* @__PURE__ */ w(R.Provider, {
220
220
  "data-slot": "tooltip-provider",
221
221
  delayDuration: e,
222
222
  ...t
223
223
  });
224
224
  }
225
- function De({ ...e }) {
226
- return /* @__PURE__ */ C(Ee, { children: /* @__PURE__ */ C(L.Root, {
225
+ function Oe({ ...e }) {
226
+ return /* @__PURE__ */ w(De, { children: /* @__PURE__ */ w(R.Root, {
227
227
  "data-slot": "tooltip",
228
228
  ...e
229
229
  }) });
230
230
  }
231
- function Oe({ ...e }) {
232
- return /* @__PURE__ */ C(L.Trigger, {
231
+ function ke({ ...e }) {
232
+ return /* @__PURE__ */ w(R.Trigger, {
233
233
  "data-slot": "tooltip-trigger",
234
234
  ...e
235
235
  });
236
236
  }
237
- function ke({ className: e, sideOffset: t = 0, children: n, ...r }) {
238
- return /* @__PURE__ */ C(L.Portal, {
237
+ function Ae({ className: e, sideOffset: t = 0, children: n, ...r }) {
238
+ return /* @__PURE__ */ w(R.Portal, {
239
239
  container: Z() ?? void 0,
240
- children: /* @__PURE__ */ w(L.Content, {
240
+ children: /* @__PURE__ */ T(R.Content, {
241
241
  "data-slot": "tooltip-content",
242
242
  sideOffset: t,
243
- className: W("tg:fade-in-0 tg:zoom-in-95 tg:data-[state=closed]:fade-out-0 tg:data-[state=closed]:zoom-out-95 tg:data-[side=bottom]:slide-in-from-top-2 tg:data-[side=left]:slide-in-from-right-2 tg:data-[side=right]:slide-in-from-left-2 tg:data-[side=top]:slide-in-from-bottom-2 tg:z-[2000] tg:w-fit tg:origin-(--radix-tooltip-content-transform-origin) tg:animate-in tg:text-balance tg:rounded-md tg:bg-foreground tg:px-3 tg:py-1.5 tg:text-background tg:text-xs tg:data-[state=closed]:animate-out", e),
243
+ className: G("tg:fade-in-0 tg:zoom-in-95 tg:data-[state=closed]:fade-out-0 tg:data-[state=closed]:zoom-out-95 tg:data-[side=bottom]:slide-in-from-top-2 tg:data-[side=left]:slide-in-from-right-2 tg:data-[side=right]:slide-in-from-left-2 tg:data-[side=top]:slide-in-from-bottom-2 tg:z-[2000] tg:w-fit tg:origin-(--radix-tooltip-content-transform-origin) tg:animate-in tg:text-balance tg:rounded-md tg:bg-foreground tg:px-3 tg:py-1.5 tg:text-background tg:text-xs tg:data-[state=closed]:animate-out", e),
244
244
  ...r,
245
- children: [n, /* @__PURE__ */ C(L.Arrow, { className: "tg:z-[2000] tg:size-2.5 tg:translate-y-[calc(-50%_-_2px)] tg:rotate-45 tg:rounded-[2px] tg:bg-foreground tg:fill-foreground" })]
245
+ children: [n, /* @__PURE__ */ w(R.Arrow, { className: "tg:z-[2000] tg:size-2.5 tg:translate-y-[calc(-50%_-_2px)] tg:rotate-45 tg:rounded-[2px] tg:bg-foreground tg:fill-foreground" })]
246
246
  })
247
247
  });
248
248
  }
249
249
  //#endregion
250
250
  //#region src/shared/components/ui/separator.tsx
251
251
  function $({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
252
- return /* @__PURE__ */ C(R.Root, {
252
+ return /* @__PURE__ */ w(z.Root, {
253
253
  "data-slot": "separator",
254
254
  decorative: n,
255
255
  orientation: t,
256
- className: W("tg:shrink-0 tg:bg-border tg:data-[orientation=horizontal]:h-px tg:data-[orientation=vertical]:h-full tg:data-[orientation=horizontal]:w-full tg:data-[orientation=vertical]:w-px", e),
256
+ className: G("tg:shrink-0 tg:bg-border tg:data-[orientation=horizontal]:h-px tg:data-[orientation=vertical]:h-full tg:data-[orientation=horizontal]:w-full tg:data-[orientation=vertical]:w-px", e),
257
257
  ...r
258
258
  });
259
259
  }
260
260
  //#endregion
261
261
  //#region src/shared/components/ui/dialog.tsx
262
- function Ae({ ...e }) {
263
- return /* @__PURE__ */ C(B.Root, {
262
+ function je({ ...e }) {
263
+ return /* @__PURE__ */ w(V.Root, {
264
264
  "data-slot": "dialog",
265
265
  ...e
266
266
  });
267
267
  }
268
- function je({ ...e }) {
269
- return /* @__PURE__ */ C(B.Trigger, {
268
+ function Me({ ...e }) {
269
+ return /* @__PURE__ */ w(V.Trigger, {
270
270
  "data-slot": "dialog-trigger",
271
271
  ...e
272
272
  });
273
273
  }
274
- function Me({ ...e }) {
275
- return /* @__PURE__ */ C(B.Portal, {
274
+ function Ne({ ...e }) {
275
+ return /* @__PURE__ */ w(V.Portal, {
276
276
  "data-slot": "dialog-portal",
277
277
  ...e
278
278
  });
279
279
  }
280
- function Ne({ className: e, ...t }) {
281
- return /* @__PURE__ */ C(B.Overlay, {
280
+ function Pe({ className: e, ...t }) {
281
+ return /* @__PURE__ */ w(V.Overlay, {
282
282
  "data-slot": "dialog-overlay",
283
- className: W("tg:data-[state=closed]:fade-out-0 tg:data-[state=open]:fade-in-0 tg:fixed tg:inset-0 tg:z-[2000] tg:bg-black/50 tg:data-[state=closed]:animate-out tg:data-[state=open]:animate-in", e),
283
+ className: G("tg:data-[state=closed]:fade-out-0 tg:data-[state=open]:fade-in-0 tg:fixed tg:inset-0 tg:z-[2000] tg:bg-black/50 tg:data-[state=closed]:animate-out tg:data-[state=open]:animate-in", e),
284
284
  ...t
285
285
  });
286
286
  }
287
- function Pe({ className: e, children: t, showCloseButton: n = !0, ...r }) {
288
- let [i, a] = m.useState(null);
289
- return /* @__PURE__ */ w(Me, {
287
+ function Fe({ className: e, children: t, showCloseButton: n = !0, ...r }) {
288
+ let [i, a] = h.useState(null);
289
+ return /* @__PURE__ */ T(Ne, {
290
290
  "data-slot": "dialog-portal",
291
- children: [/* @__PURE__ */ C(Ne, {}), /* @__PURE__ */ C(B.Content, {
291
+ children: [/* @__PURE__ */ w(Pe, {}), /* @__PURE__ */ w(V.Content, {
292
292
  ref: a,
293
293
  "data-slot": "dialog-content",
294
- className: W("tg:data-[state=closed]:fade-out-0 tg:data-[state=open]:fade-in-0 tg:data-[state=closed]:zoom-out-95 tg:data-[state=open]:zoom-in-95 tg:fixed tg:top-[50%] tg:left-[50%] tg:z-[2000] tg:grid tg:w-full tg:max-w-[calc(100%-2rem)] tg:translate-x-[-50%] tg:translate-y-[-50%] tg:gap-4 tg:rounded-lg tg:border tg:bg-background tg:p-6 tg:shadow-lg tg:duration-200 tg:data-[state=closed]:animate-out tg:data-[state=open]:animate-in tg:sm:max-w-lg", e),
294
+ className: G("tg:data-[state=closed]:fade-out-0 tg:data-[state=open]:fade-in-0 tg:data-[state=closed]:zoom-out-95 tg:data-[state=open]:zoom-in-95 tg:fixed tg:top-[50%] tg:left-[50%] tg:z-[2000] tg:grid tg:w-full tg:max-w-[calc(100%-2rem)] tg:translate-x-[-50%] tg:translate-y-[-50%] tg:gap-4 tg:rounded-lg tg:border tg:bg-background tg:p-6 tg:shadow-lg tg:duration-200 tg:data-[state=closed]:animate-out tg:data-[state=open]:animate-in tg:sm:max-w-lg", e),
295
295
  ...r,
296
- children: /* @__PURE__ */ w(Q, {
296
+ children: /* @__PURE__ */ T(Q, {
297
297
  container: i,
298
- children: [t, n && /* @__PURE__ */ w(B.Close, {
298
+ children: [t, n && /* @__PURE__ */ T(V.Close, {
299
299
  "data-slot": "dialog-close",
300
300
  className: "tg:absolute tg:top-4 tg:right-4 tg:rounded-xs tg:opacity-70 tg:ring-offset-background tg:transition-opacity tg:hover:opacity-100 tg:focus:outline-hidden tg:focus:ring-2 tg:focus:ring-ring tg:focus:ring-offset-2 tg:disabled:pointer-events-none tg:data-[state=open]:bg-accent tg:data-[state=open]:text-muted-foreground tg:[&_svg:not([class*='size-'])]:size-4 tg:[&_svg]:pointer-events-none tg:[&_svg]:shrink-0",
301
- children: [/* @__PURE__ */ C(A, {}), /* @__PURE__ */ C("span", {
301
+ children: [/* @__PURE__ */ w(j, {}), /* @__PURE__ */ w("span", {
302
302
  className: "tg:sr-only",
303
303
  children: "Close"
304
304
  })]
@@ -307,85 +307,85 @@ function Pe({ className: e, children: t, showCloseButton: n = !0, ...r }) {
307
307
  })]
308
308
  });
309
309
  }
310
- function Fe({ className: e, ...t }) {
311
- return /* @__PURE__ */ C("div", {
310
+ function Ie({ className: e, ...t }) {
311
+ return /* @__PURE__ */ w("div", {
312
312
  "data-slot": "dialog-header",
313
- className: W("tg:flex tg:flex-col tg:gap-2 tg:text-center tg:sm:text-left", e),
313
+ className: G("tg:flex tg:flex-col tg:gap-2 tg:text-center tg:sm:text-left", e),
314
314
  ...t
315
315
  });
316
316
  }
317
- function Ie({ className: e, ...t }) {
318
- return /* @__PURE__ */ C("div", {
317
+ function Le({ className: e, ...t }) {
318
+ return /* @__PURE__ */ w("div", {
319
319
  "data-slot": "dialog-footer",
320
- className: W("tg:flex tg:flex-col-reverse tg:gap-2 tg:sm:flex-row tg:sm:justify-end", e),
320
+ className: G("tg:flex tg:flex-col-reverse tg:gap-2 tg:sm:flex-row tg:sm:justify-end", e),
321
321
  ...t
322
322
  });
323
323
  }
324
- function Le({ className: e, ...t }) {
325
- return /* @__PURE__ */ C(B.Title, {
324
+ function Re({ className: e, ...t }) {
325
+ return /* @__PURE__ */ w(V.Title, {
326
326
  "data-slot": "dialog-title",
327
- className: W("tg:font-semibold tg:text-lg tg:leading-none", e),
327
+ className: G("tg:font-semibold tg:text-lg tg:leading-none", e),
328
328
  ...t
329
329
  });
330
330
  }
331
- function Re({ className: e, ...t }) {
332
- return /* @__PURE__ */ C(B.Description, {
331
+ function ze({ className: e, ...t }) {
332
+ return /* @__PURE__ */ w(V.Description, {
333
333
  "data-slot": "dialog-description",
334
- className: W("tg:text-muted-foreground tg:text-sm", e),
334
+ className: G("tg:text-muted-foreground tg:text-sm", e),
335
335
  ...t
336
336
  });
337
337
  }
338
338
  //#endregion
339
339
  //#region src/shared/components/ui/command.tsx
340
- function ze({ className: e, ...t }) {
341
- return /* @__PURE__ */ C(z, {
340
+ function Be({ className: e, ...t }) {
341
+ return /* @__PURE__ */ w(B, {
342
342
  "data-slot": "command",
343
- className: W("tg:flex tg:h-full tg:w-full tg:flex-col tg:overflow-hidden tg:rounded-md tg:bg-popover tg:text-popover-foreground", e),
343
+ className: G("tg:flex tg:h-full tg:w-full tg:flex-col tg:overflow-hidden tg:rounded-md tg:bg-popover tg:text-popover-foreground", e),
344
344
  ...t
345
345
  });
346
346
  }
347
- function Be({ className: e, ...t }) {
348
- return /* @__PURE__ */ w("div", {
347
+ function Ve({ className: e, ...t }) {
348
+ return /* @__PURE__ */ T("div", {
349
349
  "data-slot": "command-input-wrapper",
350
350
  className: "tg:flex tg:h-9 tg:items-center tg:gap-2 tg:border-b tg:px-3",
351
- children: [/* @__PURE__ */ C(ae, { className: "tg:size-4 tg:shrink-0 tg:opacity-50" }), /* @__PURE__ */ C(z.Input, {
351
+ children: [/* @__PURE__ */ w(ae, { className: "tg:size-4 tg:shrink-0 tg:opacity-50" }), /* @__PURE__ */ w(B.Input, {
352
352
  "data-slot": "command-input",
353
- className: W("tg:flex tg:h-10 tg:w-full tg:rounded-md tg:bg-transparent tg:py-3 tg:text-sm tg:outline-hidden tg:placeholder:text-muted-foreground tg:disabled:cursor-not-allowed tg:disabled:opacity-50", e),
353
+ className: G("tg:flex tg:h-10 tg:w-full tg:rounded-md tg:bg-transparent tg:py-3 tg:text-sm tg:outline-hidden tg:placeholder:text-muted-foreground tg:disabled:cursor-not-allowed tg:disabled:opacity-50", e),
354
354
  ...t
355
355
  })]
356
356
  });
357
357
  }
358
- function Ve({ className: e, ...t }) {
359
- return /* @__PURE__ */ C(z.List, {
358
+ function He({ className: e, ...t }) {
359
+ return /* @__PURE__ */ w(B.List, {
360
360
  "data-slot": "command-list",
361
- className: W("tg:max-h-[300px] tg:scroll-py-1 tg:overflow-y-auto tg:overflow-x-hidden", e),
361
+ className: G("tg:max-h-[300px] tg:scroll-py-1 tg:overflow-y-auto tg:overflow-x-hidden", e),
362
362
  ...t
363
363
  });
364
364
  }
365
- function He({ ...e }) {
366
- return /* @__PURE__ */ C(z.Empty, {
365
+ function Ue({ ...e }) {
366
+ return /* @__PURE__ */ w(B.Empty, {
367
367
  "data-slot": "command-empty",
368
368
  className: "tg:py-6 tg:text-center tg:text-sm",
369
369
  ...e
370
370
  });
371
371
  }
372
- function Ue({ className: e, ...t }) {
373
- return /* @__PURE__ */ C(z.Group, {
372
+ function We({ className: e, ...t }) {
373
+ return /* @__PURE__ */ w(B.Group, {
374
374
  "data-slot": "command-group",
375
- className: W("tg:overflow-hidden tg:p-1 tg:text-foreground tg:[&_[cmdk-group-heading]]:px-2 tg:[&_[cmdk-group-heading]]:py-1.5 tg:[&_[cmdk-group-heading]]:font-medium tg:[&_[cmdk-group-heading]]:text-muted-foreground tg:[&_[cmdk-group-heading]]:text-xs", e),
375
+ className: G("tg:overflow-hidden tg:p-1 tg:text-foreground tg:[&_[cmdk-group-heading]]:px-2 tg:[&_[cmdk-group-heading]]:py-1.5 tg:[&_[cmdk-group-heading]]:font-medium tg:[&_[cmdk-group-heading]]:text-muted-foreground tg:[&_[cmdk-group-heading]]:text-xs", e),
376
376
  ...t
377
377
  });
378
378
  }
379
- function We({ className: e, ...t }) {
380
- return /* @__PURE__ */ C(z.Item, {
379
+ function Ge({ className: e, ...t }) {
380
+ return /* @__PURE__ */ w(B.Item, {
381
381
  "data-slot": "command-item",
382
- className: W("tg:relative tg:flex tg:cursor-default tg:select-none tg:items-center tg:gap-2 tg:rounded-sm tg:px-2 tg:py-1.5 tg:text-sm tg:outline-hidden tg:data-[disabled=true]:pointer-events-none tg:data-[selected=true]:bg-accent tg:data-[selected=true]:text-accent-foreground tg:data-[disabled=true]:opacity-50 tg:[&_svg:not([class*='size-'])]:size-4 tg:[&_svg:not([class*='text-'])]:text-muted-foreground tg:[&_svg]:pointer-events-none tg:[&_svg]:shrink-0", e),
382
+ className: G("tg:relative tg:flex tg:cursor-default tg:select-none tg:items-center tg:gap-2 tg:rounded-sm tg:px-2 tg:py-1.5 tg:text-sm tg:outline-hidden tg:data-[disabled=true]:pointer-events-none tg:data-[selected=true]:bg-accent tg:data-[selected=true]:text-accent-foreground tg:data-[disabled=true]:opacity-50 tg:[&_svg:not([class*='size-'])]:size-4 tg:[&_svg:not([class*='text-'])]:text-muted-foreground tg:[&_svg]:pointer-events-none tg:[&_svg]:shrink-0", e),
383
383
  ...t
384
384
  });
385
385
  }
386
386
  //#endregion
387
387
  //#region src/renderer/features/TreegeRenderer/web/components/inputs/DefaultAddressInput.tsx
388
- var Ge = async (e, t) => {
388
+ var Ke = async (e, t) => {
389
389
  if (!e || e.trim().length < 3) return [];
390
390
  try {
391
391
  let n = await fetch(`https://nominatim.openstreetmap.org/search?q=${encodeURIComponent(e)}&format=jsonv2&addressdetails=1&limit=5`, { headers: {
@@ -400,7 +400,7 @@ var Ge = async (e, t) => {
400
400
  } catch (e) {
401
401
  return console.error("Nominatim fetch error:", e), [];
402
402
  }
403
- }, Ke = (e) => !e || e.trim().length < 3 ? Promise.resolve([]) : new Promise((t) => {
403
+ }, qe = (e) => !e || e.trim().length < 3 ? Promise.resolve([]) : new Promise((t) => {
404
404
  if (!window.google?.maps?.places) {
405
405
  console.warn("Google Places SDK not loaded yet"), t([]);
406
406
  return;
@@ -415,42 +415,42 @@ var Ge = async (e, t) => {
415
415
  value: e.description
416
416
  })));
417
417
  });
418
- }), qe = ({ field: e, extra: t }) => {
419
- let [n, i] = x(""), [a, o] = x([]), [c, l] = x(!1), { id: u, name: d, value: f, placeholder: p } = e, { node: m, setValue: h, error: _, label: y, helperText: b } = t, { googleApiKey: T, language: E } = s(), D = r(), ee = g((e) => {
418
+ }), Je = ({ field: t, extra: n }) => {
419
+ let [r, i] = S(""), [a, s] = S([]), [c, l] = S(!1), { id: u, name: d, value: f, placeholder: p } = t, { node: m, setValue: h, error: g, label: v, helperText: b } = n, { googleApiKey: x, language: ee } = o(), E = e(), D = _((e) => {
420
420
  h(e.value), i(e.value), l(!1);
421
- }, [h]), te = g((e) => {
421
+ }, [h]), te = _((e) => {
422
422
  h(e), i(e), e.length >= 3 && l(!0);
423
423
  }, [h]);
424
- return v(() => {
425
- if (!n || n.trim().length < 3) {
426
- o([]);
424
+ return y(() => {
425
+ if (!r || r.trim().length < 3) {
426
+ s([]);
427
427
  return;
428
428
  }
429
429
  let e = setTimeout(async () => {
430
- o(T ? await Ke(n) : await Ge(n, E));
430
+ s(x ? await qe(r) : await Ke(r, ee));
431
431
  }, 300);
432
432
  return () => clearTimeout(e);
433
433
  }, [
434
- n,
435
- T,
436
- E
437
- ]), /* @__PURE__ */ w(S, { children: [T && /* @__PURE__ */ C("script", {
434
+ r,
435
+ x,
436
+ ee
437
+ ]), /* @__PURE__ */ T(C, { children: [x && /* @__PURE__ */ w("script", {
438
438
  async: !0,
439
- src: `https://maps.googleapis.com/maps/api/js?key=${T}&libraries=places`
440
- }), /* @__PURE__ */ w(K, {
439
+ src: `https://maps.googleapis.com/maps/api/js?key=${x}&libraries=places`
440
+ }), /* @__PURE__ */ T(K, {
441
441
  className: "tg:mb-4",
442
442
  children: [
443
- /* @__PURE__ */ w(X, {
443
+ /* @__PURE__ */ T(X, {
444
444
  htmlFor: u,
445
- children: [y || m.data.name, m.data.required && /* @__PURE__ */ C("span", {
445
+ children: [v || m.data.name, m.data.required && /* @__PURE__ */ w("span", {
446
446
  className: "tg:text-red-500",
447
447
  children: "*"
448
448
  })]
449
449
  }),
450
- /* @__PURE__ */ w("div", {
450
+ /* @__PURE__ */ T("div", {
451
451
  className: "tg:relative",
452
452
  children: [
453
- /* @__PURE__ */ C(Y, {
453
+ /* @__PURE__ */ w(Y, {
454
454
  type: "text",
455
455
  id: u,
456
456
  name: d,
@@ -459,43 +459,43 @@ var Ge = async (e, t) => {
459
459
  onFocus: () => {
460
460
  a.length > 0 && l(!0);
461
461
  },
462
- placeholder: p || D("renderer.defaultAddressInput.enterAddress"),
462
+ placeholder: p || E("renderer.defaultAddressInput.enterAddress"),
463
463
  className: "tg:pr-10",
464
464
  autoComplete: "off"
465
465
  }),
466
- /* @__PURE__ */ C(k, { className: "tg:-translate-y-1/2 tg:pointer-events-none tg:absolute tg:top-1/2 tg:right-3 tg:h-4 tg:w-4 tg:text-muted-foreground" }),
467
- c && /* @__PURE__ */ C("div", {
466
+ /* @__PURE__ */ w(A, { className: "tg:pointer-events-none tg:absolute tg:top-1/2 tg:right-3 tg:h-4 tg:w-4 tg:-translate-y-1/2 tg:text-muted-foreground" }),
467
+ c && /* @__PURE__ */ w("div", {
468
468
  className: "tg:absolute tg:z-50 tg:mt-1 tg:w-full tg:rounded-md tg:border tg:bg-popover tg:shadow-md",
469
- children: /* @__PURE__ */ C(ze, { children: /* @__PURE__ */ w(Ve, { children: [/* @__PURE__ */ C(He, { children: D("renderer.defaultAddressInput.noAddressesFound") }), /* @__PURE__ */ C(Ue, { children: a.map((e, t) => /* @__PURE__ */ w(We, {
469
+ children: /* @__PURE__ */ w(Be, { children: /* @__PURE__ */ T(He, { children: [/* @__PURE__ */ w(Ue, { children: E("renderer.defaultAddressInput.noAddressesFound") }), /* @__PURE__ */ w(We, { children: a.map((e, t) => /* @__PURE__ */ T(Ge, {
470
470
  value: e.value,
471
- onSelect: () => ee(e),
471
+ onSelect: () => D(e),
472
472
  onMouseDown: (e) => e.preventDefault(),
473
- children: [/* @__PURE__ */ C(k, { className: "tg:mr-2 tg:h-4 tg:w-4" }), e.label]
473
+ children: [/* @__PURE__ */ w(A, { className: "tg:mr-2 tg:h-4 tg:w-4" }), e.label]
474
474
  }, t)) })] }) })
475
475
  })
476
476
  ]
477
477
  }),
478
- _ && /* @__PURE__ */ C(J, { children: _ }),
479
- b && !_ && /* @__PURE__ */ C(q, { children: b })
478
+ g && /* @__PURE__ */ w(J, { children: g }),
479
+ b && !g && /* @__PURE__ */ w(q, { children: b })
480
480
  ]
481
481
  })] });
482
- }, Je = ({ missing: e }) => /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("p", {
482
+ }, Ye = ({ missing: t }) => /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("p", {
483
483
  className: "tg:font-medium",
484
- children: r()("renderer.dependencyHint.title")
485
- }), /* @__PURE__ */ C("ul", {
484
+ children: e()("renderer.dependencyHint.title")
485
+ }), /* @__PURE__ */ w("ul", {
486
486
  className: "tg:mt-1 tg:list-disc tg:pl-4",
487
- children: e.map((e) => /* @__PURE__ */ C("li", { children: e.label }, e.id))
488
- })] }), Ye = ({ missing: e, children: t }) => e.length === 0 ? /* @__PURE__ */ C(S, { children: t }) : /* @__PURE__ */ C(Ee, { children: /* @__PURE__ */ w(De, { children: [/* @__PURE__ */ C(Oe, {
487
+ children: t.map((e) => /* @__PURE__ */ w("li", { children: e.label }, e.id))
488
+ })] }), Xe = ({ missing: e, children: t }) => e.length === 0 ? /* @__PURE__ */ w(C, { children: t }) : /* @__PURE__ */ w(De, { children: /* @__PURE__ */ T(Oe, { children: [/* @__PURE__ */ w(ke, {
489
489
  asChild: !0,
490
- children: /* @__PURE__ */ C("div", {
490
+ children: /* @__PURE__ */ w("div", {
491
491
  className: "tg:w-full",
492
492
  children: t
493
493
  })
494
- }), /* @__PURE__ */ C(ke, { children: /* @__PURE__ */ C(Je, { missing: e }) })] }) }), Xe = ({ missing: e }) => e.length === 0 ? null : /* @__PURE__ */ C("div", {
494
+ }), /* @__PURE__ */ w(Ae, { children: /* @__PURE__ */ w(Ye, { missing: e }) })] }) }), Ze = ({ missing: e }) => e.length === 0 ? null : /* @__PURE__ */ w("div", {
495
495
  className: "tg:text-muted-foreground tg:text-sm",
496
- children: /* @__PURE__ */ C(Je, { missing: e })
496
+ children: /* @__PURE__ */ w(Ye, { missing: e })
497
497
  });
498
- M("tg:group/item tg:flex tg:flex-wrap tg:items-center tg:rounded-md tg:border tg:border-transparent tg:text-sm tg:outline-none tg:transition-colors tg:duration-100 tg:focus-visible:border-ring tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50 tg:[a]:transition-colors tg:[a]:hover:bg-accent/50", {
498
+ N("tg:group/item tg:flex tg:flex-wrap tg:items-center tg:rounded-md tg:border tg:border-transparent tg:text-sm tg:outline-none tg:transition-colors tg:duration-100 tg:focus-visible:border-ring tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50 tg:[a]:transition-colors tg:[a]:hover:bg-accent/50", {
499
499
  defaultVariants: {
500
500
  size: "default",
501
501
  variant: "default"
@@ -512,7 +512,7 @@ M("tg:group/item tg:flex tg:flex-wrap tg:items-center tg:rounded-md tg:border tg
512
512
  }
513
513
  }
514
514
  });
515
- var Ze = M("tg:flex tg:shrink-0 tg:items-center tg:justify-center tg:gap-2 tg:group-has-[[data-slot=item-description]]/item:translate-y-0.5 tg:group-has-[[data-slot=item-description]]/item:self-start tg:[&_svg]:pointer-events-none", {
515
+ var Qe = N("tg:flex tg:shrink-0 tg:items-center tg:justify-center tg:gap-2 tg:group-has-[[data-slot=item-description]]/item:translate-y-0.5 tg:group-has-[[data-slot=item-description]]/item:self-start tg:[&_svg]:pointer-events-none", {
516
516
  defaultVariants: { variant: "default" },
517
517
  variants: { variant: {
518
518
  default: "tg:bg-transparent",
@@ -520,96 +520,96 @@ var Ze = M("tg:flex tg:shrink-0 tg:items-center tg:justify-center tg:gap-2 tg:gr
520
520
  image: "tg:size-10 tg:overflow-hidden tg:rounded-sm tg:[&_img]:size-full tg:[&_img]:object-cover"
521
521
  } }
522
522
  });
523
- function Qe({ className: e, variant: t = "default", ...n }) {
524
- return /* @__PURE__ */ C("div", {
523
+ function $e({ className: e, variant: t = "default", ...n }) {
524
+ return /* @__PURE__ */ w("div", {
525
525
  "data-slot": "item-media",
526
526
  "data-variant": t,
527
- className: W(Ze({
527
+ className: G(Qe({
528
528
  className: e,
529
529
  variant: t
530
530
  })),
531
531
  ...n
532
532
  });
533
533
  }
534
- function $e({ className: e, ...t }) {
535
- return /* @__PURE__ */ C("div", {
534
+ function et({ className: e, ...t }) {
535
+ return /* @__PURE__ */ w("div", {
536
536
  "data-slot": "item-content",
537
- className: W("tg:flex tg:flex-1 tg:flex-col tg:gap-1 tg:[&+[data-slot=item-content]]:flex-none", e),
537
+ className: G("tg:flex tg:flex-1 tg:flex-col tg:gap-1 tg:[&+[data-slot=item-content]]:flex-none", e),
538
538
  ...t
539
539
  });
540
540
  }
541
- function et({ className: e, ...t }) {
542
- return /* @__PURE__ */ C("div", {
541
+ function tt({ className: e, ...t }) {
542
+ return /* @__PURE__ */ w("div", {
543
543
  "data-slot": "item-title",
544
- className: W("tg:flex tg:w-fit tg:items-center tg:gap-2 tg:font-medium tg:text-sm tg:leading-snug", e),
544
+ className: G("tg:flex tg:w-fit tg:items-center tg:gap-2 tg:font-medium tg:text-sm tg:leading-snug", e),
545
545
  ...t
546
546
  });
547
547
  }
548
- function tt({ className: e, ...t }) {
549
- return /* @__PURE__ */ C("p", {
548
+ function nt({ className: e, ...t }) {
549
+ return /* @__PURE__ */ w("p", {
550
550
  "data-slot": "item-description",
551
- className: W("tg:line-clamp-2 tg:text-balance tg:font-normal tg:text-muted-foreground tg:text-sm tg:leading-normal", "tg:[&>a]:underline tg:[&>a]:underline-offset-4 tg:[&>a:hover]:text-primary", e),
551
+ className: G("tg:line-clamp-2 tg:text-balance tg:font-normal tg:text-muted-foreground tg:text-sm tg:leading-normal", "tg:[&>a]:underline tg:[&>a]:underline-offset-4 tg:[&>a:hover]:text-primary", e),
552
552
  ...t
553
553
  });
554
554
  }
555
555
  //#endregion
556
556
  //#region src/renderer/features/TreegeRenderer/web/components/OptionItemContent.tsx
557
- var nt = ({ label: e, description: t, image: n }) => /* @__PURE__ */ w(S, { children: [n && /* @__PURE__ */ C(Qe, {
557
+ var rt = ({ label: e, description: t, image: n }) => /* @__PURE__ */ T(C, { children: [n && /* @__PURE__ */ w($e, {
558
558
  variant: "image",
559
- children: /* @__PURE__ */ C("img", {
559
+ children: /* @__PURE__ */ w("img", {
560
560
  src: n,
561
561
  alt: ""
562
562
  })
563
- }), /* @__PURE__ */ w($e, {
563
+ }), /* @__PURE__ */ T(et, {
564
564
  className: "tg:min-w-0 tg:gap-0",
565
- children: [/* @__PURE__ */ C(et, {
565
+ children: [/* @__PURE__ */ w(tt, {
566
566
  className: "tg:block tg:w-full tg:truncate tg:font-normal",
567
567
  children: e
568
- }), t && /* @__PURE__ */ C(tt, {
568
+ }), t && /* @__PURE__ */ w(nt, {
569
569
  className: "tg:line-clamp-1",
570
570
  children: t
571
571
  })]
572
- })] }), rt = /\{\{([\w-]+)}}/g, it = (t) => {
573
- let [r, o] = x({
572
+ })] }), it = /\{\{([\w-]+)}}/g, at = (e) => {
573
+ let [a, s] = S({
574
574
  error: null,
575
575
  fetched: null,
576
576
  isLoading: !1
577
- }), { baseUrl: c, formValues: l, headers: u } = s(), d = t.data.optionsSource, m = t.data.options, h = y(() => {
578
- if (!(d?.url && d.mapping?.valueField && d.mapping?.labelField) || !Array.from(d.url.matchAll(rt), (e) => e[1]).every((e) => {
577
+ }), { baseUrl: c, formValues: l, headers: u } = o(), d = e.data.optionsSource, h = e.data.options, g = b(() => {
578
+ if (!(d?.url && d.mapping?.valueField && d.mapping?.labelField) || !Array.from(d.url.matchAll(it), (e) => e[1]).every((e) => {
579
579
  let t = l[e];
580
580
  return t != null && t !== "";
581
581
  })) return null;
582
- let t = d.method ?? "GET", r = {
583
- body: d.body && [
582
+ let e = d.method ?? "GET", a = {
583
+ body: [
584
584
  "POST",
585
585
  "PUT",
586
586
  "PATCH"
587
- ].includes(t) ? n(d.body, l, { json: !0 }) : void 0,
588
- headers: a(e(u, l), e(d.headers, l)),
587
+ ].includes(e) ? i(d.body, l, []) : void 0,
588
+ headers: n(r(u, l), r(d.headers, l)),
589
589
  mapping: d.mapping,
590
- method: t,
591
- queryParams: e(d.queryParams, l) ?? {},
590
+ method: e,
591
+ queryParams: r(d.queryParams, l) ?? {},
592
592
  responsePath: d.responsePath,
593
- url: f(n(d.url, l, { encode: !0 }), c)
593
+ url: t(f(d.url, l, { encode: !0 }), c)
594
594
  };
595
- return JSON.stringify(r);
595
+ return JSON.stringify(a);
596
596
  }, [
597
597
  c,
598
598
  d,
599
599
  l,
600
600
  u
601
601
  ]);
602
- v(() => {
603
- if (!h) {
604
- o({
602
+ y(() => {
603
+ if (!g) {
604
+ s({
605
605
  error: null,
606
606
  fetched: null,
607
607
  isLoading: !1
608
608
  });
609
609
  return;
610
610
  }
611
- let e = JSON.parse(h), t = new AbortController();
612
- return o((e) => ({
611
+ let e = JSON.parse(g), t = new AbortController();
612
+ return s((e) => ({
613
613
  ...e,
614
614
  error: null,
615
615
  isLoading: !0
@@ -624,70 +624,70 @@ var nt = ({ label: e, description: t, image: n }) => /* @__PURE__ */ w(S, { chil
624
624
  });
625
625
  if (!t.signal.aborted) {
626
626
  if (!n.success) {
627
- o({
627
+ s({
628
628
  error: n.error ?? "Fetch failed",
629
629
  fetched: null,
630
630
  isLoading: !1
631
631
  });
632
632
  return;
633
633
  }
634
- o({
634
+ s({
635
635
  error: null,
636
- fetched: i(n.data, e.responsePath, e.mapping),
636
+ fetched: m(n.data, e.responsePath, e.mapping),
637
637
  isLoading: !1
638
638
  });
639
639
  }
640
640
  })(), () => t.abort();
641
- }, [h]);
642
- let g = r.fetched ?? m ?? [];
641
+ }, [g]);
642
+ let _ = a.fetched ?? h ?? [];
643
643
  return {
644
- error: r.error,
645
- isLoading: r.isLoading,
646
- options: g
644
+ error: a.error,
645
+ isLoading: a.isLoading,
646
+ options: _
647
647
  };
648
- }, at = ({ field: e, extra: t }) => {
649
- let [n, i] = x(!1), { id: a, value: o, placeholder: s } = e, { node: c, setValue: l, error: u, label: d, helperText: f, missingDependencies: p } = t, { options: m, isLoading: h, error: g } = it(c), _ = r(), v = `${a}-trigger`, y = `${a}-error`, b = m.find((e) => e.value === o);
650
- return /* @__PURE__ */ w(K, {
648
+ }, ot = ({ field: t, extra: n }) => {
649
+ let [r, i] = S(!1), { id: a, value: o, placeholder: s } = t, { node: c, setValue: l, error: u, label: d, helperText: f, missingDependencies: p } = n, { options: m, isLoading: h, error: g } = at(c), _ = e(), v = `${a}-trigger`, y = `${a}-error`, b = m.find((e) => e.value === o);
650
+ return /* @__PURE__ */ T(K, {
651
651
  className: "tg:mb-4",
652
652
  children: [
653
- /* @__PURE__ */ w(X, {
653
+ /* @__PURE__ */ T(X, {
654
654
  htmlFor: v,
655
- children: [d || c.data.name, c.data.required && /* @__PURE__ */ C("span", {
655
+ children: [d || c.data.name, c.data.required && /* @__PURE__ */ w("span", {
656
656
  className: "tg:text-red-500",
657
657
  children: "*"
658
658
  })]
659
659
  }),
660
- /* @__PURE__ */ C(Ye, {
660
+ /* @__PURE__ */ w(Xe, {
661
661
  missing: p,
662
- children: /* @__PURE__ */ w(pe, {
663
- open: n,
662
+ children: /* @__PURE__ */ T(me, {
663
+ open: r,
664
664
  onOpenChange: i,
665
- children: [/* @__PURE__ */ C(me, {
665
+ children: [/* @__PURE__ */ w(he, {
666
666
  asChild: !0,
667
- children: /* @__PURE__ */ w(G, {
667
+ children: /* @__PURE__ */ T(de, {
668
668
  id: v,
669
669
  variant: "outline",
670
670
  role: "combobox",
671
- "aria-expanded": n,
671
+ "aria-expanded": r,
672
672
  "aria-invalid": !!u || void 0,
673
673
  "aria-describedby": u ? y : void 0,
674
674
  disabled: h || p.length > 0,
675
675
  className: "tg:w-full tg:justify-between tg:font-normal",
676
- children: [/* @__PURE__ */ w("span", {
676
+ children: [/* @__PURE__ */ T("span", {
677
677
  className: "tg:flex tg:items-center tg:gap-2 tg:truncate",
678
- children: [h && /* @__PURE__ */ C(O, { className: "tg:h-4 tg:w-4 tg:shrink-0 tg:animate-spin" }), o ? b?.label ? _(b.label) : o : s || _("renderer.defaultAutocompleteInput.selectOption")]
679
- }), /* @__PURE__ */ C(re, { className: "tg:ml-2 tg:size-4 tg:shrink-0 tg:opacity-50" })]
678
+ children: [h && /* @__PURE__ */ w(k, { className: "tg:h-4 tg:w-4 tg:shrink-0 tg:animate-spin" }), o ? b?.label ? _(b.label) : o : s || _("renderer.defaultAutocompleteInput.selectOption")]
679
+ }), /* @__PURE__ */ w(re, { className: "tg:ml-2 tg:size-4 tg:shrink-0 tg:opacity-50" })]
680
680
  })
681
- }), /* @__PURE__ */ C(he, {
681
+ }), /* @__PURE__ */ w(ge, {
682
682
  className: "tg:w-(--radix-popover-trigger-width) tg:p-0",
683
683
  align: "start",
684
- children: /* @__PURE__ */ w(ze, { children: [/* @__PURE__ */ C(Be, { placeholder: s || _("renderer.defaultAutocompleteInput.search") }), /* @__PURE__ */ w(Ve, { children: [/* @__PURE__ */ C(He, { children: _("renderer.defaultAutocompleteInput.noResults") }), /* @__PURE__ */ C(Ue, { children: m.map((e) => /* @__PURE__ */ w(We, {
684
+ children: /* @__PURE__ */ T(Be, { children: [/* @__PURE__ */ w(Ve, { placeholder: s || _("renderer.defaultAutocompleteInput.search") }), /* @__PURE__ */ T(He, { children: [/* @__PURE__ */ w(Ue, { children: _("renderer.defaultAutocompleteInput.noResults") }), /* @__PURE__ */ w(We, { children: m.map((e) => /* @__PURE__ */ T(Ge, {
685
685
  value: e.value,
686
686
  disabled: e.disabled,
687
687
  onSelect: (e) => {
688
688
  l(e === o ? "" : e), i(!1);
689
689
  },
690
- children: [/* @__PURE__ */ C(T, { className: W("tg:mr-2 tg:size-4", o === e.value ? "tg:opacity-100" : "tg:opacity-0") }), /* @__PURE__ */ C(nt, {
690
+ children: [/* @__PURE__ */ w(ee, { className: G("tg:mr-2 tg:size-4", o === e.value ? "tg:opacity-100" : "tg:opacity-0") }), /* @__PURE__ */ w(rt, {
691
691
  label: _(e.label) || e.value,
692
692
  description: _(e.description),
693
693
  image: e.image
@@ -696,158 +696,161 @@ var nt = ({ label: e, description: t, image: n }) => /* @__PURE__ */ w(S, { chil
696
696
  })]
697
697
  })
698
698
  }),
699
- u && /* @__PURE__ */ C(J, {
699
+ u && /* @__PURE__ */ w(J, {
700
700
  id: y,
701
701
  children: u
702
702
  }),
703
- g && !u && /* @__PURE__ */ C(J, { children: g }),
704
- f && !u && !g && /* @__PURE__ */ C(q, { children: f })
703
+ g && !u && /* @__PURE__ */ w(J, { children: g }),
704
+ f && !u && !g && /* @__PURE__ */ w(q, { children: f })
705
705
  ]
706
706
  });
707
- }, ot = ({ field: e, extra: t }) => {
708
- let { id: n, name: i, value: a } = e, { node: o, setValue: c, error: l, label: u, helperText: d, renderOptionExtras: f, compactOptions: p, missingDependencies: m } = t, { options: h, isLoading: g, error: _ } = it(o), { optionsDisplayLimit: v } = s(), y = r();
709
- if (h.length > 0 || o.data.optionsSource) {
710
- let e = Array.isArray(a) ? a.map(String) : [], t = v ? h.slice(0, v) : h, r = h.length - t.length, s = (t, n) => {
711
- c(n ? [...e, t] : e.filter((e) => e !== t));
707
+ }, st = ({ field: t, extra: n }) => {
708
+ let { id: r, name: i, value: a } = t, { node: s, setValue: c, error: l, label: u, helperText: d, renderOptionExtras: f, compactOptions: p, missingDependencies: m } = n, { options: h, isLoading: g, error: _ } = at(s), { optionsDisplayLimit: v } = o(), y = e();
709
+ if (h.length > 0 || s.data.optionsSource) {
710
+ let e = `${r}-label`, t = Array.isArray(a) ? a.map(String) : [], n = v ? h.slice(0, v) : h, o = h.length - n.length, b = (e, n) => {
711
+ c(n ? [...t, e] : t.filter((t) => t !== e));
712
712
  };
713
- return /* @__PURE__ */ w(K, {
713
+ return /* @__PURE__ */ T(K, {
714
714
  className: "tg:mb-4",
715
715
  children: [
716
- /* @__PURE__ */ w(X, {
716
+ /* @__PURE__ */ T(X, {
717
717
  className: "tg:mb-1",
718
- children: [u || o.data.name, o.data.required && /* @__PURE__ */ C("span", {
718
+ id: e,
719
+ children: [u || s.data.name, s.data.required && /* @__PURE__ */ w("span", {
719
720
  className: "tg:text-red-500",
720
721
  children: "*"
721
722
  })]
722
723
  }),
723
- /* @__PURE__ */ C(Xe, { missing: m }),
724
- g && /* @__PURE__ */ w("div", {
724
+ /* @__PURE__ */ w(Ze, { missing: m }),
725
+ g && /* @__PURE__ */ T("div", {
725
726
  className: "tg:flex tg:items-center tg:gap-2 tg:py-2 tg:text-muted-foreground tg:text-sm",
726
- children: [/* @__PURE__ */ C(O, { className: "tg:h-4 tg:w-4 tg:animate-spin" }), /* @__PURE__ */ C("span", { children: y("renderer.defaultCheckboxInput.loadingOptions") })]
727
+ children: [/* @__PURE__ */ w(k, { className: "tg:h-4 tg:w-4 tg:animate-spin" }), /* @__PURE__ */ w("span", { children: y("renderer.defaultCheckboxInput.loadingOptions") })]
727
728
  }),
728
- /* @__PURE__ */ w("div", {
729
+ /* @__PURE__ */ T("div", {
730
+ role: "group",
731
+ "aria-labelledby": e,
729
732
  className: "tg:min-w-0 tg:space-y-2",
730
- children: [t.map((t, r) => {
731
- let a = y(t.description);
732
- return /* @__PURE__ */ w("div", {
733
- className: W("tg:group/option tg:pointer-events-auto tg:relative tg:flex tg:items-start tg:gap-3", p && "tg:pr-22"),
733
+ children: [n.map((e, n) => {
734
+ let a = y(e.description);
735
+ return /* @__PURE__ */ T("div", {
736
+ className: G("tg:group/option tg:pointer-events-auto tg:relative tg:flex tg:items-start tg:gap-3", p && "tg:pr-22"),
734
737
  children: [
735
- /* @__PURE__ */ C(de, {
736
- id: `${n}-${t.value}`,
738
+ /* @__PURE__ */ w(fe, {
739
+ id: `${r}-${e.value}`,
737
740
  name: i,
738
- checked: e.includes(String(t.value)),
739
- onCheckedChange: (e) => s(String(t.value), !!e),
740
- disabled: t.disabled,
741
+ checked: t.includes(String(e.value)),
742
+ onCheckedChange: (t) => b(String(e.value), !!t),
743
+ disabled: e.disabled,
741
744
  className: "tg:mt-0.5"
742
745
  }),
743
- t.image && /* @__PURE__ */ C("img", {
744
- src: t.image,
746
+ e.image && /* @__PURE__ */ w("img", {
747
+ src: e.image,
745
748
  alt: "",
746
749
  className: "tg:h-8 tg:w-8 tg:shrink-0 tg:rounded tg:object-cover"
747
750
  }),
748
- /* @__PURE__ */ w("div", {
749
- className: W("tg:flex tg:flex-col", p && "tg:min-w-0 tg:flex-1 tg:overflow-hidden"),
750
- children: [/* @__PURE__ */ C(X, {
751
- htmlFor: `${n}-${t.value}`,
752
- className: W("tg:cursor-pointer tg:font-normal tg:text-sm", p && "tg:block tg:max-w-full tg:truncate"),
753
- children: y(t.label) ? y(t.label) : t.value
754
- }), a && /* @__PURE__ */ C("span", {
755
- className: W("tg:text-muted-foreground tg:text-xs", p && "tg:block tg:max-w-full tg:truncate"),
751
+ /* @__PURE__ */ T("div", {
752
+ className: G("tg:flex tg:flex-col", p && "tg:min-w-0 tg:flex-1 tg:overflow-hidden"),
753
+ children: [/* @__PURE__ */ w(X, {
754
+ htmlFor: `${r}-${e.value}`,
755
+ className: G("tg:cursor-pointer tg:font-normal tg:text-sm", p && "tg:block tg:max-w-full tg:truncate"),
756
+ children: y(e.label) ? y(e.label) : e.value
757
+ }), a && /* @__PURE__ */ w("span", {
758
+ className: G("tg:text-muted-foreground tg:text-xs", p && "tg:block tg:max-w-full tg:truncate"),
756
759
  children: a
757
760
  })]
758
761
  }),
759
762
  f?.({
760
- index: r,
761
- option: t
763
+ index: n,
764
+ option: e
762
765
  })
763
766
  ]
764
- }, t.value + r);
765
- }), r > 0 && /* @__PURE__ */ C("div", {
767
+ }, e.value + n);
768
+ }), o > 0 && /* @__PURE__ */ w("div", {
766
769
  className: "tg:px-2 tg:text-muted-foreground tg:text-xs",
767
770
  children: "…"
768
771
  })]
769
772
  }),
770
- l && /* @__PURE__ */ C(J, { children: l }),
771
- _ && !l && /* @__PURE__ */ C(J, { children: _ }),
772
- d && !l && !_ && /* @__PURE__ */ C(q, { children: d })
773
+ l && /* @__PURE__ */ w(J, { children: l }),
774
+ _ && !l && /* @__PURE__ */ w(J, { children: _ }),
775
+ d && !l && !_ && /* @__PURE__ */ w(q, { children: d })
773
776
  ]
774
777
  });
775
778
  }
776
- return /* @__PURE__ */ w(K, {
779
+ return /* @__PURE__ */ T(K, {
777
780
  className: "tg:mb-4",
778
- children: [/* @__PURE__ */ w("div", {
781
+ children: [/* @__PURE__ */ T("div", {
779
782
  className: "tg:flex tg:items-center tg:gap-3",
780
- children: [/* @__PURE__ */ C(de, {
781
- id: n,
783
+ children: [/* @__PURE__ */ w(fe, {
784
+ id: r,
782
785
  name: i,
783
786
  checked: typeof a == "boolean" ? a : !1,
784
787
  onCheckedChange: (e) => c(!!e)
785
- }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w(X, {
786
- htmlFor: n,
788
+ }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T(X, {
789
+ htmlFor: r,
787
790
  className: "tg:cursor-pointer tg:font-medium tg:text-sm",
788
- children: [u || o.data.name, o.data.required && /* @__PURE__ */ C("span", {
791
+ children: [u || s.data.name, s.data.required && /* @__PURE__ */ w("span", {
789
792
  className: "tg:text-red-500",
790
793
  children: "*"
791
794
  })]
792
- }), d && !l && /* @__PURE__ */ C(q, { children: d })] })]
793
- }), l && /* @__PURE__ */ C(J, { children: l })]
795
+ }), d && !l && /* @__PURE__ */ w(q, { children: d })] })]
796
+ }), l && /* @__PURE__ */ w(J, { children: l })]
794
797
  });
795
798
  };
796
799
  //#endregion
797
800
  //#region src/shared/components/ui/calendar.tsx
798
- function st({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: i = "ghost", formatters: a, components: o, ...s }) {
799
- let c = V();
800
- return /* @__PURE__ */ C(ce, {
801
+ function ct({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: i = "ghost", formatters: a, components: o, ...s }) {
802
+ let c = H();
803
+ return /* @__PURE__ */ w(ce, {
801
804
  showOutsideDays: n,
802
- className: W("tg:group/calendar tg:bg-background tg:p-3 tg:[--cell-size:--spacing(8)] tg:[[data-slot=card-content]_&]:bg-transparent tg:[[data-slot=popover-content]_&]:bg-transparent", String.raw`tg:rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`tg:rtl:**:[.rdp-button\_previous>svg]:rotate-180`, e),
805
+ className: G("tg:group/calendar tg:bg-background tg:p-3 tg:[--cell-size:--spacing(8)] tg:[[data-slot=card-content]_&]:bg-transparent tg:[[data-slot=popover-content]_&]:bg-transparent", String.raw`tg:rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`tg:rtl:**:[.rdp-button\_previous>svg]:rotate-180`, e),
803
806
  captionLayout: r,
804
807
  formatters: {
805
808
  formatMonthDropdown: (e) => e.toLocaleString("default", { month: "short" }),
806
809
  ...a
807
810
  },
808
811
  classNames: {
809
- button_next: W(ue({ variant: i }), "tg:size-(--cell-size) tg:aria-disabled:opacity-50 tg:p-0 tg:select-none", c.button_next),
810
- button_previous: W(ue({ variant: i }), "tg:size-(--cell-size) tg:aria-disabled:opacity-50 tg:p-0 tg:select-none", c.button_previous),
811
- caption_label: W("tg:select-none tg:font-medium", r === "label" ? "tg:text-sm" : "tg:rounded-md tg:pl-2 tg:pr-1 tg:flex tg:items-center tg:gap-1 tg:text-sm tg:h-8 tg:[&>svg]:text-muted-foreground tg:[&>svg]:size-3.5", c.caption_label),
812
- day: W("tg:relative tg:w-full tg:h-full tg:p-0 tg:text-center tg:[&:first-child[data-selected=true]_button]:rounded-l-md tg:[&:last-child[data-selected=true]_button]:rounded-r-md tg:group/day tg:aspect-square tg:select-none", c.day),
813
- disabled: W("tg:text-muted-foreground tg:opacity-50", c.disabled),
814
- dropdown: W("tg:absolute tg:bg-popover tg:inset-0 tg:opacity-0", c.dropdown),
815
- dropdown_root: W("tg:relative tg:has-focus:border-ring tg:border tg:border-input tg:shadow-xs tg:has-focus:ring-ring/50 tg:has-focus:ring-[3px] tg:rounded-md", c.dropdown_root),
816
- dropdowns: W("tg:w-full tg:flex tg:items-center tg:text-sm tg:font-medium tg:justify-center tg:h-(--cell-size) tg:gap-1.5", c.dropdowns),
817
- hidden: W("tg:invisible", c.hidden),
818
- month: W("tg:flex tg:flex-col tg:w-full tg:gap-4", c.month),
819
- month_caption: W("tg:flex tg:items-center tg:justify-center tg:h-(--cell-size) tg:w-full tg:px-(--cell-size)", c.month_caption),
820
- months: W("tg:flex tg:gap-4 tg:flex-col tg:md:flex-row tg:relative", c.months),
821
- nav: W("tg:flex tg:items-center tg:gap-1 tg:w-full tg:absolute tg:top-0 tg:inset-x-0 tg:justify-between", c.nav),
822
- outside: W("tg:text-muted-foreground tg:aria-selected:text-muted-foreground", c.outside),
823
- range_end: W("tg:rounded-r-md tg:bg-accent", c.range_end),
824
- range_middle: W("tg:rounded-none", c.range_middle),
825
- range_start: W("tg:rounded-l-md tg:bg-accent", c.range_start),
826
- root: W("tg:w-fit", c.root),
812
+ button_next: G(ue({ variant: i }), "tg:size-(--cell-size) tg:aria-disabled:opacity-50 tg:p-0 tg:select-none", c.button_next),
813
+ button_previous: G(ue({ variant: i }), "tg:size-(--cell-size) tg:aria-disabled:opacity-50 tg:p-0 tg:select-none", c.button_previous),
814
+ caption_label: G("tg:select-none tg:font-medium", r === "label" ? "tg:text-sm" : "tg:rounded-md tg:pl-2 tg:pr-1 tg:flex tg:items-center tg:gap-1 tg:text-sm tg:h-8 tg:[&>svg]:text-muted-foreground tg:[&>svg]:size-3.5", c.caption_label),
815
+ day: G("tg:relative tg:w-full tg:h-full tg:p-0 tg:text-center tg:[&:first-child[data-selected=true]_button]:rounded-l-md tg:[&:last-child[data-selected=true]_button]:rounded-r-md tg:group/day tg:aspect-square tg:select-none", c.day),
816
+ disabled: G("tg:text-muted-foreground tg:opacity-50", c.disabled),
817
+ dropdown: G("tg:absolute tg:bg-popover tg:inset-0 tg:opacity-0", c.dropdown),
818
+ dropdown_root: G("tg:relative tg:has-focus:border-ring tg:border tg:border-input tg:shadow-xs tg:has-focus:ring-ring/50 tg:has-focus:ring-[3px] tg:rounded-md", c.dropdown_root),
819
+ dropdowns: G("tg:w-full tg:flex tg:items-center tg:text-sm tg:font-medium tg:justify-center tg:h-(--cell-size) tg:gap-1.5", c.dropdowns),
820
+ hidden: G("tg:invisible", c.hidden),
821
+ month: G("tg:flex tg:flex-col tg:w-full tg:gap-4", c.month),
822
+ month_caption: G("tg:flex tg:items-center tg:justify-center tg:h-(--cell-size) tg:w-full tg:px-(--cell-size)", c.month_caption),
823
+ months: G("tg:flex tg:gap-4 tg:flex-col tg:md:flex-row tg:relative", c.months),
824
+ nav: G("tg:flex tg:items-center tg:gap-1 tg:w-full tg:absolute tg:top-0 tg:inset-x-0 tg:justify-between", c.nav),
825
+ outside: G("tg:text-muted-foreground tg:aria-selected:text-muted-foreground", c.outside),
826
+ range_end: G("tg:rounded-r-md tg:bg-accent", c.range_end),
827
+ range_middle: G("tg:rounded-none", c.range_middle),
828
+ range_start: G("tg:rounded-l-md tg:bg-accent", c.range_start),
829
+ root: G("tg:w-fit", c.root),
827
830
  table: "tg:w-full tg:border-collapse",
828
- today: W("tg:bg-accent tg:text-accent-foreground tg:rounded-md tg:data-[selected=true]:rounded-none", c.today),
829
- week: W("tg:flex tg:w-full tg:mt-2", c.week),
830
- week_number: W("tg:text-[0.8rem] tg:select-none tg:text-muted-foreground", c.week_number),
831
- week_number_header: W("tg:select-none tg:w-(--cell-size)", c.week_number_header),
832
- weekday: W("tg:text-muted-foreground tg:rounded-md tg:flex-1 tg:font-normal tg:text-[0.8rem] tg:select-none", c.weekday),
833
- weekdays: W("tg:flex", c.weekdays),
831
+ today: G("tg:bg-accent tg:text-accent-foreground tg:rounded-md tg:data-[selected=true]:rounded-none", c.today),
832
+ week: G("tg:flex tg:w-full tg:mt-2", c.week),
833
+ week_number: G("tg:text-[0.8rem] tg:select-none tg:text-muted-foreground", c.week_number),
834
+ week_number_header: G("tg:select-none tg:w-(--cell-size)", c.week_number_header),
835
+ weekday: G("tg:text-muted-foreground tg:rounded-md tg:flex-1 tg:font-normal tg:text-[0.8rem] tg:select-none", c.weekday),
836
+ weekdays: G("tg:flex", c.weekdays),
834
837
  ...t
835
838
  },
836
839
  components: {
837
- Chevron: ({ className: e, orientation: t, ...n }) => C(t === "left" ? ee : t === "right" ? te : D, {
838
- className: W("tg:size-4", e),
840
+ Chevron: ({ className: e, orientation: t, ...n }) => w(t === "left" ? te : t === "right" ? ne : D, {
841
+ className: G("tg:size-4", e),
839
842
  ...n
840
843
  }),
841
- DayButton: ct,
842
- Root: ({ className: e, rootRef: t, ...n }) => /* @__PURE__ */ C("div", {
844
+ DayButton: lt,
845
+ Root: ({ className: e, rootRef: t, ...n }) => /* @__PURE__ */ w("div", {
843
846
  "data-slot": "calendar",
844
847
  ref: t,
845
- className: W(e),
848
+ className: G(e),
846
849
  ...n
847
850
  }),
848
- WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */ C("td", {
851
+ WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */ w("td", {
849
852
  ...t,
850
- children: /* @__PURE__ */ C("div", {
853
+ children: /* @__PURE__ */ w("div", {
851
854
  className: "tg:flex tg:size-(--cell-size) tg:items-center tg:justify-center tg:text-center",
852
855
  children: e
853
856
  })
@@ -857,11 +860,11 @@ function st({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
857
860
  ...s
858
861
  });
859
862
  }
860
- function ct({ className: e, day: t, modifiers: n, ...r }) {
861
- let i = V(), a = m.useRef(null);
862
- return m.useEffect(() => {
863
+ function lt({ className: e, day: t, modifiers: n, ...r }) {
864
+ let i = H(), a = h.useRef(null);
865
+ return h.useEffect(() => {
863
866
  n.focused && a.current?.focus();
864
- }, [n.focused]), /* @__PURE__ */ C(G, {
867
+ }, [n.focused]), /* @__PURE__ */ w(de, {
865
868
  ref: a,
866
869
  variant: "ghost",
867
870
  size: "icon",
@@ -870,40 +873,40 @@ function ct({ className: e, day: t, modifiers: n, ...r }) {
870
873
  "data-range-start": n.range_start,
871
874
  "data-range-end": n.range_end,
872
875
  "data-range-middle": n.range_middle,
873
- className: W("tg:flex tg:aspect-square tg:size-auto tg:w-full tg:min-w-(--cell-size) tg:flex-col tg:gap-1 tg:font-normal tg:leading-none tg:data-[range-end=true]:rounded-md tg:data-[range-middle=true]:rounded-none tg:data-[range-start=true]:rounded-md tg:data-[range-end=true]:rounded-r-md tg:data-[range-start=true]:rounded-l-md tg:data-[range-end=true]:bg-primary tg:data-[range-middle=true]:bg-accent tg:data-[range-start=true]:bg-primary tg:data-[selected-single=true]:bg-primary tg:data-[range-end=true]:text-primary-foreground tg:data-[range-middle=true]:text-accent-foreground tg:data-[range-start=true]:text-primary-foreground tg:data-[selected-single=true]:text-primary-foreground tg:group-data-[focused=true]/day:relative tg:group-data-[focused=true]/day:z-10 tg:group-data-[focused=true]/day:border-ring tg:group-data-[focused=true]/day:ring-[3px] tg:group-data-[focused=true]/day:ring-ring/50 tg:dark:hover:text-accent-foreground tg:[&>span]:text-xs tg:[&>span]:opacity-70", i.day, e),
876
+ className: G("tg:flex tg:aspect-square tg:size-auto tg:w-full tg:min-w-(--cell-size) tg:flex-col tg:gap-1 tg:font-normal tg:leading-none tg:data-[range-end=true]:rounded-md tg:data-[range-middle=true]:rounded-none tg:data-[range-start=true]:rounded-md tg:data-[range-end=true]:rounded-r-md tg:data-[range-start=true]:rounded-l-md tg:data-[range-end=true]:bg-primary tg:data-[range-middle=true]:bg-accent tg:data-[range-start=true]:bg-primary tg:data-[selected-single=true]:bg-primary tg:data-[range-end=true]:text-primary-foreground tg:data-[range-middle=true]:text-accent-foreground tg:data-[range-start=true]:text-primary-foreground tg:data-[selected-single=true]:text-primary-foreground tg:group-data-[focused=true]/day:relative tg:group-data-[focused=true]/day:z-10 tg:group-data-[focused=true]/day:border-ring tg:group-data-[focused=true]/day:ring-[3px] tg:group-data-[focused=true]/day:ring-ring/50 tg:dark:hover:text-accent-foreground tg:[&>span]:text-xs tg:[&>span]:opacity-70", i.day, e),
874
877
  ...r
875
878
  });
876
879
  }
877
880
  //#endregion
878
881
  //#region src/renderer/features/TreegeRenderer/web/components/inputs/DefaultDateInput.tsx
879
- var lt = ({ field: e, extra: t }) => {
880
- let [n, i] = x(!1), { id: a, name: o, value: s, placeholder: c } = e, { node: l, setValue: u, error: d, label: f, helperText: p } = t, m = r(), h = s ? new Date(s) : void 0;
881
- return /* @__PURE__ */ w(K, {
882
+ var ut = ({ field: t, extra: n }) => {
883
+ let [r, i] = S(!1), { id: a, name: o, value: s, placeholder: c } = t, { node: l, setValue: u, error: d, label: f, helperText: p } = n, m = e(), h = s ? new Date(s) : void 0;
884
+ return /* @__PURE__ */ T(K, {
882
885
  className: "tg:mb-4",
883
886
  children: [
884
- /* @__PURE__ */ w(X, {
887
+ /* @__PURE__ */ T(X, {
885
888
  htmlFor: a,
886
- children: [f || l.data.name, l.data.required && /* @__PURE__ */ C("span", {
889
+ children: [f || l.data.name, l.data.required && /* @__PURE__ */ w("span", {
887
890
  className: "tg:text-red-500",
888
891
  children: "*"
889
892
  })]
890
893
  }),
891
- /* @__PURE__ */ w(pe, {
892
- open: n,
894
+ /* @__PURE__ */ T(me, {
895
+ open: r,
893
896
  onOpenChange: i,
894
- children: [/* @__PURE__ */ C(me, {
897
+ children: [/* @__PURE__ */ w(he, {
895
898
  asChild: !0,
896
- children: /* @__PURE__ */ w(G, {
899
+ children: /* @__PURE__ */ T(de, {
897
900
  variant: "outline",
898
901
  id: a,
899
902
  name: o,
900
903
  className: "tg:w-full tg:justify-between tg:font-normal",
901
- children: [h ? h.toLocaleDateString() : c || m("renderer.defaultInputs.selectDate"), /* @__PURE__ */ C(D, { className: "tg:size-4" })]
904
+ children: [h ? h.toLocaleDateString() : c || m("renderer.defaultInputs.selectDate"), /* @__PURE__ */ w(D, { className: "tg:size-4" })]
902
905
  })
903
- }), /* @__PURE__ */ C(he, {
906
+ }), /* @__PURE__ */ w(ge, {
904
907
  className: "tg:w-auto tg:overflow-hidden tg:p-0",
905
908
  align: "start",
906
- children: /* @__PURE__ */ C(st, {
909
+ children: /* @__PURE__ */ w(ct, {
907
910
  mode: "single",
908
911
  selected: h,
909
912
  captionLayout: "dropdown",
@@ -920,37 +923,37 @@ var lt = ({ field: e, extra: t }) => {
920
923
  })
921
924
  })]
922
925
  }),
923
- d && /* @__PURE__ */ C(J, { children: d }),
924
- p && !d && /* @__PURE__ */ C(q, { children: p })
926
+ d && /* @__PURE__ */ w(J, { children: d }),
927
+ p && !d && /* @__PURE__ */ w(q, { children: p })
925
928
  ]
926
929
  });
927
- }, ut = ({ field: e, extra: t }) => {
928
- let [n, i] = x(!1), { id: a, value: o } = e, { node: s, setValue: c, error: l, label: u, helperText: d } = t, f = r(), p = Array.isArray(o) ? o : [], m = p[0] ? new Date(p[0]) : void 0, h = p[1] ? new Date(p[1]) : void 0;
929
- return /* @__PURE__ */ w(K, {
930
+ }, dt = ({ field: t, extra: n }) => {
931
+ let [r, i] = S(!1), { id: a, value: o } = t, { node: s, setValue: c, error: l, label: u, helperText: d } = n, f = e(), p = Array.isArray(o) ? o : [], m = p[0] ? new Date(p[0]) : void 0, h = p[1] ? new Date(p[1]) : void 0;
932
+ return /* @__PURE__ */ T(K, {
930
933
  className: "tg:mb-4",
931
934
  children: [
932
- /* @__PURE__ */ w(X, {
935
+ /* @__PURE__ */ T(X, {
933
936
  htmlFor: a,
934
- children: [u || s.data.name, s.data.required && /* @__PURE__ */ C("span", {
937
+ children: [u || s.data.name, s.data.required && /* @__PURE__ */ w("span", {
935
938
  className: "tg:text-red-500",
936
939
  children: "*"
937
940
  })]
938
941
  }),
939
- /* @__PURE__ */ w(pe, {
940
- open: n,
942
+ /* @__PURE__ */ T(me, {
943
+ open: r,
941
944
  onOpenChange: i,
942
- children: [/* @__PURE__ */ C(me, {
945
+ children: [/* @__PURE__ */ w(he, {
943
946
  asChild: !0,
944
- children: /* @__PURE__ */ w(G, {
947
+ children: /* @__PURE__ */ T(de, {
945
948
  id: a,
946
949
  variant: "outline",
947
950
  className: "tg:w-full tg:justify-between tg:font-normal",
948
- children: [m && h ? `${m.toLocaleDateString()} - ${h.toLocaleDateString()}` : m ? m.toLocaleDateString() : f("renderer.defaultInputs.selectDateRange"), /* @__PURE__ */ C(D, { className: "tg:size-4" })]
951
+ children: [m && h ? `${m.toLocaleDateString()} - ${h.toLocaleDateString()}` : m ? m.toLocaleDateString() : f("renderer.defaultInputs.selectDateRange"), /* @__PURE__ */ w(D, { className: "tg:size-4" })]
949
952
  })
950
- }), /* @__PURE__ */ C(he, {
953
+ }), /* @__PURE__ */ w(ge, {
951
954
  className: "tg:w-auto tg:overflow-hidden tg:p-0",
952
955
  align: "start",
953
- children: /* @__PURE__ */ C(st, {
956
+ children: /* @__PURE__ */ w(ct, {
954
957
  mode: "range",
955
958
  selected: {
956
959
  from: m,
@@ -971,23 +974,23 @@ var lt = ({ field: e, extra: t }) => {
971
974
  })
972
975
  })]
973
976
  }),
974
- l && /* @__PURE__ */ C(J, { children: l }),
975
- d && !l && /* @__PURE__ */ C(q, { children: d })
977
+ l && /* @__PURE__ */ w(J, { children: l }),
978
+ d && !l && /* @__PURE__ */ w(q, { children: d })
976
979
  ]
977
980
  });
978
- }, dt = ({ field: e, extra: t }) => {
981
+ }, ft = ({ field: e, extra: t }) => {
979
982
  let { id: n, name: r, placeholder: i } = e, { node: a, setValue: o, error: s, label: u, helperText: d } = t;
980
- return /* @__PURE__ */ w(K, {
983
+ return /* @__PURE__ */ T(K, {
981
984
  className: "tg:mb-4",
982
985
  children: [
983
- /* @__PURE__ */ w(X, {
986
+ /* @__PURE__ */ T(X, {
984
987
  htmlFor: n,
985
- children: [u || a.data.name, a.data.required && /* @__PURE__ */ C("span", {
988
+ children: [u || a.data.name, a.data.required && /* @__PURE__ */ w("span", {
986
989
  className: "tg:text-red-500",
987
990
  children: "*"
988
991
  })]
989
992
  }),
990
- /* @__PURE__ */ C(Y, {
993
+ /* @__PURE__ */ w(Y, {
991
994
  type: "file",
992
995
  name: r,
993
996
  id: n,
@@ -1006,200 +1009,204 @@ var lt = ({ field: e, extra: t }) => {
1006
1009
  multiple: a.data.multiple,
1007
1010
  placeholder: i
1008
1011
  }),
1009
- s && /* @__PURE__ */ C(J, { children: s }),
1010
- d && !s && /* @__PURE__ */ C(q, { children: d })
1012
+ s && /* @__PURE__ */ w(J, { children: s }),
1013
+ d && !s && /* @__PURE__ */ w(q, { children: d })
1011
1014
  ]
1012
1015
  });
1013
- }, ft = ({ field: e }) => {
1016
+ }, pt = ({ field: e }) => {
1014
1017
  let { id: t, name: n, value: r } = e;
1015
- return /* @__PURE__ */ C(Y, {
1018
+ return /* @__PURE__ */ w(Y, {
1016
1019
  type: "hidden",
1017
1020
  id: t,
1018
1021
  name: n,
1019
1022
  value: r ?? ""
1020
1023
  });
1021
- }, pt = (e) => {
1024
+ }, mt = (e) => {
1022
1025
  let t = e.matchAll(/{{([\w-]+)}}/g);
1023
1026
  return Array.from(t, (e) => e[1]);
1024
- }, mt = (e, t) => pt(e).every((e) => {
1027
+ }, ht = (e, t) => mt(e).every((e) => {
1025
1028
  let n = t[e];
1026
1029
  return n != null && n !== "";
1027
- }), ht = (e, t, n = !1) => e.replace(/{{([\w-]+)}}/g, (e, r) => {
1030
+ }), gt = (e, t, n = !1) => e.replace(/{{([\w-]+)}}/g, (e, r) => {
1028
1031
  let i = t[r], a = i == null ? "" : String(i);
1029
1032
  return n ? encodeURIComponent(a) : a;
1030
- }), gt = ({ field: n, extra: i }) => {
1031
- let [c, l] = x(!1), [p, m] = x(null), [h, _] = x([]), [E, D] = x(""), [ee, te] = x(!1), { id: ne, name: ie, value: k, placeholder: ae } = n, { node: A, setValue: j, error: M, label: oe, helperText: N, missingDependencies: se } = i, { formValues: P, inputNodes: F, headers: I, baseUrl: L } = s(), { httpConfig: R } = A.data, z = b(!1), B = b(!1), ce = b(""), V = r(), H = b(R), U = b(P), le = b(F), ue = b(I), de = b(L), fe = b(j), Z = b(null), Q = b(null), xe = y(() => R?.url ? pt(R.url) : [], [R?.url]), Ce = xe.length > 0, we = y(() => xe.map((e) => `${e}:${String(P[e] ?? "")}`).join("|"), [xe, P]), Te = y(() => R?.url ? Ce ? mt(R.url, P) : !0 : !1, [
1032
- R?.url,
1033
- Ce,
1034
- P
1035
- ]), $ = g(async (n) => {
1033
+ }), _t = ({ field: c, extra: l }) => {
1034
+ let [f, p] = S(!1), [m, h] = S(null), [g, v] = S([]), [E, D] = S(""), [te, ne] = S(!1), { id: O, name: ie, value: A, placeholder: ae } = c, { node: j, setValue: M, error: N, label: oe, helperText: P, missingDependencies: se } = l, { formValues: F, inputNodes: I, headers: L, baseUrl: R } = o(), { httpConfig: z } = j.data, B = x(!1), V = x(!1), ce = x(""), H = e(), U = x(z), W = x(F), le = x(I), ue = x(L), fe = x(R), pe = x(M), Z = x(null), Q = x(null), Se = b(() => z?.url ? mt(z.url) : [], [z?.url]), we = Se.length > 0, Te = b(() => Se.map((e) => `${e}:${String(F[e] ?? "")}`).join("|"), [Se, F]), Ee = b(() => z?.url ? we ? ht(z.url, F) : !0 : !1, [
1035
+ z?.url,
1036
+ we,
1037
+ F
1038
+ ]), $ = _(async (e) => {
1036
1039
  Q.current && Q.current.abort();
1037
- let r = new AbortController();
1038
- Q.current = r;
1039
- let i = H.current, s = U.current, c = fe.current;
1040
- if (!i?.url) {
1041
- m(V("renderer.defaultHttpInput.noUrlConfigured")), Q.current = null;
1040
+ let o = new AbortController();
1041
+ Q.current = o;
1042
+ let c = U.current, l = W.current, f = pe.current;
1043
+ if (!c?.url) {
1044
+ h(H("renderer.defaultHttpInput.noUrlConfigured")), Q.current = null;
1042
1045
  return;
1043
1046
  }
1044
- if (i.url && !mt(i.url, s)) {
1047
+ if (c.url && !ht(c.url, l)) {
1045
1048
  Q.current = null;
1046
1049
  return;
1047
1050
  }
1048
- l(!0), m(null);
1051
+ p(!0), h(null);
1049
1052
  try {
1050
- let p = f(ht(i.url, s, !0), de.current), h = o(i.searchParam && n ? `${p}${p.includes("?") ? "&" : "?"}${i.searchParam}=${encodeURIComponent(n)}` : p, e(i.queryParams, s)), g = a({ "Content-Type": "application/json" }, e(ue.current, s), e(i.headers, s)), v = [
1053
+ let m = t(gt(c.url, l, !0), fe.current), g = d(c.searchParam && e ? `${m}${m.includes("?") ? "&" : "?"}${c.searchParam}=${encodeURIComponent(e)}` : m, r(c.queryParams, l)), _ = n({ "Content-Type": "application/json" }, r(ue.current, l), r(c.headers, l)), y = [
1051
1054
  "POST",
1052
1055
  "PUT",
1053
1056
  "PATCH"
1054
- ].includes(i.method || "") ? i.sendAllFormValues ? JSON.stringify(u(s, le.current)) : i.body ? ht(i.body, s) : void 0 : void 0, y = setTimeout(() => r.abort(), 3e4), b = await fetch(h, {
1055
- body: v || void 0,
1056
- headers: Object.fromEntries(Object.entries(g).filter(([, e]) => e)),
1057
- method: i.method || "GET",
1058
- signal: r.signal
1057
+ ].includes(c.method || "") ? c.sendAllFormValues ? JSON.stringify(u(l, le.current)) : i(c.body, l, le.current) : void 0, b = setTimeout(() => o.abort(), 3e4), x = await fetch(g, {
1058
+ body: y || void 0,
1059
+ headers: Object.fromEntries(Object.entries(_).filter(([, e]) => e)),
1060
+ method: c.method || "GET",
1061
+ signal: o.signal
1059
1062
  });
1060
- if (clearTimeout(y), !b.ok) {
1061
- m(`HTTP Error ${b.status}: ${b.statusText}`), l(!1);
1063
+ if (clearTimeout(b), !x.ok) {
1064
+ h(`HTTP Error ${x.status}: ${x.statusText}`), p(!1);
1062
1065
  return;
1063
1066
  }
1064
- let x = t(await b.json()), S = i.responsePath ? d(x, i.responsePath) : x;
1065
- if (i.responseMapping && Array.isArray(S)) {
1066
- let { valueField: e = "value", labelField: t = "label", descriptionField: n, imageField: r } = i.responseMapping;
1067
- _(S.map((i) => {
1068
- let a = n ? d(i, n) : void 0, o = r ? d(i, r) : void 0;
1067
+ let S = s(await x.json()), C = c.responsePath ? a(S, c.responsePath) : S;
1068
+ if (c.responseMapping && Array.isArray(C)) {
1069
+ let { valueField: e = "value", labelField: t = "label", descriptionField: n, imageField: r } = c.responseMapping;
1070
+ v(C.map((i) => {
1071
+ let o = n ? a(i, n) : void 0, s = r ? a(i, r) : void 0;
1069
1072
  return {
1070
- description: a != null && a !== "" ? String(a) : void 0,
1071
- image: typeof o == "string" && o !== "" ? o : void 0,
1072
- label: String(d(i, t) || ""),
1073
- value: String(d(i, e) || "")
1073
+ description: o != null && o !== "" ? String(o) : void 0,
1074
+ image: typeof s == "string" && s !== "" ? s : void 0,
1075
+ label: String(a(i, t) || ""),
1076
+ value: String(a(i, e) || "")
1074
1077
  };
1075
1078
  }));
1076
- } else c(typeof S == "string" ? S : JSON.stringify(S));
1079
+ } else f(typeof C == "string" ? C : JSON.stringify(C));
1077
1080
  } catch (e) {
1078
1081
  if (e instanceof Error && e.name === "AbortError") return;
1079
- m(e instanceof Error ? e.message : V("renderer.defaultHttpInput.fetchFailed")), console.error("HTTP Input fetch error:", e);
1082
+ h(e instanceof Error ? e.message : H("renderer.defaultHttpInput.fetchFailed")), console.error("HTTP Input fetch error:", e);
1080
1083
  } finally {
1081
- l(!1), Q.current = null;
1084
+ p(!1), Q.current = null;
1082
1085
  }
1083
- }, [V]);
1084
- if (v(() => {
1085
- H.current = R, U.current = P, le.current = F, ue.current = I, de.current = L, fe.current = j, Z.current = $;
1086
+ }, [H]);
1087
+ if (y(() => {
1088
+ U.current = z, W.current = F, le.current = I, ue.current = L, fe.current = R, pe.current = M, Z.current = $;
1086
1089
  }, [
1087
- R,
1088
- P,
1090
+ z,
1089
1091
  F,
1090
1092
  I,
1091
1093
  L,
1092
- j,
1094
+ R,
1095
+ M,
1093
1096
  $
1094
- ]), v(() => () => {
1095
- Q.current && Q.current.abort(), z.current = !1, B.current = !1;
1096
- }, []), v(() => {
1097
- if (z.current) return;
1098
- z.current = !0;
1099
- let e = H.current, t = U.current, n = Z.current, r = e?.url && mt(e.url, t);
1100
- e?.fetchOnMount && r && n && (n(), e.url && (ce.current = pt(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1101
- }, []), v(() => {
1102
- if (!z.current || !Ce || ce.current === we || !Te) return;
1097
+ ]), y(() => () => {
1098
+ Q.current && Q.current.abort(), B.current = !1, V.current = !1;
1099
+ }, []), y(() => {
1100
+ if (B.current) return;
1101
+ B.current = !0;
1102
+ let e = U.current, t = W.current, n = Z.current, r = e?.url && ht(e.url, t);
1103
+ e?.fetchOnMount && r && n && (n(), e.url && (ce.current = mt(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1104
+ }, []), y(() => {
1105
+ if (!B.current || !we || ce.current === Te || !Ee) return;
1103
1106
  let e = setTimeout(() => {
1104
- $(), ce.current = we;
1107
+ $(), ce.current = Te;
1105
1108
  }, 500);
1106
1109
  return () => clearTimeout(e);
1107
1110
  }, [
1108
- we,
1109
- Ce,
1110
1111
  Te,
1112
+ we,
1113
+ Ee,
1111
1114
  $
1112
- ]), v(() => {
1113
- if (!B.current) {
1114
- B.current = !0;
1115
+ ]), y(() => {
1116
+ if (!V.current) {
1117
+ V.current = !0;
1115
1118
  return;
1116
1119
  }
1117
- let e = H.current, t = U.current, n = Z.current, r = e?.url && mt(e.url, t);
1118
- e?.fetchOnMount && r && n && (n(), e.url && (ce.current = pt(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1119
- }, [y(() => JSON.stringify({
1120
- body: R?.body,
1121
- fetchOnMount: R?.fetchOnMount,
1122
- headers: R?.headers,
1123
- method: R?.method,
1124
- queryParams: R?.queryParams,
1125
- responseMapping: R?.responseMapping,
1126
- responsePath: R?.responsePath,
1127
- searchParam: R?.searchParam,
1128
- sendAllFormValues: R?.sendAllFormValues,
1129
- url: R?.url
1130
- }), [R])]), v(() => {
1131
- if (!(R?.searchParam && E)) return;
1120
+ let e = U.current, t = W.current, n = Z.current, r = e?.url && ht(e.url, t);
1121
+ e?.fetchOnMount && r && n && (n(), e.url && (ce.current = mt(e.url).map((e) => `${e}:${String(t[e] ?? "")}`).join("|")));
1122
+ }, [b(() => JSON.stringify({
1123
+ body: z?.body,
1124
+ fetchOnMount: z?.fetchOnMount,
1125
+ headers: z?.headers,
1126
+ method: z?.method,
1127
+ queryParams: z?.queryParams,
1128
+ responseMapping: z?.responseMapping,
1129
+ responsePath: z?.responsePath,
1130
+ searchParam: z?.searchParam,
1131
+ sendAllFormValues: z?.sendAllFormValues,
1132
+ url: z?.url
1133
+ }), [z])]), y(() => {
1134
+ if (!(z?.searchParam && E)) return;
1132
1135
  let e = setTimeout(() => {
1133
1136
  $(E);
1134
1137
  }, 300);
1135
1138
  return () => clearTimeout(e);
1136
1139
  }, [
1137
1140
  E,
1138
- R?.searchParam,
1141
+ z?.searchParam,
1139
1142
  $
1140
- ]), R?.responseMapping) {
1141
- let e = Array.isArray(k) ? k[0] : k, t = h.find((t) => t.value === e);
1142
- if (R.searchParam) {
1143
- let e = c && R?.showLoading ? /* @__PURE__ */ w("div", {
1143
+ ]), z?.responseMapping) {
1144
+ let e = Array.isArray(A) ? A[0] : A, t = g.find((t) => t.value === e);
1145
+ if (z.searchParam) {
1146
+ let e = f && z?.showLoading ? /* @__PURE__ */ T("div", {
1144
1147
  className: "tg:flex tg:items-center tg:gap-2",
1145
- children: [/* @__PURE__ */ C(O, { className: "tg:h-4 tg:w-4 tg:animate-spin" }), /* @__PURE__ */ C("span", {
1148
+ children: [/* @__PURE__ */ w(k, { className: "tg:h-4 tg:w-4 tg:animate-spin" }), /* @__PURE__ */ w("span", {
1146
1149
  className: "tg:text-muted-foreground",
1147
- children: t?.label || ae || V("renderer.defaultHttpInput.search")
1150
+ children: t?.label || ae || H("renderer.defaultHttpInput.search")
1148
1151
  })]
1149
- }) : t?.label || ae || V("renderer.defaultHttpInput.search");
1150
- return /* @__PURE__ */ w(K, {
1152
+ }) : t?.label || ae || H("renderer.defaultHttpInput.search");
1153
+ return /* @__PURE__ */ T(K, {
1151
1154
  className: "tg:mb-4",
1152
1155
  children: [
1153
- /* @__PURE__ */ w(X, { children: [oe || A.data.name, A.data.required && /* @__PURE__ */ C("span", {
1154
- className: "tg:text-red-500",
1155
- children: "*"
1156
- })] }),
1157
- /* @__PURE__ */ C(Ye, {
1156
+ /* @__PURE__ */ T(X, {
1157
+ htmlFor: O,
1158
+ children: [oe || j.data.name, j.data.required && /* @__PURE__ */ w("span", {
1159
+ className: "tg:text-red-500",
1160
+ children: "*"
1161
+ })]
1162
+ }),
1163
+ /* @__PURE__ */ w(Xe, {
1158
1164
  missing: se,
1159
- children: /* @__PURE__ */ w(pe, {
1160
- open: ee,
1161
- onOpenChange: te,
1162
- children: [/* @__PURE__ */ C(me, {
1165
+ children: /* @__PURE__ */ T(me, {
1166
+ open: te,
1167
+ onOpenChange: ne,
1168
+ children: [/* @__PURE__ */ w(he, {
1163
1169
  asChild: !0,
1164
- children: /* @__PURE__ */ w(G, {
1170
+ children: /* @__PURE__ */ T(de, {
1171
+ id: O,
1165
1172
  variant: "outline",
1166
1173
  role: "combobox",
1167
- "aria-expanded": ee,
1174
+ "aria-expanded": te,
1168
1175
  disabled: se.length > 0,
1169
1176
  className: "tg:w-full tg:justify-between",
1170
- children: [e, /* @__PURE__ */ C(re, { className: "tg:ml-2 tg:h-4 tg:w-4 tg:shrink-0 tg:opacity-50" })]
1177
+ children: [e, /* @__PURE__ */ w(re, { className: "tg:ml-2 tg:h-4 tg:w-4 tg:shrink-0 tg:opacity-50" })]
1171
1178
  })
1172
- }), /* @__PURE__ */ C(he, {
1179
+ }), /* @__PURE__ */ w(ge, {
1173
1180
  className: "tg:w-[var(--radix-popover-trigger-width)] tg:p-0",
1174
1181
  align: "start",
1175
- children: /* @__PURE__ */ w(ze, {
1182
+ children: /* @__PURE__ */ T(Be, {
1176
1183
  shouldFilter: !1,
1177
- children: [/* @__PURE__ */ C(Be, {
1178
- placeholder: V("renderer.defaultHttpInput.search"),
1184
+ children: [/* @__PURE__ */ w(Ve, {
1185
+ placeholder: H("renderer.defaultHttpInput.search"),
1179
1186
  value: E,
1180
1187
  onValueChange: (e) => {
1181
- D(e), m(null);
1188
+ D(e), h(null);
1182
1189
  }
1183
- }), /* @__PURE__ */ w(Ve, { children: [
1184
- c && /* @__PURE__ */ C("div", {
1190
+ }), /* @__PURE__ */ T(He, { children: [
1191
+ f && /* @__PURE__ */ w("div", {
1185
1192
  className: "tg:flex tg:items-center tg:justify-center tg:p-4",
1186
- children: /* @__PURE__ */ C(O, { className: "tg:h-4 tg:w-4 tg:animate-spin" })
1193
+ children: /* @__PURE__ */ w(k, { className: "tg:h-4 tg:w-4 tg:animate-spin" })
1187
1194
  }),
1188
- !c && p && /* @__PURE__ */ w("div", {
1195
+ !f && m && /* @__PURE__ */ T("div", {
1189
1196
  className: "tg:p-4 tg:text-destructive tg:text-sm",
1190
- children: [/* @__PURE__ */ C("div", { children: p }), /* @__PURE__ */ C("button", {
1197
+ children: [/* @__PURE__ */ w("div", { children: m }), /* @__PURE__ */ w("button", {
1191
1198
  type: "button",
1192
1199
  onClick: () => $(E),
1193
1200
  className: "tg:mt-2 tg:block tg:text-primary tg:hover:underline",
1194
- children: V("renderer.defaultHttpInput.retry")
1201
+ children: H("renderer.defaultHttpInput.retry")
1195
1202
  })]
1196
1203
  }),
1197
- !(c || p) && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(He, { children: V("renderer.defaultHttpInput.noResults") }), /* @__PURE__ */ C(Ue, { children: h.map((e) => /* @__PURE__ */ w(We, {
1204
+ !(f || m) && /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(Ue, { children: H("renderer.defaultHttpInput.noResults") }), /* @__PURE__ */ w(We, { children: g.map((e) => /* @__PURE__ */ T(Ge, {
1198
1205
  value: e.value,
1199
1206
  onSelect: () => {
1200
- j(e.value), te(!1);
1207
+ M(e.value), ne(!1);
1201
1208
  },
1202
- children: [/* @__PURE__ */ C(T, { className: W("tg:mr-2 tg:h-4 tg:w-4", k === e.value ? "tg:opacity-100" : "tg:opacity-0") }), /* @__PURE__ */ C(nt, {
1209
+ children: [/* @__PURE__ */ w(ee, { className: G("tg:mr-2 tg:h-4 tg:w-4", A === e.value ? "tg:opacity-100" : "tg:opacity-0") }), /* @__PURE__ */ w(rt, {
1203
1210
  label: e.label,
1204
1211
  description: e.description,
1205
1212
  image: e.image
@@ -1210,90 +1217,90 @@ var lt = ({ field: e, extra: t }) => {
1210
1217
  })]
1211
1218
  })
1212
1219
  }),
1213
- M && /* @__PURE__ */ C(J, { children: M }),
1214
- N && !M && /* @__PURE__ */ C(q, { children: N })
1220
+ N && /* @__PURE__ */ w(J, { children: N }),
1221
+ P && !N && /* @__PURE__ */ w(q, { children: P })
1215
1222
  ]
1216
1223
  });
1217
1224
  }
1218
- let n = c && R?.showLoading, r = se.length === 0 && h.length === 0 && !n ? p ?? V("renderer.defaultHttpInput.noDataAvailable") : void 0, i = /* @__PURE__ */ w(ge, {
1219
- value: Array.isArray(k) ? k[0] ?? "" : k ?? "",
1220
- onValueChange: (e) => j(e),
1221
- disabled: n || h.length === 0,
1225
+ let n = f && z?.showLoading, r = se.length === 0 && g.length === 0 && !n ? m ?? H("renderer.defaultHttpInput.noDataAvailable") : void 0, i = /* @__PURE__ */ T(_e, {
1226
+ value: Array.isArray(A) ? A[0] ?? "" : A ?? "",
1227
+ onValueChange: (e) => M(e),
1228
+ disabled: n || g.length === 0,
1222
1229
  name: ie,
1223
- children: [/* @__PURE__ */ w(ye, {
1224
- id: ne,
1230
+ children: [/* @__PURE__ */ T(be, {
1231
+ id: O,
1225
1232
  name: ie,
1226
1233
  className: "tg:w-full",
1227
- children: [n && /* @__PURE__ */ C(O, { className: "tg:mr-2 tg:h-4 tg:w-4 tg:animate-spin" }), /* @__PURE__ */ C(ve, { placeholder: ae || V("renderer.defaultHttpInput.selectOption") })]
1228
- }), /* @__PURE__ */ C(be, { children: /* @__PURE__ */ C(_e, { children: h.map((e, t) => /* @__PURE__ */ C(Se, {
1234
+ children: [n && /* @__PURE__ */ w(k, { className: "tg:mr-2 tg:h-4 tg:w-4 tg:animate-spin" }), /* @__PURE__ */ w(ye, { placeholder: ae || H("renderer.defaultHttpInput.selectOption") })]
1235
+ }), /* @__PURE__ */ w(xe, { children: /* @__PURE__ */ w(ve, { children: g.map((e, t) => /* @__PURE__ */ w(Ce, {
1229
1236
  value: e.value,
1230
- children: /* @__PURE__ */ C(nt, {
1237
+ children: /* @__PURE__ */ w(rt, {
1231
1238
  label: e.label,
1232
1239
  description: e.description,
1233
1240
  image: e.image
1234
1241
  })
1235
1242
  }, e.value + t)) }) })]
1236
1243
  });
1237
- return /* @__PURE__ */ w(K, {
1244
+ return /* @__PURE__ */ T(K, {
1238
1245
  className: "tg:mb-4",
1239
1246
  children: [
1240
- /* @__PURE__ */ w(X, {
1241
- htmlFor: ne,
1242
- children: [oe || A.data.name, A.data.required && /* @__PURE__ */ C("span", {
1247
+ /* @__PURE__ */ T(X, {
1248
+ htmlFor: O,
1249
+ children: [oe || j.data.name, j.data.required && /* @__PURE__ */ w("span", {
1243
1250
  className: "tg:text-red-500",
1244
1251
  children: "*"
1245
1252
  })]
1246
1253
  }),
1247
- /* @__PURE__ */ C(Ye, {
1254
+ /* @__PURE__ */ w(Xe, {
1248
1255
  missing: se,
1249
- children: r ? /* @__PURE__ */ C(Ee, { children: /* @__PURE__ */ w(De, { children: [/* @__PURE__ */ C(Oe, {
1256
+ children: r ? /* @__PURE__ */ w(De, { children: /* @__PURE__ */ T(Oe, { children: [/* @__PURE__ */ w(ke, {
1250
1257
  asChild: !0,
1251
- children: /* @__PURE__ */ C("div", {
1258
+ children: /* @__PURE__ */ w("div", {
1252
1259
  className: "tg:w-full",
1253
1260
  children: i
1254
1261
  })
1255
- }), /* @__PURE__ */ C(ke, { children: /* @__PURE__ */ C("p", { children: r }) })] }) }) : i
1262
+ }), /* @__PURE__ */ w(Ae, { children: /* @__PURE__ */ w("p", { children: r }) })] }) }) : i
1256
1263
  }),
1257
- M && /* @__PURE__ */ C(J, { children: M }),
1258
- N && !M && /* @__PURE__ */ C(q, { children: N })
1264
+ N && /* @__PURE__ */ w(J, { children: N }),
1265
+ P && !N && /* @__PURE__ */ w(q, { children: P })
1259
1266
  ]
1260
1267
  });
1261
1268
  }
1262
- return /* @__PURE__ */ w(K, {
1269
+ return /* @__PURE__ */ T(K, {
1263
1270
  className: "tg:mb-4",
1264
1271
  children: [
1265
- /* @__PURE__ */ w(X, {
1266
- htmlFor: ne,
1267
- children: [oe || A.data.name, A.data.required && /* @__PURE__ */ C("span", {
1272
+ /* @__PURE__ */ T(X, {
1273
+ htmlFor: O,
1274
+ children: [oe || j.data.name, j.data.required && /* @__PURE__ */ w("span", {
1268
1275
  className: "tg:text-red-500",
1269
1276
  children: "*"
1270
1277
  })]
1271
1278
  }),
1272
- /* @__PURE__ */ C(Y, {
1279
+ /* @__PURE__ */ w(Y, {
1273
1280
  type: "text",
1274
1281
  name: ie,
1275
- id: ne,
1276
- value: typeof k == "string" ? k : JSON.stringify(k),
1282
+ id: O,
1283
+ value: typeof A == "string" ? A : JSON.stringify(A),
1277
1284
  readOnly: !0,
1278
1285
  disabled: !0
1279
1286
  }),
1280
- M && /* @__PURE__ */ C(J, { children: M }),
1281
- N && !M && /* @__PURE__ */ C(q, { children: N })
1287
+ N && /* @__PURE__ */ w(J, { children: N }),
1288
+ P && !N && /* @__PURE__ */ w(q, { children: P })
1282
1289
  ]
1283
1290
  });
1284
- }, _t = ({ field: e, extra: t }) => {
1291
+ }, vt = ({ field: e, extra: t }) => {
1285
1292
  let { id: n, name: r, value: i, placeholder: a } = e, { node: o, setValue: s, error: c, label: l, helperText: u } = t;
1286
- return /* @__PURE__ */ w(K, {
1293
+ return /* @__PURE__ */ T(K, {
1287
1294
  className: "tg:mb-4",
1288
1295
  children: [
1289
- /* @__PURE__ */ w(X, {
1296
+ /* @__PURE__ */ T(X, {
1290
1297
  htmlFor: n,
1291
- children: [l || o.data.name, o.data.required && /* @__PURE__ */ C("span", {
1298
+ children: [l || o.data.name, o.data.required && /* @__PURE__ */ w("span", {
1292
1299
  className: "tg:text-red-500",
1293
1300
  children: "*"
1294
1301
  })]
1295
1302
  }),
1296
- /* @__PURE__ */ C(Y, {
1303
+ /* @__PURE__ */ w(Y, {
1297
1304
  id: n,
1298
1305
  type: "number",
1299
1306
  name: r,
@@ -1301,23 +1308,23 @@ var lt = ({ field: e, extra: t }) => {
1301
1308
  onChange: (e) => s(e.target.value === "" ? null : Number(e.target.value)),
1302
1309
  placeholder: a
1303
1310
  }),
1304
- c && /* @__PURE__ */ C(J, { children: c }),
1305
- u && !c && /* @__PURE__ */ C(q, { children: u })
1311
+ c && /* @__PURE__ */ w(J, { children: c }),
1312
+ u && !c && /* @__PURE__ */ w(q, { children: u })
1306
1313
  ]
1307
1314
  });
1308
- }, vt = ({ field: e, extra: t }) => {
1315
+ }, yt = ({ field: e, extra: t }) => {
1309
1316
  let { id: n, name: r, value: i, placeholder: a } = e, { node: o, setValue: s, error: c, label: l, helperText: u } = t;
1310
- return /* @__PURE__ */ w(K, {
1317
+ return /* @__PURE__ */ T(K, {
1311
1318
  className: "tg:mb-4",
1312
1319
  children: [
1313
- /* @__PURE__ */ w(X, {
1320
+ /* @__PURE__ */ T(X, {
1314
1321
  htmlFor: n,
1315
- children: [l || o.data.name, o.data.required && /* @__PURE__ */ C("span", {
1322
+ children: [l || o.data.name, o.data.required && /* @__PURE__ */ w("span", {
1316
1323
  className: "tg:text-red-500",
1317
1324
  children: "*"
1318
1325
  })]
1319
1326
  }),
1320
- /* @__PURE__ */ C(Y, {
1327
+ /* @__PURE__ */ w(Y, {
1321
1328
  id: n,
1322
1329
  name: r,
1323
1330
  type: "password",
@@ -1326,11 +1333,11 @@ var lt = ({ field: e, extra: t }) => {
1326
1333
  placeholder: a,
1327
1334
  autoComplete: "new-password"
1328
1335
  }),
1329
- c && /* @__PURE__ */ C(J, { children: c }),
1330
- u && !c && /* @__PURE__ */ C(q, { children: u })
1336
+ c && /* @__PURE__ */ w(J, { children: c }),
1337
+ u && !c && /* @__PURE__ */ w(q, { children: u })
1331
1338
  ]
1332
1339
  });
1333
- }, yt = M("tg:group/field tg:flex tg:w-full tg:gap-3 tg:data-[invalid=true]:text-destructive", {
1340
+ }, bt = N("tg:group/field tg:flex tg:w-full tg:gap-3 tg:data-[invalid=true]:text-destructive", {
1334
1341
  defaultVariants: { orientation: "vertical" },
1335
1342
  variants: { orientation: {
1336
1343
  horizontal: [
@@ -1346,119 +1353,119 @@ var lt = ({ field: e, extra: t }) => {
1346
1353
  vertical: ["tg:flex-col tg:[&>*]:w-full tg:[&>.sr-only]:w-auto"]
1347
1354
  } }
1348
1355
  });
1349
- function bt({ className: e, orientation: t = "vertical", ...n }) {
1350
- return /* @__PURE__ */ C("div", {
1356
+ function xt({ className: e, orientation: t = "vertical", ...n }) {
1357
+ return /* @__PURE__ */ w("div", {
1351
1358
  role: "group",
1352
1359
  "data-slot": "field",
1353
1360
  "data-orientation": t,
1354
- className: W(yt({ orientation: t }), e),
1361
+ className: G(bt({ orientation: t }), e),
1355
1362
  ...n
1356
1363
  });
1357
1364
  }
1358
- function xt({ className: e, ...t }) {
1359
- return /* @__PURE__ */ C("div", {
1365
+ function St({ className: e, ...t }) {
1366
+ return /* @__PURE__ */ w("div", {
1360
1367
  "data-slot": "field-content",
1361
- className: W("tg:group/field-content tg:flex tg:flex-1 tg:flex-col tg:gap-1.5 tg:leading-snug", e),
1368
+ className: G("tg:group/field-content tg:flex tg:flex-1 tg:flex-col tg:gap-1.5 tg:leading-snug", e),
1362
1369
  ...t
1363
1370
  });
1364
1371
  }
1365
- function St({ className: e, ...t }) {
1366
- return /* @__PURE__ */ C(X, {
1372
+ function Ct({ className: e, ...t }) {
1373
+ return /* @__PURE__ */ w(X, {
1367
1374
  "data-slot": "field-label",
1368
- className: W("tg:group/field-label tg:peer/field-label tg:flex tg:w-fit tg:gap-2 tg:leading-snug tg:group-data-[disabled=true]/field:opacity-50", "tg:has-[>[data-slot=field]]:w-full tg:has-[>[data-slot=field]]:flex-col tg:has-[>[data-slot=field]]:rounded-md tg:has-[>[data-slot=field]]:border tg:[&>*]:data-[slot=field]:p-4", "tg:has-data-[state=checked]:border-primary tg:has-data-[state=checked]:bg-primary/5 tg:dark:has-data-[state=checked]:bg-primary/10", e),
1375
+ className: G("tg:group/field-label tg:peer/field-label tg:flex tg:w-fit tg:gap-2 tg:leading-snug tg:group-data-[disabled=true]/field:opacity-50", "tg:has-[>[data-slot=field]]:w-full tg:has-[>[data-slot=field]]:flex-col tg:has-[>[data-slot=field]]:rounded-md tg:has-[>[data-slot=field]]:border tg:[&>*]:data-[slot=field]:p-4", "tg:has-data-[state=checked]:border-primary tg:has-data-[state=checked]:bg-primary/5 tg:dark:has-data-[state=checked]:bg-primary/10", e),
1369
1376
  ...t
1370
1377
  });
1371
1378
  }
1372
- function Ct({ className: e, ...t }) {
1373
- return /* @__PURE__ */ C("div", {
1379
+ function wt({ className: e, ...t }) {
1380
+ return /* @__PURE__ */ w("div", {
1374
1381
  "data-slot": "field-label",
1375
- className: W("tg:flex tg:w-fit tg:items-center tg:gap-2 tg:font-medium tg:text-sm tg:leading-snug tg:group-data-[disabled=true]/field:opacity-50", e),
1382
+ className: G("tg:flex tg:w-fit tg:items-center tg:gap-2 tg:font-medium tg:text-sm tg:leading-snug tg:group-data-[disabled=true]/field:opacity-50", e),
1376
1383
  ...t
1377
1384
  });
1378
1385
  }
1379
- function wt({ className: e, ...t }) {
1380
- return /* @__PURE__ */ C("p", {
1386
+ function Tt({ className: e, ...t }) {
1387
+ return /* @__PURE__ */ w("p", {
1381
1388
  "data-slot": "field-description",
1382
- className: W("tg:font-normal tg:text-muted-foreground tg:text-sm tg:leading-normal tg:group-has-[[data-orientation=horizontal]]/field:text-balance", "tg:last:mt-0 tg:nth-last-2:-mt-1 tg:[[data-variant=legend]+&]:-mt-1.5", "tg:[&>a]:underline tg:[&>a]:underline-offset-4 tg:[&>a:hover]:text-primary", e),
1389
+ className: G("tg:font-normal tg:text-muted-foreground tg:text-sm tg:leading-normal tg:group-has-[[data-orientation=horizontal]]/field:text-balance", "tg:last:mt-0 tg:nth-last-2:-mt-1 tg:[[data-variant=legend]+&]:-mt-1.5", "tg:[&>a]:underline tg:[&>a]:underline-offset-4 tg:[&>a:hover]:text-primary", e),
1383
1390
  ...t
1384
1391
  });
1385
1392
  }
1386
1393
  //#endregion
1387
1394
  //#region src/shared/components/ui/radio-group.tsx
1388
- function Tt({ className: e, ...t }) {
1389
- return /* @__PURE__ */ C(H.Root, {
1395
+ function Et({ className: e, ...t }) {
1396
+ return /* @__PURE__ */ w(U.Root, {
1390
1397
  "data-slot": "radio-group",
1391
- className: W("tg:grid tg:gap-3", e),
1398
+ className: G("tg:grid tg:gap-3", e),
1392
1399
  ...t
1393
1400
  });
1394
1401
  }
1395
- function Et({ className: e, ...t }) {
1396
- return /* @__PURE__ */ C(H.Item, {
1402
+ function Dt({ className: e, ...t }) {
1403
+ return /* @__PURE__ */ w(U.Item, {
1397
1404
  "data-slot": "radio-group-item",
1398
- className: W("tg:aspect-square tg:size-4 tg:shrink-0 tg:rounded-full tg:border tg:border-input tg:text-primary tg:shadow-xs tg:outline-none tg:transition-[color,box-shadow] tg:focus-visible:border-ring tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50 tg:disabled:cursor-not-allowed tg:disabled:opacity-50 tg:aria-invalid:border-destructive tg:aria-invalid:ring-destructive/20 tg:dark:bg-input/30 tg:dark:aria-invalid:ring-destructive/40", e),
1405
+ className: G("tg:aspect-square tg:size-4 tg:shrink-0 tg:rounded-full tg:border tg:border-input tg:text-primary tg:shadow-xs tg:outline-none tg:transition-[color,box-shadow] tg:focus-visible:border-ring tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50 tg:disabled:cursor-not-allowed tg:disabled:opacity-50 tg:aria-invalid:border-destructive tg:aria-invalid:ring-destructive/20 tg:dark:bg-input/30 tg:dark:aria-invalid:ring-destructive/40", e),
1399
1406
  ...t,
1400
- children: /* @__PURE__ */ C(H.Indicator, {
1407
+ children: /* @__PURE__ */ w(U.Indicator, {
1401
1408
  "data-slot": "radio-group-indicator",
1402
1409
  className: "tg:relative tg:flex tg:items-center tg:justify-center",
1403
- children: /* @__PURE__ */ C(ie, { className: "tg:-translate-x-1/2 tg:-translate-y-1/2 tg:absolute tg:top-1/2 tg:left-1/2 tg:size-2 tg:fill-primary" })
1410
+ children: /* @__PURE__ */ w(ie, { className: "tg:-translate-x-1/2 tg:-translate-y-1/2 tg:absolute tg:top-1/2 tg:left-1/2 tg:size-2 tg:fill-primary" })
1404
1411
  })
1405
1412
  });
1406
1413
  }
1407
1414
  //#endregion
1408
1415
  //#region src/renderer/features/TreegeRenderer/web/components/inputs/DefaultRadioInput.tsx
1409
- var Dt = ({ field: e, extra: t }) => {
1410
- let { id: n, name: i, value: a } = e, { node: o, setValue: c, error: l, label: u, helperText: d, renderOptionExtras: f, compactOptions: p, missingDependencies: m } = t, { options: h, isLoading: g, error: _ } = it(o), { optionsDisplayLimit: v } = s(), y = r(), b = a ? String(a) : "", x = o.data.variant !== "default", S = `${n}-label`, T = v ? h.slice(0, v) : h, E = h.length - T.length;
1411
- return /* @__PURE__ */ w(K, {
1416
+ var Ot = ({ field: t, extra: n }) => {
1417
+ let { id: r, name: i, value: a } = t, { node: s, setValue: c, error: l, label: u, helperText: d, renderOptionExtras: f, compactOptions: p, missingDependencies: m } = n, { options: h, isLoading: g, error: _ } = at(s), { optionsDisplayLimit: v } = o(), y = e(), b = a ? String(a) : "", x = s.data.variant !== "default", S = `${r}-label`, C = v ? h.slice(0, v) : h, ee = h.length - C.length;
1418
+ return /* @__PURE__ */ T(K, {
1412
1419
  className: "tg:mb-4",
1413
1420
  children: [
1414
- /* @__PURE__ */ w(X, {
1421
+ /* @__PURE__ */ T(X, {
1415
1422
  className: "tg:mb-1",
1416
1423
  id: S,
1417
- children: [u || o.data.name, o.data.required && /* @__PURE__ */ C("span", {
1424
+ children: [u || s.data.name, s.data.required && /* @__PURE__ */ w("span", {
1418
1425
  className: "tg:text-red-500",
1419
1426
  children: "*"
1420
1427
  })]
1421
1428
  }),
1422
- /* @__PURE__ */ C(Xe, { missing: m }),
1423
- g && /* @__PURE__ */ w("div", {
1429
+ /* @__PURE__ */ w(Ze, { missing: m }),
1430
+ g && /* @__PURE__ */ T("div", {
1424
1431
  className: "tg:flex tg:items-center tg:gap-2 tg:py-2 tg:text-muted-foreground tg:text-sm",
1425
- children: [/* @__PURE__ */ C(O, { className: "tg:h-4 tg:w-4 tg:animate-spin" }), /* @__PURE__ */ C("span", { children: y("renderer.defaultRadioInput.loadingOptions") })]
1432
+ children: [/* @__PURE__ */ w(k, { className: "tg:h-4 tg:w-4 tg:animate-spin" }), /* @__PURE__ */ w("span", { children: y("renderer.defaultRadioInput.loadingOptions") })]
1426
1433
  }),
1427
- /* @__PURE__ */ w(Tt, {
1434
+ /* @__PURE__ */ T(Et, {
1428
1435
  value: b,
1429
1436
  onValueChange: (e) => c(e),
1430
1437
  "aria-labelledby": S,
1431
1438
  name: i,
1432
- className: W("tg:min-w-0", x && "tg:flex tg:flex-col tg:gap-2"),
1433
- children: [T.map((e, t) => {
1434
- let r = `${n}-${e.value}`, i = y(e.label) || e.value, a = y(e.description), o = String(e.value);
1435
- return x ? /* @__PURE__ */ w(St, {
1436
- htmlFor: r,
1437
- className: W("tg:group/option tg:pointer-events-auto tg:relative", p && "tg:group-hover/option:pr-16"),
1438
- children: [/* @__PURE__ */ w(bt, {
1439
+ className: G("tg:min-w-0", x && "tg:flex tg:flex-col tg:gap-2"),
1440
+ children: [C.map((e, t) => {
1441
+ let n = `${r}-${e.value}`, i = y(e.label) || e.value, a = y(e.description), o = String(e.value);
1442
+ return x ? /* @__PURE__ */ T(Ct, {
1443
+ htmlFor: n,
1444
+ className: G("tg:group/option tg:pointer-events-auto tg:relative", p && "tg:group-hover/option:pr-16"),
1445
+ children: [/* @__PURE__ */ T(xt, {
1439
1446
  orientation: "horizontal",
1440
1447
  "data-disabled": e.disabled || void 0,
1441
1448
  children: [
1442
- e.image && /* @__PURE__ */ C("img", {
1449
+ e.image && /* @__PURE__ */ w("img", {
1443
1450
  src: e.image,
1444
1451
  alt: "",
1445
1452
  className: "tg:h-10 tg:w-10 tg:shrink-0 tg:self-center tg:rounded tg:object-cover"
1446
1453
  }),
1447
- /* @__PURE__ */ w(xt, {
1448
- className: W(p && "tg:min-w-0 tg:flex-1 tg:overflow-hidden"),
1449
- children: [/* @__PURE__ */ C(Ct, {
1450
- className: W(p && "tg:block tg:max-w-full tg:truncate"),
1454
+ /* @__PURE__ */ T(St, {
1455
+ className: G(p && "tg:min-w-0 tg:flex-1 tg:overflow-hidden"),
1456
+ children: [/* @__PURE__ */ w(wt, {
1457
+ className: G(p && "tg:block tg:max-w-full tg:truncate"),
1451
1458
  children: i
1452
- }), a && /* @__PURE__ */ C(wt, {
1453
- className: W(p && "tg:block tg:max-w-full tg:truncate"),
1459
+ }), a && /* @__PURE__ */ w(Tt, {
1460
+ className: G(p && "tg:block tg:max-w-full tg:truncate"),
1454
1461
  children: a
1455
1462
  })]
1456
1463
  }),
1457
- /* @__PURE__ */ C(Et, {
1464
+ /* @__PURE__ */ w(Dt, {
1458
1465
  value: o,
1459
- id: r,
1466
+ id: n,
1460
1467
  disabled: e.disabled,
1461
- className: W(p && "tg:ml-auto tg:shrink-0 tg:group-hover/option:invisible")
1468
+ className: G(p && "tg:ml-auto tg:shrink-0 tg:group-hover/option:invisible")
1462
1469
  })
1463
1470
  ]
1464
1471
  }), f?.({
@@ -1466,28 +1473,28 @@ var Dt = ({ field: e, extra: t }) => {
1466
1473
  option: e,
1467
1474
  variant: "card"
1468
1475
  })]
1469
- }, e.value + t) : /* @__PURE__ */ w("div", {
1470
- className: W("tg:group/option tg:pointer-events-auto tg:relative tg:flex tg:items-start tg:space-x-2", p && "tg:min-w-0 tg:pr-22"),
1476
+ }, e.value + t) : /* @__PURE__ */ T("div", {
1477
+ className: G("tg:group/option tg:pointer-events-auto tg:relative tg:flex tg:items-start tg:space-x-2", p && "tg:min-w-0 tg:pr-22"),
1471
1478
  children: [
1472
- /* @__PURE__ */ C(Et, {
1479
+ /* @__PURE__ */ w(Dt, {
1473
1480
  value: o,
1474
- id: r,
1481
+ id: n,
1475
1482
  disabled: e.disabled,
1476
1483
  className: "tg:mt-0.5"
1477
1484
  }),
1478
- e.image && /* @__PURE__ */ C("img", {
1485
+ e.image && /* @__PURE__ */ w("img", {
1479
1486
  src: e.image,
1480
1487
  alt: "",
1481
1488
  className: "tg:h-8 tg:w-8 tg:rounded tg:object-cover"
1482
1489
  }),
1483
- /* @__PURE__ */ w("div", {
1484
- className: W("tg:flex tg:flex-col", p && "tg:min-w-0 tg:flex-1 tg:overflow-hidden"),
1485
- children: [/* @__PURE__ */ C(X, {
1486
- htmlFor: r,
1487
- className: W("tg:cursor-pointer tg:font-normal tg:text-sm", p && "tg:block tg:max-w-full tg:truncate"),
1490
+ /* @__PURE__ */ T("div", {
1491
+ className: G("tg:flex tg:flex-col", p && "tg:min-w-0 tg:flex-1 tg:overflow-hidden"),
1492
+ children: [/* @__PURE__ */ w(X, {
1493
+ htmlFor: n,
1494
+ className: G("tg:cursor-pointer tg:font-normal tg:text-sm", p && "tg:block tg:max-w-full tg:truncate"),
1488
1495
  children: i
1489
- }), a && /* @__PURE__ */ C("span", {
1490
- className: W("tg:text-muted-foreground tg:text-xs", p && "tg:block tg:max-w-full tg:truncate"),
1496
+ }), a && /* @__PURE__ */ w("span", {
1497
+ className: G("tg:text-muted-foreground tg:text-xs", p && "tg:block tg:max-w-full tg:truncate"),
1491
1498
  children: a
1492
1499
  })]
1493
1500
  }),
@@ -1498,44 +1505,44 @@ var Dt = ({ field: e, extra: t }) => {
1498
1505
  })
1499
1506
  ]
1500
1507
  }, e.value + t);
1501
- }), E > 0 && /* @__PURE__ */ C("div", {
1508
+ }), ee > 0 && /* @__PURE__ */ w("div", {
1502
1509
  className: "tg:px-2 tg:py-1 tg:text-muted-foreground tg:text-xs",
1503
1510
  children: "…"
1504
1511
  })]
1505
1512
  }),
1506
- l && /* @__PURE__ */ C(J, { children: l }),
1507
- _ && !l && /* @__PURE__ */ C(J, { children: _ }),
1508
- d && !l && !_ && /* @__PURE__ */ C(q, { children: d })
1513
+ l && /* @__PURE__ */ w(J, { children: l }),
1514
+ _ && !l && /* @__PURE__ */ w(J, { children: _ }),
1515
+ d && !l && !_ && /* @__PURE__ */ w(q, { children: d })
1509
1516
  ]
1510
1517
  });
1511
- }, Ot = ({ field: e, extra: t }) => {
1512
- let { id: n, name: i, value: a, placeholder: o } = e, { node: s, setValue: c, error: l, label: u, helperText: d, missingDependencies: f } = t, { options: p, isLoading: m, error: h } = it(s), g = r(), _ = a ? String(a) : "";
1513
- return /* @__PURE__ */ w(K, {
1518
+ }, kt = ({ field: t, extra: n }) => {
1519
+ let { id: r, name: i, value: a, placeholder: o } = t, { node: s, setValue: c, error: l, label: u, helperText: d, missingDependencies: f } = n, { options: p, isLoading: m, error: h } = at(s), g = e(), _ = a ? String(a) : "";
1520
+ return /* @__PURE__ */ T(K, {
1514
1521
  className: "tg:mb-4",
1515
1522
  children: [
1516
- /* @__PURE__ */ w(X, {
1517
- htmlFor: n,
1518
- children: [u || s.data.name, s.data.required && /* @__PURE__ */ C("span", {
1523
+ /* @__PURE__ */ T(X, {
1524
+ htmlFor: r,
1525
+ children: [u || s.data.name, s.data.required && /* @__PURE__ */ w("span", {
1519
1526
  className: "tg:text-red-500",
1520
1527
  children: "*"
1521
1528
  })]
1522
1529
  }),
1523
- /* @__PURE__ */ C(Ye, {
1530
+ /* @__PURE__ */ w(Xe, {
1524
1531
  missing: f,
1525
- children: /* @__PURE__ */ w(ge, {
1532
+ children: /* @__PURE__ */ T(_e, {
1526
1533
  name: i,
1527
1534
  value: _,
1528
1535
  onValueChange: (e) => c(e),
1529
1536
  disabled: m || f.length > 0,
1530
- children: [/* @__PURE__ */ w(ye, {
1531
- id: n,
1537
+ children: [/* @__PURE__ */ T(be, {
1538
+ id: r,
1532
1539
  name: i,
1533
1540
  className: "tg:w-full",
1534
- children: [m && /* @__PURE__ */ C(O, { className: "tg:mr-2 tg:h-4 tg:w-4 tg:animate-spin" }), /* @__PURE__ */ C(ve, { placeholder: o || g("renderer.defaultSelectInput.selectOption") })]
1535
- }), /* @__PURE__ */ C(be, { children: /* @__PURE__ */ C(_e, { children: p.map((e, t) => /* @__PURE__ */ C(Se, {
1541
+ children: [m && /* @__PURE__ */ w(k, { className: "tg:mr-2 tg:h-4 tg:w-4 tg:animate-spin" }), /* @__PURE__ */ w(ye, { placeholder: o || g("renderer.defaultSelectInput.selectOption") })]
1542
+ }), /* @__PURE__ */ w(xe, { children: /* @__PURE__ */ w(ve, { children: p.map((e, t) => /* @__PURE__ */ w(Ce, {
1536
1543
  value: String(e.value),
1537
1544
  disabled: e.disabled,
1538
- children: /* @__PURE__ */ C(nt, {
1545
+ children: /* @__PURE__ */ w(rt, {
1539
1546
  label: g(e.label) || e.value,
1540
1547
  description: g(e.description),
1541
1548
  image: e.image
@@ -1543,74 +1550,74 @@ var Dt = ({ field: e, extra: t }) => {
1543
1550
  }, `${e.value}-${t}`)) }) })]
1544
1551
  })
1545
1552
  }),
1546
- l && /* @__PURE__ */ C(J, { children: l }),
1547
- h && !l && /* @__PURE__ */ C(J, { children: h }),
1548
- d && !l && !h && /* @__PURE__ */ C(q, { children: d })
1553
+ l && /* @__PURE__ */ w(J, { children: l }),
1554
+ h && !l && /* @__PURE__ */ w(J, { children: h }),
1555
+ d && !l && !h && /* @__PURE__ */ w(q, { children: d })
1549
1556
  ]
1550
1557
  });
1551
- }, kt = (e) => null;
1558
+ }, At = (e) => null;
1552
1559
  //#endregion
1553
1560
  //#region src/shared/components/ui/switch.tsx
1554
- function At({ className: e, ...t }) {
1555
- return /* @__PURE__ */ C(U.Root, {
1561
+ function jt({ className: e, ...t }) {
1562
+ return /* @__PURE__ */ w(W.Root, {
1556
1563
  "data-slot": "switch",
1557
- className: W("tg:peer tg:inline-flex tg:h-[1.15rem] tg:w-8 tg:shrink-0 tg:items-center tg:rounded-full tg:border tg:border-transparent tg:shadow-xs tg:outline-none tg:transition-all tg:focus-visible:border-ring tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50 tg:disabled:cursor-not-allowed tg:disabled:opacity-50 tg:data-[state=checked]:bg-primary tg:data-[state=unchecked]:bg-input tg:dark:data-[state=unchecked]:bg-input/80", e),
1564
+ className: G("tg:peer tg:inline-flex tg:h-[1.15rem] tg:w-8 tg:shrink-0 tg:items-center tg:rounded-full tg:border tg:border-transparent tg:shadow-xs tg:outline-none tg:transition-all tg:focus-visible:border-ring tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50 tg:disabled:cursor-not-allowed tg:disabled:opacity-50 tg:data-[state=checked]:bg-primary tg:data-[state=unchecked]:bg-input tg:dark:data-[state=unchecked]:bg-input/80", e),
1558
1565
  ...t,
1559
- children: /* @__PURE__ */ C(U.Thumb, {
1566
+ children: /* @__PURE__ */ w(W.Thumb, {
1560
1567
  "data-slot": "switch-thumb",
1561
- className: W("tg:pointer-events-none tg:block tg:size-4 tg:rounded-full tg:bg-background tg:ring-0 tg:transition-transform tg:data-[state=checked]:translate-x-[calc(100%-2px)] tg:data-[state=unchecked]:translate-x-0 tg:dark:data-[state=checked]:bg-primary-foreground tg:dark:data-[state=unchecked]:bg-foreground")
1568
+ className: G("tg:pointer-events-none tg:block tg:size-4 tg:rounded-full tg:bg-background tg:ring-0 tg:transition-transform tg:data-[state=checked]:translate-x-[calc(100%-2px)] tg:data-[state=unchecked]:translate-x-0 tg:dark:data-[state=checked]:bg-primary-foreground tg:dark:data-[state=unchecked]:bg-foreground")
1562
1569
  })
1563
1570
  });
1564
1571
  }
1565
1572
  //#endregion
1566
1573
  //#region src/renderer/features/TreegeRenderer/web/components/inputs/DefaultSwitchInput.tsx
1567
- var jt = ({ field: e, extra: t }) => {
1574
+ var Mt = ({ field: e, extra: t }) => {
1568
1575
  let { id: n, name: r, value: i } = e, { node: a, setValue: o, error: s, label: c, helperText: l } = t;
1569
- return /* @__PURE__ */ w(K, {
1576
+ return /* @__PURE__ */ T(K, {
1570
1577
  className: "tg:mb-4",
1571
1578
  children: [
1572
- /* @__PURE__ */ w(X, {
1579
+ /* @__PURE__ */ T(X, {
1573
1580
  htmlFor: n,
1574
- children: [c || a.data.name, a.data.required && /* @__PURE__ */ C("span", {
1581
+ children: [c || a.data.name, a.data.required && /* @__PURE__ */ w("span", {
1575
1582
  className: "tg:text-red-500",
1576
1583
  children: "*"
1577
1584
  })]
1578
1585
  }),
1579
- /* @__PURE__ */ C(At, {
1586
+ /* @__PURE__ */ w(jt, {
1580
1587
  id: n,
1581
1588
  name: r,
1582
1589
  checked: i,
1583
1590
  onCheckedChange: o
1584
1591
  }),
1585
- l && !s && /* @__PURE__ */ C(q, { children: l }),
1586
- s && /* @__PURE__ */ C(J, { children: s })
1592
+ l && !s && /* @__PURE__ */ w(q, { children: l }),
1593
+ s && /* @__PURE__ */ w(J, { children: s })
1587
1594
  ]
1588
1595
  });
1589
1596
  };
1590
1597
  //#endregion
1591
1598
  //#region src/shared/components/ui/textarea.tsx
1592
- function Mt({ className: e, ...t }) {
1593
- return /* @__PURE__ */ C("textarea", {
1599
+ function Nt({ className: e, ...t }) {
1600
+ return /* @__PURE__ */ w("textarea", {
1594
1601
  "data-slot": "textarea",
1595
- className: W("tg:field-sizing-content tg:flex tg:min-h-16 tg:w-full tg:rounded-md tg:border tg:border-input tg:bg-transparent tg:px-3 tg:py-2 tg:text-base tg:shadow-xs tg:outline-none tg:transition-[color,box-shadow] tg:placeholder:text-muted-foreground tg:focus-visible:border-ring tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50 tg:disabled:cursor-not-allowed tg:disabled:opacity-50 tg:aria-invalid:border-destructive tg:aria-invalid:ring-destructive/20 tg:md:text-sm tg:dark:bg-input/30 tg:dark:aria-invalid:ring-destructive/40", e),
1602
+ className: G("tg:field-sizing-content tg:flex tg:min-h-16 tg:w-full tg:rounded-md tg:border tg:border-input tg:bg-transparent tg:px-3 tg:py-2 tg:text-base tg:shadow-xs tg:outline-none tg:transition-[color,box-shadow] tg:placeholder:text-muted-foreground tg:focus-visible:border-ring tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50 tg:disabled:cursor-not-allowed tg:disabled:opacity-50 tg:aria-invalid:border-destructive tg:aria-invalid:ring-destructive/20 tg:md:text-sm tg:dark:bg-input/30 tg:dark:aria-invalid:ring-destructive/40", e),
1596
1603
  ...t
1597
1604
  });
1598
1605
  }
1599
1606
  //#endregion
1600
1607
  //#region src/renderer/features/TreegeRenderer/web/components/inputs/DefaultTextAreaInput.tsx
1601
- var Nt = ({ field: e, extra: t }) => {
1608
+ var Pt = ({ field: e, extra: t }) => {
1602
1609
  let { id: n, name: r, value: i, placeholder: a } = e, { node: o, setValue: s, error: c, label: l, helperText: u } = t;
1603
- return /* @__PURE__ */ w(K, {
1610
+ return /* @__PURE__ */ T(K, {
1604
1611
  className: "tg:mb-4",
1605
1612
  children: [
1606
- /* @__PURE__ */ w(X, {
1613
+ /* @__PURE__ */ T(X, {
1607
1614
  htmlFor: n,
1608
- children: [l || o.data.name, o.data.required && /* @__PURE__ */ C("span", {
1615
+ children: [l || o.data.name, o.data.required && /* @__PURE__ */ w("span", {
1609
1616
  className: "tg:text-red-500",
1610
1617
  children: "*"
1611
1618
  })]
1612
1619
  }),
1613
- /* @__PURE__ */ C(Mt, {
1620
+ /* @__PURE__ */ w(Nt, {
1614
1621
  id: n,
1615
1622
  name: r,
1616
1623
  value: i ?? "",
@@ -1619,23 +1626,23 @@ var Nt = ({ field: e, extra: t }) => {
1619
1626
  className: "tg:w-full tg:rounded-md tg:border tg:px-3 tg:py-2",
1620
1627
  rows: 4
1621
1628
  }),
1622
- c && /* @__PURE__ */ C(J, { children: c }),
1623
- u && !c && /* @__PURE__ */ C(q, { children: u })
1629
+ c && /* @__PURE__ */ w(J, { children: c }),
1630
+ u && !c && /* @__PURE__ */ w(q, { children: u })
1624
1631
  ]
1625
1632
  });
1626
- }, Pt = ({ field: e, extra: t }) => {
1633
+ }, Ft = ({ field: e, extra: t }) => {
1627
1634
  let { id: n, name: r, value: i, placeholder: a } = e, { node: o, setValue: s, error: c, label: l, helperText: u } = t;
1628
- return /* @__PURE__ */ w(K, {
1635
+ return /* @__PURE__ */ T(K, {
1629
1636
  className: "tg:mb-4",
1630
1637
  children: [
1631
- /* @__PURE__ */ w(X, {
1638
+ /* @__PURE__ */ T(X, {
1632
1639
  htmlFor: n,
1633
- children: [l || o.data.name, o.data.required && /* @__PURE__ */ C("span", {
1640
+ children: [l || o.data.name, o.data.required && /* @__PURE__ */ w("span", {
1634
1641
  className: "tg:text-red-500",
1635
1642
  children: "*"
1636
1643
  })]
1637
1644
  }),
1638
- /* @__PURE__ */ C(Y, {
1645
+ /* @__PURE__ */ w(Y, {
1639
1646
  type: "text",
1640
1647
  id: n,
1641
1648
  name: r,
@@ -1643,23 +1650,23 @@ var Nt = ({ field: e, extra: t }) => {
1643
1650
  onChange: (e) => s(e.target.value),
1644
1651
  placeholder: a
1645
1652
  }),
1646
- c && /* @__PURE__ */ C(J, { children: c }),
1647
- u && !c && /* @__PURE__ */ C(q, { children: u })
1653
+ c && /* @__PURE__ */ w(J, { children: c }),
1654
+ u && !c && /* @__PURE__ */ w(q, { children: u })
1648
1655
  ]
1649
1656
  });
1650
- }, Ft = ({ field: e, extra: t }) => {
1657
+ }, It = ({ field: e, extra: t }) => {
1651
1658
  let { id: n, name: r, value: i, placeholder: a } = e, { node: o, setValue: s, error: c, label: l, helperText: u } = t;
1652
- return /* @__PURE__ */ w(K, {
1659
+ return /* @__PURE__ */ T(K, {
1653
1660
  className: "tg:mb-4",
1654
1661
  children: [
1655
- /* @__PURE__ */ w(X, {
1662
+ /* @__PURE__ */ T(X, {
1656
1663
  htmlFor: n,
1657
- children: [l || o.data.name, o.data.required && /* @__PURE__ */ C("span", {
1664
+ children: [l || o.data.name, o.data.required && /* @__PURE__ */ w("span", {
1658
1665
  className: "tg:text-red-500",
1659
1666
  children: "*"
1660
1667
  })]
1661
1668
  }),
1662
- /* @__PURE__ */ C(Y, {
1669
+ /* @__PURE__ */ w(Y, {
1663
1670
  type: "time",
1664
1671
  id: n,
1665
1672
  name: r,
@@ -1668,30 +1675,30 @@ var Nt = ({ field: e, extra: t }) => {
1668
1675
  placeholder: a,
1669
1676
  className: "tg:bg-background tg:[color-scheme:light] tg:dark:[color-scheme:dark]"
1670
1677
  }),
1671
- c && /* @__PURE__ */ C(J, { children: c }),
1672
- u && !c && /* @__PURE__ */ C(q, { children: u })
1678
+ c && /* @__PURE__ */ w(J, { children: c }),
1679
+ u && !c && /* @__PURE__ */ w(q, { children: u })
1673
1680
  ]
1674
1681
  });
1675
- }, It = ({ field: e, extra: t }) => {
1676
- let { id: n, name: i, value: a } = e, { node: o, setValue: s, error: c, label: l, helperText: u } = t, d = r(), f = Array.isArray(a) ? a : [], p = f[0] || "", m = f[1] || "", h = (e) => {
1682
+ }, Lt = ({ field: t, extra: n }) => {
1683
+ let { id: r, name: i, value: a } = t, { node: o, setValue: s, error: c, label: l, helperText: u } = n, d = e(), f = Array.isArray(a) ? a : [], p = f[0] || "", m = f[1] || "", h = (e) => {
1677
1684
  s([e, m]);
1678
1685
  }, g = (e) => {
1679
1686
  s([p, e]);
1680
1687
  };
1681
- return /* @__PURE__ */ w(K, {
1688
+ return /* @__PURE__ */ T(K, {
1682
1689
  className: "tg:mb-4",
1683
1690
  children: [
1684
- /* @__PURE__ */ w(X, {
1685
- htmlFor: `${n}-start`,
1686
- children: [l || o.data.name, o.data.required && /* @__PURE__ */ C("span", {
1691
+ /* @__PURE__ */ T(X, {
1692
+ htmlFor: `${r}-start`,
1693
+ children: [l || o.data.name, o.data.required && /* @__PURE__ */ w("span", {
1687
1694
  className: "tg:text-red-500",
1688
1695
  children: "*"
1689
1696
  })]
1690
1697
  }),
1691
- /* @__PURE__ */ w("div", {
1698
+ /* @__PURE__ */ T("div", {
1692
1699
  className: "tg:flex tg:gap-2",
1693
- children: [/* @__PURE__ */ C(Y, {
1694
- id: `${n}-start`,
1700
+ children: [/* @__PURE__ */ w(Y, {
1701
+ id: `${r}-start`,
1695
1702
  name: `${i}-start`,
1696
1703
  "aria-label": `${l || o.data.name} - ${d("renderer.defaultInputs.startTime")}`,
1697
1704
  "aria-invalid": !!c,
@@ -1701,8 +1708,8 @@ var Nt = ({ field: e, extra: t }) => {
1701
1708
  onChange: (e) => h(e.target.value),
1702
1709
  placeholder: d("renderer.defaultInputs.startTime"),
1703
1710
  className: "tg:flex-1 tg:bg-background tg:[color-scheme:light] tg:dark:[color-scheme:dark]"
1704
- }), /* @__PURE__ */ C(Y, {
1705
- id: `${n}-end`,
1711
+ }), /* @__PURE__ */ w(Y, {
1712
+ id: `${r}-end`,
1706
1713
  name: `${i}-end`,
1707
1714
  "aria-label": `${l || o.data.name} - ${d("renderer.defaultInputs.endTime")}`,
1708
1715
  "aria-invalid": !!c,
@@ -1714,29 +1721,29 @@ var Nt = ({ field: e, extra: t }) => {
1714
1721
  className: "tg:flex-1 tg:bg-background tg:[color-scheme:light] tg:dark:[color-scheme:dark]"
1715
1722
  })]
1716
1723
  }),
1717
- c && /* @__PURE__ */ C(J, { children: c }),
1718
- u && !c && /* @__PURE__ */ C(q, { children: u })
1724
+ c && /* @__PURE__ */ w(J, { children: c }),
1725
+ u && !c && /* @__PURE__ */ w(q, { children: u })
1719
1726
  ]
1720
1727
  });
1721
- }, Lt = {
1722
- address: qe,
1723
- autocomplete: at,
1724
- checkbox: ot,
1725
- date: lt,
1726
- daterange: ut,
1727
- file: dt,
1728
- hidden: ft,
1729
- http: gt,
1730
- number: _t,
1731
- password: vt,
1732
- radio: Dt,
1733
- select: Ot,
1734
- submit: kt,
1735
- switch: jt,
1736
- text: Pt,
1737
- textarea: Nt,
1738
- time: Ft,
1739
- timerange: It
1728
+ }, Rt = {
1729
+ address: Je,
1730
+ autocomplete: ot,
1731
+ checkbox: st,
1732
+ date: ut,
1733
+ daterange: dt,
1734
+ file: ft,
1735
+ hidden: pt,
1736
+ http: _t,
1737
+ number: vt,
1738
+ password: yt,
1739
+ radio: Ot,
1740
+ select: kt,
1741
+ submit: At,
1742
+ switch: Mt,
1743
+ text: Ft,
1744
+ textarea: Pt,
1745
+ time: It,
1746
+ timerange: Lt
1740
1747
  };
1741
1748
  //#endregion
1742
- export { Z as $, Pe as A, Oe as B, ze as C, We as D, Be as E, je as F, xe as G, be as H, $ as I, ve as J, Ce as K, De as L, Ie as M, Fe as N, Ve as O, Le as P, Q, ke as R, qe as S, Ue as T, _e as U, ge as V, Se as W, he as X, pe as Y, me as Z, dt as _, Nt as a, G as at, ot as b, At as c, Tt as d, X as et, Et as f, ft as g, gt as h, Pt as i, de as it, Re as j, Ae as k, Ot as l, _t as m, It as n, q as nt, Mt as o, W as ot, vt as p, ye as q, Ft as r, K as rt, jt as s, Lt as t, Y as tt, Dt as u, ut as v, He as w, at as x, lt as y, Ee as z };
1749
+ export { Z as $, Fe as A, ke as B, Be as C, Ge as D, Ve as E, Me as F, Se as G, xe as H, $ as I, ye as J, we as K, Oe as L, Le as M, Ie as N, He as O, Re as P, Q, Ae as R, Je as S, We as T, ve as U, _e as V, Ce as W, ge as X, me as Y, he as Z, ft as _, Pt as a, de as at, st as b, jt as c, Et as d, X as et, Dt as f, pt as g, _t as h, Ft as i, fe as it, ze as j, je as k, kt as l, vt as m, Lt as n, q as nt, Nt as o, G as ot, yt as p, be as q, It as r, K as rt, Mt as s, Rt as t, Y as tt, Ot as u, dt as v, Ue as w, ot as x, ut as y, De as z };