@everfur/sdk 1.2.0 → 1.3.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 (235) hide show
  1. package/CHANGELOG.md +64 -22
  2. package/dist/{Chat.d-C76mPD5M.d.cts → Chat.d-CGuvQApZ.d.cts} +1 -1
  3. package/dist/{Chat.d-Dn_DEpGG.d.ts → Chat.d-DQkMkRlv.d.ts} +1 -1
  4. package/dist/{DepthViews.d-v6sBxjrf.d.cts → DepthViews.d-Bs79si_g.d.cts} +1 -1
  5. package/dist/{DepthViews.d-4teBIBu-.d.cts → DepthViews.d-C9HdQhC2.d.cts} +1 -1
  6. package/dist/{DepthViews.d-DXGAGojW.d.ts → DepthViews.d-DrCO-wqQ.d.ts} +1 -1
  7. package/dist/{DepthViews.d-B5RHCzGS.d.ts → DepthViews.d-v8fVFY4g.d.ts} +1 -1
  8. package/dist/{RecordsPage.d-D2J5rMWk.d.ts → RecordsPage.d-BDZ8JRSw.d.ts} +1 -1
  9. package/dist/{RecordsPage.d-BF4EIVKg.d.cts → RecordsPage.d-a_h8Hlxr.d.cts} +1 -1
  10. package/dist/animations/index.cjs +1 -1
  11. package/dist/animations/index.d.cts +3 -3
  12. package/dist/animations/index.d.ts +3 -3
  13. package/dist/animations/index.js +1 -1
  14. package/dist/{attachments.d-DMZ8xCT9.d.cts → attachments.d-DjwKMpb0.d.cts} +1 -1
  15. package/dist/{attachments.d-CedhQFlI.d.ts → attachments.d-HxQiuR6k.d.ts} +1 -1
  16. package/dist/{bookingCopy.d-DJmo8fzQ.d.cts → bookingCopy.d-CX1IaYNX.d.cts} +2 -2
  17. package/dist/{bookingCopy.d-CnKq4gvc.d.ts → bookingCopy.d-DFhHqNkX.d.ts} +2 -2
  18. package/dist/{casesRepository.d-BcmH2Du1.d.cts → casesRepository.d-BvHziaN3.d.cts} +1 -1
  19. package/dist/{casesRepository.d-CG3psWUQ.d.ts → casesRepository.d-CsXp5ZbO.d.ts} +1 -1
  20. package/dist/chat/index.cjs +20 -19
  21. package/dist/chat/index.d.cts +10 -10
  22. package/dist/chat/index.d.ts +10 -10
  23. package/dist/chat/index.js +20 -19
  24. package/dist/chat/lite/index.cjs +20 -19
  25. package/dist/chat/lite/index.d.cts +10 -10
  26. package/dist/chat/lite/index.d.ts +10 -10
  27. package/dist/chat/lite/index.js +20 -19
  28. package/dist/{chatHandoffToken.d-DETK_czu.d.ts → chatHandoffToken.d-D8ziljrV.d.ts} +5 -5
  29. package/dist/{chatHandoffToken.d-BRODOPfQ.d.cts → chatHandoffToken.d-N8D7LgiG.d.cts} +5 -5
  30. package/dist/{checkin.d-CJoVeku7.d.ts → checkin.d-C6v2akWa.d.ts} +4 -4
  31. package/dist/{checkin.d-CQaV4WL2.d.cts → checkin.d-CVo0MpeG.d.cts} +4 -4
  32. package/dist/{chunk-PTO64HJN.js → chunk-4YMKIILX.js} +5 -5
  33. package/dist/{chunk-PSBCFPJG.js → chunk-D5AYE7FR.js} +3 -3
  34. package/dist/chunk-LFCCBV3J.js +47 -0
  35. package/dist/{chunk-HGQOS366.js → chunk-OMWBGNXK.js} +1 -1
  36. package/dist/client/index.cjs +8 -7
  37. package/dist/client/index.d.cts +10 -10
  38. package/dist/client/index.d.ts +10 -10
  39. package/dist/client/index.js +8 -7
  40. package/dist/{clinicBatch.d-CSr_YFGU.d.ts → clinicBatch.d-DUCpGy47.d.ts} +2 -2
  41. package/dist/{clinicBatch.d-CyXyJab_.d.cts → clinicBatch.d-h4AzQhUH.d.cts} +2 -2
  42. package/dist/{config.d-Bf15Q27G.d.ts → config.d-Ds1iysW4.d.ts} +20 -1
  43. package/dist/{config.d-D-7_tLb8.d.cts → config.d-DwLvHCYP.d.cts} +20 -1
  44. package/dist/consent/index.cjs +2 -2
  45. package/dist/consent/index.d.cts +5 -5
  46. package/dist/consent/index.d.ts +5 -5
  47. package/dist/consent/index.js +2 -2
  48. package/dist/{context.d-CFFj57ZA.d.ts → context.d-CsoglkHv.d.ts} +4 -4
  49. package/dist/{context.d-CCsGIBuw.d.cts → context.d-_IdRcaaC.d.cts} +4 -4
  50. package/dist/{copy.d-Dan0WfJS.d.ts → copy.d-CprpMJD2.d.ts} +2 -2
  51. package/dist/{copy.d-uQ8jl0d3.d.cts → copy.d-Du3C9Itf.d.cts} +2 -2
  52. package/dist/core/index.cjs +10 -9
  53. package/dist/core/index.d.cts +14 -14
  54. package/dist/core/index.d.ts +14 -14
  55. package/dist/core/index.js +10 -9
  56. package/dist/{depth.d-DFsi6qtf.d.ts → depth.d-4CAnnHdv.d.ts} +2 -2
  57. package/dist/{depth.d-DFPfFTPF.d.cts → depth.d-B45A8uzH.d.cts} +2 -2
  58. package/dist/{entitlementRepository.d-BnvMk7Tc.d.ts → entitlementRepository.d-BVKx1U_k.d.ts} +2 -2
  59. package/dist/{entitlementRepository.d-t6g97KZm.d.cts → entitlementRepository.d-Cp2ZU7pQ.d.cts} +2 -2
  60. package/dist/{focus.d-_6rD03Ap.d.ts → focus.d-BmER-Wo9.d.ts} +1 -1
  61. package/dist/{focus.d-BkPLN-2r.d.cts → focus.d-DkRwLTEB.d.cts} +1 -1
  62. package/dist/health-plan/index.cjs +11 -6
  63. package/dist/health-plan/index.d.cts +13 -13
  64. package/dist/health-plan/index.d.ts +13 -13
  65. package/dist/health-plan/index.js +11 -6
  66. package/dist/{healthPlanRepository.d-D6qYjNMQ.d.cts → healthPlanRepository.d-B3je3K9s.d.cts} +2 -2
  67. package/dist/{healthPlanRepository.d-CuumbPDh.d.ts → healthPlanRepository.d-D8a8n9Jj.d.ts} +2 -2
  68. package/dist/{idempotency.d-BGhv20mx.d.cts → idempotency.d-CqQ4xvQT.d.cts} +1 -1
  69. package/dist/{idempotency.d-RxPkjLqJ.d.ts → idempotency.d-Cs5pjjdA.d.ts} +1 -1
  70. package/dist/{identity.d--2ec4agf.d.ts → identity.d-Bj7WLFXU.d.ts} +1 -1
  71. package/dist/{identity.d-CFc4KrK0.d.cts → identity.d-Dg3l3zT5.d.cts} +1 -1
  72. package/dist/{inbox.d-B6kD0a9r.d.ts → inbox.d-DVfTwkEB.d.ts} +1 -1
  73. package/dist/{inbox.d-CzIVX_ji.d.cts → inbox.d-DYCjhSnO.d.cts} +1 -1
  74. package/dist/index.cjs +25 -24
  75. package/dist/index.d.cts +14 -14
  76. package/dist/index.d.ts +14 -14
  77. package/dist/index.js +25 -24
  78. package/dist/{introEvents.d-wshlRCrU.d.ts → introEvents.d-CmC7ag_3.d.ts} +1 -1
  79. package/dist/{introEvents.d-BUCbS8oX.d.cts → introEvents.d-Wc0-QPLf.d.cts} +1 -1
  80. package/dist/{layout.d-C8UKQW3I.d.ts → layout.d-BZbIqvZ_.d.ts} +1 -1
  81. package/dist/{layout.d-ChcRUbC4.d.cts → layout.d-yLooG8Z0.d.cts} +1 -1
  82. package/dist/notifications/inbox/index.cjs +2 -2
  83. package/dist/notifications/inbox/index.d.cts +6 -6
  84. package/dist/notifications/inbox/index.d.ts +6 -6
  85. package/dist/notifications/inbox/index.js +2 -2
  86. package/dist/notifications/index.cjs +2 -2
  87. package/dist/notifications/index.d.cts +7 -7
  88. package/dist/notifications/index.d.ts +7 -7
  89. package/dist/notifications/index.js +2 -2
  90. package/dist/{optInView.d-DbSRM8qR.d.ts → optInView.d-B_yFAfKk.d.ts} +2 -2
  91. package/dist/{optInView.d-Cu3J440l.d.cts → optInView.d-Td2Uv3iq.d.cts} +2 -2
  92. package/dist/{pets.d-BRNg79qq.d.cts → pets.d-CE8_oDjM.d.cts} +1 -1
  93. package/dist/{pets.d-CS21gvuN.d.ts → pets.d-UFpQT-q3.d.ts} +1 -1
  94. package/dist/{petsRepository.d-uMbhgEsh.d.cts → petsRepository.d-BVSrxwKa.d.cts} +1 -1
  95. package/dist/{petsRepository.d-BRL_wPcE.d.ts → petsRepository.d-BvmFXjTc.d.ts} +1 -1
  96. package/dist/photo/index.cjs +2 -2
  97. package/dist/photo/index.js +2 -2
  98. package/dist/records/depth/index.cjs +2 -2
  99. package/dist/records/depth/index.d.cts +9 -9
  100. package/dist/records/depth/index.d.ts +9 -9
  101. package/dist/records/depth/index.js +2 -2
  102. package/dist/records/index.cjs +2 -2
  103. package/dist/records/index.d.cts +10 -10
  104. package/dist/records/index.d.ts +10 -10
  105. package/dist/records/index.js +2 -2
  106. package/dist/{requestFunnel.d-BDuYHZMa.d.ts → requestFunnel.d-D8UsEFed.d.ts} +2 -2
  107. package/dist/{requestFunnel.d-BdTkSu0W.d.cts → requestFunnel.d-fmBVWfsj.d.cts} +2 -2
  108. package/dist/{route.d-HALH1t37.d.ts → route.d-BnWvGpNN.d.ts} +2 -2
  109. package/dist/{route.d-BhfmB7Pl.d.cts → route.d-DOXnhbtt.d.cts} +2 -2
  110. package/dist/{runtimeTypes.d-BrEWaDPX.d.cts → runtimeTypes.d-BlejmEU1.d.cts} +6 -6
  111. package/dist/{runtimeTypes.d-C7HFG1ev.d.ts → runtimeTypes.d-C6fYXNx2.d.ts} +6 -6
  112. package/dist/{screenProps.d-BjIsq_NY.d.cts → screenProps.d-BfYg9Eaz.d.cts} +1 -1
  113. package/dist/{screenProps.d-C_q_3Lj7.d.ts → screenProps.d-Bp0vHiov.d.ts} +1 -1
  114. package/dist/{sdkConfigStore.d-Cxj2n79d.d.cts → sdkConfigStore.d-BHrzkVpP.d.cts} +5 -0
  115. package/dist/{sdkConfigStore.d-BKqjpahR.d.ts → sdkConfigStore.d-VPvsIL8E.d.ts} +5 -0
  116. package/dist/server/events/index.cjs +3 -2
  117. package/dist/server/events/index.d.cts +2 -2
  118. package/dist/server/events/index.d.ts +2 -2
  119. package/dist/server/events/index.js +3 -2
  120. package/dist/server/index.cjs +5 -4
  121. package/dist/server/index.d.cts +9 -3
  122. package/dist/server/index.d.ts +9 -3
  123. package/dist/server/index.js +5 -4
  124. package/dist/shop/index.cjs +12 -6
  125. package/dist/shop/index.d.cts +3 -3
  126. package/dist/shop/index.d.ts +3 -3
  127. package/dist/shop/index.js +13 -7
  128. package/dist/slots/index.cjs +14 -15
  129. package/dist/slots/index.d.cts +5 -5
  130. package/dist/slots/index.d.ts +5 -5
  131. package/dist/slots/index.js +14 -15
  132. package/dist/slots/weather-glyphs/index.cjs +1 -1
  133. package/dist/slots/weather-glyphs/index.js +1 -1
  134. package/dist/tabs/index.cjs +7 -7
  135. package/dist/tabs/index.d.cts +10 -10
  136. package/dist/tabs/index.d.ts +10 -10
  137. package/dist/tabs/index.js +7 -7
  138. package/dist/televet/booking/index.cjs +2 -2
  139. package/dist/televet/booking/index.d.cts +6 -6
  140. package/dist/televet/booking/index.d.ts +6 -6
  141. package/dist/televet/booking/index.js +2 -2
  142. package/dist/televet/index.cjs +2 -2
  143. package/dist/televet/index.js +2 -2
  144. package/dist/testing/index.cjs +4 -3
  145. package/dist/testing/index.d.cts +1 -1
  146. package/dist/testing/index.d.ts +1 -1
  147. package/dist/testing/index.js +4 -3
  148. package/dist/testing/rn/index.cjs +3 -3
  149. package/dist/testing/rn/index.d.cts +8 -8
  150. package/dist/testing/rn/index.d.ts +8 -8
  151. package/dist/testing/rn/index.js +3 -3
  152. package/dist/testing/web/index.cjs +2 -2
  153. package/dist/testing/web/index.d.cts +8 -8
  154. package/dist/testing/web/index.d.ts +8 -8
  155. package/dist/testing/web/index.js +2 -2
  156. package/dist/texting/index.cjs +2 -2
  157. package/dist/texting/index.d.cts +5 -5
  158. package/dist/texting/index.d.ts +5 -5
  159. package/dist/texting/index.js +2 -2
  160. package/dist/{threadOptions.d-RBSqklk5.d.cts → threadOptions.d-B9OndNS2.d.cts} +4 -4
  161. package/dist/{threadOptions.d-Suof8GCE.d.ts → threadOptions.d-BlpnY5xP.d.ts} +4 -4
  162. package/dist/{timelineRows.d-CDA00bav.d.ts → timelineRows.d-BPOMlI-P.d.ts} +1 -1
  163. package/dist/{timelineRows.d-CXIvLZW0.d.cts → timelineRows.d-BmHu_XLI.d.cts} +1 -1
  164. package/dist/ui/index.cjs +5 -4
  165. package/dist/ui/index.js +5 -4
  166. package/dist/{useHealthPlanSubscription.d-mOHP3D8V.d.ts → useHealthPlanSubscription.d-BAU8x02a.d.ts} +3 -3
  167. package/dist/{useHealthPlanSubscription.d-BJyHm00W.d.cts → useHealthPlanSubscription.d-CuJMQc_d.d.cts} +3 -3
  168. package/dist/{useInboxUnread.d-B6WPb-Qs.d.ts → useInboxUnread.d-BUpXjNnT.d.ts} +1 -1
  169. package/dist/{useInboxUnread.d-BZC4Td0f.d.cts → useInboxUnread.d-By1CkCy2.d.cts} +1 -1
  170. package/dist/{usePresentation.d-BP8u0FS2.d.cts → usePresentation.d-CgEJRm6Q.d.cts} +2 -2
  171. package/dist/{usePresentation.d-j0xDpOoe.d.ts → usePresentation.d-kSW7ttTl.d.ts} +2 -2
  172. package/dist/{useRecordsDepth.d-CvxrlzGi.d.cts → useRecordsDepth.d-BHQgBRBw.d.cts} +1 -1
  173. package/dist/{useRecordsDepth.d-Cu7-cKAn.d.ts → useRecordsDepth.d-diEF_tFF.d.ts} +1 -1
  174. package/dist/{useUnread.d-C4wKv3th.d.cts → useUnread.d-CoQKIHVD.d.cts} +3 -3
  175. package/dist/{useUnread.d-DMicYM85.d.ts → useUnread.d-aRej_wU8.d.ts} +3 -3
  176. package/dist/video/index.cjs +2 -2
  177. package/dist/video/index.js +2 -2
  178. package/dist/{view.d-Bq7d05Pv.d.ts → view.d-CevohC1l.d.ts} +3 -3
  179. package/dist/{view.d-odmWgaGw.d.cts → view.d-DgXlfcxR.d.cts} +3 -3
  180. package/dist/web/consent/index.cjs +2 -2
  181. package/dist/web/consent/index.d.cts +5 -5
  182. package/dist/web/consent/index.d.ts +5 -5
  183. package/dist/web/consent/index.js +2 -2
  184. package/dist/web/health-plan/index.cjs +7 -7
  185. package/dist/web/health-plan/index.d.cts +15 -15
  186. package/dist/web/health-plan/index.d.ts +15 -15
  187. package/dist/web/health-plan/index.js +3 -3
  188. package/dist/web/health-plan/styles.css +59 -0
  189. package/dist/web/inbox/index.cjs +2 -2
  190. package/dist/web/inbox/index.d.cts +7 -7
  191. package/dist/web/inbox/index.d.ts +7 -7
  192. package/dist/web/inbox/index.js +2 -2
  193. package/dist/web/index.cjs +22 -21
  194. package/dist/web/index.d.cts +26 -26
  195. package/dist/web/index.d.ts +26 -26
  196. package/dist/web/index.js +22 -21
  197. package/dist/web/intro/index.cjs +2 -2
  198. package/dist/web/intro/index.d.cts +7 -7
  199. package/dist/web/intro/index.d.ts +7 -7
  200. package/dist/web/intro/index.js +2 -2
  201. package/dist/web/notifications/index.cjs +2 -2
  202. package/dist/web/notifications/index.d.cts +6 -6
  203. package/dist/web/notifications/index.d.ts +6 -6
  204. package/dist/web/notifications/index.js +2 -2
  205. package/dist/web/records/depth/index.cjs +2 -2
  206. package/dist/web/records/depth/index.d.cts +9 -9
  207. package/dist/web/records/depth/index.d.ts +9 -9
  208. package/dist/web/records/depth/index.js +2 -2
  209. package/dist/web/records/index.cjs +2 -2
  210. package/dist/web/records/index.d.cts +11 -11
  211. package/dist/web/records/index.d.ts +11 -11
  212. package/dist/web/records/index.js +2 -2
  213. package/dist/web/records-sheet/index.cjs +2 -2
  214. package/dist/web/records-sheet/index.js +2 -2
  215. package/dist/web/shop/index.cjs +9 -9
  216. package/dist/web/shop/index.d.cts +3 -3
  217. package/dist/web/shop/index.d.ts +3 -3
  218. package/dist/web/shop/index.js +4 -4
  219. package/dist/web/televet/booking/index.cjs +2 -2
  220. package/dist/web/televet/booking/index.d.cts +6 -6
  221. package/dist/web/televet/booking/index.d.ts +6 -6
  222. package/dist/web/televet/booking/index.js +2 -2
  223. package/dist/web/televet/call/index.cjs +1 -1
  224. package/dist/web/televet/call/index.js +1 -1
  225. package/dist/web/televet/index.cjs +2 -2
  226. package/dist/web/televet/index.js +2 -2
  227. package/dist/web/texting/index.cjs +2 -2
  228. package/dist/web/texting/index.d.cts +5 -5
  229. package/dist/web/texting/index.d.ts +5 -5
  230. package/dist/web/texting/index.js +2 -2
  231. package/dist/web/ui/index.cjs +8 -8
  232. package/dist/web/ui/index.js +1 -1
  233. package/dist/web/ui/styles.css +66 -0
  234. package/package.json +5 -5
  235. package/dist/chunk-QMYYV67E.js +0 -47
@@ -1,21 +1,21 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
2
  import { ReactNode, CSSProperties, Ref } from 'react';
3
- import { H as HealthPlanFocusProps, f as EverfurHealthPlanProps, d as EverfurChatTopCard } from '../../threadOptions.d-RBSqklk5.cjs';
4
- export { j as HealthPlanCheckoutLine, k as HealthPlanFocusLayer, l as HealthPlanFocusOptions, m as HealthPlanFocusOverlay, n as HealthPlanFocusOverlayControls, o as HealthPlanProductPageOptions, p as HealthPlanTodayOptions } from '../../threadOptions.d-RBSqklk5.cjs';
3
+ import { H as HealthPlanFocusProps, f as EverfurHealthPlanProps, d as EverfurChatTopCard } from '../../threadOptions.d-B9OndNS2.cjs';
4
+ export { j as HealthPlanCheckoutLine, k as HealthPlanFocusLayer, l as HealthPlanFocusOptions, m as HealthPlanFocusOverlay, n as HealthPlanFocusOverlayControls, o as HealthPlanProductPageOptions, p as HealthPlanTodayOptions } from '../../threadOptions.d-B9OndNS2.cjs';
5
5
  import { E as EverfurError } from '../../EverfurError.d-8NHtlgzA.cjs';
6
6
  export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../../EverfurError.d-8NHtlgzA.cjs';
