@alfadocs/ui-kit 1.90.1 → 1.91.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.
Files changed (223) hide show
  1. package/dist/_chunks/address-autocomplete-DR4Xn23Z.js +519 -0
  2. package/dist/_chunks/{address-fields-CfnXK8RT.js → address-fields-qxQkGwPf.js} +5 -5
  3. package/dist/_chunks/{agenda-card-BDuvreCe.js → agenda-card-BhY342MA.js} +2 -2
  4. package/dist/_chunks/{agenda-tray-D-jvptdo.js → agenda-tray-BmxBGEci.js} +2 -2
  5. package/dist/_chunks/{ai-permission-notice-CoW22jx1.js → ai-permission-notice-VNh3W57L.js} +2 -2
  6. package/dist/_chunks/{alia-sidebar-CsTRAxC8.js → alia-sidebar-ovRX_oti.js} +3 -3
  7. package/dist/_chunks/{anamnesis-summary-rows-fbEQwcuW.js → anamnesis-summary-rows-EKPfVCmh.js} +2 -2
  8. package/dist/_chunks/{appointment-card-5JMWi9_f.js → appointment-card-Bstc1p7a.js} +2 -2
  9. package/dist/_chunks/{appointment-peek-39BwVMUf.js → appointment-peek-C0kKqnFk.js} +2 -2
  10. package/dist/_chunks/{appointment-timeline-1-Za2miy.js → appointment-timeline-rbt9AwHO.js} +2 -2
  11. package/dist/_chunks/{appointment-tray-Dwc8MSIQ.js → appointment-tray-6zd8RLIL.js} +2 -2
  12. package/dist/_chunks/autocomplete-BXMcNoa3.js +562 -0
  13. package/dist/_chunks/{avatar-BPiPL7ND.js → avatar-a6042Ox2.js} +52 -52
  14. package/dist/_chunks/{balance-badge-cell-C4FYwmrZ.js → balance-badge-cell-BtJvre1-.js} +3 -3
  15. package/dist/_chunks/booking-opt_h7Uc.js +4590 -0
  16. package/dist/_chunks/{calendar-ClB-jWH1.js → calendar-CmiMS4FJ.js} +2 -2
  17. package/dist/_chunks/{calendar-appointment-editor-dialog-C1v2MNE4.js → calendar-appointment-editor-dialog-sJKLoVJ2.js} +11 -11
  18. package/dist/_chunks/{care-plan-card-BYCPNDvA.js → care-plan-card-DD9rEWYN.js} +2 -2
  19. package/dist/_chunks/{care-plan-header-BzsAg6oY.js → care-plan-header-CXUJQt8Q.js} +2 -2
  20. package/dist/_chunks/{chat-message-CmFJdEre.js → chat-message-LRO_6Ee3.js} +2 -2
  21. package/dist/_chunks/{checkbox-BjDv-r3o.js → checkbox-a7Sh-dXb.js} +32 -31
  22. package/dist/_chunks/{checkbox-group-Cw2H5qaq.js → checkbox-group-eGdv9fZc.js} +2 -2
  23. package/dist/_chunks/{city-input-CJVGswxp.js → city-input-CA59CjnV.js} +2 -2
  24. package/dist/_chunks/{clinical-note-card-Caidqcwa.js → clinical-note-card-Cut2lNmu.js} +3 -3
  25. package/dist/_chunks/{combobox-CDPm_n0p.js → combobox-D-gpgEDy.js} +314 -294
  26. package/dist/_chunks/{contact-card-Czu60UvU.js → contact-card-ClvEDM9e.js} +2 -2
  27. package/dist/_chunks/{contact-profile-card-Da1vmJQI.js → contact-profile-card-CX45mZA3.js} +106 -95
  28. package/dist/_chunks/{country-select-DQ8q7ypA.js → country-select-BfmX9y5i.js} +2 -2
  29. package/dist/_chunks/{data-table-B_IcS0Ke.js → data-table-CqQgoNsU.js} +2 -2
  30. package/dist/_chunks/{dependent-selector-C4kOgO8b.js → dependent-selector-CyNi7M_f.js} +2 -2
  31. package/dist/_chunks/{entity-summary-BLxzSSXK.js → entity-summary-B_bOloqP.js} +3 -3
  32. package/dist/_chunks/error-page-B0fGNTRB.js +419 -0
  33. package/dist/_chunks/{face-scheme-BgJGFDTa.js → face-scheme-BKSE98bo.js} +2 -2
  34. package/dist/_chunks/{file-manager-C9YOT-Dn.js → file-manager-BnI1ZWZu.js} +2 -2
  35. package/dist/_chunks/{header-settings-BVhjndtV.js → header-settings-BeA2fnol.js} +24 -23
  36. package/dist/_chunks/{heatmap-HTz3Jvzy.js → heatmap-fCxwNz2o.js} +2 -2
  37. package/dist/_chunks/{languages-CZqBaPwI.js → languages-CGLX6Qpe.js} +3 -15
  38. package/dist/_chunks/link-DtCfnLnF.js +332 -0
  39. package/dist/_chunks/{link-cell-renderer-C0ynDik7.js → link-cell-renderer-BS3V4LA6.js} +4 -4
  40. package/dist/_chunks/{login-dev-card-DYwbL5sD.js → login-dev-card-BZBR58mu.js} +2 -2
  41. package/dist/_chunks/{map-view-Bvi06RVh.js → map-view-UrNgxBy3.js} +260 -237
  42. package/dist/_chunks/{index.modern-BeRXQVdc.js → maps-core-gate-DkNqGkm3.js} +360 -319
  43. package/dist/_chunks/{marketplace-app-shell-x_abo_ye.js → marketplace-app-shell-CJQtx3sv.js} +3 -3
  44. package/dist/_chunks/{message-card-CvCnCssc.js → message-card-B6SduXJv.js} +2 -2
  45. package/dist/_chunks/{message-tray-IJYvy6Cf.js → message-tray-Cllf-v0G.js} +2 -2
  46. package/dist/_chunks/{nav-grid-Oc4aCPrg.js → nav-grid-D2xVcHTO.js} +2 -2
  47. package/dist/_chunks/{note-attachment-DIlIQ7JF.js → note-attachment-cnj2JRrg.js} +2 -2
  48. package/dist/_chunks/{note-timeline-KzL52MmB.js → note-timeline-BrjHBQfx.js} +2 -2
  49. package/dist/_chunks/{notes-panel-CZO1qsD-.js → notes-panel-ib7I3aNf.js} +3 -3
  50. package/dist/_chunks/{operator-hero-6aAIQaFZ.js → operator-hero-C_5B-8Qp.js} +43 -41
  51. package/dist/_chunks/{patient-details-D0P5eog5.js → patient-details-BjcUpD9S.js} +3 -3
  52. package/dist/_chunks/{patient-field-row-R73dZJY6.js → patient-field-row-B0tdiaWi.js} +6 -6
  53. package/dist/_chunks/patient-search-Ca9j5cWb.js +1306 -0
  54. package/dist/_chunks/{patient-summary-card-6U74-ivO.js → patient-summary-card-Cvv6_Ugk.js} +4 -4
  55. package/dist/_chunks/{payment-request-card-MndSlVoK.js → payment-request-card-BfGauFY0.js} +2 -2
  56. package/dist/_chunks/{periodontal-diagnosis-B9YmmVmM.js → periodontal-diagnosis-DD3hrg9X.js} +2 -2
  57. package/dist/_chunks/{permission-matrix-BoQjENGV.js → permission-matrix-BJ6sg3Zp.js} +3 -3
  58. package/dist/_chunks/{practice-profile-hero-qfrsFQI_.js → practice-profile-hero-ClzE-4CB.js} +76 -73
  59. package/dist/_chunks/{practice-results-B61krlwu.js → practice-results-CQ_KvEXK.js} +517 -514
  60. package/dist/_chunks/{product-hub-panel-Blag8t8f.js → product-hub-panel-bHi7lkVD.js} +2 -2
  61. package/dist/_chunks/{province-select-CPdTwEob.js → province-select-D64whw0m.js} +2 -2
  62. package/dist/_chunks/public-footer-IoRWoAMz.js +596 -0
  63. package/dist/_chunks/{registration-form-DmP3YUfp.js → registration-form-CRm6DaB9.js} +2 -2
  64. package/dist/_chunks/{reviews-panel-UzQQLb-z.js → reviews-panel-B7InBORU.js} +42 -41
  65. package/dist/_chunks/{rich-text-editor-BZTyxQBd.js → rich-text-editor-BfEu57dk.js} +3 -3
  66. package/dist/_chunks/{signature-request-DjY-X62H.js → signature-request-DvhyrRpn.js} +3 -3
  67. package/dist/_chunks/{signed-out-frame-G-3ATOdu.js → signed-out-frame-CgRXOUzi.js} +2 -2
  68. package/dist/_chunks/{slot-grid-Bb13H9Rl.js → slot-grid-B-IAFX3C.js} +183 -170
  69. package/dist/_chunks/{task-editor-BOETWbjU.js → task-editor-CI1SKUNc.js} +2 -2
  70. package/dist/_chunks/{timeline-wUuTDFY_.js → timeline-BcYHdP56.js} +2 -2
  71. package/dist/_chunks/{use-appointment-details-read-CWN-nJCZ.js → use-appointment-details-read-D8vDg0sg.js} +5 -5
  72. package/dist/_chunks/{voice-control-panel-BziKE-KK.js → voice-control-panel-BP0otrID.js} +2 -2
  73. package/dist/_chunks/{workflow-webhook-action-DulCpCRz.js → workflow-webhook-action-B_nBJ_ht.js} +2 -2
  74. package/dist/agent-catalog.json +3 -3
  75. package/dist/agent-i18n/en.json +1 -1
  76. package/dist/components/_shared/maps-core-gate.d.ts +18 -0
  77. package/dist/components/_shared/social-brand-icons.d.ts +29 -0
  78. package/dist/components/address-autocomplete/index.js +1 -1
  79. package/dist/components/address-fields/index.js +1 -1
  80. package/dist/components/agenda-card/index.js +1 -1
  81. package/dist/components/agenda-tray/index.js +1 -1
  82. package/dist/components/ai-permission-notice/index.js +1 -1
  83. package/dist/components/appointment-card/index.js +2 -2
  84. package/dist/components/appointment-details-panel/index.js +1 -1
  85. package/dist/components/appointment-peek/index.js +1 -1
  86. package/dist/components/appointment-timeline/index.js +1 -1
  87. package/dist/components/autocomplete/index.js +1 -1
  88. package/dist/components/avatar/avatar.d.ts +14 -0
  89. package/dist/components/avatar/index.js +1 -1
  90. package/dist/components/booking/booking-types.d.ts +26 -0
  91. package/dist/components/booking/index.js +1 -1
  92. package/dist/components/booking/slot-load-state.d.ts +11 -0
  93. package/dist/components/calendar/index.js +1 -1
  94. package/dist/components/care-plan-card/index.js +1 -1
  95. package/dist/components/care-plan-header/index.js +1 -1
  96. package/dist/components/chat-message/index.js +1 -1
  97. package/dist/components/checkbox/index.js +1 -1
  98. package/dist/components/checkbox-group/index.js +1 -1
  99. package/dist/components/city-input/index.js +1 -1
  100. package/dist/components/clinical-note-card/index.js +1 -1
  101. package/dist/components/combobox/index.js +1 -1
  102. package/dist/components/contact-card/index.js +1 -1
  103. package/dist/components/contact-profile-card/index.js +1 -1
  104. package/dist/components/country-select/index.js +1 -1
  105. package/dist/components/data-table/index.js +2 -2
  106. package/dist/components/dependent-selector/index.js +1 -1
  107. package/dist/components/entity-summary/index.js +1 -1
  108. package/dist/components/face-scheme/index.js +1 -1
  109. package/dist/components/file-manager/index.js +1 -1
  110. package/dist/components/header-settings/header-settings.d.ts +2 -1
  111. package/dist/components/header-settings/index.js +1 -1
  112. package/dist/components/heatmap/index.js +1 -1
  113. package/dist/components/link/index.js +1 -1
  114. package/dist/components/link/link.d.ts +10 -1
  115. package/dist/components/link/social-url.d.ts +71 -0
  116. package/dist/components/map-view/index.js +1 -1
  117. package/dist/components/message-card/index.js +1 -1
  118. package/dist/components/message-tray/index.js +1 -1
  119. package/dist/components/nav-grid/index.js +1 -1
  120. package/dist/components/note-timeline/index.js +1 -1
  121. package/dist/components/notes-panel/index.js +1 -1
  122. package/dist/components/operator-hero/index.js +1 -1
  123. package/dist/components/operator-hero/operator-hero.d.ts +6 -0
  124. package/dist/components/patient-details/index.js +1 -1
  125. package/dist/components/patient-search/index.js +1 -1
  126. package/dist/components/patient-summary-card/index.js +1 -1
  127. package/dist/components/patient-table/index.js +1 -1
  128. package/dist/components/payment-card/index.js +1 -1
  129. package/dist/components/periodontal-diagnosis/index.js +1 -1
  130. package/dist/components/permission-matrix/index.js +1 -1
  131. package/dist/components/practice-profile-hero/index.js +1 -1
  132. package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +6 -0
  133. package/dist/components/practice-results/index.js +1 -1
  134. package/dist/components/practice-results/practice-results.d.ts +8 -2
  135. package/dist/components/product-hub-tray/index.js +1 -1
  136. package/dist/components/province-select/index.js +1 -1
  137. package/dist/components/public-footer/index.js +1 -1
  138. package/dist/components/public-footer/public-footer.d.ts +13 -1
  139. package/dist/components/public-footer/socials.d.ts +6 -5
  140. package/dist/components/reviews-panel/index.js +1 -1
  141. package/dist/components/rich-text-editor/index.js +1 -1
  142. package/dist/components/slot-grid/index.js +1 -1
  143. package/dist/components/slot-grid/slot-grid.d.ts +2 -0
  144. package/dist/components/task-editor/index.js +1 -1
  145. package/dist/components/timeline/index.js +1 -1
  146. package/dist/components/voice-control-panel/index.js +1 -1
  147. package/dist/host-compat.css +1 -10
  148. package/dist/i18n/config.js +224 -96
  149. package/dist/i18n/locales/ar.d.ts +3 -0
  150. package/dist/i18n/locales/ar.js +4 -1
  151. package/dist/i18n/locales/de.d.ts +3 -0
  152. package/dist/i18n/locales/de.js +4 -1
  153. package/dist/i18n/locales/el.d.ts +3 -0
  154. package/dist/i18n/locales/el.js +4 -1
  155. package/dist/i18n/locales/en.d.ts +3 -0
  156. package/dist/i18n/locales/en.js +3 -0
  157. package/dist/i18n/locales/es.d.ts +3 -0
  158. package/dist/i18n/locales/es.js +4 -1
  159. package/dist/i18n/locales/fr.d.ts +3 -0
  160. package/dist/i18n/locales/fr.js +4 -1
  161. package/dist/i18n/locales/hi.d.ts +3 -0
  162. package/dist/i18n/locales/hi.js +4 -1
  163. package/dist/i18n/locales/it.d.ts +3 -0
  164. package/dist/i18n/locales/it.js +4 -1
  165. package/dist/i18n/locales/ja.d.ts +3 -0
  166. package/dist/i18n/locales/ja.js +4 -1
  167. package/dist/i18n/locales/nl.d.ts +3 -0
  168. package/dist/i18n/locales/nl.js +4 -1
  169. package/dist/i18n/locales/pl.d.ts +3 -0
  170. package/dist/i18n/locales/pl.js +4 -1
  171. package/dist/i18n/locales/pt.d.ts +3 -0
  172. package/dist/i18n/locales/pt.js +4 -1
  173. package/dist/i18n/locales/ro.d.ts +3 -0
  174. package/dist/i18n/locales/ro.js +4 -1
  175. package/dist/i18n/locales/ru.d.ts +3 -0
  176. package/dist/i18n/locales/ru.js +4 -1
  177. package/dist/i18n/locales/sq.d.ts +3 -0
  178. package/dist/i18n/locales/sq.js +4 -1
  179. package/dist/i18n/locales/sv.d.ts +3 -0
  180. package/dist/i18n/locales/sv.js +4 -1
  181. package/dist/i18n/locales/tr.d.ts +3 -0
  182. package/dist/i18n/locales/tr.js +4 -1
  183. package/dist/i18n/locales/zh.d.ts +3 -0
  184. package/dist/i18n/locales/zh.js +4 -1
  185. package/dist/index.js +68 -68
  186. package/dist/locales/ar.json +4 -1
  187. package/dist/locales/de.json +4 -1
  188. package/dist/locales/el.json +4 -1
  189. package/dist/locales/en.json +3 -0
  190. package/dist/locales/es.json +4 -1
  191. package/dist/locales/fr.json +4 -1
  192. package/dist/locales/hi.json +4 -1
  193. package/dist/locales/it.json +4 -1
  194. package/dist/locales/ja.json +4 -1
  195. package/dist/locales/nl.json +4 -1
  196. package/dist/locales/pl.json +4 -1
  197. package/dist/locales/pt.json +4 -1
  198. package/dist/locales/ro.json +4 -1
  199. package/dist/locales/ru.json +4 -1
  200. package/dist/locales/sq.json +4 -1
  201. package/dist/locales/sv.json +4 -1
  202. package/dist/locales/tr.json +4 -1
  203. package/dist/locales/zh.json +4 -1
  204. package/dist/patterns/alia-assistant/index.js +1 -1
  205. package/dist/patterns/anamnesis/index.js +1 -1
  206. package/dist/patterns/calendar/index.js +1 -1
  207. package/dist/patterns/error-page/error-page-english.d.ts +71 -0
  208. package/dist/patterns/error-page/index.js +1 -1
  209. package/dist/patterns/login-form/index.js +1 -1
  210. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  211. package/dist/patterns/registration-form/index.js +1 -1
  212. package/dist/patterns/signature-request/index.js +1 -1
  213. package/dist/patterns/signed-out-frame/index.js +1 -1
  214. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  215. package/dist/tokens.css +1 -1
  216. package/package.json +1 -1
  217. package/dist/_chunks/address-autocomplete-bPR2mNBt.js +0 -498
  218. package/dist/_chunks/autocomplete-CnB1mHGc.js +0 -539
  219. package/dist/_chunks/booking-C0FoW8Yx.js +0 -4336
  220. package/dist/_chunks/error-page-Bhai-spN.js +0 -344
  221. package/dist/_chunks/link-N5_YpLtm.js +0 -138
  222. package/dist/_chunks/patient-search-CCOUZABE.js +0 -1196
  223. package/dist/_chunks/public-footer-CXOrdAaS.js +0 -568
