@apextelemed/partner-core 0.10.0-dev.24 → 0.11.0-dev.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/api/index.js +4 -4
- package/dist/api/index.jsx +4 -4
- package/dist/chunk/2IFPDU4D.js +55 -0
- package/dist/chunk/2IFPDU4D.js.map +1 -0
- package/dist/chunk/{BNH4UOGN.js → 5W6SC6JO.js} +7 -7
- package/dist/chunk/{BNH4UOGN.js.map → 5W6SC6JO.js.map} +1 -1
- package/dist/chunk/{M2LV5JQD.js → 6K2CMG26.js} +4 -4
- package/dist/chunk/{M2LV5JQD.js.map → 6K2CMG26.js.map} +1 -1
- package/dist/chunk/{RRKAKQ77.jsx → 6OP52OQK.jsx} +3 -3
- package/dist/chunk/{VF7FTWCG.jsx → A3XK3UAQ.jsx} +3 -3
- package/dist/chunk/{XZXPLS3K.js → A56QXD45.js} +4 -4
- package/dist/chunk/{XZXPLS3K.js.map → A56QXD45.js.map} +1 -1
- package/dist/chunk/{XW4PEQPI.jsx → ALS5FXNC.jsx} +3 -3
- package/dist/chunk/{7MCMXXYQ.js → CLPOTUII.js} +3 -3
- package/dist/chunk/{7MCMXXYQ.js.map → CLPOTUII.js.map} +1 -1
- package/dist/chunk/{EZG74SQL.jsx → OBFYSGB6.jsx} +2 -2
- package/dist/chunk/{NHNMRJL6.js → POIS4SBW.js} +847 -447
- package/dist/chunk/POIS4SBW.js.map +1 -0
- package/dist/chunk/{FA4D2S5A.js → PT6E3DLE.js} +4 -4
- package/dist/chunk/{FA4D2S5A.js.map → PT6E3DLE.js.map} +1 -1
- package/dist/chunk/QVZ7BRNO.jsx +60 -0
- package/dist/chunk/{CLNLTAG7.jsx → RYISMGS2.jsx} +6 -6
- package/dist/chunk/{VG35MW6B.jsx → SIXC23N6.jsx} +5 -5
- package/dist/chunk/{JKUWPGEW.js → WL6HP6BE.js} +6 -6
- package/dist/chunk/{JKUWPGEW.js.map → WL6HP6BE.js.map} +1 -1
- package/dist/chunk/{FM3JH2ZD.jsx → WO4H2CXD.jsx} +572 -389
- package/dist/config/index.js +1 -1
- package/dist/config/index.jsx +1 -1
- package/dist/flows/index.js +7 -7
- package/dist/flows/index.jsx +7 -7
- package/dist/index/index.js +8 -8
- package/dist/index/index.jsx +8 -8
- package/dist/pages/index.d.ts +1 -1
- package/dist/pages/index.js +6 -6
- package/dist/pages/index.jsx +6 -6
- package/dist/stores/index.js +3 -3
- package/dist/stores/index.jsx +3 -3
- package/package.json +1 -1
- package/dist/chunk/5XGPFYIJ.js +0 -26
- package/dist/chunk/5XGPFYIJ.js.map +0 -1
- package/dist/chunk/LDZIUFDM.jsx +0 -31
- package/dist/chunk/NHNMRJL6.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { disqualificationReasonText, qualifiedDrugIds } from './LZWA44KD.js';
|
|
2
|
-
import { SUPPORT_CATEGORIES, useSurveyFlow, reconcileCartAgainstCatalog, resolveSurveyV2DrugIntent, emailGateAnswered, redeemResumeLink, useSurveyV2Flow, availableStateOptions, US_STATE_OPTIONS, useCheckoutFlow, catalogUnavailableMessage, useCartCheckoutFlow, useSignupFlow, useRegisterFlow, useSubscribeFlow, useDashboardData, useUpdatePaymentMethodFlow, useMemberPortalData, useMessagesThread, captureFunnelEmail, markEmailGateAnswered, isCatalogItemId, subscribeToSupportTopic, useAffiliateStats, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, stateAvailabilityNote, hasStateRestrictions, uploadPrescriptionPhoto, deriveAttention, deriveJourney, buildTimeline, lifecycleReason, accountSource, intakeEvidence, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, classifyCatalogError, groupDrugsByPharmacy, useProductCatalogEditor, skuBindingModeFor, isCssColorValue, categoryLabel, formatConversationTime, buildTrackerView, ACCOUNT_SOURCE_LABEL, fmtDay, createCatalogProduct, addCatalogItemAsProduct, applyPriceDrafts, resolveStrengthPrices, invalidDraftKeys, orphanKey, ORPHAN_REASON, READINESS_LABEL, formatCalendarDate, formatMessageTime, formatEventDate, formatStageDate, offerSummaryText, LIFECYCLE_TONE, buildTrackingUrl, buildStrengthRows, isImageAttachment, buildRefillView, toTrackerRequest } from './
|
|
3
|
-
import { fetchFunnelConfig } from './
|
|
2
|
+
import { SUPPORT_CATEGORIES, useSurveyFlow, reconcileCartAgainstCatalog, resolveSurveyV2DrugIntent, emailGateAnswered, redeemResumeLink, useSurveyV2Flow, availableStateOptions, US_STATE_OPTIONS, useCheckoutFlow, catalogUnavailableMessage, useCartCheckoutFlow, useSignupFlow, useRegisterFlow, useSubscribeFlow, useDashboardData, useUpdatePaymentMethodFlow, useMemberPortalData, useMessagesThread, captureFunnelEmail, markEmailGateAnswered, isCatalogItemId, subscribeToSupportTopic, useAffiliateStats, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, stateAvailabilityNote, hasStateRestrictions, uploadPrescriptionPhoto, deriveAttention, deriveJourney, buildTimeline, lifecycleReason, accountSource, intakeEvidence, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, classifyCatalogError, groupDrugsByPharmacy, useProductCatalogEditor, skuBindingModeFor, isCssColorValue, categoryLabel, formatConversationTime, buildTrackerView, ACCOUNT_SOURCE_LABEL, fmtDay, createCatalogProduct, addCatalogItemAsProduct, applyPriceDrafts, resolveStrengthPrices, invalidDraftKeys, orphanKey, ORPHAN_REASON, READINESS_LABEL, formatCalendarDate, formatMessageTime, formatEventDate, formatStageDate, offerSummaryText, LIFECYCLE_TONE, buildTrackingUrl, buildStrengthRows, isImageAttachment, buildRefillView, toTrackerRequest } from './WL6HP6BE.js';
|
|
3
|
+
import { fetchFunnelConfig } from './6K2CMG26.js';
|
|
4
4
|
import { usePrimitives } from './67KHO66G.js';
|
|
5
|
-
import { cart_default, auth_default, affiliateAuth_default } from './
|
|
6
|
-
import { usersApi, adminApi, membersApi, offersApi, affiliatePortalApi, authApi, adminAffiliatesApi, apiFetch, apexApi, adminCatalogApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, ApiError, subscriptionsApi } from './
|
|
5
|
+
import { cart_default, auth_default, affiliateAuth_default } from './PT6E3DLE.js';
|
|
6
|
+
import { usersApi, adminApi, membersApi, offersApi, affiliatePortalApi, authApi, adminAffiliatesApi, apiFetch, apexApi, adminCatalogApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, ApiError, subscriptionsApi } from './CLPOTUII.js';
|
|
7
7
|
import { delegateEvents, createComponent, insert, memo, effect, setStyleProperty, mergeProps, use, setAttribute, addEventListener, style, className, Dynamic, Portal, template } from 'solid-js/web';
|
|
8
8
|
import { createContext, createEffect, on, Show, For, createResource, createSignal, createMemo, untrack, ErrorBoundary, Switch, Match, onMount, onCleanup, useContext, Index } from 'solid-js';
|
|
9
9
|
import { isQuestionVisible } from '@apextelemed/survey-core';
|
|
@@ -21829,18 +21829,409 @@ function Funnel() {
|
|
|
21829
21829
|
})();
|
|
21830
21830
|
}
|
|
21831
21831
|
delegateEvents(["click"]);
|
|
21832
|
-
var _tmpl$370 = /* @__PURE__ */ template(`<
|
|
21833
|
-
var _tmpl$2106 = /* @__PURE__ */ template(`<div
|
|
21834
|
-
var _tmpl$371 = /* @__PURE__ */ template(`<
|
|
21835
|
-
var _tmpl$459 = /* @__PURE__ */ template(`<
|
|
21836
|
-
var _tmpl$549 = /* @__PURE__ */ template(`<div
|
|
21837
|
-
var _tmpl$645 = /* @__PURE__ */ template(`<div
|
|
21838
|
-
var _tmpl$740 = /* @__PURE__ */ template(`<
|
|
21839
|
-
var _tmpl$835 = /* @__PURE__ */ template(`<
|
|
21840
|
-
var _tmpl$932 = /* @__PURE__ */ template(`<
|
|
21841
|
-
var _tmpl$028 = /* @__PURE__ */ template(`<
|
|
21842
|
-
var _tmpl$1109 = /* @__PURE__ */ template(`<span
|
|
21843
|
-
var _tmpl$1022 = /* @__PURE__ */ template(`<
|
|
21832
|
+
var _tmpl$370 = /* @__PURE__ */ template(`<div>`);
|
|
21833
|
+
var _tmpl$2106 = /* @__PURE__ */ template(`<div style=min-width:7.5rem><div style=font-size:0.75rem;text-transform:uppercase;letter-spacing:0.04em></div><div class=app-admin-heading style=font-size:1.375rem;font-weight:600;line-height:1.3>`);
|
|
21834
|
+
var _tmpl$371 = /* @__PURE__ */ template(`<div style="display:flex;flex-wrap:wrap;gap:1.25rem 2rem;margin-bottom:1.25rem">`);
|
|
21835
|
+
var _tmpl$459 = /* @__PURE__ */ template(`<table class=app-admin-table style=margin-bottom:1rem><thead><tr><th>Email</th><th>Sent</th><th>Link followed</th><th>Bought after this email</th><th>Unsubscribed after it</th></tr></thead><tbody>`);
|
|
21836
|
+
var _tmpl$549 = /* @__PURE__ */ template(`<div> of the <!> bought before any email reached them, so no email is credited above.`);
|
|
21837
|
+
var _tmpl$645 = /* @__PURE__ */ template(`<div>No longer in it: <!>.`);
|
|
21838
|
+
var _tmpl$740 = /* @__PURE__ */ template(`<div style=display:grid;gap:0.375rem>`);
|
|
21839
|
+
var _tmpl$835 = /* @__PURE__ */ template(`<h3 class=app-admin-heading style="font-size:0.875rem;font-weight:600;margin:1.25rem 0 0.5rem">Who bought`);
|
|
21840
|
+
var _tmpl$932 = /* @__PURE__ */ template(`<th>Claimed the offer`);
|
|
21841
|
+
var _tmpl$028 = /* @__PURE__ */ template(`<table class=app-admin-table><thead><tr><th>Person</th><th>Bought</th><th>Last email before buying</th><th>Followed a link</th><th>Paid since</th></tr></thead><tbody>`);
|
|
21842
|
+
var _tmpl$1109 = /* @__PURE__ */ template(`<span>`);
|
|
21843
|
+
var _tmpl$1022 = /* @__PURE__ */ template(`<p style=margin:0>Nobody has been enrolled in this sequence yet.`);
|
|
21844
|
+
var _tmpl$1123 = /* @__PURE__ */ template(`<p style="margin:0 0 1rem">No emails have gone out yet.`);
|
|
21845
|
+
var _tmpl$1219 = /* @__PURE__ */ template(`<tr><td data-label=Email style=min-width:14rem><strong>.</strong> </td><td data-label=Sent></td><td data-label="Link followed"></td><td data-label="Bought after this email"></td><td data-label="Unsubscribed after it">`);
|
|
21846
|
+
var _tmpl$1317 = /* @__PURE__ */ template(`<span>a step since removed`);
|
|
21847
|
+
var _tmpl$1417 = /* @__PURE__ */ template(`<div>Offer: <!> granted \u2014 <!> open, <!> claimed, <!> expired<!>.`);
|
|
21848
|
+
var _tmpl$1517 = /* @__PURE__ */ template(`<td data-label="Claimed the offer">`);
|
|
21849
|
+
var _tmpl$1617 = /* @__PURE__ */ template(`<tr><td data-label=Person></td><td data-label=Bought></td><td data-label="Last email before buying"></td><td data-label="Followed a link"></td><td data-label="Paid since">`);
|
|
21850
|
+
var _tmpl$1717 = /* @__PURE__ */ template(`<span>none yet`);
|
|
21851
|
+
var _tmpl$1816 = /* @__PURE__ */ template(`<span>No`);
|
|
21852
|
+
var _tmpl$1914 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-sm">Open Sequences`);
|
|
21853
|
+
var _tmpl$2014 = /* @__PURE__ */ template(`<div style=display:flex;justify-content:flex-end;gap:0.5rem;margin-bottom:0.75rem><button type=button class="app-admin-btn app-admin-btn-sm">Refresh`);
|
|
21854
|
+
var _tmpl$2118 = /* @__PURE__ */ template(`<div style=display:grid;gap:1.25rem>`);
|
|
21855
|
+
var _tmpl$2214 = /* @__PURE__ */ template(`<div style=margin-top:1.25rem;display:grid;gap:0.25rem><div>A purchase counts if it happened while the person was in the sequence, or within <!> days of their last email from it.</div><div>A link counts as followed when the person\u2019s browser opens the site from the email. Emails sent before link tracking was added show none.</div><div>Paid is every settled payment from those buyers since they were enrolled, not only the first.`);
|
|
21856
|
+
var muted = {
|
|
21857
|
+
color: "var(--app-admin-fg-muted)",
|
|
21858
|
+
"font-size": "0.8125rem"
|
|
21859
|
+
};
|
|
21860
|
+
function share(part, whole) {
|
|
21861
|
+
if (whole <= 0 || part <= 0) return String(part);
|
|
21862
|
+
return `${part} (${Math.round(part / whole * 100)}%)`;
|
|
21863
|
+
}
|
|
21864
|
+
function money(cents) {
|
|
21865
|
+
return (cents / 100).toLocaleString("en-US", {
|
|
21866
|
+
style: "currency",
|
|
21867
|
+
currency: "USD"
|
|
21868
|
+
});
|
|
21869
|
+
}
|
|
21870
|
+
function Figure(props) {
|
|
21871
|
+
return (() => {
|
|
21872
|
+
var _el$ = _tmpl$2106(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
21873
|
+
insert(_el$2, () => props.label);
|
|
21874
|
+
insert(_el$3, () => props.value);
|
|
21875
|
+
insert(_el$, createComponent(Show, {
|
|
21876
|
+
get when() {
|
|
21877
|
+
return props.note;
|
|
21878
|
+
},
|
|
21879
|
+
get children() {
|
|
21880
|
+
var _el$4 = _tmpl$370();
|
|
21881
|
+
insert(_el$4, () => props.note);
|
|
21882
|
+
effect((_$p) => style(_el$4, muted, _$p));
|
|
21883
|
+
return _el$4;
|
|
21884
|
+
}
|
|
21885
|
+
}), null);
|
|
21886
|
+
effect((_$p) => style(_el$2, {
|
|
21887
|
+
...muted
|
|
21888
|
+
}, _$p));
|
|
21889
|
+
return _el$;
|
|
21890
|
+
})();
|
|
21891
|
+
}
|
|
21892
|
+
var LEFT_ORDER = ["bought", "finished", "unsubscribed", "offer_expired", "not_eligible", "left_segment", "admin"];
|
|
21893
|
+
function SequenceCard(props) {
|
|
21894
|
+
const r = () => props.report;
|
|
21895
|
+
const p = () => r().people;
|
|
21896
|
+
const beforeAnyEmail = () => p().bought - p().boughtAfterEmail;
|
|
21897
|
+
const leftParts = () => LEFT_ORDER.filter((k) => (r().left[k] ?? 0) > 0).map((k) => `${r().left[k]} ${REMOVED_REASON_LABEL[k].toLowerCase()}`);
|
|
21898
|
+
return createComponent(Section, {
|
|
21899
|
+
get title() {
|
|
21900
|
+
return r().sequence.name;
|
|
21901
|
+
},
|
|
21902
|
+
get action() {
|
|
21903
|
+
return (() => {
|
|
21904
|
+
var _el$27 = _tmpl$1109();
|
|
21905
|
+
insert(_el$27, () => r().sequence.autoSend ? "Sending automatically" : "Sent on review");
|
|
21906
|
+
effect((_$p) => style(_el$27, muted, _$p));
|
|
21907
|
+
return _el$27;
|
|
21908
|
+
})();
|
|
21909
|
+
},
|
|
21910
|
+
get children() {
|
|
21911
|
+
return createComponent(Show, {
|
|
21912
|
+
get when() {
|
|
21913
|
+
return p().enrolled > 0;
|
|
21914
|
+
},
|
|
21915
|
+
get fallback() {
|
|
21916
|
+
return (() => {
|
|
21917
|
+
var _el$28 = _tmpl$1022();
|
|
21918
|
+
effect((_$p) => style(_el$28, {
|
|
21919
|
+
...muted
|
|
21920
|
+
}, _$p));
|
|
21921
|
+
return _el$28;
|
|
21922
|
+
})();
|
|
21923
|
+
},
|
|
21924
|
+
get children() {
|
|
21925
|
+
return [(() => {
|
|
21926
|
+
var _el$5 = _tmpl$371();
|
|
21927
|
+
insert(_el$5, createComponent(Figure, {
|
|
21928
|
+
label: "Enrolled",
|
|
21929
|
+
get value() {
|
|
21930
|
+
return String(p().enrolled);
|
|
21931
|
+
},
|
|
21932
|
+
get note() {
|
|
21933
|
+
return `${p().active} still in it`;
|
|
21934
|
+
}
|
|
21935
|
+
}), null);
|
|
21936
|
+
insert(_el$5, createComponent(Figure, {
|
|
21937
|
+
label: "Emailed",
|
|
21938
|
+
get value() {
|
|
21939
|
+
return share(p().mailed, p().enrolled);
|
|
21940
|
+
},
|
|
21941
|
+
get note() {
|
|
21942
|
+
return `${r().emailsSent} email${r().emailsSent === 1 ? "" : "s"} sent`;
|
|
21943
|
+
}
|
|
21944
|
+
}), null);
|
|
21945
|
+
insert(_el$5, createComponent(Figure, {
|
|
21946
|
+
label: "Followed a link",
|
|
21947
|
+
get value() {
|
|
21948
|
+
return share(p().clicked, p().mailed);
|
|
21949
|
+
},
|
|
21950
|
+
note: "of people emailed"
|
|
21951
|
+
}), null);
|
|
21952
|
+
insert(_el$5, createComponent(Figure, {
|
|
21953
|
+
label: "Bought",
|
|
21954
|
+
get value() {
|
|
21955
|
+
return share(p().bought, p().enrolled);
|
|
21956
|
+
},
|
|
21957
|
+
get note() {
|
|
21958
|
+
return memo(() => p().bought > 0)() ? `${p().boughtAfterClick} after following a link` : "of people enrolled";
|
|
21959
|
+
}
|
|
21960
|
+
}), null);
|
|
21961
|
+
insert(_el$5, createComponent(Figure, {
|
|
21962
|
+
label: "Paid",
|
|
21963
|
+
get value() {
|
|
21964
|
+
return money(r().money.paidCents);
|
|
21965
|
+
},
|
|
21966
|
+
get note() {
|
|
21967
|
+
return memo(() => r().money.refundedCents > 0)() ? `plus ${money(r().money.refundedCents)} since refunded` : `${r().money.payments} payment${r().money.payments === 1 ? "" : "s"}`;
|
|
21968
|
+
}
|
|
21969
|
+
}), null);
|
|
21970
|
+
insert(_el$5, createComponent(Show, {
|
|
21971
|
+
get when() {
|
|
21972
|
+
return r().offer;
|
|
21973
|
+
},
|
|
21974
|
+
children: (offer) => createComponent(Figure, {
|
|
21975
|
+
get label() {
|
|
21976
|
+
return `${offer().amount} offer claimed`;
|
|
21977
|
+
},
|
|
21978
|
+
get value() {
|
|
21979
|
+
return share(offer().states.claimed, offer().granted);
|
|
21980
|
+
},
|
|
21981
|
+
get note() {
|
|
21982
|
+
return `${money(r().money.discountCents)} given so far`;
|
|
21983
|
+
}
|
|
21984
|
+
})
|
|
21985
|
+
}), null);
|
|
21986
|
+
return _el$5;
|
|
21987
|
+
})(), createComponent(Show, {
|
|
21988
|
+
get when() {
|
|
21989
|
+
return r().emailsSent > 0;
|
|
21990
|
+
},
|
|
21991
|
+
get fallback() {
|
|
21992
|
+
return (() => {
|
|
21993
|
+
var _el$29 = _tmpl$1123();
|
|
21994
|
+
effect((_$p) => style(_el$29, {
|
|
21995
|
+
...muted
|
|
21996
|
+
}, _$p));
|
|
21997
|
+
return _el$29;
|
|
21998
|
+
})();
|
|
21999
|
+
},
|
|
22000
|
+
get children() {
|
|
22001
|
+
var _el$6 = _tmpl$459(), _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling;
|
|
22002
|
+
insert(_el$8, createComponent(For, {
|
|
22003
|
+
get each() {
|
|
22004
|
+
return r().steps;
|
|
22005
|
+
},
|
|
22006
|
+
children: (s) => (() => {
|
|
22007
|
+
var _el$30 = _tmpl$1219(), _el$31 = _el$30.firstChild, _el$32 = _el$31.firstChild, _el$33 = _el$32.firstChild; _el$32.nextSibling; var _el$35 = _el$31.nextSibling, _el$36 = _el$35.nextSibling, _el$37 = _el$36.nextSibling, _el$38 = _el$37.nextSibling;
|
|
22008
|
+
insert(_el$32, () => s.stepIndex + 1, _el$33);
|
|
22009
|
+
insert(_el$31, () => s.templateName ?? (() => {
|
|
22010
|
+
var _el$39 = _tmpl$1317();
|
|
22011
|
+
effect((_$p) => style(_el$39, muted, _$p));
|
|
22012
|
+
return _el$39;
|
|
22013
|
+
})(), null);
|
|
22014
|
+
insert(_el$35, () => s.sent);
|
|
22015
|
+
insert(_el$36, () => share(s.clicked, s.sent));
|
|
22016
|
+
insert(_el$37, () => share(s.bought, s.sent));
|
|
22017
|
+
insert(_el$38, () => share(s.unsubscribed, s.sent));
|
|
22018
|
+
return _el$30;
|
|
22019
|
+
})()
|
|
22020
|
+
}));
|
|
22021
|
+
return _el$6;
|
|
22022
|
+
}
|
|
22023
|
+
}), (() => {
|
|
22024
|
+
var _el$9 = _tmpl$740();
|
|
22025
|
+
insert(_el$9, createComponent(Show, {
|
|
22026
|
+
get when() {
|
|
22027
|
+
return beforeAnyEmail() > 0;
|
|
22028
|
+
},
|
|
22029
|
+
get children() {
|
|
22030
|
+
var _el$0 = _tmpl$549(), _el$1 = _el$0.firstChild, _el$11 = _el$1.nextSibling; _el$11.nextSibling;
|
|
22031
|
+
insert(_el$0, beforeAnyEmail, _el$1);
|
|
22032
|
+
insert(_el$0, () => p().bought, _el$11);
|
|
22033
|
+
return _el$0;
|
|
22034
|
+
}
|
|
22035
|
+
}), null);
|
|
22036
|
+
insert(_el$9, createComponent(Show, {
|
|
22037
|
+
get when() {
|
|
22038
|
+
return leftParts().length > 0;
|
|
22039
|
+
},
|
|
22040
|
+
get children() {
|
|
22041
|
+
var _el$12 = _tmpl$645(), _el$13 = _el$12.firstChild, _el$15 = _el$13.nextSibling; _el$15.nextSibling;
|
|
22042
|
+
insert(_el$12, () => leftParts().join(", "), _el$15);
|
|
22043
|
+
return _el$12;
|
|
22044
|
+
}
|
|
22045
|
+
}), null);
|
|
22046
|
+
insert(_el$9, createComponent(Show, {
|
|
22047
|
+
get when() {
|
|
22048
|
+
return r().offer;
|
|
22049
|
+
},
|
|
22050
|
+
children: (offer) => (() => {
|
|
22051
|
+
var _el$40 = _tmpl$1417(), _el$41 = _el$40.firstChild, _el$47 = _el$41.nextSibling, _el$42 = _el$47.nextSibling, _el$48 = _el$42.nextSibling, _el$43 = _el$48.nextSibling, _el$49 = _el$43.nextSibling, _el$44 = _el$49.nextSibling, _el$50 = _el$44.nextSibling, _el$45 = _el$50.nextSibling, _el$51 = _el$45.nextSibling; _el$51.nextSibling;
|
|
22052
|
+
insert(_el$40, () => offer().granted, _el$47);
|
|
22053
|
+
insert(_el$40, () => offer().states.open, _el$48);
|
|
22054
|
+
insert(_el$40, () => offer().states.claimed, _el$49);
|
|
22055
|
+
insert(_el$40, () => offer().states.expired, _el$50);
|
|
22056
|
+
insert(_el$40, createComponent(Show, {
|
|
22057
|
+
get when() {
|
|
22058
|
+
return offer().states.revoked > 0;
|
|
22059
|
+
},
|
|
22060
|
+
get children() {
|
|
22061
|
+
return [", ", memo(() => offer().states.revoked), " revoked"];
|
|
22062
|
+
}
|
|
22063
|
+
}), _el$51);
|
|
22064
|
+
return _el$40;
|
|
22065
|
+
})()
|
|
22066
|
+
}), null);
|
|
22067
|
+
effect((_$p) => style(_el$9, {
|
|
22068
|
+
...muted
|
|
22069
|
+
}, _$p));
|
|
22070
|
+
return _el$9;
|
|
22071
|
+
})(), createComponent(Show, {
|
|
22072
|
+
get when() {
|
|
22073
|
+
return r().buyers.length > 0;
|
|
22074
|
+
},
|
|
22075
|
+
get children() {
|
|
22076
|
+
return [_tmpl$835(), (() => {
|
|
22077
|
+
var _el$17 = _tmpl$028(), _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$19.firstChild, _el$21 = _el$20.nextSibling, _el$22 = _el$21.nextSibling, _el$23 = _el$22.nextSibling, _el$25 = _el$23.nextSibling, _el$26 = _el$18.nextSibling;
|
|
22078
|
+
insert(_el$19, createComponent(Show, {
|
|
22079
|
+
get when() {
|
|
22080
|
+
return r().offer;
|
|
22081
|
+
},
|
|
22082
|
+
get children() {
|
|
22083
|
+
return _tmpl$932();
|
|
22084
|
+
}
|
|
22085
|
+
}), _el$25);
|
|
22086
|
+
insert(_el$26, createComponent(For, {
|
|
22087
|
+
get each() {
|
|
22088
|
+
return r().buyers;
|
|
22089
|
+
},
|
|
22090
|
+
children: (b) => (() => {
|
|
22091
|
+
var _el$52 = _tmpl$1617(), _el$53 = _el$52.firstChild, _el$54 = _el$53.nextSibling, _el$55 = _el$54.nextSibling, _el$56 = _el$55.nextSibling, _el$58 = _el$56.nextSibling;
|
|
22092
|
+
insert(_el$53, () => b.email);
|
|
22093
|
+
insert(_el$54, () => formatDate(b.boughtAt));
|
|
22094
|
+
insert(_el$55, (() => {
|
|
22095
|
+
var _c$ = memo(() => b.lastStepIndex === null);
|
|
22096
|
+
return () => _c$() ? (() => {
|
|
22097
|
+
var _el$59 = _tmpl$1717();
|
|
22098
|
+
effect((_$p) => style(_el$59, muted, _$p));
|
|
22099
|
+
return _el$59;
|
|
22100
|
+
})() : `Email ${b.lastStepIndex + 1}`;
|
|
22101
|
+
})());
|
|
22102
|
+
insert(_el$56, (() => {
|
|
22103
|
+
var _c$2 = memo(() => !!b.clicked);
|
|
22104
|
+
return () => _c$2() ? "Yes" : (() => {
|
|
22105
|
+
var _el$60 = _tmpl$1816();
|
|
22106
|
+
effect((_$p) => style(_el$60, muted, _$p));
|
|
22107
|
+
return _el$60;
|
|
22108
|
+
})();
|
|
22109
|
+
})());
|
|
22110
|
+
insert(_el$52, createComponent(Show, {
|
|
22111
|
+
get when() {
|
|
22112
|
+
return r().offer;
|
|
22113
|
+
},
|
|
22114
|
+
get children() {
|
|
22115
|
+
var _el$57 = _tmpl$1517();
|
|
22116
|
+
insert(_el$57, (() => {
|
|
22117
|
+
var _c$3 = memo(() => !!b.claimedOffer);
|
|
22118
|
+
return () => _c$3() ? "Yes" : (() => {
|
|
22119
|
+
var _el$61 = _tmpl$1816();
|
|
22120
|
+
effect((_$p) => style(_el$61, muted, _$p));
|
|
22121
|
+
return _el$61;
|
|
22122
|
+
})();
|
|
22123
|
+
})());
|
|
22124
|
+
return _el$57;
|
|
22125
|
+
}
|
|
22126
|
+
}), _el$58);
|
|
22127
|
+
insert(_el$58, () => money(b.paidCents));
|
|
22128
|
+
return _el$52;
|
|
22129
|
+
})()
|
|
22130
|
+
}));
|
|
22131
|
+
return _el$17;
|
|
22132
|
+
})()];
|
|
22133
|
+
}
|
|
22134
|
+
})];
|
|
22135
|
+
}
|
|
22136
|
+
});
|
|
22137
|
+
}
|
|
22138
|
+
});
|
|
22139
|
+
}
|
|
22140
|
+
function SequenceResults() {
|
|
22141
|
+
const nav = useAdminNav();
|
|
22142
|
+
const [report, {
|
|
22143
|
+
refetch
|
|
22144
|
+
}] = createResource(() => apiFetch("/admin/funnel/report"));
|
|
22145
|
+
const days = () => report()?.sequences[0]?.attributionDays ?? 30;
|
|
22146
|
+
return (() => {
|
|
22147
|
+
var _el$62 = _tmpl$370();
|
|
22148
|
+
insert(_el$62, createComponent(PageTitle, {
|
|
22149
|
+
subtitle: "What each sequence has achieved. \u201CBought\u201D means bought after being enrolled; it does not show the email was the reason.",
|
|
22150
|
+
children: "Results"
|
|
22151
|
+
}), null);
|
|
22152
|
+
insert(_el$62, createComponent(Show, {
|
|
22153
|
+
get when() {
|
|
22154
|
+
return !report.error;
|
|
22155
|
+
},
|
|
22156
|
+
get fallback() {
|
|
22157
|
+
return createComponent(EmptyState, {
|
|
22158
|
+
message: "Could not load the results. Try again in a moment."
|
|
22159
|
+
});
|
|
22160
|
+
},
|
|
22161
|
+
get children() {
|
|
22162
|
+
return createComponent(Show, {
|
|
22163
|
+
get when() {
|
|
22164
|
+
return report();
|
|
22165
|
+
},
|
|
22166
|
+
get fallback() {
|
|
22167
|
+
return createComponent(LoadingSpinner, {});
|
|
22168
|
+
},
|
|
22169
|
+
get children() {
|
|
22170
|
+
return createComponent(Show, {
|
|
22171
|
+
get when() {
|
|
22172
|
+
return report().sequences.length > 0;
|
|
22173
|
+
},
|
|
22174
|
+
get fallback() {
|
|
22175
|
+
return createComponent(EmptyState, {
|
|
22176
|
+
message: "No sequences yet. Results appear here once a sequence has people in it."
|
|
22177
|
+
});
|
|
22178
|
+
},
|
|
22179
|
+
get children() {
|
|
22180
|
+
return [(() => {
|
|
22181
|
+
var _el$63 = _tmpl$2014(), _el$65 = _el$63.firstChild;
|
|
22182
|
+
insert(_el$63, createComponent(Show, {
|
|
22183
|
+
get when() {
|
|
22184
|
+
return nav?.isTabEnabled("sequences");
|
|
22185
|
+
},
|
|
22186
|
+
get children() {
|
|
22187
|
+
var _el$64 = _tmpl$1914();
|
|
22188
|
+
_el$64.$$click = () => nav.selectTab("sequences");
|
|
22189
|
+
return _el$64;
|
|
22190
|
+
}
|
|
22191
|
+
}), _el$65);
|
|
22192
|
+
_el$65.$$click = () => void refetch();
|
|
22193
|
+
return _el$63;
|
|
22194
|
+
})(), (() => {
|
|
22195
|
+
var _el$66 = _tmpl$2118();
|
|
22196
|
+
insert(_el$66, createComponent(For, {
|
|
22197
|
+
get each() {
|
|
22198
|
+
return report().sequences;
|
|
22199
|
+
},
|
|
22200
|
+
children: (r) => createComponent(SequenceCard, {
|
|
22201
|
+
report: r
|
|
22202
|
+
})
|
|
22203
|
+
}));
|
|
22204
|
+
return _el$66;
|
|
22205
|
+
})(), (() => {
|
|
22206
|
+
var _el$67 = _tmpl$2214(), _el$68 = _el$67.firstChild, _el$69 = _el$68.firstChild, _el$71 = _el$69.nextSibling; _el$71.nextSibling;
|
|
22207
|
+
insert(_el$68, days, _el$71);
|
|
22208
|
+
effect((_$p) => style(_el$67, {
|
|
22209
|
+
...muted
|
|
22210
|
+
}, _$p));
|
|
22211
|
+
return _el$67;
|
|
22212
|
+
})()];
|
|
22213
|
+
}
|
|
22214
|
+
});
|
|
22215
|
+
}
|
|
22216
|
+
});
|
|
22217
|
+
}
|
|
22218
|
+
}), null);
|
|
22219
|
+
return _el$62;
|
|
22220
|
+
})();
|
|
22221
|
+
}
|
|
22222
|
+
delegateEvents(["click"]);
|
|
22223
|
+
var _tmpl$375 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;margin:0.25rem 0 0">`);
|
|
22224
|
+
var _tmpl$2107 = /* @__PURE__ */ template(`<div class=app-admin-card style=margin-top:1.25rem><div style="padding:1rem 1.25rem;border-bottom:1px solid var(--app-admin-border-soft);display:flex;justify-content:space-between;align-items:center;gap:1rem"><div><h2 class=app-admin-heading style=font-size:0.9375rem;font-weight:600;margin:0></h2></div></div><div style="padding:1rem 1.25rem;display:grid;gap:0.875rem">`);
|
|
22225
|
+
var _tmpl$376 = /* @__PURE__ */ template(`<label style=display:flex;align-items:center;gap:0.5rem;font-size:0.875rem;cursor:pointer><input type=checkbox>`);
|
|
22226
|
+
var _tmpl$460 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm">`);
|
|
22227
|
+
var _tmpl$550 = /* @__PURE__ */ template(`<div><div style=margin-bottom:0.375rem>Recipients</div><div style=display:flex;flex-wrap:wrap;gap:0.375rem;margin-bottom:0.5rem></div><div style=display:flex;gap:0.5rem;max-width:28rem><input type=email class=app-admin-input placeholder=admin@example.com aria-label="Add recipient"><button type=button class="app-admin-btn app-admin-btn-sm">Add`);
|
|
22228
|
+
var _tmpl$646 = /* @__PURE__ */ template(`<div><div style=margin-bottom:0.375rem>Send a copy for</div><div style="display:grid;grid-template-columns:repeat(auto-fill, minmax(14rem, 1fr));gap:0.375rem 1rem">`);
|
|
22229
|
+
var _tmpl$741 = /* @__PURE__ */ template(`<span class=app-admin-text-muted style=font-size:0.8125rem>Nobody \u2014 admin copies go nowhere until someone is added.`);
|
|
22230
|
+
var _tmpl$836 = /* @__PURE__ */ template(`<span class="app-admin-badge app-admin-badge--neutral"style=text-transform:none;display:inline-flex;gap:0.375rem;align-items:center><button type=button style=background:none;border:none;cursor:pointer;color:inherit;padding:0;font-size:1rem;line-height:1>×`);
|
|
22231
|
+
var _tmpl$933 = /* @__PURE__ */ template(`<div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(15rem, 1fr));gap:1rem"><div class=app-admin-card-soft style=padding:0.875rem;display:grid;gap:0.5rem><div>Days before renewal</div><div style=display:flex;flex-wrap:wrap;gap:0.375rem></div><div style=display:flex;gap:0.5rem><input type=number class=app-admin-input min=1 max=90 placeholder="e.g. 7"aria-label="Add days before"style=width:6rem><button type=button class="app-admin-btn app-admin-btn-sm">Add</button></div></div><div class=app-admin-card-soft style=padding:0.875rem;display:grid;gap:0.5rem><label style=display:grid;gap:0.25rem><span>Days before expiry</span><input type=number class=app-admin-input min=7 max=90></label></div><div class=app-admin-card-soft style=padding:0.875rem;display:grid;gap:0.5rem><label style=display:grid;gap:0.25rem><span>Every (days)</span><input type=number class=app-admin-input min=1 max=30></label><label style=display:grid;gap:0.25rem><span>At most (nudges)</span><input type=number class=app-admin-input min=1 max=20>`);
|
|
22232
|
+
var _tmpl$029 = /* @__PURE__ */ template(`<button type=button style=background:none;border:none;cursor:pointer;color:inherit;padding:0>×`);
|
|
22233
|
+
var _tmpl$1124 = /* @__PURE__ */ template(`<span class="app-admin-badge app-admin-badge--neutral"style=text-transform:none;display:inline-flex;gap:0.375rem>d`);
|
|
22234
|
+
var _tmpl$1023 = /* @__PURE__ */ template(`<div>`);
|
|
21844
22235
|
function humanize2(key) {
|
|
21845
22236
|
return key.replace(/([A-Z])/g, " $1").replace(/[_-]/g, " ").replace(/^\w/, (c) => c.toUpperCase()).trim();
|
|
21846
22237
|
}
|
|
@@ -21850,14 +22241,14 @@ var label2 = {
|
|
|
21850
22241
|
};
|
|
21851
22242
|
function Card(props) {
|
|
21852
22243
|
return (() => {
|
|
21853
|
-
var _el$ = _tmpl$
|
|
22244
|
+
var _el$ = _tmpl$2107(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$6 = _el$2.nextSibling;
|
|
21854
22245
|
insert(_el$4, () => props.title);
|
|
21855
22246
|
insert(_el$3, createComponent(Show, {
|
|
21856
22247
|
get when() {
|
|
21857
22248
|
return props.note;
|
|
21858
22249
|
},
|
|
21859
22250
|
get children() {
|
|
21860
|
-
var _el$5 = _tmpl$
|
|
22251
|
+
var _el$5 = _tmpl$375();
|
|
21861
22252
|
insert(_el$5, () => props.note);
|
|
21862
22253
|
effect((_$p) => style(_el$5, {
|
|
21863
22254
|
...label2
|
|
@@ -21872,7 +22263,7 @@ function Card(props) {
|
|
|
21872
22263
|
}
|
|
21873
22264
|
function Toggle(props) {
|
|
21874
22265
|
return (() => {
|
|
21875
|
-
var _el$7 = _tmpl$
|
|
22266
|
+
var _el$7 = _tmpl$376(), _el$8 = _el$7.firstChild;
|
|
21876
22267
|
_el$8.addEventListener("change", (e) => props.onChange(e.currentTarget.checked));
|
|
21877
22268
|
insert(_el$7, () => props.label, null);
|
|
21878
22269
|
effect(() => _el$8.checked = props.checked);
|
|
@@ -21921,7 +22312,7 @@ function NotificationsCard() {
|
|
|
21921
22312
|
note: "Who receives a copy when one of these emails goes to a customer. Clinical emails (new messages, prescription updates) are never copied.",
|
|
21922
22313
|
get aside() {
|
|
21923
22314
|
return (() => {
|
|
21924
|
-
var _el$9 = _tmpl$
|
|
22315
|
+
var _el$9 = _tmpl$460();
|
|
21925
22316
|
_el$9.$$click = () => void save();
|
|
21926
22317
|
insert(_el$9, () => saving() ? "Saving\u2026" : "Save");
|
|
21927
22318
|
effect(() => _el$9.disabled = !dirty() || saving());
|
|
@@ -21937,16 +22328,16 @@ function NotificationsCard() {
|
|
|
21937
22328
|
return createComponent(LoadingSpinner, {});
|
|
21938
22329
|
},
|
|
21939
22330
|
children: (s) => [(() => {
|
|
21940
|
-
var _el$0 = _tmpl$
|
|
22331
|
+
var _el$0 = _tmpl$550(), _el$1 = _el$0.firstChild, _el$10 = _el$1.nextSibling, _el$11 = _el$10.nextSibling, _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling;
|
|
21941
22332
|
insert(_el$10, createComponent(For, {
|
|
21942
22333
|
get each() {
|
|
21943
22334
|
return s().recipientEmails;
|
|
21944
22335
|
},
|
|
21945
22336
|
get fallback() {
|
|
21946
|
-
return _tmpl$
|
|
22337
|
+
return _tmpl$741();
|
|
21947
22338
|
},
|
|
21948
22339
|
children: (email) => (() => {
|
|
21949
|
-
var _el$18 = _tmpl$
|
|
22340
|
+
var _el$18 = _tmpl$836(), _el$19 = _el$18.firstChild;
|
|
21950
22341
|
insert(_el$18, email, _el$19);
|
|
21951
22342
|
_el$19.$$click = () => update({
|
|
21952
22343
|
recipientEmails: s().recipientEmails.filter((e) => e !== email)
|
|
@@ -21964,7 +22355,7 @@ function NotificationsCard() {
|
|
|
21964
22355
|
effect(() => _el$12.value = newEmail());
|
|
21965
22356
|
return _el$0;
|
|
21966
22357
|
})(), (() => {
|
|
21967
|
-
var _el$14 = _tmpl$
|
|
22358
|
+
var _el$14 = _tmpl$646(), _el$15 = _el$14.firstChild, _el$16 = _el$15.nextSibling;
|
|
21968
22359
|
insert(_el$16, createComponent(For, {
|
|
21969
22360
|
get each() {
|
|
21970
22361
|
return Object.keys(s().enabledEvents);
|
|
@@ -22042,7 +22433,7 @@ function BillingRemindersCard() {
|
|
|
22042
22433
|
note: "Automated emails about upcoming renewals, expiring cards and past-due subscriptions. Each one's copy is under Templates.",
|
|
22043
22434
|
get aside() {
|
|
22044
22435
|
return (() => {
|
|
22045
|
-
var _el$20 = _tmpl$
|
|
22436
|
+
var _el$20 = _tmpl$460();
|
|
22046
22437
|
_el$20.$$click = () => void save();
|
|
22047
22438
|
insert(_el$20, () => saving() ? "Saving\u2026" : "Save");
|
|
22048
22439
|
effect(() => _el$20.disabled = !dirty() || saving());
|
|
@@ -22058,7 +22449,7 @@ function BillingRemindersCard() {
|
|
|
22058
22449
|
return createComponent(LoadingSpinner, {});
|
|
22059
22450
|
},
|
|
22060
22451
|
children: (s) => (() => {
|
|
22061
|
-
var _el$21 = _tmpl$
|
|
22452
|
+
var _el$21 = _tmpl$933(), _el$22 = _el$21.firstChild, _el$23 = _el$22.firstChild, _el$24 = _el$23.nextSibling, _el$25 = _el$24.nextSibling, _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling, _el$28 = _el$22.nextSibling, _el$29 = _el$28.firstChild, _el$30 = _el$29.firstChild, _el$31 = _el$30.nextSibling, _el$32 = _el$28.nextSibling, _el$33 = _el$32.firstChild, _el$34 = _el$33.firstChild, _el$35 = _el$34.nextSibling, _el$36 = _el$33.nextSibling, _el$37 = _el$36.firstChild, _el$38 = _el$37.nextSibling;
|
|
22062
22453
|
insert(_el$22, createComponent(Toggle, {
|
|
22063
22454
|
label: "Renewal reminder",
|
|
22064
22455
|
get checked() {
|
|
@@ -22076,14 +22467,14 @@ function BillingRemindersCard() {
|
|
|
22076
22467
|
return s().renewalReminder.daysBefore;
|
|
22077
22468
|
},
|
|
22078
22469
|
children: (d) => (() => {
|
|
22079
|
-
var _el$39 = _tmpl$
|
|
22470
|
+
var _el$39 = _tmpl$1124(), _el$40 = _el$39.firstChild;
|
|
22080
22471
|
insert(_el$39, d, _el$40);
|
|
22081
22472
|
insert(_el$39, createComponent(Show, {
|
|
22082
22473
|
get when() {
|
|
22083
22474
|
return s().renewalReminder.daysBefore.length > 1;
|
|
22084
22475
|
},
|
|
22085
22476
|
get children() {
|
|
22086
|
-
var _el$41 = _tmpl$
|
|
22477
|
+
var _el$41 = _tmpl$029();
|
|
22087
22478
|
_el$41.$$click = () => update({
|
|
22088
22479
|
renewalReminder: {
|
|
22089
22480
|
...s().renewalReminder,
|
|
@@ -22167,7 +22558,7 @@ function BillingRemindersCard() {
|
|
|
22167
22558
|
}
|
|
22168
22559
|
function EmailNotifications() {
|
|
22169
22560
|
return (() => {
|
|
22170
|
-
var _el$42 = _tmpl$
|
|
22561
|
+
var _el$42 = _tmpl$1023();
|
|
22171
22562
|
insert(_el$42, createComponent(PageTitle, {
|
|
22172
22563
|
subtitle: "Who gets admin copies, and when the automated billing reminders go out",
|
|
22173
22564
|
children: "Notifications"
|
|
@@ -22178,20 +22569,20 @@ function EmailNotifications() {
|
|
|
22178
22569
|
})();
|
|
22179
22570
|
}
|
|
22180
22571
|
delegateEvents(["click", "input", "keydown"]);
|
|
22181
|
-
var _tmpl$
|
|
22182
|
-
var _tmpl$
|
|
22183
|
-
var _tmpl$
|
|
22184
|
-
var _tmpl$
|
|
22185
|
-
var _tmpl$
|
|
22186
|
-
var _tmpl$
|
|
22187
|
-
var _tmpl$
|
|
22188
|
-
var _tmpl$
|
|
22189
|
-
var _tmpl$
|
|
22190
|
-
var _tmpl$
|
|
22191
|
-
var _tmpl$
|
|
22192
|
-
var _tmpl$
|
|
22193
|
-
var _tmpl$
|
|
22194
|
-
var
|
|
22572
|
+
var _tmpl$377 = /* @__PURE__ */ template(`<div class=app-admin-card style=margin-top:1.25rem><div style="padding:1rem 1.25rem;border-bottom:1px solid var(--app-admin-border-soft)"><h2 class=app-admin-heading style=font-size:0.9375rem;font-weight:600;margin:0></h2><p style="font-size:0.75rem;margin:0.25rem 0 0"></p></div><div>`);
|
|
22573
|
+
var _tmpl$2108 = /* @__PURE__ */ template(`<div style=font-size:0.75rem;margin-top:0.25rem>`);
|
|
22574
|
+
var _tmpl$378 = /* @__PURE__ */ template(`<div style="display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0.875rem 1.25rem;border-bottom:1px solid var(--app-admin-border-soft)"><div style=min-width:0><div style=font-size:0.875rem;font-weight:600></div><div style=margin-top:0.125rem></div></div><div style=flex-shrink:0>`);
|
|
22575
|
+
var _tmpl$461 = /* @__PURE__ */ template(`<div class=app-admin-notice role=alert style=margin-top:1.25rem>Features could not be loaded. `);
|
|
22576
|
+
var _tmpl$551 = /* @__PURE__ */ template(`<div>`);
|
|
22577
|
+
var _tmpl$647 = /* @__PURE__ */ template(`<button type=button role=switch class=app-admin-toggle><span class=app-admin-toggle__knob>`);
|
|
22578
|
+
var _tmpl$742 = /* @__PURE__ */ template(`<span class="app-admin-badge app-admin-badge--success">On`);
|
|
22579
|
+
var _tmpl$837 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-sm">Request`);
|
|
22580
|
+
var _tmpl$934 = /* @__PURE__ */ template(`<span class="app-admin-badge app-admin-badge--info"style=text-transform:none>Requested `);
|
|
22581
|
+
var _tmpl$030 = /* @__PURE__ */ template(`<p style="margin:0 0 0.875rem">`);
|
|
22582
|
+
var _tmpl$1125 = /* @__PURE__ */ template(`<label style=display:grid;gap:0.25rem><span>Anything we should know? (optional)</span><textarea class=app-admin-input rows=4 maxlength=1000>`);
|
|
22583
|
+
var _tmpl$1024 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;margin:0.75rem 0 0">We'll email our team and reply to you. Nothing changes on your site until we turn it on.`);
|
|
22584
|
+
var _tmpl$1126 = /* @__PURE__ */ template(`<div class=app-admin-btn-row><button type=button class=app-admin-btn>Cancel</button><button type=button class="app-admin-btn app-admin-btn-primary">`);
|
|
22585
|
+
var muted2 = {
|
|
22195
22586
|
"font-size": "0.8125rem",
|
|
22196
22587
|
color: "var(--app-admin-fg-muted)"
|
|
22197
22588
|
};
|
|
@@ -22205,19 +22596,19 @@ function formatDate2(iso) {
|
|
|
22205
22596
|
}
|
|
22206
22597
|
function Card2(props) {
|
|
22207
22598
|
return (() => {
|
|
22208
|
-
var _el$ = _tmpl$
|
|
22599
|
+
var _el$ = _tmpl$377(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling;
|
|
22209
22600
|
insert(_el$3, () => props.title);
|
|
22210
22601
|
insert(_el$4, () => props.note);
|
|
22211
22602
|
insert(_el$5, () => props.children);
|
|
22212
22603
|
effect((_$p) => style(_el$4, {
|
|
22213
|
-
...
|
|
22604
|
+
...muted2
|
|
22214
22605
|
}, _$p));
|
|
22215
22606
|
return _el$;
|
|
22216
22607
|
})();
|
|
22217
22608
|
}
|
|
22218
22609
|
function Row(props) {
|
|
22219
22610
|
return (() => {
|
|
22220
|
-
var _el$6 = _tmpl$
|
|
22611
|
+
var _el$6 = _tmpl$378(), _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$1 = _el$7.nextSibling;
|
|
22221
22612
|
insert(_el$8, () => props.feature.label);
|
|
22222
22613
|
insert(_el$9, () => props.feature.description);
|
|
22223
22614
|
insert(_el$7, createComponent(Show, {
|
|
@@ -22225,10 +22616,10 @@ function Row(props) {
|
|
|
22225
22616
|
return props.note;
|
|
22226
22617
|
},
|
|
22227
22618
|
get children() {
|
|
22228
|
-
var _el$0 = _tmpl$
|
|
22619
|
+
var _el$0 = _tmpl$2108();
|
|
22229
22620
|
insert(_el$0, () => props.note);
|
|
22230
22621
|
effect((_$p) => style(_el$0, {
|
|
22231
|
-
...
|
|
22622
|
+
...muted2
|
|
22232
22623
|
}, _$p));
|
|
22233
22624
|
return _el$0;
|
|
22234
22625
|
}
|
|
@@ -22236,7 +22627,7 @@ function Row(props) {
|
|
|
22236
22627
|
insert(_el$1, () => props.children);
|
|
22237
22628
|
effect((_p$) => {
|
|
22238
22629
|
var _v$ = props.feature.key, _v$2 = {
|
|
22239
|
-
...
|
|
22630
|
+
...muted2
|
|
22240
22631
|
};
|
|
22241
22632
|
_v$ !== _p$.e && setAttribute(_el$6, "data-feature", _p$.e = _v$);
|
|
22242
22633
|
_p$.t = style(_el$9, _v$2, _p$.t);
|
|
@@ -22308,7 +22699,7 @@ function Features() {
|
|
|
22308
22699
|
}
|
|
22309
22700
|
};
|
|
22310
22701
|
return (() => {
|
|
22311
|
-
var _el$10 = _tmpl$
|
|
22702
|
+
var _el$10 = _tmpl$551();
|
|
22312
22703
|
insert(_el$10, createComponent(PageTitle, {
|
|
22313
22704
|
subtitle: "What this site has switched on, and what you can ask for",
|
|
22314
22705
|
children: "Features"
|
|
@@ -22318,7 +22709,7 @@ function Features() {
|
|
|
22318
22709
|
return data.error;
|
|
22319
22710
|
},
|
|
22320
22711
|
get children() {
|
|
22321
|
-
var _el$11 = _tmpl$
|
|
22712
|
+
var _el$11 = _tmpl$461(); _el$11.firstChild;
|
|
22322
22713
|
insert(_el$11, () => data.error?.message, null);
|
|
22323
22714
|
return _el$11;
|
|
22324
22715
|
}
|
|
@@ -22355,7 +22746,7 @@ function Features() {
|
|
|
22355
22746
|
return memo(() => !!blockedBy(f))() ? `Turn on "${blockedBy(f).label}" first.` : void 0;
|
|
22356
22747
|
},
|
|
22357
22748
|
get children() {
|
|
22358
|
-
var _el$13 = _tmpl$
|
|
22749
|
+
var _el$13 = _tmpl$647();
|
|
22359
22750
|
_el$13.$$click = () => void toggle(f);
|
|
22360
22751
|
effect((_p$) => {
|
|
22361
22752
|
var _v$3 = f.enabled, _v$4 = f.label, _v$5 = !!f.enabled, _v$6 = !!(busyKey() === f.key), _v$7 = !!busyKey() || !!blockedBy(f), _v$8 = blockedBy(f) ? {
|
|
@@ -22405,7 +22796,7 @@ function Features() {
|
|
|
22405
22796
|
return !f.enabled;
|
|
22406
22797
|
},
|
|
22407
22798
|
get fallback() {
|
|
22408
|
-
return _tmpl$
|
|
22799
|
+
return _tmpl$742();
|
|
22409
22800
|
},
|
|
22410
22801
|
get children() {
|
|
22411
22802
|
return createComponent(Show, {
|
|
@@ -22414,14 +22805,14 @@ function Features() {
|
|
|
22414
22805
|
},
|
|
22415
22806
|
get fallback() {
|
|
22416
22807
|
return (() => {
|
|
22417
|
-
var _el$15 = _tmpl$
|
|
22808
|
+
var _el$15 = _tmpl$837();
|
|
22418
22809
|
_el$15.$$click = () => openRequest(f);
|
|
22419
22810
|
effect(() => setAttribute(_el$15, "aria-label", `Request ${f.label}`));
|
|
22420
22811
|
return _el$15;
|
|
22421
22812
|
})();
|
|
22422
22813
|
},
|
|
22423
22814
|
children: (r) => (() => {
|
|
22424
|
-
var _el$16 = _tmpl$
|
|
22815
|
+
var _el$16 = _tmpl$934(); _el$16.firstChild;
|
|
22425
22816
|
insert(_el$16, () => formatDate2(r().requestedAt), null);
|
|
22426
22817
|
effect(() => setAttribute(_el$16, "title", `Requested by ${r().requestedBy}`));
|
|
22427
22818
|
return _el$16;
|
|
@@ -22450,7 +22841,7 @@ function Features() {
|
|
|
22450
22841
|
onClose: () => !sending() && setRequesting(null),
|
|
22451
22842
|
get footer() {
|
|
22452
22843
|
return (() => {
|
|
22453
|
-
var _el$23 = _tmpl$
|
|
22844
|
+
var _el$23 = _tmpl$1126(), _el$24 = _el$23.firstChild, _el$25 = _el$24.nextSibling;
|
|
22454
22845
|
_el$24.$$click = () => setRequesting(null);
|
|
22455
22846
|
_el$25.$$click = () => void sendRequest();
|
|
22456
22847
|
insert(_el$25, () => sending() ? "Sending\u2026" : "Send request");
|
|
@@ -22468,22 +22859,22 @@ function Features() {
|
|
|
22468
22859
|
},
|
|
22469
22860
|
get children() {
|
|
22470
22861
|
return [(() => {
|
|
22471
|
-
var _el$18 = _tmpl$
|
|
22862
|
+
var _el$18 = _tmpl$030();
|
|
22472
22863
|
insert(_el$18, () => f().description);
|
|
22473
22864
|
effect((_$p) => style(_el$18, {
|
|
22474
|
-
...
|
|
22865
|
+
...muted2
|
|
22475
22866
|
}, _$p));
|
|
22476
22867
|
return _el$18;
|
|
22477
22868
|
})(), (() => {
|
|
22478
|
-
var _el$19 = _tmpl$
|
|
22869
|
+
var _el$19 = _tmpl$1125(), _el$20 = _el$19.firstChild, _el$21 = _el$20.nextSibling;
|
|
22479
22870
|
_el$21.$$input = (e) => setNote(e.currentTarget.value);
|
|
22480
|
-
effect((_$p) => style(_el$20,
|
|
22871
|
+
effect((_$p) => style(_el$20, muted2, _$p));
|
|
22481
22872
|
effect(() => _el$21.value = note());
|
|
22482
22873
|
return _el$19;
|
|
22483
22874
|
})(), (() => {
|
|
22484
|
-
var _el$22 = _tmpl$
|
|
22875
|
+
var _el$22 = _tmpl$1024();
|
|
22485
22876
|
effect((_$p) => style(_el$22, {
|
|
22486
|
-
...
|
|
22877
|
+
...muted2
|
|
22487
22878
|
}, _$p));
|
|
22488
22879
|
return _el$22;
|
|
22489
22880
|
})()];
|
|
@@ -22496,12 +22887,12 @@ function Features() {
|
|
|
22496
22887
|
delegateEvents(["click", "input"]);
|
|
22497
22888
|
|
|
22498
22889
|
// src/pages/AdminDashboard.tsx
|
|
22499
|
-
var _tmpl$
|
|
22500
|
-
var _tmpl$
|
|
22501
|
-
var _tmpl$
|
|
22502
|
-
var _tmpl$
|
|
22503
|
-
var _tmpl$
|
|
22504
|
-
var _tmpl$
|
|
22890
|
+
var _tmpl$379 = /* @__PURE__ */ template(`<span style=font-size:1rem;opacity:0.7;flex-shrink:0>`);
|
|
22891
|
+
var _tmpl$2109 = /* @__PURE__ */ template(`<button type=button style="display:flex;align-items:center;gap:0.75rem;padding:0.625rem 0.75rem;border-radius:var(--app-admin-radius-sm);font-size:0.875rem;font-weight:500;text-align:left;border:none;cursor:pointer">`);
|
|
22892
|
+
var _tmpl$380 = /* @__PURE__ */ template(`<div class="app-admin-root app-admin-shell"style=position:sticky><div class=app-admin-shell-header><button type=button class=app-admin-shell-menu-trigger aria-label="Open admin menu"><svg width=22 height=22 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round aria-hidden=true><line x1=3 y1=6 x2=21 y2=6></line><line x1=3 y1=12 x2=21 y2=12></line><line x1=3 y1=18 x2=21 y2=18></line></svg></button><span class=app-admin-shell-header-title></span></div><div class=app-admin-backdrop aria-hidden=true></div><aside class=app-admin-sidebar><div style=padding:1.25rem><h2 style="font-size:0.7rem;font-weight:500;color:var(--app-admin-fg-muted);text-transform:uppercase;letter-spacing:0.08em;margin:0 0 1rem">Admin Panel</h2><nav style=display:flex;flex-direction:column;gap:0.25rem></nav></div></aside><div class=app-admin-content>`);
|
|
22893
|
+
var _tmpl$464 = /* @__PURE__ */ template(`<h3 style="font-size:0.625rem;font-weight:600;color:var(--app-admin-fg-muted);text-transform:uppercase;letter-spacing:0.08em;margin:1rem 0 0.375rem;padding:0 0.75rem">`);
|
|
22894
|
+
var _tmpl$553 = /* @__PURE__ */ template(`<div role=alert style="margin:1rem 0;padding:1.25rem 1.5rem;border:1px solid var(--app-admin-border);border-radius:var(--app-admin-radius-sm);background:var(--app-admin-surface);color:var(--app-admin-fg)"><div style=font-weight:600;margin-bottom:0.375rem>This section failed to load</div><div style=font-size:0.875rem;color:var(--app-admin-fg-muted);margin-bottom:1rem;word-break:break-word></div><button type=button style="padding:0.5rem 0.875rem;border-radius:var(--app-admin-radius-sm);border:1px solid var(--app-admin-border);background:var(--app-admin-primary-soft);color:var(--app-admin-primary-soft-fg);font-size:0.875rem;font-weight:500;cursor:pointer">Try again`);
|
|
22895
|
+
var _tmpl$648 = /* @__PURE__ */ template(`<div class=app-admin-root style=display:flex;align-items:center;justify-content:center;position:sticky;background:var(--app-admin-bg)><div role=status aria-label="Loading admin"style="width:1.75rem;height:1.75rem;border-radius:9999px;border:2px solid var(--app-admin-border);border-top-color:var(--app-admin-primary);animation:app-admin-gate-spin 0.8s linear infinite"></div><style>@keyframes app-admin-gate-spin { to { transform: rotate(360deg); } }`);
|
|
22505
22896
|
var TAB_LABELS = {
|
|
22506
22897
|
dashboard: "Dashboard",
|
|
22507
22898
|
customers: "Customers",
|
|
@@ -22519,6 +22910,7 @@ var TAB_LABELS = {
|
|
|
22519
22910
|
"email-notifications": "Notifications",
|
|
22520
22911
|
funnel: "Funnel",
|
|
22521
22912
|
sequences: "Sequences",
|
|
22913
|
+
"sequence-results": "Results",
|
|
22522
22914
|
features: "Features"
|
|
22523
22915
|
};
|
|
22524
22916
|
var DEFAULT_TOP_TABS = ["dashboard"];
|
|
@@ -22537,10 +22929,10 @@ var DEFAULT_TAB_GROUPS = [
|
|
|
22537
22929
|
},
|
|
22538
22930
|
// Everything that leaves as email, in one place: the copy of each
|
|
22539
22931
|
// transactional email, who gets admin copies and the reminder schedule, and
|
|
22540
|
-
// the drip sequences the Funnel tab feeds.
|
|
22932
|
+
// the drip sequences the Funnel tab feeds, and what those achieved.
|
|
22541
22933
|
{
|
|
22542
22934
|
label: "Email",
|
|
22543
|
-
tabs: ["email-templates", "email-notifications", "sequences"]
|
|
22935
|
+
tabs: ["email-templates", "email-notifications", "sequences", "sequence-results"]
|
|
22544
22936
|
},
|
|
22545
22937
|
{
|
|
22546
22938
|
label: "Integrations",
|
|
@@ -22625,14 +23017,14 @@ function AdminDashboard(props) {
|
|
|
22625
23017
|
};
|
|
22626
23018
|
const topOffset = () => props.topOffset ?? "0px";
|
|
22627
23019
|
const TabButton = (btnProps) => (() => {
|
|
22628
|
-
var _el$ = _tmpl$
|
|
23020
|
+
var _el$ = _tmpl$2109();
|
|
22629
23021
|
_el$.$$click = () => handleTabClick(btnProps.tab);
|
|
22630
23022
|
insert(_el$, createComponent(Show, {
|
|
22631
23023
|
get when() {
|
|
22632
23024
|
return props.tabIcons?.[btnProps.tab];
|
|
22633
23025
|
},
|
|
22634
23026
|
get children() {
|
|
22635
|
-
var _el$2 = _tmpl$
|
|
23027
|
+
var _el$2 = _tmpl$379();
|
|
22636
23028
|
effect(() => className(_el$2, props.tabIcons[btnProps.tab]));
|
|
22637
23029
|
return _el$2;
|
|
22638
23030
|
}
|
|
@@ -22664,7 +23056,7 @@ function AdminDashboard(props) {
|
|
|
22664
23056
|
return createComponent(AdminNavContext.Provider, {
|
|
22665
23057
|
value: adminNav,
|
|
22666
23058
|
get children() {
|
|
22667
|
-
var _el$3 = _tmpl$
|
|
23059
|
+
var _el$3 = _tmpl$380(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.nextSibling, _el$7 = _el$4.nextSibling, _el$8 = _el$7.nextSibling, _el$9 = _el$8.firstChild, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$8.nextSibling;
|
|
22668
23060
|
_el$5.$$click = () => setDrawerOpen(true);
|
|
22669
23061
|
insert(_el$6, () => TAB_LABELS[currentTab()]);
|
|
22670
23062
|
_el$7.$$click = () => setDrawerOpen(false);
|
|
@@ -22681,7 +23073,7 @@ function AdminDashboard(props) {
|
|
|
22681
23073
|
return visibleGroups();
|
|
22682
23074
|
},
|
|
22683
23075
|
children: (group) => [(() => {
|
|
22684
|
-
var _el$11 = _tmpl$
|
|
23076
|
+
var _el$11 = _tmpl$464();
|
|
22685
23077
|
insert(_el$11, () => group.label);
|
|
22686
23078
|
return _el$11;
|
|
22687
23079
|
})(), createComponent(For, {
|
|
@@ -22861,6 +23253,13 @@ function AdminDashboard(props) {
|
|
|
22861
23253
|
get children() {
|
|
22862
23254
|
return createComponent(Sequences, {});
|
|
22863
23255
|
}
|
|
23256
|
+
}), createComponent(Match, {
|
|
23257
|
+
get when() {
|
|
23258
|
+
return currentTab() === "sequence-results";
|
|
23259
|
+
},
|
|
23260
|
+
get children() {
|
|
23261
|
+
return createComponent(SequenceResults, {});
|
|
23262
|
+
}
|
|
22864
23263
|
}), createComponent(Match, {
|
|
22865
23264
|
get when() {
|
|
22866
23265
|
return currentTab() === "email-notifications";
|
|
@@ -22907,7 +23306,7 @@ function AdminTabError(props) {
|
|
|
22907
23306
|
console.error("[AdminDashboard] tab failed to render:", props.error);
|
|
22908
23307
|
const message = () => props.error instanceof Error ? props.error.message : String(props.error);
|
|
22909
23308
|
return (() => {
|
|
22910
|
-
var _el$12 = _tmpl$
|
|
23309
|
+
var _el$12 = _tmpl$553(), _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling, _el$15 = _el$14.nextSibling;
|
|
22911
23310
|
insert(_el$14, message);
|
|
22912
23311
|
_el$15.$$click = () => props.reset();
|
|
22913
23312
|
return _el$12;
|
|
@@ -22915,7 +23314,7 @@ function AdminTabError(props) {
|
|
|
22915
23314
|
}
|
|
22916
23315
|
function AdminGateSpinner(props) {
|
|
22917
23316
|
return (() => {
|
|
22918
|
-
var _el$16 = _tmpl$
|
|
23317
|
+
var _el$16 = _tmpl$648(); _el$16.firstChild;
|
|
22919
23318
|
effect((_p$) => {
|
|
22920
23319
|
var _v$8 = props.topOffset, _v$9 = `calc(100vh - ${props.topOffset})`;
|
|
22921
23320
|
_v$8 !== _p$.e && setStyleProperty(_el$16, "top", _p$.e = _v$8);
|
|
@@ -22947,6 +23346,7 @@ var ADMIN_TAB_SEGMENTS = {
|
|
|
22947
23346
|
"email-templates": "email-templates",
|
|
22948
23347
|
funnel: "funnel",
|
|
22949
23348
|
sequences: "sequences",
|
|
23349
|
+
"sequence-results": "sequence-results",
|
|
22950
23350
|
"email-notifications": "email-notifications",
|
|
22951
23351
|
features: "features"
|
|
22952
23352
|
};
|
|
@@ -22994,31 +23394,31 @@ function affiliateSubTabFromPath(pathname, base = "/admin") {
|
|
|
22994
23394
|
}
|
|
22995
23395
|
return "overview";
|
|
22996
23396
|
}
|
|
22997
|
-
var _tmpl$
|
|
22998
|
-
var _tmpl$
|
|
22999
|
-
var _tmpl$
|
|
23000
|
-
var _tmpl$
|
|
23001
|
-
var _tmpl$
|
|
23002
|
-
var _tmpl$
|
|
23003
|
-
var _tmpl$
|
|
23004
|
-
var _tmpl$
|
|
23005
|
-
var _tmpl$
|
|
23006
|
-
var _tmpl$
|
|
23007
|
-
var _tmpl$
|
|
23008
|
-
var _tmpl$
|
|
23009
|
-
var _tmpl$
|
|
23010
|
-
var _tmpl$
|
|
23011
|
-
var _tmpl$
|
|
23012
|
-
var _tmpl$
|
|
23013
|
-
var _tmpl$
|
|
23014
|
-
var _tmpl$
|
|
23015
|
-
var _tmpl$
|
|
23397
|
+
var _tmpl$381 = /* @__PURE__ */ template(`<div class=app-admin-modal-backdrop><div class="app-admin-card app-admin-modal"style=max-width:32rem><div class=app-admin-modal-header><h3 class=app-admin-heading style=font-size:1rem;margin:0>Customer dashboard preview</h3><button type=button class="app-admin-btn app-admin-btn-ghost"style="border:none;padding:0.25rem 0.5rem;font-size:1.25rem">\xD7</button></div><div class=app-admin-modal-body><div style="padding:0.5rem 0.75rem;border-radius:var(--app-admin-radius-sm);background:var(--app-admin-warning-bg);color:var(--app-admin-warning-fg);font-size:0.75rem;font-weight:500">Viewing as <!> \u2014 read-only`);
|
|
23398
|
+
var _tmpl$2119 = /* @__PURE__ */ template(`<div style="display:flex;align-items:center;justify-content:space-between;gap:0.75rem;padding:0.5rem 0.75rem;border-radius:var(--app-admin-radius-sm);background:var(--app-admin-danger-bg);color:var(--app-admin-danger-fg);font-size:0.75rem;font-weight:500"><span></span><button type=button class="app-admin-btn app-admin-btn-ghost"style="padding:0.25rem 0.75rem">Retry`);
|
|
23399
|
+
var _tmpl$385 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>Could not load this customer's dashboard.`);
|
|
23400
|
+
var _tmpl$465 = /* @__PURE__ */ template(`<div><h3>Profile</h3><div class=app-admin-card-soft style=padding:0.75rem><p style=font-weight:600;font-size:0.9375rem;margin:0></p><p style="font-size:0.8125rem;color:var(--app-admin-fg-muted);margin:0.25rem 0 0">`);
|
|
23401
|
+
var _tmpl$554 = /* @__PURE__ */ template(`<div><h3>Subscription`);
|
|
23402
|
+
var _tmpl$649 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:0.5rem>`);
|
|
23403
|
+
var _tmpl$743 = /* @__PURE__ */ template(`<div><h3>Prescription requests`);
|
|
23404
|
+
var _tmpl$838 = /* @__PURE__ */ template(`<div><h3>Pending surveys`);
|
|
23405
|
+
var _tmpl$935 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>No active subscription.`);
|
|
23406
|
+
var _tmpl$031 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;color:var(--app-admin-fg-muted);margin:0.25rem 0 0">Next charge `);
|
|
23407
|
+
var _tmpl$1127 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style=padding:0.75rem><div style=display:flex;align-items:center;justify-content:space-between><span style=font-size:0.875rem;font-weight:500>`);
|
|
23408
|
+
var _tmpl$1025 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;color:var(--app-admin-fg-muted);margin:0.25rem 0 0">`);
|
|
23409
|
+
var _tmpl$1128 = /* @__PURE__ */ template(`<div><h3>Prescription status</h3><div class=app-admin-card-soft style=padding:0.75rem><div style=display:flex;align-items:center;justify-content:space-between><span style=font-size:0.875rem;font-weight:500>Current request`);
|
|
23410
|
+
var _tmpl$1220 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>No prescription requests.`);
|
|
23411
|
+
var _tmpl$1318 = /* @__PURE__ */ template(`<span style=font-size:0.75rem;color:var(--app-admin-fg-muted);margin-left:0.5rem>`);
|
|
23412
|
+
var _tmpl$1418 = /* @__PURE__ */ template(`<span> \xB7 `);
|
|
23413
|
+
var _tmpl$1518 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style=padding:0.75rem><div style=display:flex;align-items:center;justify-content:space-between><div><span style=font-size:0.875rem;font-weight:500></span></div></div><div style=font-size:0.75rem;color:var(--app-admin-fg-muted);margin-top:0.25rem>`);
|
|
23414
|
+
var _tmpl$1618 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>No pending surveys.`);
|
|
23415
|
+
var _tmpl$1718 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style=padding:0.75rem><span style=font-size:0.875rem;font-weight:500></span><span style=font-size:0.75rem;color:var(--app-admin-fg-muted);margin-left:0.5rem>Cycle `);
|
|
23016
23416
|
function PatientDashboardPreview(props) {
|
|
23017
23417
|
const data = useDashboardData({
|
|
23018
23418
|
authToken: () => props.token
|
|
23019
23419
|
});
|
|
23020
23420
|
return (() => {
|
|
23021
|
-
var _el$ = _tmpl$
|
|
23421
|
+
var _el$ = _tmpl$381(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$3.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$0 = _el$8.nextSibling; _el$0.nextSibling;
|
|
23022
23422
|
_el$.$$click = (e) => {
|
|
23023
23423
|
if (e.target === e.currentTarget) props.onClose();
|
|
23024
23424
|
};
|
|
@@ -23030,7 +23430,7 @@ function PatientDashboardPreview(props) {
|
|
|
23030
23430
|
},
|
|
23031
23431
|
keyed: true,
|
|
23032
23432
|
children: (msg) => (() => {
|
|
23033
|
-
var _el$1 = _tmpl$
|
|
23433
|
+
var _el$1 = _tmpl$2119(), _el$10 = _el$1.firstChild, _el$11 = _el$10.nextSibling;
|
|
23034
23434
|
insert(_el$10, msg);
|
|
23035
23435
|
_el$11.$$click = () => data.retry();
|
|
23036
23436
|
return _el$1;
|
|
@@ -23049,25 +23449,25 @@ function PatientDashboardPreview(props) {
|
|
|
23049
23449
|
return data.profile();
|
|
23050
23450
|
},
|
|
23051
23451
|
get fallback() {
|
|
23052
|
-
return _tmpl$
|
|
23452
|
+
return _tmpl$385();
|
|
23053
23453
|
},
|
|
23054
23454
|
children: (profile) => [(() => {
|
|
23055
|
-
var _el$13 = _tmpl$
|
|
23455
|
+
var _el$13 = _tmpl$465(), _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$16.nextSibling;
|
|
23056
23456
|
insert(_el$16, () => [profile().firstName, profile().lastName].filter(Boolean).join(" ") || "Member");
|
|
23057
23457
|
insert(_el$17, () => profile().email);
|
|
23058
23458
|
effect((_$p) => style(_el$14, panelSectionHeader, _$p));
|
|
23059
23459
|
return _el$13;
|
|
23060
23460
|
})(), (() => {
|
|
23061
|
-
var _el$18 = _tmpl$
|
|
23461
|
+
var _el$18 = _tmpl$554(), _el$19 = _el$18.firstChild;
|
|
23062
23462
|
insert(_el$18, createComponent(Show, {
|
|
23063
23463
|
get when() {
|
|
23064
23464
|
return data.subscription();
|
|
23065
23465
|
},
|
|
23066
23466
|
get fallback() {
|
|
23067
|
-
return _tmpl$
|
|
23467
|
+
return _tmpl$935();
|
|
23068
23468
|
},
|
|
23069
23469
|
children: (sub) => (() => {
|
|
23070
|
-
var _el$27 = _tmpl$
|
|
23470
|
+
var _el$27 = _tmpl$1127(), _el$28 = _el$27.firstChild, _el$29 = _el$28.firstChild;
|
|
23071
23471
|
insert(_el$29, createComponent(Show, {
|
|
23072
23472
|
get when() {
|
|
23073
23473
|
return sub().amount != null;
|
|
@@ -23087,7 +23487,7 @@ function PatientDashboardPreview(props) {
|
|
|
23087
23487
|
return sub().nextBillingDate;
|
|
23088
23488
|
},
|
|
23089
23489
|
get children() {
|
|
23090
|
-
var _el$30 = _tmpl$
|
|
23490
|
+
var _el$30 = _tmpl$031(); _el$30.firstChild;
|
|
23091
23491
|
insert(_el$30, () => fmtDate(sub().nextBillingDate), null);
|
|
23092
23492
|
return _el$30;
|
|
23093
23493
|
}
|
|
@@ -23102,7 +23502,7 @@ function PatientDashboardPreview(props) {
|
|
|
23102
23502
|
return data.rxStatus();
|
|
23103
23503
|
},
|
|
23104
23504
|
children: (rx) => (() => {
|
|
23105
|
-
var _el$32 = _tmpl$
|
|
23505
|
+
var _el$32 = _tmpl$1128(), _el$33 = _el$32.firstChild, _el$34 = _el$33.nextSibling, _el$35 = _el$34.firstChild; _el$35.firstChild;
|
|
23106
23506
|
insert(_el$35, createComponent(StatusBadge, {
|
|
23107
23507
|
get status() {
|
|
23108
23508
|
return rx().status;
|
|
@@ -23113,7 +23513,7 @@ function PatientDashboardPreview(props) {
|
|
|
23113
23513
|
return rx().reason;
|
|
23114
23514
|
},
|
|
23115
23515
|
get children() {
|
|
23116
|
-
var _el$37 = _tmpl$
|
|
23516
|
+
var _el$37 = _tmpl$1025();
|
|
23117
23517
|
insert(_el$37, () => rx().reason);
|
|
23118
23518
|
return _el$37;
|
|
23119
23519
|
}
|
|
@@ -23122,29 +23522,29 @@ function PatientDashboardPreview(props) {
|
|
|
23122
23522
|
return _el$32;
|
|
23123
23523
|
})()
|
|
23124
23524
|
}), (() => {
|
|
23125
|
-
var _el$20 = _tmpl$
|
|
23525
|
+
var _el$20 = _tmpl$743(), _el$21 = _el$20.firstChild;
|
|
23126
23526
|
insert(_el$20, createComponent(Show, {
|
|
23127
23527
|
get when() {
|
|
23128
23528
|
return (data.rxList() ?? []).length > 0;
|
|
23129
23529
|
},
|
|
23130
23530
|
get fallback() {
|
|
23131
|
-
return _tmpl$
|
|
23531
|
+
return _tmpl$1220();
|
|
23132
23532
|
},
|
|
23133
23533
|
get children() {
|
|
23134
|
-
var _el$22 = _tmpl$
|
|
23534
|
+
var _el$22 = _tmpl$649();
|
|
23135
23535
|
insert(_el$22, createComponent(For, {
|
|
23136
23536
|
get each() {
|
|
23137
23537
|
return data.rxList();
|
|
23138
23538
|
},
|
|
23139
23539
|
children: (req) => (() => {
|
|
23140
|
-
var _el$39 = _tmpl$
|
|
23540
|
+
var _el$39 = _tmpl$1518(), _el$40 = _el$39.firstChild, _el$41 = _el$40.firstChild, _el$42 = _el$41.firstChild, _el$44 = _el$40.nextSibling;
|
|
23141
23541
|
insert(_el$42, () => req.drugName || req.drugId || "Prescription");
|
|
23142
23542
|
insert(_el$41, createComponent(Show, {
|
|
23143
23543
|
get when() {
|
|
23144
23544
|
return req.dosage;
|
|
23145
23545
|
},
|
|
23146
23546
|
get children() {
|
|
23147
|
-
var _el$43 = _tmpl$
|
|
23547
|
+
var _el$43 = _tmpl$1318();
|
|
23148
23548
|
insert(_el$43, () => req.dosage);
|
|
23149
23549
|
return _el$43;
|
|
23150
23550
|
}
|
|
@@ -23159,7 +23559,7 @@ function PatientDashboardPreview(props) {
|
|
|
23159
23559
|
return req.priceCents != null;
|
|
23160
23560
|
},
|
|
23161
23561
|
get children() {
|
|
23162
|
-
var _el$45 = _tmpl$
|
|
23562
|
+
var _el$45 = _tmpl$1418(), _el$46 = _el$45.firstChild;
|
|
23163
23563
|
insert(_el$45, () => centsToUsd(req.priceCents), _el$46);
|
|
23164
23564
|
return _el$45;
|
|
23165
23565
|
}
|
|
@@ -23174,22 +23574,22 @@ function PatientDashboardPreview(props) {
|
|
|
23174
23574
|
effect((_$p) => style(_el$21, panelSectionHeader, _$p));
|
|
23175
23575
|
return _el$20;
|
|
23176
23576
|
})(), (() => {
|
|
23177
|
-
var _el$23 = _tmpl$
|
|
23577
|
+
var _el$23 = _tmpl$838(), _el$24 = _el$23.firstChild;
|
|
23178
23578
|
insert(_el$23, createComponent(Show, {
|
|
23179
23579
|
get when() {
|
|
23180
23580
|
return (data.pendingSurveys() ?? []).length > 0;
|
|
23181
23581
|
},
|
|
23182
23582
|
get fallback() {
|
|
23183
|
-
return _tmpl$
|
|
23583
|
+
return _tmpl$1618();
|
|
23184
23584
|
},
|
|
23185
23585
|
get children() {
|
|
23186
|
-
var _el$25 = _tmpl$
|
|
23586
|
+
var _el$25 = _tmpl$649();
|
|
23187
23587
|
insert(_el$25, createComponent(For, {
|
|
23188
23588
|
get each() {
|
|
23189
23589
|
return data.pendingSurveys();
|
|
23190
23590
|
},
|
|
23191
23591
|
children: (survey) => (() => {
|
|
23192
|
-
var _el$48 = _tmpl$
|
|
23592
|
+
var _el$48 = _tmpl$1718(), _el$49 = _el$48.firstChild, _el$50 = _el$49.nextSibling; _el$50.firstChild;
|
|
23193
23593
|
insert(_el$49, () => survey.drugName || survey.drugId || "Renewal survey");
|
|
23194
23594
|
insert(_el$50, () => survey.cycleNumber, null);
|
|
23195
23595
|
return _el$48;
|
|
@@ -23208,9 +23608,9 @@ function PatientDashboardPreview(props) {
|
|
|
23208
23608
|
})();
|
|
23209
23609
|
}
|
|
23210
23610
|
delegateEvents(["click"]);
|
|
23211
|
-
var _tmpl$
|
|
23212
|
-
var _tmpl$
|
|
23213
|
-
var _tmpl$
|
|
23611
|
+
var _tmpl$386 = /* @__PURE__ */ template(`<div style=margin-bottom:1rem>`);
|
|
23612
|
+
var _tmpl$2120 = /* @__PURE__ */ template(`<form><div style=display:grid;gap:1rem;margin-bottom:1.5rem><div style="display:grid;grid-template-columns:repeat(2, 1fr);gap:1rem"></div></div><div style=margin-bottom:1.5rem></div><div style=display:flex;gap:0.75rem>`);
|
|
23613
|
+
var _tmpl$387 = /* @__PURE__ */ template(`<div class=pay-method style="max-width:480px;margin:0 auto;padding:2rem 1.25rem"><p style="color:var(--app-portal-fg-muted, #6e6a66);margin-bottom:1.5rem">Enter a new card for your subscription. Your current card stays active until this succeeds.`);
|
|
23214
23614
|
var LIVE = /* @__PURE__ */ new Set(["active", "paused", "past_due"]);
|
|
23215
23615
|
function UpdatePaymentMethod(props) {
|
|
23216
23616
|
const {
|
|
@@ -23240,7 +23640,7 @@ function UpdatePaymentMethod(props) {
|
|
|
23240
23640
|
if (ok) props.onDone();
|
|
23241
23641
|
}
|
|
23242
23642
|
return (() => {
|
|
23243
|
-
var _el$ = _tmpl$
|
|
23643
|
+
var _el$ = _tmpl$387(), _el$2 = _el$.firstChild;
|
|
23244
23644
|
insert(_el$, createComponent(Heading, {
|
|
23245
23645
|
level: 1,
|
|
23246
23646
|
get children() {
|
|
@@ -23271,14 +23671,14 @@ function UpdatePaymentMethod(props) {
|
|
|
23271
23671
|
return memo(() => !!!resolving())() && !noSubscription();
|
|
23272
23672
|
},
|
|
23273
23673
|
get children() {
|
|
23274
|
-
var _el$3 = _tmpl$
|
|
23674
|
+
var _el$3 = _tmpl$2120(), _el$5 = _el$3.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$5.nextSibling, _el$8 = _el$7.nextSibling;
|
|
23275
23675
|
_el$3.addEventListener("submit", handleSubmit);
|
|
23276
23676
|
insert(_el$3, createComponent(Show, {
|
|
23277
23677
|
get when() {
|
|
23278
23678
|
return flow.error();
|
|
23279
23679
|
},
|
|
23280
23680
|
get children() {
|
|
23281
|
-
var _el$4 = _tmpl$
|
|
23681
|
+
var _el$4 = _tmpl$386();
|
|
23282
23682
|
insert(_el$4, createComponent(Banner, {
|
|
23283
23683
|
variant: "error",
|
|
23284
23684
|
get children() {
|
|
@@ -23356,28 +23756,28 @@ function UpdatePaymentMethod(props) {
|
|
|
23356
23756
|
return _el$;
|
|
23357
23757
|
})();
|
|
23358
23758
|
}
|
|
23359
|
-
var _tmpl$
|
|
23360
|
-
var _tmpl$
|
|
23361
|
-
var _tmpl$
|
|
23362
|
-
var _tmpl$
|
|
23363
|
-
var _tmpl$
|
|
23364
|
-
var _tmpl$
|
|
23365
|
-
var _tmpl$
|
|
23366
|
-
var _tmpl$
|
|
23367
|
-
var _tmpl$
|
|
23368
|
-
var _tmpl$
|
|
23369
|
-
var _tmpl$
|
|
23370
|
-
var _tmpl$
|
|
23371
|
-
var _tmpl$
|
|
23372
|
-
var _tmpl$
|
|
23373
|
-
var _tmpl$
|
|
23374
|
-
var _tmpl$
|
|
23375
|
-
var _tmpl$
|
|
23376
|
-
var _tmpl$
|
|
23377
|
-
var _tmpl$
|
|
23378
|
-
var _tmpl$
|
|
23379
|
-
var _tmpl$
|
|
23380
|
-
var _tmpl$
|
|
23759
|
+
var _tmpl$388 = /* @__PURE__ */ template(`<a class=ship__track target=_blank rel="noopener noreferrer">Track<!> \u2197`);
|
|
23760
|
+
var _tmpl$2121 = /* @__PURE__ */ template(`<div class=ship><p class=ship__eta></p><div class=ship__chip-row><button type=button class=ship__chip><span class=ship__num></span><i class="ph ph-copy ship__copy-icon"aria-hidden=true></i><span class=ship__copied>Copied \u2713</span></button></div><span class=portal-sr-only role=status aria-live=polite>`);
|
|
23761
|
+
var _tmpl$389 = /* @__PURE__ */ template(`<span class=refill__cycle>Day <!> of `);
|
|
23762
|
+
var _tmpl$466 = /* @__PURE__ */ template(`<div class=refill data-testid=refill-strip><div class=refill__head><span class=lab-label>Your plan</span></div><div class=refill__rail>`);
|
|
23763
|
+
var _tmpl$555 = /* @__PURE__ */ template(`<span class=refill__cycle>Preparing your next fill`);
|
|
23764
|
+
var _tmpl$650 = /* @__PURE__ */ template(`<div><span class=refill__dot aria-hidden=true></span><span class="lab-label refill__label"></span><span class=refill__date></span><span class=refill__rel>`);
|
|
23765
|
+
var _tmpl$744 = /* @__PURE__ */ template(`<a class=refill__action>Complete check-in \u2192`);
|
|
23766
|
+
var _tmpl$839 = /* @__PURE__ */ template(`<p class=tracker__empty-text data-testid=tracker-savings-note><strong>Member pricing is active on your account.</strong> It applies automatically when you check out.`);
|
|
23767
|
+
var _tmpl$936 = /* @__PURE__ */ template(`<div class=tracker><span class=lab-label>Your order</span><div class=tracker__empty data-testid=tracker-empty><div class=tracker__empty-mark aria-hidden=true><span class=tracker__empty-bead></span></div><h2 class=tracker__empty-title>Your journey starts here</h2><p class=tracker__empty-text></p><a class="portal-btn portal-btn--primary">Start your intake`);
|
|
23768
|
+
var _tmpl$032 = /* @__PURE__ */ template(`<p class=tracker__empty-text data-testid=tracker-offer-note><strong>You have <!> waiting.</strong> It applies automatically at checkout \u2014 finish your intake by <!> to keep it.`);
|
|
23769
|
+
var _tmpl$1129 = /* @__PURE__ */ template(`<span class=thread__halo aria-hidden=true>`);
|
|
23770
|
+
var _tmpl$1026 = /* @__PURE__ */ template(`<time class=thread__time>`);
|
|
23771
|
+
var _tmpl$1130 = /* @__PURE__ */ template(`<h2 class=thread__hero>`);
|
|
23772
|
+
var _tmpl$1221 = /* @__PURE__ */ template(`<p class=thread__caption>`);
|
|
23773
|
+
var _tmpl$1319 = /* @__PURE__ */ template(`<button type=button class="portal-btn portal-btn--ghost thread__action">Where's my order?`);
|
|
23774
|
+
var _tmpl$1419 = /* @__PURE__ */ template(`<button type=button class="portal-btn portal-btn--primary thread__action">Message your care team`);
|
|
23775
|
+
var _tmpl$1519 = /* @__PURE__ */ template(`<button type=button class="portal-btn portal-btn--ghost thread__action">Talk to your provider`);
|
|
23776
|
+
var _tmpl$1619 = /* @__PURE__ */ template(`<li><div class=thread__rail><span class=thread__bead></span></div><div><div class=thread__top><span class="lab-label thread__label">`);
|
|
23777
|
+
var _tmpl$1719 = /* @__PURE__ */ template(`<p class="thread__caption thread__await"data-testid=await-messaging>Your care team is reviewing your request. You\u2019ll be able to message them here once your consult begins.`);
|
|
23778
|
+
var _tmpl$1817 = /* @__PURE__ */ template(`<p class="thread__caption thread__await"data-testid=await-messaging>Your provider will follow up with you about next steps.`);
|
|
23779
|
+
var _tmpl$1915 = /* @__PURE__ */ template(`<span class=tracker__dose> \xB7 `);
|
|
23780
|
+
var _tmpl$2015 = /* @__PURE__ */ template(`<div class=tracker data-testid=order-tracker><div class=tracker__intro><span class=lab-label>Your order</span><p class=tracker__med></p></div><ol>`);
|
|
23381
23781
|
function TrackingChip(props) {
|
|
23382
23782
|
let copied;
|
|
23383
23783
|
const [announce, setAnnounce] = createSignal("");
|
|
@@ -23394,7 +23794,7 @@ function TrackingChip(props) {
|
|
|
23394
23794
|
}
|
|
23395
23795
|
};
|
|
23396
23796
|
return (() => {
|
|
23397
|
-
var _el$ = _tmpl$
|
|
23797
|
+
var _el$ = _tmpl$2121(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.nextSibling, _el$7 = _el$6.nextSibling, _el$10 = _el$3.nextSibling;
|
|
23398
23798
|
insert(_el$2, () => props.eta);
|
|
23399
23799
|
_el$4.$$click = copy;
|
|
23400
23800
|
insert(_el$5, () => props.number);
|
|
@@ -23405,7 +23805,7 @@ function TrackingChip(props) {
|
|
|
23405
23805
|
return props.url;
|
|
23406
23806
|
},
|
|
23407
23807
|
get children() {
|
|
23408
|
-
var _el$8 = _tmpl$
|
|
23808
|
+
var _el$8 = _tmpl$388(), _el$9 = _el$8.firstChild, _el$1 = _el$9.nextSibling; _el$1.nextSibling;
|
|
23409
23809
|
insert(_el$8, (() => {
|
|
23410
23810
|
var _c$ = memo(() => !!props.carrier);
|
|
23411
23811
|
return () => _c$() ? ` with ${props.carrier}` : "";
|
|
@@ -23426,16 +23826,16 @@ function OrderTracker(props) {
|
|
|
23426
23826
|
return refill();
|
|
23427
23827
|
},
|
|
23428
23828
|
children: (r) => (() => {
|
|
23429
|
-
var _el$11 = _tmpl$
|
|
23829
|
+
var _el$11 = _tmpl$466(), _el$12 = _el$11.firstChild; _el$12.firstChild; var _el$18 = _el$12.nextSibling;
|
|
23430
23830
|
insert(_el$12, createComponent(Show, {
|
|
23431
23831
|
get when() {
|
|
23432
23832
|
return !r().pendingFill;
|
|
23433
23833
|
},
|
|
23434
23834
|
get fallback() {
|
|
23435
|
-
return _tmpl$
|
|
23835
|
+
return _tmpl$555();
|
|
23436
23836
|
},
|
|
23437
23837
|
get children() {
|
|
23438
|
-
var _el$14 = _tmpl$
|
|
23838
|
+
var _el$14 = _tmpl$389(), _el$15 = _el$14.firstChild, _el$17 = _el$15.nextSibling; _el$17.nextSibling;
|
|
23439
23839
|
insert(_el$14, () => r().cycleDay, _el$17);
|
|
23440
23840
|
insert(_el$14, () => r().cycleLength, null);
|
|
23441
23841
|
return _el$14;
|
|
@@ -23446,7 +23846,7 @@ function OrderTracker(props) {
|
|
|
23446
23846
|
return r().events;
|
|
23447
23847
|
},
|
|
23448
23848
|
children: (e) => (() => {
|
|
23449
|
-
var _el$20 = _tmpl$
|
|
23849
|
+
var _el$20 = _tmpl$650(), _el$21 = _el$20.firstChild, _el$22 = _el$21.nextSibling, _el$23 = _el$22.nextSibling, _el$24 = _el$23.nextSibling;
|
|
23450
23850
|
insert(_el$22, () => e.label);
|
|
23451
23851
|
insert(_el$23, () => formatEventDate(e.date));
|
|
23452
23852
|
insert(_el$24, (() => {
|
|
@@ -23459,7 +23859,7 @@ function OrderTracker(props) {
|
|
|
23459
23859
|
},
|
|
23460
23860
|
keyed: true,
|
|
23461
23861
|
children: (rid) => (() => {
|
|
23462
|
-
var _el$25 = _tmpl$
|
|
23862
|
+
var _el$25 = _tmpl$744();
|
|
23463
23863
|
effect(() => setAttribute(_el$25, "href", props.renewHref(rid)));
|
|
23464
23864
|
return _el$25;
|
|
23465
23865
|
})()
|
|
@@ -23473,14 +23873,14 @@ function OrderTracker(props) {
|
|
|
23473
23873
|
})()
|
|
23474
23874
|
});
|
|
23475
23875
|
const EmptyState2 = () => (() => {
|
|
23476
|
-
var _el$26 = _tmpl$
|
|
23876
|
+
var _el$26 = _tmpl$936(), _el$27 = _el$26.firstChild, _el$28 = _el$27.nextSibling, _el$29 = _el$28.firstChild, _el$30 = _el$29.nextSibling, _el$32 = _el$30.nextSibling, _el$33 = _el$32.nextSibling;
|
|
23477
23877
|
insert(_el$26, createComponent(RefillStrip, {}), _el$28);
|
|
23478
23878
|
insert(_el$28, createComponent(Show, {
|
|
23479
23879
|
get when() {
|
|
23480
23880
|
return props.savingsMember;
|
|
23481
23881
|
},
|
|
23482
23882
|
get children() {
|
|
23483
|
-
return _tmpl$
|
|
23883
|
+
return _tmpl$839();
|
|
23484
23884
|
}
|
|
23485
23885
|
}), _el$32);
|
|
23486
23886
|
insert(_el$28, createComponent(Show, {
|
|
@@ -23488,7 +23888,7 @@ function OrderTracker(props) {
|
|
|
23488
23888
|
return props.offers?.[0];
|
|
23489
23889
|
},
|
|
23490
23890
|
children: (offer) => (() => {
|
|
23491
|
-
var _el$34 = _tmpl$
|
|
23891
|
+
var _el$34 = _tmpl$032(), _el$35 = _el$34.firstChild, _el$36 = _el$35.firstChild, _el$38 = _el$36.nextSibling; _el$38.nextSibling; var _el$39 = _el$35.nextSibling, _el$41 = _el$39.nextSibling; _el$41.nextSibling;
|
|
23492
23892
|
insert(_el$35, () => offerSummaryText(offer()), _el$38);
|
|
23493
23893
|
insert(_el$34, () => offer().deadlineText, _el$41);
|
|
23494
23894
|
return _el$34;
|
|
@@ -23502,12 +23902,12 @@ function OrderTracker(props) {
|
|
|
23502
23902
|
const s = sp.stage;
|
|
23503
23903
|
const isActive = s.state === "active" || s.state === "consult" || s.state === "denied";
|
|
23504
23904
|
return (() => {
|
|
23505
|
-
var _el$42 = _tmpl$
|
|
23905
|
+
var _el$42 = _tmpl$1619(), _el$43 = _el$42.firstChild, _el$44 = _el$43.firstChild, _el$46 = _el$43.nextSibling, _el$47 = _el$46.firstChild, _el$48 = _el$47.firstChild;
|
|
23506
23906
|
setAttribute(_el$42, "data-active", isActive ? "true" : void 0);
|
|
23507
23907
|
insert(_el$44, createComponent(Show, {
|
|
23508
23908
|
when: isActive,
|
|
23509
23909
|
get children() {
|
|
23510
|
-
return _tmpl$
|
|
23910
|
+
return _tmpl$1129();
|
|
23511
23911
|
}
|
|
23512
23912
|
}));
|
|
23513
23913
|
className(_el$46, `thread__content${isActive ? " thread__content--active" : ""}`);
|
|
@@ -23517,7 +23917,7 @@ function OrderTracker(props) {
|
|
|
23517
23917
|
return s.timestamp;
|
|
23518
23918
|
},
|
|
23519
23919
|
get children() {
|
|
23520
|
-
var _el$49 = _tmpl$
|
|
23920
|
+
var _el$49 = _tmpl$1026();
|
|
23521
23921
|
insert(_el$49, () => formatStageDate(s.timestamp));
|
|
23522
23922
|
return _el$49;
|
|
23523
23923
|
}
|
|
@@ -23527,7 +23927,7 @@ function OrderTracker(props) {
|
|
|
23527
23927
|
return s.heroWord;
|
|
23528
23928
|
},
|
|
23529
23929
|
get children() {
|
|
23530
|
-
var _el$50 = _tmpl$
|
|
23930
|
+
var _el$50 = _tmpl$1130();
|
|
23531
23931
|
insert(_el$50, () => s.heroWord);
|
|
23532
23932
|
return _el$50;
|
|
23533
23933
|
}
|
|
@@ -23537,7 +23937,7 @@ function OrderTracker(props) {
|
|
|
23537
23937
|
return s.subCaption;
|
|
23538
23938
|
},
|
|
23539
23939
|
get children() {
|
|
23540
|
-
var _el$51 = _tmpl$
|
|
23940
|
+
var _el$51 = _tmpl$1221();
|
|
23541
23941
|
insert(_el$51, () => s.subCaption);
|
|
23542
23942
|
return _el$51;
|
|
23543
23943
|
}
|
|
@@ -23565,7 +23965,7 @@ function OrderTracker(props) {
|
|
|
23565
23965
|
return props.messagingEnabled;
|
|
23566
23966
|
},
|
|
23567
23967
|
get children() {
|
|
23568
|
-
var _el$52 = _tmpl$
|
|
23968
|
+
var _el$52 = _tmpl$1319();
|
|
23569
23969
|
_el$52.$$click = () => props.onOpenMessages({
|
|
23570
23970
|
channel: "support",
|
|
23571
23971
|
category: "orders"
|
|
@@ -23585,10 +23985,10 @@ function OrderTracker(props) {
|
|
|
23585
23985
|
return props.messagingEnabled;
|
|
23586
23986
|
},
|
|
23587
23987
|
get fallback() {
|
|
23588
|
-
return _tmpl$
|
|
23988
|
+
return _tmpl$1719();
|
|
23589
23989
|
},
|
|
23590
23990
|
get children() {
|
|
23591
|
-
var _el$53 = _tmpl$
|
|
23991
|
+
var _el$53 = _tmpl$1419();
|
|
23592
23992
|
_el$53.$$click = () => props.onOpenMessages({
|
|
23593
23993
|
channel: "care"
|
|
23594
23994
|
});
|
|
@@ -23607,10 +24007,10 @@ function OrderTracker(props) {
|
|
|
23607
24007
|
return props.messagingEnabled;
|
|
23608
24008
|
},
|
|
23609
24009
|
get fallback() {
|
|
23610
|
-
return _tmpl$
|
|
24010
|
+
return _tmpl$1817();
|
|
23611
24011
|
},
|
|
23612
24012
|
get children() {
|
|
23613
|
-
var _el$54 = _tmpl$
|
|
24013
|
+
var _el$54 = _tmpl$1519();
|
|
23614
24014
|
_el$54.$$click = () => props.onOpenMessages({
|
|
23615
24015
|
channel: "care"
|
|
23616
24016
|
});
|
|
@@ -23643,14 +24043,14 @@ function OrderTracker(props) {
|
|
|
23643
24043
|
children: (rx) => {
|
|
23644
24044
|
const view = buildTrackerView(rx());
|
|
23645
24045
|
return (() => {
|
|
23646
|
-
var _el$57 = _tmpl$
|
|
24046
|
+
var _el$57 = _tmpl$2015(), _el$58 = _el$57.firstChild, _el$59 = _el$58.firstChild, _el$60 = _el$59.nextSibling, _el$63 = _el$58.nextSibling;
|
|
23647
24047
|
insert(_el$60, () => props.medicationName, null);
|
|
23648
24048
|
insert(_el$60, createComponent(Show, {
|
|
23649
24049
|
get when() {
|
|
23650
24050
|
return rx().dosage;
|
|
23651
24051
|
},
|
|
23652
24052
|
get children() {
|
|
23653
|
-
var _el$61 = _tmpl$
|
|
24053
|
+
var _el$61 = _tmpl$1915(); _el$61.firstChild;
|
|
23654
24054
|
insert(_el$61, () => rx().dosage, null);
|
|
23655
24055
|
return _el$61;
|
|
23656
24056
|
}
|
|
@@ -23685,9 +24085,9 @@ function OrderTracker(props) {
|
|
|
23685
24085
|
});
|
|
23686
24086
|
}
|
|
23687
24087
|
delegateEvents(["click"]);
|
|
23688
|
-
var _tmpl$
|
|
23689
|
-
var _tmpl$
|
|
23690
|
-
var _tmpl$
|
|
24088
|
+
var _tmpl$390 = /* @__PURE__ */ template(`<span class=rx-row__dose> \xB7 `);
|
|
24089
|
+
var _tmpl$2122 = /* @__PURE__ */ template(`<div class=rx-row__body>`);
|
|
24090
|
+
var _tmpl$391 = /* @__PURE__ */ template(`<div data-testid=rx-row><button type=button class=rx-row__head><span class=rx-row__med></span><span class=rx-row__status></span><i aria-hidden=true>`);
|
|
23691
24091
|
var STATUS_LABEL = {
|
|
23692
24092
|
pending: "Under review",
|
|
23693
24093
|
approved: "Approved",
|
|
@@ -23704,7 +24104,7 @@ function RxRow(props) {
|
|
|
23704
24104
|
return STATUS_LABEL[props.rx.status] ?? props.rx.status;
|
|
23705
24105
|
};
|
|
23706
24106
|
return (() => {
|
|
23707
|
-
var _el$ = _tmpl$
|
|
24107
|
+
var _el$ = _tmpl$391(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$6 = _el$3.nextSibling, _el$7 = _el$6.nextSibling;
|
|
23708
24108
|
_el$2.$$click = () => setOpen((v) => !v);
|
|
23709
24109
|
insert(_el$3, () => props.rx.drugName ?? "Medication", null);
|
|
23710
24110
|
insert(_el$3, createComponent(Show, {
|
|
@@ -23712,7 +24112,7 @@ function RxRow(props) {
|
|
|
23712
24112
|
return props.rx.dosage;
|
|
23713
24113
|
},
|
|
23714
24114
|
get children() {
|
|
23715
|
-
var _el$4 = _tmpl$
|
|
24115
|
+
var _el$4 = _tmpl$390(); _el$4.firstChild;
|
|
23716
24116
|
insert(_el$4, () => props.rx.dosage, null);
|
|
23717
24117
|
return _el$4;
|
|
23718
24118
|
}
|
|
@@ -23723,7 +24123,7 @@ function RxRow(props) {
|
|
|
23723
24123
|
return open();
|
|
23724
24124
|
},
|
|
23725
24125
|
get children() {
|
|
23726
|
-
var _el$8 = _tmpl$
|
|
24126
|
+
var _el$8 = _tmpl$2122();
|
|
23727
24127
|
insert(_el$8, createComponent(OrderTracker, {
|
|
23728
24128
|
get request() {
|
|
23729
24129
|
return props.request;
|
|
@@ -23766,17 +24166,17 @@ function RxRow(props) {
|
|
|
23766
24166
|
})();
|
|
23767
24167
|
}
|
|
23768
24168
|
delegateEvents(["click"]);
|
|
23769
|
-
var _tmpl$
|
|
23770
|
-
var _tmpl$
|
|
23771
|
-
var _tmpl$
|
|
23772
|
-
var _tmpl$
|
|
23773
|
-
var _tmpl$
|
|
23774
|
-
var _tmpl$
|
|
23775
|
-
var _tmpl$
|
|
23776
|
-
var _tmpl$
|
|
23777
|
-
var _tmpl$
|
|
23778
|
-
var _tmpl$
|
|
23779
|
-
var _tmpl$
|
|
24169
|
+
var _tmpl$395 = /* @__PURE__ */ template(`<div class=plan data-testid=plan-billing><span class=lab-label>Plan & billing`);
|
|
24170
|
+
var _tmpl$2123 = /* @__PURE__ */ template(`<div class=plan__empty><h2 class=plan__empty-title>No active plan</h2><p class=plan__empty-text>Start your treatment to set up your monthly plan.</p><a class="portal-btn portal-btn--primary">Start your intake`);
|
|
24171
|
+
var _tmpl$396 = /* @__PURE__ */ template(`<p class=membership__dose>`);
|
|
24172
|
+
var _tmpl$467 = /* @__PURE__ */ template(`<div data-testid=membership-card><div class=membership__sheen aria-hidden=true></div><div class=membership__top><span class="lab-label membership__status"></span><span class=membership__brand></span></div><h2 class=membership__med></h2><div class=membership__bottom><span class=membership__price><span class=membership__per>/mo</span></span><span class=membership__renew>Renews `);
|
|
24173
|
+
var _tmpl$556 = /* @__PURE__ */ template(`<dl class=ledger><div class=ledger__row><dt>Member since</dt><dd></dd></div><div class=ledger__row><dt>Next billing date</dt><dd></dd></div><div class=ledger__row><dt>Billing amount</dt><dd>/mo`);
|
|
24174
|
+
var _tmpl$651 = /* @__PURE__ */ template(`<p class=plan__note>Question about billing? <button type=button class=plan__note-link>Message support`);
|
|
24175
|
+
var _tmpl$745 = /* @__PURE__ */ template(`<p class=plan__error role=alert>`);
|
|
24176
|
+
var _tmpl$840 = /* @__PURE__ */ template(`<button type=button class=plan__link-btn>`);
|
|
24177
|
+
var _tmpl$937 = /* @__PURE__ */ template(`<button type=button class="plan__link-btn plan__link-btn--quiet">Cancel subscription`);
|
|
24178
|
+
var _tmpl$033 = /* @__PURE__ */ template(`<div class=plan__actions><a class=plan__link-btn>Update payment method`);
|
|
24179
|
+
var _tmpl$1131 = /* @__PURE__ */ template(`<div class=confirm data-testid=cancel-confirm><p class=confirm__text>Cancel your subscription? You\u2019ll keep access until the end of your current billing period on <!>.</p><div class=confirm__actions><button type=button class="portal-btn portal-btn--ghost">Keep my plan</button><button type=button class="portal-btn portal-btn--danger">`);
|
|
23780
24180
|
function formatCents(cents) {
|
|
23781
24181
|
if (cents == null || Number.isNaN(cents)) return "\u2014";
|
|
23782
24182
|
return `$${(cents / 100).toFixed(2)}`;
|
|
@@ -23821,20 +24221,20 @@ function PlanBilling(props) {
|
|
|
23821
24221
|
}
|
|
23822
24222
|
};
|
|
23823
24223
|
return (() => {
|
|
23824
|
-
var _el$ = _tmpl$
|
|
24224
|
+
var _el$ = _tmpl$395(); _el$.firstChild;
|
|
23825
24225
|
insert(_el$, createComponent(Show, {
|
|
23826
24226
|
get when() {
|
|
23827
24227
|
return primary();
|
|
23828
24228
|
},
|
|
23829
24229
|
get fallback() {
|
|
23830
24230
|
return (() => {
|
|
23831
|
-
var _el$3 = _tmpl$
|
|
24231
|
+
var _el$3 = _tmpl$2123(), _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.nextSibling;
|
|
23832
24232
|
effect(() => setAttribute(_el$6, "href", props.intakeHref));
|
|
23833
24233
|
return _el$3;
|
|
23834
24234
|
})();
|
|
23835
24235
|
},
|
|
23836
24236
|
children: (sub) => [(() => {
|
|
23837
|
-
var _el$7 = _tmpl$
|
|
24237
|
+
var _el$7 = _tmpl$467(), _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$9.nextSibling, _el$12 = _el$10.nextSibling, _el$13 = _el$12.firstChild, _el$14 = _el$13.firstChild, _el$15 = _el$13.nextSibling; _el$15.firstChild;
|
|
23838
24238
|
insert(_el$0, () => STATUS_COPY[sub().status] || sub().status);
|
|
23839
24239
|
insert(_el$1, () => props.brandName);
|
|
23840
24240
|
insert(_el$10, () => sub().medicationName ?? sub().medication);
|
|
@@ -23843,7 +24243,7 @@ function PlanBilling(props) {
|
|
|
23843
24243
|
return sub().dosage;
|
|
23844
24244
|
},
|
|
23845
24245
|
get children() {
|
|
23846
|
-
var _el$11 = _tmpl$
|
|
24246
|
+
var _el$11 = _tmpl$396();
|
|
23847
24247
|
insert(_el$11, () => sub().dosage);
|
|
23848
24248
|
return _el$11;
|
|
23849
24249
|
}
|
|
@@ -23853,7 +24253,7 @@ function PlanBilling(props) {
|
|
|
23853
24253
|
effect(() => className(_el$7, `membership membership--${sub().status}`));
|
|
23854
24254
|
return _el$7;
|
|
23855
24255
|
})(), (() => {
|
|
23856
|
-
var _el$17 = _tmpl$
|
|
24256
|
+
var _el$17 = _tmpl$556(), _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$19.nextSibling, _el$21 = _el$18.nextSibling, _el$22 = _el$21.firstChild, _el$23 = _el$22.nextSibling, _el$24 = _el$21.nextSibling, _el$25 = _el$24.firstChild, _el$26 = _el$25.nextSibling, _el$27 = _el$26.firstChild;
|
|
23857
24257
|
insert(_el$20, () => formatLongDate(sub().createdAt));
|
|
23858
24258
|
insert(_el$23, () => formatLongDate(sub().currentPeriodEnd));
|
|
23859
24259
|
insert(_el$26, () => formatCents(sub().amountCents), _el$27);
|
|
@@ -23863,7 +24263,7 @@ function PlanBilling(props) {
|
|
|
23863
24263
|
return props.messagingEnabled;
|
|
23864
24264
|
},
|
|
23865
24265
|
get children() {
|
|
23866
|
-
var _el$28 = _tmpl$
|
|
24266
|
+
var _el$28 = _tmpl$651(), _el$29 = _el$28.firstChild, _el$31 = _el$29.nextSibling;
|
|
23867
24267
|
_el$31.$$click = () => props.onOpenMessages({
|
|
23868
24268
|
channel: "support",
|
|
23869
24269
|
category: "billing"
|
|
@@ -23875,18 +24275,18 @@ function PlanBilling(props) {
|
|
|
23875
24275
|
return error();
|
|
23876
24276
|
},
|
|
23877
24277
|
get children() {
|
|
23878
|
-
var _el$32 = _tmpl$
|
|
24278
|
+
var _el$32 = _tmpl$745();
|
|
23879
24279
|
insert(_el$32, error);
|
|
23880
24280
|
return _el$32;
|
|
23881
24281
|
}
|
|
23882
24282
|
}), (() => {
|
|
23883
|
-
var _el$33 = _tmpl$
|
|
24283
|
+
var _el$33 = _tmpl$033(), _el$36 = _el$33.firstChild;
|
|
23884
24284
|
insert(_el$33, createComponent(Show, {
|
|
23885
24285
|
get when() {
|
|
23886
24286
|
return sub().status === "active";
|
|
23887
24287
|
},
|
|
23888
24288
|
get children() {
|
|
23889
|
-
var _el$34 = _tmpl$
|
|
24289
|
+
var _el$34 = _tmpl$840();
|
|
23890
24290
|
_el$34.$$click = () => run("pause", () => subscriptionsApi.pause(sub().id));
|
|
23891
24291
|
insert(_el$34, () => action() === "pause" ? "Pausing\u2026" : "Pause subscription");
|
|
23892
24292
|
effect(() => _el$34.disabled = !!action());
|
|
@@ -23898,7 +24298,7 @@ function PlanBilling(props) {
|
|
|
23898
24298
|
return sub().status === "paused";
|
|
23899
24299
|
},
|
|
23900
24300
|
get children() {
|
|
23901
|
-
var _el$35 = _tmpl$
|
|
24301
|
+
var _el$35 = _tmpl$840();
|
|
23902
24302
|
_el$35.$$click = () => run("resume", () => subscriptionsApi.resume(sub().id));
|
|
23903
24303
|
insert(_el$35, () => action() === "resume" ? "Resuming\u2026" : "Resume subscription");
|
|
23904
24304
|
effect(() => _el$35.disabled = !!action());
|
|
@@ -23910,7 +24310,7 @@ function PlanBilling(props) {
|
|
|
23910
24310
|
return memo(() => sub().status !== "cancelled")() && sub().status !== "expired";
|
|
23911
24311
|
},
|
|
23912
24312
|
get children() {
|
|
23913
|
-
var _el$37 = _tmpl$
|
|
24313
|
+
var _el$37 = _tmpl$937();
|
|
23914
24314
|
_el$37.$$click = () => setConfirmCancel(true);
|
|
23915
24315
|
effect(() => _el$37.disabled = !!action());
|
|
23916
24316
|
return _el$37;
|
|
@@ -23923,7 +24323,7 @@ function PlanBilling(props) {
|
|
|
23923
24323
|
return confirmCancel();
|
|
23924
24324
|
},
|
|
23925
24325
|
get children() {
|
|
23926
|
-
var _el$38 = _tmpl$
|
|
24326
|
+
var _el$38 = _tmpl$1131(), _el$39 = _el$38.firstChild, _el$40 = _el$39.firstChild, _el$42 = _el$40.nextSibling; _el$42.nextSibling; var _el$43 = _el$39.nextSibling, _el$44 = _el$43.firstChild, _el$45 = _el$44.nextSibling;
|
|
23927
24327
|
insert(_el$39, () => formatLongDate(sub().currentPeriodEnd), _el$42);
|
|
23928
24328
|
_el$44.$$click = () => setConfirmCancel(false);
|
|
23929
24329
|
_el$45.$$click = () => run("cancel", () => subscriptionsApi.cancel(sub().id)).then(() => setConfirmCancel(false));
|
|
@@ -23945,12 +24345,12 @@ function PlanBilling(props) {
|
|
|
23945
24345
|
})();
|
|
23946
24346
|
}
|
|
23947
24347
|
delegateEvents(["click"]);
|
|
23948
|
-
var _tmpl$
|
|
23949
|
-
var _tmpl$
|
|
23950
|
-
var _tmpl$
|
|
23951
|
-
var _tmpl$
|
|
23952
|
-
var _tmpl$
|
|
23953
|
-
var _tmpl$
|
|
24348
|
+
var _tmpl$397 = /* @__PURE__ */ template(`<p class=account__empty>We don\u2019t have your details on file yet.`);
|
|
24349
|
+
var _tmpl$2124 = /* @__PURE__ */ template(`<p class=account__note>Need to update something? <button type=button class=account__note-link>Message support</button> and we\u2019ll take care of it.`);
|
|
24350
|
+
var _tmpl$398 = /* @__PURE__ */ template(`<button type=button class="account__support-link account__support-btn">Messages`);
|
|
24351
|
+
var _tmpl$468 = /* @__PURE__ */ template(`<div class=account data-testid=account-panel><span class=lab-label>Account</span><h1 class=account__title>Your details</h1><dl class=account__fields></dl><div class=account__support></div><button type=button class="portal-btn portal-btn--ghost account__signout">Sign out`);
|
|
24352
|
+
var _tmpl$557 = /* @__PURE__ */ template(`<div class=account__field><dt class=lab-label></dt><dd>`);
|
|
24353
|
+
var _tmpl$653 = /* @__PURE__ */ template(`<a class=account__support-link>`);
|
|
23954
24354
|
function pick(member, ...keys) {
|
|
23955
24355
|
if (!member) return "";
|
|
23956
24356
|
for (const k of keys) {
|
|
@@ -23991,13 +24391,13 @@ function AccountPanel(props) {
|
|
|
23991
24391
|
value: address()
|
|
23992
24392
|
}].filter((f) => f.value);
|
|
23993
24393
|
return (() => {
|
|
23994
|
-
var _el$ = _tmpl$
|
|
24394
|
+
var _el$ = _tmpl$468(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling, _el$0 = _el$4.nextSibling, _el$10 = _el$0.nextSibling;
|
|
23995
24395
|
insert(_el$4, createComponent(For, {
|
|
23996
24396
|
get each() {
|
|
23997
24397
|
return fields();
|
|
23998
24398
|
},
|
|
23999
24399
|
children: (f) => (() => {
|
|
24000
|
-
var _el$11 = _tmpl$
|
|
24400
|
+
var _el$11 = _tmpl$557(), _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling;
|
|
24001
24401
|
insert(_el$12, () => f.label);
|
|
24002
24402
|
insert(_el$13, () => f.value);
|
|
24003
24403
|
return _el$11;
|
|
@@ -24008,7 +24408,7 @@ function AccountPanel(props) {
|
|
|
24008
24408
|
return fields().length === 0;
|
|
24009
24409
|
},
|
|
24010
24410
|
get children() {
|
|
24011
|
-
return _tmpl$
|
|
24411
|
+
return _tmpl$397();
|
|
24012
24412
|
}
|
|
24013
24413
|
}), _el$0);
|
|
24014
24414
|
insert(_el$, createComponent(Show, {
|
|
@@ -24016,7 +24416,7 @@ function AccountPanel(props) {
|
|
|
24016
24416
|
return props.messagingEnabled;
|
|
24017
24417
|
},
|
|
24018
24418
|
get children() {
|
|
24019
|
-
var _el$6 = _tmpl$
|
|
24419
|
+
var _el$6 = _tmpl$2124(), _el$7 = _el$6.firstChild, _el$9 = _el$7.nextSibling;
|
|
24020
24420
|
_el$9.$$click = () => props.onOpenMessages({
|
|
24021
24421
|
channel: "support",
|
|
24022
24422
|
category: "account"
|
|
@@ -24029,7 +24429,7 @@ function AccountPanel(props) {
|
|
|
24029
24429
|
return props.messagingEnabled;
|
|
24030
24430
|
},
|
|
24031
24431
|
get children() {
|
|
24032
|
-
var _el$1 = _tmpl$
|
|
24432
|
+
var _el$1 = _tmpl$398();
|
|
24033
24433
|
_el$1.$$click = () => props.onOpenMessages();
|
|
24034
24434
|
return _el$1;
|
|
24035
24435
|
}
|
|
@@ -24039,7 +24439,7 @@ function AccountPanel(props) {
|
|
|
24039
24439
|
return props.legalLinks ?? [];
|
|
24040
24440
|
},
|
|
24041
24441
|
children: (link) => (() => {
|
|
24042
|
-
var _el$14 = _tmpl$
|
|
24442
|
+
var _el$14 = _tmpl$653();
|
|
24043
24443
|
insert(_el$14, () => link.label);
|
|
24044
24444
|
effect(() => setAttribute(_el$14, "href", link.href));
|
|
24045
24445
|
return _el$14;
|
|
@@ -24050,12 +24450,12 @@ function AccountPanel(props) {
|
|
|
24050
24450
|
})();
|
|
24051
24451
|
}
|
|
24052
24452
|
delegateEvents(["click"]);
|
|
24053
|
-
var _tmpl$
|
|
24054
|
-
var _tmpl$
|
|
24055
|
-
var _tmpl$
|
|
24056
|
-
var _tmpl$
|
|
24057
|
-
var _tmpl$
|
|
24058
|
-
var _tmpl$
|
|
24453
|
+
var _tmpl$399 = /* @__PURE__ */ template(`<section class="leaflet__section leaflet__section--caution"><h2 class=leaflet__h2>Birth control</h2><p class=leaflet__body>`);
|
|
24454
|
+
var _tmpl$2125 = /* @__PURE__ */ template(`<ul class=leaflet__disclaimers id=leaflet-disclaimers>`);
|
|
24455
|
+
var _tmpl$3100 = /* @__PURE__ */ template(`<div class=leaflet data-testid=medication-guide><header class=leaflet__header><span class=lab-label>How to take it</span><h1 class=leaflet__title></h1><p class=leaflet__summary></p></header><section class=leaflet__boxed aria-label="Boxed warning"><div class=leaflet__boxed-head><i class="ph-fill ph-warning"aria-hidden=true></i><span>Important warning</span></div><p></p></section><section class="leaflet__section leaflet__section--caution"><h2 class=leaflet__h2>Do not use this medicine if\u2026</h2><ul class="leaflet__list leaflet__list--caution"></ul></section><section class=leaflet__section><h2 class=leaflet__h2>Your dose over time</h2><p class=leaflet__note>A typical step-up. Your prescriber sets your exact doses and timing.</p><ol class=titration></ol></section><section class=leaflet__section><h2 class=leaflet__h2>Giving your injection</h2><ol class=steps></ol></section><div class=leaflet__grid><section class=leaflet__section><h2 class=leaflet__h2>Storing your medicine</h2><ul class=leaflet__list></ul></section><section class=leaflet__section><h2 class=leaflet__h2>If you miss a dose</h2><p class=leaflet__body></p></section></div><div class=leaflet__grid><section class=leaflet__section><h2 class=leaflet__h2>Common side effects</h2><ul class="leaflet__list leaflet__list--check"></ul></section><section class="leaflet__section leaflet__section--alert"><h2 class=leaflet__h2>Call right away if you notice\u2026</h2><ul class="leaflet__list leaflet__list--alert"></ul></section></div><section class=leaflet__section><h2 class=leaflet__h2>When to contact your care team</h2><ul class=leaflet__list></ul></section><section class=leaflet__section><h2 class=leaflet__h2>Tips for feeling your best</h2><ul class="leaflet__list leaflet__list--check"></ul></section><section class=leaflet__footnote><button type=button class=leaflet__disclose aria-controls=leaflet-disclaimers> the important details<i aria-hidden=true>`);
|
|
24456
|
+
var _tmpl$469 = /* @__PURE__ */ template(`<li>`);
|
|
24457
|
+
var _tmpl$558 = /* @__PURE__ */ template(`<li><span class=titration__bead aria-hidden=true></span><div class=titration__body><div class=titration__row><span class=titration__dose></span><span class="lab-label titration__phase"></span></div><span class=titration__time></span><p class=titration__note>`);
|
|
24458
|
+
var _tmpl$654 = /* @__PURE__ */ template(`<li class=steps__item><span class=steps__num></span><div class=steps__body><h3 class=steps__title></h3><p class=steps__detail>`);
|
|
24059
24459
|
function firstNumber(s) {
|
|
24060
24460
|
const m = (s || "").match(/\d+(\.\d+)?/);
|
|
24061
24461
|
return m ? m[0] : null;
|
|
@@ -24076,7 +24476,7 @@ function MedicationGuide(props) {
|
|
|
24076
24476
|
return "upcoming";
|
|
24077
24477
|
};
|
|
24078
24478
|
return (() => {
|
|
24079
|
-
var _el$ = _tmpl$
|
|
24479
|
+
var _el$ = _tmpl$3100(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.nextSibling, _el$6 = _el$2.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$9 = _el$6.nextSibling, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$9.nextSibling, _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling, _el$13 = _el$12.nextSibling, _el$14 = _el$10.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$15.nextSibling, _el$17 = _el$14.nextSibling, _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$19.nextSibling, _el$21 = _el$18.nextSibling, _el$22 = _el$21.firstChild, _el$23 = _el$22.nextSibling, _el$27 = _el$17.nextSibling, _el$28 = _el$27.firstChild, _el$29 = _el$28.firstChild, _el$30 = _el$29.nextSibling, _el$31 = _el$28.nextSibling, _el$32 = _el$31.firstChild, _el$33 = _el$32.nextSibling, _el$34 = _el$27.nextSibling, _el$35 = _el$34.firstChild, _el$36 = _el$35.nextSibling, _el$37 = _el$34.nextSibling, _el$38 = _el$37.firstChild, _el$39 = _el$38.nextSibling, _el$40 = _el$37.nextSibling, _el$41 = _el$40.firstChild, _el$42 = _el$41.firstChild, _el$43 = _el$42.nextSibling;
|
|
24080
24480
|
insert(_el$4, () => props.guide.title);
|
|
24081
24481
|
insert(_el$5, () => props.guide.summary);
|
|
24082
24482
|
insert(_el$8, () => props.guide.boxedWarning);
|
|
@@ -24085,7 +24485,7 @@ function MedicationGuide(props) {
|
|
|
24085
24485
|
return props.guide.doNotUseIf;
|
|
24086
24486
|
},
|
|
24087
24487
|
children: (item) => (() => {
|
|
24088
|
-
var _el$45 = _tmpl$
|
|
24488
|
+
var _el$45 = _tmpl$469();
|
|
24089
24489
|
insert(_el$45, item);
|
|
24090
24490
|
return _el$45;
|
|
24091
24491
|
})()
|
|
@@ -24095,7 +24495,7 @@ function MedicationGuide(props) {
|
|
|
24095
24495
|
return props.guide.titration;
|
|
24096
24496
|
},
|
|
24097
24497
|
children: (step, i) => (() => {
|
|
24098
|
-
var _el$46 = _tmpl$
|
|
24498
|
+
var _el$46 = _tmpl$558(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$49.firstChild, _el$51 = _el$50.nextSibling, _el$52 = _el$49.nextSibling, _el$53 = _el$52.nextSibling;
|
|
24099
24499
|
insert(_el$50, () => step.dose);
|
|
24100
24500
|
insert(_el$51, () => step.phase);
|
|
24101
24501
|
insert(_el$52, () => step.timeframe);
|
|
@@ -24109,7 +24509,7 @@ function MedicationGuide(props) {
|
|
|
24109
24509
|
return props.guide.injectionSteps;
|
|
24110
24510
|
},
|
|
24111
24511
|
children: (step) => (() => {
|
|
24112
|
-
var _el$54 = _tmpl$
|
|
24512
|
+
var _el$54 = _tmpl$654(), _el$55 = _el$54.firstChild, _el$56 = _el$55.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$57.nextSibling;
|
|
24113
24513
|
insert(_el$55, () => step.n);
|
|
24114
24514
|
insert(_el$57, () => step.title);
|
|
24115
24515
|
insert(_el$58, () => step.detail);
|
|
@@ -24121,7 +24521,7 @@ function MedicationGuide(props) {
|
|
|
24121
24521
|
return props.guide.storage;
|
|
24122
24522
|
},
|
|
24123
24523
|
children: (item) => (() => {
|
|
24124
|
-
var _el$59 = _tmpl$
|
|
24524
|
+
var _el$59 = _tmpl$469();
|
|
24125
24525
|
insert(_el$59, item);
|
|
24126
24526
|
return _el$59;
|
|
24127
24527
|
})()
|
|
@@ -24132,7 +24532,7 @@ function MedicationGuide(props) {
|
|
|
24132
24532
|
return props.guide.contraception;
|
|
24133
24533
|
},
|
|
24134
24534
|
get children() {
|
|
24135
|
-
var _el$24 = _tmpl$
|
|
24535
|
+
var _el$24 = _tmpl$399(), _el$25 = _el$24.firstChild, _el$26 = _el$25.nextSibling;
|
|
24136
24536
|
insert(_el$26, () => props.guide.contraception);
|
|
24137
24537
|
return _el$24;
|
|
24138
24538
|
}
|
|
@@ -24142,7 +24542,7 @@ function MedicationGuide(props) {
|
|
|
24142
24542
|
return props.guide.sideEffectsCommon;
|
|
24143
24543
|
},
|
|
24144
24544
|
children: (item) => (() => {
|
|
24145
|
-
var _el$60 = _tmpl$
|
|
24545
|
+
var _el$60 = _tmpl$469();
|
|
24146
24546
|
insert(_el$60, item);
|
|
24147
24547
|
return _el$60;
|
|
24148
24548
|
})()
|
|
@@ -24152,7 +24552,7 @@ function MedicationGuide(props) {
|
|
|
24152
24552
|
return props.guide.sideEffectsSerious;
|
|
24153
24553
|
},
|
|
24154
24554
|
children: (item) => (() => {
|
|
24155
|
-
var _el$61 = _tmpl$
|
|
24555
|
+
var _el$61 = _tmpl$469();
|
|
24156
24556
|
insert(_el$61, item);
|
|
24157
24557
|
return _el$61;
|
|
24158
24558
|
})()
|
|
@@ -24162,7 +24562,7 @@ function MedicationGuide(props) {
|
|
|
24162
24562
|
return props.guide.whenToCall;
|
|
24163
24563
|
},
|
|
24164
24564
|
children: (item) => (() => {
|
|
24165
|
-
var _el$62 = _tmpl$
|
|
24565
|
+
var _el$62 = _tmpl$469();
|
|
24166
24566
|
insert(_el$62, item);
|
|
24167
24567
|
return _el$62;
|
|
24168
24568
|
})()
|
|
@@ -24172,7 +24572,7 @@ function MedicationGuide(props) {
|
|
|
24172
24572
|
return props.guide.tips;
|
|
24173
24573
|
},
|
|
24174
24574
|
children: (item) => (() => {
|
|
24175
|
-
var _el$63 = _tmpl$
|
|
24575
|
+
var _el$63 = _tmpl$469();
|
|
24176
24576
|
insert(_el$63, item);
|
|
24177
24577
|
return _el$63;
|
|
24178
24578
|
})()
|
|
@@ -24184,13 +24584,13 @@ function MedicationGuide(props) {
|
|
|
24184
24584
|
return showDisclaimers();
|
|
24185
24585
|
},
|
|
24186
24586
|
get children() {
|
|
24187
|
-
var _el$44 = _tmpl$
|
|
24587
|
+
var _el$44 = _tmpl$2125();
|
|
24188
24588
|
insert(_el$44, createComponent(For, {
|
|
24189
24589
|
get each() {
|
|
24190
24590
|
return props.guide.disclaimers;
|
|
24191
24591
|
},
|
|
24192
24592
|
children: (item) => (() => {
|
|
24193
|
-
var _el$64 = _tmpl$
|
|
24593
|
+
var _el$64 = _tmpl$469();
|
|
24194
24594
|
insert(_el$64, item);
|
|
24195
24595
|
return _el$64;
|
|
24196
24596
|
})()
|
|
@@ -24211,30 +24611,30 @@ function MedicationGuide(props) {
|
|
|
24211
24611
|
})();
|
|
24212
24612
|
}
|
|
24213
24613
|
delegateEvents(["click"]);
|
|
24214
|
-
var _tmpl$
|
|
24215
|
-
var _tmpl$
|
|
24216
|
-
var _tmpl$
|
|
24217
|
-
var _tmpl$
|
|
24218
|
-
var _tmpl$
|
|
24219
|
-
var _tmpl$
|
|
24220
|
-
var _tmpl$
|
|
24221
|
-
var _tmpl$
|
|
24222
|
-
var _tmpl$
|
|
24223
|
-
var _tmpl$
|
|
24224
|
-
var _tmpl$
|
|
24225
|
-
var _tmpl$
|
|
24226
|
-
var _tmpl$
|
|
24227
|
-
var _tmpl$
|
|
24228
|
-
var _tmpl$
|
|
24229
|
-
var _tmpl$
|
|
24230
|
-
var _tmpl$
|
|
24231
|
-
var _tmpl$
|
|
24232
|
-
var _tmpl$
|
|
24233
|
-
var _tmpl$
|
|
24234
|
-
var _tmpl$
|
|
24235
|
-
var _tmpl$
|
|
24236
|
-
var _tmpl$
|
|
24237
|
-
var _tmpl$
|
|
24614
|
+
var _tmpl$400 = /* @__PURE__ */ template(`<span data-testid=channel-chip>`);
|
|
24615
|
+
var _tmpl$2126 = /* @__PURE__ */ template(`<span class=channel-chip__category>`);
|
|
24616
|
+
var _tmpl$3101 = /* @__PURE__ */ template(`<div class=msg-list__header><div class=msg-list__header-title><button type=button class=msg-list__back aria-label="Choose a different team"data-testid=messages-choose-different><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><h2 class=msg-list__title></h2></div><button type=button class=msg-list__new data-testid=messages-new-support><i class="ph-thin ph-plus"aria-hidden=true></i>New message`);
|
|
24617
|
+
var _tmpl$470 = /* @__PURE__ */ template(`<div class=msg-list__state><div class=request-status__spinner>`);
|
|
24618
|
+
var _tmpl$559 = /* @__PURE__ */ template(`<div class="msg-list__state msg-list__state--empty"data-testid=messages-empty><i class="ph-thin ph-chat-circle msg-list__empty-icon"aria-hidden=true></i><p class=msg-list__empty-title>No conversations yet.</p><p class=msg-list__empty-hint>`);
|
|
24619
|
+
var _tmpl$655 = /* @__PURE__ */ template(`<div class=msg-list__scroll data-scrollable>`);
|
|
24620
|
+
var _tmpl$746 = /* @__PURE__ */ template(`<span class=msg-list__pip>`);
|
|
24621
|
+
var _tmpl$841 = /* @__PURE__ */ template(`<button type=button><div class=msg-list__row><span class=msg-list__name-group><span class=msg-list__name></span></span><span class=msg-list__time></span></div><div class=msg-list__row><span class=msg-list__preview>`);
|
|
24622
|
+
var _tmpl$938 = /* @__PURE__ */ template(`<button type=button class=msg-attachment__image-link><img class=msg-attachment__image loading=lazy>`, true, false, false);
|
|
24623
|
+
var _tmpl$034 = /* @__PURE__ */ template(`<button type=button class=msg-attachment__file><span class=msg-attachment__file-icon aria-hidden=true><i class="ph-thin ph-paperclip"></i></span><span class=msg-attachment__file-info><span class=msg-attachment__file-name></span><span class=msg-attachment__file-size>`);
|
|
24624
|
+
var _tmpl$1132 = /* @__PURE__ */ template(`<span class=msg-attachment__fallback>`);
|
|
24625
|
+
var _tmpl$1027 = /* @__PURE__ */ template(`<p class=msg-thread__sender>`);
|
|
24626
|
+
var _tmpl$1133 = /* @__PURE__ */ template(`<div class=msg-thread__text>`);
|
|
24627
|
+
var _tmpl$1222 = /* @__PURE__ */ template(`<div class=msg-attachment>`);
|
|
24628
|
+
var _tmpl$1320 = /* @__PURE__ */ template(`<div><div><p class=msg-thread__meta>`);
|
|
24629
|
+
var _tmpl$1420 = /* @__PURE__ */ template(`<p class=msg-thread__system data-testid=system-message>`);
|
|
24630
|
+
var _tmpl$1520 = /* @__PURE__ */ template(`<p class=msg-thread__text>`);
|
|
24631
|
+
var _tmpl$1620 = /* @__PURE__ */ template(`<button type=button class="msg-compose__staged-remove msg-compose__staged-remove--inline">Remove file`);
|
|
24632
|
+
var _tmpl$1720 = /* @__PURE__ */ template(`<p class=msg-compose__error role=alert>`);
|
|
24633
|
+
var _tmpl$1818 = /* @__PURE__ */ template(`<form class="msg-thread msg-thread--compose"data-testid=support-compose><div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label=Back data-testid=support-compose-back><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><div><h3 class=msg-thread__name>Message support</h3><p class=msg-thread__role>We usually reply within one business day</p></div></div><div class=msg-compose__new><label class=msg-compose__label id=support-category-label>What's this about? <span class=msg-compose__label-optional>(optional)</span></label><div class=msg-compose__categories role=group aria-labelledby=support-category-label></div><label class=msg-compose__label for=support-subject>Subject</label><input id=support-subject class=msg-compose__subject type=text maxlength=500 required placeholder="e.g. Question about my order"><label class=msg-compose__label for=support-body>How can we help?</label><textarea id=support-body class=msg-compose__body rows=6 maxlength=5000 required placeholder="Tell us what's going on\u2026"></textarea><label class="msg-compose__attach msg-compose__attach--block"title="Attach a file"><i class="ph-thin ph-paperclip"aria-hidden=true></i><span class=msg-compose__attach-label></span><input class=msg-compose__file-input type=file data-testid=support-compose-attach></label><button type=submit class=msg-compose__send data-testid=support-compose-send>`);
|
|
24634
|
+
var _tmpl$1916 = /* @__PURE__ */ template(`<button type=button>`);
|
|
24635
|
+
var _tmpl$2016 = /* @__PURE__ */ template(`<form class="msg-thread msg-thread--compose"data-testid=care-compose><div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label=Back data-testid=care-compose-back><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><div><h3 class=msg-thread__name>Message your care team</h3><p class=msg-thread__role>Your prescriber or their team will reply</p></div></div><div class=msg-compose__new><label class=msg-compose__label for=care-body>Message</label><textarea id=care-body class=msg-compose__body rows=6 maxlength=5000 required placeholder="Tell your care team what's going on\u2026"></textarea><label class="msg-compose__attach msg-compose__attach--block"title="Attach a file"><i class="ph-thin ph-paperclip"aria-hidden=true></i><span class=msg-compose__attach-label></span><input class=msg-compose__file-input type=file data-testid=care-compose-attach></label><button type=submit class=msg-compose__send data-testid=care-compose-send>`);
|
|
24636
|
+
var _tmpl$2127 = /* @__PURE__ */ template(`<span class=msg-choice__option-badge data-testid=gate-care-badge>`);
|
|
24637
|
+
var _tmpl$2215 = /* @__PURE__ */ template(`<span class=msg-choice__option-badge data-testid=gate-support-badge>`);
|
|
24238
24638
|
var _tmpl$2313 = /* @__PURE__ */ template(`<p class=msg-choice__notice-text data-testid=messages-gate-note>That conversation isn't available.`);
|
|
24239
24639
|
var _tmpl$2413 = /* @__PURE__ */ template(`<div class="msg-thread msg-choice"data-testid=messages-gate><div class=msg-thread__header><div><h3 class=msg-thread__name>Messages</h3><p class=msg-thread__role>Who do you want to talk to?</p></div></div><div class=msg-choice__options><button type=button class=msg-choice__option data-testid=gate-care-team><i class="ph-thin ph-heartbeat msg-choice__option-icon"aria-hidden=true></i><span class=msg-choice__option-title>My care team</span><span class=msg-choice__option-sub>Treatment, medication or side effects</span></button><button type=button class=msg-choice__option data-testid=gate-support><i class="ph-thin ph-lifebuoy msg-choice__option-icon"aria-hidden=true></i><span class=msg-choice__option-title>Support</span><span class=msg-choice__option-sub>Account, orders, billing or the website`);
|
|
24240
24640
|
var _tmpl$2513 = /* @__PURE__ */ template(`<span class="msg-choice__option-spinner request-status__spinner"data-testid=gate-care-loading>`);
|
|
@@ -24439,14 +24839,14 @@ function MessagesPanel(props) {
|
|
|
24439
24839
|
}
|
|
24440
24840
|
}
|
|
24441
24841
|
const ChannelChip = (p) => (() => {
|
|
24442
|
-
var _el$ = _tmpl$
|
|
24842
|
+
var _el$ = _tmpl$400();
|
|
24443
24843
|
insert(_el$, () => p.source === "clinical" ? "Care team" : "Support", null);
|
|
24444
24844
|
insert(_el$, createComponent(Show, {
|
|
24445
24845
|
get when() {
|
|
24446
24846
|
return memo(() => p.source === "support")() && categoryLabel(p.category);
|
|
24447
24847
|
},
|
|
24448
24848
|
children: (label3) => (() => {
|
|
24449
|
-
var _el$2 = _tmpl$
|
|
24849
|
+
var _el$2 = _tmpl$2126();
|
|
24450
24850
|
insert(_el$2, label3);
|
|
24451
24851
|
return _el$2;
|
|
24452
24852
|
})()
|
|
@@ -24464,19 +24864,19 @@ function MessagesPanel(props) {
|
|
|
24464
24864
|
})();
|
|
24465
24865
|
const channelConversations = () => thread().conversations().filter((c) => c.source === (channel() === "care" ? "clinical" : "support"));
|
|
24466
24866
|
const ConversationList = () => [(() => {
|
|
24467
|
-
var _el$3 = _tmpl$
|
|
24867
|
+
var _el$3 = _tmpl$3101(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.nextSibling, _el$7 = _el$4.nextSibling;
|
|
24468
24868
|
_el$5.$$click = goToGate;
|
|
24469
24869
|
insert(_el$6, () => channel() === "care" ? "My care team" : "Support");
|
|
24470
24870
|
_el$7.$$click = openCompose;
|
|
24471
24871
|
return _el$3;
|
|
24472
24872
|
})(), (() => {
|
|
24473
|
-
var _el$8 = _tmpl$
|
|
24873
|
+
var _el$8 = _tmpl$655();
|
|
24474
24874
|
insert(_el$8, createComponent(Show, {
|
|
24475
24875
|
get when() {
|
|
24476
24876
|
return thread().loadingConversations();
|
|
24477
24877
|
},
|
|
24478
24878
|
get children() {
|
|
24479
|
-
return _tmpl$
|
|
24879
|
+
return _tmpl$470();
|
|
24480
24880
|
}
|
|
24481
24881
|
}), null);
|
|
24482
24882
|
insert(_el$8, createComponent(Show, {
|
|
@@ -24484,7 +24884,7 @@ function MessagesPanel(props) {
|
|
|
24484
24884
|
return memo(() => !!!thread().loadingConversations())() && channelConversations().length === 0;
|
|
24485
24885
|
},
|
|
24486
24886
|
get children() {
|
|
24487
|
-
var _el$0 = _tmpl$
|
|
24887
|
+
var _el$0 = _tmpl$559(), _el$1 = _el$0.firstChild, _el$10 = _el$1.nextSibling, _el$11 = _el$10.nextSibling;
|
|
24488
24888
|
insert(_el$11, createComponent(Show, {
|
|
24489
24889
|
get when() {
|
|
24490
24890
|
return channel() === "care";
|
|
@@ -24500,7 +24900,7 @@ function MessagesPanel(props) {
|
|
|
24500
24900
|
return channelConversations();
|
|
24501
24901
|
},
|
|
24502
24902
|
children: (convo) => (() => {
|
|
24503
|
-
var _el$12 = _tmpl$
|
|
24903
|
+
var _el$12 = _tmpl$841(), _el$13 = _el$12.firstChild, _el$14 = _el$13.firstChild, _el$15 = _el$14.firstChild, _el$16 = _el$14.nextSibling, _el$17 = _el$13.nextSibling, _el$18 = _el$17.firstChild;
|
|
24504
24904
|
_el$12.$$click = () => thread().selectConversation(convo.id);
|
|
24505
24905
|
insert(_el$15, () => convo.participantName ?? "Provider");
|
|
24506
24906
|
insert(_el$14, createComponent(ChannelChip, {
|
|
@@ -24518,7 +24918,7 @@ function MessagesPanel(props) {
|
|
|
24518
24918
|
return (convo.unreadCount ?? 0) > 0;
|
|
24519
24919
|
},
|
|
24520
24920
|
get children() {
|
|
24521
|
-
var _el$19 = _tmpl$
|
|
24921
|
+
var _el$19 = _tmpl$746();
|
|
24522
24922
|
insert(_el$19, () => convo.unreadCount);
|
|
24523
24923
|
return _el$19;
|
|
24524
24924
|
}
|
|
@@ -24560,7 +24960,7 @@ function MessagesPanel(props) {
|
|
|
24560
24960
|
},
|
|
24561
24961
|
get fallback() {
|
|
24562
24962
|
return (() => {
|
|
24563
|
-
var _el$22 = _tmpl$
|
|
24963
|
+
var _el$22 = _tmpl$034(), _el$23 = _el$22.firstChild, _el$24 = _el$23.nextSibling, _el$25 = _el$24.firstChild, _el$26 = _el$25.nextSibling;
|
|
24564
24964
|
_el$22.$$click = openDocument;
|
|
24565
24965
|
insert(_el$25, () => p.attachment.filename);
|
|
24566
24966
|
insert(_el$26, () => formatFileSize(p.attachment.sizeBytes));
|
|
@@ -24575,13 +24975,13 @@ function MessagesPanel(props) {
|
|
|
24575
24975
|
},
|
|
24576
24976
|
get fallback() {
|
|
24577
24977
|
return (() => {
|
|
24578
|
-
var _el$27 = _tmpl$
|
|
24978
|
+
var _el$27 = _tmpl$1132();
|
|
24579
24979
|
insert(_el$27, () => failed() ? "Attachment unavailable" : "Loading\u2026");
|
|
24580
24980
|
return _el$27;
|
|
24581
24981
|
})();
|
|
24582
24982
|
},
|
|
24583
24983
|
get children() {
|
|
24584
|
-
var _el$20 = _tmpl$
|
|
24984
|
+
var _el$20 = _tmpl$938(), _el$21 = _el$20.firstChild;
|
|
24585
24985
|
_el$20.$$click = openDocument;
|
|
24586
24986
|
_el$21.addEventListener("error", () => {
|
|
24587
24987
|
if (retried) {
|
|
@@ -24615,19 +25015,19 @@ function MessagesPanel(props) {
|
|
|
24615
25015
|
},
|
|
24616
25016
|
get fallback() {
|
|
24617
25017
|
return (() => {
|
|
24618
|
-
var _el$34 = _tmpl$
|
|
25018
|
+
var _el$34 = _tmpl$1420();
|
|
24619
25019
|
insert(_el$34, body);
|
|
24620
25020
|
return _el$34;
|
|
24621
25021
|
})();
|
|
24622
25022
|
},
|
|
24623
25023
|
get children() {
|
|
24624
|
-
var _el$28 = _tmpl$
|
|
25024
|
+
var _el$28 = _tmpl$1320(), _el$29 = _el$28.firstChild, _el$33 = _el$29.firstChild;
|
|
24625
25025
|
insert(_el$29, createComponent(Show, {
|
|
24626
25026
|
get when() {
|
|
24627
25027
|
return memo(() => !!!isOwn())() && p.msg.senderName;
|
|
24628
25028
|
},
|
|
24629
25029
|
get children() {
|
|
24630
|
-
var _el$30 = _tmpl$
|
|
25030
|
+
var _el$30 = _tmpl$1027();
|
|
24631
25031
|
insert(_el$30, () => p.msg.senderName);
|
|
24632
25032
|
return _el$30;
|
|
24633
25033
|
}
|
|
@@ -24643,13 +25043,13 @@ function MessagesPanel(props) {
|
|
|
24643
25043
|
},
|
|
24644
25044
|
get fallback() {
|
|
24645
25045
|
return (() => {
|
|
24646
|
-
var _el$35 = _tmpl$
|
|
25046
|
+
var _el$35 = _tmpl$1520();
|
|
24647
25047
|
insert(_el$35, body);
|
|
24648
25048
|
return _el$35;
|
|
24649
25049
|
})();
|
|
24650
25050
|
},
|
|
24651
25051
|
get children() {
|
|
24652
|
-
var _el$31 = _tmpl$
|
|
25052
|
+
var _el$31 = _tmpl$1133();
|
|
24653
25053
|
effect(() => _el$31.innerHTML = sanitizeMessageHtml(body()));
|
|
24654
25054
|
return _el$31;
|
|
24655
25055
|
}
|
|
@@ -24661,7 +25061,7 @@ function MessagesPanel(props) {
|
|
|
24661
25061
|
return p.msg.attachments?.length;
|
|
24662
25062
|
},
|
|
24663
25063
|
get children() {
|
|
24664
|
-
var _el$32 = _tmpl$
|
|
25064
|
+
var _el$32 = _tmpl$1222();
|
|
24665
25065
|
insert(_el$32, createComponent(For, {
|
|
24666
25066
|
get each() {
|
|
24667
25067
|
return p.msg.attachments;
|
|
@@ -24688,13 +25088,13 @@ function MessagesPanel(props) {
|
|
|
24688
25088
|
});
|
|
24689
25089
|
};
|
|
24690
25090
|
const NewSupportThread = () => (() => {
|
|
24691
|
-
var _el$36 = _tmpl$
|
|
25091
|
+
var _el$36 = _tmpl$1818(), _el$37 = _el$36.firstChild, _el$38 = _el$37.firstChild, _el$39 = _el$37.nextSibling, _el$40 = _el$39.firstChild, _el$41 = _el$40.nextSibling, _el$42 = _el$41.nextSibling, _el$43 = _el$42.nextSibling, _el$44 = _el$43.nextSibling, _el$45 = _el$44.nextSibling, _el$46 = _el$45.nextSibling, _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling, _el$49 = _el$48.nextSibling, _el$52 = _el$46.nextSibling;
|
|
24692
25092
|
_el$36.addEventListener("submit", submitCompose);
|
|
24693
25093
|
_el$38.$$click = () => setComposing(false);
|
|
24694
25094
|
insert(_el$41, createComponent(For, {
|
|
24695
25095
|
each: SUPPORT_CATEGORIES,
|
|
24696
25096
|
children: (c) => (() => {
|
|
24697
|
-
var _el$53 = _tmpl$
|
|
25097
|
+
var _el$53 = _tmpl$1916();
|
|
24698
25098
|
_el$53.$$click = () => setNewCategory((prev) => prev === c.key ? null : c.key);
|
|
24699
25099
|
insert(_el$53, () => c.label);
|
|
24700
25100
|
effect((_p$) => {
|
|
@@ -24720,7 +25120,7 @@ function MessagesPanel(props) {
|
|
|
24720
25120
|
return newFile();
|
|
24721
25121
|
},
|
|
24722
25122
|
get children() {
|
|
24723
|
-
var _el$50 = _tmpl$
|
|
25123
|
+
var _el$50 = _tmpl$1620();
|
|
24724
25124
|
_el$50.$$click = () => setNewFile(null);
|
|
24725
25125
|
return _el$50;
|
|
24726
25126
|
}
|
|
@@ -24730,7 +25130,7 @@ function MessagesPanel(props) {
|
|
|
24730
25130
|
return attachError() || composeError();
|
|
24731
25131
|
},
|
|
24732
25132
|
get children() {
|
|
24733
|
-
var _el$51 = _tmpl$
|
|
25133
|
+
var _el$51 = _tmpl$1720();
|
|
24734
25134
|
insert(_el$51, () => attachError() ?? composeError());
|
|
24735
25135
|
return _el$51;
|
|
24736
25136
|
}
|
|
@@ -24750,7 +25150,7 @@ function MessagesPanel(props) {
|
|
|
24750
25150
|
return _el$36;
|
|
24751
25151
|
})();
|
|
24752
25152
|
const NewCareTeamThread = () => (() => {
|
|
24753
|
-
var _el$54 = _tmpl$
|
|
25153
|
+
var _el$54 = _tmpl$2016(), _el$55 = _el$54.firstChild, _el$56 = _el$55.firstChild, _el$57 = _el$55.nextSibling, _el$58 = _el$57.firstChild, _el$59 = _el$58.nextSibling, _el$60 = _el$59.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$62.nextSibling, _el$66 = _el$60.nextSibling;
|
|
24754
25154
|
_el$54.addEventListener("submit", submitCareCompose);
|
|
24755
25155
|
_el$56.$$click = () => setComposing(false);
|
|
24756
25156
|
_el$59.$$input = (e) => setNewBody(e.currentTarget.value);
|
|
@@ -24761,7 +25161,7 @@ function MessagesPanel(props) {
|
|
|
24761
25161
|
return newFile();
|
|
24762
25162
|
},
|
|
24763
25163
|
get children() {
|
|
24764
|
-
var _el$64 = _tmpl$
|
|
25164
|
+
var _el$64 = _tmpl$1620();
|
|
24765
25165
|
_el$64.$$click = () => setNewFile(null);
|
|
24766
25166
|
return _el$64;
|
|
24767
25167
|
}
|
|
@@ -24771,7 +25171,7 @@ function MessagesPanel(props) {
|
|
|
24771
25171
|
return attachError() || composeError();
|
|
24772
25172
|
},
|
|
24773
25173
|
get children() {
|
|
24774
|
-
var _el$65 = _tmpl$
|
|
25174
|
+
var _el$65 = _tmpl$1720();
|
|
24775
25175
|
insert(_el$65, () => attachError() ?? composeError());
|
|
24776
25176
|
return _el$65;
|
|
24777
25177
|
}
|
|
@@ -24807,7 +25207,7 @@ function MessagesPanel(props) {
|
|
|
24807
25207
|
return careUnreadCount() > 0;
|
|
24808
25208
|
},
|
|
24809
25209
|
get children() {
|
|
24810
|
-
var _el$74 = _tmpl$
|
|
25210
|
+
var _el$74 = _tmpl$2127();
|
|
24811
25211
|
insert(_el$74, careUnreadCount);
|
|
24812
25212
|
return _el$74;
|
|
24813
25213
|
}
|
|
@@ -24828,7 +25228,7 @@ function MessagesPanel(props) {
|
|
|
24828
25228
|
return supportUnreadCount() > 0;
|
|
24829
25229
|
},
|
|
24830
25230
|
get children() {
|
|
24831
|
-
var _el$79 = _tmpl$
|
|
25231
|
+
var _el$79 = _tmpl$2215();
|
|
24832
25232
|
insert(_el$79, supportUnreadCount);
|
|
24833
25233
|
return _el$79;
|
|
24834
25234
|
}
|
|
@@ -24905,7 +25305,7 @@ function MessagesPanel(props) {
|
|
|
24905
25305
|
return thread().loadingMessages();
|
|
24906
25306
|
},
|
|
24907
25307
|
get children() {
|
|
24908
|
-
return _tmpl$
|
|
25308
|
+
return _tmpl$470();
|
|
24909
25309
|
}
|
|
24910
25310
|
}), _el$101);
|
|
24911
25311
|
insert(_el$99, createComponent(For, {
|
|
@@ -25060,18 +25460,18 @@ function MessagesPanel(props) {
|
|
|
25060
25460
|
})();
|
|
25061
25461
|
}
|
|
25062
25462
|
delegateEvents(["click", "input", "keydown"]);
|
|
25063
|
-
var _tmpl$
|
|
25064
|
-
var _tmpl$
|
|
25065
|
-
var _tmpl$
|
|
25066
|
-
var _tmpl$
|
|
25067
|
-
var _tmpl$
|
|
25068
|
-
var _tmpl$
|
|
25069
|
-
var _tmpl$
|
|
25070
|
-
var _tmpl$
|
|
25071
|
-
var _tmpl$
|
|
25072
|
-
var _tmpl$
|
|
25073
|
-
var _tmpl$
|
|
25074
|
-
var _tmpl$
|
|
25463
|
+
var _tmpl$401 = /* @__PURE__ */ template(`<ul class=history-list data-testid=history-list>`);
|
|
25464
|
+
var _tmpl$2128 = /* @__PURE__ */ template(`<div class=portal-state data-testid=history-error><p>We couldn't load your submitted surveys. Please try again in a moment.`);
|
|
25465
|
+
var _tmpl$3102 = /* @__PURE__ */ template(`<div class=portal-state data-testid=history-empty><p>No submitted questionnaires yet.</p><p class=history-hint>Your intake and refill check-in answers will appear here once you've submitted them.`);
|
|
25466
|
+
var _tmpl$471 = /* @__PURE__ */ template(`<li><button type=button class=history-row><span class=history-row__mode></span><span class=history-row__date></span><i class="ph-thin ph-caret-right portal-icon"aria-hidden=true>`);
|
|
25467
|
+
var _tmpl$560 = /* @__PURE__ */ template(`<div data-testid=history-detail><button type=button class="portal-btn portal-btn--ghost history-back"><i class="ph-thin ph-caret-left portal-icon"aria-hidden=true></i> All questionnaires`);
|
|
25468
|
+
var _tmpl$656 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your answers\u2026`);
|
|
25469
|
+
var _tmpl$747 = /* @__PURE__ */ template(`<div class=portal-state data-testid=history-detail-error><p>We couldn't load this questionnaire. Please try again in a moment.`);
|
|
25470
|
+
var _tmpl$842 = /* @__PURE__ */ template(`<article class=history-transcript><header class=history-transcript__head><h2></h2><p class=history-transcript__meta>Submitted <!>. Your answers are shown exactly as they were at the time \u2014 they aren't updated afterwards.`);
|
|
25471
|
+
var _tmpl$939 = /* @__PURE__ */ template(`<section class=history-section><h3 class=lab-label>`);
|
|
25472
|
+
var _tmpl$035 = /* @__PURE__ */ template(`<div class=history-qa><p class=history-qa__q></p><p class=history-qa__a>`);
|
|
25473
|
+
var _tmpl$1134 = /* @__PURE__ */ template(`<div class=survey-history data-testid=survey-history>`);
|
|
25474
|
+
var _tmpl$1028 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your submitted surveys\u2026`);
|
|
25075
25475
|
var MODE_LABELS = {
|
|
25076
25476
|
initial: "Intake questionnaire",
|
|
25077
25477
|
refill: "Refill check-in"
|
|
@@ -25099,7 +25499,7 @@ function SurveyHistory() {
|
|
|
25099
25499
|
return !list.error;
|
|
25100
25500
|
},
|
|
25101
25501
|
get fallback() {
|
|
25102
|
-
return _tmpl$
|
|
25502
|
+
return _tmpl$2128();
|
|
25103
25503
|
},
|
|
25104
25504
|
get children() {
|
|
25105
25505
|
return createComponent(Show, {
|
|
@@ -25107,16 +25507,16 @@ function SurveyHistory() {
|
|
|
25107
25507
|
return (list() ?? []).length > 0;
|
|
25108
25508
|
},
|
|
25109
25509
|
get fallback() {
|
|
25110
|
-
return _tmpl$
|
|
25510
|
+
return _tmpl$3102();
|
|
25111
25511
|
},
|
|
25112
25512
|
get children() {
|
|
25113
|
-
var _el$ = _tmpl$
|
|
25513
|
+
var _el$ = _tmpl$401();
|
|
25114
25514
|
insert(_el$, createComponent(For, {
|
|
25115
25515
|
get each() {
|
|
25116
25516
|
return list();
|
|
25117
25517
|
},
|
|
25118
25518
|
children: (item) => (() => {
|
|
25119
|
-
var _el$4 = _tmpl$
|
|
25519
|
+
var _el$4 = _tmpl$471(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
|
|
25120
25520
|
_el$5.$$click = () => setSelectedId(item.id);
|
|
25121
25521
|
insert(_el$6, () => MODE_LABELS[item.mode] ?? "Questionnaire");
|
|
25122
25522
|
insert(_el$7, () => formatDate3(item.submittedAt) ?? "Date unavailable");
|
|
@@ -25129,14 +25529,14 @@ function SurveyHistory() {
|
|
|
25129
25529
|
}
|
|
25130
25530
|
});
|
|
25131
25531
|
const DetailView = () => (() => {
|
|
25132
|
-
var _el$8 = _tmpl$
|
|
25532
|
+
var _el$8 = _tmpl$560(), _el$9 = _el$8.firstChild;
|
|
25133
25533
|
_el$9.$$click = () => setSelectedId(null);
|
|
25134
25534
|
insert(_el$8, createComponent(Show, {
|
|
25135
25535
|
get when() {
|
|
25136
25536
|
return !detail.loading;
|
|
25137
25537
|
},
|
|
25138
25538
|
get fallback() {
|
|
25139
|
-
return _tmpl$
|
|
25539
|
+
return _tmpl$656();
|
|
25140
25540
|
},
|
|
25141
25541
|
get children() {
|
|
25142
25542
|
return createComponent(Show, {
|
|
@@ -25144,10 +25544,10 @@ function SurveyHistory() {
|
|
|
25144
25544
|
return memo(() => !!!detail.error)() && detail();
|
|
25145
25545
|
},
|
|
25146
25546
|
get fallback() {
|
|
25147
|
-
return _tmpl$
|
|
25547
|
+
return _tmpl$747();
|
|
25148
25548
|
},
|
|
25149
25549
|
children: (t) => (() => {
|
|
25150
|
-
var _el$10 = _tmpl$
|
|
25550
|
+
var _el$10 = _tmpl$842(), _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling, _el$14 = _el$13.firstChild, _el$16 = _el$14.nextSibling; _el$16.nextSibling;
|
|
25151
25551
|
insert(_el$12, () => MODE_LABELS[t().mode] ?? "Questionnaire");
|
|
25152
25552
|
insert(_el$13, () => formatDate3(t().completedAt ?? t().createdAt) ?? "\u2014", _el$16);
|
|
25153
25553
|
insert(_el$10, createComponent(For, {
|
|
@@ -25155,14 +25555,14 @@ function SurveyHistory() {
|
|
|
25155
25555
|
return t().sections;
|
|
25156
25556
|
},
|
|
25157
25557
|
children: (section) => (() => {
|
|
25158
|
-
var _el$17 = _tmpl$
|
|
25558
|
+
var _el$17 = _tmpl$939(), _el$18 = _el$17.firstChild;
|
|
25159
25559
|
insert(_el$18, () => section.title);
|
|
25160
25560
|
insert(_el$17, createComponent(For, {
|
|
25161
25561
|
get each() {
|
|
25162
25562
|
return section.items;
|
|
25163
25563
|
},
|
|
25164
25564
|
children: (item) => (() => {
|
|
25165
|
-
var _el$19 = _tmpl$
|
|
25565
|
+
var _el$19 = _tmpl$035(), _el$20 = _el$19.firstChild, _el$21 = _el$20.nextSibling;
|
|
25166
25566
|
insert(_el$20, () => item.question);
|
|
25167
25567
|
insert(_el$21, () => item.answer);
|
|
25168
25568
|
return _el$19;
|
|
@@ -25179,13 +25579,13 @@ function SurveyHistory() {
|
|
|
25179
25579
|
return _el$8;
|
|
25180
25580
|
})();
|
|
25181
25581
|
return (() => {
|
|
25182
|
-
var _el$22 = _tmpl$
|
|
25582
|
+
var _el$22 = _tmpl$1134();
|
|
25183
25583
|
insert(_el$22, createComponent(Show, {
|
|
25184
25584
|
get when() {
|
|
25185
25585
|
return !list.loading || selectedId();
|
|
25186
25586
|
},
|
|
25187
25587
|
get fallback() {
|
|
25188
|
-
return _tmpl$
|
|
25588
|
+
return _tmpl$1028();
|
|
25189
25589
|
},
|
|
25190
25590
|
get children() {
|
|
25191
25591
|
return createComponent(Show, {
|
|
@@ -25207,19 +25607,19 @@ function SurveyHistory() {
|
|
|
25207
25607
|
delegateEvents(["click"]);
|
|
25208
25608
|
|
|
25209
25609
|
// src/pages/MemberPortal.tsx
|
|
25210
|
-
var _tmpl$
|
|
25211
|
-
var _tmpl$
|
|
25212
|
-
var _tmpl$
|
|
25213
|
-
var _tmpl$
|
|
25214
|
-
var _tmpl$
|
|
25215
|
-
var _tmpl$
|
|
25216
|
-
var _tmpl$
|
|
25217
|
-
var _tmpl$
|
|
25218
|
-
var _tmpl$
|
|
25219
|
-
var _tmpl$
|
|
25220
|
-
var _tmpl$
|
|
25221
|
-
var _tmpl$
|
|
25222
|
-
var _tmpl$
|
|
25610
|
+
var _tmpl$406 = /* @__PURE__ */ template(`<span class=portal-item__live aria-label="In progress">`);
|
|
25611
|
+
var _tmpl$2129 = /* @__PURE__ */ template(`<span>`);
|
|
25612
|
+
var _tmpl$3103 = /* @__PURE__ */ template(`<button type=button><i aria-hidden=true></i><span class=portal-item__label>`);
|
|
25613
|
+
var _tmpl$474 = /* @__PURE__ */ template(`<div class=rx-others data-testid=rx-others><span class=lab-label>Other orders`);
|
|
25614
|
+
var _tmpl$561 = /* @__PURE__ */ template(`<div class=rx-stack>`);
|
|
25615
|
+
var _tmpl$657 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your portal\u2026`);
|
|
25616
|
+
var _tmpl$748 = /* @__PURE__ */ template(`<div class="request-status__error portal-state"><p class=request-status__error-text></p><button type=button class="portal-btn portal-btn--ghost">Try again`);
|
|
25617
|
+
var _tmpl$843 = /* @__PURE__ */ template(`<p class=portal-rail__hi>Hi, `);
|
|
25618
|
+
var _tmpl$940 = /* @__PURE__ */ template(`<a class=portal-rail__back data-testid=rail-back>\u2190 Back to shop`);
|
|
25619
|
+
var _tmpl$036 = /* @__PURE__ */ template(`<a class=portal-topbar-back data-testid=mobile-back><span aria-hidden=true>\u2190</span> Back to shop`);
|
|
25620
|
+
var _tmpl$1135 = /* @__PURE__ */ template(`<main class=portal data-testid=member-portal><aside class=portal-rail><div class=portal-rail__brand><a class=portal-rail__logo></a><span class=portal-rail__dot aria-hidden=true></span></div><nav class=portal-rail__nav aria-label="Portal sections"></nav><div class=portal-rail__foot><button type=button class=portal-rail__signout>\u2014 Sign out</button></div></aside><section class=portal-content><div></div></section><nav class=portal-tabs aria-label="Portal sections">`);
|
|
25621
|
+
var _tmpl$1029 = /* @__PURE__ */ template(`<span class=portal-rail__wordmark>`);
|
|
25622
|
+
var _tmpl$1136 = /* @__PURE__ */ template(`<img>`);
|
|
25223
25623
|
var ICONS = {
|
|
25224
25624
|
tracker: "ph-thin ph-path",
|
|
25225
25625
|
instructions: "ph-thin ph-first-aid-kit",
|
|
@@ -25346,7 +25746,7 @@ function MemberPortal(props) {
|
|
|
25346
25746
|
return tabs();
|
|
25347
25747
|
},
|
|
25348
25748
|
children: (item) => (() => {
|
|
25349
|
-
var _el$ = _tmpl$
|
|
25749
|
+
var _el$ = _tmpl$3103(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
25350
25750
|
_el$.$$click = () => selectTab(item.key);
|
|
25351
25751
|
insert(_el$3, () => item.label);
|
|
25352
25752
|
insert(_el$, createComponent(Show, {
|
|
@@ -25354,7 +25754,7 @@ function MemberPortal(props) {
|
|
|
25354
25754
|
return memo(() => item.key === "tracker")() && inMotion();
|
|
25355
25755
|
},
|
|
25356
25756
|
get children() {
|
|
25357
|
-
return _tmpl$
|
|
25757
|
+
return _tmpl$406();
|
|
25358
25758
|
}
|
|
25359
25759
|
}), null);
|
|
25360
25760
|
insert(_el$, createComponent(Show, {
|
|
@@ -25362,7 +25762,7 @@ function MemberPortal(props) {
|
|
|
25362
25762
|
return memo(() => item.key === "messages")() && unreadTotal() > 0;
|
|
25363
25763
|
},
|
|
25364
25764
|
get children() {
|
|
25365
|
-
var _el$5 = _tmpl$
|
|
25765
|
+
var _el$5 = _tmpl$2129();
|
|
25366
25766
|
insert(_el$5, (() => {
|
|
25367
25767
|
var _c$ = memo(() => unreadTotal() > 99);
|
|
25368
25768
|
return () => _c$() ? "99+" : unreadTotal();
|
|
@@ -25420,7 +25820,7 @@ function MemberPortal(props) {
|
|
|
25420
25820
|
});
|
|
25421
25821
|
},
|
|
25422
25822
|
children: (primary) => (() => {
|
|
25423
|
-
var _el$6 = _tmpl$
|
|
25823
|
+
var _el$6 = _tmpl$561();
|
|
25424
25824
|
insert(_el$6, createComponent(OrderTracker, {
|
|
25425
25825
|
get request() {
|
|
25426
25826
|
return data.toTrackerRequest(primary());
|
|
@@ -25450,7 +25850,7 @@ function MemberPortal(props) {
|
|
|
25450
25850
|
return data.otherRx().length > 0;
|
|
25451
25851
|
},
|
|
25452
25852
|
get children() {
|
|
25453
|
-
var _el$7 = _tmpl$
|
|
25853
|
+
var _el$7 = _tmpl$474(); _el$7.firstChild;
|
|
25454
25854
|
insert(_el$7, createComponent(For, {
|
|
25455
25855
|
get each() {
|
|
25456
25856
|
return data.otherRx();
|
|
@@ -25486,7 +25886,7 @@ function MemberPortal(props) {
|
|
|
25486
25886
|
return !data.loading();
|
|
25487
25887
|
},
|
|
25488
25888
|
get fallback() {
|
|
25489
|
-
return _tmpl$
|
|
25889
|
+
return _tmpl$657();
|
|
25490
25890
|
},
|
|
25491
25891
|
get children() {
|
|
25492
25892
|
return createComponent(Show, {
|
|
@@ -25495,7 +25895,7 @@ function MemberPortal(props) {
|
|
|
25495
25895
|
},
|
|
25496
25896
|
get fallback() {
|
|
25497
25897
|
return (() => {
|
|
25498
|
-
var _el$0 = _tmpl$
|
|
25898
|
+
var _el$0 = _tmpl$748(), _el$1 = _el$0.firstChild, _el$10 = _el$1.nextSibling;
|
|
25499
25899
|
insert(_el$1, () => data.error());
|
|
25500
25900
|
_el$10.$$click = () => data.refetch();
|
|
25501
25901
|
return _el$0;
|
|
@@ -25592,20 +25992,20 @@ function MemberPortal(props) {
|
|
|
25592
25992
|
}
|
|
25593
25993
|
});
|
|
25594
25994
|
return (() => {
|
|
25595
|
-
var _el$11 = _tmpl$
|
|
25995
|
+
var _el$11 = _tmpl$1135(), _el$12 = _el$11.firstChild, _el$13 = _el$12.firstChild, _el$14 = _el$13.firstChild, _el$17 = _el$13.nextSibling, _el$18 = _el$17.nextSibling, _el$20 = _el$18.firstChild, _el$22 = _el$12.nextSibling, _el$23 = _el$22.firstChild, _el$24 = _el$22.nextSibling;
|
|
25596
25996
|
insert(_el$14, createComponent(Show, {
|
|
25597
25997
|
get when() {
|
|
25598
25998
|
return props.brand.logoSrc;
|
|
25599
25999
|
},
|
|
25600
26000
|
get fallback() {
|
|
25601
26001
|
return (() => {
|
|
25602
|
-
var _el$25 = _tmpl$
|
|
26002
|
+
var _el$25 = _tmpl$1029();
|
|
25603
26003
|
insert(_el$25, () => props.brand.name);
|
|
25604
26004
|
return _el$25;
|
|
25605
26005
|
})();
|
|
25606
26006
|
},
|
|
25607
26007
|
children: (src) => (() => {
|
|
25608
|
-
var _el$26 = _tmpl$
|
|
26008
|
+
var _el$26 = _tmpl$1136();
|
|
25609
26009
|
effect((_p$) => {
|
|
25610
26010
|
var _v$8 = src(), _v$9 = props.brand.name;
|
|
25611
26011
|
_v$8 !== _p$.e && setAttribute(_el$26, "src", _p$.e = _v$8);
|
|
@@ -25623,7 +26023,7 @@ function MemberPortal(props) {
|
|
|
25623
26023
|
return data.firstName() !== "Member";
|
|
25624
26024
|
},
|
|
25625
26025
|
get children() {
|
|
25626
|
-
var _el$15 = _tmpl$
|
|
26026
|
+
var _el$15 = _tmpl$843(); _el$15.firstChild;
|
|
25627
26027
|
insert(_el$15, () => data.firstName(), null);
|
|
25628
26028
|
return _el$15;
|
|
25629
26029
|
}
|
|
@@ -25636,7 +26036,7 @@ function MemberPortal(props) {
|
|
|
25636
26036
|
return showBackLink();
|
|
25637
26037
|
},
|
|
25638
26038
|
get children() {
|
|
25639
|
-
var _el$19 = _tmpl$
|
|
26039
|
+
var _el$19 = _tmpl$940();
|
|
25640
26040
|
effect(() => setAttribute(_el$19, "href", catalogHref()));
|
|
25641
26041
|
return _el$19;
|
|
25642
26042
|
}
|
|
@@ -25647,7 +26047,7 @@ function MemberPortal(props) {
|
|
|
25647
26047
|
return showBackLink();
|
|
25648
26048
|
},
|
|
25649
26049
|
get children() {
|
|
25650
|
-
var _el$21 = _tmpl$
|
|
26050
|
+
var _el$21 = _tmpl$036();
|
|
25651
26051
|
effect(() => setAttribute(_el$21, "href", catalogHref()));
|
|
25652
26052
|
return _el$21;
|
|
25653
26053
|
}
|
|
@@ -25673,11 +26073,11 @@ function MemberPortal(props) {
|
|
|
25673
26073
|
})();
|
|
25674
26074
|
}
|
|
25675
26075
|
delegateEvents(["click"]);
|
|
25676
|
-
var _tmpl$
|
|
25677
|
-
var _tmpl$
|
|
25678
|
-
var _tmpl$
|
|
25679
|
-
var _tmpl$
|
|
25680
|
-
var _tmpl$
|
|
26076
|
+
var _tmpl$407 = /* @__PURE__ */ template(`<div style="padding:1rem 1.25rem;border-radius:var(--app-affiliate-radius);background:var(--app-affiliate-warning-bg);color:var(--app-affiliate-warning-fg);border:1px solid var(--app-affiliate-border)">Your affiliate account is awaiting approval. Once an admin activates it, your referral link will start earning commissions.`);
|
|
26077
|
+
var _tmpl$2130 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Overview`);
|
|
26078
|
+
var _tmpl$3104 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Loading stats\u2026`);
|
|
26079
|
+
var _tmpl$475 = /* @__PURE__ */ template(`<div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));gap:1rem">`);
|
|
26080
|
+
var _tmpl$563 = /* @__PURE__ */ template(`<div style="padding:1.25rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius)"><div style=font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--app-affiliate-fg-muted);margin-bottom:0.5rem></div><div style=font-family:var(--app-affiliate-font-display);font-size:1.75rem;color:var(--app-affiliate-fg)>`);
|
|
25681
26081
|
function formatMoney(cents) {
|
|
25682
26082
|
return `$${(cents / 100).toFixed(2)}`;
|
|
25683
26083
|
}
|
|
@@ -25710,13 +26110,13 @@ function AffiliateOverview() {
|
|
|
25710
26110
|
value: `${(s.conversionRate * 100).toFixed(1)}%`
|
|
25711
26111
|
}];
|
|
25712
26112
|
return (() => {
|
|
25713
|
-
var _el$ = _tmpl$
|
|
26113
|
+
var _el$ = _tmpl$2130(); _el$.firstChild;
|
|
25714
26114
|
insert(_el$, createComponent(Show, {
|
|
25715
26115
|
get when() {
|
|
25716
26116
|
return isPending();
|
|
25717
26117
|
},
|
|
25718
26118
|
get children() {
|
|
25719
|
-
return _tmpl$
|
|
26119
|
+
return _tmpl$407();
|
|
25720
26120
|
}
|
|
25721
26121
|
}), null);
|
|
25722
26122
|
insert(_el$, createComponent(Show, {
|
|
@@ -25724,16 +26124,16 @@ function AffiliateOverview() {
|
|
|
25724
26124
|
return stats();
|
|
25725
26125
|
},
|
|
25726
26126
|
get fallback() {
|
|
25727
|
-
return _tmpl$
|
|
26127
|
+
return _tmpl$3104();
|
|
25728
26128
|
},
|
|
25729
26129
|
children: (s) => (() => {
|
|
25730
|
-
var _el$5 = _tmpl$
|
|
26130
|
+
var _el$5 = _tmpl$475();
|
|
25731
26131
|
insert(_el$5, createComponent(For, {
|
|
25732
26132
|
get each() {
|
|
25733
26133
|
return cards(s());
|
|
25734
26134
|
},
|
|
25735
26135
|
children: (card) => (() => {
|
|
25736
|
-
var _el$6 = _tmpl$
|
|
26136
|
+
var _el$6 = _tmpl$563(), _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling;
|
|
25737
26137
|
insert(_el$7, () => card.label);
|
|
25738
26138
|
insert(_el$8, () => card.value);
|
|
25739
26139
|
return _el$6;
|
|
@@ -25745,11 +26145,11 @@ function AffiliateOverview() {
|
|
|
25745
26145
|
return _el$;
|
|
25746
26146
|
})();
|
|
25747
26147
|
}
|
|
25748
|
-
var _tmpl$
|
|
25749
|
-
var _tmpl$
|
|
25750
|
-
var _tmpl$
|
|
25751
|
-
var _tmpl$
|
|
25752
|
-
var _tmpl$
|
|
26148
|
+
var _tmpl$408 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden"><table class=app-affiliate-table style=width:100%;border-collapse:collapse;font-size:0.875rem><thead><tr style=background:var(--app-affiliate-surface-light)><th>Date</th><th>Type</th><th>Order total</th><th>Commission</th><th>Status</th></tr></thead><tbody>`);
|
|
26149
|
+
var _tmpl$2131 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Conversions`);
|
|
26150
|
+
var _tmpl$3105 = /* @__PURE__ */ template(`<div style="padding:2rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);color:var(--app-affiliate-fg-muted);text-align:center">No conversions yet. Share your referral link to start earning.`);
|
|
26151
|
+
var _tmpl$476 = /* @__PURE__ */ template(`<span title="Override commission earned on a sub-affiliate's sale"style="margin-left:0.4rem;padding:0.1rem 0.45rem;border-radius:999px;font-size:0.65rem;font-weight:600;background:var(--app-affiliate-primary-soft);color:var(--app-affiliate-primary-soft-fg)">Override`);
|
|
26152
|
+
var _tmpl$564 = /* @__PURE__ */ template(`<tr style="border-top:1px solid var(--app-affiliate-border)"><td data-label=Date></td><td data-label=Type></td><td data-label="Order total"></td><td data-label=Commission style=color:var(--app-affiliate-fg);font-weight:600></td><td data-label=Status><span style="padding:0.2rem 0.6rem;border-radius:999px;font-size:0.75rem;font-weight:600">`);
|
|
25753
26153
|
function formatMoney2(cents) {
|
|
25754
26154
|
return `$${(cents / 100).toFixed(2)}`;
|
|
25755
26155
|
}
|
|
@@ -25787,22 +26187,22 @@ function AffiliateConversions() {
|
|
|
25787
26187
|
limit: 100
|
|
25788
26188
|
});
|
|
25789
26189
|
return (() => {
|
|
25790
|
-
var _el$ = _tmpl$
|
|
26190
|
+
var _el$ = _tmpl$2131(); _el$.firstChild;
|
|
25791
26191
|
insert(_el$, createComponent(Show, {
|
|
25792
26192
|
get when() {
|
|
25793
26193
|
return (conversions() ?? []).length > 0;
|
|
25794
26194
|
},
|
|
25795
26195
|
get fallback() {
|
|
25796
|
-
return _tmpl$
|
|
26196
|
+
return _tmpl$3105();
|
|
25797
26197
|
},
|
|
25798
26198
|
get children() {
|
|
25799
|
-
var _el$3 = _tmpl$
|
|
26199
|
+
var _el$3 = _tmpl$408(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$9 = _el$8.nextSibling, _el$0 = _el$9.nextSibling, _el$1 = _el$0.nextSibling, _el$10 = _el$5.nextSibling;
|
|
25800
26200
|
insert(_el$10, createComponent(For, {
|
|
25801
26201
|
get each() {
|
|
25802
26202
|
return conversions();
|
|
25803
26203
|
},
|
|
25804
26204
|
children: (c) => (() => {
|
|
25805
|
-
var _el$12 = _tmpl$
|
|
26205
|
+
var _el$12 = _tmpl$564(), _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling, _el$16 = _el$14.nextSibling, _el$17 = _el$16.nextSibling, _el$18 = _el$17.nextSibling, _el$19 = _el$18.firstChild;
|
|
25806
26206
|
insert(_el$13, () => formatDate4(c.createdAt));
|
|
25807
26207
|
insert(_el$14, () => c.paymentType, null);
|
|
25808
26208
|
insert(_el$14, createComponent(Show, {
|
|
@@ -25810,7 +26210,7 @@ function AffiliateConversions() {
|
|
|
25810
26210
|
return c.tier === 2;
|
|
25811
26211
|
},
|
|
25812
26212
|
get children() {
|
|
25813
|
-
return _tmpl$
|
|
26213
|
+
return _tmpl$476();
|
|
25814
26214
|
}
|
|
25815
26215
|
}), null);
|
|
25816
26216
|
insert(_el$16, () => formatMoney2(c.orderTotalCents));
|
|
@@ -25881,10 +26281,10 @@ function td() {
|
|
|
25881
26281
|
color: "var(--app-affiliate-fg)"
|
|
25882
26282
|
};
|
|
25883
26283
|
}
|
|
25884
|
-
var _tmpl$
|
|
25885
|
-
var _tmpl$
|
|
25886
|
-
var _tmpl$
|
|
25887
|
-
var _tmpl$
|
|
26284
|
+
var _tmpl$409 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden"><table class=app-affiliate-table style=width:100%;border-collapse:collapse;font-size:0.875rem><thead><tr style=background:var(--app-affiliate-surface-light)><th>Code</th><th>Name</th><th>Status</th><th>Joined</th></tr></thead><tbody>`);
|
|
26285
|
+
var _tmpl$2132 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Downline</h1><p style=margin:0;color:var(--app-affiliate-fg-muted);font-size:0.875rem>Affiliates you've referred. You earn an override commission on every qualifying sale they make \u2014 those show up as \u201COverride\u201D rows on your Conversions.`);
|
|
26286
|
+
var _tmpl$3106 = /* @__PURE__ */ template(`<div style="padding:2rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);color:var(--app-affiliate-fg-muted);text-align:center">No sub-affiliates yet.`);
|
|
26287
|
+
var _tmpl$477 = /* @__PURE__ */ template(`<tr style="border-top:1px solid var(--app-affiliate-border)"><td data-label=Code style=font-family:var(--app-affiliate-font-mono)></td><td data-label=Name></td><td data-label=Status><span style="padding:0.2rem 0.6rem;border-radius:999px;font-size:0.75rem;font-weight:600"></span></td><td data-label=Joined>`);
|
|
25888
26288
|
function formatDate5(iso) {
|
|
25889
26289
|
const d = new Date(iso);
|
|
25890
26290
|
if (Number.isNaN(d.getTime())) return iso;
|
|
@@ -25917,22 +26317,22 @@ function AffiliateDownline() {
|
|
|
25917
26317
|
downline
|
|
25918
26318
|
} = useAffiliateDownline();
|
|
25919
26319
|
return (() => {
|
|
25920
|
-
var _el$ = _tmpl$
|
|
26320
|
+
var _el$ = _tmpl$2132(), _el$2 = _el$.firstChild; _el$2.nextSibling;
|
|
25921
26321
|
insert(_el$, createComponent(Show, {
|
|
25922
26322
|
get when() {
|
|
25923
26323
|
return (downline() ?? []).length > 0;
|
|
25924
26324
|
},
|
|
25925
26325
|
get fallback() {
|
|
25926
|
-
return _tmpl$
|
|
26326
|
+
return _tmpl$3106();
|
|
25927
26327
|
},
|
|
25928
26328
|
get children() {
|
|
25929
|
-
var _el$4 = _tmpl$
|
|
26329
|
+
var _el$4 = _tmpl$409(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$9.nextSibling, _el$1 = _el$0.nextSibling, _el$10 = _el$6.nextSibling;
|
|
25930
26330
|
insert(_el$10, createComponent(For, {
|
|
25931
26331
|
get each() {
|
|
25932
26332
|
return downline();
|
|
25933
26333
|
},
|
|
25934
26334
|
children: (d) => (() => {
|
|
25935
|
-
var _el$12 = _tmpl$
|
|
26335
|
+
var _el$12 = _tmpl$477(), _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$15.nextSibling;
|
|
25936
26336
|
insert(_el$13, () => d.affiliateCode);
|
|
25937
26337
|
insert(_el$14, () => [d.firstName, d.lastName].filter(Boolean).join(" ") || "\u2014");
|
|
25938
26338
|
insert(_el$16, () => d.status);
|
|
@@ -25995,9 +26395,9 @@ function td2() {
|
|
|
25995
26395
|
color: "var(--app-affiliate-fg)"
|
|
25996
26396
|
};
|
|
25997
26397
|
}
|
|
25998
|
-
var _tmpl$
|
|
25999
|
-
var _tmpl$
|
|
26000
|
-
var _tmpl$
|
|
26398
|
+
var _tmpl$478 = /* @__PURE__ */ template(`<div style="padding:1.5rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);display:flex;flex-direction:column;gap:0.75rem"><div style=font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--app-affiliate-fg-muted)>Share this link</div><div style=display:flex;gap:0.5rem;align-items:stretch;flex-wrap:wrap><code style="flex:1;min-width:16rem;padding:0.75rem 1rem;background:var(--app-affiliate-surface-light);border-radius:var(--app-affiliate-radius-sm);font-family:var(--app-affiliate-font-mono);color:var(--app-affiliate-fg);word-break:break-all"></code><button type=button style="padding:0.75rem 1.25rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600;cursor:pointer"></button></div><div style=font-size:0.875rem;color:var(--app-affiliate-fg-muted)>Anyone who visits this URL has a tracking cookie set for the duration of your program. If they sign up and subscribe within the cookie window, you earn commission on the conversion.`);
|
|
26399
|
+
var _tmpl$2133 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Referral link`);
|
|
26400
|
+
var _tmpl$3107 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Your referral link will appear here once your account is approved.`);
|
|
26001
26401
|
function AffiliateReferralLink() {
|
|
26002
26402
|
const {
|
|
26003
26403
|
links
|
|
@@ -26022,16 +26422,16 @@ function AffiliateReferralLink() {
|
|
|
26022
26422
|
}
|
|
26023
26423
|
}
|
|
26024
26424
|
return (() => {
|
|
26025
|
-
var _el$ = _tmpl$
|
|
26425
|
+
var _el$ = _tmpl$2133(); _el$.firstChild;
|
|
26026
26426
|
insert(_el$, createComponent(Show, {
|
|
26027
26427
|
get when() {
|
|
26028
26428
|
return homepageLink();
|
|
26029
26429
|
},
|
|
26030
26430
|
get fallback() {
|
|
26031
|
-
return _tmpl$
|
|
26431
|
+
return _tmpl$3107();
|
|
26032
26432
|
},
|
|
26033
26433
|
get children() {
|
|
26034
|
-
var _el$3 = _tmpl$
|
|
26434
|
+
var _el$3 = _tmpl$478(), _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling; _el$5.nextSibling;
|
|
26035
26435
|
insert(_el$6, homepageLink);
|
|
26036
26436
|
_el$7.$$click = copy;
|
|
26037
26437
|
insert(_el$7, () => copied() ? "Copied" : "Copy");
|
|
@@ -26042,10 +26442,10 @@ function AffiliateReferralLink() {
|
|
|
26042
26442
|
})();
|
|
26043
26443
|
}
|
|
26044
26444
|
delegateEvents(["click"]);
|
|
26045
|
-
var _tmpl$
|
|
26046
|
-
var _tmpl$
|
|
26047
|
-
var _tmpl$
|
|
26048
|
-
var _tmpl$
|
|
26445
|
+
var _tmpl$479 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Account</h1><div><button type=button style="padding:0.75rem 1.25rem;background:transparent;color:var(--app-affiliate-fg);border:1px solid var(--app-affiliate-border-strong);border-radius:var(--app-affiliate-radius-sm);cursor:pointer;font-weight:500">Log out</button></div><div style=font-size:0.875rem;color:var(--app-affiliate-fg-muted)>To update your profile or payment details, contact your program administrator.`);
|
|
26446
|
+
var _tmpl$2134 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Loading\u2026`);
|
|
26447
|
+
var _tmpl$3108 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden">`);
|
|
26448
|
+
var _tmpl$480 = /* @__PURE__ */ template(`<div style="display:flex;justify-content:space-between;align-items:center;padding:0.875rem 1.25rem;border-bottom:1px solid var(--app-affiliate-border)"><div style=font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--app-affiliate-fg-muted)></div><div style=color:var(--app-affiliate-fg)>`);
|
|
26049
26449
|
var STATUS_LABEL2 = {
|
|
26050
26450
|
pending: "Pending approval",
|
|
26051
26451
|
active: "Active",
|
|
@@ -26080,22 +26480,22 @@ function AffiliateSettings() {
|
|
|
26080
26480
|
value: a.paymentEmail ?? "\u2014"
|
|
26081
26481
|
}];
|
|
26082
26482
|
return (() => {
|
|
26083
|
-
var _el$ = _tmpl$
|
|
26483
|
+
var _el$ = _tmpl$479(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild; _el$3.nextSibling;
|
|
26084
26484
|
insert(_el$, createComponent(Show, {
|
|
26085
26485
|
get when() {
|
|
26086
26486
|
return affiliate();
|
|
26087
26487
|
},
|
|
26088
26488
|
get fallback() {
|
|
26089
|
-
return _tmpl$
|
|
26489
|
+
return _tmpl$2134();
|
|
26090
26490
|
},
|
|
26091
26491
|
children: (a) => (() => {
|
|
26092
|
-
var _el$7 = _tmpl$
|
|
26492
|
+
var _el$7 = _tmpl$3108();
|
|
26093
26493
|
insert(_el$7, createComponent(For, {
|
|
26094
26494
|
get each() {
|
|
26095
26495
|
return rows(a());
|
|
26096
26496
|
},
|
|
26097
26497
|
children: (row) => (() => {
|
|
26098
|
-
var _el$8 = _tmpl$
|
|
26498
|
+
var _el$8 = _tmpl$480(), _el$9 = _el$8.firstChild, _el$0 = _el$9.nextSibling;
|
|
26099
26499
|
insert(_el$9, () => row.label);
|
|
26100
26500
|
insert(_el$0, () => row.value);
|
|
26101
26501
|
return _el$8;
|
|
@@ -26111,10 +26511,10 @@ function AffiliateSettings() {
|
|
|
26111
26511
|
delegateEvents(["click"]);
|
|
26112
26512
|
|
|
26113
26513
|
// src/pages/AffiliatePortal.tsx
|
|
26114
|
-
var _tmpl$
|
|
26115
|
-
var _tmpl$
|
|
26116
|
-
var _tmpl$
|
|
26117
|
-
var _tmpl$
|
|
26514
|
+
var _tmpl$481 = /* @__PURE__ */ template(`<div class="app-affiliate-root app-affiliate-shell"style=position:sticky;background:var(--app-affiliate-bg);color:var(--app-affiliate-fg)><div class=app-affiliate-shell-header><button type=button class=app-affiliate-shell-menu-trigger aria-label="Open portal menu"><svg width=22 height=22 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round aria-hidden=true><line x1=3 y1=6 x2=21 y2=6></line><line x1=3 y1=12 x2=21 y2=12></line><line x1=3 y1=18 x2=21 y2=18></line></svg></button><span class=app-affiliate-shell-header-title></span></div><div class=app-affiliate-backdrop aria-hidden=true></div><aside class=app-affiliate-sidebar><div style=padding:1.25rem><h2 style="font-size:0.7rem;font-weight:500;color:var(--app-affiliate-fg-muted);text-transform:uppercase;letter-spacing:0.08em;margin:0 0 1rem">Affiliate Portal</h2><nav style=display:flex;flex-direction:column;gap:0.25rem></nav></div></aside><div class=app-affiliate-content>`);
|
|
26515
|
+
var _tmpl$2135 = /* @__PURE__ */ template(`<span style=font-size:1rem;opacity:0.7;flex-shrink:0>`);
|
|
26516
|
+
var _tmpl$3109 = /* @__PURE__ */ template(`<button type=button style="display:flex;align-items:center;gap:0.75rem;padding:0.625rem 0.75rem;border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem;font-weight:500;text-align:left;border:none;cursor:pointer">`);
|
|
26517
|
+
var _tmpl$484 = /* @__PURE__ */ template(`<div class=app-affiliate-root style=display:flex;align-items:center;justify-content:center;position:sticky;background:var(--app-affiliate-bg)><div role=status aria-label="Loading affiliate portal"style="width:1.75rem;height:1.75rem;border-radius:9999px;border:2px solid var(--app-affiliate-border);border-top-color:var(--app-affiliate-primary);animation:app-affiliate-gate-spin 0.8s linear infinite"></div><style>@keyframes app-affiliate-gate-spin { to { transform: rotate(360deg); } }`);
|
|
26118
26518
|
var TAB_LABELS2 = {
|
|
26119
26519
|
overview: "Overview",
|
|
26120
26520
|
conversions: "Conversions",
|
|
@@ -26159,7 +26559,7 @@ function AffiliatePortal(props) {
|
|
|
26159
26559
|
});
|
|
26160
26560
|
},
|
|
26161
26561
|
get children() {
|
|
26162
|
-
var _el$ = _tmpl$
|
|
26562
|
+
var _el$ = _tmpl$481(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling, _el$6 = _el$5.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$6.nextSibling;
|
|
26163
26563
|
_el$3.$$click = () => setDrawerOpen(true);
|
|
26164
26564
|
insert(_el$4, () => TAB_LABELS2[currentTab()]);
|
|
26165
26565
|
_el$5.$$click = () => setDrawerOpen(false);
|
|
@@ -26168,14 +26568,14 @@ function AffiliatePortal(props) {
|
|
|
26168
26568
|
return orderedTabs();
|
|
26169
26569
|
},
|
|
26170
26570
|
children: (tab) => (() => {
|
|
26171
|
-
var _el$1 = _tmpl$
|
|
26571
|
+
var _el$1 = _tmpl$3109();
|
|
26172
26572
|
_el$1.$$click = () => handleTabClick(tab);
|
|
26173
26573
|
insert(_el$1, createComponent(Show, {
|
|
26174
26574
|
get when() {
|
|
26175
26575
|
return props.tabIcons?.[tab];
|
|
26176
26576
|
},
|
|
26177
26577
|
get children() {
|
|
26178
|
-
var _el$10 = _tmpl$
|
|
26578
|
+
var _el$10 = _tmpl$2135();
|
|
26179
26579
|
effect(() => className(_el$10, props.tabIcons[tab]));
|
|
26180
26580
|
return _el$10;
|
|
26181
26581
|
}
|
|
@@ -26257,7 +26657,7 @@ function AffiliatePortal(props) {
|
|
|
26257
26657
|
}
|
|
26258
26658
|
function AffiliateGateSpinner(props) {
|
|
26259
26659
|
return (() => {
|
|
26260
|
-
var _el$11 = _tmpl$
|
|
26660
|
+
var _el$11 = _tmpl$484(); _el$11.firstChild;
|
|
26261
26661
|
effect((_p$) => {
|
|
26262
26662
|
var _v$8 = props.topOffset, _v$9 = `calc(100vh - ${props.topOffset})`;
|
|
26263
26663
|
_v$8 !== _p$.e && setStyleProperty(_el$11, "top", _p$.e = _v$8);
|
|
@@ -26271,11 +26671,11 @@ function AffiliateGateSpinner(props) {
|
|
|
26271
26671
|
})();
|
|
26272
26672
|
}
|
|
26273
26673
|
delegateEvents(["click"]);
|
|
26274
|
-
var _tmpl$
|
|
26674
|
+
var _tmpl$485 = /* @__PURE__ */ template(`<div style=position:relative><input><button type=button style="position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;padding:0 0.75rem;background:transparent;border:none;color:var(--app-affiliate-fg-muted);cursor:pointer;font-size:0.75rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em">`);
|
|
26275
26675
|
function AffiliatePasswordInput(props) {
|
|
26276
26676
|
const [visible, setVisible] = createSignal(false);
|
|
26277
26677
|
return (() => {
|
|
26278
|
-
var _el$ = _tmpl$
|
|
26678
|
+
var _el$ = _tmpl$485(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
26279
26679
|
_el$2.$$input = (e) => props.onInput(e.currentTarget.value);
|
|
26280
26680
|
_el$3.$$click = () => setVisible((v) => !v);
|
|
26281
26681
|
insert(_el$3, () => visible() ? "Hide" : "Show");
|
|
@@ -26316,17 +26716,17 @@ function inputStyle() {
|
|
|
26316
26716
|
delegateEvents(["input", "click"]);
|
|
26317
26717
|
|
|
26318
26718
|
// src/pages/AffiliateRegister.tsx
|
|
26319
|
-
var _tmpl$
|
|
26320
|
-
var _tmpl$
|
|
26321
|
-
var _tmpl$
|
|
26322
|
-
var _tmpl$
|
|
26323
|
-
var _tmpl$
|
|
26324
|
-
var _tmpl$
|
|
26325
|
-
var _tmpl$
|
|
26326
|
-
var _tmpl$
|
|
26327
|
-
var _tmpl$
|
|
26328
|
-
var _tmpl$
|
|
26329
|
-
var _tmpl$
|
|
26719
|
+
var _tmpl$486 = /* @__PURE__ */ template(`<input type=text required autocomplete=given-name>`);
|
|
26720
|
+
var _tmpl$2136 = /* @__PURE__ */ template(`<input type=text required autocomplete=family-name>`);
|
|
26721
|
+
var _tmpl$3115 = /* @__PURE__ */ template(`<input type=email required autocomplete=email>`);
|
|
26722
|
+
var _tmpl$487 = /* @__PURE__ */ template(`<input type=text required minlength=4>`);
|
|
26723
|
+
var _tmpl$565 = /* @__PURE__ */ template(`<div style="padding:0.625rem 0.875rem;background:var(--app-affiliate-danger-bg);color:var(--app-affiliate-danger-fg);border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem">`);
|
|
26724
|
+
var _tmpl$658 = /* @__PURE__ */ template(`<button type=button>Already have an account? Log in`);
|
|
26725
|
+
var _tmpl$749 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><div style="padding:0.625rem 0.875rem;background:var(--app-affiliate-surface-light);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius-sm);font-size:0.8125rem;line-height:1.5;color:var(--app-affiliate-fg-muted)">A customer's purchase earns you commission only if they reached the site through your referral link \u2014 the site address with <code>?ref=</code> appended:<div style=font-weight:600;word-break:break-all;margin-top:0.25rem;color:var(--app-affiliate-fg)>/?ref=</div>Make sure any marketing materials use that full link for tracking, not just the website address itself.</div><button type=submit style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600">`);
|
|
26726
|
+
var _tmpl$844 = /* @__PURE__ */ template(`<div class=app-affiliate-root style="background:var(--app-affiliate-bg);color:var(--app-affiliate-fg);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem"><div style="width:100%;max-width:28rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);padding:2rem;display:flex;flex-direction:column;gap:1.25rem"><div><h1 style="font-family:var(--app-affiliate-font-display);margin:0 0 0.5rem;font-size:1.5rem">Become an affiliate</h1><p style=margin:0;color:var(--app-affiliate-fg-muted);font-size:0.875rem>New applications are reviewed by an admin before activation.`);
|
|
26727
|
+
var _tmpl$941 = /* @__PURE__ */ template(`<div style=padding:1rem;background:var(--app-affiliate-success-bg);color:var(--app-affiliate-success-fg);border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem>Thanks \u2014 we received your application. You'll be able to log in once it's approved.`);
|
|
26728
|
+
var _tmpl$037 = /* @__PURE__ */ template(`<span style=font-size:0.75rem;color:var(--app-affiliate-fg-subtle)>`);
|
|
26729
|
+
var _tmpl$1137 = /* @__PURE__ */ template(`<label style=display:flex;flex-direction:column;gap:0.35rem><span style=font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--app-affiliate-fg-muted)>`);
|
|
26330
26730
|
function AffiliateRegister(props) {
|
|
26331
26731
|
const [firstName, setFirstName] = createSignal("");
|
|
26332
26732
|
const [lastName, setLastName] = createSignal("");
|
|
@@ -26357,21 +26757,21 @@ function AffiliateRegister(props) {
|
|
|
26357
26757
|
}
|
|
26358
26758
|
}
|
|
26359
26759
|
return (() => {
|
|
26360
|
-
var _el$ = _tmpl$
|
|
26760
|
+
var _el$ = _tmpl$844(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild; _el$4.nextSibling;
|
|
26361
26761
|
insert(_el$2, createComponent(Show, {
|
|
26362
26762
|
get when() {
|
|
26363
26763
|
return !submitted();
|
|
26364
26764
|
},
|
|
26365
26765
|
get fallback() {
|
|
26366
|
-
return _tmpl$
|
|
26766
|
+
return _tmpl$941();
|
|
26367
26767
|
},
|
|
26368
26768
|
get children() {
|
|
26369
|
-
var _el$6 = _tmpl$
|
|
26769
|
+
var _el$6 = _tmpl$749(), _el$1 = _el$6.firstChild, _el$10 = _el$1.firstChild, _el$12 = _el$10.nextSibling; _el$12.firstChild; var _el$14 = _el$12.nextSibling, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild, _el$18 = _el$1.nextSibling;
|
|
26370
26770
|
_el$6.addEventListener("submit", handleSubmit);
|
|
26371
26771
|
insert(_el$6, createComponent(Row2, {
|
|
26372
26772
|
label: "First name",
|
|
26373
26773
|
get children() {
|
|
26374
|
-
var _el$7 = _tmpl$
|
|
26774
|
+
var _el$7 = _tmpl$486();
|
|
26375
26775
|
_el$7.$$input = (e) => setFirstName(e.currentTarget.value);
|
|
26376
26776
|
effect((_$p) => style(_el$7, inputStyle2(), _$p));
|
|
26377
26777
|
effect(() => _el$7.value = firstName());
|
|
@@ -26381,7 +26781,7 @@ function AffiliateRegister(props) {
|
|
|
26381
26781
|
insert(_el$6, createComponent(Row2, {
|
|
26382
26782
|
label: "Last name",
|
|
26383
26783
|
get children() {
|
|
26384
|
-
var _el$8 = _tmpl$
|
|
26784
|
+
var _el$8 = _tmpl$2136();
|
|
26385
26785
|
_el$8.$$input = (e) => setLastName(e.currentTarget.value);
|
|
26386
26786
|
effect((_$p) => style(_el$8, inputStyle2(), _$p));
|
|
26387
26787
|
effect(() => _el$8.value = lastName());
|
|
@@ -26391,7 +26791,7 @@ function AffiliateRegister(props) {
|
|
|
26391
26791
|
insert(_el$6, createComponent(Row2, {
|
|
26392
26792
|
label: "Email",
|
|
26393
26793
|
get children() {
|
|
26394
|
-
var _el$9 = _tmpl$
|
|
26794
|
+
var _el$9 = _tmpl$3115();
|
|
26395
26795
|
_el$9.$$input = (e) => setEmail(e.currentTarget.value);
|
|
26396
26796
|
effect((_$p) => style(_el$9, inputStyle2(), _$p));
|
|
26397
26797
|
effect(() => _el$9.value = email());
|
|
@@ -26417,7 +26817,7 @@ function AffiliateRegister(props) {
|
|
|
26417
26817
|
label: "Affiliate code",
|
|
26418
26818
|
hint: "The handle in your referral URL (4+ characters)",
|
|
26419
26819
|
get children() {
|
|
26420
|
-
var _el$0 = _tmpl$
|
|
26820
|
+
var _el$0 = _tmpl$487();
|
|
26421
26821
|
_el$0.$$input = (e) => setAffiliateCode(e.currentTarget.value);
|
|
26422
26822
|
effect((_$p) => style(_el$0, inputStyle2(), _$p));
|
|
26423
26823
|
effect(() => _el$0.value = affiliateCode());
|
|
@@ -26432,7 +26832,7 @@ function AffiliateRegister(props) {
|
|
|
26432
26832
|
return error();
|
|
26433
26833
|
},
|
|
26434
26834
|
get children() {
|
|
26435
|
-
var _el$17 = _tmpl$
|
|
26835
|
+
var _el$17 = _tmpl$565();
|
|
26436
26836
|
insert(_el$17, error);
|
|
26437
26837
|
return _el$17;
|
|
26438
26838
|
}
|
|
@@ -26443,7 +26843,7 @@ function AffiliateRegister(props) {
|
|
|
26443
26843
|
return props.onNavigateLogin;
|
|
26444
26844
|
},
|
|
26445
26845
|
get children() {
|
|
26446
|
-
var _el$19 = _tmpl$
|
|
26846
|
+
var _el$19 = _tmpl$658();
|
|
26447
26847
|
_el$19.$$click = () => props.onNavigateLogin?.();
|
|
26448
26848
|
effect((_$p) => style(_el$19, linkStyle(), _$p));
|
|
26449
26849
|
return _el$19;
|
|
@@ -26468,7 +26868,7 @@ function AffiliateRegister(props) {
|
|
|
26468
26868
|
}
|
|
26469
26869
|
function Row2(props) {
|
|
26470
26870
|
return (() => {
|
|
26471
|
-
var _el$21 = _tmpl$
|
|
26871
|
+
var _el$21 = _tmpl$1137(), _el$22 = _el$21.firstChild;
|
|
26472
26872
|
insert(_el$22, () => props.label);
|
|
26473
26873
|
insert(_el$21, () => props.children, null);
|
|
26474
26874
|
insert(_el$21, createComponent(Show, {
|
|
@@ -26476,7 +26876,7 @@ function Row2(props) {
|
|
|
26476
26876
|
return props.hint;
|
|
26477
26877
|
},
|
|
26478
26878
|
get children() {
|
|
26479
|
-
var _el$23 = _tmpl$
|
|
26879
|
+
var _el$23 = _tmpl$037();
|
|
26480
26880
|
insert(_el$23, () => props.hint);
|
|
26481
26881
|
return _el$23;
|
|
26482
26882
|
}
|
|
@@ -26510,10 +26910,10 @@ function linkStyle() {
|
|
|
26510
26910
|
};
|
|
26511
26911
|
}
|
|
26512
26912
|
delegateEvents(["input", "click"]);
|
|
26513
|
-
var _tmpl$
|
|
26514
|
-
var _tmpl$
|
|
26515
|
-
var _tmpl$
|
|
26516
|
-
var _tmpl$
|
|
26913
|
+
var _tmpl$488 = /* @__PURE__ */ template(`<div style="padding:0.625rem 0.875rem;background:var(--app-affiliate-danger-bg);color:var(--app-affiliate-danger-fg);border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem">`);
|
|
26914
|
+
var _tmpl$2137 = /* @__PURE__ */ template(`<button type=button style=background:transparent;border:none;color:var(--app-affiliate-fg-muted);cursor:pointer;text-decoration:underline;font-size:0.875rem;padding:0;text-align:center>Forgot your password?`);
|
|
26915
|
+
var _tmpl$3116 = /* @__PURE__ */ template(`<button type=button style=background:transparent;border:none;color:var(--app-affiliate-primary-soft-fg);cursor:pointer;text-decoration:underline;font-size:0.875rem;padding:0;text-align:center>New affiliate? Apply`);
|
|
26916
|
+
var _tmpl$489 = /* @__PURE__ */ template(`<div class=app-affiliate-root style="background:var(--app-affiliate-bg);color:var(--app-affiliate-fg);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem"><div style="width:100%;max-width:24rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);padding:2rem;display:flex;flex-direction:column;gap:1.25rem"><h1 style=font-family:var(--app-affiliate-font-display);margin:0;font-size:1.5rem>Affiliate login</h1><form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>Email</span><input type=email required autocomplete=email></label><label style=display:flex;flex-direction:column;gap:0.35rem><span>Password</span></label><button type=submit style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600">`);
|
|
26517
26917
|
function AffiliateLogin(props) {
|
|
26518
26918
|
const [email, setEmail] = createSignal("");
|
|
26519
26919
|
const [password, setPassword] = createSignal("");
|
|
@@ -26533,7 +26933,7 @@ function AffiliateLogin(props) {
|
|
|
26533
26933
|
}
|
|
26534
26934
|
}
|
|
26535
26935
|
return (() => {
|
|
26536
|
-
var _el$ = _tmpl$
|
|
26936
|
+
var _el$ = _tmpl$489(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$5.nextSibling, _el$9 = _el$8.firstChild, _el$1 = _el$8.nextSibling;
|
|
26537
26937
|
_el$4.addEventListener("submit", handleSubmit);
|
|
26538
26938
|
_el$7.$$input = (e) => setEmail(e.currentTarget.value);
|
|
26539
26939
|
insert(_el$8, createComponent(AffiliatePasswordInput, {
|
|
@@ -26549,7 +26949,7 @@ function AffiliateLogin(props) {
|
|
|
26549
26949
|
return error();
|
|
26550
26950
|
},
|
|
26551
26951
|
get children() {
|
|
26552
|
-
var _el$0 = _tmpl$
|
|
26952
|
+
var _el$0 = _tmpl$488();
|
|
26553
26953
|
insert(_el$0, error);
|
|
26554
26954
|
return _el$0;
|
|
26555
26955
|
}
|
|
@@ -26560,7 +26960,7 @@ function AffiliateLogin(props) {
|
|
|
26560
26960
|
return props.onNavigateForgotPassword;
|
|
26561
26961
|
},
|
|
26562
26962
|
get children() {
|
|
26563
|
-
var _el$10 = _tmpl$
|
|
26963
|
+
var _el$10 = _tmpl$2137();
|
|
26564
26964
|
_el$10.$$click = () => props.onNavigateForgotPassword?.();
|
|
26565
26965
|
return _el$10;
|
|
26566
26966
|
}
|
|
@@ -26570,7 +26970,7 @@ function AffiliateLogin(props) {
|
|
|
26570
26970
|
return props.onNavigateRegister;
|
|
26571
26971
|
},
|
|
26572
26972
|
get children() {
|
|
26573
|
-
var _el$11 = _tmpl$
|
|
26973
|
+
var _el$11 = _tmpl$3116();
|
|
26574
26974
|
_el$11.$$click = () => props.onNavigateRegister?.();
|
|
26575
26975
|
return _el$11;
|
|
26576
26976
|
}
|
|
@@ -26618,12 +27018,12 @@ function inputStyle3() {
|
|
|
26618
27018
|
};
|
|
26619
27019
|
}
|
|
26620
27020
|
delegateEvents(["input", "click"]);
|
|
26621
|
-
var _tmpl$
|
|
26622
|
-
var _tmpl$
|
|
26623
|
-
var _tmpl$
|
|
26624
|
-
var _tmpl$
|
|
26625
|
-
var _tmpl$
|
|
26626
|
-
var _tmpl$
|
|
27021
|
+
var _tmpl$490 = /* @__PURE__ */ template(`<div style="padding:0.625rem 0.875rem;background:var(--app-affiliate-danger-bg);color:var(--app-affiliate-danger-fg);border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem">`);
|
|
27022
|
+
var _tmpl$2138 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>Email</span><input type=email required></label><button type=submit style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600">`);
|
|
27023
|
+
var _tmpl$3117 = /* @__PURE__ */ template(`<div class=app-affiliate-root style="background:var(--app-affiliate-bg);color:var(--app-affiliate-fg);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem"><div style="width:100%;max-width:24rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);padding:2rem;display:flex;flex-direction:column;gap:1.25rem"><h1 style=font-family:var(--app-affiliate-font-display);margin:0;font-size:1.5rem>Reset your password`);
|
|
27024
|
+
var _tmpl$491 = /* @__PURE__ */ template(`<div style="padding:0.625rem 0.875rem;background:var(--app-affiliate-surface-light);border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem">`);
|
|
27025
|
+
var _tmpl$566 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.8125rem;opacity:0.8>The link is good for one hour. If nothing arrives, check your spam folder \u2014 and make sure this is the address you signed up with.`);
|
|
27026
|
+
var _tmpl$659 = /* @__PURE__ */ template(`<button type=button style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600;cursor:pointer">Back to sign in`);
|
|
26627
27027
|
function ForgotPasswordPage(props) {
|
|
26628
27028
|
const [email, setEmail] = createSignal("");
|
|
26629
27029
|
const [submitting, setSubmitting] = createSignal(false);
|
|
@@ -26646,29 +27046,29 @@ function ForgotPasswordPage(props) {
|
|
|
26646
27046
|
}
|
|
26647
27047
|
}
|
|
26648
27048
|
return (() => {
|
|
26649
|
-
var _el$ = _tmpl$
|
|
27049
|
+
var _el$ = _tmpl$3117(), _el$2 = _el$.firstChild; _el$2.firstChild;
|
|
26650
27050
|
insert(_el$2, createComponent(Show, {
|
|
26651
27051
|
get when() {
|
|
26652
27052
|
return !message();
|
|
26653
27053
|
},
|
|
26654
27054
|
get fallback() {
|
|
26655
27055
|
return [(() => {
|
|
26656
|
-
var _el$0 = _tmpl$
|
|
27056
|
+
var _el$0 = _tmpl$491();
|
|
26657
27057
|
insert(_el$0, message);
|
|
26658
27058
|
return _el$0;
|
|
26659
|
-
})(), _tmpl$
|
|
27059
|
+
})(), _tmpl$566(), createComponent(Show, {
|
|
26660
27060
|
get when() {
|
|
26661
27061
|
return props.onDone;
|
|
26662
27062
|
},
|
|
26663
27063
|
get children() {
|
|
26664
|
-
var _el$10 = _tmpl$
|
|
27064
|
+
var _el$10 = _tmpl$659();
|
|
26665
27065
|
_el$10.$$click = () => props.onDone?.();
|
|
26666
27066
|
return _el$10;
|
|
26667
27067
|
}
|
|
26668
27068
|
})];
|
|
26669
27069
|
},
|
|
26670
27070
|
get children() {
|
|
26671
|
-
var _el$4 = _tmpl$
|
|
27071
|
+
var _el$4 = _tmpl$2138(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$9 = _el$5.nextSibling;
|
|
26672
27072
|
_el$4.addEventListener("submit", handleSubmit);
|
|
26673
27073
|
_el$7.$$input = (e) => setEmail(e.currentTarget.value);
|
|
26674
27074
|
insert(_el$4, createComponent(Show, {
|
|
@@ -26676,7 +27076,7 @@ function ForgotPasswordPage(props) {
|
|
|
26676
27076
|
return error();
|
|
26677
27077
|
},
|
|
26678
27078
|
get children() {
|
|
26679
|
-
var _el$8 = _tmpl$
|
|
27079
|
+
var _el$8 = _tmpl$490();
|
|
26680
27080
|
insert(_el$8, error);
|
|
26681
27081
|
return _el$8;
|
|
26682
27082
|
}
|
|
@@ -26726,10 +27126,10 @@ function inputStyle4() {
|
|
|
26726
27126
|
};
|
|
26727
27127
|
}
|
|
26728
27128
|
delegateEvents(["input", "click"]);
|
|
26729
|
-
var _tmpl$
|
|
26730
|
-
var _tmpl$
|
|
26731
|
-
var _tmpl$
|
|
26732
|
-
var _tmpl$
|
|
27129
|
+
var _tmpl$494 = /* @__PURE__ */ template(`<div style="padding:0.625rem 0.875rem;background:var(--app-affiliate-danger-bg);color:var(--app-affiliate-danger-fg);border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem">`);
|
|
27130
|
+
var _tmpl$2139 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>New password</span><input type=password required autocomplete=new-password></label><label style=display:flex;flex-direction:column;gap:0.35rem><span>Confirm password</span><input type=password required autocomplete=new-password></label><button type=submit style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600">`);
|
|
27131
|
+
var _tmpl$3118 = /* @__PURE__ */ template(`<div class=app-affiliate-root style="background:var(--app-affiliate-bg);color:var(--app-affiliate-fg);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem"><div style="width:100%;max-width:24rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);padding:2rem;display:flex;flex-direction:column;gap:1.25rem"><h1 style=font-family:var(--app-affiliate-font-display);margin:0;font-size:1.5rem>Choose a new password`);
|
|
27132
|
+
var _tmpl$495 = /* @__PURE__ */ template(`<div style="padding:0.625rem 0.875rem;background:var(--app-affiliate-surface-light);border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem">`);
|
|
26733
27133
|
function queryParam(name) {
|
|
26734
27134
|
if (typeof window === "undefined") return "";
|
|
26735
27135
|
return new URLSearchParams(window.location.search).get(name) ?? "";
|
|
@@ -26769,20 +27169,20 @@ function ResetPasswordPage(props) {
|
|
|
26769
27169
|
}
|
|
26770
27170
|
}
|
|
26771
27171
|
return (() => {
|
|
26772
|
-
var _el$ = _tmpl$
|
|
27172
|
+
var _el$ = _tmpl$3118(), _el$2 = _el$.firstChild; _el$2.firstChild;
|
|
26773
27173
|
insert(_el$2, createComponent(Show, {
|
|
26774
27174
|
get when() {
|
|
26775
27175
|
return !message();
|
|
26776
27176
|
},
|
|
26777
27177
|
get fallback() {
|
|
26778
27178
|
return (() => {
|
|
26779
|
-
var _el$11 = _tmpl$
|
|
27179
|
+
var _el$11 = _tmpl$495();
|
|
26780
27180
|
insert(_el$11, message);
|
|
26781
27181
|
return _el$11;
|
|
26782
27182
|
})();
|
|
26783
27183
|
},
|
|
26784
27184
|
get children() {
|
|
26785
|
-
var _el$4 = _tmpl$
|
|
27185
|
+
var _el$4 = _tmpl$2139(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$5.nextSibling, _el$9 = _el$8.firstChild, _el$0 = _el$9.nextSibling, _el$10 = _el$8.nextSibling;
|
|
26786
27186
|
_el$4.addEventListener("submit", handleSubmit);
|
|
26787
27187
|
_el$7.$$input = (e) => setPassword(e.currentTarget.value);
|
|
26788
27188
|
_el$0.$$input = (e) => setConfirm(e.currentTarget.value);
|
|
@@ -26791,7 +27191,7 @@ function ResetPasswordPage(props) {
|
|
|
26791
27191
|
return error();
|
|
26792
27192
|
},
|
|
26793
27193
|
get children() {
|
|
26794
|
-
var _el$1 = _tmpl$
|
|
27194
|
+
var _el$1 = _tmpl$494();
|
|
26795
27195
|
insert(_el$1, error);
|
|
26796
27196
|
return _el$1;
|
|
26797
27197
|
}
|
|
@@ -26846,11 +27246,11 @@ function inputStyle5() {
|
|
|
26846
27246
|
};
|
|
26847
27247
|
}
|
|
26848
27248
|
delegateEvents(["input"]);
|
|
26849
|
-
var _tmpl$
|
|
26850
|
-
var _tmpl$
|
|
26851
|
-
var _tmpl$
|
|
26852
|
-
var _tmpl$
|
|
26853
|
-
var _tmpl$
|
|
27249
|
+
var _tmpl$496 = /* @__PURE__ */ template(`<div>`);
|
|
27250
|
+
var _tmpl$2140 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>Email</span><input type=email required autocomplete=email></label><button type=submit>`);
|
|
27251
|
+
var _tmpl$3119 = /* @__PURE__ */ template(`<button type=button>Back to login`);
|
|
27252
|
+
var _tmpl$497 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Reset your password`);
|
|
27253
|
+
var _tmpl$567 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.9rem>`);
|
|
26854
27254
|
function AffiliateForgotPassword(props) {
|
|
26855
27255
|
const [email, setEmail] = createSignal("");
|
|
26856
27256
|
const [submitting, setSubmitting] = createSignal(false);
|
|
@@ -26873,20 +27273,20 @@ function AffiliateForgotPassword(props) {
|
|
|
26873
27273
|
}
|
|
26874
27274
|
}
|
|
26875
27275
|
return (() => {
|
|
26876
|
-
var _el$ = _tmpl$
|
|
27276
|
+
var _el$ = _tmpl$497(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
|
|
26877
27277
|
insert(_el$2, createComponent(Show, {
|
|
26878
27278
|
get when() {
|
|
26879
27279
|
return !message();
|
|
26880
27280
|
},
|
|
26881
27281
|
get fallback() {
|
|
26882
27282
|
return (() => {
|
|
26883
|
-
var _el$1 = _tmpl$
|
|
27283
|
+
var _el$1 = _tmpl$567();
|
|
26884
27284
|
insert(_el$1, message);
|
|
26885
27285
|
return _el$1;
|
|
26886
27286
|
})();
|
|
26887
27287
|
},
|
|
26888
27288
|
get children() {
|
|
26889
|
-
var _el$4 = _tmpl$
|
|
27289
|
+
var _el$4 = _tmpl$2140(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$9 = _el$5.nextSibling;
|
|
26890
27290
|
_el$4.addEventListener("submit", handleSubmit);
|
|
26891
27291
|
_el$7.$$input = (e) => setEmail(e.currentTarget.value);
|
|
26892
27292
|
insert(_el$4, createComponent(Show, {
|
|
@@ -26894,7 +27294,7 @@ function AffiliateForgotPassword(props) {
|
|
|
26894
27294
|
return error();
|
|
26895
27295
|
},
|
|
26896
27296
|
get children() {
|
|
26897
|
-
var _el$8 = _tmpl$
|
|
27297
|
+
var _el$8 = _tmpl$496();
|
|
26898
27298
|
insert(_el$8, error);
|
|
26899
27299
|
effect((_$p) => style(_el$8, errorStyle(), _$p));
|
|
26900
27300
|
return _el$8;
|
|
@@ -26923,7 +27323,7 @@ function AffiliateForgotPassword(props) {
|
|
|
26923
27323
|
return props.onNavigateLogin;
|
|
26924
27324
|
},
|
|
26925
27325
|
get children() {
|
|
26926
|
-
var _el$0 = _tmpl$
|
|
27326
|
+
var _el$0 = _tmpl$3119();
|
|
26927
27327
|
_el$0.$$click = () => props.onNavigateLogin?.();
|
|
26928
27328
|
effect((_$p) => style(_el$0, linkStyle2(), _$p));
|
|
26929
27329
|
return _el$0;
|
|
@@ -27029,10 +27429,10 @@ function linkStyle2() {
|
|
|
27029
27429
|
};
|
|
27030
27430
|
}
|
|
27031
27431
|
delegateEvents(["input", "click"]);
|
|
27032
|
-
var _tmpl$
|
|
27033
|
-
var _tmpl$
|
|
27034
|
-
var _tmpl$
|
|
27035
|
-
var _tmpl$
|
|
27432
|
+
var _tmpl$498 = /* @__PURE__ */ template(`<div>`);
|
|
27433
|
+
var _tmpl$2141 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>New password</span></label><label style=display:flex;flex-direction:column;gap:0.35rem><span>Confirm new password</span></label><button type=submit>`);
|
|
27434
|
+
var _tmpl$3120 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Choose a new password`);
|
|
27435
|
+
var _tmpl$499 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.9rem>Your password has been reset. You can now log in with your new password.`);
|
|
27036
27436
|
function queryParam2(name) {
|
|
27037
27437
|
if (typeof window === "undefined") return "";
|
|
27038
27438
|
return new URLSearchParams(window.location.search).get(name) ?? "";
|
|
@@ -27076,16 +27476,16 @@ function AffiliateResetPassword(props) {
|
|
|
27076
27476
|
}
|
|
27077
27477
|
}
|
|
27078
27478
|
return (() => {
|
|
27079
|
-
var _el$ = _tmpl$
|
|
27479
|
+
var _el$ = _tmpl$3120(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
|
|
27080
27480
|
insert(_el$2, createComponent(Show, {
|
|
27081
27481
|
get when() {
|
|
27082
27482
|
return !done();
|
|
27083
27483
|
},
|
|
27084
27484
|
get fallback() {
|
|
27085
|
-
return _tmpl$
|
|
27485
|
+
return _tmpl$499();
|
|
27086
27486
|
},
|
|
27087
27487
|
get children() {
|
|
27088
|
-
var _el$4 = _tmpl$
|
|
27488
|
+
var _el$4 = _tmpl$2141(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$5.nextSibling, _el$8 = _el$7.firstChild, _el$0 = _el$7.nextSibling;
|
|
27089
27489
|
_el$4.addEventListener("submit", handleSubmit);
|
|
27090
27490
|
insert(_el$5, createComponent(AffiliatePasswordInput, {
|
|
27091
27491
|
required: true,
|
|
@@ -27110,7 +27510,7 @@ function AffiliateResetPassword(props) {
|
|
|
27110
27510
|
return error();
|
|
27111
27511
|
},
|
|
27112
27512
|
get children() {
|
|
27113
|
-
var _el$9 = _tmpl$
|
|
27513
|
+
var _el$9 = _tmpl$498();
|
|
27114
27514
|
insert(_el$9, error);
|
|
27115
27515
|
effect((_$p) => style(_el$9, errorStyle2(), _$p));
|
|
27116
27516
|
return _el$9;
|
|
@@ -27209,5 +27609,5 @@ function primaryButtonStyle2(submitting) {
|
|
|
27209
27609
|
}
|
|
27210
27610
|
|
|
27211
27611
|
export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath };
|
|
27212
|
-
//# sourceMappingURL=
|
|
27213
|
-
//# sourceMappingURL=
|
|
27612
|
+
//# sourceMappingURL=POIS4SBW.js.map
|
|
27613
|
+
//# sourceMappingURL=POIS4SBW.js.map
|