@everfur/sdk 0.18.1 → 0.18.3

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 (161) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +7 -5
  3. package/dist/{Chat.d-C2ddC2u7.d.cts → Chat.d-BEbRI8FZ.d.cts} +1 -1
  4. package/dist/{Chat.d-Bz4iJ7d2.d.ts → Chat.d-CKKuXVw5.d.ts} +1 -1
  5. package/dist/{DepthViews.d-Chjs8H9V.d.cts → DepthViews.d-BiePRa3Z.d.cts} +1 -1
  6. package/dist/{DepthViews.d-pFL_ZBZT.d.cts → DepthViews.d-Chn2xwZu.d.cts} +1 -1
  7. package/dist/{DepthViews.d-qXt9OMgz.d.ts → DepthViews.d-CiU4f98J.d.ts} +1 -1
  8. package/dist/{DepthViews.d-C6-Kzs6H.d.ts → DepthViews.d-_WMIpymE.d.ts} +1 -1
  9. package/dist/{IntakeMedia.d-4a89XrP7.d.ts → IntakeMedia.d-B_ZVDxh3.d.ts} +1 -1
  10. package/dist/{IntakeMedia.d-JJCUvQu7.d.cts → IntakeMedia.d-CnGzpllr.d.cts} +1 -1
  11. package/dist/{IntakeMedia.d-DGxrhgIW.d.ts → IntakeMedia.d-DNUAks9E.d.ts} +1 -1
  12. package/dist/{IntakeMedia.d-DUPR4lVM.d.cts → IntakeMedia.d-Dqc5V_YH.d.cts} +1 -1
  13. package/dist/{RecordsPage.d-sNRolVdy.d.ts → RecordsPage.d-CRRJM35Q.d.ts} +1 -1
  14. package/dist/{RecordsPage.d-Cmny6Q7g.d.cts → RecordsPage.d-CtNzoxre.d.cts} +1 -1
  15. package/dist/animations/index.d.cts +3 -3
  16. package/dist/animations/index.d.ts +3 -3
  17. package/dist/{appStateLifecycle.d-Bt70TQog.d.cts → appStateLifecycle.d-BQcy4J5O.d.cts} +3 -3
  18. package/dist/{appStateLifecycle.d-Jdg9_PFt.d.ts → appStateLifecycle.d-JuPhh7Oy.d.ts} +3 -3
  19. package/dist/{attachments.d-CF4_n-DZ.d.cts → attachments.d-BLEOCUU7.d.cts} +2 -2
  20. package/dist/{attachments.d-BVp3r6Ms.d.cts → attachments.d-CeXw6R7_.d.cts} +5 -5
  21. package/dist/{attachments.d-DsUZpMad.d.ts → attachments.d-DRkqNR-o.d.ts} +2 -2
  22. package/dist/{attachments.d-DnSCMjH0.d.ts → attachments.d-d1rWAw9K.d.ts} +5 -5
  23. package/dist/{bookingCopy.d-BHqE9Ozq.d.cts → bookingCopy.d-CoiNXrY8.d.cts} +10 -3
  24. package/dist/{bookingCopy.d-Ca4AQGZ7.d.ts → bookingCopy.d-CrUufdoE.d.ts} +10 -3
  25. package/dist/{casesRepository.d-VzxEyq2N.d.ts → casesRepository.d-DhI69yuj.d.ts} +1 -1
  26. package/dist/{casesRepository.d-DFwD2kiS.d.cts → casesRepository.d-OyZOSNNv.d.cts} +1 -1
  27. package/dist/chat/index.d.cts +10 -10
  28. package/dist/chat/index.d.ts +10 -10
  29. package/dist/chat/lite/index.d.cts +10 -10
  30. package/dist/chat/lite/index.d.ts +10 -10
  31. package/dist/client/index.cjs +2 -2
  32. package/dist/client/index.d.cts +6 -6
  33. package/dist/client/index.d.ts +6 -6
  34. package/dist/client/index.js +2 -2
  35. package/dist/{clinicBatch.d-DXDIL1lC.d.ts → clinicBatch.d-CcqnQ7-d.d.ts} +2 -2
  36. package/dist/{clinicBatch.d-CLqaih2C.d.cts → clinicBatch.d-DVahpaN3.d.cts} +2 -2
  37. package/dist/{config.d-cqyvpzDb.d.ts → config.d-KX-EkQ9j.d.ts} +1 -1
  38. package/dist/{config.d-7bCXvOGn.d.cts → config.d-Z_fyOZke.d.cts} +1 -1
  39. package/dist/consent/index.d.cts +5 -5
  40. package/dist/consent/index.d.ts +5 -5
  41. package/dist/{context.d-BeRanUXQ.d.cts → context.d-DV5E_2Fs.d.cts} +5 -5
  42. package/dist/{context.d-DAnmDYGr.d.ts → context.d-DY6d4qXG.d.ts} +5 -5
  43. package/dist/{copy.d-CxFzeuvo.d.ts → copy.d-BPzpKGGc.d.ts} +2 -2
  44. package/dist/{copy.d-BPqs8swm.d.cts → copy.d-CMY9OoCC.d.cts} +2 -2
  45. package/dist/core/index.cjs +1 -1
  46. package/dist/core/index.d.cts +13 -13
  47. package/dist/core/index.d.ts +13 -13
  48. package/dist/core/index.js +1 -1
  49. package/dist/{depth.d-C6XbnFig.d.ts → depth.d-B_qNSgXr.d.ts} +2 -2
  50. package/dist/{depth.d-qHdXHDd-.d.cts → depth.d-qVYPByPb.d.cts} +2 -2
  51. package/dist/{entitlementRepository.d-D_cc7g4l.d.ts → entitlementRepository.d-BXDWPyP8.d.ts} +2 -2
  52. package/dist/{entitlementRepository.d-C6uTDswj.d.cts → entitlementRepository.d-CwTVi7he.d.cts} +2 -2
  53. package/dist/{focus.d-DiWvQR2j.d.ts → focus.d-BPofD7ow.d.ts} +2 -2
  54. package/dist/{focus.d-HSkMHd-i.d.cts → focus.d-DJD4lWFB.d.cts} +2 -2
  55. package/dist/health-plan/index.d.cts +9 -9
  56. package/dist/health-plan/index.d.ts +9 -9
  57. package/dist/{idempotency.d-CF5AvlYp.d.ts → idempotency.d-BVO0mU2R.d.ts} +1 -1
  58. package/dist/{idempotency.d-DrO2zEZO.d.cts → idempotency.d-BmYuCb-n.d.cts} +1 -1
  59. package/dist/{identity.d-84x0dV7-.d.cts → identity.d-3ROlHbnP.d.cts} +1 -1
  60. package/dist/{identity.d-BXztMVYM.d.ts → identity.d-CRVNfZzQ.d.ts} +1 -1
  61. package/dist/index.cjs +1 -1
  62. package/dist/index.d.cts +13 -13
  63. package/dist/index.d.ts +13 -13
  64. package/dist/index.js +1 -1
  65. package/dist/{introEvents.d-Cwv72ER-.d.cts → introEvents.d-DGQDEPJi.d.cts} +1 -1
  66. package/dist/{introEvents.d-DYU3znJs.d.ts → introEvents.d-cvMxJfYd.d.ts} +1 -1
  67. package/dist/notifications/index.d.cts +4 -4
  68. package/dist/notifications/index.d.ts +4 -4
  69. package/dist/{optInView.d-4Hl4HbQh.d.cts → optInView.d-CU1U_K-B.d.cts} +2 -2
  70. package/dist/{optInView.d-pq8tUTf6.d.ts → optInView.d-DIGu47Lz.d.ts} +2 -2
  71. package/dist/{parse.d-D0v06qxx.d.cts → parse.d-GzZJYu__.d.cts} +1 -1
  72. package/dist/{parse.d-BJhhYfkv.d.ts → parse.d-icynBIS-.d.ts} +1 -1
  73. package/dist/{pets.d-C4n-MDC4.d.cts → pets.d-5SMtOAwB.d.cts} +1 -1
  74. package/dist/{pets.d-1_CHpfgB.d.ts → pets.d-BRsbR8QU.d.ts} +1 -1
  75. package/dist/{petsRepository.d-Dd95xh-M.d.cts → petsRepository.d-DEnoZn92.d.cts} +1 -1
  76. package/dist/{petsRepository.d-BuomdFjZ.d.ts → petsRepository.d-DWsChqAS.d.ts} +1 -1
  77. package/dist/{ports.d-Bf3tp7Pn.d.cts → ports.d--OjPUqPb.d.cts} +4 -4
  78. package/dist/{ports.d-ChZHFd-q.d.ts → ports.d-CIfa_XF6.d.ts} +4 -4
  79. package/dist/records/depth/index.d.cts +9 -9
  80. package/dist/records/depth/index.d.ts +9 -9
  81. package/dist/records/index.cjs +1 -1
  82. package/dist/records/index.d.cts +10 -10
  83. package/dist/records/index.d.ts +10 -10
  84. package/dist/records/index.js +1 -1
  85. package/dist/{requestFunnel.d-CWI2pD3V.d.cts → requestFunnel.d-CQX_Z1Hi.d.cts} +2 -2
  86. package/dist/{requestFunnel.d-DcQIAs45.d.ts → requestFunnel.d-DSvCGf4J.d.ts} +2 -2
  87. package/dist/{runtimeTypes.d-rbuONrIv.d.ts → runtimeTypes.d-Be_vhOER.d.ts} +4 -4
  88. package/dist/{runtimeTypes.d-CIOVzjEK.d.cts → runtimeTypes.d-sXpNYnJp.d.cts} +4 -4
  89. package/dist/{screenProps.d-CFZe27oI.d.cts → screenProps.d-BW6PZh5k.d.cts} +1 -1
  90. package/dist/{screenProps.d-yUA4k6yK.d.ts → screenProps.d-DpMK2_gi.d.ts} +1 -1
  91. package/dist/server/events/index.cjs +2 -2
  92. package/dist/server/events/index.d.cts +36 -5
  93. package/dist/server/events/index.d.ts +36 -5
  94. package/dist/server/events/index.js +2 -2
  95. package/dist/server/index.cjs +1 -1
  96. package/dist/server/index.d.cts +3 -3
  97. package/dist/server/index.d.ts +3 -3
  98. package/dist/server/index.js +1 -1
  99. package/dist/shop/index.d.cts +3 -3
  100. package/dist/shop/index.d.ts +3 -3
  101. package/dist/tabs/index.d.cts +6 -6
  102. package/dist/tabs/index.d.ts +6 -6
  103. package/dist/televet/booking/index.cjs +11 -10
  104. package/dist/televet/booking/index.d.cts +13 -11
  105. package/dist/televet/booking/index.d.ts +13 -11
  106. package/dist/televet/booking/index.js +11 -10
  107. package/dist/televet/index.d.cts +3 -3
  108. package/dist/televet/index.d.ts +3 -3
  109. package/dist/{televetGlobal.d-CC-DrqkQ.d.ts → televetGlobal.d-B0_jbCtC.d.ts} +7 -0
  110. package/dist/{televetGlobal.d-CKwDCbmN.d.cts → televetGlobal.d-BWYJR391.d.cts} +7 -0
  111. package/dist/testing/index.cjs +1 -1
  112. package/dist/testing/index.d.cts +1 -1
  113. package/dist/testing/index.d.ts +1 -1
  114. package/dist/testing/index.js +1 -1
  115. package/dist/testing/rn/index.d.cts +7 -7
  116. package/dist/testing/rn/index.d.ts +7 -7
  117. package/dist/testing/web/index.d.cts +7 -7
  118. package/dist/testing/web/index.d.ts +7 -7
  119. package/dist/texting/index.d.cts +5 -5
  120. package/dist/texting/index.d.ts +5 -5
  121. package/dist/{threadOptions.d-CRbFXnlq.d.cts → threadOptions.d-Csmb-XgL.d.cts} +2 -2
  122. package/dist/{threadOptions.d-aK8FkszA.d.ts → threadOptions.d-DMOn3mmj.d.ts} +2 -2
  123. package/dist/{timelineRows.d-BbCLvjy1.d.ts → timelineRows.d-B0XZevKx.d.ts} +1 -1
  124. package/dist/{timelineRows.d-BvA_BoOe.d.cts → timelineRows.d-Kllr7Mcu.d.cts} +1 -1
  125. package/dist/{useHealthPlanSubscription.d-BN40CVK6.d.cts → useHealthPlanSubscription.d-C-c_mQ4u.d.cts} +2 -2
  126. package/dist/{useHealthPlanSubscription.d-BYehTI7R.d.ts → useHealthPlanSubscription.d-bNRntgWe.d.ts} +2 -2
  127. package/dist/{usePresentation.d-C39kKhoO.d.cts → usePresentation.d-BHKhBKQn.d.cts} +1 -1
  128. package/dist/{usePresentation.d-BfcyAEFt.d.ts → usePresentation.d-CmQgbrZr.d.ts} +1 -1
  129. package/dist/{useRecordsDepth.d-B2ewVbRm.d.ts → useRecordsDepth.d-BilHZaR4.d.ts} +1 -1
  130. package/dist/{useRecordsDepth.d-CKXAAHXI.d.cts → useRecordsDepth.d-WW_2cWwU.d.cts} +1 -1
  131. package/dist/{view.d-DTNPjiZ1.d.cts → view.d-BTnjZu2S.d.cts} +3 -3
  132. package/dist/{view.d-BnUDSQXz.d.ts → view.d-BtN_L_UF.d.ts} +3 -3
  133. package/dist/web/consent/index.d.cts +5 -5
  134. package/dist/web/consent/index.d.ts +5 -5
  135. package/dist/web/health-plan/index.d.cts +11 -11
  136. package/dist/web/health-plan/index.d.ts +11 -11
  137. package/dist/web/index.cjs +1 -1
  138. package/dist/web/index.d.cts +23 -23
  139. package/dist/web/index.d.ts +23 -23
  140. package/dist/web/index.js +1 -1
  141. package/dist/web/intro/index.d.cts +6 -6
  142. package/dist/web/intro/index.d.ts +6 -6
  143. package/dist/web/notifications/index.d.cts +3 -3
  144. package/dist/web/notifications/index.d.ts +3 -3
  145. package/dist/web/records/depth/index.d.cts +9 -9
  146. package/dist/web/records/depth/index.d.ts +9 -9
  147. package/dist/web/records/index.d.cts +11 -11
  148. package/dist/web/records/index.d.ts +11 -11
  149. package/dist/web/records-sheet/index.cjs +1 -1
  150. package/dist/web/records-sheet/index.js +1 -1
  151. package/dist/web/shop/index.d.cts +3 -3
  152. package/dist/web/shop/index.d.ts +3 -3
  153. package/dist/web/televet/booking/index.cjs +9 -9
  154. package/dist/web/televet/booking/index.d.cts +18 -11
  155. package/dist/web/televet/booking/index.d.ts +18 -11
  156. package/dist/web/televet/booking/index.js +9 -9
  157. package/dist/web/televet/index.d.cts +3 -3
  158. package/dist/web/televet/index.d.ts +3 -3
  159. package/dist/web/texting/index.d.cts +5 -5
  160. package/dist/web/texting/index.d.ts +5 -5
  161. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