@@ -2,19 +2,19 @@ import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
2
  import { forwardRef as $e, useId as Ie, useMemo as De } from "react";
3
3
  import { c as Ge } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Le } from "react-i18next";
5
- import { A as re } from "./avatar-BPiPL7ND.js";
5
+ import { A as re } from "./avatar-a6042Ox2.js";
6
6
  import { B as D } from "./badge-BUk4RjTS.js";
7
7
  import { I as Ue } from "./icon-button-S8_weU3g.js";
8
8
  import { C as le } from "./card-BA4Ig_kn.js";
9
9
  import { K as Be, a as Re } from "./key-value-pair-BoXOtBL1.js";
10
- import { L as V } from "./link-N5_YpLtm.js";
10
+ import { L as V } from "./link-DtCfnLnF.js";
11
11
  import { S as k } from "./skeleton-tTWJpvAq.js";
12
12
  import { T as oe } from "./tag-DOZGz0fT.js";
13
13
  import { T as Ke } from "./transaction-chip-CohY6sTA.js";
14
14
  import { T as je } from "./tooltip-uEBdD1-5.js";
15
15
  import { H as G } from "./hover-card-CuRIA4wN.js";
16
16
  import { i as de } from "./is-safe-url-DkETxeHz.js";
17
- import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-R73dZJY6.js";
17
+ import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-B0tdiaWi.js";
18
18
  import { u as Oe } from "./registry-DvAUVLHh.js";
