@everfur/sdk 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/CHANGELOG.md +126 -0
  2. package/README.md +11 -10
  3. package/dist/{Chat.d-Dts8u_1a.d.cts → Chat.d-aycmX1CA.d.cts} +12 -4
  4. package/dist/{Chat.d-DUNTfzqC.d.ts → Chat.d-puminpyi.d.ts} +12 -4
  5. package/dist/{DepthViews.d-CubkMPbU.d.ts → DepthViews.d-BdvFZgPs.d.cts} +1 -1
  6. package/dist/{DepthViews.d-Ce2Zhnrb.d.ts → DepthViews.d-DIvxzLDf.d.ts} +1 -1
  7. package/dist/{DepthViews.d-BMU2jFPw.d.cts → DepthViews.d-Dy0Zl-s-.d.ts} +1 -1
  8. package/dist/{DepthViews.d-BIp599lz.d.cts → DepthViews.d-wLNkzk9f.d.cts} +1 -1
  9. package/dist/RecordsPage.d-9Ank15PT.d.ts +93 -0
  10. package/dist/RecordsPage.d-DMKU0IKc.d.cts +93 -0
  11. package/dist/animations/index.d.cts +5 -5
  12. package/dist/animations/index.d.ts +5 -5
  13. package/dist/{attachments.d-D1yhJjcZ.d.ts → attachments.d--sIsfk6e.d.ts} +2 -2
  14. package/dist/{attachments.d-Bp2qbHxn.d.cts → attachments.d-DNUCiyy5.d.cts} +6 -24
  15. package/dist/{attachments.d-DisnvB9R.d.cts → attachments.d-ZEpTUeWN.d.cts} +2 -2
  16. package/dist/{attachments.d-Djy9z_0Z.d.ts → attachments.d-rp3xs-Q3.d.ts} +6 -24
  17. package/dist/{bookingCopy.d-BJF6gd1A.d.ts → bookingCopy.d-D0uIIFAJ.d.ts} +2 -2
  18. package/dist/{bookingCopy.d-BlBmhAJc.d.cts → bookingCopy.d-DUrmVcLs.d.cts} +2 -2
  19. package/dist/{branding.d-DI8S400y.d.cts → branding.d-CTXTUg_8.d.cts} +1 -1
  20. package/dist/{branding.d-OIGLbQeM.d.ts → branding.d-DxJSoFce.d.ts} +1 -1
  21. package/dist/{casesRepository.d-CT2LTicS.d.cts → casesRepository.d-DCnix2pT.d.cts} +1 -1
  22. package/dist/{casesRepository.d-UsWOz9bv.d.ts → casesRepository.d-DbirgbyH.d.ts} +1 -1
  23. package/dist/chat/index.cjs +43 -41
  24. package/dist/chat/index.d.cts +26 -13
  25. package/dist/chat/index.d.ts +26 -13
  26. package/dist/chat/index.js +43 -41
  27. package/dist/client/index.cjs +2 -2
  28. package/dist/client/index.d.cts +10 -10
  29. package/dist/client/index.d.ts +10 -10
  30. package/dist/client/index.js +2 -2
  31. package/dist/clinicBatch.d-Ccmrngcu.d.cts +71 -0
  32. package/dist/clinicBatch.d-D9Ci7IpP.d.ts +71 -0
  33. package/dist/clinicModels.d-BXgKZqDb.d.cts +68 -0
  34. package/dist/clinicModels.d-CaS64-P-.d.ts +68 -0
  35. package/dist/clinicRequestProps.d-1dCtouGA.d.cts +65 -0
  36. package/dist/clinicRequestProps.d-CjsMg_OD.d.ts +65 -0
  37. package/dist/{config.d-BR3DT9ho.d.cts → config.d-DJ4mvf_w.d.cts} +1 -1
  38. package/dist/{config.d-Dy6igYlH.d.ts → config.d-MX7IKP2f.d.ts} +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-QcCgguzA.d.ts → context.d-BdnBe8Oe.d.ts} +7 -7
  42. package/dist/{context.d-Cwks0p3C.d.cts → context.d-C6MJsMpN.d.cts} +7 -7
  43. package/dist/{copy.d-CiMn2IIt.d.ts → copy.d-BIfQOoDB.d.ts} +2 -2
  44. package/dist/{copy.d-DLJTyRfT.d.cts → copy.d-C_u7shha.d.cts} +2 -2
  45. package/dist/core/index.cjs +3 -3
  46. package/dist/core/index.d.cts +20 -18
  47. package/dist/core/index.d.ts +20 -18
  48. package/dist/core/index.js +3 -3
  49. package/dist/{depth.d-OSALbYM7.d.ts → depth.d-COFxYWLU.d.ts} +6 -133
  50. package/dist/{depth.d-CjPGVPDL.d.cts → depth.d-D2e5WZuE.d.cts} +6 -133
  51. package/dist/{entitlementRepository.d-CVQa1DA1.d.cts → entitlementRepository.d-BP15dFbe.d.cts} +4 -4
  52. package/dist/{entitlementRepository.d-Cf3LbTwD.d.ts → entitlementRepository.d-DLuxnGi5.d.ts} +4 -4
  53. package/dist/{features.d-fNsGcg0R.d.ts → features.d-DrQxTw3-.d.cts} +1 -1
  54. package/dist/{features.d-fNsGcg0R.d.cts → features.d-DrQxTw3-.d.ts} +1 -1
  55. package/dist/{focus.d-DMg2ngHI.d.ts → focus.d-C0Tr0oVJ.d.ts} +109 -348
  56. package/dist/{focus.d-az9cqUz3.d.cts → focus.d-jQWp0hdK.d.cts} +109 -348
  57. package/dist/health-plan/index.cjs +165 -151
  58. package/dist/health-plan/index.d.cts +53 -11
  59. package/dist/health-plan/index.d.ts +53 -11
  60. package/dist/health-plan/index.js +169 -155
  61. package/dist/{idempotency.d-D461_DPD.d.cts → idempotency.d-DXb1BN2A.d.ts} +151 -6
  62. package/dist/{idempotency.d-WpXx9zQo.d.ts → idempotency.d-HF6fyRt2.d.cts} +151 -6
  63. package/dist/{identity.d-DzTijonw.d.ts → identity.d-BePPZ7Uv.d.ts} +1 -1
  64. package/dist/{identity.d-60LeJt_s.d.cts → identity.d-CJfnWOdH.d.cts} +1 -1
  65. package/dist/index.cjs +46 -44
  66. package/dist/index.d.cts +19 -18
  67. package/dist/index.d.ts +19 -18
  68. package/dist/index.js +46 -44
  69. package/dist/introEvents.d-BkGDT_kG.d.cts +175 -0
  70. package/dist/introEvents.d-DHlMvmC7.d.ts +175 -0
  71. package/dist/introEvents.d-dS3fJCH1.d.cts +5 -0
  72. package/dist/introEvents.d-dS3fJCH1.d.ts +5 -0
  73. package/dist/{models.d-BnLm3VAA.d.cts → models.d-BSqvbTE1.d.cts} +8 -1
  74. package/dist/{models.d-BagXhafD.d.ts → models.d-DOwnr8fi.d.ts} +8 -1
  75. package/dist/notifications/index.d.cts +4 -4
  76. package/dist/notifications/index.d.ts +4 -4
  77. package/dist/{optInView.d-CEyHR6PK.d.cts → optInView.d-0iI5JoAf.d.cts} +119 -3
  78. package/dist/{optInView.d-acKpV8V2.d.ts → optInView.d-s-w4aGN3.d.ts} +119 -3
  79. package/dist/{parse.d-C8CXyS58.d.ts → parse.d-COt1qVA6.d.ts} +1 -1
  80. package/dist/{parse.d-tEzufgJX.d.cts → parse.d-EmsgOUMQ.d.cts} +1 -1
  81. package/dist/{pets.d-C_53_fzo.d.ts → pets.d-BFT_b53y.d.ts} +1 -1
  82. package/dist/{pets.d-NbJvP_kh.d.cts → pets.d-nNAVnw7f.d.cts} +1 -1
  83. package/dist/{petsRepository.d-lp1BHRqM.d.cts → petsRepository.d-B2TpRE7r.d.cts} +1 -1
  84. package/dist/{petsRepository.d-BuGHymNx.d.ts → petsRepository.d-RGwSZcYl.d.ts} +1 -1
  85. package/dist/planSignals.d-BDbp2e-k.d.cts +126 -0
  86. package/dist/planSignals.d-DSnxKoWe.d.ts +126 -0
  87. package/dist/{ports.d-COIyN624.d.ts → ports.d-D2n4HRUy.d.ts} +4 -4
  88. package/dist/{ports.d-CEROoqnA.d.cts → ports.d-DBA_gsq5.d.cts} +4 -4
  89. package/dist/{presentation.d-DMbdad7G.d.cts → presentation.d-vy8kTGfR.d.cts} +6 -0
  90. package/dist/{presentation.d-DMbdad7G.d.ts → presentation.d-vy8kTGfR.d.ts} +6 -0
  91. package/dist/quickPrompts.d-NM_81Jc1.d.cts +19 -0
  92. package/dist/quickPrompts.d-NM_81Jc1.d.ts +19 -0
  93. package/dist/records/depth/index.d.cts +13 -9
  94. package/dist/records/depth/index.d.ts +13 -9
  95. package/dist/records/index.cjs +252 -138
  96. package/dist/records/index.d.cts +88 -23
  97. package/dist/records/index.d.ts +88 -23
  98. package/dist/records/index.js +253 -139
  99. package/dist/{requestFunnel.d-CXUMPw1K.d.ts → requestFunnel.d-D9edIEjZ.d.ts} +2 -2
  100. package/dist/{requestFunnel.d-DWQQpjFR.d.cts → requestFunnel.d-RZex94XX.d.cts} +2 -2
  101. package/dist/{resolve.d-jI8FmBj3.d.cts → resolve.d-CoQWUy1Y.d.cts} +1 -1
  102. package/dist/{resolve.d-jI8FmBj3.d.ts → resolve.d-CoQWUy1Y.d.ts} +1 -1
  103. package/dist/{runtimeTypes.d-4yFNNuYR.d.ts → runtimeTypes.d-BYq38b17.d.ts} +6 -6
  104. package/dist/{runtimeTypes.d-D6N_fhxx.d.cts → runtimeTypes.d-LkwZaF7z.d.cts} +6 -6
  105. package/dist/{useRecordsDepth.d-DFcCfiXm.d.ts → screenProps.d-BVzRzowC.d.ts} +5 -91
  106. package/dist/{useRecordsDepth.d-sAq2Qkhr.d.cts → screenProps.d-CQ0qZJkr.d.cts} +5 -91
  107. package/dist/server/events/index.cjs +1 -1
  108. package/dist/server/events/index.d.cts +2 -2
  109. package/dist/server/events/index.d.ts +2 -2
  110. package/dist/server/events/index.js +1 -1
  111. package/dist/server/index.cjs +1 -1
  112. package/dist/server/index.d.cts +3 -3
  113. package/dist/server/index.d.ts +3 -3
  114. package/dist/server/index.js +1 -1
  115. package/dist/{sheetSeam.d-Cviqk89n.d.ts → sheetSeam.d-B09jf4YC.d.ts} +8 -4
  116. package/dist/{sheetSeam.d-DCS3LW8g.d.cts → sheetSeam.d-BBuEIVsa.d.cts} +8 -4
  117. package/dist/shop/index.cjs +224 -58
  118. package/dist/shop/index.d.cts +23 -5
  119. package/dist/shop/index.d.ts +23 -5
  120. package/dist/shop/index.js +225 -59
  121. package/dist/tabs/index.cjs +195 -0
  122. package/dist/tabs/index.d.cts +174 -0
  123. package/dist/tabs/index.d.ts +174 -0
  124. package/dist/tabs/index.js +195 -0
  125. package/dist/tabsModel.d-BfIQg6yS.d.cts +31 -0
  126. package/dist/tabsModel.d-BfIQg6yS.d.ts +31 -0
  127. package/dist/televet/booking/index.d.cts +6 -6
  128. package/dist/televet/booking/index.d.ts +6 -6
  129. package/dist/testing/index.cjs +1 -1
  130. package/dist/testing/index.d.cts +1 -1
  131. package/dist/testing/index.d.ts +1 -1
  132. package/dist/testing/index.js +1 -1
  133. package/dist/testing/rn/index.cjs +1 -1
  134. package/dist/testing/rn/index.d.cts +11 -11
  135. package/dist/testing/rn/index.d.ts +11 -11
  136. package/dist/testing/rn/index.js +1 -1
  137. package/dist/testing/web/index.d.cts +12 -12
  138. package/dist/testing/web/index.d.ts +12 -12
  139. package/dist/texting/index.cjs +40 -5
  140. package/dist/texting/index.d.cts +40 -7
  141. package/dist/texting/index.d.ts +40 -7
  142. package/dist/texting/index.js +40 -5
  143. package/dist/threadOptions.d-9r4Csa7k.d.cts +458 -0
  144. package/dist/threadOptions.d-B6GA09aM.d.ts +458 -0
  145. package/dist/{timelineRows.d-CU5GvvLk.d.ts → timelineRows.d-Bes8ip2v.d.ts} +1 -1
  146. package/dist/{timelineRows.d-BNxgzYRW.d.cts → timelineRows.d-BvM2A7_G.d.cts} +1 -1
  147. package/dist/{typeStyle.d-C1HBRAI3.d.ts → typeStyle.d-Co5KF0up.d.ts} +1 -1
  148. package/dist/{typeStyle.d-Bl8pzbBy.d.cts → typeStyle.d-xIZj02Ru.d.cts} +1 -1
  149. package/dist/useIntroSeen.d-CTWFUthO.d.cts +35 -0
  150. package/dist/useIntroSeen.d-CTWFUthO.d.ts +35 -0
  151. package/dist/usePresentation.d-BGz32Vlm.d.ts +285 -0
  152. package/dist/usePresentation.d-DYTF_ZGf.d.cts +285 -0
  153. package/dist/{useRecords.d-Cb-36SF5.d.cts → useRecords.d-BYNX01El.d.cts} +2 -2
  154. package/dist/{useRecords.d-aQTzQZoV.d.ts → useRecords.d-DWk61a4c.d.ts} +2 -2
  155. package/dist/useRecordsDepth.d--LLA_4ga.d.cts +32 -0
  156. package/dist/useRecordsDepth.d-BQRL0Hez.d.ts +32 -0
  157. package/dist/{view.d-Dps5C8-s.d.cts → view.d-0yBjLTV3.d.cts} +6 -4
  158. package/dist/{view.d-C-SNpDJX.d.ts → view.d-DqbCADFa.d.ts} +6 -4
  159. package/dist/web/consent/index.d.cts +5 -5
  160. package/dist/web/consent/index.d.ts +5 -5
  161. package/dist/web/health-plan/index.cjs +50 -43
  162. package/dist/web/health-plan/index.d.cts +46 -192
  163. package/dist/web/health-plan/index.d.ts +46 -192
  164. package/dist/web/health-plan/index.js +65 -58
  165. package/dist/web/index.cjs +61 -45
  166. package/dist/web/index.d.cts +165 -25
  167. package/dist/web/index.d.ts +165 -25
  168. package/dist/web/index.js +62 -46
  169. package/dist/web/intro/index.cjs +167 -0
  170. package/dist/web/intro/index.d.cts +79 -0
  171. package/dist/web/intro/index.d.ts +79 -0
  172. package/dist/web/intro/index.js +167 -0
  173. package/dist/web/notifications/index.d.cts +3 -3
  174. package/dist/web/notifications/index.d.ts +3 -3
  175. package/dist/web/records/depth/index.d.cts +13 -9
  176. package/dist/web/records/depth/index.d.ts +13 -9
  177. package/dist/web/records/index.cjs +7 -7
  178. package/dist/web/records/index.d.cts +21 -82
  179. package/dist/web/records/index.d.ts +21 -82
  180. package/dist/web/records/index.js +7 -7
  181. package/dist/web/records-sheet/index.cjs +181 -127
  182. package/dist/web/records-sheet/index.d.cts +18 -16
  183. package/dist/web/records-sheet/index.d.ts +18 -16
  184. package/dist/web/records-sheet/index.js +181 -127
  185. package/dist/web/shop/index.cjs +191 -76
  186. package/dist/web/shop/index.d.cts +21 -4
  187. package/dist/web/shop/index.d.ts +21 -4
  188. package/dist/web/shop/index.js +191 -76
  189. package/dist/web/televet/booking/index.d.cts +6 -6
  190. package/dist/web/televet/booking/index.d.ts +6 -6
  191. package/dist/web/texting/index.cjs +36 -5
  192. package/dist/web/texting/index.d.cts +40 -7
  193. package/dist/web/texting/index.d.ts +40 -7
  194. package/dist/web/texting/index.js +36 -5
  195. package/package.json +35 -4
  196. package/tabs/package.json +8 -0
  197. package/web/intro/native-blocked.cjs +12 -0
  198. package/web/intro/package.json +8 -0
  199. package/dist/threadOptions.d-B1pTMmDF.d.cts +0 -260
  200. package/dist/threadOptions.d-B1pTMmDF.d.ts +0 -260
  201. package/dist/usePresentation.d-D6qsFzBz.d.cts +0 -9
  202. package/dist/usePresentation.d-DuGQe_Do.d.ts +0 -9
