@alfadocs/ui-kit 0.36.0 → 0.38.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 (201) hide show
  1. package/dist/_chunks/Alfadocs_Logo_Mark-7o3L3WBI.js +56 -0
  2. package/dist/_chunks/{alia-sidebar-BEoMl6UL.js → alia-sidebar-DXsYPinm.js} +2 -2
  3. package/dist/_chunks/{ar-CEpIJtcO.js → ar-Cn_NxqkN.js} +2 -2
  4. package/dist/_chunks/bmi-BxD-tFzU.js +32 -0
  5. package/dist/_chunks/bmi-calculator-BRUru9QX.js +213 -0
  6. package/dist/_chunks/{booking-eM0y0NIR.js → booking-DK_BPHnQ.js} +4 -4
  7. package/dist/_chunks/calculator-dialog-B74fqpFZ.js +40 -0
  8. package/dist/_chunks/chart-DnHvmiDX.js +312 -0
  9. package/dist/_chunks/{chat-message-D53_fH2w.js → chat-message-ASgGtj-L.js} +30 -39
  10. package/dist/_chunks/{contact-profile-card-BA6fgS45.js → contact-profile-card-DHyuAPXM.js} +14 -13
  11. package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +185 -0
  12. package/dist/_chunks/{date-picker-B94HAV4A.js → date-picker-CvQfs6Xh.js} +2 -2
  13. package/dist/_chunks/{date-range-picker-D8CHNYQT.js → date-range-picker-U9fn1g9d.js} +3 -3
  14. package/dist/_chunks/{date-time-picker-D1GEzf8p.js → date-time-picker-Cva0ZCWw.js} +2 -2
  15. package/dist/_chunks/{de-Dfbeau59.js → de-BMM2H7Bs.js} +2 -2
  16. package/dist/_chunks/dependent-selector-CRWgieHm.js +324 -0
  17. package/dist/_chunks/document-scanner-CdHQ6lTN.js +702 -0
  18. package/dist/_chunks/due-date-calculator-CUspKSTw.js +171 -0
  19. package/dist/_chunks/{editable-currency-cell-renderer-CZcVWBPo.js → editable-currency-cell-renderer-DGKuRNVG.js} +2 -2
  20. package/dist/_chunks/{el-Dro3J7CP.js → el-BYPonAaK.js} +2 -2
  21. package/dist/_chunks/{es-Dvg8u70B.js → es-CMkVCQ4F.js} +2 -2
  22. package/dist/_chunks/{file-upload-CdozCPct.js → file-upload-CnzRcErt.js} +2 -1
  23. package/dist/_chunks/fiscal-code-input-BZ0FxwUl.js +540 -0
  24. package/dist/_chunks/{fr-VOGjBSPP.js → fr-BcuWxqft.js} +2 -2
  25. package/dist/_chunks/gestation-BXEgDGmP.js +50 -0
  26. package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js +165 -0
  27. package/dist/_chunks/heart-C0faivFf.js +20 -0
  28. package/dist/_chunks/{hi-BSDxWU_y.js → hi-wkq_rQAh.js} +2 -2
  29. package/dist/_chunks/image-C6RM5hfF.js +16 -0
  30. package/dist/_chunks/insert-result-yJ0QavoN.js +133 -0
  31. package/dist/_chunks/{isSameWeek-Dfzu29cW.js → isSameWeek-Bim5ftRd.js} +2 -2
  32. package/dist/_chunks/{it-CuonvcI_.js → it-GiQrQ9p4.js} +3 -3
  33. package/dist/_chunks/{ja-DO57gIOT.js → ja-qfYg3Rua.js} +2 -2
  34. package/dist/_chunks/{logo-_Z-jLq80.js → logo-yituK7sE.js} +42 -91
  35. package/dist/_chunks/{marketplace-app-shell-DXHxy9dj.js → marketplace-app-shell-BnClrL2B.js} +2 -2
  36. package/dist/_chunks/{nl-DjPaaWaW.js → nl-xOogO4sZ.js} +2 -2
  37. package/dist/_chunks/{patient-shell-CDvMw_Nk.js → patient-shell-Bz3CdO84.js} +2 -2
  38. package/dist/_chunks/{pl-Cl4lOx2N.js → pl-GnOW6eGK.js} +3 -3
  39. package/dist/_chunks/{practice-results-BFM_lyUs.js → practice-results-C8ciLQap.js} +3 -2
  40. package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +209 -0
  41. package/dist/_chunks/{privacy-lock-DD-wHxBg.js → privacy-lock-BmX_gkvt.js} +2 -2
  42. package/dist/_chunks/{pt-D7qO5CzD.js → pt-_bV5b5RW.js} +2 -2
  43. package/dist/_chunks/{public-footer.agent-Cjfe5jus.js → public-footer.agent-zw1vFin_.js} +2 -2
  44. package/dist/_chunks/qr-code-DNXhi6se.js +568 -0
  45. package/dist/_chunks/{react-day-picker-DsjfS7uI.js → react-day-picker-CdtIiKjx.js} +27 -27
  46. package/dist/_chunks/{rich-text-editor-CHmr9Bz8.js → rich-text-editor-DLbg2852.js} +114 -124
  47. package/dist/_chunks/{ro-CP2-VJ_O.js → ro-BEcyh5Nj.js} +2 -2
  48. package/dist/_chunks/rotate-ccw-BWANpitO.js +15 -0
  49. package/dist/_chunks/{ru-RPn9_Lpq.js → ru-Bi86hqMf.js} +3 -3
  50. package/dist/_chunks/session-countdown-LPnhTHjn.js +214 -0
  51. package/dist/_chunks/{shield-check-BhHyReu8.js → shield-check-C73ma9Cs.js} +8 -24
  52. package/dist/_chunks/{sign-in-with-alfadocs-button-BI0fVonM.js → sign-in-with-alfadocs-button-DeHBFRNS.js} +2 -2
  53. package/dist/_chunks/social-sign-in-button-X54ySJr1.js +243 -0
  54. package/dist/_chunks/{sq-AQvefouo.js → sq-BujHSAWu.js} +2 -2
  55. package/dist/_chunks/subDays-_T9YeKPX.js +8 -0
  56. package/dist/_chunks/{sv-zkx9eBtD.js → sv-C8AeDrTA.js} +2 -2
  57. package/dist/_chunks/{tr-Dmr412Ac.js → tr-CMSs_Vgf.js} +2 -2
  58. package/dist/_chunks/unit-converter-EUwO6QYq.js +168 -0
  59. package/dist/_chunks/wallet-pay-button-DK4ESYge.js +250 -0
  60. package/dist/_chunks/{zh-CN-DxVt64Zk.js → zh-CN-eXB-PFu4.js} +3 -3
  61. package/dist/agent-catalog.json +203 -1
  62. package/dist/brand/provider-marks/apple-pay.d.ts +12 -0
  63. package/dist/brand/provider-marks/apple.d.ts +12 -0
  64. package/dist/brand/provider-marks/google-pay.d.ts +12 -0
  65. package/dist/brand/provider-marks/google.d.ts +13 -0
  66. package/dist/components/_shared/insert-result.d.ts +47 -0
  67. package/dist/components/bmi-calculator/bmi-calculator.d.ts +27 -0
  68. package/dist/components/bmi-calculator/bmi.d.ts +37 -0
  69. package/dist/components/bmi-calculator/index.d.ts +4 -0
  70. package/dist/components/bmi-calculator/index.js +15 -0
  71. package/dist/components/booking/index.js +1 -1
  72. package/dist/components/calculator-dialog/calculator-dialog.d.ts +26 -0
  73. package/dist/components/calculator-dialog/index.d.ts +3 -0
  74. package/dist/components/calculator-dialog/index.js +5 -0
  75. package/dist/components/chart/chart.d.ts +7 -0
  76. package/dist/components/chart/index.js +1 -1
  77. package/dist/components/chat-message/index.js +1 -1
  78. package/dist/components/contact-profile-card/index.js +1 -1
  79. package/dist/components/cycle-calculator/cycle-calculator.d.ts +21 -0
  80. package/dist/components/cycle-calculator/cycle.d.ts +37 -0
  81. package/dist/components/cycle-calculator/index.d.ts +4 -0
  82. package/dist/components/cycle-calculator/index.js +7 -0
  83. package/dist/components/data-table/index.js +1 -1
  84. package/dist/components/date-picker/index.js +1 -1
  85. package/dist/components/date-range-picker/index.js +1 -1
  86. package/dist/components/date-time-picker/index.js +1 -1
  87. package/dist/components/dependent-selector/dependent-selector.agent.d.ts +4 -0
  88. package/dist/components/dependent-selector/dependent-selector.d.ts +72 -0
  89. package/dist/components/dependent-selector/index.d.ts +4 -0
  90. package/dist/components/dependent-selector/index.js +6 -0
  91. package/dist/components/document-scanner/document-scanner.agent.d.ts +4 -0
  92. package/dist/components/document-scanner/document-scanner.d.ts +93 -0
  93. package/dist/components/document-scanner/index.d.ts +4 -0
  94. package/dist/components/document-scanner/index.js +6 -0
  95. package/dist/components/due-date-calculator/due-date-calculator.d.ts +21 -0
  96. package/dist/components/due-date-calculator/gestation.d.ts +60 -0
  97. package/dist/components/due-date-calculator/index.d.ts +4 -0
  98. package/dist/components/due-date-calculator/index.js +13 -0
  99. package/dist/components/file-upload/index.js +1 -1
  100. package/dist/components/fiscal-code-input/calculate-codice-fiscale.d.ts +24 -0
  101. package/dist/components/fiscal-code-input/fiscal-code-input.agent.d.ts +4 -0
  102. package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +61 -0
  103. package/dist/components/fiscal-code-input/index.d.ts +6 -0
  104. package/dist/components/fiscal-code-input/index.js +11 -0
  105. package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +21 -0
  106. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +27 -0
  107. package/dist/components/gestational-age-calculator/index.d.ts +3 -0
  108. package/dist/components/gestational-age-calculator/index.js +5 -0
  109. package/dist/components/index.d.ts +15 -0
  110. package/dist/components/logo/index.js +1 -1
  111. package/dist/components/practice-results/index.js +1 -1
  112. package/dist/components/pregnancy-weight-gain/index.d.ts +4 -0
  113. package/dist/components/pregnancy-weight-gain/index.js +9 -0
  114. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +19 -0
  115. package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +41 -0
  116. package/dist/components/privacy-lock/index.js +1 -1
  117. package/dist/components/public-footer/index.js +1 -1
  118. package/dist/components/qr-code/index.d.ts +5 -0
  119. package/dist/components/qr-code/index.js +8 -0
  120. package/dist/components/qr-code/qr-code.agent.d.ts +3 -0
  121. package/dist/components/qr-code/qr-code.d.ts +59 -0
  122. package/dist/components/qr-code/qr-encode.d.ts +46 -0
  123. package/dist/components/rich-text-editor/index.js +1 -1
  124. package/dist/components/session-countdown/index.d.ts +4 -0
  125. package/dist/components/session-countdown/index.js +6 -0
  126. package/dist/components/session-countdown/session-countdown.agent.d.ts +3 -0
  127. package/dist/components/session-countdown/session-countdown.d.ts +38 -0
  128. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  129. package/dist/components/skeleton/skeleton.d.ts +1 -1
  130. package/dist/components/social-sign-in-button/index.d.ts +3 -0
  131. package/dist/components/social-sign-in-button/index.js +5 -0
  132. package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +56 -0
  133. package/dist/components/unit-converter/index.d.ts +4 -0
  134. package/dist/components/unit-converter/index.js +9 -0
  135. package/dist/components/unit-converter/unit-converter.d.ts +21 -0
  136. package/dist/components/unit-converter/units.d.ts +18 -0
  137. package/dist/components/wallet-pay-button/index.d.ts +3 -0
  138. package/dist/components/wallet-pay-button/index.js +5 -0
  139. package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +63 -0
  140. package/dist/i18n/locales/ar.d.ts +316 -0
  141. package/dist/i18n/locales/ar.js +307 -0
  142. package/dist/i18n/locales/de.d.ts +316 -0
  143. package/dist/i18n/locales/de.js +307 -0
  144. package/dist/i18n/locales/el.d.ts +316 -0
  145. package/dist/i18n/locales/el.js +307 -0
  146. package/dist/i18n/locales/en.d.ts +316 -0
  147. package/dist/i18n/locales/en.js +310 -0
  148. package/dist/i18n/locales/es.d.ts +316 -0
  149. package/dist/i18n/locales/es.js +307 -0
  150. package/dist/i18n/locales/fr.d.ts +316 -0
  151. package/dist/i18n/locales/fr.js +307 -0
  152. package/dist/i18n/locales/hi.d.ts +316 -0
  153. package/dist/i18n/locales/hi.js +307 -0
  154. package/dist/i18n/locales/it.d.ts +316 -0
  155. package/dist/i18n/locales/it.js +307 -0
  156. package/dist/i18n/locales/ja.d.ts +316 -0
  157. package/dist/i18n/locales/ja.js +303 -0
  158. package/dist/i18n/locales/nl.d.ts +316 -0
  159. package/dist/i18n/locales/nl.js +307 -0
  160. package/dist/i18n/locales/pl.d.ts +316 -0
  161. package/dist/i18n/locales/pl.js +307 -0
  162. package/dist/i18n/locales/pt.d.ts +316 -0
  163. package/dist/i18n/locales/pt.js +310 -0
  164. package/dist/i18n/locales/ro.d.ts +316 -0
  165. package/dist/i18n/locales/ro.js +307 -0
  166. package/dist/i18n/locales/ru.d.ts +316 -0
  167. package/dist/i18n/locales/ru.js +307 -0
  168. package/dist/i18n/locales/sq.d.ts +316 -0
  169. package/dist/i18n/locales/sq.js +307 -0
  170. package/dist/i18n/locales/sv.d.ts +316 -0
  171. package/dist/i18n/locales/sv.js +307 -0
  172. package/dist/i18n/locales/tr.d.ts +316 -0
  173. package/dist/i18n/locales/tr.js +307 -0
  174. package/dist/i18n/locales/zh.d.ts +316 -0
  175. package/dist/i18n/locales/zh.js +303 -0
  176. package/dist/index.js +597 -527
  177. package/dist/locales/ar.json +316 -0
  178. package/dist/locales/de.json +316 -0
  179. package/dist/locales/el.json +316 -0
  180. package/dist/locales/en.json +316 -0
  181. package/dist/locales/es.json +316 -0
  182. package/dist/locales/fr.json +316 -0
  183. package/dist/locales/hi.json +316 -0
  184. package/dist/locales/it.json +316 -0
  185. package/dist/locales/ja.json +316 -0
  186. package/dist/locales/nl.json +316 -0
  187. package/dist/locales/pl.json +316 -0
  188. package/dist/locales/pt.json +316 -0
  189. package/dist/locales/ro.json +316 -0
  190. package/dist/locales/ru.json +316 -0
  191. package/dist/locales/sq.json +316 -0
  192. package/dist/locales/sv.json +316 -0
  193. package/dist/locales/tr.json +316 -0
  194. package/dist/locales/zh.json +316 -0
  195. package/dist/patterns/alia-assistant/index.js +1 -1
  196. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  197. package/dist/patterns/patient-shell/index.js +1 -1
  198. package/dist/tokens.css +1 -1
  199. package/package.json +57 -1
  200. package/dist/_chunks/chart-DLkVn_ex.js +0 -292
  201. package/dist/_chunks/subDays-CANHP9hz.js +0 -8
