@alfadocs/ui-kit-debug 0.95.0 → 0.96.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 (103) hide show
  1. package/dist/_chunks/signature-request-BzXTV_RH.js +403 -0
  2. package/dist/_chunks/signature-request-BzXTV_RH.js.map +1 -0
  3. package/dist/agent-catalog.json +10 -6
  4. package/dist/agent-i18n/en.json +1 -1
  5. package/dist/i18n/locales/ar.d.ts +3 -1
  6. package/dist/i18n/locales/ar.d.ts.map +1 -1
  7. package/dist/i18n/locales/ar.js +3 -1
  8. package/dist/i18n/locales/ar.js.map +1 -1
  9. package/dist/i18n/locales/de.d.ts +3 -1
  10. package/dist/i18n/locales/de.d.ts.map +1 -1
  11. package/dist/i18n/locales/de.js +3 -1
  12. package/dist/i18n/locales/de.js.map +1 -1
  13. package/dist/i18n/locales/el.d.ts +3 -1
  14. package/dist/i18n/locales/el.d.ts.map +1 -1
  15. package/dist/i18n/locales/el.js +3 -1
  16. package/dist/i18n/locales/el.js.map +1 -1
  17. package/dist/i18n/locales/en.d.ts +3 -1
  18. package/dist/i18n/locales/en.d.ts.map +1 -1
  19. package/dist/i18n/locales/en.js +3 -1
  20. package/dist/i18n/locales/en.js.map +1 -1
  21. package/dist/i18n/locales/es.d.ts +3 -1
  22. package/dist/i18n/locales/es.d.ts.map +1 -1
  23. package/dist/i18n/locales/es.js +3 -1
  24. package/dist/i18n/locales/es.js.map +1 -1
  25. package/dist/i18n/locales/fr.d.ts +3 -1
  26. package/dist/i18n/locales/fr.d.ts.map +1 -1
  27. package/dist/i18n/locales/fr.js +3 -1
  28. package/dist/i18n/locales/fr.js.map +1 -1
  29. package/dist/i18n/locales/hi.d.ts +3 -1
  30. package/dist/i18n/locales/hi.d.ts.map +1 -1
  31. package/dist/i18n/locales/hi.js +3 -1
  32. package/dist/i18n/locales/hi.js.map +1 -1
  33. package/dist/i18n/locales/it.d.ts +3 -1
  34. package/dist/i18n/locales/it.d.ts.map +1 -1
  35. package/dist/i18n/locales/it.js +3 -1
  36. package/dist/i18n/locales/it.js.map +1 -1
  37. package/dist/i18n/locales/ja.d.ts +3 -1
  38. package/dist/i18n/locales/ja.d.ts.map +1 -1
  39. package/dist/i18n/locales/ja.js +3 -1
  40. package/dist/i18n/locales/ja.js.map +1 -1
  41. package/dist/i18n/locales/nl.d.ts +3 -1
  42. package/dist/i18n/locales/nl.d.ts.map +1 -1
  43. package/dist/i18n/locales/nl.js +3 -1
  44. package/dist/i18n/locales/nl.js.map +1 -1
  45. package/dist/i18n/locales/pl.d.ts +3 -1
  46. package/dist/i18n/locales/pl.d.ts.map +1 -1
  47. package/dist/i18n/locales/pl.js +3 -1
  48. package/dist/i18n/locales/pl.js.map +1 -1
  49. package/dist/i18n/locales/pt.d.ts +3 -1
  50. package/dist/i18n/locales/pt.d.ts.map +1 -1
  51. package/dist/i18n/locales/pt.js +3 -1
  52. package/dist/i18n/locales/pt.js.map +1 -1
  53. package/dist/i18n/locales/ro.d.ts +3 -1
  54. package/dist/i18n/locales/ro.d.ts.map +1 -1
  55. package/dist/i18n/locales/ro.js +3 -1
  56. package/dist/i18n/locales/ro.js.map +1 -1
  57. package/dist/i18n/locales/ru.d.ts +3 -1
  58. package/dist/i18n/locales/ru.d.ts.map +1 -1
  59. package/dist/i18n/locales/ru.js +3 -1
  60. package/dist/i18n/locales/ru.js.map +1 -1
  61. package/dist/i18n/locales/sq.d.ts +3 -1
  62. package/dist/i18n/locales/sq.d.ts.map +1 -1
  63. package/dist/i18n/locales/sq.js +3 -1
  64. package/dist/i18n/locales/sq.js.map +1 -1
  65. package/dist/i18n/locales/sv.d.ts +3 -1
  66. package/dist/i18n/locales/sv.d.ts.map +1 -1
  67. package/dist/i18n/locales/sv.js +3 -1
  68. package/dist/i18n/locales/sv.js.map +1 -1
  69. package/dist/i18n/locales/tr.d.ts +3 -1
  70. package/dist/i18n/locales/tr.d.ts.map +1 -1
  71. package/dist/i18n/locales/tr.js +3 -1
  72. package/dist/i18n/locales/tr.js.map +1 -1
  73. package/dist/i18n/locales/zh.d.ts +3 -1
  74. package/dist/i18n/locales/zh.d.ts.map +1 -1
  75. package/dist/i18n/locales/zh.js +3 -1
  76. package/dist/i18n/locales/zh.js.map +1 -1
  77. package/dist/index.js +1 -1
  78. package/dist/locales/ar.json +3 -1
  79. package/dist/locales/de.json +3 -1
  80. package/dist/locales/el.json +3 -1
  81. package/dist/locales/en.json +3 -1
  82. package/dist/locales/es.json +3 -1
  83. package/dist/locales/fr.json +3 -1
  84. package/dist/locales/hi.json +3 -1
  85. package/dist/locales/it.json +3 -1
  86. package/dist/locales/ja.json +3 -1
  87. package/dist/locales/nl.json +3 -1
  88. package/dist/locales/pl.json +3 -1
  89. package/dist/locales/pt.json +3 -1
  90. package/dist/locales/ro.json +3 -1
  91. package/dist/locales/ru.json +3 -1
  92. package/dist/locales/sq.json +3 -1
  93. package/dist/locales/sv.json +3 -1
  94. package/dist/locales/tr.json +3 -1
  95. package/dist/locales/zh.json +3 -1
  96. package/dist/patterns/signature-request/index.d.ts +1 -1
  97. package/dist/patterns/signature-request/index.d.ts.map +1 -1
  98. package/dist/patterns/signature-request/index.js +1 -1
  99. package/dist/patterns/signature-request/signature-request.d.ts +30 -3
  100. package/dist/patterns/signature-request/signature-request.d.ts.map +1 -1
  101. package/package.json +1 -1
  102. package/dist/_chunks/signature-request-D_6jgDZd.js +0 -324
  103. package/dist/_chunks/signature-request-D_6jgDZd.js.map +0 -1
