@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
@@ -1,8 +1,8 @@
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 { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
3
- import { R as RequestFunnel } from './requestFunnel.d-B5y7Py8Z.js';
3
+ import { R as RequestFunnel } from './requestFunnel.d-DcQIAs45.js';
4
4
  import { F as FileHandle, U as UploadTransport, a as UploadPolicyWire } from './ports.d-BX4f4UsB.js';
5
- import { R as ReadableStore, T as Timers } from './ports.d-DrgKa73F.js';
5
+ import { R as ReadableStore, T as Timers } from './ports.d-ChZHFd-q.js';
6
6
 
7
7
  /** The image MIME types the chat accepts (the server's `CHAT_ATTACHMENT` rule, plus the `image/jpg` alias). */
8
8
  declare const ATTACHMENT_MIME_TYPES: readonly string[];
@@ -2,8 +2,8 @@
2
2
  import { o as TelevetStatePolicy, k as TelevetBookingEntitlement, l as TelevetCancellationPolicy, m as TelevetClinician, c as TelevetSlot, n as TelevetSlotHold, j as TelevetBookingBody, T as TelevetConsult, b as TelevetCancelReceipt, p as TelevetTriageVerdict, h as ConsultStatus } from './televetGlobal.d-CKwDCbmN.cjs';
3
3
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
4
4
  import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
5
- import { R as RequestFunnel } from './requestFunnel.d-BdQf53zs.cjs';
6
- import { A as AuthContext } from './identity.d-D76vXtkJ.cjs';
5
+ import { R as RequestFunnel } from './requestFunnel.d-CWI2pD3V.cjs';
6
+ import { A as AuthContext } from './identity.d-84x0dV7-.cjs';
7
7
  import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-DirW9hgO.cjs';
8
8
  import { T as TelemetryPort } from './TelemetryPort.d-BDNr00hu.cjs';
9
9
  import { b as VetCallCredential, c as VetCallJoinRefusal } from './callRoom.d-B1DoYdJe.cjs';
@@ -678,22 +678,22 @@ declare const VET_MESSAGES_COPY: Readonly<{
678
678
  newPillWeb: "New reply";
679
679
  /** ARTIFACT (MOBILE `vet-upcoming`; WEB `video`): "You: Booked for Monday. Thank you." `{text}` is DATA. */
680
680
  previewOwnerTemplate: "You: {text}";
681
- /** ARTIFACT (WEB `video`): "Dr. Ellen Russell: Visit notes and Evie’s plan". `{vet}` and `{text}` are DATA. */
681
+ /** ARTIFACT (WEB `video`): "{vet}: Visit notes and {pet}’s plan". `{vet}` and `{text}` are DATA. */
682
682
  previewVetTemplateWeb: "{vet}: {text}";
683
- /** ARTIFACT (MOBILE `vet-thread`, `p.screen-meta`): "With Dr. Ellen Russell, DVM". `{vet}` is DATA. */
683
+ /** ARTIFACT (MOBILE `vet-thread`, `p.screen-meta`): "With {vet}, DVM". `{vet}` is DATA. */
684
684
  threadMetaTemplateNative: "With {vet}";
685
685
  /** ARTIFACT (MOBILE `vet-thread`, `ol.chat aria-label`): the thread's name. */
686
686
  threadLogTemplate: "Messages with {vet}";
687
- /** ARTIFACT (MOBILE `vet-thread`, the composer's visually hidden label): "Message Dr. Ellen". */
687
+ /** ARTIFACT (MOBILE `vet-thread`, the composer's visually hidden label): "Message {vet}". */
688
688
  composerLabelTemplateNative: "Message {vet}";
689
689
  /** ARTIFACT (WEB `vetthread`, `label.sr`). */
690
690
  composerLabelWeb: "Message";
691
- /** ARTIFACT (MOBILE `vet-thread` and WEB `vetthread`, the placeholder): "Message Dr. Ellen…". */
691
+ /** ARTIFACT (MOBILE `vet-thread` and WEB `vetthread`, the placeholder): "Message {vet}…". */
692
692
  composerPlaceholderTemplate: "Message {vet}…";
693
693
  /** ARTIFACT (MOBILE `vet-thread` and WEB `vetthread`, the send button's `aria-label`). */
694
694
  send: "Send";
695
695
  /**
696
- * ARTIFACT (MOBILE `vet-thread`, `p.composer__note`): "Dr. Ellen usually replies within a day. Emergency? Call a
696
+ * ARTIFACT (MOBILE `vet-thread`, `p.composer__note`): "{vet} usually replies within a day. Emergency? Call a
697
697
  * vet." Drawn under the composer on BOTH hosts (see the web note under WHAT IS NOT HERE).
698
698
  */
699
699
  composerNoteTemplate: "{vet} usually replies within a day. Emergency? Call a vet.";
@@ -714,21 +714,21 @@ declare const VET_MESSAGES_COPY: Readonly<{
714
714
  vetWritesFirst: "Your vet will write first. You can reply once they do.";
715
715
  /** Owner-approved 2026-10-01: a message that carries files the partner plane does not serve. `{n}` is DATA. */
716
716
  attachmentsTemplate: "{n} attached";
717
- /** ARTIFACT (MOBILE `vet-visit-waiting`, `a.card__link`; WEB `waiting`): "Running late? Message Dr. Ellen". */
717
+ /** ARTIFACT (MOBILE `vet-visit-waiting`, `a.card__link`; WEB `waiting`): "Running late? Message {vet}". */
718
718
  runningLateTemplate: "Running late? Message {vet}";
719
- /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`): "What Dr. Ellen saw". `{vet}` is DATA. */
719
+ /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`): "What {vet} saw". `{vet}` is DATA. */
720
720
  sawTitleTemplate: "What {vet} saw";
721
721
  /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`, `span.label`). */
722
722
  summaryLabel: "Summary";
723
- /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`, the pill): "From Dr. Ellen". */
723
+ /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`, the pill): "From {vet}". */
724
724
  fromVetTemplate: "From {vet}";
725
- /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`): "Evie’s plan". `{pet}` is DATA. */
725
+ /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`): "{pet}’s plan". `{pet}` is DATA. */
726
726
  planTitleTemplate: "{pet}’s plan";
727
727
  /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`, the plan's pill). */
