@alfadocs/ui-kit-debug 1.3.13 → 1.4.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 (348) hide show
  1. package/dist/_chunks/agenda-card.agent-Cb5tuEh3.js +28 -0
  2. package/dist/_chunks/agenda-card.agent-Cb5tuEh3.js.map +1 -0
  3. package/dist/_chunks/{alia-sidebar-DzNz1gDf.js → alia-sidebar-DSBZMick.js} +3 -3
  4. package/dist/_chunks/{alia-sidebar-DzNz1gDf.js.map → alia-sidebar-DSBZMick.js.map} +1 -1
  5. package/dist/_chunks/{anamnesis-i18n-CfC0qYzy.js → anamnesis-i18n-BA631X4t.js} +2209 -2144
  6. package/dist/_chunks/anamnesis-i18n-BA631X4t.js.map +1 -0
  7. package/dist/_chunks/{antenatal-schedule-timeline-BMMpi2lb.js → antenatal-schedule-timeline-u8TsS2QJ.js} +27 -26
  8. package/dist/_chunks/{antenatal-schedule-timeline-BMMpi2lb.js.map → antenatal-schedule-timeline-u8TsS2QJ.js.map} +1 -1
  9. package/dist/_chunks/{appointment-timeline-B630OT_J.js → appointment-timeline-Bqf1sTU5.js} +2 -2
  10. package/dist/_chunks/{appointment-timeline-B630OT_J.js.map → appointment-timeline-Bqf1sTU5.js.map} +1 -1
  11. package/dist/_chunks/{ar-THMLfSoN.js → ar-BR1FGFP2.js} +14 -14
  12. package/dist/_chunks/{ar-THMLfSoN.js.map → ar-BR1FGFP2.js.map} +1 -1
  13. package/dist/_chunks/{bmi-calculator-CM0-G2mg.js → bmi-calculator-CpyY13MV.js} +2 -2
  14. package/dist/_chunks/{bmi-calculator-CM0-G2mg.js.map → bmi-calculator-CpyY13MV.js.map} +1 -1
  15. package/dist/_chunks/{booking-DjNbd7C1.js → booking-BjsA7j1-.js} +699 -688
  16. package/dist/_chunks/booking-BjsA7j1-.js.map +1 -0
  17. package/dist/_chunks/calculator-dialog-12d3Sxaz.js +48 -0
  18. package/dist/_chunks/{calculator-dialog-DuXMQSdm.js.map → calculator-dialog-12d3Sxaz.js.map} +1 -1
  19. package/dist/_chunks/{care-plan-card-1G_f4I5s.js → care-plan-card-BvQy366X.js} +3 -3
  20. package/dist/_chunks/{care-plan-card-1G_f4I5s.js.map → care-plan-card-BvQy366X.js.map} +1 -1
  21. package/dist/_chunks/{care-plan-entry-card-DmBsffHS.js → care-plan-entry-card-apk_5B3O.js} +2 -2
  22. package/dist/_chunks/{care-plan-entry-card-DmBsffHS.js.map → care-plan-entry-card-apk_5B3O.js.map} +1 -1
  23. package/dist/_chunks/{chat-container-HlFnoEIl.js → chat-container-CYYego1W.js} +105 -81
  24. package/dist/_chunks/chat-container-CYYego1W.js.map +1 -0
  25. package/dist/_chunks/cycle-calculator-B7fyH-h4.js +425 -0
  26. package/dist/_chunks/cycle-calculator-B7fyH-h4.js.map +1 -0
  27. package/dist/_chunks/{date-picker-ZHejTVAJ.js → date-picker-Bp64zk2p.js} +19 -19
  28. package/dist/_chunks/{date-picker-ZHejTVAJ.js.map → date-picker-Bp64zk2p.js.map} +1 -1
  29. package/dist/_chunks/date-picker-variants-pKAJfnWr.js +2089 -0
  30. package/dist/_chunks/date-picker-variants-pKAJfnWr.js.map +1 -0
  31. package/dist/_chunks/{date-range-picker-pEG3Ln3i.js → date-range-picker-CDrZ8Zh0.js} +27 -27
  32. package/dist/_chunks/{date-range-picker-pEG3Ln3i.js.map → date-range-picker-CDrZ8Zh0.js.map} +1 -1
  33. package/dist/_chunks/{date-time-picker-695QvBGj.js → date-time-picker-DafkGDGO.js} +10 -10
  34. package/dist/_chunks/{date-time-picker-695QvBGj.js.map → date-time-picker-DafkGDGO.js.map} +1 -1
  35. package/dist/_chunks/{de-DmZ-8rTN.js → de-3iM4rGqo.js} +7 -7
  36. package/dist/_chunks/{de-DmZ-8rTN.js.map → de-3iM4rGqo.js.map} +1 -1
  37. package/dist/_chunks/{document-preview-D3gg4MXB.js → document-preview-DOrsqiN1.js} +2 -2
  38. package/dist/_chunks/{document-preview-D3gg4MXB.js.map → document-preview-DOrsqiN1.js.map} +1 -1
  39. package/dist/_chunks/due-date-calculator-CnkbbAej.js +571 -0
  40. package/dist/_chunks/due-date-calculator-CnkbbAej.js.map +1 -0
  41. package/dist/_chunks/{editor-overlay-DE3esyio.js → editor-overlay-B1tr2i7B.js} +22 -21
  42. package/dist/_chunks/editor-overlay-B1tr2i7B.js.map +1 -0
  43. package/dist/_chunks/{el-Bela9mxs.js → el-C96rGJvU.js} +2 -2
  44. package/dist/_chunks/{el-Bela9mxs.js.map → el-C96rGJvU.js.map} +1 -1
  45. package/dist/_chunks/{es-BNncHKex.js → es-Cxiqjx8r.js} +12 -12
  46. package/dist/_chunks/{es-BNncHKex.js.map → es-Cxiqjx8r.js.map} +1 -1
  47. package/dist/_chunks/fetal-weight-avlj-l-S.js +223 -0
  48. package/dist/_chunks/fetal-weight-avlj-l-S.js.map +1 -0
  49. package/dist/_chunks/format-4HNwNGrN.js +1315 -0
  50. package/dist/_chunks/format-4HNwNGrN.js.map +1 -0
  51. package/dist/_chunks/{fr-CH8ADfhN.js → fr-Bhr6SYKj.js} +21 -21
  52. package/dist/_chunks/{fr-CH8ADfhN.js.map → fr-Bhr6SYKj.js.map} +1 -1
  53. package/dist/_chunks/{freemium-paywall-C_Ue6wxU.js → freemium-paywall-DRDdWuOg.js} +3 -3
  54. package/dist/_chunks/{freemium-paywall-C_Ue6wxU.js.map → freemium-paywall-DRDdWuOg.js.map} +1 -1
  55. package/dist/_chunks/gestational-age-calculator-BljY_DVJ.js +488 -0
  56. package/dist/_chunks/gestational-age-calculator-BljY_DVJ.js.map +1 -0
  57. package/dist/_chunks/hcg-doubling-Cv_vH61p.js +312 -0
  58. package/dist/_chunks/hcg-doubling-Cv_vH61p.js.map +1 -0
  59. package/dist/_chunks/header-settings-Cn5fPXCE.js +335 -0
  60. package/dist/_chunks/header-settings-Cn5fPXCE.js.map +1 -0
  61. package/dist/_chunks/{hi-Bppfxp8l.js → hi-BxXX26d_.js} +12 -12
  62. package/dist/_chunks/{hi-Bppfxp8l.js.map → hi-BxXX26d_.js.map} +1 -1
  63. package/dist/_chunks/isSameWeek-B73MagWB.js +13 -0
  64. package/dist/_chunks/{isSameWeek-CK4HS9lH.js.map → isSameWeek-B73MagWB.js.map} +1 -1
  65. package/dist/_chunks/{it-B4ySaRyK.js → it-Xmjomvyj.js} +24 -24
  66. package/dist/_chunks/{it-B4ySaRyK.js.map → it-Xmjomvyj.js.map} +1 -1
  67. package/dist/_chunks/{ja-CGF6Io9P.js → ja-mfZvt1ZV.js} +16 -16
  68. package/dist/_chunks/{ja-CGF6Io9P.js.map → ja-mfZvt1ZV.js.map} +1 -1
  69. package/dist/_chunks/{link-cell-renderer-C5XLwVXQ.js → link-cell-renderer-CJ_gk7gl.js} +3 -3
  70. package/dist/_chunks/{link-cell-renderer-C5XLwVXQ.js.map → link-cell-renderer-CJ_gk7gl.js.map} +1 -1
  71. package/dist/_chunks/{locale-picker-BfBUdT1m.js → locale-picker-D9Kv2zrK.js} +153 -132
  72. package/dist/_chunks/locale-picker-D9Kv2zrK.js.map +1 -0
  73. package/dist/_chunks/map-view-2yZCQW2l.js +445 -0
  74. package/dist/_chunks/map-view-2yZCQW2l.js.map +1 -0
  75. package/dist/_chunks/{marketplace-app-shell-DwcFMxzp.js → marketplace-app-shell-BLRvg-M0.js} +49 -40
  76. package/dist/_chunks/marketplace-app-shell-BLRvg-M0.js.map +1 -0
  77. package/dist/_chunks/{nl-DuShqwuV.js → nl-DDs-KEnD.js} +15 -15
  78. package/dist/_chunks/{nl-DuShqwuV.js.map → nl-DDs-KEnD.js.map} +1 -1
  79. package/dist/_chunks/{notes-panel-DPsgB4Mv.js → notes-panel-CiFN3sLW.js} +2 -2
  80. package/dist/_chunks/{notes-panel-DPsgB4Mv.js.map → notes-panel-CiFN3sLW.js.map} +1 -1
  81. package/dist/_chunks/{number-input-DrozbZAU.js → number-input-DOe5VYei.js} +64 -64
  82. package/dist/_chunks/number-input-DOe5VYei.js.map +1 -0
  83. package/dist/_chunks/{optical-prescription-BDHJr8Zz.js → optical-prescription-CRemE8fL.js} +2 -2
  84. package/dist/_chunks/{optical-prescription-BDHJr8Zz.js.map → optical-prescription-CRemE8fL.js.map} +1 -1
  85. package/dist/_chunks/{parse-DvA97ro9.js → parse-JqixfsU0.js} +43 -43
  86. package/dist/_chunks/{parse-DvA97ro9.js.map → parse-JqixfsU0.js.map} +1 -1
  87. package/dist/_chunks/parseISO-fOGpHKXm.js +120 -0
  88. package/dist/_chunks/parseISO-fOGpHKXm.js.map +1 -0
  89. package/dist/_chunks/{patient-details-DqjjwPmt.js → patient-details-CpunD0qx.js} +3 -3
  90. package/dist/_chunks/{patient-details-DqjjwPmt.js.map → patient-details-CpunD0qx.js.map} +1 -1
  91. package/dist/_chunks/{patient-table-BmIDrLIS.js → patient-table-2eWx-Rrk.js} +2 -2
  92. package/dist/_chunks/{patient-table-BmIDrLIS.js.map → patient-table-2eWx-Rrk.js.map} +1 -1
  93. package/dist/_chunks/{payment-form-h-BZ8onk.js → payment-form-Ds1I9KqB.js} +308 -231
  94. package/dist/_chunks/payment-form-Ds1I9KqB.js.map +1 -0
  95. package/dist/_chunks/{pdf-viewer-Ddx-T053.js → pdf-viewer-DUIsV9s5.js} +429 -369
  96. package/dist/_chunks/pdf-viewer-DUIsV9s5.js.map +1 -0
  97. package/dist/_chunks/{pl-CKQwX9Fk.js → pl-BYYMnEWP.js} +18 -18
  98. package/dist/_chunks/{pl-CKQwX9Fk.js.map → pl-BYYMnEWP.js.map} +1 -1
  99. package/dist/_chunks/{practice-results-B-HPc13W.js → practice-results-SjCniMd2.js} +2 -2
  100. package/dist/_chunks/{practice-results-B-HPc13W.js.map → practice-results-SjCniMd2.js.map} +1 -1
  101. package/dist/_chunks/pregnancy-dating-BmpHScZ0.js +770 -0
  102. package/dist/_chunks/pregnancy-dating-BmpHScZ0.js.map +1 -0
  103. package/dist/_chunks/pregnancy-weight-gain-B5KSJzdc.js +553 -0
  104. package/dist/_chunks/pregnancy-weight-gain-B5KSJzdc.js.map +1 -0
  105. package/dist/_chunks/progress-CK8otcQ-.js +343 -0
  106. package/dist/_chunks/progress-CK8otcQ-.js.map +1 -0
  107. package/dist/_chunks/{pt-_njpXyOZ.js → pt-BSPnVrQ7.js} +20 -20
  108. package/dist/_chunks/{pt-_njpXyOZ.js.map → pt-BSPnVrQ7.js.map} +1 -1
  109. package/dist/_chunks/{radiograph-panel.agent-BQZ64Riy.js → radiograph-panel.agent-CtFtNMzk.js} +3 -3
  110. package/dist/_chunks/{radiograph-panel.agent-BQZ64Riy.js.map → radiograph-panel.agent-CtFtNMzk.js.map} +1 -1
  111. package/dist/_chunks/{rich-text-editor-CfeXPPWs.js → rich-text-editor-BedTpWzL.js} +2 -2
  112. package/dist/_chunks/{rich-text-editor-CfeXPPWs.js.map → rich-text-editor-BedTpWzL.js.map} +1 -1
  113. package/dist/_chunks/{ro-3X6_4FcN.js → ro-BbiylGmG.js} +14 -14
  114. package/dist/_chunks/{ro-3X6_4FcN.js.map → ro-BbiylGmG.js.map} +1 -1
  115. package/dist/_chunks/{ru-bAcgmnS-.js → ru-BX_qsV67.js} +14 -14
  116. package/dist/_chunks/{ru-bAcgmnS-.js.map → ru-BX_qsV67.js.map} +1 -1
  117. package/dist/_chunks/{session-countdown-Bc70VXN1.js → session-countdown-BL-Psg8u.js} +2 -2
  118. package/dist/_chunks/{session-countdown-Bc70VXN1.js.map → session-countdown-BL-Psg8u.js.map} +1 -1
  119. package/dist/_chunks/{sign-document-CW_ByDUh.js → sign-document-jF4fZDJ5.js} +2 -2
  120. package/dist/_chunks/{sign-document-CW_ByDUh.js.map → sign-document-jF4fZDJ5.js.map} +1 -1
  121. package/dist/_chunks/slot-grid-DNiUcXy2.js +640 -0
  122. package/dist/_chunks/slot-grid-DNiUcXy2.js.map +1 -0
  123. package/dist/_chunks/{sparkline-BTY4B5tv.js → sparkline-BmGcEyZO.js} +209 -164
  124. package/dist/_chunks/sparkline-BmGcEyZO.js.map +1 -0
  125. package/dist/_chunks/{sq-jYFqr4Ga.js → sq-i9UOk4P7.js} +10 -10
  126. package/dist/_chunks/{sq-jYFqr4Ga.js.map → sq-i9UOk4P7.js.map} +1 -1
  127. package/dist/_chunks/subDays-CAUv47M1.js +8 -0
  128. package/dist/_chunks/{subDays-BcNi04uf.js.map → subDays-CAUv47M1.js.map} +1 -1
  129. package/dist/_chunks/{sv-BSGEJ-8B.js → sv-CpTdtmDQ.js} +8 -8
  130. package/dist/_chunks/{sv-BSGEJ-8B.js.map → sv-CpTdtmDQ.js.map} +1 -1
  131. package/dist/_chunks/{tab-bar-Axhk6xzx.js → tab-bar-BYESZINM.js} +83 -77
  132. package/dist/_chunks/tab-bar-BYESZINM.js.map +1 -0
  133. package/dist/_chunks/task-card.agent-CF2N_uu4.js +29 -0
  134. package/dist/_chunks/task-card.agent-CF2N_uu4.js.map +1 -0
  135. package/dist/_chunks/{tr-CTpgUtw6.js → tr-DXG2QN1K.js} +17 -17
  136. package/dist/_chunks/{tr-CTpgUtw6.js.map → tr-DXG2QN1K.js.map} +1 -1
  137. package/dist/_chunks/{unit-converter-COgkN7YP.js → unit-converter-CHPDuV7W.js} +2 -2
  138. package/dist/_chunks/{unit-converter-COgkN7YP.js.map → unit-converter-CHPDuV7W.js.map} +1 -1
  139. package/dist/_chunks/{warning-stack-BtjmJChC.js → warning-stack-B7t_8jRE.js} +42 -37
  140. package/dist/_chunks/{warning-stack-BtjmJChC.js.map → warning-stack-B7t_8jRE.js.map} +1 -1
  141. package/dist/_chunks/{zh-CN-BgM0Io2O.js → zh-CN-vPkPEK6H.js} +18 -18
  142. package/dist/_chunks/{zh-CN-BgM0Io2O.js.map → zh-CN-vPkPEK6H.js.map} +1 -1
  143. package/dist/agent-catalog.json +6426 -3382
  144. package/dist/agent-i18n/en.json +234 -15
  145. package/dist/components/agenda-card/agenda-card.agent.d.ts.map +1 -1
  146. package/dist/components/agenda-card/index.js +1 -1
  147. package/dist/components/appointment-timeline/index.js +1 -1
  148. package/dist/components/bmi-calculator/index.js +1 -1
  149. package/dist/components/booking/booking.d.ts.map +1 -1
  150. package/dist/components/booking/index.js +1 -1
  151. package/dist/components/calculator-dialog/calculator-dialog.d.ts.map +1 -1
  152. package/dist/components/calculator-dialog/index.js +1 -1
  153. package/dist/components/care-plan-card/index.js +1 -1
  154. package/dist/components/care-plan-entry-card/index.js +1 -1
  155. package/dist/components/chat-container/chat-container.agent.d.ts.map +1 -1
  156. package/dist/components/chat-container/chat-container.d.ts +14 -0
  157. package/dist/components/chat-container/chat-container.d.ts.map +1 -1
  158. package/dist/components/chat-container/index.js +1 -1
  159. package/dist/components/cycle-calculator/cycle-calculator.agent.d.ts +4 -0
  160. package/dist/components/cycle-calculator/cycle-calculator.agent.d.ts.map +1 -0
  161. package/dist/components/cycle-calculator/cycle-calculator.d.ts +42 -0
  162. package/dist/components/cycle-calculator/cycle-calculator.d.ts.map +1 -1
  163. package/dist/components/cycle-calculator/index.d.ts +1 -1
  164. package/dist/components/cycle-calculator/index.d.ts.map +1 -1
  165. package/dist/components/cycle-calculator/index.js +1 -1
  166. package/dist/components/data-table/index.js +1 -1
  167. package/dist/components/date-picker/index.js +1 -1
  168. package/dist/components/date-range-picker/index.js +1 -1
  169. package/dist/components/date-time-picker/index.js +1 -1
  170. package/dist/components/document-preview/index.js +1 -1
  171. package/dist/components/due-date-calculator/due-date-calculator.agent.d.ts +4 -0
  172. package/dist/components/due-date-calculator/due-date-calculator.agent.d.ts.map +1 -0
  173. package/dist/components/due-date-calculator/due-date-calculator.d.ts +61 -1
  174. package/dist/components/due-date-calculator/due-date-calculator.d.ts.map +1 -1
  175. package/dist/components/due-date-calculator/index.d.ts +1 -1
  176. package/dist/components/due-date-calculator/index.d.ts.map +1 -1
  177. package/dist/components/due-date-calculator/index.js +2 -2
  178. package/dist/components/editor-overlay/editor-overlay.d.ts +7 -1
  179. package/dist/components/editor-overlay/editor-overlay.d.ts.map +1 -1
  180. package/dist/components/editor-overlay/index.js +1 -1
  181. package/dist/components/fetal-weight/fetal-weight.agent.d.ts +4 -0
  182. package/dist/components/fetal-weight/fetal-weight.agent.d.ts.map +1 -0
  183. package/dist/components/fetal-weight/fetal-weight.d.ts +26 -0
  184. package/dist/components/fetal-weight/fetal-weight.d.ts.map +1 -1
  185. package/dist/components/fetal-weight/index.d.ts +1 -1
  186. package/dist/components/fetal-weight/index.d.ts.map +1 -1
  187. package/dist/components/fetal-weight/index.js +1 -1
  188. package/dist/components/freemium-paywall/index.js +1 -1
  189. package/dist/components/gestational-age-calculator/gestational-age-calculator.agent.d.ts +4 -0
  190. package/dist/components/gestational-age-calculator/gestational-age-calculator.agent.d.ts.map +1 -0
  191. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +44 -2
  192. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts.map +1 -1
  193. package/dist/components/gestational-age-calculator/index.d.ts +1 -1
  194. package/dist/components/gestational-age-calculator/index.d.ts.map +1 -1
  195. package/dist/components/gestational-age-calculator/index.js +1 -1
  196. package/dist/components/hcg-doubling/hcg-doubling.agent.d.ts +4 -0
  197. package/dist/components/hcg-doubling/hcg-doubling.agent.d.ts.map +1 -0
  198. package/dist/components/hcg-doubling/hcg-doubling.d.ts +30 -0
  199. package/dist/components/hcg-doubling/hcg-doubling.d.ts.map +1 -1
  200. package/dist/components/hcg-doubling/index.d.ts +1 -1
  201. package/dist/components/hcg-doubling/index.d.ts.map +1 -1
  202. package/dist/components/hcg-doubling/index.js +1 -1
  203. package/dist/components/header-settings/header-settings.agent.d.ts.map +1 -1
  204. package/dist/components/header-settings/header-settings.d.ts +13 -1
  205. package/dist/components/header-settings/header-settings.d.ts.map +1 -1
  206. package/dist/components/header-settings/index.js +1 -1
  207. package/dist/components/locale-picker/index.js +1 -1
  208. package/dist/components/locale-picker/locale-picker.agent.d.ts.map +1 -1
  209. package/dist/components/locale-picker/locale-picker.d.ts +9 -0
  210. package/dist/components/locale-picker/locale-picker.d.ts.map +1 -1
  211. package/dist/components/map-view/index.js +1 -1
  212. package/dist/components/map-view/map-view.agent.d.ts.map +1 -1
  213. package/dist/components/map-view/map-view.d.ts +22 -0
  214. package/dist/components/map-view/map-view.d.ts.map +1 -1
  215. package/dist/components/notes-panel/index.js +1 -1
  216. package/dist/components/number-input/index.js +1 -1
  217. package/dist/components/number-input/number-input.d.ts +2 -1
  218. package/dist/components/number-input/number-input.d.ts.map +1 -1
  219. package/dist/components/optical-prescription/index.js +1 -1
  220. package/dist/components/patient-details/index.js +1 -1
  221. package/dist/components/patient-table/index.js +1 -1
  222. package/dist/components/payment-form/index.d.ts +1 -1
  223. package/dist/components/payment-form/index.d.ts.map +1 -1
  224. package/dist/components/payment-form/index.js +1 -1
  225. package/dist/components/payment-form/payment-form.agent.d.ts.map +1 -1
  226. package/dist/components/payment-form/payment-form.d.ts +32 -1
  227. package/dist/components/payment-form/payment-form.d.ts.map +1 -1
  228. package/dist/components/pdf-viewer/index.js +1 -1
  229. package/dist/components/pdf-viewer/pdf-viewer.agent.d.ts.map +1 -1
  230. package/dist/components/pdf-viewer/pdf-viewer.d.ts +13 -0
  231. package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
  232. package/dist/components/practice-results/index.js +1 -1
  233. package/dist/components/pregnancy-dating/index.d.ts +1 -1
  234. package/dist/components/pregnancy-dating/index.d.ts.map +1 -1
  235. package/dist/components/pregnancy-dating/index.js +1 -1
  236. package/dist/components/pregnancy-dating/pregnancy-dating.agent.d.ts +4 -0
  237. package/dist/components/pregnancy-dating/pregnancy-dating.agent.d.ts.map +1 -0
  238. package/dist/components/pregnancy-dating/pregnancy-dating.d.ts +65 -1
  239. package/dist/components/pregnancy-dating/pregnancy-dating.d.ts.map +1 -1
  240. package/dist/components/pregnancy-weight-gain/index.d.ts +2 -1
  241. package/dist/components/pregnancy-weight-gain/index.d.ts.map +1 -1
  242. package/dist/components/pregnancy-weight-gain/index.js +6 -5
  243. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.agent.d.ts +4 -0
  244. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.agent.d.ts.map +1 -0
  245. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +35 -0
  246. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts.map +1 -1
  247. package/dist/components/progress/index.js +1 -1
  248. package/dist/components/progress/progress.agent.d.ts.map +1 -1
  249. package/dist/components/progress/progress.d.ts +13 -0
  250. package/dist/components/progress/progress.d.ts.map +1 -1
  251. package/dist/components/radiograph-panel/index.js +1 -1
  252. package/dist/components/rich-text-editor/index.js +1 -1
  253. package/dist/components/session-countdown/index.js +1 -1
  254. package/dist/components/sign-document/index.js +1 -1
  255. package/dist/components/slot-grid/index.d.ts +2 -1
  256. package/dist/components/slot-grid/index.d.ts.map +1 -1
  257. package/dist/components/slot-grid/index.js +5 -4
  258. package/dist/components/slot-grid/slot-grid.agent.d.ts +4 -0
  259. package/dist/components/slot-grid/slot-grid.agent.d.ts.map +1 -0
  260. package/dist/components/slot-grid/slot-grid.d.ts +34 -0
  261. package/dist/components/slot-grid/slot-grid.d.ts.map +1 -1
  262. package/dist/components/sparkline/index.js +1 -1
  263. package/dist/components/sparkline/sparkline.agent.d.ts.map +1 -1
  264. package/dist/components/sparkline/sparkline.d.ts +10 -0
  265. package/dist/components/sparkline/sparkline.d.ts.map +1 -1
  266. package/dist/components/tab-bar/index.js +1 -1
  267. package/dist/components/tab-bar/tab-bar.d.ts +13 -0
  268. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  269. package/dist/components/task-card/index.js +1 -1
  270. package/dist/components/task-card/task-card.agent.d.ts.map +1 -1
  271. package/dist/components/unit-converter/index.js +1 -1
  272. package/dist/components/warning-stack/index.js +1 -1
  273. package/dist/components/warning-stack/warning-stack.d.ts.map +1 -1
  274. package/dist/index.js +630 -627
  275. package/dist/patterns/alia-assistant/index.js +1 -1
  276. package/dist/patterns/anamnesis/anamnesis-compare-panel.d.ts.map +1 -1
  277. package/dist/patterns/anamnesis/anamnesis-compile.d.ts.map +1 -1
  278. package/dist/patterns/anamnesis/anamnesis-derive.d.ts +27 -8
  279. package/dist/patterns/anamnesis/anamnesis-derive.d.ts.map +1 -1
  280. package/dist/patterns/anamnesis/anamnesis-evolution-grid.d.ts.map +1 -1
  281. package/dist/patterns/anamnesis/anamnesis-field.d.ts.map +1 -1
  282. package/dist/patterns/anamnesis/anamnesis-format.d.ts +11 -3
  283. package/dist/patterns/anamnesis/anamnesis-format.d.ts.map +1 -1
  284. package/dist/patterns/anamnesis/anamnesis-highlight.d.ts +6 -0
  285. package/dist/patterns/anamnesis/anamnesis-highlight.d.ts.map +1 -0
  286. package/dist/patterns/anamnesis/anamnesis-intake.d.ts.map +1 -1
  287. package/dist/patterns/anamnesis/anamnesis-matrix.d.ts.map +1 -1
  288. package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts +23 -9
  289. package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts.map +1 -1
  290. package/dist/patterns/anamnesis/anamnesis-readonly.d.ts.map +1 -1
  291. package/dist/patterns/anamnesis/anamnesis-target-strip.d.ts.map +1 -1
  292. package/dist/patterns/anamnesis/anamnesis-types.d.ts +7 -0
  293. package/dist/patterns/anamnesis/anamnesis-types.d.ts.map +1 -1
  294. package/dist/patterns/anamnesis/anamnesis-visit-note.d.ts.map +1 -1
  295. package/dist/patterns/anamnesis/anamnesis.d.ts +16 -7
  296. package/dist/patterns/anamnesis/anamnesis.d.ts.map +1 -1
  297. package/dist/patterns/anamnesis/index.d.ts +3 -2
  298. package/dist/patterns/anamnesis/index.d.ts.map +1 -1
  299. package/dist/patterns/anamnesis/index.js +7 -6
  300. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  301. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +6 -0
  302. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
  303. package/dist/tokens.css +1 -1
  304. package/package.json +1 -1
  305. package/dist/_chunks/agenda-card.agent-mTCrkKSZ.js +0 -27
  306. package/dist/_chunks/agenda-card.agent-mTCrkKSZ.js.map +0 -1
  307. package/dist/_chunks/anamnesis-i18n-CfC0qYzy.js.map +0 -1
  308. package/dist/_chunks/booking-DjNbd7C1.js.map +0 -1
  309. package/dist/_chunks/calculator-dialog-DuXMQSdm.js +0 -40
  310. package/dist/_chunks/chat-container-HlFnoEIl.js.map +0 -1
  311. package/dist/_chunks/cycle-calculator-BwqYVPB4.js +0 -252
  312. package/dist/_chunks/cycle-calculator-BwqYVPB4.js.map +0 -1
  313. package/dist/_chunks/date-picker-variants-eL6HjWvw.js +0 -3363
  314. package/dist/_chunks/date-picker-variants-eL6HjWvw.js.map +0 -1
  315. package/dist/_chunks/due-date-calculator-CwfsFd3T.js +0 -256
  316. package/dist/_chunks/due-date-calculator-CwfsFd3T.js.map +0 -1
  317. package/dist/_chunks/editor-overlay-DE3esyio.js.map +0 -1
  318. package/dist/_chunks/fetal-weight-ePlLjJPc.js +0 -122
  319. package/dist/_chunks/fetal-weight-ePlLjJPc.js.map +0 -1
  320. package/dist/_chunks/gestational-age-calculator-DdgbH69Z.js +0 -311
  321. package/dist/_chunks/gestational-age-calculator-DdgbH69Z.js.map +0 -1
  322. package/dist/_chunks/hcg-doubling-BBqD2wI2.js +0 -170
  323. package/dist/_chunks/hcg-doubling-BBqD2wI2.js.map +0 -1
  324. package/dist/_chunks/header-settings--pjYOe6g.js +0 -284
  325. package/dist/_chunks/header-settings--pjYOe6g.js.map +0 -1
  326. package/dist/_chunks/isSameDay-DUEiAT0G.js +0 -39
  327. package/dist/_chunks/isSameDay-DUEiAT0G.js.map +0 -1
  328. package/dist/_chunks/isSameWeek-CK4HS9lH.js +0 -14
  329. package/dist/_chunks/locale-picker-BfBUdT1m.js.map +0 -1
  330. package/dist/_chunks/map-view-CsaHfoo6.js +0 -378
  331. package/dist/_chunks/map-view-CsaHfoo6.js.map +0 -1
  332. package/dist/_chunks/marketplace-app-shell-DwcFMxzp.js.map +0 -1
  333. package/dist/_chunks/number-input-DrozbZAU.js.map +0 -1
  334. package/dist/_chunks/payment-form-h-BZ8onk.js.map +0 -1
  335. package/dist/_chunks/pdf-viewer-Ddx-T053.js.map +0 -1
  336. package/dist/_chunks/pregnancy-dating-DzYTlBkT.js +0 -421
  337. package/dist/_chunks/pregnancy-dating-DzYTlBkT.js.map +0 -1
  338. package/dist/_chunks/pregnancy-weight-gain-O6J0sUIi.js +0 -322
  339. package/dist/_chunks/pregnancy-weight-gain-O6J0sUIi.js.map +0 -1
  340. package/dist/_chunks/progress-DA413-zn.js +0 -299
  341. package/dist/_chunks/progress-DA413-zn.js.map +0 -1
  342. package/dist/_chunks/slot-grid-CQSULZjd.js +0 -502
  343. package/dist/_chunks/slot-grid-CQSULZjd.js.map +0 -1
  344. package/dist/_chunks/sparkline-BTY4B5tv.js.map +0 -1
  345. package/dist/_chunks/subDays-BcNi04uf.js +0 -8
  346. package/dist/_chunks/tab-bar-Axhk6xzx.js.map +0 -1
  347. package/dist/_chunks/task-card.agent-Bt14CzUd.js +0 -25
  348. package/dist/_chunks/task-card.agent-Bt14CzUd.js.map +0 -1