2
  "use strict";function ok(value,warning){/* @__PURE__ */
3
3
  return Object.freeze({ok:true,value:value})}function err(error){/* @__PURE__ */
4
- return Object.freeze({ok:false,error:error})}var EverfurConfigError=class _EverfurConfigError extends Error{constructor(kind,message){super(message),this.name="EverfurConfigError",this.kind=kind,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var ABSOLUTE_URL=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;var SDK_VERSION="0.18.1",SDK_PLATFORM="react-native",DEFAULT_CONTRACT_VERSION="2026-09-19",ENV_API_BASE_URL="EVERFUR_API_BASE_URL";function configFailure(reason,message){/* @__PURE__ */
4
+ return Object.freeze({ok:false,error:error})}var EverfurConfigError=class _EverfurConfigError extends Error{constructor(kind,message){super(message),this.name="EverfurConfigError",this.kind=kind,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var ABSOLUTE_URL=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;var SDK_VERSION="0.18.3",SDK_PLATFORM="react-native",DEFAULT_CONTRACT_VERSION="2026-09-19",ENV_API_BASE_URL="EVERFUR_API_BASE_URL";function configFailure(reason,message){/* @__PURE__ */
5
5
  return Object.freeze({ok:false,failure:/* @__PURE__ */Object.freeze({reason:reason,message:message})})}function tryResolveApiBaseUrl(apiBaseUrl){let explicit=apiBaseUrl?.trim(),candidate=explicit&&explicit.length>0?explicit:readEnv(ENV_API_BASE_URL);return candidate?normalizeBaseUrl(candidate):configFailure("missing-api-base-url",`apiBaseUrl is required: pass config.apiBaseUrl or set ${ENV_API_BASE_URL}. The SDK never ships a hardcoded host.`)}function resolveApiBaseUrl(apiBaseUrl){let outcome=tryResolveApiBaseUrl(apiBaseUrl);if(!outcome.ok)throw new EverfurConfigError("invalid-argument",outcome.failure.message);return outcome.value}function buildBaseHeaders(cfg){return{"X-Everfur-SDK-Version":cfg.sdkVersion,"X-Everfur-SDK-Platform":cfg.platform,"X-Everfur-Contract":cfg.contractVersion}}function hostOf(authority){return authority.slice(authority.lastIndexOf("@")+1).replace(/:\d+$/,"").toLowerCase()}function isPrintableHost(host){return host.length===0||host.includes("@")?false:host.startsWith("[")&&host.endsWith("]")?true:!host.includes(":")}function canEchoOrigin(rawTrimmed,host){let schemeEnd=rawTrimmed.indexOf("://");return schemeEnd<0||rawTrimmed.slice(schemeEnd+3).includes("@")?false:isPrintableHost(host)}function safeOrigin(scheme,host){return`${scheme}://${host}`}function normalizeBaseUrl(raw){let trimmed=raw.trim(),match=ABSOLUTE_URL.exec(trimmed);if(match===null||match[2]===void 0||match[2].length===0)return configFailure("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let scheme=(match[1]??"").toLowerCase(),host=hostOf(match[2]);if(host.length===0)return configFailure("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let shown=canEchoOrigin(trimmed,host)?`: ${safeOrigin(scheme,host)}`:"";if(scheme!=="https"){if(!(scheme==="http"&&isLoopbackHost(host)))return scheme==="http"?configFailure("insecure-api-base-url",`apiBaseUrl must use https (cleartext http is only allowed for localhost)${shown}`):configFailure("unsupported-api-base-url-scheme",`apiBaseUrl must be http(s)${shown}`)}let value=trimmed.endsWith("/")?trimmed.slice(0,-1):trimmed;/* @__PURE__ */
6
6
  return Object.freeze({ok:true,value:value})}function isLoopbackHost(hostname){let host=hostname.toLowerCase();return host==="localhost"||host==="127.0.0.1"||host==="[::1]"||host==="::1"}function readEnv(name){let value=globalThis.process?.env?.[name];return typeof value=="string"&&value.trim().length>0?value.trim():void 0}var DAILY_QUOTA_WIRE_CODE="DAILY_QUOTA_EXCEEDED",THROTTLES=/* @__PURE__ */new Set(["THROTTLINGEXCEPTION","RATELIMITED","TOOMANYREQUESTS"]);function foldDailyQuotaWireCode(code,body){if(!THROTTLES.has(code.toUpperCase().replace(/[^A-Z0-9]/g,"")))return code;let b=body,limit=b?.daily_limit??b?.error?.daily_limit;return typeof limit=="number"&&Number.isFinite(limit)?DAILY_QUOTA_WIRE_CODE:code}var CONTRACT_RETRYABILITY=/* @__PURE__ */Object.freeze([
7
7
  /* @__PURE__ */Object.freeze({wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false}),
@@ -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 EverfurResult } from '../EverfurResult.d-BFH-3s6E.cjs';
3
- import { j as FetchLike } from '../config.d-7bCXvOGn.cjs';
4
- import { a as PartnerServerClient } from '../pets.d-C4n-MDC4.cjs';
5
- export { b as PartnerPet, P as PartnerPetProfile, c as PartnerPetTarget, d as PartnerPetWithProfile, e as deletePartnerPet, g as getPartnerPet, u as updatePartnerPet, f as upsertPartnerPet } from '../pets.d-C4n-MDC4.cjs';
3
+ import { j as FetchLike } from '../config.d-Z_fyOZke.cjs';
4
+ import { a as PartnerServerClient } from '../pets.d-5SMtOAwB.cjs';
5
+ export { b as PartnerPet, P as PartnerPetProfile, c as PartnerPetTarget, d as PartnerPetWithProfile, e as deletePartnerPet, g as getPartnerPet, u as updatePartnerPet, f as upsertPartnerPet } from '../pets.d-5SMtOAwB.cjs';
6
6
  export { b as PetActivityLevel, c as PetAllergy, d as PetAllergySeverity, e as PetBirthDatePrecision, f as PetCondition, a as PetHealthProfile, P as PetHealthProfileInput, g as PetIndoorOutdoor, h as PetMedication, i as PetSex } from '../profile.d-CSs1wlXT.cjs';
7
7
  export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species.d-BXAIMh7I.cjs';
8
8
  import '../EverfurError.d-8NHtlgzA.cjs';
@@ -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 EverfurResult } from '../EverfurResult.d-D_-254ZY.js';
3
- import { j as FetchLike } from '../config.d-cqyvpzDb.js';
4
- import { a as PartnerServerClient } from '../pets.d-1_CHpfgB.js';
5
- export { b as PartnerPet, P as PartnerPetProfile, c as PartnerPetTarget, d as PartnerPetWithProfile, e as deletePartnerPet, g as getPartnerPet, u as updatePartnerPet, f as upsertPartnerPet } from '../pets.d-1_CHpfgB.js';
3
+ import { j as FetchLike } from '../config.d-KX-EkQ9j.js';
4
+ import { a as PartnerServerClient } from '../pets.d-BRsbR8QU.js';
5
+ export { b as PartnerPet, P as PartnerPetProfile, c as PartnerPetTarget, d as PartnerPetWithProfile, e as deletePartnerPet, g as getPartnerPet, u as updatePartnerPet, f as upsertPartnerPet } from '../pets.d-BRsbR8QU.js';
6
6
  export { b as PetActivityLevel, c as PetAllergy, d as PetAllergySeverity, e as PetBirthDatePrecision, f as PetCondition, a as PetHealthProfile, P as PetHealthProfileInput, g as PetIndoorOutdoor, h as PetMedication, i as PetSex } from '../profile.d-CSs1wlXT.js';
7
7
  export { C as CanonicalPetSpecies, c as canonicalPetSpecies } from '../species.d-BXAIMh7I.js';
8
8
  import '../EverfurError.d-8NHtlgzA.js';
@@ -1,7 +1,7 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
2
  function ok(value,warning){/* @__PURE__ */
3
3
  return Object.freeze({ok:true,value:value})}function err(error){/* @__PURE__ */
4
- return Object.freeze({ok:false,error:error})}var EverfurConfigError=class _EverfurConfigError extends Error{constructor(kind,message){super(message),this.name="EverfurConfigError",this.kind=kind,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var ABSOLUTE_URL=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;var SDK_VERSION="0.18.1",SDK_PLATFORM="react-native",DEFAULT_CONTRACT_VERSION="2026-09-19",ENV_API_BASE_URL="EVERFUR_API_BASE_URL";function configFailure(reason,message){/* @__PURE__ */
4
+ return Object.freeze({ok:false,error:error})}var EverfurConfigError=class _EverfurConfigError extends Error{constructor(kind,message){super(message),this.name="EverfurConfigError",this.kind=kind,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var ABSOLUTE_URL=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;var SDK_VERSION="0.18.3",SDK_PLATFORM="react-native",DEFAULT_CONTRACT_VERSION="2026-09-19",ENV_API_BASE_URL="EVERFUR_API_BASE_URL";function configFailure(reason,message){/* @__PURE__ */
5
5
  return Object.freeze({ok:false,failure:/* @__PURE__ */Object.freeze({reason:reason,message:message})})}function tryResolveApiBaseUrl(apiBaseUrl){let explicit=apiBaseUrl?.trim(),candidate=explicit&&explicit.length>0?explicit:readEnv(ENV_API_BASE_URL);return candidate?normalizeBaseUrl(candidate):configFailure("missing-api-base-url",`apiBaseUrl is required: pass config.apiBaseUrl or set ${ENV_API_BASE_URL}. The SDK never ships a hardcoded host.`)}function resolveApiBaseUrl(apiBaseUrl){let outcome=tryResolveApiBaseUrl(apiBaseUrl);if(!outcome.ok)throw new EverfurConfigError("invalid-argument",outcome.failure.message);return outcome.value}function buildBaseHeaders(cfg){return{"X-Everfur-SDK-Version":cfg.sdkVersion,"X-Everfur-SDK-Platform":cfg.platform,"X-Everfur-Contract":cfg.contractVersion}}function hostOf(authority){return authority.slice(authority.lastIndexOf("@")+1).replace(/:\d+$/,"").toLowerCase()}function isPrintableHost(host){return host.length===0||host.includes("@")?false:host.startsWith("[")&&host.endsWith("]")?true:!host.includes(":")}function canEchoOrigin(rawTrimmed,host){let schemeEnd=rawTrimmed.indexOf("://");return schemeEnd<0||rawTrimmed.slice(schemeEnd+3).includes("@")?false:isPrintableHost(host)}function safeOrigin(scheme,host){return`${scheme}://${host}`}function normalizeBaseUrl(raw){let trimmed=raw.trim(),match=ABSOLUTE_URL.exec(trimmed);if(match===null||match[2]===void 0||match[2].length===0)return configFailure("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let scheme=(match[1]??"").toLowerCase(),host=hostOf(match[2]);if(host.length===0)return configFailure("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let shown=canEchoOrigin(trimmed,host)?`: ${safeOrigin(scheme,host)}`:"";if(scheme!=="https"){if(!(scheme==="http"&&isLoopbackHost(host)))return scheme==="http"?configFailure("insecure-api-base-url",`apiBaseUrl must use https (cleartext http is only allowed for localhost)${shown}`):configFailure("unsupported-api-base-url-scheme",`apiBaseUrl must be http(s)${shown}`)}let value=trimmed.endsWith("/")?trimmed.slice(0,-1):trimmed;/* @__PURE__ */
6
6
  return Object.freeze({ok:true,value:value})}function isLoopbackHost(hostname){let host=hostname.toLowerCase();return host==="localhost"||host==="127.0.0.1"||host==="[::1]"||host==="::1"}function readEnv(name){let value=globalThis.process?.env?.[name];return typeof value=="string"&&value.trim().length>0?value.trim():void 0}var DAILY_QUOTA_WIRE_CODE="DAILY_QUOTA_EXCEEDED",THROTTLES=/* @__PURE__ */new Set(["THROTTLINGEXCEPTION","RATELIMITED","TOOMANYREQUESTS"]);function foldDailyQuotaWireCode(code,body){if(!THROTTLES.has(code.toUpperCase().replace(/[^A-Z0-9]/g,"")))return code;let b=body,limit=b?.daily_limit??b?.error?.daily_limit;return typeof limit=="number"&&Number.isFinite(limit)?DAILY_QUOTA_WIRE_CODE:code}var CONTRACT_RETRYABILITY=/* @__PURE__ */Object.freeze([
7
7
  /* @__PURE__ */Object.freeze({wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false}),
@@ -1,11 +1,11 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
2
  import { ReactNode } from 'react';
3
3
  import { ImageSourcePropType } from 'react-native';
4
- import { O as OmsClient, S as ShopPet, b as ShopPackageSource, c as ShopCopy, d as ShopV3Copy, e as ShopRoute, f as ShopCardHandoff, a as ShopPaymentsPort, h as ShopProfileName, i as ShopOrdersV2Copy } from '../idempotency.d-DrO2zEZO.cjs';
5
- export { j as OmsClientConfig, k as OmsConsumerAuth, l as OmsGetToken, m as SHOP_COPY, n as SHOP_COPY_PLACEHOLDERS, o as SHOP_ORDERS_V2_COPY, p as SHOP_V3_COPY, q as SHOP_V3_COPY_PLACEHOLDERS, r as ShopPackage, s as ShopPackageLine, E as ShopPayerActionContext, t as ShopPaymentStepResult, u as ShopTabName, U as UNAVAILABLE_PACKAGE_SOURCE, x as createOmsClient, y as createOmsPackageSource, A as newIdempotencyKey, B as shopCopy, C as shopOrdersV2Copy, D as shopV3Copy } from '../idempotency.d-DrO2zEZO.cjs';
4
+ import { O as OmsClient, S as ShopPet, b as ShopPackageSource, c as ShopCopy, d as ShopV3Copy, e as ShopRoute, f as ShopCardHandoff, a as ShopPaymentsPort, h as ShopProfileName, i as ShopOrdersV2Copy } from '../idempotency.d-BmYuCb-n.cjs';
5
+ export { j as OmsClientConfig, k as OmsConsumerAuth, l as OmsGetToken, m as SHOP_COPY, n as SHOP_COPY_PLACEHOLDERS, o as SHOP_ORDERS_V2_COPY, p as SHOP_V3_COPY, q as SHOP_V3_COPY_PLACEHOLDERS, r as ShopPackage, s as ShopPackageLine, E as ShopPayerActionContext, t as ShopPaymentStepResult, u as ShopTabName, U as UNAVAILABLE_PACKAGE_SOURCE, x as createOmsClient, y as createOmsPackageSource, A as newIdempotencyKey, B as shopCopy, C as shopOrdersV2Copy, D as shopV3Copy } from '../idempotency.d-BmYuCb-n.cjs';
6
6
  import { E as EverfurShopOrdersV2Screen } from '../view.d-CbcJKNJj.cjs';
7
7
  export { o as OmsAddress, a as OmsBuyAgainItem, F as OmsCardActionLink, G as OmsCardSetupLink, p as OmsCartLine, q as OmsCents, j as OmsError, r as OmsOffer, b as OmsOrder, c as OmsOrderSummary, f as OmsPlan, s as OmsPlanChangeOption, t as OmsPlanOperation, m as OmsPlanSkipWarning, u as OmsPlanSkipWarningKey, n as OmsPrescription, g as OmsQuote, v as OmsQuoteLine, h as OmsReceipt, w as OmsReceiptCard, x as OmsReceiptLine, y as OmsResult, i as OmsShopConfig, z as OmsSupply, A as isOmsRefusal, B as isOmsRetryable, C as isOmsUnavailable } from '../omsErrors.d-VF5tnr20.cjs';
8
- import '../config.d-7bCXvOGn.cjs';
8
+ import '../config.d-Z_fyOZke.cjs';
9
9
  import '../EverfurError.d-8NHtlgzA.cjs';
10
10
  import '../EverfurResult.d-BFH-3s6E.cjs';
11
11
 
@@ -1,11 +1,11 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
2
  import { ReactNode } from 'react';
3
3
  import { ImageSourcePropType } from 'react-native';
4
- import { O as OmsClient, S as ShopPet, b as ShopPackageSource, c as ShopCopy, d as ShopV3Copy, e as ShopRoute, f as ShopCardHandoff, a as ShopPaymentsPort, h as ShopProfileName, i as ShopOrdersV2Copy } from '../idempotency.d-CF5AvlYp.js';
5
- export { j as OmsClientConfig, k as OmsConsumerAuth, l as OmsGetToken, m as SHOP_COPY, n as SHOP_COPY_PLACEHOLDERS, o as SHOP_ORDERS_V2_COPY, p as SHOP_V3_COPY, q as SHOP_V3_COPY_PLACEHOLDERS, r as ShopPackage, s as ShopPackageLine, E as ShopPayerActionContext, t as ShopPaymentStepResult, u as ShopTabName, U as UNAVAILABLE_PACKAGE_SOURCE, x as createOmsClient, y as createOmsPackageSource, A as newIdempotencyKey, B as shopCopy, C as shopOrdersV2Copy, D as shopV3Copy } from '../idempotency.d-CF5AvlYp.js';
4
+ import { O as OmsClient, S as ShopPet, b as ShopPackageSource, c as ShopCopy, d as ShopV3Copy, e as ShopRoute, f as ShopCardHandoff, a as ShopPaymentsPort, h as ShopProfileName, i as ShopOrdersV2Copy } from '../idempotency.d-BVO0mU2R.js';
5
+ export { j as OmsClientConfig, k as OmsConsumerAuth, l as OmsGetToken, m as SHOP_COPY, n as SHOP_COPY_PLACEHOLDERS, o as SHOP_ORDERS_V2_COPY, p as SHOP_V3_COPY, q as SHOP_V3_COPY_PLACEHOLDERS, r as ShopPackage, s as ShopPackageLine, E as ShopPayerActionContext, t as ShopPaymentStepResult, u as ShopTabName, U as UNAVAILABLE_PACKAGE_SOURCE, x as createOmsClient, y as createOmsPackageSource, A as newIdempotencyKey, B as shopCopy, C as shopOrdersV2Copy, D as shopV3Copy } from '../idempotency.d-BVO0mU2R.js';
6
6
  import { E as EverfurShopOrdersV2Screen } from '../view.d-CbcJKNJj.js';
7
7
  export { o as OmsAddress, a as OmsBuyAgainItem, F as OmsCardActionLink, G as OmsCardSetupLink, p as OmsCartLine, q as OmsCents, j as OmsError, r as OmsOffer, b as OmsOrder, c as OmsOrderSummary, f as OmsPlan, s as OmsPlanChangeOption, t as OmsPlanOperation, m as OmsPlanSkipWarning, u as OmsPlanSkipWarningKey, n as OmsPrescription, g as OmsQuote, v as OmsQuoteLine, h as OmsReceipt, w as OmsReceiptCard, x as OmsReceiptLine, y as OmsResult, i as OmsShopConfig, z as OmsSupply, A as isOmsRefusal, B as isOmsRetryable, C as isOmsUnavailable } from '../omsErrors.d-VF5tnr20.js';
8
- import '../config.d-cqyvpzDb.js';
8
+ import '../config.d-KX-EkQ9j.js';
9
9
  import '../EverfurError.d-8NHtlgzA.js';
10
10
  import '../EverfurResult.d-D_-254ZY.js';
11
11
 
@@ -6,13 +6,13 @@ import { ReactNode } from 'react';
6
6
  import { StyleProp, ViewStyle } from 'react-native';
7
7
  import { P as PetRef } from '../ids.d-B2GAAifq.cjs';
8
8
  import { E as EverfurStarterPrompt } from '../quickPrompts.d-NM_81Jc1.cjs';
9
- import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded, I as IntroText } from '../introEvents.d-Cwv72ER-.cjs';
10
- export { c as EVERFUR_INTRO_COPY, e as IntroFacts, f as IntroPetWords, g as IntroTextInput, h as defaultIntroBlanks, i as introFacts, j as introPetWords, k as introText, n as numberWord } from '../introEvents.d-Cwv72ER-.cjs';
9
+ import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded, I as IntroText } from '../introEvents.d-DGQDEPJi.cjs';
10
+ export { c as EVERFUR_INTRO_COPY, e as IntroFacts, f as IntroPetWords, g as IntroTextInput, h as defaultIntroBlanks, i as introFacts, j as introPetWords, k as introText, n as numberWord } from '../introEvents.d-DGQDEPJi.cjs';
11
11
  import { C as CaptureRecordsSignature } from '../clinicRequestProps.d-1dCtouGA.cjs';
12
12
  import { g as EverfurChatOpeningCard } from '../threadOptions.d-bEAFkIsC.cjs';
13
13
  import { E as EverfurTabId, a as EverfurTabsCopy } from '../tabsModel.d-D9GWPFrL.cjs';
14
14
  export { b as EVERFUR_TABS_COPY } from '../tabsModel.d-D9GWPFrL.cjs';
15
- import { H as HealthPlanPage } from '../focus.d-HSkMHd-i.cjs';
15
+ import { H as HealthPlanPage } from '../focus.d-DJD4lWFB.cjs';
16
16
  import { E as EverfurIntroMode, a as EverfurIntroFrame, b as EverfurIntroClose, c as EverfurIntroTabLabels } from '../useIntroSeen.d-CTWFUthO.cjs';
17
17
  export { d as EverfurIntroExit, e as EverfurIntroSeen, i as isIntroSwipeOut, u as useEverfurIntroSeen } from '../useIntroSeen.d-CTWFUthO.cjs';
18
18
  import '../EverfurResult.d-BFH-3s6E.cjs';
@@ -20,10 +20,10 @@ import '../EverfurError.d-8NHtlgzA.cjs';
20
20
  import '../clinicModels.d-BXgKZqDb.cjs';
21
21
  import '../models.d-BSqvbTE1.cjs';
22
22
  import '../threadOptions.d-CW51PyVd.cjs';
23
- import '../requestFunnel.d-CWI2pD3V.cjs';
23
+ import '../requestFunnel.d-CQX_Z1Hi.cjs';
24
24
  import '../ErrorPolicyPort.d-DirW9hgO.cjs';
25
- import '../config.d-7bCXvOGn.cjs';
26
- import '../identity.d-84x0dV7-.cjs';
25
+ import '../config.d-Z_fyOZke.cjs';
26
+ import '../identity.d-3ROlHbnP.cjs';
27
27
 
28
28
  /**
29
29
  * How the member got here, said by the host (explicit, owner decision (a)): a plain open from your app's own tab bar,
@@ -6,13 +6,13 @@ import { ReactNode } from 'react';
6
6
  import { StyleProp, ViewStyle } from 'react-native';
7
7
  import { P as PetRef } from '../ids.d-B2GAAifq.js';
8
8
  import { E as EverfurStarterPrompt } from '../quickPrompts.d-NM_81Jc1.js';
9
- import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded, I as IntroText } from '../introEvents.d-DYU3znJs.js';
10
- export { c as EVERFUR_INTRO_COPY, e as IntroFacts, f as IntroPetWords, g as IntroTextInput, h as defaultIntroBlanks, i as introFacts, j as introPetWords, k as introText, n as numberWord } from '../introEvents.d-DYU3znJs.js';
9
+ import { E as EverfurIntroCopy, a as EverfurIntroBlank, b as EverfurRecordsRequested, d as EverfurRecordsLanded, I as IntroText } from '../introEvents.d-cvMxJfYd.js';
10
+ export { c as EVERFUR_INTRO_COPY, e as IntroFacts, f as IntroPetWords, g as IntroTextInput, h as defaultIntroBlanks, i as introFacts, j as introPetWords, k as introText, n as numberWord } from '../introEvents.d-cvMxJfYd.js';
11
11
  import { C as CaptureRecordsSignature } from '../clinicRequestProps.d-CjsMg_OD.js';
12
12
  import { g as EverfurChatOpeningCard } from '../threadOptions.d-U5YBUKM-.js';
13
13
  import { E as EverfurTabId, a as EverfurTabsCopy } from '../tabsModel.d-D9GWPFrL.js';
14
14
  export { b as EVERFUR_TABS_COPY } from '../tabsModel.d-D9GWPFrL.js';
15
- import { H as HealthPlanPage } from '../focus.d-DiWvQR2j.js';
15
+ import { H as HealthPlanPage } from '../focus.d-BPofD7ow.js';
16
16
  import { E as EverfurIntroMode, a as EverfurIntroFrame, b as EverfurIntroClose, c as EverfurIntroTabLabels } from '../useIntroSeen.d-CTWFUthO.js';
17
17
  export { d as EverfurIntroExit, e as EverfurIntroSeen, i as isIntroSwipeOut, u as useEverfurIntroSeen } from '../useIntroSeen.d-CTWFUthO.js';
18
18
  import '../EverfurResult.d-D_-254ZY.js';
@@ -20,10 +20,10 @@ import '../EverfurError.d-8NHtlgzA.js';
20
20
  import '../clinicModels.d-CaS64-P-.js';
21
21
  import '../models.d-DOwnr8fi.js';
22
22
  import '../threadOptions.d-CW51PyVd.js';
23
- import '../requestFunnel.d-DcQIAs45.js';
23
+ import '../requestFunnel.d-DSvCGf4J.js';
24
24
  import '../ErrorPolicyPort.d-68yrE3BE.js';
25
- import '../config.d-cqyvpzDb.js';
26
- import '../identity.d-BXztMVYM.js';
25
+ import '../config.d-KX-EkQ9j.js';
26
+ import '../identity.d-CRVNfZzQ.js';
27
27
 
28
28
  /**
29
29
  * How the member got here, said by the host (explicit, owner decision (a)): a plain open from your app's own tab bar,
@@ -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
  "use strict";var react=require("react"),reactNative=require("react-native"),zod=require("zod"),jsxRuntime=require("react/jsx-runtime"),callModule=require("@everfur/sdk/televet/call"),reactNativeSafeAreaContext=require("react-native-safe-area-context");function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=="default"){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}})}})}n.default=e;return Object.freeze(n)}var callModule__namespace=/*#__PURE__*/_interopNamespace(callModule);function assertNever(x){throw new Error(`assertNever: unhandled discriminated-union member ${JSON.stringify(x)}`)}function errorFrame(fields){/* @__PURE__ */
3
3
  return Object.freeze({kind:"error",terminal:true,code:fields.code,retryable:fields.retryable,wireMessage:fields.wireMessage,synthesized:fields.synthesized,lastEventId:fields.lastEventId,serverRequestId:null})}var CONSULT_STATUSES=["scheduled","in_progress","awaiting_summary","completed","cancelled_owner","cancelled_ops","no_show_owner","no_show_vet"],TERMINAL_CONSULT_STATUSES=/* @__PURE__ */new Set(["completed","cancelled_owner","cancelled_ops","no_show_owner","no_show_vet"]),LIVE_CONSULT_STATUSES=/* @__PURE__ */new Set(["scheduled","in_progress","awaiting_summary"]);function isLiveConsult(consult){return LIVE_CONSULT_STATUSES.has(consult.status)}var CONSULT_KINDS=["wellness","prescription"],SLOT_MINUTES_MAX=60;function televetSlotMinutes(slot){let starts=Date.parse(slot.startsAt),ends=Date.parse(slot.endsAt);if(Number.isNaN(starts)||Number.isNaN(ends))return null;let minutes=Math.round((ends-starts)/6e4);return minutes>0?Math.min(minutes,SLOT_MINUTES_MAX):null}var CANCELLATION_POLICY_VERSION_MAX=64,REASON_TEXT_MAX=2e3,MEDIA_REFS_MAX=10;function isWellFormedStateCode(state){return typeof state=="string"&&/^[A-Za-z]{2}$/.test(state.trim())}function row(value){return typeof value=="object"&&value!==null?value:null}function str(value){return typeof value=="string"&&value.length>0?value:null}function trimmedOrNull(value){return typeof value=="string"&&value.trim().length>0?value.trim():null}function bool(value,fallback){return typeof value=="boolean"?value:fallback}function num(value){return typeof value=="number"&&Number.isFinite(value)?value:null}function closed(set,value){return typeof value=="string"&&set.includes(value)?value:"unknown"}function parseList(wire,parseRow){if(!Array.isArray(wire))/* @__PURE__ */return Object.freeze([]);let out=[];for(let item of wire){let parsed=parseRow(item);parsed!==null&&out.push(parsed)}/* @__PURE__ */
4
- return Object.freeze(out)}function parseStatePolicy(wire,askedFor){let r=row(wire);return r===null?null:/* @__PURE__ */Object.freeze({state:str(r.state)??askedFor,wellnessAvailable:bool(r.wellness_available,false),prescriptionsAvailable:bool(r.prescriptions_available,false),cancellationPolicyText:trimmedOrNull(r.cancellation_policy_text)})}function parseCancellationPolicy(wire){let r=row(wire);if(r===null)return null;let summary=trimmedOrNull(r.summary),version=trimmedOrNull(r.version);return summary===null||version===null?null:/* @__PURE__ */Object.freeze({summary:summary,version:version})}function parseClinician(wire){let r=row(wire);if(r===null)return null;let clinicianId=str(r.clinician_id),displayName=str(r.display_name);return clinicianId===null||displayName===null?null:/* @__PURE__ */Object.freeze({clinicianId:clinicianId,displayName:displayName,credentials:trimmedOrNull(r.credentials_text),rating:num(r.rating),ratingCount:num(r.rating_count),bio:trimmedOrNull(r.bio),photoRef:str(r.photo_ref),licensedStates:parseList(r.licensed_states,item=>{let l=row(item),state=l===null?null:str(l.state);return state===null?null:/* @__PURE__ */Object.freeze({state:state,canPrescribe:bool(l?.can_prescribe,false)})})})}function parseSlot(wire){let r=row(wire);if(r===null)return null;let slotId=str(r.slot_id),startsAt=str(r.starts_at);return slotId===null||startsAt===null?null:/* @__PURE__ */Object.freeze({slotId:slotId,startsAt:startsAt,endsAt:str(r.ends_at)??startsAt})}function parseTriageVerdict(wire){let r=row(wire);if(r===null)return null;let isEmergency=r.is_emergency===true,fallback=r.fallback===true;return isEmergency||fallback?/* @__PURE__ */Object.freeze({isEmergency:isEmergency,fallback:fallback}):r.is_emergency===false&&r.fallback===false?/* @__PURE__ */Object.freeze({isEmergency:false,fallback:false}):null}function parseSlotHold(wire){let r=row(wire);if(r===null)return null;let slotId=str(r.slot_id),expiresAt=str(r.hold_expires_at);return slotId===null||expiresAt===null?null:/* @__PURE__ */Object.freeze({slotId:slotId,expiresAt:expiresAt})}function parseConsult(wire){let r=row(wire);if(r===null)return null;let consultId=str(r.consult_id),scheduledAt=str(r.scheduled_at);return consultId===null||scheduledAt===null?null:/* @__PURE__ */Object.freeze({consultId:consultId,petId:str(r.pet_id)??"",clinicianId:str(r.clinician_id)??"",clinicianName:trimmedOrNull(r.display_name),reasonText:trimmedOrNull(r.reason_text),mediaRefs:parseList(r.media_refs,item=>str(item)),status:closed(CONSULT_STATUSES,r.status),kind:closed(CONSULT_KINDS,r.kind),scheduledAt:scheduledAt,emergencyFlagged:bool(r.emergency_flagged,false),hasRoom:str(r.meeting_url)!==null})}function parseBookingEntitlement(wire){let r=row(wire);/* @__PURE__ */
5
- return Object.freeze({active:bool(r?.active,false)})}var CANCEL_REASON_MAX=240;function parseCancelReceipt(wire){let r=row(wire);if(r===null)return null;let feeCents=num(r.fee_cents);return feeCents===null||feeCents<0?null:/* @__PURE__ */Object.freeze({feeCents:feeCents,currency:str(r.currency)??"usd",feeRecorded:bool(r.fee_recorded,feeCents>0),summary:trimmedOrNull(r.summary)})}var TELEVET_JOIN_OPENS_MINUTES_BEFORE=15,TELEVET_JOIN_CLOSES_MINUTES_AFTER=250,JOINABLE=/* @__PURE__ */new Set(["scheduled","in_progress"]);function startsAtMs(consult){let parsed=Date.parse(consult.scheduledAt);return Number.isNaN(parsed)?null:parsed}function televetJoinOpensAtMs(consult){let start=startsAtMs(consult);return start===null?null:start-TELEVET_JOIN_OPENS_MINUTES_BEFORE*6e4}function televetJoinReadiness(consult,nowMs){if(consult===null)return{ready:false,reason:"not_open_yet"};if(TERMINAL_CONSULT_STATUSES.has(consult.status))return{ready:false,reason:"consult_over"};if(consult.status==="in_progress")return{ready:true};let start=startsAtMs(consult);return start===null?{ready:false,reason:"not_open_yet"}:nowMs<start-TELEVET_JOIN_OPENS_MINUTES_BEFORE*6e4?{ready:false,reason:"not_open_yet"}:nowMs>start+TELEVET_JOIN_CLOSES_MINUTES_AFTER*6e4?{ready:false,reason:"consult_over"}:{ready:true}}function televetJoinDecision(consult,nowMs){if(!JOINABLE.has(consult.status))return{joinable:false,reason:`status_${consult.status}`};if(!consult.hasRoom)return{joinable:false,reason:"room_not_ready"};let start=startsAtMs(consult);return start===null||nowMs<start-TELEVET_JOIN_OPENS_MINUTES_BEFORE*6e4?{joinable:false,reason:"too_early"}:nowMs>start+TELEVET_JOIN_CLOSES_MINUTES_AFTER*6e4?{joinable:false,reason:"too_late"}:{joinable:true}}function splitTelevetVisits(consults,nowMs){let upcoming=[],past=[];for(let consult of consults){let start=startsAtMs(consult);(JOINABLE.has(consult.status)&&start!==null&&start+TELEVET_JOIN_CLOSES_MINUTES_AFTER*6e4>nowMs?upcoming:past).push(consult)}return upcoming.sort((a,b)=>(startsAtMs(a)??0)-(startsAtMs(b)??0)),past.sort((a,b)=>(startsAtMs(b)??0)-(startsAtMs(a)??0)),/* @__PURE__ */Object.freeze({upcoming:/* @__PURE__ */Object.freeze(upcoming),past:/* @__PURE__ */Object.freeze(past)})}function canManageTelevetVisit(status){return status==="scheduled"}function reportHostFailure(error){let globalConsole=globalThis.console;try{globalConsole?.error?.("[everfur] A host callback threw; the SDK ignored it.",error)}catch{}}function isThenable(value){return(typeof value=="object"||typeof value=="function")&&value!==null&&typeof value.then=="function"}function callHost(fn,...args){if(typeof fn=="function")try{let result=fn(...args);return isThenable(result)&&Promise.resolve(result).then(void 0,reportHostFailure),result}catch(error){reportHostFailure(error);return}}var GUARDED=/* @__PURE__ */new WeakMap;function guardHost(fn){if(typeof fn!="function")return;let cached=GUARDED.get(fn);if(cached!==void 0)return cached;let guarded=(...args)=>{callHost(fn,...args)};return GUARDED.set(fn,guarded),guarded}function guardHostProps(props,names){let guarded=null;for(let name of names){let fn=props[name];typeof fn=="function"&&(guarded??={...props},guarded[name]=guardHost(fn))}return guarded??props}function callHostAsync(fn,...args){let started;try{started=fn(...args)}catch(error){return reportHostFailure(error),Promise.resolve({ok:false,error:error})}return Promise.resolve(started).then(value=>({ok:true,value:value}),error=>({ok:false,error:error}))}function createTelevetBackChannel(){let handlers=[];return{register(handler){return handlers=[...handlers,handler],()=>{handlers=handlers.filter(h=>h!==handler)}},dispatch(){for(let handler of[...handlers].reverse())try{if(handler())return!0}catch{}return false}}}var TelevetBackChannelContext=react.createContext(null);function useTelevetBackChannel(handler,enabled=true){let channel=react.useContext(TelevetBackChannelContext),current=react.useRef(handler);current.current=handler,react.useEffect(()=>{if(!(channel===null||!enabled))return channel.register(()=>current.current())},[channel,enabled])}var EMERGENCY_ER_LINE="Go to the nearest emergency vet now.";var DRAFT=s=>s,PLACEHOLDER_MARKERS=["[PLACEHOLDER","[PLAN NAME]","[LINK]","[Last]","TODO","TBD"];function isPlaceholderCopy(value){return PLACEHOLDER_MARKERS.some(m=>value.toUpperCase().includes(m.toUpperCase()))}function fill(template,slots){let out=template;for(let[key,value]of Object.entries(slots))out=out.split(`{${key}}`).join(value);return out}var TELEVET_BOOKING_COPY=/* @__PURE__ */Object.freeze({stateBlockedTitle:DRAFT("Not available in this state yet"),noCliniciansTitle:DRAFT("No vets available right now"),noCliniciansBody:DRAFT("Nobody is free in your area at the moment. This changes through the day."),noCliniciansRetryCta:DRAFT("Check again"),noCliniciansRegionBody:DRAFT("Video visits have to be with a vet licensed in your state, and we don’t have one there yet."),yourVetTitle:DRAFT("Your vet"),licensedPillTemplate:DRAFT("Licensed in {state}"),reviewsLabel:DRAFT("reviews"),rescheduleFromTemplate:DRAFT("Moving your visit on {when}"),rescheduleFailed:DRAFT("That did not move. Your original time is unchanged."),rescheduleStepLabel:DRAFT("Reschedule"),rescheduleTitleTemplate:DRAFT("Pick a new time for {pet}"),rescheduleNowLabel:DRAFT("Now"),rescheduleMoveTemplate:DRAFT("Move to {when}"),rescheduleMoving:DRAFT("Moving…"),rescheduleKeepLabel:DRAFT("Keep the visit as it is"),keepExistingCta:DRAFT("Keep my current time"),bookingPausedTitle:DRAFT("Booking is not available right now."),slotsErrorTitle:DRAFT("Could not load times"),noSlotsTitle:DRAFT("No times available"),nextOpeningTemplate:DRAFT("Next opening across our vets: {when}"),seeOtherVetsCta:DRAFT("See other vets"),retryCta:DRAFT("Try again"),holdExpired:DRAFT("That time is no longer held. Pick another."),slotTaken:DRAFT("That time was just taken. Pick another."),reasonPlaceholder:DRAFT("What is going on with your pet?"),reasonTooLong:DRAFT("That is too long. Please shorten it."),shareRecordsOff:DRAFT("Share health records with this vet"),confirmNotEntitled:DRAFT("A Pro membership is needed to book a video visit."),confirmFailed:DRAFT("That did not book. Try again."),checkAvailabilityCta:DRAFT("Check availability"),stateInterest:/* @__PURE__ */Object.freeze({cta:DRAFT("Add me to the list"),submitting:DRAFT("Adding you to the list…"),joinedTitle:DRAFT("You are on the list"),joinedBody:DRAFT("We will let you know when this changes."),failed:DRAFT("That did not save. Try again.")}),media:/* @__PURE__ */Object.freeze({droppedTemplate:DRAFT("{n} attachment did not upload."),droppedPluralTemplate:DRAFT("{n} attachments did not upload."),refusedSizeTemplate:DRAFT("{n} attachment was too large to send."),refusedSizePluralTemplate:DRAFT("{n} attachments were too large to send."),refusedTypeTemplate:DRAFT("{n} attachment is a file type that cannot be sent."),refusedTypePluralTemplate:DRAFT("{n} attachments are file types that cannot be sent."),refusedUnreadableTemplate:DRAFT("{n} attachment could not be read."),refusedUnreadablePluralTemplate:DRAFT("{n} attachments could not be read.")}),navTitle:DRAFT("Book a visit"),petFallback:"your pet",whereTitleTemplate:DRAFT("Where will {pet} be during the visit?"),whereLeadTemplate:DRAFT("Pick where {pronoun} be for the call, not where you live. It decides what the vet can do."),wherePronounFallback:"they’ll",whereFormLabelTemplate:DRAFT("Where {pet} will be"),whereLegend:DRAFT("State"),wherePrescribeMetaTemplate:DRAFT("Video visit, and prescriptions if {pet} needs them"),whereWellnessMeta:DRAFT("Wellness visit: advice and a care plan, no prescriptions yet"),whereAnotherState:DRAFT("Another state"),whereWhichState:DRAFT("Which state?"),whereLicensedTemplate:DRAFT("{vet} is licensed in {state}, so a prescription can be part of {pet}’s plan."),whereAskEveryTime:DRAFT("We ask every time: state rules require it."),issuesTitleTemplate:DRAFT("What’s going on with {pet}?"),issuesHint:DRAFT("Pick as many as you like."),issuesFormLabel:DRAFT("What’s going on"),issuesLegend:DRAFT("Main issues"),issuesPickOne:DRAFT("Pick at least one. Not sure? Choose Something else."),otherIssue:DRAFT("Something else"),describeHeadingTemplate:DRAFT("Tell {vet} what you’re seeing"),describeFieldLabel:DRAFT("What you’re seeing"),emergencyCheck:/* @__PURE__ */Object.freeze({titleTemplate:DRAFT("Is {pet} doing any of these right now?"),lead:DRAFT("A scheduled video visit isn’t the right place for an emergency."),signs:/* @__PURE__ */Object.freeze([DRAFT("Trouble breathing, or blue, grey or very pale gums"),DRAFT("Collapsed, or can’t stand up"),DRAFT("A seizure"),DRAFT("Ate something toxic, like grapes, chocolate, xylitol or medicine"),DRAFT("A swollen, hard belly, or retching with nothing coming up"),DRAFT("Bleeding that won’t stop"),DRAFT("Straining to pee with nothing coming out")]),formLabel:DRAFT("Emergency check"),legend:DRAFT("Any of these now?"),noneCta:DRAFT("No, none of these"),someCta:DRAFT("Yes, at least one")}),timeHeading:DRAFT("Pick a time"),timeMorning:DRAFT("Morning"),timeAfternoon:DRAFT("Afternoon"),timeEvening:DRAFT("Evening"),timeLegendTemplate:DRAFT("Time on {day}"),dayLegend:DRAFT("Day"),reviewHeading:DRAFT("Does this look right?"),summaryWhere:DRAFT("Where"),changeCta:DRAFT("Change"),whereAttestTemplate:DRAFT("{pet} and I will be in {state} during the visit."),attestBoth:DRAFT("Check both boxes to book the visit."),bookedStepLabel:DRAFT("Booked"),bookedTitleTemplate:DRAFT("You’re booked with {vet}"),bookedLeadTemplate:DRAFT("{when}, for {pet}."),footnote:DRAFT("Video visits are with a licensed veterinarian. Prescriptions where allowed, starting with California. In an emergency, go to the nearest emergency animal hospital."),rescheduleNavTitle:DRAFT("Change your visit"),close:DRAFT("Close"),continueCta:DRAFT("Continue"),petSelectTitle:DRAFT("Who is this visit for?"),addPetCta:DRAFT("Add a pet"),addAnotherPetCta:DRAFT("Add another pet"),locationUnknownTitle:DRAFT("We need your location to find a vet"),locationUnknownBody:DRAFT("Turn on location for Everfur, then try again."),locationUnknownCta:DRAFT("Allow location"),locationBlockedTitle:DRAFT("Location is turned off"),locationBlockedBody:DRAFT("Everfur needs your location to match you with a vet in your area."),locationBlockedCta:DRAFT("Open Settings"),locationUnavailableTitle:DRAFT("We could not read your location"),locationUnavailableBody:DRAFT("Try again in a moment."),stateAttestTemplate:DRAFT("I confirm my pet and I are in {state} right now."),describeHeading:DRAFT("Tell the vet what you are seeing"),describeHelpLong:DRAFT("When it started, what’s changed, what you’ve tried. Anything helps."),addPhotoCta:DRAFT("Add photos or videos"),addPhotoMeta:DRAFT("Optional. A close-up in good light helps."),removePhotoLabel:DRAFT("Remove photo"),summaryPet:DRAFT("Pet"),summaryVet:DRAFT("Vet"),summaryWhen:DRAFT("When"),summaryLength:DRAFT("Length"),summaryReason:DRAFT("About"),summaryLengthTemplate:DRAFT("{n} minutes"),confirmCta:DRAFT("Book the visit"),confirmBusy:DRAFT("Booking…"),bookedTitle:DRAFT("You are booked."),addToCalendarCta:DRAFT("Add to calendar"),doneCta:DRAFT("Done"),booked:/* @__PURE__ */Object.freeze({remindPromise:DRAFT("We will notify you 30 minutes before."),summaryPromise:DRAFT("{pet}'s summary goes to the vet ahead of the call."),recordsPromiseTemplate:DRAFT("{pet}’s records and your notes go to {vet} ahead of the call."),recordsPhotoPromiseTemplate:DRAFT("{pet}’s records, your notes and the photo go to {vet} ahead of the call."),stepsLabel:DRAFT("What happens next"),joinPromise:DRAFT("Join right here in the app. No links to hunt for."),backToPet:DRAFT("Back to {pet}"),calendarAdded:DRAFT("Added to your calendar"),calendarFailedBody:DRAFT("That did not save to your calendar.")}),chrome:/* @__PURE__ */Object.freeze({closeHint:DRAFT("Closes without saving"),discardTitle:DRAFT("Leave without booking?"),discardBody:DRAFT("Your answers will not be saved."),discardConfirmCta:DRAFT("Leave"),discardKeepCta:DRAFT("Keep going"),noPetsTitle:DRAFT("No pets on this account"),loadFailedTitle:DRAFT("Could not load"),retryCta:DRAFT("Try again")}),emergency:/* @__PURE__ */Object.freeze({bannerTitle:DRAFT("This can’t wait for a scheduled visit."),keepBookingCta:DRAFT("I’ve handled this, continue booking"),lede:DRAFT("What you’re describing is the kind of thing vets want to see in person, now. Call one of these first."),ledeWithoutExits:DRAFT("What you’re describing is the kind of thing vets want to see in person, now."),exitPrimaryVetTitle:DRAFT("Call {petName}’s regular vet"),exitFindErTitle:DRAFT("Find an emergency vet near you"),exitGoToErTitle:EMERGENCY_ER_LINE,startCallHint:DRAFT("Starts a phone call"),poisonControl:DRAFT("ASPCA Animal Poison Control"),poisonControlDetail:DRAFT("(888) 426-4435 · a fee may apply"),poisonControlTel:"tel:+18884264435"}),visit:/* @__PURE__ */Object.freeze({title:DRAFT("Your visit")}),loading:/* @__PURE__ */Object.freeze({pets:"Loading pets. Nothing to read yet.",clinicians:"Loading vets. Nothing to read yet.",slots:"Loading times. Nothing to read yet.",consult:"Loading your visit. Nothing to read yet.",progressTemplate:"Step {step} of {total}"})});function televetBookingCopyValues(node=TELEVET_BOOKING_COPY){return typeof node=="string"?[node]:typeof node!="object"||node===null?[]:Object.values(node).flatMap(v=>televetBookingCopyValues(v))}function isTelevetBookingCopyReady(){return televetBookingCopyValues().every(value=>value.trim().length>0&&!isPlaceholderCopy(value))}var CONTRACT_RETRYABILITY=/* @__PURE__ */Object.freeze([
4
+ return Object.freeze(out)}function parseStatePolicy(wire,askedFor){let r=row(wire);return r===null?null:/* @__PURE__ */Object.freeze({state:str(r.state)??askedFor,wellnessAvailable:bool(r.wellness_available,false),prescriptionsAvailable:bool(r.prescriptions_available,false),cancellationPolicyText:trimmedOrNull(r.cancellation_policy_text)})}function parseCancellationPolicy(wire){let r=row(wire);if(r===null)return null;let summary=trimmedOrNull(r.summary),version=trimmedOrNull(r.version);return summary===null||version===null?null:/* @__PURE__ */Object.freeze({summary:summary,version:version})}function parseClinician(wire){let r=row(wire);if(r===null)return null;let clinicianId=str(r.clinician_id),displayName=str(r.display_name);return clinicianId===null||displayName===null?null:/* @__PURE__ */Object.freeze({clinicianId:clinicianId,displayName:displayName,credentials:trimmedOrNull(r.credentials_text),rating:num(r.rating),ratingCount:num(r.rating_count),bio:trimmedOrNull(r.bio),photoRef:str(r.photo_ref),licensedStates:parseList(r.licensed_states,item=>{let l=row(item),state=l===null?null:str(l.state);return state===null?null:/* @__PURE__ */Object.freeze({state:state,canPrescribe:bool(l?.can_prescribe,false)})}),role:parseClinicianRole(r.clinician_role)})}function parseClinicianRole(wire){let value=str(wire)?.trim().toLowerCase();return value==="vet"||value==="vet_tech"?value:null}function parseSlot(wire){let r=row(wire);if(r===null)return null;let slotId=str(r.slot_id),startsAt=str(r.starts_at);return slotId===null||startsAt===null?null:/* @__PURE__ */Object.freeze({slotId:slotId,startsAt:startsAt,endsAt:str(r.ends_at)??startsAt})}function parseTriageVerdict(wire){let r=row(wire);if(r===null)return null;let isEmergency=r.is_emergency===true,fallback=r.fallback===true;return isEmergency||fallback?/* @__PURE__ */Object.freeze({isEmergency:isEmergency,fallback:fallback}):r.is_emergency===false&&r.fallback===false?/* @__PURE__ */Object.freeze({isEmergency:false,fallback:false}):null}function parseSlotHold(wire){let r=row(wire);if(r===null)return null;let slotId=str(r.slot_id),expiresAt=str(r.hold_expires_at);return slotId===null||expiresAt===null?null:/* @__PURE__ */Object.freeze({slotId:slotId,expiresAt:expiresAt})}function parseConsult(wire){let r=row(wire);if(r===null)return null;let consultId=str(r.consult_id),scheduledAt=str(r.scheduled_at);return consultId===null||scheduledAt===null?null:/* @__PURE__ */Object.freeze({consultId:consultId,petId:str(r.pet_id)??"",clinicianId:str(r.clinician_id)??"",clinicianName:trimmedOrNull(r.display_name),reasonText:trimmedOrNull(r.reason_text),mediaRefs:parseList(r.media_refs,item=>str(item)),status:closed(CONSULT_STATUSES,r.status),kind:closed(CONSULT_KINDS,r.kind),scheduledAt:scheduledAt,emergencyFlagged:bool(r.emergency_flagged,false),hasRoom:str(r.meeting_url)!==null})}function parseBookingEntitlement(wire){let r=row(wire);/* @__PURE__ */
5
+ return Object.freeze({active:bool(r?.active,false)})}var CANCEL_REASON_MAX=240;function parseCancelReceipt(wire){let r=row(wire);if(r===null)return null;let feeCents=num(r.fee_cents);return feeCents===null||feeCents<0?null:/* @__PURE__ */Object.freeze({feeCents:feeCents,currency:str(r.currency)??"usd",feeRecorded:bool(r.fee_recorded,feeCents>0),summary:trimmedOrNull(r.summary)})}var TELEVET_JOIN_OPENS_MINUTES_BEFORE=15,TELEVET_JOIN_CLOSES_MINUTES_AFTER=250,JOINABLE=/* @__PURE__ */new Set(["scheduled","in_progress"]);function startsAtMs(consult){let parsed=Date.parse(consult.scheduledAt);return Number.isNaN(parsed)?null:parsed}function televetJoinOpensAtMs(consult){let start=startsAtMs(consult);return start===null?null:start-TELEVET_JOIN_OPENS_MINUTES_BEFORE*6e4}function televetJoinReadiness(consult,nowMs){if(consult===null)return{ready:false,reason:"not_open_yet"};if(TERMINAL_CONSULT_STATUSES.has(consult.status))return{ready:false,reason:"consult_over"};if(consult.status==="in_progress")return{ready:true};let start=startsAtMs(consult);return start===null?{ready:false,reason:"not_open_yet"}:nowMs<start-TELEVET_JOIN_OPENS_MINUTES_BEFORE*6e4?{ready:false,reason:"not_open_yet"}:nowMs>start+TELEVET_JOIN_CLOSES_MINUTES_AFTER*6e4?{ready:false,reason:"consult_over"}:{ready:true}}function televetJoinDecision(consult,nowMs){if(!JOINABLE.has(consult.status))return{joinable:false,reason:`status_${consult.status}`};if(!consult.hasRoom)return{joinable:false,reason:"room_not_ready"};let start=startsAtMs(consult);return start===null||nowMs<start-TELEVET_JOIN_OPENS_MINUTES_BEFORE*6e4?{joinable:false,reason:"too_early"}:nowMs>start+TELEVET_JOIN_CLOSES_MINUTES_AFTER*6e4?{joinable:false,reason:"too_late"}:{joinable:true}}function splitTelevetVisits(consults,nowMs){let upcoming=[],past=[];for(let consult of consults){let start=startsAtMs(consult);(JOINABLE.has(consult.status)&&start!==null&&start+TELEVET_JOIN_CLOSES_MINUTES_AFTER*6e4>nowMs?upcoming:past).push(consult)}return upcoming.sort((a,b)=>(startsAtMs(a)??0)-(startsAtMs(b)??0)),past.sort((a,b)=>(startsAtMs(b)??0)-(startsAtMs(a)??0)),/* @__PURE__ */Object.freeze({upcoming:/* @__PURE__ */Object.freeze(upcoming),past:/* @__PURE__ */Object.freeze(past)})}function canManageTelevetVisit(status){return status==="scheduled"}function reportHostFailure(error){let globalConsole=globalThis.console;try{globalConsole?.error?.("[everfur] A host callback threw; the SDK ignored it.",error)}catch{}}function isThenable(value){return(typeof value=="object"||typeof value=="function")&&value!==null&&typeof value.then=="function"}function callHost(fn,...args){if(typeof fn=="function")try{let result=fn(...args);return isThenable(result)&&Promise.resolve(result).then(void 0,reportHostFailure),result}catch(error){reportHostFailure(error);return}}var GUARDED=/* @__PURE__ */new WeakMap;function guardHost(fn){if(typeof fn!="function")return;let cached=GUARDED.get(fn);if(cached!==void 0)return cached;let guarded=(...args)=>{callHost(fn,...args)};return GUARDED.set(fn,guarded),guarded}function guardHostProps(props,names){let guarded=null;for(let name of names){let fn=props[name];typeof fn=="function"&&(guarded??={...props},guarded[name]=guardHost(fn))}return guarded??props}function callHostAsync(fn,...args){let started;try{started=fn(...args)}catch(error){return reportHostFailure(error),Promise.resolve({ok:false,error:error})}return Promise.resolve(started).then(value=>({ok:true,value:value}),error=>({ok:false,error:error}))}function createTelevetBackChannel(){let handlers=[];return{register(handler){return handlers=[...handlers,handler],()=>{handlers=handlers.filter(h=>h!==handler)}},dispatch(){for(let handler of[...handlers].reverse())try{if(handler())return!0}catch{}return false}}}var TelevetBackChannelContext=react.createContext(null);function useTelevetBackChannel(handler,enabled=true){let channel=react.useContext(TelevetBackChannelContext),current=react.useRef(handler);current.current=handler,react.useEffect(()=>{if(!(channel===null||!enabled))return channel.register(()=>current.current())},[channel,enabled])}var EMERGENCY_ER_LINE="Go to the nearest emergency vet now.";var DRAFT=s=>s,PLACEHOLDER_MARKERS=["[PLACEHOLDER","[PLAN NAME]","[LINK]","[Last]","TODO","TBD"];function isPlaceholderCopy(value){return PLACEHOLDER_MARKERS.some(m=>value.toUpperCase().includes(m.toUpperCase()))}function fill(template,slots){let out=template;for(let[key,value]of Object.entries(slots))out=out.split(`{${key}}`).join(value);return out}var TELEVET_BOOKING_COPY=/* @__PURE__ */Object.freeze({stateBlockedTitle:DRAFT("Not available in this state yet"),noCliniciansTitle:DRAFT("No vets available right now"),noCliniciansBody:DRAFT("Nobody is free in your area at the moment. This changes through the day."),noCliniciansRetryCta:DRAFT("Check again"),noCliniciansRegionBody:DRAFT("Video visits have to be with a vet licensed in your state, and we don’t have one there yet."),yourVetTitle:DRAFT("Your vet"),licensedPillTemplate:DRAFT("Licensed in {state}"),reviewsLabel:DRAFT("reviews"),vetTechRoleLabel:DRAFT("Vet tech"),vetTechNoRxLine:DRAFT("Vet techs can’t prescribe medication."),rescheduleFromTemplate:DRAFT("Moving your visit on {when}"),rescheduleFailed:DRAFT("That did not move. Your original time is unchanged."),rescheduleStepLabel:DRAFT("Reschedule"),rescheduleTitleTemplate:DRAFT("Pick a new time for {pet}"),rescheduleNowLabel:DRAFT("Now"),rescheduleMoveTemplate:DRAFT("Move to {when}"),rescheduleMoving:DRAFT("Moving…"),rescheduleKeepLabel:DRAFT("Keep the visit as it is"),keepExistingCta:DRAFT("Keep my current time"),bookingPausedTitle:DRAFT("Booking is not available right now."),slotsErrorTitle:DRAFT("Could not load times"),noSlotsTitle:DRAFT("No times available"),nextOpeningTemplate:DRAFT("Next opening across our vets: {when}"),seeOtherVetsCta:DRAFT("See other vets"),retryCta:DRAFT("Try again"),holdExpired:DRAFT("That time is no longer held. Pick another."),slotTaken:DRAFT("That time was just taken. Pick another."),reasonPlaceholder:DRAFT("What is going on with your pet?"),reasonTooLong:DRAFT("That is too long. Please shorten it."),shareRecordsOff:DRAFT("Share health records with this vet"),confirmNotEntitled:DRAFT("A Pro membership is needed to book a video visit."),confirmFailed:DRAFT("That did not book. Try again."),checkAvailabilityCta:DRAFT("Check availability"),stateInterest:/* @__PURE__ */Object.freeze({cta:DRAFT("Add me to the list"),submitting:DRAFT("Adding you to the list…"),joinedTitle:DRAFT("You are on the list"),joinedBody:DRAFT("We will let you know when this changes."),failed:DRAFT("That did not save. Try again.")}),media:/* @__PURE__ */Object.freeze({droppedTemplate:DRAFT("{n} attachment did not upload."),droppedPluralTemplate:DRAFT("{n} attachments did not upload."),refusedSizeTemplate:DRAFT("{n} attachment was too large to send."),refusedSizePluralTemplate:DRAFT("{n} attachments were too large to send."),refusedTypeTemplate:DRAFT("{n} attachment is a file type that cannot be sent."),refusedTypePluralTemplate:DRAFT("{n} attachments are file types that cannot be sent."),refusedUnreadableTemplate:DRAFT("{n} attachment could not be read."),refusedUnreadablePluralTemplate:DRAFT("{n} attachments could not be read.")}),navTitle:DRAFT("Book a visit"),petFallback:"your pet",whereTitleTemplate:DRAFT("Where will {pet} be during the visit?"),whereLeadTemplate:DRAFT("Pick where {pronoun} be for the call, not where you live. It decides what the vet can do."),wherePronounFallback:"they’ll",whereFormLabelTemplate:DRAFT("Where {pet} will be"),whereLegend:DRAFT("State"),wherePrescribeMetaTemplate:DRAFT("Video visit, and prescriptions if {pet} needs them"),whereWellnessMeta:DRAFT("Wellness visit: advice and a care plan, no prescriptions yet"),whereAnotherState:DRAFT("Another state"),whereWhichState:DRAFT("Which state?"),whereLicensedTemplate:DRAFT("{vet} is licensed in {state}, so a prescription can be part of {pet}’s plan."),whereAskEveryTime:DRAFT("We ask every time: state rules require it."),issuesTitleTemplate:DRAFT("What’s going on with {pet}?"),issuesHint:DRAFT("Pick as many as you like."),issuesFormLabel:DRAFT("What’s going on"),issuesLegend:DRAFT("Main issues"),issuesPickOne:DRAFT("Pick at least one. Not sure? Choose Something else."),otherIssue:DRAFT("Something else"),describeHeadingTemplate:DRAFT("Tell {vet} what you’re seeing"),describeFieldLabel:DRAFT("What you’re seeing"),emergencyCheck:/* @__PURE__ */Object.freeze({titleTemplate:DRAFT("Is {pet} doing any of these right now?"),lead:DRAFT("A scheduled video visit isn’t the right place for an emergency."),signs:/* @__PURE__ */Object.freeze([DRAFT("Trouble breathing, or blue, grey or very pale gums"),DRAFT("Collapsed, or can’t stand up"),DRAFT("A seizure"),DRAFT("Ate something toxic, like grapes, chocolate, xylitol or medicine"),DRAFT("A swollen, hard belly, or retching with nothing coming up"),DRAFT("Bleeding that won’t stop"),DRAFT("Straining to pee with nothing coming out")]),formLabel:DRAFT("Emergency check"),legend:DRAFT("Any of these now?"),noneCta:DRAFT("No, none of these"),someCta:DRAFT("Yes, at least one")}),timeHeading:DRAFT("Pick a time"),timeMorning:DRAFT("Morning"),timeAfternoon:DRAFT("Afternoon"),timeEvening:DRAFT("Evening"),timeLegendTemplate:DRAFT("Time on {day}"),dayLegend:DRAFT("Day"),reviewHeading:DRAFT("Does this look right?"),summaryWhere:DRAFT("Where"),changeCta:DRAFT("Change"),whereAttestTemplate:DRAFT("{pet} and I will be in {state} during the visit."),attestBoth:DRAFT("Check both boxes to book the visit."),bookedStepLabel:DRAFT("Booked"),bookedTitleTemplate:DRAFT("You’re booked with {vet}"),bookedLeadTemplate:DRAFT("{when}, for {pet}."),footnote:DRAFT("Video visits are with a licensed veterinarian. Prescriptions where allowed, starting with California. In an emergency, go to the nearest emergency animal hospital."),rescheduleNavTitle:DRAFT("Change your visit"),close:DRAFT("Close"),continueCta:DRAFT("Continue"),petSelectTitle:DRAFT("Who is this visit for?"),addPetCta:DRAFT("Add a pet"),addAnotherPetCta:DRAFT("Add another pet"),locationUnknownTitle:DRAFT("We need your location to find a vet"),locationUnknownBody:DRAFT("Turn on location for Everfur, then try again."),locationUnknownCta:DRAFT("Allow location"),locationBlockedTitle:DRAFT("Location is turned off"),locationBlockedBody:DRAFT("Everfur needs your location to match you with a vet in your area."),locationBlockedCta:DRAFT("Open Settings"),locationUnavailableTitle:DRAFT("We could not read your location"),locationUnavailableBody:DRAFT("Try again in a moment."),stateAttestTemplate:DRAFT("I confirm my pet and I are in {state} right now."),describeHeading:DRAFT("Tell the vet what you are seeing"),describeHelpLong:DRAFT("When it started, what’s changed, what you’ve tried. Anything helps."),addPhotoCta:DRAFT("Add photos or videos"),addPhotoMeta:DRAFT("Optional. A close-up in good light helps."),removePhotoLabel:DRAFT("Remove photo"),summaryPet:DRAFT("Pet"),summaryVet:DRAFT("Vet"),summaryWhen:DRAFT("When"),summaryLength:DRAFT("Length"),summaryReason:DRAFT("About"),summaryLengthTemplate:DRAFT("{n} minutes"),confirmCta:DRAFT("Book the visit"),confirmBusy:DRAFT("Booking…"),bookedTitle:DRAFT("You are booked."),addToCalendarCta:DRAFT("Add to calendar"),doneCta:DRAFT("Done"),booked:/* @__PURE__ */Object.freeze({remindPromise:DRAFT("We will notify you 30 minutes before."),summaryPromise:DRAFT("{pet}'s summary goes to the vet ahead of the call."),recordsPromiseTemplate:DRAFT("{pet}’s records and your notes go to {vet} ahead of the call."),recordsPhotoPromiseTemplate:DRAFT("{pet}’s records, your notes and the photo go to {vet} ahead of the call."),stepsLabel:DRAFT("What happens next"),joinPromise:DRAFT("Join right here in the app. No links to hunt for."),backToPet:DRAFT("Back to {pet}"),calendarAdded:DRAFT("Added to your calendar"),calendarFailedBody:DRAFT("That did not save to your calendar.")}),chrome:/* @__PURE__ */Object.freeze({closeHint:DRAFT("Closes without saving"),discardTitle:DRAFT("Leave without booking?"),discardBody:DRAFT("Your answers will not be saved."),discardConfirmCta:DRAFT("Leave"),discardKeepCta:DRAFT("Keep going"),noPetsTitle:DRAFT("No pets on this account"),loadFailedTitle:DRAFT("Could not load"),retryCta:DRAFT("Try again")}),emergency:/* @__PURE__ */Object.freeze({bannerTitle:DRAFT("This can’t wait for a scheduled visit."),keepBookingCta:DRAFT("I’ve handled this, continue booking"),lede:DRAFT("What you’re describing is the kind of thing vets want to see in person, now. Call one of these first."),ledeWithoutExits:DRAFT("What you’re describing is the kind of thing vets want to see in person, now."),exitPrimaryVetTitle:DRAFT("Call {petName}’s regular vet"),exitFindErTitle:DRAFT("Find an emergency vet near you"),exitGoToErTitle:EMERGENCY_ER_LINE,startCallHint:DRAFT("Starts a phone call"),poisonControl:DRAFT("ASPCA Animal Poison Control"),poisonControlDetail:DRAFT("(888) 426-4435 · a fee may apply"),poisonControlTel:"tel:+18884264435"}),visit:/* @__PURE__ */Object.freeze({title:DRAFT("Your visit")}),loading:/* @__PURE__ */Object.freeze({pets:"Loading pets. Nothing to read yet.",clinicians:"Loading vets. Nothing to read yet.",slots:"Loading times. Nothing to read yet.",consult:"Loading your visit. Nothing to read yet.",progressTemplate:"Step {step} of {total}"})});function televetBookingCopyValues(node=TELEVET_BOOKING_COPY){return typeof node=="string"?[node]:typeof node!="object"||node===null?[]:Object.values(node).flatMap(v=>televetBookingCopyValues(v))}function isTelevetBookingCopyReady(){return televetBookingCopyValues().every(value=>value.trim().length>0&&!isPlaceholderCopy(value))}var CONTRACT_RETRYABILITY=/* @__PURE__ */Object.freeze([
6
6
  /* @__PURE__ */Object.freeze({wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false}),
7
7
  /* @__PURE__ */Object.freeze({wireCode:"AuthorizationException",envelope:"http_envelope",httpStatus:401,retryable:false}),
8
8
  /* @__PURE__ */Object.freeze({wireCode:"ConflictException",envelope:"http_envelope",httpStatus:409,retryable:true}),
@@ -201,18 +201,19 @@ return jsxRuntime.jsxs(reactNative.View,{style:styles2.root,testID:testID,childr
201
201
  /* @__PURE__ */jsxRuntime.jsx(reactNative.ScrollView,{style:styles2.gridScroll,contentContainerStyle:styles2.groups,showsVerticalScrollIndicator:false,children:groups(times,periodLabels).map(group=>/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:styles2.group,children:[group.label?/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"compact",style:styles2.period,accessibilityRole:"header",testID:`televet-slot-period-${group.key}`,children:group.label}):null,
202
202
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:styles2.grid,children:group.slots.map(slot=>{let index=times.indexOf(slot),busy=busySlotId===slot.slotId,blocked=busySlotId!==null,picked=selectedSlot?.slotId===slot.slotId,chipZone=mixedZones?zones[index]??"":"";/* @__PURE__ */
203
203
  return jsxRuntime.jsxs(reactNative.Pressable,{onPress:()=>onPick(slot),disabled:blocked,accessibilityRole:"button",accessibilityLabel:[formatClock(slot.startsAt),chipZone].filter(part=>part.length>0).join(" "),accessibilityState:{disabled:blocked,busy:busy,selected:picked},testID:`${rowTestIdPrefix}-${slot.slotId}`,style:({pressed:pressed})=>[styles2.chip,picked?styles2.chipPicked:null,busy?styles2.chipBusy:null,blocked&&!busy?styles2.chipDisabled:null,pressed&&!theme.motion.reducedMotion?styles2.chipPressed:null],children:[
204
- /* @__PURE__ */jsxRuntime.jsx(Text,{tier:"compact",style:[styles2.chipLabel,picked?styles2.chipLabelPicked:null,busy?styles2.chipLabelBusy:null],children:formatClock(slot.startsAt)}),chipZone.length>0?/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"compact",style:[styles2.chipZone,picked?styles2.chipLabelPicked:null,busy?styles2.chipLabelBusy:null],testID:`${rowTestIdPrefix}-${slot.slotId}-zone`,children:chipZone}):null]},slot.slotId)})})]},group.key))})]})}function groups(times,labels){return labels?["morning","afternoon","evening"].map(period=>({key:period,label:labels[period],slots:times.filter(s=>televetDayPeriod(s.startsAt)===period)})).filter(group=>group.slots.length>0):[{key:"all",label:null,slots:times}]}function firstOffered(days,keys){for(let key of keys)if(key!==null&&days.some(day=>day.key===key))return key;return null}function makeStyles6(theme){let{color:color,space:space,radius:radius,type:type}=theme,{size:size,lineHeight:lineHeight}=type,look=televetLook(theme),chip=theme.slots.chip,chipText=slotText(chip);return reactNative.StyleSheet.create({root:{flex:1,minHeight:0},groups:{gap:space.lg,paddingBottom:space.xl},group:{gap:space.sm},period:{...face(theme,"monoBold"),color:look.muted,fontSize:12,lineHeight:16,letterSpacing:.96,textTransform:"uppercase"},gridScroll:{flex:1},zone:{textAlign:"center",...face(theme,"mono"),color:color.text.muted,fontSize:size.tiny,lineHeight:size.tiny*lineHeight.normal,letterSpacing:.4,paddingVertical:space.md},grid:{flexDirection:"row",flexWrap:"wrap",gap:space.sm},chip:{minWidth:96,flexGrow:1,flexBasis:"auto",minHeight:44,borderRadius:radius.pill,borderWidth:1.5,borderColor:look.line,backgroundColor:look.surface,alignItems:"center",justifyContent:"center",paddingHorizontal:space.md,...slotBox(chip,1.5)},chipPicked:{borderColor:look.ink,backgroundColor:look.pink},chipLabelPicked:{color:look.onPink},chipPressed:{transform:[{scale:.95}]},chipBusy:{backgroundColor:color.primary,borderColor:color.primary},chipDisabled:{opacity:.45},chipLabel:{...face(theme,"bold"),color:look.ink,fontSize:size.bodyTight,lineHeight:size.bodyTight*lineHeight.snug,fontVariant:["tabular-nums"],...chipText},chipLabelBusy:{color:color.onPrimary},chipZone:{...face(theme,"mono"),color:color.text.muted,fontSize:size.tiny,lineHeight:size.tiny*lineHeight.normal,letterSpacing:.4,...chipText}})}function TelevetSummaryRow({label:label,value:value,last:last=false,action:action,testID:testID}){let theme=useEverfurTheme(),styles2=react.useMemo(()=>makeStyles7(theme),[theme]);/* @__PURE__ */
204
+ /* @__PURE__ */jsxRuntime.jsx(Text,{tier:"compact",style:[styles2.chipLabel,picked?styles2.chipLabelPicked:null,busy?styles2.chipLabelBusy:null],children:formatClock(slot.startsAt)}),chipZone.length>0?/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"compact",style:[styles2.chipZone,picked?styles2.chipLabelPicked:null,busy?styles2.chipLabelBusy:null],testID:`${rowTestIdPrefix}-${slot.slotId}-zone`,children:chipZone}):null]},slot.slotId)})})]},group.key))})]})}function groups(times,labels){return labels?["morning","afternoon","evening"].map(period=>({key:period,label:labels[period],slots:times.filter(s=>televetDayPeriod(s.startsAt)===period)})).filter(group=>group.slots.length>0):[{key:"all",label:null,slots:times}]}function firstOffered(days,keys){for(let key of keys)if(key!==null&&days.some(day=>day.key===key))return key;return null}function makeStyles6(theme){let{color:color,space:space,radius:radius,type:type}=theme,{size:size,lineHeight:lineHeight}=type,look=televetLook(theme),chip=theme.slots.chip,chipText=slotText(chip);return reactNative.StyleSheet.create({root:{flex:1,minHeight:0},groups:{gap:space.lg,paddingBottom:space.xl},group:{gap:space.sm},period:{...face(theme,"monoBold"),color:look.muted,fontSize:12,lineHeight:16,letterSpacing:.96,textTransform:"uppercase"},gridScroll:{flex:1},zone:{textAlign:"center",...face(theme,"mono"),color:color.text.muted,fontSize:size.tiny,lineHeight:size.tiny*lineHeight.normal,letterSpacing:.4,paddingVertical:space.md},grid:{flexDirection:"row",flexWrap:"wrap",gap:space.sm},chip:{minWidth:96,flexGrow:1,flexBasis:"auto",minHeight:44,borderRadius:radius.pill,borderWidth:1.5,borderColor:look.line,backgroundColor:look.surface,alignItems:"center",justifyContent:"center",paddingHorizontal:space.md,...slotBox(chip,1.5)},chipPicked:{borderColor:look.ink,backgroundColor:look.pink},chipLabelPicked:{color:look.onPink},chipPressed:{transform:[{scale:.95}]},chipBusy:{backgroundColor:color.primary,borderColor:color.primary},chipDisabled:{opacity:.45},chipLabel:{...face(theme,"bold"),color:look.ink,fontSize:size.bodyTight,lineHeight:size.bodyTight*lineHeight.snug,fontVariant:["tabular-nums"],...chipText},chipLabelBusy:{color:color.onPrimary},chipZone:{...face(theme,"mono"),color:color.text.muted,fontSize:size.tiny,lineHeight:size.tiny*lineHeight.normal,letterSpacing:.4,...chipText}})}function TelevetSummaryRow({label:label,value:value,last:last=false,action:action,note:note,testID:testID}){let theme=useEverfurTheme(),styles2=react.useMemo(()=>makeStyles7(theme),[theme]);/* @__PURE__ */
205
205
  return jsxRuntime.jsxs(reactNative.View,{style:[styles2.row,last?styles2.rowLast:null],testID:testID,children:[
206
- /* @__PURE__ */jsxRuntime.jsx(Text,{style:styles2.rowLabel,children:label}),
207
- /* @__PURE__ */jsxRuntime.jsx(Text,{style:styles2.rowValue,children:value}),action??null]})}function TelevetConsentCheckbox({label:label,checked:checked,onToggle:onToggle,testID:testID}){let theme=useEverfurTheme(),styles2=react.useMemo(()=>makeStyles7(theme),[theme]);/* @__PURE__ */
206
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:styles2.rowLabel,children:label}),note?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:styles2.rowValueStack,children:[
207
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:[styles2.rowValue,styles2.rowValueStacked],children:value}),
208
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:styles2.rowNote,testID:testID?`${testID}-note`:void 0,children:note})]}):/* @__PURE__ */jsxRuntime.jsx(Text,{style:styles2.rowValue,children:value}),action??null]})}function TelevetConsentCheckbox({label:label,checked:checked,onToggle:onToggle,testID:testID}){let theme=useEverfurTheme(),styles2=react.useMemo(()=>makeStyles7(theme),[theme]);/* @__PURE__ */
208
209
  return jsxRuntime.jsxs(reactNative.Pressable,{onPress:()=>onToggle(!checked),accessibilityRole:"checkbox",accessibilityLabel:label,accessibilityState:{checked:checked},testID:testID,style:styles2.consent,children:[
209
210
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:[styles2.box,checked?styles2.boxChecked:null],children:checked?/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"badge",style:styles2.tick,children:TICK}):null}),
210
211
  /* @__PURE__ */jsxRuntime.jsx(Text,{style:styles2.consentLabel,children:label})]})}var TICK="✓";function TelevetSummaryCard({children:children,testID:testID}){let theme=useEverfurTheme(),styles2=react.useMemo(()=>makeStyles7(theme),[theme]);/* @__PURE__ */
211
- return jsxRuntime.jsx(reactNative.View,{style:styles2.card,testID:testID,children:children})}function makeStyles7(theme){let{color:color,space:space,radius:radius,type:type}=theme,{size:size,lineHeight:lineHeight}=type,cardText=slotText(theme.slots.card);return reactNative.StyleSheet.create({card:{borderRadius:radius.lg,borderWidth:1,borderColor:color.borderRingCream,backgroundColor:color.surface,paddingHorizontal:space.lg,...slotBox(theme.slots.card,1)},row:{flexDirection:"row",alignItems:"center",gap:space.md,minHeight:48,paddingVertical:space.md,borderBottomWidth:1,borderBottomColor:color.borderRingCream},rowLast:{borderBottomWidth:0},rowLabel:{width:64,...face(theme,"regular"),color:color.text.muted,fontSize:size.bodyTight,lineHeight:size.bodyTight*lineHeight.normal,...cardText},rowValue:{flex:1,...face(theme,"bold"),color:color.brandInk,fontSize:size.bodyTight,lineHeight:size.bodyTight*lineHeight.normal,...cardText},consent:{flexDirection:"row",alignItems:"flex-start",gap:space.md,minHeight:MIN_TOUCH_TARGET,paddingVertical:14,paddingHorizontal:space.lg,borderRadius:radius.sm,backgroundColor:color.surfaceSubtle},box:{width:22,height:22,borderRadius:radius.xs,borderWidth:1.5,borderColor:color.brandInk,backgroundColor:color.surface,alignItems:"center",justifyContent:"center"},boxChecked:{backgroundColor:color.primary,borderColor:color.primary},tick:{...face(theme,"bold"),color:color.onPrimary,fontSize:size.caption,lineHeight:size.caption,includeFontPadding:false},consentLabel:{flex:1,...face(theme,"regular"),color:color.text.primary,fontSize:size.bodyTight,lineHeight:size.bodyTight*lineHeight.relaxed}})}function ReviewStep({when:when,onChangeWhen:onChangeWhen,stateName:stateName,about:about,lengthMinutes:lengthMinutes,clinician:clinician,petName:petName,reason:reason,shareRecords:shareRecords,onToggleShare:onToggleShare,stateCode:stateCode,stateAttested:stateAttested,onToggleStateAttest:onToggleStateAttest,cancellationTerms:cancellationTerms,termsAttested:termsAttested,onToggleTermsAttest:onToggleTermsAttest,canConfirm:ready,busy:busy,failure:failure2,onConfirm:onConfirm,emergency:emergency,onAcknowledgeEmergency:onAcknowledgeEmergency,onSeeOtherVets:onSeeOtherVets,mediaShortfall:mediaShortfall=NO_MEDIA_SHORTFALL,primaryVet:primaryVet,onFindEmergencyVet:onFindEmergencyVet}){let styles2=useBookingStyles(),theme=useEverfurTheme(),local=react.useMemo(()=>makeLocalStyles(theme),[theme]),place=stateName??stateCode??"",attestLabel=petName?fill(TELEVET_BOOKING_COPY.whereAttestTemplate,{pet:petName,state:place}):fill(TELEVET_BOOKING_COPY.stateAttestTemplate,{state:place}),aboutLine=about??reason,emergencyLede=TELEVET_BOOKING_COPY.emergency.lede;/* @__PURE__ */
212
+ return jsxRuntime.jsx(reactNative.View,{style:styles2.card,testID:testID,children:children})}function makeStyles7(theme){let{color:color,space:space,radius:radius,type:type}=theme,{size:size,lineHeight:lineHeight}=type,cardText=slotText(theme.slots.card);return reactNative.StyleSheet.create({card:{borderRadius:radius.lg,borderWidth:1,borderColor:color.borderRingCream,backgroundColor:color.surface,paddingHorizontal:space.lg,...slotBox(theme.slots.card,1)},row:{flexDirection:"row",alignItems:"center",gap:space.md,minHeight:48,paddingVertical:space.md,borderBottomWidth:1,borderBottomColor:color.borderRingCream},rowLast:{borderBottomWidth:0},rowLabel:{width:64,...face(theme,"regular"),color:color.text.muted,fontSize:size.bodyTight,lineHeight:size.bodyTight*lineHeight.normal,...cardText},rowValue:{flex:1,...face(theme,"bold"),color:color.brandInk,fontSize:size.bodyTight,lineHeight:size.bodyTight*lineHeight.normal,...cardText},rowValueStack:{flex:1,gap:2},rowValueStacked:{flex:0},rowNote:{...face(theme,"regular"),color:color.text.muted,fontSize:size.caption,lineHeight:size.caption*lineHeight.normal,...cardText},consent:{flexDirection:"row",alignItems:"flex-start",gap:space.md,minHeight:MIN_TOUCH_TARGET,paddingVertical:14,paddingHorizontal:space.lg,borderRadius:radius.sm,backgroundColor:color.surfaceSubtle},box:{width:22,height:22,borderRadius:radius.xs,borderWidth:1.5,borderColor:color.brandInk,backgroundColor:color.surface,alignItems:"center",justifyContent:"center"},boxChecked:{backgroundColor:color.primary,borderColor:color.primary},tick:{...face(theme,"bold"),color:color.onPrimary,fontSize:size.caption,lineHeight:size.caption,includeFontPadding:false},consentLabel:{flex:1,...face(theme,"regular"),color:color.text.primary,fontSize:size.bodyTight,lineHeight:size.bodyTight*lineHeight.relaxed}})}function ReviewStep({when:when,onChangeWhen:onChangeWhen,stateName:stateName,about:about,lengthMinutes:lengthMinutes,clinician:clinician,clinicianRole:clinicianRole,petName:petName,reason:reason,shareRecords:shareRecords,onToggleShare:onToggleShare,stateCode:stateCode,stateAttested:stateAttested,onToggleStateAttest:onToggleStateAttest,cancellationTerms:cancellationTerms,termsAttested:termsAttested,onToggleTermsAttest:onToggleTermsAttest,canConfirm:ready,busy:busy,failure:failure2,onConfirm:onConfirm,emergency:emergency,onAcknowledgeEmergency:onAcknowledgeEmergency,onSeeOtherVets:onSeeOtherVets,mediaShortfall:mediaShortfall=NO_MEDIA_SHORTFALL,primaryVet:primaryVet,onFindEmergencyVet:onFindEmergencyVet}){let styles2=useBookingStyles(),theme=useEverfurTheme(),local=react.useMemo(()=>makeLocalStyles(theme),[theme]),place=stateName??stateCode??"",attestLabel=petName?fill(TELEVET_BOOKING_COPY.whereAttestTemplate,{pet:petName,state:place}):fill(TELEVET_BOOKING_COPY.stateAttestTemplate,{state:place}),aboutLine=about??reason,emergencyLede=TELEVET_BOOKING_COPY.emergency.lede;/* @__PURE__ */
212
213
  return jsxRuntime.jsxs(reactNative.View,{style:styles2.scrollRoot,testID:"televet-booking-review",children:[
213
214
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.ScrollView,{style:styles2.scrollBody,contentContainerStyle:local.body,keyboardShouldPersistTaps:"handled",showsVerticalScrollIndicator:false,testID:"televet-booking-review-scroll",children:[
214
215
  /* @__PURE__ */jsxRuntime.jsx(Text,{tier:"heading",style:styles2.stepTitle,accessibilityRole:"header",children:TELEVET_BOOKING_COPY.reviewHeading}),
215
- /* @__PURE__ */jsxRuntime.jsxs(TelevetSummaryCard,{testID:"televet-review-summary",children:[petName?/* @__PURE__ */jsxRuntime.jsx(TelevetSummaryRow,{label:TELEVET_BOOKING_COPY.summaryPet,value:petName,testID:"televet-review-row-pet"}):null,clinician?/* @__PURE__ */jsxRuntime.jsx(TelevetSummaryRow,{label:TELEVET_BOOKING_COPY.summaryVet,value:clinician,testID:"televet-review-row-vet"}):null,
216
+ /* @__PURE__ */jsxRuntime.jsxs(TelevetSummaryCard,{testID:"televet-review-summary",children:[petName?/* @__PURE__ */jsxRuntime.jsx(TelevetSummaryRow,{label:TELEVET_BOOKING_COPY.summaryPet,value:petName,testID:"televet-review-row-pet"}):null,clinician?/* @__PURE__ */jsxRuntime.jsx(TelevetSummaryRow,{label:TELEVET_BOOKING_COPY.summaryVet,value:clinicianRole==="vet_tech"?`${clinician} · ${TELEVET_BOOKING_COPY.vetTechRoleLabel}`:clinician,note:clinicianRole==="vet_tech"?TELEVET_BOOKING_COPY.vetTechNoRxLine:null,testID:"televet-review-row-vet"}):null,
216
217
  /* @__PURE__ */jsxRuntime.jsx(TelevetSummaryRow,{label:TELEVET_BOOKING_COPY.summaryWhen,value:when,testID:"televet-review-row-when",action:onChangeWhen?/* @__PURE__ */jsxRuntime.jsx(TelevetButton,{label:TELEVET_BOOKING_COPY.changeCta,kind:"quiet",fullWidth:false,onPress:onChangeWhen,testID:"televet-review-change-when"}):null}),
217
218
  /* @__PURE__ */jsxRuntime.jsx(TelevetSummaryRow,{label:TELEVET_BOOKING_COPY.summaryLength,value:fill(TELEVET_BOOKING_COPY.summaryLengthTemplate,{n:String(lengthMinutes)}),testID:"televet-review-row-length"}),place?/* @__PURE__ */jsxRuntime.jsx(TelevetSummaryRow,{label:TELEVET_BOOKING_COPY.summaryWhere,value:place,testID:"televet-review-row-where"}):null,aboutLine?/* @__PURE__ */jsxRuntime.jsx(TelevetSummaryRow,{label:TELEVET_BOOKING_COPY.summaryReason,value:aboutLine,last:true,testID:"televet-review-row-reason"}):null]}),stateCode?/* @__PURE__ */jsxRuntime.jsx(TelevetConsentCheckbox,{label:attestLabel,checked:stateAttested,onToggle:onToggleStateAttest,testID:"televet-review-state-attest"}):null,cancellationTerms?/* @__PURE__ */jsxRuntime.jsx(TelevetConsentCheckbox,{label:cancellationTerms,checked:termsAttested,onToggle:onToggleTermsAttest,testID:"televet-review-terms-attest"}):null,
218
219
  /* @__PURE__ */jsxRuntime.jsx(TelevetConsentCheckbox,{label:TELEVET_BOOKING_COPY.shareRecordsOff,checked:shareRecords,onToggle:onToggleShare,testID:"televet-review-share-records"}),
@@ -234,10 +235,10 @@ return jsxRuntime.jsxs(reactNative.Pressable,{onPress:onPress,accessibilityRole:
234
235
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:local.choices,accessibilityRole:"radiogroup",testID:"televet-pets",children:pets.map(pet=>/* @__PURE__ */jsxRuntime.jsx(TelevetChoiceRow,{title:pet.name??"",meta:formatTelevetPetMetaLine(pet),selected:selectedId===pet.petRef,onPress:()=>onSelect(pet.petRef),testID:`televet-pet-${pet.petRef}`,leading:/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:local.petDisc,children:/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"compact",style:local.petDiscGlyph,children:initialOf(pet.name??"")})})},pet.petRef))}),onAddPet?/* @__PURE__ */jsxRuntime.jsx(TelevetButton,{label:TELEVET_BOOKING_COPY.addAnotherPetCta,kind:"quiet",fullWidth:false,onPress:onAddPet,testID:"televet-pet-add"}):null]})}function initialOf(name){let trimmed=name.trim();return trimmed.length===0?PERSON_GLYPH:trimmed.slice(0,1).toUpperCase()}function ClinicianStep({clinicians:clinicians,isPending:isPending,isError:isError,error:error,selectedId:selectedId,stateCode:stateCode,stateName:stateName,onSelect:onSelect,onRetry:onRetry}){let styles2=useBookingStyles(),theme=useEverfurTheme(),local=react.useMemo(()=>makeLocalStyles(theme),[theme]);if(isPending)/* @__PURE__ */
235
236
  return jsxRuntime.jsx(reactNative.View,{style:styles2.list,testID:"televet-clinicians-loading",children:/* @__PURE__ */jsxRuntime.jsx(TelevetSkeletonBlock,{height:220})});if(isError)/* @__PURE__ */
236
237
  return jsxRuntime.jsx(reactNative.View,{testID:"televet-clinicians-error",children:/* @__PURE__ */jsxRuntime.jsx(TelevetLoadFailed,{error:error,title:TELEVET_BOOKING_COPY.chrome.loadFailedTitle,actionLabel:TELEVET_BOOKING_COPY.chrome.retryCta,onRetry:onRetry})});if(clinicians.length===0)/* @__PURE__ */
237
- return jsxRuntime.jsx(reactNative.View,{testID:"televet-clinicians-empty",children:/* @__PURE__ */jsxRuntime.jsx(TelevetStateCard,{title:TELEVET_BOOKING_COPY.noCliniciansTitle,message:TELEVET_BOOKING_COPY.noCliniciansBody,actionLabel:TELEVET_BOOKING_COPY.noCliniciansRetryCta,onAction:onRetry})});let vet=clinicians.find(c=>c.clinicianId===selectedId)??clinicians[0];if(vet===void 0)return null;let code=stateCode?.trim().toUpperCase()??"",licensedHere=code.length>0&&vet.licensedStates.some(l=>l.state.trim().toUpperCase()===code);/* @__PURE__ */
238
+ return jsxRuntime.jsx(reactNative.View,{testID:"televet-clinicians-empty",children:/* @__PURE__ */jsxRuntime.jsx(TelevetStateCard,{title:TELEVET_BOOKING_COPY.noCliniciansTitle,message:TELEVET_BOOKING_COPY.noCliniciansBody,actionLabel:TELEVET_BOOKING_COPY.noCliniciansRetryCta,onAction:onRetry})});let vet=clinicians.find(c=>c.clinicianId===selectedId)??clinicians[0];if(vet===void 0)return null;let code=stateCode?.trim().toUpperCase()??"",licensedHere=code.length>0&&vet.licensedStates.some(l=>l.state.trim().toUpperCase()===code),isTech=vet.role==="vet_tech";/* @__PURE__ */
238
239
  return jsxRuntime.jsx(TelevetStepFrame,{heading:TELEVET_BOOKING_COPY.yourVetTitle,testID:"televet-clinicians",footer:/* @__PURE__ */jsxRuntime.jsx(TelevetButton,{label:TELEVET_BOOKING_COPY.continueCta,kind:"primary",onPress:()=>onSelect(vet.clinicianId),testID:`televet-clinician-${vet.clinicianId}`}),children:/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:local.meet,children:[
239
240
  /* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:local.vetAvatar,children:/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"heading",style:local.vetAvatarText,children:clinicianInitial(vet.displayName)||PERSON_GLYPH})}),
240
- /* @__PURE__ */jsxRuntime.jsx(Text,{style:local.vetName,children:vet.credentials?`${vet.displayName}, ${vet.credentials}`:vet.displayName}),licensedHere&&stateName?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:local.pill,testID:"televet-vet-licensed",children:/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"badge",style:local.pillText,children:fill(TELEVET_BOOKING_COPY.licensedPillTemplate,{state:stateName})})}):null,vet.rating!==null&&vet.ratingCount!==null?/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"compact",style:local.vetRating,testID:"televet-vet-rating",children:`★ ${String(vet.rating)} · ${String(vet.ratingCount)} ${TELEVET_BOOKING_COPY.reviewsLabel}`}):null,vet.bio?/* @__PURE__ */jsxRuntime.jsx(Text,{style:local.vetBio,testID:"televet-vet-bio",children:vet.bio}):null]})})}function SlotStep({slots:slots,enabled:enabled,isPending:isPending,isError:isError,error:error,busySlotId:busySlotId,failure:failure2,selectedSlot:selectedSlot,nextOpening:nextOpening,onPick:onPick,onRetry:onRetry,onSeeOtherVets:onSeeOtherVets}){let styles2=useBookingStyles();return enabled?isPending?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:styles2.list,testID:"televet-slots-loading",children:[0,1,2].map(i=>/* @__PURE__ */jsxRuntime.jsx(TelevetSkeletonBlock,{height:48},i))}):isError?/* @__PURE__ */jsxRuntime.jsx(TelevetLoadFailed,{error:error,title:TELEVET_BOOKING_COPY.slotsErrorTitle,actionLabel:TELEVET_BOOKING_COPY.retryCta,onRetry:onRetry,testID:"televet-slots-error"}):slots.length===0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{testID:"televet-slots-empty",children:/* @__PURE__ */jsxRuntime.jsx(TelevetStateCard,{title:TELEVET_BOOKING_COPY.noSlotsTitle,message:nextOpening?fill(TELEVET_BOOKING_COPY.nextOpeningTemplate,{when:formatWhenWithDay(nextOpening.startsAt)}):void 0,actionLabel:nextOpening?TELEVET_BOOKING_COPY.seeOtherVetsCta:void 0,onAction:nextOpening?onSeeOtherVets:void 0})}):
241
+ /* @__PURE__ */jsxRuntime.jsx(Text,{style:local.vetName,children:vet.credentials?`${vet.displayName}, ${vet.credentials}`:vet.displayName}),isTech?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:local.pill,testID:"televet-vet-role",children:/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"badge",style:local.pillText,children:TELEVET_BOOKING_COPY.vetTechRoleLabel})}):null,licensedHere&&stateName?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:local.pill,testID:"televet-vet-licensed",children:/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"badge",style:local.pillText,children:fill(TELEVET_BOOKING_COPY.licensedPillTemplate,{state:stateName})})}):null,isTech?/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"compact",style:local.vetRating,testID:"televet-vet-no-rx",children:TELEVET_BOOKING_COPY.vetTechNoRxLine}):null,vet.rating!==null&&vet.ratingCount!==null?/* @__PURE__ */jsxRuntime.jsx(Text,{tier:"compact",style:local.vetRating,testID:"televet-vet-rating",children:`★ ${String(vet.rating)} · ${String(vet.ratingCount)} ${TELEVET_BOOKING_COPY.reviewsLabel}`}):null,vet.bio?/* @__PURE__ */jsxRuntime.jsx(Text,{style:local.vetBio,testID:"televet-vet-bio",children:vet.bio}):null]})})}function SlotStep({slots:slots,enabled:enabled,isPending:isPending,isError:isError,error:error,busySlotId:busySlotId,failure:failure2,selectedSlot:selectedSlot,nextOpening:nextOpening,onPick:onPick,onRetry:onRetry,onSeeOtherVets:onSeeOtherVets}){let styles2=useBookingStyles();return enabled?isPending?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:styles2.list,testID:"televet-slots-loading",children:[0,1,2].map(i=>/* @__PURE__ */jsxRuntime.jsx(TelevetSkeletonBlock,{height:48},i))}):isError?/* @__PURE__ */jsxRuntime.jsx(TelevetLoadFailed,{error:error,title:TELEVET_BOOKING_COPY.slotsErrorTitle,actionLabel:TELEVET_BOOKING_COPY.retryCta,onRetry:onRetry,testID:"televet-slots-error"}):slots.length===0?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{testID:"televet-slots-empty",children:/* @__PURE__ */jsxRuntime.jsx(TelevetStateCard,{title:TELEVET_BOOKING_COPY.noSlotsTitle,message:nextOpening?fill(TELEVET_BOOKING_COPY.nextOpeningTemplate,{when:formatWhenWithDay(nextOpening.startsAt)}):void 0,actionLabel:nextOpening?TELEVET_BOOKING_COPY.seeOtherVetsCta:void 0,onAction:nextOpening?onSeeOtherVets:void 0})}):
241
242
  /* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:styles2.stepFillBox,testID:"televet-slots",children:[
242
243
  /* @__PURE__ */jsxRuntime.jsx(Text,{tier:"heading",style:styles2.stepTitle,accessibilityRole:"header",children:TELEVET_BOOKING_COPY.timeHeading}),failure2==="expired"?/* @__PURE__ */jsxRuntime.jsx(TelevetFailureLine,{message:TELEVET_BOOKING_COPY.holdExpired}):null,failure2==="taken"?/* @__PURE__ */jsxRuntime.jsx(TelevetFailureLine,{message:TELEVET_BOOKING_COPY.slotTaken}):null,failure2==="failed"||failure2==="rate_limited"?/* @__PURE__ */jsxRuntime.jsx(TelevetFailureLine,{message:TELEVET_BOOKING_COPY.confirmFailed,testID:"televet-slots-hold-failed"}):null,