@@ -1,8 +1,8 @@
1
1
  import { ReactNode, CSSProperties } from 'react';
2
- export { D as DevicePlatform, b as EVERFUR_NOTIFICATION_EVENT_TYPES, c as EVERFUR_NOTIFICATION_TARGET_KINDS, d as EVERFUR_NOTIFICATION_VERSION, e as EverfurNotification, f as EverfurNotificationEventType, g as EverfurNotificationTarget, h as EverfurNotificationTargetKind, E as EverfurNotificationsOptions, a as EverfurNotificationsState, i as EverfurNotificationsStatus, N as NOTIFICATIONS_REASON_MESSAGES, j as NotificationPreferences, k as NotificationPreferencesInput, l as NotificationsClient, m as NotificationsReasonCode, n as NotificationsRuntime, P as PushProvider, R as RegisterDeviceInput, o as RegisteredDevice, p as createNotificationsClient, q as explainNotificationsReason, r as parseEverfurNotification, s as useEverfurNotifications, u as useEverfurNotificationsClient } from '../../parse.d-C8CXyS58.js';
2
+ export { D as DevicePlatform, b as EVERFUR_NOTIFICATION_EVENT_TYPES, c as EVERFUR_NOTIFICATION_TARGET_KINDS, d as EVERFUR_NOTIFICATION_VERSION, e as EverfurNotification, f as EverfurNotificationEventType, g as EverfurNotificationTarget, h as EverfurNotificationTargetKind, E as EverfurNotificationsOptions, a as EverfurNotificationsState, i as EverfurNotificationsStatus, N as NOTIFICATIONS_REASON_MESSAGES, j as NotificationPreferences, k as NotificationPreferencesInput, l as NotificationsClient, m as NotificationsReasonCode, n as NotificationsRuntime, P as PushProvider, R as RegisterDeviceInput, o as RegisteredDevice, p as createNotificationsClient, q as explainNotificationsReason, r as parseEverfurNotification, s as useEverfurNotifications, u as useEverfurNotificationsClient } from '../../parse.d-COt1qVA6.js';
3
3
  export { V as VetVisitIntent } from '../../visitIntent.d-D7_yVp1I.js';
4
- export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity.d-DzTijonw.js';
5
- 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-Dy6igYlH.js';
4
+ export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity.d-BePPZ7Uv.js';
5
+ 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-MX7IKP2f.js';
6
6
  export { B as Brand, C as ConversationId, P as PetRef, R as RecordsRequestId, U as UserRef, _ as __brand } from '../../ids.d-B2GAAifq.js';
7
7
  export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode } from '../../EverfurError.d-8NHtlgzA.js';
8
8
  export { E as EverfurResult } from '../../EverfurResult.d-D_-254ZY.js';
@@ -1,15 +1,19 @@
1
- export { E as EverfurDocumentContributions, a as EverfurDocumentContributionsProps, b as EverfurRecordDepth, c as EverfurRecordsDepthProps, d as EverfurRecordsTimeline } from '../../../DepthViews.d-BIp599lz.cjs';
2
- export { C as ClinicDraft, a as ClinicLocation, R as RecordsDepthStatus, b as RecordsHostSeams, c as RecordsScreen, d as RecordsScreenBaseProps, e as RecordsUrlKind, U as UseRecordsDepthState, u as useEverfurRecordsDepthClient, f as useRecordsDepthRead } from '../../../useRecordsDepth.d-sAq2Qkhr.cjs';
3
- export { T as TimelineRow, a as TimelineRowKind, b as buildTimelineRows } from '../../../timelineRows.d-BNxgzYRW.cjs';
4
- export { R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, i as RecordLabMarker, j as RecordLabPoint, k as RecordPhysicalExam, l as RecordsClinic, m as RecordsDepthClient, n as RecordsRequestDocument, o as RecordsTimelineMedication, p as RecordsTimelineVaccine, q as RecordsTimelineView, r as RecordsTimelineVisit, s as RecordsTimelineWeight, t as mapDocumentContributions, u as mapRecordDepth, v as mapRecordsTimeline } from '../../../depth.d-CjPGVPDL.cjs';
1
+ export { E as EverfurDocumentContributions, a as EverfurDocumentContributionsProps, b as EverfurRecordDepth, c as EverfurRecordsDepthProps, d as EverfurRecordsTimeline } from '../../../DepthViews.d-wLNkzk9f.cjs';
2
+ export { R as RecordsDepthStatus, U as UseRecordsDepthState, u as useEverfurRecordsDepthClient, a as useRecordsDepthRead } from '../../../useRecordsDepth.d--LLA_4ga.cjs';
3
+ export { T as TimelineRow, a as TimelineRowKind, b as buildTimelineRows } from '../../../timelineRows.d-BvM2A7_G.cjs';
4
+ export { R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, i as RecordLabMarker, j as RecordLabPoint, k as RecordPhysicalExam, l as RecordsDepthClient, m as RecordsRequestDocument, n as RecordsTimelineMedication, o as RecordsTimelineVaccine, p as RecordsTimelineView, q as RecordsTimelineVisit, r as RecordsTimelineWeight, s as mapDocumentContributions, t as mapRecordDepth, u as mapRecordsTimeline } from '../../../depth.d-D2e5WZuE.cjs';
5
+ export { C as ClinicDraft, a as ClinicLocation, R as RecordsHostSeams, b as RecordsScreen, c as RecordsScreenBaseProps, d as RecordsUrlKind } from '../../../screenProps.d-CQ0qZJkr.cjs';
5
6
  export { R as RecordsAskEntityRef, a as RecordsAskHandler } from '../../../recordsAsk.d-C5CGSi3j.cjs';
7
+ export { R as RecordsClinic } from '../../../clinicModels.d-BXgKZqDb.cjs';
6
8
  export { B as Brand, P as PetRef, R as RecordsRequestId, _ as __brand } from '../../../ids.d-B2GAAifq.cjs';
7
- export { R as RecordShareAudience } from '../../../features.d-fNsGcg0R.cjs';
9
+ export { R as RecordShareAudience } from '../../../features.d-DrQxTw3-.cjs';
8
10
  export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode } from '../../../EverfurError.d-8NHtlgzA.cjs';
9
11
  export { E as EverfurResult } from '../../../EverfurResult.d-BFH-3s6E.cjs';
10
- export { R as RecordDocumentMeta, a as RecordEntity, b as RecordOrigin } from '../../../models.d-BnLm3VAA.cjs';
12
+ export { R as RecordDocumentMeta, a as RecordEntity, b as RecordOrigin } from '../../../models.d-BSqvbTE1.cjs';
11
13
  import 'react';
12
- import '../../../requestFunnel.d-DWQQpjFR.cjs';
13
14
  import '../../../ErrorPolicyPort.d-DirW9hgO.cjs';
14
- import '../../../config.d-BR3DT9ho.cjs';
15
- import '../../../identity.d-60LeJt_s.cjs';
15
+ import '../../../requestFunnel.d-RZex94XX.cjs';
16
+ import '../../../config.d-DJ4mvf_w.cjs';
17
+ import '../../../identity.d-CJfnWOdH.cjs';
18
+ import '../../../clinicBatch.d-Ccmrngcu.cjs';
19
+ import '../../../clinicRequestProps.d-1dCtouGA.cjs';
@@ -1,15 +1,19 @@
1
- export { E as EverfurDocumentContributions, a as EverfurDocumentContributionsProps, b as EverfurRecordDepth, c as EverfurRecordsDepthProps, d as EverfurRecordsTimeline } from '../../../DepthViews.d-Ce2Zhnrb.js';
2
- export { C as ClinicDraft, a as ClinicLocation, R as RecordsDepthStatus, b as RecordsHostSeams, c as RecordsScreen, d as RecordsScreenBaseProps, e as RecordsUrlKind, U as UseRecordsDepthState, u as useEverfurRecordsDepthClient, f as useRecordsDepthRead } from '../../../useRecordsDepth.d-DFcCfiXm.js';
3
- export { T as TimelineRow, a as TimelineRowKind, b as buildTimelineRows } from '../../../timelineRows.d-CU5GvvLk.js';
4
- export { R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, i as RecordLabMarker, j as RecordLabPoint, k as RecordPhysicalExam, l as RecordsClinic, m as RecordsDepthClient, n as RecordsRequestDocument, o as RecordsTimelineMedication, p as RecordsTimelineVaccine, q as RecordsTimelineView, r as RecordsTimelineVisit, s as RecordsTimelineWeight, t as mapDocumentContributions, u as mapRecordDepth, v as mapRecordsTimeline } from '../../../depth.d-OSALbYM7.js';
1
+ export { E as EverfurDocumentContributions, a as EverfurDocumentContributionsProps, b as EverfurRecordDepth, c as EverfurRecordsDepthProps, d as EverfurRecordsTimeline } from '../../../DepthViews.d-DIvxzLDf.js';
2
+ export { R as RecordsDepthStatus, U as UseRecordsDepthState, u as useEverfurRecordsDepthClient, a as useRecordsDepthRead } from '../../../useRecordsDepth.d-BQRL0Hez.js';
3
+ export { T as TimelineRow, a as TimelineRowKind, b as buildTimelineRows } from '../../../timelineRows.d-Bes8ip2v.js';
4
+ export { R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, i as RecordLabMarker, j as RecordLabPoint, k as RecordPhysicalExam, l as RecordsDepthClient, m as RecordsRequestDocument, n as RecordsTimelineMedication, o as RecordsTimelineVaccine, p as RecordsTimelineView, q as RecordsTimelineVisit, r as RecordsTimelineWeight, s as mapDocumentContributions, t as mapRecordDepth, u as mapRecordsTimeline } from '../../../depth.d-COFxYWLU.js';
5
+ export { C as ClinicDraft, a as ClinicLocation, R as RecordsHostSeams, b as RecordsScreen, c as RecordsScreenBaseProps, d as RecordsUrlKind } from '../../../screenProps.d-BVzRzowC.js';
5
6
  export { R as RecordsAskEntityRef, a as RecordsAskHandler } from '../../../recordsAsk.d-C5CGSi3j.js';
7
+ export { R as RecordsClinic } from '../../../clinicModels.d-CaS64-P-.js';
6
8
  export { B as Brand, P as PetRef, R as RecordsRequestId, _ as __brand } from '../../../ids.d-B2GAAifq.js';
7
- export { R as RecordShareAudience } from '../../../features.d-fNsGcg0R.js';
9
+ export { R as RecordShareAudience } from '../../../features.d-DrQxTw3-.js';
8
10
  export { E as EverfurError, a as EverfurErrorCategory, b as EverfurErrorCode } from '../../../EverfurError.d-8NHtlgzA.js';
9
11
  export { E as EverfurResult } from '../../../EverfurResult.d-D_-254ZY.js';
10
- export { R as RecordDocumentMeta, a as RecordEntity, b as RecordOrigin } from '../../../models.d-BagXhafD.js';
12
+ export { R as RecordDocumentMeta, a as RecordEntity, b as RecordOrigin } from '../../../models.d-DOwnr8fi.js';
11
13
  import 'react';
12
- import '../../../requestFunnel.d-CXUMPw1K.js';
13
14
  import '../../../ErrorPolicyPort.d-68yrE3BE.js';