@@ -0,0 +1,403 @@
1
+ import { jsx as a, jsxs as r } from "react/jsx-runtime";
2
+ import { forwardRef as pe, useRef as A, useState as S, useEffect as J } from "react";
3
+ import { useTranslation as ve } from "react-i18next";
4
+ import { D as m } from "./dialog-UbKJCi1X.js";
5
+ import { B as k } from "./button-CPGiR_bH.js";
6
+ import { I as ge } from "./icon-button-C_kbcd7I.js";
7
+ import { C as K } from "./checkbox-BuZ1u__2.js";
8
+ import { a as fe } from "./whatsapp-button-BIy6NaJK.js";
9
+ import { S as Q } from "./select-BW5ecXlX.js";
10
+ import { S as xe } from "./switch-OILsBLWo.js";
11
+ import { A as y } from "./alert-Cxaqd-QO.js";
12
+ import { I as Re } from "./info-tip-Bxk3w6UM.js";
13
+ import { S as be } from "./separator-CYU_bGFn.js";
14
+ import { A as Y } from "./avatar-BNQNhoyL.js";
15
+ import { c as ae } from "./createLucideIcon-DhHxpK9K.js";
16
+ import { P as qe } from "./plus-DzMQ_c6b.js";
17
+ import { X as Ne } from "./x-B5YnXwCz.js";
18
+ import { P as we } from "./pen-line-D0De5zdl.js";
19
+ import { M as Ce } from "./mail-BqXVF2zH.js";
20
+ import { M as Ie } from "./message-square-Bye4ATvx.js";
21
+ /**
22
+ * @license lucide-react v1.22.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */
27
+ const Se = [
28
+ ["rect", { width: "16", height: "20", x: "4", y: "2", rx: "2", ry: "2", key: "76otgf" }],
29
+ ["line", { x1: "12", x2: "12.01", y1: "18", y2: "18", key: "1dp563" }]
30
+ ], ke = ae("tablet", Se);
31
+ /**
32
+ * @license lucide-react v1.22.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */
37
+ const ye = [
38
+ ["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
39
+ ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
40
+ ["line", { x1: "19", x2: "19", y1: "8", y2: "14", key: "1bvyxn" }],
41
+ ["line", { x1: "22", x2: "16", y1: "11", y2: "11", key: "1shjgl" }]
42
+ ], ze = ae("user-plus", ye), v = "__assign-later__", Z = [
43
+ "sms",
44
+ "email",
45
+ "whatsapp",
46
+ "on-device"
47
+ ];
48
+ function ee(h, z) {
49
+ var c;
50
+ return ((c = h.find((o) => o.value === z)) == null ? void 0 : c.label) ?? "";
51
+ }
52
+ const Oe = pe(
53
+ ({
54
+ open: h,
55
+ onOpenChange: z,
56
+ operators: c,
57
+ signerOptions: o,
58
+ currentOperatorId: O,
59
+ allowAssignLater: _ = !0,
60
+ initialOperatorId: B,
61
+ initialOperatorChannel: L,
62
+ initialSigners: D,
63
+ maxSigners: se = 2,
64
+ busy: i = !1,
65
+ error: j,
66
+ title: ne,
67
+ description: te,
68
+ onRequestSignature: le,
69
+ contentProps: re
70
+ }, ie) => {
71
+ const { t: n } = ve(), E = A(0), F = A(null), H = (e) => {
72
+ var l;
73
+ const s = (l = o.find(
74
+ (d) => d.value === e
75
+ )) == null ? void 0 : l.availableChannels;
76
+ return s && s.length > 0 ? Z.filter((d) => s.includes(d)) : Z;
77
+ }, M = (e, s) => {
78
+ const l = H(e);
79
+ return l.includes(s) ? s : l[0];
80
+ }, U = () => {
81
+ var e, s;
82
+ return B === null ? _ ? v : ((e = c[0]) == null ? void 0 : e.value) ?? v : B ?? ((s = c[0]) == null ? void 0 : s.value) ?? (_ ? v : "");
83
+ }, V = () => (D && D.length > 0 ? D : o.length > 0 ? [
84
+ {
85
+ signerId: o[0].value,
86
+ channel: M(o[0].value, "on-device")
87
+ }
88
+ ] : []).map((s) => ({ ...s, rowId: E.current++ })), g = (e) => {
89
+ var s;
90
+ return ((s = c.find((l) => l.value === e)) == null ? void 0 : s.defaultChannel) ?? "email";
91
+ }, W = (e, s) => L === "on-device" ? s.some((l) => l.channel === "on-device") ? "on-device" : g(e) : L ?? g(e), [p, T] = S(U), [u, b] = S(V), [q, f] = S(
92
+ () => W(p, u)
93
+ ), [G, x] = S(null), X = A(h);
94
+ J(() => {
95
+ if (h && !X.current) {
96
+ const e = U(), s = V();
97
+ T(e), b(s), f(W(e, s)), x(null);
98
+ }
99
+ X.current = h;
100
+ }, [h]);
101
+ const N = u.some(
102
+ (e) => e.channel === "on-device"
103
+ );
104
+ J(() => {
105
+ if (q === "on-device" && !N) {
106
+ const e = g(p);
107
+ f(e), x(e);
108
+ }
109
+ }, [q, N, p]);
110
+ const de = _ ? [
111
+ ...c,
112
+ { value: v, label: n("signatureRequest.assignLater") }
113
+ ] : c, w = p === v, R = {
114
+ sms: {
115
+ label: n("signatureRequest.viaSms"),
116
+ icon: /* @__PURE__ */ a(Ie, { className: "ds:size-4", "aria-hidden": !0 })
117
+ },
118
+ email: {
119
+ label: n("signatureRequest.viaEmail"),
120
+ icon: /* @__PURE__ */ a(Ce, { className: "ds:size-4", "aria-hidden": !0 })
121
+ },
122
+ whatsapp: {
123
+ label: n("signatureRequest.viaWhatsapp"),
124
+ icon: /* @__PURE__ */ a(fe, { className: "ds:size-4", "aria-hidden": !0 })
125
+ },
126
+ "on-device": {
127
+ label: n("signatureRequest.onThisDevice"),
128
+ icon: /* @__PURE__ */ a(ke, { className: "ds:size-4", "aria-hidden": !0 })
129
+ }
130
+ }, ce = [
131
+ { value: "sms", ...R.sms },
132
+ { value: "email", ...R.email },
133
+ {
134
+ value: "on-device",
135
+ ...R["on-device"],
136
+ disabled: !N,
137
+ hint: N ? void 0 : n("signatureRequest.onDeviceUnavailableHint")
138
+ }
139
+ ], $ = u.map((e) => e.signerId), C = o.find(
140
+ (e) => !$.includes(e.value)
141
+ ), oe = !i && u.length < se && C !== void 0, P = (e, s) => {
142
+ b(
143
+ (l) => l.map(
144
+ (d) => d.rowId === e ? { ...d, ...s } : d
145
+ )
146
+ );
147
+ }, ue = () => {
148
+ C && b((e) => [
149
+ ...e,
150
+ {
151
+ signerId: C.value,
152
+ channel: M(C.value, "sms"),
153
+ rowId: E.current++
154
+ }
155
+ ]);
156
+ }, me = (e) => {
157
+ var s;
158
+ (s = F.current) == null || s.focus(), b(
159
+ (l) => l.filter((d) => d.rowId !== e)
160
+ );
161
+ }, he = () => {
162
+ le({
163
+ operatorId: w ? null : p,
164
+ operatorChannel: w ? null : q,
165
+ signers: u.map(({ rowId: e, ...s }) => s)
166
+ });
167
+ };
168
+ return /* @__PURE__ */ a("div", { ref: ie, className: "ds:contents", "data-component": "signature-request", children: /* @__PURE__ */ a(m, { open: h, onOpenChange: z, children: /* @__PURE__ */ r(m.Content, { size: "lg", hideCloseButton: !0, ...re, children: [
169
+ /* @__PURE__ */ r(m.Header, { children: [
170
+ /* @__PURE__ */ a(m.Title, { children: ne ?? n("signatureRequest.title") }),
171
+ /* @__PURE__ */ a(m.Description, { children: te ?? n("signatureRequest.noSignedVersions") })
172
+ ] }),
173
+ /* @__PURE__ */ r(m.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
174
+ /* @__PURE__ */ r("section", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
175
+ /* @__PURE__ */ r("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
176
+ /* @__PURE__ */ a("p", { className: "type-eyebrow ds:text-start ds:text-[color:var(--muted-foreground)]", children: n("signatureRequest.operatorSection") }),
177
+ O !== void 0 ? /* @__PURE__ */ a(
178
+ k,
179
+ {
180
+ intent: "primary",
181
+ size: "sm",
182
+ startIcon: /* @__PURE__ */ a(ze, {}),
183
+ disabled: i,
184
+ onClick: () => {
185
+ T(O), f(
186
+ g(O)
187
+ ), x(null);
188
+ },
189
+ children: n("signatureRequest.assignToMe")
190
+ }
191
+ ) : null
192
+ ] }),
193
+ /* @__PURE__ */ r("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
194
+ /* @__PURE__ */ a(
195
+ Y,
196
+ {
197
+ "aria-hidden": "true",
198
+ name: w ? void 0 : ee(c, p),
199
+ size: "sm"
200
+ }
201
+ ),
202
+ /* @__PURE__ */ a("div", { className: "ds:min-w-0 ds:flex-1 ds:text-start", children: /* @__PURE__ */ a(
203
+ Q,
204
+ {
205
+ options: de,
206
+ value: p,
207
+ onValueChange: (e) => {
208
+ e && (T(e), f(
209
+ e === v ? "email" : g(e)
210
+ ), x(null));
211
+ },
212
+ required: !0,
213
+ disabled: i,
214
+ placeholder: n("signatureRequest.operatorPlaceholder"),
215
+ "aria-label": n("signatureRequest.operatorSection")
216
+ }
217
+ ) })
218
+ ] }),
219
+ w ? null : /* @__PURE__ */ a(
220
+ "div",
221
+ {
222
+ role: "group",
223
+ "aria-label": n("signatureRequest.operatorChannelLabel"),
224
+ className: "ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-lg)] ds:gap-y-[var(--spacing-sm)] ds:ps-[var(--spacing-xl)]",
225
+ children: ce.map((e) => /* @__PURE__ */ r(
226
+ "span",
227
+ {
228
+ className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]",
229
+ children: [
230
+ /* @__PURE__ */ a(
231
+ K,
232
+ {
233
+ checked: q === e.value,
234
+ disabled: i || e.disabled,
235
+ onCheckedChange: (s) => {
236
+ s === !0 && (f(e.value), x(null));
237
+ },
238
+ label: /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
239
+ /* @__PURE__ */ a(
240
+ "span",
241
+ {
242
+ "aria-hidden": "true",
243
+ className: "ds:text-[var(--accent)]",
244
+ children: e.icon
245
+ }
246
+ ),
247
+ e.label
248
+ ] })
249
+ }
250
+ ),
251
+ e.hint ? /* @__PURE__ */ a(Re, { size: "sm", content: e.hint }) : null
252
+ ]
253
+ },
254
+ e.value
255
+ ))
256
+ }
257
+ ),
258
+ /* @__PURE__ */ a("span", { role: "status", className: "ds:sr-only", children: G ? n("signatureRequest.operatorChannelReverted", {
259
+ channel: R[G].label
260
+ }) : null })
261
+ ] }),
262
+ /* @__PURE__ */ a(be, { decorative: !0 }),
263
+ /* @__PURE__ */ r("section", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:text-start", children: [
264
+ /* @__PURE__ */ r("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
265
+ /* @__PURE__ */ a("p", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: n("signatureRequest.signersSection") }),
266
+ /* @__PURE__ */ a(
267
+ k,
268
+ {
269
+ ref: F,
270
+ intent: "primary",
271
+ size: "sm",
272
+ startIcon: /* @__PURE__ */ a(qe, {}),
273
+ disabled: !oe,
274
+ onClick: ue,
275
+ children: n("signatureRequest.addSigner")
276
+ }
277
+ )
278
+ ] }),
279
+ u.map((e) => {
280
+ const s = o.filter(
281
+ (t) => t.value === e.signerId || !$.includes(t.value)
282
+ ), l = ee(o, e.signerId), d = H(e.signerId).map(
283
+ (t) => ({ value: t, ...R[t] })
284
+ );
285
+ return /* @__PURE__ */ r(
286
+ "div",
287
+ {
288
+ role: "group",
289
+ "aria-label": l,
290
+ className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
291
+ children: [
292
+ /* @__PURE__ */ r("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
293
+ /* @__PURE__ */ a(Y, { "aria-hidden": "true", name: l, size: "sm" }),
294
+ /* @__PURE__ */ a("div", { className: "ds:min-w-0 ds:flex-1", children: /* @__PURE__ */ a(
295
+ Q,
296
+ {
297
+ options: s,
298
+ value: e.signerId,
299
+ onValueChange: (t) => {
300
+ if (!t) return;
301
+ const I = M(
302
+ t,
303
+ e.channel
304
+ );
305
+ P(e.rowId, {
306
+ signerId: t,
307
+ channel: I,
308
+ skipOtp: I === "on-device" ? e.skipOtp : void 0
309
+ });
310
+ },
311
+ required: !0,
312
+ disabled: i,
313
+ placeholder: n(
314
+ "signatureRequest.signerPlaceholder"
315
+ ),
316
+ "aria-label": n("signatureRequest.signerPlaceholder")
317
+ }
318
+ ) }),
319
+ u.length > 1 ? /* @__PURE__ */ a(
320
+ ge,
321
+ {
322
+ intent: "ghost",
323
+ size: "sm",
324
+ icon: /* @__PURE__ */ a(Ne, {}),
325
+ disabled: i,
326
+ "aria-label": n("signatureRequest.removeSigner"),
327
+ onClick: () => me(e.rowId)
328
+ }
329
+ ) : null
330
+ ] }),
331
+ /* @__PURE__ */ a(
332
+ "div",
333
+ {
334
+ role: "group",
335
+ "aria-label": n("signatureRequest.channelLabel"),
336
+ className: "ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-lg)] ds:gap-y-[var(--spacing-sm)] ds:ps-[var(--spacing-xl)]",
337
+ children: d.map((t) => /* @__PURE__ */ a(
338
+ K,
339
+ {
340
+ checked: e.channel === t.value,
341
+ disabled: i,
342
+ onCheckedChange: (I) => I === !0 && P(e.rowId, {
343
+ channel: t.value,
344
+ skipOtp: void 0
345
+ }),
346
+ label: /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
347
+ /* @__PURE__ */ a(
348
+ "span",
349
+ {
350
+ "aria-hidden": "true",
351
+ className: "ds:text-[var(--accent)]",
352
+ children: t.icon
353
+ }
354
+ ),
355
+ t.label
356
+ ] })
357
+ },
358
+ t.value
359
+ ))
360
+ }
361
+ ),
362
+ e.channel === "on-device" ? /* @__PURE__ */ a("div", { className: "ds:ps-[var(--spacing-xl)]", children: /* @__PURE__ */ a(
363
+ xe,
364
+ {
365
+ label: n("signatureRequest.noOtp"),
366
+ checked: e.skipOtp === !0,
367
+ disabled: i,
368
+ onCheckedChange: (t) => P(e.rowId, { skipOtp: t })
369
+ }
370
+ ) }) : null
371
+ ]
372
+ },
373
+ e.rowId
374
+ );
375
+ })
376
+ ] }),
377
+ u.some(
378
+ (e) => e.channel === "on-device" && e.skipOtp === !0
379
+ ) ? /* @__PURE__ */ a(y, { variant: "warning", children: /* @__PURE__ */ a(y.Description, { children: n("signatureRequest.noOtpWarning") }) }) : null,
380
+ j ? /* @__PURE__ */ a(y, { variant: "error", children: /* @__PURE__ */ a(y.Description, { children: j }) }) : null
381
+ ] }),
382
+ /* @__PURE__ */ r(m.Footer, { children: [
383
+ /* @__PURE__ */ a(
384
+ k,
385
+ {
386
+ intent: "primary",
387
+ startIcon: /* @__PURE__ */ a(we, {}),
388
+ onClick: he,
389
+ disabled: i || u.length === 0,
390
+ loading: i,
391
+ children: n("signatureRequest.requestSignature")
392
+ }
393
+ ),
394
+ /* @__PURE__ */ a(m.Close, { asChild: !0, children: /* @__PURE__ */ a(k, { intent: "outline", disabled: i, children: n("signatureRequest.close") }) })
395
+ ] })
396
+ ] }) }) });
397
+ }
398
+ );
399
+ Oe.displayName = "SignatureRequestModal";
400
+ export {
401
+ Oe as S
402
+ };
403
+ //# sourceMappingURL=signature-request-BzXTV_RH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signature-request-BzXTV_RH.js","sources":["../../node_modules/lucide-react/dist/esm/icons/tablet.mjs","../../node_modules/lucide-react/dist/esm/icons/user-plus.mjs","../../src/patterns/signature-request/signature-request.tsx"],"sourcesContent":["/**\n * @license lucide-react v1.22.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"rect\", { width: \"16\", height: \"20\", x: \"4\", y: \"2\", rx: \"2\", ry: \"2\", key: \"76otgf\" }],\n [\"line\", { x1: \"12\", x2: \"12.01\", y1: \"18\", y2: \"18\", key: \"1dp563\" }]\n];\nconst Tablet = createLucideIcon(\"tablet\", __iconNode);\n\nexport { __iconNode, Tablet as default };\n//# sourceMappingURL=tablet.mjs.map\n","/**\n * @license lucide-react v1.22.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"path\", { d: \"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\", key: \"1yyitq\" }],\n [\"circle\", { cx: \"9\", cy: \"7\", r: \"4\", key: \"nufk8\" }],\n [\"line\", { x1: \"19\", x2: \"19\", y1: \"8\", y2: \"14\", key: \"1bvyxn\" }],\n [\"line\", { x1: \"22\", x2: \"16\", y1: \"11\", y2: \"11\", key: \"1shjgl\" }]\n];\nconst UserPlus = createLucideIcon(\"user-plus\", __iconNode);\n\nexport { __iconNode, UserPlus as default };\n//# sourceMappingURL=user-plus.mjs.map\n","/**\n * SignatureRequestModal — the practice-side \"Documenti firmati\" modal that\n * dispatches a document-signature request: assign the operator who must\n * counter-sign (or leave the request unassigned) and how their request is\n * delivered (their system-defined default channel arrives pre-checked),\n * build the patient-side signer roster (up to `maxSigners`, each with their\n * own delivery channel and, for on-device signing, an OTP waiver), and send.\n *\n * Runtime pattern: real consuming apps mount this in production (surfaced via\n * `src/patterns/index.ts` and the `./patterns/signature-request` subpath).\n * The component owns the form state — re-seeded from the `initial*` props\n * every time `open` flips back to `true` — while the host owns `open`, the\n * option lists, and what happens on submit. Multiple on-device signers sign\n * sequentially in roster order — the execution side is the Signing pattern's\n * multi-signer flow; this modal only encodes the intents.\n */\nimport {\n forwardRef,\n useEffect,\n useRef,\n useState,\n type ComponentPropsWithoutRef,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\nimport {\n Mail,\n MessageSquare,\n PenLine,\n Plus,\n Tablet,\n UserPlus,\n X,\n} from 'lucide-react';\nimport { Dialog } from '../../components/dialog';\nimport { Button } from '../../components/button';\nimport { IconButton } from '../../components/icon-button';\nimport { Checkbox } from '../../components/checkbox';\nimport { WhatsAppGlyph } from '../../components/whatsapp-button';\nimport { Select } from '../../components/select';\nimport { Switch } from '../../components/switch';\nimport { Alert } from '../../components/alert';\nimport { InfoTip } from '../../components/info-tip';\nimport { Separator } from '../../components/separator';\nimport { Avatar } from '../../components/avatar';\n\n/** Delivery channel for one signer's signature request. */\nexport type SignatureChannel = 'sms' | 'email' | 'whatsapp' | 'on-device';\n\n/**\n * Delivery channel for the operator's counter-sign request. The default is\n * system defined — the assigned operator's own `defaultChannel` (e-mail or\n * SMS) arrives pre-checked; `'on-device'` is offerable only while a roster\n * signer also signs on this device.\n */\nexport type OperatorChannel = 'sms' | 'email' | 'on-device';\n\n/** One selectable person/role for the operator or signer selects. */\nexport interface SignerOption {\n value: string;\n label: string;\n /**\n * Delivery channels this person can actually receive. Omit (or pass an\n * empty list) to offer every channel. Hosts gate this from per-patient\n * capability flags — e.g. a patient with no mobile number drops `'sms'`\n * and `'whatsapp'`. Only meaningful for signer options, not operators.\n */\n availableChannels?: SignatureChannel[];\n /**\n * The delivery channel this operator's own settings resolve to — the\n * system-defined default, pre-checked when the operator is assigned.\n * Falls back to `'email'` when omitted. Only meaningful for operator\n * options, not signers.\n */\n defaultChannel?: 'sms' | 'email';\n}\n\n/** One patient-side signer row in the submission. */\nexport interface SignerRequest {\n signerId: string;\n channel: SignatureChannel;\n /** Only meaningful when `channel` is `'on-device'`. */\n skipOtp?: boolean;\n}\n\n/** Payload handed to `onRequestSignature`. */\nexport interface SignatureRequestSubmission {\n /** `null` when the counter-signing operator is left unassigned. */\n operatorId: string | null;\n /**\n * How the operator's counter-sign request is delivered. `null` while the\n * operator is unassigned. Defaults to the operator's own system-defined\n * channel unless explicitly changed in the modal.\n */\n operatorChannel: OperatorChannel | null;\n /** 1..N signers; on-device signers sign sequentially in this order. */\n signers: SignerRequest[];\n}\n\nexport interface SignatureRequestModalProps {\n /** Controlled open state. Reopening re-seeds the form from `initial*`. */\n open: boolean;\n /**\n * Fires when the dialog requests a state change (<kbd>Esc</kbd> or the\n * footer Close button). `false` is the dismiss signal — hosts typically\n * persist a \"dismissed this session\" flag there.\n */\n onOpenChange: (open: boolean) => void;\n /** Operators offered as the counter-signing signer. */\n operators: SignerOption[];\n /** Patient-side people/roles offered in each signer row. */\n signerOptions: SignerOption[];\n /** Enables the \"Assign to me\" shortcut targeting this operator. */\n currentOperatorId?: string;\n /** Offer an \"Assign later\" option in the operator select. Default `true`. */\n allowAssignLater?: boolean;\n /**\n * Preselected operator; `null` preselects \"Assign later\" (honoured only\n * while `allowAssignLater` — otherwise the first operator is seeded).\n */\n initialOperatorId?: string | null;\n /**\n * Preselected operator delivery channel. Defaults to the seeded operator's\n * system-defined `defaultChannel`. `'on-device'` is honoured only while a\n * seeded roster signer also signs on this device.\n */\n initialOperatorChannel?: OperatorChannel;\n /** Seed the signer roster. Defaults to the first option, on-device. */\n initialSigners?: SignerRequest[];\n /** Cap on roster size. Default `2`. */\n maxSigners?: number;\n /** Disables all inputs and shows the primary action as loading. */\n busy?: boolean;\n /** Consumer-translated error shown above the footer (e.g. server failure). */\n error?: string;\n /** Override the dialog title. Defaults to the `ui.*` string. */\n title?: string;\n /** Override the dialog description. Defaults to the `ui.*` string. */\n description?: string;\n /** Receives the completed submission. The host closes via `onOpenChange`. */\n onRequestSignature: (submission: SignatureRequestSubmission) => void;\n /**\n * Extra attributes for the portaled dialog surface (e.g. `dir`/`lang`\n * when the host pins a locale below `<html>`, or a test id).\n */\n contentProps?: ComponentPropsWithoutRef<'div'>;\n}\n\nconst ASSIGN_LATER = '__assign-later__';\n\n/** Canonical channel display order; per-signer availability filters this. */\nconst CHANNEL_ORDER: SignatureChannel[] = [\n 'sms',\n 'email',\n 'whatsapp',\n 'on-device',\n];\n\n/** Internal roster row — `rowId` keys the DOM so editing a row's person\n * never remounts the row (which would drop keyboard focus). */\ninterface RosterRow extends SignerRequest {\n rowId: number;\n}\n\nfunction labelFor(options: SignerOption[], value: string): string {\n return options.find((option) => option.value === value)?.label ?? '';\n}\n\nexport const SignatureRequestModal = forwardRef<\n HTMLDivElement,\n SignatureRequestModalProps\n>(\n (\n {\n open,\n onOpenChange,\n operators,\n signerOptions,\n currentOperatorId,\n allowAssignLater = true,\n initialOperatorId,\n initialOperatorChannel,\n initialSigners,\n maxSigners = 2,\n busy = false,\n error,\n title,\n description,\n onRequestSignature,\n contentProps,\n },\n ref,\n ) => {\n const { t } = useTranslation();\n\n const nextRowId = useRef(0);\n const addButtonRef = useRef<HTMLButtonElement>(null);\n\n // Channels a given signer can receive on — the person's `availableChannels`\n // filtered into canonical order; omitted/empty means every channel.\n const channelsFor = (signerId: string): SignatureChannel[] => {\n const allowed = signerOptions.find(\n (option) => option.value === signerId,\n )?.availableChannels;\n return allowed && allowed.length > 0\n ? CHANNEL_ORDER.filter((channel) => allowed.includes(channel))\n : CHANNEL_ORDER;\n };\n\n // First available channel for a signer, preferring `preferred` when offered.\n const resolveChannel = (\n signerId: string,\n preferred: SignatureChannel,\n ): SignatureChannel => {\n const available = channelsFor(signerId);\n return available.includes(preferred) ? preferred : available[0];\n };\n\n const seedOperator = () => {\n if (initialOperatorId === null) {\n return allowAssignLater\n ? ASSIGN_LATER\n : (operators[0]?.value ?? ASSIGN_LATER);\n }\n return (\n initialOperatorId ??\n operators[0]?.value ??\n (allowAssignLater ? ASSIGN_LATER : '')\n );\n };\n const seedRows = (): RosterRow[] => {\n const seed =\n initialSigners && initialSigners.length > 0\n ? initialSigners\n : signerOptions.length > 0\n ? [\n {\n signerId: signerOptions[0].value,\n channel: resolveChannel(signerOptions[0].value, 'on-device'),\n },\n ]\n : [];\n return seed.map((signer) => ({ ...signer, rowId: nextRowId.current++ }));\n };\n\n // System-defined default for one operator — the channel their own\n // settings resolve to.\n const operatorDefaultChannel = (operatorId: string): OperatorChannel =>\n operators.find((option) => option.value === operatorId)?.defaultChannel ??\n 'email';\n\n // Seed clamp: `'on-device'` is honoured only when the seeded roster\n // makes it available, so the option is never checked-and-disabled, not\n // even for a frame.\n const seedOperatorChannel = (\n operatorId: string,\n rows: RosterRow[],\n ): OperatorChannel => {\n if (initialOperatorChannel === 'on-device') {\n return rows.some((signer) => signer.channel === 'on-device')\n ? 'on-device'\n : operatorDefaultChannel(operatorId);\n }\n return initialOperatorChannel ?? operatorDefaultChannel(operatorId);\n };\n\n const [operator, setOperator] = useState<string>(seedOperator);\n const [signers, setSigners] = useState<RosterRow[]>(seedRows);\n const [operatorChannel, setOperatorChannel] = useState<OperatorChannel>(\n () => seedOperatorChannel(operator, signers),\n );\n // Feeds the sr-only live region announcing the automatic channel\n // fallback below; any explicit choice clears it.\n const [revertedTo, setRevertedTo] = useState<OperatorChannel | null>(null);\n\n // Re-seed the form whenever the host reopens the (still-mounted) modal,\n // so a previous request's choices never leak into the next one.\n const wasOpen = useRef(open);\n useEffect(() => {\n if (open && !wasOpen.current) {\n const nextOperator = seedOperator();\n const nextRows = seedRows();\n setOperator(nextOperator);\n setSigners(nextRows);\n setOperatorChannel(seedOperatorChannel(nextOperator, nextRows));\n setRevertedTo(null);\n }\n wasOpen.current = open;\n // The seeds intentionally read the render-time props on the rising\n // edge only — prop changes while open (or closed) don't reset input.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [open]);\n\n // Operator on-device signing piggybacks on a patient handover: it is\n // offerable only while a roster signer signs on this device, and falls\n // back to the operator's system default the moment the last on-device\n // row leaves. The fallback is announced via the live region — the\n // trigger lives in the roster section, far from the checkbox it moves.\n const anySignerOnDevice = signers.some(\n (signer) => signer.channel === 'on-device',\n );\n useEffect(() => {\n if (operatorChannel === 'on-device' && !anySignerOnDevice) {\n const fallback = operatorDefaultChannel(operator);\n setOperatorChannel(fallback);\n setRevertedTo(fallback);\n }\n // `operatorDefaultChannel` reads the render-time `operators` prop.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [operatorChannel, anySignerOnDevice, operator]);\n\n const operatorSelectOptions = allowAssignLater\n ? [\n ...operators,\n { value: ASSIGN_LATER, label: t('signatureRequest.assignLater') },\n ]\n : operators;\n const isUnassigned = operator === ASSIGN_LATER;\n\n const channelMeta: Record<\n SignatureChannel,\n { label: string; icon: React.ReactNode }\n > = {\n sms: {\n label: t('signatureRequest.viaSms'),\n icon: <MessageSquare className=\"ds:size-4\" aria-hidden />,\n },\n email: {\n label: t('signatureRequest.viaEmail'),\n icon: <Mail className=\"ds:size-4\" aria-hidden />,\n },\n whatsapp: {\n label: t('signatureRequest.viaWhatsapp'),\n icon: <WhatsAppGlyph className=\"ds:size-4\" aria-hidden />,\n },\n 'on-device': {\n label: t('signatureRequest.onThisDevice'),\n icon: <Tablet className=\"ds:size-4\" aria-hidden />,\n },\n };\n\n // Operator delivery — same checkbox visuals as the signer rows, minus\n // WhatsApp. No \"system defined\" option: the operator's own default\n // (e-mail or SMS per their settings) arrives pre-checked instead.\n // On-device greys out while no patient signer signs on this device;\n // an InfoTip explains why.\n const operatorChannelOptions: Array<{\n value: OperatorChannel;\n label: string;\n icon: React.ReactNode;\n disabled?: boolean;\n hint?: string;\n }> = [\n { value: 'sms', ...channelMeta.sms },\n { value: 'email', ...channelMeta.email },\n {\n value: 'on-device',\n ...channelMeta['on-device'],\n disabled: !anySignerOnDevice,\n hint: anySignerOnDevice\n ? undefined\n : t('signatureRequest.onDeviceUnavailableHint'),\n },\n ];\n\n const chosenIds = signers.map((signer) => signer.signerId);\n const nextFreeOption = signerOptions.find(\n (option) => !chosenIds.includes(option.value),\n );\n const canAddSigner =\n !busy && signers.length < maxSigners && nextFreeOption !== undefined;\n\n const patchSigner = (rowId: number, patch: Partial<SignerRequest>) => {\n setSigners((current) =>\n current.map((signer) =>\n signer.rowId === rowId ? { ...signer, ...patch } : signer,\n ),\n );\n };\n\n const addSigner = () => {\n if (!nextFreeOption) return;\n setSigners((current) => [\n ...current,\n {\n signerId: nextFreeOption.value,\n channel: resolveChannel(nextFreeOption.value, 'sms'),\n rowId: nextRowId.current++,\n },\n ]);\n };\n\n const removeSigner = (rowId: number) => {\n // Move focus BEFORE the row (and the focused remove button) unmounts —\n // otherwise Radix's focus scope dumps focus on the dialog container.\n addButtonRef.current?.focus();\n setSigners((current) =>\n current.filter((signer) => signer.rowId !== rowId),\n );\n };\n\n const handleRequest = () => {\n onRequestSignature({\n operatorId: isUnassigned ? null : operator,\n operatorChannel: isUnassigned ? null : operatorChannel,\n signers: signers.map(({ rowId: _rowId, ...signer }) => signer),\n });\n };\n\n return (\n <div ref={ref} className=\"ds:contents\" data-component=\"signature-request\">\n <Dialog open={open} onOpenChange={onOpenChange}>\n <Dialog.Content size=\"lg\" hideCloseButton {...contentProps}>\n <Dialog.Header>\n <Dialog.Title>\n {title ?? t('signatureRequest.title')}\n </Dialog.Title>\n <Dialog.Description>\n {description ?? t('signatureRequest.noSignedVersions')}\n </Dialog.Description>\n </Dialog.Header>\n\n <Dialog.Body className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]\">\n <section className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]\">\n <div className=\"ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]\">\n <p className=\"type-eyebrow ds:text-start ds:text-[color:var(--muted-foreground)]\">\n {t('signatureRequest.operatorSection')}\n </p>\n {currentOperatorId !== undefined ? (\n <Button\n intent=\"primary\"\n size=\"sm\"\n startIcon={<UserPlus />}\n disabled={busy}\n onClick={() => {\n setOperator(currentOperatorId);\n setOperatorChannel(\n operatorDefaultChannel(currentOperatorId),\n );\n setRevertedTo(null);\n }}\n >\n {t('signatureRequest.assignToMe')}\n </Button>\n ) : null}\n </div>\n\n <div className=\"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]\">\n {/* Mirrors the select value — decorative for AT. No name →\n Avatar's built-in placeholder-icon fallback. */}\n <Avatar\n aria-hidden=\"true\"\n name={\n isUnassigned ? undefined : labelFor(operators, operator)\n }\n size=\"sm\"\n />\n <div className=\"ds:min-w-0 ds:flex-1 ds:text-start\">\n <Select\n options={operatorSelectOptions}\n value={operator}\n onValueChange={(value) => {\n if (!value) return;\n setOperator(value);\n // A different operator brings their own system\n // default along.\n setOperatorChannel(\n value === ASSIGN_LATER\n ? 'email'\n : operatorDefaultChannel(value),\n );\n setRevertedTo(null);\n }}\n required\n disabled={busy}\n placeholder={t('signatureRequest.operatorPlaceholder')}\n aria-label={t('signatureRequest.operatorSection')}\n />\n </div>\n </div>\n\n {/* One channel for the operator too — same mutually exclusive\n checkbox visuals as the signer rows. Hidden while the\n request is unassigned: there is nobody to deliver to. */}\n {isUnassigned ? null : (\n <div\n role=\"group\"\n aria-label={t('signatureRequest.operatorChannelLabel')}\n className=\"ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-lg)] ds:gap-y-[var(--spacing-sm)] ds:ps-[var(--spacing-xl)]\"\n >\n {operatorChannelOptions.map((option) => (\n <span\n key={option.value}\n className=\"ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]\"\n >\n <Checkbox\n checked={operatorChannel === option.value}\n disabled={busy || option.disabled}\n onCheckedChange={(checked) => {\n if (checked !== true) return;\n setOperatorChannel(option.value);\n setRevertedTo(null);\n }}\n label={\n <span className=\"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]\">\n <span\n aria-hidden=\"true\"\n className=\"ds:text-[var(--accent)]\"\n >\n {option.icon}\n </span>\n {option.label}\n </span>\n }\n />\n {/* Sibling of the checkbox, never inside its label —\n the tip is its own interactive control. The wider\n gap keeps the tip's touch hit-area off the label. */}\n {option.hint ? (\n <InfoTip size=\"sm\" content={option.hint} />\n ) : null}\n </span>\n ))}\n </div>\n )}\n\n {/* Announces the automatic on-device → default fallback: the\n trigger (the patient's channel change) sits in another\n section, so the moved checkmark alone is not enough. */}\n <span role=\"status\" className=\"ds:sr-only\">\n {revertedTo\n ? t('signatureRequest.operatorChannelReverted', {\n channel: channelMeta[revertedTo].label,\n })\n : null}\n </span>\n </section>\n\n <Separator decorative />\n\n <section className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:text-start\">\n <div className=\"ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]\">\n <p className=\"type-eyebrow ds:text-[color:var(--muted-foreground)]\">\n {t('signatureRequest.signersSection')}\n </p>\n <Button\n ref={addButtonRef}\n intent=\"primary\"\n size=\"sm\"\n startIcon={<Plus />}\n disabled={!canAddSigner}\n onClick={addSigner}\n >\n {t('signatureRequest.addSigner')}\n </Button>\n </div>\n\n {signers.map((signer) => {\n const rowOptions = signerOptions.filter(\n (option) =>\n option.value === signer.signerId ||\n !chosenIds.includes(option.value),\n );\n const rowLabel = labelFor(signerOptions, signer.signerId);\n const rowChannelOptions = channelsFor(signer.signerId).map(\n (channel) => ({ value: channel, ...channelMeta[channel] }),\n );\n return (\n <div\n key={signer.rowId}\n role=\"group\"\n aria-label={rowLabel}\n className=\"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]\"\n >\n <div className=\"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]\">\n {/* Mirrors the select value — decorative for AT. */}\n <Avatar aria-hidden=\"true\" name={rowLabel} size=\"sm\" />\n <div className=\"ds:min-w-0 ds:flex-1\">\n <Select\n options={rowOptions}\n value={signer.signerId}\n onValueChange={(value) => {\n if (!value) return;\n const channel = resolveChannel(\n value,\n signer.channel,\n );\n patchSigner(signer.rowId, {\n signerId: value,\n channel,\n skipOtp:\n channel === 'on-device'\n ? signer.skipOtp\n : undefined,\n });\n }}\n required\n disabled={busy}\n placeholder={t(\n 'signatureRequest.signerPlaceholder',\n )}\n aria-label={t('signatureRequest.signerPlaceholder')}\n />\n </div>\n {signers.length > 1 ? (\n <IconButton\n intent=\"ghost\"\n size=\"sm\"\n icon={<X />}\n disabled={busy}\n aria-label={t('signatureRequest.removeSigner')}\n onClick={() => removeSigner(signer.rowId)}\n />\n ) : null}\n </div>\n\n {/* One channel per signer — checkbox visuals, but the\n choice is mutually exclusive: checking a channel\n unchecks the others, and the active one can't be\n unchecked. */}\n <div\n role=\"group\"\n aria-label={t('signatureRequest.channelLabel')}\n className=\"ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-lg)] ds:gap-y-[var(--spacing-sm)] ds:ps-[var(--spacing-xl)]\"\n >\n {rowChannelOptions.map((option) => (\n <Checkbox\n key={option.value}\n checked={signer.channel === option.value}\n disabled={busy}\n onCheckedChange={(checked) =>\n checked === true &&\n patchSigner(signer.rowId, {\n channel: option.value,\n skipOtp: undefined,\n })\n }\n label={\n <span className=\"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]\">\n <span\n aria-hidden=\"true\"\n className=\"ds:text-[var(--accent)]\"\n >\n {option.icon}\n </span>\n {option.label}\n </span>\n }\n />\n ))}\n </div>\n\n {signer.channel === 'on-device' ? (\n <div className=\"ds:ps-[var(--spacing-xl)]\">\n <Switch\n label={t('signatureRequest.noOtp')}\n checked={signer.skipOtp === true}\n disabled={busy}\n onCheckedChange={(checked) =>\n patchSigner(signer.rowId, { skipOtp: checked })\n }\n />\n </div>\n ) : null}\n </div>\n );\n })}\n </section>\n\n {/* Dedicated alert area — one warning regardless of how many\n signers waive OTP, stacked with any submission error, all at\n the same full width as the operator hint. */}\n {signers.some(\n (signer) =>\n signer.channel === 'on-device' && signer.skipOtp === true,\n ) ? (\n <Alert variant=\"warning\">\n <Alert.Description>\n {t('signatureRequest.noOtpWarning')}\n </Alert.Description>\n </Alert>\n ) : null}\n {error ? (\n <Alert variant=\"error\">\n <Alert.Description>{error}</Alert.Description>\n </Alert>\n ) : null}\n </Dialog.Body>\n\n <Dialog.Footer>\n <Button\n intent=\"primary\"\n startIcon={<PenLine />}\n onClick={handleRequest}\n disabled={busy || signers.length === 0}\n loading={busy}\n >\n {t('signatureRequest.requestSignature')}\n </Button>\n <Dialog.Close asChild>\n <Button intent=\"outline\" disabled={busy}>\n {t('signatureRequest.close')}\n </Button>\n </Dialog.Close>\n </Dialog.Footer>\n </Dialog.Content>\n </Dialog>\n </div>\n );\n },\n);\nSignatureRequestModal.displayName = 'SignatureRequestModal';\n"],"names":["__iconNode","Tablet","createLucideIcon","UserPlus","ASSIGN_LATER","CHANNEL_ORDER","labelFor","options","value","_a","option","SignatureRequestModal","forwardRef","open","onOpenChange","operators","signerOptions","currentOperatorId","allowAssignLater","initialOperatorId","initialOperatorChannel","initialSigners","maxSigners","busy","error","title","description","onRequestSignature","contentProps","ref","t","useTranslation","nextRowId","useRef","addButtonRef","channelsFor","signerId","allowed","channel","resolveChannel","preferred","available","seedOperator","_b","seedRows","signer","operatorDefaultChannel","operatorId","seedOperatorChannel","rows","operator","setOperator","useState","signers","setSigners","operatorChannel","setOperatorChannel","revertedTo","setRevertedTo","wasOpen","useEffect","nextOperator","nextRows","anySignerOnDevice","fallback","operatorSelectOptions","isUnassigned","channelMeta","jsx","MessageSquare","Mail","WhatsAppGlyph","operatorChannelOptions","chosenIds","nextFreeOption","canAddSigner","patchSigner","rowId","patch","current","addSigner","removeSigner","handleRequest","_rowId","Dialog","jsxs","Button","Avatar","Select","Checkbox","checked","InfoTip","Separator","Plus","rowOptions","rowLabel","rowChannelOptions","IconButton","X","Switch","Alert","PenLine"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,KAAa;AAAA,EACjB,CAAC,QAAQ,EAAE,OAAO,MAAM,QAAQ,MAAM,GAAG,KAAK,GAAG,KAAK,IAAI,KAAK,IAAI,KAAK,KAAK,UAAU;AAAA,EACvF,CAAC,QAAQ,EAAE,IAAI,MAAM,IAAI,SAAS,IAAI,MAAM,IAAI,MAAM,KAAK,SAAQ,CAAE;AACvE,GACMC,KAASC,GAAiB,UAAUF,EAAU;ACbpD;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,KAAa;AAAA,EACjB,CAAC,QAAQ,EAAE,GAAG,6CAA6C,KAAK,SAAQ,CAAE;AAAA,EAC1E,CAAC,UAAU,EAAE,IAAI,KAAK,IAAI,KAAK,GAAG,KAAK,KAAK,SAAS;AAAA,EACrD,CAAC,QAAQ,EAAE,IAAI,MAAM,IAAI,MAAM,IAAI,KAAK,IAAI,MAAM,KAAK,SAAQ,CAAE;AAAA,EACjE,CAAC,QAAQ,EAAE,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,KAAK,SAAQ,CAAE;AACpE,GACMG,KAAWD,GAAiB,aAAaF,EAAU,GCoInDI,IAAe,oBAGfC,IAAoC;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAQA,SAASC,GAASC,GAAyBC,GAAuB;;AAChE,WAAOC,IAAAF,EAAQ,KAAK,CAACG,MAAWA,EAAO,UAAUF,CAAK,MAA/C,gBAAAC,EAAkD,UAAS;AACpE;AAEO,MAAME,KAAwBC;AAAA,EAInC,CACE;AAAA,IACE,MAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,eA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AAA,YAER,YAAE,mCAAmC;AAAA,UAAA;AAAA,QAAA;AAAA,QAExC,gBAAA6C,EAACgB,EAAO,OAAP,EAAa,SAAO,IACnB,UAAA,gBAAAhB,EAACkB,GAAA,EAAO,QAAO,WAAU,UAAU/D,GAChC,UAAAO,EAAE,wBAAwB,GAC7B,EAAA,CACF;AAAA,MAAA,EAAA,CACF;AAAA,IAAA,EAAA,CACF,GACF,GACF;AAAA,EAEJ;AACF;AACAnB,GAAsB,cAAc;","x_google_ignoreList":[0,1]}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "0.95.0",
3
+ "packageVersion": "0.96.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -16501,6 +16501,14 @@
16501
16501
  "component": "select",
