intlayer-editor 7.5.0-canary.1 → 7.5.0
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-BZrNB-hp.js → CodeBlockShiki-Cf2gZa5F.js} +4 -4
- package/client/dist/assets/Inter-VariableFont-c8O0ljhh.ttf +0 -0
- package/client/dist/assets/{bundle-web-XVNhfIcT.js → bundle-web-Bm391V69.js} +144 -55
- package/client/dist/assets/{dark-plus-D1BtfNxb.js → dark-plus-DmZ1Dzd4.js} +1 -1
- package/client/dist/assets/{index-BCw8xSvk.js → index-0ibbfhRF.js} +686 -113
- package/client/dist/assets/{index-C9tdC4Xg.css → index-xMTI_9fM.css} +7 -6
- package/client/dist/assets/{rose-pine-LL9gXmP2.js → rose-pine-B-kZ4Z9q.js} +1 -1
- package/client/dist/assets/{rose-pine-dawn-CH9zdisO.js → rose-pine-dawn-efeVGdSI.js} +1 -1
- package/client/dist/assets/{rose-pine-moon-B1oKSfEJ.js → rose-pine-moon-DmodZNzl.js} +1 -1
- package/client/dist/assets/vue-BQglRdBF.js +50 -0
- package/client/dist/assets/{vue-html-BzXE5pTE.js → vue-html-BS551n9F.js} +1 -1
- package/client/dist/assets/{vue-vine-BT_ihGGO.js → vue-vine-B43RKH9N.js} +1 -1
- package/client/dist/index.html +2 -2
- package/package.json +13 -13
- package/server/dist/controllers/configuration.controller.cjs +2 -2
- package/server/dist/controllers/configuration.controller.cjs.map +1 -1
- package/server/dist/controllers/dictionary.controller.cjs +5 -5
- package/server/dist/controllers/dictionary.controller.cjs.map +1 -1
- package/server/dist/index.cjs +8 -8
- package/server/dist/index.cjs.map +1 -1
- package/server/dist/routes/config.routes.cjs +2 -2
- package/server/dist/routes/config.routes.cjs.map +1 -1
- package/server/dist/routes/dictionary.routes.cjs +2 -2
- package/server/dist/routes/dictionary.routes.cjs.map +1 -1
- package/client/dist/assets/Figtree-VariableFont-CuCnmeMh.ttf +0 -0
- package/client/dist/assets/vue-M1-XqLgv.js +0 -50
|
@@ -14584,28 +14584,25 @@ const cacheKey = (locales, options) => JSON.stringify([locales, options]);
|
|
|
14584
14584
|
const createCachedConstructor = (Ctor) => {
|
|
14585
14585
|
const cache = /* @__PURE__ */ new Map();
|
|
14586
14586
|
function Wrapped(locales, options) {
|
|
14587
|
-
if (Ctor.name === "DisplayNames" && typeof Intl?.DisplayNames !== "function")
|
|
14588
|
-
|
|
14589
|
-
|
|
14590
|
-
|
|
14591
|
-
|
|
14592
|
-
|
|
14593
|
-
|
|
14594
|
-
|
|
14595
|
-
|
|
14596
|
-
|
|
14597
|
-
|
|
14598
|
-
|
|
14599
|
-
|
|
14600
|
-
|
|
14601
|
-
|
|
14602
|
-
|
|
14603
|
-
|
|
14604
|
-
|
|
14605
|
-
|
|
14606
|
-
].join("\n"));
|
|
14607
|
-
return locales;
|
|
14608
|
-
}
|
|
14587
|
+
if (Ctor.name === "DisplayNames" && typeof Intl?.DisplayNames !== "function") throw new Error([
|
|
14588
|
+
`// Intl.DisplayNames is not supported; falling back to raw locale (${locales}). `,
|
|
14589
|
+
`// Consider adding a polyfill as https://formatjs.io/docs/polyfills/intl-displaynames/`,
|
|
14590
|
+
``,
|
|
14591
|
+
`import 'intl';`,
|
|
14592
|
+
`import '@formatjs/intl-getcanonicallocales/polyfill';`,
|
|
14593
|
+
`import '@formatjs/intl-locale/polyfill';`,
|
|
14594
|
+
`import '@formatjs/intl-pluralrules/polyfill';`,
|
|
14595
|
+
`import '@formatjs/intl-displaynames/polyfill';`,
|
|
14596
|
+
`import '@formatjs/intl-listformat/polyfill';`,
|
|
14597
|
+
`import '@formatjs/intl-numberformat/polyfill';`,
|
|
14598
|
+
`import '@formatjs/intl-relativetimeformat/polyfill';`,
|
|
14599
|
+
`import '@formatjs/intl-datetimeformat/polyfill';`,
|
|
14600
|
+
``,
|
|
14601
|
+
`// Optionally add locale data`,
|
|
14602
|
+
`import '@formatjs/intl-pluralrules/locale-data/fr';`,
|
|
14603
|
+
`import '@formatjs/intl-numberformat/locale-data/fr';`,
|
|
14604
|
+
`import '@formatjs/intl-datetimeformat/locale-data/fr';`
|
|
14605
|
+
].join("\n"));
|
|
14609
14606
|
const key2 = cacheKey(locales ?? locales_exports.ENGLISH, options);
|
|
14610
14607
|
let instance = cache.get(key2);
|
|
14611
14608
|
if (!instance) {
|
|
@@ -14786,10 +14783,6 @@ const localeStorageOptions = {
|
|
|
14786
14783
|
const getHTMLTextDir = (locale) => {
|
|
14787
14784
|
switch (locale) {
|
|
14788
14785
|
case locales_exports.ARABIC:
|
|
14789
|
-
case locales_exports.FARSI:
|
|
14790
|
-
case locales_exports.URDU:
|
|
14791
|
-
case locales_exports.PASHTO:
|
|
14792
|
-
case locales_exports.SYRIAC:
|
|
14793
14786
|
case locales_exports.ARABIC_UNITED_ARAB_EMIRATES:
|
|
14794
14787
|
case locales_exports.ARABIC_BAHRAIN:
|
|
14795
14788
|
case locales_exports.ARABIC_ALGERIA:
|
|
@@ -14806,10 +14799,27 @@ const getHTMLTextDir = (locale) => {
|
|
|
14806
14799
|
case locales_exports.ARABIC_SYRIA:
|
|
14807
14800
|
case locales_exports.ARABIC_TUNISIA:
|
|
14808
14801
|
case locales_exports.ARABIC_YEMEN:
|
|
14802
|
+
case locales_exports.ARABIC_MAURITANIA:
|
|
14803
|
+
case locales_exports.ARABIC_PALESTINE:
|
|
14804
|
+
case locales_exports.ARABIC_SUDAN:
|
|
14805
|
+
case locales_exports.ARABIC_DJIBOUTI:
|
|
14806
|
+
case locales_exports.ARABIC_SOMALIA:
|
|
14807
|
+
case locales_exports.ARABIC_CHAD:
|
|
14808
|
+
case locales_exports.ARABIC_COMOROS:
|
|
14809
|
+
case locales_exports.HEBREW:
|
|
14810
|
+
case locales_exports.HEBREW_ISRAEL:
|
|
14811
|
+
case locales_exports.FARSI:
|
|
14809
14812
|
case locales_exports.FARSI_IRAN:
|
|
14813
|
+
case locales_exports.URDU:
|
|
14810
14814
|
case locales_exports.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:
|
|
14815
|
+
case locales_exports.PASHTO:
|
|
14811
14816
|
case locales_exports.PASHTO_AFGHANISTAN:
|
|
14817
|
+
case locales_exports.SYRIAC:
|
|
14812
14818
|
case locales_exports.SYRIAC_SYRIA:
|
|
14819
|
+
case locales_exports.DIVEHI:
|
|
14820
|
+
case locales_exports.DIVEHI_MALDIVES:
|
|
14821
|
+
case locales_exports.YIDDISH:
|
|
14822
|
+
case locales_exports.YIDDISH_WORLD:
|
|
14813
14823
|
return "rtl";
|
|
14814
14824
|
default:
|
|
14815
14825
|
return "ltr";
|
|
@@ -21945,13 +21955,13 @@ const Link = (props) => {
|
|
|
21945
21955
|
]
|
|
21946
21956
|
});
|
|
21947
21957
|
};
|
|
21948
|
-
const key$
|
|
21949
|
-
const content$
|
|
21950
|
-
const localIds$
|
|
21958
|
+
const key$g = "breadcrumb";
|
|
21959
|
+
const content$g = { "nodeType": "translation", "translation": { "en": { "linkLabel": "Go to" }, "en-GB": { "linkLabel": "Go to" }, "fr": { "linkLabel": "Aller à" }, "es": { "linkLabel": "Ir a" }, "de": { "linkLabel": "Gehe zu" }, "ja": { "linkLabel": "に移動" }, "ko": { "linkLabel": "로 이동" }, "zh": { "linkLabel": "转到" }, "it": { "linkLabel": "Vai a" }, "pt": { "linkLabel": "Ir para" }, "hi": { "linkLabel": "कर जाएं" }, "ar": { "linkLabel": "اذهب إلى" }, "ru": { "linkLabel": "Перейти на" } } };
|
|
21960
|
+
const localIds$g = ["breadcrumb::local::../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts"];
|
|
21951
21961
|
const _duYE5iNjRQYnPZLlbTEY = {
|
|
21952
|
-
key: key$
|
|
21953
|
-
content: content$
|
|
21954
|
-
localIds: localIds$
|
|
21962
|
+
key: key$g,
|
|
21963
|
+
content: content$g,
|
|
21964
|
+
localIds: localIds$g
|
|
21955
21965
|
};
|
|
21956
21966
|
const breadcrumbVariants = cva("flex flex-row flex-wrap items-center text-sm", {
|
|
21957
21967
|
variants: {
|
|
@@ -23575,6 +23585,12 @@ function RemoveScrollSideCar(props) {
|
|
|
23575
23585
|
if ("touches" in event && moveDirection === "h" && target.type === "range") {
|
|
23576
23586
|
return false;
|
|
23577
23587
|
}
|
|
23588
|
+
var selection = window.getSelection();
|
|
23589
|
+
var anchorNode = selection && selection.anchorNode;
|
|
23590
|
+
var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;
|
|
23591
|
+
if (isTouchingSelection) {
|
|
23592
|
+
return false;
|
|
23593
|
+
}
|
|
23578
23594
|
var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
23579
23595
|
if (!canBeScrolledInMainDirection) {
|
|
23580
23596
|
return true;
|
|
@@ -24441,13 +24457,13 @@ const Command = {
|
|
|
24441
24457
|
Empty: CommandEmpty,
|
|
24442
24458
|
Item: CommandItem
|
|
24443
24459
|
};
|
|
24444
|
-
const key$
|
|
24445
|
-
const content$
|
|
24446
|
-
const localIds$
|
|
24460
|
+
const key$f = "copy-button";
|
|
24461
|
+
const content$f = { "nodeType": "translation", "translation": { "en": { "label": "Copy content" }, "en-GB": { "label": "Copy content" }, "fr": { "label": "Copier le contenu" }, "es": { "label": "Copiar contenido" }, "de": { "label": "Inhalt kopieren" }, "ja": { "label": "コンテンツをコピー" }, "ko": { "label": "콘텐츠 복사" }, "zh": { "label": "复制内容" }, "it": { "label": "Copia contenuto" }, "pt": { "label": "Copiar conteúdo" }, "hi": { "label": "सामग्री कॉपी करें" }, "ar": { "label": "نسخ المحتوى" }, "ru": { "label": "Копировать содержимое" } } };
|
|
24462
|
+
const localIds$f = ["copy-button::local::../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts"];
|
|
24447
24463
|
const _ZBwciJIQ6QXeiWWVK4aI = {
|
|
24448
|
-
key: key$
|
|
24449
|
-
content: content$
|
|
24450
|
-
localIds: localIds$
|
|
24464
|
+
key: key$f,
|
|
24465
|
+
content: content$f,
|
|
24466
|
+
localIds: localIds$f
|
|
24451
24467
|
};
|
|
24452
24468
|
const CopyButton = ({
|
|
24453
24469
|
content: content2,
|
|
@@ -35117,20 +35133,20 @@ function pendingThenable() {
|
|
|
35117
35133
|
thenable.status = "pending";
|
|
35118
35134
|
thenable.catch(() => {
|
|
35119
35135
|
});
|
|
35120
|
-
function
|
|
35136
|
+
function finalize2(data) {
|
|
35121
35137
|
Object.assign(thenable, data);
|
|
35122
35138
|
delete thenable.resolve;
|
|
35123
35139
|
delete thenable.reject;
|
|
35124
35140
|
}
|
|
35125
35141
|
thenable.resolve = (value) => {
|
|
35126
|
-
|
|
35142
|
+
finalize2({
|
|
35127
35143
|
status: "fulfilled",
|
|
35128
35144
|
value
|
|
35129
35145
|
});
|
|
35130
35146
|
resolve(value);
|
|
35131
35147
|
};
|
|
35132
35148
|
thenable.reject = (reason) => {
|
|
35133
|
-
|
|
35149
|
+
finalize2({
|
|
35134
35150
|
status: "rejected",
|
|
35135
35151
|
reason
|
|
35136
35152
|
});
|
|
@@ -39787,7 +39803,7 @@ const getPasskeyActions = ($fetch, { $listPasskeys, $store }) => {
|
|
|
39787
39803
|
$listPasskeys.set(Math.random());
|
|
39788
39804
|
$store.notify("$sessionSignal");
|
|
39789
39805
|
return verified;
|
|
39790
|
-
} catch
|
|
39806
|
+
} catch {
|
|
39791
39807
|
return {
|
|
39792
39808
|
data: null,
|
|
39793
39809
|
error: {
|
|
@@ -45295,8 +45311,8 @@ class Doc {
|
|
|
45295
45311
|
}
|
|
45296
45312
|
const version = {
|
|
45297
45313
|
major: 4,
|
|
45298
|
-
minor:
|
|
45299
|
-
patch:
|
|
45314
|
+
minor: 2,
|
|
45315
|
+
patch: 1
|
|
45300
45316
|
};
|
|
45301
45317
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
45302
45318
|
var _a2;
|
|
@@ -46806,6 +46822,510 @@ function _check(fn, params) {
|
|
|
46806
46822
|
ch._zod.check = fn;
|
|
46807
46823
|
return ch;
|
|
46808
46824
|
}
|
|
46825
|
+
function initializeContext(params) {
|
|
46826
|
+
let target = params?.target ?? "draft-2020-12";
|
|
46827
|
+
if (target === "draft-4")
|
|
46828
|
+
target = "draft-04";
|
|
46829
|
+
if (target === "draft-7")
|
|
46830
|
+
target = "draft-07";
|
|
46831
|
+
return {
|
|
46832
|
+
processors: params.processors ?? {},
|
|
46833
|
+
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
46834
|
+
target,
|
|
46835
|
+
unrepresentable: params?.unrepresentable ?? "throw",
|
|
46836
|
+
override: params?.override ?? (() => {
|
|
46837
|
+
}),
|
|
46838
|
+
io: params?.io ?? "output",
|
|
46839
|
+
counter: 0,
|
|
46840
|
+
seen: /* @__PURE__ */ new Map(),
|
|
46841
|
+
cycles: params?.cycles ?? "ref",
|
|
46842
|
+
reused: params?.reused ?? "inline",
|
|
46843
|
+
external: params?.external ?? void 0
|
|
46844
|
+
};
|
|
46845
|
+
}
|
|
46846
|
+
function process$1(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
46847
|
+
var _a2;
|
|
46848
|
+
const def = schema._zod.def;
|
|
46849
|
+
const seen2 = ctx.seen.get(schema);
|
|
46850
|
+
if (seen2) {
|
|
46851
|
+
seen2.count++;
|
|
46852
|
+
const isCycle = _params.schemaPath.includes(schema);
|
|
46853
|
+
if (isCycle) {
|
|
46854
|
+
seen2.cycle = _params.path;
|
|
46855
|
+
}
|
|
46856
|
+
return seen2.schema;
|
|
46857
|
+
}
|
|
46858
|
+
const result = { schema: {}, count: 1, cycle: void 0, path: _params.path };
|
|
46859
|
+
ctx.seen.set(schema, result);
|
|
46860
|
+
const overrideSchema = schema._zod.toJSONSchema?.();
|
|
46861
|
+
if (overrideSchema) {
|
|
46862
|
+
result.schema = overrideSchema;
|
|
46863
|
+
} else {
|
|
46864
|
+
const params = {
|
|
46865
|
+
..._params,
|
|
46866
|
+
schemaPath: [..._params.schemaPath, schema],
|
|
46867
|
+
path: _params.path
|
|
46868
|
+
};
|
|
46869
|
+
const parent = schema._zod.parent;
|
|
46870
|
+
if (parent) {
|
|
46871
|
+
result.ref = parent;
|
|
46872
|
+
process$1(parent, ctx, params);
|
|
46873
|
+
ctx.seen.get(parent).isParent = true;
|
|
46874
|
+
} else if (schema._zod.processJSONSchema) {
|
|
46875
|
+
schema._zod.processJSONSchema(ctx, result.schema, params);
|
|
46876
|
+
} else {
|
|
46877
|
+
const _json = result.schema;
|
|
46878
|
+
const processor = ctx.processors[def.type];
|
|
46879
|
+
if (!processor) {
|
|
46880
|
+
throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`);
|
|
46881
|
+
}
|
|
46882
|
+
processor(schema, ctx, _json, params);
|
|
46883
|
+
}
|
|
46884
|
+
}
|
|
46885
|
+
const meta = ctx.metadataRegistry.get(schema);
|
|
46886
|
+
if (meta)
|
|
46887
|
+
Object.assign(result.schema, meta);
|
|
46888
|
+
if (ctx.io === "input" && isTransforming(schema)) {
|
|
46889
|
+
delete result.schema.examples;
|
|
46890
|
+
delete result.schema.default;
|
|
46891
|
+
}
|
|
46892
|
+
if (ctx.io === "input" && result.schema._prefault)
|
|
46893
|
+
(_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
|
|
46894
|
+
delete result.schema._prefault;
|
|
46895
|
+
const _result = ctx.seen.get(schema);
|
|
46896
|
+
return _result.schema;
|
|
46897
|
+
}
|
|
46898
|
+
function extractDefs(ctx, schema) {
|
|
46899
|
+
const root = ctx.seen.get(schema);
|
|
46900
|
+
if (!root)
|
|
46901
|
+
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
46902
|
+
const makeURI = (entry) => {
|
|
46903
|
+
const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
46904
|
+
if (ctx.external) {
|
|
46905
|
+
const externalId = ctx.external.registry.get(entry[0])?.id;
|
|
46906
|
+
const uriGenerator = ctx.external.uri ?? ((id3) => id3);
|
|
46907
|
+
if (externalId) {
|
|
46908
|
+
return { ref: uriGenerator(externalId) };
|
|
46909
|
+
}
|
|
46910
|
+
const id2 = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`;
|
|
46911
|
+
entry[1].defId = id2;
|
|
46912
|
+
return { defId: id2, ref: `${uriGenerator("__shared")}#/${defsSegment}/${id2}` };
|
|
46913
|
+
}
|
|
46914
|
+
if (entry[1] === root) {
|
|
46915
|
+
return { ref: "#" };
|
|
46916
|
+
}
|
|
46917
|
+
const uriPrefix = `#`;
|
|
46918
|
+
const defUriPrefix = `${uriPrefix}/${defsSegment}/`;
|
|
46919
|
+
const defId = entry[1].schema.id ?? `__schema${ctx.counter++}`;
|
|
46920
|
+
return { defId, ref: defUriPrefix + defId };
|
|
46921
|
+
};
|
|
46922
|
+
const extractToDef = (entry) => {
|
|
46923
|
+
if (entry[1].schema.$ref) {
|
|
46924
|
+
return;
|
|
46925
|
+
}
|
|
46926
|
+
const seen2 = entry[1];
|
|
46927
|
+
const { ref, defId } = makeURI(entry);
|
|
46928
|
+
seen2.def = { ...seen2.schema };
|
|
46929
|
+
if (defId)
|
|
46930
|
+
seen2.defId = defId;
|
|
46931
|
+
const schema2 = seen2.schema;
|
|
46932
|
+
for (const key2 in schema2) {
|
|
46933
|
+
delete schema2[key2];
|
|
46934
|
+
}
|
|
46935
|
+
schema2.$ref = ref;
|
|
46936
|
+
};
|
|
46937
|
+
if (ctx.cycles === "throw") {
|
|
46938
|
+
for (const entry of ctx.seen.entries()) {
|
|
46939
|
+
const seen2 = entry[1];
|
|
46940
|
+
if (seen2.cycle) {
|
|
46941
|
+
throw new Error(`Cycle detected: #/${seen2.cycle?.join("/")}/<root>
|
|
46942
|
+
|
|
46943
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
|
|
46944
|
+
}
|
|
46945
|
+
}
|
|
46946
|
+
}
|
|
46947
|
+
for (const entry of ctx.seen.entries()) {
|
|
46948
|
+
const seen2 = entry[1];
|
|
46949
|
+
if (schema === entry[0]) {
|
|
46950
|
+
extractToDef(entry);
|
|
46951
|
+
continue;
|
|
46952
|
+
}
|
|
46953
|
+
if (ctx.external) {
|
|
46954
|
+
const ext = ctx.external.registry.get(entry[0])?.id;
|
|
46955
|
+
if (schema !== entry[0] && ext) {
|
|
46956
|
+
extractToDef(entry);
|
|
46957
|
+
continue;
|
|
46958
|
+
}
|
|
46959
|
+
}
|
|
46960
|
+
const id2 = ctx.metadataRegistry.get(entry[0])?.id;
|
|
46961
|
+
if (id2) {
|
|
46962
|
+
extractToDef(entry);
|
|
46963
|
+
continue;
|
|
46964
|
+
}
|
|
46965
|
+
if (seen2.cycle) {
|
|
46966
|
+
extractToDef(entry);
|
|
46967
|
+
continue;
|
|
46968
|
+
}
|
|
46969
|
+
if (seen2.count > 1) {
|
|
46970
|
+
if (ctx.reused === "ref") {
|
|
46971
|
+
extractToDef(entry);
|
|
46972
|
+
continue;
|
|
46973
|
+
}
|
|
46974
|
+
}
|
|
46975
|
+
}
|
|
46976
|
+
}
|
|
46977
|
+
function finalize(ctx, schema) {
|
|
46978
|
+
const root = ctx.seen.get(schema);
|
|
46979
|
+
if (!root)
|
|
46980
|
+
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
46981
|
+
const flattenRef = (zodSchema) => {
|
|
46982
|
+
const seen2 = ctx.seen.get(zodSchema);
|
|
46983
|
+
const schema2 = seen2.def ?? seen2.schema;
|
|
46984
|
+
const _cached = { ...schema2 };
|
|
46985
|
+
if (seen2.ref === null) {
|
|
46986
|
+
return;
|
|
46987
|
+
}
|
|
46988
|
+
const ref = seen2.ref;
|
|
46989
|
+
seen2.ref = null;
|
|
46990
|
+
if (ref) {
|
|
46991
|
+
flattenRef(ref);
|
|
46992
|
+
const refSchema = ctx.seen.get(ref).schema;
|
|
46993
|
+
if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
|
|
46994
|
+
schema2.allOf = schema2.allOf ?? [];
|
|
46995
|
+
schema2.allOf.push(refSchema);
|
|
46996
|
+
} else {
|
|
46997
|
+
Object.assign(schema2, refSchema);
|
|
46998
|
+
Object.assign(schema2, _cached);
|
|
46999
|
+
}
|
|
47000
|
+
}
|
|
47001
|
+
if (!seen2.isParent)
|
|
47002
|
+
ctx.override({
|
|
47003
|
+
zodSchema,
|
|
47004
|
+
jsonSchema: schema2,
|
|
47005
|
+
path: seen2.path ?? []
|
|
47006
|
+
});
|
|
47007
|
+
};
|
|
47008
|
+
for (const entry of [...ctx.seen.entries()].reverse()) {
|
|
47009
|
+
flattenRef(entry[0]);
|
|
47010
|
+
}
|
|
47011
|
+
const result = {};
|
|
47012
|
+
if (ctx.target === "draft-2020-12") {
|
|
47013
|
+
result.$schema = "https://json-schema.org/draft/2020-12/schema";
|
|
47014
|
+
} else if (ctx.target === "draft-07") {
|
|
47015
|
+
result.$schema = "http://json-schema.org/draft-07/schema#";
|
|
47016
|
+
} else if (ctx.target === "draft-04") {
|
|
47017
|
+
result.$schema = "http://json-schema.org/draft-04/schema#";
|
|
47018
|
+
} else if (ctx.target === "openapi-3.0") ;
|
|
47019
|
+
else ;
|
|
47020
|
+
if (ctx.external?.uri) {
|
|
47021
|
+
const id2 = ctx.external.registry.get(schema)?.id;
|
|
47022
|
+
if (!id2)
|
|
47023
|
+
throw new Error("Schema is missing an `id` property");
|
|
47024
|
+
result.$id = ctx.external.uri(id2);
|
|
47025
|
+
}
|
|
47026
|
+
Object.assign(result, root.def ?? root.schema);
|
|
47027
|
+
const defs = ctx.external?.defs ?? {};
|
|
47028
|
+
for (const entry of ctx.seen.entries()) {
|
|
47029
|
+
const seen2 = entry[1];
|
|
47030
|
+
if (seen2.def && seen2.defId) {
|
|
47031
|
+
defs[seen2.defId] = seen2.def;
|
|
47032
|
+
}
|
|
47033
|
+
}
|
|
47034
|
+
if (ctx.external) ;
|
|
47035
|
+
else {
|
|
47036
|
+
if (Object.keys(defs).length > 0) {
|
|
47037
|
+
if (ctx.target === "draft-2020-12") {
|
|
47038
|
+
result.$defs = defs;
|
|
47039
|
+
} else {
|
|
47040
|
+
result.definitions = defs;
|
|
47041
|
+
}
|
|
47042
|
+
}
|
|
47043
|
+
}
|
|
47044
|
+
try {
|
|
47045
|
+
const finalized = JSON.parse(JSON.stringify(result));
|
|
47046
|
+
Object.defineProperty(finalized, "~standard", {
|
|
47047
|
+
value: {
|
|
47048
|
+
...schema["~standard"],
|
|
47049
|
+
jsonSchema: {
|
|
47050
|
+
input: createStandardJSONSchemaMethod(schema, "input"),
|
|
47051
|
+
output: createStandardJSONSchemaMethod(schema, "output")
|
|
47052
|
+
}
|
|
47053
|
+
},
|
|
47054
|
+
enumerable: false,
|
|
47055
|
+
writable: false
|
|
47056
|
+
});
|
|
47057
|
+
return finalized;
|
|
47058
|
+
} catch (_err) {
|
|
47059
|
+
throw new Error("Error converting schema to JSON.");
|
|
47060
|
+
}
|
|
47061
|
+
}
|
|
47062
|
+
function isTransforming(_schema, _ctx) {
|
|
47063
|
+
const ctx = _ctx ?? { seen: /* @__PURE__ */ new Set() };
|
|
47064
|
+
if (ctx.seen.has(_schema))
|
|
47065
|
+
return false;
|
|
47066
|
+
ctx.seen.add(_schema);
|
|
47067
|
+
const def = _schema._zod.def;
|
|
47068
|
+
if (def.type === "transform")
|
|
47069
|
+
return true;
|
|
47070
|
+
if (def.type === "array")
|
|
47071
|
+
return isTransforming(def.element, ctx);
|
|
47072
|
+
if (def.type === "set")
|
|
47073
|
+
return isTransforming(def.valueType, ctx);
|
|
47074
|
+
if (def.type === "lazy")
|
|
47075
|
+
return isTransforming(def.getter(), ctx);
|
|
47076
|
+
if (def.type === "promise" || def.type === "optional" || def.type === "nonoptional" || def.type === "nullable" || def.type === "readonly" || def.type === "default" || def.type === "prefault") {
|
|
47077
|
+
return isTransforming(def.innerType, ctx);
|
|
47078
|
+
}
|
|
47079
|
+
if (def.type === "intersection") {
|
|
47080
|
+
return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
|
|
47081
|
+
}
|
|
47082
|
+
if (def.type === "record" || def.type === "map") {
|
|
47083
|
+
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
47084
|
+
}
|
|
47085
|
+
if (def.type === "pipe") {
|
|
47086
|
+
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
47087
|
+
}
|
|
47088
|
+
if (def.type === "object") {
|
|
47089
|
+
for (const key2 in def.shape) {
|
|
47090
|
+
if (isTransforming(def.shape[key2], ctx))
|
|
47091
|
+
return true;
|
|
47092
|
+
}
|
|
47093
|
+
return false;
|
|
47094
|
+
}
|
|
47095
|
+
if (def.type === "union") {
|
|
47096
|
+
for (const option of def.options) {
|
|
47097
|
+
if (isTransforming(option, ctx))
|
|
47098
|
+
return true;
|
|
47099
|
+
}
|
|
47100
|
+
return false;
|
|
47101
|
+
}
|
|
47102
|
+
if (def.type === "tuple") {
|
|
47103
|
+
for (const item of def.items) {
|
|
47104
|
+
if (isTransforming(item, ctx))
|
|
47105
|
+
return true;
|
|
47106
|
+
}
|
|
47107
|
+
if (def.rest && isTransforming(def.rest, ctx))
|
|
47108
|
+
return true;
|
|
47109
|
+
return false;
|
|
47110
|
+
}
|
|
47111
|
+
return false;
|
|
47112
|
+
}
|
|
47113
|
+
const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
47114
|
+
const ctx = initializeContext({ ...params, processors });
|
|
47115
|
+
process$1(schema, ctx);
|
|
47116
|
+
extractDefs(ctx, schema);
|
|
47117
|
+
return finalize(ctx, schema);
|
|
47118
|
+
};
|
|
47119
|
+
const createStandardJSONSchemaMethod = (schema, io) => (params) => {
|
|
47120
|
+
const { libraryOptions, target } = params ?? {};
|
|
47121
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors: {} });
|
|
47122
|
+
process$1(schema, ctx);
|
|
47123
|
+
extractDefs(ctx, schema);
|
|
47124
|
+
return finalize(ctx, schema);
|
|
47125
|
+
};
|
|
47126
|
+
const formatMap = {
|
|
47127
|
+
guid: "uuid",
|
|
47128
|
+
url: "uri",
|
|
47129
|
+
datetime: "date-time",
|
|
47130
|
+
json_string: "json-string",
|
|
47131
|
+
regex: ""
|
|
47132
|
+
// do not set
|
|
47133
|
+
};
|
|
47134
|
+
const stringProcessor = (schema, ctx, _json, _params) => {
|
|
47135
|
+
const json = _json;
|
|
47136
|
+
json.type = "string";
|
|
47137
|
+
const { minimum, maximum, format: format2, patterns, contentEncoding } = schema._zod.bag;
|
|
47138
|
+
if (typeof minimum === "number")
|
|
47139
|
+
json.minLength = minimum;
|
|
47140
|
+
if (typeof maximum === "number")
|
|
47141
|
+
json.maxLength = maximum;
|
|
47142
|
+
if (format2) {
|
|
47143
|
+
json.format = formatMap[format2] ?? format2;
|
|
47144
|
+
if (json.format === "")
|
|
47145
|
+
delete json.format;
|
|
47146
|
+
}
|
|
47147
|
+
if (contentEncoding)
|
|
47148
|
+
json.contentEncoding = contentEncoding;
|
|
47149
|
+
if (patterns && patterns.size > 0) {
|
|
47150
|
+
const regexes = [...patterns];
|
|
47151
|
+
if (regexes.length === 1)
|
|
47152
|
+
json.pattern = regexes[0].source;
|
|
47153
|
+
else if (regexes.length > 1) {
|
|
47154
|
+
json.allOf = [
|
|
47155
|
+
...regexes.map((regex) => ({
|
|
47156
|
+
...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
|
|
47157
|
+
pattern: regex.source
|
|
47158
|
+
}))
|
|
47159
|
+
];
|
|
47160
|
+
}
|
|
47161
|
+
}
|
|
47162
|
+
};
|
|
47163
|
+
const neverProcessor = (_schema, _ctx, json, _params) => {
|
|
47164
|
+
json.not = {};
|
|
47165
|
+
};
|
|
47166
|
+
const unknownProcessor = (_schema, _ctx, _json, _params) => {
|
|
47167
|
+
};
|
|
47168
|
+
const enumProcessor = (schema, _ctx, json, _params) => {
|
|
47169
|
+
const def = schema._zod.def;
|
|
47170
|
+
const values = getEnumValues(def.entries);
|
|
47171
|
+
if (values.every((v2) => typeof v2 === "number"))
|
|
47172
|
+
json.type = "number";
|
|
47173
|
+
if (values.every((v2) => typeof v2 === "string"))
|
|
47174
|
+
json.type = "string";
|
|
47175
|
+
json.enum = values;
|
|
47176
|
+
};
|
|
47177
|
+
const customProcessor = (_schema, ctx, _json, _params) => {
|
|
47178
|
+
if (ctx.unrepresentable === "throw") {
|
|
47179
|
+
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
47180
|
+
}
|
|
47181
|
+
};
|
|
47182
|
+
const transformProcessor = (_schema, ctx, _json, _params) => {
|
|
47183
|
+
if (ctx.unrepresentable === "throw") {
|
|
47184
|
+
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
47185
|
+
}
|
|
47186
|
+
};
|
|
47187
|
+
const arrayProcessor = (schema, ctx, _json, params) => {
|
|
47188
|
+
const json = _json;
|
|
47189
|
+
const def = schema._zod.def;
|
|
47190
|
+
const { minimum, maximum } = schema._zod.bag;
|
|
47191
|
+
if (typeof minimum === "number")
|
|
47192
|
+
json.minItems = minimum;
|
|
47193
|
+
if (typeof maximum === "number")
|
|
47194
|
+
json.maxItems = maximum;
|
|
47195
|
+
json.type = "array";
|
|
47196
|
+
json.items = process$1(def.element, ctx, { ...params, path: [...params.path, "items"] });
|
|
47197
|
+
};
|
|
47198
|
+
const objectProcessor = (schema, ctx, _json, params) => {
|
|
47199
|
+
const json = _json;
|
|
47200
|
+
const def = schema._zod.def;
|
|
47201
|
+
json.type = "object";
|
|
47202
|
+
json.properties = {};
|
|
47203
|
+
const shape = def.shape;
|
|
47204
|
+
for (const key2 in shape) {
|
|
47205
|
+
json.properties[key2] = process$1(shape[key2], ctx, {
|
|
47206
|
+
...params,
|
|
47207
|
+
path: [...params.path, "properties", key2]
|
|
47208
|
+
});
|
|
47209
|
+
}
|
|
47210
|
+
const allKeys = new Set(Object.keys(shape));
|
|
47211
|
+
const requiredKeys = new Set([...allKeys].filter((key2) => {
|
|
47212
|
+
const v2 = def.shape[key2]._zod;
|
|
47213
|
+
if (ctx.io === "input") {
|
|
47214
|
+
return v2.optin === void 0;
|
|
47215
|
+
} else {
|
|
47216
|
+
return v2.optout === void 0;
|
|
47217
|
+
}
|
|
47218
|
+
}));
|
|
47219
|
+
if (requiredKeys.size > 0) {
|
|
47220
|
+
json.required = Array.from(requiredKeys);
|
|
47221
|
+
}
|
|
47222
|
+
if (def.catchall?._zod.def.type === "never") {
|
|
47223
|
+
json.additionalProperties = false;
|
|
47224
|
+
} else if (!def.catchall) {
|
|
47225
|
+
if (ctx.io === "output")
|
|
47226
|
+
json.additionalProperties = false;
|
|
47227
|
+
} else if (def.catchall) {
|
|
47228
|
+
json.additionalProperties = process$1(def.catchall, ctx, {
|
|
47229
|
+
...params,
|
|
47230
|
+
path: [...params.path, "additionalProperties"]
|
|
47231
|
+
});
|
|
47232
|
+
}
|
|
47233
|
+
};
|
|
47234
|
+
const unionProcessor = (schema, ctx, json, params) => {
|
|
47235
|
+
const def = schema._zod.def;
|
|
47236
|
+
const isExclusive = def.inclusive === false;
|
|
47237
|
+
const options = def.options.map((x, i2) => process$1(x, ctx, {
|
|
47238
|
+
...params,
|
|
47239
|
+
path: [...params.path, isExclusive ? "oneOf" : "anyOf", i2]
|
|
47240
|
+
}));
|
|
47241
|
+
if (isExclusive) {
|
|
47242
|
+
json.oneOf = options;
|
|
47243
|
+
} else {
|
|
47244
|
+
json.anyOf = options;
|
|
47245
|
+
}
|
|
47246
|
+
};
|
|
47247
|
+
const intersectionProcessor = (schema, ctx, json, params) => {
|
|
47248
|
+
const def = schema._zod.def;
|
|
47249
|
+
const a2 = process$1(def.left, ctx, {
|
|
47250
|
+
...params,
|
|
47251
|
+
path: [...params.path, "allOf", 0]
|
|
47252
|
+
});
|
|
47253
|
+
const b = process$1(def.right, ctx, {
|
|
47254
|
+
...params,
|
|
47255
|
+
path: [...params.path, "allOf", 1]
|
|
47256
|
+
});
|
|
47257
|
+
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
47258
|
+
const allOf = [
|
|
47259
|
+
...isSimpleIntersection(a2) ? a2.allOf : [a2],
|
|
47260
|
+
...isSimpleIntersection(b) ? b.allOf : [b]
|
|
47261
|
+
];
|
|
47262
|
+
json.allOf = allOf;
|
|
47263
|
+
};
|
|
47264
|
+
const nullableProcessor = (schema, ctx, json, params) => {
|
|
47265
|
+
const def = schema._zod.def;
|
|
47266
|
+
const inner = process$1(def.innerType, ctx, params);
|
|
47267
|
+
const seen2 = ctx.seen.get(schema);
|
|
47268
|
+
if (ctx.target === "openapi-3.0") {
|
|
47269
|
+
seen2.ref = def.innerType;
|
|
47270
|
+
json.nullable = true;
|
|
47271
|
+
} else {
|
|
47272
|
+
json.anyOf = [inner, { type: "null" }];
|
|
47273
|
+
}
|
|
47274
|
+
};
|
|
47275
|
+
const nonoptionalProcessor = (schema, ctx, _json, params) => {
|
|
47276
|
+
const def = schema._zod.def;
|
|
47277
|
+
process$1(def.innerType, ctx, params);
|
|
47278
|
+
const seen2 = ctx.seen.get(schema);
|
|
47279
|
+
seen2.ref = def.innerType;
|
|
47280
|
+
};
|
|
47281
|
+
const defaultProcessor = (schema, ctx, json, params) => {
|
|
47282
|
+
const def = schema._zod.def;
|
|
47283
|
+
process$1(def.innerType, ctx, params);
|
|
47284
|
+
const seen2 = ctx.seen.get(schema);
|
|
47285
|
+
seen2.ref = def.innerType;
|
|
47286
|
+
json.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
47287
|
+
};
|
|
47288
|
+
const prefaultProcessor = (schema, ctx, json, params) => {
|
|
47289
|
+
const def = schema._zod.def;
|
|
47290
|
+
process$1(def.innerType, ctx, params);
|
|
47291
|
+
const seen2 = ctx.seen.get(schema);
|
|
47292
|
+
seen2.ref = def.innerType;
|
|
47293
|
+
if (ctx.io === "input")
|
|
47294
|
+
json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
|
|
47295
|
+
};
|
|
47296
|
+
const catchProcessor = (schema, ctx, json, params) => {
|
|
47297
|
+
const def = schema._zod.def;
|
|
47298
|
+
process$1(def.innerType, ctx, params);
|
|
47299
|
+
const seen2 = ctx.seen.get(schema);
|
|
47300
|
+
seen2.ref = def.innerType;
|
|
47301
|
+
let catchValue;
|
|
47302
|
+
try {
|
|
47303
|
+
catchValue = def.catchValue(void 0);
|
|
47304
|
+
} catch {
|
|
47305
|
+
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
47306
|
+
}
|
|
47307
|
+
json.default = catchValue;
|
|
47308
|
+
};
|
|
47309
|
+
const pipeProcessor = (schema, ctx, _json, params) => {
|
|
47310
|
+
const def = schema._zod.def;
|
|
47311
|
+
const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
|
|
47312
|
+
process$1(innerType, ctx, params);
|
|
47313
|
+
const seen2 = ctx.seen.get(schema);
|
|
47314
|
+
seen2.ref = innerType;
|
|
47315
|
+
};
|
|
47316
|
+
const readonlyProcessor = (schema, ctx, json, params) => {
|
|
47317
|
+
const def = schema._zod.def;
|
|
47318
|
+
process$1(def.innerType, ctx, params);
|
|
47319
|
+
const seen2 = ctx.seen.get(schema);
|
|
47320
|
+
seen2.ref = def.innerType;
|
|
47321
|
+
json.readOnly = true;
|
|
47322
|
+
};
|
|
47323
|
+
const optionalProcessor = (schema, ctx, _json, params) => {
|
|
47324
|
+
const def = schema._zod.def;
|
|
47325
|
+
process$1(def.innerType, ctx, params);
|
|
47326
|
+
const seen2 = ctx.seen.get(schema);
|
|
47327
|
+
seen2.ref = def.innerType;
|
|
47328
|
+
};
|
|
46809
47329
|
function t(r2, e) {
|
|
46810
47330
|
try {
|
|
46811
47331
|
var o2 = r2();
|
|
@@ -47423,13 +47943,13 @@ Form.EditableFieldTextArea = EditableFieldTextAreaElement;
|
|
|
47423
47943
|
Form.SwitchSelector = SwitchSelectorElement;
|
|
47424
47944
|
Form.OTP = OTPElement;
|
|
47425
47945
|
Form.SearchInput = SearchInputElement;
|
|
47426
|
-
const key$
|
|
47427
|
-
const content$
|
|
47428
|
-
const localIds$
|
|
47946
|
+
const key$e = "save-dictionary-details";
|
|
47947
|
+
const content$e = { "nodeType": "translation", "translation": { "en": { "deleteButton": { "text": "Delete dictionary", "label": "Click to delete dictionary" }, "resetButton": { "text": "Reset all changes", "label": "Click to reset all the changes" }, "saveButton": { "text": "Save changes", "label": "Click to save changes" }, "publishButton": { "text": "Publish dictionary", "label": "Click to publish dictionary" }, "downloadButton": { "text": "Download", "label": "Click to download" }, "confirmation": { "title": "Confirmation", "message": "This will overwrite the existing dictionary. Are you sure you want to continue?", "confirmButton": { "text": "Confirm", "label": "Click to confirm" }, "cancelButton": { "text": "Cancel", "label": "Click to cancel" } } }, "en-GB": { "deleteButton": { "text": "Delete dictionary", "label": "Click to delete dictionary" }, "resetButton": { "text": "Reset all changes", "label": "Click to reset all the changes" }, "saveButton": { "text": "Save changes", "label": "Click to save changes" }, "publishButton": { "text": "Publish dictionary", "label": "Click to publish dictionary" }, "downloadButton": { "text": "Download", "label": "Click to download" }, "confirmation": { "title": "Confirmation", "message": "This will overwrite the existing dictionary. Are you sure you want to continue?", "confirmButton": { "text": "Confirm", "label": "Click to confirm" }, "cancelButton": { "text": "Cancel", "label": "Click to cancel" } } }, "fr": { "deleteButton": { "text": "Supprimer le dictionnaire", "label": "Cliquez pour supprimer le dictionnaire" }, "resetButton": { "text": "Réinitialiser toutes les modifications", "label": "Cliquez pour réinitialiser toutes les modifications" }, "saveButton": { "text": "Enregistrer les modifications", "label": "Cliquez pour enregistrer les modifications" }, "publishButton": { "text": "Publier dictionnaire", "label": "Cliquez pour publier dictionnaire" }, "downloadButton": { "text": "Télécharger", "label": "Cliquez pour télécharger" }, "confirmation": { "title": "Confirmation", "message": "Cela remplacera le dictionnaire existant. Êtes-vous sûr de vouloir continuer?", "confirmButton": { "text": "Confirmer", "label": "Cliquez pour confirmer" }, "cancelButton": { "text": "Annuler", "label": "Cliquez pour annuler" } } }, "es": { "deleteButton": { "text": "Eliminar diccionario", "label": "Haga clic para eliminar el diccionario" }, "resetButton": { "text": "Restablecer todas las modificaciones", "label": "Haga clic para restablecer todas las modificaciones" }, "saveButton": { "text": "Guardar cambios", "label": "Haga clic para guardar cambios" }, "publishButton": { "text": "Publicar diccionario", "label": "Haga clic para publicar diccionario" }, "downloadButton": { "text": "Descargar", "label": "Haga clic para descargar" }, "confirmation": { "title": "Confirmation", "message": "Esto sobrescribirá el diccionario existente. ¿Estás seguro de que quieres continuar?", "confirmButton": { "text": "Confirmar", "label": "Haga clic para confirmar" }, "cancelButton": { "text": "Cancelar", "label": "Haga clic para cancelar" } } }, "de": { "deleteButton": { "text": "Wörterbuch löschen", "label": "Klicken Sie, um das Wörterbuch zu löschen" }, "resetButton": { "text": "Alle Änderungen zurücksetzen", "label": "Klicken Sie, um alle Änderungen zurückzusetzen" }, "saveButton": { "text": "Änderungen speichern", "label": "Klicken Sie, um Änderungen zu speichern" }, "publishButton": { "text": "Wörterbuch veröffentlichen", "label": "Klicken Sie, um das Wörterbuch zu veröffentlichen" }, "downloadButton": { "text": "Herunterladen", "label": "Klicken Sie, um herunterzuladen" }, "confirmation": { "title": "Confirmation", "message": "Dies wird das existierende Wörterbuch überschreiben. Sind Sie sicher, dass Sie fortfahren möchten?", "confirmButton": { "text": "Bestätigen", "label": "Klicken Sie, um zu bestätigen" }, "cancelButton": { "text": "Abbrechen", "label": "Klicken Sie, um abzubrechen" } } }, "ja": { "deleteButton": { "text": "辞書を削除", "label": "辞書を削除するにはクリックしてください" }, "resetButton": { "text": "すべての変更をリセット", "label": "すべての変更をリセットするにはクリックしてください" }, "saveButton": { "text": "変更を保存", "label": "変更を保存するにはクリックしてください" }, "publishButton": { "text": "辞書を公開", "label": "辞書を公開するにはクリックしてください" }, "downloadButton": { "text": "ダウンロード", "label": "ダウンロードするにはクリックしてください" }, "confirmation": { "title": "確認", "message": "既存の辞書を上書きします。続行しますか?", "confirmButton": { "text": "確認", "label": "確認するにはクリックしてください" }, "cancelButton": { "text": "キャンセル", "label": "キャンセルするにはクリックしてください" } } }, "ko": { "deleteButton": { "text": "사전 삭제", "label": "사전을 삭제하려면 클릭하세요" }, "resetButton": { "text": "모든 변경 사항 초기화", "label": "모든 변경 사항을 초기화하려면 클릭하세요" }, "saveButton": { "text": "변경 사항 저장", "label": "변경 사항을 저장하려면 클릭하세요" }, "publishButton": { "text": "사전을 게시합니다", "label": "사전을 게시하려면 클릭하세요" }, "downloadButton": { "text": "다운로드", "label": "다운로드를 클릭하세요" }, "confirmation": { "title": "확인", "message": "이는 기존 사전을 덮어 쓸 것입니다. 계속하시겠습니까?", "confirmButton": { "text": "확인", "label": "확인을 클릭하세요" }, "cancelButton": { "text": "취소", "label": "취소를 클릭하세요" } } }, "zh": { "deleteButton": { "text": "删除字典", "label": "单击以删除字典" }, "resetButton": { "text": "重置所有更改", "label": "单击以重置所有更改" }, "saveButton": { "text": "保存更改", "label": "单击保存更改" }, "publishButton": { "text": "发布字典", "label": "单击以发布字典" }, "downloadButton": { "text": "下载", "label": "单击下载" }, "confirmation": { "title": "确认", "message": "这将覆盖现有的字典。你确定要继续吗?", "confirmButton": { "text": "确认", "label": "单击确认" }, "cancelButton": { "text": "取消", "label": "单击取消" } } }, "it": { "deleteButton": { "text": "Elimina dizionario", "label": "Fai clic per eliminare il dizionario" }, "resetButton": { "text": "Reimposta tutte le modifiche", "label": "Fai clic per ripristinare tutte le modifiche" }, "saveButton": { "text": "Salva le modifiche", "label": "Fai clic per salvare le modifiche" }, "publishButton": { "text": "Pubblica dizionario", "label": "Fai clic per pubblicare il dizionario" }, "downloadButton": { "text": "Scarica", "label": "Fai clic per scaricare" }, "confirmation": { "title": "Conferma", "message": "Questo sovrascriverà il dizionario esistente. Sei sicuro di voler continuare?", "confirmButton": { "text": "Conferma", "label": "Fai clic per confermare" }, "cancelButton": { "text": "Annulla", "label": "Fai clic per annullare" } } }, "pt": { "deleteButton": { "text": "Excluir dicionário", "label": "Clique para excluir o dicionário" }, "resetButton": { "text": "Redefinir todas as alterações", "label": "Clique para redefinir todas as alterações" }, "saveButton": { "text": "Salvar alterações", "label": "Clique para salvar alterações" }, "publishButton": { "text": "Publicar dicionário", "label": "Clique para publicar dicionário" }, "downloadButton": { "text": "Baixar", "label": "Clique para baixar" }, "confirmation": { "title": "Confirmação", "message": "Isso sobrescreverá o dicionário existente. Você tem certeza de que deseja continuar?", "confirmButton": { "text": "Confirmar", "label": "Clique para confirmar" }, "cancelButton": { "text": "Cancelar", "label": "Clique para cancelar" } } }, "hi": { "deleteButton": { "text": "शब्दकोश हटाएं", "label": "शब्दकोश हटाने के लिए क्लिक करें" }, "resetButton": { "text": "सभी परिवर्तनों को रीसेट करें", "label": "सभी परिवर्तनों को रीसेट करने के लिए क्लिक करें" }, "saveButton": { "text": "परिवर्तनों को सहेजें", "label": "परिवर्तनों को सहेजने के लिए क्लिक करें" }, "publishButton": { "text": "शब्दकोश प्रकाशित करें", "label": "शब्दकोश प्रकाशित करने के लिए क्लिक करें" }, "downloadButton": { "text": "डाउनलोड", "label": "डाउनलोड करने के लिए क्लिक करें" }, "confirmation": { "title": "पुष्टि करें", "message": "यह मौजूदा शब्दकोश को ओवरराइट करने जारी है। आप क्या आप जारी रखना चाहते हैं?", "confirmButton": { "text": "पुष्टि करें", "label": "पुष्टि करने के लिए क्लिक करें" }, "cancelButton": { "text": "रद्द करें", "label": "रद्द करने के लिए क्लिक करें" } } }, "ar": { "deleteButton": { "text": "حذف القاموس", "label": "انقر لحذف القاموس" }, "resetButton": { "text": "إعادة تعيين جميع التغييرات", "label": "انقر لإعادة تعيين جميع التغييرات" }, "saveButton": { "text": "احفظ التغييرات", "label": "انقر لحفظ التغييرات" }, "publishButton": { "text": "نشر القاموس", "label": "انقر لنشر القاموس" }, "downloadButton": { "text": "تنزيل", "label": "انقر لتنزيل" }, "confirmation": { "title": "تأكيد", "message": "سيتم الكتابة على القاموس الحالي. هل أنت متأكد من أنك تريد المتابعة؟", "confirmButton": { "text": "تأكيد", "label": "انقر لتأكيد" }, "cancelButton": { "text": "إلغاء", "label": "انقر لإلغاء" } } }, "ru": { "deleteButton": { "text": "Удалить словарь", "label": "Нажмите, чтобы удалить словарь" }, "resetButton": { "text": "Сбросить все изменения", "label": "Нажмите, чтобы сбросить все изменения" }, "saveButton": { "text": "Сохранить изменения", "label": "Нажмите, чтобы сохранить изменения" }, "publishButton": { "text": "Опубликовать словарь", "label": "Нажмите, чтобы опубликовать словарь" }, "downloadButton": { "text": "Скачать", "label": "Нажмите, чтобы скачать" }, "confirmation": { "title": "Подтверждение", "message": "Это перезапишет существующий словарь. Вы уверены, что хотите продолжить?", "confirmButton": { "text": "Подтвердить", "label": "Нажмите, чтобы подтвердить" }, "cancelButton": { "text": "Отмена", "label": "Нажмите, чтобы отменить" } } } } };
|
|
47948
|
+
const localIds$e = ["save-dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"];
|
|
47429
47949
|
const _T0SfS5x6SHrzZMCwRUVc = {
|
|
47430
|
-
key: key$
|
|
47431
|
-
content: content$
|
|
47432
|
-
localIds: localIds$
|
|
47950
|
+
key: key$e,
|
|
47951
|
+
content: content$e,
|
|
47952
|
+
localIds: localIds$e
|
|
47433
47953
|
};
|
|
47434
47954
|
const SaveForm = ({
|
|
47435
47955
|
dictionary,
|
|
@@ -47988,6 +48508,13 @@ const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
|
47988
48508
|
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
47989
48509
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
47990
48510
|
$ZodType.init(inst, def);
|
|
48511
|
+
Object.assign(inst["~standard"], {
|
|
48512
|
+
jsonSchema: {
|
|
48513
|
+
input: createStandardJSONSchemaMethod(inst, "input"),
|
|
48514
|
+
output: createStandardJSONSchemaMethod(inst, "output")
|
|
48515
|
+
}
|
|
48516
|
+
});
|
|
48517
|
+
inst.toJSONSchema = createToJSONSchemaMethod(inst, {});
|
|
47991
48518
|
inst.def = def;
|
|
47992
48519
|
inst.type = def.type;
|
|
47993
48520
|
Object.defineProperty(inst, "_def", { value: def });
|
|
@@ -48060,6 +48587,7 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
48060
48587
|
const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
48061
48588
|
$ZodString.init(inst, def);
|
|
48062
48589
|
ZodType.init(inst, def);
|
|
48590
|
+
inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json);
|
|
48063
48591
|
const bag = inst._zod.bag;
|
|
48064
48592
|
inst.format = bag.format ?? null;
|
|
48065
48593
|
inst.minLength = bag.minimum ?? null;
|
|
@@ -48197,6 +48725,7 @@ const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
|
|
|
48197
48725
|
const ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
|
|
48198
48726
|
$ZodUnknown.init(inst, def);
|
|
48199
48727
|
ZodType.init(inst, def);
|
|
48728
|
+
inst._zod.processJSONSchema = (ctx, json, params) => unknownProcessor();
|
|
48200
48729
|
});
|
|
48201
48730
|
function unknown() {
|
|
48202
48731
|
return _unknown(ZodUnknown);
|
|
@@ -48204,6 +48733,7 @@ function unknown() {
|
|
|
48204
48733
|
const ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
|
|
48205
48734
|
$ZodNever.init(inst, def);
|
|
48206
48735
|
ZodType.init(inst, def);
|
|
48736
|
+
inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json);
|
|
48207
48737
|
});
|
|
48208
48738
|
function never(params) {
|
|
48209
48739
|
return _never(ZodNever, params);
|
|
@@ -48211,6 +48741,7 @@ function never(params) {
|
|
|
48211
48741
|
const ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
48212
48742
|
$ZodArray.init(inst, def);
|
|
48213
48743
|
ZodType.init(inst, def);
|
|
48744
|
+
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
48214
48745
|
inst.element = def.element;
|
|
48215
48746
|
inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
|
|
48216
48747
|
inst.nonempty = (params) => inst.check(_minLength(1, params));
|
|
@@ -48224,6 +48755,7 @@ function array(element, params) {
|
|
|
48224
48755
|
const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
48225
48756
|
$ZodObjectJIT.init(inst, def);
|
|
48226
48757
|
ZodType.init(inst, def);
|
|
48758
|
+
inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
|
|
48227
48759
|
defineLazy(inst, "shape", () => {
|
|
48228
48760
|
return def.shape;
|
|
48229
48761
|
});
|
|
@@ -48256,6 +48788,7 @@ function object(shape, params) {
|
|
|
48256
48788
|
const ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
|
|
48257
48789
|
$ZodUnion.init(inst, def);
|
|
48258
48790
|
ZodType.init(inst, def);
|
|
48791
|
+
inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
|
|
48259
48792
|
inst.options = def.options;
|
|
48260
48793
|
});
|
|
48261
48794
|
function union(options, params) {
|
|
@@ -48268,6 +48801,7 @@ function union(options, params) {
|
|
|
48268
48801
|
const ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
|
|
48269
48802
|
$ZodIntersection.init(inst, def);
|
|
48270
48803
|
ZodType.init(inst, def);
|
|
48804
|
+
inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
|
|
48271
48805
|
});
|
|
48272
48806
|
function intersection(left, right) {
|
|
48273
48807
|
return new ZodIntersection({
|
|
@@ -48279,6 +48813,7 @@ function intersection(left, right) {
|
|
|
48279
48813
|
const ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
|
|
48280
48814
|
$ZodEnum.init(inst, def);
|
|
48281
48815
|
ZodType.init(inst, def);
|
|
48816
|
+
inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json);
|
|
48282
48817
|
inst.enum = def.entries;
|
|
48283
48818
|
inst.options = Object.values(def.entries);
|
|
48284
48819
|
const keys = new Set(Object.keys(def.entries));
|
|
@@ -48324,6 +48859,7 @@ function _enum(values, params) {
|
|
|
48324
48859
|
const ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
48325
48860
|
$ZodTransform.init(inst, def);
|
|
48326
48861
|
ZodType.init(inst, def);
|
|
48862
|
+
inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx);
|
|
48327
48863
|
inst._zod.parse = (payload, _ctx) => {
|
|
48328
48864
|
if (_ctx.direction === "backward") {
|
|
48329
48865
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -48361,6 +48897,7 @@ function transform(fn) {
|
|
|
48361
48897
|
const ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def) => {
|
|
48362
48898
|
$ZodOptional.init(inst, def);
|
|
48363
48899
|
ZodType.init(inst, def);
|
|
48900
|
+
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
48364
48901
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
48365
48902
|
});
|
|
48366
48903
|
function optional(innerType) {
|
|
@@ -48372,6 +48909,7 @@ function optional(innerType) {
|
|
|
48372
48909
|
const ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {
|
|
48373
48910
|
$ZodNullable.init(inst, def);
|
|
48374
48911
|
ZodType.init(inst, def);
|
|
48912
|
+
inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
|
|
48375
48913
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
48376
48914
|
});
|
|
48377
48915
|
function nullable(innerType) {
|
|
@@ -48383,6 +48921,7 @@ function nullable(innerType) {
|
|
|
48383
48921
|
const ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def) => {
|
|
48384
48922
|
$ZodDefault.init(inst, def);
|
|
48385
48923
|
ZodType.init(inst, def);
|
|
48924
|
+
inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
|
|
48386
48925
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
48387
48926
|
inst.removeDefault = inst.unwrap;
|
|
48388
48927
|
});
|
|
@@ -48398,6 +48937,7 @@ function _default(innerType, defaultValue) {
|
|
|
48398
48937
|
const ZodPrefault = /* @__PURE__ */ $constructor("ZodPrefault", (inst, def) => {
|
|
48399
48938
|
$ZodPrefault.init(inst, def);
|
|
48400
48939
|
ZodType.init(inst, def);
|
|
48940
|
+
inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
|
|
48401
48941
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
48402
48942
|
});
|
|
48403
48943
|
function prefault(innerType, defaultValue) {
|
|
@@ -48412,6 +48952,7 @@ function prefault(innerType, defaultValue) {
|
|
|
48412
48952
|
const ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def) => {
|
|
48413
48953
|
$ZodNonOptional.init(inst, def);
|
|
48414
48954
|
ZodType.init(inst, def);
|
|
48955
|
+
inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
|
|
48415
48956
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
48416
48957
|
});
|
|
48417
48958
|
function nonoptional(innerType, params) {
|
|
@@ -48424,6 +48965,7 @@ function nonoptional(innerType, params) {
|
|
|
48424
48965
|
const ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {
|
|
48425
48966
|
$ZodCatch.init(inst, def);
|
|
48426
48967
|
ZodType.init(inst, def);
|
|
48968
|
+
inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
|
|
48427
48969
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
48428
48970
|
inst.removeCatch = inst.unwrap;
|
|
48429
48971
|
});
|
|
@@ -48437,6 +48979,7 @@ function _catch(innerType, catchValue) {
|
|
|
48437
48979
|
const ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {
|
|
48438
48980
|
$ZodPipe.init(inst, def);
|
|
48439
48981
|
ZodType.init(inst, def);
|
|
48982
|
+
inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
|
|
48440
48983
|
inst.in = def.in;
|
|
48441
48984
|
inst.out = def.out;
|
|
48442
48985
|
});
|
|
@@ -48451,6 +48994,7 @@ function pipe(in_, out) {
|
|
|
48451
48994
|
const ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
48452
48995
|
$ZodReadonly.init(inst, def);
|
|
48453
48996
|
ZodType.init(inst, def);
|
|
48997
|
+
inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
|
|
48454
48998
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
48455
48999
|
});
|
|
48456
49000
|
function readonly(innerType) {
|
|
@@ -48462,6 +49006,7 @@ function readonly(innerType) {
|
|
|
48462
49006
|
const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
48463
49007
|
$ZodCustom.init(inst, def);
|
|
48464
49008
|
ZodType.init(inst, def);
|
|
49009
|
+
inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx);
|
|
48465
49010
|
});
|
|
48466
49011
|
function refine(fn, _params = {}) {
|
|
48467
49012
|
return _refine(ZodCustom, fn, _params);
|
|
@@ -48576,13 +49121,13 @@ const LocaleSwitcherContentProvider = ({ availableLocales, defaultSelectedLocale
|
|
|
48576
49121
|
children
|
|
48577
49122
|
});
|
|
48578
49123
|
};
|
|
48579
|
-
const key$
|
|
48580
|
-
const content$
|
|
48581
|
-
const localIds$
|
|
49124
|
+
const key$d = "locale-switcher-content";
|
|
49125
|
+
const content$d = { "nodeType": "translation", "translation": { "en": { "localeSwitcherLabel": "Language switcher", "languageListLabel": "Language list", "switchTo": "Switch to", "searchInput": { "text": "Search Locale", "placeholder": "Search a locale", "ariaLabel": "Language search" }, "seeAllLocalesSwitch": { "true": "See all locales", "false": "See only selected locales" } }, "en-GB": { "localeSwitcherLabel": "Language switcher", "languageListLabel": "Language list", "switchTo": "Switch to", "searchInput": { "text": "Search Locale", "placeholder": "Search a locale", "ariaLabel": "Language search" }, "seeAllLocalesSwitch": { "true": "See all locales", "false": "See only selected locales" } }, "fr": { "localeSwitcherLabel": "Changer de langue", "languageListLabel": "Liste des langues", "switchTo": "Passer à", "searchInput": { "text": "Rechercher la locale", "placeholder": "Rechercher une locale", "ariaLabel": "Recherche de langue" }, "seeAllLocalesSwitch": { "true": "Voir toutes les langues", "false": "Voir seulement les langues sélectionnées" } }, "es": { "localeSwitcherLabel": "Cambiar idioma", "languageListLabel": "Lista de idiomas", "switchTo": "Cambiar a", "searchInput": { "text": "Buscar idioma", "placeholder": "Buscar un idioma", "ariaLabel": "Búsqueda de idioma" }, "seeAllLocalesSwitch": { "true": "Ver todos los idiomas", "false": "Ver solo los idiomas seleccionados" } }, "de": { "localeSwitcherLabel": "Sprachwechsler", "languageListLabel": "Sprachliste", "switchTo": "Wechseln Sie zu", "searchInput": { "text": "Sprache durchsuchen", "placeholder": "Sprache suchen", "ariaLabel": "Sprachsuche" }, "seeAllLocalesSwitch": { "true": "Alle Sprachen anzeigen", "false": "Nur ausgewählte Sprachen anzeigen" } }, "ja": { "localeSwitcherLabel": "言語スイッチャー", "languageListLabel": "言語リスト", "switchTo": "に切り替える", "searchInput": { "text": "ロケールを検索", "placeholder": "ロケールを検索", "ariaLabel": "言語検索" }, "seeAllLocalesSwitch": { "true": "すべての言語を表示", "false": "選択された言語のみを表示" } }, "ko": { "localeSwitcherLabel": "언어 스위치", "languageListLabel": "언어 목록", "switchTo": "전환", "searchInput": { "text": "언어 검색", "placeholder": "언어 검색", "ariaLabel": "언어 검색" }, "seeAllLocalesSwitch": { "true": "모든 언어 보기", "false": "선택한 언어만 보기" } }, "zh": { "localeSwitcherLabel": "语言切换器", "languageListLabel": "语言列表", "switchTo": "切换到", "searchInput": { "text": "搜索语言", "placeholder": "搜索语言", "ariaLabel": "语言搜索" }, "seeAllLocalesSwitch": { "true": "查看所有语言", "false": "仅查看选定的语言" } }, "it": { "localeSwitcherLabel": "Cambia lingua", "languageListLabel": "Elenco lingue", "switchTo": "Passa a", "searchInput": { "text": "Cerca lingua", "placeholder": "Cerca una lingua", "ariaLabel": "Ricerca lingua" }, "seeAllLocalesSwitch": { "true": "Vedi tutte le lingue", "false": "Vedi solo le lingue selezionate" } }, "pt": { "localeSwitcherLabel": "Mudar idioma", "languageListLabel": "Lista de idiomas", "switchTo": "Mudar para", "searchInput": { "text": "Pesquisar idioma", "placeholder": "Pesquisar um idioma", "ariaLabel": "Pesquisa de idioma" }, "seeAllLocalesSwitch": { "true": "Ver todos os idiomas", "false": "Ver apenas os idiomas selecionados" } }, "hi": { "localeSwitcherLabel": "भाषा स्विचर", "languageListLabel": "भाषा सूची", "switchTo": "स्विच करें", "searchInput": { "text": "भाषा खोजें", "placeholder": "भाषा खोजें", "ariaLabel": "भाषा खोजें" }, "seeAllLocalesSwitch": { "true": "सभी भाषाओं को देखें", "false": "केवल चुने गए भाषाओं को देखें" } }, "ar": { "localeSwitcherLabel": "مبدل اللغة", "languageListLabel": "قائمة اللغات", "switchTo": "التبديل إلى", "searchInput": { "text": "بحث اللغة", "placeholder": "بحث اللغة", "ariaLabel": "بحث اللغة" }, "seeAllLocalesSwitch": { "true": "عرض جميع اللغات", "false": "عرض اللغات المحددة فقط" } }, "ru": { "localeSwitcherLabel": "Переключатель языка", "languageListLabel": "Список языков", "switchTo": "Переключиться на", "searchInput": { "text": "Поиск языка", "placeholder": "Поиск языка", "ariaLabel": "Поиск языка" }, "seeAllLocalesSwitch": { "true": "Показать все языки", "false": "Показать только выбранные языки" } } } };
|
|
49126
|
+
const localIds$d = ["locale-switcher-content::local::../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts"];
|
|
48582
49127
|
const _zmGqpnLlhuhC3amqT2id = {
|
|
48583
|
-
key: key$
|
|
48584
|
-
content: content$
|
|
48585
|
-
localIds: localIds$
|
|
49128
|
+
key: key$d,
|
|
49129
|
+
content: content$d,
|
|
49130
|
+
localIds: localIds$d
|
|
48586
49131
|
};
|
|
48587
49132
|
function isArray(value) {
|
|
48588
49133
|
return !Array.isArray ? getTag$1(value) === "[object Array]" : Array.isArray(value);
|
|
@@ -50075,13 +50620,13 @@ const LocaleSwitcherContent = ({
|
|
|
50075
50620
|
})
|
|
50076
50621
|
});
|
|
50077
50622
|
};
|
|
50078
|
-
const key$
|
|
50079
|
-
const content$
|
|
50080
|
-
const localIds$
|
|
50623
|
+
const key$c = "expand-collapse";
|
|
50624
|
+
const content$c = { "nodeType": "translation", "translation": { "en": { "expandCollapseContent": { "nodeType": "condition", "condition": { "true": "Show all", "false": "Show less" } } }, "en-GB": { "expandCollapseContent": { "nodeType": "condition", "condition": { "true": "Show all", "false": "Show less" } } }, "fr": { "expandCollapseContent": { "nodeType": "condition", "condition": { "true": "Afficher tout", "false": "Afficher moins" } } }, "es": { "expandCollapseContent": { "nodeType": "condition", "condition": { "true": "Mostrar todo", "false": "Mostrar menos" } } }, "de": { "expandCollapseContent": { "nodeType": "condition", "condition": { "true": "Mehr anzeigen", "false": "Weniger anzeigen" } } }, "ja": { "expandCollapseContent": { "nodeType": "condition", "condition": { "true": "すべて表示", "false": "表示を減らす" } } }, "ko": { "expandCollapseContent": { "nodeType": "condition", "condition": { "true": "모두 보기", "false": "간략히 보기" } } }, "zh": { "expandCollapseContent": { "nodeType": "condition", "condition": { "true": "显示全部", "false": "显示较少" } } }, "it": { "expandCollapseContent": { "nodeType": "condition", "condition": { "true": "Mostra tutto", "false": "Mostra meno" } } }, "pt": { "expandCollapseContent": { "nodeType": "condition", "condition": { "true": "Mostrar tudo", "false": "Mostrar menos" } } }, "hi": { "expandCollapseContent": { "nodeType": "condition", "condition": { "true": "सभी दिखाएँ", "false": "कम दिखाएँ" } } }, "ar": { "expandCollapseContent": { "nodeType": "condition", "condition": { "true": "عرض الكل", "false": "عرض أقل" } } }, "ru": { "expandCollapseContent": { "nodeType": "condition", "condition": { "true": "Показать все", "false": "Показать меньше" } } } } };
|
|
50625
|
+
const localIds$c = ["expand-collapse::local::../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts"];
|
|
50081
50626
|
const _45YmjbWLtB85OKkfb0rA = {
|
|
50082
|
-
key: key$
|
|
50083
|
-
content: content$
|
|
50084
|
-
localIds: localIds$
|
|
50627
|
+
key: key$c,
|
|
50628
|
+
content: content$c,
|
|
50629
|
+
localIds: localIds$c
|
|
50085
50630
|
};
|
|
50086
50631
|
const DEFAULT_MIN_HEIGHT = 700;
|
|
50087
50632
|
const ExpandCollapse = ({
|
|
@@ -50132,7 +50677,7 @@ const CodeDefault = ({ children }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div
|
|
|
50132
50677
|
}, `line-${index2}-${line.slice(0, 10)}`)) })
|
|
50133
50678
|
})
|
|
50134
50679
|
});
|
|
50135
|
-
const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-
|
|
50680
|
+
const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-Cf2gZa5F.js"), true ? [] : void 0).then((mod) => ({ default: mod.CodeBlockShiki })));
|
|
50136
50681
|
const CodeBlock = ({ className, onChange, isEditable, children, lang, isDarkMode, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
50137
50682
|
className: cn$2("flex w-full min-w-0 max-w-full overflow-x-auto", className),
|
|
50138
50683
|
...props,
|
|
@@ -50162,7 +50707,7 @@ const PopoverStatic = ({ children, className, identifier, ...props }) => /* @__P
|
|
|
50162
50707
|
...props,
|
|
50163
50708
|
children
|
|
50164
50709
|
});
|
|
50165
|
-
const Detail = ({ children, isHidden: isHidden2 = void 0, isOverable = true, isFocusable = false, xAlign = PopoverXAlign.START, yAlign = PopoverYAlign.BELOW, identifier, className, displayArrow = true, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx(Container, {
|
|
50710
|
+
const Detail$1 = ({ children, isHidden: isHidden2 = void 0, isOverable = true, isFocusable = false, xAlign = PopoverXAlign.START, yAlign = PopoverYAlign.BELOW, identifier, className, displayArrow = true, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx(Container, {
|
|
50166
50711
|
transparency: "sm",
|
|
50167
50712
|
role: "group",
|
|
50168
50713
|
"aria-hidden": isHidden2,
|
|
@@ -50172,11 +50717,11 @@ const Detail = ({ children, isHidden: isHidden2 = void 0, isOverable = true, isF
|
|
|
50172
50717
|
...props,
|
|
50173
50718
|
children
|
|
50174
50719
|
});
|
|
50175
|
-
PopoverStatic.Detail = Detail;
|
|
50720
|
+
PopoverStatic.Detail = Detail$1;
|
|
50176
50721
|
const PopoverComponent = (props) => {
|
|
50177
50722
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(PopoverStatic, { ...props });
|
|
50178
50723
|
};
|
|
50179
|
-
const Detail
|
|
50724
|
+
const Detail = ({ xAlign = PopoverXAlign.START, yAlign = PopoverYAlign.BELOW, ...props }) => {
|
|
50180
50725
|
const popoverRef = reactExports.useRef(null);
|
|
50181
50726
|
const [computedXAlign, setComputedXAlign] = reactExports.useState(xAlign);
|
|
50182
50727
|
const [computedYAlign, setComputedYAlign] = reactExports.useState(yAlign);
|
|
@@ -50253,7 +50798,7 @@ const Detail$1 = ({ xAlign = PopoverXAlign.START, yAlign = PopoverYAlign.BELOW,
|
|
|
50253
50798
|
xAlign,
|
|
50254
50799
|
yAlign
|
|
50255
50800
|
]);
|
|
50256
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Detail, {
|
|
50801
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Detail$1, {
|
|
50257
50802
|
...props,
|
|
50258
50803
|
xAlign: computedXAlign,
|
|
50259
50804
|
yAlign: computedYAlign,
|
|
@@ -50265,7 +50810,7 @@ const Detail$1 = ({ xAlign = PopoverXAlign.START, yAlign = PopoverYAlign.BELOW,
|
|
|
50265
50810
|
});
|
|
50266
50811
|
};
|
|
50267
50812
|
const Popover = PopoverComponent;
|
|
50268
|
-
Popover.Detail = Detail
|
|
50813
|
+
Popover.Detail = Detail;
|
|
50269
50814
|
const CodeContext = reactExports.createContext({
|
|
50270
50815
|
packageManager: "npm",
|
|
50271
50816
|
setPackageManager: () => {
|
|
@@ -50305,8 +50850,23 @@ const CodeConditionalRender = ({ children, ...props }) => {
|
|
|
50305
50850
|
if ((isPackageManagerUndefined || isPackageManagerSelected) && (isCodeFormatUndefined || isCodeFormatSelected) && (isContentDeclarationFormatUndefined || isContentDeclarationFormatSelected)) return children;
|
|
50306
50851
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
|
|
50307
50852
|
};
|
|
50853
|
+
const key$b = "code-selectors";
|
|
50854
|
+
const content$b = { "nodeType": "translation", "translation": { "en": { "packageManager": { "label": "Select package manager" }, "codeFormat": { "label": "Select code format" }, "contentDeclarationFormat": { "label": "Select dictionary format" } }, "en-GB": { "packageManager": { "label": "Select package manager" }, "codeFormat": { "label": "Select code format" }, "contentDeclarationFormat": { "label": "Select dictionary format" } }, "fr": { "packageManager": { "label": "Sélectionner le gestionnaire de paquets" }, "codeFormat": { "label": "Sélectionner le format de code" }, "contentDeclarationFormat": { "label": "Sélectionner le format de dictionnaire" } }, "es": { "packageManager": { "label": "Seleccionar gestor de paquetes" }, "codeFormat": { "label": "Seleccionar formato de código" }, "contentDeclarationFormat": { "label": "Seleccionar formato de diccionario" } }, "de": { "packageManager": { "label": "Paketmanager auswählen" }, "codeFormat": { "label": "Code-Format auswählen" }, "contentDeclarationFormat": { "label": "Wörterbuchformat auswählen" } }, "ja": { "packageManager": { "label": "パッケージマネージャーを選択" }, "codeFormat": { "label": "コード形式を選択" }, "contentDeclarationFormat": { "label": "辞書形式を選択" } }, "ko": { "packageManager": { "label": "패키지 관리자 선택" }, "codeFormat": { "label": "코드 형식 선택" }, "contentDeclarationFormat": { "label": "사전 형식 선택" } }, "zh": { "packageManager": { "label": "选择包管理器" }, "codeFormat": { "label": "选择代码格式" }, "contentDeclarationFormat": { "label": "选择字典格式" } }, "it": { "packageManager": { "label": "Seleziona il gestore dei pacchetti" }, "codeFormat": { "label": "Seleziona il formato del codice" }, "contentDeclarationFormat": { "label": "Seleziona il formato del dizionario" } }, "pt": { "packageManager": { "label": "Selecionar gerenciador de pacotes" }, "codeFormat": { "label": "Selecionar formato de código" }, "contentDeclarationFormat": { "label": "Selecionar formato de dicionário" } }, "hi": { "packageManager": { "label": "पैकेज प्रबंधक चुनें" }, "codeFormat": { "label": "कोड प्रारूप चुनें" }, "contentDeclarationFormat": { "label": "शब्दकोश प्रारूप चुनें" } }, "ar": { "packageManager": { "label": "اختر مدير الحزم" }, "codeFormat": { "label": "اختر تنسيق الكود" }, "contentDeclarationFormat": { "label": "اختر تنسيق القاموس" } }, "ru": { "packageManager": { "label": "Выбрать менеджер пакетов" }, "codeFormat": { "label": "Выбрать формат кода" }, "contentDeclarationFormat": { "label": "Выбрать формат словаря" } } } };
|
|
50855
|
+
const localIds$b = ["code-selectors::local::../@intlayer/design-system/src/components/IDE/selectors.content.ts"];
|
|
50856
|
+
const _VaxfTMdlIxLlHVFaeieC = {
|
|
50857
|
+
key: key$b,
|
|
50858
|
+
content: content$b,
|
|
50859
|
+
localIds: localIds$b
|
|
50860
|
+
};
|
|
50308
50861
|
const CodeFormatSelector = () => {
|
|
50309
|
-
const {
|
|
50862
|
+
const {
|
|
50863
|
+
codeFormat,
|
|
50864
|
+
setCodeFormat,
|
|
50865
|
+
setContentDeclarationFormat
|
|
50866
|
+
} = useCodeContext();
|
|
50867
|
+
const {
|
|
50868
|
+
codeFormat: codeFormatContent
|
|
50869
|
+
} = useDictionary(_VaxfTMdlIxLlHVFaeieC);
|
|
50310
50870
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Select, {
|
|
50311
50871
|
value: codeFormat,
|
|
50312
50872
|
onValueChange: (value) => {
|
|
@@ -50315,49 +50875,56 @@ const CodeFormatSelector = () => {
|
|
|
50315
50875
|
},
|
|
50316
50876
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Trigger, {
|
|
50317
50877
|
className: "py-1",
|
|
50318
|
-
|
|
50319
|
-
|
|
50320
|
-
|
|
50878
|
+
"aria-label": codeFormatContent.label,
|
|
50879
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Value, {
|
|
50880
|
+
placeholder: "Code Format"
|
|
50881
|
+
})
|
|
50882
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(Select.Content, {
|
|
50883
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50321
50884
|
value: "typescript",
|
|
50322
50885
|
children: "TypeScript"
|
|
50323
|
-
}),
|
|
50324
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50886
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50325
50887
|
value: "esm",
|
|
50326
50888
|
children: "ESM"
|
|
50327
|
-
}),
|
|
50328
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50889
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50329
50890
|
value: "commonjs",
|
|
50330
50891
|
children: "CommonJS"
|
|
50331
|
-
})
|
|
50332
|
-
|
|
50892
|
+
})]
|
|
50893
|
+
})]
|
|
50333
50894
|
});
|
|
50334
50895
|
};
|
|
50335
50896
|
const ContentDeclarationFormatSelector = () => {
|
|
50336
|
-
const {
|
|
50897
|
+
const {
|
|
50898
|
+
contentDeclarationFormat,
|
|
50899
|
+
setContentDeclarationFormat
|
|
50900
|
+
} = useCodeContext();
|
|
50901
|
+
const {
|
|
50902
|
+
contentDeclarationFormat: contentDeclarationFormatContent
|
|
50903
|
+
} = useDictionary(_VaxfTMdlIxLlHVFaeieC);
|
|
50337
50904
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Select, {
|
|
50338
50905
|
value: contentDeclarationFormat,
|
|
50339
50906
|
onValueChange: setContentDeclarationFormat,
|
|
50340
50907
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Trigger, {
|
|
50341
50908
|
className: "py-1",
|
|
50342
|
-
|
|
50343
|
-
|
|
50344
|
-
|
|
50909
|
+
"aria-label": contentDeclarationFormatContent.label,
|
|
50910
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Value, {
|
|
50911
|
+
placeholder: "Dictionary Format"
|
|
50912
|
+
})
|
|
50913
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(Select.Content, {
|
|
50914
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50345
50915
|
value: "typescript",
|
|
50346
50916
|
children: "TypeScript"
|
|
50347
|
-
}),
|
|
50348
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50917
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50349
50918
|
value: "commonjs",
|
|
50350
50919
|
children: "CommonJS"
|
|
50351
|
-
}),
|
|
50352
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50920
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50353
50921
|
value: "esm",
|
|
50354
50922
|
children: "ESM"
|
|
50355
|
-
}),
|
|
50356
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50923
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50357
50924
|
value: "json",
|
|
50358
50925
|
children: "JSON"
|
|
50359
|
-
})
|
|
50360
|
-
|
|
50926
|
+
})]
|
|
50927
|
+
})]
|
|
50361
50928
|
});
|
|
50362
50929
|
};
|
|
50363
50930
|
const key$a = "code";
|
|
@@ -50393,31 +50960,37 @@ const CopyCode = ({
|
|
|
50393
50960
|
});
|
|
50394
50961
|
};
|
|
50395
50962
|
const PackageManagerSelector = () => {
|
|
50396
|
-
const {
|
|
50963
|
+
const {
|
|
50964
|
+
packageManager,
|
|
50965
|
+
setPackageManager
|
|
50966
|
+
} = useCodeContext();
|
|
50967
|
+
const {
|
|
50968
|
+
packageManager: packageManagerContent
|
|
50969
|
+
} = useDictionary(_VaxfTMdlIxLlHVFaeieC);
|
|
50397
50970
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Select, {
|
|
50398
50971
|
value: packageManager,
|
|
50399
50972
|
onValueChange: setPackageManager,
|
|
50400
50973
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Trigger, {
|
|
50401
50974
|
className: "py-1",
|
|
50402
|
-
|
|
50403
|
-
|
|
50404
|
-
|
|
50975
|
+
"aria-label": packageManagerContent.label,
|
|
50976
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Value, {
|
|
50977
|
+
placeholder: "Package Manager"
|
|
50978
|
+
})
|
|
50979
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(Select.Content, {
|
|
50980
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50405
50981
|
value: "npm",
|
|
50406
50982
|
children: "npm"
|
|
50407
|
-
}),
|
|
50408
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50983
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50409
50984
|
value: "pnpm",
|
|
50410
50985
|
children: "pnpm"
|
|
50411
|
-
}),
|
|
50412
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50986
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50413
50987
|
value: "yarn",
|
|
50414
50988
|
children: "yarn"
|
|
50415
|
-
}),
|
|
50416
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50989
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
|
|
50417
50990
|
value: "bun",
|
|
50418
50991
|
children: "bun"
|
|
50419
|
-
})
|
|
50420
|
-
|
|
50992
|
+
})]
|
|
50993
|
+
})]
|
|
50421
50994
|
});
|
|
50422
50995
|
};
|
|
50423
50996
|
const MIN_HEIGHT = 700;
|
|
@@ -52342,7 +52915,7 @@ const renameKey = (obj, oldKey, newKey) => {
|
|
|
52342
52915
|
} else newObj[key2] = obj[key2];
|
|
52343
52916
|
return newObj;
|
|
52344
52917
|
};
|
|
52345
|
-
const ContentEditorInput = ({ children, onContentChange, disabled, validate, additionalButtons, ...props }) => {
|
|
52918
|
+
const ContentEditorInput$1 = ({ children, onContentChange, disabled, validate, additionalButtons, ...props }) => {
|
|
52346
52919
|
const [newValue, setNewValue] = reactExports.useState(children);
|
|
52347
52920
|
const [resetIncrementor, setResetIncrementor] = reactExports.useState(0);
|
|
52348
52921
|
const isEdited = newValue !== children;
|
|
@@ -52432,7 +53005,7 @@ const useUser = () => {
|
|
|
52432
53005
|
logout: logoutHandle
|
|
52433
53006
|
};
|
|
52434
53007
|
};
|
|
52435
|
-
const ContentEditorTextArea = ({ children, onContentChange, disabled, validate, additionalButtons, ...props }) => {
|
|
53008
|
+
const ContentEditorTextArea$1 = ({ children, onContentChange, disabled, validate, additionalButtons, ...props }) => {
|
|
52436
53009
|
const { isAuthenticated } = useUser();
|
|
52437
53010
|
const [newValue, setNewValue] = reactExports.useState(children);
|
|
52438
53011
|
const [resetIncrementor, setResetIncrementor] = reactExports.useState(0);
|
|
@@ -52579,7 +53152,7 @@ const EnumKeyInput = ({ value, onChange }) => {
|
|
|
52579
53152
|
})]
|
|
52580
53153
|
});
|
|
52581
53154
|
};
|
|
52582
|
-
const ContentEditorTextArea
|
|
53155
|
+
const ContentEditorTextArea = ({
|
|
52583
53156
|
keyPath,
|
|
52584
53157
|
dictionary,
|
|
52585
53158
|
...props
|
|
@@ -52593,7 +53166,7 @@ const ContentEditorTextArea$1 = ({
|
|
|
52593
53166
|
mutate: auditContentDeclarationField,
|
|
52594
53167
|
isPending: isAuditing
|
|
52595
53168
|
} = useAuditContentDeclarationField();
|
|
52596
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorTextArea, {
|
|
53169
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorTextArea$1, {
|
|
52597
53170
|
variant: InputVariant.DEFAULT,
|
|
52598
53171
|
onContentChange: (newValue) => addEditedContent(dictionary.localId, newValue, keyPath),
|
|
52599
53172
|
additionalButtons: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
|
|
@@ -52633,7 +53206,7 @@ const ContentEditorTextArea$1 = ({
|
|
|
52633
53206
|
...props
|
|
52634
53207
|
});
|
|
52635
53208
|
};
|
|
52636
|
-
const ContentEditorInput
|
|
53209
|
+
const ContentEditorInput = ({
|
|
52637
53210
|
keyPath,
|
|
52638
53211
|
dictionary,
|
|
52639
53212
|
...props
|
|
@@ -52641,7 +53214,7 @@ const ContentEditorInput$1 = ({
|
|
|
52641
53214
|
const {
|
|
52642
53215
|
addEditedContent
|
|
52643
53216
|
} = useEditedContent();
|
|
52644
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput, {
|
|
53217
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput$1, {
|
|
52645
53218
|
variant: InputVariant.DEFAULT,
|
|
52646
53219
|
onContentChange: (newValue) => addEditedContent(dictionary.localId, newValue, keyPath),
|
|
52647
53220
|
...props
|
|
@@ -53084,7 +53657,7 @@ const NestedTextEditor = ({
|
|
|
53084
53657
|
className: "flex w-full flex-col gap-4 p-2",
|
|
53085
53658
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, {
|
|
53086
53659
|
children: "Dictionary key"
|
|
53087
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput, {
|
|
53660
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput$1, {
|
|
53088
53661
|
"aria-label": "Edit field",
|
|
53089
53662
|
type: "text",
|
|
53090
53663
|
variant: InputVariant.DEFAULT,
|
|
@@ -53098,7 +53671,7 @@ const NestedTextEditor = ({
|
|
|
53098
53671
|
children: content2.dictionaryKey ?? ""
|
|
53099
53672
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, {
|
|
53100
53673
|
children: "Path (optional)"
|
|
53101
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput, {
|
|
53674
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput$1, {
|
|
53102
53675
|
"aria-label": "Edit field",
|
|
53103
53676
|
type: "text",
|
|
53104
53677
|
variant: InputVariant.DEFAULT,
|
|
@@ -53194,7 +53767,7 @@ const TextEditor = ({
|
|
|
53194
53767
|
});
|
|
53195
53768
|
if (nodeType === NodeType.Number) return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
53196
53769
|
className: "w-full p-2",
|
|
53197
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput
|
|
53770
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput, {
|
|
53198
53771
|
dictionary,
|
|
53199
53772
|
keyPath,
|
|
53200
53773
|
type: "number",
|
|
@@ -53204,7 +53777,7 @@ const TextEditor = ({
|
|
|
53204
53777
|
});
|
|
53205
53778
|
if (nodeType === NodeType.Text) return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
53206
53779
|
className: "w-full p-2",
|
|
53207
|
-
children: typeof renderSection === "function" ? renderSection(section) : /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorTextArea
|
|
53780
|
+
children: typeof renderSection === "function" ? renderSection(section) : /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorTextArea, {
|
|
53208
53781
|
variant: InputVariant.DEFAULT,
|
|
53209
53782
|
"aria-label": "Edit field",
|
|
53210
53783
|
keyPath,
|
|
@@ -54905,10 +55478,10 @@ const useDevice = (breakpoint = "md") => {
|
|
|
54905
55478
|
const MaxWidthSmoother = ({ children, isHidden: isHidden2, minWidth = 0, align = "left", className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
54906
55479
|
className: cn$2("relative grid h-full grid-cols-[0fr] overflow-x-hidden overflow-y-hidden transition-all duration-500 ease-in-out", isHidden2 ? "" : "grid-cols-[1fr]", className),
|
|
54907
55480
|
"aria-hidden": isHidden2,
|
|
55481
|
+
inert: isHidden2 ? true : void 0,
|
|
54908
55482
|
...props,
|
|
54909
55483
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
54910
55484
|
style: { minWidth: `${minWidth}px` },
|
|
54911
|
-
tabIndex: isHidden2 !== false ? void 0 : -1,
|
|
54912
55485
|
className: cn$2(align === "right" && "ml-auto"),
|
|
54913
55486
|
children
|
|
54914
55487
|
})
|