@revolist/ui 4.0.2-rc → 4.0.3-rc

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 (161) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +345 -263
  3. package/_chunks/{calendar-CpaUK7w1.js → calendar-xpZ0v3xf.js} +39 -29
  4. package/_chunks/{chart-frame-BC99KjGa.js → chart-frame-Cmc7xU1i.js} +16 -13
  5. package/_chunks/{choice-chips-Cs4D-3nH.js → choice-chips-CHQTUdLs.js} +10 -10
  6. package/_chunks/clock-BOhPNlW3.js +4 -0
  7. package/_chunks/{color-palette-BBMFmUNA.js → color-palette-D8vyPfld.js} +1 -1
  8. package/_chunks/{color-picker-D90Jg-M8.js → color-picker-CudqPYZo.js} +10 -10
  9. package/_chunks/{component-YDcfoOLz.js → component-C_T2VN5u.js} +182 -178
  10. package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BMOOmqx5.js} +0 -4
  11. package/_chunks/control-AHKXD5Eu.js +93 -0
  12. package/_chunks/{control-tooltip-ztgmsG7H.js → control-tooltip-uscKfAnV.js} +15 -15
  13. package/_chunks/{controls-DIum-E66.js → controls-DsNi8V8I.js} +144 -129
  14. package/_chunks/{date-control-BJSzu79z.js → date-control-DrVFX13g.js} +1 -1
  15. package/_chunks/{date-time-BxPJusp9.js → date-time-qIhp5vaX.js} +143 -145
  16. package/_chunks/{delete-button-Bblyah10.js → delete-button-CW9vjLnk.js} +6 -6
  17. package/_chunks/{dialog.parts-DBqo3Qwb.js → dialog.parts-CKGkC5zP.js} +20 -20
  18. package/_chunks/{duration-87U2EoMS.js → duration-CL68Em0o.js} +16 -15
  19. package/_chunks/{editor-popup-D3JdS8l3.js → editor-popup-WDdtVDNA.js} +5 -5
  20. package/_chunks/field-context-D57PnBbH.js +5 -0
  21. package/_chunks/{framework-mount-C-Zwm44H.js → framework-mount--RTLIqE-.js} +1 -1
  22. package/_chunks/history-controls-B3u3INEK.js +27 -0
  23. package/_chunks/mount-DQ1cpppK.js +257 -0
  24. package/_chunks/native-control-C_yok8_-.js +605 -0
  25. package/_chunks/{number-input-BeIadZuL.js → number-input-BKwA5FnM.js} +2 -2
  26. package/_chunks/{picker-DpP7iQLA.js → picker-h1P5RUgp.js} +2 -2
  27. package/_chunks/popup-CT2uD3go.js +367 -0
  28. package/_chunks/{rating-choice-Ca8ZBty3.js → rating-choice-DZgmaic0.js} +1 -1
  29. package/_chunks/render-m5eMMwFR.js +83 -0
  30. package/_chunks/{reorder-list-Cc3KmfAN.js → reorder-list-CSlqAGHw.js} +1 -1
  31. package/_chunks/request-trail-DSlFix6i.js +618 -0
  32. package/_chunks/rich-text-CH7gIqOS.js +636 -0
  33. package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
  34. package/_form.scss +1 -1
  35. package/ai/_chat.scss +195 -0
  36. package/ai/_style.scss +105 -34
  37. package/ai/chat.d.ts +63 -0
  38. package/ai/components.d.ts +19 -3
  39. package/ai/index.d.ts +2 -0
  40. package/ai/index.js +3 -3
  41. package/ai/mount.d.ts +30 -1
  42. package/ai/prompt-history.d.ts +13 -0
  43. package/ai/transcript.d.ts +25 -0
  44. package/ai/translations.d.ts +1 -1
  45. package/angular/angular.js +0 -3
  46. package/assignee/index.js +34 -35
  47. package/buttons/delete-button.d.ts +2 -1
  48. package/buttons/delete-button.js +1 -1
  49. package/buttons/remove-button.js +1 -1
  50. package/buttons/svg-button.d.ts +1 -0
  51. package/buttons/svg-button.js +5 -5
  52. package/calendar/_calendar.scss +7 -2
  53. package/calendar/calendar.js +1 -1
  54. package/calendar/index.js +2 -2
  55. package/choice-chips/index.js +1 -1
  56. package/color-palette/color-palette.js +1 -1
  57. package/color-palette/color-picker.js +2 -2
  58. package/component-catalog.d.ts +16 -5
  59. package/control-attributes.js +7 -7
  60. package/controls.d.ts +8 -6
  61. package/controls.js +3 -3
  62. package/core/editor-popup.js +1 -1
  63. package/date-time/index.js +1 -1
  64. package/date-time/style.scss +4 -4
  65. package/dialog/dialog.dom.js +8 -8
  66. package/dialog/dialog.parts.js +1 -1
  67. package/distribution-chart/area-chart.js +1 -1
  68. package/distribution-chart/bar-chart.d.ts +5 -2
  69. package/distribution-chart/bar-chart.js +7 -3
  70. package/distribution-chart/chart-frame.d.ts +2 -1
  71. package/distribution-chart/line-chart.js +1 -1
  72. package/dropdown/content.d.ts +2 -1
  73. package/dropdown/content.js +1 -142
  74. package/dropdown/control.d.ts +14 -0
  75. package/dropdown/control.js +1 -0
  76. package/dropdown/control.view.d.ts +6 -0
  77. package/dropdown/dropdown.types.d.ts +4 -0
  78. package/dropdown/editor-dropdown.style.scss +37 -9
  79. package/dropdown/index.d.ts +1 -1
  80. package/dropdown/index.js +3 -4
  81. package/dropdown/lookup-field.js +1 -1
  82. package/dropdown/popup.js +1 -141
  83. package/duration/index.js +1 -1
  84. package/duration/style.scss +1 -1
  85. package/editor-actions.js +1 -1
  86. package/field-configurator.js +6 -6
  87. package/fieldset.d.ts +3 -0
  88. package/filter/filters/slider/single.js +1 -1
  89. package/filter-badge.js +1 -1
  90. package/filter-controls.js +7 -7
  91. package/form-controls/field-context.d.ts +5 -0
  92. package/form-controls/index.js +7 -12
  93. package/form-controls/index.view.d.ts +2 -4
  94. package/form-controls/presentation.js +51 -43
  95. package/formatting/index.js +25 -21
  96. package/framework.js +215 -207
  97. package/history-controls.d.ts +14 -0
  98. package/history-controls.js +1 -0
  99. package/masked-input/index.js +1 -1
  100. package/native-control.d.ts +6 -4
  101. package/native-control.js +3 -26
  102. package/native-styles.css +1 -1
  103. package/native.js +31 -30
  104. package/number-input/index.js +1 -1
  105. package/package.json +18 -13
  106. package/pagination.d.ts +3 -0
  107. package/pagination.js +43 -33
  108. package/pdf-viewer/index.js +1 -1
  109. package/pdf-viewer/style.scss +3 -4
  110. package/preact.d.ts +2 -0
  111. package/preact.js +62 -62
  112. package/rating-choice.js +1 -1
  113. package/react-control.d.ts +0 -1
  114. package/react-control.js +2 -2
  115. package/react.d.ts +13 -3
  116. package/react.js +71 -88
  117. package/reorder-list.js +1 -1
  118. package/resource-picker/resource-picker-popup.js +1 -1
  119. package/resource-picker/resource-picker.js +4 -4
  120. package/resource-picker/resource-picker.scss +6 -3
  121. package/rich-text/engine.d.ts +16 -19
  122. package/rich-text/index.d.ts +7 -7
  123. package/rich-text/index.js +1 -1
  124. package/rich-text/model.d.ts +4 -3
  125. package/rich-text/render-model.d.ts +4 -5
  126. package/rich-text/style.scss +3 -12
  127. package/rich-text/toolbar.d.ts +6 -6
  128. package/rich-text/translations.d.ts +3 -15
  129. package/select.d.ts +20 -0
  130. package/select.js +1 -0
  131. package/status-feedback/exit-snapshot.js +4 -4
  132. package/status-feedback/index.js +2 -2
  133. package/status-feedback/popover.js +10 -10
  134. package/status-feedback/render.js +3 -44
  135. package/status-feedback/status-feedback.scss +7 -0
  136. package/status-feedback/types.d.ts +4 -0
  137. package/status-feedback/use-auto-dismiss.d.ts +3 -0
  138. package/styles/_compositions.scss +3 -1
  139. package/styles/_control.scss +12 -4
  140. package/styles/_primitives.scss +9 -8
  141. package/styles.css +1 -1
  142. package/surfaces.js +45 -45
  143. package/svelte/UiComponent.server.js +1 -48
  144. package/svelte/UiComponent.svelte +0 -21
  145. package/svelte.js +33 -68
  146. package/time-grid.js +1 -1
  147. package/timeline-track/component.d.ts +5 -1
  148. package/timeline-track/index.js +71 -54
  149. package/timeline-track/model.d.ts +9 -0
  150. package/timeline-track/model.js +10 -1
  151. package/ui.css +1 -1
  152. package/vue.d.ts +24 -5
  153. package/vue.js +140 -164
  154. package/_chunks/compat.module-DDB2pm9O.js +0 -229
  155. package/_chunks/dropdown-voWqmwAe.js +0 -357
  156. package/_chunks/mount-DZe_6VtR.js +0 -90
  157. package/_chunks/request-trail-IdNiFvKH.js +0 -347
  158. package/_chunks/rich-text-BzI1DyfF.js +0 -477
  159. package/react-native-select.d.ts +0 -6
  160. package/rich-text/syntax.d.ts +0 -2
  161. package/vue-native-select.d.ts +0 -9