16502
16502
  "as": "operatorSigner"
16503
16503
  },
16504
+ {
16505
+ "component": "checkbox",
16506
+ "as": "operatorChannel"
16507
+ },
16508
+ {
16509
+ "component": "info-tip",
16510
+ "as": "operatorChannelHint"
16511
+ },
16504
16512
  {
16505
16513
  "component": "select",
16506
16514
  "as": "signerPerson",
@@ -16516,10 +16524,6 @@
16516
16524
  "as": "otpWaiver",
16517
16525
  "entity": "signer"
16518
16526
  },
16519
- {
16520
- "component": "alert",
16521
- "as": "operatorHint"
16522
- },
16523
16527
  {
16524
16528
  "component": "alert",
16525
16529
  "as": "otpWarning",
@@ -16581,7 +16585,7 @@
16581
16585
  {
16582
16586
  "name": "choose_delivery_channel",
16583
16587
  "safety": "write",
16584
- "description": "Choose how each signer's request is delivered via the per-row channel checkboxes (mutually exclusive — checking one channel unchecks the others): SMS, e-mail, WhatsApp, or signing on this device. On-device signers sign sequentially in roster order.",
16588
+ "description": "Choose how each signer's request is delivered via the per-row channel checkboxes (mutually exclusive — checking one channel unchecks the others): SMS, e-mail, WhatsApp, or signing on this device. On-device signers sign sequentially in roster order. The assigned operator has the same mutually exclusive checkboxes with SMS, e-mail, or on this device — the operator's own system-defined channel arrives pre-checked, and the on-device option is enabled only while a patient signer also signs on this device (an info tip explains the greyed-out state; an automatic fallback to the operator's default is announced via a live region when the last on-device patient row leaves).",
16585
16589
  "descriptionKey": "ui.agent.signatureRequest.workflows.chooseDeliveryChannel",
16586
16590
  "uiActions": [
16587
16591
  "checkbox.set_checked"
@@ -1608,7 +1608,7 @@
1608
1608
  "workflows": {
1609
1609
  "assignOperator": "Pick the operator who must counter-sign (or \"Assign later\" to leave the request unassigned). \"Assign to me\" claims it for the signed-in operator.",
1610
1610
  "manageSignerRoster": "Build the patient-side signer roster: pick who signs in each row (the patient or their configured signee, e.g. a legal guardian), add a second signer up to the cap, or remove a row. People already on the roster are excluded from the other rows.",
1611
- "chooseDeliveryChannel": "Choose how each signer's request is delivered via the per-row channel checkboxes (mutually exclusive — checking one channel unchecks the others): SMS, e-mail, WhatsApp, or signing on this device. On-device signers sign sequentially in roster order.",
1611
+ "chooseDeliveryChannel": "Choose how each signer's request is delivered via the per-row channel checkboxes (mutually exclusive — checking one channel unchecks the others): SMS, e-mail, WhatsApp, or signing on this device. On-device signers sign sequentially in roster order. The assigned operator has the same mutually exclusive checkboxes with SMS, e-mail, or on this device — the operator's own system-defined channel arrives pre-checked, and the on-device option is enabled only while a patient signer also signs on this device (an info tip explains the greyed-out state; an automatic fallback to the operator's default is announced via a live region when the last on-device patient row leaves).",
1612
1612
  "waiveOtp": "Toggle a signer's on-device OTP waiver. Waiving OTP lowers the evidentiary value of that signature; the pattern surfaces a warning alert while waived.",
1613
1613
  "requestSignature": "Send the signature request. Notifies every roster signer over their selected channel and hands the submission to the host.",
1614
1614
  "dismiss": "Close the modal without sending a signature request. Discards the in-progress operator, roster, channel, and OTP choices."
@@ -3030,7 +3030,9 @@ export declare const arUi: {
3030
3030
  readonly assignToMe: "إسناد إليّ";
3031
3031
  readonly operatorPlaceholder: "اختر مشغّلاً";
3032
3032
  readonly assignLater: "الإسناد لاحقاً";
3033
- readonly operatorHint: "سيتم إرسال طلب التوقيع إلى المشغّل عبر البريد الإلكتروني أو الرسائل النصية حسب إعداداته.";
3033
+ readonly operatorChannelLabel: "قناة توقيع المشغّل";
3034
+ readonly onDeviceUnavailableHint: "متاح عندما يوقّع واحد على الأقل من موقّعي المريض على هذا الجهاز.";
3035
+ readonly operatorChannelReverted: "تمت إعادة تعيين قناة توقيع المشغّل إلى {{channel}} — لا يوقّع أي من موقّعي المريض على هذا الجهاز.";
3034
3036
  readonly signersSection: "موقّعو المريض";
3035
3037
  readonly signerPlaceholder: "اختر موقّعاً";
3036
3038
  readonly channelLabel: "قناة التوقيع";
@@ -1 +1 @@
1
- {"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../src/i18n/locales/ar.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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@ -3004,7 +3004,9 @@ const e = {
3004
3004
  assignToMe: "إسناد إليّ",
3005
3005
  operatorPlaceholder: "اختر مشغّلاً",
3006
3006
  assignLater: "الإسناد لاحقاً",
3007
- operatorHint: "سيتم إرسال طلب التوقيع إلى المشغّل عبر البريد الإلكتروني أو الرسائل النصية حسب إعداداته.",
3007
+ operatorChannelLabel: "قناة توقيع المشغّل",
3008
+ onDeviceUnavailableHint: "متاح عندما يوقّع واحد على الأقل من موقّعي المريض على هذا الجهاز.",
3009
+ operatorChannelReverted: "تمت إعادة تعيين قناة توقيع المشغّل إلى {{channel}} — لا يوقّع أي من موقّعي المريض على هذا الجهاز.",
3008
3010
  signersSection: "موقّعو المريض",
3009
3011
  signerPlaceholder: "اختر موقّعاً",
3010
3012
  channelLabel: "قناة التوقيع",