@ws-ui/localization-editor 1.11.7-rc2 → 1.11.7-rc4
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/index.cjs.js +48 -48
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +211 -211
- package/dist/index.es.js.map +1 -1
- package/dist/providers/LocalizationProvider.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as _t from "react";
|
|
|
3
3
|
import tr, { createContext as Gt, memo as _o, useState as vt, useRef as De, useCallback as pe, useEffect as Ee, useContext as ln, useReducer as So, useMemo as Dt, forwardRef as ft, PureComponent as Cv, useImperativeHandle as Av, Fragment as Hi, useLayoutEffect as Io, cloneElement as cp, Component as hp } from "react";
|
|
4
4
|
import St from "classnames";
|
|
5
5
|
import { FdInfoBold as Eo, FdPen as pp, FdTrash as dp, FdCheckCircle as Co, FdClose as Ao, FdPlus as To, FdDownload as $a, FdOutload as fp, FdDown as gp, FdUpload as Tv, FdLocalization as mp } from "@ws-ui/icons";
|
|
6
|
-
import { i18nSubject as vp, getSupportedLanguages as xp, ModalType as ns, ModalCloseReason as Nv, FileFolderType as bp, useStateObject as un, useStudioContext as Ts, useDsChangeRenderer as yp, QODLY_NAMESPACE as Wa, USER_LANGUAGE_DATASOURCE_ID as Ua, useDsRendererAdapter as Ov, ModalColor as wp, Tip as kp, SearchInput as Pv, getNodeInfo as No, DesignerRequestVerb as rs, tasksManagerSubject as Nn, webformSubject as
|
|
6
|
+
import { i18nSubject as vp, getSupportedLanguages as xp, ModalType as ns, ModalCloseReason as Nv, FileFolderType as bp, useStateObject as un, useStudioContext as Ts, useDsChangeRenderer as yp, QODLY_NAMESPACE as Wa, USER_LANGUAGE_DATASOURCE_ID as Ua, useDsRendererAdapter as Ov, ModalColor as wp, Tip as kp, SearchInput as Pv, getNodeInfo as No, DesignerRequestVerb as rs, Portal as Dv, tasksManagerSubject as Nn, webformSubject as Rv, WebformActions as Vv, saveContent as Lv, ESetting as Vu, useOutsideClick as Mv, toastSubject as Fv, Modal as zv, TipsProvider as Bv, useDidMountEffect as Lu } from "@ws-ui/shared";
|
|
7
7
|
import { debounce as Qs, get as Xe, set as ht, isEqual as jv, entries as Hv, escapeRegExp as $v, isObject as is, has as Oo, cloneDeep as mr, merge as Wv, isEmpty as Mu } from "lodash";
|
|
8
8
|
import { useAppDispatch as Uv, useAppSelector as mi, selectTabs as qv, selectActiveTab as Kv, selectAllTabsByType as Jv, selectI18nCurrent as Gv, setTabContent as Yv, setI18nCurrent as Qv, setTabs as Xv, openModal as Zv } from "@ws-ui/store";
|
|
9
9
|
import { generate as Po } from "short-uuid";
|
|
@@ -566,7 +566,7 @@ const Op = Gt(
|
|
|
566
566
|
i18nFileFetched: !1
|
|
567
567
|
}, I0 = {
|
|
568
568
|
tr_key: "__t"
|
|
569
|
-
}, { tr_key: xi } = I0,
|
|
569
|
+
}, { tr_key: xi } = I0, _A = {
|
|
570
570
|
buildPathFullObject: (e) => `${xi}.${e}`,
|
|
571
571
|
getKeyValueFromCustom: (e, t) => Xe(e, `${xi}.${t}.key`),
|
|
572
572
|
getDefaultValueFromCustom: (e, t) => Xe(e, `${xi}.${t}.default`),
|
|
@@ -789,7 +789,7 @@ function rr() {
|
|
|
789
789
|
);
|
|
790
790
|
return e;
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function SA(e, t) {
|
|
793
793
|
const n = Uv(), r = mi(qv), i = mi(Kv), s = mi(Jv("webform")), o = mi(Gv);
|
|
794
794
|
return {
|
|
795
795
|
getTabs: pe(() => r ?? [], [r]),
|
|
@@ -1151,7 +1151,7 @@ const Rp = Gt(
|
|
|
1151
1151
|
k && h("selected", k);
|
|
1152
1152
|
}
|
|
1153
1153
|
}
|
|
1154
|
-
}, [d, s, i]), /* @__PURE__ */ V(Vp.Provider, { value: { selected: t }, children: e });
|
|
1154
|
+
}, [d, s, i]), /* @__PURE__ */ V(Vp.Provider, { value: { selected: t, supported: u }, children: e });
|
|
1155
1155
|
}, L0 = _o(({ children: e }) => {
|
|
1156
1156
|
const t = rr(), {
|
|
1157
1157
|
state: { supported: n },
|
|
@@ -26708,12 +26708,12 @@ const mm = async () => (await No({
|
|
|
26708
26708
|
propName: r,
|
|
26709
26709
|
restOfPropPath: i.join(".")
|
|
26710
26710
|
};
|
|
26711
|
-
}, vm = ({
|
|
26711
|
+
}, vm = () => document.querySelector(`.${Sp}`) || document.body, i2 = ({ container: e, ...t }) => /* @__PURE__ */ V(Dv, { ...t, container: e || vm() }), xm = ({
|
|
26712
26712
|
children: e,
|
|
26713
26713
|
isOpen: t,
|
|
26714
26714
|
onClose: n,
|
|
26715
26715
|
title: r
|
|
26716
|
-
}) => /* @__PURE__ */ V(Xs, { appear: !0, show: t, as: Hi, children: /* @__PURE__ */ ve(Fu, { as: "div", className: "relative z-[1000]", onClose: n, children: [
|
|
26716
|
+
}) => /* @__PURE__ */ V(i2, { children: /* @__PURE__ */ V(Xs, { appear: !0, show: t, as: Hi, children: /* @__PURE__ */ ve(Fu, { as: "div", className: "relative z-[1000]", onClose: n, children: [
|
|
26717
26717
|
/* @__PURE__ */ V(
|
|
26718
26718
|
Xs.Child,
|
|
26719
26719
|
{
|
|
@@ -26746,10 +26746,10 @@ const mm = async () => (await No({
|
|
|
26746
26746
|
] })
|
|
26747
26747
|
}
|
|
26748
26748
|
) }) })
|
|
26749
|
-
] }) }), zh = {
|
|
26749
|
+
] }) }) }), zh = {
|
|
26750
26750
|
DROP_EVENT_ERROR: "Not Suported File type! Only .json and .csv are Supported.",
|
|
26751
26751
|
DROP_VALID_FILE: "Drop or Add a File !"
|
|
26752
|
-
},
|
|
26752
|
+
}, s2 = ({ disable: e, enable: t }) => {
|
|
26753
26753
|
const n = rr(), {
|
|
26754
26754
|
state: { file: r, isOpen: i, supprtedExtension: s, error: o, content: l },
|
|
26755
26755
|
actions: u
|
|
@@ -26798,14 +26798,14 @@ const mm = async () => (await No({
|
|
|
26798
26798
|
await n.actions.setTabContent({
|
|
26799
26799
|
path: W,
|
|
26800
26800
|
content: D.content
|
|
26801
|
-
}),
|
|
26801
|
+
}), Rv.next({
|
|
26802
26802
|
path: W,
|
|
26803
|
-
action:
|
|
26803
|
+
action: Vv.RECOMPUTE,
|
|
26804
26804
|
payload: D.content.components
|
|
26805
26805
|
});
|
|
26806
26806
|
} else {
|
|
26807
26807
|
const W = { ...D };
|
|
26808
|
-
await
|
|
26808
|
+
await Lv({
|
|
26809
26809
|
verb: rs.SAVE_CONTENT,
|
|
26810
26810
|
content: W.content,
|
|
26811
26811
|
path: `WebForms/${T}.WebForm`
|
|
@@ -27081,7 +27081,7 @@ const mm = async () => (await No({
|
|
|
27081
27081
|
children: /* @__PURE__ */ V($a, { className: "h-4 w-4" })
|
|
27082
27082
|
}
|
|
27083
27083
|
) }),
|
|
27084
|
-
/* @__PURE__ */ ve(
|
|
27084
|
+
/* @__PURE__ */ ve(xm, { isOpen: i, onClose: y, title: "Import", children: [
|
|
27085
27085
|
/* @__PURE__ */ V("div", { className: "mt-4 space-y-2", children: /* @__PURE__ */ ve("div", { ...g(), children: [
|
|
27086
27086
|
/* @__PURE__ */ V("input", { ...m() }),
|
|
27087
27087
|
/* @__PURE__ */ V(
|
|
@@ -27153,7 +27153,7 @@ var Li = { exports: {} }, Mi = { exports: {} }, rt = {};
|
|
|
27153
27153
|
* LICENSE file in the root directory of this source tree.
|
|
27154
27154
|
*/
|
|
27155
27155
|
var Bh;
|
|
27156
|
-
function
|
|
27156
|
+
function a2() {
|
|
27157
27157
|
if (Bh) return rt;
|
|
27158
27158
|
Bh = 1;
|
|
27159
27159
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, _ = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
|
|
@@ -27219,7 +27219,7 @@ function s2() {
|
|
|
27219
27219
|
}, rt.typeOf = S, rt;
|
|
27220
27220
|
}
|
|
27221
27221
|
var it = {}, jh;
|
|
27222
|
-
function
|
|
27222
|
+
function o2() {
|
|
27223
27223
|
if (jh) return it;
|
|
27224
27224
|
jh = 1;
|
|
27225
27225
|
var e = {};
|
|
@@ -27313,11 +27313,11 @@ function a2() {
|
|
|
27313
27313
|
})(), it;
|
|
27314
27314
|
}
|
|
27315
27315
|
var Hh;
|
|
27316
|
-
function
|
|
27316
|
+
function bm() {
|
|
27317
27317
|
if (Hh) return Mi.exports;
|
|
27318
27318
|
Hh = 1;
|
|
27319
27319
|
var e = {};
|
|
27320
|
-
return e.NODE_ENV === "production" ? Mi.exports =
|
|
27320
|
+
return e.NODE_ENV === "production" ? Mi.exports = a2() : Mi.exports = o2(), Mi.exports;
|
|
27321
27321
|
}
|
|
27322
27322
|
/*
|
|
27323
27323
|
object-assign
|
|
@@ -27325,7 +27325,7 @@ object-assign
|
|
|
27325
27325
|
@license MIT
|
|
27326
27326
|
*/
|
|
27327
27327
|
var La, $h;
|
|
27328
|
-
function
|
|
27328
|
+
function l2() {
|
|
27329
27329
|
if ($h) return La;
|
|
27330
27330
|
$h = 1;
|
|
27331
27331
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
@@ -27378,17 +27378,17 @@ function Kl() {
|
|
|
27378
27378
|
return Ma = e, Ma;
|
|
27379
27379
|
}
|
|
27380
27380
|
var Fa, Uh;
|
|
27381
|
-
function
|
|
27381
|
+
function ym() {
|
|
27382
27382
|
return Uh || (Uh = 1, Fa = Function.call.bind(Object.prototype.hasOwnProperty)), Fa;
|
|
27383
27383
|
}
|
|
27384
27384
|
var za, qh;
|
|
27385
|
-
function
|
|
27385
|
+
function u2() {
|
|
27386
27386
|
if (qh) return za;
|
|
27387
27387
|
qh = 1;
|
|
27388
27388
|
var e = {}, t = function() {
|
|
27389
27389
|
};
|
|
27390
27390
|
if (e.NODE_ENV !== "production") {
|
|
27391
|
-
var n = /* @__PURE__ */ Kl(), r = {}, i = /* @__PURE__ */
|
|
27391
|
+
var n = /* @__PURE__ */ Kl(), r = {}, i = /* @__PURE__ */ ym();
|
|
27392
27392
|
t = function(o) {
|
|
27393
27393
|
var l = "Warning: " + o;
|
|
27394
27394
|
typeof console < "u" && console.error(l);
|
|
@@ -27431,10 +27431,10 @@ function l2() {
|
|
|
27431
27431
|
}, za = s, za;
|
|
27432
27432
|
}
|
|
27433
27433
|
var Ba, Kh;
|
|
27434
|
-
function
|
|
27434
|
+
function c2() {
|
|
27435
27435
|
if (Kh) return Ba;
|
|
27436
27436
|
Kh = 1;
|
|
27437
|
-
var e = {}, t =
|
|
27437
|
+
var e = {}, t = bm(), n = l2(), r = /* @__PURE__ */ Kl(), i = /* @__PURE__ */ ym(), s = /* @__PURE__ */ u2(), o = function() {
|
|
27438
27438
|
};
|
|
27439
27439
|
e.NODE_ENV !== "production" && (o = function(u) {
|
|
27440
27440
|
var c = "Warning: " + u;
|
|
@@ -27752,7 +27752,7 @@ Valid keys: ` + JSON.stringify(Object.keys(L), null, " ")
|
|
|
27752
27752
|
}, Ba;
|
|
27753
27753
|
}
|
|
27754
27754
|
var ja, Jh;
|
|
27755
|
-
function
|
|
27755
|
+
function h2() {
|
|
27756
27756
|
if (Jh) return ja;
|
|
27757
27757
|
Jh = 1;
|
|
27758
27758
|
var e = /* @__PURE__ */ Kl();
|
|
@@ -27800,19 +27800,19 @@ function c2() {
|
|
|
27800
27800
|
}, ja;
|
|
27801
27801
|
}
|
|
27802
27802
|
var Gh;
|
|
27803
|
-
function
|
|
27803
|
+
function p2() {
|
|
27804
27804
|
if (Gh) return Li.exports;
|
|
27805
27805
|
Gh = 1;
|
|
27806
27806
|
var e = {};
|
|
27807
27807
|
if (e.NODE_ENV !== "production") {
|
|
27808
|
-
var t =
|
|
27809
|
-
Li.exports = /* @__PURE__ */
|
|
27808
|
+
var t = bm(), n = !0;
|
|
27809
|
+
Li.exports = /* @__PURE__ */ c2()(t.isElement, n);
|
|
27810
27810
|
} else
|
|
27811
|
-
Li.exports = /* @__PURE__ */
|
|
27811
|
+
Li.exports = /* @__PURE__ */ h2()();
|
|
27812
27812
|
return Li.exports;
|
|
27813
27813
|
}
|
|
27814
|
-
var
|
|
27815
|
-
const le = /* @__PURE__ */ zl(
|
|
27814
|
+
var d2 = /* @__PURE__ */ p2();
|
|
27815
|
+
const le = /* @__PURE__ */ zl(d2);
|
|
27816
27816
|
var Fi = { exports: {} }, ot = {};
|
|
27817
27817
|
/** @license React v17.0.2
|
|
27818
27818
|
* react-is.production.min.js
|
|
@@ -27823,7 +27823,7 @@ var Fi = { exports: {} }, ot = {};
|
|
|
27823
27823
|
* LICENSE file in the root directory of this source tree.
|
|
27824
27824
|
*/
|
|
27825
27825
|
var Yh;
|
|
27826
|
-
function
|
|
27826
|
+
function f2() {
|
|
27827
27827
|
if (Yh) return ot;
|
|
27828
27828
|
Yh = 1;
|
|
27829
27829
|
var e = 60103, t = 60106, n = 60107, r = 60108, i = 60114, s = 60109, o = 60110, l = 60112, u = 60113, c = 60120, d = 60115, h = 60116, g = 60121, m = 60122, w = 60117, _ = 60129, y = 60131;
|
|
@@ -27892,7 +27892,7 @@ function d2() {
|
|
|
27892
27892
|
}, ot.typeOf = x, ot;
|
|
27893
27893
|
}
|
|
27894
27894
|
var lt = {}, Qh;
|
|
27895
|
-
function
|
|
27895
|
+
function g2() {
|
|
27896
27896
|
if (Qh) return lt;
|
|
27897
27897
|
Qh = 1;
|
|
27898
27898
|
var e = {};
|
|
@@ -27989,13 +27989,13 @@ function f2() {
|
|
|
27989
27989
|
})(), lt;
|
|
27990
27990
|
}
|
|
27991
27991
|
var Xh;
|
|
27992
|
-
function
|
|
27992
|
+
function m2() {
|
|
27993
27993
|
if (Xh) return Fi.exports;
|
|
27994
27994
|
Xh = 1;
|
|
27995
27995
|
var e = {};
|
|
27996
|
-
return e.NODE_ENV === "production" ? Fi.exports =
|
|
27996
|
+
return e.NODE_ENV === "production" ? Fi.exports = f2() : Fi.exports = g2(), Fi.exports;
|
|
27997
27997
|
}
|
|
27998
|
-
var Zh =
|
|
27998
|
+
var Zh = m2();
|
|
27999
27999
|
function ep(e) {
|
|
28000
28000
|
return typeof e == "object" && e != null && e.nodeType === 1;
|
|
28001
28001
|
}
|
|
@@ -28022,7 +28022,7 @@ function Ha(e, t) {
|
|
|
28022
28022
|
function zi(e, t, n, r, i, s, o, l) {
|
|
28023
28023
|
return s < e && o > t || s > e && o < t ? 0 : s <= e && l <= n || o >= t && l >= n ? s - e - r : o > t && l < n || s < e && l > n ? o - t + i : 0;
|
|
28024
28024
|
}
|
|
28025
|
-
var
|
|
28025
|
+
var v2 = function(e, t) {
|
|
28026
28026
|
var n = window, r = t.inline, i = t.boundary, s = t.skipOverflowHiddenElements, o = typeof i == "function" ? i : function(J) {
|
|
28027
28027
|
return J !== i;
|
|
28028
28028
|
};
|
|
@@ -28048,16 +28048,16 @@ var m2 = function(e, t) {
|
|
|
28048
28048
|
}
|
|
28049
28049
|
return D;
|
|
28050
28050
|
}, Ae = {};
|
|
28051
|
-
let
|
|
28051
|
+
let x2 = 0;
|
|
28052
28052
|
function np(e) {
|
|
28053
28053
|
return typeof e == "function" ? e : rn;
|
|
28054
28054
|
}
|
|
28055
28055
|
function rn() {
|
|
28056
28056
|
}
|
|
28057
|
-
function
|
|
28057
|
+
function wm(e, t) {
|
|
28058
28058
|
if (!e)
|
|
28059
28059
|
return;
|
|
28060
|
-
|
|
28060
|
+
v2(e, {
|
|
28061
28061
|
boundary: t
|
|
28062
28062
|
}).forEach((r) => {
|
|
28063
28063
|
let {
|
|
@@ -28103,10 +28103,10 @@ function Gr() {
|
|
|
28103
28103
|
});
|
|
28104
28104
|
};
|
|
28105
28105
|
}
|
|
28106
|
-
function
|
|
28107
|
-
return String(
|
|
28106
|
+
function km() {
|
|
28107
|
+
return String(x2++);
|
|
28108
28108
|
}
|
|
28109
|
-
function
|
|
28109
|
+
function b2(e) {
|
|
28110
28110
|
let {
|
|
28111
28111
|
isOpen: t,
|
|
28112
28112
|
resultCount: n,
|
|
@@ -28120,20 +28120,20 @@ function ip(e, t) {
|
|
|
28120
28120
|
e[0]
|
|
28121
28121
|
) : e, !e && t ? t : e;
|
|
28122
28122
|
}
|
|
28123
|
-
function
|
|
28123
|
+
function _m(e) {
|
|
28124
28124
|
return typeof e.type == "string";
|
|
28125
28125
|
}
|
|
28126
|
-
function
|
|
28126
|
+
function Sm(e) {
|
|
28127
28127
|
return e.props;
|
|
28128
28128
|
}
|
|
28129
|
-
function
|
|
28129
|
+
function y2(e, t) {
|
|
28130
28130
|
console.error(`The property "${t}" is required in "${e}"`);
|
|
28131
28131
|
}
|
|
28132
|
-
const
|
|
28132
|
+
const w2 = ["highlightedIndex", "inputValue", "isOpen", "selectedItem", "type"];
|
|
28133
28133
|
function Bi(e) {
|
|
28134
28134
|
e === void 0 && (e = {});
|
|
28135
28135
|
const t = {};
|
|
28136
|
-
return
|
|
28136
|
+
return w2.forEach((n) => {
|
|
28137
28137
|
e.hasOwnProperty(n) && (t[n] = e[n]);
|
|
28138
28138
|
}), t;
|
|
28139
28139
|
}
|
|
@@ -28150,7 +28150,7 @@ function Is(e) {
|
|
|
28150
28150
|
} = e;
|
|
28151
28151
|
return n >= 37 && n <= 40 && t.indexOf("Arrow") !== 0 ? `Arrow${t}` : t;
|
|
28152
28152
|
}
|
|
28153
|
-
function
|
|
28153
|
+
function k2(e) {
|
|
28154
28154
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
28155
28155
|
}
|
|
28156
28156
|
function wr(e, t, n, r, i) {
|
|
@@ -28187,14 +28187,14 @@ Ae.NODE_ENV !== "production" && (Jl = (e, t, n) => {
|
|
|
28187
28187
|
t[i] !== void 0 && n[i] === void 0 ? console.error(`downshift: A component has changed the controlled prop "${i}" to be uncontrolled. ${r}`) : t[i] === void 0 && n[i] !== void 0 && console.error(`downshift: A component has changed the uncontrolled prop "${i}" to be controlled. ${r}`);
|
|
28188
28188
|
});
|
|
28189
28189
|
});
|
|
28190
|
-
const
|
|
28191
|
-
|
|
28190
|
+
const _2 = Js((e) => {
|
|
28191
|
+
Em(e).textContent = "";
|
|
28192
28192
|
}, 500);
|
|
28193
|
-
function
|
|
28194
|
-
const n =
|
|
28195
|
-
e && (n.textContent = e,
|
|
28193
|
+
function Im(e, t) {
|
|
28194
|
+
const n = Em(t);
|
|
28195
|
+
e && (n.textContent = e, _2(t));
|
|
28196
28196
|
}
|
|
28197
|
-
function
|
|
28197
|
+
function Em(e) {
|
|
28198
28198
|
e === void 0 && (e = document);
|
|
28199
28199
|
let t = e.getElementById("a11y-status-message");
|
|
28200
28200
|
return t || (t = e.createElement("div"), t.setAttribute("id", "a11y-status-message"), t.setAttribute("role", "status"), t.setAttribute("aria-live", "polite"), t.setAttribute("aria-relevant", "additions text"), Object.assign(t.style, {
|
|
@@ -28208,32 +28208,32 @@ function Im(e) {
|
|
|
28208
28208
|
width: "1px"
|
|
28209
28209
|
}), e.body.appendChild(t), t);
|
|
28210
28210
|
}
|
|
28211
|
-
const
|
|
28212
|
-
var
|
|
28211
|
+
const Cm = Ae.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, Am = Ae.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, Tm = Ae.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, es = Ae.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, ts = Ae.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, Nm = Ae.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, Om = Ae.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, Pm = Ae.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, Dm = Ae.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8, Rm = Ae.NODE_ENV !== "production" ? "__autocomplete_click_item__" : 9, Vm = Ae.NODE_ENV !== "production" ? "__autocomplete_blur_input__" : 10, Lm = Ae.NODE_ENV !== "production" ? "__autocomplete_change_input__" : 11, Mm = Ae.NODE_ENV !== "production" ? "__autocomplete_keydown_space_button__" : 12, wo = Ae.NODE_ENV !== "production" ? "__autocomplete_click_button__" : 13, Fm = Ae.NODE_ENV !== "production" ? "__autocomplete_blur_button__" : 14, zm = Ae.NODE_ENV !== "production" ? "__autocomplete_controlled_prop_updated_selected_item__" : 15, Bm = Ae.NODE_ENV !== "production" ? "__autocomplete_touchend__" : 16;
|
|
28212
|
+
var S2 = /* @__PURE__ */ Object.freeze({
|
|
28213
28213
|
__proto__: null,
|
|
28214
|
-
unknown:
|
|
28215
|
-
mouseUp:
|
|
28216
|
-
itemMouseEnter:
|
|
28214
|
+
unknown: Cm,
|
|
28215
|
+
mouseUp: Am,
|
|
28216
|
+
itemMouseEnter: Tm,
|
|
28217
28217
|
keyDownArrowUp: es,
|
|
28218
28218
|
keyDownArrowDown: ts,
|
|
28219
|
-
keyDownEscape:
|
|
28220
|
-
keyDownEnter:
|
|
28221
|
-
keyDownHome:
|
|
28222
|
-
keyDownEnd:
|
|
28223
|
-
clickItem:
|
|
28224
|
-
blurInput:
|
|
28225
|
-
changeInput:
|
|
28226
|
-
keyDownSpaceButton:
|
|
28219
|
+
keyDownEscape: Nm,
|
|
28220
|
+
keyDownEnter: Om,
|
|
28221
|
+
keyDownHome: Pm,
|
|
28222
|
+
keyDownEnd: Dm,
|
|
28223
|
+
clickItem: Rm,
|
|
28224
|
+
blurInput: Vm,
|
|
28225
|
+
changeInput: Lm,
|
|
28226
|
+
keyDownSpaceButton: Mm,
|
|
28227
28227
|
clickButton: wo,
|
|
28228
|
-
blurButton:
|
|
28229
|
-
controlledPropUpdatedSelectedItem:
|
|
28230
|
-
touchEnd:
|
|
28228
|
+
blurButton: Fm,
|
|
28229
|
+
controlledPropUpdatedSelectedItem: zm,
|
|
28230
|
+
touchEnd: Bm
|
|
28231
28231
|
});
|
|
28232
|
-
const
|
|
28232
|
+
const I2 = /* @__PURE__ */ (() => {
|
|
28233
28233
|
class e extends hp {
|
|
28234
28234
|
constructor(n) {
|
|
28235
28235
|
var r;
|
|
28236
|
-
super(n), r = this, this.id = this.props.id || `downshift-${
|
|
28236
|
+
super(n), r = this, this.id = this.props.id || `downshift-${km()}`, this.menuId = this.props.menuId || `${this.id}-menu`, this.labelId = this.props.labelId || `${this.id}-label`, this.inputId = this.props.inputId || `${this.id}-input`, this.getItemId = this.props.getItemId || ((h) => `${this.id}-item-${h}`), this.input = null, this.items = [], this.itemCount = null, this.previousResultCount = 0, this.timeoutIds = [], this.internalSetTimeout = (h, g) => {
|
|
28237
28237
|
const m = setTimeout(() => {
|
|
28238
28238
|
this.timeoutIds = this.timeoutIds.filter((w) => w !== m), h();
|
|
28239
28239
|
}, g);
|
|
@@ -28276,7 +28276,7 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28276
28276
|
let x = y ? h(k) : h;
|
|
28277
28277
|
x = this.props.stateReducer(k, x), m = x.hasOwnProperty("selectedItem");
|
|
28278
28278
|
const S = {};
|
|
28279
|
-
return m && x.selectedItem !== k.selectedItem && (w = x.selectedItem), x.type = x.type ||
|
|
28279
|
+
return m && x.selectedItem !== k.selectedItem && (w = x.selectedItem), x.type = x.type || Cm, Object.keys(x).forEach((C) => {
|
|
28280
28280
|
k[C] !== x[C] && (_[C] = x[C]), C !== "type" && (x[C], yo(this.props, C) || (S[C] = x[C]));
|
|
28281
28281
|
}), y && x.hasOwnProperty("inputValue") && this.props.onInputValueChange(x.inputValue, {
|
|
28282
28282
|
...this.getStateAndHelpers(),
|
|
@@ -28364,13 +28364,13 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28364
28364
|
if (w == null || _ && _.hasAttribute("disabled"))
|
|
28365
28365
|
return;
|
|
28366
28366
|
this.selectHighlightedItem({
|
|
28367
|
-
type:
|
|
28367
|
+
type: Om
|
|
28368
28368
|
});
|
|
28369
28369
|
}
|
|
28370
28370
|
},
|
|
28371
28371
|
Escape(h) {
|
|
28372
28372
|
h.preventDefault(), this.reset({
|
|
28373
|
-
type:
|
|
28373
|
+
type: Nm,
|
|
28374
28374
|
...!this.state.isOpen && {
|
|
28375
28375
|
selectedItem: null,
|
|
28376
28376
|
inputValue: ""
|
|
@@ -28381,7 +28381,7 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28381
28381
|
...this.keyDownHandlers,
|
|
28382
28382
|
" "(h) {
|
|
28383
28383
|
h.preventDefault(), this.toggleMenu({
|
|
28384
|
-
type:
|
|
28384
|
+
type: Mm
|
|
28385
28385
|
});
|
|
28386
28386
|
}
|
|
28387
28387
|
}, this.inputKeyDownHandlers = {
|
|
@@ -28398,7 +28398,7 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28398
28398
|
return;
|
|
28399
28399
|
const w = nr(1, 0, m, (_) => this.getItemNodeFromIndex(_), !1);
|
|
28400
28400
|
this.setHighlightedIndex(w, {
|
|
28401
|
-
type:
|
|
28401
|
+
type: Pm
|
|
28402
28402
|
});
|
|
28403
28403
|
},
|
|
28404
28404
|
End(h) {
|
|
@@ -28413,7 +28413,7 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28413
28413
|
return;
|
|
28414
28414
|
const w = nr(-1, m - 1, m, (_) => this.getItemNodeFromIndex(_), !1);
|
|
28415
28415
|
this.setHighlightedIndex(w, {
|
|
28416
|
-
type:
|
|
28416
|
+
type: Dm
|
|
28417
28417
|
});
|
|
28418
28418
|
}
|
|
28419
28419
|
}, this.getToggleButtonProps = function(h) {
|
|
@@ -28457,7 +28457,7 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28457
28457
|
const g = h.target;
|
|
28458
28458
|
this.internalSetTimeout(() => {
|
|
28459
28459
|
!this.isMouseDown && (this.props.environment.document.activeElement == null || this.props.environment.document.activeElement.id !== this.inputId) && this.props.environment.document.activeElement !== g && this.reset({
|
|
28460
|
-
type:
|
|
28460
|
+
type: Fm
|
|
28461
28461
|
});
|
|
28462
28462
|
});
|
|
28463
28463
|
}, this.getLabelProps = (h) => ({
|
|
@@ -28501,7 +28501,7 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28501
28501
|
g && this.inputKeyDownHandlers[g] && this.inputKeyDownHandlers[g].call(this, h);
|
|
28502
28502
|
}, this.inputHandleChange = (h) => {
|
|
28503
28503
|
this.internalSetState({
|
|
28504
|
-
type:
|
|
28504
|
+
type: Lm,
|
|
28505
28505
|
isOpen: !0,
|
|
28506
28506
|
inputValue: h.target.value,
|
|
28507
28507
|
highlightedIndex: this.props.defaultHighlightedIndex
|
|
@@ -28510,7 +28510,7 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28510
28510
|
this.internalSetTimeout(() => {
|
|
28511
28511
|
const h = this.props.environment.document && !!this.props.environment.document.activeElement && !!this.props.environment.document.activeElement.dataset && this.props.environment.document.activeElement.dataset.toggle && this._rootNode && this._rootNode.contains(this.props.environment.document.activeElement);
|
|
28512
28512
|
!this.isMouseDown && !h && this.reset({
|
|
28513
|
-
type:
|
|
28513
|
+
type: Vm
|
|
28514
28514
|
});
|
|
28515
28515
|
});
|
|
28516
28516
|
}, this.menuRef = (h) => {
|
|
@@ -28540,7 +28540,7 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28540
28540
|
item: k = Ae.NODE_ENV === "production" ? (
|
|
28541
28541
|
/* istanbul ignore next */
|
|
28542
28542
|
void 0
|
|
28543
|
-
) :
|
|
28543
|
+
) : y2("getItemProps", "item"),
|
|
28544
28544
|
...x
|
|
28545
28545
|
} = h === void 0 ? {} : h;
|
|
28546
28546
|
y === void 0 ? (r.items.push(k), y = r.items.indexOf(k)) : r.items[y] = k;
|
|
@@ -28550,7 +28550,7 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28550
28550
|
// can fire on DOM changes, interrupting keyboard navigation
|
|
28551
28551
|
onMouseMove: Et(g, () => {
|
|
28552
28552
|
y !== r.getState().highlightedIndex && (r.setHighlightedIndex(y, {
|
|
28553
|
-
type:
|
|
28553
|
+
type: Tm
|
|
28554
28554
|
}), r.avoidScrolling = !0, r.internalSetTimeout(() => r.avoidScrolling = !1, 250));
|
|
28555
28555
|
}),
|
|
28556
28556
|
onMouseDown: Et(m, (P) => {
|
|
@@ -28558,7 +28558,7 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28558
28558
|
}),
|
|
28559
28559
|
[S]: Et(C, () => {
|
|
28560
28560
|
r.selectItemAtIndex(y, {
|
|
28561
|
-
type:
|
|
28561
|
+
type: Rm
|
|
28562
28562
|
});
|
|
28563
28563
|
})
|
|
28564
28564
|
}, f = x.disabled ? {
|
|
@@ -28620,7 +28620,7 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28620
28620
|
highlightedItem: g,
|
|
28621
28621
|
...h
|
|
28622
28622
|
});
|
|
28623
|
-
this.previousResultCount = m,
|
|
28623
|
+
this.previousResultCount = m, Im(w, this.props.environment.document);
|
|
28624
28624
|
}, 200);
|
|
28625
28625
|
const {
|
|
28626
28626
|
defaultHighlightedIndex: i,
|
|
@@ -28751,7 +28751,7 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28751
28751
|
this.isMouseDown = !0;
|
|
28752
28752
|
}, r = (u) => {
|
|
28753
28753
|
this.isMouseDown = !1, !Es(u.target, [this._rootNode, this._menuNode], this.props.environment) && this.getState().isOpen && this.reset({
|
|
28754
|
-
type:
|
|
28754
|
+
type: Am
|
|
28755
28755
|
}, () => this.props.onOuterClick(this.getStateAndHelpers()));
|
|
28756
28756
|
}, i = () => {
|
|
28757
28757
|
this.isTouchMove = !1;
|
|
@@ -28760,7 +28760,7 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28760
28760
|
}, o = (u) => {
|
|
28761
28761
|
const c = Es(u.target, [this._rootNode, this._menuNode], this.props.environment, !1);
|
|
28762
28762
|
!this.isTouchMove && !c && this.getState().isOpen && this.reset({
|
|
28763
|
-
type:
|
|
28763
|
+
type: Bm
|
|
28764
28764
|
}, () => this.props.onOuterClick(this.getStateAndHelpers()));
|
|
28765
28765
|
}, {
|
|
28766
28766
|
environment: l
|
|
@@ -28780,7 +28780,7 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28780
28780
|
}
|
|
28781
28781
|
componentDidUpdate(n, r) {
|
|
28782
28782
|
Ae.NODE_ENV !== "production" && (Jl(this.state, n, this.props), this.getMenuProps.called && !this.getMenuProps.suppressRefError && sp(this._menuNode, this.getMenuProps)), yo(this.props, "selectedItem") && this.props.selectedItemChanged(n.selectedItem, this.props.selectedItem) && this.internalSetState({
|
|
28783
|
-
type:
|
|
28783
|
+
type: zm,
|
|
28784
28784
|
inputValue: this.props.itemToString(this.props.selectedItem)
|
|
28785
28785
|
}), !this.avoidScrolling && this.shouldScroll(r, n) && this.scrollHighlightedItemIntoView(), this.updateStatus();
|
|
28786
28786
|
}
|
|
@@ -28794,9 +28794,9 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28794
28794
|
if (!r)
|
|
28795
28795
|
return null;
|
|
28796
28796
|
if (this.getRootProps.called || this.props.suppressRefError)
|
|
28797
|
-
return Ae.NODE_ENV !== "production" && !this.getRootProps.suppressRefError && !this.props.suppressRefError &&
|
|
28798
|
-
if (
|
|
28799
|
-
return /* @__PURE__ */ cp(r, this.getRootProps(
|
|
28797
|
+
return Ae.NODE_ENV !== "production" && !this.getRootProps.suppressRefError && !this.props.suppressRefError && E2(r, this.getRootProps), r;
|
|
28798
|
+
if (_m(r))
|
|
28799
|
+
return /* @__PURE__ */ cp(r, this.getRootProps(Sm(r)));
|
|
28800
28800
|
if (Ae.NODE_ENV !== "production")
|
|
28801
28801
|
throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function");
|
|
28802
28802
|
}
|
|
@@ -28804,8 +28804,8 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28804
28804
|
return e.defaultProps = {
|
|
28805
28805
|
defaultHighlightedIndex: null,
|
|
28806
28806
|
defaultIsOpen: !1,
|
|
28807
|
-
getA11yStatusMessage:
|
|
28808
|
-
itemToString: (t) => t == null ? "" : (Ae.NODE_ENV !== "production" &&
|
|
28807
|
+
getA11yStatusMessage: b2,
|
|
28808
|
+
itemToString: (t) => t == null ? "" : (Ae.NODE_ENV !== "production" && k2(t) && !t.hasOwnProperty("toString") && console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.", "The object that was passed:", t), String(t)),
|
|
28809
28809
|
onStateChange: rn,
|
|
28810
28810
|
onInputValueChange: rn,
|
|
28811
28811
|
onUserAction: rn,
|
|
@@ -28819,10 +28819,10 @@ const S2 = /* @__PURE__ */ (() => {
|
|
|
28819
28819
|
),
|
|
28820
28820
|
stateReducer: (t, n) => n,
|
|
28821
28821
|
suppressRefError: !1,
|
|
28822
|
-
scrollIntoView:
|
|
28823
|
-
}, e.stateChangeTypes =
|
|
28822
|
+
scrollIntoView: wm
|
|
28823
|
+
}, e.stateChangeTypes = S2, e;
|
|
28824
28824
|
})();
|
|
28825
|
-
Ae.NODE_ENV !== "production" && (
|
|
28825
|
+
Ae.NODE_ENV !== "production" && (I2.propTypes = {
|
|
28826
28826
|
children: le.func,
|
|
28827
28827
|
defaultHighlightedIndex: le.number,
|
|
28828
28828
|
defaultIsOpen: le.bool,
|
|
@@ -28872,32 +28872,32 @@ function sp(e, t) {
|
|
|
28872
28872
|
} = t;
|
|
28873
28873
|
e || console.error(`downshift: The ref prop "${n}" from getMenuProps was not applied correctly on your menu element.`);
|
|
28874
28874
|
}
|
|
28875
|
-
function
|
|
28875
|
+
function E2(e, t) {
|
|
28876
28876
|
let {
|
|
28877
28877
|
refKey: n
|
|
28878
28878
|
} = t;
|
|
28879
|
-
const r = n !== "ref", i = !
|
|
28880
|
-
i && !r && !Zh.isForwardRef(e) ? console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps") : !i && r && console.error(`downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "${n}"`), !Zh.isForwardRef(e) && !
|
|
28879
|
+
const r = n !== "ref", i = !_m(e);
|
|
28880
|
+
i && !r && !Zh.isForwardRef(e) ? console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps") : !i && r && console.error(`downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "${n}"`), !Zh.isForwardRef(e) && !Sm(e)[n] && console.error(`downshift: You must apply the ref prop "${n}" from getRootProps onto your root element.`);
|
|
28881
28881
|
}
|
|
28882
|
-
const
|
|
28882
|
+
const jm = {
|
|
28883
28883
|
highlightedIndex: -1,
|
|
28884
28884
|
isOpen: !1,
|
|
28885
28885
|
selectedItem: null,
|
|
28886
28886
|
inputValue: ""
|
|
28887
28887
|
};
|
|
28888
|
-
function
|
|
28888
|
+
function C2(e, t, n) {
|
|
28889
28889
|
const {
|
|
28890
28890
|
props: r,
|
|
28891
28891
|
type: i
|
|
28892
28892
|
} = e, s = {};
|
|
28893
28893
|
Object.keys(t).forEach((o) => {
|
|
28894
|
-
|
|
28894
|
+
A2(o, e, t, n), n[o] !== t[o] && (s[o] = n[o]);
|
|
28895
28895
|
}), r.onStateChange && Object.keys(s).length && r.onStateChange({
|
|
28896
28896
|
type: i,
|
|
28897
28897
|
...s
|
|
28898
28898
|
});
|
|
28899
28899
|
}
|
|
28900
|
-
function
|
|
28900
|
+
function A2(e, t, n, r) {
|
|
28901
28901
|
const {
|
|
28902
28902
|
props: i,
|
|
28903
28903
|
type: s
|
|
@@ -28907,22 +28907,22 @@ function C2(e, t, n, r) {
|
|
|
28907
28907
|
...r
|
|
28908
28908
|
});
|
|
28909
28909
|
}
|
|
28910
|
-
function
|
|
28910
|
+
function T2(e, t) {
|
|
28911
28911
|
return t.changes;
|
|
28912
28912
|
}
|
|
28913
|
-
function
|
|
28913
|
+
function N2(e) {
|
|
28914
28914
|
const {
|
|
28915
28915
|
selectedItem: t,
|
|
28916
28916
|
itemToString: n
|
|
28917
28917
|
} = e;
|
|
28918
28918
|
return t ? `${n(t)} has been selected.` : "";
|
|
28919
28919
|
}
|
|
28920
|
-
const
|
|
28921
|
-
|
|
28922
|
-
}, 200),
|
|
28923
|
-
function
|
|
28920
|
+
const O2 = Js((e, t) => {
|
|
28921
|
+
Im(e(), t);
|
|
28922
|
+
}, 200), P2 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Io : Ee;
|
|
28923
|
+
function D2(e) {
|
|
28924
28924
|
let {
|
|
28925
|
-
id: t = `downshift-${
|
|
28925
|
+
id: t = `downshift-${km()}`,
|
|
28926
28926
|
labelId: n,
|
|
28927
28927
|
menuId: r,
|
|
28928
28928
|
getItemId: i,
|
|
@@ -28937,10 +28937,10 @@ function P2(e) {
|
|
|
28937
28937
|
inputId: o || `${t}-input`
|
|
28938
28938
|
}).current;
|
|
28939
28939
|
}
|
|
28940
|
-
function
|
|
28940
|
+
function R2(e, t, n) {
|
|
28941
28941
|
return e !== void 0 ? e : n.length === 0 ? -1 : n.indexOf(t);
|
|
28942
28942
|
}
|
|
28943
|
-
function
|
|
28943
|
+
function V2(e) {
|
|
28944
28944
|
return e ? String(e) : "";
|
|
28945
28945
|
}
|
|
28946
28946
|
function ap(e) {
|
|
@@ -28949,11 +28949,11 @@ function ap(e) {
|
|
|
28949
28949
|
function Gl(e) {
|
|
28950
28950
|
return `${e.slice(0, 1).toUpperCase()}${e.slice(1)}`;
|
|
28951
28951
|
}
|
|
28952
|
-
function
|
|
28952
|
+
function Hm(e) {
|
|
28953
28953
|
const t = De(e);
|
|
28954
28954
|
return t.current = e, t;
|
|
28955
28955
|
}
|
|
28956
|
-
function
|
|
28956
|
+
function L2(e, t, n) {
|
|
28957
28957
|
const r = De(), i = De(), s = pe((h, g) => {
|
|
28958
28958
|
i.current = g, h = Ss(h, g.props);
|
|
28959
28959
|
const m = e(h, g);
|
|
@@ -28961,23 +28961,23 @@ function V2(e, t, n) {
|
|
|
28961
28961
|
...g,
|
|
28962
28962
|
changes: m
|
|
28963
28963
|
});
|
|
28964
|
-
}, [e]), [o, l] = So(s, t), u =
|
|
28964
|
+
}, [e]), [o, l] = So(s, t), u = Hm(n), c = pe((h) => l({
|
|
28965
28965
|
props: u.current,
|
|
28966
28966
|
...h
|
|
28967
28967
|
}), [u]), d = i.current;
|
|
28968
28968
|
return Ee(() => {
|
|
28969
|
-
d && r.current && r.current !== o &&
|
|
28969
|
+
d && r.current && r.current !== o && C2(d, Ss(r.current, d.props), o), r.current = o;
|
|
28970
28970
|
}, [o, n, d]), [o, c];
|
|
28971
28971
|
}
|
|
28972
|
-
function
|
|
28973
|
-
const [r, i] =
|
|
28972
|
+
function M2(e, t, n) {
|
|
28973
|
+
const [r, i] = L2(e, t, n);
|
|
28974
28974
|
return [Ss(r, n), i];
|
|
28975
28975
|
}
|
|
28976
28976
|
const Yr = {
|
|
28977
|
-
itemToString:
|
|
28978
|
-
stateReducer:
|
|
28979
|
-
getA11ySelectionMessage:
|
|
28980
|
-
scrollIntoView:
|
|
28977
|
+
itemToString: V2,
|
|
28978
|
+
stateReducer: T2,
|
|
28979
|
+
getA11ySelectionMessage: N2,
|
|
28980
|
+
scrollIntoView: wm,
|
|
28981
28981
|
circularNavigation: !1,
|
|
28982
28982
|
environment: (
|
|
28983
28983
|
/* istanbul ignore next (ssr) */
|
|
@@ -28985,19 +28985,19 @@ const Yr = {
|
|
|
28985
28985
|
)
|
|
28986
28986
|
};
|
|
28987
28987
|
function Pn(e, t, n) {
|
|
28988
|
-
n === void 0 && (n =
|
|
28988
|
+
n === void 0 && (n = jm);
|
|
28989
28989
|
const r = e[`default${Gl(t)}`];
|
|
28990
28990
|
return r !== void 0 ? r : n[t];
|
|
28991
28991
|
}
|
|
28992
28992
|
function ji(e, t, n) {
|
|
28993
|
-
n === void 0 && (n =
|
|
28993
|
+
n === void 0 && (n = jm);
|
|
28994
28994
|
const r = e[t];
|
|
28995
28995
|
if (r !== void 0)
|
|
28996
28996
|
return r;
|
|
28997
28997
|
const i = e[`initial${Gl(t)}`];
|
|
28998
28998
|
return i !== void 0 ? i : Pn(e, t, n);
|
|
28999
28999
|
}
|
|
29000
|
-
function
|
|
29000
|
+
function F2(e) {
|
|
29001
29001
|
const t = ji(e, "selectedItem"), n = ji(e, "isOpen"), r = ji(e, "highlightedIndex"), i = ji(e, "inputValue");
|
|
29002
29002
|
return {
|
|
29003
29003
|
highlightedIndex: r < 0 && t && n ? e.items.indexOf(t) : r,
|
|
@@ -29017,7 +29017,7 @@ function Cs(e, t, n, r) {
|
|
|
29017
29017
|
} = t;
|
|
29018
29018
|
return i.length === 0 ? -1 : s !== void 0 && u === s ? s : o !== void 0 ? o : l ? n === 0 ? i.indexOf(l) : wr(n, i.indexOf(l), i.length, r, !1) : n === 0 ? -1 : n < 0 ? i.length - 1 : 0;
|
|
29019
29019
|
}
|
|
29020
|
-
function
|
|
29020
|
+
function z2(e, t, n, r) {
|
|
29021
29021
|
const i = De({
|
|
29022
29022
|
isMouseDown: !1,
|
|
29023
29023
|
isTouchMove: !1
|
|
@@ -29039,8 +29039,8 @@ function F2(e, t, n, r) {
|
|
|
29039
29039
|
};
|
|
29040
29040
|
}, [e, n]), i;
|
|
29041
29041
|
}
|
|
29042
|
-
let
|
|
29043
|
-
Ae.NODE_ENV !== "production" && (
|
|
29042
|
+
let $m = () => rn;
|
|
29043
|
+
Ae.NODE_ENV !== "production" && ($m = function() {
|
|
29044
29044
|
const e = De(!0);
|
|
29045
29045
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
29046
29046
|
n[r] = arguments[r];
|
|
@@ -29076,7 +29076,7 @@ function op(e, t, n) {
|
|
|
29076
29076
|
...l
|
|
29077
29077
|
} = n;
|
|
29078
29078
|
Ee(() => {
|
|
29079
|
-
r ||
|
|
29079
|
+
r || O2(() => e({
|
|
29080
29080
|
highlightedIndex: i,
|
|
29081
29081
|
highlightedItem: s[i],
|
|
29082
29082
|
resultCount: s.length,
|
|
@@ -29084,7 +29084,7 @@ function op(e, t, n) {
|
|
|
29084
29084
|
}), o.document);
|
|
29085
29085
|
}, t);
|
|
29086
29086
|
}
|
|
29087
|
-
function
|
|
29087
|
+
function B2(e) {
|
|
29088
29088
|
let {
|
|
29089
29089
|
highlightedIndex: t,
|
|
29090
29090
|
isOpen: n,
|
|
@@ -29094,12 +29094,12 @@ function z2(e) {
|
|
|
29094
29094
|
scrollIntoView: o
|
|
29095
29095
|
} = e;
|
|
29096
29096
|
const l = De(!0);
|
|
29097
|
-
return
|
|
29097
|
+
return P2(() => {
|
|
29098
29098
|
t < 0 || !n || !Object.keys(r.current).length || (l.current === !1 ? l.current = !0 : o(i(t), s));
|
|
29099
29099
|
}, [t]), l;
|
|
29100
29100
|
}
|
|
29101
|
-
let
|
|
29102
|
-
Ae.NODE_ENV !== "production" && (
|
|
29101
|
+
let Wm = rn;
|
|
29102
|
+
Ae.NODE_ENV !== "production" && (Wm = (e) => {
|
|
29103
29103
|
let {
|
|
29104
29104
|
isInitialMount: t,
|
|
29105
29105
|
props: n,
|
|
@@ -29110,7 +29110,7 @@ Ae.NODE_ENV !== "production" && ($m = (e) => {
|
|
|
29110
29110
|
t || (Jl(r, i.current, n), i.current = n);
|
|
29111
29111
|
}, [r, n, t]);
|
|
29112
29112
|
});
|
|
29113
|
-
function
|
|
29113
|
+
function j2(e, t, n) {
|
|
29114
29114
|
const {
|
|
29115
29115
|
type: r,
|
|
29116
29116
|
props: i
|
|
@@ -29182,7 +29182,7 @@ function lp(e) {
|
|
|
29182
29182
|
}
|
|
29183
29183
|
return n;
|
|
29184
29184
|
}
|
|
29185
|
-
var
|
|
29185
|
+
var H2 = {
|
|
29186
29186
|
items: le.array.isRequired,
|
|
29187
29187
|
itemToString: le.func,
|
|
29188
29188
|
getA11yStatusMessage: le.func,
|
|
@@ -29217,16 +29217,16 @@ var j2 = {
|
|
|
29217
29217
|
})
|
|
29218
29218
|
})
|
|
29219
29219
|
};
|
|
29220
|
-
function
|
|
29220
|
+
function $2(e) {
|
|
29221
29221
|
var t = e.isOpen, n = e.resultCount, r = e.previousResultCount;
|
|
29222
29222
|
return t ? n ? n !== r ? "".concat(n, " result").concat(n === 1 ? " is" : "s are", " available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.") : "" : "No results are available." : "";
|
|
29223
29223
|
}
|
|
29224
|
-
var
|
|
29225
|
-
Ae.NODE_ENV !== "production" && (
|
|
29226
|
-
le.checkPropTypes(
|
|
29224
|
+
var W2 = ss(ss({}, Yr), { getA11yStatusMessage: $2 }), Um = rn;
|
|
29225
|
+
Ae.NODE_ENV !== "production" && (Um = function(e, t) {
|
|
29226
|
+
le.checkPropTypes(H2, e, "prop", t.name);
|
|
29227
29227
|
});
|
|
29228
|
-
const Yl = Ae.NODE_ENV !== "production" ? "__menu_keydown_arrow_down__" : 0, Ql = Ae.NODE_ENV !== "production" ? "__menu_keydown_arrow_up__" : 1, Xl = Ae.NODE_ENV !== "production" ? "__menu_keydown_escape__" : 2, Zl = Ae.NODE_ENV !== "production" ? "__menu_keydown_home__" : 3, eu = Ae.NODE_ENV !== "production" ? "__menu_keydown_end__" : 4, tu = Ae.NODE_ENV !== "production" ? "__menu_keydown_enter__" : 5, nu = Ae.NODE_ENV !== "production" ? "__menu_keydown_space_button__" : 6, ru = Ae.NODE_ENV !== "production" ? "__menu_keydown_character__" : 7, As = Ae.NODE_ENV !== "production" ? "__menu_blur__" : 8,
|
|
29229
|
-
var
|
|
29228
|
+
const Yl = Ae.NODE_ENV !== "production" ? "__menu_keydown_arrow_down__" : 0, Ql = Ae.NODE_ENV !== "production" ? "__menu_keydown_arrow_up__" : 1, Xl = Ae.NODE_ENV !== "production" ? "__menu_keydown_escape__" : 2, Zl = Ae.NODE_ENV !== "production" ? "__menu_keydown_home__" : 3, eu = Ae.NODE_ENV !== "production" ? "__menu_keydown_end__" : 4, tu = Ae.NODE_ENV !== "production" ? "__menu_keydown_enter__" : 5, nu = Ae.NODE_ENV !== "production" ? "__menu_keydown_space_button__" : 6, ru = Ae.NODE_ENV !== "production" ? "__menu_keydown_character__" : 7, As = Ae.NODE_ENV !== "production" ? "__menu_blur__" : 8, qm = Ae.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 9, Km = Ae.NODE_ENV !== "production" ? "__item_mouse_move__" : 10, iu = Ae.NODE_ENV !== "production" ? "__item_click__" : 11, Jm = Ae.NODE_ENV !== "production" ? "__togglebutton_click__" : 12, su = Ae.NODE_ENV !== "production" ? "__togglebutton_keydown_arrow_down__" : 13, au = Ae.NODE_ENV !== "production" ? "__togglebutton_keydown_arrow_up__" : 14, ou = Ae.NODE_ENV !== "production" ? "__togglebutton_keydown_character__" : 15, Gm = Ae.NODE_ENV !== "production" ? "__function_toggle_menu__" : 16, Ym = Ae.NODE_ENV !== "production" ? "__function_open_menu__" : 17, Qm = Ae.NODE_ENV !== "production" ? "__function_close_menu__" : 18, Xm = Ae.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 19, lu = Ae.NODE_ENV !== "production" ? "__function_select_item__" : 20, ko = Ae.NODE_ENV !== "production" ? "__function_set_input_value__" : 21, Zm = Ae.NODE_ENV !== "production" ? "__function_reset__" : 22;
|
|
29229
|
+
var ev = /* @__PURE__ */ Object.freeze({
|
|
29230
29230
|
__proto__: null,
|
|
29231
29231
|
MenuKeyDownArrowDown: Yl,
|
|
29232
29232
|
MenuKeyDownArrowUp: Ql,
|
|
@@ -29237,22 +29237,22 @@ var Zm = /* @__PURE__ */ Object.freeze({
|
|
|
29237
29237
|
MenuKeyDownSpaceButton: nu,
|
|
29238
29238
|
MenuKeyDownCharacter: ru,
|
|
29239
29239
|
MenuBlur: As,
|
|
29240
|
-
MenuMouseLeave:
|
|
29241
|
-
ItemMouseMove:
|
|
29240
|
+
MenuMouseLeave: qm,
|
|
29241
|
+
ItemMouseMove: Km,
|
|
29242
29242
|
ItemClick: iu,
|
|
29243
|
-
ToggleButtonClick:
|
|
29243
|
+
ToggleButtonClick: Jm,
|
|
29244
29244
|
ToggleButtonKeyDownArrowDown: su,
|
|
29245
29245
|
ToggleButtonKeyDownArrowUp: au,
|
|
29246
29246
|
ToggleButtonKeyDownCharacter: ou,
|
|
29247
|
-
FunctionToggleMenu:
|
|
29248
|
-
FunctionOpenMenu:
|
|
29249
|
-
FunctionCloseMenu:
|
|
29250
|
-
FunctionSetHighlightedIndex:
|
|
29247
|
+
FunctionToggleMenu: Gm,
|
|
29248
|
+
FunctionOpenMenu: Ym,
|
|
29249
|
+
FunctionCloseMenu: Qm,
|
|
29250
|
+
FunctionSetHighlightedIndex: Xm,
|
|
29251
29251
|
FunctionSelectItem: lu,
|
|
29252
29252
|
FunctionSetInputValue: ko,
|
|
29253
|
-
FunctionReset:
|
|
29253
|
+
FunctionReset: Zm
|
|
29254
29254
|
});
|
|
29255
|
-
function
|
|
29255
|
+
function U2(e, t) {
|
|
29256
29256
|
const {
|
|
29257
29257
|
type: n,
|
|
29258
29258
|
props: r,
|
|
@@ -29361,18 +29361,18 @@ function W2(e, t) {
|
|
|
29361
29361
|
};
|
|
29362
29362
|
break;
|
|
29363
29363
|
default:
|
|
29364
|
-
return
|
|
29364
|
+
return j2(e, t, ev);
|
|
29365
29365
|
}
|
|
29366
29366
|
return {
|
|
29367
29367
|
...e,
|
|
29368
29368
|
...s
|
|
29369
29369
|
};
|
|
29370
29370
|
}
|
|
29371
|
-
uu.stateChangeTypes =
|
|
29371
|
+
uu.stateChangeTypes = ev;
|
|
29372
29372
|
function uu(e) {
|
|
29373
|
-
e === void 0 && (e = {}),
|
|
29373
|
+
e === void 0 && (e = {}), Um(e, uu);
|
|
29374
29374
|
const t = {
|
|
29375
|
-
|
|
29375
|
+
...W2,
|
|
29376
29376
|
...e
|
|
29377
29377
|
}, {
|
|
29378
29378
|
items: n,
|
|
@@ -29383,12 +29383,12 @@ function uu(e) {
|
|
|
29383
29383
|
itemToString: l,
|
|
29384
29384
|
getA11ySelectionMessage: u,
|
|
29385
29385
|
getA11yStatusMessage: c
|
|
29386
|
-
} = t, d =
|
|
29386
|
+
} = t, d = F2(t), [h, g] = M2(U2, d, t), {
|
|
29387
29387
|
isOpen: m,
|
|
29388
29388
|
highlightedIndex: w,
|
|
29389
29389
|
selectedItem: _,
|
|
29390
29390
|
inputValue: y
|
|
29391
|
-
} = h, k = De(null), x = De(null), S = De({}), C = De(!0), v = De(null), f =
|
|
29391
|
+
} = h, k = De(null), x = De(null), S = De({}), C = De(!0), v = De(null), f = D2(t), P = De(), R = De(!0), D = Hm({
|
|
29392
29392
|
state: h,
|
|
29393
29393
|
props: t
|
|
29394
29394
|
}), T = pe((F) => S.current[f.getItemId(F)], [f]);
|
|
@@ -29407,7 +29407,7 @@ function uu(e) {
|
|
|
29407
29407
|
itemToString: l,
|
|
29408
29408
|
...h
|
|
29409
29409
|
});
|
|
29410
|
-
const H =
|
|
29410
|
+
const H = B2({
|
|
29411
29411
|
menuElement: x.current,
|
|
29412
29412
|
highlightedIndex: w,
|
|
29413
29413
|
isOpen: m,
|
|
@@ -29424,7 +29424,7 @@ function uu(e) {
|
|
|
29424
29424
|
v.current.cancel();
|
|
29425
29425
|
}), []), Ee(() => {
|
|
29426
29426
|
y && v.current(g);
|
|
29427
|
-
}, [g, y]),
|
|
29427
|
+
}, [g, y]), Wm({
|
|
29428
29428
|
isInitialMount: R.current,
|
|
29429
29429
|
props: t,
|
|
29430
29430
|
state: h
|
|
@@ -29441,11 +29441,11 @@ function uu(e) {
|
|
|
29441
29441
|
}, [m]), Ee(() => {
|
|
29442
29442
|
R.current || (P.current = n.length);
|
|
29443
29443
|
});
|
|
29444
|
-
const W =
|
|
29444
|
+
const W = z2(m, [x, k], i, () => {
|
|
29445
29445
|
g({
|
|
29446
29446
|
type: As
|
|
29447
29447
|
});
|
|
29448
|
-
}), K =
|
|
29448
|
+
}), K = $m("getMenuProps", "getToggleButtonProps");
|
|
29449
29449
|
Ee(() => {
|
|
29450
29450
|
R.current = !1;
|
|
29451
29451
|
}, []), Ee(() => {
|
|
@@ -29510,19 +29510,19 @@ function uu(e) {
|
|
|
29510
29510
|
}
|
|
29511
29511
|
}), [g, T]), X = pe(() => {
|
|
29512
29512
|
g({
|
|
29513
|
-
type:
|
|
29513
|
+
type: Gm
|
|
29514
29514
|
});
|
|
29515
29515
|
}, [g]), U = pe(() => {
|
|
29516
29516
|
g({
|
|
29517
|
-
type:
|
|
29517
|
+
type: Qm
|
|
29518
29518
|
});
|
|
29519
29519
|
}, [g]), q = pe(() => {
|
|
29520
29520
|
g({
|
|
29521
|
-
type:
|
|
29521
|
+
type: Ym
|
|
29522
29522
|
});
|
|
29523
29523
|
}, [g]), re = pe((F) => {
|
|
29524
29524
|
g({
|
|
29525
|
-
type:
|
|
29525
|
+
type: Xm,
|
|
29526
29526
|
highlightedIndex: F
|
|
29527
29527
|
});
|
|
29528
29528
|
}, [g]), I = pe((F) => {
|
|
@@ -29532,7 +29532,7 @@ function uu(e) {
|
|
|
29532
29532
|
});
|
|
29533
29533
|
}, [g]), L = pe(() => {
|
|
29534
29534
|
g({
|
|
29535
|
-
type:
|
|
29535
|
+
type: Zm
|
|
29536
29536
|
});
|
|
29537
29537
|
}, [g]), j = pe((F) => {
|
|
29538
29538
|
g({
|
|
@@ -29571,7 +29571,7 @@ function uu(e) {
|
|
|
29571
29571
|
});
|
|
29572
29572
|
}, Oe = () => {
|
|
29573
29573
|
g({
|
|
29574
|
-
type:
|
|
29574
|
+
type: qm
|
|
29575
29575
|
});
|
|
29576
29576
|
};
|
|
29577
29577
|
return K("getMenuProps", Ie, te, x), {
|
|
@@ -29602,7 +29602,7 @@ function uu(e) {
|
|
|
29602
29602
|
} = ee === void 0 ? {} : ee;
|
|
29603
29603
|
const Ie = () => {
|
|
29604
29604
|
g({
|
|
29605
|
-
type:
|
|
29605
|
+
type: Jm
|
|
29606
29606
|
});
|
|
29607
29607
|
}, Ce = (Me) => {
|
|
29608
29608
|
const Oe = Is(Me);
|
|
@@ -29638,7 +29638,7 @@ function uu(e) {
|
|
|
29638
29638
|
props: Re
|
|
29639
29639
|
} = D.current, Me = () => {
|
|
29640
29640
|
Z !== Ce.highlightedIndex && (H.current = !1, g({
|
|
29641
|
-
type:
|
|
29641
|
+
type: Km,
|
|
29642
29642
|
index: Z,
|
|
29643
29643
|
disabled: ue
|
|
29644
29644
|
}));
|
|
@@ -29647,7 +29647,7 @@ function uu(e) {
|
|
|
29647
29647
|
type: iu,
|
|
29648
29648
|
index: Z
|
|
29649
29649
|
});
|
|
29650
|
-
}, Ne =
|
|
29650
|
+
}, Ne = R2(Z, ee, Re.items);
|
|
29651
29651
|
if (Ne < 0)
|
|
29652
29652
|
throw new Error("Pass either item or item index in getItemProps!");
|
|
29653
29653
|
const Je = {
|
|
@@ -29714,7 +29714,7 @@ const up = [
|
|
|
29714
29714
|
label: "csv",
|
|
29715
29715
|
value: "csv"
|
|
29716
29716
|
}
|
|
29717
|
-
],
|
|
29717
|
+
], q2 = ({ onSelect: e }) => {
|
|
29718
29718
|
const {
|
|
29719
29719
|
isOpen: t,
|
|
29720
29720
|
selectedItem: n,
|
|
@@ -29768,7 +29768,7 @@ const up = [
|
|
|
29768
29768
|
}
|
|
29769
29769
|
)
|
|
29770
29770
|
] });
|
|
29771
|
-
},
|
|
29771
|
+
}, K2 = ({ enable: e, onSelect: t }) => {
|
|
29772
29772
|
const { state: n, actions: r } = un({
|
|
29773
29773
|
delimiters: [
|
|
29774
29774
|
{ label: "Comma", value: "," },
|
|
@@ -29790,9 +29790,9 @@ const up = [
|
|
|
29790
29790
|
}
|
|
29791
29791
|
)
|
|
29792
29792
|
] }) : /* @__PURE__ */ V(zt, {});
|
|
29793
|
-
},
|
|
29793
|
+
}, J2 = {
|
|
29794
29794
|
SELECT_FILE_TYPE: "Please Select a File Format !"
|
|
29795
|
-
},
|
|
29795
|
+
}, G2 = ({ toExport: e }) => {
|
|
29796
29796
|
var X;
|
|
29797
29797
|
const [t, n] = vt(), r = rr(), i = r.getWebformTabs(), s = De(null), o = De([]), l = De([]), { i18n: u } = Ir(), c = ((X = r.getUserComponents) == null ? void 0 : X.call(r)) ?? {}, d = r.buildResolver ?? {}, [h, g] = vt(!1), [m] = vt(!0), {
|
|
29798
29798
|
state: { isOpen: w, fileType: _, error: y, csvDelimier: k },
|
|
@@ -30087,15 +30087,15 @@ const up = [
|
|
|
30087
30087
|
children: /* @__PURE__ */ V(Tv, { className: "h-4 w-4" })
|
|
30088
30088
|
}
|
|
30089
30089
|
) }),
|
|
30090
|
-
/* @__PURE__ */ ve(
|
|
30090
|
+
/* @__PURE__ */ ve(xm, { isOpen: w, onClose: v, title: "Export", children: [
|
|
30091
30091
|
/* @__PURE__ */ V("div", { className: "mt-4", children: /* @__PURE__ */ V(
|
|
30092
|
-
|
|
30092
|
+
q2,
|
|
30093
30093
|
{
|
|
30094
30094
|
onSelect: (U) => x.setFileType(U)
|
|
30095
30095
|
}
|
|
30096
30096
|
) }),
|
|
30097
30097
|
/* @__PURE__ */ V(
|
|
30098
|
-
|
|
30098
|
+
K2,
|
|
30099
30099
|
{
|
|
30100
30100
|
enable: _ === "csv",
|
|
30101
30101
|
onSelect: G
|
|
@@ -30128,7 +30128,7 @@ const up = [
|
|
|
30128
30128
|
"button",
|
|
30129
30129
|
{
|
|
30130
30130
|
onClick: () => {
|
|
30131
|
-
_ ? (x.setIsOpen(!1), Y()) : x.setError(
|
|
30131
|
+
_ ? (x.setIsOpen(!1), Y()) : x.setError(J2.SELECT_FILE_TYPE);
|
|
30132
30132
|
},
|
|
30133
30133
|
className: "rounded w-16 px-2 py-1 text-xs font-medium text-grey-50 bg-primary-dark hover:border-white hover:border hover:bg-primary-hover hover:text-white hover:font-bold",
|
|
30134
30134
|
children: "Export"
|
|
@@ -30139,7 +30139,7 @@ const up = [
|
|
|
30139
30139
|
y && /* @__PURE__ */ V("div", { className: "flex items-center justify-center p-2", children: /* @__PURE__ */ V("span", { className: "text-sm text-red-500", children: y }) })
|
|
30140
30140
|
] })
|
|
30141
30141
|
] });
|
|
30142
|
-
},
|
|
30142
|
+
}, Y2 = ({ onClick: e }) => /* @__PURE__ */ V(Pt, { label: "Edit", children: /* @__PURE__ */ V(
|
|
30143
30143
|
Ft,
|
|
30144
30144
|
{
|
|
30145
30145
|
color: "white",
|
|
@@ -30149,7 +30149,7 @@ const up = [
|
|
|
30149
30149
|
},
|
|
30150
30150
|
children: /* @__PURE__ */ V(pp, {})
|
|
30151
30151
|
}
|
|
30152
|
-
) }),
|
|
30152
|
+
) }), Q2 = ({ onClick: e, disable: t }) => t ? /* @__PURE__ */ V(zt, {}) : /* @__PURE__ */ V(Pt, { label: "Remove", children: /* @__PURE__ */ V(
|
|
30153
30153
|
Ft,
|
|
30154
30154
|
{
|
|
30155
30155
|
color: "white",
|
|
@@ -30160,7 +30160,7 @@ const up = [
|
|
|
30160
30160
|
},
|
|
30161
30161
|
children: /* @__PURE__ */ V(dp, {})
|
|
30162
30162
|
}
|
|
30163
|
-
) }),
|
|
30163
|
+
) }), X2 = ({ collapse: e, onClick: t }) => /* @__PURE__ */ V(Pt, { label: "Collapse", children: /* @__PURE__ */ V(
|
|
30164
30164
|
Ft,
|
|
30165
30165
|
{
|
|
30166
30166
|
color: "white",
|
|
@@ -30177,7 +30177,7 @@ const up = [
|
|
|
30177
30177
|
}
|
|
30178
30178
|
)
|
|
30179
30179
|
}
|
|
30180
|
-
) }),
|
|
30180
|
+
) }), Z2 = ({
|
|
30181
30181
|
lang: e,
|
|
30182
30182
|
onCancel: t,
|
|
30183
30183
|
onConfirm: n
|
|
@@ -30202,7 +30202,7 @@ const up = [
|
|
|
30202
30202
|
editing: !1,
|
|
30203
30203
|
selectedLanguage: null,
|
|
30204
30204
|
highlightedLanguageIndex: -1
|
|
30205
|
-
}), d =
|
|
30205
|
+
}), d = Mv(() => {
|
|
30206
30206
|
u && n(u);
|
|
30207
30207
|
}), h = () => {
|
|
30208
30208
|
t();
|
|
@@ -30262,10 +30262,10 @@ const up = [
|
|
|
30262
30262
|
]
|
|
30263
30263
|
}
|
|
30264
30264
|
);
|
|
30265
|
-
},
|
|
30265
|
+
}, tv = ({
|
|
30266
30266
|
activate: e,
|
|
30267
30267
|
...t
|
|
30268
|
-
}) => e ? /* @__PURE__ */ V(
|
|
30268
|
+
}) => e ? /* @__PURE__ */ V(Z2, { ...t }) : /* @__PURE__ */ V(zt, {}), eA = ({
|
|
30269
30269
|
primary: e,
|
|
30270
30270
|
selected: t,
|
|
30271
30271
|
selectMode: n,
|
|
@@ -30308,7 +30308,7 @@ const up = [
|
|
|
30308
30308
|
}, [t]), Ee(() => {
|
|
30309
30309
|
C && y(r);
|
|
30310
30310
|
}, []), d ? /* @__PURE__ */ V(
|
|
30311
|
-
|
|
30311
|
+
tv,
|
|
30312
30312
|
{
|
|
30313
30313
|
lang: r,
|
|
30314
30314
|
activate: d,
|
|
@@ -30350,10 +30350,10 @@ const up = [
|
|
|
30350
30350
|
] }),
|
|
30351
30351
|
/* @__PURE__ */ ve("div", { className: "flex flex-row items-center space-x-1", children: [
|
|
30352
30352
|
C && /* @__PURE__ */ V("div", { className: "bg-primary-dark rounded p-0.5 text-xs text-center shrink-0 h-5 w-12", children: "Primary" }),
|
|
30353
|
-
/* @__PURE__ */ V(
|
|
30354
|
-
/* @__PURE__ */ V(
|
|
30353
|
+
/* @__PURE__ */ V(Y2, { onClick: R }),
|
|
30354
|
+
/* @__PURE__ */ V(Q2, { disable: C, onClick: D }),
|
|
30355
30355
|
/* @__PURE__ */ V(
|
|
30356
|
-
|
|
30356
|
+
X2,
|
|
30357
30357
|
{
|
|
30358
30358
|
collapse: c,
|
|
30359
30359
|
onClick: () => m(!c)
|
|
@@ -30388,7 +30388,7 @@ const up = [
|
|
|
30388
30388
|
]
|
|
30389
30389
|
}
|
|
30390
30390
|
);
|
|
30391
|
-
},
|
|
30391
|
+
}, tA = () => {
|
|
30392
30392
|
const {
|
|
30393
30393
|
state: { selectedLanguages: e, shouldAddNewLocal: t, selectAll: n },
|
|
30394
30394
|
actions: r
|
|
@@ -30510,7 +30510,7 @@ const up = [
|
|
|
30510
30510
|
color: "white",
|
|
30511
30511
|
variant: "ghost",
|
|
30512
30512
|
onClick: () => {
|
|
30513
|
-
t ?
|
|
30513
|
+
t ? Fv.next({
|
|
30514
30514
|
kind: "warning",
|
|
30515
30515
|
message: "To add a new locale, please confirm your selection by clicking 'Confirm'"
|
|
30516
30516
|
}) : S(!0);
|
|
@@ -30535,12 +30535,12 @@ const up = [
|
|
|
30535
30535
|
}
|
|
30536
30536
|
),
|
|
30537
30537
|
/* @__PURE__ */ ve("div", { className: "flex flex-row items-center justify-center space-x-1", children: [
|
|
30538
|
-
/* @__PURE__ */ V(
|
|
30539
|
-
/* @__PURE__ */ V(
|
|
30538
|
+
/* @__PURE__ */ V(G2, { enable: !0, disable: !1, toExport: e }),
|
|
30539
|
+
/* @__PURE__ */ V(s2, { enable: !0, disable: !1 })
|
|
30540
30540
|
] })
|
|
30541
30541
|
] }),
|
|
30542
30542
|
/* @__PURE__ */ V(
|
|
30543
|
-
|
|
30543
|
+
tv,
|
|
30544
30544
|
{
|
|
30545
30545
|
activate: t,
|
|
30546
30546
|
onConfirm: v,
|
|
@@ -30559,7 +30559,7 @@ const up = [
|
|
|
30559
30559
|
d
|
|
30560
30560
|
);
|
|
30561
30561
|
return /* @__PURE__ */ V(
|
|
30562
|
-
|
|
30562
|
+
eA,
|
|
30563
30563
|
{
|
|
30564
30564
|
primary: s,
|
|
30565
30565
|
selected: n || e.includes(
|
|
@@ -30577,7 +30577,7 @@ const up = [
|
|
|
30577
30577
|
}
|
|
30578
30578
|
)
|
|
30579
30579
|
] });
|
|
30580
|
-
},
|
|
30580
|
+
}, nA = ({ onAddLocal: e }) => /* @__PURE__ */ ve(
|
|
30581
30581
|
Nr,
|
|
30582
30582
|
{
|
|
30583
30583
|
depth: 1,
|
|
@@ -30591,12 +30591,12 @@ const up = [
|
|
|
30591
30591
|
] })
|
|
30592
30592
|
]
|
|
30593
30593
|
}
|
|
30594
|
-
),
|
|
30594
|
+
), rA = () => {
|
|
30595
30595
|
var o;
|
|
30596
30596
|
const { userLanguages: e, addFirstLanguage: t, setAddFirstLanguage: n } = Er(), i = (((o = e.supported) == null ? void 0 : o.length) ?? 0) === 0 && !t, s = () => {
|
|
30597
30597
|
n(!0);
|
|
30598
30598
|
};
|
|
30599
|
-
return i ? /* @__PURE__ */ V(
|
|
30599
|
+
return i ? /* @__PURE__ */ V(nA, { onAddLocal: s }) : /* @__PURE__ */ ve(
|
|
30600
30600
|
Nr,
|
|
30601
30601
|
{
|
|
30602
30602
|
depth: 1,
|
|
@@ -30604,12 +30604,12 @@ const up = [
|
|
|
30604
30604
|
"justify-center items-center": i
|
|
30605
30605
|
}),
|
|
30606
30606
|
children: [
|
|
30607
|
-
/* @__PURE__ */ V(
|
|
30607
|
+
/* @__PURE__ */ V(tA, {}),
|
|
30608
30608
|
/* @__PURE__ */ V(Bw, {})
|
|
30609
30609
|
]
|
|
30610
30610
|
}
|
|
30611
30611
|
);
|
|
30612
|
-
},
|
|
30612
|
+
}, iA = () => /* @__PURE__ */ V(F0, { children: /* @__PURE__ */ V(rA, {}) }), sA = () => {
|
|
30613
30613
|
const { modals: e, closeModal: t, editModal: n } = D0();
|
|
30614
30614
|
return /* @__PURE__ */ V(zt, { children: e.map((r, i) => /* @__PURE__ */ V(
|
|
30615
30615
|
zv,
|
|
@@ -30618,11 +30618,11 @@ const up = [
|
|
|
30618
30618
|
...r,
|
|
30619
30619
|
onClose: t,
|
|
30620
30620
|
onEdit: n,
|
|
30621
|
-
container:
|
|
30621
|
+
container: vm()
|
|
30622
30622
|
},
|
|
30623
30623
|
r.id
|
|
30624
30624
|
)) });
|
|
30625
|
-
},
|
|
30625
|
+
}, aA = ({
|
|
30626
30626
|
onTabsChange: e,
|
|
30627
30627
|
onI18nCurrentChange: t
|
|
30628
30628
|
}) => {
|
|
@@ -30636,12 +30636,12 @@ const up = [
|
|
|
30636
30636
|
"div",
|
|
30637
30637
|
{
|
|
30638
30638
|
className: `relative h-screen z-10 overflow-hidden ${Sp}`,
|
|
30639
|
-
children: /* @__PURE__ */ V(
|
|
30639
|
+
children: /* @__PURE__ */ V(iA, {})
|
|
30640
30640
|
}
|
|
30641
30641
|
),
|
|
30642
|
-
/* @__PURE__ */ V(
|
|
30642
|
+
/* @__PURE__ */ V(sA, {})
|
|
30643
30643
|
] });
|
|
30644
|
-
},
|
|
30644
|
+
}, oA = ({
|
|
30645
30645
|
userComponents: e,
|
|
30646
30646
|
buildResolver: t,
|
|
30647
30647
|
supportedLanguages: n,
|
|
@@ -30649,27 +30649,27 @@ const up = [
|
|
|
30649
30649
|
}) => {
|
|
30650
30650
|
const i = P0(e, t, n);
|
|
30651
30651
|
return /* @__PURE__ */ V(C0, { adapter: i, children: /* @__PURE__ */ V(E0, { isI18nEnabled: !0, onI18nChange: () => {
|
|
30652
|
-
}, children: /* @__PURE__ */ V(R0, { children: /* @__PURE__ */ V(Bv, { children: /* @__PURE__ */ V(
|
|
30652
|
+
}, children: /* @__PURE__ */ V(R0, { children: /* @__PURE__ */ V(Bv, { children: /* @__PURE__ */ V(aA, { ...r }) }) }) }) });
|
|
30653
30653
|
}, IA = ({
|
|
30654
30654
|
tabs: e = [],
|
|
30655
30655
|
i18nCurrent: t = "",
|
|
30656
30656
|
...n
|
|
30657
|
-
}) => /* @__PURE__ */ V(O0, { tabs: e, i18nCurrent: t, children: /* @__PURE__ */ V(
|
|
30657
|
+
}) => /* @__PURE__ */ V(O0, { tabs: e, i18nCurrent: t, children: /* @__PURE__ */ V(oA, { ...n }) });
|
|
30658
30658
|
export {
|
|
30659
30659
|
C0 as EditorStateAdapterProvider,
|
|
30660
30660
|
Ro as EditorStateContext,
|
|
30661
|
-
|
|
30661
|
+
_A as I18N_ACTIONS,
|
|
30662
30662
|
I0 as I18N_CONSTANT,
|
|
30663
30663
|
E0 as I18nProvider,
|
|
30664
30664
|
Sp as LOCALIZATION_EDITOR_SCOPE_CLASS,
|
|
30665
|
-
|
|
30665
|
+
iA as LocalizationEditor,
|
|
30666
30666
|
F0 as LocalizationEditorProvider,
|
|
30667
30667
|
R0 as LocalizationProvider,
|
|
30668
|
-
|
|
30668
|
+
i2 as Portal,
|
|
30669
30669
|
O0 as ReducerAdapterProvider,
|
|
30670
30670
|
IA as Standalone,
|
|
30671
|
-
|
|
30672
|
-
|
|
30671
|
+
iA as default,
|
|
30672
|
+
vm as getDefaultContainer,
|
|
30673
30673
|
N0 as getDefaultInitialState,
|
|
30674
30674
|
so as getLanguageDetails,
|
|
30675
30675
|
T0 as localizationReducer,
|
|
@@ -30679,6 +30679,6 @@ export {
|
|
|
30679
30679
|
Er as useLocalizationEditor,
|
|
30680
30680
|
D0 as useModals,
|
|
30681
30681
|
P0 as useReducerAdapter,
|
|
30682
|
-
|
|
30682
|
+
SA as useReduxAdapter
|
|
30683
30683
|
};
|
|
30684
30684
|
//# sourceMappingURL=index.es.js.map
|