@nxgt/material 3.56.0 → 3.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (440) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +2 -1
  3. package/dist/{async-slice-CORlM_wu.js → async-slice-C_Juki7i.js} +2 -2
  4. package/dist/{background-BtSZsTvY.js → background-qdnet2A5.js} +124 -83
  5. package/dist/backgrounds.js +1 -1
  6. package/dist/{button-CdpVEza0.js → button-CCHGtPIN.js} +97 -74
  7. package/dist/{callout-view-C6voDS00.js → callout-view-C7UznnDW.js} +1 -1
  8. package/dist/charts.js +1531 -1489
  9. package/dist/{chip-C0yNYz9m.js → chip-1XnyX4bd.js} +2 -2
  10. package/dist/{code-editor-Bwzp2038.js → code-editor-1Y7ykpam.js} +307 -277
  11. package/dist/code-editor.js +14 -14
  12. package/dist/{code-language-items-nP-pF7yH.js → code-language-items-Clbln9C6.js} +2 -2
  13. package/dist/{components-Dl2hVfzt.js → components-Cj3lJ_uK.js} +28593 -25906
  14. package/dist/components.js +26 -26
  15. package/dist/{convert-XAkWyO8-.js → convert-7g-F5cNf.js} +1 -1
  16. package/dist/{dialog-BVgsN9Ch.js → dialog-Cx_xWUVR.js} +4 -4
  17. package/dist/dnd.js +1 -1
  18. package/dist/draw-animate.js +1 -1
  19. package/dist/{dropdown-menu-C8PBmMIa.js → dropdown-menu-Jp6pHNgP.js} +1 -1
  20. package/dist/editor-viewer.js +1 -1
  21. package/dist/editor.js +715 -607
  22. package/dist/empty-state-D61RimJr.js +139 -0
  23. package/dist/{escape-owner-CYnfySUl.js → escape-owner-Ch_-kDLw.js} +1 -1
  24. package/dist/{field-blur-Nid7-bt_.js → field-blur-BJjUHsgJ.js} +1 -1
  25. package/dist/{field-blur-context-DxdIuHAY.js → field-blur-context-CmOF0FIN.js} +1 -1
  26. package/dist/{headless-extensions-CvmdhANJ.js → headless-extensions-B1NAgmkE.js} +1 -1
  27. package/dist/hooks.js +2 -2
  28. package/dist/{hover-card-C_9jiwp1.js → hover-card-CVmY0Z44.js} +2 -2
  29. package/dist/{i18n-provider-CLVZK6tQ.js → i18n-provider-C0uLEv0G.js} +1 -1
  30. package/dist/i18n.js +5 -5
  31. package/dist/{icon-badge-Dcjg_SKJ.js → icon-badge-bAQQK3ls.js} +3 -3
  32. package/dist/{icon-button-Bo-VuZ2n.js → icon-button-Csvj2R8S.js} +59 -59
  33. package/dist/{illustration-B4_W-OUS.js → illustration-DjZXUFbz.js} +11 -11
  34. package/dist/illustrations.js +1 -1
  35. package/dist/lib/backgrounds/background/background.d.ts +1 -1
  36. package/dist/lib/backgrounds/background/partials/use-background-scenes.d.ts +22 -0
  37. package/dist/lib/backgrounds/background/partials/use-themed-background.d.ts +304 -0
  38. package/dist/lib/components/ui/actions/action-card/action-card-semantics-branches.d.ts +63 -0
  39. package/dist/lib/components/ui/actions/action-card/action-card-semantics.d.ts +0 -4
  40. package/dist/lib/components/ui/actions/action-card/partials/action-card-text.d.ts +3 -1
  41. package/dist/lib/components/ui/actions/action-card/use-action-card.d.ts +80 -0
  42. package/dist/lib/components/ui/actions/button/button-busy.d.ts +8 -0
  43. package/dist/lib/components/ui/actions/button/button.classes.d.ts +7 -0
  44. package/dist/lib/components/ui/actions/toolbar/use-toolbar-state.d.ts +22 -0
  45. package/dist/lib/components/ui/collections/data-grid/columns/column-check.d.ts +15 -0
  46. package/dist/lib/components/ui/collections/data-grid/columns/column-edit.d.ts +1 -12
  47. package/dist/lib/components/ui/collections/data-grid/editors/editor-props.d.ts +20 -0
  48. package/dist/lib/components/ui/collections/data-grid/editors/editor-route-key.d.ts +11 -0
  49. package/dist/lib/components/ui/collections/data-grid/partials/grid-cell-access.d.ts +26 -0
  50. package/dist/lib/components/ui/collections/data-grid/partials/grid-header-name.d.ts +15 -0
  51. package/dist/lib/components/ui/collections/data-grid/partials/header-menu-button.d.ts +17 -0
  52. package/dist/lib/components/ui/collections/data-grid/partials/open-header-menu.d.ts +14 -0
  53. package/dist/lib/components/ui/collections/data-grid/partials/width-field.d.ts +18 -0
  54. package/dist/lib/components/ui/collections/data-grid/phone/phone-item.d.ts +2 -2
  55. package/dist/lib/components/ui/collections/data-table/partials/layouts/data-table-card-list.d.ts +17 -0
  56. package/dist/lib/components/ui/collections/data-table/partials/layouts/list-bar-clear.d.ts +10 -0
  57. package/dist/lib/components/ui/collections/data-table/partials/layouts/list-bar-in-row.d.ts +18 -0
  58. package/dist/lib/components/ui/collections/data-table/partials/page-button.d.ts +12 -0
  59. package/dist/lib/components/ui/collections/data-table/partials/page-icon-control.d.ts +21 -0
  60. package/dist/lib/components/ui/collections/data-table/partials/pager-buttons.d.ts +7 -0
  61. package/dist/lib/components/ui/collections/data-table/use-data-table-setup.d.ts +36 -0
  62. package/dist/lib/components/ui/collections/facet-group/partials/facet-group-header.d.ts +11 -0
  63. package/dist/lib/components/ui/collections/filter/filter-field-config-base.utils.d.ts +13 -0
  64. package/dist/lib/components/ui/collections/filter/filter-field-config-choice.utils.d.ts +5 -0
  65. package/dist/lib/components/ui/collections/filter/filter-field-config-value.utils.d.ts +5 -0
  66. package/dist/lib/components/ui/collections/filter/filter-field-config.utils.d.ts +6 -0
  67. package/dist/lib/components/ui/collections/filter/filter-legacy.d.ts +1 -1
  68. package/dist/lib/components/ui/collections/filter/filter-persistence-url-value.utils.d.ts +9 -0
  69. package/dist/lib/components/ui/collections/filter/filter-schema.utils.d.ts +1 -5
  70. package/dist/lib/components/ui/collections/filter/filter-validation-presets.utils.d.ts +24 -0
  71. package/dist/lib/components/ui/collections/filter/filter-validation-rules.utils.d.ts +11 -0
  72. package/dist/lib/components/ui/collections/filter/filter-validation.utils.d.ts +1 -23
  73. package/dist/lib/components/ui/collections/filter/partials/filter-field-special.d.ts +8 -0
  74. package/dist/lib/components/ui/collections/filter/partials/filter-form-field-variant.d.ts +10 -0
  75. package/dist/lib/components/ui/collections/filter/partials/filter-group-fields.d.ts +5 -0
  76. package/dist/lib/components/ui/collections/filter/partials/filter-legacy-variant.d.ts +3 -0
  77. package/dist/lib/components/ui/collections/filter/partials/filter-preset-fields.d.ts +9 -0
  78. package/dist/lib/components/ui/collections/filter/partials/filter-presets-menu-items.d.ts +13 -0
  79. package/dist/lib/components/ui/collections/filter/partials/filter-presets-menu.d.ts +5 -0
  80. package/dist/lib/components/ui/collections/filter/partials/filter-presets-save-dialog.d.ts +7 -0
  81. package/dist/lib/components/ui/collections/filter/partials/filter-presets-save-trigger.d.ts +7 -0
  82. package/dist/lib/components/ui/collections/filter/query/types.d.ts +3 -39
  83. package/dist/lib/components/ui/collections/filter/query/use-filter-query-options.d.ts +1 -1
  84. package/dist/lib/components/ui/collections/filter/query/use-filter-query-value.d.ts +2 -2
  85. package/dist/lib/components/ui/collections/filter/query/view-types.d.ts +40 -0
  86. package/dist/lib/components/ui/collections/filter/sections/use-filter-search.d.ts +14 -0
  87. package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +7483 -0
  88. package/dist/lib/components/ui/collections/list-pane/partials/list-pane-body.d.ts +12 -0
  89. package/dist/lib/components/ui/collections/list-pane/partials/list-pane-item-content.d.ts +15 -0
  90. package/dist/lib/components/ui/collections/list-pane/partials/list-pane-search.d.ts +8 -0
  91. package/dist/lib/components/ui/collections/pagination/pagination-bar-pages.d.ts +8 -0
  92. package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-action-button.d.ts +26 -0
  93. package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-buttons.d.ts +13 -11
  94. package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-entries.d.ts +11 -0
  95. package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-focus.d.ts +1 -28
  96. package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-keys.d.ts +37 -0
  97. package/dist/lib/components/ui/collections/server-table/partials/server-table-grid-paging.d.ts +8 -0
  98. package/dist/lib/components/ui/collections/server-table/types-filter.d.ts +70 -0
  99. package/dist/lib/components/ui/collections/server-table/types-states.d.ts +42 -0
  100. package/dist/lib/components/ui/collections/server-table/types.d.ts +4 -110
  101. package/dist/lib/components/ui/collections/tree/tree-expand-button.d.ts +6 -0
  102. package/dist/lib/components/ui/collections/tree/use-tree-keys.d.ts +14 -0
  103. package/dist/lib/components/ui/collections/tree/use-tree-select.d.ts +14 -0
  104. package/dist/lib/components/ui/collections/tree/use-tree.d.ts +5 -4
  105. package/dist/lib/components/ui/dates/calendar/calendar-year-button.d.ts +10 -0
  106. package/dist/lib/components/ui/dates/calendar/calendar-year-nav.d.ts +9 -0
  107. package/dist/lib/components/ui/dates/date-field/date-field-parts.d.ts +78 -0
  108. package/dist/lib/components/ui/dates/date-range-field/partials/date-range-body-scroll.d.ts +15 -0
  109. package/dist/lib/components/ui/dates/date-range-field/partials/preview-calendar-props.d.ts +11 -0
  110. package/dist/lib/components/ui/dates/date-range-field/partials/use-cancel-range.d.ts +6 -0
  111. package/dist/lib/components/ui/dates/date-range-field/use-end-on.d.ts +12 -0
  112. package/dist/lib/components/ui/dates/date-range-field/use-typed-range.d.ts +2 -3
  113. package/dist/lib/components/ui/dates/mini-month/partials/mini-month-day.d.ts +8 -0
  114. package/dist/lib/components/ui/dates/mini-month/partials/mini-month-head.d.ts +18 -0
  115. package/dist/lib/components/ui/dates/mini-month/partials/mini-month-markers.d.ts +5 -0
  116. package/dist/lib/components/ui/dates/mini-month/partials/use-grid-focus.d.ts +11 -0
  117. package/dist/lib/components/ui/dates/picker-trigger/typed-box-parts.d.ts +12 -0
  118. package/dist/lib/components/ui/dates/time-field/partials/use-time-field-model.d.ts +14 -5
  119. package/dist/lib/components/ui/dates/time-picker/partials/time-column.d.ts +13 -0
  120. package/dist/lib/components/ui/display/cards/cards.stories.data.detail.d.ts +9 -0
  121. package/dist/lib/components/ui/display/cards/cards.stories.data.feed.d.ts +7 -0
  122. package/dist/lib/components/ui/display/cards/cards.stories.data.intro.d.ts +11 -0
  123. package/dist/lib/components/ui/display/cards/types-detail.d.ts +74 -0
  124. package/dist/lib/components/ui/display/cards/types-feed.d.ts +41 -0
  125. package/dist/lib/components/ui/display/cards/types-intro.d.ts +76 -0
  126. package/dist/lib/components/ui/display/cards/types.d.ts +3 -187
  127. package/dist/lib/components/ui/display/code/code-block-parts.d.ts +16 -0
  128. package/dist/lib/components/ui/display/enrolment-secret/enrolment-secret-manual.d.ts +9 -0
  129. package/dist/lib/components/ui/display/entity-header/partials/entity-header-start.d.ts +11 -0
  130. package/dist/lib/components/ui/display/event-chip/event-chip-content.d.ts +12 -0
  131. package/dist/lib/components/ui/display/param-table/param-table-views.d.ts +19 -0
  132. package/dist/lib/components/ui/display/recovery-codes/partials/use-recovery-codes-actions.d.ts +22 -0
  133. package/dist/lib/components/ui/display/recovery-codes-status/partials/recovery-codes-status-plain.d.ts +13 -0
  134. package/dist/lib/components/ui/feedback/alert-dialog/alert-dialog-actions.d.ts +6 -0
  135. package/dist/lib/components/ui/feedback/alert-dialog/alert-dialog.d.ts +1 -3
  136. package/dist/lib/components/ui/feedback/confirm-dialog/use-confirm-action.d.ts +16 -0
  137. package/dist/lib/components/ui/feedback/confirmation-dialog/use-confirmation-form.d.ts +18 -0
  138. package/dist/lib/components/ui/feedback/countdown-timer/countdown-ring.d.ts +7 -0
  139. package/dist/lib/components/ui/feedback/countdown-timer/countdown-timer.d.ts +9 -1
  140. package/dist/lib/components/ui/feedback/notification-row/partials/notification-row-body.d.ts +10 -0
  141. package/dist/lib/components/ui/feedback/notification-row/partials/notification-row-dot.d.ts +2 -0
  142. package/dist/lib/components/ui/feedback/notification-row/partials/notification-row-open.d.ts +5 -0
  143. package/dist/lib/components/ui/feedback/notifications/notifications-model.d.ts +59 -0
  144. package/dist/lib/components/ui/feedback/notifications/use-notifications-chrome.d.ts +17 -0
  145. package/dist/lib/components/ui/feedback/notifications/use-notifications.d.ts +4 -38
  146. package/dist/lib/components/ui/feedback/spinner/spinner-variants.d.ts +5 -0
  147. package/dist/lib/components/ui/feedback/spinner/spinner.d.ts +1 -5
  148. package/dist/lib/components/ui/feedback/state-frame/state-frame-text.d.ts +10 -0
  149. package/dist/lib/components/ui/feedback/state-frame/use-state-media.d.ts +14 -0
  150. package/dist/lib/components/ui/feedback/step-dots/step-dot.d.ts +13 -0
  151. package/dist/lib/components/ui/feedback/step-dots/step-dots.d.ts +2 -1
  152. package/dist/lib/components/ui/feedback/step-up-dialog/describe-by.d.ts +4 -0
  153. package/dist/lib/components/ui/feedback/step-up-dialog/use-step-up-view.d.ts +34 -0
  154. package/dist/lib/components/ui/fields/attributes/attribute-form/attribute-options-form-fields.d.ts +7 -0
  155. package/dist/lib/components/ui/fields/attributes/attributes-list/attribute-tile.d.ts +11 -0
  156. package/dist/lib/components/ui/fields/attributes/partials/editor-rows.d.ts +15 -0
  157. package/dist/lib/components/ui/fields/contacts/partials/contact-groups.d.ts +20 -0
  158. package/dist/lib/components/ui/fields/contacts/partials/contact-tile.d.ts +13 -0
  159. package/dist/lib/components/ui/fields/contacts/partials/dialog-actions.d.ts +14 -0
  160. package/dist/lib/components/ui/fields/contacts/partials/dialog-fields.d.ts +14 -0
  161. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  162. package/dist/lib/components/ui/fields/country-field/iso-codes-1.d.ts +2 -0
  163. package/dist/lib/components/ui/fields/country-field/iso-codes-2.d.ts +2 -0
  164. package/dist/lib/components/ui/fields/country-field/iso-codes-3.d.ts +2 -0
  165. package/dist/lib/components/ui/fields/currency-field/use-currency-amount.d.ts +17 -0
  166. package/dist/lib/components/ui/fields/field/render-choice-field.d.ts +3 -0
  167. package/dist/lib/components/ui/fields/inline-edit/inline-edit-display.d.ts +12 -0
  168. package/dist/lib/components/ui/fields/inline-edit/inline-edit-editor.d.ts +14 -0
  169. package/dist/lib/components/ui/fields/inline-edit/use-inline-edit.d.ts +19 -0
  170. package/dist/lib/components/ui/fields/opening-hours/logic/missing-days.d.ts +3 -0
  171. package/dist/lib/components/ui/fields/opening-hours/partials/day-switch.d.ts +14 -0
  172. package/dist/lib/components/ui/fields/opening-hours/partials/dialog-actions.d.ts +13 -0
  173. package/dist/lib/components/ui/fields/opening-hours/partials/dialog-fields.d.ts +14 -0
  174. package/dist/lib/components/ui/fields/opening-hours/partials/hours-actions.d.ts +9 -0
  175. package/dist/lib/components/ui/fields/opening-hours/partials/hours-tile.d.ts +11 -0
  176. package/dist/lib/components/ui/fields/opening-hours/partials/week-rows.d.ts +14 -0
  177. package/dist/lib/components/ui/fields/opening-hours/use-hours-editor.d.ts +1 -0
  178. package/dist/lib/components/ui/fields/phone-field/phone-country-list.d.ts +10 -0
  179. package/dist/lib/components/ui/fields/phone-field/phone-dial-button.d.ts +10 -0
  180. package/dist/lib/components/ui/fields/phone-field/phone-number-input.d.ts +19 -0
  181. package/dist/lib/components/ui/fields/phone-field/use-phone-value.d.ts +17 -0
  182. package/dist/lib/components/ui/fields/postal-address/postal-address-dialog-actions.d.ts +14 -0
  183. package/dist/lib/components/ui/fields/postal-address/postal-address-dialog-fields.d.ts +10 -0
  184. package/dist/lib/components/ui/fields/rating-field/rating-color.d.ts +4 -0
  185. package/dist/lib/components/ui/fields/rating-field/rating-field.d.ts +1 -4
  186. package/dist/lib/components/ui/fields/rating-field/rating-star.d.ts +22 -0
  187. package/dist/lib/components/ui/fields/rating-field/use-rating.d.ts +16 -0
  188. package/dist/lib/components/ui/fields/search-field/search-box.d.ts +11 -0
  189. package/dist/lib/components/ui/fields/search-field/use-search-value.d.ts +21 -0
  190. package/dist/lib/components/ui/fields/slider/slider-control-row.d.ts +10 -0
  191. package/dist/lib/components/ui/fields/slider/slider-group-props.d.ts +16 -0
  192. package/dist/lib/components/ui/fields/slider/slider-group.d.ts +14 -0
  193. package/dist/lib/components/ui/fields/slider/slider-horizontal.d.ts +3 -0
  194. package/dist/lib/components/ui/fields/slider/slider-vertical.d.ts +3 -0
  195. package/dist/lib/components/ui/fields/slider/slider.d.ts +1 -1
  196. package/dist/lib/components/ui/fields/slider/use-slider-value.d.ts +10 -0
  197. package/dist/lib/components/ui/fields/textarea-field/textarea-footer.d.ts +14 -0
  198. package/dist/lib/components/ui/layout/app-shell/activity-chrome.d.ts +17 -0
  199. package/dist/lib/components/ui/layout/app-shell/activity-content-header.d.ts +15 -0
  200. package/dist/lib/components/ui/layout/app-shell/app-header-menu.d.ts +5 -0
  201. package/dist/lib/components/ui/layout/app-shell/band-boxes.d.ts +3 -0
  202. package/dist/lib/components/ui/layout/app-shell/collect-content.d.ts +24 -0
  203. package/dist/lib/components/ui/layout/app-shell/keep-inside-checker.d.ts +10 -0
  204. package/dist/lib/components/ui/layout/app-shell/page-title-focus.d.ts +32 -0
  205. package/dist/lib/components/ui/layout/app-shell/page-title-scope.d.ts +53 -0
  206. package/dist/lib/components/ui/layout/app-shell/page-title.d.ts +2 -82
  207. package/dist/lib/components/ui/layout/app-shell/use-keep-shapes-inside.d.ts +3 -13
  208. package/dist/lib/components/ui/layout/app-shell/watch-content.d.ts +2 -18
  209. package/dist/lib/components/ui/layout/auth-card/auth-card-parts.d.ts +25 -0
  210. package/dist/lib/components/ui/layout/doc/partials/doc-header-parts.d.ts +18 -0
  211. package/dist/lib/components/ui/layout/doc/partials/doc-header.d.ts +2 -4
  212. package/dist/lib/components/ui/layout/doc/partials/doc-nav-parts.d.ts +11 -0
  213. package/dist/lib/components/ui/layout/doc/use-doc-effects.d.ts +23 -0
  214. package/dist/lib/components/ui/layout/index.d.ts +1 -0
  215. package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item-content.d.ts +7 -0
  216. package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item.d.ts +2 -47
  217. package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item.types.d.ts +54 -0
  218. package/dist/lib/components/ui/layout/sticky-action-bar/index.d.ts +1 -0
  219. package/dist/lib/components/ui/layout/sticky-action-bar/keyboard-inset.d.ts +17 -0
  220. package/dist/lib/components/ui/layout/sticky-action-bar/sticky-action-bar.d.ts +17 -0
  221. package/dist/lib/components/ui/layout/sticky-action-bar/use-keyboard-inset.d.ts +8 -0
  222. package/dist/lib/components/ui/layout/toc/toc-list.d.ts +16 -0
  223. package/dist/lib/components/ui/media/compare-slider/partials/compare-slider-handle.d.ts +9 -0
  224. package/dist/lib/components/ui/media/compare-slider/use-compare-slider.d.ts +22 -0
  225. package/dist/lib/components/ui/media/file-list/file-list-field.d.ts +1 -1
  226. package/dist/lib/components/ui/media/file-list/partials/file-list-dropzone.d.ts +13 -0
  227. package/dist/lib/components/ui/media/file-list/partials/file-list-input.d.ts +11 -0
  228. package/dist/lib/components/ui/media/file-list/partials/file-list-items.d.ts +14 -0
  229. package/dist/lib/components/ui/media/file-list/partials/file-list-row-actions.d.ts +12 -0
  230. package/dist/lib/components/ui/media/file-list/use-file-list-field.d.ts +33 -0
  231. package/dist/lib/components/ui/media/galleries/partials/gallery-chrome-toolbar.d.ts +2 -6
  232. package/dist/lib/components/ui/media/galleries/partials/gallery-chrome-zoom.d.ts +2 -0
  233. package/dist/lib/components/ui/media/galleries/partials/gallery-featured-arrows.d.ts +2 -0
  234. package/dist/lib/components/ui/media/galleries/partials/gallery-tile-media.d.ts +17 -0
  235. package/dist/lib/components/ui/media/galleries/partials/gallery-viewer-button.d.ts +6 -0
  236. package/dist/lib/components/ui/media/galleries/use-gallery-navigation.d.ts +18 -0
  237. package/dist/lib/components/ui/media/galleries/use-gallery-sync.d.ts +15 -0
  238. package/dist/lib/components/ui/media/image-cropper/partials/image-cropper-actions.d.ts +12 -0
  239. package/dist/lib/components/ui/media/image-cropper/partials/image-cropper-controls.d.ts +8 -0
  240. package/dist/lib/components/ui/media/image-cropper/partials/image-cropper-stage.d.ts +12 -0
  241. package/dist/lib/components/ui/media/image-cropper/use-image-cropper.d.ts +34 -0
  242. package/dist/lib/components/ui/media/image-editor/image-editor.slice.d.ts +43 -43
  243. package/dist/lib/components/ui/media/image-editor/image-editor.stage-gestures.d.ts +29 -0
  244. package/dist/lib/components/ui/media/image-editor/image-editor.stage-paint.d.ts +17 -0
  245. package/dist/lib/components/ui/media/image-editor/partials/crop-aspect-picker.d.ts +2 -0
  246. package/dist/lib/components/ui/media/image-editor/partials/crop-orientation.d.ts +2 -0
  247. package/dist/lib/components/ui/media/image-editor/partials/editor-export-options.d.ts +2 -0
  248. package/dist/lib/components/ui/media/image-editor/partials/editor-file-info.d.ts +2 -0
  249. package/dist/lib/components/ui/media/image-editor/partials/editor-history-buttons.d.ts +2 -0
  250. package/dist/lib/components/ui/media/image-editor/partials/markup-brush-section.d.ts +2 -0
  251. package/dist/lib/components/ui/media/image-editor/partials/markup-tool-picker.d.ts +2 -0
  252. package/dist/lib/components/ui/media/image-editor/types-edits.d.ts +106 -0
  253. package/dist/lib/components/ui/media/image-editor/types-session.d.ts +58 -0
  254. package/dist/lib/components/ui/media/image-editor/types.d.ts +4 -163
  255. package/dist/lib/components/ui/media/image-editor/use-crop-frame.d.ts +26 -0
  256. package/dist/lib/components/ui/media/image-editor/use-image-editor-keys.d.ts +4 -0
  257. package/dist/lib/components/ui/media/image-editor/use-image-editor.d.ts +10 -10
  258. package/dist/lib/components/ui/media/image-editor/use-markup-text.d.ts +10 -0
  259. package/dist/lib/components/ui/media/image-editor/use-stage-layer-key.d.ts +6 -0
  260. package/dist/lib/components/ui/media/image-editor/use-stage-pointer.d.ts +2 -3
  261. package/dist/lib/components/ui/media/media-player/partials/panels/transcript-follow.d.ts +7 -0
  262. package/dist/lib/components/ui/media/media-player/partials/panels/transcript-notice.d.ts +7 -0
  263. package/dist/lib/components/ui/media/media-player/partials/panels/use-search-announcement.d.ts +6 -0
  264. package/dist/lib/components/ui/media/media-player/partials/playlist-item.d.ts +13 -0
  265. package/dist/lib/components/ui/media/pdf-reader/partials/search-nav-buttons.d.ts +4 -0
  266. package/dist/lib/components/ui/media/pdf-reader/use-reader-chrome-state.d.ts +35 -0
  267. package/dist/lib/components/ui/media/pdf-reader/use-reader-chrome-value.d.ts +14 -0
  268. package/dist/lib/components/ui/media/upload/network-upload-field/network-upload-dropzone-body.d.ts +8 -0
  269. package/dist/lib/components/ui/primitives/segmented-input/segmented-input-cells.d.ts +20 -0
  270. package/dist/lib/components/ui/primitives/segmented-input/use-segment-paste.d.ts +17 -0
  271. package/dist/lib/components/ui/primitives/segmented-input/use-segmented-keys.d.ts +17 -0
  272. package/dist/lib/components/ui/selection/autocomplete/autocomplete-equality.d.ts +7 -0
  273. package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-chips.d.ts +2 -19
  274. package/dist/lib/components/ui/selection/autocomplete/types.d.ts +19 -1
  275. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-handlers.d.ts +5 -6
  276. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-leave.d.ts +14 -0
  277. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-picks.d.ts +17 -0
  278. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-typing.d.ts +14 -0
  279. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete.d.ts +3 -3
  280. package/dist/lib/components/ui/selection/checkbox-group/checkbox-group.d.ts +2 -23
  281. package/dist/lib/components/ui/selection/checkbox-group/partials/checkbox-group-options.d.ts +10 -0
  282. package/dist/lib/components/ui/selection/checkbox-group/types.d.ts +23 -0
  283. package/dist/lib/components/ui/selection/color-swatches/color-swatches.d.ts +2 -1
  284. package/dist/lib/components/ui/selection/color-swatches/color-swatches.utils.d.ts +3 -0
  285. package/dist/lib/components/ui/selection/color-swatches/partials/color-swatch-button.d.ts +13 -0
  286. package/dist/lib/components/ui/selection/color-swatches/partials/color-swatch-styles.d.ts +3 -0
  287. package/dist/lib/components/ui/selection/color-swatches/partials/custom-color-swatch.d.ts +11 -0
  288. package/dist/lib/components/ui/selection/color-swatches/types.d.ts +1 -0
  289. package/dist/lib/components/ui/selection/combobox-field/combobox-field.d.ts +3 -48
  290. package/dist/lib/components/ui/selection/combobox-field/partials/combobox-field-input.d.ts +4 -0
  291. package/dist/lib/components/ui/selection/combobox-field/types.d.ts +47 -0
  292. package/dist/lib/components/ui/selection/combobox-field/use-combobox-field-aria.d.ts +15 -0
  293. package/dist/lib/components/ui/selection/combobox-field/use-combobox-field-items.d.ts +1 -1
  294. package/dist/lib/components/ui/selection/combobox-field/use-typed-query.d.ts +8 -0
  295. package/dist/lib/components/ui/selection/option-tile/use-status-text.d.ts +3 -0
  296. package/dist/lib/components/ui/selection/radio-group/partials/radio-group-options.d.ts +7 -0
  297. package/dist/lib/components/ui/selection/radio-group/partials/radio-group-parts.d.ts +4 -0
  298. package/dist/lib/components/ui/selection/radio-group/radio-group.d.ts +3 -24
  299. package/dist/lib/components/ui/selection/radio-group/types.d.ts +22 -0
  300. package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-footer.d.ts +4 -0
  301. package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-frame.d.ts +20 -0
  302. package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-row-parts.d.ts +20 -0
  303. package/dist/lib/components/ui/selection/sortable-list/partials/sortable-list-row-props.d.ts +298 -0
  304. package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-chrome.d.ts +20 -0
  305. package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-data.d.ts +20 -0
  306. package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-grab.d.ts +15 -0
  307. package/dist/lib/components/ui/selection/sortable-list/use-sortable-list-moves.d.ts +18 -0
  308. package/dist/lib/components/ui/selection/sortable-list/use-sortable-list.d.ts +7 -8
  309. package/dist/lib/components/ui/selection/switcher/partials/switcher-recent.d.ts +11 -0
  310. package/dist/lib/components/ui/selection/switcher/partials/switcher-row-body.d.ts +8 -0
  311. package/dist/lib/components/ui/selection/switcher/switcher-list-keys.d.ts +17 -0
  312. package/dist/lib/components/ui/selection/switcher/switcher.d.ts +1 -1
  313. package/dist/lib/components/ui/selection/switcher/use-switcher-clip.d.ts +9 -0
  314. package/dist/lib/components/ui/selection/switcher/use-switcher-list-focus.d.ts +14 -0
  315. package/dist/lib/components/ui/selection/switcher/use-switcher-open.d.ts +9 -0
  316. package/dist/lib/components/ui/selection/switcher/use-switcher-panel.d.ts +24 -0
  317. package/dist/lib/components/ui/selection/switcher/use-switcher.d.ts +326 -0
  318. package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-frame.d.ts +19 -0
  319. package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-item-row.d.ts +2 -3
  320. package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-listbox.d.ts +5 -0
  321. package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-row-parts.d.ts +16 -0
  322. package/dist/lib/components/ui/selection/transfer-list/partials/transfer-list-row-props.d.ts +283 -0
  323. package/dist/lib/components/ui/selection/transfer-list/transfer-list.keyboard.d.ts +3 -2
  324. package/dist/lib/components/ui/selection/transfer-list/use-transfer-list-actions.d.ts +3 -2
  325. package/dist/lib/components/ui/selection/transfer-list/use-transfer-list-checks.d.ts +18 -0
  326. package/dist/lib/components/ui/selection/transfer-list/use-transfer-list-derived.d.ts +14 -0
  327. package/dist/lib/components/ui/selection/transfer-list/use-transfer-list.d.ts +1 -1
  328. package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-chips.d.ts +9 -0
  329. package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-trigger-button.d.ts +15 -0
  330. package/dist/lib/components/ui/widgets/chat/chat-message.d.ts +1 -1
  331. package/dist/lib/components/ui/widgets/chat/chat-message.view.d.ts +32 -0
  332. package/dist/lib/components/ui/widgets/chat/partials/chat-composer-notices.d.ts +8 -0
  333. package/dist/lib/components/ui/widgets/chat/partials/chat-composer-surface.d.ts +11 -0
  334. package/dist/lib/components/ui/widgets/chat/partials/chat-conversation-item-skeleton.d.ts +4 -0
  335. package/dist/lib/components/ui/widgets/chat/partials/chat-conversation-item-text.d.ts +10 -0
  336. package/dist/lib/components/ui/widgets/chat/partials/chat-inbox-list.d.ts +8 -0
  337. package/dist/lib/components/ui/widgets/chat/partials/chat-inbox-thread.d.ts +11 -0
  338. package/dist/lib/components/ui/widgets/chat/partials/chat-message-action-menus.d.ts +17 -0
  339. package/dist/lib/components/ui/widgets/chat/partials/chat-message-body.d.ts +6 -0
  340. package/dist/lib/components/ui/widgets/chat/partials/chat-scroll-to-latest.d.ts +7 -0
  341. package/dist/lib/components/ui/widgets/chat/partials/chat-typing-row.d.ts +9 -0
  342. package/dist/lib/components/ui/widgets/chat/use-chat-inbox-pane.d.ts +13 -0
  343. package/dist/lib/components/ui/widgets/chat/use-chat-widget-open.d.ts +19 -0
  344. package/dist/lib/components/ui/widgets/code-editor/toolbar/code-view-tools.d.ts +10 -0
  345. package/dist/lib/components/ui/widgets/code-editor/use-monaco-options.d.ts +9 -0
  346. package/dist/lib/components/ui/widgets/editor/extensions/custom/accordion/accordion-item-actions.d.ts +7 -0
  347. package/dist/lib/components/ui/widgets/editor/extensions/custom/action-card/action-card-tile.d.ts +10 -0
  348. package/dist/lib/components/ui/widgets/editor/extensions/custom/select-card/select-card-tile.d.ts +11 -0
  349. package/dist/lib/components/ui/widgets/editor/extensions/custom/select-card/toggle-selection.d.ts +3 -0
  350. package/dist/lib/components/ui/widgets/editor/extensions/custom/shared/use-node-list.d.ts +11 -0
  351. package/dist/lib/components/ui/widgets/editor/extensions/emoji/use-emoji-groups.d.ts +13 -0
  352. package/dist/lib/components/ui/widgets/editor/presets/compact-editor-parts.d.ts +10 -0
  353. package/dist/lib/components/ui/widgets/editor/presets/document-editor-frame-parts.d.ts +19 -0
  354. package/dist/lib/components/ui/widgets/editor/presets/document-editor-layout.d.ts +5 -0
  355. package/dist/lib/components/ui/widgets/editor/presets/document-editor-overlays.d.ts +6 -0
  356. package/dist/lib/components/ui/widgets/editor/presets/document-editor-page-parts.d.ts +25 -0
  357. package/dist/lib/components/ui/widgets/editor/presets/rich-chat-composer/composer-class.d.ts +8 -0
  358. package/dist/lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/composer-toolbar.d.ts +6 -0
  359. package/dist/lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/format-buttons.d.ts +8 -0
  360. package/dist/lib/components/ui/widgets/editor/presets/use-document-features.d.ts +15 -0
  361. package/dist/lib/components/ui/widgets/education/questions/partials/question-body.d.ts +5 -0
  362. package/dist/lib/components/ui/widgets/education/questions/partials/question-content.d.ts +3 -0
  363. package/dist/lib/components/ui/widgets/education/questions/partials/question-extras.d.ts +10 -0
  364. package/dist/lib/components/ui/widgets/education/questions/partials/question-outcome.d.ts +7 -0
  365. package/dist/lib/components/ui/widgets/education/questions/question-options.keyboard.d.ts +17 -0
  366. package/dist/lib/components/ui/widgets/education/questions/question.d.ts +1 -1
  367. package/dist/lib/components/ui/widgets/education/questions/types.d.ts +3 -2
  368. package/dist/lib/components/ui/widgets/education/quizzes/partials/quiz-shortcuts.d.ts +6 -0
  369. package/dist/lib/components/ui/widgets/education/quizzes/partials/results-actions.d.ts +7 -0
  370. package/dist/lib/components/ui/widgets/education/quizzes/partials/results-ring.d.ts +5 -0
  371. package/dist/lib/components/ui/widgets/education/quizzes/quiz.flow.d.ts +29 -0
  372. package/dist/lib/components/ui/widgets/education/quizzes/quiz.slice.d.ts +3 -0
  373. package/dist/lib/components/ui/widgets/education/quizzes/use-quiz-actions.d.ts +20 -0
  374. package/dist/lib/components/ui/widgets/education/quizzes/use-quiz-flow.d.ts +29 -0
  375. package/dist/lib/components/ui/widgets/education/quizzes/use-quiz-lifecycle.d.ts +12 -0
  376. package/dist/lib/components/ui/widgets/education/quizzes/use-quiz.d.ts +2 -1
  377. package/dist/lib/components/ui/widgets/event-calendar/partials/calendar-step-buttons.d.ts +2 -0
  378. package/dist/lib/components/ui/widgets/event-calendar/partials/month-day-cell-class.d.ts +9 -0
  379. package/dist/lib/components/ui/widgets/event-calendar/partials/month-day-parts.d.ts +12 -0
  380. package/dist/lib/components/ui/widgets/event-calendar/use-month-day.d.ts +26 -0
  381. package/dist/lib/components/ui/widgets/kanban/kanban.drag.d.ts +15 -0
  382. package/dist/lib/components/ui/widgets/kanban/partials/kanban-card-tile.d.ts +7 -0
  383. package/dist/lib/components/ui/widgets/kanban/partials/kanban-column-cards.d.ts +8 -0
  384. package/dist/lib/components/ui/widgets/kanban/partials/kanban-drag-preview.d.ts +8 -0
  385. package/dist/lib/components/ui/widgets/kanban/partials/kanban-group-header.d.ts +8 -0
  386. package/dist/lib/components/ui/widgets/kanban/use-kanban-item-actions.d.ts +20 -0
  387. package/dist/lib/components/ui/widgets/native-charts/core/base-props-types.d.ts +64 -0
  388. package/dist/lib/components/ui/widgets/native-charts/core/reference-geometry.d.ts +62 -0
  389. package/dist/lib/components/ui/widgets/native-charts/core/reference-types.d.ts +35 -0
  390. package/dist/lib/components/ui/widgets/native-charts/core/reference.d.ts +1 -56
  391. package/dist/lib/components/ui/widgets/native-charts/core/types.d.ts +2 -96
  392. package/dist/lib/components/ui/widgets/native-charts/hooks/use-model-parts.d.ts +20 -0
  393. package/dist/lib/components/ui/widgets/native-charts/hooks/use-model-shown.d.ts +23 -0
  394. package/dist/lib/components/ui/widgets/native-charts/line-chart/partials/line-strokes.d.ts +10 -0
  395. package/dist/lib/components/ui/widgets/native-charts/line-chart/partials/use-line-reveal.d.ts +9 -0
  396. package/dist/lib/i18n/resources/en/en.d.ts +5 -0
  397. package/dist/lib/i18n/resources/en/material.json.d.ts +6 -1
  398. package/dist/lib/i18n/resources/fr/fr.d.ts +5 -0
  399. package/dist/lib/i18n/resources/fr/material.json.d.ts +6 -1
  400. package/dist/lib/i18n/resources/resources.d.ts +10 -0
  401. package/dist/lib/i18n/translator.d.ts +1 -1
  402. package/dist/lib/map/components/partials/default-location.d.ts +2 -0
  403. package/dist/lib/map/components/partials/location-dialog.d.ts +17 -0
  404. package/dist/lib/print/components/print-document/print-document.d.ts +2 -37
  405. package/dist/lib/print/components/print-document/print-document.types.d.ts +37 -0
  406. package/dist/lib/print/components/print-document/use-print-context.d.ts +11 -0
  407. package/dist/lib.js +55 -48
  408. package/dist/main.js +43 -43
  409. package/dist/map.js +91 -74
  410. package/dist/material.css +1 -1
  411. package/dist/{nxgt-theme-ivgNca3z.js → nxgt-theme-DA1IQe0O.js} +5 -5
  412. package/dist/pdf-reader.js +1 -1
  413. package/dist/print.js +121 -107
  414. package/dist/{public-BtKAthSs.js → public-B42vT7ee.js} +362 -332
  415. package/dist/{render-json-BOhvPnSv.js → render-json-COvAkihK.js} +3 -3
  416. package/dist/{rich-code-block-BZYZ6ewr.js → rich-code-block-DIJ1X1AF.js} +5 -5
  417. package/dist/{rich-text-viewer-W15XIwah.js → rich-text-viewer-CXJp584B.js} +3 -3
  418. package/dist/{sortable-provider-hUCwt69K.js → sortable-provider-Csby6WpB.js} +2 -2
  419. package/dist/{spinner-BmUXTzvJ.js → spinner-DC35lhqx.js} +3 -1
  420. package/dist/{stored-language-_OGPBCn0.js → stored-language-BIxd7uiP.js} +8 -2
  421. package/dist/theme-picker.js +3 -3
  422. package/dist/{theme-toggle-DdvEafno.js → theme-toggle-BWdNFLvB.js} +1 -1
  423. package/dist/themes.js +1 -1
  424. package/dist/{toolbar-items-DKfY_6AG.js → toolbar-items-oqmVfnfO.js} +578 -567
  425. package/dist/{translate-material-DzBMPErh.js → translate-material-Bgtjuh85.js} +2 -2
  426. package/dist/{translator-BIVSiq4X.js → translator-BrZv1U54.js} +1 -1
  427. package/dist/{use-chat-composer-DCQW2EJ8.js → use-chat-composer-Dj0TP_B1.js} +8456 -8177
  428. package/dist/{use-heading-spy-Cr2C_Px8.js → use-heading-spy-1Dqxj_JQ.js} +1 -1
  429. package/dist/{use-material-translation-C_bAxfvp.js → use-material-translation-DLdQKdfw.js} +2 -2
  430. package/dist/use-shape-morph-BKA_R5P5.js +35 -0
  431. package/dist/{youtube-node-OWSNlYCc.js → youtube-node-A3NPAPgK.js} +27 -27
  432. package/docs/components/feedback-and-status.md +8 -2
  433. package/docs/components/navigation-and-layout.md +47 -0
  434. package/docs/components/rich-widgets.md +3 -3
  435. package/docs/guides/data-grid.md +11 -1
  436. package/docs/previews/navigation-layout-stickyactionbar.webp +0 -0
  437. package/docs/roadmap.md +9 -1
  438. package/package.json +1 -1
  439. package/dist/empty-state-C5wfbbW9.js +0 -117
  440. package/dist/use-shape-morph-DXdy2X5g.js +0 -35
