@revolist/ui 4.0.4-rc → 4.0.4

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 (401) hide show
  1. package/MIGRATION.md +36 -0
  2. package/OWNERSHIP.md +36 -36
  3. package/README.md +65 -392
  4. package/_button.scss +6 -2
  5. package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
  6. package/_chunks/calculator-CDWOuAcp.js +4 -0
  7. package/_chunks/{calendar-xpZ0v3xf.js → calendar-BQYQLu8Q.js} +23 -23
  8. package/_chunks/{cell-visuals-E-2oEKHg.js → cell-visuals-r6DOOhGh.js} +7 -7
  9. package/_chunks/chart-frame-GprenwEg.js +145 -0
  10. package/_chunks/{chevron-right-sxHQMSkq.js → check-BwI7iCAm.js} +2 -2
  11. package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
  12. package/_chunks/choice-chips-C5OxD0GV.js +126 -0
  13. package/_chunks/{color-palette-D8vyPfld.js → color-palette-7siNch__.js} +22 -24
  14. package/_chunks/color-picker-Cfc9eqZb.js +143 -0
  15. package/_chunks/{component-C_T2VN5u.js → component-C3k_8uIq.js} +290 -275
  16. package/_chunks/{component-metadata-BMOOmqx5.js → component-metadata-DlVkpW3h.js} +1 -9
  17. package/_chunks/configurator-actions-vRnI54mO.js +155 -0
  18. package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
  19. package/_chunks/control-BRfF5DWQ.js +118 -0
  20. package/_chunks/{controller-hRBm_Lfz.js → controller-BbiQuRt-.js} +5 -5
  21. package/_chunks/controls-B3EgM_DS.js +650 -0
  22. package/_chunks/{date-control-DrVFX13g.js → date-control-87dcA5br.js} +5 -5
  23. package/_chunks/{date-time-qIhp5vaX.js → date-time-CfiFYodx.js} +332 -293
  24. package/_chunks/{delete-button-CW9vjLnk.js → delete-button-jneO24wa.js} +1 -1
  25. package/_chunks/dialog.parts-NqEEVc9P.js +131 -0
  26. package/_chunks/{duration-CL68Em0o.js → duration-BGZ_qJ99.js} +10 -10
  27. package/_chunks/{editor-commit-Bq3wSgvr.js → editor-commit-Dyo-FMgD.js} +1 -1
  28. package/_chunks/editor-popup-NNP9Fh9U.js +82 -0
  29. package/_chunks/field-configurator-DPulsY3l.js +288 -0
  30. package/_chunks/{field-context-D57PnBbH.js → field-context-C4_WrO2z.js} +1 -1
  31. package/_chunks/{framework-mount--RTLIqE-.js → framework-mount-D4I8HpVp.js} +2 -2
  32. package/_chunks/icon-toolbar-BAAdEvr9.js +134 -0
  33. package/_chunks/{icons-Ci5mADVc.js → icons-B4qN13Yj.js} +1 -1
  34. package/_chunks/{iso-B0YHBK7m.js → iso-CJQl2kmq.js} +1 -1
  35. package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
  36. package/_chunks/minus-BOAR3A1C.js +4 -0
  37. package/_chunks/{model-mPO2tG2f.js → model-CFrBgRHm.js} +3 -3
  38. package/_chunks/mount-C8CnIW9k.js +267 -0
  39. package/_chunks/{native.view-ByyZ1CT5.js → native-CJm3eq3-.js} +1 -1
  40. package/_chunks/native-control-um1L1wgZ.js +649 -0
  41. package/_chunks/{number-input-BKwA5FnM.js → number-input-CKiA4d1N.js} +9 -9
  42. package/_chunks/{picker-h1P5RUgp.js → picker-igNshTRC.js} +5 -5
  43. package/_chunks/plus-CbGRkIGl.js +4 -0
  44. package/_chunks/{popup-CT2uD3go.js → popup-DECYM9FI.js} +116 -105
  45. package/_chunks/{rating-choice-DZgmaic0.js → rating-choice-CepVfGUq.js} +2 -2
  46. package/_chunks/{render-m5eMMwFR.js → render-bTk3curw.js} +2 -2
  47. package/_chunks/{reorder-list-CSlqAGHw.js → reorder-list-B4w3aARt.js} +2 -2
  48. package/_chunks/request-trail-B1zVRPEf.js +762 -0
  49. package/_chunks/rich-text-Ci4d6dHn.js +842 -0
  50. package/_chunks/rotate-left-BF6G883o.js +4 -0
  51. package/_chunks/selection-list-tooltips-m00U3L6z.js +42 -0
  52. package/_chunks/title-tooltip-ncldbUwS.js +11 -0
  53. package/_chunks/tooltip-h-Z8yFBY.js +54 -0
  54. package/_chunks/tooltip-owner-BYho-vJl.js +19 -0
  55. package/_chunks/tooltip-session-CBtRMBPr.js +110 -0
  56. package/_chunks/tooltip-text-BN5WdGHn.js +12 -0
  57. package/_chunks/top-layer-popup-CKJ7VJOF.js +59 -0
  58. package/_dialog.scss +57 -22
  59. package/_form.scss +71 -21
  60. package/_legend.scss +25 -7
  61. package/_variables.scss +34 -32
  62. package/_view-switcher.scss +6 -0
  63. package/activity-message.d.ts +1 -1
  64. package/activity-message.js +1 -1
  65. package/ai/_chat.scss +35 -3
  66. package/ai/_style.scss +76 -16
  67. package/ai/chat.d.ts +3 -1
  68. package/ai/components.d.ts +16 -3
  69. package/ai/index.d.ts +1 -0
  70. package/ai/index.js +3 -3
  71. package/ai/mount.d.ts +30 -6
  72. package/ai/request-trail.d.ts +9 -3
  73. package/ai/results/_style.scss +83 -0
  74. package/ai/results/index.d.ts +11 -0
  75. package/ai/results/metrics.d.ts +5 -0
  76. package/ai/results/table.d.ts +5 -0
  77. package/ai/results/text.d.ts +5 -0
  78. package/ai/results/types.d.ts +29 -0
  79. package/ai/transcript.d.ts +2 -0
  80. package/ai/translations.d.ts +1 -1
  81. package/angular/angular.d.ts +1 -1
  82. package/angular/angular.js +13 -7
  83. package/assignee/assignee.scss +28 -6
  84. package/assignee/index.js +6 -6
  85. package/avatar/avatar.style.scss +23 -6
  86. package/avatar/index.d.ts +25 -2
  87. package/avatar/index.js +33 -32
  88. package/badge.d.ts +1 -1
  89. package/badge.js +1 -1
  90. package/badge.view.d.ts +8 -0
  91. package/brush-range/_brush-range.scss +55 -49
  92. package/brush-range/component.d.ts +1 -3
  93. package/brush-range/component.js +28 -28
  94. package/buttons/delete-button.js +1 -1
  95. package/buttons/delete-button.style.scss +6 -2
  96. package/buttons/remove-button.d.ts +1 -1
  97. package/buttons/remove-button.js +2 -2
  98. package/buttons/remove-button.style.scss +1 -1
  99. package/buttons/svg-button.d.ts +1 -1
  100. package/buttons/svg-button.js +17 -17
  101. package/calendar/_calendar.scss +21 -25
  102. package/calendar/calendar.js +1 -1
  103. package/calendar/day.js +2 -2
  104. package/calendar/header.js +2 -3
  105. package/calendar/index.js +3 -3
  106. package/calendar/model.js +1 -1
  107. package/calendar/month-grid.js +2 -2
  108. package/calendar/translations.js +1 -1
  109. package/calendar/year-grid.js +2 -2
  110. package/cell-input.js +1 -1
  111. package/cell-input.scss +3 -7
  112. package/cell-visuals/badge.style.scss +6 -3
  113. package/cell-visuals/bar-chart.style.scss +2 -1
  114. package/cell-visuals/column-type.style.css +12 -0
  115. package/cell-visuals/index.js +1 -1
  116. package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
  117. package/cell-visuals/progress-line.style.scss +1 -4
  118. package/cell-visuals/sparkline.style.scss +2 -1
  119. package/cell-visuals/timeline.style.css +4 -2
  120. package/checkbox/checkbox.scss +6 -24
  121. package/checkbox/index.js +1 -1
  122. package/choice-chips/index.d.ts +3 -1
  123. package/choice-chips/index.js +1 -1
  124. package/color-palette/built-in-palettes.js +1 -1
  125. package/color-palette/chart-palettes.js +1 -1
  126. package/color-palette/color-palette.js +1 -1
  127. package/color-palette/color-palette.style.scss +88 -25
  128. package/color-palette/color-picker.constants.js +1 -1
  129. package/color-palette/color-picker.js +2 -2
  130. package/color-palette/color-picker.style.scss +23 -10
  131. package/color-palette/common-palettes.d.ts +1 -1
  132. package/color-palette/common-palettes.js +2 -2
  133. package/color-palette/gantt-palettes.js +1 -1
  134. package/color-palette/native.d.ts +15 -2
  135. package/color-palette/palette.js +1 -1
  136. package/color-palette/pivot-palettes.js +1 -1
  137. package/color-palette/platform-palettes.js +1 -1
  138. package/color-palette/pro-palettes.js +1 -1
  139. package/color-palette/scheduler-palettes.js +1 -1
  140. package/component-catalog.d.ts +9 -7
  141. package/configurator-actions.d.ts +67 -0
  142. package/configurator-actions.js +1 -0
  143. package/configurator-aggregation-list.d.ts +14 -0
  144. package/configurator-aggregation-list.js +63 -0
  145. package/configurator-drop-zone.d.ts +39 -0
  146. package/configurator-drop-zone.js +66 -0
  147. package/configurator-field-icon.d.ts +10 -0
  148. package/configurator-field-icon.js +1 -0
  149. package/configurator-focus.d.ts +4 -0
  150. package/configurator-focus.js +39 -0
  151. package/configurator-sections.d.ts +42 -0
  152. package/configurator-sections.js +71 -0
  153. package/control-attributes.js +1 -1
  154. package/control-presentation.d.ts +8 -2
  155. package/control-presentation.js +25 -20
  156. package/controls.d.ts +12 -2
  157. package/controls.js +4 -3
  158. package/core/anchored-popover.js +1 -1
  159. package/core/control-id.js +1 -1
  160. package/core/editor-popup-position.d.ts +6 -2
  161. package/core/editor-popup.d.ts +4 -0
  162. package/core/editor-popup.js +1 -1
  163. package/core/motion.js +1 -1
  164. package/core/popover-controller.d.ts +35 -0
  165. package/core/popover-controller.js +102 -0
  166. package/core/popup-ownership.d.ts +2 -0
  167. package/core/selection-list-tooltips.d.ts +2 -0
  168. package/core/title-tooltip.d.ts +2 -0
  169. package/core/tooltip-session.d.ts +29 -0
  170. package/core/tooltip-surface.d.ts +13 -0
  171. package/core/tooltip-text.d.ts +6 -0
  172. package/core/tooltip.d.ts +35 -0
  173. package/core/top-layer-popup.d.ts +4 -0
  174. package/core/top-layer-popup.js +1 -23
  175. package/date-time/attach.d.ts +1 -1
  176. package/date-time/date-control.d.ts +1 -1
  177. package/date-time/field.d.ts +4 -2
  178. package/date-time/index.js +1 -1
  179. package/date-time/style.scss +239 -36
  180. package/date-time/time-selection.d.ts +3 -1
  181. package/date-time/types.d.ts +5 -1
  182. package/dialog/dialog-action-footer.d.ts +17 -2
  183. package/dialog/dialog.dom.d.ts +15 -2
  184. package/dialog/dialog.dom.js +9 -9
  185. package/dialog/dialog.drag.js +1 -1
  186. package/dialog/dialog.parts.d.ts +1 -1
  187. package/dialog/dialog.parts.js +1 -1
  188. package/dialog/dialog.preact.js +1 -1
  189. package/distribution-chart/_distribution-chart.scss +113 -77
  190. package/distribution-chart/area-chart.js +2 -2
  191. package/distribution-chart/bar-chart.js +2 -2
  192. package/distribution-chart/chart-frame.d.ts +1 -1
  193. package/distribution-chart/index.d.ts +1 -1
  194. package/distribution-chart/index.js +1 -1
  195. package/distribution-chart/line-chart.js +2 -2
  196. package/dropdown/content.js +1 -1
  197. package/dropdown/control.js +1 -1
  198. package/dropdown/dropdown.service.js +1 -1
  199. package/dropdown/dropdown.types.d.ts +1 -1
  200. package/dropdown/editor-dropdown.style.scss +19 -9
  201. package/dropdown/index.js +2 -2
  202. package/dropdown/lookup-field.d.ts +5 -0
  203. package/dropdown/lookup-field.js +4 -3
  204. package/dropdown/popup.d.ts +2 -2
  205. package/dropdown/popup.js +1 -1
  206. package/duration/index.js +1 -1
  207. package/editor-actions.js +2 -2
  208. package/editor-layout/index.d.ts +4 -4
  209. package/editor-layout/index.js +40 -35
  210. package/editor-layout/style.scss +82 -18
  211. package/favicon.svg +9 -0
  212. package/field-configurator.d.ts +39 -1
  213. package/field-configurator.js +4 -170
  214. package/field-expansion.d.ts +9 -0
  215. package/field-reorder.hook.js +1 -1
  216. package/field-reorder.js +1 -1
  217. package/filter/filters/slider/_single-slider.scss +57 -38
  218. package/filter/filters/slider/_slider.scss +41 -33
  219. package/filter/filters/slider/component.js +1 -1
  220. package/filter/filters/slider/control.js +3 -1
  221. package/filter/filters/slider/inputs.js +1 -1
  222. package/filter/filters/slider/logic.js +1 -1
  223. package/filter/filters/slider/preact.js +1 -1
  224. package/filter/filters/slider/runtime.js +50 -23
  225. package/filter/filters/slider/single.js +2 -2
  226. package/filter-badge.js +2 -2
  227. package/filter-controls.d.ts +0 -1
  228. package/filter-controls.js +6 -7
  229. package/form-controls/index.d.ts +10 -2
  230. package/form-controls/index.js +7 -7
  231. package/form-controls/presentation.d.ts +1 -1
  232. package/form-controls/presentation.js +13 -13
  233. package/formatting/index.d.ts +1 -1
  234. package/formatting/index.js +26 -25
  235. package/formatting/styles.scss +14 -57
  236. package/framework.js +228 -225
  237. package/history-controls.js +27 -1
  238. package/html-controls.js +1 -1
  239. package/icon-toolbar.d.ts +62 -0
  240. package/icon-toolbar.js +1 -0
  241. package/icons/icon.d.ts +1 -1
  242. package/icons/icon.js +1 -1
  243. package/legend.d.ts +1 -1
  244. package/legend.js +1 -1
  245. package/masked-input/index.js +4 -4
  246. package/native-control.d.ts +1 -2
  247. package/native-control.js +1 -1
  248. package/native-controls.d.ts +54 -2
  249. package/native-styles.css +1 -1
  250. package/native-styles.scss +6 -2
  251. package/native.d.ts +3 -3
  252. package/native.js +48 -45
  253. package/number-input/index.d.ts +1 -1
  254. package/number-input/index.js +1 -1
  255. package/package.json +84 -1
  256. package/pagination.js +12 -12
  257. package/pdf-viewer/controller.js +1 -1
  258. package/pdf-viewer/header.d.ts +1 -1
  259. package/pdf-viewer/index.d.ts +2 -2
  260. package/pdf-viewer/index.js +3 -3
  261. package/pdf-viewer/search-bar.d.ts +1 -1
  262. package/pdf-viewer/status.d.ts +1 -1
  263. package/pdf-viewer/style.scss +203 -42
  264. package/pickers.d.ts +5 -1
  265. package/preact-mount.js +1 -1
  266. package/preact.d.ts +13 -10
  267. package/preact.js +109 -64
  268. package/progress/_bar.scss +9 -3
  269. package/progress/_circular.scss +2 -1
  270. package/progress/bar.js +1 -1
  271. package/progress/circular.js +1 -1
  272. package/progress/range.js +1 -1
  273. package/rating-choice.js +1 -1
  274. package/react-adapter.d.ts +4 -2
  275. package/react-control.d.ts +2 -0
  276. package/react-control.js +3 -3
  277. package/react.d.ts +7 -8
  278. package/react.js +69 -68
  279. package/reorder-list.d.ts +1 -1
  280. package/reorder-list.js +1 -1
  281. package/reorder-list.scss +59 -17
  282. package/resource-picker/resource-picker-avatar.js +1 -1
  283. package/resource-picker/resource-picker-option.js +1 -1
  284. package/resource-picker/resource-picker-popup.js +2 -2
  285. package/resource-picker/resource-picker.js +75 -73
  286. package/resource-picker/resource-picker.scss +62 -34
  287. package/resource-picker/resource-picker.utils.js +1 -1
  288. package/rich-text/engine.d.ts +1 -0
  289. package/rich-text/format-html.d.ts +2 -0
  290. package/rich-text/index.d.ts +4 -0
  291. package/rich-text/index.js +1 -1
  292. package/rich-text/model.d.ts +2 -0
  293. package/rich-text/style.scss +293 -44
  294. package/rich-text/syntax.d.ts +5 -0
  295. package/rich-text/toolbar.d.ts +1 -1
  296. package/rich-text/translations.d.ts +2 -0
  297. package/robots.txt +4 -0
  298. package/search-input/index.js +2 -2
  299. package/search-input/native.d.ts +21 -2
  300. package/segmented-switch/index.js +1 -1
  301. package/select.d.ts +3 -1
  302. package/select.js +1 -1
  303. package/selection-list.d.ts +1 -0
  304. package/selection-list.js +3 -1
  305. package/status-feedback/badge.js +2 -2
  306. package/status-feedback/exit-snapshot.js +5 -5
  307. package/status-feedback/header.js +2 -2
  308. package/status-feedback/icons.js +1 -1
  309. package/status-feedback/index.js +1 -1
  310. package/status-feedback/item.js +2 -2
  311. package/status-feedback/motion.js +1 -1
  312. package/status-feedback/placement.js +1 -1
  313. package/status-feedback/popover.js +5 -5
  314. package/status-feedback/render.js +1 -1
  315. package/status-feedback/status-feedback.scss +124 -35
  316. package/styles/_activity-message.scss +24 -7
  317. package/styles/_alert.scss +78 -17
  318. package/styles/_cell-editor-frame.scss +11 -0
  319. package/styles/_compositions.scss +400 -80
  320. package/styles/_control.scss +30 -8
  321. package/styles/_disclosure.scss +15 -5
  322. package/styles/_editor-counter.scss +16 -6
  323. package/styles/_editor-slider.scss +8 -4
  324. package/styles/_field-configurator.scss +321 -23
  325. package/styles/_fields-grid.scss +49 -0
  326. package/styles/_filter-controls.scss +10 -2
  327. package/styles/_icon-action.scss +48 -15
  328. package/styles/_loading.scss +12 -3
  329. package/styles/_motion.scss +32 -9
  330. package/styles/_palette.scss +0 -24
  331. package/styles/_primitives.scss +369 -110
  332. package/styles/_theme.scss +130 -86
  333. package/styles/_thresholds.scss +28 -25
  334. package/styles/_time-grid.scss +8 -3
  335. package/styles/_tokens.scss +6 -1
  336. package/styles/color-roles.js +1 -1
  337. package/styles/configurator-actions.scss +241 -0
  338. package/styles/pagination.css +213 -0
  339. package/styles/{legacy-rating.css → rating.css} +8 -3
  340. package/styles.css +1 -1
  341. package/styles.scss +3 -5
  342. package/surfaces.d.ts +38 -2
  343. package/surfaces.js +37 -134
  344. package/svelte/UiComponent.svelte +44 -11
  345. package/svelte-control.js +1 -1
  346. package/svelte.d.ts +1 -1
  347. package/svelte.js +5 -5
  348. package/switch/index.js +16 -15
  349. package/time-grid.d.ts +0 -1
  350. package/time-grid.js +39 -38
  351. package/timeline-track/_style.scss +96 -24
  352. package/timeline-track/index.js +3 -3
  353. package/timeline-track/model.js +1 -1
  354. package/ui.css +1 -1
  355. package/view-switcher.d.ts +23 -0
  356. package/vue-badge.js +1 -1
  357. package/vue-control.js +1 -1
  358. package/vue-segmented-switch.js +1 -1
  359. package/vue.d.ts +29 -32
  360. package/vue.js +118 -123
  361. package/_chunks/chart-frame-Cmc7xU1i.js +0 -130
  362. package/_chunks/choice-chips-CHQTUdLs.js +0 -110
  363. package/_chunks/color-picker-CudqPYZo.js +0 -138
  364. package/_chunks/control-AHKXD5Eu.js +0 -93
  365. package/_chunks/control-tooltip-uscKfAnV.js +0 -100
  366. package/_chunks/controls-DsNi8V8I.js +0 -630
  367. package/_chunks/dialog.parts-CKGkC5zP.js +0 -134
  368. package/_chunks/editor-popup-WDdtVDNA.js +0 -81
  369. package/_chunks/history-controls-B3u3INEK.js +0 -27
  370. package/_chunks/mount-DQ1cpppK.js +0 -257
  371. package/_chunks/native-control-C_yok8_-.js +0 -605
  372. package/_chunks/request-trail-DSlFix6i.js +0 -618
  373. package/_chunks/rich-text-CH7gIqOS.js +0 -636
  374. package/_shared/data-query/binding.d.ts +0 -30
  375. package/_shared/data-query/blocks.d.ts +0 -30
  376. package/_shared/data-query/commands.d.ts +0 -47
  377. package/_shared/data-query/contracts.d.ts +0 -106
  378. package/_shared/data-query/cursor-reader.d.ts +0 -25
  379. package/_shared/data-query/direct-binding.d.ts +0 -3
  380. package/_shared/data-query/index.d.ts +0 -23
  381. package/_shared/data-query/infinite-binding.d.ts +0 -18
  382. package/_shared/data-query/keys.d.ts +0 -9
  383. package/_shared/data-query/limiter.d.ts +0 -12
  384. package/_shared/data-query/load-options.d.ts +0 -25
  385. package/_shared/data-query/materialize.d.ts +0 -2
  386. package/_shared/data-query/policy.d.ts +0 -14
  387. package/_shared/data-query/provider-queries.d.ts +0 -22
  388. package/_shared/data-query/reader.d.ts +0 -23
  389. package/_shared/data-query/remote-load.d.ts +0 -7
  390. package/_shared/data-query/source.d.ts +0 -40
  391. package/avatar/index.view.d.ts +0 -25
  392. package/color-palette/native.view.d.ts +0 -15
  393. package/control-presentation.view.d.ts +0 -8
  394. package/dialog/dialog-action-footer.view.d.ts +0 -20
  395. package/dialog/dialog.dom.view.d.ts +0 -15
  396. package/form-controls/index.view.d.ts +0 -10
  397. package/formatting/control-tooltip.d.ts +0 -27
  398. package/native-controls.view.d.ts +0 -54
  399. package/search-input/native.view.d.ts +0 -21
  400. package/styles/legacy-pagination.css +0 -112
  401. package/surfaces.view.d.ts +0 -63
