intlayer-editor 7.5.0-canary.1 → 7.5.1

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.
Files changed (26) hide show
  1. package/client/dist/assets/{CodeBlockShiki-BZrNB-hp.js → CodeBlockShiki-BDi8XZg1.js} +4 -4
  2. package/client/dist/assets/Inter-VariableFont-c8O0ljhh.ttf +0 -0
  3. package/client/dist/assets/{bundle-web-XVNhfIcT.js → bundle-web-CNJDzNQN.js} +144 -55
  4. package/client/dist/assets/{dark-plus-D1BtfNxb.js → dark-plus-DmZ1Dzd4.js} +1 -1
  5. package/client/dist/assets/{index-BCw8xSvk.js → index-DqbmCrrm.js} +749 -135
  6. package/client/dist/assets/{index-C9tdC4Xg.css → index-xMTI_9fM.css} +7 -6
  7. package/client/dist/assets/{rose-pine-LL9gXmP2.js → rose-pine-B-kZ4Z9q.js} +1 -1
  8. package/client/dist/assets/{rose-pine-dawn-CH9zdisO.js → rose-pine-dawn-efeVGdSI.js} +1 -1
  9. package/client/dist/assets/{rose-pine-moon-B1oKSfEJ.js → rose-pine-moon-DmodZNzl.js} +1 -1
  10. package/client/dist/assets/vue-BQglRdBF.js +50 -0
  11. package/client/dist/assets/{vue-html-BzXE5pTE.js → vue-html-BS551n9F.js} +1 -1
  12. package/client/dist/assets/{vue-vine-BT_ihGGO.js → vue-vine-B43RKH9N.js} +1 -1
  13. package/client/dist/index.html +2 -2
  14. package/package.json +13 -13
  15. package/server/dist/controllers/configuration.controller.cjs +2 -2
  16. package/server/dist/controllers/configuration.controller.cjs.map +1 -1
  17. package/server/dist/controllers/dictionary.controller.cjs +5 -5
  18. package/server/dist/controllers/dictionary.controller.cjs.map +1 -1
  19. package/server/dist/index.cjs +8 -8
  20. package/server/dist/index.cjs.map +1 -1
  21. package/server/dist/routes/config.routes.cjs +2 -2
  22. package/server/dist/routes/config.routes.cjs.map +1 -1
  23. package/server/dist/routes/dictionary.routes.cjs +2 -2
  24. package/server/dist/routes/dictionary.routes.cjs.map +1 -1
  25. package/client/dist/assets/Figtree-VariableFont-CuCnmeMh.ttf +0 -0
  26. package/client/dist/assets/vue-M1-XqLgv.js +0 -50