@@ -1,19 +1,19 @@
1
- import { jsx as t, jsxs as u, Fragment as ie } from "react/jsx-runtime";
2
- import { forwardRef as de, useState as _, useEffect as D, useRef as K, useMemo as G, useImperativeHandle as ce, useId as le, useCallback as me } from "react";
3
- import { c as A } from "./index-D2ZczOXr.js";
4
- import { useTranslation as W } from "react-i18next";
5
- import { S as te } from "./spinner-hbwuKwMf.js";
6
- import { A as ee } from "./alert-CiJT540z.js";
7
- import { loadStripe as ue } from "@stripe/stripe-js";
8
- import { Elements as pe, useStripe as fe, useElements as be, PaymentElement as ye, AddressElement as ge } from "@stripe/react-stripe-js";
9
- import { u as ve } from "./registry-DvAUVLHh.js";
10
- function ne() {
1
+ import { jsx as t, jsxs as g, Fragment as me } from "react/jsx-runtime";
2
+ import { forwardRef as pe, useState as z, useEffect as L, useRef as j, useMemo as X, useImperativeHandle as fe, useId as ye, useCallback as $ } from "react";
3
+ import { c as D } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as Y } from "react-i18next";
5
+ import { S as oe } from "./spinner-hbwuKwMf.js";
6
+ import { A as se } from "./alert-CiJT540z.js";
7
+ import { loadStripe as ge } from "@stripe/stripe-js";
8
+ import { Elements as be, useStripe as ve, useElements as he, PaymentElement as Ie, AddressElement as we } from "@stripe/react-stripe-js";
9
+ import { u as xe } from "./registry-DvAUVLHh.js";
10
+ function ie() {
11
11
  return typeof document < "u" && typeof window < "u";
12
12
  }
