@nxgt/material 3.75.0 → 3.76.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 (239) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +37 -1
  3. package/dist/{alert-dialog-BfO_ri-N.js → alert-dialog-653apk3f.js} +8 -7
  4. package/dist/{async-slice-roMAJVzG.js → async-slice-CXLbQuOc.js} +1 -1
  5. package/dist/{bubble-input-B7BVd9fX.js → bubble-input-CQwVSoU3.js} +30 -29
  6. package/dist/{button-DgenqmpS.js → button-3op3rtZh.js} +5 -4
  7. package/dist/calculator-BaSMe0SK.js +1189 -0
  8. package/dist/calculator-announce-DRd2c6Dq.js +89 -0
  9. package/dist/calculator-context-BugcKuVG.js +10 -0
  10. package/dist/calculator-field.js +172 -0
  11. package/dist/calculator-panel-announce-AZSnZUSr.js +29 -0
  12. package/dist/calculator-segment-BlJE1LaS.js +22 -0
  13. package/dist/calculator.js +2 -0
  14. package/dist/charts.js +3 -3
  15. package/dist/{chip-CiDczNxO.js → chip-MuKDwtkG.js} +2 -2
  16. package/dist/{code-editor-CohlhFsA.js → code-editor-Bp2RrdNx.js} +13 -13
  17. package/dist/code-editor.js +37 -37
  18. package/dist/{code-language-items-Cs8GLYDp.js → code-language-items-B7WR5ua_.js} +19 -24
  19. package/dist/components/base-content.css +9 -4
  20. package/dist/components/ui/collections/server-table/server-table-phone-row.css +10 -3
  21. package/dist/{components-zJdfH4im.js → components-Ci3Zo8kC.js} +15837 -17245
  22. package/dist/components.js +37 -28
  23. package/dist/conversion-variant-BDFAxqe9.js +529 -0
  24. package/dist/copy-to-clipboard-Be5Ffvs_.js +7 -0
  25. package/dist/currency-B-r3ig11.js +16 -0
  26. package/dist/currency-field-BJ9rSrif.js +285 -0
  27. package/dist/{number.utils-BG_eEt5g.js → date.utils-DUvqcjan.js} +1 -7
  28. package/dist/dialog-Bm5LvVlB.js +166 -0
  29. package/dist/dist-BZe2evxL.js +139 -0
  30. package/dist/dist-CxhKjOYm.js +28 -0
  31. package/dist/dist-DHdUUM1w.js +241 -0
  32. package/dist/{dist-C4wtXCjf.js → dist-DOK3zo5C.js} +33 -32
  33. package/dist/dist-DWZXlCZR.js +182 -0
  34. package/dist/dist-DkQbkF9T.js +33 -0
  35. package/dist/dnd.js +1 -1
  36. package/dist/{dropdown-menu-CzR6JP31.js → dropdown-menu-xlZ6NYUA.js} +160 -159
  37. package/dist/editor.js +299 -298
  38. package/dist/{empty-state-DjHGMp5F.js → empty-state-C0kviQdW.js} +2 -2
  39. package/dist/{field-blur-CdASxjL7.js → field-blur-DkiZOVNV.js} +178 -180
  40. package/dist/{field-blur-context-kZ4SD7xu.js → field-blur-context-BLGgf_3z.js} +2 -2
  41. package/dist/financial-variant-BsZEa5sF.js +459 -0
  42. package/dist/{hooks-Dqq8O3Az.js → hooks-Dg94jPRq.js} +12 -12
  43. package/dist/hooks.js +2 -2
  44. package/dist/{hover-card-BPKqte4a.js → hover-card-B1g55Hi6.js} +44 -43
  45. package/dist/i18n.js +3 -3
  46. package/dist/icon-badge-BcW66bRk.js +17 -0
  47. package/dist/{icon-button-Cr-DyDGg.js → icon-button-Cogxy1cy.js} +5 -4
  48. package/dist/{in-dialog-Vwkyp-M5.js → in-dialog-D61Yeaol.js} +2 -1
  49. package/dist/input-CC2joTjB.js +56 -0
  50. package/dist/key-layout-cR79xfGE.js +38 -0
  51. package/dist/lib/calculator/index.d.ts +16 -0
  52. package/dist/lib/calculator-field/index.d.ts +12 -0
  53. package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +2 -2
  54. package/dist/lib/components/ui/feedback/moment/moment-body.d.ts +17 -2
  55. package/dist/lib/components/ui/feedback/moment/moment-passive.d.ts +13 -0
  56. package/dist/lib/components/ui/feedback/moment/moment.d.ts +16 -2
  57. package/dist/lib/components/ui/fields/calculator-field/apply-calculated.d.ts +17 -0
  58. package/dist/lib/components/ui/fields/calculator-field/calculator-field-content.d.ts +16 -0
  59. package/dist/lib/components/ui/fields/calculator-field/calculator-field-trigger.d.ts +4 -0
  60. package/dist/lib/components/ui/fields/calculator-field/calculator-field.d.ts +12 -0
  61. package/dist/lib/components/ui/fields/calculator-field/calculator-field.types.d.ts +31 -0
  62. package/dist/lib/components/ui/fields/calculator-field/calculator-form-field.d.ts +4 -0
  63. package/dist/lib/components/ui/fields/calculator-field/index.d.ts +3 -0
  64. package/dist/lib/components/ui/fields/calculator-field/use-calculator-field.d.ts +15 -0
  65. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  66. package/dist/lib/components/ui/fields/currency-field/currency-field.d.ts +7 -1
  67. package/dist/lib/components/ui/layout/app-shell/app-sidebar-context.d.ts +4 -0
  68. package/dist/lib/components/ui/widgets/calculator/calculator-announce.d.ts +27 -0
  69. package/dist/lib/components/ui/widgets/calculator/calculator-clipboard.d.ts +19 -0
  70. package/dist/lib/components/ui/widgets/calculator/calculator-context.d.ts +49 -0
  71. package/dist/lib/components/ui/widgets/calculator/calculator-feedback.d.ts +18 -0
  72. package/dist/lib/components/ui/widgets/calculator/calculator-keyboard.d.ts +30 -0
  73. package/dist/lib/components/ui/widgets/calculator/calculator-storage.d.ts +17 -0
  74. package/dist/lib/components/ui/widgets/calculator/calculator-variant-steps.d.ts +16 -0
  75. package/dist/lib/components/ui/widgets/calculator/calculator.d.ts +11 -0
  76. package/dist/lib/components/ui/widgets/calculator/calculator.selectors.d.ts +23 -0
  77. package/dist/lib/components/ui/widgets/calculator/calculator.slice.d.ts +1881 -0
  78. package/dist/lib/components/ui/widgets/calculator/currency.d.ts +9 -0
  79. package/dist/lib/components/ui/widgets/calculator/engine.d.ts +22 -0
  80. package/dist/lib/components/ui/widgets/calculator/index.d.ts +3 -0
  81. package/dist/lib/components/ui/widgets/calculator/partials/calculator-announcer.d.ts +2 -0
  82. package/dist/lib/components/ui/widgets/calculator/partials/calculator-display.d.ts +3 -0
  83. package/dist/lib/components/ui/widgets/calculator/partials/calculator-key.d.ts +17 -0
  84. package/dist/lib/components/ui/widgets/calculator/partials/calculator-keypad.d.ts +8 -0
  85. package/dist/lib/components/ui/widgets/calculator/partials/calculator-loading.d.ts +6 -0
  86. package/dist/lib/components/ui/widgets/calculator/partials/calculator-memory.d.ts +2 -0
  87. package/dist/lib/components/ui/widgets/calculator/partials/calculator-panel-announce.d.ts +10 -0
  88. package/dist/lib/components/ui/widgets/calculator/partials/calculator-panel-body.d.ts +9 -0
  89. package/dist/lib/components/ui/widgets/calculator/partials/calculator-screen.d.ts +4 -0
  90. package/dist/lib/components/ui/widgets/calculator/partials/calculator-segment.d.ts +21 -0
  91. package/dist/lib/components/ui/widgets/calculator/partials/calculator-shell.d.ts +9 -0
  92. package/dist/lib/components/ui/widgets/calculator/partials/calculator-switcher.d.ts +5 -0
  93. package/dist/lib/components/ui/widgets/calculator/partials/calculator-tape.d.ts +4 -0
  94. package/dist/lib/components/ui/widgets/calculator/partials/calculator-tools.d.ts +4 -0
  95. package/dist/lib/components/ui/widgets/calculator/partials/keypad-navigation.d.ts +24 -0
  96. package/dist/lib/components/ui/widgets/calculator/types.d.ts +102 -0
  97. package/dist/lib/components/ui/widgets/calculator/use-calculator-clipboard.d.ts +19 -0
  98. package/dist/lib/components/ui/widgets/calculator/use-calculator-conversion.d.ts +4 -0
  99. package/dist/lib/components/ui/widgets/calculator/use-calculator-feedback.d.ts +3 -0
  100. package/dist/lib/components/ui/widgets/calculator/use-calculator-keyboard.d.ts +22 -0
  101. package/dist/lib/components/ui/widgets/calculator/use-calculator-persistence.d.ts +14 -0
  102. package/dist/lib/components/ui/widgets/calculator/use-calculator-pos.d.ts +25 -0
  103. package/dist/lib/components/ui/widgets/calculator/use-calculator-press.d.ts +26 -0
  104. package/dist/lib/components/ui/widgets/calculator/use-calculator-tape.d.ts +29 -0
  105. package/dist/lib/components/ui/widgets/calculator/use-calculator-value.d.ts +9 -0
  106. package/dist/lib/components/ui/widgets/calculator/use-calculator-variant.d.ts +23 -0
  107. package/dist/lib/components/ui/widgets/calculator/use-calculator.d.ts +10 -0
  108. package/dist/lib/components/ui/widgets/calculator/use-engine-settings.d.ts +10 -0
  109. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-fields.d.ts +19 -0
  110. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-labels.d.ts +17 -0
  111. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-math.d.ts +31 -0
  112. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-names.d.ts +4 -0
  113. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-panel.d.ts +7 -0
  114. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-rates.d.ts +29 -0
  115. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-result.d.ts +15 -0
  116. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-state.d.ts +36 -0
  117. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-variant.d.ts +3 -0
  118. package/dist/lib/components/ui/widgets/calculator/variants/conversion/use-conversion.d.ts +24 -0
  119. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-change.d.ts +4 -0
  120. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-figures.d.ts +43 -0
  121. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-format.d.ts +12 -0
  122. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-loan-math.d.ts +14 -0
  123. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-loan.d.ts +4 -0
  124. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-margin.d.ts +4 -0
  125. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-math.d.ts +10 -0
  126. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-panel.d.ts +7 -0
  127. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-parts.d.ts +35 -0
  128. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-table.d.ts +7 -0
  129. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-variant.d.ts +3 -0
  130. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-vat.d.ts +4 -0
  131. package/dist/lib/components/ui/widgets/calculator/variants/key-layout.d.ts +51 -0
  132. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-announce.d.ts +16 -0
  133. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-aside.d.ts +2 -0
  134. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-display.d.ts +2 -0
  135. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-fields.d.ts +2 -0
  136. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-layout.d.ts +9 -0
  137. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-line.d.ts +6 -0
  138. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-names.d.ts +2 -0
  139. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-state.d.ts +3 -0
  140. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-tender.d.ts +2 -0
  141. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-ticket-data.d.ts +41 -0
  142. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-ticket.d.ts +5 -0
  143. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-totals.d.ts +2 -0
  144. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-types.d.ts +76 -0
  145. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-variant.d.ts +3 -0
  146. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-vat.d.ts +2 -0
  147. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-view.d.ts +28 -0
  148. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-announce.d.ts +19 -0
  149. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-base.d.ts +11 -0
  150. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-bitpad.d.ts +14 -0
  151. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-display.d.ts +9 -0
  152. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-layout.d.ts +6 -0
  153. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-names.d.ts +2 -0
  154. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-readouts.d.ts +14 -0
  155. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-reduce.d.ts +29 -0
  156. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-state.d.ts +22 -0
  157. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-toolbar.d.ts +5 -0
  158. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-variant.d.ts +3 -0
  159. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-word.d.ts +15 -0
  160. package/dist/lib/components/ui/widgets/calculator/variants/registry.d.ts +21 -0
  161. package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-layout.d.ts +3 -0
  162. package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-names.d.ts +2 -0
  163. package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-toolbar.d.ts +2 -0
  164. package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-variant.d.ts +3 -0
  165. package/dist/lib/components/ui/widgets/calculator/variants/standard/standard-layout.d.ts +3 -0
  166. package/dist/lib/components/ui/widgets/calculator/variants/variant-loader.d.ts +34 -0
  167. package/dist/lib/components/ui/widgets/calculator/variants/variant-logic.d.ts +40 -0
  168. package/dist/lib/components/ui/widgets/calculator/variants/variant-types.d.ts +62 -0
  169. package/dist/lib/i18n/resources/en/en.d.ts +412 -0
  170. package/dist/lib/i18n/resources/en/material.json.d.ts +412 -0
  171. package/dist/lib/i18n/resources/fr/fr.d.ts +412 -0
  172. package/dist/lib/i18n/resources/fr/material.json.d.ts +412 -0
  173. package/dist/lib/i18n/resources/resources.d.ts +824 -0
  174. package/dist/lib/i18n/translator.d.ts +1 -1
  175. package/dist/lib.js +4 -3
  176. package/dist/main.js +50 -40
  177. package/dist/map.js +66 -65
  178. package/dist/material.css +1 -1
  179. package/dist/native-select-w_FlBLHV.js +40 -0
  180. package/dist/number.utils-CSueQZcv.js +7 -0
  181. package/dist/pdf-reader.js +1 -1
  182. package/dist/percent-field-lahyDJDG.js +14 -0
  183. package/dist/picker-surface-CV09H7Nb.js +1220 -0
  184. package/dist/popover-Cd7DkND4.js +233 -0
  185. package/dist/pos-types-DKCkOTYy.js +49 -0
  186. package/dist/pos-variant-GrUfbTTP.js +603 -0
  187. package/dist/print.js +1 -1
  188. package/dist/programmer-variant-eKJNKENL.js +501 -0
  189. package/dist/programmer-word-CNCF7DJF.js +15 -0
  190. package/dist/{public-DC9VQw4Z.js → public-y6g4ddxd.js} +895 -892
  191. package/dist/{rich-code-block-DBSL9zEN.js → rich-code-block-CRQ0iyLb.js} +5 -5
  192. package/dist/scientific-variant-2y3UxAAU.js +149 -0
  193. package/dist/{sortable-provider-C4tk5esY.js → sortable-provider-DdiI3Fwk.js} +2 -2
  194. package/dist/{spinner-B2MubVWb.js → spinner-C1QIewWv.js} +133 -159
  195. package/dist/standard-layout-BuSRr3TY.js +40 -0
  196. package/dist/tabs-DzEqMb1W.js +383 -0
  197. package/dist/{icon-badge-B9uvDoyY.js → text-field-BAdY-kpO.js} +20 -34
  198. package/dist/theme-picker.js +3 -3
  199. package/dist/{theme-toggle-BInlu21G.js → theme-toggle-C_VeiiCm.js} +2 -2
  200. package/dist/toggle-FeCCJqbg.js +40 -0
  201. package/dist/{toggle-group-DXXlqid2.js → toggle-group-CVMxEpWi.js} +1 -1
  202. package/dist/{toolbar-items-CRJSx1MU.js → toolbar-items-D310xDuM.js} +333 -554
  203. package/dist/{translate-material-pVlPJ1v4.js → translate-material-BypJJ1l5.js} +1 -1
  204. package/dist/{translator-BoYCward.js → translator-DJkf4J7t.js} +824 -0
  205. package/dist/{typography-B6YMbCge.js → typography-CYEquVeb.js} +1 -1
  206. package/dist/{use-chat-composer-BvWQogJe.js → use-chat-composer-DMXu9E1O.js} +4198 -4600
  207. package/dist/{use-heading-spy-B_Z4ArDh.js → use-heading-spy-DJR8YYm6.js} +19 -19
  208. package/dist/{use-material-translation-CIS2n3RB.js → use-material-translation-CD6QoVal.js} +1 -1
  209. package/dist/{use-return-focus-DNQtADAR.js → use-return-focus-Cevw_6yq.js} +106 -105
  210. package/dist/useLatest-C2PnQEeD.js +8 -0
  211. package/docs/README.md +1 -0
  212. package/docs/components/feedback-and-status.md +10 -1
  213. package/docs/components/form-fields.md +1 -0
  214. package/docs/components/rich-widgets.md +108 -0
  215. package/docs/getting-started.md +1 -0
  216. package/docs/guides/calculator.md +468 -0
  217. package/docs/guides/forms.md +4 -2
  218. package/docs/guides/i18n.md +5 -0
  219. package/docs/previews/rich-widgets-calculator-conversion.webp +0 -0
  220. package/docs/previews/rich-widgets-calculator-point-of-sale.webp +0 -0
  221. package/docs/previews/rich-widgets-calculator.webp +0 -0
  222. package/docs/roadmap.md +9 -3
  223. package/docs/troubleshooting.md +134 -0
  224. package/lib/components/base-content.css +9 -4
  225. package/lib/components/ui/collections/server-table/server-table-phone-row.css +10 -3
  226. package/lib/components/ui/widgets/calculator/calculator-bands.css +146 -0
  227. package/lib/components/ui/widgets/calculator/calculator-display.css +83 -0
  228. package/lib/components/ui/widgets/calculator/calculator-keys.css +118 -0
  229. package/lib/components/ui/widgets/calculator/calculator-pos-ticket.css +185 -0
  230. package/lib/components/ui/widgets/calculator/calculator-pos.css +38 -0
  231. package/lib/components/ui/widgets/calculator/calculator-tape.css +71 -0
  232. package/lib/components/ui/widgets/calculator/calculator.css +97 -0
  233. package/lib/components/ui/widgets/calculator/variants/conversion/conversion.css +98 -0
  234. package/lib/components/ui/widgets/calculator/variants/financial/financial.css +162 -0
  235. package/lib/components/ui/widgets/calculator/variants/programmer/programmer.css +162 -0
  236. package/package.json +17 -3
  237. package/dist/dialog-AGsB3bv4.js +0 -219
  238. package/dist/dist-B7RjY7SL.js +0 -158
  239. package/dist/dist-lmHmz_bu.js +0 -419