@@ -3,21 +3,21 @@ import { n as t } from "./ui.utils-CAnKTCw5.js";
3
3
  import { t as n } from "./utils-BLfntITJ.js";
4
4
  import { o as r } from "./dist-DVRQkaTK.js";
5
5
  import { c as i, i as a, l as o, n as s, o as c, s as l } from "./dist-lmHmz_bu.js";
6
- import { n as u, s as d } from "./spinner-BmUXTzvJ.js";
6
+ import { n as u, s as d } from "./spinner-DC35lhqx.js";
7
7
  import { i as f } from "./dist-C4wtXCjf.js";
8
8
  import { r as p, t as m } from "./in-dialog-Vwkyp-M5.js";
9
- import { C as h, D as g, E as _, O as v, S as y, T as b, _ as x, f as S, g as ee, k as te, r as ne, t as C, u as re, w } from "./dialog-BVgsN9Ch.js";
10
- import { c as T, d as ie, f as E, i as ae, l as oe, n as se, o as D, t as ce, u as O } from "./dropdown-menu-C8PBmMIa.js";
11
- import { S as le, a as k, d as A, g as ue, h as de, i as fe, m as pe, n as j, r as me, t as M, u as he, w as ge } from "./toolbar-items-DKfY_6AG.js";
12
- import { t as N } from "./use-material-translation-C_bAxfvp.js";
13
- import { t as _e } from "./button-CdpVEza0.js";
14
- import { n as ve, t as ye } from "./icon-button-Bo-VuZ2n.js";
9
+ import { C as h, D as g, E as _, O as v, S as y, T as b, _ as x, f as S, g as ee, k as te, r as ne, t as C, u as re, w } from "./dialog-Cx_xWUVR.js";
10
+ import { c as T, d as ie, f as E, i as ae, l as oe, n as se, o as D, t as ce, u as O } from "./dropdown-menu-Jp6pHNgP.js";
11
+ import { S as le, a as k, d as A, g as ue, h as de, i as fe, m as pe, n as j, r as me, t as M, u as he, w as ge } from "./toolbar-items-oqmVfnfO.js";
12
+ import { t as _e } from "./button-CCHGtPIN.js";
13
+ import { t as N } from "./use-material-translation-DLdQKdfw.js";
14
+ import { n as ve, t as ye } from "./icon-button-Csvj2R8S.js";
15
15
  import { t as be } from "./useEvent-2fKq-6w8.js";