@@ -2,28 +2,28 @@ import { c as e, i as t } from "./preact.module-BBM36DnO.js";
2
2
  import { i as n, n as r, r as i, t as a } from "./hooks.module-CG3gN83z.js";
3
3
  import { t as o } from "./jsxRuntime.module-F6UFnpT-.js";
4
4
  import { SvgIcon as s } from "../icons/icon.js";
5
- import { t as c } from "./compat.module-DDB2pm9O.js";
6
- import { Input as l, Select as u } from "../native-control.js";
7
- import { I as d, L as f, O as p, S as m, _ as h, m as g, n as _, u as v, z as y } from "./controls-DIum-E66.js";
8
- import { t as b } from "./chevron-left-D0nc4Z5S.js";
9
- import { t as x } from "./chevron-right-sxHQMSkq.js";
10
- import { createControlId as S } from "../core/control-id.js";
11
- import { t as C } from "./chevron-down-GbplLa6s.js";
5
+ import { l as c, n as l } from "./native-control-C_yok8_-.js";
6
+ import { n as u } from "./popup-CT2uD3go.js";
7
+ import { t as d } from "./chevron-down-GbplLa6s.js";
8
+ import { D as f, F as p, I as m, R as h, _ as g, m as _, n as v, u as y, x as b } from "./controls-DsNi8V8I.js";
9
+ import { t as x } from "./chevron-left-D0nc4Z5S.js";
10
+ import { t as S } from "./chevron-right-sxHQMSkq.js";
11
+ import { createControlId as C } from "../core/control-id.js";
12
12
  import { t as w } from "./xmark-DD_PBvZI.js";
13
13
  import { DialogController as T, PopoverController as E, TooltipController as D, attachMenuKeyboard as O } from "../surfaces.js";
14
- import { avatarTemplate as k } from "../avatar/index.js";
15
- import { renderProgressBar as A } from "../progress/bar.js";
16
- import { SearchInput as j } from "../search-input/index.js";
17
- import { s as M } from "./iso-B0YHBK7m.js";
18
- import { f as N, h as P, o as F } from "./model-mPO2tG2f.js";
19
- import { n as I, t as L } from "./date-control-BJSzu79z.js";
20
- import { t as R } from "./calendar-CpaUK7w1.js";
21
- import { t as z } from "./dropdown-voWqmwAe.js";
22
- import { t as ee } from "./chevron-up-BLuNMPDn.js";
23
- import { t as te } from "./controller-hRBm_Lfz.js";
14
+ import { t as k } from "./rotate-right-Iha5ScJ1.js";
15
+ import { t as A } from "./chevron-up-BLuNMPDn.js";
16
+ import { avatarTemplate as j } from "../avatar/index.js";
17
+ import { renderProgressBar as M } from "../progress/bar.js";
18
+ import { SearchInput as ee } from "../search-input/index.js";
19
+ import { s as N } from "./iso-B0YHBK7m.js";
20
+ import { f as P, h as F, o as I } from "./model-mPO2tG2f.js";
21
+ import { n as L, t as R } from "./date-control-DrVFX13g.js";
22
+ import { t as z } from "./calendar-xpZ0v3xf.js";
23
+ import { t as B } from "./controller-hRBm_Lfz.js";
24
24
  //#region src/pickers.tsx
