@alfadocs/ui-kit 1.139.0 → 1.141.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 (155) hide show
  1. package/dist/_chunks/{anamnesis-summary-rows-BgfBnjp0.js → anamnesis-summary-rows-YJGs2uWD.js} +2 -2
  2. package/dist/_chunks/{appointment-card-CaxFXtSn.js → appointment-card-r0OZm77v.js} +170 -168
  3. package/dist/_chunks/appointment-timeline-Bs-rTMzi.js +689 -0
  4. package/dist/_chunks/{appointment-tray-DPpeR9JT.js → appointment-tray-t_ltp-Yi.js} +2 -2
  5. package/dist/_chunks/{balance-badge-cell-CRrIv2hy.js → balance-badge-cell-CRStPNDd.js} +2 -2
  6. package/dist/_chunks/{bill-line-table-DCqxhode.js → bill-line-table-DTqXdBED.js} +2 -2
  7. package/dist/_chunks/{bmi-calculator-rri5vvMt.js → bmi-calculator-rq3ZsKp0.js} +2 -2
  8. package/dist/_chunks/{calendar-appointment-editor-dialog-GdnaPIOV.js → calendar-appointment-editor-dialog-CuXpgLCw.js} +5 -5
  9. package/dist/_chunks/{calendar-waiting-list-panel-CkZBAv_E.js → calendar-waiting-list-panel-BNQrUndD.js} +2 -2
  10. package/dist/_chunks/{calendar.sheets-B0jP2Yt0.js → calendar.sheets-DcW8A3DI.js} +3 -3
  11. package/dist/_chunks/calls-panel-CJNQm7r8.js +1446 -0
  12. package/dist/_chunks/{cycle-calculator-WFhMfJHt.js → cycle-calculator-Cb66X2Pf.js} +2 -2
  13. package/dist/_chunks/{data-grid-bQ6iFm10.js → data-grid-CRUSZcVT.js} +2 -2
  14. package/dist/_chunks/{default-tabs-Dm_vk6hd.js → default-tabs-CRbVCDSU.js} +3 -3
  15. package/dist/_chunks/{due-date-calculator-CALlODZe.js → due-date-calculator-Dlqegxx9.js} +2 -2
  16. package/dist/_chunks/{fetal-weight-D0KofJJw.js → fetal-weight-DWj-_ME8.js} +2 -2
  17. package/dist/_chunks/{hcg-doubling-Dhdt3Jyd.js → hcg-doubling-Dqbj6PQj.js} +2 -2
  18. package/dist/_chunks/{invoice-upload-list-Dz3CXHPP.js → invoice-upload-list-BR6vycF7.js} +3 -3
  19. package/dist/_chunks/{kit-extensions-BB_ksnVl.js → kit-extensions-QddOSnIq.js} +6 -6
  20. package/dist/_chunks/{link-cell-renderer-CSA0KKPe.js → link-cell-renderer-hAJplRFF.js} +2 -2
  21. package/dist/_chunks/medication-line-BohqbCYD.js +238 -0
  22. package/dist/_chunks/{notes-panel-CnmQqhwq.js → notes-panel-C4HSUudf.js} +2 -2
  23. package/dist/_chunks/{number-input-DUSvP7Dq.js → number-input-Bi5Yk6PX.js} +135 -133
  24. package/dist/_chunks/{optical-prescription-C4jpDFOE.js → optical-prescription-GzeK_2cf.js} +2 -2
  25. package/dist/_chunks/{patient-account-settings-DfEPHmCh.js → patient-account-settings-nSvNKKOL.js} +2 -2
  26. package/dist/_chunks/{patient-check-in-resume-TWs8CPQr.js → patient-check-in-resume-Cj2wg_NQ.js} +4 -4
  27. package/dist/_chunks/{patient-details-DQTxSWY4.js → patient-details-D0PjzALT.js} +2 -2
  28. package/dist/_chunks/{patient-field-row-CXuWQeQJ.js → patient-field-row-DlpIModg.js} +2 -2
  29. package/dist/_chunks/{patient-summary-card-j5u7c5Us.js → patient-summary-card-BP_K7g_q.js} +2 -2
  30. package/dist/_chunks/{portal-details-VfeOI4PB.js → portal-details-Cnyqf9kY.js} +2 -2
  31. package/dist/_chunks/{portal-documents-hGHlwmbv.js → portal-documents-g109Dl0O.js} +2 -2
  32. package/dist/_chunks/{portal-parts-C99CreYO.js → portal-parts-DgDFuED8.js} +2 -2
  33. package/dist/_chunks/{pregnancy-dating-C-3NLI6K.js → pregnancy-dating-a6WIg4oy.js} +2 -2
  34. package/dist/_chunks/{pregnancy-weight-gain-DkGcEc_l.js → pregnancy-weight-gain-DmrVHk9y.js} +2 -2
  35. package/dist/_chunks/prescription-history-Bp_JHhdF.js +1719 -0
  36. package/dist/_chunks/{print-sheet-CSeqkM3_.js → print-sheet-gaxObGcm.js} +110 -100
  37. package/dist/_chunks/{rich-text-editor-DFsH5RAj.js → rich-text-editor-orJ-hPgm.js} +1323 -1308
  38. package/dist/_chunks/{toolbar-Dz_hAUIZ.js → toolbar-B7UHCMSr.js} +2 -2
  39. package/dist/_chunks/{unit-converter-CBy7S4Tl.js → unit-converter-OBhSDXee.js} +2 -2
  40. package/dist/_chunks/{use-appointment-details-read-CBSpX4DI.js → use-appointment-details-read-DeQnmmZw.js} +2 -2
  41. package/dist/agent-catalog.json +141 -16
  42. package/dist/agent-i18n/en.json +11 -5
  43. package/dist/appointment-editor-panel/index.js +1 -1
  44. package/dist/browser-support.js +1 -1
  45. package/dist/components/appointment-card/appointment-card.d.ts +4 -0
  46. package/dist/components/appointment-card/index.js +2 -2
  47. package/dist/components/appointment-details-panel/index.js +1 -1
  48. package/dist/components/appointment-timeline/appointment-timeline.d.ts +51 -0
  49. package/dist/components/appointment-timeline/index.d.ts +1 -1
  50. package/dist/components/appointment-timeline/index.js +1 -1
  51. package/dist/components/bill-line-table/index.js +1 -1
  52. package/dist/components/bill-table/index.js +1 -1
  53. package/dist/components/bmi-calculator/index.js +1 -1
  54. package/dist/components/calls-panel/calls-panel.d.ts +91 -0
  55. package/dist/components/calls-panel/index.d.ts +1 -1
  56. package/dist/components/calls-panel/index.js +1 -1
  57. package/dist/components/cycle-calculator/index.js +1 -1
  58. package/dist/components/data-grid/index.js +2 -2
  59. package/dist/components/data-table/index.js +1 -1
  60. package/dist/components/due-date-calculator/index.js +1 -1
  61. package/dist/components/fetal-weight/index.js +1 -1
  62. package/dist/components/hcg-doubling/index.js +1 -1
  63. package/dist/components/invoice-upload-list/index.js +1 -1
  64. package/dist/components/medication-line/index.js +1 -1
  65. package/dist/components/medication-line/medication-line.d.ts +6 -0
  66. package/dist/components/notes-panel/index.js +1 -1
  67. package/dist/components/number-input/index.js +1 -1
  68. package/dist/components/optical-prescription/index.js +1 -1
  69. package/dist/components/patient-details/index.js +1 -1
  70. package/dist/components/patient-summary-card/index.js +1 -1
  71. package/dist/components/patient-table/index.js +1 -1
  72. package/dist/components/pregnancy-dating/index.js +1 -1
  73. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  74. package/dist/components/print-sheet/index.js +1 -1
  75. package/dist/components/print-sheet/print-sheet.d.ts +7 -0
  76. package/dist/components/rich-text-editor/index.js +2 -2
  77. package/dist/components/unit-converter/index.js +1 -1
  78. package/dist/core.css +1 -1
  79. package/dist/find-free-slots-panel/index.js +1 -1
  80. package/dist/host-compat.css +18 -1
  81. package/dist/i18n/locales/ar.d.ts +72 -10
  82. package/dist/i18n/locales/ar.js +76 -17
  83. package/dist/i18n/locales/de.d.ts +72 -10
  84. package/dist/i18n/locales/de.js +76 -17
  85. package/dist/i18n/locales/el.d.ts +72 -10
  86. package/dist/i18n/locales/el.js +79 -17
  87. package/dist/i18n/locales/en.d.ts +64 -10
  88. package/dist/i18n/locales/en.js +71 -17
  89. package/dist/i18n/locales/es.d.ts +72 -10
  90. package/dist/i18n/locales/es.js +76 -17
  91. package/dist/i18n/locales/fr.d.ts +72 -10
  92. package/dist/i18n/locales/fr.js +76 -17
  93. package/dist/i18n/locales/hi.d.ts +72 -10
  94. package/dist/i18n/locales/hi.js +79 -17
  95. package/dist/i18n/locales/it.d.ts +72 -10
  96. package/dist/i18n/locales/it.js +76 -17
  97. package/dist/i18n/locales/ja.d.ts +72 -10
  98. package/dist/i18n/locales/ja.js +79 -17
  99. package/dist/i18n/locales/nl.d.ts +72 -10
  100. package/dist/i18n/locales/nl.js +76 -17
  101. package/dist/i18n/locales/pl.d.ts +72 -10
  102. package/dist/i18n/locales/pl.js +79 -17
  103. package/dist/i18n/locales/pt.d.ts +72 -10
  104. package/dist/i18n/locales/pt.js +76 -17
  105. package/dist/i18n/locales/ro.d.ts +72 -10
  106. package/dist/i18n/locales/ro.js +76 -17
  107. package/dist/i18n/locales/ru.d.ts +72 -10
  108. package/dist/i18n/locales/ru.js +76 -17
  109. package/dist/i18n/locales/sq.d.ts +72 -10
  110. package/dist/i18n/locales/sq.js +79 -17
  111. package/dist/i18n/locales/sv.d.ts +72 -10
  112. package/dist/i18n/locales/sv.js +76 -17
  113. package/dist/i18n/locales/tr.d.ts +72 -10
  114. package/dist/i18n/locales/tr.js +76 -17
  115. package/dist/i18n/locales/zh.d.ts +72 -10
  116. package/dist/i18n/locales/zh.js +76 -17
  117. package/dist/index.js +37 -37
  118. package/dist/locales/ar.json +79 -17
  119. package/dist/locales/de.json +79 -17
  120. package/dist/locales/el.json +79 -17
  121. package/dist/locales/en.json +71 -17
  122. package/dist/locales/es.json +79 -17
  123. package/dist/locales/fr.json +79 -17
  124. package/dist/locales/hi.json +79 -17
  125. package/dist/locales/it.json +79 -17
  126. package/dist/locales/ja.json +79 -17
  127. package/dist/locales/nl.json +79 -17
  128. package/dist/locales/pl.json +79 -17
  129. package/dist/locales/pt.json +79 -17
  130. package/dist/locales/ro.json +79 -17
  131. package/dist/locales/ru.json +79 -17
  132. package/dist/locales/sq.json +79 -17
  133. package/dist/locales/sv.json +79 -17
  134. package/dist/locales/tr.json +79 -17
  135. package/dist/locales/zh.json +79 -17
  136. package/dist/online-bookings-panel/index.js +1 -1
  137. package/dist/patterns/anamnesis/index.js +1 -1
  138. package/dist/patterns/calendar/index.js +2 -2
  139. package/dist/patterns/patient-account-settings/index.js +1 -1
  140. package/dist/patterns/patient-check-in/index.js +1 -1
  141. package/dist/patterns/patient-portal/index.js +2 -2
  142. package/dist/patterns/prescription/index.d.ts +1 -1
  143. package/dist/patterns/prescription/index.js +1 -1
  144. package/dist/patterns/prescription/prescription-composer-item.d.ts +8 -1
  145. package/dist/patterns/prescription/prescription-composer.d.ts +14 -9
  146. package/dist/patterns/prescription/prescription-sheet.d.ts +23 -4
  147. package/dist/patterns/prescription/prescription-types.d.ts +35 -10
  148. package/dist/patterns/prescription/prescription-validation.d.ts +17 -11
  149. package/dist/tokens.css +1 -1
  150. package/dist/waiting-list-panel/index.js +2 -2
  151. package/package.json +1 -1
  152. package/dist/_chunks/appointment-timeline-BEwgbYyG.js +0 -455
  153. package/dist/_chunks/calls-panel-CtxJAzkJ.js +0 -1094
  154. package/dist/_chunks/medication-line-CHdlh-F7.js +0 -222
  155. package/dist/_chunks/prescription-history-748qDVwZ.js +0 -1544
