@alfadocs/ui-kit 1.66.0 → 1.68.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-fields-CJtu7LQU.js → address-fields-BUPRs3n-.js} +3 -3
- package/dist/_chunks/{agenda-card-DR9gDdKp.js → agenda-card-BDuvreCe.js} +2 -2
- package/dist/_chunks/{agenda-tray-DGB1Zup-.js → agenda-tray-CfwylhWf.js} +3 -3
- package/dist/_chunks/ai-credits-exhausted-notice-Bg8NpW2K.js +287 -0
- package/dist/_chunks/ai-credits-exhausted-notice.agent-DgTSTgez.js +43 -0
- package/dist/_chunks/ai-credits-notice-DQ-r3iQU.js +191 -0
- package/dist/_chunks/{ai-permission-notice-DpRmZ9Q3.js → ai-permission-notice-C00i6VhY.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-DSGSe4LH.js → ai-prompt-input-DzgyoKyk.js} +141 -139
- package/dist/_chunks/{alert-DdDpOi-P.js → alert-9kEwDza3.js} +122 -111
- package/dist/_chunks/{alia-sidebar-qe0quZkB.js → alia-sidebar-B06ZSOaF.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-card-CMzBLTiN.js → anamnesis-summary-card-DQ3iE1gD.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-BIfw890v.js → anamnesis-summary-rows-CNK0fIJk.js} +392 -388
- package/dist/_chunks/{appointment-card-CL32sux-.js → appointment-card-5JMWi9_f.js} +2 -2
- package/dist/_chunks/{appointment-peek-B5mcDcXt.js → appointment-peek-D5XCfYKu.js} +2 -2
- package/dist/_chunks/{appointment-timeline-CCqjORFb.js → appointment-timeline-VFP6HoXT.js} +4 -4
- package/dist/_chunks/{appointment-tray-qtpJt8e0.js → appointment-tray-B3PDER3I.js} +3 -3
- package/dist/_chunks/{audio-recorder-DR-u1qbl.js → audio-recorder-4Ll0pwYK.js} +3 -3
- package/dist/_chunks/{auth-form-parts-Cmb41LSQ.js → auth-form-parts-B40zvD-a.js} +2 -2
- package/dist/_chunks/avatar-BPiPL7ND.js +199 -0
- package/dist/_chunks/{balance-badge-cell-DZNthHO1.js → balance-badge-cell-BG3DMly4.js} +4 -4
- package/dist/_chunks/{bishop-score-CaNTrikJ.js → bishop-score-Df8nF1qg.js} +2 -2
- package/dist/_chunks/{booking-DkjatiXc.js → booking-B1pDbERi.js} +377 -335
- package/dist/_chunks/{calendar-BhN-jisv.js → calendar-BvOM8rG3.js} +2 -2
- package/dist/_chunks/{calendar-workspace-Cp8yTZ1g.js → calendar-workspace-CYK1M83j.js} +19 -19
- package/dist/_chunks/{chat-message-fRLZ95O5.js → chat-message-Be-9vIIQ.js} +2 -2
- package/dist/_chunks/{clinical-note-card-BnFTIs6x.js → clinical-note-card-Caidqcwa.js} +2 -2
- package/dist/_chunks/{color-picker-BsggJovx.js → color-picker-AcaWuKah.js} +99 -95
- package/dist/_chunks/{combobox-U5yfO6o0.js → combobox-vF9O-QoG.js} +92 -83
- package/dist/_chunks/{contact-profile-card-C4-OCshj.js → contact-profile-card-CAwwOqHl.js} +40 -40
- package/dist/_chunks/{control-room-rail-DUerqHeo.js → control-room-rail-BB6rCDWI.js} +3 -3
- package/dist/_chunks/{country-select-DF5Bd_mn.js → country-select-CSE2Zm_s.js} +2 -2
- package/dist/_chunks/dashboard-grid-7JzaiKnk.js +1487 -0
- package/dist/_chunks/{data-table-COoCQ4n_.js → data-table-Cty4-Jht.js} +3 -3
- package/dist/_chunks/{dependent-selector-DBr1AhLg.js → dependent-selector-C4kOgO8b.js} +2 -2
- package/dist/_chunks/{document-preview-B1dQm292.js → document-preview-513f3iPn.js} +4 -4
- package/dist/_chunks/{document-scanner-CVPVLK7z.js → document-scanner-Bd3wbzpI.js} +2 -2
- package/dist/_chunks/{editable-description-ChGNdYY8.js → editable-description-DnAFi360.js} +2 -2
- package/dist/_chunks/{entity-summary-BQ9_KA8S.js → entity-summary-C2B8yNmc.js} +4 -4
- package/dist/_chunks/{error-summary-DrUfuKu1.js → error-summary-mGxIyDAY.js} +2 -2
- package/dist/_chunks/{face-scheme-DAD-mXzM.js → face-scheme-CSJdRNad.js} +248 -244
- package/dist/_chunks/{file-manager-RiV7-OEE.js → file-manager-D4cPnRhL.js} +3 -3
- package/dist/_chunks/{forgot-password-form-CgZkEvZy.js → forgot-password-form-Dqi7R-NL.js} +4 -4
- package/dist/_chunks/format-number-DdzqwMs1.js +13 -0
- package/dist/_chunks/{freemium-paywall-DKJHRFpp.js → freemium-paywall-C73C8Rgd.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CZYa2D6m.js → gestational-age-calculator-Du53p8MH.js} +2 -2
- package/dist/_chunks/{header-settings-BSH9Gk0J.js → header-settings-DlUbvAUx.js} +37 -36
- package/dist/_chunks/{heatmap-C1TeC7wT.js → heatmap-DbZIQg14.js} +4 -4
- package/dist/_chunks/help-me-write-templates-5WkUfvc_.js +687 -0
- package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
- package/dist/_chunks/{kit-extensions-DWs1UEXb.js → kit-extensions-CYvLL4ee.js} +3 -3
- package/dist/_chunks/length-token-DwMnGEYT.js +24 -0
- package/dist/_chunks/{link-cell-renderer-CtTsvfPY.js → link-cell-renderer-DtIsQWDO.js} +4 -4
- package/dist/_chunks/{login-dev-card-PnADNcI9.js → login-dev-card-vEL-o5wq.js} +3 -3
- package/dist/_chunks/{map-view-BuVfJMEa.js → map-view-CtohteZD.js} +300 -191
- package/dist/_chunks/{marketplace-app-shell-C-2e4eCD.js → marketplace-app-shell-CcLQ0Dn-.js} +4 -4
- package/dist/_chunks/{message-card-A3mJNqfy.js → message-card-C_ksqIYM.js} +2 -2
- package/dist/_chunks/{message-tray-Ft6vSr71.js → message-tray-DCoQ4GQb.js} +3 -3
- package/dist/_chunks/{multi-select-CMaAQQgb.js → multi-select-BOad3za9.js} +110 -98
- package/dist/_chunks/{muscle-scheme-YoN3rYXV.js → muscle-scheme-C66WlCxG.js} +2 -2
- package/dist/_chunks/{note-timeline-DDqNU46n.js → note-timeline-KzL52MmB.js} +2 -2
- package/dist/_chunks/{notes-panel-uEGIL7mi.js → notes-panel-BXN46XkF.js} +6 -6
- package/dist/_chunks/notice-group-DkYzKyAZ.js +291 -0
- package/dist/_chunks/{notification-tray-BR3seWA7.js → notification-tray-Cp18MW5b.js} +2 -2
- package/dist/_chunks/{operator-hero-3_RG4Dkj.js → operator-hero-6aAIQaFZ.js} +83 -66
- package/dist/_chunks/{optical-prescription-CxfMsbxi.js → optical-prescription-ulXnDbBe.js} +525 -509
- package/dist/_chunks/panel-header-CbtlTe85.js +190 -0
- package/dist/_chunks/{panel-subview-yP4qIbKS.js → panel-subview-BPU7220K.js} +2 -2
- package/dist/_chunks/{patient-details-4P1vA9Ls.js → patient-details-C4Dyo7Ck.js} +4 -4
- package/dist/_chunks/{patient-field-row-CBXhlfGD.js → patient-field-row-DROvUkFu.js} +155 -176
- package/dist/_chunks/{patient-search-DOnDUVsl.js → patient-search-BADdx3M1.js} +2 -2
- package/dist/_chunks/{patient-summary-card-CuDLo8MP.js → patient-summary-card-CAimxbuI.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-C8MEu0t6.js → payment-automation-upsell-CiwF5UrC.js} +2 -2
- package/dist/_chunks/{payment-form-C3dGY7v4.js → payment-form-PBuh8PIa.js} +2 -2
- package/dist/_chunks/{pdf-viewer-DJ9VN7cu.js → pdf-viewer-gAsNUsA8.js} +2 -2
- package/dist/_chunks/{periodontal-risk-chart-CPy7CNFe.js → periodontal-risk-chart-B7S9OmPC.js} +97 -89
- package/dist/_chunks/practice-profile-hero-qfrsFQI_.js +236 -0
- package/dist/_chunks/{practice-results-8h2Utpt3.js → practice-results-BzThnpnm.js} +328 -298
- package/dist/_chunks/{pregnancy-dating-B8wo4l_r.js → pregnancy-dating-EFcFUJkQ.js} +2 -2
- package/dist/_chunks/{privacy-mask-Ch7743uk.js → privacy-mask-CCz9zuIh.js} +2 -2
- package/dist/_chunks/{product-hub-panel-C_ZosrBt.js → product-hub-panel-YuFbNPlT.js} +2 -2
- package/dist/_chunks/progress-notice-DiHWZ8Ms.js +279 -0
- package/dist/_chunks/{province-select-Bd20Z9Br.js → province-select-CDjs5obD.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-8Ewv8-d7.js → radiograph-panel.agent-4UllIoTQ.js} +2 -2
- package/dist/_chunks/{rating-C1Vrmpsi.js → rating-CGYpg5dj.js} +43 -44
- package/dist/_chunks/{registration-form-BQyT_kBX.js → registration-form-1B0PTDal.js} +4 -4
- package/dist/_chunks/{reviews-panel-AvsVgtJu.js → reviews-panel-CosDZyow.js} +29 -7
- package/dist/_chunks/{rich-text-editor-M2gT_E7f.js → rich-text-editor-56dSsyZI.js} +1653 -1743
- package/dist/_chunks/{select-k4gBdS8N.js → select-4S-eYZUf.js} +244 -214
- package/dist/_chunks/{sign-document-CY7xTXbm.js → sign-document-BiOTs1P4.js} +2 -2
- package/dist/_chunks/{signature-request-BMCHy2ZO.js → signature-request-DAmNj_uq.js} +5 -5
- package/dist/_chunks/skeleton-tTWJpvAq.js +415 -0
- package/dist/_chunks/{slot-grid-dj5f6R2w.js → slot-grid-D_gix9mJ.js} +2 -2
- package/dist/_chunks/{tabs-2x3L13jn.js → tabs-BTj-2qMZ.js} +2 -2
- package/dist/_chunks/{task-card-BS7Uqevr.js → task-card-Ci2XbLmq.js} +2 -2
- package/dist/_chunks/{task-editor-CifOznfq.js → task-editor-BomyxGoZ.js} +8 -8
- package/dist/_chunks/{task-tray-eQU4KJcA.js → task-tray-Dnc72nl-.js} +3 -3
- package/dist/_chunks/{tasks-panel-8nLwBw6P.js → tasks-panel-ATz9JDy8.js} +6 -6
- package/dist/_chunks/{theme-toggle-Ctb77x6O.js → theme-toggle-DT_Jn4DC.js} +147 -138
- package/dist/_chunks/{timeline-DEIuHrWz.js → timeline-wUuTDFY_.js} +2 -2
- package/dist/_chunks/{tool-rail-C-03rH2I.js → tool-rail-C-M3eVdY.js} +2 -2
- package/dist/_chunks/{transcript-panel-XudW5l6l.js → transcript-panel-CoHHpcFg.js} +2 -2
- package/dist/_chunks/{treatment-receipt-Cpm8tqQN.js → treatment-receipt-pFqWFyD_.js} +2 -2
- package/dist/_chunks/{unit-converter-BPZ0Ldkb.js → unit-converter-CIoTmCmP.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-B-FEWbQM.js → use-appointment-details-read-CUGfE0hV.js} +13 -13
- package/dist/_chunks/use-dismissed-CTOWqA0e.js +177 -0
- package/dist/_chunks/voice-control-panel-B8Lrk0C4.js +1148 -0
- package/dist/_chunks/{warning-stack-HYWAytZV.js → warning-stack-BhHUmRiD.js} +2 -2
- package/dist/_chunks/{workflow-map-C2B2qIr1.js → workflow-map-ln4_OG8A.js} +2 -2
- package/dist/agent-catalog.json +221 -6
- package/dist/agent-i18n/en.json +32 -5
- package/dist/components/_shared/format-number.d.ts +20 -0
- package/dist/components/_shared/length-token.d.ts +12 -0
- package/dist/components/_shared/option.d.ts +1 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.agent.d.ts +4 -0
- package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.d.ts +96 -0
- package/dist/components/ai-credits-notice/ai-credits-notice.d.ts +30 -4
- package/dist/components/ai-credits-notice/index.d.ts +3 -0
- package/dist/components/ai-credits-notice/index.js +10 -4
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/alert/alert.d.ts +26 -0
- package/dist/components/alert/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/avatar/avatar.d.ts +2 -0
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +20 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +4 -2
- package/dist/components/map-view/index.d.ts +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +51 -0
- 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/muscle-scheme/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notice-group/index.d.ts +3 -0
- package/dist/components/notice-group/index.js +6 -0
- package/dist/components/notice-group/notice-group.agent.d.ts +4 -0
- package/dist/components/notice-group/notice-group.d.ts +43 -0
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/optical-prescription/optical-prescription-data.d.ts +8 -8
- package/dist/components/panel-header/index.js +1 -1
- package/dist/components/panel-header/panel-header.d.ts +10 -0
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/patient-details/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/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-risk-chart/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +4 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +10 -2
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/progress-notice/index.d.ts +3 -0
- package/dist/components/progress-notice/index.js +6 -0
- package/dist/components/progress-notice/progress-notice.agent.d.ts +4 -0
- package/dist/components/progress-notice/progress-notice.d.ts +81 -0
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rating/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +6 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/skeleton/index.d.ts +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/skeleton.d.ts +41 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/slot-grid/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-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.d.ts +2 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/voice-control-panel/voice-control-panel.d.ts +43 -3
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +81 -76
- package/dist/hooks/use-dismissed.d.ts +58 -0
- package/dist/i18n/locales/ar.d.ts +49 -12
- package/dist/i18n/locales/ar.js +49 -12
- package/dist/i18n/locales/de.d.ts +49 -12
- package/dist/i18n/locales/de.js +49 -12
- package/dist/i18n/locales/el.d.ts +49 -12
- package/dist/i18n/locales/el.js +49 -12
- package/dist/i18n/locales/en.d.ts +49 -12
- package/dist/i18n/locales/en.js +49 -12
- package/dist/i18n/locales/es.d.ts +49 -12
- package/dist/i18n/locales/es.js +49 -12
- package/dist/i18n/locales/fr.d.ts +49 -12
- package/dist/i18n/locales/fr.js +49 -12
- package/dist/i18n/locales/hi.d.ts +49 -12
- package/dist/i18n/locales/hi.js +49 -12
- package/dist/i18n/locales/it.d.ts +49 -12
- package/dist/i18n/locales/it.js +49 -12
- package/dist/i18n/locales/ja.d.ts +49 -12
- package/dist/i18n/locales/ja.js +49 -12
- package/dist/i18n/locales/nl.d.ts +49 -12
- package/dist/i18n/locales/nl.js +49 -12
- package/dist/i18n/locales/pl.d.ts +49 -12
- package/dist/i18n/locales/pl.js +49 -12
- package/dist/i18n/locales/pt.d.ts +49 -12
- package/dist/i18n/locales/pt.js +49 -12
- package/dist/i18n/locales/ro.d.ts +49 -12
- package/dist/i18n/locales/ro.js +49 -12
- package/dist/i18n/locales/ru.d.ts +49 -12
- package/dist/i18n/locales/ru.js +49 -12
- package/dist/i18n/locales/sq.d.ts +49 -12
- package/dist/i18n/locales/sq.js +49 -12
- package/dist/i18n/locales/sv.d.ts +49 -12
- package/dist/i18n/locales/sv.js +49 -12
- package/dist/i18n/locales/tr.d.ts +49 -12
- package/dist/i18n/locales/tr.js +49 -12
- package/dist/i18n/locales/zh.d.ts +49 -12
- package/dist/i18n/locales/zh.js +49 -12
- package/dist/index.js +1193 -1177
- package/dist/locales/ar.json +49 -12
- package/dist/locales/de.json +49 -12
- package/dist/locales/el.json +49 -12
- package/dist/locales/en.json +49 -12
- package/dist/locales/es.json +49 -12
- package/dist/locales/fr.json +49 -12
- package/dist/locales/hi.json +49 -12
- package/dist/locales/it.json +49 -12
- package/dist/locales/ja.json +49 -12
- package/dist/locales/nl.json +49 -12
- package/dist/locales/pl.json +49 -12
- package/dist/locales/pt.json +49 -12
- package/dist/locales/ro.json +49 -12
- package/dist/locales/ru.json +49 -12
- package/dist/locales/sq.json +49 -12
- package/dist/locales/sv.json +49 -12
- package/dist/locales/tr.json +49 -12
- package/dist/locales/zh.json +49 -12
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +6 -23
- package/dist/patterns/help-me-write-templates/index.js +8 -7
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +9 -1
- package/dist/_chunks/ai-credits-notice-pK9BOmEz.js +0 -90
- package/dist/_chunks/ai-credits-notice.agent-C9L7orrP.js +0 -17
- package/dist/_chunks/avatar-WZY3eGE7.js +0 -123
- package/dist/_chunks/dashboard-grid-B2MB7SRS.js +0 -1428
- package/dist/_chunks/help-me-write-templates-DFmqnsAa.js +0 -747
- package/dist/_chunks/panel-header-BJkaUwnl.js +0 -128
- package/dist/_chunks/practice-profile-hero-Dfc0F60y.js +0 -193
- package/dist/_chunks/skeleton-B1KTdJ4N.js +0 -116
- package/dist/_chunks/voice-control-panel-C0BfY23Y.js +0 -1009
|
@@ -2,8 +2,8 @@ import { jsx as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as k, useRef as N, useEffect as O, useCallback as D, useMemo as B } from "react";
|
|
3
3
|
import { c as H } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as K } from "react-i18next";
|
|
5
|
-
import { C as M } from "./country-select-
|
|
6
|
-
import { P as U } from "./province-select-
|
|
5
|
+
import { C as M } from "./country-select-CSE2Zm_s.js";
|
|
6
|
+
import { P as U } from "./province-select-CDjs5obD.js";
|
|
7
7
|
import { P as W } from "./postal-code-input-CfZOnIkW.js";
|
|
8
8
|
import { C as Y } from "./city-input-3J3bz9EO.js";
|
|
9
9
|
import { T as z } from "./text-input-CaG9ApoE.js";
|
|
@@ -295,4 +295,4 @@ export {
|
|
|
295
295
|
te as A,
|
|
296
296
|
X as a
|
|
297
297
|
};
|
|
298
|
-
//# sourceMappingURL=address-fields-
|
|
298
|
+
//# sourceMappingURL=address-fields-BUPRs3n-.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as h } from "react";
|
|
3
3
|
import { c as x } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as y } from "react-i18next";
|
|
5
|
-
import { A as N } from "./avatar-
|
|
5
|
+
import { A as N } from "./avatar-BPiPL7ND.js";
|
|
6
6
|
import { B as C } from "./badge-BUk4RjTS.js";
|
|
7
7
|
import { i as w } from "./is-safe-url-DkETxeHz.js";
|
|
8
8
|
import { C as k } from "./chevron-right-I9AeSxH2.js";
|
|
@@ -144,4 +144,4 @@ z.displayName = "AgendaCard";
|
|
|
144
144
|
export {
|
|
145
145
|
z as A
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=agenda-card-
|
|
147
|
+
//# sourceMappingURL=agenda-card-BDuvreCe.js.map
|
|
@@ -3,9 +3,9 @@ import { forwardRef as _, useRef as w, useImperativeHandle as q, useMemo as B }
|
|
|
3
3
|
import { c as H } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as K } from "react-i18next";
|
|
5
5
|
import { I as M } from "./icon-button-C_1TgRiK.js";
|
|
6
|
-
import { S as A } from "./skeleton-
|
|
6
|
+
import { S as A } from "./skeleton-tTWJpvAq.js";
|
|
7
7
|
import { E as D } from "./empty-state-pL1qum99.js";
|
|
8
|
-
import { A as V } from "./agenda-card-
|
|
8
|
+
import { A as V } from "./agenda-card-BDuvreCe.js";
|
|
9
9
|
import { u as F } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { C as G } from "./calendar-days-BGWklvE-.js";
|
|
11
11
|
import { P as J } from "./plus-DzMQ_c6b.js";
|
|
@@ -212,4 +212,4 @@ export {
|
|
|
212
212
|
U as A,
|
|
213
213
|
L as a
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=agenda-tray-
|
|
215
|
+
//# sourceMappingURL=agenda-tray-CfwylhWf.js.map
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as S, useId as E } from "react";
|
|
3
|
+
import { c as x } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as A } from "react-i18next";
|
|
5
|
+
import { C as P, A as b } from "./alert-9kEwDza3.js";
|
|
6
|
+
import { B as U } from "./button-D-MQxsA_.js";
|
|
7
|
+
import { P as _ } from "./progress-D_g_Sl2g.js";
|
|
8
|
+
import { f as j, n as F } from "./intl-locale-FWh-Y5_3.js";
|
|
9
|
+
import { T as H } from "./trending-up-C_luYBzS.js";
|
|
10
|
+
import { c as M } from "./createLucideIcon-DhHxpK9K.js";
|
|
11
|
+
import { A as k } from "./astroid-BN4f5VXU.js";
|
|
12
|
+
import { A as O } from "./arrow-left-BfaGqVam.js";
|
|
13
|
+
import { H as W } from "./hourglass-BEAzW1wE.js";
|
|
14
|
+
/**
|
|
15
|
+
* @license lucide-react v1.22.0 - ISC
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the ISC license.
|
|
18
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/
|
|
20
|
+
const G = [
|
|
21
|
+
[
|
|
22
|
+
"path",
|
|
23
|
+
{
|
|
24
|
+
d: "M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z",
|
|
25
|
+
key: "12oyoe"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
["path", { d: "M21 16v2a4 4 0 0 1-4 4h-5", key: "1x7m43" }]
|
|
29
|
+
], q = M("headset", G), Z = 0.8;
|
|
30
|
+
function $(n) {
|
|
31
|
+
if (!n) return !1;
|
|
32
|
+
if (n.runningLow !== void 0) return n.runningLow;
|
|
33
|
+
const { remaining: i, limit: o } = n;
|
|
34
|
+
return i === void 0 || o === void 0 || o <= 0 ? !1 : i > 0 && o - i >= o * Z;
|
|
35
|
+
}
|
|
36
|
+
function J(n) {
|
|
37
|
+
return (n == null ? void 0 : n.renewsOn) ?? (n == null ? void 0 : n.resetsOn);
|
|
38
|
+
}
|
|
39
|
+
function V() {
|
|
40
|
+
const { i18n: n } = A("ui"), i = j(n.language), o = new Intl.NumberFormat(F(i), {
|
|
41
|
+
maximumFractionDigits: 1
|
|
42
|
+
}), g = new Intl.DateTimeFormat(i, {
|
|
43
|
+
day: "numeric",
|
|
44
|
+
month: "long",
|
|
45
|
+
year: "numeric"
|
|
46
|
+
});
|
|
47
|
+
return {
|
|
48
|
+
number: (d) => o.format(d),
|
|
49
|
+
date: (d) => g.format(d)
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
const z = "ds:min-h-[var(--min-target-size)]", K = [
|
|
53
|
+
z,
|
|
54
|
+
"ds:!h-auto ds:!whitespace-normal ds:text-start ds:[overflow-wrap:anywhere]",
|
|
55
|
+
"ds:py-[var(--spacing-xs)]"
|
|
56
|
+
].join(" "), L = x(
|
|
57
|
+
[
|
|
58
|
+
"ds:inline-flex ds:items-center ds:min-h-[var(--min-target-size)]",
|
|
59
|
+
"ds:rounded-[var(--radius-sm)] ds:ps-[var(--spacing-2xs)] ds:pe-[var(--spacing-2xs)]",
|
|
60
|
+
"type-body-sm ds:font-medium ds:underline ds:underline-offset-2 ds:hover:no-underline ds:cursor-pointer",
|
|
61
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
62
|
+
"ds:forced-colors:text-[color:LinkText]"
|
|
63
|
+
].join(" "),
|
|
64
|
+
{
|
|
65
|
+
variants: {
|
|
66
|
+
tone: {
|
|
67
|
+
inherit: "ds:text-[color:inherit]",
|
|
68
|
+
link: "ds:text-[color:var(--link)]"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
defaultVariants: { tone: "link" }
|
|
72
|
+
}
|
|
73
|
+
), Q = x(
|
|
74
|
+
"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"
|
|
75
|
+
), X = "ds:m-0 ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]", Y = S(
|
|
76
|
+
({
|
|
77
|
+
credits: n,
|
|
78
|
+
onBack: i,
|
|
79
|
+
footnote: o,
|
|
80
|
+
headingLevel: g = 2,
|
|
81
|
+
announce: d,
|
|
82
|
+
className: l,
|
|
83
|
+
...m
|
|
84
|
+
}, f) => {
|
|
85
|
+
var R;
|
|
86
|
+
const { t: e } = A("ui"), u = V(), c = E(), t = n == null ? void 0 : n.limit, h = (n == null ? void 0 : n.remaining) ?? 0, p = t !== void 0 && t > 0 ? e("aiCredits.remaining", {
|
|
87
|
+
remaining: u.number(h),
|
|
88
|
+
limit: u.number(t)
|
|
89
|
+
}) : void 0, I = J(n), v = I ? u.date(I) : void 0, y = [
|
|
90
|
+
n != null && n.onBuyCredits ? {
|
|
91
|
+
key: "buy",
|
|
92
|
+
label: e("aiCredits.buy"),
|
|
93
|
+
icon: /* @__PURE__ */ a(H, { "aria-hidden": "true" }),
|
|
94
|
+
onClick: n.onBuyCredits
|
|
95
|
+
} : null,
|
|
96
|
+
n != null && n.onUpgrade ? {
|
|
97
|
+
key: "upgrade",
|
|
98
|
+
label: e("aiCredits.upgrade"),
|
|
99
|
+
icon: /* @__PURE__ */ a(P, { "aria-hidden": "true" }),
|
|
100
|
+
onClick: n.onUpgrade
|
|
101
|
+
} : null,
|
|
102
|
+
n != null && n.onContactSupport ? {
|
|
103
|
+
key: "support",
|
|
104
|
+
label: e("aiCredits.contactSupport"),
|
|
105
|
+
icon: /* @__PURE__ */ a(q, { "aria-hidden": "true" }),
|
|
106
|
+
onClick: n.onContactSupport
|
|
107
|
+
} : null
|
|
108
|
+
].filter((s) => s !== null), C = (R = y[0]) == null ? void 0 : R.key, B = C === "buy" ? e("aiCredits.bodyBuy") : C === "upgrade" ? e("aiCredits.bodyUpgrade") : C === "support" ? e("aiCredits.bodySupport") : v ? e("aiCredits.bodyRenews", { date: v }) : e("aiCredits.bodyNone"), T = C && v ? v : void 0;
|
|
109
|
+
return /* @__PURE__ */ r(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
...m,
|
|
113
|
+
ref: f,
|
|
114
|
+
"data-component": "ai-credits-exhausted-notice",
|
|
115
|
+
role: "group",
|
|
116
|
+
"aria-labelledby": c,
|
|
117
|
+
className: Q({ className: l }),
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ r(
|
|
120
|
+
b,
|
|
121
|
+
{
|
|
122
|
+
variant: "promo",
|
|
123
|
+
announce: d,
|
|
124
|
+
icon: /* @__PURE__ */ a(k, { "aria-hidden": "true" }),
|
|
125
|
+
className: "ds:[--ring:var(--promo-foreground)]",
|
|
126
|
+
children: [
|
|
127
|
+
/* @__PURE__ */ a(b.Title, { as: `h${g}`, id: c, children: e("aiCredits.title") }),
|
|
128
|
+
/* @__PURE__ */ a(b.Description, { children: B }),
|
|
129
|
+
T ? /* @__PURE__ */ a(
|
|
130
|
+
"p",
|
|
131
|
+
{
|
|
132
|
+
className: "ds:m-0 ds:[margin-block-start:var(--spacing-2xs)] type-body-sm",
|
|
133
|
+
"data-credits-renews": "",
|
|
134
|
+
children: e("aiCredits.renewsOn", { date: T })
|
|
135
|
+
}
|
|
136
|
+
) : null,
|
|
137
|
+
p && t !== void 0 ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:[margin-block-start:var(--spacing-sm)]", children: [
|
|
138
|
+
/* @__PURE__ */ r("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
139
|
+
/* @__PURE__ */ a("span", { className: "type-label", children: e("aiCredits.meterLabel") }),
|
|
140
|
+
/* @__PURE__ */ a("span", { className: "type-label ds:ms-auto ds:tabular-nums", children: p })
|
|
141
|
+
] }),
|
|
142
|
+
/* @__PURE__ */ a(
|
|
143
|
+
_,
|
|
144
|
+
{
|
|
145
|
+
value: Math.max(0, t - h),
|
|
146
|
+
max: t,
|
|
147
|
+
size: "sm",
|
|
148
|
+
ariaLabel: e("aiCredits.meterLabel"),
|
|
149
|
+
ariaValueText: p
|
|
150
|
+
}
|
|
151
|
+
)
|
|
152
|
+
] }) : null,
|
|
153
|
+
y.length > 0 || n != null && n.onSeeCosts ? /* @__PURE__ */ r(b.Action, { children: [
|
|
154
|
+
y.map(
|
|
155
|
+
(s, D) => D === 0 ? /* @__PURE__ */ a(
|
|
156
|
+
U,
|
|
157
|
+
{
|
|
158
|
+
intent: "tonal",
|
|
159
|
+
size: "md",
|
|
160
|
+
startIcon: s.icon,
|
|
161
|
+
onClick: s.onClick,
|
|
162
|
+
className: K,
|
|
163
|
+
"data-credits-action": s.key,
|
|
164
|
+
children: s.label
|
|
165
|
+
},
|
|
166
|
+
s.key
|
|
167
|
+
) : /* @__PURE__ */ a(
|
|
168
|
+
"button",
|
|
169
|
+
{
|
|
170
|
+
type: "button",
|
|
171
|
+
onClick: s.onClick,
|
|
172
|
+
className: L({ tone: "inherit" }),
|
|
173
|
+
"data-credits-action": s.key,
|
|
174
|
+
children: s.label
|
|
175
|
+
},
|
|
176
|
+
s.key
|
|
177
|
+
)
|
|
178
|
+
),
|
|
179
|
+
n != null && n.onSeeCosts ? /* @__PURE__ */ a(
|
|
180
|
+
"button",
|
|
181
|
+
{
|
|
182
|
+
type: "button",
|
|
183
|
+
onClick: n.onSeeCosts,
|
|
184
|
+
className: L({ tone: "inherit" }),
|
|
185
|
+
"data-credits-action": "costs",
|
|
186
|
+
children: e("aiCredits.seeCosts")
|
|
187
|
+
}
|
|
188
|
+
) : null
|
|
189
|
+
] }) : null
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
),
|
|
193
|
+
i || o ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
194
|
+
i ? /* @__PURE__ */ a(
|
|
195
|
+
U,
|
|
196
|
+
{
|
|
197
|
+
intent: "ghost",
|
|
198
|
+
startIcon: /* @__PURE__ */ a(O, {}),
|
|
199
|
+
flipIconInRtl: !0,
|
|
200
|
+
onClick: i,
|
|
201
|
+
className: z,
|
|
202
|
+
children: e("aiCredits.back")
|
|
203
|
+
}
|
|
204
|
+
) : null,
|
|
205
|
+
o ? /* @__PURE__ */ a("p", { className: X, children: o }) : null
|
|
206
|
+
] }) : null
|
|
207
|
+
]
|
|
208
|
+
}
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
Y.displayName = "AiCreditsExhaustedNotice";
|
|
213
|
+
const w = x(
|
|
214
|
+
"ds:m-0 ds:flex ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-xs)] type-body-sm",
|
|
215
|
+
{
|
|
216
|
+
variants: {
|
|
217
|
+
// Quiet: muted text and no tint, so it never competes with the
|
|
218
|
+
// promo notice. Out of credits reads in the body colour.
|
|
219
|
+
emphasis: {
|
|
220
|
+
quiet: "ds:text-[color:var(--muted-foreground)]",
|
|
221
|
+
plain: "ds:text-[color:var(--foreground)]"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
defaultVariants: { emphasis: "quiet" }
|
|
225
|
+
}
|
|
226
|
+
), nn = x(
|
|
227
|
+
"ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]"
|
|
228
|
+
), N = "ds:size-4 ds:shrink-0", an = S(({ credits: n, exhausted: i = !1, className: o, ...g }, d) => {
|
|
229
|
+
const { t: l } = A("ui"), m = V(), f = !i && $(n), e = n != null && n.expiring ? Math.round(n.expiring.amount * 10) / 10 : 0, u = !i && (n != null && n.expiring) && e > 0 ? n.expiring : void 0;
|
|
230
|
+
if (!i && !f && !u) return null;
|
|
231
|
+
const { remaining: c, limit: t } = n ?? {}, h = c !== void 0 && t !== void 0 && t > 0 ? l("aiCredits.runningLow", {
|
|
232
|
+
remaining: m.number(c),
|
|
233
|
+
limit: m.number(t)
|
|
234
|
+
}) : c !== void 0 ? l("aiCredits.runningLowCount", {
|
|
235
|
+
remaining: m.number(c)
|
|
236
|
+
}) : l("aiCredits.runningLowPlain"), p = n != null && n.onBuyCredits ? { label: l("aiCredits.buy"), onClick: n.onBuyCredits } : n != null && n.onUpgrade ? { label: l("aiCredits.upgrade"), onClick: n.onUpgrade } : void 0;
|
|
237
|
+
return /* @__PURE__ */ r(
|
|
238
|
+
"div",
|
|
239
|
+
{
|
|
240
|
+
...g,
|
|
241
|
+
ref: d,
|
|
242
|
+
"data-component": "ai-credits-warning",
|
|
243
|
+
className: nn({ className: o }),
|
|
244
|
+
children: [
|
|
245
|
+
i ? /* @__PURE__ */ r(
|
|
246
|
+
"p",
|
|
247
|
+
{
|
|
248
|
+
className: w({ emphasis: "plain" }),
|
|
249
|
+
"data-credits-line": "exhausted",
|
|
250
|
+
children: [
|
|
251
|
+
/* @__PURE__ */ a(k, { "aria-hidden": "true", className: N }),
|
|
252
|
+
/* @__PURE__ */ a("span", { children: l("aiCredits.title") })
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
) : null,
|
|
256
|
+
f ? /* @__PURE__ */ r("p", { className: w(), "data-credits-line": "low", children: [
|
|
257
|
+
/* @__PURE__ */ a(k, { "aria-hidden": "true", className: N }),
|
|
258
|
+
/* @__PURE__ */ a("span", { children: h }),
|
|
259
|
+
p ? /* @__PURE__ */ a(
|
|
260
|
+
"button",
|
|
261
|
+
{
|
|
262
|
+
type: "button",
|
|
263
|
+
onClick: p.onClick,
|
|
264
|
+
className: L({ tone: "link" }),
|
|
265
|
+
children: p.label
|
|
266
|
+
}
|
|
267
|
+
) : null
|
|
268
|
+
] }) : null,
|
|
269
|
+
u ? /* @__PURE__ */ r("p", { className: w(), "data-credits-line": "expiring", children: [
|
|
270
|
+
/* @__PURE__ */ a(W, { "aria-hidden": "true", className: N }),
|
|
271
|
+
/* @__PURE__ */ a("span", { children: l("aiCredits.expiring", {
|
|
272
|
+
count: e,
|
|
273
|
+
amount: m.number(e),
|
|
274
|
+
date: m.date(u.date)
|
|
275
|
+
}) })
|
|
276
|
+
] }) : null
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
);
|
|
280
|
+
});
|
|
281
|
+
an.displayName = "AiCreditsWarning";
|
|
282
|
+
export {
|
|
283
|
+
Y as A,
|
|
284
|
+
an as a,
|
|
285
|
+
$ as i
|
|
286
|
+
};
|
|
287
|
+
//# sourceMappingURL=ai-credits-exhausted-notice-Bg8NpW2K.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
id: "ai-credits-notice",
|
|
3
|
+
capabilities: [],
|
|
4
|
+
state: {},
|
|
5
|
+
actions: {},
|
|
6
|
+
domHooks: {
|
|
7
|
+
root: {
|
|
8
|
+
attr: "data-component",
|
|
9
|
+
value: "ai-credits-notice",
|
|
10
|
+
description: 'Marks the element as a kit AiCreditsNotice card body. Carries a sibling `data-mode="included|bundles"` attribute for which notice is showing.'
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}, i = {
|
|
14
|
+
id: "ai-credits-exhausted-notice",
|
|
15
|
+
capabilities: [],
|
|
16
|
+
state: {},
|
|
17
|
+
actions: {},
|
|
18
|
+
domHooks: {
|
|
19
|
+
root: {
|
|
20
|
+
attr: "data-component",
|
|
21
|
+
value: "ai-credits-exhausted-notice",
|
|
22
|
+
description: 'Marks the out-of-credits notice. Each next-step button carries `data-credits-action="buy|upgrade|support|costs"`.'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}, e = {
|
|
26
|
+
id: "ai-credits-warning",
|
|
27
|
+
capabilities: [],
|
|
28
|
+
state: {},
|
|
29
|
+
actions: {},
|
|
30
|
+
domHooks: {
|
|
31
|
+
root: {
|
|
32
|
+
attr: "data-component",
|
|
33
|
+
value: "ai-credits-warning",
|
|
34
|
+
description: 'Marks the quiet credit lines. Each line carries `data-credits-line="low|expiring|exhausted"`.'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
i as a,
|
|
40
|
+
t as b,
|
|
41
|
+
e as c
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=ai-credits-exhausted-notice.agent-DgTSTgez.js.map
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as L, useState as x, useMemo as B, useRef as y, useCallback as u, useEffect as D } from "react";
|
|
3
|
+
import { c as S } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as T } from "react-i18next";
|
|
5
|
+
import { B as C } from "./button-D-MQxsA_.js";
|
|
6
|
+
import { P as p } from "./progress-D_g_Sl2g.js";
|
|
7
|
+
import { H as a, u as z } from "./hover-card-CTNhQXWS.js";
|
|
8
|
+
import { f as O } from "./intl-locale-FWh-Y5_3.js";
|
|
9
|
+
const P = S("ds:flex ds:flex-col ds:items-start", {
|
|
10
|
+
variants: {
|
|
11
|
+
mode: {
|
|
12
|
+
included: "",
|
|
13
|
+
bundles: ""
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: {
|
|
17
|
+
mode: "included"
|
|
18
|
+
}
|
|
19
|
+
}), k = L((e, o) => {
|
|
20
|
+
const { t: i, i18n: r } = T("ui"), { allowance: n, className: d, mode: s, ...h } = e, {
|
|
21
|
+
onLearnMore: N,
|
|
22
|
+
onDismiss: c,
|
|
23
|
+
onViewBundles: b,
|
|
24
|
+
onSeeCosts: g,
|
|
25
|
+
...f
|
|
26
|
+
} = h, m = !!(n && n.limit > 0), v = m && (n != null && n.resetsOn) ? (
|
|
27
|
+
// The allowance is yearly, so the year is part of the date.
|
|
28
|
+
new Intl.DateTimeFormat(O(r.language), {
|
|
29
|
+
day: "numeric",
|
|
30
|
+
month: "long",
|
|
31
|
+
year: "numeric"
|
|
32
|
+
}).format(n.resetsOn)
|
|
33
|
+
) : void 0, w = m ? i("aiCreditsNotice.included.allowance", {
|
|
34
|
+
remaining: n.remaining,
|
|
35
|
+
limit: n.limit
|
|
36
|
+
}) : void 0, A = s === "included" ? i("aiCreditsNotice.included.heading") : m ? i("aiCreditsNotice.bundles.headingWithAllowance", {
|
|
37
|
+
remaining: n.remaining,
|
|
38
|
+
limit: n.limit
|
|
39
|
+
}) : i("aiCreditsNotice.bundles.eyebrow"), M = s === "included" ? i("aiCreditsNotice.included.body") : m ? i("aiCreditsNotice.bundles.body", { limit: n.limit }) : i("aiCreditsNotice.bundles.bodyGeneric");
|
|
40
|
+
return /* @__PURE__ */ l(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
...f,
|
|
44
|
+
ref: o,
|
|
45
|
+
"data-component": "ai-credits-notice",
|
|
46
|
+
"data-mode": s,
|
|
47
|
+
className: P({ mode: s, className: d }),
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ t(a.Eyebrow, { children: i(s === "included" ? "aiCreditsNotice.included.eyebrow" : "aiCreditsNotice.bundles.eyebrow") }),
|
|
50
|
+
/* @__PURE__ */ t(a.Heading, { children: A }),
|
|
51
|
+
/* @__PURE__ */ l(a.Body, { children: [
|
|
52
|
+
/* @__PURE__ */ t("p", { className: "ds:m-0", children: M }),
|
|
53
|
+
s === "included" && m ? /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:[margin-block-start:var(--spacing-sm)]", children: [
|
|
54
|
+
/* @__PURE__ */ t("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: /* @__PURE__ */ t("span", { className: "type-label", children: w }) }),
|
|
55
|
+
/* @__PURE__ */ t(
|
|
56
|
+
p,
|
|
57
|
+
{
|
|
58
|
+
value: Math.max(0, n.limit - n.remaining),
|
|
59
|
+
max: n.limit,
|
|
60
|
+
size: "sm",
|
|
61
|
+
ariaLabel: i("aiCreditsNotice.included.eyebrow"),
|
|
62
|
+
ariaValueText: w
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
v ? /* @__PURE__ */ t("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: i("aiCreditsNotice.included.resetsOn", { date: v }) }) : null
|
|
66
|
+
] }) : null
|
|
67
|
+
] }),
|
|
68
|
+
s === "included" ? e.onLearnMore || e.onDismiss ? /* @__PURE__ */ l(a.Footer, { children: [
|
|
69
|
+
e.onDismiss ? /* @__PURE__ */ t(
|
|
70
|
+
C,
|
|
71
|
+
{
|
|
72
|
+
intent: "link",
|
|
73
|
+
size: "sm",
|
|
74
|
+
onClick: e.onDismiss,
|
|
75
|
+
className: "ds:me-auto",
|
|
76
|
+
children: i("aiCreditsNotice.dismiss")
|
|
77
|
+
}
|
|
78
|
+
) : null,
|
|
79
|
+
e.onLearnMore ? /* @__PURE__ */ t(C, { intent: "link", size: "sm", onClick: e.onLearnMore, children: i("aiCreditsNotice.included.learnMore") }) : null
|
|
80
|
+
] }) : null : /* @__PURE__ */ l(a.Footer, { children: [
|
|
81
|
+
e.onSeeCosts || e.onDismiss ? /* @__PURE__ */ l("div", { className: "ds:me-auto ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
82
|
+
e.onSeeCosts ? /* @__PURE__ */ t(C, { intent: "link", size: "sm", onClick: e.onSeeCosts, children: i("aiCreditsNotice.bundles.seeCosts") }) : null,
|
|
83
|
+
e.onDismiss ? /* @__PURE__ */ t(C, { intent: "link", size: "sm", onClick: e.onDismiss, children: i("aiCreditsNotice.dismiss") }) : null
|
|
84
|
+
] }) : null,
|
|
85
|
+
/* @__PURE__ */ t(C, { intent: "tonal", size: "sm", onClick: e.onViewBundles, children: i("aiCreditsNotice.bundles.viewBundles") })
|
|
86
|
+
] })
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
});
|
|
91
|
+
k.displayName = "AiCreditsNotice";
|
|
92
|
+
function F({
|
|
93
|
+
notice: e,
|
|
94
|
+
side: o,
|
|
95
|
+
children: i
|
|
96
|
+
}) {
|
|
97
|
+
const [r, n] = x(!1);
|
|
98
|
+
return /* @__PURE__ */ l(a, { open: r, onOpenChange: n, children: [
|
|
99
|
+
/* @__PURE__ */ t(
|
|
100
|
+
H,
|
|
101
|
+
{
|
|
102
|
+
onOpen: () => n(!0),
|
|
103
|
+
onPress: () => n(!1),
|
|
104
|
+
children: i
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
/* @__PURE__ */ t(
|
|
108
|
+
a.Content,
|
|
109
|
+
{
|
|
110
|
+
side: o,
|
|
111
|
+
align: "start",
|
|
112
|
+
size: "sm",
|
|
113
|
+
collisionPadding: 8,
|
|
114
|
+
children: /* @__PURE__ */ t(k, { ...e })
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
] });
|
|
118
|
+
}
|
|
119
|
+
function H({
|
|
120
|
+
onOpen: e,
|
|
121
|
+
onPress: o,
|
|
122
|
+
children: i
|
|
123
|
+
}) {
|
|
124
|
+
const { cancelClose: r, closeWithDelay: n } = z(), d = y(null), s = u(() => {
|
|
125
|
+
d.current && (clearTimeout(d.current), d.current = null);
|
|
126
|
+
}, []);
|
|
127
|
+
D(() => s, [s]);
|
|
128
|
+
const h = u(() => {
|
|
129
|
+
s(), r(), d.current = setTimeout(e, 300);
|
|
130
|
+
}, [s, r, e]), N = u(() => {
|
|
131
|
+
s(), n();
|
|
132
|
+
}, [s, n]), c = y(!1), b = u(() => {
|
|
133
|
+
c.current = !0, s(), o();
|
|
134
|
+
}, [s, o]);
|
|
135
|
+
D(() => {
|
|
136
|
+
const f = () => {
|
|
137
|
+
c.current = !1;
|
|
138
|
+
};
|
|
139
|
+
return document.addEventListener("keydown", f), () => document.removeEventListener("keydown", f);
|
|
140
|
+
}, []);
|
|
141
|
+
const g = u(() => {
|
|
142
|
+
if (c.current) {
|
|
143
|
+
c.current = !1;
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
s(), r(), e();
|
|
147
|
+
}, [s, r, e]);
|
|
148
|
+
return (
|
|
149
|
+
// `ds:inline-flex`, NOT `ds:contents`, so this span has a real box
|
|
150
|
+
// that hugs the button and Floating UI has a real rect to measure.
|
|
151
|
+
// `display: contents` generates no box of its own; inside the pill's
|
|
152
|
+
// flex/absolute layout that collapsed to a zero-size rect at the
|
|
153
|
+
// editor's origin, so the card rendered top-left instead of at the
|
|
154
|
+
// trigger (caught in review on :6007).
|
|
155
|
+
/* @__PURE__ */ t(a.Anchor, { asChild: !0, children: /* @__PURE__ */ t(
|
|
156
|
+
"span",
|
|
157
|
+
{
|
|
158
|
+
className: "ds:inline-flex",
|
|
159
|
+
onMouseEnter: h,
|
|
160
|
+
onMouseLeave: N,
|
|
161
|
+
onPointerDown: b,
|
|
162
|
+
onFocusCapture: g,
|
|
163
|
+
onBlurCapture: N,
|
|
164
|
+
children: i
|
|
165
|
+
}
|
|
166
|
+
) })
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
function U(e, o, i = "bottom") {
|
|
170
|
+
return o ? /* @__PURE__ */ t(F, { notice: o, side: i, children: e }) : e;
|
|
171
|
+
}
|
|
172
|
+
function q(e) {
|
|
173
|
+
const [o, i] = x(() => /* @__PURE__ */ new Set());
|
|
174
|
+
return B(() => {
|
|
175
|
+
if (!e || o.has(e.mode)) return;
|
|
176
|
+
if (!e.onDismiss) return e;
|
|
177
|
+
const r = e.onDismiss, n = e.mode;
|
|
178
|
+
return {
|
|
179
|
+
...e,
|
|
180
|
+
onDismiss: () => {
|
|
181
|
+
i((d) => new Set(d).add(n)), r();
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
}, [e, o]);
|
|
185
|
+
}
|
|
186
|
+
export {
|
|
187
|
+
k as A,
|
|
188
|
+
q as u,
|
|
189
|
+
U as w
|
|
190
|
+
};
|
|
191
|
+
//# sourceMappingURL=ai-credits-notice-DQ-r3iQU.js.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as d, jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as z, useState as C, useRef as E, useMemo as F } from "react";
|
|
3
3
|
import { c as M } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as P } from "react-i18next";
|
|
5
|
-
import { A as g } from "./alert-
|
|
5
|
+
import { A as g } from "./alert-9kEwDza3.js";
|
|
6
6
|
import { B as D } from "./badge-BUk4RjTS.js";
|
|
7
7
|
import { B as H } from "./button-D-MQxsA_.js";
|
|
8
8
|
import { C as J } from "./checkbox-BjDv-r3o.js";
|
|
@@ -203,4 +203,4 @@ export {
|
|
|
203
203
|
Q as A,
|
|
204
204
|
$ as a
|
|
205
205
|
};
|
|
206
|
-
//# sourceMappingURL=ai-permission-notice-
|
|
206
|
+
//# sourceMappingURL=ai-permission-notice-C00i6VhY.js.map
|