@apextelemed/partner-core 0.17.0-dev.51 → 0.17.0-dev.52

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 (41) hide show
  1. package/dist/api/index.d.ts +1 -1
  2. package/dist/api/index.js +3 -3
  3. package/dist/api/index.jsx +5 -3
  4. package/dist/chunk/{ANKLNWGB.js → 2HDMTWLH.js} +6 -6
  5. package/dist/chunk/{ANKLNWGB.js.map → 2HDMTWLH.js.map} +1 -1
  6. package/dist/chunk/{PHSZOZVK.jsx → 37UEVJEC.jsx} +12 -1
  7. package/dist/chunk/{HM5L6J62.jsx → 5HQAA4UO.jsx} +2 -2
  8. package/dist/chunk/{Z6PDUPOU.js → 6V7RVUXX.js} +3 -3
  9. package/dist/chunk/{Z6PDUPOU.js.map → 6V7RVUXX.js.map} +1 -1
  10. package/dist/chunk/{AXXQJC6M.js → A6FJGQIS.js} +3 -3
  11. package/dist/chunk/{AXXQJC6M.js.map → A6FJGQIS.js.map} +1 -1
  12. package/dist/chunk/{545PPOE5.jsx → BJXD2NQQ.jsx} +2 -2
  13. package/dist/chunk/{LFSDVMIY.js → BYDMO5RM.js} +208 -6
  14. package/dist/chunk/BYDMO5RM.js.map +1 -0
  15. package/dist/chunk/{3SPMZ7FK.jsx → FTZ52PMM.jsx} +2 -2
  16. package/dist/chunk/{TFA64PLK.js → FXRGPBYU.js} +3 -3
  17. package/dist/chunk/{TFA64PLK.js.map → FXRGPBYU.js.map} +1 -1
  18. package/dist/chunk/{P4NWFY4T.jsx → IQDVS3XA.jsx} +5 -5
  19. package/dist/chunk/{L4DFQMYM.js → O7H7DAWO.js} +959 -683
  20. package/dist/chunk/O7H7DAWO.js.map +1 -0
  21. package/dist/chunk/{ICGZXU3R.js → RDZDD5UW.js} +13 -3
  22. package/dist/chunk/RDZDD5UW.js.map +1 -0
  23. package/dist/chunk/{OZZGMI6C.jsx → T37L6JE6.jsx} +1188 -999
  24. package/dist/chunk/{VE5ACNFB.jsx → TLDELI22.jsx} +220 -5
  25. package/dist/{client-Baf1FSEp.d.ts → client-BLh8hFAu.d.ts} +35 -1
  26. package/dist/flows/index.d.ts +142 -2
  27. package/dist/flows/index.js +6 -6
  28. package/dist/flows/index.jsx +24 -8
  29. package/dist/index/index.d.ts +2 -2
  30. package/dist/index/index.js +7 -7
  31. package/dist/index/index.jsx +27 -9
  32. package/dist/pages/index.d.ts +1 -1
  33. package/dist/pages/index.js +5 -5
  34. package/dist/pages/index.jsx +5 -5
  35. package/dist/stores/index.d.ts +1 -1
  36. package/dist/stores/index.js +2 -2
  37. package/dist/stores/index.jsx +2 -2
  38. package/package.json +1 -1
  39. package/dist/chunk/ICGZXU3R.js.map +0 -1
  40. package/dist/chunk/L4DFQMYM.js.map +0 -1
  41. package/dist/chunk/LFSDVMIY.js.map +0 -1
@@ -6,13 +6,13 @@ import {
6
6
  readResumeToken,
7
7
  saveFunnelDraft,
8
8
  stripResumeToken
9
- } from "./HM5L6J62.jsx";
9
+ } from "./5HQAA4UO.jsx";
10
10
  import {
11
11
  affiliateAuth_default,
12
12
  auth_default,
13
13
  cart_default,
14
14
  medication_default
15
- } from "./545PPOE5.jsx";
15
+ } from "./BJXD2NQQ.jsx";
16
16
  import {
17
17
  ApiError,
18
18
  addressesApi,
@@ -20,6 +20,7 @@ import {
20
20
  adminCatalogApi,
21
21
  adminCatalogConversionApi,
22
22
  adminProductPharmaciesApi,
23
+ adminProductStrengthMatchesApi,
23
24
  affiliatePortalApi,
24
25
  apexApi,
25
26
  authApi,
@@ -33,7 +34,7 @@ import {
33
34
  subscriptionsApi,
34
35
  supportApi,
35
36
  usersApi
36
- } from "./PHSZOZVK.jsx";
37
+ } from "./37UEVJEC.jsx";
37
38
  import {
38
39
  getConfig
39
40
  } from "./QVZ7BRNO.jsx";
@@ -6370,6 +6371,211 @@ function useAddPharmacy(opts) {
6370
6371
  };
6371
6372
  }
6372
6373
 
