@apextelemed/partner-core 0.19.0-dev.61 → 0.19.0-dev.62

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 (50) hide show
  1. package/dist/api/index.d.ts +23 -2
  2. package/dist/api/index.js +4 -4
  3. package/dist/api/index.jsx +8 -4
  4. package/dist/chunk/{CDRUVUTJ.js → 22EFLJGO.js} +18 -8
  5. package/dist/chunk/22EFLJGO.js.map +1 -0
  6. package/dist/chunk/{EED3KNR7.jsx → 2Q4GK4WD.jsx} +41 -3
  7. package/dist/chunk/{GJSE37VN.js → BPF2SSKF.js} +3 -3
  8. package/dist/chunk/{GJSE37VN.js.map → BPF2SSKF.js.map} +1 -1
  9. package/dist/chunk/{OOMMZESR.js → CED3IYWX.js} +40 -4
  10. package/dist/chunk/CED3IYWX.js.map +1 -0
  11. package/dist/chunk/ESNAWOHG.jsx +1 -0
  12. package/dist/chunk/{OZHJ5IGL.jsx → FL3DS5WN.jsx} +370 -131
  13. package/dist/chunk/{UZ2K7HBG.js → GSYL4J57.js} +1828 -800
  14. package/dist/chunk/GSYL4J57.js.map +1 -0
  15. package/dist/chunk/{33BDC6MT.jsx → GULO22W6.jsx} +2 -2
  16. package/dist/chunk/{HEQLEGHI.js → GYAT2X65.js} +43 -3
  17. package/dist/chunk/GYAT2X65.js.map +1 -0
  18. package/dist/chunk/{LA6F37YV.jsx → I7L5WVA2.jsx} +20 -7
  19. package/dist/chunk/{X6WJQ47H.jsx → PWEK34Q4.jsx} +42 -2
  20. package/dist/chunk/{TFJKTKZ3.jsx → U5DE7VZP.jsx} +2350 -1670
  21. package/dist/chunk/{WTHAR2P2.js → UM5K75Y4.js} +3 -3
  22. package/dist/chunk/{WTHAR2P2.js.map → UM5K75Y4.js.map} +1 -1
  23. package/dist/chunk/{ZWAZNB4Y.jsx → W5QWCMTE.jsx} +2 -2
  24. package/dist/chunk/{VGF2LLAD.js → XPYBZU45.js} +240 -14
  25. package/dist/chunk/XPYBZU45.js.map +1 -0
  26. package/dist/chunk/XZVVZIRZ.js +3 -0
  27. package/dist/chunk/XZVVZIRZ.js.map +1 -0
  28. package/dist/{client-CMbSYUam.d.ts → client-BQ8AEx5S.d.ts} +155 -2
  29. package/dist/flows/index.d.ts +113 -2
  30. package/dist/flows/index.js +6 -6
  31. package/dist/flows/index.jsx +14 -6
  32. package/dist/index/index.d.ts +26 -5
  33. package/dist/index/index.js +8 -8
  34. package/dist/index/index.jsx +22 -8
  35. package/dist/pages/index.d.ts +2 -2
  36. package/dist/pages/index.js +5 -5
  37. package/dist/pages/index.jsx +5 -5
  38. package/dist/stores/index.d.ts +1 -1
  39. package/dist/stores/index.js +2 -2
  40. package/dist/stores/index.jsx +2 -2
  41. package/dist/theme/member-portal.css +43 -0
  42. package/package.json +1 -1
  43. package/dist/chunk/ACE7M2YA.jsx +0 -1
  44. package/dist/chunk/CDRUVUTJ.js.map +0 -1
  45. package/dist/chunk/HEQLEGHI.js.map +0 -1
  46. package/dist/chunk/JSHO46VZ.js +0 -3
  47. package/dist/chunk/JSHO46VZ.js.map +0 -1
  48. package/dist/chunk/OOMMZESR.js.map +0 -1
  49. package/dist/chunk/UZ2K7HBG.js.map +0 -1
  50. package/dist/chunk/VGF2LLAD.js.map +0 -1
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=XZVVZIRZ.js.map
3
+ //# sourceMappingURL=XZVVZIRZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"XZVVZIRZ.js"}
@@ -29,6 +29,16 @@ interface RegisterPayload {
29
29
  state: string;
30
30
  zip: string;
31
31
  };
32
+ /**
33
+ * Opt-in to text messages, given at signup. Optional and never required: a
34
+ * consent the server can't record (text out of date, number unusable, texts
35
+ * not set up) is dropped without failing the registration. `textVersion` is
36
+ * the version of the wording the person was shown (`fetchSmsConfig()`).
37
+ */
38
+ smsConsent?: {
39
+ granted: true;
40
+ textVersion: string;
41
+ };
32
42
  }
