@everfur/sdk 0.15.1 → 0.16.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.
- package/CHANGELOG.md +122 -0
- package/dist/{DepthViews.d-BuEWI6Ln.d.ts → DepthViews.d-A7S-XYiI.d.ts} +1 -1
- package/dist/{DepthViews.d--1daZblh.d.cts → DepthViews.d-C4TIZDfz.d.cts} +1 -1
- package/dist/{DepthViews.d-CKTnEeUo.d.ts → DepthViews.d-CNjaHLAS.d.ts} +1 -1
- package/dist/{DepthViews.d-PuBGdAYk.d.cts → DepthViews.d-DapfRz1S.d.cts} +1 -1
- package/dist/{RecordsPage.d-CBB8sfoY.d.ts → RecordsPage.d-6WMbieaV.d.ts} +1 -1
- package/dist/{RecordsPage.d-Dq5gpQG0.d.cts → RecordsPage.d-B2gLf8RH.d.cts} +1 -1
- package/dist/animations/index.d.cts +5 -5
- package/dist/animations/index.d.ts +5 -5
- package/dist/{Chat.d-BlsnQwCQ.d.ts → appStateLifecycle.d-B7L427MF.d.ts} +64 -141
- package/dist/{Chat.d-BO5iJsR2.d.cts → appStateLifecycle.d-CWedOJq4.d.cts} +64 -141
- package/dist/{attachments.d-DRHsJkni.d.cts → attachments.d-BARh-PrJ.d.cts} +24 -6
- package/dist/{attachments.d-DFP9yvz9.d.ts → attachments.d-CB0R1_vK.d.ts} +24 -6
- package/dist/{attachments.d-C2nkIyDB.d.ts → attachments.d-CPgp4_W-.d.ts} +2 -2
- package/dist/{attachments.d-DRUC35Ti.d.cts → attachments.d-DeoaCEMD.d.cts} +2 -2
- package/dist/{bookingCopy.d-CFL-1Be2.d.ts → bookingCopy.d-BakTjvWw.d.ts} +2 -2
- package/dist/{bookingCopy.d-bF_QknDC.d.cts → bookingCopy.d-CVmpuk9C.d.cts} +2 -2
- package/dist/{casesRepository.d-C__BnffJ.d.ts → casesRepository.d-CuokarTU.d.ts} +1 -1
- package/dist/{casesRepository.d-BMOnT1fg.d.cts → casesRepository.d-DKRLtYb8.d.cts} +1 -1
- package/dist/chat/index.cjs +227 -213
- package/dist/chat/index.d.cts +11 -9
- package/dist/chat/index.d.ts +11 -9
- package/dist/chat/index.js +228 -214
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +6 -6
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +1 -1
- package/dist/{clinicBatch.d-D68RYvc3.d.ts → clinicBatch.d-BP_Rpvcy.d.ts} +2 -2
- package/dist/{clinicBatch.d-C5deJ4xY.d.cts → clinicBatch.d-BTDdhMQ2.d.cts} +2 -2
- package/dist/{config.d-BQgrIDdu.d.cts → config.d-84fNJFv9.d.cts} +1 -1
- package/dist/{config.d-XSMThgVj.d.ts → config.d-B4-Mrwq2.d.ts} +1 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/{context.d-Ba8YyJpk.d.cts → context.d-87MMrNm6.d.cts} +5 -5
- package/dist/{context.d-xoh5vmxS.d.ts → context.d-rNGMZH8T.d.ts} +5 -5
- package/dist/{copy.d-Cq-s-UUv.d.cts → copy.d-CJOLhJac.d.cts} +2 -2
- package/dist/{copy.d-HV9fU5kh.d.ts → copy.d-DbwWriBp.d.ts} +2 -2
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +13 -13
- package/dist/core/index.d.ts +13 -13
- package/dist/core/index.js +1 -1
- package/dist/{depth.d-DYnkz8Re.d.cts → depth.d-CXpPxNSK.d.cts} +2 -2
- package/dist/{depth.d-D7kKiYl7.d.ts → depth.d-Dca1T_RH.d.ts} +2 -2
- package/dist/{entitlementRepository.d-DmnUZLl_.d.ts → entitlementRepository.d-BBRYTUlp.d.ts} +2 -2
- package/dist/{entitlementRepository.d-B_kEPLhz.d.cts → entitlementRepository.d-DBhzBQjZ.d.cts} +2 -2
- package/dist/{focus.d-BHm_QtQ9.d.cts → focus.d-BQnOVAql.d.cts} +3 -3
- package/dist/{focus.d-CjL6Cj0m.d.ts → focus.d-BZ2sEpbU.d.ts} +3 -3
- package/dist/health-plan/index.cjs +134 -131
- package/dist/health-plan/index.d.cts +77 -24
- package/dist/health-plan/index.d.ts +77 -24
- package/dist/health-plan/index.js +134 -131
- package/dist/{idempotency.d-BSRK8od4.d.cts → idempotency.d-9wNNohIA.d.cts} +1 -1
- package/dist/{idempotency.d-CFc4CCc9.d.ts → idempotency.d-BdB17veP.d.ts} +1 -1
- package/dist/{identity.d-Be2Es9Td.d.ts → identity.d-DxNvhj3a.d.ts} +1 -1
- package/dist/{identity.d-HbwYQ4-z.d.cts → identity.d-nRZBzkG2.d.cts} +1 -1
- package/dist/index.cjs +232 -218
- package/dist/index.d.cts +14 -12
- package/dist/index.d.ts +14 -12
- package/dist/index.js +233 -219
- package/dist/{introEvents.d-Dr34KIaD.d.cts → introEvents.d-CQeiUeLn.d.cts} +1 -1
- package/dist/{introEvents.d-DflJ6J9H.d.ts → introEvents.d-bkIxpIKr.d.ts} +1 -1
- package/dist/notifications/index.d.cts +4 -4
- package/dist/notifications/index.d.ts +4 -4
- package/dist/{optInView.d-D23o1gtT.d.cts → optInView.d-BbVUUeoG.d.cts} +2 -2
- package/dist/{optInView.d-3mbj1mR6.d.ts → optInView.d-DVJcB4Gp.d.ts} +2 -2
- package/dist/{parse.d-BERabxHw.d.ts → parse.d-CGeJrcAC.d.ts} +1 -1
- package/dist/{parse.d-4lUXdmvY.d.cts → parse.d-Dk0BasyK.d.cts} +1 -1
- package/dist/{pets.d-D_ayuqjp.d.ts → pets.d-DBopbeRe.d.ts} +1 -1
- package/dist/{pets.d-CHU0UbXt.d.cts → pets.d-DVptPgi0.d.cts} +1 -1
- package/dist/{petsRepository.d-DUaAWoTv.d.ts → petsRepository.d-BtuooSOW.d.ts} +1 -1
- package/dist/{petsRepository.d-Bwfe8yuR.d.cts → petsRepository.d-Daef7u0o.d.cts} +1 -1
- package/dist/{ports.d-DzEJMVRs.d.ts → ports.d-BxCVSbSi.d.ts} +4 -4
- package/dist/{ports.d-ClbPRUtx.d.cts → ports.d-CAT70bVD.d.cts} +4 -4
- package/dist/records/depth/index.cjs +1 -1
- package/dist/records/depth/index.d.cts +9 -9
- package/dist/records/depth/index.d.ts +9 -9
- package/dist/records/depth/index.js +1 -1
- package/dist/records/index.cjs +242 -200
- package/dist/records/index.d.cts +169 -73
- package/dist/records/index.d.ts +169 -73
- package/dist/records/index.js +243 -201
- package/dist/{requestFunnel.d-YabU6G-Z.d.ts → requestFunnel.d-Cxt0JqYx.d.ts} +2 -2
- package/dist/{requestFunnel.d-JoqddYSx.d.cts → requestFunnel.d-mEu6B-n8.d.cts} +2 -2
- package/dist/{runtimeTypes.d-DQTBJAbk.d.ts → runtimeTypes.d-Bkcj_XQy.d.ts} +4 -4
- package/dist/{runtimeTypes.d-Cv38YuzP.d.cts → runtimeTypes.d-D_qHJROH.d.cts} +4 -4
- package/dist/{screenProps.d-C-AuHoyF.d.cts → screenProps.d-CR1lrpzR.d.cts} +2 -2
- package/dist/{screenProps.d-BuJLzFkN.d.ts → screenProps.d-D9n-ancr.d.ts} +2 -2
- package/dist/server/events/index.cjs +1 -1
- package/dist/server/events/index.d.cts +2 -2
- package/dist/server/events/index.d.ts +2 -2
- package/dist/server/events/index.js +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +1 -1
- package/dist/shop/index.cjs +16 -16
- package/dist/shop/index.d.cts +12 -3
- package/dist/shop/index.d.ts +12 -3
- package/dist/shop/index.js +16 -16
- package/dist/tabs/index.cjs +4 -4
- package/dist/tabs/index.d.cts +34 -15
- package/dist/tabs/index.d.ts +34 -15
- package/dist/tabs/index.js +5 -5
- package/dist/{tabsModel.d-BfIQg6yS.d.ts → tabsModel.d-B7QMug1u.d.cts} +1 -17
- package/dist/{tabsModel.d-BfIQg6yS.d.cts → tabsModel.d-B7QMug1u.d.ts} +1 -17
- package/dist/televet/booking/index.d.cts +6 -6
- package/dist/televet/booking/index.d.ts +6 -6
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/rn/index.cjs +1 -1
- package/dist/testing/rn/index.d.cts +7 -7
- package/dist/testing/rn/index.d.ts +7 -7
- package/dist/testing/rn/index.js +1 -1
- package/dist/testing/web/index.d.cts +7 -7
- package/dist/testing/web/index.d.ts +7 -7
- package/dist/texting/index.cjs +21 -16
- package/dist/texting/index.d.cts +5 -5
- package/dist/texting/index.d.ts +5 -5
- package/dist/texting/index.js +22 -17
- package/dist/threadOptions.d-6hfQS1x7.d.cts +55 -0
- package/dist/threadOptions.d-6hfQS1x7.d.ts +55 -0
- package/dist/threadOptions.d-BEG-LZrC.d.cts +147 -0
- package/dist/threadOptions.d-BerQM1Ql.d.ts +147 -0
- package/dist/{threadOptions.d-8x_1evAr.d.ts → threadOptions.d-BgBvSIw8.d.ts} +6 -40
- package/dist/{threadOptions.d-DBrmOwmb.d.cts → threadOptions.d-P9v7I7va.d.cts} +6 -40
- package/dist/{timelineRows.d-B6lLC8Ud.d.cts → timelineRows.d-C04lp_Vj.d.cts} +1 -1
- package/dist/{timelineRows.d-Brlkti-G.d.ts → timelineRows.d-_7JemrY-.d.ts} +1 -1
- package/dist/{planSignals.d-CON9gTvJ.d.ts → useHealthPlanSubscription.d-CUbHE6eK.d.ts} +81 -3
- package/dist/{planSignals.d-Dha2CMDF.d.cts → useHealthPlanSubscription.d-OhLZpn-n.d.cts} +81 -3
- package/dist/{usePresentation.d-Bne14SlX.d.ts → usePresentation.d-CBtBx38t.d.ts} +40 -40
- package/dist/{usePresentation.d-BcdCIuEU.d.cts → usePresentation.d-YkJeq9mf.d.cts} +40 -40
- package/dist/{useRecordsDepth.d-DAa169VY.d.cts → useRecordsDepth.d-FTImzp6T.d.cts} +1 -1
- package/dist/{useRecordsDepth.d-Cd6J03o5.d.ts → useRecordsDepth.d-_rqDIvoq.d.ts} +1 -1
- package/dist/{view.d-3d5_O7Xk.d.cts → view.d-Dd6AfMvG.d.cts} +3 -3
- package/dist/{view.d-DkGM8GNA.d.ts → view.d-gmYinlac.d.ts} +3 -3
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/health-plan/index.cjs +1 -1
- package/dist/web/health-plan/index.d.cts +15 -69
- package/dist/web/health-plan/index.d.ts +15 -69
- package/dist/web/health-plan/index.js +1 -1
- package/dist/web/index.cjs +5 -5
- package/dist/web/index.d.cts +26 -43
- package/dist/web/index.d.ts +26 -43
- package/dist/web/index.js +5 -5
- package/dist/web/intro/index.d.cts +6 -6
- package/dist/web/intro/index.d.ts +6 -6
- package/dist/web/notifications/index.d.cts +3 -3
- package/dist/web/notifications/index.d.ts +3 -3
- package/dist/web/records/depth/index.d.cts +9 -9
- package/dist/web/records/depth/index.d.ts +9 -9
- package/dist/web/records/index.d.cts +11 -11
- package/dist/web/records/index.d.ts +11 -11
- package/dist/web/records-sheet/index.cjs +10 -10
- package/dist/web/records-sheet/index.js +10 -10
- package/dist/web/shop/index.cjs +11 -11
- package/dist/web/shop/index.d.cts +3 -3
- package/dist/web/shop/index.d.ts +3 -3
- package/dist/web/shop/index.js +11 -11
- package/dist/web/televet/booking/index.d.cts +6 -6
- package/dist/web/televet/booking/index.d.ts +6 -6
- package/dist/web/texting/index.d.cts +5 -5
- package/dist/web/texting/index.d.ts +5 -5
- package/package.json +6 -2
|
@@ -1,10 +1,51 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { n as HealthPlanPagePet, b as HealthPlanFocusDesign, H as HealthPlanPage, q as HealthPlan, j as HealthPlanPageRepository, P as HealthPlanRepository, i as HealthPlanSubscriptionRepository, S as HealthPlanSubscriptionQuote, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder } from './focus.d-BQnOVAql.cjs';
|
|
4
|
+
import { b as EverfurChatTopCard } from './threadOptions.d-6hfQS1x7.cjs';
|
|
4
5
|
import { P as PetRef } from './ids.d-B2GAAifq.cjs';
|
|
5
|
-
import {
|
|
6
|
+
import { g as HealthPlanCart } from './usePresentation.d-YkJeq9mf.cjs';
|
|
6
7
|
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
|
|
7
8
|
import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.cjs';
|
|
9
|
+
import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
|
|
10
|
+
|
|
11
|
+
/** The page's focus, as the copy functions receive it. */
|
|
12
|
+
type HealthPlanTopCardFocus = NonNullable<HealthPlanFocusDesign['focus']>;
|
|
13
|
+
/** Who the card is about: the page's pet and the possessive its words use ("her", "his", "Georgia's"), or null. */
|
|
14
|
+
interface HealthPlanTopCardPet {
|
|
15
|
+
readonly pet: HealthPlanPagePet;
|
|
16
|
+
readonly possessive: string | null;
|
|
17
|
+
}
|
|
18
|
+
/** The card's own words. Defaults: Raph's v3 design (`HEALTH_PLAN_TOP_CARD_COPY`). */
|
|
19
|
+
interface HealthPlanTopCardCopy {
|
|
20
|
+
/** The plan button ("See her Health Plan"); null draws none. */
|
|
21
|
+
readonly action: (who: HealthPlanTopCardPet) => string | null;
|
|
22
|
+
/** The question link ("What does it mean?"). */
|
|
23
|
+
readonly ask: string;
|
|
24
|
+
/** What the link sends to the chat: the risk line's lead, then the link's words. */
|
|
25
|
+
readonly askPrompt: (focus: HealthPlanTopCardFocus, ask: string) => string;
|
|
26
|
+
/** The close control's accessible name ("Close her focus"); null or blank names it with the chat's plain "Close". */
|
|
27
|
+
readonly close: (who: HealthPlanTopCardPet) => string | null;
|
|
28
|
+
}
|
|
29
|
+
declare const HEALTH_PLAN_TOP_CARD_COPY: HealthPlanTopCardCopy;
|
|
30
|
+
/** The pet facts the possessive reads: its name and sex (a plan page's pet, or the focus words' pet). */
|
|
31
|
+
interface HealthPlanPossessivePet {
|
|
32
|
+
readonly name?: string | null;
|
|
33
|
+
readonly sex?: string | null;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* "her" for a female, "his" for a male, "Georgia's" for a named pet of unknown sex, else null. The sex is read
|
|
37
|
+
* leniently (any case, surrounding spaces), so a host-shaped page that says "Female" still reads as her.
|
|
38
|
+
*/
|
|
39
|
+
declare function healthPlanPossessive(pet: HealthPlanPossessivePet): string | null;
|
|
40
|
+
interface HealthPlanTopCardOptions {
|
|
41
|
+
/** Opens the pet's Health Plan (your tab or screen). Absent, the card has no plan button. */
|
|
42
|
+
readonly onOpenPlan?: (() => void) | undefined;
|
|
43
|
+
readonly copy?: Partial<HealthPlanTopCardCopy>;
|
|
44
|
+
/** Draw the close icon your way. */
|
|
45
|
+
readonly renderIcon?: (icon: 'close') => ReactNode;
|
|
46
|
+
}
|
|
47
|
+
/** The top card for a page, or undefined when the page has no focus to show. Pure. */
|
|
48
|
+
declare function healthPlanTopCard(page: HealthPlanPage | null, options?: HealthPlanTopCardOptions): EverfurChatTopCard | undefined;
|
|
8
49
|
|
|
9
50
|
/** What a docked bar needs, as the plan page last published it. */
|
|
10
51
|
interface HealthPlanCartDock {
|
|
@@ -124,4 +165,41 @@ declare function healthPlanNoVet(petRef: PetRef): boolean;
|
|
|
124
165
|
/** Listens for `setHealthPlanNoVet`. Returns the unsubscribe. */
|
|
125
166
|
declare function onHealthPlanNoVet(listener: HealthPlanNoVetListener): () => void;
|
|
126
167
|
|
|
127
|
-
|
|
168
|
+
type HealthPlanSubscriptionPhase = 'idle' | 'loading' | 'unavailable' | 'failed' | 'ready';
|
|
169
|
+
interface HealthPlanSubscriptionOptions {
|
|
170
|
+
readonly petRef: PetRef | null;
|
|
171
|
+
readonly productId: string | null;
|
|
172
|
+
/** False skips every read (a host that has not opted in). Defaults to true. */
|
|
173
|
+
readonly enabled?: boolean;
|
|
174
|
+
/** A repository of your own (tests, a stub backend). Defaults to the one over the provider's runtime. */
|
|
175
|
+
readonly repository?: HealthPlanSubscriptionRepository;
|
|
176
|
+
/** Coming back to the foreground re-reads a quote shown for more than a minute, quietly. Absent, it does not. */
|
|
177
|
+
readonly lifecycle?: LifecyclePort | null;
|
|
178
|
+
/** Change it to re-read the quote now, quietly (for example after your checkout completed). */
|
|
179
|
+
readonly refreshKey?: string | number;
|
|
180
|
+
}
|
|
181
|
+
interface HealthPlanSubscriptionState {
|
|
182
|
+
readonly phase: HealthPlanSubscriptionPhase;
|
|
183
|
+
readonly quote: HealthPlanSubscriptionQuote | null;
|
|
184
|
+
/** The member's row for this pet and product (active or cancelled), or null. */
|
|
185
|
+
readonly subscription: HealthPlanSubscription | null;
|
|
186
|
+
/** A write is in flight. */
|
|
187
|
+
readonly busy: boolean;
|
|
188
|
+
/** The last refused read or write, or null. */
|
|
189
|
+
readonly error: EverfurError | null;
|
|
190
|
+
/** Each write settles the server's new state, or the refusal (a write before the quote is ready is refused). */
|
|
191
|
+
subscribe(intervalDays: number): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
192
|
+
changeInterval(intervalDays: number): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
193
|
+
skip(): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
194
|
+
cancel(): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
195
|
+
restart(intervalDays?: number): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
196
|
+
/** Buy one box (no renewal), then re-read the quote: a one-box order spends the first-box offer. */
|
|
197
|
+
buyOneBox(tapKey?: string): Promise<EverfurResult<HealthPlanOneBoxOrder>>;
|
|
198
|
+
refresh(): Promise<void>;
|
|
199
|
+
}
|
|
200
|
+
/** The subscription repository bound to the runtime under your provider. */
|
|
201
|
+
declare function useHealthPlanSubscriptionRepository(): HealthPlanSubscriptionRepository;
|
|
202
|
+
/** One product's subscription for one pet. `EverfurHealthPlan` with `layout="focus"` paints it. */
|
|
203
|
+
declare function useHealthPlanSubscription(options: HealthPlanSubscriptionOptions): HealthPlanSubscriptionState;
|
|
204
|
+
|
|
205
|
+
export { useHealthPlanSubscription as A, useHealthPlanSubscriptionRepository as B, type HealthPlanTopCardOptions as C, type HealthPlanPossessivePet as D, healthPlanPossessive as E, healthPlanTopCard as F, type HealthPlanTopCardCopy as H, HEALTH_PLAN_TOP_CARD_COPY as a, type HealthPlanCartDock as b, HealthPlanCartScope as c, type HealthPlanCartScopeProps as d, HealthPlanController as e, type HealthPlanNoVetListener as f, type HealthPlanPageOptions as g, type HealthPlanPagePhase as h, type HealthPlanPageState as i, type HealthPlanPhase as j, type HealthPlanRecordsLandedListener as k, type HealthPlanRecordsLandedSource as l, type HealthPlanSnapshot as m, type HealthPlanSubscriptionOptions as n, type HealthPlanSubscriptionPhase as o, type HealthPlanSubscriptionState as p, type HealthPlanTopCardFocus as q, type HealthPlanTopCardPet as r, healthPlanNoVet as s, notifyHealthPlanRecordsLanded as t, onHealthPlanNoVet as u, onHealthPlanRecordsLanded as v, setHealthPlanNoVet as w, useHealthPlanCartDock as x, useHealthPlanPage as y, useHealthPlanPageRepository as z };
|
|
@@ -1,12 +1,50 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
|
+
import { O as HealthPlanReasonKind, f as HealthPlanItem, q as HealthPlan, P as HealthPlanRepository } from './focus.d-BZ2sEpbU.js';
|
|
2
3
|
import { ReactNode } from 'react';
|
|
3
4
|
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
|
|
4
5
|
import { P as PetRef } from './ids.d-B2GAAifq.js';
|
|
5
|
-
import { f as HealthPlanItem, m as HealthPlan, n as HealthPlanRepository, o as HealthPlanReasonKind } from './focus.d-CjL6Cj0m.js';
|
|
6
6
|
import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.js';
|
|
7
7
|
import { d as RecordsRequestView, f as RecordsView } from './models.d-DOwnr8fi.js';
|
|
8
8
|
import { i as EverfurPresentationInput, h as EverfurPresentation } from './presentation.d-vy8kTGfR.js';
|
|
9
9
|
|
|
10
|
+
declare const HEALTH_PLAN_COPY: Readonly<{
|
|
11
|
+
loading: "Loading";
|
|
12
|
+
retry: "Try again";
|
|
13
|
+
signedOut: "Sign in required";
|
|
14
|
+
addToCart: "Add to cart";
|
|
15
|
+
added: "Added";
|
|
16
|
+
remove: "Remove";
|
|
17
|
+
checkout: "Checkout";
|
|
18
|
+
subtotal: "Subtotal";
|
|
19
|
+
sample: "Sample";
|
|
20
|
+
cartEmpty: "Your cart is empty.";
|
|
21
|
+
choosePet: "Choose a pet";
|
|
22
|
+
emptyTitle: "";
|
|
23
|
+
emptyBody: "";
|
|
24
|
+
emptyAsk: "";
|
|
25
|
+
}>;
|
|
26
|
+
/** The Health Plan's empty state words (Q1). Each is '' by default: an empty title and body draw nothing. */
|
|
27
|
+
interface HealthPlanEmptyCopy {
|
|
28
|
+
readonly emptyTitle: string;
|
|
29
|
+
readonly emptyBody: string;
|
|
30
|
+
/** The empty state's Ask button. */
|
|
31
|
+
readonly emptyAsk: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The reason labels, one per kind. An empty label is not drawn (the reason's text still is). `profile` (a pet profile
|
|
35
|
+
* fact) has no source yet; `dna` names one partner's product, so the SDK leaves it to that partner (Q3).
|
|
36
|
+
*/
|
|
37
|
+
declare const HEALTH_PLAN_REASON_LABELS: Readonly<Record<HealthPlanReasonKind, string>>;
|
|
38
|
+
/** ADAPTED from Raph. Listed for approval. */
|
|
39
|
+
declare const HEALTH_PLAN_TEMPLATES: Readonly<{
|
|
40
|
+
/** Raph: "Georgia's care plan". Used only when the plan carries no `headline` of the tenant's own. */
|
|
41
|
+
planTitle: (petName: string) => string;
|
|
42
|
+
/** Raph: "<brand> cart" (his demo named the partner). */
|
|
43
|
+
cartLabel: (brand: string) => string;
|
|
44
|
+
}>;
|
|
45
|
+
/** Every key still waiting on Raph's words (empty, so not drawn), so the list a reviewer approves cannot drift from the file. */
|
|
46
|
+
declare const HEALTH_PLAN_COPY_PLACEHOLDERS: readonly string[];
|
|
47
|
+
|
|
10
48
|
type EverfurHealthPlanStatus = 'signedOut' | 'noPet' | 'loading' | 'failed' | 'empty' | 'ready';
|
|
11
49
|
/** The member's cart: the items in the plan, and their total when one can honestly be given. */
|
|
12
50
|
interface HealthPlanCart {
|
|
@@ -239,48 +277,10 @@ declare function healthPlanBlanksFacts(input: {
|
|
|
239
277
|
readonly record: RecordsView | null;
|
|
240
278
|
}, now: number): HealthPlanBlanksFacts | null;
|
|
241
279
|
|
|
242
|
-
declare const HEALTH_PLAN_COPY: Readonly<{
|
|
243
|
-
loading: "Loading";
|
|
244
|
-
retry: "Try again";
|
|
245
|
-
signedOut: "Sign in required";
|
|
246
|
-
addToCart: "Add to cart";
|
|
247
|
-
added: "Added";
|
|
248
|
-
remove: "Remove";
|
|
249
|
-
checkout: "Checkout";
|
|
250
|
-
subtotal: "Subtotal";
|
|
251
|
-
sample: "Sample";
|
|
252
|
-
cartEmpty: "Your cart is empty.";
|
|
253
|
-
choosePet: "Choose a pet";
|
|
254
|
-
emptyTitle: "";
|
|
255
|
-
emptyBody: "";
|
|
256
|
-
emptyAsk: "";
|
|
257
|
-
}>;
|
|
258
|
-
/** The Health Plan's empty state words (Q1). Each is '' by default: an empty title and body draw nothing. */
|
|
259
|
-
interface HealthPlanEmptyCopy {
|
|
260
|
-
readonly emptyTitle: string;
|
|
261
|
-
readonly emptyBody: string;
|
|
262
|
-
/** The empty state's Ask button. */
|
|
263
|
-
readonly emptyAsk: string;
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* The reason labels, one per kind. An empty label is not drawn (the reason's text still is). `profile` (a pet profile
|
|
267
|
-
* fact) has no source yet; `dna` names one partner's product, so the SDK leaves it to that partner (Q3).
|
|
268
|
-
*/
|
|
269
|
-
declare const HEALTH_PLAN_REASON_LABELS: Readonly<Record<HealthPlanReasonKind, string>>;
|
|
270
|
-
/** ADAPTED from Raph. Listed for approval. */
|
|
271
|
-
declare const HEALTH_PLAN_TEMPLATES: Readonly<{
|
|
272
|
-
/** Raph: "Georgia's care plan". Used only when the plan carries no `headline` of the tenant's own. */
|
|
273
|
-
planTitle: (petName: string) => string;
|
|
274
|
-
/** Raph: "<brand> cart" (his demo named the partner). */
|
|
275
|
-
cartLabel: (brand: string) => string;
|
|
276
|
-
}>;
|
|
277
|
-
/** Every key still waiting on Raph's words (empty, so not drawn), so the list a reviewer approves cannot drift from the file. */
|
|
278
|
-
declare const HEALTH_PLAN_COPY_PLACEHOLDERS: readonly string[];
|
|
279
|
-
|
|
280
280
|
/**
|
|
281
281
|
* The tenant's presentation settings resolved against `client` (the explicit props; leave a field undefined to
|
|
282
282
|
* take the console value). Total: always every field.
|
|
283
283
|
*/
|
|
284
284
|
declare function useEverfurPresentation(client?: EverfurPresentationInput | null): EverfurPresentation;
|
|
285
285
|
|
|
286
|
-
export { formatHealthPlanPriceWith as A, healthPlanBlanksFacts as B, healthPlanCart as C, healthPlanNextShotsAt as D, type EverfurHealthPlanOptions as E, healthPlanRecordsWeightKg as F, isHealthPlanSessionRequired as G, type HealthPlanBlanksFacts as H, showHealthPlanCartBar as I, useEverfurHealthPlan as J, useEverfurHealthPlanRepository as K, useEverfurPresentation as L, type HealthPlanPriceFormat as a, type HealthPlanLayoutProps as b, type HealthPlanEmptyCopy as c, type
|
|
286
|
+
export { formatHealthPlanPriceWith as A, healthPlanBlanksFacts as B, healthPlanCart as C, healthPlanNextShotsAt as D, type EverfurHealthPlanOptions as E, healthPlanRecordsWeightKg as F, isHealthPlanSessionRequired as G, type HealthPlanBlanksFacts as H, showHealthPlanCartBar as I, useEverfurHealthPlan as J, useEverfurHealthPlanRepository as K, useEverfurPresentation as L, type HealthPlanPriceFormat as a, type HealthPlanLayoutProps as b, type HealthPlanEmptyCopy as c, type HealthPlanCardOptions as d, type HealthPlanImageVariant as e, type HealthPlanReasonVariant as f, type HealthPlanCart as g, type EverfurHealthPlanState as h, type EverfurHealthPlanStatus as i, HEALTH_PLAN_COPY as j, HEALTH_PLAN_COPY_PLACEHOLDERS as k, HEALTH_PLAN_LAYOUT_DEFAULTS as l, HEALTH_PLAN_REASON_LABELS as m, HEALTH_PLAN_TEMPLATES as n, type HealthPlanAddButtonSize as o, type HealthPlanAddedVariant as p, type HealthPlanBlanksPhase as q, type HealthPlanCardShadow as r, type HealthPlanCartBarPlacement as s, type HealthPlanCartBarVisibility as t, type HealthPlanCategoryVariant as u, type HealthPlanFontWeight as v, type HealthPlanHeaderContext as w, type HealthPlanPageContext as x, type HealthPlanShadow as y, formatHealthPlanPrice as z };
|
|
@@ -1,12 +1,50 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
|
+
import { O as HealthPlanReasonKind, f as HealthPlanItem, q as HealthPlan, P as HealthPlanRepository } from './focus.d-BQnOVAql.cjs';
|
|
2
3
|
import { ReactNode } from 'react';
|
|
3
4
|
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
|
|
4
5
|
import { P as PetRef } from './ids.d-B2GAAifq.cjs';
|
|
5
|
-
import { f as HealthPlanItem, m as HealthPlan, n as HealthPlanRepository, o as HealthPlanReasonKind } from './focus.d-BHm_QtQ9.cjs';
|
|
6
6
|
import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.cjs';
|
|
7
7
|
import { d as RecordsRequestView, f as RecordsView } from './models.d-BSqvbTE1.cjs';
|
|
8
8
|
import { i as EverfurPresentationInput, h as EverfurPresentation } from './presentation.d-vy8kTGfR.cjs';
|
|
9
9
|
|
|
10
|
+
declare const HEALTH_PLAN_COPY: Readonly<{
|
|
11
|
+
loading: "Loading";
|
|
12
|
+
retry: "Try again";
|
|
13
|
+
signedOut: "Sign in required";
|
|
14
|
+
addToCart: "Add to cart";
|
|
15
|
+
added: "Added";
|
|
16
|
+
remove: "Remove";
|
|
17
|
+
checkout: "Checkout";
|
|
18
|
+
subtotal: "Subtotal";
|
|
19
|
+
sample: "Sample";
|
|
20
|
+
cartEmpty: "Your cart is empty.";
|
|
21
|
+
choosePet: "Choose a pet";
|
|
22
|
+
emptyTitle: "";
|
|
23
|
+
emptyBody: "";
|
|
24
|
+
emptyAsk: "";
|
|
25
|
+
}>;
|
|
26
|
+
/** The Health Plan's empty state words (Q1). Each is '' by default: an empty title and body draw nothing. */
|
|
27
|
+
interface HealthPlanEmptyCopy {
|
|
28
|
+
readonly emptyTitle: string;
|
|
29
|
+
readonly emptyBody: string;
|
|
30
|
+
/** The empty state's Ask button. */
|
|
31
|
+
readonly emptyAsk: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The reason labels, one per kind. An empty label is not drawn (the reason's text still is). `profile` (a pet profile
|
|
35
|
+
* fact) has no source yet; `dna` names one partner's product, so the SDK leaves it to that partner (Q3).
|
|
36
|
+
*/
|
|
37
|
+
declare const HEALTH_PLAN_REASON_LABELS: Readonly<Record<HealthPlanReasonKind, string>>;
|
|
38
|
+
/** ADAPTED from Raph. Listed for approval. */
|
|
39
|
+
declare const HEALTH_PLAN_TEMPLATES: Readonly<{
|
|
40
|
+
/** Raph: "Georgia's care plan". Used only when the plan carries no `headline` of the tenant's own. */
|
|
41
|
+
planTitle: (petName: string) => string;
|
|
42
|
+
/** Raph: "<brand> cart" (his demo named the partner). */
|
|
43
|
+
cartLabel: (brand: string) => string;
|
|
44
|
+
}>;
|
|
45
|
+
/** Every key still waiting on Raph's words (empty, so not drawn), so the list a reviewer approves cannot drift from the file. */
|
|
46
|
+
declare const HEALTH_PLAN_COPY_PLACEHOLDERS: readonly string[];
|
|
47
|
+
|
|
10
48
|
type EverfurHealthPlanStatus = 'signedOut' | 'noPet' | 'loading' | 'failed' | 'empty' | 'ready';
|
|
11
49
|
/** The member's cart: the items in the plan, and their total when one can honestly be given. */
|
|
12
50
|
interface HealthPlanCart {
|
|
@@ -239,48 +277,10 @@ declare function healthPlanBlanksFacts(input: {
|
|
|
239
277
|
readonly record: RecordsView | null;
|
|
240
278
|
}, now: number): HealthPlanBlanksFacts | null;
|
|
241
279
|
|
|
242
|
-
declare const HEALTH_PLAN_COPY: Readonly<{
|
|
243
|
-
loading: "Loading";
|
|
244
|
-
retry: "Try again";
|
|
245
|
-
signedOut: "Sign in required";
|
|
246
|
-
addToCart: "Add to cart";
|
|
247
|
-
added: "Added";
|
|
248
|
-
remove: "Remove";
|
|
249
|
-
checkout: "Checkout";
|
|
250
|
-
subtotal: "Subtotal";
|
|
251
|
-
sample: "Sample";
|
|
252
|
-
cartEmpty: "Your cart is empty.";
|
|
253
|
-
choosePet: "Choose a pet";
|
|
254
|
-
emptyTitle: "";
|
|
255
|
-
emptyBody: "";
|
|
256
|
-
emptyAsk: "";
|
|
257
|
-
}>;
|
|
258
|
-
/** The Health Plan's empty state words (Q1). Each is '' by default: an empty title and body draw nothing. */
|
|
259
|
-
interface HealthPlanEmptyCopy {
|
|
260
|
-
readonly emptyTitle: string;
|
|
261
|
-
readonly emptyBody: string;
|
|
262
|
-
/** The empty state's Ask button. */
|
|
263
|
-
readonly emptyAsk: string;
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* The reason labels, one per kind. An empty label is not drawn (the reason's text still is). `profile` (a pet profile
|
|
267
|
-
* fact) has no source yet; `dna` names one partner's product, so the SDK leaves it to that partner (Q3).
|
|
268
|
-
*/
|
|
269
|
-
declare const HEALTH_PLAN_REASON_LABELS: Readonly<Record<HealthPlanReasonKind, string>>;
|
|
270
|
-
/** ADAPTED from Raph. Listed for approval. */
|
|
271
|
-
declare const HEALTH_PLAN_TEMPLATES: Readonly<{
|
|
272
|
-
/** Raph: "Georgia's care plan". Used only when the plan carries no `headline` of the tenant's own. */
|
|
273
|
-
planTitle: (petName: string) => string;
|
|
274
|
-
/** Raph: "<brand> cart" (his demo named the partner). */
|
|
275
|
-
cartLabel: (brand: string) => string;
|
|
276
|
-
}>;
|
|
277
|
-
/** Every key still waiting on Raph's words (empty, so not drawn), so the list a reviewer approves cannot drift from the file. */
|
|
278
|
-
declare const HEALTH_PLAN_COPY_PLACEHOLDERS: readonly string[];
|
|
279
|
-
|
|
280
280
|
/**
|
|
281
281
|
* The tenant's presentation settings resolved against `client` (the explicit props; leave a field undefined to
|
|
282
282
|
* take the console value). Total: always every field.
|
|
283
283
|
*/
|
|
284
284
|
declare function useEverfurPresentation(client?: EverfurPresentationInput | null): EverfurPresentation;
|
|
285
285
|
|
|
286
|
-
export { formatHealthPlanPriceWith as A, healthPlanBlanksFacts as B, healthPlanCart as C, healthPlanNextShotsAt as D, type EverfurHealthPlanOptions as E, healthPlanRecordsWeightKg as F, isHealthPlanSessionRequired as G, type HealthPlanBlanksFacts as H, showHealthPlanCartBar as I, useEverfurHealthPlan as J, useEverfurHealthPlanRepository as K, useEverfurPresentation as L, type HealthPlanPriceFormat as a, type HealthPlanLayoutProps as b, type HealthPlanEmptyCopy as c, type
|
|
286
|
+
export { formatHealthPlanPriceWith as A, healthPlanBlanksFacts as B, healthPlanCart as C, healthPlanNextShotsAt as D, type EverfurHealthPlanOptions as E, healthPlanRecordsWeightKg as F, isHealthPlanSessionRequired as G, type HealthPlanBlanksFacts as H, showHealthPlanCartBar as I, useEverfurHealthPlan as J, useEverfurHealthPlanRepository as K, useEverfurPresentation as L, type HealthPlanPriceFormat as a, type HealthPlanLayoutProps as b, type HealthPlanEmptyCopy as c, type HealthPlanCardOptions as d, type HealthPlanImageVariant as e, type HealthPlanReasonVariant as f, type HealthPlanCart as g, type EverfurHealthPlanState as h, type EverfurHealthPlanStatus as i, HEALTH_PLAN_COPY as j, HEALTH_PLAN_COPY_PLACEHOLDERS as k, HEALTH_PLAN_LAYOUT_DEFAULTS as l, HEALTH_PLAN_REASON_LABELS as m, HEALTH_PLAN_TEMPLATES as n, type HealthPlanAddButtonSize as o, type HealthPlanAddedVariant as p, type HealthPlanBlanksPhase as q, type HealthPlanCardShadow as r, type HealthPlanCartBarPlacement as s, type HealthPlanCartBarVisibility as t, type HealthPlanCategoryVariant as u, type HealthPlanFontWeight as v, type HealthPlanHeaderContext as w, type HealthPlanPageContext as x, type HealthPlanShadow as y, formatHealthPlanPrice as z };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
|
|
3
3
|
import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
|
|
4
4
|
import { P as PetRef } from './ids.d-B2GAAifq.cjs';
|
|
5
|
-
import { l as RecordsDepthClient } from './depth.d-
|
|
5
|
+
import { l as RecordsDepthClient } from './depth.d-CXpPxNSK.cjs';
|
|
6
6
|
|
|
7
7
|
type RecordsDepthStatus = 'loading' | 'empty' | 'error' | 'populated';
|
|
8
8
|
/** One depth read as a render state. `withheld` (no consent, or a fail-closed parse) renders nothing. */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
|
|
3
3
|
import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
|
|
4
4
|
import { P as PetRef } from './ids.d-B2GAAifq.js';
|
|
5
|
-
import { l as RecordsDepthClient } from './depth.d-
|
|
5
|
+
import { l as RecordsDepthClient } from './depth.d-Dca1T_RH.js';
|
|
6
6
|
|
|
7
7
|
type RecordsDepthStatus = 'loading' | 'empty' | 'error' | 'populated';
|
|
8
8
|
/** One depth read as a render state. `withheld` (no consent, or a fail-closed parse) renders nothing. */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
2
|
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
|
|
3
3
|
import { P as PetRef } from './ids.d-B2GAAifq.cjs';
|
|
4
|
-
import { E as RecordMarkersView } from './depth.d-
|
|
5
|
-
import { R as RecordsDepthStatus } from './useRecordsDepth.d-
|
|
4
|
+
import { E as RecordMarkersView } from './depth.d-CXpPxNSK.cjs';
|
|
5
|
+
import { R as RecordsDepthStatus } from './useRecordsDepth.d-FTImzp6T.cjs';
|
|
6
6
|
import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
|
|
7
7
|
import { g as RecordPdfLink, i as RecordShareAudienceScope, R as RecordShareAudience, c as RecordShareLink, d as RecordShareEmailInput, e as RecordShareEmailReceipt } from './features.d-DrQxTw3-.cjs';
|
|
8
8
|
import { a as RecordEntity, d as RecordsRequestView } from './models.d-BSqvbTE1.cjs';
|
|
9
|
-
import { a as RecordsClinicBatchClient } from './clinicBatch.d-
|
|
9
|
+
import { a as RecordsClinicBatchClient } from './clinicBatch.d-BTDdhMQ2.cjs';
|
|
10
10
|
import { R as RecordsClinicController } from './clinicRequestProps.d-1dCtouGA.cjs';
|
|
11
11
|
|
|
12
12
|
interface UseRecordsMarkersState {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
2
|
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
|
|
3
3
|
import { P as PetRef } from './ids.d-B2GAAifq.js';
|
|
4
|
-
import { E as RecordMarkersView } from './depth.d-
|
|
5
|
-
import { R as RecordsDepthStatus } from './useRecordsDepth.d-
|
|
4
|
+
import { E as RecordMarkersView } from './depth.d-Dca1T_RH.js';
|
|
5
|
+
import { R as RecordsDepthStatus } from './useRecordsDepth.d-_rqDIvoq.js';
|
|
6
6
|
import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
|
|
7
7
|
import { g as RecordPdfLink, i as RecordShareAudienceScope, R as RecordShareAudience, c as RecordShareLink, d as RecordShareEmailInput, e as RecordShareEmailReceipt } from './features.d-DrQxTw3-.js';
|
|
8
8
|
import { a as RecordEntity, d as RecordsRequestView } from './models.d-DOwnr8fi.js';
|
|
9
|
-
import { a as RecordsClinicBatchClient } from './clinicBatch.d-
|
|
9
|
+
import { a as RecordsClinicBatchClient } from './clinicBatch.d-BP_Rpvcy.js';
|
|
10
10
|
import { R as RecordsClinicController } from './clinicRequestProps.d-CjsMg_OD.js';
|
|
11
11
|
|
|
12
12
|
interface UseRecordsMarkersState {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
2
|
import { ReactNode, CSSProperties } from 'react';
|
|
3
|
-
import { E as EverfurConsentScope } from '../../copy.d-
|
|
4
|
-
export { C as CONSENT_COPY, a as CONSENT_SCOPE_COPY, b as CONSENT_VERSION_MAX, c as ConsentRepository, d as ConsentRepositoryDeps, e as ConsentRowView, f as ConsentRuntime, g as ConsentScopeCopy, h as EVERFUR_CONSENT_SCOPES, i as EverfurConsentDecision, j as EverfurConsentOptions, k as EverfurConsentScopeState, l as EverfurConsentState, m as EverfurConsentStatus, n as EverfurConsentVerdict, o as consentRowView, p as createConsentRepository, q as createConsentRepositoryOver, r as isEverfurConsentScope, u as useEverfurConsent, s as useEverfurConsentRepository } from '../../copy.d-
|
|
3
|
+
import { E as EverfurConsentScope } from '../../copy.d-CJOLhJac.cjs';
|
|
4
|
+
export { C as CONSENT_COPY, a as CONSENT_SCOPE_COPY, b as CONSENT_VERSION_MAX, c as ConsentRepository, d as ConsentRepositoryDeps, e as ConsentRowView, f as ConsentRuntime, g as ConsentScopeCopy, h as EVERFUR_CONSENT_SCOPES, i as EverfurConsentDecision, j as EverfurConsentOptions, k as EverfurConsentScopeState, l as EverfurConsentState, m as EverfurConsentStatus, n as EverfurConsentVerdict, o as consentRowView, p as createConsentRepository, q as createConsentRepositoryOver, r as isEverfurConsentScope, u as useEverfurConsent, s as useEverfurConsentRepository } from '../../copy.d-CJOLhJac.cjs';
|
|
5
5
|
import { E as EverfurError } from '../../EverfurError.d-8NHtlgzA.cjs';
|
|
6
6
|
export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../../EverfurError.d-8NHtlgzA.cjs';
|
|
7
|
-
export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity.d-
|
|
8
|
-
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-
|
|
7
|
+
export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity.d-nRZBzkG2.cjs';
|
|
8
|
+
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-84fNJFv9.cjs';
|
|
9
9
|
export { B as Brand, C as ConversationId, P as PetRef, R as RecordsRequestId, U as UserRef, _ as __brand } from '../../ids.d-B2GAAifq.cjs';
|
|
10
10
|
export { E as EverfurResult } from '../../EverfurResult.d-BFH-3s6E.cjs';
|
|
11
11
|
export { E as ErrorPolicyPort } from '../../ErrorPolicyPort.d-DirW9hgO.cjs';
|
|
12
|
-
import '../../requestFunnel.d-
|
|
12
|
+
import '../../requestFunnel.d-mEu6B-n8.cjs';
|
|
13
13
|
|
|
14
14
|
interface EverfurConsentToggleProps {
|
|
15
15
|
/** Which act this row is. One row is one act; two acts are two rows, never one switch. */
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
2
|
import { ReactNode, CSSProperties } from 'react';
|
|
3
|
-
import { E as EverfurConsentScope } from '../../copy.d-
|
|
4
|
-
export { C as CONSENT_COPY, a as CONSENT_SCOPE_COPY, b as CONSENT_VERSION_MAX, c as ConsentRepository, d as ConsentRepositoryDeps, e as ConsentRowView, f as ConsentRuntime, g as ConsentScopeCopy, h as EVERFUR_CONSENT_SCOPES, i as EverfurConsentDecision, j as EverfurConsentOptions, k as EverfurConsentScopeState, l as EverfurConsentState, m as EverfurConsentStatus, n as EverfurConsentVerdict, o as consentRowView, p as createConsentRepository, q as createConsentRepositoryOver, r as isEverfurConsentScope, u as useEverfurConsent, s as useEverfurConsentRepository } from '../../copy.d-
|
|
3
|
+
import { E as EverfurConsentScope } from '../../copy.d-DbwWriBp.js';
|
|
4
|
+
export { C as CONSENT_COPY, a as CONSENT_SCOPE_COPY, b as CONSENT_VERSION_MAX, c as ConsentRepository, d as ConsentRepositoryDeps, e as ConsentRowView, f as ConsentRuntime, g as ConsentScopeCopy, h as EVERFUR_CONSENT_SCOPES, i as EverfurConsentDecision, j as EverfurConsentOptions, k as EverfurConsentScopeState, l as EverfurConsentState, m as EverfurConsentStatus, n as EverfurConsentVerdict, o as consentRowView, p as createConsentRepository, q as createConsentRepositoryOver, r as isEverfurConsentScope, u as useEverfurConsent, s as useEverfurConsentRepository } from '../../copy.d-DbwWriBp.js';
|
|
5
5
|
import { E as EverfurError } from '../../EverfurError.d-8NHtlgzA.js';
|
|
6
6
|
export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../../EverfurError.d-8NHtlgzA.js';
|
|
7
|
-
export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity.d-
|
|
8
|
-
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-
|
|
7
|
+
export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity.d-DxNvhj3a.js';
|
|
8
|
+
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-B4-Mrwq2.js';
|
|
9
9
|
export { B as Brand, C as ConversationId, P as PetRef, R as RecordsRequestId, U as UserRef, _ as __brand } from '../../ids.d-B2GAAifq.js';
|
|
10
10
|
export { E as EverfurResult } from '../../EverfurResult.d-D_-254ZY.js';
|
|
11
11
|
export { E as ErrorPolicyPort } from '../../ErrorPolicyPort.d-68yrE3BE.js';
|
|
12
|
-
import '../../requestFunnel.d-
|
|
12
|
+
import '../../requestFunnel.d-Cxt0JqYx.js';
|
|
13
13
|
|
|
14
14
|
interface EverfurConsentToggleProps {
|
|
15
15
|
/** Which act this row is. One row is one act; two acts are two rows, never one switch. */
|
|
@@ -424,4 +424,4 @@ return jsxRuntime.jsxs("article",{...card,style:card.style===void 0?guarded.styl
|
|
|
424
424
|
/* @__PURE__ */jsxRuntime.jsxs("p",{...part("kicker"),children:[
|
|
425
425
|
/* @__PURE__ */jsxRuntime.jsx("span",{...part("dot",kind)}),guarded.kicker]}),
|
|
426
426
|
/* @__PURE__ */jsxRuntime.jsx("p",{...part("sentence"),children:guarded.sentence}),
|
|
427
|
-
/* @__PURE__ */jsxRuntime.jsx("button",{type:"button",...part("button"),onClick:()=>guarded.onOpenPlan(),children:guarded.action})]})}function styles(theme){let{color:color,radius:radius,space:space,type:type}=theme;return{card:{display:"grid",gap:space.xs,justifyItems:"start",padding:space.md,borderRadius:radius.lg,backgroundColor:color.brandSofter},kicker:{margin:0,display:"flex",alignItems:"center",gap:space.xs,...faceCss(theme,"bold"),fontSize:type.size.caption,color:color.text.secondary,textTransform:"uppercase",letterSpacing:"0.06em"},dot:{width:8,height:8,borderRadius:4,backgroundColor:color.errorRed},sentence:{margin:0,...faceCss(theme,"bold"),fontSize:type.size.subtitle,color:color.text.primary},button:{minHeight:40,padding:`0 ${space.md}px`,border:"none",borderRadius:999,cursor:"pointer",backgroundColor:color.primary,color:color.onPrimary,...faceCss(theme,"bold"),fontSize:type.size.caption}}}var CLOSE_FALLBACK="Close",HEALTH_PLAN_TOP_CARD_COPY=/* @__PURE__ */Object.freeze({action:who=>who.possessive===null?null:`See ${who.possessive} Health Plan`,ask:"What does it mean?",askPrompt:(focus,ask)=>focus.risk?.lead?`${focus.risk.lead} ${ask}`:`${focus.title}: ${ask}`,close:who=>who.possessive===null?null:`Close ${who.possessive} focus`});function healthPlanPossessive(pet){let sex=typeof pet.sex=="string"?pet.sex.trim().toLowerCase():null;if(sex==="female")return"her";if(sex==="male")return"his";let name=typeof pet.name=="string"?pet.name.trim():"";return name!==""?`${name}'s`:null}function healthPlanTopCard(page,options){let focus=page?.page?.focus;if(page===null||focus===void 0||focus.title.trim()===""||focus.kicker.trim()==="")return;let copy={...HEALTH_PLAN_TOP_CARD_COPY,...options.copy},who={pet:page.pet,possessive:healthPlanPossessive(page.pet)},badge=focus.sources?.find(source=>source.label.trim()!=="")?.label,onOpenPlan=options.onOpenPlan,action=onOpenPlan===void 0?null:copy.action(who),close=copy.close(who),ask=copy.ask.trim();return{kicker:focus.kicker,...badge===void 0?{}:{badge:badge},title:focus.title,...focus.risk?.lead?{lead:focus.risk.lead}:{},...focus.risk?.body?{body:focus.risk.body}:{},...action===null||action.trim()===""||onOpenPlan===void 0?{}:{action:{label:action,onPress:onOpenPlan}},...ask===""?{}:{ask:{label:ask,prompt:copy.askPrompt(focus,ask)}},closeLabel:close===null||close.trim()===""?CLOSE_FALLBACK:close,pill:focus.kicker,...options.renderIcon===void 0?{}:{renderIcon:options.renderIcon},...options.classNames===void 0?{}:{classNames:options.classNames}}}function useHealthPlanTopCard(options){let{petRef:petRef,enabled:enabled,onOpenPlan:onOpenPlan,copy:copy,classNames:classNames,renderIcon:renderIcon}=options,{page:page}=useHealthPlanPage({petRef:petRef,...enabled===void 0?{}:{enabled:enabled}});return react.useMemo(()=>
|
|
427
|
+
/* @__PURE__ */jsxRuntime.jsx("button",{type:"button",...part("button"),onClick:()=>guarded.onOpenPlan(),children:guarded.action})]})}function styles(theme){let{color:color,radius:radius,space:space,type:type}=theme;return{card:{display:"grid",gap:space.xs,justifyItems:"start",padding:space.md,borderRadius:radius.lg,backgroundColor:color.brandSofter},kicker:{margin:0,display:"flex",alignItems:"center",gap:space.xs,...faceCss(theme,"bold"),fontSize:type.size.caption,color:color.text.secondary,textTransform:"uppercase",letterSpacing:"0.06em"},dot:{width:8,height:8,borderRadius:4,backgroundColor:color.errorRed},sentence:{margin:0,...faceCss(theme,"bold"),fontSize:type.size.subtitle,color:color.text.primary},button:{minHeight:40,padding:`0 ${space.md}px`,border:"none",borderRadius:999,cursor:"pointer",backgroundColor:color.primary,color:color.onPrimary,...faceCss(theme,"bold"),fontSize:type.size.caption}}}var CLOSE_FALLBACK="Close",HEALTH_PLAN_TOP_CARD_COPY=/* @__PURE__ */Object.freeze({action:who=>who.possessive===null?null:`See ${who.possessive} Health Plan`,ask:"What does it mean?",askPrompt:(focus,ask)=>focus.risk?.lead?`${focus.risk.lead} ${ask}`:`${focus.title}: ${ask}`,close:who=>who.possessive===null?null:`Close ${who.possessive} focus`});function healthPlanPossessive(pet){let sex=typeof pet.sex=="string"?pet.sex.trim().toLowerCase():null;if(sex==="female")return"her";if(sex==="male")return"his";let name=typeof pet.name=="string"?pet.name.trim():"";return name!==""?`${name}'s`:null}function healthPlanTopCard(page,options={}){let focus=page?.page?.focus;if(page===null||focus===void 0||focus.title.trim()===""||focus.kicker.trim()==="")return;let copy={...HEALTH_PLAN_TOP_CARD_COPY,...options.copy},who={pet:page.pet,possessive:healthPlanPossessive(page.pet)},badge=focus.sources?.find(source=>source.label.trim()!=="")?.label,onOpenPlan=options.onOpenPlan,action=onOpenPlan===void 0?null:copy.action(who),close=copy.close(who),ask=copy.ask.trim();return{kicker:focus.kicker,...badge===void 0?{}:{badge:badge},title:focus.title,...focus.risk?.lead?{lead:focus.risk.lead}:{},...focus.risk?.body?{body:focus.risk.body}:{},...action===null||action.trim()===""||onOpenPlan===void 0?{}:{action:{label:action,onPress:onOpenPlan}},...ask===""?{}:{ask:{label:ask,prompt:copy.askPrompt(focus,ask)}},closeLabel:close===null||close.trim()===""?CLOSE_FALLBACK:close,pill:focus.kicker,...options.renderIcon===void 0?{}:{renderIcon:options.renderIcon}}}function healthPlanPossessive2(pet){return healthPlanPossessive(pet)}function healthPlanTopCard2(page,options){let card=healthPlanTopCard(page,options);if(card!==void 0)return{...card,...options.classNames===void 0?{}:{classNames:options.classNames}}}function useHealthPlanTopCard(options){let{petRef:petRef,enabled:enabled,onOpenPlan:onOpenPlan,copy:copy,classNames:classNames,renderIcon:renderIcon}=options,{page:page}=useHealthPlanPage({petRef:petRef,...enabled===void 0?{}:{enabled:enabled}});return react.useMemo(()=>healthPlanTopCard2(page,{onOpenPlan:onOpenPlan,...copy===void 0?{}:{copy:copy},...classNames===void 0?{}:{classNames:classNames},...renderIcon===void 0?{}:{renderIcon:renderIcon}}),[page,onOpenPlan,copy,classNames,renderIcon])}exports.EverfurHealthPlan=EverfurHealthPlan;exports.HEALTH_PLAN_COPY=HEALTH_PLAN_COPY;exports.HEALTH_PLAN_COPY_PLACEHOLDERS=HEALTH_PLAN_COPY_PLACEHOLDERS;exports.HEALTH_PLAN_FOCUS_COPY=HEALTH_PLAN_FOCUS_COPY;exports.HEALTH_PLAN_LAYOUT_DEFAULTS=HEALTH_PLAN_LAYOUT_DEFAULTS;exports.HEALTH_PLAN_REASON_KINDS=HEALTH_PLAN_REASON_KINDS;exports.HEALTH_PLAN_REASON_LABELS=HEALTH_PLAN_REASON_LABELS;exports.HEALTH_PLAN_TEMPLATES=HEALTH_PLAN_TEMPLATES;exports.HEALTH_PLAN_TOP_CARD_COPY=HEALTH_PLAN_TOP_CARD_COPY;exports.HealthPlanBlanks=HealthPlanBlanks;exports.HealthPlanCartBar=HealthPlanCartBar;exports.HealthPlanCartScope=HealthPlanCartScope;exports.HealthPlanController=HealthPlanController;exports.HealthPlanFocus=HealthPlanFocus;exports.HealthPlanItemCard=HealthPlanItemCard;exports.HealthPlanTopRisk=HealthPlanTopRisk;exports.createHealthPlanPageRepository=createHealthPlanPageRepository;exports.createHealthPlanPageRepositoryOver=createHealthPlanPageRepositoryOver;exports.createHealthPlanRepository=createHealthPlanRepository;exports.createHealthPlanRepositoryOver=createHealthPlanRepositoryOver;exports.createHealthPlanSubscriptionRepository=createHealthPlanSubscriptionRepository;exports.createHealthPlanSubscriptionRepositoryOver=createHealthPlanSubscriptionRepositoryOver;exports.formatHealthPlanDay=formatHealthPlanDay;exports.formatHealthPlanPrice=formatHealthPlanPrice;exports.formatHealthPlanPriceWith=formatHealthPlanPriceWith;exports.healthPlanBlanksFacts=healthPlanBlanksFacts;exports.healthPlanCart=healthPlanCart;exports.healthPlanCheckoutRefusal=healthPlanCheckoutRefusal;exports.healthPlanCheckoutSessionFromWire=healthPlanCheckoutSessionFromWire;exports.healthPlanCheckoutStateFromWire=healthPlanCheckoutStateFromWire;exports.healthPlanFocusCopyFor=healthPlanFocusCopyFor;exports.healthPlanFocusDesignFromWire=healthPlanFocusDesignFromWire;exports.healthPlanFromWire=healthPlanFromWire;exports.healthPlanNextShotsAt=healthPlanNextShotsAt;exports.healthPlanNoVet=healthPlanNoVet;exports.healthPlanOneBoxOrderFromWire=healthPlanOneBoxOrderFromWire;exports.healthPlanOneBoxOrderPageFromWire=healthPlanOneBoxOrderPageFromWire;exports.healthPlanOrderTrackingFromWire=healthPlanOrderTrackingFromWire;exports.healthPlanPageFromWire=healthPlanPageFromWire;exports.healthPlanPetWords=healthPlanPetWords;exports.healthPlanPossessive=healthPlanPossessive2;exports.healthPlanRecordsWeightKg=healthPlanRecordsWeightKg;exports.healthPlanSubscriptionFromWire=healthPlanSubscriptionFromWire;exports.healthPlanSubscriptionQuoteFromWire=healthPlanSubscriptionQuoteFromWire;exports.healthPlanTopCard=healthPlanTopCard2;exports.isHealthPlanSessionRequired=isHealthPlanSessionRequired;exports.isHealthPlanSubscriptionUnavailable=isHealthPlanSubscriptionUnavailable;exports.notifyHealthPlanRecordsLanded=notifyHealthPlanRecordsLanded;exports.onHealthPlanNoVet=onHealthPlanNoVet;exports.onHealthPlanRecordsLanded=onHealthPlanRecordsLanded;exports.setHealthPlanNoVet=setHealthPlanNoVet;exports.showHealthPlanCartBar=showHealthPlanCartBar;exports.useEverfurHealthPlan=useEverfurHealthPlan;exports.useEverfurHealthPlanRepository=useEverfurHealthPlanRepository;exports.useEverfurPresentation=useEverfurPresentation;exports.useHealthPlanCartDock=useHealthPlanCartDock;exports.useHealthPlanPage=useHealthPlanPage;exports.useHealthPlanPageRepository=useHealthPlanPageRepository;exports.useHealthPlanSubscription=useHealthPlanSubscription;exports.useHealthPlanSubscriptionRepository=useHealthPlanSubscriptionRepository;exports.useHealthPlanTopCard=useHealthPlanTopCard;
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
|
-
import { E as EverfurChatTopCard } from '../../threadOptions.d-
|
|
3
|
-
export { a as EverfurHealthPlan, b as EverfurHealthPlanProps, H as HealthPlanFocus, c as HealthPlanFocusLayer, d as HealthPlanFocusOptions, e as HealthPlanFocusOverlay, f as HealthPlanFocusOverlayControls, g as HealthPlanFocusProps } from '../../threadOptions.d-
|
|
2
|
+
import { E as EverfurChatTopCard } from '../../threadOptions.d-P9v7I7va.cjs';
|
|
3
|
+
export { a as EverfurHealthPlan, b as EverfurHealthPlanProps, H as HealthPlanFocus, c as HealthPlanFocusLayer, d as HealthPlanFocusOptions, e as HealthPlanFocusOverlay, f as HealthPlanFocusOverlayControls, g as HealthPlanFocusProps } from '../../threadOptions.d-P9v7I7va.cjs';
|
|
4
4
|
import { ReactNode, CSSProperties } from 'react';
|
|
5
5
|
import { E as EverfurError } from '../../EverfurError.d-8NHtlgzA.cjs';
|
|
6
6
|
export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../../EverfurError.d-8NHtlgzA.cjs';
|
|
7
|
-
import { f as HealthPlanItem,
|
|
8
|
-
export {
|
|
9
|
-
import {
|
|
10
|
-
export { E as EverfurHealthPlanOptions, h as EverfurHealthPlanState, i as EverfurHealthPlanStatus, j as HEALTH_PLAN_COPY, k as HEALTH_PLAN_COPY_PLACEHOLDERS, l as HEALTH_PLAN_LAYOUT_DEFAULTS, m as HEALTH_PLAN_REASON_LABELS, n as HEALTH_PLAN_TEMPLATES, o as HealthPlanAddButtonSize, p as HealthPlanAddedVariant, H as HealthPlanBlanksFacts, q as HealthPlanBlanksPhase, r as HealthPlanCardShadow, s as HealthPlanCartBarPlacement, t as HealthPlanCartBarVisibility, u as HealthPlanCategoryVariant, c as HealthPlanEmptyCopy, v as HealthPlanFontWeight, w as HealthPlanHeaderContext, b as HealthPlanLayoutProps, x as HealthPlanPageContext, y as HealthPlanShadow, z as formatHealthPlanPrice, A as formatHealthPlanPriceWith, B as healthPlanBlanksFacts, C as healthPlanCart, D as healthPlanNextShotsAt, F as healthPlanRecordsWeightKg, G as isHealthPlanSessionRequired, I as showHealthPlanCartBar, J as useEverfurHealthPlan, K as useEverfurHealthPlanRepository, L as useEverfurPresentation } from '../../usePresentation.d-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
import { f as HealthPlanItem, m as HealthPlanFocusPart, n as HealthPlanPagePet, H as HealthPlanPage } from '../../focus.d-BQnOVAql.cjs';
|
|
8
|
+
export { o as HEALTH_PLAN_FOCUS_COPY, p as HEALTH_PLAN_REASON_KINDS, q as HealthPlan, r as HealthPlanCartCheckoutRequest, s as HealthPlanCheckoutItem, l as HealthPlanCheckoutProvider, t as HealthPlanCheckoutRefusal, u as HealthPlanCheckoutRequest, v as HealthPlanCheckoutSession, w as HealthPlanCheckoutState, x as HealthPlanCheckoutStatus, d as HealthPlanFocusClassNames, c as HealthPlanFocusCopy, b as HealthPlanFocusDesign, y as HealthPlanFocusExtra, e as HealthPlanFocusIcon, z as HealthPlanFocusPrices, A as HealthPlanFocusReasonRow, B as HealthPlanFocusReview, C as HealthPlanFocusSign, D as HealthPlanFocusStep, E as HealthPlanFocusWait, F as HealthPlanOneBoxOffer, h as HealthPlanOneBoxOrder, G as HealthPlanOneBoxOrderPage, I as HealthPlanOneBoxOrderPageOptions, J as HealthPlanOrderStatus, K as HealthPlanOrderTracking, L as HealthPlanOrderTrackingStatus, j as HealthPlanPageRepository, a as HealthPlanPetWords, M as HealthPlanPurchase, N as HealthPlanReason, O as HealthPlanReasonKind, P as HealthPlanRepository, Q as HealthPlanRepositoryDeps, R as HealthPlanRuntime, k as HealthPlanShopOrder, g as HealthPlanSubscription, S as HealthPlanSubscriptionQuote, T as HealthPlanSubscriptionRenewal, i as HealthPlanSubscriptionRepository, U as HealthPlanSubscriptionStatus, V as HealthPlanSubscriptionStep, W as HealthPlanSubscriptionSupply, X as HealthPlanTrackStep, Y as createHealthPlanPageRepository, Z as createHealthPlanPageRepositoryOver, _ as createHealthPlanRepository, $ as createHealthPlanRepositoryOver, a0 as createHealthPlanSubscriptionRepository, a1 as createHealthPlanSubscriptionRepositoryOver, a2 as formatHealthPlanDay, a3 as healthPlanCheckoutRefusal, a4 as healthPlanCheckoutSessionFromWire, a5 as healthPlanCheckoutStateFromWire, a6 as healthPlanFocusCopyFor, a7 as healthPlanFocusDesignFromWire, a8 as healthPlanFromWire, a9 as healthPlanOneBoxOrderFromWire, aa as healthPlanOneBoxOrderPageFromWire, ab as healthPlanOrderTrackingFromWire, ac as healthPlanPageFromWire, ad as healthPlanPetWords, ae as healthPlanSubscriptionFromWire, af as healthPlanSubscriptionQuoteFromWire, ag as isHealthPlanSubscriptionUnavailable } from '../../focus.d-BQnOVAql.cjs';
|
|
9
|
+
import { d as HealthPlanCardOptions, e as HealthPlanImageVariant, f as HealthPlanReasonVariant, a as HealthPlanPriceFormat, g as HealthPlanCart } from '../../usePresentation.d-YkJeq9mf.cjs';
|
|
10
|
+
export { E as EverfurHealthPlanOptions, h as EverfurHealthPlanState, i as EverfurHealthPlanStatus, j as HEALTH_PLAN_COPY, k as HEALTH_PLAN_COPY_PLACEHOLDERS, l as HEALTH_PLAN_LAYOUT_DEFAULTS, m as HEALTH_PLAN_REASON_LABELS, n as HEALTH_PLAN_TEMPLATES, o as HealthPlanAddButtonSize, p as HealthPlanAddedVariant, H as HealthPlanBlanksFacts, q as HealthPlanBlanksPhase, r as HealthPlanCardShadow, s as HealthPlanCartBarPlacement, t as HealthPlanCartBarVisibility, u as HealthPlanCategoryVariant, c as HealthPlanEmptyCopy, v as HealthPlanFontWeight, w as HealthPlanHeaderContext, b as HealthPlanLayoutProps, x as HealthPlanPageContext, y as HealthPlanShadow, z as formatHealthPlanPrice, A as formatHealthPlanPriceWith, B as healthPlanBlanksFacts, C as healthPlanCart, D as healthPlanNextShotsAt, F as healthPlanRecordsWeightKg, G as isHealthPlanSessionRequired, I as showHealthPlanCartBar, J as useEverfurHealthPlan, K as useEverfurHealthPlanRepository, L as useEverfurPresentation } from '../../usePresentation.d-YkJeq9mf.cjs';
|
|
11
|
+
import { H as HealthPlanTopCardCopy } from '../../useHealthPlanSubscription.d-OhLZpn-n.cjs';
|
|
12
|
+
export { a as HEALTH_PLAN_TOP_CARD_COPY, b as HealthPlanCartDock, c as HealthPlanCartScope, d as HealthPlanCartScopeProps, e as HealthPlanController, f as HealthPlanNoVetListener, g as HealthPlanPageOptions, h as HealthPlanPagePhase, i as HealthPlanPageState, j as HealthPlanPhase, k as HealthPlanRecordsLandedListener, l as HealthPlanRecordsLandedSource, m as HealthPlanSnapshot, n as HealthPlanSubscriptionOptions, o as HealthPlanSubscriptionPhase, p as HealthPlanSubscriptionState, q as HealthPlanTopCardFocus, r as HealthPlanTopCardPet, s as healthPlanNoVet, t as notifyHealthPlanRecordsLanded, u as onHealthPlanNoVet, v as onHealthPlanRecordsLanded, w as setHealthPlanNoVet, x as useHealthPlanCartDock, y as useHealthPlanPage, z as useHealthPlanPageRepository, A as useHealthPlanSubscription, B as useHealthPlanSubscriptionRepository } from '../../useHealthPlanSubscription.d-OhLZpn-n.cjs';
|
|
13
|
+
export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity.d-nRZBzkG2.cjs';
|
|
14
|
+
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-84fNJFv9.cjs';
|
|
13
15
|
import { P as PetRef } from '../../ids.d-B2GAAifq.cjs';
|
|
14
16
|
export { B as Brand, C as ConversationId, R as RecordsRequestId, U as UserRef, _ as __brand } from '../../ids.d-B2GAAifq.cjs';
|
|
15
|
-
|
|
16
|
-
export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../../identity.d-HbwYQ4-z.cjs';
|
|
17
|
-
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-BQgrIDdu.cjs';
|
|
17
|
+
export { E as EverfurResult } from '../../EverfurResult.d-BFH-3s6E.cjs';
|
|
18
18
|
export { E as ErrorPolicyPort } from '../../ErrorPolicyPort.d-DirW9hgO.cjs';
|
|
19
|
+
export { L as LifecyclePort } from '../../LifecyclePort.d-Cr1p33a7.cjs';
|
|
19
20
|
export { E as EverfurChatAnswerStyle, a as EverfurChatComposerPlaceholder, b as EverfurChatComposerStyle, c as EverfurChatHistoryBarSetting, d as EverfurChatHistoryStyle, e as EverfurChatSendButtonSetting, f as EverfurChatTopCardSetting, g as EverfurHealthPlanLayout, h as EverfurPresentation, i as EverfurPresentationInput, j as EverfurSafetyDisclaimerPlacement } from '../../presentation.d-vy8kTGfR.cjs';
|
|
20
21
|
import '../../resolve.d-CoQWUy1Y.cjs';
|
|
21
|
-
import '../../
|
|
22
|
+
import '../../threadOptions.d-6hfQS1x7.cjs';
|
|
23
|
+
import '../../requestFunnel.d-mEu6B-n8.cjs';
|
|
22
24
|
import '../../models.d-BSqvbTE1.cjs';
|
|
23
25
|
|
|
24
26
|
interface HealthPlanItemCardProps extends HealthPlanCardOptions {
|
|
@@ -105,62 +107,6 @@ interface HealthPlanBlanksProps {
|
|
|
105
107
|
}
|
|
106
108
|
declare function HealthPlanBlanks(props: HealthPlanBlanksProps): ReactNode;
|
|
107
109
|
|
|
108
|
-
type HealthPlanSubscriptionPhase = 'idle' | 'loading' | 'unavailable' | 'failed' | 'ready';
|
|
109
|
-
interface HealthPlanSubscriptionOptions {
|
|
110
|
-
readonly petRef: PetRef | null;
|
|
111
|
-
readonly productId: string | null;
|
|
112
|
-
/** False skips every read (a host that has not opted in). Defaults to true. */
|
|
113
|
-
readonly enabled?: boolean;
|
|
114
|
-
/** A repository of your own (tests, a stub backend). Defaults to the one over the provider's runtime. */
|
|
115
|
-
readonly repository?: HealthPlanSubscriptionRepository;
|
|
116
|
-
/** Coming back to the foreground re-reads a quote shown for more than a minute, quietly. Absent, it does not. */
|
|
117
|
-
readonly lifecycle?: LifecyclePort | null;
|
|
118
|
-
/** Change it to re-read the quote now, quietly (for example after your checkout completed). */
|
|
119
|
-
readonly refreshKey?: string | number;
|
|
120
|
-
}
|
|
121
|
-
interface HealthPlanSubscriptionState {
|
|
122
|
-
readonly phase: HealthPlanSubscriptionPhase;
|
|
123
|
-
readonly quote: HealthPlanSubscriptionQuote | null;
|
|
124
|
-
/** The member's row for this pet and product (active or cancelled), or null. */
|
|
125
|
-
readonly subscription: HealthPlanSubscription | null;
|
|
126
|
-
/** A write is in flight. */
|
|
127
|
-
readonly busy: boolean;
|
|
128
|
-
/** The last refused read or write, or null. */
|
|
129
|
-
readonly error: EverfurError | null;
|
|
130
|
-
/** Each write settles the server's new state, or the refusal (a write before the quote is ready is refused). */
|
|
131
|
-
subscribe(intervalDays: number): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
132
|
-
changeInterval(intervalDays: number): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
133
|
-
skip(): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
134
|
-
cancel(): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
135
|
-
restart(intervalDays?: number): Promise<EverfurResult<HealthPlanSubscription>>;
|
|
136
|
-
/** Buy one box (no renewal), then re-read the quote: a one-box order spends the first-box offer. */
|
|
137
|
-
buyOneBox(tapKey?: string): Promise<EverfurResult<HealthPlanOneBoxOrder>>;
|
|
138
|
-
refresh(): Promise<void>;
|
|
139
|
-
}
|
|
140
|
-
/** The subscription repository bound to the runtime under your provider. */
|
|
141
|
-
declare function useHealthPlanSubscriptionRepository(): HealthPlanSubscriptionRepository;
|
|
142
|
-
/** One product's subscription for one pet. `EverfurHealthPlan` with `layout="focus"` paints it. */
|
|
143
|
-
declare function useHealthPlanSubscription(options: HealthPlanSubscriptionOptions): HealthPlanSubscriptionState;
|
|
144
|
-
|
|
145
|
-
/** The page's focus, as the copy functions receive it. */
|
|
146
|
-
type HealthPlanTopCardFocus = NonNullable<HealthPlanFocusDesign['focus']>;
|
|
147
|
-
/** Who the card is about: the page's pet and the possessive its words use ("her", "his", "Georgia's"), or null. */
|
|
148
|
-
interface HealthPlanTopCardPet {
|
|
149
|
-
readonly pet: HealthPlanPagePet;
|
|
150
|
-
readonly possessive: string | null;
|
|
151
|
-
}
|
|
152
|
-
/** The card's own words. Defaults: Raph's v3 design (`HEALTH_PLAN_TOP_CARD_COPY`). */
|
|
153
|
-
interface HealthPlanTopCardCopy {
|
|
154
|
-
/** The plan button ("See her Health Plan"); null draws none. */
|
|
155
|
-
readonly action: (who: HealthPlanTopCardPet) => string | null;
|
|
156
|
-
/** The question link ("What does it mean?"). */
|
|
157
|
-
readonly ask: string;
|
|
158
|
-
/** What the link sends to the chat: the risk line's lead, then the link's words. */
|
|
159
|
-
readonly askPrompt: (focus: HealthPlanTopCardFocus, ask: string) => string;
|
|
160
|
-
/** The close control's accessible name ("Close her focus"); null or blank names it with the chat's plain "Close". */
|
|
161
|
-
readonly close: (who: HealthPlanTopCardPet) => string | null;
|
|
162
|
-
}
|
|
163
|
-
declare const HEALTH_PLAN_TOP_CARD_COPY: HealthPlanTopCardCopy;
|
|
164
110
|
/**
|
|
165
111
|
* "her" for a female, "his" for a male, "Georgia's" for a named pet of unknown sex, else null. The sex is read
|
|
166
112
|
* leniently (any case, surrounding spaces), so a host-shaped page that says "Female" still reads as her.
|
|
@@ -187,4 +133,4 @@ interface UseHealthPlanTopCardOptions extends HealthPlanTopCardOptions {
|
|
|
187
133
|
*/
|
|
188
134
|
declare function useHealthPlanTopCard(options: UseHealthPlanTopCardOptions): EverfurChatTopCard | undefined;
|
|
189
135
|
|
|
190
|
-
export { EverfurChatTopCard, EverfurError,
|
|
136
|
+
export { EverfurChatTopCard, EverfurError, HealthPlanBlanks, type HealthPlanBlanksProps, type HealthPlanBlanksRow, HealthPlanCardOptions, HealthPlanCart, HealthPlanCartBar, type HealthPlanCartBarProps, HealthPlanFocusPart, HealthPlanImageVariant, HealthPlanItem, HealthPlanItemCard, type HealthPlanItemCardProps, HealthPlanPage, HealthPlanPagePet, HealthPlanPriceFormat, HealthPlanReasonVariant, HealthPlanTopCardCopy, type HealthPlanTopCardOptions, HealthPlanTopRisk, type HealthPlanTopRiskProps, PetRef, type UseHealthPlanTopCardOptions, healthPlanPossessive, healthPlanTopCard, useHealthPlanTopCard };
|