6374
+ // src/flows/strengthMatches.ts
6375
+ import { createEffect as createEffect11, createMemo as createMemo4, createSignal as createSignal16, on as on5, onCleanup as onCleanup6 } from "solid-js";
6376
+ function wantsStrengthMatches(product, enabled) {
6377
+ return enabled && !!product && product.pricingMode !== "flat_fee";
6378
+ }
6379
+ function matchBody(dosage, doseId, carryPrice) {
6380
+ return { dosage, doseId, ...carryPrice === void 0 ? {} : { carryPrice } };
6381
+ }
6382
+ var matchValue = (row) => row.doseId ?? "";
6383
+ var doseIdOf = (value) => value === "" ? null : value;
6384
+ var isLeftForReview = (row) => row.doseId === null;
6385
+ function normalizeMatches(raw) {
6386
+ return {
6387
+ rows: Array.isArray(raw?.rows) ? raw.rows : [],
6388
+ doseOptions: Array.isArray(raw?.doseOptions) ? raw.doseOptions : []
6389
+ };
6390
+ }
6391
+ function decisionFromDetails(details, doseId) {
6392
+ const d = details ?? {};
6393
+ if (typeof d.dosage !== "string" || typeof d.doseLabel !== "string") return null;
6394
+ if (typeof d.price !== "number" || !Number.isFinite(d.price)) return null;
6395
+ return { dosage: d.dosage, doseId, price: d.price, doseLabel: d.doseLabel };
6396
+ }
6397
+ var STALE_CODES = ["product_changed", "not_a_row", "not_applicable", "invalid_strength_match"];
6398
+ var messageOf4 = (err) => err instanceof Error && err.message ? err.message : "Something went wrong talking to the server.";
6399
+ function classifyStrengthMatchError(err, doseId) {
6400
+ const e = err ?? {};
6401
+ const status = typeof e.status === "number" ? e.status : void 0;
6402
+ const code = typeof e.code === "string" ? e.code : void 0;
6403
+ const message = messageOf4(err);
6404
+ if (code === "price_decision_required" && doseId !== null) {
6405
+ const decision = decisionFromDetails(e.details, doseId);
6406
+ if (decision) return { kind: "decision", decision };
6407
+ return { kind: "refused", message, code };
6408
+ }
6409
+ if (code && STALE_CODES.includes(code)) return { kind: "stale", code, message };
6410
+ if (code === "could_not_read") return { kind: "refused", message, code };
6411
+ if (code === void 0 && (e.ambiguous === true || status === void 0 || status >= 500)) {
6412
+ return { kind: "ambiguous", message };
6413
+ }
6414
+ if (code === void 0 && status !== void 0 && status < 500) return { kind: "refused", message };
6415
+ if (status !== void 0 && status >= 500) return { kind: "ambiguous", message };
6416
+ return { kind: "refused", message, ...code ? { code } : {} };
6417
+ }
6418
+ function useStrengthMatches(opts) {
6419
+ const [status, setStatus] = createSignal16("idle");
6420
+ const [rows, setRows] = createSignal16([]);
6421
+ const [doseOptions, setDoseOptions] = createSignal16([]);
6422
+ const [pending, setPending] = createSignal16(null);
6423
+ const [writing, setWriting] = createSignal16(null);
6424
+ const [errors, setErrors] = createSignal16({});
6425
+ const [notice, setNotice] = createSignal16(null);
6426
+ let generation = 0;
6427
+ let loadSeq = 0;
6428
+ onCleanup6(() => {
6429
+ generation++;
6430
+ loadSeq++;
6431
+ });
6432
+ const busy = () => writing() !== null;
6433
+ const setError = (dosage, message) => setErrors((prev) => ({ ...prev, [dosage]: message }));
6434
+ const clearError = (dosage) => setErrors((prev) => {
6435
+ if (!(dosage in prev)) return prev;
6436
+ const { [dosage]: _gone, ...rest } = prev;
6437
+ return rest;
6438
+ });
6439
+ const adopt = (raw) => {
6440
+ const next = normalizeMatches(raw);
6441
+ setRows(next.rows);
6442
+ setDoseOptions(next.doseOptions);
6443
+ const p = pending();
6444
+ if (p && !next.rows.some((r) => r.dosage === p.dosage)) setPending(null);
6445
+ setErrors((prev) => Object.fromEntries(Object.entries(prev).filter(([d]) => next.rows.some((r) => r.dosage === d))));
6446
+ setStatus("ready");
6447
+ };
6448
+ const read = async () => {
6449
+ const gen = generation;
6450
+ const seq = ++loadSeq;
6451
+ const product = opts.product();
6452
+ if (!wantsStrengthMatches(product, opts.enabled())) {
6453
+ setRows([]);
6454
+ setDoseOptions([]);
6455
+ setStatus("idle");
6456
+ return true;
6457
+ }
6458
+ setStatus((prev) => prev === "idle" ? "loading" : prev);
6459
+ try {
6460
+ const res = await adminProductStrengthMatchesApi.list(product.id);
6461
+ if (gen !== generation || seq !== loadSeq) return false;
6462
+ adopt(res);
6463
+ return true;
6464
+ } catch (err) {
6465
+ if (gen !== generation || seq !== loadSeq) return false;
6466
+ if (err?.code === "not_applicable") {
6467
+ adopt({ rows: [], doseOptions: [] });
6468
+ return true;
6469
+ }
6470
+ setStatus("failed");
6471
+ return false;
6472
+ }
6473
+ };
6474
+ const reload = async () => {
6475
+ setNotice(null);
6476
+ await read();
6477
+ };
6478
+ const key = createMemo4(() => {
6479
+ const p = opts.product();
6480
+ const ids = (p.strengths ?? []).map((s) => s.apexSkuId ?? s.dosage).join(",");
6481
+ return `${p.id}|${p.apexDrugId ?? ""}|${p.pricingMode}|${opts.enabled()}|${ids}`;
6482
+ });
6483
+ createEffect11(
6484
+ on5(key, () => {
6485
+ generation++;
6486
+ loadSeq++;
6487
+ setRows([]);
6488
+ setDoseOptions([]);
6489
+ setPending(null);
6490
+ setWriting(null);
6491
+ setErrors({});
6492
+ setNotice(null);
6493
+ setStatus("idle");
6494
+ void read();
6495
+ })
6496
+ );
6497
+ const notifyChanged = async () => {
6498
+ try {
6499
+ await opts.onChanged?.();
6500
+ } catch {
6501
+ }
6502
+ };
6503
+ const write = async (dosage, doseId, carryPrice) => {
6504
+ if (busy() || status() !== "ready") return;
6505
+ const gen = generation;
6506
+ const productId = opts.product().id;
6507
+ clearError(dosage);
6508
+ setNotice(null);
6509
+ setWriting({ dosage, doseId });
6510
+ try {
6511
+ let fresh;
6512
+ try {
6513
+ fresh = await adminProductStrengthMatchesApi.set(productId, matchBody(dosage, doseId, carryPrice));
6514
+ } catch (err) {
6515
+ if (gen !== generation) return;
6516
+ const f = classifyStrengthMatchError(err, doseId);
6517
+ if (f.kind === "decision") {
6518
+ setPending(f.decision);
6519
+ return;
6520
+ }
6521
+ if (f.kind === "refused") {
6522
+ setPending(null);
6523
+ setError(dosage, f.message);
6524
+ return;
6525
+ }
6526
+ setPending(null);
6527
+ const read1 = await read();
6528
+ if (gen !== generation) return;
6529
+ setNotice(
6530
+ f.kind === "stale" ? "This changed while you were looking, so the list was refreshed. Check it, then choose again." : read1 ? "We lost the connection while saving that. This is what is saved now." : "We lost the connection while saving that, and could not check what was saved."
6531
+ );
6532
+ if (f.kind === "ambiguous" || f.code === "product_changed") await notifyChanged();
6533
+ return;
6534
+ }
6535
+ if (gen !== generation) return;
6536
+ setPending(null);
6537
+ adopt(fresh);
6538
+ await notifyChanged();
6539
+ } finally {
6540
+ if (gen === generation) setWriting(null);
6541
+ }
6542
+ };
6543
+ return {
6544
+ status,
6545
+ rows,
6546
+ doseOptions,
6547
+ pending,
6548
+ writing,
6549
+ busy,
6550
+ errors,
6551
+ notice,
6552
+ dismissNotice: () => setNotice(null),
6553
+ valueOf: (dosage) => {
6554
+ const w = writing();
6555
+ if (w && w.dosage === dosage) return w.doseId ?? "";
6556
+ const row = rows().find((r) => r.dosage === dosage);
6557
+ return row ? matchValue(row) : "";
6558
+ },
6559
+ setMatch: async (dosage, doseId) => {
6560
+ const row = rows().find((r) => r.dosage === dosage);
6561
+ if (!row || busy()) return;
6562
+ if (pending() && pending().dosage !== dosage) setPending(null);
6563
+ if (row.doseId === doseId) {
6564
+ setPending(null);
6565
+ return;
6566
+ }
6567
+ await write(dosage, doseId);
6568
+ },
6569
+ decide: async (carryPrice) => {
6570
+ const p = pending();
6571
+ if (!p) return;
6572
+ await write(p.dosage, p.doseId, carryPrice);
6573
+ },
6574
+ cancelDecision: () => setPending(null),
6575
+ reload
6576
+ };
6577
+ }
6578
+
6373
6579
  export {
6374
6580
  isQuestionVisible,
6375
6581
  useSurveyFlow,
@@ -6512,6 +6718,15 @@ export {
6512
6718
  buildSaveBody,
6513
6719
  pharmacyIsOnProduct,
6514
6720
  classifyAddPharmacyError,
6515
- useAddPharmacy
6721
+ useAddPharmacy,
6722
+ wantsStrengthMatches,
6723
+ matchBody,
6724
+ matchValue,
6725
+ doseIdOf,
6726
+ isLeftForReview,
6727
+ normalizeMatches,
6728
+ decisionFromDetails,
6729
+ classifyStrengthMatchError,
6730
+ useStrengthMatches
6516
6731
  };
6517
- //# sourceMappingURL=VE5ACNFB.jsx.map
6732
+ //# sourceMappingURL=TLDELI22.jsx.map
@@ -2096,6 +2096,40 @@ declare const adminProductPharmaciesApi: {
2096
2096
  /** Adds it. Up to ~40 seconds on a single-pharmacy product; never retry blindly — re-read the product first. */
2097
2097
  add(productId: string, body: AddPharmacyBody): Promise<AddPharmacyResult>;
2098
2098
  };
2099
+ /** An old strength subscribers are still on, and the strength it is now (`doseId: null` = left for review). */
2100
+ interface StrengthMatchRow {
2101
+ dosage: string;
2102
+ subscriberCount: number;
2103
+ /** What the old strength sold for, or null when it had no price. */
2104
+ price: number | null;
2105
+ doseId: string | null;
2106
+ doseLabel: string | null;
2107
+ }
2108
+ /** A strength an old one can be matched to. */
2109
+ interface StrengthMatchDoseOption {
2110
+ doseId: string;
2111
+ label: string;
2112
+ /** The strength's own price, or null when it has none yet. */
2113
+ price: number | null;
2114
+ }
2115
+ interface ProductStrengthMatches {
2116
+ productId: string;
2117
+ /** Empty for a flat-fee product and for one not yet moved. */
2118
+ rows: StrengthMatchRow[];
2119
+ doseOptions: StrengthMatchDoseOption[];
2120
+ }
2121
+ interface StrengthMatchBody {
2122
+ dosage: string;
2123
+ /** null leaves the subscribers for review. */
2124
+ doseId: string | null;
2125
+ /** Answer to a `price_decision_required` refusal: sell the strength at the old price (true) or not (false). */
2126
+ carryPrice?: boolean;
2127
+ }
2128
+ declare const adminProductStrengthMatchesApi: {
2129
+ list(productId: string): Promise<ProductStrengthMatches>;
2130
+ /** Changes one match; answers with the fresh list. Rewrites the product's stored `dosagePrices`. */
2131
+ set(productId: string, body: StrengthMatchBody): Promise<ProductStrengthMatches>;
2132
+ };
2099
2133
  declare const adminApi: {
2100
2134
  getDashboard(): Promise<AdminDashboardStats>;
2101
2135
  getRecurringRevenue(): Promise<AdminRecurringRevenue>;
@@ -2882,4 +2916,4 @@ declare const affiliatePortalApi: {
2882
2916
  track(refCode: string, landingPage?: string): Promise<AffiliateTrackResponse>;
2883
2917
  };
2884
2918
 
2885
- export { type AdminScheduledRefund as $, type AddPharmacyBody as A, type AdminCustomerSupportThread as B, type AdminDashboardStats as C, type AdminLifecycle as D, type AdminLifecycleBucket as E, type AdminListParams as F, type AdminOffer as G, type AdminOfferBase as H, type AdminOfferGrant as I, type AdminOfferGrantBase as J, type AdminOfferInput as K, type AdminOrderSummary as L, type AdminOrphanReason as M, type AdminOrphanedDosePrice as N, type AdminPayment as O, type AdminPaymentDetail as P, type AdminProduct as Q, type AdminProductOverlayField as R, type AdminProductPharmacy as S, type AdminProductStrength as T, type AdminPromoCode as U, type AdminPromoCodeInput as V, type AdminRecurringPricePoint as W, type AdminRecurringRevenue as X, type AdminRefundResult as Y, type AdminSale as Z, type AdminSaleInput as _, type AddPharmacyDoseMatch as a, type CategoryMetadata as a$, type AdminScheduledRefundProblem as a0, type AdminSubscription as a1, type AdminSubscriptionDetail as a2, type AdminSubscriptionPatch as a3, type AdminSubscriptionWriteResult as a4, type AdminSupportCustomer as a5, type AdminSupportStats as a6, type AdminSupportThread as a7, type AdminWebhookEvent as a8, type Affiliate as a9, type CatalogConversionCommitResult as aA, type CatalogConversionDose as aB, type CatalogConversionDoseMatch as aC, type CatalogConversionFinding as aD, type CatalogConversionPointers as aE, type CatalogConversionPrepareResult as aF, type CatalogConversionPreview as aG, type CatalogConversionRun as aH, type CatalogConversionSource as aI, type CatalogConversionStage as aJ, type CatalogConversionTarget as aK, type CatalogConversionUndoOptions as aL, type CatalogConversionUndoResult as aM, type CatalogDose as aN, type CatalogDoseInput as aO, type CatalogDoseModel as aP, type CatalogDoseSuggestion as aQ, type CatalogDoseSuggestions as aR, type CatalogEquivalentSuggestions as aS, type CatalogFulfillment as aT, type CatalogFulfillmentInput as aU, type CatalogItem as aV, type CatalogItemInput as aW, type CatalogMappableDrug as aX, type CatalogMatrixCell as aY, type CatalogProduct as aZ, type CatalogReadiness as a_, type AffiliateAuthTokens as aa, type AffiliateClickRecord as ab, type AffiliateConversion as ac, type AffiliateDashboardLinks as ad, type AffiliateDashboardProfile as ae, type AffiliateDashboardStats as af, type AffiliateDownlineMember as ag, type AffiliateEarningsBreakdown as ah, type AffiliatePaymentMethod as ai, type AffiliateProgram as aj, type AffiliateRegisterInput as ak, type AffiliateRegisterResponse as al, type AffiliateSession as am, type AffiliateStatsResponse as an, type AffiliateStatus as ao, type AffiliateTrackResponse as ap, ApiError as aq, type ApiResponse as ar, type AttributionMethod as as, type AuthTokens as at, type BillingReminderSettings as au, type CatalogAvailabilityItem as av, type CatalogAvailabilityReason as aw, type CatalogAvailabilityResult as ax, type CatalogClassification as ay, type CatalogConversionChoice as az, type AddPharmacyDoseOption as b, type TenantFeatureAccess as b$, type CheckoutAddress as b0, type CheckoutPayload as b1, type CheckoutResult as b2, type CommissionConfig as b3, type CommissionStatus as b4, type CompleteSurveyPayload as b5, type CreateAffiliatePayload as b6, type CreateAffiliateProgramPayload as b7, type CreateOrderPayload as b8, type CreateRequestPayload as b9, type PlaceholderKind as bA, type ProductSaleSummary as bB, type PromoValidationResponse as bC, type PublicCategory as bD, type RegisterAndSubscribePayload as bE, type RegisterPayload as bF, type RenewalStatus as bG, SUPPORT_ATTACHMENT_MAX_BYTES as bH, SUPPORT_ATTACHMENT_MIME_TYPES as bI, type SelectDrugPayload as bJ, type SendMessagePayload as bK, type SendToPharmacyPayload as bL, type SubscriptionPreview as bM, type SubscriptionPreviewLine as bN, type SubscriptionPreviewPayload as bO, type SupportAttachment as bP, type SupportChannel as bQ, type SupportChannelSettings as bR, type SupportMessage as bS, type SupportRealtimeToken as bT, type SupportThread as bU, type SupportThreadCategory as bV, type SupportThreadStatus as bW, type SurveySubmitPayload as bX, type TemplatePlaceholdersMap as bY, type TemplateText as bZ, type TenantFeature as b_, type CreateSubscriptionPayload as ba, type CustomTemplate as bb, type CustomTemplateInput as bc, type CustomerDiscountConfig as bd, type DeliveryInfo as be, type DiscountType as bf, type EmailNotificationSettings as bg, type EmailTemplatesMap as bh, type LoginPayload as bi, type MemberOffer as bj, type MemberPrescriptionRequest as bk, type MemberSurveyMode as bl, type MemberSurveyResponseSummary as bm, type MemberSurveyTranscript as bn, type MemberSurveyTranscriptItem as bo, type MemberSurveyTranscriptSection as bp, type MembersMeResponse as bq, type OfferGrantState as br, type Order as bs, type OrderItemInput as bt, type PaginationParams as bu, type PaymentCallbackPayload as bv, type PaymentInitiatePayload as bw, type PaymentType as bx, type PendingRenewalSurvey as by, type Placeholder as bz, type AddPharmacyFinding as c, type TokenTrackName as c0, type UpdateAffiliatePayload as c1, type UpdateAffiliateProgramPayload as c2, type UpdatePaymentMethodPayload as c3, type UpdateProfilePayload as c4, type User as c5, addressesApi as c6, adminAffiliatesApi as c7, adminApi as c8, adminCatalogApi as c9, usersApi as cA, adminCatalogConversionApi as ca, adminProductPharmaciesApi as cb, affiliateAuthStorageKey as cc, affiliatePortalApi as cd, apexApi as ce, apiFetch as cf, authApi as cg, authStorageKey as ch, catalogApi as ci, clearAffiliateTokens as cj, clearTokens as ck, getAffiliateTokens as cl, getTokens as cm, membersApi as cn, messagesApi as co, newIdempotencyKey as cp, offersApi as cq, onTokensCleared as cr, ordersApi as cs, paymentsApi as ct, productsApi as cu, promoCodesApi as cv, setAffiliateTokens as cw, setTokens as cx, subscriptionsApi as cy, supportApi as cz, type AddPharmacyMatchQuestion as d, type AddPharmacyMatchSource as e, type AddPharmacyPlan as f, type AddPharmacyPrice as g, type AddPharmacyResult as h, type AddPharmacyStrengthAfter as i, type AddPharmacyStrengthBefore as j, type AddressVerifyResult as k, type AdminApexDrug as l, type AdminApexItemStatus as m, type AdminBillingAttempt as n, type AdminCategory as o, type AdminCategoryInput as p, type AdminCategoryUpdate as q, type AdminCustomer as r, type AdminCustomerFacts as s, type AdminCustomerFunnel as t, type AdminCustomerListParams as u, type AdminCustomerOverview as v, type AdminCustomerProfile as w, type AdminCustomerRequest as x, type AdminCustomerRow as y, type AdminCustomerSupport as z };
2919
+ export { type AdminScheduledRefund as $, type AddPharmacyBody as A, type AdminCustomerSupportThread as B, type AdminDashboardStats as C, type AdminLifecycle as D, type AdminLifecycleBucket as E, type AdminListParams as F, type AdminOffer as G, type AdminOfferBase as H, type AdminOfferGrant as I, type AdminOfferGrantBase as J, type AdminOfferInput as K, type AdminOrderSummary as L, type AdminOrphanReason as M, type AdminOrphanedDosePrice as N, type AdminPayment as O, type AdminPaymentDetail as P, type AdminProduct as Q, type AdminProductOverlayField as R, type AdminProductPharmacy as S, type AdminProductStrength as T, type AdminPromoCode as U, type AdminPromoCodeInput as V, type AdminRecurringPricePoint as W, type AdminRecurringRevenue as X, type AdminRefundResult as Y, type AdminSale as Z, type AdminSaleInput as _, type AddPharmacyDoseMatch as a, type CategoryMetadata as a$, type AdminScheduledRefundProblem as a0, type AdminSubscription as a1, type AdminSubscriptionDetail as a2, type AdminSubscriptionPatch as a3, type AdminSubscriptionWriteResult as a4, type AdminSupportCustomer as a5, type AdminSupportStats as a6, type AdminSupportThread as a7, type AdminWebhookEvent as a8, type Affiliate as a9, type CatalogConversionCommitResult as aA, type CatalogConversionDose as aB, type CatalogConversionDoseMatch as aC, type CatalogConversionFinding as aD, type CatalogConversionPointers as aE, type CatalogConversionPrepareResult as aF, type CatalogConversionPreview as aG, type CatalogConversionRun as aH, type CatalogConversionSource as aI, type CatalogConversionStage as aJ, type CatalogConversionTarget as aK, type CatalogConversionUndoOptions as aL, type CatalogConversionUndoResult as aM, type CatalogDose as aN, type CatalogDoseInput as aO, type CatalogDoseModel as aP, type CatalogDoseSuggestion as aQ, type CatalogDoseSuggestions as aR, type CatalogEquivalentSuggestions as aS, type CatalogFulfillment as aT, type CatalogFulfillmentInput as aU, type CatalogItem as aV, type CatalogItemInput as aW, type CatalogMappableDrug as aX, type CatalogMatrixCell as aY, type CatalogProduct as aZ, type CatalogReadiness as a_, type AffiliateAuthTokens as aa, type AffiliateClickRecord as ab, type AffiliateConversion as ac, type AffiliateDashboardLinks as ad, type AffiliateDashboardProfile as ae, type AffiliateDashboardStats as af, type AffiliateDownlineMember as ag, type AffiliateEarningsBreakdown as ah, type AffiliatePaymentMethod as ai, type AffiliateProgram as aj, type AffiliateRegisterInput as ak, type AffiliateRegisterResponse as al, type AffiliateSession as am, type AffiliateStatsResponse as an, type AffiliateStatus as ao, type AffiliateTrackResponse as ap, ApiError as aq, type ApiResponse as ar, type AttributionMethod as as, type AuthTokens as at, type BillingReminderSettings as au, type CatalogAvailabilityItem as av, type CatalogAvailabilityReason as aw, type CatalogAvailabilityResult as ax, type CatalogClassification as ay, type CatalogConversionChoice as az, type AddPharmacyDoseOption as b, type SurveySubmitPayload as b$, type CheckoutAddress as b0, type CheckoutPayload as b1, type CheckoutResult as b2, type CommissionConfig as b3, type CommissionStatus as b4, type CompleteSurveyPayload as b5, type CreateAffiliatePayload as b6, type CreateAffiliateProgramPayload as b7, type CreateOrderPayload as b8, type CreateRequestPayload as b9, type PlaceholderKind as bA, type ProductSaleSummary as bB, type ProductStrengthMatches as bC, type PromoValidationResponse as bD, type PublicCategory as bE, type RegisterAndSubscribePayload as bF, type RegisterPayload as bG, type RenewalStatus as bH, SUPPORT_ATTACHMENT_MAX_BYTES as bI, SUPPORT_ATTACHMENT_MIME_TYPES as bJ, type SelectDrugPayload as bK, type SendMessagePayload as bL, type SendToPharmacyPayload as bM, type StrengthMatchBody as bN, type StrengthMatchDoseOption as bO, type StrengthMatchRow as bP, type SubscriptionPreview as bQ, type SubscriptionPreviewLine as bR, type SubscriptionPreviewPayload as bS, type SupportAttachment as bT, type SupportChannel as bU, type SupportChannelSettings as bV, type SupportMessage as bW, type SupportRealtimeToken as bX, type SupportThread as bY, type SupportThreadCategory as bZ, type SupportThreadStatus as b_, type CreateSubscriptionPayload as ba, type CustomTemplate as bb, type CustomTemplateInput as bc, type CustomerDiscountConfig as bd, type DeliveryInfo as be, type DiscountType as bf, type EmailNotificationSettings as bg, type EmailTemplatesMap as bh, type LoginPayload as bi, type MemberOffer as bj, type MemberPrescriptionRequest as bk, type MemberSurveyMode as bl, type MemberSurveyResponseSummary as bm, type MemberSurveyTranscript as bn, type MemberSurveyTranscriptItem as bo, type MemberSurveyTranscriptSection as bp, type MembersMeResponse as bq, type OfferGrantState as br, type Order as bs, type OrderItemInput as bt, type PaginationParams as bu, type PaymentCallbackPayload as bv, type PaymentInitiatePayload as bw, type PaymentType as bx, type PendingRenewalSurvey as by, type Placeholder as bz, type AddPharmacyFinding as c, type TemplatePlaceholdersMap as c0, type TemplateText as c1, type TenantFeature as c2, type TenantFeatureAccess as c3, type TokenTrackName as c4, type UpdateAffiliatePayload as c5, type UpdateAffiliateProgramPayload as c6, type UpdatePaymentMethodPayload as c7, type UpdateProfilePayload as c8, type User as c9, promoCodesApi as cA, setAffiliateTokens as cB, setTokens as cC, subscriptionsApi as cD, supportApi as cE, usersApi as cF, addressesApi as ca, adminAffiliatesApi as cb, adminApi as cc, adminCatalogApi as cd, adminCatalogConversionApi as ce, adminProductPharmaciesApi as cf, adminProductStrengthMatchesApi as cg, affiliateAuthStorageKey as ch, affiliatePortalApi as ci, apexApi as cj, apiFetch as ck, authApi as cl, authStorageKey as cm, catalogApi as cn, clearAffiliateTokens as co, clearTokens as cp, getAffiliateTokens as cq, getTokens as cr, membersApi as cs, messagesApi as ct, newIdempotencyKey as cu, offersApi as cv, onTokensCleared as cw, ordersApi as cx, paymentsApi as cy, productsApi as cz, type AddPharmacyMatchQuestion as d, type AddPharmacyMatchSource as e, type AddPharmacyPlan as f, type AddPharmacyPrice as g, type AddPharmacyResult as h, type AddPharmacyStrengthAfter as i, type AddPharmacyStrengthBefore as j, type AddressVerifyResult as k, type AdminApexDrug as l, type AdminApexItemStatus as m, type AdminBillingAttempt as n, type AdminCategory as o, type AdminCategoryInput as p, type AdminCategoryUpdate as q, type AdminCustomer as r, type AdminCustomerFacts as s, type AdminCustomerFunnel as t, type AdminCustomerListParams as u, type AdminCustomerOverview as v, type AdminCustomerProfile as w, type AdminCustomerRequest as x, type AdminCustomerRow as y, type AdminCustomerSupport as z };
@@ -1,5 +1,5 @@
1
1
  import { Accessor, Resource } from 'solid-js';
2
- import { k as AddressVerifyResult, b0 as CheckoutAddress, ax as CatalogAvailabilityResult, c5 as User, be as DeliveryInfo, bG as RenewalStatus, by as PendingRenewalSurvey, E as AdminLifecycleBucket, v as AdminCustomerOverview, a2 as AdminSubscriptionDetail, x as AdminCustomerRequest, bV as SupportThreadCategory, bQ as SupportChannel, aZ as CatalogProduct, ac as AffiliateConversion, ag as AffiliateDownlineMember, ad as AffiliateDashboardLinks, af as AffiliateDashboardStats, bC as PromoValidationResponse, bj as MemberOffer, ay as CatalogClassification, aP as CatalogDoseModel, N as AdminOrphanedDosePrice, Q as AdminProduct, aV as CatalogItem, aQ as CatalogDoseSuggestion, aX as CatalogMappableDrug, aS as CatalogEquivalentSuggestions, a_ as CatalogReadiness, aM as CatalogConversionUndoResult, aG as CatalogConversionPreview, aC as CatalogConversionDoseMatch, aI as CatalogConversionSource, aB as CatalogConversionDose, aL as CatalogConversionUndoOptions, aA as CatalogConversionCommitResult, aD as CatalogConversionFinding, az as CatalogConversionChoice, f as AddPharmacyPlan, h as AddPharmacyResult, e as AddPharmacyMatchSource, A as AddPharmacyBody, c as AddPharmacyFinding } from '../client-Baf1FSEp.js';
2
+ import { k as AddressVerifyResult, b0 as CheckoutAddress, ax as CatalogAvailabilityResult, c9 as User, be as DeliveryInfo, bH as RenewalStatus, by as PendingRenewalSurvey, E as AdminLifecycleBucket, v as AdminCustomerOverview, a2 as AdminSubscriptionDetail, x as AdminCustomerRequest, bZ as SupportThreadCategory, bU as SupportChannel, aZ as CatalogProduct, ac as AffiliateConversion, ag as AffiliateDownlineMember, ad as AffiliateDashboardLinks, af as AffiliateDashboardStats, bD as PromoValidationResponse, bj as MemberOffer, ay as CatalogClassification, aP as CatalogDoseModel, N as AdminOrphanedDosePrice, Q as AdminProduct, aV as CatalogItem, aQ as CatalogDoseSuggestion, aX as CatalogMappableDrug, aS as CatalogEquivalentSuggestions, a_ as CatalogReadiness, aM as CatalogConversionUndoResult, aG as CatalogConversionPreview, aC as CatalogConversionDoseMatch, aI as CatalogConversionSource, aB as CatalogConversionDose, aL as CatalogConversionUndoOptions, aA as CatalogConversionCommitResult, aD as CatalogConversionFinding, az as CatalogConversionChoice, f as AddPharmacyPlan, h as AddPharmacyResult, e as AddPharmacyMatchSource, A as AddPharmacyBody, c as AddPharmacyFinding, bP as StrengthMatchRow, bO as StrengthMatchDoseOption, bN as StrengthMatchBody, bC as ProductStrengthMatches } from '../client-BLh8hFAu.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';
@@ -2593,6 +2593,146 @@ interface AddPharmacy {
2593
2593
  }
2594
2594
  declare function useAddPharmacy(opts: UseAddPharmacyOptions): AddPharmacy;
2595
2595
 
2596
+ /**
2597
+ * "Subscribers' strengths": which current strength each older strength is now —
2598
+ * the headless flow behind the product editor's section of that name.
2599
+ *
2600
+ * loading → ready ⇄ writing → ready
2601
+ * ↘ failed ↙ ↘ deciding (a price is owed an answer) → writing
2602
+ *
2603
+ * An old strength is one subscribers are still on that is no longer a strength
2604
+ * of the product. The server lists them (`rows`) with the strength each one is
2605
+ * matched to; the admin re-points one at a time. A change applies from each
2606
+ * subscriber's next refill and never changes what any strength sells for.
2607
+ *
2608
+ * Rules this flow keeps:
2609
+ *
2610
+ * - One write at a time. Every answer is the server's fresh list, adopted
2611
+ * whole; nothing is patched locally.
2612
+ * - A match onto a strength with no price of its own, from an old strength
2613
+ * that had one, is the admin's call: the server answers
2614
+ * `price_decision_required` and changes nothing. The row keeps showing what
2615
+ * it had (`pending` holds the question) until `decide` re-sends with the
2616
+ * answer, or `cancelDecision` drops it.
2617
+ * - A write changes the product's stored `dosagePrices`. Whenever that may
2618
+ * have happened (a success, a lost answer, a changed product) the host is
2619
+ * told through `onChanged`, so the editor holds the server's copy and a
2620
+ * later Save can't send stale prices over the match.
2621
+ * - A write is never resent blindly. After a failure whose outcome is not
2622
+ * known (no `code`: a dropped connection, a proxy timeout, a 5xx) the list
2623
+ * is re-read and shows whatever the server has now.
2624
+ * - A failed load is local to this section: it says so and offers a retry,
2625
+ * and nothing else in the editor waits on it.
2626
+ *
2627
+ * The decision logic (error sorting, the decision details, the request body,
2628
+ * when a request is made at all) is exported as pure functions and tested
2629
+ * without a component tree.
2630
+ */
2631
+
2632
+ /** The product fields this flow reads. */
2633
+ type StrengthMatchProduct = Pick<AdminProduct, 'id' | 'pricingMode'> & Partial<Pick<AdminProduct, 'apexDrugId' | 'strengths'>>;
2634
+ /** Whether there is anything to ask the server: a flat-fee product has no per-strength matches. */
2635
+ declare function wantsStrengthMatches(product: Pick<AdminProduct, 'pricingMode'> | null | undefined, enabled: boolean): boolean;
2636
+ /** The request body: `carryPrice` only when the admin has answered the price question. */
2637
+ declare function matchBody(dosage: string, doseId: string | null, carryPrice?: boolean): StrengthMatchBody;
2638
+ /** What a row's select shows: the matched strength's id, or '' for "Leave for review". */
2639
+ declare const matchValue: (row: Pick<StrengthMatchRow, "doseId">) => string;
2640
+ /** The select's value as a body `doseId`: '' = leave for review. */
2641
+ declare const doseIdOf: (value: string) => string | null;
2642
+ /** A server answer with every field a screen reads present (a missing list reads as empty). */
2643
+ declare function normalizeMatches(raw: Partial<ProductStrengthMatches> | null | undefined): {
2644
+ rows: StrengthMatchRow[];
2645
+ doseOptions: StrengthMatchDoseOption[];
2646
+ };
2647
+ /** The question a `price_decision_required` refusal asks. */
2648
+ interface PendingDecision {
2649
+ dosage: string;
2650
+ /** The strength the admin picked. */
2651
+ doseId: string;
2652
+ /** What the old strength sold for. */
2653
+ price: number;
2654
+ /** The picked strength's name. */
2655
+ doseLabel: string;
2656
+ }
2657
+ /** Reads a refusal's `details` into a question; null when they don't say what it needs to. */
2658
+ declare function decisionFromDetails(details: unknown, doseId: string): PendingDecision | null;
2659
+ type StrengthMatchFailure =
2660
+ /** `price_decision_required`: nothing changed; the admin owes an answer. */
2661
+ {
2662
+ kind: 'decision';
2663
+ decision: PendingDecision;
2664
+ }
2665
+ /** What was on screen is out of date (`product_changed`, `not_a_row`, `not_applicable`,
2666
+ * `invalid_strength_match`): nothing was written, but the list and the product need re-reading. */
2667
+ | {
2668
+ kind: 'stale';
2669
+ code: string;
2670
+ message: string;
2671
+ }
2672
+ /** The server said no before doing anything else; show its message at the row. */
2673
+ | {
2674
+ kind: 'refused';
2675
+ message: string;
2676
+ code?: string;
2677
+ }
2678
+ /** The request may or may not have landed (no `code`: the server's answer never reached us). */
2679
+ | {
2680
+ kind: 'ambiguous';
2681
+ message: string;
2682
+ };
2683
+ /**
2684
+ * Sort a thrown error into what the flow can do about it. Duck-typed on
2685
+ * `status` / `code` / `ambiguous` / `details` (what `ApiError` carries);
2686
+ * branches on codes and statuses, never on message prose. `doseId` is the
2687
+ * strength the failed request asked for.
2688
+ */
2689
+ declare function classifyStrengthMatchError(err: unknown, doseId: string | null): StrengthMatchFailure;
2690
+ type StrengthMatchesStatus = 'idle' | 'loading' | 'ready' | 'failed';
2691
+ /** The write in flight. */
2692
+ interface StrengthMatchWrite {
2693
+ dosage: string;
2694
+ doseId: string | null;
2695
+ }
2696
+ interface UseStrengthMatchesOptions {
2697
+ /** The product being edited (the server's copy: it changes when the host reloads it). */
2698
+ product: Accessor<StrengthMatchProduct>;
2699
+ /** Catalog-backed products only; nothing is requested while false. */
2700
+ enabled: Accessor<boolean>;
2701
+ /**
2702
+ * A write may have changed the product's stored prices (it succeeded, its
2703
+ * answer was lost, or the product had changed): the host reloads its copy.
2704
+ * The flow waits for it, then reports the change as finished.
2705
+ */
2706
+ onChanged?: () => void | Promise<void>;
2707
+ }
2708
+ interface StrengthMatches {
2709
+ status: Accessor<StrengthMatchesStatus>;
2710
+ rows: Accessor<StrengthMatchRow[]>;
2711
+ doseOptions: Accessor<StrengthMatchDoseOption[]>;
2712
+ /** The question the admin owes an answer to, if any. */
2713
+ pending: Accessor<PendingDecision | null>;
2714
+ /** The write in flight (selects wait on it). */
2715
+ writing: Accessor<StrengthMatchWrite | null>;
2716
+ /** True while a write (and the host's reload after it) is running. */
2717
+ busy: Accessor<boolean>;
2718
+ /** Server messages by old strength (`dosage`). */
2719
+ errors: Accessor<Readonly<Record<string, string>>>;
2720
+ /** Something the admin should know about the list as a whole (it was refreshed). */
2721
+ notice: Accessor<string | null>;
2722
+ dismissNotice: () => void;
2723
+ /** What a row's select should show: the pick while its write runs, else the server's match ('' = leave for review). */
2724
+ valueOf: (dosage: string) => string;
2725
+ /** Match an old strength to a strength (null = leave for review). Resolves once the change is finished. */
2726
+ setMatch: (dosage: string, doseId: string | null) => Promise<void>;
2727
+ /** Answer the price question: sell the strength at the old price, or not. */
2728
+ decide: (carryPrice: boolean) => Promise<void>;
2729
+ /** Drop the price question; the row stays as it was. */
2730
+ cancelDecision: () => void;
2731
+ /** (Re)load the list; the retry after a failed load. */
2732
+ reload: () => Promise<void>;
2733
+ }
2734
+ declare function useStrengthMatches(opts: UseStrengthMatchesOptions): StrengthMatches;
2735
+
2596
2736
  /**
2597
2737
  * Shared vocabulary for reading a subscription's status.
2598
2738
  *
@@ -2742,4 +2882,4 @@ declare function restoreCartFromLink(): Promise<ResumedCart | null>;
2742
2882
  */
2743
2883
  declare function startCartCapture(opts?: CartCaptureOptions): () => void;
2744
2884
 
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 };
2885
+ 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 PendingDecision, 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 StrengthMatchFailure, type StrengthMatchProduct, type StrengthMatchWrite, type StrengthMatches, type StrengthMatchesStatus, 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 UseStrengthMatchesOptions, 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, classifyStrengthMatchError, compareStrengths, createCatalogProduct, createFunnelTelemetry, decisionFromDetails, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, doseIdOf, 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, matchBody, matchProblem, matchValue, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeMatches, 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, useStrengthMatches, useSubscribeFlow, useSubscriptionIntakeFlow, useSurveyFlow, useUpdatePaymentMethodFlow, validateAddress, validateResumedPromo, visibleWarnings, wantsStrengthMatches };
@@ -1,9 +1,9 @@
1
- export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/ANKLNWGB.js';
2
- import '../chunk/TFA64PLK.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/LFSDVMIY.js';
4
- import '../chunk/Z6PDUPOU.js';
5
- import '../chunk/AXXQJC6M.js';
6
- import '../chunk/ICGZXU3R.js';
1
+ export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/2HDMTWLH.js';
2
+ import '../chunk/FXRGPBYU.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, classifyStrengthMatchError, compareStrengths, createCatalogProduct, createFunnelTelemetry, decisionFromDetails, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, doseIdOf, 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, matchBody, matchProblem, matchValue, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeMatches, 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, useStrengthMatches, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress, visibleWarnings, wantsStrengthMatches } from '../chunk/BYDMO5RM.js';
4
+ import '../chunk/6V7RVUXX.js';
5
+ import '../chunk/A6FJGQIS.js';
6
+ import '../chunk/RDZDD5UW.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/P4NWFY4T.jsx";
8
- import "../chunk/3SPMZ7FK.jsx";
7
+ } from "../chunk/IQDVS3XA.jsx";
8
+ import "../chunk/FTZ52PMM.jsx";
9
9
  import {
10
10
  DEFAULT_COLOR_PALETTE,
11
11
  LIFECYCLE_BUCKETS,
@@ -42,13 +42,16 @@ import {
42
42
  classifyAddPharmacyError,
43
43
  classifyCatalogError,
44
44
  classifyConversionError,
45
+ classifyStrengthMatchError,
45
46
  compareStrengths,
46
47
  createCatalogProduct,
47
48
  createFunnelTelemetry,
49
+ decisionFromDetails,
48
50
  deriveAttention,
49
51
  deriveCatalogAvailabilityDecision,
50
52
  deriveJourney,
51
53
  describeConversion,
54
+ doseIdOf,
52
55
  emailGateAnswered,
53
56
  explainFinding,
54
57
  findStoredDosePrice,
@@ -76,11 +79,14 @@ import {
76
79
  lowestPrice,
77
80
  lowestSalePrice,
78
81
  markEmailGateAnswered,
82
+ matchBody,
79
83
  matchProblem,
84
+ matchValue,
80
85
  matchesComplete,
81
86
  missingPrices,
82
87
  moveInOrder,
83
88
  needsReview,
89
+ normalizeMatches,
84
90
  normalizeState,
85
91
  normalizeStates,
86
92
  offerBeatsPromo,
@@ -127,16 +133,18 @@ import {
127
133
  useProductDetail,
128
134
  useRegisterFlow,
129
135
  useSignupFlow,
136
+ useStrengthMatches,
130
137
  useSubscribeFlow,
131
138
  useSurveyFlow,
132
139
  useSurveyV2Flow,
133
140
  useUpdatePaymentMethodFlow,
134
141
  validateAddress,
135
- visibleWarnings
136
- } from "../chunk/VE5ACNFB.jsx";
137
- import "../chunk/HM5L6J62.jsx";
138
- import "../chunk/545PPOE5.jsx";
139
- import "../chunk/PHSZOZVK.jsx";
142
+ visibleWarnings,
143
+ wantsStrengthMatches
144
+ } from "../chunk/TLDELI22.jsx";
145
+ import "../chunk/5HQAA4UO.jsx";
146
+ import "../chunk/BJXD2NQQ.jsx";
147
+ import "../chunk/37UEVJEC.jsx";
140
148
  import "../chunk/QVZ7BRNO.jsx";
141
149
  export {
142
150
  DEFAULT_COLOR_PALETTE,
@@ -175,13 +183,16 @@ export {
175
183
  classifyAddPharmacyError,
176
184
  classifyCatalogError,
177
185
  classifyConversionError,
186
+ classifyStrengthMatchError,
178
187
  compareStrengths,
179
188
  createCatalogProduct,
180
189
  createFunnelTelemetry,
190
+ decisionFromDetails,
181
191
  deriveAttention,
182
192
  deriveCatalogAvailabilityDecision,
183
193
  deriveJourney,
184
194
  describeConversion,
195
+ doseIdOf,
185
196
  emailGateAnswered,
186
197
  explainFinding,
187
198
  findStoredDosePrice,
@@ -209,11 +220,14 @@ export {
209
220
  lowestPrice,
210
221
  lowestSalePrice,
211
222
  markEmailGateAnswered,
223
+ matchBody,
212
224
  matchProblem,
225
+ matchValue,
213
226
  matchesComplete,
214
227
  missingPrices,
215
228
  moveInOrder,
216
229
  needsReview,
230
+ normalizeMatches,
217
231
  normalizeState,
218
232
  normalizeStates,
219
233
  offerBeatsPromo,
@@ -262,6 +276,7 @@ export {
262
276
  useProductDetail,
263
277
  useRegisterFlow,
264
278
  useSignupFlow,
279
+ useStrengthMatches,
265
280
  useSubscribeFlow,
266
281
  useSubscriptionIntakeFlow,
267
282
  useSurveyFlow,
@@ -269,6 +284,7 @@ export {
269
284
  useUpdatePaymentMethodFlow,
270
285
  validateAddress,
271
286
  validateResumedPromo,
272
- visibleWarnings
287
+ visibleWarnings,
288
+ wantsStrengthMatches
273
289
  };
274
290
  //# sourceMappingURL=index.jsx.map