25
- function B(e) {
26
- return /* @__PURE__ */ o(z, {
25
+ function V(e) {
26
+ return /* @__PURE__ */ o(c, {
27
27
  ...e,
28
28
  className: `rv-combobox ${e.className ?? ""}`,
29
29
  config: {
@@ -33,8 +33,8 @@ function B(e) {
33
33
  }
34
34
  });
35
35
  }
36
- function V(e) {
37
- return /* @__PURE__ */ o(z, {
36
+ function H(e) {
37
+ return /* @__PURE__ */ o(c, {
38
38
  ...e,
39
39
  className: `rv-multi-select ${e.className ?? ""}`,
40
40
  config: {
@@ -43,11 +43,11 @@ function V(e) {
43
43
  }
44
44
  });
45
45
  }
46
- function H(t) {
47
- return k(e, t);
48
- }
49
46
  function U(t) {
50
- return A(e, t);
47
+ return j(e, t);
48
+ }
49
+ function te(t) {
50
+ return M(e, t);
51
51
  }
52
52
  function W({ open: e, anchor: t, appendTo: n, onClose: r, children: s, label: c, className: l = "", role: u = "dialog" }) {
53
53
  let d = a(null), f = a(r);
@@ -106,9 +106,9 @@ function ne({ text: e, children: t }) {
106
106
  children: t
107
107
  });
108
108
  }
109
- function G({ open: e, title: r, closeLabel: s, onClose: l, children: u, footer: d, draggable: f, returnFocus: p }) {
110
- let m = a(null), h = a(l);
111
- h.current = l;
109
+ function G({ open: e, title: r, closeLabel: s, onClose: c, children: l, footer: d, draggable: f, returnFocus: p }) {
110
+ let m = a(null), h = a(c);
111
+ h.current = c;
112
112
  let [g, _] = n();
113
113
  return i(() => {
114
114
  if (!e || !m.current) {
@@ -142,18 +142,18 @@ function G({ open: e, title: r, closeLabel: s, onClose: l, children: u, footer:
142
142
  ref: m,
143
143
  hidden: !0
144
144
  }),
145
- g && c(u, g.body),
146
- g && d && c(d, g.footer)
145
+ g && u(l, g.body),
146
+ g && d && u(d, g.footer)
147
147
  ] });
148
148
  }
149
149
  function re({ onConfirm: e, confirmLabel: n, cancelLabel: r, pending: i, ...a }) {
150
150
  return /* @__PURE__ */ o(G, {
151
151
  ...a,
152
- footer: /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(_, {
152
+ footer: /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(v, {
153
153
  disabled: i,
154
154
  onClick: a.onClose,
155
155
  children: r
156
- }), /* @__PURE__ */ o(_, {
156
+ }), /* @__PURE__ */ o(v, {
157
157
  variant: "primary",
158
158
  disabled: i,
159
159
  onClick: e,
@@ -162,13 +162,13 @@ function re({ onConfirm: e, confirmLabel: n, cancelLabel: r, pending: i, ...a })
162
162
  });
163
163
  }
164
164
  function ie({ value: e, onChange: t, label: r, openLabel: a, disabled: c, readOnly: l, ...u }) {
165
- let [d, f] = n(!1), [p, m] = n(null), [h, g] = n(e && M(e) ? e : P()), [v, y] = n(N(h, u.calendarSystem)), [b] = n(() => S("rv-date-picker"));
165
+ let [d, f] = n(!1), [p, m] = n(null), [h, g] = n(e && N(e) ? e : F()), [_, y] = n(P(h, u.calendarSystem)), [b] = n(() => C("rv-date-picker"));
166
166
  return i(() => {
167
167
  (c || l) && f(!1);
168
168
  }, [c, l]), /* @__PURE__ */ o("div", {
169
169
  class: "rv-date-picker",
170
170
  children: [
171
- /* @__PURE__ */ o(L, {
171
+ /* @__PURE__ */ o(R, {
172
172
  label: r,
173
173
  value: e ?? "",
174
174
  minDate: u.minDate,
@@ -176,10 +176,10 @@ function ie({ value: e, onChange: t, label: r, openLabel: a, disabled: c, readOn
176
176
  disabled: c,
177
177
  readOnly: l,
178
178
  onChange: (e) => {
179
- typeof e != "string" || c || l || e && (u.minDate && e < u.minDate || u.maxDate && e > u.maxDate) || (!e || M(e)) && t(e || void 0);
179
+ typeof e != "string" || c || l || e && (u.minDate && e < u.minDate || u.maxDate && e > u.maxDate) || (!e || N(e)) && t(e || void 0);
180
180
  }
181
181
  }),
182
- /* @__PURE__ */ o(_, {
182
+ /* @__PURE__ */ o(v, {
183
183
  ref: m,
184
184
  "aria-label": a,
185
185
  "aria-haspopup": "dialog",
@@ -187,9 +187,9 @@ function ie({ value: e, onChange: t, label: r, openLabel: a, disabled: c, readOn
187
187
  "aria-controls": b,
188
188
  disabled: c || l,
189
189
  onClick: () => {
190
- e && M(e) && (g(e), y(N(e, u.calendarSystem))), f(!d);
190
+ e && N(e) && (g(e), y(P(e, u.calendarSystem))), f(!d);
191
191
  },
192
- children: /* @__PURE__ */ o(s, { svg: I })
192
+ children: /* @__PURE__ */ o(s, { svg: L })
193
193
  }),
194
194
  /* @__PURE__ */ o(W, {
195
195
  open: d,
@@ -198,9 +198,9 @@ function ie({ value: e, onChange: t, label: r, openLabel: a, disabled: c, readOn
198
198
  label: r,
199
199
  children: /* @__PURE__ */ o("div", {
200
200
  id: b,
201
- children: /* @__PURE__ */ o(R, {
201
+ children: /* @__PURE__ */ o(z, {
202
202
  ...u,
203
- month: v,
203
+ month: _,
204
204
  focusedDate: h,
205
205
  selection: e ? {
206
206
  from: e,
@@ -218,21 +218,21 @@ function ie({ value: e, onChange: t, label: r, openLabel: a, disabled: c, readOn
218
218
  });
219
219
  }
220
220
  function ae({ value: e, onChange: t, label: r, fromLabel: a, toLabel: c, openLabel: l, disabled: u, readOnly: d, ...f }) {
221
- let [p, m] = n(!1), [h, g] = n(null), [v, y] = n(), [b, x] = n(e?.from ?? P()), [C, w] = n(N(b, f.calendarSystem)), [T] = n(() => S("rv-date-picker"));
221
+ let [p, m] = n(!1), [h, g] = n(null), [_, y] = n(), [b, x] = n(e?.from ?? F()), [S, w] = n(P(b, f.calendarSystem)), [T] = n(() => C("rv-date-picker"));
222
222
  i(() => {
223
223
  (u || d) && (m(!1), y(void 0));
224
224
  }, [u, d]);
225
225
  let E = (n, r) => {
226
- if (u || d || !M(r) || f.minDate && r < f.minDate || f.maxDate && r > f.maxDate) return;
226
+ if (u || d || !N(r) || f.minDate && r < f.minDate || f.maxDate && r > f.maxDate) return;
227
227
  let i = r;
228
- t(F(n === "from" ? i : e?.from ?? i, n === "to" ? i : e?.to ?? i));
228
+ t(I(n === "from" ? i : e?.from ?? i, n === "to" ? i : e?.to ?? i));
229
229
  };
230
230
  return /* @__PURE__ */ o("div", {
231
231
  class: "rv-date-range-picker",
232
232
  role: "group",
233
233
  "aria-label": r,
234
234
  children: [
235
- /* @__PURE__ */ o(L, {
235
+ /* @__PURE__ */ o(R, {
236
236
  label: a,
237
237
  value: e?.from ?? "",
238
238
  disabled: u,
@@ -243,7 +243,7 @@ function ae({ value: e, onChange: t, label: r, fromLabel: a, toLabel: c, openLab
243
243
  typeof e == "string" && E("from", e);
244
244
  }
245
245
  }),
246
- /* @__PURE__ */ o(L, {
246
+ /* @__PURE__ */ o(R, {
247
247
  label: c,
248
248
  value: e?.to ?? "",
249
249
  disabled: u,
@@ -254,7 +254,7 @@ function ae({ value: e, onChange: t, label: r, fromLabel: a, toLabel: c, openLab
254
254
  typeof e == "string" && E("to", e);
255
255
  }
256
256
  }),
257
- /* @__PURE__ */ o(_, {
257
+ /* @__PURE__ */ o(v, {
258
258
  ref: g,
259
259
  disabled: u || d,
260
260
  "aria-label": l,
@@ -262,9 +262,9 @@ function ae({ value: e, onChange: t, label: r, fromLabel: a, toLabel: c, openLab
262
262
  "aria-expanded": p,
263
263
  "aria-controls": T,
264
264
  onClick: () => {
265
- y(void 0), e && (x(e.from), w(N(e.from, f.calendarSystem))), m(!p);
265
+ y(void 0), e && (x(e.from), w(P(e.from, f.calendarSystem))), m(!p);
266
266
  },
267
- children: /* @__PURE__ */ o(s, { svg: I })
267
+ children: /* @__PURE__ */ o(s, { svg: L })
268
268
  }),
269
269
  /* @__PURE__ */ o(W, {
270
270
  open: p,
@@ -275,15 +275,15 @@ function ae({ value: e, onChange: t, label: r, fromLabel: a, toLabel: c, openLab
275
275
  label: r,
276
276
  children: /* @__PURE__ */ o("div", {
277
277
  id: T,
278
- children: /* @__PURE__ */ o(R, {
278
+ children: /* @__PURE__ */ o(z, {
279
279
  ...f,
280
- month: C,
280
+ month: S,
281
281
  focusedDate: b,
282
- selection: v ? F(v, b) : e,
282
+ selection: _ ? I(_, b) : e,
283
283
  onMonthChange: w,
284
284
  onFocusedDateChange: x,
285
285
  onSelect: (e) => {
286
- v ? (t(F(v, e)), y(void 0), m(!1), h?.focus()) : y(e);
286
+ _ ? (t(I(_, e)), y(void 0), m(!1), h?.focus()) : y(e);
287
287
  }
288
288
  })
289
289
  })
@@ -362,28 +362,28 @@ function X(e, t) {
362
362
  //#endregion
363
363
  //#region src/pdf-viewer/icons.ts
364
364
  var Z = {
365
- previous: b,
366
- next: x,
365
+ previous: x,
366
+ next: S,
367
367
  document: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M96 0C60.7 0 32 28.7 32 64l0 384c0 35.3 28.7 64 64 64l80 0 0-112c0-35.3 28.7-64 64-64l176 0 0-165.5c0-17-6.7-33.3-18.7-45.3L290.7 18.7C278.7 6.7 262.5 0 245.5 0L96 0zM357.5 176L264 176c-13.3 0-24-10.7-24-24L240 58.5 357.5 176zM240 380c-11 0-20 9-20 20l0 128c0 11 9 20 20 20s20-9 20-20l0-28 12 0c33.1 0 60-26.9 60-60s-26.9-60-60-60l-32 0zm32 80l-12 0 0-40 12 0c11 0 20 9 20 20s-9 20-20 20zm96-80c-11 0-20 9-20 20l0 128c0 11 9 20 20 20l32 0c28.7 0 52-23.3 52-52l0-64c0-28.7-23.3-52-52-52l-32 0zm20 128l0-88 12 0c6.6 0 12 5.4 12 12l0 64c0 6.6-5.4 12-12 12l-12 0zm88-108l0 128c0 11 9 20 20 20s20-9 20-20l0-44 28 0c11 0 20-9 20-20s-9-20-20-20l-28 0 0-24 28 0c11 0 20-9 20-20s-9-20-20-20l-48 0c-11 0-20 9-20 20z\"/></svg>",
368
368
  open: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M56 225.6L32.4 296.2 32.4 96c0-35.3 28.7-64 64-64l138.7 0c13.8 0 27.3 4.5 38.4 12.8l38.4 28.8c5.5 4.2 12.3 6.4 19.2 6.4l117.3 0c35.3 0 64 28.7 64 64l0 16-365.4 0c-41.3 0-78 26.4-91.1 65.6zM477.8 448L99 448c-32.8 0-55.9-32.1-45.5-63.2l48-144C108 221.2 126.4 208 147 208l378.8 0c32.8 0 55.9 32.1 45.5 63.2l-48 144c-6.5 19.6-24.9 32.8-45.5 32.8z\"/></svg>",
369
369
  search: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z\"/></svg>",
370
370
  minus: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z\"/></svg>",
371
371
  plus: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z\"/></svg>",
372
- rotate: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M488 192l-144 0c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l46.7-46.7c-75.3-58.6-184.3-53.3-253.5 15.9-75 75-75 196.5 0 271.5s196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c94.3-94.3 243.7-99.6 344.3-16.2L471 7c6.9-6.9 17.2-8.9 26.2-5.2S512 14.3 512 24l0 144c0 13.3-10.7 24-24 24z\"/></svg>",
372
+ rotate: k,
373
373
  download: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M256 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 210.7-41.4-41.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 242.7 256 32zM64 320c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-46.9 0-56.6 56.6c-31.2 31.2-81.9 31.2-113.1 0L110.9 320 64 320zm304 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z\"/></svg>",
374
374
  print: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M64 64C64 28.7 92.7 0 128 0L341.5 0c17 0 33.3 6.7 45.3 18.7l42.5 42.5c12 12 18.7 28.3 18.7 45.3l0 37.5-384 0 0-80zM0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 96c0 17.7-14.3 32-32 32l-32 0 0 64c0 35.3-28.7 64-64 64l-256 0c-35.3 0-64-28.7-64-64l0-64-32 0c-17.7 0-32-14.3-32-32l0-96zM128 416l0 32 256 0 0-96-256 0 0 64zM456 272a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z\"/></svg>",
375
375
  close: w,
376
- up: ee,
377
- down: C,
376
+ up: A,
377
+ down: d,
378
378
  more: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z\"/></svg>"
379
379
  };
380
380
  //#endregion
381
381
  //#region src/pdf-viewer/toolbar.tsx
382
382
  function Q(e) {
383
- let { controller: r, state: c } = e, p = J(e.text), v = Y(e.config), y = c.status === "ready", b = (e) => v.buttons?.[e] !== !1, x = (e) => {
384
- let t = v.buttons?.[e];
383
+ let { controller: r, state: u } = e, d = J(e.text), f = Y(e.config), h = u.status === "ready", y = (e) => f.buttons?.[e] !== !1, x = (e) => {
384
+ let t = f.buttons?.[e];
385
385
  return t === !1 ? {} : t ?? {};
386
- }, S = (t) => X(e.config, t), [C, w] = n(!1), T = a(null), E = a(null), [D, O] = n(String(c.page || "")), k = Number.isFinite(v.zoomStep) && v.zoomStep > 1 ? v.zoomStep : 1.25, A = [...new Set((v.zoomLevels ?? [
386
+ }, S = (t) => X(e.config, t), [C, w] = n(!1), T = a(null), E = a(null), [D, O] = n(String(u.page || "")), k = Number.isFinite(f.zoomStep) && f.zoomStep > 1 ? f.zoomStep : 1.25, A = [...new Set((f.zoomLevels ?? [
387
387
  "page-width",
388
388
  "page-fit",
389
389
  .5,
@@ -395,13 +395,13 @@ function Q(e) {
395
395
  3,
396
396
  5
397
397
  ]).filter((e) => e === "page-width" || e === "page-fit" || typeof e == "number" && Number.isFinite(e) && e >= .25 && e <= 5))];
398
- A.includes(c.zoom) || A.push(c.zoom), i(() => {
399
- O(String(c.page || ""));
400
- }, [c.page, r]), i(() => {
398
+ A.includes(u.zoom) || A.push(u.zoom), i(() => {
399
+ O(String(u.page || ""));
400
+ }, [u.page, r]), i(() => {
401
401
  w(!1);
402
402
  }, [
403
403
  e.config,
404
- y,
404
+ h,
405
405
  r
406
406
  ]), i(() => {
407
407
  if (!C) return;
@@ -424,154 +424,158 @@ function Q(e) {
424
424
  "rotate",
425
425
  "download",
426
426
  "print"
427
- ].some(S) ? /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(d, {
428
- label: p.toolbar,
429
- className: `rv-pdf-viewer__toolbar rv-toolbar--surface ${v.className ?? ""}`,
427
+ ].some(S) ? /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(p, {
428
+ label: d.toolbar,
429
+ className: `rv-pdf-viewer__toolbar rv-toolbar--surface ${f.className ?? ""}`,
430
430
  children: [
431
- S("open") && /* @__PURE__ */ o(f, { children: /* @__PURE__ */ o(_, {
431
+ S("open") && /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(v, {
432
432
  variant: "ghost",
433
433
  size: "compact",
434
434
  ...x("open"),
435
- title: x("open").title ?? p.open,
436
- "aria-label": p.open,
435
+ title: x("open").title ?? d.open,
436
+ "aria-label": d.open,
437
437
  onClick: () => e.onOpen(),
438
438
  children: [/* @__PURE__ */ o(s, { svg: Z.open }), /* @__PURE__ */ o("span", {
439
439
  class: "rv-pdf-viewer__open-label",
440
- children: p.open
440
+ children: d.open
441
441
  })]
442
442
  }) }),
443
- S("navigation") && (v.boundaryButtons || b("previous") || b("next") || v.showPageInput !== !1 || v.showPageCount !== !1) && /* @__PURE__ */ o(f, {
444
- label: p.page,
445
- children: /* @__PURE__ */ o(m, {
446
- page: c.page - 1,
447
- pageCount: c.pageCount,
443
+ S("navigation") && (f.boundaryButtons || y("previous") || y("next") || f.showPageInput !== !1 || f.showPageCount !== !1) && /* @__PURE__ */ o(m, {
444
+ label: d.page,
445
+ children: /* @__PURE__ */ o(b, {
446
+ page: u.page - 1,
447
+ pageCount: u.pageCount,
448
448
  onChange: (e) => r.goToPage(e + 1),
449
- label: p.page,
450
- previousLabel: p.previous,
451
- nextLabel: p.next,
452
- firstLabel: p.first,
453
- lastLabel: p.last,
449
+ label: d.page,
450
+ previousLabel: d.previous,
451
+ nextLabel: d.next,
452
+ firstLabel: d.first,
453
+ lastLabel: d.last,
454
454
  variant: "icons",
455
- disabled: !y,
456
- boundaryButtons: v.boundaryButtons,
455
+ disabled: !h,
456
+ boundaryButtons: f.boundaryButtons,
457
457
  buttons: {
458
- first: v.buttons?.first,
459
- previous: v.buttons?.previous,
460
- next: v.buttons?.next,
461
- last: v.buttons?.last
458
+ first: f.buttons?.first,
459
+ previous: f.buttons?.previous,
460
+ next: f.buttons?.next,
461
+ last: f.buttons?.last
462
462
  },
463
- children: [v.showPageInput !== !1 && /* @__PURE__ */ o(l, {
463
+ children: [f.showPageInput !== !1 && /* @__PURE__ */ o(l, {
464
464
  class: "rv-pdf-viewer__page-input",
465
465
  type: "number",
466
466
  min: 1,
467
- max: c.pageCount || 1,
468
- disabled: !y,
469
- "aria-label": p.page,
467
+ max: u.pageCount || 1,
468
+ disabled: !h,
469
+ "aria-label": d.page,
470
470
  value: D,
471
471
  onInput: (e) => O(e.currentTarget.value),
472
472
  onChange: M,
473
473
  onKeyDown: (e) => {
474
- e.key === "Enter" && (e.preventDefault(), M()), e.key === "Escape" && (e.preventDefault(), O(String(c.page)));
474
+ e.key === "Enter" && (e.preventDefault(), M()), e.key === "Escape" && (e.preventDefault(), O(String(u.page)));
475
475
  }
476
- }), v.showPageCount !== !1 && /* @__PURE__ */ o("span", {
476
+ }), f.showPageCount !== !1 && /* @__PURE__ */ o("span", {
477
477
  class: "rv-pdf-viewer__page-count",
478
- children: q(p.pageCount, {
479
- of: p.of,
480
- pages: c.pageCount
478
+ children: q(d.pageCount, {
479
+ of: d.of,
480
+ pages: u.pageCount
481
481
  })
482
482
  })]
483
483
  })
484
484
  }),
485
- S("zoom") && (b("zoomOut") || b("zoomIn") || v.showZoomSelect !== !1) && /* @__PURE__ */ o(f, {
486
- label: p.zoom,
485
+ S("zoom") && (y("zoomOut") || y("zoomIn") || f.showZoomSelect !== !1) && /* @__PURE__ */ o(m, {
486
+ label: d.zoom,
487
487
  children: [
488
- b("zoomOut") && /* @__PURE__ */ o(g, {
488
+ y("zoomOut") && /* @__PURE__ */ o(_, {
489
489
  ...x("zoomOut"),
490
- label: p.zoomOut,
490
+ label: d.zoomOut,
491
491
  icon: Z.minus,
492
492
  size: "compact",
493
- disabled: !y || c.scale <= .25 || !!x("zoomOut").disabled,
494
- onClick: () => r.setZoom(c.scale / k)
493
+ disabled: !h || u.scale <= .25 || !!x("zoomOut").disabled,
494
+ onClick: () => r.setZoom(u.scale / k)
495
495
  }),
496
- v.showZoomSelect !== !1 && /* @__PURE__ */ o("div", {
496
+ f.showZoomSelect !== !1 && /* @__PURE__ */ o("div", {
497
497
  class: "rv-pdf-viewer__zoom-select",
498
- children: [/* @__PURE__ */ o(u, {
499
- "aria-label": p.zoom,
500
- disabled: !y,
501
- value: String(c.zoom),
498
+ children: /* @__PURE__ */ o(c, {
499
+ className: "rv-select",
500
+ config: {
501
+ ariaLabel: d.zoom,
502
+ portalTarget: e.appendTo
503
+ },
504
+ disabled: !h,
505
+ value: String(u.zoom),
506
+ source: A.map((e) => ({
507
+ value: String(e),
508
+ label: e === "page-width" ? d.fitWidth : e === "page-fit" ? d.fitPage : q(d.zoomPercentage, { percent: Math.round(e * 100) })
509
+ })),
502
510
  onChange: (e) => {
503
- let t = e.currentTarget.value;
511
+ let t = String(e);
504
512
  r.setZoom(t === "page-fit" || t === "page-width" ? t : Number(t));
505
- },
506
- children: A.map((e) => /* @__PURE__ */ o("option", {
507
- value: e,
508
- children: e === "page-width" ? p.fitWidth : e === "page-fit" ? p.fitPage : q(p.zoomPercentage, { percent: Math.round(e * 100) })
509
- }, String(e)))
510
- }), /* @__PURE__ */ o(s, { svg: Z.down })]
513
+ }
514
+ })
511
515
  }),
512
- b("zoomIn") && /* @__PURE__ */ o(g, {
516
+ y("zoomIn") && /* @__PURE__ */ o(_, {
513
517
  ...x("zoomIn"),
514
- label: p.zoomIn,
518
+ label: d.zoomIn,
515
519
  icon: Z.plus,
516
520
  size: "compact",
517
- disabled: !y || c.scale >= 5 || !!x("zoomIn").disabled,
518
- onClick: () => r.setZoom(c.scale * k)
521
+ disabled: !h || u.scale >= 5 || !!x("zoomIn").disabled,
522
+ onClick: () => r.setZoom(u.scale * k)
519
523
  })
520
524
  ]
521
525
  }),
522
- S("search") && /* @__PURE__ */ o(f, { children: b("search") && /* @__PURE__ */ o(g, {
526
+ S("search") && /* @__PURE__ */ o(m, { children: y("search") && /* @__PURE__ */ o(_, {
523
527
  ...x("search"),
524
- label: p.search,
528
+ label: d.search,
525
529
  icon: Z.search,
526
530
  size: "compact",
527
- disabled: !y || !!x("search").disabled,
531
+ disabled: !h || !!x("search").disabled,
528
532
  "aria-expanded": e.searchOpen,
529
533
  "aria-controls": e.searchId,
530
534
  "aria-keyshortcuts": "Control+f Meta+f",
531
535
  onClick: (t) => e.onToggleSearch(t.currentTarget)
532
536
  }) }),
533
- (S("rotate") || S("download") || S("print")) && /* @__PURE__ */ o(f, {
537
+ (S("rotate") || S("download") || S("print")) && /* @__PURE__ */ o(m, {
534
538
  className: "rv-pdf-viewer__actions rv-pdf-viewer__desktop-actions",
535
539
  children: [
536
- S("rotate") && /* @__PURE__ */ o(g, {
540
+ S("rotate") && /* @__PURE__ */ o(_, {
537
541
  ...x("rotate"),
538
- label: p.rotate,
542
+ label: d.rotate,
539
543
  icon: Z.rotate,
540
544
  size: "compact",
541
- disabled: !y || !!x("rotate").disabled,
545
+ disabled: !h || !!x("rotate").disabled,
542
546
  onClick: () => r.rotate()
543
547
  }),
544
- S("download") && /* @__PURE__ */ o(g, {
548
+ S("download") && /* @__PURE__ */ o(_, {
545
549
  ...x("download"),
546
- label: p.download,
550
+ label: d.download,
547
551
  icon: Z.download,
548
552
  size: "compact",
549
- disabled: !y || !!x("download").disabled,
553
+ disabled: !h || !!x("download").disabled,
550
554
  onClick: () => void r.download()
551
555
  }),
552
- S("print") && /* @__PURE__ */ o(g, {
556
+ S("print") && /* @__PURE__ */ o(_, {
553
557
  ...x("print"),
554
- label: p.print,
558
+ label: d.print,
555
559
  icon: Z.print,
556
560
  size: "compact",
557
- disabled: !y || c.printing || !!x("print").disabled,
558
- busy: c.printing,
561
+ disabled: !h || u.printing || !!x("print").disabled,
562
+ busy: u.printing,
559
563
  onClick: () => void r.print()
560
564
  })
561
565
  ]
562
566
  }),
563
- (S("rotate") || S("download") || S("print")) && /* @__PURE__ */ o(f, {
567
+ (S("rotate") || S("download") || S("print")) && /* @__PURE__ */ o(m, {
564
568
  className: "rv-pdf-viewer__more",
565
- children: /* @__PURE__ */ o(_, {
569
+ children: /* @__PURE__ */ o(v, {
566
570
  ref: T,
567
571
  variant: "ghost",
568
572
  size: "compact",
569
573
  className: "rv-btn-icon",
570
- title: p.more,
571
- "aria-label": p.more,
574
+ title: d.more,
575
+ "aria-label": d.more,
572
576
  "aria-haspopup": "menu",
573
577
  "aria-expanded": C,
574
- disabled: !y,
578
+ disabled: !h,
575
579
  onClick: () => w(!C),
576
580
  onKeyDown: (e) => {
577
581
  e.key === "ArrowDown" && (e.preventDefault(), w(!0));
@@ -586,34 +590,34 @@ function Q(e) {
586
590
  appendTo: e.appendTo,
587
591
  onClose: () => w(!1),
588
592
  role: "menu",
589
- label: p.more,
593
+ label: d.more,
590
594
  children: /* @__PURE__ */ o("div", {
591
595
  ref: E,
592
596
  class: "rv-pdf-viewer__menu",
593
597
  children: [
594
- S("rotate") && /* @__PURE__ */ o(h, {
598
+ S("rotate") && /* @__PURE__ */ o(g, {
595
599
  className: x("rotate").className,
596
600
  disabled: !!x("rotate").disabled,
597
601
  onClick: () => {
598
602
  r.rotate(), j();
599
603
  },
600
- children: [/* @__PURE__ */ o(s, { svg: Z.rotate }), p.rotate]
604
+ children: [/* @__PURE__ */ o(s, { svg: Z.rotate }), d.rotate]
601
605
  }),
602
- S("download") && /* @__PURE__ */ o(h, {
606
+ S("download") && /* @__PURE__ */ o(g, {
603
607
  className: x("download").className,
604
608
  disabled: !!x("download").disabled,
605
609
  onClick: () => {
606
610
  r.download(), j();
607
611
  },
608
- children: [/* @__PURE__ */ o(s, { svg: Z.download }), p.download]
612
+ children: [/* @__PURE__ */ o(s, { svg: Z.download }), d.download]
609
613
  }),
610
- S("print") && /* @__PURE__ */ o(h, {
614
+ S("print") && /* @__PURE__ */ o(g, {
611
615
  className: x("print").className,
612
- disabled: c.printing || !!x("print").disabled,
616
+ disabled: u.printing || !!x("print").disabled,
613
617
  onClick: () => {
614
618
  r.print(), j();
615
619
  },
616
- children: [/* @__PURE__ */ o(s, { svg: Z.print }), p.print]
620
+ children: [/* @__PURE__ */ o(s, { svg: Z.print }), d.print]
617
621
  })
618
622
  ]
619
623
  })
@@ -633,7 +637,7 @@ function oe({ id: e, controller: t, state: n, text: r, onClose: a, inputRef: c }
633
637
  onKeyDown: (e) => {
634
638
  e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), a());
635
639
  },
636
- children: [/* @__PURE__ */ o(j, {
640
+ children: [/* @__PURE__ */ o(ee, {
637
641
  icon: /* @__PURE__ */ o(s, { svg: Z.search }),
638
642
  inputRef: c,
639
643
  "aria-label": r.search,
@@ -656,21 +660,21 @@ function oe({ id: e, controller: t, state: n, text: r, onClose: a, inputRef: c }
656
660
  matches: r.matches
657
661
  }) : r.noMatches : ""
658
662
  }),
659
- /* @__PURE__ */ o(g, {
663
+ /* @__PURE__ */ o(_, {
660
664
  label: r.previousMatch,
661
665
  icon: Z.up,
662
666
  size: "compact",
663
667
  disabled: !l || !n.matchCount,
664
668
  onClick: () => t.search(n.query, !0, !0)
665
669
  }),
666
- /* @__PURE__ */ o(g, {
670
+ /* @__PURE__ */ o(_, {
667
671
  label: r.nextMatch,
668
672
  icon: Z.down,
669
673
  size: "compact",
670
674
  disabled: !l || !n.matchCount,
671
675
  onClick: () => t.search(n.query, !1, !0)
672
676
  }),
673
- /* @__PURE__ */ o(g, {
677
+ /* @__PURE__ */ o(_, {
674
678
  label: r.closeSearch,
675
679
  icon: Z.close,
676
680
  size: "compact",
@@ -704,7 +708,7 @@ function se({ state: e, text: n, onCancelPrint: r, showDetails: i = !0 }) {
704
708
  pages: e.pageCount
705
709
  }) : ""
706
710
  }),
707
- e.printing && /* @__PURE__ */ o(_, {
711
+ e.printing && /* @__PURE__ */ o(v, {
708
712
  variant: "ghost",
709
713
  size: "compact",
710
714
  onClick: () => r(),
@@ -716,23 +720,23 @@ function se({ state: e, text: n, onCancelPrint: r, showDetails: i = !0 }) {
716
720
  //#endregion
717
721
  //#region src/pdf-viewer/status.tsx
718
722
  function ce({ state: e, text: n, controller: r, canOpen: i, onOpen: a }) {
719
- return e.status === "loading" ? /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(p, { label: n.loading }), /* @__PURE__ */ o("span", { children: n.loading })] }) : e.status === "error" ? /* @__PURE__ */ o(y, {
723
+ return e.status === "loading" ? /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(f, { label: n.loading }), /* @__PURE__ */ o("span", { children: n.loading })] }) : e.status === "error" ? /* @__PURE__ */ o(h, {
720
724
  tone: "danger",
721
725
  title: n.error,
722
726
  description: n.errorDescription,
723
- actions: /* @__PURE__ */ o(t, { children: [r.canRetry && /* @__PURE__ */ o(_, {
727
+ actions: /* @__PURE__ */ o(t, { children: [r.canRetry && /* @__PURE__ */ o(v, {
724
728
  size: "compact",
725
729
  onClick: () => void r.retry(),
726
730
  children: n.retry
727
- }), i && /* @__PURE__ */ o(_, {
731
+ }), i && /* @__PURE__ */ o(v, {
728
732
  size: "compact",
729
733
  onClick: () => a(),
730
734
  children: n.open
731
735
  })] })
732
- }) : /* @__PURE__ */ o(v, {
736
+ }) : /* @__PURE__ */ o(y, {
733
737
  title: n.empty,
734
738
  description: n.emptyHint,
735
- children: i && /* @__PURE__ */ o(_, {
739
+ children: i && /* @__PURE__ */ o(v, {
736
740
  variant: "primary",
737
741
  onClick: () => a(),
738
742
  children: n.open
@@ -742,7 +746,7 @@ function ce({ state: e, text: n, controller: r, canOpen: i, onOpen: a }) {
742
746
  //#endregion
743
747
  //#region src/pdf-viewer/component.tsx
744
748
  function le(e) {
745
- let t = r(() => new te(e), [
749
+ let t = r(() => new B(e), [
746
750
  e.workerSrc,
747
751
  e.documentOptions,
748
752
  e.initialPage,
@@ -755,11 +759,11 @@ function le(e) {
755
759
  });
756
760
  }
757
761
  function $(e) {
758
- let { controller: t } = e, [r, s] = n(t.snapshot), [c, u] = n(!1), [d] = n(() => S("rv-pdf-search")), f = a(null), p = a(null), m = a(null), h = a(null), g = a(null), _ = J(e.text), v = r.status === "ready", b = Y(e.toolbar).buttons, x = (e) => {
762
+ let { controller: t } = e, [r, s] = n(t.snapshot), [c, u] = n(!1), [d] = n(() => C("rv-pdf-search")), f = a(null), p = a(null), m = a(null), g = a(null), _ = a(null), v = J(e.text), y = r.status === "ready", b = Y(e.toolbar).buttons, x = (e) => {
759
763
  let t = b?.[e];
760
764
  return t !== !1 && !t?.disabled;
761
- }, C = X(e.toolbar, "search") && x("search"), w = X(e.toolbar, "open") && x("open");
762
- t.setCallbacks(e), t.setPrintTitle(_.printDocument), i(() => {
765
+ }, S = X(e.toolbar, "search") && x("search"), w = X(e.toolbar, "open") && x("open");
766
+ t.setCallbacks(e), t.setPrintTitle(v.printDocument), i(() => {
763
767
  let n = t.subscribe(s);
764
768
  return t.attach(m.current).catch(() => {}), e.onReady?.(t), () => {
765
769
  n(), t.destroy();
@@ -776,55 +780,55 @@ function $(e) {
776
780
  let e = f.current;
777
781
  e?.isConnected && !e.hasAttribute("disabled") ? e.focus({ preventScroll: !0 }) : m.current?.focus({ preventScroll: !0 });
778
782
  }, E = (e) => {
779
- c || (f.current = e), u(!0), g.current?.focus();
783
+ c || (f.current = e), u(!0), _.current?.focus();
780
784
  };
781
785
  i(() => {
782
- C || (t.clearSearch(), u(!1), c && m.current?.focus({ preventScroll: !0 }));
783
- }, [C, t]);
786
+ S || (t.clearSearch(), u(!1), c && m.current?.focus({ preventScroll: !0 }));
787
+ }, [S, t]);
784
788
  let D = {
785
789
  controller: t,
786
790
  state: r,
787
- text: _,
791
+ text: v,
788
792
  config: e.toolbar,
789
793
  searchOpen: c,
790
794
  searchId: d,
791
795
  appendTo: p.current ?? void 0,
792
- onOpen: () => h.current?.click(),
796
+ onOpen: () => g.current?.click(),
793
797
  onToggleSearch: (e) => c ? T() : E(e)
794
798
  };
795
799
  return /* @__PURE__ */ o("section", {
796
800
  ref: p,
797
801
  class: `rv-pdf-viewer ${e.className ?? ""}`,
798
802
  style: { height: e.height ?? 640 },
799
- "aria-label": _.viewer,
803
+ "aria-label": v.viewer,
800
804
  onKeyDown: (e) => {
801
- (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "f" && v && C && (e.preventDefault(), E(e.target));
805
+ (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "f" && y && S && (e.preventDefault(), E(e.target));
802
806
  },
803
807
  children: [
804
808
  (e.showHeader !== !1 || r.printing) && /* @__PURE__ */ o(se, {
805
809
  showDetails: e.showHeader !== !1,
806
810
  state: r,
807
- text: _,
811
+ text: v,
808
812
  onCancelPrint: () => t.cancelPrint()
809
813
  }),
810
814
  e.toolbar !== !1 && (e.renderToolbar ? e.renderToolbar(t, r, D) : /* @__PURE__ */ o(Q, { ...D })),
811
815
  /* @__PURE__ */ o(l, {
812
- ref: h,
816
+ ref: g,
813
817
  type: "file",
814
818
  accept: "application/pdf,.pdf",
815
819
  hidden: !0,
816
- "aria-label": _.open,
820
+ "aria-label": v.open,
817
821
  onChange: (e) => {
818
822
  let n = e.currentTarget.files?.[0];
819
823
  e.currentTarget.value = "", n && t.load(n);
820
824
  }
821
825
  }),
822
- c && C && /* @__PURE__ */ o(oe, {
823
- inputRef: g,
826
+ c && S && /* @__PURE__ */ o(oe, {
827
+ inputRef: _,
824
828
  id: d,
825
829
  controller: t,
826
830
  state: r,
827
- text: _,
831
+ text: v,
828
832
  onClose: T
829
833
  }),
830
834
  /* @__PURE__ */ o("div", {
@@ -835,25 +839,25 @@ function $(e) {
835
839
  class: "rv-pdf-viewer__viewport",
836
840
  tabIndex: 0,
837
841
  role: "region",
838
- "aria-label": _.pages
839
- }), !v && /* @__PURE__ */ o("div", {
842
+ "aria-label": v.pages
843
+ }), !y && /* @__PURE__ */ o("div", {
840
844
  class: "rv-pdf-viewer__status",
841
845
  children: e.renderStatus ? e.renderStatus(r) : /* @__PURE__ */ o(ce, {
842
846
  state: r,
843
- text: _,
847
+ text: v,
844
848
  controller: t,
845
849
  canOpen: w,
846
850
  onOpen: D.onOpen
847
851
  })
848
852
  })]
849
853
  }),
850
- v && r.error && /* @__PURE__ */ o(y, {
854
+ y && r.error && /* @__PURE__ */ o(h, {
851
855
  className: "rv-pdf-viewer__error",
852
856
  tone: "danger",
853
- description: _.operationError
857
+ description: v.operationError
854
858
  })
855
859
  ]
856
860
  });
857
861
  }
858
862
  //#endregion
859
- export { H as a, ie as c, V as d, W as f, K as i, ae as l, ne as m, $ as n, B as o, U as p, Q as r, re as s, le as t, G as u };
863
+ export { U as a, ie as c, H as d, W as f, K as i, ae as l, ne as m, $ as n, V as o, te as p, Q as r, re as s, le as t, G as u };