7
- import { H as HealthPlanItem } from '../../healthPlanRepository.d-D6qYjNMQ.cjs';
8
- export { g as HEALTH_PLAN_REASON_KINDS, a as HealthPlan, d as HealthPlanItemDetail, h as HealthPlanItemDose, i as HealthPlanItemReview, j as HealthPlanReason, c as HealthPlanReasonKind, b as HealthPlanRepository, f as HealthPlanRepositoryDeps, e as HealthPlanRuntime, k as createHealthPlanRepository, l as createHealthPlanRepositoryOver, m as healthPlanFromWire } from '../../healthPlanRepository.d-D6qYjNMQ.cjs';
9
- import { c as HealthPlanCardOptions, d as HealthPlanImageVariant, e as HealthPlanReasonVariant, H as HealthPlanPriceFormat, b as HealthPlanCart$1 } from '../../layout.d-ChcRUbC4.cjs';
10
- export { E as EverfurHealthPlanOptions, f as EverfurHealthPlanState, g as EverfurHealthPlanStatus, h as HEALTH_PLAN_LAYOUT_DEFAULTS, i as HealthPlanAddButtonSize, j as HealthPlanAddedVariant, k as HealthPlanCardShadow, l as HealthPlanCartBarPlacement, m as HealthPlanCartBarVisibility, n as HealthPlanCategoryVariant, o as HealthPlanFontWeight, p as HealthPlanHeaderContext, a as HealthPlanLayoutProps, q as HealthPlanPageContext, r as HealthPlanShadow, s as formatHealthPlanPrice, t as formatHealthPlanPriceWith, u as healthPlanCart, v as isHealthPlanSessionRequired, w as showHealthPlanCartBar, x as useEverfurHealthPlan, y as useEverfurHealthPlanRepository } from '../../layout.d-ChcRUbC4.cjs';
11
- import { q as HealthPlanTodayIcon, d as HealthPlanFocusCopy, f as HealthPlanFocusIcon, e as HealthPlanFocusClassNames, r as HealthPlanFocusPart, b as HealthPlanPagePet, H as HealthPlanPage } from '../../focus.d-BkPLN-2r.cjs';
12
- export { s as HEALTH_PLAN_FOCUS_COPY, t as HealthPlanCartCheckoutRequest, u as HealthPlanCheckoutItem, l as HealthPlanCheckoutProvider, v as HealthPlanCheckoutRefusal, w as HealthPlanCheckoutRequest, x as HealthPlanCheckoutSession, y as HealthPlanCheckoutState, z as HealthPlanCheckoutStatus, c as HealthPlanFocusDesign, n as HealthPlanFocusExtra, A as HealthPlanFocusLearnCard, m as HealthPlanFocusPrices, B as HealthPlanFocusReasonRow, C as HealthPlanFocusReport, D as HealthPlanFocusReview, E as HealthPlanFocusSign, F as HealthPlanFocusStep, o as HealthPlanFocusWait, G as HealthPlanOneBoxOffer, h as HealthPlanOneBoxOrder, I as HealthPlanOneBoxOrderPage, J as HealthPlanOneBoxOrderPageOptions, K as HealthPlanOrderStatus, L as HealthPlanOrderTracking, M as HealthPlanOrderTrackingStatus, j as HealthPlanPageRepository, a as HealthPlanPetWords, N as HealthPlanPurchase, k as HealthPlanShopOrder, g as HealthPlanSubscription, p as HealthPlanSubscriptionQuote, O as HealthPlanSubscriptionRenewal, i as HealthPlanSubscriptionRepository, P as HealthPlanSubscriptionStatus, Q as HealthPlanSubscriptionStep, R as HealthPlanSubscriptionSupply, S as HealthPlanTrackStep, T as createHealthPlanPageRepository, U as createHealthPlanPageRepositoryOver, V as createHealthPlanSubscriptionRepository, W as createHealthPlanSubscriptionRepositoryOver, X as formatHealthPlanDay, Y as healthPlanCheckoutRefusal, Z as healthPlanCheckoutSessionFromWire, _ as healthPlanCheckoutStateFromWire, $ as healthPlanFocusCopyFor, a0 as healthPlanFocusDesignFromWire, a1 as healthPlanOneBoxOrderFromWire, a2 as healthPlanOneBoxOrderPageFromWire, a3 as healthPlanOrderTrackingFromWire, a4 as healthPlanPageFromWire, a5 as healthPlanPetWords, a6 as healthPlanSubscriptionFromWire, a7 as healthPlanSubscriptionQuoteFromWire, a8 as isHealthPlanSubscriptionUnavailable } from '../../focus.d-BkPLN-2r.cjs';
13
- import { H as HealthPlanAskRowData, a as HealthPlanBylineData, b as HealthPlanCheckupData, c as HealthPlanExtrasData, d as HealthPlanFineData, e as HealthPlanFocusCardData, f as HealthPlanHeaderData, g as HealthPlanJumpStripData, h as HealthPlanNoPickData, i as HealthPlanOtherItemsData, j as HealthPlanSignsData, k as HealthPlanTipsData, l as HealthPlanToastData, m as HealthPlanToolbarData, n as HealthPlanVetQuoteData, o as HealthPlanWaitCardData, p as HealthPlanBuyButtonData, q as HealthPlanBuyOptionsData, r as HealthPlanDoseCardData, s as HealthPlanIngredientsData, t as HealthPlanProductPickData, u as HealthPlanProofData, v as HealthPlanReviewsData, w as HealthPlanSubscribedBoxData, x as HealthPlanTrustRowData, y as HealthPlanWhyItFitsData, z as HealthPlanCartCheckoutData, A as HealthPlanCheckoutSheetData, B as HealthPlanManageSheetData, C as HealthPlanWeightSheetData, D as HealthPlanCartScreenData, E as HealthPlanOrderData, F as HealthPlanOrdersData, G as HealthPlanPlacedData, I as HealthPlanStartedData } from '../../useHealthPlanSubscription.d-BJyHm00W.cjs';
14
- export { J as HealthPlanBuyMode, K as HealthPlanCartDock, L as HealthPlanCartHandlers, M as HealthPlanCartScope, N as HealthPlanCartScopeProps, O as HealthPlanController, P as HealthPlanExtraRow, Q as HealthPlanFactRow, R as HealthPlanFocusContent, S as HealthPlanIconLabel, T as HealthPlanNextRow, U as HealthPlanNoVetListener, V as HealthPlanOtherItemRow, W as HealthPlanPageOptions, X as HealthPlanPagePhase, Y as HealthPlanPageState, Z as HealthPlanPhase, _ as HealthPlanRecordsLandedListener, $ as HealthPlanRecordsLandedSource, a0 as HealthPlanShopLineView, a1 as HealthPlanShopOrderView, a2 as HealthPlanSnapshot, a3 as HealthPlanSubscriptionOptions, a4 as HealthPlanSubscriptionPhase, a5 as HealthPlanSubscriptionState, a6 as HealthPlanVet, a7 as healthPlanNoVet, a8 as notifyHealthPlanRecordsLanded, a9 as onHealthPlanNoVet, aa as onHealthPlanRecordsLanded, ab as setHealthPlanNoVet, ac as useHealthPlanCartDock, ad as useHealthPlanPage, ae as useHealthPlanPageRepository, af as useHealthPlanSubscription, ag as useHealthPlanSubscriptionRepository } from '../../useHealthPlanSubscription.d-BJyHm00W.cjs';
15
- import { c as HealthPlanTopCardCopy, b as HealthPlanTopCardResults } from '../../usePresentation.d-BP8u0FS2.cjs';
16
- export { d as HEALTH_PLAN_COPY, e as HEALTH_PLAN_COPY_PLACEHOLDERS, f as HEALTH_PLAN_REASON_LABELS, g as HEALTH_PLAN_TEMPLATES, h as HEALTH_PLAN_TOP_CARD_COPY, H as HealthPlanBlanksFacts, i as HealthPlanBlanksPhase, a as HealthPlanEmptyCopy, j as HealthPlanTopCardFocus, k as HealthPlanTopCardPet, l as healthPlanBlanksFacts, m as healthPlanNextShotsAt, n as healthPlanRecordsWeightKg, u as useEverfurPresentation } from '../../usePresentation.d-BP8u0FS2.cjs';
17
- export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity.d-CFc4KrK0.cjs';
18
- export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../../config.d-D-7_tLb8.cjs';
7
+ import { H as HealthPlanItem } from '../../healthPlanRepository.d-B3je3K9s.cjs';
8
+ export { g as HEALTH_PLAN_REASON_KINDS, a as HealthPlan, d as HealthPlanItemDetail, h as HealthPlanItemDose, i as HealthPlanItemReview, j as HealthPlanReason, c as HealthPlanReasonKind, b as HealthPlanRepository, f as HealthPlanRepositoryDeps, e as HealthPlanRuntime, k as createHealthPlanRepository, l as createHealthPlanRepositoryOver, m as healthPlanFromWire } from '../../healthPlanRepository.d-B3je3K9s.cjs';
9
+ import { c as HealthPlanCardOptions, d as HealthPlanImageVariant, e as HealthPlanReasonVariant, H as HealthPlanPriceFormat, b as HealthPlanCart$1 } from '../../layout.d-yLooG8Z0.cjs';
10
+ export { E as EverfurHealthPlanOptions, f as EverfurHealthPlanState, g as EverfurHealthPlanStatus, h as HEALTH_PLAN_LAYOUT_DEFAULTS, i as HealthPlanAddButtonSize, j as HealthPlanAddedVariant, k as HealthPlanCardShadow, l as HealthPlanCartBarPlacement, m as HealthPlanCartBarVisibility, n as HealthPlanCategoryVariant, o as HealthPlanFontWeight, p as HealthPlanHeaderContext, a as HealthPlanLayoutProps, q as HealthPlanPageContext, r as HealthPlanShadow, s as formatHealthPlanPrice, t as formatHealthPlanPriceWith, u as healthPlanCart, v as isHealthPlanSessionRequired, w as showHealthPlanCartBar, x as useEverfurHealthPlan, y as useEverfurHealthPlanRepository } from '../../layout.d-yLooG8Z0.cjs';
11
+ import { q as HealthPlanTodayIcon, d as HealthPlanFocusCopy, f as HealthPlanFocusIcon, e as HealthPlanFocusClassNames, r as HealthPlanFocusPart, b as HealthPlanPagePet, H as HealthPlanPage } from '../../focus.d-DkRwLTEB.cjs';
12
+ export { s as HEALTH_PLAN_FOCUS_COPY, t as HealthPlanCartCheckoutRequest, u as HealthPlanCheckoutItem, l as HealthPlanCheckoutProvider, v as HealthPlanCheckoutRefusal, w as HealthPlanCheckoutRequest, x as HealthPlanCheckoutSession, y as HealthPlanCheckoutState, z as HealthPlanCheckoutStatus, c as HealthPlanFocusDesign, n as HealthPlanFocusExtra, A as HealthPlanFocusLearnCard, m as HealthPlanFocusPrices, B as HealthPlanFocusReasonRow, C as HealthPlanFocusReport, D as HealthPlanFocusReview, E as HealthPlanFocusSign, F as HealthPlanFocusStep, o as HealthPlanFocusWait, G as HealthPlanOneBoxOffer, h as HealthPlanOneBoxOrder, I as HealthPlanOneBoxOrderPage, J as HealthPlanOneBoxOrderPageOptions, K as HealthPlanOrderStatus, L as HealthPlanOrderTracking, M as HealthPlanOrderTrackingStatus, j as HealthPlanPageRepository, a as HealthPlanPetWords, N as HealthPlanPurchase, k as HealthPlanShopOrder, g as HealthPlanSubscription, p as HealthPlanSubscriptionQuote, O as HealthPlanSubscriptionRenewal, i as HealthPlanSubscriptionRepository, P as HealthPlanSubscriptionStatus, Q as HealthPlanSubscriptionStep, R as HealthPlanSubscriptionSupply, S as HealthPlanTrackStep, T as createHealthPlanPageRepository, U as createHealthPlanPageRepositoryOver, V as createHealthPlanSubscriptionRepository, W as createHealthPlanSubscriptionRepositoryOver, X as formatHealthPlanDay, Y as healthPlanCheckoutRefusal, Z as healthPlanCheckoutSessionFromWire, _ as healthPlanCheckoutStateFromWire, $ as healthPlanFocusCopyFor, a0 as healthPlanFocusDesignFromWire, a1 as healthPlanOneBoxOrderFromWire, a2 as healthPlanOneBoxOrderPageFromWire, a3 as healthPlanOrderTrackingFromWire, a4 as healthPlanPageFromWire, a5 as healthPlanPetWords, a6 as healthPlanSubscriptionFromWire, a7 as healthPlanSubscriptionQuoteFromWire, a8 as isHealthPlanSubscriptionUnavailable } from '../../focus.d-DkRwLTEB.cjs';
13
+ import { H as HealthPlanAskRowData, a as HealthPlanBylineData, b as HealthPlanCheckupData, c as HealthPlanExtrasData, d as HealthPlanFineData, e as HealthPlanFocusCardData, f as HealthPlanHeaderData, g as HealthPlanJumpStripData, h as HealthPlanNoPickData, i as HealthPlanOtherItemsData, j as HealthPlanSignsData, k as HealthPlanTipsData, l as HealthPlanToastData, m as HealthPlanToolbarData, n as HealthPlanVetQuoteData, o as HealthPlanWaitCardData, p as HealthPlanBuyButtonData, q as HealthPlanBuyOptionsData, r as HealthPlanDoseCardData, s as HealthPlanIngredientsData, t as HealthPlanProductPickData, u as HealthPlanProofData, v as HealthPlanReviewsData, w as HealthPlanSubscribedBoxData, x as HealthPlanTrustRowData, y as HealthPlanWhyItFitsData, z as HealthPlanCartCheckoutData, A as HealthPlanCheckoutSheetData, B as HealthPlanManageSheetData, C as HealthPlanWeightSheetData, D as HealthPlanCartScreenData, E as HealthPlanOrderData, F as HealthPlanOrdersData, G as HealthPlanPlacedData, I as HealthPlanStartedData } from '../../useHealthPlanSubscription.d-CuJMQc_d.cjs';
14
+ export { J as HealthPlanBuyMode, K as HealthPlanCartDock, L as HealthPlanCartHandlers, M as HealthPlanCartScope, N as HealthPlanCartScopeProps, O as HealthPlanController, P as HealthPlanExtraRow, Q as HealthPlanFactRow, R as HealthPlanFocusContent, S as HealthPlanIconLabel, T as HealthPlanNextRow, U as HealthPlanNoVetListener, V as HealthPlanOtherItemRow, W as HealthPlanPageOptions, X as HealthPlanPagePhase, Y as HealthPlanPageState, Z as HealthPlanPhase, _ as HealthPlanRecordsLandedListener, $ as HealthPlanRecordsLandedSource, a0 as HealthPlanShopLineView, a1 as HealthPlanShopOrderView, a2 as HealthPlanSnapshot, a3 as HealthPlanSubscriptionOptions, a4 as HealthPlanSubscriptionPhase, a5 as HealthPlanSubscriptionState, a6 as HealthPlanVet, a7 as healthPlanNoVet, a8 as notifyHealthPlanRecordsLanded, a9 as onHealthPlanNoVet, aa as onHealthPlanRecordsLanded, ab as setHealthPlanNoVet, ac as useHealthPlanCartDock, ad as useHealthPlanPage, ae as useHealthPlanPageRepository, af as useHealthPlanSubscription, ag as useHealthPlanSubscriptionRepository } from '../../useHealthPlanSubscription.d-CuJMQc_d.cjs';
15
+ import { c as HealthPlanTopCardCopy, b as HealthPlanTopCardResults } from '../../usePresentation.d-CgEJRm6Q.cjs';
16
+ export { d as HEALTH_PLAN_COPY, e as HEALTH_PLAN_COPY_PLACEHOLDERS, f as HEALTH_PLAN_REASON_LABELS, g as HEALTH_PLAN_TEMPLATES, h as HEALTH_PLAN_TOP_CARD_COPY, H as HealthPlanBlanksFacts, i as HealthPlanBlanksPhase, a as HealthPlanEmptyCopy, j as HealthPlanTopCardFocus, k as HealthPlanTopCardPet, l as healthPlanBlanksFacts, m as healthPlanNextShotsAt, n as healthPlanRecordsWeightKg, u as useEverfurPresentation } from '../../usePresentation.d-CgEJRm6Q.cjs';
17
+ export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity.d-Dg3l3zT5.cjs';
18
+ export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, h as FreeCapRefusal, H as HeartbeatFrame, i as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, j as UrgencyLevel } from '../../config.d-DwLvHCYP.cjs';
19
19
  import { P as PetRef } from '../../ids.d-B2GAAifq.cjs';
20
20
  export { B as Brand, C as ConversationId, R as RecordsRequestId, U as UserRef, _ as __brand } from '../../ids.d-B2GAAifq.cjs';
21
21
  export { E as EverfurResult } from '../../EverfurResult.d-BFH-3s6E.cjs';
@@ -24,7 +24,7 @@ export { L as LifecyclePort } from '../../LifecyclePort.d-Cb9NtmP-.cjs';
24
24
  export { E as EverfurChatAnswerStyle, a as EverfurChatComposerPlaceholder, b as EverfurChatComposerStyle, c as EverfurChatHistoryBarSetting, d as EverfurChatHistoryStyle, e as EverfurChatSendButtonSetting, f as EverfurChatTopCardSetting, g as EverfurHealthPlanLayout, h as EverfurPresentation, i as EverfurPresentationInput, j as EverfurSafetyDisclaimerPlacement } from '../../presentation.d-tJe7zo12.cjs';
25
25
  export { c as EverfurChatTopCardRow } from '../../threadOptions.d-CW51PyVd.cjs';
26
26
  import '../../resolve.d-BTC3b6FW.cjs';
27
- import '../../requestFunnel.d-BdTkSu0W.cjs';
27
+ import '../../requestFunnel.d-fmBVWfsj.cjs';
28
28
  import '../../models.d-BN53M9sU.cjs';
29
29
 