@@ -1,29 +1,33 @@
1
1
  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
- import { SvgIcon as s } from "../icons/icon.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
- import { t as w } from "./xmark-DD_PBvZI.js";
13
- import { DialogController as T, PopoverController as E, TooltipController as D, attachMenuKeyboard as O } from "../surfaces.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
- //#region src/pickers.tsx
25
- function V(e) {
26
- return /* @__PURE__ */ o(c, {
4
+ import { createControlId as s } from "../core/control-id.js";
5
+ import { PopoverController as c, TooltipController as l } from "../core/popover-controller.js";
6
+ import { SvgIcon as u } from "../icons/icon.js";
7
+ import { l as d, n as f } from "./native-control-um1L1wgZ.js";
8
+ import { n as p } from "./popup-DECYM9FI.js";
9
+ import { t as m } from "./chevron-down-GbplLa6s.js";
10
+ import { D as h, F as g, I as _, R as v, b as y, g as b, l as x, p as S, t as C } from "./controls-B3EgM_DS.js";
11
+ import { n as w, t as T } from "./chevron-right-CM3ljziP.js";
12
+ import { t as E } from "./xmark-DD_PBvZI.js";
13
+ import { t as D } from "./tooltip-text-BN5WdGHn.js";
14
+ import { DialogController as O, attachMenuKeyboard as k } from "../surfaces.js";
15
+ import { t as A } from "./rotate-right-Iha5ScJ1.js";
16
+ import { t as j } from "./chevron-up-BLuNMPDn.js";
17
+ import { avatarTemplate as M } from "../avatar/index.js";
18
+ import { renderProgressBar as ee } from "../progress/bar.js";
19
+ import { t as te } from "./plus-CbGRkIGl.js";
20
+ import { t as ne } from "./minus-BOAR3A1C.js";
21
+ import { SearchInput as re } from "../search-input/index.js";
22
+ import { s as N } from "./iso-CJQl2kmq.js";
23
+ import { f as P, h as F, o as I } from "./model-CFrBgRHm.js";
24
+ import { n as L, t as R } from "./date-control-87dcA5br.js";
25
+ import { t as z } from "./calendar-BQYQLu8Q.js";
26
+ import { t as B } from "./magnifying-glass-CvrTDSkB.js";
27
+ import { t as V } from "./controller-BbiQuRt-.js";
28
+ //#region package/pickers.tsx
29
+ function H(e) {
30
+ return /* @__PURE__ */ o(d, {
27
31
  ...e,
28
32
  className: `rv-combobox ${e.className ?? ""}`,
29
33
  config: {
@@ -33,8 +37,8 @@ function V(e) {
33
37
  }
34
38
  });
35
39
  }
36
- function H(e) {
37
- return /* @__PURE__ */ o(c, {
40
+ function U(e) {
41
+ return /* @__PURE__ */ o(d, {
38
42
  ...e,
39
43
  className: `rv-multi-select ${e.className ?? ""}`,
40
44
  config: {
@@ -43,50 +47,61 @@ function H(e) {
43
47
  }
44
48
  });
45
49
  }
46
- function U(t) {
47
- return j(e, t);
48
- }
49
- function te(t) {
50
+ function ie(t) {
50
51
  return M(e, t);
51
52
  }
52
- function W({ open: e, anchor: t, appendTo: n, onClose: r, children: s, label: c, className: l = "", role: u = "dialog" }) {
53
- let d = a(null), f = a(r);
54
- return f.current = r, i(() => {
55
- if (!e || !t || !d.current) return;
56
- let r = d.current, i = new E(), a = !0;
53
+ function ae(t) {
54
+ return ee(e, t);
55
+ }
56
+ function W({ open: e, anchor: t, appendTo: n, closeOnOutside: r, closeOnEscape: s, onClose: l, children: u, label: d, className: f = "", role: p = "dialog" }) {
57
+ let m = a(null), h = a(l);
58
+ h.current = l;
59
+ let g = a({
60
+ closeOnOutside: r,
61
+ closeOnEscape: s
62
+ }).current;
63
+ return g.closeOnOutside = r, g.closeOnEscape = s, i(() => {
64
+ if (!e || !t || !m.current) return;
65
+ let r = m.current, i = new c(), a = !0;
57
66
  i.open({
58
67
  anchor: t,
59
68
  appendTo: n,
60
- content: d.current,
61
- display: u === "menu" ? "grid" : void 0,
69
+ get closeOnOutside() {
70
+ return g.closeOnOutside;
71
+ },
72
+ get closeOnEscape() {
73
+ return g.closeOnEscape;
74
+ },
75
+ content: m.current,
76
+ display: p === "menu" ? "grid" : void 0,
62
77
  onClose: () => {
63
- a && f.current();
78
+ a && h.current();
64
79
  }
65
80
  });
66
- let o = u === "menu" ? O(r, () => i.close()) : void 0;
81
+ let o = p === "menu" ? k(r, () => i.close(), g) : void 0;
67
82
  return () => {
68
83
  a = !1, o?.(), i.destroy(), r.hidden = !0;
69
84
  };
70
85
  }, [
71
86
  e,
72
87
  t,
73
- u,
88
+ p,
74
89
  n
75
90
  ]), /* @__PURE__ */ o("div", {
76
- ref: d,
77
- class: `rv-popover ${u === "menu" ? "rv-menu " : ""}${l}`,
78
- role: u,
79
- "aria-label": c,
91
+ ref: m,
92
+ class: `rv-popover ${p === "menu" ? "rv-menu " : ""}${f}`,
93
+ role: p,
94
+ "aria-label": d,
80
95
  hidden: !e,
81
- children: e ? s : null
96
+ children: e ? u : null
82
97
  });
83
98
  }
84
- function ne({ text: e, children: t }) {
99
+ function oe({ text: e, children: t }) {
85
100
  let n = a(null);
86
101
  return i(() => {
87
102
  let t = n.current;
88
103
  if (!t) return;
89
- let r = new D(), i, a = () => {
104
+ let r = new l(), i, a = () => {
90
105
  let n = t.querySelector("button, input, a[href], [tabindex]") ?? t;
91
106
  n !== i && (r.bind(n, e), i = n);
92
107
  };
@@ -106,7 +121,7 @@ function ne({ text: e, children: t }) {
106
121
  children: t
107
122
  });
108
123
  }
109
- function G({ open: e, title: r, closeLabel: s, onClose: c, children: l, footer: d, draggable: f, returnFocus: p }) {
124
+ function G({ open: e, title: r, closeLabel: s, onClose: c, children: l, footer: u, draggable: d, returnFocus: f }) {
110
125
  let m = a(null), h = a(c);
111
126
  h.current = c;
112
127
  let [g, _] = n();
@@ -115,11 +130,11 @@ function G({ open: e, title: r, closeLabel: s, onClose: c, children: l, footer:
115
130
  _(void 0);
116
131
  return;
117
132
  }
118
- let t = new T(m.current.ownerDocument), n = !0, i = t.open({
133
+ let t = new O(m.current.ownerDocument), n = !0, i = t.open({
119
134
  title: r,
120
135
  closeLabel: s,
121
- draggable: f,
122
- returnFocus: p,
136
+ draggable: d,
137
+ returnFocus: f,
123
138
  surfaceClass: "rv-ui-dialog",
124
139
  onClose: () => {
125
140
  _(void 0), n && h.current();
@@ -135,25 +150,25 @@ function G({ open: e, title: r, closeLabel: s, onClose: c, children: l, footer:
135
150
  e,
136
151
  r,
137
152
  s,
138
- f,
139
- p
153
+ d,
154
+ f
140
155
  ]), /* @__PURE__ */ o(t, { children: [
141
156
  /* @__PURE__ */ o("span", {
142
157
  ref: m,
143
158
  hidden: !0
144
159
  }),
145
- g && u(l, g.body),
146
- g && d && u(d, g.footer)
160
+ g && p(l, g.body),
161
+ g && u && p(u, g.footer)
147
162
  ] });
148
163
  }
149
- function re({ onConfirm: e, confirmLabel: n, cancelLabel: r, pending: i, ...a }) {
164
+ function se({ onConfirm: e, confirmLabel: n, cancelLabel: r, pending: i, ...a }) {
150
165
  return /* @__PURE__ */ o(G, {
151
166
  ...a,
152
- footer: /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(v, {
167
+ footer: /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(C, {
153
168
  disabled: i,
154
169
  onClick: a.onClose,
155
170
  children: r
156
- }), /* @__PURE__ */ o(v, {
171
+ }), /* @__PURE__ */ o(C, {
157
172
  variant: "primary",
158
173
  disabled: i,
159
174
  onClick: e,
@@ -161,55 +176,55 @@ function re({ onConfirm: e, confirmLabel: n, cancelLabel: r, pending: i, ...a })
161
176
  })] })
162
177
  });
163
178
  }
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 && N(e) ? e : F()), [_, y] = n(P(h, u.calendarSystem)), [b] = n(() => C("rv-date-picker"));
179
+ function ce({ value: e, onChange: t, label: r, openLabel: a, disabled: c, readOnly: l, ...d }) {
180
+ let [f, p] = n(!1), [m, h] = n(null), [g, _] = n(e && N(e) ? e : F()), [v, y] = n(P(g, d.calendarSystem)), [b] = n(() => s("rv-date-picker"));
166
181
  return i(() => {
167
- (c || l) && f(!1);
182
+ (c || l) && p(!1);
168
183
  }, [c, l]), /* @__PURE__ */ o("div", {
169
184
  class: "rv-date-picker",
170
185
  children: [
171
186
  /* @__PURE__ */ o(R, {
172
187
  label: r,
173
188
  value: e ?? "",
174
- minDate: u.minDate,
175
- maxDate: u.maxDate,
189
+ minDate: d.minDate,
190
+ maxDate: d.maxDate,
176
191
  disabled: c,
177
192
  readOnly: l,
178
193
  onChange: (e) => {
179
- typeof e != "string" || c || l || e && (u.minDate && e < u.minDate || u.maxDate && e > u.maxDate) || (!e || N(e)) && t(e || void 0);
194
+ typeof e != "string" || c || l || e && (d.minDate && e < d.minDate || d.maxDate && e > d.maxDate) || (!e || N(e)) && t(e || void 0);
180
195
  }
181
196
  }),
182
- /* @__PURE__ */ o(v, {
183
- ref: m,
197
+ /* @__PURE__ */ o(C, {
198
+ ref: h,
184
199
  "aria-label": a,
185
200
  "aria-haspopup": "dialog",
186
- "aria-expanded": d,
201
+ "aria-expanded": f,
187
202
  "aria-controls": b,
188
203
  disabled: c || l,
189
204
  onClick: () => {
190
- e && N(e) && (g(e), y(P(e, u.calendarSystem))), f(!d);
205
+ e && N(e) && (_(e), y(P(e, d.calendarSystem))), p(!f);
191
206
  },
192
- children: /* @__PURE__ */ o(s, { svg: L })
207
+ children: /* @__PURE__ */ o(u, { svg: L })
193
208
  }),
194
209
  /* @__PURE__ */ o(W, {
195
- open: d,
196
- anchor: p,
197
- onClose: () => f(!1),
210
+ open: f,
211
+ anchor: m,
212
+ onClose: () => p(!1),
198
213
  label: r,
199
214
  children: /* @__PURE__ */ o("div", {
200
215
  id: b,
201
216
  children: /* @__PURE__ */ o(z, {
202
- ...u,
203
- month: _,
204
- focusedDate: h,
217
+ ...d,
218
+ month: v,
219
+ focusedDate: g,
205
220
  selection: e ? {
206
221
  from: e,
207
222
  to: e
208
223
  } : void 0,
209
224
  onMonthChange: y,
210
- onFocusedDateChange: g,
225
+ onFocusedDateChange: _,
211
226
  onSelect: (e) => {
212
- t(e), f(!1), p?.focus();
227
+ t(e), p(!1), m?.focus();
213
228
  }
214
229
  })
215
230
  })
@@ -217,13 +232,13 @@ function ie({ value: e, onChange: t, label: r, openLabel: a, disabled: c, readOn
217
232
  ]
218
233
  });
219
234
  }
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), [_, y] = n(), [b, x] = n(e?.from ?? F()), [S, w] = n(P(b, f.calendarSystem)), [T] = n(() => C("rv-date-picker"));
235
+ function le({ value: e, onChange: t, label: r, fromLabel: a, toLabel: c, openLabel: l, disabled: d, readOnly: f, ...p }) {
236
+ let [m, h] = n(!1), [g, _] = n(null), [v, y] = n(), [b, x] = n(e?.from ?? F()), [S, w] = n(P(b, p.calendarSystem)), [T] = n(() => s("rv-date-picker"));
222
237
  i(() => {
223
- (u || d) && (m(!1), y(void 0));
224
- }, [u, d]);
238
+ (d || f) && (h(!1), y(void 0));
239
+ }, [d, f]);
225
240
  let E = (n, r) => {
226
- if (u || d || !N(r) || f.minDate && r < f.minDate || f.maxDate && r > f.maxDate) return;
241
+ if (d || f || !N(r) || p.minDate && r < p.minDate || p.maxDate && r > p.maxDate) return;
227
242
  let i = r;
228
243
  t(I(n === "from" ? i : e?.from ?? i, n === "to" ? i : e?.to ?? i));
229
244
  };
@@ -235,10 +250,10 @@ function ae({ value: e, onChange: t, label: r, fromLabel: a, toLabel: c, openLab
235
250
  /* @__PURE__ */ o(R, {
236
251
  label: a,
237
252
  value: e?.from ?? "",
238
- disabled: u,
239
- readOnly: d,
240
- minDate: f.minDate,
241
- maxDate: f.maxDate,
253
+ disabled: d,
254
+ readOnly: f,
255
+ minDate: p.minDate,
256
+ maxDate: p.maxDate,
242
257
  onChange: (e) => {
243
258
  typeof e == "string" && E("from", e);
244
259
  }
@@ -246,44 +261,44 @@ function ae({ value: e, onChange: t, label: r, fromLabel: a, toLabel: c, openLab
246
261
  /* @__PURE__ */ o(R, {
247
262
  label: c,
248
263
  value: e?.to ?? "",
249
- disabled: u,
250
- readOnly: d,
251
- minDate: f.minDate,
252
- maxDate: f.maxDate,
264
+ disabled: d,
265
+ readOnly: f,
266
+ minDate: p.minDate,
267
+ maxDate: p.maxDate,
253
268
  onChange: (e) => {
254
269
  typeof e == "string" && E("to", e);
255
270
  }
256
271
  }),
257
- /* @__PURE__ */ o(v, {
258
- ref: g,
259
- disabled: u || d,
272
+ /* @__PURE__ */ o(C, {
273
+ ref: _,
274
+ disabled: d || f,
260
275
  "aria-label": l,
261
276
  "aria-haspopup": "dialog",
262
- "aria-expanded": p,
277
+ "aria-expanded": m,
263
278
  "aria-controls": T,
264
279
  onClick: () => {
265
- y(void 0), e && (x(e.from), w(P(e.from, f.calendarSystem))), m(!p);
280
+ y(void 0), e && (x(e.from), w(P(e.from, p.calendarSystem))), h(!m);
266
281
  },
267
- children: /* @__PURE__ */ o(s, { svg: L })
282
+ children: /* @__PURE__ */ o(u, { svg: L })
268
283
  }),
269
284
  /* @__PURE__ */ o(W, {
270
- open: p,
271
- anchor: h,
285
+ open: m,
286
+ anchor: g,
272
287
  onClose: () => {
273
- m(!1), y(void 0);
288
+ h(!1), y(void 0);
274
289
  },
275
290
  label: r,
276
291
  children: /* @__PURE__ */ o("div", {
277
292
  id: T,
278
293
  children: /* @__PURE__ */ o(z, {
279
- ...f,
294
+ ...p,
280
295
  month: S,
281
296
  focusedDate: b,
282
- selection: _ ? I(_, b) : e,
297
+ selection: v ? I(v, b) : e,
283
298
  onMonthChange: w,
284
299
  onFocusedDateChange: x,
285
300
  onSelect: (e) => {
286
- _ ? (t(I(_, e)), y(void 0), m(!1), h?.focus()) : y(e);
301
+ v ? (t(I(v, e)), y(void 0), h(!1), g?.focus()) : y(e);
287
302
  }
288
303
  })
289
304
  })
@@ -292,7 +307,7 @@ function ae({ value: e, onChange: t, label: r, fromLabel: a, toLabel: c, openLab
292
307
  });
293
308
  }
294
309
  //#endregion
295
- //#region src/pdf-viewer/translations.ts
310
+ //#region package/pdf-viewer/translations.ts
296
311
  var K = {
297
312
  viewer: "PDF document",
298
313
  pages: "Document pages",
@@ -345,7 +360,7 @@ function J(e) {
345
360
  };
346
361
  }
347
362
  //#endregion
348
- //#region src/pdf-viewer/toolbar-options.ts
363
+ //#region package/pdf-viewer/toolbar-options.ts
349
364
  function Y(e) {
350
365
  return e === !1 ? { tools: [] } : Array.isArray(e) ? { tools: e } : e ?? {};
351
366
  }
@@ -360,30 +375,30 @@ function X(e, t) {
360
375
  ].includes(t) || n.buttons?.[t] !== !1);
361
376
  }
362
377
  //#endregion
363
- //#region src/pdf-viewer/icons.ts
378
+ //#region package/pdf-viewer/icons.ts
364
379
  var Z = {
365
- previous: x,
366
- next: S,
380
+ previous: w,
381
+ next: T,
367
382
  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
383
  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
- 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
- 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
- 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: k,
384
+ search: B,
385
+ minus: ne,
386
+ plus: te,
387
+ rotate: A,
373
388
  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
389
  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
- close: w,
376
- up: A,
377
- down: d,
390
+ close: E,
391
+ up: j,
392
+ down: m,
378
393
  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
394
  };
380
395
  //#endregion
381
- //#region src/pdf-viewer/toolbar.tsx
396
+ //#region package/pdf-viewer/toolbar.tsx
382
397
  function Q(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];
398
+ let { controller: r, state: s } = e, c = J(e.text), l = Y(e.config), p = s.status === "ready", m = (e) => l.buttons?.[e] !== !1, h = (e) => {
399
+ let t = l.buttons?.[e];
385
400
  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(u.page || "")), k = Number.isFinite(f.zoomStep) && f.zoomStep > 1 ? f.zoomStep : 1.25, A = [...new Set((f.zoomLevels ?? [
401
+ }, v = (t) => X(e.config, t), [x, w] = n(!1), T = a(null), E = a(null), [D, O] = n(String(s.page || "")), k = Number.isFinite(l.zoomStep) && l.zoomStep > 1 ? l.zoomStep : 1.25, A = [...new Set((l.zoomLevels ?? [
387
402
  "page-width",
388
403
  "page-fit",
389
404
  .5,
@@ -395,22 +410,22 @@ function Q(e) {
395
410
  3,
396
411
  5
397
412
  ]).filter((e) => e === "page-width" || e === "page-fit" || typeof e == "number" && Number.isFinite(e) && e >= .25 && e <= 5))];
398
- A.includes(u.zoom) || A.push(u.zoom), i(() => {
399
- O(String(u.page || ""));
400
- }, [u.page, r]), i(() => {
413
+ A.includes(s.zoom) || A.push(s.zoom), i(() => {
414
+ O(String(s.page || ""));
415
+ }, [s.page, r]), i(() => {
401
416
  w(!1);
402
417
  }, [
403
418
  e.config,
404
- h,
419
+ p,
405
420
  r
406
421
  ]), i(() => {
407
- if (!C) return;
422
+ if (!x) return;
408
423
  E.current?.querySelector("[role=\"menuitem\"]:not(:disabled)")?.focus();
409
424
  let e = T.current, t = new ResizeObserver(() => {
410
425
  e && !e.getClientRects().length && w(!1);
411
426
  });
412
427
  return e && t.observe(e), () => t.disconnect();
413
- }, [C]);
428
+ }, [x]);
414
429
  let j = () => {
415
430
  w(!1), T.current?.focus({ preventScroll: !0 });
416
431
  }, M = () => {
@@ -424,88 +439,88 @@ function Q(e) {
424
439
  "rotate",
425
440
  "download",
426
441
  "print"
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 ?? ""}`,
442
+ ].some(v) ? /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(g, {
443
+ label: c.toolbar,
444
+ className: `rv-pdf-viewer__toolbar rv-toolbar--surface ${l.className ?? ""}`,
430
445
  children: [
431
- S("open") && /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(v, {
446
+ v("open") && /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(C, {
432
447
  variant: "ghost",
433
448
  size: "compact",
434
- ...x("open"),
435
- title: x("open").title ?? d.open,
436
- "aria-label": d.open,
449
+ ...h("open"),
450
+ title: h("open").title ?? c.open,
451
+ "aria-label": c.open,
437
452
  onClick: () => e.onOpen(),
438
- children: [/* @__PURE__ */ o(s, { svg: Z.open }), /* @__PURE__ */ o("span", {
453
+ children: [/* @__PURE__ */ o(u, { svg: Z.open }), /* @__PURE__ */ o("span", {
439
454
  class: "rv-pdf-viewer__open-label",
440
- children: d.open
455
+ children: c.open
441
456
  })]
442
457
  }) }),
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,
458
+ v("navigation") && (l.boundaryButtons || m("previous") || m("next") || l.showPageInput !== !1 || l.showPageCount !== !1) && /* @__PURE__ */ o(_, {
459
+ label: c.page,
460
+ children: /* @__PURE__ */ o(y, {
461
+ page: s.page - 1,
462
+ pageCount: s.pageCount,
448
463
  onChange: (e) => r.goToPage(e + 1),
449
- label: d.page,
450
- previousLabel: d.previous,
451
- nextLabel: d.next,
452
- firstLabel: d.first,
453
- lastLabel: d.last,
464
+ label: c.page,
465
+ previousLabel: c.previous,
466
+ nextLabel: c.next,
467
+ firstLabel: c.first,
468
+ lastLabel: c.last,
454
469
  variant: "icons",
455
- disabled: !h,
456
- boundaryButtons: f.boundaryButtons,
470
+ disabled: !p,
471
+ boundaryButtons: l.boundaryButtons,
457
472
  buttons: {
458
- first: f.buttons?.first,
459
- previous: f.buttons?.previous,
460
- next: f.buttons?.next,
461
- last: f.buttons?.last
473
+ first: l.buttons?.first,
474
+ previous: l.buttons?.previous,
475
+ next: l.buttons?.next,
476
+ last: l.buttons?.last
462
477
  },
463
- children: [f.showPageInput !== !1 && /* @__PURE__ */ o(l, {
478
+ children: [l.showPageInput !== !1 && /* @__PURE__ */ o(f, {
464
479
  class: "rv-pdf-viewer__page-input",
465
480
  type: "number",
466
481
  min: 1,
467
- max: u.pageCount || 1,
468
- disabled: !h,
469
- "aria-label": d.page,
482
+ max: s.pageCount || 1,
483
+ disabled: !p,
484
+ "aria-label": c.page,
470
485
  value: D,
471
486
  onInput: (e) => O(e.currentTarget.value),
472
487
  onChange: M,
473
488
  onKeyDown: (e) => {
474
- e.key === "Enter" && (e.preventDefault(), M()), e.key === "Escape" && (e.preventDefault(), O(String(u.page)));
489
+ e.key === "Enter" && (e.preventDefault(), M()), e.key === "Escape" && (e.preventDefault(), O(String(s.page)));
475
490
  }
476
- }), f.showPageCount !== !1 && /* @__PURE__ */ o("span", {
491
+ }), l.showPageCount !== !1 && /* @__PURE__ */ o("span", {
477
492
  class: "rv-pdf-viewer__page-count",
478
- children: q(d.pageCount, {
479
- of: d.of,
480
- pages: u.pageCount
493
+ children: q(c.pageCount, {
494
+ of: c.of,
495
+ pages: s.pageCount
481
496
  })
482
497
  })]
483
498
  })
484
499
  }),
485
- S("zoom") && (y("zoomOut") || y("zoomIn") || f.showZoomSelect !== !1) && /* @__PURE__ */ o(m, {
486
- label: d.zoom,
500
+ v("zoom") && (m("zoomOut") || m("zoomIn") || l.showZoomSelect !== !1) && /* @__PURE__ */ o(_, {
501
+ label: c.zoom,
487
502
  children: [
488
- y("zoomOut") && /* @__PURE__ */ o(_, {
489
- ...x("zoomOut"),
490
- label: d.zoomOut,
503
+ m("zoomOut") && /* @__PURE__ */ o(S, {
504
+ ...h("zoomOut"),
505
+ label: c.zoomOut,
491
506
  icon: Z.minus,
492
507
  size: "compact",
493
- disabled: !h || u.scale <= .25 || !!x("zoomOut").disabled,
494
- onClick: () => r.setZoom(u.scale / k)
508
+ disabled: !p || s.scale <= .25 || !!h("zoomOut").disabled,
509
+ onClick: () => r.setZoom(s.scale / k)
495
510
  }),
496
- f.showZoomSelect !== !1 && /* @__PURE__ */ o("div", {
511
+ l.showZoomSelect !== !1 && /* @__PURE__ */ o("div", {
497
512
  class: "rv-pdf-viewer__zoom-select",
498
- children: /* @__PURE__ */ o(c, {
513
+ children: /* @__PURE__ */ o(d, {
499
514
  className: "rv-select",
500
515
  config: {
501
- ariaLabel: d.zoom,
516
+ ariaLabel: c.zoom,
502
517
  portalTarget: e.appendTo
503
518
  },
504
- disabled: !h,
505
- value: String(u.zoom),
519
+ disabled: !p,
520
+ value: String(s.zoom),
506
521
  source: A.map((e) => ({
507
522
  value: String(e),
508
- label: e === "page-width" ? d.fitWidth : e === "page-fit" ? d.fitPage : q(d.zoomPercentage, { percent: Math.round(e * 100) })
523
+ label: e === "page-width" ? c.fitWidth : e === "page-fit" ? c.fitPage : q(c.zoomPercentage, { percent: Math.round(e * 100) })
509
524
  })),
510
525
  onChange: (e) => {
511
526
  let t = String(e);
@@ -513,122 +528,122 @@ function Q(e) {
513
528
  }
514
529
  })
515
530
  }),
516
- y("zoomIn") && /* @__PURE__ */ o(_, {
517
- ...x("zoomIn"),
518
- label: d.zoomIn,
531
+ m("zoomIn") && /* @__PURE__ */ o(S, {
532
+ ...h("zoomIn"),
533
+ label: c.zoomIn,
519
534
  icon: Z.plus,
520
535
  size: "compact",
521
- disabled: !h || u.scale >= 5 || !!x("zoomIn").disabled,
522
- onClick: () => r.setZoom(u.scale * k)
536
+ disabled: !p || s.scale >= 5 || !!h("zoomIn").disabled,
537
+ onClick: () => r.setZoom(s.scale * k)
523
538
  })
524
539
  ]
525
540
  }),
526
- S("search") && /* @__PURE__ */ o(m, { children: y("search") && /* @__PURE__ */ o(_, {
527
- ...x("search"),
528
- label: d.search,
541
+ v("search") && /* @__PURE__ */ o(_, { children: m("search") && /* @__PURE__ */ o(S, {
542
+ ...h("search"),
543
+ label: c.search,
529
544
  icon: Z.search,
530
545
  size: "compact",
531
- disabled: !h || !!x("search").disabled,
546
+ disabled: !p || !!h("search").disabled,
532
547
  "aria-expanded": e.searchOpen,
533
548
  "aria-controls": e.searchId,
534
549
  "aria-keyshortcuts": "Control+f Meta+f",
535
550
  onClick: (t) => e.onToggleSearch(t.currentTarget)
536
551
  }) }),
537
- (S("rotate") || S("download") || S("print")) && /* @__PURE__ */ o(m, {
552
+ (v("rotate") || v("download") || v("print")) && /* @__PURE__ */ o(_, {
538
553
  className: "rv-pdf-viewer__actions rv-pdf-viewer__desktop-actions",
539
554
  children: [
540
- S("rotate") && /* @__PURE__ */ o(_, {
541
- ...x("rotate"),
542
- label: d.rotate,
555
+ v("rotate") && /* @__PURE__ */ o(S, {
556
+ ...h("rotate"),
557
+ label: c.rotate,
543
558
  icon: Z.rotate,
544
559
  size: "compact",
545
- disabled: !h || !!x("rotate").disabled,
560
+ disabled: !p || !!h("rotate").disabled,
546
561
  onClick: () => r.rotate()
547
562
  }),
548
- S("download") && /* @__PURE__ */ o(_, {
549
- ...x("download"),
550
- label: d.download,
563
+ v("download") && /* @__PURE__ */ o(S, {
564
+ ...h("download"),
565
+ label: c.download,
551
566
  icon: Z.download,
552
567
  size: "compact",
553
- disabled: !h || !!x("download").disabled,
568
+ disabled: !p || !!h("download").disabled,
554
569
  onClick: () => void r.download()
555
570
  }),
556
- S("print") && /* @__PURE__ */ o(_, {
557
- ...x("print"),
558
- label: d.print,
571
+ v("print") && /* @__PURE__ */ o(S, {
572
+ ...h("print"),
573
+ label: c.print,
559
574
  icon: Z.print,
560
575
  size: "compact",
561
- disabled: !h || u.printing || !!x("print").disabled,
562
- busy: u.printing,
576
+ disabled: !p || s.printing || !!h("print").disabled,
577
+ busy: s.printing,
563
578
  onClick: () => void r.print()
564
579
  })
565
580
  ]
566
581
  }),
567
- (S("rotate") || S("download") || S("print")) && /* @__PURE__ */ o(m, {
582
+ (v("rotate") || v("download") || v("print")) && /* @__PURE__ */ o(_, {
568
583
  className: "rv-pdf-viewer__more",
569
- children: /* @__PURE__ */ o(v, {
584
+ children: /* @__PURE__ */ o(C, {
570
585
  ref: T,
571
586
  variant: "ghost",
572
587
  size: "compact",
573
588
  className: "rv-btn-icon",
574
- title: d.more,
575
- "aria-label": d.more,
589
+ title: c.more,
590
+ "aria-label": c.more,
576
591
  "aria-haspopup": "menu",
577
- "aria-expanded": C,
578
- disabled: !h,
579
- onClick: () => w(!C),
592
+ "aria-expanded": x,
593
+ disabled: !p,
594
+ onClick: () => w(!x),
580
595
  onKeyDown: (e) => {
581
596
  e.key === "ArrowDown" && (e.preventDefault(), w(!0));
582
597
  },
583
- children: /* @__PURE__ */ o(s, { svg: Z.more })
598
+ children: /* @__PURE__ */ o(u, { svg: Z.more })
584
599
  })
585
600
  })
586
601
  ]
587
602
  }), /* @__PURE__ */ o(W, {
588
- open: C,
603
+ open: x,
589
604
  anchor: T.current,
590
605
  appendTo: e.appendTo,
591
606
  onClose: () => w(!1),
592
607
  role: "menu",
593
- label: d.more,
608
+ label: c.more,
594
609
  children: /* @__PURE__ */ o("div", {
595
610
  ref: E,
596
611
  class: "rv-pdf-viewer__menu",
597
612
  children: [
598
- S("rotate") && /* @__PURE__ */ o(g, {
599
- className: x("rotate").className,
600
- disabled: !!x("rotate").disabled,
613
+ v("rotate") && /* @__PURE__ */ o(b, {
614
+ className: h("rotate").className,
615
+ disabled: !!h("rotate").disabled,
601
616
  onClick: () => {
602
617
  r.rotate(), j();
603
618
  },
604
- children: [/* @__PURE__ */ o(s, { svg: Z.rotate }), d.rotate]
619
+ children: [/* @__PURE__ */ o(u, { svg: Z.rotate }), c.rotate]
605
620
  }),
606
- S("download") && /* @__PURE__ */ o(g, {
607
- className: x("download").className,
608
- disabled: !!x("download").disabled,
621
+ v("download") && /* @__PURE__ */ o(b, {
622
+ className: h("download").className,
623
+ disabled: !!h("download").disabled,
609
624
  onClick: () => {
610
625
  r.download(), j();
611
626
  },
612
- children: [/* @__PURE__ */ o(s, { svg: Z.download }), d.download]
627
+ children: [/* @__PURE__ */ o(u, { svg: Z.download }), c.download]
613
628
  }),
614
- S("print") && /* @__PURE__ */ o(g, {
615
- className: x("print").className,
616
- disabled: u.printing || !!x("print").disabled,
629
+ v("print") && /* @__PURE__ */ o(b, {
630
+ className: h("print").className,
631
+ disabled: s.printing || !!h("print").disabled,
617
632
  onClick: () => {
618
633
  r.print(), j();
619
634
  },
620
- children: [/* @__PURE__ */ o(s, { svg: Z.print }), d.print]
635
+ children: [/* @__PURE__ */ o(u, { svg: Z.print }), c.print]
621
636
  })
622
637
  ]
623
638
  })
624
639
  })] }) : null;
625
640
  }
626
641
  //#endregion
627
- //#region src/pdf-viewer/search-bar.tsx
628
- function oe({ id: e, controller: t, state: n, text: r, onClose: a, inputRef: c }) {
629
- let l = n.status === "ready";
642
+ //#region package/pdf-viewer/search-bar.tsx
643
+ function ue({ id: e, controller: t, state: n, text: r, onClose: a, inputRef: s }) {
644
+ let c = n.status === "ready";
630
645
  return i(() => {
631
- c.current?.focus();
646
+ s.current?.focus();
632
647
  }, []), /* @__PURE__ */ o("div", {
633
648
  id: e,
634
649
  class: "rv-pdf-viewer__search",
@@ -637,13 +652,13 @@ function oe({ id: e, controller: t, state: n, text: r, onClose: a, inputRef: c }
637
652
  onKeyDown: (e) => {
638
653
  e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), a());
639
654
  },
640
- children: [/* @__PURE__ */ o(ee, {
641
- icon: /* @__PURE__ */ o(s, { svg: Z.search }),
642
- inputRef: c,
655
+ children: [/* @__PURE__ */ o(re, {
656
+ icon: /* @__PURE__ */ o(u, { svg: Z.search }),
657
+ inputRef: s,
643
658
  "aria-label": r.search,
644
659
  placeholder: r.search,
645
660
  value: n.query,
646
- disabled: !l,
661
+ disabled: !c,
647
662
  onValueChange: (e) => t.search(e),
648
663
  onKeyDown: (e) => {
649
664
  e.key === "Enter" && (e.preventDefault(), t.search(n.query, e.shiftKey, !0));
@@ -660,21 +675,21 @@ function oe({ id: e, controller: t, state: n, text: r, onClose: a, inputRef: c }
660
675
  matches: r.matches
661
676
  }) : r.noMatches : ""
662
677
  }),
663
- /* @__PURE__ */ o(_, {
678
+ /* @__PURE__ */ o(S, {
664
679
  label: r.previousMatch,
665
680
  icon: Z.up,
666
681
  size: "compact",
667
- disabled: !l || !n.matchCount,
682
+ disabled: !c || !n.matchCount,
668
683
  onClick: () => t.search(n.query, !0, !0)
669
684
  }),
670
- /* @__PURE__ */ o(_, {
685
+ /* @__PURE__ */ o(S, {
671
686
  label: r.nextMatch,
672
687
  icon: Z.down,
673
688
  size: "compact",
674
- disabled: !l || !n.matchCount,
689
+ disabled: !c || !n.matchCount,
675
690
  onClick: () => t.search(n.query, !1, !0)
676
691
  }),
677
- /* @__PURE__ */ o(_, {
692
+ /* @__PURE__ */ o(S, {
678
693
  label: r.closeSearch,
679
694
  icon: Z.close,
680
695
  size: "compact",
@@ -685,16 +700,16 @@ function oe({ id: e, controller: t, state: n, text: r, onClose: a, inputRef: c }
685
700
  });
686
701
  }
687
702
  //#endregion
688
- //#region src/pdf-viewer/header.tsx
689
- function se({ state: e, text: n, onCancelPrint: r, showDetails: i = !0 }) {
703
+ //#region package/pdf-viewer/header.tsx
704
+ function de({ state: e, text: n, onCancelPrint: r, showDetails: i = !0 }) {
690
705
  let a = e.status === "ready";
691
706
  return /* @__PURE__ */ o("header", {
692
707
  class: "rv-pdf-viewer__header",
693
708
  children: [
694
- i && /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(s, {
709
+ i && /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(u, {
695
710
  svg: Z.document,
696
711
  className: "rv-svg-icon rv-pdf-viewer__document-icon"
697
- }), /* @__PURE__ */ o("span", {
712
+ }), /* @__PURE__ */ o(D, {
698
713
  class: "rv-pdf-viewer__filename",
699
714
  title: e.fileName,
700
715
  children: e.fileName
@@ -708,7 +723,7 @@ function se({ state: e, text: n, onCancelPrint: r, showDetails: i = !0 }) {
708
723
  pages: e.pageCount
709
724
  }) : ""
710
725
  }),
711
- e.printing && /* @__PURE__ */ o(v, {
726
+ e.printing && /* @__PURE__ */ o(C, {
712
727
  variant: "ghost",
713
728
  size: "compact",
714
729
  onClick: () => r(),
@@ -718,25 +733,25 @@ function se({ state: e, text: n, onCancelPrint: r, showDetails: i = !0 }) {
718
733
  });
719
734
  }
720
735
  //#endregion
721
- //#region src/pdf-viewer/status.tsx
722
- function ce({ state: e, text: n, controller: r, canOpen: i, onOpen: a }) {
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, {
736
+ //#region package/pdf-viewer/status.tsx
737
+ function fe({ state: e, text: n, controller: r, canOpen: i, onOpen: a }) {
738
+ return e.status === "loading" ? /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ o(h, { label: n.loading }), /* @__PURE__ */ o("span", { children: n.loading })] }) : e.status === "error" ? /* @__PURE__ */ o(v, {
724
739
  tone: "danger",
725
740
  title: n.error,
726
741
  description: n.errorDescription,
727
- actions: /* @__PURE__ */ o(t, { children: [r.canRetry && /* @__PURE__ */ o(v, {
742
+ actions: /* @__PURE__ */ o(t, { children: [r.canRetry && /* @__PURE__ */ o(C, {
728
743
  size: "compact",
729
744
  onClick: () => void r.retry(),
730
745
  children: n.retry
731
- }), i && /* @__PURE__ */ o(v, {
746
+ }), i && /* @__PURE__ */ o(C, {
732
747
  size: "compact",
733
748
  onClick: () => a(),
734
749
  children: n.open
735
750
  })] })
736
- }) : /* @__PURE__ */ o(y, {
751
+ }) : /* @__PURE__ */ o(x, {
737
752
  title: n.empty,
738
753
  description: n.emptyHint,
739
- children: i && /* @__PURE__ */ o(v, {
754
+ children: i && /* @__PURE__ */ o(C, {
740
755
  variant: "primary",
741
756
  onClick: () => a(),
742
757
  children: n.open
@@ -744,9 +759,9 @@ function ce({ state: e, text: n, controller: r, canOpen: i, onOpen: a }) {
744
759
  });
745
760
  }
746
761
  //#endregion
747
- //#region src/pdf-viewer/component.tsx
748
- function le(e) {
749
- let t = r(() => new B(e), [
762
+ //#region package/pdf-viewer/component.tsx
763
+ function pe(e) {
764
+ let t = r(() => new V(e), [
750
765
  e.workerSrc,
751
766
  e.documentOptions,
752
767
  e.initialPage,
@@ -759,13 +774,13 @@ function le(e) {
759
774
  });
760
775
  }
761
776
  function $(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) => {
763
- let t = b?.[e];
777
+ let { controller: t } = e, [r, c] = n(t.snapshot), [l, u] = n(!1), [d] = n(() => s("rv-pdf-search")), p = a(null), m = a(null), h = a(null), g = a(null), _ = a(null), y = J(e.text), b = r.status === "ready", x = Y(e.toolbar).buttons, S = (e) => {
778
+ let t = x?.[e];
764
779
  return t !== !1 && !t?.disabled;
765
- }, S = X(e.toolbar, "search") && x("search"), w = X(e.toolbar, "open") && x("open");
766
- t.setCallbacks(e), t.setPrintTitle(v.printDocument), i(() => {
767
- let n = t.subscribe(s);
768
- return t.attach(m.current).catch(() => {}), e.onReady?.(t), () => {
780
+ }, C = X(e.toolbar, "search") && S("search"), w = X(e.toolbar, "open") && S("open");
781
+ t.setCallbacks(e), t.setPrintTitle(y.printDocument), i(() => {
782
+ let n = t.subscribe(c);
783
+ return t.attach(h.current).catch(() => {}), e.onReady?.(t), () => {
769
784
  n(), t.destroy();
770
785
  };
771
786
  }, [t]), i(() => {
@@ -777,87 +792,87 @@ function $(e) {
777
792
  ]);
778
793
  let T = () => {
779
794
  t.clearSearch(), u(!1);
780
- let e = f.current;
781
- e?.isConnected && !e.hasAttribute("disabled") ? e.focus({ preventScroll: !0 }) : m.current?.focus({ preventScroll: !0 });
795
+ let e = p.current;
796
+ e?.isConnected && !e.hasAttribute("disabled") ? e.focus({ preventScroll: !0 }) : h.current?.focus({ preventScroll: !0 });
782
797
  }, E = (e) => {
783
- c || (f.current = e), u(!0), _.current?.focus();
798
+ l || (p.current = e), u(!0), _.current?.focus();
784
799
  };
785
800
  i(() => {
786
- S || (t.clearSearch(), u(!1), c && m.current?.focus({ preventScroll: !0 }));
787
- }, [S, t]);
801
+ C || (t.clearSearch(), u(!1), l && h.current?.focus({ preventScroll: !0 }));
802
+ }, [C, t]);
788
803
  let D = {
789
804
  controller: t,
790
805
  state: r,
791
- text: v,
806
+ text: y,
792
807
  config: e.toolbar,
793
- searchOpen: c,
808
+ searchOpen: l,
794
809
  searchId: d,
795
- appendTo: p.current ?? void 0,
810
+ appendTo: m.current ?? void 0,
796
811
  onOpen: () => g.current?.click(),
797
- onToggleSearch: (e) => c ? T() : E(e)
812
+ onToggleSearch: (e) => l ? T() : E(e)
798
813
  };
799
814
  return /* @__PURE__ */ o("section", {
800
- ref: p,
815
+ ref: m,
801
816
  class: `rv-pdf-viewer ${e.className ?? ""}`,
802
817
  style: { height: e.height ?? 640 },
803
- "aria-label": v.viewer,
818
+ "aria-label": y.viewer,
804
819
  onKeyDown: (e) => {
805
- (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "f" && y && S && (e.preventDefault(), E(e.target));
820
+ (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "f" && b && C && (e.preventDefault(), E(e.target));
806
821
  },
807
822
  children: [
808
- (e.showHeader !== !1 || r.printing) && /* @__PURE__ */ o(se, {
823
+ (e.showHeader !== !1 || r.printing) && /* @__PURE__ */ o(de, {
809
824
  showDetails: e.showHeader !== !1,
810
825
  state: r,
811
- text: v,
826
+ text: y,
812
827
  onCancelPrint: () => t.cancelPrint()
813
828
  }),
814
829
  e.toolbar !== !1 && (e.renderToolbar ? e.renderToolbar(t, r, D) : /* @__PURE__ */ o(Q, { ...D })),
815
- /* @__PURE__ */ o(l, {
830
+ /* @__PURE__ */ o(f, {
816
831
  ref: g,
817
832
  type: "file",
818
833
  accept: "application/pdf,.pdf",
819
834
  hidden: !0,
820
- "aria-label": v.open,
835
+ "aria-label": y.open,
821
836
  onChange: (e) => {
822
837
  let n = e.currentTarget.files?.[0];
823
838
  e.currentTarget.value = "", n && t.load(n);
824
839
  }
825
840
  }),
826
- c && S && /* @__PURE__ */ o(oe, {
841
+ l && C && /* @__PURE__ */ o(ue, {
827
842
  inputRef: _,
828
843
  id: d,
829
844
  controller: t,
830
845
  state: r,
831
- text: v,
846
+ text: y,
832
847
  onClose: T
833
848
  }),
834
849
  /* @__PURE__ */ o("div", {
835
850
  class: "rv-pdf-viewer__body",
836
851
  "aria-busy": r.status === "loading",
837
852
  children: [/* @__PURE__ */ o("div", {
838
- ref: m,
853
+ ref: h,
839
854
  class: "rv-pdf-viewer__viewport",
840
855
  tabIndex: 0,
841
856
  role: "region",
842
- "aria-label": v.pages
843
- }), !y && /* @__PURE__ */ o("div", {
857
+ "aria-label": y.pages
858
+ }), !b && /* @__PURE__ */ o("div", {
844
859
  class: "rv-pdf-viewer__status",
845
- children: e.renderStatus ? e.renderStatus(r) : /* @__PURE__ */ o(ce, {
860
+ children: e.renderStatus ? e.renderStatus(r) : /* @__PURE__ */ o(fe, {
846
861
  state: r,
847
- text: v,
862
+ text: y,
848
863
  controller: t,
849
864
  canOpen: w,
850
865
  onOpen: D.onOpen
851
866
  })
852
867
  })]
853
868
  }),
854
- y && r.error && /* @__PURE__ */ o(h, {
869
+ b && r.error && /* @__PURE__ */ o(v, {
855
870
  className: "rv-pdf-viewer__error",
856
871
  tone: "danger",
857
- description: v.operationError
872
+ description: y.operationError
858
873
  })
859
874
  ]
860
875
  });
861
876
  }
862
877
  //#endregion
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 };
878
+ export { ie as a, ce as c, U as d, W as f, K as i, le as l, oe as m, $ as n, H as o, ae as p, Q as r, se as s, pe as t, G as u };