@nxgt/material-vue 0.15.3 → 0.19.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 (157) hide show
  1. package/README.md +5 -1
  2. package/dist/_baseIsEqual-Cj6hHjs0.js +226 -0
  3. package/dist/abnfDiagram-O67JEVCF-Cl_I9xuI.js +89 -0
  4. package/dist/arc-DNNg1pxp.js +80 -0
  5. package/dist/architecture-7GRP2DOG-DDr0RGVC.js +3 -0
  6. package/dist/architectureDiagram-NJMV4G6O-CVS4UUCi.js +4146 -0
  7. package/dist/array-CApNbSU9.js +6 -0
  8. package/dist/blockDiagram-BEXU5L5S-B5Z0jbc8.js +1946 -0
  9. package/dist/c4Diagram-YGBWAQC7-B6jKsl3h.js +2990 -0
  10. package/dist/{camera-DmcoWLY_.js → camera-oxz1xItP.js} +4 -4
  11. package/dist/channel-BA1GJyZ7.js +5 -0
  12. package/dist/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
  13. package/dist/chunk-3FUC2YCW-CX-v_TQz.js +364 -0
  14. package/dist/chunk-5DYCD2WN-B9vjeX2u.js +37 -0
  15. package/dist/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
  16. package/dist/chunk-6AEJRKK7-D9IaQdwq.js +10 -0
  17. package/dist/chunk-742MDFTN-BIhVe9GR.js +275 -0
  18. package/dist/chunk-7INBJB4K-CwPgdc2G.js +4487 -0
  19. package/dist/chunk-7M6MHVWA-Deh_-m6x.js +4256 -0
  20. package/dist/chunk-7PRAP22T-CofnNOEr.js +67 -0
  21. package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
  22. package/dist/chunk-FOHPRMQF-Crq0JMf2.js +21388 -0
  23. package/dist/chunk-GNY47TPC-rS2K544k.js +75 -0
  24. package/dist/chunk-GTNCS2PH-BR0O70z_.js +490 -0
  25. package/dist/chunk-GWA4HPMP-DU9lUCZD.js +61 -0
  26. package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
  27. package/dist/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
  28. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  29. package/dist/chunk-MBY4JIJT-HYVRUG_P.js +1847 -0
  30. package/dist/chunk-NETBCI7D-C8amwD_P.js +236 -0
  31. package/dist/chunk-O7XYJQB3-WMQqqzRb.js +3922 -0
  32. package/dist/chunk-UA2S7LBM-DtBatid7.js +363 -0
  33. package/dist/chunk-WEXAMYUT-Cc10h8ed.js +26 -0
  34. package/dist/chunk-XXDRQBXY-B2pGFcse.js +9 -0
  35. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  36. package/dist/chunk-Z7XXMR3K-CJmsOGTV.js +676 -0
  37. package/dist/chunk-ZIGJFQKS-DBdWb0bj.js +1366 -0
  38. package/dist/classDiagram-v2-NBCMYWYE-Caqw5P6A.js +3397 -0
  39. package/dist/{components-CzlSXpgn.js → components-IbdMALGv.js} +43231 -18341
  40. package/dist/components.js +5 -5
  41. package/dist/{composables-CJfjxkud.js → composables-6zV0t-y7.js} +1 -1
  42. package/dist/composables.js +1 -1
  43. package/dist/cose-bilkent-JH36ORCC-DStMi-eo.js +2251 -0
  44. package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +3 -0
  45. package/dist/cynefinDiagram-VND7K2PF-0Mq0e5NQ.js +349 -0
  46. package/dist/cytoscape.esm-_jXi1N4y.js +18151 -0
  47. package/dist/dagre-6A5THRUB-EHXNn6Wq.js +2192 -0
  48. package/dist/defaultLocale-DnzPsei5.js +201 -0
  49. package/dist/diagram-22UHCM2B-B3RAQlqQ.js +5084 -0
  50. package/dist/diagram-3UASUU5V-BznCZHss.js +525 -0
  51. package/dist/diagram-ATOU4E4O-DtIUxSAn.js +432 -0
  52. package/dist/diagram-CDSNMT55-DOjN3BR2.js +301 -0
  53. package/dist/diagram-MLGK6HIB-Dx2UboD6.js +134 -0
  54. package/dist/diagram-MPIPVDR6-DnPL3RV0.js +214 -0
  55. package/dist/dist-D9zvfe2i.js +59 -0
  56. package/dist/{dnd-CnXShic8.js → dnd-CaDeYjQx.js} +1 -1
  57. package/dist/dnd.js +1 -1
  58. package/dist/ebnfDiagram-ZINNZB2B-BNbxCL0b.js +100 -0
  59. package/dist/elk-276RUBZZ-B9WeHolc.js +47597 -0
  60. package/dist/erDiagram-OPXOYQCR-DReZElBu.js +1970 -0
  61. package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +3 -0
  62. package/dist/flowDiagram-KWPJA3E3-DYss4vEI.js +17 -0
  63. package/dist/ganttDiagram-FUAMR5RP-64EZDDmC.js +3083 -0
  64. package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +3 -0
  65. package/dist/gitGraphDiagram-X574FWY7-DmMMrp5A.js +729 -0
  66. package/dist/graphlib-CrmIPC4m.js +372 -0
  67. package/dist/{i18n-weSTOoFJ.js → i18n-OBzfa-B7.js} +247 -926
  68. package/dist/i18n.js +2 -2
  69. package/dist/info-A6RAGUB7-BvtuPd9C.js +3 -0
  70. package/dist/infoDiagram-VRGFBTTK-XlBUAu0t.js +20 -0
  71. package/dist/init-MwSGRDIl.js +15 -0
  72. package/dist/isArrayLikeObject-VG1KOJ3m.js +539 -0
  73. package/dist/isEmpty-CMjyBU-a.js +136 -0
  74. package/dist/ishikawaDiagram-OU5B5YK6-C9cMWMPO.js +719 -0
  75. package/dist/journeyDiagram-ZHPQQLJL-DXdfP9BW.js +884 -0
  76. package/dist/kanban-definition-PNTS6WVX-DhOBy3A0.js +976 -0
  77. package/dist/katex-BMQ6LGsM.js +21962 -0
  78. package/dist/lib/components/index.d.ts +4 -0
  79. package/dist/lib/components/ui/chat/chat-composer-mentions.vue.d.ts +13 -0
  80. package/dist/lib/components/ui/chat/chat-composer.vue.d.ts +6 -2
  81. package/dist/lib/components/ui/contacts/consts.d.ts +1 -1
  82. package/dist/lib/components/ui/emoji/emoji-list.vue.d.ts +11 -0
  83. package/dist/lib/components/ui/emoji/emoji-picker.vue.d.ts +12 -0
  84. package/dist/lib/components/ui/emoji/emoji.utils.d.ts +2 -0
  85. package/dist/lib/components/ui/emoji/index.d.ts +4 -0
  86. package/dist/lib/components/ui/emoji/types.d.ts +6 -0
  87. package/dist/lib/components/ui/markdown/index.d.ts +2 -0
  88. package/dist/lib/components/ui/markdown/markdown.utils.d.ts +10 -0
  89. package/dist/lib/components/ui/markdown/markdown.vue.d.ts +10 -0
  90. package/dist/lib/components/ui/markdown/mermaid.lazy.d.ts +12 -0
  91. package/dist/lib/components/ui/markdown/partials/mermaid-diagram.vue.d.ts +7 -0
  92. package/dist/lib/components/ui/mentions/index.d.ts +4 -0
  93. package/dist/lib/components/ui/mentions/mention-list.vue.d.ts +16 -0
  94. package/dist/lib/components/ui/mentions/mentions.utils.d.ts +7 -0
  95. package/dist/lib/components/ui/mentions/types.d.ts +5 -0
  96. package/dist/lib/components/ui/terminal/index.d.ts +3 -0
  97. package/dist/lib/components/ui/terminal/terminal.utils.d.ts +5 -0
  98. package/dist/lib/components/ui/terminal/terminal.vue.d.ts +17 -0
  99. package/dist/lib/i18n/resources/en/index.d.ts +13 -0
  100. package/dist/lib/i18n/resources/en/material.json.d.ts +14 -1
  101. package/dist/lib/i18n/resources/fr/index.d.ts +13 -0
  102. package/dist/lib/i18n/resources/fr/material.json.d.ts +14 -1
  103. package/dist/lib/i18n/resources/index.d.ts +26 -0
  104. package/dist/lib/i18n/translator.d.ts +1 -1
  105. package/dist/lib/nuxt/component-names.d.ts +1 -1
  106. package/dist/lib-B9AHrvmh.js +389 -0
  107. package/dist/lib.js +1 -1
  108. package/dist/line-UP6dkL36.js +34 -0
  109. package/dist/linear-bD_QoED_.js +289 -0
  110. package/dist/main.js +9 -9
  111. package/dist/material-vue.css +1 -1
  112. package/dist/merge-B4IBXGaq.js +170 -0
  113. package/dist/mermaid-parser.core-Cz-MfB4Z.js +638 -0
  114. package/dist/mermaid.core-C_Rtflmc.js +1096 -0
  115. package/dist/mindmap-definition-NLK3R4M7-CO6s2Afv.js +1008 -0
  116. package/dist/ordinal-D_ZgubzR.js +65 -0
  117. package/dist/packet-AYTQ26CC-CshIswP8.js +3 -0
  118. package/dist/path-DGNPZRdx.js +85 -0
  119. package/dist/{pdf-outline-sidebar-iX41cMWg.js → pdf-outline-sidebar-D5VedBgk.js} +3 -2
  120. package/dist/{pdf-page-D_i3wZ_q.js → pdf-page-B1Ze518d.js} +1 -1
  121. package/dist/{pdf-page-list-bB0_8jk4.js → pdf-page-list-CBJziavm.js} +3 -2
  122. package/dist/{pdf-reader-CRipdUQO.js → pdf-reader-Cn1uxtJN.js} +13 -13
  123. package/dist/{pdf-sidebar-BLZLycW6.js → pdf-sidebar-PXfgGlmq.js} +4 -4
  124. package/dist/{pdf-thumbnail-sidebar-CStX_EPU.js → pdf-thumbnail-sidebar-7agqWsXT.js} +4 -3
  125. package/dist/{pdf-toolbar-Cp2i5Vhc.js → pdf-toolbar-Blm9CFvh.js} +22 -21
  126. package/dist/pegDiagram-GJSIUBJH-gvsGke9W.js +94 -0
  127. package/dist/pie-WAS4IAKB-CYs22y4X.js +3 -0
  128. package/dist/pieDiagram-5QR66LMP-DLBcErnI.js +205 -0
  129. package/dist/quadrantDiagram-O4NWA36T-Bn3CmGxM.js +2001 -0
  130. package/dist/radar-RG4KPBEZ-BOJKjbGv.js +3 -0
  131. package/dist/railroad-74A4TZTK-Dt1BmUkI.js +3 -0
  132. package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +3 -0
  133. package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +3 -0
  134. package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +3 -0
  135. package/dist/railroadDiagram-XR7U4H2S-DLeBxWbV.js +76 -0
  136. package/dist/requirementDiagram-PLB6GJNP-JpWB5sEv.js +2228 -0
  137. package/dist/rolldown-runtime-CWhphoD1.js +23 -0
  138. package/dist/rough.esm-rcMoXTJj.js +1352 -0
  139. package/dist/sankeyDiagram-IPEJSGJF-a4rFl5rR.js +970 -0
  140. package/dist/sequenceDiagram-PO4LG4MO-CjUigcL2.js +4200 -0
  141. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  142. package/dist/src-CNRY2AUH.js +2142 -0
  143. package/dist/stateDiagram-v2-GCMORJYK-DJkVDIb0.js +2143 -0
  144. package/dist/{stx-player-DNXToHKV.js → stx-player-rs3uH0iI.js} +17 -17
  145. package/dist/swimlanes-2SLR337P-D7Ff0hLr.js +4763 -0
  146. package/dist/swimlanesDiagram-TC7HE7FX-DZZ9d76C.js +28 -0
  147. package/dist/timeline-definition-EJHVYXUP-C0aHlt9K.js +1073 -0
  148. package/dist/treeView-Q6P3EWNA-BrJylG9N.js +3 -0
  149. package/dist/treemap-WGGIJYW6-DpIZuqbj.js +3 -0
  150. package/dist/usecaseDiagram-POWQR4AR-BrRAt7Wu.js +9932 -0
  151. package/dist/vennDiagram-UO4OBE2U-B22Jhju8.js +1880 -0
  152. package/dist/wardley-WFR3VGLG-CbwdAAbH.js +3 -0
  153. package/dist/wardleyDiagram-VNRHLVJA-Dw4YgRiQ.js +645 -0
  154. package/dist/xychartDiagram-PMCCYNJV-DtuDs9I7.js +2214 -0
  155. package/lib/nuxt/component-names.ts +2 -0
  156. package/package.json +5 -1
  157. package/dist/lib-DfpwxO6u.js +0 -611
