@apextelemed/partner-core 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/LICENSE +64 -0
  2. package/README.md +363 -0
  3. package/dist/api/index.d.ts +12 -0
  4. package/dist/api/index.js +8 -0
  5. package/dist/api/index.js.map +1 -0
  6. package/dist/api/index.jsx +127 -0
  7. package/dist/cart-CBH8Em8f.d.ts +189 -0
  8. package/dist/cart-D4mVX_zx.d.ts +66 -0
  9. package/dist/chunk/2OXI5TKO.jsx +249 -0
  10. package/dist/chunk/3A3MF7R2.jsx +1 -0
  11. package/dist/chunk/3VEOP7TZ.jsx +16679 -0
  12. package/dist/chunk/5XGPFYIJ.js +26 -0
  13. package/dist/chunk/5XGPFYIJ.js.map +1 -0
  14. package/dist/chunk/67KHO66G.js +26 -0
  15. package/dist/chunk/67KHO66G.js.map +1 -0
  16. package/dist/chunk/6TFBQECC.jsx +135 -0
  17. package/dist/chunk/AN3WPMEP.js +3 -0
  18. package/dist/chunk/AN3WPMEP.js.map +1 -0
  19. package/dist/chunk/DHII7L5Y.js +686 -0
  20. package/dist/chunk/DHII7L5Y.js.map +1 -0
  21. package/dist/chunk/DS4E7FAI.js +132 -0
  22. package/dist/chunk/DS4E7FAI.js.map +1 -0
  23. package/dist/chunk/DY5BJ6UG.js +1195 -0
  24. package/dist/chunk/DY5BJ6UG.js.map +1 -0
  25. package/dist/chunk/E7722UPF.js +378 -0
  26. package/dist/chunk/E7722UPF.js.map +1 -0
  27. package/dist/chunk/HLXKWRRW.js +16774 -0
  28. package/dist/chunk/HLXKWRRW.js.map +1 -0
  29. package/dist/chunk/I46Y2J5W.jsx +144 -0
  30. package/dist/chunk/J63XPQP4.jsx +21 -0
  31. package/dist/chunk/J6KNY37T.js +122 -0
  32. package/dist/chunk/J6KNY37T.js.map +1 -0
  33. package/dist/chunk/KNTZTYXE.jsx +3315 -0
  34. package/dist/chunk/KZZSQ7LP.jsx +409 -0
  35. package/dist/chunk/L46OKCKG.jsx +733 -0
  36. package/dist/chunk/LDZIUFDM.jsx +31 -0
  37. package/dist/chunk/LZWA44KD.js +3 -0
  38. package/dist/chunk/LZWA44KD.js.map +1 -0
  39. package/dist/chunk/NVRAOAVV.js +3 -0
  40. package/dist/chunk/NVRAOAVV.js.map +1 -0
  41. package/dist/chunk/O3QK7YZR.jsx +1 -0
  42. package/dist/chunk/UZCST66N.jsx +21 -0
  43. package/dist/chunk/V42CGY2S.jsx +1229 -0
  44. package/dist/chunk/YJEHCCLY.js +467 -0
  45. package/dist/chunk/YJEHCCLY.js.map +1 -0
  46. package/dist/chunk/ZMOG2IIC.js +3194 -0
  47. package/dist/chunk/ZMOG2IIC.js.map +1 -0
  48. package/dist/client-BzSg2DEK.d.ts +1539 -0
  49. package/dist/config/index.d.ts +55 -0
  50. package/dist/config/index.js +3 -0
  51. package/dist/config/index.js.map +1 -0
  52. package/dist/config/index.jsx +11 -0
  53. package/dist/flows/index.d.ts +1322 -0
  54. package/dist/flows/index.js +9 -0
  55. package/dist/flows/index.js.map +1 -0
  56. package/dist/flows/index.jsx +124 -0
  57. package/dist/index/index.d.ts +71 -0
  58. package/dist/index/index.js +15 -0
  59. package/dist/index/index.js.map +1 -0
  60. package/dist/index/index.jsx +311 -0
  61. package/dist/pages/index.d.ts +617 -0
  62. package/dist/pages/index.js +10 -0
  63. package/dist/pages/index.js.map +1 -0
  64. package/dist/pages/index.jsx +50 -0
  65. package/dist/primitives/default/index.d.ts +6 -0
  66. package/dist/primitives/default/index.js +3 -0
  67. package/dist/primitives/default/index.js.map +1 -0
  68. package/dist/primitives/default/index.jsx +7 -0
  69. package/dist/primitives/index.d.ts +122 -0
  70. package/dist/primitives/index.js +3 -0
  71. package/dist/primitives/index.js.map +1 -0
  72. package/dist/primitives/index.jsx +9 -0
  73. package/dist/stores/index.d.ts +48 -0
  74. package/dist/stores/index.js +6 -0
  75. package/dist/stores/index.js.map +1 -0
  76. package/dist/stores/index.jsx +16 -0
  77. package/dist/surveyV2-BgQHK0GE.d.ts +48 -0
  78. package/dist/testing/adapter.d.ts +104 -0
  79. package/dist/testing/adapter.d.ts.map +1 -0
  80. package/dist/testing/adapter.js +14 -0
  81. package/dist/testing/adapter.js.map +1 -0
  82. package/dist/testing/env.d.ts +29 -0
  83. package/dist/testing/env.d.ts.map +1 -0
  84. package/dist/testing/env.js +42 -0
  85. package/dist/testing/env.js.map +1 -0
  86. package/dist/testing/fixtures.d.ts +70 -0
  87. package/dist/testing/fixtures.d.ts.map +1 -0
  88. package/dist/testing/fixtures.js +74 -0
  89. package/dist/testing/fixtures.js.map +1 -0
  90. package/dist/testing/index.d.ts +15 -0
  91. package/dist/testing/index.d.ts.map +1 -0
  92. package/dist/testing/index.js +14 -0
  93. package/dist/testing/index.js.map +1 -0
  94. package/dist/testing/mocks.d.ts +53 -0
  95. package/dist/testing/mocks.d.ts.map +1 -0
  96. package/dist/testing/mocks.js +90 -0
  97. package/dist/testing/mocks.js.map +1 -0
  98. package/dist/testing/seam-suite.d.ts +39 -0
  99. package/dist/testing/seam-suite.d.ts.map +1 -0
  100. package/dist/testing/seam-suite.js +196 -0
  101. package/dist/testing/seam-suite.js.map +1 -0
  102. package/dist/testing/storage.d.ts +40 -0
  103. package/dist/testing/storage.d.ts.map +1 -0
  104. package/dist/testing/storage.js +71 -0
  105. package/dist/testing/storage.js.map +1 -0
  106. package/dist/theme/admin.css +579 -0
  107. package/dist/theme/affiliate.css +191 -0
  108. package/dist/theme/flow.css +497 -0
  109. package/dist/theme/index.d.ts +84 -0
  110. package/dist/theme/index.js +94 -0
  111. package/dist/theme/index.js.map +1 -0
  112. package/dist/theme/index.jsx +97 -0
  113. package/dist/theme/member-portal.css +1762 -0
  114. package/package.json +199 -0