19
19
  import { M as ea } from "./mail-BqXVF2zH.js";
20
20
  import { P as aa } from "./phone-FceYcIFQ.js";
@@ -548,4 +548,4 @@ export {
548
548
  Ca as P,
549
549
  ma as p
550
550
  };
551
- //# sourceMappingURL=patient-summary-card-6U74-ivO.js.map
551
+ //# sourceMappingURL=patient-summary-card-Cvv6_Ugk.js.map
@@ -16,7 +16,7 @@ import { U as ie } from "./user-B12p7bVF.js";
16
16
  import { U as le } from "./user-cog-BTn98Arm.js";
17
17
  import { e as Q } from "./entity-card-fpm-KUKc.js";
18
18
  import { A as de } from "./arrow-up-right-C2v_MKsK.js";
19
- import { L as oe } from "./link-N5_YpLtm.js";
19
+ import { L as oe } from "./link-DtCfnLnF.js";
20
20
  import { C as $ } from "./credit-card-D9XZsHGA.js";
21
21
  import { C as se } from "./calendar-clock-hbObjfGY.js";
22
22
  import { i as ce } from "./is-safe-url-DkETxeHz.js";
@@ -439,4 +439,4 @@ export {
439
439
  Ce as b,
440
440
  me as p
441
441
  };