14
- import '../../../config.d-Dy6igYlH.js';
15
- import '../../../identity.d-DzTijonw.js';
15
+ import '../../../requestFunnel.d-D9edIEjZ.js';
16
+ import '../../../config.d-MX7IKP2f.js';
17
+ import '../../../identity.d-BePPZ7Uv.js';
18
+ import '../../../clinicBatch.d-D9Ci7IpP.js';
19
+ import '../../../clinicRequestProps.d-CjsMg_OD.js';
@@ -97,9 +97,9 @@ return Object.freeze({ok:true,value:value})}function err(error){/* @__PURE__ */
97
97
  return Object.freeze({ok:false,error:error})}var EverfurConfigError=class _EverfurConfigError extends Error{constructor(kind,message){super(message),this.name="EverfurConfigError",this.kind=kind,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var RECORD_SHARE_AUDIENCES=/* @__PURE__ */Object.freeze(["vet","groomer","boarding"]),https=/* @__PURE__ */zod.z.string().min(1).refine(value=>value.startsWith("https://")),str=/* @__PURE__ */zod.z.string().nullish(),audienceField=/* @__PURE__ */zod.z.unknown().optional(),linkSchema=/* @__PURE__ */zod.z.object({share_id:/* @__PURE__ */zod.z.string().min(1),share_url:/* @__PURE__ */zod.z.string().min(1),expires_at:str,audience:audienceField}),listSchema=/* @__PURE__ */zod.z.object({shares:/* @__PURE__ */zod.z.array(/* @__PURE__ */zod.z.object({share_id:/* @__PURE__ */zod.z.string().min(1),expires_at:str,created_at:str,view_count:/* @__PURE__ */zod.z.number().int().nonnegative().nullish(),last_viewed_at:str,audience:audienceField})).optional()}),pdfSchema=/* @__PURE__ */zod.z.object({download_url:https,expires_at:str}),emailSchema=/* @__PURE__ */zod.z.object({share_id:/* @__PURE__ */zod.z.string().min(1),expires_at:str,audience:audienceField}),scopeSchema=/* @__PURE__ */zod.z.object({audience:/* @__PURE__ */zod.z.string().min(1),sections:/* @__PURE__ */zod.z.array(/* @__PURE__ */zod.z.string()),entity_types:/* @__PURE__ */zod.z.array(/* @__PURE__ */zod.z.string()).nullable()}),SHARE_RECIPIENT_EMAIL_MAX=254;function isShareRecipientEmail(value){let trimmed=value.trim();return trimmed.length>0&&trimmed.length<=SHARE_RECIPIENT_EMAIL_MAX&&/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(trimmed)}var isAudience=value=>typeof value=="string"&&RECORD_SHARE_AUDIENCES.includes(value);function audienceOf(value){return isAudience(value)?value:null}function mapShareAudiences(wire){let parsed=zod.z.array(scopeSchema).safeParse(wire);if(!parsed.success)/* @__PURE__ */return Object.freeze([]);let seen=/* @__PURE__ */new Set,scopes=[];for(let scope of parsed.data)!isAudience(scope.audience)||seen.has(scope.audience)||(seen.add(scope.audience),scopes.push(/* @__PURE__ */Object.freeze({audience:scope.audience,sections:/* @__PURE__ */Object.freeze([...scope.sections]),entityTypes:scope.entity_types===null?null:/* @__PURE__ */Object.freeze([...scope.entity_types])}))/* @__PURE__ */);return Object.freeze(scopes)}function resolveShareUrl(shareUrl,apiBaseUrl){let trimmed=shareUrl.trim();if(trimmed.length===0)return null;try{let absolute=/^[a-z][a-z0-9+.-]*:/i.test(trimmed)?new URL(trimmed):apiBaseUrl!==void 0?new URL(trimmed,apiBaseUrl):null;return absolute===null||absolute.protocol!=="https:"?null:absolute.toString()}catch{return null}}function mapRecordShareLink(wire,apiBaseUrl){let parsed=linkSchema.safeParse(wire);if(!parsed.success)return null;let shareUrl=resolveShareUrl(parsed.data.share_url,apiBaseUrl);return shareUrl===null?null:/* @__PURE__ */Object.freeze({shareId:parsed.data.share_id,shareUrl:shareUrl,expiresAt:parsed.data.expires_at??null,audience:audienceOf(parsed.data.audience)})}function mapRecordShareList(wire){let parsed=listSchema.safeParse(wire);return parsed.success?/* @__PURE__ */Object.freeze((parsed.data.shares??[]).map(share=>/* @__PURE__ */Object.freeze({shareId:share.share_id,expiresAt:share.expires_at??null,createdAt:share.created_at??null,viewCount:share.view_count??0,lastViewedAt:share.last_viewed_at??null,audience:audienceOf(share.audience)}))):null}function mapRecordShareEmailReceipt(wire){let parsed=emailSchema.safeParse(wire);return parsed.success?/* @__PURE__ */Object.freeze({shareId:parsed.data.share_id,expiresAt:parsed.data.expires_at??null,audience:audienceOf(parsed.data.audience)}):null}function mapRecordPdfLink(wire){let parsed=pdfSchema.safeParse(wire);return parsed.success?/* @__PURE__ */Object.freeze({downloadUrl:parsed.data.download_url,expiresAt:parsed.data.expires_at??null}):null}var RECORDS_PDF_CONTENT_TYPE="application/pdf",RECORDS_PHOTO_CONTENT_TYPES=/* @__PURE__ */Object.freeze(["image/jpeg","image/png","image/heic","image/heif"]),isPhotoType=value=>RECORDS_PHOTO_CONTENT_TYPES.includes(value);function isAcceptedUploadType(type,types){return type===RECORDS_PDF_CONTENT_TYPE||types!==void 0&&isPhotoType(type)&&types.includes(type)}var FILENAMES=/* @__PURE__ */Object.freeze({"application/pdf":"document.pdf","image/jpeg":"document.jpg","image/png":"document.png","image/heic":"document.heic","image/heif":"document.heif"});function recordsUploadFilename(type){return isAcceptedUploadType(type,RECORDS_PHOTO_CONTENT_TYPES)?FILENAMES[type]:FILENAMES["application/pdf"]}var RECORDS_FEATURES_PDF_ONLY=/* @__PURE__ */Object.freeze({features:/* @__PURE__ */Object.freeze({}),uploadContentTypes:/* @__PURE__ */Object.freeze([RECORDS_PDF_CONTENT_TYPE]),shareAudiences:/* @__PURE__ */Object.freeze([])}),featuresSchema=/* @__PURE__ */zod.z.object({features:/* @__PURE__ */zod.z.record(/* @__PURE__ */zod.z.boolean()),upload_content_types:/* @__PURE__ */zod.z.array(/* @__PURE__ */zod.z.string()).nullish(),share_audiences:/* @__PURE__ */zod.z.unknown().optional()});function mapRecordsFeatures(wire){let parsed=featuresSchema.safeParse(wire);if(!parsed.success)return RECORDS_FEATURES_PDF_ONLY;let listed=parsed.data.upload_content_types??[],photos=RECORDS_PHOTO_CONTENT_TYPES.filter(type=>listed.includes(type));/* @__PURE__ */
98
98
  return Object.freeze({features:/* @__PURE__ */Object.freeze({...parsed.data.features}),uploadContentTypes:/* @__PURE__ */Object.freeze([RECORDS_PDF_CONTENT_TYPE,...photos]),shareAudiences:mapShareAudiences(parsed.data.share_audiences)})}function acceptsPhotos(types){return types!==void 0&&types.some(isPhotoType)}var KNOWN_STATUSES=/* @__PURE__ */new Set(["requested","awaiting_clinic","awaiting_upload","received","parsing","in_review","published","failed","revoked"]),STATUS_ALIASES=/* @__PURE__ */Object.freeze({submitted:"requested",sent:"requested",dispatching:"requested",awaiting_response:"awaiting_clinic",clinic_responded_no_records:"awaiting_clinic",records_received:"received",parsing_failed:"in_review",review_email_failed:"in_review",clinic_declined:"failed"});function normalizeStatus(raw){let aliased=Object.prototype.hasOwnProperty.call(STATUS_ALIASES,raw)?STATUS_ALIASES[raw]:void 0;if(aliased!==void 0)return aliased;let value=raw;return KNOWN_STATUSES.has(value)?value:"parsing"}function normalizeOrigin(raw){return raw==="owner_reported"||raw==="clinic_document"?raw:null}var requestSchema=/* @__PURE__ */zod.z.object({request_id:/* @__PURE__ */zod.z.string().min(1),pet_ref:/* @__PURE__ */zod.z.string().min(1),status:/* @__PURE__ */zod.z.string(),simple_status:/* @__PURE__ */zod.z.string().nullish(),simple_status_detail:/* @__PURE__ */zod.z.string().nullish(),status_label:/* @__PURE__ */zod.z.string().optional(),dispatch_status:/* @__PURE__ */zod.z.string().nullish(),can_retry_send:/* @__PURE__ */zod.z.boolean().optional(),can_revoke:/* @__PURE__ */zod.z.boolean().optional(),can_convert_to_upload:/* @__PURE__ */zod.z.boolean().optional(),can_update_clinic_email:/* @__PURE__ */zod.z.boolean().optional(),reminder_count:/* @__PURE__ */zod.z.number().int().nonnegative().optional(),last_reminder_at:/* @__PURE__ */zod.z.string().nullish(),waiting_expectation:/* @__PURE__ */zod.z.string().nullish(),document_count:/* @__PURE__ */zod.z.number().optional(),held_item_count:/* @__PURE__ */zod.z.number().optional(),received_at:/* @__PURE__ */zod.z.string().nullish(),parsing_started_at:/* @__PURE__ */zod.z.string().nullish(),review_started_at:/* @__PURE__ */zod.z.string().nullish(),created_at:/* @__PURE__ */zod.z.string().optional(),updated_at:/* @__PURE__ */zod.z.string().optional(),source:/* @__PURE__ */zod.z.string().nullish().catch(null),action_needed_label:/* @__PURE__ */zod.z.string().nullish().catch(null),failure_reason:/* @__PURE__ */zod.z.string().nullish().catch(null),failure_code:/* @__PURE__ */zod.z.string().nullish().catch(null),recovery_stage:/* @__PURE__ */zod.z.string().nullish().catch(null),show_clinic_phone:/* @__PURE__ */zod.z.boolean().optional().catch(void 0),clinic_name:/* @__PURE__ */zod.z.string().nullish().catch(null),clinic_email:/* @__PURE__ */zod.z.string().nullish().catch(null),clinic_phone:/* @__PURE__ */zod.z.string().nullish().catch(null),converted_to_upload_at:/* @__PURE__ */zod.z.string().nullish().catch(null),request_group_id:/* @__PURE__ */zod.z.string().nullish().catch(null)}).passthrough();function mapRequestView(wire){let parsed=requestSchema.safeParse(wire);if(!parsed.success)return null;let w=parsed.data,simpleStatus=normalizeSimpleStatus(w.simple_status),status=simpleStatus==="requested"&&(w.status==="awaiting_upload"||w.simple_status_detail==="awaiting_owner_upload")?"awaiting_upload":simpleStatus==="parsing"&&(w.simple_status_detail==="in_review"||w.simple_status_detail==="review_email_failed")?"in_review":simpleStatus??normalizeStatus(w.status);/* @__PURE__ */
99
99
  return Object.freeze({id:w.request_id,petRef:w.pet_ref,status:status,simpleStatus:simpleStatus,simpleStatusDetail:w.simple_status_detail??null,statusLabel:w.status_label??"",dispatchStatus:w.dispatch_status??null,canRetrySend:w.can_retry_send===true,canRevoke:w.can_revoke===true,canConvertToUpload:w.can_convert_to_upload===true,canUpdateClinicEmail:w.can_update_clinic_email===true,reminderCount:w.reminder_count??0,lastReminderAt:w.last_reminder_at??null,waitingExpectation:w.waiting_expectation??null,documentCount:numberOr(w.document_count,0),heldItemCount:numberOr(w.held_item_count,0),receivedAt:w.received_at??null,parsingStartedAt:w.parsing_started_at??null,reviewStartedAt:w.review_started_at??null,createdAt:w.created_at??"",updatedAt:w.updated_at??"",wireStatus:w.status,source:w.source??null,actionNeededLabel:w.action_needed_label??null,failureReason:w.failure_reason??null,failureCode:w.failure_code??null,recoveryStage:w.recovery_stage??null,showClinicPhone:w.show_clinic_phone===true,clinicName:w.clinic_name??null,clinicEmail:w.clinic_email??null,clinicPhone:w.clinic_phone??null,convertedToUploadAt:w.converted_to_upload_at??null,requestGroupId:w.request_group_id??null})}var groupSchema=/* @__PURE__ */zod.z.object({request_group_id:/* @__PURE__ */zod.z.string().min(1),pet_ref:/* @__PURE__ */zod.z.string().min(1),total:/* @__PURE__ */zod.z.number().int().nonnegative(),responded:/* @__PURE__ */zod.z.number().int().nonnegative(),pending:/* @__PURE__ */zod.z.number().int().nonnegative(),members:/* @__PURE__ */zod.z.array(/* @__PURE__ */zod.z.unknown())});function mapRequestGroup(wire){let parsed=groupSchema.safeParse(wire);if(!parsed.success)return null;let g=parsed.data,members=mapRequestList(g.members);return members.some(member=>member.petRef!==g.pet_ref)?null:/* @__PURE__ */Object.freeze({requestGroupId:g.request_group_id,petRef:g.pet_ref,total:g.total,responded:g.responded,pending:g.pending,members:members})}function normalizeSimpleStatus(raw){return!raw||raw==="awaiting_upload"||raw==="in_review"?null:KNOWN_STATUSES.has(raw)?raw:null}function mapRequestList(wire){let list=Array.isArray(wire)?wire:[],out=[];for(let entry of list){let view=mapRequestView(entry);view!==null&&out.push(view)}/* @__PURE__ */
100
- return Object.freeze(out)}var acceptedSchema=/* @__PURE__ */zod.z.object({source_doc_id:/* @__PURE__ */zod.z.string().min(1),request_id:/* @__PURE__ */zod.z.string().min(1)});function mapUploadedDocument(wire){let parsed=acceptedSchema.safeParse(wire);return parsed.success?/* @__PURE__ */Object.freeze({documentId:parsed.data.source_doc_id,requestId:parsed.data.request_id,status:"received"}):null}var identitySchema=/* @__PURE__ */zod.z.object({label:/* @__PURE__ */zod.z.string(),value:/* @__PURE__ */zod.z.string()}),entitySchema=/* @__PURE__ */zod.z.object({key:/* @__PURE__ */zod.z.string(),category:/* @__PURE__ */zod.z.string().optional(),label:/* @__PURE__ */zod.z.string().optional(),value:/* @__PURE__ */zod.z.string().nullish(),unit:/* @__PURE__ */zod.z.string().nullish(),observed_at:/* @__PURE__ */zod.z.string().nullish(),status:/* @__PURE__ */zod.z.string().nullish(),origin:/* @__PURE__ */zod.z.string().nullish(),canonical_key:/* @__PURE__ */zod.z.string().nullish()}),seriesPointSchema=/* @__PURE__ */zod.z.object({at:/* @__PURE__ */zod.z.string(),value:/* @__PURE__ */zod.z.number().nullish(),display:/* @__PURE__ */zod.z.string().nullish(),origin:/* @__PURE__ */zod.z.string().nullish()}),seriesSchema=/* @__PURE__ */zod.z.object({key:/* @__PURE__ */zod.z.string(),label:/* @__PURE__ */zod.z.string().optional(),points:/* @__PURE__ */zod.z.array(seriesPointSchema).optional()}),forwardSchema=/* @__PURE__ */zod.z.object({title:/* @__PURE__ */zod.z.string(),detail:/* @__PURE__ */zod.z.string().nullish(),due_at:/* @__PURE__ */zod.z.string().nullish()}),documentSchema=/* @__PURE__ */zod.z.object({doc_id:/* @__PURE__ */zod.z.string(),title:/* @__PURE__ */zod.z.string().nullish(),document_class:/* @__PURE__ */zod.z.string().nullish(),page_count:/* @__PURE__ */zod.z.number().nullish(),received_at:/* @__PURE__ */zod.z.string().nullish()});function mapEntityRow(e){/* @__PURE__ */
100
+ return Object.freeze(out)}var acceptedSchema=/* @__PURE__ */zod.z.object({source_doc_id:/* @__PURE__ */zod.z.string().min(1),request_id:/* @__PURE__ */zod.z.string().min(1)});function mapUploadedDocument(wire){let parsed=acceptedSchema.safeParse(wire);return parsed.success?/* @__PURE__ */Object.freeze({documentId:parsed.data.source_doc_id,requestId:parsed.data.request_id,status:"received"}):null}var identitySchema=/* @__PURE__ */zod.z.object({label:/* @__PURE__ */zod.z.string(),value:/* @__PURE__ */zod.z.string()}),entitySchema=/* @__PURE__ */zod.z.object({key:/* @__PURE__ */zod.z.string(),category:/* @__PURE__ */zod.z.string().optional(),label:/* @__PURE__ */zod.z.string().optional(),value:/* @__PURE__ */zod.z.string().nullish(),unit:/* @__PURE__ */zod.z.string().nullish(),observed_at:/* @__PURE__ */zod.z.string().nullish(),status:/* @__PURE__ */zod.z.string().nullish(),origin:/* @__PURE__ */zod.z.string().nullish(),canonical_key:/* @__PURE__ */zod.z.string().nullish()}),seriesPointSchema=/* @__PURE__ */zod.z.object({at:/* @__PURE__ */zod.z.string(),value:/* @__PURE__ */zod.z.number().nullish(),display:/* @__PURE__ */zod.z.string().nullish(),origin:/* @__PURE__ */zod.z.string().nullish()}),seriesSchema=/* @__PURE__ */zod.z.object({key:/* @__PURE__ */zod.z.string(),label:/* @__PURE__ */zod.z.string().optional(),points:/* @__PURE__ */zod.z.array(seriesPointSchema).optional()}),forwardSchema=/* @__PURE__ */zod.z.object({title:/* @__PURE__ */zod.z.string(),detail:/* @__PURE__ */zod.z.string().nullish(),due_at:/* @__PURE__ */zod.z.string().nullish(),care_item_key:/* @__PURE__ */zod.z.string().nullish(),due_date_source:/* @__PURE__ */zod.z.string().nullish()}),documentSchema=/* @__PURE__ */zod.z.object({doc_id:/* @__PURE__ */zod.z.string(),title:/* @__PURE__ */zod.z.string().nullish(),document_class:/* @__PURE__ */zod.z.string().nullish(),page_count:/* @__PURE__ */zod.z.number().nullish(),received_at:/* @__PURE__ */zod.z.string().nullish()});function mapEntityRow(e){/* @__PURE__ */
101
101
  return Object.freeze({key:e.key,category:e.category??"",label:e.label??e.key,value:e.value??null,unit:e.unit??null,observedAt:e.observed_at??null,status:e.status??null,origin:normalizeOrigin(e.origin),canonicalKey:e.canonical_key??null})}function mapDocumentRow(d){/* @__PURE__ */
102
- return Object.freeze({docId:d.doc_id,title:d.title??null,documentClass:d.document_class??null,pageCount:d.page_count??null,receivedAt:d.received_at??null})}var contentSchema=/* @__PURE__ */zod.z.object({identity:/* @__PURE__ */zod.z.array(identitySchema).optional(),entities:/* @__PURE__ */zod.z.array(entitySchema).optional(),entity_series:/* @__PURE__ */zod.z.array(seriesSchema).optional(),forward_looking:/* @__PURE__ */zod.z.array(forwardSchema).optional(),documents:/* @__PURE__ */zod.z.array(documentSchema).optional()});function mapRecordView(petRef,wire){let w=isObject(wire)?wire:{},schemaVersion=strOr(w.schema_version,"epdf/1.0"),disclaimer=strOr(w.disclaimer,""),pet=typeof w.pet_ref=="string"&&w.pet_ref.length>0?w.pet_ref:petRef;if(w.withheld===true)return withheldView(pet,schemaVersion,disclaimer);let content=contentSchema.safeParse(w);if(!content.success)return withheldView(pet,schemaVersion,disclaimer);let c=content.data,identity=(c.identity??[]).map(i=>/* @__PURE__ */Object.freeze({label:i.label,value:i.value})),entities=(c.entities??[]).map(mapEntityRow),entitySeries=(c.entity_series??[]).map(s=>/* @__PURE__ */Object.freeze({key:s.key,label:s.label??s.key,points:/* @__PURE__ */Object.freeze((s.points??[]).map(p=>/* @__PURE__ */Object.freeze({at:p.at,value:p.value??null,display:p.display??null,origin:normalizeOrigin(p.origin)})))})),forwardLooking=(c.forward_looking??[]).map(f=>/* @__PURE__ */Object.freeze({title:f.title,detail:f.detail??null,dueAt:f.due_at??null})),documents={};for(let d of c.documents??[])documents[d.doc_id]=mapDocumentRow(d);let isEmpty=w.is_empty===true||identity.length===0&&entities.length===0&&entitySeries.length===0&&forwardLooking.length===0&&Object.keys(documents).length===0;/* @__PURE__ */
102
+ return Object.freeze({docId:d.doc_id,title:d.title??null,documentClass:d.document_class??null,pageCount:d.page_count??null,receivedAt:d.received_at??null})}var contentSchema=/* @__PURE__ */zod.z.object({identity:/* @__PURE__ */zod.z.array(identitySchema).optional(),entities:/* @__PURE__ */zod.z.array(entitySchema).optional(),entity_series:/* @__PURE__ */zod.z.array(seriesSchema).optional(),forward_looking:/* @__PURE__ */zod.z.array(forwardSchema).optional(),documents:/* @__PURE__ */zod.z.array(documentSchema).optional()});function mapRecordView(petRef,wire){let w=isObject(wire)?wire:{},schemaVersion=strOr(w.schema_version,"epdf/1.0"),disclaimer=strOr(w.disclaimer,""),pet=typeof w.pet_ref=="string"&&w.pet_ref.length>0?w.pet_ref:petRef;if(w.withheld===true)return withheldView(pet,schemaVersion,disclaimer);let content=contentSchema.safeParse(w);if(!content.success)return withheldView(pet,schemaVersion,disclaimer);let c=content.data,identity=(c.identity??[]).map(i=>/* @__PURE__ */Object.freeze({label:i.label,value:i.value})),entities=(c.entities??[]).map(mapEntityRow),entitySeries=(c.entity_series??[]).map(s=>/* @__PURE__ */Object.freeze({key:s.key,label:s.label??s.key,points:/* @__PURE__ */Object.freeze((s.points??[]).map(p=>/* @__PURE__ */Object.freeze({at:p.at,value:p.value??null,display:p.display??null,origin:normalizeOrigin(p.origin)})))})),forwardLooking=(c.forward_looking??[]).map(f=>/* @__PURE__ */Object.freeze({title:f.title,detail:f.detail??null,dueAt:f.due_at??null,careItemKey:f.care_item_key??null,dueDateSource:f.due_date_source==="vet_stated"||f.due_date_source==="derived_default_rule"?f.due_date_source:null})),documents={};for(let d of c.documents??[])documents[d.doc_id]=mapDocumentRow(d);let isEmpty=w.is_empty===true||identity.length===0&&entities.length===0&&entitySeries.length===0&&forwardLooking.length===0&&Object.keys(documents).length===0;/* @__PURE__ */
103
103
  return Object.freeze({petRef:pet,schemaVersion:schemaVersion,isEmpty:isEmpty,withheld:false,generatedAt:strOrNull(w.generated_at),identity:/* @__PURE__ */Object.freeze(identity),entities:/* @__PURE__ */Object.freeze(entities),entitySeries:/* @__PURE__ */Object.freeze(entitySeries),forwardLooking:/* @__PURE__ */Object.freeze(forwardLooking),documents:/* @__PURE__ */Object.freeze(documents),disclaimer:disclaimer})}function withheldView(petRef,schemaVersion,disclaimer){/* @__PURE__ */
104
104
  return Object.freeze({petRef:petRef,schemaVersion:schemaVersion,isEmpty:false,withheld:true,generatedAt:null,identity:/* @__PURE__ */Object.freeze([]),entities:/* @__PURE__ */Object.freeze([]),entitySeries:/* @__PURE__ */Object.freeze([]),forwardLooking:/* @__PURE__ */Object.freeze([]),documents:/* @__PURE__ */Object.freeze({}),disclaimer:disclaimer})}var consentSchema=/* @__PURE__ */zod.z.object({pet_ref:/* @__PURE__ */zod.z.string().optional(),granted:/* @__PURE__ */zod.z.boolean().optional(),version:/* @__PURE__ */zod.z.string().nullish(),granted_at:/* @__PURE__ */zod.z.string().nullish()});function mapConsent(petRef,wire){let parsed=consentSchema.safeParse(wire),data=parsed.success?parsed.data:{};/* @__PURE__ */
105
105
  return Object.freeze({petRef:typeof data.pet_ref=="string"&&data.pet_ref.length>0?data.pet_ref:petRef,granted:data.granted===true,version:data.version??null,grantedAt:data.granted_at??null})}function isObject(v){return typeof v=="object"&&v!==null&&!Array.isArray(v)}function numberOr(v,fallback){return typeof v=="number"&&Number.isFinite(v)?v:fallback}function strOr(v,fallback){return typeof v=="string"&&v.length>0?v:fallback}function strOrNull(v){return typeof v=="string"&&v.length>0?v:null}var RECORDS_TERMINAL=/* @__PURE__ */Object.freeze(["published","failed","revoked"]);function isTerminalStatus(status){return RECORDS_TERMINAL.includes(status)}function recordsDenialReasonOf(error){if(error===null)return null;let reason=error.recordsReason;return reason==="consent_required"||reason==="session_required"||reason==="entitlement"||reason==="pet_not_found"?reason:null}var RECORDS_CONSENT_REQUIRED_WIRE_CODE="records_consent_required";function recordsWireCodeOf(error){let raw=error.raw;if(raw===null||typeof raw!="object")return null;let body=raw,code=typeof body.error=="object"&&body.error!==null?body.error.code:body.code;return typeof code=="string"&&code.length>0?code:null}function isRecordsConsentRequired(error){return error===null||error.httpStatus!==409?false:recordsWireCodeOf(error)===RECORDS_CONSENT_REQUIRED_WIRE_CODE}var unavailableUploadTransport=/* @__PURE__ */Object.freeze({postMultipart(){return Promise.reject(new Error("UploadTransport is unavailable; no records upload adapter was injected"))}});function isUploadTransportAvailable(transport){return transport!==unavailableUploadTransport}var noopRecordsTelemetry=/* @__PURE__ */Object.freeze({record(){}}),MAX_UPLOAD_BYTES=25*1024*1024,CONSENT_VERSION_MAX=64,IDEMPOTENCY_KEY_MAX=128,PET_REF_MAX=128,RECORDS_UPLOAD_CONTENT_TYPE="application/pdf",UPLOAD_DEADLINE_MS=9e4;function createRecordsController(deps){return new RecordsControllerImpl(deps)}var RecordsControllerImpl=class{constructor(deps){this.recordCache=/* @__PURE__ */new Map;this.consentEpoch=/* @__PURE__ */new Map;this.reportedGaps=/* @__PURE__ */new Set;this.features=RECORDS_FEATURES_PDF_ONLY;this.repository=deps.repository,this.uploads=deps.uploads,this.telemetry=deps.telemetry??noopRecordsTelemetry,this.newIdempotencyKey=deps.newIdempotencyKey??defaultIdempotencyFactory(),this.timers=deps.timers??defaultTimers,this.uploadDeadlineMs=deps.uploadDeadlineMs??UPLOAD_DEADLINE_MS}async createUploadRequest(input){let res=await this.repository.createRequest({pet_ref:input.petRef,idempotency_key:input.idempotencyKey});if(!res.ok)return this.onRequestError(res.error);let view=mapRequestView(res.value);return view===null?err(internal()):(this.observeRequest(view),ok(view))}async getRequest(id){let res=await this.repository.getRequest(id);if(!res.ok)return this.onRequestError(res.error);let view=mapRequestView(res.value);return view===null?err(internal()):(this.observeRequest(view),ok(view))}async listRequests(){let res=await this.repository.listRequests();if(!res.ok)return this.onRequestError(res.error);let views=mapRequestList(res.value);for(let view of views)this.observeRequest(view);return ok(views)}async readFeatures(){let read=this.repository.getFeatures;if(read===void 0)return this.features=RECORDS_FEATURES_PDF_ONLY;let features=RECORDS_FEATURES_PDF_ONLY;try{let res=await read.call(this.repository);res.ok&&(features=mapRecordsFeatures(res.value))}catch{}return this.features=features,features}async uploadDocument(input){let{requestId:requestId2,file:file}=input,rejection=validateFile(file,this.features.uploadContentTypes);if(rejection!==null)return this.telemetry.record("records.upload.rejected",{reason:rejection}),err(uploadFailed(`upload rejected: ${rejection}`));let initiated=await this.repository.initiateUpload(requestId2,{content_type:file.mimeType,file_size:file.sizeBytes});if(!initiated.ok)return this.onRequestError(initiated.error);let s3=await this.postToS3(initiated.value,file,input);if(!s3.ok)return this.telemetry.record("records.upload.failed",{reason:s3.reason}),err(uploadFailed(s3.reason));let completed=await this.repository.completeUpload(requestId2,{upload_id:initiated.value.upload_id});if(!completed.ok)return completed.error.code==="mediaUploadFailed"&&this.telemetry.record("records.upload.rejected",{reason:reasonFromWire(completed.error)??"corrupt"}),this.onRequestError(completed.error);let doc=mapUploadedDocument(completed.value);return doc===null?err(internal()):ok(doc)}async postToS3(policy,file,input){let deadline=new AbortController,signal=mergeSignals(deadline.signal,input.signal),handle=this.timers.setTimeout(()=>deadline.abort(),this.uploadDeadlineMs);try{let opts={signal:signal};return input.onProgress&&(opts.onProgress=input.onProgress),await this.uploads.postMultipart(policy,file,opts),{ok:!0}}catch{return{ok:false,reason:deadline.signal.aborted&&input.signal?.aborted!==true?"timeout":"upload_error"}}finally{this.timers.clearTimeout(handle)}}async getRecord(pet){let epoch=this.consentEpoch.get(pet)??0,res=await this.repository.getRecord(pet);if(epoch!==(this.consentEpoch.get(pet)??0))return err(/* @__PURE__ */Object.freeze({...makeEverfurError("accessDenied",{retryable:false}),recordsReason:"consent_required"}));if(!res.ok){let reason=recordsDenialReasonOf(res.error);return reason==="consent_required"?(this.recordCache.delete(pet),this.telemetry.record("records.consent.denied",{pet_ref:pet})):reason==="entitlement"&&this.telemetry.record("records.capability.denied",{pet_ref:pet}),err(res.error)}let view=mapRecordView(pet,res.value);return view.petRef!==pet?err(internal()):view.withheld?(this.telemetry.record("records.redaction.withheld",{pet_ref:pet}),this.recordCache.delete(pet),ok(view)):(this.recordCache.set(pet,view),ok(view))}peekCachedRecord(pet){return this.recordCache.get(pet)??null}async getConsent(pet){let res=await this.repository.getConsent(pet);return res.ok?ok(mapConsent(pet,res.value)):err(res.error)}async grantConsent(input){let res=await this.repository.putConsent(input.petRef,{consent_version:input.consentVersion,idempotency_key:input.idempotencyKey});return res.ok?ok(mapConsent(input.petRef,res.value)):(recordsDenialReasonOf(res.error)==="entitlement"&&this.telemetry.record("records.capability.denied",{pet_ref:input.petRef}),err(res.error))}async revokeConsent(pet){let res=await this.repository.deleteConsent(pet);return res.ok?(this.consentEpoch.set(pet,(this.consentEpoch.get(pet)??0)+1),this.recordCache.delete(pet),ok(mapConsent(pet,res.value))):err(res.error)}reportCapabilityDenied(pet){this.telemetry.record("records.capability.denied",pet?{pet_ref:pet}:{})}observeRequest(view){view.reviewStartedAt!==null&&!this.reportedGaps.has(view.id)&&(this.reportedGaps.add(view.id),this.telemetry.record("records.parse.gap",{request_id:view.id}))}onRequestError(error){return recordsDenialReasonOf(error)==="entitlement"&&this.telemetry.record("records.capability.denied",{}),err(error)}};function validateFile(file,types){if(!isAcceptedUploadType(file.mimeType,types))return"unsupported_format";let size=file.sizeBytes;return typeof size!="number"||!Number.isFinite(size)||size<=0||size>MAX_UPLOAD_BYTES?"oversize":null}function reasonFromWire(error){let raw=error.wireMessage;return raw==="unsupported_format"||raw==="oversize"||raw==="corrupt"?raw:null}function uploadFailed(wireMessage){return makeEverfurError("mediaUploadFailed",{retryable:false,wireMessage:wireMessage})}function internal(){return makeEverfurError("internalError",{retryable:true})}var defaultTimers={setTimeout:(handler,ms)=>setTimeout(handler,ms),clearTimeout:handle=>clearTimeout(handle)};function mergeSignals(a,b){if(!b)return a;let ctrl=new AbortController;if(a.aborted||b.aborted)return ctrl.abort(),ctrl.signal;let onAbort=()=>ctrl.abort();return a.addEventListener("abort",onAbort,{once:true}),b.addEventListener("abort",onAbort,{once:true}),ctrl.signal}function defaultIdempotencyFactory(){let counter=0;return()=>`records-${Date.now().toString(36)}-${(counter++).toString(36)}-${Math.random().toString(36).slice(2,10)}`}function assertNever(x){throw new Error(`assertNever: unhandled discriminated-union member ${JSON.stringify(x)}`)}function errorFrame(fields){/* @__PURE__ */
@@ -644,21 +644,21 @@ return jsxRuntime.jsx("li",{style:index>0?styles.rowDivider:void 0,children:/* @
644
644
  /* @__PURE__ */jsxRuntime.jsx("span",{style:styles.rowTitle,children:marker.name}),reading!==null?/* @__PURE__ */jsxRuntime.jsx("span",{style:{...styles.rowDetail,display:"block"},children:reading}):null]}),
645
645
  /* @__PURE__ */jsxRuntime.jsx(Chip,{label:status.label,tone:markerStatusTone(marker.latest?.status??null)}),
646
646
  /* @__PURE__ */jsxRuntime.jsx(Chevron,{})]})},marker.markerId)})}):null]})]}),
