intlayer-editor 8.4.2 → 8.4.3
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/client/dist/assets/{CodeBlockShiki-BQ0Urv39.js → CodeBlockShiki-B3siK5AS.js} +14 -14
- package/client/dist/assets/{angular-html-B40pL6wl.js → angular-html-B6JGjnhw.js} +2 -2
- package/client/dist/assets/{angular-ts-DEfIxZMp.js → angular-ts-C0LZhPn3.js} +2 -2
- package/client/dist/assets/{astro-DDXXh1_1.js → astro-DRhNdJ7D.js} +5 -5
- package/client/dist/assets/bash-BDj1ZMbF.js +2 -0
- package/client/dist/assets/{blade-BqWGpLk3.js → blade-CmblGiYC.js} +7 -7
- package/client/dist/assets/{bundle-web-CQgz7w95.js → bundle-web-C53U69TC.js} +42 -42
- package/client/dist/assets/{c-rYJZrW1k.js → c-BP1HALHq.js} +1 -1
- package/client/dist/assets/{chunk-CC9Q-vWm.js → chunk-C0u3WHrm.js} +1 -5
- package/client/dist/assets/{coffee-B7kx3Cid.js → coffee-C28B5GV0.js} +1 -1
- package/client/dist/assets/{cpp-3L9-cBo7.js → cpp-Cidd5v6X.js} +3 -3
- package/client/dist/assets/{css-BznhwoPH.js → css-DirbBcKV.js} +1 -1
- package/client/dist/assets/{dist-JL9Mfqir.js → dist-DV8htl3g.js} +2 -2
- package/client/dist/assets/{glsl-D7GhljHe.js → glsl-DoqwcQRt.js} +2 -2
- package/client/dist/assets/{graphql-CFwfqi3h.js → graphql-Dk8PWT7j.js} +4 -4
- package/client/dist/assets/{haml-AGy9GVVj.js → haml-66_uT442.js} +2 -2
- package/client/dist/assets/{handlebars-vOgalqpV.js → handlebars-BSuqha3R.js} +3 -3
- package/client/dist/assets/{html-B0M7Ubrz.js → html-CR2zuqaP.js} +3 -3
- package/client/dist/assets/html-C_WOzrgj.js +2 -0
- package/client/dist/assets/{html-derivative-B7ZIKlQ2.js → html-derivative-Cclou0aP.js} +2 -2
- package/client/dist/assets/{http-Bw1SWifZ.js → http-Chfri83B.js} +4 -4
- package/client/dist/assets/{hurl-zcy5Fl2y.js → hurl-CJYG0qEj.js} +2 -2
- package/client/dist/assets/{index-DT2mmysE.js → index-CutqtHet.js} +790 -950
- package/client/dist/assets/{java-BsMRZzwb.js → java-B8PDrwgp.js} +1 -1
- package/client/dist/assets/javascript-DnideQC4.js +2 -0
- package/client/dist/assets/{javascript-CU3PIJIe.js → javascript-gbo83QZh.js} +1 -1
- package/client/dist/assets/{jinja-CpV-HaFu.js → jinja-DjrurZ3w.js} +1 -1
- package/client/dist/assets/{jison-DaIhV8hg.js → jison-Bzb7AiNT.js} +1 -1
- package/client/dist/assets/json-BqbkG0mH.js +2 -0
- package/client/dist/assets/{json-NRUJ3A8Z.js → json-CunY19G8.js} +1 -1
- package/client/dist/assets/{jsx-D27Zcp8f.js → jsx-DKpAzk1L.js} +1 -1
- package/client/dist/assets/{julia-BwktqeJq.js → julia-Bb9EanCZ.js} +3 -3
- package/client/dist/assets/{marko-DZhB4BDZ.js → marko-BMBjaKAA.js} +3 -3
- package/client/dist/assets/{mdc-ByFPmJVb.js → mdc-DHml8znM.js} +1 -1
- package/client/dist/assets/{php-Cq-zzIgW.js → php-B7g111ez.js} +6 -6
- package/client/dist/assets/{pug-BqsC6HRi.js → pug-DPA9vacE.js} +3 -3
- package/client/dist/assets/{react-BPfKr7Oj.js → react-BI_C_976.js} +1 -1
- package/client/dist/assets/{regexp-Bv54x_SM.js → regexp-C2EHb1E5.js} +1 -1
- package/client/dist/assets/{scss-BDzsPcer.js → scss-DUiSzTzo.js} +2 -2
- package/client/dist/assets/{shellscript-D6OjgcVH.js → shellscript-DkioAF_Z.js} +1 -1
- package/client/dist/assets/{sql-D1VHE84D.js → sql-Bq2TyiLf.js} +1 -1
- package/client/dist/assets/{svelte-7kInhlba.js → svelte-B4a91jKy.js} +3 -3
- package/client/dist/assets/{ts-tags-CmxNgKEj.js → ts-tags-CmAHPpbA.js} +7 -7
- package/client/dist/assets/tsx-COT10Yhw.js +2 -0
- package/client/dist/assets/{tsx-CzwR-tnf.js → tsx-DhiHjC8E.js} +1 -1
- package/client/dist/assets/{typescript-BRHrOBpy.js → typescript-DIknz8xV.js} +1 -1
- package/client/dist/assets/typescript-DVn5xcxs.js +2 -0
- package/client/dist/assets/vue-DMs-rpfR.js +2 -0
- package/client/dist/assets/{vue-CG7sAwHH.js → vue-DSQFQ9Fa.js} +6 -6
- package/client/dist/assets/{vue-html-DHRq-ZD1.js → vue-html-CPPbLqF0.js} +1 -1
- package/client/dist/assets/{vue-vine-BAAyauNs.js → vue-vine-BolHA4m8.js} +3 -3
- package/client/dist/assets/{xml-CPgLmR05.js → xml-BJ26UNLC.js} +2 -2
- package/client/dist/assets/xml-BsRPH7S0.js +2 -0
- package/client/dist/index.html +3 -3
- package/package.json +11 -11
- package/server/dist/checkPortAvailability-BJtgxTDw.cjs +60 -0
- package/server/dist/checkPortAvailability-BJtgxTDw.cjs.map +1 -0
- package/server/dist/index.cjs +7 -7
- package/server/dist/index.cjs.map +1 -1
- package/server/dist/index.mjs +5 -5
- package/server/dist/index.mjs.map +1 -1
- package/client/dist/assets/bash-Ctbhv6bB.js +0 -2
- package/client/dist/assets/html-Cla_1apk.js +0 -2
- package/client/dist/assets/javascript-BeimltzM.js +0 -2
- package/client/dist/assets/json-DPD_iq4F.js +0 -2
- package/client/dist/assets/tsx-CHlTOe14.js +0 -2
- package/client/dist/assets/typescript-B4HgavCc.js +0 -2
- package/client/dist/assets/vue-DlaU9qIx.js +0 -2
- package/client/dist/assets/xml-Bp8m4wBs.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CodeBlockShiki-
|
|
2
|
-
import { a as
|
|
3
|
-
import { t as require_react } from "./react-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CodeBlockShiki-B3siK5AS.js","assets/chunk-C0u3WHrm.js","assets/react-BI_C_976.js","assets/dist-DV8htl3g.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { a as __toESM, i as __toCommonJS, n as __esmMin, r as __exportAll, t as __commonJSMin } from "./chunk-C0u3WHrm.js";
|
|
3
|
+
import { t as require_react } from "./react-BI_C_976.js";
|
|
4
4
|
//#region \0vite/modulepreload-polyfill.js
|
|
5
5
|
(function polyfill() {
|
|
6
6
|
const relList = document.createElement("link").relList;
|
|
@@ -9568,28 +9568,28 @@ var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9568
9568
|
//#endregion
|
|
9569
9569
|
//#region ../react-intlayer/dist/esm/html/HTMLProvider.mjs
|
|
9570
9570
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
9571
|
-
var import_jsx_runtime = require_jsx_runtime(), r$
|
|
9571
|
+
var import_jsx_runtime = require_jsx_runtime(), r$114 = (0, import_react.createContext)(void 0), i$88 = () => (0, import_react.useContext)(r$114);
|
|
9572
9572
|
//#endregion
|
|
9573
9573
|
//#region ../@intlayer/core/dist/esm/interpreter/getCondition.mjs
|
|
9574
|
-
var e$
|
|
9574
|
+
var e$52 = (e, t) => {
|
|
9575
9575
|
let n = Object.keys(e), r = n[n.length - 1];
|
|
9576
9576
|
return e[`${t}`] ?? e.fallback ?? e[r];
|
|
9577
9577
|
};
|
|
9578
9578
|
//#endregion
|
|
9579
9579
|
//#region ../@intlayer/types/dist/esm/nodeType.mjs
|
|
9580
|
-
var e$
|
|
9580
|
+
var e$51 = function(e) {
|
|
9581
9581
|
return e.Translation = `translation`, e.Enumeration = `enumeration`, e.Condition = `condition`, e.Insertion = `insertion`, e.File = `file`, e.Object = `object`, e.Array = `array`, e.Nested = `nested`, e.ReactNode = `reactNode`, e.Markdown = `markdown`, e.HTML = `html`, e.Text = `text`, e.Number = `number`, e.Boolean = `boolean`, e.Gender = `gender`, e.Null = `null`, e.Unknown = `unknown`, e;
|
|
9582
9582
|
}({});
|
|
9583
9583
|
//#endregion
|
|
9584
9584
|
//#region ../@intlayer/core/dist/esm/interpreter/getContent/deepTransform.mjs
|
|
9585
|
-
var t$
|
|
9586
|
-
for (let e of r.plugins ?? []) if (e.canHandle(n)) return e.transform(n, r, (e, n) => t$
|
|
9585
|
+
var t$107 = (n, r) => {
|
|
9586
|
+
for (let e of r.plugins ?? []) if (e.canHandle(n)) return e.transform(n, r, (e, n) => t$107(e, n));
|
|
9587
9587
|
if (typeof n != `object` || !n || n.$$typeof !== void 0 || n.__v_isVNode !== void 0 || n._isVNode !== void 0 || n.isJSX !== void 0 || typeof n == `function`) return n;
|
|
9588
|
-
if (Array.isArray(n)) return n.map((n, i) => t$
|
|
9588
|
+
if (Array.isArray(n)) return n.map((n, i) => t$107(n, {
|
|
9589
9589
|
...r,
|
|
9590
9590
|
children: n,
|
|
9591
9591
|
keyPath: [...r.keyPath, {
|
|
9592
|
-
type: e$
|
|
9592
|
+
type: e$51.Array,
|
|
9593
9593
|
key: i
|
|
9594
9594
|
}]
|
|
9595
9595
|
}));
|
|
@@ -9599,54 +9599,54 @@ var t$113 = (n, r) => {
|
|
|
9599
9599
|
...r,
|
|
9600
9600
|
children: n[a],
|
|
9601
9601
|
keyPath: [...r.keyPath, {
|
|
9602
|
-
type: e$
|
|
9602
|
+
type: e$51.Object,
|
|
9603
9603
|
key: a
|
|
9604
9604
|
}]
|
|
9605
9605
|
};
|
|
9606
|
-
i[a] = t$
|
|
9606
|
+
i[a] = t$107(n[a], o);
|
|
9607
9607
|
}
|
|
9608
9608
|
return i;
|
|
9609
9609
|
};
|
|
9610
9610
|
//#endregion
|
|
9611
9611
|
//#region ../@intlayer/core/dist/esm/interpreter/getEnumeration.mjs
|
|
9612
|
-
var e$
|
|
9612
|
+
var e$50 = (e, t) => {
|
|
9613
9613
|
let n = Object.keys(e);
|
|
9614
9614
|
for (let e of n) {
|
|
9615
9615
|
let n = !e.startsWith(`>`) && !e.startsWith(`<`) && !e.startsWith(`=`) && parseFloat(e) === t || e.startsWith(`=`) && parseFloat(e.slice(1)) === t, r = e.startsWith(`>`) && t > parseFloat(e.slice(1)), i = e.startsWith(`>=`) && t >= parseFloat(e.slice(2)), a = e.startsWith(`<`) && t < parseFloat(e.slice(1)), o = e.startsWith(`<=`) && t <= parseFloat(e.slice(2));
|
|
9616
9616
|
if (n || r || i || a || o) return e;
|
|
9617
9617
|
}
|
|
9618
|
-
}, t$
|
|
9618
|
+
}, t$106 = (t, n) => t[e$50(t, n) ?? `fallback`];
|
|
9619
9619
|
//#endregion
|
|
9620
9620
|
//#region ../@intlayer/core/dist/esm/interpreter/getGender.mjs
|
|
9621
|
-
var e$
|
|
9621
|
+
var e$49 = (e) => e === `m` || e === `male` ? `male` : e === `f` || e === `female` ? `female` : `fallback`, t$105 = (t, n) => {
|
|
9622
9622
|
let r = Object.keys(t), i = r[r.length - 1];
|
|
9623
|
-
return t[e$
|
|
9623
|
+
return t[e$49(n)] ?? t.fallback ?? t[i];
|
|
9624
9624
|
};
|
|
9625
9625
|
//#endregion
|
|
9626
9626
|
//#region ../@intlayer/core/dist/esm/interpreter/getInsertion.mjs
|
|
9627
|
-
var e$
|
|
9627
|
+
var e$48 = (e, t) => e.replace(/\{\{\s*(.*?)\s*\}\}/g, (e, n) => (t[n.trim()] ?? ``).toString());
|
|
9628
9628
|
//#endregion
|
|
9629
9629
|
//#region ../@intlayer/core/dist/esm/interpreter/getTranslation.mjs
|
|
9630
|
-
var e$
|
|
9630
|
+
var e$47 = (e) => {
|
|
9631
9631
|
if (typeof e != `object` || !e || e instanceof Promise || typeof e.then == `function` || e.$$typeof !== void 0 || e.__v_isVNode !== void 0 || e._isVNode !== void 0 || e.isJSX !== void 0) return !1;
|
|
9632
9632
|
let t = Object.getPrototypeOf(e);
|
|
9633
9633
|
return t === Object.prototype || t === null || Array.isArray(e);
|
|
9634
|
-
}, t$
|
|
9634
|
+
}, t$104 = (n, r) => {
|
|
9635
9635
|
if (n === void 0) return r;
|
|
9636
9636
|
if (r === void 0 || Array.isArray(n)) return n;
|
|
9637
|
-
if (e$
|
|
9637
|
+
if (e$47(n) && e$47(r)) {
|
|
9638
9638
|
let e = { ...n };
|
|
9639
|
-
for (let i of Object.keys(r)) i === `__proto__` || i === `constructor` || (Object.hasOwn(n, i) ? e[i] = t$
|
|
9639
|
+
for (let i of Object.keys(r)) i === `__proto__` || i === `constructor` || (Object.hasOwn(n, i) ? e[i] = t$104(n[i], r[i]) : e[i] = r[i]);
|
|
9640
9640
|
return e;
|
|
9641
9641
|
}
|
|
9642
9642
|
return n;
|
|
9643
|
-
}, n$
|
|
9644
|
-
if (typeof t != `object` || !t || r.has(t) || (r.add(t), !e$
|
|
9645
|
-
if (Array.isArray(t)) return t.map((e) => n$
|
|
9643
|
+
}, n$112 = (t, r = /* @__PURE__ */ new WeakSet()) => {
|
|
9644
|
+
if (typeof t != `object` || !t || r.has(t) || (r.add(t), !e$47(t))) return t;
|
|
9645
|
+
if (Array.isArray(t)) return t.map((e) => n$112(e, r));
|
|
9646
9646
|
let i = {};
|
|
9647
|
-
for (let [e, a] of Object.entries(t)) a !== void 0 && (i[e] = n$
|
|
9647
|
+
for (let [e, a] of Object.entries(t)) a !== void 0 && (i[e] = n$112(a, r));
|
|
9648
9648
|
return i;
|
|
9649
|
-
}, r$
|
|
9649
|
+
}, r$113 = (e, r, i) => {
|
|
9650
9650
|
let a = [], o = (t) => e[t], s = o(r);
|
|
9651
9651
|
if (typeof s == `string`) return s;
|
|
9652
9652
|
if (s !== void 0 && a.push(s), r.includes(`-`)) {
|
|
@@ -9676,10 +9676,9 @@ var e$46 = (e) => {
|
|
|
9676
9676
|
}
|
|
9677
9677
|
}
|
|
9678
9678
|
if (a.length === 0) return;
|
|
9679
|
-
let c = a.filter((e) => e !== void 0).map((e) => n$
|
|
9680
|
-
return c.length === 1 || Array.isArray(c[0]) ? c[0] : c.reduce((e, n) => t$
|
|
9681
|
-
}
|
|
9682
|
-
var configuration_default = {
|
|
9679
|
+
let c = a.filter((e) => e !== void 0).map((e) => n$112(e));
|
|
9680
|
+
return c.length === 1 || Array.isArray(c[0]) ? c[0] : c.reduce((e, n) => t$104(e, n));
|
|
9681
|
+
}, configuration_default = {
|
|
9683
9682
|
internationalization: {
|
|
9684
9683
|
"locales": [
|
|
9685
9684
|
"en",
|
|
@@ -9720,34 +9719,29 @@ var configuration_default = {
|
|
|
9720
9719
|
},
|
|
9721
9720
|
metadata: {
|
|
9722
9721
|
"name": "Intlayer",
|
|
9723
|
-
"version": "8.4.
|
|
9722
|
+
"version": "8.4.3",
|
|
9724
9723
|
"doc": "https://intlayer.org/docs"
|
|
9725
9724
|
}
|
|
9726
|
-
};
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
if (i === `
|
|
9732
|
-
|
|
9733
|
-
if (
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9737
|
-
s(...f);
|
|
9738
|
-
}, i$91 = function(e) {
|
|
9739
|
-
return e.RESET = `\x1B[0m`, e.GREY = `\x1B[90m`, e.GREY_DARK = `\x1B[38;5;239m`, e.GREY_LIGHT = `\x1B[38;5;252m`, e.BLUE = `\x1B[34m`, e.RED = `\x1B[31m`, e.GREEN = `\x1B[32m`, e.YELLOW = `\x1B[38;5;226m`, e.MAGENTA = `\x1B[35m`, e.BEIGE = `\x1B[38;5;3m`, e.ORANGE = `\x1B[38;5;208m`, e.CYAN = `\x1B[36m`, e.WHITE = `\x1B[37m`, e.BOLD = `\x1B[1m`, e;
|
|
9740
|
-
}({}), o$79 = (e, t) => (n, i) => r$117(n, {
|
|
9741
|
-
...i ?? {},
|
|
9725
|
+
}, e$46 = `\x1B[0m`, i$87 = `\x1B[34m`, a$80 = `\x1B[31m`, o$76 = `\x1B[32m`, l$42 = `\x1B[38;5;3m`, o$75, c$46 = (e) => o$75 === void 0 ? e : o$75, l$41 = (e, t) => {
|
|
9726
|
+
let n = t?.isVerbose ?? !1, r = t?.config?.mode ?? `default`, i = t?.level ?? `info`, a = c$46(t?.config?.prefix), o = t?.config?.log ?? console.log, s = t?.config?.info ?? console.info, l = t?.config?.warn ?? console.warn, u = t?.config?.error ?? console.error, d = t?.config?.debug ?? console.debug;
|
|
9727
|
+
if (r === `disabled` || n && r !== `verbose`) return;
|
|
9728
|
+
let f = a ? [a, ...[e].flat()] : [e].flat();
|
|
9729
|
+
if (i === `debug`) return d(...f);
|
|
9730
|
+
if (i === `info`) return s(...f);
|
|
9731
|
+
if (i === `warn`) return l(...f);
|
|
9732
|
+
if (i === `error`) return u(...f);
|
|
9733
|
+
o(...f);
|
|
9734
|
+
}, d$32 = (e, t) => (n, r) => l$41(n, {
|
|
9735
|
+
...r ?? {},
|
|
9742
9736
|
config: {
|
|
9743
9737
|
...e?.log,
|
|
9744
9738
|
...t?.config,
|
|
9745
|
-
...
|
|
9739
|
+
...r?.config ?? {}
|
|
9746
9740
|
}
|
|
9747
|
-
}),
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9741
|
+
}), f$28 = (e, t, n) => t ? `${t}${e}${n ? typeof n == `boolean` ? e$46 : n : e$46}` : e, m$26 = (t, n = l$42, r = e$46) => [t].flat().map((e) => f$28(e, n, r)).join(`, `);
|
|
9742
|
+
f$28(`✗`, a$80);
|
|
9743
|
+
f$28(`✓`, o$76);
|
|
9744
|
+
f$28(`⏲`, i$87);
|
|
9751
9745
|
//#endregion
|
|
9752
9746
|
//#region .intlayer/main/dictionaries.mjs
|
|
9753
9747
|
var dictionaries = {};
|
|
@@ -9762,20 +9756,20 @@ var d$31 = (e, t, n = S$13(t)) => {
|
|
|
9762
9756
|
plugins: n
|
|
9763
9757
|
};
|
|
9764
9758
|
return C$13(e.content, r, n);
|
|
9765
|
-
}, f$
|
|
9759
|
+
}, f$27 = (e = ``) => new Proxy(() => e, {
|
|
9766
9760
|
get: (t, n) => {
|
|
9767
9761
|
if (n === `toJSON` || n === Symbol.toPrimitive || n === `toString`) return () => e;
|
|
9768
|
-
if (n !== `then`) return f$
|
|
9762
|
+
if (n !== `then`) return f$27(e ? `${e}.${String(n)}` : String(n));
|
|
9769
9763
|
},
|
|
9770
9764
|
apply: () => e
|
|
9771
|
-
}), p$
|
|
9765
|
+
}), p$26 = (e, t, n) => {
|
|
9772
9766
|
let r = getDictionaries()[e];
|
|
9773
|
-
return r ? d$31(r, t, n) : (
|
|
9767
|
+
return r ? d$31(r, t, n) : (d$32(configuration_default)(`Dictionary ${m$26(e)} was not found. Using fallback proxy.`, {
|
|
9774
9768
|
level: `warn`,
|
|
9775
9769
|
isVerbose: !0
|
|
9776
|
-
}), f$
|
|
9770
|
+
}), f$27(e));
|
|
9777
9771
|
}, m$25 = (e, t, n) => {
|
|
9778
|
-
let r = p$
|
|
9772
|
+
let r = p$26(e, n?.locale, n?.plugins);
|
|
9779
9773
|
if (typeof t == `string`) {
|
|
9780
9774
|
let e = t.split(`.`), n = r;
|
|
9781
9775
|
for (let t of e) if (n = n?.[t], n === void 0) return r;
|
|
@@ -9784,69 +9778,69 @@ var d$31 = (e, t, n = S$13(t)) => {
|
|
|
9784
9778
|
return r;
|
|
9785
9779
|
}, h$19 = (e, t) => ({
|
|
9786
9780
|
id: `translation-plugin`,
|
|
9787
|
-
canHandle: (e) => typeof e == `object` && e?.nodeType === e$
|
|
9781
|
+
canHandle: (e) => typeof e == `object` && e?.nodeType === e$51.Translation,
|
|
9788
9782
|
transform: (n, r, i) => {
|
|
9789
|
-
let s = { ...n[e$
|
|
9783
|
+
let s = { ...n[e$51.Translation] ?? {} };
|
|
9790
9784
|
for (let e in s) {
|
|
9791
9785
|
let t = {
|
|
9792
9786
|
...r,
|
|
9793
9787
|
children: s[e],
|
|
9794
9788
|
keyPath: [...r.keyPath, {
|
|
9795
|
-
type: e$
|
|
9789
|
+
type: e$51.Translation,
|
|
9796
9790
|
key: e
|
|
9797
9791
|
}]
|
|
9798
9792
|
};
|
|
9799
9793
|
s[e] = i(s[e], t);
|
|
9800
9794
|
}
|
|
9801
|
-
return r$
|
|
9795
|
+
return r$113(s, e, t);
|
|
9802
9796
|
}
|
|
9803
9797
|
}), g$19 = {
|
|
9804
9798
|
id: `enumeration-plugin`,
|
|
9805
|
-
canHandle: (e) => typeof e == `object` && e?.nodeType === e$
|
|
9799
|
+
canHandle: (e) => typeof e == `object` && e?.nodeType === e$51.Enumeration,
|
|
9806
9800
|
transform: (e, t, r) => {
|
|
9807
|
-
let i = { ...e[e$
|
|
9801
|
+
let i = { ...e[e$51.Enumeration] };
|
|
9808
9802
|
for (let e in i) {
|
|
9809
9803
|
let n = i[e];
|
|
9810
9804
|
i[e] = r(n, {
|
|
9811
9805
|
...t,
|
|
9812
9806
|
children: n,
|
|
9813
9807
|
keyPath: [...t.keyPath, {
|
|
9814
|
-
type: e$
|
|
9808
|
+
type: e$51.Enumeration,
|
|
9815
9809
|
key: e
|
|
9816
9810
|
}]
|
|
9817
9811
|
});
|
|
9818
9812
|
}
|
|
9819
9813
|
return (e) => {
|
|
9820
|
-
let t = t$
|
|
9814
|
+
let t = t$106(i, typeof e == `number` ? e : e.count);
|
|
9821
9815
|
return typeof t == `function` && typeof e == `object` ? t(e) : t;
|
|
9822
9816
|
};
|
|
9823
9817
|
}
|
|
9824
9818
|
}, _$18 = {
|
|
9825
9819
|
id: `condition-plugin`,
|
|
9826
|
-
canHandle: (e) => typeof e == `object` && e?.nodeType === e$
|
|
9820
|
+
canHandle: (e) => typeof e == `object` && e?.nodeType === e$51.Condition,
|
|
9827
9821
|
transform: (t, n, r) => {
|
|
9828
|
-
let i = { ...t[e$
|
|
9822
|
+
let i = { ...t[e$51.Condition] };
|
|
9829
9823
|
for (let e in i) {
|
|
9830
9824
|
let t = i[e];
|
|
9831
9825
|
i[e] = r(t, {
|
|
9832
9826
|
...n,
|
|
9833
9827
|
children: t,
|
|
9834
9828
|
keyPath: [...n.keyPath, {
|
|
9835
|
-
type: e$
|
|
9829
|
+
type: e$51.Condition,
|
|
9836
9830
|
key: e
|
|
9837
9831
|
}]
|
|
9838
9832
|
});
|
|
9839
9833
|
}
|
|
9840
9834
|
return (t) => {
|
|
9841
|
-
let n = e$
|
|
9835
|
+
let n = e$52(i, typeof t == `boolean` ? t : t.value);
|
|
9842
9836
|
return typeof n == `function` && typeof t == `object` ? n(t) : n;
|
|
9843
9837
|
};
|
|
9844
9838
|
}
|
|
9845
9839
|
}, v$18 = {
|
|
9846
9840
|
id: `insertion-plugin`,
|
|
9847
|
-
canHandle: (e) => typeof e == `object` && e?.nodeType === e$
|
|
9841
|
+
canHandle: (e) => typeof e == `object` && e?.nodeType === e$51.Insertion,
|
|
9848
9842
|
transform: (e, t, n) => {
|
|
9849
|
-
let r = [...t.keyPath, { type: e$
|
|
9843
|
+
let r = [...t.keyPath, { type: e$51.Insertion }], a = e[e$51.Insertion], s = {
|
|
9850
9844
|
id: `insertion-string-plugin`,
|
|
9851
9845
|
canHandle: (e) => typeof e == `string`,
|
|
9852
9846
|
transform: (e, n, r) => {
|
|
@@ -9856,7 +9850,7 @@ var d$31 = (e, t, n = S$13(t)) => {
|
|
|
9856
9850
|
plugins: [...(t.plugins ?? []).filter((e) => e.id !== `intlayer-node-plugin`)]
|
|
9857
9851
|
});
|
|
9858
9852
|
return (e) => {
|
|
9859
|
-
let o = e$
|
|
9853
|
+
let o = e$48(a, e);
|
|
9860
9854
|
return r(o, {
|
|
9861
9855
|
...n,
|
|
9862
9856
|
plugins: t.plugins,
|
|
@@ -9874,32 +9868,32 @@ var d$31 = (e, t, n = S$13(t)) => {
|
|
|
9874
9868
|
}
|
|
9875
9869
|
}, y$19 = {
|
|
9876
9870
|
id: `gender-plugin`,
|
|
9877
|
-
canHandle: (e) => typeof e == `object` && e?.nodeType === e$
|
|
9871
|
+
canHandle: (e) => typeof e == `object` && e?.nodeType === e$51.Gender,
|
|
9878
9872
|
transform: (e, t, n) => {
|
|
9879
|
-
let i = { ...e[e$
|
|
9873
|
+
let i = { ...e[e$51.Gender] };
|
|
9880
9874
|
for (let e in i) {
|
|
9881
9875
|
let r = i[e];
|
|
9882
9876
|
i[e] = n(r, {
|
|
9883
9877
|
...t,
|
|
9884
9878
|
children: r,
|
|
9885
9879
|
keyPath: [...t.keyPath, {
|
|
9886
|
-
type: e$
|
|
9880
|
+
type: e$51.Gender,
|
|
9887
9881
|
key: e
|
|
9888
9882
|
}]
|
|
9889
9883
|
});
|
|
9890
9884
|
}
|
|
9891
|
-
return (e) => t$
|
|
9885
|
+
return (e) => t$105(i, e);
|
|
9892
9886
|
}
|
|
9893
9887
|
}, b$14 = (e) => ({
|
|
9894
9888
|
id: `nested-plugin`,
|
|
9895
|
-
canHandle: (e) => typeof e == `object` && (e?.nodeType === e$
|
|
9889
|
+
canHandle: (e) => typeof e == `object` && (e?.nodeType === e$51.Nested || e?.nodeType === `nested`),
|
|
9896
9890
|
transform: (t, n) => m$25(t.nested.dictionaryKey, t.nested.path, {
|
|
9897
9891
|
...n,
|
|
9898
9892
|
locale: e ?? n.locale
|
|
9899
9893
|
})
|
|
9900
9894
|
}), x$14 = {
|
|
9901
9895
|
id: `file-plugin`,
|
|
9902
|
-
canHandle: (e) => typeof e == `object` && e?.nodeType === e$
|
|
9896
|
+
canHandle: (e) => typeof e == `object` && e?.nodeType === e$51.File,
|
|
9903
9897
|
transform: (e, t, n) => n(e.content, {
|
|
9904
9898
|
...t,
|
|
9905
9899
|
children: e.content
|
|
@@ -9912,18 +9906,18 @@ var d$31 = (e, t, n = S$13(t)) => {
|
|
|
9912
9906
|
b$14(e ?? configuration_default.internationalization.defaultLocale),
|
|
9913
9907
|
x$14,
|
|
9914
9908
|
y$19
|
|
9915
|
-
], C$13 = (e, n, r = []) => t$
|
|
9909
|
+
], C$13 = (e, n, r = []) => t$107(e, {
|
|
9916
9910
|
...n,
|
|
9917
9911
|
plugins: r
|
|
9918
9912
|
});
|
|
9919
9913
|
//#endregion
|
|
9920
9914
|
//#region ../@intlayer/core/dist/esm/interpreter/getHTML.mjs
|
|
9921
|
-
var e$
|
|
9915
|
+
var e$45 = (e) => {
|
|
9922
9916
|
let t = {}, n = /([a-zA-Z0-9-]+)="([^"]*)"/g, r = n.exec(e);
|
|
9923
9917
|
for (; r !== null;) t[r[1]] = r[2], r = n.exec(e);
|
|
9924
9918
|
return t;
|
|
9925
|
-
}, t$
|
|
9926
|
-
if (t$
|
|
9919
|
+
}, t$102 = /* @__PURE__ */ new Map(), n$110 = (n) => {
|
|
9920
|
+
if (t$102.has(n)) return t$102.get(n);
|
|
9927
9921
|
if (typeof n != `string`) return [];
|
|
9928
9922
|
let r = /<(\/)?([a-zA-Z0-9.-]+)([\s\S]*?)(\/?)>/g, i = [], a = [], o = 0, s = r.exec(n), c = (e) => {
|
|
9929
9923
|
(a.length > 0 ? a[a.length - 1].children : i).push(e);
|
|
@@ -9944,11 +9938,11 @@ var e$44 = (e) => {
|
|
|
9944
9938
|
}
|
|
9945
9939
|
} else if (m) c({
|
|
9946
9940
|
tagName: l,
|
|
9947
|
-
props: e$
|
|
9941
|
+
props: e$45(h),
|
|
9948
9942
|
children: []
|
|
9949
9943
|
});
|
|
9950
9944
|
else {
|
|
9951
|
-
let t = e$
|
|
9945
|
+
let t = e$45(h);
|
|
9952
9946
|
a.push({
|
|
9953
9947
|
tagName: l,
|
|
9954
9948
|
children: [],
|
|
@@ -9965,9 +9959,9 @@ var e$44 = (e) => {
|
|
|
9965
9959
|
children: e.children
|
|
9966
9960
|
});
|
|
9967
9961
|
}
|
|
9968
|
-
return t$
|
|
9969
|
-
}, r$
|
|
9970
|
-
let r = n$
|
|
9962
|
+
return t$102.set(n, i), i;
|
|
9963
|
+
}, r$111 = (e, t) => {
|
|
9964
|
+
let r = n$110(e), i = 0, a = (e) => {
|
|
9971
9965
|
if (typeof e == `string`) return e;
|
|
9972
9966
|
let { tagName: n, props: r, children: o } = e, s = o.flatMap(a), c = i++, l = t[n];
|
|
9973
9967
|
if (!l) {
|
|
@@ -10003,9 +9997,9 @@ var e$44 = (e) => {
|
|
|
10003
9997
|
};
|
|
10004
9998
|
//#endregion
|
|
10005
9999
|
//#region ../@intlayer/core/dist/esm/interpreter/splitAndJoinInsertion.mjs
|
|
10006
|
-
var e$
|
|
10000
|
+
var e$44 = (e) => e != null && typeof e != `string` && typeof e != `number` && typeof e != `boolean`, t$101 = (t, n = {}) => {
|
|
10007
10001
|
let r = n ?? {};
|
|
10008
|
-
if (!Object.values(r).some(e$
|
|
10002
|
+
if (!Object.values(r).some(e$44)) return {
|
|
10009
10003
|
isSimple: !0,
|
|
10010
10004
|
parts: t.replace(/\{\{\s*(.*?)\s*\}\}/g, (e, t) => (r[t.trim()] ?? ``).toString())
|
|
10011
10005
|
};
|
|
@@ -10022,7 +10016,7 @@ var e$43 = (e) => e != null && typeof e != `string` && typeof e != `number` && t
|
|
|
10022
10016
|
};
|
|
10023
10017
|
//#endregion
|
|
10024
10018
|
//#region ../@intlayer/core/dist/esm/transpiler/html/htmlTags.mjs
|
|
10025
|
-
var e$
|
|
10019
|
+
var e$43 = `html.head.body.main.header.footer.nav.aside.article.section.div.span.h1.h2.h3.h4.h5.h6.p.a.strong.b.em.i.u.s.del.ins.mark.small.sub.sup.code.pre.blockquote.q.cite.abbr.address.time.kbd.samp.var.ul.ol.li.dl.dt.dd.table.thead.tbody.tfoot.tr.th.td.caption.colgroup.col.form.input.textarea.button.select.option.optgroup.label.fieldset.legend.datalist.output.progress.meter.img.video.audio.source.track.picture.figure.figcaption.iframe.embed.object.canvas.svg.details.summary.dialog.br.hr.wbr.ruby.rt.rp.bdi.bdo.data.template.slot`.split(`.`), e$42 = (e) => {
|
|
10026
10020
|
let t = e.trim();
|
|
10027
10021
|
if (!t) return null;
|
|
10028
10022
|
let n = 0, r = (e) => e === ` ` || e === `
|
|
@@ -10255,7 +10249,7 @@ var e$42 = `html.head.body.main.header.footer.nav.aside.article.section.div.span
|
|
|
10255
10249
|
let x = f([]);
|
|
10256
10250
|
if (s(), !o()) throw SyntaxError(`Unexpected trailing characters`);
|
|
10257
10251
|
return x;
|
|
10258
|
-
}, t$
|
|
10252
|
+
}, t$100 = (t) => {
|
|
10259
10253
|
try {
|
|
10260
10254
|
let n = t.split(/\r?\n/), r = n.find((e) => e.trim() !== ``);
|
|
10261
10255
|
if (!r || r.trim() !== `---`) return {};
|
|
@@ -10264,16 +10258,16 @@ var e$42 = `html.head.body.main.header.footer.nav.aside.article.section.div.span
|
|
|
10264
10258
|
i = e;
|
|
10265
10259
|
break;
|
|
10266
10260
|
}
|
|
10267
|
-
return i === -1 ? {} : e$
|
|
10261
|
+
return i === -1 ? {} : e$42(n.slice(1, i).join(`
|
|
10268
10262
|
`)) ?? {};
|
|
10269
10263
|
} catch {
|
|
10270
10264
|
return {};
|
|
10271
10265
|
}
|
|
10272
|
-
}, o$
|
|
10266
|
+
}, o$74 = (() => {
|
|
10273
10267
|
let e = {};
|
|
10274
|
-
for (let t of e$
|
|
10268
|
+
for (let t of e$43) e[t] = ({ children: e, ...n }) => (0, import_react.createElement)(t, n, e);
|
|
10275
10269
|
return e;
|
|
10276
|
-
})(), e$
|
|
10270
|
+
})(), e$41 = {
|
|
10277
10271
|
blockQuote: `0`,
|
|
10278
10272
|
breakLine: `1`,
|
|
10279
10273
|
breakThematic: `2`,
|
|
@@ -10308,16 +10302,16 @@ var e$42 = `html.head.body.main.header.footer.nav.aside.article.section.div.span
|
|
|
10308
10302
|
textMarked: `31`,
|
|
10309
10303
|
textStrikethroughed: `32`,
|
|
10310
10304
|
unorderedList: `33`
|
|
10311
|
-
}, t$
|
|
10305
|
+
}, t$99 = {
|
|
10312
10306
|
MAX: 0,
|
|
10313
10307
|
HIGH: 1,
|
|
10314
10308
|
MED: 2,
|
|
10315
10309
|
LOW: 3,
|
|
10316
10310
|
MIN: 4
|
|
10317
|
-
}, r$
|
|
10311
|
+
}, r$109 = `allowFullScreen.allowTransparency.autoComplete.autoFocus.autoPlay.cellPadding.cellSpacing.charSet.classId.colSpan.contentEditable.contextMenu.crossOrigin.encType.formAction.formEncType.formMethod.formNoValidate.formTarget.frameBorder.hrefLang.inputMode.keyParams.keyType.marginHeight.marginWidth.maxLength.mediaGroup.minLength.noValidate.radioGroup.readOnly.rowSpan.spellCheck.srcDoc.srcLang.srcSet.tabIndex.useMap`.split(`.`).reduce((e, t) => (e[t.toLowerCase()] = t, e), {
|
|
10318
10312
|
class: `className`,
|
|
10319
10313
|
for: `htmlFor`
|
|
10320
|
-
}), i$
|
|
10314
|
+
}), i$85 = {
|
|
10321
10315
|
amp: `&`,
|
|
10322
10316
|
apos: `'`,
|
|
10323
10317
|
gt: `>`,
|
|
@@ -10335,17 +10329,17 @@ var e$42 = `html.head.body.main.header.footer.nav.aside.article.section.div.span
|
|
|
10335
10329
|
`formAction`,
|
|
10336
10330
|
`srcDoc`,
|
|
10337
10331
|
`action`
|
|
10338
|
-
], ne$2 = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, re$2 = /\n{2,}$/, ie$2 = /^(\s*>[\s\S]*?)(?=\n\n|$)/, ae$2 = /^ *> ?/gm, oe$2 = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, se$2 = /^ {2,}\n/, a$
|
|
10332
|
+
], ne$2 = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, re$2 = /\n{2,}$/, ie$2 = /^(\s*>[\s\S]*?)(?=\n\n|$)/, ae$2 = /^ *> ?/gm, oe$2 = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, se$2 = /^ {2,}\n/, a$79 = /^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/, o$73 = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, s$56 = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, c$44 = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, l$39 = /^(?:\n *)*\n/, u$38 = /\r\n?/g, d$30 = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, f$26 = /^\[\^([^\]]+)]/, p$25 = /\f/g, m$24 = /^---[ \t]*\n(.|\n)*?\n---[ \t]*\n/, h$18 = /^\s*?\[(x|\s)\]/, g$18 = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, _$17 = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, v$17 = /^([^\n]+)\n *(=|-)\2{2,} *\n/, y$18 = /^ *(?!<[a-zA-Z][^ >/]* ?\/>)<([a-zA-Z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, b$13 = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, x$13 = /^<!--[\s\S]*?(?:-->)/, S$12 = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, C$12 = /^ *<([a-zA-Z][a-zA-Z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, w$10 = /^ *<([A-Z][a-zA-Z0-9]*)(?:\s+((?:<.*?>|[^>])*))?>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/, T$9 = /^\{.*\}$/, E$6 = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, D$6 = /^<([^ >]+[:@/][^ >]+)>/, O$5 = /-([a-z])?/gi, k$8 = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, A$5 = /(^ *\||\| *$)/g, j$5 = /^ *:-+: *$/, M$5 = /^ *:-+ *$/, N$6 = /^ *-+: *$/, P$6 = /^[^\n]+(?: {2}\n|\n{2,})/, F$4 = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, I$5 = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, L$6 = /^\[([^\]]*)\] ?\[([^\]]*)\]/, R$6 = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, z$5 = /\t/g, B$7 = /^\n+/, ce$3 = /^\n*([ \t]*)/, V$5 = /(?:^|\n)( *)$/, H$6 = `(?:\\d+\\.)`, U$4 = `(?:[*+-])`, W$4 = /^\\([^0-9A-Za-z\s])/, G$4 = /\\([^0-9A-Za-z\s])/g, le$3 = /^[\s\S](?:(?! {2}\n|[0-9]\.|http)[^=*_~\-\n:<`\\[!])*/, ue$3 = /^(:[a-zA-Z0-9-_]+:)/, K$5 = (e) => `(?=[\\s\\S]+?\\1${e ? `\\1` : ``})`, q$3 = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\[^\\s]|[\\s\\S])+?)", pe$3 = RegExp(`^([*_])\\1${K$5(1)}${q$3}\\1\\1(?!\\1)`), me$3 = RegExp(`^([*_])${K$5(0)}${q$3}\\1(?!\\1)`), he$3 = RegExp(`^(==)${K$5(0)}${q$3}\\1`), ge$2 = RegExp(`^(~~)${K$5(0)}${q$3}\\1`), J$4 = (e) => `( *)(` + (e === 1 ? H$6 : U$4) + `) +`, Y$5 = J$4(1), X$5 = J$4(2), Z$5 = (e) => RegExp(`^` + (e === 1 ? Y$5 : X$5)), _e$3 = Z$5(1), ve$3 = Z$5(2), Q$3 = (e) => RegExp(`^` + (e === 1 ? Y$5 : X$5) + `[^\\n]*(?:\\n(?!\\1` + (e === 1 ? H$6 : U$4) + ` )[^\\n]*)*(\\n|$)`, `gm`), ye$3 = Q$3(1), be$3 = Q$3(2), $$6 = (e) => {
|
|
10339
10333
|
let t = e === 1 ? H$6 : U$4;
|
|
10340
10334
|
return RegExp(`^( *)(` + t + `) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1` + t + ` (?!` + t + ` ))\\n*|\\s*\\n*$)`);
|
|
10341
10335
|
}, xe$3 = $$6(1), Se$3 = $$6(2);
|
|
10342
10336
|
//#endregion
|
|
10343
10337
|
//#region ../@intlayer/core/dist/esm/markdown/utils.mjs
|
|
10344
|
-
var f$
|
|
10338
|
+
var f$25 = (e) => {
|
|
10345
10339
|
let t = e.length;
|
|
10346
10340
|
for (; t > 0 && e[t - 1] <= ` `;) t--;
|
|
10347
10341
|
return e.slice(0, t);
|
|
10348
|
-
}, p$
|
|
10342
|
+
}, p$24 = (e, t) => e.startsWith(t), m$23 = (e) => {
|
|
10349
10343
|
let t = e[0];
|
|
10350
10344
|
return (t === `"` || t === `'`) && e.length >= 2 && e[e.length - 1] === t ? e.slice(1, -1) : e;
|
|
10351
10345
|
}, h$17 = (e) => e && e.replace(G$4, `$1`), g$17 = (...e) => e.filter(Boolean).join(` `), _$16 = (e, t, n) => {
|
|
@@ -10361,8 +10355,8 @@ var f$26 = (e) => {
|
|
|
10361
10355
|
}
|
|
10362
10356
|
return e;
|
|
10363
10357
|
}, x$12 = (e) => {
|
|
10364
|
-
let t = performance.now(), i = e.replace(u$
|
|
10365
|
-
`).replace(p$
|
|
10358
|
+
let t = performance.now(), i = e.replace(u$38, `
|
|
10359
|
+
`).replace(p$25, ``).replace(z$5, ` `), a = performance.now() - t;
|
|
10366
10360
|
return a > 20 && console.log(`normalizeWhitespace: ${a.toFixed(3)}ms, source length: ${e.length}`), i;
|
|
10367
10361
|
}, S$11 = (e, t) => {
|
|
10368
10362
|
let n = performance.now();
|
|
@@ -10435,7 +10429,7 @@ var f$26 = (e) => {
|
|
|
10435
10429
|
return o > 20 && console.log(`parseTableCells: ${o.toFixed(3)}ms, source length: ${e.length}, rows count: ${i.length}`), a;
|
|
10436
10430
|
}, A$4 = (e, t, n) => {
|
|
10437
10431
|
if (Array.isArray(n)) {
|
|
10438
|
-
for (let t = 0; t < n.length; t++) if (p$
|
|
10432
|
+
for (let t = 0; t < n.length; t++) if (p$24(e, n[t])) return !0;
|
|
10439
10433
|
return !1;
|
|
10440
10434
|
}
|
|
10441
10435
|
return n(e, t);
|
|
@@ -10456,7 +10450,7 @@ var f$26 = (e) => {
|
|
|
10456
10450
|
}, R$5 = (e, t, n = {}) => {
|
|
10457
10451
|
let r = performance.now(), i = n.inline || !1;
|
|
10458
10452
|
n.inline = !1;
|
|
10459
|
-
let a = f$
|
|
10453
|
+
let a = f$25(t), o = e(/\n\n$/.test(a) === !1 ? a.endsWith(`
|
|
10460
10454
|
`) ? `${a}\n` : `${a}\n\n` : a, n);
|
|
10461
10455
|
n.inline = i;
|
|
10462
10456
|
let s = performance.now() - r;
|
|
@@ -10467,7 +10461,7 @@ var f$26 = (e) => {
|
|
|
10467
10461
|
};
|
|
10468
10462
|
//#endregion
|
|
10469
10463
|
//#region ../@intlayer/core/dist/esm/markdown/parser.mjs
|
|
10470
|
-
var n$
|
|
10464
|
+
var n$107 = (n) => {
|
|
10471
10465
|
let r = performance.now(), i = Object.keys(n);
|
|
10472
10466
|
i.sort((e, t) => n[e]._order - n[t]._order || (e < t ? -1 : 1));
|
|
10473
10467
|
let a = (e, r = {}) => {
|
|
@@ -10494,8 +10488,8 @@ var n$115 = (n) => {
|
|
|
10494
10488
|
return c > 1 && console.log(`nestedParse: ${c.toFixed(3)}ms, source length: ${e.length}, result count: ${s.length}`), s;
|
|
10495
10489
|
}, o = performance.now() - r;
|
|
10496
10490
|
return o > 20 && console.log(`parserFor: ${o.toFixed(3)}ms, rules count: ${i.length}`), (t, n) => a(x$12(t), n);
|
|
10497
|
-
}, e$
|
|
10498
|
-
let i = performance.now(), a = (n, r = {}) => e$
|
|
10491
|
+
}, e$40 = (t) => (n, r = {}) => {
|
|
10492
|
+
let i = performance.now(), a = (n, r = {}) => e$40(t)(n, r);
|
|
10499
10493
|
if (Array.isArray(n)) {
|
|
10500
10494
|
let e = r.key, t = [], o = !1, s = 0;
|
|
10501
10495
|
for (let e = 0; e < n.length; e++) {
|
|
@@ -10511,7 +10505,7 @@ var n$115 = (n) => {
|
|
|
10511
10505
|
}
|
|
10512
10506
|
let o = t(n, a, r), s = performance.now() - i;
|
|
10513
10507
|
return s > 20 && console.log(`renderFor (single): ${s.toFixed(3)}ms, ast type: ${n.type}`), o;
|
|
10514
|
-
}, t$
|
|
10508
|
+
}, t$98 = (e, t) => (n, r, i) => {
|
|
10515
10509
|
let a = performance.now(), o = e[n.type]?._render, s = t ? t(() => o?.(n, r, i), n, r, i) : o?.(n, r, i), c = performance.now() - a;
|
|
10516
10510
|
return c > 20 && console.log(`createRenderer: ${c.toFixed(3)}ms, ast type: ${n.type}, hasUserRender: ${!!t}`), s;
|
|
10517
10511
|
}, Oe$2 = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, ke$3 = RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Ae$2 = (e, t) => {
|
|
@@ -10549,9 +10543,9 @@ var n$115 = (n) => {
|
|
|
10549
10543
|
};
|
|
10550
10544
|
}, Me$3 = (e, t, g, O, j, M, I, z) => {
|
|
10551
10545
|
let B = (e) => t.slugify ? t.slugify(e, v$16) : v$16(e), H = t.sanitizer ?? b$12, Ee = t.namedCodesToUnicode ? {
|
|
10552
|
-
...i$
|
|
10546
|
+
...i$85,
|
|
10553
10547
|
...t.namedCodesToUnicode
|
|
10554
|
-
} : i$
|
|
10548
|
+
} : i$85, Z = (t) => {
|
|
10555
10549
|
let n = t === 1, r = n ? xe$3 : Se$3, i = n ? ye$3 : be$3, o = n ? _e$3 : ve$3;
|
|
10556
10550
|
return {
|
|
10557
10551
|
_qualify: (e) => o.test(e),
|
|
@@ -10563,7 +10557,7 @@ var n$115 = (n) => {
|
|
|
10563
10557
|
}
|
|
10564
10558
|
return null;
|
|
10565
10559
|
}),
|
|
10566
|
-
_order: t$
|
|
10560
|
+
_order: t$99.HIGH,
|
|
10567
10561
|
_parse(e, t, r) {
|
|
10568
10562
|
let s = e[2], c = n ? +s.slice(0, -1) : void 0, l = e[0].replace(re$2, `
|
|
10569
10563
|
`).match(i);
|
|
@@ -10582,7 +10576,7 @@ var n$115 = (n) => {
|
|
|
10582
10576
|
let p = r.inline, m = r.list;
|
|
10583
10577
|
r.list = !0;
|
|
10584
10578
|
let h;
|
|
10585
|
-
f ? (r.inline = !1, h = `${f$
|
|
10579
|
+
f ? (r.inline = !1, h = `${f$25(c)}\n\n`) : (r.inline = !0, h = f$25(c));
|
|
10586
10580
|
let g = t(h, r);
|
|
10587
10581
|
return r.inline = p, r.list = m, g;
|
|
10588
10582
|
}),
|
|
@@ -10610,7 +10604,7 @@ var n$115 = (n) => {
|
|
|
10610
10604
|
}
|
|
10611
10605
|
let r = e.slice(0, n);
|
|
10612
10606
|
if (r === ``) return null;
|
|
10613
|
-
let i = f$
|
|
10607
|
+
let i = f$25(r);
|
|
10614
10608
|
return i === `` ? null : [
|
|
10615
10609
|
r,
|
|
10616
10610
|
void 0,
|
|
@@ -10618,10 +10612,10 @@ var n$115 = (n) => {
|
|
|
10618
10612
|
];
|
|
10619
10613
|
};
|
|
10620
10614
|
return {
|
|
10621
|
-
[e$
|
|
10615
|
+
[e$41.blockQuote]: {
|
|
10622
10616
|
_qualify: [`>`],
|
|
10623
10617
|
_match: P$5(ie$2),
|
|
10624
|
-
_order: t$
|
|
10618
|
+
_order: t$99.HIGH,
|
|
10625
10619
|
_parse(e, t, r) {
|
|
10626
10620
|
let a = e[0].replace(ae$2, ``).match(oe$2), o = a?.[1], s = a?.[2] ?? ``;
|
|
10627
10621
|
return {
|
|
@@ -10635,25 +10629,25 @@ var n$115 = (n) => {
|
|
|
10635
10629
|
return t.alert && (i.className = `markdown-alert-${B(t.alert.toLowerCase())}`, t.children.unshift({
|
|
10636
10630
|
attrs: {},
|
|
10637
10631
|
children: [{
|
|
10638
|
-
type: e$
|
|
10632
|
+
type: e$41.text,
|
|
10639
10633
|
text: t.alert
|
|
10640
10634
|
}],
|
|
10641
10635
|
noInnerParse: !0,
|
|
10642
|
-
type: e$
|
|
10636
|
+
type: e$41.htmlBlock,
|
|
10643
10637
|
tag: `header`
|
|
10644
10638
|
})), e(`blockquote`, i, n(t.children, r));
|
|
10645
10639
|
}
|
|
10646
10640
|
},
|
|
10647
|
-
[e$
|
|
10641
|
+
[e$41.breakLine]: {
|
|
10648
10642
|
_qualify: [` `],
|
|
10649
10643
|
_match: F$3(se$2),
|
|
10650
|
-
_order: t$
|
|
10644
|
+
_order: t$99.HIGH,
|
|
10651
10645
|
_parse: B$6,
|
|
10652
10646
|
_render(t, n, r = {}) {
|
|
10653
10647
|
return e(`br`, { key: r.key });
|
|
10654
10648
|
}
|
|
10655
10649
|
},
|
|
10656
|
-
[e$
|
|
10650
|
+
[e$41.breakThematic]: {
|
|
10657
10651
|
_qualify: [
|
|
10658
10652
|
`--`,
|
|
10659
10653
|
`__`,
|
|
@@ -10662,22 +10656,22 @@ var n$115 = (n) => {
|
|
|
10662
10656
|
`* `,
|
|
10663
10657
|
`_ `
|
|
10664
10658
|
],
|
|
10665
|
-
_match: P$5(a$
|
|
10666
|
-
_order: t$
|
|
10659
|
+
_match: P$5(a$79),
|
|
10660
|
+
_order: t$99.HIGH,
|
|
10667
10661
|
_parse: B$6,
|
|
10668
10662
|
_render(t, n, r = {}) {
|
|
10669
10663
|
return e(`hr`, { key: r.key });
|
|
10670
10664
|
}
|
|
10671
10665
|
},
|
|
10672
|
-
[e$
|
|
10666
|
+
[e$41.codeBlock]: {
|
|
10673
10667
|
_qualify: [` `],
|
|
10674
|
-
_match: P$5(s$
|
|
10675
|
-
_order: t$
|
|
10668
|
+
_match: P$5(s$56),
|
|
10669
|
+
_order: t$99.MAX,
|
|
10676
10670
|
_parse(e) {
|
|
10677
10671
|
return {
|
|
10678
|
-
type: e$
|
|
10672
|
+
type: e$41.codeBlock,
|
|
10679
10673
|
lang: void 0,
|
|
10680
|
-
text: h$17(f$
|
|
10674
|
+
text: h$17(f$25(e[0].replace(/^ {4}/gm, ``)))
|
|
10681
10675
|
};
|
|
10682
10676
|
},
|
|
10683
10677
|
_render(t, n, r = {}) {
|
|
@@ -10685,23 +10679,23 @@ var n$115 = (n) => {
|
|
|
10685
10679
|
return i.className = i.className ? `${i.className} ${a}` : a, t.lang && !i.lang && (i.lang = t.lang), e(`pre`, { key: r.key }, e(`code`, i, t.text));
|
|
10686
10680
|
}
|
|
10687
10681
|
},
|
|
10688
|
-
[e$
|
|
10682
|
+
[e$41.codeFenced]: {
|
|
10689
10683
|
_qualify: ["```", `~~~`],
|
|
10690
|
-
_match: P$5(o$
|
|
10691
|
-
_order: t$
|
|
10684
|
+
_match: P$5(o$73),
|
|
10685
|
+
_order: t$99.MAX,
|
|
10692
10686
|
_parse(e) {
|
|
10693
10687
|
return {
|
|
10694
10688
|
attrs: M(`code`, e[3] ?? ``),
|
|
10695
10689
|
lang: e[2] || void 0,
|
|
10696
10690
|
text: e[4],
|
|
10697
|
-
type: e$
|
|
10691
|
+
type: e$41.codeBlock
|
|
10698
10692
|
};
|
|
10699
10693
|
}
|
|
10700
10694
|
},
|
|
10701
|
-
[e$
|
|
10695
|
+
[e$41.codeInline]: {
|
|
10702
10696
|
_qualify: ["`"],
|
|
10703
|
-
_match: N$5(c$
|
|
10704
|
-
_order: t$
|
|
10697
|
+
_match: N$5(c$44),
|
|
10698
|
+
_order: t$99.LOW,
|
|
10705
10699
|
_parse(e) {
|
|
10706
10700
|
return { text: h$17(e[2]) };
|
|
10707
10701
|
},
|
|
@@ -10709,10 +10703,10 @@ var n$115 = (n) => {
|
|
|
10709
10703
|
return e(`code`, { key: r.key }, t.text);
|
|
10710
10704
|
}
|
|
10711
10705
|
},
|
|
10712
|
-
[e$
|
|
10706
|
+
[e$41.footnote]: {
|
|
10713
10707
|
_qualify: [`[^`],
|
|
10714
10708
|
_match: P$5(d$30),
|
|
10715
|
-
_order: t$
|
|
10709
|
+
_order: t$99.MAX,
|
|
10716
10710
|
_parse(e) {
|
|
10717
10711
|
return O.push({
|
|
10718
10712
|
footnote: e[2],
|
|
@@ -10721,10 +10715,10 @@ var n$115 = (n) => {
|
|
|
10721
10715
|
},
|
|
10722
10716
|
_render: V$4
|
|
10723
10717
|
},
|
|
10724
|
-
[e$
|
|
10718
|
+
[e$41.footnoteReference]: {
|
|
10725
10719
|
_qualify: [`[^`],
|
|
10726
|
-
_match: M$4(f$
|
|
10727
|
-
_order: t$
|
|
10720
|
+
_match: M$4(f$26),
|
|
10721
|
+
_order: t$99.HIGH,
|
|
10728
10722
|
_parse(e) {
|
|
10729
10723
|
return {
|
|
10730
10724
|
target: `#${B(e[1])}`,
|
|
@@ -10738,10 +10732,10 @@ var n$115 = (n) => {
|
|
|
10738
10732
|
}, e(`sup`, { key: r.key }, t.text));
|
|
10739
10733
|
}
|
|
10740
10734
|
},
|
|
10741
|
-
[e$
|
|
10735
|
+
[e$41.gfmTask]: {
|
|
10742
10736
|
_qualify: [`[ ]`, `[x]`],
|
|
10743
10737
|
_match: M$4(h$18),
|
|
10744
|
-
_order: t$
|
|
10738
|
+
_order: t$99.HIGH,
|
|
10745
10739
|
_parse(e) {
|
|
10746
10740
|
return { completed: e[1].toLowerCase() === `x` };
|
|
10747
10741
|
},
|
|
@@ -10754,10 +10748,10 @@ var n$115 = (n) => {
|
|
|
10754
10748
|
});
|
|
10755
10749
|
}
|
|
10756
10750
|
},
|
|
10757
|
-
[e$
|
|
10751
|
+
[e$41.heading]: {
|
|
10758
10752
|
_qualify: [`#`],
|
|
10759
10753
|
_match: P$5(g.enforceAtxHeadings ? _$17 : g$18),
|
|
10760
|
-
_order: t$
|
|
10754
|
+
_order: t$99.HIGH,
|
|
10761
10755
|
_parse(e, t, n) {
|
|
10762
10756
|
return {
|
|
10763
10757
|
children: I$4(t, e[2], n),
|
|
@@ -10772,23 +10766,23 @@ var n$115 = (n) => {
|
|
|
10772
10766
|
}, n(t.children, r));
|
|
10773
10767
|
}
|
|
10774
10768
|
},
|
|
10775
|
-
[e$
|
|
10769
|
+
[e$41.headingSetext]: {
|
|
10776
10770
|
_qualify: (e) => {
|
|
10777
10771
|
let t = e.indexOf(`
|
|
10778
10772
|
`);
|
|
10779
10773
|
return t > 0 && t < e.length - 1 && (e[t + 1] === `=` || e[t + 1] === `-`);
|
|
10780
10774
|
},
|
|
10781
10775
|
_match: P$5(v$17),
|
|
10782
|
-
_order: t$
|
|
10776
|
+
_order: t$99.MAX,
|
|
10783
10777
|
_parse(e, t, n) {
|
|
10784
10778
|
return {
|
|
10785
10779
|
children: I$4(t, e[1], n),
|
|
10786
10780
|
level: e[2] === `=` ? 1 : 2,
|
|
10787
|
-
type: e$
|
|
10781
|
+
type: e$41.heading
|
|
10788
10782
|
};
|
|
10789
10783
|
}
|
|
10790
10784
|
},
|
|
10791
|
-
[e$
|
|
10785
|
+
[e$41.htmlBlock]: {
|
|
10792
10786
|
_qualify: (e) => {
|
|
10793
10787
|
if (g.disableParsingRawHTML) return !1;
|
|
10794
10788
|
let t = e.match(/^ *<([a-z][a-z0-9:-]*)\b/i);
|
|
@@ -10797,7 +10791,7 @@ var n$115 = (n) => {
|
|
|
10797
10791
|
return e.toLowerCase().indexOf(`</${n.toLowerCase()}>`) !== -1;
|
|
10798
10792
|
},
|
|
10799
10793
|
_match: F$3(y$18),
|
|
10800
|
-
_order: t$
|
|
10794
|
+
_order: t$99.HIGH,
|
|
10801
10795
|
_parse(e, t, n) {
|
|
10802
10796
|
let r = e[3].match(ce$3)?.[1] ?? ``, i = S$11(e[3], r), a = I(i) ? R$5 : I$4, o = e[1].trim(), s = ee$2.indexOf(o.toLowerCase()) !== -1, c = s ? o.toLowerCase() : o, l = {
|
|
10803
10797
|
attrs: M(c, e[2] ?? ``),
|
|
@@ -10818,17 +10812,17 @@ var n$115 = (n) => {
|
|
|
10818
10812
|
}, t.text ?? (t.children ? n(t.children, r) : ``));
|
|
10819
10813
|
}
|
|
10820
10814
|
},
|
|
10821
|
-
[e$
|
|
10815
|
+
[e$41.htmlComment]: {
|
|
10822
10816
|
_qualify: [`<!`],
|
|
10823
10817
|
_match: F$3(x$13),
|
|
10824
|
-
_order: t$
|
|
10818
|
+
_order: t$99.HIGH,
|
|
10825
10819
|
_parse: B$6,
|
|
10826
10820
|
_render: V$4
|
|
10827
10821
|
},
|
|
10828
|
-
[e$
|
|
10822
|
+
[e$41.htmlSelfClosing]: {
|
|
10829
10823
|
_qualify: (e) => g.disableParsingRawHTML ? !1 : /^ *<([a-zA-Z][a-zA-Z0-9:]*)[\s>/]/.test(e),
|
|
10830
10824
|
_match: F$3(C$12),
|
|
10831
|
-
_order: t$
|
|
10825
|
+
_order: t$99.HIGH,
|
|
10832
10826
|
_parse(e) {
|
|
10833
10827
|
let t = e[1].trim();
|
|
10834
10828
|
return {
|
|
@@ -10843,10 +10837,10 @@ var n$115 = (n) => {
|
|
|
10843
10837
|
});
|
|
10844
10838
|
}
|
|
10845
10839
|
},
|
|
10846
|
-
[e$
|
|
10840
|
+
[e$41.customComponent]: {
|
|
10847
10841
|
_qualify: (e) => /^ *<([A-Z][a-zA-Z0-9]*)/.test(e),
|
|
10848
10842
|
_match: F$3(w$10),
|
|
10849
|
-
_order: t$
|
|
10843
|
+
_order: t$99.MAX,
|
|
10850
10844
|
_parse(e, t, n) {
|
|
10851
10845
|
let r = e[3].match(ce$3)?.[1] ?? ``, i = S$11(e[3], r), a = I(i) ? R$5 : I$4, o = e[1].trim(), s = {
|
|
10852
10846
|
attrs: M(o, e[2] ?? ``),
|
|
@@ -10862,18 +10856,18 @@ var n$115 = (n) => {
|
|
|
10862
10856
|
}, t.text ?? (t.children ? n(t.children, r) : ``));
|
|
10863
10857
|
}
|
|
10864
10858
|
},
|
|
10865
|
-
[e$
|
|
10859
|
+
[e$41.paragraph]: {
|
|
10866
10860
|
_match: Q,
|
|
10867
|
-
_order: t$
|
|
10861
|
+
_order: t$99.LOW,
|
|
10868
10862
|
_parse: z$4,
|
|
10869
10863
|
_render(t, n, r = {}) {
|
|
10870
10864
|
return e(`p`, { key: r.key }, n(t.children, r));
|
|
10871
10865
|
}
|
|
10872
10866
|
},
|
|
10873
|
-
[e$
|
|
10867
|
+
[e$41.image]: {
|
|
10874
10868
|
_qualify: [`![`],
|
|
10875
10869
|
_match: N$5(Oe$2),
|
|
10876
|
-
_order: t$
|
|
10870
|
+
_order: t$99.HIGH,
|
|
10877
10871
|
_parse(e) {
|
|
10878
10872
|
return {
|
|
10879
10873
|
alt: h$17(e[1]),
|
|
@@ -10890,10 +10884,10 @@ var n$115 = (n) => {
|
|
|
10890
10884
|
});
|
|
10891
10885
|
}
|
|
10892
10886
|
},
|
|
10893
|
-
[e$
|
|
10887
|
+
[e$41.link]: {
|
|
10894
10888
|
_qualify: [`[`],
|
|
10895
10889
|
_match: M$4(ke$3),
|
|
10896
|
-
_order: t$
|
|
10890
|
+
_order: t$99.LOW,
|
|
10897
10891
|
_parse(e, t, n) {
|
|
10898
10892
|
return {
|
|
10899
10893
|
children: L$5(t, e[1], n),
|
|
@@ -10910,52 +10904,52 @@ var n$115 = (n) => {
|
|
|
10910
10904
|
}, n(t.children, r));
|
|
10911
10905
|
}
|
|
10912
10906
|
},
|
|
10913
|
-
[e$
|
|
10907
|
+
[e$41.linkAngleBraceStyleDetector]: {
|
|
10914
10908
|
_qualify: [`<`],
|
|
10915
10909
|
_match: M$4(D$6),
|
|
10916
|
-
_order: t$
|
|
10910
|
+
_order: t$99.MAX,
|
|
10917
10911
|
_parse(e) {
|
|
10918
10912
|
let t = e[1], n = !1;
|
|
10919
10913
|
return t.indexOf(`@`) !== -1 && t.indexOf(`//`) === -1 && (n = !0, t = t.replace(`mailto:`, ``)), {
|
|
10920
10914
|
children: [{
|
|
10921
10915
|
text: t,
|
|
10922
|
-
type: e$
|
|
10916
|
+
type: e$41.text
|
|
10923
10917
|
}],
|
|
10924
10918
|
target: n ? `mailto:${t}` : t,
|
|
10925
|
-
type: e$
|
|
10919
|
+
type: e$41.link
|
|
10926
10920
|
};
|
|
10927
10921
|
}
|
|
10928
10922
|
},
|
|
10929
|
-
[e$
|
|
10930
|
-
_qualify: (e, t) => !!(t.inline && !t.inAnchor && !g.disableAutoLink && (p$
|
|
10923
|
+
[e$41.linkBareUrlDetector]: {
|
|
10924
|
+
_qualify: (e, t) => !!(t.inline && !t.inAnchor && !g.disableAutoLink && (p$24(e, `http://`) || p$24(e, `https://`))),
|
|
10931
10925
|
_match: M$4(E$6),
|
|
10932
|
-
_order: t$
|
|
10926
|
+
_order: t$99.MAX,
|
|
10933
10927
|
_parse(e) {
|
|
10934
10928
|
return {
|
|
10935
10929
|
children: [{
|
|
10936
10930
|
text: e[1],
|
|
10937
|
-
type: e$
|
|
10931
|
+
type: e$41.text
|
|
10938
10932
|
}],
|
|
10939
10933
|
target: e[1],
|
|
10940
|
-
type: e$
|
|
10934
|
+
type: e$41.link
|
|
10941
10935
|
};
|
|
10942
10936
|
}
|
|
10943
10937
|
},
|
|
10944
|
-
[e$
|
|
10945
|
-
_match: P$5(l$
|
|
10946
|
-
_order: t$
|
|
10938
|
+
[e$41.newlineCoalescer]: {
|
|
10939
|
+
_match: P$5(l$39),
|
|
10940
|
+
_order: t$99.LOW,
|
|
10947
10941
|
_parse: B$6,
|
|
10948
10942
|
_render() {
|
|
10949
10943
|
return `
|
|
10950
10944
|
`;
|
|
10951
10945
|
}
|
|
10952
10946
|
},
|
|
10953
|
-
[e$
|
|
10954
|
-
[e$
|
|
10955
|
-
[e$
|
|
10947
|
+
[e$41.orderedList]: Z(1),
|
|
10948
|
+
[e$41.unorderedList]: Z(2),
|
|
10949
|
+
[e$41.ref]: {
|
|
10956
10950
|
_qualify: [`[`],
|
|
10957
10951
|
_match: F$3(F$4),
|
|
10958
|
-
_order: t$
|
|
10952
|
+
_order: t$99.MAX,
|
|
10959
10953
|
_parse(e) {
|
|
10960
10954
|
return j[e[1]] = {
|
|
10961
10955
|
target: e[2],
|
|
@@ -10964,10 +10958,10 @@ var n$115 = (n) => {
|
|
|
10964
10958
|
},
|
|
10965
10959
|
_render: V$4
|
|
10966
10960
|
},
|
|
10967
|
-
[e$
|
|
10961
|
+
[e$41.refImage]: {
|
|
10968
10962
|
_qualify: [`![`],
|
|
10969
10963
|
_match: N$5(I$5),
|
|
10970
|
-
_order: t$
|
|
10964
|
+
_order: t$99.MAX,
|
|
10971
10965
|
_parse(e) {
|
|
10972
10966
|
return {
|
|
10973
10967
|
alt: e[1] ? h$17(e[1]) : void 0,
|
|
@@ -10984,10 +10978,10 @@ var n$115 = (n) => {
|
|
|
10984
10978
|
}) : null;
|
|
10985
10979
|
}
|
|
10986
10980
|
},
|
|
10987
|
-
[e$
|
|
10981
|
+
[e$41.refLink]: {
|
|
10988
10982
|
_qualify: (e) => e[0] === `[` && e.indexOf(`](`) === -1,
|
|
10989
10983
|
_match: M$4(L$6),
|
|
10990
|
-
_order: t$
|
|
10984
|
+
_order: t$99.MAX,
|
|
10991
10985
|
_parse(e, t, n) {
|
|
10992
10986
|
return {
|
|
10993
10987
|
children: L$5(t, e[1], n),
|
|
@@ -11004,10 +10998,10 @@ var n$115 = (n) => {
|
|
|
11004
10998
|
}, n(t.children, r)) : e(`span`, { key: r.key }, t.fallbackChildren);
|
|
11005
10999
|
}
|
|
11006
11000
|
},
|
|
11007
|
-
[e$
|
|
11001
|
+
[e$41.table]: {
|
|
11008
11002
|
_qualify: [`|`],
|
|
11009
11003
|
_match: P$5(k$8),
|
|
11010
|
-
_order: t$
|
|
11004
|
+
_order: t$99.HIGH,
|
|
11011
11005
|
_parse(e, t, n) {
|
|
11012
11006
|
n.inline = !0;
|
|
11013
11007
|
let r = e[2] ? D$5(e[2]) : [], i = e[3] ? k$7(e[3], t, n) : [], a = O$4(e[1], t, n, !!i.length);
|
|
@@ -11015,10 +11009,10 @@ var n$115 = (n) => {
|
|
|
11015
11009
|
align: r,
|
|
11016
11010
|
cells: i,
|
|
11017
11011
|
header: a,
|
|
11018
|
-
type: e$
|
|
11012
|
+
type: e$41.table
|
|
11019
11013
|
} : {
|
|
11020
11014
|
children: a.flat(),
|
|
11021
|
-
type: e$
|
|
11015
|
+
type: e$41.paragraph
|
|
11022
11016
|
};
|
|
11023
11017
|
},
|
|
11024
11018
|
_render(t, n, r = {}) {
|
|
@@ -11032,19 +11026,19 @@ var n$115 = (n) => {
|
|
|
11032
11026
|
}, n(t, r)))))));
|
|
11033
11027
|
}
|
|
11034
11028
|
},
|
|
11035
|
-
[e$
|
|
11029
|
+
[e$41.tableSeparator]: {
|
|
11036
11030
|
_match: (e, t) => t.inTable && e[0] === `|` ? /^\|/.exec(e) : null,
|
|
11037
|
-
_order: t$
|
|
11031
|
+
_order: t$99.HIGH,
|
|
11038
11032
|
_parse() {
|
|
11039
|
-
return { type: e$
|
|
11033
|
+
return { type: e$41.tableSeparator };
|
|
11040
11034
|
},
|
|
11041
11035
|
_render() {
|
|
11042
11036
|
return ` | `;
|
|
11043
11037
|
}
|
|
11044
11038
|
},
|
|
11045
|
-
[e$
|
|
11039
|
+
[e$41.text]: {
|
|
11046
11040
|
_match: j$4((e, t) => ue$3.exec(e) || le$3.exec(e) || /^[\s\S]/.exec(e)),
|
|
11047
|
-
_order: t$
|
|
11041
|
+
_order: t$99.MIN,
|
|
11048
11042
|
_parse(e) {
|
|
11049
11043
|
let t = e[0];
|
|
11050
11044
|
return { text: t.indexOf(`&`) === -1 ? t : t.replace(b$13, (e, t) => Ee[t] || e) };
|
|
@@ -11053,10 +11047,10 @@ var n$115 = (n) => {
|
|
|
11053
11047
|
return e.text;
|
|
11054
11048
|
}
|
|
11055
11049
|
},
|
|
11056
|
-
[e$
|
|
11050
|
+
[e$41.textBolded]: {
|
|
11057
11051
|
_qualify: [`**`, `__`],
|
|
11058
11052
|
_match: N$5(pe$3),
|
|
11059
|
-
_order: t$
|
|
11053
|
+
_order: t$99.MED,
|
|
11060
11054
|
_parse(e, t, n) {
|
|
11061
11055
|
return { children: t(e[2], n) };
|
|
11062
11056
|
},
|
|
@@ -11064,10 +11058,10 @@ var n$115 = (n) => {
|
|
|
11064
11058
|
return e(`strong`, { key: r.key }, n(t.children, r));
|
|
11065
11059
|
}
|
|
11066
11060
|
},
|
|
11067
|
-
[e$
|
|
11061
|
+
[e$41.textEmphasized]: {
|
|
11068
11062
|
_qualify: [`*`, `_`],
|
|
11069
11063
|
_match: N$5(me$3),
|
|
11070
|
-
_order: t$
|
|
11064
|
+
_order: t$99.LOW,
|
|
11071
11065
|
_parse(e, t, n) {
|
|
11072
11066
|
return { children: t(e[2], n) };
|
|
11073
11067
|
},
|
|
@@ -11075,30 +11069,30 @@ var n$115 = (n) => {
|
|
|
11075
11069
|
return e(`em`, { key: r.key }, n(t.children, r));
|
|
11076
11070
|
}
|
|
11077
11071
|
},
|
|
11078
|
-
[e$
|
|
11072
|
+
[e$41.textEscaped]: {
|
|
11079
11073
|
_qualify: [`\\`],
|
|
11080
11074
|
_match: N$5(W$4),
|
|
11081
|
-
_order: t$
|
|
11075
|
+
_order: t$99.HIGH,
|
|
11082
11076
|
_parse(e) {
|
|
11083
11077
|
return {
|
|
11084
11078
|
text: e[1],
|
|
11085
|
-
type: e$
|
|
11079
|
+
type: e$41.text
|
|
11086
11080
|
};
|
|
11087
11081
|
}
|
|
11088
11082
|
},
|
|
11089
|
-
[e$
|
|
11083
|
+
[e$41.textMarked]: {
|
|
11090
11084
|
_qualify: [`==`],
|
|
11091
11085
|
_match: N$5(he$3),
|
|
11092
|
-
_order: t$
|
|
11086
|
+
_order: t$99.LOW,
|
|
11093
11087
|
_parse: z$4,
|
|
11094
11088
|
_render(t, n, r = {}) {
|
|
11095
11089
|
return e(`mark`, { key: r.key }, n(t.children, r));
|
|
11096
11090
|
}
|
|
11097
11091
|
},
|
|
11098
|
-
[e$
|
|
11092
|
+
[e$41.textStrikethroughed]: {
|
|
11099
11093
|
_qualify: [`~~`],
|
|
11100
11094
|
_match: N$5(ge$2),
|
|
11101
|
-
_order: t$
|
|
11095
|
+
_order: t$99.LOW,
|
|
11102
11096
|
_parse: z$4,
|
|
11103
11097
|
_render(t, n, r = {}) {
|
|
11104
11098
|
return e(`del`, { key: r.key }, n(t.children, r));
|
|
@@ -11112,16 +11106,16 @@ var n$115 = (n) => {
|
|
|
11112
11106
|
return a ? a.reduce((t, r) => {
|
|
11113
11107
|
let a = r.indexOf(`=`);
|
|
11114
11108
|
if (a !== -1) {
|
|
11115
|
-
let o = C$11(r.slice(0, a)).trim(), s = m$23(r.slice(a + 1).trim()), c = r$
|
|
11109
|
+
let o = C$11(r.slice(0, a)).trim(), s = m$23(r.slice(a + 1).trim()), c = r$109[o] ?? o;
|
|
11116
11110
|
if (c === `ref`) return t;
|
|
11117
11111
|
t[c] = T$8(n, o, s, i.sanitizer ?? b$12), typeof t[c] == `string` && (y$18.test(t[c]) || C$12.test(t[c])) && (t[c] = C(t[c].trim()));
|
|
11118
|
-
} else r !== `style` && (t[r$
|
|
11112
|
+
} else r !== `style` && (t[r$109[r] ?? r] = !0);
|
|
11119
11113
|
return t;
|
|
11120
11114
|
}, {}) : null;
|
|
11121
11115
|
}, h = [
|
|
11122
11116
|
ie$2,
|
|
11123
|
-
o$
|
|
11124
|
-
s$
|
|
11117
|
+
o$73,
|
|
11118
|
+
s$56,
|
|
11125
11119
|
a.enforceAtxHeadings ? _$17 : g$18,
|
|
11126
11120
|
v$17,
|
|
11127
11121
|
k$8,
|
|
@@ -11138,8 +11132,8 @@ var n$115 = (n) => {
|
|
|
11138
11132
|
C$12,
|
|
11139
11133
|
w$10
|
|
11140
11134
|
], n);
|
|
11141
|
-
}, h), y = a.disableParsingRawHTML ? Object.keys(_).reduce((e, t) => (t !== e$
|
|
11142
|
-
let t = a.preserveFrontmatter ? e : e.replace(m$24, ``), n = a.forceInline || !a.forceBlock && R$6.test(t.replace(B$7, ``)) === !1, r = S(b(n ? t : `${f$
|
|
11135
|
+
}, h), y = a.disableParsingRawHTML ? Object.keys(_).reduce((e, t) => (t !== e$41.htmlBlock && t !== e$41.htmlSelfClosing && (e[t] = _[t]), e), {}) : _, b = n$107(y), S = e$40(t$98(y, a.renderRule)), C = (e) => {
|
|
11136
|
+
let t = a.preserveFrontmatter ? e : e.replace(m$24, ``), n = a.forceInline || !a.forceBlock && R$6.test(t.replace(B$7, ``)) === !1, r = S(b(n ? t : `${f$25(t).replace(B$7, ``)}\n\n`, { inline: n }), { inline: n });
|
|
11143
11137
|
for (; typeof r[r.length - 1] == `string` && !r[r.length - 1].trim();) r.pop();
|
|
11144
11138
|
if (a.wrapper === null) return r;
|
|
11145
11139
|
let i = a.wrapper ?? (n ? `span` : `div`);
|
|
@@ -11167,18 +11161,18 @@ var n$115 = (n) => {
|
|
|
11167
11161
|
id: s(e.identifier),
|
|
11168
11162
|
key: e.identifier
|
|
11169
11163
|
}, e.identifier, S(b(e.footnote, { inline: !0 }), { inline: !0 }))))) : w;
|
|
11170
|
-
}, s$
|
|
11164
|
+
}, s$55 = {
|
|
11171
11165
|
createElement: import_react.createElement,
|
|
11172
11166
|
cloneElement: import_react.cloneElement,
|
|
11173
11167
|
Fragment: import_react.Fragment,
|
|
11174
11168
|
normalizeProps: (e, t) => t
|
|
11175
|
-
}, c$
|
|
11169
|
+
}, c$43 = (e = ``, n = {}) => {
|
|
11176
11170
|
let { createElement: r, disableAutoLink: i, disableParsingRawHTML: a, enforceAtxHeadings: o, forceBlock: c, forceInline: l, forceWrapper: u, namedCodesToUnicode: d, components: f, renderRule: p, sanitizer: m, slugify: h, wrapper: g, preserveFrontmatter: _, tagfilter: v } = n;
|
|
11177
11171
|
return $$5(e, {
|
|
11178
11172
|
runtime: r ? {
|
|
11179
|
-
...s$
|
|
11173
|
+
...s$55,
|
|
11180
11174
|
createElement: r
|
|
11181
|
-
} : s$
|
|
11175
|
+
} : s$55,
|
|
11182
11176
|
components: f,
|
|
11183
11177
|
namedCodesToUnicode: d,
|
|
11184
11178
|
sanitizer: m,
|
|
@@ -11195,7 +11189,7 @@ var n$115 = (n) => {
|
|
|
11195
11189
|
preserveFrontmatter: _,
|
|
11196
11190
|
tagfilter: v
|
|
11197
11191
|
});
|
|
11198
|
-
}, l$
|
|
11192
|
+
}, l$38 = c$43, i$83 = (0, import_react.createContext)(void 0), a$77 = () => (0, import_react.useContext)(i$83), i$82 = (t, { components: n, wrapper: r, forceBlock: i, forceInline: a, preserveFrontmatter: o, tagfilter: s } = {}) => l$38(t, {
|
|
11199
11193
|
components: n,
|
|
11200
11194
|
forceBlock: i,
|
|
11201
11195
|
forceInline: a,
|
|
@@ -11206,26 +11200,26 @@ var n$115 = (n) => {
|
|
|
11206
11200
|
});
|
|
11207
11201
|
//#endregion
|
|
11208
11202
|
//#region ../@intlayer/editor/dist/esm/isEnabled.mjs
|
|
11209
|
-
var t$
|
|
11203
|
+
var t$96 = configuration_default.editor?.enabled && typeof window < `u` && window.self !== window.top;
|
|
11210
11204
|
//#endregion
|
|
11211
11205
|
//#region ../react-intlayer/dist/esm/editor/ContentSelector.mjs
|
|
11212
|
-
var n$
|
|
11206
|
+
var n$104 = ({ children: n, dictionaryKey: r, keyPath: i }) => t$96 ? (0, import_react.createElement)(`intlayer-content-selector-wrapper`, {
|
|
11213
11207
|
"key-path": JSON.stringify(i),
|
|
11214
11208
|
"dictionary-key": r
|
|
11215
11209
|
}, n) : n;
|
|
11216
11210
|
//#endregion
|
|
11217
11211
|
//#region ../react-intlayer/dist/esm/html/HTMLRendererPlugin.mjs
|
|
11218
|
-
var i$
|
|
11219
|
-
let { html: a, userComponents: o } = i, s = i$
|
|
11220
|
-
...o$
|
|
11212
|
+
var i$81 = (i) => {
|
|
11213
|
+
let { html: a, userComponents: o } = i, s = i$88()?.components || {}, c = {
|
|
11214
|
+
...o$74,
|
|
11221
11215
|
...s,
|
|
11222
11216
|
...o
|
|
11223
11217
|
};
|
|
11224
|
-
return r$
|
|
11218
|
+
return r$111(a, Object.fromEntries(Object.entries(c).filter(([, e]) => e).map(([e, t]) => [e, (e) => (0, import_react.createElement)(t, e)])));
|
|
11225
11219
|
};
|
|
11226
11220
|
//#endregion
|
|
11227
11221
|
//#region ../react-intlayer/dist/esm/IntlayerNode.mjs
|
|
11228
|
-
var r$
|
|
11222
|
+
var r$105 = ({ children: r, value: i, additionalProps: a }) => {
|
|
11229
11223
|
let o = (0, import_react.isValidElement)(r) ? r : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: r });
|
|
11230
11224
|
return new Proxy(o, { get(e, t, n) {
|
|
11231
11225
|
return t === `value` ? i : a && Object.keys(a).includes(t) ? a[t] : Reflect.get(e, t, n);
|
|
@@ -11233,8 +11227,8 @@ var r$110 = ({ children: r, value: i, additionalProps: a }) => {
|
|
|
11233
11227
|
};
|
|
11234
11228
|
//#endregion
|
|
11235
11229
|
//#region ../react-intlayer/dist/esm/markdown/MarkdownRendererPlugin.mjs
|
|
11236
|
-
var t$
|
|
11237
|
-
let { children: n, options: r, components: i } = t, a = a$
|
|
11230
|
+
var t$94 = (t) => {
|
|
11231
|
+
let { children: n, options: r, components: i } = t, a = a$77();
|
|
11238
11232
|
return (a?.renderMarkdown ?? ((e) => e))(n, r, {
|
|
11239
11233
|
...a?.components ?? {},
|
|
11240
11234
|
...i ?? {}
|
|
@@ -11242,13 +11236,13 @@ var t$100 = (t) => {
|
|
|
11242
11236
|
};
|
|
11243
11237
|
//#endregion
|
|
11244
11238
|
//#region ../react-intlayer/dist/esm/reactElement/renderReactElement.mjs
|
|
11245
|
-
var t$
|
|
11239
|
+
var t$93 = (n) => {
|
|
11246
11240
|
if (typeof n != `object` || !n) return n;
|
|
11247
11241
|
let { type: r, props: i } = ((n) => {
|
|
11248
11242
|
let r = n.props?.children;
|
|
11249
11243
|
if (Array.isArray(r)) {
|
|
11250
11244
|
let i = r.map((n, r) => {
|
|
11251
|
-
let i = t$
|
|
11245
|
+
let i = t$93(n);
|
|
11252
11246
|
if (typeof i == `object` && i && `type` in i) {
|
|
11253
11247
|
let t = i;
|
|
11254
11248
|
return (0, import_react.createElement)(t.type, {
|
|
@@ -11266,7 +11260,7 @@ var t$99 = (n) => {
|
|
|
11266
11260
|
}
|
|
11267
11261
|
};
|
|
11268
11262
|
} else if (r != null) {
|
|
11269
|
-
let e = t$
|
|
11263
|
+
let e = t$93(r);
|
|
11270
11264
|
return {
|
|
11271
11265
|
...n,
|
|
11272
11266
|
props: {
|
|
@@ -11290,10 +11284,10 @@ var t$99 = (n) => {
|
|
|
11290
11284
|
var v$15 = {
|
|
11291
11285
|
id: `intlayer-node-plugin`,
|
|
11292
11286
|
canHandle: (e) => typeof e == `bigint` || typeof e == `string` || typeof e == `number`,
|
|
11293
|
-
transform: (t, { plugins: r, ...i }) => r$
|
|
11287
|
+
transform: (t, { plugins: r, ...i }) => r$105({
|
|
11294
11288
|
...i,
|
|
11295
11289
|
value: i.children,
|
|
11296
|
-
children: configuration_default?.editor.enabled ? (0, import_jsx_runtime.jsx)(n$
|
|
11290
|
+
children: configuration_default?.editor.enabled ? (0, import_jsx_runtime.jsx)(n$104, {
|
|
11297
11291
|
...i,
|
|
11298
11292
|
children: i.children
|
|
11299
11293
|
}) : i.children
|
|
@@ -11301,22 +11295,22 @@ var v$15 = {
|
|
|
11301
11295
|
}, y$16 = {
|
|
11302
11296
|
id: `react-node-plugin`,
|
|
11303
11297
|
canHandle: (e) => typeof e == `object` && e?.props !== void 0 && e.key !== void 0,
|
|
11304
|
-
transform: (t, { plugins: r, ...o }) => r$
|
|
11298
|
+
transform: (t, { plugins: r, ...o }) => r$105({
|
|
11305
11299
|
...o,
|
|
11306
11300
|
value: `[[react-element]]`,
|
|
11307
|
-
children: configuration_default?.editor.enabled ? (0, import_jsx_runtime.jsx)(n$
|
|
11301
|
+
children: configuration_default?.editor.enabled ? (0, import_jsx_runtime.jsx)(n$104, {
|
|
11308
11302
|
...o,
|
|
11309
|
-
children: t$
|
|
11310
|
-
}) : t$
|
|
11303
|
+
children: t$93(t)
|
|
11304
|
+
}) : t$93(t)
|
|
11311
11305
|
})
|
|
11312
11306
|
}, b$11 = (e, t) => {
|
|
11313
|
-
let n = t$
|
|
11307
|
+
let n = t$101(e, t);
|
|
11314
11308
|
return n.isSimple ? n.parts : (0, import_react.createElement)(import_react.Fragment, null, ...n.parts.map((e, t) => (0, import_react.createElement)(import_react.Fragment, { key: t }, e)));
|
|
11315
11309
|
}, x$11 = {
|
|
11316
11310
|
id: `insertion-plugin`,
|
|
11317
|
-
canHandle: (e) => typeof e == `object` && e?.nodeType === e$
|
|
11311
|
+
canHandle: (e) => typeof e == `object` && e?.nodeType === e$51.Insertion,
|
|
11318
11312
|
transform: (e, t, n) => {
|
|
11319
|
-
let r = [...t.keyPath, { type: e$
|
|
11313
|
+
let r = [...t.keyPath, { type: e$51.Insertion }], i = e[e$51.Insertion], a = {
|
|
11320
11314
|
id: `insertion-string-plugin`,
|
|
11321
11315
|
canHandle: (e) => typeof e == `string`,
|
|
11322
11316
|
transform: (e, n, r) => {
|
|
@@ -11340,7 +11334,7 @@ var v$15 = {
|
|
|
11340
11334
|
keyPath: r,
|
|
11341
11335
|
plugins: [a, ...t.plugins ?? []]
|
|
11342
11336
|
});
|
|
11343
|
-
return typeof i == `object` && i && `nodeType` in i && [e$
|
|
11337
|
+
return typeof i == `object` && i && `nodeType` in i && [e$51.Enumeration, e$51.Condition].includes(i.nodeType) ? (e) => (t) => {
|
|
11344
11338
|
let n = o(t);
|
|
11345
11339
|
return typeof n == `function` ? n(e) : n;
|
|
11346
11340
|
} : o;
|
|
@@ -11349,14 +11343,14 @@ var v$15 = {
|
|
|
11349
11343
|
id: `markdown-string-plugin`,
|
|
11350
11344
|
canHandle: (e) => typeof e == `string`,
|
|
11351
11345
|
transform: (t, i, o) => {
|
|
11352
|
-
let { plugins: s, ...c } = i, l = o(t$
|
|
11346
|
+
let { plugins: s, ...c } = i, l = o(t$100(t), {
|
|
11353
11347
|
plugins: [{
|
|
11354
11348
|
id: `markdown-metadata-plugin`,
|
|
11355
11349
|
canHandle: (e) => typeof e == `string` || typeof e == `number` || typeof e == `boolean` || !e,
|
|
11356
|
-
transform: (r, i) => r$
|
|
11350
|
+
transform: (r, i) => r$105({
|
|
11357
11351
|
...i,
|
|
11358
11352
|
value: r,
|
|
11359
|
-
children: configuration_default?.editor.enabled ? (0, import_jsx_runtime.jsx)(n$
|
|
11353
|
+
children: configuration_default?.editor.enabled ? (0, import_jsx_runtime.jsx)(n$104, {
|
|
11360
11354
|
...c,
|
|
11361
11355
|
children: t
|
|
11362
11356
|
}) : t
|
|
@@ -11364,17 +11358,17 @@ var v$15 = {
|
|
|
11364
11358
|
}],
|
|
11365
11359
|
dictionaryKey: c.dictionaryKey,
|
|
11366
11360
|
keyPath: []
|
|
11367
|
-
}), u = (o) => r$
|
|
11361
|
+
}), u = (o) => r$105({
|
|
11368
11362
|
...i,
|
|
11369
11363
|
value: t,
|
|
11370
|
-
children: configuration_default.editor.enabled ? (0, import_jsx_runtime.jsx)(n$
|
|
11364
|
+
children: configuration_default.editor.enabled ? (0, import_jsx_runtime.jsx)(n$104, {
|
|
11371
11365
|
...c,
|
|
11372
|
-
children: (0, import_jsx_runtime.jsx)(t$
|
|
11366
|
+
children: (0, import_jsx_runtime.jsx)(t$94, {
|
|
11373
11367
|
...c,
|
|
11374
11368
|
components: o,
|
|
11375
11369
|
children: t
|
|
11376
11370
|
})
|
|
11377
|
-
}) : (0, import_jsx_runtime.jsx)(t$
|
|
11371
|
+
}) : (0, import_jsx_runtime.jsx)(t$94, {
|
|
11378
11372
|
...c,
|
|
11379
11373
|
components: o,
|
|
11380
11374
|
children: t
|
|
@@ -11387,9 +11381,9 @@ var v$15 = {
|
|
|
11387
11381
|
}
|
|
11388
11382
|
}, C$10 = {
|
|
11389
11383
|
id: `markdown-plugin`,
|
|
11390
|
-
canHandle: (e) => typeof e == `object` && e?.nodeType === e$
|
|
11384
|
+
canHandle: (e) => typeof e == `object` && e?.nodeType === e$51.Markdown,
|
|
11391
11385
|
transform: (e, t, n) => {
|
|
11392
|
-
let r = [...t.keyPath, { type: e$
|
|
11386
|
+
let r = [...t.keyPath, { type: e$51.Markdown }], i = e[e$51.Markdown];
|
|
11393
11387
|
return n(i, {
|
|
11394
11388
|
...t,
|
|
11395
11389
|
children: i,
|
|
@@ -11399,9 +11393,9 @@ var v$15 = {
|
|
|
11399
11393
|
}
|
|
11400
11394
|
}, w$8 = {
|
|
11401
11395
|
id: `html-plugin`,
|
|
11402
|
-
canHandle: (e) => typeof e == `object` && e?.nodeType === e$
|
|
11396
|
+
canHandle: (e) => typeof e == `object` && e?.nodeType === e$51.HTML,
|
|
11403
11397
|
transform: (e, n) => {
|
|
11404
|
-
let r = e[e$
|
|
11398
|
+
let r = e[e$51.HTML], { plugins: i, ...a } = n, o = (e) => (0, import_react.createElement)(i$81, {
|
|
11405
11399
|
...a,
|
|
11406
11400
|
html: r,
|
|
11407
11401
|
userComponents: e
|
|
@@ -11425,114 +11419,7 @@ var v$15 = {
|
|
|
11425
11419
|
];
|
|
11426
11420
|
//#endregion
|
|
11427
11421
|
//#region ../react-intlayer/dist/esm/getDictionary.mjs
|
|
11428
|
-
var n$
|
|
11429
|
-
//#endregion
|
|
11430
|
-
//#region ../@intlayer/config/dist/esm/utils/stringFormatter/camelCaseToSentence.mjs
|
|
11431
|
-
var e$35 = (e) => {
|
|
11432
|
-
if (!e || typeof e != `string`) return ``;
|
|
11433
|
-
let t = e.replace(/([a-z])([A-Z])/g, `$1 $2`).replace(/([A-Z]+)([A-Z][a-z])/g, `$1 $2`);
|
|
11434
|
-
return t.charAt(0).toUpperCase() + t.slice(1).toLowerCase();
|
|
11435
|
-
}, e$34 = Object.defineProperty, t$98 = (t, n) => {
|
|
11436
|
-
let r = {};
|
|
11437
|
-
for (var i in t) e$34(r, i, {
|
|
11438
|
-
get: t[i],
|
|
11439
|
-
enumerable: !0
|
|
11440
|
-
});
|
|
11441
|
-
return n || e$34(r, Symbol.toStringTag, { value: `Module` }), r;
|
|
11442
|
-
};
|
|
11443
|
-
((e) => typeof __require < `u` ? __require : typeof Proxy < `u` ? new Proxy(e, { get: (e, t) => (typeof __require < `u` ? __require : e)[t] }) : e)(function(e) {
|
|
11444
|
-
if (typeof __require < `u`) return __require.apply(this, arguments);
|
|
11445
|
-
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
11446
|
-
});
|
|
11447
|
-
//#endregion
|
|
11448
|
-
//#region ../@intlayer/config/dist/esm/defaultValues/build.mjs
|
|
11449
|
-
var t$97 = t$98({
|
|
11450
|
-
BUILD_MODE: () => n$108,
|
|
11451
|
-
CACHE: () => !0,
|
|
11452
|
-
OPTIMIZE: () => void 0,
|
|
11453
|
-
OUTPUT_FORMAT: () => a$80,
|
|
11454
|
-
TRAVERSE_PATTERN: () => i$84,
|
|
11455
|
-
TYPE_CHECKING: () => !1
|
|
11456
|
-
}), n$108 = `auto`, i$84 = [
|
|
11457
|
-
`**/*.{tsx,ts,js,mjs,cjs,jsx,vue,svelte,svte}`,
|
|
11458
|
-
`!**/node_modules/**`,
|
|
11459
|
-
`!**/dist/**`,
|
|
11460
|
-
`!**/build/**`,
|
|
11461
|
-
`!**/.intlayer/**`,
|
|
11462
|
-
`!**/.next/**`,
|
|
11463
|
-
`!**/.nuxt/**`,
|
|
11464
|
-
`!**/.expo/**`,
|
|
11465
|
-
`!**/.vercel/**`,
|
|
11466
|
-
`!**/.turbo/**`,
|
|
11467
|
-
`!**/.tanstack/**`,
|
|
11468
|
-
`!**/*.config.*`,
|
|
11469
|
-
`!**/*.test.*`,
|
|
11470
|
-
`!**/*.spec.*`,
|
|
11471
|
-
`!**/*.stories.*`,
|
|
11472
|
-
`!**/*.d.ts`,
|
|
11473
|
-
`!**/*.d.ts.map`
|
|
11474
|
-
], a$80 = [`esm`, `cjs`];
|
|
11475
|
-
//#endregion
|
|
11476
|
-
//#region ../@intlayer/config/dist/esm/defaultValues/compiler.mjs
|
|
11477
|
-
var t$96 = t$98({
|
|
11478
|
-
COMPILER_DICTIONARY_KEY_PREFIX: () => ``,
|
|
11479
|
-
COMPILER_ENABLED: () => !0,
|
|
11480
|
-
COMPILER_NO_METADATA: () => !1,
|
|
11481
|
-
COMPILER_SAVE_COMPONENTS: () => !1
|
|
11482
|
-
});
|
|
11483
|
-
//#endregion
|
|
11484
|
-
//#region ../@intlayer/config/dist/esm/defaultValues/content.mjs
|
|
11485
|
-
var t$95 = t$98({
|
|
11486
|
-
CODE_DIR: () => a$79,
|
|
11487
|
-
CONTENT_DIR: () => i$83,
|
|
11488
|
-
EXCLUDED_PATHS: () => r$108,
|
|
11489
|
-
FILE_EXTENSIONS: () => n$107,
|
|
11490
|
-
I18NEXT_DICTIONARIES_DIR: () => o$72,
|
|
11491
|
-
REACT_INTL_MESSAGES_DIR: () => s$56,
|
|
11492
|
-
WATCH: () => !0
|
|
11493
|
-
}), n$107 = [
|
|
11494
|
-
`.content.ts`,
|
|
11495
|
-
`.content.js`,
|
|
11496
|
-
`.content.cjs`,
|
|
11497
|
-
`.content.mjs`,
|
|
11498
|
-
`.content.json`,
|
|
11499
|
-
`.content.json5`,
|
|
11500
|
-
`.content.jsonc`,
|
|
11501
|
-
`.content.tsx`,
|
|
11502
|
-
`.content.jsx`
|
|
11503
|
-
], r$108 = [
|
|
11504
|
-
`**/node_modules/**`,
|
|
11505
|
-
`**/dist/**`,
|
|
11506
|
-
`**/build/**`,
|
|
11507
|
-
`**/.intlayer/**`,
|
|
11508
|
-
`**/.next/**`,
|
|
11509
|
-
`**/.nuxt/**`,
|
|
11510
|
-
`**/.expo/**`,
|
|
11511
|
-
`**/.vercel/**`,
|
|
11512
|
-
`**/.turbo/**`,
|
|
11513
|
-
`**/.tanstack/**`
|
|
11514
|
-
], i$83 = [`.`], a$79 = [`.`], o$72 = `i18next_resources`, s$56 = `intl_messages`;
|
|
11515
|
-
//#endregion
|
|
11516
|
-
//#region ../@intlayer/config/dist/esm/defaultValues/dictionary.mjs
|
|
11517
|
-
var t$94 = t$98({
|
|
11518
|
-
CONTENT_AUTO_TRANSFORMATION: () => !1,
|
|
11519
|
-
FILL: () => !0,
|
|
11520
|
-
IMPORT_MODE: () => a$78,
|
|
11521
|
-
LOCATION: () => r$107
|
|
11522
|
-
}), r$107 = `local`, a$78 = `static`;
|
|
11523
|
-
//#endregion
|
|
11524
|
-
//#region ../@intlayer/config/dist/esm/defaultValues/editor.mjs
|
|
11525
|
-
var t$93 = t$98({
|
|
11526
|
-
APPLICATION_URL: () => void 0,
|
|
11527
|
-
BACKEND_URL: () => a$77,
|
|
11528
|
-
CMS_URL: () => i$81,
|
|
11529
|
-
DICTIONARY_PRIORITY_STRATEGY: () => l$38,
|
|
11530
|
-
EDITOR_URL: () => r$106,
|
|
11531
|
-
IS_ENABLED: () => !1,
|
|
11532
|
-
LIVE_SYNC: () => !0,
|
|
11533
|
-
LIVE_SYNC_PORT: () => u$37,
|
|
11534
|
-
PORT: () => o$71
|
|
11535
|
-
}), r$106 = `http://localhost:8000`, i$81 = `https://app.intlayer.org`, a$77 = `https://back.intlayer.org`, o$71 = 8e3, l$38 = `local_first`, u$37 = 4e3, ee$1 = Object.defineProperty;
|
|
11422
|
+
var n$102 = (n, r) => d$31(n, r, T$7(r)), r$104 = `https://back.intlayer.org`, ee$1 = Object.defineProperty;
|
|
11536
11423
|
((e, te) => {
|
|
11537
11424
|
let t = {};
|
|
11538
11425
|
for (var n in e) ee$1(t, n, {
|
|
@@ -11542,26 +11429,26 @@ var t$93 = t$98({
|
|
|
11542
11429
|
return te || ee$1(t, Symbol.toStringTag, { value: `Module` }), t;
|
|
11543
11430
|
})({
|
|
11544
11431
|
AFRIKAANS: () => `af`,
|
|
11545
|
-
AFRIKAANS_SOUTH_AFRICA: () => t$
|
|
11432
|
+
AFRIKAANS_SOUTH_AFRICA: () => t$91,
|
|
11546
11433
|
ALBANIAN: () => `sq`,
|
|
11547
11434
|
ALBANIAN_ALBANIA: () => Gn,
|
|
11548
11435
|
AMHARIC: () => `am`,
|
|
11549
11436
|
AMHARIC_ETHIOPIA: () => $r,
|
|
11550
11437
|
ARABIC: () => `ar`,
|
|
11551
|
-
ARABIC_ALGERIA: () => a$
|
|
11552
|
-
ARABIC_BAHRAIN: () => i$
|
|
11438
|
+
ARABIC_ALGERIA: () => a$74,
|
|
11439
|
+
ARABIC_BAHRAIN: () => i$79,
|
|
11553
11440
|
ARABIC_CHAD: () => Mi,
|
|
11554
11441
|
ARABIC_COMOROS: () => Ni,
|
|
11555
11442
|
ARABIC_DJIBOUTI: () => Ai,
|
|
11556
|
-
ARABIC_EGYPT: () => o$
|
|
11557
|
-
ARABIC_IRAQ: () => s$
|
|
11558
|
-
ARABIC_JORDAN: () => c$
|
|
11443
|
+
ARABIC_EGYPT: () => o$68,
|
|
11444
|
+
ARABIC_IRAQ: () => s$52,
|
|
11445
|
+
ARABIC_JORDAN: () => c$41,
|
|
11559
11446
|
ARABIC_KUWAIT: () => l$37,
|
|
11560
11447
|
ARABIC_LEBANON: () => u$36,
|
|
11561
11448
|
ARABIC_LIBYA: () => d$28,
|
|
11562
11449
|
ARABIC_MAURITANIA: () => Di,
|
|
11563
|
-
ARABIC_MOROCCO: () => f$
|
|
11564
|
-
ARABIC_OMAN: () => p$
|
|
11450
|
+
ARABIC_MOROCCO: () => f$24,
|
|
11451
|
+
ARABIC_OMAN: () => p$23,
|
|
11565
11452
|
ARABIC_PALESTINE: () => Oi,
|
|
11566
11453
|
ARABIC_QATAR: () => m$22,
|
|
11567
11454
|
ARABIC_SAUDI_ARABIA: () => h$15,
|
|
@@ -11569,7 +11456,7 @@ var t$93 = t$98({
|
|
|
11569
11456
|
ARABIC_SUDAN: () => ki,
|
|
11570
11457
|
ARABIC_SYRIA: () => g$15,
|
|
11571
11458
|
ARABIC_TUNISIA: () => _$14,
|
|
11572
|
-
ARABIC_UNITED_ARAB_EMIRATES: () => r$
|
|
11459
|
+
ARABIC_UNITED_ARAB_EMIRATES: () => r$103,
|
|
11573
11460
|
ARABIC_YEMEN: () => v$14,
|
|
11574
11461
|
ARMENIAN: () => `hy`,
|
|
11575
11462
|
ARMENIAN_ARMENIA: () => ut,
|
|
@@ -11844,64 +11731,10 @@ var t$93 = t$98({
|
|
|
11844
11731
|
ZULU: () => `zu`,
|
|
11845
11732
|
ZULU_SOUTH_AFRICA: () => Lr
|
|
11846
11733
|
});
|
|
11847
|
-
var t$
|
|
11848
|
-
//#endregion
|
|
11849
|
-
//#region ../@intlayer/config/dist/esm/defaultValues/internationalization.mjs
|
|
11850
|
-
var n$103 = t$98({
|
|
11851
|
-
DEFAULT_LOCALE: () => a$75,
|
|
11852
|
-
LOCALES: () => r$104,
|
|
11853
|
-
REQUIRED_LOCALES: () => i$79,
|
|
11854
|
-
STRICT_MODE: () => o$69
|
|
11855
|
-
});
|
|
11856
|
-
var r$104 = [pe$2], i$79 = [], a$75 = pe$2, o$69 = `inclusive`;
|
|
11857
|
-
//#endregion
|
|
11858
|
-
//#region ../@intlayer/config/dist/esm/defaultValues/log.mjs
|
|
11859
|
-
var n$102 = t$98({
|
|
11860
|
-
MODE: () => r$103,
|
|
11861
|
-
PREFIX: () => i$78
|
|
11862
|
-
});
|
|
11863
|
-
var r$103 = `default`, i$78 = `${i$91.GREY_DARK}[intlayer] ${i$91.RESET}`;
|
|
11864
|
-
//#endregion
|
|
11865
|
-
//#region ../@intlayer/config/dist/esm/defaultValues/routing.mjs
|
|
11866
|
-
var t$91 = t$98({
|
|
11867
|
-
BASE_PATH: () => ``,
|
|
11868
|
-
COOKIE_NAME: () => r$102,
|
|
11869
|
-
HEADER_NAME: () => n$101,
|
|
11870
|
-
LOCALE_STORAGE_NAME: () => i$77,
|
|
11871
|
-
ROUTING_MODE: () => s$53,
|
|
11872
|
-
SERVER_SET_COOKIE: () => o$68,
|
|
11873
|
-
STORAGE: () => c$44
|
|
11874
|
-
}), n$101 = `x-intlayer-locale`, r$102 = `INTLAYER_LOCALE`, i$77 = `INTLAYER_LOCALE`, o$68 = `always`, s$53 = `prefix-no-default`, c$44 = [`cookie`, `header`];
|
|
11875
|
-
//#endregion
|
|
11876
|
-
//#region ../@intlayer/config/dist/esm/defaultValues/system.mjs
|
|
11877
|
-
var t$90 = t$98({
|
|
11878
|
-
CACHE_DIR: () => f$24,
|
|
11879
|
-
CONFIG_DIR: () => d$27,
|
|
11880
|
-
DICTIONARIES_DIR: () => r$101,
|
|
11881
|
-
DYNAMIC_DICTIONARIES_DIR: () => s$52,
|
|
11882
|
-
FETCH_DICTIONARIES_DIR: () => c$43,
|
|
11883
|
-
MAIN_DIR: () => n$100,
|
|
11884
|
-
MASKS_DIR: () => i$76,
|
|
11885
|
-
MODULE_AUGMENTATION_DIR: () => u$35,
|
|
11886
|
-
REMOTE_DICTIONARIES_DIR: () => a$73,
|
|
11887
|
-
TEMP_DIR: () => p$23,
|
|
11888
|
-
TYPES_DIR: () => l$36,
|
|
11889
|
-
UNMERGED_DICTIONARIES_DIR: () => o$67
|
|
11890
|
-
});
|
|
11891
|
-
var n$100 = `.intlayer/main`, r$101 = `.intlayer/dictionary`, i$76 = `.intlayer/mask`, a$73 = `.intlayer/remote_dictionary`, o$67 = `.intlayer/unmerged_dictionary`, s$52 = `.intlayer/dynamic_dictionary`, c$43 = `.intlayer/fetch_dictionary`, l$36 = `.intlayer/types`, u$35 = `.intlayer/types`, d$27 = `.intlayer/config`, f$24 = `.intlayer/cache`, p$23 = `.intlayer/tmp`, u$34 = t$98({
|
|
11892
|
-
Build: () => t$97,
|
|
11893
|
-
Compiler: () => t$96,
|
|
11894
|
-
Content: () => t$95,
|
|
11895
|
-
Dictionary: () => t$94,
|
|
11896
|
-
Editor: () => t$93,
|
|
11897
|
-
Internationalization: () => n$103,
|
|
11898
|
-
Log: () => n$102,
|
|
11899
|
-
Routing: () => t$91,
|
|
11900
|
-
System: () => t$90
|
|
11901
|
-
}), t$89 = (t) => {
|
|
11734
|
+
var t$91 = `af-ZA`, n$100 = `ar`, r$103 = `ar-AE`, i$79 = `ar-BH`, a$74 = `ar-DZ`, o$68 = `ar-EG`, s$52 = `ar-IQ`, c$41 = `ar-JO`, l$37 = `ar-KW`, u$36 = `ar-LB`, d$28 = `ar-LY`, f$24 = `ar-MA`, p$23 = `ar-OM`, m$22 = `ar-QA`, h$15 = `ar-SA`, g$15 = `ar-SY`, _$14 = `ar-TN`, v$14 = `ar-YE`, y$15 = `az-AZ`, b$10 = `be-BY`, x$10 = `bg-BG`, S$9 = `bs-BA`, C$9 = `ca-ES`, w$7 = `cs-CZ`, T$6 = `cy-GB`, E$4 = `da-DK`, D$4 = `de-AT`, O$3 = `de-CH`, k$6 = `de-DE`, A$3 = `de-LI`, j$3 = `de-LU`, de$2 = `dv`, M$3 = `dv-MV`, N$4 = `el-GR`, pe$2 = `en`, P$4 = `en-AU`, F$2 = `en-BZ`, I$3 = `en-CA`, L$4 = `en-CB`, R$4 = `en-GB`, z$3 = `en-IE`, B$5 = `en-JM`, V$3 = `en-NZ`, H$4 = `en-PH`, U$3 = `en-TT`, W$3 = `en-US`, G$3 = `en-ZA`, K$4 = `en-ZW`, q$2 = `es-AR`, J$3 = `es-BO`, Y$4 = `es-CL`, X$4 = `es-CO`, Z$4 = `es-CR`, Q$2 = `es-DO`, ge$1 = `es-EC`, _e$2 = `es-ES`, ve$2 = `es-GT`, ye$2 = `es-HN`, be$2 = `es-MX`, xe$2 = `es-NI`, Se$2 = `es-PA`, Ce$2 = `es-PE`, we$2 = `es-PR`, Te$2 = `es-PY`, Ee$2 = `es-SV`, De$2 = `es-UY`, Oe$1 = `es-VE`, Ae$1 = `et-EE`, Me$2 = `eu-ES`, Ne$1 = `fa`, Pe$2 = `fa-IR`, Ie$2 = `fi-FI`, Re$2 = `fo-FO`, Be$1 = `fr-BE`, Ve$1 = `fr-CA`, He$1 = `fr-CH`, Ue$1 = `fr-FR`, We$1 = `fr-LU`, Ge$1 = `fr-MC`, qe$1 = `ga-IE`, Ye$1 = `gd-GB`, Ze$1 = `gl-ES`, $e$1 = `gu-IN`, et$1 = `he`, tt$1 = `he-IL`, rt$1 = `hi-IN`, at$1 = `hr-BA`, ot = `hr-HR`, ct = `hu-HU`, ut = `hy-AM`, ft = `id-ID`, mt = `is-IS`, gt = `it-CH`, _t = `it-IT`, yt = `ja-JP`, xt = `ka-GE`, Ct = `kk-KZ`, Tt = `kn-IN`, Dt = `ko-KR`, kt = `kok-IN`, jt = `ku-TR`, Nt = `ky-KG`, Ft = `lt-LT`, Lt = `lv-LV`, zt = `mi-NZ`, Vt = `mk-MK`, Ut = `mn-MN`, $$4 = `mr-IN`, Kt = `ms-BN`, qt = `ms-MY`, Yt = `mt-MT`, Zt = `ml-IN`, en = `nb-NO`, nn = `nl-BE`, rn = `nl-NL`, on$1 = `nn-NO`, cn$1 = `ns-ZA`, un = `pa-IN`, fn = `pl-PL`, pn = `ps`, mn = `ps-AR`, gn = `pt-BR`, _n = `pt-PT`, yn = `qu-BO`, bn = `qu-EC`, xn = `qu-PE`, Cn = `ro-RO`, wn = `ro-MD`, En = `rm-CH`, On = `ru-RU`, kn = `ru-MD`, jn = `sa-IN`, Nn = `se-FI`, Pn = `se-NO`, Fn = `se-SE`, Ln = `hsb-DE`, zn = `dsb-DE`, Vn = `sk-SK`, Un = `sl-SI`, Gn = `sq-AL`, qn = `sr-BA`, Jn = `sr-SP`, Xn = `sv-FI`, Zn = `sv-SE`, $n = `sw-KE`, er = `syr`, tr = `syr-SY`, rr = `ta-IN`, ar = `te-IN`, sr = `th-TH`, lr = `tl-PH`, dr = `tn-ZA`, pr = `tr-TR`, hr = `tt-RU`, vr = `uk-UA`, yr = `ur`, br = `ur-PK`, Sr = `uz-UZ`, wr = `vi-VN`, Er = `ve-ZA`, Or = `xh-ZA`, Ar = `zh-Hans`, jr = `zh-CN`, Mr = `zh-HK`, Nr = `zh-MO`, Pr = `zh-SG`, Fr = `zh-Hant`, Lr = `zu-ZA`, zr = `bn-BD`, Br = `bn-IN`, Vr = `bn-MM`, Ur = `my-MM`, Gr = `km-KH`, qr = `lo-LA`, Yr = `yo-NG`, Xr = `yi`, Zr = `yi-001`, $r = `am-ET`, ti = `ne-NP`, ri = `si-LK`, ii = `sr-Cyrl`, ai = `sr-RS`, oi = `sr-BA`, si = `en-IN`, ci = `en-SG`, li = `en-HK`, ui = `en-NG`, di = `en-PK`, fi = `en-MY`, pi = `en-BW`, mi = `en-KE`, hi = `en-TZ`, gi = `en-GH`, _i = `en-UG`, vi = `es-CU`, yi = `es-US`, bi = `pt-GW`, xi = `pt-MZ`, Si = `pt-ST`, Ci = `pt-CV`, wi = `pt-TL`, Ti = `pt-MO`, Ei = `zh-TW`, Di = `ar-MR`, Oi = `ar-PS`, ki = `ar-SD`, Ai = `ar-DJ`, ji = `ar-SO`, Mi = `ar-TD`, Ni = `ar-KM`, Pi = `mg-MG`, t$90 = [pe$2], r$102 = pe$2, e$34 = `x-intlayer-locale`, t$89 = `INTLAYER_LOCALE`, n$98 = `INTLAYER_LOCALE`, a$73 = `prefix-no-default`, r$100 = (t) => {
|
|
11902
11735
|
let { name: n, path: r, expires: i, domain: a, secure: o, sameSite: s, httpOnly: c } = t ?? {};
|
|
11903
11736
|
return {
|
|
11904
|
-
name: n ??
|
|
11737
|
+
name: n ?? t$89,
|
|
11905
11738
|
attributes: {
|
|
11906
11739
|
path: r,
|
|
11907
11740
|
expires: i,
|
|
@@ -11911,52 +11744,52 @@ var n$100 = `.intlayer/main`, r$101 = `.intlayer/dictionary`, i$76 = `.intlayer/
|
|
|
11911
11744
|
httpOnly: c
|
|
11912
11745
|
}
|
|
11913
11746
|
};
|
|
11914
|
-
},
|
|
11915
|
-
let { name:
|
|
11916
|
-
return { name:
|
|
11917
|
-
},
|
|
11918
|
-
let { name: n } =
|
|
11919
|
-
return { name: n ??
|
|
11920
|
-
},
|
|
11747
|
+
}, i$76 = (e) => {
|
|
11748
|
+
let { name: t } = e ?? {};
|
|
11749
|
+
return { name: t ?? n$98 };
|
|
11750
|
+
}, a$72 = (e) => {
|
|
11751
|
+
let { name: n } = e ?? {};
|
|
11752
|
+
return { name: n ?? e$34 };
|
|
11753
|
+
}, o$66 = (e) => e.type === `cookie` || `sameSite` in e || `httpOnly` in e || `secure` in e, s$51 = (e) => e === `cookie` || e === `localStorage` || e === `sessionStorage` || e === `header`, c$40 = (e) => {
|
|
11921
11754
|
if (typeof e == `string`) {
|
|
11922
|
-
if (!
|
|
11755
|
+
if (!s$51(e)) return {
|
|
11923
11756
|
cookies: [],
|
|
11924
11757
|
localStorage: [],
|
|
11925
11758
|
sessionStorage: [],
|
|
11926
11759
|
headers: []
|
|
11927
11760
|
};
|
|
11928
|
-
if (e === `cookie`) return { cookies: [
|
|
11929
|
-
if (e === `localStorage`) return { localStorage: [
|
|
11930
|
-
if (e === `sessionStorage`) return { sessionStorage: [
|
|
11931
|
-
if (e === `header`) return { headers: [
|
|
11761
|
+
if (e === `cookie`) return { cookies: [r$100()] };
|
|
11762
|
+
if (e === `localStorage`) return { localStorage: [i$76()] };
|
|
11763
|
+
if (e === `sessionStorage`) return { sessionStorage: [i$76()] };
|
|
11764
|
+
if (e === `header`) return { headers: [a$72()] };
|
|
11932
11765
|
}
|
|
11933
11766
|
if (typeof e == `object` && e) {
|
|
11934
|
-
let
|
|
11935
|
-
if (
|
|
11936
|
-
if (`type` in
|
|
11937
|
-
let { name: e, ...
|
|
11938
|
-
return { localStorage: [
|
|
11767
|
+
let t = e;
|
|
11768
|
+
if (o$66(t)) return { cookies: [r$100(t)] };
|
|
11769
|
+
if (`type` in t && t.type === `localStorage`) {
|
|
11770
|
+
let { name: e, ...n } = t;
|
|
11771
|
+
return { localStorage: [i$76({
|
|
11939
11772
|
name: e,
|
|
11940
|
-
...
|
|
11773
|
+
...n
|
|
11941
11774
|
})] };
|
|
11942
11775
|
}
|
|
11943
|
-
if (`type` in
|
|
11944
|
-
let { name: e, ...
|
|
11945
|
-
return { sessionStorage: [
|
|
11776
|
+
if (`type` in t && t.type === `sessionStorage`) {
|
|
11777
|
+
let { name: e, ...n } = t;
|
|
11778
|
+
return { sessionStorage: [i$76({
|
|
11946
11779
|
name: e,
|
|
11947
|
-
...
|
|
11780
|
+
...n
|
|
11948
11781
|
})] };
|
|
11949
11782
|
}
|
|
11950
|
-
if (`type` in
|
|
11951
|
-
let { name: e, ...
|
|
11952
|
-
return { headers: [
|
|
11783
|
+
if (`type` in t && t.type === `header`) {
|
|
11784
|
+
let { name: e, ...n } = t;
|
|
11785
|
+
return { headers: [a$72({
|
|
11953
11786
|
name: e,
|
|
11954
|
-
...
|
|
11787
|
+
...n
|
|
11955
11788
|
})] };
|
|
11956
11789
|
}
|
|
11957
|
-
let { name:
|
|
11958
|
-
return { localStorage: [
|
|
11959
|
-
name:
|
|
11790
|
+
let { name: n, ...s } = t;
|
|
11791
|
+
return { localStorage: [i$76({
|
|
11792
|
+
name: n,
|
|
11960
11793
|
...s
|
|
11961
11794
|
})] };
|
|
11962
11795
|
}
|
|
@@ -11966,19 +11799,19 @@ var n$100 = `.intlayer/main`, r$101 = `.intlayer/dictionary`, i$76 = `.intlayer/
|
|
|
11966
11799
|
sessionStorage: [],
|
|
11967
11800
|
headers: []
|
|
11968
11801
|
};
|
|
11969
|
-
},
|
|
11802
|
+
}, l$36 = (e, t) => ({
|
|
11970
11803
|
cookies: [...e.cookies, ...t.cookies ?? []],
|
|
11971
11804
|
localStorage: [...e.localStorage, ...t.localStorage ?? []],
|
|
11972
11805
|
sessionStorage: [...e.sessionStorage, ...t.sessionStorage ?? []],
|
|
11973
11806
|
headers: [...e.headers, ...t.headers ?? []]
|
|
11974
|
-
}),
|
|
11807
|
+
}), u$35 = (e) => {
|
|
11975
11808
|
let t = {
|
|
11976
11809
|
cookies: [],
|
|
11977
11810
|
localStorage: [],
|
|
11978
11811
|
sessionStorage: [],
|
|
11979
11812
|
headers: []
|
|
11980
11813
|
};
|
|
11981
|
-
return e === !1 || e === void 0 ? t : Array.isArray(e) ? e.reduce((e, t) =>
|
|
11814
|
+
return e === !1 || e === void 0 ? t : Array.isArray(e) ? e.reduce((e, t) => l$36(e, c$40(t)), t) : l$36(t, c$40(e));
|
|
11982
11815
|
}, t$88 = (t, n = configuration_default?.internationalization?.locales, r = configuration_default?.internationalization?.defaultLocale) => {
|
|
11983
11816
|
let i = [t].flat(), a = (e) => e.trim().toLowerCase();
|
|
11984
11817
|
try {
|
|
@@ -11990,12 +11823,12 @@ var n$100 = `.intlayer/main`, r$101 = `.intlayer/dictionary`, i$76 = `.intlayer/
|
|
|
11990
11823
|
}
|
|
11991
11824
|
} catch {}
|
|
11992
11825
|
return r;
|
|
11993
|
-
}, n$
|
|
11826
|
+
}, n$97 = function(e) {
|
|
11994
11827
|
return e[e.None = 0] = `None`, e[e.Broad = 1] = `Broad`, e[e.Prefix = 2] = `Prefix`, e[e.Exact = 4] = `Exact`, e;
|
|
11995
|
-
}(n$
|
|
11828
|
+
}(n$97 || {});
|
|
11996
11829
|
//#endregion
|
|
11997
11830
|
//#region ../@intlayer/core/dist/esm/utils/getCookie.mjs
|
|
11998
|
-
var e$
|
|
11831
|
+
var e$33 = (e, t) => {
|
|
11999
11832
|
try {
|
|
12000
11833
|
let n = t ?? (typeof document < `u` ? document.cookie : ``);
|
|
12001
11834
|
if (!n) return;
|
|
@@ -12017,15 +11850,15 @@ var e$32 = (e, t) => {
|
|
|
12017
11850
|
}, r$98 = (e, t, n) => {
|
|
12018
11851
|
let r = [`${e}=${encodeURIComponent(t)}`];
|
|
12019
11852
|
return n.path && r.push(`Path=${n.path}`), n.domain && r.push(`Domain=${n.domain}`), n.expires instanceof Date && r.push(`Expires=${n.expires.toUTCString()}`), n.secure && r.push(`Secure`), n.sameSite && r.push(`SameSite=${n.sameSite}`), r.join(`; `);
|
|
12020
|
-
}, i$
|
|
11853
|
+
}, i$74 = (r) => {
|
|
12021
11854
|
let { routing: i, internationalization: a } = configuration_default, { locales: o } = a, { storage: s } = i;
|
|
12022
11855
|
if (s === !1 || r?.isCookieEnabled === !1) return;
|
|
12023
|
-
let c =
|
|
11856
|
+
let c = u$35(s), l = (e) => e ? o.includes(e) : !1, u = (e) => {
|
|
12024
11857
|
try {
|
|
12025
11858
|
let t = r?.getCookie?.(e);
|
|
12026
11859
|
if (t != null) return t;
|
|
12027
11860
|
} catch {}
|
|
12028
|
-
return e$
|
|
11861
|
+
return e$33(e);
|
|
12029
11862
|
};
|
|
12030
11863
|
for (let e = 0; e < c.cookies.length; e++) {
|
|
12031
11864
|
let { name: t } = c.cookies[e], n = u(t);
|
|
@@ -12054,7 +11887,7 @@ var e$32 = (e, t) => {
|
|
|
12054
11887
|
}
|
|
12055
11888
|
}, a$70 = (t, i) => {
|
|
12056
11889
|
if (configuration_default.routing.storage === !1 || i?.isCookieEnabled === !1) return;
|
|
12057
|
-
let a =
|
|
11890
|
+
let a = u$35(configuration_default.routing.storage);
|
|
12058
11891
|
for (let e = 0; e < a.cookies.length; e++) {
|
|
12059
11892
|
let { name: n, attributes: o } = a.cookies[e];
|
|
12060
11893
|
try {
|
|
@@ -12120,18 +11953,18 @@ var a$69 = {
|
|
|
12120
11953
|
//#region ../@intlayer/core/dist/esm/localization/getHTMLTextDir.mjs
|
|
12121
11954
|
var R$3 = (R) => {
|
|
12122
11955
|
switch (R) {
|
|
12123
|
-
case n$
|
|
12124
|
-
case r$
|
|
12125
|
-
case i$
|
|
12126
|
-
case a$
|
|
12127
|
-
case o$
|
|
12128
|
-
case s$
|
|
12129
|
-
case c$
|
|
11956
|
+
case n$100:
|
|
11957
|
+
case r$103:
|
|
11958
|
+
case i$79:
|
|
11959
|
+
case a$74:
|
|
11960
|
+
case o$68:
|
|
11961
|
+
case s$52:
|
|
11962
|
+
case c$41:
|
|
12130
11963
|
case l$37:
|
|
12131
11964
|
case u$36:
|
|
12132
11965
|
case d$28:
|
|
12133
|
-
case f$
|
|
12134
|
-
case p$
|
|
11966
|
+
case f$24:
|
|
11967
|
+
case p$23:
|
|
12135
11968
|
case m$22:
|
|
12136
11969
|
case h$15:
|
|
12137
11970
|
case g$15:
|
|
@@ -12163,10 +11996,10 @@ var R$3 = (R) => {
|
|
|
12163
11996
|
};
|
|
12164
11997
|
//#endregion
|
|
12165
11998
|
//#region ../@intlayer/core/dist/esm/utils/checkIsURLAbsolute.mjs
|
|
12166
|
-
var e$
|
|
11999
|
+
var e$32 = (e) => /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e), t$86 = (t, n) => {
|
|
12167
12000
|
let r = t ? String(t) : pe$2;
|
|
12168
12001
|
return n ? `${r}|${JSON.stringify(n)}` : r;
|
|
12169
|
-
}, n$
|
|
12002
|
+
}, n$96 = (e) => {
|
|
12170
12003
|
let n = /* @__PURE__ */ new Map();
|
|
12171
12004
|
function r(r, i) {
|
|
12172
12005
|
let a = r, o = i;
|
|
@@ -12186,19 +12019,19 @@ var e$31 = (e) => /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e), t$86 = (t, n) => {
|
|
|
12186
12019
|
if (e.has(r)) return e.get(r);
|
|
12187
12020
|
let a = Reflect.get(t, r, i);
|
|
12188
12021
|
if (typeof a == `function` && typeof r == `string` && /^[A-Z]/.test(r)) {
|
|
12189
|
-
let t = n$
|
|
12022
|
+
let t = n$96(a);
|
|
12190
12023
|
return e.set(r, t), t;
|
|
12191
12024
|
}
|
|
12192
12025
|
return a;
|
|
12193
12026
|
} });
|
|
12194
|
-
}, i$
|
|
12027
|
+
}, i$72 = r$97();
|
|
12195
12028
|
//#endregion
|
|
12196
12029
|
//#region ../@intlayer/core/dist/esm/localization/getLocaleName.mjs
|
|
12197
|
-
var t$85 = (t, n = t) => new i$
|
|
12030
|
+
var t$85 = (t, n = t) => new i$72.DisplayNames(n, { type: `language` }).of(t) ?? `Unknown locale`;
|
|
12198
12031
|
//#endregion
|
|
12199
12032
|
//#region ../@intlayer/core/dist/esm/localization/getPathWithoutLocale.mjs
|
|
12200
|
-
var n$
|
|
12201
|
-
let i = e$
|
|
12033
|
+
var n$95 = (n, r = configuration_default?.internationalization?.locales) => {
|
|
12034
|
+
let i = e$32(n), a = n;
|
|
12202
12035
|
n?.endsWith(`/`) && (a = n.slice(0, -1));
|
|
12203
12036
|
let o = i ? new URL(a) : new URL(a, `http://example.com`), s = o.pathname;
|
|
12204
12037
|
s.startsWith(`/`) || (o.pathname = `/${s}`);
|
|
@@ -12209,24 +12042,24 @@ var n$96 = (n, r = configuration_default?.internationalization?.locales) => {
|
|
|
12209
12042
|
};
|
|
12210
12043
|
//#endregion
|
|
12211
12044
|
//#region ../@intlayer/core/dist/esm/localization/getPrefix.mjs
|
|
12212
|
-
var
|
|
12213
|
-
let { defaultLocale:
|
|
12214
|
-
defaultLocale: configuration_default?.internationalization?.defaultLocale ??
|
|
12215
|
-
mode: configuration_default?.routing?.mode ??
|
|
12216
|
-
locales: configuration_default?.internationalization?.locales ??
|
|
12217
|
-
...
|
|
12045
|
+
var i$71 = (i, a = {}) => {
|
|
12046
|
+
let { defaultLocale: o, mode: s, locales: c } = {
|
|
12047
|
+
defaultLocale: configuration_default?.internationalization?.defaultLocale ?? r$102,
|
|
12048
|
+
mode: configuration_default?.routing?.mode ?? a$73,
|
|
12049
|
+
locales: configuration_default?.internationalization?.locales ?? t$90,
|
|
12050
|
+
...a
|
|
12218
12051
|
};
|
|
12219
|
-
return !
|
|
12052
|
+
return !i || !c.includes(i) ? {
|
|
12220
12053
|
prefix: ``,
|
|
12221
12054
|
localePrefix: void 0
|
|
12222
|
-
} :
|
|
12223
|
-
prefix: `${
|
|
12224
|
-
localePrefix:
|
|
12055
|
+
} : s === `prefix-all` || s === `prefix-no-default` && o !== i ? {
|
|
12056
|
+
prefix: `${i}/`,
|
|
12057
|
+
localePrefix: i
|
|
12225
12058
|
} : {
|
|
12226
12059
|
prefix: ``,
|
|
12227
12060
|
localePrefix: void 0
|
|
12228
12061
|
};
|
|
12229
|
-
}, e$
|
|
12062
|
+
}, e$31 = (e, t = `url`) => {
|
|
12230
12063
|
if (e) return `url` in e ? e[t] : { rules: Object.entries(e).map(([e, t]) => ({
|
|
12231
12064
|
canonical: e.startsWith(`/`) ? e.replace(/\[([^\]]+)\]/g, `:$1`) : `/${e.replace(/\[([^\]]+)\]/g, `:$1`)}`,
|
|
12232
12065
|
localized: Object.fromEntries(Object.entries(t).map(([e, t]) => [e, t?.startsWith(`/`) ? t.replace(/\[([^\]]+)\]/g, `:$1`) : `/${(t || ``).replace(/\[([^\]]+)\]/g, `:$1`)}`]))
|
|
@@ -12274,32 +12107,32 @@ var n$95 = (n, r = {}) => {
|
|
|
12274
12107
|
};
|
|
12275
12108
|
//#endregion
|
|
12276
12109
|
//#region ../@intlayer/core/dist/esm/localization/getLocalizedUrl.mjs
|
|
12277
|
-
var
|
|
12278
|
-
let { defaultLocale:
|
|
12279
|
-
defaultLocale: configuration_default?.internationalization?.defaultLocale ??
|
|
12280
|
-
mode: configuration_default?.routing?.mode ??
|
|
12281
|
-
locales: configuration_default?.internationalization?.locales ??
|
|
12110
|
+
var u$34 = (u, d = configuration_default?.internationalization?.defaultLocale, f = {}) => {
|
|
12111
|
+
let { defaultLocale: p, mode: m, locales: h, rewrite: g } = {
|
|
12112
|
+
defaultLocale: configuration_default?.internationalization?.defaultLocale ?? r$102,
|
|
12113
|
+
mode: configuration_default?.routing?.mode ?? a$73,
|
|
12114
|
+
locales: configuration_default?.internationalization?.locales ?? t$90,
|
|
12282
12115
|
rewrite: configuration_default?.routing?.rewrite,
|
|
12283
|
-
...
|
|
12284
|
-
},
|
|
12285
|
-
if (
|
|
12286
|
-
let
|
|
12287
|
-
if (
|
|
12288
|
-
let e = new URLSearchParams(
|
|
12289
|
-
e.set(`locale`,
|
|
12290
|
-
let t = e.toString(), n = t ? `${
|
|
12291
|
-
return
|
|
12292
|
-
}
|
|
12293
|
-
let { prefix:
|
|
12294
|
-
defaultLocale:
|
|
12295
|
-
mode:
|
|
12296
|
-
locales:
|
|
12297
|
-
}),
|
|
12298
|
-
return
|
|
12116
|
+
...f
|
|
12117
|
+
}, _ = n$95(u, h), v = e$31(g, `url`);
|
|
12118
|
+
if (m === `no-prefix`) return a$67(i$70(_, void 0, v), d, v).path;
|
|
12119
|
+
let y = e$32(_), b = y ? new URL(_) : new URL(_, `http://example.com`), x = y ? `${b.protocol}//${b.host}` : ``, S = a$67(i$70(b.pathname, void 0, v), d, v).path;
|
|
12120
|
+
if (m === `search-params`) {
|
|
12121
|
+
let e = new URLSearchParams(b.search);
|
|
12122
|
+
e.set(`locale`, d.toString());
|
|
12123
|
+
let t = e.toString(), n = t ? `${S}?${t}` : S;
|
|
12124
|
+
return y ? `${x}${n}${b.hash}` : `${n}${b.hash}`;
|
|
12125
|
+
}
|
|
12126
|
+
let { prefix: C } = i$71(d, {
|
|
12127
|
+
defaultLocale: p,
|
|
12128
|
+
mode: m,
|
|
12129
|
+
locales: h
|
|
12130
|
+
}), w = `/${C}${S}`;
|
|
12131
|
+
return w = w.replaceAll(/\/+/g, `/`), w.length > 1 && w.endsWith(`/`) && (w = w.slice(0, -1)), y ? `${x}${w}${b.search}${b.hash}` : `${w}${b.search}${b.hash}`;
|
|
12299
12132
|
};
|
|
12300
12133
|
//#endregion
|
|
12301
12134
|
//#region ../@intlayer/core/dist/esm/utils/isValidReactElement.mjs
|
|
12302
|
-
var e$
|
|
12135
|
+
var e$30 = (e) => typeof e == `object` && e?.key !== void 0 && e?.props !== void 0, e$29 = (e, t) => e.every((e, n) => t[n] && t[n].key === e.key && t[n].type === e.type), a$66 = i$74(a$69), s$47 = (e, n) => a$70(e, {
|
|
12303
12136
|
...a$69,
|
|
12304
12137
|
isCookieEnabled: n
|
|
12305
12138
|
});
|
|
@@ -12362,7 +12195,7 @@ var __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
|
12362
12195
|
}
|
|
12363
12196
|
return baseModule().catch(handlePreloadError);
|
|
12364
12197
|
});
|
|
12365
|
-
}, d$
|
|
12198
|
+
}, d$27 = (0, import_react.createContext)({
|
|
12366
12199
|
locale: a$66 ?? configuration_default?.internationalization?.defaultLocale,
|
|
12367
12200
|
setLocale: () => null,
|
|
12368
12201
|
isCookieEnabled: !0
|
|
@@ -12380,7 +12213,7 @@ var __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
|
12380
12213
|
v(e), s$47(e, p);
|
|
12381
12214
|
}
|
|
12382
12215
|
}), b = t$88(_);
|
|
12383
|
-
return (0, import_jsx_runtime.jsx)(d$
|
|
12216
|
+
return (0, import_jsx_runtime.jsx)(d$27.Provider, {
|
|
12384
12217
|
value: {
|
|
12385
12218
|
locale: b,
|
|
12386
12219
|
setLocale: y,
|
|
@@ -12392,8 +12225,8 @@ var __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
|
12392
12225
|
//#endregion
|
|
12393
12226
|
//#region ../react-intlayer/dist/esm/client/useDictionary.mjs
|
|
12394
12227
|
var i$68 = (i, a) => {
|
|
12395
|
-
let { locale: o } = (0, import_react.useContext)(d$
|
|
12396
|
-
return (0, import_react.useMemo)(() => n$
|
|
12228
|
+
let { locale: o } = (0, import_react.useContext)(d$27);
|
|
12229
|
+
return (0, import_react.useMemo)(() => n$102(i, a ?? o), [
|
|
12397
12230
|
i.key,
|
|
12398
12231
|
o,
|
|
12399
12232
|
a
|
|
@@ -12402,7 +12235,7 @@ var i$68 = (i, a) => {
|
|
|
12402
12235
|
//#endregion
|
|
12403
12236
|
//#region ../react-intlayer/dist/esm/client/useLocale.mjs
|
|
12404
12237
|
var a$63 = ({ isCookieEnabled: a, onLocaleChange: o } = {}) => {
|
|
12405
|
-
let { defaultLocale: s, locales: c } = configuration_default?.internationalization ?? {}, { locale: l, setLocale: u, isCookieEnabled: d } = (0, import_react.useContext)(d$
|
|
12238
|
+
let { defaultLocale: s, locales: c } = configuration_default?.internationalization ?? {}, { locale: l, setLocale: u, isCookieEnabled: d } = (0, import_react.useContext)(d$27);
|
|
12406
12239
|
return {
|
|
12407
12240
|
locale: l,
|
|
12408
12241
|
defaultLocale: s,
|
|
@@ -17975,7 +17808,7 @@ var X$3 = createLucideIcon("x", [["path", {
|
|
|
17975
17808
|
default: `bg-card/80 text-text`
|
|
17976
17809
|
} },
|
|
17977
17810
|
defaultVariants: { variant: `default` }
|
|
17978
|
-
}), c$
|
|
17811
|
+
}), c$35 = ({ className: n, variant: r, ...a }) => (0, import_jsx_runtime.jsx)(Root2$2, {
|
|
17979
17812
|
className: n$91(s$45({ variant: r }), n),
|
|
17980
17813
|
...a
|
|
17981
17814
|
}), u$32 = ({ className: n, ...a }) => (0, import_jsx_runtime.jsx)(Close, {
|
|
@@ -17983,7 +17816,7 @@ var X$3 = createLucideIcon("x", [["path", {
|
|
|
17983
17816
|
"toast-close": ``,
|
|
17984
17817
|
...a,
|
|
17985
17818
|
children: (0, import_jsx_runtime.jsx)(X$3, { className: `size-5` })
|
|
17986
|
-
}), d$
|
|
17819
|
+
}), d$26 = ({ className: n, ...r }) => (0, import_jsx_runtime.jsx)(Title, {
|
|
17987
17820
|
className: n$91(`font-semibold text-sm [&+div]:text-xs`, n),
|
|
17988
17821
|
...r
|
|
17989
17822
|
}), f$22 = ({ className: n, ...r }) => (0, import_jsx_runtime.jsx)(Description, {
|
|
@@ -18038,13 +17871,13 @@ var i$65 = () => (r$91 = (r$91 + 1) % (2 ** 53 - 1), r$91.toString()), a$61 = /*
|
|
|
18038
17871
|
toasts: e.toasts.filter((e) => e.id !== t.toastId)
|
|
18039
17872
|
};
|
|
18040
17873
|
}
|
|
18041
|
-
}, c$
|
|
17874
|
+
}, c$34 = [];
|
|
18042
17875
|
var l$30 = { toasts: [] };
|
|
18043
17876
|
var u$31 = (e) => {
|
|
18044
|
-
l$30 = s$44(l$30, e), c$
|
|
17877
|
+
l$30 = s$44(l$30, e), c$34.forEach((e) => {
|
|
18045
17878
|
e(l$30);
|
|
18046
17879
|
});
|
|
18047
|
-
}, d$
|
|
17880
|
+
}, d$25 = ({ ...e }) => {
|
|
18048
17881
|
let t = i$65(), r = (e) => u$31({
|
|
18049
17882
|
type: n$90.UPDATE_TOAST,
|
|
18050
17883
|
toast: {
|
|
@@ -18072,12 +17905,12 @@ var u$31 = (e) => {
|
|
|
18072
17905
|
};
|
|
18073
17906
|
}, f$21 = () => {
|
|
18074
17907
|
let [r, i] = (0, import_react.useState)(l$30);
|
|
18075
|
-
return (0, import_react.useEffect)(() => (c$
|
|
18076
|
-
let e = c$
|
|
18077
|
-
e > -1 && c$
|
|
17908
|
+
return (0, import_react.useEffect)(() => (c$34.push(i), () => {
|
|
17909
|
+
let e = c$34.indexOf(i);
|
|
17910
|
+
e > -1 && c$34.splice(e, 1);
|
|
18078
17911
|
}), [r]), {
|
|
18079
17912
|
...r,
|
|
18080
|
-
toast: d$
|
|
17913
|
+
toast: d$25,
|
|
18081
17914
|
dismiss: (e) => u$31({
|
|
18082
17915
|
type: n$90.DISMISS_TOAST,
|
|
18083
17916
|
toastId: e
|
|
@@ -18088,12 +17921,12 @@ var u$31 = (e) => {
|
|
|
18088
17921
|
//#region ../@intlayer/design-system/dist/esm/components/Toaster/Toaster.mjs
|
|
18089
17922
|
var l$29 = () => {
|
|
18090
17923
|
let { toasts: l } = f$21();
|
|
18091
|
-
return (0, import_jsx_runtime.jsxs)(a$62.Provider, { children: [l.map(({ id: r, title: a, description: o, action: l, ...u }) => (0, import_jsx_runtime.jsxs)(c$
|
|
17924
|
+
return (0, import_jsx_runtime.jsxs)(a$62.Provider, { children: [l.map(({ id: r, title: a, description: o, action: l, ...u }) => (0, import_jsx_runtime.jsxs)(c$35, {
|
|
18092
17925
|
...u,
|
|
18093
17926
|
children: [
|
|
18094
17927
|
(0, import_jsx_runtime.jsxs)(`div`, {
|
|
18095
17928
|
className: `grid gap-1`,
|
|
18096
|
-
children: [a && (0, import_jsx_runtime.jsx)(d$
|
|
17929
|
+
children: [a && (0, import_jsx_runtime.jsx)(d$26, { children: a }), o && (0, import_jsx_runtime.jsx)(f$22, { children: o })]
|
|
18097
17930
|
}),
|
|
18098
17931
|
l,
|
|
18099
17932
|
(0, import_jsx_runtime.jsx)(u$32, {})
|
|
@@ -18200,7 +18033,7 @@ var r$90 = cva(`flex flex-col text-text backdrop-blur`, {
|
|
|
18200
18033
|
(function(e) {
|
|
18201
18034
|
return e.NONE = `none`, e.SM = `sm`, e.MD = `md`, e.LG = `lg`, e.XL = `xl`, e[`2xl`] = `2xl`, e;
|
|
18202
18035
|
})({});
|
|
18203
|
-
var d$
|
|
18036
|
+
var d$24 = ({ children: t, roundedSize: i, padding: a, transparency: o, separator: s, className: c, border: l, borderColor: u, background: d, gap: f, ...p }) => (0, import_jsx_runtime.jsx)(`div`, {
|
|
18204
18037
|
className: n$91(r$90({
|
|
18205
18038
|
roundedSize: i,
|
|
18206
18039
|
transparency: o,
|
|
@@ -18314,14 +18147,14 @@ var s$41 = cva(`flex-none shrink-0`, {
|
|
|
18314
18147
|
} },
|
|
18315
18148
|
defaultVariants: { size: o$56.MD }
|
|
18316
18149
|
});
|
|
18317
|
-
var c$
|
|
18150
|
+
var c$31 = function(e) {
|
|
18318
18151
|
return e.DEFAULT = `default`, e.NONE = `none`, e.OUTLINE = `outline`, e.LINK = `link`, e.INVISIBLE_LINK = `invisible-link`, e.HOVERABLE = `hoverable`, e.FADE = `fade`, e.INPUT = `input`, e;
|
|
18319
18152
|
}({}), l$27 = function(e) {
|
|
18320
18153
|
return e.PRIMARY = `primary`, e.SECONDARY = `secondary`, e.DESTRUCTIVE = `destructive`, e.NEUTRAL = `neutral`, e.LIGHT = `light`, e.DARK = `dark`, e.TEXT = `text`, e.CARD = `card`, e.TEXT_INVERSE = `text-inverse`, e.CURRENT = `current`, e.ERROR = `error`, e.SUCCESS = `success`, e.CUSTOM = `custom`, e;
|
|
18321
18154
|
}({}), u$29 = function(e) {
|
|
18322
18155
|
return e.LEFT = `left`, e.CENTER = `center`, e.RIGHT = `right`, e;
|
|
18323
18156
|
}({});
|
|
18324
|
-
var d$
|
|
18157
|
+
var d$23 = cva(`relative inline-flex cursor-pointer items-center justify-center font-medium ring-0 transition-all duration-300 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50`, {
|
|
18325
18158
|
variants: {
|
|
18326
18159
|
size: {
|
|
18327
18160
|
[`${o$56.SM}`]: `min-h-7 px-3 text-xs max-md:py-1`,
|
|
@@ -18361,28 +18194,28 @@ var d$22 = cva(`relative inline-flex cursor-pointer items-center justify-center
|
|
|
18361
18194
|
[`${i$64.FULL}`]: `rounded-full`
|
|
18362
18195
|
},
|
|
18363
18196
|
variant: {
|
|
18364
|
-
[`${c$
|
|
18197
|
+
[`${c$31.DEFAULT}`]: [
|
|
18365
18198
|
`bg-current`,
|
|
18366
18199
|
`hover:bg-current/90`,
|
|
18367
18200
|
`hover:ring-5`,
|
|
18368
18201
|
`aria-selected:ring-5`
|
|
18369
18202
|
],
|
|
18370
|
-
[`${c$
|
|
18203
|
+
[`${c$31.OUTLINE}`]: [
|
|
18371
18204
|
`rounded-2xl border-[1.3px] border-current bg-current/0 *:text-current!`,
|
|
18372
18205
|
`hover:bg-current/20 focus-visible:bg-current/20`,
|
|
18373
18206
|
`hover:ring-5 focus-visible:ring-5`,
|
|
18374
18207
|
`aria-selected:ring-5`
|
|
18375
18208
|
],
|
|
18376
|
-
[`${c$
|
|
18377
|
-
[`${c$
|
|
18378
|
-
[`${c$
|
|
18379
|
-
[`${c$
|
|
18380
|
-
[`${c$
|
|
18209
|
+
[`${c$31.NONE}`]: `border-none bg-current/0 text-inherit hover:bg-current/0`,
|
|
18210
|
+
[`${c$31.LINK}`]: `h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 *:text-current! hover:bg-transparent hover:underline`,
|
|
18211
|
+
[`${c$31.INVISIBLE_LINK}`]: `h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 *:text-current! hover:bg-transparent`,
|
|
18212
|
+
[`${c$31.HOVERABLE}`]: `rounded-lg border-none bg-current/0 transition *:text-current! hover:bg-current/20 aria-[current]:bg-current/5`,
|
|
18213
|
+
[`${c$31.FADE}`]: [
|
|
18381
18214
|
`rounded-lg border-none bg-current/10 ring-current/5 transition *:text-current! hover:bg-current/20 aria-[current]:bg-current/5`,
|
|
18382
18215
|
`hover:ring-5 focus-visible:ring-5`,
|
|
18383
18216
|
`aria-selected:ring-5`
|
|
18384
18217
|
],
|
|
18385
|
-
[`${c$
|
|
18218
|
+
[`${c$31.INPUT}`]: [
|
|
18386
18219
|
`text-text`,
|
|
18387
18220
|
`w-full select-text resize-none rounded-2xl text-base shadow-none outline-none supports-[corner-shape:squircle]:rounded-4xl`,
|
|
18388
18221
|
`transition-shadow duration-100 md:text-sm`,
|
|
@@ -18411,7 +18244,7 @@ var d$22 = cva(`relative inline-flex cursor-pointer items-center justify-center
|
|
|
18411
18244
|
}
|
|
18412
18245
|
},
|
|
18413
18246
|
defaultVariants: {
|
|
18414
|
-
variant: `${c$
|
|
18247
|
+
variant: `${c$31.DEFAULT}`,
|
|
18415
18248
|
size: `${o$56.MD}`,
|
|
18416
18249
|
color: `${l$27.CUSTOM}`,
|
|
18417
18250
|
roundedSize: `${i$64.MD}`,
|
|
@@ -18419,7 +18252,7 @@ var d$22 = cva(`relative inline-flex cursor-pointer items-center justify-center
|
|
|
18419
18252
|
isFullWidth: !1
|
|
18420
18253
|
}
|
|
18421
18254
|
}), f$20 = ({ variant: t, size: r, color: l, children: f, Icon: p, IconRight: m, iconClassName: h, isLoading: g = !1, isActive: _, isSelected: v, isFullWidth: y, roundedSize: b, textAlign: x, disabled: S, label: C, className: w, type: T = `button`, "aria-describedby": E, "aria-expanded": D, "aria-haspopup": O, "aria-pressed": k, ...A }) => {
|
|
18422
|
-
let j = t === `${c$
|
|
18255
|
+
let j = t === `${c$31.LINK}` || t === `${c$31.INVISIBLE_LINK}`, M = !f && (p || m), N = {
|
|
18423
18256
|
"aria-label": M ? C ?? void 0 : void 0,
|
|
18424
18257
|
"aria-labelledby": void 0,
|
|
18425
18258
|
"aria-describedby": E,
|
|
@@ -18435,7 +18268,7 @@ var d$22 = cva(`relative inline-flex cursor-pointer items-center justify-center
|
|
|
18435
18268
|
disabled: g || S,
|
|
18436
18269
|
role: j ? `link` : `button`,
|
|
18437
18270
|
type: T,
|
|
18438
|
-
className: d$
|
|
18271
|
+
className: d$23({
|
|
18439
18272
|
variant: t,
|
|
18440
18273
|
size: r,
|
|
18441
18274
|
color: l,
|
|
@@ -18509,7 +18342,7 @@ var u$28 = ({ children: u, header: d, isOpen: f, defaultIsOpen: p = !1, onToggle
|
|
|
18509
18342
|
return (0, import_jsx_runtime.jsxs)(`div`, {
|
|
18510
18343
|
className: `w-full`,
|
|
18511
18344
|
children: [(0, import_jsx_runtime.jsx)(f$20, {
|
|
18512
|
-
variant: c$
|
|
18345
|
+
variant: c$31.HOVERABLE,
|
|
18513
18346
|
color: l$27.TEXT,
|
|
18514
18347
|
onClick: k,
|
|
18515
18348
|
onKeyDown: (e) => {
|
|
@@ -18577,7 +18410,7 @@ var s$40 = cva(`inline-flex items-center rounded-md border px-2.5 py-0.5 font-se
|
|
|
18577
18410
|
color: i$61.PRIMARY,
|
|
18578
18411
|
size: o$54.MEDIUM
|
|
18579
18412
|
}
|
|
18580
|
-
}), c$
|
|
18413
|
+
}), c$29 = ({ className: t, variant: c = a$56.DEFAULT, color: l = i$61.PRIMARY, size: u = o$54.MEDIUM, children: d, clickable: f = !1, dismissible: p = !1, onClick: m, onDismiss: h, role: g, tabIndex: _, "aria-label": v, ...y }) => {
|
|
18581
18414
|
let b = f ? `button` : `span`, x = (e) => {
|
|
18582
18415
|
f && m && (e.key === `Enter` || e.key === ` `) && (e.preventDefault(), m(e));
|
|
18583
18416
|
}, S = (e) => {
|
|
@@ -18616,13 +18449,13 @@ var s$40 = cva(`inline-flex items-center rounded-md border px-2.5 py-0.5 font-se
|
|
|
18616
18449
|
};
|
|
18617
18450
|
//#endregion
|
|
18618
18451
|
//#region ../@intlayer/design-system/dist/esm/components/Link/Link.mjs
|
|
18619
|
-
var c$
|
|
18452
|
+
var c$28 = function(e) {
|
|
18620
18453
|
return e.DEFAULT = `default`, e.INVISIBLE_LINK = `invisible-link`, e.BUTTON = `button`, e.BUTTON_OUTLINED = `button-outlined`, e.HOVERABLE = `hoverable`, e;
|
|
18621
18454
|
}({}), l$25 = function(e) {
|
|
18622
18455
|
return e.PRIMARY = `primary`, e.SECONDARY = `secondary`, e.DESTRUCTIVE = `destructive`, e.NEUTRAL = `neutral`, e.LIGHT = `light`, e.DARK = `dark`, e.TEXT = `text`, e.TEXT_INVERSE = `text-inverse`, e.ERROR = `error`, e.SUCCESS = `success`, e.CUSTOM = `custom`, e;
|
|
18623
18456
|
}({}), u$27 = function(e) {
|
|
18624
18457
|
return e.NONE = `none`, e.SM = `sm`, e.MD = `md`, e.LG = `lg`, e.XL = `xl`, e.TWO_XL = `2xl`, e.THREE_XL = `3xl`, e.FULL = `full`, e;
|
|
18625
|
-
}({}), d$
|
|
18458
|
+
}({}), d$22 = function(e) {
|
|
18626
18459
|
return e.SM = `sm`, e.MD = `md`, e.LG = `lg`, e.XL = `xl`, e.CUSTOM = `custom`, e;
|
|
18627
18460
|
}({}), f$19 = function(e) {
|
|
18628
18461
|
return e.DEFAULT = `default`, e.TRUE = `true`, e.FALSE = `false`, e;
|
|
@@ -18630,11 +18463,11 @@ var c$29 = function(e) {
|
|
|
18630
18463
|
var p$21 = cva(`gap-3 transition-all duration-300 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50`, {
|
|
18631
18464
|
variants: {
|
|
18632
18465
|
variant: {
|
|
18633
|
-
[`${c$
|
|
18634
|
-
[`${c$
|
|
18635
|
-
[`${c$
|
|
18636
|
-
[`${c$
|
|
18637
|
-
[`${c$
|
|
18466
|
+
[`${c$28.DEFAULT}`]: `h-auto justify-start border-inherit bg-current/0 px-1 font-medium decoration-[1.5] underline-offset-5 hover:bg-current/0 hover:text-current/80 hover:underline hover:underline-offset-6`,
|
|
18467
|
+
[`${c$28.INVISIBLE_LINK}`]: `h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-5 hover:bg-current/0`,
|
|
18468
|
+
[`${c$28.BUTTON}`]: `relative flex cursor-pointer flex-row items-center justify-center gap-2 rounded-full bg-current text-center font-medium text-text ring-0 *:text-text-opposite hover:bg-current/90 hover:ring-5 aria-selected:ring-5`,
|
|
18469
|
+
[`${c$28.BUTTON_OUTLINED}`]: `relative flex cursor-pointer flex-row items-center justify-center gap-2 rounded-full border-[1.3px] border-current text-center font-medium text-text ring-0 *:text-text hover:bg-current/20 hover:ring-5 aria-selected:ring-5`,
|
|
18470
|
+
[`${c$28.HOVERABLE}`]: `block rounded-lg border-none bg-current/0 hover:bg-current/10 aria-[current]:bg-current/5`
|
|
18638
18471
|
},
|
|
18639
18472
|
roundedSize: {
|
|
18640
18473
|
[`${u$27.NONE}`]: `rounded-none`,
|
|
@@ -18660,11 +18493,11 @@ var p$21 = cva(`gap-3 transition-all duration-300 focus-visible:outline-none dis
|
|
|
18660
18493
|
[`${l$25.CUSTOM}`]: ``
|
|
18661
18494
|
},
|
|
18662
18495
|
size: {
|
|
18663
|
-
[`${d$
|
|
18664
|
-
[`${d$
|
|
18665
|
-
[`${d$
|
|
18666
|
-
[`${d$
|
|
18667
|
-
[`${d$
|
|
18496
|
+
[`${d$22.SM}`]: `text-sm`,
|
|
18497
|
+
[`${d$22.MD}`]: `text-base`,
|
|
18498
|
+
[`${d$22.LG}`]: `text-lg`,
|
|
18499
|
+
[`${d$22.XL}`]: `text-xl`,
|
|
18500
|
+
[`${d$22.CUSTOM}`]: ``
|
|
18668
18501
|
},
|
|
18669
18502
|
underlined: {
|
|
18670
18503
|
[f$19.DEFAULT]: ``,
|
|
@@ -18674,99 +18507,99 @@ var p$21 = cva(`gap-3 transition-all duration-300 focus-visible:outline-none dis
|
|
|
18674
18507
|
},
|
|
18675
18508
|
compoundVariants: [
|
|
18676
18509
|
{
|
|
18677
|
-
variant: c$
|
|
18510
|
+
variant: c$28.BUTTON,
|
|
18678
18511
|
color: l$25.TEXT_INVERSE,
|
|
18679
18512
|
class: `*:text-text`
|
|
18680
18513
|
},
|
|
18681
18514
|
{
|
|
18682
|
-
variant: c$
|
|
18515
|
+
variant: c$28.BUTTON_OUTLINED,
|
|
18683
18516
|
color: l$25.TEXT_INVERSE,
|
|
18684
18517
|
class: `text-text-opposite *:text-text-opposite`
|
|
18685
18518
|
},
|
|
18686
18519
|
{
|
|
18687
|
-
variant: [c$
|
|
18688
|
-
size: d$
|
|
18520
|
+
variant: [c$28.BUTTON, c$28.BUTTON_OUTLINED],
|
|
18521
|
+
size: d$22.SM,
|
|
18689
18522
|
class: `min-h-7 px-3 max-md:py-1`
|
|
18690
18523
|
},
|
|
18691
18524
|
{
|
|
18692
|
-
variant: [c$
|
|
18693
|
-
size: d$
|
|
18525
|
+
variant: [c$28.BUTTON, c$28.BUTTON_OUTLINED],
|
|
18526
|
+
size: d$22.MD,
|
|
18694
18527
|
class: `min-h-8 px-6 max-md:py-2`
|
|
18695
18528
|
},
|
|
18696
18529
|
{
|
|
18697
|
-
variant: [c$
|
|
18698
|
-
size: d$
|
|
18530
|
+
variant: [c$28.BUTTON, c$28.BUTTON_OUTLINED],
|
|
18531
|
+
size: d$22.LG,
|
|
18699
18532
|
class: `min-h-10 px-8 max-md:py-3`
|
|
18700
18533
|
},
|
|
18701
18534
|
{
|
|
18702
|
-
variant: [c$
|
|
18703
|
-
size: d$
|
|
18535
|
+
variant: [c$28.BUTTON, c$28.BUTTON_OUTLINED],
|
|
18536
|
+
size: d$22.XL,
|
|
18704
18537
|
class: `min-h-11 px-10 max-md:py-4`
|
|
18705
18538
|
},
|
|
18706
18539
|
{
|
|
18707
|
-
variant: [c$
|
|
18540
|
+
variant: [c$28.BUTTON, c$28.BUTTON_OUTLINED],
|
|
18708
18541
|
color: l$25.PRIMARY,
|
|
18709
18542
|
class: `ring-primary/20`
|
|
18710
18543
|
},
|
|
18711
18544
|
{
|
|
18712
|
-
variant: [c$
|
|
18545
|
+
variant: [c$28.BUTTON, c$28.BUTTON_OUTLINED],
|
|
18713
18546
|
color: l$25.SECONDARY,
|
|
18714
18547
|
class: `ring-secondary/20`
|
|
18715
18548
|
},
|
|
18716
18549
|
{
|
|
18717
|
-
variant: [c$
|
|
18550
|
+
variant: [c$28.BUTTON, c$28.BUTTON_OUTLINED],
|
|
18718
18551
|
color: l$25.DESTRUCTIVE,
|
|
18719
18552
|
class: `ring-destructive/20`
|
|
18720
18553
|
},
|
|
18721
18554
|
{
|
|
18722
|
-
variant: [c$
|
|
18555
|
+
variant: [c$28.BUTTON, c$28.BUTTON_OUTLINED],
|
|
18723
18556
|
color: l$25.NEUTRAL,
|
|
18724
18557
|
class: `ring-neutral/20`
|
|
18725
18558
|
},
|
|
18726
18559
|
{
|
|
18727
|
-
variant: [c$
|
|
18560
|
+
variant: [c$28.BUTTON, c$28.BUTTON_OUTLINED],
|
|
18728
18561
|
color: l$25.LIGHT,
|
|
18729
18562
|
class: `ring-white/20`
|
|
18730
18563
|
},
|
|
18731
18564
|
{
|
|
18732
|
-
variant: [c$
|
|
18565
|
+
variant: [c$28.BUTTON, c$28.BUTTON_OUTLINED],
|
|
18733
18566
|
color: l$25.DARK,
|
|
18734
18567
|
class: `ring-neutral-800/20`
|
|
18735
18568
|
},
|
|
18736
18569
|
{
|
|
18737
|
-
variant: [c$
|
|
18570
|
+
variant: [c$28.BUTTON, c$28.BUTTON_OUTLINED],
|
|
18738
18571
|
color: l$25.TEXT,
|
|
18739
18572
|
class: `ring-text/20`
|
|
18740
18573
|
},
|
|
18741
18574
|
{
|
|
18742
|
-
variant: [c$
|
|
18575
|
+
variant: [c$28.BUTTON, c$28.BUTTON_OUTLINED],
|
|
18743
18576
|
color: l$25.TEXT_INVERSE,
|
|
18744
18577
|
class: `ring-text-opposite/20`
|
|
18745
18578
|
},
|
|
18746
18579
|
{
|
|
18747
|
-
variant: [c$
|
|
18580
|
+
variant: [c$28.BUTTON, c$28.BUTTON_OUTLINED],
|
|
18748
18581
|
color: l$25.ERROR,
|
|
18749
18582
|
class: `ring-error/20`
|
|
18750
18583
|
},
|
|
18751
18584
|
{
|
|
18752
|
-
variant: [c$
|
|
18585
|
+
variant: [c$28.BUTTON, c$28.BUTTON_OUTLINED],
|
|
18753
18586
|
color: l$25.SUCCESS,
|
|
18754
18587
|
class: `ring-success/20`
|
|
18755
18588
|
}
|
|
18756
18589
|
],
|
|
18757
18590
|
defaultVariants: {
|
|
18758
|
-
variant: c$
|
|
18591
|
+
variant: c$28.DEFAULT,
|
|
18759
18592
|
roundedSize: u$27.MD,
|
|
18760
18593
|
underlined: f$19.DEFAULT,
|
|
18761
|
-
size: d$
|
|
18594
|
+
size: d$22.MD
|
|
18762
18595
|
}
|
|
18763
18596
|
}), m$20 = ({ href: e, isExternalLink: t }) => {
|
|
18764
18597
|
let n = typeof e == `string` && e.trim() !== ``;
|
|
18765
18598
|
return t === !0 || t === void 0 && n && /^https?:\/\//.test(e);
|
|
18766
18599
|
}, h$14 = (e) => typeof e == `string` || typeof e == `number` ? !0 : Array.isArray(e) ? e.every(h$14) : (0, import_react.isValidElement)(e) ? h$14(e.props.children) : !1, g$14 = (t) => {
|
|
18767
|
-
let { variant: n = c$
|
|
18600
|
+
let { variant: n = c$28.DEFAULT, color: u = l$25.CUSTOM, roundedSize: d, children: f, label: g, className: _, isActive: v, underlined: y, locale: b, size: x, isExternalLink: S, isPageSection: C, href: w, ...T } = t, E = S ?? m$20(t), D = C ?? w?.startsWith(`#`) ?? !1, O = h$14(f), k = n === c$28.BUTTON || n === c$28.BUTTON_OUTLINED, A = E ? `noopener noreferrer nofollow` : void 0, j = E ? `_blank` : `_self`;
|
|
18768
18601
|
return (0, import_jsx_runtime.jsxs)(`a`, {
|
|
18769
|
-
href: b && w && !E && !D ?
|
|
18602
|
+
href: b && w && !E && !D ? u$34(w, b) : w,
|
|
18770
18603
|
"aria-label": g,
|
|
18771
18604
|
rel: A,
|
|
18772
18605
|
target: j,
|
|
@@ -18868,7 +18701,7 @@ var m$19 = (e) => e && {
|
|
|
18868
18701
|
let { linkLabel: c } = i$68(breadcrumb_default);
|
|
18869
18702
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [(0, import_jsx_runtime.jsx)(f$20, {
|
|
18870
18703
|
onClick: r,
|
|
18871
|
-
variant: c$
|
|
18704
|
+
variant: c$31.LINK,
|
|
18872
18705
|
label: `${c} ${e}`,
|
|
18873
18706
|
color: i,
|
|
18874
18707
|
itemProp: `item`,
|
|
@@ -19034,7 +18867,7 @@ var s$39 = ({ validationStyleEnabled: t = !1, label: r, size: a, color: o, name:
|
|
|
19034
18867
|
validationStyleEnabled: t ? `enabled` : `disabled`
|
|
19035
18868
|
}), l),
|
|
19036
18869
|
...d
|
|
19037
|
-
}), c$
|
|
18870
|
+
}), c$27 = (t) => {
|
|
19038
18871
|
let { label: i, name: a, id: o } = t;
|
|
19039
18872
|
return i ? (0, import_jsx_runtime.jsxs)(`label`, {
|
|
19040
18873
|
htmlFor: o ?? a,
|
|
@@ -19485,7 +19318,7 @@ var a$49 = ({ className: a, ...o }) => (0, import_jsx_runtime.jsxs)(`div`, {
|
|
|
19485
19318
|
if (e !== void 0) return /Macintosh|MacIntel|Mac OS X/.test(e);
|
|
19486
19319
|
}, s$38 = (e) => {
|
|
19487
19320
|
if (!(typeof window > `u`)) return (window?.innerWidth ?? 0) <= e;
|
|
19488
|
-
}, c$
|
|
19321
|
+
}, c$26 = (e = `md`) => {
|
|
19489
19322
|
let t = n$81(e), i = r$82(), c = s$38(t);
|
|
19490
19323
|
return {
|
|
19491
19324
|
isMobileScreen: c,
|
|
@@ -19495,10 +19328,10 @@ var a$49 = ({ className: a, ...o }) => (0, import_jsx_runtime.jsxs)(`div`, {
|
|
|
19495
19328
|
isMac: o$47()
|
|
19496
19329
|
};
|
|
19497
19330
|
}, l$22 = (n = `md`) => {
|
|
19498
|
-
let [r, i] = (0, import_react.useState)(c$
|
|
19331
|
+
let [r, i] = (0, import_react.useState)(c$26(n));
|
|
19499
19332
|
return (0, import_react.useEffect)(() => {
|
|
19500
19333
|
let e = () => {
|
|
19501
|
-
i(c$
|
|
19334
|
+
i(c$26(n));
|
|
19502
19335
|
};
|
|
19503
19336
|
return window.addEventListener(`resize`, e, { passive: !0 }), () => window.removeEventListener(`resize`, e);
|
|
19504
19337
|
}, [n]), r;
|
|
@@ -19506,7 +19339,7 @@ var a$49 = ({ className: a, ...o }) => (0, import_jsx_runtime.jsxs)(`div`, {
|
|
|
19506
19339
|
(function(e) {
|
|
19507
19340
|
return e[`⌘`] = `⌘`, e.Ctrl = `Ctrl`, e.Alt = `Alt`, e[`⌥`] = `⌥`, e.Shift = `Shift`, e.Meta = `Meta`, e.F = `F`, e.K = `K`, e.L = `L`, e.P = `P`, e.S = `S`, e.A = `A`, e.B = `B`, e.C = `C`, e.D = `D`, e.E = `E`, e.G = `G`, e.H = `H`, e.I = `I`, e.J = `J`, e.M = `M`, e.N = `N`, e.O = `O`, e.Q = `Q`, e.R = `R`, e.T = `T`, e.U = `U`, e.V = `V`, e.W = `W`, e.X = `X`, e.Y = `Y`, e.Z = `Z`, e.Enter = `Enter`, e.Escape = `Escape`, e.Backspace = `Backspace`, e.Tab = `Tab`, e.Space = `Space`, e.ArrowUp = `ArrowUp`, e.ArrowDown = `ArrowDown`, e.ArrowLeft = `ArrowLeft`, e.ArrowRight = `ArrowRight`, e[`↑`] = `↑`, e[`↓`] = `↓`, e[`←`] = `←`, e[`→`] = `→`, e;
|
|
19508
19341
|
})({});
|
|
19509
|
-
var s$37 = (e) => e.split(` + `).map((e) => e.trim()), c$
|
|
19342
|
+
var s$37 = (e) => e.split(` + `).map((e) => e.trim()), c$25 = (e) => ({
|
|
19510
19343
|
"⌘": `Meta`,
|
|
19511
19344
|
Ctrl: `Control`,
|
|
19512
19345
|
Control: `Control`,
|
|
@@ -19523,7 +19356,7 @@ var s$37 = (e) => e.split(` + `).map((e) => e.trim()), c$26 = (e) => ({
|
|
|
19523
19356
|
ArrowLeft: `ArrowLeft`,
|
|
19524
19357
|
ArrowRight: `ArrowRight`
|
|
19525
19358
|
})[e] || e, l$21 = (e, t) => {
|
|
19526
|
-
let n = t.map(c$
|
|
19359
|
+
let n = t.map(c$25), r = {
|
|
19527
19360
|
Meta: n.includes(`Meta`),
|
|
19528
19361
|
Control: n.includes(`Control`),
|
|
19529
19362
|
Alt: n.includes(`Alt`),
|
|
@@ -19538,20 +19371,20 @@ var s$37 = (e) => e.split(` + `).map((e) => e.trim()), c$26 = (e) => ({
|
|
|
19538
19371
|
`⌥`,
|
|
19539
19372
|
`Shift`,
|
|
19540
19373
|
`Meta`
|
|
19541
|
-
].includes(c$
|
|
19374
|
+
].includes(c$25(e)));
|
|
19542
19375
|
if (!i) return !1;
|
|
19543
|
-
let a = c$
|
|
19376
|
+
let a = c$25(i);
|
|
19544
19377
|
return a.startsWith(`Arrow`) ? e.key === a : e.key.toLowerCase() === a.toLowerCase();
|
|
19545
19378
|
}, u$24 = (e) => ({
|
|
19546
19379
|
ArrowUp: `↑`,
|
|
19547
19380
|
ArrowDown: `↓`,
|
|
19548
19381
|
ArrowLeft: `←`,
|
|
19549
19382
|
ArrowRight: `→`
|
|
19550
|
-
})[e] || e, d$
|
|
19383
|
+
})[e] || e, d$19 = (e, t) => {
|
|
19551
19384
|
let n = e;
|
|
19552
19385
|
return t ? (n = n.replace(/Ctrl/g, `⌘`), n = n.replace(/Alt/g, `⌥`)) : (n = n.replace(/⌘/g, `Ctrl`), n = n.replace(/⌥/g, `Alt`)), n = n.replace(/ArrowUp/g, `↑`), n = n.replace(/ArrowDown/g, `↓`), n = n.replace(/ArrowLeft/g, `←`), n = n.replace(/ArrowRight/g, `→`), n;
|
|
19553
19386
|
}, f$17 = ({ shortcut: o, onTriggered: f, display: p = !0, disabled: m = !1, className: h, size: g = `md` }) => {
|
|
19554
|
-
let { isMac: _ } = l$22(), v = s$37(d$
|
|
19387
|
+
let { isMac: _ } = l$22(), v = s$37(d$19(o, _ ?? !1)), [y, b] = (0, import_react.useState)(/* @__PURE__ */ new Set());
|
|
19555
19388
|
if ((0, import_react.useEffect)(() => {
|
|
19556
19389
|
let e = (e) => {
|
|
19557
19390
|
let t = e.target, n = t.tagName === `INPUT` || t.tagName === `TEXTAREA` || t.isContentEditable, r = e.key, i = /* @__PURE__ */ new Set();
|
|
@@ -19573,7 +19406,7 @@ var s$37 = (e) => e.split(` + `).map((e) => e.trim()), c$26 = (e) => ({
|
|
|
19573
19406
|
m
|
|
19574
19407
|
]), !p) return null;
|
|
19575
19408
|
let x = (e) => {
|
|
19576
|
-
let t = e.toUpperCase(), n = c$
|
|
19409
|
+
let t = e.toUpperCase(), n = c$25(e);
|
|
19577
19410
|
return y.has(e) || y.has(t) || y.has(n) || e === `⌘` && y.has(`Meta`) || e === `Ctrl` && y.has(`Control`) || e === `⌥` && y.has(`Alt`) || e === `Alt` && y.has(`Alt`) || e === `←` && y.has(`ArrowLeft`) || e === `→` && y.has(`ArrowRight`) || e === `↑` && y.has(`ArrowUp`) || e === `↓` && y.has(`ArrowDown`);
|
|
19578
19411
|
};
|
|
19579
19412
|
return (0, import_jsx_runtime.jsx)(`kbd`, {
|
|
@@ -19607,7 +19440,7 @@ var a$46 = ({ children: t, className: r, identifier: i, ...a }) => (0, import_js
|
|
|
19607
19440
|
"aria-haspopup": !0,
|
|
19608
19441
|
...a,
|
|
19609
19442
|
children: t
|
|
19610
|
-
}), o$45 = ({ children: a, isHidden: o = void 0, isOverable: s = !0, isFocusable: c = !1, xAlign: l = r$80.START, yAlign: u = i$53.BELOW, identifier: d, className: f, displayArrow: p = !0, ...m }) => (0, import_jsx_runtime.jsx)(d$
|
|
19443
|
+
}), o$45 = ({ children: a, isHidden: o = void 0, isOverable: s = !0, isFocusable: c = !1, xAlign: l = r$80.START, yAlign: u = i$53.BELOW, identifier: d, className: f, displayArrow: p = !0, ...m }) => (0, import_jsx_runtime.jsx)(d$24, {
|
|
19611
19444
|
transparency: `xs`,
|
|
19612
19445
|
role: `group`,
|
|
19613
19446
|
"aria-hidden": o,
|
|
@@ -19620,7 +19453,7 @@ var a$46 = ({ children: t, className: r, identifier: i, ...a }) => (0, import_js
|
|
|
19620
19453
|
a$46.Detail = o$45;
|
|
19621
19454
|
//#endregion
|
|
19622
19455
|
//#region ../@intlayer/design-system/dist/esm/components/Popover/dynamic.mjs
|
|
19623
|
-
var c$
|
|
19456
|
+
var c$24 = (e) => (0, import_jsx_runtime.jsx)(a$46, { ...e }), l$20 = ({ xAlign: t = r$80.START, yAlign: c = i$53.BELOW, ...l }) => {
|
|
19624
19457
|
let u = (0, import_react.useRef)(null), [d, f] = (0, import_react.useState)(t), [p, m] = (0, import_react.useState)(c), [h, g] = (0, import_react.useState)(void 0);
|
|
19625
19458
|
return (0, import_react.useEffect)(() => {
|
|
19626
19459
|
let e = () => {
|
|
@@ -19660,7 +19493,7 @@ var c$25 = (e) => (0, import_jsx_runtime.jsx)(a$46, { ...e }), l$20 = ({ xAlign:
|
|
|
19660
19493
|
maxWidth: h ? `${h}px` : void 0
|
|
19661
19494
|
}
|
|
19662
19495
|
});
|
|
19663
|
-
}, u$23 = c$
|
|
19496
|
+
}, u$23 = c$24;
|
|
19664
19497
|
u$23.Detail = l$20;
|
|
19665
19498
|
//#endregion
|
|
19666
19499
|
//#region ../../node_modules/.bun/@radix-ui+react-id@1.1.1+26a211c426f3f87c/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
@@ -21451,7 +21284,7 @@ var Te$1 = {
|
|
|
21451
21284
|
var s$35 = ({ className: t, ...r }) => (0, import_jsx_runtime.jsx)(_e$1, {
|
|
21452
21285
|
className: n$91(`flex flex-col overflow-hidden rounded-md`, t),
|
|
21453
21286
|
...r
|
|
21454
|
-
}), c$
|
|
21287
|
+
}), c$23 = ({ children: e, ...t }) => (0, import_jsx_runtime.jsx)(Dialog, {
|
|
21455
21288
|
...t,
|
|
21456
21289
|
children: (0, import_jsx_runtime.jsx)(DialogContent, {
|
|
21457
21290
|
className: `overflow-hidden p-0`,
|
|
@@ -21470,7 +21303,7 @@ var s$35 = ({ className: t, ...r }) => (0, import_jsx_runtime.jsx)(_e$1, {
|
|
|
21470
21303
|
}), u$21 = ({ className: t, ...r }) => (0, import_jsx_runtime.jsx)(_e$1.List, {
|
|
21471
21304
|
className: n$91(`max-h-[300px] overflow-y-auto overflow-x-hidden`, t),
|
|
21472
21305
|
...r
|
|
21473
|
-
}), d$
|
|
21306
|
+
}), d$18 = (e) => (0, import_jsx_runtime.jsx)(_e$1.Empty, {
|
|
21474
21307
|
className: `py-6 text-center text-sm`,
|
|
21475
21308
|
...e
|
|
21476
21309
|
}), f$16 = ({ className: t, ...r }) => (0, import_jsx_runtime.jsx)(_e$1.Group, {
|
|
@@ -21487,10 +21320,10 @@ var s$35 = ({ className: t, ...r }) => (0, import_jsx_runtime.jsx)(_e$1, {
|
|
|
21487
21320
|
...r
|
|
21488
21321
|
}), g$11 = {
|
|
21489
21322
|
...s$35,
|
|
21490
|
-
Dialog: c$
|
|
21323
|
+
Dialog: c$23,
|
|
21491
21324
|
Input: l$19,
|
|
21492
21325
|
List: u$21,
|
|
21493
|
-
Empty: d$
|
|
21326
|
+
Empty: d$18,
|
|
21494
21327
|
Group: f$16,
|
|
21495
21328
|
Separator: p$18,
|
|
21496
21329
|
Item: m$16,
|
|
@@ -21540,7 +21373,7 @@ var u$20 = ({ content: u, ...d }) => {
|
|
|
21540
21373
|
return (0, import_jsx_runtime.jsx)(f$20, {
|
|
21541
21374
|
Icon: f ? CopyCheck : Copy,
|
|
21542
21375
|
onClick: _,
|
|
21543
|
-
variant: c$
|
|
21376
|
+
variant: c$31.HOVERABLE,
|
|
21544
21377
|
color: l$27.TEXT,
|
|
21545
21378
|
size: o$56.ICON_SM,
|
|
21546
21379
|
tabIndex: 0,
|
|
@@ -21710,7 +21543,7 @@ var l$18 = [{
|
|
|
21710
21543
|
var u$19 = function(e) {
|
|
21711
21544
|
return e.PRIMARY = `primary`, e.SECONDARY = `secondary`, e.DESTRUCTIVE = `destructive`, e.NEUTRAL = `neutral`, e.LIGHT = `light`, e.DARK = `dark`, e.TEXT = `text`, e;
|
|
21712
21545
|
}({});
|
|
21713
|
-
var d$
|
|
21546
|
+
var d$17 = cva(`flex w-fit cursor-pointer flex-row gap-2 rounded-full border-[1.3px] p-[1.5px]`, {
|
|
21714
21547
|
variants: {
|
|
21715
21548
|
color: {
|
|
21716
21549
|
[`${u$19.PRIMARY}`]: `border-primary text-primary`,
|
|
@@ -21756,7 +21589,7 @@ var p$17 = cva(`z-1 w-full flex-1 cursor-pointer font-medium text-sm transition-
|
|
|
21756
21589
|
return (0, import_react.useEffect)(() => {
|
|
21757
21590
|
h !== void 0 && T(h);
|
|
21758
21591
|
}, [h]), (0, import_jsx_runtime.jsx)(`div`, {
|
|
21759
|
-
className: d$
|
|
21592
|
+
className: d$17({
|
|
21760
21593
|
color: v,
|
|
21761
21594
|
disabled: C,
|
|
21762
21595
|
className: b
|
|
@@ -21817,7 +21650,7 @@ var m$14 = ({ value: m = ``, onCancel: h, onSave: g, onClick: _, children: v, is
|
|
|
21817
21650
|
v,
|
|
21818
21651
|
(0, import_jsx_runtime.jsx)(f$20, {
|
|
21819
21652
|
label: `Save`,
|
|
21820
|
-
variant: c$
|
|
21653
|
+
variant: c$31.HOVERABLE,
|
|
21821
21654
|
size: o$56.ICON_SM,
|
|
21822
21655
|
color: l$27.TEXT,
|
|
21823
21656
|
Icon: Check,
|
|
@@ -21832,7 +21665,7 @@ var m$14 = ({ value: m = ``, onCancel: h, onSave: g, onClick: _, children: v, is
|
|
|
21832
21665
|
(0, import_jsx_runtime.jsx)(f$20, {
|
|
21833
21666
|
label: `Cancel`,
|
|
21834
21667
|
color: l$27.TEXT,
|
|
21835
|
-
variant: c$
|
|
21668
|
+
variant: c$31.HOVERABLE,
|
|
21836
21669
|
className: `!text-current`,
|
|
21837
21670
|
size: o$56.ICON_SM,
|
|
21838
21671
|
Icon: X$3,
|
|
@@ -21853,7 +21686,7 @@ var m$14 = ({ value: m = ``, onCancel: h, onSave: g, onClick: _, children: v, is
|
|
|
21853
21686
|
label: `Edit`,
|
|
21854
21687
|
Icon: Pencil,
|
|
21855
21688
|
color: l$27.TEXT,
|
|
21856
|
-
variant: c$
|
|
21689
|
+
variant: c$31.HOVERABLE,
|
|
21857
21690
|
size: o$56.ICON_SM,
|
|
21858
21691
|
className: `!text-current invisible group-hover/editable-field:visible`,
|
|
21859
21692
|
disabled: y,
|
|
@@ -24169,7 +24002,7 @@ var r$73 = (0, import_react.createContext)(null), i$45 = ({ children: e, manager
|
|
|
24169
24002
|
};
|
|
24170
24003
|
//#endregion
|
|
24171
24004
|
//#region ../@intlayer/editor/dist/esm/compareUrls.mjs
|
|
24172
|
-
var e$
|
|
24005
|
+
var e$23 = (e, t) => {
|
|
24173
24006
|
try {
|
|
24174
24007
|
let n = new URL(e), r = new URL(t);
|
|
24175
24008
|
if (n.protocol !== r.protocol || n.hostname !== r.hostname || n.port !== r.port) return !1;
|
|
@@ -24184,12 +24017,12 @@ var e$22 = (e, t) => {
|
|
|
24184
24017
|
};
|
|
24185
24018
|
//#endregion
|
|
24186
24019
|
//#region ../@intlayer/editor/dist/esm/messageKey.mjs
|
|
24187
|
-
var e$
|
|
24020
|
+
var e$22 = function(e) {
|
|
24188
24021
|
return e.INTLAYER_CLIENT_READY = `INTLAYER_CLIENT_READY`, e.INTLAYER_ARE_YOU_THERE = `INTLAYER_ARE_YOU_THERE`, e.INTLAYER_EDITOR_ACTIVATE = `INTLAYER_EDITOR_ACTIVATE`, e.INTLAYER_EDITOR_ENABLED = `INTLAYER_EDITOR_ENABLED`, e.INTLAYER_CONFIGURATION = `INTLAYER_CONFIGURATION`, e.INTLAYER_CURRENT_LOCALE = `INTLAYER_CURRENT_LOCALE`, e.INTLAYER_URL_CHANGE = `INTLAYER_URL_CHANGE`, e.INTLAYER_LOCALE_DICTIONARIES_CHANGED = `INTLAYER_LOCALE_DICTIONARIES_CHANGED`, e.INTLAYER_DISTANT_DICTIONARIES_CHANGED = `INTLAYER_DISTANT_DICTIONARIES_CHANGED`, e.INTLAYER_HOVERED_CONTENT_CHANGED = `INTLAYER_HOVERED_CONTENT_CHANGED`, e.INTLAYER_FOCUSED_CONTENT_CHANGED = `INTLAYER_FOCUSED_CONTENT_CHANGED`, e.INTLAYER_EDITED_CONTENT_CHANGED = `INTLAYER_EDITED_CONTENT_CHANGED`, e.INTLAYER_IFRAME_CLICKED = `INTLAYER_IFRAME_CLICKED`, e;
|
|
24189
24022
|
}({});
|
|
24190
24023
|
//#endregion
|
|
24191
24024
|
//#region ../@intlayer/editor/dist/esm/mergeIframeClick.mjs
|
|
24192
|
-
var e$
|
|
24025
|
+
var e$21 = (e) => {
|
|
24193
24026
|
let t = new MouseEvent(`mousedown`, {
|
|
24194
24027
|
bubbles: !0,
|
|
24195
24028
|
cancelable: !0,
|
|
@@ -24203,14 +24036,14 @@ var e$20 = (e) => {
|
|
|
24203
24036
|
};
|
|
24204
24037
|
//#endregion
|
|
24205
24038
|
//#region ../@intlayer/editor/dist/esm/core/globalManager.mjs
|
|
24206
|
-
var e$
|
|
24039
|
+
var e$20 = `__intlayer_editor_manager__`, t$70 = `__intlayer_editor_manager_events__`, n$70 = () => {
|
|
24207
24040
|
if (typeof window > `u`) return new EventTarget();
|
|
24208
24041
|
let e = window;
|
|
24209
24042
|
return e[t$70] || (e[t$70] = new EventTarget()), e[t$70];
|
|
24210
|
-
}, r$71 = () => typeof window > `u` ? null : window[e$
|
|
24043
|
+
}, r$71 = () => typeof window > `u` ? null : window[e$20] ?? null, i$43 = (t) => {
|
|
24211
24044
|
if (typeof window < `u`) {
|
|
24212
24045
|
let n = window;
|
|
24213
|
-
n[e$
|
|
24046
|
+
n[e$20] = t;
|
|
24214
24047
|
}
|
|
24215
24048
|
n$70().dispatchEvent(new CustomEvent(`change`, { detail: t }));
|
|
24216
24049
|
}, a$37 = (e) => {
|
|
@@ -24223,7 +24056,7 @@ var e$19 = `__intlayer_editor_manager__`, t$70 = `__intlayer_editor_manager_even
|
|
|
24223
24056
|
};
|
|
24224
24057
|
//#endregion
|
|
24225
24058
|
//#region ../@intlayer/editor/dist/esm/decorate-BWURH4oJ.mjs
|
|
24226
|
-
function e$
|
|
24059
|
+
function e$19(e, t, n, r) {
|
|
24227
24060
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
24228
24061
|
if (typeof Reflect == `object` && typeof Reflect.decorate == `function`) a = Reflect.decorate(e, t, n, r);
|
|
24229
24062
|
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
@@ -24236,7 +24069,7 @@ function e$18(e, t, n, r) {
|
|
|
24236
24069
|
* Copyright 2019 Google LLC
|
|
24237
24070
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
24238
24071
|
*/
|
|
24239
|
-
var t$69 = globalThis, e$
|
|
24072
|
+
var t$69 = globalThis, e$18 = t$69.ShadowRoot && (void 0 === t$69.ShadyCSS || t$69.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$31 = Symbol(), o$39 = /* @__PURE__ */ new WeakMap();
|
|
24240
24073
|
var n$69 = class {
|
|
24241
24074
|
constructor(t, e, o) {
|
|
24242
24075
|
if (this._$cssResult$ = !0, o !== s$31) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -24245,7 +24078,7 @@ var n$69 = class {
|
|
|
24245
24078
|
get styleSheet() {
|
|
24246
24079
|
let t = this.o;
|
|
24247
24080
|
const s = this.t;
|
|
24248
|
-
if (e$
|
|
24081
|
+
if (e$18 && void 0 === t) {
|
|
24249
24082
|
const e = void 0 !== s && 1 === s.length;
|
|
24250
24083
|
e && (t = o$39.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$39.set(s, t));
|
|
24251
24084
|
}
|
|
@@ -24262,12 +24095,12 @@ var r$70 = (t) => new n$69("string" == typeof t ? t : t + "", void 0, s$31), i$4
|
|
|
24262
24095
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
24263
24096
|
})(s) + t[o + 1], t[0]), t, s$31);
|
|
24264
24097
|
}, S$7 = (s, o) => {
|
|
24265
|
-
if (e$
|
|
24098
|
+
if (e$18) s.adoptedStyleSheets = o.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
|
24266
24099
|
else for (const e of o) {
|
|
24267
24100
|
const o = document.createElement("style"), n = t$69.litNonce;
|
|
24268
24101
|
void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
|
|
24269
24102
|
}
|
|
24270
|
-
}, c$
|
|
24103
|
+
}, c$19 = e$18 ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((t) => {
|
|
24271
24104
|
let e = "";
|
|
24272
24105
|
for (const s of t.cssRules) e += s.cssText;
|
|
24273
24106
|
return r$70(e);
|
|
@@ -24278,7 +24111,7 @@ var r$70 = (t) => new n$69("string" == typeof t ? t : t + "", void 0, s$31), i$4
|
|
|
24278
24111
|
* @license
|
|
24279
24112
|
* Copyright 2017 Google LLC
|
|
24280
24113
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
24281
|
-
*/ var { is: i$41, defineProperty: e$
|
|
24114
|
+
*/ var { is: i$41, defineProperty: e$17, getOwnPropertyDescriptor: h$9, getOwnPropertyNames: r$69, getOwnPropertySymbols: o$38, getPrototypeOf: n$68 } = Object, a$36 = globalThis, c$18 = a$36.trustedTypes, l$17 = c$18 ? c$18.emptyScript : "", p$15 = a$36.reactiveElementPolyfillSupport, d$16 = (t, s) => t, u$18 = {
|
|
24282
24115
|
toAttribute(t, s) {
|
|
24283
24116
|
switch (s) {
|
|
24284
24117
|
case Boolean:
|
|
@@ -24326,7 +24159,7 @@ var y$12 = class extends HTMLElement {
|
|
|
24326
24159
|
static createProperty(t, s = b$8) {
|
|
24327
24160
|
if (s.state && (s.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = !0), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
24328
24161
|
const i = Symbol(), h = this.getPropertyDescriptor(t, i, s);
|
|
24329
|
-
void 0 !== h && e$
|
|
24162
|
+
void 0 !== h && e$17(this.prototype, t, h);
|
|
24330
24163
|
}
|
|
24331
24164
|
}
|
|
24332
24165
|
static getPropertyDescriptor(t, s, i) {
|
|
@@ -24352,13 +24185,13 @@ var y$12 = class extends HTMLElement {
|
|
|
24352
24185
|
return this.elementProperties.get(t) ?? b$8;
|
|
24353
24186
|
}
|
|
24354
24187
|
static _$Ei() {
|
|
24355
|
-
if (this.hasOwnProperty(d$
|
|
24188
|
+
if (this.hasOwnProperty(d$16("elementProperties"))) return;
|
|
24356
24189
|
const t = n$68(this);
|
|
24357
24190
|
t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
24358
24191
|
}
|
|
24359
24192
|
static finalize() {
|
|
24360
|
-
if (this.hasOwnProperty(d$
|
|
24361
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$
|
|
24193
|
+
if (this.hasOwnProperty(d$16("finalized"))) return;
|
|
24194
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$16("properties"))) {
|
|
24362
24195
|
const t = this.properties, s = [...r$69(t), ...o$38(t)];
|
|
24363
24196
|
for (const i of s) this.createProperty(i, t[i]);
|
|
24364
24197
|
}
|
|
@@ -24378,8 +24211,8 @@ var y$12 = class extends HTMLElement {
|
|
|
24378
24211
|
const i = [];
|
|
24379
24212
|
if (Array.isArray(s)) {
|
|
24380
24213
|
const e = new Set(s.flat(Infinity).reverse());
|
|
24381
|
-
for (const s of e) i.unshift(c$
|
|
24382
|
-
} else void 0 !== s && i.push(c$
|
|
24214
|
+
for (const s of e) i.unshift(c$19(s));
|
|
24215
|
+
} else void 0 !== s && i.push(c$19(s));
|
|
24383
24216
|
return i;
|
|
24384
24217
|
}
|
|
24385
24218
|
static _$Eu(t, s) {
|
|
@@ -24501,7 +24334,7 @@ var y$12 = class extends HTMLElement {
|
|
|
24501
24334
|
updated(t) {}
|
|
24502
24335
|
firstUpdated(t) {}
|
|
24503
24336
|
};
|
|
24504
|
-
y$12.elementStyles = [], y$12.shadowRootOptions = { mode: "open" }, y$12[d$
|
|
24337
|
+
y$12.elementStyles = [], y$12.shadowRootOptions = { mode: "open" }, y$12[d$16("elementProperties")] = /* @__PURE__ */ new Map(), y$12[d$16("finalized")] = /* @__PURE__ */ new Map(), p$15?.({ ReactiveElement: y$12 }), (a$36.reactiveElementVersions ??= []).push("2.1.2");
|
|
24505
24338
|
//#endregion
|
|
24506
24339
|
//#region ../../node_modules/.bun/lit-html@3.3.2/node_modules/lit-html/lit-html.js
|
|
24507
24340
|
/**
|
|
@@ -24509,7 +24342,7 @@ y$12.elementStyles = [], y$12.shadowRootOptions = { mode: "open" }, y$12[d$15("e
|
|
|
24509
24342
|
* Copyright 2017 Google LLC
|
|
24510
24343
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
24511
24344
|
*/
|
|
24512
|
-
var t$68 = globalThis, i$40 = (t) => t, s$30 = t$68.trustedTypes, e$
|
|
24345
|
+
var t$68 = globalThis, i$40 = (t) => t, s$30 = t$68.trustedTypes, e$16 = s$30 ? s$30.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, h$8 = "$lit$", o$37 = `lit$${Math.random().toFixed(9).slice(2)}$`, n$67 = "?" + o$37, r$68 = `<${n$67}>`, l$16 = document, c$17 = () => l$16.createComment(""), a$35 = (t) => null === t || "object" != typeof t && "function" != typeof t, u$17 = Array.isArray, d$15 = (t) => u$17(t) || "function" == typeof t?.[Symbol.iterator], f$12 = "[ \n\f\r]", v$11 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _$11 = /-->/g, m$13 = />/g, p$14 = RegExp(`>|${f$12}(?:([^\\s"'>=/]+)(${f$12}*=${f$12}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), g$10 = /'/g, $$2 = /"/g, y$11 = /^(?:script|style|textarea|title)$/i, x$8 = (t) => (i, ...s) => ({
|
|
24513
24346
|
_$litType$: t,
|
|
24514
24347
|
strings: i,
|
|
24515
24348
|
values: s
|
|
@@ -24519,7 +24352,7 @@ x$8(3);
|
|
|
24519
24352
|
var E$3 = Symbol.for("lit-noChange"), A$2 = Symbol.for("lit-nothing"), C$7 = /* @__PURE__ */ new WeakMap(), P$2 = l$16.createTreeWalker(l$16, 129);
|
|
24520
24353
|
function V$2(t, i) {
|
|
24521
24354
|
if (!u$17(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
24522
|
-
return void 0 !== e$
|
|
24355
|
+
return void 0 !== e$16 ? e$16.createHTML(i) : i;
|
|
24523
24356
|
}
|
|
24524
24357
|
var N$2 = (t, i) => {
|
|
24525
24358
|
const s = t.length - 1, e = [];
|
|
@@ -24562,11 +24395,11 @@ var S$6 = class S$6 {
|
|
|
24562
24395
|
const t = r.textContent.split(o$37), i = t.length - 1;
|
|
24563
24396
|
if (i > 0) {
|
|
24564
24397
|
r.textContent = s$30 ? s$30.emptyScript : "";
|
|
24565
|
-
for (let s = 0; s < i; s++) r.append(t[s], c$
|
|
24398
|
+
for (let s = 0; s < i; s++) r.append(t[s], c$17()), P$2.nextNode(), d.push({
|
|
24566
24399
|
type: 2,
|
|
24567
24400
|
index: ++l
|
|
24568
24401
|
});
|
|
24569
|
-
r.append(t[i], c$
|
|
24402
|
+
r.append(t[i], c$17());
|
|
24570
24403
|
}
|
|
24571
24404
|
}
|
|
24572
24405
|
} else if (8 === r.nodeType) if (r.data === n$67) d.push({
|
|
@@ -24641,7 +24474,7 @@ var k$3 = class k$3 {
|
|
|
24641
24474
|
return this._$AB;
|
|
24642
24475
|
}
|
|
24643
24476
|
_$AI(t, i = this) {
|
|
24644
|
-
t = M$2(this, t, i), a$35(t) ? t === A$2 || null == t || "" === t ? (this._$AH !== A$2 && this._$AR(), this._$AH = A$2) : t !== this._$AH && t !== E$3 && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : d$
|
|
24477
|
+
t = M$2(this, t, i), a$35(t) ? t === A$2 || null == t || "" === t ? (this._$AH !== A$2 && this._$AR(), this._$AH = A$2) : t !== this._$AH && t !== E$3 && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : d$15(t) ? this.k(t) : this._(t);
|
|
24645
24478
|
}
|
|
24646
24479
|
O(t) {
|
|
24647
24480
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -24668,7 +24501,7 @@ var k$3 = class k$3 {
|
|
|
24668
24501
|
u$17(this._$AH) || (this._$AH = [], this._$AR());
|
|
24669
24502
|
const i = this._$AH;
|
|
24670
24503
|
let s, e = 0;
|
|
24671
|
-
for (const h of t) e === i.length ? i.push(s = new k$3(this.O(c$
|
|
24504
|
+
for (const h of t) e === i.length ? i.push(s = new k$3(this.O(c$17()), this.O(c$17()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
|
24672
24505
|
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
24673
24506
|
}
|
|
24674
24507
|
_$AR(t = this._$AA.nextSibling, s) {
|
|
@@ -24752,7 +24585,7 @@ var D$2 = (t, i, s) => {
|
|
|
24752
24585
|
let h = e._$litPart$;
|
|
24753
24586
|
if (void 0 === h) {
|
|
24754
24587
|
const t = s?.renderBefore ?? null;
|
|
24755
|
-
e._$litPart$ = h = new k$3(i.insertBefore(c$
|
|
24588
|
+
e._$litPart$ = h = new k$3(i.insertBefore(c$17(), t), t, void 0, s ?? {});
|
|
24756
24589
|
}
|
|
24757
24590
|
return h._$AI(t), h;
|
|
24758
24591
|
};
|
|
@@ -24851,14 +24684,14 @@ function n$66(t) {
|
|
|
24851
24684
|
* Copyright 2017 Google LLC
|
|
24852
24685
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
24853
24686
|
*/
|
|
24854
|
-
var e$
|
|
24687
|
+
var e$15 = (e, t, c) => (c.configurable = !0, c.enumerable = !0, Reflect.decorate && "object" != typeof t && Object.defineProperty(e, t, c), c);
|
|
24855
24688
|
//#endregion
|
|
24856
24689
|
//#region ../../node_modules/.bun/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/query.js
|
|
24857
24690
|
/**
|
|
24858
24691
|
* @license
|
|
24859
24692
|
* Copyright 2017 Google LLC
|
|
24860
24693
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
24861
|
-
*/ function e$
|
|
24694
|
+
*/ function e$14(e, r) {
|
|
24862
24695
|
return (n, s, i) => {
|
|
24863
24696
|
const o = (t) => t.renderRoot?.querySelector(e) ?? null;
|
|
24864
24697
|
if (r) {
|
|
@@ -24873,19 +24706,19 @@ var e$14 = (e, t, c) => (c.configurable = !0, c.enumerable = !0, Reflect.decorat
|
|
|
24873
24706
|
}
|
|
24874
24707
|
};
|
|
24875
24708
|
})();
|
|
24876
|
-
return e$
|
|
24709
|
+
return e$15(n, s, { get() {
|
|
24877
24710
|
let t = e.call(this);
|
|
24878
24711
|
return void 0 === t && (t = o(this), (null !== t || this.hasUpdated) && r.call(this, t)), t;
|
|
24879
24712
|
} });
|
|
24880
24713
|
}
|
|
24881
|
-
return e$
|
|
24714
|
+
return e$15(n, s, { get() {
|
|
24882
24715
|
return o(this);
|
|
24883
24716
|
} });
|
|
24884
24717
|
};
|
|
24885
24718
|
}
|
|
24886
24719
|
//#endregion
|
|
24887
24720
|
//#region ../@intlayer/editor/dist/esm/components/ContentSelectorWrapper.mjs
|
|
24888
|
-
var d$
|
|
24721
|
+
var d$14 = class extends i$39 {
|
|
24889
24722
|
constructor(...e) {
|
|
24890
24723
|
super(...e), this.keyPathJson = `[]`, this.dictionaryKey = ``, this._editorEnabled = !1, this._isInIframe = !1, this._isSelected = !1, this._editedValue = void 0, this._unsubManager = null, this._unsubEnabled = null, this._unsubFocused = null, this._unsubEditedContent = null;
|
|
24891
24724
|
}
|
|
@@ -24936,7 +24769,7 @@ var d$13 = class extends i$39 {
|
|
|
24936
24769
|
}
|
|
24937
24770
|
}
|
|
24938
24771
|
_getFilteredKeyPath() {
|
|
24939
|
-
return this._getRawKeyPath().filter((e) => e.type !== e$
|
|
24772
|
+
return this._getRawKeyPath().filter((e) => e.type !== e$51.Translation);
|
|
24940
24773
|
}
|
|
24941
24774
|
_updateEditedValue(e) {
|
|
24942
24775
|
let t = this._getFilteredKeyPath();
|
|
@@ -24945,14 +24778,14 @@ var d$13 = class extends i$39 {
|
|
|
24945
24778
|
return;
|
|
24946
24779
|
}
|
|
24947
24780
|
let n = this._getRawKeyPath(), r = n[n.length - 1]?.type;
|
|
24948
|
-
if (r === e$
|
|
24781
|
+
if (r === e$51.Markdown || r === e$51.HTML || r === e$51.Insertion || r === e$51.File) {
|
|
24949
24782
|
this._editedValue = void 0;
|
|
24950
24783
|
return;
|
|
24951
24784
|
}
|
|
24952
24785
|
let i = e.getContentValue(this.dictionaryKey, t);
|
|
24953
|
-
if (typeof i == `object` && i && i.nodeType === e$
|
|
24786
|
+
if (typeof i == `object` && i && i.nodeType === e$51.Translation) {
|
|
24954
24787
|
let t = e.currentLocale.value;
|
|
24955
|
-
i = t ? i[e$
|
|
24788
|
+
i = t ? i[e$51.Translation][t] : void 0;
|
|
24956
24789
|
}
|
|
24957
24790
|
this._editedValue = i;
|
|
24958
24791
|
}
|
|
@@ -24962,7 +24795,7 @@ var d$13 = class extends i$39 {
|
|
|
24962
24795
|
return;
|
|
24963
24796
|
}
|
|
24964
24797
|
let t = this._getFilteredKeyPath();
|
|
24965
|
-
this._isSelected = e.dictionaryKey === this.dictionaryKey && (e.keyPath?.length ?? 0) > 0 && e$
|
|
24798
|
+
this._isSelected = e.dictionaryKey === this.dictionaryKey && (e.keyPath?.length ?? 0) > 0 && e$29(e.keyPath ?? [], t);
|
|
24966
24799
|
}
|
|
24967
24800
|
_handlePress(e) {
|
|
24968
24801
|
e.stopPropagation();
|
|
@@ -24973,13 +24806,13 @@ var d$13 = class extends i$39 {
|
|
|
24973
24806
|
});
|
|
24974
24807
|
}
|
|
24975
24808
|
_handleHover(n) {
|
|
24976
|
-
n.stopPropagation(), r$71()?.messenger.send(`${e$
|
|
24809
|
+
n.stopPropagation(), r$71()?.messenger.send(`${e$22.INTLAYER_HOVERED_CONTENT_CHANGED}/post`, {
|
|
24977
24810
|
dictionaryKey: this.dictionaryKey,
|
|
24978
24811
|
keyPath: this._getFilteredKeyPath()
|
|
24979
24812
|
});
|
|
24980
24813
|
}
|
|
24981
24814
|
_handleUnhover(n) {
|
|
24982
|
-
n.stopPropagation(), r$71()?.messenger.send(`${e$
|
|
24815
|
+
n.stopPropagation(), r$71()?.messenger.send(`${e$22.INTLAYER_HOVERED_CONTENT_CHANGED}/post`, null);
|
|
24983
24816
|
}
|
|
24984
24817
|
render() {
|
|
24985
24818
|
if (!this._isInIframe || !this._editorEnabled) return b$7`<slot></slot>`;
|
|
@@ -24996,15 +24829,15 @@ var d$13 = class extends i$39 {
|
|
|
24996
24829
|
`;
|
|
24997
24830
|
}
|
|
24998
24831
|
};
|
|
24999
|
-
e$
|
|
24832
|
+
e$19([n$66({
|
|
25000
24833
|
type: String,
|
|
25001
24834
|
attribute: `key-path`
|
|
25002
|
-
})], d$
|
|
24835
|
+
})], d$14.prototype, `keyPathJson`, void 0), e$19([n$66({
|
|
25003
24836
|
type: String,
|
|
25004
24837
|
attribute: `dictionary-key`
|
|
25005
|
-
})], d$
|
|
24838
|
+
})], d$14.prototype, `dictionaryKey`, void 0), e$19([r$66()], d$14.prototype, `_editorEnabled`, void 0), e$19([r$66()], d$14.prototype, `_isInIframe`, void 0), e$19([r$66()], d$14.prototype, `_isSelected`, void 0), e$19([r$66()], d$14.prototype, `_editedValue`, void 0);
|
|
25006
24839
|
var f$11 = () => {
|
|
25007
|
-
typeof customElements > `u` || customElements.get(`intlayer-content-selector-wrapper`) || customElements.define(`intlayer-content-selector-wrapper`, d$
|
|
24840
|
+
typeof customElements > `u` || customElements.get(`intlayer-content-selector-wrapper`) || customElements.define(`intlayer-content-selector-wrapper`, d$14);
|
|
25008
24841
|
};
|
|
25009
24842
|
//#endregion
|
|
25010
24843
|
//#region ../@intlayer/editor/dist/esm/components/EditedContent.mjs
|
|
@@ -25078,17 +24911,17 @@ var u$16 = class extends i$39 {
|
|
|
25078
24911
|
`;
|
|
25079
24912
|
}
|
|
25080
24913
|
};
|
|
25081
|
-
e$
|
|
24914
|
+
e$19([n$66({
|
|
25082
24915
|
type: String,
|
|
25083
24916
|
attribute: `dictionary-key`
|
|
25084
|
-
})], u$16.prototype, `dictionaryKey`, void 0), e$
|
|
24917
|
+
})], u$16.prototype, `dictionaryKey`, void 0), e$19([n$66({
|
|
25085
24918
|
type: String,
|
|
25086
24919
|
attribute: `key-path`
|
|
25087
|
-
})], u$16.prototype, `keyPathJson`, void 0), e$
|
|
24920
|
+
})], u$16.prototype, `keyPathJson`, void 0), e$19([n$66({
|
|
25088
24921
|
type: String,
|
|
25089
24922
|
attribute: `locale`
|
|
25090
|
-
})], u$16.prototype, `locale`, void 0), e$
|
|
25091
|
-
var d$
|
|
24923
|
+
})], u$16.prototype, `locale`, void 0), e$19([r$66()], u$16.prototype, `_editedText`, void 0);
|
|
24924
|
+
var d$13 = () => {
|
|
25092
24925
|
typeof customElements > `u` || customElements.get(`intlayer-edited-content`) || customElements.define(`intlayer-edited-content`, u$16);
|
|
25093
24926
|
};
|
|
25094
24927
|
//#endregion
|
|
@@ -25130,14 +24963,14 @@ var n$65 = class {
|
|
|
25130
24963
|
this._seenMessageIds.add(o), this._seenMessageIds.size > 200 && this._seenMessageIds.clear();
|
|
25131
24964
|
}
|
|
25132
24965
|
let { allowedOrigins: s } = this._config;
|
|
25133
|
-
if (!(!s || s.length === 0 || s.includes(`*`) || s.filter((e) => !!e && e !== ``).some((n) => e$
|
|
24966
|
+
if (!(!s || s.length === 0 || s.includes(`*`) || s.filter((e) => !!e && e !== ``).some((n) => e$23(n, t.origin)))) return;
|
|
25134
24967
|
let c = this._subscribers.get(r);
|
|
25135
24968
|
if (c) for (let e of c) e(i, a);
|
|
25136
24969
|
}
|
|
25137
24970
|
};
|
|
25138
24971
|
//#endregion
|
|
25139
24972
|
//#region ../@intlayer/editor/dist/esm/core/CrossFrameStateManager.mjs
|
|
25140
|
-
var e$
|
|
24973
|
+
var e$13 = class extends EventTarget {
|
|
25141
24974
|
constructor(e, t, n = {}) {
|
|
25142
24975
|
super(), this._unsubscribers = [], this._key = e, this._messenger = t, this._options = {
|
|
25143
24976
|
emit: n.emit ?? !0,
|
|
@@ -25181,11 +25014,11 @@ var n$64 = class {
|
|
|
25181
25014
|
}
|
|
25182
25015
|
startInterceptor() {
|
|
25183
25016
|
typeof window > `u` || (this._mousedownHandler = () => {
|
|
25184
|
-
this._messenger.send(e$
|
|
25017
|
+
this._messenger.send(e$22.INTLAYER_IFRAME_CLICKED);
|
|
25185
25018
|
}, window.addEventListener(`mousedown`, this._mousedownHandler));
|
|
25186
25019
|
}
|
|
25187
25020
|
startMerger() {
|
|
25188
|
-
this._unsubscribeMerge = this._messenger.subscribe(e$
|
|
25021
|
+
this._unsubscribeMerge = this._messenger.subscribe(e$22.INTLAYER_IFRAME_CLICKED, e$21);
|
|
25189
25022
|
}
|
|
25190
25023
|
stopInterceptor() {
|
|
25191
25024
|
this._mousedownHandler &&= (window.removeEventListener(`mousedown`, this._mousedownHandler), null);
|
|
@@ -25203,7 +25036,7 @@ var t$66 = class {
|
|
|
25203
25036
|
start() {
|
|
25204
25037
|
if (typeof window > `u`) return;
|
|
25205
25038
|
let t = () => {
|
|
25206
|
-
this._messenger.send(`${e$
|
|
25039
|
+
this._messenger.send(`${e$22.INTLAYER_URL_CHANGE}/post`, window.location.pathname);
|
|
25207
25040
|
};
|
|
25208
25041
|
this._originalPushState = history.pushState, this._originalReplaceState = history.replaceState;
|
|
25209
25042
|
let n = (e) => function(...t) {
|
|
@@ -25236,7 +25069,7 @@ var t$65 = (t, n, r) => {
|
|
|
25236
25069
|
try {
|
|
25237
25070
|
for (let t = 0; t < n.length; t++) {
|
|
25238
25071
|
let s = n[t];
|
|
25239
|
-
if (a = i, (s.type === e$
|
|
25072
|
+
if (a = i, (s.type === e$51.Object || s.type === e$51.Array) && (o = [s.key], (!i[s.key] || typeof i[s.key] != `object`) && (i[s.key] = {}), i = i[s.key]), (s.type === e$51.Translation || s.type === e$51.Enumeration) && (o = [s.type, s.key], (!i[s.type] || typeof i[s.type] != `object`) && (i[s.type] = {}), (!i[s.type][s.key] || typeof i[s.type][s.key] != `object`) && (i[s.type][s.key] = {}), i = i[s.type][s.key]), (s.type === e$51.Enumeration || s.type === e$51.Condition) && s.type !== e$51.Enumeration && (o = [s.type, s.key], i = i[s.type][s.key]), (s.type === e$51.Markdown || s.type === e$51.HTML || s.type === e$51.Insertion) && (o = [s.type], (!i[s.type] || typeof i[s.type] != `object`) && (i[s.type] = ``), i = i[s.type]), s.type === e$51.File && (o = [`content`], i = i.content), t === n.length - 1 && a && o.length > 0) {
|
|
25240
25073
|
let e = a;
|
|
25241
25074
|
for (let t of o.slice(0, -1)) e = e[t];
|
|
25242
25075
|
let t = o[o.length - 1];
|
|
@@ -25260,7 +25093,7 @@ var t$65 = (t, n, r) => {
|
|
|
25260
25093
|
//#region ../@intlayer/core/dist/esm/dictionaryManipulator/getContentNodeByKeyPath.mjs
|
|
25261
25094
|
var t$64 = (t, n, r) => {
|
|
25262
25095
|
let i = structuredClone(t);
|
|
25263
|
-
for (let t of n) r && i?.nodeType === e$
|
|
25096
|
+
for (let t of n) r && i?.nodeType === e$51.Translation && (i = i?.[e$51.Translation]?.[r]), (t.type === e$51.Object || t.type === e$51.Array) && (i = i?.[t.key]), (t.type === e$51.Translation || t.type === e$51.Condition || t.type === e$51.Enumeration) && (i = i?.[t.type]?.[t.key]), (t.type === e$51.Markdown || t.type === e$51.HTML || t.type === e$51.Insertion || t.type === e$51.File) && (i = i?.[t.type]);
|
|
25264
25097
|
return i;
|
|
25265
25098
|
};
|
|
25266
25099
|
//#endregion
|
|
@@ -25268,47 +25101,47 @@ var t$64 = (t, n, r) => {
|
|
|
25268
25101
|
var t$63 = (t, n, r) => {
|
|
25269
25102
|
let i = structuredClone(r);
|
|
25270
25103
|
switch (t) {
|
|
25271
|
-
case e$
|
|
25272
|
-
nodeType: e$
|
|
25273
|
-
[e$
|
|
25104
|
+
case e$51.Translation: return {
|
|
25105
|
+
nodeType: e$51.Translation,
|
|
25106
|
+
[e$51.Translation]: Object.assign({}, ...n.map((e) => ({ [e]: structuredClone(i) ?? `` })))
|
|
25274
25107
|
};
|
|
25275
|
-
case e$
|
|
25276
|
-
nodeType: e$
|
|
25277
|
-
[e$
|
|
25108
|
+
case e$51.Enumeration: return {
|
|
25109
|
+
nodeType: e$51.Enumeration,
|
|
25110
|
+
[e$51.Enumeration]: { 1: i ?? `` }
|
|
25278
25111
|
};
|
|
25279
|
-
case e$
|
|
25280
|
-
nodeType: e$
|
|
25281
|
-
[e$
|
|
25112
|
+
case e$51.Condition: return {
|
|
25113
|
+
nodeType: e$51.Condition,
|
|
25114
|
+
[e$51.Condition]: {
|
|
25282
25115
|
true: i ?? ``,
|
|
25283
25116
|
false: i ?? ``
|
|
25284
25117
|
}
|
|
25285
25118
|
};
|
|
25286
|
-
case e$
|
|
25287
|
-
nodeType: e$
|
|
25288
|
-
[e$
|
|
25119
|
+
case e$51.Insertion: return {
|
|
25120
|
+
nodeType: e$51.Insertion,
|
|
25121
|
+
[e$51.Insertion]: { insertion: i ?? `` }
|
|
25289
25122
|
};
|
|
25290
|
-
case e$
|
|
25291
|
-
nodeType: e$
|
|
25292
|
-
[e$
|
|
25123
|
+
case e$51.Nested: return {
|
|
25124
|
+
nodeType: e$51.Nested,
|
|
25125
|
+
[e$51.Nested]: { dictionaryKey: `` }
|
|
25293
25126
|
};
|
|
25294
|
-
case e$
|
|
25295
|
-
nodeType: e$
|
|
25296
|
-
[e$
|
|
25127
|
+
case e$51.Markdown: return {
|
|
25128
|
+
nodeType: e$51.Markdown,
|
|
25129
|
+
[e$51.Markdown]: i ?? ``
|
|
25297
25130
|
};
|
|
25298
|
-
case e$
|
|
25299
|
-
nodeType: e$
|
|
25300
|
-
[e$
|
|
25131
|
+
case e$51.HTML: return {
|
|
25132
|
+
nodeType: e$51.HTML,
|
|
25133
|
+
[e$51.HTML]: i ?? ``,
|
|
25301
25134
|
customComponents: []
|
|
25302
25135
|
};
|
|
25303
|
-
case e$
|
|
25304
|
-
nodeType: e$
|
|
25305
|
-
[e$
|
|
25136
|
+
case e$51.File: return {
|
|
25137
|
+
nodeType: e$51.File,
|
|
25138
|
+
[e$51.File]: i ?? ``
|
|
25306
25139
|
};
|
|
25307
|
-
case e$
|
|
25308
|
-
case e$
|
|
25309
|
-
case e$
|
|
25310
|
-
case e$
|
|
25311
|
-
case e$
|
|
25140
|
+
case e$51.Object: return { newKey: i ?? `` };
|
|
25141
|
+
case e$51.Array: return [i ?? ``];
|
|
25142
|
+
case e$51.Text: return i ?? ``;
|
|
25143
|
+
case e$51.Number: return i ?? 0;
|
|
25144
|
+
case e$51.Boolean: return i ?? !0;
|
|
25312
25145
|
default: return i ?? ``;
|
|
25313
25146
|
}
|
|
25314
25147
|
};
|
|
@@ -25320,7 +25153,7 @@ var t$62 = (n) => {
|
|
|
25320
25153
|
if (typeof n == `boolean`) return !0;
|
|
25321
25154
|
if (typeof n?.nodeType == `string`) {
|
|
25322
25155
|
let r = n, i = r[r.nodeType];
|
|
25323
|
-
return r.nodeType === e$
|
|
25156
|
+
return r.nodeType === e$51.Translation || r.nodeType === e$51.Enumeration || r.nodeType === e$51.Condition || r.nodeType === e$51.Insertion || r.nodeType === e$51.HTML ? t$62(i) : r.nodeType === e$51.Nested ? `dictionary-key` : r.nodeType === e$51.File ? `file/path` : r.nodeType === e$51.Markdown ? t$62(r) : i;
|
|
25324
25157
|
}
|
|
25325
25158
|
if (!n || typeof n != `object`) return n;
|
|
25326
25159
|
if (Array.isArray(n)) return n.map(t$62);
|
|
@@ -25333,25 +25166,25 @@ var t$61 = (t) => {
|
|
|
25333
25166
|
if (typeof t == `string` || typeof t == `number` || typeof t == `boolean`) return t;
|
|
25334
25167
|
if (typeof t?.nodeType == `string`) {
|
|
25335
25168
|
let n = t, r = n[n.nodeType];
|
|
25336
|
-
return n.nodeType === e$
|
|
25169
|
+
return n.nodeType === e$51.Translation || n.nodeType === e$51.Enumeration || n.nodeType === e$51.Condition || n.nodeType === e$51.Insertion || n.nodeType === e$51.Gender || n.nodeType === e$51.File || n.nodeType === e$51.Markdown || n.nodeType === e$51.HTML ? r[Object.keys(r)[0]] : n.nodeType === e$51.Nested ? void 0 : r;
|
|
25337
25170
|
}
|
|
25338
25171
|
return !t || typeof t != `object` ? t : Array.isArray(t) ? t[0] : t;
|
|
25339
25172
|
};
|
|
25340
25173
|
//#endregion
|
|
25341
25174
|
//#region ../@intlayer/core/dist/esm/dictionaryManipulator/getNodeType.mjs
|
|
25342
|
-
var n$63 = (e) => typeof e == `object` && !!e && `nodeType` in e && typeof e.nodeType == `string`, r$65 = (e) => Object.values(e$
|
|
25343
|
-
if (typeof i == `string`) return e$
|
|
25175
|
+
var n$63 = (e) => typeof e == `object` && !!e && `nodeType` in e && typeof e.nodeType == `string`, r$65 = (e) => Object.values(e$51).includes(e), i$38 = (i) => {
|
|
25176
|
+
if (typeof i == `string`) return e$51.Text;
|
|
25344
25177
|
if (n$63(i)) {
|
|
25345
25178
|
let e = i.nodeType;
|
|
25346
|
-
return r$65(e) ? e : e$
|
|
25179
|
+
return r$65(e) ? e : e$51.Unknown;
|
|
25347
25180
|
}
|
|
25348
|
-
return Array.isArray(i) ? e$
|
|
25181
|
+
return Array.isArray(i) ? e$51.Array : e$30(i) ? e$51.ReactNode : typeof i == `number` ? e$51.Number : typeof i == `boolean` ? e$51.Boolean : i && typeof i == `object` ? e$51.Object : i === null ? e$51.Null : e$51.Unknown;
|
|
25349
25182
|
};
|
|
25350
25183
|
//#endregion
|
|
25351
25184
|
//#region ../@intlayer/core/dist/esm/dictionaryManipulator/renameContentNodeByKeyPath.mjs
|
|
25352
25185
|
var t$60 = (t, n, r) => {
|
|
25353
25186
|
let i = t, a = null, o = null;
|
|
25354
|
-
for (let t of r) a = i, (t.type === e$
|
|
25187
|
+
for (let t of r) a = i, (t.type === e$51.Object || t.type === e$51.Array) && (o = t.key, i = i[t.key]), (t.type === e$51.Translation || t.type === e$51.Enumeration || t.type === e$51.Condition) && (o = t.type, i = i[t.type][t.key]), (t.type === e$51.Markdown || t.type === e$51.ReactNode || t.type === e$51.HTML || t.type === e$51.Insertion || t.type === e$51.File) && (o = t.type, i = i[t.type]);
|
|
25355
25188
|
if (a && o !== null) if (Array.isArray(a)) a[o] = i;
|
|
25356
25189
|
else {
|
|
25357
25190
|
let e = {};
|
|
@@ -25366,34 +25199,34 @@ var t$60 = (t, n, r) => {
|
|
|
25366
25199
|
//#region ../@intlayer/editor/dist/esm/core/EditorStateManager.mjs
|
|
25367
25200
|
var l$15 = class {
|
|
25368
25201
|
constructor(a) {
|
|
25369
|
-
this._unsubAreYouThere = null, this._unsubActivate = null, this._unsubClientReady = null, this._mode = a.mode, this._configuration = a.configuration, this.messenger = new n$65(a.messenger), this.editorEnabled = new e$
|
|
25202
|
+
this._unsubAreYouThere = null, this._unsubActivate = null, this._unsubClientReady = null, this._mode = a.mode, this._configuration = a.configuration, this.messenger = new n$65(a.messenger), this.editorEnabled = new e$13(e$22.INTLAYER_EDITOR_ENABLED, this.messenger, {
|
|
25370
25203
|
emit: !1,
|
|
25371
25204
|
receive: !0,
|
|
25372
25205
|
initialValue: !1
|
|
25373
|
-
}), this.focusedContent = new e$
|
|
25206
|
+
}), this.focusedContent = new e$13(e$22.INTLAYER_FOCUSED_CONTENT_CHANGED, this.messenger, {
|
|
25374
25207
|
emit: !0,
|
|
25375
25208
|
receive: !0,
|
|
25376
25209
|
initialValue: null
|
|
25377
|
-
}), this.localeDictionaries = new e$
|
|
25210
|
+
}), this.localeDictionaries = new e$13(e$22.INTLAYER_LOCALE_DICTIONARIES_CHANGED, this.messenger), this.editedContent = new e$13(e$22.INTLAYER_EDITED_CONTENT_CHANGED, this.messenger), this.configuration = new e$13(e$22.INTLAYER_CONFIGURATION, this.messenger, {
|
|
25378
25211
|
emit: !0,
|
|
25379
25212
|
receive: !1,
|
|
25380
25213
|
...a.configuration ? { initialValue: a.configuration } : {}
|
|
25381
|
-
}), this.currentLocale = new e$
|
|
25214
|
+
}), this.currentLocale = new e$13(e$22.INTLAYER_CURRENT_LOCALE, this.messenger, {
|
|
25382
25215
|
emit: a.mode === `client`,
|
|
25383
25216
|
receive: a.mode === `editor`
|
|
25384
25217
|
}), this._urlManager = new t$66(this.messenger), this._iframeInterceptor = new n$64(this.messenger);
|
|
25385
25218
|
}
|
|
25386
25219
|
start() {
|
|
25387
|
-
this.messenger.start(), this.editorEnabled.start(), this.focusedContent.start(), this.localeDictionaries.start(), this.editedContent.start(), this.configuration.start(), this.currentLocale.start(), this._mode === `client` ? (this._urlManager.start(), this._iframeInterceptor.startInterceptor(), this._loadDictionaries(), this.messenger.send(`${e$
|
|
25220
|
+
this.messenger.start(), this.editorEnabled.start(), this.focusedContent.start(), this.localeDictionaries.start(), this.editedContent.start(), this.configuration.start(), this.currentLocale.start(), this._mode === `client` ? (this._urlManager.start(), this._iframeInterceptor.startInterceptor(), this._loadDictionaries(), this.messenger.send(`${e$22.INTLAYER_EDITED_CONTENT_CHANGED}/get`), this._configuration?.editor?.enabled !== !1 && this._setupActivationHandshake()) : (this._iframeInterceptor.startMerger(), this._setupEditorHandshake());
|
|
25388
25221
|
}
|
|
25389
25222
|
stop() {
|
|
25390
25223
|
this._unsubAreYouThere?.(), this._unsubActivate?.(), this._unsubClientReady?.(), this._unsubAreYouThere = null, this._unsubActivate = null, this._unsubClientReady = null, this.messenger.stop(), this.editorEnabled.stop(), this.focusedContent.stop(), this.localeDictionaries.stop(), this.editedContent.stop(), this.configuration.stop(), this.currentLocale.stop(), this._urlManager.stop(), this._iframeInterceptor.stopInterceptor(), this._iframeInterceptor.stopMerger();
|
|
25391
25224
|
}
|
|
25392
25225
|
pingClient() {
|
|
25393
|
-
this._mode === `editor` && this.messenger.send(e$
|
|
25226
|
+
this._mode === `editor` && this.messenger.send(e$22.INTLAYER_ARE_YOU_THERE);
|
|
25394
25227
|
}
|
|
25395
25228
|
setFocusedContentKeyPath(e) {
|
|
25396
|
-
let t = e.filter((e) => e.type !== e$
|
|
25229
|
+
let t = e.filter((e) => e.type !== e$51.Translation), n = this.focusedContent.value;
|
|
25397
25230
|
n && this.focusedContent.set({
|
|
25398
25231
|
...n,
|
|
25399
25232
|
keyPath: t
|
|
@@ -25480,7 +25313,7 @@ var l$15 = class {
|
|
|
25480
25313
|
getContentValue(e, t) {
|
|
25481
25314
|
let n = this.editedContent.value;
|
|
25482
25315
|
if (!n) return;
|
|
25483
|
-
let r = t.filter((e) => e.type !== e$
|
|
25316
|
+
let r = t.filter((e) => e.type !== e$51.Translation), i = this.localeDictionaries.value;
|
|
25484
25317
|
if (e.includes(`:local:`) || e.includes(`:remote:`)) return i && !(e in i) ? void 0 : t$64(n[e]?.content ?? {}, r, this.currentLocale.value);
|
|
25485
25318
|
let o = Object.keys(n).filter((t) => t.startsWith(`${e}:`) && (!i || t in i));
|
|
25486
25319
|
for (let e of o) {
|
|
@@ -25489,24 +25322,24 @@ var l$15 = class {
|
|
|
25489
25322
|
}
|
|
25490
25323
|
}
|
|
25491
25324
|
_setupEditorHandshake() {
|
|
25492
|
-
this._unsubClientReady = this.messenger.subscribe(e$
|
|
25493
|
-
this.editorEnabled.set(!0), this.messenger.send(e$
|
|
25494
|
-
}), this.messenger.send(e$
|
|
25325
|
+
this._unsubClientReady = this.messenger.subscribe(e$22.INTLAYER_CLIENT_READY, () => {
|
|
25326
|
+
this.editorEnabled.set(!0), this.messenger.send(e$22.INTLAYER_EDITOR_ACTIVATE);
|
|
25327
|
+
}), this.messenger.send(e$22.INTLAYER_ARE_YOU_THERE);
|
|
25495
25328
|
}
|
|
25496
25329
|
_setupActivationHandshake() {
|
|
25497
|
-
this.messenger.send(e$
|
|
25498
|
-
this.messenger.send(e$
|
|
25499
|
-
}), this._unsubActivate = this.messenger.subscribe(e$
|
|
25330
|
+
this.messenger.send(e$22.INTLAYER_CLIENT_READY), this._unsubAreYouThere = this.messenger.subscribe(e$22.INTLAYER_ARE_YOU_THERE, () => {
|
|
25331
|
+
this.messenger.send(e$22.INTLAYER_CLIENT_READY);
|
|
25332
|
+
}), this._unsubActivate = this.messenger.subscribe(e$22.INTLAYER_EDITOR_ACTIVATE, () => {
|
|
25500
25333
|
this.editorEnabled.set(!0), this._broadcastData();
|
|
25501
25334
|
});
|
|
25502
25335
|
}
|
|
25503
25336
|
_broadcastData() {
|
|
25504
25337
|
let t = this.configuration.value;
|
|
25505
|
-
t && this.messenger.send(`${e$
|
|
25338
|
+
t && this.messenger.send(`${e$22.INTLAYER_CONFIGURATION}/post`, t);
|
|
25506
25339
|
let n = this.currentLocale.value;
|
|
25507
|
-
n && this.messenger.send(`${e$
|
|
25340
|
+
n && this.messenger.send(`${e$22.INTLAYER_CURRENT_LOCALE}/post`, n);
|
|
25508
25341
|
let r = this.localeDictionaries.value;
|
|
25509
|
-
r && this.messenger.send(`${e$
|
|
25342
|
+
r && this.messenger.send(`${e$22.INTLAYER_LOCALE_DICTIONARIES_CHANGED}/post`, r);
|
|
25510
25343
|
}
|
|
25511
25344
|
async _loadDictionaries() {
|
|
25512
25345
|
try {
|
|
@@ -25571,7 +25404,7 @@ var v$10 = class extends i$39 {
|
|
|
25571
25404
|
}));
|
|
25572
25405
|
}
|
|
25573
25406
|
};
|
|
25574
|
-
e$
|
|
25407
|
+
e$19([n$66({ attribute: !1 })], v$10.prototype, `configuration`, void 0), e$19([n$66({ type: String })], v$10.prototype, `locale`, void 0);
|
|
25575
25408
|
var y$10 = () => {
|
|
25576
25409
|
typeof customElements > `u` || customElements.get(`intlayer-editor`) || customElements.define(`intlayer-editor`, v$10);
|
|
25577
25410
|
};
|
|
@@ -25659,22 +25492,22 @@ var b$6 = class extends i$39 {
|
|
|
25659
25492
|
`;
|
|
25660
25493
|
}
|
|
25661
25494
|
};
|
|
25662
|
-
e$
|
|
25495
|
+
e$19([n$66({
|
|
25663
25496
|
type: Boolean,
|
|
25664
25497
|
attribute: `is-selecting`
|
|
25665
|
-
})], b$6.prototype, `isSelecting`, void 0), e$
|
|
25498
|
+
})], b$6.prototype, `isSelecting`, void 0), e$19([n$66({
|
|
25666
25499
|
type: Number,
|
|
25667
25500
|
attribute: `press-duration`
|
|
25668
|
-
})], b$6.prototype, `pressDuration`, void 0), e$
|
|
25501
|
+
})], b$6.prototype, `pressDuration`, void 0), e$19([r$66()], b$6.prototype, `_isHovered`, void 0), e$19([r$66()], b$6.prototype, `_isSelectingState`, void 0), e$19([e$14(`.wrapper`)], b$6.prototype, `_wrapper`, void 0);
|
|
25669
25502
|
var x$7 = () => {
|
|
25670
|
-
typeof customElements > `u` || (customElements.get(`intlayer-content-selector`) || customElements.define(`intlayer-content-selector`, b$6), f$11(), d$
|
|
25503
|
+
typeof customElements > `u` || (customElements.get(`intlayer-content-selector`) || customElements.define(`intlayer-content-selector`, b$6), f$11(), d$13(), y$10());
|
|
25671
25504
|
};
|
|
25672
25505
|
//#endregion
|
|
25673
25506
|
//#region ../@intlayer/editor-react/dist/esm/useCrossFrameState.mjs
|
|
25674
25507
|
var a$34 = (a, o, s) => {
|
|
25675
25508
|
let c = a$38(), l = typeof o == `function` ? o() : o, [u, d] = (0, import_react.useState)(l), f = (0, import_react.useRef)(l), p = (0, import_react.useRef)(null);
|
|
25676
25509
|
return (0, import_react.useEffect)(() => {
|
|
25677
|
-
let { emit: e = !0, receive: t = !0 } = s ?? {}, n = new e$
|
|
25510
|
+
let { emit: e = !0, receive: t = !0 } = s ?? {}, n = new e$13(a, c?.messenger, {
|
|
25678
25511
|
emit: e,
|
|
25679
25512
|
receive: t,
|
|
25680
25513
|
initialValue: l
|
|
@@ -25704,7 +25537,7 @@ var a$34 = (a, o, s) => {
|
|
|
25704
25537
|
p.current?.postCurrentValue();
|
|
25705
25538
|
}
|
|
25706
25539
|
];
|
|
25707
|
-
}, n$61 = (n, r) => a$34(e$
|
|
25540
|
+
}, n$61 = (n, r) => a$34(e$22.INTLAYER_URL_CHANGE, n, r);
|
|
25708
25541
|
//#endregion
|
|
25709
25542
|
//#region ../@intlayer/editor-react/dist/esm/DictionariesRecordContext.mjs
|
|
25710
25543
|
var i$37 = () => {
|
|
@@ -25817,7 +25650,7 @@ var s$28 = ({ children: s, configuration: c, postMessage: l, allowedOrigins: u }
|
|
|
25817
25650
|
let e = (e) => a(e.detail);
|
|
25818
25651
|
return r.editorEnabled.addEventListener(`change`, e), () => r.editorEnabled.removeEventListener(`change`, e);
|
|
25819
25652
|
}, [r]), { enabled: i };
|
|
25820
|
-
}, c$
|
|
25653
|
+
}, c$16 = () => {
|
|
25821
25654
|
let t = a$38();
|
|
25822
25655
|
return () => t?.pingClient();
|
|
25823
25656
|
};
|
|
@@ -25835,11 +25668,11 @@ var n$54 = (n, r, i) => {
|
|
|
25835
25668
|
a?.messenger.send(n, e);
|
|
25836
25669
|
};
|
|
25837
25670
|
}, i$32 = () => {
|
|
25838
|
-
n$54(e$
|
|
25671
|
+
n$54(e$22.INTLAYER_IFRAME_CLICKED, e$21);
|
|
25839
25672
|
};
|
|
25840
25673
|
//#endregion
|
|
25841
25674
|
//#region ../@intlayer/api/dist/esm/fetcher.mjs
|
|
25842
|
-
var e$
|
|
25675
|
+
var e$12 = {
|
|
25843
25676
|
method: `GET`,
|
|
25844
25677
|
headers: { "Content-Type": `application/json` },
|
|
25845
25678
|
credentials: `include`
|
|
@@ -25852,7 +25685,7 @@ var e$11 = {
|
|
|
25852
25685
|
...i
|
|
25853
25686
|
} : i ?? r;
|
|
25854
25687
|
}, {}), r$55 = async (t, ...r) => {
|
|
25855
|
-
let { signal: i } = new AbortController(), a = ``, o, s = n$53([e$
|
|
25688
|
+
let { signal: i } = new AbortController(), a = ``, o, s = n$53([e$12, ...r.map(({ body: e, params: t, headers: n, ...r }) => r)]), c = n$53([e$12.headers, ...r.map((e) => e.headers)]), l = n$53(r.map((e) => e.params)), u = s.method;
|
|
25856
25689
|
if (u !== `GET` && u !== `HEAD`) {
|
|
25857
25690
|
let e = n$53(r.map((e) => e.body));
|
|
25858
25691
|
o = c?.[`Content-Type`] === `application/x-www-form-urlencoded` ? new URLSearchParams(e).toString() : JSON.stringify(e);
|
|
@@ -28487,9 +28320,9 @@ var s$26 = (n) => createAuthClient({
|
|
|
28487
28320
|
magicLinkClient(),
|
|
28488
28321
|
ssoClient()
|
|
28489
28322
|
]
|
|
28490
|
-
}), c$
|
|
28323
|
+
}), c$15 = (e) => {
|
|
28491
28324
|
let t = e?.editor?.backendURL ?? configuration_default?.editor?.backendURL;
|
|
28492
|
-
t || (t =
|
|
28325
|
+
t || (t = r$104, console.dir({
|
|
28493
28326
|
intlayerConfig: e,
|
|
28494
28327
|
configuration: configuration_default
|
|
28495
28328
|
}, { depth: null }), console.error(`Backend URL is not defined in the Intlayer configuration.`));
|
|
@@ -28540,7 +28373,7 @@ var s$26 = (n) => createAuthClient({
|
|
|
28540
28373
|
var a$28 = (a, o) => {
|
|
28541
28374
|
let s = i$35(), c = o ?? s ?? configuration_default, l = useQueryClient(), { data: u, isFetched: d, refetch: f } = useQuery({
|
|
28542
28375
|
queryKey: [`session`],
|
|
28543
|
-
queryFn: async () => (await c$
|
|
28376
|
+
queryFn: async () => (await c$15(c).getSession()).data,
|
|
28544
28377
|
staleTime: 60 * 1e3,
|
|
28545
28378
|
gcTime: 300 * 1e3,
|
|
28546
28379
|
refetchOnMount: !0,
|
|
@@ -28580,11 +28413,11 @@ var i$30 = (e) => {
|
|
|
28580
28413
|
}, e?.intlayerConfiguration ?? i);
|
|
28581
28414
|
}, a$27 = (t) => {
|
|
28582
28415
|
let r = i$35();
|
|
28583
|
-
return c$
|
|
28416
|
+
return c$15(t?.intlayerConfiguration ?? r);
|
|
28584
28417
|
}, s$25 = ({ requireUser: t, requireProject: n, requireOrganization: r }) => {
|
|
28585
28418
|
let { oAuth2AccessToken: i, session: a } = n$52({ intlayerConfiguration: i$35() }), o = a ? a.user : i?.user, s = a ? a.organization : i?.organization, c = a ? a.project : i?.project;
|
|
28586
28419
|
return { enable: (t ? !!o : !0) && (n ? !!c : !0) && (r ? !!s : !0) };
|
|
28587
|
-
}, c$
|
|
28420
|
+
}, c$14 = (e) => {
|
|
28588
28421
|
let { requireUser: t, requireProject: n, requireOrganization: r, ...i } = e, { enable: o } = s$25({
|
|
28589
28422
|
requireUser: t,
|
|
28590
28423
|
requireProject: n,
|
|
@@ -28594,7 +28427,7 @@ var i$30 = (e) => {
|
|
|
28594
28427
|
enabled: i?.enabled === !1 ? !1 : o,
|
|
28595
28428
|
...i
|
|
28596
28429
|
});
|
|
28597
|
-
}, d$
|
|
28430
|
+
}, d$12 = () => {
|
|
28598
28431
|
let e = a$27();
|
|
28599
28432
|
return useMutation({
|
|
28600
28433
|
mutationKey: [`logout`],
|
|
@@ -28610,7 +28443,7 @@ var i$30 = (e) => {
|
|
|
28610
28443
|
});
|
|
28611
28444
|
}, W$1 = (e, t) => {
|
|
28612
28445
|
let r = i$30();
|
|
28613
|
-
return c$
|
|
28446
|
+
return c$14({
|
|
28614
28447
|
queryKey: [`projects`, e],
|
|
28615
28448
|
queryFn: ({ signal: t }) => r.project.getProjects(e, { signal: t }),
|
|
28616
28449
|
requireUser: !0,
|
|
@@ -28633,7 +28466,7 @@ var i$30 = (e) => {
|
|
|
28633
28466
|
});
|
|
28634
28467
|
}, he = (e, t) => {
|
|
28635
28468
|
let r = i$30();
|
|
28636
|
-
return c$
|
|
28469
|
+
return c$14({
|
|
28637
28470
|
queryKey: [`tags`, e],
|
|
28638
28471
|
queryFn: ({ signal: t }) => r.tag.getTags(e, { signal: t }),
|
|
28639
28472
|
requireUser: !0,
|
|
@@ -28834,13 +28667,13 @@ var a$24 = (a) => {
|
|
|
28834
28667
|
return s.map((s, u) => {
|
|
28835
28668
|
let d = {
|
|
28836
28669
|
key: u,
|
|
28837
|
-
type: e$
|
|
28670
|
+
type: e$51.Array
|
|
28838
28671
|
}, f = [...o, d];
|
|
28839
28672
|
return (0, import_jsx_runtime.jsx)(i$27, {
|
|
28840
28673
|
level: o.length,
|
|
28841
28674
|
title: `${u}`,
|
|
28842
28675
|
description: ``,
|
|
28843
|
-
isSelected: e$
|
|
28676
|
+
isSelected: e$29(f, l),
|
|
28844
28677
|
onClick: (e) => {
|
|
28845
28678
|
e.stopPropagation(), c(f);
|
|
28846
28679
|
},
|
|
@@ -28881,9 +28714,9 @@ var s$23 = (s) => {
|
|
|
28881
28714
|
className: `ml-2 grid grid-cols-[auto,1fr] gap-2`,
|
|
28882
28715
|
children: Object.keys(l).filter((e) => !y$8.includes(e)).map((t) => {
|
|
28883
28716
|
let u = {
|
|
28884
|
-
type: e$
|
|
28717
|
+
type: e$51.Condition,
|
|
28885
28718
|
key: t
|
|
28886
|
-
}, d = [...c, u], f = l[e$
|
|
28719
|
+
}, d = [...c, u], f = l[e$51.Condition][t];
|
|
28887
28720
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [(0, import_jsx_runtime.jsx)(`span`, {
|
|
28888
28721
|
className: `flex items-center font-bold`,
|
|
28889
28722
|
children: t
|
|
@@ -28904,9 +28737,9 @@ var s$22 = (s) => {
|
|
|
28904
28737
|
className: `ml-2 grid grid-cols-[auto,1fr] gap-2`,
|
|
28905
28738
|
children: Object.keys(l).filter((e) => !y$8.includes(e)).map((t) => {
|
|
28906
28739
|
let u = {
|
|
28907
|
-
type: e$
|
|
28740
|
+
type: e$51.Enumeration,
|
|
28908
28741
|
key: t
|
|
28909
|
-
}, d = [...c, u], f = l[e$
|
|
28742
|
+
}, d = [...c, u], f = l[e$51.Enumeration][t];
|
|
28910
28743
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [(0, import_jsx_runtime.jsx)(`span`, {
|
|
28911
28744
|
className: `flex items-center font-bold`,
|
|
28912
28745
|
children: t
|
|
@@ -28945,7 +28778,7 @@ var o$29 = ({ keyPath: o, section: s, editedContent: c, editedContentValue: l, o
|
|
|
28945
28778
|
//#endregion
|
|
28946
28779
|
//#region ../@intlayer/design-system/dist/esm/components/DictionaryEditor/NodeWrapper/FileWrapper.mjs
|
|
28947
28780
|
var o$28 = (o) => {
|
|
28948
|
-
let { keyPath: s, section: c } = o, { addEditedContent: l } = i$34(), u = t$64(o.editedContent, s), d = c[e$
|
|
28781
|
+
let { keyPath: s, section: c } = o, { addEditedContent: l } = i$34(), u = t$64(o.editedContent, s), d = c[e$51.File], { content: f } = c, p = [...s, { type: e$51.File }];
|
|
28949
28782
|
return (0, import_jsx_runtime.jsxs)(`div`, {
|
|
28950
28783
|
className: `ml-2 grid grid-cols-[auto,1fr] gap-2`,
|
|
28951
28784
|
children: [(0, import_jsx_runtime.jsxs)(`span`, {
|
|
@@ -28968,7 +28801,7 @@ var o$28 = (o) => {
|
|
|
28968
28801
|
//#endregion
|
|
28969
28802
|
//#region ../@intlayer/design-system/dist/esm/components/DictionaryEditor/NodeWrapper/HtmlWrapper.mjs
|
|
28970
28803
|
var r$47 = (r) => {
|
|
28971
|
-
let { keyPath: i, section: a } = r, o = [...i, { type: e$
|
|
28804
|
+
let { keyPath: i, section: a } = r, o = [...i, { type: e$51.HTML }], s = a[e$51.HTML];
|
|
28972
28805
|
return (0, import_jsx_runtime.jsx)(`div`, {
|
|
28973
28806
|
className: `ml-2 grid grid-cols-[auto,1fr] gap-2`,
|
|
28974
28807
|
children: (0, import_jsx_runtime.jsx)(b$4, {
|
|
@@ -28981,7 +28814,7 @@ var r$47 = (r) => {
|
|
|
28981
28814
|
//#endregion
|
|
28982
28815
|
//#region ../@intlayer/design-system/dist/esm/components/DictionaryEditor/NodeWrapper/InsertionWrapper.mjs
|
|
28983
28816
|
var r$46 = (r) => {
|
|
28984
|
-
let { keyPath: i, section: a } = r, o = [...i, { type: e$
|
|
28817
|
+
let { keyPath: i, section: a } = r, o = [...i, { type: e$51.Insertion }], s = a[e$51.Insertion];
|
|
28985
28818
|
return (0, import_jsx_runtime.jsx)(`div`, {
|
|
28986
28819
|
className: `ml-2 grid grid-cols-[auto,1fr] gap-2`,
|
|
28987
28820
|
children: (0, import_jsx_runtime.jsx)(b$4, {
|
|
@@ -28994,7 +28827,7 @@ var r$46 = (r) => {
|
|
|
28994
28827
|
//#endregion
|
|
28995
28828
|
//#region ../@intlayer/design-system/dist/esm/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.mjs
|
|
28996
28829
|
var r$45 = (r) => {
|
|
28997
|
-
let { keyPath: i, section: a } = r, o = [...i, { type: e$
|
|
28830
|
+
let { keyPath: i, section: a } = r, o = [...i, { type: e$51.Markdown }], s = a[e$51.Markdown];
|
|
28998
28831
|
return (0, import_jsx_runtime.jsx)(`div`, {
|
|
28999
28832
|
className: `ml-2 grid grid-cols-[auto,1fr] gap-2`,
|
|
29000
28833
|
children: (0, import_jsx_runtime.jsx)(b$4, {
|
|
@@ -29005,17 +28838,24 @@ var r$45 = (r) => {
|
|
|
29005
28838
|
});
|
|
29006
28839
|
};
|
|
29007
28840
|
//#endregion
|
|
28841
|
+
//#region ../@intlayer/config/dist/esm/utils/stringFormatter/camelCaseToSentence.mjs
|
|
28842
|
+
var e$11 = (e) => {
|
|
28843
|
+
if (!e || typeof e != `string`) return ``;
|
|
28844
|
+
let t = e.replace(/([a-z])([A-Z])/g, `$1 $2`).replace(/([A-Z]+)([A-Z][a-z])/g, `$1 $2`);
|
|
28845
|
+
return t.charAt(0).toUpperCase() + t.slice(1).toLowerCase();
|
|
28846
|
+
};
|
|
28847
|
+
//#endregion
|
|
29008
28848
|
//#region ../@intlayer/design-system/dist/esm/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs
|
|
29009
28849
|
var l$12 = (0, import_react.memo)((r) => {
|
|
29010
28850
|
let { keyPath: l, section: u, focusedKeyPath: d = [], onFocusKeyPath: f } = r;
|
|
29011
28851
|
return (0, import_react.useMemo)(() => Object.keys(u ?? {}).filter((e) => !y$8.includes(e)), [u]).map((n) => {
|
|
29012
28852
|
let i = {
|
|
29013
28853
|
key: n,
|
|
29014
|
-
type: e$
|
|
29015
|
-
}, p = [...l, i], m = e$
|
|
28854
|
+
type: e$51.Object
|
|
28855
|
+
}, p = [...l, i], m = e$29(p, d);
|
|
29016
28856
|
return (0, import_jsx_runtime.jsx)(i$27, {
|
|
29017
28857
|
level: l.length,
|
|
29018
|
-
title: e$
|
|
28858
|
+
title: e$11(n),
|
|
29019
28859
|
description: ``,
|
|
29020
28860
|
isSelected: m,
|
|
29021
28861
|
onClick: (e) => {
|
|
@@ -29057,7 +28897,7 @@ var o$27 = ({ keyPath: o, section: s, editedContent: c, onContentChange: l, onFo
|
|
|
29057
28897
|
//#region ../@intlayer/design-system/dist/esm/components/DictionaryEditor/NodeWrapper/TranslationWrapper.mjs
|
|
29058
28898
|
var r$42 = (r) => {
|
|
29059
28899
|
let { keyPath: i, section: a, locale: o } = r, s = {
|
|
29060
|
-
type: e$
|
|
28900
|
+
type: e$51.Translation,
|
|
29061
28901
|
key: o
|
|
29062
28902
|
}, c = [...i, s], l = a.translation[o];
|
|
29063
28903
|
return (0, import_jsx_runtime.jsx)(b$4, {
|
|
@@ -29078,34 +28918,34 @@ var y$8 = [
|
|
|
29078
28918
|
f.keyPath,
|
|
29079
28919
|
f.section
|
|
29080
28920
|
]), x = (0, import_react.useMemo)(() => i$38(b), [b]);
|
|
29081
|
-
if (typeof b == `object`) return x === e$
|
|
28921
|
+
if (typeof b == `object`) return x === e$51.ReactNode ? (0, import_jsx_runtime.jsx)(`span`, {
|
|
29082
28922
|
className: `text-neutral text-xs`,
|
|
29083
28923
|
children: `React node not editable`
|
|
29084
|
-
}) : x === e$
|
|
28924
|
+
}) : x === e$51.Nested ? (0, import_jsx_runtime.jsx)(`div`, {
|
|
29085
28925
|
className: `ml-2 grid grid-cols-[auto,1fr] gap-2`,
|
|
29086
28926
|
children: `[Nested] Dictionary`
|
|
29087
|
-
}) : x === e$
|
|
28927
|
+
}) : x === e$51.Markdown ? (0, import_jsx_runtime.jsx)(r$45, {
|
|
29088
28928
|
...f,
|
|
29089
28929
|
section: b
|
|
29090
|
-
}) : x === e$
|
|
28930
|
+
}) : x === e$51.HTML ? (0, import_jsx_runtime.jsx)(r$47, {
|
|
29091
28931
|
...f,
|
|
29092
28932
|
section: b
|
|
29093
|
-
}) : x === e$
|
|
28933
|
+
}) : x === e$51.Translation ? (0, import_jsx_runtime.jsx)(r$42, {
|
|
29094
28934
|
...f,
|
|
29095
28935
|
section: b
|
|
29096
|
-
}) : x === e$
|
|
28936
|
+
}) : x === e$51.Enumeration ? (0, import_jsx_runtime.jsx)(s$22, {
|
|
29097
28937
|
...f,
|
|
29098
28938
|
section: b
|
|
29099
|
-
}) : x === e$
|
|
28939
|
+
}) : x === e$51.Condition ? (0, import_jsx_runtime.jsx)(s$23, {
|
|
29100
28940
|
...f,
|
|
29101
28941
|
section: b
|
|
29102
|
-
}) : x === e$
|
|
28942
|
+
}) : x === e$51.Insertion ? (0, import_jsx_runtime.jsx)(r$46, {
|
|
29103
28943
|
...f,
|
|
29104
28944
|
section: b
|
|
29105
|
-
}) : x === e$
|
|
28945
|
+
}) : x === e$51.Array ? (0, import_jsx_runtime.jsx)(a$24, {
|
|
29106
28946
|
...f,
|
|
29107
28947
|
section: b
|
|
29108
|
-
}) : x === e$
|
|
28948
|
+
}) : x === e$51.File ? (0, import_jsx_runtime.jsx)(o$28, {
|
|
29109
28949
|
...f,
|
|
29110
28950
|
section: b
|
|
29111
28951
|
}) : (0, import_jsx_runtime.jsx)(l$12, {
|
|
@@ -30647,7 +30487,7 @@ var O$1 = `locale-switcher-content`, k$1 = ({ panelProps: k, isMultilingual: A =
|
|
|
30647
30487
|
isFocusable: !0,
|
|
30648
30488
|
align: `end`,
|
|
30649
30489
|
...k,
|
|
30650
|
-
children: (0, import_jsx_runtime.jsxs)(d$
|
|
30490
|
+
children: (0, import_jsx_runtime.jsxs)(d$24, {
|
|
30651
30491
|
className: `max-h-[60vh] min-w-28`,
|
|
30652
30492
|
separator: `y`,
|
|
30653
30493
|
role: `listbox`,
|
|
@@ -30683,14 +30523,14 @@ var O$1 = `locale-switcher-content`, k$1 = ({ panelProps: k, isMultilingual: A =
|
|
|
30683
30523
|
})
|
|
30684
30524
|
}), (0, import_jsx_runtime.jsx)(`ol`, {
|
|
30685
30525
|
className: `divide-y divide-dashed divide-text/20 overflow-y-auto p-1`,
|
|
30686
|
-
children: q.map(({ locale: e, currentLocaleName:
|
|
30526
|
+
children: q.map(({ locale: e, currentLocaleName: t, ownLocaleName: s }) => (0, import_jsx_runtime.jsx)(`li`, {
|
|
30687
30527
|
className: `px-1.5 py-1`,
|
|
30688
30528
|
children: (0, import_jsx_runtime.jsx)(f$20, {
|
|
30689
30529
|
onClick: () => J(e),
|
|
30690
|
-
label: `${j} ${
|
|
30530
|
+
label: `${j} ${t}`,
|
|
30691
30531
|
disabled: !(R ?? R).includes(e),
|
|
30692
30532
|
isActive: z.includes(e),
|
|
30693
|
-
variant: c$
|
|
30533
|
+
variant: c$31.HOVERABLE,
|
|
30694
30534
|
color: l$27.TEXT,
|
|
30695
30535
|
isFullWidth: !0,
|
|
30696
30536
|
textAlign: u$29.LEFT,
|
|
@@ -30710,7 +30550,7 @@ var O$1 = `locale-switcher-content`, k$1 = ({ panelProps: k, isMultilingual: A =
|
|
|
30710
30550
|
children: s
|
|
30711
30551
|
}), (0, import_jsx_runtime.jsx)(`span`, {
|
|
30712
30552
|
className: `text-neutral text-xs`,
|
|
30713
|
-
children:
|
|
30553
|
+
children: t
|
|
30714
30554
|
})]
|
|
30715
30555
|
}), (0, import_jsx_runtime.jsx)(`span`, {
|
|
30716
30556
|
className: `text-neutral text-sm`,
|
|
@@ -30757,7 +30597,7 @@ var n$37 = `relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8`, r$37 = ({ classNa
|
|
|
30757
30597
|
}), s$19 = ({ className: r, ...i }) => (0, import_jsx_runtime.jsx)(`h5`, {
|
|
30758
30598
|
className: n$91(`font-bold text-base`, n$37, r),
|
|
30759
30599
|
...i
|
|
30760
|
-
}), c$
|
|
30600
|
+
}), c$13 = ({ className: r, ...i }) => (0, import_jsx_runtime.jsx)(`h6`, {
|
|
30761
30601
|
className: n$91(`ml-3 font-bold text-base`, n$37, r),
|
|
30762
30602
|
...i
|
|
30763
30603
|
}), l$11 = (e) => String(e).normalize(`NFD`).replace(/[\u0300-\u036f]/g, ``).replace(/\s+/g, `-`).toLowerCase(), u$13 = (e) => {
|
|
@@ -30766,7 +30606,7 @@ var n$37 = `relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8`, r$37 = ({ classNa
|
|
|
30766
30606
|
top: t,
|
|
30767
30607
|
behavior: `smooth`
|
|
30768
30608
|
});
|
|
30769
|
-
}, d$
|
|
30609
|
+
}, d$11 = (e, t) => {
|
|
30770
30610
|
let n = e.getBoundingClientRect().left, r = e.getBoundingClientRect().top, i = window.getComputedStyle(e, `:after`), a = n + parseInt(i.getPropertyValue(`left`), 10), o = a + parseInt(i.width, 10), s = r + parseInt(i.getPropertyValue(`top`), 10), c = s + parseInt(i.height, 10), l = t.clientX, u = t.clientY;
|
|
30771
30611
|
return l >= a && l <= o && u >= s && u <= c;
|
|
30772
30612
|
}, f$8 = ({ H: n, children: r, className: i, isClickable: a, ...o }) => {
|
|
@@ -30775,7 +30615,7 @@ var n$37 = `relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8`, r$37 = ({ classNa
|
|
|
30775
30615
|
id: s,
|
|
30776
30616
|
onClick: a ? (e) => {
|
|
30777
30617
|
let { id: t } = e.currentTarget;
|
|
30778
|
-
if (d$
|
|
30618
|
+
if (d$11(e.currentTarget, e) && typeof t == `string`) {
|
|
30779
30619
|
let e = `${window.location.href.split(`#`)[0]}#${t}`;
|
|
30780
30620
|
navigator.clipboard.writeText(e), u$13(t);
|
|
30781
30621
|
}
|
|
@@ -30802,7 +30642,7 @@ var n$37 = `relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8`, r$37 = ({ classNa
|
|
|
30802
30642
|
isClickable: e,
|
|
30803
30643
|
...n
|
|
30804
30644
|
}), v$7 = ({ isClickable: e = !1, ...n }) => (0, import_jsx_runtime.jsx)(f$8, {
|
|
30805
|
-
H: c$
|
|
30645
|
+
H: c$13,
|
|
30806
30646
|
isClickable: e,
|
|
30807
30647
|
...n
|
|
30808
30648
|
});
|
|
@@ -30908,7 +30748,7 @@ var expand_collapse_default = {
|
|
|
30908
30748
|
};
|
|
30909
30749
|
//#endregion
|
|
30910
30750
|
//#region ../@intlayer/design-system/dist/esm/components/ExpandCollapse/ExpandCollapse.mjs
|
|
30911
|
-
var c$
|
|
30751
|
+
var c$12 = ({ isRollable: c = !0, minHeight: l = 700, children: u, className: d }) => {
|
|
30912
30752
|
let [f, p] = (0, import_react.useState)(0), [m, h] = (0, import_react.useState)(!0), g = (0, import_react.useRef)(null), { expandCollapseContent: _ } = i$68(expand_collapse_default), v = f > l;
|
|
30913
30753
|
return (0, import_react.useEffect)(() => {
|
|
30914
30754
|
let e = () => {
|
|
@@ -30947,7 +30787,7 @@ var i$19 = ({ children: e }) => (0, import_jsx_runtime.jsx)(`div`, {
|
|
|
30947
30787
|
children: e
|
|
30948
30788
|
}, `line-${t}-${e.slice(0, 10)}`)) : e })
|
|
30949
30789
|
})
|
|
30950
|
-
}), a$16 = (0, import_react.lazy)(() => __vitePreload(() => import("./CodeBlockShiki-
|
|
30790
|
+
}), a$16 = (0, import_react.lazy)(() => __vitePreload(() => import("./CodeBlockShiki-B3siK5AS.js").then((e) => ({ default: e.CodeBlockShiki })), __vite__mapDeps([0,1,2]))), o$21 = ({ className: n, onChange: o, isEditable: s, children: c, lang: l, isDarkMode: u, ...d }) => (0, import_jsx_runtime.jsx)(`div`, {
|
|
30951
30791
|
className: n$91(`flex w-full min-w-0 max-w-full overflow-x-auto`, n),
|
|
30952
30792
|
...d,
|
|
30953
30793
|
children: (0, import_jsx_runtime.jsx)(import_react.Suspense, {
|
|
@@ -31060,7 +30900,7 @@ var g$6 = (0, import_react.createContext)(null), _$7 = () => {
|
|
|
31060
30900
|
...c,
|
|
31061
30901
|
children: [l.length > 0 && (0, import_jsx_runtime.jsx)(`div`, {
|
|
31062
30902
|
className: `flex w-full flex-wrap gap-1`,
|
|
31063
|
-
children: l.map((r, a) => (0, import_jsx_runtime.jsxs)(c$
|
|
30903
|
+
children: l.map((r, a) => (0, import_jsx_runtime.jsxs)(c$29, {
|
|
31064
30904
|
className: n$91(`flex items-center gap-1 rounded-xl px-1`, d === a && `ring-2 ring-muted-foreground`),
|
|
31065
30905
|
color: i$61.TEXT,
|
|
31066
30906
|
children: [(0, import_jsx_runtime.jsx)(`span`, {
|
|
@@ -34054,10 +33894,10 @@ var ScrollDownButton = SelectScrollDownButton;
|
|
|
34054
33894
|
var Separator = SelectSeparator;
|
|
34055
33895
|
//#endregion
|
|
34056
33896
|
//#region ../@intlayer/design-system/dist/esm/components/Select/Select.mjs
|
|
34057
|
-
var c$
|
|
33897
|
+
var c$10 = function(e) {
|
|
34058
33898
|
return e.POPPER = `popper`, e.ITEM_ALIGNED = `item-aligned`, e;
|
|
34059
33899
|
}({});
|
|
34060
|
-
var l$9 = Root2, u$11 = Group, d$
|
|
33900
|
+
var l$9 = Root2, u$11 = Group, d$9 = Value, f$7 = ({ validationStyleEnabled: t = !1, className: n, children: r, ...c }) => (0, import_jsx_runtime.jsxs)(Trigger, {
|
|
34061
33901
|
suppressHydrationWarning: !0,
|
|
34062
33902
|
className: n$91(`flex w-full cursor-pointer items-center justify-between whitespace-nowrap`, `select-text text-base shadow-none outline-none md:text-sm`, `rounded-xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-2xl`, `px-2 py-3 md:py-2`, `bg-neutral-50 dark:bg-neutral-950`, `text-text`, `ring-0`, `focus-visible:outline-none`, `focus-visible:ring-3`, `focus-visible:ring-neutral-200`, `dark:focus-visible:ring-neutral-500`, `focus-visible:ring-offset-white`, `dark:focus-visible:ring-offset-neutral-500`, `[box-shadow:none] focus:[box-shadow:none]`, `disabled:cursor-not-allowed disabled:opacity-50`, `aria-invalid:border-error`, `[&>span]:line-clamp-1`, t && `valid:border-success invalid:border-error`, n),
|
|
34063
33903
|
...c,
|
|
@@ -34073,7 +33913,7 @@ var l$9 = Root2, u$11 = Group, d$8 = Value, f$7 = ({ validationStyleEnabled: t =
|
|
|
34073
33913
|
className: n$91(`flex cursor-default items-center justify-center py-1`, t),
|
|
34074
33914
|
...r,
|
|
34075
33915
|
children: (0, import_jsx_runtime.jsx)(ChevronDown, {})
|
|
34076
|
-
}), h$2 = ({ className: t, children: n, position: r = c$
|
|
33916
|
+
}), h$2 = ({ className: t, children: n, position: r = c$10.POPPER, ...i }) => (0, import_jsx_runtime.jsx)(Portal, { children: (0, import_jsx_runtime.jsxs)(Content2, {
|
|
34077
33917
|
className: n$91(`relative z-50 max-h-96 min-w-32 overflow-hidden`, `rounded-xl shadow-md`, `bg-white dark:bg-neutral-950`, `text-text`, `border border-neutral-200 dark:border-neutral-800`, `data-[state=closed]:animate-out data-[state=open]:animate-in`, `data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`, `data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`, `data-[side=bottom]:slide-in-from-top-2`, `data-[side=left]:slide-in-from-right-2`, `data-[side=right]:slide-in-from-left-2`, `data-[side=top]:slide-in-from-bottom-2`, r === `popper` && `data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1`, t),
|
|
34078
33918
|
position: r,
|
|
34079
33919
|
...i,
|
|
@@ -34099,7 +33939,7 @@ var l$9 = Root2, u$11 = Group, d$8 = Value, f$7 = ({ validationStyleEnabled: t =
|
|
|
34099
33939
|
className: n$91(`-mx-1 my-1 h-px`, `bg-neutral-200 dark:bg-neutral-800`, t),
|
|
34100
33940
|
...n
|
|
34101
33941
|
}), y$5 = l$9;
|
|
34102
|
-
y$5.Group = u$11, y$5.Value = d$
|
|
33942
|
+
y$5.Group = u$11, y$5.Value = d$9, y$5.Trigger = f$7, y$5.ScrollUpButton = p$9, y$5.ScrollDownButton = m$6, y$5.Content = h$2, y$5.Label = g$5, y$5.Item = _$6, y$5.Separator = v$5;
|
|
34103
33943
|
//#endregion
|
|
34104
33944
|
//#region ../@intlayer/design-system/dist/esm/components/IDE/CodeContext.mjs
|
|
34105
33945
|
var i$18 = (0, import_react.createContext)({
|
|
@@ -34498,7 +34338,7 @@ var f$6 = ({ children: f, language: p, isDarkMode: m, showHeader: h = !0, showLi
|
|
|
34498
34338
|
packageManager: y,
|
|
34499
34339
|
codeFormat: b,
|
|
34500
34340
|
contentDeclarationFormat: x,
|
|
34501
|
-
children: (0, import_jsx_runtime.jsxs)(d$
|
|
34341
|
+
children: (0, import_jsx_runtime.jsxs)(d$24, {
|
|
34502
34342
|
className: n$91(`relative min-w-0 max-w-full text-sm leading-6`, g && `with-line-number ml-0`, _),
|
|
34503
34343
|
transparency: `lg`,
|
|
34504
34344
|
...C,
|
|
@@ -34521,7 +34361,7 @@ var f$6 = ({ children: f, language: p, isDarkMode: m, showHeader: h = !0, showLi
|
|
|
34521
34361
|
className: n$91(`absolute right-2 bottom-0 flex h-7 items-center`, T && `h-11`),
|
|
34522
34362
|
children: (0, import_jsx_runtime.jsx)(o$17, { code: w })
|
|
34523
34363
|
})
|
|
34524
|
-
})] }), (0, import_jsx_runtime.jsx)(c$
|
|
34364
|
+
})] }), (0, import_jsx_runtime.jsx)(c$12, {
|
|
34525
34365
|
minHeight: 700,
|
|
34526
34366
|
isRollable: S,
|
|
34527
34367
|
className: `min-w-0 max-w-full overflow-x-auto p-2`,
|
|
@@ -34536,7 +34376,7 @@ var f$6 = ({ children: f, language: p, isDarkMode: m, showHeader: h = !0, showLi
|
|
|
34536
34376
|
};
|
|
34537
34377
|
//#endregion
|
|
34538
34378
|
//#region ../@intlayer/design-system/dist/esm/components/TabSelector/TabSelector.mjs
|
|
34539
|
-
var c$
|
|
34379
|
+
var c$9 = function(e) {
|
|
34540
34380
|
return e.PRIMARY = `primary`, e.SECONDARY = `secondary`, e.DESTRUCTIVE = `destructive`, e.NEUTRAL = `neutral`, e.LIGHT = `light`, e.DARK = `dark`, e.TEXT = `text`, e;
|
|
34541
34381
|
}({});
|
|
34542
34382
|
var l$7 = cva(`relative z-0 flex size-full flex-row items-center gap-2`, {
|
|
@@ -34567,7 +34407,7 @@ var l$7 = cva(`relative z-0 flex size-full flex-row items-center gap-2`, {
|
|
|
34567
34407
|
}
|
|
34568
34408
|
},
|
|
34569
34409
|
defaultVariants: { orientation: `horizontal` }
|
|
34570
|
-
}), d$
|
|
34410
|
+
}), d$7 = ({ tabs: a, selectedChoice: d, onTabClick: f, color: p = c$9.PRIMARY, hoverable: m = !1, orientation: h = `horizontal`, className: g }) => {
|
|
34571
34411
|
let _ = (0, import_react.useRef)([]), v = (0, import_react.useRef)(null), { choiceIndicatorPosition: y, calculatePosition: b } = i$49(_, {
|
|
34572
34412
|
isHoverable: m,
|
|
34573
34413
|
orientation: h
|
|
@@ -34738,7 +34578,7 @@ var h$1 = Object.assign(({ defaultTab: o, group: l, variant: h, children: g, cla
|
|
|
34738
34578
|
...b,
|
|
34739
34579
|
children: [(0, import_jsx_runtime.jsx)(`div`, {
|
|
34740
34580
|
className: n$91(`flex shrink-0 gap-3 p-3`, v),
|
|
34741
|
-
children: (0, import_jsx_runtime.jsx)(d$
|
|
34581
|
+
children: (0, import_jsx_runtime.jsx)(d$7, {
|
|
34742
34582
|
selectedChoice: D,
|
|
34743
34583
|
tabs: x.map((t) => {
|
|
34744
34584
|
let { label: n, value: r, disabled: i } = t.props, a = D === r;
|
|
@@ -34756,7 +34596,7 @@ var h$1 = Object.assign(({ defaultTab: o, group: l, variant: h, children: g, cla
|
|
|
34756
34596
|
}, r);
|
|
34757
34597
|
}),
|
|
34758
34598
|
hoverable: !0,
|
|
34759
|
-
color: c$
|
|
34599
|
+
color: c$9.TEXT
|
|
34760
34600
|
})
|
|
34761
34601
|
}), (0, import_jsx_runtime.jsx)(`div`, {
|
|
34762
34602
|
className: n$91(`relative w-full min-w-0 overflow-x-clip [-webkit-clip-path:inset(0)] [clip-path:inset(0)]`, y && `min-h-0 flex-1`),
|
|
@@ -44528,7 +44368,7 @@ var v$4 = cva(`flex cursor-default flex-col overflow-hidden shadow-sm`, {
|
|
|
44528
44368
|
lg: `px-6 py-8`,
|
|
44529
44369
|
xl: `px-8 py-10`,
|
|
44530
44370
|
"2xl": `px-10 py-12`
|
|
44531
|
-
}, b$1 = motion.create(d$
|
|
44371
|
+
}, b$1 = motion.create(d$24), x$3 = ({ children: r, isOpen: u, container: x, onClose: S, hasCloseButton: C = !1, title: w, size: T = _$5.MD, className: E, isScrollable: D = !1, disableScroll: O = !0, padding: k = `none`, ...A }) => {
|
|
44532
44372
|
let j = n$26(x);
|
|
44533
44373
|
if (r$24({
|
|
44534
44374
|
key: `modal`,
|
|
@@ -44587,7 +44427,7 @@ var v$4 = cva(`flex cursor-default flex-col overflow-hidden shadow-sm`, {
|
|
|
44587
44427
|
className: `mb-2 ml-1 flex items-center justify-center font-bold text-lg`,
|
|
44588
44428
|
children: w
|
|
44589
44429
|
}), C && (0, import_jsx_runtime.jsx)(f$20, {
|
|
44590
|
-
variant: c$
|
|
44430
|
+
variant: c$31.HOVERABLE,
|
|
44591
44431
|
color: l$27.TEXT,
|
|
44592
44432
|
label: `Close modal`,
|
|
44593
44433
|
className: `ml-auto`,
|
|
@@ -44601,7 +44441,7 @@ var v$4 = cva(`flex cursor-default flex-col overflow-hidden shadow-sm`, {
|
|
|
44601
44441
|
className: n$91(`flex min-h-0 w-full flex-1 flex-col`, D === !0 && `overflow-auto`, D === `y` && `overflow-y-auto overflow-x-hidden`, D === `x` && `overflow-x-auto overflow-y-hidden`, !D && `overflow-visible`),
|
|
44602
44442
|
children: (0, import_jsx_runtime.jsx)(`div`, {
|
|
44603
44443
|
className: n$91(`flex h-full w-full flex-1 flex-col`, N),
|
|
44604
|
-
children:
|
|
44444
|
+
children: r
|
|
44605
44445
|
})
|
|
44606
44446
|
})]
|
|
44607
44447
|
})
|
|
@@ -44626,7 +44466,7 @@ var v$4 = cva(`flex cursor-default flex-col overflow-hidden shadow-sm`, {
|
|
|
44626
44466
|
})
|
|
44627
44467
|
})
|
|
44628
44468
|
}),
|
|
44629
|
-
(0, import_jsx_runtime.jsx)(c$
|
|
44469
|
+
(0, import_jsx_runtime.jsx)(c$12, {
|
|
44630
44470
|
isRollable: d,
|
|
44631
44471
|
className: `max-w-full overflow-x-auto`,
|
|
44632
44472
|
children: (0, import_jsx_runtime.jsx)(`table`, {
|
|
@@ -44763,7 +44603,7 @@ var v$4 = cva(`flex cursor-default flex-col overflow-hidden shadow-sm`, {
|
|
|
44763
44603
|
...k,
|
|
44764
44604
|
code: C$4(e),
|
|
44765
44605
|
a: O(t)
|
|
44766
|
-
}), N = ({ children: e, isDarkMode: t = !1, locale: n, forceBlock: r, preserveFrontmatter: i, tagfilter: a, components: o, wrapper: s }) => (0, import_jsx_runtime.jsx)(o$18, { children: (0, import_jsx_runtime.jsx)(o$15, { children: i$
|
|
44606
|
+
}), N = ({ children: e, isDarkMode: t = !1, locale: n, forceBlock: r, preserveFrontmatter: i, tagfilter: a, components: o, wrapper: s }) => (0, import_jsx_runtime.jsx)(o$18, { children: (0, import_jsx_runtime.jsx)(o$15, { children: i$82(e, {
|
|
44767
44607
|
components: {
|
|
44768
44608
|
...A(t, n),
|
|
44769
44609
|
...o
|
|
@@ -45137,7 +44977,7 @@ var p$5 = ({ children: p, onContentChange: m, disabled: h, validate: g, addition
|
|
|
45137
44977
|
children: [C && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [(0, import_jsx_runtime.jsx)(f$20, {
|
|
45138
44978
|
Icon: Check,
|
|
45139
44979
|
label: `Save changes${O ? `` : ` (invalid content)`}`,
|
|
45140
|
-
variant: c$
|
|
44980
|
+
variant: c$31.HOVERABLE,
|
|
45141
44981
|
color: l$27.TEXT,
|
|
45142
44982
|
size: o$56.ICON_SM,
|
|
45143
44983
|
className: `cursor-pointer hover:scale-110`,
|
|
@@ -45147,7 +44987,7 @@ var p$5 = ({ children: p, onContentChange: m, disabled: h, validate: g, addition
|
|
|
45147
44987
|
}), (0, import_jsx_runtime.jsx)(f$20, {
|
|
45148
44988
|
Icon: X$3,
|
|
45149
44989
|
label: `Cancel changes`,
|
|
45150
|
-
variant: c$
|
|
44990
|
+
variant: c$31.HOVERABLE,
|
|
45151
44991
|
size: o$56.ICON_SM,
|
|
45152
44992
|
color: l$27.TEXT,
|
|
45153
44993
|
className: `cursor-pointer hover:scale-110`,
|
|
@@ -45160,7 +45000,7 @@ var p$5 = ({ children: p, onContentChange: m, disabled: h, validate: g, addition
|
|
|
45160
45000
|
//#endregion
|
|
45161
45001
|
//#region ../@intlayer/design-system/dist/esm/hooks/useUser/index.mjs
|
|
45162
45002
|
var n$23 = () => {
|
|
45163
|
-
let { session: n, revalidateSession: r, setSession: i } = n$52(), { mutate: a } = d$
|
|
45003
|
+
let { session: n, revalidateSession: r, setSession: i } = n$52(), { mutate: a } = d$12(), o = n?.user ? `authenticated` : `unauthenticated`;
|
|
45164
45004
|
return {
|
|
45165
45005
|
isAuthenticated: o === `authenticated`,
|
|
45166
45006
|
isUnauthenticated: o === `unauthenticated`,
|
|
@@ -45209,7 +45049,7 @@ var p$4 = ({ children: p, onContentChange: m, disabled: h, validate: g, addition
|
|
|
45209
45049
|
children: [w && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [(0, import_jsx_runtime.jsx)(f$20, {
|
|
45210
45050
|
Icon: Check,
|
|
45211
45051
|
label: `Save changes${k ? `` : ` (invalid content)`}`,
|
|
45212
|
-
variant: c$
|
|
45052
|
+
variant: c$31.HOVERABLE,
|
|
45213
45053
|
color: l$27.TEXT,
|
|
45214
45054
|
size: o$56.ICON_SM,
|
|
45215
45055
|
className: `cursor-pointer hover:scale-110`,
|
|
@@ -45219,7 +45059,7 @@ var p$4 = ({ children: p, onContentChange: m, disabled: h, validate: g, addition
|
|
|
45219
45059
|
}), (0, import_jsx_runtime.jsx)(f$20, {
|
|
45220
45060
|
Icon: X$3,
|
|
45221
45061
|
label: `Cancel changes`,
|
|
45222
|
-
variant: c$
|
|
45062
|
+
variant: c$31.HOVERABLE,
|
|
45223
45063
|
size: o$56.ICON_SM,
|
|
45224
45064
|
color: l$27.TEXT,
|
|
45225
45065
|
className: `cursor-pointer hover:scale-110`,
|
|
@@ -45248,7 +45088,7 @@ var s$12 = (e) => {
|
|
|
45248
45088
|
comparator: t,
|
|
45249
45089
|
numberValue: n
|
|
45250
45090
|
};
|
|
45251
|
-
}, c$
|
|
45091
|
+
}, c$6 = ({ value: c, onChange: l }) => {
|
|
45252
45092
|
let { comparator: u, numberValue: d } = (0, import_react.useMemo)(() => s$12(c), [c]), [f, p] = (0, import_react.useState)(u ?? null), [m, h] = (0, import_react.useState)(d ?? null);
|
|
45253
45093
|
return (0, import_react.useEffect)(() => {
|
|
45254
45094
|
f && m && (f !== u || m !== d) && l(`${f}${m}`);
|
|
@@ -45296,15 +45136,15 @@ var s$12 = (e) => {
|
|
|
45296
45136
|
className: `min-w-4`
|
|
45297
45137
|
})]
|
|
45298
45138
|
});
|
|
45299
|
-
}, F = ({ keyPath: e, dictionary:
|
|
45300
|
-
let { editedContent:
|
|
45139
|
+
}, F = ({ keyPath: e, dictionary: n, ...o }) => {
|
|
45140
|
+
let { editedContent: l, addEditedContent: u } = i$34(), d = i$35(), { mutate: f, isPending: p } = Te();
|
|
45301
45141
|
return (0, import_jsx_runtime.jsx)(p$4, {
|
|
45302
45142
|
variant: i$59.DEFAULT,
|
|
45303
|
-
onContentChange: (
|
|
45143
|
+
onContentChange: (t) => u(n.localId, t, e),
|
|
45304
45144
|
additionalButtons: (0, import_jsx_runtime.jsx)(f$20, {
|
|
45305
45145
|
Icon: WandSparkles,
|
|
45306
45146
|
label: `Audit`,
|
|
45307
|
-
variant: c$
|
|
45147
|
+
variant: c$31.HOVERABLE,
|
|
45308
45148
|
size: o$56.ICON_SM,
|
|
45309
45149
|
color: l$27.TEXT,
|
|
45310
45150
|
className: `cursor-pointer hover:scale-110`,
|
|
@@ -45312,27 +45152,27 @@ var s$12 = (e) => {
|
|
|
45312
45152
|
onClick: () => {
|
|
45313
45153
|
f({
|
|
45314
45154
|
fileContent: JSON.stringify({
|
|
45315
|
-
...
|
|
45316
|
-
...
|
|
45155
|
+
...n,
|
|
45156
|
+
...l?.[n.localId] ?? {}
|
|
45317
45157
|
}),
|
|
45318
45158
|
keyPath: e,
|
|
45319
|
-
locales:
|
|
45159
|
+
locales: d?.internationalization.locales ?? [],
|
|
45320
45160
|
aiOptions: {
|
|
45321
|
-
apiKey:
|
|
45322
|
-
model:
|
|
45323
|
-
temperature:
|
|
45161
|
+
apiKey: d?.ai?.apiKey,
|
|
45162
|
+
model: d?.ai?.model,
|
|
45163
|
+
temperature: d?.ai?.temperature
|
|
45324
45164
|
}
|
|
45325
|
-
}, { onSuccess: (
|
|
45326
|
-
if (
|
|
45327
|
-
let r =
|
|
45328
|
-
|
|
45165
|
+
}, { onSuccess: (t) => {
|
|
45166
|
+
if (t?.data) try {
|
|
45167
|
+
let r = t.data.fileContent;
|
|
45168
|
+
u(n.localId, r, e);
|
|
45329
45169
|
} catch (e) {
|
|
45330
45170
|
console.error(e);
|
|
45331
45171
|
}
|
|
45332
45172
|
} });
|
|
45333
45173
|
}
|
|
45334
45174
|
}),
|
|
45335
|
-
...
|
|
45175
|
+
...o
|
|
45336
45176
|
});
|
|
45337
45177
|
}, I = ({ keyPath: e, dictionary: t, ...n }) => {
|
|
45338
45178
|
let { addEditedContent: r } = i$34();
|
|
@@ -45358,7 +45198,7 @@ var s$12 = (e) => {
|
|
|
45358
45198
|
...n
|
|
45359
45199
|
});
|
|
45360
45200
|
}, z = ({ section: e, keyPath: t, dictionary: n, renderSection: r }) => {
|
|
45361
|
-
let { locale: i, defaultLocale: a } = a$63(), { selectedLocales: o, availableLocales: s } = o$24(), c = e[e$
|
|
45201
|
+
let { locale: i, defaultLocale: a } = a$63(), { selectedLocales: o, availableLocales: s } = o$24(), c = e[e$51.Translation], l = Object.keys(c), u = s.length > o.length ? o : [...new Set([...s, ...l])], d = e[e$51.Translation];
|
|
45362
45202
|
return (0, import_jsx_runtime.jsx)(`table`, {
|
|
45363
45203
|
className: `w-full`,
|
|
45364
45204
|
children: (0, import_jsx_runtime.jsx)(`tbody`, {
|
|
@@ -45378,7 +45218,7 @@ var s$12 = (e) => {
|
|
|
45378
45218
|
children: (0, import_jsx_runtime.jsx)($, {
|
|
45379
45219
|
section: d[e] ?? t$62(d[a]),
|
|
45380
45220
|
keyPath: [...t, {
|
|
45381
|
-
type: e$
|
|
45221
|
+
type: e$51.Translation,
|
|
45382
45222
|
key: e
|
|
45383
45223
|
}],
|
|
45384
45224
|
dictionary: n,
|
|
@@ -45389,19 +45229,19 @@ var s$12 = (e) => {
|
|
|
45389
45229
|
})
|
|
45390
45230
|
})
|
|
45391
45231
|
});
|
|
45392
|
-
}, B = ({ section: t, keyPath:
|
|
45393
|
-
let { addEditedContent: l } = i$34(), { addNewEnumeration: u, removeEnumeration: d } = i$68(navigation_view_default), f = t[e$
|
|
45232
|
+
}, B = ({ section: t, keyPath: n, dictionary: a, renderSection: c }) => {
|
|
45233
|
+
let { addEditedContent: l } = i$34(), { addNewEnumeration: u, removeEnumeration: d } = i$68(navigation_view_default), f = t[e$51.Enumeration], p = Object.keys(f)[0];
|
|
45394
45234
|
return (0, import_jsx_runtime.jsxs)(`div`, {
|
|
45395
45235
|
className: `flex flex-col gap-2`,
|
|
45396
45236
|
children: [(0, import_jsx_runtime.jsx)(`table`, {
|
|
45397
45237
|
className: `w-full`,
|
|
45398
45238
|
children: (0, import_jsx_runtime.jsx)(`tbody`, {
|
|
45399
45239
|
className: `flex w-full flex-col gap-2`,
|
|
45400
|
-
children: Object.keys(t[e$
|
|
45401
|
-
let
|
|
45402
|
-
type: e$
|
|
45403
|
-
key:
|
|
45404
|
-
}],
|
|
45240
|
+
children: Object.keys(t[e$51.Enumeration]).map((i) => {
|
|
45241
|
+
let o = [...n, {
|
|
45242
|
+
type: e$51.Enumeration,
|
|
45243
|
+
key: i
|
|
45244
|
+
}], s = `${JSON.stringify(n)}-enumeration-${i}`;
|
|
45405
45245
|
return (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
|
|
45406
45246
|
(0, import_jsx_runtime.jsx)(`tr`, {
|
|
45407
45247
|
className: `mt-2 w-full`,
|
|
@@ -45416,7 +45256,7 @@ var s$12 = (e) => {
|
|
|
45416
45256
|
color: `error`,
|
|
45417
45257
|
className: `ml-auto text-neutral hover:text-error`,
|
|
45418
45258
|
Icon: Trash,
|
|
45419
|
-
onClick: () => l(
|
|
45259
|
+
onClick: () => l(a.localId, void 0, o),
|
|
45420
45260
|
children: d.text
|
|
45421
45261
|
})
|
|
45422
45262
|
})
|
|
@@ -45426,14 +45266,14 @@ var s$12 = (e) => {
|
|
|
45426
45266
|
className: `w-full p-2`,
|
|
45427
45267
|
children: (0, import_jsx_runtime.jsx)(`td`, {
|
|
45428
45268
|
className: `flex w-full`,
|
|
45429
|
-
children: (0, import_jsx_runtime.jsx)(c$
|
|
45430
|
-
value:
|
|
45431
|
-
onChange: (
|
|
45432
|
-
let
|
|
45269
|
+
children: (0, import_jsx_runtime.jsx)(c$6, {
|
|
45270
|
+
value: i,
|
|
45271
|
+
onChange: (r) => {
|
|
45272
|
+
let o = t[e$51.Enumeration], s = e$5(o, i, r), c = {
|
|
45433
45273
|
...t,
|
|
45434
|
-
[e$
|
|
45274
|
+
[e$51.Enumeration]: s
|
|
45435
45275
|
};
|
|
45436
|
-
console.log(`newValue`, c), l(
|
|
45276
|
+
console.log(`newValue`, c), l(a.localId, c, n);
|
|
45437
45277
|
}
|
|
45438
45278
|
})
|
|
45439
45279
|
})
|
|
@@ -45443,24 +45283,24 @@ var s$12 = (e) => {
|
|
|
45443
45283
|
children: (0, import_jsx_runtime.jsx)(`td`, {
|
|
45444
45284
|
className: `flex w-full`,
|
|
45445
45285
|
children: (0, import_jsx_runtime.jsx)(Q, {
|
|
45446
|
-
section: f[
|
|
45447
|
-
keyPath:
|
|
45448
|
-
dictionary:
|
|
45286
|
+
section: f[i] ?? t$62(f[p]),
|
|
45287
|
+
keyPath: o,
|
|
45288
|
+
dictionary: a,
|
|
45449
45289
|
renderSection: c
|
|
45450
45290
|
})
|
|
45451
45291
|
})
|
|
45452
45292
|
})
|
|
45453
|
-
] },
|
|
45293
|
+
] }, s);
|
|
45454
45294
|
})
|
|
45455
45295
|
})
|
|
45456
45296
|
}), (0, import_jsx_runtime.jsx)(f$20, {
|
|
45457
45297
|
label: u.label.value,
|
|
45458
|
-
variant: c$
|
|
45298
|
+
variant: c$31.HOVERABLE,
|
|
45459
45299
|
color: l$27.NEUTRAL,
|
|
45460
45300
|
textAlign: u$29.LEFT,
|
|
45461
45301
|
isFullWidth: !0,
|
|
45462
|
-
onClick: () => l(
|
|
45463
|
-
type: e$
|
|
45302
|
+
onClick: () => l(a.localId, t$62(f[p]) ?? ``, [...n, {
|
|
45303
|
+
type: e$51.Enumeration,
|
|
45464
45304
|
key: `unknown`
|
|
45465
45305
|
}]),
|
|
45466
45306
|
Icon: Plus,
|
|
@@ -45469,7 +45309,7 @@ var s$12 = (e) => {
|
|
|
45469
45309
|
})]
|
|
45470
45310
|
});
|
|
45471
45311
|
}, V = ({ section: e, keyPath: t, dictionary: n, renderSection: r }) => {
|
|
45472
|
-
let i = e[e$
|
|
45312
|
+
let i = e[e$51.Condition];
|
|
45473
45313
|
return (0, import_jsx_runtime.jsx)(`table`, {
|
|
45474
45314
|
className: `w-full`,
|
|
45475
45315
|
children: (0, import_jsx_runtime.jsx)(`tbody`, {
|
|
@@ -45493,7 +45333,7 @@ var s$12 = (e) => {
|
|
|
45493
45333
|
children: (0, import_jsx_runtime.jsx)($, {
|
|
45494
45334
|
section: i[e] ?? t$62(i.true),
|
|
45495
45335
|
keyPath: [...t, {
|
|
45496
|
-
type: e$
|
|
45336
|
+
type: e$51.Condition,
|
|
45497
45337
|
key: e
|
|
45498
45338
|
}],
|
|
45499
45339
|
dictionary: n,
|
|
@@ -45505,7 +45345,7 @@ var s$12 = (e) => {
|
|
|
45505
45345
|
})
|
|
45506
45346
|
});
|
|
45507
45347
|
}, H = ({ section: e, keyPath: t, dictionary: n, renderSection: r }) => {
|
|
45508
|
-
let i = e[e$
|
|
45348
|
+
let i = e[e$51.Gender];
|
|
45509
45349
|
return (0, import_jsx_runtime.jsx)(`table`, {
|
|
45510
45350
|
className: `w-full`,
|
|
45511
45351
|
children: (0, import_jsx_runtime.jsx)(`tbody`, {
|
|
@@ -45529,7 +45369,7 @@ var s$12 = (e) => {
|
|
|
45529
45369
|
children: (0, import_jsx_runtime.jsx)($, {
|
|
45530
45370
|
section: i[e] ?? t$62(i.male),
|
|
45531
45371
|
keyPath: [...t, {
|
|
45532
|
-
type: e$
|
|
45372
|
+
type: e$51.Gender,
|
|
45533
45373
|
key: e
|
|
45534
45374
|
}],
|
|
45535
45375
|
dictionary: n,
|
|
@@ -45540,7 +45380,7 @@ var s$12 = (e) => {
|
|
|
45540
45380
|
})
|
|
45541
45381
|
})
|
|
45542
45382
|
});
|
|
45543
|
-
}, U = ({ section: e, keyPath: t, dictionary:
|
|
45383
|
+
}, U = ({ section: e, keyPath: t, dictionary: n, renderSection: a }) => {
|
|
45544
45384
|
let { addEditedContent: c } = i$34(), { addNewElement: l, removeElement: u } = i$68(navigation_view_default);
|
|
45545
45385
|
return (0, import_jsx_runtime.jsxs)(`div`, {
|
|
45546
45386
|
className: `flex flex-col gap-2`,
|
|
@@ -45548,8 +45388,8 @@ var s$12 = (e) => {
|
|
|
45548
45388
|
className: `w-full`,
|
|
45549
45389
|
children: (0, import_jsx_runtime.jsx)(`tbody`, {
|
|
45550
45390
|
className: `flex w-full flex-col gap-2`,
|
|
45551
|
-
children: e.map((
|
|
45552
|
-
let
|
|
45391
|
+
children: e.map((i, o) => {
|
|
45392
|
+
let s = `${JSON.stringify(t)}-array-${o}`;
|
|
45553
45393
|
return (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [(0, import_jsx_runtime.jsx)(`tr`, {
|
|
45554
45394
|
className: `mt-2 w-full p-2`,
|
|
45555
45395
|
children: (0, import_jsx_runtime.jsx)(`td`, {
|
|
@@ -45558,7 +45398,7 @@ var s$12 = (e) => {
|
|
|
45558
45398
|
className: `flex w-full items-center justify-between gap-2`,
|
|
45559
45399
|
children: [(0, import_jsx_runtime.jsx)(`span`, {
|
|
45560
45400
|
className: `text-xs`,
|
|
45561
|
-
children: String(
|
|
45401
|
+
children: String(o)
|
|
45562
45402
|
}), (0, import_jsx_runtime.jsx)(f$20, {
|
|
45563
45403
|
label: u.label.value,
|
|
45564
45404
|
variant: `hoverable`,
|
|
@@ -45567,10 +45407,10 @@ var s$12 = (e) => {
|
|
|
45567
45407
|
className: `ml-auto text-neutral hover:text-error`,
|
|
45568
45408
|
onClick: () => {
|
|
45569
45409
|
let e = [...t, {
|
|
45570
|
-
type: e$
|
|
45571
|
-
key:
|
|
45410
|
+
type: e$51.Array,
|
|
45411
|
+
key: o
|
|
45572
45412
|
}];
|
|
45573
|
-
c(
|
|
45413
|
+
c(n.localId, void 0, e);
|
|
45574
45414
|
},
|
|
45575
45415
|
Icon: Trash,
|
|
45576
45416
|
children: u.text
|
|
@@ -45582,30 +45422,30 @@ var s$12 = (e) => {
|
|
|
45582
45422
|
children: (0, import_jsx_runtime.jsx)(`td`, {
|
|
45583
45423
|
className: `flex w-full`,
|
|
45584
45424
|
children: (0, import_jsx_runtime.jsx)($, {
|
|
45585
|
-
section:
|
|
45425
|
+
section: i ?? t$62(e[0]),
|
|
45586
45426
|
keyPath: [...t, {
|
|
45587
|
-
type: e$
|
|
45588
|
-
key:
|
|
45427
|
+
type: e$51.Array,
|
|
45428
|
+
key: o
|
|
45589
45429
|
}],
|
|
45590
|
-
dictionary:
|
|
45591
|
-
renderSection:
|
|
45430
|
+
dictionary: n,
|
|
45431
|
+
renderSection: a
|
|
45592
45432
|
})
|
|
45593
45433
|
})
|
|
45594
|
-
})] },
|
|
45434
|
+
})] }, s);
|
|
45595
45435
|
})
|
|
45596
45436
|
})
|
|
45597
45437
|
}), (0, import_jsx_runtime.jsx)(f$20, {
|
|
45598
45438
|
label: l.label.value,
|
|
45599
|
-
variant: c$
|
|
45439
|
+
variant: c$31.HOVERABLE,
|
|
45600
45440
|
color: l$27.NEUTRAL,
|
|
45601
45441
|
textAlign: u$29.LEFT,
|
|
45602
45442
|
isFullWidth: !0,
|
|
45603
45443
|
onClick: () => {
|
|
45604
|
-
let
|
|
45605
|
-
type: e$
|
|
45444
|
+
let r = [...t, {
|
|
45445
|
+
type: e$51.Array,
|
|
45606
45446
|
key: e.length
|
|
45607
45447
|
}];
|
|
45608
|
-
c(
|
|
45448
|
+
c(n.localId, t$62(e[0]) ?? ``, r, !1);
|
|
45609
45449
|
},
|
|
45610
45450
|
Icon: Plus,
|
|
45611
45451
|
children: l.text
|
|
@@ -45617,7 +45457,7 @@ var s$12 = (e) => {
|
|
|
45617
45457
|
className: `flex flex-col gap-2`,
|
|
45618
45458
|
children: Object.keys(e).map((i) => {
|
|
45619
45459
|
let a = [...t, {
|
|
45620
|
-
type: e$
|
|
45460
|
+
type: e$51.Object,
|
|
45621
45461
|
key: i
|
|
45622
45462
|
}], o = e, s = Object.keys(o)[0], c = o[i] ?? t$62(o[s]), l = `${JSON.stringify(t)}-object-${i}`;
|
|
45623
45463
|
return (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [(0, import_jsx_runtime.jsx)(`tr`, {
|
|
@@ -45653,7 +45493,7 @@ var q = ({ section: e, keyPath: t, dictionary: n }) => {
|
|
|
45653
45493
|
}, {
|
|
45654
45494
|
content: `Preview`,
|
|
45655
45495
|
value: K.Preview
|
|
45656
|
-
}], o = [...t, { type: e$
|
|
45496
|
+
}], o = [...t, { type: e$51.HTML }], s = e[e$51.HTML];
|
|
45657
45497
|
return (0, import_jsx_runtime.jsxs)(`div`, {
|
|
45658
45498
|
className: `flex w-full flex-col justify-center gap-6 p-2`,
|
|
45659
45499
|
children: [(0, import_jsx_runtime.jsx)(h$10, {
|
|
@@ -45677,7 +45517,7 @@ var q = ({ section: e, keyPath: t, dictionary: n }) => {
|
|
|
45677
45517
|
}, {
|
|
45678
45518
|
content: `Preview`,
|
|
45679
45519
|
value: G.Preview
|
|
45680
|
-
}], s = [...t, { type: e$
|
|
45520
|
+
}], s = [...t, { type: e$51.Markdown }], c = e[e$51.Markdown];
|
|
45681
45521
|
return (0, import_jsx_runtime.jsxs)(`div`, {
|
|
45682
45522
|
className: `flex w-full flex-col justify-center gap-6 p-2`,
|
|
45683
45523
|
children: [(0, import_jsx_runtime.jsx)(h$10, {
|
|
@@ -45688,7 +45528,7 @@ var q = ({ section: e, keyPath: t, dictionary: n }) => {
|
|
|
45688
45528
|
size: f$15.SM,
|
|
45689
45529
|
className: `ml-auto`
|
|
45690
45530
|
}), (0, import_jsx_runtime.jsx)($, {
|
|
45691
|
-
section:
|
|
45531
|
+
section: c,
|
|
45692
45532
|
keyPath: s,
|
|
45693
45533
|
dictionary: n,
|
|
45694
45534
|
renderSection: i === G.Preview ? (e) => (0, import_jsx_runtime.jsx)(N, {
|
|
@@ -45698,7 +45538,7 @@ var q = ({ section: e, keyPath: t, dictionary: n }) => {
|
|
|
45698
45538
|
})]
|
|
45699
45539
|
});
|
|
45700
45540
|
}, Y = ({ section: e, keyPath: t, ...n }) => {
|
|
45701
|
-
let r = [...t, { type: e$
|
|
45541
|
+
let r = [...t, { type: e$51.Insertion }], i = e[e$51.Insertion];
|
|
45702
45542
|
return (0, import_jsx_runtime.jsx)(`div`, {
|
|
45703
45543
|
className: `flex w-full flex-col justify-center gap-6 p-2`,
|
|
45704
45544
|
children: (0, import_jsx_runtime.jsx)($, {
|
|
@@ -45708,7 +45548,7 @@ var q = ({ section: e, keyPath: t, dictionary: n }) => {
|
|
|
45708
45548
|
})
|
|
45709
45549
|
});
|
|
45710
45550
|
}, X = ({ section: e, keyPath: t, ...n }) => {
|
|
45711
|
-
let r = [...t, { type: e$
|
|
45551
|
+
let r = [...t, { type: e$51.File }], i = e[e$51.File], { content: a } = e;
|
|
45712
45552
|
return (0, import_jsx_runtime.jsxs)(`div`, {
|
|
45713
45553
|
className: `flex w-full flex-col justify-center gap-6 p-2`,
|
|
45714
45554
|
children: [(0, import_jsx_runtime.jsxs)(`span`, {
|
|
@@ -45721,7 +45561,7 @@ var q = ({ section: e, keyPath: t, dictionary: n }) => {
|
|
|
45721
45561
|
})]
|
|
45722
45562
|
});
|
|
45723
45563
|
}, Z = ({ keyPath: e, dictionary: t, renderSection: n, section: r, ...i }) => {
|
|
45724
|
-
let { addEditedContent: a } = i$34(), o = r[e$
|
|
45564
|
+
let { addEditedContent: a } = i$34(), o = r[e$51.Nested], s = [...e, { type: e$51.Nested }];
|
|
45725
45565
|
return (0, import_jsx_runtime.jsxs)(`div`, {
|
|
45726
45566
|
className: `flex w-full flex-col gap-4 p-2`,
|
|
45727
45567
|
children: [
|
|
@@ -45735,7 +45575,7 @@ var q = ({ section: e, keyPath: t, dictionary: n }) => {
|
|
|
45735
45575
|
a(t.localId, {
|
|
45736
45576
|
...o,
|
|
45737
45577
|
dictionaryKey: String(e)
|
|
45738
|
-
},
|
|
45578
|
+
}, s);
|
|
45739
45579
|
},
|
|
45740
45580
|
children: o.dictionaryKey ?? ``
|
|
45741
45581
|
}),
|
|
@@ -45749,7 +45589,7 @@ var q = ({ section: e, keyPath: t, dictionary: n }) => {
|
|
|
45749
45589
|
a(t.localId, {
|
|
45750
45590
|
...o,
|
|
45751
45591
|
path: e === `` ? void 0 : e
|
|
45752
|
-
},
|
|
45592
|
+
}, s);
|
|
45753
45593
|
},
|
|
45754
45594
|
children: o.path ?? ``
|
|
45755
45595
|
})
|
|
@@ -45757,67 +45597,67 @@ var q = ({ section: e, keyPath: t, dictionary: n }) => {
|
|
|
45757
45597
|
});
|
|
45758
45598
|
}, Q = ({ section: e, keyPath: t, dictionary: n, renderSection: r, isDarkMode: i }) => {
|
|
45759
45599
|
let { tsxNotEditable: a } = i$68(navigation_view_default), o = i$38(e);
|
|
45760
|
-
return o === e$
|
|
45600
|
+
return o === e$51.ReactNode ? (0, import_jsx_runtime.jsxs)(`div`, {
|
|
45761
45601
|
className: `flex w-full flex-col gap-2`,
|
|
45762
45602
|
children: [(0, import_jsx_runtime.jsx)(`span`, { children: `(React Node)` }), (0, import_jsx_runtime.jsx)(`span`, {
|
|
45763
45603
|
className: `flex text-neutral text-xs`,
|
|
45764
45604
|
children: a
|
|
45765
45605
|
})]
|
|
45766
|
-
}) : o === e$
|
|
45606
|
+
}) : o === e$51.Nested ? (0, import_jsx_runtime.jsx)(Z, {
|
|
45767
45607
|
dictionary: n,
|
|
45768
45608
|
renderSection: r,
|
|
45769
45609
|
keyPath: t,
|
|
45770
45610
|
section: e
|
|
45771
|
-
}) : o === e$
|
|
45611
|
+
}) : o === e$51.Translation ? (0, import_jsx_runtime.jsx)(z, {
|
|
45772
45612
|
dictionary: n,
|
|
45773
45613
|
renderSection: r,
|
|
45774
45614
|
keyPath: t,
|
|
45775
45615
|
section: e
|
|
45776
|
-
}) : o === e$
|
|
45616
|
+
}) : o === e$51.Enumeration ? (0, import_jsx_runtime.jsx)(B, {
|
|
45777
45617
|
dictionary: n,
|
|
45778
45618
|
renderSection: r,
|
|
45779
45619
|
keyPath: t,
|
|
45780
45620
|
section: e
|
|
45781
|
-
}) : o === e$
|
|
45621
|
+
}) : o === e$51.Condition ? (0, import_jsx_runtime.jsx)(V, {
|
|
45782
45622
|
dictionary: n,
|
|
45783
45623
|
renderSection: r,
|
|
45784
45624
|
keyPath: t,
|
|
45785
45625
|
section: e
|
|
45786
|
-
}) : o === e$
|
|
45626
|
+
}) : o === e$51.Gender ? (0, import_jsx_runtime.jsx)(H, {
|
|
45787
45627
|
dictionary: n,
|
|
45788
45628
|
renderSection: r,
|
|
45789
45629
|
keyPath: t,
|
|
45790
45630
|
section: e
|
|
45791
|
-
}) : o === e$
|
|
45631
|
+
}) : o === e$51.Insertion ? (0, import_jsx_runtime.jsx)(Y, {
|
|
45792
45632
|
dictionary: n,
|
|
45793
45633
|
renderSection: r,
|
|
45794
45634
|
keyPath: t,
|
|
45795
45635
|
section: e
|
|
45796
|
-
}) : o === e$
|
|
45636
|
+
}) : o === e$51.Markdown ? (0, import_jsx_runtime.jsx)(J, {
|
|
45797
45637
|
dictionary: n,
|
|
45798
45638
|
keyPath: t,
|
|
45799
45639
|
section: e,
|
|
45800
45640
|
isDarkMode: i
|
|
45801
|
-
}) : o === e$
|
|
45641
|
+
}) : o === e$51.HTML ? (0, import_jsx_runtime.jsx)(q, {
|
|
45802
45642
|
dictionary: n,
|
|
45803
45643
|
keyPath: t,
|
|
45804
45644
|
section: e
|
|
45805
|
-
}) : o === e$
|
|
45645
|
+
}) : o === e$51.File ? (0, import_jsx_runtime.jsx)(X, {
|
|
45806
45646
|
dictionary: n,
|
|
45807
45647
|
renderSection: r,
|
|
45808
45648
|
keyPath: t,
|
|
45809
45649
|
section: e
|
|
45810
|
-
}) : o === e$
|
|
45650
|
+
}) : o === e$51.Array ? (0, import_jsx_runtime.jsx)(U, {
|
|
45811
45651
|
dictionary: n,
|
|
45812
45652
|
renderSection: r,
|
|
45813
45653
|
keyPath: t,
|
|
45814
45654
|
section: e
|
|
45815
|
-
}) : o === e$
|
|
45655
|
+
}) : o === e$51.Object ? (0, import_jsx_runtime.jsx)(W, {
|
|
45816
45656
|
dictionary: n,
|
|
45817
45657
|
renderSection: r,
|
|
45818
45658
|
keyPath: t,
|
|
45819
45659
|
section: e
|
|
45820
|
-
}) : o === e$
|
|
45660
|
+
}) : o === e$51.Number ? (0, import_jsx_runtime.jsx)(`div`, {
|
|
45821
45661
|
className: `w-full p-2`,
|
|
45822
45662
|
children: (0, import_jsx_runtime.jsx)(I, {
|
|
45823
45663
|
dictionary: n,
|
|
@@ -45826,7 +45666,7 @@ var q = ({ section: e, keyPath: t, dictionary: n }) => {
|
|
|
45826
45666
|
"aria-label": `Edit field`,
|
|
45827
45667
|
children: e
|
|
45828
45668
|
})
|
|
45829
|
-
}) : o === e$
|
|
45669
|
+
}) : o === e$51.Text ? (0, import_jsx_runtime.jsx)(`div`, {
|
|
45830
45670
|
className: `w-full p-2`,
|
|
45831
45671
|
children: typeof r == `function` ? r(e) : (0, import_jsx_runtime.jsx)(F, {
|
|
45832
45672
|
variant: i$59.DEFAULT,
|
|
@@ -45835,7 +45675,7 @@ var q = ({ section: e, keyPath: t, dictionary: n }) => {
|
|
|
45835
45675
|
dictionary: n,
|
|
45836
45676
|
children: e
|
|
45837
45677
|
})
|
|
45838
|
-
}) : o === e$
|
|
45678
|
+
}) : o === e$51.Boolean ? (0, import_jsx_runtime.jsx)(`div`, {
|
|
45839
45679
|
className: `w-full p-2`,
|
|
45840
45680
|
children: (0, import_jsx_runtime.jsx)(R, {
|
|
45841
45681
|
dictionary: n,
|
|
@@ -45852,7 +45692,7 @@ var q = ({ section: e, keyPath: t, dictionary: n }) => {
|
|
|
45852
45692
|
o
|
|
45853
45693
|
]
|
|
45854
45694
|
});
|
|
45855
|
-
}, $ = (e) => (0, import_jsx_runtime.jsx)(d$
|
|
45695
|
+
}, $ = (e) => (0, import_jsx_runtime.jsx)(d$24, {
|
|
45856
45696
|
border: !0,
|
|
45857
45697
|
background: `none`,
|
|
45858
45698
|
className: `top-6 flex h-full flex-1 flex-col gap-6 overflow-hidden p-2 md:sticky`,
|
|
@@ -45863,7 +45703,7 @@ var q = ({ section: e, keyPath: t, dictionary: n }) => {
|
|
|
45863
45703
|
//#region ../@intlayer/design-system/dist/esm/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs
|
|
45864
45704
|
var r$22 = ({ keyPath: r, dictionaryKey: i, onClickKeyPath: a, locale: o, color: s, showDictionaryKey: c = !0 }) => (0, import_jsx_runtime.jsx)(y$14, {
|
|
45865
45705
|
links: [...c ? [{
|
|
45866
|
-
text: e$
|
|
45706
|
+
text: e$11(i),
|
|
45867
45707
|
onClick: a ? () => a([]) : void 0
|
|
45868
45708
|
}] : [], ...r.map((e, t) => ({
|
|
45869
45709
|
onClick: a ? () => a?.(r.slice(0, t + 1)) : void 0,
|
|
@@ -45877,28 +45717,28 @@ var r$22 = ({ keyPath: r, dictionaryKey: i, onClickKeyPath: a, locale: o, color:
|
|
|
45877
45717
|
//#region ../@intlayer/design-system/dist/esm/components/DictionaryFieldEditor/getIsEditableSection.mjs
|
|
45878
45718
|
var r$21 = (i) => {
|
|
45879
45719
|
let a = t$61(i), o = i$38(i);
|
|
45880
|
-
return a && (o === e$
|
|
45720
|
+
return a && (o === e$51.ReactNode || o === e$51.File) ? !0 : a && typeof a.nodeType == `string` ? r$21(a[a.nodeType]) : typeof a == `string` || typeof a == `number` || typeof a == `boolean` || a === void 0;
|
|
45881
45721
|
}, C$2 = ({ section: S, keyPath: w, dictionary: T }) => {
|
|
45882
|
-
let { locales: E } = configuration_default.internationalization, D = t$64(S, w, r$61()), { addEditedContent: O } = r$57(), { setFocusedContentKeyPath: k, focusedContent: A } = o$34(), { addNewElement: j, goToField: M } = i$68(navigation_view_default), N = i$38(D), P = (e) => (A?.keyPath?.length ?? 0) > 0 && e$
|
|
45722
|
+
let { locales: E } = configuration_default.internationalization, D = t$64(S, w, r$61()), { addEditedContent: O } = r$57(), { setFocusedContentKeyPath: k, focusedContent: A } = o$34(), { addNewElement: j, goToField: M } = i$68(navigation_view_default), N = i$38(D), P = (e) => (A?.keyPath?.length ?? 0) > 0 && e$29(e, A?.keyPath ?? []), F = r$21(D);
|
|
45883
45723
|
return D ? F ? (0, import_jsx_runtime.jsx)(f$20, {
|
|
45884
45724
|
label: M.label.value,
|
|
45885
|
-
variant: c$
|
|
45725
|
+
variant: c$31.HOVERABLE,
|
|
45886
45726
|
color: l$27.TEXT,
|
|
45887
45727
|
className: `w-full`,
|
|
45888
45728
|
onClick: () => k(w),
|
|
45889
45729
|
IconRight: ChevronRight,
|
|
45890
|
-
children: e$
|
|
45891
|
-
}) : typeof D == `object` ? N === e$
|
|
45730
|
+
children: e$11(w[w.length - 1].key)
|
|
45731
|
+
}) : typeof D == `object` ? N === e$51.ReactNode ? (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: `React Node` }) : N === e$51.Translation ? (0, import_jsx_runtime.jsx)(`div`, {
|
|
45892
45732
|
className: `flex flex-col justify-between gap-2`,
|
|
45893
45733
|
children: E.map((e) => (0, import_jsx_runtime.jsx)(C$2, {
|
|
45894
45734
|
keyPath: [...w, {
|
|
45895
|
-
type: e$
|
|
45735
|
+
type: e$51.Translation,
|
|
45896
45736
|
key: e
|
|
45897
45737
|
}],
|
|
45898
45738
|
section: S,
|
|
45899
45739
|
dictionary: T
|
|
45900
45740
|
}, e))
|
|
45901
|
-
}) : N === e$
|
|
45741
|
+
}) : N === e$51.Enumeration || N === e$51.Condition ? (0, import_jsx_runtime.jsx)(`div`, {
|
|
45902
45742
|
className: `flex flex-col justify-between gap-2`,
|
|
45903
45743
|
children: Object.keys(D[N]).map((e) => (0, import_jsx_runtime.jsx)(C$2, {
|
|
45904
45744
|
keyPath: [...w, {
|
|
@@ -45908,25 +45748,25 @@ var r$21 = (i) => {
|
|
|
45908
45748
|
section: S,
|
|
45909
45749
|
dictionary: T
|
|
45910
45750
|
}, e))
|
|
45911
|
-
}) : N === e$
|
|
45751
|
+
}) : N === e$51.Array ? (0, import_jsx_runtime.jsxs)(`div`, {
|
|
45912
45752
|
className: `flex flex-col justify-between gap-2`,
|
|
45913
|
-
children: [D.map((n,
|
|
45753
|
+
children: [D.map((n, o) => {
|
|
45914
45754
|
let c = [...w, {
|
|
45915
|
-
type: e$
|
|
45916
|
-
key:
|
|
45755
|
+
type: e$51.Array,
|
|
45756
|
+
key: o
|
|
45917
45757
|
}];
|
|
45918
45758
|
return r$21(n) ? (0, import_jsx_runtime.jsxs)(f$20, {
|
|
45919
|
-
label: `${M.label.value} ${
|
|
45920
|
-
variant: c$
|
|
45759
|
+
label: `${M.label.value} ${o}`,
|
|
45760
|
+
variant: c$31.HOVERABLE,
|
|
45921
45761
|
color: l$27.TEXT,
|
|
45922
45762
|
className: `w-full`,
|
|
45923
45763
|
onClick: () => k(c),
|
|
45924
45764
|
IconRight: ChevronRight,
|
|
45925
45765
|
isActive: P(c),
|
|
45926
|
-
children: [`Item `,
|
|
45766
|
+
children: [`Item `, o]
|
|
45927
45767
|
}, JSON.stringify(c)) : (0, import_jsx_runtime.jsx)(u$28, {
|
|
45928
|
-
label: `${M.label.value} ${
|
|
45929
|
-
header: `Item ${
|
|
45768
|
+
label: `${M.label.value} ${o}`,
|
|
45769
|
+
header: `Item ${o}`,
|
|
45930
45770
|
isActive: P(c),
|
|
45931
45771
|
onClick: () => k(c),
|
|
45932
45772
|
children: (0, import_jsx_runtime.jsx)(`div`, {
|
|
@@ -45943,12 +45783,12 @@ var r$21 = (i) => {
|
|
|
45943
45783
|
}, JSON.stringify(c));
|
|
45944
45784
|
}), (0, import_jsx_runtime.jsx)(f$20, {
|
|
45945
45785
|
label: j.label.value,
|
|
45946
|
-
variant: c$
|
|
45786
|
+
variant: c$31.HOVERABLE,
|
|
45947
45787
|
color: l$27.NEUTRAL,
|
|
45948
45788
|
textAlign: u$29.LEFT,
|
|
45949
45789
|
onClick: () => {
|
|
45950
45790
|
let e = [...w, {
|
|
45951
|
-
type: e$
|
|
45791
|
+
type: e$51.Array,
|
|
45952
45792
|
key: D.length
|
|
45953
45793
|
}], t = D, n = t$62(t[t.length - 1]) ?? ``;
|
|
45954
45794
|
O(T.localId, n, e, !1), k(e);
|
|
@@ -45963,30 +45803,30 @@ var r$21 = (i) => {
|
|
|
45963
45803
|
}) : (0, import_jsx_runtime.jsx)(`div`, {
|
|
45964
45804
|
className: `flex w-full max-w-full flex-col justify-between gap-2`,
|
|
45965
45805
|
children: Object.keys(D).map((n) => {
|
|
45966
|
-
let
|
|
45967
|
-
type: e$
|
|
45806
|
+
let o = [...w, {
|
|
45807
|
+
type: e$51.Object,
|
|
45968
45808
|
key: n
|
|
45969
45809
|
}];
|
|
45970
|
-
return r$21(t$64(S,
|
|
45810
|
+
return r$21(t$64(S, o)) ? (0, import_jsx_runtime.jsx)(f$20, {
|
|
45971
45811
|
label: `${M.label.value} ${n}`,
|
|
45972
|
-
isActive: P(
|
|
45973
|
-
variant: c$
|
|
45812
|
+
isActive: P(o),
|
|
45813
|
+
variant: c$31.HOVERABLE,
|
|
45974
45814
|
color: l$27.TEXT,
|
|
45975
45815
|
className: `w-full`,
|
|
45976
|
-
onClick: () => k(
|
|
45816
|
+
onClick: () => k(o),
|
|
45977
45817
|
IconRight: ChevronRight,
|
|
45978
|
-
children: e$
|
|
45818
|
+
children: e$11(n)
|
|
45979
45819
|
}, n) : (0, import_jsx_runtime.jsx)(u$28, {
|
|
45980
45820
|
label: `${M.label.value} ${n}`,
|
|
45981
|
-
isActive: P(
|
|
45982
|
-
onClick: () => k(
|
|
45983
|
-
header: e$
|
|
45821
|
+
isActive: P(o),
|
|
45822
|
+
onClick: () => k(o),
|
|
45823
|
+
header: e$11(n),
|
|
45984
45824
|
children: (0, import_jsx_runtime.jsx)(`div`, {
|
|
45985
45825
|
className: `mt-2 flex w-full max-w-full`,
|
|
45986
45826
|
children: (0, import_jsx_runtime.jsx)(`div`, {
|
|
45987
45827
|
className: `flex-1 pl-10`,
|
|
45988
45828
|
children: (0, import_jsx_runtime.jsx)(C$2, {
|
|
45989
|
-
keyPath:
|
|
45829
|
+
keyPath: o,
|
|
45990
45830
|
section: S,
|
|
45991
45831
|
dictionary: T
|
|
45992
45832
|
})
|
|
@@ -46021,7 +45861,7 @@ var p$3 = ({ dictionary: p, isDarkMode: m }) => {
|
|
|
46021
45861
|
})]
|
|
46022
45862
|
}), (0, import_jsx_runtime.jsxs)(`div`, {
|
|
46023
45863
|
className: `flex flex-1 gap-2 overflow-visible max-md:flex-col`,
|
|
46024
|
-
children: [typeof S == `object` && S && !T && Object.keys(S).length > 0 && (0, import_jsx_runtime.jsx)(d$
|
|
45864
|
+
children: [typeof S == `object` && S && !T && Object.keys(S).length > 0 && (0, import_jsx_runtime.jsx)(d$24, {
|
|
46025
45865
|
border: !0,
|
|
46026
45866
|
background: `none`,
|
|
46027
45867
|
className: `top-30 flex h-full flex-col items-start gap-0.5 overflow-auto p-2 md:sticky md:max-w-[50%]`,
|
|
@@ -51123,7 +50963,7 @@ var r$8 = (r) => (0, import_jsx_runtime.jsx)(o$6, {
|
|
|
51123
50963
|
});
|
|
51124
50964
|
//#endregion
|
|
51125
50965
|
//#region ../@intlayer/design-system/dist/esm/components/Form/elements/CheckboxElement.mjs
|
|
51126
|
-
var r$7 = ({ inputLabel: t, value: r, onChange: i, ...a }) => (0, import_jsx_runtime.jsx)(c$
|
|
50966
|
+
var r$7 = ({ inputLabel: t, value: r, onChange: i, ...a }) => (0, import_jsx_runtime.jsx)(c$27, {
|
|
51127
50967
|
...a,
|
|
51128
50968
|
label: t,
|
|
51129
50969
|
checked: !!r,
|
|
@@ -52008,7 +51848,7 @@ var S$1 = ({ dictionary: S, mode: C, className: w, onDelete: T, onSave: E, ...D
|
|
|
52008
51848
|
disabled: !J || L,
|
|
52009
51849
|
color: l$27.TEXT,
|
|
52010
51850
|
className: `max-md:w-full`,
|
|
52011
|
-
variant: c$
|
|
51851
|
+
variant: c$31.OUTLINE,
|
|
52012
51852
|
onClick: () => k(!1),
|
|
52013
51853
|
children: G.cancelButton.text
|
|
52014
51854
|
}), (0, import_jsx_runtime.jsx)(x$1.Button, {
|
|
@@ -52031,7 +51871,7 @@ var S$1 = ({ dictionary: S, mode: C, className: w, onDelete: T, onSave: E, ...D
|
|
|
52031
51871
|
label: B.label.value,
|
|
52032
51872
|
Icon: Trash,
|
|
52033
51873
|
color: l$27.ERROR,
|
|
52034
|
-
variant: c$
|
|
51874
|
+
variant: c$31.OUTLINE,
|
|
52035
51875
|
className: `max-md:w-full`,
|
|
52036
51876
|
isLoading: M,
|
|
52037
51877
|
onClick: Q,
|
|
@@ -52041,7 +51881,7 @@ var S$1 = ({ dictionary: S, mode: C, className: w, onDelete: T, onSave: E, ...D
|
|
|
52041
51881
|
label: V.label.value,
|
|
52042
51882
|
disabled: !J,
|
|
52043
51883
|
Icon: RotateCcw,
|
|
52044
|
-
variant: c$
|
|
51884
|
+
variant: c$31.OUTLINE,
|
|
52045
51885
|
color: l$27.TEXT,
|
|
52046
51886
|
className: `max-md:w-full`,
|
|
52047
51887
|
onClick: () => z(S.localId),
|
|
@@ -52052,7 +51892,7 @@ var S$1 = ({ dictionary: S, mode: C, className: w, onDelete: T, onSave: E, ...D
|
|
|
52052
51892
|
disabled: !J || L,
|
|
52053
51893
|
Icon: Download,
|
|
52054
51894
|
color: l$27.TEXT,
|
|
52055
|
-
variant: K ? c$
|
|
51895
|
+
variant: K ? c$31.OUTLINE : c$31.DEFAULT,
|
|
52056
51896
|
className: `max-md:w-full`,
|
|
52057
51897
|
isLoading: P,
|
|
52058
51898
|
onClick: () => k(!0),
|
|
@@ -52274,7 +52114,7 @@ var C$1 = ({ dictionary: C, mode: w }) => {
|
|
|
52274
52114
|
control: N.control,
|
|
52275
52115
|
name: `location`,
|
|
52276
52116
|
render: ({ field: e }) => {
|
|
52277
|
-
let t = e.value, n = t === `local` || t === `hybrid`, r = t === `remote` || t === `hybrid`,
|
|
52117
|
+
let t = e.value, n = t === `local` || t === `hybrid`, r = t === `remote` || t === `hybrid`, i = (t) => {
|
|
52278
52118
|
if (!t && !r) return;
|
|
52279
52119
|
let n = t ? r ? `hybrid` : `local` : `remote`;
|
|
52280
52120
|
e.onChange(n);
|
|
@@ -52285,7 +52125,7 @@ var C$1 = ({ dictionary: C, mode: w }) => {
|
|
|
52285
52125
|
location: n,
|
|
52286
52126
|
filePath: i
|
|
52287
52127
|
}));
|
|
52288
|
-
},
|
|
52128
|
+
}, a = (t) => {
|
|
52289
52129
|
if (!t && !n) return;
|
|
52290
52130
|
let r = t ? n ? `hybrid` : `remote` : `local`;
|
|
52291
52131
|
e.onChange(r), I((e) => ({
|
|
@@ -52303,20 +52143,20 @@ var C$1 = ({ dictionary: C, mode: w }) => {
|
|
|
52303
52143
|
}),
|
|
52304
52144
|
(0, import_jsx_runtime.jsxs)(`div`, {
|
|
52305
52145
|
className: `ml-2 flex items-center gap-4 py-2`,
|
|
52306
|
-
children: [(0, import_jsx_runtime.jsx)(c$
|
|
52146
|
+
children: [(0, import_jsx_runtime.jsx)(c$27, {
|
|
52307
52147
|
id: `location-local`,
|
|
52308
52148
|
name: `location-local`,
|
|
52309
52149
|
label: H.local.value,
|
|
52310
52150
|
checked: n,
|
|
52311
52151
|
disabled: !w.includes(`local`) && !w.includes(`remote`),
|
|
52312
|
-
onChange: (e) =>
|
|
52313
|
-
}), (0, import_jsx_runtime.jsx)(c$
|
|
52152
|
+
onChange: (e) => i(e.target.checked)
|
|
52153
|
+
}), (0, import_jsx_runtime.jsx)(c$27, {
|
|
52314
52154
|
id: `location-remote`,
|
|
52315
52155
|
name: `location-remote`,
|
|
52316
52156
|
label: H.remote.value,
|
|
52317
52157
|
checked: r,
|
|
52318
52158
|
disabled: !w.includes(`remote`) && C.location !== `remote` && C.location !== `hybrid`,
|
|
52319
|
-
onChange: (e) =>
|
|
52159
|
+
onChange: (e) => a(e.target.checked)
|
|
52320
52160
|
})]
|
|
52321
52161
|
}),
|
|
52322
52162
|
(0, import_jsx_runtime.jsx)(x$1.Description, { children: H.testDescription }),
|
|
@@ -52443,7 +52283,7 @@ var C$1 = ({ dictionary: C, mode: w }) => {
|
|
|
52443
52283
|
size: o$56.ICON_MD,
|
|
52444
52284
|
label: G.label.value,
|
|
52445
52285
|
Icon: WandSparkles,
|
|
52446
|
-
variant: c$
|
|
52286
|
+
variant: c$31.OUTLINE,
|
|
52447
52287
|
color: l$27.TEXT,
|
|
52448
52288
|
className: `max-md:w-full`,
|
|
52449
52289
|
onClick: Y,
|
|
@@ -52456,7 +52296,7 @@ var C$1 = ({ dictionary: C, mode: w }) => {
|
|
|
52456
52296
|
};
|
|
52457
52297
|
//#endregion
|
|
52458
52298
|
//#region ../@intlayer/design-system/dist/esm/components/IDE/MonacoCode.mjs
|
|
52459
|
-
var l$1 = (0, import_react.lazy)(() => __vitePreload(() => import("./dist-
|
|
52299
|
+
var l$1 = (0, import_react.lazy)(() => __vitePreload(() => import("./dist-DV8htl3g.js").then((e) => ({ default: e.Editor })), __vite__mapDeps([3,1,2]))), u$1 = ({ children: i, language: u, isDarkMode: d, showLineNumbers: f, showCopyButton: p = !0, isReadOnly: m = !1, onChange: h }) => {
|
|
52460
52300
|
let g = (0, import_react.useRef)(null), _ = (0, import_react.useRef)(null), [v, y] = (0, import_react.useState)({
|
|
52461
52301
|
height: 0,
|
|
52462
52302
|
width: 0
|
|
@@ -52911,60 +52751,60 @@ var s$2 = ({ section: s, onValueChange: c }) => {
|
|
|
52911
52751
|
},
|
|
52912
52752
|
children: [(0, import_jsx_runtime.jsx)(y$5.Trigger, { children: (0, import_jsx_runtime.jsx)(y$5.Value, { placeholder: g }) }), (0, import_jsx_runtime.jsxs)(y$5.Content, { children: [
|
|
52913
52753
|
(0, import_jsx_runtime.jsx)(y$5.Item, {
|
|
52914
|
-
value: e$
|
|
52754
|
+
value: e$51.Translation,
|
|
52915
52755
|
children: l
|
|
52916
52756
|
}),
|
|
52917
52757
|
(0, import_jsx_runtime.jsx)(y$5.Item, {
|
|
52918
|
-
value: e$
|
|
52758
|
+
value: e$51.Text,
|
|
52919
52759
|
children: u
|
|
52920
52760
|
}),
|
|
52921
52761
|
(0, import_jsx_runtime.jsx)(y$5.Item, {
|
|
52922
|
-
value: e$
|
|
52762
|
+
value: e$51.Number,
|
|
52923
52763
|
children: d
|
|
52924
52764
|
}),
|
|
52925
52765
|
(0, import_jsx_runtime.jsx)(y$5.Item, {
|
|
52926
|
-
value: e$
|
|
52766
|
+
value: e$51.Boolean,
|
|
52927
52767
|
children: f
|
|
52928
52768
|
}),
|
|
52929
52769
|
(0, import_jsx_runtime.jsx)(y$5.Item, {
|
|
52930
|
-
value: e$
|
|
52770
|
+
value: e$51.Object,
|
|
52931
52771
|
children: p
|
|
52932
52772
|
}),
|
|
52933
52773
|
(0, import_jsx_runtime.jsx)(y$5.Item, {
|
|
52934
|
-
value: e$
|
|
52774
|
+
value: e$51.Array,
|
|
52935
52775
|
children: m
|
|
52936
52776
|
}),
|
|
52937
52777
|
(0, import_jsx_runtime.jsx)(y$5.Item, {
|
|
52938
|
-
value: e$
|
|
52778
|
+
value: e$51.Enumeration,
|
|
52939
52779
|
children: h
|
|
52940
52780
|
}),
|
|
52941
52781
|
(0, import_jsx_runtime.jsx)(y$5.Item, {
|
|
52942
|
-
value: e$
|
|
52782
|
+
value: e$51.Gender,
|
|
52943
52783
|
children: v
|
|
52944
52784
|
}),
|
|
52945
52785
|
(0, import_jsx_runtime.jsx)(y$5.Item, {
|
|
52946
|
-
value: e$
|
|
52786
|
+
value: e$51.Insertion,
|
|
52947
52787
|
children: x
|
|
52948
52788
|
}),
|
|
52949
52789
|
(0, import_jsx_runtime.jsx)(y$5.Item, {
|
|
52950
|
-
value: e$
|
|
52790
|
+
value: e$51.Markdown,
|
|
52951
52791
|
children: b
|
|
52952
52792
|
}),
|
|
52953
52793
|
(0, import_jsx_runtime.jsx)(y$5.Item, {
|
|
52954
|
-
value: e$
|
|
52794
|
+
value: e$51.Nested,
|
|
52955
52795
|
children: _
|
|
52956
52796
|
}),
|
|
52957
52797
|
(0, import_jsx_runtime.jsx)(y$5.Item, {
|
|
52958
|
-
value: e$
|
|
52798
|
+
value: e$51.Condition,
|
|
52959
52799
|
children: y
|
|
52960
52800
|
}),
|
|
52961
52801
|
(0, import_jsx_runtime.jsx)(y$5.Item, {
|
|
52962
|
-
value: e$
|
|
52802
|
+
value: e$51.ReactNode,
|
|
52963
52803
|
disabled: !0,
|
|
52964
52804
|
children: S
|
|
52965
52805
|
}),
|
|
52966
52806
|
(0, import_jsx_runtime.jsx)(y$5.Item, {
|
|
52967
|
-
value: e$
|
|
52807
|
+
value: e$51.File,
|
|
52968
52808
|
children: C
|
|
52969
52809
|
})
|
|
52970
52810
|
] })]
|
|
@@ -52976,7 +52816,7 @@ var C = ({ section: e, dictionaryLocalId: t, keyPath: n, onNodeTypeChange: r })
|
|
|
52976
52816
|
let i = i$35()?.internationalization.locales ?? [], a = i$38(e), o = t$61(e), c = (e) => {
|
|
52977
52817
|
r(t$63(a, i, e));
|
|
52978
52818
|
};
|
|
52979
|
-
if (a === e$
|
|
52819
|
+
if (a === e$51.Translation || a === e$51.Condition || a === e$51.Gender || a === e$51.Enumeration) {
|
|
52980
52820
|
let l = Object.keys(e[a])[0], u = [...n, {
|
|
52981
52821
|
type: a,
|
|
52982
52822
|
key: l
|
|
@@ -52994,7 +52834,7 @@ var C = ({ section: e, dictionaryLocalId: t, keyPath: n, onNodeTypeChange: r })
|
|
|
52994
52834
|
})]
|
|
52995
52835
|
});
|
|
52996
52836
|
}
|
|
52997
|
-
if (a === e$
|
|
52837
|
+
if (a === e$51.Array) {
|
|
52998
52838
|
let l = [...n, {
|
|
52999
52839
|
type: a,
|
|
53000
52840
|
key: 0
|
|
@@ -53012,7 +52852,7 @@ var C = ({ section: e, dictionaryLocalId: t, keyPath: n, onNodeTypeChange: r })
|
|
|
53012
52852
|
})]
|
|
53013
52853
|
});
|
|
53014
52854
|
}
|
|
53015
|
-
return a === e$
|
|
52855
|
+
return a === e$51.Object ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [(0, import_jsx_runtime.jsx)(s$2, {
|
|
53016
52856
|
section: e,
|
|
53017
52857
|
onValueChange: (e) => r(t$63(e, i))
|
|
53018
52858
|
}), (0, import_jsx_runtime.jsx)(`div`, {
|
|
@@ -53026,24 +52866,24 @@ var C = ({ section: e, dictionaryLocalId: t, keyPath: n, onNodeTypeChange: r })
|
|
|
53026
52866
|
section: e,
|
|
53027
52867
|
onValueChange: (e) => r(t$63(e, i))
|
|
53028
52868
|
});
|
|
53029
|
-
}, w = ({ sectionKey: s, section: c, keyPath: u, dictionaryLocalId:
|
|
53030
|
-
let { focusedContent:
|
|
53031
|
-
|
|
52869
|
+
}, w = ({ sectionKey: s, section: c, keyPath: u, dictionaryLocalId: p }) => {
|
|
52870
|
+
let { focusedContent: _, setFocusedContentKeyPath: v } = o$34(), { renameEditedContent: y, addEditedContent: b } = r$57(), { titleInput: w, deleteButton: T } = i$68(structure_view_default), E = (e) => {
|
|
52871
|
+
y(p, e, u);
|
|
53032
52872
|
let t = u.slice(0, -1), n = u[u.length - 1];
|
|
53033
|
-
|
|
52873
|
+
v([...t, {
|
|
53034
52874
|
...n,
|
|
53035
52875
|
key: e
|
|
53036
52876
|
}]);
|
|
53037
52877
|
};
|
|
53038
|
-
return (0, import_jsx_runtime.jsx)(d$
|
|
52878
|
+
return (0, import_jsx_runtime.jsx)(d$24, {
|
|
53039
52879
|
transparency: `xl`,
|
|
53040
52880
|
roundedSize: `xl`,
|
|
53041
52881
|
className: `w-full min-w-80 gap-2 overflow-auto px-5 py-2`,
|
|
53042
52882
|
border: !0,
|
|
53043
52883
|
borderColor: `text`,
|
|
53044
52884
|
background: `none`,
|
|
53045
|
-
"aria-selected": e$
|
|
53046
|
-
onClick: () =>
|
|
52885
|
+
"aria-selected": e$29(u, _?.keyPath ?? []),
|
|
52886
|
+
onClick: () => v(u),
|
|
53047
52887
|
children: (0, import_jsx_runtime.jsxs)(`div`, {
|
|
53048
52888
|
className: `flex w-full flex-col items-start justify-between gap-3`,
|
|
53049
52889
|
children: [typeof s == `string` && (0, import_jsx_runtime.jsxs)(`div`, {
|
|
@@ -53059,29 +52899,29 @@ var C = ({ section: e, dictionaryLocalId: t, keyPath: n, onNodeTypeChange: r })
|
|
|
53059
52899
|
variant: i$59.INVISIBLE
|
|
53060
52900
|
}), (0, import_jsx_runtime.jsx)(f$20, {
|
|
53061
52901
|
label: T.label.value,
|
|
53062
|
-
variant: c$
|
|
52902
|
+
variant: c$31.HOVERABLE,
|
|
53063
52903
|
size: o$56.ICON_SM,
|
|
53064
52904
|
color: l$27.TEXT,
|
|
53065
52905
|
className: `translate-x-2`,
|
|
53066
52906
|
Icon: Trash,
|
|
53067
52907
|
onClick: () => {
|
|
53068
|
-
|
|
52908
|
+
b(p, void 0, u), v(u.slice(0, -1));
|
|
53069
52909
|
}
|
|
53070
52910
|
})]
|
|
53071
52911
|
}), (0, import_jsx_runtime.jsxs)(`span`, {
|
|
53072
52912
|
className: `ml-3 text-neutral text-sm`,
|
|
53073
52913
|
children: [
|
|
53074
52914
|
`( `,
|
|
53075
|
-
e$
|
|
52915
|
+
e$11(s),
|
|
53076
52916
|
` )`
|
|
53077
52917
|
]
|
|
53078
52918
|
})]
|
|
53079
52919
|
}), (0, import_jsx_runtime.jsx)(C, {
|
|
53080
52920
|
keyPath: u,
|
|
53081
|
-
dictionaryLocalId:
|
|
52921
|
+
dictionaryLocalId: p,
|
|
53082
52922
|
section: c,
|
|
53083
52923
|
onNodeTypeChange: (e) => {
|
|
53084
|
-
|
|
52924
|
+
b(p, e, u);
|
|
53085
52925
|
}
|
|
53086
52926
|
})]
|
|
53087
52927
|
})
|
|
@@ -53098,7 +52938,7 @@ var C = ({ section: e, dictionaryLocalId: t, keyPath: n, onNodeTypeChange: r })
|
|
|
53098
52938
|
sectionKey: t,
|
|
53099
52939
|
section: e?.[t],
|
|
53100
52940
|
keyPath: [...a, {
|
|
53101
|
-
type: e$
|
|
52941
|
+
type: e$51.Object,
|
|
53102
52942
|
key: t
|
|
53103
52943
|
}],
|
|
53104
52944
|
dictionaryLocalId: o
|
|
@@ -53106,14 +52946,14 @@ var C = ({ section: e, dictionaryLocalId: t, keyPath: n, onNodeTypeChange: r })
|
|
|
53106
52946
|
}, `${JSON.stringify(a)}-object-${t}`))
|
|
53107
52947
|
}), (0, import_jsx_runtime.jsx)(f$20, {
|
|
53108
52948
|
label: s.label.value,
|
|
53109
|
-
variant: c$
|
|
52949
|
+
variant: c$31.HOVERABLE,
|
|
53110
52950
|
size: o$56.MD,
|
|
53111
52951
|
color: l$27.TEXT,
|
|
53112
52952
|
Icon: Plus,
|
|
53113
52953
|
className: `flex-1`,
|
|
53114
52954
|
onClick: () => {
|
|
53115
52955
|
let e = [...a, {
|
|
53116
|
-
type: e$
|
|
52956
|
+
type: e$51.Object,
|
|
53117
52957
|
key: `newKey`
|
|
53118
52958
|
}];
|
|
53119
52959
|
u(o, ``, e), l(e);
|
|
@@ -53158,7 +52998,7 @@ var y$1 = ({ dictionary: y, onClickDictionaryList: b, isDarkMode: x, mode: S, on
|
|
|
53158
52998
|
children: [
|
|
53159
52999
|
T && (0, import_jsx_runtime.jsx)(f$20, {
|
|
53160
53000
|
onClick: b,
|
|
53161
|
-
variant: c$
|
|
53001
|
+
variant: c$31.HOVERABLE,
|
|
53162
53002
|
className: `z-10 mr-auto mb-6 ml-5 shrink-0`,
|
|
53163
53003
|
color: l$27.TEXT,
|
|
53164
53004
|
Icon: ArrowLeft,
|
|
@@ -53390,7 +53230,7 @@ var S = ({ title: S, identifier: C, children: w, header: T, footer: E, closeOnOu
|
|
|
53390
53230
|
children: (0, import_jsx_runtime.jsx)(n$3, {
|
|
53391
53231
|
isHidden: !V,
|
|
53392
53232
|
align: `right`,
|
|
53393
|
-
children: (0, import_jsx_runtime.jsxs)(d$
|
|
53233
|
+
children: (0, import_jsx_runtime.jsxs)(d$24, {
|
|
53394
53234
|
className: `relative flex h-screen w-screen flex-col text-text md:w-[400px]`,
|
|
53395
53235
|
ref: P,
|
|
53396
53236
|
roundedSize: `none`,
|
|
@@ -53401,7 +53241,7 @@ var S = ({ title: S, identifier: C, children: w, header: T, footer: E, closeOnOu
|
|
|
53401
53241
|
(0, import_jsx_runtime.jsxs)(`div`, {
|
|
53402
53242
|
className: `flex justify-between gap-3`,
|
|
53403
53243
|
children: [(0, import_jsx_runtime.jsx)(`div`, { children: O && (0, import_jsx_runtime.jsx)(f$20, {
|
|
53404
|
-
variant: c$
|
|
53244
|
+
variant: c$31.HOVERABLE,
|
|
53405
53245
|
color: l$27.TEXT,
|
|
53406
53246
|
label: O.text ?? M.goBack.value,
|
|
53407
53247
|
onClick: O.onBack,
|
|
@@ -53410,7 +53250,7 @@ var S = ({ title: S, identifier: C, children: w, header: T, footer: E, closeOnOu
|
|
|
53410
53250
|
}) }), (0, import_jsx_runtime.jsx)(`div`, { children: (0, import_jsx_runtime.jsxs)(u$23, {
|
|
53411
53251
|
identifier: `close-drawer`,
|
|
53412
53252
|
children: [(0, import_jsx_runtime.jsx)(f$20, {
|
|
53413
|
-
variant: c$
|
|
53253
|
+
variant: c$31.HOVERABLE,
|
|
53414
53254
|
color: l$27.TEXT,
|
|
53415
53255
|
label: `Close`,
|
|
53416
53256
|
className: `ml-auto`,
|
|
@@ -54239,7 +54079,7 @@ var cn = (...inputs) => twMerge(clsx(inputs));
|
|
|
54239
54079
|
//#region client/src/components/Editor/LongPressMessage/index.tsx
|
|
54240
54080
|
var LongPressMessage = () => {
|
|
54241
54081
|
const { message } = i$68(long_press_message_default);
|
|
54242
|
-
const [hoveredContent] = a$34(e$
|
|
54082
|
+
const [hoveredContent] = a$34(e$22.INTLAYER_HOVERED_CONTENT_CHANGED, null);
|
|
54243
54083
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
54244
54084
|
className: cn("rounded-2xl bg-neutral/30 px-3 py-1 font-bold text-sm text-text transition-opacity duration-100", hoveredContent?.dictionaryKey ? "opacity-100" : "opacity-0"),
|
|
54245
54085
|
children: hoveredContent?.dictionaryKey ? message({ dictionaryKey: hoveredContent.dictionaryKey }) : ""
|
|
@@ -54519,7 +54359,7 @@ var IframeController = ({ iframeRef, applicationPath }) => {
|
|
|
54519
54359
|
const content = i$68(iframe_controller_default);
|
|
54520
54360
|
const { editor } = i$35() ?? {};
|
|
54521
54361
|
const { enabled } = i$33();
|
|
54522
|
-
const pingClient = c$
|
|
54362
|
+
const pingClient = c$16();
|
|
54523
54363
|
useEditedContentPersistence();
|
|
54524
54364
|
i$32();
|
|
54525
54365
|
const [loading, setLoading] = (0, import_react.useState)(true);
|
|
@@ -54538,7 +54378,7 @@ var IframeController = ({ iframeRef, applicationPath }) => {
|
|
|
54538
54378
|
*/
|
|
54539
54379
|
window.history.replaceState({}, "", iframePath);
|
|
54540
54380
|
}, [iframePath]);
|
|
54541
|
-
if (!editor?.applicationURL) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(d$
|
|
54381
|
+
if (!editor?.applicationURL) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(d$24, {
|
|
54542
54382
|
className: "max-w-xl",
|
|
54543
54383
|
padding: "xl",
|
|
54544
54384
|
roundedSize: "2xl",
|