@everfur/sdk 0.18.2 → 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 (159) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +6 -5
  3. package/dist/{Chat.d-B7iUVGmB.d.cts → Chat.d-BEbRI8FZ.d.cts} +1 -1
  4. package/dist/{Chat.d-BkLu9G00.d.ts → Chat.d-CKKuXVw5.d.ts} +1 -1
  5. package/dist/{DepthViews.d-BiS-GTEf.d.cts → DepthViews.d-BiePRa3Z.d.cts} +1 -1
  6. package/dist/{DepthViews.d-C-zs_BnZ.d.cts → DepthViews.d-Chn2xwZu.d.cts} +1 -1
  7. package/dist/{DepthViews.d-C0DVqywN.d.ts → DepthViews.d-CiU4f98J.d.ts} +1 -1
  8. package/dist/{DepthViews.d-hXV6Ef0y.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-BG_RDR1V.d.ts → RecordsPage.d-CRRJM35Q.d.ts} +1 -1
  14. package/dist/{RecordsPage.d-5rHMTDyY.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-_TM06yEk.d.cts → appStateLifecycle.d-BQcy4J5O.d.cts} +3 -3
  18. package/dist/{appStateLifecycle.d-7H_2a9it.d.ts → appStateLifecycle.d-JuPhh7Oy.d.ts} +3 -3
  19. package/dist/{attachments.d-DFbXLAYK.d.cts → attachments.d-BLEOCUU7.d.cts} +2 -2
  20. package/dist/{attachments.d-HmRqizDG.d.cts → attachments.d-CeXw6R7_.d.cts} +5 -5
  21. package/dist/{attachments.d-_mgNU-ur.d.ts → attachments.d-DRkqNR-o.d.ts} +2 -2
  22. package/dist/{attachments.d-D7f7OfPE.d.ts → attachments.d-d1rWAw9K.d.ts} +5 -5
  23. package/dist/{bookingCopy.d-0K1trjxx.d.cts → bookingCopy.d-CoiNXrY8.d.cts} +10 -3
  24. package/dist/{bookingCopy.d-RU8lNYJ4.d.ts → bookingCopy.d-CrUufdoE.d.ts} +10 -3
  25. package/dist/{casesRepository.d-D2SQFL27.d.ts → casesRepository.d-DhI69yuj.d.ts} +1 -1
  26. package/dist/{casesRepository.d-D7vIZ9oX.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 +1 -1
  32. package/dist/client/index.d.cts +6 -6
  33. package/dist/client/index.d.ts +6 -6
  34. package/dist/client/index.js +1 -1
  35. package/dist/{clinicBatch.d-BhaCdstU.d.ts → clinicBatch.d-CcqnQ7-d.d.ts} +2 -2
  36. package/dist/{clinicBatch.d-BN1jfVGo.d.cts → clinicBatch.d-DVahpaN3.d.cts} +2 -2
  37. package/dist/{config.d-D_k_rNZZ.d.ts → config.d-KX-EkQ9j.d.ts} +1 -1
  38. package/dist/{config.d-BFTqU7ft.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-D2fhrjAM.d.cts → context.d-DV5E_2Fs.d.cts} +5 -5
  42. package/dist/{context.d-B4LODPF1.d.ts → context.d-DY6d4qXG.d.ts} +5 -5
  43. package/dist/{copy.d-Bn9eIgkW.d.ts → copy.d-BPzpKGGc.d.ts} +2 -2
  44. package/dist/{copy.d-DjYhMxxS.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-DlaIV8TV.d.ts → depth.d-B_qNSgXr.d.ts} +2 -2
  50. package/dist/{depth.d-CsKZkLNi.d.cts → depth.d-qVYPByPb.d.cts} +2 -2
  51. package/dist/{entitlementRepository.d-C5d_6QMi.d.ts → entitlementRepository.d-BXDWPyP8.d.ts} +2 -2
  52. package/dist/{entitlementRepository.d-CpIRpfzy.d.cts → entitlementRepository.d-CwTVi7he.d.cts} +2 -2
  53. package/dist/{focus.d-DOlAaNIU.d.ts → focus.d-BPofD7ow.d.ts} +2 -2
  54. package/dist/{focus.d-DdBbwzjP.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-CmQc1OUv.d.ts → idempotency.d-BVO0mU2R.d.ts} +1 -1
  58. package/dist/{idempotency.d-P4O5lNBq.d.cts → idempotency.d-BmYuCb-n.d.cts} +1 -1
  59. package/dist/{identity.d-BmbAwQYx.d.cts → identity.d-3ROlHbnP.d.cts} +1 -1
  60. package/dist/{identity.d-BZXPu9Hi.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-Bqw2Hcpt.d.cts → introEvents.d-DGQDEPJi.d.cts} +1 -1
  66. package/dist/{introEvents.d-Cy8yxOoe.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-DXj2w4KU.d.cts → optInView.d-CU1U_K-B.d.cts} +2 -2
  70. package/dist/{optInView.d-wGSNOB86.d.ts → optInView.d-DIGu47Lz.d.ts} +2 -2
  71. package/dist/{parse.d-C9_UMXfA.d.cts → parse.d-GzZJYu__.d.cts} +1 -1
  72. package/dist/{parse.d-MQST1RP3.d.ts → parse.d-icynBIS-.d.ts} +1 -1
  73. package/dist/{pets.d-CP13kAFa.d.cts → pets.d-5SMtOAwB.d.cts} +1 -1
  74. package/dist/{pets.d-tqGZP3Co.d.ts → pets.d-BRsbR8QU.d.ts} +1 -1
  75. package/dist/{petsRepository.d-CyerzD5G.d.cts → petsRepository.d-DEnoZn92.d.cts} +1 -1
  76. package/dist/{petsRepository.d-CLyzuoo4.d.ts → petsRepository.d-DWsChqAS.d.ts} +1 -1
  77. package/dist/{ports.d-CB9YZT2L.d.cts → ports.d--OjPUqPb.d.cts} +4 -4
  78. package/dist/{ports.d-RKc2C07X.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-DocT7FXR.d.cts → requestFunnel.d-CQX_Z1Hi.d.cts} +2 -2
  86. package/dist/{requestFunnel.d-BPWf5SQf.d.ts → requestFunnel.d-DSvCGf4J.d.ts} +2 -2
  87. package/dist/{runtimeTypes.d-D4Cjjf_C.d.ts → runtimeTypes.d-Be_vhOER.d.ts} +4 -4
  88. package/dist/{runtimeTypes.d-CkwEMpy8.d.cts → runtimeTypes.d-sXpNYnJp.d.cts} +4 -4
  89. package/dist/{screenProps.d-Byla6nJL.d.cts → screenProps.d-BW6PZh5k.d.cts} +1 -1
  90. package/dist/{screenProps.d-DNTTp7hU.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.d.cts +1 -1
  112. package/dist/testing/index.d.ts +1 -1
  113. package/dist/testing/rn/index.d.cts +7 -7
  114. package/dist/testing/rn/index.d.ts +7 -7
  115. package/dist/testing/web/index.d.cts +7 -7
  116. package/dist/testing/web/index.d.ts +7 -7
  117. package/dist/texting/index.d.cts +5 -5
  118. package/dist/texting/index.d.ts +5 -5
  119. package/dist/{threadOptions.d-CIrevUL8.d.cts → threadOptions.d-Csmb-XgL.d.cts} +2 -2
  120. package/dist/{threadOptions.d-jgk_sHrj.d.ts → threadOptions.d-DMOn3mmj.d.ts} +2 -2
  121. package/dist/{timelineRows.d-BST14weg.d.ts → timelineRows.d-B0XZevKx.d.ts} +1 -1
  122. package/dist/{timelineRows.d-BEjiHpkP.d.cts → timelineRows.d-Kllr7Mcu.d.cts} +1 -1
  123. package/dist/{useHealthPlanSubscription.d-CYJi9ZNE.d.cts → useHealthPlanSubscription.d-C-c_mQ4u.d.cts} +2 -2
  124. package/dist/{useHealthPlanSubscription.d-C9kh4mvk.d.ts → useHealthPlanSubscription.d-bNRntgWe.d.ts} +2 -2
  125. package/dist/{usePresentation.d-COEh8Xa1.d.cts → usePresentation.d-BHKhBKQn.d.cts} +1 -1
  126. package/dist/{usePresentation.d-WA3sfMpz.d.ts → usePresentation.d-CmQgbrZr.d.ts} +1 -1
  127. package/dist/{useRecordsDepth.d-CAYnVYl1.d.ts → useRecordsDepth.d-BilHZaR4.d.ts} +1 -1
  128. package/dist/{useRecordsDepth.d-DZfdRdIU.d.cts → useRecordsDepth.d-WW_2cWwU.d.cts} +1 -1
  129. package/dist/{view.d-eM315KIZ.d.cts → view.d-BTnjZu2S.d.cts} +3 -3
  130. package/dist/{view.d-D8soknYh.d.ts → view.d-BtN_L_UF.d.ts} +3 -3
  131. package/dist/web/consent/index.d.cts +5 -5
  132. package/dist/web/consent/index.d.ts +5 -5
  133. package/dist/web/health-plan/index.d.cts +11 -11
  134. package/dist/web/health-plan/index.d.ts +11 -11
  135. package/dist/web/index.cjs +1 -1
  136. package/dist/web/index.d.cts +23 -23
  137. package/dist/web/index.d.ts +23 -23
  138. package/dist/web/index.js +1 -1
  139. package/dist/web/intro/index.d.cts +6 -6
  140. package/dist/web/intro/index.d.ts +6 -6
  141. package/dist/web/notifications/index.d.cts +3 -3
  142. package/dist/web/notifications/index.d.ts +3 -3
  143. package/dist/web/records/depth/index.d.cts +9 -9
  144. package/dist/web/records/depth/index.d.ts +9 -9
  145. package/dist/web/records/index.d.cts +11 -11
  146. package/dist/web/records/index.d.ts +11 -11
  147. package/dist/web/records-sheet/index.cjs +1 -1
  148. package/dist/web/records-sheet/index.js +1 -1
  149. package/dist/web/shop/index.d.cts +3 -3
  150. package/dist/web/shop/index.d.ts +3 -3
  151. package/dist/web/televet/booking/index.cjs +9 -9
  152. package/dist/web/televet/booking/index.d.cts +18 -11
  153. package/dist/web/televet/booking/index.d.ts +18 -11
  154. package/dist/web/televet/booking/index.js +9 -9
  155. package/dist/web/televet/index.d.cts +3 -3
  156. package/dist/web/televet/index.d.ts +3 -3
  157. package/dist/web/texting/index.d.cts +5 -5
  158. package/dist/web/texting/index.d.ts +5 -5
  159. package/package.json +1 -1
@@ -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{createContext,forwardRef,createElement,useMemo,useState,useRef,useEffect,useCallback,useReducer,useContext,useSyncExternalStore,Component}from"react";import{TextInput as TextInput$1,StyleSheet,View,Pressable,Linking,Animated,Alert,BackHandler,Image,ActivityIndicator,ScrollView,Platform,KeyboardAvoidingView,Modal,StatusBar,Text as Text$1,Dimensions}from"react-native";import{z}from"zod";import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as callModule from"@everfur/sdk/televet/call";import{useSafeAreaInsets}from"react-native-safe-area-context";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=createContext(null);function useTelevetBackChannel(handler,enabled=true){let channel=useContext(TelevetBackChannelContext),current=useRef(handler);current.current=handler,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=createContext(null);function useTelevetBackChannel(handler,enabled=true){let channel=useContext(TelevetBackChannelContext),current=useRef(handler);current.current=handler,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 jsxs(View,{style:styles2.root,testID:testID,children:[Header?/* @__PURE__
201
201
  /* @__PURE__ */jsx(ScrollView,{style:styles2.gridScroll,contentContainerStyle:styles2.groups,showsVerticalScrollIndicator:false,children:groups(times,periodLabels).map(group=>/* @__PURE__ */jsxs(View,{style:styles2.group,children:[group.label?/* @__PURE__ */jsx(Text,{tier:"compact",style:styles2.period,accessibilityRole:"header",testID:`televet-slot-period-${group.key}`,children:group.label}):null,
202
202
  /* @__PURE__ */jsx(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 jsxs(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__ */jsx(Text,{tier:"compact",style:[styles2.chipLabel,picked?styles2.chipLabelPicked:null,busy?styles2.chipLabelBusy:null],children:formatClock(slot.startsAt)}),chipZone.length>0?/* @__PURE__ */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 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=useMemo(()=>makeStyles7(theme),[theme]);/* @__PURE__ */
204
+ /* @__PURE__ */jsx(Text,{tier:"compact",style:[styles2.chipLabel,picked?styles2.chipLabelPicked:null,busy?styles2.chipLabelBusy:null],children:formatClock(slot.startsAt)}),chipZone.length>0?/* @__PURE__ */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 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=useMemo(()=>makeStyles7(theme),[theme]);/* @__PURE__ */
205
205
  return jsxs(View,{style:[styles2.row,last?styles2.rowLast:null],testID:testID,children:[
206
- /* @__PURE__ */jsx(Text,{style:styles2.rowLabel,children:label}),
207
- /* @__PURE__ */jsx(Text,{style:styles2.rowValue,children:value}),action??null]})}function TelevetConsentCheckbox({label:label,checked:checked,onToggle:onToggle,testID:testID}){let theme=useEverfurTheme(),styles2=useMemo(()=>makeStyles7(theme),[theme]);/* @__PURE__ */
206
+ /* @__PURE__ */jsx(Text,{style:styles2.rowLabel,children:label}),note?/* @__PURE__ */jsxs(View,{style:styles2.rowValueStack,children:[
207
+ /* @__PURE__ */jsx(Text,{style:[styles2.rowValue,styles2.rowValueStacked],children:value}),
208
+ /* @__PURE__ */jsx(Text,{style:styles2.rowNote,testID:testID?`${testID}-note`:void 0,children:note})]}):/* @__PURE__ */jsx(Text,{style:styles2.rowValue,children:value}),action??null]})}function TelevetConsentCheckbox({label:label,checked:checked,onToggle:onToggle,testID:testID}){let theme=useEverfurTheme(),styles2=useMemo(()=>makeStyles7(theme),[theme]);/* @__PURE__ */
208
209
  return jsxs(Pressable,{onPress:()=>onToggle(!checked),accessibilityRole:"checkbox",accessibilityLabel:label,accessibilityState:{checked:checked},testID:testID,style:styles2.consent,children:[
209
210
  /* @__PURE__ */jsx(View,{style:[styles2.box,checked?styles2.boxChecked:null],children:checked?/* @__PURE__ */jsx(Text,{tier:"badge",style:styles2.tick,children:TICK}):null}),
210
211
  /* @__PURE__ */jsx(Text,{style:styles2.consentLabel,children:label})]})}var TICK="✓";function TelevetSummaryCard({children:children,testID:testID}){let theme=useEverfurTheme(),styles2=useMemo(()=>makeStyles7(theme),[theme]);/* @__PURE__ */
211
- return jsx(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 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=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 jsx(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 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=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 jsxs(View,{style:styles2.scrollRoot,testID:"televet-booking-review",children:[
213
214
  /* @__PURE__ */jsxs(ScrollView,{style:styles2.scrollBody,contentContainerStyle:local.body,keyboardShouldPersistTaps:"handled",showsVerticalScrollIndicator:false,testID:"televet-booking-review-scroll",children:[
214
215
  /* @__PURE__ */jsx(Text,{tier:"heading",style:styles2.stepTitle,accessibilityRole:"header",children:TELEVET_BOOKING_COPY.reviewHeading}),
215
- /* @__PURE__ */jsxs(TelevetSummaryCard,{testID:"televet-review-summary",children:[petName?/* @__PURE__ */jsx(TelevetSummaryRow,{label:TELEVET_BOOKING_COPY.summaryPet,value:petName,testID:"televet-review-row-pet"}):null,clinician?/* @__PURE__ */jsx(TelevetSummaryRow,{label:TELEVET_BOOKING_COPY.summaryVet,value:clinician,testID:"televet-review-row-vet"}):null,
216
+ /* @__PURE__ */jsxs(TelevetSummaryCard,{testID:"televet-review-summary",children:[petName?/* @__PURE__ */jsx(TelevetSummaryRow,{label:TELEVET_BOOKING_COPY.summaryPet,value:petName,testID:"televet-review-row-pet"}):null,clinician?/* @__PURE__ */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__ */jsx(TelevetSummaryRow,{label:TELEVET_BOOKING_COPY.summaryWhen,value:when,testID:"televet-review-row-when",action:onChangeWhen?/* @__PURE__ */jsx(TelevetButton,{label:TELEVET_BOOKING_COPY.changeCta,kind:"quiet",fullWidth:false,onPress:onChangeWhen,testID:"televet-review-change-when"}):null}),
217
218
  /* @__PURE__ */jsx(TelevetSummaryRow,{label:TELEVET_BOOKING_COPY.summaryLength,value:fill(TELEVET_BOOKING_COPY.summaryLengthTemplate,{n:String(lengthMinutes)}),testID:"televet-review-row-length"}),place?/* @__PURE__ */jsx(TelevetSummaryRow,{label:TELEVET_BOOKING_COPY.summaryWhere,value:place,testID:"televet-review-row-where"}):null,aboutLine?/* @__PURE__ */jsx(TelevetSummaryRow,{label:TELEVET_BOOKING_COPY.summaryReason,value:aboutLine,last:true,testID:"televet-review-row-reason"}):null]}),stateCode?/* @__PURE__ */jsx(TelevetConsentCheckbox,{label:attestLabel,checked:stateAttested,onToggle:onToggleStateAttest,testID:"televet-review-state-attest"}):null,cancellationTerms?/* @__PURE__ */jsx(TelevetConsentCheckbox,{label:cancellationTerms,checked:termsAttested,onToggle:onToggleTermsAttest,testID:"televet-review-terms-attest"}):null,
218
219
  /* @__PURE__ */jsx(TelevetConsentCheckbox,{label:TELEVET_BOOKING_COPY.shareRecordsOff,checked:shareRecords,onToggle:onToggleShare,testID:"televet-review-share-records"}),
@@ -234,10 +235,10 @@ return jsxs(Pressable,{onPress:onPress,accessibilityRole:"radio",accessibilityLa
234
235
  /* @__PURE__ */jsx(View,{style:local.choices,accessibilityRole:"radiogroup",testID:"televet-pets",children:pets.map(pet=>/* @__PURE__ */jsx(TelevetChoiceRow,{title:pet.name??"",meta:formatTelevetPetMetaLine(pet),selected:selectedId===pet.petRef,onPress:()=>onSelect(pet.petRef),testID:`televet-pet-${pet.petRef}`,leading:/* @__PURE__ */jsx(View,{style:local.petDisc,children:/* @__PURE__ */jsx(Text,{tier:"compact",style:local.petDiscGlyph,children:initialOf(pet.name??"")})})},pet.petRef))}),onAddPet?/* @__PURE__ */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=useMemo(()=>makeLocalStyles(theme),[theme]);if(isPending)/* @__PURE__ */
235
236
  return jsx(View,{style:styles2.list,testID:"televet-clinicians-loading",children:/* @__PURE__ */jsx(TelevetSkeletonBlock,{height:220})});if(isError)/* @__PURE__ */
236
237
  return jsx(View,{testID:"televet-clinicians-error",children:/* @__PURE__ */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 jsx(View,{testID:"televet-clinicians-empty",children:/* @__PURE__ */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 jsx(View,{testID:"televet-clinicians-empty",children:/* @__PURE__ */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 jsx(TelevetStepFrame,{heading:TELEVET_BOOKING_COPY.yourVetTitle,testID:"televet-clinicians",footer:/* @__PURE__ */jsx(TelevetButton,{label:TELEVET_BOOKING_COPY.continueCta,kind:"primary",onPress:()=>onSelect(vet.clinicianId),testID:`televet-clinician-${vet.clinicianId}`}),children:/* @__PURE__ */jsxs(View,{style:local.meet,children:[
239
240
  /* @__PURE__ */jsx(View,{style:local.vetAvatar,children:/* @__PURE__ */jsx(Text,{tier:"heading",style:local.vetAvatarText,children:clinicianInitial(vet.displayName)||PERSON_GLYPH})}),
240
- /* @__PURE__ */jsx(Text,{style:local.vetName,children:vet.credentials?`${vet.displayName}, ${vet.credentials}`:vet.displayName}),licensedHere&&stateName?/* @__PURE__ */jsx(View,{style:local.pill,testID:"televet-vet-licensed",children:/* @__PURE__ */jsx(Text,{tier:"badge",style:local.pillText,children:fill(TELEVET_BOOKING_COPY.licensedPillTemplate,{state:stateName})})}):null,vet.rating!==null&&vet.ratingCount!==null?/* @__PURE__ */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__ */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__ */jsx(View,{style:styles2.list,testID:"televet-slots-loading",children:[0,1,2].map(i=>/* @__PURE__ */jsx(TelevetSkeletonBlock,{height:48},i))}):isError?/* @__PURE__ */jsx(TelevetLoadFailed,{error:error,title:TELEVET_BOOKING_COPY.slotsErrorTitle,actionLabel:TELEVET_BOOKING_COPY.retryCta,onRetry:onRetry,testID:"televet-slots-error"}):slots.length===0?/* @__PURE__ */jsx(View,{testID:"televet-slots-empty",children:/* @__PURE__ */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__ */jsx(Text,{style:local.vetName,children:vet.credentials?`${vet.displayName}, ${vet.credentials}`:vet.displayName}),isTech?/* @__PURE__ */jsx(View,{style:local.pill,testID:"televet-vet-role",children:/* @__PURE__ */jsx(Text,{tier:"badge",style:local.pillText,children:TELEVET_BOOKING_COPY.vetTechRoleLabel})}):null,licensedHere&&stateName?/* @__PURE__ */jsx(View,{style:local.pill,testID:"televet-vet-licensed",children:/* @__PURE__ */jsx(Text,{tier:"badge",style:local.pillText,children:fill(TELEVET_BOOKING_COPY.licensedPillTemplate,{state:stateName})})}):null,isTech?/* @__PURE__ */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__ */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__ */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__ */jsx(View,{style:styles2.list,testID:"televet-slots-loading",children:[0,1,2].map(i=>/* @__PURE__ */jsx(TelevetSkeletonBlock,{height:48},i))}):isError?/* @__PURE__ */jsx(TelevetLoadFailed,{error:error,title:TELEVET_BOOKING_COPY.slotsErrorTitle,actionLabel:TELEVET_BOOKING_COPY.retryCta,onRetry:onRetry,testID:"televet-slots-error"}):slots.length===0?/* @__PURE__ */jsx(View,{testID:"televet-slots-empty",children:/* @__PURE__ */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__ */jsxs(View,{style:styles2.stepFillBox,testID:"televet-slots",children:[
242
243
  /* @__PURE__ */jsx(Text,{tier:"heading",style:styles2.stepTitle,accessibilityRole:"header",children:TELEVET_BOOKING_COPY.timeHeading}),failure2==="expired"?/* @__PURE__ */jsx(TelevetFailureLine,{message:TELEVET_BOOKING_COPY.holdExpired}):null,failure2==="taken"?/* @__PURE__ */jsx(TelevetFailureLine,{message:TELEVET_BOOKING_COPY.slotTaken}):null,failure2==="failed"||failure2==="rate_limited"?/* @__PURE__ */jsx(TelevetFailureLine,{message:TELEVET_BOOKING_COPY.confirmFailed,testID:"televet-slots-hold-failed"}):null,
243
244
  /* @__PURE__ */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__ */jsx(View,{testID:"televet-slots-unavailable",children:/* @__PURE__ */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=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 jsxs(TelevetStepFrame,{heading:fill(check.titleTemplate,{pet:petName??TEL
271
272
  /* @__PURE__ */jsx(Text,{style:local.emergencyLede,children:lede}),
272
273
  /* @__PURE__ */jsx(TelevetEmergencyExits,{petName:petName,primaryVet:primaryVet,onFindEmergencyVet:onFindEmergencyVet}),
273
274
  /* @__PURE__ */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 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=useMemo(()=>makeLocalStyles(theme),[theme]),controller=useTelevetBookingController(injected),roster=useEverfurPets(),pets=roster.pets,ownedPetCount=pets.length,ctx=useMemo(()=>({ownedPetCount:ownedPetCount,withIssues:true}),[ownedPetCount]),[state,rawDispatch]=useReducer((s,a)=>televetBookingReducer(s,a,ctx),void 0,()=>initialTelevetBookingState({ownedPetCount:0,withIssues:true},{petId:petRef??null,state:usState??null})),dispatch=useCallback(action=>rawDispatch(action),[]),[reasonText,setReasonText]=useState(""),[failure2,setFailure]=useState(null),[emergency,setEmergency]=useState(null),[stateAttested,setStateAttested]=useState(false),[termsAttested,setTermsAttested]=useState(false),[media,setMedia]=useState([]),mediaTransport=useMemo(()=>createRnChatAttachmentTransport(),[]),sendMedia=useTelevetBookingMedia({media:media,controller:controller,transport:mediaTransport}),[bookedConsult,setBookedConsult]=useState(null),{draft:draft}=state,step=currentStep(state),attestedFor=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=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;useEffect(()=>{hostState&&!draft.state&&!intake.whereTouched.current&&dispatch({type:"patch",patch:{state:hostState}})},[hostState,draft.state,dispatch]),useEffect(()=>{petRef&&!draft.petId&&dispatch({type:"patch",patch:{petId:petRef}})},[petRef,draft.petId,dispatch]);let lonePetRef=pets.length===1?pets[0]?.petRef??null:null;useEffect(()=>{lonePetRef&&!draft.petId&&dispatch({type:"patch",patch:{petId:lonePetRef}})},[lonePetRef,draft.petId,dispatch]);let stepRef=useRef(step);stepRef.current=step;let petIdRef=useRef(draft.petId);petIdRef.current=draft.petId;let settledCount=useRef(0);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;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:useCallback(next=>dispatch({type:"goTo",step:next}),[dispatch]),releaseSlot: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__ */jsxs(View,{style:[styles2.screen,style],testID:testID??"televet-booking",children:[
274
- /* @__PURE__ */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__ */jsx(TelevetVisitSimulator,{petId:draft.petId,roster:roster,onAddPet:onAddPet,onPickPet:petId=>dispatch({type:"patch",patch:{petId:petId}})}):gated?/* @__PURE__ */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__ */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__ */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__ */jsx(View,{style:styles2.stepFill,testID:"televet-booking-booked",children:bookedConsult?/* @__PURE__ */jsxs(Fragment,{children:[
275
+ /* @__PURE__ */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__ */jsx(TelevetVisitSimulator,{petId:draft.petId,roster:roster,onAddPet:onAddPet,onPickPet:petId=>dispatch({type:"patch",patch:{petId:petId}})}):gated?/* @__PURE__ */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__ */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__ */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__ */jsx(View,{style:styles2.stepFill,testID:"televet-booking-booked",children:bookedConsult?/* @__PURE__ */jsxs(Fragment,{children:[
275
276
  /* @__PURE__ */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__ */jsx(TelevetMediaDropNotice,{shortfall:sendMedia.bookedShortfall(bookedConsult),testIDPrefix:"televet-booked"})]}):null}):step==="clinician"&&clinicianOutcome?
277
278
  /* @__PURE__ */jsx(TelevetClinicianOutcome,{state:clinicianState,cause:emptyRosterCause,locationStatus:locationStatus,...onRequestLocation?{onRequestLocation:onRequestLocation}:{},onRetry:()=>clinicians.refetch(),stateInterest:noLicensedVetInterest,...renderUnavailable?{renderUnavailable:renderUnavailable}:{}}):step==="clinician"?/* @__PURE__ */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__ */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"?
@@ -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
- import { E as EverfurTelevetFlowRequest, a as EverfurTelevetFlowPresenter } from '../televetGlobal.d-CKwDCbmN.cjs';
2
+ import { E as EverfurTelevetFlowRequest, a as EverfurTelevetFlowPresenter } from '../televetGlobal.d-BWYJR391.cjs';
3
3
  import { ReactNode } from 'react';
4
- import { T as TelevetCalendarWriter, a as TelevetMediaPicker, b as TelevetPrimaryVet } from '../IntakeMedia.d-DUPR4lVM.cjs';
5
- export { c as TelevetCalendarEvent, d as TelevetIntakeMediaItem } from '../IntakeMedia.d-DUPR4lVM.cjs';
4
+ import { T as TelevetCalendarWriter, a as TelevetMediaPicker, b as TelevetPrimaryVet } from '../IntakeMedia.d-Dqc5V_YH.cjs';
5
+ export { c as TelevetCalendarEvent, d as TelevetIntakeMediaItem } from '../IntakeMedia.d-Dqc5V_YH.cjs';
6
6
  import { U as UseVetVisitOptions, a as UseVetVisitState, V as VetVisitEntry, b as VetVisitErrorReason, c as VetVisitController } from '../useVetVisit.d-BtdwhmgD.cjs';
7
7
  export { d as VetVisitAvailability, e as VetVisitHandoff, f as VetVisitHandoffOptions, g as VetVisitHandoffVisit, h as VetVisitOpenResult, i as VetVisitReturn, j as VetVisitStatus, p as parseVetVisitReturn, v as vetVisitErrorReasonOf } from '../useVetVisit.d-BtdwhmgD.cjs';
8
8
  import { StyleProp, ViewStyle, TextStyle } from 'react-native';
@@ -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
- import { E as EverfurTelevetFlowRequest, a as EverfurTelevetFlowPresenter } from '../televetGlobal.d-CC-DrqkQ.js';
2
+ import { E as EverfurTelevetFlowRequest, a as EverfurTelevetFlowPresenter } from '../televetGlobal.d-B0_jbCtC.js';
3
3
  import { ReactNode } from 'react';
4
- import { T as TelevetCalendarWriter, a as TelevetMediaPicker, b as TelevetPrimaryVet } from '../IntakeMedia.d-DGxrhgIW.js';
5
- export { c as TelevetCalendarEvent, d as TelevetIntakeMediaItem } from '../IntakeMedia.d-DGxrhgIW.js';
4
+ import { T as TelevetCalendarWriter, a as TelevetMediaPicker, b as TelevetPrimaryVet } from '../IntakeMedia.d-DNUAks9E.js';
5
+ export { c as TelevetCalendarEvent, d as TelevetIntakeMediaItem } from '../IntakeMedia.d-DNUAks9E.js';
6
6
  import { U as UseVetVisitOptions, a as UseVetVisitState, V as VetVisitEntry, b as VetVisitErrorReason, c as VetVisitController } from '../useVetVisit.d-DoYQimyt.js';
7
7
  export { d as VetVisitAvailability, e as VetVisitHandoff, f as VetVisitHandoffOptions, g as VetVisitHandoffVisit, h as VetVisitOpenResult, i as VetVisitReturn, j as VetVisitStatus, p as parseVetVisitReturn, v as vetVisitErrorReasonOf } from '../useVetVisit.d-DoYQimyt.js';
8
8
  import { StyleProp, ViewStyle, TextStyle } from 'react-native';
@@ -57,6 +57,13 @@ interface TelevetClinician {
57
57
  readonly state: string;
58
58
  readonly canPrescribe: boolean;
59
59
  }[];
60
+ /**
61
+ * The clinician's registry role, served as `clinician_role` on the roster card. `'vet_tech'` is a vet tech,
62
+ * who hosts wellness visits and never prescribes; the picker and the review summary say so. Null (or absent)
63
+ * when the server sent no role or one this build does not know, which the screens draw exactly as a vet.
64
+ * Optional so a host's own fixtures of this type keep compiling.
65
+ */
66
+ readonly role?: 'vet' | 'vet_tech' | null;
60
67
  }
61
68
  /** One bookable opening. */
62
69
  interface TelevetSlot {
@@ -57,6 +57,13 @@ interface TelevetClinician {
57
57
  readonly state: string;
58
58
  readonly canPrescribe: boolean;
59
59
  }[];
60
+ /**
61
+ * The clinician's registry role, served as `clinician_role` on the roster card. `'vet_tech'` is a vet tech,
62
+ * who hosts wellness visits and never prescribes; the picker and the review summary say so. Null (or absent)
63
+ * when the server sent no role or one this build does not know, which the screens draw exactly as a vet.
64
+ * Optional so a host's own fixtures of this type keep compiling.
65
+ */
66
+ readonly role?: 'vet' | 'vet_tech' | null;
60
67
  }
61
68
  /** One bookable opening. */
62
69
  interface TelevetSlot {
@@ -1,6 +1,6 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
2
  import { E as EverfurResult } from '../EverfurResult.d-BFH-3s6E.cjs';
3
- import { T as TransportPort, d as EverfurRequest, F as Frame } from '../config.d-BFTqU7ft.cjs';
3
+ import { T as TransportPort, d as EverfurRequest, F as Frame } from '../config.d-Z_fyOZke.cjs';
4
4
  import { C as CareOmsOrderSummary, a as CareOmsShopConfig, b as CareOmsOrder, c as CareOmsQuote } from '../omsFields.d-BHntKIAH.cjs';
5
5
  import { k as OmsAddressDetail, a as OmsBuyAgainItem, l as OmsPaymentMethod, f as OmsPlan, m as OmsPlanSkipWarning, n as OmsPrescription } from '../omsErrors.d-VF5tnr20.cjs';
6
6
  import '../EverfurError.d-8NHtlgzA.cjs';
@@ -1,6 +1,6 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
2
  import { E as EverfurResult } from '../EverfurResult.d-D_-254ZY.js';
3
- import { T as TransportPort, d as EverfurRequest, F as Frame } from '../config.d-D_k_rNZZ.js';
3
+ import { T as TransportPort, d as EverfurRequest, F as Frame } from '../config.d-KX-EkQ9j.js';
4
4
  import { C as CareOmsOrderSummary, a as CareOmsShopConfig, b as CareOmsOrder, c as CareOmsQuote } from '../omsFields.d-Cvfw8wWU.js';
5
5
  import { k as OmsAddressDetail, a as OmsBuyAgainItem, l as OmsPaymentMethod, f as OmsPlan, m as OmsPlanSkipWarning, n as OmsPrescription } from '../omsErrors.d-VF5tnr20.js';
6
6
  import '../EverfurError.d-8NHtlgzA.js';
@@ -5,21 +5,21 @@ export { B as Brand, P as PetRef, R as RecordsRequestId, _ as __brand } from '..
5
5
  export { c as EverfurFontSource, d as EverfurFontWeight } from '../../tokens.d-BUVqme2D.cjs';
6
6
  export { C as ClientBranding, R as RadiusScale, S as SurfaceStyle } from '../../branding.d-BFauULV6.cjs';
7
7
  export { b as CapabilityDisabled, D as DisabledLevel, E as EntitlementDecision } from '../../resolve.d-BTC3b6FW.cjs';
8
- export { f as EntitlementSnapshot } from '../../runtimeTypes.d-CkwEMpy8.cjs';
8
+ export { f as EntitlementSnapshot } from '../../runtimeTypes.d-sXpNYnJp.cjs';
9
9
  export { i as RecordsRequestStatus, d as RecordsRequestView, j as RecordsSimpleStatus } from '../../models.d-BSqvbTE1.cjs';
10
10
  import { ReactNode } from 'react';
11
11
  import { R as RiskTier } from '../../PhotoController.d-BzCJOE7e.cjs';
12
12
  export { EverfurTestEntitlements, RecordsSandboxActionResult, RecordsSandboxClinicReply, RecordsSandboxController, RecordsSandboxResult, VetVisitSandboxActionResult, VetVisitSandboxController, VetVisitSandboxEvent, VetVisitSandboxReminderStage, VetVisitSandboxResult, VetVisitSandboxStatus, VetVisitSandboxVisit, useEverfurRecordsSandbox, useEverfurTestEntitlements, useEverfurVetVisitSandbox } from '../web/index.cjs';
13
13
  import '../../presentation.d-Bs8xQ4gD.cjs';
14
- import '../../petsRepository.d-CyerzD5G.cjs';
15
- import '../../identity.d-BmbAwQYx.cjs';
16
- import '../../config.d-BFTqU7ft.cjs';
14
+ import '../../petsRepository.d-DEnoZn92.cjs';
15
+ import '../../identity.d-3ROlHbnP.cjs';
16
+ import '../../config.d-Z_fyOZke.cjs';
17
17
  import '../../profile.d-CSs1wlXT.cjs';
18
18
  import '../../cacheEpoch.d-DknKn3S0.cjs';
19
19
  import '../../ErrorPolicyPort.d-DirW9hgO.cjs';
20
- import '../../ports.d-CB9YZT2L.cjs';
21
- import '../../casesRepository.d-D7vIZ9oX.cjs';
22
- import '../../requestFunnel.d-DocT7FXR.cjs';
20
+ import '../../ports.d--OjPUqPb.cjs';
21
+ import '../../casesRepository.d-OyZOSNNv.cjs';
22
+ import '../../requestFunnel.d-CQX_Z1Hi.cjs';
23
23
  import '../../TelemetryPort.d-BDNr00hu.cjs';
24
24
  import '../../ports.d-BX4f4UsB.cjs';
25
25
  import '../../CameraPort.d-Cv31Pz7g.cjs';
@@ -5,21 +5,21 @@ export { B as Brand, P as PetRef, R as RecordsRequestId, _ as __brand } from '..
5
5
  export { c as EverfurFontSource, d as EverfurFontWeight } from '../../tokens.d-BUVqme2D.js';
6
6
  export { C as ClientBranding, R as RadiusScale, S as SurfaceStyle } from '../../branding.d-DpNGEdDL.js';
7
7
  export { b as CapabilityDisabled, D as DisabledLevel, E as EntitlementDecision } from '../../resolve.d-BTC3b6FW.js';
8
- export { f as EntitlementSnapshot } from '../../runtimeTypes.d-D4Cjjf_C.js';
8
+ export { f as EntitlementSnapshot } from '../../runtimeTypes.d-Be_vhOER.js';
9
9
  export { i as RecordsRequestStatus, d as RecordsRequestView, j as RecordsSimpleStatus } from '../../models.d-DOwnr8fi.js';
10
10
  import { ReactNode } from 'react';
11
11
  import { R as RiskTier } from '../../PhotoController.d-D0XiUUOl.js';
12
12
  export { EverfurTestEntitlements, RecordsSandboxActionResult, RecordsSandboxClinicReply, RecordsSandboxController, RecordsSandboxResult, VetVisitSandboxActionResult, VetVisitSandboxController, VetVisitSandboxEvent, VetVisitSandboxReminderStage, VetVisitSandboxResult, VetVisitSandboxStatus, VetVisitSandboxVisit, useEverfurRecordsSandbox, useEverfurTestEntitlements, useEverfurVetVisitSandbox } from '../web/index.js';
13
13
  import '../../presentation.d-Bs8xQ4gD.js';
14
- import '../../petsRepository.d-CLyzuoo4.js';
15
- import '../../identity.d-BZXPu9Hi.js';
16
- import '../../config.d-D_k_rNZZ.js';
14
+ import '../../petsRepository.d-DWsChqAS.js';
15
+ import '../../identity.d-CRVNfZzQ.js';
16
+ import '../../config.d-KX-EkQ9j.js';
17
17
  import '../../profile.d-CSs1wlXT.js';
18
18
  import '../../cacheEpoch.d-DknKn3S0.js';
19
19
  import '../../ErrorPolicyPort.d-68yrE3BE.js';
20
- import '../../ports.d-RKc2C07X.js';
21
- import '../../casesRepository.d-D2SQFL27.js';
22
- import '../../requestFunnel.d-BPWf5SQf.js';
20
+ import '../../ports.d-CIfa_XF6.js';
21
+ import '../../casesRepository.d-DhI69yuj.js';
22
+ import '../../requestFunnel.d-DSvCGf4J.js';
23
23
  import '../../TelemetryPort.d-BDNr00hu.js';
24
24
  import '../../ports.d-BX4f4UsB.js';
25
25
  import '../../CameraPort.d-Cv31Pz7g.js';
@@ -1,5 +1,5 @@
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
- import { f as EntitlementSnapshot } from '../../runtimeTypes.d-CkwEMpy8.cjs';
2
+ import { f as EntitlementSnapshot } from '../../runtimeTypes.d-sXpNYnJp.cjs';
3
3
  import { E as EverfurResult } from '../../EverfurResult.d-BFH-3s6E.cjs';
4
4
  import { R as RecordsRequestId, P as PetRef } from '../../ids.d-B2GAAifq.cjs';
5
5
  export { B as Brand, _ as __brand } from '../../ids.d-B2GAAifq.cjs';
@@ -9,15 +9,15 @@ export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode } f
9
9
  export { c as EverfurFontSource, d as EverfurFontWeight } from '../../tokens.d-BUVqme2D.cjs';
10
10
  export { C as ClientBranding, R as RadiusScale, S as SurfaceStyle } from '../../branding.d-BFauULV6.cjs';
11
11
  export { b as CapabilityDisabled, D as DisabledLevel, E as EntitlementDecision } from '../../resolve.d-BTC3b6FW.cjs';
12
- import '../../petsRepository.d-CyerzD5G.cjs';
13
- import '../../identity.d-BmbAwQYx.cjs';
14
- import '../../config.d-BFTqU7ft.cjs';
12
+ import '../../petsRepository.d-DEnoZn92.cjs';
13
+ import '../../identity.d-3ROlHbnP.cjs';
14
+ import '../../config.d-Z_fyOZke.cjs';
15
15
  import '../../profile.d-CSs1wlXT.cjs';
16
16
  import '../../cacheEpoch.d-DknKn3S0.cjs';
17
17
  import '../../ErrorPolicyPort.d-DirW9hgO.cjs';
18
- import '../../ports.d-CB9YZT2L.cjs';
19
- import '../../casesRepository.d-D7vIZ9oX.cjs';
20
- import '../../requestFunnel.d-DocT7FXR.cjs';
18
+ import '../../ports.d--OjPUqPb.cjs';
19
+ import '../../casesRepository.d-OyZOSNNv.cjs';
20
+ import '../../requestFunnel.d-CQX_Z1Hi.cjs';
21
21
  import '../../TelemetryPort.d-BDNr00hu.cjs';
22
22
  import '../../ports.d-BX4f4UsB.cjs';
23
23
  import '../../CameraPort.d-Cv31Pz7g.cjs';
@@ -1,5 +1,5 @@
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
- import { f as EntitlementSnapshot } from '../../runtimeTypes.d-D4Cjjf_C.js';
2
+ import { f as EntitlementSnapshot } from '../../runtimeTypes.d-Be_vhOER.js';
3
3
  import { E as EverfurResult } from '../../EverfurResult.d-D_-254ZY.js';
4
4
  import { R as RecordsRequestId, P as PetRef } from '../../ids.d-B2GAAifq.js';
5
5
  export { B as Brand, _ as __brand } from '../../ids.d-B2GAAifq.js';
@@ -9,15 +9,15 @@ export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode } f
9
9
  export { c as EverfurFontSource, d as EverfurFontWeight } from '../../tokens.d-BUVqme2D.js';
10
10
  export { C as ClientBranding, R as RadiusScale, S as SurfaceStyle } from '../../branding.d-DpNGEdDL.js';
11
11
  export { b as CapabilityDisabled, D as DisabledLevel, E as EntitlementDecision } from '../../resolve.d-BTC3b6FW.js';
12
- import '../../petsRepository.d-CLyzuoo4.js';
13
- import '../../identity.d-BZXPu9Hi.js';
14
- import '../../config.d-D_k_rNZZ.js';
12
+ import '../../petsRepository.d-DWsChqAS.js';
13
+ import '../../identity.d-CRVNfZzQ.js';
14
+ import '../../config.d-KX-EkQ9j.js';
15
15
  import '../../profile.d-CSs1wlXT.js';
16
16
  import '../../cacheEpoch.d-DknKn3S0.js';
17
17
  import '../../ErrorPolicyPort.d-68yrE3BE.js';
18
- import '../../ports.d-RKc2C07X.js';
19
- import '../../casesRepository.d-D2SQFL27.js';
20
- import '../../requestFunnel.d-BPWf5SQf.js';
18
+ import '../../ports.d-CIfa_XF6.js';
19
+ import '../../casesRepository.d-DhI69yuj.js';
20
+ import '../../requestFunnel.d-DSvCGf4J.js';
21
21
  import '../../TelemetryPort.d-BDNr00hu.js';
22
22
  import '../../ports.d-BX4f4UsB.js';
23
23
  import '../../CameraPort.d-Cv31Pz7g.js';
@@ -4,14 +4,14 @@ import { StyleProp, ViewStyle } from 'react-native';
4
4
  import { a as CapabilityDecision } from '../resolve.d-BTC3b6FW.cjs';
5
5
  import { E as EverfurError } from '../EverfurError.d-8NHtlgzA.cjs';
6
6
  export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../EverfurError.d-8NHtlgzA.cjs';
7
- import { E as EverfurTextingViewStatus, T as TextingCopy, a as TextingBrandCopy, b as TextingAsk } from '../optInView.d-DXj2w4KU.cjs';
8
- export { C as COPY_PLACEHOLDER_PREFIX, c as EVERFUR_TEXTING_STATUSES, d as EverfurTextingChallenge, e as EverfurTextingIdentity, f as EverfurTextingInputProblem, g as EverfurTextingProfile, h as EverfurTextingReason, i as EverfurTextingState, j as EverfurTextingStatus, k as EverfurTextingVerificationInput, l as TEXTING_ASK_MAX_ASKS, m as TEXTING_ASK_SCHEDULE_KEY, n as TEXTING_ASK_SNOOZE_MS, o as TEXTING_BRAND_COPY, p as TEXTING_CODE_PATTERN, q as TEXTING_COPY, r as TEXTING_COPY_PLACEHOLDERS, s as TEXTING_UI_CODE_LENGTH, t as TextingAction, u as TextingAskDue, v as TextingAskDueInput, w as TextingAskEntry, x as TextingAskIdentity, y as TextingAskOptions, z as TextingAskScheduleRead, A as TextingAskStage, B as TextingAskThreadMessage, D as TextingAskThreadState, F as TextingCodeRefusal, G as TextingController, H as TextingPhase, I as TextingRepository, J as TextingRepositoryDeps, K as TextingRuntime, L as TextingSnapshot, M as createTextingRepository, N as createTextingRepositoryOver, O as formatTextingPhone, P as isE164, Q as isTextingAskEligible, R as parseTextingProfile, S as resolveTextingAskDue, U as textingAskThreadReady, V as textingErrorText, W as textingIdentityFromWire, X as textingInputProblemText, Y as textingOptedOutBody, Z as textingReasonOf, _ as textingSupportText, $ as toTextingE164, a0 as useEverfurTexting, a1 as useEverfurTextingProfile, a2 as useEverfurTextingRepository, a3 as useTextingAsk, a4 as validateTextingCode, a5 as validateTextingEnroll } from '../optInView.d-DXj2w4KU.cjs';
9
- export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../identity.d-BmbAwQYx.cjs';
10
- export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config.d-BFTqU7ft.cjs';
7
+ import { E as EverfurTextingViewStatus, T as TextingCopy, a as TextingBrandCopy, b as TextingAsk } from '../optInView.d-CU1U_K-B.cjs';
8
+ export { C as COPY_PLACEHOLDER_PREFIX, c as EVERFUR_TEXTING_STATUSES, d as EverfurTextingChallenge, e as EverfurTextingIdentity, f as EverfurTextingInputProblem, g as EverfurTextingProfile, h as EverfurTextingReason, i as EverfurTextingState, j as EverfurTextingStatus, k as EverfurTextingVerificationInput, l as TEXTING_ASK_MAX_ASKS, m as TEXTING_ASK_SCHEDULE_KEY, n as TEXTING_ASK_SNOOZE_MS, o as TEXTING_BRAND_COPY, p as TEXTING_CODE_PATTERN, q as TEXTING_COPY, r as TEXTING_COPY_PLACEHOLDERS, s as TEXTING_UI_CODE_LENGTH, t as TextingAction, u as TextingAskDue, v as TextingAskDueInput, w as TextingAskEntry, x as TextingAskIdentity, y as TextingAskOptions, z as TextingAskScheduleRead, A as TextingAskStage, B as TextingAskThreadMessage, D as TextingAskThreadState, F as TextingCodeRefusal, G as TextingController, H as TextingPhase, I as TextingRepository, J as TextingRepositoryDeps, K as TextingRuntime, L as TextingSnapshot, M as createTextingRepository, N as createTextingRepositoryOver, O as formatTextingPhone, P as isE164, Q as isTextingAskEligible, R as parseTextingProfile, S as resolveTextingAskDue, U as textingAskThreadReady, V as textingErrorText, W as textingIdentityFromWire, X as textingInputProblemText, Y as textingOptedOutBody, Z as textingReasonOf, _ as textingSupportText, $ as toTextingE164, a0 as useEverfurTexting, a1 as useEverfurTextingProfile, a2 as useEverfurTextingRepository, a3 as useTextingAsk, a4 as validateTextingCode, a5 as validateTextingEnroll } from '../optInView.d-CU1U_K-B.cjs';
9
+ export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../identity.d-3ROlHbnP.cjs';
10
+ export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config.d-Z_fyOZke.cjs';
11
11
  export { B as Brand, C as ConversationId, P as PetRef, R as RecordsRequestId, U as UserRef, _ as __brand } from '../ids.d-B2GAAifq.cjs';
12
12
  export { E as EverfurResult } from '../EverfurResult.d-BFH-3s6E.cjs';
13
13
  export { E as ErrorPolicyPort } from '../ErrorPolicyPort.d-DirW9hgO.cjs';
14
- import '../requestFunnel.d-DocT7FXR.cjs';
14
+ import '../requestFunnel.d-CQX_Z1Hi.cjs';
15
15
 
16
16
  interface EverfurTextingOptInProps {
17
17
  /** Called when the member's step changes (for example to `verified` or `optedOut`). A throw is swallowed. */
@@ -4,14 +4,14 @@ import { StyleProp, ViewStyle } from 'react-native';
4
4
  import { a as CapabilityDecision } from '../resolve.d-BTC3b6FW.js';
5
5
  import { E as EverfurError } from '../EverfurError.d-8NHtlgzA.js';
6
6
  export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../EverfurError.d-8NHtlgzA.js';
7
- import { E as EverfurTextingViewStatus, T as TextingCopy, a as TextingBrandCopy, b as TextingAsk } from '../optInView.d-wGSNOB86.js';
8
- export { C as COPY_PLACEHOLDER_PREFIX, c as EVERFUR_TEXTING_STATUSES, d as EverfurTextingChallenge, e as EverfurTextingIdentity, f as EverfurTextingInputProblem, g as EverfurTextingProfile, h as EverfurTextingReason, i as EverfurTextingState, j as EverfurTextingStatus, k as EverfurTextingVerificationInput, l as TEXTING_ASK_MAX_ASKS, m as TEXTING_ASK_SCHEDULE_KEY, n as TEXTING_ASK_SNOOZE_MS, o as TEXTING_BRAND_COPY, p as TEXTING_CODE_PATTERN, q as TEXTING_COPY, r as TEXTING_COPY_PLACEHOLDERS, s as TEXTING_UI_CODE_LENGTH, t as TextingAction, u as TextingAskDue, v as TextingAskDueInput, w as TextingAskEntry, x as TextingAskIdentity, y as TextingAskOptions, z as TextingAskScheduleRead, A as TextingAskStage, B as TextingAskThreadMessage, D as TextingAskThreadState, F as TextingCodeRefusal, G as TextingController, H as TextingPhase, I as TextingRepository, J as TextingRepositoryDeps, K as TextingRuntime, L as TextingSnapshot, M as createTextingRepository, N as createTextingRepositoryOver, O as formatTextingPhone, P as isE164, Q as isTextingAskEligible, R as parseTextingProfile, S as resolveTextingAskDue, U as textingAskThreadReady, V as textingErrorText, W as textingIdentityFromWire, X as textingInputProblemText, Y as textingOptedOutBody, Z as textingReasonOf, _ as textingSupportText, $ as toTextingE164, a0 as useEverfurTexting, a1 as useEverfurTextingProfile, a2 as useEverfurTextingRepository, a3 as useTextingAsk, a4 as validateTextingCode, a5 as validateTextingEnroll } from '../optInView.d-wGSNOB86.js';
9
- export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../identity.d-BZXPu9Hi.js';
10
- export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config.d-D_k_rNZZ.js';
7
+ import { E as EverfurTextingViewStatus, T as TextingCopy, a as TextingBrandCopy, b as TextingAsk } from '../optInView.d-DIGu47Lz.js';
8
+ export { C as COPY_PLACEHOLDER_PREFIX, c as EVERFUR_TEXTING_STATUSES, d as EverfurTextingChallenge, e as EverfurTextingIdentity, f as EverfurTextingInputProblem, g as EverfurTextingProfile, h as EverfurTextingReason, i as EverfurTextingState, j as EverfurTextingStatus, k as EverfurTextingVerificationInput, l as TEXTING_ASK_MAX_ASKS, m as TEXTING_ASK_SCHEDULE_KEY, n as TEXTING_ASK_SNOOZE_MS, o as TEXTING_BRAND_COPY, p as TEXTING_CODE_PATTERN, q as TEXTING_COPY, r as TEXTING_COPY_PLACEHOLDERS, s as TEXTING_UI_CODE_LENGTH, t as TextingAction, u as TextingAskDue, v as TextingAskDueInput, w as TextingAskEntry, x as TextingAskIdentity, y as TextingAskOptions, z as TextingAskScheduleRead, A as TextingAskStage, B as TextingAskThreadMessage, D as TextingAskThreadState, F as TextingCodeRefusal, G as TextingController, H as TextingPhase, I as TextingRepository, J as TextingRepositoryDeps, K as TextingRuntime, L as TextingSnapshot, M as createTextingRepository, N as createTextingRepositoryOver, O as formatTextingPhone, P as isE164, Q as isTextingAskEligible, R as parseTextingProfile, S as resolveTextingAskDue, U as textingAskThreadReady, V as textingErrorText, W as textingIdentityFromWire, X as textingInputProblemText, Y as textingOptedOutBody, Z as textingReasonOf, _ as textingSupportText, $ as toTextingE164, a0 as useEverfurTexting, a1 as useEverfurTextingProfile, a2 as useEverfurTextingRepository, a3 as useTextingAsk, a4 as validateTextingCode, a5 as validateTextingEnroll } from '../optInView.d-DIGu47Lz.js';
9
+ export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../identity.d-CRVNfZzQ.js';
10
+ export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config.d-KX-EkQ9j.js';
11
11
  export { B as Brand, C as ConversationId, P as PetRef, R as RecordsRequestId, U as UserRef, _ as __brand } from '../ids.d-B2GAAifq.js';
12
12
  export { E as EverfurResult } from '../EverfurResult.d-D_-254ZY.js';
13
13
  export { E as ErrorPolicyPort } from '../ErrorPolicyPort.d-68yrE3BE.js';
14
- import '../requestFunnel.d-BPWf5SQf.js';
14
+ import '../requestFunnel.d-DSvCGf4J.js';
15
15
 
16
16
  interface EverfurTextingOptInProps {
17
17
  /** Called when the member's step changes (for example to `verified` or `optedOut`). A throw is swallowed. */
@@ -3,8 +3,8 @@ import { ReactNode, CSSProperties } from 'react';
3
3
  import { a as CapabilityDecision } from './resolve.d-BTC3b6FW.cjs';
4
4
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
5
5
  import { P as PetRef } from './ids.d-B2GAAifq.cjs';
6
- import { b as HealthPlanItem, c as HealthPlanFocusDesign, d as HealthPlanFocusCopy, e as HealthPlanFocusClassNames, f as HealthPlanFocusIcon, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder, i as HealthPlanSubscriptionRepository, j as HealthPlanPageRepository, k as HealthPlanShopOrder, l as HealthPlanCheckoutProvider } from './focus.d-DdBbwzjP.cjs';
7
- import { H as HealthPlanBlanksFacts, a as HealthPlanPriceFormat, b as HealthPlanLayoutProps, c as HealthPlanEmptyCopy } from './usePresentation.d-COEh8Xa1.cjs';
6
+ import { b as HealthPlanItem, c as HealthPlanFocusDesign, d as HealthPlanFocusCopy, e as HealthPlanFocusClassNames, f as HealthPlanFocusIcon, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder, i as HealthPlanSubscriptionRepository, j as HealthPlanPageRepository, k as HealthPlanShopOrder, l as HealthPlanCheckoutProvider } from './focus.d-DJD4lWFB.cjs';
7
+ import { H as HealthPlanBlanksFacts, a as HealthPlanPriceFormat, b as HealthPlanLayoutProps, c as HealthPlanEmptyCopy } from './usePresentation.d-BHKhBKQn.cjs';
8
8
  import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.cjs';
9
9
  import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
10
10
  import { i as EverfurPresentationInput } from './presentation.d-Bs8xQ4gD.cjs';
@@ -3,8 +3,8 @@ import { ReactNode, CSSProperties } from 'react';
3
3
  import { a as CapabilityDecision } from './resolve.d-BTC3b6FW.js';
4
4
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
5
5
  import { P as PetRef } from './ids.d-B2GAAifq.js';
6
- import { b as HealthPlanItem, c as HealthPlanFocusDesign, d as HealthPlanFocusCopy, e as HealthPlanFocusClassNames, f as HealthPlanFocusIcon, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder, i as HealthPlanSubscriptionRepository, j as HealthPlanPageRepository, k as HealthPlanShopOrder, l as HealthPlanCheckoutProvider } from './focus.d-DOlAaNIU.js';
7
- import { H as HealthPlanBlanksFacts, a as HealthPlanPriceFormat, b as HealthPlanLayoutProps, c as HealthPlanEmptyCopy } from './usePresentation.d-WA3sfMpz.js';
6
+ import { b as HealthPlanItem, c as HealthPlanFocusDesign, d as HealthPlanFocusCopy, e as HealthPlanFocusClassNames, f as HealthPlanFocusIcon, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder, i as HealthPlanSubscriptionRepository, j as HealthPlanPageRepository, k as HealthPlanShopOrder, l as HealthPlanCheckoutProvider } from './focus.d-BPofD7ow.js';
7
+ import { H as HealthPlanBlanksFacts, a as HealthPlanPriceFormat, b as HealthPlanLayoutProps, c as HealthPlanEmptyCopy } from './usePresentation.d-CmQgbrZr.js';
8
8
  import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.js';
9
9
  import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
10
10
  import { i as EverfurPresentationInput } from './presentation.d-Bs8xQ4gD.js';
@@ -1,5 +1,5 @@
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
- import { p as RecordsTimelineView } from './depth.d-DlaIV8TV.js';
2
+ import { p as RecordsTimelineView } from './depth.d-B_qNSgXr.js';
3
3
 
4
4
  type TimelineRowKind = 'visit' | 'vaccine' | 'weight' | 'medication';
5
5
  interface TimelineRow {
@@ -1,5 +1,5 @@
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
- import { p as RecordsTimelineView } from './depth.d-CsKZkLNi.cjs';
2
+ import { p as RecordsTimelineView } from './depth.d-qVYPByPb.cjs';
3
3
 
4
4
  type TimelineRowKind = 'visit' | 'vaccine' | 'weight' | 'medication';
5
5
  interface TimelineRow {
@@ -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
- import { f as HealthPlanFocusIcon, m as HealthPlanFocusPrices, c as HealthPlanFocusDesign, b as HealthPlanItem, n as HealthPlanFocusExtra, o as HealthPlanFocusWait, p as HealthPlan, j as HealthPlanPageRepository, H as HealthPlanPage, q as HealthPlanRepository, i as HealthPlanSubscriptionRepository, r as HealthPlanSubscriptionQuote, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder } from './focus.d-DdBbwzjP.cjs';
2
+ import { f as HealthPlanFocusIcon, m as HealthPlanFocusPrices, c as HealthPlanFocusDesign, b as HealthPlanItem, n as HealthPlanFocusExtra, o as HealthPlanFocusWait, p as HealthPlan, j as HealthPlanPageRepository, H as HealthPlanPage, q as HealthPlanRepository, i as HealthPlanSubscriptionRepository, r as HealthPlanSubscriptionQuote, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder } from './focus.d-DJD4lWFB.cjs';
3
3
  import { ReactNode } from 'react';
4
4
  import { P as PetRef } from './ids.d-B2GAAifq.cjs';
5
- import { d as HealthPlanCart } from './usePresentation.d-COEh8Xa1.cjs';
5
+ import { d as HealthPlanCart } from './usePresentation.d-BHKhBKQn.cjs';
6
6
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
7
7
  import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.cjs';
8
8
  import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.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
- import { f as HealthPlanFocusIcon, m as HealthPlanFocusPrices, c as HealthPlanFocusDesign, b as HealthPlanItem, n as HealthPlanFocusExtra, o as HealthPlanFocusWait, p as HealthPlan, j as HealthPlanPageRepository, H as HealthPlanPage, q as HealthPlanRepository, i as HealthPlanSubscriptionRepository, r as HealthPlanSubscriptionQuote, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder } from './focus.d-DOlAaNIU.js';
2
+ import { f as HealthPlanFocusIcon, m as HealthPlanFocusPrices, c as HealthPlanFocusDesign, b as HealthPlanItem, n as HealthPlanFocusExtra, o as HealthPlanFocusWait, p as HealthPlan, j as HealthPlanPageRepository, H as HealthPlanPage, q as HealthPlanRepository, i as HealthPlanSubscriptionRepository, r as HealthPlanSubscriptionQuote, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder } from './focus.d-BPofD7ow.js';
3
3
  import { ReactNode } from 'react';
4
4
  import { P as PetRef } from './ids.d-B2GAAifq.js';
5
- import { d as HealthPlanCart } from './usePresentation.d-WA3sfMpz.js';
5
+ import { d as HealthPlanCart } from './usePresentation.d-CmQgbrZr.js';
6
6
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
7
7
  import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.js';
8
8
  import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
@@ -1,5 +1,5 @@
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
- import { s as HealthPlanReasonKind, b as HealthPlanItem, p as HealthPlan, q as HealthPlanRepository, t as HealthPlanPagePet, c as HealthPlanFocusDesign, H as HealthPlanPage } from './focus.d-DdBbwzjP.cjs';
2
+ import { s as HealthPlanReasonKind, b as HealthPlanItem, p as HealthPlan, q as HealthPlanRepository, t as HealthPlanPagePet, c as HealthPlanFocusDesign, H as HealthPlanPage } from './focus.d-DJD4lWFB.cjs';
3
3
  import { ReactNode } from 'react';
4
4
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
5
5
  import { P as PetRef } from './ids.d-B2GAAifq.cjs';
@@ -1,5 +1,5 @@
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
- import { s as HealthPlanReasonKind, b as HealthPlanItem, p as HealthPlan, q as HealthPlanRepository, t as HealthPlanPagePet, c as HealthPlanFocusDesign, H as HealthPlanPage } from './focus.d-DOlAaNIU.js';
2
+ import { s as HealthPlanReasonKind, b as HealthPlanItem, p as HealthPlan, q as HealthPlanRepository, t as HealthPlanPagePet, c as HealthPlanFocusDesign, H as HealthPlanPage } from './focus.d-BPofD7ow.js';
3
3
  import { ReactNode } from 'react';
4
4
  import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
5
5
  import { P as PetRef } from './ids.d-B2GAAifq.js';