treege 3.0.0-beta.69 → 3.0.0-beta.70

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