30
30
  /**
@@ -1,21 +1,21 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
2
  import { ReactNode, CSSProperties, Ref } from 'react';
3
- import { H as HealthPlanFocusProps, f as EverfurHealthPlanProps, d as EverfurChatTopCard } from '../../threadOptions.d-Suof8GCE.js';
4
- export { j as HealthPlanCheckoutLine, k as HealthPlanFocusLayer, l as HealthPlanFocusOptions, m as HealthPlanFocusOverlay, n as HealthPlanFocusOverlayControls, o as HealthPlanProductPageOptions, p as HealthPlanTodayOptions } from '../../threadOptions.d-Suof8GCE.js';
3
+ import { H as HealthPlanFocusProps, f as EverfurHealthPlanProps, d as EverfurChatTopCard } from '../../threadOptions.d-BlpnY5xP.js';
4
+ export { j as HealthPlanCheckoutLine, k as HealthPlanFocusLayer, l as HealthPlanFocusOptions, m as HealthPlanFocusOverlay, n as HealthPlanFocusOverlayControls, o as HealthPlanProductPageOptions, p as HealthPlanTodayOptions } from '../../threadOptions.d-BlpnY5xP.js';
5
5
  import { E as EverfurError } from '../../EverfurError.d-8NHtlgzA.js';
6
6
  export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../../EverfurError.d-8NHtlgzA.js';
7
- import { H as HealthPlanItem } from '../../healthPlanRepository.d-CuumbPDh.js';
8
- export { g as HEALTH_PLAN_REASON_KINDS, a as HealthPlan, d as HealthPlanItemDetail, h as HealthPlanItemDose, i as HealthPlanItemReview, j as HealthPlanReason, c as HealthPlanReasonKind, b as HealthPlanRepository, f as HealthPlanRepositoryDeps, e as HealthPlanRuntime, k as createHealthPlanRepository, l as createHealthPlanRepositoryOver, m as healthPlanFromWire } from '../../healthPlanRepository.d-CuumbPDh.js';
9
- import { c as HealthPlanCardOptions, d as HealthPlanImageVariant, e as HealthPlanReasonVariant, H as HealthPlanPriceFormat, b as HealthPlanCart$1 } from '../../layout.d-C8UKQW3I.js';
10
- export { E as EverfurHealthPlanOptions, f as EverfurHealthPlanState, g as EverfurHealthPlanStatus, h as HEALTH_PLAN_LAYOUT_DEFAULTS, i as HealthPlanAddButtonSize, j as HealthPlanAddedVariant, k as HealthPlanCardShadow, l as HealthPlanCartBarPlacement, m as HealthPlanCartBarVisibility, n as HealthPlanCategoryVariant, o as HealthPlanFontWeight, p as HealthPlanHeaderContext, a as HealthPlanLayoutProps, q as HealthPlanPageContext, r as HealthPlanShadow, s as formatHealthPlanPrice, t as formatHealthPlanPriceWith, u as healthPlanCart, v as isHealthPlanSessionRequired, w as showHealthPlanCartBar, x as useEverfurHealthPlan, y as useEverfurHealthPlanRepository } from '../../layout.d-C8UKQW3I.js';
11
- import { q as HealthPlanTodayIcon, d as HealthPlanFocusCopy, f as HealthPlanFocusIcon, e as HealthPlanFocusClassNames, r as HealthPlanFocusPart, b as HealthPlanPagePet, H as HealthPlanPage } from '../../focus.d-_6rD03Ap.js';
12
- export { s as HEALTH_PLAN_FOCUS_COPY, t as HealthPlanCartCheckoutRequest, u as HealthPlanCheckoutItem, l as HealthPlanCheckoutProvider, v as HealthPlanCheckoutRefusal, w as HealthPlanCheckoutRequest, x as HealthPlanCheckoutSession, y as HealthPlanCheckoutState, z as HealthPlanCheckoutStatus, c as HealthPlanFocusDesign, n as HealthPlanFocusExtra, A as HealthPlanFocusLearnCard, m as HealthPlanFocusPrices, B as HealthPlanFocusReasonRow, C as HealthPlanFocusReport, D as HealthPlanFocusReview, E as HealthPlanFocusSign, F as HealthPlanFocusStep, o as HealthPlanFocusWait, G as HealthPlanOneBoxOffer, h as HealthPlanOneBoxOrder, I as HealthPlanOneBoxOrderPage, J as HealthPlanOneBoxOrderPageOptions, K as HealthPlanOrderStatus, L as HealthPlanOrderTracking, M as HealthPlanOrderTrackingStatus, j as HealthPlanPageRepository, a as HealthPlanPetWords, N as HealthPlanPurchase, k as HealthPlanShopOrder, g as HealthPlanSubscription, p as HealthPlanSubscriptionQuote, O as HealthPlanSubscriptionRenewal, i as HealthPlanSubscriptionRepository, P as HealthPlanSubscriptionStatus, Q as HealthPlanSubscriptionStep, R as HealthPlanSubscriptionSupply, S as HealthPlanTrackStep, T as createHealthPlanPageRepository, U as createHealthPlanPageRepositoryOver, V as createHealthPlanSubscriptionRepository, W as createHealthPlanSubscriptionRepositoryOver, X as formatHealthPlanDay, Y as healthPlanCheckoutRefusal, Z as healthPlanCheckoutSessionFromWire, _ as healthPlanCheckoutStateFromWire, $ as healthPlanFocusCopyFor, a0 as healthPlanFocusDesignFromWire, a1 as healthPlanOneBoxOrderFromWire, a2 as healthPlanOneBoxOrderPageFromWire, a3 as healthPlanOrderTrackingFromWire, a4 as healthPlanPageFromWire, a5 as healthPlanPetWords, a6 as healthPlanSubscriptionFromWire, a7 as healthPlanSubscriptionQuoteFromWire, a8 as isHealthPlanSubscriptionUnavailable } from '../../focus.d-_6rD03Ap.js';
13
- import { H as HealthPlanAskRowData, a as HealthPlanBylineData, b as HealthPlanCheckupData, c as HealthPlanExtrasData, d as HealthPlanFineData, e as HealthPlanFocusCardData, f as HealthPlanHeaderData, g as HealthPlanJumpStripData, h as HealthPlanNoPickData, i as HealthPlanOtherItemsData, j as HealthPlanSignsData, k as HealthPlanTipsData, l as HealthPlanToastData, m as HealthPlanToolbarData, n as HealthPlanVetQuoteData, o as HealthPlanWaitCardData, p as HealthPlanBuyButtonData, q as HealthPlanBuyOptionsData, r as HealthPlanDoseCardData, s as HealthPlanIngredientsData, t as HealthPlanProductPickData, u as HealthPlanProofData, v as HealthPlanReviewsData, w as HealthPlanSubscribedBoxData, x as HealthPlanTrustRowData, y as HealthPlanWhyItFitsData, z as HealthPlanCartCheckoutData, A as HealthPlanCheckoutSheetData, B as HealthPlanManageSheetData, C as HealthPlanWeightSheetData, D as HealthPlanCartScreenData, E as HealthPlanOrderData, F as HealthPlanOrdersData, G as HealthPlanPlacedData, I as HealthPlanStartedData } from '../../useHealthPlanSubscription.d-mOHP3D8V.js';
14
- export { J as HealthPlanBuyMode, K as HealthPlanCartDock, L as HealthPlanCartHandlers, M as HealthPlanCartScope, N as HealthPlanCartScopeProps, O as HealthPlanController, P as HealthPlanExtraRow, Q as HealthPlanFactRow, R as HealthPlanFocusContent, S as HealthPlanIconLabel, T as HealthPlanNextRow, U as HealthPlanNoVetListener, V as HealthPlanOtherItemRow, W as HealthPlanPageOptions, X as HealthPlanPagePhase, Y as HealthPlanPageState, Z as HealthPlanPhase, _ as HealthPlanRecordsLandedListener, $ as HealthPlanRecordsLandedSource, a0 as HealthPlanShopLineView, a1 as HealthPlanShopOrderView, a2 as HealthPlanSnapshot, a3 as HealthPlanSubscriptionOptions, a4 as HealthPlanSubscriptionPhase, a5 as HealthPlanSubscriptionState, a6 as HealthPlanVet, a7 as healthPlanNoVet, a8 as notifyHealthPlanRecordsLanded, a9 as onHealthPlanNoVet, aa as onHealthPlanRecordsLanded, ab as setHealthPlanNoVet, ac as useHealthPlanCartDock, ad as useHealthPlanPage, ae as useHealthPlanPageRepository, af as useHealthPlanSubscription, ag as useHealthPlanSubscriptionRepository } from '../../useHealthPlanSubscription.d-mOHP3D8V.js';
15
- import { c as HealthPlanTopCardCopy, b as HealthPlanTopCardResults } from '../../usePresentation.d-j0xDpOoe.js';
16
- export { d as HEALTH_PLAN_COPY, e as HEALTH_PLAN_COPY_PLACEHOLDERS, f as HEALTH_PLAN_REASON_LABELS, g as HEALTH_PLAN_TEMPLATES, h as HEALTH_PLAN_TOP_CARD_COPY, H as HealthPlanBlanksFacts, i as HealthPlanBlanksPhase, a as HealthPlanEmptyCopy, j as HealthPlanTopCardFocus, k as HealthPlanTopCardPet, l as healthPlanBlanksFacts, m as healthPlanNextShotsAt, n as healthPlanRecordsWeightKg, u as useEverfurPresentation } from '../../usePresentation.d-j0xDpOoe.js';
17
- export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity.d--2ec4agf.js';
18
- export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../../config.d-Bf15Q27G.js';
7
+ import { H as HealthPlanItem } from '../../healthPlanRepository.d-D8a8n9Jj.js';
8
+ export { g as HEALTH_PLAN_REASON_KINDS, a as HealthPlan, d as HealthPlanItemDetail, h as HealthPlanItemDose, i as HealthPlanItemReview, j as HealthPlanReason, c as HealthPlanReasonKind, b as HealthPlanRepository, f as HealthPlanRepositoryDeps, e as HealthPlanRuntime, k as createHealthPlanRepository, l as createHealthPlanRepositoryOver, m as healthPlanFromWire } from '../../healthPlanRepository.d-D8a8n9Jj.js';
9
+ import { c as HealthPlanCardOptions, d as HealthPlanImageVariant, e as HealthPlanReasonVariant, H as HealthPlanPriceFormat, b as HealthPlanCart$1 } from '../../layout.d-BZbIqvZ_.js';
10
+ export { E as EverfurHealthPlanOptions, f as EverfurHealthPlanState, g as EverfurHealthPlanStatus, h as HEALTH_PLAN_LAYOUT_DEFAULTS, i as HealthPlanAddButtonSize, j as HealthPlanAddedVariant, k as HealthPlanCardShadow, l as HealthPlanCartBarPlacement, m as HealthPlanCartBarVisibility, n as HealthPlanCategoryVariant, o as HealthPlanFontWeight, p as HealthPlanHeaderContext, a as HealthPlanLayoutProps, q as HealthPlanPageContext, r as HealthPlanShadow, s as formatHealthPlanPrice, t as formatHealthPlanPriceWith, u as healthPlanCart, v as isHealthPlanSessionRequired, w as showHealthPlanCartBar, x as useEverfurHealthPlan, y as useEverfurHealthPlanRepository } from '../../layout.d-BZbIqvZ_.js';
11
+ import { q as HealthPlanTodayIcon, d as HealthPlanFocusCopy, f as HealthPlanFocusIcon, e as HealthPlanFocusClassNames, r as HealthPlanFocusPart, b as HealthPlanPagePet, H as HealthPlanPage } from '../../focus.d-BmER-Wo9.js';
12
+ export { s as HEALTH_PLAN_FOCUS_COPY, t as HealthPlanCartCheckoutRequest, u as HealthPlanCheckoutItem, l as HealthPlanCheckoutProvider, v as HealthPlanCheckoutRefusal, w as HealthPlanCheckoutRequest, x as HealthPlanCheckoutSession, y as HealthPlanCheckoutState, z as HealthPlanCheckoutStatus, c as HealthPlanFocusDesign, n as HealthPlanFocusExtra, A as HealthPlanFocusLearnCard, m as HealthPlanFocusPrices, B as HealthPlanFocusReasonRow, C as HealthPlanFocusReport, D as HealthPlanFocusReview, E as HealthPlanFocusSign, F as HealthPlanFocusStep, o as HealthPlanFocusWait, G as HealthPlanOneBoxOffer, h as HealthPlanOneBoxOrder, I as HealthPlanOneBoxOrderPage, J as HealthPlanOneBoxOrderPageOptions, K as HealthPlanOrderStatus, L as HealthPlanOrderTracking, M as HealthPlanOrderTrackingStatus, j as HealthPlanPageRepository, a as HealthPlanPetWords, N as HealthPlanPurchase, k as HealthPlanShopOrder, g as HealthPlanSubscription, p as HealthPlanSubscriptionQuote, O as HealthPlanSubscriptionRenewal, i as HealthPlanSubscriptionRepository, P as HealthPlanSubscriptionStatus, Q as HealthPlanSubscriptionStep, R as HealthPlanSubscriptionSupply, S as HealthPlanTrackStep, T as createHealthPlanPageRepository, U as createHealthPlanPageRepositoryOver, V as createHealthPlanSubscriptionRepository, W as createHealthPlanSubscriptionRepositoryOver, X as formatHealthPlanDay, Y as healthPlanCheckoutRefusal, Z as healthPlanCheckoutSessionFromWire, _ as healthPlanCheckoutStateFromWire, $ as healthPlanFocusCopyFor, a0 as healthPlanFocusDesignFromWire, a1 as healthPlanOneBoxOrderFromWire, a2 as healthPlanOneBoxOrderPageFromWire, a3 as healthPlanOrderTrackingFromWire, a4 as healthPlanPageFromWire, a5 as healthPlanPetWords, a6 as healthPlanSubscriptionFromWire, a7 as healthPlanSubscriptionQuoteFromWire, a8 as isHealthPlanSubscriptionUnavailable } from '../../focus.d-BmER-Wo9.js';
13
+ import { H as HealthPlanAskRowData, a as HealthPlanBylineData, b as HealthPlanCheckupData, c as HealthPlanExtrasData, d as HealthPlanFineData, e as HealthPlanFocusCardData, f as HealthPlanHeaderData, g as HealthPlanJumpStripData, h as HealthPlanNoPickData, i as HealthPlanOtherItemsData, j as HealthPlanSignsData, k as HealthPlanTipsData, l as HealthPlanToastData, m as HealthPlanToolbarData, n as HealthPlanVetQuoteData, o as HealthPlanWaitCardData, p as HealthPlanBuyButtonData, q as HealthPlanBuyOptionsData, r as HealthPlanDoseCardData, s as HealthPlanIngredientsData, t as HealthPlanProductPickData, u as HealthPlanProofData, v as HealthPlanReviewsData, w as HealthPlanSubscribedBoxData, x as HealthPlanTrustRowData, y as HealthPlanWhyItFitsData, z as HealthPlanCartCheckoutData, A as HealthPlanCheckoutSheetData, B as HealthPlanManageSheetData, C as HealthPlanWeightSheetData, D as HealthPlanCartScreenData, E as HealthPlanOrderData, F as HealthPlanOrdersData, G as HealthPlanPlacedData, I as HealthPlanStartedData } from '../../useHealthPlanSubscription.d-BAU8x02a.js';
14
+ export { J as HealthPlanBuyMode, K as HealthPlanCartDock, L as HealthPlanCartHandlers, M as HealthPlanCartScope, N as HealthPlanCartScopeProps, O as HealthPlanController, P as HealthPlanExtraRow, Q as HealthPlanFactRow, R as HealthPlanFocusContent, S as HealthPlanIconLabel, T as HealthPlanNextRow, U as HealthPlanNoVetListener, V as HealthPlanOtherItemRow, W as HealthPlanPageOptions, X as HealthPlanPagePhase, Y as HealthPlanPageState, Z as HealthPlanPhase, _ as HealthPlanRecordsLandedListener, $ as HealthPlanRecordsLandedSource, a0 as HealthPlanShopLineView, a1 as HealthPlanShopOrderView, a2 as HealthPlanSnapshot, a3 as HealthPlanSubscriptionOptions, a4 as HealthPlanSubscriptionPhase, a5 as HealthPlanSubscriptionState, a6 as HealthPlanVet, a7 as healthPlanNoVet, a8 as notifyHealthPlanRecordsLanded, a9 as onHealthPlanNoVet, aa as onHealthPlanRecordsLanded, ab as setHealthPlanNoVet, ac as useHealthPlanCartDock, ad as useHealthPlanPage, ae as useHealthPlanPageRepository, af as useHealthPlanSubscription, ag as useHealthPlanSubscriptionRepository } from '../../useHealthPlanSubscription.d-BAU8x02a.js';
15
+ import { c as HealthPlanTopCardCopy, b as HealthPlanTopCardResults } from '../../usePresentation.d-kSW7ttTl.js';
16
+ export { d as HEALTH_PLAN_COPY, e as HEALTH_PLAN_COPY_PLACEHOLDERS, f as HEALTH_PLAN_REASON_LABELS, g as HEALTH_PLAN_TEMPLATES, h as HEALTH_PLAN_TOP_CARD_COPY, H as HealthPlanBlanksFacts, i as HealthPlanBlanksPhase, a as HealthPlanEmptyCopy, j as HealthPlanTopCardFocus, k as HealthPlanTopCardPet, l as healthPlanBlanksFacts, m as healthPlanNextShotsAt, n as healthPlanRecordsWeightKg, u as useEverfurPresentation } from '../../usePresentation.d-kSW7ttTl.js';
17
+ export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity.d-Bj7WLFXU.js';
18
+ export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, h as FreeCapRefusal, H as HeartbeatFrame, i as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, j as UrgencyLevel } from '../../config.d-Ds1iysW4.js';
19
19
  import { P as PetRef } from '../../ids.d-B2GAAifq.js';
20
20
  export { B as Brand, C as ConversationId, R as RecordsRequestId, U as UserRef, _ as __brand } from '../../ids.d-B2GAAifq.js';
21
21
  export { E as EverfurResult } from '../../EverfurResult.d-D_-254ZY.js';
@@ -24,7 +24,7 @@ export { L as LifecyclePort } from '../../LifecyclePort.d-Cb9NtmP-.js';
24
24
  export { E as EverfurChatAnswerStyle, a as EverfurChatComposerPlaceholder, b as EverfurChatComposerStyle, c as EverfurChatHistoryBarSetting, d as EverfurChatHistoryStyle, e as EverfurChatSendButtonSetting, f as EverfurChatTopCardSetting, g as EverfurHealthPlanLayout, h as EverfurPresentation, i as EverfurPresentationInput, j as EverfurSafetyDisclaimerPlacement } from '../../presentation.d-tJe7zo12.js';
25
25
  export { c as EverfurChatTopCardRow } from '../../threadOptions.d-CW51PyVd.js';
26
26
  import '../../resolve.d-BTC3b6FW.js';
27
- import '../../requestFunnel.d-BDuYHZMa.js';
27
+ import '../../requestFunnel.d-D8UsEFed.js';
28
28
  import '../../models.d-Bhq9p6Wa.js';
29
29
 
30
30
  /**
@@ -1,7 +1,7 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
2
  "use client";
3
- import{PlanNeedCard,TipCard,buttonCss,planNeedCardCss,tipCardCss,Button}from"../../chunk-PSBCFPJG.js";import{PLAN_CLASS_PREFIX,planTokens,PLAN_PRESS,PLAN_ICONS,PLAN_RULES,err,ok,PLAN_CONTEXT,EverfurConfigError,parseUrl,PLAN_BEFORE_CLASS}from"../../chunk-HGQOS366.js";import{useEverfurTheme,EVERFUR_LIGHT,EVERFUR_DARK,toRgba,relativeLuminance,faceCss,readableOn,withAlpha,renderRuntimePart,useDsStyles,summaryListCss,ThemeProvider,useEfdsPart,cx,dataOf,SummaryList,headingFaceCss,resolveTheme,usePressFeedback,webPressOf,v3Palette,everfurWebTheme}from"../../chunk-PTO64HJN.js";import{createContext,lazy,useMemo,useEffect,useRef,useId,useState,useContext,useCallback,useLayoutEffect,createElement,useSyncExternalStore,Fragment as Fragment$1,isValidElement,cloneElement,forwardRef,Component,useImperativeHandle,Suspense}from"react";import{jsx,jsxs,Fragment}from"react/jsx-runtime";import{createPortal}from"react-dom";var PLAN_DS_PRESET={ink:"#10462E",go:"#07C168",alert:"#C03410",tintSage:"#E6ECE8"},DS_THEME_CONTEXT=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1");function dsThemeContext(){let host=globalThis,ctx=host[DS_THEME_CONTEXT];return ctx===void 0&&(ctx=createContext(null),ctx.displayName="EverfurThemeContext",host[DS_THEME_CONTEXT]=ctx),ctx}var same=(a,b)=>a.toUpperCase()===b.toUpperCase();function isDark(bg){let rgba=toRgba(bg);return rgba!==null&&relativeLuminance(rgba)<.18}var cache=/* @__PURE__ */new WeakMap;function planThemeWithHost(theme,host){if(host===null)return theme;let byHost=cache.get(theme);byHost===void 0&&(byHost=/* @__PURE__ */new WeakMap,cache.set(theme,byHost));let out=byHost.get(host);return out===void 0&&(out=overlay(theme,host),byHost.set(host,out)),out}function overlay(theme,host){let h=host.colors,inkMoved=!same(h.ink,PLAN_DS_PRESET.ink),goMoved=!same(h.go,PLAN_DS_PRESET.go),darkHost=theme===EVERFUR_LIGHT&&isDark(h.bg),base3=darkHost?EVERFUR_DARK:theme,c=base3.color,free=key=>darkHost||c[key]===EVERFUR_LIGHT.color[key],color={};inkMoved&&free("primary")&&(Object.assign(color,{primary:h.ink,onPrimary:h.onInk,brand:h.ink,brandInk:h.ink}),free("linkInk")&&(color.linkInk=h.ink),!goMoved&&free("accent")&&Object.assign(color,{accent:h.ink,onAccent:h.onInk})),goMoved&&free("accent")&&Object.assign(color,{accent:h.go,onAccent:h.onGo}),!same(h.alert,PLAN_DS_PRESET.alert)&&free("danger")&&(color.danger=h.alert),!same(h.tintSage,PLAN_DS_PRESET.tintSage)&&free("brandSoft")&&(color.brandSoft=h.tintSage,free("brandSofter")&&(color.brandSofter=h.tintSage)),darkHost&&Object.assign(color,{background:h.bg,surface:h.surface,text:{...c.text,primary:h.text,muted:h.muted},borderRingCream:h.line});let reduced=host.motion?.reduced===true&&!base3.motion.reducedMotion;return!darkHost&&!reduced&&Object.keys(color).length===0?theme:{...base3,color:{...c,...color},...reduced?{motion:{...base3.motion,reducedMotion:true}}:{}}}function usePlanTheme(){let theme=useEverfurTheme(),host=useContext(dsThemeContext());return useMemo(()=>planThemeWithHost(theme,host),[theme,host])}var HEALTH_PLAN_COPY=/* @__PURE__ */Object.freeze({loading:"Loading",retry:"Try again",signedOut:"Sign in required",addToCart:"Add to cart",added:"Added",remove:"Remove",checkout:"Checkout",subtotal:"Subtotal",sample:"Sample",cartEmpty:"Your cart is empty.",choosePet:"Choose a pet",emptyTitle:"",emptyBody:"",emptyAsk:""}),COPY_ASKS=/* @__PURE__ */Object.freeze({emptyTitle:true,emptyBody:true,emptyAsk:true}),HEALTH_PLAN_REASON_LABELS=/* @__PURE__ */Object.freeze({dna:"",records:"Records",inside:"Inside",profile:""}),HEALTH_PLAN_TEMPLATES=/* @__PURE__ */Object.freeze({planTitle:petName=>`${petName}'s care plan`,cartLabel:brand=>`${brand} cart`}),HEALTH_PLAN_COPY_PLACEHOLDERS=/* @__PURE__ */Object.freeze([...Object.keys(HEALTH_PLAN_COPY).filter(key=>COPY_ASKS[key]===true&&HEALTH_PLAN_COPY[key]==="").map(key=>`HEALTH_PLAN_COPY.${key}`),...["profile"].filter(kind=>HEALTH_PLAN_REASON_LABELS[kind]==="").map(kind=>`HEALTH_PLAN_REASON_LABELS.${kind}`)]);var HEALTH_PLAN_LAYOUT_DEFAULTS=/* @__PURE__ */Object.freeze({imageVariant:"wide",reasonVariant:"pills",cartBarVisibility:"whenItems",cartBarPlacement:"sticky",addButtonSize:"full",addedVariant:"link",categoryVariant:"text",showCategory:false,cardShadow:false,cardBorder:true});function healthPlanWrites(plan,setInPlan){return{setInPlan:setInPlan,addAll:async()=>{let missing=(plan?.items??[]).filter(item=>!item.inPlan);return(await Promise.all(missing.map(item=>setInPlan(item.productId,true)))).every(Boolean)}}}function showHealthPlanCartBar(visibility,count){return(visibility??HEALTH_PLAN_LAYOUT_DEFAULTS.cartBarVisibility)==="always"||count>0}var HEALTH_PLAN_CARD_OPTION_KEYS=/* @__PURE__ */Object.freeze(["showCategory","cardShadow","cardBorder","addButtonSize","addButtonFontSize","addedVariant","categoryVariant","cardPadding","itemTitleSize","itemTitleWeight","priceSize","priceWeight","reasonTextSize","reasonLabelWidth","reasonGap"]);function pickHealthPlanCardOptions(props){let out={};for(let key of HEALTH_PLAN_CARD_OPTION_KEYS)props[key]!==void 0&&(out[key]=props[key]);return out}function healthPlanAddButtonHeight(size){let height=typeof size=="number"&&Number.isFinite(size)&&size>0?size:size==="compact"?32:44;return{height:height,hit:Math.max(44,height)}}function healthPlanLength(value){return typeof value=="number"&&Number.isFinite(value)&&value>=0?value:null}function healthPlanTitleOffset(titleGap,sectionGap){let gap=healthPlanLength(titleGap);return gap===null?0:gap-sectionGap}function isHealthPlanSessionRequired(error){return error!==null&&(error.reasonCode==="session_required"||error.code==="sessionRequired")}var DOCK_CONTEXT_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#HealthPlanCartDock@v1"),globalDockHost=globalThis,DockContext=globalDockHost[DOCK_CONTEXT_SYMBOL]??(globalDockHost[DOCK_CONTEXT_SYMBOL]=createContext(null));function HealthPlanCartScope({children:children}){let[dock,setDock]=useState(null),store=useMemo(()=>({dock:dock,publish:setDock}),[dock]);return createElement(DockContext.Provider,{value:store},children)}function useHealthPlanCartDock(){return useContext(DockContext)?.dock??null}function usePublishHealthPlanCart(enabled,cart,busy,petRef,plan,setInPlan){let publish=useContext(DockContext)?.publish,latest=useRef(setInPlan);useEffect(()=>{latest.current=setInPlan},[setInPlan]);let writes=useMemo(()=>healthPlanWrites(plan,(productId,inPlan)=>latest.current(productId,inPlan)),[plan]);useEffect(()=>{if(!(publish===void 0||!enabled))return publish(/* @__PURE__ */Object.freeze({cart:cart,busy:busy,petRef:petRef,plan:plan,...writes})),()=>publish(null)},[publish,enabled,cart,busy,petRef,plan,writes])}function healthPlanPetWords(name,sex){let n=name?.trim()??"",named=n===""?"your pet":n,Named=n===""?"Your pet":n;return sex==="female"?{name:named,Name:Named,poss:"her",Poss:"Her",obj:"her"}:sex==="male"?{name:named,Name:Named,poss:"his",Poss:"His",obj:"him"}:{name:named,Name:Named,poss:`${named}'s`,Poss:`${Named}'s`,obj:named}}var cartRenewal=p=>p===null?"":`${p.productName} renews every ${p.intervalDays} days at ${p.box??""} until you cancel; skip or cancel anytime in the app.`,HEALTH_PLAN_NO_SHIP_DAY_COPY=/* @__PURE__ */Object.freeze({onceFine:"",cartFine:cartRenewal,startedWhat:()=>""});function healthPlanFocusCopyFor(pet){let w=healthPlanPetWords(pet.name,pet.sex),nameOf=p=>p.petName?.trim()||w.name,NameOf=p=>p.petName?.trim()||w.Name,copy=/* @__PURE__ */Object.freeze({jumpKicker:(p,subscribed)=>subscribed?`In ${w.poss} plan, every ${p.intervalDays} days`:p.offer?`${p.discountPercent}% off ${w.poss} first box`:p.intervalDays>0?`Ships every ${p.intervalDays} days`:copy.onceLine(p),optionsLabel:"How to buy",subscribe:"Subscribe",bestValue:"Best value",subscribeLine:p=>p.offer?`First box, then ${p.box??""}`:`${p.box??""} every ${p.intervalDays} days`,priceLine:p=>p.offer?`${p.discountPercent}% off the first box. Ships every ${p.intervalDays} days.`:p.intervalDays>0?`Ships every ${p.intervalDays} days.`:copy.onceOffer(p),once:"One box",onceLine:p=>p.onceDiscountPercent>0?`${p.onceDiscountPercent}% off, ships once`:"Ships once",buyOnce:p=>`Buy one box, ${p.once??p.box??""}`,subscribed:"Subscribed",subscribedLine:(p,next)=>next===null?`Every ${p.intervalDays} days`:`Every ${p.intervalDays} days · next box ${next}`,manage:"Manage",checkoutKicker:"Checkout",checkoutTitle:p=>`Checkout: ${p.productName}`,checkoutOffer:p=>`${p.discountPercent}% off your first box.`,shipsEvery:"Ships every",days:n=>`${n} days`,buyOnceOption:"Buy once",checkoutGo:(_p,subscribe,today)=>`${subscribe?"Subscribe":"Buy now"} · ${today} today`,renews:p=>`Renews every ${p.intervalDays} days at ${p.box??""} until you cancel; skip or cancel anytime in the app.`,onceFine:"One box, ships tomorrow.",onceOffer:p=>p.onceDiscountPercent>0?`${p.onceDiscountPercent}% off, ships once.`:"Ships once.",checkoutNote:"",close:"Close",startedTitle:p=>`${NameOf(p)}'s plan has started.`,orderedTitle:()=>"Order placed.",startedWhat:p=>`${p.productName} ships tomorrow.`,startedNote:"",startedSteps:"What happens next",tomorrow:"Tomorrow",firstBoxShips:`${w.Poss} first box ships.`,trackingComesByText:"Tracking comes by text.",checkin:q=>q===null?"A 2-week check-in by text.":`A 2-week check-in by text: ${q}`,refill:`A text 3 days before ${w.poss} next box. Reply SKIP to skip it.`,nextBoxShips:p=>`${w.Poss} next box ships, ${p.box??""}.`,startedDone:`Back to ${w.poss} plan`,manageKicker:"Your subscription",manageTitle:p=>`Manage ${p.productName}`,skip:"Skip the next box",cancel:"Cancel subscription",skipped:(_p,next)=>next===null?"Skipped.":`Skipped. ${w.Poss} next box ships ${next}.`,cancelled:p=>`${p.productName} is cancelled. Restart it from ${w.poss} plan anytime.`,orders:"Orders",startedHeader:"Subscribed",placedHeader:"Order placed",cartCheckoutTitle:"Checkout",orderNote:"",cartLabel:n=>n>0?`Cart, ${n} item${n>1?"s":""}`:"Cart, empty",addToCart:price=>`Add to cart · ${price}`,viewCart:"View cart",addedToCart:(p,subscription)=>`${p.productName} is in your cart${subscription?", as a subscription":""}.`,removedFromCart:name=>`${name} is out of your cart.`,cartTitle:"Cart",cartEmptyTitle:"Your cart is empty",cartEmptyBody:p=>`${NameOf(p)}'s plan pick lands here when you add it.`,seeOrders:`See ${w.poss} orders`,quantityLabel:name=>`How many: ${name}`,fewer:"One fewer",more:"One more",remove:"Remove",cartSubLine:p=>p.offer?`First box ${p.discountPercent}% off, then ${p.box??""} every ${p.intervalDays} days`:`Every ${p.intervalDays} days`,cartOnceLine:(p,subscribed)=>subscribed?`An extra box. ${w.Poss} plan keeps shipping.`:p.onceDiscountPercent>0?`One box, ${p.onceDiscountPercent}% off`:"One box",cartModeLabel:name=>`How to buy ${name}`,cartModeSubscribe:p=>p.offer?`Subscribe, ${p.discountPercent}% off the first box`:"Subscribe",cartModeOnce:p=>p.onceDiscountPercent>0?`One box, ${p.onceDiscountPercent}% off`:"One box",subtotal:"Subtotal",shipping:"Shipping",shippingValue:"",shippingTag:"",total:"Total",dueToday:"Due today",thenRenews:p=>`Then ${p.productName}`,renewsEvery:p=>`${p.box??""} every ${p.intervalDays} days`,checkoutCart:total=>`Checkout · ${total}`,cartOneAtATime:"",cartSubscriptionApart:"",cartItemSubscription:p=>`Subscription, every ${p.intervalDays} days`,cartItemQuantity:n=>`Qty ${n}`,placeOrder:(total,subscribe)=>`${subscribe?"Place order and subscribe":"Place order"} · ${total}`,cartFine:p=>`${p===null?"":`${cartRenewal(p)} `}Ships tomorrow.`,placedSteps:"What's coming",placedShips:"It ships.",placedArrives:"It arrives at home.",viewOrder:"View order",herSubscription:`${w.Poss} subscription`,nextBox:day=>`Next box ${day}`,everyDays:n=>`Every ${n} days`,ordersHeading:afterSubscription=>afterSubscription?"Orders":`${w.Poss} orders`,ordersFine:"",ordersEmptyTitle:"No orders yet",ordersEmptyBody:p=>`The boxes from ${nameOf(p)}'s plan show up here.`,moreOrders:"",orderSteps:["Ordered","Shipped","Out for delivery","Delivered"],subscriptionBox:"Subscription box",orderTitle:n=>n===null?"Order":`Order ${n}`,arrivesBy:day=>`Arrives by ${day}`,deliveredOn:day=>`Delivered ${day}`,expected:day=>`Expected ${day}`,tracking:"Tracking",trackingByText:"The tracking number comes by text when it ships.",trackOn:carrier=>`Track on ${carrier}`,trackLink:"",inThisOrder:"In this order",orderItemLine:(n,box)=>`Qty ${n}${box?" · subscription box":""}`,paidWith:"Paid with",buyAgain:"Buy again",orderHelp:"Get help with this order",addWeightTitle:`Add ${w.poss} weight to size ${w.poss} dose`,addWeightBody:`From a home scale or ${w.poss} last vet visit.`,connectRecordsTitle:`Connect ${w.poss} vet records`,connectRecordsBody:`${w.Poss} weight, visits and labs make ${w.poss} plan sharper.`,weightKicker:`${w.Poss} weight`,weightTitle:p=>`Add ${nameOf(p)}'s weight`,weightBody:`From a home scale or ${w.poss} last vet visit. ${w.Poss} plan uses it to size ${w.poss} dose.`,weightField:`${w.Poss} weight`,weightUnit:"lb",weightUnitKg:"kg",weightErrorKg:"Enter your pet’s weight",weightError:`Enter ${w.poss} weight in pounds, like 14.1.`,weightSave:`Save ${w.poss} weight`,weightSaved:lb=>`Saved: ${lb} lb. ${w.Poss} dose is sized for ${w.obj}.`,weightSavedKg:kg=>`Saved: ${kg} kg. ${w.Poss} dose is sized for ${w.obj}.`,checkoutFailed:"That didn't go through. Please try again.",builtWith:vet=>`Built with ${vet}`,fromVet:shortName=>`From ${shortName}`,waitVetTips:vet=>`Free tips from ${vet}, built around that risk`,signalsFit:count=>`${count} of ${count} signals fit ${w.Name}`,signalsValue:count=>`${count}/${count}`,noPick:`No supplement for this one. ${w.Poss} vet comes first.`,callYourVet:"Call your vet today",callAVet:"Call a vet today",saveForCheckup:`Save for ${w.poss} next checkup`,savedForCheckup:`Saved for ${w.poss} next checkup`,blanksLabel:`${w.Poss} three blanks`,blanksAsked:clinic=>`Asked ${clinic}`,blanksAskedNoClinic:"",blanksWaitPill:"2 to 5 days",blanksFilledKicker:`From ${w.poss} vet records`,blanksFilled:(filled,total)=>`${filled} of ${total} filled`,blanksWeight:`Keep ${w.obj} at `,blanksWeightSource:`From ${w.poss} vet visits`,blanksDose:(dose,product)=>`${dose} of ${product}`,blanksDoseSource:`Sized to ${w.poss} weight`,blanksShots:`${w.Poss} next shots are due `,blanksShotsSource:`From ${w.poss} clinic`,blankEmpty:"blank",recordsLanded:`${w.Poss} records are in. ${w.Poss} plan now uses ${w.poss} weight and ${w.poss} visits.`,todayLabel:`${w.Poss} Health Plan`,poweredBy:"powered by",poweredByName:"Everfur",seeMore:"See more",seeLess:"See less",reportActions:"Actions to take",openReport:`Open it in ${w.poss} report`,askReport:"Ask about it",fullOpen:`See ${w.poss} full plan`,fullOpenLine:`${w.Poss} vet, reviews and ${w.poss} checkup`,fullClose:`Show ${w.poss} brief plan`,fullCloseLine:`${w.Poss} risk, tips, pick and signs`,hopeNoted:phrases=>`Noted. When ${w.poss} results land, we'll start with ${phrases}.`,productLink:product=>`${product}, see the product`,productPhotos:product=>`${product} photos, swipe for more`,shopAll:"Shop all",madeFor:`Made for ${w.name}`,ratingLine:count=>`· ${count} reviews`,productOffer:p=>`${p.discountPercent}% off ${w.poss} first box`,productEvery:p=>`Every ${p.intervalDays} days`,productOnce:p=>p.onceDiscountPercent>0?`One box, ${p.onceDiscountPercent}% off`:"One box",productExtraBox:"An extra box",productOnPlan:p=>`On ${w.poss} plan, every ${p.intervalDays} days. This adds one extra box.`,quantity:"Quantity",description:"Description",readMore:"Read more",readLess:"Read less",whatsInside:"What's inside",howMuch:"How much",reviewsTitle:"Reviews",reviewCount:count=>`${count} reviews`,reviewsSwipe:"Reviews, swipe for more",readAllReviews:count=>`Read all ${count} reviews`,starsLabel:rating=>`${rating} out of 5 stars`,buyNow:"Buy now"});return copy}var HEALTH_PLAN_FOCUS_COPY=healthPlanFocusCopyFor({sex:"female"});function formatHealthPlanDay(iso,locale){if(iso===null||!/^\d{4}-\d{2}-\d{2}$/.test(iso))return null;let d=/* @__PURE__ */new Date(`${iso}T00:00:00Z`);if(Number.isNaN(d.getTime()))return null;try{return new Intl.DateTimeFormat(locale??"en-US",{month:"short",day:"numeric",timeZone:"UTC"}).format(d)}catch{return iso}}function healthPlanPageDrawsWithoutItems(design){return design!=null&&(design.wait!==void 0||design.pick.hidden===true)}function withoutProductPart(design){return{...design,pick:{...design.pick,none:true,hidden:true}}}var NO_PLAN_ITEM=/* @__PURE__ */Object.freeze({productId:"",partnerSku:null,title:"",description:null,category:null,price:null,currency:null,imageUrl:null,url:null,reasons:[],inPlan:false,sample:false});var noopTelemetry=/* @__PURE__ */Object.freeze({track(){},trackExpectedFailure(){}});var EVERFUR_CONTEXT_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurContext@v1"),globalContextHost=globalThis,EverfurContext=globalContextHost[EVERFUR_CONTEXT_SYMBOL]??(globalContextHost[EVERFUR_CONTEXT_SYMBOL]=createContext(null));EverfurContext.displayName??="EverfurContext";function useEverfurContext(){let ctx=useContext(EverfurContext);if(ctx===null)throw new EverfurConfigError("not-initialized","Everfur hooks must be called inside <EverfurProvider>. Wrap your tree once, high.");return ctx}var HEALTH_PLAN_EVENTS=/* @__PURE__ */Object.freeze({opened:"health_plan.opened",productClicked:"health_plan.product_clicked",checkoutStarted:"health_plan.checkout_started"});function useHealthPlanTelemetry(){return useContext(EverfurContext)?.runtime.registry.services.telemetry??noopTelemetry}var PlanPetContext=createContext(null);function HealthPlanPetScope({petRef:petRef,children:children}){return createElement(PlanPetContext.Provider,{value:petRef},children)}function useHealthPlanBarPet(dockPet){let page=useContext(PlanPetContext),ctx=useContext(EverfurContext);return page??dockPet??ctx?.activePet??null}function useHealthPlanOpened(drawn,petRef,plan){let telemetry=useHealthPlanTelemetry(),sent=useRef(null);useEffect(()=>{if(!drawn||petRef===null||sent.current===petRef)return;sent.current=petRef;let items=plan?.items??[];telemetry.track(HEALTH_PLAN_EVENTS.opened,{petRef:petRef,itemsCount:items.length,inPlanCount:items.filter(item=>item.inPlan).length})},[drawn,petRef,plan,telemetry])}function trackProductClicked(telemetry,petRef,productId,inPlan){telemetry.track(HEALTH_PLAN_EVENTS.productClicked,{petRef:petRef,productId:productId,inPlan:inPlan})}function trackCheckoutStarted(telemetry,petRef,cart){telemetry.track(HEALTH_PLAN_EVENTS.checkoutStarted,{petRef:petRef,itemsCount:cart.count,subtotal:cart.subtotal,currency:cart.currency})}var RETRYABILITY_ROWS=[{wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"AuthorizationException",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"ConflictException",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"DAILY_QUOTA_EXCEEDED",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"FILE_TOO_LARGE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"IDEMPOTENCY_KEY_IN_FLIGHT",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"INVALID_CONTENT_TYPE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"InternalFailureException",envelope:"http_envelope",httpStatus:500,retryable:true},{wireCode:"MethodNotAllowedException",envelope:"http_envelope",httpStatus:405,retryable:false},{wireCode:"NotImplementedException",envelope:"http_envelope",httpStatus:501,retryable:false},{wireCode:"PaymentRequiredException",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ResourceNotFoundException",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"ServiceUnavailableException",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"TIER_UPGRADE_REQUIRED",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ThrottlingException",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"ValidationException",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"accessDenied",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"access_denied",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"anonTokenInvalid",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"attachment_unreadable",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"authExpired",envelope:"http_envelope",httpStatus:401,retryable:true},{wireCode:"authRejected",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"catalog_empty_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"catalog_shrink_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"consent_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_required",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_scope_wrong_route",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"device_cipher_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"email_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"endpoint_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_cursor_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_payload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_not_available",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_unknown",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_required",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_reused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"inbox_cursor_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"insufficientCapability",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"insufficient_scope",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"internal_error",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"invalidRequest",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"invalid_client",envelope:"oauth_error",httpStatus:401,retryable:false},{wireCode:"invalid_client_metadata",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_grant",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_redirect_uri",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_request",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_scope",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_target",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"item_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"linked_account_read_only",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_connection_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"mcp_request_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_request_gone",envelope:"http_envelope",httpStatus:410,retryable:false},{wireCode:"mcp_request_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"not_found",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"open_url_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"partner_visit_link_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"partner_visit_owner_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"partner_visit_pet_already_mapped",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"payload_too_large",envelope:"http_envelope",httpStatus:413,retryable:false},{wireCode:"petRefInUse",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"pet_health_list_removals_unconfirmed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_health_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_not_registered",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"provider_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"rateLimited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"read_target_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_subject_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"record_upload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"records_consent_required",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"sandbox_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_required",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_revoked",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"share_limit_reached",envelope:"http_envelope",httpStatus:429,retryable:false},{wireCode:"slow_down",envelope:"oauth_error",httpStatus:429,retryable:true},{wireCode:"species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"subscription_keys_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"tenant_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"tenant_has_no_capabilities",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tenant_resource_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"tenant_surface_not_enabled",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"timeout",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"token_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"unavailable",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"unrestrictedKeyRequired",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"unsupported_grant_type",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"unsupported_response_type",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"user_ref_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"verify_mint_rate_limited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"verify_mint_refused",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"verify_mint_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"verify_user_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"web_push_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"webhook_endpoint_update_empty",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_endpoint_update_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_url_rejected",envelope:"http_envelope",httpStatus:400,retryable:false}],CONTRACT_RETRYABILITY=/* @__PURE__ */Object.freeze(RETRYABILITY_ROWS.map(row=>/* @__PURE__ */Object.freeze(row)));/* @__PURE__ */Object.freeze(CONTRACT_RETRYABILITY.map(row=>row.wireCode));var NORMALIZED_FOLD=/* @__PURE__ */Object.freeze({ValidationException:"validationFailed",AuthorizationException:"authRejected",PaymentRequiredException:"paymentRequired",AccessDeniedException:"accessDenied",ResourceNotFoundException:"resourceNotFound",ConflictException:"conflict",ThrottlingException:"rateLimited",InternalFailureException:"internalError",NotImplementedException:"notImplemented",ServiceUnavailableException:"serviceUnavailable",MethodNotAllowedException:"validationFailed",authExpired:"authExpired",unavailable:"serviceUnavailable",session_required:"sessionRequired",session_revoked:"authExpired",anonTokenInvalid:"authRejected",accessDenied:"accessDenied",invalidRequest:"sdkUpdateRequired",authRejected:"authRejected",rateLimited:"rateLimited",insufficientCapability:"accessDenied",unrestrictedKeyRequired:"accessDenied",user_ref_invalid:"validationFailed",event_cursor_invalid:"validationFailed",event_filter_invalid:"validationFailed",event_payload_invalid:"validationFailed",event_type_unknown:"validationFailed",idempotency_key_invalid:"validationFailed",idempotency_key_required:"validationFailed",idempotency_key_reused:"idempotencyConflict",payload_too_large:"validationFailed",webhook_url_rejected:"validationFailed",webhook_endpoint_update_empty:"validationFailed",webhook_endpoint_update_invalid:"validationFailed",event_type_not_available:"conflict",record_subject_not_found:"resourceNotFound",records_consent_required:"conflict",record_species_unsupported:"validationFailed",record_upload_invalid:"validationFailed",FILE_TOO_LARGE:"validationFailed",INVALID_CONTENT_TYPE:"validationFailed",attachment_unreadable:"validationFailed",provider_unsupported:"validationFailed",token_invalid:"validationFailed",device_cipher_unavailable:"serviceUnavailable",email_invalid:"validationFailed",consent_required:"validationFailed",consent_invalid:"validationFailed",consent_scope_wrong_route:"validationFailed",IDEMPOTENCY_KEY_IN_FLIGHT:"idempotencyInFlight",IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST:"idempotencyConflict",DAILY_QUOTA_EXCEEDED:"quotaExceeded",TIER_UPGRADE_REQUIRED:"paymentRequired",not_found:"conversationNotFound",timeout:"streamTimeout",internal_error:"internalError",invalid_request:"validationFailed",invalid_client:"authRejected",invalid_grant:"authRejected",unsupported_grant_type:"validationFailed",invalid_scope:"validationFailed",invalid_target:"validationFailed",invalid_redirect_uri:"validationFailed",invalid_client_metadata:"validationFailed",unsupported_response_type:"validationFailed",access_denied:"accessDenied",slow_down:"rateLimited",mcp_request_not_found:"resourceNotFound",mcp_request_gone:"resourceNotFound",mcp_connection_not_found:"resourceNotFound",mcp_request_conflict:"conflict",sandbox_only:"accessDenied",tenant_has_no_capabilities:"conflict",verify_mint_refused:"accessDenied",verify_mint_rate_limited:"rateLimited",verify_mint_unavailable:"serviceUnavailable",verify_user_ref_invalid:"validationFailed",insufficient_scope:"accessDenied",tenant_filter_invalid:"validationFailed",tenant_resource_not_found:"resourceNotFound",tenant_surface_not_enabled:"conflict",pet_health_species_unsupported:"validationFailed",pet_health_list_removals_unconfirmed:"validationFailed",petRefInUse:"conflict",share_limit_reached:"conflict",pet_not_registered:"resourceNotFound",species_unsupported:"validationFailed",partner_visit_owner_only:"accessDenied",partner_visit_link_conflict:"conflict",partner_visit_pet_already_mapped:"conflict",linked_account_read_only:"conflict",catalog_empty_refused:"conflict",catalog_shrink_refused:"conflict",endpoint_not_allowed:"validationFailed",event_id_invalid:"validationFailed",inbox_cursor_invalid:"validationFailed",item_id_invalid:"validationFailed",open_url_not_allowed:"validationFailed",read_target_invalid:"validationFailed",subscription_keys_invalid:"validationFailed",web_push_unavailable:"serviceUnavailable"}),CONTRACT_ERROR_ROWS=/* @__PURE__ */Object.freeze(CONTRACT_RETRYABILITY.map(generated=>/* @__PURE__ */Object.freeze({wireCode:generated.wireCode,envelope:generated.envelope,retryable:generated.retryable,normalized:NORMALIZED_FOLD[generated.wireCode]}))),BY_KEY=new Map(CONTRACT_ERROR_ROWS.map(r=>[r.envelope+r.wireCode.toUpperCase(),r])),ENVELOPE_LOOKUP_ORDER=/* @__PURE__ */Object.freeze(["http_envelope",...[...new Set(CONTRACT_ERROR_ROWS.map(r=>r.envelope))].filter(e=>e!=="http_envelope").sort()]);function contractErrorFor(wireCode,envelope){if(typeof wireCode!="string")return;let key=wireCode.trim().toUpperCase();if(key.length!==0)for(let candidate of[envelope??"http_envelope",...ENVELOPE_LOOKUP_ORDER]){let row=BY_KEY.get(candidate+key);if(row)return row}}var CATEGORY_OF=/* @__PURE__ */Object.freeze({authExpired:"authentication",authRejected:"authentication",sessionRequired:"authentication",identitySignatureRequired:"authentication",accessDenied:"authorization",paymentRequired:"entitlement",quotaExceeded:"rateLimit",rateLimited:"rateLimit",validationFailed:"invalidRequest",sdkUpdateRequired:"invalidRequest",runtimeDisposed:"invalidRequest",conversationNotFound:"notFound",petNotFound:"notFound",resourceNotFound:"notFound",conflict:"conflict",idempotencyConflict:"conflict",idempotencyInFlight:"conflict",streamTimeout:"connection",streamIncomplete:"connection",upstreamLlmTimeout:"connection",serviceUnavailable:"connection",internalError:"server",notImplemented:"server",mediaUploadFailed:"media",moderationBlocked:"policy",unknown:"unknown"});function categoryFor(code){return CATEGORY_OF[code]}function fromWire(wire){let contractRow=contractErrorFor(wire);if(contractRow)return contractRow.normalized;let upper=(wire??"").trim().toUpperCase(),canonical=upper.replace(/[^A-Z0-9]/g,"");if(canonical==="AUTHREJECTED")return"authRejected";if(upper.startsWith("AUTH"))return"authExpired";switch(canonical){case"DAILYQUOTAEXCEEDED":case"QUOTAEXCEEDED":return"quotaExceeded";case"RATELIMITED":case"TOOMANYREQUESTS":case"TELEVETRATELIMITED":return"rateLimited";case"IDEMPOTENCYKEYCONFLICT":case"IDEMPOTENCYCONFLICT":return"idempotencyConflict";case"ACCESSDENIED":case"FORBIDDEN":return"accessDenied";case"IDENTITYSIGNATUREREQUIRED":return"identitySignatureRequired";case"RUNTIMEDISPOSED":return"runtimeDisposed";case"NOTFOUND":case"CONVERSATIONNOTFOUND":return"conversationNotFound";case"PETNOTFOUND":return"petNotFound";case"TIMEOUT":case"STREAMTIMEOUT":return"streamTimeout";case"MEDIAUPLOADFAILED":case"UNRECOGNIZEDVIDEOFORMAT":case"FILETOOSMALL":return"mediaUploadFailed";case"MODERATIONBLOCKED":return"moderationBlocked";case"UPSTREAMLLMTIMEOUT":return"upstreamLlmTimeout";case"INTERNALERROR":case"INTERNALSERVERERROR":return"internalError";case"STREAMINCOMPLETE":case"CHATSTREAMINCOMPLETE":return"streamIncomplete";case"INVALIDANALYSISTYPE":case"INVALIDUPLOADPURPOSE":return"unknown";default:return"unknown"}}var AUTO_RETRYABLE_CODES=/* @__PURE__ */new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function isAutoRetryable(code){return AUTO_RETRYABLE_CODES.has(code)}var RETRYABLE_CONTRACT_CODES=/* @__PURE__ */new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function isRetryableCode(code){return isAutoRetryable(code)||RETRYABLE_CONTRACT_CODES.has(code)}var BACKOFF_BASE_MS=500,BACKOFF_CAP_MS=8e3,MAX_RETRY_ATTEMPTS=4;function backoffDelayMs(attempt,rng=Math.random){let bounded=Math.max(0,attempt),ceiling=Math.min(BACKOFF_BASE_MS*2**bounded,BACKOFF_CAP_MS);return Math.floor(rng()*ceiling)}var ACCESS_DENIED_COPY="This feature isn't available on your account right now.",VALIDATION_FAILED_COPY="Something in that request was not right. Check the details and try again.",USER_FACING_COPY=/* @__PURE__ */Object.freeze({authExpired:"Please sign in again to continue.",authRejected:"Please sign in again to continue.",sessionRequired:"This app needs to be updated to keep using Everfur.",accessDenied:ACCESS_DENIED_COPY,paymentRequired:"This is part of a paid plan.",quotaExceeded:"You have used today's messages. This resets tomorrow.",rateLimited:"You are sending messages quickly. Try again in a few seconds.",validationFailed:VALIDATION_FAILED_COPY,sdkUpdateRequired:"This app needs to be updated to keep using Everfur.",conflict:"That is already running. Wait for it to finish, then try again.",idempotencyConflict:"That message was already delivered.",idempotencyInFlight:"That is still processing. Give it a moment.",conversationNotFound:"This conversation is no longer available.",petNotFound:"We could not find that pet. Please pick a pet and try again.",resourceNotFound:"We could not find that.",streamTimeout:"The response timed out. Tap retry to try again.",mediaUploadFailed:"We could not upload that photo. Please attach it again.",moderationBlocked:"This request cannot be answered here.",upstreamLlmTimeout:"The response timed out. Tap retry to try again.",internalError:"We hit a snag on our end. Please try again.",notImplemented:"That is not available yet.",serviceUnavailable:"That service is briefly unavailable. Try again shortly.",streamIncomplete:"The connection dropped mid-answer. Tap retry to continue.",identitySignatureRequired:ACCESS_DENIED_COPY,runtimeDisposed:VALIDATION_FAILED_COPY,unknown:"Something went wrong. Please try again."}),SESSION_REVOKED_COPY="This session has ended. Please sign in again.",LINKED_ACCOUNT_READ_ONLY="linked_account_read_only";function displayFor(code,wireCode,reasonCode){return code==="conflict"&&reasonCode===LINKED_ACCOUNT_READ_ONLY?ACCESS_DENIED_COPY:(code==="authRejected"||code==="authExpired")&&typeof wireCode=="string"&&wireCode.trim().toLowerCase()==="session_revoked"?SESSION_REVOKED_COPY:userFacingError(code)}function userFacingError(code){return USER_FACING_COPY[code]}function defineHidden(target,key,value){Object.defineProperty(target,key,{value:value,enumerable:false,writable:false,configurable:false})}var REASON_CODE_SHAPE=/^[a-z][a-z0-9_]{0,63}$/;function makeEverfurError(code,opts){let row=contractErrorFor(opts?.wireCode,opts?.wireEnvelope),linkedReadOnly=code==="conflict"&&opts?.reasonCode===LINKED_ACCOUNT_READ_ONLY,error={code:code,category:categoryFor(code),retryable:opts?.retryable??(linkedReadOnly?false:isRetryableCode(code)),displayMessage:displayFor(code,opts?.wireCode,linkedReadOnly?LINKED_ACCOUNT_READ_ONLY:null)};opts?.httpStatus!==void 0&&(error.httpStatus=opts.httpStatus),opts?.requestId&&(error.requestId=opts.requestId),typeof opts?.reasonCode=="string"&&REASON_CODE_SHAPE.test(opts.reasonCode)&&(error.reasonCode=opts.reasonCode);let wait=opts?.retryAfterSeconds;if(typeof wait=="number"&&Number.isFinite(wait)&&wait>=0&&(error.retryAfterSeconds=Math.round(wait)),row);return opts?.wireMessage&&defineHidden(error,"wireMessage",opts.wireMessage),opts?.raw!==void 0&&opts.raw!==null&&defineHidden(error,"raw",opts.raw),/* @__PURE__ */Object.freeze(error)}function assertNever(x){throw new Error(`assertNever: unhandled discriminated-union member ${JSON.stringify(x)}`)}function errorFrame(fields){/* @__PURE__ */
4
- return Object.freeze({kind:"error",terminal:true,code:fields.code,retryable:fields.retryable,wireMessage:fields.wireMessage,synthesized:fields.synthesized,lastEventId:fields.lastEventId,serverRequestId:null})}function mintFailedError(cause,refusal){let message=cause instanceof Error?cause.message:typeof cause=="string"?cause:null;return makeEverfurError("authRejected",{retryable:false,...refusal?.wireCode?{wireCode:refusal.wireCode}:{},...refusal?.requestId?{requestId:refusal.requestId}:{},...message?{wireMessage:message}:{},...cause!=null?{raw:cause}:{}})}function authHeaders(auth){let headers={};return auth.mode==="personalized"?headers.authorization=`Bearer ${auth.token}`:headers["x-everfur-partner-key"]=auth.publishableKey,auth.userRef&&(headers["x-everfur-user-ref"]=auth.userRef),auth.sessionId&&(headers["x-everfur-session-id"]=auth.sessionId),headers}function withAuthHeaders(req,auth){return{...req,headers:{...stripAuthHeaders(req.headers),...authHeaders(auth)}}}function stripAuthHeaders(headers){if(!headers)return{};let out={};for(let[key,value]of Object.entries(headers)){let lower=key.toLowerCase();lower==="authorization"||lower==="x-everfur-partner-key"||(out[key]=value)}return out}async function authedSend(req,ctx){if(ctx.mode==="anonymous")return ctx.transport.request(withAuthHeaders(req,{mode:"anonymous",publishableKey:ctx.publishableKey,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));let token;try{token=await ctx.identity.currentToken()}catch(cause){return ctx.identity.reportRejected?.(),err(mintFailedError(cause))}let first=await ctx.transport.request(withAuthHeaders(req,{mode:"personalized",token:token,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));if(first.ok||first.error.httpStatus!==401)return first;let refreshed;try{refreshed=await ctx.identity.currentToken({forceRefresh:!0})}catch(cause){return ctx.identity.reportRejected?.(),err(mintFailedError(cause,{wireCode:wireCodeOf(first.error.raw),requestId:first.error.requestId}))}let retry=await ctx.transport.request(withAuthHeaders(req,{mode:"personalized",token:refreshed,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));return!retry.ok&&retry.error.httpStatus===401?(ctx.identity.reportRejected?.(),err(refusedAfterRemintError(retry.error))):retry}function refusedAfterRemintError(refusal){let raw=refusal.raw,wireCode=wireCodeOf(raw);return makeEverfurError("authRejected",{retryable:false,...refusal.httpStatus!==void 0?{httpStatus:refusal.httpStatus}:{},...refusal.requestId?{requestId:refusal.requestId}:{},...wireCode?{wireCode:wireCode}:{},...refusal.reasonCode?{reasonCode:refusal.reasonCode}:{},...refusal.wireMessage?{wireMessage:refusal.wireMessage}:{},...raw!=null?{raw:raw}:{}})}function wireCodeOf(body){if(typeof body!="object"||body===null)return null;let b=body,code=(typeof b.error=="object"&&b.error!==null?b.error.code:void 0)??b.code;return typeof code=="string"&&code.length>0?code:null}function networkError(cause){return makeEverfurError("internalError",{retryable:true,wireMessage:describeCause(cause)})}function describeCause(cause){return cause instanceof Error?cause.message:typeof cause=="string"?cause:"network request failed"}var FUNNEL_UNARY_TIMEOUT_MS=3e4,RETRY_OVERRIDE_MAX_MS=BACKOFF_CAP_MS*2,IDEMPOTENCY_HEADER="idempotency-key",MUTATING_METHODS=/* @__PURE__ */new Set(["POST","PUT","PATCH","DELETE"]),NOOP_OBSERVER=/* @__PURE__ */Object.freeze({onEvent(){}}),defaultFunnelTimers=/* @__PURE__ */Object.freeze({setTimeout:(handler,ms)=>setTimeout(handler,ms),clearTimeout:handle=>clearTimeout(handle),now:()=>Date.now()});function seededIdempotencyKey(seed){let safe=seed.trim().replace(/[^A-Za-z0-9_.:-]/g,"-");return safe.length===0?null:`efs_${safe}`.slice(0,128)}function createRequestFunnel(deps){let observer=deps.observer??NOOP_OBSERVER,timers=deps.timers??defaultFunnelTimers,rng=deps.rng??Math.random,sleep=deps.sleep??((ms,signal)=>delayAbortable(ms,timers,signal)),ceiling=deps.maxAttempts??MAX_RETRY_ATTEMPTS,timeoutMs=deps.unaryTimeoutMs??FUNNEL_UNARY_TIMEOUT_MS,mintKey=deps.newIdempotencyKey??defaultIdempotencyKeyFactory(),emit=event=>{try{observer.onEvent(event)}catch{}};async function send(call,req,opts){let perCallMaxAttempts=opts?.maxAttempts,maxAttempts=Math.max(1,perCallMaxAttempts??ceiling),idempotent=opts?.idempotent??MUTATING_METHODS.has(req.method),seeded=opts?.idempotencyKey===void 0?null:seededIdempotencyKey(opts.idempotencyKey),idempotencyKey=idempotent?seeded??mintKey():null,base3=assembleHeaders(req,idempotencyKey),attempt=0;for(;;){let stamp=extra=>/* @__PURE__ */Object.freeze({call:call,method:req.method,path:req.path,attempt:attempt,...idempotencyKey?{idempotencyKey:idempotencyKey}:{},...extra});emit(stamp({phase:"attempt"}));let deadline=boundedSignal(timeoutMs,timers),merged=mergeSignals(deadline.signal,req.signal),settled;try{settled=await authedSend({...base3,signal:merged.signal},deps.auth)}catch(cause){settled=err(networkError(cause))}finally{merged.dispose(),deadline.cancel()}if(settled.ok)return emit(stamp({phase:"settled",ok:true,reason:"ok"})),settled;let error=settled.error,decision=decideRetry(error,attempt,{maxAttempts:maxAttempts,rng:rng,now:timers.now(),aborted:req.signal?.aborted===true,...perCallMaxAttempts!==void 0?{perCallMaxAttempts:perCallMaxAttempts}:{},...deps.errorPolicy!==void 0?{policy:deps.errorPolicy}:{}}),settledEvent={ok:false,code:error.code,reason:decision.reason,...error.httpStatus!==void 0?{httpStatus:error.httpStatus}:{},...error.requestId!==void 0?{requestId:error.requestId}:{}};if(!decision.retry)return emit(stamp({phase:"settled",...settledEvent})),err(error);if(emit(stamp({phase:"retry",...settledEvent,delayMs:decision.delayMs})),await sleep(decision.delayMs,req.signal),req.signal?.aborted===true)return emit(stamp({phase:"settled",...settledEvent,reason:"aborted"})),err(error);attempt+=1}}async function authorize(req){return withAuthHeaders(req,await resolveDeviceAuth(deps.auth))}async function*stream(call,req,signal){emit(
3
+ import{PlanNeedCard,TipCard,buttonCss,planNeedCardCss,tipCardCss,Button}from"../../chunk-D5AYE7FR.js";import{PLAN_CLASS_PREFIX,planTokens,PLAN_PRESS,PLAN_ICONS,PLAN_RULES,err,ok,PLAN_CONTEXT,EverfurConfigError,parseUrl,PLAN_BEFORE_CLASS}from"../../chunk-OMWBGNXK.js";import{useEverfurTheme,EVERFUR_LIGHT,EVERFUR_DARK,toRgba,relativeLuminance,faceCss,readableOn,withAlpha,renderRuntimePart,useDsStyles,summaryListCss,ThemeProvider,useEfdsPart,cx,dataOf,SummaryList,headingFaceCss,resolveTheme,usePressFeedback,webPressOf,v3Palette,everfurWebTheme}from"../../chunk-4YMKIILX.js";import{createContext,lazy,useMemo,useEffect,useRef,useId,useState,useContext,useCallback,useLayoutEffect,createElement,useSyncExternalStore,Fragment as Fragment$1,isValidElement,cloneElement,forwardRef,Component,useImperativeHandle,Suspense}from"react";import{jsx,jsxs,Fragment}from"react/jsx-runtime";import{createPortal}from"react-dom";var PLAN_DS_PRESET={ink:"#10462E",go:"#07C168",alert:"#C03410",tintSage:"#E6ECE8"},DS_THEME_CONTEXT=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1");function dsThemeContext(){let host=globalThis,ctx=host[DS_THEME_CONTEXT];return ctx===void 0&&(ctx=createContext(null),ctx.displayName="EverfurThemeContext",host[DS_THEME_CONTEXT]=ctx),ctx}var same=(a,b)=>a.toUpperCase()===b.toUpperCase();function isDark(bg){let rgba=toRgba(bg);return rgba!==null&&relativeLuminance(rgba)<.18}var cache=/* @__PURE__ */new WeakMap;function planThemeWithHost(theme,host){if(host===null)return theme;let byHost=cache.get(theme);byHost===void 0&&(byHost=/* @__PURE__ */new WeakMap,cache.set(theme,byHost));let out=byHost.get(host);return out===void 0&&(out=overlay(theme,host),byHost.set(host,out)),out}function overlay(theme,host){let h=host.colors,inkMoved=!same(h.ink,PLAN_DS_PRESET.ink),goMoved=!same(h.go,PLAN_DS_PRESET.go),darkHost=theme===EVERFUR_LIGHT&&isDark(h.bg),base3=darkHost?EVERFUR_DARK:theme,c=base3.color,free=key=>darkHost||c[key]===EVERFUR_LIGHT.color[key],color={};inkMoved&&free("primary")&&(Object.assign(color,{primary:h.ink,onPrimary:h.onInk,brand:h.ink,brandInk:h.ink}),free("linkInk")&&(color.linkInk=h.ink),!goMoved&&free("accent")&&Object.assign(color,{accent:h.ink,onAccent:h.onInk})),goMoved&&free("accent")&&Object.assign(color,{accent:h.go,onAccent:h.onGo}),!same(h.alert,PLAN_DS_PRESET.alert)&&free("danger")&&(color.danger=h.alert),!same(h.tintSage,PLAN_DS_PRESET.tintSage)&&free("brandSoft")&&(color.brandSoft=h.tintSage,free("brandSofter")&&(color.brandSofter=h.tintSage)),darkHost&&Object.assign(color,{background:h.bg,surface:h.surface,text:{...c.text,primary:h.text,muted:h.muted},borderRingCream:h.line});let reduced=host.motion?.reduced===true&&!base3.motion.reducedMotion;return!darkHost&&!reduced&&Object.keys(color).length===0?theme:{...base3,color:{...c,...color},...reduced?{motion:{...base3.motion,reducedMotion:true}}:{}}}function usePlanTheme(){let theme=useEverfurTheme(),host=useContext(dsThemeContext());return useMemo(()=>planThemeWithHost(theme,host),[theme,host])}var HEALTH_PLAN_COPY=/* @__PURE__ */Object.freeze({loading:"Loading",retry:"Try again",signedOut:"Sign in required",addToCart:"Add to cart",added:"Added",remove:"Remove",checkout:"Checkout",subtotal:"Subtotal",sample:"Sample",cartEmpty:"Your cart is empty.",choosePet:"Choose a pet",emptyTitle:"",emptyBody:"",emptyAsk:""}),COPY_ASKS=/* @__PURE__ */Object.freeze({emptyTitle:true,emptyBody:true,emptyAsk:true}),HEALTH_PLAN_REASON_LABELS=/* @__PURE__ */Object.freeze({dna:"",records:"Records",inside:"Inside",profile:""}),HEALTH_PLAN_TEMPLATES=/* @__PURE__ */Object.freeze({planTitle:petName=>`${petName}'s care plan`,cartLabel:brand=>`${brand} cart`}),HEALTH_PLAN_COPY_PLACEHOLDERS=/* @__PURE__ */Object.freeze([...Object.keys(HEALTH_PLAN_COPY).filter(key=>COPY_ASKS[key]===true&&HEALTH_PLAN_COPY[key]==="").map(key=>`HEALTH_PLAN_COPY.${key}`),...["profile"].filter(kind=>HEALTH_PLAN_REASON_LABELS[kind]==="").map(kind=>`HEALTH_PLAN_REASON_LABELS.${kind}`)]);var HEALTH_PLAN_LAYOUT_DEFAULTS=/* @__PURE__ */Object.freeze({imageVariant:"wide",reasonVariant:"pills",cartBarVisibility:"whenItems",cartBarPlacement:"sticky",addButtonSize:"full",addedVariant:"link",categoryVariant:"text",showCategory:false,cardShadow:false,cardBorder:true});function healthPlanWrites(plan,setInPlan){return{setInPlan:setInPlan,addAll:async()=>{let missing=(plan?.items??[]).filter(item=>!item.inPlan);return(await Promise.all(missing.map(item=>setInPlan(item.productId,true)))).every(Boolean)}}}function showHealthPlanCartBar(visibility,count){return(visibility??HEALTH_PLAN_LAYOUT_DEFAULTS.cartBarVisibility)==="always"||count>0}var HEALTH_PLAN_CARD_OPTION_KEYS=/* @__PURE__ */Object.freeze(["showCategory","cardShadow","cardBorder","addButtonSize","addButtonFontSize","addedVariant","categoryVariant","cardPadding","itemTitleSize","itemTitleWeight","priceSize","priceWeight","reasonTextSize","reasonLabelWidth","reasonGap"]);function pickHealthPlanCardOptions(props){let out={};for(let key of HEALTH_PLAN_CARD_OPTION_KEYS)props[key]!==void 0&&(out[key]=props[key]);return out}function healthPlanAddButtonHeight(size){let height=typeof size=="number"&&Number.isFinite(size)&&size>0?size:size==="compact"?32:44;return{height:height,hit:Math.max(44,height)}}function healthPlanLength(value){return typeof value=="number"&&Number.isFinite(value)&&value>=0?value:null}function healthPlanTitleOffset(titleGap,sectionGap){let gap=healthPlanLength(titleGap);return gap===null?0:gap-sectionGap}function isHealthPlanSessionRequired(error){return error!==null&&(error.reasonCode==="session_required"||error.code==="sessionRequired")}var DOCK_CONTEXT_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#HealthPlanCartDock@v1"),globalDockHost=globalThis,DockContext=globalDockHost[DOCK_CONTEXT_SYMBOL]??(globalDockHost[DOCK_CONTEXT_SYMBOL]=createContext(null));function HealthPlanCartScope({children:children}){let[dock,setDock]=useState(null),store=useMemo(()=>({dock:dock,publish:setDock}),[dock]);return createElement(DockContext.Provider,{value:store},children)}function useHealthPlanCartDock(){return useContext(DockContext)?.dock??null}function usePublishHealthPlanCart(enabled,cart,busy,petRef,plan,setInPlan){let publish=useContext(DockContext)?.publish,latest=useRef(setInPlan);useEffect(()=>{latest.current=setInPlan},[setInPlan]);let writes=useMemo(()=>healthPlanWrites(plan,(productId,inPlan)=>latest.current(productId,inPlan)),[plan]);useEffect(()=>{if(!(publish===void 0||!enabled))return publish(/* @__PURE__ */Object.freeze({cart:cart,busy:busy,petRef:petRef,plan:plan,...writes})),()=>publish(null)},[publish,enabled,cart,busy,petRef,plan,writes])}function healthPlanPetWords(name,sex){let n=name?.trim()??"",named=n===""?"your pet":n,Named=n===""?"Your pet":n;return sex==="female"?{name:named,Name:Named,poss:"her",Poss:"Her",obj:"her"}:sex==="male"?{name:named,Name:Named,poss:"his",Poss:"His",obj:"him"}:{name:named,Name:Named,poss:`${named}'s`,Poss:`${Named}'s`,obj:named}}var cartRenewal=p=>p===null?"":`${p.productName} renews every ${p.intervalDays} days at ${p.box??""} until you cancel; skip or cancel anytime in the app.`,HEALTH_PLAN_NO_SHIP_DAY_COPY=/* @__PURE__ */Object.freeze({onceFine:"",cartFine:cartRenewal,startedWhat:()=>""});function healthPlanFocusCopyFor(pet){let w=healthPlanPetWords(pet.name,pet.sex),nameOf=p=>p.petName?.trim()||w.name,NameOf=p=>p.petName?.trim()||w.Name,copy=/* @__PURE__ */Object.freeze({jumpKicker:(p,subscribed)=>subscribed?`In ${w.poss} plan, every ${p.intervalDays} days`:p.offer?`${p.discountPercent}% off ${w.poss} first box`:p.intervalDays>0?`Ships every ${p.intervalDays} days`:copy.onceLine(p),optionsLabel:"How to buy",subscribe:"Subscribe",bestValue:"Best value",subscribeLine:p=>p.offer?`First box, then ${p.box??""}`:`${p.box??""} every ${p.intervalDays} days`,priceLine:p=>p.offer?`${p.discountPercent}% off the first box. Ships every ${p.intervalDays} days.`:p.intervalDays>0?`Ships every ${p.intervalDays} days.`:copy.onceOffer(p),once:"One box",onceLine:p=>p.onceDiscountPercent>0?`${p.onceDiscountPercent}% off, ships once`:"Ships once",buyOnce:p=>`Buy one box, ${p.once??p.box??""}`,subscribed:"Subscribed",subscribedLine:(p,next)=>next===null?`Every ${p.intervalDays} days`:`Every ${p.intervalDays} days · next box ${next}`,manage:"Manage",checkoutKicker:"Checkout",checkoutTitle:p=>`Checkout: ${p.productName}`,checkoutOffer:p=>`${p.discountPercent}% off your first box.`,shipsEvery:"Ships every",days:n=>`${n} days`,buyOnceOption:"Buy once",checkoutGo:(_p,subscribe,today)=>`${subscribe?"Subscribe":"Buy now"} · ${today} today`,renews:p=>`Renews every ${p.intervalDays} days at ${p.box??""} until you cancel; skip or cancel anytime in the app.`,onceFine:"One box, ships tomorrow.",onceOffer:p=>p.onceDiscountPercent>0?`${p.onceDiscountPercent}% off, ships once.`:"Ships once.",checkoutNote:"",close:"Close",startedTitle:p=>`${NameOf(p)}'s plan has started.`,orderedTitle:()=>"Order placed.",startedWhat:p=>`${p.productName} ships tomorrow.`,startedNote:"",startedSteps:"What happens next",tomorrow:"Tomorrow",firstBoxShips:`${w.Poss} first box ships.`,trackingComesByText:"Tracking comes by text.",checkin:q=>q===null?"A 2-week check-in by text.":`A 2-week check-in by text: ${q}`,refill:`A text 3 days before ${w.poss} next box. Reply SKIP to skip it.`,nextBoxShips:p=>`${w.Poss} next box ships, ${p.box??""}.`,startedDone:`Back to ${w.poss} plan`,manageKicker:"Your subscription",manageTitle:p=>`Manage ${p.productName}`,skip:"Skip the next box",cancel:"Cancel subscription",skipped:(_p,next)=>next===null?"Skipped.":`Skipped. ${w.Poss} next box ships ${next}.`,cancelled:p=>`${p.productName} is cancelled. Restart it from ${w.poss} plan anytime.`,orders:"Orders",startedHeader:"Subscribed",placedHeader:"Order placed",cartCheckoutTitle:"Checkout",orderNote:"",cartLabel:n=>n>0?`Cart, ${n} item${n>1?"s":""}`:"Cart, empty",addToCart:price=>`Add to cart · ${price}`,viewCart:"View cart",addedToCart:(p,subscription)=>`${p.productName} is in your cart${subscription?", as a subscription":""}.`,removedFromCart:name=>`${name} is out of your cart.`,cartTitle:"Cart",cartEmptyTitle:"Your cart is empty",cartEmptyBody:p=>`${NameOf(p)}'s plan pick lands here when you add it.`,seeOrders:`See ${w.poss} orders`,quantityLabel:name=>`How many: ${name}`,fewer:"One fewer",more:"One more",remove:"Remove",cartSubLine:p=>p.offer?`First box ${p.discountPercent}% off, then ${p.box??""} every ${p.intervalDays} days`:`Every ${p.intervalDays} days`,cartOnceLine:(p,subscribed)=>subscribed?`An extra box. ${w.Poss} plan keeps shipping.`:p.onceDiscountPercent>0?`One box, ${p.onceDiscountPercent}% off`:"One box",cartModeLabel:name=>`How to buy ${name}`,cartModeSubscribe:p=>p.offer?`Subscribe, ${p.discountPercent}% off the first box`:"Subscribe",cartModeOnce:p=>p.onceDiscountPercent>0?`One box, ${p.onceDiscountPercent}% off`:"One box",subtotal:"Subtotal",shipping:"Shipping",shippingValue:"",shippingTag:"",total:"Total",dueToday:"Due today",thenRenews:p=>`Then ${p.productName}`,renewsEvery:p=>`${p.box??""} every ${p.intervalDays} days`,checkoutCart:total=>`Checkout · ${total}`,cartOneAtATime:"",cartSubscriptionApart:"",cartItemSubscription:p=>`Subscription, every ${p.intervalDays} days`,cartItemQuantity:n=>`Qty ${n}`,placeOrder:(total,subscribe)=>`${subscribe?"Place order and subscribe":"Place order"} · ${total}`,cartFine:p=>`${p===null?"":`${cartRenewal(p)} `}Ships tomorrow.`,placedSteps:"What's coming",placedShips:"It ships.",placedArrives:"It arrives at home.",viewOrder:"View order",herSubscription:`${w.Poss} subscription`,nextBox:day=>`Next box ${day}`,everyDays:n=>`Every ${n} days`,ordersHeading:afterSubscription=>afterSubscription?"Orders":`${w.Poss} orders`,ordersFine:"",ordersEmptyTitle:"No orders yet",ordersEmptyBody:p=>`The boxes from ${nameOf(p)}'s plan show up here.`,moreOrders:"",orderSteps:["Ordered","Shipped","Out for delivery","Delivered"],subscriptionBox:"Subscription box",orderTitle:n=>n===null?"Order":`Order ${n}`,arrivesBy:day=>`Arrives by ${day}`,deliveredOn:day=>`Delivered ${day}`,expected:day=>`Expected ${day}`,tracking:"Tracking",trackingByText:"The tracking number comes by text when it ships.",trackOn:carrier=>`Track on ${carrier}`,trackLink:"",inThisOrder:"In this order",orderItemLine:(n,box)=>`Qty ${n}${box?" · subscription box":""}`,paidWith:"Paid with",buyAgain:"Buy again",orderHelp:"Get help with this order",addWeightTitle:`Add ${w.poss} weight to size ${w.poss} dose`,addWeightBody:`From a home scale or ${w.poss} last vet visit.`,connectRecordsTitle:`Connect ${w.poss} vet records`,connectRecordsBody:`${w.Poss} weight, visits and labs make ${w.poss} plan sharper.`,weightKicker:`${w.Poss} weight`,weightTitle:p=>`Add ${nameOf(p)}'s weight`,weightBody:`From a home scale or ${w.poss} last vet visit. ${w.Poss} plan uses it to size ${w.poss} dose.`,weightField:`${w.Poss} weight`,weightUnit:"lb",weightUnitKg:"kg",weightErrorKg:"Enter your pet’s weight",weightError:`Enter ${w.poss} weight in pounds, like 14.1.`,weightSave:`Save ${w.poss} weight`,weightSaved:lb=>`Saved: ${lb} lb. ${w.Poss} dose is sized for ${w.obj}.`,weightSavedKg:kg=>`Saved: ${kg} kg. ${w.Poss} dose is sized for ${w.obj}.`,checkoutFailed:"That didn't go through. Please try again.",builtWith:vet=>`Built with ${vet}`,fromVet:shortName=>`From ${shortName}`,waitVetTips:vet=>`Free tips from ${vet}, built around that risk`,signalsFit:count=>`${count} of ${count} signals fit ${w.Name}`,signalsValue:count=>`${count}/${count}`,noPick:`No supplement for this one. ${w.Poss} vet comes first.`,callYourVet:"Call your vet today",callAVet:"Call a vet today",saveForCheckup:`Save for ${w.poss} next checkup`,savedForCheckup:`Saved for ${w.poss} next checkup`,blanksLabel:`${w.Poss} three blanks`,blanksAsked:clinic=>`Asked ${clinic}`,blanksAskedNoClinic:"",blanksWaitPill:"2 to 5 days",blanksFilledKicker:`From ${w.poss} vet records`,blanksFilled:(filled,total)=>`${filled} of ${total} filled`,blanksWeight:`Keep ${w.obj} at `,blanksWeightSource:`From ${w.poss} vet visits`,blanksDose:(dose,product)=>`${dose} of ${product}`,blanksDoseSource:`Sized to ${w.poss} weight`,blanksShots:`${w.Poss} next shots are due `,blanksShotsSource:`From ${w.poss} clinic`,blankEmpty:"blank",recordsLanded:`${w.Poss} records are in. ${w.Poss} plan now uses ${w.poss} weight and ${w.poss} visits.`,todayLabel:`${w.Poss} Health Plan`,poweredBy:"powered by",poweredByName:"Everfur",seeMore:"See more",seeLess:"See less",reportActions:"Actions to take",openReport:`Open it in ${w.poss} report`,askReport:"Ask about it",fullOpen:`See ${w.poss} full plan`,fullOpenLine:`${w.Poss} vet, reviews and ${w.poss} checkup`,fullClose:`Show ${w.poss} brief plan`,fullCloseLine:`${w.Poss} risk, tips, pick and signs`,hopeNoted:phrases=>`Noted. When ${w.poss} results land, we'll start with ${phrases}.`,productLink:product=>`${product}, see the product`,productPhotos:product=>`${product} photos, swipe for more`,shopAll:"Shop all",madeFor:`Made for ${w.name}`,ratingLine:count=>`· ${count} reviews`,productOffer:p=>`${p.discountPercent}% off ${w.poss} first box`,productEvery:p=>`Every ${p.intervalDays} days`,productOnce:p=>p.onceDiscountPercent>0?`One box, ${p.onceDiscountPercent}% off`:"One box",productExtraBox:"An extra box",productOnPlan:p=>`On ${w.poss} plan, every ${p.intervalDays} days. This adds one extra box.`,quantity:"Quantity",description:"Description",readMore:"Read more",readLess:"Read less",whatsInside:"What's inside",howMuch:"How much",reviewsTitle:"Reviews",reviewCount:count=>`${count} reviews`,reviewsSwipe:"Reviews, swipe for more",readAllReviews:count=>`Read all ${count} reviews`,starsLabel:rating=>`${rating} out of 5 stars`,buyNow:"Buy now"});return copy}var HEALTH_PLAN_FOCUS_COPY=healthPlanFocusCopyFor({sex:"female"});function formatHealthPlanDay(iso,locale){if(iso===null||!/^\d{4}-\d{2}-\d{2}$/.test(iso))return null;let d=/* @__PURE__ */new Date(`${iso}T00:00:00Z`);if(Number.isNaN(d.getTime()))return null;try{return new Intl.DateTimeFormat(locale??"en-US",{month:"short",day:"numeric",timeZone:"UTC"}).format(d)}catch{return iso}}function healthPlanPageDrawsWithoutItems(design){return design!=null&&(design.wait!==void 0||design.pick.hidden===true)}function withoutProductPart(design){return{...design,pick:{...design.pick,none:true,hidden:true}}}var NO_PLAN_ITEM=/* @__PURE__ */Object.freeze({productId:"",partnerSku:null,title:"",description:null,category:null,price:null,currency:null,imageUrl:null,url:null,reasons:[],inPlan:false,sample:false});var noopTelemetry=/* @__PURE__ */Object.freeze({track(){},trackExpectedFailure(){}});var EVERFUR_CONTEXT_SYMBOL=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurContext@v1"),globalContextHost=globalThis,EverfurContext=globalContextHost[EVERFUR_CONTEXT_SYMBOL]??(globalContextHost[EVERFUR_CONTEXT_SYMBOL]=createContext(null));EverfurContext.displayName??="EverfurContext";function useEverfurContext(){let ctx=useContext(EverfurContext);if(ctx===null)throw new EverfurConfigError("not-initialized","Everfur hooks must be called inside <EverfurProvider>. Wrap your tree once, high.");return ctx}var HEALTH_PLAN_EVENTS=/* @__PURE__ */Object.freeze({opened:"health_plan.opened",productClicked:"health_plan.product_clicked",checkoutStarted:"health_plan.checkout_started"});function useHealthPlanTelemetry(){return useContext(EverfurContext)?.runtime.registry.services.telemetry??noopTelemetry}var PlanPetContext=createContext(null);function HealthPlanPetScope({petRef:petRef,children:children}){return createElement(PlanPetContext.Provider,{value:petRef},children)}function useHealthPlanBarPet(dockPet){let page=useContext(PlanPetContext),ctx=useContext(EverfurContext);return page??dockPet??ctx?.activePet??null}function useHealthPlanOpened(drawn,petRef,plan){let telemetry=useHealthPlanTelemetry(),sent=useRef(null);useEffect(()=>{if(!drawn||petRef===null||sent.current===petRef)return;sent.current=petRef;let items=plan?.items??[];telemetry.track(HEALTH_PLAN_EVENTS.opened,{petRef:petRef,itemsCount:items.length,inPlanCount:items.filter(item=>item.inPlan).length})},[drawn,petRef,plan,telemetry])}function trackProductClicked(telemetry,petRef,productId,inPlan){telemetry.track(HEALTH_PLAN_EVENTS.productClicked,{petRef:petRef,productId:productId,inPlan:inPlan})}function trackCheckoutStarted(telemetry,petRef,cart){telemetry.track(HEALTH_PLAN_EVENTS.checkoutStarted,{petRef:petRef,itemsCount:cart.count,subtotal:cart.subtotal,currency:cart.currency})}var RETRYABILITY_ROWS=[{wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"AuthorizationException",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"ConflictException",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"DAILY_QUOTA_EXCEEDED",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"FILE_TOO_LARGE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"IDEMPOTENCY_KEY_IN_FLIGHT",envelope:"http_envelope",httpStatus:409,retryable:true},{wireCode:"IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"INVALID_CONTENT_TYPE",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"InternalFailureException",envelope:"http_envelope",httpStatus:500,retryable:true},{wireCode:"MethodNotAllowedException",envelope:"http_envelope",httpStatus:405,retryable:false},{wireCode:"NotImplementedException",envelope:"http_envelope",httpStatus:501,retryable:false},{wireCode:"PaymentRequiredException",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ResourceNotFoundException",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"ServiceUnavailableException",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"TIER_UPGRADE_REQUIRED",envelope:"http_envelope",httpStatus:402,retryable:false},{wireCode:"ThrottlingException",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"ValidationException",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"accessDenied",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"access_denied",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"anchor_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"anchor_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"anonTokenInvalid",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"attachment_unreadable",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"authExpired",envelope:"http_envelope",httpStatus:401,retryable:true},{wireCode:"authRejected",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"before_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundle_mismatch",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundle_not_uploaded",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"bundles_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"catalog_empty_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"catalog_shrink_refused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"consent_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_required",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"consent_scope_wrong_route",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"device_cipher_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"email_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"endpoint_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"environment_mismatch",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_cursor_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"event_payload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_not_available",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"event_type_unknown",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_required",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"idempotency_key_reused",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"inbox_cursor_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"insufficientCapability",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"insufficient_scope",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"internal_error",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"invalidRequest",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"invalid_client",envelope:"oauth_error",httpStatus:401,retryable:false},{wireCode:"invalid_client_metadata",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_grant",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_redirect_uri",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_request",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_scope",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"invalid_target",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"item_id_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"linked_account_read_only",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_connection_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"mcp_request_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"mcp_request_gone",envelope:"http_envelope",httpStatus:410,retryable:false},{wireCode:"mcp_request_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"not_found",envelope:"sse_frame",httpStatus:200,retryable:false},{wireCode:"not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"open_url_not_allowed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"partner_visit_link_conflict",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"partner_visit_owner_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"partner_visit_pet_already_mapped",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"payload_too_large",envelope:"http_envelope",httpStatus:413,retryable:false},{wireCode:"petRefInUse",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"pet_health_list_removals_unconfirmed",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_health_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"pet_not_registered",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"provider_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"rateLimited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"read_target_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"record_subject_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"record_upload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"records_consent_required",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"restricted_key",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"sandbox_only",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_required",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"session_revoked",envelope:"http_envelope",httpStatus:401,retryable:false},{wireCode:"share_limit_reached",envelope:"http_envelope",httpStatus:429,retryable:false},{wireCode:"slow_down",envelope:"oauth_error",httpStatus:429,retryable:true},{wireCode:"species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"subscription_keys_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"tenant_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"tenant_has_no_capabilities",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tenant_resource_not_found",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"tenant_surface_not_enabled",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"ticket_not_resolved",envelope:"http_envelope",httpStatus:409,retryable:false},{wireCode:"tickets_disabled",envelope:"http_envelope",httpStatus:404,retryable:false},{wireCode:"timeout",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"token_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"unavailable",envelope:"sse_frame",httpStatus:200,retryable:true},{wireCode:"unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"unrestrictedKeyRequired",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"unsupported_grant_type",envelope:"oauth_error",httpStatus:400,retryable:false},{wireCode:"unsupported_response_type",envelope:"oauth_error",httpStatus:302,retryable:false},{wireCode:"user_ref_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"verify_mint_rate_limited",envelope:"http_envelope",httpStatus:429,retryable:true},{wireCode:"verify_mint_refused",envelope:"http_envelope",httpStatus:403,retryable:false},{wireCode:"verify_mint_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"verify_user_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false},{wireCode:"web_push_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true},{wireCode:"webhook_endpoint_update_empty",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_endpoint_update_invalid",envelope:"http_envelope",httpStatus:400,retryable:false},{wireCode:"webhook_url_rejected",envelope:"http_envelope",httpStatus:400,retryable:false}],CONTRACT_RETRYABILITY=/* @__PURE__ */Object.freeze(RETRYABILITY_ROWS.map(row=>/* @__PURE__ */Object.freeze(row)));/* @__PURE__ */Object.freeze(CONTRACT_RETRYABILITY.map(row=>row.wireCode));var NORMALIZED_FOLD=/* @__PURE__ */Object.freeze({ValidationException:"validationFailed",AuthorizationException:"authRejected",PaymentRequiredException:"paymentRequired",AccessDeniedException:"accessDenied",ResourceNotFoundException:"resourceNotFound",ConflictException:"conflict",ThrottlingException:"rateLimited",InternalFailureException:"internalError",NotImplementedException:"notImplemented",ServiceUnavailableException:"serviceUnavailable",MethodNotAllowedException:"validationFailed",authExpired:"authExpired",unavailable:"serviceUnavailable",session_required:"sessionRequired",session_revoked:"authExpired",anonTokenInvalid:"authRejected",accessDenied:"accessDenied",invalidRequest:"sdkUpdateRequired",authRejected:"authRejected",rateLimited:"rateLimited",insufficientCapability:"accessDenied",unrestrictedKeyRequired:"accessDenied",user_ref_invalid:"validationFailed",event_cursor_invalid:"validationFailed",event_filter_invalid:"validationFailed",event_payload_invalid:"validationFailed",event_type_unknown:"validationFailed",idempotency_key_invalid:"validationFailed",idempotency_key_required:"validationFailed",idempotency_key_reused:"idempotencyConflict",payload_too_large:"validationFailed",webhook_url_rejected:"validationFailed",webhook_endpoint_update_empty:"validationFailed",webhook_endpoint_update_invalid:"validationFailed",event_type_not_available:"conflict",record_subject_not_found:"resourceNotFound",records_consent_required:"conflict",record_species_unsupported:"validationFailed",record_upload_invalid:"validationFailed",FILE_TOO_LARGE:"validationFailed",INVALID_CONTENT_TYPE:"validationFailed",attachment_unreadable:"validationFailed",provider_unsupported:"validationFailed",token_invalid:"validationFailed",device_cipher_unavailable:"serviceUnavailable",email_invalid:"validationFailed",consent_required:"validationFailed",consent_invalid:"validationFailed",consent_scope_wrong_route:"validationFailed",IDEMPOTENCY_KEY_IN_FLIGHT:"idempotencyInFlight",IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST:"idempotencyConflict",DAILY_QUOTA_EXCEEDED:"quotaExceeded",TIER_UPGRADE_REQUIRED:"paymentRequired",not_found:"conversationNotFound",timeout:"streamTimeout",internal_error:"internalError",invalid_request:"validationFailed",invalid_client:"authRejected",invalid_grant:"authRejected",unsupported_grant_type:"validationFailed",invalid_scope:"validationFailed",invalid_target:"validationFailed",invalid_redirect_uri:"validationFailed",invalid_client_metadata:"validationFailed",unsupported_response_type:"validationFailed",access_denied:"accessDenied",slow_down:"rateLimited",mcp_request_not_found:"resourceNotFound",mcp_request_gone:"resourceNotFound",mcp_connection_not_found:"resourceNotFound",mcp_request_conflict:"conflict",sandbox_only:"accessDenied",tenant_has_no_capabilities:"conflict",verify_mint_refused:"accessDenied",verify_mint_rate_limited:"rateLimited",verify_mint_unavailable:"serviceUnavailable",verify_user_ref_invalid:"validationFailed",insufficient_scope:"accessDenied",tenant_filter_invalid:"validationFailed",tenant_resource_not_found:"resourceNotFound",tenant_surface_not_enabled:"conflict",pet_health_species_unsupported:"validationFailed",pet_health_list_removals_unconfirmed:"validationFailed",petRefInUse:"conflict",share_limit_reached:"conflict",pet_not_registered:"resourceNotFound",species_unsupported:"validationFailed",partner_visit_owner_only:"accessDenied",partner_visit_link_conflict:"conflict",partner_visit_pet_already_mapped:"conflict",linked_account_read_only:"conflict",catalog_empty_refused:"conflict",catalog_shrink_refused:"conflict",endpoint_not_allowed:"validationFailed",event_id_invalid:"validationFailed",inbox_cursor_invalid:"validationFailed",item_id_invalid:"validationFailed",open_url_not_allowed:"validationFailed",read_target_invalid:"validationFailed",subscription_keys_invalid:"validationFailed",web_push_unavailable:"serviceUnavailable",anchor_not_found:"resourceNotFound",anchor_ref_invalid:"validationFailed",before_invalid:"validationFailed",bundle_mismatch:"validationFailed",bundle_not_uploaded:"validationFailed",bundles_unavailable:"serviceUnavailable",environment_mismatch:"validationFailed",restricted_key:"accessDenied",ticket_not_resolved:"conflict",tickets_disabled:"resourceNotFound"}),CONTRACT_ERROR_ROWS=/* @__PURE__ */Object.freeze(CONTRACT_RETRYABILITY.map(generated=>/* @__PURE__ */Object.freeze({wireCode:generated.wireCode,envelope:generated.envelope,retryable:generated.retryable,normalized:NORMALIZED_FOLD[generated.wireCode]}))),BY_KEY=new Map(CONTRACT_ERROR_ROWS.map(r=>[r.envelope+r.wireCode.toUpperCase(),r])),ENVELOPE_LOOKUP_ORDER=/* @__PURE__ */Object.freeze(["http_envelope",...[...new Set(CONTRACT_ERROR_ROWS.map(r=>r.envelope))].filter(e=>e!=="http_envelope").sort()]);function contractErrorFor(wireCode,envelope){if(typeof wireCode!="string")return;let key=wireCode.trim().toUpperCase();if(key.length!==0)for(let candidate of[envelope??"http_envelope",...ENVELOPE_LOOKUP_ORDER]){let row=BY_KEY.get(candidate+key);if(row)return row}}var CATEGORY_OF=/* @__PURE__ */Object.freeze({authExpired:"authentication",authRejected:"authentication",sessionRequired:"authentication",identitySignatureRequired:"authentication",accessDenied:"authorization",paymentRequired:"entitlement",quotaExceeded:"rateLimit",rateLimited:"rateLimit",validationFailed:"invalidRequest",sdkUpdateRequired:"invalidRequest",runtimeDisposed:"invalidRequest",conversationNotFound:"notFound",petNotFound:"notFound",resourceNotFound:"notFound",conflict:"conflict",idempotencyConflict:"conflict",idempotencyInFlight:"conflict",streamTimeout:"connection",streamIncomplete:"connection",upstreamLlmTimeout:"connection",serviceUnavailable:"connection",internalError:"server",notImplemented:"server",mediaUploadFailed:"media",moderationBlocked:"policy",unknown:"unknown"});function categoryFor(code){return CATEGORY_OF[code]}function fromWire(wire){let contractRow=contractErrorFor(wire);if(contractRow)return contractRow.normalized;let upper=(wire??"").trim().toUpperCase(),canonical=upper.replace(/[^A-Z0-9]/g,"");if(canonical==="AUTHREJECTED")return"authRejected";if(upper.startsWith("AUTH"))return"authExpired";switch(canonical){case"DAILYQUOTAEXCEEDED":case"QUOTAEXCEEDED":return"quotaExceeded";case"RATELIMITED":case"TOOMANYREQUESTS":case"TELEVETRATELIMITED":return"rateLimited";case"IDEMPOTENCYKEYCONFLICT":case"IDEMPOTENCYCONFLICT":return"idempotencyConflict";case"ACCESSDENIED":case"FORBIDDEN":return"accessDenied";case"IDENTITYSIGNATUREREQUIRED":return"identitySignatureRequired";case"FREECAPREACHED":return"paymentRequired";case"RUNTIMEDISPOSED":return"runtimeDisposed";case"NOTFOUND":case"CONVERSATIONNOTFOUND":return"conversationNotFound";case"PETNOTFOUND":return"petNotFound";case"TIMEOUT":case"STREAMTIMEOUT":return"streamTimeout";case"MEDIAUPLOADFAILED":case"UNRECOGNIZEDVIDEOFORMAT":case"FILETOOSMALL":return"mediaUploadFailed";case"MODERATIONBLOCKED":return"moderationBlocked";case"UPSTREAMLLMTIMEOUT":return"upstreamLlmTimeout";case"INTERNALERROR":case"INTERNALSERVERERROR":return"internalError";case"STREAMINCOMPLETE":case"CHATSTREAMINCOMPLETE":return"streamIncomplete";case"INVALIDANALYSISTYPE":case"INVALIDUPLOADPURPOSE":return"unknown";default:return"unknown"}}var AUTO_RETRYABLE_CODES=/* @__PURE__ */new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function isAutoRetryable(code){return AUTO_RETRYABLE_CODES.has(code)}var RETRYABLE_CONTRACT_CODES=/* @__PURE__ */new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function isRetryableCode(code){return isAutoRetryable(code)||RETRYABLE_CONTRACT_CODES.has(code)}var BACKOFF_BASE_MS=500,BACKOFF_CAP_MS=8e3,MAX_RETRY_ATTEMPTS=4;function backoffDelayMs(attempt,rng=Math.random){let bounded=Math.max(0,attempt),ceiling=Math.min(BACKOFF_BASE_MS*2**bounded,BACKOFF_CAP_MS);return Math.floor(rng()*ceiling)}var ACCESS_DENIED_COPY="This feature isn't available on your account right now.",VALIDATION_FAILED_COPY="Something in that request was not right. Check the details and try again.",USER_FACING_COPY=/* @__PURE__ */Object.freeze({authExpired:"Please sign in again to continue.",authRejected:"Please sign in again to continue.",sessionRequired:"This app needs to be updated to keep using Everfur.",accessDenied:ACCESS_DENIED_COPY,paymentRequired:"This is part of a paid plan.",quotaExceeded:"You have used today's messages. This resets tomorrow.",rateLimited:"You are sending messages quickly. Try again in a few seconds.",validationFailed:VALIDATION_FAILED_COPY,sdkUpdateRequired:"This app needs to be updated to keep using Everfur.",conflict:"That is already running. Wait for it to finish, then try again.",idempotencyConflict:"That message was already delivered.",idempotencyInFlight:"That is still processing. Give it a moment.",conversationNotFound:"This conversation is no longer available.",petNotFound:"We could not find that pet. Please pick a pet and try again.",resourceNotFound:"We could not find that.",streamTimeout:"The response timed out. Tap retry to try again.",mediaUploadFailed:"We could not upload that photo. Please attach it again.",moderationBlocked:"This request cannot be answered here.",upstreamLlmTimeout:"The response timed out. Tap retry to try again.",internalError:"We hit a snag on our end. Please try again.",notImplemented:"That is not available yet.",serviceUnavailable:"That service is briefly unavailable. Try again shortly.",streamIncomplete:"The connection dropped mid-answer. Tap retry to continue.",identitySignatureRequired:ACCESS_DENIED_COPY,runtimeDisposed:VALIDATION_FAILED_COPY,unknown:"Something went wrong. Please try again."}),SESSION_REVOKED_COPY="This session has ended. Please sign in again.",LINKED_ACCOUNT_READ_ONLY="linked_account_read_only";function displayFor(code,wireCode,reasonCode){return code==="conflict"&&reasonCode===LINKED_ACCOUNT_READ_ONLY?ACCESS_DENIED_COPY:(code==="authRejected"||code==="authExpired")&&typeof wireCode=="string"&&wireCode.trim().toLowerCase()==="session_revoked"?SESSION_REVOKED_COPY:userFacingError(code)}function userFacingError(code){return USER_FACING_COPY[code]}function defineHidden(target,key,value){Object.defineProperty(target,key,{value:value,enumerable:false,writable:false,configurable:false})}var REASON_CODE_SHAPE=/^[a-z][a-z0-9_]{0,63}$/;function makeEverfurError(code,opts){let row=contractErrorFor(opts?.wireCode,opts?.wireEnvelope),linkedReadOnly=code==="conflict"&&opts?.reasonCode===LINKED_ACCOUNT_READ_ONLY,error={code:code,category:categoryFor(code),retryable:opts?.retryable??(linkedReadOnly?false:isRetryableCode(code)),displayMessage:displayFor(code,opts?.wireCode,linkedReadOnly?LINKED_ACCOUNT_READ_ONLY:null)};opts?.httpStatus!==void 0&&(error.httpStatus=opts.httpStatus),opts?.requestId&&(error.requestId=opts.requestId),typeof opts?.reasonCode=="string"&&REASON_CODE_SHAPE.test(opts.reasonCode)&&(error.reasonCode=opts.reasonCode);let wait=opts?.retryAfterSeconds;if(typeof wait=="number"&&Number.isFinite(wait)&&wait>=0&&(error.retryAfterSeconds=Math.round(wait)),row);return opts?.wireMessage&&defineHidden(error,"wireMessage",opts.wireMessage),opts?.raw!==void 0&&opts.raw!==null&&defineHidden(error,"raw",opts.raw),/* @__PURE__ */Object.freeze(error)}function assertNever(x){throw new Error(`assertNever: unhandled discriminated-union member ${JSON.stringify(x)}`)}function errorFrame(fields){/* @__PURE__ */
4
+ return Object.freeze({kind:"error",terminal:true,code:fields.code,retryable:fields.retryable,wireMessage:fields.wireMessage,synthesized:fields.synthesized,lastEventId:fields.lastEventId,serverRequestId:null,...fields.freeCap?{freeCap:/* @__PURE__ */Object.freeze({...fields.freeCap})}:{}})}function mintFailedError(cause,refusal){let message=cause instanceof Error?cause.message:typeof cause=="string"?cause:null;return makeEverfurError("authRejected",{retryable:false,...refusal?.wireCode?{wireCode:refusal.wireCode}:{},...refusal?.requestId?{requestId:refusal.requestId}:{},...message?{wireMessage:message}:{},...cause!=null?{raw:cause}:{}})}function authHeaders(auth){let headers={};return auth.mode==="personalized"?headers.authorization=`Bearer ${auth.token}`:headers["x-everfur-partner-key"]=auth.publishableKey,auth.userRef&&(headers["x-everfur-user-ref"]=auth.userRef),auth.sessionId&&(headers["x-everfur-session-id"]=auth.sessionId),headers}function withAuthHeaders(req,auth){return{...req,headers:{...stripAuthHeaders(req.headers),...authHeaders(auth)}}}function stripAuthHeaders(headers){if(!headers)return{};let out={};for(let[key,value]of Object.entries(headers)){let lower=key.toLowerCase();lower==="authorization"||lower==="x-everfur-partner-key"||(out[key]=value)}return out}async function authedSend(req,ctx){if(ctx.mode==="anonymous")return ctx.transport.request(withAuthHeaders(req,{mode:"anonymous",publishableKey:ctx.publishableKey,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));let token;try{token=await ctx.identity.currentToken()}catch(cause){return ctx.identity.reportRejected?.(),err(mintFailedError(cause))}let first=await ctx.transport.request(withAuthHeaders(req,{mode:"personalized",token:token,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));if(first.ok||first.error.httpStatus!==401)return first;let refreshed;try{refreshed=await ctx.identity.currentToken({forceRefresh:!0})}catch(cause){return ctx.identity.reportRejected?.(),err(mintFailedError(cause,{wireCode:wireCodeOf(first.error.raw),requestId:first.error.requestId}))}let retry=await ctx.transport.request(withAuthHeaders(req,{mode:"personalized",token:refreshed,userRef:ctx.userRef,...ctx.sessionId?{sessionId:ctx.sessionId}:{}}));return!retry.ok&&retry.error.httpStatus===401?(ctx.identity.reportRejected?.(),err(refusedAfterRemintError(retry.error))):retry}function refusedAfterRemintError(refusal){let raw=refusal.raw,wireCode=wireCodeOf(raw);return makeEverfurError("authRejected",{retryable:false,...refusal.httpStatus!==void 0?{httpStatus:refusal.httpStatus}:{},...refusal.requestId?{requestId:refusal.requestId}:{},...wireCode?{wireCode:wireCode}:{},...refusal.reasonCode?{reasonCode:refusal.reasonCode}:{},...refusal.wireMessage?{wireMessage:refusal.wireMessage}:{},...raw!=null?{raw:raw}:{}})}function wireCodeOf(body){if(typeof body!="object"||body===null)return null;let b=body,code=(typeof b.error=="object"&&b.error!==null?b.error.code:void 0)??b.code;return typeof code=="string"&&code.length>0?code:null}function networkError(cause){return makeEverfurError("internalError",{retryable:true,wireMessage:describeCause(cause)})}function describeCause(cause){return cause instanceof Error?cause.message:typeof cause=="string"?cause:"network request failed"}var FUNNEL_UNARY_TIMEOUT_MS=3e4,RETRY_OVERRIDE_MAX_MS=BACKOFF_CAP_MS*2,IDEMPOTENCY_HEADER="idempotency-key",MUTATING_METHODS=/* @__PURE__ */new Set(["POST","PUT","PATCH","DELETE"]),NOOP_OBSERVER=/* @__PURE__ */Object.freeze({onEvent(){}}),defaultFunnelTimers=/* @__PURE__ */Object.freeze({setTimeout:(handler,ms)=>setTimeout(handler,ms),clearTimeout:handle=>clearTimeout(handle),now:()=>Date.now()});function seededIdempotencyKey(seed){let safe=seed.trim().replace(/[^A-Za-z0-9_.:-]/g,"-");return safe.length===0?null:`efs_${safe}`.slice(0,128)}function createRequestFunnel(deps){let observer=deps.observer??NOOP_OBSERVER,timers=deps.timers??defaultFunnelTimers,rng=deps.rng??Math.random,sleep=deps.sleep??((ms,signal)=>delayAbortable(ms,timers,signal)),ceiling=deps.maxAttempts??MAX_RETRY_ATTEMPTS,timeoutMs=deps.unaryTimeoutMs??FUNNEL_UNARY_TIMEOUT_MS,mintKey=deps.newIdempotencyKey??defaultIdempotencyKeyFactory(),emit=event=>{try{observer.onEvent(event)}catch{}};async function send(call,req,opts){let perCallMaxAttempts=opts?.maxAttempts,maxAttempts=Math.max(1,perCallMaxAttempts??ceiling),idempotent=opts?.idempotent??MUTATING_METHODS.has(req.method),seeded=opts?.idempotencyKey===void 0?null:seededIdempotencyKey(opts.idempotencyKey),idempotencyKey=idempotent?seeded??mintKey():null,base3=assembleHeaders(req,idempotencyKey),attempt=0;for(;;){let stamp=extra=>/* @__PURE__ */Object.freeze({call:call,method:req.method,path:req.path,attempt:attempt,...idempotencyKey?{idempotencyKey:idempotencyKey}:{},...extra});emit(stamp({phase:"attempt"}));let deadline=boundedSignal(timeoutMs,timers),merged=mergeSignals(deadline.signal,req.signal),settled;try{settled=await authedSend({...base3,signal:merged.signal},deps.auth)}catch(cause){settled=err(networkError(cause))}finally{merged.dispose(),deadline.cancel()}if(settled.ok)return emit(stamp({phase:"settled",ok:true,reason:"ok"})),settled;let error=settled.error,decision=decideRetry(error,attempt,{maxAttempts:maxAttempts,rng:rng,now:timers.now(),aborted:req.signal?.aborted===true,...perCallMaxAttempts!==void 0?{perCallMaxAttempts:perCallMaxAttempts}:{},...deps.errorPolicy!==void 0?{policy:deps.errorPolicy}:{}}),settledEvent={ok:false,code:error.code,reason:decision.reason,...error.httpStatus!==void 0?{httpStatus:error.httpStatus}:{},...error.requestId!==void 0?{requestId:error.requestId}:{}};if(!decision.retry)return emit(stamp({phase:"settled",...settledEvent})),err(error);if(emit(stamp({phase:"retry",...settledEvent,delayMs:decision.delayMs})),await sleep(decision.delayMs,req.signal),req.signal?.aborted===true)return emit(stamp({phase:"settled",...settledEvent,reason:"aborted"})),err(error);attempt+=1}}async function authorize(req){return withAuthHeaders(req,await resolveDeviceAuth(deps.auth))}async function*stream(call,req,signal){emit(
5
5
  /* @__PURE__ */Object.freeze({call:call,phase:"stream.open",method:req.method,path:req.path,attempt:0}));try{yield*deps.auth.transport.stream(req,signal)}catch{yield errorFrame({code:"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null})}}/* @__PURE__ */
6
6
  return Object.freeze({send:send,authorize:authorize,stream:stream})}function assembleHeaders(req,idempotencyKey){let headers={};for(let[key,value]of Object.entries(req.headers??{}))key.toLowerCase()!==IDEMPOTENCY_HEADER&&(headers[key]=value);return idempotencyKey!==null&&(headers["Idempotency-Key"]=idempotencyKey),{...req,headers:headers}}function defaultIdempotencyKeyFactory(){let counter=0;return()=>`efk_${Date.now().toString(36)}_${(counter++).toString(36)}_${Math.random().toString(36).slice(2,12)}`}var POLICY_MAX_ATTEMPTS_CAP=10;function decideRetry(error,attempt,ctx){if(ctx.aborted)return{retry:false,reason:"aborted"};let throttle=throttleKind(error);if(throttle==="quota")return{retry:false,reason:"daily-quota-exhausted"};if(throttle!=="burst"&&!isAutoRetryable(error.code))return{retry:false,reason:"terminal-code"};let reason=throttle==="burst"?"burst-throttle":"retryable-code";if((()=>{if(ctx.policy===void 0)return false;try{return!ctx.policy.shouldRetry(error.code,attempt)}catch{return false}})())return{retry:false,reason:"terminal-code"};let policyCeiling=()=>{if(ctx.policy===void 0)return null;let raw;try{raw=ctx.policy.maxAttempts(error.code)}catch{return null}return typeof raw!="number"||!Number.isFinite(raw)?null:Math.max(1,Math.min(POLICY_MAX_ATTEMPTS_CAP,Math.floor(raw)))},ceiling=ctx.perCallMaxAttempts??policyCeiling()??ctx.maxAttempts;if(attempt+1>=ceiling)return{retry:false,reason:"attempts-exhausted"};let override=retryOverrideMs(error,ctx.now);return override!==null?override>RETRY_OVERRIDE_MAX_MS?{retry:false,reason:"server-reset-beyond-budget"}:{retry:true,reason:reason,delayMs:override}:{retry:true,reason:reason,delayMs:backoffDelayMs(attempt,ctx.rng)}}function throttleKind(error){let code=error.code==="unknown"?fromWire(rawWireCode(error.raw)):error.code;return code==="quotaExceeded"?"quota":code==="rateLimited"||error.httpStatus===429?"burst":null}function retryOverrideMs(error,now){let at=findResetsAt(error.raw);if(at!==null){let delta=at-now;return delta>0?delta:0}let wait=findRetryAfterSeconds(error.raw);return wait===null?null:Math.round(wait*1e3)}function findRetryAfterSeconds(raw){for(let scope of candidateScopes(raw)){let value=scope.retry_after_seconds;if(typeof value=="number"&&Number.isFinite(value)&&value>=0)return value}return null}function findResetsAt(raw){for(let scope of candidateScopes(raw)){let value=scope.resets_at,parsed=parseInstantMs(value);if(parsed!==null)return parsed}return null}function candidateScopes(raw){if(!isRecord(raw))return[];let out=[raw];for(let nested of["error","detail"]){let value=raw[nested];isRecord(value)&&out.push(value)}return out}function parseInstantMs(value){if(typeof value=="number"&&Number.isFinite(value))return value<1e11?Math.round(value*1e3):Math.round(value);if(typeof value=="string"&&value.trim().length>0){let parsed=Date.parse(value);return Number.isFinite(parsed)?parsed:null}return null}function rawWireCode(raw){for(let scope of candidateScopes(raw)){let code=scope.code;if(typeof code=="string"&&code.length>0)return code}return null}function isRecord(value){return typeof value=="object"&&value!==null}async function resolveDeviceAuth(auth){return auth.mode==="anonymous"?{mode:"anonymous",publishableKey:auth.publishableKey,userRef:auth.userRef,...auth.sessionId?{sessionId:auth.sessionId}:{}}:{mode:"personalized",token:await auth.identity.currentToken(),userRef:auth.userRef,...auth.sessionId?{sessionId:auth.sessionId}:{}}}function boundedSignal(ms,timers){let ctrl=new AbortController,handle=timers.setTimeout(()=>ctrl.abort(),ms);return{signal:ctrl.signal,cancel:()=>timers.clearTimeout(handle)}}function mergeSignals(deadline,caller){let noop2=()=>{};if(!caller)return{signal:deadline,dispose:noop2};let ctrl=new AbortController;if(deadline.aborted||caller.aborted)return ctrl.abort(),{signal:ctrl.signal,dispose:noop2};let onAbort=()=>ctrl.abort();return deadline.addEventListener("abort",onAbort,{once:true}),caller.addEventListener("abort",onAbort,{once:true}),{signal:ctrl.signal,dispose:()=>{deadline.removeEventListener("abort",onAbort),caller.removeEventListener("abort",onAbort)}}}function delayAbortable(ms,timers,signal){return ms<=0||signal?.aborted===true?Promise.resolve():new Promise(resolve=>{let handle=timers.setTimeout(()=>{signal?.removeEventListener("abort",onAbort),resolve()},ms),onAbort=()=>{timers.clearTimeout(handle),resolve()};signal?.addEventListener("abort",onAbort,{once:true})})}function isNotFoundError(error){return error!=null&&(error.httpStatus===404||error.category==="notFound")}function plainNotFound(error){return error.code!=="conversationNotFound"?error:makeEverfurError("resourceNotFound",{retryable:false,...error.httpStatus===void 0?{}:{httpStatus:error.httpStatus},...error.requestId===void 0?{}:{requestId:error.requestId},...error.reasonCode===void 0?{}:{reasonCode:error.reasonCode},...error.wireMessage===void 0?{}:{wireMessage:error.wireMessage},...error.raw===void 0?{}:{raw:error.raw}})}function plainResult(res){return res.ok?res:err(plainNotFound(res.error))}function withPlainNotFound(funnel){return{send:async(...args)=>plainResult(await funnel.send(...args)),authorize:req=>funnel.authorize(req),stream:(call,req,signal)=>funnel.stream(call,req,signal)}}var HEALTH_PLAN_REASON_KINDS=/* @__PURE__ */Object.freeze(["dna","records","inside","profile"]),REF_MAX=128;function invalid(wireMessage){return makeEverfurError("validationFailed",{retryable:false,wireMessage:wireMessage})}function disposed(verb){return makeEverfurError("runtimeDisposed",{retryable:false,wireMessage:`the Everfur runtime is disposed; ${verb} was called after unmount`})}function malformed(call){return makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:`${call}: the response carried no plan`})}var str=(value,max=4e3)=>typeof value=="string"&&value.trim().length>0&&value.length<=max?value.trim():null;function httpsUrl(value){let s=str(value,2048);return s===null?null:/^https:\/\/[^\s]+$/i.test(s)?s:null}function priceOf(value){let n=typeof value=="number"?value:typeof value=="string"&&/^\d+(\.\d+)?$/.test(value.trim())?Number(value):Number.NaN;return Number.isFinite(n)&&n>=0?n:null}function currencyOf(value){return typeof value=="string"&&/^[A-Za-z]{3}$/.test(value)?value.toUpperCase():null}function reasonsOf(value){if(!Array.isArray(value))/* @__PURE__ */return Object.freeze([]);let out=[];for(let raw of value){if(raw===null||typeof raw!="object")continue;let o=raw,text2=str(o.text,1e3);if(text2===null)continue;let kind=typeof o.kind=="string"&&HEALTH_PLAN_REASON_KINDS.includes(o.kind)?o.kind:"profile";out.push(/* @__PURE__ */Object.freeze({kind:kind,text:text2}))}/* @__PURE__ */
7
7
  return Object.freeze(out)}var DETAIL_ROWS=6;function boundOf(value){return typeof value=="number"&&Number.isFinite(value)&&value>=0&&value<=400?value:null}function rowsOf(value,each,max){if(!Array.isArray(value))/* @__PURE__ */return Object.freeze([]);let out=[];for(let raw of value){if(out.length>=max)break;if(raw===null||typeof raw!="object"||Array.isArray(raw))continue;let row=each(raw);row!==null&&out.push(row)}/* @__PURE__ */
@@ -58,7 +58,7 @@ return jsxs("button",{type:"button",...p("fullToggle"),"aria-expanded":fullPlan,
58
58
  return jsxs("button",{type:"button",role:"tab","aria-selected":on,tabIndex:reach?0:-1,"data-testid":testID,className:"efds-tabs__tab",onClick:onPress,onPointerDown:onPointerDown2,onKeyDown:onKeyDown2,children:[lines===void 0?label:/* @__PURE__ */jsx("span",{style:labelLines(lines),children:label}),dot?/* @__PURE__ */jsxs(Fragment,{children:[
59
59
  /* @__PURE__ */jsx("span",{"aria-hidden":"true",className:"efds-tabs__dot"}),dotLabel?/* @__PURE__ */jsx("span",{className:"efds-visually-hidden",children:`, ${dotLabel}`}):null]}):null]})}function SegmentedTabsImpl({tabs:tabs,value:value,onChange:onChange,onReselect:onReselect,numberOfLines:numberOfLines,label:label,activation:activation="auto",variant:variant="tabs",trackId:trackId,haptic:_haptic,testID:testID,className:className,style:style,...rest},ref){useEfdsPart("segmentedTabs");let list=useRef(null),feedback=usePressFeedback();useImperativeHandle(ref,()=>list.current);let reachable=tabs.some(tab=>tab.key===value)?value:tabs[0]?.key,segmented=variant==="segmented",onKeyDown2=index=>e=>{let rtl=isRtl(e.currentTarget),back=e.key===(rtl?"ArrowRight":"ArrowLeft")||segmented&&e.key==="ArrowUp",step=e.key===(rtl?"ArrowLeft":"ArrowRight")||segmented&&e.key==="ArrowDown"?1:back?-1:0,to=e.key==="Home"?0:e.key==="End"?tabs.length-1:step?(index+step+tabs.length)%tabs.length:-1,next=tabs[to];next&&(e.preventDefault(),(segmented||activation==="auto")&&onChange(next.key),list.current?.querySelectorAll(segmented?'[role="radio"]':'[role="tab"]')[to]?.focus())};return segmented?/* @__PURE__ */jsx("div",{ref:list,role:"radiogroup","aria-label":label,...dataOf(rest),"data-testid":testID,className:cx("efds-segmented",className),style:style,children:tabs.map((tab,i)=>{let id=testID?`${testID}-${tab.key}`:void 0,press=webPressOf(feedback,"SegmentedTabs",{testID:id,item:tab.key,label:tab.label,trackId:trackId},()=>{tab.key!==value&&onChange(tab.key)});/* @__PURE__ */
60
60
  return jsx("button",{type:"button",role:"radio","aria-checked":tab.key===value,tabIndex:tab.key===reachable?0:-1,"data-testid":id,className:"efds-segmented__option",onClick:press.onPress,onPointerDown:press.onPointerDown,onKeyDown:onKeyDown2(i),children:numberOfLines===void 0?tab.label:/* @__PURE__ */jsx("span",{style:labelLines(numberOfLines),children:tab.label})},tab.key)})}):/* @__PURE__ */jsx("div",{ref:list,role:"tablist","aria-label":label,...dataOf(rest),"data-testid":testID,className:cx("efds-tabs",className),style:style,children:tabs.map((tab,i)=>{let id=testID?`${testID}-${tab.key}`:void 0,press=webPressOf(feedback,"SegmentedTabs",{testID:id,item:tab.key,label:tab.dot&&tab.dotLabel?`${tab.label}, ${tab.dotLabel}`:tab.label,trackId:trackId},()=>{tab.key!==value?onChange(tab.key):onReselect?.(tab.key)});/* @__PURE__ */
61
- return jsx(Tab,{on:tab.key===value,reach:tab.key===reachable,label:tab.label,dot:tab.dot===true,dotLabel:tab.dotLabel,lines:numberOfLines,onPress:press.onPress,onPointerDown:press.onPointerDown,onKeyDown:onKeyDown2(i),testID:id},tab.key)})})}var SegmentedTabs=/* @__PURE__ */forwardRef(SegmentedTabsImpl);var GRAB="#DAD7D1";function planDsInput(p,outline=false){let r=role=>p.roles[role]??role,neutral=hex=>p.dark?r("line"):hex,box=(bg,extra={})=>({bg:bg,...extra}),words2=color=>({color:color}),noShadow={color:"",x:0,y:0,blur:0,spread:0},plan=Object.fromEntries(Object.entries({planInk:"primary",planOnInk:"onPrimary",planAccent:"accent",planLink:"link",planAccentWash:"accent4",planAccentChip:"accentChip",planLinkWash:"linkWash",planLinkChip:"linkChip"}).flatMap(([k,role])=>p.roles[role]===void 0?[]:[[k,p.roles[role]]]));return{colors:{bg:r("paper"),surface:r("card"),text:r("black"),ink:r(outline?"ink":"primary"),onInk:r("onPrimary"),muted:r("ink3"),line:r("line"),scrim:r("scrim"),grab:neutral(GRAB),focus:r("ink"),...plan},type:p.type,motion:{reduced:p.reduced},metrics:{variants:{drawer:{frame:box(r("card"),{color:r("ink")}),grab:box(neutral(GRAB)),kicker:words2(r("ink3")),close:{color:r("ink")},title:{color:r("ink"),wrap:"auto"},text:words2(r("black")),scrim:r("scrim")},segmented:{track:box(r("card"),{edge:{color:neutral(GRAB)}}),label:words2(r("ink")),chosen:box(r("primary")),chosenLabel:words2(r("onPrimary"))},stepper:{track:box(r("card"),{edge:{color:neutral(GRAB)}}),button:{color:r("ink")},value:words2(r("ink"))},summary:{box:box(r("card"),p.dark?{shadow:noShadow}:{}),term:words2(r("ink2")),value:words2(r("ink")),totalTerm:words2(r("ink")),total:words2(r("ink")),renewTerm:words2(r("ink2")),renew:words2(r("ink")),inset:box(r("paper"))},toast:{box:box(r("ink")),text:words2(r("onInk"))},focus:{color:r("ink")}}}}}var caches=/* @__PURE__ */new WeakMap;function planDsTheme(key,preset,input,outline=false){let byPreset=caches.get(preset);byPreset===void 0&&(byPreset={fill:/* @__PURE__ */new WeakMap,outline:/* @__PURE__ */new WeakMap},caches.set(preset,byPreset));let cache2=byPreset[outline?"outline":"fill"],t=cache2.get(key);return t===void 0&&(t=resolveTheme(planDsInput(input(),outline),preset),cache2.set(key,t)),t}var segmentedTabsCss={name:"segmentedTabs",props:[12,"--ef-ui-t-metrics-tabs-min-height:44px;--ef-ui-t-metrics-tabs-gap:6px;--ef-ui-t-metrics-tabs-font-size:15px;--ef-ui-t-metrics-tabs-font-weight:500;--ef-ui-t-metrics-tabs-current-weight:700;--ef-ui-t-metrics-tabs-line-height:1.55;--ef-ui-t-metrics-tabs-indicator:3px;--ef-ui-t-metrics-tabs-hairline:1px;--ef-ui-t-metrics-tabs-dot:7px;--ef-ui-t-metrics-variants-segmented-track-padding-0:4px;--ef-ui-t-metrics-variants-segmented-track-padding-1:4px;--ef-ui-t-metrics-variants-segmented-track-padding-2:4px;--ef-ui-t-metrics-variants-segmented-track-padding-3:4px;--ef-ui-t-metrics-variants-segmented-track-gap-0:4px;--ef-ui-t-metrics-variants-segmented-track-gap-1:4px;--ef-ui-t-metrics-variants-segmented-track-radius-0:22px;--ef-ui-t-metrics-variants-segmented-track-radius-1:22px;--ef-ui-t-metrics-variants-segmented-track-bg:var(--ef-ui-color-surface);--ef-ui-t-metrics-variants-segmented-track-edge-width:1.5px;--ef-ui-t-metrics-variants-segmented-track-edge-color:#DAD7D1;--ef-ui-t-metrics-variants-segmented-track-shadow-x:0px;--ef-ui-t-metrics-variants-segmented-track-shadow-y:0px;--ef-ui-t-metrics-variants-segmented-track-shadow-blur:0px;--ef-ui-t-metrics-variants-segmented-track-shadow-spread:0px;--ef-ui-t-metrics-variants-segmented-option-padding-1:6px;--ef-ui-t-metrics-variants-segmented-option-min-height:36px;--ef-ui-t-metrics-variants-segmented-option-radius-0:18px;--ef-ui-t-metrics-variants-segmented-label-size:14px;--ef-ui-t-metrics-variants-segmented-label-weight:700;--ef-ui-t-metrics-variants-segmented-label-line-height:21px;--ef-ui-t-metrics-variants-segmented-label-color:var(--ef-ui-color-ink);--ef-ui-t-metrics-variants-segmented-chosen-padding-1:6px;--ef-ui-t-metrics-variants-segmented-chosen-min-height:36px;--ef-ui-t-metrics-variants-segmented-chosen-radius-0:18px;--ef-ui-t-metrics-variants-segmented-chosen-bg:var(--ef-ui-color-ink);--ef-ui-t-metrics-variants-segmented-chosen-label-size:14px;--ef-ui-t-metrics-variants-segmented-chosen-label-weight:700;--ef-ui-t-metrics-variants-segmented-chosen-label-line-height:21px;--ef-ui-t-metrics-variants-segmented-chosen-label-color:var(--ef-ui-color-on-ink);--ef-ui-t-metrics-variants-segmented-press:0.96;--ef-ui-tabs-background:var(--ef-ui-color-surface);--ef-ui-tabs-box-shadow:0 var(--ef-ui-t-metrics-tabs-hairline) 0 var(--ef-ui-color-line);--ef-ui-tabs-tab-gap:var(--ef-ui-t-metrics-tabs-gap);--ef-ui-tabs-tab-min-height:var(--ef-ui-t-metrics-tabs-min-height);--ef-ui-tabs-tab-font-family:var(--ef-ui-font-family);--ef-ui-tabs-tab-font-weight:var(--ef-ui-t-metrics-tabs-font-weight);--ef-ui-tabs-tab-font-size:var(--ef-ui-t-metrics-tabs-font-size);--ef-ui-tabs-tab-line-height:calc(var(--ef-ui-t-metrics-tabs-font-size) * var(--ef-ui-t-metrics-tabs-line-height));--ef-ui-tabs-tab-color:var(--ef-ui-color-muted);--ef-ui-tabs-tab-on-font-weight:var(--ef-ui-t-metrics-tabs-current-weight);--ef-ui-tabs-tab-on-color:var(--ef-ui-color-ink);--ef-ui-tabs-tab-on-box-shadow:inset 0 calc(-1 * var(--ef-ui-t-metrics-tabs-indicator)) 0 var(--ef-ui-color-go);--ef-ui-tabs-focus-outline-color:var(--ef-ui-color-focus);--ef-ui-tabs-hover-color:var(--ef-ui-color-ink);--ef-ui-tabs-dot-width:var(--ef-ui-t-metrics-tabs-dot);--ef-ui-tabs-dot-height:var(--ef-ui-t-metrics-tabs-dot);--ef-ui-tabs-dot-background:var(--ef-ui-color-go);--ef-ui-segmented-padding:var(--ef-ui-t-metrics-variants-segmented-track-padding-0) var(--ef-ui-t-metrics-variants-segmented-track-padding-1) var(--ef-ui-t-metrics-variants-segmented-track-padding-2) var(--ef-ui-t-metrics-variants-segmented-track-padding-3);--ef-ui-segmented-margin-top:initial;--ef-ui-segmented-column-gap:var(--ef-ui-t-metrics-variants-segmented-track-gap-0);--ef-ui-segmented-row-gap:var(--ef-ui-t-metrics-variants-segmented-track-gap-1);--ef-ui-segmented-border-radius:var(--ef-ui-t-metrics-variants-segmented-track-radius-0) var(--ef-ui-t-metrics-variants-segmented-track-radius-0) var(--ef-ui-t-metrics-variants-segmented-track-radius-1) var(--ef-ui-t-metrics-variants-segmented-track-radius-1);--ef-ui-segmented-background:var(--ef-ui-t-metrics-variants-segmented-track-bg);--ef-ui-segmented-border:initial;--ef-ui-segmented-box-shadow:var(--ef-ui-t-metrics-variants-segmented-track-shadow-x) var(--ef-ui-t-metrics-variants-segmented-track-shadow-y) var(--ef-ui-t-metrics-variants-segmented-track-shadow-blur) var(--ef-ui-t-metrics-variants-segmented-track-shadow-spread), inset 0 0 0 var(--ef-ui-t-metrics-variants-segmented-track-edge-width) var(--ef-ui-t-metrics-variants-segmented-track-edge-color);--ef-ui-segmented-min-height:initial;--ef-ui-segmented-option-padding:0 var(--ef-ui-t-metrics-variants-segmented-option-padding-1);--ef-ui-segmented-option-color:var(--ef-ui-t-metrics-variants-segmented-label-color);--ef-ui-segmented-option-min-height:var(--ef-ui-t-metrics-variants-segmented-option-min-height);--ef-ui-segmented-option-border-radius:var(--ef-ui-t-metrics-variants-segmented-option-radius-0);--ef-ui-segmented-option-font-family:var(--ef-ui-font-family);--ef-ui-segmented-option-font-weight:var(--ef-ui-t-metrics-variants-segmented-label-weight);--ef-ui-segmented-option-font-size:var(--ef-ui-t-metrics-variants-segmented-label-size);--ef-ui-segmented-option-line-height:var(--ef-ui-t-metrics-variants-segmented-label-line-height);--ef-ui-segmented-option-letter-spacing:initial;--ef-ui-segmented-option-text-transform:initial;--ef-ui-segmented-option-font-variant-numeric:initial;--ef-ui-segmented-option-transition:background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);--ef-ui-segmented-chosen-padding:0 var(--ef-ui-t-metrics-variants-segmented-chosen-padding-1);--ef-ui-segmented-chosen-background:var(--ef-ui-t-metrics-variants-segmented-chosen-bg);--ef-ui-segmented-chosen-color:var(--ef-ui-t-metrics-variants-segmented-chosen-label-color);--ef-ui-segmented-chosen-min-height:var(--ef-ui-t-metrics-variants-segmented-chosen-min-height);--ef-ui-segmented-chosen-border-radius:var(--ef-ui-t-metrics-variants-segmented-chosen-radius-0);--ef-ui-segmented-chosen-font-weight:var(--ef-ui-t-metrics-variants-segmented-chosen-label-weight);--ef-ui-segmented-chosen-font-size:var(--ef-ui-t-metrics-variants-segmented-chosen-label-size);--ef-ui-segmented-chosen-line-height:var(--ef-ui-t-metrics-variants-segmented-chosen-label-line-height);--ef-ui-segmented-chosen-letter-spacing:initial;--ef-ui-segmented-press-transform:scale(var(--ef-ui-t-metrics-variants-segmented-press));--ef-ui-segmented-focus-outline:var(--ef-ui-t-metrics-variants-focus-width) solid var(--ef-ui-t-metrics-variants-focus-color);--ef-ui-segmented-focus-outline-offset:var(--ef-ui-t-metrics-variants-focus-offset)","--ef-ui-t-metrics-tabs-dot:0px"],segments:[[183,`.efds-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0, 1fr);background:var(--ef-ui-tabs-background);box-shadow:var(--ef-ui-tabs-box-shadow)}\n.efds-tabs__tab{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;display:flex;align-items:center;justify-content:center;gap:var(--ef-ui-tabs-tab-gap);min-height:var(--ef-ui-tabs-tab-min-height);padding:0px;border-width:0px;background:transparent;font-family:var(--ef-ui-tabs-tab-font-family);font-weight:var(--ef-ui-tabs-tab-font-weight);font-size:var(--ef-ui-tabs-tab-font-size);line-height:var(--ef-ui-tabs-tab-line-height);color:var(--ef-ui-tabs-tab-color);outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-tabs__tab[aria-selected="true"]{font-weight:var(--ef-ui-tabs-tab-on-font-weight);color:var(--ef-ui-tabs-tab-on-color);box-shadow:var(--ef-ui-tabs-tab-on-box-shadow)}\n.efds-tabs__tab:focus-visible{outline-color:var(--ef-ui-tabs-focus-outline-color)}\n@media (hover: hover) and (pointer: fine){\n.efds-tabs__tab:not([aria-selected="true"]):hover{color:var(--ef-ui-tabs-hover-color)}\n}\n.efds-tabs__dot{width:var(--ef-ui-tabs-dot-width);height:var(--ef-ui-tabs-dot-height);border-radius:50%;background:var(--ef-ui-tabs-dot-background);flex:none}\n`],[516,`.efds-segmented{box-sizing:border-box;padding:var(--ef-ui-segmented-padding);margin-top:var(--ef-ui-segmented-margin-top);column-gap:var(--ef-ui-segmented-column-gap);row-gap:var(--ef-ui-segmented-row-gap);border-radius:var(--ef-ui-segmented-border-radius);background:var(--ef-ui-segmented-background);border:var(--ef-ui-segmented-border);box-shadow:var(--ef-ui-segmented-box-shadow);min-height:var(--ef-ui-segmented-min-height);display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0, 1fr)}\n.efds-segmented__option{margin:0px;padding:var(--ef-ui-segmented-option-padding);border:0px;background:transparent;font:inherit;color:var(--ef-ui-segmented-option-color);text-align:center;text-decoration:none;cursor:pointer;appearance:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;position:relative;display:flex;align-items:center;justify-content:center;min-height:var(--ef-ui-segmented-option-min-height);border-radius:var(--ef-ui-segmented-option-border-radius);white-space:nowrap;font-family:var(--ef-ui-segmented-option-font-family);font-weight:var(--ef-ui-segmented-option-font-weight);font-size:var(--ef-ui-segmented-option-font-size);line-height:var(--ef-ui-segmented-option-line-height);letter-spacing:var(--ef-ui-segmented-option-letter-spacing);text-transform:var(--ef-ui-segmented-option-text-transform);font-variant-numeric:var(--ef-ui-segmented-option-font-variant-numeric);transition:var(--ef-ui-segmented-option-transition);outline:none}\n.efds-segmented__option[aria-checked="true"]{padding:var(--ef-ui-segmented-chosen-padding);background:var(--ef-ui-segmented-chosen-background);color:var(--ef-ui-segmented-chosen-color);min-height:var(--ef-ui-segmented-chosen-min-height);border-radius:var(--ef-ui-segmented-chosen-border-radius);font-weight:var(--ef-ui-segmented-chosen-font-weight);font-size:var(--ef-ui-segmented-chosen-font-size);line-height:var(--ef-ui-segmented-chosen-line-height);letter-spacing:var(--ef-ui-segmented-chosen-letter-spacing)}\n.efds-segmented__option:active:not(:disabled):not([aria-disabled="true"]){transform:var(--ef-ui-segmented-press-transform)}\n.efds-segmented__option:focus-visible{outline:var(--ef-ui-segmented-focus-outline);outline-offset:var(--ef-ui-segmented-focus-outline-offset)}\n.efds-segmented__option:disabled{cursor:default}\n`],[543,`@media (prefers-reduced-motion: reduce){\n.efds-segmented__option{transition:none !important}\n}\n`],[546,`@media (prefers-reduced-motion: reduce){\n.efds-segmented__option:active:not(:disabled):not([aria-disabled="true"]){transform:none}\n}\n`],[1425,`@media (forced-colors: active){\n.efds-tabs__tab:not(:focus-visible){outline-style:none}\n}\n`],[1470,`@media (forced-colors: active){\n.efds-segmented__option[aria-checked="true"], .efds-tabs__tab[aria-selected="true"]{forced-color-adjust:none;background:Highlight;color:HighlightText;border-color:Highlight;box-shadow:none}\n}\n`],[1475,`@media (forced-colors: active){\n.efds-segmented__option[aria-checked="true"]:focus-visible, .efds-tabs__tab[aria-selected="true"]:focus-visible{outline-color:CanvasText}\n}\n`]],needs:[]};var toastCss={name:"toast",props:[30,"--ef-ui-t-metrics-lists-toast-box-padding-0:10px;--ef-ui-t-metrics-lists-toast-box-padding-1:16px;--ef-ui-t-metrics-lists-toast-box-padding-2:10px;--ef-ui-t-metrics-lists-toast-box-padding-3:16px;--ef-ui-t-metrics-lists-toast-box-radius-0:999px;--ef-ui-t-metrics-lists-toast-box-bg:var(--ef-ui-color-ink);--ef-ui-t-metrics-lists-toast-text-size:15px;--ef-ui-t-metrics-lists-toast-text-weight:400;--ef-ui-t-metrics-lists-toast-text-line-height:20.25px;--ef-ui-t-metrics-lists-toast-text-color:var(--ef-ui-color-on-ink);--ef-ui-t-metrics-lists-toast-inset:16px;--ef-ui-t-metrics-lists-toast-rise:8px;--ef-ui-t-metrics-lists-toast-fade:200ms;--ef-ui-t-metrics-variants-toast-box-padding-0:12px;--ef-ui-t-metrics-variants-toast-box-padding-1:15px;--ef-ui-t-metrics-variants-toast-box-padding-2:12px;--ef-ui-t-metrics-variants-toast-box-padding-3:15px;--ef-ui-t-metrics-variants-toast-box-radius-0:16px;--ef-ui-t-metrics-variants-toast-box-bg:var(--ef-ui-color-ink);--ef-ui-t-metrics-variants-toast-box-x:16px;--ef-ui-t-metrics-variants-toast-box-y:62px;--ef-ui-t-metrics-variants-toast-text-size:14.5px;--ef-ui-t-metrics-variants-toast-text-weight:400;--ef-ui-t-metrics-variants-toast-text-line-height:20.3px;--ef-ui-t-metrics-variants-toast-text-color:var(--ef-ui-color-on-ink);--ef-ui-t-metrics-variants-toast-motion-enter-ms:220ms;--ef-ui-t-metrics-variants-toast-motion-exit-ms:160ms;--ef-ui-t-metrics-variants-toast-motion-easing-0:0.23;--ef-ui-t-metrics-variants-toast-motion-easing-1:1;--ef-ui-t-metrics-variants-toast-motion-easing-2:0.32;--ef-ui-t-metrics-variants-toast-motion-easing-3:1;--ef-ui-t-metrics-variants-toast-motion-rise:-8px;--ef-ui-toast-max-width:calc(100% - calc(var(--ef-ui-t-metrics-lists-toast-inset) * 2));--ef-ui-toast-padding:var(--ef-ui-t-metrics-lists-toast-box-padding-0) var(--ef-ui-t-metrics-lists-toast-box-padding-1) var(--ef-ui-t-metrics-lists-toast-box-padding-2) var(--ef-ui-t-metrics-lists-toast-box-padding-3);--ef-ui-toast-border-radius:var(--ef-ui-t-metrics-lists-toast-box-radius-0);--ef-ui-toast-background:var(--ef-ui-t-metrics-lists-toast-box-bg);--ef-ui-toast-message-font-family:var(--ef-ui-font-family);--ef-ui-toast-message-font-weight:var(--ef-ui-t-metrics-lists-toast-text-weight);--ef-ui-toast-message-font-size:var(--ef-ui-t-metrics-lists-toast-text-size);--ef-ui-toast-message-line-height:var(--ef-ui-t-metrics-lists-toast-text-line-height);--ef-ui-toast-message-color:var(--ef-ui-t-metrics-lists-toast-text-color);--ef-ui-toast-message-letter-spacing:initial;--ef-ui-toast-message-text-transform:initial;--ef-ui-toast-message-font-variant-numeric:initial;--ef-ui-toast-action-color:var(--ef-ui-t-metrics-lists-toast-text-color);--ef-ui-toast-action-margin-inline-start:var(--ef-ui-t-metrics-lists-banner-acts-gap-0);--ef-ui-toast-action-font-family:var(--ef-ui-font-family);--ef-ui-toast-action-font-weight:var(--ef-ui-t-metrics-lists-banner-link-weight);--ef-ui-toast-action-font-size:var(--ef-ui-t-metrics-lists-toast-text-size);--ef-ui-toast-action-line-height:var(--ef-ui-t-metrics-lists-toast-text-line-height);--ef-ui-toast-action-letter-spacing:initial;--ef-ui-toast-action-text-transform:initial;--ef-ui-toast-action-font-variant-numeric:initial;--ef-ui-toast-action-press-opacity:var(--ef-ui-t-metrics-lists-link-pressed-opacity);--ef-ui-toast-action-focus-outline-color:var(--ef-ui-t-metrics-lists-toast-text-color);--ef-ui-toast-host-transform:translateY(var(--ef-ui-t-metrics-lists-toast-rise));--ef-ui-toast-host-transition:opacity var(--ef-ui-t-metrics-lists-toast-fade) cubic-bezier(var(--ef-ui-t-motion-easing-out-0), var(--ef-ui-t-motion-easing-out-1), var(--ef-ui-t-motion-easing-out-2), var(--ef-ui-t-motion-easing-out-3)), transform var(--ef-ui-t-metrics-lists-toast-fade) cubic-bezier(var(--ef-ui-t-motion-easing-out-0), var(--ef-ui-t-motion-easing-out-1), var(--ef-ui-t-motion-easing-out-2), var(--ef-ui-t-motion-easing-out-3));--ef-ui-toast-card-padding:var(--ef-ui-t-metrics-variants-toast-box-padding-0) var(--ef-ui-t-metrics-variants-toast-box-padding-1) var(--ef-ui-t-metrics-variants-toast-box-padding-2) var(--ef-ui-t-metrics-variants-toast-box-padding-3);--ef-ui-toast-card-border-radius:var(--ef-ui-t-metrics-variants-toast-box-radius-0);--ef-ui-toast-card-background:var(--ef-ui-t-metrics-variants-toast-box-bg);--ef-ui-toast-card-font-family:var(--ef-ui-font-family);--ef-ui-toast-card-font-weight:var(--ef-ui-t-metrics-variants-toast-text-weight);--ef-ui-toast-card-font-size:var(--ef-ui-t-metrics-variants-toast-text-size);--ef-ui-toast-card-line-height:var(--ef-ui-t-metrics-variants-toast-text-line-height);--ef-ui-toast-card-color:var(--ef-ui-t-metrics-variants-toast-text-color);--ef-ui-toast-card-letter-spacing:initial;--ef-ui-toast-card-text-transform:initial;--ef-ui-toast-card-font-variant-numeric:initial;--ef-ui-toast-card-message-font-family:var(--ef-ui-font-family);--ef-ui-toast-card-message-font-weight:var(--ef-ui-t-metrics-variants-toast-text-weight);--ef-ui-toast-card-message-font-size:var(--ef-ui-t-metrics-variants-toast-text-size);--ef-ui-toast-card-message-line-height:var(--ef-ui-t-metrics-variants-toast-text-line-height);--ef-ui-toast-card-message-color:var(--ef-ui-t-metrics-variants-toast-text-color);--ef-ui-toast-card-message-letter-spacing:initial;--ef-ui-toast-card-message-text-transform:initial;--ef-ui-toast-card-message-font-variant-numeric:initial;--ef-ui-toast-region-card-top:calc(var(--ef-ui-t-metrics-variants-toast-box-y) + var(--ef-ui-toast-top, 0px));--ef-ui-toast-region-card-left:var(--ef-ui-t-metrics-variants-toast-box-x);--ef-ui-toast-region-card-right:var(--ef-ui-t-metrics-variants-toast-box-x);--ef-ui-toast-card-host-transform:translateY(var(--ef-ui-t-metrics-variants-toast-motion-rise));--ef-ui-toast-card-host-transition:opacity var(--ef-ui-t-metrics-variants-toast-motion-exit-ms) ease, transform var(--ef-ui-t-metrics-variants-toast-motion-exit-ms) cubic-bezier(var(--ef-ui-t-metrics-variants-toast-motion-easing-0), var(--ef-ui-t-metrics-variants-toast-motion-easing-1), var(--ef-ui-t-metrics-variants-toast-motion-easing-2), var(--ef-ui-t-metrics-variants-toast-motion-easing-3));--ef-ui-toast-card-host-open-transition:opacity var(--ef-ui-t-metrics-variants-toast-motion-enter-ms) ease, transform var(--ef-ui-t-metrics-variants-toast-motion-enter-ms) cubic-bezier(var(--ef-ui-t-metrics-variants-toast-motion-easing-0), var(--ef-ui-t-metrics-variants-toast-motion-easing-1), var(--ef-ui-t-metrics-variants-toast-motion-easing-2), var(--ef-ui-t-metrics-variants-toast-motion-easing-3))",""],segments:[[471,`.efds-toast{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;width:max-content;max-width:var(--ef-ui-toast-max-width);margin:0 auto;padding:var(--ef-ui-toast-padding);border-radius:var(--ef-ui-toast-border-radius);background:var(--ef-ui-toast-background);pointer-events:auto}\n.efds-toast__message{flex:0 1 auto;min-width:0px;margin:0px;text-align:center;font-family:var(--ef-ui-toast-message-font-family);font-weight:var(--ef-ui-toast-message-font-weight);font-size:var(--ef-ui-toast-message-font-size);line-height:var(--ef-ui-toast-message-line-height);color:var(--ef-ui-toast-message-color);letter-spacing:var(--ef-ui-toast-message-letter-spacing);text-transform:var(--ef-ui-toast-message-text-transform);font-variant-numeric:var(--ef-ui-toast-message-font-variant-numeric);text-wrap:pretty}\n.efds-toast__action{margin:0px;padding:0px;background:none;border:0px;font:inherit;color:var(--ef-ui-toast-action-color);text-align:inherit;text-decoration:none;cursor:pointer;appearance:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;position:relative;margin-inline-start:var(--ef-ui-toast-action-margin-inline-start);font-family:var(--ef-ui-toast-action-font-family);font-weight:var(--ef-ui-toast-action-font-weight);font-size:var(--ef-ui-toast-action-font-size);line-height:var(--ef-ui-toast-action-line-height);letter-spacing:var(--ef-ui-toast-action-letter-spacing);text-transform:var(--ef-ui-toast-action-text-transform);font-variant-numeric:var(--ef-ui-toast-action-font-variant-numeric);text-wrap:pretty;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-toast__action:active{opacity:var(--ef-ui-toast-action-press-opacity)}\n.efds-toast__action:focus-visible{outline-color:var(--ef-ui-toast-action-focus-outline-color)}\n.efds-toast-region{position:fixed;left:0px;right:0px;bottom:0px;z-index:1002;pointer-events:none}\n.efds-toast-host{opacity:0;transform:var(--ef-ui-toast-host-transform);transition:var(--ef-ui-toast-host-transition)}\n.efds-toast-host[data-state="open"]{opacity:1;transform:none}\n`],[493,`@media (prefers-reduced-motion: reduce){\n.efds-toast-host{transition:none !important}\n}\n`],[495,`@media (prefers-reduced-motion: reduce){\n.efds-toast-host{transform:none}\n}\n`],[538,`.efds-toast--card{display:block;width:auto;max-width:none;margin:0px;padding:var(--ef-ui-toast-card-padding);border-radius:var(--ef-ui-toast-card-border-radius);background:var(--ef-ui-toast-card-background);font-family:var(--ef-ui-toast-card-font-family);font-weight:var(--ef-ui-toast-card-font-weight);font-size:var(--ef-ui-toast-card-font-size);line-height:var(--ef-ui-toast-card-line-height);color:var(--ef-ui-toast-card-color);letter-spacing:var(--ef-ui-toast-card-letter-spacing);text-transform:var(--ef-ui-toast-card-text-transform);font-variant-numeric:var(--ef-ui-toast-card-font-variant-numeric);text-align:start}\n.efds-toast--card > .efds-toast__message{display:inline;text-align:start;font-family:var(--ef-ui-toast-card-message-font-family);font-weight:var(--ef-ui-toast-card-message-font-weight);font-size:var(--ef-ui-toast-card-message-font-size);line-height:var(--ef-ui-toast-card-message-line-height);color:var(--ef-ui-toast-card-message-color);letter-spacing:var(--ef-ui-toast-card-message-letter-spacing);text-transform:var(--ef-ui-toast-card-message-text-transform);font-variant-numeric:var(--ef-ui-toast-card-message-font-variant-numeric)}\n.efds-toast-region--card{top:var(--ef-ui-toast-region-card-top);bottom:auto;left:var(--ef-ui-toast-region-card-left);right:var(--ef-ui-toast-region-card-right)}\n.efds-toast-region--card .efds-toast-host{opacity:0;transform:var(--ef-ui-toast-card-host-transform);transition:var(--ef-ui-toast-card-host-transition)}\n.efds-toast-region--card .efds-toast-host[data-state="open"]{opacity:1;transform:none;transition:var(--ef-ui-toast-card-host-open-transition)}\n`],[545,`@media (prefers-reduced-motion: reduce){\n.efds-toast-region--card .efds-toast-host{transition:none !important}\n}\n`],[1435,`@media (forced-colors: active){\n.efds-toast__action:not(:focus-visible){outline-style:none}\n}\n`]],needs:[]};var PLAN_CSS_PARTS=[buttonCss,planNeedCardCss,segmentedTabsCss,summaryListCss,tipCardCss,toastCss];function webPlanDsTheme(theme,outline=false){return planDsTheme(theme,everfurWebTheme,()=>{let tokens=planTokens(theme);return{roles:tokens,dark:v3Palette(theme).dark,type:{family:tokens.sans??"",mono:tokens.mono??"",serif:tokens.serif??""},reduced:theme.motion.reducedMotion}},outline)}function PlanDs(props){let theme=usePlanTheme(),scope=useDsStyles(PLAN_CSS_PARTS,"health-plan");/* @__PURE__ */
61
+ return jsx(Tab,{on:tab.key===value,reach:tab.key===reachable,label:tab.label,dot:tab.dot===true,dotLabel:tab.dotLabel,lines:numberOfLines,onPress:press.onPress,onPointerDown:press.onPointerDown,onKeyDown:onKeyDown2(i),testID:id},tab.key)})})}var SegmentedTabs=/* @__PURE__ */forwardRef(SegmentedTabsImpl);var GRAB="#DAD7D1";function planDsInput(p,outline=false){let r=role=>p.roles[role]??role,neutral=hex=>p.dark?r("line"):hex,box=(bg,extra={})=>({bg:bg,...extra}),words2=color=>({color:color}),noShadow={color:"",x:0,y:0,blur:0,spread:0},plan=Object.fromEntries(Object.entries({planInk:"primary",planOnInk:"onPrimary",planAccent:"accent",planLink:"link",planAccentWash:"accent4",planAccentChip:"accentChip",planLinkWash:"linkWash",planLinkChip:"linkChip"}).flatMap(([k,role])=>p.roles[role]===void 0?[]:[[k,p.roles[role]]]));return{colors:{bg:r("paper"),surface:r("card"),text:r("black"),ink:r(outline?"ink":"primary"),onInk:r("onPrimary"),muted:r("ink3"),line:r("line"),scrim:r("scrim"),grab:neutral(GRAB),focus:r("ink"),...plan},type:p.type,motion:{reduced:p.reduced},metrics:{variants:{drawer:{frame:box(r("card"),{color:r("ink")}),grab:box(neutral(GRAB)),kicker:words2(r("ink3")),close:{color:r("ink")},title:{color:r("ink"),wrap:"auto"},text:words2(r("black")),scrim:r("scrim")},segmented:{track:box(r("card"),{edge:{color:neutral(GRAB)}}),label:words2(r("ink")),chosen:box(r("primary")),chosenLabel:words2(r("onPrimary"))},stepper:{track:box(r("card"),{edge:{color:neutral(GRAB)}}),button:{color:r("ink")},value:words2(r("ink"))},summary:{box:box(r("card"),p.dark?{shadow:noShadow}:{}),term:words2(r("ink2")),value:words2(r("ink")),totalTerm:words2(r("ink")),total:words2(r("ink")),renewTerm:words2(r("ink2")),renew:words2(r("ink")),inset:box(r("paper"))},toast:{box:box(r("ink")),text:words2(r("onInk"))},focus:{color:r("ink")}}}}}var caches=/* @__PURE__ */new WeakMap;function planDsTheme(key,preset,input,outline=false){let byPreset=caches.get(preset);byPreset===void 0&&(byPreset={fill:/* @__PURE__ */new WeakMap,outline:/* @__PURE__ */new WeakMap},caches.set(preset,byPreset));let cache2=byPreset[outline?"outline":"fill"],t=cache2.get(key);return t===void 0&&(t=resolveTheme(planDsInput(input(),outline),preset),cache2.set(key,t)),t}var segmentedTabsCss={name:"segmentedTabs",props:[12,"--ef-ui-t-metrics-tabs-min-height:44px;--ef-ui-t-metrics-tabs-gap:6px;--ef-ui-t-metrics-tabs-font-size:15px;--ef-ui-t-metrics-tabs-font-weight:500;--ef-ui-t-metrics-tabs-current-weight:700;--ef-ui-t-metrics-tabs-line-height:1.55;--ef-ui-t-metrics-tabs-indicator:3px;--ef-ui-t-metrics-tabs-hairline:1px;--ef-ui-t-metrics-tabs-dot:7px;--ef-ui-t-metrics-variants-segmented-track-padding-0:4px;--ef-ui-t-metrics-variants-segmented-track-padding-1:4px;--ef-ui-t-metrics-variants-segmented-track-padding-2:4px;--ef-ui-t-metrics-variants-segmented-track-padding-3:4px;--ef-ui-t-metrics-variants-segmented-track-gap-0:4px;--ef-ui-t-metrics-variants-segmented-track-gap-1:4px;--ef-ui-t-metrics-variants-segmented-track-radius-0:22px;--ef-ui-t-metrics-variants-segmented-track-radius-1:22px;--ef-ui-t-metrics-variants-segmented-track-bg:var(--ef-ui-color-surface);--ef-ui-t-metrics-variants-segmented-track-edge-width:1.5px;--ef-ui-t-metrics-variants-segmented-track-edge-color:#DAD7D1;--ef-ui-t-metrics-variants-segmented-track-shadow-x:0px;--ef-ui-t-metrics-variants-segmented-track-shadow-y:0px;--ef-ui-t-metrics-variants-segmented-track-shadow-blur:0px;--ef-ui-t-metrics-variants-segmented-track-shadow-spread:0px;--ef-ui-t-metrics-variants-segmented-option-padding-1:6px;--ef-ui-t-metrics-variants-segmented-option-min-height:36px;--ef-ui-t-metrics-variants-segmented-option-radius-0:18px;--ef-ui-t-metrics-variants-segmented-label-size:14px;--ef-ui-t-metrics-variants-segmented-label-weight:700;--ef-ui-t-metrics-variants-segmented-label-line-height:21px;--ef-ui-t-metrics-variants-segmented-label-color:var(--ef-ui-color-ink);--ef-ui-t-metrics-variants-segmented-chosen-padding-1:6px;--ef-ui-t-metrics-variants-segmented-chosen-min-height:36px;--ef-ui-t-metrics-variants-segmented-chosen-radius-0:18px;--ef-ui-t-metrics-variants-segmented-chosen-bg:var(--ef-ui-color-ink);--ef-ui-t-metrics-variants-segmented-chosen-label-size:14px;--ef-ui-t-metrics-variants-segmented-chosen-label-weight:700;--ef-ui-t-metrics-variants-segmented-chosen-label-line-height:21px;--ef-ui-t-metrics-variants-segmented-chosen-label-color:var(--ef-ui-color-on-ink);--ef-ui-t-metrics-variants-segmented-press:0.96;--ef-ui-tabs-background:var(--ef-ui-color-surface);--ef-ui-tabs-box-shadow:0 var(--ef-ui-t-metrics-tabs-hairline) 0 var(--ef-ui-color-line);--ef-ui-tabs-tab-gap:var(--ef-ui-t-metrics-tabs-gap);--ef-ui-tabs-tab-min-height:var(--ef-ui-t-metrics-tabs-min-height);--ef-ui-tabs-tab-font-family:var(--ef-ui-font-family);--ef-ui-tabs-tab-font-weight:var(--ef-ui-t-metrics-tabs-font-weight);--ef-ui-tabs-tab-font-size:var(--ef-ui-t-metrics-tabs-font-size);--ef-ui-tabs-tab-line-height:calc(var(--ef-ui-t-metrics-tabs-font-size) * var(--ef-ui-t-metrics-tabs-line-height));--ef-ui-tabs-tab-color:var(--ef-ui-color-muted);--ef-ui-tabs-tab-on-font-weight:var(--ef-ui-t-metrics-tabs-current-weight);--ef-ui-tabs-tab-on-color:var(--ef-ui-color-ink);--ef-ui-tabs-tab-on-box-shadow:inset 0 calc(-1 * var(--ef-ui-t-metrics-tabs-indicator)) 0 var(--ef-ui-color-go);--ef-ui-tabs-focus-outline-color:var(--ef-ui-color-focus);--ef-ui-tabs-hover-color:var(--ef-ui-color-ink);--ef-ui-tabs-dot-width:var(--ef-ui-t-metrics-tabs-dot);--ef-ui-tabs-dot-height:var(--ef-ui-t-metrics-tabs-dot);--ef-ui-tabs-dot-background:var(--ef-ui-color-go);--ef-ui-segmented-padding:var(--ef-ui-t-metrics-variants-segmented-track-padding-0) var(--ef-ui-t-metrics-variants-segmented-track-padding-1) var(--ef-ui-t-metrics-variants-segmented-track-padding-2) var(--ef-ui-t-metrics-variants-segmented-track-padding-3);--ef-ui-segmented-margin-top:initial;--ef-ui-segmented-column-gap:var(--ef-ui-t-metrics-variants-segmented-track-gap-0);--ef-ui-segmented-row-gap:var(--ef-ui-t-metrics-variants-segmented-track-gap-1);--ef-ui-segmented-border-radius:var(--ef-ui-t-metrics-variants-segmented-track-radius-0) var(--ef-ui-t-metrics-variants-segmented-track-radius-0) var(--ef-ui-t-metrics-variants-segmented-track-radius-1) var(--ef-ui-t-metrics-variants-segmented-track-radius-1);--ef-ui-segmented-background:var(--ef-ui-t-metrics-variants-segmented-track-bg);--ef-ui-segmented-border:initial;--ef-ui-segmented-box-shadow:var(--ef-ui-t-metrics-variants-segmented-track-shadow-x) var(--ef-ui-t-metrics-variants-segmented-track-shadow-y) var(--ef-ui-t-metrics-variants-segmented-track-shadow-blur) var(--ef-ui-t-metrics-variants-segmented-track-shadow-spread), inset 0 0 0 var(--ef-ui-t-metrics-variants-segmented-track-edge-width) var(--ef-ui-t-metrics-variants-segmented-track-edge-color);--ef-ui-segmented-min-height:initial;--ef-ui-segmented-option-padding:0 var(--ef-ui-t-metrics-variants-segmented-option-padding-1);--ef-ui-segmented-option-color:var(--ef-ui-t-metrics-variants-segmented-label-color);--ef-ui-segmented-option-min-height:var(--ef-ui-t-metrics-variants-segmented-option-min-height);--ef-ui-segmented-option-border-radius:var(--ef-ui-t-metrics-variants-segmented-option-radius-0);--ef-ui-segmented-option-font-family:var(--ef-ui-font-family);--ef-ui-segmented-option-font-weight:var(--ef-ui-t-metrics-variants-segmented-label-weight);--ef-ui-segmented-option-font-size:var(--ef-ui-t-metrics-variants-segmented-label-size);--ef-ui-segmented-option-line-height:var(--ef-ui-t-metrics-variants-segmented-label-line-height);--ef-ui-segmented-option-letter-spacing:initial;--ef-ui-segmented-option-text-transform:initial;--ef-ui-segmented-option-font-variant-numeric:initial;--ef-ui-segmented-option-transition:background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);--ef-ui-segmented-chosen-padding:0 var(--ef-ui-t-metrics-variants-segmented-chosen-padding-1);--ef-ui-segmented-chosen-background:var(--ef-ui-t-metrics-variants-segmented-chosen-bg);--ef-ui-segmented-chosen-color:var(--ef-ui-t-metrics-variants-segmented-chosen-label-color);--ef-ui-segmented-chosen-min-height:var(--ef-ui-t-metrics-variants-segmented-chosen-min-height);--ef-ui-segmented-chosen-border-radius:var(--ef-ui-t-metrics-variants-segmented-chosen-radius-0);--ef-ui-segmented-chosen-font-weight:var(--ef-ui-t-metrics-variants-segmented-chosen-label-weight);--ef-ui-segmented-chosen-font-size:var(--ef-ui-t-metrics-variants-segmented-chosen-label-size);--ef-ui-segmented-chosen-line-height:var(--ef-ui-t-metrics-variants-segmented-chosen-label-line-height);--ef-ui-segmented-chosen-letter-spacing:initial;--ef-ui-segmented-press-transform:scale(var(--ef-ui-t-metrics-variants-segmented-press));--ef-ui-segmented-focus-outline:var(--ef-ui-t-metrics-variants-focus-width) solid var(--ef-ui-t-metrics-variants-focus-color);--ef-ui-segmented-focus-outline-offset:var(--ef-ui-t-metrics-variants-focus-offset)","--ef-ui-t-metrics-tabs-dot:0px"],segments:[[183,`.efds-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0, 1fr);background:var(--ef-ui-tabs-background);box-shadow:var(--ef-ui-tabs-box-shadow)}\n.efds-tabs__tab{font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-style:solid;appearance:none;display:flex;align-items:center;justify-content:center;gap:var(--ef-ui-tabs-tab-gap);min-height:var(--ef-ui-tabs-tab-min-height);padding:0px;border-width:0px;background:transparent;font-family:var(--ef-ui-tabs-tab-font-family);font-weight:var(--ef-ui-tabs-tab-font-weight);font-size:var(--ef-ui-tabs-tab-font-size);line-height:var(--ef-ui-tabs-tab-line-height);color:var(--ef-ui-tabs-tab-color);outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-tabs__tab[aria-selected="true"]{font-weight:var(--ef-ui-tabs-tab-on-font-weight);color:var(--ef-ui-tabs-tab-on-color);box-shadow:var(--ef-ui-tabs-tab-on-box-shadow)}\n.efds-tabs__tab:focus-visible{outline-color:var(--ef-ui-tabs-focus-outline-color)}\n@media (hover: hover) and (pointer: fine){\n.efds-tabs__tab:not([aria-selected="true"]):hover{color:var(--ef-ui-tabs-hover-color)}\n}\n.efds-tabs__dot{width:var(--ef-ui-tabs-dot-width);height:var(--ef-ui-tabs-dot-height);border-radius:50%;background:var(--ef-ui-tabs-dot-background);flex:none}\n`],[516,`.efds-segmented{box-sizing:border-box;padding:var(--ef-ui-segmented-padding);margin-top:var(--ef-ui-segmented-margin-top);column-gap:var(--ef-ui-segmented-column-gap);row-gap:var(--ef-ui-segmented-row-gap);border-radius:var(--ef-ui-segmented-border-radius);background:var(--ef-ui-segmented-background);border:var(--ef-ui-segmented-border);box-shadow:var(--ef-ui-segmented-box-shadow);min-height:var(--ef-ui-segmented-min-height);display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0, 1fr)}\n.efds-segmented__option{margin:0px;padding:var(--ef-ui-segmented-option-padding);border:0px;background:transparent;font:inherit;color:var(--ef-ui-segmented-option-color);text-align:center;text-decoration:none;cursor:pointer;appearance:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;position:relative;display:flex;align-items:center;justify-content:center;min-height:var(--ef-ui-segmented-option-min-height);border-radius:var(--ef-ui-segmented-option-border-radius);white-space:nowrap;font-family:var(--ef-ui-segmented-option-font-family);font-weight:var(--ef-ui-segmented-option-font-weight);font-size:var(--ef-ui-segmented-option-font-size);line-height:var(--ef-ui-segmented-option-line-height);letter-spacing:var(--ef-ui-segmented-option-letter-spacing);text-transform:var(--ef-ui-segmented-option-text-transform);font-variant-numeric:var(--ef-ui-segmented-option-font-variant-numeric);transition:var(--ef-ui-segmented-option-transition);outline:none}\n.efds-segmented__option[aria-checked="true"]{padding:var(--ef-ui-segmented-chosen-padding);background:var(--ef-ui-segmented-chosen-background);color:var(--ef-ui-segmented-chosen-color);min-height:var(--ef-ui-segmented-chosen-min-height);border-radius:var(--ef-ui-segmented-chosen-border-radius);font-weight:var(--ef-ui-segmented-chosen-font-weight);font-size:var(--ef-ui-segmented-chosen-font-size);line-height:var(--ef-ui-segmented-chosen-line-height);letter-spacing:var(--ef-ui-segmented-chosen-letter-spacing)}\n.efds-segmented__option:active:not(:disabled):not([aria-disabled="true"]){transform:var(--ef-ui-segmented-press-transform)}\n.efds-segmented__option:focus-visible{outline:var(--ef-ui-segmented-focus-outline);outline-offset:var(--ef-ui-segmented-focus-outline-offset)}\n.efds-segmented__option:disabled{cursor:default}\n`],[543,`@media (prefers-reduced-motion: reduce){\n.efds-segmented__option{transition:none !important}\n}\n`],[546,`@media (prefers-reduced-motion: reduce){\n.efds-segmented__option:active:not(:disabled):not([aria-disabled="true"]){transform:none}\n}\n`],[1533,`@media (forced-colors: active){\n.efds-tabs__tab:not(:focus-visible){outline-style:none}\n}\n`],[1578,`@media (forced-colors: active){\n.efds-segmented__option[aria-checked="true"], .efds-tabs__tab[aria-selected="true"]{forced-color-adjust:none;background:Highlight;color:HighlightText;border-color:Highlight;box-shadow:none}\n}\n`],[1583,`@media (forced-colors: active){\n.efds-segmented__option[aria-checked="true"]:focus-visible, .efds-tabs__tab[aria-selected="true"]:focus-visible{outline-color:CanvasText}\n}\n`]],needs:[]};var toastCss={name:"toast",props:[30,"--ef-ui-t-metrics-lists-toast-box-padding-0:10px;--ef-ui-t-metrics-lists-toast-box-padding-1:16px;--ef-ui-t-metrics-lists-toast-box-padding-2:10px;--ef-ui-t-metrics-lists-toast-box-padding-3:16px;--ef-ui-t-metrics-lists-toast-box-radius-0:999px;--ef-ui-t-metrics-lists-toast-box-bg:var(--ef-ui-color-ink);--ef-ui-t-metrics-lists-toast-text-size:15px;--ef-ui-t-metrics-lists-toast-text-weight:400;--ef-ui-t-metrics-lists-toast-text-line-height:20.25px;--ef-ui-t-metrics-lists-toast-text-color:var(--ef-ui-color-on-ink);--ef-ui-t-metrics-lists-toast-inset:16px;--ef-ui-t-metrics-lists-toast-rise:8px;--ef-ui-t-metrics-lists-toast-fade:200ms;--ef-ui-t-metrics-variants-toast-box-padding-0:12px;--ef-ui-t-metrics-variants-toast-box-padding-1:15px;--ef-ui-t-metrics-variants-toast-box-padding-2:12px;--ef-ui-t-metrics-variants-toast-box-padding-3:15px;--ef-ui-t-metrics-variants-toast-box-radius-0:16px;--ef-ui-t-metrics-variants-toast-box-bg:var(--ef-ui-color-ink);--ef-ui-t-metrics-variants-toast-box-x:16px;--ef-ui-t-metrics-variants-toast-box-y:62px;--ef-ui-t-metrics-variants-toast-text-size:14.5px;--ef-ui-t-metrics-variants-toast-text-weight:400;--ef-ui-t-metrics-variants-toast-text-line-height:20.3px;--ef-ui-t-metrics-variants-toast-text-color:var(--ef-ui-color-on-ink);--ef-ui-t-metrics-variants-toast-motion-enter-ms:220ms;--ef-ui-t-metrics-variants-toast-motion-exit-ms:160ms;--ef-ui-t-metrics-variants-toast-motion-easing-0:0.23;--ef-ui-t-metrics-variants-toast-motion-easing-1:1;--ef-ui-t-metrics-variants-toast-motion-easing-2:0.32;--ef-ui-t-metrics-variants-toast-motion-easing-3:1;--ef-ui-t-metrics-variants-toast-motion-rise:-8px;--ef-ui-toast-max-width:calc(100% - calc(var(--ef-ui-t-metrics-lists-toast-inset) * 2));--ef-ui-toast-padding:var(--ef-ui-t-metrics-lists-toast-box-padding-0) var(--ef-ui-t-metrics-lists-toast-box-padding-1) var(--ef-ui-t-metrics-lists-toast-box-padding-2) var(--ef-ui-t-metrics-lists-toast-box-padding-3);--ef-ui-toast-border-radius:var(--ef-ui-t-metrics-lists-toast-box-radius-0);--ef-ui-toast-background:var(--ef-ui-t-metrics-lists-toast-box-bg);--ef-ui-toast-message-font-family:var(--ef-ui-font-family);--ef-ui-toast-message-font-weight:var(--ef-ui-t-metrics-lists-toast-text-weight);--ef-ui-toast-message-font-size:var(--ef-ui-t-metrics-lists-toast-text-size);--ef-ui-toast-message-line-height:var(--ef-ui-t-metrics-lists-toast-text-line-height);--ef-ui-toast-message-color:var(--ef-ui-t-metrics-lists-toast-text-color);--ef-ui-toast-message-letter-spacing:initial;--ef-ui-toast-message-text-transform:initial;--ef-ui-toast-message-font-variant-numeric:initial;--ef-ui-toast-action-color:var(--ef-ui-t-metrics-lists-toast-text-color);--ef-ui-toast-action-margin-inline-start:var(--ef-ui-t-metrics-lists-banner-acts-gap-0);--ef-ui-toast-action-font-family:var(--ef-ui-font-family);--ef-ui-toast-action-font-weight:var(--ef-ui-t-metrics-lists-banner-link-weight);--ef-ui-toast-action-font-size:var(--ef-ui-t-metrics-lists-toast-text-size);--ef-ui-toast-action-line-height:var(--ef-ui-t-metrics-lists-toast-text-line-height);--ef-ui-toast-action-letter-spacing:initial;--ef-ui-toast-action-text-transform:initial;--ef-ui-toast-action-font-variant-numeric:initial;--ef-ui-toast-action-press-opacity:var(--ef-ui-t-metrics-lists-link-pressed-opacity);--ef-ui-toast-action-focus-outline-color:var(--ef-ui-t-metrics-lists-toast-text-color);--ef-ui-toast-host-transform:translateY(var(--ef-ui-t-metrics-lists-toast-rise));--ef-ui-toast-host-transition:opacity var(--ef-ui-t-metrics-lists-toast-fade) cubic-bezier(var(--ef-ui-t-motion-easing-out-0), var(--ef-ui-t-motion-easing-out-1), var(--ef-ui-t-motion-easing-out-2), var(--ef-ui-t-motion-easing-out-3)), transform var(--ef-ui-t-metrics-lists-toast-fade) cubic-bezier(var(--ef-ui-t-motion-easing-out-0), var(--ef-ui-t-motion-easing-out-1), var(--ef-ui-t-motion-easing-out-2), var(--ef-ui-t-motion-easing-out-3));--ef-ui-toast-card-padding:var(--ef-ui-t-metrics-variants-toast-box-padding-0) var(--ef-ui-t-metrics-variants-toast-box-padding-1) var(--ef-ui-t-metrics-variants-toast-box-padding-2) var(--ef-ui-t-metrics-variants-toast-box-padding-3);--ef-ui-toast-card-border-radius:var(--ef-ui-t-metrics-variants-toast-box-radius-0);--ef-ui-toast-card-background:var(--ef-ui-t-metrics-variants-toast-box-bg);--ef-ui-toast-card-font-family:var(--ef-ui-font-family);--ef-ui-toast-card-font-weight:var(--ef-ui-t-metrics-variants-toast-text-weight);--ef-ui-toast-card-font-size:var(--ef-ui-t-metrics-variants-toast-text-size);--ef-ui-toast-card-line-height:var(--ef-ui-t-metrics-variants-toast-text-line-height);--ef-ui-toast-card-color:var(--ef-ui-t-metrics-variants-toast-text-color);--ef-ui-toast-card-letter-spacing:initial;--ef-ui-toast-card-text-transform:initial;--ef-ui-toast-card-font-variant-numeric:initial;--ef-ui-toast-card-message-font-family:var(--ef-ui-font-family);--ef-ui-toast-card-message-font-weight:var(--ef-ui-t-metrics-variants-toast-text-weight);--ef-ui-toast-card-message-font-size:var(--ef-ui-t-metrics-variants-toast-text-size);--ef-ui-toast-card-message-line-height:var(--ef-ui-t-metrics-variants-toast-text-line-height);--ef-ui-toast-card-message-color:var(--ef-ui-t-metrics-variants-toast-text-color);--ef-ui-toast-card-message-letter-spacing:initial;--ef-ui-toast-card-message-text-transform:initial;--ef-ui-toast-card-message-font-variant-numeric:initial;--ef-ui-toast-region-card-top:calc(var(--ef-ui-t-metrics-variants-toast-box-y) + var(--ef-ui-toast-top, 0px));--ef-ui-toast-region-card-left:var(--ef-ui-t-metrics-variants-toast-box-x);--ef-ui-toast-region-card-right:var(--ef-ui-t-metrics-variants-toast-box-x);--ef-ui-toast-card-host-transform:translateY(var(--ef-ui-t-metrics-variants-toast-motion-rise));--ef-ui-toast-card-host-transition:opacity var(--ef-ui-t-metrics-variants-toast-motion-exit-ms) ease, transform var(--ef-ui-t-metrics-variants-toast-motion-exit-ms) cubic-bezier(var(--ef-ui-t-metrics-variants-toast-motion-easing-0), var(--ef-ui-t-metrics-variants-toast-motion-easing-1), var(--ef-ui-t-metrics-variants-toast-motion-easing-2), var(--ef-ui-t-metrics-variants-toast-motion-easing-3));--ef-ui-toast-card-host-open-transition:opacity var(--ef-ui-t-metrics-variants-toast-motion-enter-ms) ease, transform var(--ef-ui-t-metrics-variants-toast-motion-enter-ms) cubic-bezier(var(--ef-ui-t-metrics-variants-toast-motion-easing-0), var(--ef-ui-t-metrics-variants-toast-motion-easing-1), var(--ef-ui-t-metrics-variants-toast-motion-easing-2), var(--ef-ui-t-metrics-variants-toast-motion-easing-3))",""],segments:[[471,`.efds-toast{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;width:max-content;max-width:var(--ef-ui-toast-max-width);margin:0 auto;padding:var(--ef-ui-toast-padding);border-radius:var(--ef-ui-toast-border-radius);background:var(--ef-ui-toast-background);pointer-events:auto}\n.efds-toast__message{flex:0 1 auto;min-width:0px;margin:0px;text-align:center;font-family:var(--ef-ui-toast-message-font-family);font-weight:var(--ef-ui-toast-message-font-weight);font-size:var(--ef-ui-toast-message-font-size);line-height:var(--ef-ui-toast-message-line-height);color:var(--ef-ui-toast-message-color);letter-spacing:var(--ef-ui-toast-message-letter-spacing);text-transform:var(--ef-ui-toast-message-text-transform);font-variant-numeric:var(--ef-ui-toast-message-font-variant-numeric);text-wrap:pretty}\n.efds-toast__action{margin:0px;padding:0px;background:none;border:0px;font:inherit;color:var(--ef-ui-toast-action-color);text-align:inherit;text-decoration:none;cursor:pointer;appearance:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;position:relative;margin-inline-start:var(--ef-ui-toast-action-margin-inline-start);font-family:var(--ef-ui-toast-action-font-family);font-weight:var(--ef-ui-toast-action-font-weight);font-size:var(--ef-ui-toast-action-font-size);line-height:var(--ef-ui-toast-action-line-height);letter-spacing:var(--ef-ui-toast-action-letter-spacing);text-transform:var(--ef-ui-toast-action-text-transform);font-variant-numeric:var(--ef-ui-toast-action-font-variant-numeric);text-wrap:pretty;outline:var(--ef-ui-focus-width) solid transparent;outline-offset:var(--ef-ui-focus-offset)}\n.efds-toast__action:active{opacity:var(--ef-ui-toast-action-press-opacity)}\n.efds-toast__action:focus-visible{outline-color:var(--ef-ui-toast-action-focus-outline-color)}\n.efds-toast-region{position:fixed;left:0px;right:0px;bottom:0px;z-index:1002;pointer-events:none}\n.efds-toast-host{opacity:0;transform:var(--ef-ui-toast-host-transform);transition:var(--ef-ui-toast-host-transition)}\n.efds-toast-host[data-state="open"]{opacity:1;transform:none}\n`],[493,`@media (prefers-reduced-motion: reduce){\n.efds-toast-host{transition:none !important}\n}\n`],[495,`@media (prefers-reduced-motion: reduce){\n.efds-toast-host{transform:none}\n}\n`],[538,`.efds-toast--card{display:block;width:auto;max-width:none;margin:0px;padding:var(--ef-ui-toast-card-padding);border-radius:var(--ef-ui-toast-card-border-radius);background:var(--ef-ui-toast-card-background);font-family:var(--ef-ui-toast-card-font-family);font-weight:var(--ef-ui-toast-card-font-weight);font-size:var(--ef-ui-toast-card-font-size);line-height:var(--ef-ui-toast-card-line-height);color:var(--ef-ui-toast-card-color);letter-spacing:var(--ef-ui-toast-card-letter-spacing);text-transform:var(--ef-ui-toast-card-text-transform);font-variant-numeric:var(--ef-ui-toast-card-font-variant-numeric);text-align:start}\n.efds-toast--card > .efds-toast__message{display:inline;text-align:start;font-family:var(--ef-ui-toast-card-message-font-family);font-weight:var(--ef-ui-toast-card-message-font-weight);font-size:var(--ef-ui-toast-card-message-font-size);line-height:var(--ef-ui-toast-card-message-line-height);color:var(--ef-ui-toast-card-message-color);letter-spacing:var(--ef-ui-toast-card-message-letter-spacing);text-transform:var(--ef-ui-toast-card-message-text-transform);font-variant-numeric:var(--ef-ui-toast-card-message-font-variant-numeric)}\n.efds-toast-region--card{top:var(--ef-ui-toast-region-card-top);bottom:auto;left:var(--ef-ui-toast-region-card-left);right:var(--ef-ui-toast-region-card-right)}\n.efds-toast-region--card .efds-toast-host{opacity:0;transform:var(--ef-ui-toast-card-host-transform);transition:var(--ef-ui-toast-card-host-transition)}\n.efds-toast-region--card .efds-toast-host[data-state="open"]{opacity:1;transform:none;transition:var(--ef-ui-toast-card-host-open-transition)}\n`],[545,`@media (prefers-reduced-motion: reduce){\n.efds-toast-region--card .efds-toast-host{transition:none !important}\n}\n`],[1543,`@media (forced-colors: active){\n.efds-toast__action:not(:focus-visible){outline-style:none}\n}\n`]],needs:[]};var PLAN_CSS_PARTS=[buttonCss,planNeedCardCss,segmentedTabsCss,summaryListCss,tipCardCss,toastCss];function webPlanDsTheme(theme,outline=false){return planDsTheme(theme,everfurWebTheme,()=>{let tokens=planTokens(theme);return{roles:tokens,dark:v3Palette(theme).dark,type:{family:tokens.sans??"",mono:tokens.mono??"",serif:tokens.serif??""},reduced:theme.motion.reducedMotion}},outline)}function PlanDs(props){let theme=usePlanTheme(),scope=useDsStyles(PLAN_CSS_PARTS,"health-plan");/* @__PURE__ */
62
62
  return jsx(ThemeProvider,{ref:scope,theme:webPlanDsTheme(theme,props.outline===true),children:props.children})}var img=(k,src,fallback="box")=>src?/* @__PURE__ */jsx("img",{alt:"",src:src}):k.icon(fallback),EVERY_IN_ITEM={marginTop:8};function planButton(k,part,label,onPress,opts={}){let focus=opts.autoFocus===true?{"data-ef-autofocus":""}:{};if(k.library!==true)/* @__PURE__ */
63
63
  return jsx("button",{type:"button",...focus,...k.p(part),disabled:opts.disabled===true||void 0,onClick:onPress,children:label});let ghost=part==="buttonGhost";/* @__PURE__ */
64
64
  return jsx(PlanDs,{outline:ghost,children:/* @__PURE__ */jsx(Button,{...focus,label:label,onPress:onPress,tone:ghost?"outline":"ink",size:part==="buttonLarge"?"compactLg":"compact",fullWidth:true,disabled:opts.disabled===true})})}function shopSummary(k,total,opts={}){let{copy:copy}=k,renew=opts.renew??null,shipping=copy.shippingValue!=="";return k.library!==true||shipping&&opts.tag===true&&copy.shippingTag!==""?planSummary(k,total,opts):/* @__PURE__ */jsx(PlanDs,{children:/* @__PURE__ */jsx(SummaryList,{variant:opts.inCheckout===true?"inset":"card",rows:[{key:"subtotal",term:copy.subtotal,value:total},...shipping?[{key:"shipping",term:copy.shipping,value:copy.shippingValue}]:[]],total:{key:"total",term:renew===null?copy.total:copy.dueToday,value:total},...renew===null?{}:{note:{key:"renew",term:copy.thenRenews(renew),value:copy.renewsEvery(renew)}},testID:"health-plan-summary"})})}function planSummary(k,total,opts){let{p:p,copy:copy}=k,renew=opts.renew??null;/* @__PURE__ */