@scbt-ecom/ui 0.12.2 → 0.12.4
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/{Advantages-1Y5pepJl.js → Advantages-BIWy5o6G.js} +12 -5
- package/dist/Advantages-BIWy5o6G.js.map +1 -0
- package/dist/client.js +188 -185
- package/dist/client.js.map +1 -1
- package/dist/hybrid.js +3 -3
- package/dist/hybrid.js.map +1 -1
- package/dist/shared/ui/formElements/sliderControl/model/helpers/getStepByVariant.d.ts +1 -1
- package/dist/shared/ui/formElements/sliderControl/model/useLogarithmic.d.ts +15 -0
- package/dist/shared/ui/formElements/sliderControl/model/useSlider.d.ts +4 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Advantages-1Y5pepJl.js.map +0 -1
package/dist/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as b, u as Mt, S as Ph, d as nr, e as Ln, f as ms, h as Je, k as ze, l as gs, m as fI, c as O, I as He, n as Jb, o as pI, D as hI, C as mI, p as gI, q as vI, r as bI, i as yI, t as xI, H as vs, a as Vl, b as CI, v as Bl, w as SI, x as yo, y as wI, E as Ub, F as Pc, G as Dc, J as II, K as EI, M as AI, N as TI, O as kI, Q as Kb, P as qb, z as MI, g as OI, _ as vi, L as RI, B as Ku, A as Qb, R as kf, s as PI } from "./Advantages-
|
|
1
|
+
import { j as b, u as Mt, S as Ph, d as nr, e as Ln, f as ms, h as Je, k as ze, l as gs, m as fI, c as O, I as He, n as Jb, o as pI, D as hI, C as mI, p as gI, q as vI, r as bI, i as yI, t as xI, H as vs, a as Vl, b as CI, v as Bl, w as SI, x as yo, y as wI, E as Ub, F as Pc, G as Dc, J as II, K as EI, M as AI, N as TI, O as kI, Q as Kb, P as qb, z as MI, g as OI, _ as vi, L as RI, B as Ku, A as Qb, R as kf, s as PI } from "./Advantages-BIWy5o6G.js";
|
|
2
2
|
import * as w from "react";
|
|
3
3
|
import Y, { useCallback as he, useSyncExternalStore as qu, useState as Oe, useEffect as Re, createContext as tt, useContext as Me, useId as gn, Component as ey, useLayoutEffect as to, useRef as fe, useInsertionEffect as ty, useMemo as Ee, forwardRef as rr, Fragment as Xt, createElement as ny, Children as DI, isValidElement as ry, cloneElement as NI, useReducer as Mf, createRef as FI, useDebugValue as iy, useImperativeHandle as VI } from "react";
|
|
4
4
|
import { queryOptions as BI, keepPreviousData as LI, useQuery as jI } from "@tanstack/react-query";
|
|
@@ -195,7 +195,7 @@ function bs(t) {
|
|
|
195
195
|
const e = w.useContext(JI);
|
|
196
196
|
return t || e || "ltr";
|
|
197
197
|
}
|
|
198
|
-
var ir = "Accordion", UI = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Ff, KI, qI] = Of(ir), [jl,
|
|
198
|
+
var ir = "Accordion", UI = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Ff, KI, qI] = Of(ir), [jl, J5] = nr(ir, [
|
|
199
199
|
qI,
|
|
200
200
|
oy
|
|
201
201
|
]), Vf = oy(), uy = Y.forwardRef(
|
|
@@ -473,7 +473,7 @@ var dE = "VisuallyHidden", Sy = w.forwardRef(
|
|
|
473
473
|
)
|
|
474
474
|
);
|
|
475
475
|
Sy.displayName = dE;
|
|
476
|
-
var fE = Sy, [zl,
|
|
476
|
+
var fE = Sy, [zl, U5] = nr("Tooltip", [
|
|
477
477
|
Jb
|
|
478
478
|
]), _l = Jb(), wy = "TooltipProvider", pE = 700, td = "tooltip.open", [hE, Lf] = zl(wy), Iy = (t) => {
|
|
479
479
|
const {
|
|
@@ -589,7 +589,7 @@ var nd = "TooltipTrigger", Ay = w.forwardRef(
|
|
|
589
589
|
}
|
|
590
590
|
);
|
|
591
591
|
Ay.displayName = nd;
|
|
592
|
-
var gE = "TooltipPortal", [
|
|
592
|
+
var gE = "TooltipPortal", [K5, vE] = zl(gE, {
|
|
593
593
|
forceMount: void 0
|
|
594
594
|
}), Hi = "TooltipContent", Ty = w.forwardRef(
|
|
595
595
|
(t, e) => {
|
|
@@ -800,7 +800,7 @@ const Dh = () => !1, Wl = () => {
|
|
|
800
800
|
isMobile: qu(n, i, Dh),
|
|
801
801
|
isDesktop: qu(r, o, Dh)
|
|
802
802
|
};
|
|
803
|
-
},
|
|
803
|
+
}, q5 = (t = !1) => {
|
|
804
804
|
const [e, n] = w.useState(t);
|
|
805
805
|
return [e, (i) => n((o) => i ?? !o)];
|
|
806
806
|
}, Ry = (t, e) => {
|
|
@@ -1951,7 +1951,7 @@ var qE = function(t, e) {
|
|
|
1951
1951
|
}
|
|
1952
1952
|
};
|
|
1953
1953
|
};
|
|
1954
|
-
const
|
|
1954
|
+
const Q5 = ({ schema: t, ...e }) => JE({
|
|
1955
1955
|
...e,
|
|
1956
1956
|
resolver: QE(t)
|
|
1957
1957
|
}), eA = (t, e) => {
|
|
@@ -15870,28 +15870,32 @@ function AL(t) {
|
|
|
15870
15870
|
const TL = (t, e) => ({
|
|
15871
15871
|
years: AL(e),
|
|
15872
15872
|
credit: "₽"
|
|
15873
|
-
})[t], kL = (t) => {
|
|
15874
|
-
const n = t < 1e5, r = t >= 1e5 && t < 5e5, i = t >= 5e5 && t < 1e6, o = t >= 1e6;
|
|
15875
|
-
switch (!0) {
|
|
15876
|
-
case n:
|
|
15877
|
-
return 1e3;
|
|
15878
|
-
case r:
|
|
15879
|
-
return 1e4;
|
|
15880
|
-
case i:
|
|
15881
|
-
return 1e4;
|
|
15882
|
-
case o:
|
|
15883
|
-
return 1e5;
|
|
15884
|
-
default:
|
|
15885
|
-
return 1e3;
|
|
15886
|
-
}
|
|
15887
|
-
}, ML = (t, e) => ({
|
|
15873
|
+
})[t], kL = (t) => ({
|
|
15888
15874
|
years: 1,
|
|
15889
|
-
credit:
|
|
15890
|
-
})[
|
|
15891
|
-
r > o
|
|
15892
|
-
|
|
15893
|
-
|
|
15894
|
-
|
|
15875
|
+
credit: 0.01
|
|
15876
|
+
})[t], ML = ({ min: t, max: e, defaultSum: n }) => {
|
|
15877
|
+
const r = Math.ceil((e - t) * 0.2 + t), i = r > n ? n : r, o = (l) => a(Math.round(Math.pow(10, l)), 2), s = (l) => Math.log(l) / Math.log(10), a = (l, c = 2) => {
|
|
15878
|
+
const u = l.toFixed(0), d = u.length;
|
|
15879
|
+
let f = u.slice(0, Math.min(d, c));
|
|
15880
|
+
return d > c && (f = f + "000000000000".slice(0, d - c)), parseInt(f, 10);
|
|
15881
|
+
};
|
|
15882
|
+
return {
|
|
15883
|
+
min: t,
|
|
15884
|
+
max: e,
|
|
15885
|
+
initSum: r,
|
|
15886
|
+
startSum: i,
|
|
15887
|
+
fromSlider: o,
|
|
15888
|
+
toSlider: s,
|
|
15889
|
+
round: a
|
|
15890
|
+
};
|
|
15891
|
+
}, OL = (t, e, n) => {
|
|
15892
|
+
const r = ML({ min: t, max: e, defaultSum: n });
|
|
15893
|
+
return { getSuffixText: (c, u) => TL(u, c), handleBlur: (c, u) => {
|
|
15894
|
+
c > e && u(e), c < t && u(t);
|
|
15895
|
+
}, handleChange: (c, u) => {
|
|
15896
|
+
u !== void 0 && c(r.round(u));
|
|
15897
|
+
}, toSliderValue: (c) => r.toSlider(c), fromSliderValue: (c) => r.fromSlider(c) };
|
|
15898
|
+
};
|
|
15895
15899
|
function TC(t, [e, n]) {
|
|
15896
15900
|
return Math.min(n, Math.max(e, t));
|
|
15897
15901
|
}
|
|
@@ -16310,10 +16314,7 @@ const JL = w.forwardRef(
|
|
|
16310
16314
|
/* @__PURE__ */ b.jsx(
|
|
16311
16315
|
XL,
|
|
16312
16316
|
{
|
|
16313
|
-
className: O(
|
|
16314
|
-
"relative h-[2px] w-full grow overflow-hidden rounded-full bg-color-blue-grey-500",
|
|
16315
|
-
n == null ? void 0 : n.sliderTrack
|
|
16316
|
-
),
|
|
16317
|
+
className: O("relative h-[2px] w-full grow overflow-hidden rounded-full bg-color-transparent", n == null ? void 0 : n.sliderTrack),
|
|
16317
16318
|
children: /* @__PURE__ */ b.jsx(YL, { className: O("absolute h-full bg-color-primary-default", n == null ? void 0 : n.sliderRange) })
|
|
16318
16319
|
}
|
|
16319
16320
|
),
|
|
@@ -16322,7 +16323,9 @@ const JL = w.forwardRef(
|
|
|
16322
16323
|
{
|
|
16323
16324
|
"aria-label": "slider-thumb",
|
|
16324
16325
|
className: O(
|
|
16325
|
-
|
|
16326
|
+
"ring-offset-background block h-4 w-4 cursor-pointer rounded-full bg-color-primary-default transition-colors disabled:pointer-events-none disabled:opacity-50",
|
|
16327
|
+
'hover:before:absolute hover:before:left-1/2 hover:before:top-1/2 hover:before:h-8 hover:before:w-8 hover:before:-translate-x-1/2 hover:before:-translate-y-1/2 hover:before:rounded-full hover:before:bg-color-primary-tr-hover hover:before:content-[""]',
|
|
16328
|
+
'focus:outline-none focus:before:absolute focus:before:left-1/2 focus:before:top-1/2 focus:before:h-8 focus:before:w-8 focus:before:-translate-x-1/2 focus:before:-translate-y-1/2 focus:before:rounded-full focus:before:bg-color-primary-tr-pressed focus:before:content-[""]',
|
|
16326
16329
|
n == null ? void 0 : n.sliderThumb
|
|
16327
16330
|
)
|
|
16328
16331
|
}
|
|
@@ -16361,7 +16364,7 @@ const wW = ({
|
|
|
16361
16364
|
), C = w.useId(), S = w.useRef(null), x = () => {
|
|
16362
16365
|
var M;
|
|
16363
16366
|
S.current && ((M = S == null ? void 0 : S.current) == null || M.focus()), m && m();
|
|
16364
|
-
}, { handleBlur: E, handleChange: k, getSuffixText: T } = OL();
|
|
16367
|
+
}, { handleBlur: E, handleChange: k, getSuffixText: T } = OL(a, l, 0);
|
|
16365
16368
|
return /* @__PURE__ */ b.jsx(
|
|
16366
16369
|
Jt,
|
|
16367
16370
|
{
|
|
@@ -16391,7 +16394,7 @@ const wW = ({
|
|
|
16391
16394
|
id: C,
|
|
16392
16395
|
"aria-invalid": V != null && V.message ? "true" : "false",
|
|
16393
16396
|
onBlur: () => {
|
|
16394
|
-
E(L,
|
|
16397
|
+
E(L, M), W();
|
|
16395
16398
|
},
|
|
16396
16399
|
value: L,
|
|
16397
16400
|
disabled: o,
|
|
@@ -16417,7 +16420,7 @@ const wW = ({
|
|
|
16417
16420
|
value: [L],
|
|
16418
16421
|
min: a,
|
|
16419
16422
|
max: l,
|
|
16420
|
-
step:
|
|
16423
|
+
step: kL(c),
|
|
16421
16424
|
variant: c
|
|
16422
16425
|
}
|
|
16423
16426
|
),
|
|
@@ -31756,7 +31759,7 @@ const Ow = Mw(!1, !0), Rw = Mw(!0, !0), MH = Ot.create({
|
|
|
31756
31759
|
children: /* @__PURE__ */ b.jsx(He, { name: "editor/link", className: "size-4" })
|
|
31757
31760
|
}
|
|
31758
31761
|
);
|
|
31759
|
-
},
|
|
31762
|
+
}, e$ = ({ editor: t }) => /* @__PURE__ */ b.jsx(
|
|
31760
31763
|
qb,
|
|
31761
31764
|
{
|
|
31762
31765
|
classes: {
|
|
@@ -31786,14 +31789,14 @@ const Ow = Mw(!1, !0), Rw = Mw(!0, !0), MH = Ot.create({
|
|
|
31786
31789
|
e
|
|
31787
31790
|
)) })
|
|
31788
31791
|
}
|
|
31789
|
-
),
|
|
31792
|
+
), t$ = ({ editor: t }) => /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-12 bg-color-blue-grey-200 px-4 py-3", children: [
|
|
31790
31793
|
/* @__PURE__ */ b.jsx(UH, { editor: t }),
|
|
31791
31794
|
/* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
31792
|
-
/* @__PURE__ */ b.jsx(
|
|
31795
|
+
/* @__PURE__ */ b.jsx(e$, { editor: t }),
|
|
31793
31796
|
/* @__PURE__ */ b.jsx(KH, { editor: t }),
|
|
31794
31797
|
/* @__PURE__ */ b.jsx(QH, { editor: t })
|
|
31795
31798
|
] })
|
|
31796
|
-
] }),
|
|
31799
|
+
] }), n$ = ({ onChange: t, value: e, label: n, error: r, classes: i, editable: o, helperText: s, ...a }) => {
|
|
31797
31800
|
const l = g_({
|
|
31798
31801
|
extensions: JH,
|
|
31799
31802
|
editable: o,
|
|
@@ -31817,7 +31820,7 @@ const Ow = Mw(!1, !0), Rw = Mw(!0, !0), MH = Ot.create({
|
|
|
31817
31820
|
});
|
|
31818
31821
|
return l ? /* @__PURE__ */ b.jsxs("div", { className: O("flex flex-col", i == null ? void 0 : i.root), children: [
|
|
31819
31822
|
/* @__PURE__ */ b.jsxs("div", { className: O("relative flex w-full flex-col rounded-md border border-solid border-warm-grey-200", i == null ? void 0 : i.wrapper), children: [
|
|
31820
|
-
/* @__PURE__ */ b.jsx(
|
|
31823
|
+
/* @__PURE__ */ b.jsx(t$, { editor: l }),
|
|
31821
31824
|
!e && /* @__PURE__ */ b.jsx("p", { className: O("absolute left-4 top-16 text-color-disabled", i == null ? void 0 : i.label), children: n }),
|
|
31822
31825
|
/* @__PURE__ */ b.jsx(o_, { editor: l })
|
|
31823
31826
|
] }),
|
|
@@ -31844,7 +31847,7 @@ const Ow = Mw(!1, !0), Rw = Mw(!0, !0), MH = Ot.create({
|
|
|
31844
31847
|
name: o.name,
|
|
31845
31848
|
control: t,
|
|
31846
31849
|
render: ({ field: { onChange: s, value: a }, fieldState: { error: l } }) => /* @__PURE__ */ b.jsx(
|
|
31847
|
-
|
|
31850
|
+
n$,
|
|
31848
31851
|
{
|
|
31849
31852
|
onChange: s,
|
|
31850
31853
|
value: a ?? "",
|
|
@@ -31870,7 +31873,7 @@ const Ow = Mw(!1, !0), Rw = Mw(!0, !0), MH = Ot.create({
|
|
|
31870
31873
|
FileTooLarge: "file-too-large",
|
|
31871
31874
|
FileTooSmall: "file-too-small",
|
|
31872
31875
|
TooManyFiles: "too-many-files"
|
|
31873
|
-
},
|
|
31876
|
+
}, r$ = rr(function({ dropzoneState: e, classes: n, disabled: r, error: i, name: o }, s) {
|
|
31874
31877
|
const a = e.getRootProps();
|
|
31875
31878
|
return /* @__PURE__ */ b.jsxs(
|
|
31876
31879
|
"div",
|
|
@@ -31915,7 +31918,7 @@ var Sf = { exports: {} }, ia = { exports: {} }, Le = {};
|
|
|
31915
31918
|
* LICENSE file in the root directory of this source tree.
|
|
31916
31919
|
*/
|
|
31917
31920
|
var Tb;
|
|
31918
|
-
function
|
|
31921
|
+
function i$() {
|
|
31919
31922
|
if (Tb) return Le;
|
|
31920
31923
|
Tb = 1;
|
|
31921
31924
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
|
|
@@ -31990,7 +31993,7 @@ var je = {};
|
|
|
31990
31993
|
* LICENSE file in the root directory of this source tree.
|
|
31991
31994
|
*/
|
|
31992
31995
|
var kb;
|
|
31993
|
-
function
|
|
31996
|
+
function o$() {
|
|
31994
31997
|
return kb || (kb = 1, process.env.NODE_ENV !== "production" && function() {
|
|
31995
31998
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
|
|
31996
31999
|
function C(D) {
|
|
@@ -32074,7 +32077,7 @@ function o5() {
|
|
|
32074
32077
|
}
|
|
32075
32078
|
var Mb;
|
|
32076
32079
|
function Dw() {
|
|
32077
|
-
return Mb || (Mb = 1, process.env.NODE_ENV === "production" ? ia.exports =
|
|
32080
|
+
return Mb || (Mb = 1, process.env.NODE_ENV === "production" ? ia.exports = i$() : ia.exports = o$()), ia.exports;
|
|
32078
32081
|
}
|
|
32079
32082
|
/*
|
|
32080
32083
|
object-assign
|
|
@@ -32082,7 +32085,7 @@ object-assign
|
|
|
32082
32085
|
@license MIT
|
|
32083
32086
|
*/
|
|
32084
32087
|
var Hu, Ob;
|
|
32085
|
-
function
|
|
32088
|
+
function s$() {
|
|
32086
32089
|
if (Ob) return Hu;
|
|
32087
32090
|
Ob = 1;
|
|
32088
32091
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
@@ -32139,7 +32142,7 @@ function Nw() {
|
|
|
32139
32142
|
return Pb || (Pb = 1, Wu = Function.call.bind(Object.prototype.hasOwnProperty)), Wu;
|
|
32140
32143
|
}
|
|
32141
32144
|
var Xu, Db;
|
|
32142
|
-
function
|
|
32145
|
+
function a$() {
|
|
32143
32146
|
if (Db) return Xu;
|
|
32144
32147
|
Db = 1;
|
|
32145
32148
|
var t = function() {
|
|
@@ -32188,10 +32191,10 @@ function a5() {
|
|
|
32188
32191
|
}, Xu = i, Xu;
|
|
32189
32192
|
}
|
|
32190
32193
|
var Yu, Nb;
|
|
32191
|
-
function
|
|
32194
|
+
function l$() {
|
|
32192
32195
|
if (Nb) return Yu;
|
|
32193
32196
|
Nb = 1;
|
|
32194
|
-
var t = Dw(), e =
|
|
32197
|
+
var t = Dw(), e = s$(), n = kh(), r = Nw(), i = a$(), o = function() {
|
|
32195
32198
|
};
|
|
32196
32199
|
process.env.NODE_ENV !== "production" && (o = function(a) {
|
|
32197
32200
|
var l = "Warning: " + a;
|
|
@@ -32509,7 +32512,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
|
|
|
32509
32512
|
}, Yu;
|
|
32510
32513
|
}
|
|
32511
32514
|
var Zu, Fb;
|
|
32512
|
-
function
|
|
32515
|
+
function c$() {
|
|
32513
32516
|
if (Fb) return Zu;
|
|
32514
32517
|
Fb = 1;
|
|
32515
32518
|
var t = kh();
|
|
@@ -32557,12 +32560,12 @@ function c5() {
|
|
|
32557
32560
|
}, Zu;
|
|
32558
32561
|
}
|
|
32559
32562
|
if (process.env.NODE_ENV !== "production") {
|
|
32560
|
-
var
|
|
32561
|
-
Sf.exports =
|
|
32563
|
+
var u$ = Dw(), d$ = !0;
|
|
32564
|
+
Sf.exports = l$()(u$.isElement, d$);
|
|
32562
32565
|
} else
|
|
32563
|
-
Sf.exports =
|
|
32564
|
-
var
|
|
32565
|
-
const We = /* @__PURE__ */ OI(
|
|
32566
|
+
Sf.exports = c$()();
|
|
32567
|
+
var f$ = Sf.exports;
|
|
32568
|
+
const We = /* @__PURE__ */ OI(f$), p$ = /* @__PURE__ */ new Map([
|
|
32566
32569
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
32567
32570
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
32568
32571
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -33766,13 +33769,13 @@ const We = /* @__PURE__ */ OI(f5), p5 = /* @__PURE__ */ new Map([
|
|
|
33766
33769
|
["zsh", "text/x-scriptzsh"]
|
|
33767
33770
|
]);
|
|
33768
33771
|
function eo(t, e, n) {
|
|
33769
|
-
const r =
|
|
33772
|
+
const r = h$(t), { webkitRelativePath: i } = t, o = typeof e == "string" ? e : typeof i == "string" && i.length > 0 ? i : `./${t.name}`;
|
|
33770
33773
|
return typeof r.path != "string" && Vb(r, "path", o), Vb(r, "relativePath", o), r;
|
|
33771
33774
|
}
|
|
33772
|
-
function
|
|
33775
|
+
function h$(t) {
|
|
33773
33776
|
const { name: e } = t;
|
|
33774
33777
|
if (e && e.lastIndexOf(".") !== -1 && !t.type) {
|
|
33775
|
-
const r = e.split(".").pop().toLowerCase(), i =
|
|
33778
|
+
const r = e.split(".").pop().toLowerCase(), i = p$.get(r);
|
|
33776
33779
|
i && Object.defineProperty(t, "type", {
|
|
33777
33780
|
value: i,
|
|
33778
33781
|
writable: !1,
|
|
@@ -33790,49 +33793,49 @@ function Vb(t, e, n) {
|
|
|
33790
33793
|
enumerable: !0
|
|
33791
33794
|
});
|
|
33792
33795
|
}
|
|
33793
|
-
const
|
|
33796
|
+
const m$ = [
|
|
33794
33797
|
// Thumbnail cache files for macOS and Windows
|
|
33795
33798
|
".DS_Store",
|
|
33796
33799
|
// macOs
|
|
33797
33800
|
"Thumbs.db"
|
|
33798
33801
|
// Windows
|
|
33799
33802
|
];
|
|
33800
|
-
function
|
|
33803
|
+
function g$(t) {
|
|
33801
33804
|
return vi(this, void 0, void 0, function* () {
|
|
33802
|
-
return Pl(t) &&
|
|
33805
|
+
return Pl(t) && v$(t.dataTransfer) ? C$(t.dataTransfer, t.type) : b$(t) ? y$(t) : Array.isArray(t) && t.every((e) => "getFile" in e && typeof e.getFile == "function") ? x$(t) : [];
|
|
33803
33806
|
});
|
|
33804
33807
|
}
|
|
33805
|
-
function
|
|
33808
|
+
function v$(t) {
|
|
33806
33809
|
return Pl(t);
|
|
33807
33810
|
}
|
|
33808
|
-
function
|
|
33811
|
+
function b$(t) {
|
|
33809
33812
|
return Pl(t) && Pl(t.target);
|
|
33810
33813
|
}
|
|
33811
33814
|
function Pl(t) {
|
|
33812
33815
|
return typeof t == "object" && t !== null;
|
|
33813
33816
|
}
|
|
33814
|
-
function
|
|
33817
|
+
function y$(t) {
|
|
33815
33818
|
return wf(t.target.files).map((e) => eo(e));
|
|
33816
33819
|
}
|
|
33817
|
-
function
|
|
33820
|
+
function x$(t) {
|
|
33818
33821
|
return vi(this, void 0, void 0, function* () {
|
|
33819
33822
|
return (yield Promise.all(t.map((n) => n.getFile()))).map((n) => eo(n));
|
|
33820
33823
|
});
|
|
33821
33824
|
}
|
|
33822
|
-
function
|
|
33825
|
+
function C$(t, e) {
|
|
33823
33826
|
return vi(this, void 0, void 0, function* () {
|
|
33824
33827
|
if (t.items) {
|
|
33825
33828
|
const n = wf(t.items).filter((i) => i.kind === "file");
|
|
33826
33829
|
if (e !== "drop")
|
|
33827
33830
|
return n;
|
|
33828
|
-
const r = yield Promise.all(n.map(
|
|
33831
|
+
const r = yield Promise.all(n.map(S$));
|
|
33829
33832
|
return Bb(Fw(r));
|
|
33830
33833
|
}
|
|
33831
33834
|
return Bb(wf(t.files).map((n) => eo(n)));
|
|
33832
33835
|
});
|
|
33833
33836
|
}
|
|
33834
33837
|
function Bb(t) {
|
|
33835
|
-
return t.filter((e) =>
|
|
33838
|
+
return t.filter((e) => m$.indexOf(e.name) === -1);
|
|
33836
33839
|
}
|
|
33837
33840
|
function wf(t) {
|
|
33838
33841
|
if (t === null)
|
|
@@ -33844,7 +33847,7 @@ function wf(t) {
|
|
|
33844
33847
|
}
|
|
33845
33848
|
return e;
|
|
33846
33849
|
}
|
|
33847
|
-
function
|
|
33850
|
+
function S$(t) {
|
|
33848
33851
|
if (typeof t.webkitGetAsEntry != "function")
|
|
33849
33852
|
return Lb(t);
|
|
33850
33853
|
const e = t.webkitGetAsEntry();
|
|
@@ -33874,9 +33877,9 @@ function Lb(t, e) {
|
|
|
33874
33877
|
return eo(r, (n = e == null ? void 0 : e.fullPath) !== null && n !== void 0 ? n : void 0);
|
|
33875
33878
|
});
|
|
33876
33879
|
}
|
|
33877
|
-
function
|
|
33880
|
+
function w$(t) {
|
|
33878
33881
|
return vi(this, void 0, void 0, function* () {
|
|
33879
|
-
return t.isDirectory ? Vw(t) :
|
|
33882
|
+
return t.isDirectory ? Vw(t) : I$(t);
|
|
33880
33883
|
});
|
|
33881
33884
|
}
|
|
33882
33885
|
function Vw(t) {
|
|
@@ -33886,7 +33889,7 @@ function Vw(t) {
|
|
|
33886
33889
|
function o() {
|
|
33887
33890
|
e.readEntries((s) => vi(this, void 0, void 0, function* () {
|
|
33888
33891
|
if (s.length) {
|
|
33889
|
-
const a = Promise.all(s.map(
|
|
33892
|
+
const a = Promise.all(s.map(w$));
|
|
33890
33893
|
i.push(a), o();
|
|
33891
33894
|
} else
|
|
33892
33895
|
try {
|
|
@@ -33902,7 +33905,7 @@ function Vw(t) {
|
|
|
33902
33905
|
o();
|
|
33903
33906
|
});
|
|
33904
33907
|
}
|
|
33905
|
-
function
|
|
33908
|
+
function I$(t) {
|
|
33906
33909
|
return vi(this, void 0, void 0, function* () {
|
|
33907
33910
|
return new Promise((e, n) => {
|
|
33908
33911
|
t.file((r) => {
|
|
@@ -33928,16 +33931,16 @@ var Ju = function(t, e) {
|
|
|
33928
33931
|
return !0;
|
|
33929
33932
|
};
|
|
33930
33933
|
function jb(t) {
|
|
33931
|
-
return
|
|
33934
|
+
return T$(t) || A$(t) || Lw(t) || E$();
|
|
33932
33935
|
}
|
|
33933
|
-
function
|
|
33936
|
+
function E$() {
|
|
33934
33937
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
33935
33938
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
33936
33939
|
}
|
|
33937
|
-
function
|
|
33940
|
+
function A$(t) {
|
|
33938
33941
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
33939
33942
|
}
|
|
33940
|
-
function
|
|
33943
|
+
function T$(t) {
|
|
33941
33944
|
if (Array.isArray(t)) return If(t);
|
|
33942
33945
|
}
|
|
33943
33946
|
function Gb(t, e) {
|
|
@@ -33965,9 +33968,9 @@ function Bw(t, e, n) {
|
|
|
33965
33968
|
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
33966
33969
|
}
|
|
33967
33970
|
function hs(t, e) {
|
|
33968
|
-
return
|
|
33971
|
+
return O$(t) || M$(t, e) || Lw(t, e) || k$();
|
|
33969
33972
|
}
|
|
33970
|
-
function
|
|
33973
|
+
function k$() {
|
|
33971
33974
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
33972
33975
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
33973
33976
|
}
|
|
@@ -33985,7 +33988,7 @@ function If(t, e) {
|
|
|
33985
33988
|
r[n] = t[n];
|
|
33986
33989
|
return r;
|
|
33987
33990
|
}
|
|
33988
|
-
function
|
|
33991
|
+
function M$(t, e) {
|
|
33989
33992
|
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
33990
33993
|
if (n != null) {
|
|
33991
33994
|
var r = [], i = !0, o = !1, s, a;
|
|
@@ -34004,32 +34007,32 @@ function M5(t, e) {
|
|
|
34004
34007
|
return r;
|
|
34005
34008
|
}
|
|
34006
34009
|
}
|
|
34007
|
-
function
|
|
34010
|
+
function O$(t) {
|
|
34008
34011
|
if (Array.isArray(t)) return t;
|
|
34009
34012
|
}
|
|
34010
|
-
var
|
|
34013
|
+
var R$ = typeof Ju == "function" ? Ju : Ju.default, P$ = "file-invalid-type", D$ = "file-too-large", N$ = "file-too-small", F$ = "too-many-files", V$ = function() {
|
|
34011
34014
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = e.split(","), r = n.length > 1 ? "one of ".concat(n.join(", ")) : n[0];
|
|
34012
34015
|
return {
|
|
34013
|
-
code:
|
|
34016
|
+
code: P$,
|
|
34014
34017
|
message: "File type must be ".concat(r)
|
|
34015
34018
|
};
|
|
34016
34019
|
}, _b = function(e) {
|
|
34017
34020
|
return {
|
|
34018
|
-
code:
|
|
34021
|
+
code: D$,
|
|
34019
34022
|
message: "File is larger than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
|
|
34020
34023
|
};
|
|
34021
34024
|
}, Hb = function(e) {
|
|
34022
34025
|
return {
|
|
34023
|
-
code:
|
|
34026
|
+
code: N$,
|
|
34024
34027
|
message: "File is smaller than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
|
|
34025
34028
|
};
|
|
34026
|
-
},
|
|
34027
|
-
code:
|
|
34029
|
+
}, B$ = {
|
|
34030
|
+
code: F$,
|
|
34028
34031
|
message: "Too many files"
|
|
34029
34032
|
};
|
|
34030
34033
|
function jw(t, e) {
|
|
34031
|
-
var n = t.type === "application/x-moz-file" ||
|
|
34032
|
-
return [n, n ? null :
|
|
34034
|
+
var n = t.type === "application/x-moz-file" || R$(t, e);
|
|
34035
|
+
return [n, n ? null : V$(e)];
|
|
34033
34036
|
}
|
|
34034
34037
|
function Gw(t, e, n) {
|
|
34035
34038
|
if (Xr(t.size))
|
|
@@ -34045,7 +34048,7 @@ function Gw(t, e, n) {
|
|
|
34045
34048
|
function Xr(t) {
|
|
34046
34049
|
return t != null;
|
|
34047
34050
|
}
|
|
34048
|
-
function
|
|
34051
|
+
function L$(t) {
|
|
34049
34052
|
var e = t.files, n = t.accept, r = t.minSize, i = t.maxSize, o = t.multiple, s = t.maxFiles, a = t.validator;
|
|
34050
34053
|
return !o && e.length > 1 || o && s >= 1 && e.length > s ? !1 : e.every(function(l) {
|
|
34051
34054
|
var c = jw(l, n), u = hs(c, 1), d = u[0], f = Gw(l, r, i), p = hs(f, 1), h = p[0], m = a ? a(l) : null;
|
|
@@ -34063,15 +34066,15 @@ function oa(t) {
|
|
|
34063
34066
|
function $b(t) {
|
|
34064
34067
|
t.preventDefault();
|
|
34065
34068
|
}
|
|
34066
|
-
function
|
|
34069
|
+
function j$(t) {
|
|
34067
34070
|
return t.indexOf("MSIE") !== -1 || t.indexOf("Trident/") !== -1;
|
|
34068
34071
|
}
|
|
34069
|
-
function
|
|
34072
|
+
function G$(t) {
|
|
34070
34073
|
return t.indexOf("Edge/") !== -1;
|
|
34071
34074
|
}
|
|
34072
|
-
function
|
|
34075
|
+
function z$() {
|
|
34073
34076
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
34074
|
-
return
|
|
34077
|
+
return j$(t) || G$(t);
|
|
34075
34078
|
}
|
|
34076
34079
|
function Sn() {
|
|
34077
34080
|
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
|
|
@@ -34084,10 +34087,10 @@ function Sn() {
|
|
|
34084
34087
|
});
|
|
34085
34088
|
};
|
|
34086
34089
|
}
|
|
34087
|
-
function
|
|
34090
|
+
function _$() {
|
|
34088
34091
|
return "showOpenFilePicker" in window;
|
|
34089
34092
|
}
|
|
34090
|
-
function
|
|
34093
|
+
function H$(t) {
|
|
34091
34094
|
if (Xr(t)) {
|
|
34092
34095
|
var e = Object.entries(t).filter(function(n) {
|
|
34093
34096
|
var r = hs(n, 2), i = r[0], o = r[1], s = !0;
|
|
@@ -34104,7 +34107,7 @@ function H5(t) {
|
|
|
34104
34107
|
}
|
|
34105
34108
|
return t;
|
|
34106
34109
|
}
|
|
34107
|
-
function
|
|
34110
|
+
function $$(t) {
|
|
34108
34111
|
if (Xr(t))
|
|
34109
34112
|
return Object.entries(t).reduce(function(e, n) {
|
|
34110
34113
|
var r = hs(n, 2), i = r[0], o = r[1];
|
|
@@ -34113,10 +34116,10 @@ function $5(t) {
|
|
|
34113
34116
|
return zw(e) || _w(e);
|
|
34114
34117
|
}).join(",");
|
|
34115
34118
|
}
|
|
34116
|
-
function
|
|
34119
|
+
function W$(t) {
|
|
34117
34120
|
return t instanceof DOMException && (t.name === "AbortError" || t.code === t.ABORT_ERR);
|
|
34118
34121
|
}
|
|
34119
|
-
function
|
|
34122
|
+
function X$(t) {
|
|
34120
34123
|
return t instanceof DOMException && (t.name === "SecurityError" || t.code === t.SECURITY_ERR);
|
|
34121
34124
|
}
|
|
34122
34125
|
function zw(t) {
|
|
@@ -34125,24 +34128,24 @@ function zw(t) {
|
|
|
34125
34128
|
function _w(t) {
|
|
34126
34129
|
return /^.*\.[\w]+$/.test(t);
|
|
34127
34130
|
}
|
|
34128
|
-
var
|
|
34129
|
-
function
|
|
34130
|
-
return
|
|
34131
|
+
var Y$ = ["children"], Z$ = ["open"], J$ = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], U$ = ["refKey", "onChange", "onClick"];
|
|
34132
|
+
function K$(t) {
|
|
34133
|
+
return e5(t) || Q$(t) || Hw(t) || q$();
|
|
34131
34134
|
}
|
|
34132
|
-
function
|
|
34135
|
+
function q$() {
|
|
34133
34136
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
34134
34137
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
34135
34138
|
}
|
|
34136
|
-
function
|
|
34139
|
+
function Q$(t) {
|
|
34137
34140
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
34138
34141
|
}
|
|
34139
|
-
function
|
|
34142
|
+
function e5(t) {
|
|
34140
34143
|
if (Array.isArray(t)) return Ef(t);
|
|
34141
34144
|
}
|
|
34142
34145
|
function Uu(t, e) {
|
|
34143
|
-
return
|
|
34146
|
+
return r5(t) || n5(t, e) || Hw(t, e) || t5();
|
|
34144
34147
|
}
|
|
34145
|
-
function
|
|
34148
|
+
function t5() {
|
|
34146
34149
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
34147
34150
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
34148
34151
|
}
|
|
@@ -34160,7 +34163,7 @@ function Ef(t, e) {
|
|
|
34160
34163
|
r[n] = t[n];
|
|
34161
34164
|
return r;
|
|
34162
34165
|
}
|
|
34163
|
-
function
|
|
34166
|
+
function n5(t, e) {
|
|
34164
34167
|
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
34165
34168
|
if (n != null) {
|
|
34166
34169
|
var r = [], i = !0, o = !1, s, a;
|
|
@@ -34179,7 +34182,7 @@ function n$(t, e) {
|
|
|
34179
34182
|
return r;
|
|
34180
34183
|
}
|
|
34181
34184
|
}
|
|
34182
|
-
function
|
|
34185
|
+
function r5(t) {
|
|
34183
34186
|
if (Array.isArray(t)) return t;
|
|
34184
34187
|
}
|
|
34185
34188
|
function Wb(t, e) {
|
|
@@ -34208,7 +34211,7 @@ function Af(t, e, n) {
|
|
|
34208
34211
|
}
|
|
34209
34212
|
function Nl(t, e) {
|
|
34210
34213
|
if (t == null) return {};
|
|
34211
|
-
var n =
|
|
34214
|
+
var n = i5(t, e), r, i;
|
|
34212
34215
|
if (Object.getOwnPropertySymbols) {
|
|
34213
34216
|
var o = Object.getOwnPropertySymbols(t);
|
|
34214
34217
|
for (i = 0; i < o.length; i++)
|
|
@@ -34216,7 +34219,7 @@ function Nl(t, e) {
|
|
|
34216
34219
|
}
|
|
34217
34220
|
return n;
|
|
34218
34221
|
}
|
|
34219
|
-
function
|
|
34222
|
+
function i5(t, e) {
|
|
34220
34223
|
if (t == null) return {};
|
|
34221
34224
|
var n = {}, r = Object.keys(t), i, o;
|
|
34222
34225
|
for (o = 0; o < r.length; o++)
|
|
@@ -34224,7 +34227,7 @@ function i$(t, e) {
|
|
|
34224
34227
|
return n;
|
|
34225
34228
|
}
|
|
34226
34229
|
var Mh = /* @__PURE__ */ rr(function(t, e) {
|
|
34227
|
-
var n = t.children, r = Nl(t,
|
|
34230
|
+
var n = t.children, r = Nl(t, Y$), i = Ww(r), o = i.open, s = Nl(i, Z$);
|
|
34228
34231
|
return VI(e, function() {
|
|
34229
34232
|
return {
|
|
34230
34233
|
open: o
|
|
@@ -34236,7 +34239,7 @@ var Mh = /* @__PURE__ */ rr(function(t, e) {
|
|
|
34236
34239
|
Mh.displayName = "Dropzone";
|
|
34237
34240
|
var $w = {
|
|
34238
34241
|
disabled: !1,
|
|
34239
|
-
getFilesFromEvent:
|
|
34242
|
+
getFilesFromEvent: g$,
|
|
34240
34243
|
maxSize: 1 / 0,
|
|
34241
34244
|
minSize: 0,
|
|
34242
34245
|
multiple: !0,
|
|
@@ -34430,14 +34433,14 @@ var Tf = {
|
|
|
34430
34433
|
};
|
|
34431
34434
|
function Ww() {
|
|
34432
34435
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = Ue(Ue({}, $w), t), n = e.accept, r = e.disabled, i = e.getFilesFromEvent, o = e.maxSize, s = e.minSize, a = e.multiple, l = e.maxFiles, c = e.onDragEnter, u = e.onDragLeave, d = e.onDragOver, f = e.onDrop, p = e.onDropAccepted, h = e.onDropRejected, m = e.onFileDialogCancel, g = e.onFileDialogOpen, v = e.useFsAccessApi, y = e.autoFocus, C = e.preventDropOnDocument, S = e.noClick, x = e.noKeyboard, E = e.noDrag, k = e.noDragEventsBubbling, T = e.onError, M = e.validator, L = Ee(function() {
|
|
34433
|
-
return
|
|
34436
|
+
return $$(n);
|
|
34434
34437
|
}, [n]), W = Ee(function() {
|
|
34435
|
-
return
|
|
34438
|
+
return H$(n);
|
|
34436
34439
|
}, [n]), V = Ee(function() {
|
|
34437
34440
|
return typeof g == "function" ? g : Xb;
|
|
34438
34441
|
}, [g]), B = Ee(function() {
|
|
34439
34442
|
return typeof m == "function" ? m : Xb;
|
|
34440
|
-
}, [m]), G = fe(null), J = fe(null), F = Mf(
|
|
34443
|
+
}, [m]), G = fe(null), J = fe(null), F = Mf(o5, Tf), j = Uu(F, 2), ee = j[0], ie = j[1], P = ee.isFocused, $ = ee.isFileDialogActive, X = fe(typeof window < "u" && window.isSecureContext && v && _$()), _ = function() {
|
|
34441
34444
|
!X.current && $ && setTimeout(function() {
|
|
34442
34445
|
if (J.current) {
|
|
34443
34446
|
var Z = J.current.files;
|
|
@@ -34466,9 +34469,9 @@ function Ww() {
|
|
|
34466
34469
|
var re = he(function(N) {
|
|
34467
34470
|
T ? T(N) : console.error(N);
|
|
34468
34471
|
}, [T]), se = he(function(N) {
|
|
34469
|
-
N.preventDefault(), N.persist(), R(N), ne.current = [].concat(
|
|
34472
|
+
N.preventDefault(), N.persist(), R(N), ne.current = [].concat(K$(ne.current), [N.target]), oa(N) && Promise.resolve(i(N)).then(function(Z) {
|
|
34470
34473
|
if (!(Dl(N) && !k)) {
|
|
34471
|
-
var pe = Z.length, Se = pe > 0 &&
|
|
34474
|
+
var pe = Z.length, Se = pe > 0 && L$({
|
|
34472
34475
|
files: Z,
|
|
34473
34476
|
accept: L,
|
|
34474
34477
|
minSize: s,
|
|
@@ -34525,7 +34528,7 @@ function Ww() {
|
|
|
34525
34528
|
}), (!a && pe.length > 1 || a && l >= 1 && pe.length > l) && (pe.forEach(function(Ze) {
|
|
34526
34529
|
Se.push({
|
|
34527
34530
|
file: Ze,
|
|
34528
|
-
errors: [
|
|
34531
|
+
errors: [B$]
|
|
34529
34532
|
});
|
|
34530
34533
|
}), pe.splice(0)), ie({
|
|
34531
34534
|
acceptedFiles: pe,
|
|
@@ -34557,9 +34560,9 @@ function Ww() {
|
|
|
34557
34560
|
type: "closeDialog"
|
|
34558
34561
|
});
|
|
34559
34562
|
}).catch(function(Z) {
|
|
34560
|
-
|
|
34563
|
+
W$(Z) ? (B(Z), ie({
|
|
34561
34564
|
type: "closeDialog"
|
|
34562
|
-
})) :
|
|
34565
|
+
})) : X$(Z) ? (X.current = !1, J.current ? (J.current.value = null, J.current.click()) : re(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."))) : re(Z);
|
|
34563
34566
|
});
|
|
34564
34567
|
return;
|
|
34565
34568
|
}
|
|
@@ -34577,7 +34580,7 @@ function Ww() {
|
|
|
34577
34580
|
type: "blur"
|
|
34578
34581
|
});
|
|
34579
34582
|
}, []), De = he(function() {
|
|
34580
|
-
S || (
|
|
34583
|
+
S || (z$() ? setTimeout(D, 0) : D());
|
|
34581
34584
|
}, [S, D]), te = function(Z) {
|
|
34582
34585
|
return r ? null : Z;
|
|
34583
34586
|
}, I = function(Z) {
|
|
@@ -34588,7 +34591,7 @@ function Ww() {
|
|
|
34588
34591
|
k && Z.stopPropagation();
|
|
34589
34592
|
}, Q = Ee(function() {
|
|
34590
34593
|
return function() {
|
|
34591
|
-
var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Z = N.refKey, pe = Z === void 0 ? "ref" : Z, Se = N.role, Ze = N.onKeyDown, xn = N.onFocus, qt = N.onBlur, jn = N.onClick, Lr = N.onDragEnter, Bt = N.onDragOver, Cn = N.onDragLeave, ar = N.onDrop, Mc = Nl(N,
|
|
34594
|
+
var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Z = N.refKey, pe = Z === void 0 ? "ref" : Z, Se = N.role, Ze = N.onKeyDown, xn = N.onFocus, qt = N.onBlur, jn = N.onClick, Lr = N.onDragEnter, Bt = N.onDragOver, Cn = N.onDragLeave, ar = N.onDrop, Mc = Nl(N, J$);
|
|
34592
34595
|
return Ue(Ue(Af({
|
|
34593
34596
|
onKeyDown: I(Sn(Ze, _e)),
|
|
34594
34597
|
onFocus: I(Sn(xn, U)),
|
|
@@ -34607,7 +34610,7 @@ function Ww() {
|
|
|
34607
34610
|
N.stopPropagation();
|
|
34608
34611
|
}, []), z = Ee(function() {
|
|
34609
34612
|
return function() {
|
|
34610
|
-
var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Z = N.refKey, pe = Z === void 0 ? "ref" : Z, Se = N.onChange, Ze = N.onClick, xn = Nl(N,
|
|
34613
|
+
var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, Z = N.refKey, pe = Z === void 0 ? "ref" : Z, Se = N.onChange, Ze = N.onClick, xn = Nl(N, U$), qt = Af({
|
|
34611
34614
|
accept: L,
|
|
34612
34615
|
multiple: a,
|
|
34613
34616
|
type: "file",
|
|
@@ -34639,7 +34642,7 @@ function Ww() {
|
|
|
34639
34642
|
open: te(D)
|
|
34640
34643
|
});
|
|
34641
34644
|
}
|
|
34642
|
-
function
|
|
34645
|
+
function o5(t, e) {
|
|
34643
34646
|
switch (e.type) {
|
|
34644
34647
|
case "focus":
|
|
34645
34648
|
return Ue(Ue({}, t), {}, {
|
|
@@ -34677,7 +34680,7 @@ function o$(t, e) {
|
|
|
34677
34680
|
}
|
|
34678
34681
|
function Xb() {
|
|
34679
34682
|
}
|
|
34680
|
-
const
|
|
34683
|
+
const s5 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
|
|
34681
34684
|
const [r, i] = Oe({}), o = (l) => {
|
|
34682
34685
|
const c = e.filter((u, d) => d !== l);
|
|
34683
34686
|
n(c);
|
|
@@ -34715,7 +34718,7 @@ const s$ = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
|
|
|
34715
34718
|
...t
|
|
34716
34719
|
});
|
|
34717
34720
|
return { filesStatus: r, removeFile: o, dropzoneState: a };
|
|
34718
|
-
},
|
|
34721
|
+
}, a5 = ({ file: t, classes: e }) => {
|
|
34719
34722
|
const n = fe(null), [r, i] = Oe(!1);
|
|
34720
34723
|
return Re(() => {
|
|
34721
34724
|
n.current && i(n.current.clientWidth > 300);
|
|
@@ -34726,20 +34729,20 @@ const s$ = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
|
|
|
34726
34729
|
children: t.name
|
|
34727
34730
|
}
|
|
34728
34731
|
) : /* @__PURE__ */ b.jsx("p", { ref: n, className: O("desk-body-regular-m text-color-dark", e == null ? void 0 : e.fileText), children: t.name }) });
|
|
34729
|
-
},
|
|
34732
|
+
}, l5 = ({ filesStatus: t, removeFile: e, classes: n, file: r, index: i }) => {
|
|
34730
34733
|
const o = r.size / 1024 / 1024;
|
|
34731
34734
|
return /* @__PURE__ */ b.jsxs("li", { className: O("flex h-6 items-center justify-between p-1", n == null ? void 0 : n.fileWrapperContent), children: [
|
|
34732
34735
|
/* @__PURE__ */ b.jsxs("div", { className: O("flex items-center gap-2", n == null ? void 0 : n.fileContent), children: [
|
|
34733
34736
|
t[r.name] === "loading" && /* @__PURE__ */ b.jsx(RI, { size: "sm" }),
|
|
34734
34737
|
t[r.name] === "success" && /* @__PURE__ */ b.jsx(He, { name: "general/check", className: "text-icon-positive-default" }),
|
|
34735
|
-
/* @__PURE__ */ b.jsx(
|
|
34738
|
+
/* @__PURE__ */ b.jsx(a5, { file: r, classes: n })
|
|
34736
34739
|
] }),
|
|
34737
34740
|
/* @__PURE__ */ b.jsxs("div", { className: O("flex items-center gap-2", n == null ? void 0 : n.fileButtonDeleteWrapper), children: [
|
|
34738
34741
|
/* @__PURE__ */ b.jsx("p", { className: "desk-body-regular-m text-color-blue-grey-600", children: `${o.toFixed(1)} MB` }),
|
|
34739
34742
|
/* @__PURE__ */ b.jsx("button", { className: O("cursor-pointer", n == null ? void 0 : n.fileButtonDelete), onClick: () => e(i), children: /* @__PURE__ */ b.jsx(He, { name: "general/close", className: O("text-icon-blue-grey-600", n == null ? void 0 : n.fileDeleteIcon) }) })
|
|
34740
34743
|
] })
|
|
34741
34744
|
] }, r.name);
|
|
34742
|
-
},
|
|
34745
|
+
}, c5 = ({ controlledFiles: t, filesStatus: e, classes: n, removeFile: r }) => t && t.length > 0 ? /* @__PURE__ */ b.jsx("ul", { className: O("flex max-w-[476px] flex-col gap-1 px-1", n == null ? void 0 : n.filesWrapperContent), children: t.map((o, s) => /* @__PURE__ */ b.jsx(l5, { file: o, index: s, filesStatus: e, removeFile: r, classes: n }, s)) }) : null, u5 = w.forwardRef(function({
|
|
34743
34746
|
dropzoneOptions: e = Pw,
|
|
34744
34747
|
controlledFiles: n,
|
|
34745
34748
|
onValueChange: r,
|
|
@@ -34749,14 +34752,14 @@ const s$ = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
|
|
|
34749
34752
|
classes: a,
|
|
34750
34753
|
name: l
|
|
34751
34754
|
}, c) {
|
|
34752
|
-
const { filesStatus: u, removeFile: d, dropzoneState: f } =
|
|
34755
|
+
const { filesStatus: u, removeFile: d, dropzoneState: f } = s5({
|
|
34753
34756
|
dropzoneOptions: e,
|
|
34754
34757
|
controlledFiles: n,
|
|
34755
34758
|
onValueChange: r
|
|
34756
34759
|
});
|
|
34757
34760
|
return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
34758
34761
|
/* @__PURE__ */ b.jsxs("div", { className: O("relative mb-3 w-[476px]", a == null ? void 0 : a.wrapperMainContent), children: [
|
|
34759
|
-
/* @__PURE__ */ b.jsx(
|
|
34762
|
+
/* @__PURE__ */ b.jsx(r$, { ref: c, name: l, classes: a, error: s, disabled: o, dropzoneState: f }),
|
|
34760
34763
|
/* @__PURE__ */ b.jsx(
|
|
34761
34764
|
Ut,
|
|
34762
34765
|
{
|
|
@@ -34767,7 +34770,7 @@ const s$ = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
|
|
|
34767
34770
|
}
|
|
34768
34771
|
)
|
|
34769
34772
|
] }),
|
|
34770
|
-
/* @__PURE__ */ b.jsx(
|
|
34773
|
+
/* @__PURE__ */ b.jsx(c5, { filesStatus: u, removeFile: d, controlledFiles: n })
|
|
34771
34774
|
] });
|
|
34772
34775
|
}), AW = ({
|
|
34773
34776
|
control: t,
|
|
@@ -34782,7 +34785,7 @@ const s$ = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
|
|
|
34782
34785
|
control: t,
|
|
34783
34786
|
name: o.name,
|
|
34784
34787
|
render: ({ field: { onChange: s, ref: a, value: l }, fieldState: { error: c } }) => /* @__PURE__ */ b.jsx(
|
|
34785
|
-
|
|
34788
|
+
u5,
|
|
34786
34789
|
{
|
|
34787
34790
|
error: c,
|
|
34788
34791
|
helperText: n,
|
|
@@ -34799,7 +34802,7 @@ const s$ = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
|
|
|
34799
34802
|
)
|
|
34800
34803
|
}
|
|
34801
34804
|
);
|
|
34802
|
-
var Oh = "Radio", [
|
|
34805
|
+
var Oh = "Radio", [d5, Xw] = nr(Oh), [f5, p5] = d5(Oh), Yw = w.forwardRef(
|
|
34803
34806
|
(t, e) => {
|
|
34804
34807
|
const {
|
|
34805
34808
|
__scopeRadio: n,
|
|
@@ -34812,7 +34815,7 @@ var Oh = "Radio", [d$, Xw] = nr(Oh), [f$, p$] = d$(Oh), Yw = w.forwardRef(
|
|
|
34812
34815
|
form: c,
|
|
34813
34816
|
...u
|
|
34814
34817
|
} = t, [d, f] = w.useState(null), p = Mt(e, (g) => f(g)), h = w.useRef(!1), m = d ? c || !!d.closest("form") : !0;
|
|
34815
|
-
return /* @__PURE__ */ b.jsxs(
|
|
34818
|
+
return /* @__PURE__ */ b.jsxs(f5, { scope: n, checked: i, disabled: s, children: [
|
|
34816
34819
|
/* @__PURE__ */ b.jsx(
|
|
34817
34820
|
Je.button,
|
|
34818
34821
|
{
|
|
@@ -34831,7 +34834,7 @@ var Oh = "Radio", [d$, Xw] = nr(Oh), [f$, p$] = d$(Oh), Yw = w.forwardRef(
|
|
|
34831
34834
|
}
|
|
34832
34835
|
),
|
|
34833
34836
|
m && /* @__PURE__ */ b.jsx(
|
|
34834
|
-
|
|
34837
|
+
h5,
|
|
34835
34838
|
{
|
|
34836
34839
|
control: d,
|
|
34837
34840
|
bubbles: !h.current,
|
|
@@ -34850,7 +34853,7 @@ var Oh = "Radio", [d$, Xw] = nr(Oh), [f$, p$] = d$(Oh), Yw = w.forwardRef(
|
|
|
34850
34853
|
Yw.displayName = Oh;
|
|
34851
34854
|
var Zw = "RadioIndicator", Jw = w.forwardRef(
|
|
34852
34855
|
(t, e) => {
|
|
34853
|
-
const { __scopeRadio: n, forceMount: r, ...i } = t, o =
|
|
34856
|
+
const { __scopeRadio: n, forceMount: r, ...i } = t, o = p5(Zw, n);
|
|
34854
34857
|
return /* @__PURE__ */ b.jsx(gs, { present: r || o.checked, children: /* @__PURE__ */ b.jsx(
|
|
34855
34858
|
Je.span,
|
|
34856
34859
|
{
|
|
@@ -34863,7 +34866,7 @@ var Zw = "RadioIndicator", Jw = w.forwardRef(
|
|
|
34863
34866
|
}
|
|
34864
34867
|
);
|
|
34865
34868
|
Jw.displayName = Zw;
|
|
34866
|
-
var
|
|
34869
|
+
var h5 = (t) => {
|
|
34867
34870
|
const { control: e, checked: n, bubbles: r = !0, ...i } = t, o = w.useRef(null), s = ic(n), a = Bl(e);
|
|
34868
34871
|
return w.useEffect(() => {
|
|
34869
34872
|
const l = o.current, c = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(c, "checked").set;
|
|
@@ -34894,10 +34897,10 @@ var h$ = (t) => {
|
|
|
34894
34897
|
function Uw(t) {
|
|
34895
34898
|
return t ? "checked" : "unchecked";
|
|
34896
34899
|
}
|
|
34897
|
-
var
|
|
34900
|
+
var m5 = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Rh = "RadioGroup", [g5, TW] = nr(Rh, [
|
|
34898
34901
|
Zl,
|
|
34899
34902
|
Xw
|
|
34900
|
-
]), Kw = Zl(), qw = Xw(), [
|
|
34903
|
+
]), Kw = Zl(), qw = Xw(), [v5, b5] = g5(Rh), Qw = w.forwardRef(
|
|
34901
34904
|
(t, e) => {
|
|
34902
34905
|
const {
|
|
34903
34906
|
__scopeRadioGroup: n,
|
|
@@ -34917,7 +34920,7 @@ var m$ = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Rh = "RadioGroup",
|
|
|
34917
34920
|
onChange: d
|
|
34918
34921
|
});
|
|
34919
34922
|
return /* @__PURE__ */ b.jsx(
|
|
34920
|
-
|
|
34923
|
+
v5,
|
|
34921
34924
|
{
|
|
34922
34925
|
scope: n,
|
|
34923
34926
|
name: r,
|
|
@@ -34954,10 +34957,10 @@ var m$ = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Rh = "RadioGroup",
|
|
|
34954
34957
|
Qw.displayName = Rh;
|
|
34955
34958
|
var eI = "RadioGroupItem", tI = w.forwardRef(
|
|
34956
34959
|
(t, e) => {
|
|
34957
|
-
const { __scopeRadioGroup: n, disabled: r, ...i } = t, o =
|
|
34960
|
+
const { __scopeRadioGroup: n, disabled: r, ...i } = t, o = b5(eI, n), s = o.disabled || r, a = Kw(n), l = qw(n), c = w.useRef(null), u = Mt(e, c), d = o.value === i.value, f = w.useRef(!1);
|
|
34958
34961
|
return w.useEffect(() => {
|
|
34959
34962
|
const p = (m) => {
|
|
34960
|
-
|
|
34963
|
+
m5.includes(m.key) && (f.current = !0);
|
|
34961
34964
|
}, h = () => f.current = !1;
|
|
34962
34965
|
return document.addEventListener("keydown", p), document.addEventListener("keyup", h), () => {
|
|
34963
34966
|
document.removeEventListener("keydown", p), document.removeEventListener("keyup", h);
|
|
@@ -34994,15 +34997,15 @@ var eI = "RadioGroupItem", tI = w.forwardRef(
|
|
|
34994
34997
|
}
|
|
34995
34998
|
);
|
|
34996
34999
|
tI.displayName = eI;
|
|
34997
|
-
var
|
|
35000
|
+
var y5 = "RadioGroupIndicator", nI = w.forwardRef(
|
|
34998
35001
|
(t, e) => {
|
|
34999
35002
|
const { __scopeRadioGroup: n, ...r } = t, i = qw(n);
|
|
35000
35003
|
return /* @__PURE__ */ b.jsx(Jw, { ...i, ...r, ref: e });
|
|
35001
35004
|
}
|
|
35002
35005
|
);
|
|
35003
|
-
nI.displayName =
|
|
35004
|
-
var
|
|
35005
|
-
const
|
|
35006
|
+
nI.displayName = y5;
|
|
35007
|
+
var x5 = Qw, C5 = tI, S5 = nI;
|
|
35008
|
+
const w5 = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.jsx(b.Fragment, { children: t == null ? void 0 : t.map(({ label: r, value: i, isDisabled: o }) => /* @__PURE__ */ b.jsxs("div", { className: O("flex items-center gap-2", e == null ? void 0 : e.radioOption), children: [
|
|
35006
35009
|
/* @__PURE__ */ b.jsx(
|
|
35007
35010
|
"div",
|
|
35008
35011
|
{
|
|
@@ -35012,7 +35015,7 @@ const w$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
|
|
|
35012
35015
|
{ "!bg-color-transparent": o }
|
|
35013
35016
|
),
|
|
35014
35017
|
children: /* @__PURE__ */ b.jsx(
|
|
35015
|
-
|
|
35018
|
+
C5,
|
|
35016
35019
|
{
|
|
35017
35020
|
disabled: o,
|
|
35018
35021
|
className: O(
|
|
@@ -35026,7 +35029,7 @@ const w$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
|
|
|
35026
35029
|
value: i,
|
|
35027
35030
|
id: i,
|
|
35028
35031
|
children: /* @__PURE__ */ b.jsx(
|
|
35029
|
-
|
|
35032
|
+
S5,
|
|
35030
35033
|
{
|
|
35031
35034
|
className: O(
|
|
35032
35035
|
'after:content-[" "] relative flex h-full w-full items-center justify-center after:block after:size-3 after:rounded-full after:bg-color-primary-default',
|
|
@@ -35051,7 +35054,7 @@ const w$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
|
|
|
35051
35054
|
children: r
|
|
35052
35055
|
}
|
|
35053
35056
|
)
|
|
35054
|
-
] }, i)) }),
|
|
35057
|
+
] }, i)) }), I5 = Vl("flex gap-2", {
|
|
35055
35058
|
variants: {
|
|
35056
35059
|
orientation: {
|
|
35057
35060
|
horizontal: "flex-row",
|
|
@@ -35079,15 +35082,15 @@ const w$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
|
|
|
35079
35082
|
n && /* @__PURE__ */ b.jsx("span", { className: O("desk-body-regular-l text-color-dark", o == null ? void 0 : o.groupName), children: n }),
|
|
35080
35083
|
/* @__PURE__ */ b.jsxs("div", { className: O("flex flex-col", o == null ? void 0 : o.field), children: [
|
|
35081
35084
|
/* @__PURE__ */ b.jsx(
|
|
35082
|
-
|
|
35085
|
+
x5,
|
|
35083
35086
|
{
|
|
35084
35087
|
onValueChange: l,
|
|
35085
35088
|
value: c,
|
|
35086
35089
|
defaultValue: c,
|
|
35087
|
-
className: O(
|
|
35090
|
+
className: O(I5({ orientation: s }), o == null ? void 0 : o.radioGroup),
|
|
35088
35091
|
...u,
|
|
35089
35092
|
...a,
|
|
35090
|
-
children: /* @__PURE__ */ b.jsx(
|
|
35093
|
+
children: /* @__PURE__ */ b.jsx(w5, { radioItemsGroup: t, error: !!(d != null && d.message), classes: o })
|
|
35091
35094
|
}
|
|
35092
35095
|
),
|
|
35093
35096
|
/* @__PURE__ */ b.jsx(
|
|
@@ -35102,7 +35105,7 @@ const w$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
|
|
|
35102
35105
|
] })
|
|
35103
35106
|
] })
|
|
35104
35107
|
}
|
|
35105
|
-
),
|
|
35108
|
+
), E5 = (t) => {
|
|
35106
35109
|
switch (t) {
|
|
35107
35110
|
case "euro":
|
|
35108
35111
|
return "€ ";
|
|
@@ -35143,7 +35146,7 @@ const w$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
|
|
|
35143
35146
|
engName: "AED",
|
|
35144
35147
|
currency: "dirhams"
|
|
35145
35148
|
}
|
|
35146
|
-
],
|
|
35149
|
+
], A5 = (t) => {
|
|
35147
35150
|
const [e, n] = Y.useState(!1), [r, i] = Y.useState(
|
|
35148
35151
|
() => (To == null ? void 0 : To.find((l) => (l == null ? void 0 : l.currency) === t)) || To[0]
|
|
35149
35152
|
);
|
|
@@ -35156,7 +35159,7 @@ const w$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
|
|
|
35156
35159
|
onToggleMenu: () => n((l) => !l),
|
|
35157
35160
|
onCloseMenu: () => n(!1)
|
|
35158
35161
|
};
|
|
35159
|
-
},
|
|
35162
|
+
}, T5 = ({ onToggleMenu: t, currentCurrencyOption: e }) => /* @__PURE__ */ b.jsxs(
|
|
35160
35163
|
"button",
|
|
35161
35164
|
{
|
|
35162
35165
|
type: "button",
|
|
@@ -35167,7 +35170,7 @@ const w$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
|
|
|
35167
35170
|
/* @__PURE__ */ b.jsx(He, { name: "arrows/arrowRight", className: "rotate-90 text-icon-blue-grey-700" })
|
|
35168
35171
|
]
|
|
35169
35172
|
}
|
|
35170
|
-
),
|
|
35173
|
+
), k5 = ({ optionsList: t, menuIsOpen: e, onSelectOption: n }) => /* @__PURE__ */ b.jsx(
|
|
35171
35174
|
"div",
|
|
35172
35175
|
{
|
|
35173
35176
|
className: O(
|
|
@@ -35202,7 +35205,7 @@ const w$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
|
|
|
35202
35205
|
defaultCurrency: s = "rubles",
|
|
35203
35206
|
...a
|
|
35204
35207
|
}) => {
|
|
35205
|
-
const l = w.useId(), c = w.useRef(null), { menuIsOpen: u, currentCurrencyOption: d, onSelectOption: f, onToggleMenu: p, onCloseMenu: h } =
|
|
35208
|
+
const l = w.useId(), c = w.useRef(null), { menuIsOpen: u, currentCurrencyOption: d, onSelectOption: f, onToggleMenu: p, onCloseMenu: h } = A5(s);
|
|
35206
35209
|
return Ry(c, h), /* @__PURE__ */ b.jsx(
|
|
35207
35210
|
Jt,
|
|
35208
35211
|
{
|
|
@@ -35226,7 +35229,7 @@ const w$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
|
|
|
35226
35229
|
"aria-invalid": y != null && y.message ? "true" : "false",
|
|
35227
35230
|
thousandsGroupStyle: "wan",
|
|
35228
35231
|
thousandSeparator: " ",
|
|
35229
|
-
prefix:
|
|
35232
|
+
prefix: E5(d.currency),
|
|
35230
35233
|
getInputRef: m,
|
|
35231
35234
|
allowNegative: !1,
|
|
35232
35235
|
disabled: o,
|
|
@@ -35239,8 +35242,8 @@ const w$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
|
|
|
35239
35242
|
...a
|
|
35240
35243
|
}
|
|
35241
35244
|
),
|
|
35242
|
-
/* @__PURE__ */ b.jsx(
|
|
35243
|
-
/* @__PURE__ */ b.jsx(
|
|
35245
|
+
/* @__PURE__ */ b.jsx(T5, { onToggleMenu: p, currentCurrencyOption: d }),
|
|
35246
|
+
/* @__PURE__ */ b.jsx(k5, { menuIsOpen: u, optionsList: To, onSelectOption: f })
|
|
35244
35247
|
] })
|
|
35245
35248
|
}
|
|
35246
35249
|
),
|
|
@@ -35257,33 +35260,33 @@ const w$ = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ b.j
|
|
|
35257
35260
|
}
|
|
35258
35261
|
);
|
|
35259
35262
|
};
|
|
35260
|
-
var
|
|
35263
|
+
var M5 = Object.defineProperty, O5 = Object.defineProperties, R5 = Object.getOwnPropertyDescriptors, Fl = Object.getOwnPropertySymbols, rI = Object.prototype.hasOwnProperty, iI = Object.prototype.propertyIsEnumerable, Yb = (t, e, n) => e in t ? M5(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, P5 = (t, e) => {
|
|
35261
35264
|
for (var n in e || (e = {})) rI.call(e, n) && Yb(t, n, e[n]);
|
|
35262
35265
|
if (Fl) for (var n of Fl(e)) iI.call(e, n) && Yb(t, n, e[n]);
|
|
35263
35266
|
return t;
|
|
35264
|
-
},
|
|
35267
|
+
}, D5 = (t, e) => O5(t, R5(e)), N5 = (t, e) => {
|
|
35265
35268
|
var n = {};
|
|
35266
35269
|
for (var r in t) rI.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
35267
35270
|
if (t != null && Fl) for (var r of Fl(t)) e.indexOf(r) < 0 && iI.call(t, r) && (n[r] = t[r]);
|
|
35268
35271
|
return n;
|
|
35269
35272
|
};
|
|
35270
|
-
function
|
|
35273
|
+
function F5(t) {
|
|
35271
35274
|
let e = setTimeout(t, 0), n = setTimeout(t, 10), r = setTimeout(t, 50);
|
|
35272
35275
|
return [e, n, r];
|
|
35273
35276
|
}
|
|
35274
|
-
function
|
|
35277
|
+
function V5(t) {
|
|
35275
35278
|
let e = w.useRef();
|
|
35276
35279
|
return w.useEffect(() => {
|
|
35277
35280
|
e.current = t;
|
|
35278
35281
|
}), e.current;
|
|
35279
35282
|
}
|
|
35280
|
-
var
|
|
35281
|
-
function
|
|
35283
|
+
var B5 = 18, oI = 40, L5 = `${oI}px`, j5 = ["[data-lastpass-icon-root]", "com-1password-button", "[data-dashlanecreated]", '[style$="2147483647 !important;"]'].join(",");
|
|
35284
|
+
function G5({ containerRef: t, inputRef: e, pushPasswordManagerStrategy: n, isFocused: r }) {
|
|
35282
35285
|
let [i, o] = w.useState(!1), [s, a] = w.useState(!1), [l, c] = w.useState(!1), u = w.useMemo(() => n === "none" ? !1 : (n === "increase-width" || n === "experimental-no-flickering") && i && s, [i, s, n]), d = w.useCallback(() => {
|
|
35283
35286
|
let f = t.current, p = e.current;
|
|
35284
35287
|
if (!f || !p || l || n === "none") return;
|
|
35285
|
-
let h = f, m = h.getBoundingClientRect().left + h.offsetWidth, g = h.getBoundingClientRect().top + h.offsetHeight / 2, v = m -
|
|
35286
|
-
document.querySelectorAll(
|
|
35288
|
+
let h = f, m = h.getBoundingClientRect().left + h.offsetWidth, g = h.getBoundingClientRect().top + h.offsetHeight / 2, v = m - B5, y = g;
|
|
35289
|
+
document.querySelectorAll(j5).length === 0 && document.elementFromPoint(v, y) === f || (o(!0), c(!0));
|
|
35287
35290
|
}, [t, e, l, n]);
|
|
35288
35291
|
return w.useEffect(() => {
|
|
35289
35292
|
let f = t.current;
|
|
@@ -35306,11 +35309,11 @@ function G$({ containerRef: t, inputRef: e, pushPasswordManagerStrategy: n, isFo
|
|
|
35306
35309
|
return () => {
|
|
35307
35310
|
clearTimeout(p), clearTimeout(h), clearTimeout(m), clearTimeout(g);
|
|
35308
35311
|
};
|
|
35309
|
-
}, [e, r, n, d]), { hasPWMBadge: i, willPushPWMBadge: u, PWM_BADGE_SPACE_WIDTH:
|
|
35312
|
+
}, [e, r, n, d]), { hasPWMBadge: i, willPushPWMBadge: u, PWM_BADGE_SPACE_WIDTH: L5 };
|
|
35310
35313
|
}
|
|
35311
35314
|
var sI = w.createContext({}), aI = w.forwardRef((t, e) => {
|
|
35312
|
-
var n = t, { value: r, onChange: i, maxLength: o, textAlign: s = "left", pattern: a, placeholder: l, inputMode: c = "numeric", onComplete: u, pushPasswordManagerStrategy: d = "increase-width", pasteTransformer: f, containerClassName: p, noScriptCSSFallback: h =
|
|
35313
|
-
let [k, T] = w.useState(typeof v.defaultValue == "string" ? v.defaultValue : ""), M = r ?? k, L =
|
|
35315
|
+
var n = t, { value: r, onChange: i, maxLength: o, textAlign: s = "left", pattern: a, placeholder: l, inputMode: c = "numeric", onComplete: u, pushPasswordManagerStrategy: d = "increase-width", pasteTransformer: f, containerClassName: p, noScriptCSSFallback: h = z5, render: m, children: g } = n, v = N5(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), y, C, S, x, E;
|
|
35316
|
+
let [k, T] = w.useState(typeof v.defaultValue == "string" ? v.defaultValue : ""), M = r ?? k, L = V5(M), W = w.useCallback((U) => {
|
|
35314
35317
|
i == null || i(U), T(U);
|
|
35315
35318
|
}, [i]), V = w.useMemo(() => a ? typeof a == "string" ? new RegExp(a) : a : null, [a]), B = w.useRef(null), G = w.useRef(null), J = w.useRef({ value: M, onChange: W, isIOS: typeof window < "u" && ((C = (y = window == null ? void 0 : window.CSS) == null ? void 0 : y.supports) == null ? void 0 : C.call(y, "-webkit-touch-callout", "none")) }), F = w.useRef({ prev: [(S = B.current) == null ? void 0 : S.selectionStart, (x = B.current) == null ? void 0 : x.selectionEnd, (E = B.current) == null ? void 0 : E.selectionDirection] });
|
|
35316
35319
|
w.useImperativeHandle(e, () => B.current, []), w.useEffect(() => {
|
|
@@ -35362,7 +35365,7 @@ var sI = w.createContext({}), aI = w.forwardRef((t, e) => {
|
|
|
35362
35365
|
}, []);
|
|
35363
35366
|
let [j, ee] = w.useState(!1), [ie, P] = w.useState(!1), [$, X] = w.useState(null), [_, ne] = w.useState(null);
|
|
35364
35367
|
w.useEffect(() => {
|
|
35365
|
-
|
|
35368
|
+
F5(() => {
|
|
35366
35369
|
var U, le, De, te;
|
|
35367
35370
|
(U = B.current) == null || U.dispatchEvent(new Event("input"));
|
|
35368
35371
|
let I = (le = B.current) == null ? void 0 : le.selectionStart, A = (De = B.current) == null ? void 0 : De.selectionEnd, R = (te = B.current) == null ? void 0 : te.selectionDirection;
|
|
@@ -35371,7 +35374,7 @@ var sI = w.createContext({}), aI = w.forwardRef((t, e) => {
|
|
|
35371
35374
|
}, [M, ie]), w.useEffect(() => {
|
|
35372
35375
|
L !== void 0 && M !== L && L.length < o && M.length === o && (u == null || u(M));
|
|
35373
35376
|
}, [o, u, L, M]);
|
|
35374
|
-
let ae =
|
|
35377
|
+
let ae = G5({ containerRef: G, inputRef: B, pushPasswordManagerStrategy: d, isFocused: ie }), re = w.useCallback((U) => {
|
|
35375
35378
|
let le = U.currentTarget.value.slice(0, o);
|
|
35376
35379
|
if (le.length > 0 && V && !V.test(le)) {
|
|
35377
35380
|
U.preventDefault();
|
|
@@ -35396,7 +35399,7 @@ var sI = w.createContext({}), aI = w.forwardRef((t, e) => {
|
|
|
35396
35399
|
te.value = H, W(H);
|
|
35397
35400
|
let z = Math.min(H.length, o - 1), N = H.length;
|
|
35398
35401
|
te.setSelectionRange(z, N), X(z), ne(N);
|
|
35399
|
-
}, [o, W, V, M]), me = w.useMemo(() => ({ position: "relative", cursor: v.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [v.disabled]), ye = w.useMemo(() => ({ position: "absolute", inset: 0, width: ae.willPushPWMBadge ? `calc(100% + ${ae.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: ae.willPushPWMBadge ? `inset(0 ${ae.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: s, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [ae.PWM_BADGE_SPACE_WIDTH, ae.willPushPWMBadge, s]), Pe = w.useMemo(() => w.createElement("input",
|
|
35402
|
+
}, [o, W, V, M]), me = w.useMemo(() => ({ position: "relative", cursor: v.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [v.disabled]), ye = w.useMemo(() => ({ position: "absolute", inset: 0, width: ae.willPushPWMBadge ? `calc(100% + ${ae.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: ae.willPushPWMBadge ? `inset(0 ${ae.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: s, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [ae.PWM_BADGE_SPACE_WIDTH, ae.willPushPWMBadge, s]), Pe = w.useMemo(() => w.createElement("input", D5(P5({ autoComplete: v.autoComplete || "one-time-code" }, v), { "data-input-otp": !0, "data-input-otp-placeholder-shown": M.length === 0 || void 0, "data-input-otp-mss": $, "data-input-otp-mse": _, inputMode: c, pattern: V == null ? void 0 : V.source, "aria-placeholder": l, style: ye, maxLength: o, value: M, ref: B, onPaste: (U) => {
|
|
35400
35403
|
var le;
|
|
35401
35404
|
ce(U), (le = v.onPaste) == null || le.call(v, U);
|
|
35402
35405
|
}, onChange: re, onMouseOver: (U) => {
|
|
@@ -35426,7 +35429,7 @@ function bo(t, e) {
|
|
|
35426
35429
|
console.error("input-otp could not insert CSS rule:", e);
|
|
35427
35430
|
}
|
|
35428
35431
|
}
|
|
35429
|
-
var
|
|
35432
|
+
var z5 = `
|
|
35430
35433
|
[data-input-otp] {
|
|
35431
35434
|
--nojs-bg: white !important;
|
|
35432
35435
|
--nojs-fg: black !important;
|
|
@@ -35445,7 +35448,7 @@ var z$ = `
|
|
|
35445
35448
|
--nojs-bg: black !important;
|
|
35446
35449
|
--nojs-fg: white !important;
|
|
35447
35450
|
}
|
|
35448
|
-
}`,
|
|
35451
|
+
}`, _5 = "^\\d+$";
|
|
35449
35452
|
const lI = rr(({ classes: t, ...e }, n) => /* @__PURE__ */ b.jsx(
|
|
35450
35453
|
aI,
|
|
35451
35454
|
{
|
|
@@ -35499,7 +35502,7 @@ const OW = ({
|
|
|
35499
35502
|
control: t,
|
|
35500
35503
|
name: s.name,
|
|
35501
35504
|
render: ({ field: { value: l, ...c }, fieldState: { error: u } }) => /* @__PURE__ */ b.jsxs("div", { className: O("m-auto w-max", n == null ? void 0 : n.root), children: [
|
|
35502
|
-
/* @__PURE__ */ b.jsx(lI, { pattern:
|
|
35505
|
+
/* @__PURE__ */ b.jsx(lI, { pattern: _5, value: l ?? "", ...c, maxLength: e, children: /* @__PURE__ */ b.jsx("div", { className: O("m-auto flex w-max items-center gap-4", n == null ? void 0 : n.wrapper), children: e > 0 && Array.from({ length: e }, (d, f) => /* @__PURE__ */ b.jsx(cI, { index: f }, f)) }) }),
|
|
35503
35506
|
/* @__PURE__ */ b.jsx(
|
|
35504
35507
|
Ut,
|
|
35505
35508
|
{
|
|
@@ -35540,7 +35543,7 @@ const OW = ({
|
|
|
35540
35543
|
]
|
|
35541
35544
|
}
|
|
35542
35545
|
);
|
|
35543
|
-
},
|
|
35546
|
+
}, H5 = ({
|
|
35544
35547
|
headTitle: t,
|
|
35545
35548
|
subtitle: e,
|
|
35546
35549
|
buttonsConfig: n,
|
|
@@ -35670,11 +35673,11 @@ const OW = ({
|
|
|
35670
35673
|
case "separateImg":
|
|
35671
35674
|
return /* @__PURE__ */ b.jsx(Zb, { ...e });
|
|
35672
35675
|
case "fullImg":
|
|
35673
|
-
return /* @__PURE__ */ b.jsx(
|
|
35676
|
+
return /* @__PURE__ */ b.jsx(H5, { ...e });
|
|
35674
35677
|
default:
|
|
35675
35678
|
return /* @__PURE__ */ b.jsx(Zb, { ...e });
|
|
35676
35679
|
}
|
|
35677
|
-
},
|
|
35680
|
+
}, $5 = ({ description: t, title: e, img: n, mobileImg: r, classes: i, index: o }) => {
|
|
35678
35681
|
const { isDesktop: s } = Wl(), a = /* @__PURE__ */ b.jsx(b.Fragment, { children: o === 0 && s && /* @__PURE__ */ b.jsx(
|
|
35679
35682
|
Ku,
|
|
35680
35683
|
{
|
|
@@ -35708,7 +35711,7 @@ const OW = ({
|
|
|
35708
35711
|
);
|
|
35709
35712
|
}, DW = ({ heading: t, content: e, classes: n }) => /* @__PURE__ */ b.jsx("section", { className: O("pb-20", n == null ? void 0 : n.section), children: /* @__PURE__ */ b.jsxs(kf, { children: [
|
|
35710
35713
|
/* @__PURE__ */ b.jsx(vs, { className: "mb-8", as: "h2", children: t }),
|
|
35711
|
-
/* @__PURE__ */ b.jsx("ul", { className: "grid grid-cols-1 gap-4 desktop:grid-cols-2", children: e == null ? void 0 : e.map((r, i) => /* @__PURE__ */ b.jsx(
|
|
35714
|
+
/* @__PURE__ */ b.jsx("ul", { className: "grid grid-cols-1 gap-4 desktop:grid-cols-2", children: e == null ? void 0 : e.map((r, i) => /* @__PURE__ */ b.jsx($5, { index: i, classes: n, ...r }, r.img)) })
|
|
35712
35715
|
] }) });
|
|
35713
35716
|
export {
|
|
35714
35717
|
uE as Accordion,
|
|
@@ -35739,9 +35742,9 @@ export {
|
|
|
35739
35742
|
pW as TextareaControl,
|
|
35740
35743
|
AW as UploaderControl,
|
|
35741
35744
|
eA as debounce,
|
|
35742
|
-
|
|
35745
|
+
q5 as useBoolean,
|
|
35743
35746
|
Ry as useClickOutside,
|
|
35744
|
-
|
|
35747
|
+
Q5 as useControlledForm,
|
|
35745
35748
|
tA as useDebounceCallback,
|
|
35746
35749
|
nA as useDebounceValue,
|
|
35747
35750
|
Wl as useDevice,
|