@alfadocs/ui-kit-debug 0.41.2 → 0.43.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/address-autocomplete-CSjMrBvu.js +358 -0
- package/dist/_chunks/address-autocomplete-CSjMrBvu.js.map +1 -0
- package/dist/_chunks/{alia-sidebar-DXsYPinm.js → alia-sidebar-BpX4z_af.js} +2 -2
- package/dist/_chunks/{alia-sidebar-DXsYPinm.js.map → alia-sidebar-BpX4z_af.js.map} +1 -1
- package/dist/_chunks/{ar-Cn_NxqkN.js → ar-DEz65ZJW.js} +2 -2
- package/dist/_chunks/{ar-Cn_NxqkN.js.map → ar-DEz65ZJW.js.map} +1 -1
- package/dist/_chunks/bmi-calculator-DuVSFDuw.js +259 -0
- package/dist/_chunks/bmi-calculator-DuVSFDuw.js.map +1 -0
- package/dist/_chunks/{booking-4mCw3Mpl.js → booking-CtLwaxkK.js} +4 -4
- package/dist/_chunks/{booking-4mCw3Mpl.js.map → booking-CtLwaxkK.js.map} +1 -1
- package/dist/_chunks/{breadcrumb-CLlhx7qo.js → breadcrumb-OTbaY70e.js} +4 -4
- package/dist/_chunks/{breadcrumb-CLlhx7qo.js.map → breadcrumb-OTbaY70e.js.map} +1 -1
- package/dist/_chunks/{calculator-dialog-B74fqpFZ.js → calculator-dialog-DdexHrTP.js} +2 -2
- package/dist/_chunks/{calculator-dialog-B74fqpFZ.js.map → calculator-dialog-DdexHrTP.js.map} +1 -1
- package/dist/_chunks/{chart-Cbt0_sKv.js → chart-Cg3e9EH9.js} +101 -99
- package/dist/_chunks/chart-Cg3e9EH9.js.map +1 -0
- package/dist/_chunks/cycle-calculator-Dln-y1k_.js +192 -0
- package/dist/_chunks/cycle-calculator-Dln-y1k_.js.map +1 -0
- package/dist/_chunks/{date-picker-CvQfs6Xh.js → date-picker-Bq7xhMA-.js} +109 -108
- package/dist/_chunks/{date-picker-CvQfs6Xh.js.map → date-picker-Bq7xhMA-.js.map} +1 -1
- package/dist/_chunks/date-picker-variants-DLi1Va_e.js +3238 -0
- package/dist/_chunks/date-picker-variants-DLi1Va_e.js.map +1 -0
- package/dist/_chunks/{date-range-picker-U9fn1g9d.js → date-range-picker-DcXuI9y7.js} +20 -19
- package/dist/_chunks/date-range-picker-DcXuI9y7.js.map +1 -0
- package/dist/_chunks/{date-time-picker-Cva0ZCWw.js → date-time-picker-RimumeLR.js} +18 -17
- package/dist/_chunks/date-time-picker-RimumeLR.js.map +1 -0
- package/dist/_chunks/{de-BMM2H7Bs.js → de-bTBGdjPS.js} +2 -2
- package/dist/_chunks/{de-BMM2H7Bs.js.map → de-bTBGdjPS.js.map} +1 -1
- package/dist/_chunks/{dialog-Cee13rHU.js → dialog-DOYgd75U.js} +46 -37
- package/dist/_chunks/dialog-DOYgd75U.js.map +1 -0
- package/dist/_chunks/{document-scanner-CqS_klIr.js → document-scanner-BqLsGs4Y.js} +7 -7
- package/dist/_chunks/{document-scanner-CqS_klIr.js.map → document-scanner-BqLsGs4Y.js.map} +1 -1
- package/dist/_chunks/{dropdown-menu-BC5ZdOMo.js → dropdown-menu-CUEXqKis.js} +2 -2
- package/dist/_chunks/{dropdown-menu-BC5ZdOMo.js.map → dropdown-menu-CUEXqKis.js.map} +1 -1
- package/dist/_chunks/{due-date-calculator-CUspKSTw.js → due-date-calculator-Cc4dRqTI.js} +62 -41
- package/dist/_chunks/due-date-calculator-Cc4dRqTI.js.map +1 -0
- package/dist/_chunks/{editable-currency-cell-renderer-DgkCIIcO.js → editable-currency-cell-renderer-9jqwDv5x.js} +3 -3
- package/dist/_chunks/{editable-currency-cell-renderer-DgkCIIcO.js.map → editable-currency-cell-renderer-9jqwDv5x.js.map} +1 -1
- package/dist/_chunks/{el-BYPonAaK.js → el-BWG5RXxa.js} +6 -6
- package/dist/_chunks/{el-BYPonAaK.js.map → el-BWG5RXxa.js.map} +1 -1
- package/dist/_chunks/{es-CMkVCQ4F.js → es-DfO_G435.js} +2 -2
- package/dist/_chunks/{es-CMkVCQ4F.js.map → es-DfO_G435.js.map} +1 -1
- package/dist/_chunks/{fr-BcuWxqft.js → fr-BTn24bs8.js} +2 -2
- package/dist/_chunks/{fr-BcuWxqft.js.map → fr-BTn24bs8.js.map} +1 -1
- package/dist/_chunks/{freemium-paywall-BAk3a6er.js → freemium-paywall-BLXESpH4.js} +2 -2
- package/dist/_chunks/{freemium-paywall-BAk3a6er.js.map → freemium-paywall-BLXESpH4.js.map} +1 -1
- package/dist/_chunks/{gestation-BXEgDGmP.js → gestation-mWF4AXea.js} +3 -3
- package/dist/_chunks/{gestation-BXEgDGmP.js.map → gestation-mWF4AXea.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-CsQ05qDy.js → gestational-age-calculator-ZMSrzkRW.js} +59 -45
- package/dist/_chunks/gestational-age-calculator-ZMSrzkRW.js.map +1 -0
- package/dist/_chunks/{header-CTZWX-tm.js → header-Ce1Br27u.js} +70 -75
- package/dist/_chunks/header-Ce1Br27u.js.map +1 -0
- package/dist/_chunks/{header-settings-CBLwUK6t.js → header-settings-Bx0Biimh.js} +2 -2
- package/dist/_chunks/{header-settings-CBLwUK6t.js.map → header-settings-Bx0Biimh.js.map} +1 -1
- package/dist/_chunks/{hi-wkq_rQAh.js → hi-Dj3oYd84.js} +2 -2
- package/dist/_chunks/{hi-wkq_rQAh.js.map → hi-Dj3oYd84.js.map} +1 -1
- package/dist/_chunks/index.modern-D2LGACWg.js +1529 -0
- package/dist/_chunks/index.modern-D2LGACWg.js.map +1 -0
- package/dist/_chunks/insert-result-DisOY2G-.js +243 -0
- package/dist/_chunks/insert-result-DisOY2G-.js.map +1 -0
- package/dist/_chunks/{isSameWeek-Bim5ftRd.js → isSameWeek-HfxKk6Lz.js} +2 -2
- package/dist/_chunks/{isSameWeek-Bim5ftRd.js.map → isSameWeek-HfxKk6Lz.js.map} +1 -1
- package/dist/_chunks/{it-GiQrQ9p4.js → it-Y85ofIQQ.js} +7 -7
- package/dist/_chunks/{it-GiQrQ9p4.js.map → it-Y85ofIQQ.js.map} +1 -1
- package/dist/_chunks/{ja-qfYg3Rua.js → ja-CQ7J6YoA.js} +2 -2
- package/dist/_chunks/{ja-qfYg3Rua.js.map → ja-CQ7J6YoA.js.map} +1 -1
- package/dist/_chunks/{kbd-Cglkd7CY.js → kbd-D855ZXIW.js} +2 -2
- package/dist/_chunks/{kbd-Cglkd7CY.js.map → kbd-D855ZXIW.js.map} +1 -1
- package/dist/_chunks/map-view-Tb5VfK9Y.js +333 -0
- package/dist/_chunks/map-view-Tb5VfK9Y.js.map +1 -0
- package/dist/_chunks/marketplace-app-shell-Dc5cTIt8.js +428 -0
- package/dist/_chunks/marketplace-app-shell-Dc5cTIt8.js.map +1 -0
- package/dist/_chunks/{nl-xOogO4sZ.js → nl-D9kHCmp3.js} +2 -2
- package/dist/_chunks/{nl-xOogO4sZ.js.map → nl-D9kHCmp3.js.map} +1 -1
- package/dist/_chunks/{patient-search-CBq62kmL.js → patient-search-DPe2ZYEL.js} +2 -2
- package/dist/_chunks/{patient-search-CBq62kmL.js.map → patient-search-DPe2ZYEL.js.map} +1 -1
- package/dist/_chunks/{patient-shell-DF81lALv.js → patient-shell-CnT4L8gn.js} +3 -3
- package/dist/_chunks/{patient-shell-DF81lALv.js.map → patient-shell-CnT4L8gn.js.map} +1 -1
- package/dist/_chunks/{payment-form-Dy3WIIsC.js → payment-form-BzVsG6Ks.js} +5 -5
- package/dist/_chunks/{payment-form-Dy3WIIsC.js.map → payment-form-BzVsG6Ks.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer-Cy6Ul3hZ.js → pdf-viewer-B6MC6VTx.js} +139 -126
- package/dist/_chunks/pdf-viewer-B6MC6VTx.js.map +1 -0
- package/dist/_chunks/{pl-GnOW6eGK.js → pl-B3Smqpkr.js} +3 -3
- package/dist/_chunks/{pl-GnOW6eGK.js.map → pl-B3Smqpkr.js.map} +1 -1
- package/dist/_chunks/{practice-results-C0d4IL5E.js → practice-results-CrLpEiiW.js} +4 -4
- package/dist/_chunks/{practice-results-C0d4IL5E.js.map → practice-results-CrLpEiiW.js.map} +1 -1
- package/dist/_chunks/pregnancy-weight-gain-zZL5Ir2-.js +224 -0
- package/dist/_chunks/pregnancy-weight-gain-zZL5Ir2-.js.map +1 -0
- package/dist/_chunks/{pt-_bV5b5RW.js → pt-D3J-1c_7.js} +6 -6
- package/dist/_chunks/{pt-_bV5b5RW.js.map → pt-D3J-1c_7.js.map} +1 -1
- package/dist/_chunks/{public-header.agent-B2dDg2_d.js → public-header.agent-BY6FH71R.js} +2 -2
- package/dist/_chunks/{public-header.agent-B2dDg2_d.js.map → public-header.agent-BY6FH71R.js.map} +1 -1
- package/dist/_chunks/radio-group-CLjK-SlK.js +167 -0
- package/dist/_chunks/radio-group-CLjK-SlK.js.map +1 -0
- package/dist/_chunks/{rich-text-editor-DLbg2852.js → rich-text-editor-DhGIBd4a.js} +10 -10
- package/dist/_chunks/{rich-text-editor-DLbg2852.js.map → rich-text-editor-DhGIBd4a.js.map} +1 -1
- package/dist/_chunks/{ro-BEcyh5Nj.js → ro-BKAbbEA3.js} +2 -2
- package/dist/_chunks/{ro-BEcyh5Nj.js.map → ro-BKAbbEA3.js.map} +1 -1
- package/dist/_chunks/{ru-Bi86hqMf.js → ru-BeG8f0Ep.js} +3 -3
- package/dist/_chunks/{ru-Bi86hqMf.js.map → ru-BeG8f0Ep.js.map} +1 -1
- package/dist/_chunks/{sheet-BV-yuLE2.js → sheet-xbzu4YiY.js} +7 -7
- package/dist/_chunks/{sheet-BV-yuLE2.js.map → sheet-xbzu4YiY.js.map} +1 -1
- package/dist/_chunks/sign-document-B-3k_0LO.js +344 -0
- package/dist/_chunks/sign-document-B-3k_0LO.js.map +1 -0
- package/dist/_chunks/{signature-capture-DoiBd6i3.js → signature-capture-CpMBhqQ9.js} +6 -6
- package/dist/_chunks/{signature-capture-DoiBd6i3.js.map → signature-capture-CpMBhqQ9.js.map} +1 -1
- package/dist/_chunks/{sq-BujHSAWu.js → sq-_hRPaeUy.js} +6 -6
- package/dist/_chunks/{sq-BujHSAWu.js.map → sq-_hRPaeUy.js.map} +1 -1
- package/dist/_chunks/subDays-Dv7q9S7u.js +8 -0
- package/dist/_chunks/{subDays-_T9YeKPX.js.map → subDays-Dv7q9S7u.js.map} +1 -1
- package/dist/_chunks/{sv-C8AeDrTA.js → sv-g009fSpe.js} +2 -2
- package/dist/_chunks/{sv-C8AeDrTA.js.map → sv-g009fSpe.js.map} +1 -1
- package/dist/_chunks/tab-bar-Xetknddo.js +105 -0
- package/dist/_chunks/tab-bar-Xetknddo.js.map +1 -0
- package/dist/_chunks/{theme-toggle-DpC28kt5.js → theme-toggle-ClATnY4Q.js} +2 -2
- package/dist/_chunks/{theme-toggle-DpC28kt5.js.map → theme-toggle-ClATnY4Q.js.map} +1 -1
- package/dist/_chunks/{toast.agent-WHHfw5VX.js → toast.agent-B0MCsvdZ.js} +2 -2
- package/dist/_chunks/{toast.agent-WHHfw5VX.js.map → toast.agent-B0MCsvdZ.js.map} +1 -1
- package/dist/_chunks/{tr-CMSs_Vgf.js → tr-OKUOuhMW.js} +2 -2
- package/dist/_chunks/{tr-CMSs_Vgf.js.map → tr-OKUOuhMW.js.map} +1 -1
- package/dist/_chunks/{unit-converter-EUwO6QYq.js → unit-converter-CuXCXJhK.js} +46 -40
- package/dist/_chunks/unit-converter-CuXCXJhK.js.map +1 -0
- package/dist/_chunks/{workflow-map-C3gB0FvB.js → workflow-map-BFNpzTiw.js} +2 -2
- package/dist/_chunks/{workflow-map-C3gB0FvB.js.map → workflow-map-BFNpzTiw.js.map} +1 -1
- package/dist/_chunks/{zh-CN-eXB-PFu4.js → zh-CN-De4zwEhx.js} +3 -3
- package/dist/_chunks/{zh-CN-eXB-PFu4.js.map → zh-CN-De4zwEhx.js.map} +1 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/brand/product-lockup/product-lockup.d.ts +16 -0
- package/dist/brand/product-lockup/product-lockup.d.ts.map +1 -1
- package/dist/components/_shared/calendar-class-names.d.ts +8 -0
- package/dist/components/_shared/calendar-class-names.d.ts.map +1 -0
- package/dist/components/_shared/index.d.ts +2 -0
- package/dist/components/_shared/index.d.ts.map +1 -1
- package/dist/components/_shared/insert-result.d.ts +78 -6
- package/dist/components/_shared/insert-result.d.ts.map +1 -1
- package/dist/components/address-autocomplete/address-autocomplete.d.ts +77 -0
- package/dist/components/address-autocomplete/address-autocomplete.d.ts.map +1 -0
- package/dist/components/address-autocomplete/index.d.ts +4 -0
- package/dist/components/address-autocomplete/index.d.ts.map +1 -0
- package/dist/components/address-autocomplete/index.js +6 -0
- package/dist/components/address-autocomplete/index.js.map +1 -0
- package/dist/components/address-autocomplete/parse-address.d.ts +52 -0
- package/dist/components/address-autocomplete/parse-address.d.ts.map +1 -0
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bmi-calculator/bmi-calculator.d.ts +11 -1
- package/dist/components/bmi-calculator/bmi-calculator.d.ts.map +1 -1
- 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/card/card.d.ts +1 -1
- package/dist/components/chart/chart.d.ts +10 -0
- package/dist/components/chart/chart.d.ts.map +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +12 -2
- package/dist/components/cycle-calculator/cycle-calculator.d.ts.map +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/date-picker.d.ts +0 -1
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts +0 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/date-time-picker.d.ts +0 -1
- package/dist/components/date-time-picker/date-time-picker.d.ts.map +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts.map +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/due-date-calculator.d.ts +11 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts.map +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +12 -2
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts.map +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/header/header.d.ts +8 -0
- package/dist/components/header/header.d.ts.map +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/kbd/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
- package/dist/components/patient-search/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/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +12 -2
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts.map +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sheet/sheet.d.ts.map +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-document/sign-document.d.ts +12 -0
- package/dist/components/sign-document/sign-document.d.ts.map +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/tab-bar/index.d.ts +3 -0
- package/dist/components/tab-bar/index.d.ts.map +1 -0
- package/dist/components/tab-bar/index.js +5 -0
- package/dist/components/tab-bar/index.js.map +1 -0
- package/dist/components/tab-bar/tab-bar.d.ts +104 -0
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -0
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/unit-converter/unit-converter.d.ts +11 -1
- package/dist/components/unit-converter/unit-converter.d.ts.map +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +17 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +18 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +17 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +18 -1
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +17 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +18 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +17 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +18 -1
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +17 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +18 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +17 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +18 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +17 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +18 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +17 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +18 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +17 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +18 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +17 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +18 -1
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +17 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +18 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +17 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +18 -1
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +17 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +18 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +17 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +18 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +17 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +18 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +17 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +18 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +17 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +18 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +17 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +18 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +605 -599
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +18 -1
- package/dist/locales/de.json +18 -1
- package/dist/locales/el.json +18 -1
- package/dist/locales/en.json +18 -1
- package/dist/locales/es.json +18 -1
- package/dist/locales/fr.json +18 -1
- package/dist/locales/hi.json +18 -1
- package/dist/locales/it.json +18 -1
- package/dist/locales/ja.json +18 -1
- package/dist/locales/nl.json +18 -1
- package/dist/locales/pl.json +18 -1
- package/dist/locales/pt.json +18 -1
- package/dist/locales/ro.json +18 -1
- package/dist/locales/ru.json +18 -1
- package/dist/locales/sq.json +18 -1
- package/dist/locales/sv.json +18 -1
- package/dist/locales/tr.json +18 -1
- package/dist/locales/zh.json +18 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +87 -4
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1411 -2
- package/package.json +16 -1
- package/dist/_chunks/bmi-calculator-DnEr513I.js +0 -213
- package/dist/_chunks/bmi-calculator-DnEr513I.js.map +0 -1
- package/dist/_chunks/chart-Cbt0_sKv.js.map +0 -1
- package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +0 -185
- package/dist/_chunks/cycle-calculator-B5Uj9QeT.js.map +0 -1
- package/dist/_chunks/date-range-picker-U9fn1g9d.js.map +0 -1
- package/dist/_chunks/date-time-picker-Cva0ZCWw.js.map +0 -1
- package/dist/_chunks/dialog-Cee13rHU.js.map +0 -1
- package/dist/_chunks/due-date-calculator-CUspKSTw.js.map +0 -1
- package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js.map +0 -1
- package/dist/_chunks/header-CTZWX-tm.js.map +0 -1
- package/dist/_chunks/insert-result-yJ0QavoN.js +0 -133
- package/dist/_chunks/insert-result-yJ0QavoN.js.map +0 -1
- package/dist/_chunks/map-view-qJLybrmN.js +0 -1850
- package/dist/_chunks/map-view-qJLybrmN.js.map +0 -1
- package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +0 -296
- package/dist/_chunks/marketplace-app-shell-BlxVizU4.js.map +0 -1
- package/dist/_chunks/pdf-viewer-Cy6Ul3hZ.js.map +0 -1
- package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +0 -209
- package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js.map +0 -1
- package/dist/_chunks/radio-group-BcF92GEF.js +0 -152
- package/dist/_chunks/radio-group-BcF92GEF.js.map +0 -1
- package/dist/_chunks/react-day-picker-CdtIiKjx.js +0 -3174
- package/dist/_chunks/react-day-picker-CdtIiKjx.js.map +0 -1
- package/dist/_chunks/sign-document-CpLDZ6Db.js +0 -316
- package/dist/_chunks/sign-document-CpLDZ6Db.js.map +0 -1
- package/dist/_chunks/subDays-_T9YeKPX.js +0 -8
- package/dist/_chunks/unit-converter-EUwO6QYq.js.map +0 -1
|
@@ -106,8 +106,8 @@ const ke = J(
|
|
|
106
106
|
), ze = J(
|
|
107
107
|
[
|
|
108
108
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
109
|
-
"ds:min-block-size
|
|
110
|
-
"ds:min-inline-size
|
|
109
|
+
"ds:[min-block-size:var(--min-target-size)]",
|
|
110
|
+
"ds:[min-inline-size:var(--min-target-size)]",
|
|
111
111
|
"ds:gap-[var(--spacing-xs)]",
|
|
112
112
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
113
113
|
"ds:rounded-[var(--radius-sm)] ds:bg-transparent ds:text-[var(--foreground)]",
|
|
@@ -122,7 +122,7 @@ const ke = J(
|
|
|
122
122
|
].join(" ")
|
|
123
123
|
), Pe = J(
|
|
124
124
|
[
|
|
125
|
-
"ds:min-block-size
|
|
125
|
+
"ds:[min-block-size:var(--min-target-size)]",
|
|
126
126
|
"ds:inline-size-[4rem] ds:text-center",
|
|
127
127
|
"ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]",
|
|
128
128
|
"ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)]",
|
|
@@ -134,7 +134,7 @@ const ke = J(
|
|
|
134
134
|
].join(" ")
|
|
135
135
|
), et = J(
|
|
136
136
|
[
|
|
137
|
-
"ds:min-block-size
|
|
137
|
+
"ds:[min-block-size:var(--min-target-size)]",
|
|
138
138
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
139
139
|
"ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)]",
|
|
140
140
|
"ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
@@ -150,8 +150,19 @@ const ke = J(
|
|
|
150
150
|
"ds:p-[var(--spacing-md)]",
|
|
151
151
|
"ds:bg-[var(--muted)]",
|
|
152
152
|
"ds:overflow-auto",
|
|
153
|
-
"ds:
|
|
154
|
-
"ds:
|
|
153
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
154
|
+
"ds:focus-visible:outline-solid",
|
|
155
|
+
"ds:focus-visible:outline-[var(--ring)]",
|
|
156
|
+
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
157
|
+
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
158
|
+
// NB: `min-block-size-[…]` / `max-block-size-[…]` arbitrary utilities don't
|
|
159
|
+
// generate any CSS in this Tailwind setup (silent no-op) — using them left
|
|
160
|
+
// the container uncapped, so it rendered all pages at full height and never
|
|
161
|
+
// scrolled, which froze the page tracker at 1 and broke SignDocument's
|
|
162
|
+
// read-to-end gate. `min-h`/`max-h` are block-axis height (writing-mode
|
|
163
|
+
// agnostic) and generate correctly.
|
|
164
|
+
"ds:min-h-[30rem]",
|
|
165
|
+
"ds:max-h-[80vh]"
|
|
155
166
|
].join(" ")
|
|
156
167
|
), rt = J(
|
|
157
168
|
[
|
|
@@ -174,17 +185,17 @@ const ke = J(
|
|
|
174
185
|
function X(o) {
|
|
175
186
|
return typeof o == "number";
|
|
176
187
|
}
|
|
177
|
-
function Se(o, t,
|
|
188
|
+
function Se(o, t, f) {
|
|
178
189
|
if (X(o)) return o;
|
|
179
|
-
if (o === "actual-size" || !
|
|
180
|
-
const y = window.getComputedStyle(
|
|
190
|
+
if (o === "actual-size" || !f) return 1;
|
|
191
|
+
const y = window.getComputedStyle(f), h = parseFloat(y.paddingInlineStart || "0") + parseFloat(y.paddingInlineEnd || "0"), g = parseFloat(y.paddingBlockStart || "0") + parseFloat(y.paddingBlockEnd || "0"), x = Math.max(f.clientWidth - h, 1), w = Math.max(f.clientHeight - g, 1), k = t.width, z = t.height;
|
|
181
192
|
return o === "fit-width" ? x / k : Math.min(x / k, w / z);
|
|
182
193
|
}
|
|
183
194
|
const at = Ee(
|
|
184
195
|
({
|
|
185
196
|
id: o,
|
|
186
197
|
src: t,
|
|
187
|
-
initialPage:
|
|
198
|
+
initialPage: f = 1,
|
|
188
199
|
initialZoom: y = "fit-width",
|
|
189
200
|
pageRotation: h,
|
|
190
201
|
renderPageOverlay: g,
|
|
@@ -192,10 +203,10 @@ const at = Ee(
|
|
|
192
203
|
onLoadComplete: w,
|
|
193
204
|
onError: k,
|
|
194
205
|
toolbar: z = !0,
|
|
195
|
-
ariaLabel:
|
|
206
|
+
ariaLabel: T,
|
|
196
207
|
className: D
|
|
197
208
|
}, I) => {
|
|
198
|
-
const { t:
|
|
209
|
+
const { t: d } = pe(), P = _e(), N = xe(
|
|
199
210
|
() => `pdf-${P.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
200
211
|
[P]
|
|
201
212
|
), [v, E] = b(!1), [p, H] = b(!1);
|
|
@@ -205,7 +216,7 @@ const at = Ee(
|
|
|
205
216
|
const e = window.matchMedia("(prefers-reduced-motion: reduce)"), r = () => H(e.matches);
|
|
206
217
|
return r(), e.addEventListener("change", r), () => e.removeEventListener("change", r);
|
|
207
218
|
}, []);
|
|
208
|
-
const [s, Q] = b(null), [W,
|
|
219
|
+
const [s, Q] = b(null), [W, c] = b(null), [l, A] = b(f), [S, m] = b(y), [a, M] = b({ start: Math.max(1, f - 1), end: f + 1 }), [_, te] = b(""), [G, L] = b(!1), [O, me] = b(""), [Ie, Re] = b({ current: 0, total: 0 }), re = V(x), ne = V(w), ae = V(k);
|
|
209
220
|
C(() => {
|
|
210
221
|
re.current = x, ne.current = w, ae.current = k;
|
|
211
222
|
}, [x, w, k]);
|
|
@@ -214,23 +225,23 @@ const at = Ee(
|
|
|
214
225
|
de.current = s;
|
|
215
226
|
}, [s]), C(() => {
|
|
216
227
|
let e = !1;
|
|
217
|
-
Q(null),
|
|
228
|
+
Q(null), c(null);
|
|
218
229
|
const r = {
|
|
219
230
|
disableJavaScript: !0,
|
|
220
231
|
isEvalSupported: !1
|
|
221
|
-
},
|
|
232
|
+
}, u = fe.getDocument(
|
|
222
233
|
typeof t == "string" ? { url: t, ...r } : t instanceof Uint8Array ? { data: t, ...r } : { data: new Uint8Array(t), ...r }
|
|
223
234
|
);
|
|
224
|
-
return
|
|
235
|
+
return u.promise.then(
|
|
225
236
|
async (i) => {
|
|
226
237
|
var q;
|
|
227
238
|
if (e) return;
|
|
228
|
-
let
|
|
239
|
+
let R;
|
|
229
240
|
try {
|
|
230
241
|
const U = await i.getMetadata(), F = U == null ? void 0 : U.info;
|
|
231
|
-
|
|
242
|
+
R = F == null ? void 0 : F.Title;
|
|
232
243
|
} catch {
|
|
233
|
-
|
|
244
|
+
R = void 0;
|
|
234
245
|
}
|
|
235
246
|
if (e) {
|
|
236
247
|
try {
|
|
@@ -239,17 +250,17 @@ const at = Ee(
|
|
|
239
250
|
}
|
|
240
251
|
return;
|
|
241
252
|
}
|
|
242
|
-
const Z = { doc: i, numPages: i.numPages, title:
|
|
243
|
-
Q(Z), (q = ne.current) == null || q.call(ne, { numPages: i.numPages, title:
|
|
253
|
+
const Z = { doc: i, numPages: i.numPages, title: R };
|
|
254
|
+
Q(Z), (q = ne.current) == null || q.call(ne, { numPages: i.numPages, title: R });
|
|
244
255
|
},
|
|
245
256
|
(i) => {
|
|
246
257
|
var Z;
|
|
247
258
|
if (e) return;
|
|
248
|
-
const
|
|
249
|
-
|
|
259
|
+
const R = i instanceof Error ? i : new Error(String(i));
|
|
260
|
+
c(R), (Z = ae.current) == null || Z.call(ae, R);
|
|
250
261
|
}
|
|
251
262
|
), () => {
|
|
252
|
-
e = !0,
|
|
263
|
+
e = !0, u.destroy();
|
|
253
264
|
const i = de.current;
|
|
254
265
|
if (i) {
|
|
255
266
|
try {
|
|
@@ -262,16 +273,16 @@ const at = Ee(
|
|
|
262
273
|
}, [t]), C(() => {
|
|
263
274
|
var e;
|
|
264
275
|
s && (te(
|
|
265
|
-
|
|
266
|
-
), (e = re.current) == null || e.call(re,
|
|
267
|
-
}, [
|
|
276
|
+
d("pdf.pageOf", { current: l, total: s.numPages })
|
|
277
|
+
), (e = re.current) == null || e.call(re, l));
|
|
278
|
+
}, [l, s, d]);
|
|
268
279
|
const se = V(null), ce = V([]), j = K(
|
|
269
280
|
(e) => {
|
|
270
281
|
if (!s) return;
|
|
271
282
|
const r = Math.max(1, Math.min(e, s.numPages));
|
|
272
|
-
|
|
273
|
-
const
|
|
274
|
-
|
|
283
|
+
A(r);
|
|
284
|
+
const u = ce.current[r - 1];
|
|
285
|
+
u && u.scrollIntoView({
|
|
275
286
|
behavior: "auto",
|
|
276
287
|
block: "start"
|
|
277
288
|
});
|
|
@@ -293,16 +304,16 @@ const at = Ee(
|
|
|
293
304
|
[j, he, ge, Y]
|
|
294
305
|
);
|
|
295
306
|
Le(I, () => le, [le]), Ke(Ge, le, o);
|
|
296
|
-
const
|
|
307
|
+
const Te = K(
|
|
297
308
|
(e) => {
|
|
298
309
|
if (!s) return;
|
|
299
310
|
const r = e.metaKey || e.ctrlKey;
|
|
300
311
|
if (e.key === "PageDown") {
|
|
301
|
-
e.preventDefault(), j(
|
|
312
|
+
e.preventDefault(), j(l + 1);
|
|
302
313
|
return;
|
|
303
314
|
}
|
|
304
315
|
if (e.key === "PageUp") {
|
|
305
|
-
e.preventDefault(), j(
|
|
316
|
+
e.preventDefault(), j(l - 1);
|
|
306
317
|
return;
|
|
307
318
|
}
|
|
308
319
|
if (e.key === "Home") {
|
|
@@ -318,12 +329,12 @@ const at = Ee(
|
|
|
318
329
|
return;
|
|
319
330
|
}
|
|
320
331
|
if (r && (e.key === "+" || e.key === "=")) {
|
|
321
|
-
e.preventDefault(), m((
|
|
332
|
+
e.preventDefault(), m((u) => X(u) ? Math.min(u * 1.25, 4) : 1.25);
|
|
322
333
|
return;
|
|
323
334
|
}
|
|
324
335
|
if (r && e.key === "-") {
|
|
325
336
|
e.preventDefault(), m(
|
|
326
|
-
(
|
|
337
|
+
(u) => X(u) ? Math.max(u / 1.25, 0.25) : 0.75
|
|
327
338
|
);
|
|
328
339
|
return;
|
|
329
340
|
}
|
|
@@ -333,15 +344,15 @@ const at = Ee(
|
|
|
333
344
|
}
|
|
334
345
|
r && e.key.toLowerCase() === "p" && (e.preventDefault(), Y());
|
|
335
346
|
},
|
|
336
|
-
[
|
|
337
|
-
), ue = V(
|
|
347
|
+
[l, j, Y, s]
|
|
348
|
+
), ue = V(l);
|
|
338
349
|
C(() => {
|
|
339
|
-
ue.current =
|
|
340
|
-
}, [
|
|
350
|
+
ue.current = l;
|
|
351
|
+
}, [l]), C(() => {
|
|
341
352
|
if (!s) return;
|
|
342
353
|
const e = se.current;
|
|
343
354
|
if (!e) return;
|
|
344
|
-
const r = /* @__PURE__ */ new Map(),
|
|
355
|
+
const r = /* @__PURE__ */ new Map(), u = new IntersectionObserver(
|
|
345
356
|
(i) => {
|
|
346
357
|
for (const F of i) {
|
|
347
358
|
const $ = F.target.dataset.pageNumber;
|
|
@@ -349,10 +360,10 @@ const at = Ee(
|
|
|
349
360
|
const Ve = Number($);
|
|
350
361
|
r.set(Ve, F.intersectionRatio);
|
|
351
362
|
}
|
|
352
|
-
let
|
|
363
|
+
let R = ue.current, Z = 0, q = 1 / 0, U = -1 / 0;
|
|
353
364
|
for (const [F, $] of r.entries())
|
|
354
|
-
$ > Z && (
|
|
355
|
-
Z > 0 &&
|
|
365
|
+
$ > Z && (R = F, Z = $), $ > 0 && (q = Math.min(q, F), U = Math.max(U, F));
|
|
366
|
+
Z > 0 && R !== ue.current && A(R), q !== 1 / 0 && M({
|
|
356
367
|
start: Math.max(1, q - 1),
|
|
357
368
|
end: Math.min(s.numPages, U + 1)
|
|
358
369
|
});
|
|
@@ -360,15 +371,15 @@ const at = Ee(
|
|
|
360
371
|
{ root: e, threshold: [0, 0.25, 0.5, 0.75, 1] }
|
|
361
372
|
);
|
|
362
373
|
return ce.current.forEach((i) => {
|
|
363
|
-
i &&
|
|
364
|
-
}), () =>
|
|
374
|
+
i && u.observe(i);
|
|
375
|
+
}), () => u.disconnect();
|
|
365
376
|
}, [s]);
|
|
366
|
-
const [
|
|
377
|
+
const [Ae, Oe] = b(0);
|
|
367
378
|
C(() => {
|
|
368
379
|
const e = se.current;
|
|
369
380
|
if (!e || typeof ResizeObserver > "u") return;
|
|
370
381
|
const r = new ResizeObserver(() => {
|
|
371
|
-
(S === "fit-width" || S === "fit-page") &&
|
|
382
|
+
(S === "fit-width" || S === "fit-page") && Oe((u) => u + 1);
|
|
372
383
|
});
|
|
373
384
|
return r.observe(e), () => r.disconnect();
|
|
374
385
|
}, [S]);
|
|
@@ -382,9 +393,9 @@ const at = Ee(
|
|
|
382
393
|
r && r.focus();
|
|
383
394
|
}, []), ie = 8, Fe = K(
|
|
384
395
|
(e) => {
|
|
385
|
-
const r = v ? "ArrowLeft" : "ArrowRight",
|
|
396
|
+
const r = v ? "ArrowLeft" : "ArrowRight", u = v ? "ArrowRight" : "ArrowLeft";
|
|
386
397
|
let i = null;
|
|
387
|
-
e.key === r ? i = (oe + 1) % ie : e.key ===
|
|
398
|
+
e.key === r ? i = (oe + 1) % ie : e.key === u ? i = (oe - 1 + ie) % ie : e.key === "Home" ? i = 0 : e.key === "End" && (i = ie - 1), i !== null && (e.preventDefault(), be(i), ye(i));
|
|
388
399
|
},
|
|
389
400
|
[ye, v, oe]
|
|
390
401
|
);
|
|
@@ -392,9 +403,9 @@ const at = Ee(
|
|
|
392
403
|
"div",
|
|
393
404
|
{
|
|
394
405
|
className: [ke(), D].filter(Boolean).join(" "),
|
|
395
|
-
"aria-label":
|
|
406
|
+
"aria-label": T ?? d("pdf.error"),
|
|
396
407
|
children: /* @__PURE__ */ n("div", { className: "ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ n(we, { variant: "error", live: "polite", children: /* @__PURE__ */ B(we.Description, { children: [
|
|
397
|
-
|
|
408
|
+
d("pdf.error"),
|
|
398
409
|
": ",
|
|
399
410
|
W.message
|
|
400
411
|
] }) }) })
|
|
@@ -406,10 +417,10 @@ const at = Ee(
|
|
|
406
417
|
{
|
|
407
418
|
id: N,
|
|
408
419
|
role: "region",
|
|
409
|
-
"aria-label":
|
|
420
|
+
"aria-label": T ?? d("pdf.toolbarLabel"),
|
|
410
421
|
className: [ke(), D].filter(Boolean).join(" "),
|
|
411
422
|
dir: v ? "rtl" : void 0,
|
|
412
|
-
onKeyDown:
|
|
423
|
+
onKeyDown: Te,
|
|
413
424
|
tabIndex: -1,
|
|
414
425
|
"data-component": "pdf-viewer",
|
|
415
426
|
"data-component-id": o,
|
|
@@ -418,11 +429,11 @@ const at = Ee(
|
|
|
418
429
|
z ? /* @__PURE__ */ n(
|
|
419
430
|
st,
|
|
420
431
|
{
|
|
421
|
-
currentPage:
|
|
432
|
+
currentPage: l,
|
|
422
433
|
numPages: (s == null ? void 0 : s.numPages) ?? 0,
|
|
423
434
|
zoom: S,
|
|
424
|
-
onPrev: () => j(
|
|
425
|
-
onNext: () => j(
|
|
435
|
+
onPrev: () => j(l - 1),
|
|
436
|
+
onNext: () => j(l + 1),
|
|
426
437
|
onJump: (e) => j(e),
|
|
427
438
|
onZoomIn: () => {
|
|
428
439
|
m(
|
|
@@ -439,7 +450,7 @@ const at = Ee(
|
|
|
439
450
|
onPrint: Y,
|
|
440
451
|
searchOpen: G,
|
|
441
452
|
onSearchOpenChange: L,
|
|
442
|
-
searchQuery:
|
|
453
|
+
searchQuery: O,
|
|
443
454
|
onSearchQueryChange: (e) => {
|
|
444
455
|
me(e);
|
|
445
456
|
},
|
|
@@ -458,6 +469,8 @@ const at = Ee(
|
|
|
458
469
|
ref: se,
|
|
459
470
|
className: tt(),
|
|
460
471
|
"data-testid": "pdf-pages-container",
|
|
472
|
+
tabIndex: 0,
|
|
473
|
+
"aria-label": d("pdf.pagesRegionLabel"),
|
|
461
474
|
children: s ? Array.from({ length: s.numPages }, (e, r) => r + 1).map(
|
|
462
475
|
(e) => /* @__PURE__ */ n(
|
|
463
476
|
ot,
|
|
@@ -469,24 +482,24 @@ const at = Ee(
|
|
|
469
482
|
pageRotation: h,
|
|
470
483
|
renderPageOverlay: g,
|
|
471
484
|
container: se.current,
|
|
472
|
-
resizeTick:
|
|
485
|
+
resizeTick: Ae,
|
|
473
486
|
shouldRender: e >= a.start && e <= a.end,
|
|
474
487
|
registerRef: (r) => {
|
|
475
488
|
ce.current[e - 1] = r;
|
|
476
489
|
},
|
|
477
|
-
searchQuery:
|
|
490
|
+
searchQuery: O,
|
|
478
491
|
onMatchCount: (r) => {
|
|
479
|
-
|
|
480
|
-
current: Math.min(
|
|
481
|
-
total: Math.max(
|
|
492
|
+
Re((u) => r === 0 && u.total === 0 ? u : {
|
|
493
|
+
current: Math.min(u.current || 1, r || 1),
|
|
494
|
+
total: Math.max(u.total, r)
|
|
482
495
|
});
|
|
483
496
|
}
|
|
484
497
|
},
|
|
485
498
|
e
|
|
486
499
|
)
|
|
487
500
|
) : /* @__PURE__ */ B("div", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:text-[var(--muted-foreground)] ds:p-[var(--spacing-lg)]", children: [
|
|
488
|
-
/* @__PURE__ */ n(Ze, { size: "sm", label:
|
|
489
|
-
/* @__PURE__ */ n("span", { children:
|
|
501
|
+
/* @__PURE__ */ n(Ze, { size: "sm", label: d("pdf.loading") }),
|
|
502
|
+
/* @__PURE__ */ n("span", { children: d("pdf.loading") })
|
|
490
503
|
] })
|
|
491
504
|
}
|
|
492
505
|
)
|
|
@@ -499,7 +512,7 @@ const at = Ee(
|
|
|
499
512
|
at.displayName = "PDFViewer";
|
|
500
513
|
function st(o) {
|
|
501
514
|
const { t } = pe(), {
|
|
502
|
-
currentPage:
|
|
515
|
+
currentPage: f,
|
|
503
516
|
numPages: y,
|
|
504
517
|
zoom: h,
|
|
505
518
|
onPrev: g,
|
|
@@ -507,10 +520,10 @@ function st(o) {
|
|
|
507
520
|
onJump: w,
|
|
508
521
|
onZoomIn: k,
|
|
509
522
|
onZoomOut: z,
|
|
510
|
-
onZoomPreset:
|
|
523
|
+
onZoomPreset: T,
|
|
511
524
|
onOpenSearch: D,
|
|
512
525
|
onPrint: I,
|
|
513
|
-
searchOpen:
|
|
526
|
+
searchOpen: d,
|
|
514
527
|
onSearchOpenChange: P,
|
|
515
528
|
searchQuery: N,
|
|
516
529
|
onSearchQueryChange: v,
|
|
@@ -519,14 +532,14 @@ function st(o) {
|
|
|
519
532
|
focusIndex: H,
|
|
520
533
|
setFocusIndex: s,
|
|
521
534
|
onToolbarKeyDown: Q
|
|
522
|
-
} = o, [W,
|
|
535
|
+
} = o, [W, c] = b(String(f));
|
|
523
536
|
C(() => {
|
|
524
|
-
|
|
525
|
-
}, [
|
|
526
|
-
const
|
|
537
|
+
c(String(f));
|
|
538
|
+
}, [f]);
|
|
539
|
+
const l = f <= 1, A = f >= y;
|
|
527
540
|
function S() {
|
|
528
541
|
const a = Number(W);
|
|
529
|
-
Number.isFinite(a) && a >= 1 ? w(Math.min(a, y)) :
|
|
542
|
+
Number.isFinite(a) && a >= 1 ? w(Math.min(a, y)) : c(String(f));
|
|
530
543
|
}
|
|
531
544
|
function m(a) {
|
|
532
545
|
return /* @__PURE__ */ n(
|
|
@@ -562,7 +575,7 @@ function st(o) {
|
|
|
562
575
|
m({
|
|
563
576
|
index: 0,
|
|
564
577
|
label: t("pdf.previousPage"),
|
|
565
|
-
disabled:
|
|
578
|
+
disabled: l,
|
|
566
579
|
onActivate: g,
|
|
567
580
|
icon: /* @__PURE__ */ n(
|
|
568
581
|
He,
|
|
@@ -575,7 +588,7 @@ function st(o) {
|
|
|
575
588
|
m({
|
|
576
589
|
index: 1,
|
|
577
590
|
label: t("pdf.nextPage"),
|
|
578
|
-
disabled:
|
|
591
|
+
disabled: A,
|
|
579
592
|
onActivate: x,
|
|
580
593
|
icon: /* @__PURE__ */ n(
|
|
581
594
|
Qe,
|
|
@@ -592,7 +605,7 @@ function st(o) {
|
|
|
592
605
|
min: 1,
|
|
593
606
|
max: Math.max(y, 1),
|
|
594
607
|
value: W,
|
|
595
|
-
onChange: (a) =>
|
|
608
|
+
onChange: (a) => c(a.target.value),
|
|
596
609
|
onKeyDown: (a) => {
|
|
597
610
|
a.key === "Enter" && (a.preventDefault(), S());
|
|
598
611
|
},
|
|
@@ -609,7 +622,7 @@ function st(o) {
|
|
|
609
622
|
{
|
|
610
623
|
"aria-hidden": "true",
|
|
611
624
|
className: "type-body-sm ds:text-[var(--muted-foreground)]",
|
|
612
|
-
children: t("pdf.pageOf", { current:
|
|
625
|
+
children: t("pdf.pageOf", { current: f, total: y || 0 })
|
|
613
626
|
}
|
|
614
627
|
),
|
|
615
628
|
/* @__PURE__ */ n(
|
|
@@ -651,10 +664,10 @@ function st(o) {
|
|
|
651
664
|
onChange: (a) => {
|
|
652
665
|
const M = a.target.value;
|
|
653
666
|
if (M === "fit-width" || M === "fit-page" || M === "actual-size")
|
|
654
|
-
|
|
667
|
+
T(M);
|
|
655
668
|
else {
|
|
656
669
|
const _ = Number(M);
|
|
657
|
-
Number.isFinite(_) &&
|
|
670
|
+
Number.isFinite(_) && T(_);
|
|
658
671
|
}
|
|
659
672
|
},
|
|
660
673
|
ref: p(5),
|
|
@@ -670,7 +683,7 @@ function st(o) {
|
|
|
670
683
|
]
|
|
671
684
|
}
|
|
672
685
|
),
|
|
673
|
-
/* @__PURE__ */ B(ee.Root, { open:
|
|
686
|
+
/* @__PURE__ */ B(ee.Root, { open: d, onOpenChange: P, children: [
|
|
674
687
|
/* @__PURE__ */ n(ee.Trigger, { asChild: !0, children: m({
|
|
675
688
|
index: 6,
|
|
676
689
|
label: t("pdf.search.open"),
|
|
@@ -759,7 +772,7 @@ function st(o) {
|
|
|
759
772
|
function ot(o) {
|
|
760
773
|
const {
|
|
761
774
|
pageNumber: t,
|
|
762
|
-
totalPages:
|
|
775
|
+
totalPages: f,
|
|
763
776
|
doc: y,
|
|
764
777
|
zoom: h,
|
|
765
778
|
pageRotation: g,
|
|
@@ -767,23 +780,23 @@ function ot(o) {
|
|
|
767
780
|
container: w,
|
|
768
781
|
resizeTick: k,
|
|
769
782
|
shouldRender: z,
|
|
770
|
-
registerRef:
|
|
783
|
+
registerRef: T,
|
|
771
784
|
searchQuery: D,
|
|
772
785
|
onMatchCount: I
|
|
773
|
-
} = o, { t:
|
|
786
|
+
} = o, { t: d } = pe(), P = V(null), N = V(null), [v, E] = b({
|
|
774
787
|
width: 612,
|
|
775
788
|
height: 792
|
|
776
789
|
}), [p, H] = b(null);
|
|
777
790
|
C(() => {
|
|
778
|
-
let
|
|
779
|
-
return y.getPage(t).then((
|
|
780
|
-
|
|
791
|
+
let c = !1;
|
|
792
|
+
return y.getPage(t).then((l) => {
|
|
793
|
+
c || H(l);
|
|
781
794
|
}), () => {
|
|
782
|
-
|
|
795
|
+
c = !0;
|
|
783
796
|
};
|
|
784
797
|
}, [y, t]), C(() => {
|
|
785
798
|
if (!p) return;
|
|
786
|
-
const
|
|
799
|
+
const c = (m) => g === void 0 ? { scale: m } : { scale: m, rotation: g }, l = p.getViewport(c(1)), A = Se(h, l, w), S = p.getViewport(c(A));
|
|
787
800
|
E({
|
|
788
801
|
width: Math.floor(S.width),
|
|
789
802
|
height: Math.floor(S.height)
|
|
@@ -792,31 +805,31 @@ function ot(o) {
|
|
|
792
805
|
const s = g ?? (p == null ? void 0 : p.rotate) ?? 0;
|
|
793
806
|
C(() => {
|
|
794
807
|
if (!p || !z) {
|
|
795
|
-
const
|
|
796
|
-
|
|
808
|
+
const O = P.current;
|
|
809
|
+
O && !z && (O.width = 0);
|
|
797
810
|
return;
|
|
798
811
|
}
|
|
799
|
-
const
|
|
800
|
-
if (!
|
|
801
|
-
const
|
|
802
|
-
if (!
|
|
803
|
-
const S = (
|
|
804
|
-
|
|
812
|
+
const c = P.current, l = N.current;
|
|
813
|
+
if (!c) return;
|
|
814
|
+
const A = c.getContext("2d");
|
|
815
|
+
if (!A) return;
|
|
816
|
+
const S = (O) => g === void 0 ? { scale: O } : { scale: O, rotation: g }, m = p.getViewport(S(1)), a = Se(h, m, w), M = p.getViewport(S(a)), _ = Math.max(1, window.devicePixelRatio || 1);
|
|
817
|
+
c.width = Math.floor(M.width * _), c.height = Math.floor(M.height * _), A.setTransform(_, 0, 0, _, 0, 0);
|
|
805
818
|
const te = p.render({
|
|
806
|
-
canvas:
|
|
807
|
-
canvasContext:
|
|
819
|
+
canvas: c,
|
|
820
|
+
canvasContext: A,
|
|
808
821
|
viewport: M
|
|
809
822
|
});
|
|
810
823
|
let G = !1, L = null;
|
|
811
824
|
return te.promise.then(async () => {
|
|
812
|
-
if (G || !
|
|
813
|
-
|
|
814
|
-
const
|
|
825
|
+
if (G || !l) return;
|
|
826
|
+
l.textContent = "";
|
|
827
|
+
const O = await p.getTextContent();
|
|
815
828
|
G || (L = new fe.TextLayer({
|
|
816
|
-
textContentSource:
|
|
817
|
-
container:
|
|
829
|
+
textContentSource: O,
|
|
830
|
+
container: l,
|
|
818
831
|
viewport: M
|
|
819
|
-
}), await L.render(), Ne(
|
|
832
|
+
}), await L.render(), Ne(l, D, I));
|
|
820
833
|
}).catch(() => {
|
|
821
834
|
}), () => {
|
|
822
835
|
G = !0;
|
|
@@ -841,8 +854,8 @@ function ot(o) {
|
|
|
841
854
|
g
|
|
842
855
|
]), C(() => {
|
|
843
856
|
if (!z) return;
|
|
844
|
-
const
|
|
845
|
-
|
|
857
|
+
const c = N.current;
|
|
858
|
+
c && Ne(c, D, I);
|
|
846
859
|
}, [D, z, I]);
|
|
847
860
|
const Q = {
|
|
848
861
|
width: v.width,
|
|
@@ -854,11 +867,11 @@ function ot(o) {
|
|
|
854
867
|
return /* @__PURE__ */ B(
|
|
855
868
|
"article",
|
|
856
869
|
{
|
|
857
|
-
ref: (
|
|
858
|
-
|
|
870
|
+
ref: (c) => {
|
|
871
|
+
T(c);
|
|
859
872
|
},
|
|
860
873
|
"data-page-number": t,
|
|
861
|
-
"aria-label":
|
|
874
|
+
"aria-label": d("pdf.pageOf", { current: t, total: f }),
|
|
862
875
|
className: rt(),
|
|
863
876
|
style: W,
|
|
864
877
|
children: [
|
|
@@ -884,7 +897,7 @@ function ot(o) {
|
|
|
884
897
|
"div",
|
|
885
898
|
{
|
|
886
899
|
role: "group",
|
|
887
|
-
"aria-label":
|
|
900
|
+
"aria-label": d("pdf.pageOverlay", { page: t }),
|
|
888
901
|
className: "ds:absolute ds:inset-0 ds:pointer-events-auto",
|
|
889
902
|
"data-pdf-page-overlay": "",
|
|
890
903
|
"data-page-number": t,
|
|
@@ -903,45 +916,45 @@ function ot(o) {
|
|
|
903
916
|
function Me(o) {
|
|
904
917
|
return o.normalize("NFKD").replace(new RegExp("\\p{Diacritic}", "gu"), "").toLowerCase();
|
|
905
918
|
}
|
|
906
|
-
function Ne(o, t,
|
|
907
|
-
if (o.querySelectorAll("[data-match]").forEach((
|
|
908
|
-
|
|
919
|
+
function Ne(o, t, f) {
|
|
920
|
+
if (o.querySelectorAll("[data-match]").forEach((d) => {
|
|
921
|
+
d.removeAttribute("data-match");
|
|
909
922
|
}), !t) {
|
|
910
|
-
|
|
923
|
+
f(0);
|
|
911
924
|
return;
|
|
912
925
|
}
|
|
913
926
|
const h = Me(t);
|
|
914
927
|
if (!h) {
|
|
915
|
-
|
|
928
|
+
f(0);
|
|
916
929
|
return;
|
|
917
930
|
}
|
|
918
931
|
const g = Array.from(o.querySelectorAll("span")), x = [], w = [];
|
|
919
932
|
let k = 0;
|
|
920
|
-
for (const
|
|
921
|
-
const P = Me(
|
|
933
|
+
for (const d of g) {
|
|
934
|
+
const P = Me(d.textContent ?? "");
|
|
922
935
|
x.push({ start: k, end: k + P.length }), w.push(P), k += P.length;
|
|
923
936
|
}
|
|
924
937
|
const z = w.join("");
|
|
925
|
-
let
|
|
938
|
+
let T = 0;
|
|
926
939
|
const D = /* @__PURE__ */ new Set();
|
|
927
940
|
let I = 0;
|
|
928
941
|
for (; I <= z.length - h.length; ) {
|
|
929
|
-
const
|
|
930
|
-
if (
|
|
931
|
-
|
|
932
|
-
const P =
|
|
942
|
+
const d = z.indexOf(h, I);
|
|
943
|
+
if (d === -1) break;
|
|
944
|
+
T += 1;
|
|
945
|
+
const P = d + h.length;
|
|
933
946
|
for (let N = 0; N < x.length; N++) {
|
|
934
947
|
const { start: v, end: E } = x[N];
|
|
935
|
-
v < P && E >
|
|
948
|
+
v < P && E > d && D.add(N);
|
|
936
949
|
}
|
|
937
950
|
I = P;
|
|
938
951
|
}
|
|
939
|
-
D.forEach((
|
|
940
|
-
g[
|
|
941
|
-
}),
|
|
952
|
+
D.forEach((d) => {
|
|
953
|
+
g[d].setAttribute("data-match", "true");
|
|
954
|
+
}), f(T);
|
|
942
955
|
}
|
|
943
956
|
export {
|
|
944
957
|
at as P,
|
|
945
958
|
Ge as p
|
|
946
959
|
};
|
|
947
|
-
//# sourceMappingURL=pdf-viewer-
|
|
960
|
+
//# sourceMappingURL=pdf-viewer-B6MC6VTx.js.map
|