intlayer-editor 8.4.2 → 8.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/dist/assets/{CodeBlockShiki-BQ0Urv39.js → CodeBlockShiki-DWls2qRj.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-Cg9hBSjQ.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-1h009QuF.js} +615 -775
- 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-DWls2qRj.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,41 +9719,36 @@ var configuration_default = {
|
|
|
9720
9719
|
},
|
|
9721
9720
|
metadata: {
|
|
9722
9721
|
"name": "Intlayer",
|
|
9723
|
-
"version": "8.4.
|
|
9722
|
+
"version": "8.4.4",
|
|
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$47 = (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$47(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$31 = (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 = {};
|
|
9754
9748
|
var getDictionaries = () => dictionaries;
|
|
9755
9749
|
//#endregion
|
|
9756
9750
|
//#region ../@intlayer/core/dist/esm/getContent-DKqtIZGL.mjs
|
|
9757
|
-
var d$
|
|
9751
|
+
var d$30 = (e, t, n = S$13(t)) => {
|
|
9758
9752
|
let r = {
|
|
9759
9753
|
dictionaryKey: e.key,
|
|
9760
9754
|
dictionaryPath: e.filePath,
|
|
@@ -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$
|
|
9767
|
+
return r ? d$30(r, t, n) : (d$31(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$45 = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, l$39 = /^(?:\n *)*\n/, u$38 = /\r\n?/g, d$29 = /^\[\^([^\]]+)](:(.*)((\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$45),
|
|
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
|
-
_match: P$5(d$
|
|
10715
|
-
_order: t$
|
|
10708
|
+
_match: P$5(d$29),
|
|
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$44 = (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$44, 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$30(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$42,
|
|
11559
11446
|
ARABIC_KUWAIT: () => l$37,
|
|
11560
11447
|
ARABIC_LEBANON: () => u$36,
|
|
11561
|
-
ARABIC_LIBYA: () => d$
|
|
11448
|
+
ARABIC_LIBYA: () => d$27,
|
|
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$42 = `ar-JO`, l$37 = `ar-KW`, u$36 = `ar-LB`, d$27 = `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$41 = (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$41(t)), t) : l$36(t, c$41(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$42:
|
|
12130
11963
|
case l$37:
|
|
12131
11964
|
case u$36:
|
|
12132
|
-
case d$
|
|
12133
|
-
case f$
|
|
12134
|
-
case p$
|
|
11965
|
+
case d$27:
|
|
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
|
});
|
|
@@ -12393,7 +12226,7 @@ var __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
|
12393
12226
|
//#region ../react-intlayer/dist/esm/client/useDictionary.mjs
|
|
12394
12227
|
var i$68 = (i, a) => {
|
|
12395
12228
|
let { locale: o } = (0, import_react.useContext)(d$26);
|
|
12396
|
-
return (0, import_react.useMemo)(() => n$
|
|
12229
|
+
return (0, import_react.useMemo)(() => n$102(i, a ?? o), [
|
|
12397
12230
|
i.key,
|
|
12398
12231
|
o,
|
|
12399
12232
|
a
|
|
@@ -18766,7 +18599,7 @@ var p$21 = cva(`gap-3 transition-all duration-300 focus-visible:outline-none dis
|
|
|
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
18600
|
let { variant: n = c$29.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$29.BUTTON || n === c$29.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,
|
|
@@ -18842,7 +18675,7 @@ var m$19 = (e) => e && {
|
|
|
18842
18675
|
spacing: `normal`
|
|
18843
18676
|
}
|
|
18844
18677
|
}), g$13 = ({ href: e, lang: t, children: n, onClick: i, color: a, position: o, locale: s, className: c, ...p }) => {
|
|
18845
|
-
let m = d$
|
|
18678
|
+
let m = d$30(breadcrumb_default).linkLabel;
|
|
18846
18679
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [(0, import_jsx_runtime.jsx)(g$14, {
|
|
18847
18680
|
href: e,
|
|
18848
18681
|
locale: s,
|
|
@@ -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$20 = e$
|
|
24103
|
+
}, c$20 = 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$19 = a$36.trustedTypes, l$17 = c$19 ? c$19.emptyScript : "", p$15 = a$36.reactiveElementPolyfillSupport, d$15 = (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) {
|
|
@@ -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$18 = () => l$16.createComment(""), a$35 = (t) => null === t || "object" != typeof t && "function" != typeof t, u$17 = Array.isArray, d$14 = (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 = [];
|
|
@@ -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,12 +24706,12 @@ 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
|
};
|
|
@@ -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,13 +24829,13 @@ 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$13.prototype, `keyPathJson`, void 0), e$
|
|
24835
|
+
})], d$13.prototype, `keyPathJson`, void 0), e$19([n$66({
|
|
25003
24836
|
type: String,
|
|
25004
24837
|
attribute: `dictionary-key`
|
|
25005
|
-
})], d$13.prototype, `dictionaryKey`, void 0), e$
|
|
24838
|
+
})], d$13.prototype, `dictionaryKey`, void 0), e$19([r$66()], d$13.prototype, `_editorEnabled`, void 0), e$19([r$66()], d$13.prototype, `_isInIframe`, void 0), e$19([r$66()], d$13.prototype, `_isSelected`, void 0), e$19([r$66()], d$13.prototype, `_editedValue`, void 0);
|
|
25006
24839
|
var f$11 = () => {
|
|
25007
24840
|
typeof customElements > `u` || customElements.get(`intlayer-content-selector-wrapper`) || customElements.define(`intlayer-content-selector-wrapper`, d$13);
|
|
25008
24841
|
};
|
|
@@ -25078,16 +24911,16 @@ 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$
|
|
24923
|
+
})], u$16.prototype, `locale`, void 0), e$19([r$66()], u$16.prototype, `_editedText`, void 0);
|
|
25091
24924
|
var d$12 = () => {
|
|
25092
24925
|
typeof customElements > `u` || customElements.get(`intlayer-edited-content`) || customElements.define(`intlayer-edited-content`, u$16);
|
|
25093
24926
|
};
|
|
@@ -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,13 +25492,13 @@ 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
25503
|
typeof customElements > `u` || (customElements.get(`intlayer-content-selector`) || customElements.define(`intlayer-content-selector`, b$6), f$11(), d$12(), y$10());
|
|
25671
25504
|
};
|
|
@@ -25674,7 +25507,7 @@ var x$7 = () => {
|
|
|
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 = () => {
|
|
@@ -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);
|
|
@@ -28489,7 +28322,7 @@ var s$26 = (n) => createAuthClient({
|
|
|
28489
28322
|
]
|
|
28490
28323
|
}), c$16 = (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.`));
|
|
@@ -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, {
|
|
@@ -30683,11 +30523,11 @@ 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
30533
|
variant: c$32.HOVERABLE,
|
|
@@ -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`,
|
|
@@ -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-DWls2qRj.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, {
|
|
@@ -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$23), x$3 = ({ children:
|
|
44371
|
+
}, b$1 = motion.create(d$23), 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`,
|
|
@@ -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
|
})
|
|
@@ -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
|
|
@@ -45296,11 +45136,11 @@ 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`,
|
|
@@ -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
|
})
|
|
@@ -45427,13 +45267,13 @@ var s$12 = (e) => {
|
|
|
45427
45267
|
children: (0, import_jsx_runtime.jsx)(`td`, {
|
|
45428
45268
|
className: `flex w-full`,
|
|
45429
45269
|
children: (0, import_jsx_runtime.jsx)(c$7, {
|
|
45430
|
-
value:
|
|
45431
|
-
onChange: (
|
|
45432
|
-
let
|
|
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,14 +45283,14 @@ 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, {
|
|
@@ -45459,8 +45299,8 @@ var s$12 = (e) => {
|
|
|
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,16 +45422,16 @@ 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, {
|
|
@@ -45601,11 +45441,11 @@ var s$12 = (e) => {
|
|
|
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,
|
|
@@ -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,9 +45717,9 @@ 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
45725
|
variant: c$32.HOVERABLE,
|
|
@@ -45887,18 +45727,18 @@ var r$21 = (i) => {
|
|
|
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,11 +45748,11 @@ 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
45753
|
children: [D.map((n, s) => {
|
|
45914
45754
|
let c = [...w, {
|
|
45915
|
-
type: e$
|
|
45755
|
+
type: e$51.Array,
|
|
45916
45756
|
key: s
|
|
45917
45757
|
}];
|
|
45918
45758
|
return r$21(n) ? (0, import_jsx_runtime.jsxs)(f$20, {
|
|
@@ -45948,7 +45788,7 @@ var r$21 = (i) => {
|
|
|
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);
|
|
@@ -45964,7 +45804,7 @@ var r$21 = (i) => {
|
|
|
45964
45804
|
className: `flex w-full max-w-full flex-col justify-between gap-2`,
|
|
45965
45805
|
children: Object.keys(D).map((n) => {
|
|
45966
45806
|
let s = [...w, {
|
|
45967
|
-
type: e$
|
|
45807
|
+
type: e$51.Object,
|
|
45968
45808
|
key: n
|
|
45969
45809
|
}];
|
|
45970
45810
|
return r$21(t$64(S, s)) ? (0, import_jsx_runtime.jsx)(f$20, {
|
|
@@ -45975,12 +45815,12 @@ var r$21 = (i) => {
|
|
|
45975
45815
|
className: `w-full`,
|
|
45976
45816
|
onClick: () => k(s),
|
|
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
45821
|
isActive: P(s),
|
|
45982
45822
|
onClick: () => k(s),
|
|
45983
|
-
header: e$
|
|
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`, {
|
|
@@ -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) => ({
|
|
@@ -52309,14 +52149,14 @@ var C$1 = ({ dictionary: C, mode: w }) => {
|
|
|
52309
52149
|
label: H.local.value,
|
|
52310
52150
|
checked: n,
|
|
52311
52151
|
disabled: !w.includes(`local`) && !w.includes(`remote`),
|
|
52312
|
-
onChange: (e) =>
|
|
52152
|
+
onChange: (e) => i(e.target.checked)
|
|
52313
52153
|
}), (0, import_jsx_runtime.jsx)(c$28, {
|
|
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 }),
|
|
@@ -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,11 +52866,11 @@ 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
|
}]);
|
|
@@ -53042,8 +52882,8 @@ var C = ({ section: e, dictionaryLocalId: t, keyPath: n, onNodeTypeChange: r })
|
|
|
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`, {
|
|
@@ -53065,23 +52905,23 @@ var C = ({ section: e, dictionaryLocalId: t, keyPath: n, onNodeTypeChange: r })
|
|
|
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
|
|
@@ -53113,7 +52953,7 @@ var C = ({ section: e, dictionaryLocalId: t, keyPath: n, onNodeTypeChange: r })
|
|
|
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);
|
|
@@ -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 }) : ""
|