@alfadocs/ui-kit-debug 1.28.0 → 1.28.1
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/{calendar-workspace-Cs4hNB40.js → calendar-workspace-a84AHQwj.js} +2 -2
- package/dist/_chunks/{calendar-workspace-Cs4hNB40.js.map → calendar-workspace-a84AHQwj.js.map} +1 -1
- package/dist/_chunks/signature-status-chip-T5fyS-k9.js +196 -0
- package/dist/_chunks/signature-status-chip-T5fyS-k9.js.map +1 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/signature-status-chip/index.js +1 -1
- package/dist/components/signature-status-chip/signature-status-chip.d.ts.map +1 -1
- package/dist/i18n/locales/ar.d.ts +1 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +1 -0
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +1 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +1 -0
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +1 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +1 -0
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +1 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +1 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +1 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +1 -0
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +1 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +1 -0
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +1 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +1 -0
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +1 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +1 -0
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +1 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +1 -0
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +1 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +1 -0
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +1 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +1 -0
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +1 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +1 -0
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +1 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +1 -0
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +1 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +1 -0
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +1 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +1 -0
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +1 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +1 -0
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +1 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +1 -0
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +1 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +1 -0
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/locales/ar.json +1 -0
- package/dist/locales/de.json +1 -0
- package/dist/locales/el.json +1 -0
- package/dist/locales/en.json +1 -0
- package/dist/locales/es.json +1 -0
- package/dist/locales/fr.json +1 -0
- package/dist/locales/hi.json +1 -0
- package/dist/locales/it.json +1 -0
- package/dist/locales/ja.json +1 -0
- package/dist/locales/nl.json +1 -0
- package/dist/locales/pl.json +1 -0
- package/dist/locales/pt.json +1 -0
- package/dist/locales/ro.json +1 -0
- package/dist/locales/ru.json +1 -0
- package/dist/locales/sq.json +1 -0
- package/dist/locales/sv.json +1 -0
- package/dist/locales/tr.json +1 -0
- package/dist/locales/zh.json +1 -0
- package/dist/patterns/calendar/index.js +1 -1
- package/package.json +1 -1
- package/dist/_chunks/signature-status-chip-BSatI_Qc.js +0 -179
- package/dist/_chunks/signature-status-chip-BSatI_Qc.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -211,7 +211,7 @@ import { R as hf, r as Of, w as Ff } from "./_chunks/rich-text-editor-lSCiE0Zz.j
|
|
|
211
211
|
import { E as Mf } from "./_chunks/editor-overlay-DEc5yYwo.js";
|
|
212
212
|
import { S as kf, s as Bf } from "./_chunks/signature-capture-D6ut9_IR.js";
|
|
213
213
|
import { S as vf, s as Hf } from "./_chunks/signature-field-0rFODJlW.js";
|
|
214
|
-
import { S as Uf, e as Vf, s as Wf } from "./_chunks/signature-status-chip-
|
|
214
|
+
import { S as Uf, e as Vf, s as Wf } from "./_chunks/signature-status-chip-T5fyS-k9.js";
|
|
215
215
|
import { S as Yf, s as Xf } from "./_chunks/sign-document-jF4fZDJ5.js";
|
|
216
216
|
import { S as zf, f as jf, i as Qf, s as Jf } from "./_chunks/slot-grid-BuZOKfcd.js";
|
|
217
217
|
import { A as $f, F as ag, a as eg, b as sg, c as rg, d as og, e as tg, I as ng, f as ig, g as pg, h as mg, i as lg, j as dg, k as Ag, l as cg, m as fg, n as gg, o as Sg, p as Cg, q as Tg, r as xg, s as ug, t as Pg, u as Ig } from "./_chunks/face-scheme-DA2vjqaM.js";
|
|
@@ -223,7 +223,7 @@ import { W as GS, a as vS } from "./_chunks/whatsapp-button-Ai4YAVkl.js";
|
|
|
223
223
|
import { C as wS, W as US, a as VS, b as WS, c as KS, i as YS, l as XS, m as qS, r as zS, w as jS, d as QS, e as JS, f as ZS } from "./_chunks/workflow-map-dNzJjBWG.js";
|
|
224
224
|
import { A as aC, a as eC, b as sC, c as rC } from "./_chunks/alia-sidebar-BWcWZivN.js";
|
|
225
225
|
import { A as tC, a as nC, L as iC, P as pC, S as mC, T as lC, b as dC, c as AC, d as cC, e as fC, f as gC, g as SC, h as CC, i as TC, j as xC, k as uC, l as PC, m as IC, n as EC, o as RC, p as _C, r as bC, q as NC, s as DC, t as hC, u as OC } from "./_chunks/anamnesis-summary-rows-DwjqZgR5.js";
|
|
226
|
-
import { C as LC, a as MC, b as yC, D as kC, c as BC, S as GC, V as vC, W as HC, d as wC, i as UC, m as VC, r as WC, u as KC, e as YC, f as XC } from "./_chunks/calendar-workspace-
|
|
226
|
+
import { C as LC, a as MC, b as yC, D as kC, c as BC, S as GC, V as vC, W as HC, d as wC, i as UC, m as VC, r as WC, u as KC, e as YC, f as XC } from "./_chunks/calendar-workspace-a84AHQwj.js";
|
|
227
227
|
import { C as zC, M as jC, P as QC } from "./_chunks/marketplace-app-shell-C4AjQmvz.js";
|
|
228
228
|
import { P as ZC } from "./_chunks/payment-automation-upsell-DwQW2fRp.js";
|
|
229
229
|
import { S as aT } from "./_chunks/signature-request-C-IsbkPf.js";
|
package/dist/locales/ar.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "تم التوقيع",
|
|
2870
2870
|
"unsigned": "لم يتم التوقيع",
|
|
2871
2871
|
"notRequired": "لا يلزم توقيع",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "توقيع المشغّل مفقود",
|
|
2873
2874
|
"missingPatient": "توقيع المريض مفقود",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/de.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "Unterschrieben",
|
|
2870
2870
|
"unsigned": "Nicht unterschrieben",
|
|
2871
2871
|
"notRequired": "Keine Unterschrift erforderlich",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "Unterschrift des Operators fehlt",
|
|
2873
2874
|
"missingPatient": "Unterschrift des Patienten fehlt",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/el.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "Υπογεγραμμένο",
|
|
2870
2870
|
"unsigned": "Χωρίς υπογραφή",
|
|
2871
2871
|
"notRequired": "Δεν απαιτείται υπογραφή",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "Λείπει η υπογραφή του χειριστή",
|
|
2873
2874
|
"missingPatient": "Λείπει η υπογραφή του ασθενούς",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/en.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "Signed",
|
|
2870
2870
|
"unsigned": "Not signed",
|
|
2871
2871
|
"notRequired": "No signature required",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "Operator signature missing",
|
|
2873
2874
|
"missingPatient": "Patient signature missing",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/es.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "Firmado",
|
|
2870
2870
|
"unsigned": "Sin firmar",
|
|
2871
2871
|
"notRequired": "No se requiere firma",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "Falta la firma del operador",
|
|
2873
2874
|
"missingPatient": "Falta la firma del paciente",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/fr.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "Signé",
|
|
2870
2870
|
"unsigned": "Non signé",
|
|
2871
2871
|
"notRequired": "Aucune signature requise",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "Signature de l’opérateur manquante",
|
|
2873
2874
|
"missingPatient": "Signature du patient manquante",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/hi.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "हस्ताक्षरित",
|
|
2870
2870
|
"unsigned": "हस्ताक्षर नहीं हुए",
|
|
2871
2871
|
"notRequired": "हस्ताक्षर आवश्यक नहीं",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "ऑपरेटर के हस्ताक्षर नहीं हुए",
|
|
2873
2874
|
"missingPatient": "रोगी के हस्ताक्षर नहीं हुए",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/it.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "Firmata",
|
|
2870
2870
|
"unsigned": "Non firmata",
|
|
2871
2871
|
"notRequired": "Firma non richiesta",
|
|
2872
|
+
"partial": "Parzialmente firmata",
|
|
2872
2873
|
"missingOperator": "Manca la firma dell’operatore",
|
|
2873
2874
|
"missingPatient": "Manca la firma del paziente",
|
|
2874
2875
|
"missingSecondary": "Manca la firma del secondo firmatario",
|
package/dist/locales/ja.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "署名済み",
|
|
2870
2870
|
"unsigned": "未署名",
|
|
2871
2871
|
"notRequired": "署名不要",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "オペレーターの署名がありません",
|
|
2873
2874
|
"missingPatient": "患者の署名がありません",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/nl.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "Ondertekend",
|
|
2870
2870
|
"unsigned": "Niet ondertekend",
|
|
2871
2871
|
"notRequired": "Geen handtekening vereist",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "Handtekening van de operator ontbreekt",
|
|
2873
2874
|
"missingPatient": "Handtekening van de patiënt ontbreekt",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/pl.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "Podpisano",
|
|
2870
2870
|
"unsigned": "Niepodpisano",
|
|
2871
2871
|
"notRequired": "Podpis niewymagany",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "Brak podpisu operatora",
|
|
2873
2874
|
"missingPatient": "Brak podpisu pacjenta",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/pt.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "Assinado",
|
|
2870
2870
|
"unsigned": "Não assinado",
|
|
2871
2871
|
"notRequired": "Assinatura não necessária",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "Falta a assinatura do operador",
|
|
2873
2874
|
"missingPatient": "Falta a assinatura do paciente",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/ro.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "Semnat",
|
|
2870
2870
|
"unsigned": "Nesemnat",
|
|
2871
2871
|
"notRequired": "Nu este necesară semnătura",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "Lipsește semnătura operatorului",
|
|
2873
2874
|
"missingPatient": "Lipsește semnătura pacientului",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/ru.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "Подписано",
|
|
2870
2870
|
"unsigned": "Не подписано",
|
|
2871
2871
|
"notRequired": "Подпись не требуется",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "Отсутствует подпись оператора",
|
|
2873
2874
|
"missingPatient": "Отсутствует подпись пациента",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/sq.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "Nënshkruar",
|
|
2870
2870
|
"unsigned": "Pa nënshkrim",
|
|
2871
2871
|
"notRequired": "Nuk kërkohet nënshkrim",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "Mungon nënshkrimi i operatorit",
|
|
2873
2874
|
"missingPatient": "Mungon nënshkrimi i pacientit",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/sv.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "Signerad",
|
|
2870
2870
|
"unsigned": "Inte signerad",
|
|
2871
2871
|
"notRequired": "Ingen signatur krävs",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "Behandlarens signatur saknas",
|
|
2873
2874
|
"missingPatient": "Patientens signatur saknas",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/tr.json
CHANGED
|
@@ -2869,6 +2869,7 @@
|
|
|
2869
2869
|
"signed": "İmzalandı",
|
|
2870
2870
|
"unsigned": "İmzalanmadı",
|
|
2871
2871
|
"notRequired": "İmza gerekmiyor",
|
|
2872
|
+
"partial": "Partially signed",
|
|
2872
2873
|
"missingOperator": "Operatör imzası eksik",
|
|
2873
2874
|
"missingPatient": "Hasta imzası eksik",
|
|
2874
2875
|
"missingSecondary": "Second signee signature missing",
|
package/dist/locales/zh.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as s, a as r, b as E, D as P, c as t, S, V as A, W as C, d, i as o, m as D, r as i, u as n, e as W, f as _ } from "../../_chunks/calendar-workspace-
|
|
1
|
+
import { C as s, a as r, b as E, D as P, c as t, S, V as A, W as C, d, i as o, m as D, r as i, u as n, e as W, f as _ } from "../../_chunks/calendar-workspace-a84AHQwj.js";
|
|
2
2
|
export {
|
|
3
3
|
s as CALENDAR_PREFERENCE_KEYS,
|
|
4
4
|
r as CalendarDataProvider,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit-debug",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe. (debug build — identical runtime to @alfadocs/ui-kit, ships source maps for symbolication).",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { jsx as D } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as P } from "react";
|
|
3
|
-
import { useTranslation as M } from "react-i18next";
|
|
4
|
-
import { B as K } from "./badge-sTusUqZD.js";
|
|
5
|
-
import { T as Y } from "./tooltip-DvmfrNvB.js";
|
|
6
|
-
function E(e) {
|
|
7
|
-
if (!e || typeof e == "string") return [];
|
|
8
|
-
const i = e.signedBy;
|
|
9
|
-
return i ? Array.isArray(i) ? i : [i] : [];
|
|
10
|
-
}
|
|
11
|
-
function u(e, i) {
|
|
12
|
-
if (e === "notRequired") return "notRequired";
|
|
13
|
-
const r = E(i).filter((t) => t.standing);
|
|
14
|
-
return r.length === 0 ? e : r.every((t) => t.standing === "signed") ? "signed" : "pending";
|
|
15
|
-
}
|
|
16
|
-
function z(e, i, r = "notRequired", t) {
|
|
17
|
-
const o = [
|
|
18
|
-
u(e, t == null ? void 0 : t.operator),
|
|
19
|
-
u(i, t == null ? void 0 : t.patient),
|
|
20
|
-
u(r, t == null ? void 0 : t.secondary)
|
|
21
|
-
].filter((d) => d !== "notRequired");
|
|
22
|
-
if (o.length === 0) return "notRequired";
|
|
23
|
-
const c = o.filter((d) => d === "signed").length;
|
|
24
|
-
return c === 0 ? "unsigned" : c === o.length ? "signed" : "partial";
|
|
25
|
-
}
|
|
26
|
-
const H = {
|
|
27
|
-
// Traffic light: green when everyone required has signed, amber when at
|
|
28
|
-
// least one party is still missing, red when nobody has.
|
|
29
|
-
signed: "success",
|
|
30
|
-
partial: "warning",
|
|
31
|
-
unsigned: "error",
|
|
32
|
-
notRequired: "neutral"
|
|
33
|
-
}, J = {
|
|
34
|
-
operator: "Operator",
|
|
35
|
-
patient: "Patient",
|
|
36
|
-
secondary: "Second signee"
|
|
37
|
-
}, Q = {
|
|
38
|
-
signed: "signed",
|
|
39
|
-
pending: "pending"
|
|
40
|
-
}, W = {
|
|
41
|
-
operator: "signatureStatusChip.missingOperator",
|
|
42
|
-
patient: "signatureStatusChip.missingPatient",
|
|
43
|
-
secondary: "signatureStatusChip.missingSecondary"
|
|
44
|
-
}, X = {
|
|
45
|
-
operator: "Operator signature missing",
|
|
46
|
-
patient: "Patient signature missing",
|
|
47
|
-
secondary: "Second signee signature missing"
|
|
48
|
-
};
|
|
49
|
-
function S(e) {
|
|
50
|
-
return `${e}`;
|
|
51
|
-
}
|
|
52
|
-
function Z(e, i, r) {
|
|
53
|
-
const t = [];
|
|
54
|
-
return e !== "notRequired" && t.push({ role: "operator", standing: e }), i !== "notRequired" && t.push({ role: "patient", standing: i }), r !== "notRequired" && t.push({ role: "secondary", standing: r }), t;
|
|
55
|
-
}
|
|
56
|
-
const tt = P(
|
|
57
|
-
({
|
|
58
|
-
operator: e,
|
|
59
|
-
patient: i,
|
|
60
|
-
secondary: r = "notRequired",
|
|
61
|
-
names: t,
|
|
62
|
-
size: o = "md",
|
|
63
|
-
detail: c = !1,
|
|
64
|
-
tooltip: d = !1,
|
|
65
|
-
id: w,
|
|
66
|
-
className: V,
|
|
67
|
-
"aria-label": _,
|
|
68
|
-
title: m,
|
|
69
|
-
...U
|
|
70
|
-
}, x) => {
|
|
71
|
-
const { t: n } = M(), y = z(e, i, r, t), N = Z(
|
|
72
|
-
u(e, t == null ? void 0 : t.operator),
|
|
73
|
-
u(i, t == null ? void 0 : t.patient),
|
|
74
|
-
u(r, t == null ? void 0 : t.secondary)
|
|
75
|
-
), l = (() => {
|
|
76
|
-
switch (y) {
|
|
77
|
-
case "signed":
|
|
78
|
-
return n("signatureStatusChip.signed", { defaultValue: "Signed" });
|
|
79
|
-
case "unsigned":
|
|
80
|
-
return n("signatureStatusChip.unsigned", {
|
|
81
|
-
defaultValue: "Not signed"
|
|
82
|
-
});
|
|
83
|
-
case "notRequired":
|
|
84
|
-
return n("signatureStatusChip.notRequired", {
|
|
85
|
-
defaultValue: "No signature required"
|
|
86
|
-
});
|
|
87
|
-
case "partial": {
|
|
88
|
-
const p = N.filter((a) => a.standing === "pending");
|
|
89
|
-
if (p.length === 1) {
|
|
90
|
-
const a = p[0].role;
|
|
91
|
-
return n(W[a], {
|
|
92
|
-
defaultValue: X[a]
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
return n("signatureStatusChip.missingCount", {
|
|
96
|
-
defaultValue: "{{count}} signatures missing",
|
|
97
|
-
count: p.length
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
})(), T = (p) => N.map(({ role: a, standing: b }) => {
|
|
102
|
-
const C = n(`signatureStatusChip.party.${a}`, {
|
|
103
|
-
defaultValue: J[a]
|
|
104
|
-
}), B = n(`signatureStatusChip.state.${b}`, {
|
|
105
|
-
defaultValue: Q[b]
|
|
106
|
-
}), h = p ? t == null ? void 0 : t[a] : void 0;
|
|
107
|
-
if (!h)
|
|
108
|
-
return n("signatureStatusChip.breakdownItem", {
|
|
109
|
-
defaultValue: "{{party}} {{state}}",
|
|
110
|
-
party: C,
|
|
111
|
-
state: B
|
|
112
|
-
});
|
|
113
|
-
const R = typeof h == "string" ? { name: h } : h, q = E(R);
|
|
114
|
-
if (q.length > 0) {
|
|
115
|
-
const L = (s) => s.relationship ? n("signatureStatusChip.representative", {
|
|
116
|
-
defaultValue: "{{name}} ({{relationship}})",
|
|
117
|
-
name: S(s.name),
|
|
118
|
-
relationship: s.relationship
|
|
119
|
-
}) : S(s.name), $ = (s) => s.standing ?? b, j = q.filter((s) => $(s) === "signed"), k = q.filter((s) => $(s) === "pending"), v = [];
|
|
120
|
-
return j.length > 0 && v.push(
|
|
121
|
-
n("signatureStatusChip.signedByList", {
|
|
122
|
-
defaultValue: "signed by {{signers}}",
|
|
123
|
-
signers: j.map(L).join(", ")
|
|
124
|
-
})
|
|
125
|
-
), k.length > 0 && v.push(
|
|
126
|
-
n("signatureStatusChip.awaitingList", {
|
|
127
|
-
defaultValue: "awaiting {{signers}}",
|
|
128
|
-
signers: k.map(L).join(", ")
|
|
129
|
-
})
|
|
130
|
-
), n("signatureStatusChip.breakdownItemOnBehalf", {
|
|
131
|
-
defaultValue: "{{party}}: {{name}}, {{detail}}",
|
|
132
|
-
party: C,
|
|
133
|
-
name: S(R.name),
|
|
134
|
-
detail: v.join(", ")
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
return n("signatureStatusChip.breakdownItemNamed", {
|
|
138
|
-
defaultValue: "{{party}}: {{name}} ({{state}})",
|
|
139
|
-
party: C,
|
|
140
|
-
name: S(R.name),
|
|
141
|
-
state: B
|
|
142
|
-
});
|
|
143
|
-
}).join(" · "), f = T(!0), I = T(!1), F = f ? `${l}, ${f}` : l, G = c && I ? `${l} · ${I}` : l, g = d && f.length > 0, A = _ ?? (g ? l : F), O = /* @__PURE__ */ D(
|
|
144
|
-
K,
|
|
145
|
-
{
|
|
146
|
-
ref: x,
|
|
147
|
-
variant: H[y],
|
|
148
|
-
size: o,
|
|
149
|
-
withDot: !0,
|
|
150
|
-
role: "img",
|
|
151
|
-
"aria-label": A,
|
|
152
|
-
title: g ? m : m ?? A,
|
|
153
|
-
tabIndex: g ? 0 : void 0,
|
|
154
|
-
"data-component": "signature-status-chip",
|
|
155
|
-
"data-status": y,
|
|
156
|
-
"data-component-id": w,
|
|
157
|
-
id: w,
|
|
158
|
-
className: g ? [
|
|
159
|
-
"ds:rounded-[var(--radius-full)]",
|
|
160
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
161
|
-
"ds:focus-visible:outline-solid",
|
|
162
|
-
"ds:focus-visible:outline-ring",
|
|
163
|
-
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
164
|
-
V
|
|
165
|
-
].filter(Boolean).join(" ") : V,
|
|
166
|
-
...U,
|
|
167
|
-
children: G
|
|
168
|
-
}
|
|
169
|
-
);
|
|
170
|
-
return g ? /* @__PURE__ */ D(Y, { label: f, children: O }) : O;
|
|
171
|
-
}
|
|
172
|
-
);
|
|
173
|
-
tt.displayName = "SignatureStatusChip";
|
|
174
|
-
export {
|
|
175
|
-
tt as S,
|
|
176
|
-
u as e,
|
|
177
|
-
z as s
|
|
178
|
-
};
|
|
179
|
-
//# sourceMappingURL=signature-status-chip-BSatI_Qc.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signature-status-chip-BSatI_Qc.js","sources":["../../src/components/signature-status-chip/signature-status-chip.tsx"],"sourcesContent":["import { forwardRef, type HTMLAttributes } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Badge, type BadgeProps } from '../badge';\nimport { Tooltip } from '../tooltip';\n\n/* ------------------------------------------------------------------ */\n/* State vocabulary */\n/* ------------------------------------------------------------------ */\n\n/** One party's standing on the document. */\nexport type SignatureParty = 'signed' | 'pending' | 'notRequired';\n\n/** The chip's derived state. */\nexport type SignatureStatus = 'signed' | 'partial' | 'unsigned' | 'notRequired';\n\n/**\n * The parties a document can require. `secondary` is the second signee on a\n * two-signee envelope (platform: `secondary_signee_id`) — a guardian, parent\n * or co-signer. It is optional: a document that does not need one leaves it\n * `notRequired`, which is the default.\n */\nexport type SignatureRole = 'operator' | 'patient' | 'secondary';\n\ntype RequiredStanding = Exclude<SignatureParty, 'notRequired'>;\n\n/**\n * Who a party is, and — when they cannot sign for themselves — who signs in\n * their place. A minor, or an adult who lacks capacity, is still the party\n * the document is about; the parent, guardian or legal representative signs\n * on their behalf. The standing (`signed` / `pending`) stays on the party,\n * because it is their signature slot that is being filled.\n */\nexport interface SignerRepresentative {\n /** The representative's display name. */\n name: string;\n /**\n * Already-translated relationship to the party, e.g. \"Mother\",\n * \"Legal guardian\". Same contract as `SignerRoster.relationship` — the\n * host translates it, because the set is open.\n */\n relationship?: string;\n /**\n * This representative's own standing. Supply it when representatives can\n * be at different stages — both parents must consent and only one has\n * signed. Omit it and the representative inherits the party's standing,\n * which is the right default when a single person signs.\n */\n standing?: Exclude<SignatureParty, 'notRequired'>;\n}\n\nexport interface SignerIdentity {\n /** The party's own display name. */\n name: string;\n /**\n * Who signs in this party's place, when the party cannot sign for\n * themselves. One representative for the ordinary guardian case; several\n * where every one of them must sign — both parents consenting for a minor,\n * where the minor never signs at all.\n *\n * When representatives carry their own `standing`, they become the source\n * of truth for this party: the slot is `signed` only once every one of\n * them has signed. Pass the same values to {@link signatureStatusOf} so\n * host-side filtering agrees with the chip.\n */\n signedBy?: SignerRepresentative | SignerRepresentative[];\n}\n\n/** Normalise the one-or-many representative shape to a list. */\nfunction representativesOf(\n identity: string | SignerIdentity | undefined,\n): SignerRepresentative[] {\n if (!identity || typeof identity === 'string') return [];\n const by = identity.signedBy;\n if (!by) return [];\n return Array.isArray(by) ? by : [by];\n}\n\n/**\n * A party's effective standing. Representatives that carry their own\n * `standing` override the party value, because they are the signatures that\n * actually have to land: every one of them must sign before the slot is\n * complete.\n */\nexport function effectiveStanding(\n party: SignatureParty,\n identity?: string | SignerIdentity,\n): SignatureParty {\n if (party === 'notRequired') return 'notRequired';\n const reps = representativesOf(identity).filter((r) => r.standing);\n if (reps.length === 0) return party;\n return reps.every((r) => r.standing === 'signed') ? 'signed' : 'pending';\n}\n\n/**\n * Display names for the signers, when the host has them and chooses to show\n * them. A bare string is the common case; pass a {@link SignerIdentity} where\n * someone signs on the party's behalf.\n */\nexport type SignatureSignerNames = Partial<\n Record<SignatureRole, string | SignerIdentity>\n>;\n\n/**\n * The rule, exported so hosts can sort/filter by the same state the chip\n * shows: required = parties not `notRequired`; all signed → `signed`, some\n * signed → `partial`, none signed → `unsigned`, nobody required → `notRequired`.\n *\n * `secondary` is optional and defaults to `notRequired`, so existing\n * two-argument calls keep their exact meaning.\n */\nexport function signatureStatusOf(\n operator: SignatureParty,\n patient: SignatureParty,\n secondary: SignatureParty = 'notRequired',\n names?: SignatureSignerNames,\n): SignatureStatus {\n const required = [\n effectiveStanding(operator, names?.operator),\n effectiveStanding(patient, names?.patient),\n effectiveStanding(secondary, names?.secondary),\n ].filter((p) => p !== 'notRequired');\n if (required.length === 0) return 'notRequired';\n const signed = required.filter((p) => p === 'signed').length;\n if (signed === 0) return 'unsigned';\n return signed === required.length ? 'signed' : 'partial';\n}\n\n// `partial` shares the warning tone with `unsigned` so a half-signed document\n// never reads as done at a glance — only a fully signed one goes green.\nconst STATUS_VARIANT: Record<\n SignatureStatus,\n NonNullable<BadgeProps['variant']>\n> = {\n // Traffic light: green when everyone required has signed, amber when at\n // least one party is still missing, red when nobody has.\n signed: 'success',\n partial: 'warning',\n unsigned: 'error',\n notRequired: 'neutral',\n};\n\nconst ROLE_DEFAULT: Record<SignatureRole, string> = {\n operator: 'Operator',\n patient: 'Patient',\n secondary: 'Second signee',\n};\n\nconst STANDING_DEFAULT: Record<RequiredStanding, string> = {\n signed: 'signed',\n pending: 'pending',\n};\n\n// Flat keys, matching the shipped bundles. i18next splits on '.', so a\n// nested `missing.operator` alongside the existing flat keys would risk a\n// lookup collision — and renaming them would break any host override.\nconst MISSING_KEY: Record<SignatureRole, string> = {\n operator: 'signatureStatusChip.missingOperator',\n patient: 'signatureStatusChip.missingPatient',\n secondary: 'signatureStatusChip.missingSecondary',\n};\n\nconst MISSING_DEFAULT: Record<SignatureRole, string> = {\n operator: 'Operator signature missing',\n patient: 'Patient signature missing',\n secondary: 'Second signee signature missing',\n};\n\n/**\n * Wrap host-supplied names in a Unicode first-strong isolate. Names arrive in\n * an unknown script and are interpolated into a translated frame — a Latin\n * name inside an Arabic sentence reorders the surrounding punctuation without\n * this. FSI … PDI is invisible, and assistive tech treats it as formatting.\n */\nfunction isolate(value: string): string {\n return `\\u2068${value}\\u2069`;\n}\n\nfunction requiredParties(\n operator: SignatureParty,\n patient: SignatureParty,\n secondary: SignatureParty,\n): Array<{ role: SignatureRole; standing: RequiredStanding }> {\n const out: Array<{ role: SignatureRole; standing: RequiredStanding }> = [];\n if (operator !== 'notRequired')\n out.push({ role: 'operator', standing: operator });\n if (patient !== 'notRequired')\n out.push({ role: 'patient', standing: patient });\n if (secondary !== 'notRequired')\n out.push({ role: 'secondary', standing: secondary });\n return out;\n}\n\n/* ------------------------------------------------------------------ */\n/* Props */\n/* ------------------------------------------------------------------ */\n\nexport interface SignatureStatusChipProps extends Omit<\n HTMLAttributes<HTMLSpanElement>,\n 'children'\n> {\n /** The operator's standing. */\n operator: SignatureParty;\n /** The patient's standing. */\n patient: SignatureParty;\n /**\n * The second signee's standing on a two-signee envelope — a guardian,\n * parent or co-signer. Defaults to `notRequired`, so a document with only\n * an operator and a patient behaves exactly as before.\n */\n secondary?: SignatureParty;\n /**\n * Display names for the signers, keyed by role. Supply them and the\n * breakdown reads \"Operator: Dr Rossi (signed)\" instead of \"Operator\n * signed\"; omit them and only the roles are named.\n *\n * A role may be a bare name, or a {@link SignerIdentity} when someone\n * signs on that party's behalf — a parent for a minor, a guardian for an\n * adult who lacks capacity. Then the row reads \"Patient: M. Bianchi,\n * signed by A. Bianchi (Parent)\".\n *\n * A name is shown in the chip's accessible name and its hover title, so\n * pass one only where the viewer is already entitled to see that person —\n * these are real people, and on the patient row usually a patient. Roles\n * with no name fall back to the role alone, so a partial map is fine.\n */\n names?: SignatureSignerNames;\n /** Chip height — maps onto the Badge `sm` / `md` sizes. */\n size?: 'sm' | 'md';\n /**\n * Spell the breakdown in the chip text (\"Signed · Operator signed · Patient\n * signed\") instead of the summary word. Default false — the breakdown is\n * always in the accessible name / title.\n */\n detail?: boolean;\n /**\n * Make the breakdown reachable by keyboard and touch, not only on hover.\n *\n * The chip becomes focusable and the breakdown moves out of the accessible\n * name into the kit's `Tooltip`, which exposes it as the accessible\n * description. Screen readers then hear the summary once and the detail\n * once, instead of the whole string twice.\n *\n * Off by default for two reasons. It adds a tab stop, and a table of forty\n * chips should not add forty; and it **requires a `TooltipProvider` above\n * it** — without one the kit's Tooltip throws. Turn it on where the\n * breakdown is something the user has to act on.\n */\n tooltip?: boolean;\n /** Agent-readiness consumer id, surfaced as `data-component-id`. */\n id?: string;\n}\n\n/* ------------------------------------------------------------------ */\n/* Component */\n/* ------------------------------------------------------------------ */\n\nexport const SignatureStatusChip = forwardRef<\n HTMLSpanElement,\n SignatureStatusChipProps\n>(\n (\n {\n operator,\n patient,\n secondary = 'notRequired',\n names,\n size = 'md',\n detail = false,\n tooltip = false,\n id,\n className,\n 'aria-label': ariaLabelProp,\n title: titleProp,\n ...rest\n },\n ref,\n ) => {\n const { t } = useTranslation();\n const status = signatureStatusOf(operator, patient, secondary, names);\n // Each party's standing is the effective one, so a slot held open by an\n // unsigned representative reads as pending here too.\n const parties = requiredParties(\n effectiveStanding(operator, names?.operator),\n effectiveStanding(patient, names?.patient),\n effectiveStanding(secondary, names?.secondary),\n );\n\n // When exactly one required party is outstanding the summary names it,\n // which is more use than a vague \"partially signed\". Two or more can be\n // outstanding once a second signee is in play, and then only the count\n // is worth the chip's width — the breakdown spells out the rest.\n const summary = (() => {\n switch (status) {\n case 'signed':\n return t('signatureStatusChip.signed', { defaultValue: 'Signed' });\n case 'unsigned':\n return t('signatureStatusChip.unsigned', {\n defaultValue: 'Not signed',\n });\n case 'notRequired':\n return t('signatureStatusChip.notRequired', {\n defaultValue: 'No signature required',\n });\n case 'partial': {\n const pending = parties.filter((p) => p.standing === 'pending');\n if (pending.length === 1) {\n const role = pending[0].role;\n return t(MISSING_KEY[role], {\n defaultValue: MISSING_DEFAULT[role],\n });\n }\n return t('signatureStatusChip.missingCount', {\n defaultValue: '{{count}} signatures missing',\n count: pending.length,\n });\n }\n }\n })();\n\n // Two breakdowns, deliberately. The chip is a pill: its visible text\n // names roles only, so it stays the length it was before names existed.\n // Names go where there is room for them — the tooltip, or the accessible\n // name when there is no tooltip. A named three-party chip spelled out\n // visibly ran to 138 characters, which is a paragraph, not a chip.\n const buildBreakdown = (withNames: boolean) =>\n parties\n .map(({ role, standing }) => {\n const roleLabel = t(`signatureStatusChip.party.${role}`, {\n defaultValue: ROLE_DEFAULT[role],\n });\n const state = t(`signatureStatusChip.state.${standing}`, {\n defaultValue: STANDING_DEFAULT[standing],\n });\n const identity = withNames ? names?.[role] : undefined;\n if (!identity) {\n return t('signatureStatusChip.breakdownItem', {\n defaultValue: '{{party}} {{state}}',\n party: roleLabel,\n state,\n });\n }\n\n const who =\n typeof identity === 'string' ? { name: identity } : identity;\n\n // Someone signs in the party's place — name the party AND whoever\n // fills their slot, so the reader can see both. Several can be\n // required at once: both parents consenting for a minor.\n const reps = representativesOf(who);\n if (reps.length > 0) {\n const render = (r: SignerRepresentative) =>\n r.relationship\n ? t('signatureStatusChip.representative', {\n defaultValue: '{{name}} ({{relationship}})',\n name: isolate(r.name),\n relationship: r.relationship,\n })\n : isolate(r.name);\n\n // A representative with no standing of its own follows the party.\n const standingOf = (r: SignerRepresentative) =>\n r.standing ?? standing;\n const signed = reps.filter((r) => standingOf(r) === 'signed');\n const awaiting = reps.filter((r) => standingOf(r) === 'pending');\n\n const clauses: string[] = [];\n if (signed.length > 0)\n clauses.push(\n t('signatureStatusChip.signedByList', {\n defaultValue: 'signed by {{signers}}',\n signers: signed.map(render).join(', '),\n }),\n );\n if (awaiting.length > 0)\n clauses.push(\n t('signatureStatusChip.awaitingList', {\n defaultValue: 'awaiting {{signers}}',\n signers: awaiting.map(render).join(', '),\n }),\n );\n\n return t('signatureStatusChip.breakdownItemOnBehalf', {\n defaultValue: '{{party}}: {{name}}, {{detail}}',\n party: roleLabel,\n name: isolate(who.name),\n detail: clauses.join(', '),\n });\n }\n\n return t('signatureStatusChip.breakdownItemNamed', {\n defaultValue: '{{party}}: {{name}} ({{state}})',\n party: roleLabel,\n name: isolate(who.name),\n state,\n });\n })\n .join(' · ');\n\n const breakdownNamed = buildBreakdown(true);\n const breakdownRoles = buildBreakdown(false);\n\n // The full picture always reaches AT and hover, even in the compact form.\n const label = breakdownNamed ? `${summary}, ${breakdownNamed}` : summary;\n // Visible text: roles only, never names.\n const visible =\n detail && breakdownRoles ? `${summary} · ${breakdownRoles}` : summary;\n\n // With a tooltip the breakdown becomes the accessible DESCRIPTION, so the\n // name carries only the summary — otherwise assistive tech reads the same\n // detail twice. Without one, the name has to carry everything, because\n // there is nowhere else for it to go.\n const useTooltip = tooltip && breakdownNamed.length > 0;\n const accessibleName = ariaLabelProp ?? (useTooltip ? summary : label);\n\n const chip = (\n <Badge\n ref={ref}\n variant={STATUS_VARIANT[status]}\n size={size}\n withDot\n role=\"img\"\n // One source of truth: an overridden aria-label also becomes the\n // hover text, so the two can never drift apart.\n aria-label={accessibleName}\n // A native title alongside a Tooltip shows two overlapping bubbles,\n // so the Tooltip takes over entirely when it is on.\n title={useTooltip ? titleProp : (titleProp ?? accessibleName)}\n tabIndex={useTooltip ? 0 : undefined}\n data-component=\"signature-status-chip\"\n data-status={status}\n data-component-id={id}\n id={id}\n className={\n useTooltip\n ? [\n 'ds:rounded-[var(--radius-full)]',\n 'ds:focus-visible:outline-[length:var(--focus-ring-width)]',\n 'ds:focus-visible:outline-solid',\n 'ds:focus-visible:outline-ring',\n 'ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]',\n className,\n ]\n .filter(Boolean)\n .join(' ')\n : className\n }\n {...rest}\n >\n {visible}\n </Badge>\n );\n\n if (!useTooltip) return chip;\n\n // Radix's Trigger clones this element, so the chip itself is the trigger:\n // one element, focusable, with the focus ring following the pill shape.\n return <Tooltip label={breakdownNamed}>{chip}</Tooltip>;\n },\n);\n\nSignatureStatusChip.displayName = 'SignatureStatusChip';\n"],"names":["representativesOf","identity","by","effectiveStanding","party","reps","r","signatureStatusOf","operator","patient","secondary","names","required","p","signed","STATUS_VARIANT","ROLE_DEFAULT","STANDING_DEFAULT","MISSING_KEY","MISSING_DEFAULT","isolate","value","requiredParties","out","SignatureStatusChip","forwardRef","size","detail","tooltip","id","className","ariaLabelProp","titleProp","rest","ref","t","useTranslation","status","parties","summary","pending","role","buildBreakdown","withNames","standing","roleLabel","state","who","render","standingOf","awaiting","clauses","breakdownNamed","breakdownRoles","label","visible","useTooltip","accessibleName","chip","jsx","Badge","Tooltip"],"mappings":";;;;;AAoEA,SAASA,EACPC,GACwB;AACxB,MAAI,CAACA,KAAY,OAAOA,KAAa,iBAAiB,CAAA;AACtD,QAAMC,IAAKD,EAAS;AACpB,SAAKC,IACE,MAAM,QAAQA,CAAE,IAAIA,IAAK,CAACA,CAAE,IADnB,CAAA;AAElB;AAQO,SAASC,EACdC,GACAH,GACgB;AAChB,MAAIG,MAAU,cAAe,QAAO;AACpC,QAAMC,IAAOL,EAAkBC,CAAQ,EAAE,OAAO,CAACK,MAAMA,EAAE,QAAQ;AACjE,SAAID,EAAK,WAAW,IAAUD,IACvBC,EAAK,MAAM,CAACC,MAAMA,EAAE,aAAa,QAAQ,IAAI,WAAW;AACjE;AAmBO,SAASC,EACdC,GACAC,GACAC,IAA4B,eAC5BC,GACiB;AACjB,QAAMC,IAAW;AAAA,IACfT,EAAkBK,GAAUG,KAAA,gBAAAA,EAAO,QAAQ;AAAA,IAC3CR,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