16
16
  import { n as xe, t as Se } from "./toggle-group-BkH23Jk4.js";
17
- import { o as Ce } from "./escape-owner-CYnfySUl.js";
17
+ import { o as Ce } from "./escape-owner-Ch_-kDLw.js";
18
18
  import { n as we } from "./use-slice-reducer-BGkeGtML.js";
19
19
  import { r as Te } from "./use-csp-nonce-ZKs9k-ov.js";
20
- import { n as Ee, t as De } from "./empty-state-C5wfbbW9.js";
20
+ import { n as Ee, t as De } from "./empty-state-D61RimJr.js";
21
21
  import { t as Oe } from "./client-only.utils-3nHNzCki.js";
22
22
  import { t as ke } from "./use-scroll-away-PQRFZkT2.js";
23
23
  import * as P from "react";
@@ -1257,26 +1257,57 @@ function Pr({ item: e, depth: t, onSelect: n }) {
1257
1257
  }, `${e.title}-${r}`))] });
1258
1258
  }
1259
1259
  //#endregion
1260
+ //#region lib/components/ui/media/pdf-reader/partials/search-nav-buttons.tsx
1261
+ function Fr({ stacked: e }) {
1262
+ let { t } = N(), { searchHits: r } = Q(), i = t("material.pdf-reader.search-prev", "Previous match (Shift+F3)"), a = t("material.pdf-reader.search-next", "Next match (F3)");
1263
+ return /* @__PURE__ */ U("div", {
1264
+ className: n(e ? "ms-auto flex gap-1" : "contents"),
1265
+ children: [/* @__PURE__ */ H(k, {
1266
+ label: i,
1267
+ children: /* @__PURE__ */ H(ye, {
1268
+ variant: "ghost",
1269
+ color: "default",
1270
+ "aria-label": i,
1271
+ tooltip: i,
1272
+ disabled: r.hitCount === 0,
1273
+ onClick: () => r.jump(-1),
1274
+ children: /* @__PURE__ */ H(He, {})
1275
+ })
1276
+ }), /* @__PURE__ */ H(k, {
1277
+ label: a,
1278
+ children: /* @__PURE__ */ H(ye, {
1279
+ variant: "ghost",
1280
+ color: "default",
1281
+ "aria-label": a,
1282
+ tooltip: a,
1283
+ disabled: r.hitCount === 0,
1284
+ onClick: () => r.jump(1),
1285
+ children: /* @__PURE__ */ H(ze, {})
1286
+ })
1287
+ })]
1288
+ });
1289
+ }
1290
+ //#endregion
1260
1291
  //#region lib/components/ui/media/pdf-reader/partials/search-field.tsx