33
43
  interface RegisterAndSubscribePayload extends RegisterPayload {
34
44
  opaqueData?: Record<string, unknown>;
@@ -161,6 +171,50 @@ interface UpdateProfilePayload {
161
171
  /** Last-entered survey vitals, persisted for cross-device carry-over. */
162
172
  heightIn?: number;
163
173
  weightLb?: number;
174
+ /**
175
+ * Grant or withdraw consent to text messages. A phone change in the same
176
+ * request is applied first, so a grant covers the NEW number. `textVersion`
177
+ * is the version of the wording shown (`fetchSmsConfig()`); required to grant.
178
+ */
179
+ smsConsent?: {
180
+ granted: boolean;
181
+ textVersion?: string;
182
+ source?: 'intake' | 'profile';
183
+ };
184
+ }
185
+ /** Outcome of a consent change sent on `PATCH /users/me`. */
186
+ type SmsConsentStatus = 'granted' | 'already_granted' | 'revoked' | 'nothing_to_revoke' | 'refused';
187
+ /** Why a grant was refused. Alongside other profile fields it comes back as
188
+ * `smsConsent.reason`; on a request that ONLY changes consent it is a 409's `reason`. */
189
+ type SmsRefusalReason = 'stale_text' | 'no_phone' | 'sms_unavailable';
190
+ interface SmsConsentResult {
191
+ status: SmsConsentStatus;
192
+ reason?: SmsRefusalReason;
193
+ }
194
+ interface UpdateProfileResponse {
195
+ user?: User;
196
+ /** Present only when the request carried `smsConsent`. */
197
+ smsConsent?: SmsConsentResult;
198
+ }
199
+ /** One text-message event the tenant switched on, as this member has it set. */
200
+ interface UserSmsEvent {
201
+ key: string;
202
+ label: string;
203
+ enabled: boolean;
204
+ }
205
+ /** The member's text-message state (`GET /users/me/sms`, and the reply to saving preferences). */
206
+ interface UserSmsState {
207
+ /** False when the tenant doesn't text customers — show nothing. */
208
+ available: boolean;
209
+ /** E.164, or null when no number is on file. */
210
+ phone: string | null;
211
+ consented: boolean;
212
+ /** The member replied STOP: a carrier-level block this site cannot lift. */
213
+ optedOutByStop: boolean;
214
+ /** The number texts come from — what the member texts START to. */
215
+ fromNumber?: string;
216
+ /** Only the events the tenant switched on. */
217
+ events: UserSmsEvent[];
164
218
  }
165
219
  interface UpdatePaymentMethodPayload {
166
220
  /** Provider-neutral tokenized card from useCardTokenizer().tokenize() (AuthNet
@@ -234,6 +288,76 @@ interface EmailNotificationSettings {
234
288
  enabledEvents: Record<string, boolean>;
235
289
  }
236
290
  /** `self_serve`: the admin switches it. `request`: the platform team turns it on when asked. */
291
+ /** Why customer texts aren't going out yet, from `GET /admin/sms/settings`. */
292
+ type AdminSmsNotReadyReason = 'feature_off' | 'not_enabled' | 'not_registered';
293
+ interface AdminSmsSettings {
294
+ /** The `sms` feature is on for this tenant (it is request-only: a number is registered with carriers first). */
295
+ feature: boolean;
296
+ /** The tenant has switched texts on. */
297
+ enabled: boolean;
298
+ /** Texts can actually go out right now. */
299
+ ready: boolean;
300
+ /** Present when `ready` is false. */
301
+ notReadyReason?: AdminSmsNotReadyReason;
302
+ fromNumber: string | null;
303
+ brandName: string;
304
+ termsUrl: string | null;
305
+ privacyUrl: string | null;
306
+ }
307
+ /** How a message splits into SMS segments (computed by the backend; the editor mirrors it live). */
308
+ interface AdminSmsSegmentInfo {
309
+ encoding: 'GSM-7' | 'UCS-2';
310
+ /** Characters counted the way the encoding counts them (GSM extension characters are 2). */
311
+ units: number;
312
+ segments: number;
313
+ }
314
+ interface AdminSmsTemplate {
315
+ key: string;
316
+ label: string;
317
+ enabled: boolean;
318
+ body: string;
319
+ defaultBody: string;
320
+ /** `body` differs from `defaultBody`. */
321
+ customized: boolean;
322
+ /** The only `{{tokens}}` this event's body may use. */
323
+ tokens: string[];
324
+ /** `body` rendered with sample values. */
325
+ preview: string;
326
+ segments: AdminSmsSegmentInfo;
327
+ }
328
+ /**
329
+ * One event's change on `PUT /admin/sms/templates`. A value sets it, `null`
330
+ * resets it to the default, and leaving a field out keeps it as it is.
331
+ */
332
+ interface AdminSmsTemplateChange {
333
+ enabled?: boolean | null;
334
+ body?: string | null;
335
+ }
336
+ /** `null` resets the whole event (both fields) to its defaults. */
337
+ type AdminSmsTemplateChanges = Record<string, AdminSmsTemplateChange | null>;
338
+ type AdminSmsTestStatus = 'sent' | 'mock' | 'failed' | 'blocked' | 'not_sent';
339
+ interface AdminSmsTestResult {
340
+ status: AdminSmsTestStatus;
341
+ error?: string;
342
+ reason?: string;
343
+ }
344
+ interface AdminSmsMessage {
345
+ id: string;
346
+ /** The recipient, masked. */
347
+ to: string;
348
+ templateKey: string;
349
+ status: string;
350
+ error: string | null;
351
+ createdAt: string;
352
+ deliveredAt: string | null;
353
+ }
354
+ interface AdminSmsMessagesParams {
355
+ status?: string;
356
+ /** The previous page's `nextBefore`. */
357
+ before?: string;
358
+ limit?: number;
359
+ [key: string]: unknown;
360
+ }
237
361
  type TenantFeatureAccess = 'self_serve' | 'request';
238
362
  /** One optional feature of the tenant, as the backend describes it. */
239
363
  interface TenantFeature {
@@ -526,12 +650,16 @@ declare class ApiError extends Error {
526
650
  /** The response body's `details`, untouched, for the few refusals whose
527
651
  * specifics a caller acts on (e.g. which prices are missing). Never shown as prose. */
528
652
  readonly details?: unknown;
653
+ /** The response body's `reason`, when the endpoint names why it refused (e.g.
654
+ * `stale_text` on a text-message consent). Branch on this, never on message. */
655
+ readonly reason?: string;
529
656
  constructor(message: string, opts?: {
530
657
  status?: number;
531
658
  ambiguous?: boolean;
532
659
  cause?: unknown;
533
660
  code?: string;
534
661
  details?: unknown;
662
+ reason?: string;
535
663
  });
536
664
  }
537
665
  /**
@@ -1066,7 +1194,10 @@ declare const usersApi: {
1066
1194
  getProfile(opts?: {
1067
1195
  authToken?: string;
1068
1196
  }): Promise<ApiResponse<User>>;
1069
- updateProfile(payload: UpdateProfilePayload): Promise<unknown>;
1197
+ updateProfile(payload: UpdateProfilePayload): Promise<UpdateProfileResponse>;
1198
+ getSmsState(): Promise<UserSmsState>;
1199
+ /** Only the named events change; the reply is the full state again. */
1200
+ setSmsEvents(events: Record<string, boolean>): Promise<UserSmsState>;
1070
1201
  };
1071
1202
  type MemberSurveyMode = 'initial' | 'refill';
1072
1203
  /** List entry for a member's own submitted surveys — served from the backend's
@@ -2383,6 +2514,28 @@ declare const adminApi: {
2383
2514
  emailed: boolean;
2384
2515
  alreadyRequested: boolean;
2385
2516
  }>;
2517
+ /** Is this site set up to text customers, and from what number. Needs `settings.write`. */
2518
+ getSmsSettings(): Promise<AdminSmsSettings>;
2519
+ /** Every event's text, as saved. Needs `emailTemplates.write`. */
2520
+ getSmsTemplates(): Promise<{
2521
+ templates: AdminSmsTemplate[];
2522
+ }>;
2523
+ /**
2524
+ * Change some events' texts. Send ONLY what changed: a missing event or field
2525
+ * is kept, `null` resets to the default. Rejects (400) with the server's
2526
+ * reason when a body doesn't start with `{{siteName}}`, runs past 300
2527
+ * characters, or uses a token the event doesn't have. Returns the full list.
2528
+ */
2529
+ saveSmsTemplates(templates: AdminSmsTemplateChanges): Promise<{
2530
+ templates: AdminSmsTemplate[];
2531
+ }>;
2532
+ /** Text the SAVED version of an event to the signed-in admin's own phone. */
2533
+ sendSmsTemplateTest(key: string): Promise<AdminSmsTestResult>;
2534
+ /** The send log, newest first. Needs `patient.support`. Page with `nextBefore`. */
2535
+ listSmsMessages(params?: AdminSmsMessagesParams): Promise<{
2536
+ messages: AdminSmsMessage[];
2537
+ nextBefore: string | null;
2538
+ }>;
2386
2539
  getEmailNotifications(): Promise<EmailNotificationSettings>;
2387
2540
  saveEmailNotifications(settings: EmailNotificationSettings): Promise<{
2388
2541
  success: boolean;
@@ -3024,4 +3177,4 @@ declare const affiliatePortalApi: {
3024
3177
  track(refCode: string, landingPage?: string): Promise<AffiliateTrackResponse>;
3025
3178
  };
3026
3179
 
3027
- export { type AdminRecurringPricePoint as $, ADMIN_ROLES as A, type AdminCustomerSupport as B, type AdminCustomerSupportThread as C, type AdminDashboardStats as D, type AdminFillAnchor as E, type AdminFillSchedule as F, type AdminInviteResult as G, type AdminLifecycle as H, type AdminLifecycleBucket as I, type AdminListParams as J, type AdminMe as K, type AdminOffer as L, type AdminOfferBase as M, type AdminOfferGrant as N, type AdminOfferGrantBase as O, type AdminOfferInput as P, type AdminOrderSummary as Q, type AdminOrphanReason as R, type AdminOrphanedDosePrice as S, type AdminPayment as T, type AdminPaymentDetail as U, type AdminProduct as V, type AdminProductOverlayField as W, type AdminProductPharmacy as X, type AdminProductStrength as Y, type AdminPromoCode as Z, type AdminPromoCodeInput as _, type AddPharmacyBody as a, type CatalogDoseSuggestion as a$, type AdminRecurringRevenue as a0, type AdminRefundResult as a1, type AdminRetimeFillBody as a2, type AdminRetimeFillResult as a3, type AdminRetimeSnapshot as a4, type AdminRole as a5, type AdminSale as a6, type AdminSaleInput as a7, type AdminScheduledRefund as a8, type AdminScheduledRefundProblem as a9, type AffiliateTrackResponse as aA, ApiError as aB, type ApiResponse as aC, type AttributionMethod as aD, type AuthTokens as aE, type BillingReminderSettings as aF, type CatalogAvailabilityItem as aG, type CatalogAvailabilityReason as aH, type CatalogAvailabilityResult as aI, type CatalogClassification as aJ, type CatalogConversionChoice as aK, type CatalogConversionCommitResult as aL, type CatalogConversionDose as aM, type CatalogConversionDoseMatch as aN, type CatalogConversionFinding as aO, type CatalogConversionPointers as aP, type CatalogConversionPrepareResult as aQ, type CatalogConversionPreview as aR, type CatalogConversionRun as aS, type CatalogConversionSource as aT, type CatalogConversionStage as aU, type CatalogConversionTarget as aV, type CatalogConversionUndoOptions as aW, type CatalogConversionUndoResult as aX, type CatalogDose as aY, type CatalogDoseInput as aZ, type CatalogDoseModel as a_, type AdminSubscription as aa, type AdminSubscriptionDetail as ab, type AdminSubscriptionPatch as ac, type AdminSubscriptionWriteResult as ad, type AdminSupportCustomer as ae, type AdminSupportStats as af, type AdminSupportThread as ag, type AdminTeamInvite as ah, type AdminTeamMember as ai, type AdminWebhookEvent as aj, type Affiliate as ak, type AffiliateAuthTokens as al, type AffiliateClickRecord as am, type AffiliateConversion as an, type AffiliateDashboardLinks as ao, type AffiliateDashboardProfile as ap, type AffiliateDashboardStats as aq, type AffiliateDownlineMember as ar, type AffiliateEarningsBreakdown as as, type AffiliatePaymentMethod as at, type AffiliateProgram as au, type AffiliateRegisterInput as av, type AffiliateRegisterResponse as aw, type AffiliateSession as ax, type AffiliateStatsResponse as ay, type AffiliateStatus as az, type AddPharmacyDoseMatch as b, type SupportChannel as b$, type CatalogDoseSuggestions as b0, type CatalogEquivalentSuggestions as b1, type CatalogFulfillment as b2, type CatalogFulfillmentInput as b3, type CatalogItem as b4, type CatalogItemInput as b5, type CatalogMappableDrug as b6, type CatalogMatrixCell as b7, type CatalogProduct as b8, type CatalogReadiness as b9, type MemberSurveyTranscriptSection as bA, type MembersMeResponse as bB, type OfferGrantState as bC, type Order as bD, type OrderItemInput as bE, type PaginationParams as bF, type PaymentCallbackPayload as bG, type PaymentInitiatePayload as bH, type PaymentType as bI, type PendingRenewalSurvey as bJ, type Placeholder as bK, type PlaceholderKind as bL, type ProductSaleSummary as bM, type PromoValidationResponse as bN, type PublicCategory as bO, type RegisterAndSubscribePayload as bP, type RegisterPayload as bQ, type RenewalStatus as bR, SUPPORT_ATTACHMENT_MAX_BYTES as bS, SUPPORT_ATTACHMENT_MIME_TYPES as bT, type SelectDrugPayload as bU, type SendMessagePayload as bV, type SendToPharmacyPayload as bW, type SubscriptionPreview as bX, type SubscriptionPreviewLine as bY, type SubscriptionPreviewPayload as bZ, type SupportAttachment as b_, type CategoryMetadata as ba, type CheckoutAddress as bb, type CheckoutPayload as bc, type CheckoutResult as bd, type CommissionConfig as be, type CommissionStatus as bf, type CompleteSurveyPayload as bg, type CreateAffiliatePayload as bh, type CreateAffiliateProgramPayload as bi, type CreateOrderPayload as bj, type CreateRequestPayload as bk, type CreateSubscriptionPayload as bl, type CustomTemplate as bm, type CustomTemplateInput as bn, type CustomerDiscountConfig as bo, type DeliveryInfo as bp, type DiscountType as bq, type EmailNotificationSettings as br, type EmailTemplatesMap as bs, type LoginPayload as bt, type MemberOffer as bu, type MemberPrescriptionRequest as bv, type MemberSurveyMode as bw, type MemberSurveyResponseSummary as bx, type MemberSurveyTranscript as by, type MemberSurveyTranscriptItem as bz, type AddPharmacyDoseOption as c, type SupportChannelSettings as c0, type SupportMessage as c1, type SupportRealtimeToken as c2, type SupportThread as c3, type SupportThreadCategory as c4, type SupportThreadStatus as c5, type SurveySubmitPayload as c6, type TemplatePlaceholdersMap as c7, type TemplateText as c8, type TenantFeature as c9, newIdempotencyKey as cA, offersApi as cB, onTokensCleared as cC, ordersApi as cD, paymentsApi as cE, productsApi as cF, promoCodesApi as cG, setAffiliateTokens as cH, setTokens as cI, subscriptionsApi as cJ, supportApi as cK, usersApi as cL, type TenantFeatureAccess as ca, type TokenTrackName as cb, type UpdateAffiliatePayload as cc, type UpdateAffiliateProgramPayload as cd, type UpdatePaymentMethodPayload as ce, type UpdateProfilePayload as cf, type User as cg, addressesApi as ch, adminAffiliatesApi as ci, adminApi as cj, adminCatalogApi as ck, adminCatalogConversionApi as cl, adminProductPharmaciesApi as cm, affiliateAuthStorageKey as cn, affiliatePortalApi as co, apexApi as cp, apiFetch as cq, authApi as cr, authStorageKey as cs, catalogApi as ct, clearAffiliateTokens as cu, clearTokens as cv, getAffiliateTokens as cw, getTokens as cx, membersApi as cy, messagesApi as cz, type AddPharmacyFinding as d, type AddPharmacyMatchQuestion as e, type AddPharmacyMatchSource as f, type AddPharmacyPlan as g, type AddPharmacyPrice as h, type AddPharmacyResult as i, type AddPharmacyStrengthAfter as j, type AddPharmacyStrengthBefore as k, type AddressVerifyResult as l, type AdminApexDrug as m, type AdminApexItemStatus as n, type AdminBillingAttempt as o, type AdminCategory as p, type AdminCategoryInput as q, type AdminCategoryUpdate as r, type AdminCustomer as s, type AdminCustomerFacts as t, type AdminCustomerFunnel as u, type AdminCustomerListParams as v, type AdminCustomerOverview as w, type AdminCustomerProfile as x, type AdminCustomerRequest as y, type AdminCustomerRow as z };
3180
+ export { type AdminRecurringPricePoint as $, ADMIN_ROLES as A, type AdminCustomerSupport as B, type AdminCustomerSupportThread as C, type AdminDashboardStats as D, type AdminFillAnchor as E, type AdminFillSchedule as F, type AdminInviteResult as G, type AdminLifecycle as H, type AdminLifecycleBucket as I, type AdminListParams as J, type AdminMe as K, type AdminOffer as L, type AdminOfferBase as M, type AdminOfferGrant as N, type AdminOfferGrantBase as O, type AdminOfferInput as P, type AdminOrderSummary as Q, type AdminOrphanReason as R, type AdminOrphanedDosePrice as S, type AdminPayment as T, type AdminPaymentDetail as U, type AdminProduct as V, type AdminProductOverlayField as W, type AdminProductPharmacy as X, type AdminProductStrength as Y, type AdminPromoCode as Z, type AdminPromoCodeInput as _, type AddPharmacyBody as a, type CatalogConversionPreview as a$, type AdminRecurringRevenue as a0, type AdminRefundResult as a1, type AdminRetimeFillBody as a2, type AdminRetimeFillResult as a3, type AdminRetimeSnapshot as a4, type AdminRole as a5, type AdminSale as a6, type AdminSaleInput as a7, type AdminScheduledRefund as a8, type AdminScheduledRefundProblem as a9, type AffiliateDashboardStats as aA, type AffiliateDownlineMember as aB, type AffiliateEarningsBreakdown as aC, type AffiliatePaymentMethod as aD, type AffiliateProgram as aE, type AffiliateRegisterInput as aF, type AffiliateRegisterResponse as aG, type AffiliateSession as aH, type AffiliateStatsResponse as aI, type AffiliateStatus as aJ, type AffiliateTrackResponse as aK, ApiError as aL, type ApiResponse as aM, type AttributionMethod as aN, type AuthTokens as aO, type BillingReminderSettings as aP, type CatalogAvailabilityItem as aQ, type CatalogAvailabilityReason as aR, type CatalogAvailabilityResult as aS, type CatalogClassification as aT, type CatalogConversionChoice as aU, type CatalogConversionCommitResult as aV, type CatalogConversionDose as aW, type CatalogConversionDoseMatch as aX, type CatalogConversionFinding as aY, type CatalogConversionPointers as aZ, type CatalogConversionPrepareResult as a_, type AdminSmsMessage as aa, type AdminSmsMessagesParams as ab, type AdminSmsNotReadyReason as ac, type AdminSmsSegmentInfo as ad, type AdminSmsSettings as ae, type AdminSmsTemplate as af, type AdminSmsTemplateChange as ag, type AdminSmsTemplateChanges as ah, type AdminSmsTestResult as ai, type AdminSmsTestStatus as aj, type AdminSubscription as ak, type AdminSubscriptionDetail as al, type AdminSubscriptionPatch as am, type AdminSubscriptionWriteResult as an, type AdminSupportCustomer as ao, type AdminSupportStats as ap, type AdminSupportThread as aq, type AdminTeamInvite as ar, type AdminTeamMember as as, type AdminWebhookEvent as at, type Affiliate as au, type AffiliateAuthTokens as av, type AffiliateClickRecord as aw, type AffiliateConversion as ax, type AffiliateDashboardLinks as ay, type AffiliateDashboardProfile as az, type AddPharmacyDoseMatch as b, type RenewalStatus as b$, type CatalogConversionRun as b0, type CatalogConversionSource as b1, type CatalogConversionStage as b2, type CatalogConversionTarget as b3, type CatalogConversionUndoOptions as b4, type CatalogConversionUndoResult as b5, type CatalogDose as b6, type CatalogDoseInput as b7, type CatalogDoseModel as b8, type CatalogDoseSuggestion as b9, type DiscountType as bA, type EmailNotificationSettings as bB, type EmailTemplatesMap as bC, type LoginPayload as bD, type MemberOffer as bE, type MemberPrescriptionRequest as bF, type MemberSurveyMode as bG, type MemberSurveyResponseSummary as bH, type MemberSurveyTranscript as bI, type MemberSurveyTranscriptItem as bJ, type MemberSurveyTranscriptSection as bK, type MembersMeResponse as bL, type OfferGrantState as bM, type Order as bN, type OrderItemInput as bO, type PaginationParams as bP, type PaymentCallbackPayload as bQ, type PaymentInitiatePayload as bR, type PaymentType as bS, type PendingRenewalSurvey as bT, type Placeholder as bU, type PlaceholderKind as bV, type ProductSaleSummary as bW, type PromoValidationResponse as bX, type PublicCategory as bY, type RegisterAndSubscribePayload as bZ, type RegisterPayload as b_, type CatalogDoseSuggestions as ba, type CatalogEquivalentSuggestions as bb, type CatalogFulfillment as bc, type CatalogFulfillmentInput as bd, type CatalogItem as be, type CatalogItemInput as bf, type CatalogMappableDrug as bg, type CatalogMatrixCell as bh, type CatalogProduct as bi, type CatalogReadiness as bj, type CategoryMetadata as bk, type CheckoutAddress as bl, type CheckoutPayload as bm, type CheckoutResult as bn, type CommissionConfig as bo, type CommissionStatus as bp, type CompleteSurveyPayload as bq, type CreateAffiliatePayload as br, type CreateAffiliateProgramPayload as bs, type CreateOrderPayload as bt, type CreateRequestPayload as bu, type CreateSubscriptionPayload as bv, type CustomTemplate as bw, type CustomTemplateInput as bx, type CustomerDiscountConfig as by, type DeliveryInfo as bz, type AddPharmacyDoseOption as c, usersApi as c$, SUPPORT_ATTACHMENT_MAX_BYTES as c0, SUPPORT_ATTACHMENT_MIME_TYPES as c1, type SelectDrugPayload as c2, type SendMessagePayload as c3, type SendToPharmacyPayload as c4, type SmsConsentResult as c5, type SmsConsentStatus as c6, type SmsRefusalReason as c7, type SubscriptionPreview as c8, type SubscriptionPreviewLine as c9, adminCatalogApi as cA, adminCatalogConversionApi as cB, adminProductPharmaciesApi as cC, affiliateAuthStorageKey as cD, affiliatePortalApi as cE, apexApi as cF, apiFetch as cG, authApi as cH, authStorageKey as cI, catalogApi as cJ, clearAffiliateTokens as cK, clearTokens as cL, getAffiliateTokens as cM, getTokens as cN, membersApi as cO, messagesApi as cP, newIdempotencyKey as cQ, offersApi as cR, onTokensCleared as cS, ordersApi as cT, paymentsApi as cU, productsApi as cV, promoCodesApi as cW, setAffiliateTokens as cX, setTokens as cY, subscriptionsApi as cZ, supportApi as c_, type SubscriptionPreviewPayload as ca, type SupportAttachment as cb, type SupportChannel as cc, type SupportChannelSettings as cd, type SupportMessage as ce, type SupportRealtimeToken as cf, type SupportThread as cg, type SupportThreadCategory as ch, type SupportThreadStatus as ci, type SurveySubmitPayload as cj, type TemplatePlaceholdersMap as ck, type TemplateText as cl, type TenantFeature as cm, type TenantFeatureAccess as cn, type TokenTrackName as co, type UpdateAffiliatePayload as cp, type UpdateAffiliateProgramPayload as cq, type UpdatePaymentMethodPayload as cr, type UpdateProfilePayload as cs, type UpdateProfileResponse as ct, type User as cu, type UserSmsEvent as cv, type UserSmsState as cw, addressesApi as cx, adminAffiliatesApi as cy, adminApi as cz, type AddPharmacyFinding as d, type AddPharmacyMatchQuestion as e, type AddPharmacyMatchSource as f, type AddPharmacyPlan as g, type AddPharmacyPrice as h, type AddPharmacyResult as i, type AddPharmacyStrengthAfter as j, type AddPharmacyStrengthBefore as k, type AddressVerifyResult as l, type AdminApexDrug as m, type AdminApexItemStatus as n, type AdminBillingAttempt as o, type AdminCategory as p, type AdminCategoryInput as q, type AdminCategoryUpdate as r, type AdminCustomer as s, type AdminCustomerFacts as t, type AdminCustomerFunnel as u, type AdminCustomerListParams as v, type AdminCustomerOverview as w, type AdminCustomerProfile as x, type AdminCustomerRequest as y, type AdminCustomerRow as z };
@@ -1,5 +1,5 @@
1
1
  import { Accessor, Resource } from 'solid-js';
2
- import { l as AddressVerifyResult, bb as CheckoutAddress, aI as CatalogAvailabilityResult, cg as User, bp as DeliveryInfo, bR as RenewalStatus, bJ as PendingRenewalSurvey, I as AdminLifecycleBucket, w as AdminCustomerOverview, ab as AdminSubscriptionDetail, y as AdminCustomerRequest, c4 as SupportThreadCategory, b$ as SupportChannel, b8 as CatalogProduct, an as AffiliateConversion, ar as AffiliateDownlineMember, ao as AffiliateDashboardLinks, aq as AffiliateDashboardStats, bN as PromoValidationResponse, bu as MemberOffer, aJ as CatalogClassification, a_ as CatalogDoseModel, S as AdminOrphanedDosePrice, V as AdminProduct, b4 as CatalogItem, a$ as CatalogDoseSuggestion, b6 as CatalogMappableDrug, b1 as CatalogEquivalentSuggestions, b9 as CatalogReadiness, aX as CatalogConversionUndoResult, aR as CatalogConversionPreview, aN as CatalogConversionDoseMatch, aT as CatalogConversionSource, aM as CatalogConversionDose, aW as CatalogConversionUndoOptions, aL as CatalogConversionCommitResult, aO as CatalogConversionFinding, aK as CatalogConversionChoice, g as AddPharmacyPlan, i as AddPharmacyResult, f as AddPharmacyMatchSource, a as AddPharmacyBody, d as AddPharmacyFinding } from '../client-CMbSYUam.js';
2
+ import { l as AddressVerifyResult, bl as CheckoutAddress, aS as CatalogAvailabilityResult, cu as User, bz as DeliveryInfo, b$ as RenewalStatus, bT as PendingRenewalSurvey, I as AdminLifecycleBucket, w as AdminCustomerOverview, al as AdminSubscriptionDetail, y as AdminCustomerRequest, ch as SupportThreadCategory, cc as SupportChannel, bi as CatalogProduct, ax as AffiliateConversion, aB as AffiliateDownlineMember, ay as AffiliateDashboardLinks, aA as AffiliateDashboardStats, bX as PromoValidationResponse, bE as MemberOffer, aT as CatalogClassification, b8 as CatalogDoseModel, S as AdminOrphanedDosePrice, V as AdminProduct, be as CatalogItem, b9 as CatalogDoseSuggestion, bg as CatalogMappableDrug, bb as CatalogEquivalentSuggestions, bj as CatalogReadiness, b5 as CatalogConversionUndoResult, a$ as CatalogConversionPreview, aX as CatalogConversionDoseMatch, b1 as CatalogConversionSource, aW as CatalogConversionDose, b4 as CatalogConversionUndoOptions, aV as CatalogConversionCommitResult, aY as CatalogConversionFinding, aU as CatalogConversionChoice, g as AddPharmacyPlan, i as AddPharmacyResult, f as AddPharmacyMatchSource, a as AddPharmacyBody, d as AddPharmacyFinding, cw as UserSmsState, cv as UserSmsEvent } from '../client-BQ8AEx5S.js';
3
3
  import { C as CartItem } from '../cart-o6DpAu5y.js';
4
4
  export { U as UseSurveyV2FlowOptions, u as useSurveyV2Flow } from '../surveyV2-BgQHK0GE.js';
5
5
  import { EmbedEvent } from '@apextelemed/survey-solid';
@@ -451,6 +451,44 @@ interface CartCheckoutFlow {
451
451
  */
452
452
  declare function useCartCheckoutFlow(): CartCheckoutFlow;
453
453
 
454
+ interface SmsConsentOffer {
455
+ /** The consent wording, verbatim. */
456
+ text: string;
457
+ /** Version of `text`; goes back with the grant. */
458
+ textVersion: string;
459
+ /** Sender name the wording refers to, when the tenant set one. */
460
+ brandName?: string;
461
+ termsUrl?: string;
462
+ privacyUrl?: string;
463
+ }
464
+ /** What flows put on the register / register-and-subscribe / PATCH /users/me wire. */
465
+ interface SmsConsentGrant {
466
+ granted: true;
467
+ textVersion: string;
468
+ }
469
+ interface SmsConsent {
470
+ /**
471
+ * The wording to show beside the checkbox. null while the tenant's config is
472
+ * loading, when texts are off, or when it couldn't be loaded — render nothing.
473
+ */
474
+ offer: Accessor<SmsConsentOffer | null>;
475
+ /** True when the person has ticked the box. Always false while `enabled()` is false. */
476
+ checked: Accessor<boolean>;
477
+ setChecked: (v: boolean) => void;
478
+ /** False while the phone is empty or invalid: show the box disabled, with `hint()`. */
479
+ enabled: Accessor<boolean>;
480
+ /** Why the box is disabled; null when it isn't. */
481
+ hint: Accessor<string | null>;
482
+ /** The grant to send, or undefined to send nothing (unchecked / disabled / no offer). */
483
+ grant: () => SmsConsentGrant | undefined;
484
+ /**
485
+ * What to persist in the flow's draft: the version of the wording the person
486
+ * ticked, or undefined. A version rather than a boolean so a restored draft
487
+ * only re-ticks the box when the wording is still the one they agreed to.
488
+ */
489
+ draftVersion: Accessor<string | undefined>;
490
+ }
491
+
454
492
  type SignupOutcome = {
455
493
  kind: 'in_progress';
456
494
  }
@@ -528,6 +566,12 @@ interface SignupFlow {
528
566
  setDateOfBirth: (v: string) => void;
529
567
  phone: Accessor<string>;
530
568
  setPhone: (v: string) => void;
569
+ /**
570
+ * Optional opt-in to text messages. `smsConsent.offer()` is null unless the
571
+ * tenant texts customers; render the checkbox only when it isn't. Never
572
+ * required — leaving it unticked sends nothing and signup proceeds.
573
+ */
574
+ smsConsent: SmsConsent;
531
575
  street: Accessor<string>;
532
576
  setStreet: (v: string) => void;
533
577
  city: Accessor<string>;
@@ -594,6 +638,12 @@ interface RegisterFlow {
594
638
  setDateOfBirth: (v: string) => void;
595
639
  phone: Accessor<string>;
596
640
  setPhone: (v: string) => void;
641
+ /**
642
+ * Optional opt-in to text messages. `smsConsent.offer()` is null unless the
643
+ * tenant texts customers; render the checkbox only when it isn't. Never
644
+ * required — leaving it unticked sends nothing and registration proceeds.
645
+ */
646
+ smsConsent: SmsConsent;
597
647
  street: Accessor<string>;
598
648
  setStreet: (v: string) => void;
599
649
  city: Accessor<string>;
@@ -1682,6 +1732,14 @@ interface SubscriptionIntakeFlow {
1682
1732
  setDateOfBirth: (v: string) => void;
1683
1733
  phone: Accessor<string>;
1684
1734
  setPhone: (v: string) => void;
1735
+ /**
1736
+ * Optional opt-in to text messages. `smsConsent.offer()` is null unless the
1737
+ * tenant texts customers; render the checkbox only when it isn't. Never
1738
+ * required — leaving it unticked sends nothing and the purchase proceeds. A
1739
+ * guest's grant rides the register-and-subscribe call; a signed-in member's
1740
+ * rides the profile PATCH the intake already makes.
1741
+ */
1742
+ smsConsent: SmsConsent;
1685
1743
  address: AddressPair;
1686
1744
  /** Per-item deliverability for `medication.productId` in the address's
1687
1745
  * shipping state — a catalog item routed to a pharmacy that doesn't serve
@@ -2742,4 +2800,57 @@ declare function restoreCartFromLink(): Promise<ResumedCart | null>;
2742
2800
  */
2743
2801
  declare function startCartCapture(opts?: CartCaptureOptions): () => void;
2744
2802
 
2745
- export { type AccountSource, type AddPharmacy, type AddPharmacyFailure, type AddPharmacyNotice, type AddPharmacyState, type AddStrengthInput, type AddStrengthOutcome, type AddedPharmacy, type AddressErrors, type AddressPair, type AddressValue, type AffiliateConversionsFlow, type AffiliateDownlineFlow, type AffiliateLinksFlow, type AffiliateStatsFlow, type AnswerValue, type ApexBlockCode, type AttentionAction, type AttentionActionKind, type AttentionItem, type CartCaptureOptions, type CartCheckoutFlow, type CartCheckoutOutcome, type CartCheckoutPricing, type CartDropReason, type CartReconcileState, type CartReconciliation, type CartSource, type CatalogAvailabilityDecision, type CatalogAvailabilityState, type CatalogConversion, type CatalogFailure, type CatalogFlow, CatalogProduct, type CategoryColorOpts, type CheckoutFlow, type CheckoutOutcome, type Conversation, type ConversionConverted, type ConversionFailure, type ConversionNotice, type ConversionState, type ConversionSummary, type CreateCatalogProductOutcome, DEFAULT_COLOR_PALETTE, type DashboardActivityItem, type DashboardData, type DashboardRxListItem, type DashboardRxStatus, type DashboardSubscription, type DroppedCartLine, type DrugResult, type FindingCopy, type FlatStep, type FulfillmentRow, type FulfillmentStage, type FunnelTelemetry, type JourneyState, type JourneyStep, type JourneyStepKey, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, type MatchChoice, type MatchProblem, type MatchRecord, type MatchRow, type MatrixView, type MedicationPricing, type MedicationSelectFlow, type MemberPortalData, type MemberPortalRx, type MemberPortalSubscription, type MessagesChannel, type MessagesIntent, type MessagesThread, type NewCatalogProductInput, OFFER_BEATS_PROMO_NOTICE, ORPHAN_REASON, type OfferDiscount, type PricingBreakdown, type ProductCatalogEditor, type ProductDetailFlow, type PromoPricing, READINESS_LABEL, type ReadinessStatus, type ReconcileOptions, type RefillEvent, type RefillView, type RegisterFlow, type RegisterOutcome, type RequestStatus, type ResolvedStrength, type RxRequestStatus, SOURCE_FIELD_NOTE, type Severity, type ShipmentInfo, type SignupFlow, type SignupOutcome, type StageState, type StoredDosePrice, type StrengthComparison, type StrengthRow, type StructureState, type SubscribeFlow, type SubscribeOutcome, type SubscriptionIntakeFlow, type SubscriptionIntakeOutcome, type SurveyFlow, type SurveyOption, type SurveyOutcome, type SurveyQuestion, type SurveyResult, TERMINAL_SUBSCRIPTION_STATUSES, type ThreadMessage, type TimelineEvent, type TimelineKind, type Tone, type TrackerRequest, type TrackerRequestStatus, type TrackerSubscription, type TrackerSubscriptionStatus, type TrackerView, type TrackingUrlCarrier, US_STATES, US_STATE_OPTIONS, type UpdatePaymentMethodFlow, type UseAddPharmacyOptions, type UseAddressPairOptions, type UseCatalogConversionOptions, type UseCheckoutFlowOptions, type UseMedicationSelectOptions, type UseMessagesThreadOptions, type UseProductCatalogEditorOptions, type UseSignupFlowOptions, type UseSubscribeFlowOptions, type UseSubscriptionIntakeFlowOptions, type UseSurveyFlowOptions, type ValidateAddressOptions, type ValidatedResumedPromo, type VisibilityCondition, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildSaveBody, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyAddPharmacyError, classifyCatalogError, classifyConversionError, compareStrengths, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, emailGateAnswered, explainFinding, findStoredDosePrice, flaggedSubscribers, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, groupDrugsByPharmacy, hasBlockers, hasConversion, hasErrors, initialMatches, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, lifecycleReason, liveDoses, lowestPrice, lowestSalePrice, markEmailGateAnswered, matchProblem, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, parseMoney, pharmacyIsOnProduct, pharmacyLabel, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, restoreCartFromLink, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, startCartCapture, stateAvailabilityNote, strengthsChanged, toChoices, toTrackerRequest, upsertDosePrice, useAddPharmacy, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCatalogConversion, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSubscriptionIntakeFlow, useSurveyFlow, useUpdatePaymentMethodFlow, validateAddress, validateResumedPromo, visibleWarnings };
2803
+ declare const PHONE_ERROR = "Enter a valid 10-digit US phone number.";
2804
+ declare function isValidUsPhone(raw: string): boolean;
2805
+ /**
2806
+ * "(512) 555-1234" for a US number (E.164 or as typed); anything else comes
2807
+ * back untouched. Display only — never send the result anywhere.
2808
+ */
2809
+ declare function formatUsPhone(raw: string): string;
2810
+
2811
+ type SmsNoticeKind = 'needs_consent' | 'stale_text' | 'no_phone' | 'unavailable';
2812
+ /** Something the member should be told that isn't an error: what just happened to their consent. */
2813
+ interface SmsNotice {
2814
+ kind: SmsNoticeKind;
2815
+ message: string;
2816
+ }
2817
+ interface SmsPreferencesFlow {
2818
+ /** True until the first load settles. */
2819
+ loading: Accessor<boolean>;
2820
+ /** The member's state, or null before it loads or when it could not be loaded. */
2821
+ state: Accessor<UserSmsState | null>;
2822
+ /** Render the section only when this is true — the tenant texts customers and the state loaded. */
2823
+ available: Accessor<boolean>;
2824
+ /** The member's number (E.164), or null when none is on file. */
2825
+ phone: Accessor<string | null>;
2826
+ consented: Accessor<boolean>;
2827
+ /** The member replied STOP. A carrier-level block: the site can't lift it, only explain it. */
2828
+ optedOutByStop: Accessor<boolean>;
2829
+ /** The number texts come from — what a STOP-ed member texts START to. */
2830
+ fromNumber: Accessor<string | undefined>;
2831
+ /** The events the tenant switched on, with this member's setting for each. */
2832
+ events: Accessor<UserSmsEvent[]>;
2833
+ /** Per-event switches apply only while the member is consented and hasn't STOP-ed. */
2834
+ showEvents: Accessor<boolean>;
2835
+ /**
2836
+ * The consent wording to show beside the "turn on" switch, or null when the
2837
+ * tenant's config is unavailable (then turning on is not offered at all).
2838
+ * Replaced with the new words after a stale-text refusal.
2839
+ */
2840
+ consentOffer: Accessor<SmsConsentOffer | null>;
2841
+ /** An action is in flight. */
2842
+ busy: Accessor<boolean>;
2843
+ error: Accessor<string | null>;
2844
+ notice: Accessor<SmsNotice | null>;
2845
+ reload: () => Promise<void>;
2846
+ /** Change the number. Ends consent for the old one, so the member is told to turn texts on again. */
2847
+ setPhone: (raw: string) => Promise<boolean>;
2848
+ /** Turn texts on, agreeing to `consentOffer()` as shown. */
2849
+ optIn: () => Promise<boolean>;
2850
+ optOut: () => Promise<boolean>;
2851
+ /** Switch ONE event; every other event is left exactly as it is. */
2852
+ setEvent: (key: string, enabled: boolean) => Promise<boolean>;
2853
+ }
2854
+ declare function useSmsPreferences(): SmsPreferencesFlow;
2855
+
2856
+ export { type AccountSource, type AddPharmacy, type AddPharmacyFailure, type AddPharmacyNotice, type AddPharmacyState, type AddStrengthInput, type AddStrengthOutcome, type AddedPharmacy, type AddressErrors, type AddressPair, type AddressValue, type AffiliateConversionsFlow, type AffiliateDownlineFlow, type AffiliateLinksFlow, type AffiliateStatsFlow, type AnswerValue, type ApexBlockCode, type AttentionAction, type AttentionActionKind, type AttentionItem, type CartCaptureOptions, type CartCheckoutFlow, type CartCheckoutOutcome, type CartCheckoutPricing, type CartDropReason, type CartReconcileState, type CartReconciliation, type CartSource, type CatalogAvailabilityDecision, type CatalogAvailabilityState, type CatalogConversion, type CatalogFailure, type CatalogFlow, CatalogProduct, type CategoryColorOpts, type CheckoutFlow, type CheckoutOutcome, type Conversation, type ConversionConverted, type ConversionFailure, type ConversionNotice, type ConversionState, type ConversionSummary, type CreateCatalogProductOutcome, DEFAULT_COLOR_PALETTE, type DashboardActivityItem, type DashboardData, type DashboardRxListItem, type DashboardRxStatus, type DashboardSubscription, type DroppedCartLine, type DrugResult, type FindingCopy, type FlatStep, type FulfillmentRow, type FulfillmentStage, type FunnelTelemetry, type JourneyState, type JourneyStep, type JourneyStepKey, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, type MatchChoice, type MatchProblem, type MatchRecord, type MatchRow, type MatrixView, type MedicationPricing, type MedicationSelectFlow, type MemberPortalData, type MemberPortalRx, type MemberPortalSubscription, type MessagesChannel, type MessagesIntent, type MessagesThread, type NewCatalogProductInput, OFFER_BEATS_PROMO_NOTICE, ORPHAN_REASON, type OfferDiscount, PHONE_ERROR, type PricingBreakdown, type ProductCatalogEditor, type ProductDetailFlow, type PromoPricing, READINESS_LABEL, type ReadinessStatus, type ReconcileOptions, type RefillEvent, type RefillView, type RegisterFlow, type RegisterOutcome, type RequestStatus, type ResolvedStrength, type RxRequestStatus, SOURCE_FIELD_NOTE, type Severity, type ShipmentInfo, type SignupFlow, type SignupOutcome, type SmsConsent, type SmsConsentGrant, type SmsConsentOffer, type SmsNotice, type SmsNoticeKind, type SmsPreferencesFlow, type StageState, type StoredDosePrice, type StrengthComparison, type StrengthRow, type StructureState, type SubscribeFlow, type SubscribeOutcome, type SubscriptionIntakeFlow, type SubscriptionIntakeOutcome, type SurveyFlow, type SurveyOption, type SurveyOutcome, type SurveyQuestion, type SurveyResult, TERMINAL_SUBSCRIPTION_STATUSES, type ThreadMessage, type TimelineEvent, type TimelineKind, type Tone, type TrackerRequest, type TrackerRequestStatus, type TrackerSubscription, type TrackerSubscriptionStatus, type TrackerView, type TrackingUrlCarrier, US_STATES, US_STATE_OPTIONS, type UpdatePaymentMethodFlow, type UseAddPharmacyOptions, type UseAddressPairOptions, type UseCatalogConversionOptions, type UseCheckoutFlowOptions, type UseMedicationSelectOptions, type UseMessagesThreadOptions, type UseProductCatalogEditorOptions, type UseSignupFlowOptions, type UseSubscribeFlowOptions, type UseSubscriptionIntakeFlowOptions, type UseSurveyFlowOptions, type ValidateAddressOptions, type ValidatedResumedPromo, type VisibilityCondition, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildSaveBody, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyAddPharmacyError, classifyCatalogError, classifyConversionError, compareStrengths, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, emailGateAnswered, explainFinding, findStoredDosePrice, flaggedSubscribers, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, formatUsPhone, groupDrugsByPharmacy, hasBlockers, hasConversion, hasErrors, initialMatches, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, isValidUsPhone, lifecycleReason, liveDoses, lowestPrice, lowestSalePrice, markEmailGateAnswered, matchProblem, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, parseMoney, pharmacyIsOnProduct, pharmacyLabel, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, restoreCartFromLink, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, startCartCapture, stateAvailabilityNote, strengthsChanged, toChoices, toTrackerRequest, upsertDosePrice, useAddPharmacy, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCatalogConversion, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSmsPreferences, useSubscribeFlow, useSubscriptionIntakeFlow, useSurveyFlow, useUpdatePaymentMethodFlow, validateAddress, validateResumedPromo, visibleWarnings };
@@ -1,9 +1,9 @@
1
- export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/CDRUVUTJ.js';
2
- import '../chunk/WTHAR2P2.js';
3
- export { DEFAULT_COLOR_PALETTE, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, ORPHAN_REASON, READINESS_LABEL, SOURCE_FIELD_NOTE, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildSaveBody, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyAddPharmacyError, classifyCatalogError, classifyConversionError, compareStrengths, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, emailGateAnswered, explainFinding, findStoredDosePrice, flaggedSubscribers, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, groupDrugsByPharmacy, hasBlockers, hasConversion, hasErrors, initialMatches, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, lifecycleReason, liveDoses, lowestPrice, lowestSalePrice, markEmailGateAnswered, matchProblem, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, parseMoney, pharmacyIsOnProduct, pharmacyLabel, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, stateAvailabilityNote, strengthsChanged, toChoices, toTrackerRequest, upsertDosePrice, useAddPharmacy, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCatalogConversion, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress, visibleWarnings } from '../chunk/VGF2LLAD.js';
4
- import '../chunk/OOMMZESR.js';
5
- import '../chunk/GJSE37VN.js';
6
- import '../chunk/HEQLEGHI.js';
1
+ export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/22EFLJGO.js';
2
+ import '../chunk/UM5K75Y4.js';
3
+ export { DEFAULT_COLOR_PALETTE, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, ORPHAN_REASON, PHONE_ERROR, READINESS_LABEL, SOURCE_FIELD_NOTE, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildSaveBody, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyAddPharmacyError, classifyCatalogError, classifyConversionError, compareStrengths, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, emailGateAnswered, explainFinding, findStoredDosePrice, flaggedSubscribers, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, formatUsPhone, groupDrugsByPharmacy, hasBlockers, hasConversion, hasErrors, initialMatches, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, isValidUsPhone, lifecycleReason, liveDoses, lowestPrice, lowestSalePrice, markEmailGateAnswered, matchProblem, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, parseMoney, pharmacyIsOnProduct, pharmacyLabel, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, stateAvailabilityNote, strengthsChanged, toChoices, toTrackerRequest, upsertDosePrice, useAddPharmacy, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCatalogConversion, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSmsPreferences, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress, visibleWarnings } from '../chunk/XPYBZU45.js';
4
+ import '../chunk/CED3IYWX.js';
5
+ import '../chunk/BPF2SSKF.js';
6
+ import '../chunk/GYAT2X65.js';
7
7
  import '../chunk/2IFPDU4D.js';
8
8
  //# sourceMappingURL=index.js.map
9
9
  //# sourceMappingURL=index.js.map
@@ -4,8 +4,8 @@ import {
4
4
  startCartCapture,
5
5
  useSubscriptionIntakeFlow,
6
6
  validateResumedPromo
7
- } from "../chunk/LA6F37YV.jsx";
8
- import "../chunk/33BDC6MT.jsx";
7
+ } from "../chunk/I7L5WVA2.jsx";
8
+ import "../chunk/GULO22W6.jsx";
9
9
  import {
10
10
  DEFAULT_COLOR_PALETTE,
11
11
  LIFECYCLE_BUCKETS,
@@ -15,6 +15,7 @@ import {
15
15
  MATCH_DEPENDENT_WARNINGS,
16
16
  MATCH_HOW_LABEL,
17
17
  ORPHAN_REASON,
18
+ PHONE_ERROR,
18
19
  READINESS_LABEL,
19
20
  SOURCE_FIELD_NOTE,
20
21
  TERMINAL_SUBSCRIPTION_STATUSES,
@@ -61,6 +62,7 @@ import {
61
62
  formatMessageTime,
62
63
  formatRelativeTime,
63
64
  formatStageDate,
65
+ formatUsPhone,
64
66
  groupDrugsByPharmacy,
65
67
  hasBlockers,
66
68
  hasConversion,
@@ -71,6 +73,7 @@ import {
71
73
  isLive,
72
74
  isQuestionVisible,
73
75
  isReconcilable,
76
+ isValidUsPhone,
74
77
  lifecycleReason,
75
78
  liveDoses,
76
79
  lowestPrice,
@@ -127,16 +130,17 @@ import {
127
130
  useProductDetail,
128
131
  useRegisterFlow,
129
132
  useSignupFlow,
133
+ useSmsPreferences,
130
134
  useSubscribeFlow,
131
135
  useSurveyFlow,
132
136
  useSurveyV2Flow,
133
137
  useUpdatePaymentMethodFlow,
134
138
  validateAddress,
135
139
  visibleWarnings
136
- } from "../chunk/OZHJ5IGL.jsx";
137
- import "../chunk/EED3KNR7.jsx";
138
- import "../chunk/ZWAZNB4Y.jsx";
139
- import "../chunk/X6WJQ47H.jsx";
140
+ } from "../chunk/FL3DS5WN.jsx";
141
+ import "../chunk/2Q4GK4WD.jsx";
142
+ import "../chunk/W5QWCMTE.jsx";
143
+ import "../chunk/PWEK34Q4.jsx";
140
144
  import "../chunk/QVZ7BRNO.jsx";
141
145
  export {
142
146
  DEFAULT_COLOR_PALETTE,
@@ -148,6 +152,7 @@ export {
148
152
  MATCH_HOW_LABEL,
149
153
  OFFER_BEATS_PROMO_NOTICE,
150
154
  ORPHAN_REASON,
155
+ PHONE_ERROR,
151
156
  READINESS_LABEL,
152
157
  SOURCE_FIELD_NOTE,
153
158
  TERMINAL_SUBSCRIPTION_STATUSES,
@@ -194,6 +199,7 @@ export {
194
199
  formatMessageTime,
195
200
  formatRelativeTime,
196
201
  formatStageDate,
202
+ formatUsPhone,
197
203
  groupDrugsByPharmacy,
198
204
  hasBlockers,
199
205
  hasConversion,
@@ -204,6 +210,7 @@ export {
204
210
  isLive,
205
211
  isQuestionVisible,
206
212
  isReconcilable,
213
+ isValidUsPhone,
207
214
  lifecycleReason,
208
215
  liveDoses,
209
216
  lowestPrice,
@@ -262,6 +269,7 @@ export {
262
269
  useProductDetail,
263
270
  useRegisterFlow,
264
271
  useSignupFlow,
272
+ useSmsPreferences,
265
273
  useSubscribeFlow,
266
274
  useSubscriptionIntakeFlow,
267
275
  useSurveyFlow,