@nxgt/material 3.101.0 → 3.103.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +32 -2
  3. package/dist/{alert-dialog-DYzxchiS.js → alert-dialog-NFyAiSqc.js} +1 -1
  4. package/dist/{async-slice-drJyPvuM.js → async-slice-D35bX79S.js} +1 -1
  5. package/dist/{bubble-input-CQwVSoU3.js → bubble-input-BxI1WmNs.js} +17 -5
  6. package/dist/{button-GeIsUekU.js → button-Be7GZzF9.js} +2 -2
  7. package/dist/{calculator-BS4PAm6l.js → calculator-BGy1Q7rn.js} +261 -460
  8. package/dist/calculator-field.js +7 -7
  9. package/dist/{calculator-segment-CEdwE24M.js → calculator-segment-uixk6lBg.js} +1 -1
  10. package/dist/calculator.js +1 -1
  11. package/dist/charts.js +3 -3
  12. package/dist/{chip-BdEtFQ85.js → chip-3rWebZEM.js} +2 -2
  13. package/dist/{code-editor-BByXZOGy.js → code-editor-BqSVMfy-.js} +178 -177
  14. package/dist/code-editor.js +5 -5
  15. package/dist/{code-language-items-CSZX5zxD.js → code-language-items-Cf2LJVg2.js} +14 -5
  16. package/dist/components/ui/actions/action-card/action-card-tile.css +47 -0
  17. package/dist/components/ui/display/code/code-moonlight.css +10 -10
  18. package/dist/{components-DQ4MljCr.js → components-D2liJ9Yu.js} +17725 -17287
  19. package/dist/components.js +38 -37
  20. package/dist/{conversion-variant-DTQqAyDt.js → conversion-variant-clFZ6ZMJ.js} +5 -5
  21. package/dist/{currency-field-Dnju7ss2.js → currency-field-CBFEVNM1.js} +24 -23
  22. package/dist/{dialog-5_2__tu8.js → dialog-CrIIINTk.js} +3 -3
  23. package/dist/dnd.js +1 -1
  24. package/dist/{dropdown-menu-FdGC5kIP.js → dropdown-menu-BnfLWu8n.js} +1 -1
  25. package/dist/editor.js +9 -9
  26. package/dist/{empty-state-BoepPG5v.js → empty-state-CuUaCPY7.js} +1 -1
  27. package/dist/{field-blur-DkiZOVNV.js → field-blur-DMJwPLsg.js} +9 -9
  28. package/dist/field-blur-context-3rKussBQ.js +29 -0
  29. package/dist/{financial-variant-BhqJp5C-.js → financial-variant-BY_VCUuk.js} +5 -5
  30. package/dist/{hooks-DjcbJZiO.js → hooks-hHoZbL-4.js} +106 -61
  31. package/dist/hooks.js +3 -3
  32. package/dist/{hover-card-CmHJeBeY.js → hover-card-Do2-uzlF.js} +1 -1
  33. package/dist/i18n.js +3 -3
  34. package/dist/{icon-badge-LGUPQh_c.js → icon-badge-CHaVNEmb.js} +1 -1
  35. package/dist/{icon-button-BSVpO1jP.js → icon-button-BIAubLeJ.js} +1 -1
  36. package/dist/key-layout-D2goCDkD.js +31 -0
  37. package/dist/keypad.js +551 -0
  38. package/dist/label-DR-zZyGQ.js +47 -0
  39. package/dist/lib/components/ui/display/code/code-block-parts.d.ts +1 -1
  40. package/dist/lib/components/ui/display/code/code-block.d.ts +4 -1
  41. package/dist/lib/components/ui/display/code/languages.d.ts +2 -0
  42. package/dist/lib/components/ui/display/code/moonlight-tokens.d.ts +10 -10
  43. package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog-props.d.ts +73 -0
  44. package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog-rules.d.ts +12 -0
  45. package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog.d.ts +5 -61
  46. package/dist/lib/components/ui/feedback/confirm-dialog/confirm-footer.d.ts +12 -0
  47. package/dist/lib/components/ui/feedback/confirm-dialog/confirm-phrase.d.ts +26 -0
  48. package/dist/lib/components/ui/feedback/confirm-dialog/use-confirm-action.d.ts +1 -1
  49. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  50. package/dist/lib/components/ui/layout/index.d.ts +1 -0
  51. package/dist/lib/components/ui/layout/panel-card/index.d.ts +1 -0
  52. package/dist/lib/components/ui/layout/panel-card/panel-card.d.ts +21 -0
  53. package/dist/lib/components/ui/selection/index.d.ts +1 -0
  54. package/dist/lib/components/ui/selection/status-menu/index.d.ts +3 -0
  55. package/dist/lib/components/ui/selection/status-menu/partials/status-confirm.d.ts +12 -0
  56. package/dist/lib/components/ui/selection/status-menu/partials/status-icon.d.ts +6 -0
  57. package/dist/lib/components/ui/selection/status-menu/partials/status-items.d.ts +18 -0
  58. package/dist/lib/components/ui/selection/status-menu/partials/status-menu-list.d.ts +14 -0
  59. package/dist/lib/components/ui/selection/status-menu/partials/status-sheet-row.d.ts +11 -0
  60. package/dist/lib/components/ui/selection/status-menu/partials/status-sheet.d.ts +21 -0
  61. package/dist/lib/components/ui/selection/status-menu/partials/status-trigger.d.ts +18 -0
  62. package/dist/lib/components/ui/selection/status-menu/status-menu-data.d.ts +12 -0
  63. package/dist/lib/components/ui/selection/status-menu/status-menu-form-field.d.ts +20 -0
  64. package/dist/lib/components/ui/selection/status-menu/status-menu.d.ts +13 -0
  65. package/dist/lib/components/ui/selection/status-menu/types.d.ts +76 -0
  66. package/dist/lib/components/ui/selection/status-menu/use-status-change.d.ts +18 -0
  67. package/dist/lib/components/ui/selection/status-menu/use-status-menu.d.ts +30 -0
  68. package/dist/lib/components/ui/widgets/calculator/partials/calculator-keypad.d.ts +1 -5
  69. package/dist/lib/components/ui/widgets/calculator/variants/key-layout.d.ts +3 -49
  70. package/dist/lib/components/ui/widgets/keypad/cash-model.d.ts +16 -0
  71. package/dist/lib/components/ui/widgets/keypad/index.d.ts +5 -0
  72. package/dist/lib/components/ui/widgets/keypad/key-layout.d.ts +56 -0
  73. package/dist/lib/components/ui/widgets/keypad/keypad-binding.d.ts +32 -0
  74. package/dist/lib/components/ui/widgets/keypad/keypad-cash.d.ts +28 -0
  75. package/dist/lib/components/ui/widgets/keypad/keypad-display.d.ts +11 -0
  76. package/dist/lib/components/ui/widgets/keypad/keypad-entry.d.ts +39 -0
  77. package/dist/lib/components/ui/widgets/keypad/keypad-grid.d.ts +27 -0
  78. package/dist/lib/components/ui/widgets/{calculator/partials/calculator-key.d.ts → keypad/keypad-key.d.ts} +6 -3
  79. package/dist/lib/components/ui/widgets/keypad/keypad-layout.d.ts +19 -0
  80. package/dist/lib/components/ui/widgets/{calculator/partials → keypad}/keypad-navigation.d.ts +1 -1
  81. package/dist/lib/components/ui/widgets/keypad/keypad.d.ts +9 -0
  82. package/dist/lib/components/ui/widgets/keypad/keypad.types.d.ts +91 -0
  83. package/dist/lib/components/ui/widgets/keypad/use-keypad-cash.d.ts +14 -0
  84. package/dist/lib/components/ui/widgets/keypad/use-keypad-keyboard.d.ts +7 -0
  85. package/dist/lib/components/ui/widgets/keypad/use-keypad-number.d.ts +10 -0
  86. package/dist/lib/components/ui/widgets/keypad/use-keypad-quantity.d.ts +16 -0
  87. package/dist/lib/components/ui/widgets/keypad/use-keypad-value.d.ts +17 -0
  88. package/dist/lib/components/ui/widgets/keypad/use-keypad.d.ts +23 -0
  89. package/dist/lib/hooks/index.d.ts +1 -0
  90. package/dist/lib/hooks/use-barcode-scanner.d.ts +39 -0
  91. package/dist/lib/i18n/resources/en/en.d.ts +25 -0
  92. package/dist/lib/i18n/resources/en/material.json.d.ts +26 -1
  93. package/dist/lib/i18n/resources/fr/fr.d.ts +25 -0
  94. package/dist/lib/i18n/resources/fr/material.json.d.ts +26 -1
  95. package/dist/lib/i18n/resources/resources.d.ts +50 -0
  96. package/dist/lib/i18n/translator.d.ts +1 -1
  97. package/dist/lib/keypad/index.d.ts +20 -0
  98. package/dist/lib.js +1 -1
  99. package/dist/main.js +54 -53
  100. package/dist/map.js +9 -9
  101. package/dist/material.css +1 -1
  102. package/dist/pdf-reader.js +1 -1
  103. package/dist/{percent-field-DGlU_xii.js → percent-field-DU8eIMD3.js} +15 -14
  104. package/dist/{picker-surface-CGhqNR8a.js → picker-surface-XmA--JVI.js} +4 -4
  105. package/dist/{popover-ZxL7ktKk.js → popover-D8iHiAbl.js} +1 -1
  106. package/dist/{pos-types-BQ0QpYMp.js → pos-types-BEAY27Rm.js} +1 -1
  107. package/dist/{pos-variant-CKy8h_5i.js → pos-variant-ClGI92Lt.js} +25 -25
  108. package/dist/print.js +1 -1
  109. package/dist/{programmer-variant-CbHstE28.js → programmer-variant-Boq2O8hB.js} +30 -30
  110. package/dist/{public-D-tdOz4b.js → public-DOrXKmcL.js} +9 -9
  111. package/dist/{rich-code-block-CTPj1LuD.js → rich-code-block-Djj2XE_u.js} +18 -18
  112. package/dist/{scientific-variant-B8U9h3II.js → scientific-variant-BzF_aMQP.js} +8 -8
  113. package/dist/{sortable-provider-CSoWE7Ce.js → sortable-provider-DCZjsIIH.js} +2 -2
  114. package/dist/{spinner-ffuwBXHl.js → spinner-Cg0y_E_K.js} +1 -1
  115. package/dist/standard-layout-DTr9yy8Z.js +48 -0
  116. package/dist/{tabs-JgRq6ZJx.js → tabs-DpessV5s.js} +1 -1
  117. package/dist/{text-field-DURkIP-v.js → text-field-Dxk9lAKM.js} +16 -15
  118. package/dist/theme-picker.js +13 -13
  119. package/dist/{theme-toggle-n_Zg7JAA.js → theme-toggle-B6Jl5Kfn.js} +1 -1
  120. package/dist/{toolbar-items-IANZdcw4.js → toolbar-items-Cs1XrZsH.js} +4 -4
  121. package/dist/{translate-material-CMHUH5Ha.js → translate-material-Du0j0t97.js} +1 -1
  122. package/dist/{translator-9zA-Um3W.js → translator-BVs4n0Fz.js} +52 -2
  123. package/dist/use-calculator-keyboard-BZ1CA4Ut.js +222 -0
  124. package/dist/{use-chat-composer-BoIN7RCA.js → use-chat-composer-B4m3OEm1.js} +241 -240
  125. package/dist/{use-heading-spy-Ciw9GBHL.js → use-heading-spy-CO3_AtY9.js} +235 -154
  126. package/dist/{use-material-translation-CLNaMhUf.js → use-material-translation-uNc1FyC8.js} +1 -1
  127. package/dist/{use-return-focus-DWhbTGVe.js → use-return-focus-AfLRrUm-.js} +1 -1
  128. package/docs/README.md +1 -0
  129. package/docs/components/README.md +1 -0
  130. package/docs/components/buttons-and-actions.md +34 -2
  131. package/docs/components/data-display.md +4 -1
  132. package/docs/components/feedback-and-status.md +20 -0
  133. package/docs/components/navigation-and-layout.md +28 -0
  134. package/docs/components/rich-widgets.md +28 -0
  135. package/docs/components/selection-and-choice.md +120 -0
  136. package/docs/guides/calculator.md +1 -1
  137. package/docs/guides/cards-and-tiles.md +21 -24
  138. package/docs/guides/forms.md +1 -0
  139. package/docs/guides/helpers.md +49 -0
  140. package/docs/guides/keypad.md +225 -0
  141. package/docs/previews/data-display-codeblock.webp +0 -0
  142. package/docs/previews/data-display-codegroup.webp +0 -0
  143. package/docs/previews/data-display-jsonviewer.webp +0 -0
  144. package/docs/previews/navigation-layout-panelcard.webp +0 -0
  145. package/docs/previews/rich-widgets-keypad.webp +0 -0
  146. package/docs/previews/selection-choice-statusmenu.webp +0 -0
  147. package/docs/roadmap.md +21 -0
  148. package/docs/troubleshooting.md +63 -0
  149. package/lib/components/ui/actions/action-card/action-card-tile.css +47 -0
  150. package/lib/components/ui/display/code/code-moonlight.css +10 -10
  151. package/lib/components/ui/widgets/calculator/calculator.css +87 -0
  152. package/package.json +7 -2
  153. package/dist/field-blur-context-BLGgf_3z.js +0 -73
  154. package/dist/key-layout-cR79xfGE.js +0 -38
  155. package/dist/standard-layout-BuSRr3TY.js +0 -40