@@ -0,0 +1,9 @@
1
+ export { DEFAULT_COLOR_PALETTE, categoryColor, lowestPrice, lowestSalePrice, restoreCartFromLink, startCartCapture, useCatalog, useMedicationSelect, useProductDetail, useSubscriptionIntakeFlow } from '../chunk/DHII7L5Y.js';
2
+ import '../chunk/J6KNY37T.js';
3
+ export { LIVE_SUBSCRIPTION_STATUSES, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, availableStateOptions, availableStates, buildRefillView, buildTrackerView, buildTrackingUrl, captureFunnelEmail, createFunnelTelemetry, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, markEmailGateAnswered, normalizeState, redeemResumeLink, resetResumeRedemption, stateAvailabilityNote, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCheckoutFlow, useDashboardData, useMemberPortalData, useMessagesThread, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/ZMOG2IIC.js';
4
+ import '../chunk/DS4E7FAI.js';
5
+ import '../chunk/E7722UPF.js';
6
+ import '../chunk/DY5BJ6UG.js';
7
+ import '../chunk/5XGPFYIJ.js';
8
+ //# sourceMappingURL=index.js.map
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,124 @@
1
+ import {
2
+ DEFAULT_COLOR_PALETTE,
3
+ categoryColor,
4
+ lowestPrice,
5
+ lowestSalePrice,
6
+ restoreCartFromLink,
7
+ startCartCapture,
8
+ useCatalog,
9
+ useMedicationSelect,
10
+ useProductDetail,
11
+ useSubscriptionIntakeFlow
12
+ } from "../chunk/L46OKCKG.jsx";
13
+ import "../chunk/6TFBQECC.jsx";
14
+ import {
15
+ LIVE_SUBSCRIPTION_STATUSES,
16
+ TERMINAL_SUBSCRIPTION_STATUSES,
17
+ US_STATES,
18
+ US_STATE_OPTIONS,
19
+ availableStateOptions,
20
+ availableStates,
21
+ buildRefillView,
22
+ buildTrackerView,
23
+ buildTrackingUrl,
24
+ captureFunnelEmail,
25
+ createFunnelTelemetry,
26
+ emailGateAnswered,
27
+ formatCardNumber,
28
+ formatConversationTime,
29
+ formatCvv,
30
+ formatEventDate,
31
+ formatExpiry,
32
+ formatMessageTime,
33
+ formatRelativeTime,
34
+ formatStageDate,
35
+ hasErrors,
36
+ isLive,
37
+ isQuestionVisible,
38
+ isReconcilable,
39
+ markEmailGateAnswered,
40
+ normalizeState,
41
+ redeemResumeLink,
42
+ resetResumeRedemption,
43
+ stateAvailabilityNote,
44
+ useAddressPair,
45
+ useAffiliateConversions,
46
+ useAffiliateDownline,
47
+ useAffiliateLinks,
48
+ useAffiliateStats,
49
+ useCartCheckoutFlow,
50
+ useCheckoutFlow,
51
+ useDashboardData,
52
+ useMemberPortalData,
53
+ useMessagesThread,
54
+ useRegisterFlow,
55
+ useSignupFlow,
56
+ useSubscribeFlow,
57
+ useSurveyFlow,
58
+ useSurveyV2Flow,
59
+ useUpdatePaymentMethodFlow,
60
+ validateAddress
61
+ } from "../chunk/KNTZTYXE.jsx";
62
+ import "../chunk/I46Y2J5W.jsx";
63
+ import "../chunk/KZZSQ7LP.jsx";
64
+ import "../chunk/V42CGY2S.jsx";
65
+ import "../chunk/LDZIUFDM.jsx";
66
+ export {
67
+ DEFAULT_COLOR_PALETTE,
68
+ LIVE_SUBSCRIPTION_STATUSES,
69
+ TERMINAL_SUBSCRIPTION_STATUSES,
70
+ US_STATES,
71
+ US_STATE_OPTIONS,
72
+ availableStateOptions,
73
+ availableStates,
74
+ buildRefillView,
75
+ buildTrackerView,
76
+ buildTrackingUrl,
77
+ captureFunnelEmail,
78
+ categoryColor,
79
+ createFunnelTelemetry,
80
+ emailGateAnswered,
81
+ formatCardNumber,
82
+ formatConversationTime,
83
+ formatCvv,
84
+ formatEventDate,
85
+ formatExpiry,
86
+ formatMessageTime,
87
+ formatRelativeTime,
88
+ formatStageDate,
89
+ hasErrors,
90
+ isLive,
91
+ isQuestionVisible,
92
+ isReconcilable,
93
+ lowestPrice,
94
+ lowestSalePrice,
95
+ markEmailGateAnswered,
96
+ normalizeState,
97
+ redeemResumeLink,
98
+ resetResumeRedemption,
99
+ restoreCartFromLink,
100
+ startCartCapture,
101
+ stateAvailabilityNote,
102
+ useAddressPair,
103
+ useAffiliateConversions,
104
+ useAffiliateDownline,
105
+ useAffiliateLinks,
106
+ useAffiliateStats,
107
+ useCartCheckoutFlow,
108
+ useCatalog,
109
+ useCheckoutFlow,
110
+ useDashboardData,
111
+ useMedicationSelect,
112
+ useMemberPortalData,
113
+ useMessagesThread,
114
+ useProductDetail,
115
+ useRegisterFlow,
116
+ useSignupFlow,
117
+ useSubscribeFlow,
118
+ useSubscriptionIntakeFlow,
119
+ useSurveyFlow,
120
+ useSurveyV2Flow,
121
+ useUpdatePaymentMethodFlow,
122
+ validateAddress
123
+ };
124
+ //# sourceMappingURL=index.jsx.map
@@ -0,0 +1,71 @@
1
+ export { PortalConfig, configure, getConfig } from '../config/index.js';
2
+ export { BannerProps, BannerVariant, ButtonProps, ButtonSize, ButtonVariant, CardProps, CheckboxGroupProps, ChoiceOption, HeadingProps, Primitives, PrimitivesProvider, RadioGroupProps, SelectOption, SelectProps, SpinnerProps, Status, StatusPillProps, StepIndicatorProps, TextFieldProps, TextareaProps, usePrimitives } from '../primitives/index.js';
3
+ export { defaultPrimitives } from '../primitives/default/index.js';
4
+ export { A as AddressVerifyResult, a as AdminApexDrug, b as AdminCategory, c as AdminCategoryInput, d as AdminCustomer, e as AdminDashboardStats, f as AdminListParams, g as AdminPayment, h as AdminProduct, i as AdminPromoCode, j as AdminPromoCodeInput, k as AdminSale, l as AdminSaleInput, m as AdminSubscription, n as AdminSupportCustomer, o as AdminSupportStats, p as AdminSupportThread, q as AdminWebhookEvent, r as Affiliate, s as AffiliateAuthTokens, t as AffiliateClickRecord, u as AffiliateConversion, v as AffiliateDashboardLinks, w as AffiliateDashboardProfile, x as AffiliateDashboardStats, y as AffiliateDownlineMember, z as AffiliateEarningsBreakdown, B as AffiliatePaymentMethod, C as AffiliateProgram, D as AffiliateRegisterInput, E as AffiliateRegisterResponse, F as AffiliateSession, G as AffiliateStatsResponse, H as AffiliateStatus, I as AffiliateTrackResponse, J as ApiError, K as ApiResponse, L as AttributionMethod, M as AuthTokens, N as CatalogProduct, O as CheckoutAddress, P as CheckoutPayload, Q as CheckoutResult, R as CommissionConfig, S as CommissionStatus, T as CompleteSurveyPayload, U as CreateAffiliatePayload, V as CreateAffiliateProgramPayload, W as CreateOrderPayload, X as CreateRequestPayload, Y as CreateSubscriptionPayload, Z as CustomerDiscountConfig, _ as DeliveryInfo, $ as DiscountType, a0 as EmailTemplatesMap, a1 as LoginPayload, a2 as MemberPrescriptionRequest, a3 as MemberSurveyMode, a4 as MemberSurveyResponseSummary, a5 as MemberSurveyTranscript, a6 as MemberSurveyTranscriptItem, a7 as MemberSurveyTranscriptSection, a8 as MembersMeResponse, a9 as Order, aa as OrderItemInput, ab as PaginationParams, ac as PaymentCallbackPayload, ad as PaymentInitiatePayload, ae as PaymentType, af as PendingRenewalSurvey, ag as Placeholder, ah as ProductSaleSummary, ai as PromoValidationResponse, aj as PublicCategory, ak as RegisterAndSubscribePayload, al as RegisterPayload, am as RenewalStatus, an as SUPPORT_ATTACHMENT_MAX_BYTES, ao as SUPPORT_ATTACHMENT_MIME_TYPES, ap as SelectDrugPayload, aq as SendMessagePayload, ar as SendToPharmacyPayload, as as SupportAttachment, at as SupportMessage, au as SupportRealtimeToken, av as SupportThread, aw as SupportThreadStatus, ax as SurveySubmitPayload, ay as TemplatePlaceholdersMap, az as TemplateText, aA as TokenTrackName, aB as UpdateAffiliatePayload, aC as UpdateAffiliateProgramPayload, aD as UpdatePaymentMethodPayload, aE as UpdateProfilePayload, aF as User, aG as addressesApi, aH as adminAffiliatesApi, aI as adminApi, aJ as affiliateAuthStorageKey, aK as affiliatePortalApi, aL as apexApi, aM as apiFetch, aN as authApi, aO as authStorageKey, aP as clearAffiliateTokens, aQ as clearTokens, aR as getAffiliateTokens, aS as getTokens, aT as membersApi, aU as messagesApi, aV as newIdempotencyKey, aW as onTokensCleared, aX as ordersApi, aY as paymentsApi, aZ as productsApi, a_ as promoCodesApi, a$ as setAffiliateTokens, b0 as setTokens, b1 as subscriptionsApi, b2 as supportApi, b3 as usersApi } from '../client-BzSg2DEK.js';
5
+ export { EmbedApiError as ApexV2ApiError, EmbedApiClient, EmbedApiClientOptions, EmbedApiError, EmbedEvent, EmbedEventType, FetchLike, PatientInfo, V2Answer, V2ComposedSurvey, V2DrugResult, V2QualificationResult, V2Question, V2QuestionOption, V2Section, V2Step, V2SubmitResult, V2VisibilityCondition, createEmbedApiClient, disqualificationReasonText, disqualifiedDrugIds, qualifiedDrugIds } from '@apextelemed/survey-core';
6
+ export { captureAffiliateRef, clearAffiliateRef, readAffiliateRef } from '../api/index.js';
7
+ export { C as CartCaptureConfig, a as CartSnapshotLine, F as FunnelConfig, b as FunnelDraftPayload, R as ResumedCart, c as ResumedCartLine, d as ResumedDraft, e as adoptCartId, f as adoptFunnelSessionId, g as cartId, h as fetchCartConfig, i as fetchFunnelConfig, j as fetchResumedCart, k as fetchResumedDraft, l as funnelSessionId, p as peekFunnelSessionId, m as postCartSnapshot, n as postFunnelEvent, r as readCartToken, o as readResumeToken, q as resetCartConfigCache, s as resetCartId, t as resetFunnelConfigCache, u as saveFunnelDraft, v as stripCartToken, w as stripResumeToken } from '../cart-CBH8Em8f.js';
8
+ export { MedicationSelection, affiliateAuthStore, authStore, medicationStore } from '../stores/index.js';
9
+ export { A as AppliedPromoCode, C as CartItem, c as cartStore } from '../cart-D4mVX_zx.js';
10
+ import { AddressPair } from '../flows/index.js';
11
+ export { AddressErrors, AddressValue, AffiliateConversionsFlow, AffiliateDownlineFlow, AffiliateLinksFlow, AffiliateStatsFlow, AnswerValue, CartCaptureOptions, CartCheckoutFlow, CartCheckoutOutcome, CartCheckoutPricing, CatalogFlow, CategoryColorOpts, CheckoutFlow, CheckoutOutcome, Conversation, DEFAULT_COLOR_PALETTE, DashboardActivityItem, DashboardData, DashboardRxListItem, DashboardRxStatus, DashboardSubscription, DrugResult, FlatStep, FulfillmentStage, FunnelTelemetry, LIVE_SUBSCRIPTION_STATUSES, MedicationPricing, MedicationSelectFlow, MemberPortalData, MemberPortalRx, MemberPortalSubscription, MessagesThread, PricingBreakdown, ProductDetailFlow, PromoPricing, RefillEvent, RefillView, RegisterFlow, RegisterOutcome, RequestStatus, RxRequestStatus, ShipmentInfo, SignupFlow, SignupOutcome, StageState, SubscribeFlow, SubscribeOutcome, SubscriptionIntakeFlow, SubscriptionIntakeOutcome, SurveyFlow, SurveyOption, SurveyOutcome, SurveyQuestion, SurveyResult, TERMINAL_SUBSCRIPTION_STATUSES, ThreadMessage, TrackerRequest, TrackerRequestStatus, TrackerSubscription, TrackerSubscriptionStatus, TrackerView, TrackingUrlCarrier, US_STATES, US_STATE_OPTIONS, UpdatePaymentMethodFlow, UseAddressPairOptions, UseCheckoutFlowOptions, UseMedicationSelectOptions, UseMessagesThreadOptions, UseSignupFlowOptions, UseSubscribeFlowOptions, UseSubscriptionIntakeFlowOptions, UseSurveyFlowOptions, ValidateAddressOptions, VisibilityCondition, availableStateOptions, availableStates, buildRefillView, buildTrackerView, buildTrackingUrl, captureFunnelEmail, categoryColor, createFunnelTelemetry, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, lowestPrice, lowestSalePrice, markEmailGateAnswered, normalizeState, redeemResumeLink, resetResumeRedemption, restoreCartFromLink, startCartCapture, stateAvailabilityNote, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCatalog, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSubscriptionIntakeFlow, useSurveyFlow, useUpdatePaymentMethodFlow, validateAddress } from '../flows/index.js';
12
+ export { U as UseSurveyV2FlowOptions, u as useSurveyV2Flow } from '../surveyV2-BgQHK0GE.js';
13
+ export { AdminAuthAdapter, AdminDashboard, AdminDashboardProps, AdminTab, AdminTabGroup, AdminToast, AffiliateAuthAdapter, AffiliateForgotPassword, AffiliateForgotPasswordProps, AffiliateLogin, AffiliateLoginProps, AffiliatePortal, AffiliatePortalProps, AffiliatePortalTab, AffiliateRegister, AffiliateRegisterProps, AffiliateResetPassword, AffiliateResetPasswordProps, AffiliateSubTab, AffiliatesProps, CartCheckoutPage, CartCheckoutPageProps, CheckoutPage, CheckoutPageProps, EmailTemplates, ForgotPasswordPage, ForgotPasswordPageProps, LegalLink, MedicationGuideContent, MedicationGuideResolver, MemberAuthAdapter, MemberPortal, MemberPortalBrand, MemberPortalProps, MemberPortalRoutes, PatientDashboardPreview, PatientDashboardPreviewProps, RegisterPage, RegisterPageProps, ResetPasswordPage, ResetPasswordPageProps, SignupPage, SignupPageProps, SubscribePage, SubscribePageProps, SurveyPage, SurveyPageProps, SurveyV2Page, SurveyV2PageProps, UpdatePaymentMethod, UpdatePaymentMethodProps } from '../pages/index.js';
14
+ import { JSX } from 'solid-js';
15
+ export { SurveyV2Flow, SurveyV2Outcome } from '@apextelemed/survey-solid';
16
+
17
+ interface AddressFieldsProps {
18
+ /** Address state from `useAddressPair`. */
19
+ address: AddressPair;
20
+ shippingHeading?: string;
21
+ billingHeading?: string;
22
+ disabled?: boolean;
23
+ /**
24
+ * Render ONE address form and nothing else: no "same as" checkbox, no second
25
+ * billing block, no deliverability check.
26
+ *
27
+ * For screens that collect a billing address on its own — updating the card
28
+ * on file, where there is no shipping address in play. The pair's `shipping`
29
+ * slot carries the values (it is the pair's primary address; the naming is
30
+ * the checkout flow's, not a claim about what is being shipped), so pass
31
+ * `shippingHeading="Billing address"`. Deliverability is deliberately skipped:
32
+ * it answers "can we ship here?", which is meaningless for a billTo, and a
33
+ * card may legitimately bill to a state we don't ship to.
34
+ *
35
+ * Also switches the `autocomplete` tokens from `shipping …` to `billing …`.
36
+ * The pair's primary slot is named "shipping", but in this mode it holds a
37
+ * billing address — leaving the shipping tokens would have browsers autofill
38
+ * the member's delivery address into a billing form, which is exactly the
39
+ * silent mismatch these fields exist to prevent.
40
+ */
41
+ billingOnly?: boolean;
42
+ /**
43
+ * Which half of the pair to render, for flows that split them across steps.
44
+ *
45
+ * A billing address is a property of the CARD, not of the shipment, so a
46
+ * checkout that collects it on the delivery step puts it two clicks away from
47
+ * the field it belongs to — under a heading about prescription delivery, and
48
+ * off-screen at the moment the customer presses Pay. An AVS rejection then
49
+ * arrives as a bare "This transaction has been declined" with the one control
50
+ * that would fix it on a previous step.
51
+ *
52
+ * - `'all'` (default) — shipping, the "same as" checkbox, and billing.
53
+ * - `'shipping'` — the delivery fields and deliverability check only.
54
+ * - `'billing'` — the "same as" checkbox and billing fields only. Render this
55
+ * beside the card entry; it drives the SAME `AddressPair`, so billing keeps
56
+ * mirroring whatever the shipping step captured until the customer edits it.
57
+ *
58
+ * Independent of `billingOnly`, which is for screens with no shipping address
59
+ * at all. Don't combine them.
60
+ */
61
+ parts?: 'all' | 'shipping' | 'billing';
62
+ }
63
+ /**
64
+ * Presentational shipping + billing address form driven by `useAddressPair`.
65
+ * Renders the shipping fields, a "billing same as shipping" checkbox, and —
66
+ * only when that's unchecked — the (pre-filled, editable) billing fields.
67
+ * Uses the host site's primitives; drop it into any checkout-bearing page.
68
+ */
69
+ declare function AddressFields(props: AddressFieldsProps): JSX.Element;
70
+
71
+ export { AddressFields, type AddressFieldsProps, AddressPair };
@@ -0,0 +1,15 @@
1
+ import '../chunk/AN3WPMEP.js';
2
+ export { DEFAULT_COLOR_PALETTE, categoryColor, lowestPrice, lowestSalePrice, restoreCartFromLink, startCartCapture, useCatalog, useMedicationSelect, useProductDetail, useSubscriptionIntakeFlow } from '../chunk/DHII7L5Y.js';
3
+ export { adoptCartId, cartId, fetchCartConfig, fetchResumedCart, postCartSnapshot, readCartToken, resetCartConfigCache, resetCartId, stripCartToken } from '../chunk/J6KNY37T.js';
4
+ export { AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod } from '../chunk/HLXKWRRW.js';
5
+ export { EmbedApiError2 as ApexV2ApiError, EmbedApiError, createEmbedApiClient, disqualificationReasonText, disqualifiedDrugIds, qualifiedDrugIds } from '../chunk/LZWA44KD.js';
6
+ export { LIVE_SUBSCRIPTION_STATUSES, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, availableStateOptions, availableStates, buildRefillView, buildTrackerView, buildTrackingUrl, captureFunnelEmail, createFunnelTelemetry, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isLive, isQuestionVisible, isReconcilable, markEmailGateAnswered, normalizeState, redeemResumeLink, resetResumeRedemption, stateAvailabilityNote, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCheckoutFlow, useDashboardData, useMemberPortalData, useMessagesThread, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/ZMOG2IIC.js';
7
+ export { adoptFunnelSessionId, fetchFunnelConfig, fetchResumedDraft, funnelSessionId, peekFunnelSessionId, postFunnelEvent, readResumeToken, resetFunnelConfigCache, saveFunnelDraft, stripResumeToken } from '../chunk/DS4E7FAI.js';
8
+ export { PrimitivesProvider, usePrimitives } from '../chunk/67KHO66G.js';
9
+ export { defaultPrimitives } from '../chunk/YJEHCCLY.js';
10
+ import '../chunk/NVRAOAVV.js';
11
+ export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/E7722UPF.js';
12
+ export { ApiError, SUPPORT_ATTACHMENT_MAX_BYTES, SUPPORT_ATTACHMENT_MIME_TYPES, addressesApi, adminAffiliatesApi, adminApi, affiliateAuthStorageKey, affiliatePortalApi, apexApi, apiFetch, authApi, authStorageKey, captureAffiliateRef, clearAffiliateRef, clearAffiliateTokens, clearTokens, getAffiliateTokens, getTokens, membersApi, messagesApi, newIdempotencyKey, onTokensCleared, ordersApi, paymentsApi, productsApi, promoCodesApi, readAffiliateRef, setAffiliateTokens, setTokens, subscriptionsApi, supportApi, usersApi } from '../chunk/DY5BJ6UG.js';
13
+ export { configure, getConfig } from '../chunk/5XGPFYIJ.js';
14
+ //# sourceMappingURL=index.js.map
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,311 @@
1
+ import "../chunk/O3QK7YZR.jsx";
2
+ import {
3
+ DEFAULT_COLOR_PALETTE,
4
+ categoryColor,
5
+ lowestPrice,
6
+ lowestSalePrice,
7
+ restoreCartFromLink,
8
+ startCartCapture,
9
+ useCatalog,
10
+ useMedicationSelect,
11
+ useProductDetail,
12
+ useSubscriptionIntakeFlow
13
+ } from "../chunk/L46OKCKG.jsx";
14
+ import {
15
+ adoptCartId,
16
+ cartId,
17
+ fetchCartConfig,
18
+ fetchResumedCart,
19
+ postCartSnapshot,
20
+ readCartToken,
21
+ resetCartConfigCache,
22
+ resetCartId,
23
+ stripCartToken
24
+ } from "../chunk/6TFBQECC.jsx";
25
+ import {
26
+ AddressFields,
27
+ AdminDashboard,
28
+ AffiliateForgotPassword,
29
+ AffiliateLogin,
30
+ AffiliatePortal,
31
+ AffiliateRegister,
32
+ AffiliateResetPassword,
33
+ CartCheckoutPage,
34
+ CheckoutPage,
35
+ EmailTemplates,
36
+ ForgotPasswordPage,
37
+ MemberPortal,
38
+ PatientDashboardPreview,
39
+ RegisterPage,
40
+ ResetPasswordPage,
41
+ SignupPage,
42
+ SubscribePage,
43
+ SurveyPage,
44
+ SurveyV2Page,
45
+ UpdatePaymentMethod
46
+ } from "../chunk/3VEOP7TZ.jsx";
47
+ import {
48
+ EmbedApiError,
49
+ EmbedApiError2,
50
+ createEmbedApiClient,
51
+ disqualificationReasonText,
52
+ disqualifiedDrugIds,
53
+ qualifiedDrugIds
54
+ } from "../chunk/UZCST66N.jsx";
55
+ import {
56
+ LIVE_SUBSCRIPTION_STATUSES,
57
+ TERMINAL_SUBSCRIPTION_STATUSES,
58
+ US_STATES,
59
+ US_STATE_OPTIONS,
60
+ availableStateOptions,
61
+ availableStates,
62
+ buildRefillView,
63
+ buildTrackerView,
64
+ buildTrackingUrl,
65
+ captureFunnelEmail,
66
+ createFunnelTelemetry,
67
+ emailGateAnswered,
68
+ formatCardNumber,
69
+ formatConversationTime,
70
+ formatCvv,
71
+ formatEventDate,
72
+ formatExpiry,
73
+ formatMessageTime,
74
+ formatRelativeTime,
75
+ formatStageDate,
76
+ hasErrors,
77
+ isLive,
78
+ isQuestionVisible,
79
+ isReconcilable,
80
+ markEmailGateAnswered,
81
+ normalizeState,
82
+ redeemResumeLink,
83
+ resetResumeRedemption,
84
+ stateAvailabilityNote,
85
+ useAddressPair,
86
+ useAffiliateConversions,
87
+ useAffiliateDownline,
88
+ useAffiliateLinks,
89
+ useAffiliateStats,
90
+ useCartCheckoutFlow,
91
+ useCheckoutFlow,
92
+ useDashboardData,
93
+ useMemberPortalData,
94
+ useMessagesThread,
95
+ useRegisterFlow,
96
+ useSignupFlow,
97
+ useSubscribeFlow,
98
+ useSurveyFlow,
99
+ useSurveyV2Flow,
100
+ useUpdatePaymentMethodFlow,
101
+ validateAddress
102
+ } from "../chunk/KNTZTYXE.jsx";
103
+ import {
104
+ adoptFunnelSessionId,
105
+ fetchFunnelConfig,
106
+ fetchResumedDraft,
107
+ funnelSessionId,
108
+ peekFunnelSessionId,
109
+ postFunnelEvent,
110
+ readResumeToken,
111
+ resetFunnelConfigCache,
112
+ saveFunnelDraft,
113
+ stripResumeToken
114
+ } from "../chunk/I46Y2J5W.jsx";
115
+ import {
116
+ PrimitivesProvider,
117
+ usePrimitives
118
+ } from "../chunk/J63XPQP4.jsx";
119
+ import {
120
+ defaultPrimitives
121
+ } from "../chunk/2OXI5TKO.jsx";
122
+ import "../chunk/3A3MF7R2.jsx";
123
+ import {
124
+ affiliateAuth_default,
125
+ auth_default,
126
+ cart_default,
127
+ medication_default
128
+ } from "../chunk/KZZSQ7LP.jsx";
129
+ import {
130
+ ApiError,
131
+ SUPPORT_ATTACHMENT_MAX_BYTES,
132
+ SUPPORT_ATTACHMENT_MIME_TYPES,
133
+ addressesApi,
134
+ adminAffiliatesApi,
135
+ adminApi,
136
+ affiliateAuthStorageKey,
137
+ affiliatePortalApi,
138
+ apexApi,
139
+ apiFetch,
140
+ authApi,
141
+ authStorageKey,
142
+ captureAffiliateRef,
143
+ clearAffiliateRef,
144
+ clearAffiliateTokens,
145
+ clearTokens,
146
+ getAffiliateTokens,
147
+ getTokens,
148
+ membersApi,
149
+ messagesApi,
150
+ newIdempotencyKey,
151
+ onTokensCleared,
152
+ ordersApi,
153
+ paymentsApi,
154
+ productsApi,
155
+ promoCodesApi,
156
+ readAffiliateRef,
157
+ setAffiliateTokens,
158
+ setTokens,
159
+ subscriptionsApi,
160
+ supportApi,
161
+ usersApi
162
+ } from "../chunk/V42CGY2S.jsx";
163
+ import {
164
+ configure,
165
+ getConfig
166
+ } from "../chunk/LDZIUFDM.jsx";
167
+ export {
168
+ AddressFields,
169
+ AdminDashboard,
170
+ AffiliateForgotPassword,
171
+ AffiliateLogin,
172
+ AffiliatePortal,
173
+ AffiliateRegister,
174
+ AffiliateResetPassword,
175
+ EmbedApiError2 as ApexV2ApiError,
176
+ ApiError,
177
+ CartCheckoutPage,
178
+ CheckoutPage,
179
+ DEFAULT_COLOR_PALETTE,
180
+ EmailTemplates,
181
+ EmbedApiError,
182
+ ForgotPasswordPage,
183
+ LIVE_SUBSCRIPTION_STATUSES,
184
+ MemberPortal,
185
+ PatientDashboardPreview,
186
+ PrimitivesProvider,
187
+ RegisterPage,
188
+ ResetPasswordPage,
189
+ SUPPORT_ATTACHMENT_MAX_BYTES,
190
+ SUPPORT_ATTACHMENT_MIME_TYPES,
191
+ SignupPage,
192
+ SubscribePage,
193
+ SurveyPage,
194
+ SurveyV2Page,
195
+ TERMINAL_SUBSCRIPTION_STATUSES,
196
+ US_STATES,
197
+ US_STATE_OPTIONS,
198
+ UpdatePaymentMethod,
199
+ addressesApi,
200
+ adminAffiliatesApi,
201
+ adminApi,
202
+ adoptCartId,
203
+ adoptFunnelSessionId,
204
+ affiliateAuthStorageKey,
205
+ affiliateAuth_default as affiliateAuthStore,
206
+ affiliatePortalApi,
207
+ apexApi,
208
+ apiFetch,
209
+ authApi,
210
+ authStorageKey,
211
+ auth_default as authStore,
212
+ availableStateOptions,
213
+ availableStates,
214
+ buildRefillView,
215
+ buildTrackerView,
216
+ buildTrackingUrl,
217
+ captureAffiliateRef,
218
+ captureFunnelEmail,
219
+ cartId,
220
+ cart_default as cartStore,
221
+ categoryColor,
222
+ clearAffiliateRef,
223
+ clearAffiliateTokens,
224
+ clearTokens,
225
+ configure,
226
+ createEmbedApiClient,
227
+ createFunnelTelemetry,
228
+ defaultPrimitives,
229
+ disqualificationReasonText,
230
+ disqualifiedDrugIds,
231
+ emailGateAnswered,
232
+ fetchCartConfig,
233
+ fetchFunnelConfig,
234
+ fetchResumedCart,
235
+ fetchResumedDraft,
236
+ formatCardNumber,
237
+ formatConversationTime,
238
+ formatCvv,
239
+ formatEventDate,
240
+ formatExpiry,
241
+ formatMessageTime,
242
+ formatRelativeTime,
243
+ formatStageDate,
244
+ funnelSessionId,
245
+ getAffiliateTokens,
246
+ getConfig,
247
+ getTokens,
248
+ hasErrors,
249
+ isLive,
250
+ isQuestionVisible,
251
+ isReconcilable,
252
+ lowestPrice,
253
+ lowestSalePrice,
254
+ markEmailGateAnswered,
255
+ medication_default as medicationStore,
256
+ membersApi,
257
+ messagesApi,
258
+ newIdempotencyKey,
259
+ normalizeState,
260
+ onTokensCleared,
261
+ ordersApi,
262
+ paymentsApi,
263
+ peekFunnelSessionId,
264
+ postCartSnapshot,
265
+ postFunnelEvent,
266
+ productsApi,
267
+ promoCodesApi,
268
+ qualifiedDrugIds,
269
+ readAffiliateRef,
270
+ readCartToken,
271
+ readResumeToken,
272
+ redeemResumeLink,
273
+ resetCartConfigCache,
274
+ resetCartId,
275
+ resetFunnelConfigCache,
276
+ resetResumeRedemption,
277
+ restoreCartFromLink,
278
+ saveFunnelDraft,
279
+ setAffiliateTokens,
280
+ setTokens,
281
+ startCartCapture,
282
+ stateAvailabilityNote,
283
+ stripCartToken,
284
+ stripResumeToken,
285
+ subscriptionsApi,
286
+ supportApi,
287
+ useAddressPair,
288
+ useAffiliateConversions,
289
+ useAffiliateDownline,
290
+ useAffiliateLinks,
291
+ useAffiliateStats,
292
+ useCartCheckoutFlow,
293
+ useCatalog,
294
+ useCheckoutFlow,
295
+ useDashboardData,
296
+ useMedicationSelect,
297
+ useMemberPortalData,
298
+ useMessagesThread,
299
+ usePrimitives,
300
+ useProductDetail,
301
+ useRegisterFlow,
302
+ useSignupFlow,
303
+ useSubscribeFlow,
304
+ useSubscriptionIntakeFlow,
305
+ useSurveyFlow,
306
+ useSurveyV2Flow,
307
+ useUpdatePaymentMethodFlow,
308
+ usersApi,
309
+ validateAddress
310
+ };
311
+ //# sourceMappingURL=index.jsx.map