@alfadocs/ui-kit-debug 1.56.0 → 1.57.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.
- package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
- package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js.map → ai-credits-notice-ktklr8fy.js.map} +1 -1
- package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
- package/dist/_chunks/ai-permission-notice-DyuEGwAt.js.map +1 -0
- package/dist/_chunks/alia-sidebar-BBKBJCv6.js +1284 -0
- package/dist/_chunks/alia-sidebar-BBKBJCv6.js.map +1 -0
- package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js → anamnesis-summary-rows-CCQ62mMN.js} +4 -4
- package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js.map → anamnesis-summary-rows-CCQ62mMN.js.map} +1 -1
- package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
- package/dist/_chunks/{appointment-peek-BIZaDeCi.js.map → appointment-peek-WvNbE4JG.js.map} +1 -1
- package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DmqYEIT9.js.map → appointment-timeline-Z0494xO-.js.map} +1 -1
- package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js → balance-badge-cell-CII3SDmR.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js.map → balance-badge-cell-CII3SDmR.js.map} +1 -1
- package/dist/_chunks/{booking-WyNGKPE2.js → booking-81WnKDsH.js} +3 -3
- package/dist/_chunks/{booking-WyNGKPE2.js.map → booking-81WnKDsH.js.map} +1 -1
- package/dist/_chunks/{calculator-dialog-pCPWta7h.js → calculator-dialog-CzQv03p0.js} +2 -2
- package/dist/_chunks/{calculator-dialog-pCPWta7h.js.map → calculator-dialog-CzQv03p0.js.map} +1 -1
- package/dist/_chunks/{calendar-workspace-Du2ryaI-.js → calendar-workspace-D5-k_9zE.js} +13 -13
- package/dist/_chunks/{calendar-workspace-Du2ryaI-.js.map → calendar-workspace-D5-k_9zE.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
- package/dist/_chunks/{care-plan-card-Ddjh5Doc.js.map → care-plan-card-DxrRLRdW.js.map} +1 -1
- package/dist/_chunks/{care-plan-header-DUX_SVvF.js → care-plan-header-BMwZIgHJ.js} +2 -2
- package/dist/_chunks/{care-plan-header-DUX_SVvF.js.map → care-plan-header-BMwZIgHJ.js.map} +1 -1
- package/dist/_chunks/{chart-HsF1KHbx.js → chart-DQ5GxqgT.js} +347 -350
- package/dist/_chunks/chart-DQ5GxqgT.js.map +1 -0
- package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
- package/dist/_chunks/{clinical-note-card-14JIoUR0.js.map → clinical-note-card-hx939bvw.js.map} +1 -1
- package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
- package/dist/_chunks/color-picker-BsggJovx.js.map +1 -0
- package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
- package/dist/_chunks/{contact-card-CmK05vNb.js.map → contact-card-fHBMwEsx.js.map} +1 -1
- package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js → contact-profile-card-CMyBYgRR.js} +2 -2
- package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js.map → contact-profile-card-CMyBYgRR.js.map} +1 -1
- package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js.map → cycle-calculator-Cww9DzIa.js.map} +1 -1
- package/dist/_chunks/{data-table-D8fuhqO1.js → data-table-fAMTeAjM.js} +2 -2
- package/dist/_chunks/{data-table-D8fuhqO1.js.map → data-table-fAMTeAjM.js.map} +1 -1
- package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
- package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js.map → data-table-tabs-CHYAAeHy.js.map} +1 -1
- package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
- package/dist/_chunks/date-picker-BSZuKo13.js.map +1 -0
- package/dist/_chunks/{date-range-picker-CtUOI38x.js → date-range-picker-CFk-5O3R.js} +176 -171
- package/dist/_chunks/date-range-picker-CFk-5O3R.js.map +1 -0
- package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
- package/dist/_chunks/date-time-picker-CjxTkblD.js.map +1 -0
- package/dist/_chunks/{dialog-CUzbnKLw.js → dialog-Dn-iQ0Jp.js} +2 -2
- package/dist/_chunks/{dialog-CUzbnKLw.js.map → dialog-Dn-iQ0Jp.js.map} +1 -1
- package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
- package/dist/_chunks/{document-preview-uoTekVR7.js.map → document-preview-CHGGG0l_.js.map} +1 -1
- package/dist/_chunks/{due-date-calculator-CSjklbyw.js → due-date-calculator-D_qFUiHp.js} +2 -2
- package/dist/_chunks/{due-date-calculator-CSjklbyw.js.map → due-date-calculator-D_qFUiHp.js.map} +1 -1
- package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
- package/dist/_chunks/{entity-summary-DcB0fIiv.js.map → entity-summary-CWcCSThK.js.map} +1 -1
- package/dist/_chunks/{file-manager-Cc_uO8r2.js → file-manager-CFsL1KVt.js} +3 -3
- package/dist/_chunks/{file-manager-Cc_uO8r2.js.map → file-manager-CFsL1KVt.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js → gestational-age-calculator-CZi43xKG.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js.map → gestational-age-calculator-CZi43xKG.js.map} +1 -1
- package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
- package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js.map → hcg-doubling-Ccvh7OaU.js.map} +1 -1
- package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
- package/dist/_chunks/{header-settings-ge_3gYEq.js.map → header-settings-BMcCx2LC.js.map} +1 -1
- package/dist/_chunks/{heatmap-Gf9r7Tn1.js → heatmap-BEeOThkW.js} +2 -2
- package/dist/_chunks/{heatmap-Gf9r7Tn1.js.map → heatmap-BEeOThkW.js.map} +1 -1
- package/dist/_chunks/{help-me-write-templates-fV-Apf72.js → help-me-write-templates-BUoYGo6f.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-fV-Apf72.js.map → help-me-write-templates-BUoYGo6f.js.map} +1 -1
- package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
- package/dist/_chunks/hover-card-U_ZYoh1n.js.map +1 -0
- package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-C86lQTIA.js} +2 -2
- package/dist/_chunks/{icon-picker-DWrqmI1c.js.map → icon-picker-C86lQTIA.js.map} +1 -1
- package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
- package/dist/_chunks/{info-tip-B0jmIt6M.js.map → info-tip-CJpNpzZe.js.map} +1 -1
- package/dist/_chunks/{kit-extensions-Byfxy6sy.js → kit-extensions-DYVxWcqv.js} +4 -4
- package/dist/_chunks/{kit-extensions-Byfxy6sy.js.map → kit-extensions-DYVxWcqv.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-TeJNvymP.js → link-cell-renderer-CxW_oLa5.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-TeJNvymP.js.map → link-cell-renderer-CxW_oLa5.js.map} +1 -1
- package/dist/_chunks/link-gRw3NtOt.js +137 -0
- package/dist/_chunks/link-gRw3NtOt.js.map +1 -0
- package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
- package/dist/_chunks/{locale-picker-DfNSdOpy.js.map → locale-picker-BGfrZyTw.js.map} +1 -1
- package/dist/_chunks/{marketplace-app-shell-Dcx-JEjg.js → marketplace-app-shell-BZcA9Z06.js} +143 -129
- package/dist/_chunks/marketplace-app-shell-BZcA9Z06.js.map +1 -0
- package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-QKQutwxj.js} +76 -69
- package/dist/_chunks/message-tray-QKQutwxj.js.map +1 -0
- package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
- package/dist/_chunks/{nav-grid-BqCPH8sm.js.map → nav-grid-Byx8PxuB.js.map} +1 -1
- package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
- package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js.map +1 -0
- package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
- package/dist/_chunks/{note-attachment-I1NLoeRZ.js.map → note-attachment-Bt2cddsZ.js.map} +1 -1
- package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
- package/dist/_chunks/{note-timeline-CsY8YOE7.js.map → note-timeline-CX9nAgAR.js.map} +1 -1
- package/dist/_chunks/{notes-panel-DceRhthG.js → notes-panel-Cm4pttpl.js} +4 -4
- package/dist/_chunks/{notes-panel-DceRhthG.js.map → notes-panel-Cm4pttpl.js.map} +1 -1
- package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-C5VtbGjd.js} +83 -76
- package/dist/_chunks/notification-tray-C5VtbGjd.js.map +1 -0
- package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-99kEdtc5.js} +2 -2
- package/dist/_chunks/{patient-details-DsTtjpuX.js.map → patient-details-99kEdtc5.js.map} +1 -1
- package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-DkxY13T6.js} +5 -5
- package/dist/_chunks/{patient-field-row-BvZ9luz-.js.map → patient-field-row-DkxY13T6.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-9nQWTQf6.js → patient-summary-card-opdyfeW2.js} +4 -4
- package/dist/_chunks/{patient-summary-card-9nQWTQf6.js.map → patient-summary-card-opdyfeW2.js.map} +1 -1
- package/dist/_chunks/{payment-request-card-CwDpwXUC.js → payment-request-card-DAniJNLX.js} +2 -2
- package/dist/_chunks/{payment-request-card-CwDpwXUC.js.map → payment-request-card-DAniJNLX.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
- package/dist/_chunks/pdf-viewer-CNQxa4tv.js.map +1 -0
- package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
- package/dist/_chunks/phone-input-O9camxkq.js.map +1 -0
- package/dist/_chunks/popover-BG75rYjN.js +367 -0
- package/dist/_chunks/popover-BG75rYjN.js.map +1 -0
- package/dist/_chunks/{practice-results-Dhbo-fc_.js → practice-results-CfRkjzsI.js} +2 -2
- package/dist/_chunks/{practice-results-Dhbo-fc_.js.map → practice-results-CfRkjzsI.js.map} +1 -1
- package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js → pregnancy-dating-BFzv9g1N.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js.map → pregnancy-dating-BFzv9g1N.js.map} +1 -1
- package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DlVRK7Ue.js} +103 -96
- package/dist/_chunks/product-hub-panel-DlVRK7Ue.js.map +1 -0
- package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
- package/dist/_chunks/{public-footer-CxpG6J1M.js.map → public-footer-ZWTEG1Rq.js.map} +1 -1
- package/dist/_chunks/{public-header.agent-pr2hyiND.js → public-header.agent-BctevbuY.js} +2 -2
- package/dist/_chunks/{public-header.agent-pr2hyiND.js.map → public-header.agent-BctevbuY.js.map} +1 -1
- package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
- package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js.map → radiograph-panel.agent-DyqbTECc.js.map} +1 -1
- package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-BlTzYywa.js} +2 -2
- package/dist/_chunks/{registration-form-D7iNqMBF.js.map → registration-form-BlTzYywa.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-CkFfmA3v.js → rich-text-editor-DTnNZ4Ff.js} +489 -484
- package/dist/_chunks/rich-text-editor-DTnNZ4Ff.js.map +1 -0
- package/dist/_chunks/{sheet-C7SwIxwB.js → sheet-8qsiMoUI.js} +2 -2
- package/dist/_chunks/{sheet-C7SwIxwB.js.map → sheet-8qsiMoUI.js.map} +1 -1
- package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
- package/dist/_chunks/{sign-document-B6HlyCGV.js.map → sign-document-D4iHS_Ug.js.map} +1 -1
- package/dist/_chunks/{signature-request-DhbpB9N9.js → signature-request-DRuYAG5I.js} +2 -2
- package/dist/_chunks/{signature-request-DhbpB9N9.js.map → signature-request-DRuYAG5I.js.map} +1 -1
- package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-AhMsNW1r.js} +2 -2
- package/dist/_chunks/{signed-out-frame-B2GTIeqA.js.map → signed-out-frame-AhMsNW1r.js.map} +1 -1
- package/dist/_chunks/{task-editor-ByyRu29Y.js → task-editor-NkcopDna.js} +3 -3
- package/dist/_chunks/{task-editor-ByyRu29Y.js.map → task-editor-NkcopDna.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js → use-appointment-details-read-CfFQNOF_.js} +5 -5
- package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js.map → use-appointment-details-read-CfFQNOF_.js.map} +1 -1
- package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-BKbgb7FM.js} +2 -2
- package/dist/_chunks/{voice-control-panel-Bg1eklL0.js.map → voice-control-panel-BKbgb7FM.js.map} +1 -1
- package/dist/_chunks/{widget-picker-DXYBMTfe.js → widget-picker-rBA7MR5P.js} +2 -2
- package/dist/_chunks/{widget-picker-DXYBMTfe.js.map → widget-picker-rBA7MR5P.js.map} +1 -1
- package/dist/agent-catalog.json +2 -2
- package/dist/components/_shared/non-modal-tab-exit.d.ts +15 -4
- package/dist/components/_shared/non-modal-tab-exit.d.ts.map +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts.map +1 -1
- package/dist/components/ai-permission-notice/index.d.ts +1 -1
- package/dist/components/ai-permission-notice/index.d.ts.map +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chart/chart.d.ts +5 -5
- package/dist/components/chart/chart.d.ts.map +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/color-picker.d.ts.map +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/date-time-picker.d.ts.map +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/hover-card/hover-card.d.ts.map +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +5 -3
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/message-tray/message-tray.d.ts.map +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/notification-tray/notification-tray.d.ts.map +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.d.ts.map +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/product-hub-tray/product-hub-tray.d.ts.map +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts.map +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +14 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +15 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +14 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +15 -1
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +14 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +15 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +14 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +15 -1
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +14 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +15 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +14 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +15 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +14 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +15 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +14 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +15 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +14 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +15 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +14 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +15 -1
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +14 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +15 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +14 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +15 -1
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +14 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +15 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +14 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +15 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +14 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +15 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +14 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +15 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +14 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +15 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +14 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +15 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +194 -193
- package/dist/locales/ar.json +15 -1
- package/dist/locales/de.json +15 -1
- package/dist/locales/el.json +15 -1
- package/dist/locales/en.json +15 -1
- package/dist/locales/es.json +15 -1
- package/dist/locales/fr.json +15 -1
- package/dist/locales/hi.json +15 -1
- package/dist/locales/it.json +15 -1
- package/dist/locales/ja.json +15 -1
- package/dist/locales/nl.json +15 -1
- package/dist/locales/pl.json +15 -1
- package/dist/locales/pt.json +15 -1
- package/dist/locales/ro.json +15 -1
- package/dist/locales/ru.json +15 -1
- package/dist/locales/sq.json +15 -1
- package/dist/locales/sv.json +15 -1
- package/dist/locales/tr.json +15 -1
- package/dist/locales/zh.json +15 -1
- package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
- package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/alia-chat-surface.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
- package/dist/patterns/alia-assistant/alia-popout.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/index.d.ts +2 -0
- package/dist/patterns/alia-assistant/index.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/index.js +6 -5
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +7 -2
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
- package/dist/_chunks/ai-permission-notice-5vpblPCx.js.map +0 -1
- package/dist/_chunks/alia-sidebar-DOei4Iyu.js +0 -1183
- package/dist/_chunks/alia-sidebar-DOei4Iyu.js.map +0 -1
- package/dist/_chunks/chart-HsF1KHbx.js.map +0 -1
- package/dist/_chunks/color-picker-BRQ4Y9SO.js.map +0 -1
- package/dist/_chunks/date-picker-wRAcq2lt.js.map +0 -1
- package/dist/_chunks/date-range-picker-CtUOI38x.js.map +0 -1
- package/dist/_chunks/date-time-picker-CLeLKuv9.js.map +0 -1
- package/dist/_chunks/hover-card-BnTueNS2.js.map +0 -1
- package/dist/_chunks/link-2HokYuIi.js +0 -130
- package/dist/_chunks/link-2HokYuIi.js.map +0 -1
- package/dist/_chunks/marketplace-app-shell-Dcx-JEjg.js.map +0 -1
- package/dist/_chunks/message-tray-BB95DA82.js.map +0 -1
- package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +0 -65
- package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js.map +0 -1
- package/dist/_chunks/notification-tray-__sJXnsz.js.map +0 -1
- package/dist/_chunks/pdf-viewer-C3minW5b.js.map +0 -1
- package/dist/_chunks/phone-input-DxkHMYmu.js.map +0 -1
- package/dist/_chunks/popover-BI3oV3eY.js +0 -305
- package/dist/_chunks/popover-BI3oV3eY.js.map +0 -1
- package/dist/_chunks/product-hub-panel-BSSiGGG4.js.map +0 -1
- package/dist/_chunks/rich-text-editor-CkFfmA3v.js.map +0 -1
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as Ze, useId as _e, useMemo as Pe, useState as
|
|
3
|
-
import * as
|
|
1
|
+
import { jsx as o, jsxs as K, Fragment as ke } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Ze, useId as _e, useMemo as Pe, useState as b, useEffect as R, useRef as V, useCallback as W, useImperativeHandle as Le } from "react";
|
|
3
|
+
import * as he from "pdfjs-dist/legacy/build/pdf.min.mjs";
|
|
4
4
|
import { c as $ } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { useTranslation as
|
|
5
|
+
import { useTranslation as me } from "react-i18next";
|
|
6
6
|
import * as ae from "@radix-ui/react-popover";
|
|
7
|
+
import { u as qe, f as Be } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
7
8
|
import De from "pdfjs-dist/legacy/build/pdf.worker.min.mjs?url";
|
|
8
|
-
import { S as
|
|
9
|
+
import { S as He } from "./spinner-CoflYlEx.js";
|
|
9
10
|
import { A as Ce } from "./alert-BhCstf2h.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { X as
|
|
12
|
-
import { C as
|
|
13
|
-
import { C as
|
|
14
|
-
import { Z as
|
|
15
|
-
import { S as
|
|
16
|
-
import { P as
|
|
17
|
-
const
|
|
11
|
+
import { u as We } from "./registry-DvAUVLHh.js";
|
|
12
|
+
import { X as Qe } from "./x-B5YnXwCz.js";
|
|
13
|
+
import { C as Ue } from "./chevron-left-B8cOyH-V.js";
|
|
14
|
+
import { C as Je } from "./chevron-right-I9AeSxH2.js";
|
|
15
|
+
import { Z as Xe, a as $e } from "./zoom-out-Dnif4kJx.js";
|
|
16
|
+
import { S as Ge } from "./search-QbWPlY5f.js";
|
|
17
|
+
import { P as Ye } from "./printer-rkK0T1gi.js";
|
|
18
|
+
const et = {
|
|
18
19
|
id: "pdf-viewer",
|
|
19
20
|
// `paginate` (go_to_page), `set_value` (zoom preset — ephemeral view state),
|
|
20
21
|
// `filter` (in-document search/highlight). Zoom maps to `set_value` rather
|
|
@@ -149,7 +150,7 @@ const Ge = {
|
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
152
|
};
|
|
152
|
-
|
|
153
|
+
he.GlobalWorkerOptions.workerSrc = De;
|
|
153
154
|
const Se = $(
|
|
154
155
|
[
|
|
155
156
|
"ds:pdf-viewer-alfadocs ds:flex ds:flex-col",
|
|
@@ -167,7 +168,7 @@ const Se = $(
|
|
|
167
168
|
"ds:focus-visible:outline-[var(--ring)]",
|
|
168
169
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
169
170
|
].join(" ")
|
|
170
|
-
),
|
|
171
|
+
), tt = $(
|
|
171
172
|
[
|
|
172
173
|
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
173
174
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
@@ -204,7 +205,7 @@ const Se = $(
|
|
|
204
205
|
"ds:focus-visible:outline-[var(--ring)]",
|
|
205
206
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
206
207
|
].join(" ")
|
|
207
|
-
),
|
|
208
|
+
), rt = $(
|
|
208
209
|
[
|
|
209
210
|
"ds:[min-block-size:var(--min-target-size)]",
|
|
210
211
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
@@ -215,7 +216,7 @@ const Se = $(
|
|
|
215
216
|
"ds:focus-visible:outline-[var(--ring)]",
|
|
216
217
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
217
218
|
].join(" ")
|
|
218
|
-
),
|
|
219
|
+
), nt = $(
|
|
219
220
|
[
|
|
220
221
|
"ds:relative ds:flex ds:flex-col ds:items-center",
|
|
221
222
|
"ds:gap-[var(--spacing-md)]",
|
|
@@ -236,14 +237,14 @@ const Se = $(
|
|
|
236
237
|
"ds:min-h-[30rem]",
|
|
237
238
|
"ds:max-h-[80vh]"
|
|
238
239
|
].join(" ")
|
|
239
|
-
),
|
|
240
|
+
), at = $(
|
|
240
241
|
[
|
|
241
242
|
"ds:relative ds:flex ds:items-center ds:justify-center",
|
|
242
243
|
"ds:bg-[var(--background)]",
|
|
243
244
|
"ds:shadow-[var(--shadow-md)]",
|
|
244
245
|
"ds:rounded-[var(--radius-sm)]"
|
|
245
246
|
].join(" ")
|
|
246
|
-
),
|
|
247
|
+
), ot = [
|
|
247
248
|
"fit-width",
|
|
248
249
|
"fit-page",
|
|
249
250
|
"actual-size",
|
|
@@ -254,67 +255,67 @@ const Se = $(
|
|
|
254
255
|
1.5,
|
|
255
256
|
2
|
|
256
257
|
];
|
|
257
|
-
function
|
|
258
|
+
function te(a) {
|
|
258
259
|
return typeof a == "number";
|
|
259
260
|
}
|
|
260
|
-
function
|
|
261
|
-
if (
|
|
262
|
-
if (a === "actual-size" || !
|
|
263
|
-
const
|
|
264
|
-
return a === "fit-width" ?
|
|
261
|
+
function Te(a, t, m) {
|
|
262
|
+
if (te(a)) return a;
|
|
263
|
+
if (a === "actual-size" || !m) return 1;
|
|
264
|
+
const f = window.getComputedStyle(m), g = parseFloat(f.paddingInlineStart || "0") + parseFloat(f.paddingInlineEnd || "0"), h = parseFloat(f.paddingBlockStart || "0") + parseFloat(f.paddingBlockEnd || "0"), y = Math.max(m.clientWidth - g, 1), w = Math.max(m.clientHeight - h, 1), x = t.width, z = t.height;
|
|
265
|
+
return a === "fit-width" ? y / x : Math.min(y / x, w / z);
|
|
265
266
|
}
|
|
266
|
-
const
|
|
267
|
+
const st = Ze(
|
|
267
268
|
({
|
|
268
269
|
id: a,
|
|
269
270
|
src: t,
|
|
270
|
-
initialPage:
|
|
271
|
-
initialZoom:
|
|
272
|
-
pageRotation:
|
|
273
|
-
renderPageOverlay:
|
|
274
|
-
onPageChange:
|
|
275
|
-
onLoadComplete:
|
|
276
|
-
onError:
|
|
277
|
-
toolbar:
|
|
271
|
+
initialPage: m = 1,
|
|
272
|
+
initialZoom: f = "fit-width",
|
|
273
|
+
pageRotation: g,
|
|
274
|
+
renderPageOverlay: h,
|
|
275
|
+
onPageChange: y,
|
|
276
|
+
onLoadComplete: w,
|
|
277
|
+
onError: x,
|
|
278
|
+
toolbar: z = !0,
|
|
278
279
|
toolbarVariant: Z = "full",
|
|
279
280
|
ariaLabel: C,
|
|
280
281
|
className: S
|
|
281
|
-
},
|
|
282
|
-
const { t: u } =
|
|
283
|
-
() => `pdf-${
|
|
284
|
-
[
|
|
285
|
-
), [
|
|
286
|
-
|
|
282
|
+
}, v) => {
|
|
283
|
+
const { t: u } = me("ui"), P = _e(), M = Pe(
|
|
284
|
+
() => `pdf-${P.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
285
|
+
[P]
|
|
286
|
+
), [A, p] = b(!1), [L, Q] = b(!1);
|
|
287
|
+
R(() => {
|
|
287
288
|
if (typeof document > "u") return;
|
|
288
|
-
|
|
289
|
-
const e = window.matchMedia("(prefers-reduced-motion: reduce)"),
|
|
290
|
-
return
|
|
289
|
+
p(document.documentElement.dir === "rtl");
|
|
290
|
+
const e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => Q(e.matches);
|
|
291
|
+
return n(), e.addEventListener("change", n), () => e.removeEventListener("change", n);
|
|
291
292
|
}, []);
|
|
292
|
-
const [
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}, [w, x
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}, [
|
|
293
|
+
const [s, U] = b(null), [i, N] = b(null), [l, D] = b(m), [k, T] = b(f), [_, q] = b({ start: Math.max(1, m - 1), end: m + 1 }), [G, B] = b(""), [I, r] = b(!1), [j, re] = b(""), [ve, Ae] = b({ current: 0, total: 0 }), oe = V(y), se = V(w), ie = V(x);
|
|
294
|
+
R(() => {
|
|
295
|
+
oe.current = y, se.current = w, ie.current = x;
|
|
296
|
+
}, [y, w, x]);
|
|
297
|
+
const ue = V(null);
|
|
298
|
+
R(() => {
|
|
299
|
+
ue.current = s;
|
|
300
|
+
}, [s]), R(() => {
|
|
300
301
|
let e = !1;
|
|
301
|
-
|
|
302
|
-
const
|
|
302
|
+
U(null), N(null);
|
|
303
|
+
const n = {
|
|
303
304
|
disableJavaScript: !0,
|
|
304
305
|
isEvalSupported: !1
|
|
305
|
-
}, c =
|
|
306
|
-
typeof t == "string" ? { url: t, ...
|
|
306
|
+
}, c = he.getDocument(
|
|
307
|
+
typeof t == "string" ? { url: t, ...n } : t instanceof Uint8Array ? { data: t, ...n } : { data: new Uint8Array(t), ...n }
|
|
307
308
|
);
|
|
308
309
|
return c.promise.then(
|
|
309
310
|
async (d) => {
|
|
310
311
|
var J;
|
|
311
312
|
if (e) return;
|
|
312
|
-
let
|
|
313
|
+
let O;
|
|
313
314
|
try {
|
|
314
315
|
const X = await d.getMetadata(), E = X == null ? void 0 : X.info;
|
|
315
|
-
|
|
316
|
+
O = E == null ? void 0 : E.Title;
|
|
316
317
|
} catch {
|
|
317
|
-
|
|
318
|
+
O = void 0;
|
|
318
319
|
}
|
|
319
320
|
if (e) {
|
|
320
321
|
try {
|
|
@@ -323,83 +324,83 @@ const nt = Ze(
|
|
|
323
324
|
}
|
|
324
325
|
return;
|
|
325
326
|
}
|
|
326
|
-
const
|
|
327
|
-
|
|
327
|
+
const H = { doc: d, numPages: d.numPages, title: O };
|
|
328
|
+
U(H), (J = se.current) == null || J.call(se, { numPages: d.numPages, title: O });
|
|
328
329
|
},
|
|
329
330
|
(d) => {
|
|
330
|
-
var
|
|
331
|
+
var H;
|
|
331
332
|
if (e) return;
|
|
332
|
-
const
|
|
333
|
-
|
|
333
|
+
const O = d instanceof Error ? d : new Error(String(d));
|
|
334
|
+
N(O), (H = ie.current) == null || H.call(ie, O);
|
|
334
335
|
}
|
|
335
336
|
), () => {
|
|
336
337
|
e = !0, c.destroy();
|
|
337
|
-
const d =
|
|
338
|
+
const d = ue.current;
|
|
338
339
|
if (d) {
|
|
339
340
|
try {
|
|
340
341
|
d.doc.destroy();
|
|
341
342
|
} catch {
|
|
342
343
|
}
|
|
343
|
-
|
|
344
|
+
ue.current = null;
|
|
344
345
|
}
|
|
345
346
|
};
|
|
346
|
-
}, [t]),
|
|
347
|
+
}, [t]), R(() => {
|
|
347
348
|
var e;
|
|
348
|
-
|
|
349
|
-
u("pdf.pageOf", { current: l, total:
|
|
350
|
-
), (e =
|
|
351
|
-
}, [l,
|
|
352
|
-
const
|
|
349
|
+
s && (B(
|
|
350
|
+
u("pdf.pageOf", { current: l, total: s.numPages })
|
|
351
|
+
), (e = oe.current) == null || e.call(oe, l));
|
|
352
|
+
}, [l, s, u]);
|
|
353
|
+
const de = V(null), pe = V([]), F = W(
|
|
353
354
|
(e) => {
|
|
354
|
-
if (!
|
|
355
|
-
const
|
|
356
|
-
D(
|
|
357
|
-
const c =
|
|
355
|
+
if (!s) return;
|
|
356
|
+
const n = Math.max(1, Math.min(e, s.numPages));
|
|
357
|
+
D(n);
|
|
358
|
+
const c = pe.current[n - 1];
|
|
358
359
|
c && c.scrollIntoView({
|
|
359
360
|
behavior: "auto",
|
|
360
361
|
block: "start"
|
|
361
362
|
});
|
|
362
363
|
},
|
|
363
|
-
[
|
|
364
|
-
), be =
|
|
365
|
-
|
|
366
|
-
}, []),
|
|
364
|
+
[s, L]
|
|
365
|
+
), be = W((e) => {
|
|
366
|
+
T(e);
|
|
367
|
+
}, []), ne = W(() => {
|
|
367
368
|
typeof window < "u" && window.print();
|
|
368
|
-
}, []), ye =
|
|
369
|
-
|
|
370
|
-
}, []),
|
|
369
|
+
}, []), ye = W((e) => {
|
|
370
|
+
re(e), r(e.length > 0);
|
|
371
|
+
}, []), Y = V({
|
|
371
372
|
currentPage: l,
|
|
372
373
|
pageCount: 0,
|
|
373
|
-
zoom:
|
|
374
|
+
zoom: k,
|
|
374
375
|
status: "loading",
|
|
375
376
|
searchMatchCount: 0
|
|
376
377
|
});
|
|
377
|
-
|
|
378
|
+
Y.current = {
|
|
378
379
|
currentPage: l,
|
|
379
|
-
pageCount: (
|
|
380
|
-
zoom:
|
|
381
|
-
status: i ? "error" :
|
|
380
|
+
pageCount: (s == null ? void 0 : s.numPages) ?? 0,
|
|
381
|
+
zoom: k,
|
|
382
|
+
status: i ? "error" : s ? "ready" : "loading",
|
|
382
383
|
searchMatchCount: ve.total
|
|
383
384
|
};
|
|
384
|
-
const
|
|
385
|
+
const fe = Pe(
|
|
385
386
|
() => ({
|
|
386
387
|
goToPage: F,
|
|
387
388
|
setZoom: be,
|
|
388
389
|
search: ye,
|
|
389
|
-
print:
|
|
390
|
-
getCurrentPage: () =>
|
|
391
|
-
getPageCount: () =>
|
|
392
|
-
getZoom: () =>
|
|
393
|
-
getStatus: () =>
|
|
394
|
-
getSearchMatchCount: () =>
|
|
390
|
+
print: ne,
|
|
391
|
+
getCurrentPage: () => Y.current.currentPage,
|
|
392
|
+
getPageCount: () => Y.current.pageCount,
|
|
393
|
+
getZoom: () => Y.current.zoom,
|
|
394
|
+
getStatus: () => Y.current.status,
|
|
395
|
+
getSearchMatchCount: () => Y.current.searchMatchCount
|
|
395
396
|
}),
|
|
396
|
-
[F, be, ye,
|
|
397
|
+
[F, be, ye, ne]
|
|
397
398
|
);
|
|
398
|
-
Le(
|
|
399
|
-
const Oe =
|
|
399
|
+
Le(v, () => fe, [fe]), We(et, fe, a);
|
|
400
|
+
const Oe = W(
|
|
400
401
|
(e) => {
|
|
401
|
-
if (!
|
|
402
|
-
const
|
|
402
|
+
if (!s) return;
|
|
403
|
+
const n = e.metaKey || e.ctrlKey;
|
|
403
404
|
if (e.key === "PageDown") {
|
|
404
405
|
e.preventDefault(), F(l + 1);
|
|
405
406
|
return;
|
|
@@ -413,90 +414,90 @@ const nt = Ze(
|
|
|
413
414
|
return;
|
|
414
415
|
}
|
|
415
416
|
if (e.key === "End") {
|
|
416
|
-
e.preventDefault(), F(
|
|
417
|
+
e.preventDefault(), F(s.numPages);
|
|
417
418
|
return;
|
|
418
419
|
}
|
|
419
|
-
if (
|
|
420
|
-
e.preventDefault(),
|
|
420
|
+
if (n && e.key.toLowerCase() === "f") {
|
|
421
|
+
e.preventDefault(), r(!0);
|
|
421
422
|
return;
|
|
422
423
|
}
|
|
423
|
-
if (
|
|
424
|
-
e.preventDefault(),
|
|
424
|
+
if (n && (e.key === "+" || e.key === "=")) {
|
|
425
|
+
e.preventDefault(), T((c) => te(c) ? Math.min(c * 1.25, 4) : 1.25);
|
|
425
426
|
return;
|
|
426
427
|
}
|
|
427
|
-
if (
|
|
428
|
-
e.preventDefault(),
|
|
429
|
-
(c) =>
|
|
428
|
+
if (n && e.key === "-") {
|
|
429
|
+
e.preventDefault(), T(
|
|
430
|
+
(c) => te(c) ? Math.max(c / 1.25, 0.25) : 0.75
|
|
430
431
|
);
|
|
431
432
|
return;
|
|
432
433
|
}
|
|
433
|
-
if (
|
|
434
|
-
e.preventDefault(),
|
|
434
|
+
if (n && e.key === "0") {
|
|
435
|
+
e.preventDefault(), T("fit-width");
|
|
435
436
|
return;
|
|
436
437
|
}
|
|
437
|
-
|
|
438
|
+
n && e.key.toLowerCase() === "p" && (e.preventDefault(), ne());
|
|
438
439
|
},
|
|
439
|
-
[l, F,
|
|
440
|
-
),
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
}, [l]),
|
|
444
|
-
if (!
|
|
445
|
-
const e =
|
|
440
|
+
[l, F, ne, s]
|
|
441
|
+
), ge = V(l);
|
|
442
|
+
R(() => {
|
|
443
|
+
ge.current = l;
|
|
444
|
+
}, [l]), R(() => {
|
|
445
|
+
if (!s) return;
|
|
446
|
+
const e = de.current;
|
|
446
447
|
if (!e) return;
|
|
447
|
-
const
|
|
448
|
+
const n = /* @__PURE__ */ new Map(), c = new IntersectionObserver(
|
|
448
449
|
(d) => {
|
|
449
450
|
for (const E of d) {
|
|
450
|
-
const
|
|
451
|
-
if (!
|
|
452
|
-
const Ke = Number(
|
|
453
|
-
|
|
451
|
+
const ee = E.target.dataset.pageNumber;
|
|
452
|
+
if (!ee) continue;
|
|
453
|
+
const Ke = Number(ee);
|
|
454
|
+
n.set(Ke, E.intersectionRatio);
|
|
454
455
|
}
|
|
455
|
-
let
|
|
456
|
-
for (const [E,
|
|
457
|
-
|
|
458
|
-
|
|
456
|
+
let O = ge.current, H = 0, J = 1 / 0, X = -1 / 0;
|
|
457
|
+
for (const [E, ee] of n.entries())
|
|
458
|
+
ee > H && (O = E, H = ee), ee > 0 && (J = Math.min(J, E), X = Math.max(X, E));
|
|
459
|
+
H > 0 && O !== ge.current && D(O), J !== 1 / 0 && q({
|
|
459
460
|
start: Math.max(1, J - 1),
|
|
460
|
-
end: Math.min(
|
|
461
|
+
end: Math.min(s.numPages, X + 1)
|
|
461
462
|
});
|
|
462
463
|
},
|
|
463
464
|
{ root: e, threshold: [0, 0.25, 0.5, 0.75, 1] }
|
|
464
465
|
);
|
|
465
|
-
return
|
|
466
|
+
return pe.current.forEach((d) => {
|
|
466
467
|
d && c.observe(d);
|
|
467
468
|
}), () => c.disconnect();
|
|
468
|
-
}, [
|
|
469
|
-
const [Ve, je] =
|
|
470
|
-
|
|
471
|
-
const e =
|
|
469
|
+
}, [s]);
|
|
470
|
+
const [Ve, je] = b(0);
|
|
471
|
+
R(() => {
|
|
472
|
+
const e = de.current;
|
|
472
473
|
if (!e || typeof ResizeObserver > "u") return;
|
|
473
|
-
const
|
|
474
|
-
(
|
|
474
|
+
const n = new ResizeObserver(() => {
|
|
475
|
+
(k === "fit-width" || k === "fit-page") && je((c) => c + 1);
|
|
475
476
|
});
|
|
476
|
-
return
|
|
477
|
-
}, [
|
|
478
|
-
const we =
|
|
479
|
-
(e) => (
|
|
480
|
-
we.current[e] =
|
|
477
|
+
return n.observe(e), () => n.disconnect();
|
|
478
|
+
}, [k]);
|
|
479
|
+
const we = V([]), [ce, xe] = b(0), Fe = W(
|
|
480
|
+
(e) => (n) => {
|
|
481
|
+
we.current[e] = n;
|
|
481
482
|
},
|
|
482
483
|
[]
|
|
483
|
-
), ze =
|
|
484
|
-
const
|
|
485
|
-
|
|
486
|
-
}, []),
|
|
484
|
+
), ze = W((e) => {
|
|
485
|
+
const n = we.current[e];
|
|
486
|
+
n && n.focus();
|
|
487
|
+
}, []), le = Z === "minimal" ? 2 : 8, Ee = W(
|
|
487
488
|
(e) => {
|
|
488
|
-
const
|
|
489
|
+
const n = A ? "ArrowLeft" : "ArrowRight", c = A ? "ArrowRight" : "ArrowLeft";
|
|
489
490
|
let d = null;
|
|
490
|
-
e.key ===
|
|
491
|
+
e.key === n ? d = (ce + 1) % le : e.key === c ? d = (ce - 1 + le) % le : e.key === "Home" ? d = 0 : e.key === "End" && (d = le - 1), d !== null && (e.preventDefault(), xe(d), ze(d));
|
|
491
492
|
},
|
|
492
|
-
[ze,
|
|
493
|
+
[ze, A, ce]
|
|
493
494
|
);
|
|
494
|
-
return i ? /* @__PURE__ */
|
|
495
|
+
return i ? /* @__PURE__ */ o(
|
|
495
496
|
"div",
|
|
496
497
|
{
|
|
497
498
|
className: [Se(), S].filter(Boolean).join(" "),
|
|
498
499
|
"aria-label": C ?? u("pdf.error"),
|
|
499
|
-
children: /* @__PURE__ */
|
|
500
|
+
children: /* @__PURE__ */ o("div", { className: "ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ o(Ce, { variant: "error", live: "polite", children: /* @__PURE__ */ K(Ce.Description, { children: [
|
|
500
501
|
u("pdf.error"),
|
|
501
502
|
": ",
|
|
502
503
|
i.message
|
|
@@ -507,92 +508,92 @@ const nt = Ze(
|
|
|
507
508
|
/* @__PURE__ */ K(
|
|
508
509
|
"div",
|
|
509
510
|
{
|
|
510
|
-
id:
|
|
511
|
+
id: M,
|
|
511
512
|
role: "region",
|
|
512
513
|
"aria-label": C ?? u("pdf.toolbarLabel"),
|
|
513
514
|
className: [Se(), S].filter(Boolean).join(" "),
|
|
514
|
-
dir:
|
|
515
|
+
dir: A ? "rtl" : void 0,
|
|
515
516
|
onKeyDown: Oe,
|
|
516
517
|
tabIndex: -1,
|
|
517
518
|
"data-component": "pdf-viewer",
|
|
518
519
|
"data-component-id": a,
|
|
519
520
|
"data-pdfjs-worker-src": De,
|
|
520
521
|
children: [
|
|
521
|
-
|
|
522
|
-
|
|
522
|
+
z ? /* @__PURE__ */ o(
|
|
523
|
+
it,
|
|
523
524
|
{
|
|
524
525
|
variant: Z,
|
|
525
526
|
currentPage: l,
|
|
526
|
-
numPages: (
|
|
527
|
-
zoom:
|
|
527
|
+
numPages: (s == null ? void 0 : s.numPages) ?? 0,
|
|
528
|
+
zoom: k,
|
|
528
529
|
onPrev: () => F(l - 1),
|
|
529
530
|
onNext: () => F(l + 1),
|
|
530
531
|
onJump: (e) => F(e),
|
|
531
532
|
onZoomIn: () => {
|
|
532
|
-
|
|
533
|
-
(e) =>
|
|
533
|
+
T(
|
|
534
|
+
(e) => te(e) ? Math.min(e * 1.25, 4) : 1.25
|
|
534
535
|
);
|
|
535
536
|
},
|
|
536
537
|
onZoomOut: () => {
|
|
537
|
-
|
|
538
|
-
(e) =>
|
|
538
|
+
T(
|
|
539
|
+
(e) => te(e) ? Math.max(e / 1.25, 0.25) : 0.75
|
|
539
540
|
);
|
|
540
541
|
},
|
|
541
|
-
onZoomPreset: (e) =>
|
|
542
|
-
onOpenSearch: () =>
|
|
543
|
-
onPrint:
|
|
544
|
-
searchOpen:
|
|
545
|
-
onSearchOpenChange:
|
|
546
|
-
searchQuery:
|
|
542
|
+
onZoomPreset: (e) => T(e),
|
|
543
|
+
onOpenSearch: () => r(!0),
|
|
544
|
+
onPrint: ne,
|
|
545
|
+
searchOpen: I,
|
|
546
|
+
onSearchOpenChange: r,
|
|
547
|
+
searchQuery: j,
|
|
547
548
|
onSearchQueryChange: (e) => {
|
|
548
|
-
|
|
549
|
+
re(e);
|
|
549
550
|
},
|
|
550
551
|
searchMatches: ve,
|
|
551
552
|
register: Fe,
|
|
552
|
-
focusIndex:
|
|
553
|
+
focusIndex: ce,
|
|
553
554
|
setFocusIndex: xe,
|
|
554
555
|
onToolbarKeyDown: Ee,
|
|
555
|
-
isRtl:
|
|
556
|
+
isRtl: A
|
|
556
557
|
}
|
|
557
558
|
) : null,
|
|
558
|
-
/* @__PURE__ */
|
|
559
|
-
/* @__PURE__ */
|
|
559
|
+
/* @__PURE__ */ o("div", { "aria-live": "polite", "aria-atomic": "true", className: "ds:sr-only", children: G }),
|
|
560
|
+
/* @__PURE__ */ o(
|
|
560
561
|
"div",
|
|
561
562
|
{
|
|
562
|
-
ref:
|
|
563
|
-
className:
|
|
563
|
+
ref: de,
|
|
564
|
+
className: nt(),
|
|
564
565
|
"data-testid": "pdf-pages-container",
|
|
565
566
|
tabIndex: 0,
|
|
566
567
|
"aria-label": u("pdf.pagesRegionLabel"),
|
|
567
|
-
children:
|
|
568
|
-
(e) => /* @__PURE__ */
|
|
569
|
-
|
|
568
|
+
children: s ? Array.from({ length: s.numPages }, (e, n) => n + 1).map(
|
|
569
|
+
(e) => /* @__PURE__ */ o(
|
|
570
|
+
dt,
|
|
570
571
|
{
|
|
571
572
|
pageNumber: e,
|
|
572
|
-
totalPages:
|
|
573
|
-
doc:
|
|
574
|
-
zoom:
|
|
575
|
-
pageRotation:
|
|
576
|
-
renderPageOverlay:
|
|
577
|
-
container:
|
|
573
|
+
totalPages: s.numPages,
|
|
574
|
+
doc: s.doc,
|
|
575
|
+
zoom: k,
|
|
576
|
+
pageRotation: g,
|
|
577
|
+
renderPageOverlay: h,
|
|
578
|
+
container: de.current,
|
|
578
579
|
resizeTick: Ve,
|
|
579
580
|
shouldRender: e >= _.start && e <= _.end,
|
|
580
|
-
registerRef: (
|
|
581
|
-
|
|
581
|
+
registerRef: (n) => {
|
|
582
|
+
pe.current[e - 1] = n;
|
|
582
583
|
},
|
|
583
|
-
searchQuery:
|
|
584
|
-
onMatchCount: (
|
|
585
|
-
Ae((c) =>
|
|
586
|
-
current: Math.min(c.current || 1,
|
|
587
|
-
total: Math.max(c.total,
|
|
584
|
+
searchQuery: j,
|
|
585
|
+
onMatchCount: (n) => {
|
|
586
|
+
Ae((c) => n === 0 && c.total === 0 ? c : {
|
|
587
|
+
current: Math.min(c.current || 1, n || 1),
|
|
588
|
+
total: Math.max(c.total, n)
|
|
588
589
|
});
|
|
589
590
|
}
|
|
590
591
|
},
|
|
591
592
|
e
|
|
592
593
|
)
|
|
593
594
|
) : /* @__PURE__ */ K("div", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:text-[var(--muted-foreground)] ds:p-[var(--spacing-lg)]", children: [
|
|
594
|
-
/* @__PURE__ */
|
|
595
|
-
/* @__PURE__ */
|
|
595
|
+
/* @__PURE__ */ o(He, { variant: "pulse", size: "sm", label: u("pdf.loading") }),
|
|
596
|
+
/* @__PURE__ */ o("span", { children: u("pdf.loading") })
|
|
596
597
|
] })
|
|
597
598
|
}
|
|
598
599
|
)
|
|
@@ -602,60 +603,63 @@ const nt = Ze(
|
|
|
602
603
|
);
|
|
603
604
|
}
|
|
604
605
|
);
|
|
605
|
-
|
|
606
|
-
function
|
|
607
|
-
const { t } =
|
|
608
|
-
variant:
|
|
609
|
-
currentPage:
|
|
610
|
-
numPages:
|
|
611
|
-
zoom:
|
|
612
|
-
onPrev:
|
|
613
|
-
onNext:
|
|
614
|
-
onJump:
|
|
615
|
-
onZoomIn:
|
|
606
|
+
st.displayName = "PDFViewer";
|
|
607
|
+
function it(a) {
|
|
608
|
+
const { t } = me("ui"), {
|
|
609
|
+
variant: m,
|
|
610
|
+
currentPage: f,
|
|
611
|
+
numPages: g,
|
|
612
|
+
zoom: h,
|
|
613
|
+
onPrev: y,
|
|
614
|
+
onNext: w,
|
|
615
|
+
onJump: x,
|
|
616
|
+
onZoomIn: z,
|
|
616
617
|
onZoomOut: Z,
|
|
617
618
|
onZoomPreset: C,
|
|
618
619
|
onOpenSearch: S,
|
|
619
|
-
onPrint:
|
|
620
|
+
onPrint: v,
|
|
620
621
|
searchOpen: u,
|
|
621
|
-
onSearchOpenChange:
|
|
622
|
-
searchQuery:
|
|
623
|
-
onSearchQueryChange:
|
|
624
|
-
searchMatches:
|
|
622
|
+
onSearchOpenChange: P,
|
|
623
|
+
searchQuery: M,
|
|
624
|
+
onSearchQueryChange: A,
|
|
625
|
+
searchMatches: p,
|
|
625
626
|
register: L,
|
|
626
|
-
focusIndex:
|
|
627
|
-
setFocusIndex:
|
|
628
|
-
onToolbarKeyDown:
|
|
629
|
-
} = a, i =
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
}, [
|
|
633
|
-
const _ =
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
627
|
+
focusIndex: Q,
|
|
628
|
+
setFocusIndex: s,
|
|
629
|
+
onToolbarKeyDown: U
|
|
630
|
+
} = a, i = m === "minimal", N = i ? 0 : 3, l = i ? 1 : 4, D = 5, [k, T] = b(String(f));
|
|
631
|
+
R(() => {
|
|
632
|
+
T(String(f));
|
|
633
|
+
}, [f]);
|
|
634
|
+
const _ = qe(!0, {
|
|
635
|
+
getAnchor: Be,
|
|
636
|
+
onReturnToTrigger: () => P(!1)
|
|
637
|
+
}), q = f <= 1, G = f >= g;
|
|
638
|
+
function B() {
|
|
639
|
+
const r = Number(k);
|
|
640
|
+
Number.isFinite(r) && r >= 1 ? x(Math.min(r, g)) : T(String(f));
|
|
637
641
|
}
|
|
638
|
-
function
|
|
639
|
-
return /* @__PURE__ */
|
|
642
|
+
function I(r) {
|
|
643
|
+
return /* @__PURE__ */ o(
|
|
640
644
|
"button",
|
|
641
645
|
{
|
|
642
646
|
type: "button",
|
|
643
|
-
ref: L(
|
|
644
|
-
tabIndex:
|
|
645
|
-
onFocus: () =>
|
|
646
|
-
onKeyDown:
|
|
647
|
-
"aria-label":
|
|
648
|
-
"aria-disabled":
|
|
649
|
-
title:
|
|
650
|
-
onClick: (
|
|
651
|
-
if (
|
|
652
|
-
|
|
647
|
+
ref: L(r.index),
|
|
648
|
+
tabIndex: r.index === Q ? 0 : -1,
|
|
649
|
+
onFocus: () => s(r.index),
|
|
650
|
+
onKeyDown: U,
|
|
651
|
+
"aria-label": r.label,
|
|
652
|
+
"aria-disabled": r.disabled || void 0,
|
|
653
|
+
title: r.label,
|
|
654
|
+
onClick: (j) => {
|
|
655
|
+
if (r.disabled) {
|
|
656
|
+
j.preventDefault();
|
|
653
657
|
return;
|
|
654
658
|
}
|
|
655
|
-
|
|
659
|
+
r.onActivate();
|
|
656
660
|
},
|
|
657
661
|
className: Me(),
|
|
658
|
-
children:
|
|
662
|
+
children: r.icon
|
|
659
663
|
}
|
|
660
664
|
);
|
|
661
665
|
}
|
|
@@ -664,63 +668,63 @@ function st(a) {
|
|
|
664
668
|
{
|
|
665
669
|
role: "toolbar",
|
|
666
670
|
"aria-label": t("pdf.toolbarLabel"),
|
|
667
|
-
className:
|
|
671
|
+
className: tt(),
|
|
668
672
|
children: [
|
|
669
673
|
!i && /* @__PURE__ */ K(ke, { children: [
|
|
670
|
-
|
|
674
|
+
I({
|
|
671
675
|
index: 0,
|
|
672
676
|
label: t("pdf.previousPage"),
|
|
673
|
-
disabled:
|
|
674
|
-
onActivate:
|
|
675
|
-
icon: /* @__PURE__ */
|
|
676
|
-
|
|
677
|
+
disabled: q,
|
|
678
|
+
onActivate: y,
|
|
679
|
+
icon: /* @__PURE__ */ o(
|
|
680
|
+
Ue,
|
|
677
681
|
{
|
|
678
682
|
"aria-hidden": "true",
|
|
679
683
|
className: "ds:block-size-4 ds:inline-size-4 ds:rtl:rotate-180"
|
|
680
684
|
}
|
|
681
685
|
)
|
|
682
686
|
}),
|
|
683
|
-
|
|
687
|
+
I({
|
|
684
688
|
index: 1,
|
|
685
689
|
label: t("pdf.nextPage"),
|
|
686
|
-
disabled:
|
|
687
|
-
onActivate:
|
|
688
|
-
icon: /* @__PURE__ */
|
|
689
|
-
|
|
690
|
+
disabled: G,
|
|
691
|
+
onActivate: w,
|
|
692
|
+
icon: /* @__PURE__ */ o(
|
|
693
|
+
Je,
|
|
690
694
|
{
|
|
691
695
|
"aria-hidden": "true",
|
|
692
696
|
className: "ds:block-size-4 ds:inline-size-4 ds:rtl:rotate-180"
|
|
693
697
|
}
|
|
694
698
|
)
|
|
695
699
|
}),
|
|
696
|
-
/* @__PURE__ */
|
|
700
|
+
/* @__PURE__ */ o(
|
|
697
701
|
"input",
|
|
698
702
|
{
|
|
699
703
|
type: "number",
|
|
700
704
|
min: 1,
|
|
701
|
-
max: Math.max(
|
|
702
|
-
value:
|
|
703
|
-
onChange: (
|
|
704
|
-
onKeyDown: (
|
|
705
|
-
|
|
705
|
+
max: Math.max(g, 1),
|
|
706
|
+
value: k,
|
|
707
|
+
onChange: (r) => T(r.target.value),
|
|
708
|
+
onKeyDown: (r) => {
|
|
709
|
+
r.key === "Enter" && (r.preventDefault(), B());
|
|
706
710
|
},
|
|
707
|
-
onBlur:
|
|
708
|
-
onFocus: () =>
|
|
711
|
+
onBlur: B,
|
|
712
|
+
onFocus: () => s(2),
|
|
709
713
|
ref: L(2),
|
|
710
|
-
tabIndex:
|
|
714
|
+
tabIndex: Q === 2 ? 0 : -1,
|
|
711
715
|
"aria-label": t("pdf.currentPageInput"),
|
|
712
716
|
className: Ne()
|
|
713
717
|
}
|
|
714
718
|
),
|
|
715
|
-
/* @__PURE__ */
|
|
719
|
+
/* @__PURE__ */ o(
|
|
716
720
|
"span",
|
|
717
721
|
{
|
|
718
722
|
"aria-hidden": "true",
|
|
719
723
|
className: "type-body-sm ds:text-[var(--muted-foreground)]",
|
|
720
|
-
children: t("pdf.pageOf", { current:
|
|
724
|
+
children: t("pdf.pageOf", { current: f, total: g || 0 })
|
|
721
725
|
}
|
|
722
726
|
),
|
|
723
|
-
/* @__PURE__ */
|
|
727
|
+
/* @__PURE__ */ o(
|
|
724
728
|
"span",
|
|
725
729
|
{
|
|
726
730
|
"aria-hidden": "true",
|
|
@@ -728,24 +732,24 @@ function st(a) {
|
|
|
728
732
|
}
|
|
729
733
|
)
|
|
730
734
|
] }),
|
|
731
|
-
|
|
732
|
-
index:
|
|
735
|
+
I({
|
|
736
|
+
index: N,
|
|
733
737
|
label: t("pdf.zoom.out"),
|
|
734
738
|
onActivate: Z,
|
|
735
|
-
icon: /* @__PURE__ */
|
|
736
|
-
|
|
739
|
+
icon: /* @__PURE__ */ o(
|
|
740
|
+
Xe,
|
|
737
741
|
{
|
|
738
742
|
"aria-hidden": "true",
|
|
739
743
|
className: "ds:block-size-4 ds:inline-size-4"
|
|
740
744
|
}
|
|
741
745
|
)
|
|
742
746
|
}),
|
|
743
|
-
|
|
747
|
+
I({
|
|
744
748
|
index: l,
|
|
745
749
|
label: t("pdf.zoom.in"),
|
|
746
|
-
onActivate:
|
|
747
|
-
icon: /* @__PURE__ */
|
|
748
|
-
|
|
750
|
+
onActivate: z,
|
|
751
|
+
icon: /* @__PURE__ */ o(
|
|
752
|
+
$e,
|
|
749
753
|
{
|
|
750
754
|
"aria-hidden": "true",
|
|
751
755
|
className: "ds:block-size-4 ds:inline-size-4"
|
|
@@ -756,26 +760,26 @@ function st(a) {
|
|
|
756
760
|
"select",
|
|
757
761
|
{
|
|
758
762
|
"aria-label": t("pdf.zoom.preset"),
|
|
759
|
-
value: typeof
|
|
760
|
-
onChange: (
|
|
761
|
-
const
|
|
762
|
-
if (
|
|
763
|
-
C(
|
|
763
|
+
value: typeof h == "number" ? String(h) : h,
|
|
764
|
+
onChange: (r) => {
|
|
765
|
+
const j = r.target.value;
|
|
766
|
+
if (j === "fit-width" || j === "fit-page" || j === "actual-size")
|
|
767
|
+
C(j);
|
|
764
768
|
else {
|
|
765
|
-
const
|
|
766
|
-
Number.isFinite(
|
|
769
|
+
const re = Number(j);
|
|
770
|
+
Number.isFinite(re) && C(re);
|
|
767
771
|
}
|
|
768
772
|
},
|
|
769
773
|
ref: L(D),
|
|
770
|
-
tabIndex:
|
|
771
|
-
onFocus: () =>
|
|
772
|
-
onKeyDown:
|
|
773
|
-
className:
|
|
774
|
+
tabIndex: Q === D ? 0 : -1,
|
|
775
|
+
onFocus: () => s(D),
|
|
776
|
+
onKeyDown: U,
|
|
777
|
+
className: rt(),
|
|
774
778
|
children: [
|
|
775
|
-
/* @__PURE__ */
|
|
776
|
-
/* @__PURE__ */
|
|
777
|
-
/* @__PURE__ */
|
|
778
|
-
|
|
779
|
+
/* @__PURE__ */ o("option", { value: "fit-width", children: t("pdf.zoom.fitWidth") }),
|
|
780
|
+
/* @__PURE__ */ o("option", { value: "fit-page", children: t("pdf.zoom.fitPage") }),
|
|
781
|
+
/* @__PURE__ */ o("option", { value: "actual-size", children: t("pdf.zoom.actualSize") }),
|
|
782
|
+
ot.filter(te).map((r) => /* @__PURE__ */ o("option", { value: String(r), children: `${Math.round(r * 100)}%` }, r))
|
|
779
783
|
]
|
|
780
784
|
}
|
|
781
785
|
),
|
|
@@ -784,24 +788,25 @@ function st(a) {
|
|
|
784
788
|
ae.Root,
|
|
785
789
|
{
|
|
786
790
|
open: u,
|
|
787
|
-
onOpenChange:
|
|
791
|
+
onOpenChange: P,
|
|
788
792
|
children: [
|
|
789
|
-
/* @__PURE__ */
|
|
793
|
+
/* @__PURE__ */ o(ae.Trigger, { asChild: !0, children: I({
|
|
790
794
|
index: 6,
|
|
791
795
|
label: t("pdf.search.open"),
|
|
792
796
|
onActivate: S,
|
|
793
|
-
icon: /* @__PURE__ */
|
|
794
|
-
|
|
797
|
+
icon: /* @__PURE__ */ o(
|
|
798
|
+
Ge,
|
|
795
799
|
{
|
|
796
800
|
"aria-hidden": "true",
|
|
797
801
|
className: "ds:block-size-4 ds:inline-size-4"
|
|
798
802
|
}
|
|
799
803
|
)
|
|
800
804
|
}) }),
|
|
801
|
-
/* @__PURE__ */
|
|
805
|
+
/* @__PURE__ */ o(ae.Portal, { children: /* @__PURE__ */ K(
|
|
802
806
|
ae.Content,
|
|
803
807
|
{
|
|
804
808
|
sideOffset: 8,
|
|
809
|
+
onKeyDown: _,
|
|
805
810
|
className: [
|
|
806
811
|
"ds:z-[var(--z-popover)]",
|
|
807
812
|
"ds:bg-[var(--popover)] ds:text-[var(--popover-foreground)]",
|
|
@@ -811,13 +816,13 @@ function st(a) {
|
|
|
811
816
|
"ds:flex ds:items-center ds:gap-[var(--spacing-xs)]"
|
|
812
817
|
].join(" "),
|
|
813
818
|
children: [
|
|
814
|
-
/* @__PURE__ */
|
|
819
|
+
/* @__PURE__ */ o(
|
|
815
820
|
"input",
|
|
816
821
|
{
|
|
817
822
|
type: "search",
|
|
818
823
|
autoFocus: !0,
|
|
819
|
-
value:
|
|
820
|
-
onChange: (
|
|
824
|
+
value: M,
|
|
825
|
+
onChange: (r) => A(r.target.value),
|
|
821
826
|
placeholder: t("pdf.search.placeholder"),
|
|
822
827
|
"aria-label": t("pdf.search.placeholder"),
|
|
823
828
|
className: Ne({
|
|
@@ -825,25 +830,25 @@ function st(a) {
|
|
|
825
830
|
})
|
|
826
831
|
}
|
|
827
832
|
),
|
|
828
|
-
/* @__PURE__ */
|
|
833
|
+
/* @__PURE__ */ o(
|
|
829
834
|
"span",
|
|
830
835
|
{
|
|
831
836
|
"aria-live": "polite",
|
|
832
837
|
className: "type-meta ds:text-[var(--muted-foreground)]",
|
|
833
|
-
children:
|
|
834
|
-
current:
|
|
835
|
-
total:
|
|
836
|
-
}) :
|
|
838
|
+
children: p.total > 0 ? t("pdf.search.countOfTotal", {
|
|
839
|
+
current: p.current,
|
|
840
|
+
total: p.total
|
|
841
|
+
}) : M ? t("pdf.search.noResults") : ""
|
|
837
842
|
}
|
|
838
843
|
),
|
|
839
|
-
/* @__PURE__ */
|
|
844
|
+
/* @__PURE__ */ o(ae.Close, { asChild: !0, children: /* @__PURE__ */ o(
|
|
840
845
|
"button",
|
|
841
846
|
{
|
|
842
847
|
type: "button",
|
|
843
848
|
"aria-label": t("pdf.search.close"),
|
|
844
849
|
className: Me(),
|
|
845
|
-
children: /* @__PURE__ */
|
|
846
|
-
|
|
850
|
+
children: /* @__PURE__ */ o(
|
|
851
|
+
Qe,
|
|
847
852
|
{
|
|
848
853
|
"aria-hidden": "true",
|
|
849
854
|
className: "ds:block-size-4 ds:inline-size-4"
|
|
@@ -857,12 +862,12 @@ function st(a) {
|
|
|
857
862
|
]
|
|
858
863
|
}
|
|
859
864
|
),
|
|
860
|
-
|
|
865
|
+
I({
|
|
861
866
|
index: 7,
|
|
862
867
|
label: t("pdf.print"),
|
|
863
|
-
onActivate:
|
|
864
|
-
icon: /* @__PURE__ */
|
|
865
|
-
|
|
868
|
+
onActivate: v,
|
|
869
|
+
icon: /* @__PURE__ */ o(
|
|
870
|
+
Ye,
|
|
866
871
|
{
|
|
867
872
|
"aria-hidden": "true",
|
|
868
873
|
className: "ds:block-size-4 ds:inline-size-4"
|
|
@@ -874,100 +879,100 @@ function st(a) {
|
|
|
874
879
|
}
|
|
875
880
|
);
|
|
876
881
|
}
|
|
877
|
-
function
|
|
882
|
+
function dt(a) {
|
|
878
883
|
const {
|
|
879
884
|
pageNumber: t,
|
|
880
|
-
totalPages:
|
|
881
|
-
doc:
|
|
882
|
-
zoom:
|
|
883
|
-
pageRotation:
|
|
884
|
-
renderPageOverlay:
|
|
885
|
-
container:
|
|
886
|
-
resizeTick:
|
|
887
|
-
shouldRender:
|
|
885
|
+
totalPages: m,
|
|
886
|
+
doc: f,
|
|
887
|
+
zoom: g,
|
|
888
|
+
pageRotation: h,
|
|
889
|
+
renderPageOverlay: y,
|
|
890
|
+
container: w,
|
|
891
|
+
resizeTick: x,
|
|
892
|
+
shouldRender: z,
|
|
888
893
|
registerRef: Z,
|
|
889
894
|
searchQuery: C,
|
|
890
895
|
onMatchCount: S
|
|
891
|
-
} = a, { t:
|
|
896
|
+
} = a, { t: v } = me("ui"), u = V(null), P = V(null), [M, A] = b({
|
|
892
897
|
width: 612,
|
|
893
898
|
height: 792
|
|
894
|
-
}), [
|
|
895
|
-
|
|
899
|
+
}), [p, L] = b(null);
|
|
900
|
+
R(() => {
|
|
896
901
|
let i = !1;
|
|
897
|
-
return
|
|
898
|
-
i || L(
|
|
902
|
+
return f.getPage(t).then((N) => {
|
|
903
|
+
i || L(N);
|
|
899
904
|
}), () => {
|
|
900
905
|
i = !0;
|
|
901
906
|
};
|
|
902
|
-
}, [
|
|
903
|
-
if (!
|
|
904
|
-
const i = (
|
|
905
|
-
|
|
907
|
+
}, [f, t]), R(() => {
|
|
908
|
+
if (!p) return;
|
|
909
|
+
const i = (k) => h === void 0 ? { scale: k } : { scale: k, rotation: h }, N = p.getViewport(i(1)), l = Te(g, N, w), D = p.getViewport(i(l));
|
|
910
|
+
A({
|
|
906
911
|
width: Math.floor(D.width),
|
|
907
912
|
height: Math.floor(D.height)
|
|
908
913
|
});
|
|
909
|
-
}, [
|
|
910
|
-
const
|
|
911
|
-
|
|
912
|
-
if (!
|
|
913
|
-
const
|
|
914
|
-
|
|
914
|
+
}, [p, g, w, x, h]);
|
|
915
|
+
const Q = h ?? (p == null ? void 0 : p.rotate) ?? 0;
|
|
916
|
+
R(() => {
|
|
917
|
+
if (!p || !z) {
|
|
918
|
+
const r = u.current;
|
|
919
|
+
r && !z && (r.width = 0);
|
|
915
920
|
return;
|
|
916
921
|
}
|
|
917
|
-
const i = u.current,
|
|
922
|
+
const i = u.current, N = P.current;
|
|
918
923
|
if (!i) return;
|
|
919
924
|
const l = i.getContext("2d");
|
|
920
925
|
if (!l) return;
|
|
921
|
-
const D = (
|
|
926
|
+
const D = (r) => h === void 0 ? { scale: r } : { scale: r, rotation: h }, k = p.getViewport(D(1)), T = Te(g, k, w), _ = p.getViewport(D(T)), q = Math.max(1, window.devicePixelRatio || 1);
|
|
922
927
|
i.width = Math.floor(_.width * q), i.height = Math.floor(_.height * q), l.setTransform(q, 0, 0, q, 0, 0);
|
|
923
|
-
const
|
|
928
|
+
const G = p.render({
|
|
924
929
|
canvas: i,
|
|
925
930
|
canvasContext: l,
|
|
926
931
|
viewport: _
|
|
927
932
|
});
|
|
928
|
-
let
|
|
929
|
-
return
|
|
930
|
-
if (
|
|
931
|
-
|
|
932
|
-
const
|
|
933
|
-
|
|
934
|
-
textContentSource:
|
|
935
|
-
container:
|
|
933
|
+
let B = !1, I = null;
|
|
934
|
+
return G.promise.then(async () => {
|
|
935
|
+
if (B || !N) return;
|
|
936
|
+
N.textContent = "";
|
|
937
|
+
const r = await p.getTextContent();
|
|
938
|
+
B || (I = new he.TextLayer({
|
|
939
|
+
textContentSource: r,
|
|
940
|
+
container: N,
|
|
936
941
|
viewport: _
|
|
937
|
-
}), await
|
|
942
|
+
}), await I.render(), Re(N, C, S));
|
|
938
943
|
}).catch(() => {
|
|
939
944
|
}), () => {
|
|
940
|
-
|
|
945
|
+
B = !0;
|
|
941
946
|
try {
|
|
942
|
-
|
|
947
|
+
G.cancel();
|
|
943
948
|
} catch {
|
|
944
949
|
}
|
|
945
|
-
if (
|
|
950
|
+
if (I)
|
|
946
951
|
try {
|
|
947
|
-
|
|
952
|
+
I.cancel();
|
|
948
953
|
} catch {
|
|
949
954
|
}
|
|
950
955
|
};
|
|
951
956
|
}, [
|
|
952
|
-
|
|
953
|
-
k,
|
|
954
|
-
h,
|
|
955
|
-
x,
|
|
957
|
+
p,
|
|
956
958
|
z,
|
|
959
|
+
g,
|
|
960
|
+
w,
|
|
961
|
+
x,
|
|
957
962
|
C,
|
|
958
963
|
S,
|
|
959
|
-
|
|
960
|
-
]),
|
|
961
|
-
if (!
|
|
962
|
-
const i =
|
|
963
|
-
i &&
|
|
964
|
-
}, [C,
|
|
965
|
-
const
|
|
966
|
-
width:
|
|
967
|
-
height:
|
|
968
|
-
},
|
|
969
|
-
width:
|
|
970
|
-
height:
|
|
964
|
+
h
|
|
965
|
+
]), R(() => {
|
|
966
|
+
if (!z) return;
|
|
967
|
+
const i = P.current;
|
|
968
|
+
i && Re(i, C, S);
|
|
969
|
+
}, [C, z, S]);
|
|
970
|
+
const s = {
|
|
971
|
+
width: M.width,
|
|
972
|
+
height: M.height
|
|
973
|
+
}, U = {
|
|
974
|
+
width: M.width,
|
|
975
|
+
height: M.height
|
|
971
976
|
};
|
|
972
977
|
return /* @__PURE__ */ K(
|
|
973
978
|
"article",
|
|
@@ -976,15 +981,15 @@ function ot(a) {
|
|
|
976
981
|
Z(i);
|
|
977
982
|
},
|
|
978
983
|
"data-page-number": t,
|
|
979
|
-
"aria-label":
|
|
980
|
-
className:
|
|
981
|
-
style:
|
|
984
|
+
"aria-label": v("pdf.pageOf", { current: t, total: m }),
|
|
985
|
+
className: at(),
|
|
986
|
+
style: U,
|
|
982
987
|
children: [
|
|
983
|
-
/* @__PURE__ */
|
|
984
|
-
/* @__PURE__ */
|
|
988
|
+
/* @__PURE__ */ o("canvas", { ref: u, style: s }),
|
|
989
|
+
/* @__PURE__ */ o(
|
|
985
990
|
"div",
|
|
986
991
|
{
|
|
987
|
-
ref:
|
|
992
|
+
ref: P,
|
|
988
993
|
"aria-hidden": "false",
|
|
989
994
|
className: [
|
|
990
995
|
"ds:absolute ds:inset-0",
|
|
@@ -998,19 +1003,19 @@ function ot(a) {
|
|
|
998
1003
|
].join(" ")
|
|
999
1004
|
}
|
|
1000
1005
|
),
|
|
1001
|
-
|
|
1006
|
+
z && y ? /* @__PURE__ */ o(
|
|
1002
1007
|
"div",
|
|
1003
1008
|
{
|
|
1004
1009
|
role: "group",
|
|
1005
|
-
"aria-label":
|
|
1010
|
+
"aria-label": v("pdf.pageOverlay", { page: t }),
|
|
1006
1011
|
className: "ds:absolute ds:inset-0 ds:pointer-events-auto",
|
|
1007
1012
|
"data-pdf-page-overlay": "",
|
|
1008
1013
|
"data-page-number": t,
|
|
1009
|
-
children:
|
|
1014
|
+
children: y({
|
|
1010
1015
|
pageNumber: t,
|
|
1011
|
-
pageWidthCss:
|
|
1012
|
-
pageHeightCss:
|
|
1013
|
-
rotation:
|
|
1016
|
+
pageWidthCss: M.width,
|
|
1017
|
+
pageHeightCss: M.height,
|
|
1018
|
+
rotation: Q
|
|
1014
1019
|
})
|
|
1015
1020
|
}
|
|
1016
1021
|
) : null
|
|
@@ -1018,48 +1023,48 @@ function ot(a) {
|
|
|
1018
1023
|
}
|
|
1019
1024
|
);
|
|
1020
1025
|
}
|
|
1021
|
-
function
|
|
1026
|
+
function Ie(a) {
|
|
1022
1027
|
return a.normalize("NFKD").replace(new RegExp("\\p{Diacritic}", "gu"), "").toLowerCase();
|
|
1023
1028
|
}
|
|
1024
|
-
function
|
|
1025
|
-
if (a.querySelectorAll("[data-match]").forEach((
|
|
1026
|
-
|
|
1029
|
+
function Re(a, t, m) {
|
|
1030
|
+
if (a.querySelectorAll("[data-match]").forEach((v) => {
|
|
1031
|
+
v.removeAttribute("data-match");
|
|
1027
1032
|
}), !t) {
|
|
1028
|
-
|
|
1033
|
+
m(0);
|
|
1029
1034
|
return;
|
|
1030
1035
|
}
|
|
1031
|
-
const
|
|
1032
|
-
if (!
|
|
1033
|
-
|
|
1036
|
+
const g = Ie(t);
|
|
1037
|
+
if (!g) {
|
|
1038
|
+
m(0);
|
|
1034
1039
|
return;
|
|
1035
1040
|
}
|
|
1036
|
-
const
|
|
1037
|
-
let
|
|
1038
|
-
for (const
|
|
1039
|
-
const u =
|
|
1040
|
-
|
|
1041
|
+
const h = Array.from(a.querySelectorAll("span")), y = [], w = [];
|
|
1042
|
+
let x = 0;
|
|
1043
|
+
for (const v of h) {
|
|
1044
|
+
const u = Ie(v.textContent ?? "");
|
|
1045
|
+
y.push({ start: x, end: x + u.length }), w.push(u), x += u.length;
|
|
1041
1046
|
}
|
|
1042
|
-
const
|
|
1047
|
+
const z = w.join("");
|
|
1043
1048
|
let Z = 0;
|
|
1044
1049
|
const C = /* @__PURE__ */ new Set();
|
|
1045
1050
|
let S = 0;
|
|
1046
|
-
for (; S <=
|
|
1047
|
-
const
|
|
1048
|
-
if (
|
|
1051
|
+
for (; S <= z.length - g.length; ) {
|
|
1052
|
+
const v = z.indexOf(g, S);
|
|
1053
|
+
if (v === -1) break;
|
|
1049
1054
|
Z += 1;
|
|
1050
|
-
const u =
|
|
1051
|
-
for (let
|
|
1052
|
-
const { start:
|
|
1053
|
-
|
|
1055
|
+
const u = v + g.length;
|
|
1056
|
+
for (let P = 0; P < y.length; P++) {
|
|
1057
|
+
const { start: M, end: A } = y[P];
|
|
1058
|
+
M < u && A > v && C.add(P);
|
|
1054
1059
|
}
|
|
1055
1060
|
S = u;
|
|
1056
1061
|
}
|
|
1057
|
-
C.forEach((
|
|
1058
|
-
|
|
1059
|
-
}),
|
|
1062
|
+
C.forEach((v) => {
|
|
1063
|
+
h[v].setAttribute("data-match", "true");
|
|
1064
|
+
}), m(Z);
|
|
1060
1065
|
}
|
|
1061
1066
|
export {
|
|
1062
|
-
|
|
1063
|
-
|
|
1067
|
+
st as P,
|
|
1068
|
+
et as p
|
|
1064
1069
|
};
|
|
1065
|
-
//# sourceMappingURL=pdf-viewer-
|
|
1070
|
+
//# sourceMappingURL=pdf-viewer-CNQxa4tv.js.map
|