easea-app-widget 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/widget.d.ts +0 -2
- package/dist/widget.es.js +177 -180
- package/dist/widget.iife.js +65 -65
- package/dist/widget.umd.js +79 -79
- package/package.json +1 -1
package/dist/widget.es.js
CHANGED
|
@@ -14256,14 +14256,14 @@ const XR = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], $R =
|
|
|
14256
14256
|
* This source code is licensed under the ISC license.
|
|
14257
14257
|
* See the LICENSE file in the root directory of this source tree.
|
|
14258
14258
|
*/
|
|
14259
|
-
const JR = [["path", { d: "M5 12h14", key: "1ays0h" }]],
|
|
14259
|
+
const JR = [["path", { d: "M5 12h14", key: "1ays0h" }]], e6 = ca("minus", JR);
|
|
14260
14260
|
/**
|
|
14261
14261
|
* @license lucide-react v0.544.0 - ISC
|
|
14262
14262
|
*
|
|
14263
14263
|
* This source code is licensed under the ISC license.
|
|
14264
14264
|
* See the LICENSE file in the root directory of this source tree.
|
|
14265
14265
|
*/
|
|
14266
|
-
const
|
|
14266
|
+
const t6 = [
|
|
14267
14267
|
[
|
|
14268
14268
|
"path",
|
|
14269
14269
|
{
|
|
@@ -14272,29 +14272,29 @@ const t4 = [
|
|
|
14272
14272
|
}
|
|
14273
14273
|
],
|
|
14274
14274
|
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
14275
|
-
], SA = ca("pencil",
|
|
14275
|
+
], SA = ca("pencil", t6);
|
|
14276
14276
|
/**
|
|
14277
14277
|
* @license lucide-react v0.544.0 - ISC
|
|
14278
14278
|
*
|
|
14279
14279
|
* This source code is licensed under the ISC license.
|
|
14280
14280
|
* See the LICENSE file in the root directory of this source tree.
|
|
14281
14281
|
*/
|
|
14282
|
-
const
|
|
14282
|
+
const n6 = [
|
|
14283
14283
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
14284
14284
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
14285
|
-
],
|
|
14285
|
+
], r6 = ca("plus", n6);
|
|
14286
14286
|
/**
|
|
14287
14287
|
* @license lucide-react v0.544.0 - ISC
|
|
14288
14288
|
*
|
|
14289
14289
|
* This source code is licensed under the ISC license.
|
|
14290
14290
|
* See the LICENSE file in the root directory of this source tree.
|
|
14291
14291
|
*/
|
|
14292
|
-
const
|
|
14292
|
+
const i6 = [
|
|
14293
14293
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
14294
14294
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
14295
|
-
], Ok = ca("x",
|
|
14295
|
+
], Ok = ca("x", i6);
|
|
14296
14296
|
var K0, AA;
|
|
14297
|
-
function
|
|
14297
|
+
function a6() {
|
|
14298
14298
|
return AA || (AA = 1, K0 = {
|
|
14299
14299
|
area: !0,
|
|
14300
14300
|
base: !0,
|
|
@@ -14312,22 +14312,22 @@ function a4() {
|
|
|
14312
14312
|
wbr: !0
|
|
14313
14313
|
}), K0;
|
|
14314
14314
|
}
|
|
14315
|
-
var
|
|
14316
|
-
const
|
|
14317
|
-
var
|
|
14315
|
+
var o6 = a6();
|
|
14316
|
+
const s6 = /* @__PURE__ */ xx(o6);
|
|
14317
|
+
var l6 = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
|
|
14318
14318
|
function OA(e) {
|
|
14319
14319
|
var t = { type: "tag", name: "", voidElement: !1, attrs: {}, children: [] }, n = e.match(/<\/?([^\s]+?)[/\s>]/);
|
|
14320
|
-
if (n && (t.name = n[1], (
|
|
14320
|
+
if (n && (t.name = n[1], (s6[n[1]] || e.charAt(e.length - 2) === "/") && (t.voidElement = !0), t.name.startsWith("!--"))) {
|
|
14321
14321
|
var i = e.indexOf("-->");
|
|
14322
14322
|
return { type: "comment", comment: i !== -1 ? e.slice(4, i) : "" };
|
|
14323
14323
|
}
|
|
14324
|
-
for (var r = new RegExp(
|
|
14324
|
+
for (var r = new RegExp(l6), s = null; (s = r.exec(e)) !== null; ) if (s[0].trim()) if (s[1]) {
|
|
14325
14325
|
var c = s[1].trim(), h = [c, ""];
|
|
14326
14326
|
c.indexOf("=") > -1 && (h = c.split("=")), t.attrs[h[0]] = h[1], r.lastIndex--;
|
|
14327
14327
|
} else s[2] && (t.attrs[s[2]] = s[3].trim().substring(1, s[3].length - 1));
|
|
14328
14328
|
return t;
|
|
14329
14329
|
}
|
|
14330
|
-
var
|
|
14330
|
+
var u6 = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, c6 = /^\s*$/, f6 = /* @__PURE__ */ Object.create(null);
|
|
14331
14331
|
function Nk(e, t) {
|
|
14332
14332
|
switch (t.type) {
|
|
14333
14333
|
case "text":
|
|
@@ -14342,14 +14342,14 @@ function Nk(e, t) {
|
|
|
14342
14342
|
return e + "<!--" + t.comment + "-->";
|
|
14343
14343
|
}
|
|
14344
14344
|
}
|
|
14345
|
-
var
|
|
14346
|
-
t || (t = {}), t.components || (t.components =
|
|
14345
|
+
var d6 = { parse: function(e, t) {
|
|
14346
|
+
t || (t = {}), t.components || (t.components = f6);
|
|
14347
14347
|
var n, i = [], r = [], s = -1, c = !1;
|
|
14348
14348
|
if (e.indexOf("<") !== 0) {
|
|
14349
14349
|
var h = e.indexOf("<");
|
|
14350
14350
|
i.push({ type: "text", content: h === -1 ? e : e.substring(0, h) });
|
|
14351
14351
|
}
|
|
14352
|
-
return e.replace(
|
|
14352
|
+
return e.replace(u6, function(m, v) {
|
|
14353
14353
|
if (c) {
|
|
14354
14354
|
if (m !== "</" + n.name + ">") return;
|
|
14355
14355
|
c = !1;
|
|
@@ -14362,7 +14362,7 @@ var d4 = { parse: function(e, t) {
|
|
|
14362
14362
|
if (w && (s++, (n = OA(m)).type === "tag" && t.components[n.name] && (n.type = "component", c = !0), n.voidElement || c || !A || A === "<" || n.children.push({ type: "text", content: e.slice(N, e.indexOf("<", N)) }), s === 0 && i.push(n), (b = r[s - 1]) && b.children.push(n), r[s] = n), (!w || n.voidElement) && (s > -1 && (n.voidElement || n.name === m.slice(2, -1)) && (s--, n = s === -1 ? i : r[s]), !c && A !== "<" && A)) {
|
|
14363
14363
|
b = s === -1 ? i : r[s].children;
|
|
14364
14364
|
var T = e.indexOf("<", N), M = e.slice(N, T === -1 ? void 0 : T);
|
|
14365
|
-
|
|
14365
|
+
c6.test(M) && (M = " "), (T > -1 && s + b.length >= 0 || M !== " ") && b.push({ type: "text", content: M });
|
|
14366
14366
|
}
|
|
14367
14367
|
}), i;
|
|
14368
14368
|
}, stringify: function(e) {
|
|
@@ -14398,14 +14398,14 @@ const dy = (e, t, n, i) => {
|
|
|
14398
14398
|
n.forEach((r) => {
|
|
14399
14399
|
e.options.ns.indexOf(r) < 0 && e.options.ns.push(r);
|
|
14400
14400
|
}), e.loadLanguages(t, kk(e, i));
|
|
14401
|
-
},
|
|
14401
|
+
}, h6 = (e, t, n = {}) => !t.languages || !t.languages.length ? (Yp(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
|
|
14402
14402
|
languages: t.languages
|
|
14403
14403
|
}), !0) : t.hasLoadedNamespace(e, {
|
|
14404
14404
|
lng: n.lng,
|
|
14405
14405
|
precheck: (i, r) => {
|
|
14406
14406
|
if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && i.services.backendConnector.backend && i.isLanguageChangingTo && !r(i.isLanguageChangingTo, e)) return !1;
|
|
14407
14407
|
}
|
|
14408
|
-
}), ua = (e) => typeof e == "string", Al = (e) => typeof e == "object" && e !== null,
|
|
14408
|
+
}), ua = (e) => typeof e == "string", Al = (e) => typeof e == "object" && e !== null, p6 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, m6 = {
|
|
14409
14409
|
"&": "&",
|
|
14410
14410
|
"&": "&",
|
|
14411
14411
|
"<": "<",
|
|
@@ -14426,7 +14426,7 @@ const dy = (e, t, n, i) => {
|
|
|
14426
14426
|
"…": "…",
|
|
14427
14427
|
"/": "/",
|
|
14428
14428
|
"/": "/"
|
|
14429
|
-
},
|
|
14429
|
+
}, g6 = (e) => m6[e], v6 = (e) => e.replace(p6, g6);
|
|
14430
14430
|
let jw = {
|
|
14431
14431
|
bindI18n: "languageChanged",
|
|
14432
14432
|
bindI18nStore: "",
|
|
@@ -14435,16 +14435,16 @@ let jw = {
|
|
|
14435
14435
|
transWrapTextNodes: "",
|
|
14436
14436
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
14437
14437
|
useSuspense: !0,
|
|
14438
|
-
unescape:
|
|
14438
|
+
unescape: v6
|
|
14439
14439
|
};
|
|
14440
|
-
const
|
|
14440
|
+
const y6 = (e = {}) => {
|
|
14441
14441
|
jw = {
|
|
14442
14442
|
...jw,
|
|
14443
14443
|
...e
|
|
14444
14444
|
};
|
|
14445
14445
|
}, Ek = () => jw;
|
|
14446
14446
|
let Dk;
|
|
14447
|
-
const
|
|
14447
|
+
const b6 = (e) => {
|
|
14448
14448
|
Dk = e;
|
|
14449
14449
|
}, Ox = () => Dk, X0 = (e, t) => {
|
|
14450
14450
|
if (!e) return !1;
|
|
@@ -14454,7 +14454,7 @@ const b4 = (e) => {
|
|
|
14454
14454
|
if (!e) return [];
|
|
14455
14455
|
const t = e.props?.children ?? e.children;
|
|
14456
14456
|
return e.props?.i18nIsDynamicList ? ld(t) : t;
|
|
14457
|
-
},
|
|
14457
|
+
}, w6 = (e) => Array.isArray(e) && e.every(C.isValidElement), ld = (e) => Array.isArray(e) ? e : [e], x6 = (e, t) => {
|
|
14458
14458
|
const n = {
|
|
14459
14459
|
...t
|
|
14460
14460
|
};
|
|
@@ -14516,7 +14516,7 @@ const b4 = (e) => {
|
|
|
14516
14516
|
child: h
|
|
14517
14517
|
});
|
|
14518
14518
|
}), r;
|
|
14519
|
-
},
|
|
14519
|
+
}, S6 = (e, t, n, i, r, s, c) => {
|
|
14520
14520
|
if (n === "") return [];
|
|
14521
14521
|
const h = r.transKeepBasicHtmlNodesFor || [], m = n && new RegExp(h.map((M) => `<${M}`).join("|")).test(n);
|
|
14522
14522
|
if (!e && !t && !m && !c) return [n];
|
|
@@ -14526,12 +14526,12 @@ const b4 = (e) => {
|
|
|
14526
14526
|
});
|
|
14527
14527
|
};
|
|
14528
14528
|
b(e);
|
|
14529
|
-
const w =
|
|
14529
|
+
const w = d6.parse(`<0>${n}</0>`), S = {
|
|
14530
14530
|
...v,
|
|
14531
14531
|
...s
|
|
14532
14532
|
}, N = (M, I, j) => {
|
|
14533
14533
|
const H = $0(M), L = O(H, I.children, j);
|
|
14534
|
-
return
|
|
14534
|
+
return w6(H) && L.length === 0 || M.props?.i18nIsDynamicList ? H : L;
|
|
14535
14535
|
}, A = (M, I, j, H, L) => {
|
|
14536
14536
|
M.dummy ? (M.children = I, j.push(C.cloneElement(M, {
|
|
14537
14537
|
key: H
|
|
@@ -14552,7 +14552,7 @@ const b4 = (e) => {
|
|
|
14552
14552
|
if (U.type === "tag") {
|
|
14553
14553
|
let Y = H[parseInt(U.name, 10)];
|
|
14554
14554
|
!Y && t && (Y = t[U.name]), j.length === 1 && !Y && (Y = j[0][U.name]), Y || (Y = {});
|
|
14555
|
-
const J = Object.keys(U.attrs).length !== 0 ?
|
|
14555
|
+
const J = Object.keys(U.attrs).length !== 0 ? x6({
|
|
14556
14556
|
props: U.attrs
|
|
14557
14557
|
}, Y) : Y, re = C.isValidElement(J), F = re && X0(U, !0) && !U.voidElement, V = m && Al(J) && J.dummy && !re, te = Al(t) && Object.hasOwnProperty.call(t, U.name);
|
|
14558
14558
|
if (ua(J)) {
|
|
@@ -14615,17 +14615,17 @@ const b4 = (e) => {
|
|
|
14615
14615
|
return C.createElement(s, {
|
|
14616
14616
|
key: i
|
|
14617
14617
|
});
|
|
14618
|
-
},
|
|
14618
|
+
}, A6 = (e, t) => e.map((n, i) => _k(n, i, t)), O6 = (e, t) => {
|
|
14619
14619
|
const n = {};
|
|
14620
14620
|
return Object.keys(e).forEach((i) => {
|
|
14621
14621
|
Object.assign(n, {
|
|
14622
14622
|
[i]: _k(e[i], i, t)
|
|
14623
14623
|
});
|
|
14624
14624
|
}), n;
|
|
14625
|
-
},
|
|
14625
|
+
}, N6 = (e, t, n, i) => e ? Array.isArray(e) ? A6(e, t) : Al(e) ? O6(e, t) : (Yp(n, "TRANS_INVALID_COMPONENTS", '<Trans /> "components" prop expects an object or array', {
|
|
14626
14626
|
i18nKey: i
|
|
14627
|
-
}), null) : null,
|
|
14628
|
-
function
|
|
14627
|
+
}), null) : null, k6 = (e) => !Al(e) || Array.isArray(e) ? !1 : Object.keys(e).reduce((t, n) => t && Number.isNaN(Number.parseFloat(n)), !0);
|
|
14628
|
+
function E6({
|
|
14629
14629
|
children: e,
|
|
14630
14630
|
count: t,
|
|
14631
14631
|
parent: n,
|
|
@@ -14675,19 +14675,19 @@ function E4({
|
|
|
14675
14675
|
...K,
|
|
14676
14676
|
defaultValue: j,
|
|
14677
14677
|
ns: M
|
|
14678
|
-
}, Q = L ? O(L, U) : j, ne =
|
|
14678
|
+
}, Q = L ? O(L, U) : j, ne = N6(m, Q, A, i);
|
|
14679
14679
|
let Y = ne || e, J = null;
|
|
14680
|
-
|
|
14681
|
-
const re =
|
|
14680
|
+
k6(ne) && (J = ne, Y = e);
|
|
14681
|
+
const re = S6(Y, J, Q, A, T, U, S), F = n ?? T.defaultTransParent;
|
|
14682
14682
|
return F ? C.createElement(F, N, re) : re;
|
|
14683
14683
|
}
|
|
14684
|
-
const
|
|
14684
|
+
const D6 = {
|
|
14685
14685
|
type: "3rdParty",
|
|
14686
14686
|
init(e) {
|
|
14687
|
-
|
|
14687
|
+
y6(e.options.react), b6(e);
|
|
14688
14688
|
}
|
|
14689
14689
|
}, Ck = C.createContext();
|
|
14690
|
-
class
|
|
14690
|
+
class T6 {
|
|
14691
14691
|
constructor() {
|
|
14692
14692
|
this.usedNamespaces = {};
|
|
14693
14693
|
}
|
|
@@ -14720,7 +14720,7 @@ function EA({
|
|
|
14720
14720
|
i18n: A,
|
|
14721
14721
|
defaultNS: O
|
|
14722
14722
|
} = C.useContext(Ck) || {}, T = b || A || Ox(), M = w || T?.t.bind(T);
|
|
14723
|
-
return
|
|
14723
|
+
return E6({
|
|
14724
14724
|
children: e,
|
|
14725
14725
|
count: t,
|
|
14726
14726
|
parent: n,
|
|
@@ -14737,19 +14737,19 @@ function EA({
|
|
|
14737
14737
|
...N
|
|
14738
14738
|
});
|
|
14739
14739
|
}
|
|
14740
|
-
const
|
|
14740
|
+
const _6 = (e, t) => {
|
|
14741
14741
|
const n = C.useRef();
|
|
14742
14742
|
return C.useEffect(() => {
|
|
14743
14743
|
n.current = e;
|
|
14744
14744
|
}, [e, t]), n.current;
|
|
14745
|
-
}, zk = (e, t, n, i) => e.getFixedT(t, n, i),
|
|
14745
|
+
}, zk = (e, t, n, i) => e.getFixedT(t, n, i), C6 = (e, t, n, i) => C.useCallback(zk(e, t, n, i), [e, t, n, i]), zn = (e, t = {}) => {
|
|
14746
14746
|
const {
|
|
14747
14747
|
i18n: n
|
|
14748
14748
|
} = t, {
|
|
14749
14749
|
i18n: i,
|
|
14750
14750
|
defaultNS: r
|
|
14751
14751
|
} = C.useContext(Ck) || {}, s = n || i || Ox();
|
|
14752
|
-
if (s && !s.reportNamespaces && (s.reportNamespaces = new
|
|
14752
|
+
if (s && !s.reportNamespaces && (s.reportNamespaces = new T6()), !s) {
|
|
14753
14753
|
Yp(s, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
14754
14754
|
const H = (K, U) => ua(U) ? U : Al(U) && ua(U.defaultValue) ? U.defaultValue : Array.isArray(K) ? K[K.length - 1] : K, L = [H, {}, !1];
|
|
14755
14755
|
return L.t = H, L.i18n = {}, L.ready = !1, L;
|
|
@@ -14765,10 +14765,10 @@ const _4 = (e, t) => {
|
|
|
14765
14765
|
} = c;
|
|
14766
14766
|
let v = r || s.options?.defaultNS;
|
|
14767
14767
|
v = ua(v) ? [v] : v || ["translation"], s.reportNamespaces.addUsedNamespaces?.(v);
|
|
14768
|
-
const b = (s.isInitialized || s.initializedStoreOnce) && v.every((H) =>
|
|
14768
|
+
const b = (s.isInitialized || s.initializedStoreOnce) && v.every((H) => h6(H, s, c)), w = C6(s, t.lng || null, c.nsMode === "fallback" ? v : v[0], m), S = () => w, N = () => zk(s, t.lng || null, c.nsMode === "fallback" ? v : v[0], m), [A, O] = C.useState(S);
|
|
14769
14769
|
let T = v.join();
|
|
14770
14770
|
t.lng && (T = `${t.lng}${T}`);
|
|
14771
|
-
const M =
|
|
14771
|
+
const M = _6(T), I = C.useRef(!0);
|
|
14772
14772
|
C.useEffect(() => {
|
|
14773
14773
|
const {
|
|
14774
14774
|
bindI18n: H,
|
|
@@ -14832,9 +14832,9 @@ function Od(e, t = []) {
|
|
|
14832
14832
|
);
|
|
14833
14833
|
};
|
|
14834
14834
|
};
|
|
14835
|
-
return r.scopeName = e, [i,
|
|
14835
|
+
return r.scopeName = e, [i, z6(r, ...t)];
|
|
14836
14836
|
}
|
|
14837
|
-
function
|
|
14837
|
+
function z6(...e) {
|
|
14838
14838
|
const t = e[0];
|
|
14839
14839
|
if (e.length === 1) return t;
|
|
14840
14840
|
const n = () => {
|
|
@@ -14892,12 +14892,12 @@ function Ik(e) {
|
|
|
14892
14892
|
i
|
|
14893
14893
|
];
|
|
14894
14894
|
}
|
|
14895
|
-
var
|
|
14895
|
+
var I6 = C.createContext(void 0);
|
|
14896
14896
|
function Nx(e) {
|
|
14897
|
-
const t = C.useContext(
|
|
14897
|
+
const t = C.useContext(I6);
|
|
14898
14898
|
return e || t || "ltr";
|
|
14899
14899
|
}
|
|
14900
|
-
var
|
|
14900
|
+
var M6 = [
|
|
14901
14901
|
"a",
|
|
14902
14902
|
"button",
|
|
14903
14903
|
"div",
|
|
@@ -14915,14 +14915,14 @@ var M4 = [
|
|
|
14915
14915
|
"span",
|
|
14916
14916
|
"svg",
|
|
14917
14917
|
"ul"
|
|
14918
|
-
], mn =
|
|
14918
|
+
], mn = M6.reduce((e, t) => {
|
|
14919
14919
|
const n = /* @__PURE__ */ Wp(`Primitive.${t}`), i = C.forwardRef((r, s) => {
|
|
14920
14920
|
const { asChild: c, ...h } = r, m = c ? n : t;
|
|
14921
14921
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ E.jsx(m, { ...h, ref: s });
|
|
14922
14922
|
});
|
|
14923
14923
|
return i.displayName = `Primitive.${t}`, { ...e, [t]: i };
|
|
14924
14924
|
}, {});
|
|
14925
|
-
function
|
|
14925
|
+
function R6(e, t) {
|
|
14926
14926
|
e && om.flushSync(() => e.dispatchEvent(t));
|
|
14927
14927
|
}
|
|
14928
14928
|
function Nl(e) {
|
|
@@ -14931,7 +14931,7 @@ function Nl(e) {
|
|
|
14931
14931
|
t.current = e;
|
|
14932
14932
|
}), C.useMemo(() => (...n) => t.current?.(...n), []);
|
|
14933
14933
|
}
|
|
14934
|
-
function
|
|
14934
|
+
function j6(e, t = globalThis?.document) {
|
|
14935
14935
|
const n = Nl(e);
|
|
14936
14936
|
C.useEffect(() => {
|
|
14937
14937
|
const i = (r) => {
|
|
@@ -14940,7 +14940,7 @@ function j4(e, t = globalThis?.document) {
|
|
|
14940
14940
|
return t.addEventListener("keydown", i, { capture: !0 }), () => t.removeEventListener("keydown", i, { capture: !0 });
|
|
14941
14941
|
}, [n, t]);
|
|
14942
14942
|
}
|
|
14943
|
-
var
|
|
14943
|
+
var P6 = "DismissableLayer", Pw = "dismissableLayer.update", U6 = "dismissableLayer.pointerDownOutside", L6 = "dismissableLayer.focusOutside", TA, Mk = C.createContext({
|
|
14944
14944
|
layers: /* @__PURE__ */ new Set(),
|
|
14945
14945
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
14946
14946
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -14954,14 +14954,14 @@ var P4 = "DismissableLayer", Pw = "dismissableLayer.update", U4 = "dismissableLa
|
|
|
14954
14954
|
onInteractOutside: c,
|
|
14955
14955
|
onDismiss: h,
|
|
14956
14956
|
...m
|
|
14957
|
-
} = e, v = C.useContext(Mk), [b, w] = C.useState(null), S = b?.ownerDocument ?? globalThis?.document, [, N] = C.useState({}), A = jn(t, (U) => w(U)), O = Array.from(v.layers), [T] = [...v.layersWithOutsidePointerEventsDisabled].slice(-1), M = O.indexOf(T), I = b ? O.indexOf(b) : -1, j = v.layersWithOutsidePointerEventsDisabled.size > 0, H = I >= M, L =
|
|
14957
|
+
} = e, v = C.useContext(Mk), [b, w] = C.useState(null), S = b?.ownerDocument ?? globalThis?.document, [, N] = C.useState({}), A = jn(t, (U) => w(U)), O = Array.from(v.layers), [T] = [...v.layersWithOutsidePointerEventsDisabled].slice(-1), M = O.indexOf(T), I = b ? O.indexOf(b) : -1, j = v.layersWithOutsidePointerEventsDisabled.size > 0, H = I >= M, L = H6((U) => {
|
|
14958
14958
|
const Q = U.target, ne = [...v.branches].some((Y) => Y.contains(Q));
|
|
14959
14959
|
!H || ne || (r?.(U), c?.(U), U.defaultPrevented || h?.());
|
|
14960
|
-
}, S), K =
|
|
14960
|
+
}, S), K = Q6((U) => {
|
|
14961
14961
|
const Q = U.target;
|
|
14962
14962
|
[...v.branches].some((Y) => Y.contains(Q)) || (s?.(U), c?.(U), U.defaultPrevented || h?.());
|
|
14963
14963
|
}, S);
|
|
14964
|
-
return
|
|
14964
|
+
return j6((U) => {
|
|
14965
14965
|
I === v.layers.size - 1 && (i?.(U), !U.defaultPrevented && h && (U.preventDefault(), h()));
|
|
14966
14966
|
}, S), C.useEffect(() => {
|
|
14967
14967
|
if (b)
|
|
@@ -14992,8 +14992,8 @@ var P4 = "DismissableLayer", Pw = "dismissableLayer.update", U4 = "dismissableLa
|
|
|
14992
14992
|
);
|
|
14993
14993
|
}
|
|
14994
14994
|
);
|
|
14995
|
-
Rk.displayName =
|
|
14996
|
-
var
|
|
14995
|
+
Rk.displayName = P6;
|
|
14996
|
+
var B6 = "DismissableLayerBranch", F6 = C.forwardRef((e, t) => {
|
|
14997
14997
|
const n = C.useContext(Mk), i = C.useRef(null), r = jn(t, i);
|
|
14998
14998
|
return C.useEffect(() => {
|
|
14999
14999
|
const s = i.current;
|
|
@@ -15003,8 +15003,8 @@ var B4 = "DismissableLayerBranch", F4 = C.forwardRef((e, t) => {
|
|
|
15003
15003
|
};
|
|
15004
15004
|
}, [n.branches]), /* @__PURE__ */ E.jsx(mn.div, { ...e, ref: r });
|
|
15005
15005
|
});
|
|
15006
|
-
|
|
15007
|
-
function
|
|
15006
|
+
F6.displayName = B6;
|
|
15007
|
+
function H6(e, t = globalThis?.document) {
|
|
15008
15008
|
const n = Nl(e), i = C.useRef(!1), r = C.useRef(() => {
|
|
15009
15009
|
});
|
|
15010
15010
|
return C.useEffect(() => {
|
|
@@ -15012,7 +15012,7 @@ function H4(e, t = globalThis?.document) {
|
|
|
15012
15012
|
if (h.target && !i.current) {
|
|
15013
15013
|
let m = function() {
|
|
15014
15014
|
jk(
|
|
15015
|
-
|
|
15015
|
+
U6,
|
|
15016
15016
|
n,
|
|
15017
15017
|
v,
|
|
15018
15018
|
{ discrete: !0 }
|
|
@@ -15034,11 +15034,11 @@ function H4(e, t = globalThis?.document) {
|
|
|
15034
15034
|
onPointerDownCapture: () => i.current = !0
|
|
15035
15035
|
};
|
|
15036
15036
|
}
|
|
15037
|
-
function
|
|
15037
|
+
function Q6(e, t = globalThis?.document) {
|
|
15038
15038
|
const n = Nl(e), i = C.useRef(!1);
|
|
15039
15039
|
return C.useEffect(() => {
|
|
15040
15040
|
const r = (s) => {
|
|
15041
|
-
s.target && !i.current && jk(
|
|
15041
|
+
s.target && !i.current && jk(L6, n, { originalEvent: s }, {
|
|
15042
15042
|
discrete: !1
|
|
15043
15043
|
});
|
|
15044
15044
|
};
|
|
@@ -15054,10 +15054,10 @@ function _A() {
|
|
|
15054
15054
|
}
|
|
15055
15055
|
function jk(e, t, n, { discrete: i }) {
|
|
15056
15056
|
const r = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
15057
|
-
t && r.addEventListener(e, t, { once: !0 }), i ?
|
|
15057
|
+
t && r.addEventListener(e, t, { once: !0 }), i ? R6(r, s) : r.dispatchEvent(s);
|
|
15058
15058
|
}
|
|
15059
15059
|
var J0 = 0;
|
|
15060
|
-
function
|
|
15060
|
+
function G6() {
|
|
15061
15061
|
C.useEffect(() => {
|
|
15062
15062
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
15063
15063
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? CA()), document.body.insertAdjacentElement("beforeend", e[1] ?? CA()), J0++, () => {
|
|
@@ -15069,7 +15069,7 @@ function CA() {
|
|
|
15069
15069
|
const e = document.createElement("span");
|
|
15070
15070
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
15071
15071
|
}
|
|
15072
|
-
var ew = "focusScope.autoFocusOnMount", tw = "focusScope.autoFocusOnUnmount", zA = { bubbles: !1, cancelable: !0 },
|
|
15072
|
+
var ew = "focusScope.autoFocusOnMount", tw = "focusScope.autoFocusOnUnmount", zA = { bubbles: !1, cancelable: !0 }, Z6 = "FocusScope", Pk = C.forwardRef((e, t) => {
|
|
15073
15073
|
const {
|
|
15074
15074
|
loop: n = !1,
|
|
15075
15075
|
trapped: i = !1,
|
|
@@ -15112,7 +15112,7 @@ var ew = "focusScope.autoFocusOnMount", tw = "focusScope.autoFocusOnUnmount", zA
|
|
|
15112
15112
|
const O = document.activeElement;
|
|
15113
15113
|
if (!h.contains(O)) {
|
|
15114
15114
|
const M = new CustomEvent(ew, zA);
|
|
15115
|
-
h.addEventListener(ew, v), h.dispatchEvent(M), M.defaultPrevented || (
|
|
15115
|
+
h.addEventListener(ew, v), h.dispatchEvent(M), M.defaultPrevented || (W6(X6(Uk(h)), { select: !0 }), document.activeElement === O && xl(h));
|
|
15116
15116
|
}
|
|
15117
15117
|
return () => {
|
|
15118
15118
|
h.removeEventListener(ew, v), setTimeout(() => {
|
|
@@ -15127,7 +15127,7 @@ var ew = "focusScope.autoFocusOnMount", tw = "focusScope.autoFocusOnUnmount", zA
|
|
|
15127
15127
|
if (!n && !i || N.paused) return;
|
|
15128
15128
|
const T = O.key === "Tab" && !O.altKey && !O.ctrlKey && !O.metaKey, M = document.activeElement;
|
|
15129
15129
|
if (T && M) {
|
|
15130
|
-
const I = O.currentTarget, [j, H] =
|
|
15130
|
+
const I = O.currentTarget, [j, H] = Y6(I);
|
|
15131
15131
|
j && H ? !O.shiftKey && M === H ? (O.preventDefault(), n && xl(j, { select: !0 })) : O.shiftKey && M === j && (O.preventDefault(), n && xl(H, { select: !0 })) : M === I && O.preventDefault();
|
|
15132
15132
|
}
|
|
15133
15133
|
},
|
|
@@ -15135,13 +15135,13 @@ var ew = "focusScope.autoFocusOnMount", tw = "focusScope.autoFocusOnUnmount", zA
|
|
|
15135
15135
|
);
|
|
15136
15136
|
return /* @__PURE__ */ E.jsx(mn.div, { tabIndex: -1, ...c, ref: S, onKeyDown: A });
|
|
15137
15137
|
});
|
|
15138
|
-
Pk.displayName =
|
|
15139
|
-
function
|
|
15138
|
+
Pk.displayName = Z6;
|
|
15139
|
+
function W6(e, { select: t = !1 } = {}) {
|
|
15140
15140
|
const n = document.activeElement;
|
|
15141
15141
|
for (const i of e)
|
|
15142
15142
|
if (xl(i, { select: t }), document.activeElement !== n) return;
|
|
15143
15143
|
}
|
|
15144
|
-
function
|
|
15144
|
+
function Y6(e) {
|
|
15145
15145
|
const t = Uk(e), n = IA(t, e), i = IA(t.reverse(), e);
|
|
15146
15146
|
return [n, i];
|
|
15147
15147
|
}
|
|
@@ -15157,9 +15157,9 @@ function Uk(e) {
|
|
|
15157
15157
|
}
|
|
15158
15158
|
function IA(e, t) {
|
|
15159
15159
|
for (const n of e)
|
|
15160
|
-
if (!
|
|
15160
|
+
if (!q6(n, { upTo: t })) return n;
|
|
15161
15161
|
}
|
|
15162
|
-
function
|
|
15162
|
+
function q6(e, { upTo: t }) {
|
|
15163
15163
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
15164
15164
|
for (; e; ) {
|
|
15165
15165
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -15168,17 +15168,17 @@ function q4(e, { upTo: t }) {
|
|
|
15168
15168
|
}
|
|
15169
15169
|
return !1;
|
|
15170
15170
|
}
|
|
15171
|
-
function
|
|
15171
|
+
function V6(e) {
|
|
15172
15172
|
return e instanceof HTMLInputElement && "select" in e;
|
|
15173
15173
|
}
|
|
15174
15174
|
function xl(e, { select: t = !1 } = {}) {
|
|
15175
15175
|
if (e && e.focus) {
|
|
15176
15176
|
const n = document.activeElement;
|
|
15177
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
15177
|
+
e.focus({ preventScroll: !0 }), e !== n && V6(e) && t && e.select();
|
|
15178
15178
|
}
|
|
15179
15179
|
}
|
|
15180
|
-
var MA =
|
|
15181
|
-
function
|
|
15180
|
+
var MA = K6();
|
|
15181
|
+
function K6() {
|
|
15182
15182
|
let e = [];
|
|
15183
15183
|
return {
|
|
15184
15184
|
add(t) {
|
|
@@ -15194,27 +15194,27 @@ function RA(e, t) {
|
|
|
15194
15194
|
const n = [...e], i = n.indexOf(t);
|
|
15195
15195
|
return i !== -1 && n.splice(i, 1), n;
|
|
15196
15196
|
}
|
|
15197
|
-
function
|
|
15197
|
+
function X6(e) {
|
|
15198
15198
|
return e.filter((t) => t.tagName !== "A");
|
|
15199
15199
|
}
|
|
15200
15200
|
var ni = globalThis?.document ? C.useLayoutEffect : () => {
|
|
15201
|
-
}, $
|
|
15202
|
-
}),
|
|
15201
|
+
}, $6 = KN[" useId ".trim().toString()] || (() => {
|
|
15202
|
+
}), J6 = 0;
|
|
15203
15203
|
function Xy(e) {
|
|
15204
|
-
const [t, n] = C.useState($
|
|
15204
|
+
const [t, n] = C.useState($6());
|
|
15205
15205
|
return ni(() => {
|
|
15206
|
-
n((i) => i ?? String(
|
|
15206
|
+
n((i) => i ?? String(J6++));
|
|
15207
15207
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
15208
15208
|
}
|
|
15209
|
-
const
|
|
15209
|
+
const e4 = ["top", "right", "bottom", "left"], kl = Math.min, Li = Math.max, Oy = Math.round, Kv = Math.floor, Co = (e) => ({
|
|
15210
15210
|
x: e,
|
|
15211
15211
|
y: e
|
|
15212
|
-
}),
|
|
15212
|
+
}), t4 = {
|
|
15213
15213
|
left: "right",
|
|
15214
15214
|
right: "left",
|
|
15215
15215
|
bottom: "top",
|
|
15216
15216
|
top: "bottom"
|
|
15217
|
-
},
|
|
15217
|
+
}, n4 = {
|
|
15218
15218
|
start: "end",
|
|
15219
15219
|
end: "start"
|
|
15220
15220
|
};
|
|
@@ -15236,48 +15236,48 @@ function kx(e) {
|
|
|
15236
15236
|
function Ex(e) {
|
|
15237
15237
|
return e === "y" ? "height" : "width";
|
|
15238
15238
|
}
|
|
15239
|
-
const
|
|
15239
|
+
const r4 = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
15240
15240
|
function Eo(e) {
|
|
15241
|
-
return
|
|
15241
|
+
return r4.has(bs(e)) ? "y" : "x";
|
|
15242
15242
|
}
|
|
15243
15243
|
function Dx(e) {
|
|
15244
15244
|
return kx(Eo(e));
|
|
15245
15245
|
}
|
|
15246
|
-
function
|
|
15246
|
+
function i4(e, t, n) {
|
|
15247
15247
|
n === void 0 && (n = !1);
|
|
15248
15248
|
const i = Nd(e), r = Dx(e), s = Ex(r);
|
|
15249
15249
|
let c = r === "x" ? i === (n ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
|
|
15250
15250
|
return t.reference[s] > t.floating[s] && (c = Ny(c)), [c, Ny(c)];
|
|
15251
15251
|
}
|
|
15252
|
-
function
|
|
15252
|
+
function a4(e) {
|
|
15253
15253
|
const t = Ny(e);
|
|
15254
15254
|
return [Lw(e), t, Lw(t)];
|
|
15255
15255
|
}
|
|
15256
15256
|
function Lw(e) {
|
|
15257
|
-
return e.replace(/start|end/g, (t) =>
|
|
15257
|
+
return e.replace(/start|end/g, (t) => n4[t]);
|
|
15258
15258
|
}
|
|
15259
|
-
const jA = ["left", "right"], PA = ["right", "left"],
|
|
15260
|
-
function
|
|
15259
|
+
const jA = ["left", "right"], PA = ["right", "left"], o4 = ["top", "bottom"], s4 = ["bottom", "top"];
|
|
15260
|
+
function l4(e, t, n) {
|
|
15261
15261
|
switch (e) {
|
|
15262
15262
|
case "top":
|
|
15263
15263
|
case "bottom":
|
|
15264
15264
|
return n ? t ? PA : jA : t ? jA : PA;
|
|
15265
15265
|
case "left":
|
|
15266
15266
|
case "right":
|
|
15267
|
-
return t ?
|
|
15267
|
+
return t ? o4 : s4;
|
|
15268
15268
|
default:
|
|
15269
15269
|
return [];
|
|
15270
15270
|
}
|
|
15271
15271
|
}
|
|
15272
|
-
function
|
|
15272
|
+
function u4(e, t, n, i) {
|
|
15273
15273
|
const r = Nd(e);
|
|
15274
|
-
let s =
|
|
15274
|
+
let s = l4(bs(e), n === "start", i);
|
|
15275
15275
|
return r && (s = s.map((c) => c + "-" + r), t && (s = s.concat(s.map(Lw)))), s;
|
|
15276
15276
|
}
|
|
15277
15277
|
function Ny(e) {
|
|
15278
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
15278
|
+
return e.replace(/left|right|bottom|top/g, (t) => t4[t]);
|
|
15279
15279
|
}
|
|
15280
|
-
function
|
|
15280
|
+
function c4(e) {
|
|
15281
15281
|
return {
|
|
15282
15282
|
top: 0,
|
|
15283
15283
|
right: 0,
|
|
@@ -15287,7 +15287,7 @@ function c6(e) {
|
|
|
15287
15287
|
};
|
|
15288
15288
|
}
|
|
15289
15289
|
function Lk(e) {
|
|
15290
|
-
return typeof e != "number" ?
|
|
15290
|
+
return typeof e != "number" ? c4(e) : {
|
|
15291
15291
|
top: e,
|
|
15292
15292
|
right: e,
|
|
15293
15293
|
bottom: e,
|
|
@@ -15360,7 +15360,7 @@ function UA(e, t, n) {
|
|
|
15360
15360
|
}
|
|
15361
15361
|
return N;
|
|
15362
15362
|
}
|
|
15363
|
-
const
|
|
15363
|
+
const f4 = async (e, t, n) => {
|
|
15364
15364
|
const {
|
|
15365
15365
|
placement: i = "bottom",
|
|
15366
15366
|
strategy: r = "absolute",
|
|
@@ -15466,7 +15466,7 @@ async function qp(e, t) {
|
|
|
15466
15466
|
right: (L.right - M.right + A.right) / H.x
|
|
15467
15467
|
};
|
|
15468
15468
|
}
|
|
15469
|
-
const
|
|
15469
|
+
const d4 = (e) => ({
|
|
15470
15470
|
name: "arrow",
|
|
15471
15471
|
options: e,
|
|
15472
15472
|
async fn(t) {
|
|
@@ -15503,7 +15503,7 @@ const d6 = (e) => ({
|
|
|
15503
15503
|
reset: P
|
|
15504
15504
|
};
|
|
15505
15505
|
}
|
|
15506
|
-
}),
|
|
15506
|
+
}), h4 = function(e) {
|
|
15507
15507
|
return e === void 0 && (e = {}), {
|
|
15508
15508
|
name: "flip",
|
|
15509
15509
|
options: e,
|
|
@@ -15527,12 +15527,12 @@ const d6 = (e) => ({
|
|
|
15527
15527
|
} = ys(e, t);
|
|
15528
15528
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
15529
15529
|
return {};
|
|
15530
|
-
const M = bs(r), I = Eo(h), j = bs(h) === h, H = await (m.isRTL == null ? void 0 : m.isRTL(v.floating)), L = S || (j || !O ? [Ny(h)] :
|
|
15531
|
-
!S && K && L.push(...
|
|
15530
|
+
const M = bs(r), I = Eo(h), j = bs(h) === h, H = await (m.isRTL == null ? void 0 : m.isRTL(v.floating)), L = S || (j || !O ? [Ny(h)] : a4(h)), K = A !== "none";
|
|
15531
|
+
!S && K && L.push(...u4(h, O, A, H));
|
|
15532
15532
|
const U = [h, ...L], Q = await qp(t, T), ne = [];
|
|
15533
15533
|
let Y = ((i = s.flip) == null ? void 0 : i.overflows) || [];
|
|
15534
15534
|
if (b && ne.push(Q[M]), w) {
|
|
15535
|
-
const V =
|
|
15535
|
+
const V = i4(r, c, H);
|
|
15536
15536
|
ne.push(Q[V[0]], Q[V[1]]);
|
|
15537
15537
|
}
|
|
15538
15538
|
if (Y = [...Y, {
|
|
@@ -15594,9 +15594,9 @@ function LA(e, t) {
|
|
|
15594
15594
|
};
|
|
15595
15595
|
}
|
|
15596
15596
|
function BA(e) {
|
|
15597
|
-
return
|
|
15597
|
+
return e4.some((t) => e[t] >= 0);
|
|
15598
15598
|
}
|
|
15599
|
-
const
|
|
15599
|
+
const p4 = function(e) {
|
|
15600
15600
|
return e === void 0 && (e = {}), {
|
|
15601
15601
|
name: "hide",
|
|
15602
15602
|
options: e,
|
|
@@ -15638,7 +15638,7 @@ const p6 = function(e) {
|
|
|
15638
15638
|
}
|
|
15639
15639
|
};
|
|
15640
15640
|
}, Bk = /* @__PURE__ */ new Set(["left", "top"]);
|
|
15641
|
-
async function
|
|
15641
|
+
async function m4(e, t) {
|
|
15642
15642
|
const {
|
|
15643
15643
|
placement: n,
|
|
15644
15644
|
platform: i,
|
|
@@ -15665,7 +15665,7 @@ async function m6(e, t) {
|
|
|
15665
15665
|
y: N * b
|
|
15666
15666
|
};
|
|
15667
15667
|
}
|
|
15668
|
-
const
|
|
15668
|
+
const g4 = function(e) {
|
|
15669
15669
|
return e === void 0 && (e = 0), {
|
|
15670
15670
|
name: "offset",
|
|
15671
15671
|
options: e,
|
|
@@ -15676,7 +15676,7 @@ const g6 = function(e) {
|
|
|
15676
15676
|
y: s,
|
|
15677
15677
|
placement: c,
|
|
15678
15678
|
middlewareData: h
|
|
15679
|
-
} = t, m = await
|
|
15679
|
+
} = t, m = await m4(t, e);
|
|
15680
15680
|
return c === ((n = h.offset) == null ? void 0 : n.placement) && (i = h.arrow) != null && i.alignmentOffset ? {} : {
|
|
15681
15681
|
x: r + m.x,
|
|
15682
15682
|
y: s + m.y,
|
|
@@ -15687,7 +15687,7 @@ const g6 = function(e) {
|
|
|
15687
15687
|
};
|
|
15688
15688
|
}
|
|
15689
15689
|
};
|
|
15690
|
-
},
|
|
15690
|
+
}, v4 = function(e) {
|
|
15691
15691
|
return e === void 0 && (e = {}), {
|
|
15692
15692
|
name: "shift",
|
|
15693
15693
|
options: e,
|
|
@@ -15743,7 +15743,7 @@ const g6 = function(e) {
|
|
|
15743
15743
|
};
|
|
15744
15744
|
}
|
|
15745
15745
|
};
|
|
15746
|
-
},
|
|
15746
|
+
}, y4 = function(e) {
|
|
15747
15747
|
return e === void 0 && (e = {}), {
|
|
15748
15748
|
options: e,
|
|
15749
15749
|
fn(t) {
|
|
@@ -15785,7 +15785,7 @@ const g6 = function(e) {
|
|
|
15785
15785
|
};
|
|
15786
15786
|
}
|
|
15787
15787
|
};
|
|
15788
|
-
},
|
|
15788
|
+
}, b4 = function(e) {
|
|
15789
15789
|
return e === void 0 && (e = {}), {
|
|
15790
15790
|
name: "size",
|
|
15791
15791
|
options: e,
|
|
@@ -15852,7 +15852,7 @@ function Io(e) {
|
|
|
15852
15852
|
function FA(e) {
|
|
15853
15853
|
return !$y() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Fi(e).ShadowRoot;
|
|
15854
15854
|
}
|
|
15855
|
-
const
|
|
15855
|
+
const w4 = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
15856
15856
|
function sm(e) {
|
|
15857
15857
|
const {
|
|
15858
15858
|
overflow: t,
|
|
@@ -15860,15 +15860,15 @@ function sm(e) {
|
|
|
15860
15860
|
overflowY: i,
|
|
15861
15861
|
display: r
|
|
15862
15862
|
} = Ba(e);
|
|
15863
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + i + n) && !
|
|
15863
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + i + n) && !w4.has(r);
|
|
15864
15864
|
}
|
|
15865
|
-
const
|
|
15866
|
-
function
|
|
15867
|
-
return
|
|
15865
|
+
const x4 = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
15866
|
+
function S4(e) {
|
|
15867
|
+
return x4.has(kd(e));
|
|
15868
15868
|
}
|
|
15869
|
-
const
|
|
15869
|
+
const A4 = [":popover-open", ":modal"];
|
|
15870
15870
|
function Jy(e) {
|
|
15871
|
-
return
|
|
15871
|
+
return A4.some((t) => {
|
|
15872
15872
|
try {
|
|
15873
15873
|
return e.matches(t);
|
|
15874
15874
|
} catch {
|
|
@@ -15876,12 +15876,12 @@ function Jy(e) {
|
|
|
15876
15876
|
}
|
|
15877
15877
|
});
|
|
15878
15878
|
}
|
|
15879
|
-
const
|
|
15879
|
+
const O4 = ["transform", "translate", "scale", "rotate", "perspective"], N4 = ["transform", "translate", "scale", "rotate", "perspective", "filter"], k4 = ["paint", "layout", "strict", "content"];
|
|
15880
15880
|
function Tx(e) {
|
|
15881
15881
|
const t = _x(), n = La(e) ? Ba(e) : e;
|
|
15882
|
-
return
|
|
15882
|
+
return O4.some((i) => n[i] ? n[i] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || N4.some((i) => (n.willChange || "").includes(i)) || k4.some((i) => (n.contain || "").includes(i));
|
|
15883
15883
|
}
|
|
15884
|
-
function
|
|
15884
|
+
function E4(e) {
|
|
15885
15885
|
let t = El(e);
|
|
15886
15886
|
for (; Io(t) && !pd(t); ) {
|
|
15887
15887
|
if (Tx(t))
|
|
@@ -15895,9 +15895,9 @@ function E6(e) {
|
|
|
15895
15895
|
function _x() {
|
|
15896
15896
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
15897
15897
|
}
|
|
15898
|
-
const
|
|
15898
|
+
const D4 = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
15899
15899
|
function pd(e) {
|
|
15900
|
-
return
|
|
15900
|
+
return D4.has(kd(e));
|
|
15901
15901
|
}
|
|
15902
15902
|
function Ba(e) {
|
|
15903
15903
|
return Fi(e).getComputedStyle(e);
|
|
@@ -15968,15 +15968,15 @@ function dd(e) {
|
|
|
15968
15968
|
y: h
|
|
15969
15969
|
};
|
|
15970
15970
|
}
|
|
15971
|
-
const
|
|
15971
|
+
const T4 = /* @__PURE__ */ Co(0);
|
|
15972
15972
|
function Gk(e) {
|
|
15973
15973
|
const t = Fi(e);
|
|
15974
|
-
return !_x() || !t.visualViewport ?
|
|
15974
|
+
return !_x() || !t.visualViewport ? T4 : {
|
|
15975
15975
|
x: t.visualViewport.offsetLeft,
|
|
15976
15976
|
y: t.visualViewport.offsetTop
|
|
15977
15977
|
};
|
|
15978
15978
|
}
|
|
15979
|
-
function
|
|
15979
|
+
function _4(e, t, n) {
|
|
15980
15980
|
return t === void 0 && (t = !1), !n || t && n !== Fi(e) ? !1 : t;
|
|
15981
15981
|
}
|
|
15982
15982
|
function ic(e, t, n, i) {
|
|
@@ -15984,7 +15984,7 @@ function ic(e, t, n, i) {
|
|
|
15984
15984
|
const r = e.getBoundingClientRect(), s = Cx(e);
|
|
15985
15985
|
let c = Co(1);
|
|
15986
15986
|
t && (i ? La(i) && (c = dd(i)) : c = dd(e));
|
|
15987
|
-
const h =
|
|
15987
|
+
const h = _4(s, n, i) ? Gk(s) : Co(0);
|
|
15988
15988
|
let m = (r.left + h.x) / c.x, v = (r.top + h.y) / c.y, b = r.width / c.x, w = r.height / c.y;
|
|
15989
15989
|
if (s) {
|
|
15990
15990
|
const S = Fi(s), N = i && La(i) ? Fi(i) : i;
|
|
@@ -16012,7 +16012,7 @@ function Zk(e, t) {
|
|
|
16012
16012
|
y: r
|
|
16013
16013
|
};
|
|
16014
16014
|
}
|
|
16015
|
-
function
|
|
16015
|
+
function C4(e) {
|
|
16016
16016
|
let {
|
|
16017
16017
|
elements: t,
|
|
16018
16018
|
rect: n,
|
|
@@ -16039,10 +16039,10 @@ function C6(e) {
|
|
|
16039
16039
|
y: n.y * v.y - m.scrollTop * v.y + b.y + S.y
|
|
16040
16040
|
};
|
|
16041
16041
|
}
|
|
16042
|
-
function
|
|
16042
|
+
function z4(e) {
|
|
16043
16043
|
return Array.from(e.getClientRects());
|
|
16044
16044
|
}
|
|
16045
|
-
function
|
|
16045
|
+
function I4(e) {
|
|
16046
16046
|
const t = Mo(e), n = eb(e), i = e.ownerDocument.body, r = Li(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), s = Li(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
|
|
16047
16047
|
let c = -n.scrollLeft + tb(e);
|
|
16048
16048
|
const h = -n.scrollTop;
|
|
@@ -16054,7 +16054,7 @@ function I6(e) {
|
|
|
16054
16054
|
};
|
|
16055
16055
|
}
|
|
16056
16056
|
const HA = 25;
|
|
16057
|
-
function
|
|
16057
|
+
function M4(e, t) {
|
|
16058
16058
|
const n = Fi(e), i = Mo(e), r = n.visualViewport;
|
|
16059
16059
|
let s = i.clientWidth, c = i.clientHeight, h = 0, m = 0;
|
|
16060
16060
|
if (r) {
|
|
@@ -16074,8 +16074,8 @@ function M6(e, t) {
|
|
|
16074
16074
|
y: m
|
|
16075
16075
|
};
|
|
16076
16076
|
}
|
|
16077
|
-
const
|
|
16078
|
-
function
|
|
16077
|
+
const R4 = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
16078
|
+
function j4(e, t) {
|
|
16079
16079
|
const n = ic(e, !0, t === "fixed"), i = n.top + e.clientTop, r = n.left + e.clientLeft, s = Io(e) ? dd(e) : Co(1), c = e.clientWidth * s.x, h = e.clientHeight * s.y, m = r * s.x, v = i * s.y;
|
|
16080
16080
|
return {
|
|
16081
16081
|
width: c,
|
|
@@ -16087,11 +16087,11 @@ function j6(e, t) {
|
|
|
16087
16087
|
function QA(e, t, n) {
|
|
16088
16088
|
let i;
|
|
16089
16089
|
if (t === "viewport")
|
|
16090
|
-
i =
|
|
16090
|
+
i = M4(e, n);
|
|
16091
16091
|
else if (t === "document")
|
|
16092
|
-
i =
|
|
16092
|
+
i = I4(Mo(e));
|
|
16093
16093
|
else if (La(t))
|
|
16094
|
-
i =
|
|
16094
|
+
i = j4(t, n);
|
|
16095
16095
|
else {
|
|
16096
16096
|
const r = Gk(e);
|
|
16097
16097
|
i = {
|
|
@@ -16107,7 +16107,7 @@ function Wk(e, t) {
|
|
|
16107
16107
|
const n = El(e);
|
|
16108
16108
|
return n === t || !La(n) || pd(n) ? !1 : Ba(n).position === "fixed" || Wk(n, t);
|
|
16109
16109
|
}
|
|
16110
|
-
function
|
|
16110
|
+
function P4(e, t) {
|
|
16111
16111
|
const n = t.get(e);
|
|
16112
16112
|
if (n)
|
|
16113
16113
|
return n;
|
|
@@ -16116,18 +16116,18 @@ function P6(e, t) {
|
|
|
16116
16116
|
let c = s ? El(e) : e;
|
|
16117
16117
|
for (; La(c) && !pd(c); ) {
|
|
16118
16118
|
const h = Ba(c), m = Tx(c);
|
|
16119
|
-
!m && h.position === "fixed" && (r = null), (s ? !m && !r : !m && h.position === "static" && !!r &&
|
|
16119
|
+
!m && h.position === "fixed" && (r = null), (s ? !m && !r : !m && h.position === "static" && !!r && R4.has(r.position) || sm(c) && !m && Wk(e, c)) ? i = i.filter((b) => b !== c) : r = h, c = El(c);
|
|
16120
16120
|
}
|
|
16121
16121
|
return t.set(e, i), i;
|
|
16122
16122
|
}
|
|
16123
|
-
function
|
|
16123
|
+
function U4(e) {
|
|
16124
16124
|
let {
|
|
16125
16125
|
element: t,
|
|
16126
16126
|
boundary: n,
|
|
16127
16127
|
rootBoundary: i,
|
|
16128
16128
|
strategy: r
|
|
16129
16129
|
} = e;
|
|
16130
|
-
const c = [...n === "clippingAncestors" ? Jy(t) ? [] :
|
|
16130
|
+
const c = [...n === "clippingAncestors" ? Jy(t) ? [] : P4(t, this._c) : [].concat(n), i], h = c[0], m = c.reduce((v, b) => {
|
|
16131
16131
|
const w = QA(t, b, r);
|
|
16132
16132
|
return v.top = Li(w.top, v.top), v.right = kl(w.right, v.right), v.bottom = kl(w.bottom, v.bottom), v.left = Li(w.left, v.left), v;
|
|
16133
16133
|
}, QA(t, h, r));
|
|
@@ -16138,7 +16138,7 @@ function U6(e) {
|
|
|
16138
16138
|
y: m.top
|
|
16139
16139
|
};
|
|
16140
16140
|
}
|
|
16141
|
-
function
|
|
16141
|
+
function L4(e) {
|
|
16142
16142
|
const {
|
|
16143
16143
|
width: t,
|
|
16144
16144
|
height: n
|
|
@@ -16148,7 +16148,7 @@ function L6(e) {
|
|
|
16148
16148
|
height: n
|
|
16149
16149
|
};
|
|
16150
16150
|
}
|
|
16151
|
-
function
|
|
16151
|
+
function B4(e, t, n) {
|
|
16152
16152
|
const i = Io(t), r = Mo(t), s = n === "fixed", c = ic(e, !0, s, t);
|
|
16153
16153
|
let h = {
|
|
16154
16154
|
scrollLeft: 0,
|
|
@@ -16197,14 +16197,14 @@ function Yk(e, t) {
|
|
|
16197
16197
|
return n;
|
|
16198
16198
|
}
|
|
16199
16199
|
let i = GA(e, t);
|
|
16200
|
-
for (; i &&
|
|
16200
|
+
for (; i && S4(i) && nw(i); )
|
|
16201
16201
|
i = GA(i, t);
|
|
16202
|
-
return i && pd(i) && nw(i) && !Tx(i) ? n : i ||
|
|
16202
|
+
return i && pd(i) && nw(i) && !Tx(i) ? n : i || E4(e) || n;
|
|
16203
16203
|
}
|
|
16204
|
-
const
|
|
16204
|
+
const F4 = async function(e) {
|
|
16205
16205
|
const t = this.getOffsetParent || Yk, n = this.getDimensions, i = await n(e.floating);
|
|
16206
16206
|
return {
|
|
16207
|
-
reference:
|
|
16207
|
+
reference: B4(e.reference, await t(e.floating), e.strategy),
|
|
16208
16208
|
floating: {
|
|
16209
16209
|
x: 0,
|
|
16210
16210
|
y: 0,
|
|
@@ -16213,25 +16213,25 @@ const F6 = async function(e) {
|
|
|
16213
16213
|
}
|
|
16214
16214
|
};
|
|
16215
16215
|
};
|
|
16216
|
-
function
|
|
16216
|
+
function H4(e) {
|
|
16217
16217
|
return Ba(e).direction === "rtl";
|
|
16218
16218
|
}
|
|
16219
|
-
const
|
|
16220
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
16219
|
+
const Q4 = {
|
|
16220
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: C4,
|
|
16221
16221
|
getDocumentElement: Mo,
|
|
16222
|
-
getClippingRect:
|
|
16222
|
+
getClippingRect: U4,
|
|
16223
16223
|
getOffsetParent: Yk,
|
|
16224
|
-
getElementRects:
|
|
16225
|
-
getClientRects:
|
|
16226
|
-
getDimensions:
|
|
16224
|
+
getElementRects: F4,
|
|
16225
|
+
getClientRects: z4,
|
|
16226
|
+
getDimensions: L4,
|
|
16227
16227
|
getScale: dd,
|
|
16228
16228
|
isElement: La,
|
|
16229
|
-
isRTL:
|
|
16229
|
+
isRTL: H4
|
|
16230
16230
|
};
|
|
16231
16231
|
function qk(e, t) {
|
|
16232
16232
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
16233
16233
|
}
|
|
16234
|
-
function
|
|
16234
|
+
function G4(e, t) {
|
|
16235
16235
|
let n = null, i;
|
|
16236
16236
|
const r = Mo(e);
|
|
16237
16237
|
function s() {
|
|
@@ -16277,7 +16277,7 @@ function G6(e, t) {
|
|
|
16277
16277
|
}
|
|
16278
16278
|
return c(!0), s;
|
|
16279
16279
|
}
|
|
16280
|
-
function
|
|
16280
|
+
function Z4(e, t, n, i) {
|
|
16281
16281
|
i === void 0 && (i = {});
|
|
16282
16282
|
const {
|
|
16283
16283
|
ancestorScroll: r = !0,
|
|
@@ -16291,7 +16291,7 @@ function Z6(e, t, n, i) {
|
|
|
16291
16291
|
passive: !0
|
|
16292
16292
|
}), s && M.addEventListener("resize", n);
|
|
16293
16293
|
});
|
|
16294
|
-
const w = v && h ?
|
|
16294
|
+
const w = v && h ? G4(v, n) : null;
|
|
16295
16295
|
let S = -1, N = null;
|
|
16296
16296
|
c && (N = new ResizeObserver((M) => {
|
|
16297
16297
|
let [I] = M;
|
|
@@ -16313,21 +16313,21 @@ function Z6(e, t, n, i) {
|
|
|
16313
16313
|
}), w?.(), (M = N) == null || M.disconnect(), N = null, m && cancelAnimationFrame(A);
|
|
16314
16314
|
};
|
|
16315
16315
|
}
|
|
16316
|
-
const
|
|
16316
|
+
const W4 = g4, Y4 = v4, q4 = h4, V4 = b4, K4 = p4, ZA = d4, X4 = y4, $4 = (e, t, n) => {
|
|
16317
16317
|
const i = /* @__PURE__ */ new Map(), r = {
|
|
16318
|
-
platform:
|
|
16318
|
+
platform: Q4,
|
|
16319
16319
|
...n
|
|
16320
16320
|
}, s = {
|
|
16321
16321
|
...r.platform,
|
|
16322
16322
|
_c: i
|
|
16323
16323
|
};
|
|
16324
|
-
return
|
|
16324
|
+
return f4(e, t, {
|
|
16325
16325
|
...r,
|
|
16326
16326
|
platform: s
|
|
16327
16327
|
});
|
|
16328
16328
|
};
|
|
16329
|
-
var
|
|
16330
|
-
}, hy =
|
|
16329
|
+
var J4 = typeof document < "u", ej = function() {
|
|
16330
|
+
}, hy = J4 ? C.useLayoutEffect : ej;
|
|
16331
16331
|
function Ey(e, t) {
|
|
16332
16332
|
if (e === t)
|
|
16333
16333
|
return !0;
|
|
@@ -16406,7 +16406,7 @@ function tj(e) {
|
|
|
16406
16406
|
strategy: n,
|
|
16407
16407
|
middleware: S
|
|
16408
16408
|
};
|
|
16409
|
-
J.current && (q.platform = J.current), $
|
|
16409
|
+
J.current && (q.platform = J.current), $4(K.current, U.current, q).then((me) => {
|
|
16410
16410
|
const B = {
|
|
16411
16411
|
...me,
|
|
16412
16412
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -16495,22 +16495,22 @@ const nj = (e) => {
|
|
|
16495
16495
|
}
|
|
16496
16496
|
};
|
|
16497
16497
|
}, rj = (e, t) => ({
|
|
16498
|
-
...
|
|
16498
|
+
...W4(e),
|
|
16499
16499
|
options: [e, t]
|
|
16500
16500
|
}), ij = (e, t) => ({
|
|
16501
|
-
...
|
|
16501
|
+
...Y4(e),
|
|
16502
16502
|
options: [e, t]
|
|
16503
16503
|
}), aj = (e, t) => ({
|
|
16504
|
-
...
|
|
16504
|
+
...X4(e),
|
|
16505
16505
|
options: [e, t]
|
|
16506
16506
|
}), oj = (e, t) => ({
|
|
16507
|
-
...
|
|
16507
|
+
...q4(e),
|
|
16508
16508
|
options: [e, t]
|
|
16509
16509
|
}), sj = (e, t) => ({
|
|
16510
|
-
...
|
|
16510
|
+
...V4(e),
|
|
16511
16511
|
options: [e, t]
|
|
16512
16512
|
}), lj = (e, t) => ({
|
|
16513
|
-
...
|
|
16513
|
+
...K4(e),
|
|
16514
16514
|
options: [e, t]
|
|
16515
16515
|
}), uj = (e, t) => ({
|
|
16516
16516
|
...nj(e),
|
|
@@ -16596,7 +16596,7 @@ var Ix = "PopperContent", [hj, pj] = $k(Ix), iE = C.forwardRef(
|
|
|
16596
16596
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
16597
16597
|
strategy: "fixed",
|
|
16598
16598
|
placement: ne,
|
|
16599
|
-
whileElementsMounted: (..._e) =>
|
|
16599
|
+
whileElementsMounted: (..._e) => Z4(..._e, {
|
|
16600
16600
|
animationFrame: N === "always"
|
|
16601
16601
|
}),
|
|
16602
16602
|
elements: {
|
|
@@ -17546,7 +17546,7 @@ var Ia = 10, [kE, Cl] = Ed(oc), wP = "SelectContentImpl", xP = /* @__PURE__ */ W
|
|
|
17546
17546
|
), re = ib(n), [F, V] = C.useState(!1), te = C.useRef(!1);
|
|
17547
17547
|
C.useEffect(() => {
|
|
17548
17548
|
if (j) return _j(j);
|
|
17549
|
-
}, [j]),
|
|
17549
|
+
}, [j]), G6();
|
|
17550
17550
|
const P = C.useCallback(
|
|
17551
17551
|
(_e) => {
|
|
17552
17552
|
const [Be, ...st] = re().map((yt) => yt.ref.current), [ft] = st.slice(-1), dt = document.activeElement;
|
|
@@ -23138,7 +23138,7 @@ function QL(e, t) {
|
|
|
23138
23138
|
throw r.error;
|
|
23139
23139
|
return { ...r, mutate: s, mutateAsync: r.mutate };
|
|
23140
23140
|
}
|
|
23141
|
-
const GL = { DEV: !1 }, { DEV: ZL } = GL, WL = ZL, YL = "https://api.easea.app/graphql", qL = "1.1.
|
|
23141
|
+
const GL = { DEV: !1 }, { DEV: ZL } = GL, WL = ZL, YL = "https://api.easea.app/graphql", qL = "1.1.6", SO = (e) => {
|
|
23142
23142
|
let t;
|
|
23143
23143
|
const n = /* @__PURE__ */ new Set(), i = (v, b) => {
|
|
23144
23144
|
const w = typeof v == "function" ? v(t) : v;
|
|
@@ -24847,7 +24847,7 @@ const k3 = "Aggiungi al calendario Apple", E3 = "Aggiungi al calendario Google",
|
|
|
24847
24847
|
with_extra_price: I8,
|
|
24848
24848
|
booking_footer_request_message: M8
|
|
24849
24849
|
};
|
|
24850
|
-
Wn.use(
|
|
24850
|
+
Wn.use(D6).init({
|
|
24851
24851
|
debug: !0,
|
|
24852
24852
|
react: {
|
|
24853
24853
|
transSupportBasicHtmlNodes: !0
|
|
@@ -40966,7 +40966,7 @@ const US = ({
|
|
|
40966
40966
|
const h = isNaN(Number(s)) ? 0 : Number(s);
|
|
40967
40967
|
t.onChange((h - 1).toString()), e.onChange?.((h - 1).toString());
|
|
40968
40968
|
},
|
|
40969
|
-
children: /* @__PURE__ */ E.jsx(
|
|
40969
|
+
children: /* @__PURE__ */ E.jsx(e6, { className: "w-3 h-3", "aria-hidden": "true" })
|
|
40970
40970
|
}
|
|
40971
40971
|
),
|
|
40972
40972
|
/* @__PURE__ */ E.jsx(
|
|
@@ -40993,7 +40993,7 @@ const US = ({
|
|
|
40993
40993
|
t.onChange((h + 1).toString()), e.onChange?.((h + 1).toString());
|
|
40994
40994
|
},
|
|
40995
40995
|
size: "icon",
|
|
40996
|
-
children: /* @__PURE__ */ E.jsx(
|
|
40996
|
+
children: /* @__PURE__ */ E.jsx(r6, { className: "w-3 h-3", "aria-hidden": "true" })
|
|
40997
40997
|
}
|
|
40998
40998
|
)
|
|
40999
40999
|
] })
|
|
@@ -45616,6 +45616,3 @@ function uK(e) {
|
|
|
45616
45616
|
);
|
|
45617
45617
|
}
|
|
45618
45618
|
window.EaseaWidget = { init: uK };
|
|
45619
|
-
export {
|
|
45620
|
-
uK as initWidget
|
|
45621
|
-
};
|