@ws-ui/http-handlers-editor 1.13.0-dev.5 → 1.13.0-dev.6
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/Standalone/index.d.ts +2 -0
- package/dist/Standalone/style.css +1 -1
- package/dist/adapter/reducer/adapter.d.ts +3 -0
- package/dist/http-handlers-editor.css +1 -1
- package/dist/index.cjs.js +9 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +217 -197
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5,12 +5,12 @@ import * as Ne from "react";
|
|
|
5
5
|
import Ot, { forwardRef as ke, useState as Ie, createContext as ct, useRef as de, useEffect as ce, useCallback as W, useContext as xt, memo as Pl, useMemo as Pe, PureComponent as Al, useImperativeHandle as Hl, useLayoutEffect as Qt, cloneElement as Vl, useReducer as Ro, Component as Ll } from "react";
|
|
6
6
|
import { createPortal as Ur, flushSync as na } from "react-dom";
|
|
7
7
|
import { CSS as Bl } from "@dnd-kit/utilities";
|
|
8
|
-
import { ModalType as
|
|
9
|
-
import
|
|
8
|
+
import { ModalType as Pr, ModalCloseReason as Fl, useDidMountEffect as ia, ModalColor as aa, useHotkeys as jl, ToolbarIcon as yo, Modal as Wl, TipsProvider as $l } from "@ws-ui/shared";
|
|
9
|
+
import Ar from "classnames";
|
|
10
10
|
import { entries as Kl, omit as sa, isEqual as Yr } from "lodash";
|
|
11
|
+
import { generate as er } from "short-uuid";
|
|
11
12
|
import { useAppDispatch as ql, useAppSelector as Un, selectTabByPath as Gl, selectCatalog as Ul, setContent as Yl, switchEditor as Zl, openModal as Xl } from "@ws-ui/store";
|
|
12
13
|
import { z as et } from "zod";
|
|
13
|
-
import { generate as Ar } from "short-uuid";
|
|
14
14
|
import { Subject as la } from "rxjs";
|
|
15
15
|
import Yn from "randexp";
|
|
16
16
|
import { HTTP_HANDLERS_EDITOR_SCOPE_CLASS as Jl } from "./common.es.js";
|
|
@@ -73,7 +73,7 @@ const sc = (e) => /* @__PURE__ */ p("svg", { width: "1em", height: "1em", viewBo
|
|
|
73
73
|
d: "M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",
|
|
74
74
|
fill: "currentColor"
|
|
75
75
|
}
|
|
76
|
-
) }),
|
|
76
|
+
) }), ar = (e) => /* @__PURE__ */ p("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ p(
|
|
77
77
|
"path",
|
|
78
78
|
{
|
|
79
79
|
d: "M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",
|
|
@@ -176,7 +176,7 @@ const sc = (e) => /* @__PURE__ */ p("svg", { width: "1em", height: "1em", viewBo
|
|
|
176
176
|
d: "M9 3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1h6.5a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-19a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5H9V3ZM4 7h16l-.934 14.071a1 1 0 0 1-.997.929H5.93a1 1 0 0 1-.997-.929L4 7Z",
|
|
177
177
|
fill: "currentColor"
|
|
178
178
|
}
|
|
179
|
-
) }),
|
|
179
|
+
) }), Or = (e) => /* @__PURE__ */ p("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ p(
|
|
180
180
|
"path",
|
|
181
181
|
{
|
|
182
182
|
fillRule: "evenodd",
|
|
@@ -463,7 +463,7 @@ const sc = (e) => /* @__PURE__ */ p("svg", { width: "1em", height: "1em", viewBo
|
|
|
463
463
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
464
464
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
465
465
|
$c.test(e) && !Kc.test(e)
|
|
466
|
-
), fa = () => !1, Zc = (e) => qc.test(e), Xc = (e) => Gc.test(e), Jc = (e) => !J(e) && !Q(e), Qc = (e) => Bt(e, wa, fa), J = (e) => ga.test(e), yt = (e) => Bt(e, xa, Yc), so = (e) => Bt(e, nd, pe), ei = (e) => Bt(e, ma, fa), ed = (e) => Bt(e, ba, Xc),
|
|
466
|
+
), fa = () => !1, Zc = (e) => qc.test(e), Xc = (e) => Gc.test(e), Jc = (e) => !J(e) && !Q(e), Qc = (e) => Bt(e, wa, fa), J = (e) => ga.test(e), yt = (e) => Bt(e, xa, Yc), so = (e) => Bt(e, nd, pe), ei = (e) => Bt(e, ma, fa), ed = (e) => Bt(e, ba, Xc), pr = (e) => Bt(e, ya, Zc), Q = (e) => va.test(e), Gt = (e) => Ft(e, xa), td = (e) => Ft(e, id), ti = (e) => Ft(e, ma), rd = (e) => Ft(e, wa), od = (e) => Ft(e, ba), hr = (e) => Ft(e, ya, !0), Bt = (e, r, t) => {
|
|
467
467
|
const o = ga.exec(e);
|
|
468
468
|
return o ? o[1] ? r(o[1]) : t(o[2]) : !1;
|
|
469
469
|
}, Ft = (e, r, t = !1) => {
|
|
@@ -1861,8 +1861,8 @@ const sc = (e) => /* @__PURE__ */ p("svg", { width: "1em", height: "1em", viewBo
|
|
|
1861
1861
|
"",
|
|
1862
1862
|
"none",
|
|
1863
1863
|
d,
|
|
1864
|
-
|
|
1865
|
-
|
|
1864
|
+
hr,
|
|
1865
|
+
pr
|
|
1866
1866
|
]
|
|
1867
1867
|
}],
|
|
1868
1868
|
/**
|
|
@@ -1877,7 +1877,7 @@ const sc = (e) => /* @__PURE__ */ p("svg", { width: "1em", height: "1em", viewBo
|
|
|
1877
1877
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1878
1878
|
*/
|
|
1879
1879
|
"inset-shadow": [{
|
|
1880
|
-
"inset-shadow": ["none", u,
|
|
1880
|
+
"inset-shadow": ["none", u, hr, pr]
|
|
1881
1881
|
}],
|
|
1882
1882
|
/**
|
|
1883
1883
|
* Inset Box Shadow Color
|
|
@@ -1944,7 +1944,7 @@ const sc = (e) => /* @__PURE__ */ p("svg", { width: "1em", height: "1em", viewBo
|
|
|
1944
1944
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
1945
1945
|
*/
|
|
1946
1946
|
"text-shadow": [{
|
|
1947
|
-
"text-shadow": ["none", h,
|
|
1947
|
+
"text-shadow": ["none", h, hr, pr]
|
|
1948
1948
|
}],
|
|
1949
1949
|
/**
|
|
1950
1950
|
* Text Shadow Color
|
|
@@ -2217,8 +2217,8 @@ const sc = (e) => /* @__PURE__ */ p("svg", { width: "1em", height: "1em", viewBo
|
|
|
2217
2217
|
"",
|
|
2218
2218
|
"none",
|
|
2219
2219
|
I,
|
|
2220
|
-
|
|
2221
|
-
|
|
2220
|
+
hr,
|
|
2221
|
+
pr
|
|
2222
2222
|
]
|
|
2223
2223
|
}],
|
|
2224
2224
|
/**
|
|
@@ -2945,13 +2945,13 @@ const sc = (e) => /* @__PURE__ */ p("svg", { width: "1em", height: "1em", viewBo
|
|
|
2945
2945
|
experimentalParseClassName: o,
|
|
2946
2946
|
extend: n = {},
|
|
2947
2947
|
override: i = {}
|
|
2948
|
-
}) => (Xt(e, "cacheSize", r), Xt(e, "prefix", t), Xt(e, "experimentalParseClassName", o),
|
|
2948
|
+
}) => (Xt(e, "cacheSize", r), Xt(e, "prefix", t), Xt(e, "experimentalParseClassName", o), gr(e.theme, i.theme), gr(e.classGroups, i.classGroups), gr(e.conflictingClassGroups, i.conflictingClassGroups), gr(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), Xt(e, "orderSensitiveModifiers", i.orderSensitiveModifiers), vr(e.theme, n.theme), vr(e.classGroups, n.classGroups), vr(e.conflictingClassGroups, n.conflictingClassGroups), vr(e.conflictingClassGroupModifiers, n.conflictingClassGroupModifiers), Ia(e, n, "orderSensitiveModifiers"), e), Xt = (e, r, t) => {
|
|
2949
2949
|
t !== void 0 && (e[r] = t);
|
|
2950
|
-
},
|
|
2950
|
+
}, gr = (e, r) => {
|
|
2951
2951
|
if (r)
|
|
2952
2952
|
for (const t in r)
|
|
2953
2953
|
Xt(e, t, r[t]);
|
|
2954
|
-
},
|
|
2954
|
+
}, vr = (e, r) => {
|
|
2955
2955
|
if (r)
|
|
2956
2956
|
for (const t in r)
|
|
2957
2957
|
Ia(e, r, t);
|
|
@@ -3026,7 +3026,7 @@ const dd = /* @__PURE__ */ ka(cd), ud = sd({
|
|
|
3026
3026
|
function R(...e) {
|
|
3027
3027
|
return ud(dd(e));
|
|
3028
3028
|
}
|
|
3029
|
-
const
|
|
3029
|
+
const sr = {
|
|
3030
3030
|
sm: {
|
|
3031
3031
|
checkbox: "size-4",
|
|
3032
3032
|
hoverSquare: "size-2.5",
|
|
@@ -3089,7 +3089,7 @@ const ar = {
|
|
|
3089
3089
|
const { isChecked: o, isIndeterminate: n, isDisabled: i, isInvalid: a } = t, s = o || n;
|
|
3090
3090
|
return R(
|
|
3091
3091
|
pd,
|
|
3092
|
-
|
|
3092
|
+
sr[e].checkbox,
|
|
3093
3093
|
{ "cursor-pointer": !i },
|
|
3094
3094
|
a ? {
|
|
3095
3095
|
// Invalid state uses negative color scheme
|
|
@@ -3115,7 +3115,7 @@ const ar = {
|
|
|
3115
3115
|
}, gd = (e, r, t) => {
|
|
3116
3116
|
const { isDisabled: o, isInvalid: n } = t;
|
|
3117
3117
|
return R(
|
|
3118
|
-
|
|
3118
|
+
sr[e].text,
|
|
3119
3119
|
n ? {
|
|
3120
3120
|
[Ue.negative.label]: n
|
|
3121
3121
|
} : {
|
|
@@ -3126,15 +3126,15 @@ const ar = {
|
|
|
3126
3126
|
);
|
|
3127
3127
|
}, vd = (e) => R(
|
|
3128
3128
|
"inline-flex items-center ws-group",
|
|
3129
|
-
|
|
3129
|
+
sr[e].spacing
|
|
3130
3130
|
), fd = (e, r, t) => R(
|
|
3131
3131
|
"center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",
|
|
3132
|
-
|
|
3132
|
+
sr[e].hoverSquare,
|
|
3133
3133
|
{
|
|
3134
3134
|
[Ue.negative.hoverSquare]: t,
|
|
3135
3135
|
[Ue[r].hoverSquare]: !t
|
|
3136
3136
|
}
|
|
3137
|
-
), md = (e) => `${
|
|
3137
|
+
), md = (e) => `${sr[e].icon}`, bd = (e) => /* @__PURE__ */ p(
|
|
3138
3138
|
"svg",
|
|
3139
3139
|
{
|
|
3140
3140
|
className: `absolute inset-0 ${e.className}`,
|
|
@@ -3211,7 +3211,7 @@ const ar = {
|
|
|
3211
3211
|
}
|
|
3212
3212
|
);
|
|
3213
3213
|
wd.displayName = "Checkbox";
|
|
3214
|
-
const
|
|
3214
|
+
const lr = {
|
|
3215
3215
|
sm: {
|
|
3216
3216
|
container: "gap-2",
|
|
3217
3217
|
radio: "size-3",
|
|
@@ -3233,7 +3233,7 @@ const sr = {
|
|
|
3233
3233
|
dot: "size-4",
|
|
3234
3234
|
hoverDot: "size-3"
|
|
3235
3235
|
}
|
|
3236
|
-
},
|
|
3236
|
+
}, tr = {
|
|
3237
3237
|
primary: {
|
|
3238
3238
|
radio: "border-body-light group-hover:border-body",
|
|
3239
3239
|
radioInvalid: "border-negative",
|
|
@@ -3270,9 +3270,9 @@ const sr = {
|
|
|
3270
3270
|
const { isDisabled: o, isInvalid: n } = t;
|
|
3271
3271
|
return R(
|
|
3272
3272
|
xd,
|
|
3273
|
-
|
|
3274
|
-
n ?
|
|
3275
|
-
[
|
|
3273
|
+
lr[e].radio,
|
|
3274
|
+
n ? tr[r].radioInvalid : {
|
|
3275
|
+
[tr[r].radio]: !o,
|
|
3276
3276
|
"cursor-not-allowed opacity-60": o
|
|
3277
3277
|
}
|
|
3278
3278
|
);
|
|
@@ -3280,9 +3280,9 @@ const sr = {
|
|
|
3280
3280
|
const { checked: o, isDisabled: n, isInvalid: i } = t;
|
|
3281
3281
|
return R(
|
|
3282
3282
|
"center-absolute rounded-full transition-all duration-200 ease-in-out",
|
|
3283
|
-
|
|
3283
|
+
lr[e].dot,
|
|
3284
3284
|
i ? "bg-negative" : {
|
|
3285
|
-
[
|
|
3285
|
+
[tr[r].dot]: !n,
|
|
3286
3286
|
"border-neutral": n,
|
|
3287
3287
|
"opacity-0 scale-0": !o,
|
|
3288
3288
|
"opacity-100 scale-100": o && !n
|
|
@@ -3290,23 +3290,23 @@ const sr = {
|
|
|
3290
3290
|
);
|
|
3291
3291
|
}, kd = (e, r, t) => R(
|
|
3292
3292
|
"center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",
|
|
3293
|
-
|
|
3293
|
+
lr[e].hoverDot,
|
|
3294
3294
|
{
|
|
3295
|
-
[
|
|
3295
|
+
[tr[r].hoverDot]: !t,
|
|
3296
3296
|
"bg-negative-bg": t
|
|
3297
3297
|
}
|
|
3298
3298
|
), Ed = (e) => R(
|
|
3299
3299
|
"cursor-pointer select-none transition-colors duration-200",
|
|
3300
|
-
|
|
3300
|
+
lr[e].label
|
|
3301
3301
|
), Sd = (e, r, t, o) => {
|
|
3302
3302
|
const { isDisabled: n, isInvalid: i } = t;
|
|
3303
3303
|
return R(
|
|
3304
3304
|
"inline-flex items-center group",
|
|
3305
|
-
|
|
3305
|
+
lr[e].container,
|
|
3306
3306
|
i ? {
|
|
3307
3307
|
"text-negative": i
|
|
3308
3308
|
} : {
|
|
3309
|
-
[
|
|
3309
|
+
[tr[r].label]: !n,
|
|
3310
3310
|
"text-muted": n
|
|
3311
3311
|
},
|
|
3312
3312
|
o
|
|
@@ -3544,7 +3544,7 @@ const Ea = {
|
|
|
3544
3544
|
)
|
|
3545
3545
|
);
|
|
3546
3546
|
st.displayName = "Button";
|
|
3547
|
-
const Sa = ct(null),
|
|
3547
|
+
const Sa = ct(null), cr = () => {
|
|
3548
3548
|
const e = xt(Sa);
|
|
3549
3549
|
if (!e)
|
|
3550
3550
|
throw new Error("Input components must be used within Input.Root");
|
|
@@ -3751,7 +3751,7 @@ function li(e) {
|
|
|
3751
3751
|
return t || nu.test(e) ? iu(e.slice(2), t ? 2 : 8) : ru.test(e) ? si : +e;
|
|
3752
3752
|
}
|
|
3753
3753
|
var au = "Expected a function", su = Math.max, lu = Math.min;
|
|
3754
|
-
function
|
|
3754
|
+
function _r(e, r, t) {
|
|
3755
3755
|
var o, n, i, a, s, l, c = 0, d = !1, u = !1, h = !0;
|
|
3756
3756
|
if (typeof e != "function")
|
|
3757
3757
|
throw new TypeError(au);
|
|
@@ -3803,7 +3803,7 @@ function du(e, r, t) {
|
|
|
3803
3803
|
var o = !0, n = !0;
|
|
3804
3804
|
if (typeof e != "function")
|
|
3805
3805
|
throw new TypeError(cu);
|
|
3806
|
-
return Vr(t) && (o = "leading" in t ? !!t.leading : o, n = "trailing" in t ? !!t.trailing : n),
|
|
3806
|
+
return Vr(t) && (o = "leading" in t ? !!t.leading : o, n = "trailing" in t ? !!t.trailing : n), _r(e, r, {
|
|
3807
3807
|
leading: o,
|
|
3808
3808
|
maxWait: r,
|
|
3809
3809
|
trailing: n
|
|
@@ -3966,7 +3966,7 @@ var vt = Na, co = Da, pu = za, ft = Ca, mt = Ma, je = Ra, Yt = (
|
|
|
3966
3966
|
}
|
|
3967
3967
|
}, typeof this.el != "object" || !this.el.nodeName)
|
|
3968
3968
|
throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));
|
|
3969
|
-
this.onMouseMove = du(this._onMouseMove, 64), this.onWindowResize =
|
|
3969
|
+
this.onMouseMove = du(this._onMouseMove, 64), this.onWindowResize = _r(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = _r(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = _r(this._onMouseEntered, this.stopScrollDelay), this.init();
|
|
3970
3970
|
}
|
|
3971
3971
|
return e.getRtlHelpers = function() {
|
|
3972
3972
|
if (e.rtlHelpers)
|
|
@@ -4255,7 +4255,7 @@ const Ta = ke(
|
|
|
4255
4255
|
hasMessage: l,
|
|
4256
4256
|
hasArea: c,
|
|
4257
4257
|
isInvalid: d
|
|
4258
|
-
} =
|
|
4258
|
+
} = cr();
|
|
4259
4259
|
return /* @__PURE__ */ p(
|
|
4260
4260
|
"div",
|
|
4261
4261
|
{
|
|
@@ -4286,7 +4286,7 @@ const Ta = ke(
|
|
|
4286
4286
|
isInvalid: i,
|
|
4287
4287
|
isDisabled: a,
|
|
4288
4288
|
isReadOnly: s
|
|
4289
|
-
} =
|
|
4289
|
+
} = cr(), { isDisabled: l, isReadOnly: c, ...d } = r;
|
|
4290
4290
|
return /* @__PURE__ */ p(
|
|
4291
4291
|
"input",
|
|
4292
4292
|
{
|
|
@@ -4308,7 +4308,7 @@ const Ta = ke(
|
|
|
4308
4308
|
isDisabled: l,
|
|
4309
4309
|
isReadOnly: c,
|
|
4310
4310
|
setHasArea: d
|
|
4311
|
-
} =
|
|
4311
|
+
} = cr(), u = de(null), h = n || u, I = de(null);
|
|
4312
4312
|
ce(() => (d(!0), () => {
|
|
4313
4313
|
d(!1);
|
|
4314
4314
|
}), [d]);
|
|
@@ -4395,7 +4395,7 @@ const Ta = ke(
|
|
|
4395
4395
|
children: n,
|
|
4396
4396
|
...i
|
|
4397
4397
|
}, a) => {
|
|
4398
|
-
const { size: s, color: l, isDisabled: c } =
|
|
4398
|
+
const { size: s, color: l, isDisabled: c } = cr(), d = t || c, u = Pd({
|
|
4399
4399
|
size: s,
|
|
4400
4400
|
color: l,
|
|
4401
4401
|
isDisabled: d,
|
|
@@ -4418,7 +4418,7 @@ const Ta = ke(
|
|
|
4418
4418
|
}
|
|
4419
4419
|
), Va = ke(
|
|
4420
4420
|
({ icon: e, usePortal: r = !1, className: t, children: o, ...n }, i) => {
|
|
4421
|
-
const { size: a, color: s, setHasMessage: l, isDisabled: c } =
|
|
4421
|
+
const { size: a, color: s, setHasMessage: l, isDisabled: c } = cr(), d = de(null), u = de("bottom"), [h, I] = Ie(null);
|
|
4422
4422
|
ce(() => (l(!0), () => l(!1)), [l]), ce(() => {
|
|
4423
4423
|
if (!r || !d.current) return;
|
|
4424
4424
|
const m = d.current, _ = m.closest(
|
|
@@ -4501,7 +4501,7 @@ const Zt = {
|
|
|
4501
4501
|
Field: Aa,
|
|
4502
4502
|
Icon: Ha,
|
|
4503
4503
|
Message: Va
|
|
4504
|
-
},
|
|
4504
|
+
}, rr = {
|
|
4505
4505
|
primary: {
|
|
4506
4506
|
container: "bg-primary-light",
|
|
4507
4507
|
text: "text-primary-dark",
|
|
@@ -4528,15 +4528,15 @@ const Zt = {
|
|
|
4528
4528
|
}
|
|
4529
4529
|
}, vu = ({ color: e }) => R(
|
|
4530
4530
|
"min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",
|
|
4531
|
-
|
|
4532
|
-
|
|
4531
|
+
rr[e].container,
|
|
4532
|
+
rr[e].icon
|
|
4533
4533
|
), fu = ({ color: e }) => R(
|
|
4534
4534
|
"text-xs font-medium leading-3",
|
|
4535
|
-
|
|
4535
|
+
rr[e].text
|
|
4536
4536
|
), mu = ({ color: e }) => R(
|
|
4537
4537
|
"p-0.5 rounded cursor-pointer",
|
|
4538
|
-
|
|
4539
|
-
|
|
4538
|
+
rr[e].button,
|
|
4539
|
+
rr[e].icon
|
|
4540
4540
|
), $e = ({
|
|
4541
4541
|
label: e,
|
|
4542
4542
|
color: r = "primary",
|
|
@@ -4849,7 +4849,7 @@ const Zt = {
|
|
|
4849
4849
|
onClick: U,
|
|
4850
4850
|
className: mu({ color: r }),
|
|
4851
4851
|
role: "button",
|
|
4852
|
-
children: /* @__PURE__ */ p(
|
|
4852
|
+
children: /* @__PURE__ */ p(ar, {})
|
|
4853
4853
|
}
|
|
4854
4854
|
)
|
|
4855
4855
|
]
|
|
@@ -5127,7 +5127,7 @@ var Me = function() {
|
|
|
5127
5127
|
top: "0px",
|
|
5128
5128
|
left: "0px",
|
|
5129
5129
|
cursor: "col-resize"
|
|
5130
|
-
},
|
|
5130
|
+
}, fr = {
|
|
5131
5131
|
width: "20px",
|
|
5132
5132
|
height: "20px",
|
|
5133
5133
|
position: "absolute",
|
|
@@ -5137,10 +5137,10 @@ var Me = function() {
|
|
|
5137
5137
|
right: Me(Me({}, bi), { left: void 0, right: "-5px" }),
|
|
5138
5138
|
bottom: Me(Me({}, mi), { top: void 0, bottom: "-5px" }),
|
|
5139
5139
|
left: Me(Me({}, bi), { left: "-5px" }),
|
|
5140
|
-
topRight: Me(Me({},
|
|
5141
|
-
bottomRight: Me(Me({},
|
|
5142
|
-
bottomLeft: Me(Me({},
|
|
5143
|
-
topLeft: Me(Me({},
|
|
5140
|
+
topRight: Me(Me({}, fr), { right: "-10px", top: "-10px", cursor: "ne-resize" }),
|
|
5141
|
+
bottomRight: Me(Me({}, fr), { right: "-10px", bottom: "-10px", cursor: "se-resize" }),
|
|
5142
|
+
bottomLeft: Me(Me({}, fr), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
|
|
5143
|
+
topLeft: Me(Me({}, fr), { left: "-10px", top: "-10px", cursor: "nw-resize" })
|
|
5144
5144
|
}, _u = Pl(function(e) {
|
|
5145
5145
|
var r = e.onResizeStart, t = e.direction, o = e.children, n = e.replaceStyles, i = e.className, a = W(function(c) {
|
|
5146
5146
|
r(c, t);
|
|
@@ -5178,14 +5178,14 @@ var Me = function() {
|
|
|
5178
5178
|
}, Du = {
|
|
5179
5179
|
width: "auto",
|
|
5180
5180
|
height: "auto"
|
|
5181
|
-
},
|
|
5181
|
+
}, mr = function(e, r, t) {
|
|
5182
5182
|
return Math.max(Math.min(e, t), r);
|
|
5183
5183
|
}, wi = function(e, r, t) {
|
|
5184
5184
|
var o = Math.round(e / r);
|
|
5185
5185
|
return o * r + t * (o - 1);
|
|
5186
5186
|
}, Ct = function(e, r) {
|
|
5187
5187
|
return new RegExp(e, "i").test(r);
|
|
5188
|
-
},
|
|
5188
|
+
}, br = function(e) {
|
|
5189
5189
|
return !!(e.touches && e.touches.length);
|
|
5190
5190
|
}, zu = function(e) {
|
|
5191
5191
|
return !!((e.clientX || e.clientX === 0) && (e.clientY || e.clientY === 0));
|
|
@@ -5197,7 +5197,7 @@ var Me = function() {
|
|
|
5197
5197
|
return t === 0 || n < t ? r[o] : e;
|
|
5198
5198
|
}, uo = function(e) {
|
|
5199
5199
|
return e = e.toString(), e === "auto" || e.endsWith("px") || e.endsWith("%") || e.endsWith("vh") || e.endsWith("vw") || e.endsWith("vmax") || e.endsWith("vmin") ? e : "".concat(e, "px");
|
|
5200
|
-
},
|
|
5200
|
+
}, wr = function(e, r, t, o) {
|
|
5201
5201
|
if (e && typeof e == "string") {
|
|
5202
5202
|
if (e.endsWith("px"))
|
|
5203
5203
|
return Number(e.replace("px", ""));
|
|
@@ -5216,7 +5216,7 @@ var Me = function() {
|
|
|
5216
5216
|
}
|
|
5217
5217
|
return e;
|
|
5218
5218
|
}, Cu = function(e, r, t, o, n, i, a) {
|
|
5219
|
-
return o =
|
|
5219
|
+
return o = wr(o, e.width, r, t), n = wr(n, e.height, r, t), i = wr(i, e.width, r, t), a = wr(a, e.height, r, t), {
|
|
5220
5220
|
maxWidth: typeof o > "u" ? void 0 : Number(o),
|
|
5221
5221
|
maxHeight: typeof n > "u" ? void 0 : Number(n),
|
|
5222
5222
|
minWidth: typeof i > "u" ? void 0 : Number(i),
|
|
@@ -5398,9 +5398,9 @@ var Me = function() {
|
|
|
5398
5398
|
var a = this.props, s = a.lockAspectRatio, l = a.lockAspectRatioExtraHeight, c = a.lockAspectRatioExtraWidth, d = typeof i.width > "u" ? 10 : i.width, u = typeof n.width > "u" || n.width < 0 ? t : n.width, h = typeof i.height > "u" ? 10 : i.height, I = typeof n.height > "u" || n.height < 0 ? o : n.height, k = l || 0, x = c || 0;
|
|
5399
5399
|
if (s) {
|
|
5400
5400
|
var m = (h - k) * this.ratio + x, _ = (I - k) * this.ratio + x, g = (d - x) / this.ratio + k, b = (u - x) / this.ratio + k, w = Math.max(d, m), f = Math.min(u, _), O = Math.max(h, g), M = Math.min(I, b);
|
|
5401
|
-
t =
|
|
5401
|
+
t = mr(t, w, f), o = mr(o, O, M);
|
|
5402
5402
|
} else
|
|
5403
|
-
t =
|
|
5403
|
+
t = mr(t, d, u), o = mr(o, h, I);
|
|
5404
5404
|
return { newWidth: t, newHeight: o };
|
|
5405
5405
|
}, r.prototype.setBoundingClientRect = function() {
|
|
5406
5406
|
var t = 1 / (this.props.scale || 1);
|
|
@@ -5422,7 +5422,7 @@ var Me = function() {
|
|
|
5422
5422
|
}, r.prototype.onResizeStart = function(t, o) {
|
|
5423
5423
|
if (!(!this.resizable || !this.window)) {
|
|
5424
5424
|
var n = 0, i = 0;
|
|
5425
|
-
if (t.nativeEvent && zu(t.nativeEvent) ? (n = t.nativeEvent.clientX, i = t.nativeEvent.clientY) : t.nativeEvent &&
|
|
5425
|
+
if (t.nativeEvent && zu(t.nativeEvent) ? (n = t.nativeEvent.clientX, i = t.nativeEvent.clientY) : t.nativeEvent && br(t.nativeEvent) && (n = t.nativeEvent.touches[0].clientX, i = t.nativeEvent.touches[0].clientY), this.props.onResizeStart && this.resizable) {
|
|
5426
5426
|
var a = this.props.onResizeStart(t, o, this.resizable);
|
|
5427
5427
|
if (a === !1)
|
|
5428
5428
|
return;
|
|
@@ -5454,12 +5454,12 @@ var Me = function() {
|
|
|
5454
5454
|
}, r.prototype.onMouseMove = function(t) {
|
|
5455
5455
|
var o = this;
|
|
5456
5456
|
if (!(!this.state.isResizing || !this.resizable || !this.window)) {
|
|
5457
|
-
if (this.window.TouchEvent &&
|
|
5457
|
+
if (this.window.TouchEvent && br(t))
|
|
5458
5458
|
try {
|
|
5459
5459
|
t.preventDefault(), t.stopPropagation();
|
|
5460
5460
|
} catch {
|
|
5461
5461
|
}
|
|
5462
|
-
var n = this.props, i = n.maxWidth, a = n.maxHeight, s = n.minWidth, l = n.minHeight, c =
|
|
5462
|
+
var n = this.props, i = n.maxWidth, a = n.maxHeight, s = n.minWidth, l = n.minHeight, c = br(t) ? t.touches[0].clientX : t.clientX, d = br(t) ? t.touches[0].clientY : t.clientY, u = this.state, h = u.direction, I = u.original, k = u.width, x = u.height, m = this.getParentSize(), _ = Cu(m, this.window.innerWidth, this.window.innerHeight, i, a, s, l);
|
|
5463
5463
|
i = _.maxWidth, a = _.maxHeight, s = _.minWidth, l = _.minHeight;
|
|
5464
5464
|
var g = this.calculateNewSizeFromDirection(c, d), b = g.newHeight, w = g.newWidth, f = this.calculateNewMaxFromBoundary(i, a);
|
|
5465
5465
|
this.props.snap && this.props.snap.x && (w = xi(w, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (b = xi(b, this.props.snap.y, this.props.snapGap));
|
|
@@ -5713,7 +5713,7 @@ const Mt = {
|
|
|
5713
5713
|
label: "text-base",
|
|
5714
5714
|
gap: "gap-3"
|
|
5715
5715
|
}
|
|
5716
|
-
},
|
|
5716
|
+
}, xr = {
|
|
5717
5717
|
primary: {
|
|
5718
5718
|
bg: "bg-primary",
|
|
5719
5719
|
thumb: "group-hover:bg-primary-light",
|
|
@@ -5747,7 +5747,7 @@ const Mt = {
|
|
|
5747
5747
|
"border border-input-border rounded-full justify-between",
|
|
5748
5748
|
Mt[e].track,
|
|
5749
5749
|
{
|
|
5750
|
-
[
|
|
5750
|
+
[xr[r].bg]: t && !o && !n,
|
|
5751
5751
|
"bg-input-bg": !t && !o || n,
|
|
5752
5752
|
"bg-panel cursor-not-allowed": o,
|
|
5753
5753
|
"cursor-pointer": !o
|
|
@@ -5760,21 +5760,21 @@ const Mt = {
|
|
|
5760
5760
|
Mt[e].thumb,
|
|
5761
5761
|
t ? Mt[e].thumbChecked : Mt[e].thumbUnchecked,
|
|
5762
5762
|
{
|
|
5763
|
-
[
|
|
5763
|
+
[xr[r].thumb]: !o,
|
|
5764
5764
|
"bg-canvas-subtle": o
|
|
5765
5765
|
}
|
|
5766
5766
|
),
|
|
5767
5767
|
iconLeft: R(
|
|
5768
5768
|
"flex items-center justify-center z-10 w-1/2 p-0.5",
|
|
5769
5769
|
{
|
|
5770
|
-
[
|
|
5770
|
+
[xr[r].icon]: !t && !o,
|
|
5771
5771
|
"text-panel-subtle": o || t
|
|
5772
5772
|
}
|
|
5773
5773
|
),
|
|
5774
5774
|
iconRight: R(
|
|
5775
5775
|
"flex items-center justify-center z-10 w-1/2 p-0.5",
|
|
5776
5776
|
{
|
|
5777
|
-
[
|
|
5777
|
+
[xr[r].icon]: t && !o,
|
|
5778
5778
|
"text-panel-subtle": o || !t
|
|
5779
5779
|
}
|
|
5780
5780
|
),
|
|
@@ -5846,7 +5846,7 @@ const Br = Ot.forwardRef(
|
|
|
5846
5846
|
}
|
|
5847
5847
|
);
|
|
5848
5848
|
Br.displayName = "Panel";
|
|
5849
|
-
const
|
|
5849
|
+
const or = {
|
|
5850
5850
|
sm: {
|
|
5851
5851
|
container: "h-5 px-0.5 gap-1 rounded",
|
|
5852
5852
|
text: "text-xxs leading-3",
|
|
@@ -5865,7 +5865,7 @@ const rr = {
|
|
|
5865
5865
|
icon: "text-base",
|
|
5866
5866
|
iconButton: "text-base p-0.5 cursor-pointer"
|
|
5867
5867
|
}
|
|
5868
|
-
},
|
|
5868
|
+
}, Nr = {
|
|
5869
5869
|
primary: {
|
|
5870
5870
|
bg: "bg-primary",
|
|
5871
5871
|
text: "text-button-text",
|
|
@@ -5911,24 +5911,24 @@ const rr = {
|
|
|
5911
5911
|
}
|
|
5912
5912
|
}, Bu = (e, r, t, o) => R(
|
|
5913
5913
|
"inline-flex items-center justify-center font-medium border",
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5914
|
+
or[e].container,
|
|
5915
|
+
Nr[r].bg,
|
|
5916
|
+
Nr[r].text,
|
|
5917
|
+
Nr[r].border,
|
|
5918
|
+
or[e].text,
|
|
5919
5919
|
{
|
|
5920
5920
|
"opacity-60 pointer-events-none": t,
|
|
5921
5921
|
"cursor-pointer hover:bg-opacity-90 transition-opacity": o && !t
|
|
5922
5922
|
}
|
|
5923
5923
|
), Fu = (e, r, t) => R({
|
|
5924
|
-
[
|
|
5924
|
+
[or[e].icon]: !t,
|
|
5925
5925
|
"bg-canvas-default outline-canvas-default text-primary": t && r !== "white" || t,
|
|
5926
5926
|
"bg-primary outline-primary text-button-text": t && r === "white" && !t,
|
|
5927
5927
|
"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r": t || t
|
|
5928
|
-
}), ju = (e) => R(
|
|
5928
|
+
}), ju = (e) => R(or[e].text), Wa = (e, r, t) => R(
|
|
5929
5929
|
"inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",
|
|
5930
|
-
|
|
5931
|
-
|
|
5930
|
+
or[e].iconButton,
|
|
5931
|
+
Nr[r].buttonHover,
|
|
5932
5932
|
{
|
|
5933
5933
|
"pointer-events-none": t
|
|
5934
5934
|
}
|
|
@@ -6045,7 +6045,7 @@ const Bo = ke(
|
|
|
6045
6045
|
onClick: r,
|
|
6046
6046
|
"aria-label": t,
|
|
6047
6047
|
...n,
|
|
6048
|
-
children: o || /* @__PURE__ */ p(
|
|
6048
|
+
children: o || /* @__PURE__ */ p(ar, {})
|
|
6049
6049
|
}
|
|
6050
6050
|
);
|
|
6051
6051
|
}
|
|
@@ -7254,7 +7254,7 @@ function Oo(e, r) {
|
|
|
7254
7254
|
function kp(e, r) {
|
|
7255
7255
|
e.prototype = Object.create(r.prototype), e.prototype.constructor = e, Oo(e, r);
|
|
7256
7256
|
}
|
|
7257
|
-
var
|
|
7257
|
+
var yr = { exports: {} }, po = { exports: {} }, be = {};
|
|
7258
7258
|
/** @license React v16.13.1
|
|
7259
7259
|
* react-is.production.min.js
|
|
7260
7260
|
*
|
|
@@ -7907,13 +7907,13 @@ function Dp() {
|
|
|
7907
7907
|
}
|
|
7908
7908
|
var Hi;
|
|
7909
7909
|
function zp() {
|
|
7910
|
-
if (Hi) return
|
|
7910
|
+
if (Hi) return yr.exports;
|
|
7911
7911
|
if (Hi = 1, T.NODE_ENV !== "production") {
|
|
7912
7912
|
var e = Xa(), r = !0;
|
|
7913
|
-
|
|
7913
|
+
yr.exports = /* @__PURE__ */ Np()(e.isElement, r);
|
|
7914
7914
|
} else
|
|
7915
|
-
|
|
7916
|
-
return
|
|
7915
|
+
yr.exports = /* @__PURE__ */ Dp()();
|
|
7916
|
+
return yr.exports;
|
|
7917
7917
|
}
|
|
7918
7918
|
var Cp = /* @__PURE__ */ zp();
|
|
7919
7919
|
const j = /* @__PURE__ */ ka(Cp);
|
|
@@ -8100,7 +8100,7 @@ function Tp() {
|
|
|
8100
8100
|
return Bi || (Bi = 1, T.NODE_ENV === "production" ? bo.exports = Mp() : bo.exports = Rp()), bo.exports;
|
|
8101
8101
|
}
|
|
8102
8102
|
var Fi = Tp();
|
|
8103
|
-
const ji = (e) => typeof e == "object" && e != null && e.nodeType === 1, Wi = (e, r) => (!r || e !== "hidden") && e !== "visible" && e !== "clip",
|
|
8103
|
+
const ji = (e) => typeof e == "object" && e != null && e.nodeType === 1, Wi = (e, r) => (!r || e !== "hidden") && e !== "visible" && e !== "clip", Ir = (e, r) => {
|
|
8104
8104
|
if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
|
|
8105
8105
|
const t = getComputedStyle(e, null);
|
|
8106
8106
|
return Wi(t.overflowY, r) || Wi(t.overflowX, r) || ((o) => {
|
|
@@ -8116,7 +8116,7 @@ const ji = (e) => typeof e == "object" && e != null && e.nodeType === 1, Wi = (e
|
|
|
8116
8116
|
})(e);
|
|
8117
8117
|
}
|
|
8118
8118
|
return !1;
|
|
8119
|
-
},
|
|
8119
|
+
}, kr = (e, r, t, o, n, i, a, s) => i < e && a > r || i > e && a < r ? 0 : i <= e && s <= t || a >= r && s >= t ? i - e - o : a > r && s < t || i < e && s > t ? a - r + n : 0, Pp = (e) => e.parentElement ?? (e.getRootNode().host || null), Ap = (e, r) => {
|
|
8120
8120
|
var t, o, n, i;
|
|
8121
8121
|
if (typeof document > "u") return [];
|
|
8122
8122
|
const { inline: a, boundary: s, skipOverflowHiddenElements: l } = r, c = typeof s == "function" ? s : (re) => re !== s;
|
|
@@ -8128,7 +8128,7 @@ const ji = (e) => typeof e == "object" && e != null && e.nodeType === 1, Wi = (e
|
|
|
8128
8128
|
u.push(h);
|
|
8129
8129
|
break;
|
|
8130
8130
|
}
|
|
8131
|
-
h != null && h === document.body &&
|
|
8131
|
+
h != null && h === document.body && Ir(h) && !Ir(document.documentElement) || h != null && Ir(h, l) && u.push(h);
|
|
8132
8132
|
}
|
|
8133
8133
|
const I = (o = (t = window.visualViewport) == null ? void 0 : t.width) != null ? o : innerWidth, k = (i = (n = window.visualViewport) == null ? void 0 : n.height) != null ? i : innerHeight, { scrollX: x, scrollY: m } = window, { height: _, width: g, top: b, right: w, bottom: f, left: O } = e.getBoundingClientRect(), { top: M, right: y, left: D } = ((re) => {
|
|
8134
8134
|
const q = window.getComputedStyle(re);
|
|
@@ -8138,13 +8138,13 @@ const ji = (e) => typeof e == "object" && e != null && e.nodeType === 1, Wi = (e
|
|
|
8138
8138
|
const U = [];
|
|
8139
8139
|
for (let re = 0; re < u.length; re++) {
|
|
8140
8140
|
const q = u[re], { height: se, width: Y, top: le, right: $, bottom: he, left: v } = q.getBoundingClientRect();
|
|
8141
|
-
if (b >= 0 && O >= 0 && f <= k && w <= I && (q === d && !
|
|
8141
|
+
if (b >= 0 && O >= 0 && f <= k && w <= I && (q === d && !Ir(q) || b >= le && f <= he && O >= v && w <= $)) return U;
|
|
8142
8142
|
const E = getComputedStyle(q), z = parseInt(E.borderLeftWidth, 10), P = parseInt(E.borderTopWidth, 10), S = parseInt(E.borderRightWidth, 10), H = parseInt(E.borderBottomWidth, 10);
|
|
8143
8143
|
let C = 0, N = 0;
|
|
8144
8144
|
const V = "offsetWidth" in q ? q.offsetWidth - q.clientWidth - z - S : 0, X = "offsetHeight" in q ? q.offsetHeight - q.clientHeight - P - H : 0, G = "offsetWidth" in q ? q.offsetWidth === 0 ? 0 : Y / q.offsetWidth : 0, oe = "offsetHeight" in q ? q.offsetHeight === 0 ? 0 : se / q.offsetHeight : 0;
|
|
8145
|
-
if (d === q) C =
|
|
8145
|
+
if (d === q) C = kr(m, m + k, k, P, H, m + F, m + F + _, _), N = a === "start" ? L : a === "center" ? L - I / 2 : a === "end" ? L - I : kr(x, x + I, I, z, S, x + L, x + L + g, g), C = Math.max(0, C + m), N = Math.max(0, N + x);
|
|
8146
8146
|
else {
|
|
8147
|
-
C =
|
|
8147
|
+
C = kr(le, he, se, P, H + X, F, F + _, _), N = a === "start" ? L - v - z : a === "center" ? L - (v + Y / 2) + V / 2 : a === "end" ? L - $ + S + V : kr(v, $, Y, z, S + V, L, L + g, g);
|
|
8148
8148
|
const { scrollLeft: A, scrollTop: te } = q;
|
|
8149
8149
|
C = oe === 0 ? 0 : Math.max(0, Math.min(te + C / oe, q.scrollHeight - se / oe + X)), N = G === 0 ? 0 : Math.max(0, Math.min(A + N / G, q.scrollWidth - Y / G + V)), F += te - C, L += A - N;
|
|
8150
8150
|
}
|
|
@@ -8238,14 +8238,14 @@ function Lp(e, r) {
|
|
|
8238
8238
|
console.error('The property "' + r + '" is required in "' + e + '"');
|
|
8239
8239
|
}
|
|
8240
8240
|
var Bp = ["highlightedIndex", "inputValue", "isOpen", "selectedItem", "type"];
|
|
8241
|
-
function
|
|
8241
|
+
function Er(e) {
|
|
8242
8242
|
e === void 0 && (e = {});
|
|
8243
8243
|
var r = {};
|
|
8244
8244
|
return Bp.forEach(function(t) {
|
|
8245
8245
|
e.hasOwnProperty(t) && (r[t] = e[t]);
|
|
8246
8246
|
}), r;
|
|
8247
8247
|
}
|
|
8248
|
-
function
|
|
8248
|
+
function nr(e, r) {
|
|
8249
8249
|
return !e || !r ? e : Object.keys(e).reduce(function(t, o) {
|
|
8250
8250
|
return t[o] = Fr(r, o) ? r[o] : e[o], t;
|
|
8251
8251
|
}, {});
|
|
@@ -8323,7 +8323,7 @@ function Wp(e) {
|
|
|
8323
8323
|
var r = e == null ? void 0 : e.getElementById("a11y-status-message");
|
|
8324
8324
|
r && r.remove();
|
|
8325
8325
|
}
|
|
8326
|
-
var is = T.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, as = T.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, ss = T.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2,
|
|
8326
|
+
var is = T.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, as = T.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, ss = T.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, Dr = T.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, zr = T.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, ls = T.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, cs = T.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, ds = T.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, us = T.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8, ps = T.NODE_ENV !== "production" ? "__autocomplete_click_item__" : 9, hs = T.NODE_ENV !== "production" ? "__autocomplete_blur_input__" : 10, gs = T.NODE_ENV !== "production" ? "__autocomplete_change_input__" : 11, vs = T.NODE_ENV !== "production" ? "__autocomplete_keydown_space_button__" : 12, _o = T.NODE_ENV !== "production" ? "__autocomplete_click_button__" : 13, fs = T.NODE_ENV !== "production" ? "__autocomplete_blur_button__" : 14, ms = T.NODE_ENV !== "production" ? "__autocomplete_controlled_prop_updated_selected_item__" : 15, bs = T.NODE_ENV !== "production" ? "__autocomplete_touchend__" : 16, $p = /* @__PURE__ */ Object.freeze({
|
|
8327
8327
|
__proto__: null,
|
|
8328
8328
|
blurButton: fs,
|
|
8329
8329
|
blurInput: hs,
|
|
@@ -8332,8 +8332,8 @@ var is = T.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, as = T.NO
|
|
|
8332
8332
|
clickItem: ps,
|
|
8333
8333
|
controlledPropUpdatedSelectedItem: ms,
|
|
8334
8334
|
itemMouseEnter: ss,
|
|
8335
|
-
keyDownArrowDown:
|
|
8336
|
-
keyDownArrowUp:
|
|
8335
|
+
keyDownArrowDown: zr,
|
|
8336
|
+
keyDownArrowUp: Dr,
|
|
8337
8337
|
keyDownEnd: us,
|
|
8338
8338
|
keyDownEnter: cs,
|
|
8339
8339
|
keyDownEscape: ls,
|
|
@@ -8363,7 +8363,7 @@ var is = T.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, as = T.NO
|
|
|
8363
8363
|
var w = i.getItemNodeFromIndex(b);
|
|
8364
8364
|
return w && w.hasAttribute("disabled");
|
|
8365
8365
|
}, i.setHighlightedIndex = function(g, b) {
|
|
8366
|
-
g === void 0 && (g = i.props.defaultHighlightedIndex), b === void 0 && (b = {}), b =
|
|
8366
|
+
g === void 0 && (g = i.props.defaultHighlightedIndex), b === void 0 && (b = {}), b = Er(b), i.internalSetState(ne({
|
|
8367
8367
|
highlightedIndex: g
|
|
8368
8368
|
}, b));
|
|
8369
8369
|
}, i.clearSelection = function(g) {
|
|
@@ -8374,7 +8374,7 @@ var is = T.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, as = T.NO
|
|
|
8374
8374
|
isOpen: i.props.defaultIsOpen
|
|
8375
8375
|
}, g);
|
|
8376
8376
|
}, i.selectItem = function(g, b, w) {
|
|
8377
|
-
b =
|
|
8377
|
+
b = Er(b), i.internalSetState(ne({
|
|
8378
8378
|
isOpen: i.props.defaultIsOpen,
|
|
8379
8379
|
highlightedIndex: i.props.defaultHighlightedIndex,
|
|
8380
8380
|
selectedItem: g,
|
|
@@ -8414,12 +8414,12 @@ var is = T.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, as = T.NO
|
|
|
8414
8414
|
if (g.preventDefault(), this.getState().isOpen) {
|
|
8415
8415
|
var w = g.shiftKey ? 5 : 1;
|
|
8416
8416
|
this.moveHighlightedIndex(w, {
|
|
8417
|
-
type:
|
|
8417
|
+
type: zr
|
|
8418
8418
|
});
|
|
8419
8419
|
} else
|
|
8420
8420
|
this.internalSetState({
|
|
8421
8421
|
isOpen: !0,
|
|
8422
|
-
type:
|
|
8422
|
+
type: zr
|
|
8423
8423
|
}, function() {
|
|
8424
8424
|
var f = b.getItemCount();
|
|
8425
8425
|
if (f > 0) {
|
|
@@ -8427,7 +8427,7 @@ var is = T.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, as = T.NO
|
|
|
8427
8427
|
length: f
|
|
8428
8428
|
}, b.isItemDisabled, !0);
|
|
8429
8429
|
b.setHighlightedIndex(y, {
|
|
8430
|
-
type:
|
|
8430
|
+
type: zr
|
|
8431
8431
|
});
|
|
8432
8432
|
}
|
|
8433
8433
|
});
|
|
@@ -8437,12 +8437,12 @@ var is = T.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, as = T.NO
|
|
|
8437
8437
|
if (g.preventDefault(), this.getState().isOpen) {
|
|
8438
8438
|
var w = g.shiftKey ? -5 : -1;
|
|
8439
8439
|
this.moveHighlightedIndex(w, {
|
|
8440
|
-
type:
|
|
8440
|
+
type: Dr
|
|
8441
8441
|
});
|
|
8442
8442
|
} else
|
|
8443
8443
|
this.internalSetState({
|
|
8444
8444
|
isOpen: !0,
|
|
8445
|
-
type:
|
|
8445
|
+
type: Dr
|
|
8446
8446
|
}, function() {
|
|
8447
8447
|
var f = b.getItemCount();
|
|
8448
8448
|
if (f > 0) {
|
|
@@ -8450,7 +8450,7 @@ var is = T.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, as = T.NO
|
|
|
8450
8450
|
length: f
|
|
8451
8451
|
}, b.isItemDisabled, !0);
|
|
8452
8452
|
b.setHighlightedIndex(y, {
|
|
8453
|
-
type:
|
|
8453
|
+
type: Dr
|
|
8454
8454
|
});
|
|
8455
8455
|
}
|
|
8456
8456
|
});
|
|
@@ -8645,7 +8645,7 @@ var is = T.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, as = T.NO
|
|
|
8645
8645
|
}, i.clearItems = function() {
|
|
8646
8646
|
i.items = [];
|
|
8647
8647
|
}, i.reset = function(g, b) {
|
|
8648
|
-
g === void 0 && (g = {}), g =
|
|
8648
|
+
g === void 0 && (g = {}), g = Er(g), i.internalSetState(function(w) {
|
|
8649
8649
|
var f = w.selectedItem;
|
|
8650
8650
|
return ne({
|
|
8651
8651
|
isOpen: i.props.defaultIsOpen,
|
|
@@ -8654,7 +8654,7 @@ var is = T.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, as = T.NO
|
|
|
8654
8654
|
}, g);
|
|
8655
8655
|
}, b);
|
|
8656
8656
|
}, i.toggleMenu = function(g, b) {
|
|
8657
|
-
g === void 0 && (g = {}), g =
|
|
8657
|
+
g === void 0 && (g = {}), g = Er(g), i.internalSetState(function(w) {
|
|
8658
8658
|
var f = w.isOpen;
|
|
8659
8659
|
return ne({
|
|
8660
8660
|
isOpen: !f
|
|
@@ -8700,7 +8700,7 @@ var is = T.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, as = T.NO
|
|
|
8700
8700
|
clearTimeout(n);
|
|
8701
8701
|
}), this.timeoutIds = [];
|
|
8702
8702
|
}, o.getState = function(n) {
|
|
8703
|
-
return n === void 0 && (n = this.state),
|
|
8703
|
+
return n === void 0 && (n = this.state), nr(n, this.props);
|
|
8704
8704
|
}, o.getItemCount = function() {
|
|
8705
8705
|
var n = this.items.length;
|
|
8706
8706
|
return this.itemCount != null ? n = this.itemCount : this.props.itemCount !== void 0 && (n = this.props.itemCount), n;
|
|
@@ -8967,7 +8967,7 @@ function Jr(e) {
|
|
|
8967
8967
|
}
|
|
8968
8968
|
function ys(e, r, t, o) {
|
|
8969
8969
|
var n = de(), i = de(), a = W(function(I, k) {
|
|
8970
|
-
i.current = k, I =
|
|
8970
|
+
i.current = k, I = nr(I, k.props);
|
|
8971
8971
|
var x = e(I, k), m = k.props.stateReducer(I, ne({}, k, {
|
|
8972
8972
|
changes: x
|
|
8973
8973
|
}));
|
|
@@ -8978,13 +8978,13 @@ function ys(e, r, t, o) {
|
|
|
8978
8978
|
}, I));
|
|
8979
8979
|
}, [d]), h = i.current;
|
|
8980
8980
|
return ce(function() {
|
|
8981
|
-
var I =
|
|
8981
|
+
var I = nr(n.current, h == null ? void 0 : h.props), k = h && n.current && !o(I, l);
|
|
8982
8982
|
k && Jp(h, I, l), n.current = l;
|
|
8983
8983
|
}, [l, h, o]), [l, u];
|
|
8984
8984
|
}
|
|
8985
8985
|
function Is(e, r, t, o) {
|
|
8986
8986
|
var n = ys(e, r, t, o), i = n[0], a = n[1];
|
|
8987
|
-
return [
|
|
8987
|
+
return [nr(i, r), a];
|
|
8988
8988
|
}
|
|
8989
8989
|
var Jt = {
|
|
8990
8990
|
itemToString: function(e) {
|
|
@@ -9094,7 +9094,7 @@ T.NODE_ENV !== "production" && (Qr = function() {
|
|
|
9094
9094
|
});
|
|
9095
9095
|
function Ko(e, r, t, o) {
|
|
9096
9096
|
o === void 0 && (o = {});
|
|
9097
|
-
var n = o.document, i =
|
|
9097
|
+
var n = o.document, i = dr();
|
|
9098
9098
|
ce(function() {
|
|
9099
9099
|
if (!(!e || i || !n)) {
|
|
9100
9100
|
var a = e(r);
|
|
@@ -9114,7 +9114,7 @@ function Ss(e) {
|
|
|
9114
9114
|
}
|
|
9115
9115
|
var eo = Le;
|
|
9116
9116
|
T.NODE_ENV !== "production" && (eo = function(e) {
|
|
9117
|
-
var r = e.props, t = e.state, o = de(r), n =
|
|
9117
|
+
var r = e.props, t = e.state, o = de(r), n = dr();
|
|
9118
9118
|
ce(function() {
|
|
9119
9119
|
n || (jo(t, o.current, r), o.current = r);
|
|
9120
9120
|
}, [t, r, n]);
|
|
@@ -9137,7 +9137,7 @@ function Wr(e, r, t) {
|
|
|
9137
9137
|
function Os(e, r) {
|
|
9138
9138
|
return e.isOpen === r.isOpen && e.inputValue === r.inputValue && e.highlightedIndex === r.highlightedIndex && e.selectedItem === r.selectedItem;
|
|
9139
9139
|
}
|
|
9140
|
-
function
|
|
9140
|
+
function dr() {
|
|
9141
9141
|
var e = Ot.useRef(!0);
|
|
9142
9142
|
return Ot.useEffect(function() {
|
|
9143
9143
|
return e.current = !1, function() {
|
|
@@ -9153,7 +9153,7 @@ function oh(e) {
|
|
|
9153
9153
|
var r = kt(e, "highlightedIndex");
|
|
9154
9154
|
return r > -1 && e.isItemDisabled(e.items[r], r) ? -1 : r;
|
|
9155
9155
|
}
|
|
9156
|
-
var
|
|
9156
|
+
var Cr = {
|
|
9157
9157
|
environment: j.shape({
|
|
9158
9158
|
addEventListener: j.func.isRequired,
|
|
9159
9159
|
removeEventListener: j.func.isRequired,
|
|
@@ -9168,7 +9168,7 @@ var zr = {
|
|
|
9168
9168
|
itemToString: j.func,
|
|
9169
9169
|
itemToKey: j.func,
|
|
9170
9170
|
stateReducer: j.func
|
|
9171
|
-
}, _s = ne({},
|
|
9171
|
+
}, _s = ne({}, Cr, {
|
|
9172
9172
|
getA11yStatusMessage: j.func,
|
|
9173
9173
|
highlightedIndex: j.number,
|
|
9174
9174
|
defaultHighlightedIndex: j.number,
|
|
@@ -9258,7 +9258,7 @@ var ih = Vt(Vt({}, _s), { items: j.array.isRequired, isItemDisabled: j.func }),
|
|
|
9258
9258
|
T.NODE_ENV !== "production" && (Ds = function(e, r) {
|
|
9259
9259
|
j.checkPropTypes(ih, e, "prop", r.name);
|
|
9260
9260
|
});
|
|
9261
|
-
var
|
|
9261
|
+
var Mr = T.NODE_ENV !== "production" ? "__togglebutton_click__" : 0, qo = T.NODE_ENV !== "production" ? "__togglebutton_keydown_arrow_down__" : 1, Go = T.NODE_ENV !== "production" ? "__togglebutton_keydown_arrow_up__" : 2, Kr = T.NODE_ENV !== "production" ? "__togglebutton_keydown_character__" : 3, Uo = T.NODE_ENV !== "production" ? "__togglebutton_keydown_escape__" : 4, Yo = T.NODE_ENV !== "production" ? "__togglebutton_keydown_home__" : 5, Zo = T.NODE_ENV !== "production" ? "__togglebutton_keydown_end__" : 6, Xo = T.NODE_ENV !== "production" ? "__togglebutton_keydown_enter__" : 7, Jo = T.NODE_ENV !== "production" ? "__togglebutton_keydown_space_button__" : 8, Qo = T.NODE_ENV !== "production" ? "__togglebutton_keydown_page_up__" : 9, en = T.NODE_ENV !== "production" ? "__togglebutton_keydown_page_down__" : 10, qr = T.NODE_ENV !== "production" ? "__togglebutton_blur__" : 11, zs = T.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 12, Cs = T.NODE_ENV !== "production" ? "__item_mouse_move__" : 13, tn = T.NODE_ENV !== "production" ? "__item_click__" : 14, Ms = T.NODE_ENV !== "production" ? "__function_toggle_menu__" : 15, Rs = T.NODE_ENV !== "production" ? "__function_open_menu__" : 16, Ts = T.NODE_ENV !== "production" ? "__function_close_menu__" : 17, Ps = T.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 18, rn = T.NODE_ENV !== "production" ? "__function_select_item__" : 19, No = T.NODE_ENV !== "production" ? "__function_set_input_value__" : 20, As = T.NODE_ENV !== "production" ? "__function_reset__" : 21, Hs = /* @__PURE__ */ Object.freeze({
|
|
9262
9262
|
__proto__: null,
|
|
9263
9263
|
FunctionCloseMenu: Ts,
|
|
9264
9264
|
FunctionOpenMenu: Rs,
|
|
@@ -9271,7 +9271,7 @@ var Cr = T.NODE_ENV !== "production" ? "__togglebutton_click__" : 0, qo = T.NODE
|
|
|
9271
9271
|
ItemMouseMove: Cs,
|
|
9272
9272
|
MenuMouseLeave: zs,
|
|
9273
9273
|
ToggleButtonBlur: qr,
|
|
9274
|
-
ToggleButtonClick:
|
|
9274
|
+
ToggleButtonClick: Mr,
|
|
9275
9275
|
ToggleButtonKeyDownArrowDown: qo,
|
|
9276
9276
|
ToggleButtonKeyDownArrowUp: Go,
|
|
9277
9277
|
ToggleButtonKeyDownCharacter: Kr,
|
|
@@ -9460,7 +9460,7 @@ function pt(e) {
|
|
|
9460
9460
|
},
|
|
9461
9461
|
Enter: function(v) {
|
|
9462
9462
|
v.preventDefault(), s({
|
|
9463
|
-
type: _.current.state.isOpen ? Xo :
|
|
9463
|
+
type: _.current.state.isOpen ? Xo : Mr
|
|
9464
9464
|
});
|
|
9465
9465
|
},
|
|
9466
9466
|
PageUp: function(v) {
|
|
@@ -9478,7 +9478,7 @@ function pt(e) {
|
|
|
9478
9478
|
var E = _.current.state;
|
|
9479
9479
|
if (!E.isOpen) {
|
|
9480
9480
|
s({
|
|
9481
|
-
type:
|
|
9481
|
+
type: Mr
|
|
9482
9482
|
});
|
|
9483
9483
|
return;
|
|
9484
9484
|
}
|
|
@@ -9545,7 +9545,7 @@ function pt(e) {
|
|
|
9545
9545
|
P.onPress;
|
|
9546
9546
|
var C = P.onKeyDown, N = P.refKey, V = N === void 0 ? "ref" : N, X = P.ref, G = Be(P, dh), oe = E === void 0 ? {} : E, A = oe.suppressRefError, te = A === void 0 ? !1 : A, K = _.current.state, ge = function() {
|
|
9547
9547
|
s({
|
|
9548
|
-
type:
|
|
9548
|
+
type: Mr
|
|
9549
9549
|
});
|
|
9550
9550
|
}, fe = function() {
|
|
9551
9551
|
K.isOpen && !O.isMouseDown && s({
|
|
@@ -9647,7 +9647,7 @@ var hh = ne({}, _s, {
|
|
|
9647
9647
|
onInputValueChange: j.func
|
|
9648
9648
|
});
|
|
9649
9649
|
function gh(e, r, t, o) {
|
|
9650
|
-
var n = de(), i = ys(e, r, t, o), a = i[0], s = i[1], l =
|
|
9650
|
+
var n = de(), i = ys(e, r, t, o), a = i[0], s = i[1], l = dr();
|
|
9651
9651
|
return ce(function() {
|
|
9652
9652
|
if (Fr(r, "selectedItem")) {
|
|
9653
9653
|
if (!l) {
|
|
@@ -9659,7 +9659,7 @@ function gh(e, r, t, o) {
|
|
|
9659
9659
|
}
|
|
9660
9660
|
n.current = a.selectedItem === n.current ? r.selectedItem : a.selectedItem;
|
|
9661
9661
|
}
|
|
9662
|
-
}, [a.selectedItem, r.selectedItem]), [
|
|
9662
|
+
}, [a.selectedItem, r.selectedItem]), [nr(a, r), s];
|
|
9663
9663
|
}
|
|
9664
9664
|
var Us = Le;
|
|
9665
9665
|
T.NODE_ENV !== "production" && (Us = function(e, r) {
|
|
@@ -9771,7 +9771,7 @@ var mh = ["onMouseLeave", "refKey", "ref"], bh = ["item", "index", "refKey", "re
|
|
|
9771
9771
|
We.stateChangeTypes = Gs;
|
|
9772
9772
|
function We(e) {
|
|
9773
9773
|
e === void 0 && (e = {}), Us(e, We);
|
|
9774
|
-
var r = ne({}, vh, e), t = r.items, o = r.scrollIntoView, n = r.environment, i = r.getA11yStatusMessage, a = gh(fh, r, ph, Os), s = a[0], l = a[1], c = s.isOpen, d = s.highlightedIndex, u = s.selectedItem, h = s.inputValue, I = de(null), k = de({}), x = de(null), m = de(null), _ =
|
|
9774
|
+
var r = ne({}, vh, e), t = r.items, o = r.scrollIntoView, n = r.environment, i = r.getA11yStatusMessage, a = gh(fh, r, ph, Os), s = a[0], l = a[1], c = s.isOpen, d = s.highlightedIndex, u = s.selectedItem, h = s.inputValue, I = de(null), k = de({}), x = de(null), m = de(null), _ = dr(), g = xs(r), b = de(), w = Jr({
|
|
9775
9775
|
state: s,
|
|
9776
9776
|
props: r
|
|
9777
9777
|
}), f = W(function(S) {
|
|
@@ -10024,9 +10024,9 @@ function Ih(e, r) {
|
|
|
10024
10024
|
return e.selectedItems === r.selectedItems && e.activeIndex === r.activeIndex;
|
|
10025
10025
|
}
|
|
10026
10026
|
var kh = {
|
|
10027
|
-
stateReducer:
|
|
10028
|
-
itemToKey:
|
|
10029
|
-
environment:
|
|
10027
|
+
stateReducer: Cr.stateReducer,
|
|
10028
|
+
itemToKey: Cr.itemToKey,
|
|
10029
|
+
environment: Cr.environment,
|
|
10030
10030
|
selectedItems: j.array,
|
|
10031
10031
|
initialSelectedItems: j.array,
|
|
10032
10032
|
defaultSelectedItems: j.array,
|
|
@@ -10155,7 +10155,7 @@ var _h = ["refKey", "ref", "onClick", "onKeyDown", "selectedItem", "index"], Nh
|
|
|
10155
10155
|
zn.stateChangeTypes = Sh;
|
|
10156
10156
|
function zn(e) {
|
|
10157
10157
|
e === void 0 && (e = {}), Zs(e, zn);
|
|
10158
|
-
var r = ne({}, Eh, e), t = r.getA11yStatusMessage, o = r.environment, n = r.keyNavigationNext, i = r.keyNavigationPrevious, a = Is(Oh, r, yh, Ih), s = a[0], l = a[1], c = s.activeIndex, d = s.selectedItems, u =
|
|
10158
|
+
var r = ne({}, Eh, e), t = r.getA11yStatusMessage, o = r.environment, n = r.keyNavigationNext, i = r.keyNavigationPrevious, a = Is(Oh, r, yh, Ih), s = a[0], l = a[1], c = s.activeIndex, d = s.selectedItems, u = dr(), h = de(null), I = de();
|
|
10159
10159
|
I.current = [];
|
|
10160
10160
|
var k = Jr({
|
|
10161
10161
|
state: s,
|
|
@@ -10663,7 +10663,7 @@ const zh = () => {
|
|
|
10663
10663
|
className: e,
|
|
10664
10664
|
children: r,
|
|
10665
10665
|
isMulti: t
|
|
10666
|
-
}) => /* @__PURE__ */ p("div", { className: R(ip({ isMulti: t }), e), children: r }),
|
|
10666
|
+
}) => /* @__PURE__ */ p("div", { className: R(ip({ isMulti: t }), e), children: r }), Rr = ke(
|
|
10667
10667
|
({ isHidden: e, inputClassName: r, className: t, ...o }, n) => {
|
|
10668
10668
|
const { size: i, color: a } = Te();
|
|
10669
10669
|
return e ? /* @__PURE__ */ p(
|
|
@@ -10748,7 +10748,7 @@ const zh = () => {
|
|
|
10748
10748
|
isDisabled: !1
|
|
10749
10749
|
}),
|
|
10750
10750
|
onClick: d,
|
|
10751
|
-
children: /* @__PURE__ */ p(
|
|
10751
|
+
children: /* @__PURE__ */ p(ar, { className: "w-3 h-3" })
|
|
10752
10752
|
}
|
|
10753
10753
|
)
|
|
10754
10754
|
]
|
|
@@ -10825,7 +10825,7 @@ const zh = () => {
|
|
|
10825
10825
|
tabIndex: -1,
|
|
10826
10826
|
"aria-label": "Clear selection",
|
|
10827
10827
|
...n,
|
|
10828
|
-
children: r || /* @__PURE__ */ p(
|
|
10828
|
+
children: r || /* @__PURE__ */ p(ar, {})
|
|
10829
10829
|
}
|
|
10830
10830
|
);
|
|
10831
10831
|
}, el = ke(
|
|
@@ -10917,7 +10917,7 @@ const zh = () => {
|
|
|
10917
10917
|
}
|
|
10918
10918
|
);
|
|
10919
10919
|
}
|
|
10920
|
-
),
|
|
10920
|
+
), Tr = ({
|
|
10921
10921
|
className: e,
|
|
10922
10922
|
children: r,
|
|
10923
10923
|
data: t,
|
|
@@ -11331,14 +11331,14 @@ const zh = () => {
|
|
|
11331
11331
|
), Kn = (ae) => h ? ae.filter((ue) => !wl(ue)) : ae, xl = (ae) => h ? ae.map((ue) => ({
|
|
11332
11332
|
...ue,
|
|
11333
11333
|
options: Kn(ue.options)
|
|
11334
|
-
})).filter((ue) => ue.options.length > 0) : ae, Nt = So(H) ? [] : Kn(S.filteredItems), yl = { sm: 22, md: 28, lg: 36 }[v] ?? 28, Kt = Nt.length >= se,
|
|
11334
|
+
})).filter((ue) => ue.options.length > 0) : ae, Nt = So(H) ? [] : Kn(S.filteredItems), yl = { sm: 22, md: 28, lg: 36 }[v] ?? 28, Kt = Nt.length >= se, ur = ep({
|
|
11335
11335
|
count: Kt ? Nt.length : 0,
|
|
11336
11336
|
getScrollElement: () => ve.current,
|
|
11337
11337
|
estimateSize: () => yl,
|
|
11338
11338
|
overscan: 5
|
|
11339
11339
|
});
|
|
11340
11340
|
ce(() => {
|
|
11341
|
-
Kt && Ee && De >= 0 && De < Nt.length &&
|
|
11341
|
+
Kt && Ee && De >= 0 && De < Nt.length && ur.scrollToIndex(De, { align: "auto" });
|
|
11342
11342
|
}, [De, Kt, Ee]);
|
|
11343
11343
|
const { registerOnSelectionComplete: qn } = Te();
|
|
11344
11344
|
ce(() => {
|
|
@@ -11384,7 +11384,7 @@ const zh = () => {
|
|
|
11384
11384
|
}
|
|
11385
11385
|
) }),
|
|
11386
11386
|
dt && d === "trigger" ? /* @__PURE__ */ p(
|
|
11387
|
-
|
|
11387
|
+
Rr,
|
|
11388
11388
|
{
|
|
11389
11389
|
ref: no,
|
|
11390
11390
|
...oo,
|
|
@@ -11394,7 +11394,7 @@ const zh = () => {
|
|
|
11394
11394
|
}
|
|
11395
11395
|
) : /* @__PURE__ */ Z(wt, { children: [
|
|
11396
11396
|
/* @__PURE__ */ p(
|
|
11397
|
-
|
|
11397
|
+
Rr,
|
|
11398
11398
|
{
|
|
11399
11399
|
ref: no,
|
|
11400
11400
|
...oo,
|
|
@@ -11463,7 +11463,7 @@ const zh = () => {
|
|
|
11463
11463
|
children: [
|
|
11464
11464
|
x && x(S),
|
|
11465
11465
|
dt && d === "menu" && /* @__PURE__ */ p("div", { className: "p-2", children: /* @__PURE__ */ p(
|
|
11466
|
-
|
|
11466
|
+
Rr,
|
|
11467
11467
|
{
|
|
11468
11468
|
ref: no,
|
|
11469
11469
|
...oo,
|
|
@@ -11478,7 +11478,7 @@ const zh = () => {
|
|
|
11478
11478
|
Vh,
|
|
11479
11479
|
{
|
|
11480
11480
|
ref: ve,
|
|
11481
|
-
totalHeight: Kt ?
|
|
11481
|
+
totalHeight: Kt ? ur.getTotalSize() : void 0,
|
|
11482
11482
|
children: a ? /* @__PURE__ */ p("div", { className: bp({ size: v }), children: o }) : S.filteredItems.length === 0 ? /* @__PURE__ */ p(wo, { inputValue: Ae, children: typeof r == "function" ? r(Ae) : r }) : So(H) ? (() => {
|
|
11483
11483
|
const ae = xl(
|
|
11484
11484
|
H
|
|
@@ -11498,7 +11498,7 @@ const zh = () => {
|
|
|
11498
11498
|
index: it
|
|
11499
11499
|
});
|
|
11500
11500
|
return /* @__PURE__ */ p(
|
|
11501
|
-
|
|
11501
|
+
Tr,
|
|
11502
11502
|
{
|
|
11503
11503
|
...qt,
|
|
11504
11504
|
data: He,
|
|
@@ -11519,7 +11519,7 @@ const zh = () => {
|
|
|
11519
11519
|
},
|
|
11520
11520
|
`${ue.label}-${Xe}`
|
|
11521
11521
|
));
|
|
11522
|
-
})() : Nt.length === 0 ? /* @__PURE__ */ p(wo, { inputValue: Ae, children: typeof r == "function" ? r(Ae) : r }) : Kt ?
|
|
11522
|
+
})() : Nt.length === 0 ? /* @__PURE__ */ p(wo, { inputValue: Ae, children: typeof r == "function" ? r(Ae) : r }) : Kt ? ur.getVirtualItems().map((ae) => {
|
|
11523
11523
|
const ue = Nt[ae.index], Xe = N(ue), He = nt.some(
|
|
11524
11524
|
(Dt) => N(Dt) === Xe
|
|
11525
11525
|
), Je = S.filteredItems.indexOf(ue), Qe = De === Je, it = V(ue), ht = ot({
|
|
@@ -11530,7 +11530,7 @@ const zh = () => {
|
|
|
11530
11530
|
"div",
|
|
11531
11531
|
{
|
|
11532
11532
|
"data-index": ae.index,
|
|
11533
|
-
ref:
|
|
11533
|
+
ref: ur.measureElement,
|
|
11534
11534
|
style: {
|
|
11535
11535
|
position: "absolute",
|
|
11536
11536
|
top: 0,
|
|
@@ -11539,7 +11539,7 @@ const zh = () => {
|
|
|
11539
11539
|
transform: `translateY(${ae.start}px)`
|
|
11540
11540
|
},
|
|
11541
11541
|
children: /* @__PURE__ */ p(
|
|
11542
|
-
|
|
11542
|
+
Tr,
|
|
11543
11543
|
{
|
|
11544
11544
|
...ht,
|
|
11545
11545
|
data: ue,
|
|
@@ -11566,7 +11566,7 @@ const zh = () => {
|
|
|
11566
11566
|
index: He
|
|
11567
11567
|
});
|
|
11568
11568
|
return /* @__PURE__ */ p(
|
|
11569
|
-
|
|
11569
|
+
Tr,
|
|
11570
11570
|
{
|
|
11571
11571
|
...it,
|
|
11572
11572
|
data: ae,
|
|
@@ -11597,11 +11597,11 @@ const zh = () => {
|
|
|
11597
11597
|
Xs.displayName = "Select.Root";
|
|
11598
11598
|
rl.displayName = "Select.Group";
|
|
11599
11599
|
Bh.displayName = "Select.Icon";
|
|
11600
|
-
|
|
11600
|
+
Rr.displayName = "Select.Input";
|
|
11601
11601
|
Js.displayName = "Select.MultiValue";
|
|
11602
11602
|
Qs.displayName = "Select.ClearIndicator";
|
|
11603
11603
|
el.displayName = "Select.DropdownIndicator";
|
|
11604
|
-
|
|
11604
|
+
Tr.displayName = "Select.Option";
|
|
11605
11605
|
tl.displayName = "Select.OptionGroup";
|
|
11606
11606
|
ol.displayName = "Select.Message";
|
|
11607
11607
|
const Wh = nl;
|
|
@@ -11709,7 +11709,7 @@ function Cn(e) {
|
|
|
11709
11709
|
const n = !!o.regexPattern, i = (Array.isArray(o.verbs) ? o.verbs : (o.verbs ?? "").split(",")).map((a) => a.toUpperCase()).filter(Boolean);
|
|
11710
11710
|
return {
|
|
11711
11711
|
...o,
|
|
11712
|
-
id: o.id ??
|
|
11712
|
+
id: o.id ?? er(),
|
|
11713
11713
|
verbs: i,
|
|
11714
11714
|
asRegex: n
|
|
11715
11715
|
};
|
|
@@ -11981,7 +11981,7 @@ var sl = (function(e) {
|
|
|
11981
11981
|
try {
|
|
11982
11982
|
t.next(r);
|
|
11983
11983
|
} catch (o) {
|
|
11984
|
-
|
|
11984
|
+
Sr(o);
|
|
11985
11985
|
}
|
|
11986
11986
|
}, e.prototype.error = function(r) {
|
|
11987
11987
|
var t = this.partialObserver;
|
|
@@ -11989,17 +11989,17 @@ var sl = (function(e) {
|
|
|
11989
11989
|
try {
|
|
11990
11990
|
t.error(r);
|
|
11991
11991
|
} catch (o) {
|
|
11992
|
-
|
|
11992
|
+
Sr(o);
|
|
11993
11993
|
}
|
|
11994
11994
|
else
|
|
11995
|
-
|
|
11995
|
+
Sr(r);
|
|
11996
11996
|
}, e.prototype.complete = function() {
|
|
11997
11997
|
var r = this.partialObserver;
|
|
11998
11998
|
if (r.complete)
|
|
11999
11999
|
try {
|
|
12000
12000
|
r.complete();
|
|
12001
12001
|
} catch (t) {
|
|
12002
|
-
|
|
12002
|
+
Sr(t);
|
|
12003
12003
|
}
|
|
12004
12004
|
}, e;
|
|
12005
12005
|
})(), rg = (function(e) {
|
|
@@ -12014,7 +12014,7 @@ var sl = (function(e) {
|
|
|
12014
12014
|
}
|
|
12015
12015
|
return r;
|
|
12016
12016
|
})(sl);
|
|
12017
|
-
function
|
|
12017
|
+
function Sr(e) {
|
|
12018
12018
|
eg(e);
|
|
12019
12019
|
}
|
|
12020
12020
|
function og(e) {
|
|
@@ -12169,7 +12169,7 @@ function dg(e, r) {
|
|
|
12169
12169
|
};
|
|
12170
12170
|
}
|
|
12171
12171
|
case "ADD_HANDLER": {
|
|
12172
|
-
const t =
|
|
12172
|
+
const { id: t } = r;
|
|
12173
12173
|
return {
|
|
12174
12174
|
...e,
|
|
12175
12175
|
content: [...e.content, { ...r.payload, id: t }],
|
|
@@ -12205,7 +12205,7 @@ function dg(e, r) {
|
|
|
12205
12205
|
...e,
|
|
12206
12206
|
content: [
|
|
12207
12207
|
...e.content,
|
|
12208
|
-
{ ...t, id:
|
|
12208
|
+
{ ...t, id: er(), isExpanded: !0 }
|
|
12209
12209
|
]
|
|
12210
12210
|
} : e;
|
|
12211
12211
|
}
|
|
@@ -12305,30 +12305,34 @@ const Tn = ct(null), Mo = (e) => ({
|
|
|
12305
12305
|
content: r,
|
|
12306
12306
|
catalog: t = null,
|
|
12307
12307
|
host: o = "web",
|
|
12308
|
-
history: n
|
|
12308
|
+
history: n,
|
|
12309
|
+
editingHandlerId: i,
|
|
12310
|
+
onEditingHandlerChange: a
|
|
12309
12311
|
}) => {
|
|
12310
|
-
const
|
|
12311
|
-
() => Cn(
|
|
12312
|
-
[
|
|
12313
|
-
), [
|
|
12312
|
+
const s = Pe(
|
|
12313
|
+
() => Cn(r),
|
|
12314
|
+
[r]
|
|
12315
|
+
), [l, c] = Ro(
|
|
12314
12316
|
cl,
|
|
12315
|
-
Mo(
|
|
12317
|
+
Mo(s)
|
|
12316
12318
|
);
|
|
12317
12319
|
ce(() => {
|
|
12318
|
-
|
|
12320
|
+
c({
|
|
12319
12321
|
type: "SYNC_DATA",
|
|
12320
|
-
payload:
|
|
12322
|
+
payload: s
|
|
12321
12323
|
});
|
|
12322
|
-
}, [
|
|
12323
|
-
const
|
|
12324
|
+
}, [s]);
|
|
12325
|
+
const d = Pe(
|
|
12324
12326
|
() => ({
|
|
12325
12327
|
catalog: t,
|
|
12326
12328
|
host: o,
|
|
12327
|
-
history: n
|
|
12329
|
+
history: n,
|
|
12330
|
+
editingHandlerId: i,
|
|
12331
|
+
onEditingHandlerChange: a
|
|
12328
12332
|
}),
|
|
12329
|
-
[t, o, n]
|
|
12333
|
+
[t, o, n, i, a]
|
|
12330
12334
|
);
|
|
12331
|
-
return /* @__PURE__ */ p(Tn.Provider, { value: { state:
|
|
12335
|
+
return /* @__PURE__ */ p(Tn.Provider, { value: { state: l, dispatch: c, external: d }, children: e });
|
|
12332
12336
|
};
|
|
12333
12337
|
function pg() {
|
|
12334
12338
|
var n, i, a, s;
|
|
@@ -12340,7 +12344,10 @@ function pg() {
|
|
|
12340
12344
|
const { state: r, dispatch: t, external: o } = e;
|
|
12341
12345
|
return {
|
|
12342
12346
|
getHandlers: W(() => r.content, [r.content]),
|
|
12343
|
-
getEditingHandlerId: W(
|
|
12347
|
+
getEditingHandlerId: W(
|
|
12348
|
+
() => o.editingHandlerId !== void 0 ? o.editingHandlerId : r.editing,
|
|
12349
|
+
[o.editingHandlerId, r.editing]
|
|
12350
|
+
),
|
|
12344
12351
|
getNewlyCreatedHandlerId: W(
|
|
12345
12352
|
() => r.newlyCreatedHandlerID,
|
|
12346
12353
|
[r.newlyCreatedHandlerID]
|
|
@@ -12361,9 +12368,14 @@ function pg() {
|
|
|
12361
12368
|
updateHandlers: W((l) => {
|
|
12362
12369
|
t({ type: "UPDATE_HANDLERS", payload: l });
|
|
12363
12370
|
}, []),
|
|
12364
|
-
addHandler: W(
|
|
12365
|
-
|
|
12366
|
-
|
|
12371
|
+
addHandler: W(
|
|
12372
|
+
(l) => {
|
|
12373
|
+
var d;
|
|
12374
|
+
const c = er();
|
|
12375
|
+
t({ type: "ADD_HANDLER", payload: l, id: c }), (d = o.onEditingHandlerChange) == null || d.call(o, c);
|
|
12376
|
+
},
|
|
12377
|
+
[o.onEditingHandlerChange]
|
|
12378
|
+
),
|
|
12367
12379
|
updateHandler: W(
|
|
12368
12380
|
(l, c) => {
|
|
12369
12381
|
t({ type: "UPDATE_HANDLER", id: l, payload: c });
|
|
@@ -12382,9 +12394,13 @@ function pg() {
|
|
|
12382
12394
|
toggleAllExpanded: W((l) => {
|
|
12383
12395
|
t({ type: "TOGGLE_ALL_EXPANDED", payload: l });
|
|
12384
12396
|
}, []),
|
|
12385
|
-
setEditingHandler: W(
|
|
12386
|
-
|
|
12387
|
-
|
|
12397
|
+
setEditingHandler: W(
|
|
12398
|
+
(l) => {
|
|
12399
|
+
var c;
|
|
12400
|
+
(c = o.onEditingHandlerChange) == null || c.call(o, l), t({ type: "SET_EDITING_HANDLER", payload: l });
|
|
12401
|
+
},
|
|
12402
|
+
[o.onEditingHandlerChange]
|
|
12403
|
+
),
|
|
12388
12404
|
undo: W(() => {
|
|
12389
12405
|
var l;
|
|
12390
12406
|
if ((l = o.history) != null && l.onUndo) {
|
|
@@ -12403,7 +12419,7 @@ function pg() {
|
|
|
12403
12419
|
}, [(s = o.history) == null ? void 0 : s.onRedo]),
|
|
12404
12420
|
openModal: W(
|
|
12405
12421
|
async (l) => {
|
|
12406
|
-
const { type: c =
|
|
12422
|
+
const { type: c = Pr.ALERT } = l, d = er();
|
|
12407
12423
|
return t({
|
|
12408
12424
|
type: "CREATE_MODAL",
|
|
12409
12425
|
payload: {
|
|
@@ -12412,7 +12428,7 @@ function pg() {
|
|
|
12412
12428
|
isOpen: !0,
|
|
12413
12429
|
...l
|
|
12414
12430
|
}
|
|
12415
|
-
}), c ===
|
|
12431
|
+
}), c === Pr.CONFIRM ? new Promise((u) => {
|
|
12416
12432
|
const h = ll.pipe(
|
|
12417
12433
|
sg((I) => {
|
|
12418
12434
|
const k = I.list.find(
|
|
@@ -12484,7 +12500,7 @@ function jg(e, r) {
|
|
|
12484
12500
|
s({ type: "UPDATE_HANDLERS", payload: l });
|
|
12485
12501
|
}, []),
|
|
12486
12502
|
addHandler: W((l) => {
|
|
12487
|
-
s({ type: "ADD_HANDLER", payload: l });
|
|
12503
|
+
s({ type: "ADD_HANDLER", payload: l, id: er() });
|
|
12488
12504
|
}, []),
|
|
12489
12505
|
updateHandler: W(
|
|
12490
12506
|
(l, c) => {
|
|
@@ -12558,7 +12574,7 @@ function hg() {
|
|
|
12558
12574
|
)
|
|
12559
12575
|
};
|
|
12560
12576
|
}
|
|
12561
|
-
const
|
|
12577
|
+
const ir = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.body, gg = ({
|
|
12562
12578
|
initialSelectedItems: e,
|
|
12563
12579
|
onChange: r,
|
|
12564
12580
|
touched: t,
|
|
@@ -12663,7 +12679,7 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
12663
12679
|
{
|
|
12664
12680
|
placeholder: "Select method...",
|
|
12665
12681
|
renderOption: ({ data: u }) => /* @__PURE__ */ Z("div", { className: "flex items-center gap-2 truncate", children: [
|
|
12666
|
-
u.exposed && /* @__PURE__ */ p(
|
|
12682
|
+
u.exposed && /* @__PURE__ */ p(Or, { className: "text-warning shrink-0" }),
|
|
12667
12683
|
/* @__PURE__ */ p("span", { className: "truncate", title: u.name, children: u.name })
|
|
12668
12684
|
] }),
|
|
12669
12685
|
onBlur: n,
|
|
@@ -12737,7 +12753,7 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
12737
12753
|
if (!Yr(y, D)) {
|
|
12738
12754
|
const { confirmed: F } = await u.actions.openModal({
|
|
12739
12755
|
title: "Cancel Changes",
|
|
12740
|
-
type:
|
|
12756
|
+
type: Pr.CONFIRM,
|
|
12741
12757
|
color: aa.DANGER,
|
|
12742
12758
|
message: "Are you sure you want to cancel changes made to this Handler?",
|
|
12743
12759
|
icon: "FdWarningDanger"
|
|
@@ -12757,7 +12773,7 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
12757
12773
|
},
|
|
12758
12774
|
[]
|
|
12759
12775
|
), ce(() => {
|
|
12760
|
-
|
|
12776
|
+
ir.subscribe((y) => {
|
|
12761
12777
|
y === e && _();
|
|
12762
12778
|
});
|
|
12763
12779
|
}, [c, e]);
|
|
@@ -12869,7 +12885,7 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
12869
12885
|
[c.asRegex ? "regexPattern" : "pattern"]: ""
|
|
12870
12886
|
}));
|
|
12871
12887
|
},
|
|
12872
|
-
children: /* @__PURE__ */ p(
|
|
12888
|
+
children: /* @__PURE__ */ p(ar, { "aria-hidden": "true" })
|
|
12873
12889
|
}
|
|
12874
12890
|
),
|
|
12875
12891
|
/* @__PURE__ */ p(
|
|
@@ -12950,7 +12966,7 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
12950
12966
|
color: "white",
|
|
12951
12967
|
disabled: !m(),
|
|
12952
12968
|
onClick: _,
|
|
12953
|
-
className:
|
|
12969
|
+
className: Ar(!m() && "cursor-not-allowed"),
|
|
12954
12970
|
children: /* @__PURE__ */ p(cc, {})
|
|
12955
12971
|
}
|
|
12956
12972
|
) }),
|
|
@@ -13010,7 +13026,7 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
13010
13026
|
{
|
|
13011
13027
|
className: "flex items-center gap-2 rounded-b py-2.5",
|
|
13012
13028
|
onDoubleClick: () => {
|
|
13013
|
-
|
|
13029
|
+
ir.next(x), k.actions.setEditingHandler(e);
|
|
13014
13030
|
},
|
|
13015
13031
|
children: [
|
|
13016
13032
|
/* @__PURE__ */ Z("div", { className: "flex w-60 shrink-0 items-center gap-1 ", children: [
|
|
@@ -13022,14 +13038,14 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
13022
13038
|
},
|
|
13023
13039
|
"grab-handle"
|
|
13024
13040
|
),
|
|
13025
|
-
/* @__PURE__ */ p("div", { className: "text-s w-full", children: r ? /* @__PURE__ */ Z("div", { className:
|
|
13041
|
+
/* @__PURE__ */ p("div", { className: "text-s w-full", children: r ? /* @__PURE__ */ Z("div", { className: Ar("flex items-center gap-2"), children: [
|
|
13026
13042
|
!w && /* @__PURE__ */ p(
|
|
13027
13043
|
$e,
|
|
13028
13044
|
{
|
|
13029
13045
|
label: `The singleton "${r}" doesn't exist.`,
|
|
13030
13046
|
color: "negative",
|
|
13031
13047
|
container: Ke(),
|
|
13032
|
-
children: /* @__PURE__ */ p("span", { className: "rounded p-0.5 pt-0.5 h-5 w-5 flex justify-center content-center", children: /* @__PURE__ */ p(
|
|
13048
|
+
children: /* @__PURE__ */ p("span", { className: "rounded p-0.5 pt-0.5 h-5 w-5 flex justify-center content-center", children: /* @__PURE__ */ p(Or, { className: "h-4 w-4" }) })
|
|
13033
13049
|
}
|
|
13034
13050
|
),
|
|
13035
13051
|
" ",
|
|
@@ -13039,7 +13055,7 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
13039
13055
|
/* @__PURE__ */ p("div", { className: "w-60 shrink-0 ", children: /* @__PURE__ */ p("div", { className: "text-s w-full", children: t ? /* @__PURE__ */ Z(
|
|
13040
13056
|
"div",
|
|
13041
13057
|
{
|
|
13042
|
-
className:
|
|
13058
|
+
className: Ar(
|
|
13043
13059
|
"flex items-center gap-2",
|
|
13044
13060
|
!f && "text-negative-text",
|
|
13045
13061
|
O && "text-warning-text"
|
|
@@ -13051,7 +13067,7 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
13051
13067
|
label: `The method "${t}" doesn't exist.`,
|
|
13052
13068
|
color: "negative",
|
|
13053
13069
|
container: Ke(),
|
|
13054
|
-
children: /* @__PURE__ */ p("span", { className: "text-negative-text hover:bg-negative-hover rounded p-0.5 pt-0.5 h-5 w-5 flex justify-center content-center", children: /* @__PURE__ */ p(
|
|
13070
|
+
children: /* @__PURE__ */ p("span", { className: "text-negative-text hover:bg-negative-hover rounded p-0.5 pt-0.5 h-5 w-5 flex justify-center content-center", children: /* @__PURE__ */ p(Or, { className: "inline h-4 w-4" }) })
|
|
13055
13071
|
}
|
|
13056
13072
|
),
|
|
13057
13073
|
O && /* @__PURE__ */ p(
|
|
@@ -13060,7 +13076,7 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
13060
13076
|
label: `Method "${t}" is already exposed`,
|
|
13061
13077
|
color: "warning",
|
|
13062
13078
|
container: Ke(),
|
|
13063
|
-
children: /* @__PURE__ */ p("span", { className: "text-warning-text hover:bg-warning-hover rounded p-0.5 pt-0.5 h-5 w-5 flex justify-center content-center", children: /* @__PURE__ */ p(
|
|
13079
|
+
children: /* @__PURE__ */ p("span", { className: "text-warning-text hover:bg-warning-hover rounded p-0.5 pt-0.5 h-5 w-5 flex justify-center content-center", children: /* @__PURE__ */ p(Or, { className: "inline h-4 w-4" }) })
|
|
13064
13080
|
}
|
|
13065
13081
|
),
|
|
13066
13082
|
t
|
|
@@ -13103,7 +13119,7 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
13103
13119
|
variant: "ghost",
|
|
13104
13120
|
color: "white",
|
|
13105
13121
|
onClick: () => {
|
|
13106
|
-
|
|
13122
|
+
ir.next(x), k.actions.setEditingHandler(e);
|
|
13107
13123
|
},
|
|
13108
13124
|
children: /* @__PURE__ */ p(mc, {})
|
|
13109
13125
|
}
|
|
@@ -13127,7 +13143,7 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
13127
13143
|
}
|
|
13128
13144
|
const { confirmed: y } = await k.actions.openModal({
|
|
13129
13145
|
title: "Delete Handler",
|
|
13130
|
-
type:
|
|
13146
|
+
type: Pr.CONFIRM,
|
|
13131
13147
|
color: aa.DANGER,
|
|
13132
13148
|
message: "Are you sure you want to remove this Handler?",
|
|
13133
13149
|
icon: "FdWarningDanger"
|
|
@@ -13158,7 +13174,7 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
13158
13174
|
color: "white",
|
|
13159
13175
|
disabled: !!t,
|
|
13160
13176
|
onClick: () => {
|
|
13161
|
-
|
|
13177
|
+
ir.next(t), r.actions.addHandler({
|
|
13162
13178
|
class: "",
|
|
13163
13179
|
isExpanded: !0,
|
|
13164
13180
|
method: "",
|
|
@@ -13218,12 +13234,12 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
13218
13234
|
/* @__PURE__ */ Z(
|
|
13219
13235
|
"p",
|
|
13220
13236
|
{
|
|
13221
|
-
className:
|
|
13222
|
-
"text-
|
|
13237
|
+
className: Ar(
|
|
13238
|
+
"text-muted text-s items-center gap-1",
|
|
13223
13239
|
e ? "hidden lg:flex" : "flex pr-2"
|
|
13224
13240
|
),
|
|
13225
13241
|
children: [
|
|
13226
|
-
/* @__PURE__ */ p(oc, { className: "inline text-base
|
|
13242
|
+
/* @__PURE__ */ p(oc, { className: "inline text-base" }),
|
|
13227
13243
|
" HTTP handlers are evaluated in the order they are declared"
|
|
13228
13244
|
]
|
|
13229
13245
|
}
|
|
@@ -13330,7 +13346,7 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
13330
13346
|
{
|
|
13331
13347
|
"data-cy": "handlers-editor-empty-add-handler-button",
|
|
13332
13348
|
onClick: () => {
|
|
13333
|
-
|
|
13349
|
+
ir.next(t), e.actions.addHandler({
|
|
13334
13350
|
class: "",
|
|
13335
13351
|
isExpanded: !0,
|
|
13336
13352
|
method: "",
|
|
@@ -13400,7 +13416,9 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
13400
13416
|
catalog: r,
|
|
13401
13417
|
host: t = "vscode",
|
|
13402
13418
|
history: o,
|
|
13403
|
-
|
|
13419
|
+
editingHandlerId: n,
|
|
13420
|
+
onEditingHandlerChange: i,
|
|
13421
|
+
...a
|
|
13404
13422
|
}) => /* @__PURE__ */ p(
|
|
13405
13423
|
ug,
|
|
13406
13424
|
{
|
|
@@ -13408,11 +13426,13 @@ const nr = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
13408
13426
|
catalog: r,
|
|
13409
13427
|
host: t,
|
|
13410
13428
|
history: o,
|
|
13411
|
-
|
|
13429
|
+
editingHandlerId: n,
|
|
13430
|
+
onEditingHandlerChange: i,
|
|
13431
|
+
children: /* @__PURE__ */ p(Eg, { ...a })
|
|
13412
13432
|
}
|
|
13413
13433
|
);
|
|
13414
13434
|
export {
|
|
13415
|
-
|
|
13435
|
+
ir as $handlerSubject,
|
|
13416
13436
|
qh as EditorStateAdapterProvider,
|
|
13417
13437
|
Tn as EditorStateContext,
|
|
13418
13438
|
yg as HTTPHandlersEditor,
|