treege 3.0.0-beta.66 → 3.0.0-beta.68

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