@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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as o, jsxs as g, Fragment as Ze } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as Qe, useContext as et, useMemo as Y, useState as J, useRef as m, useEffect as
|
|
3
|
-
import * as
|
|
2
|
+
import { forwardRef as Qe, useContext as et, useMemo as Y, useState as J, useRef as m, useEffect as E, useCallback as tt } from "react";
|
|
3
|
+
import * as P from "@radix-ui/react-popover";
|
|
4
4
|
import { R as st, _ as x, P as ot } from "./index-4xgbg-sn.js";
|
|
5
|
-
import { c as
|
|
5
|
+
import { c as $ } from "./index-D2ZczOXr.js";
|
|
6
6
|
import { useTranslation as rt } from "react-i18next";
|
|
7
7
|
import { u as nt, F as it, b as at } from "./form-field-context-DtiROUJV.js";
|
|
8
8
|
import { c as lt } from "./compose-refs-C0k0tdqF.js";
|
|
9
|
-
import { n as
|
|
9
|
+
import { n as w } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
10
10
|
import { g as dt } from "./group-options-BvKhQ3xb.js";
|
|
11
11
|
import { b as ct } from "./menu-row-BAr8bx1I.js";
|
|
12
12
|
import { O as ut, a as ft, o as mt, b as pt, c as bt } from "./option-row-Dc7BrbK8.js";
|
|
@@ -123,7 +123,7 @@ const Nt = {
|
|
|
123
123
|
description: "Each option emits its value as data-option-id."
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
}, Rt =
|
|
126
|
+
}, Rt = $(
|
|
127
127
|
[
|
|
128
128
|
"ds:peer ds:w-full ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground",
|
|
129
129
|
"ds:outline-none ds:border-0",
|
|
@@ -141,7 +141,7 @@ const Nt = {
|
|
|
141
141
|
size: "md"
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
), Et =
|
|
144
|
+
), Et = $(
|
|
145
145
|
[
|
|
146
146
|
"ds:group ds:relative ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:w-full",
|
|
147
147
|
gt
|
|
@@ -160,7 +160,7 @@ const Nt = {
|
|
|
160
160
|
tone: "default"
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
), wt =
|
|
163
|
+
), wt = $(
|
|
164
164
|
[
|
|
165
165
|
"ds:z-[var(--z-popover)] ds:overflow-hidden ds:w-[var(--radix-popover-trigger-width)]",
|
|
166
166
|
// A guard: the list is as wide as the field, so only a field that is
|
|
@@ -175,7 +175,7 @@ const Nt = {
|
|
|
175
175
|
"ds:data-[side=top]:slide-in-from-bottom-2",
|
|
176
176
|
"ds:motion-reduce:animate-none"
|
|
177
177
|
].join(" ")
|
|
178
|
-
), ve =
|
|
178
|
+
), ve = $(
|
|
179
179
|
[
|
|
180
180
|
"ds:relative ds:flex ds:cursor-pointer ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
181
181
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -206,24 +206,24 @@ const Nt = {
|
|
|
206
206
|
function At({
|
|
207
207
|
search: n,
|
|
208
208
|
label: d,
|
|
209
|
-
iconClass:
|
|
210
|
-
size:
|
|
211
|
-
onSelect:
|
|
209
|
+
iconClass: j,
|
|
210
|
+
size: H,
|
|
211
|
+
onSelect: q
|
|
212
212
|
}) {
|
|
213
|
-
return ot((
|
|
213
|
+
return ot((B) => B.filtered.count) > 0 ? null : /* @__PURE__ */ g(
|
|
214
214
|
x.Item,
|
|
215
215
|
{
|
|
216
216
|
value: `__combobox-create__${n}`,
|
|
217
217
|
keywords: [],
|
|
218
218
|
forceMount: !0,
|
|
219
|
-
onSelect: () =>
|
|
220
|
-
className: ve({ size:
|
|
219
|
+
onSelect: () => q(n),
|
|
220
|
+
className: ve({ size: H }),
|
|
221
221
|
children: [
|
|
222
222
|
/* @__PURE__ */ o(
|
|
223
223
|
"span",
|
|
224
224
|
{
|
|
225
225
|
"aria-hidden": "true",
|
|
226
|
-
className: `ds:inline-flex ds:items-center ds:justify-center ${
|
|
226
|
+
className: `ds:inline-flex ds:items-center ds:justify-center ${j}`
|
|
227
227
|
}
|
|
228
228
|
),
|
|
229
229
|
/* @__PURE__ */ o("span", { className: "ds:flex-1 ds:truncate", children: d })
|
|
@@ -234,21 +234,21 @@ function At({
|
|
|
234
234
|
const he = Qe(
|
|
235
235
|
function({
|
|
236
236
|
options: d,
|
|
237
|
-
value:
|
|
238
|
-
defaultValue:
|
|
239
|
-
onValueChange:
|
|
237
|
+
value: j,
|
|
238
|
+
defaultValue: H,
|
|
239
|
+
onValueChange: q,
|
|
240
240
|
placeholder: te,
|
|
241
|
-
clearable:
|
|
241
|
+
clearable: B = !1,
|
|
242
242
|
disabled: ge,
|
|
243
243
|
readOnly: xe,
|
|
244
244
|
required: ye,
|
|
245
245
|
name: Se,
|
|
246
246
|
id: se,
|
|
247
|
-
size:
|
|
247
|
+
size: _ = "md",
|
|
248
248
|
tone: Ne = "default",
|
|
249
|
-
filter:
|
|
249
|
+
filter: L,
|
|
250
250
|
allowCreate: Re = !1,
|
|
251
|
-
onCreate:
|
|
251
|
+
onCreate: U,
|
|
252
252
|
open: oe,
|
|
253
253
|
onOpenChange: y,
|
|
254
254
|
onQueryChange: a,
|
|
@@ -257,18 +257,18 @@ const he = Qe(
|
|
|
257
257
|
"aria-label": re,
|
|
258
258
|
"aria-invalid": _e,
|
|
259
259
|
"aria-describedby": Ie,
|
|
260
|
-
autoComplete:
|
|
260
|
+
autoComplete: A,
|
|
261
261
|
matchAutofill: ne,
|
|
262
262
|
wrapOptionLabels: ie = !1
|
|
263
263
|
}, ke) {
|
|
264
|
-
const { t:
|
|
265
|
-
value:
|
|
266
|
-
defaultValue:
|
|
267
|
-
onChange:
|
|
268
|
-
}), b = ze ?? "",
|
|
264
|
+
const { t: I } = rt("ui"), S = nt(), C = et(it) !== null, [ze, D] = vt({
|
|
265
|
+
value: j,
|
|
266
|
+
defaultValue: H ?? "",
|
|
267
|
+
onChange: q
|
|
268
|
+
}), b = ze ?? "", R = Y(
|
|
269
269
|
() => d.find((e) => e.value === b),
|
|
270
270
|
[d, b]
|
|
271
|
-
), f = (
|
|
271
|
+
), f = (R == null ? void 0 : R.label) ?? "", [p, c] = J(f), [Ae, ae] = J(!1), F = oe !== void 0, i = F ? oe : Ae, k = m(!1), T = f !== "" && p === f, N = m(null), le = m(null), de = m(null);
|
|
272
272
|
at(S, N);
|
|
273
273
|
const [Ce, De] = J(0), ce = m(!1);
|
|
274
274
|
Z(() => {
|
|
@@ -276,15 +276,15 @@ const he = Qe(
|
|
|
276
276
|
ce.current = !0;
|
|
277
277
|
return;
|
|
278
278
|
}
|
|
279
|
-
|
|
280
|
-
}, [
|
|
281
|
-
const
|
|
282
|
-
|
|
283
|
-
|
|
279
|
+
T && De((e) => e + 1);
|
|
280
|
+
}, [T]);
|
|
281
|
+
const O = m(!1);
|
|
282
|
+
E(() => {
|
|
283
|
+
O.current = !1;
|
|
284
284
|
}, [p, i]);
|
|
285
285
|
const K = m(!1);
|
|
286
286
|
Z(() => {
|
|
287
|
-
if (!i || !
|
|
287
|
+
if (!i || !T || !b) return;
|
|
288
288
|
const e = de.current, t = e == null ? void 0 : e.querySelector(
|
|
289
289
|
`[data-option-id="${CSS.escape(b)}"]`
|
|
290
290
|
);
|
|
@@ -297,28 +297,28 @@ const he = Qe(
|
|
|
297
297
|
K.current = !1;
|
|
298
298
|
}
|
|
299
299
|
}, [i]);
|
|
300
|
-
const
|
|
300
|
+
const V = A && A !== "off" ? A : void 0;
|
|
301
301
|
Z(() => {
|
|
302
302
|
const e = N.current;
|
|
303
|
-
e && (e.setAttribute("aria-expanded", String(i)),
|
|
303
|
+
e && (e.setAttribute("aria-expanded", String(i)), V && e.setAttribute("autocomplete", V));
|
|
304
304
|
});
|
|
305
305
|
const M = m(!1);
|
|
306
|
-
|
|
306
|
+
E(() => {
|
|
307
307
|
const e = N.current;
|
|
308
|
-
if (!e || !
|
|
308
|
+
if (!e || !V) return;
|
|
309
309
|
const t = (r) => {
|
|
310
310
|
const l = r.inputType;
|
|
311
311
|
M.current = !l || l === "insertReplacementText";
|
|
312
312
|
};
|
|
313
313
|
return e.addEventListener("input", t), () => e.removeEventListener("input", t);
|
|
314
|
-
}, [
|
|
314
|
+
}, [V]), E(() => {
|
|
315
315
|
i || c(f);
|
|
316
316
|
}, [f, i]);
|
|
317
|
-
const
|
|
317
|
+
const z = (C ? S.disabled : !1) || !!ge, v = !!xe, Fe = (C ? S.required : !1) || !!ye, ue = C ? S.invalid : !!_e, Te = ue ? "error" : Ne, Oe = C && S.describedBy ? S.describedBy : Ie, fe = te ?? I("inputs.combobox.placeholder", "Search…"), Ve = Y(
|
|
318
318
|
() => (e, t, r) => {
|
|
319
|
-
if (
|
|
320
|
-
const l =
|
|
321
|
-
return
|
|
319
|
+
if (k.current || f !== "" && t === f) return 1;
|
|
320
|
+
const l = w(e), s = w(t), h = r == null ? void 0 : r.map(w);
|
|
321
|
+
return L ? L(
|
|
322
322
|
l,
|
|
323
323
|
s,
|
|
324
324
|
(h == null ? void 0 : h[0]) ?? ""
|
|
@@ -328,22 +328,22 @@ const he = Qe(
|
|
|
328
328
|
h
|
|
329
329
|
);
|
|
330
330
|
},
|
|
331
|
-
[
|
|
331
|
+
[L, f]
|
|
332
332
|
), G = (e) => {
|
|
333
|
-
|
|
333
|
+
D(e);
|
|
334
334
|
}, u = (e) => {
|
|
335
|
-
|
|
335
|
+
F || ae(e), y == null || y(e);
|
|
336
336
|
}, Pe = (e) => {
|
|
337
337
|
const t = d.find((r) => r.value === e);
|
|
338
338
|
G(e), c((t == null ? void 0 : t.label) ?? ""), u(!1);
|
|
339
339
|
}, $e = (e) => {
|
|
340
|
-
|
|
340
|
+
U == null || U(e), u(!1);
|
|
341
341
|
}, je = (e) => {
|
|
342
342
|
var l;
|
|
343
|
-
const t =
|
|
343
|
+
const t = w(e.trim());
|
|
344
344
|
if (!t) return;
|
|
345
345
|
const r = ne ? ne(e.trim()) : (l = d.find(
|
|
346
|
-
(s) =>
|
|
346
|
+
(s) => w(s.value) === t || w(s.label) === t
|
|
347
347
|
)) == null ? void 0 : l.value;
|
|
348
348
|
return d.find((s) => s.value === r && !s.disabled);
|
|
349
349
|
}, He = (e) => {
|
|
@@ -360,27 +360,27 @@ const he = Qe(
|
|
|
360
360
|
return;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
c(e),
|
|
363
|
+
c(e), k.current || a == null || a(e), !i && e.length > 0 && !k.current && u(!0);
|
|
364
364
|
}
|
|
365
365
|
}, qe = () => {
|
|
366
|
-
!
|
|
366
|
+
!z && !v && u(!0);
|
|
367
367
|
}, Be = () => {
|
|
368
|
-
!i && !
|
|
368
|
+
!i && !z && !v && u(!0);
|
|
369
369
|
}, Le = () => {
|
|
370
|
-
|
|
370
|
+
k.current = !0;
|
|
371
371
|
}, Ue = () => {
|
|
372
372
|
var t;
|
|
373
|
-
if (
|
|
373
|
+
if (k.current = !1, v) return;
|
|
374
374
|
const e = ((t = N.current) == null ? void 0 : t.value) ?? "";
|
|
375
375
|
c(e), a == null || a(e), e.length > 0 && u(!0);
|
|
376
376
|
}, Ke = (e) => {
|
|
377
377
|
if (!e.nativeEvent.isComposing) {
|
|
378
|
-
if ((e.key === "ArrowDown" || e.key === "ArrowUp") && !i && !
|
|
378
|
+
if ((e.key === "ArrowDown" || e.key === "ArrowUp") && !i && !z && !v) {
|
|
379
379
|
e.preventDefault(), u(!0);
|
|
380
380
|
return;
|
|
381
381
|
}
|
|
382
382
|
if ((e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Home" || e.key === "End" || /* cmdk's own Ctrl+N, J, P and K move the highlight too. */
|
|
383
|
-
e.ctrlKey && ["n", "j", "p", "k"].includes(e.key)) && (
|
|
383
|
+
e.ctrlKey && ["n", "j", "p", "k"].includes(e.key)) && (O.current = !0), e.key === "Enter" && (!i || !O.current && (T || p === ""))) {
|
|
384
384
|
e.preventDefault(), i && u(!1);
|
|
385
385
|
return;
|
|
386
386
|
}
|
|
@@ -392,22 +392,22 @@ const he = Qe(
|
|
|
392
392
|
}, Ge = (e) => {
|
|
393
393
|
v && e || (u(e), e || c(f));
|
|
394
394
|
}, me = m(b);
|
|
395
|
-
|
|
395
|
+
E(() => {
|
|
396
396
|
me.current = b;
|
|
397
397
|
}, [b]);
|
|
398
398
|
const pe = m(p);
|
|
399
|
-
|
|
399
|
+
E(() => {
|
|
400
400
|
pe.current = p;
|
|
401
401
|
}, [p]);
|
|
402
402
|
const be = m(i);
|
|
403
|
-
|
|
403
|
+
E(() => {
|
|
404
404
|
be.current = i;
|
|
405
405
|
}, [i]);
|
|
406
406
|
const W = tt(
|
|
407
407
|
(e) => {
|
|
408
|
-
|
|
408
|
+
F || ae(e), y == null || y(e);
|
|
409
409
|
},
|
|
410
|
-
[
|
|
410
|
+
[F, y]
|
|
411
411
|
), We = Y(
|
|
412
412
|
() => ({
|
|
413
413
|
getValue: () => me.current || null,
|
|
@@ -415,7 +415,7 @@ const he = Qe(
|
|
|
415
415
|
getIsOpen: () => be.current,
|
|
416
416
|
setValue: (e) => {
|
|
417
417
|
const t = e ?? "";
|
|
418
|
-
|
|
418
|
+
D(t);
|
|
419
419
|
const r = d.find((l) => l.value === t);
|
|
420
420
|
c((r == null ? void 0 : r.label) ?? "");
|
|
421
421
|
},
|
|
@@ -423,16 +423,16 @@ const he = Qe(
|
|
|
423
423
|
c(e), a == null || a(e);
|
|
424
424
|
},
|
|
425
425
|
clear: () => {
|
|
426
|
-
|
|
426
|
+
D(""), c(""), a == null || a("");
|
|
427
427
|
},
|
|
428
428
|
open: () => W(!0),
|
|
429
429
|
close: () => W(!1)
|
|
430
430
|
}),
|
|
431
|
-
[
|
|
431
|
+
[D, d, W, a]
|
|
432
432
|
);
|
|
433
433
|
xt(Nt, We, se);
|
|
434
|
-
const Xe =
|
|
435
|
-
return /* @__PURE__ */ o(
|
|
434
|
+
const Xe = B && !!b && !z && !v, Ye = dt(d), X = zt[_];
|
|
435
|
+
return /* @__PURE__ */ o(P.Root, { open: i, onOpenChange: Ge, children: /* @__PURE__ */ g(
|
|
436
436
|
x,
|
|
437
437
|
{
|
|
438
438
|
filter: Ve,
|
|
@@ -441,12 +441,12 @@ const he = Qe(
|
|
|
441
441
|
label: re ?? (S.label || fe),
|
|
442
442
|
className: "ds:w-full",
|
|
443
443
|
children: [
|
|
444
|
-
/* @__PURE__ */ o(
|
|
444
|
+
/* @__PURE__ */ o(P.Anchor, { asChild: !0, children: /* @__PURE__ */ g(
|
|
445
445
|
"div",
|
|
446
446
|
{
|
|
447
447
|
ref: le,
|
|
448
448
|
className: Et({
|
|
449
|
-
size:
|
|
449
|
+
size: _,
|
|
450
450
|
tone: Te,
|
|
451
451
|
className: we
|
|
452
452
|
}),
|
|
@@ -459,12 +459,13 @@ const he = Qe(
|
|
|
459
459
|
ref: lt(ke, N),
|
|
460
460
|
value: p,
|
|
461
461
|
onValueChange: He,
|
|
462
|
+
dir: R == null ? void 0 : R.dir,
|
|
462
463
|
name: Se,
|
|
463
464
|
placeholder: fe,
|
|
464
|
-
disabled:
|
|
465
|
+
disabled: z,
|
|
465
466
|
readOnly: v,
|
|
466
467
|
required: Fe,
|
|
467
|
-
autoComplete:
|
|
468
|
+
autoComplete: A,
|
|
468
469
|
"aria-describedby": Oe,
|
|
469
470
|
"aria-invalid": ue || void 0,
|
|
470
471
|
onFocus: qe,
|
|
@@ -472,14 +473,14 @@ const he = Qe(
|
|
|
472
473
|
onKeyDown: Ke,
|
|
473
474
|
onCompositionStart: Le,
|
|
474
475
|
onCompositionEnd: Ue,
|
|
475
|
-
className: Rt({ size:
|
|
476
|
+
className: Rt({ size: _ })
|
|
476
477
|
}
|
|
477
478
|
),
|
|
478
479
|
Xe ? /* @__PURE__ */ o(
|
|
479
480
|
"button",
|
|
480
481
|
{
|
|
481
482
|
type: "button",
|
|
482
|
-
"aria-label":
|
|
483
|
+
"aria-label": I("inputs.combobox.clear", "Clear selection"),
|
|
483
484
|
onClick: Me,
|
|
484
485
|
onPointerDown: (e) => e.stopPropagation(),
|
|
485
486
|
className: [
|
|
@@ -498,12 +499,12 @@ const he = Qe(
|
|
|
498
499
|
]
|
|
499
500
|
}
|
|
500
501
|
) }),
|
|
501
|
-
/* @__PURE__ */ o(
|
|
502
|
-
|
|
502
|
+
/* @__PURE__ */ o(P.Portal, { forceMount: !0, children: /* @__PURE__ */ o(
|
|
503
|
+
P.Content,
|
|
503
504
|
{
|
|
504
505
|
forceMount: !0,
|
|
505
506
|
hidden: !i,
|
|
506
|
-
"aria-label": re ??
|
|
507
|
+
"aria-label": re ?? I("inputs.combobox.popupLabel", "Options"),
|
|
507
508
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
508
509
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
509
510
|
onInteractOutside: (e) => {
|
|
@@ -520,11 +521,11 @@ const he = Qe(
|
|
|
520
521
|
ref: de,
|
|
521
522
|
className: It,
|
|
522
523
|
onPointerMove: () => {
|
|
523
|
-
K.current || (
|
|
524
|
+
K.current || (O.current = !0);
|
|
524
525
|
},
|
|
525
526
|
onMouseDown: (e) => e.preventDefault(),
|
|
526
527
|
children: [
|
|
527
|
-
/* @__PURE__ */ o(x.Empty, { className: kt, children: /* @__PURE__ */ o("div", { role: "option", "aria-selected": !1, "aria-disabled": "true", children: Ee ??
|
|
528
|
+
/* @__PURE__ */ o(x.Empty, { className: kt, children: /* @__PURE__ */ o("div", { role: "option", "aria-selected": !1, "aria-disabled": "true", children: Ee ?? I("inputs.combobox.empty", "No results found") }) }),
|
|
528
529
|
Ye.map(({ group: e, items: t }, r) => {
|
|
529
530
|
const l = t.map((s) => {
|
|
530
531
|
const h = s.value === b;
|
|
@@ -536,7 +537,7 @@ const he = Qe(
|
|
|
536
537
|
keywords: [s.label],
|
|
537
538
|
disabled: s.disabled,
|
|
538
539
|
onSelect: Pe,
|
|
539
|
-
className: ve({ size:
|
|
540
|
+
className: ve({ size: _ }),
|
|
540
541
|
children: [
|
|
541
542
|
/* @__PURE__ */ o(
|
|
542
543
|
"span",
|
|
@@ -573,6 +574,7 @@ const he = Qe(
|
|
|
573
574
|
/* @__PURE__ */ o(
|
|
574
575
|
"span",
|
|
575
576
|
{
|
|
577
|
+
dir: s.dir,
|
|
576
578
|
className: mt({
|
|
577
579
|
wrap: ie,
|
|
578
580
|
className: "ds:flex-1"
|
|
@@ -598,7 +600,14 @@ const he = Qe(
|
|
|
598
600
|
}
|
|
599
601
|
)
|
|
600
602
|
) : /* @__PURE__ */ g(Ze, { children: [
|
|
601
|
-
/* @__PURE__ */ o(
|
|
603
|
+
/* @__PURE__ */ o(
|
|
604
|
+
"span",
|
|
605
|
+
{
|
|
606
|
+
dir: s.dir,
|
|
607
|
+
className: "ds:flex-1 ds:truncate",
|
|
608
|
+
children: s.label
|
|
609
|
+
}
|
|
610
|
+
),
|
|
602
611
|
s.endContent ? (
|
|
603
612
|
// Deliberately NOT aria-hidden — unlike
|
|
604
613
|
// `startAdornment`, this slot carries meaning
|
|
@@ -626,11 +635,11 @@ const he = Qe(
|
|
|
626
635
|
At,
|
|
627
636
|
{
|
|
628
637
|
search: p,
|
|
629
|
-
label:
|
|
638
|
+
label: I("inputs.combobox.create", 'Create "{{value}}"', {
|
|
630
639
|
value: p
|
|
631
640
|
}),
|
|
632
641
|
iconClass: X,
|
|
633
|
-
size:
|
|
642
|
+
size: _,
|
|
634
643
|
onSelect: $e
|
|
635
644
|
}
|
|
636
645
|
) : null
|
|
@@ -655,4 +664,4 @@ export {
|
|
|
655
664
|
ve as d,
|
|
656
665
|
Et as e
|
|
657
666
|
};
|
|
658
|
-
//# sourceMappingURL=combobox-
|
|
667
|
+
//# sourceMappingURL=combobox-vF9O-QoG.js.map
|
|
@@ -27,7 +27,7 @@ const ge = {
|
|
|
27
27
|
type: "string",
|
|
28
28
|
descriptionKey: "ui.agent.contactProfileCard.state.profession",
|
|
29
29
|
description: "Profession string the card is currently rendering — undefined when the consumer omitted it.",
|
|
30
|
-
read: (
|
|
30
|
+
read: (i) => i.getProfession()
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
actions: {},
|
|
@@ -59,23 +59,23 @@ const ge = {
|
|
|
59
59
|
defaultVariants: { surface: "elevated" }
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
|
-
function
|
|
63
|
-
return
|
|
62
|
+
function be(i) {
|
|
63
|
+
return i.replace(/[^\d+]/g, "");
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const a = `https://wa.me/${
|
|
65
|
+
function Ce(i, r) {
|
|
66
|
+
const a = `https://wa.me/${i}`;
|
|
67
67
|
return r ? `${a}?text=${encodeURIComponent(r)}` : a;
|
|
68
68
|
}
|
|
69
|
-
function xe(
|
|
70
|
-
return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(
|
|
69
|
+
function xe(i) {
|
|
70
|
+
return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(i.line)}`;
|
|
71
71
|
}
|
|
72
72
|
function Pe() {
|
|
73
73
|
if (typeof document > "u") return "4945a3";
|
|
74
|
-
const
|
|
74
|
+
const i = getComputedStyle(document.documentElement).getPropertyValue("--map-marker-color").trim(), r = /^#?([0-9a-fA-F]{6})$/.exec(i);
|
|
75
75
|
return r ? r[1] : "4945a3";
|
|
76
76
|
}
|
|
77
|
-
function ye({ apiKey:
|
|
78
|
-
const c = Pe(), u = `https://maps.googleapis.com/maps/api/staticmap?center=${r.lat},${r.lng}&zoom=${a}&size=640x192&scale=2&markers=color:0x${c}%7C${r.lat},${r.lng}&key=${encodeURIComponent(
|
|
77
|
+
function ye({ apiKey: i, center: r, zoom: a, altText: s }) {
|
|
78
|
+
const c = Pe(), u = `https://maps.googleapis.com/maps/api/staticmap?center=${r.lat},${r.lng}&zoom=${a}&size=640x192&scale=2&markers=color:0x${c}%7C${r.lat},${r.lng}&key=${encodeURIComponent(i)}`;
|
|
79
79
|
return /* @__PURE__ */ e(
|
|
80
80
|
"img",
|
|
81
81
|
{
|
|
@@ -91,7 +91,7 @@ function ye({ apiKey: o, center: r, zoom: a, altText: s }) {
|
|
|
91
91
|
}
|
|
92
92
|
const ke = le(
|
|
93
93
|
({
|
|
94
|
-
heading:
|
|
94
|
+
heading: i,
|
|
95
95
|
description: r,
|
|
96
96
|
address: a,
|
|
97
97
|
phone: s,
|
|
@@ -102,9 +102,9 @@ const ke = le(
|
|
|
102
102
|
languages: g,
|
|
103
103
|
languageLabels: p,
|
|
104
104
|
insurances: v,
|
|
105
|
-
firstVisitPriceCents:
|
|
105
|
+
firstVisitPriceCents: b,
|
|
106
106
|
currencyCode: y = "EUR",
|
|
107
|
-
profession:
|
|
107
|
+
profession: C,
|
|
108
108
|
specializedInFearPatients: L,
|
|
109
109
|
googleMapsApiKey: k,
|
|
110
110
|
mapZoom: j = 14,
|
|
@@ -121,21 +121,21 @@ const ke = le(
|
|
|
121
121
|
className: ee,
|
|
122
122
|
...ae
|
|
123
123
|
}, te) => {
|
|
124
|
-
const { t, i18n: M } = pe("ui"), $ = se(), A = M.language ?? "en", N =
|
|
125
|
-
if (
|
|
124
|
+
const { t, i18n: M } = pe("ui"), $ = se(), A = M.language ?? "en", N = i ?? t("contactProfileCard.heading"), re = Z ?? N, R = ce(() => {
|
|
125
|
+
if (b != null)
|
|
126
126
|
return me(
|
|
127
|
-
|
|
127
|
+
b,
|
|
128
128
|
y,
|
|
129
129
|
A,
|
|
130
130
|
t("common.freeOfCharge")
|
|
131
131
|
);
|
|
132
|
-
}, [
|
|
132
|
+
}, [b, y, A, t]), n = [];
|
|
133
133
|
if (a && n.push({
|
|
134
134
|
key: "address",
|
|
135
135
|
icon: /* @__PURE__ */ e(G, { "aria-hidden": "true" }),
|
|
136
136
|
label: t("contactProfileCard.label.address"),
|
|
137
137
|
value: /* @__PURE__ */ f("span", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
138
|
-
/* @__PURE__ */ e("span", { children: a.line }),
|
|
138
|
+
/* @__PURE__ */ e("span", { dir: "auto", children: a.line }),
|
|
139
139
|
a.lat != null && a.lng != null ? /* @__PURE__ */ e(
|
|
140
140
|
d,
|
|
141
141
|
{
|
|
@@ -154,10 +154,10 @@ const ke = le(
|
|
|
154
154
|
value: /* @__PURE__ */ e(
|
|
155
155
|
d,
|
|
156
156
|
{
|
|
157
|
-
href: `tel:${
|
|
157
|
+
href: `tel:${be(s)}`,
|
|
158
158
|
intent: "default",
|
|
159
159
|
onClick: q,
|
|
160
|
-
children: s
|
|
160
|
+
children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: s })
|
|
161
161
|
}
|
|
162
162
|
)
|
|
163
163
|
}), c && n.push({
|
|
@@ -167,11 +167,11 @@ const ke = le(
|
|
|
167
167
|
value: /* @__PURE__ */ e(
|
|
168
168
|
d,
|
|
169
169
|
{
|
|
170
|
-
href:
|
|
170
|
+
href: Ce(c, u),
|
|
171
171
|
external: !0,
|
|
172
172
|
intent: "default",
|
|
173
173
|
onClick: W,
|
|
174
|
-
children: c
|
|
174
|
+
children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: c })
|
|
175
175
|
}
|
|
176
176
|
)
|
|
177
177
|
}), m && n.push({
|
|
@@ -184,16 +184,16 @@ const ke = le(
|
|
|
184
184
|
href: `mailto:${m}`,
|
|
185
185
|
intent: "default",
|
|
186
186
|
onClick: Y,
|
|
187
|
-
children: m
|
|
187
|
+
children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: m })
|
|
188
188
|
}
|
|
189
189
|
)
|
|
190
190
|
}), h && n.push({
|
|
191
191
|
key: "website",
|
|
192
192
|
icon: /* @__PURE__ */ e(B, { "aria-hidden": "true" }),
|
|
193
193
|
label: t("contactProfileCard.label.website"),
|
|
194
|
-
value: /* @__PURE__ */ e(d, { href: h, external: !0, intent: "default", children: h })
|
|
194
|
+
value: /* @__PURE__ */ e(d, { href: h, external: !0, intent: "default", children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: h }) })
|
|
195
195
|
}), g && g.length > 0) {
|
|
196
|
-
const
|
|
196
|
+
const o = (l) => {
|
|
197
197
|
if (p != null && p[l]) return p[l];
|
|
198
198
|
const I = `languages.${l}`;
|
|
199
199
|
return M.exists(I) ? t(I) : l.toUpperCase();
|
|
@@ -202,14 +202,14 @@ const ke = le(
|
|
|
202
202
|
key: "languages",
|
|
203
203
|
icon: /* @__PURE__ */ e(_, { "aria-hidden": "true" }),
|
|
204
204
|
label: t("contactProfileCard.label.languages"),
|
|
205
|
-
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: g.map((l) => /* @__PURE__ */ e(P, { variant: "neutral", children:
|
|
205
|
+
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: g.map((l) => /* @__PURE__ */ e(P, { variant: "neutral", children: o(l) }, l)) })
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
v && v.length > 0 && n.push({
|
|
209
209
|
key: "insurances",
|
|
210
210
|
icon: /* @__PURE__ */ e(z, { "aria-hidden": "true" }),
|
|
211
211
|
label: t("contactProfileCard.label.insurances"),
|
|
212
|
-
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((
|
|
212
|
+
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((o) => /* @__PURE__ */ e(P, { variant: "info", children: o }, o)) })
|
|
213
213
|
}), R && n.push({
|
|
214
214
|
key: "firstVisitPrice",
|
|
215
215
|
icon: /* @__PURE__ */ e(V, { "aria-hidden": "true" }),
|
|
@@ -220,17 +220,17 @@ const ke = le(
|
|
|
220
220
|
icon: /* @__PURE__ */ e(H, { "aria-hidden": "true" }),
|
|
221
221
|
label: t("contactProfileCard.label.expertForAnxiousPatients"),
|
|
222
222
|
value: t("contactProfileCard.value.yesShort")
|
|
223
|
-
}),
|
|
223
|
+
}), C && n.push({
|
|
224
224
|
key: "profession",
|
|
225
225
|
icon: /* @__PURE__ */ e(O, { "aria-hidden": "true" }),
|
|
226
226
|
label: t("contactProfileCard.label.profession"),
|
|
227
|
-
value:
|
|
227
|
+
value: C
|
|
228
228
|
}), he(
|
|
229
229
|
ge,
|
|
230
|
-
{ getProfession: () =>
|
|
230
|
+
{ getProfession: () => C },
|
|
231
231
|
x
|
|
232
232
|
);
|
|
233
|
-
const
|
|
233
|
+
const ie = !!k && (a == null ? void 0 : a.lat) !== void 0 && (a == null ? void 0 : a.lng) !== void 0 ? /* @__PURE__ */ e(
|
|
234
234
|
ye,
|
|
235
235
|
{
|
|
236
236
|
apiKey: k,
|
|
@@ -241,16 +241,16 @@ const ke = le(
|
|
|
241
241
|
defaultValue: "Map showing {{address}}"
|
|
242
242
|
})
|
|
243
243
|
}
|
|
244
|
-
) : null, ne = X ??
|
|
245
|
-
r ? /* @__PURE__ */ e("p", { className: "type-body-sm ds:m-0 ds:whitespace-pre-line", children: r }) : null,
|
|
246
|
-
n.length > 0 ? /* @__PURE__ */ e(fe, { rowGap: "md", children: n.map((
|
|
244
|
+
) : null, ne = X ?? ie, oe = /* @__PURE__ */ f(T, { children: [
|
|
245
|
+
r ? /* @__PURE__ */ e("p", { dir: "auto", className: "type-body-sm ds:m-0 ds:whitespace-pre-line", children: r }) : null,
|
|
246
|
+
n.length > 0 ? /* @__PURE__ */ e(fe, { rowGap: "md", children: n.map((o) => /* @__PURE__ */ e(
|
|
247
247
|
ue,
|
|
248
248
|
{
|
|
249
|
-
icon:
|
|
250
|
-
label:
|
|
251
|
-
value:
|
|
249
|
+
icon: o.icon,
|
|
250
|
+
label: o.label,
|
|
251
|
+
value: o.value
|
|
252
252
|
},
|
|
253
|
-
|
|
253
|
+
o.key
|
|
254
254
|
)) }) : null,
|
|
255
255
|
ne,
|
|
256
256
|
Q
|
|
@@ -266,7 +266,7 @@ const ke = le(
|
|
|
266
266
|
}
|
|
267
267
|
)
|
|
268
268
|
] }),
|
|
269
|
-
|
|
269
|
+
oe
|
|
270
270
|
] });
|
|
271
271
|
return /* @__PURE__ */ e(
|
|
272
272
|
"div",
|
|
@@ -315,4 +315,4 @@ export {
|
|
|
315
315
|
ke as b,
|
|
316
316
|
ge as c
|
|
317
317
|
};
|
|
318
|
-
//# sourceMappingURL=contact-profile-card-
|
|
318
|
+
//# sourceMappingURL=contact-profile-card-CAwwOqHl.js.map
|