@@ -1,10 +1,10 @@
1
- import { jsxs as l, jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as ne, useId as re, useRef as T, useMemo as H, useEffect as ie, useImperativeHandle as ae } from "react";
3
- import { c as oe } from "./index-D2ZczOXr.js";
4
- import { useTranslation as de } from "react-i18next";
1
+ import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
+ import { forwardRef as re, useId as ie, useRef as T, useMemo as K, useEffect as ae, useImperativeHandle as oe } from "react";
3
+ import { c as de } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as ce } from "react-i18next";
5
5
  import { u as le } from "./registry-DvAUVLHh.js";
6
- import { f as ce } from "./intl-locale-FWh-Y5_3.js";
7
- const ue = {
6
+ import { f as ue } from "./intl-locale-FWh-Y5_3.js";
7
+ const fe = {
8
8
  id: "print-sheet",
9
9
  capabilities: [],
10
10
  state: {
@@ -49,90 +49,90 @@ const ue = {
49
49
  description: "Sourced from the id prop, when provided."
50
50
  }
51
51
  }
52
- }, M = "data-print-sheet-target", E = "data-print-sheet-ancestor", V = "data-print-sheet-printing", F = "data-printing", N = "theme-light", k = "theme-dark", b = "theme-accessible", v = /* @__PURE__ */ new Set();
52
+ }, V = "data-print-sheet-target", E = "data-print-sheet-ancestor", F = "data-print-sheet-printing", G = "data-printing", N = "theme-light", k = "theme-dark", b = "theme-accessible", v = /* @__PURE__ */ new Set();
53
53
  let d = null, r = null, y = !1;
