@oomol-lab/open-flow 0.1.0-beta.23 → 0.1.0-beta.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{createResourceDialog-PKbMMpEk.js → createResourceDialog-BwI2JmPE.js} +7 -7
- package/dist/browser/flow-authoring.js +249 -250
- package/dist/browser/flow-change.d.ts +16 -7
- package/dist/browser/flow-change.js +824 -804
- package/dist/browser/{flowChanges-BUlMz4iC.js → flowChanges-BqPtWEI9.js} +2706 -2906
- package/dist/browser/{flowWorkspace-DLArN17T.js → flowWorkspace-CpMGzmfz.js} +37249 -35916
- package/dist/browser/{inputValues-CcGVt51C.js → inputValues-CeeJw_G8.js} +1 -1
- package/dist/browser/licenses.md +24 -0
- package/dist/browser/{lite-Cy6aeiL6.js → lite-BuKZ8joP.js} +50 -43
- package/dist/browser/{input-group-C2frNYAx.js → switch-CyZ96-UF.js} +1519 -612
- package/dist/browser/theme.css +30 -4
- package/dist/browser/ui-input.d.ts +3 -1
- package/dist/browser/ui.css +1 -1
- package/dist/browser/ui.js +10 -8
- package/dist/browser/warmCodeTheme-DVv4-rDO.js +35 -0
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +753 -714
- package/dist/browser/{workbenchSelect-CPRUXKbf.js → workbenchSelect-BUu7CjUA.js} +504 -490
- package/dist/common/control-api-conformance.js +18 -18
- package/dist/common/control-api.d.ts +43 -15
- package/dist/common/control-api.js +1803 -1755
- package/dist/common/control-requests.js +2 -7
- package/dist/common/engine-contract.d.ts +2 -2
- package/dist/common/flow-encoding.js +587 -589
- package/dist/common/flow-graph.d.ts +31 -1
- package/dist/common/flow-schema.d.ts +11 -1
- package/dist/common/flow-semantics.d.ts +2 -1
- package/dist/common/flow-semantics.js +1542 -1457
- package/dist/common/mcp.d.ts +1 -0
- package/dist/common/mcp.js +308 -260
- package/dist/common/provider-triggers.js +934 -931
- package/dist/common/run-lifecycle.d.ts +1 -1
- package/dist/common/run-lifecycle.js +5 -5
- package/dist/common/runtime-contract.d.ts +2 -0
- package/dist/common/runtime-contract.js +96 -32
- package/dist/common/scheduler.d.ts +39 -21
- package/dist/common/scheduler.js +2358 -2339
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { $ as e,
|
|
2
|
-
import { Fragment as
|
|
3
|
-
import * as
|
|
4
|
-
import { useMemo as
|
|
1
|
+
import { $ as e, $t as t, Bn as n, Et as r, Gn as i, Hn as a, J as o, K as s, L as c, M as l, Ot as u, Pn as d, Q as f, U as p, Un as m, V as h, W as g, X as _, Y as ee, Z as te, Zn as ne, _n as re, a as ie, at as ae, c as oe, en as se, er as ce, et as le, fn as ue, ft as de, hn as fe, i as pe, it as me, k as he, l as ge, ln as _e, mt as ve, n as ye, o as be, or as xe, rt as Se, sn as Ce, t as v, tt as we, v as Te, xn as Ee, xt as De, z as Oe } from "./lite-BuKZ8joP.js";
|
|
2
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
3
|
+
import * as S from "react";
|
|
4
|
+
import { useMemo as ke } from "react";
|
|
5
5
|
//#region ../../node_modules/.bun/lucide-react@0.468.0+f4eacebf2041cd4f/node_modules/lucide-react/dist/esm/icons/loader-circle.js
|
|
6
|
-
var
|
|
6
|
+
var Ae = Ce("LoaderCircle", [["path", {
|
|
7
7
|
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
8
8
|
key: "13zald"
|
|
9
|
-
}]]),
|
|
9
|
+
}]]), je = Ce("X", [["path", {
|
|
10
10
|
d: "M18 6 6 18",
|
|
11
11
|
key: "1bl5f8"
|
|
12
12
|
}], ["path", {
|
|
@@ -15,26 +15,26 @@ var je = pe("LoaderCircle", [["path", {
|
|
|
15
15
|
}]]);
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/ui/browser/label.tsx
|
|
18
|
-
function
|
|
19
|
-
return /* @__PURE__ */
|
|
18
|
+
function Me({ className: e, ...t }) {
|
|
19
|
+
return /* @__PURE__ */ b("label", {
|
|
20
20
|
"data-slot": "label",
|
|
21
|
-
className:
|
|
21
|
+
className: a("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
22
22
|
...t
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/util.js
|
|
27
|
-
function
|
|
27
|
+
function Ne(e) {
|
|
28
28
|
let t = Object.values(e).filter((e) => typeof e == "number");
|
|
29
29
|
return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Pe(e, t = "|") {
|
|
32
32
|
return e.map((e) => $e(e)).join(t);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Fe(e, t) {
|
|
35
35
|
return typeof t == "bigint" ? t.toString() : t;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Ie(e) {
|
|
38
38
|
return { get value() {
|
|
39
39
|
{
|
|
40
40
|
let t = e();
|
|
@@ -42,23 +42,23 @@ function Le(e) {
|
|
|
42
42
|
}
|
|
43
43
|
} };
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Le(e) {
|
|
46
46
|
return e == null;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Re(e) {
|
|
49
49
|
let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
|
|
50
50
|
return e.slice(t, n);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ze(e, t) {
|
|
53
53
|
let n = e / t, r = Math.round(n), i = 4 * 2 ** -52 * Math.max(Math.abs(n), 1);
|
|
54
54
|
return Math.abs(n - r) < i ? 0 : n - r;
|
|
55
55
|
}
|
|
56
|
-
var
|
|
57
|
-
function
|
|
56
|
+
var Be = /* @__PURE__*/ Symbol("evaluating");
|
|
57
|
+
function Ve(e, t, n) {
|
|
58
58
|
let r;
|
|
59
59
|
Object.defineProperty(e, t, {
|
|
60
60
|
get() {
|
|
61
|
-
if (r !==
|
|
61
|
+
if (r !== Be) return r === void 0 && (r = Be, r = n()), r;
|
|
62
62
|
},
|
|
63
63
|
set(n) {
|
|
64
64
|
Object.defineProperty(e, t, { value: n });
|
|
@@ -66,7 +66,7 @@ function He(e, t, n) {
|
|
|
66
66
|
configurable: !0
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function C(e, t, n) {
|
|
70
70
|
Object.defineProperty(e, t, {
|
|
71
71
|
value: n,
|
|
72
72
|
writable: !0,
|
|
@@ -74,7 +74,7 @@ function S(e, t, n) {
|
|
|
74
74
|
configurable: !0
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function He(...e) {
|
|
78
78
|
let t = {};
|
|
79
79
|
for (let n of e) {
|
|
80
80
|
let e = Object.getOwnPropertyDescriptors(n);
|
|
@@ -82,17 +82,17 @@ function Ue(...e) {
|
|
|
82
82
|
}
|
|
83
83
|
return Object.defineProperties({}, t);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Ue(e) {
|
|
86
86
|
return JSON.stringify(e);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function We(e) {
|
|
89
89
|
return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
90
90
|
}
|
|
91
|
-
var
|
|
92
|
-
function
|
|
91
|
+
var Ge = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
|
|
92
|
+
function Ke(e) {
|
|
93
93
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
94
94
|
}
|
|
95
|
-
var
|
|
95
|
+
var qe = /* @__PURE__*/ Ie(() => {
|
|
96
96
|
if (O.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
|
|
97
97
|
try {
|
|
98
98
|
return Function(""), !0;
|
|
@@ -100,25 +100,25 @@ var Je = /* @__PURE__*/ Le(() => {
|
|
|
100
100
|
return !1;
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
|
-
function
|
|
104
|
-
if (
|
|
103
|
+
function Je(e) {
|
|
104
|
+
if (Ke(e) === !1) return !1;
|
|
105
105
|
let t = e.constructor;
|
|
106
106
|
if (t === void 0 || typeof t != "function") return !0;
|
|
107
107
|
let n = t.prototype;
|
|
108
|
-
return
|
|
108
|
+
return Ke(n) !== !1 && Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") !== !1;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
110
|
+
function Ye(e) {
|
|
111
|
+
return Je(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
|
|
112
112
|
}
|
|
113
|
-
var
|
|
113
|
+
var Xe = /* @__PURE__*/ new Set([
|
|
114
114
|
"string",
|
|
115
115
|
"number",
|
|
116
116
|
"symbol"
|
|
117
117
|
]);
|
|
118
|
-
function
|
|
118
|
+
function Ze(e) {
|
|
119
119
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Qe(e, t, n) {
|
|
122
122
|
let r = new e._zod.constr(t ?? e._zod.def);
|
|
123
123
|
return (!t || n?.parent) && (r._zod.parent = e), r;
|
|
124
124
|
}
|
|
@@ -151,14 +151,14 @@ var tt = {
|
|
|
151
151
|
function nt(e, t) {
|
|
152
152
|
let n = e._zod.def, r = n.checks;
|
|
153
153
|
if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
|
|
154
|
-
return
|
|
154
|
+
return Qe(e, He(e._zod.def, {
|
|
155
155
|
get shape() {
|
|
156
156
|
let e = {};
|
|
157
157
|
for (let r of Reflect.ownKeys(t)) {
|
|
158
158
|
if (!Object.prototype.hasOwnProperty.call(n.shape, r)) throw Error(`Unrecognized key: "${String(r)}"`);
|
|
159
|
-
t[r] &&
|
|
159
|
+
t[r] && C(e, r, n.shape[r]);
|
|
160
160
|
}
|
|
161
|
-
return
|
|
161
|
+
return C(this, "shape", e), e;
|
|
162
162
|
},
|
|
163
163
|
checks: []
|
|
164
164
|
}));
|
|
@@ -166,53 +166,53 @@ function nt(e, t) {
|
|
|
166
166
|
function rt(e, t) {
|
|
167
167
|
let n = e._zod.def, r = n.checks;
|
|
168
168
|
if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
|
|
169
|
-
return
|
|
169
|
+
return Qe(e, He(e._zod.def, {
|
|
170
170
|
get shape() {
|
|
171
171
|
let r = { ...e._zod.def.shape };
|
|
172
172
|
for (let e of Reflect.ownKeys(t)) {
|
|
173
173
|
if (!Object.prototype.hasOwnProperty.call(n.shape, e)) throw Error(`Unrecognized key: "${String(e)}"`);
|
|
174
174
|
t[e] && delete r[e];
|
|
175
175
|
}
|
|
176
|
-
return
|
|
176
|
+
return C(this, "shape", r), r;
|
|
177
177
|
},
|
|
178
178
|
checks: []
|
|
179
179
|
}));
|
|
180
180
|
}
|
|
181
181
|
function it(e, t) {
|
|
182
|
-
if (!
|
|
182
|
+
if (!Je(t)) throw Error("Invalid input to extend: expected a plain object");
|
|
183
183
|
let n = e._zod.def.checks;
|
|
184
184
|
if (n && n.length > 0) {
|
|
185
185
|
let n = e._zod.def.shape;
|
|
186
186
|
for (let e of Reflect.ownKeys(t)) if (Object.getOwnPropertyDescriptor(n, e) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
187
187
|
}
|
|
188
|
-
return
|
|
188
|
+
return Qe(e, He(e._zod.def, { get shape() {
|
|
189
189
|
let n = {
|
|
190
190
|
...e._zod.def.shape,
|
|
191
191
|
...t
|
|
192
192
|
};
|
|
193
|
-
return
|
|
193
|
+
return C(this, "shape", n), n;
|
|
194
194
|
} }));
|
|
195
195
|
}
|
|
196
196
|
function at(e, t) {
|
|
197
|
-
if (!
|
|
198
|
-
return
|
|
197
|
+
if (!Je(t)) throw Error("Invalid input to safeExtend: expected a plain object");
|
|
198
|
+
return Qe(e, He(e._zod.def, { get shape() {
|
|
199
199
|
let n = {
|
|
200
200
|
...e._zod.def.shape,
|
|
201
201
|
...t
|
|
202
202
|
};
|
|
203
|
-
return
|
|
203
|
+
return C(this, "shape", n), n;
|
|
204
204
|
} }));
|
|
205
205
|
}
|
|
206
206
|
function ot(e, t) {
|
|
207
207
|
if (!t?._zod?.def) throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");
|
|
208
208
|
if (e._zod.def.checks?.length) throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
209
|
-
return
|
|
209
|
+
return Qe(e, He(e._zod.def, {
|
|
210
210
|
get shape() {
|
|
211
211
|
let n = {
|
|
212
212
|
...e._zod.def.shape,
|
|
213
213
|
...t._zod.def.shape
|
|
214
214
|
};
|
|
215
|
-
return
|
|
215
|
+
return C(this, "shape", n), n;
|
|
216
216
|
},
|
|
217
217
|
get catchall() {
|
|
218
218
|
return t._zod.def.catchall;
|
|
@@ -223,7 +223,7 @@ function ot(e, t) {
|
|
|
223
223
|
function st(e, t, n, r = "partial") {
|
|
224
224
|
let i = t._zod.def.checks;
|
|
225
225
|
if (i && i.length > 0) throw Error(`.${r}() cannot be used on object schemas containing refinements`);
|
|
226
|
-
return
|
|
226
|
+
return Qe(t, He(t._zod.def, {
|
|
227
227
|
get shape() {
|
|
228
228
|
let r = t._zod.def.shape, i = { ...r };
|
|
229
229
|
if (n) for (let t of Reflect.ownKeys(n)) {
|
|
@@ -237,13 +237,13 @@ function st(e, t, n, r = "partial") {
|
|
|
237
237
|
type: "optional",
|
|
238
238
|
innerType: r[t]
|
|
239
239
|
}) : r[t];
|
|
240
|
-
return
|
|
240
|
+
return C(this, "shape", i), i;
|
|
241
241
|
},
|
|
242
242
|
checks: []
|
|
243
243
|
}));
|
|
244
244
|
}
|
|
245
245
|
function ct(e, t, n) {
|
|
246
|
-
return
|
|
246
|
+
return Qe(t, He(t._zod.def, { get shape() {
|
|
247
247
|
let r = t._zod.def.shape, i = { ...r };
|
|
248
248
|
if (n) for (let t of Reflect.ownKeys(n)) {
|
|
249
249
|
if (!Object.prototype.hasOwnProperty.call(i, t)) throw Error(`Unrecognized key: "${String(t)}"`);
|
|
@@ -256,7 +256,7 @@ function ct(e, t, n) {
|
|
|
256
256
|
type: "nonoptional",
|
|
257
257
|
innerType: r[t]
|
|
258
258
|
});
|
|
259
|
-
return
|
|
259
|
+
return C(this, "shape", i), i;
|
|
260
260
|
} }));
|
|
261
261
|
}
|
|
262
262
|
function lt(e, t = 0) {
|
|
@@ -269,24 +269,24 @@ function ut(e, t = 0) {
|
|
|
269
269
|
for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
|
|
270
270
|
return !1;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function dt(e, t) {
|
|
273
273
|
return t.map((t) => {
|
|
274
274
|
var n;
|
|
275
275
|
return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function ft(e) {
|
|
279
279
|
return typeof e == "string" ? e : e?.message;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function pt(e, t, n) {
|
|
282
282
|
var r;
|
|
283
283
|
for (let i = t; i < e.length; i++) (r = e[i]).schema ?? (r.schema = n);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function T(e, t, n) {
|
|
286
286
|
var r;
|
|
287
287
|
let i = e.inst?._zod?.traits;
|
|
288
288
|
i?.has("$ZodType") && (i.has("$ZodCheck") ? (r = e).schema ?? (r.schema = e.inst) : e.schema = e.inst);
|
|
289
|
-
let a = e.schema === e.inst ? void 0 : e.schema?._zod.def?.error, o = e.message ? e.message :
|
|
289
|
+
let a = e.schema === e.inst ? void 0 : e.schema?._zod.def?.error, o = e.message ? e.message : ft(e.inst?._zod.def?.error?.(e)) ?? ft(a?.(e)) ?? ft(t?.error?.(e)) ?? ft(n.customError?.(e)) ?? ft(n.localeError?.(e)) ?? "Invalid input", { inst: s, schema: c, continue: l, input: u, ...d } = e;
|
|
290
290
|
return d.path ??= [], d.message = o, t?.reportInput && (d.input = u), d;
|
|
291
291
|
}
|
|
292
292
|
var mt = /[\uD800-\uDBFF]/;
|
|
@@ -508,7 +508,7 @@ function k(e) {
|
|
|
508
508
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/errors.js
|
|
509
509
|
function It() {
|
|
510
510
|
let e = this._zod;
|
|
511
|
-
return e.message ??= JSON.stringify(e.def,
|
|
511
|
+
return e.message ??= JSON.stringify(e.def, Fe, 2), e.message;
|
|
512
512
|
}
|
|
513
513
|
function Lt(e) {
|
|
514
514
|
this._zod.message = e;
|
|
@@ -612,8 +612,8 @@ var Yt = (e) => {
|
|
|
612
612
|
}, o);
|
|
613
613
|
if (s instanceof Promise) throw new Pt();
|
|
614
614
|
if (s.issues.length) {
|
|
615
|
-
let n = new ((a?.Err) ?? e)(s.issues.map((e) =>
|
|
616
|
-
throw
|
|
615
|
+
let n = new ((a?.Err) ?? e)(s.issues.map((e) => T(e, o, k())));
|
|
616
|
+
throw Ge(n, a?.callee ?? t), n;
|
|
617
617
|
}
|
|
618
618
|
return s.value;
|
|
619
619
|
};
|
|
@@ -628,8 +628,8 @@ var Yt = (e) => {
|
|
|
628
628
|
issues: []
|
|
629
629
|
}, o);
|
|
630
630
|
if (s instanceof Promise && (s = await s), s.issues.length) {
|
|
631
|
-
let n = new ((a?.Err) ?? e)(s.issues.map((e) =>
|
|
632
|
-
throw
|
|
631
|
+
let n = new ((a?.Err) ?? e)(s.issues.map((e) => T(e, o, k())));
|
|
632
|
+
throw Ge(n, a?.callee ?? t), n;
|
|
633
633
|
}
|
|
634
634
|
return s.value;
|
|
635
635
|
};
|
|
@@ -645,7 +645,7 @@ var Yt = (e) => {
|
|
|
645
645
|
if (a instanceof Promise) throw new Pt();
|
|
646
646
|
return a.issues.length ? {
|
|
647
647
|
success: !1,
|
|
648
|
-
error: new (e ?? Ut)(a.issues.map((e) =>
|
|
648
|
+
error: new (e ?? Ut)(a.issues.map((e) => T(e, i, k())))
|
|
649
649
|
} : {
|
|
650
650
|
success: !0,
|
|
651
651
|
data: a.value
|
|
@@ -660,7 +660,7 @@ var Yt = (e) => {
|
|
|
660
660
|
}, i);
|
|
661
661
|
return a instanceof Promise && (a = await a), a.issues.length ? {
|
|
662
662
|
success: !1,
|
|
663
|
-
error: new e(a.issues.map((e) =>
|
|
663
|
+
error: new e(a.issues.map((e) => T(e, i, k())))
|
|
664
664
|
} : {
|
|
665
665
|
success: !0,
|
|
666
666
|
data: a.value
|
|
@@ -738,7 +738,7 @@ var Ln = (e) => {
|
|
|
738
738
|
e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
739
739
|
}), Wn = (e) => {
|
|
740
740
|
let t = e.value;
|
|
741
|
-
return !
|
|
741
|
+
return !Le(t) && t.length !== void 0;
|
|
742
742
|
}, Gn = {
|
|
743
743
|
number: "number",
|
|
744
744
|
bigint: "bigint",
|
|
@@ -783,7 +783,7 @@ var Ln = (e) => {
|
|
|
783
783
|
(n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
|
|
784
784
|
}), e._zod.check = (n) => {
|
|
785
785
|
if (typeof n.value != typeof t.value) throw Error("Cannot mix number and bigint in multiple_of check.");
|
|
786
|
-
(typeof n.value == "bigint" ? t.value !== BigInt(0) && n.value % t.value === BigInt(0) :
|
|
786
|
+
(typeof n.value == "bigint" ? t.value !== BigInt(0) && n.value % t.value === BigInt(0) : ze(n.value, t.value) === 0) || n.issues.push({
|
|
787
787
|
origin: typeof n.value,
|
|
788
788
|
code: "not_multiple_of",
|
|
789
789
|
divisor: t.value,
|
|
@@ -950,7 +950,7 @@ var Ln = (e) => {
|
|
|
950
950
|
t.pattern ??= Un, $n.init(e, t);
|
|
951
951
|
}), rr = /*@__PURE__*/ D("$ZodCheckIncludes", (e, t) => {
|
|
952
952
|
A.init(e, t);
|
|
953
|
-
let n =
|
|
953
|
+
let n = Ze(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position},}${n}` : n);
|
|
954
954
|
t.pattern = r, e._zod.onattach.push((e) => {
|
|
955
955
|
let t = e._zod.bag;
|
|
956
956
|
t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(r);
|
|
@@ -967,7 +967,7 @@ var Ln = (e) => {
|
|
|
967
967
|
};
|
|
968
968
|
}), ir = /*@__PURE__*/ D("$ZodCheckStartsWith", (e, t) => {
|
|
969
969
|
A.init(e, t);
|
|
970
|
-
let n = RegExp(`^${
|
|
970
|
+
let n = RegExp(`^${Ze(t.prefix)}.*`);
|
|
971
971
|
t.pattern ??= n, e._zod.onattach.push((e) => {
|
|
972
972
|
let t = e._zod.bag;
|
|
973
973
|
t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
|
|
@@ -984,7 +984,7 @@ var Ln = (e) => {
|
|
|
984
984
|
};
|
|
985
985
|
}), ar = /*@__PURE__*/ D("$ZodCheckEndsWith", (e, t) => {
|
|
986
986
|
A.init(e, t);
|
|
987
|
-
let n = RegExp(`.*${
|
|
987
|
+
let n = RegExp(`.*${Ze(t.suffix)}$`);
|
|
988
988
|
t.pattern ??= n, e._zod.onattach.push((e) => {
|
|
989
989
|
let t = e._zod.bag;
|
|
990
990
|
t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
|
|
@@ -1045,11 +1045,11 @@ var Ln = (e) => {
|
|
|
1045
1045
|
let n = t.issues.length, s = o._zod.check(t);
|
|
1046
1046
|
if (s instanceof Promise && r?.async === !1) throw new Pt();
|
|
1047
1047
|
if (a || s instanceof Promise) a = (a ?? Promise.resolve()).then(async () => {
|
|
1048
|
-
await s, t.issues.length !== n && (
|
|
1048
|
+
await s, t.issues.length !== n && (pt(t.issues, n, e), i ||= lt(t, n));
|
|
1049
1049
|
});
|
|
1050
1050
|
else {
|
|
1051
1051
|
if (t.issues.length === n) continue;
|
|
1052
|
-
|
|
1052
|
+
pt(t.issues, n, e), i ||= lt(t, n);
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
1055
|
return a ? a.then(() => t) : t;
|
|
@@ -1389,7 +1389,7 @@ var Gr = /*@__PURE__*/ D("$ZodJWT", (e, t) => {
|
|
|
1389
1389
|
}), t);
|
|
1390
1390
|
});
|
|
1391
1391
|
function Qr(e, t, n) {
|
|
1392
|
-
e.issues.length && t.issues.push(...
|
|
1392
|
+
e.issues.length && t.issues.push(...dt(n, e.issues)), t.value[n] = e.value;
|
|
1393
1393
|
}
|
|
1394
1394
|
var $r = /*@__PURE__*/ D("$ZodArray", (e, t) => {
|
|
1395
1395
|
j.init(e, t);
|
|
@@ -1419,7 +1419,7 @@ function ei(e, t, n, r, i, a) {
|
|
|
1419
1419
|
if (!(!o && s && i === "optional")) {
|
|
1420
1420
|
if (e.issues.length) {
|
|
1421
1421
|
if (i !== void 0 && s && !o) return;
|
|
1422
|
-
t.issues.push(...
|
|
1422
|
+
t.issues.push(...dt(n, e.issues));
|
|
1423
1423
|
}
|
|
1424
1424
|
if (!o && i === void 0) {
|
|
1425
1425
|
e.issues.length || t.issues.push({
|
|
@@ -1481,20 +1481,20 @@ var ii = /* @__PURE__ */ new WeakMap(), ai = /*@__PURE__*/ D("$ZodObject", (e, t
|
|
|
1481
1481
|
return Object.defineProperty(t, "shape", { value: n }), ii.set(t, n), n;
|
|
1482
1482
|
} });
|
|
1483
1483
|
}
|
|
1484
|
-
let n =
|
|
1484
|
+
let n = Ie(() => ni(t));
|
|
1485
1485
|
E(e, "propValues", (e) => {
|
|
1486
1486
|
let t = e.def.shape, n = {};
|
|
1487
1487
|
for (let e in t) {
|
|
1488
1488
|
let r = t[e]._zod;
|
|
1489
1489
|
if (r.values) {
|
|
1490
|
-
Object.prototype.hasOwnProperty.call(n, e) ||
|
|
1490
|
+
Object.prototype.hasOwnProperty.call(n, e) || C(n, e, /* @__PURE__ */ new Set());
|
|
1491
1491
|
for (let t of r.values) n[e].add(t);
|
|
1492
1492
|
r.optin !== void 0 && n[e].add(void 0);
|
|
1493
1493
|
}
|
|
1494
1494
|
}
|
|
1495
1495
|
return n;
|
|
1496
1496
|
});
|
|
1497
|
-
let r =
|
|
1497
|
+
let r = Ke, i = t.catchall, a, o = O.memoizer;
|
|
1498
1498
|
o?.attach(e), e._zod.parse = (t, s) => {
|
|
1499
1499
|
a ??= n.value;
|
|
1500
1500
|
let c = t.value;
|
|
@@ -1518,7 +1518,7 @@ var ii = /* @__PURE__ */ new WeakMap(), ai = /*@__PURE__*/ D("$ZodObject", (e, t
|
|
|
1518
1518
|
};
|
|
1519
1519
|
}), oi = /*@__PURE__*/ D("$ZodObjectJIT", (e, t) => {
|
|
1520
1520
|
ai.init(e, t);
|
|
1521
|
-
let n = e._zod.parse, r =
|
|
1521
|
+
let n = e._zod.parse, r = Ie(() => ni(t)), i = O.memoizer, a = (t) => {
|
|
1522
1522
|
let n = r.value, a = n.symbolKeys, o = new sr(["payload", "ctx"], {
|
|
1523
1523
|
shape: t,
|
|
1524
1524
|
inst: e,
|
|
@@ -1536,7 +1536,7 @@ var ii = /* @__PURE__ */ new WeakMap(), ai = /*@__PURE__*/ D("$ZodObject", (e, t
|
|
|
1536
1536
|
o.write(i ? "const newResult = memo.alloc(inst, payload, {}, ctx);" : "const newResult = {};");
|
|
1537
1537
|
for (let e of n.allKeys) {
|
|
1538
1538
|
if (e === "__proto__") continue;
|
|
1539
|
-
let n = l[e], r = typeof e == "symbol" ? `syms[${a.indexOf(e)}]` :
|
|
1539
|
+
let n = l[e], r = typeof e == "symbol" ? `syms[${a.indexOf(e)}]` : Ue(e), i = `${r} in input`, u = t[e], d = u?._zod?.optin, f = d !== void 0, p = u?._zod?.optout === "optional";
|
|
1540
1540
|
if (o.write(`const ${n} = ${s(r)};`), f && p) {
|
|
1541
1541
|
let e = d === "optional" ? `${n}_present` : `${n}.value !== undefined || ${n}_present`;
|
|
1542
1542
|
o.write(`
|
|
@@ -1583,7 +1583,7 @@ var ii = /* @__PURE__ */ new WeakMap(), ai = /*@__PURE__*/ D("$ZodObject", (e, t
|
|
|
1583
1583
|
`);
|
|
1584
1584
|
}
|
|
1585
1585
|
return o.write("payload.value = newResult;"), o.write("return payload;"), o.compile();
|
|
1586
|
-
}, o, s =
|
|
1586
|
+
}, o, s = Ke, c = !O.jitless, l = c && qe.value, u = t.catchall, d;
|
|
1587
1587
|
e._zod.parse = (i, f) => {
|
|
1588
1588
|
d ??= r.value;
|
|
1589
1589
|
let p = i.value;
|
|
@@ -1602,7 +1602,7 @@ function si(e, t, n, r) {
|
|
|
1602
1602
|
code: "invalid_union",
|
|
1603
1603
|
input: t.value,
|
|
1604
1604
|
inst: n,
|
|
1605
|
-
errors: e.map((e) => e.issues.map((e) =>
|
|
1605
|
+
errors: e.map((e) => e.issues.map((e) => T(e, r, k())))
|
|
1606
1606
|
}), t);
|
|
1607
1607
|
}
|
|
1608
1608
|
var ci = /*@__PURE__*/ D("$ZodUnion", (e, t) => {
|
|
@@ -1611,7 +1611,7 @@ var ci = /*@__PURE__*/ D("$ZodUnion", (e, t) => {
|
|
|
1611
1611
|
}), E(e, "pattern", (e) => {
|
|
1612
1612
|
if (e.def.options.every((e) => e._zod.pattern)) {
|
|
1613
1613
|
let t = e.def.options.map((e) => e._zod.pattern);
|
|
1614
|
-
return RegExp(`^(${t.map((e) =>
|
|
1614
|
+
return RegExp(`^(${t.map((e) => Re(e.source)).join("|")})$`);
|
|
1615
1615
|
}
|
|
1616
1616
|
});
|
|
1617
1617
|
let n = t.options.length === 1 ? t.options[0]._zod.run : null;
|
|
@@ -1640,7 +1640,7 @@ var ci = /*@__PURE__*/ D("$ZodUnion", (e, t) => {
|
|
|
1640
1640
|
let r = n._zod.propValues;
|
|
1641
1641
|
if (!r || Object.keys(r).length === 0) throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(n)}"`);
|
|
1642
1642
|
for (let [e, n] of Object.entries(r)) {
|
|
1643
|
-
Object.prototype.hasOwnProperty.call(t, e) ||
|
|
1643
|
+
Object.prototype.hasOwnProperty.call(t, e) || C(t, e, /* @__PURE__ */ new Set());
|
|
1644
1644
|
for (let r of n) t[e].add(r);
|
|
1645
1645
|
}
|
|
1646
1646
|
}
|
|
@@ -1649,7 +1649,7 @@ var ci = /*@__PURE__*/ D("$ZodUnion", (e, t) => {
|
|
|
1649
1649
|
let r = ii.get(e._zod.def);
|
|
1650
1650
|
if (r && !Object.prototype.hasOwnProperty.call(r, t.discriminator)) throw Error(`Invalid discriminated union option at index "${n}"`);
|
|
1651
1651
|
});
|
|
1652
|
-
let r =
|
|
1652
|
+
let r = Ie(() => {
|
|
1653
1653
|
let e = t.options, n = /* @__PURE__ */ new Map();
|
|
1654
1654
|
for (let r of e) {
|
|
1655
1655
|
let e = r._zod.propValues?.[t.discriminator];
|
|
@@ -1663,7 +1663,7 @@ var ci = /*@__PURE__*/ D("$ZodUnion", (e, t) => {
|
|
|
1663
1663
|
});
|
|
1664
1664
|
e._zod.parse = (i, a) => {
|
|
1665
1665
|
let o = i.value;
|
|
1666
|
-
if (!
|
|
1666
|
+
if (!Ke(o)) return i.issues.push({
|
|
1667
1667
|
code: "invalid_type",
|
|
1668
1668
|
expected: "object",
|
|
1669
1669
|
input: o,
|
|
@@ -1698,7 +1698,7 @@ function di(e, t) {
|
|
|
1698
1698
|
valid: !0,
|
|
1699
1699
|
data: e
|
|
1700
1700
|
};
|
|
1701
|
-
if (
|
|
1701
|
+
if (Je(e) && Je(t)) {
|
|
1702
1702
|
let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
|
|
1703
1703
|
...e,
|
|
1704
1704
|
...t
|
|
@@ -1831,7 +1831,7 @@ function mi(e, t) {
|
|
|
1831
1831
|
return 0;
|
|
1832
1832
|
}
|
|
1833
1833
|
function hi(e, t, n) {
|
|
1834
|
-
e.issues.length && t.issues.push(...
|
|
1834
|
+
e.issues.length && t.issues.push(...dt(n, e.issues)), t.value[n] = e.value;
|
|
1835
1835
|
}
|
|
1836
1836
|
function gi(e, t, n, r, i) {
|
|
1837
1837
|
for (let a = 0; a < n.length; a++) {
|
|
@@ -1845,7 +1845,7 @@ function gi(e, t, n, r, i) {
|
|
|
1845
1845
|
t.value.length = a;
|
|
1846
1846
|
break;
|
|
1847
1847
|
}
|
|
1848
|
-
t.issues.push(...
|
|
1848
|
+
t.issues.push(...dt(a, o.issues));
|
|
1849
1849
|
}
|
|
1850
1850
|
t.value[a] = o.value;
|
|
1851
1851
|
}
|
|
@@ -1857,7 +1857,7 @@ var _i = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
|
|
|
1857
1857
|
let n = O.memoizer;
|
|
1858
1858
|
n?.attach(e), e._zod.parse = (r, i) => {
|
|
1859
1859
|
let a = r.value;
|
|
1860
|
-
if (!
|
|
1860
|
+
if (!Je(a)) return r.issues.push({
|
|
1861
1861
|
expected: "record",
|
|
1862
1862
|
code: "invalid_type",
|
|
1863
1863
|
input: a,
|
|
@@ -1878,7 +1878,7 @@ var _i = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
|
|
|
1878
1878
|
r.issues.push({
|
|
1879
1879
|
code: "invalid_key",
|
|
1880
1880
|
origin: "record",
|
|
1881
|
-
issues: s.issues.map((e) =>
|
|
1881
|
+
issues: s.issues.map((e) => T(e, i, k())),
|
|
1882
1882
|
input: n,
|
|
1883
1883
|
path: [n],
|
|
1884
1884
|
inst: e
|
|
@@ -1892,8 +1892,8 @@ var _i = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
|
|
|
1892
1892
|
issues: []
|
|
1893
1893
|
}, i);
|
|
1894
1894
|
u instanceof Promise ? o.push(u.then((e) => {
|
|
1895
|
-
e.issues.length && r.issues.push(...
|
|
1896
|
-
})) : (u.issues.length && r.issues.push(...
|
|
1895
|
+
e.issues.length && r.issues.push(...dt(n, e.issues)), r.value[l] = e.value;
|
|
1896
|
+
})) : (u.issues.length && r.issues.push(...dt(n, u.issues)), r.value[l] = u.value);
|
|
1897
1897
|
}
|
|
1898
1898
|
let l;
|
|
1899
1899
|
for (let e in a) if (!c.has(e)) {
|
|
@@ -1931,7 +1931,7 @@ var _i = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
|
|
|
1931
1931
|
t.mode === "loose" ? r.value[n] = a[n] : s ? (c ??= [], c.push(n)) : r.issues.push({
|
|
1932
1932
|
code: "invalid_key",
|
|
1933
1933
|
origin: "record",
|
|
1934
|
-
issues: l.issues.map((e) =>
|
|
1934
|
+
issues: l.issues.map((e) => T(e, i, k())),
|
|
1935
1935
|
input: n,
|
|
1936
1936
|
path: [n],
|
|
1937
1937
|
inst: e
|
|
@@ -1945,8 +1945,8 @@ var _i = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
|
|
|
1945
1945
|
issues: []
|
|
1946
1946
|
}, i);
|
|
1947
1947
|
d instanceof Promise ? o.push(d.then((e) => {
|
|
1948
|
-
e.issues.length && r.issues.push(...
|
|
1949
|
-
})) : (d.issues.length && r.issues.push(...
|
|
1948
|
+
e.issues.length && r.issues.push(...dt(n, e.issues)), r.value[u] = e.value;
|
|
1949
|
+
})) : (d.issues.length && r.issues.push(...dt(n, d.issues)), r.value[u] = d.value);
|
|
1950
1950
|
}
|
|
1951
1951
|
c && c.length > 0 && r.issues.push({
|
|
1952
1952
|
code: "unrecognized_keys",
|
|
@@ -1960,10 +1960,10 @@ var _i = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
|
|
|
1960
1960
|
};
|
|
1961
1961
|
}), vi = /*@__PURE__*/ D("$ZodEnum", (e, t) => {
|
|
1962
1962
|
j.init(e, t);
|
|
1963
|
-
let n =
|
|
1963
|
+
let n = Ne(t.entries), r = new Set(n);
|
|
1964
1964
|
e._zod.values = r;
|
|
1965
|
-
let i = n.filter((e) =>
|
|
1966
|
-
e._zod.pattern = RegExp(i.length ? `^(${i.map((e) =>
|
|
1965
|
+
let i = n.filter((e) => Xe.has(typeof e));
|
|
1966
|
+
e._zod.pattern = RegExp(i.length ? `^(${i.map((e) => Ze(e.toString())).join("|")})$` : "^[^\\s\\S]$"), e._zod.parse = (t, i) => {
|
|
1967
1967
|
let a = t.value;
|
|
1968
1968
|
return r.has(a) || t.issues.push({
|
|
1969
1969
|
code: "invalid_value",
|
|
@@ -1975,7 +1975,7 @@ var _i = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
|
|
|
1975
1975
|
}), yi = /*@__PURE__*/ D("$ZodLiteral", (e, t) => {
|
|
1976
1976
|
j.init(e, t);
|
|
1977
1977
|
let n = new Set(t.values);
|
|
1978
|
-
e._zod.values = n, e._zod.pattern = RegExp(t.values.length ? `^(${t.values.map((e) => typeof e == "string" ?
|
|
1978
|
+
e._zod.values = n, e._zod.pattern = RegExp(t.values.length ? `^(${t.values.map((e) => typeof e == "string" ? Ze(e) : e ? Ze(e.toString()) : String(e)).join("|")})$` : "^[^\\s\\S]$"), e._zod.parse = (r, i) => {
|
|
1979
1979
|
let a = r.value;
|
|
1980
1980
|
return n.has(a) || r.issues.push({
|
|
1981
1981
|
code: "invalid_value",
|
|
@@ -2002,7 +2002,7 @@ var Si = /*@__PURE__*/ D("$ZodOptional", (e, t) => {
|
|
|
2002
2002
|
return t ? /* @__PURE__ */ new Set([...t, void 0]) : void 0;
|
|
2003
2003
|
}), E(e, "pattern", (e) => {
|
|
2004
2004
|
let t = e.def.innerType._zod.pattern;
|
|
2005
|
-
return t ? RegExp(`^(${
|
|
2005
|
+
return t ? RegExp(`^(${Re(t.source)})?$`) : void 0;
|
|
2006
2006
|
}), e._zod.parse = (e, n) => {
|
|
2007
2007
|
if (e.value === void 0) {
|
|
2008
2008
|
if (t.innerType._zod.optin !== "defaulted") return e;
|
|
@@ -2019,7 +2019,7 @@ var Si = /*@__PURE__*/ D("$ZodOptional", (e, t) => {
|
|
|
2019
2019
|
}), wi = /*@__PURE__*/ D("$ZodNullable", (e, t) => {
|
|
2020
2020
|
j.init(e, t), E(e, "optin", (e) => e.def.innerType._zod.optin), E(e, "optout", (e) => e.def.innerType._zod.optout), E(e, "pattern", (e) => {
|
|
2021
2021
|
let t = e.def.innerType._zod.pattern;
|
|
2022
|
-
return t ? RegExp(`^(${
|
|
2022
|
+
return t ? RegExp(`^(${Re(t.source)}|null)$`) : void 0;
|
|
2023
2023
|
}), E(e, "values", (e) => e.def.innerType._zod.values ? /* @__PURE__ */ new Set([...e.def.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
|
|
2024
2024
|
}), Ti = /*@__PURE__*/ D("$ZodDefault", (e, t) => {
|
|
2025
2025
|
j.init(e, t), e._zod.optin = "defaulted", E(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
@@ -2055,7 +2055,7 @@ function Ai(e, t, n, r) {
|
|
|
2055
2055
|
return t.issues.length ? (e.value = n.catchValue({
|
|
2056
2056
|
...t,
|
|
2057
2057
|
value: e.value,
|
|
2058
|
-
error: { issues: t.issues.map((e) =>
|
|
2058
|
+
error: { issues: t.issues.map((e) => T(e, r, k())) },
|
|
2059
2059
|
input: e.value
|
|
2060
2060
|
}), e) : (e.value = t.value, t.memo && (e.memo = !0), e);
|
|
2061
2061
|
}
|
|
@@ -2095,7 +2095,7 @@ function Fi(e) {
|
|
|
2095
2095
|
return e.memo || (e.value = Object.freeze(e.value)), e;
|
|
2096
2096
|
}
|
|
2097
2097
|
var Ii = /*@__PURE__*/ D("$ZodLazy", (e, t) => {
|
|
2098
|
-
j.init(e, t),
|
|
2098
|
+
j.init(e, t), Ve(e._zod, "innerType", () => {
|
|
2099
2099
|
let e = t;
|
|
2100
2100
|
return e._cachedInner ||= t.getter(), e._cachedInner;
|
|
2101
2101
|
}), E(e, "pattern", (e) => e.innerType?._zod?.pattern), E(e, "propValues", (e) => e.innerType?._zod?.propValues), E(e, "optin", (e) => e.innerType?._zod?.optin ?? void 0), E(e, "optout", (e) => e.innerType?._zod?.optout ?? void 0), e._zod.parse = (t, n) => e._zod.innerType._zod.run(t, n);
|
|
@@ -2342,7 +2342,7 @@ var Zi = () => {
|
|
|
2342
2342
|
return (e) => {
|
|
2343
2343
|
switch (e.code) {
|
|
2344
2344
|
case "invalid_type": return `Invalid input: expected ${i(e.expected)}, received ${i(_t(e.input), e.input)}`;
|
|
2345
|
-
case "invalid_value": return e.values.length === 1 ? `Invalid input: expected ${$e(e.values[0])}` : `Invalid option: expected one of ${
|
|
2345
|
+
case "invalid_value": return e.values.length === 1 ? `Invalid input: expected ${$e(e.values[0])}` : `Invalid option: expected one of ${Pe(e.values, "|")}`;
|
|
2346
2346
|
case "too_big": {
|
|
2347
2347
|
let n = e.exact ? "exactly " : e.inclusive ? "<=" : "<", r = t(e.origin);
|
|
2348
2348
|
return r ? `Too big: expected ${e.origin ?? "value"} to have ${n}${e.maximum.toString()} ${r.unit ?? "elements"}` : `Too big: expected ${e.origin ?? "value"} to be ${n}${e.maximum.toString()}`;
|
|
@@ -2356,7 +2356,7 @@ var Zi = () => {
|
|
|
2356
2356
|
return t.format === "starts_with" ? `Invalid string: must start with "${t.prefix}"` : t.format === "ends_with" ? `Invalid string: must end with "${t.suffix}"` : t.format === "includes" ? `Invalid string: must include "${t.includes}"` : t.format === "regex" ? `Invalid string: must match pattern ${t.pattern}` : `Invalid ${n[t.format] ?? e.format}`;
|
|
2357
2357
|
}
|
|
2358
2358
|
case "not_multiple_of": return `Invalid number: must be a multiple of ${e.divisor}`;
|
|
2359
|
-
case "unrecognized_keys": return `Unrecognized key${e.keys.length > 1 ? "s" : ""}: ${
|
|
2359
|
+
case "unrecognized_keys": return `Unrecognized key${e.keys.length > 1 ? "s" : ""}: ${Pe(e.keys, ", ")}`;
|
|
2360
2360
|
case "invalid_key": return `Invalid key in ${e.origin}`;
|
|
2361
2361
|
case "invalid_union": return e.options && Array.isArray(e.options) && e.options.length > 0 ? `Invalid discriminator value. Expected ${e.options.map((e) => `'${e}'`).join(" | ")}` : e.inclusive === !1 ? "Invalid input: more than one option matched" : "Invalid input";
|
|
2362
2362
|
case "invalid_element": return `Invalid value in ${e.origin}`;
|
|
@@ -2866,7 +2866,7 @@ function eo() {
|
|
|
2866
2866
|
}
|
|
2867
2867
|
// @__NO_SIDE_EFFECTS__
|
|
2868
2868
|
function to() {
|
|
2869
|
-
return /* @__PURE__ */ Xa((e) =>
|
|
2869
|
+
return /* @__PURE__ */ Xa((e) => We(e));
|
|
2870
2870
|
}
|
|
2871
2871
|
// @__NO_SIDE_EFFECTS__
|
|
2872
2872
|
function no(e, t, n) {
|
|
@@ -2907,7 +2907,7 @@ function ao(e, t) {
|
|
|
2907
2907
|
//#endregion
|
|
2908
2908
|
//#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/to-json-schema.js
|
|
2909
2909
|
function oo(e, ...t) {
|
|
2910
|
-
for (let n of t) for (let t of Reflect.ownKeys(n)) Object.prototype.propertyIsEnumerable.call(n, t) &&
|
|
2910
|
+
for (let n of t) for (let t of Reflect.ownKeys(n)) Object.prototype.propertyIsEnumerable.call(n, t) && C(e, t, n[t]);
|
|
2911
2911
|
return e;
|
|
2912
2912
|
}
|
|
2913
2913
|
function so(e) {
|
|
@@ -3093,7 +3093,7 @@ function ho(e) {
|
|
|
3093
3093
|
let t = n.properties?.[r] ?? mo(n);
|
|
3094
3094
|
t != null && (e.some((e) => JSON.stringify(e) === JSON.stringify(t)) || e.push(t));
|
|
3095
3095
|
}
|
|
3096
|
-
|
|
3096
|
+
C(n, r, e.length === 1 ? e[0] : ho(e) ?? { allOf: e });
|
|
3097
3097
|
}
|
|
3098
3098
|
for (let t of e.required ?? []) r.add(t);
|
|
3099
3099
|
}
|
|
@@ -3179,7 +3179,7 @@ function _o(e, t) {
|
|
|
3179
3179
|
let o = e.external?.defs ?? {};
|
|
3180
3180
|
if (!e.external || e.sharedEmitDoneFor !== e.external) for (let t of e.seen.entries()) {
|
|
3181
3181
|
let e = t[1];
|
|
3182
|
-
e.def && e.defId && (e.def.id === e.defId && delete e.def.id,
|
|
3182
|
+
e.def && e.defId && (e.def.id === e.defId && delete e.def.id, C(o, e.defId, e.def));
|
|
3183
3183
|
}
|
|
3184
3184
|
e.external && (e.sharedEmitDoneFor = e.external), e.external || Object.keys(o).length > 0 && (e.target === "draft-2020-12" ? i.$defs = o : i.definitions = o);
|
|
3185
3185
|
try {
|
|
@@ -3269,7 +3269,7 @@ var vo = (e, t = {}) => (n) => {
|
|
|
3269
3269
|
}, To = (e, t, n, r) => {
|
|
3270
3270
|
n.not = {};
|
|
3271
3271
|
}, Eo = (e, t, n, r) => {
|
|
3272
|
-
let i = e._zod.def, a =
|
|
3272
|
+
let i = e._zod.def, a = Ne(i.entries);
|
|
3273
3273
|
if (a.length === 0) {
|
|
3274
3274
|
n.not = {};
|
|
3275
3275
|
return;
|
|
@@ -3313,7 +3313,7 @@ var Mo = (e, t, n, r) => {
|
|
|
3313
3313
|
let i = n, a = e._zod.def, o = a.shape;
|
|
3314
3314
|
if (Object.getOwnPropertySymbols(o).length && N(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
|
|
3315
3315
|
i.type = "object", i.properties = {};
|
|
3316
|
-
for (let e in o)
|
|
3316
|
+
for (let e in o) C(i.properties, e, P(o[e], t, {
|
|
3317
3317
|
...r,
|
|
3318
3318
|
path: [
|
|
3319
3319
|
...r.path,
|
|
@@ -3437,7 +3437,7 @@ var zo = (e, t, n, r) => {
|
|
|
3437
3437
|
]
|
|
3438
3438
|
});
|
|
3439
3439
|
i.patternProperties = {};
|
|
3440
|
-
for (let t of s)
|
|
3440
|
+
for (let t of s) C(i.patternProperties, t.source, e);
|
|
3441
3441
|
} else {
|
|
3442
3442
|
if (t.target === "draft-07" || t.target === "draft-2020-12") {
|
|
3443
3443
|
i.propertyNames = P(a.keyType, t, {
|
|
@@ -3543,9 +3543,9 @@ var I = /*@__PURE__*/ D("ZodError", (e, t) => {
|
|
|
3543
3543
|
Ut.init(e, t), e.name = "ZodError";
|
|
3544
3544
|
let n = Object.getPrototypeOf(e);
|
|
3545
3545
|
Zo.has(n) || (Zo.add(n), Qo(n, "format", (e) => (t) => qt(e, t)), Qo(n, "flatten", (e) => (t) => Kt(e, t)), Qo(n, "addIssue", (e) => (t) => {
|
|
3546
|
-
e.issues.push(t), e.message = JSON.stringify(e.issues,
|
|
3546
|
+
e.issues.push(t), e.message = JSON.stringify(e.issues, Fe, 2);
|
|
3547
3547
|
}), Qo(n, "addIssues", (e) => (t) => {
|
|
3548
|
-
e.issues.push(...t), e.message = JSON.stringify(e.issues,
|
|
3548
|
+
e.issues.push(...t), e.message = JSON.stringify(e.issues, Fe, 2);
|
|
3549
3549
|
}), Object.defineProperty(n, "isEmpty", {
|
|
3550
3550
|
configurable: !0,
|
|
3551
3551
|
enumerable: !1,
|
|
@@ -3565,7 +3565,7 @@ function fs() {
|
|
|
3565
3565
|
var L = /*@__PURE__*/ D("ZodType", (e, t) => (ds(), j.init(e, t), e.def = t, e.type = t.type, e), {
|
|
3566
3566
|
check(...e) {
|
|
3567
3567
|
let t = this.def;
|
|
3568
|
-
return this.clone(
|
|
3568
|
+
return this.clone(He(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
|
|
3569
3569
|
check: e,
|
|
3570
3570
|
def: { check: "custom" },
|
|
3571
3571
|
onattach: []
|
|
@@ -3575,7 +3575,7 @@ var L = /*@__PURE__*/ D("ZodType", (e, t) => (ds(), j.init(e, t), e.def = t, e.t
|
|
|
3575
3575
|
return this.check(...e);
|
|
3576
3576
|
},
|
|
3577
3577
|
clone(e, t) {
|
|
3578
|
-
return
|
|
3578
|
+
return Qe(this, e, t);
|
|
3579
3579
|
},
|
|
3580
3580
|
brand() {
|
|
3581
3581
|
return this;
|
|
@@ -4257,7 +4257,7 @@ function _c(e, t) {
|
|
|
4257
4257
|
type: "default",
|
|
4258
4258
|
innerType: e,
|
|
4259
4259
|
get defaultValue() {
|
|
4260
|
-
return typeof t == "function" ? t() :
|
|
4260
|
+
return typeof t == "function" ? t() : Ye(t);
|
|
4261
4261
|
}
|
|
4262
4262
|
});
|
|
4263
4263
|
}
|
|
@@ -4269,7 +4269,7 @@ function yc(e, t) {
|
|
|
4269
4269
|
type: "prefault",
|
|
4270
4270
|
innerType: e,
|
|
4271
4271
|
get defaultValue() {
|
|
4272
|
-
return typeof t == "function" ? t() :
|
|
4272
|
+
return typeof t == "function" ? t() : Ye(t);
|
|
4273
4273
|
}
|
|
4274
4274
|
});
|
|
4275
4275
|
}
|
|
@@ -4468,12 +4468,7 @@ var q = hs(), J = Nc(), Fc = V(q), Ic = H({
|
|
|
4468
4468
|
defaultOutput: q.optional()
|
|
4469
4469
|
}, Xc = {
|
|
4470
4470
|
actions: U([ic([K("continue")]), ic([K("approve"), K("reject")])]),
|
|
4471
|
-
prompt: q
|
|
4472
|
-
notification: H({
|
|
4473
|
-
inputs: Hc,
|
|
4474
|
-
messageHandle: q,
|
|
4475
|
-
taskId: q
|
|
4476
|
-
}).optional()
|
|
4471
|
+
prompt: q
|
|
4477
4472
|
}, Zc = {
|
|
4478
4473
|
inputsDef: V(Y),
|
|
4479
4474
|
options: H({
|
|
@@ -4566,7 +4561,7 @@ var q = hs(), J = Nc(), Fc = V(q), Ic = H({
|
|
|
4566
4561
|
taskId: q,
|
|
4567
4562
|
additionalInputs: V(Y).optional()
|
|
4568
4563
|
}),
|
|
4569
|
-
|
|
4564
|
+
Zs({
|
|
4570
4565
|
...nl,
|
|
4571
4566
|
kind: K("wait"),
|
|
4572
4567
|
input: Y,
|
|
@@ -4806,7 +4801,30 @@ V(U([...new Map(Object.entries(pl).map(([e, t]) => [e, t instanceof L ? t : H({
|
|
|
4806
4801
|
kind: K(e),
|
|
4807
4802
|
...t
|
|
4808
4803
|
})])).values()])).min(1);
|
|
4809
|
-
|
|
4804
|
+
//#endregion
|
|
4805
|
+
//#region src/flow/common/change.ts
|
|
4806
|
+
var ml = /* @__PURE__ */ new Set([
|
|
4807
|
+
"const",
|
|
4808
|
+
"enum",
|
|
4809
|
+
"exclusiveMaximum",
|
|
4810
|
+
"exclusiveMinimum",
|
|
4811
|
+
"maximum",
|
|
4812
|
+
"maxItems",
|
|
4813
|
+
"maxLength",
|
|
4814
|
+
"maxProperties",
|
|
4815
|
+
"minimum",
|
|
4816
|
+
"minItems",
|
|
4817
|
+
"minLength",
|
|
4818
|
+
"minProperties",
|
|
4819
|
+
"multipleOf",
|
|
4820
|
+
"pattern",
|
|
4821
|
+
"required",
|
|
4822
|
+
"type"
|
|
4823
|
+
]);
|
|
4824
|
+
function hl(e) {
|
|
4825
|
+
return ml.has(e);
|
|
4826
|
+
}
|
|
4827
|
+
function gl(e) {
|
|
4810
4828
|
let t = e.trim();
|
|
4811
4829
|
if (t.length == 0) return "empty";
|
|
4812
4830
|
if (t.length > 80) return "tooLong";
|
|
@@ -4816,10 +4834,10 @@ function ml(e) {
|
|
|
4816
4834
|
}
|
|
4817
4835
|
if (!/^[\p{L}\p{N}](?:[\p{L}\p{N} _-]*[\p{L}\p{N}])?$/u.test(t)) return "specialCharacter";
|
|
4818
4836
|
}
|
|
4819
|
-
function
|
|
4837
|
+
function _l(e) {
|
|
4820
4838
|
return Object.fromEntries(e.flatMap((e) => "handle" in e ? [[e.handle, e]] : []));
|
|
4821
4839
|
}
|
|
4822
|
-
function
|
|
4840
|
+
function vl(e) {
|
|
4823
4841
|
if (!Array.isArray(e)) throw TypeError("Connector capabilities must be an array.");
|
|
4824
4842
|
let t = /* @__PURE__ */ new Set();
|
|
4825
4843
|
return e.map((e) => {
|
|
@@ -4855,27 +4873,27 @@ function gl(e) {
|
|
|
4855
4873
|
};
|
|
4856
4874
|
});
|
|
4857
4875
|
}
|
|
4858
|
-
function
|
|
4876
|
+
function yl(e) {
|
|
4859
4877
|
return e.trim().normalize("NFC");
|
|
4860
4878
|
}
|
|
4861
|
-
function
|
|
4862
|
-
let n =
|
|
4879
|
+
function bl(e, t) {
|
|
4880
|
+
let n = yl(e), r = new Set([...t].map(yl));
|
|
4863
4881
|
if (!r.has(n)) return n;
|
|
4864
4882
|
let i = /^(.*) \((\d+)\)$/.exec(n), a = i?.[2], o = a != null && Number(a) >= 2 ? Number(a) : void 0, s = o == null ? n : i?.[1] ?? n, c = o == null ? 2 : o + 1;
|
|
4865
4883
|
for (; r.has(`${s} (${c})`);) c += 1;
|
|
4866
4884
|
return `${s} (${c})`;
|
|
4867
4885
|
}
|
|
4868
|
-
function
|
|
4869
|
-
let r =
|
|
4870
|
-
return r.length == 0 ? "empty" : Object.entries(e.nodes).some(([e, n]) => e != t && n.name != null &&
|
|
4886
|
+
function xl(e, t, n) {
|
|
4887
|
+
let r = yl(n);
|
|
4888
|
+
return r.length == 0 ? "empty" : Object.entries(e.nodes).some(([e, n]) => e != t && n.name != null && yl(n.name) == r) ? "duplicate" : void 0;
|
|
4871
4889
|
}
|
|
4872
|
-
var
|
|
4890
|
+
var Sl = class extends Error {
|
|
4873
4891
|
constructor(e) {
|
|
4874
4892
|
super(e), this.name = "FlowChangeError";
|
|
4875
4893
|
}
|
|
4876
4894
|
};
|
|
4877
4895
|
function Z(e) {
|
|
4878
|
-
throw new
|
|
4896
|
+
throw new Sl(e);
|
|
4879
4897
|
}
|
|
4880
4898
|
function Q(e, t) {
|
|
4881
4899
|
if (t.kind == "flow") return e.graph;
|
|
@@ -4899,7 +4917,7 @@ function $(e, t, n) {
|
|
|
4899
4917
|
}
|
|
4900
4918
|
};
|
|
4901
4919
|
}
|
|
4902
|
-
function
|
|
4920
|
+
function Cl(e, t) {
|
|
4903
4921
|
if (!("inputs" in e)) return e;
|
|
4904
4922
|
let n = { ...e.inputs };
|
|
4905
4923
|
for (let [e, r] of Object.entries(n)) {
|
|
@@ -4915,7 +4933,7 @@ function xl(e, t) {
|
|
|
4915
4933
|
inputs: n
|
|
4916
4934
|
};
|
|
4917
4935
|
}
|
|
4918
|
-
function
|
|
4936
|
+
function wl(e, t) {
|
|
4919
4937
|
let n = { ...e.document }, r = { ...e.modules };
|
|
4920
4938
|
for (let e of t) switch (e.kind) {
|
|
4921
4939
|
case "binding.create":
|
|
@@ -4945,14 +4963,14 @@ function Sl(e, t) {
|
|
|
4945
4963
|
let t = Q(n, e.target);
|
|
4946
4964
|
t.nodes[e.edge.source] ?? Z("The source Node does not exist.");
|
|
4947
4965
|
let r = t.nodes[e.edge.target];
|
|
4948
|
-
(r == null || !("inputs" in r)) && Z("The target Node does not accept execution dependencies."), t.edges.some((t) =>
|
|
4966
|
+
(r == null || !("inputs" in r)) && Z("The target Node does not accept execution dependencies."), t.edges.some((t) => v(t, e.edge)) && Z("The Nodes are already connected."), Object.assign(n, $(n, e.target, {
|
|
4949
4967
|
...t,
|
|
4950
4968
|
edges: [...t.edges, e.edge]
|
|
4951
4969
|
}));
|
|
4952
4970
|
break;
|
|
4953
4971
|
}
|
|
4954
4972
|
case "graph.edge.disconnect": {
|
|
4955
|
-
let t = Q(n, e.target), r = t.edges.filter((t) => !
|
|
4973
|
+
let t = Q(n, e.target), r = t.edges.filter((t) => !v(t, e.edge));
|
|
4956
4974
|
r.length == t.edges.length && Z("The Nodes are not connected."), Object.assign(n, $(n, e.target, {
|
|
4957
4975
|
...t,
|
|
4958
4976
|
edges: r
|
|
@@ -4961,7 +4979,7 @@ function Sl(e, t) {
|
|
|
4961
4979
|
}
|
|
4962
4980
|
case "graph.node.additional-inputs.set": {
|
|
4963
4981
|
let t = Q(n, e.target), r = t.nodes[e.nodeId];
|
|
4964
|
-
r?.kind != "task" && Z("The Task Node does not exist."),
|
|
4982
|
+
r?.kind != "task" && Z("The Task Node does not exist."), v(r.additionalInputs, e.before) || Z("The Task Node inputs changed before this operation was applied.");
|
|
4965
4983
|
let { additionalInputs: i, ...a } = r, o = e.value == null ? a : {
|
|
4966
4984
|
...a,
|
|
4967
4985
|
additionalInputs: e.value
|
|
@@ -4977,7 +4995,7 @@ function Sl(e, t) {
|
|
|
4977
4995
|
}
|
|
4978
4996
|
case "graph.node.condition.set": {
|
|
4979
4997
|
let t = Q(n, e.target), r = t.nodes[e.nodeId];
|
|
4980
|
-
r?.kind != "condition" && Z("The Condition Node does not exist."), (!
|
|
4998
|
+
r?.kind != "condition" && Z("The Condition Node does not exist."), (!v(r.cases, e.before.cases) || r.defaultOutput != e.before.defaultOutput || !v(r.input, e.before.input)) && Z("The Condition Node changed before this operation was applied.");
|
|
4981
4999
|
let { defaultOutput: i, ...a } = r, o = e.value.defaultOutput == null ? {
|
|
4982
5000
|
...a,
|
|
4983
5001
|
...e.value
|
|
@@ -4996,8 +5014,8 @@ function Sl(e, t) {
|
|
|
4996
5014
|
}
|
|
4997
5015
|
case "graph.node.create": {
|
|
4998
5016
|
let t = Q(n, e.target);
|
|
4999
|
-
t.nodes[e.nodeId] != null && Z("A Node with this ID already exists in the target graph."), e.target.kind == "subflow" && !("inputs" in e.node) && Z("Trigger Nodes cannot be created inside a Subflow."), e.node.kind == "manual" && Object.values(t.nodes).some((e) => e.kind == "manual") && Z("A graph can contain only one manual Trigger."), e.node.kind == "task" && e.node.task?.capabilities !== void 0 &&
|
|
5000
|
-
let r =
|
|
5017
|
+
t.nodes[e.nodeId] != null && Z("A Node with this ID already exists in the target graph."), e.target.kind == "subflow" && !("inputs" in e.node) && Z("Trigger Nodes cannot be created inside a Subflow."), e.node.kind == "manual" && Object.values(t.nodes).some((e) => e.kind == "manual") && Z("A graph can contain only one manual Trigger."), e.node.kind == "task" && e.node.task?.capabilities !== void 0 && vl(e.node.task.capabilities), e.node.name ?? Z("A Node name cannot be empty.");
|
|
5018
|
+
let r = yl(e.node.name), i = xl(t, e.nodeId, r);
|
|
5001
5019
|
i == "empty" && Z("A Node name cannot be empty."), i == "duplicate" && Z("A Node with this name already exists in the target graph.");
|
|
5002
5020
|
let a = r == e.node.name ? e.node : {
|
|
5003
5021
|
...e.node,
|
|
@@ -5015,7 +5033,7 @@ function Sl(e, t) {
|
|
|
5015
5033
|
case "graph.node.delete": {
|
|
5016
5034
|
let t = Q(n, e.target);
|
|
5017
5035
|
t.nodes[e.nodeId] ?? Z("The Node does not exist in the target graph.");
|
|
5018
|
-
let r = /* @__PURE__ */ new Set([e.nodeId]), i = Object.fromEntries(Object.entries(t.nodes).flatMap(([e, t]) => r.has(e) ? [] : [[e,
|
|
5036
|
+
let r = /* @__PURE__ */ new Set([e.nodeId]), i = Object.fromEntries(Object.entries(t.nodes).flatMap(([e, t]) => r.has(e) ? [] : [[e, Cl(t, r)]]));
|
|
5019
5037
|
if (Object.assign(n, $(n, e.target, {
|
|
5020
5038
|
...t,
|
|
5021
5039
|
edges: t.edges.filter((e) => !r.has(e.source) && !r.has(e.target)),
|
|
@@ -5037,11 +5055,11 @@ function Sl(e, t) {
|
|
|
5037
5055
|
}
|
|
5038
5056
|
case "graph.node.field.set": {
|
|
5039
5057
|
let t = Q(n, e.target), r = t.nodes[e.nodeId];
|
|
5040
|
-
r ?? Z("The Node does not exist in the target graph."),
|
|
5058
|
+
r ?? Z("The Node does not exist in the target graph."), v(Reflect.get(r, e.field), e.before) || Z("The Node field changed before this operation was applied.");
|
|
5041
5059
|
let i = { ...r };
|
|
5042
5060
|
if (e.field == "name") {
|
|
5043
5061
|
typeof e.value != "string" && Z("A Node name cannot be empty.");
|
|
5044
|
-
let n =
|
|
5062
|
+
let n = yl(e.value), r = xl(t, e.nodeId, n);
|
|
5045
5063
|
r == "empty" && Z("A Node name cannot be empty."), r == "duplicate" && Z("A Node with this name already exists in the target graph."), Object.assign(i, { name: n });
|
|
5046
5064
|
} else e.value == null ? Reflect.deleteProperty(i, e.field) : Object.assign(i, { [e.field]: e.value });
|
|
5047
5065
|
Object.assign(n, $(n, e.target, {
|
|
@@ -5055,7 +5073,7 @@ function Sl(e, t) {
|
|
|
5055
5073
|
}
|
|
5056
5074
|
case "graph.node.input.set": {
|
|
5057
5075
|
let t = Q(n, e.target), r = t.nodes[e.nodeId];
|
|
5058
|
-
(r == null || !("inputs" in r)) && Z("The Node does not accept inputs."),
|
|
5076
|
+
(r == null || !("inputs" in r)) && Z("The Node does not accept inputs."), v(r.inputs[e.handle], e.before) || Z("The Node input changed before this operation was applied.");
|
|
5059
5077
|
let i = { ...r.inputs };
|
|
5060
5078
|
e.value == null ? delete i[e.handle] : i[e.handle] = e.value, Object.assign(n, $(n, e.target, {
|
|
5061
5079
|
...t,
|
|
@@ -5071,9 +5089,9 @@ function Sl(e, t) {
|
|
|
5071
5089
|
}
|
|
5072
5090
|
case "graph.node.task.capabilities.set": {
|
|
5073
5091
|
let t = Q(n, e.target), r = t.nodes[e.nodeId];
|
|
5074
|
-
(r?.kind != "task" || r.task == null) && Z("The inline Task Node does not exist."),
|
|
5092
|
+
(r?.kind != "task" || r.task == null) && Z("The inline Task Node does not exist."), v(r.task.capabilities, e.before) || Z("The inline Task capabilities changed before this operation was applied.");
|
|
5075
5093
|
let i = { ...r.task };
|
|
5076
|
-
e.value === void 0 ? delete i.capabilities : i.capabilities =
|
|
5094
|
+
e.value === void 0 ? delete i.capabilities : i.capabilities = vl(e.value), Object.assign(n, $(n, e.target, {
|
|
5077
5095
|
...t,
|
|
5078
5096
|
nodes: {
|
|
5079
5097
|
...t.nodes,
|
|
@@ -5106,7 +5124,7 @@ function Sl(e, t) {
|
|
|
5106
5124
|
}
|
|
5107
5125
|
case "graph.node.task.ports.set": {
|
|
5108
5126
|
let t = Q(n, e.target), r = t.nodes[e.nodeId];
|
|
5109
|
-
(r?.kind != "task" || r.task == null) && Z("The inline Task Node does not exist."),
|
|
5127
|
+
(r?.kind != "task" || r.task == null) && Z("The inline Task Node does not exist."), v({
|
|
5110
5128
|
inputs: r.task.inputs,
|
|
5111
5129
|
outputs: r.task.outputs
|
|
5112
5130
|
}, e.before) || Z("The inline Task ports changed before this operation was applied.");
|
|
@@ -5129,7 +5147,7 @@ function Sl(e, t) {
|
|
|
5129
5147
|
}
|
|
5130
5148
|
case "graph.node.values.set": {
|
|
5131
5149
|
let t = Q(n, e.target), r = t.nodes[e.nodeId];
|
|
5132
|
-
r?.kind != "value" && Z("The Value Node does not exist."),
|
|
5150
|
+
r?.kind != "value" && Z("The Value Node does not exist."), v(r.values, e.before) || Z("The Value Node changed before this operation was applied."), Object.assign(n, $(n, e.target, {
|
|
5133
5151
|
...t,
|
|
5134
5152
|
nodes: {
|
|
5135
5153
|
...t.nodes,
|
|
@@ -5143,15 +5161,11 @@ function Sl(e, t) {
|
|
|
5143
5161
|
}
|
|
5144
5162
|
case "graph.node.wait.set": {
|
|
5145
5163
|
let t = n.graph, r = t.nodes[e.nodeId];
|
|
5146
|
-
(r?.kind != "wait" || !
|
|
5164
|
+
(r?.kind != "wait" || !v({
|
|
5147
5165
|
actions: r.actions,
|
|
5148
|
-
...r.notification == null ? {} : { notification: r.notification },
|
|
5149
5166
|
prompt: r.prompt
|
|
5150
5167
|
}, e.before)) && Z("The Wait Node changed before this operation was applied.");
|
|
5151
|
-
let
|
|
5152
|
-
...a,
|
|
5153
|
-
...e.value
|
|
5154
|
-
} : {
|
|
5168
|
+
let i = {
|
|
5155
5169
|
...r,
|
|
5156
5170
|
...e.value
|
|
5157
5171
|
};
|
|
@@ -5159,14 +5173,14 @@ function Sl(e, t) {
|
|
|
5159
5173
|
...t,
|
|
5160
5174
|
nodes: {
|
|
5161
5175
|
...t.nodes,
|
|
5162
|
-
[e.nodeId]:
|
|
5176
|
+
[e.nodeId]: i
|
|
5163
5177
|
}
|
|
5164
5178
|
};
|
|
5165
5179
|
break;
|
|
5166
5180
|
}
|
|
5167
5181
|
case "graph.node.webhook.set": {
|
|
5168
5182
|
let t = Q(n, e.target), r = t.nodes[e.nodeId];
|
|
5169
|
-
r?.kind != "webhook" && Z("The Webhook Node does not exist."), (!
|
|
5183
|
+
r?.kind != "webhook" && Z("The Webhook Node does not exist."), (!v(r.inputsDef, e.before.inputsDef) || !v(r.options, e.before.options)) && Z("The Webhook Node changed before this operation was applied.");
|
|
5170
5184
|
let { options: i, ...a } = r, o = e.value.options == null ? {
|
|
5171
5185
|
...a,
|
|
5172
5186
|
inputsDef: e.value.inputsDef
|
|
@@ -5185,7 +5199,7 @@ function Sl(e, t) {
|
|
|
5185
5199
|
}
|
|
5186
5200
|
case "graph.trigger.config.set": {
|
|
5187
5201
|
let t = n.graph, r = t.nodes[e.nodeId];
|
|
5188
|
-
(r == null || r.kind != "integration" && r.kind != "poll") && Z("The configurable Trigger Node does not exist."),
|
|
5202
|
+
(r == null || r.kind != "integration" && r.kind != "poll") && Z("The configurable Trigger Node does not exist."), v(r.config[e.name], e.before) || Z("The Trigger configuration changed before this operation was applied.");
|
|
5189
5203
|
let i = { ...r.config };
|
|
5190
5204
|
e.value === void 0 ? delete i[e.name] : i[e.name] = e.value, n.graph = {
|
|
5191
5205
|
...t,
|
|
@@ -5203,7 +5217,7 @@ function Sl(e, t) {
|
|
|
5203
5217
|
let t = n.graph, r = t.nodes[e.nodeId];
|
|
5204
5218
|
(r == null || r.kind != "cron" && r.kind != "poll") && Z("The scheduled Trigger Node does not exist.");
|
|
5205
5219
|
let i = r.kind == "cron" ? r.cronTimes : r.pollTimes;
|
|
5206
|
-
|
|
5220
|
+
v(i, e.before) || Z("The Trigger schedule changed before this operation was applied.");
|
|
5207
5221
|
let a = r.kind == "cron" ? {
|
|
5208
5222
|
...r,
|
|
5209
5223
|
cronTimes: e.value
|
|
@@ -5236,7 +5250,7 @@ function Sl(e, t) {
|
|
|
5236
5250
|
}
|
|
5237
5251
|
case "module.source.replace": {
|
|
5238
5252
|
let t = r[e.moduleId];
|
|
5239
|
-
t ?? Z("The CodeModule does not exist."), (t.source != e.beforeSource || !
|
|
5253
|
+
t ?? Z("The CodeModule does not exist."), (t.source != e.beforeSource || !v(t.imports, e.beforeImports)) && Z("The CodeModule source changed before this operation was applied."), r[e.moduleId] = {
|
|
5240
5254
|
...t,
|
|
5241
5255
|
imports: e.imports,
|
|
5242
5256
|
source: e.source
|
|
@@ -5245,7 +5259,7 @@ function Sl(e, t) {
|
|
|
5245
5259
|
}
|
|
5246
5260
|
case "subflow.create":
|
|
5247
5261
|
n.subflows[e.subflowId] != null && Z("A Subflow with this ID already exists.");
|
|
5248
|
-
for (let t of Object.values(e.subflow.graph.nodes)) t.kind == "task" && t.task?.capabilities !== void 0 &&
|
|
5262
|
+
for (let t of Object.values(e.subflow.graph.nodes)) t.kind == "task" && t.task?.capabilities !== void 0 && vl(t.task.capabilities);
|
|
5249
5263
|
n.subflows = {
|
|
5250
5264
|
...n.subflows,
|
|
5251
5265
|
[e.subflowId]: e.subflow
|
|
@@ -5253,7 +5267,7 @@ function Sl(e, t) {
|
|
|
5253
5267
|
break;
|
|
5254
5268
|
case "subflow.definition.set": {
|
|
5255
5269
|
let t = n.subflows[e.subflowId];
|
|
5256
|
-
t ?? Z("The Subflow does not exist."),
|
|
5270
|
+
t ?? Z("The Subflow does not exist."), v({
|
|
5257
5271
|
inputs: t.inputs,
|
|
5258
5272
|
name: t.name,
|
|
5259
5273
|
outputs: t.outputs
|
|
@@ -5302,7 +5316,7 @@ function Sl(e, t) {
|
|
|
5302
5316
|
}
|
|
5303
5317
|
case "task.agent.set": {
|
|
5304
5318
|
let t = n.tasks[e.taskId];
|
|
5305
|
-
(t?.executor.kind != "agent" || e.value.executor.kind != "agent") && Z("The Agent Task does not exist."),
|
|
5319
|
+
(t?.executor.kind != "agent" || e.value.executor.kind != "agent") && Z("The Agent Task does not exist."), v(t, e.before) || Z("The Agent Task changed before this operation was applied."), n.tasks = {
|
|
5306
5320
|
...n.tasks,
|
|
5307
5321
|
[e.taskId]: e.value
|
|
5308
5322
|
};
|
|
@@ -5342,14 +5356,14 @@ function Sl(e, t) {
|
|
|
5342
5356
|
}
|
|
5343
5357
|
//#endregion
|
|
5344
5358
|
//#region src/ui/browser/field.tsx
|
|
5345
|
-
function
|
|
5346
|
-
return /* @__PURE__ */
|
|
5359
|
+
function Tl({ className: e, ...t }) {
|
|
5360
|
+
return /* @__PURE__ */ b("div", {
|
|
5347
5361
|
"data-slot": "field-group",
|
|
5348
|
-
className:
|
|
5362
|
+
className: a("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", e),
|
|
5349
5363
|
...t
|
|
5350
5364
|
});
|
|
5351
5365
|
}
|
|
5352
|
-
var
|
|
5366
|
+
var El = m("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
|
|
5353
5367
|
variants: { orientation: {
|
|
5354
5368
|
vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
|
|
5355
5369
|
horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
|
|
@@ -5357,81 +5371,81 @@ var wl = n("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
|
|
|
5357
5371
|
} },
|
|
5358
5372
|
defaultVariants: { orientation: "vertical" }
|
|
5359
5373
|
});
|
|
5360
|
-
function
|
|
5361
|
-
return /* @__PURE__ */
|
|
5374
|
+
function Dl({ className: e, orientation: t = "vertical", ...n }) {
|
|
5375
|
+
return /* @__PURE__ */ b("div", {
|
|
5362
5376
|
role: "group",
|
|
5363
5377
|
"data-slot": "field",
|
|
5364
5378
|
"data-orientation": t,
|
|
5365
|
-
className:
|
|
5379
|
+
className: a(El({ orientation: t }), e),
|
|
5366
5380
|
...n
|
|
5367
5381
|
});
|
|
5368
5382
|
}
|
|
5369
|
-
function
|
|
5370
|
-
return /* @__PURE__ */
|
|
5383
|
+
function Ol({ className: e, ...t }) {
|
|
5384
|
+
return /* @__PURE__ */ b(Me, {
|
|
5371
5385
|
"data-slot": "field-label",
|
|
5372
|
-
className:
|
|
5386
|
+
className: a("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:outline-2 has-[>[data-slot=field]]:has-[:focus-visible]:outline-solid has-[>[data-slot=field]]:has-[:focus-visible]:ring-0 has-[>[data-slot=field]]:has-[:focus-visible]:outline-offset-1 has-[>[data-slot=field]]:has-[:focus-visible]:outline-ring *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", e),
|
|
5373
5387
|
...t
|
|
5374
5388
|
});
|
|
5375
5389
|
}
|
|
5376
|
-
function
|
|
5377
|
-
return /* @__PURE__ */
|
|
5390
|
+
function kl({ className: e, ...t }) {
|
|
5391
|
+
return /* @__PURE__ */ b("p", {
|
|
5378
5392
|
"data-slot": "field-description",
|
|
5379
|
-
className:
|
|
5393
|
+
className: a("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
|
|
5380
5394
|
...t
|
|
5381
5395
|
});
|
|
5382
5396
|
}
|
|
5383
|
-
function
|
|
5384
|
-
let i =
|
|
5397
|
+
function Al({ className: e, children: t, errors: n, ...r }) {
|
|
5398
|
+
let i = ke(() => {
|
|
5385
5399
|
if (t) return t;
|
|
5386
5400
|
if (!n?.length) return null;
|
|
5387
5401
|
let e = [...new Map(n.map((e) => [e?.message, e])).values()];
|
|
5388
|
-
return e?.length == 1 ? e[0]?.message : /* @__PURE__ */
|
|
5402
|
+
return e?.length == 1 ? e[0]?.message : /* @__PURE__ */ b("ul", {
|
|
5389
5403
|
className: "ml-4 flex list-disc flex-col gap-1",
|
|
5390
|
-
children: e.map((e, t) => e?.message && /* @__PURE__ */
|
|
5404
|
+
children: e.map((e, t) => e?.message && /* @__PURE__ */ b("li", { children: e.message }, t))
|
|
5391
5405
|
});
|
|
5392
5406
|
}, [t, n]);
|
|
5393
|
-
return i ? /* @__PURE__ */
|
|
5407
|
+
return i ? /* @__PURE__ */ b("div", {
|
|
5394
5408
|
role: "alert",
|
|
5395
5409
|
"data-slot": "field-error",
|
|
5396
|
-
className:
|
|
5410
|
+
className: a("text-sm font-normal text-destructive", e),
|
|
5397
5411
|
...r,
|
|
5398
5412
|
children: i
|
|
5399
5413
|
}) : null;
|
|
5400
5414
|
}
|
|
5401
5415
|
//#endregion
|
|
5402
5416
|
//#region src/ui/browser/spinner.tsx
|
|
5403
|
-
function
|
|
5404
|
-
return /* @__PURE__ */
|
|
5417
|
+
function jl({ className: e, ...t }) {
|
|
5418
|
+
return /* @__PURE__ */ b(Ae, {
|
|
5405
5419
|
"data-slot": "spinner",
|
|
5406
5420
|
role: "status",
|
|
5407
5421
|
"aria-label": "Loading",
|
|
5408
|
-
className:
|
|
5422
|
+
className: a("size-4 animate-spin", e),
|
|
5409
5423
|
...t
|
|
5410
5424
|
});
|
|
5411
5425
|
}
|
|
5412
5426
|
//#endregion
|
|
5413
5427
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/DialogRootContext.js
|
|
5414
|
-
var
|
|
5415
|
-
process.env.NODE_ENV !== "production" && (
|
|
5416
|
-
function
|
|
5417
|
-
let t =
|
|
5418
|
-
if (e === !1 && t === void 0) throw Error(process.env.NODE_ENV === "production" ?
|
|
5428
|
+
var Ml = /*#__PURE__*/ S.createContext(void 0);
|
|
5429
|
+
process.env.NODE_ENV !== "production" && (Ml.displayName = "DialogRootContext");
|
|
5430
|
+
function Nl(e) {
|
|
5431
|
+
let t = S.useContext(Ml);
|
|
5432
|
+
if (e === !1 && t === void 0) throw Error(process.env.NODE_ENV === "production" ? ce(27) : "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");
|
|
5419
5433
|
return t;
|
|
5420
5434
|
}
|
|
5421
5435
|
//#endregion
|
|
5422
5436
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.js
|
|
5423
|
-
var
|
|
5424
|
-
...
|
|
5425
|
-
...
|
|
5426
|
-
},
|
|
5427
|
-
let { render: n, className: r, style:
|
|
5437
|
+
var Pl = {
|
|
5438
|
+
...h,
|
|
5439
|
+
...ue
|
|
5440
|
+
}, Fl = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
5441
|
+
let { render: n, className: r, style: a, forceRender: o = !1, ...s } = e, { store: c } = Nl(), l = c.useState("open"), u = c.useState("nested"), d = c.useState("mounted"), f = {
|
|
5428
5442
|
open: l,
|
|
5429
5443
|
transitionStatus: c.useState("transitionStatus")
|
|
5430
5444
|
};
|
|
5431
|
-
return
|
|
5445
|
+
return i("div", e, {
|
|
5432
5446
|
state: f,
|
|
5433
5447
|
ref: [c.context.backdropRef, t],
|
|
5434
|
-
stateAttributesMapping:
|
|
5448
|
+
stateAttributesMapping: Pl,
|
|
5435
5449
|
props: [{
|
|
5436
5450
|
role: "presentation",
|
|
5437
5451
|
hidden: !d,
|
|
@@ -5439,24 +5453,24 @@ var Ml = {
|
|
|
5439
5453
|
userSelect: "none",
|
|
5440
5454
|
WebkitUserSelect: "none"
|
|
5441
5455
|
}
|
|
5442
|
-
},
|
|
5443
|
-
enabled:
|
|
5456
|
+
}, s],
|
|
5457
|
+
enabled: o || !u
|
|
5444
5458
|
});
|
|
5445
5459
|
});
|
|
5446
|
-
process.env.NODE_ENV !== "production" && (
|
|
5460
|
+
process.env.NODE_ENV !== "production" && (Fl.displayName = "DialogBackdrop");
|
|
5447
5461
|
//#endregion
|
|
5448
5462
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/close/DialogClose.js
|
|
5449
|
-
var
|
|
5450
|
-
let { render: n, className: r, disabled:
|
|
5463
|
+
var Il = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
5464
|
+
let { render: n, className: r, disabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { store: l } = Nl(), u = l.useState("open");
|
|
5451
5465
|
function d(e) {
|
|
5452
|
-
u && l.setOpen(!1,
|
|
5466
|
+
u && l.setOpen(!1, fe(re, e.nativeEvent));
|
|
5453
5467
|
}
|
|
5454
|
-
let { getButtonProps: f, buttonRef: p } =
|
|
5455
|
-
disabled:
|
|
5456
|
-
native:
|
|
5468
|
+
let { getButtonProps: f, buttonRef: p } = ne({
|
|
5469
|
+
disabled: a,
|
|
5470
|
+
native: o
|
|
5457
5471
|
});
|
|
5458
|
-
return
|
|
5459
|
-
state: { disabled:
|
|
5472
|
+
return i("button", e, {
|
|
5473
|
+
state: { disabled: a },
|
|
5460
5474
|
ref: [t, p],
|
|
5461
5475
|
props: [
|
|
5462
5476
|
{ onClick: d },
|
|
@@ -5465,69 +5479,69 @@ var Pl = /*#__PURE__*/ x.forwardRef(function(e, t) {
|
|
|
5465
5479
|
]
|
|
5466
5480
|
});
|
|
5467
5481
|
});
|
|
5468
|
-
process.env.NODE_ENV !== "production" && (
|
|
5482
|
+
process.env.NODE_ENV !== "production" && (Il.displayName = "DialogClose");
|
|
5469
5483
|
//#endregion
|
|
5470
5484
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/description/DialogDescription.js
|
|
5471
|
-
var
|
|
5472
|
-
let { render: n, className: r, style:
|
|
5473
|
-
return c.useSyncedValueWithCleanup("descriptionElementId", l),
|
|
5485
|
+
var Ll = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
5486
|
+
let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = Nl(), l = d(o);
|
|
5487
|
+
return c.useSyncedValueWithCleanup("descriptionElementId", l), i("p", e, {
|
|
5474
5488
|
ref: t,
|
|
5475
|
-
props: [{ id: l },
|
|
5489
|
+
props: [{ id: l }, s]
|
|
5476
5490
|
});
|
|
5477
5491
|
});
|
|
5478
|
-
process.env.NODE_ENV !== "production" && (
|
|
5492
|
+
process.env.NODE_ENV !== "production" && (Ll.displayName = "DialogDescription");
|
|
5479
5493
|
//#endregion
|
|
5480
5494
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars.js
|
|
5481
|
-
var
|
|
5495
|
+
var Rl = /*#__PURE__*/ function(e) {
|
|
5482
5496
|
return e.nestedDialogs = "--nested-dialogs", e;
|
|
5483
|
-
}({}),
|
|
5484
|
-
return e[e.open =
|
|
5485
|
-
}({}),
|
|
5486
|
-
process.env.NODE_ENV !== "production" && (
|
|
5487
|
-
function
|
|
5488
|
-
let e =
|
|
5489
|
-
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ?
|
|
5497
|
+
}({}), zl = function(e) {
|
|
5498
|
+
return e[e.open = Oe.open] = "open", e[e.closed = Oe.closed] = "closed", e[e.startingStyle = Oe.startingStyle] = "startingStyle", e[e.endingStyle = Oe.endingStyle] = "endingStyle", e.nested = "data-nested", e.nestedDialogOpen = "data-nested-dialog-open", e;
|
|
5499
|
+
}({}), Bl = /*#__PURE__*/ S.createContext(void 0);
|
|
5500
|
+
process.env.NODE_ENV !== "production" && (Bl.displayName = "DialogPortalContext");
|
|
5501
|
+
function Vl() {
|
|
5502
|
+
let e = S.useContext(Bl);
|
|
5503
|
+
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? ce(26) : "Base UI: <Dialog.Portal> is missing.");
|
|
5490
5504
|
return e;
|
|
5491
5505
|
}
|
|
5492
5506
|
//#endregion
|
|
5493
5507
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js
|
|
5494
|
-
var
|
|
5495
|
-
...
|
|
5496
|
-
...
|
|
5508
|
+
var Hl = {
|
|
5509
|
+
...h,
|
|
5510
|
+
...ue,
|
|
5497
5511
|
nestedDialogOpen(e) {
|
|
5498
|
-
return e ? { [
|
|
5512
|
+
return e ? { [zl.nestedDialogOpen]: "" } : null;
|
|
5499
5513
|
}
|
|
5500
|
-
},
|
|
5501
|
-
let { className: n, finalFocus: r, initialFocus:
|
|
5502
|
-
|
|
5503
|
-
open:
|
|
5514
|
+
}, Ul = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
5515
|
+
let { className: n, finalFocus: r, initialFocus: a, render: o, style: s, ...c } = e, { store: l } = Nl(), u = l.useState("descriptionElementId"), d = l.useState("disablePointerDismissal"), f = l.useState("floatingRootContext"), p = l.useState("popupProps"), m = l.useState("modal"), h = l.useState("mounted"), g = l.useState("nested"), _ = l.useState("nestedOpenDialogCount"), ee = l.useState("open"), te = l.useState("openMethod"), ne = l.useState("titleElementId"), re = l.useState("transitionStatus"), ie = l.useState("role");
|
|
5516
|
+
Vl(), _e({
|
|
5517
|
+
open: ee,
|
|
5504
5518
|
ref: l.context.popupRef,
|
|
5505
5519
|
onComplete() {
|
|
5506
|
-
|
|
5520
|
+
ee && l.context.onOpenChangeComplete?.(!0);
|
|
5507
5521
|
}
|
|
5508
5522
|
});
|
|
5509
|
-
function
|
|
5523
|
+
function oe(e) {
|
|
5510
5524
|
return e !== "touch" || l.context.popupRef.current;
|
|
5511
5525
|
}
|
|
5512
|
-
let
|
|
5526
|
+
let se = a === void 0 ? oe : a, ce = i("div", e, {
|
|
5513
5527
|
state: {
|
|
5514
|
-
open:
|
|
5515
|
-
nested:
|
|
5516
|
-
transitionStatus:
|
|
5517
|
-
nestedDialogOpen:
|
|
5528
|
+
open: ee,
|
|
5529
|
+
nested: g,
|
|
5530
|
+
transitionStatus: re,
|
|
5531
|
+
nestedDialogOpen: _ > 0
|
|
5518
5532
|
},
|
|
5519
5533
|
props: [
|
|
5520
5534
|
p,
|
|
5521
5535
|
{
|
|
5522
|
-
"aria-labelledby":
|
|
5536
|
+
"aria-labelledby": ne ?? void 0,
|
|
5523
5537
|
"aria-describedby": u ?? void 0,
|
|
5524
|
-
role:
|
|
5538
|
+
role: ie,
|
|
5525
5539
|
tabIndex: -1,
|
|
5526
|
-
hidden: !
|
|
5540
|
+
hidden: !h,
|
|
5527
5541
|
onKeyDown(e) {
|
|
5528
|
-
|
|
5542
|
+
Te.has(e.key) && e.stopPropagation();
|
|
5529
5543
|
},
|
|
5530
|
-
style: { [
|
|
5544
|
+
style: { [Rl.nestedDialogs]: _ }
|
|
5531
5545
|
},
|
|
5532
5546
|
c
|
|
5533
5547
|
],
|
|
@@ -5536,102 +5550,102 @@ var Bl = {
|
|
|
5536
5550
|
l.context.popupRef,
|
|
5537
5551
|
l.useStateSetter("popupElement")
|
|
5538
5552
|
],
|
|
5539
|
-
stateAttributesMapping:
|
|
5553
|
+
stateAttributesMapping: Hl
|
|
5540
5554
|
});
|
|
5541
|
-
return /*#__PURE__*/
|
|
5555
|
+
return /*#__PURE__*/ b(ae, {
|
|
5542
5556
|
context: f,
|
|
5543
|
-
openInteractionType:
|
|
5544
|
-
disabled: !
|
|
5557
|
+
openInteractionType: te,
|
|
5558
|
+
disabled: !h,
|
|
5545
5559
|
closeOnFocusOut: !d,
|
|
5546
|
-
initialFocus:
|
|
5560
|
+
initialFocus: se,
|
|
5547
5561
|
returnFocus: r,
|
|
5548
5562
|
modal: m !== !1,
|
|
5549
5563
|
restoreFocus: "popup",
|
|
5550
|
-
children:
|
|
5564
|
+
children: ce
|
|
5551
5565
|
});
|
|
5552
5566
|
});
|
|
5553
|
-
process.env.NODE_ENV !== "production" && (
|
|
5567
|
+
process.env.NODE_ENV !== "production" && (Ul.displayName = "DialogPopup");
|
|
5554
5568
|
//#endregion
|
|
5555
5569
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.js
|
|
5556
|
-
var
|
|
5557
|
-
let { keepMounted:
|
|
5558
|
-
return
|
|
5559
|
-
value:
|
|
5560
|
-
children: /*#__PURE__*/
|
|
5561
|
-
ref:
|
|
5562
|
-
...
|
|
5563
|
-
children: [
|
|
5564
|
-
ref:
|
|
5565
|
-
inert:
|
|
5570
|
+
var Wl = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
5571
|
+
let { keepMounted: n = !1, ...r } = e, { store: i } = Nl(), a = i.useState("mounted"), o = i.useState("modal"), s = i.useState("open");
|
|
5572
|
+
return a || n ? /*#__PURE__*/ b(Bl.Provider, {
|
|
5573
|
+
value: n,
|
|
5574
|
+
children: /*#__PURE__*/ x(de, {
|
|
5575
|
+
ref: t,
|
|
5576
|
+
...r,
|
|
5577
|
+
children: [a && o === !0 && /*#__PURE__*/ b(l, {
|
|
5578
|
+
ref: i.context.internalBackdropRef,
|
|
5579
|
+
inert: c(!s)
|
|
5566
5580
|
}), e.children]
|
|
5567
5581
|
})
|
|
5568
5582
|
}) : null;
|
|
5569
5583
|
});
|
|
5570
|
-
process.env.NODE_ENV !== "production" && (
|
|
5584
|
+
process.env.NODE_ENV !== "production" && (Wl.displayName = "DialogPortal");
|
|
5571
5585
|
//#endregion
|
|
5572
5586
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot.js
|
|
5573
|
-
function
|
|
5574
|
-
let { store:
|
|
5575
|
-
|
|
5576
|
-
let { forceUnmount: h } =
|
|
5577
|
-
|
|
5578
|
-
}, [
|
|
5579
|
-
|
|
5587
|
+
function Gl(n) {
|
|
5588
|
+
let { store: r, parentContext: i, actionsRef: a, isDrawer: c } = n, l = r.useState("open"), u = r.useState("disablePointerDismissal"), d = r.useState("modal"), f = r.useState("popupElement"), { openMethod: p, triggerProps: m } = g(l);
|
|
5589
|
+
e(r);
|
|
5590
|
+
let { forceUnmount: h } = le(l, r), _ = S.useCallback(() => {
|
|
5591
|
+
r.setOpen(!1, fe(Ee));
|
|
5592
|
+
}, [r]);
|
|
5593
|
+
S.useImperativeHandle(a, () => ({
|
|
5580
5594
|
unmount: h,
|
|
5581
|
-
close:
|
|
5582
|
-
}), [h,
|
|
5583
|
-
let
|
|
5584
|
-
popupStore:
|
|
5585
|
-
onOpenChange:
|
|
5595
|
+
close: _
|
|
5596
|
+
}), [h, _]);
|
|
5597
|
+
let te = ee({
|
|
5598
|
+
popupStore: r,
|
|
5599
|
+
onOpenChange: r.setOpen,
|
|
5586
5600
|
treatPopupAsFloatingElement: !0
|
|
5587
|
-
}), [
|
|
5601
|
+
}), [ne, re] = S.useState(0), [ie, ae] = S.useState(0), oe = ne === 0, ce = s(te), ue = Se(te, {
|
|
5588
5602
|
outsidePressEvent() {
|
|
5589
|
-
return
|
|
5590
|
-
mouse:
|
|
5603
|
+
return r.context.internalBackdropRef.current || r.context.backdropRef.current ? "intentional" : {
|
|
5604
|
+
mouse: d === "trap-focus" ? "sloppy" : "intentional",
|
|
5591
5605
|
touch: "sloppy"
|
|
5592
5606
|
};
|
|
5593
5607
|
},
|
|
5594
5608
|
outsidePress(e) {
|
|
5595
|
-
if (!
|
|
5596
|
-
let n =
|
|
5597
|
-
if (
|
|
5609
|
+
if (!r.context.outsidePressEnabledRef.current || "button" in e && e.button !== 0 || "touches" in e && e.touches.length !== 1) return !1;
|
|
5610
|
+
let n = se(e);
|
|
5611
|
+
if (oe && !u) {
|
|
5598
5612
|
let e = n;
|
|
5599
|
-
return
|
|
5613
|
+
return d && (r.context.internalBackdropRef.current || r.context.backdropRef.current) ? r.context.internalBackdropRef.current === e || r.context.backdropRef.current === e || t(e, f) && !e?.hasAttribute("data-base-ui-portal") : !0;
|
|
5600
5614
|
}
|
|
5601
5615
|
return !1;
|
|
5602
5616
|
},
|
|
5603
|
-
escapeKey:
|
|
5617
|
+
escapeKey: oe
|
|
5604
5618
|
});
|
|
5605
|
-
|
|
5606
|
-
let { getReferenceProps:
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
}),
|
|
5610
|
-
|
|
5611
|
-
}),
|
|
5612
|
-
|
|
5619
|
+
he(l && d === !0, f);
|
|
5620
|
+
let { getReferenceProps: de, getFloatingProps: pe, getTriggerProps: me } = o([ce, ue]);
|
|
5621
|
+
r.useContextCallback("onNestedDialogOpen", (e, t) => {
|
|
5622
|
+
re(e), ae(t);
|
|
5623
|
+
}), r.useContextCallback("onNestedDialogClose", () => {
|
|
5624
|
+
re(0), ae(0);
|
|
5625
|
+
}), S.useEffect(() => (i?.onNestedDialogOpen && l && i.onNestedDialogOpen(ne + 1, ie + +!!c), i?.onNestedDialogClose && !l && i.onNestedDialogClose(), () => {
|
|
5626
|
+
i?.onNestedDialogClose && l && i.onNestedDialogClose();
|
|
5613
5627
|
}), [
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5628
|
+
c,
|
|
5629
|
+
l,
|
|
5630
|
+
ne,
|
|
5631
|
+
ie,
|
|
5632
|
+
i
|
|
5619
5633
|
]);
|
|
5620
|
-
let
|
|
5621
|
-
|
|
5634
|
+
let ge = S.useMemo(() => de(m), [de, m]), _e = S.useMemo(() => me(m), [me, m]), ve = S.useMemo(() => pe(), [pe]);
|
|
5635
|
+
r.useSyncedValues({
|
|
5622
5636
|
openMethod: p,
|
|
5623
|
-
activeTriggerProps:
|
|
5624
|
-
inactiveTriggerProps:
|
|
5625
|
-
popupProps:
|
|
5626
|
-
floatingRootContext:
|
|
5627
|
-
nestedOpenDialogCount:
|
|
5628
|
-
nestedOpenDrawerCount:
|
|
5637
|
+
activeTriggerProps: ge,
|
|
5638
|
+
inactiveTriggerProps: _e,
|
|
5639
|
+
popupProps: ve,
|
|
5640
|
+
floatingRootContext: te,
|
|
5641
|
+
nestedOpenDialogCount: ne,
|
|
5642
|
+
nestedOpenDrawerCount: ie
|
|
5629
5643
|
});
|
|
5630
5644
|
}
|
|
5631
5645
|
//#endregion
|
|
5632
5646
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/store/DialogStore.js
|
|
5633
|
-
var
|
|
5634
|
-
...
|
|
5647
|
+
var Kl = {
|
|
5648
|
+
...te,
|
|
5635
5649
|
modal: r((e) => e.modal),
|
|
5636
5650
|
nested: r((e) => e.nested),
|
|
5637
5651
|
nestedOpenDialogCount: r((e) => e.nestedOpenDialogCount),
|
|
@@ -5642,17 +5656,17 @@ var Wl = {
|
|
|
5642
5656
|
titleElementId: r((e) => e.titleElementId),
|
|
5643
5657
|
viewportElement: r((e) => e.viewportElement),
|
|
5644
5658
|
role: r((e) => e.role)
|
|
5645
|
-
},
|
|
5659
|
+
}, ql = class e extends De {
|
|
5646
5660
|
constructor(e) {
|
|
5647
|
-
super(
|
|
5648
|
-
popupRef: /*#__PURE__*/
|
|
5649
|
-
backdropRef: /*#__PURE__*/
|
|
5650
|
-
internalBackdropRef: /*#__PURE__*/
|
|
5661
|
+
super(Jl(e), {
|
|
5662
|
+
popupRef: /*#__PURE__*/ S.createRef(),
|
|
5663
|
+
backdropRef: /*#__PURE__*/ S.createRef(),
|
|
5664
|
+
internalBackdropRef: /*#__PURE__*/ S.createRef(),
|
|
5651
5665
|
outsidePressEnabledRef: { current: !0 },
|
|
5652
|
-
triggerElements: new
|
|
5666
|
+
triggerElements: new f(),
|
|
5653
5667
|
onOpenChange: void 0,
|
|
5654
5668
|
onOpenChangeComplete: void 0
|
|
5655
|
-
},
|
|
5669
|
+
}, Kl);
|
|
5656
5670
|
}
|
|
5657
5671
|
setOpen = (e, t) => {
|
|
5658
5672
|
if (t.preventUnmountOnClose = () => {
|
|
@@ -5663,13 +5677,13 @@ var Wl = {
|
|
|
5663
5677
|
(r || e) && (n.activeTriggerId = r, n.activeTriggerElement = t.trigger ?? null), this.update(n);
|
|
5664
5678
|
};
|
|
5665
5679
|
static useStore(t, n) {
|
|
5666
|
-
let r =
|
|
5680
|
+
let r = xe(() => new e(n)).current;
|
|
5667
5681
|
return t ?? r;
|
|
5668
5682
|
}
|
|
5669
5683
|
};
|
|
5670
|
-
function
|
|
5684
|
+
function Jl(e = {}) {
|
|
5671
5685
|
return {
|
|
5672
|
-
...
|
|
5686
|
+
..._(),
|
|
5673
5687
|
modal: !0,
|
|
5674
5688
|
disablePointerDismissal: !1,
|
|
5675
5689
|
popupElement: null,
|
|
@@ -5686,277 +5700,277 @@ function Kl(e = {}) {
|
|
|
5686
5700
|
}
|
|
5687
5701
|
//#endregion
|
|
5688
5702
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.js
|
|
5689
|
-
var
|
|
5690
|
-
process.env.NODE_ENV !== "production" && (
|
|
5691
|
-
function
|
|
5692
|
-
let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, disablePointerDismissal: o = !1, modal: s = !0, actionsRef: c, handle: l, triggerId:
|
|
5703
|
+
var Yl = /*#__PURE__*/ S.createContext(!1);
|
|
5704
|
+
process.env.NODE_ENV !== "production" && (Yl.displayName = "IsDrawerContext");
|
|
5705
|
+
function Xl(e) {
|
|
5706
|
+
let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, disablePointerDismissal: o = !1, modal: s = !0, actionsRef: c, handle: l, triggerId: d, defaultTriggerId: f = null } = e, p = Nl(!0), m = S.useContext(Yl), h = !!p, g = ql.useStore(l?.store, {
|
|
5693
5707
|
open: r,
|
|
5694
5708
|
openProp: n,
|
|
5695
|
-
activeTriggerId:
|
|
5696
|
-
triggerIdProp:
|
|
5709
|
+
activeTriggerId: f,
|
|
5710
|
+
triggerIdProp: d,
|
|
5697
5711
|
modal: s,
|
|
5698
5712
|
disablePointerDismissal: o,
|
|
5699
|
-
nested:
|
|
5713
|
+
nested: h
|
|
5700
5714
|
});
|
|
5701
|
-
|
|
5702
|
-
n === void 0 &&
|
|
5715
|
+
u(() => {
|
|
5716
|
+
n === void 0 && g.state.open === !1 && r === !0 && g.update({
|
|
5703
5717
|
open: !0,
|
|
5704
|
-
activeTriggerId:
|
|
5718
|
+
activeTriggerId: f
|
|
5705
5719
|
});
|
|
5706
|
-
}),
|
|
5720
|
+
}), g.useControlledProp("openProp", n), g.useControlledProp("triggerIdProp", d), g.useSyncedValues({
|
|
5707
5721
|
disablePointerDismissal: o,
|
|
5708
|
-
nested:
|
|
5722
|
+
nested: h,
|
|
5709
5723
|
modal: s
|
|
5710
|
-
}),
|
|
5711
|
-
let
|
|
5712
|
-
|
|
5713
|
-
store:
|
|
5724
|
+
}), g.useContextCallback("onOpenChange", i), g.useContextCallback("onOpenChangeComplete", a);
|
|
5725
|
+
let _ = g.useState("payload");
|
|
5726
|
+
Gl({
|
|
5727
|
+
store: g,
|
|
5714
5728
|
actionsRef: c,
|
|
5715
|
-
parentContext:
|
|
5729
|
+
parentContext: p?.store.context,
|
|
5716
5730
|
isDrawer: m,
|
|
5717
5731
|
onOpenChange: i,
|
|
5718
|
-
triggerIdProp:
|
|
5732
|
+
triggerIdProp: d
|
|
5719
5733
|
});
|
|
5720
|
-
let
|
|
5721
|
-
return /*#__PURE__*/
|
|
5734
|
+
let ee = S.useMemo(() => ({ store: g }), [g]);
|
|
5735
|
+
return /*#__PURE__*/ b(Yl.Provider, {
|
|
5722
5736
|
value: !1,
|
|
5723
|
-
children: /*#__PURE__*/
|
|
5724
|
-
value:
|
|
5725
|
-
children: typeof t == "function" ? t({ payload:
|
|
5737
|
+
children: /*#__PURE__*/ b(Ml.Provider, {
|
|
5738
|
+
value: ee,
|
|
5739
|
+
children: typeof t == "function" ? t({ payload: _ }) : t
|
|
5726
5740
|
})
|
|
5727
5741
|
});
|
|
5728
5742
|
}
|
|
5729
5743
|
//#endregion
|
|
5730
5744
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/title/DialogTitle.js
|
|
5731
|
-
var
|
|
5732
|
-
let { render: n, className: r, style:
|
|
5733
|
-
return c.useSyncedValueWithCleanup("titleElementId", l),
|
|
5745
|
+
var Zl = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
5746
|
+
let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = Nl(), l = d(o);
|
|
5747
|
+
return c.useSyncedValueWithCleanup("titleElementId", l), i("h2", e, {
|
|
5734
5748
|
ref: t,
|
|
5735
|
-
props: [{ id: l },
|
|
5749
|
+
props: [{ id: l }, s]
|
|
5736
5750
|
});
|
|
5737
5751
|
});
|
|
5738
|
-
process.env.NODE_ENV !== "production" && (
|
|
5752
|
+
process.env.NODE_ENV !== "production" && (Zl.displayName = "DialogTitle");
|
|
5739
5753
|
//#endregion
|
|
5740
5754
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/trigger/DialogTrigger.js
|
|
5741
|
-
var
|
|
5742
|
-
let { render:
|
|
5743
|
-
if (!
|
|
5744
|
-
let
|
|
5755
|
+
var Ql = /*#__PURE__*/ S.forwardRef(function(e, t) {
|
|
5756
|
+
let { render: n, className: r, disabled: a = !1, nativeButton: s = !0, id: c, payload: l, handle: u, style: f, ...m } = e, h = Nl(!0), g = u?.store ?? h?.store;
|
|
5757
|
+
if (!g) throw Error(process.env.NODE_ENV === "production" ? ce(79) : "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle.");
|
|
5758
|
+
let _ = d(c), ee = g.useState("floatingRootContext"), te = g.useState("isOpenedByTrigger", _), re = S.useRef(null), { registerTrigger: ie, isMountedByThisTrigger: ae } = we(_, re, g, { payload: l }), { getButtonProps: oe, buttonRef: se } = ne({
|
|
5745
5759
|
disabled: a,
|
|
5746
|
-
native:
|
|
5747
|
-
}),
|
|
5760
|
+
native: s
|
|
5761
|
+
}), le = me(ee, { enabled: ee != null }), ue = o([le]), de = {
|
|
5748
5762
|
disabled: a,
|
|
5749
|
-
open:
|
|
5750
|
-
},
|
|
5751
|
-
return
|
|
5752
|
-
state:
|
|
5763
|
+
open: te
|
|
5764
|
+
}, fe = g.useState("triggerProps", ae);
|
|
5765
|
+
return i("button", e, {
|
|
5766
|
+
state: de,
|
|
5753
5767
|
ref: [
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5768
|
+
se,
|
|
5769
|
+
t,
|
|
5770
|
+
ie,
|
|
5771
|
+
re
|
|
5758
5772
|
],
|
|
5759
5773
|
props: [
|
|
5760
|
-
|
|
5761
|
-
|
|
5774
|
+
ue.getReferenceProps(),
|
|
5775
|
+
fe,
|
|
5762
5776
|
{
|
|
5763
|
-
[
|
|
5764
|
-
id:
|
|
5777
|
+
[ve]: "",
|
|
5778
|
+
id: _
|
|
5765
5779
|
},
|
|
5766
|
-
|
|
5767
|
-
|
|
5780
|
+
m,
|
|
5781
|
+
oe
|
|
5768
5782
|
],
|
|
5769
|
-
stateAttributesMapping:
|
|
5783
|
+
stateAttributesMapping: p
|
|
5770
5784
|
});
|
|
5771
5785
|
});
|
|
5772
|
-
process.env.NODE_ENV !== "production" && (
|
|
5786
|
+
process.env.NODE_ENV !== "production" && (Ql.displayName = "DialogTrigger");
|
|
5773
5787
|
//#endregion
|
|
5774
5788
|
//#region src/ui/browser/dialog.tsx
|
|
5775
|
-
function
|
|
5776
|
-
return /* @__PURE__ */
|
|
5789
|
+
function $l(e) {
|
|
5790
|
+
return /* @__PURE__ */ b(Xl, {
|
|
5777
5791
|
"data-slot": "dialog",
|
|
5778
5792
|
...e
|
|
5779
5793
|
});
|
|
5780
5794
|
}
|
|
5781
|
-
function
|
|
5782
|
-
return /* @__PURE__ */
|
|
5795
|
+
function eu(e) {
|
|
5796
|
+
return /* @__PURE__ */ b(Ql, {
|
|
5783
5797
|
"data-slot": "dialog-trigger",
|
|
5784
5798
|
...e
|
|
5785
5799
|
});
|
|
5786
5800
|
}
|
|
5787
|
-
function
|
|
5788
|
-
return /* @__PURE__ */
|
|
5801
|
+
function tu(e) {
|
|
5802
|
+
return /* @__PURE__ */ b(Wl, {
|
|
5789
5803
|
"data-slot": "dialog-portal",
|
|
5790
5804
|
...e
|
|
5791
5805
|
});
|
|
5792
5806
|
}
|
|
5793
|
-
function
|
|
5794
|
-
return /* @__PURE__ */
|
|
5807
|
+
function nu(e) {
|
|
5808
|
+
return /* @__PURE__ */ b(Il, {
|
|
5795
5809
|
"data-slot": "dialog-close",
|
|
5796
5810
|
...e
|
|
5797
5811
|
});
|
|
5798
5812
|
}
|
|
5799
|
-
function
|
|
5800
|
-
return /* @__PURE__ */
|
|
5813
|
+
function ru({ className: e, ...t }) {
|
|
5814
|
+
return /* @__PURE__ */ b(Fl, {
|
|
5801
5815
|
"data-slot": "dialog-overlay",
|
|
5802
|
-
className:
|
|
5816
|
+
className: a("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 motion-reduce:animate-none motion-reduce:transition-none", e),
|
|
5803
5817
|
...t
|
|
5804
5818
|
});
|
|
5805
5819
|
}
|
|
5806
|
-
function
|
|
5807
|
-
return /* @__PURE__ */
|
|
5808
|
-
container:
|
|
5809
|
-
children: [/* @__PURE__ */
|
|
5820
|
+
function iu({ children: e, className: t, closeLabel: r = "Close", container: i, showCloseButton: o = !0, ...s }) {
|
|
5821
|
+
return /* @__PURE__ */ x(tu, {
|
|
5822
|
+
container: i,
|
|
5823
|
+
children: [/* @__PURE__ */ b(ru, {}), /* @__PURE__ */ x(Ul, {
|
|
5810
5824
|
"data-slot": "dialog-content",
|
|
5811
|
-
className:
|
|
5812
|
-
...
|
|
5813
|
-
children: [e,
|
|
5825
|
+
className: a("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:animate-none motion-reduce:transition-none", t),
|
|
5826
|
+
...s,
|
|
5827
|
+
children: [e, o && /* @__PURE__ */ x(Il, {
|
|
5814
5828
|
"data-slot": "dialog-close",
|
|
5815
|
-
render: /* @__PURE__ */
|
|
5829
|
+
render: /* @__PURE__ */ b(n, {
|
|
5816
5830
|
className: "absolute top-2 right-2",
|
|
5817
5831
|
size: "icon-sm",
|
|
5818
5832
|
variant: "ghost"
|
|
5819
5833
|
}),
|
|
5820
|
-
children: [/* @__PURE__ */
|
|
5834
|
+
children: [/* @__PURE__ */ b(je, {}), /* @__PURE__ */ b("span", {
|
|
5821
5835
|
className: "sr-only",
|
|
5822
|
-
children:
|
|
5836
|
+
children: r
|
|
5823
5837
|
})]
|
|
5824
5838
|
})]
|
|
5825
5839
|
})]
|
|
5826
5840
|
});
|
|
5827
5841
|
}
|
|
5828
|
-
function
|
|
5829
|
-
return /* @__PURE__ */
|
|
5842
|
+
function au({ className: e, ...t }) {
|
|
5843
|
+
return /* @__PURE__ */ b("div", {
|
|
5830
5844
|
"data-slot": "dialog-header",
|
|
5831
|
-
className:
|
|
5845
|
+
className: a("flex flex-col gap-2", e),
|
|
5832
5846
|
...t
|
|
5833
5847
|
});
|
|
5834
5848
|
}
|
|
5835
|
-
function
|
|
5836
|
-
return /* @__PURE__ */
|
|
5849
|
+
function ou({ className: e, ...t }) {
|
|
5850
|
+
return /* @__PURE__ */ b("div", {
|
|
5837
5851
|
"data-slot": "dialog-footer",
|
|
5838
|
-
className:
|
|
5852
|
+
className: a("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t border-border bg-muted/50 p-4 sm:flex-row sm:justify-end", e),
|
|
5839
5853
|
...t
|
|
5840
5854
|
});
|
|
5841
5855
|
}
|
|
5842
|
-
function
|
|
5843
|
-
return /* @__PURE__ */
|
|
5856
|
+
function su({ className: e, ...t }) {
|
|
5857
|
+
return /* @__PURE__ */ b(Zl, {
|
|
5844
5858
|
"data-slot": "dialog-title",
|
|
5845
|
-
className:
|
|
5859
|
+
className: a("text-base leading-none font-medium", e),
|
|
5846
5860
|
...t
|
|
5847
5861
|
});
|
|
5848
5862
|
}
|
|
5849
|
-
function
|
|
5850
|
-
return /* @__PURE__ */
|
|
5863
|
+
function cu({ className: e, ...t }) {
|
|
5864
|
+
return /* @__PURE__ */ b(Ll, {
|
|
5851
5865
|
"data-slot": "dialog-description",
|
|
5852
|
-
className:
|
|
5866
|
+
className: a("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
|
|
5853
5867
|
...t
|
|
5854
5868
|
});
|
|
5855
5869
|
}
|
|
5856
5870
|
//#endregion
|
|
5857
5871
|
//#region src/workbench/browser/runtime/icons.tsx
|
|
5858
|
-
function
|
|
5872
|
+
function lu(e) {
|
|
5859
5873
|
switch (e) {
|
|
5860
|
-
case "alert": return /* @__PURE__ */
|
|
5861
|
-
/* @__PURE__ */
|
|
5874
|
+
case "alert": return /* @__PURE__ */ x(y, { children: [
|
|
5875
|
+
/* @__PURE__ */ b("circle", {
|
|
5862
5876
|
cx: "12",
|
|
5863
5877
|
cy: "12",
|
|
5864
5878
|
r: "9"
|
|
5865
5879
|
}),
|
|
5866
|
-
/* @__PURE__ */
|
|
5867
|
-
/* @__PURE__ */
|
|
5880
|
+
/* @__PURE__ */ b("path", { d: "M12 7v6" }),
|
|
5881
|
+
/* @__PURE__ */ b("path", { d: "M12 17h.01" })
|
|
5868
5882
|
] });
|
|
5869
|
-
case "check": return /* @__PURE__ */
|
|
5870
|
-
case "chevron-down": return /* @__PURE__ */
|
|
5871
|
-
case "chevron-left": return /* @__PURE__ */
|
|
5872
|
-
case "chevron-up": return /* @__PURE__ */
|
|
5873
|
-
case "close": return /* @__PURE__ */
|
|
5874
|
-
case "condition": return /* @__PURE__ */ y
|
|
5875
|
-
case "connection": return /* @__PURE__ */
|
|
5876
|
-
case "download": return /* @__PURE__ */
|
|
5877
|
-
/* @__PURE__ */
|
|
5878
|
-
/* @__PURE__ */
|
|
5879
|
-
/* @__PURE__ */
|
|
5883
|
+
case "check": return /* @__PURE__ */ b("path", { d: "m5 12 4 4L19 6" });
|
|
5884
|
+
case "chevron-down": return /* @__PURE__ */ b("path", { d: "m7 10 5 5 5-5" });
|
|
5885
|
+
case "chevron-left": return /* @__PURE__ */ b("path", { d: "m15 18-6-6 6-6" });
|
|
5886
|
+
case "chevron-up": return /* @__PURE__ */ b("path", { d: "m7 14 5-5 5 5" });
|
|
5887
|
+
case "close": return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("path", { d: "m6 6 12 12" }), /* @__PURE__ */ b("path", { d: "M18 6 6 18" })] });
|
|
5888
|
+
case "condition": return /* @__PURE__ */ b(y, { children: /* @__PURE__ */ b("path", { d: "M5 5h14l-5.5 6v6l-3 2v-8z" }) });
|
|
5889
|
+
case "connection": return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("path", { d: "M10 13a5 5 0 0 0 7.1.1l2-2a5 5 0 0 0-7.1-7.1l-1.1 1.1" }), /* @__PURE__ */ b("path", { d: "M14 11a5 5 0 0 0-7.1-.1l-2 2A5 5 0 0 0 12 20l1.1-1.1" })] });
|
|
5890
|
+
case "download": return /* @__PURE__ */ x(y, { children: [
|
|
5891
|
+
/* @__PURE__ */ b("path", { d: "M12 4v11" }),
|
|
5892
|
+
/* @__PURE__ */ b("path", { d: "m7 10 5 5 5-5" }),
|
|
5893
|
+
/* @__PURE__ */ b("path", { d: "M5 20h14" })
|
|
5880
5894
|
] });
|
|
5881
|
-
case "fit": return /* @__PURE__ */
|
|
5882
|
-
/* @__PURE__ */
|
|
5883
|
-
/* @__PURE__ */
|
|
5884
|
-
/* @__PURE__ */
|
|
5885
|
-
/* @__PURE__ */
|
|
5895
|
+
case "fit": return /* @__PURE__ */ x(y, { children: [
|
|
5896
|
+
/* @__PURE__ */ b("path", { d: "M8 3H3v5" }),
|
|
5897
|
+
/* @__PURE__ */ b("path", { d: "M16 3h5v5" }),
|
|
5898
|
+
/* @__PURE__ */ b("path", { d: "M8 21H3v-5" }),
|
|
5899
|
+
/* @__PURE__ */ b("path", { d: "M16 21h5v-5" })
|
|
5886
5900
|
] });
|
|
5887
|
-
case "filter": return /* @__PURE__ */
|
|
5888
|
-
case "flow": return /* @__PURE__ */
|
|
5889
|
-
/* @__PURE__ */
|
|
5901
|
+
case "filter": return /* @__PURE__ */ b("path", { d: "M4 6h16l-6 7v5l-4 2v-7z" });
|
|
5902
|
+
case "flow": return /* @__PURE__ */ x(y, { children: [
|
|
5903
|
+
/* @__PURE__ */ b("circle", {
|
|
5890
5904
|
cx: "12",
|
|
5891
5905
|
cy: "5",
|
|
5892
5906
|
r: "2"
|
|
5893
5907
|
}),
|
|
5894
|
-
/* @__PURE__ */
|
|
5908
|
+
/* @__PURE__ */ b("circle", {
|
|
5895
5909
|
cx: "6",
|
|
5896
5910
|
cy: "18",
|
|
5897
5911
|
r: "2"
|
|
5898
5912
|
}),
|
|
5899
|
-
/* @__PURE__ */
|
|
5913
|
+
/* @__PURE__ */ b("circle", {
|
|
5900
5914
|
cx: "18",
|
|
5901
5915
|
cy: "18",
|
|
5902
5916
|
r: "2"
|
|
5903
5917
|
}),
|
|
5904
|
-
/* @__PURE__ */
|
|
5918
|
+
/* @__PURE__ */ b("path", { d: "M12 7v4M6 16v-3h12v3" })
|
|
5905
5919
|
] });
|
|
5906
|
-
case "hand": return /* @__PURE__ */
|
|
5907
|
-
case "logo": return /* @__PURE__ */
|
|
5908
|
-
/* @__PURE__ */
|
|
5920
|
+
case "hand": return /* @__PURE__ */ b("path", { d: "M8 11V6a1.5 1.5 0 0 1 3 0v4-6a1.5 1.5 0 0 1 3 0v6-4a1.5 1.5 0 0 1 3 0v5-2a1.5 1.5 0 0 1 3 0v4a8 8 0 0 1-16 0v-2a2 2 0 0 1 4 0Z" });
|
|
5921
|
+
case "logo": return /* @__PURE__ */ x(y, { children: [
|
|
5922
|
+
/* @__PURE__ */ b("circle", {
|
|
5909
5923
|
cx: "7",
|
|
5910
5924
|
cy: "5",
|
|
5911
5925
|
r: "2.5"
|
|
5912
5926
|
}),
|
|
5913
|
-
/* @__PURE__ */
|
|
5927
|
+
/* @__PURE__ */ b("circle", {
|
|
5914
5928
|
cx: "7",
|
|
5915
5929
|
cy: "19",
|
|
5916
5930
|
r: "2.5"
|
|
5917
5931
|
}),
|
|
5918
|
-
/* @__PURE__ */
|
|
5932
|
+
/* @__PURE__ */ b("circle", {
|
|
5919
5933
|
cx: "18",
|
|
5920
5934
|
cy: "12",
|
|
5921
5935
|
r: "2.5"
|
|
5922
5936
|
}),
|
|
5923
|
-
/* @__PURE__ */
|
|
5937
|
+
/* @__PURE__ */ b("path", { d: "M9.2 6.2 15.7 10M9.2 17.8l6.5-3.8M7 7.5v9" })
|
|
5924
5938
|
] });
|
|
5925
|
-
case "llm": return /* @__PURE__ */
|
|
5926
|
-
/* @__PURE__ */
|
|
5927
|
-
/* @__PURE__ */
|
|
5928
|
-
/* @__PURE__ */
|
|
5939
|
+
case "llm": return /* @__PURE__ */ x(y, { children: [
|
|
5940
|
+
/* @__PURE__ */ b("path", { d: "M7 7h10v10H7z" }),
|
|
5941
|
+
/* @__PURE__ */ b("path", { d: "M9 2v3m6-3v3M9 19v3m6-3v3M2 9h3m-3 6h3m14-6h3m-3 6h3" }),
|
|
5942
|
+
/* @__PURE__ */ b("circle", {
|
|
5929
5943
|
cx: "10",
|
|
5930
5944
|
cy: "11",
|
|
5931
5945
|
r: ".7",
|
|
5932
5946
|
fill: "currentColor",
|
|
5933
5947
|
stroke: "none"
|
|
5934
5948
|
}),
|
|
5935
|
-
/* @__PURE__ */
|
|
5949
|
+
/* @__PURE__ */ b("circle", {
|
|
5936
5950
|
cx: "14",
|
|
5937
5951
|
cy: "11",
|
|
5938
5952
|
r: ".7",
|
|
5939
5953
|
fill: "currentColor",
|
|
5940
5954
|
stroke: "none"
|
|
5941
5955
|
}),
|
|
5942
|
-
/* @__PURE__ */
|
|
5956
|
+
/* @__PURE__ */ b("path", { d: "M10 14h4" })
|
|
5943
5957
|
] });
|
|
5944
|
-
case "more": return /* @__PURE__ */
|
|
5945
|
-
/* @__PURE__ */
|
|
5958
|
+
case "more": return /* @__PURE__ */ x(y, { children: [
|
|
5959
|
+
/* @__PURE__ */ b("circle", {
|
|
5946
5960
|
cx: "5",
|
|
5947
5961
|
cy: "12",
|
|
5948
5962
|
r: "1",
|
|
5949
5963
|
fill: "currentColor",
|
|
5950
5964
|
stroke: "none"
|
|
5951
5965
|
}),
|
|
5952
|
-
/* @__PURE__ */
|
|
5966
|
+
/* @__PURE__ */ b("circle", {
|
|
5953
5967
|
cx: "12",
|
|
5954
5968
|
cy: "12",
|
|
5955
5969
|
r: "1",
|
|
5956
5970
|
fill: "currentColor",
|
|
5957
5971
|
stroke: "none"
|
|
5958
5972
|
}),
|
|
5959
|
-
/* @__PURE__ */
|
|
5973
|
+
/* @__PURE__ */ b("circle", {
|
|
5960
5974
|
cx: "19",
|
|
5961
5975
|
cy: "12",
|
|
5962
5976
|
r: "1",
|
|
@@ -5964,119 +5978,119 @@ function su(e) {
|
|
|
5964
5978
|
stroke: "none"
|
|
5965
5979
|
})
|
|
5966
5980
|
] });
|
|
5967
|
-
case "panel": return /* @__PURE__ */
|
|
5981
|
+
case "panel": return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("rect", {
|
|
5968
5982
|
x: "3",
|
|
5969
5983
|
y: "4",
|
|
5970
5984
|
width: "18",
|
|
5971
5985
|
height: "16",
|
|
5972
5986
|
rx: "2"
|
|
5973
|
-
}), /* @__PURE__ */
|
|
5987
|
+
}), /* @__PURE__ */ b("path", { d: "M15 4v16" })] });
|
|
5974
5988
|
case "play":
|
|
5975
|
-
case "run": return /* @__PURE__ */
|
|
5976
|
-
case "pointer": return /* @__PURE__ */
|
|
5977
|
-
case "plus": return /* @__PURE__ */
|
|
5978
|
-
case "project": return /* @__PURE__ */
|
|
5979
|
-
case "publish": return /* @__PURE__ */
|
|
5980
|
-
/* @__PURE__ */
|
|
5981
|
-
/* @__PURE__ */
|
|
5982
|
-
/* @__PURE__ */
|
|
5989
|
+
case "run": return /* @__PURE__ */ b("path", { d: "m8 5 11 7-11 7z" });
|
|
5990
|
+
case "pointer": return /* @__PURE__ */ b("path", { d: "m5 3 13 9-6 1-3 6z" });
|
|
5991
|
+
case "plus": return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("path", { d: "M12 5v14" }), /* @__PURE__ */ b("path", { d: "M5 12h14" })] });
|
|
5992
|
+
case "project": return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("path", { d: "M3 7h6l2 2h10v10H3z" }), /* @__PURE__ */ b("path", { d: "M3 7V5h7l2 2" })] });
|
|
5993
|
+
case "publish": return /* @__PURE__ */ x(y, { children: [
|
|
5994
|
+
/* @__PURE__ */ b("path", { d: "M12 16V4" }),
|
|
5995
|
+
/* @__PURE__ */ b("path", { d: "m7 9 5-5 5 5" }),
|
|
5996
|
+
/* @__PURE__ */ b("path", { d: "M5 14v5h14v-5" })
|
|
5983
5997
|
] });
|
|
5984
|
-
case "refresh": return /* @__PURE__ */
|
|
5985
|
-
/* @__PURE__ */
|
|
5986
|
-
/* @__PURE__ */
|
|
5987
|
-
/* @__PURE__ */
|
|
5988
|
-
/* @__PURE__ */
|
|
5998
|
+
case "refresh": return /* @__PURE__ */ x(y, { children: [
|
|
5999
|
+
/* @__PURE__ */ b("path", { d: "M20 11a8 8 0 0 0-14.7-4.4L3 9" }),
|
|
6000
|
+
/* @__PURE__ */ b("path", { d: "M3 4v5h5" }),
|
|
6001
|
+
/* @__PURE__ */ b("path", { d: "M4 13a8 8 0 0 0 14.7 4.4L21 15" }),
|
|
6002
|
+
/* @__PURE__ */ b("path", { d: "M21 20v-5h-5" })
|
|
5989
6003
|
] });
|
|
5990
|
-
case "search": return /* @__PURE__ */
|
|
6004
|
+
case "search": return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("circle", {
|
|
5991
6005
|
cx: "11",
|
|
5992
6006
|
cy: "11",
|
|
5993
6007
|
r: "7"
|
|
5994
|
-
}), /* @__PURE__ */
|
|
5995
|
-
case "settings": return /* @__PURE__ */
|
|
6008
|
+
}), /* @__PURE__ */ b("path", { d: "m16 16 4 4" })] });
|
|
6009
|
+
case "settings": return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("circle", {
|
|
5996
6010
|
cx: "12",
|
|
5997
6011
|
cy: "12",
|
|
5998
6012
|
r: "3"
|
|
5999
|
-
}), /* @__PURE__ */
|
|
6013
|
+
}), /* @__PURE__ */ b("path", {
|
|
6000
6014
|
d: "M19 13.5v-3l-2-.6-.7-1.7 1-1.8-2.1-2.1-1.8 1-1.7-.7L10.5 3h-3l-.6 2-1.7.7-1.8-1-2.1 2.1 1 1.8-.7 1.7-2 .6v3l2 .6.7 1.7-1 1.8 2.1 2.1 1.8-1 1.7.7.6 2h3l.6-2 1.7-.7 1.8 1 2.1-2.1-1-1.8.7-1.7z",
|
|
6001
6015
|
transform: "translate(2.5) scale(.8)"
|
|
6002
6016
|
})] });
|
|
6003
|
-
case "subflow": return /* @__PURE__ */
|
|
6004
|
-
/* @__PURE__ */
|
|
6017
|
+
case "subflow": return /* @__PURE__ */ x(y, { children: [
|
|
6018
|
+
/* @__PURE__ */ b("rect", {
|
|
6005
6019
|
x: "4",
|
|
6006
6020
|
y: "4",
|
|
6007
6021
|
width: "6",
|
|
6008
6022
|
height: "6",
|
|
6009
6023
|
rx: "1"
|
|
6010
6024
|
}),
|
|
6011
|
-
/* @__PURE__ */
|
|
6025
|
+
/* @__PURE__ */ b("rect", {
|
|
6012
6026
|
x: "14",
|
|
6013
6027
|
y: "14",
|
|
6014
6028
|
width: "6",
|
|
6015
6029
|
height: "6",
|
|
6016
6030
|
rx: "1"
|
|
6017
6031
|
}),
|
|
6018
|
-
/* @__PURE__ */
|
|
6032
|
+
/* @__PURE__ */ b("path", { d: "M10 7h4a3 3 0 0 1 3 3v4M14 17h-4a3 3 0 0 1-3-3v-4" })
|
|
6019
6033
|
] });
|
|
6020
|
-
case "value": return /* @__PURE__ */
|
|
6021
|
-
case "wait": return /* @__PURE__ */
|
|
6034
|
+
case "value": return /* @__PURE__ */ b("path", { d: "m12 3 8 9-8 9-8-9z" });
|
|
6035
|
+
case "wait": return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("circle", {
|
|
6022
6036
|
cx: "12",
|
|
6023
6037
|
cy: "12",
|
|
6024
6038
|
r: "9"
|
|
6025
|
-
}), /* @__PURE__ */
|
|
6026
|
-
case "task": return /* @__PURE__ */
|
|
6039
|
+
}), /* @__PURE__ */ b("path", { d: "M12 7v5l3 2" })] });
|
|
6040
|
+
case "task": return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("rect", {
|
|
6027
6041
|
x: "4",
|
|
6028
6042
|
y: "4",
|
|
6029
6043
|
width: "16",
|
|
6030
6044
|
height: "16",
|
|
6031
6045
|
rx: "3"
|
|
6032
|
-
}), /* @__PURE__ */
|
|
6033
|
-
case "trigger": return /* @__PURE__ */ y
|
|
6034
|
-
case "trash": return /* @__PURE__ */
|
|
6035
|
-
/* @__PURE__ */
|
|
6036
|
-
/* @__PURE__ */
|
|
6037
|
-
/* @__PURE__ */
|
|
6038
|
-
/* @__PURE__ */
|
|
6046
|
+
}), /* @__PURE__ */ b("path", { d: "m9 12 2 2 4-5" })] });
|
|
6047
|
+
case "trigger": return /* @__PURE__ */ b(y, { children: /* @__PURE__ */ b("path", { d: "M13 2 5 14h6l-1 8 8-12h-6z" }) });
|
|
6048
|
+
case "trash": return /* @__PURE__ */ x(y, { children: [
|
|
6049
|
+
/* @__PURE__ */ b("path", { d: "M4 7h16" }),
|
|
6050
|
+
/* @__PURE__ */ b("path", { d: "M9 7V4h6v3" }),
|
|
6051
|
+
/* @__PURE__ */ b("path", { d: "m6 7 1 13h10l1-13" }),
|
|
6052
|
+
/* @__PURE__ */ b("path", { d: "M10 11v5M14 11v5" })
|
|
6039
6053
|
] });
|
|
6040
6054
|
}
|
|
6041
6055
|
}
|
|
6042
|
-
function
|
|
6043
|
-
return /* @__PURE__ */
|
|
6056
|
+
function uu({ name: e, size: t = 18, ...n }) {
|
|
6057
|
+
return /* @__PURE__ */ b("svg", {
|
|
6044
6058
|
"aria-hidden": "true",
|
|
6045
6059
|
fill: "none",
|
|
6046
6060
|
height: t,
|
|
6047
6061
|
viewBox: "0 0 24 24",
|
|
6048
6062
|
width: t,
|
|
6049
6063
|
...n,
|
|
6050
|
-
children: /* @__PURE__ */
|
|
6064
|
+
children: /* @__PURE__ */ b("g", {
|
|
6051
6065
|
stroke: "currentColor",
|
|
6052
6066
|
strokeLinecap: "round",
|
|
6053
6067
|
strokeLinejoin: "round",
|
|
6054
6068
|
strokeWidth: "1.7",
|
|
6055
|
-
children:
|
|
6069
|
+
children: lu(e)
|
|
6056
6070
|
})
|
|
6057
6071
|
});
|
|
6058
6072
|
}
|
|
6059
6073
|
//#endregion
|
|
6060
6074
|
//#region src/workbench/browser/runtime/shell/workbenchSelect.tsx
|
|
6061
|
-
function
|
|
6062
|
-
return /* @__PURE__ */
|
|
6075
|
+
function du({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange: i, options: o, portalRoot: s, size: c, value: l, variant: u }) {
|
|
6076
|
+
return /* @__PURE__ */ x(ye, {
|
|
6063
6077
|
disabled: n,
|
|
6064
6078
|
onValueChange: (e) => {
|
|
6065
6079
|
e != null && i(e);
|
|
6066
6080
|
},
|
|
6067
|
-
value:
|
|
6068
|
-
children: [/* @__PURE__ */
|
|
6081
|
+
value: l,
|
|
6082
|
+
children: [/* @__PURE__ */ b(oe, {
|
|
6069
6083
|
"aria-label": e,
|
|
6070
|
-
className:
|
|
6084
|
+
className: a("min-w-32", t),
|
|
6071
6085
|
id: r,
|
|
6072
|
-
size:
|
|
6073
|
-
variant:
|
|
6074
|
-
children: /* @__PURE__ */
|
|
6075
|
-
}), /* @__PURE__ */
|
|
6086
|
+
size: c,
|
|
6087
|
+
variant: u,
|
|
6088
|
+
children: /* @__PURE__ */ b(ge, { children: o.find((e) => e.value == l)?.label ?? l })
|
|
6089
|
+
}), /* @__PURE__ */ b(pe, {
|
|
6076
6090
|
align: "end",
|
|
6077
6091
|
alignItemWithTrigger: !1,
|
|
6078
|
-
container:
|
|
6079
|
-
children: /* @__PURE__ */
|
|
6092
|
+
container: s,
|
|
6093
|
+
children: /* @__PURE__ */ b(ie, { children: o.map((e) => /* @__PURE__ */ b(be, {
|
|
6080
6094
|
disabled: e.disabled,
|
|
6081
6095
|
value: e.value,
|
|
6082
6096
|
children: e.label
|
|
@@ -6085,4 +6099,4 @@ function lu({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange
|
|
|
6085
6099
|
});
|
|
6086
6100
|
}
|
|
6087
6101
|
//#endregion
|
|
6088
|
-
export {
|
|
6102
|
+
export { Vs as A, Ks as B, _l as C, V as D, G as E, H as F, je as H, W as I, Zs as L, kc as M, K as N, B as O, z as P, hs as R, yl as S, fl as T, Me as V, Sl as _, iu as a, bl as b, au as c, jl as d, Dl as f, Ol as g, Tl as h, nu as i, Nc as j, ec as k, su as l, Al as m, uu as n, cu as o, kl as p, $l as r, ou as s, du as t, eu as u, wl as v, gl as w, xl as x, hl as y, U as z };
|