442
- //# sourceMappingURL=payment-request-card-MndSlVoK.js.map
442
+ //# sourceMappingURL=payment-request-card-BfGauFY0.js.map
@@ -4,7 +4,7 @@ import { c as Z } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as ee } from "react-i18next";
5
5
  import { B as te } from "./badge-BUk4RjTS.js";
6
6
  import { C as j } from "./card-BA4Ig_kn.js";
7
- import { C as ae } from "./checkbox-BjDv-r3o.js";
7
+ import { C as ae } from "./checkbox-a7Sh-dXb.js";
8
8
  import { R as y } from "./radio-BZQs6_36.js";
9
9
  import { R as D } from "./radio-group-ChIKyeSJ.js";
10
10
  import { u as oe } from "./registry-DvAUVLHh.js";
@@ -342,4 +342,4 @@ export {
342
342
  k as i,
343
343
  ne as p
344
344
  };
345
- //# sourceMappingURL=periodontal-diagnosis-B9YmmVmM.js.map
345
+ //# sourceMappingURL=periodontal-diagnosis-DD3hrg9X.js.map
@@ -2,8 +2,8 @@ import { jsx as a, jsxs as K } from "react/jsx-runtime";
2
2
  import { forwardRef as U, useMemo as h, useRef as d } from "react";
