@alfadocs/ui-kit 0.67.1 → 0.69.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/{accordion-9lJSMMsZ.js → accordion-DnIa7OHX.js} +69 -47
- package/dist/_chunks/actions-cell-renderer-DrcaxB0w.js +2061 -0
- package/dist/_chunks/address-autocomplete-BEX9PXty.js +496 -0
- package/dist/_chunks/{agenda-card.agent-B_R47-c9.js → agenda-card.agent-mTCrkKSZ.js} +6 -1
- package/dist/_chunks/{agenda-tray-T-BumlGZ.js → agenda-tray-g0kg7HwB.js} +36 -24
- package/dist/_chunks/{ai-consent-banner-Dxtx_WAh.js → ai-consent-banner-CXlsNX1c.js} +3 -3
- package/dist/_chunks/{ai-prompt-input-BwEACCPm.js → ai-prompt-input-CuhTo9mh.js} +80 -61
- package/dist/_chunks/{ai-tools-rail-CInA_1-E.js → ai-tools-rail-BA_sqy1A.js} +87 -70
- package/dist/_chunks/{alia-sidebar-Ckv0yCKi.js → alia-sidebar-B47qRQb5.js} +5 -5
- package/dist/_chunks/{anamnesis-card-N8pIKWuS.js → anamnesis-card-DRmE24OQ.js} +2 -2
- package/dist/_chunks/{appointment-tray-BMl89NPW.js → appointment-tray-CZtvtaH-.js} +32 -20
- package/dist/_chunks/{audio-recorder-DjXLP4aF.js → audio-recorder-DYXXnGug.js} +59 -56
- package/dist/_chunks/{autocomplete-CcCFlVf-.js → autocomplete-DOeGouCL.js} +157 -132
- package/dist/_chunks/bishop-score-PJI3AXzA.js +304 -0
- package/dist/_chunks/bmi-calculator-BZtIJ53x.js +434 -0
- package/dist/_chunks/{booking-L8-YP8BJ.js → booking-C3VqFReX.js} +420 -397
- package/dist/_chunks/{breadcrumb-OTbaY70e.js → breadcrumb-CchdeG7d.js} +42 -28
- package/dist/_chunks/{calculator-dialog-CFk4I91b.js → calculator-dialog-BR5iU0kf.js} +2 -2
- package/dist/_chunks/{calendar-oYWOCrnf.js → calendar-CZUjL8SZ.js} +258 -201
- package/dist/_chunks/{care-plan-card-BwVUyUBb.js → care-plan-card-CvFGXa2z.js} +10 -6
- package/dist/_chunks/{care-plan-entry-card-VzdQHcOL.js → care-plan-entry-card-C3E_gClk.js} +17 -13
- package/dist/_chunks/{carousel.agent-vt21A_el.js → carousel.agent-4v8Emr9E.js} +219 -198
- package/dist/_chunks/{chart-Cg3e9EH9.js → chart-CMr3eW62.js} +150 -109
- package/dist/_chunks/{chat-container-ogB4OskO.js → chat-container-DWho5hPR.js} +47 -34
- package/dist/_chunks/{chat-input-B5zjNEUN.js → chat-input-BcXTetgM.js} +57 -41
- package/dist/_chunks/{checkbox-DRcOdmXv.js → checkbox-BuZ1u__2.js} +41 -27
- package/dist/_chunks/{checkbox-group-CpUwlHug.js → checkbox-group-PqNmQ-cE.js} +3 -3
- package/dist/_chunks/{clinical-note-card-gtrxv6zn.js → clinical-note-card-DqQYf_D4.js} +2 -2
- package/dist/_chunks/{collapsible-X3oaLPU3.js → collapsible-BrnRiCC6.js} +26 -23
- package/dist/_chunks/{color-picker-FXpItIaF.js → color-picker-C_fZl6sA.js} +124 -112
- package/dist/_chunks/{combobox-BC-DFx8G.js → combobox-Clum7gJ1.js} +165 -128
- package/dist/_chunks/{command-palette-BiPAAno-.js → command-palette-CJzmc5pC.js} +87 -64
- package/dist/_chunks/{contact-profile-card-7BMB85T6.js → contact-profile-card-Dramqa9C.js} +13 -11
- package/dist/_chunks/{copy-field-CCq7j6Zc.js → copy-field-Bjw9u2cV.js} +42 -35
- package/dist/_chunks/counter-dRlTNC_y.js +55 -0
- package/dist/_chunks/{cycle-calculator-BF0ointe.js → cycle-calculator-DmRGJNaT.js} +3 -3
- package/dist/_chunks/{date-picker-oGg5BnXL.js → date-picker-Dl9RKxaV.js} +76 -57
- package/dist/_chunks/{date-range-picker-C5BWfH_T.js → date-range-picker-CTUeR6Bj.js} +73 -46
- package/dist/_chunks/{date-time-picker-Ze1My59T.js → date-time-picker-BhoogS5Q.js} +64 -40
- package/dist/_chunks/{dependent-selector-DpzGtr_J.js → dependent-selector-CG_FOHya.js} +44 -30
- package/dist/_chunks/{dialog-DMGnSelc.js → dialog-ZNuboNmy.js} +35 -28
- package/dist/_chunks/{document-scanner-D2qehl3-.js → document-scanner-CTubA0-N.js} +12 -4
- package/dist/_chunks/{dropdown-menu-DwwPovMZ.js → dropdown-menu-qrxjymfw.js} +94 -93
- package/dist/_chunks/{due-date-calculator-DU9AEWNy.js → due-date-calculator-BTmsIQqD.js} +4 -4
- package/dist/_chunks/editable-currency-cell-renderer-kgqp_mIw.js +448 -0
- package/dist/_chunks/{email-input-lQivsFrw.js → email-input-B_Y55f5G.js} +3 -3
- package/dist/_chunks/{fetal-weight-BVSzOhuR.js → fetal-weight-CRz7KE2D.js} +2 -2
- package/dist/_chunks/{file-upload-BosbPDb1.js → file-upload-5ScQd4fE.js} +118 -100
- package/dist/_chunks/{fiscal-code-input-DPtqluVb.js → fiscal-code-input-Cf-8O4Fj.js} +76 -63
- package/dist/_chunks/{freemium-paywall-CkWjv3o6.js → freemium-paywall-DZ2mBS3w.js} +78 -71
- package/dist/_chunks/{gestational-age-calculator-DBlFdoiP.js → gestational-age-calculator-BleUdhbI.js} +5 -5
- package/dist/_chunks/{hcg-doubling-if4Q8aSX.js → hcg-doubling-CnjDXX6U.js} +3 -3
- package/dist/_chunks/{header-settings-CNOqIhoW.js → header-settings-DJqoAl5m.js} +86 -46
- package/dist/_chunks/{index.modern-D2LGACWg.js → index.modern-Zta-A4Jm.js} +3 -3
- package/dist/_chunks/{list-BOwqwy03.js → list-DgE1xWBM.js} +99 -84
- package/dist/_chunks/{locale-picker-C9JmBht3.js → locale-picker-ChYYSX2N.js} +47 -35
- package/dist/_chunks/{map-view-Tb5VfK9Y.js → map-view-BkOoGoX2.js} +160 -115
- package/dist/_chunks/{marketplace-app-shell-D4-T9Qzz.js → marketplace-app-shell-6T9W4Knl.js} +4 -4
- package/dist/_chunks/{message-card.agent-4IeIgrnJ.js → message-card.agent-ZLhx3Bs5.js} +6 -1
- package/dist/_chunks/{message-tray-CVyJajVJ.js → message-tray-DwrBLJlf.js} +90 -48
- package/dist/_chunks/{multi-select-BcPylvHR.js → multi-select-BdHHDrRN.js} +196 -153
- package/dist/_chunks/{navigation-menu-C6lBYVv9.js → navigation-menu-DRUi6sSj.js} +75 -42
- package/dist/_chunks/{notification-card.agent-Rqt3ofk9.js → notification-card.agent-DxGBZb8T.js} +5 -1
- package/dist/_chunks/{notification-tray-DlgenTEe.js → notification-tray-Btb9oQeZ.js} +112 -97
- package/dist/_chunks/{number-input-Dj5L3pXK.js → number-input-DxphVG_A.js} +36 -27
- package/dist/_chunks/{operator-hero-f_KaRhw5.js → operator-hero-CP2Nhupm.js} +12 -8
- package/dist/_chunks/{otp-input-xQ4Ps5VY.js → otp-input-DzBQ-CpE.js} +52 -33
- package/dist/_chunks/{pagination-DQOgnxxw.js → pagination-D58kglCr.js} +181 -162
- package/dist/_chunks/{patient-search-DR9XUYRQ.js → patient-search-CBC_ySF6.js} +69 -60
- package/dist/_chunks/{patient-shell-BfgufL_q.js → patient-shell-DV3XEtIB.js} +3 -3
- package/dist/_chunks/{patient-summary-card-hEmr4eTW.js → patient-summary-card-B836_fDB.js} +95 -103
- package/dist/_chunks/patient-table-CDuosVru.js +889 -0
- package/dist/_chunks/{payment-form-nXocS_MX.js → payment-form-DvjwYVIT.js} +56 -44
- package/dist/_chunks/{payment-request-card-CYE5vhZ0.js → payment-request-card-DioWKBUq.js} +2 -2
- package/dist/_chunks/{pdf-viewer-GsfNqeeT.js → pdf-viewer-D6BPfW2D.js} +205 -157
- package/dist/_chunks/{periodontal-chart-card-Dh3KgvYG.js → periodontal-chart-card-BuDEMbHE.js} +2 -2
- package/dist/_chunks/{phone-input-DVXhNlIl.js → phone-input-DjU-XmO_.js} +64 -47
- package/dist/_chunks/{popover-DTbfAuR0.js → popover-B2qCDhJC.js} +37 -32
- package/dist/_chunks/{practice-results-DND2SAt7.js → practice-results-KrTHqZua.js} +278 -242
- package/dist/_chunks/{pregnancy-dating-QY-sqpvj.js → pregnancy-dating-DORUAOHB.js} +6 -6
- package/dist/_chunks/{pregnancy-weight-gain-DOJXXNYP.js → pregnancy-weight-gain-DVz4rr7-.js} +3 -3
- package/dist/_chunks/{privacy-lock-C7JyMf0y.js → privacy-lock-BzMLQu-j.js} +32 -28
- package/dist/_chunks/{product-hub-panel-CAXDFeGP.js → product-hub-panel-e6pW220e.js} +45 -27
- package/dist/_chunks/{progress-kzIRcdaq.js → progress-DA413-zn.js} +2 -2
- package/dist/_chunks/{public-footer.agent-CfXuW1x6.js → public-footer.agent-D0cFbjWl.js} +151 -146
- package/dist/_chunks/{public-header.agent-BOhJgZEU.js → public-header.agent-DqkqA-ca.js} +107 -102
- package/dist/_chunks/{qr-code-DNXhi6se.js → qr-code-CPkEs5mG.js} +52 -46
- package/dist/_chunks/{radio-group-CLjK-SlK.js → radio-group-BPt7pKZW.js} +5 -5
- package/dist/_chunks/{recaptcha-widget-BCNHsgqt.js → recaptcha-widget-BC-4To9b.js} +9 -2
- package/dist/_chunks/registry-DvAUVLHh.js +51 -0
- package/dist/_chunks/{resizable-3vzqDlg6.js → resizable-DVGcfOrk.js} +193 -173
- package/dist/_chunks/{reviews-panel-DBktKm7i.js → reviews-panel-Dq7LMDcH.js} +87 -68
- package/dist/_chunks/rich-text-editor-BsV7zUdg.js +2142 -0
- package/dist/_chunks/{search-bar-SY2BcV2N.js → search-bar-C_T3pBJn.js} +105 -78
- package/dist/_chunks/{search-input-DbxrnHkW.js → search-input-DQvGxR74.js} +2 -2
- package/dist/_chunks/{search-input.agent-CfZvViOd.js → search-input.agent-DRH54coT.js} +19 -4
- package/dist/_chunks/{select-CEtRcon5.js → select-DMLG44F5.js} +72 -56
- package/dist/_chunks/{session-countdown-LPnhTHjn.js → session-countdown-X1Ki6i0M.js} +3 -3
- package/dist/_chunks/{sheet-taJer-Ha.js → sheet-BxsE7eQm.js} +59 -45
- package/dist/_chunks/{sidebar-DaB4ulxH.js → sidebar-DY9jGjgt.js} +254 -248
- package/dist/_chunks/{sign-document-CdAiHiCh.js → sign-document-B4DeRhTe.js} +75 -49
- package/dist/_chunks/{signature-capture-COi0Uiqu.js → signature-capture-Ct_4Md4e.js} +138 -104
- package/dist/_chunks/{slider-BHWzXdjt.js → slider-DN1CWkKB.js} +85 -65
- package/dist/_chunks/{sparkline-DGhCSw8M.js → sparkline-iOXYgvJe.js} +75 -53
- package/dist/_chunks/{stepper-accordion.agent-C4quJ-MD.js → stepper-accordion.agent-cmEguIdx.js} +7 -1
- package/dist/_chunks/{stepper-progress-DDjq5nei.js → stepper-progress-Bv0njx4g.js} +30 -24
- package/dist/_chunks/{suggestion-chip.agent-6sNWFj7m.js → suggestion-chip.agent-Brn3CiFE.js} +9 -8
- package/dist/_chunks/{switch-BJ6HD3Mn.js → switch-OILsBLWo.js} +25 -19
- package/dist/_chunks/{tabs-BIQ0ew1T.js → tabs-BxcOziCo.js} +67 -58
- package/dist/_chunks/{task-card.agent-CUPKYd7w.js → task-card.agent-Bt14CzUd.js} +4 -1
- package/dist/_chunks/{task-tray-CAncV-QQ.js → task-tray-qOEQflu4.js} +74 -57
- package/dist/_chunks/{text-area-BIx0tZ05.js → text-area-Bt3p7Pt0.js} +41 -34
- package/dist/_chunks/{text-input-BaClJL8Y.js → text-input-B-OWQ1Je.js} +15 -8
- package/dist/_chunks/{theme-toggle-DETmSu_h.js → theme-toggle-XB6o_lgs.js} +38 -26
- package/dist/_chunks/{time-picker-B5umYwfv.js → time-picker-BPlJWm8w.js} +41 -31
- package/dist/_chunks/{timeline-DQa5Tyz4.js → timeline-CqA4nKTI.js} +33 -25
- package/dist/_chunks/{toast.agent-vuLRRn2a.js → toast.agent-57UzyR9U.js} +62 -45
- package/dist/_chunks/{tooth-scheme-BIx1O2aJ.js → tooth-scheme-yBr53cvv.js} +421 -348
- package/dist/_chunks/{transcript-panel-CLHmv83g.js → transcript-panel-3THQX6nJ.js} +47 -33
- package/dist/_chunks/unit-converter-YEpD9evj.js +337 -0
- package/dist/_chunks/{use-password-requirements-DsgduV1x.js → use-password-requirements-BXvS2MBS.js} +131 -117
- package/dist/_chunks/users-MBVtUzwd.js +17 -0
- package/dist/_chunks/warning-stack-BsgaEbL8.js +283 -0
- package/dist/_chunks/{whatsapp-button-DUjlWGKf.js → whatsapp-button-BIy6NaJK.js} +6 -3
- package/dist/_chunks/{workflow-map-JAZryZJr.js → workflow-map-Bdam9pGp.js} +99 -88
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +36 -0
- package/dist/agent/registry.d.ts +33 -0
- package/dist/agent/types.d.ts +78 -2
- package/dist/agent-catalog.json +6905 -509
- package/dist/agent-i18n/en.json +1175 -0
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/address-autocomplete/address-autocomplete.agent.d.ts +4 -0
- package/dist/components/address-autocomplete/address-autocomplete.d.ts +18 -0
- package/dist/components/address-autocomplete/index.d.ts +2 -1
- package/dist/components/address-autocomplete/index.js +3 -2
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bishop-score/bishop-score.agent.d.ts +4 -0
- package/dist/components/bishop-score/bishop-score.d.ts +17 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/bmi-calculator.agent.d.ts +4 -0
- package/dist/components/bmi-calculator/bmi-calculator.d.ts +26 -0
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/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/carousel/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/counter/counter.d.ts +22 -0
- package/dist/components/counter/index.d.ts +3 -0
- package/dist/components/counter/index.js +5 -0
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/data-table.d.ts +1 -1
- package/dist/components/data-table/filters/date-range-filter.d.ts +1 -1
- package/dist/components/data-table/index.js +31 -30
- package/dist/components/data-table/toolbar.d.ts +4 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +6 -0
- package/dist/components/freemium-paywall/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/index.d.ts +2 -0
- package/dist/components/list/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/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/pagination/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/cell-renderers/balance-badge-cell.d.ts +13 -0
- package/dist/components/patient-table/cell-renderers/care-plan-status-cell.d.ts +43 -0
- package/dist/components/patient-table/cell-renderers/contact-cell.d.ts +45 -0
- package/dist/components/patient-table/cell-renderers/next-appointment-cell.d.ts +24 -0
- package/dist/components/patient-table/cell-renderers/patient-identity-cell.d.ts +26 -0
- package/dist/components/patient-table/columns.d.ts +102 -0
- package/dist/components/patient-table/index.d.ts +24 -0
- package/dist/components/patient-table/index.js +13 -0
- package/dist/components/patient-table/patient-table.d.ts +138 -0
- package/dist/components/patient-table/types.d.ts +172 -0
- package/dist/components/patient-table/use-responsive-columns.d.ts +109 -0
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +15 -0
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +2 -2
- package/dist/components/select/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar.d.ts +7 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/stepper-progress/index.js +1 -1
- package/dist/components/suggestion-chip/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/unit-converter/unit-converter.agent.d.ts +4 -0
- package/dist/components/unit-converter/unit-converter.d.ts +27 -0
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/warning-stack/warning-stack.d.ts +9 -0
- package/dist/components/whatsapp-button/index.d.ts +1 -1
- package/dist/components/whatsapp-button/index.js +3 -2
- package/dist/components/whatsapp-button/whatsapp-button.d.ts +3 -0
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +74 -0
- package/dist/i18n/locales/ar.js +76 -2
- package/dist/i18n/locales/de.d.ts +74 -0
- package/dist/i18n/locales/de.js +76 -2
- package/dist/i18n/locales/el.d.ts +74 -0
- package/dist/i18n/locales/el.js +76 -2
- package/dist/i18n/locales/en.d.ts +92 -0
- package/dist/i18n/locales/en.js +94 -2
- package/dist/i18n/locales/es.d.ts +74 -0
- package/dist/i18n/locales/es.js +76 -2
- package/dist/i18n/locales/fr.d.ts +74 -0
- package/dist/i18n/locales/fr.js +76 -2
- package/dist/i18n/locales/hi.d.ts +74 -0
- package/dist/i18n/locales/hi.js +76 -2
- package/dist/i18n/locales/it.d.ts +74 -0
- package/dist/i18n/locales/it.js +76 -2
- package/dist/i18n/locales/ja.d.ts +74 -0
- package/dist/i18n/locales/ja.js +76 -2
- package/dist/i18n/locales/nl.d.ts +74 -0
- package/dist/i18n/locales/nl.js +76 -2
- package/dist/i18n/locales/pl.d.ts +74 -0
- package/dist/i18n/locales/pl.js +76 -2
- package/dist/i18n/locales/pt.d.ts +74 -0
- package/dist/i18n/locales/pt.js +76 -2
- package/dist/i18n/locales/ro.d.ts +74 -0
- package/dist/i18n/locales/ro.js +76 -2
- package/dist/i18n/locales/ru.d.ts +74 -0
- package/dist/i18n/locales/ru.js +76 -2
- package/dist/i18n/locales/sq.d.ts +74 -0
- package/dist/i18n/locales/sq.js +76 -2
- package/dist/i18n/locales/sv.d.ts +74 -0
- package/dist/i18n/locales/sv.js +76 -2
- package/dist/i18n/locales/tr.d.ts +74 -0
- package/dist/i18n/locales/tr.js +76 -2
- package/dist/i18n/locales/zh.d.ts +74 -0
- package/dist/i18n/locales/zh.js +76 -2
- package/dist/index.js +688 -673
- package/dist/locales/ar.json +76 -2
- package/dist/locales/de.json +76 -2
- package/dist/locales/el.json +76 -2
- package/dist/locales/en.json +76 -2
- package/dist/locales/es.json +76 -2
- package/dist/locales/fr.json +76 -2
- package/dist/locales/hi.json +76 -2
- package/dist/locales/it.json +76 -2
- package/dist/locales/ja.json +76 -2
- package/dist/locales/nl.json +76 -2
- package/dist/locales/pl.json +76 -2
- package/dist/locales/pt.json +76 -2
- package/dist/locales/ro.json +76 -2
- package/dist/locales/ru.json +76 -2
- package/dist/locales/sq.json +76 -2
- package/dist/locales/sv.json +76 -2
- package/dist/locales/tr.json +76 -2
- package/dist/locales/zh.json +76 -2
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +3 -2
- package/package.json +14 -1
- package/dist/_chunks/address-autocomplete-CT-9AOli.js +0 -358
- package/dist/_chunks/bishop-score-CjsB9bM-.js +0 -185
- package/dist/_chunks/bmi-calculator-n-823_1V.js +0 -258
- package/dist/_chunks/editable-currency-cell-renderer-D1ewvJKO.js +0 -2391
- package/dist/_chunks/registry-nPAVE19X.js +0 -21
- package/dist/_chunks/rich-text-editor-DAeCXiQG.js +0 -1973
- package/dist/_chunks/unit-converter-C1V3ACM9.js +0 -196
- package/dist/_chunks/warning-stack-Cv4fr5zo.js +0 -220
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as a, jsxs as _, Fragment as we } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as Le, useId as Ze, useMemo as ke, useState as y, useEffect as
|
|
2
|
+
import { forwardRef as Le, useId as Ze, useMemo as ke, useState as y, useEffect as T, useRef as E, useCallback as H, useImperativeHandle as Ke } from "react";
|
|
3
3
|
import * as pe from "pdfjs-dist/legacy/build/pdf.min.mjs";
|
|
4
4
|
import { c as X } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as me } from "react-i18next";
|
|
6
6
|
import * as re from "@radix-ui/react-popover";
|
|
7
7
|
import De from "pdfjs-dist/legacy/build/pdf.worker.min.mjs?url";
|
|
8
|
-
import { S as
|
|
8
|
+
import { S as qe } from "./spinner-hbwuKwMf.js";
|
|
9
9
|
import { A as ze } from "./alert-_mUKLmwA.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { X as
|
|
12
|
-
import { C as
|
|
13
|
-
import { C as
|
|
14
|
-
import { c as
|
|
10
|
+
import { u as Be } from "./registry-DvAUVLHh.js";
|
|
11
|
+
import { X as He } from "./x-CCcI3eJp.js";
|
|
12
|
+
import { C as Qe } from "./chevron-left-CX1jqD2M.js";
|
|
13
|
+
import { C as We } from "./chevron-right-BrpYejk0.js";
|
|
14
|
+
import { c as Te } from "./createLucideIcon-CrFbzy84.js";
|
|
15
15
|
import { S as Ue } from "./search-BonnQsHv.js";
|
|
16
16
|
import { P as Je } from "./printer-CeVEWfQq.js";
|
|
17
17
|
/**
|
|
@@ -25,7 +25,7 @@ const $e = [
|
|
|
25
25
|
["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
|
|
26
26
|
["line", { x1: "11", x2: "11", y1: "8", y2: "14", key: "1vmskp" }],
|
|
27
27
|
["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
|
|
28
|
-
], Xe =
|
|
28
|
+
], Xe = Te("zoom-in", $e);
|
|
29
29
|
/**
|
|
30
30
|
* @license lucide-react v1.8.0 - ISC
|
|
31
31
|
*
|
|
@@ -36,14 +36,32 @@ const Ge = [
|
|
|
36
36
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
37
37
|
["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
|
|
38
38
|
["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
|
|
39
|
-
], Ye =
|
|
39
|
+
], Ye = Te("zoom-out", Ge), et = {
|
|
40
40
|
id: "pdf-viewer",
|
|
41
|
-
|
|
41
|
+
// `paginate` (go_to_page), `set_value` (zoom preset — ephemeral view state),
|
|
42
|
+
// `filter` (in-document search/highlight). Zoom maps to `set_value` rather
|
|
43
|
+
// than the old `view_change` per the agent-readiness capability vocabulary.
|
|
44
|
+
capabilities: ["paginate", "set_value", "filter"],
|
|
42
45
|
state: {},
|
|
43
46
|
actions: {
|
|
44
47
|
go_to_page: {
|
|
45
48
|
safety: "read",
|
|
46
49
|
argsType: "{ page: number }",
|
|
50
|
+
argsSchema: {
|
|
51
|
+
type: "object",
|
|
52
|
+
properties: {
|
|
53
|
+
page: {
|
|
54
|
+
type: "integer",
|
|
55
|
+
minimum: 1,
|
|
56
|
+
description: "1-indexed target page."
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
required: ["page"]
|
|
60
|
+
},
|
|
61
|
+
idempotent: !0,
|
|
62
|
+
errors: ["Page is out of range for the loaded document."],
|
|
63
|
+
examples: [{ args: { page: 2 } }],
|
|
64
|
+
descriptionKey: "ui.agent.pdfViewer.actions.goToPage",
|
|
47
65
|
description: "Navigate to a specific 1-indexed page.",
|
|
48
66
|
invoke: (o, t) => {
|
|
49
67
|
o.goToPage(t.page);
|
|
@@ -52,7 +70,23 @@ const Ge = [
|
|
|
52
70
|
set_zoom: {
|
|
53
71
|
safety: "read",
|
|
54
72
|
argsType: "{ zoom: PDFZoomPreset }",
|
|
55
|
-
|
|
73
|
+
argsSchema: {
|
|
74
|
+
type: "object",
|
|
75
|
+
properties: {
|
|
76
|
+
zoom: {
|
|
77
|
+
description: "Either a named preset ('fit-width' | 'fit-page' | 'actual-size') or a numeric scale factor (e.g. 1.5).",
|
|
78
|
+
oneOf: [
|
|
79
|
+
{ enum: ["fit-width", "fit-page", "actual-size"] },
|
|
80
|
+
{ type: "number", exclusiveMinimum: 0 }
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
required: ["zoom"]
|
|
85
|
+
},
|
|
86
|
+
idempotent: !0,
|
|
87
|
+
examples: [{ args: { zoom: "fit-width" } }, { args: { zoom: 1.5 } }],
|
|
88
|
+
descriptionKey: "ui.agent.pdfViewer.actions.setZoom",
|
|
89
|
+
description: "Apply a zoom preset or numeric scale factor.",
|
|
56
90
|
invoke: (o, t) => {
|
|
57
91
|
o.setZoom(t.zoom);
|
|
58
92
|
}
|
|
@@ -60,6 +94,19 @@ const Ge = [
|
|
|
60
94
|
search: {
|
|
61
95
|
safety: "read",
|
|
62
96
|
argsType: "{ query: string }",
|
|
97
|
+
argsSchema: {
|
|
98
|
+
type: "object",
|
|
99
|
+
properties: {
|
|
100
|
+
query: {
|
|
101
|
+
type: "string",
|
|
102
|
+
description: "Text to find and highlight in the loaded document."
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
required: ["query"]
|
|
106
|
+
},
|
|
107
|
+
idempotent: !0,
|
|
108
|
+
examples: [{ args: { query: "consent" } }],
|
|
109
|
+
descriptionKey: "ui.agent.pdfViewer.actions.search",
|
|
63
110
|
description: "Search the document for the given query and highlight matches.",
|
|
64
111
|
invoke: (o, t) => {
|
|
65
112
|
o.search(t.query);
|
|
@@ -67,6 +114,7 @@ const Ge = [
|
|
|
67
114
|
},
|
|
68
115
|
print: {
|
|
69
116
|
safety: "read",
|
|
117
|
+
descriptionKey: "ui.agent.pdfViewer.actions.print",
|
|
70
118
|
description: "Open the browser print dialog for the document.",
|
|
71
119
|
invoke: (o) => {
|
|
72
120
|
o.print();
|
|
@@ -125,7 +173,7 @@ const Pe = X(
|
|
|
125
173
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
126
174
|
"ds:aria-disabled:opacity-[var(--opacity-50)] ds:aria-disabled:cursor-not-allowed"
|
|
127
175
|
].join(" ")
|
|
128
|
-
),
|
|
176
|
+
), Me = X(
|
|
129
177
|
[
|
|
130
178
|
"ds:[min-block-size:var(--min-target-size)]",
|
|
131
179
|
"ds:inline-size-[4rem] ds:text-center",
|
|
@@ -190,10 +238,10 @@ const Pe = X(
|
|
|
190
238
|
function Y(o) {
|
|
191
239
|
return typeof o == "number";
|
|
192
240
|
}
|
|
193
|
-
function
|
|
241
|
+
function Ie(o, t, v) {
|
|
194
242
|
if (Y(o)) return o;
|
|
195
243
|
if (o === "actual-size" || !v) return 1;
|
|
196
|
-
const m = window.getComputedStyle(v),
|
|
244
|
+
const m = window.getComputedStyle(v), g = parseFloat(m.paddingInlineStart || "0") + parseFloat(m.paddingInlineEnd || "0"), h = parseFloat(m.paddingBlockStart || "0") + parseFloat(m.paddingBlockEnd || "0"), x = Math.max(v.clientWidth - g, 1), w = Math.max(v.clientHeight - h, 1), k = t.width, z = t.height;
|
|
197
245
|
return o === "fit-width" ? x / k : Math.min(x / k, w / z);
|
|
198
246
|
}
|
|
199
247
|
const ot = Le(
|
|
@@ -202,8 +250,8 @@ const ot = Le(
|
|
|
202
250
|
src: t,
|
|
203
251
|
initialPage: v = 1,
|
|
204
252
|
initialZoom: m = "fit-width",
|
|
205
|
-
pageRotation:
|
|
206
|
-
renderPageOverlay:
|
|
253
|
+
pageRotation: g,
|
|
254
|
+
renderPageOverlay: h,
|
|
207
255
|
onPageChange: x,
|
|
208
256
|
onLoadComplete: w,
|
|
209
257
|
onError: k,
|
|
@@ -212,26 +260,26 @@ const ot = Le(
|
|
|
212
260
|
ariaLabel: P,
|
|
213
261
|
className: S
|
|
214
262
|
}, b) => {
|
|
215
|
-
const { t: l } = me(),
|
|
216
|
-
() => `pdf-${
|
|
217
|
-
[
|
|
218
|
-
), [A, p] = y(!1), [K,
|
|
219
|
-
|
|
263
|
+
const { t: l } = me(), M = Ze(), I = ke(
|
|
264
|
+
() => `pdf-${M.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
265
|
+
[M]
|
|
266
|
+
), [A, p] = y(!1), [K, Q] = y(!1);
|
|
267
|
+
T(() => {
|
|
220
268
|
if (typeof document > "u") return;
|
|
221
269
|
p(document.documentElement.dir === "rtl");
|
|
222
|
-
const e = window.matchMedia("(prefers-reduced-motion: reduce)"), r = () =>
|
|
270
|
+
const e = window.matchMedia("(prefers-reduced-motion: reduce)"), r = () => Q(e.matches);
|
|
223
271
|
return r(), e.addEventListener("change", r), () => e.removeEventListener("change", r);
|
|
224
272
|
}, []);
|
|
225
|
-
const [s,
|
|
226
|
-
|
|
273
|
+
const [s, W] = y(null), [i, N] = y(null), [u, O] = y(v), [C, D] = y(m), [Z, q] = y({ start: Math.max(1, v - 1), end: v + 1 }), [U, R] = y(""), [n, f] = y(!1), [ee, ge] = y(""), [Oe, Re] = y({ current: 0, total: 0 }), ne = E(x), ae = E(w), se = E(k);
|
|
274
|
+
T(() => {
|
|
227
275
|
ne.current = x, ae.current = w, se.current = k;
|
|
228
276
|
}, [x, w, k]);
|
|
229
277
|
const ce = E(null);
|
|
230
|
-
|
|
278
|
+
T(() => {
|
|
231
279
|
ce.current = s;
|
|
232
|
-
}, [s]),
|
|
280
|
+
}, [s]), T(() => {
|
|
233
281
|
let e = !1;
|
|
234
|
-
|
|
282
|
+
W(null), N(null);
|
|
235
283
|
const r = {
|
|
236
284
|
disableJavaScript: !0,
|
|
237
285
|
isEvalSupported: !1
|
|
@@ -244,8 +292,8 @@ const ot = Le(
|
|
|
244
292
|
if (e) return;
|
|
245
293
|
let j;
|
|
246
294
|
try {
|
|
247
|
-
const $ = await d.getMetadata(),
|
|
248
|
-
j =
|
|
295
|
+
const $ = await d.getMetadata(), F = $ == null ? void 0 : $.info;
|
|
296
|
+
j = F == null ? void 0 : F.Title;
|
|
249
297
|
} catch {
|
|
250
298
|
j = void 0;
|
|
251
299
|
}
|
|
@@ -256,14 +304,14 @@ const ot = Le(
|
|
|
256
304
|
}
|
|
257
305
|
return;
|
|
258
306
|
}
|
|
259
|
-
const
|
|
260
|
-
|
|
307
|
+
const B = { doc: d, numPages: d.numPages, title: j };
|
|
308
|
+
W(B), (J = ae.current) == null || J.call(ae, { numPages: d.numPages, title: j });
|
|
261
309
|
},
|
|
262
310
|
(d) => {
|
|
263
|
-
var
|
|
311
|
+
var B;
|
|
264
312
|
if (e) return;
|
|
265
313
|
const j = d instanceof Error ? d : new Error(String(d));
|
|
266
|
-
N(j), (
|
|
314
|
+
N(j), (B = se.current) == null || B.call(se, j);
|
|
267
315
|
}
|
|
268
316
|
), () => {
|
|
269
317
|
e = !0, c.destroy();
|
|
@@ -276,17 +324,17 @@ const ot = Le(
|
|
|
276
324
|
ce.current = null;
|
|
277
325
|
}
|
|
278
326
|
};
|
|
279
|
-
}, [t]),
|
|
327
|
+
}, [t]), T(() => {
|
|
280
328
|
var e;
|
|
281
|
-
s && (
|
|
329
|
+
s && (R(
|
|
282
330
|
l("pdf.pageOf", { current: u, total: s.numPages })
|
|
283
331
|
), (e = ne.current) == null || e.call(ne, u));
|
|
284
332
|
}, [u, s, l]);
|
|
285
|
-
const oe = E(null), le = E([]),
|
|
333
|
+
const oe = E(null), le = E([]), V = H(
|
|
286
334
|
(e) => {
|
|
287
335
|
if (!s) return;
|
|
288
336
|
const r = Math.max(1, Math.min(e, s.numPages));
|
|
289
|
-
|
|
337
|
+
O(r);
|
|
290
338
|
const c = le.current[r - 1];
|
|
291
339
|
c && c.scrollIntoView({
|
|
292
340
|
behavior: "auto",
|
|
@@ -294,40 +342,40 @@ const ot = Le(
|
|
|
294
342
|
});
|
|
295
343
|
},
|
|
296
344
|
[s, K]
|
|
297
|
-
),
|
|
345
|
+
), he = H((e) => {
|
|
298
346
|
D(e);
|
|
299
|
-
}, []), te =
|
|
347
|
+
}, []), te = H(() => {
|
|
300
348
|
typeof window < "u" && window.print();
|
|
301
|
-
}, []), ve =
|
|
302
|
-
|
|
349
|
+
}, []), ve = H((e) => {
|
|
350
|
+
ge(e), f(e.length > 0);
|
|
303
351
|
}, []), ue = ke(
|
|
304
352
|
() => ({
|
|
305
|
-
goToPage:
|
|
306
|
-
setZoom:
|
|
353
|
+
goToPage: V,
|
|
354
|
+
setZoom: he,
|
|
307
355
|
search: ve,
|
|
308
356
|
print: te
|
|
309
357
|
}),
|
|
310
|
-
[
|
|
358
|
+
[V, he, ve, te]
|
|
311
359
|
);
|
|
312
|
-
Ke(b, () => ue, [ue]),
|
|
313
|
-
const Ae =
|
|
360
|
+
Ke(b, () => ue, [ue]), Be(et, ue, o);
|
|
361
|
+
const Ae = H(
|
|
314
362
|
(e) => {
|
|
315
363
|
if (!s) return;
|
|
316
364
|
const r = e.metaKey || e.ctrlKey;
|
|
317
365
|
if (e.key === "PageDown") {
|
|
318
|
-
e.preventDefault(),
|
|
366
|
+
e.preventDefault(), V(u + 1);
|
|
319
367
|
return;
|
|
320
368
|
}
|
|
321
369
|
if (e.key === "PageUp") {
|
|
322
|
-
e.preventDefault(),
|
|
370
|
+
e.preventDefault(), V(u - 1);
|
|
323
371
|
return;
|
|
324
372
|
}
|
|
325
373
|
if (e.key === "Home") {
|
|
326
|
-
e.preventDefault(),
|
|
374
|
+
e.preventDefault(), V(1);
|
|
327
375
|
return;
|
|
328
376
|
}
|
|
329
377
|
if (e.key === "End") {
|
|
330
|
-
e.preventDefault(),
|
|
378
|
+
e.preventDefault(), V(s.numPages);
|
|
331
379
|
return;
|
|
332
380
|
}
|
|
333
381
|
if (r && e.key.toLowerCase() === "f") {
|
|
@@ -350,26 +398,26 @@ const ot = Le(
|
|
|
350
398
|
}
|
|
351
399
|
r && e.key.toLowerCase() === "p" && (e.preventDefault(), te());
|
|
352
400
|
},
|
|
353
|
-
[u,
|
|
401
|
+
[u, V, te, s]
|
|
354
402
|
), fe = E(u);
|
|
355
|
-
|
|
403
|
+
T(() => {
|
|
356
404
|
fe.current = u;
|
|
357
|
-
}, [u]),
|
|
405
|
+
}, [u]), T(() => {
|
|
358
406
|
if (!s) return;
|
|
359
407
|
const e = oe.current;
|
|
360
408
|
if (!e) return;
|
|
361
409
|
const r = /* @__PURE__ */ new Map(), c = new IntersectionObserver(
|
|
362
410
|
(d) => {
|
|
363
|
-
for (const
|
|
364
|
-
const G =
|
|
411
|
+
for (const F of d) {
|
|
412
|
+
const G = F.target.dataset.pageNumber;
|
|
365
413
|
if (!G) continue;
|
|
366
414
|
const _e = Number(G);
|
|
367
|
-
r.set(_e,
|
|
415
|
+
r.set(_e, F.intersectionRatio);
|
|
368
416
|
}
|
|
369
|
-
let j = fe.current,
|
|
370
|
-
for (const [
|
|
371
|
-
G >
|
|
372
|
-
|
|
417
|
+
let j = fe.current, B = 0, J = 1 / 0, $ = -1 / 0;
|
|
418
|
+
for (const [F, G] of r.entries())
|
|
419
|
+
G > B && (j = F, B = G), G > 0 && (J = Math.min(J, F), $ = Math.max($, F));
|
|
420
|
+
B > 0 && j !== fe.current && O(j), J !== 1 / 0 && q({
|
|
373
421
|
start: Math.max(1, J - 1),
|
|
374
422
|
end: Math.min(s.numPages, $ + 1)
|
|
375
423
|
});
|
|
@@ -380,24 +428,24 @@ const ot = Le(
|
|
|
380
428
|
d && c.observe(d);
|
|
381
429
|
}), () => c.disconnect();
|
|
382
430
|
}, [s]);
|
|
383
|
-
const [je,
|
|
384
|
-
|
|
431
|
+
const [je, Ve] = y(0);
|
|
432
|
+
T(() => {
|
|
385
433
|
const e = oe.current;
|
|
386
434
|
if (!e || typeof ResizeObserver > "u") return;
|
|
387
435
|
const r = new ResizeObserver(() => {
|
|
388
|
-
(C === "fit-width" || C === "fit-page") &&
|
|
436
|
+
(C === "fit-width" || C === "fit-page") && Ve((c) => c + 1);
|
|
389
437
|
});
|
|
390
438
|
return r.observe(e), () => r.disconnect();
|
|
391
439
|
}, [C]);
|
|
392
|
-
const be = E([]), [ie, ye] = y(0),
|
|
440
|
+
const be = E([]), [ie, ye] = y(0), Fe = H(
|
|
393
441
|
(e) => (r) => {
|
|
394
442
|
be.current[e] = r;
|
|
395
443
|
},
|
|
396
444
|
[]
|
|
397
|
-
), xe =
|
|
445
|
+
), xe = H((e) => {
|
|
398
446
|
const r = be.current[e];
|
|
399
447
|
r && r.focus();
|
|
400
|
-
}, []), de = L === "minimal" ? 2 : 8, Ee =
|
|
448
|
+
}, []), de = L === "minimal" ? 2 : 8, Ee = H(
|
|
401
449
|
(e) => {
|
|
402
450
|
const r = A ? "ArrowLeft" : "ArrowRight", c = A ? "ArrowRight" : "ArrowLeft";
|
|
403
451
|
let d = null;
|
|
@@ -421,7 +469,7 @@ const ot = Le(
|
|
|
421
469
|
/* @__PURE__ */ _(
|
|
422
470
|
"div",
|
|
423
471
|
{
|
|
424
|
-
id:
|
|
472
|
+
id: I,
|
|
425
473
|
role: "region",
|
|
426
474
|
"aria-label": P ?? l("pdf.toolbarLabel"),
|
|
427
475
|
className: [Pe(), S].filter(Boolean).join(" "),
|
|
@@ -439,9 +487,9 @@ const ot = Le(
|
|
|
439
487
|
currentPage: u,
|
|
440
488
|
numPages: (s == null ? void 0 : s.numPages) ?? 0,
|
|
441
489
|
zoom: C,
|
|
442
|
-
onPrev: () =>
|
|
443
|
-
onNext: () =>
|
|
444
|
-
onJump: (e) =>
|
|
490
|
+
onPrev: () => V(u - 1),
|
|
491
|
+
onNext: () => V(u + 1),
|
|
492
|
+
onJump: (e) => V(e),
|
|
445
493
|
onZoomIn: () => {
|
|
446
494
|
D(
|
|
447
495
|
(e) => Y(e) ? Math.min(e * 1.25, 4) : 1.25
|
|
@@ -459,10 +507,10 @@ const ot = Le(
|
|
|
459
507
|
onSearchOpenChange: f,
|
|
460
508
|
searchQuery: ee,
|
|
461
509
|
onSearchQueryChange: (e) => {
|
|
462
|
-
|
|
510
|
+
ge(e);
|
|
463
511
|
},
|
|
464
|
-
searchMatches:
|
|
465
|
-
register:
|
|
512
|
+
searchMatches: Oe,
|
|
513
|
+
register: Fe,
|
|
466
514
|
focusIndex: ie,
|
|
467
515
|
setFocusIndex: ye,
|
|
468
516
|
onToolbarKeyDown: Ee,
|
|
@@ -486,8 +534,8 @@ const ot = Le(
|
|
|
486
534
|
totalPages: s.numPages,
|
|
487
535
|
doc: s.doc,
|
|
488
536
|
zoom: C,
|
|
489
|
-
pageRotation:
|
|
490
|
-
renderPageOverlay:
|
|
537
|
+
pageRotation: g,
|
|
538
|
+
renderPageOverlay: h,
|
|
491
539
|
container: oe.current,
|
|
492
540
|
resizeTick: je,
|
|
493
541
|
shouldRender: e >= Z.start && e <= Z.end,
|
|
@@ -496,7 +544,7 @@ const ot = Le(
|
|
|
496
544
|
},
|
|
497
545
|
searchQuery: ee,
|
|
498
546
|
onMatchCount: (r) => {
|
|
499
|
-
|
|
547
|
+
Re((c) => r === 0 && c.total === 0 ? c : {
|
|
500
548
|
current: Math.min(c.current || 1, r || 1),
|
|
501
549
|
total: Math.max(c.total, r)
|
|
502
550
|
});
|
|
@@ -505,7 +553,7 @@ const ot = Le(
|
|
|
505
553
|
e
|
|
506
554
|
)
|
|
507
555
|
) : /* @__PURE__ */ _("div", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:text-[var(--muted-foreground)] ds:p-[var(--spacing-lg)]", children: [
|
|
508
|
-
/* @__PURE__ */ a(
|
|
556
|
+
/* @__PURE__ */ a(qe, { variant: "pulse", size: "sm", label: l("pdf.loading") }),
|
|
509
557
|
/* @__PURE__ */ a("span", { children: l("pdf.loading") })
|
|
510
558
|
] })
|
|
511
559
|
}
|
|
@@ -521,8 +569,8 @@ function it(o) {
|
|
|
521
569
|
const { t } = me(), {
|
|
522
570
|
variant: v,
|
|
523
571
|
currentPage: m,
|
|
524
|
-
numPages:
|
|
525
|
-
zoom:
|
|
572
|
+
numPages: g,
|
|
573
|
+
zoom: h,
|
|
526
574
|
onPrev: x,
|
|
527
575
|
onNext: w,
|
|
528
576
|
onJump: k,
|
|
@@ -532,32 +580,32 @@ function it(o) {
|
|
|
532
580
|
onOpenSearch: S,
|
|
533
581
|
onPrint: b,
|
|
534
582
|
searchOpen: l,
|
|
535
|
-
onSearchOpenChange:
|
|
536
|
-
searchQuery:
|
|
583
|
+
onSearchOpenChange: M,
|
|
584
|
+
searchQuery: I,
|
|
537
585
|
onSearchQueryChange: A,
|
|
538
586
|
searchMatches: p,
|
|
539
587
|
register: K,
|
|
540
|
-
focusIndex:
|
|
588
|
+
focusIndex: Q,
|
|
541
589
|
setFocusIndex: s,
|
|
542
|
-
onToolbarKeyDown:
|
|
543
|
-
} = o, i = v === "minimal", N = i ? 0 : 3, u = i ? 1 : 4,
|
|
544
|
-
|
|
590
|
+
onToolbarKeyDown: W
|
|
591
|
+
} = o, i = v === "minimal", N = i ? 0 : 3, u = i ? 1 : 4, O = 5, [C, D] = y(String(m));
|
|
592
|
+
T(() => {
|
|
545
593
|
D(String(m));
|
|
546
594
|
}, [m]);
|
|
547
|
-
const Z = m <= 1,
|
|
595
|
+
const Z = m <= 1, q = m >= g;
|
|
548
596
|
function U() {
|
|
549
597
|
const n = Number(C);
|
|
550
|
-
Number.isFinite(n) && n >= 1 ? k(Math.min(n,
|
|
598
|
+
Number.isFinite(n) && n >= 1 ? k(Math.min(n, g)) : D(String(m));
|
|
551
599
|
}
|
|
552
|
-
function
|
|
600
|
+
function R(n) {
|
|
553
601
|
return /* @__PURE__ */ a(
|
|
554
602
|
"button",
|
|
555
603
|
{
|
|
556
604
|
type: "button",
|
|
557
605
|
ref: K(n.index),
|
|
558
|
-
tabIndex: n.index ===
|
|
606
|
+
tabIndex: n.index === Q ? 0 : -1,
|
|
559
607
|
onFocus: () => s(n.index),
|
|
560
|
-
onKeyDown:
|
|
608
|
+
onKeyDown: W,
|
|
561
609
|
"aria-label": n.label,
|
|
562
610
|
"aria-disabled": n.disabled || void 0,
|
|
563
611
|
title: n.label,
|
|
@@ -581,26 +629,26 @@ function it(o) {
|
|
|
581
629
|
className: tt(),
|
|
582
630
|
children: [
|
|
583
631
|
!i && /* @__PURE__ */ _(we, { children: [
|
|
584
|
-
|
|
632
|
+
R({
|
|
585
633
|
index: 0,
|
|
586
634
|
label: t("pdf.previousPage"),
|
|
587
635
|
disabled: Z,
|
|
588
636
|
onActivate: x,
|
|
589
637
|
icon: /* @__PURE__ */ a(
|
|
590
|
-
|
|
638
|
+
Qe,
|
|
591
639
|
{
|
|
592
640
|
"aria-hidden": "true",
|
|
593
641
|
className: "ds:block-size-4 ds:inline-size-4 ds:rtl:rotate-180"
|
|
594
642
|
}
|
|
595
643
|
)
|
|
596
644
|
}),
|
|
597
|
-
|
|
645
|
+
R({
|
|
598
646
|
index: 1,
|
|
599
647
|
label: t("pdf.nextPage"),
|
|
600
|
-
disabled:
|
|
648
|
+
disabled: q,
|
|
601
649
|
onActivate: w,
|
|
602
650
|
icon: /* @__PURE__ */ a(
|
|
603
|
-
|
|
651
|
+
We,
|
|
604
652
|
{
|
|
605
653
|
"aria-hidden": "true",
|
|
606
654
|
className: "ds:block-size-4 ds:inline-size-4 ds:rtl:rotate-180"
|
|
@@ -612,7 +660,7 @@ function it(o) {
|
|
|
612
660
|
{
|
|
613
661
|
type: "number",
|
|
614
662
|
min: 1,
|
|
615
|
-
max: Math.max(
|
|
663
|
+
max: Math.max(g, 1),
|
|
616
664
|
value: C,
|
|
617
665
|
onChange: (n) => D(n.target.value),
|
|
618
666
|
onKeyDown: (n) => {
|
|
@@ -621,9 +669,9 @@ function it(o) {
|
|
|
621
669
|
onBlur: U,
|
|
622
670
|
onFocus: () => s(2),
|
|
623
671
|
ref: K(2),
|
|
624
|
-
tabIndex:
|
|
672
|
+
tabIndex: Q === 2 ? 0 : -1,
|
|
625
673
|
"aria-label": t("pdf.currentPageInput"),
|
|
626
|
-
className:
|
|
674
|
+
className: Me()
|
|
627
675
|
}
|
|
628
676
|
),
|
|
629
677
|
/* @__PURE__ */ a(
|
|
@@ -631,7 +679,7 @@ function it(o) {
|
|
|
631
679
|
{
|
|
632
680
|
"aria-hidden": "true",
|
|
633
681
|
className: "type-body-sm ds:text-[var(--muted-foreground)]",
|
|
634
|
-
children: t("pdf.pageOf", { current: m, total:
|
|
682
|
+
children: t("pdf.pageOf", { current: m, total: g || 0 })
|
|
635
683
|
}
|
|
636
684
|
),
|
|
637
685
|
/* @__PURE__ */ a(
|
|
@@ -642,7 +690,7 @@ function it(o) {
|
|
|
642
690
|
}
|
|
643
691
|
)
|
|
644
692
|
] }),
|
|
645
|
-
|
|
693
|
+
R({
|
|
646
694
|
index: N,
|
|
647
695
|
label: t("pdf.zoom.out"),
|
|
648
696
|
onActivate: L,
|
|
@@ -654,7 +702,7 @@ function it(o) {
|
|
|
654
702
|
}
|
|
655
703
|
)
|
|
656
704
|
}),
|
|
657
|
-
|
|
705
|
+
R({
|
|
658
706
|
index: u,
|
|
659
707
|
label: t("pdf.zoom.in"),
|
|
660
708
|
onActivate: z,
|
|
@@ -670,7 +718,7 @@ function it(o) {
|
|
|
670
718
|
"select",
|
|
671
719
|
{
|
|
672
720
|
"aria-label": t("pdf.zoom.preset"),
|
|
673
|
-
value: typeof
|
|
721
|
+
value: typeof h == "number" ? String(h) : h,
|
|
674
722
|
onChange: (n) => {
|
|
675
723
|
const f = n.target.value;
|
|
676
724
|
if (f === "fit-width" || f === "fit-page" || f === "actual-size")
|
|
@@ -680,10 +728,10 @@ function it(o) {
|
|
|
680
728
|
Number.isFinite(ee) && P(ee);
|
|
681
729
|
}
|
|
682
730
|
},
|
|
683
|
-
ref: K(
|
|
684
|
-
tabIndex:
|
|
685
|
-
onFocus: () => s(
|
|
686
|
-
onKeyDown:
|
|
731
|
+
ref: K(O),
|
|
732
|
+
tabIndex: Q === O ? 0 : -1,
|
|
733
|
+
onFocus: () => s(O),
|
|
734
|
+
onKeyDown: W,
|
|
687
735
|
className: rt(),
|
|
688
736
|
children: [
|
|
689
737
|
/* @__PURE__ */ a("option", { value: "fit-width", children: t("pdf.zoom.fitWidth") }),
|
|
@@ -698,9 +746,9 @@ function it(o) {
|
|
|
698
746
|
re.Root,
|
|
699
747
|
{
|
|
700
748
|
open: l,
|
|
701
|
-
onOpenChange:
|
|
749
|
+
onOpenChange: M,
|
|
702
750
|
children: [
|
|
703
|
-
/* @__PURE__ */ a(re.Trigger, { asChild: !0, children:
|
|
751
|
+
/* @__PURE__ */ a(re.Trigger, { asChild: !0, children: R({
|
|
704
752
|
index: 6,
|
|
705
753
|
label: t("pdf.search.open"),
|
|
706
754
|
onActivate: S,
|
|
@@ -730,11 +778,11 @@ function it(o) {
|
|
|
730
778
|
{
|
|
731
779
|
type: "search",
|
|
732
780
|
autoFocus: !0,
|
|
733
|
-
value:
|
|
781
|
+
value: I,
|
|
734
782
|
onChange: (n) => A(n.target.value),
|
|
735
783
|
placeholder: t("pdf.search.placeholder"),
|
|
736
784
|
"aria-label": t("pdf.search.placeholder"),
|
|
737
|
-
className:
|
|
785
|
+
className: Me({
|
|
738
786
|
className: "ds:inline-size-[16rem] ds:text-start"
|
|
739
787
|
})
|
|
740
788
|
}
|
|
@@ -747,7 +795,7 @@ function it(o) {
|
|
|
747
795
|
children: p.total > 0 ? t("pdf.search.countOfTotal", {
|
|
748
796
|
current: p.current,
|
|
749
797
|
total: p.total
|
|
750
|
-
}) :
|
|
798
|
+
}) : I ? t("pdf.search.noResults") : ""
|
|
751
799
|
}
|
|
752
800
|
),
|
|
753
801
|
/* @__PURE__ */ a(re.Close, { asChild: !0, children: /* @__PURE__ */ a(
|
|
@@ -757,7 +805,7 @@ function it(o) {
|
|
|
757
805
|
"aria-label": t("pdf.search.close"),
|
|
758
806
|
className: Se(),
|
|
759
807
|
children: /* @__PURE__ */ a(
|
|
760
|
-
|
|
808
|
+
He,
|
|
761
809
|
{
|
|
762
810
|
"aria-hidden": "true",
|
|
763
811
|
className: "ds:block-size-4 ds:inline-size-4"
|
|
@@ -771,7 +819,7 @@ function it(o) {
|
|
|
771
819
|
]
|
|
772
820
|
}
|
|
773
821
|
),
|
|
774
|
-
|
|
822
|
+
R({
|
|
775
823
|
index: 7,
|
|
776
824
|
label: t("pdf.print"),
|
|
777
825
|
onActivate: b,
|
|
@@ -793,8 +841,8 @@ function dt(o) {
|
|
|
793
841
|
pageNumber: t,
|
|
794
842
|
totalPages: v,
|
|
795
843
|
doc: m,
|
|
796
|
-
zoom:
|
|
797
|
-
pageRotation:
|
|
844
|
+
zoom: g,
|
|
845
|
+
pageRotation: h,
|
|
798
846
|
renderPageOverlay: x,
|
|
799
847
|
container: w,
|
|
800
848
|
resizeTick: k,
|
|
@@ -802,56 +850,56 @@ function dt(o) {
|
|
|
802
850
|
registerRef: L,
|
|
803
851
|
searchQuery: P,
|
|
804
852
|
onMatchCount: S
|
|
805
|
-
} = o, { t: b } = me(), l = E(null),
|
|
853
|
+
} = o, { t: b } = me(), l = E(null), M = E(null), [I, A] = y({
|
|
806
854
|
width: 612,
|
|
807
855
|
height: 792
|
|
808
856
|
}), [p, K] = y(null);
|
|
809
|
-
|
|
857
|
+
T(() => {
|
|
810
858
|
let i = !1;
|
|
811
859
|
return m.getPage(t).then((N) => {
|
|
812
860
|
i || K(N);
|
|
813
861
|
}), () => {
|
|
814
862
|
i = !0;
|
|
815
863
|
};
|
|
816
|
-
}, [m, t]),
|
|
864
|
+
}, [m, t]), T(() => {
|
|
817
865
|
if (!p) return;
|
|
818
|
-
const i = (C) =>
|
|
866
|
+
const i = (C) => h === void 0 ? { scale: C } : { scale: C, rotation: h }, N = p.getViewport(i(1)), u = Ie(g, N, w), O = p.getViewport(i(u));
|
|
819
867
|
A({
|
|
820
|
-
width: Math.floor(
|
|
821
|
-
height: Math.floor(
|
|
868
|
+
width: Math.floor(O.width),
|
|
869
|
+
height: Math.floor(O.height)
|
|
822
870
|
});
|
|
823
|
-
}, [p,
|
|
824
|
-
const
|
|
825
|
-
|
|
871
|
+
}, [p, g, w, k, h]);
|
|
872
|
+
const Q = h ?? (p == null ? void 0 : p.rotate) ?? 0;
|
|
873
|
+
T(() => {
|
|
826
874
|
if (!p || !z) {
|
|
827
875
|
const f = l.current;
|
|
828
876
|
f && !z && (f.width = 0);
|
|
829
877
|
return;
|
|
830
878
|
}
|
|
831
|
-
const i = l.current, N =
|
|
879
|
+
const i = l.current, N = M.current;
|
|
832
880
|
if (!i) return;
|
|
833
881
|
const u = i.getContext("2d");
|
|
834
882
|
if (!u) return;
|
|
835
|
-
const
|
|
836
|
-
i.width = Math.floor(Z.width *
|
|
883
|
+
const O = (f) => h === void 0 ? { scale: f } : { scale: f, rotation: h }, C = p.getViewport(O(1)), D = Ie(g, C, w), Z = p.getViewport(O(D)), q = Math.max(1, window.devicePixelRatio || 1);
|
|
884
|
+
i.width = Math.floor(Z.width * q), i.height = Math.floor(Z.height * q), u.setTransform(q, 0, 0, q, 0, 0);
|
|
837
885
|
const U = p.render({
|
|
838
886
|
canvas: i,
|
|
839
887
|
canvasContext: u,
|
|
840
888
|
viewport: Z
|
|
841
889
|
});
|
|
842
|
-
let
|
|
890
|
+
let R = !1, n = null;
|
|
843
891
|
return U.promise.then(async () => {
|
|
844
|
-
if (
|
|
892
|
+
if (R || !N) return;
|
|
845
893
|
N.textContent = "";
|
|
846
894
|
const f = await p.getTextContent();
|
|
847
|
-
|
|
895
|
+
R || (n = new pe.TextLayer({
|
|
848
896
|
textContentSource: f,
|
|
849
897
|
container: N,
|
|
850
898
|
viewport: Z
|
|
851
899
|
}), await n.render(), Ce(N, P, S));
|
|
852
900
|
}).catch(() => {
|
|
853
901
|
}), () => {
|
|
854
|
-
|
|
902
|
+
R = !0;
|
|
855
903
|
try {
|
|
856
904
|
U.cancel();
|
|
857
905
|
} catch {
|
|
@@ -865,23 +913,23 @@ function dt(o) {
|
|
|
865
913
|
}, [
|
|
866
914
|
p,
|
|
867
915
|
z,
|
|
868
|
-
|
|
916
|
+
g,
|
|
869
917
|
w,
|
|
870
918
|
k,
|
|
871
919
|
P,
|
|
872
920
|
S,
|
|
873
|
-
|
|
874
|
-
]),
|
|
921
|
+
h
|
|
922
|
+
]), T(() => {
|
|
875
923
|
if (!z) return;
|
|
876
|
-
const i =
|
|
924
|
+
const i = M.current;
|
|
877
925
|
i && Ce(i, P, S);
|
|
878
926
|
}, [P, z, S]);
|
|
879
927
|
const s = {
|
|
880
|
-
width:
|
|
881
|
-
height:
|
|
882
|
-
},
|
|
883
|
-
width:
|
|
884
|
-
height:
|
|
928
|
+
width: I.width,
|
|
929
|
+
height: I.height
|
|
930
|
+
}, W = {
|
|
931
|
+
width: I.width,
|
|
932
|
+
height: I.height
|
|
885
933
|
};
|
|
886
934
|
return /* @__PURE__ */ _(
|
|
887
935
|
"article",
|
|
@@ -892,13 +940,13 @@ function dt(o) {
|
|
|
892
940
|
"data-page-number": t,
|
|
893
941
|
"aria-label": b("pdf.pageOf", { current: t, total: v }),
|
|
894
942
|
className: at(),
|
|
895
|
-
style:
|
|
943
|
+
style: W,
|
|
896
944
|
children: [
|
|
897
945
|
/* @__PURE__ */ a("canvas", { ref: l, style: s }),
|
|
898
946
|
/* @__PURE__ */ a(
|
|
899
947
|
"div",
|
|
900
948
|
{
|
|
901
|
-
ref:
|
|
949
|
+
ref: M,
|
|
902
950
|
"aria-hidden": "false",
|
|
903
951
|
className: [
|
|
904
952
|
"ds:absolute ds:inset-0",
|
|
@@ -922,9 +970,9 @@ function dt(o) {
|
|
|
922
970
|
"data-page-number": t,
|
|
923
971
|
children: x({
|
|
924
972
|
pageNumber: t,
|
|
925
|
-
pageWidthCss:
|
|
926
|
-
pageHeightCss:
|
|
927
|
-
rotation:
|
|
973
|
+
pageWidthCss: I.width,
|
|
974
|
+
pageHeightCss: I.height,
|
|
975
|
+
rotation: Q
|
|
928
976
|
})
|
|
929
977
|
}
|
|
930
978
|
) : null
|
|
@@ -942,14 +990,14 @@ function Ce(o, t, v) {
|
|
|
942
990
|
v(0);
|
|
943
991
|
return;
|
|
944
992
|
}
|
|
945
|
-
const
|
|
946
|
-
if (!
|
|
993
|
+
const g = Ne(t);
|
|
994
|
+
if (!g) {
|
|
947
995
|
v(0);
|
|
948
996
|
return;
|
|
949
997
|
}
|
|
950
|
-
const
|
|
998
|
+
const h = Array.from(o.querySelectorAll("span")), x = [], w = [];
|
|
951
999
|
let k = 0;
|
|
952
|
-
for (const b of
|
|
1000
|
+
for (const b of h) {
|
|
953
1001
|
const l = Ne(b.textContent ?? "");
|
|
954
1002
|
x.push({ start: k, end: k + l.length }), w.push(l), k += l.length;
|
|
955
1003
|
}
|
|
@@ -957,23 +1005,23 @@ function Ce(o, t, v) {
|
|
|
957
1005
|
let L = 0;
|
|
958
1006
|
const P = /* @__PURE__ */ new Set();
|
|
959
1007
|
let S = 0;
|
|
960
|
-
for (; S <= z.length -
|
|
961
|
-
const b = z.indexOf(
|
|
1008
|
+
for (; S <= z.length - g.length; ) {
|
|
1009
|
+
const b = z.indexOf(g, S);
|
|
962
1010
|
if (b === -1) break;
|
|
963
1011
|
L += 1;
|
|
964
|
-
const l = b +
|
|
965
|
-
for (let
|
|
966
|
-
const { start:
|
|
967
|
-
|
|
1012
|
+
const l = b + g.length;
|
|
1013
|
+
for (let M = 0; M < x.length; M++) {
|
|
1014
|
+
const { start: I, end: A } = x[M];
|
|
1015
|
+
I < l && A > b && P.add(M);
|
|
968
1016
|
}
|
|
969
1017
|
S = l;
|
|
970
1018
|
}
|
|
971
1019
|
P.forEach((b) => {
|
|
972
|
-
|
|
1020
|
+
h[b].setAttribute("data-match", "true");
|
|
973
1021
|
}), v(L);
|
|
974
1022
|
}
|
|
975
1023
|
export {
|
|
976
1024
|
ot as P,
|
|
977
1025
|
et as p
|
|
978
1026
|
};
|
|
979
|
-
//# sourceMappingURL=pdf-viewer-
|
|
1027
|
+
//# sourceMappingURL=pdf-viewer-D6BPfW2D.js.map
|