@everfur/sdk 0.17.0 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/CHANGELOG.md +167 -26
  2. package/care/package.json +8 -0
  3. package/dist/{Chat.d-uETscjrL.d.ts → Chat.d-Bz4iJ7d2.d.ts} +1 -1
  4. package/dist/{Chat.d-BYY1U61e.d.cts → Chat.d-C2ddC2u7.d.cts} +1 -1
  5. package/dist/{DepthViews.d-BsZ73mzL.d.ts → DepthViews.d-C6-Kzs6H.d.ts} +1 -1
  6. package/dist/{DepthViews.d-D_Qp4glO.d.cts → DepthViews.d-Chjs8H9V.d.cts} +1 -1
  7. package/dist/{DepthViews.d-DL8MP_kA.d.cts → DepthViews.d-pFL_ZBZT.d.cts} +1 -1
  8. package/dist/{DepthViews.d-B4SE5GUD.d.ts → DepthViews.d-qXt9OMgz.d.ts} +1 -1
  9. package/dist/{RecordsPage.d-CYotk2R9.d.cts → RecordsPage.d-Cmny6Q7g.d.cts} +2 -2
  10. package/dist/{RecordsPage.d-D4gP4leq.d.ts → RecordsPage.d-sNRolVdy.d.ts} +2 -2
  11. package/dist/animations/index.d.cts +5 -5
  12. package/dist/animations/index.d.ts +5 -5
  13. package/dist/{appStateLifecycle.d-DJXdDOJY.d.cts → appStateLifecycle.d-Bt70TQog.d.cts} +7 -7
  14. package/dist/{appStateLifecycle.d-CXJzBS3c.d.ts → appStateLifecycle.d-Jdg9_PFt.d.ts} +7 -7
  15. package/dist/{attachments.d-B8kOCb6q.d.cts → attachments.d-BVp3r6Ms.d.cts} +5 -5
  16. package/dist/{attachments.d-C61URT8r.d.cts → attachments.d-CF4_n-DZ.d.cts} +2 -2
  17. package/dist/{attachments.d-BTIGzXWD.d.ts → attachments.d-DnSCMjH0.d.ts} +5 -5
  18. package/dist/{attachments.d-BgatKf7d.d.ts → attachments.d-DsUZpMad.d.ts} +2 -2
  19. package/dist/{bookingCopy.d-B-bSYgqS.d.cts → bookingCopy.d-BHqE9Ozq.d.cts} +16 -16
  20. package/dist/{bookingCopy.d-JQW2SLM-.d.ts → bookingCopy.d-Ca4AQGZ7.d.ts} +16 -16
  21. package/dist/{branding.d-Bbc6p1XY.d.cts → branding.d-BFauULV6.d.cts} +1 -1
  22. package/dist/{branding.d-y6c0UwhE.d.ts → branding.d-DpNGEdDL.d.ts} +1 -1
  23. package/dist/care/index.cjs +3 -0
  24. package/dist/care/index.d.cts +434 -0
  25. package/dist/care/index.d.ts +434 -0
  26. package/dist/care/index.js +3 -0
  27. package/dist/{casesRepository.d-CVG2EXcg.d.cts → casesRepository.d-DFwD2kiS.d.cts} +1 -1
  28. package/dist/{casesRepository.d-CHEjzT4h.d.ts → casesRepository.d-VzxEyq2N.d.ts} +1 -1
  29. package/dist/chat/index.cjs +14 -13
  30. package/dist/chat/index.d.cts +13 -13
  31. package/dist/chat/index.d.ts +13 -13
  32. package/dist/chat/index.js +14 -13
  33. package/dist/chat/lite/index.cjs +14 -13
  34. package/dist/chat/lite/index.d.cts +13 -13
  35. package/dist/chat/lite/index.d.ts +13 -13
  36. package/dist/chat/lite/index.js +14 -13
  37. package/dist/chunk-Y3Q4GW47.js +31 -0
  38. package/dist/client/index.cjs +1 -1
  39. package/dist/client/index.d.cts +10 -10
  40. package/dist/client/index.d.ts +10 -10
  41. package/dist/client/index.js +1 -1
  42. package/dist/{clinicBatch.d-DdlFy4pD.d.cts → clinicBatch.d-CLqaih2C.d.cts} +2 -2
  43. package/dist/{clinicBatch.d-oNwH_dbI.d.ts → clinicBatch.d-DXDIL1lC.d.ts} +2 -2
  44. package/dist/{config.d-Cy_hJBJG.d.cts → config.d-7bCXvOGn.d.cts} +1 -1
  45. package/dist/{config.d-DopRLD4f.d.ts → config.d-cqyvpzDb.d.ts} +1 -1
  46. package/dist/consent/index.d.cts +5 -5
  47. package/dist/consent/index.d.ts +5 -5
  48. package/dist/{context.d-C42juGn6.d.cts → context.d-BeRanUXQ.d.cts} +7 -7
  49. package/dist/{context.d-Ban-Hhqu.d.ts → context.d-DAnmDYGr.d.ts} +7 -7
  50. package/dist/{copy.d-BTS5l6Ri.d.cts → copy.d-BPqs8swm.d.cts} +2 -2
  51. package/dist/{copy.d-qdbygul9.d.ts → copy.d-CxFzeuvo.d.ts} +2 -2
  52. package/dist/core/index.cjs +1 -1
  53. package/dist/core/index.d.cts +17 -17
  54. package/dist/core/index.d.ts +17 -17
  55. package/dist/core/index.js +1 -1
  56. package/dist/{depth.d-BGkHm2Se.d.ts → depth.d-C6XbnFig.d.ts} +2 -2
  57. package/dist/{depth.d-BfVrhq9o.d.cts → depth.d-qHdXHDd-.d.cts} +2 -2
  58. package/dist/{entitlementRepository.d-npT7L_7_.d.cts → entitlementRepository.d-C6uTDswj.d.cts} +4 -4
  59. package/dist/{entitlementRepository.d-CjwqCyhS.d.ts → entitlementRepository.d-D_cc7g4l.d.ts} +4 -4
  60. package/dist/{focus.d-S0nq_k1A.d.ts → focus.d-DiWvQR2j.d.ts} +193 -21
  61. package/dist/{focus.d-DS7Ze1Pp.d.cts → focus.d-HSkMHd-i.d.cts} +193 -21
  62. package/dist/health-plan/index.cjs +261 -176
  63. package/dist/health-plan/index.d.cts +627 -19
  64. package/dist/health-plan/index.d.ts +627 -19
  65. package/dist/health-plan/index.js +261 -176
  66. package/dist/{idempotency.d-COIrwuCb.d.ts → idempotency.d-CF5AvlYp.d.ts} +18 -639
  67. package/dist/{idempotency.d-gfiN4Qnp.d.cts → idempotency.d-DrO2zEZO.d.cts} +18 -639
  68. package/dist/{identity.d-D76vXtkJ.d.cts → identity.d-84x0dV7-.d.cts} +1 -1
  69. package/dist/{identity.d-B3mFvvRq.d.ts → identity.d-BXztMVYM.d.ts} +1 -1
  70. package/dist/index.cjs +12 -11
  71. package/dist/index.d.cts +21 -21
  72. package/dist/index.d.ts +21 -21
  73. package/dist/index.js +12 -11
  74. package/dist/{introEvents.d-3FLEemX3.d.cts → introEvents.d-Cwv72ER-.d.cts} +11 -11
  75. package/dist/{introEvents.d-BYnr37bd.d.ts → introEvents.d-DYU3znJs.d.ts} +11 -11
  76. package/dist/notifications/index.d.cts +4 -4
  77. package/dist/notifications/index.d.ts +4 -4
  78. package/dist/omsErrors.d-VF5tnr20.d.cts +633 -0
  79. package/dist/omsErrors.d-VF5tnr20.d.ts +633 -0
  80. package/dist/omsFields.d-BHntKIAH.d.cts +153 -0
  81. package/dist/omsFields.d-Cvfw8wWU.d.ts +153 -0
  82. package/dist/{optInView.d-DXRUGDiD.d.cts → optInView.d-4Hl4HbQh.d.cts} +3 -3
  83. package/dist/{optInView.d-BqFMcum4.d.ts → optInView.d-pq8tUTf6.d.ts} +3 -3
  84. package/dist/{parse.d-CY22hFxb.d.ts → parse.d-BJhhYfkv.d.ts} +1 -1
  85. package/dist/{parse.d-rvA_aRSO.d.cts → parse.d-D0v06qxx.d.cts} +1 -1
  86. package/dist/{pets.d-Cicz-aIO.d.ts → pets.d-1_CHpfgB.d.ts} +1 -1
  87. package/dist/{pets.d-RoHTZsaV.d.cts → pets.d-C4n-MDC4.d.cts} +1 -1
  88. package/dist/{petsRepository.d-DtAZf_Ja.d.ts → petsRepository.d-BuomdFjZ.d.ts} +1 -1
  89. package/dist/{petsRepository.d-BxMyt6Aj.d.cts → petsRepository.d-Dd95xh-M.d.cts} +1 -1
  90. package/dist/{ports.d-D7cjFUoL.d.cts → ports.d-Bf3tp7Pn.d.cts} +4 -4
  91. package/dist/{ports.d-DrgKa73F.d.ts → ports.d-ChZHFd-q.d.ts} +4 -4
  92. package/dist/{presentation.d-vy8kTGfR.d.cts → presentation.d-Bs8xQ4gD.d.cts} +4 -4
  93. package/dist/{presentation.d-vy8kTGfR.d.ts → presentation.d-Bs8xQ4gD.d.ts} +4 -4
  94. package/dist/records/depth/index.d.cts +9 -9
  95. package/dist/records/depth/index.d.ts +9 -9
  96. package/dist/records/index.cjs +11 -10
  97. package/dist/records/index.d.cts +24 -23
  98. package/dist/records/index.d.ts +24 -23
  99. package/dist/records/index.js +11 -10
  100. package/dist/{requestFunnel.d-BdQf53zs.d.cts → requestFunnel.d-CWI2pD3V.d.cts} +2 -2
  101. package/dist/{requestFunnel.d-B5y7Py8Z.d.ts → requestFunnel.d-DcQIAs45.d.ts} +2 -2
  102. package/dist/{resolve.d-CoQWUy1Y.d.cts → resolve.d-BTC3b6FW.d.cts} +1 -1
  103. package/dist/{resolve.d-CoQWUy1Y.d.ts → resolve.d-BTC3b6FW.d.ts} +1 -1
  104. package/dist/{runtimeTypes.d-r4Q5vASZ.d.cts → runtimeTypes.d-CIOVzjEK.d.cts} +6 -6
  105. package/dist/{runtimeTypes.d-D5EDgS3Y.d.ts → runtimeTypes.d-rbuONrIv.d.ts} +6 -6
  106. package/dist/{screenProps.d-v4a4kzxA.d.cts → screenProps.d-CFZe27oI.d.cts} +1 -1
  107. package/dist/{screenProps.d-KLCrP43b.d.ts → screenProps.d-yUA4k6yK.d.ts} +1 -1
  108. package/dist/server/events/index.cjs +2 -2
  109. package/dist/server/events/index.d.cts +49 -6
  110. package/dist/server/events/index.d.ts +49 -6
  111. package/dist/server/events/index.js +2 -2
  112. package/dist/server/index.cjs +1 -1
  113. package/dist/server/index.d.cts +3 -3
  114. package/dist/server/index.d.ts +3 -3
  115. package/dist/server/index.js +1 -1
  116. package/dist/shop/index.cjs +6 -6
  117. package/dist/shop/index.d.cts +9 -8
  118. package/dist/shop/index.d.ts +9 -8
  119. package/dist/shop/index.js +6 -6
  120. package/dist/shop/orders-v2/index.d.cts +2 -2
  121. package/dist/shop/orders-v2/index.d.ts +2 -2
  122. package/dist/tabs/index.cjs +4 -4
  123. package/dist/tabs/index.d.cts +14 -14
  124. package/dist/tabs/index.d.ts +14 -14
  125. package/dist/tabs/index.js +4 -4
  126. package/dist/{tabsModel.d-B7QMug1u.d.ts → tabsModel.d-D9GWPFrL.d.cts} +1 -1
  127. package/dist/{tabsModel.d-B7QMug1u.d.cts → tabsModel.d-D9GWPFrL.d.ts} +1 -1
  128. package/dist/televet/booking/index.d.cts +6 -6
  129. package/dist/televet/booking/index.d.ts +6 -6
  130. package/dist/testing/index.cjs +1 -1
  131. package/dist/testing/index.d.cts +85 -2
  132. package/dist/testing/index.d.ts +85 -2
  133. package/dist/testing/index.js +1 -1
  134. package/dist/testing/rn/index.d.cts +10 -10
  135. package/dist/testing/rn/index.d.ts +10 -10
  136. package/dist/testing/web/index.d.cts +10 -10
  137. package/dist/testing/web/index.d.ts +10 -10
  138. package/dist/texting/index.d.cts +6 -6
  139. package/dist/texting/index.d.ts +6 -6
  140. package/dist/{threadOptions.d-EFJaNBP1.d.cts → threadOptions.d-CRbFXnlq.d.cts} +66 -11
  141. package/dist/{threadOptions.d-GPJPprkn.d.cts → threadOptions.d-CW51PyVd.d.cts} +28 -1
  142. package/dist/{threadOptions.d-GPJPprkn.d.ts → threadOptions.d-CW51PyVd.d.ts} +28 -1
  143. package/dist/{threadOptions.d-B0folrKm.d.cts → threadOptions.d-U5YBUKM-.d.ts} +2 -2
  144. package/dist/{threadOptions.d-Crh_LiDe.d.ts → threadOptions.d-aK8FkszA.d.ts} +66 -11
  145. package/dist/{threadOptions.d-DTsJFkL-.d.ts → threadOptions.d-bEAFkIsC.d.cts} +2 -2
  146. package/dist/{timelineRows.d-DpSis9HR.d.ts → timelineRows.d-BbCLvjy1.d.ts} +1 -1
  147. package/dist/{timelineRows.d-6-Cw8xGd.d.cts → timelineRows.d-BvA_BoOe.d.cts} +1 -1
  148. package/dist/{typeStyle.d-B3Kdtjie.d.ts → typeStyle.d-B9Jo5mDX.d.ts} +1 -1
  149. package/dist/{typeStyle.d-DmlwyJq-.d.cts → typeStyle.d-Ckdh_S-t.d.cts} +1 -1
  150. package/dist/types.d-d3RdaeAA.d.cts +317 -0
  151. package/dist/types.d-d3RdaeAA.d.ts +317 -0
  152. package/dist/ui/index.cjs +68 -0
  153. package/dist/ui/index.d.cts +73 -0
  154. package/dist/ui/index.d.ts +73 -0
  155. package/dist/ui/index.js +68 -0
  156. package/dist/useHealthPlanSubscription.d-BN40CVK6.d.cts +756 -0
  157. package/dist/useHealthPlanSubscription.d-BYehTI7R.d.ts +756 -0
  158. package/dist/{usePresentation.d-CRG3Gaaq.d.ts → usePresentation.d-BfcyAEFt.d.ts} +66 -7
  159. package/dist/{usePresentation.d-C8rqY56C.d.cts → usePresentation.d-C39kKhoO.d.cts} +66 -7
  160. package/dist/{useRecordsDepth.d-DlRda5jp.d.ts → useRecordsDepth.d-B2ewVbRm.d.ts} +1 -1
  161. package/dist/{useRecordsDepth.d-BYk7m7gF.d.cts → useRecordsDepth.d-CKXAAHXI.d.cts} +1 -1
  162. package/dist/{view.d-DuIXHr08.d.ts → view.d-BnUDSQXz.d.ts} +3 -3
  163. package/dist/{view.d-B31M8rCG.d.cts → view.d-CbcJKNJj.d.cts} +1 -1
  164. package/dist/{view.d-B31M8rCG.d.ts → view.d-CbcJKNJj.d.ts} +1 -1
  165. package/dist/{view.d-CLpEHKOp.d.cts → view.d-DTNPjiZ1.d.cts} +3 -3
  166. package/dist/web/consent/index.d.cts +5 -5
  167. package/dist/web/consent/index.d.ts +5 -5
  168. package/dist/web/health-plan/index.cjs +335 -180
  169. package/dist/web/health-plan/index.d.cts +576 -19
  170. package/dist/web/health-plan/index.d.ts +576 -19
  171. package/dist/web/health-plan/index.js +297 -162
  172. package/dist/web/health-plan/styles.css +233 -0
  173. package/dist/web/health-plan/today/index.cjs +7 -0
  174. package/dist/web/health-plan/today/index.d.cts +15 -0
  175. package/dist/web/health-plan/today/index.d.ts +15 -0
  176. package/dist/web/health-plan/today/index.js +7 -0
  177. package/dist/web/index.cjs +36 -33
  178. package/dist/web/index.d.cts +60 -37
  179. package/dist/web/index.d.ts +60 -37
  180. package/dist/web/index.js +36 -33
  181. package/dist/web/intro/index.cjs +2 -2
  182. package/dist/web/intro/index.d.cts +8 -8
  183. package/dist/web/intro/index.d.ts +8 -8
  184. package/dist/web/intro/index.js +2 -2
  185. package/dist/web/notifications/index.d.cts +3 -3
  186. package/dist/web/notifications/index.d.ts +3 -3
  187. package/dist/web/records/depth/index.d.cts +9 -9
  188. package/dist/web/records/depth/index.d.ts +9 -9
  189. package/dist/web/records/index.cjs +1 -1
  190. package/dist/web/records/index.d.cts +11 -11
  191. package/dist/web/records/index.d.ts +11 -11
  192. package/dist/web/records/index.js +1 -1
  193. package/dist/web/records-sheet/index.cjs +13 -12
  194. package/dist/web/records-sheet/index.d.cts +13 -10
  195. package/dist/web/records-sheet/index.d.ts +13 -10
  196. package/dist/web/records-sheet/index.js +13 -12
  197. package/dist/web/shop/index.cjs +6 -6
  198. package/dist/web/shop/index.d.cts +8 -7
  199. package/dist/web/shop/index.d.ts +8 -7
  200. package/dist/web/shop/index.js +6 -6
  201. package/dist/web/shop/orders-v2/index.d.cts +1 -1
  202. package/dist/web/shop/orders-v2/index.d.ts +1 -1
  203. package/dist/web/televet/booking/index.cjs +1 -1
  204. package/dist/web/televet/booking/index.d.cts +6 -6
  205. package/dist/web/televet/booking/index.d.ts +6 -6
  206. package/dist/web/televet/booking/index.js +1 -1
  207. package/dist/web/texting/index.cjs +1 -1
  208. package/dist/web/texting/index.d.cts +6 -6
  209. package/dist/web/texting/index.d.ts +6 -6
  210. package/dist/web/texting/index.js +1 -1
  211. package/dist/web/ui/index.cjs +70 -0
  212. package/dist/web/ui/index.d.cts +78 -0
  213. package/dist/web/ui/index.d.ts +78 -0
  214. package/dist/web/ui/index.js +48 -0
  215. package/dist/web/ui/styles.css +244 -0
  216. package/package.json +71 -5
  217. package/ui/package.json +8 -0
  218. package/web/health-plan/today/native-blocked.cjs +12 -0
  219. package/web/health-plan/today/package.json +8 -0
  220. package/web/ui/native-blocked.cjs +12 -0
  221. package/web/ui/package.json +8 -0
  222. package/dist/useHealthPlanSubscription.d-DD30EkUR.d.ts +0 -205
  223. package/dist/useHealthPlanSubscription.d-DWrzUXf4.d.cts +0 -205