243
244
  /* @__PURE__ */jsxRuntime.jsx(TelevetSlotPicker,{slots:slots,busySlotId:busySlotId,onPick:onPick,selectedSlot:selectedSlot,periodLabels:{morning:TELEVET_BOOKING_COPY.timeMorning,afternoon:TELEVET_BOOKING_COPY.timeAfternoon,evening:TELEVET_BOOKING_COPY.timeEvening}})]}):/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{testID:"televet-slots-unavailable",children:/* @__PURE__ */jsxRuntime.jsx(TelevetStateCard,{title:TELEVET_BOOKING_COPY.bookingPausedTitle})})}function ReasonStep({value:value,composed:composed,vetName:vetName,onChange:onChange,onNext:onNext,media:media,onChangeMedia:onChangeMedia,onPickMedia:onPickMedia,mediaLive:mediaLive=false,checking:checking=false}){let theme=useEverfurTheme(),local=react.useMemo(()=>makeLocalStyles(theme),[theme]),trimmed=(composed??value).trim(),valid=trimmed.length>0&&trimmed.length<=REASON_TEXT_MAX,heading=vetName?fill(TELEVET_BOOKING_COPY.describeHeadingTemplate,{vet:vetName}):TELEVET_BOOKING_COPY.describeHeading;/* @__PURE__ */
@@ -271,7 +272,7 @@ return jsxRuntime.jsxs(TelevetStepFrame,{heading:fill(check.titleTemplate,{pet:p
271
272
  /* @__PURE__ */jsxRuntime.jsx(Text,{style:local.emergencyLede,children:lede}),
272
273
  /* @__PURE__ */jsxRuntime.jsx(TelevetEmergencyExits,{petName:petName,primaryVet:primaryVet,onFindEmergencyVet:onFindEmergencyVet}),
273
274
  /* @__PURE__ */jsxRuntime.jsx(TelevetButton,{label:TELEVET_BOOKING_COPY.emergency.keepBookingCta,kind:"quiet",fullWidth:false,onPress:onHandled,testID:"televet-emergency-handled"})]}):null]})}function makePickStyles(theme){let{space:space,radius:radius,type:type}=theme,{size:size,lineHeight:lineHeight}=type,look=televetLook(theme),chip=theme.slots.chip;return reactNative.StyleSheet.create({pickRow:{flexDirection:"row",flexWrap:"wrap",gap:10},pick:{minHeight:44,flexDirection:"row",alignItems:"center",gap:space.sm,paddingHorizontal:space.lg,borderRadius:radius.pill,borderWidth:1,borderColor:look.ink,backgroundColor:look.surface,...slotBox(chip,1)},pickOn:{backgroundColor:look.pink,borderColor:look.ink},pressed:{transform:[{scale:.97}]},check:{width:12,height:7,marginTop:-3,borderLeftWidth:2,borderBottomWidth:2,borderColor:look.onPink,transform:[{rotate:"-45deg"}]},pickLabel:{...face(theme,"bold"),color:look.ink,fontSize:size.bodyTight,lineHeight:size.bodyTight*lineHeight.snug,...slotText(chip)},pickLabelOn:{color:look.onPink},note:{...face(theme,"regular"),color:look.muted,fontSize:size.bodyTight,lineHeight:size.bodyTight*lineHeight.relaxed},callout:{padding:space.md,borderRadius:radius.sm,backgroundColor:look.mist,overflow:"hidden",...face(theme,"regular"),color:look.text,fontSize:size.bodyTight,lineHeight:size.bodyTight*lineHeight.relaxed},signs:{gap:space.sm},sign:{flexDirection:"row",gap:space.md,alignItems:"flex-start"},bullet:{width:6,height:6,borderRadius:3,backgroundColor:look.text,marginTop:size.body*.6},signText:{flex:1,...face(theme,"regular"),color:look.text,fontSize:size.body,lineHeight:size.body*lineHeight.relaxed}})}function EverfurTelevetBooking(props){let{petRef:petRef,usState:usState,controller:injected,onBooked:onBooked,onExit:onExit,onAddPet:onAddPet,onPickMedia:onPickMedia,onAddToCalendar:onAddToCalendar,onConfirmDiscard:onConfirmDiscard,onRequestLocation:onRequestLocation,locationStatus:locationStatus="unknown",onTriageReason:onTriageReason,onStateInterest:onStateInterest,primaryVet:primaryVet,onFindEmergencyVet:onFindEmergencyVet,canJoinInApp:canJoinInApp=false,renderUnavailable:renderUnavailable,style:style,testID:testID}=guardHostProps(props,["onBooked","onExit","onAddPet","onRequestLocation","onFindEmergencyVet"]),styles2=useBookingStyles(),theme=useEverfurTheme(),local=react.useMemo(()=>makeLocalStyles(theme),[theme]),controller=useTelevetBookingController(injected),roster=useEverfurPets(),pets=roster.pets,ownedPetCount=pets.length,ctx=react.useMemo(()=>({ownedPetCount:ownedPetCount,withIssues:true}),[ownedPetCount]),[state,rawDispatch]=react.useReducer((s,a)=>televetBookingReducer(s,a,ctx),void 0,()=>initialTelevetBookingState({ownedPetCount:0,withIssues:true},{petId:petRef??null,state:usState??null})),dispatch=react.useCallback(action=>rawDispatch(action),[]),[reasonText,setReasonText]=react.useState(""),[failure2,setFailure]=react.useState(null),[emergency,setEmergency]=react.useState(null),[stateAttested,setStateAttested]=react.useState(false),[termsAttested,setTermsAttested]=react.useState(false),[media,setMedia]=react.useState([]),mediaTransport=react.useMemo(()=>createRnChatAttachmentTransport(),[]),sendMedia=useTelevetBookingMedia({media:media,controller:controller,transport:mediaTransport}),[bookedConsult,setBookedConsult]=react.useState(null),{draft:draft}=state,step=currentStep(state),attestedFor=react.useRef(draft.state);attestedFor.current!==draft.state&&(attestedFor.current=draft.state,stateAttested&&setStateAttested(false),termsAttested&&setTermsAttested(false));let policy=useTelevetStatePolicy(draft.state,controller),cancellation=useTelevetCancellationPolicy(controller),entitlement=useTelevetBookingEntitlement(controller),rosterController=useTelevetRosterController(controller,entitlement),clinicians=useTelevetClinicians(draft.state,rosterController),slots=useTelevetSlots(draft.clinicianId,rosterController),refetchSlots=slots.refetch,nextOpening=useTelevetNextSlot(rosterController).data??null,hold=useTelevetHoldSlot(controller),book=useTelevetBookConsult(controller),controllerTriage=react.useMemo(()=>televetTriageReadFrom(controller),[controller]),triage=useEarlyTriage(onTriageReason??controllerTriage),noLicensedVetInterest=useStateInterest(draft.state,onStateInterest??null).actionFor("no_licensed_vet"),hostState=usState??null,petName=nameOf(pets,draft.petId),intake=useTelevetBookingIntake({reasonText:reasonText,state:draft.state,hostState:hostState,clinicianId:draft.clinicianId,clinicians:clinicians.data,policy:policy,petName:petName,controller:controller,dispatch:dispatch}),{composedReason:composedReason,where:where,matchedClinician:matchedClinician}=intake;react.useEffect(()=>{hostState&&!draft.state&&!intake.whereTouched.current&&dispatch({type:"patch",patch:{state:hostState}})},[hostState,draft.state,dispatch]),react.useEffect(()=>{petRef&&!draft.petId&&dispatch({type:"patch",patch:{petId:petRef}})},[petRef,draft.petId,dispatch]);let lonePetRef=pets.length===1?pets[0]?.petRef??null:null;react.useEffect(()=>{lonePetRef&&!draft.petId&&dispatch({type:"patch",patch:{petId:lonePetRef}})},[lonePetRef,draft.petId,dispatch]);let stepRef=react.useRef(step);stepRef.current=step;let petIdRef=react.useRef(draft.petId);petIdRef.current=draft.petId;let settledCount=react.useRef(0);react.useEffect(()=>{if(ownedPetCount===settledCount.current)return;settledCount.current=ownedPetCount;let needsPet=ownedPetCount>1&&!petIdRef.current;dispatch({type:"goTo",step:needsPet?"pet":stepRef.current})},[ownedPetCount,dispatch]);let matchedClinicianId=clinicians.data?.[0]?.clinicianId??null;react.useEffect(()=>{matchedClinicianId&&!draft.clinicianId&&dispatch({type:"patch",patch:{clinicianId:matchedClinicianId}})},[matchedClinicianId,draft.clinicianId,dispatch]);let holdAndAdvance=useSlotHold({draft:draft,hold:hold,dispatch:dispatch,setFailure:setFailure,refetchSlots:refetchSlots});useHoldRelease({controller:controller,draft:draft,keep:step==="booked"||book.isPending});let{submitBooking:submitBooking,confirm:confirm}=useBookingSubmit({draft:draft,reasonText:composedReason,book:book,stateAttested:stateAttested,termsAttested:termsAttested,cancellationPolicy:cancellation.data??null,triage:triage,goTo:react.useCallback(next=>dispatch({type:"goTo",step:next}),[dispatch]),releaseSlot:react.useCallback(()=>{dispatch({type:"patch",patch:RELEASED_HOLD}),refetchSlots()},[dispatch,refetchSlots]),setFailure:setFailure,setEmergency:setEmergency,setBookedConsult:setBookedConsult,...onBooked?{onBooked:onBooked}:{},media:sendMedia}),policyBlocked=policy.enabled&&policy.data!==null&&!policy.data.wellnessAvailable&&step!=="pet"&&step!=="where",notEntitled=entitlement.enabled&&entitlement.data?.active===false||failure2==="not_entitled",{simulate:simulate,fundingRefused:fundingRefused}=useTelevetSimulatorRoute(entitlement,notEntitled),surfaceServed=entitlement.enabled&&entitlement.data!==null,emptyRosterCause=televetEmptyRosterCause(surfaceServed),isDirty=composedReason.trim().length>0||!!draft.slot,surfaceUnavailable=controller===null||failure2==="unavailable"||televetReadIsDark(entitlement)||televetReadIsDark(policy),clinicianState={noState:!draft.state,isPending:clinicians.enabled&&clinicians.isPending,isError:clinicians.isError,isEmpty:(clinicians.data?.length??0)===0,notEntitled:fundingRefused},clinicianOutcome=televetClinicianOutcomeApplies(clinicianState),gateState={surfaceUnavailable:surfaceUnavailable,notEntitled:fundingRefused,policyBlocked:policyBlocked,triageOpen:triage.open,step:step},gated=televetBookingGateApplies(gateState);return isTelevetBookingCopyReady()?/* @__PURE__ */jsxRuntime.jsxs(reactNative.View,{style:[styles2.screen,style],testID:testID??"televet-booking",children:[
274
- /* @__PURE__ */jsxRuntime.jsx(TelevetBookingChrome,{step:step,furthestIndex:state.furthestIndex,canGoBack:!simulate&&(triage.open||hasPreviousStep(state,ctx))&&step!=="booked",isDirty:isDirty,onBack:()=>{if(triage.open){triage.close();return}triage.cancel(),dispatch({type:"back"})},onClose:()=>onExit?.(),triageOpen:triage.open,stepContext:ctx,...onConfirmDiscard?{onConfirmDiscard:onConfirmDiscard}:{}}),simulate?/* @__PURE__ */jsxRuntime.jsx(TelevetVisitSimulator,{petId:draft.petId,roster:roster,onAddPet:onAddPet,onPickPet:petId=>dispatch({type:"patch",patch:{petId:petId}})}):gated?/* @__PURE__ */jsxRuntime.jsx(TelevetBookingGate,{state:gateState,petName:nameOf(pets,draft.petId),...primaryVet?{primaryVet:primaryVet}:{},onFindEmergencyVet:onFindEmergencyVet,stateInterest:noLicensedVetInterest,...onStateInterest?{onCheckAvailability:()=>dispatch({type:"goTo",step:"clinician"})}:{},onAcknowledgeEmergency:()=>{triage.acknowledge(composedReason),dispatch({type:"next"})},...renderUnavailable?{renderUnavailable:renderUnavailable}:{}}):step==="time"?/* @__PURE__ */jsxRuntime.jsx(SlotStep,{slots:slots.data??[],enabled:slots.enabled,isPending:slots.enabled&&slots.isPending&&slots.data===null,isError:slots.isError,error:slots.error,busySlotId:hold.isPending?hold.variables:null,failure:failure2,selectedSlot:draft.slot,nextOpening:nextOpening,onPick:holdAndAdvance,onRetry:()=>slots.refetch(),onSeeOtherVets:()=>dispatch({type:"goTo",step:"clinician"})}):step==="review"?/* @__PURE__ */jsxRuntime.jsx(ReviewStep,{when:draft.slot?formatVisitDayTime(draft.slot.startsAt):"",onChangeWhen:()=>dispatch({type:"goTo",step:"time"}),stateName:where.stateName,about:intake.aboutLine,lengthMinutes:(draft.slot?televetSlotMinutes(draft.slot):null)??CONSULT_MINUTES,petName:nameOf(pets,draft.petId),reason:composedReason.trim(),clinician:clinicians.data?.find(c=>c.clinicianId===draft.clinicianId)?.displayName??null,shareRecords:draft.shareHealthRecords,stateCode:draft.state,stateAttested:stateAttested,onToggleStateAttest:setStateAttested,cancellationTerms:cancellation.data?.summary??null,termsAttested:termsAttested,onToggleTermsAttest:setTermsAttested,onToggleShare:next=>dispatch({type:"patch",patch:{shareHealthRecords:next}}),canConfirm:canConfirm(draft,composedReason),busy:book.isPending||sendMedia.sending,failure:failure2,onConfirm:confirm,emergency:emergency,onAcknowledgeEmergency:()=>submitBooking(true),onSeeOtherVets:()=>dispatch({type:"goTo",step:"clinician"}),mediaShortfall:sendMedia.shortfall,primaryVet:primaryVet,onFindEmergencyVet:onFindEmergencyVet}):step==="booked"?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:styles2.stepFill,testID:"televet-booking-booked",children:bookedConsult?/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
275
+ /* @__PURE__ */jsxRuntime.jsx(TelevetBookingChrome,{step:step,furthestIndex:state.furthestIndex,canGoBack:!simulate&&(triage.open||hasPreviousStep(state,ctx))&&step!=="booked",isDirty:isDirty,onBack:()=>{if(triage.open){triage.close();return}triage.cancel(),dispatch({type:"back"})},onClose:()=>onExit?.(),triageOpen:triage.open,stepContext:ctx,...onConfirmDiscard?{onConfirmDiscard:onConfirmDiscard}:{}}),simulate?/* @__PURE__ */jsxRuntime.jsx(TelevetVisitSimulator,{petId:draft.petId,roster:roster,onAddPet:onAddPet,onPickPet:petId=>dispatch({type:"patch",patch:{petId:petId}})}):gated?/* @__PURE__ */jsxRuntime.jsx(TelevetBookingGate,{state:gateState,petName:nameOf(pets,draft.petId),...primaryVet?{primaryVet:primaryVet}:{},onFindEmergencyVet:onFindEmergencyVet,stateInterest:noLicensedVetInterest,...onStateInterest?{onCheckAvailability:()=>dispatch({type:"goTo",step:"clinician"})}:{},onAcknowledgeEmergency:()=>{triage.acknowledge(composedReason),dispatch({type:"next"})},...renderUnavailable?{renderUnavailable:renderUnavailable}:{}}):step==="time"?/* @__PURE__ */jsxRuntime.jsx(SlotStep,{slots:slots.data??[],enabled:slots.enabled,isPending:slots.enabled&&slots.isPending&&slots.data===null,isError:slots.isError,error:slots.error,busySlotId:hold.isPending?hold.variables:null,failure:failure2,selectedSlot:draft.slot,nextOpening:nextOpening,onPick:holdAndAdvance,onRetry:()=>slots.refetch(),onSeeOtherVets:()=>dispatch({type:"goTo",step:"clinician"})}):step==="review"?/* @__PURE__ */jsxRuntime.jsx(ReviewStep,{when:draft.slot?formatVisitDayTime(draft.slot.startsAt):"",onChangeWhen:()=>dispatch({type:"goTo",step:"time"}),stateName:where.stateName,about:intake.aboutLine,lengthMinutes:(draft.slot?televetSlotMinutes(draft.slot):null)??CONSULT_MINUTES,petName:nameOf(pets,draft.petId),reason:composedReason.trim(),clinician:clinicians.data?.find(c=>c.clinicianId===draft.clinicianId)?.displayName??null,clinicianRole:clinicians.data?.find(c=>c.clinicianId===draft.clinicianId)?.role??null,shareRecords:draft.shareHealthRecords,stateCode:draft.state,stateAttested:stateAttested,onToggleStateAttest:setStateAttested,cancellationTerms:cancellation.data?.summary??null,termsAttested:termsAttested,onToggleTermsAttest:setTermsAttested,onToggleShare:next=>dispatch({type:"patch",patch:{shareHealthRecords:next}}),canConfirm:canConfirm(draft,composedReason),busy:book.isPending||sendMedia.sending,failure:failure2,onConfirm:confirm,emergency:emergency,onAcknowledgeEmergency:()=>submitBooking(true),onSeeOtherVets:()=>dispatch({type:"goTo",step:"clinician"}),mediaShortfall:sendMedia.shortfall,primaryVet:primaryVet,onFindEmergencyVet:onFindEmergencyVet}):step==="booked"?/* @__PURE__ */jsxRuntime.jsx(reactNative.View,{style:styles2.stepFill,testID:"televet-booking-booked",children:bookedConsult?/* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
275
276
  /* @__PURE__ */jsxRuntime.jsx(TelevetBookedScreen,{consult:bookedConsult,petName:nameOf(pets,bookedConsult.petId)??nameOf(pets,draft.petId),onDone:()=>onExit?.(),canJoinInApp:canJoinInApp,sharedRecords:draft.shareHealthRecords,sentPhoto:sendMedia.sentOnePhoto(bookedConsult),...onAddToCalendar?{onAddToCalendar:onAddToCalendar}:{}}),
276
277
  /* @__PURE__ */jsxRuntime.jsx(TelevetMediaDropNotice,{shortfall:sendMedia.bookedShortfall(bookedConsult),testIDPrefix:"televet-booked"})]}):null}):step==="clinician"&&clinicianOutcome?
277
278
  /* @__PURE__ */jsxRuntime.jsx(TelevetClinicianOutcome,{state:clinicianState,cause:emptyRosterCause,locationStatus:locationStatus,...onRequestLocation?{onRequestLocation:onRequestLocation}:{},onRetry:()=>clinicians.refetch(),stateInterest:noLicensedVetInterest,...renderUnavailable?{renderUnavailable:renderUnavailable}:{}}):step==="clinician"?/* @__PURE__ */jsxRuntime.jsx(ClinicianStep,{clinicians:clinicians.data??[],isPending:clinicians.enabled&&clinicians.isPending,isError:clinicians.isError,error:clinicians.error,selectedId:draft.clinicianId,stateCode:draft.state,stateName:where.stateName,onRetry:()=>clinicians.refetch(),onSelect:clinicianId=>{dispatch({type:"patch",patch:{clinicianId:clinicianId}}),dispatch({type:"next"})}}):step==="reason"?/* @__PURE__ */jsxRuntime.jsx(ReasonStep,{value:reasonText,composed:composedReason,vetName:matchedClinician?.displayName??null,onChange:setReasonText,media:media,onChangeMedia:setMedia,mediaLive:sendMedia.live,...onPickMedia?{onPickMedia:onPickMedia}:{},checking:triage.checking,onNext:()=>{triage.check(composedReason).then(goOn=>{goOn&&dispatch({type:"next"})})}}):step==="pet"?
@@ -3,21 +3,21 @@ import { ReactNode, ComponentType, ReactElement } from 'react';
3
3
  import { StyleProp, ViewStyle } from 'react-native';
4
4
  import { P as PetRef } from '../../ids.d-B2GAAifq.cjs';
5
5
  export { B as Brand, _ as __brand } from '../../ids.d-B2GAAifq.cjs';
6
- import { T as TelevetEmptyRosterCause, a as TelevetStateInterestAction$1, b as TelevetMediaShortfall, c as TelevetBookingStep, d as TelevetBookingContext, e as TelevetBookingController, f as TelevetTriageRead, g as TelevetStateInterestWrite, h as TelevetVetThreadTarget, i as TelevetDayPeriod } from '../../bookingCopy.d-BHqE9Ozq.cjs';
7
- export { C as CONSULT_MINUTES, N as NO_MEDIA_SHORTFALL, j as TELEVET_BOOKING_BASE, k as TELEVET_BOOKING_COPY, l as TELEVET_BOOKING_STEPS, m as TELEVET_CONSULT_PAGE_LIMIT, n as TELEVET_JOIN_CLOSES_MINUTES_AFTER, o as TELEVET_JOIN_OPENS_MINUTES_BEFORE, p as TELEVET_MESSAGE_THREADS_PATH, q as TelevetAttachmentMeta, r as TelevetAttachmentPolicy, s as TelevetBookingAction, t as TelevetBookingControllerDeps, u as TelevetBookingCopy, v as TelevetBookingDraft, w as TelevetBookingFailure, x as TelevetBookingRefusal, y as TelevetBookingState, z as TelevetEarlyTriage, A as TelevetEmptyRosterView, B as TelevetJoinReadiness, D as TelevetJoinState, E as TelevetMediaRefusal, F as TelevetRead, G as TelevetStateInterestReason, H as TelevetWrite, U as UpcomingTelevetVisitState, I as UseVetThreadOptions, V as VET_MESSAGES_COPY, J as VET_MESSAGE_CONTENT_MAX, K as VET_MESSAGE_PAGE_DEFAULT, L as VET_MESSAGE_PAGE_MAX, M as VetMessage, O as VetMessagePage, P as VetMessageRole, Q as VetMessagesAvailability, R as VetSendFailure, S as VetThread, W as VetThreadState, X as VetThreadsState, Y as VisitSummary, Z as VisitSummaryMedication, _ as VisitSummaryState, $ as attestation, a0 as canConfirm, a1 as canManageTelevetVisit, a2 as createTelevetBookingController, a3 as currentStep, a4 as emptyTelevetDraft, a5 as formatVisitRange, a6 as formatWhen, a7 as formatWhenWithDay, a8 as hasPreviousStep, a9 as initialTelevetBookingState, aa as isHoldExpired, ab as isMediaShortfallEmpty, ac as isSkipped, ad as isTelevetBookingCopyReady, ae as isVetMessagesDark, af as isVetThreadVetFirst, ag as mediaShortfallFromUnsentPicks, ah as splitTelevetVisits, ai as televetBookingKey, aj as televetBookingReducer, ak as televetBookingRefusal, al as televetCancelCall, am as televetConsultCall, an as televetEmptyRosterCause, ao as televetEmptyRosterView, ap as televetHoldCall, aq as televetJoinCall, ar as televetJoinOpensAtMs, as as televetJoinReadiness, at as televetMediaShortfallLines, au as televetRescheduleCall, av as televetThreadMessagesCall, aw as televetThreadReadCall, ax as televetVisitSummaryCall, ay as useEarlyTriage, az as useStateInterest, aA as useTelevetBookConsult, aB as useTelevetBookingAvailable, aC as useTelevetBookingController, aD as useTelevetBookingEntitlement, aE as useTelevetCancellationPolicy, aF as useTelevetClinicians, aG as useTelevetHoldSlot, aH as useTelevetJoin, aI as useTelevetNextSlot, aJ as useTelevetRescheduleConsult, aK as useTelevetSlots, aL as useTelevetStatePolicy, aM as useUpcomingTelevetVisit, aN as useVetThread, aO as useVetThreads, aP as useVisitSummary, aQ as validateBookingBody, aR as vetThreadPetRef, aS as withUnsentPicks } from '../../bookingCopy.d-BHqE9Ozq.cjs';
8
- import { T as TelevetConsult, E as EverfurTelevetFlowRequest, b as TelevetCancelReceipt, c as TelevetSlot } from '../../televetGlobal.d-CKwDCbmN.cjs';
9
- export { C as CANCELLATION_POLICY_VERSION_MAX, d as CANCEL_REASON_MAX, e as CONSULT_KINDS, f as CONSULT_STATUSES, g as ConsultKind, h as ConsultStatus, M as MEDIA_REFS_MAX, R as REASON_TEXT_MAX, i as TERMINAL_CONSULT_STATUSES, j as TelevetBookingBody, k as TelevetBookingEntitlement, l as TelevetCancellationPolicy, m as TelevetClinician, n as TelevetSlotHold, o as TelevetStatePolicy, p as TelevetTriageVerdict, q as isWellFormedStateCode } from '../../televetGlobal.d-CKwDCbmN.cjs';
6
+ import { T as TelevetEmptyRosterCause, a as TelevetStateInterestAction$1, b as TelevetMediaShortfall, c as TelevetBookingStep, d as TelevetBookingContext, e as TelevetBookingController, f as TelevetTriageRead, g as TelevetStateInterestWrite, h as TelevetVetThreadTarget, i as TelevetDayPeriod } from '../../bookingCopy.d-CoiNXrY8.cjs';
7
+ export { C as CONSULT_MINUTES, N as NO_MEDIA_SHORTFALL, j as TELEVET_BOOKING_BASE, k as TELEVET_BOOKING_COPY, l as TELEVET_BOOKING_STEPS, m as TELEVET_CONSULT_PAGE_LIMIT, n as TELEVET_JOIN_CLOSES_MINUTES_AFTER, o as TELEVET_JOIN_OPENS_MINUTES_BEFORE, p as TELEVET_MESSAGE_THREADS_PATH, q as TelevetAttachmentMeta, r as TelevetAttachmentPolicy, s as TelevetBookingAction, t as TelevetBookingControllerDeps, u as TelevetBookingCopy, v as TelevetBookingDraft, w as TelevetBookingFailure, x as TelevetBookingRefusal, y as TelevetBookingState, z as TelevetEarlyTriage, A as TelevetEmptyRosterView, B as TelevetJoinReadiness, D as TelevetJoinState, E as TelevetMediaRefusal, F as TelevetRead, G as TelevetStateInterestReason, H as TelevetWrite, U as UpcomingTelevetVisitState, I as UseVetThreadOptions, V as VET_MESSAGES_COPY, J as VET_MESSAGE_CONTENT_MAX, K as VET_MESSAGE_PAGE_DEFAULT, L as VET_MESSAGE_PAGE_MAX, M as VetMessage, O as VetMessagePage, P as VetMessageRole, Q as VetMessagesAvailability, R as VetSendFailure, S as VetThread, W as VetThreadState, X as VetThreadsState, Y as VisitSummary, Z as VisitSummaryMedication, _ as VisitSummaryState, $ as attestation, a0 as canConfirm, a1 as canManageTelevetVisit, a2 as createTelevetBookingController, a3 as currentStep, a4 as emptyTelevetDraft, a5 as formatVisitRange, a6 as formatWhen, a7 as formatWhenWithDay, a8 as hasPreviousStep, a9 as initialTelevetBookingState, aa as isHoldExpired, ab as isMediaShortfallEmpty, ac as isSkipped, ad as isTelevetBookingCopyReady, ae as isVetMessagesDark, af as isVetThreadVetFirst, ag as mediaShortfallFromUnsentPicks, ah as splitTelevetVisits, ai as televetBookingKey, aj as televetBookingReducer, ak as televetBookingRefusal, al as televetCancelCall, am as televetConsultCall, an as televetEmptyRosterCause, ao as televetEmptyRosterView, ap as televetHoldCall, aq as televetJoinCall, ar as televetJoinOpensAtMs, as as televetJoinReadiness, at as televetMediaShortfallLines, au as televetRescheduleCall, av as televetThreadMessagesCall, aw as televetThreadReadCall, ax as televetVisitSummaryCall, ay as useEarlyTriage, az as useStateInterest, aA as useTelevetBookConsult, aB as useTelevetBookingAvailable, aC as useTelevetBookingController, aD as useTelevetBookingEntitlement, aE as useTelevetCancellationPolicy, aF as useTelevetClinicians, aG as useTelevetHoldSlot, aH as useTelevetJoin, aI as useTelevetNextSlot, aJ as useTelevetRescheduleConsult, aK as useTelevetSlots, aL as useTelevetStatePolicy, aM as useUpcomingTelevetVisit, aN as useVetThread, aO as useVetThreads, aP as useVisitSummary, aQ as validateBookingBody, aR as vetThreadPetRef, aS as withUnsentPicks } from '../../bookingCopy.d-CoiNXrY8.cjs';
8
+ import { T as TelevetConsult, E as EverfurTelevetFlowRequest, b as TelevetCancelReceipt, c as TelevetSlot } from '../../televetGlobal.d-BWYJR391.cjs';
9
+ export { C as CANCELLATION_POLICY_VERSION_MAX, d as CANCEL_REASON_MAX, e as CONSULT_KINDS, f as CONSULT_STATUSES, g as ConsultKind, h as ConsultStatus, M as MEDIA_REFS_MAX, R as REASON_TEXT_MAX, i as TERMINAL_CONSULT_STATUSES, j as TelevetBookingBody, k as TelevetBookingEntitlement, l as TelevetCancellationPolicy, m as TelevetClinician, n as TelevetSlotHold, o as TelevetStatePolicy, p as TelevetTriageVerdict, q as isWellFormedStateCode } from '../../televetGlobal.d-BWYJR391.cjs';
10
10
  import { V as VetVisitIntent } from '../../visitIntent.d-D7_yVp1I.cjs';
11
- import { b as TelevetPrimaryVet, a as TelevetMediaPicker, T as TelevetCalendarWriter } from '../../IntakeMedia.d-DUPR4lVM.cjs';
12
- export { e as TelevetBookedScreen, f as TelevetBookedScreenProps, c as TelevetCalendarEvent, g as TelevetEmergencyExits, h as TelevetIntakeMedia, d as TelevetIntakeMediaItem, i as TelevetIntakeMediaProps, t as televetConsultCalendarKey } from '../../IntakeMedia.d-DUPR4lVM.cjs';
11
+ import { b as TelevetPrimaryVet, a as TelevetMediaPicker, T as TelevetCalendarWriter } from '../../IntakeMedia.d-Dqc5V_YH.cjs';
12
+ export { e as TelevetBookedScreen, f as TelevetBookedScreenProps, c as TelevetCalendarEvent, g as TelevetEmergencyExits, h as TelevetIntakeMedia, d as TelevetIntakeMediaItem, i as TelevetIntakeMediaProps, t as televetConsultCalendarKey } from '../../IntakeMedia.d-Dqc5V_YH.cjs';
13
13
  export { b as VetCallCredential, c as VetCallJoinRefusal, d as VetCallLimits, p as parseVetCallCredential, v as vetCallJoinReason, e as vetCallJoinRefusal } from '../../callRoom.d-B1DoYdJe.cjs';
14
14
  export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode } from '../../EverfurError.d-8NHtlgzA.cjs';