@@ -0,0 +1,568 @@
1
+ var H = Object.defineProperty;
2
+ var K = (e, t, o) => t in e ? H(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
+ var D = (e, t, o) => K(e, typeof t != "symbol" ? t + "" : t, o);
4
+ import { jsxs as N, jsx as w } from "react/jsx-runtime";
5
+ import { forwardRef as P, useMemo as X } from "react";
6
+ import { c as Q } from "./index-D2ZczOXr.js";
7
+ import { useTranslation as Z } from "react-i18next";
8
+ import { u as J } from "./registry-nPAVE19X.js";
9
+ import { A as W } from "./Alfadocs_Logo_Mark-7o3L3WBI.js";
10
+ const Y = {
11
+ id: "qr-code",
12
+ capabilities: [],
13
+ state: {
14
+ value: {
15
+ type: "string",
16
+ description: "The string (typically an https URL) encoded into the QR.",
17
+ read: (e) => e
18
+ }
19
+ },
20
+ actions: {},
21
+ domHooks: {
22
+ root: {
23
+ attr: "data-component",
24
+ value: "qr-code",
25
+ description: "Marks the element as a kit QrCode renderer."
26
+ }
27
+ }
28
+ }, A = new Uint8Array(512), T = new Uint8Array(256);
29
+ (() => {
30
+ let e = 1;
31
+ for (let t = 0; t < 255; t++)
32
+ A[t] = e, T[e] = t, e <<= 1, e & 256 && (e ^= 285);
33
+ for (let t = 255; t < 512; t++) A[t] = A[t - 255];
34
+ })();
35
+ function G(e, t) {
36
+ return e === 0 || t === 0 ? 0 : A[T[e] + T[t]];
37
+ }
38
+ function ee(e) {
39
+ let t = [1];
40
+ for (let o = 0; o < e; o++) {
41
+ const r = new Array(t.length + 1).fill(0);
42
+ for (let n = 0; n < t.length; n++)
43
+ r[n] ^= t[n], r[n + 1] ^= G(t[n], A[o]);
44
+ t = r;
45
+ }
46
+ return t;
47
+ }
48
+ function F(e, t) {
49
+ const o = ee(t), r = new Array(t).fill(0);
50
+ for (const n of e) {
51
+ const l = n ^ r[0];
52
+ if (r.shift(), r.push(0), l !== 0)
53
+ for (let s = 0; s < t; s++) r[s] ^= G(o[s + 1], l);
54
+ }
55
+ return r;
56
+ }
57
+ const $ = {
58
+ L: {
59
+ 1: [7, 1, 19, 0, 0],
60
+ 2: [10, 1, 34, 0, 0],
61
+ 3: [15, 1, 55, 0, 0],
62
+ 4: [20, 1, 80, 0, 0],
63
+ 5: [26, 1, 108, 0, 0],
64
+ 6: [18, 2, 68, 0, 0],
65
+ 7: [20, 2, 78, 0, 0],
66
+ 8: [24, 2, 97, 0, 0],
67
+ 9: [30, 2, 116, 0, 0],
68
+ 10: [18, 2, 68, 2, 69]
69
+ },
70
+ M: {
71
+ 1: [10, 1, 16, 0, 0],
72
+ 2: [16, 1, 28, 0, 0],
73
+ 3: [26, 1, 44, 0, 0],
74
+ 4: [18, 2, 32, 0, 0],
75
+ 5: [24, 2, 43, 0, 0],
76
+ 6: [16, 4, 27, 0, 0],
77
+ 7: [18, 4, 31, 0, 0],
78
+ 8: [22, 2, 38, 2, 39],
79
+ 9: [22, 3, 36, 2, 37],
80
+ 10: [26, 4, 43, 1, 44]
81
+ },
82
+ Q: {
83
+ 1: [13, 1, 13, 0, 0],
84
+ 2: [22, 1, 22, 0, 0],
85
+ 3: [18, 2, 17, 0, 0],
86
+ 4: [26, 2, 24, 0, 0],
87
+ 5: [18, 2, 15, 2, 16],
88
+ 6: [24, 4, 19, 0, 0],
89
+ 7: [18, 2, 14, 4, 15],
90
+ 8: [22, 4, 18, 2, 19],
91
+ 9: [20, 4, 16, 4, 17],
92
+ 10: [24, 6, 19, 2, 20]
93
+ },
94
+ H: {
95
+ 1: [17, 1, 9, 0, 0],
96
+ 2: [28, 1, 16, 0, 0],
97
+ 3: [22, 2, 13, 0, 0],
98
+ 4: [16, 4, 9, 0, 0],
99
+ 5: [22, 2, 11, 2, 12],
100
+ 6: [28, 4, 15, 0, 0],
101
+ 7: [26, 4, 13, 1, 14],
102
+ 8: [26, 4, 14, 2, 15],
103
+ 9: [24, 4, 12, 4, 13],
104
+ 10: [28, 6, 15, 2, 16]
105
+ }
106
+ };
107
+ function R(e) {
108
+ const [, t, o, r, n] = e;
109
+ return t * o + r * n;
110
+ }
111
+ const te = {
112
+ L: 1,
113
+ M: 0,
114
+ Q: 3,
115
+ H: 2
116
+ };
117
+ function re(e) {
118
+ let t = e << 10;
119
+ const o = 1335;
120
+ for (; k(t) - k(o) >= 0; ) t ^= o << k(t) - k(o);
121
+ return (e << 10 | t) ^ 21522;
122
+ }
123
+ function oe(e) {
124
+ let t = e << 12;
125
+ const o = 7973;
126
+ for (; k(t) - k(o) >= 0; ) t ^= o << k(t) - k(o);
127
+ return e << 12 | t;
128
+ }
129
+ function k(e) {
130
+ let t = 0;
131
+ for (; e; )
132
+ t++, e >>>= 1;
133
+ return t;
134
+ }
135
+ const se = {
136
+ 1: [],
137
+ 2: [6, 18],
138
+ 3: [6, 22],
139
+ 4: [6, 26],
140
+ 5: [6, 30],
141
+ 6: [6, 34],
142
+ 7: [6, 22, 38],
143
+ 8: [6, 24, 42],
144
+ 9: [6, 26, 46],
145
+ 10: [6, 28, 50]
146
+ };
147
+ function U(e) {
148
+ const t = new TextEncoder();
149
+ return Array.from(t.encode(e));
150
+ }
151
+ function ne(e, t) {
152
+ for (let o = 1; o <= 10; o++) {
153
+ const r = $[t][o], n = R(r), s = 4 + (o >= 10 ? 16 : 8), i = Math.floor((n * 8 - s) / 8);
154
+ if (e <= i) return o;
155
+ }
156
+ throw new Error(
157
+ `[QrCode] value too long for version 10 at EC level ${t} (${e} bytes).`
158
+ );
159
+ }
160
+ class ae {
161
+ constructor() {
162
+ D(this, "bits", []);
163
+ }
164
+ put(t, o) {
165
+ for (let r = o - 1; r >= 0; r--) this.bits.push(t >>> r & 1);
166
+ }
167
+ get length() {
168
+ return this.bits.length;
169
+ }
170
+ }
171
+ function ce(e, t, o) {
172
+ const r = U(e), n = $[t][o], l = R(n), s = new ae();
173
+ s.put(4, 4), s.put(r.length, o >= 10 ? 16 : 8);
174
+ for (const f of r) s.put(f, 8);
175
+ const i = l * 8, h = Math.min(4, i - s.length);
176
+ for (s.put(0, h); s.length % 8 !== 0; ) s.bits.push(0);
177
+ const v = [];
178
+ for (let f = 0; f < s.length; f += 8) {
179
+ let p = 0;
180
+ for (let M = 0; M < 8; M++) p = p << 1 | s.bits[f + M];
181
+ v.push(p);
182
+ }
183
+ const a = [236, 17];
184
+ let c = 0;
185
+ for (; v.length < l; ) v.push(a[c++ % 2]);
186
+ const [d, u, b, _, y] = n, g = [];
187
+ let m = 0;
188
+ for (let f = 0; f < u; f++) {
189
+ const p = v.slice(m, m + b);
190
+ m += b, g.push({ data: p, ec: F(p, d) });
191
+ }
192
+ for (let f = 0; f < _; f++) {
193
+ const p = v.slice(m, m + y);
194
+ m += y, g.push({ data: p, ec: F(p, d) });
195
+ }
196
+ const x = [], L = Math.max(b, y);
197
+ for (let f = 0; f < L; f++)
198
+ for (const p of g) f < p.data.length && x.push(p.data[f]);
199
+ for (let f = 0; f < d; f++)
200
+ for (const p of g) x.push(p.ec[f]);
201
+ return x;
202
+ }
203
+ function le(e) {
204
+ return Array.from(
205
+ { length: e },
206
+ () => Array.from({ length: e }, () => ({ dark: !1, reserved: !1 }))
207
+ );
208
+ }
209
+ function z(e, t, o) {
210
+ for (let r = -1; r <= 7; r++)
211
+ for (let n = -1; n <= 7; n++) {
212
+ const l = t + r, s = o + n;
213
+ if (l < 0 || l >= e.length || s < 0 || s >= e.length) continue;
214
+ const i = r >= 0 && r <= 6 && (n === 0 || n === 6) || n >= 0 && n <= 6 && (r === 0 || r === 6), h = r >= 2 && r <= 4 && n >= 2 && n <= 4;
215
+ e[l][s] = { dark: i || h, reserved: !0 };
216
+ }
217
+ }
218
+ function de(e, t) {
219
+ const o = se[t];
220
+ for (const r of o)
221
+ for (const n of o)
222
+ if (!(r === 6 && n === 6 || r === 6 && n === o[o.length - 1] || r === o[o.length - 1] && n === 6) && !e[r][n].reserved)
223
+ for (let l = -2; l <= 2; l++)
224
+ for (let s = -2; s <= 2; s++) {
225
+ const i = Math.max(Math.abs(l), Math.abs(s)) !== 1;
226
+ e[r + l][n + s] = { dark: i, reserved: !0 };
227
+ }
228
+ }
229
+ function ie(e) {
230
+ for (let t = 8; t < e.length - 8; t++)
231
+ e[6][t].reserved || (e[6][t] = { dark: t % 2 === 0, reserved: !0 }), e[t][6].reserved || (e[t][6] = { dark: t % 2 === 0, reserved: !0 });
232
+ }
233
+ function fe(e, t) {
234
+ const o = e.length;
235
+ e[o - 8][8] = { dark: !0, reserved: !0 };
236
+ for (let r = 0; r < 9; r++)
237
+ e[8][r].reserved || (e[8][r].reserved = !0), e[r][8].reserved || (e[r][8].reserved = !0);
238
+ for (let r = 0; r < 8; r++)
239
+ e[8][o - 1 - r].reserved = !0, e[o - 1 - r][8].reserved = !0;
240
+ if (t >= 7)
241
+ for (let r = 0; r < 6; r++)
242
+ for (let n = 0; n < 3; n++)
243
+ e[r][o - 11 + n].reserved = !0, e[o - 11 + n][r].reserved = !0;
244
+ }
245
+ function ue(e, t) {
246
+ const o = e.length;
247
+ let r = 0;
248
+ const n = t.length * 8, l = (i) => i < n ? t[i >> 3] >> 7 - (i & 7) & 1 : 0;
249
+ let s = !0;
250
+ for (let i = o - 1; i > 0; i -= 2) {
251
+ i === 6 && i--;
252
+ for (let h = 0; h < o; h++) {
253
+ const v = s ? o - 1 - h : h;
254
+ for (let a = 0; a < 2; a++) {
255
+ const c = i - a, d = e[v][c];
256
+ d.reserved || (d.dark = l(r) === 1, r++);
257
+ }
258
+ }
259
+ s = !s;
260
+ }
261
+ }
262
+ const he = [
263
+ (e, t) => (e + t) % 2 === 0,
264
+ (e) => e % 2 === 0,
265
+ (e, t) => t % 3 === 0,
266
+ (e, t) => (e + t) % 3 === 0,
267
+ (e, t) => (Math.floor(e / 2) + Math.floor(t / 3)) % 2 === 0,
268
+ (e, t) => e * t % 2 + e * t % 3 === 0,
269
+ (e, t) => (e * t % 2 + e * t % 3) % 2 === 0,
270
+ (e, t) => ((e + t) % 2 + e * t % 3) % 2 === 0
271
+ ];
272
+ function me(e, t) {
273
+ return e.map(
274
+ (o, r) => o.map((n, l) => ({
275
+ dark: n.reserved ? n.dark : n.dark !== he[t](r, l)
276
+ }))
277
+ );
278
+ }
279
+ function pe(e, t, o) {
280
+ const r = e.length, n = re(te[t] << 3 | o), l = (s) => (n >> s & 1) === 1;
281
+ for (let s = 0; s <= 5; s++) e[s][8].dark = l(s);
282
+ e[7][8].dark = l(6), e[8][8].dark = l(7), e[8][7].dark = l(8);
283
+ for (let s = 9; s < 15; s++) e[8][14 - s].dark = l(s);
284
+ for (let s = 0; s < 8; s++) e[8][r - 1 - s].dark = l(s);
285
+ for (let s = 8; s < 15; s++) e[r - 15 + s][8].dark = l(s);
286
+ e[r - 8][8].dark = !0;
287
+ }
288
+ function ve(e, t) {
289
+ if (t < 7) return;
290
+ const o = e.length, r = oe(t);
291
+ for (let n = 0; n < 18; n++) {
292
+ const l = (r >> n & 1) === 1, s = Math.floor(n / 3), i = n % 3;
293
+ e[s][o - 11 + i].dark = l, e[o - 11 + i][s].dark = l;
294
+ }
295
+ }
296
+ function be(e) {
297
+ const t = e.length;
298
+ let o = 0;
299
+ const r = (a) => {
300
+ let c = 0, d = 1;
301
+ for (let u = 1; u < a.length; u++)
302
+ a[u] === a[u - 1] ? d++ : (d >= 5 && (c += 3 + (d - 5)), d = 1);
303
+ return d >= 5 && (c += 3 + (d - 5)), c;
304
+ };
305
+ for (let a = 0; a < t; a++) o += r(e[a].map((c) => c.dark));
306
+ for (let a = 0; a < t; a++) o += r(e.map((c) => c[a].dark));
307
+ for (let a = 0; a < t - 1; a++)
308
+ for (let c = 0; c < t - 1; c++) {
309
+ const d = e[a][c].dark;
310
+ e[a][c + 1].dark === d && e[a + 1][c].dark === d && e[a + 1][c + 1].dark === d && (o += 3);
311
+ }
312
+ const n = [!0, !1, !0, !0, !0, !1, !0], l = (a, c) => n.every((d, u) => a[c + u] === d), s = (a) => {
313
+ let c = 0;
314
+ for (let d = 0; d + 11 <= a.length; d++)
315
+ l(a, d) && a.slice(d + 7, d + 11).every((u) => !u) && (c += 40), a.slice(d, d + 4).every((u) => !u) && l(a, d + 4) && (c += 40);
316
+ return c;
317
+ };
318
+ for (let a = 0; a < t; a++) o += s(e[a].map((c) => c.dark));
319
+ for (let a = 0; a < t; a++)
320
+ o += s(e.map((c) => c[a].dark));
321
+ let i = 0;
322
+ for (const a of e) for (const c of a) c.dark && i++;
323
+ const h = i / (t * t) * 100, v = Math.floor(Math.abs(h - 50) / 5);
324
+ return o += v * 10, o;
325
+ }
326
+ function ge(e, t) {
327
+ const o = U(e).length, r = ne(o, t), n = r * 4 + 17, l = ce(e, t, r), s = le(n);
328
+ z(s, 0, 0), z(s, 0, n - 7), z(s, n - 7, 0), de(s, r), ie(s), fe(s, r), ue(s, l);
329
+ let i = null, h = 1 / 0;
330
+ for (let c = 0; c < 8; c++) {
331
+ const d = me(s, c);
332
+ pe(d, t, c), ve(d, r);
333
+ const u = be(d);
334
+ u < h && (h = u, i = d);
335
+ }
336
+ const v = i, a = [];
337
+ for (let c = 0; c < n; c++)
338
+ for (let d = 0; d < n; d++) a.push(v[c][d].dark);
339
+ return { size: n, modules: a };
340
+ }
341
+ let I = null;
342
+ function Ie(e) {
343
+ I = e;
344
+ }
345
+ function ke(e, t) {
346
+ if (I) {
347
+ const o = I(e, { errorCorrectionLevel: t }), { size: r, data: n } = o.modules, l = [];
348
+ for (let s = 0; s < n.length; s++) l.push(n[s] === 1);
349
+ return { size: r, modules: l };
350
+ }
351
+ return ge(e, t);
352
+ }
353
+ const ye = Q(
354
+ [
355
+ "ds:inline-flex ds:flex-col ds:items-center ds:shrink-0",
356
+ "ds:gap-[var(--spacing-sm)]",
357
+ // The matrix must never mirror in RTL — a mirrored QR is unscannable —
358
+ // so the wrapper pins LTR while caption/label text still flips via the
359
+ // logical `text-*` utilities. Mirrors Sparkline's `dir="ltr"` pin.
360
+ "ds:leading-none"
361
+ ],
362
+ {
363
+ variants: {
364
+ variant: {
365
+ plain: "",
366
+ framed: [
367
+ "ds:bg-[var(--card)] ds:text-[var(--card-foreground)]",
368
+ "ds:border ds:border-[color:var(--border)]",
369
+ // Accessible theme thickens the boundary in step with Card / Stat.
370
+ "ds:[.theme-accessible_&]:border-2",
371
+ "ds:rounded-[var(--radius-lg)]",
372
+ "ds:p-[var(--spacing-md)]",
373
+ // Forced-colors: the UA strips background; keep a CanvasText
374
+ // boundary so the frame survives Windows High Contrast Mode.
375
+ "ds:forced-colors:border ds:forced-colors:border-[CanvasText]"
376
+ ],
377
+ "with-caption": [
378
+ "ds:bg-[var(--card)] ds:text-[var(--card-foreground)]",
379
+ "ds:border ds:border-[color:var(--border)]",
380
+ "ds:[.theme-accessible_&]:border-2",
381
+ "ds:rounded-[var(--radius-lg)]",
382
+ "ds:p-[var(--spacing-md)]",
383
+ "ds:forced-colors:border ds:forced-colors:border-[CanvasText]"
384
+ ]
385
+ },
386
+ // Edge length of the matrix box, driven by dedicated tokens
387
+ // (`--qr-code-size-*`, parallel to `--logo-size-*`). The token owner
388
+ // controls the scale and the accessible theme can lift it; the
389
+ // var() fallback is only a graceful default so the box renders before
390
+ // those token rows land — the token wins whenever it is defined.
391
+ size: {
392
+ sm: "ds:[--qr-edge:var(--qr-code-size-sm,8rem)]",
393
+ md: "ds:[--qr-edge:var(--qr-code-size-md,12rem)]",
394
+ lg: "ds:[--qr-edge:var(--qr-code-size-lg,16rem)]"
395
+ },
396
+ tone: {
397
+ default: "",
398
+ // Light modules on a dark quiet zone. The chrome inverts via tokens;
399
+ // the matrix colours themselves are swapped in the SVG (scanner
400
+ // constraint — see the literal note below).
401
+ inverted: ""
402
+ }
403
+ },
404
+ defaultVariants: { variant: "framed", size: "md", tone: "default" }
405
+ }
406
+ ), xe = Q(
407
+ [
408
+ "type-body-sm",
409
+ "ds:text-[color:var(--card-foreground)]",
410
+ // Caption flips with reading direction; the matrix above stays LTR.
411
+ "ds:text-center"
412
+ ],
413
+ {
414
+ variants: {
415
+ tone: {
416
+ default: "",
417
+ inverted: ""
418
+ }
419
+ },
420
+ defaultVariants: { tone: "default" }
421
+ }
422
+ ), we = Q(
423
+ [
424
+ "ds:pointer-events-none ds:absolute ds:inset-0 ds:m-auto",
425
+ "ds:flex ds:items-center ds:justify-center",
426
+ "ds:rounded-[var(--radius-sm)] ds:p-[var(--spacing-2xs)]",
427
+ "ds:bg-[var(--background)]",
428
+ // Clamp to the published LOGO_EDGE_FRACTION of the matrix edge.
429
+ "ds:[block-size:calc(var(--qr-edge)*var(--qr-logo-edge))]",
430
+ "ds:[inline-size:calc(var(--qr-edge)*var(--qr-logo-edge))]",
431
+ // The mark/custom node fills the padded knockout box.
432
+ "ds:[&>*]:h-full ds:[&>*]:w-full",
433
+ "ds:[&>*]:max-h-full ds:[&>*]:max-w-full"
434
+ ],
435
+ {
436
+ variants: {
437
+ tone: {
438
+ default: "ds:text-[color:var(--primary)]",
439
+ inverted: "ds:text-[color:var(--foreground)]"
440
+ }
441
+ },
442
+ defaultVariants: { tone: "default" }
443
+ }
444
+ ), E = 4, Me = "ds:[--qr-logo-edge:0.22]", qe = /* @__PURE__ */ w(W, { "aria-hidden": !0, focusable: "false" });
445
+ function Ce(e, t) {
446
+ if (!e) return null;
447
+ try {
448
+ return ke(e, t);
449
+ } catch {
450
+ return null;
451
+ }
452
+ }
453
+ const Ae = P(
454
+ ({
455
+ value: e,
456
+ variant: t = "framed",
457
+ size: o = "md",
458
+ tone: r = "default",
459
+ errorCorrectionLevel: n,
460
+ logo: l,
461
+ caption: s,
462
+ quietZone: i = E,
463
+ label: h,
464
+ decorative: v,
465
+ className: a,
466
+ id: c,
467
+ ...d
468
+ }, u) => {
469
+ const { t: b } = Z(), _ = l !== !1, y = _ ? l ?? qe : null, g = n ?? (_ ? "H" : "M"), m = X(() => Ce(e, g), [e, g]), x = Math.max(E, Math.floor(i)), L = m ? h ? b("qrCode.ariaLabelNamed", { label: h }) : b("qrCode.ariaLabel") : b("qrCode.empty"), f = v ? { role: "presentation", "aria-hidden": !0 } : { role: "img", "aria-label": L }, M = t === "with-caption" ? s ?? b("qrCode.caption") : void 0, j = r === "inverted" ? "#fff" : "#000", O = r === "inverted" ? "#000" : "#fff", S = [];
470
+ let B = `0 0 ${(E * 2 + 1) * 1} ${(E * 2 + 1) * 1}`;
471
+ if (m) {
472
+ const V = m.size + x * 2;
473
+ B = `0 0 ${V} ${V}`;
474
+ for (let q = 0; q < m.size; q++)
475
+ for (let C = 0; C < m.size; C++)
476
+ m.modules[q * m.size + C] && S.push(
477
+ /* @__PURE__ */ w(
478
+ "rect",
479
+ {
480
+ x: C + x,
481
+ y: q + x,
482
+ width: 1,
483
+ height: 1,
484
+ fill: j
485
+ },
486
+ `${q}-${C}`
487
+ )
488
+ );
489
+ }
490
+ return J(Y, e, c), /* @__PURE__ */ N(
491
+ "div",
492
+ {
493
+ ref: u,
494
+ ...f,
495
+ ...d,
496
+ id: c,
497
+ dir: "ltr",
498
+ "data-component": "qr-code",
499
+ "data-component-id": c,
500
+ "data-tone": r,
501
+ "data-ec": g,
502
+ "data-logo": y ? "true" : "false",
503
+ className: ye({ variant: t, size: o, tone: r, className: a }),
504
+ children: [
505
+ /* @__PURE__ */ N(
506
+ "div",
507
+ {
508
+ className: `ds:relative ds:w-[var(--qr-edge)] ds:h-[var(--qr-edge)] ds:max-w-full ${Me}`,
509
+ children: [
510
+ m ? /* @__PURE__ */ N(
511
+ "svg",
512
+ {
513
+ "aria-hidden": "true",
514
+ focusable: "false",
515
+ viewBox: B,
516
+ shapeRendering: "crispEdges",
517
+ className: "ds:block ds:h-full ds:w-full",
518
+ children: [
519
+ /* @__PURE__ */ w("rect", { x: 0, y: 0, width: "100%", height: "100%", fill: O }),
520
+ S
521
+ ]
522
+ }
523
+ ) : /* @__PURE__ */ w(
524
+ "svg",
525
+ {
526
+ "aria-hidden": "true",
527
+ focusable: "false",
528
+ viewBox: B,
529
+ className: "ds:block ds:h-full ds:w-full",
530
+ children: /* @__PURE__ */ w(
531
+ "rect",
532
+ {
533
+ x: 0,
534
+ y: 0,
535
+ width: "100%",
536
+ height: "100%",
537
+ fill: O,
538
+ className: "ds:opacity-0"
539
+ }
540
+ )
541
+ }
542
+ ),
543
+ m && y ? /* @__PURE__ */ w(
544
+ "span",
545
+ {
546
+ "aria-hidden": "true",
547
+ "data-slot": "qr-center-logo",
548
+ className: we({ tone: r }),
549
+ children: y
550
+ }
551
+ ) : null
552
+ ]
553
+ }
554
+ ),
555
+ M ? /* @__PURE__ */ w("p", { className: xe({ tone: r }), children: M }) : null
556
+ ]
557
+ }
558
+ );
559
+ }
560
+ );
561
+ Ae.displayName = "QrCode";
562
+ export {
563
+ Ae as Q,
564
+ ke as c,
565
+ Y as q,
566
+ Ie as s
567
+ };
568
+ //# sourceMappingURL=qr-code-DNXhi6se.js.map
@@ -3000,23 +3000,23 @@ function qo(e) {
3000
3000
  }
3001
3001
  const Ot = {
3002
3002
  en: () => Promise.resolve().then(() => Pr).then((e) => e.enUS),
3003
- it: () => import("./it-CuonvcI_.js").then((e) => e.it),
3004
- de: () => import("./de-Dfbeau59.js").then((e) => e.de),
3005
- es: () => import("./es-Dvg8u70B.js").then((e) => e.es),
3006
- fr: () => import("./fr-VOGjBSPP.js").then((e) => e.fr),
3007
- pt: () => import("./pt-D7qO5CzD.js").then((e) => e.pt),
3008
- nl: () => import("./nl-DjPaaWaW.js").then((e) => e.nl),
3009
- pl: () => import("./pl-Cl4lOx2N.js").then((e) => e.pl),
3010
- ro: () => import("./ro-CP2-VJ_O.js").then((e) => e.ro),
3011
- ru: () => import("./ru-RPn9_Lpq.js").then((e) => e.ru),
3012
- sv: () => import("./sv-zkx9eBtD.js").then((e) => e.sv),
3013
- el: () => import("./el-Dro3J7CP.js").then((e) => e.el),
3014
- ja: () => import("./ja-DO57gIOT.js").then((e) => e.ja),
3015
- zh: () => import("./zh-CN-DxVt64Zk.js").then((e) => e.zhCN),
3016
- hi: () => import("./hi-BSDxWU_y.js").then((e) => e.hi),
3017
- ar: () => import("./ar-CEpIJtcO.js").then((e) => e.ar),
3018
- tr: () => import("./tr-Dmr412Ac.js").then((e) => e.tr),
3019
- sq: () => import("./sq-AQvefouo.js").then((e) => e.sq)
3003
+ it: () => import("./it-GiQrQ9p4.js").then((e) => e.it),
3004
+ de: () => import("./de-BMM2H7Bs.js").then((e) => e.de),
3005
+ es: () => import("./es-CMkVCQ4F.js").then((e) => e.es),
3006
+ fr: () => import("./fr-BcuWxqft.js").then((e) => e.fr),
3007
+ pt: () => import("./pt-_bV5b5RW.js").then((e) => e.pt),
3008
+ nl: () => import("./nl-xOogO4sZ.js").then((e) => e.nl),
3009
+ pl: () => import("./pl-GnOW6eGK.js").then((e) => e.pl),
3010
+ ro: () => import("./ro-BEcyh5Nj.js").then((e) => e.ro),
3011
+ ru: () => import("./ru-Bi86hqMf.js").then((e) => e.ru),
3012
+ sv: () => import("./sv-C8AeDrTA.js").then((e) => e.sv),
3013
+ el: () => import("./el-BYPonAaK.js").then((e) => e.el),
3014
+ ja: () => import("./ja-qfYg3Rua.js").then((e) => e.ja),
3015
+ zh: () => import("./zh-CN-eXB-PFu4.js").then((e) => e.zhCN),
3016
+ hi: () => import("./hi-wkq_rQAh.js").then((e) => e.hi),
3017
+ ar: () => import("./ar-Cn_NxqkN.js").then((e) => e.ar),
3018
+ tr: () => import("./tr-CMSs_Vgf.js").then((e) => e.tr),
3019
+ sq: () => import("./sq-BujHSAWu.js").then((e) => e.sq)
3020
3020
  };
3021
3021
  async function To(e) {
3022
3022
  const t = e.toLowerCase().split("-")[0];
@@ -3147,17 +3147,17 @@ export {
3147
3147
  Ct as a,
3148
3148
  Gn as b,
3149
3149
  Go as c,
3150
- Qn as d,
3150
+ Ke as d,
3151
3151
  _t as e,
3152
- Kn as f,
3152
+ Qn as f,
3153
3153
  zo as g,
3154
- Me as h,
3155
- Ke as i,
3156
- Vo as j,
3157
- $o as k,
3158
- Uo as l,
3159
- ea as m,
3160
- Lr as n,
3154
+ Kn as h,
3155
+ Lr as i,
3156
+ Me as j,
3157
+ Vo as k,
3158
+ $o as l,
3159
+ Uo as m,
3160
+ ea as n,
3161
3161
  je as o,
3162
3162
  Qo as p,
3163
3163
  me as q,
@@ -3171,4 +3171,4 @@ export {
3171
3171
  ke as y,
3172
3172
  Ft as z
3173
3173
  };
3174
- //# sourceMappingURL=react-day-picker-DsjfS7uI.js.map
3174
+ //# sourceMappingURL=react-day-picker-CdtIiKjx.js.map