@@ -324,6 +324,7 @@ export const COMPONENT_NAMES = [
324
324
  'LinkCard',
325
325
  'ListTile',
326
326
  'LoadMoreButton',
327
+ 'Markdown',
327
328
  'MediaCard',
328
329
  'MentionList',
329
330
  'Menubar',
@@ -531,6 +532,7 @@ export const COMPONENT_NAMES = [
531
532
  'TabsList',
532
533
  'TabsTrigger',
533
534
  'TagCard',
535
+ 'Terminal',
534
536
  'TextField',
535
537
  'TextFormField',
536
538
  'Textarea',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxgt/material-vue",
3
- "version": "0.15.3",
3
+ "version": "0.19.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [
@@ -123,10 +123,13 @@
123
123
  "highlight.js": "^11.12.0",
124
124
  "intl-messageformat": "^11.2.14",
125
125
  "jsbarcode": "^3.12.3",
126
+ "katex": "^0.18.7",
126
127
  "libphonenumber-js": "^1.13.12",
127
128
  "lodash-es": "^4.18.1",
128
129
  "lowlight": "^3.3.0",
129
130
  "lucide-vue-next": "^0.544.0",
131
+ "markdown-it": "^15.0.2",
132
+ "mermaid": "^12.0.0",
130
133
  "pdfjs-dist": "5.4.296",
131
134
  "qrcode": "^1.5.4",
132
135
  "reka-ui": "^2.10.4",
@@ -153,6 +156,7 @@
153
156
  "@types/bun": "^1.4.2",
154
157
  "@types/jsbarcode": "^3.11.4",
155
158
  "@types/lodash-es": "^4.17.12",
159
+ "@types/markdown-it": "^14.2.0",
156
160
  "@types/node": "^26.1.1",
157
161
  "@types/qrcode": "^1.5.6",
158
162
  "@vitejs/plugin-vue": "^6.0.1",
@@ -1,611 +0,0 @@
1
- import { A as e, C as t, E as n, F as r, I as i, L as a, P as o, R as s, a as c, b as l, c as u, d, g as f, h as p, k as m, l as h, q as g, v as _, w as v, x as y, y as b } from "./i18n-weSTOoFJ.js";
2
- import { i as ee } from "./date.utils-C08DvLLr.js";
3
- import { defineComponent as te, getCurrentInstance as ne, h as re, inject as ie, provide as ae, useId as oe } from "vue";
4
- import { createPinia as se, defineStore as ce, setActivePinia as le, storeToRefs as ue } from "pinia";
5
- //#region node_modules/lodash-es/_WeakMap.js
6
- var x = m(s, "WeakMap"), de = _(Object.keys, Object), fe = Object.prototype.hasOwnProperty;
7
- function S(e) {
8
- if (!t(e)) return de(e);
9
- var n = [];
10
- for (var r in Object(e)) fe.call(e, r) && r != "constructor" && n.push(r);
11
- return n;
12
- }
13
- //#endregion
14
- //#region node_modules/lodash-es/keys.js
15
- function C(e) {
16
- return v(e) ? b(e) : S(e);
17
- }
18
- //#endregion
19
- //#region node_modules/lodash-es/_arrayPush.js
20
- function pe(e, t) {
21
- for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
22
- return e;
23
- }
24
- //#endregion
25
- //#region node_modules/lodash-es/_arrayFilter.js
26
- function me(e, t) {
27
- for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
28
- var o = e[n];
29
- t(o, n, e) && (a[i++] = o);
30
- }
31
- return a;
32
- }
33
- //#endregion
34
- //#region node_modules/lodash-es/stubArray.js
35
- function he() {
36
- return [];
37
- }
38
- //#endregion
39
- //#region node_modules/lodash-es/_getSymbols.js
40
- var ge = Object.prototype.propertyIsEnumerable, w = Object.getOwnPropertySymbols, _e = w ? function(e) {
41
- return e == null ? [] : (e = Object(e), me(w(e), function(t) {
42
- return ge.call(e, t);
43
- }));
44
- } : he;
45
- //#endregion
46
- //#region node_modules/lodash-es/_baseGetAllKeys.js
47
- function ve(e, t, n) {
48
- var r = t(e);
49
- return o(e) ? r : pe(r, n(e));
50
- }
51
- //#endregion
52
- //#region node_modules/lodash-es/_getAllKeys.js
53
- function T(e) {
54
- return ve(e, C, _e);
55
- }
56
- //#endregion
57
- //#region node_modules/lodash-es/_DataView.js
58
- var E = m(s, "DataView"), D = m(s, "Promise"), O = m(s, "Set"), k = "[object Map]", ye = "[object Object]", A = "[object Promise]", j = "[object Set]", M = "[object WeakMap]", be = "[object DataView]", xe = e(E), Se = e(f), Ce = e(D), we = e(O), Te = e(x), N = i;
59
- (E && N(new E(/* @__PURE__ */ new ArrayBuffer(1))) != be || f && N(new f()) != k || D && N(D.resolve()) != A || O && N(new O()) != j || x && N(new x()) != M) && (N = function(t) {
60
- var n = i(t), r = n == ye ? t.constructor : void 0, a = r ? e(r) : "";
61
- if (a) switch (a) {
62
- case xe: return be;
63
- case Se: return k;
64
- case Ce: return A;
65
- case we: return j;
66
- case Te: return M;
67
- }
68
- return n;
69
- });
70
- var P = N, Ee = "__lodash_hash_undefined__";
71
- function De(e) {
72
- return this.__data__.set(e, Ee), this;
73
- }
74
- //#endregion
75
- //#region node_modules/lodash-es/_setCacheHas.js
76
- function Oe(e) {
77
- return this.__data__.has(e);
78
- }
79
- //#endregion
80
- //#region node_modules/lodash-es/_SetCache.js
81
- function F(e) {
82
- var t = -1, n = e == null ? 0 : e.length;
83
- for (this.__data__ = new p(); ++t < n;) this.add(e[t]);
84
- }
85
- F.prototype.add = F.prototype.push = De, F.prototype.has = Oe;
86
- //#endregion
87
- //#region node_modules/lodash-es/_arraySome.js
88
- function ke(e, t) {
89
- for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
90
- return !1;
91
- }
92
- //#endregion
93
- //#region node_modules/lodash-es/_cacheHas.js
94
- function Ae(e, t) {
95
- return e.has(t);
96
- }
97
- //#endregion
98
- //#region node_modules/lodash-es/_equalArrays.js
99
- var je = 1, Me = 2;
100
- function I(e, t, n, r, i, a) {
101
- var o = n & je, s = e.length, c = t.length;
102
- if (s != c && !(o && c > s)) return !1;
103
- var l = a.get(e), u = a.get(t);
104
- if (l && u) return l == t && u == e;
105
- var d = -1, f = !0, p = n & Me ? new F() : void 0;
106
- for (a.set(e, t), a.set(t, e); ++d < s;) {
107
- var m = e[d], h = t[d];
108
- if (r) var g = o ? r(h, m, d, t, e, a) : r(m, h, d, e, t, a);
109
- if (g !== void 0) {
110
- if (g) continue;
111
- f = !1;
112
- break;
113
- }
114
- if (p) {
115
- if (!ke(t, function(e, t) {
116
- if (!Ae(p, t) && (m === e || i(m, e, n, r, a))) return p.push(t);
117
- })) {
118
- f = !1;
119
- break;
120
- }
121
- } else if (!(m === h || i(m, h, n, r, a))) {
122
- f = !1;
123
- break;
124
- }
125
- }
126
- return a.delete(e), a.delete(t), f;
127
- }
128
- //#endregion
129
- //#region node_modules/lodash-es/_mapToArray.js
130
- function Ne(e) {
131
- var t = -1, n = Array(e.size);
132
- return e.forEach(function(e, r) {
133
- n[++t] = [r, e];
134
- }), n;
135
- }
136
- //#endregion
137
- //#region node_modules/lodash-es/_setToArray.js
138
- function Pe(e) {
139
- var t = -1, n = Array(e.size);
140
- return e.forEach(function(e) {
141
- n[++t] = e;
142
- }), n;
143
- }
144
- //#endregion
145
- //#region node_modules/lodash-es/_equalByTag.js
146
- var Fe = 1, Ie = 2, Le = "[object Boolean]", Re = "[object Date]", ze = "[object Error]", Be = "[object Map]", Ve = "[object Number]", He = "[object RegExp]", Ue = "[object Set]", We = "[object String]", Ge = "[object Symbol]", Ke = "[object ArrayBuffer]", qe = "[object DataView]", L = a ? a.prototype : void 0, R = L ? L.valueOf : void 0;
147
- function Je(e, t, r, i, a, o, s) {
148
- switch (r) {
149
- case qe:
150
- if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
151
- e = e.buffer, t = t.buffer;
152
- case Ke: return !(e.byteLength != t.byteLength || !o(new u(e), new u(t)));
153
- case Le:
154
- case Re:
155
- case Ve: return n(+e, +t);
156
- case ze: return e.name == t.name && e.message == t.message;
157
- case He:
158
- case We: return e == t + "";
159
- case Be: var c = Ne;
160
- case Ue:
161
- var l = i & Fe;
162
- if (c ||= Pe, e.size != t.size && !l) return !1;
163
- var d = s.get(e);
164
- if (d) return d == t;
165
- i |= Ie, s.set(e, t);
166
- var f = I(c(e), c(t), i, a, o, s);
167
- return s.delete(e), f;
168
- case Ge: if (R) return R.call(e) == R.call(t);
169
- }
170
- return !1;
171
- }
172
- //#endregion
173
- //#region node_modules/lodash-es/_equalObjects.js
174
- var Ye = 1, Xe = Object.prototype.hasOwnProperty;
175
- function Ze(e, t, n, r, i, a) {
176
- var o = n & Ye, s = T(e), c = s.length;
177
- if (c != T(t).length && !o) return !1;
178
- for (var l = c; l--;) {
179
- var u = s[l];
180
- if (!(o ? u in t : Xe.call(t, u))) return !1;
181
- }
182
- var d = a.get(e), f = a.get(t);
183
- if (d && f) return d == t && f == e;
184
- var p = !0;
185
- a.set(e, t), a.set(t, e);
186
- for (var m = o; ++l < c;) {
187
- u = s[l];
188
- var h = e[u], g = t[u];
189
- if (r) var _ = o ? r(g, h, u, t, e, a) : r(h, g, u, e, t, a);
190
- if (!(_ === void 0 ? h === g || i(h, g, n, r, a) : _)) {
191
- p = !1;
192
- break;
193
- }
194
- m ||= u == "constructor";
195
- }
196
- if (p && !m) {
197
- var v = e.constructor, y = t.constructor;
198
- v != y && "constructor" in e && "constructor" in t && !(typeof v == "function" && v instanceof v && typeof y == "function" && y instanceof y) && (p = !1);
199
- }
200
- return a.delete(e), a.delete(t), p;
201
- }
202
- //#endregion
203
- //#region node_modules/lodash-es/_baseIsEqualDeep.js
204
- var Qe = 1, z = "[object Arguments]", B = "[object Array]", V = "[object Object]", H = Object.prototype.hasOwnProperty;
205
- function $e(e, t, n, r, i, a) {
206
- var s = o(e), c = o(t), u = s ? B : P(e), d = c ? B : P(t);
207
- u = u == z ? V : u, d = d == z ? V : d;
208
- var f = u == V, p = d == V, m = u == d;
209
- if (m && y(e)) {
210
- if (!y(t)) return !1;
211
- s = !0, f = !1;
212
- }
213
- if (m && !f) return a ||= new h(), s || l(e) ? I(e, t, n, r, i, a) : Je(e, t, u, n, r, i, a);
214
- if (!(n & Qe)) {
215
- var g = f && H.call(e, "__wrapped__"), _ = p && H.call(t, "__wrapped__");
216
- if (g || _) {
217
- var v = g ? e.value() : e, b = _ ? t.value() : t;
218
- return a ||= new h(), i(v, b, n, r, a);
219
- }
220
- }
221
- return m ? (a ||= new h(), Ze(e, t, n, r, i, a)) : !1;
222
- }
223
- //#endregion
224
- //#region node_modules/lodash-es/_baseIsEqual.js
225
- function U(e, t, n, i, a) {
226
- return e === t ? !0 : e == null || t == null || !r(e) && !r(t) ? e !== e && t !== t : $e(e, t, n, i, U, a);
227
- }
228
- //#endregion
229
- //#region node_modules/lodash-es/isEqual.js
230
- function et(e, t) {
231
- return U(e, t);
232
- }
233
- //#endregion
234
- //#region node_modules/lodash-es/isNil.js
235
- function W(e) {
236
- return e == null;
237
- }
238
- //#endregion
239
- //#region lib/lib/string.utils.ts
240
- function G(e) {
241
- return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
242
- }
243
- function K(e) {
244
- return e ? e.toLowerCase().replace(/_/g, "-") : "";
245
- }
246
- function q(e, t = ", ") {
247
- return e.filter((e) => !!e).join(t);
248
- }
249
- function J(e, t) {
250
- let n = t.trim();
251
- if (!n) return [{
252
- text: e,
253
- match: !1
254
- }];
255
- let r = n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), i = new RegExp(r, "ig"), a = [], o = 0;
256
- for (let t of e.matchAll(i)) {
257
- let n = t.index ?? 0;
258
- n > o && a.push({
259
- text: e.slice(o, n),
260
- match: !1
261
- }), a.push({
262
- text: t[0],
263
- match: !0
264
- }), o = n + t[0].length;
265
- }
266
- return o < e.length && a.push({
267
- text: e.slice(o),
268
- match: !1
269
- }), a.length > 0 ? a : [{
270
- text: e,
271
- match: !1
272
- }];
273
- }
274
- var tt = {
275
- enumToKebabCase: K,
276
- joinTruthyParts: q,
277
- slugify: G,
278
- splitMatch: J
279
- }, nt = {
280
- colorFromVariable(e, t = 1) {
281
- return `rgb(from var(--${e}) r g b / ${t})`;
282
- },
283
- cssSize(e) {
284
- if (!(e == null || e === "")) return typeof e == "number" ? `${e}px` : e;
285
- }
286
- }, Y = 0;
287
- function X(e) {
288
- return ne() ? `${e}:${oe()}` : (Y += 1, `${e}:${Y}`);
289
- }
290
- function Z(e, t) {
291
- return (n) => ce(X(e), {
292
- state: () => ({
293
- ...t.state(),
294
- ...n
295
- }),
296
- actions: { ...t.actions ?? {} },
297
- getters: { ...t.getters ?? {} }
298
- })();
299
- }
300
- function rt(e, t) {
301
- return t ? {
302
- ...e,
303
- ...t
304
- } : e;
305
- }
306
- //#endregion
307
- //#region lib/lib/pinia/filter-store.ts
308
- function it(e, t, n = {}) {
309
- let r = structuredClone(t);
310
- return Z(e, {
311
- state: () => structuredClone(r),
312
- actions: {
313
- updateFilter(e) {
314
- let { filter: t, sort: n } = e;
315
- t && (this.filter = {
316
- ...this.filter,
317
- ...t
318
- }), n && (this.sort = {
319
- ...this.sort,
320
- ...n
321
- });
322
- },
323
- resetFilter() {
324
- this.filter = structuredClone(r.filter), this.sort = structuredClone(r.sort);
325
- },
326
- ...n
327
- }
328
- });
329
- }
330
- //#endregion
331
- //#region lib/lib/pinia/run-status.ts
332
- async function at(e, t) {
333
- e.start();
334
- try {
335
- let n = await t();
336
- return e.success(n), n;
337
- } catch (t) {
338
- throw e.error(t instanceof Error ? t.message : String(t)), t;
339
- }
340
- }
341
- //#endregion
342
- //#region lib/lib/pinia/status-store.ts
343
- function ot(e, t = { status: "idle" }, n = {}) {
344
- let r = { ...t };
345
- return Z(e, {
346
- state: () => ({ ...r }),
347
- actions: {
348
- reset() {
349
- this.status = r.status, this.data = r.data, this.error = r.error;
350
- },
351
- start() {
352
- this.status = "loading";
353
- },
354
- success(e) {
355
- this.data = e, this.status = "success";
356
- },
357
- error(e) {
358
- this.error = e, this.status = "error";
359
- },
360
- ...n
361
- }
362
- });
363
- }
364
- function st(e, t, n = {}) {
365
- let r = structuredClone(t);
366
- return Z(e, {
367
- state: () => structuredClone(r),
368
- actions: {
369
- reset(e) {
370
- this[e] = structuredClone(r[e]);
371
- },
372
- start(e) {
373
- this[e].status = "loading";
374
- },
375
- success(e) {
376
- this[e.path].data = e.data, this[e.path].status = "success";
377
- },
378
- error(e) {
379
- this[e.path].error = e.message, this[e.path].status = "error";
380
- },
381
- statusOf(e) {
382
- return this[e].status;
383
- },
384
- ...n
385
- }
386
- });
387
- }
388
- //#endregion
389
- //#region lib/lib/storage.utils.ts
390
- function Q(e, t) {
391
- try {
392
- let n = localStorage.getItem(e);
393
- if (n) return typeof t == "string" ? n : JSON.parse(n);
394
- } catch (t) {
395
- console.warn(`Failed to restore state for key "${e}":`, t);
396
- }
397
- return t;
398
- }
399
- function $(e, t) {
400
- try {
401
- localStorage.setItem(e, typeof t == "string" ? t : JSON.stringify(t));
402
- } catch (t) {
403
- console.warn(`Failed to store state for key "${e}":`, t);
404
- }
405
- }
406
- function ct(e) {
407
- try {
408
- localStorage.removeItem(e);
409
- } catch (t) {
410
- console.warn(`Failed to remove state for key "${e}":`, t);
411
- }
412
- }
413
- var lt = {
414
- safeGetItem: Q,
415
- safeSetItem: $,
416
- safeRemoveItem: ct
417
- }, ut = {
418
- isDirty: !1,
419
- step: 0,
420
- values: {}
421
- };
422
- function dt(e, t, n = {}) {
423
- let r = t ?? ut.values, i = () => ({
424
- isDirty: !1,
425
- step: 0,
426
- values: { ...r }
427
- });
428
- return Z(e, {
429
- state: i,
430
- actions: {
431
- updateStep(t) {
432
- this.step = typeof t == "function" ? t(this.step) : t, $(e, {
433
- isDirty: this.isDirty,
434
- step: this.step,
435
- values: this.values
436
- });
437
- },
438
- updateFormValues(e) {
439
- this.values = {
440
- ...this.values,
441
- ...typeof e == "function" ? e(this.values) : e
442
- }, this.isDirty = !et(this.values, ut.values);
443
- },
444
- reset() {
445
- let e = i();
446
- this.isDirty = e.isDirty, this.step = e.step, this.values = e.values;
447
- },
448
- ...n
449
- }
450
- });
451
- }
452
- //#endregion
453
- //#region lib/lib/client-only.utils.ts
454
- var ft = Symbol("inside-client-only");
455
- function pt(e) {
456
- return te({
457
- name: "ClientOnly",
458
- inheritAttrs: !1,
459
- setup(t, { attrs: n, slots: r }) {
460
- let i = ie(ft, !1), a = ee();
461
- return ae(ft, !0), () => !i && !a.value ? null : re(e, { ...n }, r);
462
- }
463
- });
464
- }
465
- //#endregion
466
- //#region lib/lib/url.utils.ts
467
- function mt(e) {
468
- return new URL(e.url).searchParams;
469
- }
470
- function ht(e, t) {
471
- return mt(e).get(t);
472
- }
473
- function gt(e) {
474
- return /^(https?:)?\/\//.test(e) || e.startsWith("mailto:");
475
- }
476
- //#endregion
477
- //#region lib/lib/array.utils.ts
478
- function _t(e) {
479
- return Array.from(new Set(e));
480
- }
481
- function vt(e, t, n) {
482
- return e.find((e) => e[t] === n);
483
- }
484
- function yt(e, t, n) {
485
- return e.filter((e) => n.includes(e[t]));
486
- }
487
- function bt(e, t) {
488
- return {
489
- findByKey: (n) => vt(e, t, n),
490
- findByKeyIn: (n) => yt(e, t, n)
491
- };
492
- }
493
- function xt(e) {
494
- return bt(e, "id");
495
- }
496
- //#endregion
497
- //#region lib/lib/build-field-options.ts
498
- function St(e, { valueKey: t, label: n }) {
499
- return e.map((e) => ({
500
- value: d(e, t),
501
- label: typeof n == "function" ? n(e) : d(e, n)
502
- }));
503
- }
504
- //#endregion
505
- //#region lib/lib/format.utils.ts
506
- function Ct(e, t) {
507
- return e?.length ? e : t;
508
- }
509
- function wt(e, t) {
510
- return e?.length ? e : t;
511
- }
512
- function Tt(e) {
513
- let t = new FormData();
514
- return typeof e == "object" && Object.entries(e).forEach(([e, n]) => {
515
- W(n) || t.append(e, n);
516
- }), t;
517
- }
518
- function Et(e) {
519
- let t = {};
520
- for (let [n, r] of e.entries()) t[n] = r;
521
- return t;
522
- }
523
- //#endregion
524
- //#region lib/lib/object.utils.ts
525
- function Dt(e, t) {
526
- let n = {};
527
- if (!Array.isArray(t)) n[t] = e?.[t];
528
- else for (let r of t) n[r] = e?.[r];
529
- return n;
530
- }
531
- function Ot(e, t) {
532
- let n = { ...e };
533
- if (Array.isArray(t)) for (let e of t) delete n?.[e];
534
- else delete n?.[t];
535
- return n ?? {};
536
- }
537
- function kt(e) {
538
- return e;
539
- }
540
- async function At(e) {
541
- return await e;
542
- }
543
- function jt(e, t = !1) {
544
- return Object.fromEntries(Object.entries(e).filter(([e, n]) => t ? n != null && n !== void 0 : n !== void 0));
545
- }
546
- //#endregion
547
- //#region lib/lib/promise.utils.ts
548
- function Mt(e) {
549
- return new Promise((t) => setTimeout(t, e));
550
- }
551
- //#endregion
552
- //#region lib/lib/ui.utils.ts
553
- var Nt = (e, t) => typeof e == "function" ? e(t) : e, Pt = (e, t = "files") => {
554
- let n = new FormData();
555
- return (o(e) ? e.filter(Boolean) : [e]).forEach((e) => {
556
- n.append(t, e, e.name);
557
- }), n;
558
- }, Ft = (e) => {
559
- let t = typeof e;
560
- switch (t) {
561
- case "number": return Number.isNaN(e) ? "NaN" : "number";
562
- case "object":
563
- if (Array.isArray(e)) return "array";
564
- if (e === null) return "null";
565
- if (Object.getPrototypeOf(e) !== Object.prototype && e.constructor) return e.constructor.name;
566
- }
567
- return t;
568
- }, It = () => localStorage.getItem("language") === "fr" ? "fr" : "en", Lt = () => (e) => {
569
- let t = It(), n = g[t].material.zod.sizing[e.origin], r = g[t].material.zod.nouns;
570
- switch (e.code) {
571
- case "invalid_type": return c(e.input ? `material.zod.invalid_type.${e.expected}` : "material.zod.required", {
572
- expected: e.expected,
573
- received: Ft(e.input)
574
- });
575
- case "invalid_value": return e.values.length === 1 ? c("material.zod.invalid_value_single", { value: e.values[0] }) : c("material.zod.invalid_value_multiple", { values: e.values.join(" | ") });
576
- case "too_big": {
577
- let t = e.inclusive ? "inclusive" : "exclusive";
578
- return n?.unit ? c(`material.zod.too_big_${t}`, {
579
- origin: e.origin ?? "value",
580
- maximum: e.maximum.toString(),
581
- unit: n.unit
582
- }) : c(`material.zod.too_big_no_unit_${t}`, {
583
- origin: e.origin ?? "value",
584
- maximum: e.maximum.toString()
585
- });
586
- }
587
- case "too_small": {
588
- let t = e.inclusive ? "inclusive" : "exclusive";
589
- return n?.unit ? c(`material.zod.too_small_${t}`, {
590
- origin: e.origin,
591
- minimum: e.minimum.toString(),
592
- unit: n.unit
593
- }) : c(`material.zod.too_small_no_unit_${t}`, {
594
- origin: e.origin,
595
- minimum: e.minimum.toString()
596
- });
597
- }
598
- case "invalid_format": {
599
- let t = e;
600
- return t.format === "starts_with" ? c("material.zod.invalid_format.starts_with", { prefix: t.prefix }) : t.format === "ends_with" ? c("material.zod.invalid_format.ends_with", { suffix: t.suffix }) : t.format === "includes" ? c("material.zod.invalid_format.includes", { includes: t.includes }) : t.format === "regex" ? c("material.zod.invalid_format.regex", { pattern: t.pattern }) : c("material.zod.invalid_format.default", { noun: r[t.format] ?? t.format });
601
- }
602
- case "not_multiple_of": return c("material.zod.not_multiple_of", { divisor: e.divisor });
603
- case "unrecognized_keys": return c(`material.zod.unrecognized_keys_${e.keys.length > 1 ? "multiple" : "single"}`, { keys: e.keys.join(", ") });
604
- case "invalid_key": return c("material.zod.invalid_key", { origin: e.origin });
605
- case "invalid_union": return c("material.zod.invalid_union");
606
- case "invalid_element": return c("material.zod.invalid_element", { origin: e.origin });
607
- default: return c("material.zod.default");
608
- }
609
- };
610
- //#endregion
611
- export { Q as A, nt as B, mt as C, ue as D, le as E, at as F, J as G, K as H, it as I, P as J, W as K, Z as L, $ as M, ot as N, dt as O, st as P, X as R, ht as S, se as T, q as U, tt as V, G as W, S as X, C as Y, yt as _, Mt as a, bt as b, jt as c, Et as d, wt as f, vt as g, St as h, Nt as i, ct as j, lt as k, Ot as l, Tt as m, Lt as n, kt as o, Ct as p, U as q, Pt as r, At as s, Ft as t, Dt as u, _t as v, pt as w, gt as x, xt as y, rt as z };