treege 3.0.0-beta.72 → 3.0.0-beta.73

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