54
- function fe(e) {
54
+ function pe(e) {
55
55
  return e != null && e.isConnected ? typeof e.checkVisibility == "function" ? e.checkVisibility({ visibilityProperty: !0 }) : e.getClientRects().length > 0 : !1;
56
56
  }
57
- function pe(e) {
58
- const t = e.ownerDocument.body, s = [];
59
- for (let n = e.parentElement; n && (s.push(n), n !== t); n = n.parentElement)
57
+ function me(e) {
58
+ const t = e.ownerDocument.body, n = [];
59
+ for (let s = e.parentElement; s && (n.push(s), s !== t); s = s.parentElement)
60
60
  ;
61
- return s;
61
+ return n;
62
62
  }
63
- function me(e, t, s) {
64
- const n = {
63
+ function he(e, t, n) {
64
+ const s = {
65
65
  element: t,
66
66
  addedLight: !1,
67
67
  removedDark: !1,
68
68
  addedAccessible: !1
69
69
  };
70
- t.setAttribute(M, ""), t.setAttribute(F, "true"), t.classList.contains(k) && (t.classList.remove(k), n.removedDark = !0), t.classList.contains(N) || (t.classList.add(N), n.addedLight = !0), t.closest(`.${b}`) && !t.classList.contains(b) && (t.classList.add(b), n.addedAccessible = !0);
71
- const c = t.ownerDocument.body;
72
- for (let i = t.parentElement; i && (i.setAttribute(E, ""), s.ancestors.add(i), i !== c); i = i.parentElement)
70
+ t.setAttribute(V, ""), t.setAttribute(G, "true"), t.classList.contains(k) && (t.classList.remove(k), s.removedDark = !0), t.classList.contains(N) || (t.classList.add(N), s.addedLight = !0), t.closest(`.${b}`) && !t.classList.contains(b) && (t.classList.add(b), s.addedAccessible = !0);
71
+ const l = t.ownerDocument.body;
72
+ for (let i = t.parentElement; i && (i.setAttribute(E, ""), n.ancestors.add(i), i !== l); i = i.parentElement)
73
73
  ;
74
- s.targets.set(e, n);
74
+ n.targets.set(e, s);
75
75
  }
76
- function G(e) {
76
+ function $(e) {
77
77
  const { element: t } = e;
78
- t.removeAttribute(M), t.removeAttribute(F), e.addedLight && t.classList.remove(N), e.addedAccessible && t.classList.remove(b), e.removedDark && t.classList.add(k);
78
+ t.removeAttribute(V), t.removeAttribute(G), e.addedLight && t.classList.remove(N), e.addedAccessible && t.classList.remove(b), e.removedDark && t.classList.add(k);
79
79
  }
80
- function K(e) {
80
+ function M(e) {
81
81
  e.isTrusted && w();
82
82
  }
83
- function $(e) {
83
+ function B(e) {
84
84
  const t = e ? "addEventListener" : "removeEventListener";
85
- document[t]("pointerdown", K, !0), document[t]("keydown", K, !0);
85
+ document[t]("pointerdown", M, !0), document[t]("keydown", M, !0);
86
86
  }
87
- function B() {
87
+ function W() {
88
88
  if (r) return;
89
89
  const e = d ? [d] : [...v].filter(
90
- (s) => s.isolate() && fe(s.getElement())
90
+ (n) => n.isolate() && pe(n.getElement())
91
91
  ), t = { targets: /* @__PURE__ */ new Map(), ancestors: /* @__PURE__ */ new Set() };
92
- for (const s of e) {
93
- const n = s.getElement();
94
- n != null && n.isConnected && me(s, n, t);
92
+ for (const n of e) {
93
+ const s = n.getElement();
94
+ s != null && s.isConnected && he(n, s, t);
95
95
  }
96
96
  if (t.targets.size === 0) {
97
97
  d = null;
98
98
  return;
99
99
  }
100
- r = t, document.documentElement.setAttribute(V, ""), $(!0);
101
- for (const s of [...t.targets.keys()]) s.before();
100
+ r = t, document.documentElement.setAttribute(F, ""), B(!0);
101
+ for (const n of [...t.targets.keys()]) n.before();
102
102
  }
103
103
  function w() {
104
104
  const e = r;
105
105
  if (e) {
106
- r = null, d = null, $(!1);
107
- for (const t of e.targets.values()) G(t);
106
+ r = null, d = null, B(!1);
107
+ for (const t of e.targets.values()) $(t);
108
108
  for (const t of e.ancestors) t.removeAttribute(E);
109
- document.documentElement.removeAttribute(V);
109
+ document.documentElement.removeAttribute(F);
110
110
  for (const t of [...e.targets.keys()]) t.after();
111
111
  }
112
112
  }
113
- function he() {
114
- y || typeof window > "u" || (window.addEventListener("beforeprint", B), window.addEventListener("afterprint", w), y = !0);
115
- }
116
113
  function ge() {
117
- !y || r || (window.removeEventListener("beforeprint", B), window.removeEventListener("afterprint", w), y = !1);
114
+ y || typeof window > "u" || (window.addEventListener("beforeprint", W), window.addEventListener("afterprint", w), y = !0);
115
+ }
116
+ function be() {
117
+ !y || r || (window.removeEventListener("beforeprint", W), window.removeEventListener("afterprint", w), y = !1);
118
118
  }
119
- function be(e) {
120
- return v.add(e), he(), () => {
119
+ function ve(e) {
120
+ return v.add(e), ge(), () => {
121
121
  v.delete(e), d === e && (d = null);
122
122
  const t = r == null ? void 0 : r.targets.get(e);
123
123
  if (r && t) {
124
- G(t), r.targets.delete(e);
125
- const s = /* @__PURE__ */ new Set();
126
- for (const n of r.targets.values())
127
- for (const c of pe(n.element)) s.add(c);
128
- for (const n of [...r.ancestors])
129
- s.has(n) || (n.removeAttribute(E), r.ancestors.delete(n));
124
+ $(t), r.targets.delete(e);
125
+ const n = /* @__PURE__ */ new Set();
126
+ for (const s of r.targets.values())
127
+ for (const l of me(s.element)) n.add(l);
128
+ for (const s of [...r.ancestors])
129
+ n.has(s) || (s.removeAttribute(E), r.ancestors.delete(s));
130
130
  e.after(), r.targets.size === 0 && w();
131
131
  }
132
- v.size === 0 && ge();
132
+ v.size === 0 && be();
133
133
  };
134
134
  }
135
- function ve(e) {
135
+ function ye(e) {
136
136
  if (!(typeof window > "u")) {
137
137
  d = e;
138
138
  try {
@@ -142,13 +142,18 @@ function ve(e) {
142
142
  }
143
143
  }
144
144
  }
145
- function ye(e) {
145
+ function we(e) {
146
146
  return (r == null ? void 0 : r.targets.has(e)) ?? !1;
147
147
  }
148
- const we = oe(
148
+ const Se = de(
149
149
  [
150
- "ds:relative ds:mx-auto ds:flex ds:w-full ds:flex-col ds:box-border",
151
- "ds:[max-inline-size:var(--print-sheet-inline-size)]",
150
+ "ds:relative ds:mx-auto ds:flex ds:flex-col ds:box-border",
151
+ /* The width is a preferred size, not a max-width: a max-width would be
152
+ carried through the aspect ratio into a maximum height, and in a flex
153
+ parent that clamps the automatic minimum size, so content taller than
154
+ one page would overflow the frame. As a preferred size the ratio is a
155
+ minimum and the sheet grows with its content. */
156
+ "ds:[inline-size:min(100%,var(--print-sheet-inline-size))]",
152
157
  "ds:[aspect-ratio:var(--print-sheet-ratio)]",
153
158
  "ds:bg-[var(--card)] ds:text-[color:var(--card-foreground)]",
154
159
  "ds:rounded-[var(--radius-md)]",
@@ -164,29 +169,29 @@ const we = oe(
164
169
  },
165
170
  defaultVariants: { density: "default" }
166
171
  }
167
- ), W = /^(\d{4})-(\d{2})-(\d{2})$/;
168
- function Se(e) {
172
+ ), Y = /^(\d{4})-(\d{2})-(\d{2})$/;
173
+ function xe(e) {
169
174
  let t;
170
175
  if (e instanceof Date)
171
176
  t = e;
172
177
  else if (typeof e == "number")
173
178
  t = new Date(e);
174
179
  else {
175
- const s = W.exec(e);
176
- t = s ? new Date(Number(s[1]), Number(s[2]) - 1, Number(s[3])) : new Date(e);
180
+ const n = Y.exec(e);
181
+ t = n ? new Date(Number(n[1]), Number(n[2]) - 1, Number(n[3])) : new Date(e);
177
182
  }
178
183
  return Number.isNaN(t.getTime()) ? null : t;
179
184
  }
180
- function xe(e, t) {
181
- return typeof e == "string" && W.test(e) ? e : t.toISOString();
185
+ function Le(e, t) {
186
+ return typeof e == "string" && Y.test(e) ? e : t.toISOString();
182
187
  }
183
- const Ae = ne(
188
+ const Ae = re(
184
189
  ({
185
190
  size: e = "a4",
186
191
  density: t = "default",
187
- header: s,
188
- title: n,
189
- headingLevel: c = 2,
192
+ header: n,
193
+ title: s,
194
+ headingLevel: l = 2,
190
195
  date: i,
191
196
  signature: u,
192
197
  footer: f,
@@ -194,22 +199,23 @@ const Ae = ne(
194
199
  onBeforePrint: D,
195
200
  onAfterPrint: z,
196
201
  "aria-label": I,
197
- "aria-labelledby": Y,
202
+ "aria-labelledby": q,
198
203
  id: S,
199
- className: q,
200
- children: J,
201
- ...Q
202
- }, U) => {
203
- const { t: x, i18n: X } = de("ui"), P = re(), A = T(null), C = T(null), p = T({
204
+ registerAgent: P = !0,
205
+ className: J,
206
+ children: Q,
207
+ ...U
208
+ }, X) => {
209
+ const { t: x, i18n: Z } = ce("ui"), C = ie(), L = T(null), _ = T(null), p = T({
204
210
  size: e,
205
211
  isolateBrowserPrint: R,
206
212
  onBeforePrint: D,
207
213
  onAfterPrint: z
208
214
  });
209
215
  p.current = { size: e, isolateBrowserPrint: R, onBeforePrint: D, onAfterPrint: z };
210
- const m = H(
216
+ const m = K(
211
217
  () => ({
212
- getElement: () => A.current,
218
+ getElement: () => L.current,
213
219
  isolate: () => p.current.isolateBrowserPrint,
214
220
  before: () => {
215
221
  var o, g;
@@ -222,67 +228,71 @@ const Ae = ne(
222
228
  }),
223
229
  []
224
230
  );
225
- ie(() => be(m), [m]);
226
- const L = H(
231
+ ae(() => ve(m), [m]);
232
+ const A = K(
227
233
  () => ({
228
- print: () => ve(m),
229
- isPrinting: () => ye(m),
234
+ print: () => ye(m),
235
+ isPrinting: () => we(m),
230
236
  getSize: () => p.current.size,
231
- getElement: () => A.current,
237
+ getElement: () => L.current,
232
238
  focusTitle: () => {
233
239
  var o;
234
- return (o = C.current) == null ? void 0 : o.focus();
240
+ return (o = _.current) == null ? void 0 : o.focus();
235
241
  }
236
242
  }),
237
243
  [m]
238
244
  );
239
- ae(U, () => L, [L]), le(ue, L, S);
240
- const Z = `h${c}`, _ = n != null && n !== !1, h = i == null ? null : Se(i), ee = h ? new Intl.DateTimeFormat(ce(X.language), {
245
+ oe(X, () => A, [A]), le(
246
+ fe,
247
+ A,
248
+ P ? S : void 0
249
+ );
250
+ const ee = `h${l}`, O = s != null && s !== !1, h = i == null ? null : xe(i), te = h ? new Intl.DateTimeFormat(ue(Z.language), {
241
251
  dateStyle: "long"
242
- }).format(h) : "", O = h != null || u != null, te = f != null && f !== !1 || O, j = Y ?? (I == null && _ ? P : void 0), se = j == null ? I ?? x("printSheet.label") : void 0;
243
- return /* @__PURE__ */ l(
252
+ }).format(h) : "", j = h != null || u != null, ne = f != null && f !== !1 || j, H = q ?? (I == null && O ? C : void 0), se = H == null ? I ?? x("printSheet.label") : void 0;
253
+ return /* @__PURE__ */ c(
244
254
  "article",
245
255
  {
246
- ...Q,
247
- ref: A,
256
+ ...U,
257
+ ref: L,
248
258
  id: S,
249
259
  "aria-label": se,
250
- "aria-labelledby": j,
251
- className: we({ density: t, className: q }),
260
+ "aria-labelledby": H,
261
+ className: Se({ density: t, className: J }),
252
262
  "data-component": "print-sheet",
253
- "data-component-id": S,
263
+ "data-component-id": P ? S : void 0,
254
264
  "data-size": e,
255
265
  "data-density": t,
256
266
  children: [
257
- s != null && s !== !1 ? /* @__PURE__ */ a("header", { className: "ds:break-inside-avoid ds:break-after-avoid", children: s }) : null,
258
- _ ? /* @__PURE__ */ a(
259
- Z,
267
+ n != null && n !== !1 ? /* @__PURE__ */ a("header", { className: "ds:break-inside-avoid ds:break-after-avoid", children: n }) : null,
268
+ O ? /* @__PURE__ */ a(
269
+ ee,
260
270
  {
261
- ref: C,
262
- id: P,
271
+ ref: _,
272
+ id: C,
263
273
  tabIndex: -1,
264
274
  className: "ds:m-0 type-title-section ds:break-after-avoid ds:focus:outline-none",
265
- children: n
275
+ children: s
266
276
  }
267
277
  ) : null,
268
- /* @__PURE__ */ a("div", { "data-slot": "body", children: J }),
269
- te ? /* @__PURE__ */ l("footer", { className: "ds:mt-auto ds:flex ds:flex-col ds:gap-[var(--spacing-lg)] ds:break-inside-avoid ds:break-before-avoid", children: [
278
+ /* @__PURE__ */ a("div", { "data-slot": "body", children: Q }),
279
+ ne ? /* @__PURE__ */ c("footer", { className: "ds:mt-auto ds:flex ds:flex-col ds:gap-[var(--spacing-lg)] ds:break-inside-avoid ds:break-before-avoid", children: [
270
280
  f != null && f !== !1 ? /* @__PURE__ */ a("div", { children: f }) : null,
271
- O ? /* @__PURE__ */ l("div", { className: "ds:flex ds:items-end ds:justify-between ds:gap-[var(--spacing-lg)]", children: [
272
- h ? /* @__PURE__ */ l("p", { className: "ds:m-0 ds:flex ds:flex-col type-body-sm", children: [
281
+ j ? /* @__PURE__ */ c("div", { className: "ds:flex ds:items-end ds:justify-between ds:gap-[var(--spacing-lg)]", children: [
282
+ h ? /* @__PURE__ */ c("p", { className: "ds:m-0 ds:flex ds:flex-col type-body-sm", children: [
273
283
  /* @__PURE__ */ a("span", { className: "type-label ds:text-[color:var(--muted-foreground)]", children: x("printSheet.date") }),
274
284
  /* @__PURE__ */ a(
275
285
  "time",
276
286
  {
277
- dateTime: xe(
287
+ dateTime: Le(
278
288
  i,
279
289
  h
280
290
  ),
281
- children: ee
291
+ children: te
282
292
  }
283
293
  )
284
294
  ] }) : null,
285
- u ? /* @__PURE__ */ l("div", { className: "ds:ms-auto ds:basis-1/2 ds:flex ds:flex-col", children: [
295
+ u ? /* @__PURE__ */ c("div", { className: "ds:ms-auto ds:basis-1/2 ds:flex ds:flex-col", children: [
286
296
  /* @__PURE__ */ a(
287
297
  "div",
288
298
  {
@@ -290,7 +300,7 @@ const Ae = ne(
290
300
  className: "ds:h-[var(--spacing-2xl)]"
291
301
  }
292
302
  ),
293
- /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:border-t ds:border-[color:var(--foreground)] ds:pt-[var(--spacing-xs)]", children: [
303
+ /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:border-t ds:border-[color:var(--foreground)] ds:pt-[var(--spacing-xs)]", children: [
294
304
  /* @__PURE__ */ a("span", { className: "type-label ds:text-[color:var(--muted-foreground)]", children: x("printSheet.signature") }),
295
305
  /* @__PURE__ */ a("span", { dir: "auto", className: "type-body-sm ds:font-medium", children: u.name }),
296
306
  u.detail ? /* @__PURE__ */ a(
@@ -313,6 +323,6 @@ const Ae = ne(
313
323
  Ae.displayName = "PrintSheet";
314
324
  export {
315
325
  Ae as P,
316
- ue as p
326
+ fe as p
317
327
  };
318
- //# sourceMappingURL=print-sheet-CSeqkM3_.js.map
328
+ //# sourceMappingURL=print-sheet-gaxObGcm.js.map