@alfadocs/ui-kit-debug 1.132.0 → 1.134.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/{agenda-card-B8hV3dZV.js → agenda-card-B9wgX_Ed.js} +2 -2
- package/dist/_chunks/{agenda-card-B8hV3dZV.js.map → agenda-card-B9wgX_Ed.js.map} +1 -1
- package/dist/_chunks/{agenda-tray-Bu46s3dI.js → agenda-tray-CGcS_qoM.js} +2 -2
- package/dist/_chunks/{agenda-tray-Bu46s3dI.js.map → agenda-tray-CGcS_qoM.js.map} +1 -1
- package/dist/_chunks/appointment-card-DG3m9yN-.js +504 -0
- package/dist/_chunks/appointment-card-DG3m9yN-.js.map +1 -0
- package/dist/_chunks/{appointment-peek-DZa6xyUb.js → appointment-peek-BK0tDs4C.js} +2 -2
- package/dist/_chunks/{appointment-peek-DZa6xyUb.js.map → appointment-peek-BK0tDs4C.js.map} +1 -1
- package/dist/_chunks/{appointment-timeline-DQePqpyH.js → appointment-timeline-BiI2riRZ.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DQePqpyH.js.map → appointment-timeline-BiI2riRZ.js.map} +1 -1
- package/dist/_chunks/appointment-tray-ClJCtYQj.js +200 -0
- package/dist/_chunks/appointment-tray-ClJCtYQj.js.map +1 -0
- package/dist/_chunks/{appointment-workflow-status-DMjuIK90.js → appointment-workflow-status-S-lx81Yz.js} +2 -2
- package/dist/_chunks/{appointment-workflow-status-DMjuIK90.js.map → appointment-workflow-status-S-lx81Yz.js.map} +1 -1
- package/dist/_chunks/ban-CiSCCcOE.js +15 -0
- package/dist/_chunks/ban-CiSCCcOE.js.map +1 -0
- package/dist/_chunks/{calendar-BIoOeBTT.js → calendar-CyLtLBNP.js} +2 -2
- package/dist/_chunks/{calendar-BIoOeBTT.js.map → calendar-CyLtLBNP.js.map} +1 -1
- package/dist/_chunks/calendar-appointment-editor-dialog-BSkIYGlW.js +13773 -0
- package/dist/_chunks/calendar-appointment-editor-dialog-BSkIYGlW.js.map +1 -0
- package/dist/_chunks/{calendar-event-card-BNEzkjm-.js → calendar-event-card-BJifpYZQ.js} +7 -6
- package/dist/_chunks/{calendar-event-card-BNEzkjm-.js.map → calendar-event-card-BJifpYZQ.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-DKScH9Ss.js → care-plan-card-CjHq6PLo.js} +6 -6
- package/dist/_chunks/{care-plan-card-DKScH9Ss.js.map → care-plan-card-CjHq6PLo.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-AG1y3nyW.js → care-plan-entry-card-DY1toF6E.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-AG1y3nyW.js.map → care-plan-entry-card-DY1toF6E.js.map} +1 -1
- package/dist/_chunks/{care-plan-header-Dx5OMkc9.js → care-plan-header-CeFXUDnL.js} +6 -6
- package/dist/_chunks/{care-plan-header-Dx5OMkc9.js.map → care-plan-header-CeFXUDnL.js.map} +1 -1
- package/dist/_chunks/check-in-documents-CEVcgcYZ.js +136 -0
- package/dist/_chunks/check-in-documents-CEVcgcYZ.js.map +1 -0
- package/dist/_chunks/{clinical-note-card-pPaeWWnu.js → clinical-note-card-D--IwbZa.js} +2 -2
- package/dist/_chunks/{clinical-note-card-pPaeWWnu.js.map → clinical-note-card-D--IwbZa.js.map} +1 -1
- package/dist/_chunks/document-preview-DLVIrOYV.js +385 -0
- package/dist/_chunks/document-preview-DLVIrOYV.js.map +1 -0
- package/dist/_chunks/{entity-card-fpm-KUKc.js → entity-card-p-LANpYt.js} +18 -17
- package/dist/_chunks/{entity-card-fpm-KUKc.js.map → entity-card-p-LANpYt.js.map} +1 -1
- package/dist/_chunks/{error-page-B0fGNTRB.js → error-page-WLhmWUTq.js} +100 -115
- package/dist/_chunks/error-page-WLhmWUTq.js.map +1 -0
- package/dist/_chunks/finished-terminal-unDnXT4j.js +191 -0
- package/dist/_chunks/finished-terminal-unDnXT4j.js.map +1 -0
- package/dist/_chunks/house-DGCypGTo.js +21 -0
- package/dist/_chunks/house-DGCypGTo.js.map +1 -0
- package/dist/_chunks/is-safe-url-CEy9CEml.js +8 -0
- package/dist/_chunks/is-safe-url-CEy9CEml.js.map +1 -0
- package/dist/_chunks/keypad-DBH_keVs.js +152 -0
- package/dist/_chunks/keypad-DBH_keVs.js.map +1 -0
- package/dist/_chunks/keypad-button-mOaPQRrH.js +114 -0
- package/dist/_chunks/keypad-button-mOaPQRrH.js.map +1 -0
- package/dist/_chunks/{message-card-BG3_3nN1.js → message-card-Bw_q1qKx.js} +2 -2
- package/dist/_chunks/{message-card-BG3_3nN1.js.map → message-card-Bw_q1qKx.js.map} +1 -1
- package/dist/_chunks/{message-tray-BjZv0Fsk.js → message-tray-pLGgLmoG.js} +2 -2
- package/dist/_chunks/{message-tray-BjZv0Fsk.js.map → message-tray-pLGgLmoG.js.map} +1 -1
- package/dist/_chunks/{note-attachment-MNTIqdSz.js → note-attachment-JTIy9iXN.js} +2 -2
- package/dist/_chunks/{note-attachment-MNTIqdSz.js.map → note-attachment-JTIy9iXN.js.map} +1 -1
- package/dist/_chunks/{note-timeline-BQeW0VZY.js → note-timeline-BbjHMhkL.js} +2 -2
- package/dist/_chunks/{note-timeline-BQeW0VZY.js.map → note-timeline-BbjHMhkL.js.map} +1 -1
- package/dist/_chunks/{notes-panel-Cm-_pCRJ.js → notes-panel-BAyPOr8N.js} +2 -2
- package/dist/_chunks/{notes-panel-Cm-_pCRJ.js.map → notes-panel-BAyPOr8N.js.map} +1 -1
- package/dist/_chunks/{operator-hero-CnfWckNQ.js → operator-hero-D4wfVu2l.js} +2 -2
- package/dist/_chunks/{operator-hero-CnfWckNQ.js.map → operator-hero-D4wfVu2l.js.map} +1 -1
- package/dist/_chunks/otp-input-BNOTlxq3.js +342 -0
- package/dist/_chunks/otp-input-BNOTlxq3.js.map +1 -0
- package/dist/_chunks/patient-account-settings-BkAtIxJW.js +546 -0
- package/dist/_chunks/patient-account-settings-BkAtIxJW.js.map +1 -0
- package/dist/_chunks/patient-card-DTh3QTyS.js +125 -0
- package/dist/_chunks/patient-card-DTh3QTyS.js.map +1 -0
- package/dist/_chunks/patient-check-in-resume-xhqjC6gf.js +742 -0
- package/dist/_chunks/patient-check-in-resume-xhqjC6gf.js.map +1 -0
- package/dist/_chunks/patient-sign-in-pin-CDBqV254.js +432 -0
- package/dist/_chunks/patient-sign-in-pin-CDBqV254.js.map +1 -0
- package/dist/_chunks/patient-sign-in-steps-C2JSqlok.js +199 -0
- package/dist/_chunks/patient-sign-in-steps-C2JSqlok.js.map +1 -0
- package/dist/_chunks/{patient-summary-card-BUcZ-gaL.js → patient-summary-card-Bl2NknPe.js} +2 -2
- package/dist/_chunks/{patient-summary-card-BUcZ-gaL.js.map → patient-summary-card-Bl2NknPe.js.map} +1 -1
- package/dist/_chunks/{payment-request-card-Dv4WbRBe.js → payment-request-card-CNW00DCx.js} +6 -6
- package/dist/_chunks/{payment-request-card-Dv4WbRBe.js.map → payment-request-card-CNW00DCx.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer-BnBKdx0y.js → pdf-viewer-TRC5jEm5.js} +472 -425
- package/dist/_chunks/pdf-viewer-TRC5jEm5.js.map +1 -0
- package/dist/_chunks/pin-entry-BugWQMOS.js +219 -0
- package/dist/_chunks/pin-entry-BugWQMOS.js.map +1 -0
- package/dist/_chunks/pin-indicator-Cb-n40UI.js +124 -0
- package/dist/_chunks/pin-indicator-Cb-n40UI.js.map +1 -0
- package/dist/_chunks/portal-details-CTEsm705.js +478 -0
- package/dist/_chunks/portal-details-CTEsm705.js.map +1 -0
- package/dist/_chunks/portal-documents-D8skew0h.js +902 -0
- package/dist/_chunks/portal-documents-D8skew0h.js.map +1 -0
- package/dist/_chunks/portal-parts-BdR29P7z.js +285 -0
- package/dist/_chunks/portal-parts-BdR29P7z.js.map +1 -0
- package/dist/_chunks/{privacy-mask-DJ1gee4c.js → privacy-mask-C19dJFMk.js} +5 -5
- package/dist/_chunks/{privacy-mask-DJ1gee4c.js.map → privacy-mask-C19dJFMk.js.map} +1 -1
- package/dist/_chunks/{product-hub-panel-a8wdVOUt.js → product-hub-panel-K4QbULG7.js} +2 -2
- package/dist/_chunks/{product-hub-panel-a8wdVOUt.js.map → product-hub-panel-K4QbULG7.js.map} +1 -1
- package/dist/_chunks/{registration-form-CwbhtKcy.js → registration-form-DS3RuKHu.js} +2 -2
- package/dist/_chunks/{registration-form-CwbhtKcy.js.map → registration-form-DS3RuKHu.js.map} +1 -1
- package/dist/_chunks/{reserved.agent-W8mR179D.js → reserved.agent-DOzOBUW7.js} +2 -2
- package/dist/_chunks/{reserved.agent-W8mR179D.js.map → reserved.agent-DOzOBUW7.js.map} +1 -1
- package/dist/_chunks/session-countdown-DOx1IBUB.js +232 -0
- package/dist/_chunks/session-countdown-DOx1IBUB.js.map +1 -0
- package/dist/_chunks/{sign-document-CQZVzfpk.js → sign-document-DDZbmYHu.js} +2 -2
- package/dist/_chunks/{sign-document-CQZVzfpk.js.map → sign-document-DDZbmYHu.js.map} +1 -1
- package/dist/_chunks/{signature-field-DjabvRZm.js → signature-field-BjlY_yXH.js} +39 -34
- package/dist/_chunks/signature-field-BjlY_yXH.js.map +1 -0
- package/dist/_chunks/{signature-request-4pGq3YBe.js → signature-request-CHsM_iWi.js} +2 -2
- package/dist/_chunks/{signature-request-4pGq3YBe.js.map → signature-request-CHsM_iWi.js.map} +1 -1
- package/dist/_chunks/{signature-status-chip-pIoQjvH8.js → signature-status-chip-DS9hHwIt.js} +66 -69
- package/dist/_chunks/signature-status-chip-DS9hHwIt.js.map +1 -0
- package/dist/_chunks/signing-end-screen-an9P8DOT.js +1041 -0
- package/dist/_chunks/signing-end-screen-an9P8DOT.js.map +1 -0
- package/dist/_chunks/sms-code-entry-Dgp4GwlM.js +316 -0
- package/dist/_chunks/sms-code-entry-Dgp4GwlM.js.map +1 -0
- package/dist/_chunks/step-up-dialog-C2JqJmCA.js +132 -0
- package/dist/_chunks/step-up-dialog-C2JqJmCA.js.map +1 -0
- package/dist/_chunks/{task-editor-BL2hHxNz.js → task-editor-g1AGfxhr.js} +38 -38
- package/dist/_chunks/{task-editor-BL2hHxNz.js.map → task-editor-g1AGfxhr.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js → use-appointment-details-read-Dzc6fEzG.js} +6 -6
- package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js.map → use-appointment-details-read-Dzc6fEzG.js.map} +1 -1
- package/dist/_chunks/use-zoom-drilldown-Cr1baU5X.js +221 -0
- package/dist/_chunks/use-zoom-drilldown-Cr1baU5X.js.map +1 -0
- package/dist/_chunks/{user-x-DYszNtIg.js → user-x-BJZg4kaP.js} +8 -19
- package/dist/_chunks/user-x-BJZg4kaP.js.map +1 -0
- package/dist/_chunks/{verify-identity-types-CxtrBXsZ.js → verify-identity-types-C6Bam8v6.js} +2 -2
- package/dist/_chunks/{verify-identity-types-CxtrBXsZ.js.map → verify-identity-types-C6Bam8v6.js.map} +1 -1
- package/dist/agent-catalog.json +723 -364
- package/dist/agent-i18n/en.json +75 -18
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/is-safe-url.d.ts +3 -1
- package/dist/components/_shared/is-safe-url.d.ts.map +1 -1
- package/dist/components/agenda-card/index.js +2 -2
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +45 -0
- package/dist/components/appointment-card/appointment-card.d.ts.map +1 -1
- package/dist/components/appointment-card/appointment-tray.agent.d.ts.map +1 -1
- package/dist/components/appointment-card/appointment-tray.d.ts +11 -0
- package/dist/components/appointment-card/appointment-tray.d.ts.map +1 -1
- package/dist/components/appointment-card/index.js +3 -3
- 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/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/document-preview/document-preview.agent.d.ts.map +1 -1
- package/dist/components/document-preview/document-preview.d.ts +61 -7
- package/dist/components/document-preview/document-preview.d.ts.map +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/finished-terminal/finished-terminal.d.ts +63 -6
- package/dist/components/finished-terminal/finished-terminal.d.ts.map +1 -1
- package/dist/components/finished-terminal/index.d.ts +1 -1
- package/dist/components/finished-terminal/index.d.ts.map +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/index.d.ts +12 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/keypad/index.d.ts +3 -0
- package/dist/components/keypad/index.d.ts.map +1 -0
- package/dist/components/keypad/index.js +6 -0
- package/dist/components/keypad/index.js.map +1 -0
- package/dist/components/keypad/keypad.d.ts +54 -0
- package/dist/components/keypad/keypad.d.ts.map +1 -0
- package/dist/components/keypad-button/index.d.ts +3 -0
- package/dist/components/keypad-button/index.d.ts.map +1 -0
- package/dist/components/keypad-button/index.js +6 -0
- package/dist/components/keypad-button/index.js.map +1 -0
- package/dist/components/keypad-button/keypad-button.d.ts +33 -0
- package/dist/components/keypad-button/keypad-button.d.ts.map +1 -0
- package/dist/components/message-card/index.js +2 -2
- package/dist/components/message-tray/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/operator-hero/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +11 -0
- package/dist/components/otp-input/otp-input.d.ts.map +1 -1
- package/dist/components/patient-summary-card/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.agent.d.ts.map +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +7 -0
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/pin-entry/index.d.ts +3 -0
- package/dist/components/pin-entry/index.d.ts.map +1 -0
- package/dist/components/pin-entry/index.js +5 -0
- package/dist/components/pin-entry/index.js.map +1 -0
- package/dist/components/pin-entry/pin-entry.agent.d.ts +4 -0
- package/dist/components/pin-entry/pin-entry.agent.d.ts.map +1 -0
- package/dist/components/pin-entry/pin-entry.d.ts +64 -0
- package/dist/components/pin-entry/pin-entry.d.ts.map +1 -0
- package/dist/components/pin-indicator/index.d.ts +3 -0
- package/dist/components/pin-indicator/index.d.ts.map +1 -0
- package/dist/components/pin-indicator/index.js +9 -0
- package/dist/components/pin-indicator/index.js.map +1 -0
- package/dist/components/pin-indicator/pin-indicator.d.ts +34 -0
- package/dist/components/pin-indicator/pin-indicator.d.ts.map +1 -0
- package/dist/components/product-hub-tray/index.js +2 -2
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/session-countdown/session-countdown.d.ts +19 -0
- package/dist/components/session-countdown/session-countdown.d.ts.map +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/signature-field/signature-field.d.ts +17 -6
- package/dist/components/signature-field/signature-field.d.ts.map +1 -1
- package/dist/components/signature-status-chip/index.js +1 -1
- package/dist/components/signature-status-chip/signature-status-chip.d.ts +3 -2
- package/dist/components/signature-status-chip/signature-status-chip.d.ts.map +1 -1
- package/dist/components/sms-code-entry/index.d.ts +3 -0
- package/dist/components/sms-code-entry/index.d.ts.map +1 -0
- package/dist/components/sms-code-entry/index.js +5 -0
- package/dist/components/sms-code-entry/index.js.map +1 -0
- package/dist/components/sms-code-entry/sms-code-entry.agent.d.ts +4 -0
- package/dist/components/sms-code-entry/sms-code-entry.agent.d.ts.map +1 -0
- package/dist/components/sms-code-entry/sms-code-entry.d.ts +156 -0
- package/dist/components/sms-code-entry/sms-code-entry.d.ts.map +1 -0
- package/dist/components/step-up-dialog/index.d.ts +3 -0
- package/dist/components/step-up-dialog/index.d.ts.map +1 -0
- package/dist/components/step-up-dialog/index.js +5 -0
- package/dist/components/step-up-dialog/index.js.map +1 -0
- package/dist/components/step-up-dialog/step-up-dialog.d.ts +108 -0
- package/dist/components/step-up-dialog/step-up-dialog.d.ts.map +1 -0
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-signing-session.d.ts +7 -2
- package/dist/hooks/use-signing-session.d.ts.map +1 -1
- package/dist/host-compat.css +10 -1
- package/dist/i18n/locales/ar.d.ts +514 -1
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +512 -4
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +514 -1
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +520 -5
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +514 -1
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +515 -5
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +516 -1
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +522 -4
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +514 -1
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +513 -5
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +514 -1
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +513 -5
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +514 -1
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +513 -5
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +514 -1
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +520 -5
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +514 -1
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +513 -5
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +514 -1
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +520 -5
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +514 -1
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +520 -5
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +514 -1
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +520 -5
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +514 -1
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +520 -5
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +514 -1
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +512 -4
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +514 -1
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +513 -5
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +514 -1
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +513 -5
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +514 -1
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +515 -5
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +514 -1
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +513 -5
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +1271 -1204
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +516 -3
- package/dist/locales/de.json +517 -4
- package/dist/locales/el.json +517 -4
- package/dist/locales/en.json +516 -3
- package/dist/locales/es.json +517 -4
- package/dist/locales/fr.json +517 -4
- package/dist/locales/hi.json +517 -4
- package/dist/locales/it.json +517 -4
- package/dist/locales/ja.json +517 -4
- package/dist/locales/nl.json +517 -4
- package/dist/locales/pl.json +517 -4
- package/dist/locales/pt.json +517 -4
- package/dist/locales/ro.json +517 -4
- package/dist/locales/ru.json +516 -3
- package/dist/locales/sq.json +517 -4
- package/dist/locales/sv.json +517 -4
- package/dist/locales/tr.json +517 -4
- package/dist/locales/zh.json +517 -4
- package/dist/patterns/calendar/calendar-workspace.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar-workspace.model.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.journey.d.ts +4 -0
- package/dist/patterns/calendar/calendar.journey.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.sheets.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.surface.d.ts +15 -1
- package/dist/patterns/calendar/calendar.surface.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.types.d.ts +4 -0
- package/dist/patterns/calendar/calendar.types.d.ts.map +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/check-in-documents/check-in-documents.d.ts +61 -0
- package/dist/patterns/check-in-documents/check-in-documents.d.ts.map +1 -0
- package/dist/patterns/check-in-documents/check-in-signable-document.d.ts +32 -0
- package/dist/patterns/check-in-documents/check-in-signable-document.d.ts.map +1 -0
- package/dist/patterns/check-in-documents/index.d.ts +4 -0
- package/dist/patterns/check-in-documents/index.d.ts.map +1 -0
- package/dist/patterns/check-in-documents/index.js +5 -0
- package/dist/patterns/check-in-documents/index.js.map +1 -0
- package/dist/patterns/error-page/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.d.ts +4 -0
- package/dist/patterns/patient-account-settings/index.d.ts.map +1 -0
- package/dist/patterns/patient-account-settings/index.js +5 -0
- package/dist/patterns/patient-account-settings/index.js.map +1 -0
- package/dist/patterns/patient-account-settings/patient-account-settings-panels.d.ts +36 -0
- package/dist/patterns/patient-account-settings/patient-account-settings-panels.d.ts.map +1 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.d.ts +94 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.d.ts.map +1 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.types.d.ts +91 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.types.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/index.d.ts +20 -0
- package/dist/patterns/patient-check-in/index.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/index.js +13 -0
- package/dist/patterns/patient-check-in/index.js.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-changed.d.ts +33 -0
- package/dist/patterns/patient-check-in/patient-check-in-changed.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-connection-notice.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-connection-notice.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-done.d.ts +25 -0
- package/dist/patterns/patient-check-in/patient-check-in-done.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-entry.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-entry.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub-empty.d.ts +23 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub-empty.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub.d.ts +61 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-personal-data.d.ts +73 -0
- package/dist/patterns/patient-check-in/patient-check-in-personal-data.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-privacy.d.ts +9 -0
- package/dist/patterns/patient-check-in/patient-check-in-privacy.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-resume.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-resume.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-shell.d.ts +60 -0
- package/dist/patterns/patient-check-in/patient-check-in-shell.d.ts.map +1 -0
- package/dist/patterns/patient-check-in/patient-check-in-types.d.ts +92 -0
- package/dist/patterns/patient-check-in/patient-check-in-types.d.ts.map +1 -0
- package/dist/patterns/patient-portal/index.d.ts +12 -0
- package/dist/patterns/patient-portal/index.d.ts.map +1 -0
- package/dist/patterns/patient-portal/index.js +13 -0
- package/dist/patterns/patient-portal/index.js.map +1 -0
- package/dist/patterns/patient-portal/portal-appointments.d.ts +70 -0
- package/dist/patterns/patient-portal/portal-appointments.d.ts.map +1 -0
- package/dist/patterns/patient-portal/portal-details.d.ts +148 -0
- package/dist/patterns/patient-portal/portal-details.d.ts.map +1 -0
- package/dist/patterns/patient-portal/portal-documents.d.ts +74 -0
- package/dist/patterns/patient-portal/portal-documents.d.ts.map +1 -0
- package/dist/patterns/patient-portal/portal-format.d.ts +14 -0
- package/dist/patterns/patient-portal/portal-format.d.ts.map +1 -0
- package/dist/patterns/patient-portal/portal-home.d.ts +71 -0
- package/dist/patterns/patient-portal/portal-home.d.ts.map +1 -0
- package/dist/patterns/patient-portal/portal-parts.d.ts +107 -0
- package/dist/patterns/patient-portal/portal-parts.d.ts.map +1 -0
- package/dist/patterns/patient-portal/portal-shell.d.ts +84 -0
- package/dist/patterns/patient-portal/portal-shell.d.ts.map +1 -0
- package/dist/patterns/patient-portal/portal-types.d.ts +157 -0
- package/dist/patterns/patient-portal/portal-types.d.ts.map +1 -0
- package/dist/patterns/patient-sign-in/index.d.ts +7 -0
- package/dist/patterns/patient-sign-in/index.d.ts.map +1 -0
- package/dist/patterns/patient-sign-in/index.js +15 -0
- package/dist/patterns/patient-sign-in/index.js.map +1 -0
- package/dist/patterns/patient-sign-in/patient-card.d.ts +74 -0
- package/dist/patterns/patient-sign-in/patient-card.d.ts.map +1 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-email.d.ts +109 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-email.d.ts.map +1 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-pin.d.ts +157 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-pin.d.ts.map +1 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-steps.d.ts +143 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-steps.d.ts.map +1 -0
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signing/index.d.ts +25 -0
- package/dist/patterns/signing/index.d.ts.map +1 -0
- package/dist/patterns/signing/index.js +16 -0
- package/dist/patterns/signing/index.js.map +1 -0
- package/dist/patterns/signing/multi-field-signer.d.ts +117 -0
- package/dist/patterns/signing/multi-field-signer.d.ts.map +1 -0
- package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
- package/dist/patterns/signing/signing-awaiting-screen.d.ts.map +1 -0
- package/dist/patterns/signing/signing-chrome.d.ts +30 -0
- package/dist/patterns/signing/signing-chrome.d.ts.map +1 -0
- package/dist/patterns/signing/signing-document-screen.d.ts +87 -0
- package/dist/patterns/signing/signing-document-screen.d.ts.map +1 -0
- package/dist/patterns/signing/signing-end-screen.d.ts +27 -0
- package/dist/patterns/signing/signing-end-screen.d.ts.map +1 -0
- package/dist/patterns/signing/signing-finished-screen.d.ts +34 -0
- package/dist/patterns/signing/signing-finished-screen.d.ts.map +1 -0
- package/dist/patterns/signing/signing-footer.d.ts +56 -0
- package/dist/patterns/signing/signing-footer.d.ts.map +1 -0
- package/dist/patterns/signing/signing-handoff-screen.d.ts +37 -0
- package/dist/patterns/signing/signing-handoff-screen.d.ts.map +1 -0
- package/dist/patterns/signing/signing-message-dialog.d.ts +29 -0
- package/dist/patterns/signing/signing-message-dialog.d.ts.map +1 -0
- package/dist/patterns/signing/signing-progress-chip.d.ts +27 -0
- package/dist/patterns/signing/signing-progress-chip.d.ts.map +1 -0
- package/dist/patterns/signing/signing-roster.d.ts +44 -0
- package/dist/patterns/signing/signing-roster.d.ts.map +1 -0
- package/dist/patterns/signing/signing-staff-id-confirmation.d.ts +49 -0
- package/dist/patterns/signing/signing-staff-id-confirmation.d.ts.map +1 -0
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +49 -1
- package/dist/_chunks/appointment-card-OAOur8lH.js +0 -434
- package/dist/_chunks/appointment-card-OAOur8lH.js.map +0 -1
- package/dist/_chunks/appointment-tray-DSFqO5Rm.js +0 -193
- package/dist/_chunks/appointment-tray-DSFqO5Rm.js.map +0 -1
- package/dist/_chunks/calendar-appointment-editor-dialog-WW6V1SGh.js +0 -13663
- package/dist/_chunks/calendar-appointment-editor-dialog-WW6V1SGh.js.map +0 -1
- package/dist/_chunks/document-preview-_kQ9QvZV.js +0 -291
- package/dist/_chunks/document-preview-_kQ9QvZV.js.map +0 -1
- package/dist/_chunks/error-page-B0fGNTRB.js.map +0 -1
- package/dist/_chunks/finished-terminal-FR8uc_Ws.js +0 -122
- package/dist/_chunks/finished-terminal-FR8uc_Ws.js.map +0 -1
- package/dist/_chunks/is-safe-url-DkETxeHz.js +0 -7
- package/dist/_chunks/is-safe-url-DkETxeHz.js.map +0 -1
- package/dist/_chunks/otp-input-gV1446Dw.js +0 -301
- package/dist/_chunks/otp-input-gV1446Dw.js.map +0 -1
- package/dist/_chunks/pdf-viewer-BnBKdx0y.js.map +0 -1
- package/dist/_chunks/session-countdown-C4tzbJVc.js +0 -223
- package/dist/_chunks/session-countdown-C4tzbJVc.js.map +0 -1
- package/dist/_chunks/signature-field-DjabvRZm.js.map +0 -1
- package/dist/_chunks/signature-status-chip-pIoQjvH8.js.map +0 -1
- package/dist/_chunks/use-zoom-drilldown-qCX34w9I.js +0 -210
- package/dist/_chunks/use-zoom-drilldown-qCX34w9I.js.map +0 -1
- package/dist/_chunks/user-x-DYszNtIg.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as o, jsxs as K, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as o, jsxs as K, Fragment as Se } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as qe, useId as Be, useMemo as ze, useState as w, useEffect as M, useRef as O, useCallback as H, useImperativeHandle as He } from "react";
|
|
3
3
|
import * as he from "pdfjs-dist/legacy/build/pdf.min.mjs";
|
|
4
|
-
import { c as
|
|
4
|
+
import { c as Z } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as me } from "react-i18next";
|
|
6
6
|
import * as ne from "@radix-ui/react-popover";
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import { S as
|
|
10
|
-
import { A as
|
|
11
|
-
import { u as
|
|
12
|
-
import { X as
|
|
13
|
-
import { C as
|
|
14
|
-
import { C as
|
|
15
|
-
import { Z as
|
|
16
|
-
import { S as
|
|
17
|
-
import { P as
|
|
18
|
-
const
|
|
7
|
+
import { u as We, f as Qe } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
8
|
+
import Oe from "pdfjs-dist/legacy/build/pdf.worker.min.mjs?url";
|
|
9
|
+
import { S as Ue } from "./spinner-CoflYlEx.js";
|
|
10
|
+
import { A as Me } from "./alert-C4WKViaS.js";
|
|
11
|
+
import { u as Je } from "./registry-DvAUVLHh.js";
|
|
12
|
+
import { X as Xe } from "./x-B5YnXwCz.js";
|
|
13
|
+
import { C as $e } from "./chevron-left-B8cOyH-V.js";
|
|
14
|
+
import { C as Ge } from "./chevron-right-I9AeSxH2.js";
|
|
15
|
+
import { Z as Ye, a as et } from "./zoom-out-Dnif4kJx.js";
|
|
16
|
+
import { S as tt } from "./search-QbWPlY5f.js";
|
|
17
|
+
import { P as rt } from "./printer-rkK0T1gi.js";
|
|
18
|
+
const at = {
|
|
19
19
|
id: "pdf-viewer",
|
|
20
20
|
// `paginate` (go_to_page), `set_value` (zoom preset — ephemeral view state),
|
|
21
21
|
// `filter` (in-document search/highlight). Zoom maps to `set_value` rather
|
|
@@ -33,31 +33,31 @@ const Ye = {
|
|
|
33
33
|
type: "'loading' | 'ready' | 'error'",
|
|
34
34
|
descriptionKey: "ui.agent.pdfViewer.state.status",
|
|
35
35
|
description: "Whether the document has loaded. Read this first — every action is a silent no-op while the viewer is loading or has failed.",
|
|
36
|
-
read: (
|
|
36
|
+
read: (a) => a.getStatus()
|
|
37
37
|
},
|
|
38
38
|
currentPage: {
|
|
39
39
|
type: "number",
|
|
40
40
|
descriptionKey: "ui.agent.pdfViewer.state.currentPage",
|
|
41
41
|
description: "1-indexed page currently in view. The read-back for `go_to_page`, which clamps out-of-range requests silently.",
|
|
42
|
-
read: (
|
|
42
|
+
read: (a) => a.getCurrentPage()
|
|
43
43
|
},
|
|
44
44
|
pageCount: {
|
|
45
45
|
type: "number",
|
|
46
46
|
descriptionKey: "ui.agent.pdfViewer.state.pageCount",
|
|
47
47
|
description: "Number of pages in the loaded document, or 0 before it loads. Range-check against this before calling `go_to_page` rather than discovering the clamp after the fact.",
|
|
48
|
-
read: (
|
|
48
|
+
read: (a) => a.getPageCount()
|
|
49
49
|
},
|
|
50
50
|
zoom: {
|
|
51
51
|
type: "'fit-width' | 'fit-page' | 'actual-size' | number",
|
|
52
52
|
descriptionKey: "ui.agent.pdfViewer.state.zoom",
|
|
53
53
|
description: "Zoom preset or numeric scale factor currently applied. The read-back for `set_zoom`.",
|
|
54
|
-
read: (
|
|
54
|
+
read: (a) => a.getZoom()
|
|
55
55
|
},
|
|
56
56
|
searchMatchCount: {
|
|
57
57
|
type: "number",
|
|
58
58
|
descriptionKey: "ui.agent.pdfViewer.state.searchMatchCount",
|
|
59
59
|
description: "Number of matches for the active search query — 0 when nothing matched or no search is running. A count only; the matched text is never exposed.",
|
|
60
|
-
read: (
|
|
60
|
+
read: (a) => a.getSearchMatchCount()
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
actions: {
|
|
@@ -83,8 +83,8 @@ const Ye = {
|
|
|
83
83
|
examples: [{ args: { page: 2 } }],
|
|
84
84
|
descriptionKey: "ui.agent.pdfViewer.actions.goToPage",
|
|
85
85
|
description: 'Navigate to a specific 1-indexed page. Check `pageCount` first — an out-of-range page is clamped silently, and the call is a no-op until `status` is "ready".',
|
|
86
|
-
invoke: (
|
|
87
|
-
|
|
86
|
+
invoke: (a, t) => {
|
|
87
|
+
a.goToPage(t.page);
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
set_zoom: {
|
|
@@ -107,8 +107,8 @@ const Ye = {
|
|
|
107
107
|
examples: [{ args: { zoom: "fit-width" } }, { args: { zoom: 1.5 } }],
|
|
108
108
|
descriptionKey: "ui.agent.pdfViewer.actions.setZoom",
|
|
109
109
|
description: "Apply a zoom preset or numeric scale factor.",
|
|
110
|
-
invoke: (
|
|
111
|
-
|
|
110
|
+
invoke: (a, t) => {
|
|
111
|
+
a.setZoom(t.zoom);
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
search: {
|
|
@@ -128,21 +128,25 @@ const Ye = {
|
|
|
128
128
|
examples: [{ args: { query: "consent" } }],
|
|
129
129
|
descriptionKey: "ui.agent.pdfViewer.actions.search",
|
|
130
130
|
description: "Search the document for the given query and highlight matches. Read the `searchMatchCount` slot afterwards — the action itself returns nothing.",
|
|
131
|
-
invoke: (
|
|
132
|
-
|
|
131
|
+
invoke: (a, t) => {
|
|
132
|
+
a.search(t.query);
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
print: {
|
|
136
136
|
safety: "read",
|
|
137
137
|
descriptionKey: "ui.agent.pdfViewer.actions.print",
|
|
138
138
|
description: "Open the browser print dialog for the document.",
|
|
139
|
-
invoke: (
|
|
140
|
-
|
|
139
|
+
invoke: (a) => {
|
|
140
|
+
a.print();
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
144
|
domHooks: {
|
|
145
|
-
root: {
|
|
145
|
+
root: {
|
|
146
|
+
attr: "data-component",
|
|
147
|
+
value: "pdf-viewer",
|
|
148
|
+
description: "Marks the PDFViewer. Each toolbar button carries a data-action: previous-page, next-page, zoom-out, zoom-in, open-search, close-search (the find bar) and print. go_to_page, set_zoom and print on this adapter do the same work through the handle."
|
|
149
|
+
},
|
|
146
150
|
instanceId: {
|
|
147
151
|
attr: "data-component-id",
|
|
148
152
|
sourceProp: "id",
|
|
@@ -150,8 +154,8 @@ const Ye = {
|
|
|
150
154
|
}
|
|
151
155
|
}
|
|
152
156
|
};
|
|
153
|
-
he.GlobalWorkerOptions.workerSrc =
|
|
154
|
-
const
|
|
157
|
+
he.GlobalWorkerOptions.workerSrc = Oe;
|
|
158
|
+
const Te = Z(
|
|
155
159
|
[
|
|
156
160
|
"ds:pdf-viewer-alfadocs ds:flex ds:flex-col",
|
|
157
161
|
// Allow the viewer to shrink below its content's intrinsic width when it
|
|
@@ -168,7 +172,7 @@ const ze = Q(
|
|
|
168
172
|
"ds:focus-visible:outline-[var(--ring)]",
|
|
169
173
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
170
174
|
].join(" ")
|
|
171
|
-
),
|
|
175
|
+
), nt = Z(
|
|
172
176
|
[
|
|
173
177
|
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
174
178
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
@@ -176,7 +180,7 @@ const ze = Q(
|
|
|
176
180
|
"ds:bg-[var(--background)]",
|
|
177
181
|
"ds:border-b ds:border-[color:var(--border)]"
|
|
178
182
|
].join(" ")
|
|
179
|
-
),
|
|
183
|
+
), Ne = Z(
|
|
180
184
|
[
|
|
181
185
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
182
186
|
"ds:[min-block-size:var(--min-target-size)]",
|
|
@@ -193,7 +197,7 @@ const ze = Q(
|
|
|
193
197
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
194
198
|
"ds:aria-disabled:opacity-[var(--opacity-50)] ds:aria-disabled:cursor-not-allowed"
|
|
195
199
|
].join(" ")
|
|
196
|
-
),
|
|
200
|
+
), ot = Z(
|
|
197
201
|
[
|
|
198
202
|
"ds:[min-block-size:var(--min-target-size)]",
|
|
199
203
|
"ds:w-[4rem] ds:text-center",
|
|
@@ -205,7 +209,7 @@ const ze = Q(
|
|
|
205
209
|
"ds:focus-visible:outline-[var(--ring)]",
|
|
206
210
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
207
211
|
].join(" ")
|
|
208
|
-
),
|
|
212
|
+
), st = Z(
|
|
209
213
|
[
|
|
210
214
|
"ds:[min-block-size:var(--min-target-size)]",
|
|
211
215
|
"ds:w-[16rem] ds:max-w-full ds:min-w-0 ds:text-start",
|
|
@@ -217,7 +221,7 @@ const ze = Q(
|
|
|
217
221
|
"ds:focus-visible:outline-[var(--ring)]",
|
|
218
222
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
219
223
|
].join(" ")
|
|
220
|
-
),
|
|
224
|
+
), it = Z(
|
|
221
225
|
[
|
|
222
226
|
"ds:[min-block-size:var(--min-target-size)]",
|
|
223
227
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
@@ -228,7 +232,7 @@ const ze = Q(
|
|
|
228
232
|
"ds:focus-visible:outline-[var(--ring)]",
|
|
229
233
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
230
234
|
].join(" ")
|
|
231
|
-
),
|
|
235
|
+
), dt = Z(
|
|
232
236
|
[
|
|
233
237
|
"ds:relative ds:flex ds:flex-col ds:items-center",
|
|
234
238
|
"ds:gap-[var(--spacing-md)]",
|
|
@@ -249,14 +253,28 @@ const ze = Q(
|
|
|
249
253
|
"ds:min-h-[30rem]",
|
|
250
254
|
"ds:max-h-[80vh]"
|
|
251
255
|
].join(" ")
|
|
252
|
-
),
|
|
256
|
+
), ct = Z(
|
|
253
257
|
[
|
|
254
258
|
"ds:relative ds:flex ds:items-center ds:justify-center",
|
|
255
259
|
"ds:bg-[var(--background)]",
|
|
256
260
|
"ds:shadow-[var(--shadow-md)]",
|
|
257
261
|
"ds:rounded-[var(--radius-sm)]"
|
|
258
262
|
].join(" ")
|
|
259
|
-
),
|
|
263
|
+
), lt = Z(
|
|
264
|
+
[
|
|
265
|
+
"theme-light",
|
|
266
|
+
"ds:absolute ds:inset-0 ds:pointer-events-auto",
|
|
267
|
+
// Inherited text reads the light ink, not the ink the outer theme
|
|
268
|
+
// resolved on the viewer.
|
|
269
|
+
"ds:text-[var(--foreground)]"
|
|
270
|
+
].join(" "),
|
|
271
|
+
{
|
|
272
|
+
variants: {
|
|
273
|
+
accessible: { true: "theme-accessible", false: "" }
|
|
274
|
+
},
|
|
275
|
+
defaultVariants: { accessible: !1 }
|
|
276
|
+
}
|
|
277
|
+
), ut = [
|
|
260
278
|
"fit-width",
|
|
261
279
|
"fit-page",
|
|
262
280
|
"actual-size",
|
|
@@ -267,138 +285,155 @@ const ze = Q(
|
|
|
267
285
|
1.5,
|
|
268
286
|
2
|
|
269
287
|
];
|
|
270
|
-
function te(
|
|
271
|
-
return typeof
|
|
288
|
+
function te(a) {
|
|
289
|
+
return typeof a == "number";
|
|
290
|
+
}
|
|
291
|
+
function pt(a) {
|
|
292
|
+
return window.getComputedStyle(a).getPropertyValue("--accessible-on").trim() === "1";
|
|
272
293
|
}
|
|
273
|
-
function
|
|
274
|
-
if (te(
|
|
275
|
-
if (
|
|
276
|
-
const f = window.getComputedStyle(
|
|
277
|
-
return
|
|
294
|
+
function Ie(a, t, y) {
|
|
295
|
+
if (te(a)) return a;
|
|
296
|
+
if (a === "actual-size" || !y) return 1;
|
|
297
|
+
const f = window.getComputedStyle(y), g = parseFloat(f.paddingInlineStart || "0") + parseFloat(f.paddingInlineEnd || "0"), h = parseFloat(f.paddingBlockStart || "0") + parseFloat(f.paddingBlockEnd || "0"), k = Math.max(y.clientWidth - g, 1), N = Math.max(y.clientHeight - h, 1), b = t.width, D = t.height;
|
|
298
|
+
return a === "fit-width" ? k / b : Math.min(k / b, N / D);
|
|
278
299
|
}
|
|
279
|
-
const
|
|
300
|
+
const ft = qe(
|
|
280
301
|
({
|
|
281
|
-
id:
|
|
302
|
+
id: a,
|
|
282
303
|
src: t,
|
|
283
|
-
initialPage:
|
|
304
|
+
initialPage: y = 1,
|
|
284
305
|
initialZoom: f = "fit-width",
|
|
285
306
|
pageRotation: g,
|
|
286
307
|
renderPageOverlay: h,
|
|
287
|
-
onPageChange:
|
|
288
|
-
onLoadComplete:
|
|
289
|
-
onError:
|
|
290
|
-
toolbar:
|
|
291
|
-
toolbarVariant:
|
|
292
|
-
ariaLabel:
|
|
293
|
-
className:
|
|
294
|
-
},
|
|
295
|
-
const { t: u } = me("ui"),
|
|
296
|
-
() => `pdf-${
|
|
297
|
-
[
|
|
298
|
-
), [
|
|
299
|
-
|
|
308
|
+
onPageChange: k,
|
|
309
|
+
onLoadComplete: N,
|
|
310
|
+
onError: b,
|
|
311
|
+
toolbar: D = !0,
|
|
312
|
+
toolbarVariant: S = "full",
|
|
313
|
+
ariaLabel: j,
|
|
314
|
+
className: T
|
|
315
|
+
}, m) => {
|
|
316
|
+
const { t: u } = me("ui"), z = Be(), E = ze(
|
|
317
|
+
() => `pdf-${z.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
318
|
+
[z]
|
|
319
|
+
), [x, W] = w(!1), [p, Q] = w(!1);
|
|
320
|
+
M(() => {
|
|
300
321
|
if (typeof document > "u") return;
|
|
301
|
-
|
|
302
|
-
const e = window.matchMedia("(prefers-reduced-motion: reduce)"),
|
|
303
|
-
return
|
|
322
|
+
W(document.documentElement.dir === "rtl");
|
|
323
|
+
const e = window.matchMedia("(prefers-reduced-motion: reduce)"), r = () => Q(e.matches);
|
|
324
|
+
return r(), e.addEventListener("change", r), () => e.removeEventListener("change", r);
|
|
304
325
|
}, []);
|
|
305
|
-
const [s,
|
|
306
|
-
|
|
307
|
-
oe.current =
|
|
308
|
-
}, [
|
|
309
|
-
const ue =
|
|
310
|
-
|
|
326
|
+
const [s, U] = w(null), [I, l] = w(null), [c, R] = w(y), [P, C] = w(f), [G, L] = w({ start: Math.max(1, y - 1), end: y + 1 }), [q, J] = w(""), [A, n] = w(!1), [v, re] = w(""), [ve, De] = w({ current: 0, total: 0 }), oe = O(k), se = O(N), ie = O(b);
|
|
327
|
+
M(() => {
|
|
328
|
+
oe.current = k, se.current = N, ie.current = b;
|
|
329
|
+
}, [k, N, b]);
|
|
330
|
+
const ue = O(null);
|
|
331
|
+
M(() => {
|
|
311
332
|
ue.current = s;
|
|
312
|
-
}, [s]),
|
|
333
|
+
}, [s]), M(() => {
|
|
313
334
|
let e = !1;
|
|
314
|
-
|
|
315
|
-
const
|
|
335
|
+
U(null), l(null);
|
|
336
|
+
const r = {
|
|
316
337
|
disableJavaScript: !0,
|
|
317
338
|
isEvalSupported: !1
|
|
318
|
-
},
|
|
319
|
-
typeof t == "string" ? { url: t, ...
|
|
339
|
+
}, d = he.getDocument(
|
|
340
|
+
typeof t == "string" ? { url: t, ...r } : t instanceof Uint8Array ? { data: t, ...r } : { data: new Uint8Array(t), ...r }
|
|
320
341
|
);
|
|
321
|
-
return
|
|
322
|
-
async (
|
|
342
|
+
return d.promise.then(
|
|
343
|
+
async (i) => {
|
|
323
344
|
var X;
|
|
324
345
|
if (e) return;
|
|
325
|
-
let
|
|
346
|
+
let V;
|
|
326
347
|
try {
|
|
327
|
-
const $ = await
|
|
328
|
-
|
|
348
|
+
const $ = await i.getMetadata(), _ = $ == null ? void 0 : $.info;
|
|
349
|
+
V = _ == null ? void 0 : _.Title;
|
|
329
350
|
} catch {
|
|
330
|
-
|
|
351
|
+
V = void 0;
|
|
331
352
|
}
|
|
332
353
|
if (e) {
|
|
333
354
|
try {
|
|
334
|
-
await
|
|
355
|
+
await i.destroy();
|
|
335
356
|
} catch {
|
|
336
357
|
}
|
|
337
358
|
return;
|
|
338
359
|
}
|
|
339
|
-
const
|
|
340
|
-
|
|
360
|
+
const B = { doc: i, numPages: i.numPages, title: V };
|
|
361
|
+
U(B), (X = se.current) == null || X.call(se, { numPages: i.numPages, title: V });
|
|
341
362
|
},
|
|
342
|
-
(
|
|
343
|
-
var
|
|
363
|
+
(i) => {
|
|
364
|
+
var B;
|
|
344
365
|
if (e) return;
|
|
345
|
-
const
|
|
346
|
-
|
|
366
|
+
const V = i instanceof Error ? i : new Error(String(i));
|
|
367
|
+
l(V), (B = ie.current) == null || B.call(ie, V);
|
|
347
368
|
}
|
|
348
369
|
), () => {
|
|
349
|
-
e = !0,
|
|
350
|
-
const
|
|
351
|
-
if (
|
|
370
|
+
e = !0, d.destroy();
|
|
371
|
+
const i = ue.current;
|
|
372
|
+
if (i) {
|
|
352
373
|
try {
|
|
353
|
-
|
|
374
|
+
i.doc.destroy();
|
|
354
375
|
} catch {
|
|
355
376
|
}
|
|
356
377
|
ue.current = null;
|
|
357
378
|
}
|
|
358
379
|
};
|
|
359
|
-
}, [t])
|
|
380
|
+
}, [t]);
|
|
381
|
+
const be = O(null), [Ve, je] = w(!1), we = I !== null;
|
|
382
|
+
M(() => {
|
|
383
|
+
const e = be.current;
|
|
384
|
+
if (we || !e) return;
|
|
385
|
+
const r = () => je(pt(e));
|
|
386
|
+
if (r(), typeof MutationObserver > "u") return;
|
|
387
|
+
const d = new MutationObserver(r);
|
|
388
|
+
for (let i = e; i; i = i.parentElement)
|
|
389
|
+
d.observe(i, {
|
|
390
|
+
attributes: !0,
|
|
391
|
+
attributeFilter: ["class"]
|
|
392
|
+
});
|
|
393
|
+
return () => d.disconnect();
|
|
394
|
+
}, [we]), M(() => {
|
|
360
395
|
var e;
|
|
361
|
-
s && (
|
|
362
|
-
u("pdf.pageOf", { current:
|
|
363
|
-
), (e = oe.current) == null || e.call(oe,
|
|
364
|
-
}, [
|
|
365
|
-
const de =
|
|
396
|
+
s && (J(
|
|
397
|
+
u("pdf.pageOf", { current: c, total: s.numPages })
|
|
398
|
+
), (e = oe.current) == null || e.call(oe, c));
|
|
399
|
+
}, [c, s, u]);
|
|
400
|
+
const de = O(null), pe = O([]), F = H(
|
|
366
401
|
(e) => {
|
|
367
402
|
if (!s) return;
|
|
368
|
-
const
|
|
369
|
-
|
|
370
|
-
const
|
|
371
|
-
|
|
403
|
+
const r = Math.max(1, Math.min(e, s.numPages));
|
|
404
|
+
R(r);
|
|
405
|
+
const d = pe.current[r - 1];
|
|
406
|
+
d && d.scrollIntoView({
|
|
372
407
|
behavior: "auto",
|
|
373
408
|
block: "start"
|
|
374
409
|
});
|
|
375
410
|
},
|
|
376
|
-
[s,
|
|
377
|
-
),
|
|
378
|
-
|
|
379
|
-
}, []), ae =
|
|
411
|
+
[s, p]
|
|
412
|
+
), ye = H((e) => {
|
|
413
|
+
C(e);
|
|
414
|
+
}, []), ae = H(() => {
|
|
380
415
|
typeof window < "u" && window.print();
|
|
381
|
-
}, []),
|
|
382
|
-
re(e),
|
|
383
|
-
}, []), Y =
|
|
384
|
-
currentPage:
|
|
416
|
+
}, []), xe = H((e) => {
|
|
417
|
+
re(e), n(e.length > 0);
|
|
418
|
+
}, []), Y = O({
|
|
419
|
+
currentPage: c,
|
|
385
420
|
pageCount: 0,
|
|
386
|
-
zoom:
|
|
421
|
+
zoom: P,
|
|
387
422
|
status: "loading",
|
|
388
423
|
searchMatchCount: 0
|
|
389
424
|
});
|
|
390
425
|
Y.current = {
|
|
391
|
-
currentPage:
|
|
426
|
+
currentPage: c,
|
|
392
427
|
pageCount: (s == null ? void 0 : s.numPages) ?? 0,
|
|
393
|
-
zoom:
|
|
394
|
-
status:
|
|
428
|
+
zoom: P,
|
|
429
|
+
status: I ? "error" : s ? "ready" : "loading",
|
|
395
430
|
searchMatchCount: ve.total
|
|
396
431
|
};
|
|
397
|
-
const fe =
|
|
432
|
+
const fe = ze(
|
|
398
433
|
() => ({
|
|
399
434
|
goToPage: F,
|
|
400
|
-
setZoom:
|
|
401
|
-
search:
|
|
435
|
+
setZoom: ye,
|
|
436
|
+
search: xe,
|
|
402
437
|
print: ae,
|
|
403
438
|
getCurrentPage: () => Y.current.currentPage,
|
|
404
439
|
getPageCount: () => Y.current.pageCount,
|
|
@@ -406,19 +441,19 @@ const it = Ke(
|
|
|
406
441
|
getStatus: () => Y.current.status,
|
|
407
442
|
getSearchMatchCount: () => Y.current.searchMatchCount
|
|
408
443
|
}),
|
|
409
|
-
[F,
|
|
444
|
+
[F, ye, xe, ae]
|
|
410
445
|
);
|
|
411
|
-
|
|
412
|
-
const
|
|
446
|
+
He(m, () => fe, [fe]), Je(at, fe, a);
|
|
447
|
+
const Ee = H(
|
|
413
448
|
(e) => {
|
|
414
449
|
if (!s) return;
|
|
415
|
-
const
|
|
450
|
+
const r = e.metaKey || e.ctrlKey;
|
|
416
451
|
if (e.key === "PageDown") {
|
|
417
|
-
e.preventDefault(), F(
|
|
452
|
+
e.preventDefault(), F(c + 1);
|
|
418
453
|
return;
|
|
419
454
|
}
|
|
420
455
|
if (e.key === "PageUp") {
|
|
421
|
-
e.preventDefault(), F(
|
|
456
|
+
e.preventDefault(), F(c - 1);
|
|
422
457
|
return;
|
|
423
458
|
}
|
|
424
459
|
if (e.key === "Home") {
|
|
@@ -429,90 +464,90 @@ const it = Ke(
|
|
|
429
464
|
e.preventDefault(), F(s.numPages);
|
|
430
465
|
return;
|
|
431
466
|
}
|
|
432
|
-
if (
|
|
433
|
-
e.preventDefault(),
|
|
467
|
+
if (r && e.key.toLowerCase() === "f") {
|
|
468
|
+
e.preventDefault(), n(!0);
|
|
434
469
|
return;
|
|
435
470
|
}
|
|
436
|
-
if (
|
|
437
|
-
e.preventDefault(),
|
|
471
|
+
if (r && (e.key === "+" || e.key === "=")) {
|
|
472
|
+
e.preventDefault(), C((d) => te(d) ? Math.min(d * 1.25, 4) : 1.25);
|
|
438
473
|
return;
|
|
439
474
|
}
|
|
440
|
-
if (
|
|
441
|
-
e.preventDefault(),
|
|
442
|
-
(
|
|
475
|
+
if (r && e.key === "-") {
|
|
476
|
+
e.preventDefault(), C(
|
|
477
|
+
(d) => te(d) ? Math.max(d / 1.25, 0.25) : 0.75
|
|
443
478
|
);
|
|
444
479
|
return;
|
|
445
480
|
}
|
|
446
|
-
if (
|
|
447
|
-
e.preventDefault(),
|
|
481
|
+
if (r && e.key === "0") {
|
|
482
|
+
e.preventDefault(), C("fit-width");
|
|
448
483
|
return;
|
|
449
484
|
}
|
|
450
|
-
|
|
485
|
+
r && e.key.toLowerCase() === "p" && (e.preventDefault(), ae());
|
|
451
486
|
},
|
|
452
|
-
[
|
|
453
|
-
), ge =
|
|
454
|
-
|
|
455
|
-
ge.current =
|
|
456
|
-
}, [
|
|
487
|
+
[c, F, ae, s]
|
|
488
|
+
), ge = O(c);
|
|
489
|
+
M(() => {
|
|
490
|
+
ge.current = c;
|
|
491
|
+
}, [c]), M(() => {
|
|
457
492
|
if (!s) return;
|
|
458
493
|
const e = de.current;
|
|
459
494
|
if (!e) return;
|
|
460
|
-
const
|
|
461
|
-
(
|
|
462
|
-
for (const
|
|
463
|
-
const ee =
|
|
495
|
+
const r = /* @__PURE__ */ new Map(), d = new IntersectionObserver(
|
|
496
|
+
(i) => {
|
|
497
|
+
for (const _ of i) {
|
|
498
|
+
const ee = _.target.dataset.pageNumber;
|
|
464
499
|
if (!ee) continue;
|
|
465
|
-
const
|
|
466
|
-
|
|
500
|
+
const Le = Number(ee);
|
|
501
|
+
r.set(Le, _.intersectionRatio);
|
|
467
502
|
}
|
|
468
|
-
let
|
|
469
|
-
for (const [
|
|
470
|
-
ee >
|
|
471
|
-
|
|
503
|
+
let V = ge.current, B = 0, X = 1 / 0, $ = -1 / 0;
|
|
504
|
+
for (const [_, ee] of r.entries())
|
|
505
|
+
ee > B && (V = _, B = ee), ee > 0 && (X = Math.min(X, _), $ = Math.max($, _));
|
|
506
|
+
B > 0 && V !== ge.current && R(V), X !== 1 / 0 && L({
|
|
472
507
|
start: Math.max(1, X - 1),
|
|
473
508
|
end: Math.min(s.numPages, $ + 1)
|
|
474
509
|
});
|
|
475
510
|
},
|
|
476
511
|
{ root: e, threshold: [0, 0.25, 0.5, 0.75, 1] }
|
|
477
512
|
);
|
|
478
|
-
return pe.current.forEach((
|
|
479
|
-
|
|
480
|
-
}), () =>
|
|
513
|
+
return pe.current.forEach((i) => {
|
|
514
|
+
i && d.observe(i);
|
|
515
|
+
}), () => d.disconnect();
|
|
481
516
|
}, [s]);
|
|
482
|
-
const [
|
|
483
|
-
|
|
517
|
+
const [Fe, _e] = w(0);
|
|
518
|
+
M(() => {
|
|
484
519
|
const e = de.current;
|
|
485
520
|
if (!e || typeof ResizeObserver > "u") return;
|
|
486
|
-
const
|
|
487
|
-
(
|
|
521
|
+
const r = new ResizeObserver(() => {
|
|
522
|
+
(P === "fit-width" || P === "fit-page") && _e((d) => d + 1);
|
|
488
523
|
});
|
|
489
|
-
return
|
|
490
|
-
}, [
|
|
491
|
-
const
|
|
492
|
-
(e) => (
|
|
493
|
-
|
|
524
|
+
return r.observe(e), () => r.disconnect();
|
|
525
|
+
}, [P]);
|
|
526
|
+
const Pe = O([]), [ce, Ce] = w(0), Ke = H(
|
|
527
|
+
(e) => (r) => {
|
|
528
|
+
Pe.current[e] = r;
|
|
494
529
|
},
|
|
495
530
|
[]
|
|
496
|
-
),
|
|
497
|
-
const
|
|
498
|
-
|
|
499
|
-
}, []), le =
|
|
531
|
+
), ke = H((e) => {
|
|
532
|
+
const r = Pe.current[e];
|
|
533
|
+
r && r.focus();
|
|
534
|
+
}, []), le = S === "minimal" ? 2 : 8, Ze = H(
|
|
500
535
|
(e) => {
|
|
501
|
-
const
|
|
502
|
-
let
|
|
503
|
-
e.key ===
|
|
536
|
+
const r = x ? "ArrowLeft" : "ArrowRight", d = x ? "ArrowRight" : "ArrowLeft";
|
|
537
|
+
let i = null;
|
|
538
|
+
e.key === r ? i = (ce + 1) % le : e.key === d ? i = (ce - 1 + le) % le : e.key === "Home" ? i = 0 : e.key === "End" && (i = le - 1), i !== null && (e.preventDefault(), Ce(i), ke(i));
|
|
504
539
|
},
|
|
505
|
-
[
|
|
540
|
+
[ke, x, ce]
|
|
506
541
|
);
|
|
507
|
-
return
|
|
542
|
+
return I ? /* @__PURE__ */ o(
|
|
508
543
|
"div",
|
|
509
544
|
{
|
|
510
|
-
className: [
|
|
511
|
-
"aria-label":
|
|
512
|
-
children: /* @__PURE__ */ o("div", { className: "ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ o(
|
|
545
|
+
className: [Te(), T].filter(Boolean).join(" "),
|
|
546
|
+
"aria-label": j ?? u("pdf.error"),
|
|
547
|
+
children: /* @__PURE__ */ o("div", { className: "ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ o(Me, { variant: "error", live: "polite", children: /* @__PURE__ */ K(Me.Description, { children: [
|
|
513
548
|
u("pdf.error"),
|
|
514
549
|
": ",
|
|
515
|
-
|
|
550
|
+
I.message
|
|
516
551
|
] }) }) })
|
|
517
552
|
}
|
|
518
553
|
) : (
|
|
@@ -520,91 +555,93 @@ const it = Ke(
|
|
|
520
555
|
/* @__PURE__ */ K(
|
|
521
556
|
"div",
|
|
522
557
|
{
|
|
523
|
-
|
|
558
|
+
ref: be,
|
|
559
|
+
id: E,
|
|
524
560
|
role: "region",
|
|
525
|
-
"aria-label":
|
|
526
|
-
className: [
|
|
527
|
-
dir:
|
|
528
|
-
onKeyDown:
|
|
561
|
+
"aria-label": j ?? u("pdf.toolbarLabel"),
|
|
562
|
+
className: [Te(), T].filter(Boolean).join(" "),
|
|
563
|
+
dir: x ? "rtl" : void 0,
|
|
564
|
+
onKeyDown: Ee,
|
|
529
565
|
tabIndex: -1,
|
|
530
566
|
"data-component": "pdf-viewer",
|
|
531
|
-
"data-component-id":
|
|
532
|
-
"data-pdfjs-worker-src":
|
|
567
|
+
"data-component-id": a,
|
|
568
|
+
"data-pdfjs-worker-src": Oe,
|
|
533
569
|
children: [
|
|
534
|
-
|
|
535
|
-
|
|
570
|
+
D ? /* @__PURE__ */ o(
|
|
571
|
+
gt,
|
|
536
572
|
{
|
|
537
|
-
variant:
|
|
538
|
-
currentPage:
|
|
573
|
+
variant: S,
|
|
574
|
+
currentPage: c,
|
|
539
575
|
numPages: (s == null ? void 0 : s.numPages) ?? 0,
|
|
540
|
-
zoom:
|
|
541
|
-
onPrev: () => F(
|
|
542
|
-
onNext: () => F(
|
|
576
|
+
zoom: P,
|
|
577
|
+
onPrev: () => F(c - 1),
|
|
578
|
+
onNext: () => F(c + 1),
|
|
543
579
|
onJump: (e) => F(e),
|
|
544
580
|
onZoomIn: () => {
|
|
545
|
-
|
|
581
|
+
C(
|
|
546
582
|
(e) => te(e) ? Math.min(e * 1.25, 4) : 1.25
|
|
547
583
|
);
|
|
548
584
|
},
|
|
549
585
|
onZoomOut: () => {
|
|
550
|
-
|
|
586
|
+
C(
|
|
551
587
|
(e) => te(e) ? Math.max(e / 1.25, 0.25) : 0.75
|
|
552
588
|
);
|
|
553
589
|
},
|
|
554
|
-
onZoomPreset: (e) =>
|
|
555
|
-
onOpenSearch: () =>
|
|
590
|
+
onZoomPreset: (e) => C(e),
|
|
591
|
+
onOpenSearch: () => n(!0),
|
|
556
592
|
onPrint: ae,
|
|
557
|
-
searchOpen:
|
|
558
|
-
onSearchOpenChange:
|
|
559
|
-
searchQuery:
|
|
593
|
+
searchOpen: A,
|
|
594
|
+
onSearchOpenChange: n,
|
|
595
|
+
searchQuery: v,
|
|
560
596
|
onSearchQueryChange: (e) => {
|
|
561
597
|
re(e);
|
|
562
598
|
},
|
|
563
599
|
searchMatches: ve,
|
|
564
|
-
register:
|
|
600
|
+
register: Ke,
|
|
565
601
|
focusIndex: ce,
|
|
566
|
-
setFocusIndex:
|
|
567
|
-
onToolbarKeyDown:
|
|
568
|
-
isRtl:
|
|
602
|
+
setFocusIndex: Ce,
|
|
603
|
+
onToolbarKeyDown: Ze,
|
|
604
|
+
isRtl: x
|
|
569
605
|
}
|
|
570
606
|
) : null,
|
|
571
|
-
/* @__PURE__ */ o("div", { "aria-live": "polite", "aria-atomic": "true", className: "ds:sr-only", children:
|
|
607
|
+
/* @__PURE__ */ o("div", { "aria-live": "polite", "aria-atomic": "true", className: "ds:sr-only", children: q }),
|
|
572
608
|
/* @__PURE__ */ o(
|
|
573
609
|
"div",
|
|
574
610
|
{
|
|
575
611
|
ref: de,
|
|
576
|
-
className:
|
|
612
|
+
className: dt(),
|
|
577
613
|
"data-testid": "pdf-pages-container",
|
|
578
614
|
tabIndex: 0,
|
|
579
615
|
"aria-label": u("pdf.pagesRegionLabel"),
|
|
580
|
-
children: s ? Array.from({ length: s.numPages }, (e,
|
|
616
|
+
children: s ? Array.from({ length: s.numPages }, (e, r) => r + 1).map(
|
|
581
617
|
(e) => /* @__PURE__ */ o(
|
|
582
|
-
|
|
618
|
+
ht,
|
|
583
619
|
{
|
|
584
620
|
pageNumber: e,
|
|
585
621
|
totalPages: s.numPages,
|
|
586
622
|
doc: s.doc,
|
|
587
|
-
zoom:
|
|
623
|
+
zoom: P,
|
|
588
624
|
pageRotation: g,
|
|
589
625
|
renderPageOverlay: h,
|
|
626
|
+
overlayAccessible: Ve,
|
|
590
627
|
container: de.current,
|
|
591
|
-
resizeTick:
|
|
592
|
-
shouldRender: e >=
|
|
593
|
-
registerRef: (
|
|
594
|
-
pe.current[e - 1] =
|
|
628
|
+
resizeTick: Fe,
|
|
629
|
+
shouldRender: e >= G.start && e <= G.end,
|
|
630
|
+
registerRef: (r) => {
|
|
631
|
+
pe.current[e - 1] = r;
|
|
595
632
|
},
|
|
596
|
-
searchQuery:
|
|
597
|
-
onMatchCount: (
|
|
598
|
-
De((
|
|
599
|
-
current: Math.min(
|
|
600
|
-
total: Math.max(
|
|
633
|
+
searchQuery: v,
|
|
634
|
+
onMatchCount: (r) => {
|
|
635
|
+
De((d) => r === 0 && d.total === 0 ? d : {
|
|
636
|
+
current: Math.min(d.current || 1, r || 1),
|
|
637
|
+
total: Math.max(d.total, r)
|
|
601
638
|
});
|
|
602
639
|
}
|
|
603
640
|
},
|
|
604
641
|
e
|
|
605
642
|
)
|
|
606
643
|
) : /* @__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: [
|
|
607
|
-
/* @__PURE__ */ o(
|
|
644
|
+
/* @__PURE__ */ o(Ue, { variant: "pulse", size: "sm", label: u("pdf.loading") }),
|
|
608
645
|
/* @__PURE__ */ o("span", { children: u("pdf.loading") })
|
|
609
646
|
] })
|
|
610
647
|
}
|
|
@@ -615,63 +652,64 @@ const it = Ke(
|
|
|
615
652
|
);
|
|
616
653
|
}
|
|
617
654
|
);
|
|
618
|
-
|
|
619
|
-
function
|
|
655
|
+
ft.displayName = "PDFViewer";
|
|
656
|
+
function gt(a) {
|
|
620
657
|
const { t } = me("ui"), {
|
|
621
|
-
variant:
|
|
658
|
+
variant: y,
|
|
622
659
|
currentPage: f,
|
|
623
660
|
numPages: g,
|
|
624
661
|
zoom: h,
|
|
625
|
-
onPrev:
|
|
626
|
-
onNext:
|
|
627
|
-
onJump:
|
|
628
|
-
onZoomIn:
|
|
629
|
-
onZoomOut:
|
|
630
|
-
onZoomPreset:
|
|
631
|
-
onOpenSearch:
|
|
632
|
-
onPrint:
|
|
662
|
+
onPrev: k,
|
|
663
|
+
onNext: N,
|
|
664
|
+
onJump: b,
|
|
665
|
+
onZoomIn: D,
|
|
666
|
+
onZoomOut: S,
|
|
667
|
+
onZoomPreset: j,
|
|
668
|
+
onOpenSearch: T,
|
|
669
|
+
onPrint: m,
|
|
633
670
|
searchOpen: u,
|
|
634
|
-
onSearchOpenChange:
|
|
635
|
-
searchQuery:
|
|
636
|
-
onSearchQueryChange:
|
|
637
|
-
searchMatches:
|
|
638
|
-
register:
|
|
639
|
-
focusIndex:
|
|
671
|
+
onSearchOpenChange: z,
|
|
672
|
+
searchQuery: E,
|
|
673
|
+
onSearchQueryChange: x,
|
|
674
|
+
searchMatches: W,
|
|
675
|
+
register: p,
|
|
676
|
+
focusIndex: Q,
|
|
640
677
|
setFocusIndex: s,
|
|
641
|
-
onToolbarKeyDown:
|
|
642
|
-
} =
|
|
643
|
-
|
|
644
|
-
|
|
678
|
+
onToolbarKeyDown: U
|
|
679
|
+
} = a, I = y === "minimal", l = I ? 0 : 3, c = I ? 1 : 4, R = 5, [P, C] = w(String(f));
|
|
680
|
+
M(() => {
|
|
681
|
+
C(String(f));
|
|
645
682
|
}, [f]);
|
|
646
|
-
const
|
|
647
|
-
getAnchor:
|
|
648
|
-
onReturnToTrigger: () =>
|
|
649
|
-
}),
|
|
650
|
-
function
|
|
651
|
-
const
|
|
652
|
-
Number.isFinite(
|
|
683
|
+
const G = We(!0, {
|
|
684
|
+
getAnchor: Qe,
|
|
685
|
+
onReturnToTrigger: () => z(!1)
|
|
686
|
+
}), L = f <= 1, q = f >= g;
|
|
687
|
+
function J() {
|
|
688
|
+
const n = Number(P);
|
|
689
|
+
Number.isFinite(n) && n >= 1 ? b(Math.min(n, g)) : C(String(f));
|
|
653
690
|
}
|
|
654
|
-
function
|
|
691
|
+
function A(n) {
|
|
655
692
|
return /* @__PURE__ */ o(
|
|
656
693
|
"button",
|
|
657
694
|
{
|
|
658
695
|
type: "button",
|
|
659
|
-
ref:
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
"aria-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
696
|
+
ref: p(n.index),
|
|
697
|
+
"data-action": n.action,
|
|
698
|
+
tabIndex: n.index === Q ? 0 : -1,
|
|
699
|
+
onFocus: () => s(n.index),
|
|
700
|
+
onKeyDown: U,
|
|
701
|
+
"aria-label": n.label,
|
|
702
|
+
"aria-disabled": n.disabled || void 0,
|
|
703
|
+
title: n.label,
|
|
704
|
+
onClick: (v) => {
|
|
705
|
+
if (n.disabled) {
|
|
706
|
+
v.preventDefault();
|
|
669
707
|
return;
|
|
670
708
|
}
|
|
671
|
-
|
|
709
|
+
n.onActivate();
|
|
672
710
|
},
|
|
673
|
-
className:
|
|
674
|
-
children:
|
|
711
|
+
className: Ne(),
|
|
712
|
+
children: n.icon
|
|
675
713
|
}
|
|
676
714
|
);
|
|
677
715
|
}
|
|
@@ -680,29 +718,31 @@ function dt(n) {
|
|
|
680
718
|
{
|
|
681
719
|
role: "toolbar",
|
|
682
720
|
"aria-label": t("pdf.toolbarLabel"),
|
|
683
|
-
className:
|
|
721
|
+
className: nt(),
|
|
684
722
|
children: [
|
|
685
|
-
!
|
|
686
|
-
|
|
723
|
+
!I && /* @__PURE__ */ K(Se, { children: [
|
|
724
|
+
A({
|
|
687
725
|
index: 0,
|
|
726
|
+
action: "previous-page",
|
|
688
727
|
label: t("pdf.previousPage"),
|
|
689
|
-
disabled:
|
|
690
|
-
onActivate:
|
|
728
|
+
disabled: L,
|
|
729
|
+
onActivate: k,
|
|
691
730
|
icon: /* @__PURE__ */ o(
|
|
692
|
-
|
|
731
|
+
$e,
|
|
693
732
|
{
|
|
694
733
|
"aria-hidden": "true",
|
|
695
734
|
className: "ds:h-4 ds:w-4 ds:rtl:rotate-180"
|
|
696
735
|
}
|
|
697
736
|
)
|
|
698
737
|
}),
|
|
699
|
-
|
|
738
|
+
A({
|
|
700
739
|
index: 1,
|
|
740
|
+
action: "next-page",
|
|
701
741
|
label: t("pdf.nextPage"),
|
|
702
|
-
disabled:
|
|
703
|
-
onActivate:
|
|
742
|
+
disabled: q,
|
|
743
|
+
onActivate: N,
|
|
704
744
|
icon: /* @__PURE__ */ o(
|
|
705
|
-
|
|
745
|
+
Ge,
|
|
706
746
|
{
|
|
707
747
|
"aria-hidden": "true",
|
|
708
748
|
className: "ds:h-4 ds:w-4 ds:rtl:rotate-180"
|
|
@@ -715,17 +755,17 @@ function dt(n) {
|
|
|
715
755
|
type: "number",
|
|
716
756
|
min: 1,
|
|
717
757
|
max: Math.max(g, 1),
|
|
718
|
-
value:
|
|
719
|
-
onChange: (
|
|
720
|
-
onKeyDown: (
|
|
721
|
-
|
|
758
|
+
value: P,
|
|
759
|
+
onChange: (n) => C(n.target.value),
|
|
760
|
+
onKeyDown: (n) => {
|
|
761
|
+
n.key === "Enter" && (n.preventDefault(), J());
|
|
722
762
|
},
|
|
723
|
-
onBlur:
|
|
763
|
+
onBlur: J,
|
|
724
764
|
onFocus: () => s(2),
|
|
725
|
-
ref:
|
|
726
|
-
tabIndex:
|
|
765
|
+
ref: p(2),
|
|
766
|
+
tabIndex: Q === 2 ? 0 : -1,
|
|
727
767
|
"aria-label": t("pdf.currentPageInput"),
|
|
728
|
-
className:
|
|
768
|
+
className: ot()
|
|
729
769
|
}
|
|
730
770
|
),
|
|
731
771
|
/* @__PURE__ */ o(
|
|
@@ -744,63 +784,66 @@ function dt(n) {
|
|
|
744
784
|
}
|
|
745
785
|
)
|
|
746
786
|
] }),
|
|
747
|
-
|
|
748
|
-
index:
|
|
787
|
+
A({
|
|
788
|
+
index: l,
|
|
789
|
+
action: "zoom-out",
|
|
749
790
|
label: t("pdf.zoom.out"),
|
|
750
|
-
onActivate:
|
|
751
|
-
icon: /* @__PURE__ */ o(
|
|
791
|
+
onActivate: S,
|
|
792
|
+
icon: /* @__PURE__ */ o(Ye, { "aria-hidden": "true", className: "ds:h-4 ds:w-4" })
|
|
752
793
|
}),
|
|
753
|
-
|
|
754
|
-
index:
|
|
794
|
+
A({
|
|
795
|
+
index: c,
|
|
796
|
+
action: "zoom-in",
|
|
755
797
|
label: t("pdf.zoom.in"),
|
|
756
|
-
onActivate:
|
|
757
|
-
icon: /* @__PURE__ */ o(
|
|
798
|
+
onActivate: D,
|
|
799
|
+
icon: /* @__PURE__ */ o(et, { "aria-hidden": "true", className: "ds:h-4 ds:w-4" })
|
|
758
800
|
}),
|
|
759
|
-
!
|
|
801
|
+
!I && /* @__PURE__ */ K(
|
|
760
802
|
"select",
|
|
761
803
|
{
|
|
762
804
|
"aria-label": t("pdf.zoom.preset"),
|
|
763
805
|
value: typeof h == "number" ? String(h) : h,
|
|
764
|
-
onChange: (
|
|
765
|
-
const
|
|
766
|
-
if (
|
|
767
|
-
|
|
806
|
+
onChange: (n) => {
|
|
807
|
+
const v = n.target.value;
|
|
808
|
+
if (v === "fit-width" || v === "fit-page" || v === "actual-size")
|
|
809
|
+
j(v);
|
|
768
810
|
else {
|
|
769
|
-
const re = Number(
|
|
770
|
-
Number.isFinite(re) &&
|
|
811
|
+
const re = Number(v);
|
|
812
|
+
Number.isFinite(re) && j(re);
|
|
771
813
|
}
|
|
772
814
|
},
|
|
773
|
-
ref:
|
|
774
|
-
tabIndex:
|
|
775
|
-
onFocus: () => s(
|
|
776
|
-
onKeyDown:
|
|
777
|
-
className:
|
|
815
|
+
ref: p(R),
|
|
816
|
+
tabIndex: Q === R ? 0 : -1,
|
|
817
|
+
onFocus: () => s(R),
|
|
818
|
+
onKeyDown: U,
|
|
819
|
+
className: it(),
|
|
778
820
|
children: [
|
|
779
821
|
/* @__PURE__ */ o("option", { value: "fit-width", children: t("pdf.zoom.fitWidth") }),
|
|
780
822
|
/* @__PURE__ */ o("option", { value: "fit-page", children: t("pdf.zoom.fitPage") }),
|
|
781
823
|
/* @__PURE__ */ o("option", { value: "actual-size", children: t("pdf.zoom.actualSize") }),
|
|
782
|
-
|
|
824
|
+
ut.filter(te).map((n) => /* @__PURE__ */ o("option", { value: String(n), children: `${Math.round(n * 100)}%` }, n))
|
|
783
825
|
]
|
|
784
826
|
}
|
|
785
827
|
),
|
|
786
|
-
!
|
|
828
|
+
!I && /* @__PURE__ */ K(Se, { children: [
|
|
787
829
|
/* @__PURE__ */ K(
|
|
788
830
|
ne.Root,
|
|
789
831
|
{
|
|
790
832
|
open: u,
|
|
791
|
-
onOpenChange:
|
|
833
|
+
onOpenChange: z,
|
|
792
834
|
children: [
|
|
793
|
-
/* @__PURE__ */ o(ne.Trigger, { asChild: !0, children:
|
|
835
|
+
/* @__PURE__ */ o(ne.Trigger, { asChild: !0, children: A({
|
|
794
836
|
index: 6,
|
|
837
|
+
action: "open-search",
|
|
795
838
|
label: t("pdf.search.open"),
|
|
796
|
-
onActivate:
|
|
797
|
-
icon: /* @__PURE__ */ o(
|
|
839
|
+
onActivate: T,
|
|
840
|
+
icon: /* @__PURE__ */ o(tt, { "aria-hidden": "true", className: "ds:h-4 ds:w-4" })
|
|
798
841
|
}) }),
|
|
799
842
|
/* @__PURE__ */ o(ne.Portal, { children: /* @__PURE__ */ K(
|
|
800
843
|
ne.Content,
|
|
801
844
|
{
|
|
802
845
|
sideOffset: 8,
|
|
803
|
-
onKeyDown:
|
|
846
|
+
onKeyDown: G,
|
|
804
847
|
className: [
|
|
805
848
|
"ds:z-[var(--z-popover)]",
|
|
806
849
|
"ds:max-w-[var(--radix-popover-content-available-width)]",
|
|
@@ -816,11 +859,11 @@ function dt(n) {
|
|
|
816
859
|
{
|
|
817
860
|
type: "search",
|
|
818
861
|
autoFocus: !0,
|
|
819
|
-
value:
|
|
820
|
-
onChange: (
|
|
862
|
+
value: E,
|
|
863
|
+
onChange: (n) => x(n.target.value),
|
|
821
864
|
placeholder: t("pdf.search.placeholder"),
|
|
822
865
|
"aria-label": t("pdf.search.placeholder"),
|
|
823
|
-
className:
|
|
866
|
+
className: st()
|
|
824
867
|
}
|
|
825
868
|
),
|
|
826
869
|
/* @__PURE__ */ o(
|
|
@@ -828,19 +871,20 @@ function dt(n) {
|
|
|
828
871
|
{
|
|
829
872
|
"aria-live": "polite",
|
|
830
873
|
className: "type-meta ds:text-[var(--muted-foreground)]",
|
|
831
|
-
children:
|
|
832
|
-
current:
|
|
833
|
-
total:
|
|
834
|
-
}) :
|
|
874
|
+
children: W.total > 0 ? t("pdf.search.countOfTotal", {
|
|
875
|
+
current: W.current,
|
|
876
|
+
total: W.total
|
|
877
|
+
}) : E ? t("pdf.search.noResults") : ""
|
|
835
878
|
}
|
|
836
879
|
),
|
|
837
880
|
/* @__PURE__ */ o(ne.Close, { asChild: !0, children: /* @__PURE__ */ o(
|
|
838
881
|
"button",
|
|
839
882
|
{
|
|
840
883
|
type: "button",
|
|
884
|
+
"data-action": "close-search",
|
|
841
885
|
"aria-label": t("pdf.search.close"),
|
|
842
|
-
className:
|
|
843
|
-
children: /* @__PURE__ */ o(
|
|
886
|
+
className: Ne(),
|
|
887
|
+
children: /* @__PURE__ */ o(Xe, { "aria-hidden": "true", className: "ds:h-4 ds:w-4" })
|
|
844
888
|
}
|
|
845
889
|
) })
|
|
846
890
|
]
|
|
@@ -849,129 +893,132 @@ function dt(n) {
|
|
|
849
893
|
]
|
|
850
894
|
}
|
|
851
895
|
),
|
|
852
|
-
|
|
896
|
+
A({
|
|
853
897
|
index: 7,
|
|
898
|
+
action: "print",
|
|
854
899
|
label: t("pdf.print"),
|
|
855
|
-
onActivate:
|
|
856
|
-
icon: /* @__PURE__ */ o(
|
|
900
|
+
onActivate: m,
|
|
901
|
+
icon: /* @__PURE__ */ o(rt, { "aria-hidden": "true", className: "ds:h-4 ds:w-4" })
|
|
857
902
|
})
|
|
858
903
|
] })
|
|
859
904
|
]
|
|
860
905
|
}
|
|
861
906
|
);
|
|
862
907
|
}
|
|
863
|
-
function
|
|
908
|
+
function ht(a) {
|
|
864
909
|
const {
|
|
865
910
|
pageNumber: t,
|
|
866
|
-
totalPages:
|
|
911
|
+
totalPages: y,
|
|
867
912
|
doc: f,
|
|
868
913
|
zoom: g,
|
|
869
914
|
pageRotation: h,
|
|
870
|
-
renderPageOverlay:
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
915
|
+
renderPageOverlay: k,
|
|
916
|
+
overlayAccessible: N,
|
|
917
|
+
container: b,
|
|
918
|
+
resizeTick: D,
|
|
919
|
+
shouldRender: S,
|
|
920
|
+
registerRef: j,
|
|
921
|
+
searchQuery: T,
|
|
922
|
+
onMatchCount: m
|
|
923
|
+
} = a, { t: u } = me("ui"), z = O(null), E = O(null), [x, W] = w({
|
|
878
924
|
width: 612,
|
|
879
925
|
height: 792
|
|
880
|
-
}), [p,
|
|
881
|
-
|
|
882
|
-
let
|
|
883
|
-
return f.getPage(t).then((
|
|
884
|
-
|
|
926
|
+
}), [p, Q] = w(null);
|
|
927
|
+
M(() => {
|
|
928
|
+
let l = !1;
|
|
929
|
+
return f.getPage(t).then((c) => {
|
|
930
|
+
l || Q(c);
|
|
885
931
|
}), () => {
|
|
886
|
-
|
|
932
|
+
l = !0;
|
|
887
933
|
};
|
|
888
|
-
}, [f, t]),
|
|
934
|
+
}, [f, t]), M(() => {
|
|
889
935
|
if (!p) return;
|
|
890
|
-
const
|
|
891
|
-
|
|
892
|
-
width: Math.floor(
|
|
893
|
-
height: Math.floor(
|
|
936
|
+
const l = (C) => h === void 0 ? { scale: C } : { scale: C, rotation: h }, c = p.getViewport(l(1)), R = Ie(g, c, b), P = p.getViewport(l(R));
|
|
937
|
+
W({
|
|
938
|
+
width: Math.floor(P.width),
|
|
939
|
+
height: Math.floor(P.height)
|
|
894
940
|
});
|
|
895
|
-
}, [p, g,
|
|
896
|
-
const
|
|
897
|
-
|
|
898
|
-
if (!p || !
|
|
899
|
-
const
|
|
900
|
-
|
|
941
|
+
}, [p, g, b, D, h]);
|
|
942
|
+
const s = h ?? (p == null ? void 0 : p.rotate) ?? 0;
|
|
943
|
+
M(() => {
|
|
944
|
+
if (!p || !S) {
|
|
945
|
+
const v = z.current;
|
|
946
|
+
v && !S && (v.width = 0);
|
|
901
947
|
return;
|
|
902
948
|
}
|
|
903
|
-
const
|
|
904
|
-
if (!i) return;
|
|
905
|
-
const l = i.getContext("2d");
|
|
949
|
+
const l = z.current, c = E.current;
|
|
906
950
|
if (!l) return;
|
|
907
|
-
const
|
|
908
|
-
|
|
909
|
-
const G = p.
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
951
|
+
const R = l.getContext("2d");
|
|
952
|
+
if (!R) return;
|
|
953
|
+
const P = (v) => h === void 0 ? { scale: v } : { scale: v, rotation: h }, C = p.getViewport(P(1)), G = Ie(g, C, b), L = p.getViewport(P(G)), q = Math.max(1, window.devicePixelRatio || 1);
|
|
954
|
+
l.width = Math.floor(L.width * q), l.height = Math.floor(L.height * q), R.setTransform(q, 0, 0, q, 0, 0);
|
|
955
|
+
const J = p.render({
|
|
956
|
+
canvas: l,
|
|
957
|
+
canvasContext: R,
|
|
958
|
+
viewport: L
|
|
913
959
|
});
|
|
914
|
-
let
|
|
915
|
-
return
|
|
916
|
-
if (
|
|
917
|
-
|
|
918
|
-
const
|
|
919
|
-
|
|
920
|
-
textContentSource:
|
|
921
|
-
container:
|
|
922
|
-
viewport:
|
|
923
|
-
}), await
|
|
960
|
+
let A = !1, n = null;
|
|
961
|
+
return J.promise.then(async () => {
|
|
962
|
+
if (A || !c) return;
|
|
963
|
+
c.textContent = "";
|
|
964
|
+
const v = await p.getTextContent();
|
|
965
|
+
A || (n = new he.TextLayer({
|
|
966
|
+
textContentSource: v,
|
|
967
|
+
container: c,
|
|
968
|
+
viewport: L
|
|
969
|
+
}), await n.render(), Ae(c, T, m));
|
|
924
970
|
}).catch(() => {
|
|
925
971
|
}), () => {
|
|
926
|
-
|
|
972
|
+
A = !0;
|
|
927
973
|
try {
|
|
928
|
-
|
|
974
|
+
J.cancel();
|
|
929
975
|
} catch {
|
|
930
976
|
}
|
|
931
|
-
if (
|
|
977
|
+
if (n)
|
|
932
978
|
try {
|
|
933
|
-
|
|
979
|
+
n.cancel();
|
|
934
980
|
} catch {
|
|
935
981
|
}
|
|
936
982
|
};
|
|
937
983
|
}, [
|
|
938
984
|
p,
|
|
939
|
-
P,
|
|
940
|
-
g,
|
|
941
|
-
y,
|
|
942
|
-
x,
|
|
943
985
|
S,
|
|
944
|
-
|
|
986
|
+
g,
|
|
987
|
+
b,
|
|
988
|
+
D,
|
|
989
|
+
T,
|
|
990
|
+
m,
|
|
945
991
|
h
|
|
946
|
-
]),
|
|
947
|
-
if (!
|
|
948
|
-
const
|
|
949
|
-
|
|
950
|
-
}, [
|
|
951
|
-
const
|
|
952
|
-
width:
|
|
953
|
-
height:
|
|
954
|
-
},
|
|
955
|
-
width:
|
|
956
|
-
height:
|
|
992
|
+
]), M(() => {
|
|
993
|
+
if (!S) return;
|
|
994
|
+
const l = E.current;
|
|
995
|
+
l && Ae(l, T, m);
|
|
996
|
+
}, [T, S, m]);
|
|
997
|
+
const U = {
|
|
998
|
+
width: x.width,
|
|
999
|
+
height: x.height
|
|
1000
|
+
}, I = {
|
|
1001
|
+
width: x.width,
|
|
1002
|
+
height: x.height
|
|
957
1003
|
};
|
|
958
1004
|
return /* @__PURE__ */ K(
|
|
959
1005
|
"article",
|
|
960
1006
|
{
|
|
961
|
-
ref: (
|
|
962
|
-
|
|
1007
|
+
ref: (l) => {
|
|
1008
|
+
j(l);
|
|
963
1009
|
},
|
|
964
1010
|
"data-page-number": t,
|
|
965
|
-
"aria-label":
|
|
966
|
-
className:
|
|
967
|
-
style:
|
|
1011
|
+
"aria-label": u("pdf.pageOf", { current: t, total: y }),
|
|
1012
|
+
className: ct(),
|
|
1013
|
+
style: I,
|
|
968
1014
|
children: [
|
|
969
|
-
/* @__PURE__ */ o("canvas", { ref:
|
|
1015
|
+
/* @__PURE__ */ o("canvas", { ref: z, style: U }),
|
|
970
1016
|
/* @__PURE__ */ o(
|
|
971
1017
|
"div",
|
|
972
1018
|
{
|
|
973
|
-
ref:
|
|
1019
|
+
ref: E,
|
|
974
1020
|
"aria-hidden": "false",
|
|
1021
|
+
"data-pdf-text-layer": "",
|
|
975
1022
|
className: [
|
|
976
1023
|
"ds:absolute ds:inset-0",
|
|
977
1024
|
"ds:overflow-hidden",
|
|
@@ -984,19 +1031,19 @@ function ct(n) {
|
|
|
984
1031
|
].join(" ")
|
|
985
1032
|
}
|
|
986
1033
|
),
|
|
987
|
-
|
|
1034
|
+
S && k ? /* @__PURE__ */ o(
|
|
988
1035
|
"div",
|
|
989
1036
|
{
|
|
990
1037
|
role: "group",
|
|
991
|
-
"aria-label":
|
|
992
|
-
className:
|
|
1038
|
+
"aria-label": u("pdf.pageOverlay", { page: t }),
|
|
1039
|
+
className: lt({ accessible: N }),
|
|
993
1040
|
"data-pdf-page-overlay": "",
|
|
994
1041
|
"data-page-number": t,
|
|
995
|
-
children:
|
|
1042
|
+
children: k({
|
|
996
1043
|
pageNumber: t,
|
|
997
|
-
pageWidthCss:
|
|
998
|
-
pageHeightCss:
|
|
999
|
-
rotation:
|
|
1044
|
+
pageWidthCss: x.width,
|
|
1045
|
+
pageHeightCss: x.height,
|
|
1046
|
+
rotation: s
|
|
1000
1047
|
})
|
|
1001
1048
|
}
|
|
1002
1049
|
) : null
|
|
@@ -1004,48 +1051,48 @@ function ct(n) {
|
|
|
1004
1051
|
}
|
|
1005
1052
|
);
|
|
1006
1053
|
}
|
|
1007
|
-
function
|
|
1008
|
-
return
|
|
1054
|
+
function Re(a) {
|
|
1055
|
+
return a.normalize("NFKD").replace(new RegExp("\\p{Diacritic}", "gu"), "").toLowerCase();
|
|
1009
1056
|
}
|
|
1010
|
-
function
|
|
1011
|
-
if (
|
|
1012
|
-
|
|
1057
|
+
function Ae(a, t, y) {
|
|
1058
|
+
if (a.querySelectorAll("[data-match]").forEach((m) => {
|
|
1059
|
+
m.removeAttribute("data-match");
|
|
1013
1060
|
}), !t) {
|
|
1014
|
-
|
|
1061
|
+
y(0);
|
|
1015
1062
|
return;
|
|
1016
1063
|
}
|
|
1017
|
-
const g =
|
|
1064
|
+
const g = Re(t);
|
|
1018
1065
|
if (!g) {
|
|
1019
|
-
|
|
1066
|
+
y(0);
|
|
1020
1067
|
return;
|
|
1021
1068
|
}
|
|
1022
|
-
const h = Array.from(
|
|
1023
|
-
let
|
|
1024
|
-
for (const
|
|
1025
|
-
const u =
|
|
1026
|
-
|
|
1069
|
+
const h = Array.from(a.querySelectorAll("span")), k = [], N = [];
|
|
1070
|
+
let b = 0;
|
|
1071
|
+
for (const m of h) {
|
|
1072
|
+
const u = Re(m.textContent ?? "");
|
|
1073
|
+
k.push({ start: b, end: b + u.length }), N.push(u), b += u.length;
|
|
1027
1074
|
}
|
|
1028
|
-
const
|
|
1029
|
-
let
|
|
1030
|
-
const
|
|
1031
|
-
let
|
|
1032
|
-
for (;
|
|
1033
|
-
const
|
|
1034
|
-
if (
|
|
1035
|
-
|
|
1036
|
-
const u =
|
|
1037
|
-
for (let
|
|
1038
|
-
const { start:
|
|
1039
|
-
|
|
1075
|
+
const D = N.join("");
|
|
1076
|
+
let S = 0;
|
|
1077
|
+
const j = /* @__PURE__ */ new Set();
|
|
1078
|
+
let T = 0;
|
|
1079
|
+
for (; T <= D.length - g.length; ) {
|
|
1080
|
+
const m = D.indexOf(g, T);
|
|
1081
|
+
if (m === -1) break;
|
|
1082
|
+
S += 1;
|
|
1083
|
+
const u = m + g.length;
|
|
1084
|
+
for (let z = 0; z < k.length; z++) {
|
|
1085
|
+
const { start: E, end: x } = k[z];
|
|
1086
|
+
E < u && x > m && j.add(z);
|
|
1040
1087
|
}
|
|
1041
|
-
|
|
1088
|
+
T = u;
|
|
1042
1089
|
}
|
|
1043
|
-
|
|
1044
|
-
h[
|
|
1045
|
-
}),
|
|
1090
|
+
j.forEach((m) => {
|
|
1091
|
+
h[m].setAttribute("data-match", "true");
|
|
1092
|
+
}), y(S);
|
|
1046
1093
|
}
|
|
1047
1094
|
export {
|
|
1048
|
-
|
|
1049
|
-
|
|
1095
|
+
ft as P,
|
|
1096
|
+
at as p
|
|
1050
1097
|
};
|
|
1051
|
-
//# sourceMappingURL=pdf-viewer-
|
|
1098
|
+
//# sourceMappingURL=pdf-viewer-TRC5jEm5.js.map
|