@@ -1,39 +1,40 @@
1
1
  import { r as e } from "./rolldown-runtime-BFFgcFxR.js";
2
2
  import { t } from "./utils-BLfntITJ.js";
3
3
  import { t as n } from "./dist-DWZXlCZR.js";
4
- import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-FdGC5kIP.js";
5
- import { a as c, i as l, n as u } from "./field-blur-context-BLGgf_3z.js";
6
- import { a as d, o as f, r as p, s as m, t as h } from "./toolbar-items-IANZdcw4.js";
7
- import { t as g } from "./is-production-GLw59WU8.js";
8
- import { t as _ } from "./use-material-translation-CLNaMhUf.js";
9
- import { i as v, n as y, o as b, t as x } from "./code-language-items-CSZX5zxD.js";
10
- import { t as S } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
11
- import { n as C, t as w } from "./escape-owner-DpaP0lm1.js";
4
+ import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-BnfLWu8n.js";
5
+ import { t as c } from "./label-DR-zZyGQ.js";
6
+ import { a as l, o as u, r as d, s as f, t as p } from "./toolbar-items-Cs1XrZsH.js";
7
+ import { t as m } from "./is-production-GLw59WU8.js";
8
+ import { t as h } from "./use-material-translation-uNc1FyC8.js";
9
+ import { i as g, n as _, s as v, t as y } from "./code-language-items-Cf2LJVg2.js";
10
+ import { t as b } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
11
+ import { n as x, t as S } from "./escape-owner-DpaP0lm1.js";
12
+ import { i as C, n as w } from "./field-blur-context-3rKussBQ.js";
12
13
  import { t as T } from "./skeleton-DSdtr2qc.js";
