finform-react-builder 1.8.8 → 1.8.9
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/components/FinForm/types.d.ts +9 -2
- package/dist/index.es.js +181 -170
- package/dist/index.js +34 -34
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -8600,7 +8600,7 @@ const xs = Tt(/* @__PURE__ */ y("path", {
|
|
|
8600
8600
|
800: Lt(e, r, 0.3),
|
|
8601
8601
|
900: Lt(e, r, 0.42)
|
|
8602
8602
|
};
|
|
8603
|
-
},
|
|
8603
|
+
}, ey = to(H.primary.main), ty = to(H.secondary.main), lt = to(H.text.primary), ry = {
|
|
8604
8604
|
primary: H.primary.main,
|
|
8605
8605
|
secondary: H.secondary.main,
|
|
8606
8606
|
textPrimary: H.text.primary,
|
|
@@ -9200,7 +9200,7 @@ const xs = Tt(/* @__PURE__ */ y("path", {
|
|
|
9200
9200
|
}
|
|
9201
9201
|
)
|
|
9202
9202
|
] });
|
|
9203
|
-
},
|
|
9203
|
+
}, th = ({ title: e, subtitle: t, actions: r, align: n = "left", sx: i }) => /* @__PURE__ */ pe(
|
|
9204
9204
|
se,
|
|
9205
9205
|
{
|
|
9206
9206
|
sx: (a) => ({
|
|
@@ -9220,7 +9220,7 @@ const xs = Tt(/* @__PURE__ */ y("path", {
|
|
|
9220
9220
|
r && /* @__PURE__ */ y(se, { sx: { display: "flex", alignItems: "center", gap: 1, flexWrap: "wrap" }, children: r })
|
|
9221
9221
|
]
|
|
9222
9222
|
}
|
|
9223
|
-
),
|
|
9223
|
+
), rh = () => /* @__PURE__ */ pe(
|
|
9224
9224
|
"svg",
|
|
9225
9225
|
{
|
|
9226
9226
|
width: "24",
|
|
@@ -9315,7 +9315,7 @@ function ny({
|
|
|
9315
9315
|
};
|
|
9316
9316
|
},
|
|
9317
9317
|
children: d ? d(C, z) : /* @__PURE__ */ pe(se, { sx: (W) => ({ display: "flex", alignItems: "center", gap: W.spacing(1), minWidth: 0 }), children: [
|
|
9318
|
-
l && /* @__PURE__ */ y(
|
|
9318
|
+
l && /* @__PURE__ */ y(rh, {}),
|
|
9319
9319
|
s && /* @__PURE__ */ pe(be, { variant: "body2", sx: (W) => ({ fontWeight: 600, fontSize: 14, color: `${W.palette.text.primary}`, flex: "0 0 auto" }), children: [
|
|
9320
9320
|
v + 1,
|
|
9321
9321
|
"."
|
|
@@ -9335,7 +9335,7 @@ function ny({
|
|
|
9335
9335
|
}
|
|
9336
9336
|
);
|
|
9337
9337
|
}
|
|
9338
|
-
const
|
|
9338
|
+
const nh = pt(al)(() => ({
|
|
9339
9339
|
[`&.${or.vertical}`]: {
|
|
9340
9340
|
marginLeft: 11
|
|
9341
9341
|
// aligns with 24px icon
|
|
@@ -9417,7 +9417,7 @@ const rh = pt(al)(() => ({
|
|
|
9417
9417
|
{
|
|
9418
9418
|
orientation: "vertical",
|
|
9419
9419
|
activeStep: t,
|
|
9420
|
-
connector: /* @__PURE__ */ y(
|
|
9420
|
+
connector: /* @__PURE__ */ y(nh, {}),
|
|
9421
9421
|
sx: {
|
|
9422
9422
|
"& .MuiStepConnector-vertical": {
|
|
9423
9423
|
my: -1.1
|
|
@@ -9456,7 +9456,7 @@ const rh = pt(al)(() => ({
|
|
|
9456
9456
|
))
|
|
9457
9457
|
}
|
|
9458
9458
|
);
|
|
9459
|
-
},
|
|
9459
|
+
}, ih = ({
|
|
9460
9460
|
colorKey: e = "primary",
|
|
9461
9461
|
colorHex: t,
|
|
9462
9462
|
tone: r = "soft",
|
|
@@ -9478,7 +9478,7 @@ const rh = pt(al)(() => ({
|
|
|
9478
9478
|
...a
|
|
9479
9479
|
})
|
|
9480
9480
|
}
|
|
9481
|
-
),
|
|
9481
|
+
), ah = pt(al)(() => ({
|
|
9482
9482
|
[`&.${or.vertical}`]: {
|
|
9483
9483
|
marginLeft: 11
|
|
9484
9484
|
// aligns with 24px icon
|
|
@@ -9561,7 +9561,7 @@ const rh = pt(al)(() => ({
|
|
|
9561
9561
|
{
|
|
9562
9562
|
orientation: "vertical",
|
|
9563
9563
|
activeStep: t,
|
|
9564
|
-
connector: /* @__PURE__ */ y(
|
|
9564
|
+
connector: /* @__PURE__ */ y(ah, {}),
|
|
9565
9565
|
sx: {
|
|
9566
9566
|
"& .MuiStepConnector-vertical": {
|
|
9567
9567
|
my: -3.5
|
|
@@ -9607,7 +9607,7 @@ const rh = pt(al)(() => ({
|
|
|
9607
9607
|
}
|
|
9608
9608
|
),
|
|
9609
9609
|
/* @__PURE__ */ y(
|
|
9610
|
-
|
|
9610
|
+
ih,
|
|
9611
9611
|
{
|
|
9612
9612
|
size: "small",
|
|
9613
9613
|
colorHex: l < t ? H.success.main : l === t ? "#973B00" : H.text.primary,
|
|
@@ -9640,7 +9640,7 @@ const rh = pt(al)(() => ({
|
|
|
9640
9640
|
))
|
|
9641
9641
|
}
|
|
9642
9642
|
);
|
|
9643
|
-
},
|
|
9643
|
+
}, oh = Tt(/* @__PURE__ */ y("path", {
|
|
9644
9644
|
d: "M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"
|
|
9645
9645
|
}), "InfoOutlined"), oy = ({
|
|
9646
9646
|
variant: e = "list",
|
|
@@ -9652,7 +9652,7 @@ const rh = pt(al)(() => ({
|
|
|
9652
9652
|
colorHex: o,
|
|
9653
9653
|
sx: s
|
|
9654
9654
|
}) => {
|
|
9655
|
-
const l = o || H.info.main, d = jt(l, 0.08), u = jt(l, 0.08), p = a ?? /* @__PURE__ */ y(
|
|
9655
|
+
const l = o || H.info.main, d = jt(l, 0.08), u = jt(l, 0.08), p = a ?? /* @__PURE__ */ y(oh, { sx: { color: l, fontSize: 18 } });
|
|
9656
9656
|
return e === "inlineInfo" ? /* @__PURE__ */ pe(
|
|
9657
9657
|
Wt,
|
|
9658
9658
|
{
|
|
@@ -9800,7 +9800,7 @@ const rh = pt(al)(() => ({
|
|
|
9800
9800
|
}
|
|
9801
9801
|
);
|
|
9802
9802
|
};
|
|
9803
|
-
async function
|
|
9803
|
+
async function sh(e, t, r, n) {
|
|
9804
9804
|
try {
|
|
9805
9805
|
const {
|
|
9806
9806
|
endpoint: i,
|
|
@@ -9864,7 +9864,7 @@ async function oh(e, t, r, n) {
|
|
|
9864
9864
|
throw console.error("API fetch error:", i), new Error(`Failed to fetch data: ${i instanceof Error ? i.message : "Unknown error"}`);
|
|
9865
9865
|
}
|
|
9866
9866
|
}
|
|
9867
|
-
function
|
|
9867
|
+
function lh(e, t, r, n, i = !1) {
|
|
9868
9868
|
const a = Ve(() => {
|
|
9869
9869
|
if (!(e != null && e.dependsOn) || !n) return null;
|
|
9870
9870
|
const s = n[e.dependsOn];
|
|
@@ -9885,7 +9885,7 @@ function sh(e, t, r, n, i = !1) {
|
|
|
9885
9885
|
queryFn: () => {
|
|
9886
9886
|
if (!e)
|
|
9887
9887
|
throw new Error("API config is required");
|
|
9888
|
-
return
|
|
9888
|
+
return sh(e, t, r, n);
|
|
9889
9889
|
},
|
|
9890
9890
|
enabled: i && !!e,
|
|
9891
9891
|
// Only fetch when explicitly enabled (user interaction)
|
|
@@ -9927,7 +9927,7 @@ function sy(e, t) {
|
|
|
9927
9927
|
}
|
|
9928
9928
|
return !0;
|
|
9929
9929
|
}
|
|
9930
|
-
const
|
|
9930
|
+
const ch = ({
|
|
9931
9931
|
field: e,
|
|
9932
9932
|
control: t,
|
|
9933
9933
|
errors: r,
|
|
@@ -9980,7 +9980,7 @@ const lh = ({
|
|
|
9980
9980
|
data: V = [],
|
|
9981
9981
|
isLoading: G,
|
|
9982
9982
|
error: re
|
|
9983
|
-
} =
|
|
9983
|
+
} = lh(
|
|
9984
9984
|
_,
|
|
9985
9985
|
n,
|
|
9986
9986
|
i,
|
|
@@ -10029,6 +10029,17 @@ const lh = ({
|
|
|
10029
10029
|
children: e.label
|
|
10030
10030
|
}
|
|
10031
10031
|
);
|
|
10032
|
+
case "finuiHeader":
|
|
10033
|
+
return /* @__PURE__ */ y(
|
|
10034
|
+
th,
|
|
10035
|
+
{
|
|
10036
|
+
title: e.title || e.label,
|
|
10037
|
+
subtitle: e.subtitle,
|
|
10038
|
+
actions: e.actions,
|
|
10039
|
+
align: e.align || "left",
|
|
10040
|
+
sx: e.sx
|
|
10041
|
+
}
|
|
10042
|
+
);
|
|
10032
10043
|
case "text":
|
|
10033
10044
|
case "email":
|
|
10034
10045
|
case "password":
|
|
@@ -10709,7 +10720,7 @@ const lh = ({
|
|
|
10709
10720
|
] });
|
|
10710
10721
|
};
|
|
10711
10722
|
var Ki, ks;
|
|
10712
|
-
function
|
|
10723
|
+
function uh() {
|
|
10713
10724
|
if (ks) return Ki;
|
|
10714
10725
|
ks = 1;
|
|
10715
10726
|
function e(h) {
|
|
@@ -10787,8 +10798,8 @@ function ch() {
|
|
|
10787
10798
|
}
|
|
10788
10799
|
return Ki;
|
|
10789
10800
|
}
|
|
10790
|
-
var Fr =
|
|
10791
|
-
function
|
|
10801
|
+
var Fr = uh(), Qi, Ts;
|
|
10802
|
+
function ph() {
|
|
10792
10803
|
if (Ts) return Qi;
|
|
10793
10804
|
Ts = 1;
|
|
10794
10805
|
const e = /[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g, t = (u) => u.match(e) || [], r = (u) => u[0].toUpperCase() + u.slice(1), n = (u, p) => t(u).join(p).toLowerCase(), i = (u) => t(u).reduce(
|
|
@@ -10806,8 +10817,8 @@ function uh() {
|
|
|
10806
10817
|
titleCase: (u) => t(u).map(r).join(" ")
|
|
10807
10818
|
}, Qi;
|
|
10808
10819
|
}
|
|
10809
|
-
var Yi =
|
|
10810
|
-
function
|
|
10820
|
+
var Yi = ph(), Hn = { exports: {} }, Os;
|
|
10821
|
+
function dh() {
|
|
10811
10822
|
if (Os) return Hn.exports;
|
|
10812
10823
|
Os = 1, Hn.exports = function(i) {
|
|
10813
10824
|
return e(t(i), i);
|
|
@@ -10868,20 +10879,20 @@ function ph() {
|
|
|
10868
10879
|
}
|
|
10869
10880
|
return Hn.exports;
|
|
10870
10881
|
}
|
|
10871
|
-
var
|
|
10872
|
-
const
|
|
10873
|
-
function
|
|
10882
|
+
var fh = dh();
|
|
10883
|
+
const mh = /* @__PURE__ */ La(fh), hh = Object.prototype.toString, gh = Error.prototype.toString, yh = RegExp.prototype.toString, vh = typeof Symbol < "u" ? Symbol.prototype.toString : () => "", bh = /^Symbol\((.*)\)(.*)$/;
|
|
10884
|
+
function xh(e) {
|
|
10874
10885
|
return e != +e ? "NaN" : e === 0 && 1 / e < 0 ? "-0" : "" + e;
|
|
10875
10886
|
}
|
|
10876
10887
|
function Fs(e, t = !1) {
|
|
10877
10888
|
if (e == null || e === !0 || e === !1) return "" + e;
|
|
10878
10889
|
const r = typeof e;
|
|
10879
|
-
if (r === "number") return
|
|
10890
|
+
if (r === "number") return xh(e);
|
|
10880
10891
|
if (r === "string") return t ? `"${e}"` : e;
|
|
10881
10892
|
if (r === "function") return "[Function " + (e.name || "anonymous") + "]";
|
|
10882
|
-
if (r === "symbol") return
|
|
10883
|
-
const n =
|
|
10884
|
-
return n === "Date" ? isNaN(e.getTime()) ? "" + e : e.toISOString(e) : n === "Error" || e instanceof Error ? "[" +
|
|
10893
|
+
if (r === "symbol") return vh.call(e).replace(bh, "Symbol($1)");
|
|
10894
|
+
const n = hh.call(e).slice(8, -1);
|
|
10895
|
+
return n === "Date" ? isNaN(e.getTime()) ? "" + e : e.toISOString(e) : n === "Error" || e instanceof Error ? "[" + gh.call(e) + "]" : n === "RegExp" ? yh.call(e) : null;
|
|
10885
10896
|
}
|
|
10886
10897
|
function cr(e, t) {
|
|
10887
10898
|
let r = Fs(e, t);
|
|
@@ -10893,7 +10904,7 @@ function cr(e, t) {
|
|
|
10893
10904
|
function sc(e) {
|
|
10894
10905
|
return e == null ? [] : [].concat(e);
|
|
10895
10906
|
}
|
|
10896
|
-
let lc, cc, uc,
|
|
10907
|
+
let lc, cc, uc, wh = /\$\{\s*(\w+)\s*\}/g;
|
|
10897
10908
|
lc = Symbol.toStringTag;
|
|
10898
10909
|
class _s {
|
|
10899
10910
|
constructor(t, r, n, i) {
|
|
@@ -10915,7 +10926,7 @@ class at extends Error {
|
|
|
10915
10926
|
return r = Object.assign({}, r, {
|
|
10916
10927
|
path: n,
|
|
10917
10928
|
originalPath: r.path
|
|
10918
|
-
}), typeof t == "string" ? t.replace(
|
|
10929
|
+
}), typeof t == "string" ? t.replace(wh, (i, a) => cr(r[a])) : typeof t == "function" ? t(r) : t;
|
|
10919
10930
|
}
|
|
10920
10931
|
static isError(t) {
|
|
10921
10932
|
return t && t.name === "ValidationError";
|
|
@@ -10976,11 +10987,11 @@ let At = {
|
|
|
10976
10987
|
}, ri = {
|
|
10977
10988
|
noUnknown: "${path} field has unspecified keys: ${unknown}",
|
|
10978
10989
|
exact: "${path} object contains unknown properties: ${properties}"
|
|
10979
|
-
},
|
|
10990
|
+
}, Sh = {
|
|
10980
10991
|
min: "${path} field must have at least ${min} items",
|
|
10981
10992
|
max: "${path} field must have less than or equal to ${max} items",
|
|
10982
10993
|
length: "${path} must have ${length} items"
|
|
10983
|
-
},
|
|
10994
|
+
}, Eh = {
|
|
10984
10995
|
notType: (e) => {
|
|
10985
10996
|
const {
|
|
10986
10997
|
path: t,
|
|
@@ -11000,9 +11011,9 @@ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
|
11000
11011
|
number: Gt,
|
|
11001
11012
|
date: wa,
|
|
11002
11013
|
object: ri,
|
|
11003
|
-
array:
|
|
11014
|
+
array: Sh,
|
|
11004
11015
|
boolean: Sa,
|
|
11005
|
-
tuple:
|
|
11016
|
+
tuple: Eh
|
|
11006
11017
|
});
|
|
11007
11018
|
const ro = (e) => e && e.__isYupSchema__;
|
|
11008
11019
|
class yi {
|
|
@@ -11150,7 +11161,7 @@ function Ur(e) {
|
|
|
11150
11161
|
}
|
|
11151
11162
|
return t.OPTIONS = e, t;
|
|
11152
11163
|
}
|
|
11153
|
-
function
|
|
11164
|
+
function Ch(e, t, r, n = r) {
|
|
11154
11165
|
let i, a, o;
|
|
11155
11166
|
return t ? (Fr.forEach(t, (s, l, d) => {
|
|
11156
11167
|
let u = l ? s.slice(1, s.length - 1) : s;
|
|
@@ -11642,7 +11653,7 @@ for (const e of ["validate", "validateSync"]) ut.prototype[`${e}At`] = function(
|
|
|
11642
11653
|
parent: i,
|
|
11643
11654
|
parentPath: a,
|
|
11644
11655
|
schema: o
|
|
11645
|
-
} =
|
|
11656
|
+
} = Ch(this, t, r, n.context);
|
|
11646
11657
|
return o[e](i && i[a], Object.assign({}, n, {
|
|
11647
11658
|
parent: i,
|
|
11648
11659
|
path: t
|
|
@@ -11650,7 +11661,7 @@ for (const e of ["validate", "validateSync"]) ut.prototype[`${e}At`] = function(
|
|
|
11650
11661
|
};
|
|
11651
11662
|
for (const e of ["equals", "is"]) ut.prototype[e] = ut.prototype.oneOf;
|
|
11652
11663
|
for (const e of ["not", "nope"]) ut.prototype[e] = ut.prototype.notOneOf;
|
|
11653
|
-
const
|
|
11664
|
+
const kh = () => !0;
|
|
11654
11665
|
function pc(e) {
|
|
11655
11666
|
return new dc(e);
|
|
11656
11667
|
}
|
|
@@ -11661,7 +11672,7 @@ class dc extends ut {
|
|
|
11661
11672
|
check: t
|
|
11662
11673
|
} : Object.assign({
|
|
11663
11674
|
type: "mixed",
|
|
11664
|
-
check:
|
|
11675
|
+
check: kh
|
|
11665
11676
|
}, t));
|
|
11666
11677
|
}
|
|
11667
11678
|
}
|
|
@@ -11738,8 +11749,8 @@ class mc extends ut {
|
|
|
11738
11749
|
}
|
|
11739
11750
|
}
|
|
11740
11751
|
fc.prototype = mc.prototype;
|
|
11741
|
-
const
|
|
11742
|
-
function
|
|
11752
|
+
const Th = /^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;
|
|
11753
|
+
function Oh(e) {
|
|
11743
11754
|
const t = Ea(e);
|
|
11744
11755
|
if (!t) return Date.parse ? Date.parse(e) : Number.NaN;
|
|
11745
11756
|
if (t.z === void 0 && t.plusMinus === void 0)
|
|
@@ -11749,7 +11760,7 @@ function Th(e) {
|
|
|
11749
11760
|
}
|
|
11750
11761
|
function Ea(e) {
|
|
11751
11762
|
var t, r;
|
|
11752
|
-
const n =
|
|
11763
|
+
const n = Th.exec(e);
|
|
11753
11764
|
return n ? {
|
|
11754
11765
|
year: Bt(n[1]),
|
|
11755
11766
|
month: Bt(n[2], 1) - 1,
|
|
@@ -11771,13 +11782,13 @@ function Ea(e) {
|
|
|
11771
11782
|
function Bt(e, t = 0) {
|
|
11772
11783
|
return Number(e) || t;
|
|
11773
11784
|
}
|
|
11774
|
-
let
|
|
11785
|
+
let Fh = (
|
|
11775
11786
|
// eslint-disable-next-line
|
|
11776
11787
|
/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/
|
|
11777
|
-
),
|
|
11788
|
+
), _h = (
|
|
11778
11789
|
// eslint-disable-next-line
|
|
11779
11790
|
/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i
|
|
11780
|
-
),
|
|
11791
|
+
), Ah = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i, Rh = "^\\d{4}-\\d{2}-\\d{2}", $h = "\\d{2}:\\d{2}:\\d{2}", Dh = "(([+-]\\d{2}(:?\\d{2})?)|Z)", Ph = new RegExp(`${Rh}T${$h}(\\.\\d+)?${Dh}$`), Ih = (e) => kt(e) || e === e.trim(), Mh = {}.toString();
|
|
11781
11792
|
function xn() {
|
|
11782
11793
|
return new hc();
|
|
11783
11794
|
}
|
|
@@ -11792,7 +11803,7 @@ class hc extends ut {
|
|
|
11792
11803
|
this.transform((t, r, n) => {
|
|
11793
11804
|
if (!n.spec.coerce || n.isType(t) || Array.isArray(t)) return t;
|
|
11794
11805
|
const i = t != null && t.toString ? t.toString() : t;
|
|
11795
|
-
return i ===
|
|
11806
|
+
return i === Mh ? t : i;
|
|
11796
11807
|
});
|
|
11797
11808
|
});
|
|
11798
11809
|
}
|
|
@@ -11866,21 +11877,21 @@ class hc extends ut {
|
|
|
11866
11877
|
});
|
|
11867
11878
|
}
|
|
11868
11879
|
email(t = tt.email) {
|
|
11869
|
-
return this.matches(
|
|
11880
|
+
return this.matches(Fh, {
|
|
11870
11881
|
name: "email",
|
|
11871
11882
|
message: t,
|
|
11872
11883
|
excludeEmptyString: !0
|
|
11873
11884
|
});
|
|
11874
11885
|
}
|
|
11875
11886
|
url(t = tt.url) {
|
|
11876
|
-
return this.matches(
|
|
11887
|
+
return this.matches(_h, {
|
|
11877
11888
|
name: "url",
|
|
11878
11889
|
message: t,
|
|
11879
11890
|
excludeEmptyString: !0
|
|
11880
11891
|
});
|
|
11881
11892
|
}
|
|
11882
11893
|
uuid(t = tt.uuid) {
|
|
11883
|
-
return this.matches(
|
|
11894
|
+
return this.matches(Ah, {
|
|
11884
11895
|
name: "uuid",
|
|
11885
11896
|
message: t,
|
|
11886
11897
|
excludeEmptyString: !1
|
|
@@ -11892,7 +11903,7 @@ class hc extends ut {
|
|
|
11892
11903
|
message: r = "",
|
|
11893
11904
|
allowOffset: n = !1,
|
|
11894
11905
|
precision: i = void 0
|
|
11895
|
-
} = t : r = t), this.matches(
|
|
11906
|
+
} = t : r = t), this.matches(Ph, {
|
|
11896
11907
|
name: "datetime",
|
|
11897
11908
|
message: r || tt.datetime,
|
|
11898
11909
|
excludeEmptyString: !0
|
|
@@ -11930,7 +11941,7 @@ class hc extends ut {
|
|
|
11930
11941
|
return this.transform((r) => r != null ? r.trim() : r).test({
|
|
11931
11942
|
message: t,
|
|
11932
11943
|
name: "trim",
|
|
11933
|
-
test:
|
|
11944
|
+
test: Ih
|
|
11934
11945
|
});
|
|
11935
11946
|
}
|
|
11936
11947
|
lowercase(t = tt.lowercase) {
|
|
@@ -11953,7 +11964,7 @@ class hc extends ut {
|
|
|
11953
11964
|
}
|
|
11954
11965
|
}
|
|
11955
11966
|
xn.prototype = hc.prototype;
|
|
11956
|
-
let
|
|
11967
|
+
let jh = (e) => e != +e;
|
|
11957
11968
|
function gc() {
|
|
11958
11969
|
return new yc();
|
|
11959
11970
|
}
|
|
@@ -11962,7 +11973,7 @@ class yc extends ut {
|
|
|
11962
11973
|
super({
|
|
11963
11974
|
type: "number",
|
|
11964
11975
|
check(t) {
|
|
11965
|
-
return t instanceof Number && (t = t.valueOf()), typeof t == "number" && !
|
|
11976
|
+
return t instanceof Number && (t = t.valueOf()), typeof t == "number" && !jh(t);
|
|
11966
11977
|
}
|
|
11967
11978
|
}), this.withMutation(() => {
|
|
11968
11979
|
this.transform((t, r, n) => {
|
|
@@ -12058,7 +12069,7 @@ class yc extends ut {
|
|
|
12058
12069
|
}
|
|
12059
12070
|
}
|
|
12060
12071
|
gc.prototype = yc.prototype;
|
|
12061
|
-
let vc = /* @__PURE__ */ new Date(""),
|
|
12072
|
+
let vc = /* @__PURE__ */ new Date(""), zh = (e) => Object.prototype.toString.call(e) === "[object Date]";
|
|
12062
12073
|
function no() {
|
|
12063
12074
|
return new zn();
|
|
12064
12075
|
}
|
|
@@ -12067,10 +12078,10 @@ class zn extends ut {
|
|
|
12067
12078
|
super({
|
|
12068
12079
|
type: "date",
|
|
12069
12080
|
check(t) {
|
|
12070
|
-
return
|
|
12081
|
+
return zh(t) && !isNaN(t.getTime());
|
|
12071
12082
|
}
|
|
12072
12083
|
}), this.withMutation(() => {
|
|
12073
|
-
this.transform((t, r, n) => !n.spec.coerce || n.isType(t) || t === null ? t : (t =
|
|
12084
|
+
this.transform((t, r, n) => !n.spec.coerce || n.isType(t) || t === null ? t : (t = Oh(t), isNaN(t) ? zn.INVALID_DATE : new Date(t)));
|
|
12074
12085
|
});
|
|
12075
12086
|
}
|
|
12076
12087
|
prepareParam(t, r) {
|
|
@@ -12118,7 +12129,7 @@ class zn extends ut {
|
|
|
12118
12129
|
zn.INVALID_DATE = vc;
|
|
12119
12130
|
no.prototype = zn.prototype;
|
|
12120
12131
|
no.INVALID_DATE = vc;
|
|
12121
|
-
function
|
|
12132
|
+
function Vh(e, t = []) {
|
|
12122
12133
|
let r = [], n = /* @__PURE__ */ new Set(), i = new Set(t.map(([o, s]) => `${o}-${s}`));
|
|
12123
12134
|
function a(o, s) {
|
|
12124
12135
|
let l = Fr.split(o)[0];
|
|
@@ -12128,7 +12139,7 @@ function zh(e, t = []) {
|
|
|
12128
12139
|
let s = e[o];
|
|
12129
12140
|
n.add(o), Dr.isRef(s) && s.isSibling ? a(s.path, o) : ro(s) && "deps" in s && s.deps.forEach((l) => a(l, o));
|
|
12130
12141
|
}
|
|
12131
|
-
return
|
|
12142
|
+
return mh.array(Array.from(n), r).reverse();
|
|
12132
12143
|
}
|
|
12133
12144
|
function As(e, t) {
|
|
12134
12145
|
let r = 1 / 0;
|
|
@@ -12141,7 +12152,7 @@ function As(e, t) {
|
|
|
12141
12152
|
function bc(e) {
|
|
12142
12153
|
return (t, r) => As(e, t) - As(e, r);
|
|
12143
12154
|
}
|
|
12144
|
-
const
|
|
12155
|
+
const Nh = (e, t, r) => {
|
|
12145
12156
|
if (typeof e != "string")
|
|
12146
12157
|
return e;
|
|
12147
12158
|
let n = e;
|
|
@@ -12166,7 +12177,7 @@ function ni(e) {
|
|
|
12166
12177
|
types: e.spec.types.map(ni)
|
|
12167
12178
|
}) : "optional" in e ? e.optional() : e;
|
|
12168
12179
|
}
|
|
12169
|
-
const
|
|
12180
|
+
const Lh = (e, t) => {
|
|
12170
12181
|
const r = [...Fr.normalizePath(t)];
|
|
12171
12182
|
if (r.length === 1) return r[0] in e;
|
|
12172
12183
|
let n = r.pop(), i = Fr.getter(Fr.join(r), !0)(e);
|
|
@@ -12177,7 +12188,7 @@ function $s(e, t) {
|
|
|
12177
12188
|
let r = Object.keys(e.fields);
|
|
12178
12189
|
return Object.keys(t).filter((n) => r.indexOf(n) === -1);
|
|
12179
12190
|
}
|
|
12180
|
-
const
|
|
12191
|
+
const Bh = bc([]);
|
|
12181
12192
|
function xc(e) {
|
|
12182
12193
|
return new wc(e);
|
|
12183
12194
|
}
|
|
@@ -12188,7 +12199,7 @@ class wc extends ut {
|
|
|
12188
12199
|
check(r) {
|
|
12189
12200
|
return Rs(r) || typeof r == "function";
|
|
12190
12201
|
}
|
|
12191
|
-
}), this.fields = /* @__PURE__ */ Object.create(null), this._sortErrors =
|
|
12202
|
+
}), this.fields = /* @__PURE__ */ Object.create(null), this._sortErrors = Bh, this._nodes = [], this._excludedEdges = [], this.withMutation(() => {
|
|
12192
12203
|
t && this.shape(t);
|
|
12193
12204
|
});
|
|
12194
12205
|
}
|
|
@@ -12293,7 +12304,7 @@ class wc extends ut {
|
|
|
12293
12304
|
}
|
|
12294
12305
|
setFields(t, r) {
|
|
12295
12306
|
let n = this.clone();
|
|
12296
|
-
return n.fields = t, n._nodes =
|
|
12307
|
+
return n.fields = t, n._nodes = Vh(t, r), n._sortErrors = bc(Object.keys(t)), r && (n._excludedEdges = r), n;
|
|
12297
12308
|
}
|
|
12298
12309
|
shape(t, r = []) {
|
|
12299
12310
|
return this.clone().withMutation((n) => {
|
|
@@ -12327,12 +12338,12 @@ class wc extends ut {
|
|
|
12327
12338
|
return this.transform((a) => {
|
|
12328
12339
|
if (!a) return a;
|
|
12329
12340
|
let o = a;
|
|
12330
|
-
return
|
|
12341
|
+
return Lh(a, t) && (o = Object.assign({}, a), n || delete o[t], o[r] = i(a)), o;
|
|
12331
12342
|
});
|
|
12332
12343
|
}
|
|
12333
12344
|
/** Parse an input JSON string to an object */
|
|
12334
12345
|
json() {
|
|
12335
|
-
return this.transform(
|
|
12346
|
+
return this.transform(Nh);
|
|
12336
12347
|
}
|
|
12337
12348
|
/**
|
|
12338
12349
|
* Similar to `noUnknown` but only validates that an object is the right shape without stripping the unknown keys
|
|
@@ -12411,7 +12422,7 @@ class wc extends ut {
|
|
|
12411
12422
|
}
|
|
12412
12423
|
}
|
|
12413
12424
|
xc.prototype = wc.prototype;
|
|
12414
|
-
const
|
|
12425
|
+
const qh = (e) => {
|
|
12415
12426
|
const t = {};
|
|
12416
12427
|
return e.forEach((r) => {
|
|
12417
12428
|
var a, o, s;
|
|
@@ -12480,7 +12491,7 @@ const Bh = (e) => {
|
|
|
12480
12491
|
const a = n.custom(i);
|
|
12481
12492
|
return typeof a == "boolean" ? a : !1;
|
|
12482
12493
|
})), e;
|
|
12483
|
-
},
|
|
12494
|
+
}, Uh = ({
|
|
12484
12495
|
currentStep: e,
|
|
12485
12496
|
totalSteps: t,
|
|
12486
12497
|
onStepChange: r,
|
|
@@ -12608,7 +12619,7 @@ const Bh = (e) => {
|
|
|
12608
12619
|
]
|
|
12609
12620
|
}
|
|
12610
12621
|
);
|
|
12611
|
-
},
|
|
12622
|
+
}, Wh = ({
|
|
12612
12623
|
buttons: e,
|
|
12613
12624
|
disabled: t = !1
|
|
12614
12625
|
}) => {
|
|
@@ -12639,7 +12650,7 @@ const Bh = (e) => {
|
|
|
12639
12650
|
/* @__PURE__ */ y(se, { sx: { display: "flex", gap: 2 }, children: i.map((s, l) => o(s, l)) }),
|
|
12640
12651
|
/* @__PURE__ */ y(se, { sx: { display: "flex", gap: 2 }, children: a.map((s, l) => o(s, l)) })
|
|
12641
12652
|
] });
|
|
12642
|
-
},
|
|
12653
|
+
}, Hh = ({
|
|
12643
12654
|
config: e,
|
|
12644
12655
|
onSubmit: t,
|
|
12645
12656
|
onStepChange: r,
|
|
@@ -12690,7 +12701,7 @@ const Bh = (e) => {
|
|
|
12690
12701
|
}
|
|
12691
12702
|
};
|
|
12692
12703
|
return d === "vertical" ? /* @__PURE__ */ y(se, { sx: x(), children: s.map((h, T) => /* @__PURE__ */ y(se, { sx: { width: "100%" }, children: c(h, T) }, T)) }) : /* @__PURE__ */ y(se, { sx: x(), children: /* @__PURE__ */ y(nu, { variant: "outlined", size: "medium", children: s.map((h, T) => c(h, T)) }) });
|
|
12693
|
-
},
|
|
12704
|
+
}, Kh = new Yu({
|
|
12694
12705
|
defaultOptions: {
|
|
12695
12706
|
queries: {
|
|
12696
12707
|
staleTime: 15 * 60 * 1e3,
|
|
@@ -12704,7 +12715,7 @@ const Bh = (e) => {
|
|
|
12704
12715
|
refetchOnReconnect: !0
|
|
12705
12716
|
}
|
|
12706
12717
|
}
|
|
12707
|
-
}), ly = (e) => /* @__PURE__ */ y(ep, { client:
|
|
12718
|
+
}), ly = (e) => /* @__PURE__ */ y(ep, { client: Kh, children: /* @__PURE__ */ y(Qh, { ...e }) }), Qh = ({
|
|
12708
12719
|
id: e,
|
|
12709
12720
|
theme: t,
|
|
12710
12721
|
fields: r,
|
|
@@ -12722,7 +12733,7 @@ const Bh = (e) => {
|
|
|
12722
12733
|
stepNavigationProps: g
|
|
12723
12734
|
}) => {
|
|
12724
12735
|
var fe, ue;
|
|
12725
|
-
const S = [...new Set(r.map((N) => N.step).filter((N) => N != null && N > 0))].sort((N, P) => (N || 0) - (P || 0)), c = S.length > 1, x = S.length || 1, [h, T] = St(1), A = c ? r.filter((N) => N.step === h) : r, C = Ve(() =>
|
|
12736
|
+
const S = [...new Set(r.map((N) => N.step).filter((N) => N != null && N > 0))].sort((N, P) => (N || 0) - (P || 0)), c = S.length > 1, x = S.length || 1, [h, T] = St(1), A = c ? r.filter((N) => N.step === h) : r, C = Ve(() => qh(A), [A]), {
|
|
12726
12737
|
control: v,
|
|
12727
12738
|
handleSubmit: z,
|
|
12728
12739
|
formState: { errors: _ },
|
|
@@ -12848,7 +12859,7 @@ const Bh = (e) => {
|
|
|
12848
12859
|
})
|
|
12849
12860
|
};
|
|
12850
12861
|
return /* @__PURE__ */ y(se, { sx: { mt: 3 }, children: /* @__PURE__ */ y(
|
|
12851
|
-
|
|
12862
|
+
Hh,
|
|
12852
12863
|
{
|
|
12853
12864
|
config: N,
|
|
12854
12865
|
onSubmit: U,
|
|
@@ -12870,7 +12881,7 @@ const Bh = (e) => {
|
|
|
12870
12881
|
};
|
|
12871
12882
|
});
|
|
12872
12883
|
return /* @__PURE__ */ y(
|
|
12873
|
-
|
|
12884
|
+
Wh,
|
|
12874
12885
|
{
|
|
12875
12886
|
buttons: N
|
|
12876
12887
|
}
|
|
@@ -12948,7 +12959,7 @@ const Bh = (e) => {
|
|
|
12948
12959
|
},
|
|
12949
12960
|
children: [
|
|
12950
12961
|
c && /* @__PURE__ */ y(
|
|
12951
|
-
|
|
12962
|
+
Uh,
|
|
12952
12963
|
{
|
|
12953
12964
|
currentStep: h,
|
|
12954
12965
|
totalSteps: x,
|
|
@@ -12980,7 +12991,7 @@ const Bh = (e) => {
|
|
|
12980
12991
|
gridColumn: `span ${ne}`
|
|
12981
12992
|
},
|
|
12982
12993
|
children: /* @__PURE__ */ y(
|
|
12983
|
-
|
|
12994
|
+
ch,
|
|
12984
12995
|
{
|
|
12985
12996
|
field: M,
|
|
12986
12997
|
control: v,
|
|
@@ -13059,7 +13070,7 @@ function Pr(e, t, r, n) {
|
|
|
13059
13070
|
d((n = n.apply(e, t || [])).next());
|
|
13060
13071
|
});
|
|
13061
13072
|
}
|
|
13062
|
-
const
|
|
13073
|
+
const Yh = /* @__PURE__ */ new Map([
|
|
13063
13074
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
13064
13075
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
13065
13076
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -14263,13 +14274,13 @@ const Qh = /* @__PURE__ */ new Map([
|
|
|
14263
14274
|
["zsh", "text/x-scriptzsh"]
|
|
14264
14275
|
]);
|
|
14265
14276
|
function ln(e, t, r) {
|
|
14266
|
-
const n =
|
|
14277
|
+
const n = Gh(e), { webkitRelativePath: i } = e, a = typeof t == "string" ? t : typeof i == "string" && i.length > 0 ? i : `./${e.name}`;
|
|
14267
14278
|
return typeof n.path != "string" && Ds(n, "path", a), Ds(n, "relativePath", a), n;
|
|
14268
14279
|
}
|
|
14269
|
-
function
|
|
14280
|
+
function Gh(e) {
|
|
14270
14281
|
const { name: t } = e;
|
|
14271
14282
|
if (t && t.lastIndexOf(".") !== -1 && !e.type) {
|
|
14272
|
-
const n = t.split(".").pop().toLowerCase(), i =
|
|
14283
|
+
const n = t.split(".").pop().toLowerCase(), i = Yh.get(n);
|
|
14273
14284
|
i && Object.defineProperty(e, "type", {
|
|
14274
14285
|
value: i,
|
|
14275
14286
|
writable: !1,
|
|
@@ -14287,49 +14298,49 @@ function Ds(e, t, r) {
|
|
|
14287
14298
|
enumerable: !0
|
|
14288
14299
|
});
|
|
14289
14300
|
}
|
|
14290
|
-
const
|
|
14301
|
+
const Zh = [
|
|
14291
14302
|
// Thumbnail cache files for macOS and Windows
|
|
14292
14303
|
".DS_Store",
|
|
14293
14304
|
// macOs
|
|
14294
14305
|
"Thumbs.db"
|
|
14295
14306
|
// Windows
|
|
14296
14307
|
];
|
|
14297
|
-
function
|
|
14308
|
+
function Xh(e) {
|
|
14298
14309
|
return Pr(this, void 0, void 0, function* () {
|
|
14299
|
-
return bi(e) &&
|
|
14310
|
+
return bi(e) && Jh(e.dataTransfer) ? ng(e.dataTransfer, e.type) : eg(e) ? tg(e) : Array.isArray(e) && e.every((t) => "getFile" in t && typeof t.getFile == "function") ? rg(e) : [];
|
|
14300
14311
|
});
|
|
14301
14312
|
}
|
|
14302
|
-
function
|
|
14313
|
+
function Jh(e) {
|
|
14303
14314
|
return bi(e);
|
|
14304
14315
|
}
|
|
14305
|
-
function
|
|
14316
|
+
function eg(e) {
|
|
14306
14317
|
return bi(e) && bi(e.target);
|
|
14307
14318
|
}
|
|
14308
14319
|
function bi(e) {
|
|
14309
14320
|
return typeof e == "object" && e !== null;
|
|
14310
14321
|
}
|
|
14311
|
-
function
|
|
14322
|
+
function tg(e) {
|
|
14312
14323
|
return Ca(e.target.files).map((t) => ln(t));
|
|
14313
14324
|
}
|
|
14314
|
-
function
|
|
14325
|
+
function rg(e) {
|
|
14315
14326
|
return Pr(this, void 0, void 0, function* () {
|
|
14316
14327
|
return (yield Promise.all(e.map((r) => r.getFile()))).map((r) => ln(r));
|
|
14317
14328
|
});
|
|
14318
14329
|
}
|
|
14319
|
-
function
|
|
14330
|
+
function ng(e, t) {
|
|
14320
14331
|
return Pr(this, void 0, void 0, function* () {
|
|
14321
14332
|
if (e.items) {
|
|
14322
14333
|
const r = Ca(e.items).filter((i) => i.kind === "file");
|
|
14323
14334
|
if (t !== "drop")
|
|
14324
14335
|
return r;
|
|
14325
|
-
const n = yield Promise.all(r.map(
|
|
14336
|
+
const n = yield Promise.all(r.map(ig));
|
|
14326
14337
|
return Ps(Sc(n));
|
|
14327
14338
|
}
|
|
14328
14339
|
return Ps(Ca(e.files).map((r) => ln(r)));
|
|
14329
14340
|
});
|
|
14330
14341
|
}
|
|
14331
14342
|
function Ps(e) {
|
|
14332
|
-
return e.filter((t) =>
|
|
14343
|
+
return e.filter((t) => Zh.indexOf(t.name) === -1);
|
|
14333
14344
|
}
|
|
14334
14345
|
function Ca(e) {
|
|
14335
14346
|
if (e === null)
|
|
@@ -14341,7 +14352,7 @@ function Ca(e) {
|
|
|
14341
14352
|
}
|
|
14342
14353
|
return t;
|
|
14343
14354
|
}
|
|
14344
|
-
function
|
|
14355
|
+
function ig(e) {
|
|
14345
14356
|
if (typeof e.webkitGetAsEntry != "function")
|
|
14346
14357
|
return Is(e);
|
|
14347
14358
|
const t = e.webkitGetAsEntry();
|
|
@@ -14371,9 +14382,9 @@ function Is(e, t) {
|
|
|
14371
14382
|
return ln(n, (r = t == null ? void 0 : t.fullPath) !== null && r !== void 0 ? r : void 0);
|
|
14372
14383
|
});
|
|
14373
14384
|
}
|
|
14374
|
-
function
|
|
14385
|
+
function ag(e) {
|
|
14375
14386
|
return Pr(this, void 0, void 0, function* () {
|
|
14376
|
-
return e.isDirectory ? Ec(e) :
|
|
14387
|
+
return e.isDirectory ? Ec(e) : og(e);
|
|
14377
14388
|
});
|
|
14378
14389
|
}
|
|
14379
14390
|
function Ec(e) {
|
|
@@ -14383,7 +14394,7 @@ function Ec(e) {
|
|
|
14383
14394
|
function a() {
|
|
14384
14395
|
t.readEntries((o) => Pr(this, void 0, void 0, function* () {
|
|
14385
14396
|
if (o.length) {
|
|
14386
|
-
const s = Promise.all(o.map(
|
|
14397
|
+
const s = Promise.all(o.map(ag));
|
|
14387
14398
|
i.push(s), a();
|
|
14388
14399
|
} else
|
|
14389
14400
|
try {
|
|
@@ -14399,7 +14410,7 @@ function Ec(e) {
|
|
|
14399
14410
|
a();
|
|
14400
14411
|
});
|
|
14401
14412
|
}
|
|
14402
|
-
function
|
|
14413
|
+
function og(e) {
|
|
14403
14414
|
return Pr(this, void 0, void 0, function* () {
|
|
14404
14415
|
return new Promise((t, r) => {
|
|
14405
14416
|
e.file((n) => {
|
|
@@ -14412,7 +14423,7 @@ function ag(e) {
|
|
|
14412
14423
|
});
|
|
14413
14424
|
}
|
|
14414
14425
|
var Qn = {}, Ms;
|
|
14415
|
-
function
|
|
14426
|
+
function sg() {
|
|
14416
14427
|
return Ms || (Ms = 1, Qn.__esModule = !0, Qn.default = function(e, t) {
|
|
14417
14428
|
if (e && t) {
|
|
14418
14429
|
var r = Array.isArray(t) ? t : t.split(",");
|
|
@@ -14427,19 +14438,19 @@ function og() {
|
|
|
14427
14438
|
return !0;
|
|
14428
14439
|
}), Qn;
|
|
14429
14440
|
}
|
|
14430
|
-
var
|
|
14431
|
-
const Gi = /* @__PURE__ */ La(
|
|
14441
|
+
var lg = sg();
|
|
14442
|
+
const Gi = /* @__PURE__ */ La(lg);
|
|
14432
14443
|
function js(e) {
|
|
14433
|
-
return
|
|
14444
|
+
return pg(e) || ug(e) || kc(e) || cg();
|
|
14434
14445
|
}
|
|
14435
|
-
function
|
|
14446
|
+
function cg() {
|
|
14436
14447
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14437
14448
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
14438
14449
|
}
|
|
14439
|
-
function
|
|
14450
|
+
function ug(e) {
|
|
14440
14451
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
14441
14452
|
}
|
|
14442
|
-
function
|
|
14453
|
+
function pg(e) {
|
|
14443
14454
|
if (Array.isArray(e)) return ka(e);
|
|
14444
14455
|
}
|
|
14445
14456
|
function zs(e, t) {
|
|
@@ -14467,9 +14478,9 @@ function Cc(e, t, r) {
|
|
|
14467
14478
|
return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
14468
14479
|
}
|
|
14469
14480
|
function On(e, t) {
|
|
14470
|
-
return
|
|
14481
|
+
return mg(e) || fg(e, t) || kc(e, t) || dg();
|
|
14471
14482
|
}
|
|
14472
|
-
function
|
|
14483
|
+
function dg() {
|
|
14473
14484
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14474
14485
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
14475
14486
|
}
|
|
@@ -14487,7 +14498,7 @@ function ka(e, t) {
|
|
|
14487
14498
|
n[r] = e[r];
|
|
14488
14499
|
return n;
|
|
14489
14500
|
}
|
|
14490
|
-
function
|
|
14501
|
+
function fg(e, t) {
|
|
14491
14502
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
14492
14503
|
if (r != null) {
|
|
14493
14504
|
var n = [], i = !0, a = !1, o, s;
|
|
@@ -14506,32 +14517,32 @@ function dg(e, t) {
|
|
|
14506
14517
|
return n;
|
|
14507
14518
|
}
|
|
14508
14519
|
}
|
|
14509
|
-
function
|
|
14520
|
+
function mg(e) {
|
|
14510
14521
|
if (Array.isArray(e)) return e;
|
|
14511
14522
|
}
|
|
14512
|
-
var
|
|
14523
|
+
var hg = typeof Gi == "function" ? Gi : Gi.default, gg = "file-invalid-type", yg = "file-too-large", vg = "file-too-small", bg = "too-many-files", xg = function() {
|
|
14513
14524
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", r = t.split(","), n = r.length > 1 ? "one of ".concat(r.join(", ")) : r[0];
|
|
14514
14525
|
return {
|
|
14515
|
-
code:
|
|
14526
|
+
code: gg,
|
|
14516
14527
|
message: "File type must be ".concat(n)
|
|
14517
14528
|
};
|
|
14518
14529
|
}, Ns = function(t) {
|
|
14519
14530
|
return {
|
|
14520
|
-
code:
|
|
14531
|
+
code: yg,
|
|
14521
14532
|
message: "File is larger than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
14522
14533
|
};
|
|
14523
14534
|
}, Ls = function(t) {
|
|
14524
14535
|
return {
|
|
14525
|
-
code:
|
|
14536
|
+
code: vg,
|
|
14526
14537
|
message: "File is smaller than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
14527
14538
|
};
|
|
14528
|
-
},
|
|
14529
|
-
code:
|
|
14539
|
+
}, wg = {
|
|
14540
|
+
code: bg,
|
|
14530
14541
|
message: "Too many files"
|
|
14531
14542
|
};
|
|
14532
14543
|
function Tc(e, t) {
|
|
14533
|
-
var r = e.type === "application/x-moz-file" ||
|
|
14534
|
-
return [r, r ? null :
|
|
14544
|
+
var r = e.type === "application/x-moz-file" || hg(e, t);
|
|
14545
|
+
return [r, r ? null : xg(t)];
|
|
14535
14546
|
}
|
|
14536
14547
|
function Oc(e, t, r) {
|
|
14537
14548
|
if (gr(e.size))
|
|
@@ -14547,7 +14558,7 @@ function Oc(e, t, r) {
|
|
|
14547
14558
|
function gr(e) {
|
|
14548
14559
|
return e != null;
|
|
14549
14560
|
}
|
|
14550
|
-
function
|
|
14561
|
+
function Sg(e) {
|
|
14551
14562
|
var t = e.files, r = e.accept, n = e.minSize, i = e.maxSize, a = e.multiple, o = e.maxFiles, s = e.validator;
|
|
14552
14563
|
return !a && t.length > 1 || a && o >= 1 && t.length > o ? !1 : t.every(function(l) {
|
|
14553
14564
|
var d = Tc(l, r), u = On(d, 1), p = u[0], f = Oc(l, n, i), g = On(f, 1), S = g[0], c = s ? s(l) : null;
|
|
@@ -14565,15 +14576,15 @@ function Yn(e) {
|
|
|
14565
14576
|
function Bs(e) {
|
|
14566
14577
|
e.preventDefault();
|
|
14567
14578
|
}
|
|
14568
|
-
function
|
|
14579
|
+
function Eg(e) {
|
|
14569
14580
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
14570
14581
|
}
|
|
14571
|
-
function
|
|
14582
|
+
function Cg(e) {
|
|
14572
14583
|
return e.indexOf("Edge/") !== -1;
|
|
14573
14584
|
}
|
|
14574
|
-
function
|
|
14585
|
+
function kg() {
|
|
14575
14586
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
14576
|
-
return
|
|
14587
|
+
return Eg(e) || Cg(e);
|
|
14577
14588
|
}
|
|
14578
14589
|
function _t() {
|
|
14579
14590
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
@@ -14586,10 +14597,10 @@ function _t() {
|
|
|
14586
14597
|
});
|
|
14587
14598
|
};
|
|
14588
14599
|
}
|
|
14589
|
-
function
|
|
14600
|
+
function Tg() {
|
|
14590
14601
|
return "showOpenFilePicker" in window;
|
|
14591
14602
|
}
|
|
14592
|
-
function
|
|
14603
|
+
function Og(e) {
|
|
14593
14604
|
if (gr(e)) {
|
|
14594
14605
|
var t = Object.entries(e).filter(function(r) {
|
|
14595
14606
|
var n = On(r, 2), i = n[0], a = n[1], o = !0;
|
|
@@ -14606,7 +14617,7 @@ function Tg(e) {
|
|
|
14606
14617
|
}
|
|
14607
14618
|
return e;
|
|
14608
14619
|
}
|
|
14609
|
-
function
|
|
14620
|
+
function Fg(e) {
|
|
14610
14621
|
if (gr(e))
|
|
14611
14622
|
return Object.entries(e).reduce(function(t, r) {
|
|
14612
14623
|
var n = On(r, 2), i = n[0], a = n[1];
|
|
@@ -14615,10 +14626,10 @@ function Og(e) {
|
|
|
14615
14626
|
return Fc(t) || _c(t);
|
|
14616
14627
|
}).join(",");
|
|
14617
14628
|
}
|
|
14618
|
-
function
|
|
14629
|
+
function _g(e) {
|
|
14619
14630
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
|
14620
14631
|
}
|
|
14621
|
-
function
|
|
14632
|
+
function Ag(e) {
|
|
14622
14633
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
14623
14634
|
}
|
|
14624
14635
|
function Fc(e) {
|
|
@@ -14627,24 +14638,24 @@ function Fc(e) {
|
|
|
14627
14638
|
function _c(e) {
|
|
14628
14639
|
return /^.*\.[\w]+$/.test(e);
|
|
14629
14640
|
}
|
|
14630
|
-
var
|
|
14631
|
-
function
|
|
14632
|
-
return
|
|
14641
|
+
var Rg = ["children"], $g = ["open"], Dg = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Pg = ["refKey", "onChange", "onClick"];
|
|
14642
|
+
function Ig(e) {
|
|
14643
|
+
return zg(e) || jg(e) || Ac(e) || Mg();
|
|
14633
14644
|
}
|
|
14634
|
-
function
|
|
14645
|
+
function Mg() {
|
|
14635
14646
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14636
14647
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
14637
14648
|
}
|
|
14638
|
-
function
|
|
14649
|
+
function jg(e) {
|
|
14639
14650
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
14640
14651
|
}
|
|
14641
|
-
function
|
|
14652
|
+
function zg(e) {
|
|
14642
14653
|
if (Array.isArray(e)) return Ta(e);
|
|
14643
14654
|
}
|
|
14644
14655
|
function Zi(e, t) {
|
|
14645
|
-
return
|
|
14656
|
+
return Lg(e) || Ng(e, t) || Ac(e, t) || Vg();
|
|
14646
14657
|
}
|
|
14647
|
-
function
|
|
14658
|
+
function Vg() {
|
|
14648
14659
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14649
14660
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
14650
14661
|
}
|
|
@@ -14662,7 +14673,7 @@ function Ta(e, t) {
|
|
|
14662
14673
|
n[r] = e[r];
|
|
14663
14674
|
return n;
|
|
14664
14675
|
}
|
|
14665
|
-
function
|
|
14676
|
+
function Ng(e, t) {
|
|
14666
14677
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
14667
14678
|
if (r != null) {
|
|
14668
14679
|
var n = [], i = !0, a = !1, o, s;
|
|
@@ -14681,7 +14692,7 @@ function Vg(e, t) {
|
|
|
14681
14692
|
return n;
|
|
14682
14693
|
}
|
|
14683
14694
|
}
|
|
14684
|
-
function
|
|
14695
|
+
function Lg(e) {
|
|
14685
14696
|
if (Array.isArray(e)) return e;
|
|
14686
14697
|
}
|
|
14687
14698
|
function qs(e, t) {
|
|
@@ -14710,7 +14721,7 @@ function Oa(e, t, r) {
|
|
|
14710
14721
|
}
|
|
14711
14722
|
function wi(e, t) {
|
|
14712
14723
|
if (e == null) return {};
|
|
14713
|
-
var r =
|
|
14724
|
+
var r = Bg(e, t), n, i;
|
|
14714
14725
|
if (Object.getOwnPropertySymbols) {
|
|
14715
14726
|
var a = Object.getOwnPropertySymbols(e);
|
|
14716
14727
|
for (i = 0; i < a.length; i++)
|
|
@@ -14718,7 +14729,7 @@ function wi(e, t) {
|
|
|
14718
14729
|
}
|
|
14719
14730
|
return r;
|
|
14720
14731
|
}
|
|
14721
|
-
function
|
|
14732
|
+
function Bg(e, t) {
|
|
14722
14733
|
if (e == null) return {};
|
|
14723
14734
|
var r = {}, n = Object.keys(e), i, a;
|
|
14724
14735
|
for (a = 0; a < n.length; a++)
|
|
@@ -14726,7 +14737,7 @@ function Lg(e, t) {
|
|
|
14726
14737
|
return r;
|
|
14727
14738
|
}
|
|
14728
14739
|
var io = /* @__PURE__ */ Vc(function(e, t) {
|
|
14729
|
-
var r = e.children, n = wi(e,
|
|
14740
|
+
var r = e.children, n = wi(e, Rg), i = $c(n), a = i.open, o = wi(i, $g);
|
|
14730
14741
|
return Nc(t, function() {
|
|
14731
14742
|
return {
|
|
14732
14743
|
open: a
|
|
@@ -14738,7 +14749,7 @@ var io = /* @__PURE__ */ Vc(function(e, t) {
|
|
|
14738
14749
|
io.displayName = "Dropzone";
|
|
14739
14750
|
var Rc = {
|
|
14740
14751
|
disabled: !1,
|
|
14741
|
-
getFilesFromEvent:
|
|
14752
|
+
getFilesFromEvent: Xh,
|
|
14742
14753
|
maxSize: 1 / 0,
|
|
14743
14754
|
minSize: 0,
|
|
14744
14755
|
multiple: !0,
|
|
@@ -14932,14 +14943,14 @@ var Fa = {
|
|
|
14932
14943
|
};
|
|
14933
14944
|
function $c() {
|
|
14934
14945
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = De(De({}, Rc), e), r = t.accept, n = t.disabled, i = t.getFilesFromEvent, a = t.maxSize, o = t.minSize, s = t.multiple, l = t.maxFiles, d = t.onDragEnter, u = t.onDragLeave, p = t.onDragOver, f = t.onDrop, g = t.onDropAccepted, S = t.onDropRejected, c = t.onFileDialogCancel, x = t.onFileDialogOpen, h = t.useFsAccessApi, T = t.autoFocus, A = t.preventDropOnDocument, C = t.noClick, v = t.noKeyboard, z = t.noDrag, _ = t.noDragEventsBubbling, W = t.onError, q = t.validator, m = Ve(function() {
|
|
14935
|
-
return
|
|
14946
|
+
return Fg(r);
|
|
14936
14947
|
}, [r]), I = Ve(function() {
|
|
14937
|
-
return
|
|
14948
|
+
return Og(r);
|
|
14938
14949
|
}, [r]), D = Ve(function() {
|
|
14939
14950
|
return typeof x == "function" ? x : Us;
|
|
14940
14951
|
}, [x]), L = Ve(function() {
|
|
14941
14952
|
return typeof c == "function" ? c : Us;
|
|
14942
|
-
}, [c]), V = yt(null), G = yt(null), re = zc(
|
|
14953
|
+
}, [c]), V = yt(null), G = yt(null), re = zc(qg, Fa), ge = Zi(re, 2), le = ge[0], ae = ge[1], j = le.isFocused, U = le.isFileDialogActive, ce = yt(typeof window < "u" && window.isSecureContext && h && Tg()), K = function() {
|
|
14943
14954
|
!ce.current && U && setTimeout(function() {
|
|
14944
14955
|
if (G.current) {
|
|
14945
14956
|
var R = G.current.files;
|
|
@@ -14968,9 +14979,9 @@ function $c() {
|
|
|
14968
14979
|
var B = Be(function(F) {
|
|
14969
14980
|
W ? W(F) : console.error(F);
|
|
14970
14981
|
}, [W]), X = Be(function(F) {
|
|
14971
|
-
F.preventDefault(), F.persist(), b(F), J.current = [].concat(
|
|
14982
|
+
F.preventDefault(), F.persist(), b(F), J.current = [].concat(Ig(J.current), [F.target]), Yn(F) && Promise.resolve(i(F)).then(function(R) {
|
|
14972
14983
|
if (!(xi(F) && !_)) {
|
|
14973
|
-
var Z = R.length, me = Z > 0 &&
|
|
14984
|
+
var Z = R.length, me = Z > 0 && Sg({
|
|
14974
14985
|
files: R,
|
|
14975
14986
|
accept: m,
|
|
14976
14987
|
minSize: o,
|
|
@@ -15027,7 +15038,7 @@ function $c() {
|
|
|
15027
15038
|
}), (!s && Z.length > 1 || s && l >= 1 && Z.length > l) && (Z.forEach(function(ye) {
|
|
15028
15039
|
me.push({
|
|
15029
15040
|
file: ye,
|
|
15030
|
-
errors: [
|
|
15041
|
+
errors: [wg]
|
|
15031
15042
|
});
|
|
15032
15043
|
}), Z.splice(0)), ae({
|
|
15033
15044
|
acceptedFiles: Z,
|
|
@@ -15059,9 +15070,9 @@ function $c() {
|
|
|
15059
15070
|
type: "closeDialog"
|
|
15060
15071
|
});
|
|
15061
15072
|
}).catch(function(R) {
|
|
15062
|
-
|
|
15073
|
+
_g(R) ? (L(R), ae({
|
|
15063
15074
|
type: "closeDialog"
|
|
15064
|
-
})) :
|
|
15075
|
+
})) : Ag(R) ? (ce.current = !1, G.current ? (G.current.value = null, G.current.click()) : B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : B(R);
|
|
15065
15076
|
});
|
|
15066
15077
|
return;
|
|
15067
15078
|
}
|
|
@@ -15079,7 +15090,7 @@ function $c() {
|
|
|
15079
15090
|
type: "blur"
|
|
15080
15091
|
});
|
|
15081
15092
|
}, []), $e = Be(function() {
|
|
15082
|
-
C || (
|
|
15093
|
+
C || (kg() ? setTimeout(P, 0) : P());
|
|
15083
15094
|
}, [C, P]), Fe = function(R) {
|
|
15084
15095
|
return n ? null : R;
|
|
15085
15096
|
}, Je = function(R) {
|
|
@@ -15090,7 +15101,7 @@ function $c() {
|
|
|
15090
15101
|
_ && R.stopPropagation();
|
|
15091
15102
|
}, O = Ve(function() {
|
|
15092
15103
|
return function() {
|
|
15093
|
-
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, R = F.refKey, Z = R === void 0 ? "ref" : R, me = F.role, ye = F.onKeyDown, Ue = F.onFocus, bt = F.onBlur, dt = F.onClick, un = F.onDragEnter, mr = F.onDragOver, Kt = F.onDragLeave, pn = F.onDrop, Ir = wi(F,
|
|
15104
|
+
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, R = F.refKey, Z = R === void 0 ? "ref" : R, me = F.role, ye = F.onKeyDown, Ue = F.onFocus, bt = F.onBlur, dt = F.onClick, un = F.onDragEnter, mr = F.onDragOver, Kt = F.onDragLeave, pn = F.onDrop, Ir = wi(F, Dg);
|
|
15094
15105
|
return De(De(Oa({
|
|
15095
15106
|
onKeyDown: Je(_t(ye, M)),
|
|
15096
15107
|
onFocus: Je(_t(Ue, ne)),
|
|
@@ -15109,7 +15120,7 @@ function $c() {
|
|
|
15109
15120
|
F.stopPropagation();
|
|
15110
15121
|
}, []), Q = Ve(function() {
|
|
15111
15122
|
return function() {
|
|
15112
|
-
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, R = F.refKey, Z = R === void 0 ? "ref" : R, me = F.onChange, ye = F.onClick, Ue = wi(F,
|
|
15123
|
+
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, R = F.refKey, Z = R === void 0 ? "ref" : R, me = F.onChange, ye = F.onClick, Ue = wi(F, Pg), bt = Oa({
|
|
15113
15124
|
accept: m,
|
|
15114
15125
|
multiple: s,
|
|
15115
15126
|
type: "file",
|
|
@@ -15141,7 +15152,7 @@ function $c() {
|
|
|
15141
15152
|
open: Fe(P)
|
|
15142
15153
|
});
|
|
15143
15154
|
}
|
|
15144
|
-
function
|
|
15155
|
+
function qg(e, t) {
|
|
15145
15156
|
switch (t.type) {
|
|
15146
15157
|
case "focus":
|
|
15147
15158
|
return De(De({}, e), {}, {
|
|
@@ -15179,22 +15190,22 @@ function Bg(e, t) {
|
|
|
15179
15190
|
}
|
|
15180
15191
|
function Us() {
|
|
15181
15192
|
}
|
|
15182
|
-
const
|
|
15193
|
+
const Ug = Tt(/* @__PURE__ */ y("path", {
|
|
15183
15194
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"
|
|
15184
|
-
}), "CheckCircle"),
|
|
15195
|
+
}), "CheckCircle"), Wg = Tt(/* @__PURE__ */ y("path", {
|
|
15185
15196
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
15186
15197
|
}), "Delete"), Ws = Tt(/* @__PURE__ */ y("path", {
|
|
15187
15198
|
d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"
|
|
15188
|
-
}), "Description"),
|
|
15199
|
+
}), "Description"), Hg = Tt(/* @__PURE__ */ y("path", {
|
|
15189
15200
|
d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"
|
|
15190
|
-
}), "Image"),
|
|
15201
|
+
}), "Image"), Kg = ({
|
|
15191
15202
|
file: e,
|
|
15192
15203
|
onRemove: t
|
|
15193
15204
|
}) => {
|
|
15194
|
-
const r = () => e.file.type.startsWith("image/") ? /* @__PURE__ */ y(
|
|
15205
|
+
const r = () => e.file.type.startsWith("image/") ? /* @__PURE__ */ y(Hg, {}) : e.file.type.includes("pdf") ? /* @__PURE__ */ y(Ws, {}) : /* @__PURE__ */ y(Ws, {}), n = () => {
|
|
15195
15206
|
switch (e.status) {
|
|
15196
15207
|
case "success":
|
|
15197
|
-
return /* @__PURE__ */ y(
|
|
15208
|
+
return /* @__PURE__ */ y(Ug, { color: "success" });
|
|
15198
15209
|
case "uploading":
|
|
15199
15210
|
return /* @__PURE__ */ y(on, { size: 16 });
|
|
15200
15211
|
default:
|
|
@@ -15235,7 +15246,7 @@ const qg = Tt(/* @__PURE__ */ y("path", {
|
|
|
15235
15246
|
size: "small",
|
|
15236
15247
|
onClick: () => t(e.id),
|
|
15237
15248
|
color: "error",
|
|
15238
|
-
children: /* @__PURE__ */ y(
|
|
15249
|
+
children: /* @__PURE__ */ y(Wg, {})
|
|
15239
15250
|
}
|
|
15240
15251
|
) })
|
|
15241
15252
|
]
|
|
@@ -15417,7 +15428,7 @@ const qg = Tt(/* @__PURE__ */ y("path", {
|
|
|
15417
15428
|
p.length,
|
|
15418
15429
|
")"
|
|
15419
15430
|
] }),
|
|
15420
|
-
p.map((V) => /* @__PURE__ */ y(
|
|
15431
|
+
p.map((V) => /* @__PURE__ */ y(Kg, { file: V, onRemove: W }, V.id))
|
|
15421
15432
|
] }),
|
|
15422
15433
|
(e == null ? void 0 : e.helperText) && /* @__PURE__ */ y(
|
|
15423
15434
|
be,
|
|
@@ -15451,13 +15462,13 @@ const qg = Tt(/* @__PURE__ */ y("path", {
|
|
|
15451
15462
|
] });
|
|
15452
15463
|
};
|
|
15453
15464
|
export {
|
|
15454
|
-
|
|
15465
|
+
Wh as CustomButtons,
|
|
15455
15466
|
uy as DocumentUpload,
|
|
15456
|
-
|
|
15457
|
-
|
|
15467
|
+
ch as FieldRenderer,
|
|
15468
|
+
Kg as FilePreview,
|
|
15458
15469
|
Gm as FinAutocomplete,
|
|
15459
15470
|
Zm as FinCheckbox,
|
|
15460
|
-
|
|
15471
|
+
ih as FinChip,
|
|
15461
15472
|
ay as FinCustomizedVerticalStepper,
|
|
15462
15473
|
Jm as FinDateField,
|
|
15463
15474
|
ny as FinDragDropList,
|
|
@@ -15468,19 +15479,19 @@ export {
|
|
|
15468
15479
|
Xm as FinSwitch,
|
|
15469
15480
|
Es as FinTextField,
|
|
15470
15481
|
eh as FinTextarea,
|
|
15471
|
-
|
|
15482
|
+
th as FinUiHeader,
|
|
15472
15483
|
iy as FinVerticalStepper,
|
|
15473
15484
|
cy as ImageComponent,
|
|
15474
|
-
|
|
15475
|
-
|
|
15476
|
-
|
|
15485
|
+
Uh as StepNavigation,
|
|
15486
|
+
ry as brand,
|
|
15487
|
+
sh as fetchApiData,
|
|
15477
15488
|
H as finflowPalette,
|
|
15478
|
-
|
|
15489
|
+
qh as generateSchema,
|
|
15479
15490
|
oc as getApiConfig,
|
|
15480
15491
|
qr as hasApiConfig,
|
|
15481
15492
|
lt as neutral,
|
|
15482
|
-
|
|
15483
|
-
|
|
15493
|
+
ey as primary,
|
|
15494
|
+
ty as secondary,
|
|
15484
15495
|
sy as shouldShowField,
|
|
15485
|
-
|
|
15496
|
+
lh as useApiData
|
|
15486
15497
|
};
|