647
- /* @__PURE__ */jsxRuntime.jsx(MarkerProvenanceDialog,{marker:provenance?.marker??null,point:provenance?.point??null,onClose:()=>setProvenance(null),onAsk:askReading})]})}var pending=null;function loadSheetModule(){if(pending!==null)return pending;let started=import("@everfur/sdk/web/records-sheet");return pending=started,started.then(void 0,()=>{pending===started&&(pending=null)}),started}var built=null;function useRecordsPageLook(sheet){let wantsDefault=sheet===void 0,[loaded,setLoaded]=react.useState(()=>built);if(react.useEffect(()=>{if(!wantsDefault||built!==null)return;let live=true;return loadSheetModule().then(module=>{built??=module.recordsSheet(),live&&setLoaded(built)},()=>{live&&setLoaded("failed")}),()=>{live=false}},[wantsDefault]),sheet===false)return{kind:"classic"};if(sheet!==void 0)return{kind:"sheet",sheet:sheet};let ready=loaded??built;return ready==="failed"?{kind:"classic"}:ready===null?{kind:"pending"}:{kind:"sheet",sheet:ready}}var PAGE_MAX_WIDTH=1248,PAGE_ROOT=/* @__PURE__ */Object.freeze({height:"auto"}),PAGE_BODY=/* @__PURE__ */Object.freeze({overflowY:"visible",flex:"0 0 auto"});function EverfurRecordsPage(props){let{style:style,className:className,renderPending:renderPending,...rest}=guardHostProps(props,["onNavigate","onBack","onAsk","onOpenScreenings","onOpenPlan"]),{userRef:userRef}=useEverfurContext(),{styles:styles}=useScreenStyles();/* @__PURE__ */
647
+ /* @__PURE__ */jsxRuntime.jsx(MarkerProvenanceDialog,{marker:provenance?.marker??null,point:provenance?.point??null,onClose:()=>setProvenance(null),onAsk:askReading})]})}var pending=null;function loadSheetModule(){if(pending!==null)return pending;let started=import("@everfur/sdk/web/records-sheet");return pending=started,started.then(void 0,()=>{pending===started&&(pending=null)}),started}var built=null;function useRecordsPageLook(sheet){let wantsDefault=sheet===void 0,[loaded,setLoaded]=react.useState(()=>built);if(react.useEffect(()=>{if(!wantsDefault||built!==null)return;let live=true;return loadSheetModule().then(module=>{built??=module.recordsSheet(),live&&setLoaded(built)},()=>{live&&setLoaded("failed")}),()=>{live=false}},[wantsDefault]),sheet===false)return{kind:"classic"};if(sheet!==void 0)return{kind:"sheet",sheet:sheet};let ready=loaded??built;return ready==="failed"?{kind:"classic"}:ready===null?{kind:"pending"}:{kind:"sheet",sheet:ready}}var PAGE_MAX_WIDTH=1248,PAGE_ROOT=/* @__PURE__ */Object.freeze({height:"auto"}),PAGE_BODY=/* @__PURE__ */Object.freeze({overflowY:"visible",flex:"0 0 auto"}),PAGE_FOOTNOTE=/* @__PURE__ */Object.freeze({margin:"48px 0 0",padding:"0 0 16px",lineHeight:1.6});function EverfurRecordsPage(props){let{style:style,className:className,renderPending:renderPending,...rest}=guardHostProps(props,["onNavigate","onBack","onAsk","onOpenScreenings","onOpenPlan"]),{userRef:userRef}=useEverfurContext(),{styles:styles}=useScreenStyles();/* @__PURE__ */
648
648
  return jsxRuntime.jsx(CapabilityGate,{capability:"records",style:style,className:className,...renderPending?{renderPending:renderPending}:{},...recordsGateExit(rest.onBack,BACK_LABEL),children:/* @__PURE__ */jsxRuntime.jsxs("div",{className:className,style:{...styles.root,...PAGE_ROOT,...style},"data-testid":"everfur-records-page",children:[userRef===null?
649
649
  /* @__PURE__ */jsxRuntime.jsx("div",{style:{...styles.body,...PAGE_BODY},children:/* @__PURE__ */jsxRuntime.jsx(AlertState,{label:RECORDS_COPY.sessionRequired,glyph:"empty"})}):/* @__PURE__ */jsxRuntime.jsx(RecordsPageBody,{...rest}),
650
- /* @__PURE__ */jsxRuntime.jsx(RecordsFootnote,{})]})})}function RecordsPageBody(props){let{petRef:petRef,petName:petName,controller:controller,clinicController:clinicController,consentVersion:consentVersion,consentText:consentText,ownerName:ownerName,onCaptureSignature:onCaptureSignature,onNavigate:onNavigate,onOpenUrl:onOpenUrl,onCopy:onCopy,onAsk:onAsk,location:location2}=props;useConsentTextWarning2(consentVersion,consentText);let[nav,dispatch]=react.useReducer(recordsPageNavReducer,void 0,()=>initialRecordsNav()),navigate=react.useCallback(to=>{onNavigate?onNavigate(to):dispatch({type:"navigate",screen:to})},[onNavigate]),{body:body,overlay:overlay,overlayCanStepBack:overlayCanStepBack,bodyCanGoBack:bodyCanGoBack}=splitRecordsPageNav(nav),[labsOpen,setLabsOpen]=react.useState(false),[markerOpen,setMarkerOpen]=react.useState(null),look=useRecordsPageLook(props.sheet),sheet=look.kind==="sheet"?look.sheet:void 0,onOpenMarker=sheet?.onOpenMarker??setMarkerOpen,recordsOpts=react.useMemo(()=>controller?{petRef:petRef,controller:controller}:{petRef:petRef},[petRef,controller]),records=useEverfurRecords(recordsOpts),{refresh:refresh}=records,sheetWasOpen=react.useRef(false);react.useEffect(()=>{overlay!==null?sheetWasOpen.current=true:sheetWasOpen.current&&(sheetWasOpen.current=false,refresh())},[overlay,refresh]);let bodyRoot=useFocusScreenOnChange(body),ctx={petRef:petRef,petName:petName,controller:controller,clinicController:clinicController,consentVersion:consentVersion,consentText:consentText,ownerName:ownerName,onCaptureSignature:onCaptureSignature,navigate:navigate,...onOpenUrl?{onOpenUrl:onOpenUrl}:{},...onCopy?{onCopy:onCopy}:{},...onAsk?{onAsk:onAsk}:{},...location2?{location:location2}:{}},pageShown=body.name==="dashboard"||body.name==="requests";/* @__PURE__ */
650
+ /* @__PURE__ */jsxRuntime.jsx(RecordsFootnote,{style:PAGE_FOOTNOTE})]})})}function RecordsPageBody(props){let{petRef:petRef,petName:petName,controller:controller,clinicController:clinicController,consentVersion:consentVersion,consentText:consentText,ownerName:ownerName,onCaptureSignature:onCaptureSignature,onNavigate:onNavigate,onOpenUrl:onOpenUrl,onCopy:onCopy,onAsk:onAsk,location:location2}=props;useConsentTextWarning2(consentVersion,consentText);let[nav,dispatch]=react.useReducer(recordsPageNavReducer,void 0,()=>initialRecordsNav()),navigate=react.useCallback(to=>{onNavigate?onNavigate(to):dispatch({type:"navigate",screen:to})},[onNavigate]),{body:body,overlay:overlay,overlayCanStepBack:overlayCanStepBack,bodyCanGoBack:bodyCanGoBack}=splitRecordsPageNav(nav),[labsOpen,setLabsOpen]=react.useState(false),[markerOpen,setMarkerOpen]=react.useState(null),look=useRecordsPageLook(props.sheet),sheet=look.kind==="sheet"?look.sheet:void 0,onOpenMarker=sheet?.onOpenMarker??setMarkerOpen,recordsOpts=react.useMemo(()=>controller?{petRef:petRef,controller:controller}:{petRef:petRef},[petRef,controller]),records=useEverfurRecords(recordsOpts),{refresh:refresh}=records,sheetWasOpen=react.useRef(false);react.useEffect(()=>{overlay!==null?sheetWasOpen.current=true:sheetWasOpen.current&&(sheetWasOpen.current=false,refresh())},[overlay,refresh]);let bodyRoot=useFocusScreenOnChange(body),ctx={petRef:petRef,petName:petName,controller:controller,clinicController:clinicController,consentVersion:consentVersion,consentText:consentText,ownerName:ownerName,onCaptureSignature:onCaptureSignature,navigate:navigate,...onOpenUrl?{onOpenUrl:onOpenUrl}:{},...onCopy?{onCopy:onCopy}:{},...onAsk?{onAsk:onAsk}:{},...location2?{location:location2}:{}},pageShown=body.name==="dashboard"||body.name==="requests";/* @__PURE__ */
651
651
  return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[
652
652
  /* @__PURE__ */jsxRuntime.jsx("div",{ref:bodyRoot,tabIndex:-1,style:BODY_ROOT,children:pageShown&&sheet!==void 0&&markerOpen!==null?/* @__PURE__ */jsxRuntime.jsxs(RecordsFootnoteDrawnAbove.Provider,{value:true,children:[
653
653
  /* @__PURE__ */jsxRuntime.jsx(ScreenHeader,{title:"",onBack:()=>setMarkerOpen(null),testID:"everfur-records-page-lab-header"}),sheet.renderLab({petRef:petRef,markerId:markerOpen,petName:petName,onAsk:onAsk})]}):pageShown&&labsOpen?/* @__PURE__ */jsxRuntime.jsx(RecordsFootnoteDrawnAbove.Provider,{value:true,children:/* @__PURE__ */jsxRuntime.jsx(RecordsPageLabs,{petRef:petRef,petName:petName,onAsk:onAsk,onBack:()=>setLabsOpen(false)})}):pageShown?/* @__PURE__ */jsxRuntime.jsx(RecordsPageContent,{...props,sheet:sheet,sheetPending:look.kind==="pending",records:records,navigate:navigate,onOpenLabs:()=>setLabsOpen(true),onOpenMarker:onOpenMarker}):
654
- /* @__PURE__ */jsxRuntime.jsx(RecordsFootnoteDrawnAbove.Provider,{value:true,children:/* @__PURE__ */jsxRuntime.jsx(RecordsPageBodyScreenView,{screen:body,ctx:ctx,onBack:bodyCanGoBack?()=>dispatch({type:"pop"}):()=>navigate({name:"dashboard"})})})}),overlay!==null?/* @__PURE__ */jsxRuntime.jsx(RecordsPageOverlay,{screen:overlay,ctx:ctx,requests:records.requests,onBack:overlayCanStepBack?()=>dispatch({type:"pop"}):()=>dispatch({type:"closeOverlay"}),onClose:()=>dispatch({type:"closeOverlay"})}):null]})}var BODY_ROOT=/* @__PURE__ */Object.freeze({outline:"none"});function RecordsPageContent({petRef:petRef,petName:petName,consentVersion:consentVersion,consentText:consentText,onAsk:onAsk,onOpenUrl:onOpenUrl,headingLevel:hostLevel,records:records,navigate:navigate,onOpenLabs:onOpenLabs,upcomingCare:upcomingCare,renderUpcomingCareAction:renderUpcomingCareAction,historyTiles:historyTiles,onOpenScreenings:onOpenScreenings,sheet:sheet,sheetPending:sheetPending,weightUnit:weightUnit,onOpenPlan:onOpenPlan,onOpenMarker:onOpenMarker}){let{theme:theme,styles:styles}=useScreenStyles(),clinicDecision=useCapability("recordsClinic"),canRequestFromClinic=clinicDecision.enabled||clinicDecision.isPending,pageLevel=headingLevel(hostLevel??DEFAULT_ROOT_HEADING_LEVEL),PageTitle=headingTag(pageLevel),requestsHeadingId=`${react.useId()}-requests-heading`,canGrant=canGrantConsent(consentVersion,records.consent),onGrant=()=>{let version=resolveConsentVersion(consentVersion,records.consent);if(version.length!==0)return records.grantConsent(version,`records-consent-${Date.now().toString(36)}`)},column={boxSizing:"border-box",width:"100%",maxWidth:PAGE_MAX_WIDTH,margin:"0 auto",display:"flex",flexDirection:"column",gap:theme.space.lg+theme.space.xs,padding:`${theme.space.lg}px ${theme.space.lg}px ${theme.space.xxl}px`};if(records.status==="loading")/* @__PURE__ */
654
+ /* @__PURE__ */jsxRuntime.jsx(RecordsFootnoteDrawnAbove.Provider,{value:true,children:/* @__PURE__ */jsxRuntime.jsx(RecordsPageBodyScreenView,{screen:body,ctx:ctx,onBack:bodyCanGoBack?()=>dispatch({type:"pop"}):()=>navigate({name:"dashboard"})})})}),overlay!==null?/* @__PURE__ */jsxRuntime.jsx(RecordsPageOverlay,{screen:overlay,ctx:ctx,requests:records.requests,onBack:overlayCanStepBack?()=>dispatch({type:"pop"}):()=>dispatch({type:"closeOverlay"}),onClose:()=>dispatch({type:"closeOverlay"})}):null]})}var BODY_ROOT=/* @__PURE__ */Object.freeze({outline:"none"});function RecordsPageContent({petRef:petRef,petName:petName,consentVersion:consentVersion,consentText:consentText,onAsk:onAsk,onOpenUrl:onOpenUrl,headingLevel:hostLevel,records:records,navigate:navigate,onOpenLabs:onOpenLabs,upcomingCare:upcomingCare,renderUpcomingCareAction:renderUpcomingCareAction,historyTiles:historyTiles,onOpenScreenings:onOpenScreenings,sheet:sheet,sheetPending:sheetPending,weightUnit:weightUnit,onOpenPlan:onOpenPlan,onOpenMarker:onOpenMarker,onRequestFromClinic:onRequestFromClinic,noVet:noVet}){let{theme:theme,styles:styles}=useScreenStyles(),clinicDecision=useCapability("recordsClinic"),canRequestFromClinic=clinicDecision.enabled||clinicDecision.isPending,pageLevel=headingLevel(hostLevel??DEFAULT_ROOT_HEADING_LEVEL),PageTitle=headingTag(pageLevel),requestsHeadingId=`${react.useId()}-requests-heading`,canGrant=canGrantConsent(consentVersion,records.consent),{refresh:refresh}=records,requestFromClinic=()=>{if(onRequestFromClinic===void 0){navigate({name:"clinicPicker"});return}let sent=callHost(onRequestFromClinic);sent!==void 0&&Promise.resolve(sent).then(()=>refresh(),()=>refresh())},onGrant=()=>{let version=resolveConsentVersion(consentVersion,records.consent);if(version.length!==0)return records.grantConsent(version,`records-consent-${Date.now().toString(36)}`)},column={boxSizing:"border-box",width:"100%",maxWidth:PAGE_MAX_WIDTH,margin:"0 auto",display:"flex",flexDirection:"column",gap:theme.space.lg+theme.space.xs,padding:`${theme.space.lg}px ${theme.space.lg}px ${theme.space.xxl}px`};if(records.status==="loading")/* @__PURE__ */
655
655
  return jsxRuntime.jsx("div",{style:{...styles.body,...PAGE_BODY},children:/* @__PURE__ */jsxRuntime.jsx("div",{style:column,children:/* @__PURE__ */jsxRuntime.jsx(DashboardSkeleton,{testID:"everfur-records-page-loading"})})});let errorView=records.status==="error"?selectErrorView(records,canGrant):null,consentControl=errorView?.kind==="consent_required"?/* @__PURE__ */jsxRuntime.jsx("div",{"data-testid":"everfur-records-page-consent",children:/* @__PURE__ */jsxRuntime.jsx(ConsentRequiredState,{onGrant:onGrant,consentText:consentText})}):null;if(errorView!==null&&!isConsentGate(errorView)){let body=errorView.kind==="error"||errorView.kind==="pet_not_found"?/* @__PURE__ */jsxRuntime.jsx(RecordsEmptyState,{variant:recordsEmptyVariantForError(errorView.error),message:errorView.error.displayMessage,onAction:errorView.error.retryable?()=>records.refresh():void 0,testID:"everfur-records-page-error"}):renderErrorFamily(records,onGrant,canGrant,consentText);/* @__PURE__ */
656
- return jsxRuntime.jsx("div",{style:{...styles.body,...PAGE_BODY},children:/* @__PURE__ */jsxRuntime.jsx("div",{style:column,children:body})})}return sheetPending?/* @__PURE__ */jsxRuntime.jsx("div",{style:{...styles.body,...PAGE_BODY},children:/* @__PURE__ */jsxRuntime.jsx("div",{style:column,children:/* @__PURE__ */jsxRuntime.jsx(DashboardSkeleton,{testID:"everfur-records-page-loading"})})}):sheet!==void 0?/* @__PURE__ */jsxRuntime.jsx("div",{style:{...styles.body,...PAGE_BODY},"data-testid":"everfur-records-page-content",children:sheet.renderSheet({petRef:petRef,petName:petName??"",records:records,readable:consentControl===null,consentControl:consentControl,canRequestFromClinic:canRequestFromClinic,onRequest:()=>navigate({name:"clinicPicker"}),onUpload:()=>navigate({name:"upload"}),onOpenRecord:()=>navigate({name:"record"}),onOpenMarker:onOpenMarker,onOpenScreenings:onOpenScreenings,renderUpcomingCareAction:renderUpcomingCareAction,weightUnit:weightUnit,onOpenPlan:onOpenPlan})}):/* @__PURE__ */jsxRuntime.jsx("div",{style:{...styles.body,...PAGE_BODY},children:/* @__PURE__ */jsxRuntime.jsxs("div",{style:column,"data-testid":"everfur-records-page-content",children:[
656
+ return jsxRuntime.jsx("div",{style:{...styles.body,...PAGE_BODY},children:/* @__PURE__ */jsxRuntime.jsx("div",{style:column,children:body})})}return sheetPending?/* @__PURE__ */jsxRuntime.jsx("div",{style:{...styles.body,...PAGE_BODY},children:/* @__PURE__ */jsxRuntime.jsx("div",{style:column,children:/* @__PURE__ */jsxRuntime.jsx(DashboardSkeleton,{testID:"everfur-records-page-loading"})})}):sheet!==void 0?/* @__PURE__ */jsxRuntime.jsx("div",{style:{...styles.body,...PAGE_BODY},"data-testid":"everfur-records-page-content",children:sheet.renderSheet({petRef:petRef,petName:petName??"",records:records,readable:consentControl===null,consentControl:consentControl,canRequestFromClinic:canRequestFromClinic,onRequest:requestFromClinic,onUpload:()=>navigate({name:"upload"}),onOpenRecord:()=>navigate({name:"record"}),onOpenMarker:onOpenMarker,onOpenScreenings:onOpenScreenings,renderUpcomingCareAction:renderUpcomingCareAction,weightUnit:weightUnit,onOpenPlan:onOpenPlan,noVet:noVet,onOpenRequest:requestId2=>navigate({name:"request",requestId:requestId2})})}):/* @__PURE__ */jsxRuntime.jsx("div",{style:{...styles.body,...PAGE_BODY},children:/* @__PURE__ */jsxRuntime.jsxs("div",{style:column,"data-testid":"everfur-records-page-content",children:[
657
657
  /* @__PURE__ */jsxRuntime.jsxs("header",{style:{...styles.creamCard,gap:theme.space.md,padding:`${theme.space.lg+theme.space.xs}px ${theme.space.lg+theme.space.md}px`,...styles.headerSlot},"data-testid":"everfur-records-page-header",children:[
658
658
  /* @__PURE__ */jsxRuntime.jsx(BrandLogo,{logoUrl:theme.meta.logoUrl,name:theme.meta.displayName,styles:styles.pageLogo}),
659
659
  /* @__PURE__ */jsxRuntime.jsx(PageTitle,{tabIndex:-1,[SCREEN_HEADING_ATTR]:"",style:{...styles.headerTitle,whiteSpace:"normal",overflow:"visible"},children:CONSUMER_PAGE_COPY.titleFor(petName)}),
660
660
  /* @__PURE__ */jsxRuntime.jsx("p",{style:{...styles.bodyText,...styles.headerText},children:CONSUMER_PAGE_COPY.lead}),
661
- /* @__PURE__ */jsxRuntime.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:theme.space.sm},"data-testid":"everfur-records-page-actions",children:[canRequestFromClinic?/* @__PURE__ */jsxRuntime.jsx(Pill,{label:CONSUMER_PAGE_COPY.requestRecords,onClick:()=>navigate({name:"clinicPicker"}),testID:"everfur-records-page-request-records"}):null,
661
+ /* @__PURE__ */jsxRuntime.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:theme.space.sm},"data-testid":"everfur-records-page-actions",children:[canRequestFromClinic?/* @__PURE__ */jsxRuntime.jsx(Pill,{label:CONSUMER_PAGE_COPY.requestRecords,onClick:requestFromClinic,testID:"everfur-records-page-request-records"}):null,
662
662
  /* @__PURE__ */jsxRuntime.jsx(Pill,{label:CONSUMER_PAGE_COPY.uploadAction,kind:"outline",onClick:()=>navigate({name:"upload"}),testID:"everfur-records-page-upload-action"}),onAsk?/* @__PURE__ */jsxRuntime.jsx(Pill,{label:CONSUMER_PAGE_COPY.askA11y(petName),kind:"ask",ariaLabel:CONSUMER_PAGE_COPY.askA11y(petName),onClick:()=>onAsk(buildRecordsPageAskPrompt(petName),{type:"marker_summary",id:petRef}),testID:"everfur-records-page-ask"}):null]}),historyTiles===true?null:/* @__PURE__ */jsxRuntime.jsxs("nav",{style:{display:"flex",flexWrap:"wrap",columnGap:theme.space.lg,rowGap:theme.space.xs},"data-testid":"everfur-records-page-links",children:[
663
663
  /* @__PURE__ */jsxRuntime.jsx(PageLink,{label:CONSUMER_PAGE_COPY.viewRecord,onClick:()=>navigate({name:"record"}),testID:"everfur-records-page-link-record"}),
664
664
  /* @__PURE__ */jsxRuntime.jsx(PageLink,{label:CONSUMER_PAGE_COPY.viewTimeline,onClick:()=>navigate({name:"timeline"}),testID:"everfur-records-page-link-timeline"})]})]}),consentControl,upcomingCare===true&&records.record!==null&&!records.record.withheld?/* @__PURE__ */jsxRuntime.jsx(RecordsPageUpcomingCare,{items:records.record.forwardLooking,renderAction:renderUpcomingCareAction}):null,historyTiles===true?/* @__PURE__ */jsxRuntime.jsx(RecordsPageHistoryTiles,{petRef:petRef,onOpenLabs:onOpenLabs,onOpenScreenings:onOpenScreenings,onOpenRecord:()=>navigate({name:"record"}),onOpenTimeline:()=>navigate({name:"timeline"})}):null,
@@ -1,95 +1,34 @@
1
- import { R as RecordsController } from '../../useRecords.d-Cb-36SF5.cjs';
2
- export { a as RecordsStatus, b as UploadDocumentInput, c as UploadQueueItem, d as UploadSkipReason, U as UseEverfurRecordsState, u as useEverfurRecords } from '../../useRecords.d-Cb-36SF5.cjs';
1
+ import { R as RecordsController } from '../../useRecords.d-BYNX01El.cjs';
2
+ export { a as RecordsStatus, b as UploadDocumentInput, c as UploadQueueItem, d as UploadSkipReason, U as UseEverfurRecordsState, u as useEverfurRecords } from '../../useRecords.d-BYNX01El.cjs';
3
+ export { a as EverfurRecordsPage, E as EverfurRecordsPageProps } from '../../RecordsPage.d-DMKU0IKc.cjs';
4
+ export { E as EverfurRecordsSheet, a as EverfurRecordsSheetLabRenderArgs, b as EverfurRecordsSheetRenderArgs } from '../../sheetSeam.d-BBuEIVsa.cjs';
3
5
  import { CSSProperties, ReactNode, PointerEvent } from 'react';
4
- import { d as RecordsScreenBaseProps, g as RecordsClinicController, h as CaptureRecordsSignature, b as RecordsHostSeams, c as RecordsScreen, C as ClinicDraft, i as ClinicRequestBaseProps, j as ClinicBatchBaseProps, k as CapturedRecordsSignature } from '../../useRecordsDepth.d-sAq2Qkhr.cjs';
5
- export { a as ClinicLocation, R as RecordsDepthStatus, l as RecordsNavAction, m as RecordsNavState, n as RecordsSignatureContext, e as RecordsUrlKind, o as RegisterSignaturePng, p as currentRecordsScreen, q as initialRecordsNav, r as popRecordsNav, s as pushRecordsNav, t as recordsNavReducer, v as replaceRecordsNav, w as resetRecordsNav, x as transitionRecordsNav } from '../../useRecordsDepth.d-sAq2Qkhr.cjs';
6
- import { c as RecordForwardItem, d as RecordsRequestView } from '../../models.d-BnLm3VAA.cjs';
7
- export { f as ConsentState, C as CreateUploadRequestInput, G as GrantConsentInput, k as RECORDS_TERMINAL, R as RecordDocumentMeta, a as RecordEntity, l as RecordIdentityField, b as RecordOrigin, m as RecordSeries, n as RecordSeriesPoint, g as RecordsDenialReason, j as RecordsRequestGroupView, h as RecordsRequestStatus, i as RecordsSimpleStatus, e as RecordsView, U as UploadedDocument, o as isTerminalStatus, r as recordsDenialReasonOf } from '../../models.d-BnLm3VAA.cjs';
8
- import { E as EverfurRecordsSheet } from '../../sheetSeam.d-DCS3LW8g.cjs';
9
- export { a as EverfurRecordsSheetLabRenderArgs, b as EverfurRecordsSheetRenderArgs } from '../../sheetSeam.d-DCS3LW8g.cjs';
10
6
  import { P as PetRef, R as RecordsRequestId } from '../../ids.d-B2GAAifq.cjs';
11
7
  export { B as Brand, D as DocumentId, _ as __brand } from '../../ids.d-B2GAAifq.cjs';
8
+ import { R as RecordsClinicController, C as CaptureRecordsSignature, a as ClinicRequestBaseProps, b as CapturedRecordsSignature } from '../../clinicRequestProps.d-1dCtouGA.cjs';
9
+ export { c as RecordsSignatureContext } from '../../clinicRequestProps.d-1dCtouGA.cjs';
10
+ import { R as RecordsHostSeams, b as RecordsScreen, c as RecordsScreenBaseProps, C as ClinicDraft, e as ClinicBatchBaseProps } from '../../screenProps.d-CQ0qZJkr.cjs';
11
+ export { a as ClinicLocation, f as RecordsNavAction, g as RecordsNavState, d as RecordsUrlKind, h as RegisterSignaturePng, i as currentRecordsScreen, j as initialRecordsNav, p as popRecordsNav, k as pushRecordsNav, r as recordsNavReducer, l as replaceRecordsNav, m as resetRecordsNav, t as transitionRecordsNav } from '../../screenProps.d-CQ0qZJkr.cjs';
12
+ import { d as RecordsRequestView } from '../../models.d-BSqvbTE1.cjs';
13
+ export { g as ConsentState, C as CreateUploadRequestInput, G as GrantConsentInput, k as RECORDS_TERMINAL, R as RecordDocumentMeta, a as RecordEntity, c as RecordForwardItem, l as RecordIdentityField, b as RecordOrigin, m as RecordSeries, n as RecordSeriesPoint, h as RecordsDenialReason, e as RecordsRequestGroupView, i as RecordsRequestStatus, j as RecordsSimpleStatus, f as RecordsView, U as UploadedDocument, o as isTerminalStatus, r as recordsDenialReasonOf } from '../../models.d-BSqvbTE1.cjs';
12
14
  import { E as EverfurError } from '../../EverfurError.d-8NHtlgzA.cjs';
13
15
  export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../../EverfurError.d-8NHtlgzA.cjs';
14
- export { C as CreateClinicRequestBatchInput, a3 as CreateClinicRequestInput, x as FactFieldValue, A as RECORDS_CLINIC_BATCH_MAX, R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, B as RecordFactEditInput, D as RecordFactRemoveInput, i as RecordLabMarker, j as RecordLabPoint, E as RecordMarker, G as RecordMarkerLatest, I as RecordMarkerPoint, J as RecordMarkerSummary, K as RecordMarkersView, k as RecordPhysicalExam, a2 as RecordsAuthorizationCopy, L as RecordsAuthorizationSignature, l as RecordsClinic, M as RecordsClinicBatch, N as RecordsClinicBatchClient, O as RecordsClinicBatchItem, P as RecordsClinicBatchResult, $ as RecordsClinicSearchInput, a0 as RecordsClinicSearchPage, Q as RecordsClinicTarget, m as RecordsDepthClient, a1 as RecordsRecentClinicsInput, n as RecordsRequestDocument, S as RecordsSignatureSuggestion, a4 as RecordsSignatureUploadPolicy, o as RecordsTimelineMedication, p as RecordsTimelineVaccine, q as RecordsTimelineView, r as RecordsTimelineVisit, s as RecordsTimelineWeight } from '../../depth.d-CjPGVPDL.cjs';
16
+ export { w as FactFieldValue, R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, y as RecordFactEditInput, z as RecordFactRemoveInput, i as RecordLabMarker, j as RecordLabPoint, A as RecordMarker, B as RecordMarkerLatest, C as RecordMarkerPoint, D as RecordMarkerSummary, E as RecordMarkersView, k as RecordPhysicalExam, l as RecordsDepthClient, m as RecordsRequestDocument, G as RecordsSignatureSuggestion, n as RecordsTimelineMedication, o as RecordsTimelineVaccine, p as RecordsTimelineView, q as RecordsTimelineVisit, r as RecordsTimelineWeight } from '../../depth.d-D2e5WZuE.cjs';
15
17
  export { b as RecordsAsk, R as RecordsAskEntityRef, a as RecordsAskHandler } from '../../recordsAsk.d-C5CGSi3j.cjs';
16
- export { C as ClinicCall, F as FactOverlay, R as REQUEST_TIMELINE_TITLES, a as RecordSharesStatus, b as RecordsDashboardState, c as RecordsDashboardView, d as RecordsEmptyVariant, e as RequestTimelineEvent, f as RequestTimelineEventKey, g as RequestTimelineEventState, S as ShareRowView, U as UseRecordFactEditState, h as UseRecordPdfLinkState, i as UseRecordSharesState, j as UseRecordsMarkersState, k as applyFactOverlay, l as buildRequestTimeline, m as deriveRecordsDashboardState, n as isFactEditable, p as pickPetRecordsRequest, s as selectClinicCall, o as selectDashboardView, q as selectPrimaryLabel, r as selectRequestList, t as selectRequestTitle, u as useEverfurRecordsClinic, v as useEverfurRecordsClinicBatch, w as useRecordFactEdit, x as useRecordPdfLink, y as useRecordShares, z as useRecordsMarkers } from '../../view.d-Dps5C8-s.cjs';
17
- export { d as RecordPdfLink, e as RecordShare, R as RecordShareAudience, f as RecordShareAudienceScope, g as RecordShareEmailInput, h as RecordShareEmailReceipt, i as RecordShareLink, j as RecordShareRecipientKind, a as RecordsFeatures, q as RecordsPhotoContentType, b as RecordsUploadContentType, s as acceptsPhotos } from '../../features.d-fNsGcg0R.cjs';
18
- export { a as EverfurDocumentContributionsProps, c as EverfurRecordsDepthProps } from '../../DepthViews.d-BIp599lz.cjs';
18
+ export { C as ClinicCall, F as FactOverlay, R as REQUEST_TIMELINE_TITLES, a as RecordSharesStatus, b as RecordsDashboardState, c as RecordsDashboardView, d as RecordsEmptyVariant, e as RequestTimelineEvent, f as RequestTimelineEventKey, g as RequestTimelineEventState, S as ShareRowView, U as UseRecordFactEditState, h as UseRecordPdfLinkState, i as UseRecordSharesState, j as UseRecordsMarkersState, k as applyFactOverlay, l as buildRequestTimeline, m as deriveRecordsDashboardState, n as isFactEditable, p as pickPetRecordsRequest, s as selectClinicCall, o as selectDashboardView, q as selectPrimaryLabel, r as selectRequestList, t as selectRequestTitle, u as useEverfurRecordsClinic, v as useEverfurRecordsClinicBatch, w as useRecordFactEdit, x as useRecordPdfLink, y as useRecordShares, z as useRecordsMarkers } from '../../view.d-0yBjLTV3.cjs';
19
+ export { R as RecordsDepthStatus } from '../../useRecordsDepth.d--LLA_4ga.cjs';
20
+ export { g as RecordPdfLink, f as RecordShare, R as RecordShareAudience, i as RecordShareAudienceScope, d as RecordShareEmailInput, e as RecordShareEmailReceipt, c as RecordShareLink, j as RecordShareRecipientKind, a as RecordsFeatures, q as RecordsPhotoContentType, b as RecordsUploadContentType, s as acceptsPhotos } from '../../features.d-DrQxTw3-.cjs';
21
+ export { a as EverfurDocumentContributionsProps, c as EverfurRecordsDepthProps } from '../../DepthViews.d-wLNkzk9f.cjs';
22
+ export { C as CreateClinicRequestBatchInput, b as RECORDS_CLINIC_BATCH_MAX, R as RecordsClinicBatch, a as RecordsClinicBatchClient, c as RecordsClinicBatchItem, d as RecordsClinicBatchResult } from '../../clinicBatch.d-Ccmrngcu.cjs';
23
+ export { C as CreateClinicRequestInput, f as RecordsAuthorizationCopy, b as RecordsAuthorizationSignature, R as RecordsClinic, c as RecordsClinicSearchInput, d as RecordsClinicSearchPage, a as RecordsClinicTarget, e as RecordsRecentClinicsInput, g as RecordsSignatureUploadPolicy } from '../../clinicModels.d-BXgKZqDb.cjs';
19
24
  export { WebRecordsUploadTransportOptions, createWebRecordsUploadTransport } from './upload/index.cjs';
20
25
  import { F as FileHandle } from '../../ports.d-BX4f4UsB.cjs';
21
26
  export { a as UploadPolicyWire, U as UploadTransport } from '../../ports.d-BX4f4UsB.cjs';
22
27
  export { E as EverfurResult } from '../../EverfurResult.d-BFH-3s6E.cjs';
23
- import '../../requestFunnel.d-DWQQpjFR.cjs';
24
28
  import '../../ErrorPolicyPort.d-DirW9hgO.cjs';
25
- import '../../config.d-BR3DT9ho.cjs';
26
- import '../../identity.d-60LeJt_s.cjs';
27
-
28
- interface EverfurRecordsPageProps extends RecordsScreenBaseProps {
29
- readonly controller?: RecordsController;
30
- /** Host/test seam over the clinic controller the `Request records` sheet uses. */
31
- readonly clinicController?: RecordsClinicController;
32
- readonly consentVersion?: string;
33
- /** Your consent text, shown above `Allow` on the consent gate; pass it with its `consentVersion`. */
34
- readonly consentText?: string;
35
- /** The owner's name the clinic authorization is signed with (the owner can correct it before signing). */
36
- readonly ownerName?: string;
37
- /** A host signature component for the clinic authorization, instead of the built-in canvas. */
38
- readonly onCaptureSignature?: CaptureRecordsSignature;
39
- /**
40
- * The heading level this page's title claims. Defaults to 2.
41
- *
42
- * THIS PAGE AND THE BOOKING FLOW USED TO DISAGREE, and that is why the prop exists. The page hardcoded
43
- * `<h2>` and the televet booking chrome hardcoded `<h1>`, so a partner mounting both in one document got two
44
- * competing top levels. A drop-in widget does not own the host page's `<h1>`: the shared default is 2 and a
45
- * host whose page IS this surface passes 1. `src/web/headingLevel.ts` carries the full argument.
46
- */
47
- readonly headingLevel?: number;
48
- readonly style?: CSSProperties;
49
- readonly className?: string;
50
- readonly renderPending?: () => ReactNode;
51
- /**
52
- * Show the record's upcoming care (rechecks, vaccinations due) as its own card on the page, under the header.
53
- * Default `false`: upcoming care shows only inside the full record (`Visits & records`), as before.
54
- */
55
- readonly upcomingCare?: boolean;
56
- /**
57
- * Only with `upcomingCare`: your own control at the end of each upcoming-care row (for example your vet entry).
58
- * Called once per row with that item; return null for a row without one. Absent, the rows have no action.
59
- */
60
- readonly renderUpcomingCareAction?: (item: RecordForwardItem) => ReactNode;
61
- /**
62
- * Draw the Records & history tiles under the header: `Labs & bloodwork` (opens the pet's lab markers on the page,
63
- * drawn only while there are markers), `Screenings` (only with `onOpenScreenings`), `Visits & records` and
64
- * `Timeline`. Default `false`: the header's two links, as before.
65
- */
66
- readonly historyTiles?: boolean;
67
- /** Only with `historyTiles` or `sheet`: where the `Screenings` tile goes. Everfur has no screenings read; absent, no tile. */
68
- readonly onOpenScreenings?: () => void;
69
- /**
70
- * The page's look. By default (absent) it is Raph's v3 records sheet: the pet's vitals, upcoming care, the Records
71
- * & history tiles, weight, medications, the history timeline and the ways to add records, or his no-records screen.
72
- * The page loads it from `@everfur/sdk/web/records-sheet` (its own subpath) while showing its loading state; pass
73
- * `recordsSheet(options)` from that subpath to set options, or `false` for the classic page (which then downloads
74
- * none of the sheet). The same flows sit behind every look (clinic request with its consent and signature, upload,
75
- * the full record). With the sheet, `upcomingCare` and `historyTiles` are implied and `renderUpcomingCareAction`
76
- * fills the overdue row.
77
- */
78
- readonly sheet?: EverfurRecordsSheet | false;
79
- /** With the sheet: the unit a weight shows in first, `'lb'` (the default) or `'kg'`. */
80
- readonly weightUnit?: 'lb' | 'kg';
81
- /** With the sheet: opens the pet's Health Plan (your tab or screen), the top risk line's button. */
82
- readonly onOpenPlan?: () => void;
83
- }
84
- /**
85
- * The records surface as a PAGE, mirroring the consumer web app: the default web records surface.
86
- *
87
- * Complete on its own: request records from a clinic (consent and signature), upload records the
88
- * member already has, every request with its status and documents, and the full record with its
89
- * vaccinations, all without leaving your page. Pass `onNavigate` only if you route those screens
90
- * yourself. `EverfurRecords` (the flow) is the React Native-shaped stack, kept for existing embeds.
91
- */
92
- declare function EverfurRecordsPage(props: EverfurRecordsPageProps): ReactNode;
29
+ import '../../requestFunnel.d-RZex94XX.cjs';
30
+ import '../../config.d-DJ4mvf_w.cjs';
31
+ import '../../identity.d-CJfnWOdH.cjs';
93
32
 
94
33
  type RecordsHistoryMode = 'memory' | 'browser';
95
34
  interface EverfurRecordsProps extends RecordsHostSeams {
@@ -353,4 +292,4 @@ declare function SignatureCanvas({ pad, disabled }: {
353
292
  readonly disabled: boolean;
354
293
  }): ReactNode;
355
294
 
356
- export { CaptureRecordsSignature, CapturedRecordsSignature, ClinicBatchBaseProps, ClinicDraft, ClinicRequestBaseProps, EverfurClinicPicker, type EverfurClinicPickerProps, EverfurClinicRequest, EverfurClinicRequestBatch, type EverfurClinicRequestBatchProps, type EverfurClinicRequestProps, EverfurError, EverfurRecordDetail, type EverfurRecordDetailProps, EverfurRecordDocument, type EverfurRecordDocumentProps, EverfurRecords, EverfurRecordsConsent, type EverfurRecordsConsentProps, EverfurRecordsDashboard, type EverfurRecordsDashboardProps, EverfurRecordsFlow, EverfurRecordsPage, type EverfurRecordsPageProps, type EverfurRecordsProps, EverfurRecordsRequest, type EverfurRecordsRequestProps, EverfurRecordsRequests, type EverfurRecordsRequestsProps, EverfurRecordsSheet, EverfurRecordsUpload, type EverfurRecordsUploadProps, FileHandle, PetRef, RECORDS_DOCUMENT_ACCEPT, RecordForwardItem, RecordsClinicController, RecordsController, type RecordsHistoryMode, RecordsHostSeams, RecordsRequestId, RecordsRequestView, RecordsScreen, RecordsScreenBaseProps, type RequestDocumentRow, RequestDocumentsList, type RequestDocumentsListProps, type RequestDocumentsStatus, SignatureCanvas, type SignatureCanvasState, type UseRequestDocumentsState, fileToHandle, isPdfBlob, isUploadableHandle, pickDocument, recordsDocumentAccept, requestDocumentRows, useRequestDocuments, useSignatureCanvas };
295
+ export { CaptureRecordsSignature, CapturedRecordsSignature, ClinicBatchBaseProps, ClinicDraft, ClinicRequestBaseProps, EverfurClinicPicker, type EverfurClinicPickerProps, EverfurClinicRequest, EverfurClinicRequestBatch, type EverfurClinicRequestBatchProps, type EverfurClinicRequestProps, EverfurError, EverfurRecordDetail, type EverfurRecordDetailProps, EverfurRecordDocument, type EverfurRecordDocumentProps, EverfurRecords, EverfurRecordsConsent, type EverfurRecordsConsentProps, EverfurRecordsDashboard, type EverfurRecordsDashboardProps, EverfurRecordsFlow, type EverfurRecordsProps, EverfurRecordsRequest, type EverfurRecordsRequestProps, EverfurRecordsRequests, type EverfurRecordsRequestsProps, EverfurRecordsUpload, type EverfurRecordsUploadProps, FileHandle, PetRef, RECORDS_DOCUMENT_ACCEPT, RecordsClinicController, RecordsController, type RecordsHistoryMode, RecordsHostSeams, RecordsRequestId, RecordsRequestView, RecordsScreen, RecordsScreenBaseProps, type RequestDocumentRow, RequestDocumentsList, type RequestDocumentsListProps, type RequestDocumentsStatus, SignatureCanvas, type SignatureCanvasState, type UseRequestDocumentsState, fileToHandle, isPdfBlob, isUploadableHandle, pickDocument, recordsDocumentAccept, requestDocumentRows, useRequestDocuments, useSignatureCanvas };
@@ -1,95 +1,34 @@
1
- import { R as RecordsController } from '../../useRecords.d-aQTzQZoV.js';
2
- export { a as RecordsStatus, b as UploadDocumentInput, c as UploadQueueItem, d as UploadSkipReason, U as UseEverfurRecordsState, u as useEverfurRecords } from '../../useRecords.d-aQTzQZoV.js';
1
+ import { R as RecordsController } from '../../useRecords.d-DWk61a4c.js';
2
+ export { a as RecordsStatus, b as UploadDocumentInput, c as UploadQueueItem, d as UploadSkipReason, U as UseEverfurRecordsState, u as useEverfurRecords } from '../../useRecords.d-DWk61a4c.js';
3
+ export { a as EverfurRecordsPage, E as EverfurRecordsPageProps } from '../../RecordsPage.d-9Ank15PT.js';
4
+ export { E as EverfurRecordsSheet, a as EverfurRecordsSheetLabRenderArgs, b as EverfurRecordsSheetRenderArgs } from '../../sheetSeam.d-B09jf4YC.js';
3
5
  import { CSSProperties, ReactNode, PointerEvent } from 'react';
4
- import { d as RecordsScreenBaseProps, g as RecordsClinicController, h as CaptureRecordsSignature, b as RecordsHostSeams, c as RecordsScreen, C as ClinicDraft, i as ClinicRequestBaseProps, j as ClinicBatchBaseProps, k as CapturedRecordsSignature } from '../../useRecordsDepth.d-DFcCfiXm.js';
5
- export { a as ClinicLocation, R as RecordsDepthStatus, l as RecordsNavAction, m as RecordsNavState, n as RecordsSignatureContext, e as RecordsUrlKind, o as RegisterSignaturePng, p as currentRecordsScreen, q as initialRecordsNav, r as popRecordsNav, s as pushRecordsNav, t as recordsNavReducer, v as replaceRecordsNav, w as resetRecordsNav, x as transitionRecordsNav } from '../../useRecordsDepth.d-DFcCfiXm.js';
6
- import { c as RecordForwardItem, d as RecordsRequestView } from '../../models.d-BagXhafD.js';
7
- export { f as ConsentState, C as CreateUploadRequestInput, G as GrantConsentInput, k as RECORDS_TERMINAL, R as RecordDocumentMeta, a as RecordEntity, l as RecordIdentityField, b as RecordOrigin, m as RecordSeries, n as RecordSeriesPoint, g as RecordsDenialReason, j as RecordsRequestGroupView, h as RecordsRequestStatus, i as RecordsSimpleStatus, e as RecordsView, U as UploadedDocument, o as isTerminalStatus, r as recordsDenialReasonOf } from '../../models.d-BagXhafD.js';
8
- import { E as EverfurRecordsSheet } from '../../sheetSeam.d-Cviqk89n.js';
9
- export { a as EverfurRecordsSheetLabRenderArgs, b as EverfurRecordsSheetRenderArgs } from '../../sheetSeam.d-Cviqk89n.js';
10
6
  import { P as PetRef, R as RecordsRequestId } from '../../ids.d-B2GAAifq.js';
11
7
  export { B as Brand, D as DocumentId, _ as __brand } from '../../ids.d-B2GAAifq.js';
8
+ import { R as RecordsClinicController, C as CaptureRecordsSignature, a as ClinicRequestBaseProps, b as CapturedRecordsSignature } from '../../clinicRequestProps.d-CjsMg_OD.js';
9
+ export { c as RecordsSignatureContext } from '../../clinicRequestProps.d-CjsMg_OD.js';
10
+ import { R as RecordsHostSeams, b as RecordsScreen, c as RecordsScreenBaseProps, C as ClinicDraft, e as ClinicBatchBaseProps } from '../../screenProps.d-BVzRzowC.js';
11
+ export { a as ClinicLocation, f as RecordsNavAction, g as RecordsNavState, d as RecordsUrlKind, h as RegisterSignaturePng, i as currentRecordsScreen, j as initialRecordsNav, p as popRecordsNav, k as pushRecordsNav, r as recordsNavReducer, l as replaceRecordsNav, m as resetRecordsNav, t as transitionRecordsNav } from '../../screenProps.d-BVzRzowC.js';
12
+ import { d as RecordsRequestView } from '../../models.d-DOwnr8fi.js';
13
+ export { g as ConsentState, C as CreateUploadRequestInput, G as GrantConsentInput, k as RECORDS_TERMINAL, R as RecordDocumentMeta, a as RecordEntity, c as RecordForwardItem, l as RecordIdentityField, b as RecordOrigin, m as RecordSeries, n as RecordSeriesPoint, h as RecordsDenialReason, e as RecordsRequestGroupView, i as RecordsRequestStatus, j as RecordsSimpleStatus, f as RecordsView, U as UploadedDocument, o as isTerminalStatus, r as recordsDenialReasonOf } from '../../models.d-DOwnr8fi.js';
12
14
  import { E as EverfurError } from '../../EverfurError.d-8NHtlgzA.js';
13
15
  export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../../EverfurError.d-8NHtlgzA.js';
14
- export { C as CreateClinicRequestBatchInput, a3 as CreateClinicRequestInput, x as FactFieldValue, A as RECORDS_CLINIC_BATCH_MAX, R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, B as RecordFactEditInput, D as RecordFactRemoveInput, i as RecordLabMarker, j as RecordLabPoint, E as RecordMarker, G as RecordMarkerLatest, I as RecordMarkerPoint, J as RecordMarkerSummary, K as RecordMarkersView, k as RecordPhysicalExam, a2 as RecordsAuthorizationCopy, L as RecordsAuthorizationSignature, l as RecordsClinic, M as RecordsClinicBatch, N as RecordsClinicBatchClient, O as RecordsClinicBatchItem, P as RecordsClinicBatchResult, $ as RecordsClinicSearchInput, a0 as RecordsClinicSearchPage, Q as RecordsClinicTarget, m as RecordsDepthClient, a1 as RecordsRecentClinicsInput, n as RecordsRequestDocument, S as RecordsSignatureSuggestion, a4 as RecordsSignatureUploadPolicy, o as RecordsTimelineMedication, p as RecordsTimelineVaccine, q as RecordsTimelineView, r as RecordsTimelineVisit, s as RecordsTimelineWeight } from '../../depth.d-OSALbYM7.js';
16
+ export { w as FactFieldValue, R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, y as RecordFactEditInput, z as RecordFactRemoveInput, i as RecordLabMarker, j as RecordLabPoint, A as RecordMarker, B as RecordMarkerLatest, C as RecordMarkerPoint, D as RecordMarkerSummary, E as RecordMarkersView, k as RecordPhysicalExam, l as RecordsDepthClient, m as RecordsRequestDocument, G as RecordsSignatureSuggestion, n as RecordsTimelineMedication, o as RecordsTimelineVaccine, p as RecordsTimelineView, q as RecordsTimelineVisit, r as RecordsTimelineWeight } from '../../depth.d-COFxYWLU.js';
15
17
  export { b as RecordsAsk, R as RecordsAskEntityRef, a as RecordsAskHandler } from '../../recordsAsk.d-C5CGSi3j.js';
16
- export { C as ClinicCall, F as FactOverlay, R as REQUEST_TIMELINE_TITLES, a as RecordSharesStatus, b as RecordsDashboardState, c as RecordsDashboardView, d as RecordsEmptyVariant, e as RequestTimelineEvent, f as RequestTimelineEventKey, g as RequestTimelineEventState, S as ShareRowView, U as UseRecordFactEditState, h as UseRecordPdfLinkState, i as UseRecordSharesState, j as UseRecordsMarkersState, k as applyFactOverlay, l as buildRequestTimeline, m as deriveRecordsDashboardState, n as isFactEditable, p as pickPetRecordsRequest, s as selectClinicCall, o as selectDashboardView, q as selectPrimaryLabel, r as selectRequestList, t as selectRequestTitle, u as useEverfurRecordsClinic, v as useEverfurRecordsClinicBatch, w as useRecordFactEdit, x as useRecordPdfLink, y as useRecordShares, z as useRecordsMarkers } from '../../view.d-C-SNpDJX.js';
17
- export { d as RecordPdfLink, e as RecordShare, R as RecordShareAudience, f as RecordShareAudienceScope, g as RecordShareEmailInput, h as RecordShareEmailReceipt, i as RecordShareLink, j as RecordShareRecipientKind, a as RecordsFeatures, q as RecordsPhotoContentType, b as RecordsUploadContentType, s as acceptsPhotos } from '../../features.d-fNsGcg0R.js';
18
- export { a as EverfurDocumentContributionsProps, c as EverfurRecordsDepthProps } from '../../DepthViews.d-Ce2Zhnrb.js';
18
+ export { C as ClinicCall, F as FactOverlay, R as REQUEST_TIMELINE_TITLES, a as RecordSharesStatus, b as RecordsDashboardState, c as RecordsDashboardView, d as RecordsEmptyVariant, e as RequestTimelineEvent, f as RequestTimelineEventKey, g as RequestTimelineEventState, S as ShareRowView, U as UseRecordFactEditState, h as UseRecordPdfLinkState, i as UseRecordSharesState, j as UseRecordsMarkersState, k as applyFactOverlay, l as buildRequestTimeline, m as deriveRecordsDashboardState, n as isFactEditable, p as pickPetRecordsRequest, s as selectClinicCall, o as selectDashboardView, q as selectPrimaryLabel, r as selectRequestList, t as selectRequestTitle, u as useEverfurRecordsClinic, v as useEverfurRecordsClinicBatch, w as useRecordFactEdit, x as useRecordPdfLink, y as useRecordShares, z as useRecordsMarkers } from '../../view.d-DqbCADFa.js';
19
+ export { R as RecordsDepthStatus } from '../../useRecordsDepth.d-BQRL0Hez.js';
20
+ export { g as RecordPdfLink, f as RecordShare, R as RecordShareAudience, i as RecordShareAudienceScope, d as RecordShareEmailInput, e as RecordShareEmailReceipt, c as RecordShareLink, j as RecordShareRecipientKind, a as RecordsFeatures, q as RecordsPhotoContentType, b as RecordsUploadContentType, s as acceptsPhotos } from '../../features.d-DrQxTw3-.js';
21
+ export { a as EverfurDocumentContributionsProps, c as EverfurRecordsDepthProps } from '../../DepthViews.d-DIvxzLDf.js';
22
+ export { C as CreateClinicRequestBatchInput, b as RECORDS_CLINIC_BATCH_MAX, R as RecordsClinicBatch, a as RecordsClinicBatchClient, c as RecordsClinicBatchItem, d as RecordsClinicBatchResult } from '../../clinicBatch.d-D9Ci7IpP.js';
23
+ export { C as CreateClinicRequestInput, f as RecordsAuthorizationCopy, b as RecordsAuthorizationSignature, R as RecordsClinic, c as RecordsClinicSearchInput, d as RecordsClinicSearchPage, a as RecordsClinicTarget, e as RecordsRecentClinicsInput, g as RecordsSignatureUploadPolicy } from '../../clinicModels.d-CaS64-P-.js';
19
24
  export { WebRecordsUploadTransportOptions, createWebRecordsUploadTransport } from './upload/index.js';
20
25
  import { F as FileHandle } from '../../ports.d-BX4f4UsB.js';
21
26
  export { a as UploadPolicyWire, U as UploadTransport } from '../../ports.d-BX4f4UsB.js';
22
27
  export { E as EverfurResult } from '../../EverfurResult.d-D_-254ZY.js';
23
- import '../../requestFunnel.d-CXUMPw1K.js';
24
28
  import '../../ErrorPolicyPort.d-68yrE3BE.js';
25
- import '../../config.d-Dy6igYlH.js';
26
- import '../../identity.d-DzTijonw.js';
27
-
28
- interface EverfurRecordsPageProps extends RecordsScreenBaseProps {
29
- readonly controller?: RecordsController;
30
- /** Host/test seam over the clinic controller the `Request records` sheet uses. */
31
- readonly clinicController?: RecordsClinicController;
32
- readonly consentVersion?: string;
33
- /** Your consent text, shown above `Allow` on the consent gate; pass it with its `consentVersion`. */
34
- readonly consentText?: string;
35
- /** The owner's name the clinic authorization is signed with (the owner can correct it before signing). */
36
- readonly ownerName?: string;
37
- /** A host signature component for the clinic authorization, instead of the built-in canvas. */
38
- readonly onCaptureSignature?: CaptureRecordsSignature;
39
- /**
40
- * The heading level this page's title claims. Defaults to 2.
41
- *
42
- * THIS PAGE AND THE BOOKING FLOW USED TO DISAGREE, and that is why the prop exists. The page hardcoded
43
- * `<h2>` and the televet booking chrome hardcoded `<h1>`, so a partner mounting both in one document got two
44
- * competing top levels. A drop-in widget does not own the host page's `<h1>`: the shared default is 2 and a
45
- * host whose page IS this surface passes 1. `src/web/headingLevel.ts` carries the full argument.
46
- */
47
- readonly headingLevel?: number;
48
- readonly style?: CSSProperties;
49
- readonly className?: string;
50
- readonly renderPending?: () => ReactNode;
51
- /**
52
- * Show the record's upcoming care (rechecks, vaccinations due) as its own card on the page, under the header.
53
- * Default `false`: upcoming care shows only inside the full record (`Visits & records`), as before.
54
- */
55
- readonly upcomingCare?: boolean;
56
- /**
57
- * Only with `upcomingCare`: your own control at the end of each upcoming-care row (for example your vet entry).
58
- * Called once per row with that item; return null for a row without one. Absent, the rows have no action.
59
- */
60
- readonly renderUpcomingCareAction?: (item: RecordForwardItem) => ReactNode;
61
- /**
62
- * Draw the Records & history tiles under the header: `Labs & bloodwork` (opens the pet's lab markers on the page,
63
- * drawn only while there are markers), `Screenings` (only with `onOpenScreenings`), `Visits & records` and
64
- * `Timeline`. Default `false`: the header's two links, as before.
65
- */
66
- readonly historyTiles?: boolean;
67
- /** Only with `historyTiles` or `sheet`: where the `Screenings` tile goes. Everfur has no screenings read; absent, no tile. */
68
- readonly onOpenScreenings?: () => void;
69
- /**
70
- * The page's look. By default (absent) it is Raph's v3 records sheet: the pet's vitals, upcoming care, the Records
71
- * & history tiles, weight, medications, the history timeline and the ways to add records, or his no-records screen.
72
- * The page loads it from `@everfur/sdk/web/records-sheet` (its own subpath) while showing its loading state; pass
73
- * `recordsSheet(options)` from that subpath to set options, or `false` for the classic page (which then downloads
74
- * none of the sheet). The same flows sit behind every look (clinic request with its consent and signature, upload,
75
- * the full record). With the sheet, `upcomingCare` and `historyTiles` are implied and `renderUpcomingCareAction`
76
- * fills the overdue row.
77
- */
78
- readonly sheet?: EverfurRecordsSheet | false;
79
- /** With the sheet: the unit a weight shows in first, `'lb'` (the default) or `'kg'`. */
80
- readonly weightUnit?: 'lb' | 'kg';
81
- /** With the sheet: opens the pet's Health Plan (your tab or screen), the top risk line's button. */
82
- readonly onOpenPlan?: () => void;
83
- }
84
- /**
85
- * The records surface as a PAGE, mirroring the consumer web app: the default web records surface.
86
- *
87
- * Complete on its own: request records from a clinic (consent and signature), upload records the
88
- * member already has, every request with its status and documents, and the full record with its
89
- * vaccinations, all without leaving your page. Pass `onNavigate` only if you route those screens
90
- * yourself. `EverfurRecords` (the flow) is the React Native-shaped stack, kept for existing embeds.
91
- */
92
- declare function EverfurRecordsPage(props: EverfurRecordsPageProps): ReactNode;
29
+ import '../../requestFunnel.d-D9edIEjZ.js';
30
+ import '../../config.d-MX7IKP2f.js';
31
+ import '../../identity.d-BePPZ7Uv.js';
93
32
 
94
33
  type RecordsHistoryMode = 'memory' | 'browser';
95
34
  interface EverfurRecordsProps extends RecordsHostSeams {
@@ -353,4 +292,4 @@ declare function SignatureCanvas({ pad, disabled }: {
353
292
  readonly disabled: boolean;
354
293
  }): ReactNode;
355
294
 
356
- export { CaptureRecordsSignature, CapturedRecordsSignature, ClinicBatchBaseProps, ClinicDraft, ClinicRequestBaseProps, EverfurClinicPicker, type EverfurClinicPickerProps, EverfurClinicRequest, EverfurClinicRequestBatch, type EverfurClinicRequestBatchProps, type EverfurClinicRequestProps, EverfurError, EverfurRecordDetail, type EverfurRecordDetailProps, EverfurRecordDocument, type EverfurRecordDocumentProps, EverfurRecords, EverfurRecordsConsent, type EverfurRecordsConsentProps, EverfurRecordsDashboard, type EverfurRecordsDashboardProps, EverfurRecordsFlow, EverfurRecordsPage, type EverfurRecordsPageProps, type EverfurRecordsProps, EverfurRecordsRequest, type EverfurRecordsRequestProps, EverfurRecordsRequests, type EverfurRecordsRequestsProps, EverfurRecordsSheet, EverfurRecordsUpload, type EverfurRecordsUploadProps, FileHandle, PetRef, RECORDS_DOCUMENT_ACCEPT, RecordForwardItem, RecordsClinicController, RecordsController, type RecordsHistoryMode, RecordsHostSeams, RecordsRequestId, RecordsRequestView, RecordsScreen, RecordsScreenBaseProps, type RequestDocumentRow, RequestDocumentsList, type RequestDocumentsListProps, type RequestDocumentsStatus, SignatureCanvas, type SignatureCanvasState, type UseRequestDocumentsState, fileToHandle, isPdfBlob, isUploadableHandle, pickDocument, recordsDocumentAccept, requestDocumentRows, useRequestDocuments, useSignatureCanvas };
295
+ export { CaptureRecordsSignature, CapturedRecordsSignature, ClinicBatchBaseProps, ClinicDraft, ClinicRequestBaseProps, EverfurClinicPicker, type EverfurClinicPickerProps, EverfurClinicRequest, EverfurClinicRequestBatch, type EverfurClinicRequestBatchProps, type EverfurClinicRequestProps, EverfurError, EverfurRecordDetail, type EverfurRecordDetailProps, EverfurRecordDocument, type EverfurRecordDocumentProps, EverfurRecords, EverfurRecordsConsent, type EverfurRecordsConsentProps, EverfurRecordsDashboard, type EverfurRecordsDashboardProps, EverfurRecordsFlow, type EverfurRecordsProps, EverfurRecordsRequest, type EverfurRecordsRequestProps, EverfurRecordsRequests, type EverfurRecordsRequestsProps, EverfurRecordsUpload, type EverfurRecordsUploadProps, FileHandle, PetRef, RECORDS_DOCUMENT_ACCEPT, RecordsClinicController, RecordsController, type RecordsHistoryMode, RecordsHostSeams, RecordsRequestId, RecordsRequestView, RecordsScreen, RecordsScreenBaseProps, type RequestDocumentRow, RequestDocumentsList, type RequestDocumentsListProps, type RequestDocumentsStatus, SignatureCanvas, type SignatureCanvasState, type UseRequestDocumentsState, fileToHandle, isPdfBlob, isUploadableHandle, pickDocument, recordsDocumentAccept, requestDocumentRows, useRequestDocuments, useSignatureCanvas };