@@ -1,419 +0,0 @@
1
- import { r as e } from "./dist-DVRQkaTK.js";
2
- import * as t from "react";
3
- import { jsx as n } from "react/jsx-runtime";
4
- import * as r from "react-dom";
5
- //#region ../../node_modules/@radix-ui/react-primitive/dist/index.mjs
6
- var i = Object.defineProperty, a = (e, t) => i(e, "name", {
7
- value: t,
8
- configurable: !0
9
- }), o = [
10
- "a",
11
- "button",
12
- "div",
13
- "form",
14
- "h2",
15
- "h3",
16
- "img",
17
- "input",
18
- "label",
19
- "li",
20
- "nav",
21
- "ol",
22
- "p",
23
- "select",
24
- "span",
25
- "svg",
26
- "ul"
27
- ].reduce((r, i) => {
28
- let a = e(`Primitive.${i}`), o = t.forwardRef((e, t) => {
29
- let { asChild: r, ...o } = e, s = r ? a : i;
30
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, {
31
- ...o,
32
- ref: t
33
- });
34
- });
35
- return o.displayName = `Primitive.${i}`, {
36
- ...r,
37
- [i]: o
38
- };
39
- }, {});
40
- function s(e, t) {
41
- e && r.flushSync(() => e.dispatchEvent(t));
42
- }
43
- a(s, "dispatchDiscreteCustomEvent");
44
- //#endregion
45
- //#region ../../node_modules/@radix-ui/react-context/dist/index.mjs
46
- var c = Object.defineProperty, l = (e, t) => c(e, "name", {
47
- value: t,
48
- configurable: !0
49
- });
50
- // @__NO_SIDE_EFFECTS__
51
- function u(e, r) {
52
- let i = t.createContext(r);
53
- i.displayName = e + "Context";
54
- let a = /* @__PURE__ */ l((e) => {
55
- let { children: r, ...a } = e, o = t.useMemo(() => a, Object.values(a));
56
- return /* @__PURE__ */ n(i.Provider, {
57
- value: o,
58
- children: r
59
- });
60
- }, "Provider");
61
- a.displayName = e + "Provider";
62
- function o(n, a = {}) {
63
- let { optional: o = !1 } = a, s = t.useContext(i);
64
- if (s) return s;
65
- if (r !== void 0) return r;
66
- if (!o) throw Error(`\`${n}\` must be used within \`${e}\``);
67
- }
68
- return l(o, "useContext"), [a, o];
69
- }
70
- l(u, "createContext");
71
- // @__NO_SIDE_EFFECTS__
72
- function d(e, r = []) {
73
- let i = [];
74
- function a(r, a) {
75
- let o = t.createContext(a);
76
- o.displayName = r + "Context";
77
- let s = i.length;
78
- i = [...i, a];
79
- let c = /* @__PURE__ */ l((r) => {
80
- let { scope: i, children: a, ...c } = r, l = i?.[e]?.[s] || o, u = t.useMemo(() => c, Object.values(c));
81
- return /* @__PURE__ */ n(l.Provider, {
82
- value: u,
83
- children: a
84
- });
85
- }, "Provider");
86
- c.displayName = r + "Provider";
87
- function u(n, i, c = {}) {
88
- let { optional: l = !1 } = c, u = i?.[e]?.[s] || o, d = t.useContext(u);
89
- if (d) return d;
90
- if (a !== void 0) return a;
91
- if (!l) throw Error(`\`${n}\` must be used within \`${r}\``);
92
- }
93
- return l(u, "useContext"), [c, u];
94
- }
95
- l(a, "createContext");
96
- let o = /* @__PURE__ */ l(() => {
97
- let n = i.map((e) => t.createContext(e));
98
- return /* @__PURE__ */ l(function(r) {
99
- let i = r?.[e] || n;
100
- return t.useMemo(() => ({ [`__scope${e}`]: {
101
- ...r,
102
- [e]: i
103
- } }), [r, i]);
104
- }, "useScope");
105
- }, "createScope");
106
- return o.scopeName = e, [a, f(o, ...r)];
107
- }
108
- l(d, "createContextScope");
109
- function f(...e) {
110
- let n = e[0];
111
- if (e.length === 1) return n;
112
- let r = /* @__PURE__ */ l(() => {
113
- let r = e.map((e) => ({
114
- useScope: e(),
115
- scopeName: e.scopeName
116
- }));
117
- return /* @__PURE__ */ l(function(e) {
118
- let i = r.reduce((t, { useScope: n, scopeName: r }) => {
119
- let i = n(e)[`__scope${r}`];
120
- return {
121
- ...t,
122
- ...i
123
- };
124
- }, {});
125
- return t.useMemo(() => ({ [`__scope${n.scopeName}`]: i }), [i]);
126
- }, "useComposedScopes");
127
- }, "createScope");
128
- return r.scopeName = n.scopeName, r;
129
- }
130
- l(f, "composeContextScopes");
131
- //#endregion
132
- //#region ../../node_modules/@radix-ui/primitive/dist/index.mjs
133
- var p = Object.defineProperty, m = (e, t) => p(e, "name", {
134
- value: t,
135
- configurable: !0
136
- }), h = !!(typeof window < "u" && window.document && window.document.createElement);
137
- function g(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
138
- return /* @__PURE__ */ m(function(r) {
139
- if (e?.(r), n === !1 || !r || !r.defaultPrevented) return t?.(r);
140
- }, "handleEvent");
141
- }
142
- m(g, "composeEventHandlers");
143
- function _(e) {
144
- if (!h) throw Error("Cannot access window outside of the DOM");
145
- return e?.ownerDocument?.defaultView ?? window;
146
- }
147
- m(_, "getOwnerWindow");
148
- function v(e) {
149
- if (!h) throw Error("Cannot access document outside of the DOM");
150
- return e?.ownerDocument ?? document;
151
- }
152
- m(v, "getOwnerDocument");
153
- function y(e, t = !1) {
154
- let { activeElement: n } = v(e);
155
- if (!n?.nodeName) return null;
156
- if (b(n) && n.contentDocument) return y(n.contentDocument.body, t);
157
- if (t) {
158
- let e = n.getAttribute("aria-activedescendant");
159
- if (e) {
160
- let t = v(n).getElementById(e);
161
- if (t) return t;
162
- }
163
- }
164
- return n;
165
- }
166
- m(y, "getActiveElement");
167
- function b(e) {
168
- return e.tagName === "IFRAME";
169
- }
170
- m(b, "isFrame");
171
- //#endregion
172
- //#region ../../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
173
- var x = globalThis?.document ? t.useLayoutEffect : () => {}, S = Object.defineProperty, C = (e, t) => S(e, "name", {
174
- value: t,
175
- configurable: !0
176
- }), w = t.useEffectEvent, T = t.useInsertionEffect;
177
- function E(e) {
178
- if (typeof w == "function") return w(e);
179
- let n = t.useRef(() => {
180
- throw Error("Cannot call an event handler while rendering.");
181
- });
182
- return typeof T == "function" ? T(() => {
183
- n.current = e;
184
- }) : x(() => {
185
- n.current = e;
186
- }), t.useMemo(() => ((...e) => n.current?.(...e)), []);
187
- }
188
- C(E, "useEffectEvent");
189
- //#endregion
190
- //#region ../../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
191
- var D = Object.defineProperty, O = (e, t) => D(e, "name", {
192
- value: t,
193
- configurable: !0
194
- }), k = t.useInsertionEffect || x;
195
- function A({ prop: e, defaultProp: n, onChange: r = /* @__PURE__ */ O(() => {}, "onChange"), caller: i }) {
196
- let [a, o, s] = j({
197
- defaultProp: n,
198
- onChange: r
199
- }), c = e !== void 0;
200
- return [c ? e : a, t.useCallback((t) => {
201
- if (c) {
202
- let n = M(t) ? t(e) : t;
203
- n !== e && s.current?.(n);
204
- } else o(t);
205
- }, [
206
- c,
207
- e,
208
- o,
209
- s
210
- ])];
211
- }
212
- O(A, "useControllableState");
213
- function j({ defaultProp: e, onChange: n }) {
214
- let [r, i] = t.useState(e), a = t.useRef(r), o = t.useRef(n);
215
- return k(() => {
216
- o.current = n;
217
- }, [n]), t.useEffect(() => {
218
- a.current !== r && (o.current?.(r), a.current = r);
219
- }, [r, a]), [
220
- r,
221
- i,
222
- o
223
- ];
224
- }
225
- O(j, "useUncontrolledState");
226
- function M(e) {
227
- return typeof e == "function";
228
- }
229
- O(M, "isFunction");
230
- var N = Symbol("RADIX:SYNC_STATE");
231
- function P(e, n, r, i) {
232
- let { prop: a, defaultProp: o, onChange: s, caller: c } = n, l = a !== void 0, u = E(s), d = [{
233
- ...r,
234
- state: o
235
- }];
236
- i && d.push(i);
237
- let [f, p] = t.useReducer((t, n) => {
238
- if (n.type === N) return {
239
- ...t,
240
- state: n.state
241
- };
242
- let r = e(t, n);
243
- return l && !Object.is(r.state, t.state) && u(r.state), r;
244
- }, ...d), m = f.state, h = t.useRef(m);
245
- t.useEffect(() => {
246
- h.current !== m && (h.current = m, l || u(m));
247
- }, [
248
- m,
249
- h,
250
- l
251
- ]);
252
- let g = t.useMemo(() => a === void 0 ? f : {
253
- ...f,
254
- state: a
255
- }, [f, a]);
256
- return t.useEffect(() => {
257
- l && !Object.is(a, f.state) && p({
258
- type: N,
259
- state: a
260
- });
261
- }, [
262
- a,
263
- f.state,
264
- l
265
- ]), [g, p];
266
- }
267
- O(P, "useControllableStateReducer");
268
- //#endregion
269
- //#region ../../node_modules/@radix-ui/react-presence/dist/index.mjs
270
- var F = Object.defineProperty, I = (e, t) => F(e, "name", {
271
- value: t,
272
- configurable: !0
273
- });
274
- function L(e, n) {
275
- return t.useReducer((e, t) => n[e][t] ?? e, e);
276
- }
277
- I(L, "useStateMachine");
278
- var R = /* @__PURE__ */ I((e) => {
279
- let { present: n, children: r } = e, i = z(n), a = typeof r == "function" ? r({ present: i.isPresent }) : t.Children.only(r), o = V(i.ref, U(a));
280
- return typeof r == "function" || i.isPresent ? t.cloneElement(a, { ref: o }) : null;
281
- }, "Presence");
282
- function z(e) {
283
- let [n, r] = t.useState(), i = t.useRef(null), a = t.useRef(e), o = t.useRef("none"), s = t.useRef(void 0), [c, l] = L(e ? "mounted" : "unmounted", {
284
- mounted: {
285
- UNMOUNT: "unmounted",
286
- ANIMATION_OUT: "unmountSuspended"
287
- },
288
- unmountSuspended: {
289
- MOUNT: "mounted",
290
- ANIMATION_END: "unmounted"
291
- },
292
- unmounted: { MOUNT: "mounted" }
293
- });
294
- return t.useEffect(() => {
295
- c === "mounted" ? (o.current = s.current ?? H(i.current), s.current = void 0) : o.current = "none";
296
- }, [c]), x(() => {
297
- let t = i.current, n = a.current;
298
- if (n !== e) {
299
- let r = o.current, i = H(t);
300
- e ? (s.current = i, l("MOUNT")) : i === "none" || t?.display === "none" ? l("UNMOUNT") : l(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
301
- }
302
- }, [e, l]), x(() => {
303
- if (n) {
304
- let e, t = n.ownerDocument.defaultView ?? window, r = /* @__PURE__ */ I((r) => {
305
- let o = H(i.current).includes(CSS.escape(r.animationName));
306
- if (r.target === n && o && (l("ANIMATION_END"), !a.current)) {
307
- let r = n.style.animationFillMode;
308
- n.style.animationFillMode = "forwards", e = t.setTimeout(() => {
309
- n.style.animationFillMode === "forwards" && (n.style.animationFillMode = r);
310
- });
311
- }
312
- }, "handleAnimationEnd"), s = /* @__PURE__ */ I((e) => {
313
- e.target === n && (o.current = H(i.current));
314
- }, "handleAnimationStart");
315
- return n.addEventListener("animationstart", s), n.addEventListener("animationcancel", r), n.addEventListener("animationend", r), () => {
316
- t.clearTimeout(e), n.removeEventListener("animationstart", s), n.removeEventListener("animationcancel", r), n.removeEventListener("animationend", r);
317
- };
318
- } else l("ANIMATION_END");
319
- }, [n, l]), {
320
- isPresent: ["mounted", "unmountSuspended"].includes(c),
321
- ref: t.useCallback((e) => {
322
- if (e) {
323
- let t = getComputedStyle(e);
324
- i.current = t, s.current = H(t);
325
- } else i.current = null;
326
- r(e);
327
- }, [])
328
- };
329
- }
330
- I(z, "usePresence");
331
- function B(e, t) {
332
- if (typeof e == "function") return e(t);
333
- e != null && (e.current = t);
334
- }
335
- I(B, "setRef");
336
- function V(...e) {
337
- let n = t.useRef(e);
338
- return n.current = e, t.useCallback((e) => {
339
- let t = n.current, r = !1, i = t.map((t) => {
340
- let n = B(t, e);
341
- return !r && typeof n == "function" && (r = !0), n;
342
- });
343
- if (r) return () => {
344
- for (let e = 0; e < i.length; e++) {
345
- let n = i[e];
346
- typeof n == "function" ? n() : B(t[e], null);
347
- }
348
- };
349
- }, []);
350
- }
351
- I(V, "useStableComposedRefs");
352
- function H(e) {
353
- return e?.animationName || "none";
354
- }
355
- I(H, "getAnimationName");
356
- function U(e) {
357
- let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
358
- return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
359
- }
360
- I(U, "getElementRef");
361
- //#endregion
362
- //#region ../../node_modules/@radix-ui/react-id/dist/index.mjs
363
- var W = Object.defineProperty, G = (e, t) => W(e, "name", {
364
- value: t,
365
- configurable: !0
366
- }), K = t.useId || (() => void 0), q = 0;
367
- function J(e) {
368
- let [n, r] = t.useState(K());
369
- return x(() => {
370
- e || r((e) => e ?? String(q++));
371
- }, [e]), e || (n ? `radix-${n}` : "");
372
- }
373
- G(J, "useId");
374
- //#endregion
375
- //#region ../../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
376
- var Y = Object.defineProperty, X = (e, t) => Y(e, "name", {
377
- value: t,
378
- configurable: !0
379
- });
380
- function Z(e) {
381
- let n = t.useRef(e);
382
- return t.useEffect(() => {
383
- n.current = e;
384
- }), t.useMemo(() => ((...e) => n.current?.(...e)), []);
385
- }
386
- X(Z, "useCallbackRef");
387
- //#endregion
388
- //#region ../../node_modules/@radix-ui/react-use-size/dist/index.mjs
389
- var Q = Object.defineProperty, ee = (e, t) => Q(e, "name", {
390
- value: t,
391
- configurable: !0
392
- });
393
- function $(e) {
394
- let [n, r] = t.useState(void 0);
395
- return x(() => {
396
- if (e) {
397
- r({
398
- width: e.offsetWidth,
399
- height: e.offsetHeight
400
- });
401
- let t = new ResizeObserver((t) => {
402
- if (!Array.isArray(t) || !t.length) return;
403
- let n = t[0], i, a;
404
- if ("borderBoxSize" in n) {
405
- let e = n.borderBoxSize, t = Array.isArray(e) ? e[0] : e;
406
- i = t.inlineSize, a = t.blockSize;
407
- } else i = e.offsetWidth, a = e.offsetHeight;
408
- r({
409
- width: i,
410
- height: a
411
- });
412
- });
413
- return t.observe(e, { box: "border-box" }), () => t.unobserve(e);
414
- } else r(void 0);
415
- }, [e]), n;
416
- }
417
- ee($, "useSize");
418
- //#endregion
419
- export { A as a, d as c, R as i, o as l, Z as n, x as o, J as r, g as s, $ as t, s as u };