15
15
  export { E as EverfurResult } from '../../EverfurResult.d-BFH-3s6E.cjs';
16
- export { W as WidgetPet } from '../../petsRepository.d-Dd95xh-M.cjs';
17
- import '../../requestFunnel.d-CWI2pD3V.cjs';
16
+ export { W as WidgetPet } from '../../petsRepository.d-DEnoZn92.cjs';
17
+ import '../../requestFunnel.d-CQX_Z1Hi.cjs';
18
18
  import '../../ErrorPolicyPort.d-DirW9hgO.cjs';
19
- import '../../config.d-7bCXvOGn.cjs';
20
- import '../../identity.d-84x0dV7-.cjs';
19
+ import '../../config.d-Z_fyOZke.cjs';
20
+ import '../../identity.d-3ROlHbnP.cjs';
21
21
  import '../../TelemetryPort.d-BDNr00hu.cjs';
22
22
  import '../../profile.d-CSs1wlXT.cjs';
23
23
 
@@ -547,11 +547,13 @@ interface TelevetSlotPickerProps {
547
547
  declare function TelevetSlotPicker({ slots, busySlotId, onPick, selectedSlot, ListHeaderComponent, rowTestIdPrefix, testID, periodLabels, }: TelevetSlotPickerProps): ReactNode;
548
548
 
549
549
  /** One "label ... value" row in the summary card. */
550
- declare function TelevetSummaryRow({ label, value, last, action, testID, }: {
550
+ declare function TelevetSummaryRow({ label, value, last, action, note, testID, }: {
551
551
  readonly label: string;
552
552
  readonly value: string;
553
553
  /** The last row draws no divider, so the card does not end on a line. */
554
554
  readonly last?: boolean;
555
+ /** One plain line under the value (a vet tech's "can't prescribe"). Absent, the row is the value alone. */
556
+ readonly note?: string | null | undefined;
555
557
  /** A control at the row's end (the review's "Change" on When). */
556
558
  readonly action?: ReactNode;
557
559
  readonly testID?: string;
@@ -3,21 +3,21 @@ import { ReactNode, ComponentType, ReactElement } from 'react';
3
3
  import { StyleProp, ViewStyle } from 'react-native';
4
4
  import { P as PetRef } from '../../ids.d-B2GAAifq.js';
5
5
  export { B as Brand, _ as __brand } from '../../ids.d-B2GAAifq.js';
6
- import { T as TelevetEmptyRosterCause, a as TelevetStateInterestAction$1, b as TelevetMediaShortfall, c as TelevetBookingStep, d as TelevetBookingContext, e as TelevetBookingController, f as TelevetTriageRead, g as TelevetStateInterestWrite, h as TelevetVetThreadTarget, i as TelevetDayPeriod } from '../../bookingCopy.d-Ca4AQGZ7.js';
7
- export { C as CONSULT_MINUTES, N as NO_MEDIA_SHORTFALL, j as TELEVET_BOOKING_BASE, k as TELEVET_BOOKING_COPY, l as TELEVET_BOOKING_STEPS, m as TELEVET_CONSULT_PAGE_LIMIT, n as TELEVET_JOIN_CLOSES_MINUTES_AFTER, o as TELEVET_JOIN_OPENS_MINUTES_BEFORE, p as TELEVET_MESSAGE_THREADS_PATH, q as TelevetAttachmentMeta, r as TelevetAttachmentPolicy, s as TelevetBookingAction, t as TelevetBookingControllerDeps, u as TelevetBookingCopy, v as TelevetBookingDraft, w as TelevetBookingFailure, x as TelevetBookingRefusal, y as TelevetBookingState, z as TelevetEarlyTriage, A as TelevetEmptyRosterView, B as TelevetJoinReadiness, D as TelevetJoinState, E as TelevetMediaRefusal, F as TelevetRead, G as TelevetStateInterestReason, H as TelevetWrite, U as UpcomingTelevetVisitState, I as UseVetThreadOptions, V as VET_MESSAGES_COPY, J as VET_MESSAGE_CONTENT_MAX, K as VET_MESSAGE_PAGE_DEFAULT, L as VET_MESSAGE_PAGE_MAX, M as VetMessage, O as VetMessagePage, P as VetMessageRole, Q as VetMessagesAvailability, R as VetSendFailure, S as VetThread, W as VetThreadState, X as VetThreadsState, Y as VisitSummary, Z as VisitSummaryMedication, _ as VisitSummaryState, $ as attestation, a0 as canConfirm, a1 as canManageTelevetVisit, a2 as createTelevetBookingController, a3 as currentStep, a4 as emptyTelevetDraft, a5 as formatVisitRange, a6 as formatWhen, a7 as formatWhenWithDay, a8 as hasPreviousStep, a9 as initialTelevetBookingState, aa as isHoldExpired, ab as isMediaShortfallEmpty, ac as isSkipped, ad as isTelevetBookingCopyReady, ae as isVetMessagesDark, af as isVetThreadVetFirst, ag as mediaShortfallFromUnsentPicks, ah as splitTelevetVisits, ai as televetBookingKey, aj as televetBookingReducer, ak as televetBookingRefusal, al as televetCancelCall, am as televetConsultCall, an as televetEmptyRosterCause, ao as televetEmptyRosterView, ap as televetHoldCall, aq as televetJoinCall, ar as televetJoinOpensAtMs, as as televetJoinReadiness, at as televetMediaShortfallLines, au as televetRescheduleCall, av as televetThreadMessagesCall, aw as televetThreadReadCall, ax as televetVisitSummaryCall, ay as useEarlyTriage, az as useStateInterest, aA as useTelevetBookConsult, aB as useTelevetBookingAvailable, aC as useTelevetBookingController, aD as useTelevetBookingEntitlement, aE as useTelevetCancellationPolicy, aF as useTelevetClinicians, aG as useTelevetHoldSlot, aH as useTelevetJoin, aI as useTelevetNextSlot, aJ as useTelevetRescheduleConsult, aK as useTelevetSlots, aL as useTelevetStatePolicy, aM as useUpcomingTelevetVisit, aN as useVetThread, aO as useVetThreads, aP as useVisitSummary, aQ as validateBookingBody, aR as vetThreadPetRef, aS as withUnsentPicks } from '../../bookingCopy.d-Ca4AQGZ7.js';
8
- import { T as TelevetConsult, E as EverfurTelevetFlowRequest, b as TelevetCancelReceipt, c as TelevetSlot } from '../../televetGlobal.d-CC-DrqkQ.js';
9
- export { C as CANCELLATION_POLICY_VERSION_MAX, d as CANCEL_REASON_MAX, e as CONSULT_KINDS, f as CONSULT_STATUSES, g as ConsultKind, h as ConsultStatus, M as MEDIA_REFS_MAX, R as REASON_TEXT_MAX, i as TERMINAL_CONSULT_STATUSES, j as TelevetBookingBody, k as TelevetBookingEntitlement, l as TelevetCancellationPolicy, m as TelevetClinician, n as TelevetSlotHold, o as TelevetStatePolicy, p as TelevetTriageVerdict, q as isWellFormedStateCode } from '../../televetGlobal.d-CC-DrqkQ.js';
6
+ import { T as TelevetEmptyRosterCause, a as TelevetStateInterestAction$1, b as TelevetMediaShortfall, c as TelevetBookingStep, d as TelevetBookingContext, e as TelevetBookingController, f as TelevetTriageRead, g as TelevetStateInterestWrite, h as TelevetVetThreadTarget, i as TelevetDayPeriod } from '../../bookingCopy.d-CrUufdoE.js';
7
+ export { C as CONSULT_MINUTES, N as NO_MEDIA_SHORTFALL, j as TELEVET_BOOKING_BASE, k as TELEVET_BOOKING_COPY, l as TELEVET_BOOKING_STEPS, m as TELEVET_CONSULT_PAGE_LIMIT, n as TELEVET_JOIN_CLOSES_MINUTES_AFTER, o as TELEVET_JOIN_OPENS_MINUTES_BEFORE, p as TELEVET_MESSAGE_THREADS_PATH, q as TelevetAttachmentMeta, r as TelevetAttachmentPolicy, s as TelevetBookingAction, t as TelevetBookingControllerDeps, u as TelevetBookingCopy, v as TelevetBookingDraft, w as TelevetBookingFailure, x as TelevetBookingRefusal, y as TelevetBookingState, z as TelevetEarlyTriage, A as TelevetEmptyRosterView, B as TelevetJoinReadiness, D as TelevetJoinState, E as TelevetMediaRefusal, F as TelevetRead, G as TelevetStateInterestReason, H as TelevetWrite, U as UpcomingTelevetVisitState, I as UseVetThreadOptions, V as VET_MESSAGES_COPY, J as VET_MESSAGE_CONTENT_MAX, K as VET_MESSAGE_PAGE_DEFAULT, L as VET_MESSAGE_PAGE_MAX, M as VetMessage, O as VetMessagePage, P as VetMessageRole, Q as VetMessagesAvailability, R as VetSendFailure, S as VetThread, W as VetThreadState, X as VetThreadsState, Y as VisitSummary, Z as VisitSummaryMedication, _ as VisitSummaryState, $ as attestation, a0 as canConfirm, a1 as canManageTelevetVisit, a2 as createTelevetBookingController, a3 as currentStep, a4 as emptyTelevetDraft, a5 as formatVisitRange, a6 as formatWhen, a7 as formatWhenWithDay, a8 as hasPreviousStep, a9 as initialTelevetBookingState, aa as isHoldExpired, ab as isMediaShortfallEmpty, ac as isSkipped, ad as isTelevetBookingCopyReady, ae as isVetMessagesDark, af as isVetThreadVetFirst, ag as mediaShortfallFromUnsentPicks, ah as splitTelevetVisits, ai as televetBookingKey, aj as televetBookingReducer, ak as televetBookingRefusal, al as televetCancelCall, am as televetConsultCall, an as televetEmptyRosterCause, ao as televetEmptyRosterView, ap as televetHoldCall, aq as televetJoinCall, ar as televetJoinOpensAtMs, as as televetJoinReadiness, at as televetMediaShortfallLines, au as televetRescheduleCall, av as televetThreadMessagesCall, aw as televetThreadReadCall, ax as televetVisitSummaryCall, ay as useEarlyTriage, az as useStateInterest, aA as useTelevetBookConsult, aB as useTelevetBookingAvailable, aC as useTelevetBookingController, aD as useTelevetBookingEntitlement, aE as useTelevetCancellationPolicy, aF as useTelevetClinicians, aG as useTelevetHoldSlot, aH as useTelevetJoin, aI as useTelevetNextSlot, aJ as useTelevetRescheduleConsult, aK as useTelevetSlots, aL as useTelevetStatePolicy, aM as useUpcomingTelevetVisit, aN as useVetThread, aO as useVetThreads, aP as useVisitSummary, aQ as validateBookingBody, aR as vetThreadPetRef, aS as withUnsentPicks } from '../../bookingCopy.d-CrUufdoE.js';
8
+ import { T as TelevetConsult, E as EverfurTelevetFlowRequest, b as TelevetCancelReceipt, c as TelevetSlot } from '../../televetGlobal.d-B0_jbCtC.js';
9
+ export { C as CANCELLATION_POLICY_VERSION_MAX, d as CANCEL_REASON_MAX, e as CONSULT_KINDS, f as CONSULT_STATUSES, g as ConsultKind, h as ConsultStatus, M as MEDIA_REFS_MAX, R as REASON_TEXT_MAX, i as TERMINAL_CONSULT_STATUSES, j as TelevetBookingBody, k as TelevetBookingEntitlement, l as TelevetCancellationPolicy, m as TelevetClinician, n as TelevetSlotHold, o as TelevetStatePolicy, p as TelevetTriageVerdict, q as isWellFormedStateCode } from '../../televetGlobal.d-B0_jbCtC.js';
10
10
  import { V as VetVisitIntent } from '../../visitIntent.d-D7_yVp1I.js';
11
- import { b as TelevetPrimaryVet, a as TelevetMediaPicker, T as TelevetCalendarWriter } from '../../IntakeMedia.d-DGxrhgIW.js';
12
- export { e as TelevetBookedScreen, f as TelevetBookedScreenProps, c as TelevetCalendarEvent, g as TelevetEmergencyExits, h as TelevetIntakeMedia, d as TelevetIntakeMediaItem, i as TelevetIntakeMediaProps, t as televetConsultCalendarKey } from '../../IntakeMedia.d-DGxrhgIW.js';
11
+ import { b as TelevetPrimaryVet, a as TelevetMediaPicker, T as TelevetCalendarWriter } from '../../IntakeMedia.d-DNUAks9E.js';
12
+ export { e as TelevetBookedScreen, f as TelevetBookedScreenProps, c as TelevetCalendarEvent, g as TelevetEmergencyExits, h as TelevetIntakeMedia, d as TelevetIntakeMediaItem, i as TelevetIntakeMediaProps, t as televetConsultCalendarKey } from '../../IntakeMedia.d-DNUAks9E.js';
13
13
  export { b as VetCallCredential, c as VetCallJoinRefusal, d as VetCallLimits, p as parseVetCallCredential, v as vetCallJoinReason, e as vetCallJoinRefusal } from '../../callRoom.d-Dqm1rUqT.js';
14
14
  export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode } from '../../EverfurError.d-8NHtlgzA.js';
15
15
  export { E as EverfurResult } from '../../EverfurResult.d-D_-254ZY.js';
16
- export { W as WidgetPet } from '../../petsRepository.d-BuomdFjZ.js';
17
- import '../../requestFunnel.d-DcQIAs45.js';
16
+ export { W as WidgetPet } from '../../petsRepository.d-DWsChqAS.js';
17
+ import '../../requestFunnel.d-DSvCGf4J.js';
18
18
  import '../../ErrorPolicyPort.d-68yrE3BE.js';
19
- import '../../config.d-cqyvpzDb.js';
20
- import '../../identity.d-BXztMVYM.js';
19
+ import '../../config.d-KX-EkQ9j.js';
20
+ import '../../identity.d-CRVNfZzQ.js';
21
21
  import '../../TelemetryPort.d-BDNr00hu.js';
22
22
  import '../../profile.d-CSs1wlXT.js';
23
23
 
@@ -547,11 +547,13 @@ interface TelevetSlotPickerProps {
547
547
  declare function TelevetSlotPicker({ slots, busySlotId, onPick, selectedSlot, ListHeaderComponent, rowTestIdPrefix, testID, periodLabels, }: TelevetSlotPickerProps): ReactNode;
548
548
 
549
549
  /** One "label ... value" row in the summary card. */
550
- declare function TelevetSummaryRow({ label, value, last, action, testID, }: {
550
+ declare function TelevetSummaryRow({ label, value, last, action, note, testID, }: {
551
551
  readonly label: string;
552
552
  readonly value: string;
553
553
  /** The last row draws no divider, so the card does not end on a line. */
554
554
  readonly last?: boolean;
555
+ /** One plain line under the value (a vet tech's "can't prescribe"). Absent, the row is the value alone. */
556
+ readonly note?: string | null | undefined;
555
557
  /** A control at the row's end (the review's "Change" on When). */
556
558
  readonly action?: ReactNode;
557
559
  readonly testID?: string;