@@ -14585,26 +14585,29 @@ const createCachedConstructor = (Ctor) => {
14585
14585
  const cache = /* @__PURE__ */ new Map();
14586
14586
  function Wrapped(locales, options) {
14587
14587
  if (Ctor.name === "DisplayNames" && typeof Intl?.DisplayNames !== "function") {
14588
- console.warn([
14589
- `// Intl.DisplayNames is not supported; falling back to raw locale (${locales}). `,
14590
- `// Consider adding a polyfill as https://formatjs.io/docs/polyfills/intl-displaynames/`,
14591
- ``,
14592
- `import 'intl';`,
14593
- `import '@formatjs/intl-getcanonicallocales/polyfill';`,
14594
- `import '@formatjs/intl-locale/polyfill';`,
14595
- `import '@formatjs/intl-pluralrules/polyfill';`,
14596
- `import '@formatjs/intl-displaynames/polyfill';`,
14597
- `import '@formatjs/intl-listformat/polyfill';`,
14598
- `import '@formatjs/intl-numberformat/polyfill';`,
14599
- `import '@formatjs/intl-relativetimeformat/polyfill';`,
14600
- `import '@formatjs/intl-datetimeformat/polyfill';`,
14601
- ``,
14602
- `// Optionally add locale data`,
14603
- `import '@formatjs/intl-pluralrules/locale-data/fr';`,
14604
- `import '@formatjs/intl-numberformat/locale-data/fr';`,
14605
- `import '@formatjs/intl-datetimeformat/locale-data/fr';`
14606
- ].join("\n"));
14607
- return locales;
14588
+ {
14589
+ const message = [
14590
+ `// Intl.DisplayNames is not supported; falling back to raw locale (${locales}). `,
14591
+ `// Consider adding a polyfill as https://formatjs.io/docs/polyfills/intl-displaynames/`,
14592
+ ``,
14593
+ `import 'intl';`,
14594
+ `import '@formatjs/intl-displaynames/polyfill';`,
14595
+ `import '@formatjs/intl-getcanonicallocales/polyfill';`,
14596
+ `import '@formatjs/intl-locale/polyfill';`,
14597
+ `import '@formatjs/intl-pluralrules/polyfill';`,
14598
+ `import '@formatjs/intl-listformat/polyfill';`,
14599
+ `import '@formatjs/intl-numberformat/polyfill';`,
14600
+ `import '@formatjs/intl-relativetimeformat/polyfill';`,
14601
+ `import '@formatjs/intl-datetimeformat/polyfill';`,
14602
+ ``,
14603
+ `// Optionally add locale data`,
14604
+ `import '@formatjs/intl-pluralrules/locale-data/fr';`,
14605
+ `import '@formatjs/intl-numberformat/locale-data/fr';`,
14606
+ `import '@formatjs/intl-datetimeformat/locale-data/fr';`
14607
+ ].join("\n");
14608
+ console.warn(message);
14609
+ throw new Error(message);
14610
+ }
14608
14611
  }
14609
14612
  const key2 = cacheKey(locales ?? locales_exports.ENGLISH, options);
14610
14613
  let instance = cache.get(key2);
@@ -14786,10 +14789,6 @@ const localeStorageOptions = {
14786
14789
  const getHTMLTextDir = (locale) => {
14787
14790
  switch (locale) {
14788
14791
  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
14792
  case locales_exports.ARABIC_UNITED_ARAB_EMIRATES:
14794
14793
  case locales_exports.ARABIC_BAHRAIN:
14795
14794
  case locales_exports.ARABIC_ALGERIA:
@@ -14806,10 +14805,27 @@ const getHTMLTextDir = (locale) => {
14806
14805
  case locales_exports.ARABIC_SYRIA:
14807
14806
  case locales_exports.ARABIC_TUNISIA:
14808
14807
  case locales_exports.ARABIC_YEMEN:
14808
+ case locales_exports.ARABIC_MAURITANIA:
14809
+ case locales_exports.ARABIC_PALESTINE:
14810
+ case locales_exports.ARABIC_SUDAN:
14811
+ case locales_exports.ARABIC_DJIBOUTI:
14812
+ case locales_exports.ARABIC_SOMALIA:
14813
+ case locales_exports.ARABIC_CHAD:
14814
+ case locales_exports.ARABIC_COMOROS:
14815
+ case locales_exports.HEBREW:
14816
+ case locales_exports.HEBREW_ISRAEL:
14817
+ case locales_exports.FARSI:
14809
14818
  case locales_exports.FARSI_IRAN:
14819
+ case locales_exports.URDU:
14810
14820
  case locales_exports.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:
14821
+ case locales_exports.PASHTO:
14811
14822
  case locales_exports.PASHTO_AFGHANISTAN:
14823
+ case locales_exports.SYRIAC:
14812
14824
  case locales_exports.SYRIAC_SYRIA:
14825
+ case locales_exports.DIVEHI:
14826
+ case locales_exports.DIVEHI_MALDIVES:
14827
+ case locales_exports.YIDDISH:
14828
+ case locales_exports.YIDDISH_WORLD:
14813
14829
  return "rtl";
14814
14830
  default:
14815
14831
  return "ltr";
@@ -21945,13 +21961,13 @@ const Link = (props) => {
21945
21961
  ]
21946
21962
  });
21947
21963
  };
21948
- const key$f = "breadcrumb";
21949
- const content$f = { "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": "Перейти на" } } };
21950
- const localIds$f = ["breadcrumb::local::../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts"];
21964
+ const key$g = "breadcrumb";
21965
+ 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": "Перейти на" } } };
21966
+ const localIds$g = ["breadcrumb::local::../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts"];
21951
21967
  const _duYE5iNjRQYnPZLlbTEY = {
21952
- key: key$f,
21953
- content: content$f,
21954
- localIds: localIds$f
21968
+ key: key$g,
21969
+ content: content$g,
21970
+ localIds: localIds$g
21955
21971
  };
21956
21972
  const breadcrumbVariants = cva("flex flex-row flex-wrap items-center text-sm", {
21957
21973
  variants: {
@@ -23575,6 +23591,12 @@ function RemoveScrollSideCar(props) {
23575
23591
  if ("touches" in event && moveDirection === "h" && target.type === "range") {
23576
23592
  return false;
23577
23593
  }
23594
+ var selection = window.getSelection();
23595
+ var anchorNode = selection && selection.anchorNode;
23596
+ var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;
23597
+ if (isTouchingSelection) {
23598
+ return false;
23599
+ }
23578
23600
  var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
23579
23601
  if (!canBeScrolledInMainDirection) {
23580
23602
  return true;
@@ -24411,7 +24433,7 @@ function B({ asChild: r2, children: o2 }, n2) {
24411
24433
  }
24412
24434
  var Te = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
24413
24435
  const CommandRoot = ({ className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx(_e, {
24414
- className: cn$2("flex size-full flex-col overflow-hidden rounded-md", className),
24436
+ className: cn$2("flex flex-col overflow-hidden rounded-md", className),
24415
24437
  ...props
24416
24438
  });
24417
24439
  const CommandInput = ({ className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
@@ -24441,13 +24463,13 @@ const Command = {
24441
24463
  Empty: CommandEmpty,
24442
24464
  Item: CommandItem
24443
24465
  };
24444
- const key$e = "copy-button";
24445
- const content$e = { "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": "Копировать содержимое" } } };
24446
- const localIds$e = ["copy-button::local::../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts"];
24466
+ const key$f = "copy-button";
24467
+ 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": "Копировать содержимое" } } };
24468
+ const localIds$f = ["copy-button::local::../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts"];
24447
24469
  const _ZBwciJIQ6QXeiWWVK4aI = {
24448
- key: key$e,
24449
- content: content$e,
24450
- localIds: localIds$e
24470
+ key: key$f,
24471
+ content: content$f,
24472
+ localIds: localIds$f
24451
24473
  };
24452
24474
  const CopyButton = ({
24453
24475
  content: content2,
@@ -35117,20 +35139,20 @@ function pendingThenable() {
35117
35139
  thenable.status = "pending";
35118
35140
  thenable.catch(() => {
35119
35141
  });
35120
- function finalize(data) {
35142
+ function finalize2(data) {
35121
35143
  Object.assign(thenable, data);
35122
35144
  delete thenable.resolve;
35123
35145
  delete thenable.reject;
35124
35146
  }
35125
35147
  thenable.resolve = (value) => {
35126
- finalize({
35148
+ finalize2({
35127
35149
  status: "fulfilled",
35128
35150
  value
35129
35151
  });
35130
35152
  resolve(value);
35131
35153
  };
35132
35154
  thenable.reject = (reason) => {
35133
- finalize({
35155
+ finalize2({
35134
35156
  status: "rejected",
35135
35157
  reason
35136
35158
  });
@@ -37682,7 +37704,12 @@ const getOrganizationAPI = (authAPIOptions = {}, intlayerConfig) => {
37682
37704
  const deleteOrganization = async (otherOptions = {}) => await fetcher(ORGANIZATION_API_ROUTE, authAPIOptions, otherOptions, { method: "DELETE" });
37683
37705
  const selectOrganization = async (organizationId, otherOptions = {}) => await fetcher(`${ORGANIZATION_API_ROUTE}/${String(organizationId)}`, authAPIOptions, otherOptions, { method: "PUT" });
37684
37706
  const unselectOrganization = async (otherOptions = {}) => await fetcher(`${ORGANIZATION_API_ROUTE}/logout`, authAPIOptions, otherOptions, { method: "POST" });
37707
+ const getOrganizationSSOConfig = async (body, otherOptions = {}) => await fetcher(`${ORGANIZATION_API_ROUTE}/sso`, authAPIOptions, otherOptions, {
37708
+ method: "POST",
37709
+ body
37710
+ });
37685
37711
  return {
37712
+ getOrganizationSSOConfig,
37686
37713
  getOrganizations,
37687
37714
  getOrganization,
37688
37715
  addOrganization,
@@ -39787,7 +39814,7 @@ const getPasskeyActions = ($fetch, { $listPasskeys, $store }) => {
39787
39814
  $listPasskeys.set(Math.random());
39788
39815
  $store.notify("$sessionSignal");
39789
39816
  return verified;
39790
- } catch (e) {
39817
+ } catch {
39791
39818
  return {
39792
39819
  data: null,
39793
39820
  error: {
@@ -40059,7 +40086,14 @@ const getAuthAPI = (intlayerConfig) => {
40059
40086
  return client2.signIn.magicLink(...args);
40060
40087
  };
40061
40088
  const signInSSO = async (...args) => {
40062
- return client2.sso.signIn(...args);
40089
+ return client2.signIn.sso(...args);
40090
+ };
40091
+ const registerSSO = async (...args) => {
40092
+ return client2.sso.register(...args);
40093
+ };
40094
+ const listSSOProviders = async () => {
40095
+ };
40096
+ const deleteSSOProvider = async (args) => {
40063
40097
  };
40064
40098
  return {
40065
40099
  getAuthClient: () => client2,
@@ -40096,7 +40130,10 @@ const getAuthAPI = (intlayerConfig) => {
40096
40130
  deletePasskey,
40097
40131
  listPasskeys,
40098
40132
  signInMagicLink,
40099
- signInSSO
40133
+ signInSSO,
40134
+ registerSSO,
40135
+ listSSOProviders,
40136
+ deleteSSOProvider
40100
40137
  };
40101
40138
  };
40102
40139
  function useSession(sessionProp, intlayerConfiguration) {
@@ -44308,16 +44345,25 @@ let SwitchSelectorColor = /* @__PURE__ */ (function(SwitchSelectorColor$1) {
44308
44345
  return SwitchSelectorColor$1;
44309
44346
  })({});
44310
44347
  const switchSelectorVariant = cva("flex w-fit cursor-pointer flex-row gap-2 rounded-full border-[1.3px] p-[1.5px]", {
44311
- variants: { color: {
44312
- [`${SwitchSelectorColor.PRIMARY}`]: "border-primary text-primary",
44313
- [`${SwitchSelectorColor.SECONDARY}`]: "border-secondary text-secondary",
44314
- [`${SwitchSelectorColor.DESTRUCTIVE}`]: "border-destructive bg-destructive text-destructive",
44315
- [`${SwitchSelectorColor.NEUTRAL}`]: "border-neutral text-neutral",
44316
- [`${SwitchSelectorColor.LIGHT}`]: "border-white text-white",
44317
- [`${SwitchSelectorColor.DARK}`]: "border-neutral-800 text-neutral-800",
44318
- [`${SwitchSelectorColor.TEXT}`]: "border-text text-text"
44319
- } },
44320
- defaultVariants: { color: `${SwitchSelectorColor.PRIMARY}` }
44348
+ variants: {
44349
+ color: {
44350
+ [`${SwitchSelectorColor.PRIMARY}`]: "border-primary text-primary",
44351
+ [`${SwitchSelectorColor.SECONDARY}`]: "border-secondary text-secondary",
44352
+ [`${SwitchSelectorColor.DESTRUCTIVE}`]: "border-destructive bg-destructive text-destructive",
44353
+ [`${SwitchSelectorColor.NEUTRAL}`]: "border-neutral text-neutral",
44354
+ [`${SwitchSelectorColor.LIGHT}`]: "border-white text-white",
44355
+ [`${SwitchSelectorColor.DARK}`]: "border-neutral-800 text-neutral-800",
44356
+ [`${SwitchSelectorColor.TEXT}`]: "border-text text-text"
44357
+ },
44358
+ disabled: {
44359
+ true: "cursor-not-allowed opacity-50",
44360
+ false: ""
44361
+ }
44362
+ },
44363
+ defaultVariants: {
44364
+ color: `${SwitchSelectorColor.PRIMARY}`,
44365
+ disabled: false
44366
+ }
44321
44367
  });
44322
44368
  let SwitchSelectorSize = /* @__PURE__ */ (function(SwitchSelectorSize$1) {
44323
44369
  SwitchSelectorSize$1["SM"] = "sm";
@@ -44342,7 +44388,7 @@ const indicatorVariant$1 = cva("absolute top-0 z-0 h-full w-auto rounded-full tr
44342
44388
  [`${SwitchSelectorColor.DARK}`]: "bg-neutral-800 data-[indicator=true]:text-white",
44343
44389
  [`${SwitchSelectorColor.TEXT}`]: "bg-text data-[indicator=true]:text-text-opposite"
44344
44390
  } } });
44345
- const SwitchSelector = ({ choices = defaultChoices, value, defaultValue, onChange, color: color2 = SwitchSelectorColor.PRIMARY, size: size2 = SwitchSelectorSize.MD, className, hoverable = true }) => {
44391
+ const SwitchSelector = ({ choices = defaultChoices, value, defaultValue, onChange, color: color2 = SwitchSelectorColor.PRIMARY, size: size2 = SwitchSelectorSize.MD, className, hoverable = true, disabled = false }) => {
44346
44392
  const [valueState, setValue] = reactExports.useState(value ?? defaultValue ?? choices[0].value);
44347
44393
  const [hoveredIndex, setHoveredIndex] = reactExports.useState(null);
44348
44394
  const optionsRefs = reactExports.useRef([]);
@@ -44361,9 +44407,11 @@ const SwitchSelector = ({ choices = defaultChoices, value, defaultValue, onChang
44361
44407
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
44362
44408
  className: switchSelectorVariant({
44363
44409
  color: color2,
44410
+ disabled,
44364
44411
  className
44365
44412
  }),
44366
44413
  role: "tablist",
44414
+ "aria-disabled": disabled ? "true" : void 0,
44367
44415
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
44368
44416
  className: "relative flex size-full flex-row items-center justify-center",
44369
44417
  children: [choices.map((choice, index2) => {
@@ -44373,19 +44421,19 @@ const SwitchSelector = ({ choices = defaultChoices, value, defaultValue, onChang
44373
44421
  const isIndicatorOwner = index2 === indicatorIndex;
44374
44422
  return /* @__PURE__ */ reactExports.createElement("button", {
44375
44423
  ...buttonProps,
44376
- className: cn$2(choiceVariant({ size: size2 })),
44424
+ className: cn$2(choiceVariant({ size: size2 }), disabled && "cursor-not-allowed"),
44377
44425
  key: isKeyOfKey ? value$1 : index2,
44378
44426
  role: "tab",
44379
44427
  onClick: () => handleChange(value$1),
44380
44428
  "aria-selected": isSelected ? "true" : void 0,
44381
44429
  "data-indicator": isIndicatorOwner ? "true" : void 0,
44382
- disabled: isSelected,
44430
+ disabled: disabled || isSelected,
44383
44431
  tabIndex: isSelected ? 0 : -1,
44384
44432
  ref: (el) => {
44385
44433
  optionsRefs.current[index2] = el;
44386
44434
  },
44387
- onMouseEnter: () => setHoveredIndex(index2),
44388
- onMouseLeave: () => setHoveredIndex(null)
44435
+ onMouseEnter: () => !disabled && setHoveredIndex(index2),
44436
+ onMouseLeave: () => !disabled && setHoveredIndex(null)
44389
44437
  }, content2);
44390
44438
  }), choiceIndicatorPosition && /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
44391
44439
  className: cn$2(indicatorVariant$1({ color: color2 })),
@@ -45295,8 +45343,8 @@ class Doc {
45295
45343
  }
45296
45344
  const version = {
45297
45345
  major: 4,
45298
- minor: 1,
45299
- patch: 13
45346
+ minor: 2,
45347
+ patch: 1
45300
45348
  };
45301
45349
  const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
45302
45350
  var _a2;
@@ -46806,6 +46854,510 @@ function _check(fn, params) {
46806
46854
  ch._zod.check = fn;
46807
46855
  return ch;
46808
46856
  }
46857
+ function initializeContext(params) {
46858
+ let target = params?.target ?? "draft-2020-12";
46859
+ if (target === "draft-4")
46860
+ target = "draft-04";
46861
+ if (target === "draft-7")
46862
+ target = "draft-07";
46863
+ return {
46864
+ processors: params.processors ?? {},
46865
+ metadataRegistry: params?.metadata ?? globalRegistry,
46866
+ target,
46867
+ unrepresentable: params?.unrepresentable ?? "throw",
46868
+ override: params?.override ?? (() => {
46869
+ }),
46870
+ io: params?.io ?? "output",
46871
+ counter: 0,
46872
+ seen: /* @__PURE__ */ new Map(),
46873
+ cycles: params?.cycles ?? "ref",
46874
+ reused: params?.reused ?? "inline",
46875
+ external: params?.external ?? void 0
46876
+ };
46877
+ }
46878
+ function process$1(schema, ctx, _params = { path: [], schemaPath: [] }) {
46879
+ var _a2;
46880
+ const def = schema._zod.def;
46881
+ const seen2 = ctx.seen.get(schema);
46882
+ if (seen2) {
46883
+ seen2.count++;
46884
+ const isCycle = _params.schemaPath.includes(schema);
46885
+ if (isCycle) {
46886
+ seen2.cycle = _params.path;
46887
+ }
46888
+ return seen2.schema;
46889
+ }
46890
+ const result = { schema: {}, count: 1, cycle: void 0, path: _params.path };
46891
+ ctx.seen.set(schema, result);
46892
+ const overrideSchema = schema._zod.toJSONSchema?.();
46893
+ if (overrideSchema) {
46894
+ result.schema = overrideSchema;
46895
+ } else {
46896
+ const params = {
46897
+ ..._params,
46898
+ schemaPath: [..._params.schemaPath, schema],
46899
+ path: _params.path
46900
+ };
46901
+ const parent = schema._zod.parent;
46902
+ if (parent) {
46903
+ result.ref = parent;
46904
+ process$1(parent, ctx, params);
46905
+ ctx.seen.get(parent).isParent = true;
46906
+ } else if (schema._zod.processJSONSchema) {
46907
+ schema._zod.processJSONSchema(ctx, result.schema, params);
46908
+ } else {
46909
+ const _json = result.schema;
46910
+ const processor = ctx.processors[def.type];
46911
+ if (!processor) {
46912
+ throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`);
46913
+ }
46914
+ processor(schema, ctx, _json, params);
46915
+ }
46916
+ }
46917
+ const meta = ctx.metadataRegistry.get(schema);
46918
+ if (meta)
46919
+ Object.assign(result.schema, meta);
46920
+ if (ctx.io === "input" && isTransforming(schema)) {
46921
+ delete result.schema.examples;
46922
+ delete result.schema.default;
46923
+ }
46924
+ if (ctx.io === "input" && result.schema._prefault)
46925
+ (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
46926
+ delete result.schema._prefault;
46927
+ const _result = ctx.seen.get(schema);
46928
+ return _result.schema;
46929
+ }
46930
+ function extractDefs(ctx, schema) {
46931
+ const root = ctx.seen.get(schema);
46932
+ if (!root)
46933
+ throw new Error("Unprocessed schema. This is a bug in Zod.");
46934
+ const makeURI = (entry) => {
46935
+ const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
46936
+ if (ctx.external) {
46937
+ const externalId = ctx.external.registry.get(entry[0])?.id;
46938
+ const uriGenerator = ctx.external.uri ?? ((id3) => id3);
46939
+ if (externalId) {
46940
+ return { ref: uriGenerator(externalId) };
46941
+ }
46942
+ const id2 = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`;
46943
+ entry[1].defId = id2;
46944
+ return { defId: id2, ref: `${uriGenerator("__shared")}#/${defsSegment}/${id2}` };
46945
+ }
46946
+ if (entry[1] === root) {
46947
+ return { ref: "#" };
46948
+ }
46949
+ const uriPrefix = `#`;
46950
+ const defUriPrefix = `${uriPrefix}/${defsSegment}/`;
46951
+ const defId = entry[1].schema.id ?? `__schema${ctx.counter++}`;
46952
+ return { defId, ref: defUriPrefix + defId };
46953
+ };
46954
+ const extractToDef = (entry) => {
46955
+ if (entry[1].schema.$ref) {
46956
+ return;
46957
+ }
46958
+ const seen2 = entry[1];
46959
+ const { ref, defId } = makeURI(entry);
46960
+ seen2.def = { ...seen2.schema };
46961
+ if (defId)
46962
+ seen2.defId = defId;
46963
+ const schema2 = seen2.schema;
46964
+ for (const key2 in schema2) {
46965
+ delete schema2[key2];
46966
+ }
46967
+ schema2.$ref = ref;
46968
+ };
46969
+ if (ctx.cycles === "throw") {
46970
+ for (const entry of ctx.seen.entries()) {
46971
+ const seen2 = entry[1];
46972
+ if (seen2.cycle) {
46973
+ throw new Error(`Cycle detected: #/${seen2.cycle?.join("/")}/<root>
46974
+
46975
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
46976
+ }
46977
+ }
46978
+ }
46979
+ for (const entry of ctx.seen.entries()) {
46980
+ const seen2 = entry[1];
46981
+ if (schema === entry[0]) {
46982
+ extractToDef(entry);
46983
+ continue;
46984
+ }
46985
+ if (ctx.external) {
46986
+ const ext = ctx.external.registry.get(entry[0])?.id;
46987
+ if (schema !== entry[0] && ext) {
46988
+ extractToDef(entry);
46989
+ continue;
46990
+ }
46991
+ }
46992
+ const id2 = ctx.metadataRegistry.get(entry[0])?.id;
46993
+ if (id2) {
46994
+ extractToDef(entry);
46995
+ continue;
46996
+ }
46997
+ if (seen2.cycle) {
46998
+ extractToDef(entry);
46999
+ continue;
47000
+ }
47001
+ if (seen2.count > 1) {
47002
+ if (ctx.reused === "ref") {
47003
+ extractToDef(entry);
47004
+ continue;
47005
+ }
47006
+ }
47007
+ }
47008
+ }
47009
+ function finalize(ctx, schema) {
47010
+ const root = ctx.seen.get(schema);
47011
+ if (!root)
47012
+ throw new Error("Unprocessed schema. This is a bug in Zod.");
47013
+ const flattenRef = (zodSchema) => {
47014
+ const seen2 = ctx.seen.get(zodSchema);
47015
+ const schema2 = seen2.def ?? seen2.schema;
47016
+ const _cached = { ...schema2 };
47017
+ if (seen2.ref === null) {
47018
+ return;
47019
+ }
47020
+ const ref = seen2.ref;
47021
+ seen2.ref = null;
47022
+ if (ref) {
47023
+ flattenRef(ref);
47024
+ const refSchema = ctx.seen.get(ref).schema;
47025
+ if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
47026
+ schema2.allOf = schema2.allOf ?? [];
47027
+ schema2.allOf.push(refSchema);
47028
+ } else {
47029
+ Object.assign(schema2, refSchema);
47030
+ Object.assign(schema2, _cached);
47031
+ }
47032
+ }
47033
+ if (!seen2.isParent)
47034
+ ctx.override({
47035
+ zodSchema,
47036
+ jsonSchema: schema2,
47037
+ path: seen2.path ?? []
47038
+ });
47039
+ };
47040
+ for (const entry of [...ctx.seen.entries()].reverse()) {
47041
+ flattenRef(entry[0]);
47042
+ }
47043
+ const result = {};
47044
+ if (ctx.target === "draft-2020-12") {
47045
+ result.$schema = "https://json-schema.org/draft/2020-12/schema";
47046
+ } else if (ctx.target === "draft-07") {
47047
+ result.$schema = "http://json-schema.org/draft-07/schema#";
47048
+ } else if (ctx.target === "draft-04") {
47049
+ result.$schema = "http://json-schema.org/draft-04/schema#";
47050
+ } else if (ctx.target === "openapi-3.0") ;
47051
+ else ;
47052
+ if (ctx.external?.uri) {
47053
+ const id2 = ctx.external.registry.get(schema)?.id;
47054
+ if (!id2)
47055
+ throw new Error("Schema is missing an `id` property");
47056
+ result.$id = ctx.external.uri(id2);
47057
+ }
47058
+ Object.assign(result, root.def ?? root.schema);
47059
+ const defs = ctx.external?.defs ?? {};
47060
+ for (const entry of ctx.seen.entries()) {
47061
+ const seen2 = entry[1];
47062
+ if (seen2.def && seen2.defId) {
47063
+ defs[seen2.defId] = seen2.def;
47064
+ }
47065
+ }
47066
+ if (ctx.external) ;
47067
+ else {
47068
+ if (Object.keys(defs).length > 0) {
47069
+ if (ctx.target === "draft-2020-12") {
47070
+ result.$defs = defs;
47071
+ } else {
47072
+ result.definitions = defs;
47073
+ }
47074
+ }
47075
+ }
47076
+ try {
47077
+ const finalized = JSON.parse(JSON.stringify(result));
47078
+ Object.defineProperty(finalized, "~standard", {
47079
+ value: {
47080
+ ...schema["~standard"],
47081
+ jsonSchema: {
47082
+ input: createStandardJSONSchemaMethod(schema, "input"),
47083
+ output: createStandardJSONSchemaMethod(schema, "output")
47084
+ }
47085
+ },
47086
+ enumerable: false,
47087
+ writable: false
47088
+ });
47089
+ return finalized;
47090
+ } catch (_err) {
47091
+ throw new Error("Error converting schema to JSON.");
47092
+ }
47093
+ }
47094
+ function isTransforming(_schema, _ctx) {
47095
+ const ctx = _ctx ?? { seen: /* @__PURE__ */ new Set() };
47096
+ if (ctx.seen.has(_schema))
47097
+ return false;
47098
+ ctx.seen.add(_schema);
47099
+ const def = _schema._zod.def;
47100
+ if (def.type === "transform")
47101
+ return true;
47102
+ if (def.type === "array")
47103
+ return isTransforming(def.element, ctx);
47104
+ if (def.type === "set")
47105
+ return isTransforming(def.valueType, ctx);
47106
+ if (def.type === "lazy")
47107
+ return isTransforming(def.getter(), ctx);
47108
+ if (def.type === "promise" || def.type === "optional" || def.type === "nonoptional" || def.type === "nullable" || def.type === "readonly" || def.type === "default" || def.type === "prefault") {
47109
+ return isTransforming(def.innerType, ctx);
47110
+ }
47111
+ if (def.type === "intersection") {
47112
+ return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
47113
+ }
47114
+ if (def.type === "record" || def.type === "map") {
47115
+ return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
47116
+ }
47117
+ if (def.type === "pipe") {
47118
+ return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
47119
+ }
47120
+ if (def.type === "object") {
47121
+ for (const key2 in def.shape) {
47122
+ if (isTransforming(def.shape[key2], ctx))
47123
+ return true;
47124
+ }
47125
+ return false;
47126
+ }
47127
+ if (def.type === "union") {
47128
+ for (const option of def.options) {
47129
+ if (isTransforming(option, ctx))
47130
+ return true;
47131
+ }
47132
+ return false;
47133
+ }
47134
+ if (def.type === "tuple") {
47135
+ for (const item of def.items) {
47136
+ if (isTransforming(item, ctx))
47137
+ return true;
47138
+ }
47139
+ if (def.rest && isTransforming(def.rest, ctx))
47140
+ return true;
47141
+ return false;
47142
+ }
47143
+ return false;
47144
+ }
47145
+ const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
47146
+ const ctx = initializeContext({ ...params, processors });
47147
+ process$1(schema, ctx);
47148
+ extractDefs(ctx, schema);
47149
+ return finalize(ctx, schema);
47150
+ };
47151
+ const createStandardJSONSchemaMethod = (schema, io) => (params) => {
47152
+ const { libraryOptions, target } = params ?? {};
47153
+ const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors: {} });
47154
+ process$1(schema, ctx);
47155
+ extractDefs(ctx, schema);
47156
+ return finalize(ctx, schema);
47157
+ };
47158
+ const formatMap = {
47159
+ guid: "uuid",
47160
+ url: "uri",
47161
+ datetime: "date-time",
47162
+ json_string: "json-string",
47163
+ regex: ""
47164
+ // do not set
47165
+ };
47166
+ const stringProcessor = (schema, ctx, _json, _params) => {
47167
+ const json = _json;
47168
+ json.type = "string";
47169
+ const { minimum, maximum, format: format2, patterns, contentEncoding } = schema._zod.bag;
47170
+ if (typeof minimum === "number")
47171
+ json.minLength = minimum;
47172
+ if (typeof maximum === "number")
47173
+ json.maxLength = maximum;
47174
+ if (format2) {
47175
+ json.format = formatMap[format2] ?? format2;
47176
+ if (json.format === "")
47177
+ delete json.format;
47178
+ }
47179
+ if (contentEncoding)
47180
+ json.contentEncoding = contentEncoding;
47181
+ if (patterns && patterns.size > 0) {
47182
+ const regexes = [...patterns];
47183
+ if (regexes.length === 1)
47184
+ json.pattern = regexes[0].source;
47185
+ else if (regexes.length > 1) {
47186
+ json.allOf = [
47187
+ ...regexes.map((regex) => ({
47188
+ ...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
47189
+ pattern: regex.source
47190
+ }))
47191
+ ];
47192
+ }
47193
+ }
47194
+ };
47195
+ const neverProcessor = (_schema, _ctx, json, _params) => {
47196
+ json.not = {};
47197
+ };
47198
+ const unknownProcessor = (_schema, _ctx, _json, _params) => {
47199
+ };
47200
+ const enumProcessor = (schema, _ctx, json, _params) => {
47201
+ const def = schema._zod.def;
47202
+ const values = getEnumValues(def.entries);
47203
+ if (values.every((v2) => typeof v2 === "number"))
47204
+ json.type = "number";
47205
+ if (values.every((v2) => typeof v2 === "string"))
47206
+ json.type = "string";
47207
+ json.enum = values;
47208
+ };
47209
+ const customProcessor = (_schema, ctx, _json, _params) => {
47210
+ if (ctx.unrepresentable === "throw") {
47211
+ throw new Error("Custom types cannot be represented in JSON Schema");
47212
+ }
47213
+ };
47214
+ const transformProcessor = (_schema, ctx, _json, _params) => {
47215
+ if (ctx.unrepresentable === "throw") {
47216
+ throw new Error("Transforms cannot be represented in JSON Schema");
47217
+ }
47218
+ };
47219
+ const arrayProcessor = (schema, ctx, _json, params) => {
47220
+ const json = _json;
47221
+ const def = schema._zod.def;
47222
+ const { minimum, maximum } = schema._zod.bag;
47223
+ if (typeof minimum === "number")
47224
+ json.minItems = minimum;
47225
+ if (typeof maximum === "number")
47226
+ json.maxItems = maximum;
47227
+ json.type = "array";
47228
+ json.items = process$1(def.element, ctx, { ...params, path: [...params.path, "items"] });
47229
+ };
47230
+ const objectProcessor = (schema, ctx, _json, params) => {
47231
+ const json = _json;
47232
+ const def = schema._zod.def;
47233
+ json.type = "object";
47234
+ json.properties = {};
47235
+ const shape = def.shape;
47236
+ for (const key2 in shape) {
47237
+ json.properties[key2] = process$1(shape[key2], ctx, {
47238
+ ...params,
47239
+ path: [...params.path, "properties", key2]
47240
+ });
47241
+ }
47242
+ const allKeys = new Set(Object.keys(shape));
47243
+ const requiredKeys = new Set([...allKeys].filter((key2) => {
47244
+ const v2 = def.shape[key2]._zod;
47245
+ if (ctx.io === "input") {
47246
+ return v2.optin === void 0;
47247
+ } else {
47248
+ return v2.optout === void 0;
47249
+ }
47250
+ }));
47251
+ if (requiredKeys.size > 0) {
47252
+ json.required = Array.from(requiredKeys);
47253
+ }
47254
+ if (def.catchall?._zod.def.type === "never") {
47255
+ json.additionalProperties = false;
47256
+ } else if (!def.catchall) {
47257
+ if (ctx.io === "output")
47258
+ json.additionalProperties = false;
47259
+ } else if (def.catchall) {
47260
+ json.additionalProperties = process$1(def.catchall, ctx, {
47261
+ ...params,
47262
+ path: [...params.path, "additionalProperties"]
47263
+ });
47264
+ }
47265
+ };
47266
+ const unionProcessor = (schema, ctx, json, params) => {
47267
+ const def = schema._zod.def;
47268
+ const isExclusive = def.inclusive === false;
47269
+ const options = def.options.map((x, i2) => process$1(x, ctx, {
47270
+ ...params,
47271
+ path: [...params.path, isExclusive ? "oneOf" : "anyOf", i2]
47272
+ }));
47273
+ if (isExclusive) {
47274
+ json.oneOf = options;
47275
+ } else {
47276
+ json.anyOf = options;
47277
+ }
47278
+ };
47279
+ const intersectionProcessor = (schema, ctx, json, params) => {
47280
+ const def = schema._zod.def;
47281
+ const a2 = process$1(def.left, ctx, {
47282
+ ...params,
47283
+ path: [...params.path, "allOf", 0]
47284
+ });
47285
+ const b = process$1(def.right, ctx, {
47286
+ ...params,
47287
+ path: [...params.path, "allOf", 1]
47288
+ });
47289
+ const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
47290
+ const allOf = [
47291
+ ...isSimpleIntersection(a2) ? a2.allOf : [a2],
47292
+ ...isSimpleIntersection(b) ? b.allOf : [b]
47293
+ ];
47294
+ json.allOf = allOf;
47295
+ };
47296
+ const nullableProcessor = (schema, ctx, json, params) => {
47297
+ const def = schema._zod.def;
47298
+ const inner = process$1(def.innerType, ctx, params);
47299
+ const seen2 = ctx.seen.get(schema);
47300
+ if (ctx.target === "openapi-3.0") {
47301
+ seen2.ref = def.innerType;
47302
+ json.nullable = true;
47303
+ } else {
47304
+ json.anyOf = [inner, { type: "null" }];
47305
+ }
47306
+ };
47307
+ const nonoptionalProcessor = (schema, ctx, _json, params) => {
47308
+ const def = schema._zod.def;
47309
+ process$1(def.innerType, ctx, params);
47310
+ const seen2 = ctx.seen.get(schema);
47311
+ seen2.ref = def.innerType;
47312
+ };
47313
+ const defaultProcessor = (schema, ctx, json, params) => {
47314
+ const def = schema._zod.def;
47315
+ process$1(def.innerType, ctx, params);
47316
+ const seen2 = ctx.seen.get(schema);
47317
+ seen2.ref = def.innerType;
47318
+ json.default = JSON.parse(JSON.stringify(def.defaultValue));
47319
+ };
47320
+ const prefaultProcessor = (schema, ctx, json, params) => {
47321
+ const def = schema._zod.def;
47322
+ process$1(def.innerType, ctx, params);
47323
+ const seen2 = ctx.seen.get(schema);
47324
+ seen2.ref = def.innerType;
47325
+ if (ctx.io === "input")
47326
+ json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
47327
+ };
47328
+ const catchProcessor = (schema, ctx, json, params) => {
47329
+ const def = schema._zod.def;
47330
+ process$1(def.innerType, ctx, params);
47331
+ const seen2 = ctx.seen.get(schema);
47332
+ seen2.ref = def.innerType;
47333
+ let catchValue;
47334
+ try {
47335
+ catchValue = def.catchValue(void 0);
47336
+ } catch {
47337
+ throw new Error("Dynamic catch values are not supported in JSON Schema");
47338
+ }
47339
+ json.default = catchValue;
47340
+ };
47341
+ const pipeProcessor = (schema, ctx, _json, params) => {
47342
+ const def = schema._zod.def;
47343
+ const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
47344
+ process$1(innerType, ctx, params);
47345
+ const seen2 = ctx.seen.get(schema);
47346
+ seen2.ref = innerType;
47347
+ };
47348
+ const readonlyProcessor = (schema, ctx, json, params) => {
47349
+ const def = schema._zod.def;
47350
+ process$1(def.innerType, ctx, params);
47351
+ const seen2 = ctx.seen.get(schema);
47352
+ seen2.ref = def.innerType;
47353
+ json.readOnly = true;
47354
+ };
47355
+ const optionalProcessor = (schema, ctx, _json, params) => {
47356
+ const def = schema._zod.def;
47357
+ process$1(def.innerType, ctx, params);
47358
+ const seen2 = ctx.seen.get(schema);
47359
+ seen2.ref = def.innerType;
47360
+ };
46809
47361
  function t(r2, e) {
46810
47362
  try {
46811
47363
  var o2 = r2();
@@ -46908,7 +47460,7 @@ const Form$1 = ({ schema, onSubmit: onSubmitProp, onSubmitSuccess: onSubmitSucce
46908
47460
  return /* @__PURE__ */ jsxRuntimeExports.jsx(FormProvider, {
46909
47461
  ...props,
46910
47462
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("form", {
46911
- className: cn$2("flex size-full flex-col gap-y-6", className),
47463
+ className: cn$2("flex flex-col gap-y-6", className),
46912
47464
  onSubmit: props.handleSubmit(onSubmit),
46913
47465
  autoComplete: autoComplete ? "on" : "off",
46914
47466
  noValidate: true,
@@ -47423,13 +47975,13 @@ Form.EditableFieldTextArea = EditableFieldTextAreaElement;
47423
47975
  Form.SwitchSelector = SwitchSelectorElement;
47424
47976
  Form.OTP = OTPElement;
47425
47977
  Form.SearchInput = SearchInputElement;
47426
- const key$d = "save-dictionary-details";
47427
- const content$d = { "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": "Нажмите, чтобы отменить" } } } } };
47428
- const localIds$d = ["save-dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"];
47978
+ const key$e = "save-dictionary-details";
47979
+ 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": "Нажмите, чтобы отменить" } } } } };
47980
+ const localIds$e = ["save-dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"];
47429
47981
  const _T0SfS5x6SHrzZMCwRUVc = {
47430
- key: key$d,
47431
- content: content$d,
47432
- localIds: localIds$d
47982
+ key: key$e,
47983
+ content: content$e,
47984
+ localIds: localIds$e
47433
47985
  };
47434
47986
  const SaveForm = ({
47435
47987
  dictionary,
@@ -47988,6 +48540,13 @@ const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
47988
48540
  const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
47989
48541
  const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
47990
48542
  $ZodType.init(inst, def);
48543
+ Object.assign(inst["~standard"], {
48544
+ jsonSchema: {
48545
+ input: createStandardJSONSchemaMethod(inst, "input"),
48546
+ output: createStandardJSONSchemaMethod(inst, "output")
48547
+ }
48548
+ });
48549
+ inst.toJSONSchema = createToJSONSchemaMethod(inst, {});
47991
48550
  inst.def = def;
47992
48551
  inst.type = def.type;
47993
48552
  Object.defineProperty(inst, "_def", { value: def });
@@ -48060,6 +48619,7 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
48060
48619
  const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
48061
48620
  $ZodString.init(inst, def);
48062
48621
  ZodType.init(inst, def);
48622
+ inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json);
48063
48623
  const bag = inst._zod.bag;
48064
48624
  inst.format = bag.format ?? null;
48065
48625
  inst.minLength = bag.minimum ?? null;
@@ -48197,6 +48757,7 @@ const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
48197
48757
  const ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
48198
48758
  $ZodUnknown.init(inst, def);
48199
48759
  ZodType.init(inst, def);
48760
+ inst._zod.processJSONSchema = (ctx, json, params) => unknownProcessor();
48200
48761
  });
48201
48762
  function unknown() {
48202
48763
  return _unknown(ZodUnknown);
@@ -48204,6 +48765,7 @@ function unknown() {
48204
48765
  const ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
48205
48766
  $ZodNever.init(inst, def);
48206
48767
  ZodType.init(inst, def);
48768
+ inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json);
48207
48769
  });
48208
48770
  function never(params) {
48209
48771
  return _never(ZodNever, params);
@@ -48211,6 +48773,7 @@ function never(params) {
48211
48773
  const ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
48212
48774
  $ZodArray.init(inst, def);
48213
48775
  ZodType.init(inst, def);
48776
+ inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
48214
48777
  inst.element = def.element;
48215
48778
  inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
48216
48779
  inst.nonempty = (params) => inst.check(_minLength(1, params));
@@ -48224,6 +48787,7 @@ function array(element, params) {
48224
48787
  const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
48225
48788
  $ZodObjectJIT.init(inst, def);
48226
48789
  ZodType.init(inst, def);
48790
+ inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
48227
48791
  defineLazy(inst, "shape", () => {
48228
48792
  return def.shape;
48229
48793
  });
@@ -48256,6 +48820,7 @@ function object(shape, params) {
48256
48820
  const ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
48257
48821
  $ZodUnion.init(inst, def);
48258
48822
  ZodType.init(inst, def);
48823
+ inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
48259
48824
  inst.options = def.options;
48260
48825
  });
48261
48826
  function union(options, params) {
@@ -48268,6 +48833,7 @@ function union(options, params) {
48268
48833
  const ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
48269
48834
  $ZodIntersection.init(inst, def);
48270
48835
  ZodType.init(inst, def);
48836
+ inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
48271
48837
  });
48272
48838
  function intersection(left, right) {
48273
48839
  return new ZodIntersection({
@@ -48279,6 +48845,7 @@ function intersection(left, right) {
48279
48845
  const ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
48280
48846
  $ZodEnum.init(inst, def);
48281
48847
  ZodType.init(inst, def);
48848
+ inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json);
48282
48849
  inst.enum = def.entries;
48283
48850
  inst.options = Object.values(def.entries);
48284
48851
  const keys = new Set(Object.keys(def.entries));
@@ -48324,6 +48891,7 @@ function _enum(values, params) {
48324
48891
  const ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
48325
48892
  $ZodTransform.init(inst, def);
48326
48893
  ZodType.init(inst, def);
48894
+ inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx);
48327
48895
  inst._zod.parse = (payload, _ctx) => {
48328
48896
  if (_ctx.direction === "backward") {
48329
48897
  throw new $ZodEncodeError(inst.constructor.name);
@@ -48361,6 +48929,7 @@ function transform(fn) {
48361
48929
  const ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def) => {
48362
48930
  $ZodOptional.init(inst, def);
48363
48931
  ZodType.init(inst, def);
48932
+ inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
48364
48933
  inst.unwrap = () => inst._zod.def.innerType;
48365
48934
  });
48366
48935
  function optional(innerType) {
@@ -48372,6 +48941,7 @@ function optional(innerType) {
48372
48941
  const ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {
48373
48942
  $ZodNullable.init(inst, def);
48374
48943
  ZodType.init(inst, def);
48944
+ inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
48375
48945
  inst.unwrap = () => inst._zod.def.innerType;
48376
48946
  });
48377
48947
  function nullable(innerType) {
@@ -48383,6 +48953,7 @@ function nullable(innerType) {
48383
48953
  const ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def) => {
48384
48954
  $ZodDefault.init(inst, def);
48385
48955
  ZodType.init(inst, def);
48956
+ inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
48386
48957
  inst.unwrap = () => inst._zod.def.innerType;
48387
48958
  inst.removeDefault = inst.unwrap;
48388
48959
  });
@@ -48398,6 +48969,7 @@ function _default(innerType, defaultValue) {
48398
48969
  const ZodPrefault = /* @__PURE__ */ $constructor("ZodPrefault", (inst, def) => {
48399
48970
  $ZodPrefault.init(inst, def);
48400
48971
  ZodType.init(inst, def);
48972
+ inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
48401
48973
  inst.unwrap = () => inst._zod.def.innerType;
48402
48974
  });
48403
48975
  function prefault(innerType, defaultValue) {
@@ -48412,6 +48984,7 @@ function prefault(innerType, defaultValue) {
48412
48984
  const ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def) => {
48413
48985
  $ZodNonOptional.init(inst, def);
48414
48986
  ZodType.init(inst, def);
48987
+ inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
48415
48988
  inst.unwrap = () => inst._zod.def.innerType;
48416
48989
  });
48417
48990
  function nonoptional(innerType, params) {
@@ -48424,6 +48997,7 @@ function nonoptional(innerType, params) {
48424
48997
  const ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {
48425
48998
  $ZodCatch.init(inst, def);
48426
48999
  ZodType.init(inst, def);
49000
+ inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
48427
49001
  inst.unwrap = () => inst._zod.def.innerType;
48428
49002
  inst.removeCatch = inst.unwrap;
48429
49003
  });
@@ -48437,6 +49011,7 @@ function _catch(innerType, catchValue) {
48437
49011
  const ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {
48438
49012
  $ZodPipe.init(inst, def);
48439
49013
  ZodType.init(inst, def);
49014
+ inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
48440
49015
  inst.in = def.in;
48441
49016
  inst.out = def.out;
48442
49017
  });
@@ -48451,6 +49026,7 @@ function pipe(in_, out) {
48451
49026
  const ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
48452
49027
  $ZodReadonly.init(inst, def);
48453
49028
  ZodType.init(inst, def);
49029
+ inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
48454
49030
  inst.unwrap = () => inst._zod.def.innerType;
48455
49031
  });
48456
49032
  function readonly(innerType) {
@@ -48462,6 +49038,7 @@ function readonly(innerType) {
48462
49038
  const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
48463
49039
  $ZodCustom.init(inst, def);
48464
49040
  ZodType.init(inst, def);
49041
+ inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx);
48465
49042
  });
48466
49043
  function refine(fn, _params = {}) {
48467
49044
  return _refine(ZodCustom, fn, _params);
@@ -48529,7 +49106,7 @@ const usePersistedStore = (key2, initialState) => {
48529
49106
  });
48530
49107
  reactExports.useEffect(() => {
48531
49108
  const persistedState = localStorage?.getItem(key2);
48532
- if (persistedState && state === void 0) try {
49109
+ if (persistedState && persistedState !== "undefined" && state === void 0) try {
48533
49110
  setState2(JSON.parse(persistedState));
48534
49111
  } catch (e) {
48535
49112
  console.error(e);
@@ -48539,22 +49116,31 @@ const usePersistedStore = (key2, initialState) => {
48539
49116
  const setStateWrapper = reactExports.useCallback((valueOrUpdater) => {
48540
49117
  setState2((prev) => {
48541
49118
  const newValue = typeof valueOrUpdater === "function" ? valueOrUpdater(prev) : valueOrUpdater;
48542
- localStorage?.setItem(key2, JSON.stringify(newValue));
48543
- return newValue;
49119
+ if (newValue && newValue !== "undefined") {
49120
+ localStorage?.setItem(key2, JSON.stringify(newValue));
49121
+ return newValue;
49122
+ }
49123
+ return prev;
48544
49124
  });
48545
49125
  }, [key2, setState2]);
48546
49126
  const loadState = reactExports.useCallback(() => {
48547
49127
  const savedState = localStorage?.getItem(key2);
48548
49128
  if (savedState) setState2(JSON.parse(savedState));
48549
49129
  }, [key2, setState2]);
49130
+ const clearState = reactExports.useCallback(() => {
49131
+ localStorage?.removeItem(key2);
49132
+ setState2(void 0);
49133
+ }, [key2]);
48550
49134
  return reactExports.useMemo(() => [
48551
49135
  state,
48552
49136
  setStateWrapper,
48553
- loadState
49137
+ loadState,
49138
+ clearState
48554
49139
  ], [
48555
49140
  state,
48556
49141
  setStateWrapper,
48557
- loadState
49142
+ loadState,
49143
+ clearState
48558
49144
  ]);
48559
49145
  };
48560
49146
  const LocaleSwitcherContentContext = reactExports.createContext({
@@ -48576,13 +49162,13 @@ const LocaleSwitcherContentProvider = ({ availableLocales, defaultSelectedLocale
48576
49162
  children
48577
49163
  });
48578
49164
  };
48579
- const key$c = "locale-switcher-content";
48580
- const content$c = { "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": "Показать только выбранные языки" } } } };
48581
- const localIds$c = ["locale-switcher-content::local::../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts"];
49165
+ const key$d = "locale-switcher-content";
49166
+ 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": "Показать только выбранные языки" } } } };
49167
+ const localIds$d = ["locale-switcher-content::local::../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts"];
48582
49168
  const _zmGqpnLlhuhC3amqT2id = {
48583
- key: key$c,
48584
- content: content$c,
48585
- localIds: localIds$c
49169
+ key: key$d,
49170
+ content: content$d,
49171
+ localIds: localIds$d
48586
49172
  };
48587
49173
  function isArray(value) {
48588
49174
  return !Array.isArray ? getTag$1(value) === "[object Array]" : Array.isArray(value);
@@ -50075,13 +50661,13 @@ const LocaleSwitcherContent = ({
50075
50661
  })
50076
50662
  });
50077
50663
  };
50078
- const key$b = "expand-collapse";
50079
- const content$b = { "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": "Показать меньше" } } } } };
50080
- const localIds$b = ["expand-collapse::local::../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts"];
50664
+ const key$c = "expand-collapse";
50665
+ 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": "Показать меньше" } } } } };
50666
+ const localIds$c = ["expand-collapse::local::../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts"];
50081
50667
  const _45YmjbWLtB85OKkfb0rA = {
50082
- key: key$b,
50083
- content: content$b,
50084
- localIds: localIds$b
50668
+ key: key$c,
50669
+ content: content$c,
50670
+ localIds: localIds$c
50085
50671
  };
50086
50672
  const DEFAULT_MIN_HEIGHT = 700;
50087
50673
  const ExpandCollapse = ({
@@ -50132,7 +50718,7 @@ const CodeDefault = ({ children }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div
50132
50718
  }, `line-${index2}-${line.slice(0, 10)}`)) })
50133
50719
  })
50134
50720
  });
50135
- const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-BZrNB-hp.js"), true ? [] : void 0).then((mod) => ({ default: mod.CodeBlockShiki })));
50721
+ const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-BDi8XZg1.js"), true ? [] : void 0).then((mod) => ({ default: mod.CodeBlockShiki })));
50136
50722
  const CodeBlock = ({ className, onChange, isEditable, children, lang, isDarkMode, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
50137
50723
  className: cn$2("flex w-full min-w-0 max-w-full overflow-x-auto", className),
50138
50724
  ...props,
@@ -50162,7 +50748,7 @@ const PopoverStatic = ({ children, className, identifier, ...props }) => /* @__P
50162
50748
  ...props,
50163
50749
  children
50164
50750
  });
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, {
50751
+ 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
50752
  transparency: "sm",
50167
50753
  role: "group",
50168
50754
  "aria-hidden": isHidden2,
@@ -50172,11 +50758,11 @@ const Detail = ({ children, isHidden: isHidden2 = void 0, isOverable = true, isF
50172
50758
  ...props,
50173
50759
  children
50174
50760
  });
50175
- PopoverStatic.Detail = Detail;
50761
+ PopoverStatic.Detail = Detail$1;
50176
50762
  const PopoverComponent = (props) => {
50177
50763
  return /* @__PURE__ */ jsxRuntimeExports.jsx(PopoverStatic, { ...props });
50178
50764
  };
50179
- const Detail$1 = ({ xAlign = PopoverXAlign.START, yAlign = PopoverYAlign.BELOW, ...props }) => {
50765
+ const Detail = ({ xAlign = PopoverXAlign.START, yAlign = PopoverYAlign.BELOW, ...props }) => {
50180
50766
  const popoverRef = reactExports.useRef(null);
50181
50767
  const [computedXAlign, setComputedXAlign] = reactExports.useState(xAlign);
50182
50768
  const [computedYAlign, setComputedYAlign] = reactExports.useState(yAlign);
@@ -50253,7 +50839,7 @@ const Detail$1 = ({ xAlign = PopoverXAlign.START, yAlign = PopoverYAlign.BELOW,
50253
50839
  xAlign,
50254
50840
  yAlign
50255
50841
  ]);
50256
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Detail, {
50842
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Detail$1, {
50257
50843
  ...props,
50258
50844
  xAlign: computedXAlign,
50259
50845
  yAlign: computedYAlign,
@@ -50265,7 +50851,7 @@ const Detail$1 = ({ xAlign = PopoverXAlign.START, yAlign = PopoverYAlign.BELOW,
50265
50851
  });
50266
50852
  };
50267
50853
  const Popover = PopoverComponent;
50268
- Popover.Detail = Detail$1;
50854
+ Popover.Detail = Detail;
50269
50855
  const CodeContext = reactExports.createContext({
50270
50856
  packageManager: "npm",
50271
50857
  setPackageManager: () => {
@@ -50305,8 +50891,23 @@ const CodeConditionalRender = ({ children, ...props }) => {
50305
50891
  if ((isPackageManagerUndefined || isPackageManagerSelected) && (isCodeFormatUndefined || isCodeFormatSelected) && (isContentDeclarationFormatUndefined || isContentDeclarationFormatSelected)) return children;
50306
50892
  return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
50307
50893
  };
50894
+ const key$b = "code-selectors";
50895
+ 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": "Выбрать формат словаря" } } } };
50896
+ const localIds$b = ["code-selectors::local::../@intlayer/design-system/src/components/IDE/selectors.content.ts"];
50897
+ const _VaxfTMdlIxLlHVFaeieC = {
50898
+ key: key$b,
50899
+ content: content$b,
50900
+ localIds: localIds$b
50901
+ };
50308
50902
  const CodeFormatSelector = () => {
50309
- const { codeFormat, setCodeFormat, setContentDeclarationFormat } = useCodeContext();
50903
+ const {
50904
+ codeFormat,
50905
+ setCodeFormat,
50906
+ setContentDeclarationFormat
50907
+ } = useCodeContext();
50908
+ const {
50909
+ codeFormat: codeFormatContent
50910
+ } = useDictionary(_VaxfTMdlIxLlHVFaeieC);
50310
50911
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Select, {
50311
50912
  value: codeFormat,
50312
50913
  onValueChange: (value) => {
@@ -50315,49 +50916,56 @@ const CodeFormatSelector = () => {
50315
50916
  },
50316
50917
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Trigger, {
50317
50918
  className: "py-1",
50318
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Value, { placeholder: "Code Format" })
50319
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(Select.Content, { children: [
50320
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50919
+ "aria-label": codeFormatContent.label,
50920
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Value, {
50921
+ placeholder: "Code Format"
50922
+ })
50923
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(Select.Content, {
50924
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50321
50925
  value: "typescript",
50322
50926
  children: "TypeScript"
50323
- }),
50324
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50927
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50325
50928
  value: "esm",
50326
50929
  children: "ESM"
50327
- }),
50328
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50930
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50329
50931
  value: "commonjs",
50330
50932
  children: "CommonJS"
50331
- })
50332
- ] })]
50933
+ })]
50934
+ })]
50333
50935
  });
50334
50936
  };
50335
50937
  const ContentDeclarationFormatSelector = () => {
50336
- const { contentDeclarationFormat, setContentDeclarationFormat } = useCodeContext();
50938
+ const {
50939
+ contentDeclarationFormat,
50940
+ setContentDeclarationFormat
50941
+ } = useCodeContext();
50942
+ const {
50943
+ contentDeclarationFormat: contentDeclarationFormatContent
50944
+ } = useDictionary(_VaxfTMdlIxLlHVFaeieC);
50337
50945
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Select, {
50338
50946
  value: contentDeclarationFormat,
50339
50947
  onValueChange: setContentDeclarationFormat,
50340
50948
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Trigger, {
50341
50949
  className: "py-1",
50342
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Value, { placeholder: "Dictionary Format" })
50343
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(Select.Content, { children: [
50344
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50950
+ "aria-label": contentDeclarationFormatContent.label,
50951
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Value, {
50952
+ placeholder: "Dictionary Format"
50953
+ })
50954
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(Select.Content, {
50955
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50345
50956
  value: "typescript",
50346
50957
  children: "TypeScript"
50347
- }),
50348
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50958
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50349
50959
  value: "commonjs",
50350
50960
  children: "CommonJS"
50351
- }),
50352
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50961
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50353
50962
  value: "esm",
50354
50963
  children: "ESM"
50355
- }),
50356
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50964
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50357
50965
  value: "json",
50358
50966
  children: "JSON"
50359
- })
50360
- ] })]
50967
+ })]
50968
+ })]
50361
50969
  });
50362
50970
  };
50363
50971
  const key$a = "code";
@@ -50393,31 +51001,37 @@ const CopyCode = ({
50393
51001
  });
50394
51002
  };
50395
51003
  const PackageManagerSelector = () => {
50396
- const { packageManager, setPackageManager } = useCodeContext();
51004
+ const {
51005
+ packageManager,
51006
+ setPackageManager
51007
+ } = useCodeContext();
51008
+ const {
51009
+ packageManager: packageManagerContent
51010
+ } = useDictionary(_VaxfTMdlIxLlHVFaeieC);
50397
51011
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Select, {
50398
51012
  value: packageManager,
50399
51013
  onValueChange: setPackageManager,
50400
51014
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Trigger, {
50401
51015
  className: "py-1",
50402
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Value, { placeholder: "Package Manager" })
50403
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs(Select.Content, { children: [
50404
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
51016
+ "aria-label": packageManagerContent.label,
51017
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Value, {
51018
+ placeholder: "Package Manager"
51019
+ })
51020
+ }), /* @__PURE__ */ jsxRuntimeExports.jsxs(Select.Content, {
51021
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50405
51022
  value: "npm",
50406
51023
  children: "npm"
50407
- }),
50408
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
51024
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50409
51025
  value: "pnpm",
50410
51026
  children: "pnpm"
50411
- }),
50412
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
51027
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50413
51028
  value: "yarn",
50414
51029
  children: "yarn"
50415
- }),
50416
- /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
51030
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, {
50417
51031
  value: "bun",
50418
51032
  children: "bun"
50419
- })
50420
- ] })]
51033
+ })]
51034
+ })]
50421
51035
  });
50422
51036
  };
50423
51037
  const MIN_HEIGHT = 700;
@@ -52342,7 +52956,7 @@ const renameKey = (obj, oldKey, newKey) => {
52342
52956
  } else newObj[key2] = obj[key2];
52343
52957
  return newObj;
52344
52958
  };
52345
- const ContentEditorInput = ({ children, onContentChange, disabled, validate, additionalButtons, ...props }) => {
52959
+ const ContentEditorInput$1 = ({ children, onContentChange, disabled, validate, additionalButtons, ...props }) => {
52346
52960
  const [newValue, setNewValue] = reactExports.useState(children);
52347
52961
  const [resetIncrementor, setResetIncrementor] = reactExports.useState(0);
52348
52962
  const isEdited = newValue !== children;
@@ -52432,7 +53046,7 @@ const useUser = () => {
52432
53046
  logout: logoutHandle
52433
53047
  };
52434
53048
  };
52435
- const ContentEditorTextArea = ({ children, onContentChange, disabled, validate, additionalButtons, ...props }) => {
53049
+ const ContentEditorTextArea$1 = ({ children, onContentChange, disabled, validate, additionalButtons, ...props }) => {
52436
53050
  const { isAuthenticated } = useUser();
52437
53051
  const [newValue, setNewValue] = reactExports.useState(children);
52438
53052
  const [resetIncrementor, setResetIncrementor] = reactExports.useState(0);
@@ -52579,7 +53193,7 @@ const EnumKeyInput = ({ value, onChange }) => {
52579
53193
  })]
52580
53194
  });
52581
53195
  };
52582
- const ContentEditorTextArea$1 = ({
53196
+ const ContentEditorTextArea = ({
52583
53197
  keyPath,
52584
53198
  dictionary,
52585
53199
  ...props
@@ -52593,7 +53207,7 @@ const ContentEditorTextArea$1 = ({
52593
53207
  mutate: auditContentDeclarationField,
52594
53208
  isPending: isAuditing
52595
53209
  } = useAuditContentDeclarationField();
52596
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorTextArea, {
53210
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorTextArea$1, {
52597
53211
  variant: InputVariant.DEFAULT,
52598
53212
  onContentChange: (newValue) => addEditedContent(dictionary.localId, newValue, keyPath),
52599
53213
  additionalButtons: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
@@ -52633,7 +53247,7 @@ const ContentEditorTextArea$1 = ({
52633
53247
  ...props
52634
53248
  });
52635
53249
  };
52636
- const ContentEditorInput$1 = ({
53250
+ const ContentEditorInput = ({
52637
53251
  keyPath,
52638
53252
  dictionary,
52639
53253
  ...props
@@ -52641,7 +53255,7 @@ const ContentEditorInput$1 = ({
52641
53255
  const {
52642
53256
  addEditedContent
52643
53257
  } = useEditedContent();
52644
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput, {
53258
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput$1, {
52645
53259
  variant: InputVariant.DEFAULT,
52646
53260
  onContentChange: (newValue) => addEditedContent(dictionary.localId, newValue, keyPath),
52647
53261
  ...props
@@ -53084,7 +53698,7 @@ const NestedTextEditor = ({
53084
53698
  className: "flex w-full flex-col gap-4 p-2",
53085
53699
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, {
53086
53700
  children: "Dictionary key"
53087
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput, {
53701
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput$1, {
53088
53702
  "aria-label": "Edit field",
53089
53703
  type: "text",
53090
53704
  variant: InputVariant.DEFAULT,
@@ -53098,7 +53712,7 @@ const NestedTextEditor = ({
53098
53712
  children: content2.dictionaryKey ?? ""
53099
53713
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, {
53100
53714
  children: "Path (optional)"
53101
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput, {
53715
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput$1, {
53102
53716
  "aria-label": "Edit field",
53103
53717
  type: "text",
53104
53718
  variant: InputVariant.DEFAULT,
@@ -53194,7 +53808,7 @@ const TextEditor = ({
53194
53808
  });
53195
53809
  if (nodeType === NodeType.Number) return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
53196
53810
  className: "w-full p-2",
53197
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput$1, {
53811
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorInput, {
53198
53812
  dictionary,
53199
53813
  keyPath,
53200
53814
  type: "number",
@@ -53204,7 +53818,7 @@ const TextEditor = ({
53204
53818
  });
53205
53819
  if (nodeType === NodeType.Text) return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
53206
53820
  className: "w-full p-2",
53207
- children: typeof renderSection === "function" ? renderSection(section) : /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorTextArea$1, {
53821
+ children: typeof renderSection === "function" ? renderSection(section) : /* @__PURE__ */ jsxRuntimeExports.jsx(ContentEditorTextArea, {
53208
53822
  variant: InputVariant.DEFAULT,
53209
53823
  "aria-label": "Edit field",
53210
53824
  keyPath,
@@ -54905,10 +55519,10 @@ const useDevice = (breakpoint = "md") => {
54905
55519
  const MaxWidthSmoother = ({ children, isHidden: isHidden2, minWidth = 0, align = "left", className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
54906
55520
  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
55521
  "aria-hidden": isHidden2,
55522
+ inert: isHidden2 ? true : void 0,
54908
55523
  ...props,
54909
55524
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
54910
55525
  style: { minWidth: `${minWidth}px` },
54911
- tabIndex: isHidden2 !== false ? void 0 : -1,
54912
55526
  className: cn$2(align === "right" && "ml-auto"),
54913
55527
  children
54914
55528
  })