@@ -0,0 +1,78 @@
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
+ import { CSSProperties, ReactNode } from 'react';
3
+ import { U as UiCartLineProps, a as UiOrderRowProps, b as UiPlanNeedCardProps, c as UiPriceSummaryProps, d as UiProductTileProps, e as UiTipCardProps } from '../../types.d-d3RdaeAA.cjs';
4
+ export { f as UiBaseProps, g as UiCartQuantity, h as UiIconName, i as UiImageSource, j as UiLineAction, k as UiNeedScore, l as UiNeedSignal, m as UiOrderAction, n as UiPillTone, o as UiPress, p as UiPriceRow, q as UiShot, r as UiShotBox, s as UiShotMeasure, t as UiSummaryRow, u as UiThumbnailFallback, v as UiTipTone } from '../../types.d-d3RdaeAA.cjs';
5
+
6
+ /** Props of the web {@link CartLine}. @public */
7
+ interface CartLineProps extends UiCartLineProps {
8
+ readonly className?: string | undefined;
9
+ readonly style?: CSSProperties | undefined;
10
+ }
11
+ /**
12
+ * A cart line.
13
+ *
14
+ * @public
15
+ */
16
+ declare function CartLine(props: CartLineProps): ReactNode;
17
+
18
+ /** Props of the web {@link OrderRow}. @public */
19
+ interface OrderRowProps extends UiOrderRowProps {
20
+ readonly className?: string | undefined;
21
+ readonly style?: CSSProperties | undefined;
22
+ }
23
+ /**
24
+ * An order.
25
+ *
26
+ * @public
27
+ */
28
+ declare function OrderRow(props: OrderRowProps): ReactNode;
29
+
30
+ /** Props of the web {@link PlanNeedCard}. @public */
31
+ interface PlanNeedCardProps extends UiPlanNeedCardProps {
32
+ readonly className?: string | undefined;
33
+ readonly style?: CSSProperties | undefined;
34
+ }
35
+ /**
36
+ * A Health Plan need.
37
+ *
38
+ * @public
39
+ */
40
+ declare function PlanNeedCard(props: PlanNeedCardProps): ReactNode;
41
+
42
+ /** Props of the web {@link PriceSummary}. @public */
43
+ interface PriceSummaryProps extends UiPriceSummaryProps {
44
+ readonly className?: string | undefined;
45
+ readonly style?: CSSProperties | undefined;
46
+ }
47
+ /**
48
+ * A price summary.
49
+ *
50
+ * @public
51
+ */
52
+ declare function PriceSummary(props: PriceSummaryProps): ReactNode;
53
+
54
+ /** Props of the web {@link ProductTile}. @public */
55
+ interface ProductTileProps extends UiProductTileProps {
56
+ readonly className?: string | undefined;
57
+ readonly style?: CSSProperties | undefined;
58
+ }
59
+ /**
60
+ * A product, as a shop tile or a row.
61
+ *
62
+ * @public
63
+ */
64
+ declare function ProductTile(props: ProductTileProps): ReactNode;
65
+
66
+ /** Props of the web {@link TipCard}. @public */
67
+ interface TipCardProps extends UiTipCardProps {
68
+ readonly className?: string | undefined;
69
+ readonly style?: CSSProperties | undefined;
70
+ }
71
+ /**
72
+ * A Health Plan tip.
73
+ *
74
+ * @public
75
+ */
76
+ declare function TipCard(props: TipCardProps): ReactNode;
77
+
78
+ export { CartLine, type CartLineProps, OrderRow, type OrderRowProps, PlanNeedCard, type PlanNeedCardProps, PriceSummary, type PriceSummaryProps, ProductTile, type ProductTileProps, TipCard, type TipCardProps, UiCartLineProps, UiOrderRowProps, UiPlanNeedCardProps, UiPriceSummaryProps, UiProductTileProps, UiTipCardProps };
@@ -0,0 +1,78 @@
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
+ import { CSSProperties, ReactNode } from 'react';
3
+ import { U as UiCartLineProps, a as UiOrderRowProps, b as UiPlanNeedCardProps, c as UiPriceSummaryProps, d as UiProductTileProps, e as UiTipCardProps } from '../../types.d-d3RdaeAA.js';
4
+ export { f as UiBaseProps, g as UiCartQuantity, h as UiIconName, i as UiImageSource, j as UiLineAction, k as UiNeedScore, l as UiNeedSignal, m as UiOrderAction, n as UiPillTone, o as UiPress, p as UiPriceRow, q as UiShot, r as UiShotBox, s as UiShotMeasure, t as UiSummaryRow, u as UiThumbnailFallback, v as UiTipTone } from '../../types.d-d3RdaeAA.js';
5
+
6
+ /** Props of the web {@link CartLine}. @public */
7
+ interface CartLineProps extends UiCartLineProps {
8
+ readonly className?: string | undefined;
9
+ readonly style?: CSSProperties | undefined;
10
+ }
11
+ /**
12
+ * A cart line.
13
+ *
14
+ * @public
15
+ */
16
+ declare function CartLine(props: CartLineProps): ReactNode;
17
+
18
+ /** Props of the web {@link OrderRow}. @public */
19
+ interface OrderRowProps extends UiOrderRowProps {
20
+ readonly className?: string | undefined;
21
+ readonly style?: CSSProperties | undefined;
22
+ }
23
+ /**
24
+ * An order.
25
+ *
26
+ * @public
27
+ */
28
+ declare function OrderRow(props: OrderRowProps): ReactNode;
29
+
30
+ /** Props of the web {@link PlanNeedCard}. @public */
31
+ interface PlanNeedCardProps extends UiPlanNeedCardProps {
32
+ readonly className?: string | undefined;
33
+ readonly style?: CSSProperties | undefined;
34
+ }
35
+ /**
36
+ * A Health Plan need.
37
+ *
38
+ * @public
39
+ */
40
+ declare function PlanNeedCard(props: PlanNeedCardProps): ReactNode;
41
+
42
+ /** Props of the web {@link PriceSummary}. @public */
43
+ interface PriceSummaryProps extends UiPriceSummaryProps {
44
+ readonly className?: string | undefined;
45
+ readonly style?: CSSProperties | undefined;
46
+ }
47
+ /**
48
+ * A price summary.
49
+ *
50
+ * @public
51
+ */
52
+ declare function PriceSummary(props: PriceSummaryProps): ReactNode;
53
+
54
+ /** Props of the web {@link ProductTile}. @public */
55
+ interface ProductTileProps extends UiProductTileProps {
56
+ readonly className?: string | undefined;
57
+ readonly style?: CSSProperties | undefined;
58
+ }
59
+ /**
60
+ * A product, as a shop tile or a row.
61
+ *
62
+ * @public
63
+ */
64
+ declare function ProductTile(props: ProductTileProps): ReactNode;
65
+
66
+ /** Props of the web {@link TipCard}. @public */
67
+ interface TipCardProps extends UiTipCardProps {
68
+ readonly className?: string | undefined;
69
+ readonly style?: CSSProperties | undefined;
70
+ }
71
+ /**
72
+ * A Health Plan tip.
73
+ *
74
+ * @public
75
+ */
76
+ declare function TipCard(props: TipCardProps): ReactNode;
77
+
78
+ export { CartLine, type CartLineProps, OrderRow, type OrderRowProps, PlanNeedCard, type PlanNeedCardProps, PriceSummary, type PriceSummaryProps, ProductTile, type ProductTileProps, TipCard, type TipCardProps, UiCartLineProps, UiOrderRowProps, UiPlanNeedCardProps, UiPriceSummaryProps, UiProductTileProps, UiTipCardProps };
@@ -0,0 +1,48 @@
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
+ "use client";
3
+ import{useTheme,webBox,Skeleton,itemTestID,QuantityStepper,Thumbnail,Pill,useFocusRing,BUTTON_RESET,ringStyle,colorOf,VISUALLY_HIDDEN,Icon,SummaryList,Button,usePress,useWebReduced,ThemeProvider,webText,textPartSpec,useDsStyles,pillCss,quantityStepperCss,skeletonCss,thumbnailCss,DISABLED_OPACITY,HitArea,iconCss,summaryListCss,buttonCss,cssShadow,partFill,useEverfurTheme,everfurTheme,faceCss,cssMonoFamily,headingFaceCss,EVERFUR_LIGHT,EVERFUR_DARK}from"../../chunk-Y3Q4GW47.js";import{createElement,useRef,useCallback,useEffect,useMemo,useLayoutEffect}from"react";import{jsx,jsxs,Fragment}from"react/jsx-runtime";var blockMetrics={order:{card:{shown:true,w:361,h:163.547,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},top:{gap:[12,12]},title:{shown:true,size:16,weight:700,lineHeight:20,color:"text",tracking:-.16,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:17.55,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},total:{shown:true,size:16,weight:700,lineHeight:24.8,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},shots:{marginTop:8,gap:[8,8]},acts:{marginTop:12,gap:[8,8]},go:{shown:true,w:176.5,h:40,padding:[0,12,0,12],marginTop:0,marginBottom:0,gap:[6,6],minHeight:40,radius:[999,999],bg:"go",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},goText:{shown:true,size:14,weight:700,lineHeight:21.7,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},plain:{shown:true,w:176.5,h:40,padding:[0,12,0,12],marginTop:0,marginBottom:0,gap:[6,6],minHeight:40,radius:[999,999],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},plainText:{shown:true,size:14,weight:700,lineHeight:21.7,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},icon:{w:16},actsColumns:2,shotPressScale:.96},product:{card:{shown:true,w:156,h:310.969,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},kicker:{shown:true,size:12,weight:400,lineHeight:15.6,color:"muted",tracking:.12,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},name:{shown:true,size:15,weight:700,lineHeight:19.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},buy:{marginTop:6,gap:[8,8]},price:{shown:true,size:15,weight:700,lineHeight:23.25,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},productCard:{card:{shown:true,w:174.5,h:249.219,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tag:{shown:true,w:84.563,h:26,padding:[0,9,0,6],marginTop:0,marginBottom:0,gap:[4,4],minHeight:26,radius:[999,999],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:8,y:8,dy:0},tagIcon:{w:16,color:"#CA4463"},tagText:{shown:true,size:12,weight:700,lineHeight:12,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},price:{gap:[6,6]},priceText:{shown:true,size:17,weight:700,lineHeight:26.35,color:"text",tracking:-.17,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},was:{shown:true,size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"strike",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},name:{shown:true,size:14,weight:500,lineHeight:18.2,color:"text",tracking:0,face:"sans",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:12,weight:400,lineHeight:16.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},metaAuto:{shown:true,size:12,weight:500,lineHeight:16.2,color:"#16864A",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},step:{bg:"surface",color:"text"},stepIn:{shown:true,w:112,h:38,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[19,19],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"surface",fit:"cover",x:54.5,y:128.5,dy:0},stepAt:{right:8,bottom:8},stepButton:{w:38,h:38,radius:[19,19]},stepIcon:{w:18},count:{shown:true,size:15,weight:700,lineHeight:23.25,color:"surface",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},lift:{color:"rgba(0, 0, 0, 0.14)",x:0,y:2,blur:8,spread:0}},productRow:{card:{shown:false,w:361,h:109.328,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},name:{shown:false,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},cart:{line:{shown:true,w:361,h:109.328,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},name:{shown:true,w:289,h:24,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[8,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},nameText:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},price:{shown:true,size:17,weight:700,lineHeight:26.35,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},was:{shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},acts:{marginTop:6,gap:[16,16]},remove:{shown:true,size:13,weight:700,lineHeight:20.15,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},end:{gap:[4,4]}},need:{card:{shown:true,w:325,h:125.25,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,20],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:2,blur:3,spread:-1},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},kicker:{gap:[8,8]},kickerText:{shown:true,size:15,weight:700,lineHeight:23.25,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},source:{shown:true,w:116.719,h:24,padding:[0,9,0,9],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#DAF6E8",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},sourceText:{shown:true,size:12,weight:700,lineHeight:18.6,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:false,size:15,weight:700,lineHeight:23.25,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},signal:{marginTop:8,gap:[9,9]},signalText:{shown:true,size:15,weight:400,lineHeight:21.75,color:"#4D4D4D",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},signalLead:{shown:true,size:15,weight:700,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},dot:{w:9,h:9,bg:"alert",dy:-1},score:{shown:true,w:293,h:99.859,padding:[10,14,10,14],marginTop:12,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"#FCF0D6",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},scoreLabel:{shown:true,size:14,weight:600,lineHeight:18.9,color:"#4D4D4D",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},scoreTag:{shown:true,w:63.125,h:20.188,padding:[2,6,2,6],marginTop:3,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},scoreTagText:{shown:true,size:12,weight:600,lineHeight:16.2,color:"text",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:3,paddingTop:2},scoreNums:{gap:[6,0]},scoreWas:{shown:true,size:17,weight:700,lineHeight:26.35,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"strike",decoOffset:0,decoThickness:1.5,marginTop:0,paddingTop:0},scoreArrow:{w:16,color:"muted"},scoreNow:{shown:true,size:28,weight:700,lineHeight:28,color:"text",tracking:-.84,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},scoreOf:{shown:true,size:15,weight:700,lineHeight:15,color:"#4D4D4D",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},scoreSince:{shown:true,size:13,weight:700,lineHeight:20.15,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:3,paddingTop:0}},tip:{card:{shown:true,w:201.5,h:275.031,padding:[8,10,10,10],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"#FCF0D6",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tones:{y:"#FCF0D6",c:"tintBlue",g:"tintGo",r:"tintPink"},img:{shown:true,w:181.5,h:113.438,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},n:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:8,y:8,dy:0},nText:{shown:true,size:14,weight:700,lineHeight:14,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:16,weight:700,lineHeight:20,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:10,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:21,color:"#4D4D4D",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:4,paddingTop:0},foot:{padding:[8,0,0,0],gap:[4,4]},footText:{shown:true,size:12,weight:400,lineHeight:18.6,color:"ink",tracking:.48,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:8},footArrow:{w:14},pressScale:.98}};var mapped=/* @__PURE__ */new WeakMap;function themeInputFromEverfur(theme,fonts,base=everfurTheme){if(base!==everfurTheme)return mapEverfur(theme,fonts,base);let byTheme=mapped.get(fonts);byTheme===void 0&&mapped.set(fonts,byTheme=/* @__PURE__ */new WeakMap);let input=byTheme.get(theme);return input===void 0&&byTheme.set(theme,input=mapEverfur(theme,fonts,base)),input}function mapEverfur(theme,fonts,base){let c=theme.color,d=EVERFUR_LIGHT.color,dark=theme.brightness==="dark",compiled=dark?EVERFUR_DARK:EVERFUR_LIGHT,moved=key=>c[key]!==d[key],colors={};if(moved("primary")?(Object.assign(colors,{ink:c.primary,onInk:c.onPrimary,focus:c.primary}),moved("accent")||Object.assign(colors,{go:c.primary,onGo:c.onPrimary})):moved("onPrimary")&&(colors.onInk=c.onPrimary),moved("accent")&&Object.assign(colors,{go:c.accent,onGo:c.onAccent}),moved("brandSoft")&&(colors.tintSage=c.brandSoft),moved("danger")&&Object.assign(colors,{alert:c.danger,alertDeep:c.danger}),dark)Object.assign(colors,{bg:c.background,surface:c.surface,text:c.text.primary,muted:c.text.muted,line:c.borderRingCream});else{let k=compiled.color;c.background!==k.background&&(colors.bg=c.background),c.surface!==k.surface&&(colors.surface=c.surface),c.text.primary!==k.text.primary&&(colors.text=c.text.primary),c.text.muted!==k.text.muted&&(colors.muted=c.text.muted)}let over={};Object.keys(colors).length>0&&(over.colors=colors);let r=theme.radius,kr=compiled.radius;if(r.xs!==kr.xs||r.sm!==kr.sm||r.lg!==kr.lg||r.xl!==kr.xl||r.pill!==kr.pill){let radius={};r.xs!==kr.xs&&(radius.sm=r.xs),r.sm!==kr.sm&&(radius.md=r.sm),r.lg!==kr.lg&&(radius.lg=r.lg),r.xl!==kr.xl&&(radius.xl=r.xl),r.pill!==kr.pill&&(radius.pill=r.pill),over.radius=radius,(r.lg!==kr.lg||r.xl!==kr.xl)&&(over.metrics={...r.lg!==kr.lg?{card:{radius:r.lg},summary:{radius:r.lg}}:{},...r.xl!==kr.xl?{sheet:{radius:r.xl}}:{}})}if(theme.space.xs!==compiled.space.xs){let f=theme.space.xs/compiled.space.xs,s=base.space,n=v=>Math.round(v*f);over.space={1:n(s[1]),2:n(s[2]),3:n(s[3]),4:n(s[4]),5:n(s[5]),6:n(s[6]),7:n(s[7]),8:n(s[8]),9:n(s[9])}}let ts=theme.type.size,ks=compiled.type.size,sizeMoved=ts.caption!==ks.caption||ts.bodyTight!==ks.bodyTight||ts.body!==ks.body||ts.subtitle!==ks.subtitle||ts.verdict!==ks.verdict,lh=theme.type.lineHeight,klh=compiled.type.lineHeight,lineMoved=lh.relaxed!==klh.relaxed||lh.tight!==klh.tight,caps=theme.type.scaleCaps,kcaps=compiled.type.scaleCaps,capsMoved=caps.content!==kcaps.content||caps.heading!==kcaps.heading||caps.control!==kcaps.control||caps.compact!==kcaps.compact||caps.badge!==kcaps.badge,typeMoved=sizeMoved||lineMoved||capsMoved;return over.type={...sizeMoved?{size:{xs:ts.caption,sm:ts.bodyTight,md:ts.body,lg:ts.subtitle,xl:ts.verdict}}:{},...lineMoved?{lineHeight:{body:lh.relaxed,display:lh.tight}}:{},...capsMoved?{scaleCaps:{content:caps.content,heading:caps.heading,control:caps.control,compact:caps.compact,badge:caps.badge}}:{},...fonts(theme)},theme.motion.reducedMotion&&!base.motion.reduced&&(over.motion={reduced:true}),typeMoved||Object.keys(over).some(k=>k!=="type")||theme.type.families.regular!==EVERFUR_LIGHT.type.families.regular?{name:"partner",...over}:over}function useBlockThemeInput(fonts){let everfur=useEverfurTheme();return useMemo(()=>themeInputFromEverfur(everfur,fonts),[everfur,fonts])}var CART_LINE_PARTS=[pillCss,quantityStepperCss,skeletonCss,thumbnailCss],ORDER_ROW_PARTS=[iconCss,skeletonCss,thumbnailCss],PLAN_NEED_CARD_PARTS=[iconCss,skeletonCss],PRICE_SUMMARY_PARTS=[skeletonCss,summaryListCss],PRODUCT_TILE_PARTS=[buttonCss,iconCss,skeletonCss,thumbnailCss],TIP_CARD_PARTS=[iconCss,skeletonCss];var webBlockFonts=theme=>{let family=faceCss(theme,"regular").fontFamily,mono=cssMonoFamily(theme.type.mono),serif=headingFaceCss(theme,"bold").fontFamily;return{family:family,mono:mono,serif:serif,faces:{regular:family,medium:family,bold:family,mono:mono,monoBold:mono,serif:serif},namedFaces:false}};function BlockScope({children:children}){let input=useBlockThemeInput(webBlockFonts);return createElement(ThemeProvider,{theme:input},children)}function useBlockStyles(parts){return useDsStyles(parts,"ui")}function TextAction({label:label,onPress:onPress,disabled:disabled,accessibilityLabel:accessibilityLabel,testID:testID,style:style,hit:hit}){let t=useTheme(),focus=useFocusRing();/* @__PURE__ */
4
+ return jsxs("button",{type:"button","data-testid":testID,onClick:disabled?void 0:onPress,disabled:disabled,"aria-label":accessibilityLabel,onFocus:focus.onFocus,onBlur:focus.onBlur,style:{...BUTTON_RESET,position:"relative",border:0,padding:0,background:"none",...style,...ringStyle(t,focus.focused),...disabled?{opacity:DISABLED_OPACITY,cursor:"default"}:{}},children:[
5
+ /* @__PURE__ */jsx(HitArea,{height:hit}),label]})}function CartLine(props){/* @__PURE__ */
6
+ return jsx(BlockScope,{children:/* @__PURE__ */jsx(CartLineBody,{...props})})}function CartLineBody(props){let{name:name,image:image,imageAlt:imageAlt,badge:badge,meta:meta,price:price,wasPrice:wasPrice,quantity:quantity,removeLabel:removeLabel,onRemove:onRemove,actions:actions,fallback:fallback,error:error,loading:loading=false,loadingLabel:loadingLabel,testID:testID,className:className,style:style}=props,t=useTheme(),root=useBlockStyles(CART_LINE_PARTS),m=blockMetrics.cart,shot=t.metrics.thumbnail.xs,text=p=>webText(t,textPartSpec(t,p)),side=image?shot.frame.w:shot.empty.w,grid={...webBox(t,m.line),display:"grid",gridTemplateColumns:`${side}px minmax(0, 1fr)`,alignItems:m.line.center?"center":"start",...style};if(loading)/* @__PURE__ */
7
+ return jsxs("div",{ref:root,"data-testid":testID,className:className,style:grid,children:[
8
+ /* @__PURE__ */jsx("span",{style:{width:side,height:side,borderRadius:shot.frame.radius[0],background:t.colors.tintSage}}),
9
+ /* @__PURE__ */jsx(Skeleton,{lines:2,label:loadingLabel})]});let part=name2=>testID===void 0?void 0:`${testID}-${name2}`,priceEl=price?/* @__PURE__ */jsx("span",{"data-testid":part("price"),style:text(m.price),children:price}):null,metaEl=meta?/* @__PURE__ */jsx("span",{style:{display:"block",marginTop:m.meta.marginTop,...text(m.meta)},children:meta}):null,actStyle={...{},...text(m.remove)},actHit=m.remove.lineHeight,remove=actions!==void 0?actions.length>0?actions.map(a=>/* @__PURE__ */jsx(TextAction,{label:a.label,onPress:a.onPress,disabled:a.disabled,accessibilityLabel:a.accessibilityLabel,testID:itemTestID(testID,a.key,a.testID),style:actStyle,hit:actHit},a.key)):null:removeLabel&&onRemove?/* @__PURE__ */jsx(TextAction,{label:removeLabel,onPress:onRemove,style:actStyle,hit:actHit}):null,stepper=quantity?/* @__PURE__ */jsx(QuantityStepper,{value:quantity.value,min:quantity.min,max:quantity.max,label:quantity.label,fewerLabel:quantity.fewerLabel,moreLabel:quantity.moreLabel,onChange:quantity.onChange}):null;/* @__PURE__ */
10
+ return jsxs("div",{ref:root,"data-testid":testID,className:className,style:grid,children:[
11
+ /* @__PURE__ */jsx(Thumbnail,{size:"xs",src:image,alt:imageAlt,icon:fallback?.icon,tint:fallback?.tint,iconColor:fallback?.iconColor,testID:part("image")}),
12
+ /* @__PURE__ */jsxs("div",{style:{minWidth:0},children:[
13
+ /* @__PURE__ */jsxs("p",{style:{...webBox(t,m.name),padding:0,margin:0,display:"flex",flexWrap:"wrap",alignItems:"center",...text(m.nameText)},children:[name,badge?/* @__PURE__ */jsx(Pill,{label:badge.label,tone:badge.tone??"rx"}):null]}),metaEl,stepper||remove?/* @__PURE__ */jsxs("div",{style:{display:"flex",alignItems:"center",...actions&&actions.length>1?{flexWrap:"wrap",rowGap:m.acts.gap[1]}:{},columnGap:m.acts.gap[0],marginTop:m.acts.marginTop},children:[stepper,remove]}):null,error?/* @__PURE__ */jsx("p",{role:"alert",style:{margin:0,marginTop:m.acts.marginTop,...text(m.meta),color:t.colors.alert},children:error}):null]}),priceEl||wasPrice?/* @__PURE__ */jsxs("div",{style:{gridColumn:2,display:"flex",flexWrap:"wrap",alignItems:"baseline",columnGap:m.end.gap[0],rowGap:m.end.gap[1]},children:[priceEl,wasPrice?/* @__PURE__ */jsx("s",{style:text(m.was),children:wasPrice}):null]}):null]})}function Action({action:action,box:box,text:text,testID:testID}){let t=useTheme(),m=blockMetrics.order,focus=useFocusRing(),off=action.disabled===true||action.busy===true;/* @__PURE__ */
14
+ return jsxs("button",{type:"button","data-testid":testID,onClick:off?void 0:action.onPress,disabled:action.disabled,"aria-disabled":action.busy&&!action.disabled||void 0,"aria-busy":action.busy||void 0,onFocus:focus.onFocus,onBlur:focus.onBlur,style:{...BUTTON_RESET,position:"relative",borderWidth:0,...webBox(t,box),display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:0,...text,...ringStyle(t,focus.focused),...off?{opacity:DISABLED_OPACITY,cursor:"default"}:{}},children:[
15
+ /* @__PURE__ */jsx(HitArea,{height:box.h}),action.icon?/* @__PURE__ */jsx(Icon,{name:action.icon,size:m.icon.w,color:typeof text.color=="string"?text.color:void 0}):null,action.label]})}function Shot({shot:shot,pressable:pressable,testID:testID,onMeasure:onMeasure}){let t=useTheme(),m=blockMetrics.order,focus=useFocusRing(),press=usePress(),reduced=useWebReduced(t),ref=useRef(null),setRef=useCallback(el=>{ref.current=el},[]),p=t.metrics.thumbnail.sm,frame=shot.src?p.frame:p.empty,measure=useCallback(async()=>{let el=ref.current;if(!el||!el.isConnected)return null;let r=el.getBoundingClientRect(),[pt=0,pr=0,pb=0,pl=0]=frame.padding;return{x:r.left+pl,y:r.top+pt,width:Math.max(0,r.width-pl-pr),height:Math.max(0,r.height-pt-pb)}},[frame]),key=shot.key;useEffect(()=>{if(onMeasure)return onMeasure(key,measure),()=>onMeasure(key,null)},[onMeasure,key,measure]);let live=pressable&&shot.onPress!==void 0,art=/* @__PURE__ */jsx(Thumbnail,{size:"sm",src:shot.src,alt:live?void 0:shot.alt,icon:shot.icon,tint:shot.tint,iconColor:shot.iconColor,testID:live||onMeasure?void 0:testID});return live?/* @__PURE__ */jsx("button",{ref:setRef,type:"button","data-testid":testID,onClick:shot.onPress,"aria-label":shot.alt,onFocus:focus.onFocus,onBlur:focus.onBlur,...press.handlers,style:{...BUTTON_RESET,border:0,padding:0,background:"none",display:"grid",flex:"none",borderRadius:frame.radius[0],transform:press.pressed&&!reduced?`scale(${m.shotPressScale})`:void 0,...ringStyle(t,focus.focused)},children:art}):onMeasure?/* @__PURE__ */jsx("span",{ref:setRef,"data-testid":testID,style:{display:"grid",flex:"none"},children:art}):art}function OrderRow(props){/* @__PURE__ */
16
+ return jsx(BlockScope,{children:/* @__PURE__ */jsx(OrderRowBody,{...props})})}function OrderRowBody(props){let{title:title,meta:meta,total:total,shots:shots=[],actions:actions=[],onPress:onPress,accessibilityLabel:accessibilityLabel,error:error,loading:loading=false,loadingLabel:loadingLabel,actionGrid:actionGrid=false,onShotMeasure:onShotMeasure,testID:testID,className:className,style:style}=props,t=useTheme(),root=useBlockStyles(ORDER_ROW_PARTS),m=blockMetrics.order,focus=useFocusRing(),card={...webBox(t,m.card),display:"grid",listStyle:"none",margin:0,...style};if(loading)/* @__PURE__ */
17
+ return jsx("div",{ref:root,"data-testid":testID,className:className,style:card,children:/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel})});let text=p=>webText(t,textPartSpec(t,p)),totalEl=total?/* @__PURE__ */jsx("b",{style:{marginLeft:"auto",...text(m.total),fontWeight:m.total.weight},children:total}):null,body=/* @__PURE__ */jsxs(Fragment,{children:[
18
+ /* @__PURE__ */jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",columnGap:m.top.gap[0],rowGap:m.top.gap[1]},children:[
19
+ /* @__PURE__ */jsxs("p",{style:{margin:0,minWidth:0,...text(m.meta)},children:[
20
+ /* @__PURE__ */jsx("b",{style:{display:"block",...text(m.title)},children:title}),meta]}),totalEl]}),shots.length>0?/* @__PURE__ */jsx("span",{style:{display:"flex",flexWrap:"wrap",columnGap:m.shots.gap[0],rowGap:m.shots.gap[0],marginTop:m.shots.marginTop},children:shots.map(s=>/* @__PURE__ */jsx(Shot,{shot:s,pressable:onPress===void 0,testID:itemTestID(testID===void 0?void 0:`${testID}-shot`,s.key,s.testID),onMeasure:onShotMeasure},s.key))}):null]});/* @__PURE__ */
21
+ return jsxs("div",{ref:root,"data-testid":testID,className:className,style:{...card,gridTemplateColumns:"minmax(0, 1fr)",columnGap:m.card.gap[0],alignItems:m.card.center?"center":void 0},children:[onPress?/* @__PURE__ */jsx("button",{type:"button",onClick:onPress,"aria-label":accessibilityLabel,onFocus:focus.onFocus,onBlur:focus.onBlur,style:{...BUTTON_RESET,border:0,padding:0,background:"none",display:"block",width:"100%",textAlign:"left",whiteSpace:"normal",color:"inherit",...ringStyle(t,focus.focused)},children:body}):/* @__PURE__ */jsx("div",{style:{minWidth:0},children:body}),error?/* @__PURE__ */jsx("p",{role:"alert",style:{gridColumn:"1 / -1",margin:0,marginTop:m.acts.marginTop,...text(m.meta),color:t.colors.alert},children:error}):null,actions.length>0?/* @__PURE__ */jsx("div",{style:{gridColumn:"1 / -1",display:"grid",gridTemplateColumns:`repeat(${actionGrid?m.actsColumns:actions.length}, minmax(0, 1fr))`,columnGap:m.acts.gap[0],...actionGrid?{rowGap:m.acts.gap[1]}:{},marginTop:m.acts.marginTop},children:actions.map(a=>/* @__PURE__ */jsx(Action,{action:a,box:a.tone==="go"?m.go:m.plain,text:text(a.tone==="go"?m.goText:m.plainText),testID:itemTestID(testID,a.key,a.testID)},a.key))}):null]})}function PlanNeedCard(props){/* @__PURE__ */
22
+ return jsx(BlockScope,{children:/* @__PURE__ */jsx(PlanNeedCardBody,{...props})})}function PlanNeedCardBody({kicker:kicker,source:source,title:title,signals:signals,score:score,loading:loading=false,loadingLabel:loadingLabel,testID:testID,className:className,style:style}){let t=useTheme(),root=useBlockStyles(PLAN_NEED_CARD_PARTS),m=blockMetrics.need,text=p=>webText(t,textPartSpec(t,p)),card={...webBox(t,m.card),marginTop:0,...style};return loading?/* @__PURE__ */jsx("section",{ref:root,"data-testid":testID,className:className,style:card,children:/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel})}):/* @__PURE__ */jsxs("section",{ref:root,"data-testid":testID,className:className,style:card,children:[
23
+ /* @__PURE__ */jsxs("p",{style:{margin:0,display:"flex",alignItems:"center",columnGap:m.kicker.gap[0],...text(m.kickerText)},children:[
24
+ /* @__PURE__ */jsx("span",{children:kicker}),source?/* @__PURE__ */jsx("span",{style:{...webBox(t,m.source),marginLeft:"auto",height:m.source.h,display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",...text(m.sourceText)},children:source}):null]}),title?/* @__PURE__ */jsx("h3",{style:{margin:0,marginTop:m.title.marginTop,...text(m.title)},children:title}):null,signals.map(s=>/* @__PURE__ */jsxs("p",{style:{margin:0,marginTop:m.signal.marginTop,display:"grid",gridTemplateColumns:s.dot===false?"minmax(0, 1fr)":`${m.dot.w}px minmax(0, 1fr)`,columnGap:m.signal.gap[0],alignItems:"baseline",...text(m.signalText)},children:[s.dot===false?null:/* @__PURE__ */jsx("span",{"aria-hidden":true,style:{display:"inline-block",width:m.dot.w,height:m.dot.h,borderRadius:m.dot.w/2,background:colorOf(t,m.dot.bg),transform:`translateY(${m.dot.dy}px)`}}),
25
+ /* @__PURE__ */jsxs("span",{children:[s.lead?/* @__PURE__ */jsx("b",{style:text(m.signalLead),children:s.lead}):null,s.lead?" ":null,s.text]})]},s.key)),score?/* @__PURE__ */jsxs("div",{"data-testid":testID===void 0?void 0:`${testID}-score`,style:{...webBox(t,m.score),display:"flex",justifyContent:"space-between",alignItems:"center"},children:[
26
+ /* @__PURE__ */jsxs("p",{style:{margin:0,minWidth:0,...text(m.scoreLabel)},children:[score.label,score.tag?" ":null,score.tag?/* @__PURE__ */jsx("span",{style:{...webBox(t,m.scoreTag),display:"inline-block",...text(m.scoreTagText)},children:score.tag}):null]}),
27
+ /* @__PURE__ */jsxs("p",{style:{margin:0,flex:"none",position:"relative",display:"grid",gridTemplateColumns:score.was?"auto auto auto":"auto",alignItems:"center",justifyItems:"end",columnGap:m.scoreNums.gap[0],rowGap:m.scoreNums.gap[1]},children:[score.accessibilityLabel?/* @__PURE__ */jsx("span",{style:VISUALLY_HIDDEN,children:score.accessibilityLabel}):null,score.was?/* @__PURE__ */jsx("s",{"aria-hidden":score.accessibilityLabel?true:void 0,style:text(m.scoreWas),children:score.was}):null,score.was?/* @__PURE__ */jsx(Icon,{name:"arrow-left",size:m.scoreArrow.w,color:colorOf(t,m.scoreArrow.color),style:{transform:"rotate(180deg)"}}):null,
28
+ /* @__PURE__ */jsxs("b",{"aria-hidden":score.accessibilityLabel?true:void 0,style:text(m.scoreNow),children:[score.now,score.of?/* @__PURE__ */jsx("small",{style:text(m.scoreOf),children:score.of}):null]}),score.since?/* @__PURE__ */jsx("span",{"aria-hidden":score.accessibilityLabel?true:void 0,style:{gridColumn:"1 / -1",marginTop:m.scoreSince.marginTop,...text(m.scoreSince)},children:score.since}):null]})]}):null]})}function PriceSummary(props){/* @__PURE__ */
29
+ return jsx(BlockScope,{children:/* @__PURE__ */jsx(PriceSummaryBody,{...props})})}function PriceSummaryBody({rows:rows,total:total,loading:loading=false,loadingLabel:loadingLabel,testID:testID,className:className,style:style}){let t=useTheme(),root=useBlockStyles(PRICE_SUMMARY_PARTS);if(loading){let m=t.metrics.summary;/* @__PURE__ */
30
+ return jsx("div",{ref:root,"data-testid":testID,className:className,style:{boxSizing:"border-box",padding:`${m.paddingX}px`,borderRadius:m.radius,background:t.colors.surface,...style},children:/* @__PURE__ */jsx(Skeleton,{lines:4,label:loadingLabel})})}let all=total?[...rows,{...total,key:total.key??"total"}]:rows;return all.length===0?null:/* @__PURE__ */jsx(SummaryList,{ref:root,testID:testID,className:className,style:style,rows:all,total:total!==void 0})}var useIsomorphicLayoutEffect=typeof document>"u"?useEffect:useLayoutEffect,THUMBNAIL_SIZE={tile:"md",row:"xs",card:"lg"};function StepButton({icon:icon,label:label,onPress:onPress,disabled:disabled,color:color,testID:testID,buttonRef:buttonRef}){let t=useTheme(),c=blockMetrics.productCard,focus=useFocusRing();/* @__PURE__ */
31
+ return jsxs("button",{ref:buttonRef,type:"button","data-testid":testID,"aria-label":label,"aria-disabled":disabled||void 0,onClick:disabled?void 0:onPress,onFocus:focus.onFocus,onBlur:focus.onBlur,style:{...BUTTON_RESET,position:"relative",border:0,padding:0,background:"none",display:"grid",placeItems:"center",width:c.stepButton.w,height:c.stepButton.h,borderRadius:c.stepButton.radius[0],color:color,...ringStyle(t,focus.focused),...disabled?{cursor:"default"}:{}},children:[
32
+ /* @__PURE__ */jsx(HitArea,{width:c.stepButton.w,height:c.stepButton.h}),
33
+ /* @__PURE__ */jsx(Icon,{name:icon,size:c.stepIcon.w,color:color})]})}function CardStepper({q:q,testID:testID}){let t=useTheme(),c=blockMetrics.productCard,text=p=>webText(t,textPartSpec(t,p)),min=q.min??0,max=q.max??Number.POSITIVE_INFINITY,part=n=>testID===void 0?void 0:`${testID}-${n}`,box=useRef(null),more=useRef(null),refocus=useRef(false),empty=q.value<=0;useIsomorphicLayoutEffect(()=>{empty&&refocus.current&&more.current?.focus(),refocus.current=false},[empty]);let at={position:"absolute",zIndex:2,right:c.stepAt.right,bottom:c.stepAt.bottom},ink=colorOf(t,c.stepIn.color),lift=empty?cssShadow({...c.lift,spread:0}):null,group=empty?{...at,display:"grid",borderRadius:c.stepButton.radius[0],background:partFill(t,c.step.bg),...lift?{boxShadow:lift}:{}}:{...at,...webBox(t,c.stepIn),display:"grid",gridTemplateColumns:`${c.stepButton.w}px 1fr ${c.stepButton.w}px`,alignItems:"center",width:c.stepIn.w,height:c.stepIn.h,color:ink},fewer=()=>{let next=Math.max(min,q.value-1),active=typeof document>"u"?null:document.activeElement;refocus.current=next<=0&&active!==null&&active!==more.current&&box.current?.contains(active)===true,q.onChange(next)};/* @__PURE__ */
34
+ return jsxs("span",{ref:box,role:"group","aria-label":q.label,"data-testid":testID,style:group,children:[empty?null:[
35
+ /* @__PURE__ */jsx(StepButton,{icon:"minus",label:q.fewerLabel,onPress:fewer,disabled:q.value<=min,color:ink,testID:part("fewer")},"fewer"),
36
+ /* @__PURE__ */jsx("output",{"aria-live":"polite","data-testid":part("count"),style:{textAlign:"center",...text(c.count)},children:q.value},"count")],
37
+ /* @__PURE__ */jsx(StepButton,{buttonRef:more,icon:"plus",label:q.moreLabel,onPress:()=>q.onChange(Math.min(max,q.value+1)),disabled:q.value>=max,color:empty?colorOf(t,c.step.color):ink,testID:part("more")},"more")]})}function ProductTile(props){/* @__PURE__ */
38
+ return jsx(BlockScope,{children:/* @__PURE__ */jsx(ProductTileBody,{...props})})}function ProductTileBody(props){let{name:name,image:image,imageAlt:imageAlt,kicker:kicker,meta:meta,price:price,wasPrice:wasPrice,metaTone:metaTone,tag:tag,stepper:stepper,fallback:fallback,action:action,onPress:onPress,layout:layout="tile",loading:loading=false,loadingLabel:loadingLabel,testID:testID,className:className,style:style}=props,t=useTheme(),root=useBlockStyles(PRODUCT_TILE_PARTS),focus=useFocusRing(),text=p=>webText(t,textPartSpec(t,p)),m=blockMetrics.product,r=blockMetrics.productRow,shot=t.metrics.thumbnail[THUMBNAIL_SIZE[layout]],part=n=>testID===void 0?void 0:`${testID}-${n}`;if(layout==="card"){let c=blockMetrics.productCard;/* @__PURE__ */
39
+ return jsxs("div",{ref:root,"data-testid":testID,className:className,style:{...webBox(t,c.card),position:"relative",display:"grid",alignContent:"start",...style},children:[
40
+ /* @__PURE__ */jsxs("div",{style:{position:"relative",marginBottom:shot.frame.marginBottom},children:[loading?/* @__PURE__ */jsx("span",{style:{display:"block",width:"100%",aspectRatio:"1 / 1",borderRadius:shot.frame.radius[0],background:t.colors.tintSage}}):/* @__PURE__ */jsx(Thumbnail,{size:"lg",src:image,alt:imageAlt,icon:fallback?.icon,tint:fallback?.tint,iconColor:fallback?.iconColor,testID:part("image")}),!loading&&tag?/* @__PURE__ */jsxs("span",{"data-testid":part("tag"),style:{...webBox(t,c.tag),position:"absolute",left:c.tag.x,top:c.tag.y,display:"inline-flex",alignItems:"center",height:c.tag.h,whiteSpace:"nowrap",...text(c.tagText)},children:[tag.icon?/* @__PURE__ */jsx(Icon,{name:tag.icon,size:c.tagIcon.w,color:tag.color??colorOf(t,c.tagIcon.color)}):null,tag.label]}):null,!loading&&stepper?/* @__PURE__ */jsx(CardStepper,{q:stepper,testID:part("stepper")}):null]}),loading?/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel}):/* @__PURE__ */jsxs(Fragment,{children:[price||wasPrice?/* @__PURE__ */jsxs("p",{style:{margin:0,display:"flex",alignItems:"baseline",columnGap:c.price.gap[0]},children:[price?/* @__PURE__ */jsx("b",{"data-testid":part("price"),style:text(c.priceText),children:price}):null,wasPrice?/* @__PURE__ */jsx("s",{style:text(c.was),children:wasPrice}):null]}):null,
41
+ /* @__PURE__ */jsx("span",{style:{display:"block",...text(c.name)},children:name}),meta?/* @__PURE__ */jsx("p",{style:{margin:0,...text(metaTone==="auto"?c.metaAuto:c.meta)},children:meta}):null,onPress?/* @__PURE__ */jsx("button",{type:"button","data-testid":part("open"),onClick:onPress,"aria-label":name,onFocus:focus.onFocus,onBlur:focus.onBlur,style:{...BUTTON_RESET,position:"absolute",inset:0,zIndex:1,border:0,padding:0,background:"none",borderRadius:shot.frame.radius[0],...ringStyle(t,focus.focused)}}):null]})]})}let nameEl=onPress?/* @__PURE__ */jsx("button",{type:"button",onClick:onPress,onFocus:focus.onFocus,onBlur:focus.onBlur,style:{...BUTTON_RESET,border:0,padding:0,background:"none",textAlign:"left",whiteSpace:"normal",...text(layout==="row"?r.name:m.name),...ringStyle(t,focus.focused)},children:name}):name,buy=price||action?/* @__PURE__ */jsxs("span",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",columnGap:m.buy.gap[0],marginTop:layout==="row"?0:m.buy.marginTop},children:[price?/* @__PURE__ */jsx("b",{style:text(m.price),children:price}):/* @__PURE__ */jsx("span",{}),action?/* @__PURE__ */jsx(Button,{tone:"outline",size:"row",label:action.label,onPress:action.onPress,loading:action.busy,disabled:action.disabled}):null]}):null;return layout==="row"?/* @__PURE__ */jsxs("div",{ref:root,"data-testid":testID,className:className,style:{...webBox(t,r.card),display:"grid",gridTemplateColumns:`${shot.frame.w}px minmax(0, 1fr)${buy?" auto":""}`,alignItems:r.card.center?"center":"start",...style},children:[loading?/* @__PURE__ */jsx("span",{style:{width:shot.frame.w,height:shot.frame.h,borderRadius:shot.frame.radius[0],background:t.colors.tintSage}}):/* @__PURE__ */jsx(Thumbnail,{size:"xs",src:image,alt:imageAlt,icon:fallback?.icon,tint:fallback?.tint,iconColor:fallback?.iconColor}),loading?/* @__PURE__ */jsx(Skeleton,{lines:2,label:loadingLabel}):/* @__PURE__ */jsxs("div",{style:{minWidth:0},children:[
42
+ /* @__PURE__ */jsx("p",{style:{margin:0,...text(r.name)},children:nameEl}),meta?/* @__PURE__ */jsx("p",{style:{margin:0,marginTop:r.meta.marginTop,...text(r.meta)},children:meta}):null]}),loading?null:buy]}):/* @__PURE__ */jsxs("div",{ref:root,"data-testid":testID,className:className,style:{...webBox(t,m.card),display:"grid",alignContent:"start",...style},children:[loading?/* @__PURE__ */jsx("span",{style:{display:"block",width:"100%",aspectRatio:"1 / 1",borderRadius:shot.frame.radius[0],background:t.colors.tintSage,marginBottom:shot.frame.marginBottom}}):/* @__PURE__ */jsx(Thumbnail,{size:"md",src:image,alt:imageAlt,icon:fallback?.icon,tint:fallback?.tint,iconColor:fallback?.iconColor,style:{marginBottom:shot.frame.marginBottom}}),loading?/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel}):/* @__PURE__ */jsxs(Fragment,{children:[kicker?/* @__PURE__ */jsx("span",{style:{display:"block",...text(m.kicker)},children:kicker}):null,
43
+ /* @__PURE__ */jsx("span",{style:{display:"block",...text(m.name)},children:nameEl}),meta?/* @__PURE__ */jsx("span",{style:{display:"block",...text(m.meta)},children:meta}):null,buy]})]})}function webSrc(image){return typeof image=="string"?image||null:image&&typeof image=="object"&&image.uri||null}function TipCard(props){/* @__PURE__ */
44
+ return jsx(BlockScope,{children:/* @__PURE__ */jsx(TipCardBody,{...props})})}function TipCardBody(props){let{number:number,title:title,text:line,foot:foot,footArrow:footArrow=false,footPress:footPress,tone:tone="y",image:image,onPress:onPress,pressTarget:pressTarget="title",accessibilityLabel:accessibilityLabel,loading:loading=false,loadingLabel:loadingLabel,testID:testID,className:className,style:style}=props,t=useTheme(),root=useBlockStyles(TIP_CARD_PARTS),focus=useFocusRing(),footFocus=useFocusRing(),press=usePress(),reduced=useWebReduced(t),m=blockMetrics.tip,text=p=>webText(t,textPartSpec(t,p)),card={...webBox(t,m.card),background:colorOf(t,m.tones[tone]),display:"flex",flexDirection:"column",listStyle:"none",...style};if(loading)/* @__PURE__ */
45
+ return jsx("div",{ref:root,"data-testid":testID,className:className,style:card,children:/* @__PURE__ */jsx(Skeleton,{lines:3,label:loadingLabel})});let n=/* @__PURE__ */jsx("span",{"aria-hidden":true,style:{...webBox(t,m.n),position:"absolute",left:m.n.x,top:m.n.y,width:m.n.w,height:m.n.h,display:"grid",placeItems:"center",...text(m.nText)},children:number}),cover=onPress!==void 0&&pressTarget==="card",part=n2=>testID===void 0?void 0:`${testID}-${n2}`,src=webSrc(image),footColor=text(m.footText).color,arrow=footArrow||footPress?/* @__PURE__ */jsx(Icon,{name:"arrow-left",size:m.footArrow.w,color:typeof footColor=="string"?footColor:void 0,style:{transform:"rotate(180deg)"}}):null,titleEl=onPress&&!cover?/* @__PURE__ */jsx("button",{type:"button",onClick:onPress,onFocus:focus.onFocus,onBlur:focus.onBlur,style:{...BUTTON_RESET,border:0,padding:0,background:"none",textAlign:"left",whiteSpace:"normal",...text(m.title),...ringStyle(t,focus.focused)},children:title}):title;/* @__PURE__ */
46
+ return jsxs("div",{ref:root,"data-testid":testID,className:className,style:{...card,...cover?{position:"relative",transform:press.pressed&&!reduced?`scale(${m.pressScale})`:void 0}:{}},children:[
47
+ /* @__PURE__ */jsxs("span",{style:{...webBox(t,m.img),position:"relative",display:"block",width:"100%",aspectRatio:`${m.img.w} / ${m.img.h}`,overflow:"hidden"},children:[src?/* @__PURE__ */jsx("img",{"data-testid":part("image"),src:src,alt:"",style:{display:"block",width:"100%",height:"100%",objectFit:"cover"}}):null,n]}),
48
+ /* @__PURE__ */jsx("strong",{style:{display:"block",marginTop:m.title.marginTop,...text(m.title)},children:titleEl}),line?/* @__PURE__ */jsx("small",{style:{display:"block",marginTop:m.text.marginTop,...text(m.text)},children:line}):null,foot?/* @__PURE__ */jsx("em",{style:{display:"flex",alignItems:"center",columnGap:m.foot.gap[0],marginTop:"auto",paddingTop:m.foot.padding[0],fontStyle:"normal",...text(m.footText)},children:footPress?/* @__PURE__ */jsxs("button",{type:"button","data-testid":footPress.testID??part("foot"),onClick:footPress.onPress,"aria-label":footPress.accessibilityLabel,onFocus:footFocus.onFocus,onBlur:footFocus.onBlur,style:{...BUTTON_RESET,position:"relative",zIndex:1,border:0,padding:0,background:"none",display:"inline-flex",alignItems:"center",columnGap:m.foot.gap[0],textAlign:"left",whiteSpace:"normal",...text(m.footText),...ringStyle(t,footFocus.focused)},children:[foot,arrow]}):/* @__PURE__ */jsxs(Fragment,{children:[foot,arrow]})}):null,cover?/* @__PURE__ */jsx("button",{type:"button","data-testid":part("cover"),onClick:onPress,"aria-label":accessibilityLabel??title,onFocus:focus.onFocus,onBlur:focus.onBlur,...press.handlers,style:{...BUTTON_RESET,position:"absolute",inset:0,zIndex:0,border:0,padding:0,background:"none",borderRadius:"inherit",...ringStyle(t,focus.focused)}}):null]})}export{CartLine,OrderRow,PlanNeedCard,PriceSummary,ProductTile,TipCard};