728
728
  wordForWord: "Word for word";
729
729
  /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`): the card over what the visit produced. */
730
730
  fromThisVisitTitle: "From this visit";
731
- /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`, the vet card's button): "Message Dr. Ellen". */
731
+ /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`, the vet card's button): "Message {vet}". */
732
732
  messageVetTemplate: "Message {vet}";
733
733
  /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`). */
734
734
  bookFollowUp: "Book a follow-up";
@@ -1090,7 +1090,7 @@ declare const TELEVET_BOOKING_COPY: Readonly<{
1090
1090
  whereLeadTemplate: string;
1091
1091
  /** The pronoun the lead takes for a pet whose sex the roster does not carry. */
1092
1092
  wherePronounFallback: "they’ll";
1093
- /** `vet-book-where` form name ("Where Evie will be") and the hidden legend ("State"). */
1093
+ /** `vet-book-where` form name ("Where {pet} will be") and the hidden legend ("State"). */
1094
1094
  whereFormLabelTemplate: string;
1095
1095
  whereLegend: string;
1096
1096
  /**
@@ -1152,7 +1152,7 @@ declare const TELEVET_BOOKING_COPY: Readonly<{
1152
1152
  summaryWhere: string;
1153
1153
  changeCta: string;
1154
1154
  /**
1155
- * The jurisdiction attestation, `vet-book-review`: "Evie and I will be in California during the visit."
1155
+ * The jurisdiction attestation, `vet-book-review`: "{pet} and I will be in California during the visit."
1156
1156
  * `{pet}` and `{state}` (the state's NAME) are DATA. Without a pet name the older `stateAttestTemplate` is used.
1157
1157
  */
1158
1158
  whereAttestTemplate: string;
@@ -1162,7 +1162,7 @@ declare const TELEVET_BOOKING_COPY: Readonly<{
1162
1162
  bookedStepLabel: string;
1163
1163
  /** `vet-book-booked` title. `{vet}` is the booked clinician's served name; without one `bookedTitle` stays. */
1164
1164
  bookedTitleTemplate: string;
1165
- /** `vet-book-booked` lead: "Monday, September 28 at 6:30 PM PT, for Evie." `{when}` and `{pet}` are DATA. */
1165
+ /** `vet-book-booked` lead: "Monday, September 28 at 6:30 PM PT, for {pet}." `{when}` and `{pet}` are DATA. */
1166
1166
  bookedLeadTemplate: string;
1167
1167
  /**
1168
1168
  * THE VET FOOTNOTE, the owner's per-surface one-liner of 2026-09-30 in place of the fixed disclaimer band.
@@ -1277,7 +1277,7 @@ declare const TELEVET_BOOKING_COPY: Readonly<{
1277
1277
  * point at a list that is absent from the screen.
1278
1278
  */
1279
1279
  ledeWithoutExits: string;
1280
- /** `vet-book-emergency`'s third row, both artifacts: "Call Evie’s regular vet". */
1280
+ /** `vet-book-emergency`'s third row, both artifacts: "Call {pet}’s regular vet". */
1281
1281
  exitPrimaryVetTitle: string;
1282
1282
  /** everfur-mobile copy.ts:734 `emergency.exitFindErTitle`, the consumer web's `findEmergencyVet` word for word. */
1283
1283
  exitFindErTitle: string;
@@ -2,8 +2,8 @@
2
2
  import { o as TelevetStatePolicy, k as TelevetBookingEntitlement, l as TelevetCancellationPolicy, m as TelevetClinician, c as TelevetSlot, n as TelevetSlotHold, j as TelevetBookingBody, T as TelevetConsult, b as TelevetCancelReceipt, p as TelevetTriageVerdict, h as ConsultStatus } from './televetGlobal.d-CC-DrqkQ.js';
3
3
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
4
4
  import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
5
- import { R as RequestFunnel } from './requestFunnel.d-B5y7Py8Z.js';
6
- import { A as AuthContext } from './identity.d-B3mFvvRq.js';
5
+ import { R as RequestFunnel } from './requestFunnel.d-DcQIAs45.js';
6
+ import { A as AuthContext } from './identity.d-BXztMVYM.js';
7
7
  import { E as ErrorPolicyPort } from './ErrorPolicyPort.d-68yrE3BE.js';
8
8
  import { T as TelemetryPort } from './TelemetryPort.d-BDNr00hu.js';
9
9
  import { b as VetCallCredential, c as VetCallJoinRefusal } from './callRoom.d-Dqm1rUqT.js';
@@ -678,22 +678,22 @@ declare const VET_MESSAGES_COPY: Readonly<{
678
678
  newPillWeb: "New reply";
679
679
  /** ARTIFACT (MOBILE `vet-upcoming`; WEB `video`): "You: Booked for Monday. Thank you." `{text}` is DATA. */
680
680
  previewOwnerTemplate: "You: {text}";
681
- /** ARTIFACT (WEB `video`): "Dr. Ellen Russell: Visit notes and Evie’s plan". `{vet}` and `{text}` are DATA. */
681
+ /** ARTIFACT (WEB `video`): "{vet}: Visit notes and {pet}’s plan". `{vet}` and `{text}` are DATA. */
682
682
  previewVetTemplateWeb: "{vet}: {text}";
683
- /** ARTIFACT (MOBILE `vet-thread`, `p.screen-meta`): "With Dr. Ellen Russell, DVM". `{vet}` is DATA. */
683
+ /** ARTIFACT (MOBILE `vet-thread`, `p.screen-meta`): "With {vet}, DVM". `{vet}` is DATA. */
684
684
  threadMetaTemplateNative: "With {vet}";
685
685
  /** ARTIFACT (MOBILE `vet-thread`, `ol.chat aria-label`): the thread's name. */
686
686
  threadLogTemplate: "Messages with {vet}";
687
- /** ARTIFACT (MOBILE `vet-thread`, the composer's visually hidden label): "Message Dr. Ellen". */
687
+ /** ARTIFACT (MOBILE `vet-thread`, the composer's visually hidden label): "Message {vet}". */
688
688
  composerLabelTemplateNative: "Message {vet}";
689
689
  /** ARTIFACT (WEB `vetthread`, `label.sr`). */
690
690
  composerLabelWeb: "Message";
691
- /** ARTIFACT (MOBILE `vet-thread` and WEB `vetthread`, the placeholder): "Message Dr. Ellen…". */
691
+ /** ARTIFACT (MOBILE `vet-thread` and WEB `vetthread`, the placeholder): "Message {vet}…". */
692
692
  composerPlaceholderTemplate: "Message {vet}…";
693
693
  /** ARTIFACT (MOBILE `vet-thread` and WEB `vetthread`, the send button's `aria-label`). */
694
694
  send: "Send";
695
695
  /**
696
- * ARTIFACT (MOBILE `vet-thread`, `p.composer__note`): "Dr. Ellen usually replies within a day. Emergency? Call a
696
+ * ARTIFACT (MOBILE `vet-thread`, `p.composer__note`): "{vet} usually replies within a day. Emergency? Call a
697
697
  * vet." Drawn under the composer on BOTH hosts (see the web note under WHAT IS NOT HERE).
698
698
  */
699
699
  composerNoteTemplate: "{vet} usually replies within a day. Emergency? Call a vet.";
@@ -714,21 +714,21 @@ declare const VET_MESSAGES_COPY: Readonly<{
714
714
  vetWritesFirst: "Your vet will write first. You can reply once they do.";
715
715
  /** Owner-approved 2026-10-01: a message that carries files the partner plane does not serve. `{n}` is DATA. */
716
716
  attachmentsTemplate: "{n} attached";
717
- /** ARTIFACT (MOBILE `vet-visit-waiting`, `a.card__link`; WEB `waiting`): "Running late? Message Dr. Ellen". */
717
+ /** ARTIFACT (MOBILE `vet-visit-waiting`, `a.card__link`; WEB `waiting`): "Running late? Message {vet}". */
718
718
  runningLateTemplate: "Running late? Message {vet}";
719
- /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`): "What Dr. Ellen saw". `{vet}` is DATA. */
719
+ /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`): "What {vet} saw". `{vet}` is DATA. */
720
720
  sawTitleTemplate: "What {vet} saw";
721
721
  /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`, `span.label`). */
722
722
  summaryLabel: "Summary";
723
- /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`, the pill): "From Dr. Ellen". */
723
+ /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`, the pill): "From {vet}". */
724
724
  fromVetTemplate: "From {vet}";
725
- /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`): "Evie’s plan". `{pet}` is DATA. */
725
+ /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`): "{pet}’s plan". `{pet}` is DATA. */
726
726
  planTitleTemplate: "{pet}’s plan";
727
727
  /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`, the plan's pill). */
728
728
  wordForWord: "Word for word";
729
729
  /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`): the card over what the visit produced. */
730
730
  fromThisVisitTitle: "From this visit";
731
- /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`, the vet card's button): "Message Dr. Ellen". */
731
+ /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`, the vet card's button): "Message {vet}". */
732
732
  messageVetTemplate: "Message {vet}";
733
733
  /** ARTIFACT (MOBILE `vet-visit-summary`; WEB `summary`). */
734
734
  bookFollowUp: "Book a follow-up";
@@ -1090,7 +1090,7 @@ declare const TELEVET_BOOKING_COPY: Readonly<{
1090
1090
  whereLeadTemplate: string;
1091
1091
  /** The pronoun the lead takes for a pet whose sex the roster does not carry. */
1092
1092
  wherePronounFallback: "they’ll";
1093
- /** `vet-book-where` form name ("Where Evie will be") and the hidden legend ("State"). */
1093
+ /** `vet-book-where` form name ("Where {pet} will be") and the hidden legend ("State"). */
1094
1094
  whereFormLabelTemplate: string;
1095
1095
  whereLegend: string;
1096
1096
  /**
@@ -1152,7 +1152,7 @@ declare const TELEVET_BOOKING_COPY: Readonly<{
1152
1152
  summaryWhere: string;
1153
1153
  changeCta: string;
1154
1154
  /**
1155
- * The jurisdiction attestation, `vet-book-review`: "Evie and I will be in California during the visit."
1155
+ * The jurisdiction attestation, `vet-book-review`: "{pet} and I will be in California during the visit."
1156
1156
  * `{pet}` and `{state}` (the state's NAME) are DATA. Without a pet name the older `stateAttestTemplate` is used.
1157
1157
  */
1158
1158
  whereAttestTemplate: string;
@@ -1162,7 +1162,7 @@ declare const TELEVET_BOOKING_COPY: Readonly<{
1162
1162
  bookedStepLabel: string;
1163
1163
  /** `vet-book-booked` title. `{vet}` is the booked clinician's served name; without one `bookedTitle` stays. */
1164
1164
  bookedTitleTemplate: string;
1165
- /** `vet-book-booked` lead: "Monday, September 28 at 6:30 PM PT, for Evie." `{when}` and `{pet}` are DATA. */
1165
+ /** `vet-book-booked` lead: "Monday, September 28 at 6:30 PM PT, for {pet}." `{when}` and `{pet}` are DATA. */
1166
1166
  bookedLeadTemplate: string;
1167
1167
  /**
1168
1168
  * THE VET FOOTNOTE, the owner's per-surface one-liner of 2026-09-30 in place of the fixed disclaimer band.
@@ -1277,7 +1277,7 @@ declare const TELEVET_BOOKING_COPY: Readonly<{
1277
1277
  * point at a list that is absent from the screen.
1278
1278
  */
1279
1279
  ledeWithoutExits: string;
1280
- /** `vet-book-emergency`'s third row, both artifacts: "Call Evie’s regular vet". */
1280
+ /** `vet-book-emergency`'s third row, both artifacts: "Call {pet}’s regular vet". */
1281
1281
  exitPrimaryVetTitle: string;
1282
1282
  /** everfur-mobile copy.ts:734 `emergency.exitFindErTitle`, the consumer web's `findEmergencyVet` word for word. */
1283
1283
  exitFindErTitle: string;
@@ -1,6 +1,6 @@
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 { d as EverfurFontWeight, q as EverfurThemeSlotName, a as EverfurFontFaceKey, r as EverfurThemeSlots, c as EverfurFontSource } from './tokens.d-BUVqme2D.cjs';
3
- import { P as PRESENTATION_LOCK, k as PRESENTATION_LOCK_PREFIX, i as EverfurPresentationInput } from './presentation.d-vy8kTGfR.cjs';
3
+ import { P as PRESENTATION_LOCK, k as PRESENTATION_LOCK_PREFIX, i as EverfurPresentationInput } from './presentation.d-Bs8xQ4gD.cjs';
4
4
 
5
5
  /** The presets an appearance may start from. `everfur` is the compiled default. */
6
6
  declare const APPEARANCE_PRESET_NAMES: readonly ["everfur", "minimal", "night"];
@@ -1,6 +1,6 @@
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 { d as EverfurFontWeight, q as EverfurThemeSlotName, a as EverfurFontFaceKey, r as EverfurThemeSlots, c as EverfurFontSource } from './tokens.d-BUVqme2D.js';
3
- import { P as PRESENTATION_LOCK, k as PRESENTATION_LOCK_PREFIX, i as EverfurPresentationInput } from './presentation.d-vy8kTGfR.js';
3
+ import { P as PRESENTATION_LOCK, k as PRESENTATION_LOCK_PREFIX, i as EverfurPresentationInput } from './presentation.d-Bs8xQ4gD.js';
4
4
 
5
5
  /** The presets an appearance may start from. `everfur` is the compiled default. */
6
6
  declare const APPEARANCE_PRESET_NAMES: readonly ["everfur", "minimal", "night"];
@@ -0,0 +1,3 @@
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 strict";var CARE_CART_OMS_MAX_QUANTITY=99,CARE_CART_MAX_QUANTITY=5,maxOf=opts=>{let max=opts?.maxQuantity;return typeof max=="number"&&Number.isFinite(max)&&max>=1?Math.floor(max):CARE_CART_OMS_MAX_QUANTITY},clampTo=(n,max)=>Math.max(1,Math.min(max,Math.round(n)));function cartLineKey(line){return`${line.offerId}|${line.petId??""}|${line.rxId??""}`}var isText=v=>typeof v=="string"&&v!=="",httpsOnly=v=>typeof v=="string"&&/^https:\/\/\S+$/i.test(v)?v:void 0,short=v=>typeof v=="string"&&v.trim()!==""&&v.length<=120;function extras(o){let words=o.planWords,w=words!==null&&typeof words=="object"?words:null,days=o.cadenceDays,auto=o.autoUnitPrice;return{...typeof auto=="number"&&Number.isInteger(auto)&&auto>=0?{autoUnitPrice:auto}:{},...typeof days=="number"&&Number.isInteger(days)&&days>=7&&days<=365?{cadenceDays:days}:{},...o.onePerCart===true?{onePerCart:true}:{},...short(o.meta)?{meta:o.meta}:{},...short(o.packLabel)?{packLabel:o.packLabel}:{},...short(o.planLabel)?{planLabel:o.planLabel}:{},...w&&short(w.auto)&&short(w.once)?{planWords:{auto:w.auto,once:w.once}}:{},...short(o.icon)?{icon:o.icon}:{},...short(o.tint)?{tint:o.tint}:{}}}var isLocked=(item,opts)=>!!item.rxId||opts?.lockRxLines===true&&item.requiresRx;function parseCartItems(raw,opts){if(!raw)return[];let data;try{data=JSON.parse(raw)}catch{return[]}return Array.isArray(data)?readItems(data,opts):[]}function readItems(data,opts){let max=maxOf(opts),out=[];for(let d of data){if(!d||typeof d!="object")continue;let o=d,offerId=o.offerId,title=o.title,quantity=o.quantity;if(!isText(offerId)||typeof title!="string"||typeof quantity!="number"||!Number.isFinite(quantity))continue;let petId=o.petId,rxId=o.rxId,line={offerId:offerId,...isText(petId)?{petId:petId}:{},...isText(rxId)?{rxId:rxId}:{}},key=cartLineKey(line);if(out.some(item=>item.key===key))continue;let unitPrice=o.unitPrice,imageUrl=httpsOnly(o.imageUrl),plan=o.plan;out.push({...line,key:key,title:title,unitPrice:typeof unitPrice=="number"&&Number.isFinite(unitPrice)?unitPrice:null,requiresRx:o.requiresRx===true,quantity:clampTo(quantity,line.rxId?CARE_CART_OMS_MAX_QUANTITY:max),...imageUrl?{imageUrl:imageUrl}:{},...plan==="auto"||plan==="once"?{plan:plan}:{},...extras(o)})}return out}function addLine(items,input,opts){let key=cartLineKey({offerId:input.offerId,...input.petId?{petId:input.petId}:{},...input.rxId?{rxId:input.rxId}:{}}),was=items.find(item=>item.key===key),oneOnly=isLocked({rxId:input.rxId,requiresRx:input.requiresRx},opts)||input.onePerCart===true;if(was&&oneOnly)return{items:[...items],result:"already"};let petOf=petId=>petId??"";if(!was&&input.requiresRx&&items.some(item=>item.requiresRx&&petOf(item.petId)===petOf(input.petId)))return{items:[...items],result:"rx_limit"};let imageUrl=httpsOnly(input.imageUrl),plan=input.plan??was?.plan??input.defaultPlan??void 0,next={offerId:input.offerId,...input.petId?{petId:input.petId}:{},...input.rxId?{rxId:input.rxId}:{},key:key,title:input.title,unitPrice:input.unitPrice,requiresRx:input.requiresRx,quantity:was?clampTo(was.quantity+1,maxOf(opts)):1,...imageUrl?{imageUrl:imageUrl}:{},...plan?{plan:plan}:{},...extras(input)};return{items:was?items.map(item=>item.key===key?next:item):[...items,next],result:was?"more":"added"}}function setLineQuantity(items,key,quantity,opts){if(quantity<=0)return items.filter(item=>item.key!==key);let max=maxOf(opts);return items.map(item=>item.key===key&&!isLocked(item,opts)?{...item,quantity:clampTo(quantity,max)}:item)}function setLinePlan(items,key,plan){return items.map(item=>item.key===key?{...item,plan:plan}:item)}function removeLines(items,keys){let gone=new Set(keys);return items.filter(item=>!gone.has(item.key))}function restoreLines(items,lines,opts){let have=new Set(items.map(item=>item.key)),back=readItems(lines,opts).filter(item=>!have.has(item.key));return back.length>0?[...items,...back]:[...items]}function linesForPet(items,petId){return petId?items.filter(item=>item.petId===petId):[]}function lastLines(items,n=3){return n>0?items.slice(-n):[]}function rxIdFor(prescriptions,offerId,petId){if(!petId)return null;let hers=(prescriptions??[]).filter(p=>p.offerId===offerId&&p.petId===petId);return(hers.find(p=>p.status==="ready")??hers[0])?.rxId??null}function withRxIds(items,prescriptions){return items.map(item=>{if(!item.requiresRx||item.rxId)return item;let rxId=rxIdFor(prescriptions,item.offerId,item.petId);return rxId?{...item,rxId:rxId}:item})}function rxLineOf(items,add){let key=cartLineKey(add);return items.find(item=>item.key===key)??items.find(item=>item.requiresRx&&item.offerId===add.offerId&&(item.petId??"")===(add.petId??""))??null}function needsRxId(items){return items.some(item=>item.requiresRx&&!item.rxId)}function omsLines(items,prescriptions,options){return withRxIds(items,prescriptions).map(item=>({offerId:item.offerId,quantity:item.quantity,...item.petId?{petId:item.petId}:{},...item.rxId?{rxId:item.rxId}:{},...options?.withPlan&&item.plan?{plan:item.plan}:{}}))}var EMPTY=/* @__PURE__ */Object.freeze([]);function createCareCartStore(storage,opts){let items=EMPTY;if(storage)try{items=parseCartItems(storage.read(),opts)}catch{items=EMPTY}let listeners=/* @__PURE__ */new Set,set=next=>{items=next;try{storage?.write(JSON.stringify(next))}catch{}for(let listener of[...listeners])listener()};return{items:()=>items,subscribe:listener=>(listeners.add(listener),()=>{listeners.delete(listener)}),add:input=>{let{items:next,result:result}=addLine(items,input,opts);return(result==="added"||result==="more")&&set(next),result},setQuantity:(key,quantity)=>set(setLineQuantity(items,key,quantity,opts)),setPlan:(key,plan)=>set(setLinePlan(items,key,plan)),remove:key=>set(removeLines(items,[key])),removeKeys:keys=>{let gone=new Set(keys);items.some(item=>gone.has(item.key))&&set(removeLines(items,keys))},restore:lines=>{let next=restoreLines(items,lines,opts);next.length!==items.length&&set(next)},clear:()=>{items.length>0&&set(EMPTY)}}}var OBJECT_NEXT=/* @__PURE__ */new Set(["a","about","again","an","and","as","at","back","before","but","by","down","for","from","here","if","in","into","now","off","on","or","out","over","so","than","that","the","there","through","to","too","up","when","with"]),ADVERBS=/* @__PURE__ */new Set(["already","also","always","just","never","often","only","really","still","sometimes","usually"]),PARTICIPLES=/* @__PURE__ */new Set(["been","done","gone","got","had","seen","eaten","taken","given"]),IRREGULAR={has:"have",is:"are",was:"were",does:"do"},WORD=/[A-Za-z]+(?:[’'][A-Za-z]+)?/g,cap=(word,like)=>like[0]===like[0]?.toUpperCase()?(word[0]??"").toUpperCase()+word.slice(1):word;function theyVerb(verb){let m=/^([A-Za-z]+)(n[’']t)?$/.exec(verb);if(!m)return verb;let stem=m[1]??"",neg=m[2]??"",low=stem.toLowerCase(),out,irregular=IRREGULAR[low];if(irregular!==void 0)out=irregular;else if(/[^aeiou]ies$/.test(low))out=low.slice(0,-3)+"y";else if(/(ss|sh|ch|x|z|o)es$/.test(low))out=low.slice(0,-2);else if(/[^su]s$/.test(low))out=low.slice(0,-1);else return verb;return cap(out,stem)+neg}function swapPronoun(text3,pronoun){if(pronoun==="her"||!/\b(?:her|hers|herself|she)\b/i.test(text3))return text3;let words=[...text3.matchAll(WORD)],out=[],at=0,agreeAt=-1,nextOf=k=>{let n=words[k],before=words[k-1];if(!n||!before)return null;let gap=text3.slice((before.index??0)+before[0].length,n.index);return/^\s+$/.test(gap)?n:null};return words.forEach((m,i)=>{let word=m[0],start=m.index??0,next=nextOf(i+1),nextLow=next?next[0].toLowerCase():null,low=word.toLowerCase().replace("’","'"),swap=null;if(i===agreeAt)swap=theyVerb(word);else if(low==="her"){let object=nextLow===null||OBJECT_NEXT.has(nextLow);swap=pronoun==="his"?object?"him":"his":object?"them":"their"}else if(low==="hers")swap=pronoun==="his"?"his":"theirs";else if(low==="herself")swap=pronoun==="his"?"himself":"themselves";else if(low==="she")swap=pronoun==="his"?"he":"they",pronoun==="their"&&nextLow!==null&&(agreeAt=ADVERBS.has(nextLow)&&nextOf(i+2)?i+2:i+1);else if(low==="she's"){let mark=word.includes("’")?"’":"'";swap=pronoun==="his"?`he${mark}s`:`they${mark}${nextLow!==null&&PARTICIPLES.has(nextLow)?"ve":"re"}`}swap!==null&&(out.push(text3.slice(at,start),cap(swap,word)),at=start+word.length)}),out.push(text3.slice(at)),out.join("")}function swapPronounCopy(copy,pronoun,keep=[]){if(pronoun==="her")return copy;let one=v=>typeof v=="string"?swapPronoun(v,pronoun):Array.isArray(v)?v.map(one):typeof v=="function"?(...a)=>one(v(...a)):v,out={};for(let[k,v]of Object.entries(copy))out[k]=keep.includes(k)?v:one(v);return out}function pronounForSex(sex){return sex==="female"?"her":sex==="male"?"his":"their"}function unitCents(item,firstAutoOrderPrice=null){return firstAutoOrderPrice==="auto"&&item.plan==="auto"&&typeof item.autoUnitPrice=="number"?item.autoUnitPrice:item.unitPrice}function lineCents(item,firstAutoOrderPrice=null){return(unitCents(item,firstAutoOrderPrice)??0)*item.quantity}function cartTotals(items,pricing){let first=pricing.firstAutoOrderPrice??null,rx=0,box=0,count2=0,unpriced=false;for(let item of items)item.unitPrice===null&&(unpriced=true),item.requiresRx?rx+=lineCents(item,first):box+=lineCents(item,first),count2+=item.quantity;let off=rx>0?Math.min(Math.max(0,pricing.firstRxDiscountCents??0),rx):0,threshold=pricing.freeShippingThresholdCents??null;return{count:count2,rxCents:rx,boxCents:box,offCents:off,itemsCents:box+rx-off,bigCents:box>0?box:rx-off,toFreeCents:box>0&&threshold!==null&&box<threshold?threshold-box:0,unpriced:unpriced}}function discountedLineKey(items,totals){return totals.offCents<=0?null:items.find(item=>item.requiresRx)?.key??null}function careMoney(cents){return`${cents<0?"-":""}$${(Math.abs(cents)/100).toFixed(2)}`}function careMoneyShort(cents){return cents%100===0?`${cents<0?"-":""}$${Math.abs(cents)/100}`:careMoney(cents)}function careItemCount(n){return`${n} ${n===1?"item":"items"}`}var CARE_CART_UNDRAWN={shippingAtCheckout:"shipping at checkout",chargedWhenFilled:"charged when it’s filled",rxLimit:name=>`One prescription per cart. Order the one in it, then add ${name}.`};function careTrayCopy(totals,pronoun="her"){let fine=totals.offCents>0?swapPronoun(`${careMoney(totals.itemsCents)} with ${careMoneyShort(totals.offCents)} off her first prescription`,pronoun):`${careMoney(totals.itemsCents)} before tax`;return{button:`View cart · ${careItemCount(totals.count)}`,fine:fine}}function careFloatCopy(totals,freeShippingThresholdCents){let big=careMoney(totals.bigCents);if(totals.rxCents>0&&totals.boxCents>0)return{big:big,sub:`today, + ${careMoney(totals.rxCents-totals.offCents)} Rx when filled`,subIsOffer:false};if(totals.rxCents>0)return totals.offCents<=0?{big:big,sub:CARE_CART_UNDRAWN.chargedWhenFilled,subIsOffer:false}:{big:big,sub:`when it’s filled, ${careMoneyShort(totals.offCents)} off`,subIsOffer:true};let count2=careItemCount(totals.count);if(freeShippingThresholdCents===null)return{big:big,sub:`${count2} · ${CARE_CART_UNDRAWN.shippingAtCheckout}`,subIsOffer:false};let free=totals.boxCents>=freeShippingThresholdCents;return{big:big,sub:free?`${count2} · ships free`:`${count2} · free shipping over ${careMoneyShort(freeShippingThresholdCents)}`,subIsOffer:false}}function careAddToast(result,name,isRx){return result==="already"?`${name} is already in the cart.`:result==="rx_limit"?CARE_CART_UNDRAWN.rxLimit(name):isRx?`${name} refill added. The pharmacist checks it once you order.`:`${name} added to the cart.`}function cartBarSub(totals,freeShippingThresholdCents,pronoun="her"){let head=`${careItemCount(totals.count)} · `;return totals.offCents>0?swapPronoun(`${head}${careMoneyShort(totals.offCents)} off her first prescription`,pronoun):totals.toFreeCents>0?`${head}${careMoney(totals.toFreeCents)} to free shipping`:totals.rxCents>0||totals.boxCents===0?careItemCount(totals.count):freeShippingThresholdCents===null?null:`${head}ships free`}var cartSaid={added:name=>`${name} added to the cart`,removed:name=>`${name} removed from the cart`,count:(name,n)=>`${name}: ${n} in the cart`};function shownLinePrices(items,quoteLines,opts){let out=/* @__PURE__ */new Map,used=/* @__PURE__ */new Set;for(let item of items){let at=quoteLines?quoteLines.findIndex((line2,i)=>!used.has(i)&&line2.offerId===item.offerId&&(!line2.petId||!item.petId||line2.petId===item.petId)):-1,discounted=item.key===opts.discountedKey,line=quoteLines&&at>=0?quoteLines[at]:void 0;if(line){used.add(at);let off=discounted?Math.max(0,Math.min(opts.offCents,line.discountCents)):0;out.set(item.key,{priceCents:line.netCents+off,offCents:off})}else{let price=lineCents(item,opts.firstAutoOrderPrice);out.set(item.key,{priceCents:price,offCents:discounted?Math.min(opts.offCents,price):0})}}return out}function lineMeta(title,parts){let name=title.toLowerCase(),kept=[];for(let part of parts){let text3=part?.trim();if(!text3)continue;let low=text3.toLowerCase();name.includes(low)||kept.some(k=>k.toLowerCase()===low)||kept.push(text3)}return kept.join(" · ")}function omsErr(error){/* @__PURE__ */
3
+ return Object.freeze({ok:false,error:/* @__PURE__ */Object.freeze(error)})}function adaptQuote(quote,items){let rxOffers=new Set(items.filter(item=>item.requiresRx).map(item=>item.offerId)),isRx=line=>line.isRx??line.chargedWhenFilled??rxOffers.has(line.offerId),gross=line=>line.unitPrice*line.quantity,charged=line=>gross(line)-line.discount+line.tax,lines=quote.lines.map(line=>({offerId:line.offerId,petId:line.petId,quantity:line.quantity,grossCents:gross(line),discountCents:line.discount,netCents:gross(line)-line.discount})),box=quote.lines.filter(line=>!isRx(line)),rx=quote.lines.filter(isRx),rxOff=quote.whenFilledDiscountCents??rx.reduce((sum,line)=>sum+(line.whenFilledDiscountCents??0),0),fallbackToday=box.reduce((sum,line)=>sum+charged(line),0)+quote.shipping,fallbackLater=rx.reduce((sum,line)=>sum+charged(line),0);return{lines:lines,itemsCents:lines.reduce((sum,line)=>sum+line.netCents,0),totalCents:quote.total,taxCents:quote.tax,shippingCents:quote.shipping,dueTodayCents:quote.dueTodayCents??fallbackToday,dueWhenFilledCents:quote.dueWhenFilledCents??fallbackLater,whenFilledDiscountCents:rxOff,serverSplit:quote.dueTodayCents!=null&&quote.dueWhenFilledCents!=null,expiresAt:quote.expiresAt,shipsOn:quote.shipsOn??null,arrivesOn:quote.arrivesOn??null}}function omsReceipt(client,orderId){let fn=client.receipt;return typeof fn!="function"?Promise.resolve(omsErr({kind:"unavailable"})):fn.call(client,orderId)}var isObj=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),text=v=>typeof v=="string"&&v.trim()!==""?v:null,count=v=>typeof v=="number"&&Number.isInteger(v)&&v>=0?v:null,https=v=>{let s=text(v);return s!==null&&/^https:\/\/\S+$/i.test(s)?s:null},DAY=/^\d{4}-\d{2}-\d{2}$/;function firstAutoOrderPriceOf(raw){let v=isObj(raw)?raw.first_auto_order_price:null;return v==="once"||v==="auto"?v:null}function firstRxDiscountCodeOf(raw){let v=isObj(raw)?raw.first_rx_discount_code:null;return typeof v=="string"&&v.trim().length>0&&v.length<=32?v.trim():null}function rxShipsToStatesOf(raw){let v=isObj(raw)?raw.rx_ships_to_states:null;if(!Array.isArray(v)||v.length===0)return null;let codes=v.filter(c=>typeof c=="string"&&/^[A-Za-z]{2}$/.test(c));return codes.length===v.length?codes.map(c=>c.toUpperCase()):null}function tooSoonOnOf(raw){if(!isObj(raw)||raw.reason_code!=="too_soon")return null;let day=raw.available_on;return typeof day=="string"&&DAY.test(day)?day:null}function addressLocationOf(raw){if(!isObj(raw))return null;let lat=raw.latitude,lng=raw.longitude,placeId=text(raw.place_id);return typeof lat!="number"||!Number.isFinite(lat)||Math.abs(lat)>90||typeof lng!="number"||!Number.isFinite(lng)||Math.abs(lng)>180||placeId===null?null:{latitude:lat,longitude:lng,placeId:placeId}}function addressLocationToWire(location){return{latitude:location.latitude,longitude:location.longitude,place_id:location.placeId}}function petQuery(input,method,petId){if(!petId||method.toUpperCase()!=="GET")return input;let base="https://oms.invalid",url;try{url=new URL(input,base)}catch{return input}let route=url.pathname.replace(/\/+$/,"");return!route.endsWith("/orders")&&!route.endsWith("/buy-again")?input:(url.searchParams.set("pet_id",petId),url.origin===base&&!input.startsWith(base)?`${url.pathname}${url.search}`:url.href)}function field(o,camel,snake){if(isObj(o))return o[camel]!==void 0?o[camel]:o[snake]}function summaryPetId(o){let v=field(o,"petId","pet_id");return v===void 0?void 0:text(v)}function summaryNeedsPayment(o){return field(o,"needsPayment","needs_payment")===true}function summaryLineCount(o){return count(field(o,"lineCount","line_count"))}function summaryClinicName(o){return text(field(o,"clinicName","clinic_name"))}function summaryDiscountCode(o){return text(field(o,"discountCode","discount_code"))}function againPetId(i){return text(field(i,"petId","pet_id"))}function planTitle(p){return text(field(p,"title","title"))}function planImageUrl(p){return https(field(p,"imageUrl","image_url"))}function planResumeShipOn(p){return text(field(p,"resumeShipOn","resume_ship_on"))}function orderCardActionUrl(d){let v=field(d,"cardActionLink","card_action_link");return https(typeof v=="string"?v:field(v,"url","url"))}function receiptRefund(r){let cents=count(field(r,"refundedCents","refunded_cents"));return cents===null||cents<=0?null:{cents:cents,on:text(field(r,"refundedOn","refunded_on"))}}var CARE_ADDRESS_SUGGESTIONS_SHOWN=5,CARE_ADDRESS_SEARCH_MIN_CHARS=3,CARE_ADDRESS_SEARCH_OFF=/* @__PURE__ */Object.freeze({available:false,suggestions:/* @__PURE__ */Object.freeze([])}),isObj2=v=>typeof v=="object"&&v!==null&&!Array.isArray(v),text2=v=>typeof v=="string"&&v.trim()!==""?v.trim():null,coord=(v,max)=>typeof v=="number"&&Number.isFinite(v)&&Math.abs(v)<=max?v:null;function parseAddressSuggestions(body,max=5){if(!isObj2(body)||body.available!==true||!Array.isArray(body.suggestions))return CARE_ADDRESS_SEARCH_OFF;let suggestions=[];for(let raw of body.suggestions){if(suggestions.length>=max)break;if(!isObj2(raw))continue;let placeId=text2(raw.place_id),main=text2(raw.main);!placeId||!main||suggestions.push({placeId:placeId,main:main,secondary:text2(raw.secondary)??""})}return{available:true,suggestions:suggestions}}function parseAddressPlace(body){if(!isObj2(body))return null;let line1=text2(body.line1),city=text2(body.city),region=text2(body.region),postalCode=text2(body.postal_code),placeId=text2(body.place_id),latitude=coord(body.latitude,90),longitude=coord(body.longitude,180);return!line1||!city||!region||!postalCode||!placeId||latitude===null||longitude===null?null:{line1:line1,city:city,region:region.toUpperCase(),postalCode:postalCode,country:text2(body.country)??"US",location:{latitude:latitude,longitude:longitude,placeId:placeId}}}function addressPlaceResult(status,body){if(status===404)return{kind:"notAddress"};if(status<200||status>=300)return{kind:"unavailable"};let place=parseAddressPlace(body);return place?{kind:"ok",place:place}:{kind:"unavailable"}}exports.CARE_ADDRESS_SEARCH_MIN_CHARS=CARE_ADDRESS_SEARCH_MIN_CHARS;exports.CARE_ADDRESS_SEARCH_OFF=CARE_ADDRESS_SEARCH_OFF;exports.CARE_ADDRESS_SUGGESTIONS_SHOWN=CARE_ADDRESS_SUGGESTIONS_SHOWN;exports.CARE_CART_MAX_QUANTITY=CARE_CART_MAX_QUANTITY;exports.CARE_CART_OMS_MAX_QUANTITY=CARE_CART_OMS_MAX_QUANTITY;exports.CARE_CART_UNDRAWN=CARE_CART_UNDRAWN;exports.adaptQuote=adaptQuote;exports.addLine=addLine;exports.addressLocationOf=addressLocationOf;exports.addressLocationToWire=addressLocationToWire;exports.addressPlaceResult=addressPlaceResult;exports.againPetId=againPetId;exports.careAddToast=careAddToast;exports.careFloatCopy=careFloatCopy;exports.careItemCount=careItemCount;exports.careMoney=careMoney;exports.careMoneyShort=careMoneyShort;exports.careTrayCopy=careTrayCopy;exports.cartBarSub=cartBarSub;exports.cartLineKey=cartLineKey;exports.cartSaid=cartSaid;exports.cartTotals=cartTotals;exports.createCareCartStore=createCareCartStore;exports.discountedLineKey=discountedLineKey;exports.firstAutoOrderPriceOf=firstAutoOrderPriceOf;exports.firstRxDiscountCodeOf=firstRxDiscountCodeOf;exports.lastLines=lastLines;exports.lineCents=lineCents;exports.lineMeta=lineMeta;exports.linesForPet=linesForPet;exports.needsRxId=needsRxId;exports.omsLines=omsLines;exports.omsReceipt=omsReceipt;exports.orderCardActionUrl=orderCardActionUrl;exports.parseAddressPlace=parseAddressPlace;exports.parseAddressSuggestions=parseAddressSuggestions;exports.parseCartItems=parseCartItems;exports.petQuery=petQuery;exports.planImageUrl=planImageUrl;exports.planResumeShipOn=planResumeShipOn;exports.planTitle=planTitle;exports.pronounForSex=pronounForSex;exports.receiptRefund=receiptRefund;exports.removeLines=removeLines;exports.restoreLines=restoreLines;exports.rxIdFor=rxIdFor;exports.rxLineOf=rxLineOf;exports.rxShipsToStatesOf=rxShipsToStatesOf;exports.setLinePlan=setLinePlan;exports.setLineQuantity=setLineQuantity;exports.shownLinePrices=shownLinePrices;exports.summaryClinicName=summaryClinicName;exports.summaryDiscountCode=summaryDiscountCode;exports.summaryLineCount=summaryLineCount;exports.summaryNeedsPayment=summaryNeedsPayment;exports.summaryPetId=summaryPetId;exports.swapPronoun=swapPronoun;exports.swapPronounCopy=swapPronounCopy;exports.theyVerb=theyVerb;exports.tooSoonOnOf=tooSoonOnOf;exports.unitCents=unitCents;exports.withRxIds=withRxIds;