1261
- function Fr({ autoFocus: e = !0, stacked: t = !1 }) {
1292
+ function Ir({ autoFocus: e = !0, stacked: t = !1 }) {
1262
1293
  let { t: r } = N(), { state: i, actions: a, searchHits: o } = Q(), s = z(null), { chrome: c } = Z(), l = c.searchFocusTick;
1263
1294
  I(() => {
1264
1295
  e && s.current?.focus();
1265
1296
  }, [e, l]);
1266
1297
  let u = (e) => {
1267
1298
  e.key === "Enter" && (e.preventDefault(), o.jump(e.shiftKey ? -1 : 1));
1268
- }, d = r("material.pdf-reader.search-prev", "Previous match (Shift+F3)"), f = r("material.pdf-reader.search-next", "Next match (F3)"), p = r("material.pdf-reader.search", "Search");
1299
+ }, d = r("material.pdf-reader.search", "Search");
1269
1300
  return /* @__PURE__ */ U("div", {
1270
1301
  className: n("flex min-w-0 flex-1 items-center gap-1", t && "flex-wrap"),
1271
1302
  children: [
1272
1303
  /* @__PURE__ */ H(k, {
1273
- label: p,
1304
+ label: d,
1274
1305
  fit: !1,
1275
1306
  children: /* @__PURE__ */ H(S, {
1276
1307
  ref: s,
1277
1308
  type: "search",
1278
- "aria-label": p,
1279
- placeholder: p,
1309
+ "aria-label": d,
1310
+ placeholder: d,
1280
1311
  className: n("h-9 min-w-0 flex-1 text-sm", t && "basis-full"),
1281
1312
  value: i.searchQuery,
1282
1313
  onChange: (e) => {
@@ -1290,36 +1321,11 @@ function Fr({ autoFocus: e = !0, stacked: t = !1 }) {
1290
1321
  className: n("shrink-0 text-muted-foreground text-xs tabular-nums", t ? "me-auto text-start empty:w-0" : "min-w-14 text-center"),
1291
1322
  children: i.searchQuery ? r("material.pdf-reader.next.search-count", "{count, plural, =0 {No match} one {# match} other {# matches}}", { count: o.hitCount }) : null
1292
1323
  }),
1293
- /* @__PURE__ */ U("div", {
1294
- className: n(t ? "ms-auto flex gap-1" : "contents"),
1295
- children: [/* @__PURE__ */ H(k, {
1296
- label: d,
1297
- children: /* @__PURE__ */ H(ye, {
1298
- variant: "ghost",
1299
- color: "default",
1300
- "aria-label": d,
1301
- tooltip: d,
1302
- disabled: o.hitCount === 0,
1303
- onClick: () => o.jump(-1),
1304
- children: /* @__PURE__ */ H(He, {})
1305
- })
1306
- }), /* @__PURE__ */ H(k, {
1307
- label: f,
1308
- children: /* @__PURE__ */ H(ye, {
1309
- variant: "ghost",
1310
- color: "default",
1311
- "aria-label": f,
1312
- tooltip: f,
1313
- disabled: o.hitCount === 0,
1314
- onClick: () => o.jump(1),
1315
- children: /* @__PURE__ */ H(ze, {})
1316
- })
1317
- })]
1318
- })
1324
+ /* @__PURE__ */ H(Fr, { stacked: t })
1319
1325
  ]
1320
1326
  });
1321
1327
  }
1322
- function Ir(e, t, n, r, i = "single", a = "ltr") {
1328
+ function Lr(e, t, n, r, i = "single", a = "ltr") {
1323
1329
  return kt(Array.from({ length: e }, (e, i) => Wt(t[i], n, r)), {
1324
1330
  mode: i,
1325
1331
  gap: 16,
@@ -1327,8 +1333,8 @@ function Ir(e, t, n, r, i = "single", a = "ltr") {
1327
1333
  dir: a
1328
1334
  });
1329
1335
  }
1330
- function Lr(e, t, n, r, i, a) {
1331
- let o = Math.min(n || 1, Rt), s = Ir(o, r, 1, i, t), c = Ir(o, r, 2, i, t).maxWidth - s.maxWidth, l = s.maxWidth - c;
1336
+ function Rr(e, t, n, r, i, a) {
1337
+ let o = Math.min(n || 1, Rt), s = Lr(o, r, 1, i, t), c = Lr(o, r, 2, i, t).maxWidth - s.maxWidth, l = s.maxWidth - c;
1332
1338
  return Bt(e, {
1333
1339
  width: c,
1334
1340
  height: Math.max(...s.rows.map((e) => e.height))
@@ -1337,7 +1343,7 @@ function Lr(e, t, n, r, i, a) {
1337
1343
  height: a.height
1338
1344
  });
1339
1345
  }
1340
- function Rr(e, t) {
1346
+ function zr(e, t) {
1341
1347
  let n = 0, r = e.length - 1, i = -1;
1342
1348
  for (; n <= r;) {
1343
1349
  let a = n + r >> 1;
@@ -1345,21 +1351,21 @@ function Rr(e, t) {
1345
1351
  }
1346
1352
  return i;
1347
1353
  }
1348
- function zr(e, t, n) {
1349
- let r = Rr(e, t);
1354
+ function Br(e, t, n) {
1355
+ let r = zr(e, t);
1350
1356
  return r < 0 ? null : e[r + n] ?? null;
1351
1357
  }
1352
- function Br(e, t, n) {
1353
- let r = Rr(e, t), i = e[r];
1358
+ function Vr(e, t, n) {
1359
+ let r = zr(e, t), i = e[r];
1354
1360
  return i === void 0 ? [t, t] : [i, Math.min(n, (e[r + 1] ?? n + 1) - 1)];
1355
1361
  }
1356
1362
  //#endregion
1357
1363
  //#region lib/components/ui/media/pdf-reader/engine/canvas-cache.ts
1358
- function Vr(e) {
1364
+ function Hr(e) {
1359
1365
  e && (e.width = 0, e.height = 0);
1360
1366
  }
1361
- var Hr = 5e7, Ur = ({ page: e, scale: t, rotation: n }) => `${e}@${t}/${n}`;
1362
- function Wr(e = Hr) {
1367
+ var Ur = 5e7, Wr = ({ page: e, scale: t, rotation: n }) => `${e}@${t}/${n}`;
1368
+ function Gr(e = Ur) {
1363
1369
  let t = /* @__PURE__ */ new Set(), n = 0, r = 0, i = 0, a = () => {
1364
1370
  for (; n > e && r > 1;) {
1365
1371
  let e;
@@ -1376,7 +1382,7 @@ function Wr(e = Hr) {
1376
1382
  };
1377
1383
  return {
1378
1384
  cache() {
1379
- return Gr({
1385
+ return Kr({
1380
1386
  members: t,
1381
1387
  stamp: () => ++i,
1382
1388
  added(e) {
@@ -1392,22 +1398,22 @@ function Wr(e = Hr) {
1392
1398
  }
1393
1399
  };
1394
1400
  }
1395
- function Gr(e) {
1401
+ function Kr(e) {
1396
1402
  let t = /* @__PURE__ */ new Map(), n = !1, r = (n, r) => {
1397
1403
  let i = t.get(n);
1398
- i && (t.delete(n), e.removed(i.pixels), (r === "force" || r === "safe" && !i.canvas.isConnected) && Vr(i.canvas));
1404
+ i && (t.delete(n), e.removed(i.pixels), (r === "force" || r === "safe" && !i.canvas.isConnected) && Hr(i.canvas));
1399
1405
  }, i = {
1400
1406
  oldest: () => t.values().next().value,
1401
- drop: (e) => r(Ur(e.key), "safe")
1407
+ drop: (e) => r(Wr(e.key), "safe")
1402
1408
  };
1403
1409
  return e.members.add(i), {
1404
1410
  take(e) {
1405
- let n = Ur(e), i = t.get(n);
1411
+ let n = Wr(e), i = t.get(n);
1406
1412
  if (i) return r(n, "keep"), i.canvas;
1407
1413
  },
1408
1414
  put(i, a) {
1409
- if (n) return Vr(a);
1410
- let o = Ur(i);
1415
+ if (n) return Hr(a);
1416
+ let o = Wr(i);
1411
1417
  r(o, "safe"), t.set(o, {
1412
1418
  key: i,
1413
1419
  canvas: a,
@@ -1431,16 +1437,16 @@ function Gr(e) {
1431
1437
  }
1432
1438
  };
1433
1439
  }
1434
- var Kr = Wr();
1435
- function qr(e) {
1436
- return (e === void 0 ? Kr : Wr(e)).cache();
1440
+ var qr = Gr();
1441
+ function Jr(e) {
1442
+ return (e === void 0 ? qr : Gr(e)).cache();
1437
1443
  }
1438
1444
  //#endregion
1439
1445
  //#region lib/components/ui/media/pdf-reader/engine/draw-page.ts
1440
- function Jr(e) {
1446
+ function Yr(e) {
1441
1447
  return e instanceof Error ? e : Error(String(e));
1442
1448
  }
1443
- async function Yr(e, t, n, r, i) {
1449
+ async function Xr(e, t, n, r, i) {
1444
1450
  let a = await e.getPage(t);
1445
1451
  if (i.aborted) return null;
1446
1452
  let o = (a.rotate + n) % 360, s = "scale" in r ? r.scale : r.width / a.getViewport({
@@ -1457,7 +1463,7 @@ async function Yr(e, t, n, r, i) {
1457
1463
  rotation: o
1458
1464
  };
1459
1465
  }
1460
- async function Xr(e, t, n) {
1466
+ async function Zr(e, t, n) {
1461
1467
  let { page: r, viewport: i, scale: a, rotation: o } = e;
1462
1468
  return await Ft(r, t, Pt({
1463
1469
  cssWidth: i.width,
@@ -1471,7 +1477,7 @@ async function Xr(e, t, n) {
1471
1477
  }
1472
1478
  //#endregion
1473
1479
  //#region lib/components/ui/media/pdf-reader/engine/use-thumbnail.ts
1474
- function Zr(e) {
1480
+ function Qr(e) {
1475
1481
  let { doc: t, pageNumber: n, width: r, rotation: i, box: a, host: o } = e, [s, c] = B(!1), l = z(null), u = z(e.onError);
1476
1482
  L(() => {
1477
1483
  u.current = e.onError;
@@ -1485,12 +1491,12 @@ function Zr(e) {
1485
1491
  if (!t || !e || !s) return;
1486
1492
  let a = new AbortController(), { signal: c } = a, d = document.createElement("canvas");
1487
1493
  return d.dataset.slot = "pdf-thumbnail-canvas", (async () => {
1488
- let a = await Yr(t, n, i, { width: r }, c);
1489
- a && await Xr(a, d, c) && (l.current = a.page, e.replaceChildren(d));
1494
+ let a = await Xr(t, n, i, { width: r }, c);
1495
+ a && await Zr(a, d, c) && (l.current = a.page, e.replaceChildren(d));
1490
1496
  })().catch((e) => {
1491
- c.aborted || u.current?.(Jr(e));
1497
+ c.aborted || u.current?.(Yr(e));
1492
1498
  }), () => {
1493
- a.abort(), e.replaceChildren(), Vr(d);
1499
+ a.abort(), e.replaceChildren(), Hr(d);
1494
1500
  };
1495
1501
  }, [
1496
1502
  t,
@@ -1507,9 +1513,9 @@ function Zr(e) {
1507
1513
  s
1508
1514
  ]);
1509
1515
  }
1510
- var Qr = je(function({ pageNumber: e, doc: t, size: r, rotation: i, lit: a, current: o, tabStop: s, onGo: c }) {
1516
+ var $r = je(function({ pageNumber: e, doc: t, size: r, rotation: i, lit: a, current: o, tabStop: s, onGo: c }) {
1511
1517
  let { t: l } = N(), u = z(null), d = z(null);
1512
- Zr({
1518
+ Qr({
1513
1519
  doc: t,
1514
1520
  pageNumber: e,
1515
1521
  width: 120,
@@ -1538,14 +1544,14 @@ var Qr = je(function({ pageNumber: e, doc: t, size: r, rotation: i, lit: a, curr
1538
1544
  children: e
1539
1545
  })]
1540
1546
  });
1541
- }), $r = {
1547
+ }), ei = {
1542
1548
  ArrowDown: (e) => e + 1,
1543
1549
  ArrowUp: (e) => e - 1,
1544
1550
  Home: () => 1,
1545
1551
  End: (e, t) => t
1546
1552
  };
1547
- function ei() {
1548
- let { t: e } = N(), { state: t, actions: n, doc: r, rowStarts: i } = Q(), { numPages: a, currentPage: o, rotation: s } = t, c = z(null), [l, u] = B(null), [d, f] = Br(i, o, a), p = Math.min(Math.max(l ?? o, 1), a);
1553
+ function ti() {
1554
+ let { t: e } = N(), { state: t, actions: n, doc: r, rowStarts: i } = Q(), { numPages: a, currentPage: o, rotation: s } = t, c = z(null), [l, u] = B(null), [d, f] = Vr(i, o, a), p = Math.min(Math.max(l ?? o, 1), a);
1549
1555
  return /* @__PURE__ */ H("div", {
1550
1556
  className: "min-h-0 flex-1 overflow-y-auto",
1551
1557
  children: /* @__PURE__ */ H("div", {
@@ -1553,7 +1559,7 @@ function ei() {
1553
1559
  role: "group",
1554
1560
  "aria-label": e("material.pdf-reader.thumbnails", "Page thumbnails"),
1555
1561
  onKeyDown: (e) => {
1556
- let t = $r[e.key], n = Number(e.target.closest("[data-page-number]")?.getAttribute("data-page-number"));
1562
+ let t = ei[e.key], n = Number(e.target.closest("[data-page-number]")?.getAttribute("data-page-number"));
1557
1563
  if (!t || !n || e.altKey || e.ctrlKey || e.metaKey) return;
1558
1564
  e.preventDefault();
1559
1565
  let r = Math.min(Math.max(t(n, a), 1), a);
@@ -1569,7 +1575,7 @@ function ei() {
1569
1575
  className: "flex flex-col items-center gap-2 p-2",
1570
1576
  children: Array.from({ length: a }, (e, i) => {
1571
1577
  let a = i + 1;
1572
- return /* @__PURE__ */ H(Qr, {
1578
+ return /* @__PURE__ */ H($r, {
1573
1579
  pageNumber: a,
1574
1580
  doc: r,
1575
1581
  size: t.pageSizes?.[i],
@@ -1585,9 +1591,9 @@ function ei() {
1585
1591
  }
1586
1592
  //#endregion
1587
1593
  //#region lib/components/ui/media/pdf-reader/partials/panel-content.tsx
1588
- function ti() {
1594
+ function ni() {
1589
1595
  let { t: e } = N(), { chrome: t } = Z(), { state: n, onOutlineSelect: r } = Q();
1590
- return t.panelTab === "thumbs" ? /* @__PURE__ */ H(ei, {}) : t.panelTab === "outline" ? n.outline.length === 0 ? /* @__PURE__ */ U("div", {
1596
+ return t.panelTab === "thumbs" ? /* @__PURE__ */ H(ti, {}) : t.panelTab === "outline" ? n.outline.length === 0 ? /* @__PURE__ */ U("div", {
1591
1597
  className: "flex flex-col items-center gap-2 px-6 py-10 text-center text-muted-foreground text-sm",
1592
1598
  children: [/* @__PURE__ */ H(Ze, {
1593
1599
  "aria-hidden": !0,
@@ -1598,7 +1604,7 @@ function ti() {
1598
1604
  onSelect: r
1599
1605
  }) : t.panelTab === "search" ? /* @__PURE__ */ H("div", {
1600
1606
  className: "p-3",
1601
- children: /* @__PURE__ */ H(Fr, { stacked: !0 })
1607
+ children: /* @__PURE__ */ H(Ir, { stacked: !0 })
1602
1608
  }) : /* @__PURE__ */ H("p", {
1603
1609
  className: "p-4 text-muted-foreground text-sm",
1604
1610
  children: e("material.pdf-reader.next.annotations-empty", "No annotations yet")
@@ -1606,29 +1612,29 @@ function ti() {
1606
1612
  }
1607
1613
  //#endregion
1608
1614
  //#region lib/components/ui/media/pdf-reader/types.ts
1609
- var ni = [
1615
+ var ri = [
1610
1616
  "thumbs",
1611
1617
  "outline",
1612
1618
  "annotations",
1613
1619
  "search"
1614
- ], ri = [
1620
+ ], ii = [
1615
1621
  "yellow",
1616
1622
  "green",
1617
1623
  "blue",
1618
1624
  "pink",
1619
1625
  "red"
1620
- ], ii = [
1626
+ ], ai = [
1621
1627
  "annotate",
1622
1628
  "annotationCount",
1623
1629
  "initialChrome",
1624
1630
  "showUnfinished"
1625
- ], ai = {
1631
+ ], oi = {
1626
1632
  thumbs: Xe,
1627
1633
  outline: Ze,
1628
1634
  annotations: et,
1629
1635
  search: ut
1630
1636
  };
1631
- function oi() {
1637
+ function si() {
1632
1638
  let { t: e } = N();
1633
1639
  return {
1634
1640
  thumbs: e("material.pdf-reader.next.thumbnails", "Thumbnails"),
@@ -1637,14 +1643,14 @@ function oi() {
1637
1643
  search: e("material.pdf-reader.search", "Search")
1638
1644
  };
1639
1645
  }
1640
- function si() {
1646
+ function ci() {
1641
1647
  let { props: e } = Z();
1642
- return e.annotate ? ni : ni.filter((e) => e !== "annotations");
1648
+ return e.annotate ? ri : ri.filter((e) => e !== "annotations");
1643
1649
  }
1644
1650
  //#endregion
1645
1651
  //#region lib/components/ui/media/pdf-reader/partials/panel-tabs.tsx
1646
- function ci({ iconOnly: e }) {
1647
- let { t } = N(), { chrome: n, chromeActions: r } = Z(), i = oi(), a = si(), o = e ? a : a.filter((e) => e !== "search");
1652
+ function li({ iconOnly: e }) {
1653
+ let { t } = N(), { chrome: n, chromeActions: r } = Z(), i = si(), a = ci(), o = e ? a : a.filter((e) => e !== "search");
1648
1654
  return /* @__PURE__ */ H(Se, {
1649
1655
  type: "single",
1650
1656
  variant: "segmented",
@@ -1653,7 +1659,7 @@ function ci({ iconOnly: e }) {
1653
1659
  onValueChange: (e) => e && r.openPanelTab(e),
1654
1660
  className: "mx-3 mt-3 mb-1 w-auto shrink-0",
1655
1661
  children: o.map((t) => {
1656
- let n = ai[t];
1662
+ let n = oi[t];
1657
1663
  return /* @__PURE__ */ U(xe, {
1658
1664
  value: t,
1659
1665
  "aria-label": e ? i[t] : void 0,
@@ -1665,10 +1671,10 @@ function ci({ iconOnly: e }) {
1665
1671
  }
1666
1672
  //#endregion
1667
1673
  //#region lib/components/ui/media/pdf-reader/partials/phone-sheet.tsx
1668
- function li() {
1669
- let { t: e } = N(), { chrome: t, chromeActions: r, mode: i } = Z(), a = e("material.pdf-reader.next.panel", "Document panel"), o = /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(ci, { iconOnly: !1 }), /* @__PURE__ */ H("div", {
1674
+ function ui() {
1675
+ let { t: e } = N(), { chrome: t, chromeActions: r, mode: i } = Z(), a = e("material.pdf-reader.next.panel", "Document panel"), o = /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(li, { iconOnly: !1 }), /* @__PURE__ */ H("div", {
1670
1676
  className: "flex h-[min(46dvh,22rem)] min-h-0 flex-col",
1671
- children: /* @__PURE__ */ H(ti, {})
1677
+ children: /* @__PURE__ */ H(ni, {})
1672
1678
  })] });
1673
1679
  return i === "fullscreen" ? t.panelOpen ? /* @__PURE__ */ U("aside", {
1674
1680
  "aria-label": a,
@@ -1696,20 +1702,20 @@ function li() {
1696
1702
  }
1697
1703
  //#endregion
1698
1704
  //#region lib/components/ui/media/pdf-reader/partials/side-panel.tsx
1699
- function ui() {
1705
+ function di() {
1700
1706
  let { t: e } = N(), { chrome: t } = Z();
1701
- return t.size === "compact" ? /* @__PURE__ */ H(li, {}) : t.panelOpen ? /* @__PURE__ */ U("aside", {
1707
+ return t.size === "compact" ? /* @__PURE__ */ H(ui, {}) : t.panelOpen ? /* @__PURE__ */ U("aside", {
1702
1708
  "aria-label": e("material.pdf-reader.next.panel", "Document panel"),
1703
1709
  className: n("flex h-full w-56 shrink-0 flex-col border-e border-border", Mr),
1704
- children: [t.size === "medium" ? /* @__PURE__ */ H(ci, { iconOnly: !0 }) : null, /* @__PURE__ */ H("div", {
1710
+ children: [t.size === "medium" ? /* @__PURE__ */ H(li, { iconOnly: !0 }) : null, /* @__PURE__ */ H("div", {
1705
1711
  className: "flex min-h-0 flex-1 flex-col",
1706
- children: /* @__PURE__ */ H(ti, {})
1712
+ children: /* @__PURE__ */ H(ni, {})
1707
1713
  })]
1708
1714
  }) : null;
1709
1715
  }
1710
1716
  //#endregion
1711
1717
  //#region lib/components/ui/media/pdf-reader/engine/use-page-canvas.ts
1712
- function di(e) {
1718
+ function fi(e) {
1713
1719
  let { doc: t, pageNumber: n, scale: r, rotation: i, host: a, cache: o, attempt: s } = e, [c, l] = B(null), u = z(null), d = z(e.onError), f = z(e.onDrawn);
1714
1720
  return L(() => {
1715
1721
  d.current = e.onError, f.current = e.onDrawn;
@@ -1722,10 +1728,10 @@ function di(e) {
1722
1728
  rotation: i
1723
1729
  }, c = new AbortController(), { signal: p } = c, m = o.take(s), h = !!m;
1724
1730
  return (async () => {
1725
- let a = await Yr(t, n, i, { scale: r }, p);
1731
+ let a = await Xr(t, n, i, { scale: r }, p);
1726
1732
  if (a) {
1727
1733
  if (!m) {
1728
- if (m = document.createElement("canvas"), m.dataset.slot = "pdf-page-canvas", !await Xr(a, m, p)) return;
1734
+ if (m = document.createElement("canvas"), m.dataset.slot = "pdf-page-canvas", !await Zr(a, m, p)) return;
1729
1735
  h = !0;
1730
1736
  }
1731
1737
  m.setAttribute("aria-hidden", "true"), e.replaceChildren(m), o.keepScale(r), u.current = a.page, l({
@@ -1734,9 +1740,9 @@ function di(e) {
1734
1740
  }), f.current?.();
1735
1741
  }
1736
1742
  })().catch((e) => {
1737
- p.aborted || d.current(Jr(e));
1743
+ p.aborted || d.current(Yr(e));
1738
1744
  }), () => {
1739
- c.abort(), m && h ? o.put(s, m) : Vr(m);
1745
+ c.abort(), m && h ? o.put(s, m) : Hr(m);
1740
1746
  };
1741
1747
  }, [
1742
1748
  t,
@@ -1752,7 +1758,7 @@ function di(e) {
1752
1758
  }
1753
1759
  //#endregion
1754
1760
  //#region lib/components/ui/media/pdf-reader/engine/use-page-failure.ts
1755
- function fi() {
1761
+ function pi() {
1756
1762
  let [e, t] = B(null), [n, r] = B(0), i = z(null);
1757
1763
  return {
1758
1764
  failure: e,
@@ -1776,7 +1782,7 @@ function fi() {
1776
1782
  }
1777
1783
  //#endregion
1778
1784
  //#region lib/components/ui/media/pdf-viewer/use-pdf-link-labels.ts
1779
- function pi(e) {
1785
+ function mi(e) {
1780
1786
  let { t } = N(), n = z(/* @__PURE__ */ new Map()), r = R(() => ({
1781
1787
  external: (e) => t("material.pdf-reader.link-external", "Link: {host}", { host: e }),
1782
1788
  goToPage: (e) => t("material.pdf-reader.go-to-page", "Go to page {page}", { page: e }),
@@ -1795,34 +1801,34 @@ function pi(e) {
1795
1801
  }
1796
1802
  //#endregion
1797
1803
  //#region lib/components/ui/media/pdf-viewer/pdf-note-icons.ts
1798
- var mi = "data:,", hi = /annotation-([a-z]+)\.svg$/, gi, _i = () => (gi ??= import("./pdf-note-icons.data-DtpqXoIm.js").then((e) => e.NOTE_ICONS), gi);
1799
- async function vi(e, t = _i) {
1800
- let n = [...e?.querySelectorAll(".textAnnotation > img") ?? []].filter((e) => hi.test(e.getAttribute("src") ?? ""));
1804
+ var hi = "data:,", gi = /annotation-([a-z]+)\.svg$/, _i, vi = () => (_i ??= import("./pdf-note-icons.data-DtpqXoIm.js").then((e) => e.NOTE_ICONS), _i);
1805
+ async function yi(e, t = vi) {
1806
+ let n = [...e?.querySelectorAll(".textAnnotation > img") ?? []].filter((e) => gi.test(e.getAttribute("src") ?? ""));
1801
1807
  if (n.length === 0) return;
1802
1808
  let r = await t();
1803
1809
  for (let e of n) {
1804
- let t = r[hi.exec(e.getAttribute("src") ?? "")?.[1] ?? ""] ?? r.note;
1810
+ let t = r[gi.exec(e.getAttribute("src") ?? "")?.[1] ?? ""] ?? r.note;
1805
1811
  t && (e.src = t);
1806
1812
  }
1807
1813
  }
1808
1814
  //#endregion
1809
1815
  //#region lib/components/ui/media/pdf-viewer/pdf-worker-url.ts
1810
- function yi() {
1816
+ function bi() {
1811
1817
  return new URL("" + new URL("pdf.worker.min.mjs", import.meta.url).href, "" + import.meta.url).href;
1812
1818
  }
1813
1819
  //#endregion
1814
1820
  //#region lib/components/ui/media/pdf-reader/engine/pdfjs.lazy.ts
1815
- var bi;
1816
- function xi() {
1817
- return bi ??= import("./pdf-MkmivNXn.js").then((e) => {
1821
+ var xi;
1822
+ function Si() {
1823
+ return xi ??= import("./pdf-MkmivNXn.js").then((e) => {
1818
1824
  let t = e;
1819
- return t.GlobalWorkerOptions.workerSrc = yi(), t;
1820
- }), bi;
1825
+ return t.GlobalWorkerOptions.workerSrc = bi(), t;
1826
+ }), xi;
1821
1827
  }
1822
1828
  //#endregion
1823
1829
  //#region lib/components/ui/media/pdf-reader/engine/draw-layers.ts
1824
- async function Si({ page: e, viewport: t }, n, r) {
1825
- let i = await xi(), a = await e.getTextContent();
1830
+ async function Ci({ page: e, viewport: t }, n, r) {
1831
+ let i = await Si(), a = await e.getTextContent();
1826
1832
  if (r.aborted) return null;
1827
1833
  n.replaceChildren();
1828
1834
  let o = new i.TextLayer({
@@ -1835,8 +1841,8 @@ async function Si({ page: e, viewport: t }, n, r) {
1835
1841
  strs: o.textContentItemsStr
1836
1842
  };
1837
1843
  }
1838
- async function Ci({ page: e, viewport: t }, n, r, i) {
1839
- let a = await xi(), o = await e.getAnnotations({ intent: "display" });
1844
+ async function wi({ page: e, viewport: t }, n, r, i) {
1845
+ let a = await Si(), o = await e.getAnnotations({ intent: "display" });
1840
1846
  if (i.aborted) return null;
1841
1847
  n.replaceChildren();
1842
1848
  let s = t.clone({ dontFlip: !0 }), { doc: c, linkService: l } = r;
@@ -1855,27 +1861,27 @@ async function Ci({ page: e, viewport: t }, n, r, i) {
1855
1861
  annotations: o,
1856
1862
  annotationStorage: c.annotationStorage,
1857
1863
  div: n,
1858
- imageResourcesPath: mi,
1864
+ imageResourcesPath: hi,
1859
1865
  linkService: l,
1860
1866
  page: e,
1861
1867
  renderForms: !1,
1862
1868
  viewport: s
1863
- }), i.aborted ? null : (await vi(n), o);
1869
+ }), i.aborted ? null : (await yi(n), o);
1864
1870
  }
1865
1871
  //#endregion
1866
1872
  //#region lib/components/ui/media/pdf-reader/engine/use-page-layers.ts
1867
- function wi(e) {
1868
- let { drawn: t, pageNumber: n, doc: r, linkService: i, highlight: a } = e, { text: o, annotations: s, page: c } = e, [l, u] = B(null), [d, f] = B(0), { onAnnotations: p, labelLinks: m } = pi(e.pdfRef);
1873
+ function Ti(e) {
1874
+ let { drawn: t, pageNumber: n, doc: r, linkService: i, highlight: a } = e, { text: o, annotations: s, page: c } = e, [l, u] = B(null), [d, f] = B(0), { onAnnotations: p, labelLinks: m } = mi(e.pdfRef);
1869
1875
  I(() => {
1870
1876
  let e = o.current;
1871
1877
  if (!t || !e) return;
1872
1878
  let n = new AbortController();
1873
- return Si(t, e, n.signal).then((e) => e && u(e)).catch(() => {}), () => n.abort();
1879
+ return Ci(t, e, n.signal).then((e) => e && u(e)).catch(() => {}), () => n.abort();
1874
1880
  }, [t, o]), I(() => {
1875
1881
  let e = s.current;
1876
1882
  if (!t || !e || !r || !i) return;
1877
1883
  let n = new AbortController();
1878
- return Ci(t, e, {
1884
+ return wi(t, e, {
1879
1885
  doc: r,
1880
1886
  linkService: i
1881
1887
  }, n.signal).then((e) => {
@@ -1912,7 +1918,7 @@ function wi(e) {
1912
1918
  }
1913
1919
  //#endregion
1914
1920
  //#region lib/components/ui/media/pdf-reader/engine/use-page-drawing.ts
1915
- function Ti(e) {
1921
+ function Ei(e) {
1916
1922
  let { doc: t, cache: n, pdfRef: r, pageRefs: i, highlight: a, linkService: o } = e, { scale: s, rotation: c, searchQuery: l, nightMode: u } = e;
1917
1923
  return R(() => ({
1918
1924
  doc: t,
@@ -1938,8 +1944,8 @@ function Ti(e) {
1938
1944
  u
1939
1945
  ]);
1940
1946
  }
1941
- function Ei(e, t) {
1942
- let { doc: n, scale: r, rotation: i, pageRefs: a } = t, o = z(null), s = z(null), c = z(null), l = z(null), u = fi(), d = di({
1947
+ function Di(e, t) {
1948
+ let { doc: n, scale: r, rotation: i, pageRefs: a } = t, o = z(null), s = z(null), c = z(null), l = z(null), u = pi(), d = fi({
1943
1949
  doc: n,
1944
1950
  pageNumber: e,
1945
1951
  scale: r,
@@ -1950,7 +1956,7 @@ function Ei(e, t) {
1950
1956
  onError: u.onError,
1951
1957
  onDrawn: u.onDrawn
1952
1958
  });
1953
- return wi({
1959
+ return Ti({
1954
1960
  drawn: d,
1955
1961
  pageNumber: e,
1956
1962
  doc: n,
@@ -1974,7 +1980,7 @@ function Ei(e, t) {
1974
1980
  }
1975
1981
  //#endregion
1976
1982
  //#region lib/components/ui/media/pdf-reader/engine/use-page-scroll.ts
1977
- function Di(e, t, n) {
1983
+ function Oi(e, t, n) {
1978
1984
  let { scrollTop: r, clientHeight: i } = e, a = e.scrollLeft + (t ? e.scrollWidth - e.clientWidth : 0) + e.clientWidth / 2 - e.scrollWidth / 2 + n.maxWidth / 2, o = r + i >= e.scrollHeight - 2;
1979
1985
  return {
1980
1986
  anchor: Tt(n, r, a),
@@ -1985,7 +1991,7 @@ function Di(e, t, n) {
1985
1991
  })
1986
1992
  };
1987
1993
  }
1988
- function Oi(e) {
1994
+ function ki(e) {
1989
1995
  let { scroller: t, layout: n, currentPage: r } = e, [i, a] = B({
1990
1996
  top: 0,
1991
1997
  height: 0
@@ -2036,7 +2042,7 @@ function Oi(e) {
2036
2042
  height: i
2037
2043
  }), c.current !== null && Math.abs(t - (c.current ?? 0)) < 2) return;
2038
2044
  c.current = null;
2039
- let { options: u, layout: d } = l.current, f = Di(e, r, d);
2045
+ let { options: u, layout: d } = l.current, f = Oi(e, r, d);
2040
2046
  o.current = f.anchor, !(performance.now() < u.spyHold.current) && f.page !== s.current && (s.current = f.page, u.goToPage(f.page));
2041
2047
  }, u = () => {
2042
2048
  n ||= requestAnimationFrame(i);
@@ -2048,16 +2054,16 @@ function Oi(e) {
2048
2054
  }
2049
2055
  //#endregion
2050
2056
  //#region lib/components/ui/media/pdf-reader/engine/use-page-window.ts
2051
- var ki = 1;
2052
- function Ai(e, t, n = "_blank", r = "single") {
2053
- let { state: i, scale: a, doc: o, actions: s } = e, { goToPage: c } = s, { reportPage: l } = e, u = le(t), d = R(() => Ir(i.numPages, i.pageSizes ?? [], a, i.rotation, r, u), [
2057
+ var Ai = 1;
2058
+ function ji(e, t, n = "_blank", r = "single") {
2059
+ let { state: i, scale: a, doc: o, actions: s } = e, { goToPage: c } = s, { reportPage: l } = e, u = le(t), d = R(() => Lr(i.numPages, i.pageSizes ?? [], a, i.rotation, r, u), [
2054
2060
  i.numPages,
2055
2061
  i.pageSizes,
2056
2062
  a,
2057
2063
  i.rotation,
2058
2064
  r,
2059
2065
  u
2060
- ]), f = Oi({
2066
+ ]), f = ki({
2061
2067
  scroller: t,
2062
2068
  layout: d,
2063
2069
  currentPage: i.currentPage,
@@ -2069,7 +2075,7 @@ function Ai(e, t, n = "_blank", r = "single") {
2069
2075
  shown: At(d, {
2070
2076
  top: f.top - 20,
2071
2077
  height: f.height || (i.containerHeight ?? 800)
2072
- }, ki),
2078
+ }, Ai),
2073
2079
  linkService: R(() => o ? Ot({
2074
2080
  doc: o,
2075
2081
  goToPage: c,
@@ -2083,7 +2089,7 @@ function Ai(e, t, n = "_blank", r = "single") {
2083
2089
  }
2084
2090
  //#endregion
2085
2091
  //#region lib/components/ui/media/pdf-reader/partials/page-failure.tsx
2086
- function ji({ pageNumber: e, error: t, busy: r, onRetry: i, ref: a }) {
2092
+ function Mi({ pageNumber: e, error: t, busy: r, onRetry: i, ref: a }) {
2087
2093
  let { t: o } = N(), s = Dt(t).kind === "canvas" ? o("material.pdf-reader.next.canvas-error", "This page is too large to display on this device") : o("material.pdf-reader.next.page-error", "This page could not be displayed");
2088
2094
  return /* @__PURE__ */ U("div", {
2089
2095
  ref: a,
@@ -2116,8 +2122,8 @@ function ji({ pageNumber: e, error: t, busy: r, onRetry: i, ref: a }) {
2116
2122
  }
2117
2123
  //#endregion
2118
2124
  //#region lib/components/ui/media/pdf-reader/partials/page-view.tsx
2119
- var Mi = je(function({ pageNumber: e, top: t, offset: r, width: i, height: a, env: o }) {
2120
- let { setPage: s, canvas: c, text: l, annotations: u, drawn: d, failed: f } = Ei(e, o), p = {
2125
+ var Ni = je(function({ pageNumber: e, top: t, offset: r, width: i, height: a, env: o }) {
2126
+ let { setPage: s, canvas: c, text: l, annotations: u, drawn: d, failed: f } = Di(e, o), p = {
2121
2127
  top: t,
2122
2128
  left: `calc(50% + ${r}px)`,
2123
2129
  width: i,
@@ -2145,7 +2151,7 @@ var Mi = je(function({ pageNumber: e, top: t, offset: r, width: i, height: a, en
2145
2151
  ref: u,
2146
2152
  className: "annotationLayer"
2147
2153
  }),
2148
- f.failure && /* @__PURE__ */ H(ji, {
2154
+ f.failure && /* @__PURE__ */ H(Mi, {
2149
2155
  ref: f.box,
2150
2156
  pageNumber: e,
2151
2157
  error: f.failure.error,
@@ -2157,8 +2163,8 @@ var Mi = je(function({ pageNumber: e, top: t, offset: r, width: i, height: a, en
2157
2163
  });
2158
2164
  //#endregion
2159
2165
  //#region lib/components/ui/media/pdf-reader/partials/viewport.tsx
2160
- function Ni() {
2161
- let { t: e } = N(), { props: t, ...r } = Z(), i = Q(), a = z(null), { layout: o } = r, { layout: s, shown: c, linkService: l } = Ai(i, a, t.externalLinkTarget, o.mode), u = Ti({
2166
+ function Pi() {
2167
+ let { t: e } = N(), { props: t, ...r } = Z(), i = Q(), a = z(null), { layout: o } = r, { layout: s, shown: c, linkService: l } = ji(i, a, t.externalLinkTarget, o.mode), u = Ei({
2162
2168
  doc: i.doc,
2163
2169
  cache: i.canvasCache,
2164
2170
  pdfRef: i.pdfRef,
@@ -2170,7 +2176,7 @@ function Ni() {
2170
2176
  searchQuery: i.state.searchQuery,
2171
2177
  nightMode: i.state.nightMode
2172
2178
  }), d = [];
2173
- for (let e = c.first; e <= c.last; e++) d.push(/* @__PURE__ */ H(Mi, {
2179
+ for (let e = c.first; e <= c.last; e++) d.push(/* @__PURE__ */ H(Ni, {
2174
2180
  pageNumber: e + 1,
2175
2181
  top: 20 + (s.tops[e] ?? 0),
2176
2182
  offset: (s.lefts[e] ?? 0) - s.maxWidth / 2,
@@ -2197,16 +2203,16 @@ function Ni() {
2197
2203
  }
2198
2204
  //#endregion
2199
2205
  //#region lib/components/ui/media/pdf-reader/partials/body.tsx
2200
- function Pi() {
2206
+ function Fi() {
2201
2207
  let { state: e, containerRef: t, handlers: n } = Q(), r = e.numPages > 0 && !e.error && !e.isPasswordProtected;
2202
2208
  return /* @__PURE__ */ U("div", {
2203
2209
  className: "flex min-h-0 min-w-0 flex-1",
2204
- children: [r ? /* @__PURE__ */ H(ui, {}) : null, /* @__PURE__ */ U("div", {
2210
+ children: [r ? /* @__PURE__ */ H(di, {}) : null, /* @__PURE__ */ U("div", {
2205
2211
  ref: t,
2206
2212
  tabIndex: -1,
2207
2213
  "aria-busy": e.isLoading || void 0,
2208
2214
  className: "relative min-w-0 flex-1 overflow-hidden bg-[color-mix(in_oklab,var(--primary)_5%,var(--background))] outline-none dark:bg-[color-mix(in_oklab,var(--primary)_10%,var(--background))]",
2209
- children: [r ? /* @__PURE__ */ H(Ni, {}) : null, /* @__PURE__ */ H(jr, { onRetry: () => {
2215
+ children: [r ? /* @__PURE__ */ H(Pi, {}) : null, /* @__PURE__ */ H(jr, { onRetry: () => {
2210
2216
  t.current?.focus(), n.onRetry();
2211
2217
  } })]
2212
2218
  })]
@@ -2224,7 +2230,7 @@ function $() {
2224
2230
  }
2225
2231
  //#endregion
2226
2232
  //#region lib/components/ui/media/pdf-reader/partials/fullscreen-exit.tsx
2227
- function Fi() {
2233
+ function Ii() {
2228
2234
  let { t: e } = N(), t = $(), { leave: n } = Z(), r = e("material.pdf-reader.exit-fullscreen", "Exit fullscreen");
2229
2235
  return /* @__PURE__ */ H("div", {
2230
2236
  className: "pointer-events-none absolute top-[max(0.75rem,env(safe-area-inset-top))] z-10 ltr:[inset-inline-end:max(0.75rem,env(safe-area-inset-right))] rtl:[inset-inline-end:max(0.75rem,env(safe-area-inset-left))]",
@@ -2242,7 +2248,7 @@ function Fi() {
2242
2248
  }
2243
2249
  //#endregion
2244
2250
  //#region lib/components/ui/media/pdf-reader/mode-action.ts
2245
- function Ii(e, t, n = !0) {
2251
+ function Li(e, t, n = !0) {
2246
2252
  switch (e) {
2247
2253
  case "page": return {
2248
2254
  kind: "back",
@@ -2264,13 +2270,13 @@ function Ii(e, t, n = !0) {
2264
2270
  }
2265
2271
  //#endregion
2266
2272
  //#region lib/components/ui/media/pdf-reader/use-fullscreen-enabled.ts
2267
- var Li = () => () => {};
2268
- function Ri() {
2269
- return Fe(Li, () => document.fullscreenEnabled === !0, () => !1);
2273
+ var Ri = () => () => {};
2274
+ function zi() {
2275
+ return Fe(Ri, () => document.fullscreenEnabled === !0, () => !1);
2270
2276
  }
2271
2277
  //#endregion
2272
2278
  //#region lib/components/ui/media/pdf-reader/partials/annotate-header.tsx
2273
- function zi() {
2279
+ function Bi() {
2274
2280
  let { t: e } = N(), t = $(), { chromeActions: n, props: r } = Z(), i = e("material.pdf-reader.next.annotate-done", "Done"), a = e("material.pdf-reader.next.annotate-title", "Annotation");
2275
2281
  return /* @__PURE__ */ U(A, {
2276
2282
  label: a,
@@ -2308,7 +2314,7 @@ function zi() {
2308
2314
  }
2309
2315
  //#endregion
2310
2316
  //#region lib/components/ui/media/pdf-reader/partials/header-title.tsx
2311
- function Bi() {
2317
+ function Vi() {
2312
2318
  let { t: e, language: t } = N(), { chrome: n, props: r } = Z(), { state: i, bytes: a } = Q(), o = r.file ? Qt(r.file, r.fileName, e("material.pdf-reader.default-file-name", "document")) : "", s = i.numPages > 0 ? e("material.pdf-reader.next.meta", "{pages, plural, one {# page} other {# pages}} · {size}", {
2313
2319
  pages: i.numPages,
2314
2320
  size: wt(a ?? 0, { locale: t ?? "en" })
@@ -2334,7 +2340,7 @@ function Bi() {
2334
2340
  }
2335
2341
  //#endregion
2336
2342
  //#region lib/components/ui/media/pdf-reader/partials/mode-button.tsx
2337
- function Vi({ action: e }) {
2343
+ function Hi({ action: e }) {
2338
2344
  let { t } = N(), { leave: n, toggleFullscreen: r } = Z();
2339
2345
  switch (e.kind) {
2340
2346
  case "back": return /* @__PURE__ */ H(M, {
@@ -2361,17 +2367,17 @@ function Vi({ action: e }) {
2361
2367
  }
2362
2368
  //#endregion
2363
2369
  //#region lib/components/ui/media/pdf-reader/partials/compact-items.tsx
2364
- function Hi() {
2365
- let { chromeActions: e } = Z(), t = oi();
2366
- return /* @__PURE__ */ U(V, { children: [si().filter((e) => e !== "search").map((n) => {
2367
- let r = ai[n];
2370
+ function Ui() {
2371
+ let { chromeActions: e } = Z(), t = si();
2372
+ return /* @__PURE__ */ U(V, { children: [ci().filter((e) => e !== "search").map((n) => {
2373
+ let r = oi[n];
2368
2374
  return /* @__PURE__ */ U(O, {
2369
2375
  onSelect: () => e.openPanelTab(n),
2370
2376
  children: [/* @__PURE__ */ H(r, {}), t[n]]
2371
2377
  }, n);
2372
2378
  }), /* @__PURE__ */ H(D, {})] });
2373
2379
  }
2374
- function Ui() {
2380
+ function Wi() {
2375
2381
  let { t: e } = N(), { actions: t } = Q();
2376
2382
  return /* @__PURE__ */ U(V, { children: [
2377
2383
  /* @__PURE__ */ H(D, {}),
@@ -2395,12 +2401,12 @@ function Ui() {
2395
2401
  }
2396
2402
  //#endregion
2397
2403
  //#region lib/components/ui/media/pdf-reader/partials/layout-choice.tsx
2398
- var Wi = [
2404
+ var Gi = [
2399
2405
  "single",
2400
2406
  "spread",
2401
2407
  "spread-cover"
2402
2408
  ];
2403
- function Gi() {
2409
+ function Ki() {
2404
2410
  let { t: e } = N(), { chrome: t, chromeActions: n, layout: r } = Z(), i = Ne(), a = r.narrow ? "single" : t.layout, o = {
2405
2411
  single: e("material.pdf-reader.next.layout-single", "Single page"),
2406
2412
  spread: e("material.pdf-reader.next.layout-two", "Two pages"),
@@ -2414,7 +2420,7 @@ function Gi() {
2414
2420
  onValueChange: (e) => {
2415
2421
  e !== a && n.setLayout(e);
2416
2422
  },
2417
- children: Wi.map((e) => /* @__PURE__ */ H(E, {
2423
+ children: Gi.map((e) => /* @__PURE__ */ H(E, {
2418
2424
  value: e,
2419
2425
  disabled: r.narrow && e !== "single",
2420
2426
  "aria-describedby": r.narrow ? i : void 0,
@@ -2430,7 +2436,7 @@ function Gi() {
2430
2436
  }
2431
2437
  //#endregion
2432
2438
  //#region lib/components/ui/media/pdf-reader/partials/more-menu.tsx
2433
- function Ki() {
2439
+ function qi() {
2434
2440
  let { t: e } = N(), t = $(), { chrome: n, mode: r, openSearch: i, props: a } = Z(), { state: o, actions: s, fileActions: c } = Q(), l = d(), u = n.size === "compact", f = r === "fullscreen";
2435
2441
  return /* @__PURE__ */ U(ce, {
2436
2442
  modal: !1,
@@ -2450,7 +2456,7 @@ function Ki() {
2450
2456
  onSelect: i,
2451
2457
  children: [/* @__PURE__ */ H(ut, {}), e("material.pdf-reader.search", "Search")]
2452
2458
  }) : null,
2453
- u ? /* @__PURE__ */ H(Hi, {}) : null,
2459
+ u ? /* @__PURE__ */ H(Ui, {}) : null,
2454
2460
  /* @__PURE__ */ U(O, {
2455
2461
  onSelect: s.rotate,
2456
2462
  children: [/* @__PURE__ */ H(lt, {}), e("material.pdf-reader.rotate", "Rotate")]
@@ -2468,9 +2474,9 @@ function Ki() {
2468
2474
  onCheckedChange: s.toggleNightMode,
2469
2475
  children: e("material.pdf-reader.night", "Night mode")
2470
2476
  }),
2471
- u ? /* @__PURE__ */ H(Ui, {}) : null,
2477
+ u ? /* @__PURE__ */ H(Wi, {}) : null,
2472
2478
  /* @__PURE__ */ H(D, {}),
2473
- /* @__PURE__ */ H(Gi, {}),
2479
+ /* @__PURE__ */ H(Ki, {}),
2474
2480
  a.showUnfinished ? /* @__PURE__ */ U(V, { children: [
2475
2481
  /* @__PURE__ */ H(D, {}),
2476
2482
  /* @__PURE__ */ U(O, {
@@ -2488,7 +2494,7 @@ function Ki() {
2488
2494
  }
2489
2495
  //#endregion
2490
2496
  //#region lib/components/ui/media/pdf-reader/partials/search-header.tsx
2491
- function qi() {
2497
+ function Ji() {
2492
2498
  let { t: e } = N(), t = $(), { chromeActions: n } = Z();
2493
2499
  return /* @__PURE__ */ U(A, {
2494
2500
  label: e("material.pdf-reader.search", "Search"),
@@ -2499,25 +2505,25 @@ function qi() {
2499
2505
  icon: /* @__PURE__ */ H(Le, {}),
2500
2506
  label: e("material.pdf-reader.next.search-close", "Close search"),
2501
2507
  onClick: () => n.closeSearchField()
2502
- }), /* @__PURE__ */ H(Fr, {})]
2508
+ }), /* @__PURE__ */ H(Ir, {})]
2503
2509
  });
2504
2510
  }
2505
2511
  //#endregion
2506
2512
  //#region lib/components/ui/media/pdf-reader/partials/header.tsx
2507
- function Ji() {
2513
+ function Yi() {
2508
2514
  let { chrome: e } = Z(), t = vr.selectHeaderKind(e);
2509
- return H(t === "annotate" ? zi : t === "search" ? qi : Yi, {});
2515
+ return H(t === "annotate" ? Bi : t === "search" ? Ji : Xi, {});
2510
2516
  }
2511
- function Yi() {
2512
- let { t: e } = N(), t = $(), { chrome: n, mode: r, props: i, openSearch: a } = Z(), { fileActions: o } = Q(), s = n.size === "compact", c = Ri(), l = Ii(r, n.size, i.allowFullscreen !== !1 && c);
2517
+ function Xi() {
2518
+ let { t: e } = N(), t = $(), { chrome: n, mode: r, props: i, openSearch: a } = Z(), { fileActions: o } = Q(), s = n.size === "compact", c = zi(), l = Li(r, n.size, i.allowFullscreen !== !1 && c);
2513
2519
  return /* @__PURE__ */ U(A, {
2514
2520
  label: e("material.pdf-reader.next.header", "Document actions"),
2515
2521
  variant: "docked",
2516
2522
  ...t,
2517
2523
  className: "shrink-0 border-b border-border",
2518
2524
  children: [
2519
- l?.place === "start" ? /* @__PURE__ */ H(Vi, { action: l }) : null,
2520
- /* @__PURE__ */ H(Bi, {}),
2525
+ l?.place === "start" ? /* @__PURE__ */ H(Hi, { action: l }) : null,
2526
+ /* @__PURE__ */ H(Vi, {}),
2521
2527
  /* @__PURE__ */ H(M, {
2522
2528
  icon: /* @__PURE__ */ H(ut, {}),
2523
2529
  label: e("material.pdf-reader.search", "Search"),
@@ -2529,14 +2535,14 @@ function Yi() {
2529
2535
  label: e("material.pdf-reader.download", "Download"),
2530
2536
  onClick: o.download
2531
2537
  }),
2532
- /* @__PURE__ */ H(Ki, {}),
2533
- l?.place === "end" ? /* @__PURE__ */ H(Vi, { action: l }) : null
2538
+ /* @__PURE__ */ H(qi, {}),
2539
+ l?.place === "end" ? /* @__PURE__ */ H(Hi, { action: l }) : null
2534
2540
  ]
2535
2541
  });
2536
2542
  }
2537
2543
  //#endregion
2538
2544
  //#region lib/components/ui/media/pdf-reader/use-pill-visibility.ts
2539
- function Xi(e, t, n) {
2545
+ function Zi(e, t, n) {
2540
2546
  let r = z(null);
2541
2547
  L(() => {
2542
2548
  r.current = e.current?.querySelector("[data-slot=\"scroll-area-viewport\"]") ?? null;
@@ -2555,13 +2561,13 @@ function Xi(e, t, n) {
2555
2561
  }
2556
2562
  //#endregion
2557
2563
  //#region lib/components/ui/media/pdf-reader/annotate-colors.ts
2558
- var Zi = {
2564
+ var Qi = {
2559
2565
  yellow: "bg-yellow-300",
2560
2566
  green: "bg-green-400",
2561
2567
  blue: "bg-blue-400",
2562
2568
  pink: "bg-pink-400",
2563
2569
  red: "bg-red-500"
2564
- }, Qi = "inline-flex cursor-pointer items-center justify-center whitespace-nowrap rounded-full border-0 bg-transparent px-2.5 text-inherit tabular-nums outline-0 outline-offset-2 transition-colors hover:bg-(--tb-hover) active:bg-(--tb-press) focus-visible:outline-2 focus-visible:outline-(--tb-focus,var(--primary-text))", $i = {
2570
+ }, $i = "inline-flex cursor-pointer items-center justify-center whitespace-nowrap rounded-full border-0 bg-transparent px-2.5 text-inherit tabular-nums outline-0 outline-offset-2 transition-colors hover:bg-(--tb-hover) active:bg-(--tb-press) focus-visible:outline-2 focus-visible:outline-(--tb-focus,var(--primary-text))", ea = {
2565
2571
  pointer: /* @__PURE__ */ H(rt, {}),
2566
2572
  highlight: /* @__PURE__ */ H(Je, {}),
2567
2573
  underline: /* @__PURE__ */ H(pt, {}),
@@ -2569,12 +2575,12 @@ var Zi = {
2569
2575
  note: /* @__PURE__ */ H(dt, {}),
2570
2576
  text: /* @__PURE__ */ H(ft, {}),
2571
2577
  eraser: /* @__PURE__ */ H(We, {})
2572
- }, ea = [
2578
+ }, ta = [
2573
2579
  "highlight",
2574
2580
  "pen",
2575
2581
  "note",
2576
2582
  "eraser"
2577
- ], ta = [
2583
+ ], na = [
2578
2584
  "highlight",
2579
2585
  "underline",
2580
2586
  "pen",
@@ -2582,7 +2588,7 @@ var Zi = {
2582
2588
  "text",
2583
2589
  "eraser"
2584
2590
  ];
2585
- function na() {
2591
+ function ra() {
2586
2592
  let { t: e } = N();
2587
2593
  return {
2588
2594
  tool: {
@@ -2603,10 +2609,10 @@ function na() {
2603
2609
  }
2604
2610
  };
2605
2611
  }
2606
- function ra() {
2607
- let { t: e } = N(), { chrome: t, chromeActions: r } = Z(), i = d(), a = na(), o = t.size === "compact" ? ea : ta, s = e("material.pdf-reader.next.color", "Colour: {color}", { color: a.color[t.color] }), c = (e) => /* @__PURE__ */ H(Wn, {
2612
+ function ia() {
2613
+ let { t: e } = N(), { chrome: t, chromeActions: r } = Z(), i = d(), a = ra(), o = t.size === "compact" ? ta : na, s = e("material.pdf-reader.next.color", "Colour: {color}", { color: a.color[t.color] }), c = (e) => /* @__PURE__ */ H(Wn, {
2608
2614
  value: e,
2609
- icon: $i[e],
2615
+ icon: ea[e],
2610
2616
  label: a.tool[e]
2611
2617
  }, e);
2612
2618
  return /* @__PURE__ */ U(V, { children: [
@@ -2631,10 +2637,10 @@ function ra() {
2631
2637
  children: /* @__PURE__ */ H("button", {
2632
2638
  type: "button",
2633
2639
  "aria-label": s,
2634
- className: Qi,
2640
+ className: $i,
2635
2641
  children: /* @__PURE__ */ H("span", {
2636
2642
  "aria-hidden": !0,
2637
- className: n("size-[18px] rounded-full ring-2 ring-foreground/30", Zi[t.color])
2643
+ className: n("size-[18px] rounded-full ring-2 ring-foreground/30", Qi[t.color])
2638
2644
  })
2639
2645
  })
2640
2646
  })
@@ -2644,11 +2650,11 @@ function ra() {
2644
2650
  children: /* @__PURE__ */ H(ie, {
2645
2651
  value: t.color,
2646
2652
  onValueChange: (e) => r.setColor(e),
2647
- children: ri.map((e) => /* @__PURE__ */ U(E, {
2653
+ children: ii.map((e) => /* @__PURE__ */ U(E, {
2648
2654
  value: e,
2649
2655
  children: [/* @__PURE__ */ H("span", {
2650
2656
  "aria-hidden": !0,
2651
- className: n("size-3.5 rounded-full", Zi[e])
2657
+ className: n("size-3.5 rounded-full", Qi[e])
2652
2658
  }), a.color[e]]
2653
2659
  }, e))
2654
2660
  })
@@ -2658,7 +2664,7 @@ function ra() {
2658
2664
  }
2659
2665
  //#endregion
2660
2666
  //#region lib/components/ui/media/pdf-reader/partials/page-field.tsx
2661
- function ia() {
2667
+ function aa() {
2662
2668
  let { t: e } = N(), { state: t, actions: n } = Q(), [r, i] = B(null), a = r ?? String(t.currentPage), o = () => {
2663
2669
  let e = Number.parseInt(r ?? "", 10);
2664
2670
  Number.isFinite(e) && n.goToPage(e), i(null);
@@ -2694,7 +2700,7 @@ function ia() {
2694
2700
  }
2695
2701
  //#endregion
2696
2702
  //#region lib/components/ui/media/pdf-reader/partials/zoom-control.tsx
2697
- var aa = [
2703
+ var oa = [
2698
2704
  .5,
2699
2705
  .75,
2700
2706
  1,
@@ -2702,7 +2708,7 @@ var aa = [
2702
2708
  1.5,
2703
2709
  2
2704
2710
  ];
2705
- function oa() {
2711
+ function sa() {
2706
2712
  let { t: e, language: t } = N(), { state: n, actions: r, scale: i, limits: a } = Q(), o = d(), s = (e) => kr(e, t ?? "en"), c = n.fitMode === "custom" ? String(n.scale) : n.fitMode, l = (e) => e === "width" || e === "page" ? r.setFitMode(e) : r.setScale(Number(e)), u = e("material.pdf-reader.zoom-menu", "Zoom level {level}", { level: s(i) });
2707
2713
  return /* @__PURE__ */ U(V, { children: [
2708
2714
  /* @__PURE__ */ H(M, {
@@ -2720,7 +2726,7 @@ function oa() {
2720
2726
  children: /* @__PURE__ */ H("button", {
2721
2727
  type: "button",
2722
2728
  "aria-label": u,
2723
- className: Qi,
2729
+ className: $i,
2724
2730
  children: s(i)
2725
2731
  })
2726
2732
  })
@@ -2740,7 +2746,7 @@ function oa() {
2740
2746
  children: e("material.pdf-reader.fit-page-full", "Fit Page")
2741
2747
  }),
2742
2748
  /* @__PURE__ */ H(D, {}),
2743
- aa.map((e) => /* @__PURE__ */ H(E, {
2749
+ oa.map((e) => /* @__PURE__ */ H(E, {
2744
2750
  value: String(e),
2745
2751
  children: s(e)
2746
2752
  }, e))
@@ -2758,7 +2764,7 @@ function oa() {
2758
2764
  }
2759
2765
  //#endregion
2760
2766
  //#region lib/components/ui/media/pdf-reader/partials/pill-nav.tsx
2761
- function sa() {
2767
+ function ca() {
2762
2768
  let { t: e } = N(), { chrome: t, chromeActions: n, props: r, mode: i } = Z(), { state: a, actions: o, rowStarts: s } = Q(), { size: c } = t;
2763
2769
  return /* @__PURE__ */ U(V, { children: [
2764
2770
  c === "medium" ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(me, {
@@ -2776,33 +2782,33 @@ function sa() {
2776
2782
  className: "rtl:rotate-180"
2777
2783
  }),
2778
2784
  label: e("material.pdf-reader.previous-page", "Previous page"),
2779
- disabled: zr(s, a.currentPage, -1) === null,
2785
+ disabled: Br(s, a.currentPage, -1) === null,
2780
2786
  onClick: o.prevPage
2781
2787
  }),
2782
- /* @__PURE__ */ H(ia, {}),
2788
+ /* @__PURE__ */ H(aa, {}),
2783
2789
  /* @__PURE__ */ H(M, {
2784
2790
  icon: /* @__PURE__ */ H(Ve, {
2785
2791
  "aria-hidden": !0,
2786
2792
  className: "rtl:rotate-180"
2787
2793
  }),
2788
2794
  label: e("material.pdf-reader.next-page", "Next page"),
2789
- disabled: zr(s, a.currentPage, 1) === null,
2795
+ disabled: Br(s, a.currentPage, 1) === null,
2790
2796
  onClick: o.nextPage
2791
2797
  }),
2792
- c === "compact" ? null : /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(j, {}), /* @__PURE__ */ H(oa, {})] }),
2798
+ c === "compact" ? null : /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(j, {}), /* @__PURE__ */ H(sa, {})] }),
2793
2799
  r.annotate ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(j, {}), /* @__PURE__ */ H(M, {
2794
2800
  icon: /* @__PURE__ */ H(st, {}),
2795
2801
  label: e("material.pdf-reader.next.annotate", "Annotate"),
2796
2802
  onClick: () => n.startAnnotating(),
2797
2803
  "data-focus-target": "annotate"
2798
2804
  })] }) : null,
2799
- i === "fullscreen" ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(j, {}), /* @__PURE__ */ H(Ki, {})] }) : null
2805
+ i === "fullscreen" ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(j, {}), /* @__PURE__ */ H(qi, {})] }) : null
2800
2806
  ] });
2801
2807
  }
2802
2808
  //#endregion
2803
2809
  //#region lib/components/ui/media/pdf-reader/partials/pill.tsx
2804
- function ca() {
2805
- let { t: e } = N(), t = $(), { chrome: n, frameRef: r } = Z(), { state: i, containerRef: a } = Q(), o = Xi(a, r, n.annotating);
2810
+ function la() {
2811
+ let { t: e } = N(), t = $(), { chrome: n, frameRef: r } = Z(), { state: i, containerRef: a } = Q(), o = Zi(a, r, n.annotating);
2806
2812
  return i.numPages === 0 ? null : /* @__PURE__ */ H("div", {
2807
2813
  className: "pointer-events-none absolute inset-x-0 bottom-4 z-10 flex justify-center px-4",
2808
2814
  children: /* @__PURE__ */ H(A, {
@@ -2813,14 +2819,14 @@ function ca() {
2813
2819
  hidden: o,
2814
2820
  className: "pointer-events-auto",
2815
2821
  "data-focus-target": "pill",
2816
- children: n.annotating ? /* @__PURE__ */ H(ra, {}) : /* @__PURE__ */ H(sa, {})
2822
+ children: n.annotating ? /* @__PURE__ */ H(ia, {}) : /* @__PURE__ */ H(ca, {})
2817
2823
  })
2818
2824
  });
2819
2825
  }
2820
2826
  //#endregion
2821
2827
  //#region lib/components/ui/media/pdf-reader/partials/rail.tsx
2822
- function la() {
2823
- let { t: e } = N(), { chrome: t, chromeActions: n } = Z(), r = oi(), i = si(), a = vr.selectRailValue(t), o = $();
2828
+ function ua() {
2829
+ let { t: e } = N(), { chrome: t, chromeActions: n } = Z(), r = si(), i = ci(), a = vr.selectRailValue(t), o = $();
2824
2830
  return /* @__PURE__ */ H(A, {
2825
2831
  label: e("material.pdf-reader.next.rail", "Document views"),
2826
2832
  variant: "docked",
@@ -2833,7 +2839,7 @@ function la() {
2833
2839
  value: a,
2834
2840
  onValueChange: (e) => n.openPanelTab(e),
2835
2841
  children: i.map((e) => {
2836
- let t = ai[e];
2842
+ let t = oi[e];
2837
2843
  return /* @__PURE__ */ H(Wn, {
2838
2844
  value: e,
2839
2845
  icon: /* @__PURE__ */ H(t, {}),
@@ -2848,7 +2854,7 @@ function la() {
2848
2854
  }
2849
2855
  //#endregion
2850
2856
  //#region lib/components/ui/media/pdf-reader/partials/frame.tsx
2851
- function ua() {
2857
+ function da() {
2852
2858
  let { t: e } = N(), { chrome: t, chromeActions: r, frameRef: i, mode: a, props: o } = Z();
2853
2859
  Cr(i, r.setSize), wr(i, t);
2854
2860
  let s = a === "fullscreen" && vr.selectHeaderKind(t) === "default", c = Or();
@@ -2861,14 +2867,14 @@ function ua() {
2861
2867
  onKeyDown: c,
2862
2868
  className: n("relative flex h-full min-h-0 flex-col overflow-hidden bg-background text-foreground", a === "embedded" && "rounded-xl border border-border", o.className),
2863
2869
  children: [
2864
- s ? null : /* @__PURE__ */ H(Ji, {}),
2870
+ s ? null : /* @__PURE__ */ H(Yi, {}),
2865
2871
  /* @__PURE__ */ U("div", {
2866
2872
  className: "relative flex min-h-0 flex-1",
2867
2873
  children: [
2868
- s ? /* @__PURE__ */ H(Fi, {}) : null,
2869
- t.size === "expanded" ? /* @__PURE__ */ H(la, {}) : null,
2870
- /* @__PURE__ */ H(Pi, {}),
2871
- /* @__PURE__ */ H(ca, {})
2874
+ s ? /* @__PURE__ */ H(Ii, {}) : null,
2875
+ t.size === "expanded" ? /* @__PURE__ */ H(ua, {}) : null,
2876
+ /* @__PURE__ */ H(Fi, {}),
2877
+ /* @__PURE__ */ H(la, {})
2872
2878
  ]
2873
2879
  }),
2874
2880
  /* @__PURE__ */ H(Ar, {})
@@ -2877,7 +2883,7 @@ function ua() {
2877
2883
  }
2878
2884
  //#endregion
2879
2885
  //#region lib/components/ui/media/pdf-reader/reader-layout.ts
2880
- function da(e, t, n) {
2886
+ function fa(e, t, n) {
2881
2887
  let r = n === "compact";
2882
2888
  return {
2883
2889
  mode: r ? "single" : e === "spread" && t ? "spread-cover" : e,
@@ -2885,8 +2891,67 @@ function da(e, t, n) {
2885
2891
  };
2886
2892
  }
2887
2893
  //#endregion
2894
+ //#region lib/components/ui/media/pdf-reader/use-reader-chrome-state.ts
2895
+ function pa(e) {
2896
+ let [t, n] = we(_r, e.defaultLayout ? {
2897
+ ...e.initialChrome,
2898
+ layout: e.defaultLayout
2899
+ } : e.initialChrome), r = e.layout ?? t.layout, i = R(() => ({
2900
+ ...t,
2901
+ layout: r
2902
+ }), [t, r]), { layout: a, onLayoutChange: o } = e;
2903
+ return {
2904
+ chrome: i,
2905
+ chromeActions: R(() => ({
2906
+ ...n,
2907
+ setLayout: (e) => {
2908
+ e !== r && (o?.(e), a === void 0 && n.setLayout(e));
2909
+ }
2910
+ }), [
2911
+ n,
2912
+ r,
2913
+ a,
2914
+ o
2915
+ ]),
2916
+ asked: r
2917
+ };
2918
+ }
2919
+ //#endregion
2920
+ //#region lib/components/ui/media/pdf-reader/use-reader-chrome-value.ts
2921
+ function ma({ chrome: e, chromeActions: t, layout: n, mode: r, frameRef: i, props: a }) {
2922
+ let { onOpenChange: o, onBack: s, onExitFullscreen: c } = a, l = e.size;
2923
+ return R(() => ({
2924
+ chrome: e,
2925
+ chromeActions: t,
2926
+ layout: n,
2927
+ mode: r,
2928
+ frameRef: i,
2929
+ props: a,
2930
+ toggleFullscreen: () => {
2931
+ document.fullscreenElement ? document.exitFullscreen?.() : i.current?.requestFullscreen?.();
2932
+ },
2933
+ openSearch: () => {
2934
+ l === "compact" ? t.openSearchField() : t.openPanelTab("search"), t.focusSearch();
2935
+ },
2936
+ leave: () => {
2937
+ r === "dialog" ? o?.(!1) : r === "page" ? s?.() : (document.fullscreenElement && document.exitFullscreen?.(), c?.());
2938
+ }
2939
+ }), [
2940
+ e,
2941
+ t,
2942
+ n,
2943
+ r,
2944
+ a,
2945
+ l,
2946
+ i,
2947
+ o,
2948
+ s,
2949
+ c
2950
+ ]);
2951
+ }
2952
+ //#endregion
2888
2953
  //#region lib/components/ui/media/pdf-viewer/use-pdf-file-actions.ts
2889
- function fa({ file: e, fileName: t, pdfRef: n, onDownload: r, onPrint: i }) {
2954
+ function ha({ file: e, fileName: t, pdfRef: n, onDownload: r, onPrint: i }) {
2890
2955
  let { t: a } = N(), o = () => n.current?.getData?.();
2891
2956
  return {
2892
2957
  download: r ?? (() => {
@@ -2903,7 +2968,7 @@ function fa({ file: e, fileName: t, pdfRef: n, onDownload: r, onPrint: i }) {
2903
2968
  }
2904
2969
  //#endregion
2905
2970
  //#region lib/components/ui/media/pdf-viewer/use-pdf-outline-select.ts
2906
- function pa(e, t) {
2971
+ function ga(e, t) {
2907
2972
  return F(async (n) => {
2908
2973
  let r = e.current;
2909
2974
  if (!(!r || n.dest == null)) try {
@@ -2914,14 +2979,14 @@ function pa(e, t) {
2914
2979
  }
2915
2980
  //#endregion
2916
2981
  //#region lib/components/ui/media/pdf-viewer/pdf-reader.reducer.ts
2917
- var ma = .15, ha = .25;
2918
- function ga(e) {
2919
- return Math.min(Math.max(e, ha), 5);
2982
+ var _a = .15, va = .25;
2983
+ function ya(e) {
2984
+ return Math.min(Math.max(e, va), 5);
2920
2985
  }
2921
- function _a(e, t) {
2986
+ function ba(e, t) {
2922
2987
  return Math.min(Math.max(Math.round(e), 1), t || 1);
2923
2988
  }
2924
- function va(e) {
2989
+ function xa(e) {
2925
2990
  return {
2926
2991
  numPages: 0,
2927
2992
  currentPage: e.initialPage ?? 1,
@@ -2945,12 +3010,12 @@ function va(e) {
2945
3010
  outline: []
2946
3011
  };
2947
3012
  }
2948
- function ya(e, t) {
3013
+ function Sa(e, t) {
2949
3014
  switch (t.type) {
2950
3015
  case "SET_NUM_PAGES": return {
2951
3016
  ...e,
2952
3017
  numPages: t.payload,
2953
- currentPage: _a(e.currentPage, t.payload),
3018
+ currentPage: ba(e.currentPage, t.payload),
2954
3019
  isLoading: !1,
2955
3020
  isPasswordProtected: !1,
2956
3021
  passwordError: !1,
@@ -2992,15 +3057,15 @@ function ya(e, t) {
2992
3057
  default: return e;
2993
3058
  }
2994
3059
  }
2995
- function ba(e, t) {
3060
+ function Ca(e, t) {
2996
3061
  switch (t.type) {
2997
3062
  case "SET_PAGE": return {
2998
3063
  ...e,
2999
- currentPage: _a(t.payload, e.numPages)
3064
+ currentPage: ba(t.payload, e.numPages)
3000
3065
  };
3001
3066
  case "SET_SCALE": return {
3002
3067
  ...e,
3003
- scale: ga(t.payload),
3068
+ scale: ya(t.payload),
3004
3069
  fitMode: "custom"
3005
3070
  };
3006
3071
  case "SET_FIT_MODE": return {
@@ -3043,12 +3108,12 @@ function ba(e, t) {
3043
3108
  ...e,
3044
3109
  outline: t.payload
3045
3110
  };
3046
- default: return ya(e, t);
3111
+ default: return Sa(e, t);
3047
3112
  }
3048
3113
  }
3049
3114
  //#endregion
3050
3115
  //#region lib/components/ui/media/pdf-viewer/pdf-reader-handlers.ts
3051
- function xa({ dispatch: e, options: t, pageSizes: n, reload: r }) {
3116
+ function wa({ dispatch: e, options: t, pageSizes: n, reload: r }) {
3052
3117
  return {
3053
3118
  onDocumentLoadSuccess: (r) => {
3054
3119
  e({
@@ -3073,7 +3138,7 @@ function xa({ dispatch: e, options: t, pageSizes: n, reload: r }) {
3073
3138
  onPasswordSubmit: () => e({ type: "SUBMIT_PASSWORD" })
3074
3139
  };
3075
3140
  }
3076
- function Sa(e, t) {
3141
+ function Ta(e, t) {
3077
3142
  return {
3078
3143
  setScale: (t) => e({
3079
3144
  type: "SET_SCALE",
@@ -3105,7 +3170,7 @@ function Sa(e, t) {
3105
3170
  }
3106
3171
  //#endregion
3107
3172
  //#region lib/components/ui/media/pdf-viewer/use-pdf-computed-scale.ts
3108
- function Ca(e) {
3173
+ function Ea(e) {
3109
3174
  return F(() => e.fitMode === "custom" ? e.scale : Gt(e.fitMode, e.pageSizes ?? [], e.rotation, {
3110
3175
  width: e.containerWidth,
3111
3176
  height: e.containerHeight ?? 600
@@ -3120,7 +3185,7 @@ function Ca(e) {
3120
3185
  }
3121
3186
  //#endregion
3122
3187
  //#region lib/components/ui/media/pdf-viewer/use-pdf-page-area.ts
3123
- function wa(e, t, n) {
3188
+ function Da(e, t, n) {
3124
3189
  I(() => {
3125
3190
  let r = e.current;
3126
3191
  if (!r || !t) return;
@@ -3148,9 +3213,9 @@ function wa(e, t, n) {
3148
3213
  }
3149
3214
  //#endregion
3150
3215
  //#region lib/components/ui/media/pdf-viewer/use-pdf-page-report.ts
3151
- function Ta(e, t, n) {
3216
+ function Oa(e, t, n) {
3152
3217
  let r = z(e.currentPage), i = F((e) => {
3153
- let { state: i, options: a } = n.current, o = _a(e, i.numPages);
3218
+ let { state: i, options: a } = n.current, o = ba(e, i.numPages);
3154
3219
  o !== i.currentPage && (t({
3155
3220
  type: "SET_PAGE",
3156
3221
  payload: o
@@ -3166,15 +3231,15 @@ function Ta(e, t, n) {
3166
3231
  }
3167
3232
  //#endregion
3168
3233
  //#region lib/components/ui/media/pdf-viewer/use-pdf-reader.ts
3169
- function Ea(e) {
3170
- let [t, n] = Pe(ba, e, va), r = z(null), [i, a] = B(0), o = wa(r, t.numPages > 0, n);
3234
+ function ka(e) {
3235
+ let [t, n] = Pe(Ca, e, xa), r = z(null), [i, a] = B(0), o = Da(r, t.numPages > 0, n);
3171
3236
  I(() => {
3172
3237
  o.reset(), n({
3173
3238
  type: "RESET_DOCUMENT",
3174
3239
  payload: { page: c.current.options.initialPage ?? 1 }
3175
3240
  });
3176
3241
  }, [tn(e.file), o]);
3177
- let s = Ca(t), c = z({
3242
+ let s = Ea(t), c = z({
3178
3243
  state: t,
3179
3244
  options: e
3180
3245
  });
@@ -3184,11 +3249,11 @@ function Ea(e) {
3184
3249
  options: e
3185
3250
  };
3186
3251
  });
3187
- let l = Ta(t, n, c), u = F((e) => {
3252
+ let l = Oa(t, n, c), u = F((e) => {
3188
3253
  let r = t.fitMode === "custom" ? t.scale : s();
3189
3254
  n({
3190
3255
  type: "SET_SCALE",
3191
- payload: ga(r + e)
3256
+ payload: ya(r + e)
3192
3257
  });
3193
3258
  }, [
3194
3259
  s,
@@ -3203,11 +3268,11 @@ function Ea(e) {
3203
3268
  goToPage: l,
3204
3269
  nextPage: () => l(t.currentPage + 1),
3205
3270
  prevPage: () => l(t.currentPage - 1),
3206
- zoomIn: () => u(ma),
3207
- zoomOut: () => u(-ma),
3208
- ...Sa(n, t.rotation)
3271
+ zoomIn: () => u(_a),
3272
+ zoomOut: () => u(-_a),
3273
+ ...Ta(n, t.rotation)
3209
3274
  },
3210
- handlers: xa({
3275
+ handlers: wa({
3211
3276
  dispatch: n,
3212
3277
  options: e,
3213
3278
  pageSizes: o,
@@ -3215,21 +3280,21 @@ function Ea(e) {
3215
3280
  }),
3216
3281
  reloadKey: i,
3217
3282
  limits: {
3218
- minScale: ha,
3283
+ minScale: va,
3219
3284
  maxScale: 5
3220
3285
  }
3221
3286
  };
3222
3287
  }
3223
3288
  //#endregion
3224
3289
  //#region lib/components/ui/media/pdf-viewer/use-pdf-document-search.ts
3225
- var Da = {
3290
+ var Aa = {
3226
3291
  texts: [],
3227
3292
  matches: []
3228
3293
  };
3229
- function Oa(e, t, n, r = 150) {
3230
- let [i, a] = B(Da);
3294
+ function ja(e, t, n, r = 150) {
3295
+ let [i, a] = B(Aa);
3231
3296
  return I(() => {
3232
- a(Da);
3297
+ a(Aa);
3233
3298
  let i = e.current;
3234
3299
  if (!i || n === 0 || !t.trim()) return;
3235
3300
  let o = !1, s = setTimeout(() => {
@@ -3247,8 +3312,8 @@ function Oa(e, t, n, r = 150) {
3247
3312
  }
3248
3313
  //#endregion
3249
3314
  //#region lib/components/ui/media/pdf-viewer/use-pdf-search-hits.ts
3250
- function ka(e) {
3251
- let { pdfRef: t, query: n, numPages: r, goToPage: i, pageRefs: a, holdScrollSpy: o } = e, s = Oa(t, n, r), [c, l] = B(-1), u = z(() => {});
3315
+ function Ma(e) {
3316
+ let { pdfRef: t, query: n, numPages: r, goToPage: i, pageRefs: a, holdScrollSpy: o } = e, s = ja(t, n, r), [c, l] = B(-1), u = z(() => {});
3252
3317
  I(() => {
3253
3318
  l(-1), u.current();
3254
3319
  }, [
@@ -3309,8 +3374,8 @@ function ka(e) {
3309
3374
  }
3310
3375
  //#endregion
3311
3376
  //#region lib/components/ui/media/pdf-reader/engine/open-engine-document.ts
3312
- async function Aa(e, t, n) {
3313
- let [r, i] = await Promise.all([xi(), nn(e)]);
3377
+ async function Na(e, t, n) {
3378
+ let [r, i] = await Promise.all([Si(), nn(e)]);
3314
3379
  if (t.aborted) return null;
3315
3380
  let a = await Mt(r, i, {
3316
3381
  signal: t,
@@ -3320,7 +3385,7 @@ async function Aa(e, t, n) {
3320
3385
  }
3321
3386
  //#endregion
3322
3387
  //#region lib/components/ui/media/pdf-reader/engine/use-engine-document.ts
3323
- function ja(e, t, n) {
3388
+ function Pa(e, t, n) {
3324
3389
  let r = z({
3325
3390
  file: e,
3326
3391
  events: n
@@ -3335,9 +3400,9 @@ function ja(e, t, n) {
3335
3400
  if (!e) return;
3336
3401
  let t = new AbortController(), n;
3337
3402
  return (async () => {
3338
- n = await Aa(e, t.signal, (e, t) => r.current.events.onPassword(e, t === "wrong")) ?? void 0, n && r.current.events.onOpen(n.doc);
3403
+ n = await Na(e, t.signal, (e, t) => r.current.events.onPassword(e, t === "wrong")) ?? void 0, n && r.current.events.onOpen(n.doc);
3339
3404
  })().catch((e) => {
3340
- t.signal.aborted || Dt(e).kind !== "aborted" && r.current.events.onFail(Jr(e));
3405
+ t.signal.aborted || Dt(e).kind !== "aborted" && r.current.events.onFail(Yr(e));
3341
3406
  }), () => {
3342
3407
  t.abort(), n?.destroy().catch(() => {}), r.current.events.onClose();
3343
3408
  };
@@ -3345,7 +3410,7 @@ function ja(e, t, n) {
3345
3410
  }
3346
3411
  //#endregion
3347
3412
  //#region lib/components/ui/media/pdf-reader/engine/use-reader-password.ts
3348
- function Ma() {
3413
+ function Fa() {
3349
3414
  let [e, t] = B(""), n = z(null);
3350
3415
  return {
3351
3416
  input: e,
@@ -3363,19 +3428,19 @@ function Ma() {
3363
3428
  }
3364
3429
  //#endregion
3365
3430
  //#region lib/components/ui/media/pdf-reader/engine/use-reader-engine.ts
3366
- function Na(e) {
3431
+ function Ia(e) {
3367
3432
  let [t, n] = B(null);
3368
3433
  return I(() => {
3369
3434
  if (!e) return;
3370
- let t = qr();
3435
+ let t = Jr();
3371
3436
  return n(t), () => {
3372
3437
  t.dispose(), n(null);
3373
3438
  };
3374
3439
  }, [e]), t;
3375
3440
  }
3376
- function Pa(e, t) {
3377
- let { actions: n, handlers: r } = t, [i, a] = B(null), o = z(null), [s, c] = B(null), l = Ma(), u = Na(i);
3378
- return ja(e, t.reloadKey, {
3441
+ function La(e, t) {
3442
+ let { actions: n, handlers: r } = t, [i, a] = B(null), o = z(null), [s, c] = B(null), l = Fa(), u = Ia(i);
3443
+ return Pa(e, t.reloadKey, {
3379
3444
  onOpen: (e) => {
3380
3445
  o.current = e, a(e), r.onDocumentLoadSuccess(e), e.getOutline().then((e) => n.setOutline(Ut(e))).catch(() => {}), e.getDownloadInfo().then((e) => c(e.length)).catch(() => c(null));
3381
3446
  },
@@ -3396,8 +3461,8 @@ function Pa(e, t) {
3396
3461
  }
3397
3462
  //#endregion
3398
3463
  //#region lib/components/ui/media/pdf-reader/use-announcements.ts
3399
- var Fa = 1e3;
3400
- function Ia() {
3464
+ var Ra = 1e3;
3465
+ function za() {
3401
3466
  let e = z({
3402
3467
  page: -Infinity,
3403
3468
  zoom: -Infinity
@@ -3408,14 +3473,14 @@ function Ia() {
3408
3473
  e.current[t] = performance.now(), n(...r);
3409
3474
  };
3410
3475
  },
3411
- recent: (t) => performance.now() - e.current[t] < Fa
3476
+ recent: (t) => performance.now() - e.current[t] < Ra
3412
3477
  }), []);
3413
3478
  }
3414
3479
  //#endregion
3415
3480
  //#region lib/components/ui/media/pdf-reader/use-asked-actions.ts
3416
- function La(e) {
3417
- let { reader: t, announcements: n, askedPage: r, layout: i, starts: a, scale: o } = e, { actions: s, state: c } = t, { asked: l } = n, u = (e) => s.setScale(ga(o + e)), d = (e) => {
3418
- let t = zr(a, c.currentPage, e);
3481
+ function Ba(e) {
3482
+ let { reader: t, announcements: n, askedPage: r, layout: i, starts: a, scale: o } = e, { actions: s, state: c } = t, { asked: l } = n, u = (e) => s.setScale(ya(o + e)), d = (e) => {
3483
+ let t = Br(a, c.currentPage, e);
3419
3484
  t !== null && s.goToPage(t);
3420
3485
  }, f = i !== "single";
3421
3486
  return {
@@ -3423,24 +3488,24 @@ function La(e) {
3423
3488
  goToPage: r,
3424
3489
  nextPage: l("page", f ? () => d(1) : s.nextPage),
3425
3490
  prevPage: l("page", f ? () => d(-1) : s.prevPage),
3426
- zoomIn: l("zoom", f ? () => u(ma) : s.zoomIn),
3427
- zoomOut: l("zoom", f ? () => u(-ma) : s.zoomOut),
3491
+ zoomIn: l("zoom", f ? () => u(_a) : s.zoomIn),
3492
+ zoomOut: l("zoom", f ? () => u(-_a) : s.zoomOut),
3428
3493
  setScale: l("zoom", s.setScale),
3429
3494
  setFitMode: l("zoom", s.setFitMode)
3430
3495
  };
3431
3496
  }
3432
3497
  //#endregion
3433
3498
  //#region lib/components/ui/media/pdf-reader/use-reader-document.ts
3434
- var Ra = 900;
3435
- function za(e, t) {
3499
+ var Va = 900;
3500
+ function Ha(e, t) {
3436
3501
  let { state: n, computedScale: r } = e;
3437
- return t === "single" || n.fitMode === "custom" ? r() : Lr(n.fitMode, t, n.numPages, n.pageSizes ?? [], n.rotation, {
3502
+ return t === "single" || n.fitMode === "custom" ? r() : Rr(n.fitMode, t, n.numPages, n.pageSizes ?? [], n.rotation, {
3438
3503
  width: n.containerWidth,
3439
3504
  height: n.containerHeight ?? 600
3440
3505
  });
3441
3506
  }
3442
- function Ba(e, t = "single") {
3443
- let { file: n, fileName: r, onDownload: i, onPrint: a } = e, o = Ea({
3507
+ function Ua(e, t = "single") {
3508
+ let { file: n, fileName: r, onDownload: i, onPrint: a } = e, o = ka({
3444
3509
  file: n,
3445
3510
  initialPage: e.initialPage,
3446
3511
  initialScale: e.initialScale,
@@ -3448,22 +3513,22 @@ function Ba(e, t = "single") {
3448
3513
  onPageChange: e.onPageChange,
3449
3514
  onLoadSuccess: e.onLoadSuccess,
3450
3515
  onLoadError: e.onLoadError
3451
- }), { state: s, actions: c } = o, l = Pa(n, o), { pdfRef: u } = l, d = Ia(), { asked: f } = d, p = R(() => f("page", c.goToPage), [f, c.goToPage]), m = z(/* @__PURE__ */ new Map()), h = z(0), g = ka({
3516
+ }), { state: s, actions: c } = o, l = La(n, o), { pdfRef: u } = l, d = za(), { asked: f } = d, p = R(() => f("page", c.goToPage), [f, c.goToPage]), m = z(/* @__PURE__ */ new Map()), h = z(0), g = Ma({
3452
3517
  pdfRef: u,
3453
3518
  query: s.searchQuery,
3454
3519
  numPages: s.numPages,
3455
3520
  goToPage: p,
3456
3521
  pageRefs: m,
3457
3522
  holdScrollSpy: () => {
3458
- h.current = performance.now() + Ra;
3523
+ h.current = performance.now() + Va;
3459
3524
  }
3460
- }), _ = fa({
3525
+ }), _ = ha({
3461
3526
  file: n,
3462
3527
  fileName: r,
3463
3528
  pdfRef: u,
3464
3529
  onDownload: i,
3465
3530
  onPrint: a
3466
- }), v = pa(u, p), y = za(o, t), b = R(() => It(s.numPages, t), [s.numPages, t]), x = La({
3531
+ }), v = ga(u, p), y = Ha(o, t), b = R(() => It(s.numPages, t), [s.numPages, t]), x = Ba({
3467
3532
  reader: o,
3468
3533
  announcements: d,
3469
3534
  askedPage: p,
@@ -3488,68 +3553,33 @@ function Ba(e, t = "single") {
3488
3553
  }
3489
3554
  //#endregion
3490
3555
  //#region lib/components/ui/media/pdf-reader/pdf-reader-provider.tsx
3491
- function Va({ props: e, children: t }) {
3492
- let [n, r] = we(_r, e.defaultLayout ? {
3493
- ...e.initialChrome,
3494
- layout: e.defaultLayout
3495
- } : e.initialChrome), i = e.layout ?? n.layout, a = R(() => ({
3496
- ...n,
3497
- layout: i
3498
- }), [n, i]), { layout: o, onLayoutChange: s } = e, c = R(() => ({
3499
- ...r,
3500
- setLayout: (e) => {
3501
- e !== i && (s?.(e), o === void 0 && r.setLayout(e));
3502
- }
3503
- }), [
3504
- r,
3505
- i,
3506
- o,
3507
- s
3508
- ]), l = R(() => da(i, e.coverPage, a.size), [
3556
+ function Wa({ props: e, children: t }) {
3557
+ let { chrome: n, chromeActions: r, asked: i } = pa(e), a = R(() => fa(i, e.coverPage, n.size), [
3509
3558
  i,
3510
3559
  e.coverPage,
3511
- a.size
3512
- ]), u = Ba(e, l.mode), f = z(null), p = d(), m = p !== null && p === f.current ? "fullscreen" : e.mode ?? "embedded", { onOpenChange: h, onBack: g, onExitFullscreen: _ } = e, v = a.size;
3560
+ n.size
3561
+ ]), o = Ua(e, a.mode), s = z(null), c = d();
3513
3562
  return /* @__PURE__ */ H(yr, {
3514
- value: R(() => ({
3515
- chrome: a,
3516
- chromeActions: c,
3517
- layout: l,
3518
- mode: m,
3519
- frameRef: f,
3520
- props: e,
3521
- toggleFullscreen: () => {
3522
- document.fullscreenElement ? document.exitFullscreen?.() : f.current?.requestFullscreen?.();
3523
- },
3524
- openSearch: () => {
3525
- v === "compact" ? c.openSearchField() : c.openPanelTab("search"), c.focusSearch();
3526
- },
3527
- leave: () => {
3528
- m === "dialog" ? h?.(!1) : m === "page" ? g?.() : (document.fullscreenElement && document.exitFullscreen?.(), _?.());
3529
- }
3530
- }), [
3531
- a,
3532
- c,
3533
- l,
3534
- m,
3535
- e,
3536
- v,
3537
- h,
3538
- g,
3539
- _
3540
- ]),
3563
+ value: ma({
3564
+ chrome: n,
3565
+ chromeActions: r,
3566
+ layout: a,
3567
+ mode: c !== null && c === s.current ? "fullscreen" : e.mode ?? "embedded",
3568
+ frameRef: s,
3569
+ props: e
3570
+ }),
3541
3571
  children: /* @__PURE__ */ H(br, {
3542
- value: u,
3572
+ value: o,
3543
3573
  children: t
3544
3574
  })
3545
3575
  });
3546
3576
  }
3547
3577
  //#endregion
3548
3578
  //#region lib/components/ui/media/pdf-reader/pdf-reader.tsx
3549
- function Ha(e) {
3550
- let t = e.file ? /* @__PURE__ */ H(Va, {
3579
+ function Ga(e) {
3580
+ let t = e.file ? /* @__PURE__ */ H(Wa, {
3551
3581
  props: e,
3552
- children: /* @__PURE__ */ H(ua, {})
3582
+ children: /* @__PURE__ */ H(da, {})
3553
3583
  }) : /* @__PURE__ */ H(dr, { className: e.className });
3554
3584
  return e.mode === "dialog" ? /* @__PURE__ */ H(gr, {
3555
3585
  open: e.open ?? !0,
@@ -3558,12 +3588,12 @@ function Ha(e) {
3558
3588
  children: t
3559
3589
  }) : t;
3560
3590
  }
3561
- var Ua = Oe(Ha), Wa = /* @__PURE__ */ e({ PdfReader: () => qa }), Ga = new Set(ii);
3562
- function Ka(e) {
3563
- return Object.fromEntries(Object.entries(e).filter(([e]) => !Ga.has(e)));
3591
+ var Ka = Oe(Ga), qa = /* @__PURE__ */ e({ PdfReader: () => Xa }), Ja = new Set(ai);
3592
+ function Ya(e) {
3593
+ return Object.fromEntries(Object.entries(e).filter(([e]) => !Ja.has(e)));
3564
3594
  }
3565
- function qa(e) {
3566
- return /* @__PURE__ */ H(Ua, { ...Ka(e) });
3595
+ function Xa(e) {
3596
+ return /* @__PURE__ */ H(Ka, { ...Ya(e) });
3567
3597
  }
3568
3598
  //#endregion
3569
- export { Wn as _, or as a, ir as c, Xn as d, Yn as f, Un as g, Kn as h, ar as i, er as l, Gn as m, Wa as n, $n as o, Zn as p, ur as r, tr as s, qa as t, Qn as u, on as v };
3599
+ export { Wn as _, or as a, ir as c, Xn as d, Yn as f, Un as g, Kn as h, ar as i, er as l, Gn as m, qa as n, $n as o, Zn as p, ur as r, tr as s, Xa as t, Qn as u, on as v };