@alfadocs/ui-kit 0.37.0 → 0.39.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.
- package/dist/_chunks/Alfadocs_Logo_Mark-7o3L3WBI.js +56 -0
- package/dist/_chunks/{accordion-bSU21uTV.js → accordion-9lJSMMsZ.js} +6 -6
- package/dist/_chunks/{agenda-tray-By_asPN9.js → agenda-tray-Dyj9ChHC.js} +22 -21
- package/dist/_chunks/{alia-sidebar-BEoMl6UL.js → alia-sidebar-DXsYPinm.js} +2 -2
- package/dist/_chunks/{ar-D1RwVZFj.js → ar-Cn_NxqkN.js} +2 -2
- package/dist/_chunks/bmi-BxD-tFzU.js +32 -0
- package/dist/_chunks/bmi-calculator-DnEr513I.js +213 -0
- package/dist/_chunks/{booking-DqXsd1Mv.js → booking-4mCw3Mpl.js} +5 -5
- package/dist/_chunks/calculator-dialog-B74fqpFZ.js +40 -0
- package/dist/_chunks/{chart-DnHvmiDX.js → chart-Cbt0_sKv.js} +46 -37
- package/dist/_chunks/{chat-message-D53_fH2w.js → chat-message-ASgGtj-L.js} +30 -39
- package/dist/_chunks/{collapsible-CERONory.js → collapsible-X3oaLPU3.js} +5 -5
- package/dist/_chunks/{contact-profile-card-BA6fgS45.js → contact-profile-card-DHyuAPXM.js} +14 -13
- package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +185 -0
- package/dist/_chunks/{date-picker-CXFpu-qY.js → date-picker-CvQfs6Xh.js} +2 -2
- package/dist/_chunks/{date-range-picker-I-q5rifj.js → date-range-picker-U9fn1g9d.js} +3 -3
- package/dist/_chunks/{date-time-picker-CqpGPlcH.js → date-time-picker-Cva0ZCWw.js} +2 -2
- package/dist/_chunks/{de-HTQ4b4-J.js → de-BMM2H7Bs.js} +2 -2
- package/dist/_chunks/dependent-selector-CRWgieHm.js +324 -0
- package/dist/_chunks/document-scanner-CqS_klIr.js +703 -0
- package/dist/_chunks/due-date-calculator-CUspKSTw.js +171 -0
- package/dist/_chunks/{editable-currency-cell-renderer-DnjwZNZP.js → editable-currency-cell-renderer-DgkCIIcO.js} +3 -3
- package/dist/_chunks/{el-Dr1pjuDq.js → el-BYPonAaK.js} +2 -2
- package/dist/_chunks/{es-CvyTjLS0.js → es-CMkVCQ4F.js} +2 -2
- package/dist/_chunks/{file-upload-CdozCPct.js → file-upload-BosbPDb1.js} +3 -2
- package/dist/_chunks/fiscal-code-input-BZ0FxwUl.js +540 -0
- package/dist/_chunks/{fr-CS7aqaFR.js → fr-BcuWxqft.js} +2 -2
- package/dist/_chunks/{freemium-paywall-D1N02Oam.js → freemium-paywall-BAk3a6er.js} +7 -7
- package/dist/_chunks/gestation-BXEgDGmP.js +50 -0
- package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js +165 -0
- package/dist/_chunks/header-settings-CBLwUK6t.js +244 -0
- package/dist/_chunks/heart-C0faivFf.js +20 -0
- package/dist/_chunks/{hi-3uy8KpsH.js → hi-wkq_rQAh.js} +2 -2
- package/dist/_chunks/image-C6RM5hfF.js +16 -0
- package/dist/_chunks/insert-result-yJ0QavoN.js +133 -0
- package/dist/_chunks/{isSameWeek-DRpMibi9.js → isSameWeek-Bim5ftRd.js} +2 -2
- package/dist/_chunks/{it-B_RF5VSw.js → it-GiQrQ9p4.js} +3 -3
- package/dist/_chunks/{ja-C1mEYy35.js → ja-qfYg3Rua.js} +2 -2
- package/dist/_chunks/{logo-_Z-jLq80.js → logo-yituK7sE.js} +42 -91
- package/dist/_chunks/{map-view-vD5pvWs9.js → map-view-qJLybrmN.js} +2 -2
- package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +296 -0
- package/dist/_chunks/{message-card-BbRhZkDI.js → message-card-DSPw5ghw.js} +20 -19
- package/dist/_chunks/{message-tray-B762TKuv.js → message-tray-hSQff9u4.js} +3 -3
- package/dist/_chunks/{nl-Dl7lO2t3.js → nl-xOogO4sZ.js} +2 -2
- package/dist/_chunks/{notification-card-DMdO4g54.js → notification-card-CObnGdJu.js} +22 -21
- package/dist/_chunks/{notification-tray-Dl3FTleW.js → notification-tray-BWHDIjgd.js} +2 -2
- package/dist/_chunks/{otp-input-CDTWT5EK.js → otp-input-CMphfBxZ.js} +70 -71
- package/dist/_chunks/{patient-shell-CDvMw_Nk.js → patient-shell-DF81lALv.js} +37 -36
- package/dist/_chunks/{payment-form-D5rgnZu7.js → payment-form-Dy3WIIsC.js} +18 -18
- package/dist/_chunks/{pdf-viewer-DvtEHcEP.js → pdf-viewer-Cy6Ul3hZ.js} +2 -2
- package/dist/_chunks/{pl-Dgsogljx.js → pl-GnOW6eGK.js} +3 -3
- package/dist/_chunks/{practice-results-BFM_lyUs.js → practice-results-C0d4IL5E.js} +4 -3
- package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +209 -0
- package/dist/_chunks/{privacy-lock-DD-wHxBg.js → privacy-lock-BmX_gkvt.js} +2 -2
- package/dist/_chunks/{pt-Dm2JF4bc.js → pt-_bV5b5RW.js} +2 -2
- package/dist/_chunks/{public-footer.agent-Cjfe5jus.js → public-footer.agent-okt8ZRc5.js} +3 -3
- package/dist/_chunks/qr-code-DNXhi6se.js +568 -0
- package/dist/_chunks/{react-day-picker-DYDdR8Vv.js → react-day-picker-CdtIiKjx.js} +24 -24
- package/dist/_chunks/{reviews-panel-Dow8Dzoa.js → reviews-panel-CPrXu5TX.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CHmr9Bz8.js → rich-text-editor-DLbg2852.js} +114 -124
- package/dist/_chunks/{ro-BXFZ_xIX.js → ro-BEcyh5Nj.js} +2 -2
- package/dist/_chunks/rotate-ccw-BWANpitO.js +15 -0
- package/dist/_chunks/{ru-BPQkNRRV.js → ru-Bi86hqMf.js} +3 -3
- package/dist/_chunks/session-countdown-LPnhTHjn.js +214 -0
- package/dist/_chunks/{shield-check-BhHyReu8.js → shield-check-C73ma9Cs.js} +8 -24
- package/dist/_chunks/{sidebar-BbR8f6oe.js → sidebar-_vJXI9rB.js} +2 -2
- package/dist/_chunks/sign-document-DId1p-nn.js +315 -0
- package/dist/_chunks/{sign-in-with-alfadocs-button-BI0fVonM.js → sign-in-with-alfadocs-button-DeHBFRNS.js} +2 -2
- package/dist/_chunks/{signature-capture-C-fF71xI.js → signature-capture-BRzCklg4.js} +27 -24
- package/dist/_chunks/social-sign-in-button-X54ySJr1.js +243 -0
- package/dist/_chunks/{sparkline-DEROcSl0.js → sparkline-DGhCSw8M.js} +55 -46
- package/dist/_chunks/{sq-ChTlGFcJ.js → sq-BujHSAWu.js} +2 -2
- package/dist/_chunks/{stepper-accordion-BfS6lUB9.js → stepper-accordion-Dki6r9ZE.js} +2 -2
- package/dist/_chunks/subDays-_T9YeKPX.js +8 -0
- package/dist/_chunks/{sv-Do_gs6ir.js → sv-C8AeDrTA.js} +2 -2
- package/dist/_chunks/{tag-CyoaEmf_.js → tag-CdA0s_VV.js} +16 -16
- package/dist/_chunks/{task-card-BUVMh6HN.js → task-card-CPyQ5AXC.js} +6 -5
- package/dist/_chunks/{task-tray-DRK0b0Qb.js → task-tray-B8jFv5FV.js} +36 -35
- package/dist/_chunks/{tr-da_UnkYH.js → tr-CMSs_Vgf.js} +2 -2
- package/dist/_chunks/{transcript-panel-DyhTpAP7.js → transcript-panel-CR7VY1uw.js} +8 -7
- package/dist/_chunks/unit-converter-EUwO6QYq.js +168 -0
- package/dist/_chunks/wallet-pay-button-DK4ESYge.js +250 -0
- package/dist/_chunks/{warning-stack-bDicCvxs.js → warning-stack-DNR3-IbP.js} +17 -16
- package/dist/_chunks/{workflow-map-uSiHbOWQ.js → workflow-map-C3gB0FvB.js} +3 -2
- package/dist/_chunks/{zh-CN-C9qi5oak.js → zh-CN-eXB-PFu4.js} +3 -3
- package/dist/agent-catalog.json +241 -1
- package/dist/brand/provider-marks/apple-pay.d.ts +12 -0
- package/dist/brand/provider-marks/apple.d.ts +12 -0
- package/dist/brand/provider-marks/google-pay.d.ts +12 -0
- package/dist/brand/provider-marks/google.d.ts +13 -0
- package/dist/components/_shared/insert-result.d.ts +47 -0
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/bmi-calculator/bmi-calculator.d.ts +3 -0
- package/dist/components/bmi-calculator/index.js +6 -5
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/calculator-dialog.d.ts +26 -0
- package/dist/components/calculator-dialog/index.d.ts +3 -0
- package/dist/components/calculator-dialog/index.js +5 -0
- package/dist/components/chart/chart.d.ts +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +21 -0
- package/dist/components/cycle-calculator/cycle.d.ts +37 -0
- package/dist/components/cycle-calculator/index.d.ts +4 -0
- package/dist/components/cycle-calculator/index.js +7 -0
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dependent-selector/dependent-selector.agent.d.ts +4 -0
- package/dist/components/dependent-selector/dependent-selector.d.ts +72 -0
- package/dist/components/dependent-selector/index.d.ts +4 -0
- package/dist/components/dependent-selector/index.js +6 -0
- package/dist/components/document-scanner/document-scanner.agent.d.ts +4 -0
- package/dist/components/document-scanner/document-scanner.d.ts +93 -0
- package/dist/components/document-scanner/index.d.ts +4 -0
- package/dist/components/document-scanner/index.js +6 -0
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +3 -0
- package/dist/components/due-date-calculator/gestation.d.ts +16 -0
- package/dist/components/due-date-calculator/index.d.ts +1 -1
- package/dist/components/due-date-calculator/index.js +10 -7
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/fiscal-code-input/calculate-codice-fiscale.d.ts +24 -0
- package/dist/components/fiscal-code-input/fiscal-code-input.agent.d.ts +4 -0
- package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +61 -0
- package/dist/components/fiscal-code-input/index.d.ts +6 -0
- package/dist/components/fiscal-code-input/index.js +11 -0
- package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +21 -0
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +27 -0
- package/dist/components/gestational-age-calculator/index.d.ts +3 -0
- package/dist/components/gestational-age-calculator/index.js +5 -0
- package/dist/components/header-settings/header-settings.agent.d.ts +4 -0
- package/dist/components/header-settings/header-settings.d.ts +36 -0
- package/dist/components/header-settings/index.d.ts +2 -0
- package/dist/components/header-settings/index.js +2 -241
- package/dist/components/index.d.ts +14 -0
- package/dist/components/locale-picker/locale-picker.agent.d.ts +4 -0
- package/dist/components/locale-picker/locale-picker.d.ts +80 -0
- package/dist/components/logo/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/otp-input/index.d.ts +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.d.ts +4 -0
- package/dist/components/pregnancy-weight-gain/index.js +9 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +19 -0
- package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +41 -0
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/qr-code/index.d.ts +5 -0
- package/dist/components/qr-code/index.js +8 -0
- package/dist/components/qr-code/qr-code.agent.d.ts +3 -0
- package/dist/components/qr-code/qr-code.d.ts +59 -0
- package/dist/components/qr-code/qr-encode.d.ts +46 -0
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/session-countdown/index.d.ts +4 -0
- package/dist/components/session-countdown/index.js +6 -0
- package/dist/components/session-countdown/session-countdown.agent.d.ts +3 -0
- package/dist/components/session-countdown/session-countdown.d.ts +38 -0
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-document/index.d.ts +4 -0
- package/dist/components/sign-document/index.js +6 -0
- package/dist/components/sign-document/sign-document.agent.d.ts +4 -0
- package/dist/components/sign-document/sign-document.d.ts +47 -0
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/social-sign-in-button/index.d.ts +3 -0
- package/dist/components/social-sign-in-button/index.js +5 -0
- package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +56 -0
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.d.ts +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/unit-converter/index.d.ts +4 -0
- package/dist/components/unit-converter/index.js +9 -0
- package/dist/components/unit-converter/unit-converter.d.ts +21 -0
- package/dist/components/unit-converter/units.d.ts +18 -0
- package/dist/components/wallet-pay-button/index.d.ts +3 -0
- package/dist/components/wallet-pay-button/index.js +5 -0
- package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +63 -0
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locale-meta.d.ts +56 -0
- package/dist/i18n/locales/ar.d.ts +274 -0
- package/dist/i18n/locales/ar.js +271 -0
- package/dist/i18n/locales/de.d.ts +274 -0
- package/dist/i18n/locales/de.js +271 -0
- package/dist/i18n/locales/el.d.ts +274 -0
- package/dist/i18n/locales/el.js +271 -0
- package/dist/i18n/locales/en.d.ts +274 -0
- package/dist/i18n/locales/en.js +274 -0
- package/dist/i18n/locales/es.d.ts +274 -0
- package/dist/i18n/locales/es.js +271 -0
- package/dist/i18n/locales/fr.d.ts +274 -0
- package/dist/i18n/locales/fr.js +271 -0
- package/dist/i18n/locales/hi.d.ts +274 -0
- package/dist/i18n/locales/hi.js +271 -0
- package/dist/i18n/locales/it.d.ts +274 -0
- package/dist/i18n/locales/it.js +271 -0
- package/dist/i18n/locales/ja.d.ts +274 -0
- package/dist/i18n/locales/ja.js +267 -0
- package/dist/i18n/locales/nl.d.ts +274 -0
- package/dist/i18n/locales/nl.js +271 -0
- package/dist/i18n/locales/pl.d.ts +274 -0
- package/dist/i18n/locales/pl.js +271 -0
- package/dist/i18n/locales/pt.d.ts +274 -0
- package/dist/i18n/locales/pt.js +274 -0
- package/dist/i18n/locales/ro.d.ts +274 -0
- package/dist/i18n/locales/ro.js +271 -0
- package/dist/i18n/locales/ru.d.ts +274 -0
- package/dist/i18n/locales/ru.js +271 -0
- package/dist/i18n/locales/sq.d.ts +274 -0
- package/dist/i18n/locales/sq.js +271 -0
- package/dist/i18n/locales/sv.d.ts +274 -0
- package/dist/i18n/locales/sv.js +271 -0
- package/dist/i18n/locales/tr.d.ts +274 -0
- package/dist/i18n/locales/tr.js +271 -0
- package/dist/i18n/locales/zh.d.ts +274 -0
- package/dist/i18n/locales/zh.js +267 -0
- package/dist/index.js +590 -535
- package/dist/locales/ar.json +274 -0
- package/dist/locales/de.json +274 -0
- package/dist/locales/el.json +274 -0
- package/dist/locales/en.json +274 -0
- package/dist/locales/es.json +274 -0
- package/dist/locales/fr.json +274 -0
- package/dist/locales/hi.json +274 -0
- package/dist/locales/it.json +274 -0
- package/dist/locales/ja.json +274 -0
- package/dist/locales/nl.json +274 -0
- package/dist/locales/pl.json +274 -0
- package/dist/locales/pt.json +274 -0
- package/dist/locales/ro.json +274 -0
- package/dist/locales/ru.json +274 -0
- package/dist/locales/sq.json +274 -0
- package/dist/locales/sv.json +274 -0
- package/dist/locales/tr.json +274 -0
- package/dist/locales/zh.json +274 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +12 -8
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +53 -1
- package/dist/_chunks/bmi-calculator-DQD5_nE-.js +0 -214
- package/dist/_chunks/due-date-calculator-kf9U_g7O.js +0 -173
- package/dist/_chunks/marketplace-app-shell-DXHxy9dj.js +0 -295
- package/dist/_chunks/subDays-D-WYRpdW.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-
|
|
3004
|
-
de: () => import("./de-
|
|
3005
|
-
es: () => import("./es-
|
|
3006
|
-
fr: () => import("./fr-
|
|
3007
|
-
pt: () => import("./pt-
|
|
3008
|
-
nl: () => import("./nl-
|
|
3009
|
-
pl: () => import("./pl-
|
|
3010
|
-
ro: () => import("./ro-
|
|
3011
|
-
ru: () => import("./ru-
|
|
3012
|
-
sv: () => import("./sv-
|
|
3013
|
-
el: () => import("./el-
|
|
3014
|
-
ja: () => import("./ja-
|
|
3015
|
-
zh: () => import("./zh-CN-
|
|
3016
|
-
hi: () => import("./hi-
|
|
3017
|
-
ar: () => import("./ar-
|
|
3018
|
-
tr: () => import("./tr-
|
|
3019
|
-
sq: () => import("./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];
|
|
@@ -3152,12 +3152,12 @@ export {
|
|
|
3152
3152
|
Qn as f,
|
|
3153
3153
|
zo as g,
|
|
3154
3154
|
Kn as h,
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
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-
|
|
3174
|
+
//# sourceMappingURL=react-day-picker-CdtIiKjx.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as H } from "react-i18next";
|
|
|
5
5
|
import { u as W } from "./registry-nPAVE19X.js";
|
|
6
6
|
import { R as N } from "./rating-BRD7O74e.js";
|
|
7
7
|
import { C as A } from "./card-DPmk26CL.js";
|
|
8
|
-
import { C as X, b as Y, a as Z } from "./collapsible-
|
|
8
|
+
import { C as X, b as Y, a as Z } from "./collapsible-X3oaLPU3.js";
|
|
9
9
|
import { D as l } from "./description-list-BEbK2g93.js";
|
|
10
10
|
import { E as ee } from "./empty-state-BLy7tigq.js";
|
|
11
11
|
import { S as T } from "./skeleton-CZbwyJAA.js";
|
|
@@ -533,4 +533,4 @@ export {
|
|
|
533
533
|
oe as R,
|
|
534
534
|
re as r
|
|
535
535
|
};
|
|
536
|
-
//# sourceMappingURL=reviews-panel-
|
|
536
|
+
//# sourceMappingURL=reviews-panel-CPrXu5TX.js.map
|