13
14
  import { t as E } from "./react-node-text-Crkpfpco.js";
14
15
  import D, { memo as O, useCallback as ee, useEffect as k, useId as A, useImperativeHandle as j, useMemo as M, useRef as N, useState as P } from "react";
15
16
  import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
16
- import { Check as R, ChevronDown as te, CircleAlert as ne, Copy as re, FileCode2 as ie, Lock as ae, Maximize2 as oe, Minimize2 as se, Search as ce, TriangleAlert as le, WandSparkles as ue, WrapText as de } from "lucide-react";
17
- import { inertOthers as fe } from "@nxgt/material-core/inert-others";
18
- import { describedBy as pe } from "@nxgt/material-core/described-by";
17
+ import { Check as te, ChevronDown as ne, CircleAlert as re, Copy as ie, FileCode2 as ae, Lock as oe, Maximize2 as se, Minimize2 as ce, Search as le, TriangleAlert as ue, WandSparkles as de, WrapText as fe } from "lucide-react";
18
+ import { inertOthers as pe } from "@nxgt/material-core/inert-others";
19
+ import { describedBy as me } from "@nxgt/material-core/described-by";
19
20
  //#region ../../node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js
20
- function me(e, t) {
21
+ function he(e, t) {
21
22
  (t == null || t > e.length) && (t = e.length);
22
23
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
23
24
  return r;
24
25
  }
25
- function he(e) {
26
+ function ge(e) {
26
27
  if (Array.isArray(e)) return e;
27
28
  }
28
- function ge(e, t, n) {
29
- return (t = Te(t)) in e ? Object.defineProperty(e, t, {
29
+ function _e(e, t, n) {
30
+ return (t = Ee(t)) in e ? Object.defineProperty(e, t, {
30
31
  value: n,
31
32
  enumerable: !0,
32
33
  configurable: !0,
33
34
  writable: !0
34
35
  }) : e[t] = n, e;
35
36
  }
36
- function _e(e, t) {
37
+ function ve(e, t) {
37
38
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
38
39
  if (n != null) {
39
40
  var r, i, a, o, s = [], c = !0, l = !1;
@@ -51,10 +52,10 @@ function _e(e, t) {
51
52
  return s;
52
53
  }
53
54
  }
54
- function ve() {
55
+ function ye() {
55
56
  throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
56
57
  }
57
- function ye(e, t) {
58
+ function be(e, t) {
58
59
  var n = Object.keys(e);
59
60
  if (Object.getOwnPropertySymbols) {
60
61
  var r = Object.getOwnPropertySymbols(e);
@@ -64,27 +65,27 @@ function ye(e, t) {
64
65
  }
65
66
  return n;
66
67
  }
67
- function be(e) {
68
+ function xe(e) {
68
69
  for (var t = 1; t < arguments.length; t++) {
69
70
  var n = arguments[t] == null ? {} : arguments[t];
70
- t % 2 ? ye(Object(n), !0).forEach(function(t) {
71
- ge(e, t, n[t]);
72
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ye(Object(n)).forEach(function(t) {
71
+ t % 2 ? be(Object(n), !0).forEach(function(t) {
72
+ _e(e, t, n[t]);
73
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : be(Object(n)).forEach(function(t) {
73
74
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
74
75
  });
75
76
  }
76
77
  return e;
77
78
  }
78
- function xe(e, t) {
79
+ function Se(e, t) {
79
80
  if (e == null) return {};
80
- var n, r, i = Se(e, t);
81
+ var n, r, i = Ce(e, t);
81
82
  if (Object.getOwnPropertySymbols) {
82
83
  var a = Object.getOwnPropertySymbols(e);
83
84
  for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
84
85
  }
85
86
  return i;
86
87
  }
87
- function Se(e, t) {
88
+ function Ce(e, t) {
88
89
  if (e == null) return {};
89
90
  var n = {};
90
91
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -93,10 +94,10 @@ function Se(e, t) {
93
94
  }
94
95
  return n;
95
96
  }
96
- function Ce(e, t) {
97
- return he(e) || _e(e, t) || Ee(e, t) || ve();
98
- }
99
97
  function we(e, t) {
98
+ return ge(e) || ve(e, t) || De(e, t) || ye();
99
+ }
100
+ function Te(e, t) {
100
101
  if (typeof e != "object" || !e) return e;
101
102
  var n = e[Symbol.toPrimitive];
102
103
  if (n !== void 0) {
@@ -106,20 +107,20 @@ function we(e, t) {
106
107
  }
107
108
  return (t === "string" ? String : Number)(e);
108
109
  }
109
- function Te(e) {
110
- var t = we(e, "string");
110
+ function Ee(e) {
111
+ var t = Te(e, "string");
111
112
  return typeof t == "symbol" ? t : t + "";
112
113
  }
113
- function Ee(e, t) {
114
+ function De(e, t) {
114
115
  if (e) {
115
- if (typeof e == "string") return me(e, t);
116
+ if (typeof e == "string") return he(e, t);
116
117
  var n = {}.toString.call(e).slice(8, -1);
117
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? me(e, t) : void 0;
118
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? he(e, t) : void 0;
118
119
  }
119
120
  }
120
121
  //#endregion
121
122
  //#region ../../node_modules/state-local/lib/es/state-local.js
122
- function De(e, t, n) {
123
+ function Oe(e, t, n) {
123
124
  return t in e ? Object.defineProperty(e, t, {
124
125
  value: n,
125
126
  enumerable: !0,
@@ -127,7 +128,7 @@ function De(e, t, n) {
127
128
  writable: !0
128
129
  }) : e[t] = n, e;
129
130
  }
130
- function Oe(e, t) {
131
+ function ke(e, t) {
131
132
  var n = Object.keys(e);
132
133
  if (Object.getOwnPropertySymbols) {
133
134
  var r = Object.getOwnPropertySymbols(e);
@@ -137,18 +138,18 @@ function Oe(e, t) {
137
138
  }
138
139
  return n;
139
140
  }
140
- function ke(e) {
141
+ function Ae(e) {
141
142
  for (var t = 1; t < arguments.length; t++) {
142
143
  var n = arguments[t] == null ? {} : arguments[t];
143
- t % 2 ? Oe(Object(n), !0).forEach(function(t) {
144
- De(e, t, n[t]);
145
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Oe(Object(n)).forEach(function(t) {
144
+ t % 2 ? ke(Object(n), !0).forEach(function(t) {
145
+ Oe(e, t, n[t]);
146
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ke(Object(n)).forEach(function(t) {
146
147
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
147
148
  });
148
149
  }
149
150
  return e;
150
151
  }
151
- function Ae() {
152
+ function je() {
152
153
  var e = [...arguments];
153
154
  return function(t) {
154
155
  return e.reduceRight(function(e, t) {
@@ -156,7 +157,7 @@ function Ae() {
156
157
  }, t);
157
158
  };
158
159
  }
159
- function z(e) {
160
+ function R(e) {
160
161
  return function t() {
161
162
  var n = this, r = [...arguments];
162
163
  return r.length >= e.length ? e.apply(this, r) : function() {
@@ -165,38 +166,38 @@ function z(e) {
165
166
  };
166
167
  };
167
168
  }
168
- function B(e) {
169
+ function z(e) {
169
170
  return {}.toString.call(e).includes("Object");
170
171
  }
171
- function je(e) {
172
+ function Me(e) {
172
173
  return !Object.keys(e).length;
173
174
  }
174
- function V(e) {
175
+ function B(e) {
175
176
  return typeof e == "function";
176
177
  }
177
- function Me(e, t) {
178
- return Object.prototype.hasOwnProperty.call(e, t);
179
- }
180
178
  function Ne(e, t) {
181
- return B(t) || H("changeType"), Object.keys(t).some(function(t) {
182
- return !Me(e, t);
183
- }) && H("changeField"), t;
179
+ return Object.prototype.hasOwnProperty.call(e, t);
184
180
  }
185
- function Pe(e) {
186
- V(e) || H("selectorType");
181
+ function Pe(e, t) {
182
+ return z(t) || V("changeType"), Object.keys(t).some(function(t) {
183
+ return !Ne(e, t);
184
+ }) && V("changeField"), t;
187
185
  }
188
186
  function Fe(e) {
189
- V(e) || B(e) || H("handlerType"), B(e) && Object.values(e).some(function(e) {
190
- return !V(e);
191
- }) && H("handlersType");
187
+ B(e) || V("selectorType");
192
188
  }
193
189
  function Ie(e) {
194
- e || H("initialIsRequired"), B(e) || H("initialType"), je(e) && H("initialContent");
190
+ B(e) || z(e) || V("handlerType"), z(e) && Object.values(e).some(function(e) {
191
+ return !B(e);
192
+ }) && V("handlersType");
193
+ }
194
+ function Le(e) {
195
+ e || V("initialIsRequired"), z(e) || V("initialType"), Me(e) && V("initialContent");
195
196
  }
196
- function Le(e, t) {
197
+ function Re(e, t) {
197
198
  throw Error(e[t] || e.default);
198
199
  }
199
- var H = z(Le)({
200
+ var V = R(Re)({
200
201
  initialIsRequired: "initial state is required",
201
202
  initialType: "initial state should be an object",
202
203
  initialContent: "initial state shouldn't be an empty object",
@@ -206,42 +207,42 @@ var H = z(Le)({
206
207
  changeType: "provided value of changes should be an object",
207
208
  changeField: "it seams you want to change a field in the state which is not specified in the \"initial\" state",
208
209
  default: "an unknown error accured in `state-local` package"
209
- }), U = {
210
- changes: Ne,
211
- selector: Pe,
212
- handler: Fe,
213
- initial: Ie
210
+ }), H = {
211
+ changes: Pe,
212
+ selector: Fe,
213
+ handler: Ie,
214
+ initial: Le
214
215
  };
215
- function Re(e) {
216
+ function ze(e) {
216
217
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
217
- U.initial(e), U.handler(t);
218
- var n = { current: e }, r = z(Ve)(n, t), i = z(Be)(n), a = z(U.changes)(e), o = z(ze)(n);
218
+ H.initial(e), H.handler(t);
219
+ var n = { current: e }, r = R(He)(n, t), i = R(Ve)(n), a = R(H.changes)(e), o = R(Be)(n);
219
220
  function s() {
220
221
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(e) {
221
222
  return e;
222
223
  };
223
- return U.selector(e), e(n.current);
224
+ return H.selector(e), e(n.current);
224
225
  }
225
226
  function c(e) {
226
- Ae(r, i, a, o)(e);
227
+ je(r, i, a, o)(e);
227
228
  }
228
229
  return [s, c];
229
230
  }
230
- function ze(e, t) {
231
- return V(t) ? t(e.current) : t;
232
- }
233
231
  function Be(e, t) {
234
- return e.current = ke(ke({}, e.current), t), t;
232
+ return B(t) ? t(e.current) : t;
233
+ }
234
+ function Ve(e, t) {
235
+ return e.current = Ae(Ae({}, e.current), t), t;
235
236
  }
236
- function Ve(e, t, n) {
237
- return V(t) ? t(e.current) : Object.keys(n).forEach(function(n) {
237
+ function He(e, t, n) {
238
+ return B(t) ? t(e.current) : Object.keys(n).forEach(function(n) {
238
239
  return t[n]?.call(t, e.current[n]);
239
240
  }), n;
240
241
  }
241
- var He = { create: Re }, Ue = { paths: { vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs" } };
242
+ var Ue = { create: ze }, We = { paths: { vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs" } };
242
243
  //#endregion
243
244
  //#region ../../node_modules/@monaco-editor/loader/lib/es/utils/curry.js
244
- function We(e) {
245
+ function Ge(e) {
245
246
  return function t() {
246
247
  var n = this, r = [...arguments];
247
248
  return r.length >= e.length ? e.apply(this, r) : function() {
@@ -252,26 +253,26 @@ function We(e) {
252
253
  }
253
254
  //#endregion
254
255
  //#region ../../node_modules/@monaco-editor/loader/lib/es/utils/isObject.js
255
- function Ge(e) {
256
+ function Ke(e) {
256
257
  return {}.toString.call(e).includes("Object");
257
258
  }
258
259
  //#endregion
259
260
  //#region ../../node_modules/@monaco-editor/loader/lib/es/validators/index.js
260
- function Ke(e) {
261
- return e || Xe("configIsRequired"), Ge(e) || Xe("configType"), e.urls ? (qe(), { paths: { vs: e.urls.monacoBase } }) : e;
261
+ function qe(e) {
262
+ return e || Ze("configIsRequired"), Ke(e) || Ze("configType"), e.urls ? (Je(), { paths: { vs: e.urls.monacoBase } }) : e;
262
263
  }
263
- function qe() {
264
- console.warn(Ye.deprecation);
264
+ function Je() {
265
+ console.warn(Xe.deprecation);
265
266
  }
266
- function Je(e, t) {
267
+ function Ye(e, t) {
267
268
  throw Error(e[t] || e.default);
268
269
  }
269
- var Ye = {
270
+ var Xe = {
270
271
  configIsRequired: "the configuration object is required",
271
272
  configType: "the configuration object should be an object",
272
273
  default: "an unknown error accured in `@monaco-editor/loader` package",
273
274
  deprecation: "Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "
274
- }, Xe = We(Je)(Ye), Ze = { config: Ke }, Qe = function() {
275
+ }, Ze = Ge(Ye)(Xe), Qe = { config: qe }, $e = function() {
275
276
  var e = [...arguments];
276
277
  return function(t) {
277
278
  return e.reduceRight(function(e, t) {
@@ -281,21 +282,21 @@ var Ye = {
281
282
  };
282
283
  //#endregion
283
284
  //#region ../../node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js
284
- function $e(e, t) {
285
+ function et(e, t) {
285
286
  return Object.keys(t).forEach(function(n) {
286
- t[n] instanceof Object && e[n] && Object.assign(t[n], $e(e[n], t[n]));
287
- }), be(be({}, e), t);
287
+ t[n] instanceof Object && e[n] && Object.assign(t[n], et(e[n], t[n]));
288
+ }), xe(xe({}, e), t);
288
289
  }
289
290
  //#endregion
290
291
  //#region ../../node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js
291
- var et = {
292
+ var tt = {
292
293
  type: "cancelation",
293
294
  msg: "operation is manually canceled"
294
295
  };
295
- function tt(e) {
296
+ function nt(e) {
296
297
  var t = !1, n = new Promise(function(n, r) {
297
298
  e.then(function(e) {
298
- return t ? r(et) : n(e);
299
+ return t ? r(tt) : n(e);
299
300
  }), e.catch(r);
300
301
  });
301
302
  return n.cancel = function() {
@@ -304,24 +305,24 @@ function tt(e) {
304
305
  }
305
306
  //#endregion
306
307
  //#region ../../node_modules/@monaco-editor/loader/lib/es/loader/index.js
307
- var nt = ["monaco"], rt = Ce(He.create({
308
- config: Ue,
308
+ var rt = ["monaco"], it = we(Ue.create({
309
+ config: We,
309
310
  isInitialized: !1,
310
311
  resolve: null,
311
312
  reject: null,
312
313
  monaco: null
313
- }), 2), W = rt[0], G = rt[1];
314
- function it(e) {
315
- var t = Ze.config(e), n = t.monaco, r = xe(t, nt);
316
- G(function(e) {
314
+ }), 2), U = it[0], W = it[1];
315
+ function at(e) {
316
+ var t = Qe.config(e), n = t.monaco, r = Se(t, rt);
317
+ W(function(e) {
317
318
  return {
318
- config: $e(e.config, r),
319
+ config: et(e.config, r),
319
320
  monaco: n
320
321
  };
321
322
  });
322
323
  }
323
- function at() {
324
- var e = W(function(e) {
324
+ function ot() {
325
+ var e = U(function(e) {
325
326
  return {
326
327
  monaco: e.monaco,
327
328
  isInitialized: e.isInitialized,
@@ -329,32 +330,32 @@ function at() {
329
330
  };
330
331
  });
331
332
  if (!e.isInitialized) {
332
- if (G({ isInitialized: !0 }), e.monaco) return e.resolve(e.monaco), tt(ft);
333
- if (window.monaco && window.monaco.editor) return ut(window.monaco), e.resolve(window.monaco), tt(ft);
334
- Qe(ot, ct)(lt);
333
+ if (W({ isInitialized: !0 }), e.monaco) return e.resolve(e.monaco), nt(pt);
334
+ if (window.monaco && window.monaco.editor) return dt(window.monaco), e.resolve(window.monaco), nt(pt);
335
+ $e(st, lt)(ut);
335
336
  }
336
- return tt(ft);
337
+ return nt(pt);
337
338
  }
338
- function ot(e) {
339
+ function st(e) {
339
340
  return document.body.appendChild(e);
340
341
  }
341
- function st(e) {
342
+ function ct(e) {
342
343
  var t = document.createElement("script");
343
344
  return e && (t.src = e), t;
344
345
  }
345
- function ct(e) {
346
- var t = W(function(e) {
346
+ function lt(e) {
347
+ var t = U(function(e) {
347
348
  return {
348
349
  config: e.config,
349
350
  reject: e.reject
350
351
  };
351
- }), n = st(`${t.config.paths.vs}/loader.js`);
352
+ }), n = ct(`${t.config.paths.vs}/loader.js`);
352
353
  return n.onload = function() {
353
354
  return e();
354
355
  }, n.onerror = t.reject, n;
355
356
  }
356
- function lt() {
357
- var e = W(function(e) {
357
+ function ut() {
358
+ var e = U(function(e) {
358
359
  return {
359
360
  config: e.config,
360
361
  resolve: e.resolve,
@@ -363,28 +364,28 @@ function lt() {
363
364
  }), t = window.require;
364
365
  t.config(e.config), t(["vs/editor/editor.main"], function(t) {
365
366
  var n = t.m || t;
366
- ut(n), e.resolve(n);
367
+ dt(n), e.resolve(n);
367
368
  }, function(t) {
368
369
  e.reject(t);
369
370
  });
370
371
  }
371
- function ut(e) {
372
- W().monaco || G({ monaco: e });
372
+ function dt(e) {
373
+ U().monaco || W({ monaco: e });
373
374
  }
374
- function dt() {
375
- return W(function(e) {
375
+ function ft() {
376
+ return U(function(e) {
376
377
  return e.monaco;
377
378
  });
378
379
  }
379
- var ft = new Promise(function(e, t) {
380
- return G({
380
+ var pt = new Promise(function(e, t) {
381
+ return W({
381
382
  resolve: e,
382
383
  reject: t
383
384
  });
384
- }), pt = {
385
- config: it,
386
- init: at,
387
- __getMonacoInstance: dt
385
+ }), G = {
386
+ config: at,
387
+ init: ot,
388
+ __getMonacoInstance: ft
388
389
  }, mt = {
389
390
  wrapper: {
390
391
  display: "flex",
@@ -449,7 +450,7 @@ function Tt(e, t) {
449
450
  function Et({ original: e, modified: t, language: n, originalLanguage: r, modifiedLanguage: i, originalModelPath: a, modifiedModelPath: o, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: c = !1, theme: l = "light", loading: u = "Loading...", options: d = {}, height: f = "100%", width: p = "100%", className: m, wrapperProps: h = {}, beforeMount: g = q, onMount: _ = q }) {
450
451
  let [v, y] = P(!1), [b, x] = P(!0), S = N(null), C = N(null), w = N(null), T = N(_), E = N(g), O = N(!1);
451
452
  xt(() => {
452
- let e = pt.init();
453
+ let e = G.init();
453
454
  return e.then((e) => (C.current = e) && x(!1)).catch((e) => e?.type !== "cancelation" && console.error("Monaco initialization: error:", e)), () => S.current ? M() : e.cancel();
454
455
  }), K(() => {
455
456
  if (S.current && C.current) {
@@ -540,21 +541,21 @@ function Ot(e) {
540
541
  }
541
542
  var kt = Ot, Y = /* @__PURE__ */ new Map();
542
543
  function At({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, language: i, path: a, theme: o = "light", line: s, loading: c = "Loading...", options: l = {}, overrideServices: u = {}, saveViewState: d = !0, keepCurrentModel: f = !1, width: p = "100%", height: m = "100%", className: h, wrapperProps: g = {}, beforeMount: _ = q, onMount: v = q, onChange: y, onValidate: b = q }) {
543
- let [x, S] = P(!1), [C, w] = P(!0), T = N(null), E = N(null), O = N(null), A = N(v), j = N(_), M = N(), F = N(r), I = kt(a), L = N(!1), R = N(!1);
544
+ let [x, S] = P(!1), [C, w] = P(!0), T = N(null), E = N(null), O = N(null), A = N(v), j = N(_), M = N(), F = N(r), I = kt(a), L = N(!1), te = N(!1);
544
545
  xt(() => {
545
- let e = pt.init();
546
- return e.then((e) => (T.current = e) && w(!1)).catch((e) => e?.type !== "cancelation" && console.error("Monaco initialization: error:", e)), () => E.current ? ne() : e.cancel();
546
+ let e = G.init();
547
+ return e.then((e) => (T.current = e) && w(!1)).catch((e) => e?.type !== "cancelation" && console.error("Monaco initialization: error:", e)), () => E.current ? re() : e.cancel();
547
548
  }), K(() => {
548
549
  let o = J(T.current, e || r || "", t || i || "", a || n || "");
549
550
  o !== E.current?.getModel() && (d && Y.set(I, E.current?.saveViewState()), E.current?.setModel(o), d && E.current?.restoreViewState(Y.get(a)));
550
551
  }, [a], x), K(() => {
551
552
  E.current?.updateOptions(l);
552
553
  }, [l], x), K(() => {
553
- !E.current || r === void 0 || (E.current.getOption(T.current.editor.EditorOption.readOnly) ? E.current.setValue(r) : r !== E.current.getValue() && (R.current = !0, E.current.executeEdits("", [{
554
+ !E.current || r === void 0 || (E.current.getOption(T.current.editor.EditorOption.readOnly) ? E.current.setValue(r) : r !== E.current.getValue() && (te.current = !0, E.current.executeEdits("", [{
554
555
  range: E.current.getModel().getFullModelRange(),
555
556
  text: r,
556
557
  forceMoveMarkers: !0
557
- }]), E.current.pushUndoStop(), R.current = !1));
558
+ }]), E.current.pushUndoStop(), te.current = !1));
558
559
  }, [r], x), K(() => {
559
560
  let e = E.current?.getModel();
560
561
  e && i && T.current?.editor.setModelLanguage(e, i);
@@ -563,7 +564,7 @@ function At({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, lan
563
564
  }, [s], x), K(() => {
564
565
  T.current?.editor.setTheme(o);
565
566
  }, [o], x);
566
- let te = ee(() => {
567
+ let ne = ee(() => {
567
568
  if (!(!O.current || !T.current) && !L.current) {
568
569
  j.current(T.current);
569
570
  let c = a || n, f = J(T.current, r || e || "", t || i || "", c || "");
@@ -589,14 +590,14 @@ function At({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, lan
589
590
  k(() => {
590
591
  x && A.current(E.current, T.current);
591
592
  }, [x]), k(() => {
592
- !C && !x && te();
593
+ !C && !x && ne();
593
594
  }, [
594
595
  C,
595
596
  x,
596
- te
597
+ ne
597
598
  ]), F.current = r, k(() => {
598
599
  x && y && (M.current?.dispose(), M.current = E.current?.onDidChangeModelContent((e) => {
599
- R.current || y(E.current.getValue(), e);
600
+ te.current || y(E.current.getValue(), e);
600
601
  }));
601
602
  }, [x, y]), k(() => {
602
603
  if (x) {
@@ -613,7 +614,7 @@ function At({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, lan
613
614
  }
614
615
  return () => {};
615
616
  }, [x, b]);
616
- function ne() {
617
+ function re() {
617
618
  M.current?.dispose(), f ? d && Y.set(a, E.current.saveViewState()) : E.current.getModel()?.dispose(), E.current.dispose();
618
619
  }
619
620
  return D.createElement(yt, {
@@ -630,7 +631,7 @@ var jt = O(At);
630
631
  //#endregion
631
632
  //#region lib/components/ui/display/code/monaco-load-failed.tsx
632
633
  function Mt({ height: e }) {
633
- let { t } = _();
634
+ let { t } = h();
634
635
  return /* @__PURE__ */ I("p", {
635
636
  role: "alert",
636
637
  style: { height: e },
@@ -644,7 +645,7 @@ function Nt() {
644
645
  let [e, t] = P(!1);
645
646
  return k(() => {
646
647
  let e = !0;
647
- return pt.init().catch((n) => {
648
+ return G.init().catch((n) => {
648
649
  let r = n?.type;
649
650
  e && r !== "cancelation" && t(!0);
650
651
  }), () => {
@@ -896,16 +897,16 @@ function Qt({ props: e, code: t, view: n, language: r, wordWrap: i, readOnly: a,
896
897
  //#region lib/components/ui/widgets/code-editor/code-editor-field.tsx
897
898
  function $t({ props: { label: e, required: n, helperText: r, className: i }, view: { helperId: a, invalid: o }, children: s }) {
898
899
  return /* @__PURE__ */ L("div", {
899
- ref: u(),
900
+ ref: w(),
900
901
  "data-slot": "code-editor",
901
902
  className: t("grid w-full min-w-0 max-w-full gap-1.5", i),
902
903
  children: [
903
- /* @__PURE__ */ I(l, {
904
+ /* @__PURE__ */ I(c, {
904
905
  withAsterisk: n,
905
906
  children: e
906
907
  }),
907
908
  s,
908
- r && /* @__PURE__ */ I(c, {
909
+ r && /* @__PURE__ */ I(C, {
909
910
  id: a,
910
911
  error: o,
911
912
  children: r
@@ -965,7 +966,7 @@ function cn(e, t, r) {
965
966
  n.contains(r) || n.focus();
966
967
  let a = t?.parentElement;
967
968
  t && n.appendChild(t);
968
- let o = an(), s = n.parentElement?.querySelector(`:scope > [data-slot="${en}"]`), c = fe(n, [s]);
969
+ let o = an(), s = n.parentElement?.querySelector(`:scope > [data-slot="${en}"]`), c = pe(n, [s]);
969
970
  return () => {
970
971
  c(), t && a && n.isConnected && a.appendChild(t), o();
971
972
  let e = document.activeElement;
@@ -977,7 +978,7 @@ function cn(e, t, r) {
977
978
  t
978
979
  ]);
979
980
  let o = (t) => {
980
- let n = e.current, r = t.nativeEvent.defaultPrevented && !C(t.nativeEvent);
981
+ let n = e.current, r = t.nativeEvent.defaultPrevented && !x(t.nativeEvent);
981
982
  !i || !n || r || n.contains(t.target) && (t.key === "Escape" ? (t.preventDefault(), a(!1)) : t.key === "Tab" && sn(t, n));
982
983
  };
983
984
  return {
@@ -991,7 +992,7 @@ function cn(e, t, r) {
991
992
  tabIndex: -1
992
993
  },
993
994
  "data-fullscreen": i || void 0,
994
- [w]: i || void 0,
995
+ [S]: i || void 0,
995
996
  onKeyDown: o
996
997
  })
997
998
  };
@@ -999,14 +1000,14 @@ function cn(e, t, r) {
999
1000
  //#endregion
1000
1001
  //#region lib/components/ui/widgets/code-editor/status/code-editor-status.tsx
1001
1002
  function ln({ language: e, position: t, markers: n, onReveal: r, readOnly: i }) {
1002
- let { t: a } = _(), o = n.filter((e) => e.severity === "error").length, s = n.filter((e) => e.severity === "warning").length, c = n.find((e) => e.severity !== "info"), l = o ? a("material.code.errors", "{count, plural, one {# error} other {# errors}}", { count: o }) : a("material.code.warnings", "{count, plural, one {# warning} other {# warnings}}", { count: s });
1003
+ let { t: a } = h(), o = n.filter((e) => e.severity === "error").length, s = n.filter((e) => e.severity === "warning").length, c = n.find((e) => e.severity !== "info"), l = o ? a("material.code.errors", "{count, plural, one {# error} other {# errors}}", { count: o }) : a("material.code.warnings", "{count, plural, one {# warning} other {# warnings}}", { count: s });
1003
1004
  return /* @__PURE__ */ L("div", {
1004
1005
  "data-slot": "code-editor-status",
1005
1006
  className: "nxgt-code-status",
1006
1007
  children: [
1007
1008
  i && /* @__PURE__ */ L("span", {
1008
1009
  className: "nxgt-code-read-only",
1009
- children: [/* @__PURE__ */ I(ae, { "aria-hidden": !0 }), a("material.code.read-only", "Read-only")]
1010
+ children: [/* @__PURE__ */ I(oe, { "aria-hidden": !0 }), a("material.code.read-only", "Read-only")]
1010
1011
  }),
1011
1012
  c && /* @__PURE__ */ L("button", {
1012
1013
  type: "button",
@@ -1015,7 +1016,7 @@ function ln({ language: e, position: t, markers: n, onReveal: r, readOnly: i })
1015
1016
  title: c.message,
1016
1017
  onClick: () => r(c),
1017
1018
  children: [
1018
- I(o ? ne : le, { "aria-hidden": !0 }),
1019
+ I(o ? re : ue, { "aria-hidden": !0 }),
1019
1020
  /* @__PURE__ */ I("span", { children: l }),
1020
1021
  /* @__PURE__ */ L("span", {
1021
1022
  className: "nxgt-code-problem-msg",
@@ -1031,7 +1032,7 @@ function ln({ language: e, position: t, markers: n, onReveal: r, readOnly: i })
1031
1032
  }),
1032
1033
  /* @__PURE__ */ I("span", { className: "nxgt-code-status-gap" }),
1033
1034
  /* @__PURE__ */ I("span", { children: i ? a("material.code.lines", "{lines, plural, one {# line} other {# lines}}", t) : a("material.code.position", "Ln {line}, Col {column}", t) }),
1034
- e && /* @__PURE__ */ I("span", { children: v(e) })
1035
+ e && /* @__PURE__ */ I("span", { children: g(e) })
1035
1036
  ]
1036
1037
  });
1037
1038
  }
@@ -1044,7 +1045,7 @@ var un = (e, t) => `${e}-tab-${t}`, dn = (e) => `${e}-panel`, fn = {
1044
1045
  End: (e, t) => t - 1
1045
1046
  };
1046
1047
  function pn({ files: e, activePath: t, onActivePathChange: n, baseId: r }) {
1047
- let { t: i } = _(), a = N(null);
1048
+ let { t: i } = h(), a = N(null);
1048
1049
  return /* @__PURE__ */ I("div", {
1049
1050
  ref: a,
1050
1051
  role: "tablist",
@@ -1278,7 +1279,7 @@ function On(e, t) {
1278
1279
  //#region lib/components/ui/widgets/code-editor/theme/define-code-theme.ts
1279
1280
  function kn(e) {
1280
1281
  let t = On(e.light, "light"), n = On(e.dark, "dark"), r = [...Tn(t, "light"), ...Tn(n, "dark")];
1281
- return r.length > 0 && !g() && console.warn(`defineCodeTheme: ${r.length} colour(s) under 4.5:1 — ${r.map((e) => `${e.scheme} ${e.token} on ${e.on} ${e.ratio.toFixed(2)}:1`).join(", ")}`), {
1282
+ return r.length > 0 && !m() && console.warn(`defineCodeTheme: ${r.length} colour(s) under 4.5:1 — ${r.map((e) => `${e.scheme} ${e.token} on ${e.on} ${e.ratio.toFixed(2)}:1`).join(", ")}`), {
1282
1283
  kind: "code-theme",
1283
1284
  light: t,
1284
1285
  dark: n,
@@ -1329,10 +1330,10 @@ function Fn() {
1329
1330
  }
1330
1331
  function In(e, t) {
1331
1332
  let n = M(() => Mn(e, t), [e, t]), r = N(null), [i] = P(() => typeof document > "u" ? void 0 : Fn()), a = N(void 0);
1332
- return S(() => {
1333
+ return b(() => {
1333
1334
  let e = r.current;
1334
1335
  e && Nn(e, n, a.current), i && Pn(i, n, a.current), a.current = n;
1335
- }, [n, i]), S(() => {
1336
+ }, [n, i]), b(() => {
1336
1337
  if (i) return (r.current?.parentElement?.closest("[role=\"dialog\"]") ?? document.body).appendChild(i), () => i.remove();
1337
1338
  }, [i]), {
1338
1339
  scope: n,
@@ -1349,7 +1350,7 @@ function In(e, t) {
1349
1350
  //#region lib/components/ui/widgets/code-editor/tabs/code-file-picker.tsx
1350
1351
  var Ln = (e) => e.path.split("/").pop() ?? e.path, Rn = (e) => e.label ?? Ln(e);
1351
1352
  function zn({ files: e, activePath: t, onActivePathChange: n }) {
1352
- let { t: c } = _(), l = Math.max(e.findIndex((e) => e.path === t), 0), u = e[l];
1353
+ let { t: c } = h(), l = Math.max(e.findIndex((e) => e.path === t), 0), u = e[l];
1353
1354
  return /* @__PURE__ */ L(s, { children: [/* @__PURE__ */ I(r, {
1354
1355
  asChild: !0,
1355
1356
  children: /* @__PURE__ */ L("button", {
@@ -1378,7 +1379,7 @@ function zn({ files: e, activePath: t, onActivePathChange: n }) {
1378
1379
  e.length
1379
1380
  ]
1380
1381
  }),
1381
- /* @__PURE__ */ I(te, { "aria-hidden": !0 })
1382
+ /* @__PURE__ */ I(ne, { "aria-hidden": !0 })
1382
1383
  ]
1383
1384
  })
1384
1385
  }), /* @__PURE__ */ I(o, {
@@ -1403,8 +1404,8 @@ function zn({ files: e, activePath: t, onActivePathChange: n }) {
1403
1404
  //#endregion
1404
1405
  //#region lib/components/ui/widgets/code-editor/toolbar/code-copy-tool.tsx
1405
1406
  function Bn({ reader: e, status: t, disabled: n, onCopy: r }) {
1406
- let { t: i } = _(), a = i("material.code.copy", "Copy"), o = I(t === "copied" ? R : re, {});
1407
- return e ? /* @__PURE__ */ I(d, {
1407
+ let { t: i } = h(), a = i("material.code.copy", "Copy"), o = I(t === "copied" ? te : ie, {});
1408
+ return e ? /* @__PURE__ */ I(l, {
1408
1409
  label: a,
1409
1410
  fit: !1,
1410
1411
  priority: "pinned",
@@ -1415,7 +1416,7 @@ function Bn({ reader: e, status: t, disabled: n, onCopy: r }) {
1415
1416
  onClick: r,
1416
1417
  children: [o, /* @__PURE__ */ I("span", { children: t === "copied" ? i("material.code.copied", "Copied") : a })]
1417
1418
  })
1418
- }) : /* @__PURE__ */ I(h, {
1419
+ }) : /* @__PURE__ */ I(p, {
1419
1420
  icon: o,
1420
1421
  label: a,
1421
1422
  priority: 2,
@@ -1426,19 +1427,19 @@ function Bn({ reader: e, status: t, disabled: n, onCopy: r }) {
1426
1427
  //#endregion
1427
1428
  //#region lib/components/ui/widgets/code-editor/toolbar/code-language-menu.tsx
1428
1429
  function Vn({ language: e, onLanguageChange: t, disabled: n }) {
1429
- let { t: i } = _(), a = v(e), c = i("material.code.language-is", "Language: {name}", { name: a }), l = /* @__PURE__ */ I(x, {
1430
+ let { t: i } = h(), a = g(e), c = i("material.code.language-is", "Language: {name}", { name: a }), u = /* @__PURE__ */ I(y, {
1430
1431
  language: e,
1431
1432
  onChange: t
1432
1433
  });
1433
1434
  return /* @__PURE__ */ L(s, { children: [/* @__PURE__ */ I(r, {
1434
1435
  asChild: !0,
1435
- children: /* @__PURE__ */ I(d, {
1436
+ children: /* @__PURE__ */ I(l, {
1436
1437
  label: c,
1437
1438
  fit: !1,
1438
1439
  priority: 9,
1439
1440
  more: {
1440
1441
  kind: "submenu",
1441
- content: l,
1442
+ content: u,
1442
1443
  value: a
1443
1444
  },
1444
1445
  children: /* @__PURE__ */ L("button", {
@@ -1447,9 +1448,9 @@ function Vn({ language: e, onLanguageChange: t, disabled: n }) {
1447
1448
  disabled: n,
1448
1449
  "aria-label": c,
1449
1450
  children: [
1450
- /* @__PURE__ */ I(ie, { "aria-hidden": !0 }),
1451
+ /* @__PURE__ */ I(ae, { "aria-hidden": !0 }),
1451
1452
  /* @__PURE__ */ I("span", { children: a }),
1452
- /* @__PURE__ */ I(te, {
1453
+ /* @__PURE__ */ I(ne, {
1453
1454
  "aria-hidden": !0,
1454
1455
  className: "nxgt-code-lang-chevron"
1455
1456
  })
@@ -1459,32 +1460,32 @@ function Vn({ language: e, onLanguageChange: t, disabled: n }) {
1459
1460
  }), /* @__PURE__ */ I(o, {
1460
1461
  align: "end",
1461
1462
  className: "max-h-80",
1462
- children: l
1463
+ children: u
1463
1464
  })] });
1464
1465
  }
1465
1466
  //#endregion
1466
1467
  //#region lib/components/ui/widgets/code-editor/toolbar/code-view-tools.tsx
1467
1468
  function Hn({ disabled: e, wordWrap: t, onWordWrapChange: n, fullscreen: r, onFullscreenChange: i, onFind: a }) {
1468
- let { t: o } = _();
1469
- return /* @__PURE__ */ L(f, {
1469
+ let { t: o } = h();
1470
+ return /* @__PURE__ */ L(u, {
1470
1471
  label: o("material.code.view", "View"),
1471
1472
  priority: 3,
1472
1473
  children: [
1473
- /* @__PURE__ */ I(h, {
1474
- icon: /* @__PURE__ */ I(ce, {}),
1474
+ /* @__PURE__ */ I(p, {
1475
+ icon: /* @__PURE__ */ I(le, {}),
1475
1476
  label: o("material.code.find", "Find"),
1476
1477
  disabled: e,
1477
1478
  onClick: a
1478
1479
  }),
1479
- /* @__PURE__ */ I(p, {
1480
- icon: /* @__PURE__ */ I(de, {}),
1480
+ /* @__PURE__ */ I(d, {
1481
+ icon: /* @__PURE__ */ I(fe, {}),
1481
1482
  label: o("material.code.word-wrap", "Word wrap"),
1482
1483
  pressed: t,
1483
1484
  disabled: e,
1484
1485
  onPressedChange: n
1485
1486
  }),
1486
- i && /* @__PURE__ */ I(p, {
1487
- icon: I(r ? se : oe, {}),
1487
+ i && /* @__PURE__ */ I(d, {
1488
+ icon: I(r ? ce : se, {}),
1488
1489
  label: o("material.code.fullscreen", "Full screen"),
1489
1490
  pressed: !!r,
1490
1491
  disabled: e,
@@ -1518,10 +1519,10 @@ function Wn(e) {
1518
1519
  //#endregion
1519
1520
  //#region lib/components/ui/widgets/code-editor/toolbar/code-editor-toolbar.tsx
1520
1521
  function Gn({ editor: e, language: t, onLanguageChange: n, wordWrap: r, onWordWrapChange: i, fallbackCode: a = "", readOnly: o, disabled: s, fullscreen: c, onFullscreenChange: l }) {
1521
- let { t: u } = _(), { status: d, copy: f } = b(), p = Wn(e), g = (t) => {
1522
+ let { t: u } = h(), { status: d, copy: m } = v(), g = Wn(e), y = (t) => {
1522
1523
  e?.focus(), e?.getAction(t)?.run();
1523
1524
  };
1524
- return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L(m, {
1525
+ return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L(f, {
1525
1526
  label: u("material.code.tools", "Code tools"),
1526
1527
  variant: "floating",
1527
1528
  selectedLook: "morph",
@@ -1542,23 +1543,23 @@ function Gn({ editor: e, language: t, onLanguageChange: n, wordWrap: r, onWordWr
1542
1543
  onWordWrapChange: i,
1543
1544
  fullscreen: c,
1544
1545
  onFullscreenChange: l,
1545
- onFind: () => g("actions.find")
1546
+ onFind: () => y("actions.find")
1546
1547
  }),
1547
- p && !o && /* @__PURE__ */ I(h, {
1548
- icon: /* @__PURE__ */ I(ue, {}),
1548
+ g && !o && /* @__PURE__ */ I(p, {
1549
+ icon: /* @__PURE__ */ I(de, {}),
1549
1550
  label: u("material.code.format", "Format document"),
1550
1551
  priority: 1,
1551
1552
  disabled: s,
1552
- onClick: () => g("editor.action.formatDocument")
1553
+ onClick: () => y("editor.action.formatDocument")
1553
1554
  }),
1554
1555
  /* @__PURE__ */ I(Bn, {
1555
1556
  reader: o,
1556
1557
  status: d,
1557
1558
  disabled: s,
1558
- onCopy: () => void f(e?.getValue() ?? a)
1559
+ onCopy: () => void m(e?.getValue() ?? a)
1559
1560
  })
1560
1561
  ]
1561
- }), /* @__PURE__ */ I(y, {
1562
+ }), /* @__PURE__ */ I(_, {
1562
1563
  slot: "code-editor-copy-status",
1563
1564
  status: d
1564
1565
  })] });
@@ -1729,7 +1730,7 @@ function rr(e) {
1729
1730
  //#endregion
1730
1731
  //#region lib/components/ui/widgets/code-editor/use-code-editor-instance.ts
1731
1732
  function ir(e, t, n) {
1732
- let r = pe(e, !!t && n)?.split(/\s+/);
1733
+ let r = me(e, !!t && n)?.split(/\s+/);
1733
1734
  return r && [...new Set(r)].join(" ");
1734
1735
  }
1735
1736
  function ar(e, t) {
@@ -1819,4 +1820,4 @@ function lr(e) {
1819
1820
  });
1820
1821
  }
1821
1822
  //#endregion
1822
- export { jn as a, Ht as c, Nt as d, Mt as f, In as i, Gt as l, pt as m, cr as n, kn as o, Dt as p, Bn as r, Kt as s, lr as t, Wt as u };
1823
+ export { jn as a, Ht as c, Nt as d, Mt as f, In as i, Gt as l, G as m, cr as n, kn as o, Dt as p, Bn as r, Kt as s, lr as t, Wt as u };