3
3
  import { c as V } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as A } from "react-i18next";
5
- import { C as H } from "./checkbox-group-Cw2H5qaq.js";
6
- import { C as T } from "./checkbox-BjDv-r3o.js";
5
+ import { C as H } from "./checkbox-group-eGdv9fZc.js";
6
+ import { C as T } from "./checkbox-a7Sh-dXb.js";
7
7
  import { u as _ } from "./registry-DvAUVLHh.js";
8
8
  import { L as q } from "./lock-ClAFG1gy.js";
9
9
  const z = {
@@ -171,4 +171,4 @@ export {
171
171
  I as a,
172
172
  z as p
173
173
  };
174
- //# sourceMappingURL=permission-matrix-BoQjENGV.js.map
174
+ //# sourceMappingURL=permission-matrix-BJ6sg3Zp.js.map
@@ -1,13 +1,13 @@
1
- import { jsxs as i, jsx as e, Fragment as j } from "react/jsx-runtime";
2
- import { forwardRef as A, useId as B, useState as z, useEffect as S, useMemo as E, useRef as K } from "react";
3
- import { c as M } from "./index-D2ZczOXr.js";
4
- import { A as b } from "./avatar-BPiPL7ND.js";
5
- import { B as V } from "./badge-BUk4RjTS.js";
6
- import { C as w } from "./card-BA4Ig_kn.js";
7
- import { R as F } from "./rating-CGYpg5dj.js";
8
- import { u as L } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
9
- import { u as W } from "./registry-DvAUVLHh.js";
10
- const $ = {
1
+ import { jsxs as d, jsx as e, Fragment as z } from "react/jsx-runtime";
2
+ import { forwardRef as S, useId as A, useState as E, useEffect as K, useMemo as M, useRef as V } from "react";
3
+ import { c as F } from "./index-D2ZczOXr.js";
4
+ import { A as w } from "./avatar-a6042Ox2.js";
5
+ import { B as L } from "./badge-BUk4RjTS.js";
6
+ import { C } from "./card-BA4Ig_kn.js";
7
+ import { R as W } from "./rating-CGYpg5dj.js";
8
+ import { u as $ } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
9
+ import { u as q } from "./registry-DvAUVLHh.js";
10
+ const D = {
11
11
  id: "practice-profile-hero",
12
12
  // Purely observable hero region — no interactive affordances and no
13
13
  // imperative actions on the handle (getName / getHasCover are read-only
@@ -40,7 +40,7 @@ const $ = {
40
40
  description: "Sourced from the id prop."
41
41
  }
42
42
  }
43
- }, q = M("ds:w-full ds:text-[color:var(--foreground)]", {
43
+ }, G = F("ds:w-full ds:text-[color:var(--foreground)]", {
44
44
  variants: {
45
45
  // Matches the kit's other `surface` props (Booking, ReviewsPanel,
46
46
  // OperatorHero). `'elevated'` wraps in `<Card>`.
@@ -52,54 +52,55 @@ const $ = {
52
52
  defaultVariants: {
53
53
  surface: "elevated"
54
54
  }
55
- }), D = A(
55
+ }), J = S(
56
56
  ({
57
57
  name: a,
58
- tagline: p,
59
- imageUrl: u,
58
+ tagline: f,
59
+ imageUrl: n,
60
+ imageAlt: l,
60
61
  coverImageUrl: r,
61
- rating: n,
62
- badges: l,
63
- actionSlot: f,
64
- surface: m = "elevated",
65
- "aria-label": v,
66
- id: c,
67
- className: H,
68
- ...C
69
- }, k) => {
70
- const h = B(), [d, g] = z(null), x = r && (d == null ? void 0 : d.url) === r ? d.status : "loading";
71
- S(() => {
62
+ rating: c,
63
+ badges: p,
64
+ actionSlot: m,
65
+ surface: v = "elevated",
66
+ "aria-label": h,
67
+ id: u,
68
+ className: k,
69
+ ...R
70
+ }, j) => {
71
+ const g = A(), [i, x] = E(null), y = r && (i == null ? void 0 : i.url) === r ? i.status : "loading";
72
+ K(() => {
72
73
  if (!r || typeof Image > "u") return;
73
74
  let s = !0;
74
75
  const o = new Image();
75
76
  return o.onload = () => {
76
- s && g({ url: r, status: "loaded" });
77
+ s && x({ url: r, status: "loaded" });
77
78
  }, o.onerror = () => {
78
- s && g({ url: r, status: "error" });
79
+ s && x({ url: r, status: "error" });
79
80
  }, o.src = r, () => {
80
81
  s = !1, o.onload = null, o.onerror = null;
81
82
  };
82
83
  }, [r]);
83
- const t = !!r && x !== "error", R = E(
84
+ const t = !!r && y !== "error", B = M(
84
85
  () => ({ getName: () => a, getHasCover: () => t }),
85
86
  [a, t]
86
87
  );
87
- W($, R, c);
88
- const y = K(null);
89
- L(() => {
90
- const s = y.current;
88
+ q(D, B, u);
89
+ const N = V(null);
90
+ $(() => {
91
+ const s = N.current;
91
92
  s && (r ? s.style.setProperty(
92
93
  "--practice-profile-hero-cover",
93
94
  `url("${r.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}")`
94
95
  ) : s.style.removeProperty("--practice-profile-hero-cover"));
95
96
  }, [r, t]);
96
- const N = t ? /* @__PURE__ */ e(
97
+ const P = t ? /* @__PURE__ */ e(
97
98
  "div",
98
99
  {
99
- ref: y,
100
+ ref: N,
100
101
  "aria-hidden": "true",
101
102
  "data-slot": "cover",
102
- "data-state": x,
103
+ "data-state": y,
103
104
  className: [
104
105
  "ds:h-32 ds:sm:h-40 ds:w-full",
105
106
  // Cover image layered over the brand gradient — the gradient is
@@ -111,7 +112,7 @@ const $ = {
111
112
  "ds:bg-cover ds:bg-center"
112
113
  ].join(" ")
113
114
  }
114
- ) : null, P = /* @__PURE__ */ i(
115
+ ) : null, H = !(n && l), b = /* @__PURE__ */ d(
115
116
  "div",
116
117
  {
117
118
  className: [
@@ -123,74 +124,76 @@ const $ = {
123
124
  ].join(" "),
124
125
  children: [
125
126
  /* @__PURE__ */ e("div", { className: "ds:shrink-0 ds:sm:hidden", children: /* @__PURE__ */ e(
126
- b,
127
+ w,
127
128
  {
128
129
  size: "xl",
129
130
  shape: "rounded",
130
131
  ratio: "4:3",
131
132
  name: a,
132
- src: u,
133
- "aria-hidden": "true"
133
+ src: n,
134
+ alt: l,
135
+ "aria-hidden": H ? "true" : void 0
134
136
  }
135
137
  ) }),
136
138
  /* @__PURE__ */ e("div", { className: "ds:hidden ds:shrink-0 ds:sm:block", children: /* @__PURE__ */ e(
137
- b,
139
+ w,
138
140
  {
139
141
  size: "3xl",
140
142
  shape: "rounded",
141
143
  ratio: "4:3",
142
144
  name: a,
143
- src: u,
144
- "aria-hidden": "true"
145
+ src: n,
146
+ alt: l,
147
+ "aria-hidden": H ? "true" : void 0
145
148
  }
146
149
  ) }),
147
- /* @__PURE__ */ i("div", { className: "ds:flex ds:w-full ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
148
- /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-wrap ds:items-start ds:gap-[var(--spacing-md)]", children: [
150
+ /* @__PURE__ */ d("div", { className: "ds:flex ds:w-full ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
151
+ /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-wrap ds:items-start ds:gap-[var(--spacing-md)]", children: [
149
152
  /* @__PURE__ */ e(
150
153
  "h1",
151
154
  {
152
- id: h,
155
+ id: g,
153
156
  dir: "auto",
154
157
  className: "type-title-page ds:m-0 ds:text-[color:var(--foreground)]",
155
158
  children: a
156
159
  }
157
160
  ),
158
- f ? (
161
+ m ? (
159
162
  // `ms-auto` + `shrink-0` are the desktop contract, and both are
160
163
  // wrong once the row wraps on a phone: they stranded the action
161
164
  // at the inline-end of a start-aligned stack and stopped a wide
162
165
  // control fitting the column. Hence `sm:` and up only.
163
- /* @__PURE__ */ e("div", { className: "ds:flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-xs)] ds:sm:ms-auto ds:sm:shrink-0", children: f })
166
+ /* @__PURE__ */ e("div", { className: "ds:flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-xs)] ds:sm:ms-auto ds:sm:shrink-0", children: m })
164
167
  ) : null
165
168
  ] }),
166
- p ? /* @__PURE__ */ e(
169
+ f ? /* @__PURE__ */ e(
167
170
  "p",
168
171
  {
169
172
  dir: "auto",
170
173
  className: "type-body ds:m-0 ds:text-[color:var(--foreground)]",
171
- children: p
174
+ children: f
172
175
  }
173
176
  ) : null,
174
- n ? (
177
+ c ? (
175
178
  // Rating owns the whole line: locale-formatted value, plural-
176
179
  // aware review count, and a single role="img" announcement.
177
180
  /* @__PURE__ */ e(
178
- F,
181
+ W,
179
182
  {
180
- value: n.value,
183
+ value: c.value,
181
184
  max: 5,
182
185
  size: "md",
183
- reviews: { count: n.count }
186
+ reviews: { count: c.count }
184
187
  }
185
188
  )
186
189
  ) : null,
187
- l && l.length > 0 ? /* @__PURE__ */ e(
190
+ p && p.length > 0 ? /* @__PURE__ */ e(
188
191
  "div",
189
192
  {
190
193
  role: "list",
191
194
  className: "ds:mt-[var(--spacing-2xs)] ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-2xs)]",
192
- children: l.map((s) => /* @__PURE__ */ e(
193
- V,
195
+ children: p.map((s) => /* @__PURE__ */ e(
196
+ L,
194
197
  {
195
198
  variant: s.variant ?? "neutral",
196
199
  role: "listitem",
@@ -207,30 +210,30 @@ const $ = {
207
210
  return /* @__PURE__ */ e(
208
211
  "div",
209
212
  {
210
- ref: k,
213
+ ref: j,
211
214
  role: "region",
212
- "aria-label": v,
213
- "aria-labelledby": v ? void 0 : h,
215
+ "aria-label": h,
216
+ "aria-labelledby": h ? void 0 : g,
214
217
  "data-component": "practice-profile-hero",
215
- "data-component-id": c,
218
+ "data-component-id": u,
216
219
  "data-has-cover": t ? "true" : "false",
217
- id: c,
218
- className: q({ surface: m, className: H }),
219
- ...C,
220
- children: m === "elevated" ? /* @__PURE__ */ i(w, { variant: "elevated", children: [
221
- N,
222
- /* @__PURE__ */ e(w.Body, { children: P })
223
- ] }) : /* @__PURE__ */ i(j, { children: [
224
- N,
225
- /* @__PURE__ */ e("div", { className: "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]", children: P })
220
+ id: u,
221
+ className: G({ surface: v, className: k }),
222
+ ...R,
223
+ children: v === "elevated" ? /* @__PURE__ */ d(C, { variant: "elevated", children: [
224
+ P,
225
+ /* @__PURE__ */ e(C.Body, { children: b })
226
+ ] }) : /* @__PURE__ */ d(z, { children: [
227
+ P,
228
+ /* @__PURE__ */ e("div", { className: "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]", children: b })
226
229
  ] })
227
230
  }
228
231
  );
229
232
  }
230
233
  );
231
- D.displayName = "PracticeProfileHero";
234
+ J.displayName = "PracticeProfileHero";
232
235
  export {
233
- D as P,
234
- $ as p
236
+ J as P,
237
+ D as p
235
238
  };
236
- //# sourceMappingURL=practice-profile-hero-qfrsFQI_.js.map
239
+ //# sourceMappingURL=practice-profile-hero-ClzE-4CB.js.map