13
- function H(r) {
14
- if (!ne())
13
+ function Z(r) {
14
+ if (!ie())
15
15
  return { theme: "stripe" };
16
- const n = r ?? document.documentElement, a = getComputedStyle(n), e = (s) => a.getPropertyValue(s).trim();
16
+ const n = r ?? document.documentElement, a = getComputedStyle(n), e = (o) => a.getPropertyValue(o).trim();
17
17
  return {
18
18
  theme: n.classList.contains("theme-dark") ? "night" : "stripe",
19
19
  variables: {
@@ -91,23 +91,58 @@ function H(r) {
91
91
  }
92
92
  };
93
93
  }
94
- function he(r, n) {
95
- if (!ne()) return () => {
94
+ function Se(r, n) {
95
+ if (!ie()) return () => {
96
96
  };
97
- const a = document.documentElement, e = () => r(H(n)), o = new MutationObserver(e);
98
- o.observe(a, {
97
+ const a = document.documentElement, e = () => r(Z(n)), d = new MutationObserver(e);
98
+ d.observe(a, {
99
99
  attributes: !0,
100
100
  attributeFilter: ["class", "dir", "lang"]
101
101
  });
102
- const s = window.matchMedia("(prefers-color-scheme: dark)"), c = window.matchMedia("(prefers-reduced-motion: reduce)");
103
- return s.addEventListener("change", e), c.addEventListener("change", e), () => {
104
- o.disconnect(), s.removeEventListener("change", e), c.removeEventListener("change", e);
102
+ const o = window.matchMedia("(prefers-color-scheme: dark)"), m = window.matchMedia("(prefers-reduced-motion: reduce)");
103
+ return o.addEventListener("change", e), m.addEventListener("change", e), () => {
104
+ d.disconnect(), o.removeEventListener("change", e), m.removeEventListener("change", e);
105
105
  };
106
106
  }
107
- const we = {
107
+ const ke = {
108
108
  id: "payment-form",
109
109
  capabilities: ["submit"],
110
- state: {},
110
+ // The kit's only destructive + openWorld action that moves real money,
111
+ // so it is also the one that most needs to be verifiable. `submit`
112
+ // resolves once the charge attempt has settled; these four slots are
113
+ // how an agent then tells success from decline from never-fired, and
114
+ // how it recovers the receipt.
115
+ //
116
+ // A9: the PaymentIntent id and the i18n error KEY only. Never card
117
+ // fields (they live in Stripe's cross-origin iframes and never reach
118
+ // this origin), never the translated Stripe message, never
119
+ // `clientSecret`.
120
+ state: {
121
+ status: {
122
+ type: "'idle' | 'processing' | 'succeeded' | 'failed'",
123
+ descriptionKey: "ui.agent.paymentForm.state.status",
124
+ description: "Lifecycle of the current payment attempt. `succeeded` is only reached once Stripe confirmed the PaymentIntent; `failed` covers validation, decline and processor errors alike. Still `idle` after `submit` means the attempt never fired — Stripe had not mounted.",
125
+ read: (r) => r.getStatus()
126
+ },
127
+ complete: {
128
+ type: "boolean",
129
+ descriptionKey: "ui.agent.paymentForm.state.complete",
130
+ description: "True when Stripe reports the payment fields as complete. Read this before `submit` — outside preview mode the submit control is disabled while it is false, so the call will not be accepted.",
131
+ read: (r) => r.isComplete()
132
+ },
133
+ errorKey: {
134
+ type: "string | null",
135
+ descriptionKey: "ui.agent.paymentForm.state.errorKey",
136
+ description: "i18n key of the current error (e.g. `payment.error.cardDeclined`), or null. The key is the structural datum — the translated message is free text and is never exposed.",
137
+ read: (r) => r.getErrorKey()
138
+ },
139
+ paymentIntentId: {
140
+ type: "string | null",
141
+ descriptionKey: "ui.agent.paymentForm.state.paymentIntentId",
142
+ description: "Opaque Stripe PaymentIntent id once a charge succeeded, else null. The receipt — the attribution handle for the money that moved. Never the client secret.",
143
+ read: (r) => r.getPaymentIntentId()
144
+ }
145
+ },
111
146
  actions: {
112
147
  submit: {
113
148
  safety: "destructive",
@@ -116,19 +151,20 @@ const we = {
116
151
  openWorld: !0,
117
152
  returns: "Promise<void>",
118
153
  errors: [
119
- "Validation failed (incomplete or invalid card details).",
120
- "Payment was declined by the processor.",
121
- "Network or processor error during the charge."
154
+ 'Validation failed (incomplete or invalid card details) — `status` is "failed", `errorKey` names which.',
155
+ 'Payment was declined by the processor — `status` is "failed", `errorKey` is `payment.error.cardDeclined`.',
156
+ 'Network or processor error during the charge — `status` is "failed".',
157
+ 'Stripe had not mounted, so nothing was attempted — `status` is still "idle".'
122
158
  ],
123
159
  descriptionKey: "ui.agent.paymentForm.actions.submit",
124
- description: "Submit the payment. Charges the configured payment method — irreversible.",
160
+ description: "Submit the payment. Charges the configured payment method — irreversible. Resolves once the attempt has settled; the outcome is never in the resolved value, so read `status`, then `errorKey` on failure or `paymentIntentId` on success.",
125
161
  invoke: (r) => r.submit()
126
162
  },
127
163
  reset: {
128
164
  safety: "destructive",
129
165
  idempotent: !0,
130
166
  descriptionKey: "ui.agent.paymentForm.actions.reset",
131
- description: "Reset the form to its initial state. Loses any in-progress input.",
167
+ description: 'Reset the form to its initial state. Loses any in-progress input, and discards the previous attempt — `status` returns to "idle" and `errorKey` / `paymentIntentId` to null.',
132
168
  invoke: (r) => {
133
169
  r.reset();
134
170
  }
@@ -142,7 +178,7 @@ const we = {
142
178
  description: "Sourced from the id prop."
143
179
  }
144
180
  }
145
- }, xe = /* @__PURE__ */ new Set([
181
+ }, Ce = /* @__PURE__ */ new Set([
146
182
  "BIF",
147
183
  "CLP",
148
184
  "DJF",
@@ -161,21 +197,21 @@ const we = {
161
197
  "XOF",
162
198
  "XPF"
163
199
  ]);
164
- function O(r, n, a) {
165
- const e = n.toUpperCase(), o = xe.has(e) ? r : r / 100;
200
+ function J(r, n, a) {
201
+ const e = n.toUpperCase(), d = Ce.has(e) ? r : r / 100;
166
202
  try {
167
203
  return new Intl.NumberFormat(a, {
168
204
  style: "currency",
169
205
  currency: e
170
- }).format(o);
206
+ }).format(d);
171
207
  } catch {
172
208
  return new Intl.NumberFormat("en", {
173
209
  style: "currency",
174
210
  currency: e
175
- }).format(o);
211
+ }).format(d);
176
212
  }
177
213
  }
178
- function ke(r) {
214
+ function Ee(r) {
179
215
  if (r === void 0) return null;
180
216
  const n = r.trim();
181
217
  if (n === "" || typeof window > "u") return null;
@@ -186,10 +222,10 @@ function ke(r) {
186
222
  return null;
187
223
  }
188
224
  }
189
- function Ce(r) {
225
+ function Ne(r) {
190
226
  return r && r.replace(/\d{4,}/g, "****");
191
227
  }
192
- function Ee(r) {
228
+ function Fe(r) {
193
229
  switch (r) {
194
230
  case "incorrect_number":
195
231
  case "invalid_number":
@@ -215,7 +251,7 @@ function Ee(r) {
215
251
  return "payment.error.generic";
216
252
  }
217
253
  }
218
- const Ie = A(
254
+ const Pe = D(
219
255
  [
220
256
  "ds:payment-form-alfadocs ds:flex ds:flex-col",
221
257
  "ds:gap-[var(--spacing-md)]",
@@ -225,11 +261,11 @@ const Ie = A(
225
261
  "ds:text-[var(--foreground)]",
226
262
  "ds:aria-disabled:opacity-[var(--opacity-50)] ds:aria-disabled:cursor-not-allowed"
227
263
  ].join(" ")
228
- ), V = A(
264
+ ), q = D(
229
265
  ["ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]"].join(" ")
230
- ), F = A(
266
+ ), A = D(
231
267
  ["type-label", "ds:text-[var(--foreground)]"].join(" ")
232
- ), ae = A(
268
+ ), de = D(
233
269
  [
234
270
  "ds:flex ds:items-baseline ds:justify-between",
235
271
  "ds:gap-[var(--spacing-sm)]",
@@ -239,7 +275,7 @@ const Ie = A(
239
275
  "ds:rounded-[var(--radius-sm)]",
240
276
  "ds:text-[var(--foreground)]"
241
277
  ].join(" ")
242
- ), se = A(
278
+ ), ce = D(
243
279
  [
244
280
  "ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
245
281
  "ds:[min-block-size:var(--min-target-size)]",
@@ -259,186 +295,220 @@ const Ie = A(
259
295
  "ds:aria-busy:cursor-wait"
260
296
  ].join(" ")
261
297
  );
262
- function Ne(r) {
298
+ function _e(r) {
263
299
  const {
264
300
  amount: n,
265
301
  currency: a,
266
302
  locale: e,
267
- billingAddress: o,
268
- returnUrl: s,
269
- clientSecret: c,
270
- onCreatePaymentIntent: I,
271
- onSuccess: P,
272
- onError: N,
273
- layout: B
274
- } = r, { t: i } = W(), h = fe(), l = be(), R = le(), g = G(
275
- () => `pay-${R.replace(/[^a-zA-Z0-9-_]/g, "")}`,
276
- [R]
277
- ), M = `${g}-payment`, T = `${g}-address`, v = `${g}-error`, [p, w] = _(!1), [z, U] = _(!1), [x, S] = _(null), [$, m] = _(""), d = K(P), k = K(N);
278
- D(() => {
279
- d.current = P, k.current = N;
280
- }, [P, N]);
281
- const j = me(
282
- async (f) => {
283
- var Z, J, Y;
284
- if (f && f.preventDefault(), !h || !l || p) return;
285
- w(!0), S(null), m("");
286
- const C = (b, L) => {
287
- var Q;
288
- const y = Ee(b), E = Ce(L ?? "");
289
- S(y), m(i(y)), (Q = k.current) == null || Q.call(k, {
290
- code: b,
291
- translatedMessage: E || i(y)
303
+ billingAddress: d,
304
+ returnUrl: o,
305
+ clientSecret: m,
306
+ onCreatePaymentIntent: N,
307
+ onSuccess: K,
308
+ onError: F,
309
+ layout: O,
310
+ agentBridge: i
311
+ } = r, { t: c } = Y(), p = ve(), h = he(), B = ye(), I = X(
312
+ () => `pay-${B.replace(/[^a-zA-Z0-9-_]/g, "")}`,
313
+ [B]
314
+ ), U = `${I}-payment`, w = `${I}-address`, R = `${I}-error`, [f, S] = z(!1), [V, T] = z(!1), [b, G] = z(null), [H, u] = z(""), l = $(
315
+ (s) => {
316
+ i.current.status = s;
317
+ },
318
+ [i]
319
+ ), P = $(
320
+ (s) => {
321
+ i.current.errorKey = s, G(s);
322
+ },
323
+ [i]
324
+ ), le = $(
325
+ (s) => {
326
+ i.current.complete = s, T(s);
327
+ },
328
+ [i]
329
+ ), k = j(K), C = j(F);
330
+ L(() => {
331
+ k.current = K, C.current = F;
332
+ }, [K, F]);
333
+ const _ = $(
334
+ async (s) => {
335
+ var ee, re, te;
336
+ if (s && s.preventDefault(), !p || !h || f) return;
337
+ S(!0), l("processing"), i.current.paymentIntentId = null, P(null), u("");
338
+ const E = (v, M) => {
339
+ var ne;
340
+ const y = Fe(v), x = Ne(M ?? "");
341
+ P(y), u(c(y)), l("failed"), (ne = C.current) == null || ne.call(C, {
342
+ code: v,
343
+ translatedMessage: x || c(y)
292
344
  });
293
- }, q = ke(s);
294
- if (s !== void 0 && q === null) {
295
- S("payment.error.invalidReturnUrl"), m(i("payment.error.invalidReturnUrl")), (Z = k.current) == null || Z.call(k, {
345
+ }, W = Ee(o);
346
+ if (o !== void 0 && W === null) {
347
+ P("payment.error.invalidReturnUrl"), u(c("payment.error.invalidReturnUrl")), l("failed"), (ee = C.current) == null || ee.call(C, {
296
348
  code: "invalid_return_url",
297
- translatedMessage: i("payment.error.invalidReturnUrl")
298
- }), w(!1);
349
+ translatedMessage: c("payment.error.invalidReturnUrl")
350
+ }), S(!1);
299
351
  return;
300
352
  }
301
- const X = q ? { return_url: q } : {};
353
+ const Q = W ? { return_url: W } : {};
302
354
  try {
303
- if (c !== void 0) {
304
- const E = await h.confirmPayment({
305
- elements: l,
306
- confirmParams: X,
355
+ if (m !== void 0) {
356
+ const x = await p.confirmPayment({
357
+ elements: h,
358
+ confirmParams: Q,
307
359
  redirect: "if_required"
308
360
  });
309
- if (E.error) {
310
- C(E.error.code ?? "generic", E.error.message);
361
+ if (x.error) {
362
+ E(x.error.code ?? "generic", x.error.message);
311
363
  return;
312
364
  }
313
- E.paymentIntent && ((J = d.current) == null || J.call(d, E.paymentIntent.id));
365
+ x.paymentIntent && (i.current.paymentIntentId = x.paymentIntent.id, l("succeeded"), (re = k.current) == null || re.call(k, x.paymentIntent.id));
314
366
  return;
315
367
  }
316
- const { error: b } = await l.submit();
317
- if (b) {
318
- C(b.code ?? "generic", b.message);
368
+ const { error: v } = await h.submit();
369
+ if (v) {
370
+ E(v.code ?? "generic", v.message);
319
371
  return;
320
372
  }
321
- if (!I)
373
+ if (!N) {
374
+ l("idle");
322
375
  return;
323
- const L = await I(), y = await h.confirmPayment({
324
- elements: l,
325
- clientSecret: L,
326
- confirmParams: X,
376
+ }
377
+ const M = await N(), y = await p.confirmPayment({
378
+ elements: h,
379
+ clientSecret: M,
380
+ confirmParams: Q,
327
381
  redirect: "if_required"
328
382
  });
329
383
  if (y.error) {
330
- C(y.error.code ?? "generic", y.error.message);
384
+ E(y.error.code ?? "generic", y.error.message);
331
385
  return;
332
386
  }
333
- y.paymentIntent && ((Y = d.current) == null || Y.call(d, y.paymentIntent.id));
334
- } catch (b) {
335
- const L = b instanceof Error ? b.message : "";
336
- C("unexpected", L);
387
+ y.paymentIntent && (i.current.paymentIntentId = y.paymentIntent.id, l("succeeded"), (te = k.current) == null || te.call(k, y.paymentIntent.id));
388
+ } catch (v) {
389
+ const M = v instanceof Error ? v.message : "";
390
+ E("unexpected", M);
337
391
  } finally {
338
- w(!1);
392
+ S(!1), i.current.status === "processing" && l("idle");
339
393
  }
340
394
  },
341
395
  [
342
- h,
343
- l,
344
396
  p,
345
- s,
397
+ h,
398
+ f,
399
+ o,
400
+ m,
401
+ N,
346
402
  c,
347
- I,
348
- i
403
+ i,
404
+ P,
405
+ l
349
406
  ]
350
407
  );
351
- D(() => {
352
- const f = document.getElementById(g);
353
- if (!f) return;
354
- const C = () => {
355
- j();
408
+ L(() => {
409
+ const s = document.getElementById(I);
410
+ if (!s) return;
411
+ const E = () => {
412
+ _();
413
+ };
414
+ return s.addEventListener("payment-form:submit", E), () => s.removeEventListener("payment-form:submit", E);
415
+ }, [I, _]), L(() => {
416
+ const s = i.current;
417
+ return s.submit = _, () => {
418
+ s.submit === _ && (s.submit = void 0);
356
419
  };
357
- return f.addEventListener("payment-form:submit", C), () => f.removeEventListener("payment-form:submit", C);
358
- }, [g, j]);
359
- const oe = !h || !l || p || !(c === void 0 && !I) && !z;
420
+ }, [i, _]), L(() => {
421
+ const s = i.current;
422
+ return () => {
423
+ s.complete = !1;
424
+ };
425
+ }, [i]);
426
+ const ue = !p || !h || f || !(m === void 0 && !N) && !V;
360
427
  return /* @__PURE__ */ t(
361
428
  "form",
362
429
  {
363
- id: g,
364
- onSubmit: j,
365
- "aria-label": i("payment.ariaLabel"),
366
- "aria-busy": p || void 0,
430
+ id: I,
431
+ onSubmit: _,
432
+ onReset: () => {
433
+ P(null), u(""), l("idle"), i.current.paymentIntentId = null;
434
+ },
435
+ "aria-label": c("payment.ariaLabel"),
436
+ "aria-busy": f || void 0,
367
437
  noValidate: !0,
368
- children: /* @__PURE__ */ u("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
369
- /* @__PURE__ */ u("div", { className: ae(), children: [
370
- /* @__PURE__ */ t("span", { className: F(), children: i("payment.amountLabel") }),
371
- /* @__PURE__ */ t("span", { className: "type-title-card", "data-testid": "payment-amount", children: O(n, a, e) })
438
+ children: /* @__PURE__ */ g("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
439
+ /* @__PURE__ */ g("div", { className: de(), children: [
440
+ /* @__PURE__ */ t("span", { className: A(), children: c("payment.amountLabel") }),
441
+ /* @__PURE__ */ t("span", { className: "type-title-card", "data-testid": "payment-amount", children: J(n, a, e) })
372
442
  ] }),
373
- /* @__PURE__ */ u(
443
+ /* @__PURE__ */ g(
374
444
  "label",
375
445
  {
376
- htmlFor: M,
377
- className: V(),
446
+ htmlFor: U,
447
+ className: q(),
378
448
  "data-testid": "payment-field",
379
449
  children: [
380
- /* @__PURE__ */ t("span", { className: F(), children: i("payment.fields.card") }),
450
+ /* @__PURE__ */ t("span", { className: A(), children: c("payment.fields.card") }),
381
451
  /* @__PURE__ */ t(
382
- ye,
452
+ Ie,
383
453
  {
384
- id: M,
454
+ id: U,
385
455
  options: {
386
456
  // `tabs` = method tiles (Card selected by default); `accordion`
387
457
  // = full-width stacked rows for narrow columns where the tab row
388
458
  // clips. Stripe owns overflow + tab alignment either way.
389
- layout: B === "accordion" ? { type: "accordion", defaultCollapsed: !0 } : { type: "tabs" }
459
+ layout: O === "accordion" ? { type: "accordion", defaultCollapsed: !0 } : { type: "tabs" }
390
460
  },
391
- onChange: (f) => {
392
- U(f.complete === !0), f.complete && (S(null), m(""));
461
+ onChange: (s) => {
462
+ le(s.complete === !0), s.complete && (P(null), u(""), i.current.status === "failed" && l("idle"));
393
463
  }
394
464
  }
395
465
  )
396
466
  ]
397
467
  }
398
468
  ),
399
- o ? /* @__PURE__ */ u(
469
+ d ? /* @__PURE__ */ g(
400
470
  "label",
401
471
  {
402
- htmlFor: T,
403
- className: V(),
472
+ htmlFor: w,
473
+ className: q(),
404
474
  "data-testid": "payment-address",
405
475
  children: [
406
- /* @__PURE__ */ t("span", { className: F(), children: i("payment.billingAddress") }),
407
- /* @__PURE__ */ t(ge, { id: T, options: { mode: "billing" } })
476
+ /* @__PURE__ */ t("span", { className: A(), children: c("payment.billingAddress") }),
477
+ /* @__PURE__ */ t(we, { id: w, options: { mode: "billing" } })
408
478
  ]
409
479
  }
410
480
  ) : null,
411
- x ? /* @__PURE__ */ t(
412
- ee,
481
+ b ? /* @__PURE__ */ t(
482
+ se,
413
483
  {
414
- id: v,
484
+ id: R,
415
485
  variant: "error",
416
486
  live: "polite",
417
487
  "data-testid": "payment-error",
418
- children: /* @__PURE__ */ t(ee.Description, { children: $ })
488
+ children: /* @__PURE__ */ t(se.Description, { children: H })
419
489
  }
420
490
  ) : null,
421
491
  /* @__PURE__ */ t(
422
492
  "button",
423
493
  {
424
494
  type: "submit",
425
- "aria-disabled": oe || void 0,
426
- "aria-busy": p || void 0,
427
- "aria-describedby": x ? v : void 0,
428
- className: se(),
495
+ "aria-disabled": ue || void 0,
496
+ "aria-busy": f || void 0,
497
+ "aria-describedby": b ? R : void 0,
498
+ className: ce(),
429
499
  "data-testid": "payment-submit",
430
- children: p ? /* @__PURE__ */ u(ie, { children: [
500
+ children: f ? /* @__PURE__ */ g(me, { children: [
431
501
  /* @__PURE__ */ t(
432
- te,
502
+ oe,
433
503
  {
434
504
  variant: "pulse",
435
505
  size: "sm",
436
- label: i("payment.processing")
506
+ label: c("payment.processing")
437
507
  }
438
508
  ),
439
- /* @__PURE__ */ t("span", { children: i("payment.processing") })
440
- ] }) : /* @__PURE__ */ t("span", { children: i("payment.submit", {
441
- amount: O(n, a, e)
509
+ /* @__PURE__ */ t("span", { children: c("payment.processing") })
510
+ ] }) : /* @__PURE__ */ t("span", { children: c("payment.submit", {
511
+ amount: J(n, a, e)
442
512
  }) })
443
513
  }
444
514
  )
@@ -446,7 +516,7 @@ function Ne(r) {
446
516
  }
447
517
  );
448
518
  }
449
- const re = /* @__PURE__ */ new Set([
519
+ const ae = /* @__PURE__ */ new Set([
450
520
  "auto",
451
521
  "ar",
452
522
  "bg",
@@ -498,151 +568,158 @@ const re = /* @__PURE__ */ new Set([
498
568
  "zh-HK",
499
569
  "zh-TW"
500
570
  ]);
501
- function Se(r) {
571
+ function ze(r) {
502
572
  if (!r) return "auto";
503
573
  const n = r === "cn" ? "zh" : r;
504
- if (re.has(n))
574
+ if (ae.has(n))
505
575
  return n;
506
576
  const a = n.split("-")[0];
507
- return re.has(a) ? a : "auto";
577
+ return ae.has(a) ? a : "auto";
508
578
  }
509
- const _e = de(
579
+ const Le = pe(
510
580
  ({
511
581
  id: r,
512
582
  clientSecret: n,
513
583
  mode: a = "payment",
514
584
  onCreatePaymentIntent: e,
515
- publishableKey: o,
516
- currency: s,
517
- amount: c,
518
- onSuccess: I,
519
- onError: P,
520
- billingAddress: N = !1,
521
- locale: B,
585
+ publishableKey: d,
586
+ currency: o,
587
+ amount: m,
588
+ onSuccess: N,
589
+ onError: K,
590
+ billingAddress: F = !1,
591
+ locale: O,
522
592
  ariaLabel: i,
523
- returnUrl: h,
524
- stripePromise: l,
525
- layout: R = "tabs",
526
- className: g
527
- }, M) => {
528
- const { i18n: T } = W(), v = Se(B ?? T.language ?? "en"), [p, w] = _(l ?? null);
529
- D(() => {
530
- if (l !== void 0) {
531
- w(l);
593
+ returnUrl: c,
594
+ stripePromise: p,
595
+ layout: h = "tabs",
596
+ className: B
597
+ }, I) => {
598
+ const { i18n: U } = Y(), w = ze(O ?? U.language ?? "en"), [R, f] = z(p ?? null);
599
+ L(() => {
600
+ if (p !== void 0) {
601
+ f(p);
532
602
  return;
533
603
  }
534
- if (!o) {
535
- w(null);
604
+ if (!d) {
605
+ f(null);
536
606
  return;
537
607
  }
538
- w(ue(o));
539
- }, [l, o]);
540
- const [z, U] = _(
541
- () => H()
608
+ f(ge(d));
609
+ }, [p, d]);
610
+ const [S, V] = z(
611
+ () => Z()
542
612
  );
543
- D(() => (U(H()), he(U)), []);
544
- const x = K(null), S = G(
613
+ L(() => (V(Z()), Se(V)), []);
614
+ const T = j(null), b = j({
615
+ status: "idle",
616
+ complete: !1,
617
+ errorKey: null,
618
+ paymentIntentId: null
619
+ }), G = X(
545
620
  () => ({
546
621
  submit: async () => {
547
- var d;
548
- const m = (d = x.current) == null ? void 0 : d.querySelector("form");
549
- m && m.dispatchEvent(
550
- new CustomEvent("payment-form:submit", { bubbles: !0 })
551
- );
622
+ const u = b.current.submit;
623
+ u && await u();
552
624
  },
553
625
  reset: () => {
554
- var d;
555
- const m = (d = x.current) == null ? void 0 : d.querySelector("form");
556
- m instanceof HTMLFormElement && m.reset();
557
- }
626
+ var l;
627
+ const u = (l = T.current) == null ? void 0 : l.querySelector("form");
628
+ u instanceof HTMLFormElement && u.reset();
629
+ },
630
+ getStatus: () => b.current.status,
631
+ isComplete: () => b.current.complete,
632
+ getErrorKey: () => b.current.errorKey,
633
+ getPaymentIntentId: () => b.current.paymentIntentId
558
634
  }),
559
635
  []
560
636
  );
561
- ce(M, () => x.current, []), ve(we, S, r);
562
- const $ = G(
637
+ fe(I, () => T.current, []), xe(ke, G, r);
638
+ const H = X(
563
639
  () => n !== void 0 ? (
564
640
  // Immediate mode — the consumer already created the intent.
565
- { clientSecret: n, appearance: z, locale: v }
641
+ { clientSecret: n, appearance: S, locale: w }
566
642
  ) : (
567
643
  // Deferred-intent mode — no secret yet; Stripe needs the intent
568
644
  // shape (mode + amount + currency) to render the Payment Element.
569
645
  // Stripe expects a lowercase ISO-4217 currency here.
570
646
  {
571
647
  mode: a,
572
- amount: c,
573
- currency: s.toLowerCase(),
574
- appearance: z,
575
- locale: v
648
+ amount: m,
649
+ currency: o.toLowerCase(),
650
+ appearance: S,
651
+ locale: w
576
652
  }
577
653
  ),
578
- [n, a, c, s, z, v]
654
+ [n, a, m, o, S, w]
579
655
  );
580
656
  return /* @__PURE__ */ t(
581
657
  "div",
582
658
  {
583
- ref: x,
659
+ ref: T,
584
660
  "aria-label": i,
585
- className: [Ie(), g].filter(Boolean).join(" "),
661
+ className: [Pe(), B].filter(Boolean).join(" "),
586
662
  "data-component": "payment-form",
587
663
  "data-component-id": r,
588
664
  "data-testid": "payment-form-root",
589
- children: p ? (
665
+ children: R ? (
590
666
  // Render the real Payment Element whenever a Stripe instance is
591
667
  // available — in immediate mode (clientSecret present) AND in
592
668
  // deferred mode (no secret). The skeleton is reserved for the
593
669
  // no-Stripe case (missing publishableKey / injected null).
594
670
  /* @__PURE__ */ t(
595
- pe,
671
+ be,
596
672
  {
597
- stripe: p,
598
- options: $,
673
+ stripe: R,
674
+ options: H,
599
675
  children: /* @__PURE__ */ t(
600
- Ne,
676
+ _e,
601
677
  {
602
- amount: c,
603
- currency: s,
604
- locale: v,
605
- billingAddress: N,
606
- returnUrl: h,
678
+ amount: m,
679
+ currency: o,
680
+ locale: w,
681
+ billingAddress: F,
682
+ returnUrl: c,
607
683
  clientSecret: n,
608
684
  onCreatePaymentIntent: e,
609
- onSuccess: I,
610
- onError: P,
611
- layout: R
685
+ onSuccess: N,
686
+ onError: K,
687
+ layout: h,
688
+ agentBridge: b
612
689
  }
613
690
  )
614
691
  },
615
692
  n ?? "deferred"
616
693
  )
617
694
  ) : /* @__PURE__ */ t(
618
- Fe,
695
+ Ae,
619
696
  {
620
- amount: c,
621
- currency: s,
622
- locale: v,
623
- billingAddress: N
697
+ amount: m,
698
+ currency: o,
699
+ locale: w,
700
+ billingAddress: F
624
701
  }
625
702
  )
626
703
  }
627
704
  );
628
705
  }
629
706
  );
630
- _e.displayName = "PaymentForm";
631
- function Fe(r) {
632
- const { amount: n, currency: a, locale: e, billingAddress: o } = r, { t: s } = W();
633
- return /* @__PURE__ */ u(
707
+ Le.displayName = "PaymentForm";
708
+ function Ae(r) {
709
+ const { amount: n, currency: a, locale: e, billingAddress: d } = r, { t: o } = Y();
710
+ return /* @__PURE__ */ g(
634
711
  "div",
635
712
  {
636
713
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
637
714
  "data-testid": "payment-skeleton",
638
715
  "aria-busy": "true",
639
716
  children: [
640
- /* @__PURE__ */ u("div", { className: ae(), children: [
641
- /* @__PURE__ */ t("span", { className: F(), children: s("payment.amountLabel") }),
642
- /* @__PURE__ */ t("span", { className: "type-title-card", children: O(n, a, e) })
717
+ /* @__PURE__ */ g("div", { className: de(), children: [
718
+ /* @__PURE__ */ t("span", { className: A(), children: o("payment.amountLabel") }),
719
+ /* @__PURE__ */ t("span", { className: "type-title-card", children: J(n, a, e) })
643
720
  ] }),
644
- /* @__PURE__ */ u("div", { className: V(), children: [
645
- /* @__PURE__ */ t("span", { className: F(), children: s("payment.fields.card") }),
721
+ /* @__PURE__ */ g("div", { className: q(), children: [
722
+ /* @__PURE__ */ t("span", { className: A(), children: o("payment.fields.card") }),
646
723
  /* @__PURE__ */ t(
647
724
  "div",
648
725
  {
@@ -651,8 +728,8 @@ function Fe(r) {
651
728
  }
652
729
  )
653
730
  ] }),
654
- o ? /* @__PURE__ */ u("div", { className: V(), "data-testid": "payment-address", children: [
655
- /* @__PURE__ */ t("span", { className: F(), children: s("payment.billingAddress") }),
731
+ d ? /* @__PURE__ */ g("div", { className: q(), "data-testid": "payment-address", children: [
732
+ /* @__PURE__ */ t("span", { className: A(), children: o("payment.billingAddress") }),
656
733
  /* @__PURE__ */ t(
657
734
  "div",
658
735
  {
@@ -661,16 +738,16 @@ function Fe(r) {
661
738
  }
662
739
  )
663
740
  ] }) : null,
664
- /* @__PURE__ */ u(
741
+ /* @__PURE__ */ g(
665
742
  "button",
666
743
  {
667
744
  type: "button",
668
745
  "aria-disabled": "true",
669
- className: se(),
746
+ className: ce(),
670
747
  disabled: !0,
671
748
  children: [
672
- /* @__PURE__ */ t(te, { variant: "pulse", size: "sm", label: s("payment.processing") }),
673
- /* @__PURE__ */ t("span", { children: s("payment.processing") })
749
+ /* @__PURE__ */ t(oe, { variant: "pulse", size: "sm", label: o("payment.processing") }),
750
+ /* @__PURE__ */ t("span", { children: o("payment.processing") })
674
751
  ]
675
752
  }
676
753
  )
@@ -679,12 +756,12 @@ function Fe(r) {
679
756
  );
680
757
  }
681
758
  export {
682
- _e as P,
683
- Ie as a,
684
- Ce as b,
685
- Ee as c,
686
- O as f,
687
- we as p,
688
- se as s
759
+ Le as P,
760
+ Pe as a,
761
+ Ne as b,
762
+ Fe as c,
763
+ J as f,
764
+ ke as p,
765
+ ce as s
689
766
  };
690
- //# sourceMappingURL=payment-form-h-BZ8onk.js.map
767
+ //# sourceMappingURL=payment-form-Ds1I9KqB.js.map