@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 F, jsxs as ke } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as De, useState as ne, useCallback as le, useEffect as fe, forwardRef as
|
|
2
|
+
import { useRef as De, useState as ne, useCallback as le, useEffect as fe, forwardRef as Se, useId as St, useMemo as Qe, useImperativeHandle as yt, Children as et, isValidElement as tt, createContext as It, useContext as Ct } from "react";
|
|
3
3
|
import { c as nt } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as ye } from "react-i18next";
|
|
5
5
|
import { I as Je } from "./icon-button-LqoiKcUN.js";
|
|
6
6
|
import { C as Lt } from "./chevron-left-CX1jqD2M.js";
|
|
7
7
|
import { C as wt } from "./chevron-right-BrpYejk0.js";
|
|
8
|
-
function
|
|
8
|
+
function Tt(e) {
|
|
9
9
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
10
10
|
}
|
|
11
11
|
function Xe(e) {
|
|
12
|
-
return
|
|
12
|
+
return Tt(e) || Array.isArray(e);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Et() {
|
|
15
15
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
16
16
|
}
|
|
17
17
|
function Ne(e, t) {
|
|
@@ -23,12 +23,12 @@ function Ne(e, t) {
|
|
|
23
23
|
return typeof a == "function" ? `${a}` == `${c}` : !Xe(a) || !Xe(c) ? a === c : Ne(a, c);
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Ze(e) {
|
|
27
27
|
return e.concat().sort((t, n) => t.name > n.name ? 1 : -1).map((t) => t.options);
|
|
28
28
|
}
|
|
29
29
|
function kt(e, t) {
|
|
30
30
|
if (e.length !== t.length) return !1;
|
|
31
|
-
const n =
|
|
31
|
+
const n = Ze(e), o = Ze(t);
|
|
32
32
|
return n.every((i, s) => {
|
|
33
33
|
const r = o[s];
|
|
34
34
|
return Ne(i, r);
|
|
@@ -43,7 +43,7 @@ function Pe(e) {
|
|
|
43
43
|
function Ie(e) {
|
|
44
44
|
return typeof e == "boolean";
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Ye(e) {
|
|
47
47
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
48
48
|
}
|
|
49
49
|
function N(e) {
|
|
@@ -83,7 +83,7 @@ function ge(e) {
|
|
|
83
83
|
}
|
|
84
84
|
function rt(e, t) {
|
|
85
85
|
return [e, t].reduce((n, o) => (ge(o).forEach((i) => {
|
|
86
|
-
const s = n[i], r = o[i], a =
|
|
86
|
+
const s = n[i], r = o[i], a = Ye(s) && Ye(r);
|
|
87
87
|
n[i] = a ? rt(s, r) : r;
|
|
88
88
|
}), n), {});
|
|
89
89
|
}
|
|
@@ -144,7 +144,7 @@ function Nt(e, t, n, o) {
|
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
function b() {
|
|
147
|
-
|
|
147
|
+
x(), i.clear();
|
|
148
148
|
}
|
|
149
149
|
function p(h) {
|
|
150
150
|
if (!c) return;
|
|
@@ -158,7 +158,7 @@ function Nt(e, t, n, o) {
|
|
|
158
158
|
function m() {
|
|
159
159
|
c || (c = t.requestAnimationFrame(p));
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function x() {
|
|
162
162
|
t.cancelAnimationFrame(c), r = null, a = 0, c = 0;
|
|
163
163
|
}
|
|
164
164
|
function f() {
|
|
@@ -168,7 +168,7 @@ function Nt(e, t, n, o) {
|
|
|
168
168
|
init: u,
|
|
169
169
|
destroy: b,
|
|
170
170
|
start: m,
|
|
171
|
-
stop:
|
|
171
|
+
stop: x,
|
|
172
172
|
update: n,
|
|
173
173
|
render: o
|
|
174
174
|
};
|
|
@@ -256,73 +256,73 @@ function ot(e, t, n) {
|
|
|
256
256
|
};
|
|
257
257
|
return p;
|
|
258
258
|
}
|
|
259
|
-
function Ot(e, t, n, o, i, s, r, a, c, u, b, p, m,
|
|
259
|
+
function Ot(e, t, n, o, i, s, r, a, c, u, b, p, m, x, f, g, h, d, v) {
|
|
260
260
|
const {
|
|
261
261
|
cross: l,
|
|
262
262
|
direction: L
|
|
263
263
|
} = e, k = ["INPUT", "SELECT", "TEXTAREA"], C = {
|
|
264
264
|
passive: !1
|
|
265
|
-
}, y = he(), I = he(), w = ce(50, 225).constrain(
|
|
265
|
+
}, y = he(), I = he(), w = ce(50, 225).constrain(x.measure(20)), A = {
|
|
266
266
|
mouse: 300,
|
|
267
267
|
touch: 400
|
|
268
|
-
},
|
|
268
|
+
}, T = {
|
|
269
269
|
mouse: 500,
|
|
270
270
|
touch: 600
|
|
271
271
|
}, V = f ? 43 : 25;
|
|
272
|
-
let _ = !1, M = 0, B = 0,
|
|
273
|
-
function W(
|
|
272
|
+
let _ = !1, M = 0, B = 0, K = !1, G = !1, q = !1, U = !1;
|
|
273
|
+
function W(S) {
|
|
274
274
|
if (!v) return;
|
|
275
275
|
function P(R) {
|
|
276
|
-
(Ie(v) || v(
|
|
276
|
+
(Ie(v) || v(S, R)) && oe(R);
|
|
277
277
|
}
|
|
278
278
|
const j = t;
|
|
279
279
|
y.add(j, "dragstart", (R) => R.preventDefault(), C).add(j, "touchmove", () => {
|
|
280
280
|
}, C).add(j, "touchend", () => {
|
|
281
281
|
}).add(j, "touchstart", P).add(j, "mousedown", P).add(j, "touchcancel", O).add(j, "contextmenu", O).add(j, "click", H, !0);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function $() {
|
|
284
284
|
y.clear(), I.clear();
|
|
285
285
|
}
|
|
286
286
|
function X() {
|
|
287
|
-
const
|
|
288
|
-
I.add(
|
|
287
|
+
const S = U ? n : t;
|
|
288
|
+
I.add(S, "touchmove", E, C).add(S, "touchend", O).add(S, "mousemove", E, C).add(S, "mouseup", O);
|
|
289
289
|
}
|
|
290
|
-
function ee(
|
|
291
|
-
const P =
|
|
290
|
+
function ee(S) {
|
|
291
|
+
const P = S.nodeName || "";
|
|
292
292
|
return k.includes(P);
|
|
293
293
|
}
|
|
294
294
|
function Q() {
|
|
295
|
-
return (f ?
|
|
295
|
+
return (f ? T : A)[U ? "mouse" : "touch"];
|
|
296
296
|
}
|
|
297
|
-
function re(
|
|
298
|
-
const j = p.add(Oe(
|
|
299
|
-
return f || N(
|
|
297
|
+
function re(S, P) {
|
|
298
|
+
const j = p.add(Oe(S) * -1), R = b.byDistance(S, !f).distance;
|
|
299
|
+
return f || N(S) < w ? R : h && P ? R * 0.5 : b.byIndex(j.get(), 0).distance;
|
|
300
300
|
}
|
|
301
|
-
function oe(
|
|
302
|
-
const P = Ae(
|
|
303
|
-
|
|
301
|
+
function oe(S) {
|
|
302
|
+
const P = Ae(S, o);
|
|
303
|
+
U = P, q = f && P && !S.buttons && _, _ = pe(i.get(), r.get()) >= 2, !(P && S.button !== 0) && (ee(S.target) || (K = !0, s.pointerDown(S), u.useFriction(0).useDuration(0), i.set(r), X(), M = s.readPoint(S), B = s.readPoint(S, l), m.emit("pointerDown")));
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
if (!Ae(
|
|
307
|
-
const j = s.readPoint(
|
|
308
|
-
if (!G &&
|
|
309
|
-
return O(
|
|
310
|
-
const se = s.pointerMove(
|
|
311
|
-
|
|
305
|
+
function E(S) {
|
|
306
|
+
if (!Ae(S, o) && S.touches.length >= 2) return O(S);
|
|
307
|
+
const j = s.readPoint(S), R = s.readPoint(S, l), Z = pe(j, M), Y = pe(R, B);
|
|
308
|
+
if (!G && !U && (!S.cancelable || (G = Z > Y, !G)))
|
|
309
|
+
return O(S);
|
|
310
|
+
const se = s.pointerMove(S);
|
|
311
|
+
Z > g && (q = !0), u.useFriction(0.3).useDuration(0.75), a.start(), i.add(L(se)), S.preventDefault();
|
|
312
312
|
}
|
|
313
|
-
function O(
|
|
314
|
-
const j = b.byDistance(0, !1).index !== p.get(), R = s.pointerUp(
|
|
315
|
-
G = !1,
|
|
313
|
+
function O(S) {
|
|
314
|
+
const j = b.byDistance(0, !1).index !== p.get(), R = s.pointerUp(S) * Q(), Z = re(L(R), j), Y = Dt(R, Z), se = V - 10 * Y, te = d + Y / 50;
|
|
315
|
+
G = !1, K = !1, I.clear(), u.useDuration(se).useFriction(te), c.distance(Z, !f), U = !1, m.emit("pointerUp");
|
|
316
316
|
}
|
|
317
|
-
function H(
|
|
318
|
-
|
|
317
|
+
function H(S) {
|
|
318
|
+
q && (S.stopPropagation(), S.preventDefault(), q = !1);
|
|
319
319
|
}
|
|
320
320
|
function z() {
|
|
321
|
-
return
|
|
321
|
+
return K;
|
|
322
322
|
}
|
|
323
323
|
return {
|
|
324
324
|
init: W,
|
|
325
|
-
destroy:
|
|
325
|
+
destroy: $,
|
|
326
326
|
pointerDown: z
|
|
327
327
|
};
|
|
328
328
|
}
|
|
@@ -339,13 +339,13 @@ function jt(e, t) {
|
|
|
339
339
|
return o = p, i = p, r(p);
|
|
340
340
|
}
|
|
341
341
|
function c(p) {
|
|
342
|
-
const m = r(p) - r(i),
|
|
343
|
-
return i = p,
|
|
342
|
+
const m = r(p) - r(i), x = s(p) - s(o) > 170;
|
|
343
|
+
return i = p, x && (o = p), m;
|
|
344
344
|
}
|
|
345
345
|
function u(p) {
|
|
346
346
|
if (!o || !i) return 0;
|
|
347
|
-
const m = r(i) - r(o),
|
|
348
|
-
return
|
|
347
|
+
const m = r(i) - r(o), x = s(p) - s(o), f = s(p) - s(i) > 170, g = m / x;
|
|
348
|
+
return x && !f && N(g) > 0.1 ? g : 0;
|
|
349
349
|
}
|
|
350
350
|
return {
|
|
351
351
|
pointerDown: a,
|
|
@@ -389,7 +389,7 @@ function Vt(e, t, n, o, i, s, r) {
|
|
|
389
389
|
function m(h) {
|
|
390
390
|
return i.measureSize(r.measure(h));
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function x(h) {
|
|
393
393
|
if (!s) return;
|
|
394
394
|
u = m(e), b = o.map(m);
|
|
395
395
|
function d(v) {
|
|
@@ -412,7 +412,7 @@ function Vt(e, t, n, o, i, s, r) {
|
|
|
412
412
|
p = !0, c && c.disconnect();
|
|
413
413
|
}
|
|
414
414
|
return {
|
|
415
|
-
init:
|
|
415
|
+
init: x,
|
|
416
416
|
destroy: f
|
|
417
417
|
};
|
|
418
418
|
}
|
|
@@ -423,7 +423,7 @@ function Bt(e, t, n, o, i, s) {
|
|
|
423
423
|
let I = 0;
|
|
424
424
|
return y ? (r = 0, n.set(o), e.set(o), I = C) : (n.set(e), r += C / c, r *= u, b += r, e.add(r), I = b - p), a = Oe(I), p = b, k;
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function x() {
|
|
427
427
|
const C = o.get() - t.get();
|
|
428
428
|
return N(C) < 1e-3;
|
|
429
429
|
}
|
|
@@ -453,7 +453,7 @@ function Bt(e, t, n, o, i, s) {
|
|
|
453
453
|
duration: f,
|
|
454
454
|
velocity: h,
|
|
455
455
|
seek: m,
|
|
456
|
-
settled:
|
|
456
|
+
settled: x,
|
|
457
457
|
useBaseFriction: v,
|
|
458
458
|
useBaseDuration: d,
|
|
459
459
|
useFriction: L,
|
|
@@ -467,13 +467,13 @@ function Rt(e, t, n, o, i) {
|
|
|
467
467
|
function u() {
|
|
468
468
|
return !(c || !e.reachedAny(n.get()) || !e.reachedAny(t.get()));
|
|
469
469
|
}
|
|
470
|
-
function b(
|
|
470
|
+
function b(x) {
|
|
471
471
|
if (!u()) return;
|
|
472
472
|
const f = e.reachedMin(t.get()) ? "min" : "max", g = N(e[f] - t.get()), h = n.get() - t.get(), d = a.constrain(g / r);
|
|
473
|
-
n.subtract(h * d), !
|
|
473
|
+
n.subtract(h * d), !x && N(h) < s && (n.set(e.constrain(n.get())), o.useDuration(25).useBaseFriction());
|
|
474
474
|
}
|
|
475
|
-
function p(
|
|
476
|
-
c = !
|
|
475
|
+
function p(x) {
|
|
476
|
+
c = !x;
|
|
477
477
|
}
|
|
478
478
|
return {
|
|
479
479
|
shouldConstrain: u,
|
|
@@ -529,14 +529,14 @@ function _t(e, t, n, o) {
|
|
|
529
529
|
}
|
|
530
530
|
function b(m) {
|
|
531
531
|
if (!u(m)) return;
|
|
532
|
-
const
|
|
533
|
-
o.forEach((f) => f.add(
|
|
532
|
+
const x = e * (m * -1);
|
|
533
|
+
o.forEach((f) => f.add(x));
|
|
534
534
|
}
|
|
535
535
|
return {
|
|
536
536
|
loop: b
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Kt(e) {
|
|
540
540
|
const {
|
|
541
541
|
max: t,
|
|
542
542
|
length: n
|
|
@@ -549,20 +549,20 @@ function Ut(e) {
|
|
|
549
549
|
get: o
|
|
550
550
|
};
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Ut(e, t, n, o, i) {
|
|
553
553
|
const {
|
|
554
554
|
startEdge: s,
|
|
555
555
|
endEdge: r
|
|
556
556
|
} = e, {
|
|
557
557
|
groupSlides: a
|
|
558
|
-
} = i, c = p().map(t.measure), u = m(), b =
|
|
558
|
+
} = i, c = p().map(t.measure), u = m(), b = x();
|
|
559
559
|
function p() {
|
|
560
560
|
return a(o).map((g) => J(g)[r] - g[0][s]).map(N);
|
|
561
561
|
}
|
|
562
562
|
function m() {
|
|
563
563
|
return o.map((g) => n[s] - g[s]).map((g) => -N(g));
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function x() {
|
|
566
566
|
return a(u).map((g) => g[0]).map((g, h) => g + c[h]);
|
|
567
567
|
}
|
|
568
568
|
return {
|
|
@@ -570,7 +570,7 @@ function $t(e, t, n, o, i) {
|
|
|
570
570
|
snapsAligned: b
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function $t(e, t, n, o, i, s) {
|
|
574
574
|
const {
|
|
575
575
|
groupSlides: r
|
|
576
576
|
} = i, {
|
|
@@ -578,8 +578,8 @@ function qt(e, t, n, o, i, s) {
|
|
|
578
578
|
max: c
|
|
579
579
|
} = o, u = b();
|
|
580
580
|
function b() {
|
|
581
|
-
const m = r(s),
|
|
582
|
-
return n.length === 1 ? [s] :
|
|
581
|
+
const m = r(s), x = !e || t === "keepSnaps";
|
|
582
|
+
return n.length === 1 ? [s] : x ? m : m.slice(a, c).map((f, g, h) => {
|
|
583
583
|
const d = !g, v = je(h, g);
|
|
584
584
|
if (d) {
|
|
585
585
|
const l = J(h[0]) + 1;
|
|
@@ -596,7 +596,7 @@ function qt(e, t, n, o, i, s) {
|
|
|
596
596
|
slideRegistry: u
|
|
597
597
|
};
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function qt(e, t, n, o, i) {
|
|
600
600
|
const {
|
|
601
601
|
reachedAny: s,
|
|
602
602
|
removeOffset: r,
|
|
@@ -654,15 +654,15 @@ function Kt(e, t, n, o, i) {
|
|
|
654
654
|
}
|
|
655
655
|
function Qt(e, t, n, o, i, s, r) {
|
|
656
656
|
function a(p) {
|
|
657
|
-
const m = p.distance,
|
|
658
|
-
s.add(m), m && (o.duration() ? e.start() : (e.update(), e.render(1), e.update())),
|
|
657
|
+
const m = p.distance, x = p.index !== t.get();
|
|
658
|
+
s.add(m), m && (o.duration() ? e.start() : (e.update(), e.render(1), e.update())), x && (n.set(t.get()), t.set(p.index), r.emit("select"));
|
|
659
659
|
}
|
|
660
660
|
function c(p, m) {
|
|
661
|
-
const
|
|
662
|
-
a(
|
|
661
|
+
const x = i.byDistance(p, m);
|
|
662
|
+
a(x);
|
|
663
663
|
}
|
|
664
664
|
function u(p, m) {
|
|
665
|
-
const
|
|
665
|
+
const x = t.clone().set(p), f = i.byIndex(x.get(), m);
|
|
666
666
|
a(f);
|
|
667
667
|
}
|
|
668
668
|
return {
|
|
@@ -676,7 +676,7 @@ function Jt(e, t, n, o, i, s, r, a) {
|
|
|
676
676
|
capture: !0
|
|
677
677
|
};
|
|
678
678
|
let u = 0;
|
|
679
|
-
function b(
|
|
679
|
+
function b(x) {
|
|
680
680
|
if (!a) return;
|
|
681
681
|
function f(g) {
|
|
682
682
|
if ((/* @__PURE__ */ new Date()).getTime() - u > 10) return;
|
|
@@ -686,12 +686,12 @@ function Jt(e, t, n, o, i, s, r, a) {
|
|
|
686
686
|
}
|
|
687
687
|
s.add(document, "keydown", p, !1), t.forEach((g, h) => {
|
|
688
688
|
s.add(g, "focus", (d) => {
|
|
689
|
-
(Ie(a) || a(
|
|
689
|
+
(Ie(a) || a(x, d)) && f(h);
|
|
690
690
|
}, c);
|
|
691
691
|
});
|
|
692
692
|
}
|
|
693
|
-
function p(
|
|
694
|
-
|
|
693
|
+
function p(x) {
|
|
694
|
+
x.code === "Tab" && (u = (/* @__PURE__ */ new Date()).getTime());
|
|
695
695
|
}
|
|
696
696
|
return {
|
|
697
697
|
init: b
|
|
@@ -732,8 +732,8 @@ function st(e, t) {
|
|
|
732
732
|
}
|
|
733
733
|
function c(m) {
|
|
734
734
|
if (s) return;
|
|
735
|
-
const
|
|
736
|
-
|
|
735
|
+
const x = Pt(e.direction(m));
|
|
736
|
+
x !== i && (o.transform = n(x), i = x);
|
|
737
737
|
}
|
|
738
738
|
function u(m) {
|
|
739
739
|
s = !m;
|
|
@@ -749,11 +749,11 @@ function st(e, t) {
|
|
|
749
749
|
}
|
|
750
750
|
function Xt(e, t, n, o, i, s, r, a, c) {
|
|
751
751
|
const b = me(i), p = me(i).reverse(), m = d().concat(v());
|
|
752
|
-
function
|
|
752
|
+
function x(y, I) {
|
|
753
753
|
return y.reduce((w, A) => w - i[A], I);
|
|
754
754
|
}
|
|
755
755
|
function f(y, I) {
|
|
756
|
-
return y.reduce((w, A) =>
|
|
756
|
+
return y.reduce((w, A) => x(w, I) > 0 ? w.concat([A]) : w, []);
|
|
757
757
|
}
|
|
758
758
|
function g(y) {
|
|
759
759
|
return s.map((I, w) => ({
|
|
@@ -763,13 +763,13 @@ function Xt(e, t, n, o, i, s, r, a, c) {
|
|
|
763
763
|
}
|
|
764
764
|
function h(y, I, w) {
|
|
765
765
|
const A = g(I);
|
|
766
|
-
return y.map((
|
|
767
|
-
const V = w ? 0 : -n, _ = w ? n : 0, M = w ? "end" : "start", B = A[
|
|
766
|
+
return y.map((T) => {
|
|
767
|
+
const V = w ? 0 : -n, _ = w ? n : 0, M = w ? "end" : "start", B = A[T][M];
|
|
768
768
|
return {
|
|
769
|
-
index:
|
|
769
|
+
index: T,
|
|
770
770
|
loopPoint: B,
|
|
771
771
|
slideLocation: de(-1),
|
|
772
|
-
translate: st(e, c[
|
|
772
|
+
translate: st(e, c[T]),
|
|
773
773
|
target: () => a.get() > B ? V : _
|
|
774
774
|
};
|
|
775
775
|
});
|
|
@@ -787,7 +787,7 @@ function Xt(e, t, n, o, i, s, r, a, c) {
|
|
|
787
787
|
index: y
|
|
788
788
|
}) => {
|
|
789
789
|
const I = b.filter((w) => w !== y);
|
|
790
|
-
return
|
|
790
|
+
return x(I, t) <= 0.1;
|
|
791
791
|
});
|
|
792
792
|
}
|
|
793
793
|
function L() {
|
|
@@ -796,8 +796,8 @@ function Xt(e, t, n, o, i, s, r, a, c) {
|
|
|
796
796
|
target: I,
|
|
797
797
|
translate: w,
|
|
798
798
|
slideLocation: A
|
|
799
|
-
} = y,
|
|
800
|
-
|
|
799
|
+
} = y, T = I();
|
|
800
|
+
T !== A.get() && (w.to(T), A.set(T));
|
|
801
801
|
});
|
|
802
802
|
}
|
|
803
803
|
function k() {
|
|
@@ -810,7 +810,7 @@ function Xt(e, t, n, o, i, s, r, a, c) {
|
|
|
810
810
|
loopPoints: m
|
|
811
811
|
};
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function Zt(e, t, n) {
|
|
814
814
|
let o, i = !1;
|
|
815
815
|
function s(c) {
|
|
816
816
|
if (!n) return;
|
|
@@ -835,7 +835,7 @@ function Yt(e, t, n) {
|
|
|
835
835
|
destroy: r
|
|
836
836
|
};
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function Yt(e, t, n, o) {
|
|
839
839
|
const i = {};
|
|
840
840
|
let s = null, r = null, a, c = !1;
|
|
841
841
|
function u() {
|
|
@@ -877,7 +877,7 @@ function Wt(e, t, n, o, i, s) {
|
|
|
877
877
|
measureSize: r,
|
|
878
878
|
startEdge: a,
|
|
879
879
|
endEdge: c
|
|
880
|
-
} = e, u = n[0] && i, b = f(), p = g(), m = n.map(r),
|
|
880
|
+
} = e, u = n[0] && i, b = f(), p = g(), m = n.map(r), x = h();
|
|
881
881
|
function f() {
|
|
882
882
|
if (!u) return 0;
|
|
883
883
|
const v = n[0];
|
|
@@ -896,7 +896,7 @@ function Wt(e, t, n, o, i, s) {
|
|
|
896
896
|
}
|
|
897
897
|
return {
|
|
898
898
|
slideSizes: m,
|
|
899
|
-
slideSizesWithGaps:
|
|
899
|
+
slideSizesWithGaps: x,
|
|
900
900
|
startGap: b,
|
|
901
901
|
endGap: p
|
|
902
902
|
};
|
|
@@ -907,12 +907,12 @@ function en(e, t, n, o, i, s, r, a, c) {
|
|
|
907
907
|
endEdge: b,
|
|
908
908
|
direction: p
|
|
909
909
|
} = e, m = Me(n);
|
|
910
|
-
function
|
|
910
|
+
function x(d, v) {
|
|
911
911
|
return me(d).filter((l) => l % v === 0).map((l) => d.slice(l, l + v));
|
|
912
912
|
}
|
|
913
913
|
function f(d) {
|
|
914
914
|
return d.length ? me(d).reduce((v, l, L) => {
|
|
915
|
-
const k = J(v) || 0, C = k === 0, y = l === be(d), I = i[u] - s[k][u], w = i[u] - s[l][b], A = !o && C ? p(r) : 0,
|
|
915
|
+
const k = J(v) || 0, C = k === 0, y = l === be(d), I = i[u] - s[k][u], w = i[u] - s[l][b], A = !o && C ? p(r) : 0, T = !o && y ? p(a) : 0, V = N(w - T - (I + A));
|
|
916
916
|
return L && V > t + c && v.push(l), y && v.push(d.length), v;
|
|
917
917
|
}, []).map((v, l, L) => {
|
|
918
918
|
const k = Math.max(L[l - 1] || 0);
|
|
@@ -920,7 +920,7 @@ function en(e, t, n, o, i, s, r, a, c) {
|
|
|
920
920
|
}) : [];
|
|
921
921
|
}
|
|
922
922
|
function g(d) {
|
|
923
|
-
return m ?
|
|
923
|
+
return m ? x(d, n) : f(d);
|
|
924
924
|
}
|
|
925
925
|
return {
|
|
926
926
|
groupSlides: g
|
|
@@ -934,7 +934,7 @@ function tn(e, t, n, o, i, s, r) {
|
|
|
934
934
|
startIndex: b,
|
|
935
935
|
loop: p,
|
|
936
936
|
duration: m,
|
|
937
|
-
dragFree:
|
|
937
|
+
dragFree: x,
|
|
938
938
|
dragThreshold: f,
|
|
939
939
|
inViewThreshold: g,
|
|
940
940
|
slidesToScroll: h,
|
|
@@ -944,32 +944,32 @@ function tn(e, t, n, o, i, s, r) {
|
|
|
944
944
|
watchSlides: L,
|
|
945
945
|
watchDrag: k,
|
|
946
946
|
watchFocus: C
|
|
947
|
-
} = s, y = 2, I = Ft(), w = I.measure(t), A = n.map(I.measure),
|
|
947
|
+
} = s, y = 2, I = Ft(), w = I.measure(t), A = n.map(I.measure), T = Mt(c, u), V = T.measureSize(w), _ = zt(V), M = At(a, V), B = !p && !!v, K = p || !!v, {
|
|
948
948
|
slideSizes: G,
|
|
949
|
-
slideSizesWithGaps:
|
|
950
|
-
startGap:
|
|
949
|
+
slideSizesWithGaps: q,
|
|
950
|
+
startGap: U,
|
|
951
951
|
endGap: W
|
|
952
|
-
} = Wt(
|
|
952
|
+
} = Wt(T, w, A, n, K, i), $ = en(T, V, h, p, w, A, U, W, y), {
|
|
953
953
|
snaps: X,
|
|
954
954
|
snapsAligned: ee
|
|
955
|
-
} =
|
|
955
|
+
} = Ut(T, M, w, A, $), Q = -J(X) + J(q), {
|
|
956
956
|
snapsContained: re,
|
|
957
957
|
scrollContainLimit: oe
|
|
958
|
-
} = Ht(V, Q, ee, v, y),
|
|
958
|
+
} = Ht(V, Q, ee, v, y), E = B ? re : ee, {
|
|
959
959
|
limit: O
|
|
960
|
-
} = Gt(Q,
|
|
960
|
+
} = Gt(Q, E, p), H = ot(be(E), b, p), z = H.clone(), D = me(n), S = ({
|
|
961
961
|
dragHandler: ae,
|
|
962
|
-
scrollBody:
|
|
963
|
-
scrollBounds:
|
|
962
|
+
scrollBody: Te,
|
|
963
|
+
scrollBounds: Ee,
|
|
964
964
|
options: {
|
|
965
965
|
loop: ve
|
|
966
966
|
}
|
|
967
967
|
}) => {
|
|
968
|
-
ve ||
|
|
968
|
+
ve || Ee.constrain(ae.pointerDown()), Te.seek();
|
|
969
969
|
}, P = ({
|
|
970
970
|
scrollBody: ae,
|
|
971
|
-
translate:
|
|
972
|
-
location:
|
|
971
|
+
translate: Te,
|
|
972
|
+
location: Ee,
|
|
973
973
|
offsetLocation: ve,
|
|
974
974
|
previousLocation: ft,
|
|
975
975
|
scrollLooper: pt,
|
|
@@ -981,49 +981,49 @@ function tn(e, t, n, o, i, s, r) {
|
|
|
981
981
|
options: {
|
|
982
982
|
loop: _e
|
|
983
983
|
}
|
|
984
|
-
},
|
|
985
|
-
const
|
|
986
|
-
|
|
987
|
-
const
|
|
988
|
-
ve.set(
|
|
989
|
-
}, j = Nt(o, i, () =>
|
|
984
|
+
}, Ke) => {
|
|
985
|
+
const Ue = ae.settled(), vt = !bt.shouldConstrain(), $e = _e ? Ue : Ue && vt, qe = $e && !gt.pointerDown();
|
|
986
|
+
qe && ht.stop();
|
|
987
|
+
const xt = Ee.get() * Ke + ft.get() * (1 - Ke);
|
|
988
|
+
ve.set(xt), _e && (pt.loop(ae.direction()), mt.loop()), Te.to(ve.get()), qe && Ge.emit("settle"), $e || Ge.emit("scroll");
|
|
989
|
+
}, j = Nt(o, i, () => S(we), (ae) => P(we, ae)), R = 0.68, Z = E[H.get()], Y = de(Z), se = de(Z), te = de(Z), ie = de(Z), ue = Bt(Y, te, se, ie, m, R), Ce = qt(p, E, Q, O, ie), Le = Qt(j, H, z, ue, Ce, ie, r), Be = Kt(O), Re = he(), lt = Yt(t, n, r, g), {
|
|
990
990
|
slideRegistry: He
|
|
991
|
-
} =
|
|
991
|
+
} = $t(B, v, E, oe, $, D), dt = Jt(e, n, He, Le, ue, Re, r, C), we = {
|
|
992
992
|
ownerDocument: o,
|
|
993
993
|
ownerWindow: i,
|
|
994
994
|
eventHandler: r,
|
|
995
995
|
containerRect: w,
|
|
996
996
|
slideRects: A,
|
|
997
997
|
animation: j,
|
|
998
|
-
axis:
|
|
999
|
-
dragHandler: Ot(
|
|
998
|
+
axis: T,
|
|
999
|
+
dragHandler: Ot(T, e, o, i, ie, jt(T, i), Y, j, Le, ue, Ce, H, r, _, x, f, d, R, k),
|
|
1000
1000
|
eventStore: Re,
|
|
1001
1001
|
percentOfView: _,
|
|
1002
1002
|
index: H,
|
|
1003
1003
|
indexPrevious: z,
|
|
1004
1004
|
limit: O,
|
|
1005
|
-
location:
|
|
1005
|
+
location: Y,
|
|
1006
1006
|
offsetLocation: te,
|
|
1007
1007
|
previousLocation: se,
|
|
1008
1008
|
options: s,
|
|
1009
|
-
resizeHandler: Vt(t, r, i, n,
|
|
1009
|
+
resizeHandler: Vt(t, r, i, n, T, l, I),
|
|
1010
1010
|
scrollBody: ue,
|
|
1011
1011
|
scrollBounds: Rt(O, te, ie, ue, _),
|
|
1012
|
-
scrollLooper: _t(Q, O, te, [
|
|
1012
|
+
scrollLooper: _t(Q, O, te, [Y, te, se, ie]),
|
|
1013
1013
|
scrollProgress: Be,
|
|
1014
|
-
scrollSnapList:
|
|
1015
|
-
scrollSnaps:
|
|
1014
|
+
scrollSnapList: E.map(Be.get),
|
|
1015
|
+
scrollSnaps: E,
|
|
1016
1016
|
scrollTarget: Ce,
|
|
1017
1017
|
scrollTo: Le,
|
|
1018
|
-
slideLooper: Xt(
|
|
1018
|
+
slideLooper: Xt(T, V, Q, G, q, X, E, te, n),
|
|
1019
1019
|
slideFocus: dt,
|
|
1020
|
-
slidesHandler:
|
|
1020
|
+
slidesHandler: Zt(t, r, L),
|
|
1021
1021
|
slidesInView: lt,
|
|
1022
1022
|
slideIndexes: D,
|
|
1023
1023
|
slideRegistry: He,
|
|
1024
|
-
slidesToScroll:
|
|
1024
|
+
slidesToScroll: $,
|
|
1025
1025
|
target: ie,
|
|
1026
|
-
translate: st(
|
|
1026
|
+
translate: st(T, t)
|
|
1027
1027
|
};
|
|
1028
1028
|
return we;
|
|
1029
1029
|
}
|
|
@@ -1112,46 +1112,46 @@ function sn(e) {
|
|
|
1112
1112
|
destroy: o
|
|
1113
1113
|
};
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function xe(e, t, n) {
|
|
1116
1116
|
const o = e.ownerDocument, i = o.defaultView, s = on(i), r = sn(s), a = he(), c = nn(), {
|
|
1117
1117
|
mergeOptions: u,
|
|
1118
1118
|
optionsAtMedia: b,
|
|
1119
1119
|
optionsMediaQueries: p
|
|
1120
1120
|
} = s, {
|
|
1121
1121
|
on: m,
|
|
1122
|
-
off:
|
|
1122
|
+
off: x,
|
|
1123
1123
|
emit: f
|
|
1124
|
-
} = c, g =
|
|
1125
|
-
let h = !1, d, v = u(rn,
|
|
1124
|
+
} = c, g = T;
|
|
1125
|
+
let h = !1, d, v = u(rn, xe.globalOptions), l = u(v), L = [], k, C, y;
|
|
1126
1126
|
function I() {
|
|
1127
1127
|
const {
|
|
1128
1128
|
container: D,
|
|
1129
|
-
slides:
|
|
1129
|
+
slides: S
|
|
1130
1130
|
} = l;
|
|
1131
1131
|
C = (Pe(D) ? e.querySelector(D) : D) || e.children[0];
|
|
1132
|
-
const j = Pe(
|
|
1132
|
+
const j = Pe(S) ? C.querySelectorAll(S) : S;
|
|
1133
1133
|
y = [].slice.call(j || C.children);
|
|
1134
1134
|
}
|
|
1135
1135
|
function w(D) {
|
|
1136
|
-
const
|
|
1137
|
-
if (D.loop && !
|
|
1136
|
+
const S = tn(e, C, y, o, i, D, c);
|
|
1137
|
+
if (D.loop && !S.slideLooper.canLoop()) {
|
|
1138
1138
|
const P = Object.assign({}, D, {
|
|
1139
1139
|
loop: !1
|
|
1140
1140
|
});
|
|
1141
1141
|
return w(P);
|
|
1142
1142
|
}
|
|
1143
|
-
return
|
|
1143
|
+
return S;
|
|
1144
1144
|
}
|
|
1145
|
-
function A(D,
|
|
1146
|
-
h || (v = u(v, D), l = b(v), L =
|
|
1145
|
+
function A(D, S) {
|
|
1146
|
+
h || (v = u(v, D), l = b(v), L = S || L, I(), d = w(l), p([v, ...L.map(({
|
|
1147
1147
|
options: P
|
|
1148
|
-
}) => P)]).forEach((P) => a.add(P, "change",
|
|
1148
|
+
}) => P)]).forEach((P) => a.add(P, "change", T)), l.active && (d.translate.to(d.location.get()), d.animation.init(), d.slidesInView.init(), d.slideFocus.init(z), d.eventHandler.init(z), d.resizeHandler.init(z), d.slidesHandler.init(z), d.options.loop && d.slideLooper.loop(), C.offsetParent && y.length && d.dragHandler.init(z), k = r.init(z, L)));
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1151
|
-
const P =
|
|
1150
|
+
function T(D, S) {
|
|
1151
|
+
const P = $();
|
|
1152
1152
|
V(), A(u({
|
|
1153
1153
|
startIndex: P
|
|
1154
|
-
}, D),
|
|
1154
|
+
}, D), S), c.emit("reInit");
|
|
1155
1155
|
}
|
|
1156
1156
|
function V() {
|
|
1157
1157
|
d.dragHandler.destroy(), d.eventStore.clear(), d.translate.clear(), d.slideLooper.clear(), d.resizeHandler.destroy(), d.slidesHandler.destroy(), d.slidesInView.destroy(), d.animation.destroy(), r.destroy(), a.clear();
|
|
@@ -1159,30 +1159,30 @@ function Se(e, t, n) {
|
|
|
1159
1159
|
function _() {
|
|
1160
1160
|
h || (h = !0, a.clear(), V(), c.emit("destroy"), c.clear());
|
|
1161
1161
|
}
|
|
1162
|
-
function M(D,
|
|
1163
|
-
!l.active || h || (d.scrollBody.useBaseFriction().useDuration(
|
|
1162
|
+
function M(D, S, P) {
|
|
1163
|
+
!l.active || h || (d.scrollBody.useBaseFriction().useDuration(S === !0 ? 0 : l.duration), d.scrollTo.index(D, P || 0));
|
|
1164
1164
|
}
|
|
1165
1165
|
function B(D) {
|
|
1166
|
-
const
|
|
1167
|
-
M(
|
|
1166
|
+
const S = d.index.add(1).get();
|
|
1167
|
+
M(S, D, -1);
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1170
|
-
const
|
|
1171
|
-
M(
|
|
1169
|
+
function K(D) {
|
|
1170
|
+
const S = d.index.add(-1).get();
|
|
1171
|
+
M(S, D, 1);
|
|
1172
1172
|
}
|
|
1173
1173
|
function G() {
|
|
1174
|
-
return d.index.add(1).get() !==
|
|
1174
|
+
return d.index.add(1).get() !== $();
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1177
|
-
return d.index.add(-1).get() !==
|
|
1176
|
+
function q() {
|
|
1177
|
+
return d.index.add(-1).get() !== $();
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function U() {
|
|
1180
1180
|
return d.scrollSnapList;
|
|
1181
1181
|
}
|
|
1182
1182
|
function W() {
|
|
1183
1183
|
return d.scrollProgress.get(d.offsetLocation.get());
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function $() {
|
|
1186
1186
|
return d.index.get();
|
|
1187
1187
|
}
|
|
1188
1188
|
function X() {
|
|
@@ -1200,7 +1200,7 @@ function Se(e, t, n) {
|
|
|
1200
1200
|
function oe() {
|
|
1201
1201
|
return d;
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function E() {
|
|
1204
1204
|
return e;
|
|
1205
1205
|
}
|
|
1206
1206
|
function O() {
|
|
@@ -1211,30 +1211,30 @@ function Se(e, t, n) {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
const z = {
|
|
1213
1213
|
canScrollNext: G,
|
|
1214
|
-
canScrollPrev:
|
|
1214
|
+
canScrollPrev: q,
|
|
1215
1215
|
containerNode: O,
|
|
1216
1216
|
internalEngine: oe,
|
|
1217
1217
|
destroy: _,
|
|
1218
|
-
off:
|
|
1218
|
+
off: x,
|
|
1219
1219
|
on: m,
|
|
1220
1220
|
emit: f,
|
|
1221
1221
|
plugins: re,
|
|
1222
1222
|
previousScrollSnap: X,
|
|
1223
1223
|
reInit: g,
|
|
1224
|
-
rootNode:
|
|
1224
|
+
rootNode: E,
|
|
1225
1225
|
scrollNext: B,
|
|
1226
|
-
scrollPrev:
|
|
1226
|
+
scrollPrev: K,
|
|
1227
1227
|
scrollProgress: W,
|
|
1228
|
-
scrollSnapList:
|
|
1228
|
+
scrollSnapList: U,
|
|
1229
1229
|
scrollTo: M,
|
|
1230
|
-
selectedScrollSnap:
|
|
1230
|
+
selectedScrollSnap: $,
|
|
1231
1231
|
slideNodes: H,
|
|
1232
1232
|
slidesInView: ee,
|
|
1233
1233
|
slidesNotInView: Q
|
|
1234
1234
|
};
|
|
1235
1235
|
return A(t, n), setTimeout(() => c.emit("init"), 0), z;
|
|
1236
1236
|
}
|
|
1237
|
-
|
|
1237
|
+
xe.globalOptions = void 0;
|
|
1238
1238
|
function Fe(e = {}, t = []) {
|
|
1239
1239
|
const n = De(e), o = De(t), [i, s] = ne(), [r, a] = ne(), c = le(() => {
|
|
1240
1240
|
i && i.reInit(n.current, o.current);
|
|
@@ -1244,9 +1244,9 @@ function Fe(e = {}, t = []) {
|
|
|
1244
1244
|
}, [e, c]), fe(() => {
|
|
1245
1245
|
kt(o.current, t) || (o.current = t, c());
|
|
1246
1246
|
}, [t, c]), fe(() => {
|
|
1247
|
-
if (
|
|
1248
|
-
|
|
1249
|
-
const u =
|
|
1247
|
+
if (Et() && r) {
|
|
1248
|
+
xe.globalOptions = Fe.globalOptions;
|
|
1249
|
+
const u = xe(r, n.current, o.current);
|
|
1250
1250
|
return s(u), () => u.destroy();
|
|
1251
1251
|
} else
|
|
1252
1252
|
s(void 0);
|
|
@@ -1297,7 +1297,7 @@ function ln(e) {
|
|
|
1297
1297
|
tt(o) && o.type.displayName === "Carousel.Header" ? t = o : n.push(o);
|
|
1298
1298
|
}), { header: t, items: n };
|
|
1299
1299
|
}
|
|
1300
|
-
const at =
|
|
1300
|
+
const at = Se(
|
|
1301
1301
|
({
|
|
1302
1302
|
children: e,
|
|
1303
1303
|
size: t = "md",
|
|
@@ -1311,24 +1311,24 @@ const at = xe(
|
|
|
1311
1311
|
"aria-label": u,
|
|
1312
1312
|
...b
|
|
1313
1313
|
}, p) => {
|
|
1314
|
-
const { t: m } = ye(),
|
|
1314
|
+
const { t: m } = ye(), x = un(), f = St(), g = `${a ?? f}-track`, h = `${a ?? f}-live`, d = Qe(
|
|
1315
1315
|
() => ({
|
|
1316
1316
|
align: "start",
|
|
1317
1317
|
// `mandatory` → embla's default tight snap; `proximity` → free-scroll.
|
|
1318
1318
|
dragFree: s === "proximity",
|
|
1319
1319
|
// Reduced-motion disables embla's tween entirely (snap is instant).
|
|
1320
|
-
duration:
|
|
1320
|
+
duration: x ? 0 : 25,
|
|
1321
1321
|
// Prevents over-scroll at the ends so the last item snaps cleanly.
|
|
1322
1322
|
containScroll: "trimSnaps"
|
|
1323
1323
|
}),
|
|
1324
|
-
[s,
|
|
1325
|
-
), [v, l] = Fe(d), [L, k] = ne(0), [C, y] = ne(0), [I, w] = ne(!1), [A,
|
|
1324
|
+
[s, x]
|
|
1325
|
+
), [v, l] = Fe(d), [L, k] = ne(0), [C, y] = ne(0), [I, w] = ne(!1), [A, T] = ne(!1), [V, _] = ne(""), M = De("init");
|
|
1326
1326
|
fe(() => {
|
|
1327
1327
|
if (!l) return;
|
|
1328
|
-
y(l.scrollSnapList().length), k(l.selectedScrollSnap()), w(l.canScrollPrev()),
|
|
1329
|
-
const
|
|
1328
|
+
y(l.scrollSnapList().length), k(l.selectedScrollSnap()), w(l.canScrollPrev()), T(l.canScrollNext());
|
|
1329
|
+
const E = () => {
|
|
1330
1330
|
const D = l.selectedScrollSnap();
|
|
1331
|
-
k(D), w(l.canScrollPrev()),
|
|
1331
|
+
k(D), w(l.canScrollPrev()), T(l.canScrollNext()), M.current === "control" && _(
|
|
1332
1332
|
m("carousel.slideAnnouncement", {
|
|
1333
1333
|
current: D + 1,
|
|
1334
1334
|
total: l.scrollSnapList().length
|
|
@@ -1339,41 +1339,41 @@ const at = xe(
|
|
|
1339
1339
|
}, H = () => {
|
|
1340
1340
|
M.current = "init";
|
|
1341
1341
|
}, z = () => {
|
|
1342
|
-
y(l.scrollSnapList().length), k(l.selectedScrollSnap()), w(l.canScrollPrev()),
|
|
1342
|
+
y(l.scrollSnapList().length), k(l.selectedScrollSnap()), w(l.canScrollPrev()), T(l.canScrollNext());
|
|
1343
1343
|
};
|
|
1344
|
-
return l.on("select",
|
|
1345
|
-
l.off("select",
|
|
1344
|
+
return l.on("select", E), l.on("pointerDown", O), l.on("pointerUp", H), l.on("reInit", z), () => {
|
|
1345
|
+
l.off("select", E), l.off("pointerDown", O), l.off("pointerUp", H), l.off("reInit", z);
|
|
1346
1346
|
};
|
|
1347
1347
|
}, [l, m]);
|
|
1348
1348
|
const B = le(() => {
|
|
1349
1349
|
l && (M.current = "control", l.scrollPrev());
|
|
1350
|
-
}, [l]),
|
|
1350
|
+
}, [l]), K = le(() => {
|
|
1351
1351
|
l && (M.current = "control", l.scrollNext());
|
|
1352
1352
|
}, [l]), G = le(
|
|
1353
|
-
(
|
|
1354
|
-
l && (M.current = "control", l.scrollTo(
|
|
1353
|
+
(E) => {
|
|
1354
|
+
l && (M.current = "control", l.scrollTo(E));
|
|
1355
1355
|
},
|
|
1356
1356
|
[l]
|
|
1357
|
-
),
|
|
1358
|
-
(
|
|
1357
|
+
), q = le(
|
|
1358
|
+
(E) => {
|
|
1359
1359
|
if (l)
|
|
1360
|
-
switch (
|
|
1360
|
+
switch (E.key) {
|
|
1361
1361
|
case "ArrowRight":
|
|
1362
|
-
|
|
1362
|
+
E.preventDefault(), l.scrollNext(), M.current = "control";
|
|
1363
1363
|
break;
|
|
1364
1364
|
case "ArrowLeft":
|
|
1365
|
-
|
|
1365
|
+
E.preventDefault(), l.scrollPrev(), M.current = "control";
|
|
1366
1366
|
break;
|
|
1367
1367
|
case "Home":
|
|
1368
|
-
|
|
1368
|
+
E.preventDefault(), l.scrollTo(0), M.current = "control";
|
|
1369
1369
|
break;
|
|
1370
1370
|
case "End":
|
|
1371
|
-
|
|
1371
|
+
E.preventDefault(), l.scrollTo(l.scrollSnapList().length - 1), M.current = "control";
|
|
1372
1372
|
break;
|
|
1373
1373
|
case "PageDown":
|
|
1374
1374
|
case "PageUp": {
|
|
1375
|
-
|
|
1376
|
-
const O = l.slidesInView().length || 1, H =
|
|
1375
|
+
E.preventDefault();
|
|
1376
|
+
const O = l.slidesInView().length || 1, H = E.key === "PageDown" ? 1 : -1, z = Math.max(
|
|
1377
1377
|
0,
|
|
1378
1378
|
Math.min(
|
|
1379
1379
|
l.selectedScrollSnap() + H * O,
|
|
@@ -1394,11 +1394,11 @@ const at = xe(
|
|
|
1394
1394
|
getActiveIndex: () => L,
|
|
1395
1395
|
getCount: () => C,
|
|
1396
1396
|
scrollPrev: B,
|
|
1397
|
-
scrollNext:
|
|
1397
|
+
scrollNext: K
|
|
1398
1398
|
}),
|
|
1399
|
-
[G, B,
|
|
1399
|
+
[G, B, K, L, C]
|
|
1400
1400
|
);
|
|
1401
|
-
const { header:
|
|
1401
|
+
const { header: U, items: W } = ln(e), $ = W.length, X = Math.max(C, $), ee = n && X > 1 || i != null, Q = U == null && ee, re = o && C > 1, oe = Qe(
|
|
1402
1402
|
() => ({
|
|
1403
1403
|
api: l,
|
|
1404
1404
|
activeIndex: L,
|
|
@@ -1406,7 +1406,7 @@ const at = xe(
|
|
|
1406
1406
|
canScrollPrev: I,
|
|
1407
1407
|
canScrollNext: A,
|
|
1408
1408
|
scrollPrev: B,
|
|
1409
|
-
scrollNext:
|
|
1409
|
+
scrollNext: K,
|
|
1410
1410
|
scrollToIndex: G,
|
|
1411
1411
|
trackId: g
|
|
1412
1412
|
}),
|
|
@@ -1417,7 +1417,7 @@ const at = xe(
|
|
|
1417
1417
|
I,
|
|
1418
1418
|
A,
|
|
1419
1419
|
B,
|
|
1420
|
-
|
|
1420
|
+
K,
|
|
1421
1421
|
G,
|
|
1422
1422
|
g
|
|
1423
1423
|
]
|
|
@@ -1429,14 +1429,14 @@ const at = xe(
|
|
|
1429
1429
|
"aria-label": u ?? m("carousel.label", "Carousel"),
|
|
1430
1430
|
"aria-roledescription": m("carousel.roleDescription", "carousel"),
|
|
1431
1431
|
tabIndex: 0,
|
|
1432
|
-
onKeyDown:
|
|
1432
|
+
onKeyDown: q,
|
|
1433
1433
|
"data-component": "carousel",
|
|
1434
1434
|
"data-component-id": a,
|
|
1435
1435
|
"data-size": t,
|
|
1436
|
-
"data-state":
|
|
1436
|
+
"data-state": x ? "reduced-motion" : void 0,
|
|
1437
1437
|
className: cn({ size: t, className: c }),
|
|
1438
1438
|
children: [
|
|
1439
|
-
|
|
1439
|
+
U,
|
|
1440
1440
|
Q ? /* @__PURE__ */ F("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-md)]", children: /* @__PURE__ */ ke("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:ms-auto", children: [
|
|
1441
1441
|
i,
|
|
1442
1442
|
n && X > 1 ? /* @__PURE__ */ F(fn, {}) : null
|
|
@@ -1488,7 +1488,7 @@ const at = xe(
|
|
|
1488
1488
|
id: g,
|
|
1489
1489
|
role: "presentation",
|
|
1490
1490
|
className: "ds:flex ds:gap-[var(--spacing-md)]",
|
|
1491
|
-
children: et.map(W, (
|
|
1491
|
+
children: et.map(W, (E, O) => tt(E) ? /* @__PURE__ */ F(dn, { index: O, total: X, children: E }) : E)
|
|
1492
1492
|
}
|
|
1493
1493
|
)
|
|
1494
1494
|
}
|
|
@@ -1511,7 +1511,7 @@ const at = xe(
|
|
|
1511
1511
|
}
|
|
1512
1512
|
);
|
|
1513
1513
|
at.displayName = "Carousel";
|
|
1514
|
-
const ze =
|
|
1514
|
+
const ze = Se(
|
|
1515
1515
|
({ children: e, className: t, ...n }, o) => /* @__PURE__ */ F(
|
|
1516
1516
|
"div",
|
|
1517
1517
|
{
|
|
@@ -1543,7 +1543,7 @@ function dn({
|
|
|
1543
1543
|
};
|
|
1544
1544
|
return /* @__PURE__ */ F(ze, { ...r });
|
|
1545
1545
|
}
|
|
1546
|
-
const ut =
|
|
1546
|
+
const ut = Se(
|
|
1547
1547
|
({ children: e, className: t, ...n }, o) => /* @__PURE__ */ F(
|
|
1548
1548
|
"div",
|
|
1549
1549
|
{
|
|
@@ -1561,7 +1561,7 @@ ut.displayName = "Carousel.Header";
|
|
|
1561
1561
|
function fn() {
|
|
1562
1562
|
return /* @__PURE__ */ F(Ve, {});
|
|
1563
1563
|
}
|
|
1564
|
-
const Ve =
|
|
1564
|
+
const Ve = Se(({ className: e, ...t }, n) => {
|
|
1565
1565
|
const { t: o } = ye(), { canScrollPrev: i, canScrollNext: s, scrollPrev: r, scrollNext: a, trackId: c } = ct("Carousel.Controls");
|
|
1566
1566
|
return /* @__PURE__ */ ke(
|
|
1567
1567
|
"div",
|
|
@@ -1676,15 +1676,20 @@ const yn = Object.assign(at, {
|
|
|
1676
1676
|
Controls: Ve
|
|
1677
1677
|
}), In = {
|
|
1678
1678
|
id: "carousel",
|
|
1679
|
-
|
|
1679
|
+
// Carousel navigation is pure ephemeral scroll state — `scroll` covers
|
|
1680
|
+
// both the absolute (scroll_to) and relative (scroll_prev/scroll_next)
|
|
1681
|
+
// moves. No `navigate` / `view_change`: nothing routes or changes view.
|
|
1682
|
+
capabilities: ["scroll"],
|
|
1680
1683
|
state: {
|
|
1681
1684
|
activeIndex: {
|
|
1682
1685
|
type: "number",
|
|
1686
|
+
descriptionKey: "ui.agent.carousel.state.activeIndex",
|
|
1683
1687
|
description: "Zero-based index of the currently snapped slide.",
|
|
1684
1688
|
read: (e) => e.getActiveIndex()
|
|
1685
1689
|
},
|
|
1686
1690
|
count: {
|
|
1687
1691
|
type: "number",
|
|
1692
|
+
descriptionKey: "ui.agent.carousel.state.count",
|
|
1688
1693
|
description: "Total slide count.",
|
|
1689
1694
|
read: (e) => e.getCount()
|
|
1690
1695
|
}
|
|
@@ -1693,13 +1698,28 @@ const yn = Object.assign(at, {
|
|
|
1693
1698
|
scroll_to: {
|
|
1694
1699
|
safety: "read",
|
|
1695
1700
|
argsType: "{ index: number }",
|
|
1701
|
+
argsSchema: {
|
|
1702
|
+
type: "object",
|
|
1703
|
+
properties: {
|
|
1704
|
+
index: {
|
|
1705
|
+
type: "integer",
|
|
1706
|
+
minimum: 0,
|
|
1707
|
+
description: "Zero-based index of the slide to snap to."
|
|
1708
|
+
}
|
|
1709
|
+
},
|
|
1710
|
+
required: ["index"]
|
|
1711
|
+
},
|
|
1712
|
+
idempotent: !0,
|
|
1713
|
+
descriptionKey: "ui.agent.carousel.actions.scrollTo",
|
|
1696
1714
|
description: "Scroll to the slide at the given index.",
|
|
1715
|
+
examples: [{ args: { index: 0 }, note: "Snap back to the first slide." }],
|
|
1697
1716
|
invoke: (e, t) => {
|
|
1698
1717
|
e.scrollTo(t.index);
|
|
1699
1718
|
}
|
|
1700
1719
|
},
|
|
1701
1720
|
scroll_prev: {
|
|
1702
1721
|
safety: "read",
|
|
1722
|
+
descriptionKey: "ui.agent.carousel.actions.scrollPrev",
|
|
1703
1723
|
description: "Scroll to the previous slide.",
|
|
1704
1724
|
invoke: (e) => {
|
|
1705
1725
|
e.scrollPrev();
|
|
@@ -1707,6 +1727,7 @@ const yn = Object.assign(at, {
|
|
|
1707
1727
|
},
|
|
1708
1728
|
scroll_next: {
|
|
1709
1729
|
safety: "read",
|
|
1730
|
+
descriptionKey: "ui.agent.carousel.actions.scrollNext",
|
|
1710
1731
|
description: "Scroll to the next slide.",
|
|
1711
1732
|
invoke: (e) => {
|
|
1712
1733
|
e.scrollNext();
|
|
@@ -1730,4 +1751,4 @@ export {
|
|
|
1730
1751
|
yn as C,
|
|
1731
1752
|
In as c
|
|
1732
1753
|
};
|
|
1733
|
-
//# sourceMappingURL=carousel.agent-
|
|
1754
|
+
//# sourceMappingURL=carousel.agent-4v8Emr9E.js.map
|