@apextelemed/partner-core 0.6.0 → 0.6.1
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/dist/chunk/{SSVJ27MR.jsx → 5NWE3FVH.jsx} +66 -69
- package/dist/chunk/{HKNTNZRW.js → WCYQ2AYW.js} +424 -407
- package/dist/chunk/WCYQ2AYW.js.map +1 -0
- package/dist/index/index.js +1 -1
- package/dist/index/index.jsx +1 -1
- package/dist/pages/index.js +1 -1
- package/dist/pages/index.jsx +1 -1
- package/package.json +1 -1
- package/dist/chunk/HKNTNZRW.js.map +0 -1
|
@@ -15651,11 +15651,11 @@ function daysAgo(iso) {
|
|
|
15651
15651
|
}
|
|
15652
15652
|
|
|
15653
15653
|
// src/pages/admin/Sequences.tsx
|
|
15654
|
-
var _tmpl$287 = /* @__PURE__ */ template(`<
|
|
15655
|
-
var _tmpl$288 = /* @__PURE__ */ template(`<
|
|
15656
|
-
var _tmpl$355 = /* @__PURE__ */ template(`<
|
|
15654
|
+
var _tmpl$287 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm">Send all due`);
|
|
15655
|
+
var _tmpl$288 = /* @__PURE__ */ template(`<table class=app-admin-table><thead><tr><th>Person</th><th>Came from</th><th>Waiting</th><th>Step</th><th></th></tr></thead><tbody>`);
|
|
15656
|
+
var _tmpl$355 = /* @__PURE__ */ template(`<div class=app-admin-card style=margin-top:1.25rem;overflow:hidden><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>Waiting to send</h2><p style="font-size:0.75rem;margin:0.25rem 0 0">`);
|
|
15657
15657
|
var _tmpl$442 = /* @__PURE__ */ template(`<button type=button class=app-admin-link-btn style=font-size:inherit>`);
|
|
15658
|
-
var _tmpl$537 = /* @__PURE__ */ template(`<tr><td data-label=Person></td><td data-label="Came from"></td><td data-label=Waiting></td><td data-label=
|
|
15658
|
+
var _tmpl$537 = /* @__PURE__ */ template(`<tr><td data-label=Person></td><td data-label="Came from"></td><td data-label=Waiting></td><td data-label=Step>Step <!> of </td><td><div style=display:flex;gap:0.375rem;flex-wrap:wrap><button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm"></button><button type=button class="app-admin-btn app-admin-btn-sm"title="Move past this step without emailing. They stay in the sequence for the next one.">Skip`);
|
|
15659
15659
|
var _tmpl$635 = /* @__PURE__ */ template(`<span class=app-admin-text-muted style=font-size:0.75rem>No sequences yet \u2014 create one in the Sequences tab.`);
|
|
15660
15660
|
var _tmpl$733 = /* @__PURE__ */ template(`<div style=display:flex;gap:0.5rem;align-items:center;flex-wrap:wrap><select class=app-admin-input aria-label=Sequence style=width:auto><option value>Add to sequence\u2026</option></select><button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm">`);
|
|
15661
15661
|
var _tmpl$828 = /* @__PURE__ */ template(`<option>`);
|
|
@@ -15665,21 +15665,24 @@ var _tmpl$1101 = /* @__PURE__ */ template(`<select class=app-admin-input><option
|
|
|
15665
15665
|
var _tmpl$1014 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style=padding:1rem;display:grid;gap:1rem><div style=display:flex;justify-content:space-between;align-items:center><strong style=font-size:0.875rem>Step </strong><div style=display:flex;gap:0.375rem><button type=button class="app-admin-btn app-admin-btn-sm">Send me a test</button></div></div><div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(12rem, 1fr));gap:0.75rem"><label><span></span><input class=app-admin-input type=number min=1 max=720></label><label><span>Template</span></label><label><span>Link ({{link}})</span><select class=app-admin-input>`);
|
|
15666
15666
|
var _tmpl$1116 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-sm">Open Email \u203A Templates`);
|
|
15667
15667
|
var _tmpl$1213 = /* @__PURE__ */ template(`<div style=display:flex;gap:0.5rem;align-items:center;flex-wrap:wrap><span class=app-admin-text-muted style=font-size:0.8125rem>Create one under Email \u203A Templates first.`);
|
|
15668
|
-
var _tmpl$1313 = /* @__PURE__ */ template(`<div style="
|
|
15669
|
-
var _tmpl$1413 = /* @__PURE__ */ template(`<
|
|
15670
|
-
var _tmpl$1513 = /* @__PURE__ */ template(`<
|
|
15671
|
-
var _tmpl$1613 = /* @__PURE__ */ template(`<
|
|
15672
|
-
var _tmpl$1713 = /* @__PURE__ */ template(`<
|
|
15673
|
-
var _tmpl$1812 = /* @__PURE__ */ template(`<div
|
|
15674
|
-
var _tmpl$1912 = /* @__PURE__ */ template(`<div><div style=
|
|
15675
|
-
var _tmpl$2010 = /* @__PURE__ */ template(`<
|
|
15676
|
-
var _tmpl$2115 = /* @__PURE__ */ template(`<
|
|
15677
|
-
var _tmpl$2212 = /* @__PURE__ */ template(`<div
|
|
15678
|
-
var _tmpl$2311 = /* @__PURE__ */ template(`<
|
|
15679
|
-
var _tmpl$2411 = /* @__PURE__ */ template(`<
|
|
15680
|
-
var _tmpl$2511 = /* @__PURE__ */ template(`<div class=app-admin-
|
|
15681
|
-
var _tmpl$2610 = /* @__PURE__ */ template(`<
|
|
15682
|
-
var _tmpl$2710 = /* @__PURE__ */ template(`<
|
|
15668
|
+
var _tmpl$1313 = /* @__PURE__ */ template(`<div style="padding:0 1.25rem">`);
|
|
15669
|
+
var _tmpl$1413 = /* @__PURE__ */ template(`<div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(14rem, 1fr));gap:0.75rem"><label><span>Only enroll people who entered in the last (days)</span><input class=app-admin-input type=number min=1 max=365><span class=app-admin-text-muted style=font-size:0.75rem>So switching a feed on never mails months-old accounts. Add those by hand from the Funnel tab if you want them.</span></label><label style=font-size:0.8125rem;display:flex;gap:0.375rem;align-items:center><input type=checkbox>Skip people whose questionnaire did not qualify`);
|
|
15670
|
+
var _tmpl$1513 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-danger-fg);font-size:0.8125rem;margin:0>`);
|
|
15671
|
+
var _tmpl$1613 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-danger app-admin-btn-sm">Archive`);
|
|
15672
|
+
var _tmpl$1713 = /* @__PURE__ */ template(`<table class=app-admin-table><thead><tr><th>Person</th><th>Came from</th><th>Step</th><th>Next due</th><th></th></tr></thead><tbody>`);
|
|
15673
|
+
var _tmpl$1812 = /* @__PURE__ */ template(`<div style="border-top:1px solid var(--app-admin-border-soft)"><div style="padding:0.75rem 1.25rem"><strong style=font-size:0.875rem>In this sequence \u2014 `);
|
|
15674
|
+
var _tmpl$1912 = /* @__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"><h2 class=app-admin-heading style=font-size:0.9375rem;font-weight:600;margin:0></h2><button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm">Back to list</button></div><div style="padding:1rem 1.25rem;display:grid;gap:1rem"><div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(14rem, 1fr));gap:0.75rem"><label><span>Name</span><input class=app-admin-input maxlength=120 placeholder="Finish your visit"></label><label><span>Description (internal)</span><input class=app-admin-input maxlength=500></label></div><div><button type=button class="app-admin-btn app-admin-btn-sm">Add a step</button></div><div class=app-admin-card-soft style=padding:1rem;display:grid;gap:0.75rem><strong style=font-size:0.875rem>Who gets enrolled</strong><p class=app-admin-text-muted style=font-size:0.75rem;margin:0>People you add from the Funnel tab are always enrolled. Tick segments below and the hourly check also enrolls anyone who enters them \u2014 and removes them when they leave. Their clock starts from their own entry.</p></div><div class=app-admin-card-soft style=padding:1rem;display:grid;gap:0.5rem><strong style=font-size:0.875rem>How emails go out</strong><label style=font-size:0.8125rem;display:flex;gap:0.375rem;align-items:center><input type=checkbox>Send automatically when a step is due</label><p class=app-admin-text-muted style=font-size:0.75rem;margin:0></p></div><div style=display:flex;gap:0.5rem;align-items:center><button type=button class="app-admin-btn app-admin-btn-primary">`);
|
|
15675
|
+
var _tmpl$2010 = /* @__PURE__ */ template(`<div><div style=margin-bottom:0.25rem></div><div style="display:flex;flex-wrap:wrap;gap:0.5rem 1rem">`);
|
|
15676
|
+
var _tmpl$2115 = /* @__PURE__ */ template(`<label style=font-size:0.8125rem;display:flex;gap:0.375rem;align-items:center><input type=checkbox>`);
|
|
15677
|
+
var _tmpl$2212 = /* @__PURE__ */ template(`<tr><td data-label=Person><div class=app-admin-text-muted style=font-size:0.75rem> \xB7 </div></td><td data-label="Came from"></td><td data-label=Step> of </td><td data-label="Next due"class=app-admin-text-muted></td><td><button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm">Remove`);
|
|
15678
|
+
var _tmpl$2311 = /* @__PURE__ */ template(`<div>`);
|
|
15679
|
+
var _tmpl$2411 = /* @__PURE__ */ template(`<table class=app-admin-table><thead><tr><th>Name</th><th>Steps</th><th>Fed by</th><th>Sending</th><th>In it</th><th>Due now</th><th>Sent</th><th>Bought</th><th>Unsubscribed</th></tr></thead><tbody>`);
|
|
15680
|
+
var _tmpl$2511 = /* @__PURE__ */ template(`<div class=app-admin-card style=margin-top:1.25rem;overflow:hidden><div style="padding:1rem 1.25rem;border-bottom:1px solid var(--app-admin-border-soft);display:flex;justify-content:space-between;align-items:center"><h2 class=app-admin-heading style=font-size:0.9375rem;font-weight:600;margin:0>Sequences</h2><button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm">New sequence`);
|
|
15681
|
+
var _tmpl$2610 = /* @__PURE__ */ template(`<div class=app-admin-text-muted style=font-size:0.75rem>`);
|
|
15682
|
+
var _tmpl$2710 = /* @__PURE__ */ template(`<tr><td data-label=Name><button type=button class=app-admin-link-btn style=font-size:inherit;font-weight:600></button></td><td data-label=Steps></td><td data-label="Fed by"></td><td data-label=Sending></td><td data-label="In it"></td><td data-label="Due now"></td><td data-label=Sent></td><td data-label=Bought></td><td data-label=Unsubscribed>`);
|
|
15683
|
+
var _tmpl$289 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>by hand`);
|
|
15684
|
+
var _tmpl$295 = /* @__PURE__ */ template(`<strong>`);
|
|
15685
|
+
var _tmpl$305 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>0`);
|
|
15683
15686
|
var LINKS = ["members", "resume_survey", "cart", "home", "none"];
|
|
15684
15687
|
var EMPTY_STEP = {
|
|
15685
15688
|
waitHours: 24,
|
|
@@ -15710,13 +15713,14 @@ var field = {
|
|
|
15710
15713
|
display: "grid",
|
|
15711
15714
|
gap: "0.25rem"
|
|
15712
15715
|
};
|
|
15713
|
-
function
|
|
15716
|
+
function SequenceQueue(props) {
|
|
15714
15717
|
const nav = useAdminNav();
|
|
15715
15718
|
const [reload, setReload] = createSignal(0);
|
|
15716
15719
|
const [busy, setBusy] = createSignal(null);
|
|
15717
15720
|
const [queue, {
|
|
15718
15721
|
refetch
|
|
15719
15722
|
}] = createResource(reload, () => apiFetch("/admin/funnel/queue"));
|
|
15723
|
+
const rows = () => (queue()?.due ?? []).filter((r) => r.sequenceId === props.sequence.id);
|
|
15720
15724
|
const act = async (row, action) => {
|
|
15721
15725
|
setBusy(row.enrollmentId);
|
|
15722
15726
|
try {
|
|
@@ -15736,11 +15740,12 @@ function Queue(props) {
|
|
|
15736
15740
|
setBusy(null);
|
|
15737
15741
|
}
|
|
15738
15742
|
};
|
|
15739
|
-
const sendAll = async (
|
|
15740
|
-
|
|
15741
|
-
|
|
15743
|
+
const sendAll = async () => {
|
|
15744
|
+
const count = rows().length;
|
|
15745
|
+
if (!window.confirm(`Send ${count} due email${count === 1 ? "" : "s"} for \u201C${props.sequence.name}\u201D now?`)) return;
|
|
15746
|
+
setBusy("all");
|
|
15742
15747
|
try {
|
|
15743
|
-
const r = await apiFetch(`/admin/funnel/sequences/${
|
|
15748
|
+
const r = await apiFetch(`/admin/funnel/sequences/${props.sequence.id}/send-due`, {
|
|
15744
15749
|
method: "POST"
|
|
15745
15750
|
});
|
|
15746
15751
|
toastSuccess(Object.entries(r.outcomes).map(([k, n]) => `${n} ${OUTCOME_LABEL[k] ?? k}`).join(", ") || "Nothing was due");
|
|
@@ -15752,17 +15757,24 @@ function Queue(props) {
|
|
|
15752
15757
|
setBusy(null);
|
|
15753
15758
|
}
|
|
15754
15759
|
};
|
|
15755
|
-
const bySequence = () => {
|
|
15756
|
-
const groups = /* @__PURE__ */ new Map();
|
|
15757
|
-
for (const row of queue()?.due ?? []) {
|
|
15758
|
-
const g = groups.get(row.sequenceId);
|
|
15759
|
-
if (g) g.push(row);
|
|
15760
|
-
else groups.set(row.sequenceId, [row]);
|
|
15761
|
-
}
|
|
15762
|
-
return [...groups.entries()];
|
|
15763
|
-
};
|
|
15764
15760
|
return (() => {
|
|
15765
|
-
var _el$ = _tmpl$
|
|
15761
|
+
var _el$ = _tmpl$355(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild; _el$4.firstChild; var _el$6 = _el$4.nextSibling;
|
|
15762
|
+
insert(_el$4, (() => {
|
|
15763
|
+
var _c$ = memo(() => !!queue());
|
|
15764
|
+
return () => _c$() ? ` \u2014 ${rows().length} due` : "";
|
|
15765
|
+
})(), null);
|
|
15766
|
+
insert(_el$6, () => props.sequence.autoSend ? "Sending is automatic: the hourly check mails these itself. Anything listed here is due before its next run." : "Due by this sequence's schedule. Nothing here has been emailed, and nothing will be until you send it or turn automatic sending on.");
|
|
15767
|
+
insert(_el$2, createComponent(Show, {
|
|
15768
|
+
get when() {
|
|
15769
|
+
return rows().length > 0;
|
|
15770
|
+
},
|
|
15771
|
+
get children() {
|
|
15772
|
+
var _el$7 = _tmpl$287();
|
|
15773
|
+
_el$7.$$click = () => void sendAll();
|
|
15774
|
+
effect(() => _el$7.disabled = busy() === "all");
|
|
15775
|
+
return _el$7;
|
|
15776
|
+
}
|
|
15777
|
+
}), null);
|
|
15766
15778
|
insert(_el$, createComponent(Show, {
|
|
15767
15779
|
get when() {
|
|
15768
15780
|
return queue();
|
|
@@ -15773,73 +15785,60 @@ function Queue(props) {
|
|
|
15773
15785
|
get children() {
|
|
15774
15786
|
return createComponent(Show, {
|
|
15775
15787
|
get when() {
|
|
15776
|
-
return (
|
|
15788
|
+
return rows().length > 0;
|
|
15777
15789
|
},
|
|
15778
15790
|
get fallback() {
|
|
15779
15791
|
return createComponent(EmptyState, {
|
|
15780
|
-
message: "Nobody is due
|
|
15792
|
+
message: "Nobody in this sequence is due right now."
|
|
15781
15793
|
});
|
|
15782
15794
|
},
|
|
15783
15795
|
get children() {
|
|
15784
|
-
|
|
15796
|
+
var _el$8 = _tmpl$288(), _el$9 = _el$8.firstChild, _el$0 = _el$9.nextSibling;
|
|
15797
|
+
insert(_el$0, createComponent(For, {
|
|
15785
15798
|
get each() {
|
|
15786
|
-
return
|
|
15799
|
+
return rows();
|
|
15787
15800
|
},
|
|
15788
|
-
children: (
|
|
15789
|
-
var _el$
|
|
15790
|
-
insert(_el$
|
|
15791
|
-
|
|
15792
|
-
|
|
15793
|
-
|
|
15794
|
-
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
|
|
15798
|
-
|
|
15799
|
-
|
|
15800
|
-
|
|
15801
|
-
|
|
15802
|
-
|
|
15803
|
-
return row.userId && nav;
|
|
15804
|
-
},
|
|
15805
|
-
get fallback() {
|
|
15806
|
-
return row.email;
|
|
15807
|
-
},
|
|
15808
|
-
get children() {
|
|
15809
|
-
var _el$14 = _tmpl$442();
|
|
15810
|
-
_el$14.$$click = () => nav.openCustomer(row.userId);
|
|
15811
|
-
insert(_el$14, () => row.email);
|
|
15812
|
-
return _el$14;
|
|
15813
|
-
}
|
|
15814
|
-
}));
|
|
15815
|
-
insert(_el$15, () => segmentLongLabel(row.segmentAtAdd));
|
|
15816
|
-
insert(_el$16, () => daysAgo(row.anchoredAt));
|
|
15817
|
-
insert(_el$18, () => row.subject);
|
|
15818
|
-
insert(_el$19, () => row.stepIndex + 1, _el$22);
|
|
15819
|
-
insert(_el$19, () => row.stepCount, null);
|
|
15820
|
-
_el$25.$$click = () => void act(row, "send");
|
|
15821
|
-
insert(_el$25, () => busy() === row.enrollmentId ? "Sending\u2026" : "Send");
|
|
15822
|
-
_el$26.$$click = () => void act(row, "skip");
|
|
15823
|
-
effect((_p$) => {
|
|
15824
|
-
var _v$ = busy() === row.enrollmentId, _v$2 = busy() === row.enrollmentId;
|
|
15825
|
-
_v$ !== _p$.e && (_el$25.disabled = _p$.e = _v$);
|
|
15826
|
-
_v$2 !== _p$.t && (_el$26.disabled = _p$.t = _v$2);
|
|
15827
|
-
return _p$;
|
|
15828
|
-
}, {
|
|
15829
|
-
e: void 0,
|
|
15830
|
-
t: void 0
|
|
15831
|
-
});
|
|
15832
|
-
return _el$12;
|
|
15833
|
-
})()
|
|
15801
|
+
children: (row) => (() => {
|
|
15802
|
+
var _el$1 = _tmpl$537(), _el$10 = _el$1.firstChild, _el$12 = _el$10.nextSibling, _el$13 = _el$12.nextSibling, _el$14 = _el$13.nextSibling, _el$15 = _el$14.firstChild, _el$17 = _el$15.nextSibling; _el$17.nextSibling; var _el$18 = _el$14.nextSibling, _el$19 = _el$18.firstChild, _el$20 = _el$19.firstChild, _el$21 = _el$20.nextSibling;
|
|
15803
|
+
insert(_el$10, createComponent(Show, {
|
|
15804
|
+
get when() {
|
|
15805
|
+
return row.userId && nav;
|
|
15806
|
+
},
|
|
15807
|
+
get fallback() {
|
|
15808
|
+
return row.email;
|
|
15809
|
+
},
|
|
15810
|
+
get children() {
|
|
15811
|
+
var _el$11 = _tmpl$442();
|
|
15812
|
+
_el$11.$$click = () => nav.openCustomer(row.userId);
|
|
15813
|
+
insert(_el$11, () => row.email);
|
|
15814
|
+
return _el$11;
|
|
15815
|
+
}
|
|
15834
15816
|
}));
|
|
15817
|
+
insert(_el$12, () => segmentLongLabel(row.segmentAtAdd));
|
|
15818
|
+
insert(_el$13, () => daysAgo(row.anchoredAt));
|
|
15819
|
+
insert(_el$14, () => row.stepIndex + 1, _el$17);
|
|
15820
|
+
insert(_el$14, () => row.stepCount, null);
|
|
15821
|
+
_el$20.$$click = () => void act(row, "send");
|
|
15822
|
+
insert(_el$20, () => busy() === row.enrollmentId ? "Sending\u2026" : "Send");
|
|
15823
|
+
_el$21.$$click = () => void act(row, "skip");
|
|
15824
|
+
effect((_p$) => {
|
|
15825
|
+
var _v$ = busy() === row.enrollmentId, _v$2 = busy() === row.enrollmentId;
|
|
15826
|
+
_v$ !== _p$.e && (_el$20.disabled = _p$.e = _v$);
|
|
15827
|
+
_v$2 !== _p$.t && (_el$21.disabled = _p$.t = _v$2);
|
|
15828
|
+
return _p$;
|
|
15829
|
+
}, {
|
|
15830
|
+
e: void 0,
|
|
15831
|
+
t: void 0
|
|
15832
|
+
});
|
|
15835
15833
|
return _el$1;
|
|
15836
|
-
})()
|
|
15837
|
-
});
|
|
15834
|
+
})()
|
|
15835
|
+
}));
|
|
15836
|
+
return _el$8;
|
|
15838
15837
|
}
|
|
15839
15838
|
});
|
|
15840
15839
|
}
|
|
15841
15840
|
}), null);
|
|
15842
|
-
effect((_$p) => style(_el$
|
|
15841
|
+
effect((_$p) => style(_el$6, {
|
|
15843
15842
|
...label
|
|
15844
15843
|
}, _$p));
|
|
15845
15844
|
return _el$;
|
|
@@ -15880,25 +15879,25 @@ function AddToSequence(props) {
|
|
|
15880
15879
|
}
|
|
15881
15880
|
};
|
|
15882
15881
|
return (() => {
|
|
15883
|
-
var _el$
|
|
15884
|
-
_el$
|
|
15885
|
-
insert(_el$
|
|
15882
|
+
var _el$22 = _tmpl$733(), _el$23 = _el$22.firstChild; _el$23.firstChild; var _el$25 = _el$23.nextSibling;
|
|
15883
|
+
_el$23.addEventListener("change", (e) => setTarget(e.currentTarget.value));
|
|
15884
|
+
insert(_el$23, createComponent(For, {
|
|
15886
15885
|
get each() {
|
|
15887
15886
|
return sequences()?.sequences ?? [];
|
|
15888
15887
|
},
|
|
15889
15888
|
children: (s) => (() => {
|
|
15890
|
-
var _el$
|
|
15891
|
-
insert(_el$
|
|
15892
|
-
effect(() => _el$
|
|
15893
|
-
return _el$
|
|
15889
|
+
var _el$27 = _tmpl$828();
|
|
15890
|
+
insert(_el$27, () => s.name);
|
|
15891
|
+
effect(() => _el$27.value = s.id);
|
|
15892
|
+
return _el$27;
|
|
15894
15893
|
})()
|
|
15895
15894
|
}), null);
|
|
15896
|
-
_el$
|
|
15897
|
-
insert(_el$
|
|
15898
|
-
var _c$ = memo(() => !!busy());
|
|
15899
|
-
return () => _c$() ? "Adding\u2026" : `Add ${props.people.length}`;
|
|
15895
|
+
_el$25.$$click = () => void add();
|
|
15896
|
+
insert(_el$25, (() => {
|
|
15897
|
+
var _c$2 = memo(() => !!busy());
|
|
15898
|
+
return () => _c$2() ? "Adding\u2026" : `Add ${props.people.length}`;
|
|
15900
15899
|
})());
|
|
15901
|
-
insert(_el$
|
|
15900
|
+
insert(_el$22, createComponent(Show, {
|
|
15902
15901
|
get when() {
|
|
15903
15902
|
return memo(() => !!sequences())() && sequences().sequences.length === 0;
|
|
15904
15903
|
},
|
|
@@ -15906,9 +15905,9 @@ function AddToSequence(props) {
|
|
|
15906
15905
|
return _tmpl$635();
|
|
15907
15906
|
}
|
|
15908
15907
|
}), null);
|
|
15909
|
-
effect(() => _el$
|
|
15910
|
-
effect(() => _el$
|
|
15911
|
-
return _el$
|
|
15908
|
+
effect(() => _el$25.disabled = busy() || !target() || props.people.length === 0);
|
|
15909
|
+
effect(() => _el$23.value = target());
|
|
15910
|
+
return _el$22;
|
|
15912
15911
|
})();
|
|
15913
15912
|
}
|
|
15914
15913
|
function StepEditor(props) {
|
|
@@ -15919,85 +15918,85 @@ function StepEditor(props) {
|
|
|
15919
15918
|
});
|
|
15920
15919
|
const missingTemplate = () => props.step.templateId && !props.templates.some((t) => t.id === props.step.templateId);
|
|
15921
15920
|
return (() => {
|
|
15922
|
-
var _el$
|
|
15923
|
-
insert(_el$
|
|
15924
|
-
_el$
|
|
15925
|
-
insert(_el$
|
|
15921
|
+
var _el$28 = _tmpl$1014(), _el$29 = _el$28.firstChild, _el$30 = _el$29.firstChild; _el$30.firstChild; var _el$32 = _el$30.nextSibling, _el$33 = _el$32.firstChild, _el$35 = _el$29.nextSibling, _el$36 = _el$35.firstChild, _el$37 = _el$36.firstChild, _el$38 = _el$37.nextSibling, _el$39 = _el$36.nextSibling, _el$40 = _el$39.firstChild, _el$44 = _el$39.nextSibling, _el$45 = _el$44.firstChild, _el$46 = _el$45.nextSibling;
|
|
15922
|
+
insert(_el$30, () => props.index + 1, null);
|
|
15923
|
+
_el$33.$$click = () => props.onTest();
|
|
15924
|
+
insert(_el$32, createComponent(Show, {
|
|
15926
15925
|
get when() {
|
|
15927
15926
|
return props.count > 1;
|
|
15928
15927
|
},
|
|
15929
15928
|
get children() {
|
|
15930
|
-
var _el$
|
|
15931
|
-
_el$
|
|
15932
|
-
return _el$
|
|
15929
|
+
var _el$34 = _tmpl$925();
|
|
15930
|
+
_el$34.$$click = () => props.onRemove();
|
|
15931
|
+
return _el$34;
|
|
15933
15932
|
}
|
|
15934
15933
|
}), null);
|
|
15935
|
-
insert(_el$
|
|
15936
|
-
_el$
|
|
15937
|
-
insert(_el$
|
|
15934
|
+
insert(_el$37, () => props.index === 0 ? "Hours after they are added" : "Hours after the previous step");
|
|
15935
|
+
_el$38.$$input = (e) => set("waitHours", Number(e.currentTarget.value));
|
|
15936
|
+
insert(_el$39, createComponent(Show, {
|
|
15938
15937
|
get when() {
|
|
15939
15938
|
return props.templates.length > 0;
|
|
15940
15939
|
},
|
|
15941
15940
|
get fallback() {
|
|
15942
15941
|
return (() => {
|
|
15943
|
-
var _el$
|
|
15944
|
-
insert(_el$
|
|
15942
|
+
var _el$47 = _tmpl$1213(); _el$47.firstChild;
|
|
15943
|
+
insert(_el$47, createComponent(Show, {
|
|
15945
15944
|
when: nav,
|
|
15946
15945
|
get children() {
|
|
15947
|
-
var _el$
|
|
15948
|
-
_el$
|
|
15949
|
-
return _el$
|
|
15946
|
+
var _el$49 = _tmpl$1116();
|
|
15947
|
+
_el$49.$$click = () => nav.selectTab("email-templates");
|
|
15948
|
+
return _el$49;
|
|
15950
15949
|
}
|
|
15951
15950
|
}), null);
|
|
15952
|
-
return _el$
|
|
15951
|
+
return _el$47;
|
|
15953
15952
|
})();
|
|
15954
15953
|
},
|
|
15955
15954
|
get children() {
|
|
15956
|
-
var _el$
|
|
15957
|
-
_el$
|
|
15958
|
-
insert(_el$
|
|
15955
|
+
var _el$41 = _tmpl$1101(); _el$41.firstChild;
|
|
15956
|
+
_el$41.addEventListener("change", (e) => set("templateId", e.currentTarget.value));
|
|
15957
|
+
insert(_el$41, createComponent(Show, {
|
|
15959
15958
|
get when() {
|
|
15960
15959
|
return missingTemplate();
|
|
15961
15960
|
},
|
|
15962
15961
|
get children() {
|
|
15963
|
-
var _el$
|
|
15964
|
-
effect(() => _el$
|
|
15965
|
-
return _el$
|
|
15962
|
+
var _el$43 = _tmpl$021();
|
|
15963
|
+
effect(() => _el$43.value = props.step.templateId);
|
|
15964
|
+
return _el$43;
|
|
15966
15965
|
}
|
|
15967
15966
|
}), null);
|
|
15968
|
-
insert(_el$
|
|
15967
|
+
insert(_el$41, createComponent(For, {
|
|
15969
15968
|
get each() {
|
|
15970
15969
|
return props.templates;
|
|
15971
15970
|
},
|
|
15972
15971
|
children: (t) => (() => {
|
|
15973
|
-
var _el$
|
|
15974
|
-
insert(_el$
|
|
15975
|
-
effect(() => _el$
|
|
15976
|
-
return _el$
|
|
15972
|
+
var _el$50 = _tmpl$828();
|
|
15973
|
+
insert(_el$50, () => t.name);
|
|
15974
|
+
effect(() => _el$50.value = t.id);
|
|
15975
|
+
return _el$50;
|
|
15977
15976
|
})()
|
|
15978
15977
|
}), null);
|
|
15979
|
-
effect(() => _el$
|
|
15980
|
-
return _el$
|
|
15978
|
+
effect(() => _el$41.value = props.step.templateId);
|
|
15979
|
+
return _el$41;
|
|
15981
15980
|
}
|
|
15982
15981
|
}), null);
|
|
15983
|
-
_el$
|
|
15984
|
-
insert(_el$
|
|
15982
|
+
_el$46.addEventListener("change", (e) => set("link", e.currentTarget.value));
|
|
15983
|
+
insert(_el$46, createComponent(For, {
|
|
15985
15984
|
each: LINKS,
|
|
15986
15985
|
children: (l) => (() => {
|
|
15987
|
-
var _el$
|
|
15988
|
-
_el$
|
|
15989
|
-
insert(_el$
|
|
15990
|
-
return _el$
|
|
15986
|
+
var _el$51 = _tmpl$828();
|
|
15987
|
+
_el$51.value = l;
|
|
15988
|
+
insert(_el$51, () => LINK_LABEL[l]);
|
|
15989
|
+
return _el$51;
|
|
15991
15990
|
})()
|
|
15992
15991
|
}));
|
|
15993
15992
|
effect((_p$) => {
|
|
15994
15993
|
var _v$3 = field, _v$4 = label, _v$5 = field, _v$6 = label, _v$7 = field, _v$8 = label;
|
|
15995
|
-
_p$.e = style(_el$
|
|
15996
|
-
_p$.t = style(_el$
|
|
15997
|
-
_p$.a = style(_el$
|
|
15998
|
-
_p$.o = style(_el$
|
|
15999
|
-
_p$.i = style(_el$
|
|
16000
|
-
_p$.n = style(_el$
|
|
15994
|
+
_p$.e = style(_el$36, _v$3, _p$.e);
|
|
15995
|
+
_p$.t = style(_el$37, _v$4, _p$.t);
|
|
15996
|
+
_p$.a = style(_el$39, _v$5, _p$.a);
|
|
15997
|
+
_p$.o = style(_el$40, _v$6, _p$.o);
|
|
15998
|
+
_p$.i = style(_el$44, _v$7, _p$.i);
|
|
15999
|
+
_p$.n = style(_el$45, _v$8, _p$.n);
|
|
16001
16000
|
return _p$;
|
|
16002
16001
|
}, {
|
|
16003
16002
|
e: void 0,
|
|
@@ -16007,9 +16006,9 @@ function StepEditor(props) {
|
|
|
16007
16006
|
i: void 0,
|
|
16008
16007
|
n: void 0
|
|
16009
16008
|
});
|
|
16010
|
-
effect(() => _el$
|
|
16011
|
-
effect(() => _el$
|
|
16012
|
-
return _el$
|
|
16009
|
+
effect(() => _el$38.value = props.step.waitHours);
|
|
16010
|
+
effect(() => _el$46.value = props.step.link);
|
|
16011
|
+
return _el$28;
|
|
16013
16012
|
})();
|
|
16014
16013
|
}
|
|
16015
16014
|
function SequenceEditor(props) {
|
|
@@ -16111,19 +16110,36 @@ function SequenceEditor(props) {
|
|
|
16111
16110
|
});
|
|
16112
16111
|
};
|
|
16113
16112
|
return (() => {
|
|
16114
|
-
var _el$
|
|
16115
|
-
insert(_el$
|
|
16116
|
-
var _c$
|
|
16117
|
-
return () => _c$
|
|
16113
|
+
var _el$52 = _tmpl$1912(), _el$53 = _el$52.firstChild, _el$54 = _el$53.firstChild, _el$55 = _el$54.nextSibling, _el$57 = _el$53.nextSibling, _el$58 = _el$57.firstChild, _el$59 = _el$58.firstChild, _el$60 = _el$59.firstChild, _el$61 = _el$60.nextSibling, _el$62 = _el$59.nextSibling, _el$63 = _el$62.firstChild, _el$64 = _el$63.nextSibling, _el$65 = _el$58.nextSibling, _el$66 = _el$65.firstChild, _el$67 = _el$65.nextSibling, _el$68 = _el$67.firstChild; _el$68.nextSibling; var _el$77 = _el$67.nextSibling, _el$78 = _el$77.firstChild, _el$79 = _el$78.nextSibling, _el$80 = _el$79.firstChild, _el$81 = _el$79.nextSibling, _el$83 = _el$77.nextSibling, _el$84 = _el$83.firstChild;
|
|
16114
|
+
insert(_el$54, (() => {
|
|
16115
|
+
var _c$3 = memo(() => !!isNew());
|
|
16116
|
+
return () => _c$3() ? "New sequence" : draft().name;
|
|
16118
16117
|
})());
|
|
16119
|
-
_el$
|
|
16120
|
-
_el$
|
|
16118
|
+
_el$55.$$click = () => props.onClose();
|
|
16119
|
+
insert(_el$52, createComponent(Show, {
|
|
16120
|
+
get when() {
|
|
16121
|
+
return !isNew();
|
|
16122
|
+
},
|
|
16123
|
+
get children() {
|
|
16124
|
+
var _el$56 = _tmpl$1313();
|
|
16125
|
+
insert(_el$56, createComponent(SequenceQueue, {
|
|
16126
|
+
get sequence() {
|
|
16127
|
+
return props.initial;
|
|
16128
|
+
},
|
|
16129
|
+
get onChanged() {
|
|
16130
|
+
return props.onChanged;
|
|
16131
|
+
}
|
|
16132
|
+
}));
|
|
16133
|
+
return _el$56;
|
|
16134
|
+
}
|
|
16135
|
+
}), _el$57);
|
|
16136
|
+
_el$61.$$input = (e) => update({
|
|
16121
16137
|
name: e.currentTarget.value
|
|
16122
16138
|
});
|
|
16123
|
-
_el$
|
|
16139
|
+
_el$64.$$input = (e) => update({
|
|
16124
16140
|
description: e.currentTarget.value || null
|
|
16125
16141
|
});
|
|
16126
|
-
insert(_el$
|
|
16142
|
+
insert(_el$57, createComponent(Index, {
|
|
16127
16143
|
get each() {
|
|
16128
16144
|
return draft().steps;
|
|
16129
16145
|
},
|
|
@@ -16144,99 +16160,99 @@ function SequenceEditor(props) {
|
|
|
16144
16160
|
}),
|
|
16145
16161
|
onTest: () => void test(i)
|
|
16146
16162
|
})
|
|
16147
|
-
}), _el$
|
|
16148
|
-
_el$
|
|
16163
|
+
}), _el$65);
|
|
16164
|
+
_el$66.$$click = () => update({
|
|
16149
16165
|
steps: [...draft().steps, {
|
|
16150
16166
|
...EMPTY_STEP,
|
|
16151
16167
|
waitHours: 72
|
|
16152
16168
|
}]
|
|
16153
16169
|
});
|
|
16154
|
-
insert(_el$
|
|
16170
|
+
insert(_el$67, createComponent(For, {
|
|
16155
16171
|
each: ["a", "b"],
|
|
16156
16172
|
children: (g) => (() => {
|
|
16157
|
-
var _el$
|
|
16158
|
-
insert(_el$
|
|
16159
|
-
insert(_el$
|
|
16173
|
+
var _el$93 = _tmpl$2010(), _el$94 = _el$93.firstChild, _el$95 = _el$94.nextSibling;
|
|
16174
|
+
insert(_el$94, () => GROUP_LABEL[g]);
|
|
16175
|
+
insert(_el$95, createComponent(For, {
|
|
16160
16176
|
get each() {
|
|
16161
16177
|
return SEGMENT_KEYS[g];
|
|
16162
16178
|
},
|
|
16163
16179
|
children: (key) => (() => {
|
|
16164
|
-
var _el$
|
|
16165
|
-
_el$
|
|
16166
|
-
insert(_el$
|
|
16167
|
-
effect(() => _el$
|
|
16168
|
-
return _el$
|
|
16180
|
+
var _el$96 = _tmpl$2115(), _el$97 = _el$96.firstChild;
|
|
16181
|
+
_el$97.addEventListener("change", () => toggleSegment(key));
|
|
16182
|
+
insert(_el$96, () => SEGMENT_LABEL[key], null);
|
|
16183
|
+
effect(() => _el$97.checked = draft().feedSegments.includes(key));
|
|
16184
|
+
return _el$96;
|
|
16169
16185
|
})()
|
|
16170
16186
|
}));
|
|
16171
|
-
effect((_$p) => style(_el$
|
|
16187
|
+
effect((_$p) => style(_el$94, {
|
|
16172
16188
|
...label
|
|
16173
16189
|
}, _$p));
|
|
16174
|
-
return _el$
|
|
16190
|
+
return _el$93;
|
|
16175
16191
|
})()
|
|
16176
16192
|
}), null);
|
|
16177
|
-
insert(_el$
|
|
16193
|
+
insert(_el$67, createComponent(Show, {
|
|
16178
16194
|
get when() {
|
|
16179
16195
|
return draft().feedSegments.length > 0;
|
|
16180
16196
|
},
|
|
16181
16197
|
get children() {
|
|
16182
|
-
var _el$
|
|
16183
|
-
_el$
|
|
16198
|
+
var _el$70 = _tmpl$1413(), _el$71 = _el$70.firstChild, _el$72 = _el$71.firstChild, _el$73 = _el$72.nextSibling; _el$73.nextSibling; var _el$75 = _el$71.nextSibling, _el$76 = _el$75.firstChild;
|
|
16199
|
+
_el$73.$$input = (e) => update({
|
|
16184
16200
|
feedMaxAgeDays: Number(e.currentTarget.value)
|
|
16185
16201
|
});
|
|
16186
|
-
_el$
|
|
16202
|
+
_el$76.addEventListener("change", (e) => update({
|
|
16187
16203
|
feedQualifiedOnly: e.currentTarget.checked
|
|
16188
16204
|
}));
|
|
16189
16205
|
effect((_p$) => {
|
|
16190
16206
|
var _v$9 = field, _v$0 = label;
|
|
16191
|
-
_p$.e = style(_el$
|
|
16192
|
-
_p$.t = style(_el$
|
|
16207
|
+
_p$.e = style(_el$71, _v$9, _p$.e);
|
|
16208
|
+
_p$.t = style(_el$72, _v$0, _p$.t);
|
|
16193
16209
|
return _p$;
|
|
16194
16210
|
}, {
|
|
16195
16211
|
e: void 0,
|
|
16196
16212
|
t: void 0
|
|
16197
16213
|
});
|
|
16198
|
-
effect(() => _el$
|
|
16199
|
-
effect(() => _el$
|
|
16200
|
-
return _el$
|
|
16214
|
+
effect(() => _el$73.value = draft().feedMaxAgeDays ?? 30);
|
|
16215
|
+
effect(() => _el$76.checked = draft().feedQualifiedOnly);
|
|
16216
|
+
return _el$70;
|
|
16201
16217
|
}
|
|
16202
16218
|
}), null);
|
|
16203
|
-
_el$
|
|
16219
|
+
_el$80.addEventListener("change", (e) => update({
|
|
16204
16220
|
autoSend: e.currentTarget.checked
|
|
16205
16221
|
}));
|
|
16206
|
-
insert(_el$
|
|
16207
|
-
insert(_el$
|
|
16222
|
+
insert(_el$81, () => draft().autoSend ? "Due steps are emailed by the hourly check with no further review. Anyone who buys or unsubscribes drops out first; nobody gets more than one sequence email a day." : "Due steps wait under \u201CWaiting to send\u201D for you to send or skip them.");
|
|
16223
|
+
insert(_el$57, createComponent(Show, {
|
|
16208
16224
|
get when() {
|
|
16209
16225
|
return error();
|
|
16210
16226
|
},
|
|
16211
16227
|
get children() {
|
|
16212
|
-
var _el$
|
|
16213
|
-
insert(_el$
|
|
16214
|
-
return _el$
|
|
16228
|
+
var _el$82 = _tmpl$1513();
|
|
16229
|
+
insert(_el$82, error);
|
|
16230
|
+
return _el$82;
|
|
16215
16231
|
}
|
|
16216
|
-
}), _el$
|
|
16217
|
-
_el$
|
|
16218
|
-
insert(_el$
|
|
16219
|
-
var _c$
|
|
16220
|
-
return () => _c$
|
|
16232
|
+
}), _el$83);
|
|
16233
|
+
_el$84.$$click = () => void save();
|
|
16234
|
+
insert(_el$84, (() => {
|
|
16235
|
+
var _c$4 = memo(() => !!saving());
|
|
16236
|
+
return () => _c$4() ? "Saving\u2026" : isNew() ? "Create sequence" : "Save changes";
|
|
16221
16237
|
})());
|
|
16222
|
-
insert(_el$
|
|
16238
|
+
insert(_el$83, createComponent(Show, {
|
|
16223
16239
|
get when() {
|
|
16224
16240
|
return !isNew();
|
|
16225
16241
|
},
|
|
16226
16242
|
get children() {
|
|
16227
|
-
var _el$
|
|
16228
|
-
_el$
|
|
16229
|
-
return _el$
|
|
16243
|
+
var _el$85 = _tmpl$1613();
|
|
16244
|
+
_el$85.$$click = () => void archive();
|
|
16245
|
+
return _el$85;
|
|
16230
16246
|
}
|
|
16231
16247
|
}), null);
|
|
16232
|
-
insert(_el$
|
|
16248
|
+
insert(_el$52, createComponent(Show, {
|
|
16233
16249
|
get when() {
|
|
16234
16250
|
return !isNew();
|
|
16235
16251
|
},
|
|
16236
16252
|
get children() {
|
|
16237
|
-
var _el$
|
|
16238
|
-
insert(_el$
|
|
16239
|
-
insert(_el$
|
|
16253
|
+
var _el$86 = _tmpl$1812(), _el$87 = _el$86.firstChild, _el$88 = _el$87.firstChild; _el$88.firstChild;
|
|
16254
|
+
insert(_el$88, () => enrollments()?.enrollments.length ?? "\u2026", null);
|
|
16255
|
+
insert(_el$86, createComponent(Show, {
|
|
16240
16256
|
get when() {
|
|
16241
16257
|
return enrollments();
|
|
16242
16258
|
},
|
|
@@ -16254,14 +16270,14 @@ function SequenceEditor(props) {
|
|
|
16254
16270
|
});
|
|
16255
16271
|
},
|
|
16256
16272
|
get children() {
|
|
16257
|
-
var _el$
|
|
16258
|
-
insert(_el$
|
|
16273
|
+
var _el$90 = _tmpl$1713(), _el$91 = _el$90.firstChild, _el$92 = _el$91.nextSibling;
|
|
16274
|
+
insert(_el$92, createComponent(For, {
|
|
16259
16275
|
get each() {
|
|
16260
16276
|
return enrollments().enrollments;
|
|
16261
16277
|
},
|
|
16262
16278
|
children: (e) => (() => {
|
|
16263
|
-
var _el$
|
|
16264
|
-
insert(_el$
|
|
16279
|
+
var _el$98 = _tmpl$2212(), _el$99 = _el$98.firstChild, _el$101 = _el$99.firstChild, _el$102 = _el$101.firstChild, _el$103 = _el$99.nextSibling, _el$104 = _el$103.nextSibling, _el$105 = _el$104.firstChild, _el$106 = _el$104.nextSibling, _el$107 = _el$106.nextSibling, _el$108 = _el$107.firstChild;
|
|
16280
|
+
insert(_el$99, createComponent(Show, {
|
|
16265
16281
|
get when() {
|
|
16266
16282
|
return e.userId && nav;
|
|
16267
16283
|
},
|
|
@@ -16269,41 +16285,41 @@ function SequenceEditor(props) {
|
|
|
16269
16285
|
return e.email;
|
|
16270
16286
|
},
|
|
16271
16287
|
get children() {
|
|
16272
|
-
var _el$
|
|
16273
|
-
_el$
|
|
16274
|
-
insert(_el$
|
|
16275
|
-
return _el$
|
|
16288
|
+
var _el$100 = _tmpl$442();
|
|
16289
|
+
_el$100.$$click = () => nav.openCustomer(e.userId);
|
|
16290
|
+
insert(_el$100, () => e.email);
|
|
16291
|
+
return _el$100;
|
|
16276
16292
|
}
|
|
16277
|
-
}), _el$
|
|
16278
|
-
insert(_el$
|
|
16279
|
-
insert(_el$
|
|
16280
|
-
insert(_el$
|
|
16281
|
-
insert(_el$
|
|
16282
|
-
insert(_el$
|
|
16283
|
-
insert(_el$
|
|
16284
|
-
var _c$
|
|
16285
|
-
return () => _c$
|
|
16293
|
+
}), _el$101);
|
|
16294
|
+
insert(_el$101, () => e.source === "feed" ? "enrolled by the feed" : "added by hand", _el$102);
|
|
16295
|
+
insert(_el$101, () => formatDate(e.addedAt), null);
|
|
16296
|
+
insert(_el$103, () => segmentLongLabel(e.segmentAtAdd));
|
|
16297
|
+
insert(_el$104, () => Math.min(e.stepIndex + 1, draft().steps.length), _el$105);
|
|
16298
|
+
insert(_el$104, () => draft().steps.length, null);
|
|
16299
|
+
insert(_el$106, (() => {
|
|
16300
|
+
var _c$5 = memo(() => !!e.nextDueAt);
|
|
16301
|
+
return () => _c$5() ? formatDate(e.nextDueAt) : "\u2014";
|
|
16286
16302
|
})());
|
|
16287
|
-
_el$
|
|
16288
|
-
return _el$
|
|
16303
|
+
_el$108.$$click = () => void remove(e);
|
|
16304
|
+
return _el$98;
|
|
16289
16305
|
})()
|
|
16290
16306
|
}));
|
|
16291
|
-
return _el$
|
|
16307
|
+
return _el$90;
|
|
16292
16308
|
}
|
|
16293
16309
|
});
|
|
16294
16310
|
}
|
|
16295
16311
|
}), null);
|
|
16296
|
-
return _el$
|
|
16312
|
+
return _el$86;
|
|
16297
16313
|
}
|
|
16298
16314
|
}), null);
|
|
16299
16315
|
effect((_p$) => {
|
|
16300
16316
|
var _v$1 = field, _v$10 = label, _v$11 = field, _v$12 = label, _v$13 = draft().steps.length >= 8, _v$14 = saving();
|
|
16301
|
-
_p$.e = style(_el$
|
|
16302
|
-
_p$.t = style(_el$
|
|
16303
|
-
_p$.a = style(_el$
|
|
16304
|
-
_p$.o = style(_el$
|
|
16305
|
-
_v$13 !== _p$.i && (_el$
|
|
16306
|
-
_v$14 !== _p$.n && (_el$
|
|
16317
|
+
_p$.e = style(_el$59, _v$1, _p$.e);
|
|
16318
|
+
_p$.t = style(_el$60, _v$10, _p$.t);
|
|
16319
|
+
_p$.a = style(_el$62, _v$11, _p$.a);
|
|
16320
|
+
_p$.o = style(_el$63, _v$12, _p$.o);
|
|
16321
|
+
_v$13 !== _p$.i && (_el$66.disabled = _p$.i = _v$13);
|
|
16322
|
+
_v$14 !== _p$.n && (_el$84.disabled = _p$.n = _v$14);
|
|
16307
16323
|
return _p$;
|
|
16308
16324
|
}, {
|
|
16309
16325
|
e: void 0,
|
|
@@ -16313,10 +16329,10 @@ function SequenceEditor(props) {
|
|
|
16313
16329
|
i: void 0,
|
|
16314
16330
|
n: void 0
|
|
16315
16331
|
});
|
|
16316
|
-
effect(() => _el$
|
|
16317
|
-
effect(() => _el$
|
|
16318
|
-
effect(() => _el$
|
|
16319
|
-
return _el$
|
|
16332
|
+
effect(() => _el$61.value = draft().name);
|
|
16333
|
+
effect(() => _el$64.value = draft().description ?? "");
|
|
16334
|
+
effect(() => _el$80.checked = draft().autoSend);
|
|
16335
|
+
return _el$52;
|
|
16320
16336
|
})();
|
|
16321
16337
|
}
|
|
16322
16338
|
function Sequences() {
|
|
@@ -16327,38 +16343,31 @@ function Sequences() {
|
|
|
16327
16343
|
const [emailTemplates] = createResource(() => adminApi.getEmailTemplates());
|
|
16328
16344
|
const customTemplates = () => emailTemplates()?.customTemplates ?? [];
|
|
16329
16345
|
const [editing, setEditing] = createSignal(null);
|
|
16330
|
-
const
|
|
16346
|
+
const [queue, {
|
|
16347
|
+
refetch: refetchQueue
|
|
16348
|
+
}] = createResource(reload, () => apiFetch("/admin/funnel/queue").catch(() => ({
|
|
16349
|
+
due: []
|
|
16350
|
+
})));
|
|
16351
|
+
const dueFor = (id) => (queue()?.due ?? []).filter((d) => d.sequenceId === id).length;
|
|
16352
|
+
const changed = () => {
|
|
16353
|
+
void refetch();
|
|
16354
|
+
void refetchQueue();
|
|
16355
|
+
};
|
|
16331
16356
|
return (() => {
|
|
16332
|
-
var _el$
|
|
16333
|
-
insert(_el$
|
|
16357
|
+
var _el$109 = _tmpl$2311();
|
|
16358
|
+
insert(_el$109, createComponent(PageTitle, {
|
|
16334
16359
|
subtitle: "Timed emails for people who stopped short of a subscription",
|
|
16335
16360
|
children: "Sequences"
|
|
16336
16361
|
}), null);
|
|
16337
|
-
insert(_el$
|
|
16338
|
-
get when() {
|
|
16339
|
-
return list();
|
|
16340
|
-
},
|
|
16341
|
-
get fallback() {
|
|
16342
|
-
return createComponent(LoadingSpinner, {});
|
|
16343
|
-
},
|
|
16344
|
-
get children() {
|
|
16345
|
-
return createComponent(Queue, {
|
|
16346
|
-
get sequences() {
|
|
16347
|
-
return list().sequences;
|
|
16348
|
-
},
|
|
16349
|
-
onChanged: changed
|
|
16350
|
-
});
|
|
16351
|
-
}
|
|
16352
|
-
}), null);
|
|
16353
|
-
insert(_el$113, createComponent(Show, {
|
|
16362
|
+
insert(_el$109, createComponent(Show, {
|
|
16354
16363
|
get when() {
|
|
16355
16364
|
return editing();
|
|
16356
16365
|
},
|
|
16357
16366
|
get fallback() {
|
|
16358
16367
|
return (() => {
|
|
16359
|
-
var _el$
|
|
16360
|
-
_el$
|
|
16361
|
-
insert(_el$
|
|
16368
|
+
var _el$110 = _tmpl$2511(), _el$111 = _el$110.firstChild, _el$112 = _el$111.firstChild, _el$113 = _el$112.nextSibling;
|
|
16369
|
+
_el$113.$$click = () => setEditing(blankSequence());
|
|
16370
|
+
insert(_el$110, createComponent(Show, {
|
|
16362
16371
|
get when() {
|
|
16363
16372
|
return list();
|
|
16364
16373
|
},
|
|
@@ -16376,44 +16385,52 @@ function Sequences() {
|
|
|
16376
16385
|
});
|
|
16377
16386
|
},
|
|
16378
16387
|
get children() {
|
|
16379
|
-
var _el$
|
|
16380
|
-
insert(_el$
|
|
16388
|
+
var _el$114 = _tmpl$2411(), _el$115 = _el$114.firstChild, _el$116 = _el$115.nextSibling;
|
|
16389
|
+
insert(_el$116, createComponent(For, {
|
|
16381
16390
|
get each() {
|
|
16382
16391
|
return list().sequences;
|
|
16383
16392
|
},
|
|
16384
16393
|
children: (s) => (() => {
|
|
16385
|
-
var _el$
|
|
16386
|
-
_el$
|
|
16387
|
-
insert(_el$
|
|
16388
|
-
insert(_el$
|
|
16394
|
+
var _el$117 = _tmpl$2710(), _el$118 = _el$117.firstChild, _el$119 = _el$118.firstChild, _el$121 = _el$118.nextSibling, _el$122 = _el$121.nextSibling, _el$123 = _el$122.nextSibling, _el$124 = _el$123.nextSibling, _el$125 = _el$124.nextSibling, _el$126 = _el$125.nextSibling, _el$127 = _el$126.nextSibling, _el$128 = _el$127.nextSibling;
|
|
16395
|
+
_el$119.$$click = () => setEditing(s);
|
|
16396
|
+
insert(_el$119, () => s.name);
|
|
16397
|
+
insert(_el$118, createComponent(Show, {
|
|
16389
16398
|
get when() {
|
|
16390
16399
|
return s.description;
|
|
16391
16400
|
},
|
|
16392
16401
|
get children() {
|
|
16393
|
-
var _el$
|
|
16394
|
-
insert(_el$
|
|
16395
|
-
return _el$
|
|
16402
|
+
var _el$120 = _tmpl$2610();
|
|
16403
|
+
insert(_el$120, () => s.description);
|
|
16404
|
+
return _el$120;
|
|
16396
16405
|
}
|
|
16397
16406
|
}), null);
|
|
16398
|
-
insert(_el$
|
|
16399
|
-
insert(_el$
|
|
16400
|
-
var _c$
|
|
16401
|
-
return () => _c$
|
|
16407
|
+
insert(_el$121, () => s.steps.length);
|
|
16408
|
+
insert(_el$122, (() => {
|
|
16409
|
+
var _c$6 = memo(() => s.feedSegments.length > 0);
|
|
16410
|
+
return () => _c$6() ? `${s.feedSegments.length} segment${s.feedSegments.length === 1 ? "" : "s"}, \u2264${s.feedMaxAgeDays}d` : _tmpl$289();
|
|
16411
|
+
})());
|
|
16412
|
+
insert(_el$123, () => s.autoSend ? "Automatic" : "Review");
|
|
16413
|
+
insert(_el$124, () => s.stats.active);
|
|
16414
|
+
insert(_el$125, (() => {
|
|
16415
|
+
var _c$7 = memo(() => dueFor(s.id) > 0);
|
|
16416
|
+
return () => _c$7() ? (() => {
|
|
16417
|
+
var _el$130 = _tmpl$295();
|
|
16418
|
+
insert(_el$130, () => dueFor(s.id));
|
|
16419
|
+
return _el$130;
|
|
16420
|
+
})() : _tmpl$305();
|
|
16402
16421
|
})());
|
|
16403
|
-
insert(_el$
|
|
16404
|
-
insert(_el$
|
|
16405
|
-
insert(_el$
|
|
16406
|
-
|
|
16407
|
-
insert(_el$131, () => s.stats.unsubscribed);
|
|
16408
|
-
return _el$121;
|
|
16422
|
+
insert(_el$126, () => s.stats.sent);
|
|
16423
|
+
insert(_el$127, () => s.stats.boughtAfterEnroll);
|
|
16424
|
+
insert(_el$128, () => s.stats.unsubscribed);
|
|
16425
|
+
return _el$117;
|
|
16409
16426
|
})()
|
|
16410
16427
|
}));
|
|
16411
|
-
return _el$
|
|
16428
|
+
return _el$114;
|
|
16412
16429
|
}
|
|
16413
16430
|
});
|
|
16414
16431
|
}
|
|
16415
16432
|
}), null);
|
|
16416
|
-
return _el$
|
|
16433
|
+
return _el$110;
|
|
16417
16434
|
})();
|
|
16418
16435
|
},
|
|
16419
16436
|
children: (seq) => createComponent(SequenceEditor, {
|
|
@@ -16431,14 +16448,14 @@ function Sequences() {
|
|
|
16431
16448
|
onChanged: changed
|
|
16432
16449
|
})
|
|
16433
16450
|
}), null);
|
|
16434
|
-
return _el$
|
|
16451
|
+
return _el$109;
|
|
16435
16452
|
})();
|
|
16436
16453
|
}
|
|
16437
16454
|
delegateEvents(["click", "input"]);
|
|
16438
16455
|
|
|
16439
16456
|
// src/pages/admin/Funnel.tsx
|
|
16440
|
-
var _tmpl$
|
|
16441
|
-
var _tmpl$
|
|
16457
|
+
var _tmpl$290 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;color:var(--app-admin-fg-muted);margin:0.25rem 0 0">`);
|
|
16458
|
+
var _tmpl$291 = /* @__PURE__ */ template(`<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>`);
|
|
16442
16459
|
var _tmpl$356 = /* @__PURE__ */ template(`<label style=font-size:0.8125rem;display:flex;gap:0.375rem;align-items:center;margin-top:0.25rem><input type=checkbox>Savings program only (<!>)`);
|
|
16443
16460
|
var _tmpl$443 = /* @__PURE__ */ template(`<th>Account`);
|
|
16444
16461
|
var _tmpl$538 = /* @__PURE__ */ template(`<p class=app-admin-text-muted style="font-size:0.75rem;padding:0.625rem 1.25rem;margin:0">Showing the 50 most recent of <!>.`);
|
|
@@ -16458,14 +16475,14 @@ var _tmpl$1614 = /* @__PURE__ */ template(`<span style=font-size:0.6875rem;color
|
|
|
16458
16475
|
var _tmpl$1714 = /* @__PURE__ */ template(`<div style=flex:1;display:flex;flex-direction:column;align-items:center;gap:0.25rem;height:100%;justify-content:flex-end><div style="width:100%;max-width:1.75rem;border-radius:4px 4px 0 0"></div><span style=font-size:0.625rem;color:var(--app-admin-fg-subtle)>`);
|
|
16459
16476
|
function CardHeader(props) {
|
|
16460
16477
|
return (() => {
|
|
16461
|
-
var _el$ = _tmpl$
|
|
16478
|
+
var _el$ = _tmpl$291(), _el$2 = _el$.firstChild;
|
|
16462
16479
|
insert(_el$2, () => props.title);
|
|
16463
16480
|
insert(_el$, createComponent(Show, {
|
|
16464
16481
|
get when() {
|
|
16465
16482
|
return props.note;
|
|
16466
16483
|
},
|
|
16467
16484
|
get children() {
|
|
16468
|
-
var _el$3 = _tmpl$
|
|
16485
|
+
var _el$3 = _tmpl$290();
|
|
16469
16486
|
insert(_el$3, () => props.note);
|
|
16470
16487
|
return _el$3;
|
|
16471
16488
|
}
|
|
@@ -16795,8 +16812,8 @@ function Funnel() {
|
|
|
16795
16812
|
})();
|
|
16796
16813
|
}
|
|
16797
16814
|
delegateEvents(["click"]);
|
|
16798
|
-
var _tmpl$
|
|
16799
|
-
var _tmpl$
|
|
16815
|
+
var _tmpl$296 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;margin:0.25rem 0 0">`);
|
|
16816
|
+
var _tmpl$297 = /* @__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">`);
|
|
16800
16817
|
var _tmpl$357 = /* @__PURE__ */ template(`<label style=display:flex;align-items:center;gap:0.5rem;font-size:0.875rem;cursor:pointer><input type=checkbox>`);
|
|
16801
16818
|
var _tmpl$444 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm">`);
|
|
16802
16819
|
var _tmpl$539 = /* @__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`);
|
|
@@ -16816,14 +16833,14 @@ var label2 = {
|
|
|
16816
16833
|
};
|
|
16817
16834
|
function Card(props) {
|
|
16818
16835
|
return (() => {
|
|
16819
|
-
var _el$ = _tmpl$
|
|
16836
|
+
var _el$ = _tmpl$297(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$6 = _el$2.nextSibling;
|
|
16820
16837
|
insert(_el$4, () => props.title);
|
|
16821
16838
|
insert(_el$3, createComponent(Show, {
|
|
16822
16839
|
get when() {
|
|
16823
16840
|
return props.note;
|
|
16824
16841
|
},
|
|
16825
16842
|
get children() {
|
|
16826
|
-
var _el$5 = _tmpl$
|
|
16843
|
+
var _el$5 = _tmpl$296();
|
|
16827
16844
|
insert(_el$5, () => props.note);
|
|
16828
16845
|
effect((_$p) => style(_el$5, {
|
|
16829
16846
|
...label2
|
|
@@ -17146,8 +17163,8 @@ function EmailNotifications() {
|
|
|
17146
17163
|
delegateEvents(["click", "input", "keydown"]);
|
|
17147
17164
|
|
|
17148
17165
|
// src/pages/AdminDashboard.tsx
|
|
17149
|
-
var _tmpl$
|
|
17150
|
-
var _tmpl$
|
|
17166
|
+
var _tmpl$298 = /* @__PURE__ */ template(`<span style=font-size:1rem;opacity:0.7;flex-shrink:0>`);
|
|
17167
|
+
var _tmpl$299 = /* @__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">`);
|
|
17151
17168
|
var _tmpl$358 = /* @__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>`);
|
|
17152
17169
|
var _tmpl$445 = /* @__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">`);
|
|
17153
17170
|
var _tmpl$540 = /* @__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`);
|
|
@@ -17261,14 +17278,14 @@ function AdminDashboard(props) {
|
|
|
17261
17278
|
};
|
|
17262
17279
|
const topOffset = () => props.topOffset ?? "0px";
|
|
17263
17280
|
const TabButton = (btnProps) => (() => {
|
|
17264
|
-
var _el$ = _tmpl$
|
|
17281
|
+
var _el$ = _tmpl$299();
|
|
17265
17282
|
_el$.$$click = () => handleTabClick(btnProps.tab);
|
|
17266
17283
|
insert(_el$, createComponent(Show, {
|
|
17267
17284
|
get when() {
|
|
17268
17285
|
return props.tabIcons?.[btnProps.tab];
|
|
17269
17286
|
},
|
|
17270
17287
|
get children() {
|
|
17271
|
-
var _el$2 = _tmpl$
|
|
17288
|
+
var _el$2 = _tmpl$298();
|
|
17272
17289
|
effect(() => className(_el$2, props.tabIcons[btnProps.tab]));
|
|
17273
17290
|
return _el$2;
|
|
17274
17291
|
}
|
|
@@ -17547,8 +17564,8 @@ function AdminGateSpinner(props) {
|
|
|
17547
17564
|
})();
|
|
17548
17565
|
}
|
|
17549
17566
|
delegateEvents(["click"]);
|
|
17550
|
-
var _tmpl$
|
|
17551
|
-
var _tmpl$
|
|
17567
|
+
var _tmpl$300 = /* @__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`);
|
|
17568
|
+
var _tmpl$2100 = /* @__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`);
|
|
17552
17569
|
var _tmpl$359 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>Could not load this customer's dashboard.`);
|
|
17553
17570
|
var _tmpl$446 = /* @__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">`);
|
|
17554
17571
|
var _tmpl$541 = /* @__PURE__ */ template(`<div><h3>Subscription`);
|
|
@@ -17571,7 +17588,7 @@ function PatientDashboardPreview(props) {
|
|
|
17571
17588
|
authToken: () => props.token
|
|
17572
17589
|
});
|
|
17573
17590
|
return (() => {
|
|
17574
|
-
var _el$ = _tmpl$
|
|
17591
|
+
var _el$ = _tmpl$300(), _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;
|
|
17575
17592
|
_el$.$$click = (e) => {
|
|
17576
17593
|
if (e.target === e.currentTarget) props.onClose();
|
|
17577
17594
|
};
|
|
@@ -17583,7 +17600,7 @@ function PatientDashboardPreview(props) {
|
|
|
17583
17600
|
},
|
|
17584
17601
|
keyed: true,
|
|
17585
17602
|
children: (msg) => (() => {
|
|
17586
|
-
var _el$1 = _tmpl$
|
|
17603
|
+
var _el$1 = _tmpl$2100(), _el$10 = _el$1.firstChild, _el$11 = _el$10.nextSibling;
|
|
17587
17604
|
insert(_el$10, msg);
|
|
17588
17605
|
_el$11.$$click = () => data.retry();
|
|
17589
17606
|
return _el$1;
|
|
@@ -17761,8 +17778,8 @@ function PatientDashboardPreview(props) {
|
|
|
17761
17778
|
})();
|
|
17762
17779
|
}
|
|
17763
17780
|
delegateEvents(["click"]);
|
|
17764
|
-
var _tmpl$
|
|
17765
|
-
var _tmpl$
|
|
17781
|
+
var _tmpl$301 = /* @__PURE__ */ template(`<div style=margin-bottom:1rem>`);
|
|
17782
|
+
var _tmpl$2101 = /* @__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>`);
|
|
17766
17783
|
var _tmpl$360 = /* @__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.`);
|
|
17767
17784
|
var LIVE = /* @__PURE__ */ new Set(["active", "paused", "past_due"]);
|
|
17768
17785
|
function UpdatePaymentMethod(props) {
|
|
@@ -17824,14 +17841,14 @@ function UpdatePaymentMethod(props) {
|
|
|
17824
17841
|
return memo(() => !!!resolving())() && !noSubscription();
|
|
17825
17842
|
},
|
|
17826
17843
|
get children() {
|
|
17827
|
-
var _el$3 = _tmpl$
|
|
17844
|
+
var _el$3 = _tmpl$2101(), _el$5 = _el$3.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$5.nextSibling, _el$8 = _el$7.nextSibling;
|
|
17828
17845
|
_el$3.addEventListener("submit", handleSubmit);
|
|
17829
17846
|
insert(_el$3, createComponent(Show, {
|
|
17830
17847
|
get when() {
|
|
17831
17848
|
return flow.error();
|
|
17832
17849
|
},
|
|
17833
17850
|
get children() {
|
|
17834
|
-
var _el$4 = _tmpl$
|
|
17851
|
+
var _el$4 = _tmpl$301();
|
|
17835
17852
|
insert(_el$4, createComponent(Banner, {
|
|
17836
17853
|
variant: "error",
|
|
17837
17854
|
get children() {
|
|
@@ -17909,8 +17926,8 @@ function UpdatePaymentMethod(props) {
|
|
|
17909
17926
|
return _el$;
|
|
17910
17927
|
})();
|
|
17911
17928
|
}
|
|
17912
|
-
var _tmpl$
|
|
17913
|
-
var _tmpl$
|
|
17929
|
+
var _tmpl$306 = /* @__PURE__ */ template(`<a class=ship__track target=_blank rel="noopener noreferrer">Track<!> \u2197`);
|
|
17930
|
+
var _tmpl$2102 = /* @__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>`);
|
|
17914
17931
|
var _tmpl$361 = /* @__PURE__ */ template(`<span class=refill__cycle>Day <!> of `);
|
|
17915
17932
|
var _tmpl$447 = /* @__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>`);
|
|
17916
17933
|
var _tmpl$542 = /* @__PURE__ */ template(`<span class=refill__cycle>Preparing your next fill`);
|
|
@@ -17946,7 +17963,7 @@ function TrackingChip(props) {
|
|
|
17946
17963
|
}
|
|
17947
17964
|
};
|
|
17948
17965
|
return (() => {
|
|
17949
|
-
var _el$ = _tmpl$
|
|
17966
|
+
var _el$ = _tmpl$2102(), _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;
|
|
17950
17967
|
insert(_el$2, () => props.eta);
|
|
17951
17968
|
_el$4.$$click = copy;
|
|
17952
17969
|
insert(_el$5, () => props.number);
|
|
@@ -17957,7 +17974,7 @@ function TrackingChip(props) {
|
|
|
17957
17974
|
return props.url;
|
|
17958
17975
|
},
|
|
17959
17976
|
get children() {
|
|
17960
|
-
var _el$8 = _tmpl$
|
|
17977
|
+
var _el$8 = _tmpl$306(), _el$9 = _el$8.firstChild, _el$1 = _el$9.nextSibling; _el$1.nextSibling;
|
|
17961
17978
|
insert(_el$8, (() => {
|
|
17962
17979
|
var _c$ = memo(() => !!props.carrier);
|
|
17963
17980
|
return () => _c$() ? ` with ${props.carrier}` : "";
|
|
@@ -18226,8 +18243,8 @@ function OrderTracker(props) {
|
|
|
18226
18243
|
});
|
|
18227
18244
|
}
|
|
18228
18245
|
delegateEvents(["click"]);
|
|
18229
|
-
var _tmpl$
|
|
18230
|
-
var _tmpl$
|
|
18246
|
+
var _tmpl$307 = /* @__PURE__ */ template(`<span class=rx-row__dose> \xB7 `);
|
|
18247
|
+
var _tmpl$2103 = /* @__PURE__ */ template(`<div class=rx-row__body>`);
|
|
18231
18248
|
var _tmpl$363 = /* @__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>`);
|
|
18232
18249
|
var STATUS_LABEL = {
|
|
18233
18250
|
pending: "Under review",
|
|
@@ -18253,7 +18270,7 @@ function RxRow(props) {
|
|
|
18253
18270
|
return props.rx.dosage;
|
|
18254
18271
|
},
|
|
18255
18272
|
get children() {
|
|
18256
|
-
var _el$4 = _tmpl$
|
|
18273
|
+
var _el$4 = _tmpl$307(); _el$4.firstChild;
|
|
18257
18274
|
insert(_el$4, () => props.rx.dosage, null);
|
|
18258
18275
|
return _el$4;
|
|
18259
18276
|
}
|
|
@@ -18264,7 +18281,7 @@ function RxRow(props) {
|
|
|
18264
18281
|
return open();
|
|
18265
18282
|
},
|
|
18266
18283
|
get children() {
|
|
18267
|
-
var _el$8 = _tmpl$
|
|
18284
|
+
var _el$8 = _tmpl$2103();
|
|
18268
18285
|
insert(_el$8, createComponent(OrderTracker, {
|
|
18269
18286
|
get request() {
|
|
18270
18287
|
return props.request;
|
|
@@ -18307,8 +18324,8 @@ function RxRow(props) {
|
|
|
18307
18324
|
})();
|
|
18308
18325
|
}
|
|
18309
18326
|
delegateEvents(["click"]);
|
|
18310
|
-
var _tmpl$
|
|
18311
|
-
var _tmpl$
|
|
18327
|
+
var _tmpl$308 = /* @__PURE__ */ template(`<div class=plan data-testid=plan-billing><span class=lab-label>Plan & billing`);
|
|
18328
|
+
var _tmpl$2104 = /* @__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`);
|
|
18312
18329
|
var _tmpl$364 = /* @__PURE__ */ template(`<p class=membership__dose>`);
|
|
18313
18330
|
var _tmpl$448 = /* @__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 `);
|
|
18314
18331
|
var _tmpl$543 = /* @__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`);
|
|
@@ -18362,14 +18379,14 @@ function PlanBilling(props) {
|
|
|
18362
18379
|
}
|
|
18363
18380
|
};
|
|
18364
18381
|
return (() => {
|
|
18365
|
-
var _el$ = _tmpl$
|
|
18382
|
+
var _el$ = _tmpl$308(); _el$.firstChild;
|
|
18366
18383
|
insert(_el$, createComponent(Show, {
|
|
18367
18384
|
get when() {
|
|
18368
18385
|
return primary();
|
|
18369
18386
|
},
|
|
18370
18387
|
get fallback() {
|
|
18371
18388
|
return (() => {
|
|
18372
|
-
var _el$3 = _tmpl$
|
|
18389
|
+
var _el$3 = _tmpl$2104(), _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.nextSibling;
|
|
18373
18390
|
effect(() => setAttribute(_el$6, "href", props.intakeHref));
|
|
18374
18391
|
return _el$3;
|
|
18375
18392
|
})();
|
|
@@ -18486,8 +18503,8 @@ function PlanBilling(props) {
|
|
|
18486
18503
|
})();
|
|
18487
18504
|
}
|
|
18488
18505
|
delegateEvents(["click"]);
|
|
18489
|
-
var _tmpl$
|
|
18490
|
-
var _tmpl$
|
|
18506
|
+
var _tmpl$309 = /* @__PURE__ */ template(`<p class=account__empty>We don\u2019t have your details on file yet.`);
|
|
18507
|
+
var _tmpl$2105 = /* @__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.`);
|
|
18491
18508
|
var _tmpl$365 = /* @__PURE__ */ template(`<button type=button class="account__support-link account__support-btn">Messages`);
|
|
18492
18509
|
var _tmpl$449 = /* @__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`);
|
|
18493
18510
|
var _tmpl$544 = /* @__PURE__ */ template(`<div class=account__field><dt class=lab-label></dt><dd>`);
|
|
@@ -18549,7 +18566,7 @@ function AccountPanel(props) {
|
|
|
18549
18566
|
return fields().length === 0;
|
|
18550
18567
|
},
|
|
18551
18568
|
get children() {
|
|
18552
|
-
return _tmpl$
|
|
18569
|
+
return _tmpl$309();
|
|
18553
18570
|
}
|
|
18554
18571
|
}), _el$0);
|
|
18555
18572
|
insert(_el$, createComponent(Show, {
|
|
@@ -18557,7 +18574,7 @@ function AccountPanel(props) {
|
|
|
18557
18574
|
return props.messagingEnabled;
|
|
18558
18575
|
},
|
|
18559
18576
|
get children() {
|
|
18560
|
-
var _el$6 = _tmpl$
|
|
18577
|
+
var _el$6 = _tmpl$2105(), _el$7 = _el$6.firstChild, _el$9 = _el$7.nextSibling;
|
|
18561
18578
|
_el$9.$$click = () => props.onOpenMessages({
|
|
18562
18579
|
channel: "support",
|
|
18563
18580
|
category: "account"
|
|
@@ -18591,9 +18608,9 @@ function AccountPanel(props) {
|
|
|
18591
18608
|
})();
|
|
18592
18609
|
}
|
|
18593
18610
|
delegateEvents(["click"]);
|
|
18594
|
-
var _tmpl$
|
|
18595
|
-
var _tmpl$
|
|
18596
|
-
var _tmpl$
|
|
18611
|
+
var _tmpl$366 = /* @__PURE__ */ template(`<section class="leaflet__section leaflet__section--caution"><h2 class=leaflet__h2>Birth control</h2><p class=leaflet__body>`);
|
|
18612
|
+
var _tmpl$2106 = /* @__PURE__ */ template(`<ul class=leaflet__disclaimers id=leaflet-disclaimers>`);
|
|
18613
|
+
var _tmpl$367 = /* @__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>`);
|
|
18597
18614
|
var _tmpl$450 = /* @__PURE__ */ template(`<li>`);
|
|
18598
18615
|
var _tmpl$545 = /* @__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>`);
|
|
18599
18616
|
var _tmpl$643 = /* @__PURE__ */ template(`<li class=steps__item><span class=steps__num></span><div class=steps__body><h3 class=steps__title></h3><p class=steps__detail>`);
|
|
@@ -18617,7 +18634,7 @@ function MedicationGuide(props) {
|
|
|
18617
18634
|
return "upcoming";
|
|
18618
18635
|
};
|
|
18619
18636
|
return (() => {
|
|
18620
|
-
var _el$ = _tmpl$
|
|
18637
|
+
var _el$ = _tmpl$367(), _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;
|
|
18621
18638
|
insert(_el$4, () => props.guide.title);
|
|
18622
18639
|
insert(_el$5, () => props.guide.summary);
|
|
18623
18640
|
insert(_el$8, () => props.guide.boxedWarning);
|
|
@@ -18673,7 +18690,7 @@ function MedicationGuide(props) {
|
|
|
18673
18690
|
return props.guide.contraception;
|
|
18674
18691
|
},
|
|
18675
18692
|
get children() {
|
|
18676
|
-
var _el$24 = _tmpl$
|
|
18693
|
+
var _el$24 = _tmpl$366(), _el$25 = _el$24.firstChild, _el$26 = _el$25.nextSibling;
|
|
18677
18694
|
insert(_el$26, () => props.guide.contraception);
|
|
18678
18695
|
return _el$24;
|
|
18679
18696
|
}
|
|
@@ -18725,7 +18742,7 @@ function MedicationGuide(props) {
|
|
|
18725
18742
|
return showDisclaimers();
|
|
18726
18743
|
},
|
|
18727
18744
|
get children() {
|
|
18728
|
-
var _el$44 = _tmpl$
|
|
18745
|
+
var _el$44 = _tmpl$2106();
|
|
18729
18746
|
insert(_el$44, createComponent(For, {
|
|
18730
18747
|
get each() {
|
|
18731
18748
|
return props.guide.disclaimers;
|
|
@@ -18752,9 +18769,9 @@ function MedicationGuide(props) {
|
|
|
18752
18769
|
})();
|
|
18753
18770
|
}
|
|
18754
18771
|
delegateEvents(["click"]);
|
|
18755
|
-
var _tmpl$
|
|
18756
|
-
var _tmpl$
|
|
18757
|
-
var _tmpl$
|
|
18772
|
+
var _tmpl$368 = /* @__PURE__ */ template(`<span data-testid=channel-chip>`);
|
|
18773
|
+
var _tmpl$2107 = /* @__PURE__ */ template(`<span class=channel-chip__category>`);
|
|
18774
|
+
var _tmpl$369 = /* @__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`);
|
|
18758
18775
|
var _tmpl$451 = /* @__PURE__ */ template(`<div class=msg-list__state><div class=request-status__spinner>`);
|
|
18759
18776
|
var _tmpl$546 = /* @__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>`);
|
|
18760
18777
|
var _tmpl$644 = /* @__PURE__ */ template(`<div class=msg-list__scroll data-scrollable>`);
|
|
@@ -18789,7 +18806,7 @@ var _tmpl$3210 = /* @__PURE__ */ template(`<div class=msg-thread__messages data-
|
|
|
18789
18806
|
var _tmpl$3310 = /* @__PURE__ */ template(`<span class=msg-compose__error role=alert>`);
|
|
18790
18807
|
var _tmpl$3410 = /* @__PURE__ */ template(`<div class=msg-compose__staged>`);
|
|
18791
18808
|
var _tmpl$3510 = /* @__PURE__ */ template(`<label class=msg-compose__attach title="Attach a file"><i class="ph-thin ph-paperclip"aria-hidden=true></i><span class=msg-compose__attach-label>Attach a file</span><input class=msg-compose__file-input type=file data-testid=messages-attach>`);
|
|
18792
|
-
var _tmpl$
|
|
18809
|
+
var _tmpl$3610 = /* @__PURE__ */ template(`<div class=msg-compose><textarea class=msg-compose__input rows=1 placeholder="Type a message\u2026"aria-label=Message></textarea><button type=button class=msg-compose__send data-testid=messages-send>`);
|
|
18793
18810
|
var _tmpl$372 = /* @__PURE__ */ template(`<span class=msg-compose__staged-file data-testid=staged-file><i class="ph-thin ph-paperclip"aria-hidden=true></i><span class=msg-attachment__file-size></span><button type=button class=msg-compose__staged-remove aria-label="Remove attachment">\xD7`);
|
|
18794
18811
|
var _tmpl$382 = /* @__PURE__ */ template(`<div class=msg-panel__layout><div></div><div>`);
|
|
18795
18812
|
var _tmpl$392 = /* @__PURE__ */ template(`<div class=msg-panel data-testid=messages-panel>`);
|
|
@@ -18980,14 +18997,14 @@ function MessagesPanel(props) {
|
|
|
18980
18997
|
}
|
|
18981
18998
|
}
|
|
18982
18999
|
const ChannelChip = (p) => (() => {
|
|
18983
|
-
var _el$ = _tmpl$
|
|
19000
|
+
var _el$ = _tmpl$368();
|
|
18984
19001
|
insert(_el$, () => p.source === "clinical" ? "Care team" : "Support", null);
|
|
18985
19002
|
insert(_el$, createComponent(Show, {
|
|
18986
19003
|
get when() {
|
|
18987
19004
|
return memo(() => p.source === "support")() && categoryLabel(p.category);
|
|
18988
19005
|
},
|
|
18989
19006
|
children: (label3) => (() => {
|
|
18990
|
-
var _el$2 = _tmpl$
|
|
19007
|
+
var _el$2 = _tmpl$2107();
|
|
18991
19008
|
insert(_el$2, label3);
|
|
18992
19009
|
return _el$2;
|
|
18993
19010
|
})()
|
|
@@ -19005,7 +19022,7 @@ function MessagesPanel(props) {
|
|
|
19005
19022
|
})();
|
|
19006
19023
|
const channelConversations = () => thread().conversations().filter((c) => c.source === (channel() === "care" ? "clinical" : "support"));
|
|
19007
19024
|
const ConversationList = () => [(() => {
|
|
19008
|
-
var _el$3 = _tmpl$
|
|
19025
|
+
var _el$3 = _tmpl$369(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.nextSibling, _el$7 = _el$4.nextSibling;
|
|
19009
19026
|
_el$5.$$click = goToGate;
|
|
19010
19027
|
insert(_el$6, () => channel() === "care" ? "My care team" : "Support");
|
|
19011
19028
|
_el$7.$$click = openCompose;
|
|
@@ -19495,7 +19512,7 @@ function MessagesPanel(props) {
|
|
|
19495
19512
|
return !(selectedConvo()?.source === "support" && selectedConvo()?.status === "transferred");
|
|
19496
19513
|
},
|
|
19497
19514
|
get children() {
|
|
19498
|
-
var _el$104 = _tmpl$
|
|
19515
|
+
var _el$104 = _tmpl$3610(), _el$109 = _el$104.firstChild, _el$110 = _el$109.nextSibling;
|
|
19499
19516
|
insert(_el$104, createComponent(Show, {
|
|
19500
19517
|
get when() {
|
|
19501
19518
|
return thread().selectedSource() === "support";
|
|
@@ -19601,9 +19618,9 @@ function MessagesPanel(props) {
|
|
|
19601
19618
|
})();
|
|
19602
19619
|
}
|
|
19603
19620
|
delegateEvents(["click", "input", "keydown"]);
|
|
19604
|
-
var _tmpl$
|
|
19605
|
-
var _tmpl$
|
|
19606
|
-
var _tmpl$
|
|
19621
|
+
var _tmpl$370 = /* @__PURE__ */ template(`<ul class=history-list data-testid=history-list>`);
|
|
19622
|
+
var _tmpl$2108 = /* @__PURE__ */ template(`<div class=portal-state data-testid=history-error><p>We couldn't load your submitted surveys. Please try again in a moment.`);
|
|
19623
|
+
var _tmpl$371 = /* @__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.`);
|
|
19607
19624
|
var _tmpl$452 = /* @__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>`);
|
|
19608
19625
|
var _tmpl$547 = /* @__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`);
|
|
19609
19626
|
var _tmpl$645 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your answers\u2026`);
|
|
@@ -19640,7 +19657,7 @@ function SurveyHistory() {
|
|
|
19640
19657
|
return !list.error;
|
|
19641
19658
|
},
|
|
19642
19659
|
get fallback() {
|
|
19643
|
-
return _tmpl$
|
|
19660
|
+
return _tmpl$2108();
|
|
19644
19661
|
},
|
|
19645
19662
|
get children() {
|
|
19646
19663
|
return createComponent(Show, {
|
|
@@ -19648,10 +19665,10 @@ function SurveyHistory() {
|
|
|
19648
19665
|
return (list() ?? []).length > 0;
|
|
19649
19666
|
},
|
|
19650
19667
|
get fallback() {
|
|
19651
|
-
return _tmpl$
|
|
19668
|
+
return _tmpl$371();
|
|
19652
19669
|
},
|
|
19653
19670
|
get children() {
|
|
19654
|
-
var _el$ = _tmpl$
|
|
19671
|
+
var _el$ = _tmpl$370();
|
|
19655
19672
|
insert(_el$, createComponent(For, {
|
|
19656
19673
|
get each() {
|
|
19657
19674
|
return list();
|
|
@@ -19748,9 +19765,9 @@ function SurveyHistory() {
|
|
|
19748
19765
|
delegateEvents(["click"]);
|
|
19749
19766
|
|
|
19750
19767
|
// src/pages/MemberPortal.tsx
|
|
19751
|
-
var _tmpl$
|
|
19752
|
-
var _tmpl$
|
|
19753
|
-
var _tmpl$
|
|
19768
|
+
var _tmpl$373 = /* @__PURE__ */ template(`<span class=portal-item__live aria-label="In progress">`);
|
|
19769
|
+
var _tmpl$2109 = /* @__PURE__ */ template(`<span>`);
|
|
19770
|
+
var _tmpl$374 = /* @__PURE__ */ template(`<button type=button><i aria-hidden=true></i><span class=portal-item__label>`);
|
|
19754
19771
|
var _tmpl$453 = /* @__PURE__ */ template(`<div class=rx-others data-testid=rx-others><span class=lab-label>Other orders`);
|
|
19755
19772
|
var _tmpl$548 = /* @__PURE__ */ template(`<div class=rx-stack>`);
|
|
19756
19773
|
var _tmpl$646 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your portal\u2026`);
|
|
@@ -19882,7 +19899,7 @@ function MemberPortal(props) {
|
|
|
19882
19899
|
return tabs();
|
|
19883
19900
|
},
|
|
19884
19901
|
children: (item) => (() => {
|
|
19885
|
-
var _el$ = _tmpl$
|
|
19902
|
+
var _el$ = _tmpl$374(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
19886
19903
|
_el$.$$click = () => selectTab(item.key);
|
|
19887
19904
|
insert(_el$3, () => item.label);
|
|
19888
19905
|
insert(_el$, createComponent(Show, {
|
|
@@ -19890,7 +19907,7 @@ function MemberPortal(props) {
|
|
|
19890
19907
|
return memo(() => item.key === "tracker")() && inMotion();
|
|
19891
19908
|
},
|
|
19892
19909
|
get children() {
|
|
19893
|
-
return _tmpl$
|
|
19910
|
+
return _tmpl$373();
|
|
19894
19911
|
}
|
|
19895
19912
|
}), null);
|
|
19896
19913
|
insert(_el$, createComponent(Show, {
|
|
@@ -19898,7 +19915,7 @@ function MemberPortal(props) {
|
|
|
19898
19915
|
return memo(() => item.key === "messages")() && unreadTotal() > 0;
|
|
19899
19916
|
},
|
|
19900
19917
|
get children() {
|
|
19901
|
-
var _el$5 = _tmpl$
|
|
19918
|
+
var _el$5 = _tmpl$2109();
|
|
19902
19919
|
insert(_el$5, (() => {
|
|
19903
19920
|
var _c$ = memo(() => unreadTotal() > 99);
|
|
19904
19921
|
return () => _c$() ? "99+" : unreadTotal();
|
|
@@ -20206,9 +20223,9 @@ function MemberPortal(props) {
|
|
|
20206
20223
|
})();
|
|
20207
20224
|
}
|
|
20208
20225
|
delegateEvents(["click"]);
|
|
20209
|
-
var _tmpl$
|
|
20210
|
-
var _tmpl$
|
|
20211
|
-
var _tmpl$
|
|
20226
|
+
var _tmpl$375 = /* @__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.`);
|
|
20227
|
+
var _tmpl$2117 = /* @__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`);
|
|
20228
|
+
var _tmpl$376 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Loading stats\u2026`);
|
|
20212
20229
|
var _tmpl$454 = /* @__PURE__ */ template(`<div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));gap:1rem">`);
|
|
20213
20230
|
var _tmpl$549 = /* @__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)>`);
|
|
20214
20231
|
function formatMoney(cents) {
|
|
@@ -20243,13 +20260,13 @@ function AffiliateOverview() {
|
|
|
20243
20260
|
value: `${(s.conversionRate * 100).toFixed(1)}%`
|
|
20244
20261
|
}];
|
|
20245
20262
|
return (() => {
|
|
20246
|
-
var _el$ = _tmpl$
|
|
20263
|
+
var _el$ = _tmpl$2117(); _el$.firstChild;
|
|
20247
20264
|
insert(_el$, createComponent(Show, {
|
|
20248
20265
|
get when() {
|
|
20249
20266
|
return isPending();
|
|
20250
20267
|
},
|
|
20251
20268
|
get children() {
|
|
20252
|
-
return _tmpl$
|
|
20269
|
+
return _tmpl$375();
|
|
20253
20270
|
}
|
|
20254
20271
|
}), null);
|
|
20255
20272
|
insert(_el$, createComponent(Show, {
|
|
@@ -20257,7 +20274,7 @@ function AffiliateOverview() {
|
|
|
20257
20274
|
return stats();
|
|
20258
20275
|
},
|
|
20259
20276
|
get fallback() {
|
|
20260
|
-
return _tmpl$
|
|
20277
|
+
return _tmpl$376();
|
|
20261
20278
|
},
|
|
20262
20279
|
children: (s) => (() => {
|
|
20263
20280
|
var _el$5 = _tmpl$454();
|
|
@@ -20278,9 +20295,9 @@ function AffiliateOverview() {
|
|
|
20278
20295
|
return _el$;
|
|
20279
20296
|
})();
|
|
20280
20297
|
}
|
|
20281
|
-
var _tmpl$
|
|
20282
|
-
var _tmpl$
|
|
20283
|
-
var _tmpl$
|
|
20298
|
+
var _tmpl$377 = /* @__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>`);
|
|
20299
|
+
var _tmpl$2118 = /* @__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`);
|
|
20300
|
+
var _tmpl$378 = /* @__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.`);
|
|
20284
20301
|
var _tmpl$455 = /* @__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`);
|
|
20285
20302
|
var _tmpl$550 = /* @__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">`);
|
|
20286
20303
|
function formatMoney2(cents) {
|
|
@@ -20320,16 +20337,16 @@ function AffiliateConversions() {
|
|
|
20320
20337
|
limit: 100
|
|
20321
20338
|
});
|
|
20322
20339
|
return (() => {
|
|
20323
|
-
var _el$ = _tmpl$
|
|
20340
|
+
var _el$ = _tmpl$2118(); _el$.firstChild;
|
|
20324
20341
|
insert(_el$, createComponent(Show, {
|
|
20325
20342
|
get when() {
|
|
20326
20343
|
return (conversions() ?? []).length > 0;
|
|
20327
20344
|
},
|
|
20328
20345
|
get fallback() {
|
|
20329
|
-
return _tmpl$
|
|
20346
|
+
return _tmpl$378();
|
|
20330
20347
|
},
|
|
20331
20348
|
get children() {
|
|
20332
|
-
var _el$3 = _tmpl$
|
|
20349
|
+
var _el$3 = _tmpl$377(), _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;
|
|
20333
20350
|
insert(_el$10, createComponent(For, {
|
|
20334
20351
|
get each() {
|
|
20335
20352
|
return conversions();
|
|
@@ -20411,9 +20428,9 @@ function td() {
|
|
|
20411
20428
|
color: "var(--app-affiliate-fg)"
|
|
20412
20429
|
};
|
|
20413
20430
|
}
|
|
20414
|
-
var _tmpl$
|
|
20415
|
-
var _tmpl$
|
|
20416
|
-
var _tmpl$
|
|
20431
|
+
var _tmpl$379 = /* @__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>`);
|
|
20432
|
+
var _tmpl$2119 = /* @__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.`);
|
|
20433
|
+
var _tmpl$380 = /* @__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.`);
|
|
20417
20434
|
var _tmpl$456 = /* @__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>`);
|
|
20418
20435
|
function formatDate4(iso) {
|
|
20419
20436
|
const d = new Date(iso);
|
|
@@ -20447,16 +20464,16 @@ function AffiliateDownline() {
|
|
|
20447
20464
|
downline
|
|
20448
20465
|
} = useAffiliateDownline();
|
|
20449
20466
|
return (() => {
|
|
20450
|
-
var _el$ = _tmpl$
|
|
20467
|
+
var _el$ = _tmpl$2119(), _el$2 = _el$.firstChild; _el$2.nextSibling;
|
|
20451
20468
|
insert(_el$, createComponent(Show, {
|
|
20452
20469
|
get when() {
|
|
20453
20470
|
return (downline() ?? []).length > 0;
|
|
20454
20471
|
},
|
|
20455
20472
|
get fallback() {
|
|
20456
|
-
return _tmpl$
|
|
20473
|
+
return _tmpl$380();
|
|
20457
20474
|
},
|
|
20458
20475
|
get children() {
|
|
20459
|
-
var _el$4 = _tmpl$
|
|
20476
|
+
var _el$4 = _tmpl$379(), _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;
|
|
20460
20477
|
insert(_el$10, createComponent(For, {
|
|
20461
20478
|
get each() {
|
|
20462
20479
|
return downline();
|
|
@@ -20525,9 +20542,9 @@ function td2() {
|
|
|
20525
20542
|
color: "var(--app-affiliate-fg)"
|
|
20526
20543
|
};
|
|
20527
20544
|
}
|
|
20528
|
-
var _tmpl$
|
|
20529
|
-
var _tmpl$
|
|
20530
|
-
var _tmpl$
|
|
20545
|
+
var _tmpl$381 = /* @__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.`);
|
|
20546
|
+
var _tmpl$2120 = /* @__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`);
|
|
20547
|
+
var _tmpl$383 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Your referral link will appear here once your account is approved.`);
|
|
20531
20548
|
function AffiliateReferralLink() {
|
|
20532
20549
|
const {
|
|
20533
20550
|
links
|
|
@@ -20552,16 +20569,16 @@ function AffiliateReferralLink() {
|
|
|
20552
20569
|
}
|
|
20553
20570
|
}
|
|
20554
20571
|
return (() => {
|
|
20555
|
-
var _el$ = _tmpl$
|
|
20572
|
+
var _el$ = _tmpl$2120(); _el$.firstChild;
|
|
20556
20573
|
insert(_el$, createComponent(Show, {
|
|
20557
20574
|
get when() {
|
|
20558
20575
|
return homepageLink();
|
|
20559
20576
|
},
|
|
20560
20577
|
get fallback() {
|
|
20561
|
-
return _tmpl$
|
|
20578
|
+
return _tmpl$383();
|
|
20562
20579
|
},
|
|
20563
20580
|
get children() {
|
|
20564
|
-
var _el$3 = _tmpl$
|
|
20581
|
+
var _el$3 = _tmpl$381(), _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling; _el$5.nextSibling;
|
|
20565
20582
|
insert(_el$6, homepageLink);
|
|
20566
20583
|
_el$7.$$click = copy;
|
|
20567
20584
|
insert(_el$7, () => copied() ? "Copied" : "Copy");
|
|
@@ -20572,9 +20589,9 @@ function AffiliateReferralLink() {
|
|
|
20572
20589
|
})();
|
|
20573
20590
|
}
|
|
20574
20591
|
delegateEvents(["click"]);
|
|
20575
|
-
var _tmpl$
|
|
20576
|
-
var _tmpl$
|
|
20577
|
-
var _tmpl$
|
|
20592
|
+
var _tmpl$384 = /* @__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.`);
|
|
20593
|
+
var _tmpl$2121 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Loading\u2026`);
|
|
20594
|
+
var _tmpl$385 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden">`);
|
|
20578
20595
|
var _tmpl$457 = /* @__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)>`);
|
|
20579
20596
|
var STATUS_LABEL2 = {
|
|
20580
20597
|
pending: "Pending approval",
|
|
@@ -20610,16 +20627,16 @@ function AffiliateSettings() {
|
|
|
20610
20627
|
value: a.paymentEmail ?? "\u2014"
|
|
20611
20628
|
}];
|
|
20612
20629
|
return (() => {
|
|
20613
|
-
var _el$ = _tmpl$
|
|
20630
|
+
var _el$ = _tmpl$384(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild; _el$3.nextSibling;
|
|
20614
20631
|
insert(_el$, createComponent(Show, {
|
|
20615
20632
|
get when() {
|
|
20616
20633
|
return affiliate();
|
|
20617
20634
|
},
|
|
20618
20635
|
get fallback() {
|
|
20619
|
-
return _tmpl$
|
|
20636
|
+
return _tmpl$2121();
|
|
20620
20637
|
},
|
|
20621
20638
|
children: (a) => (() => {
|
|
20622
|
-
var _el$7 = _tmpl$
|
|
20639
|
+
var _el$7 = _tmpl$385();
|
|
20623
20640
|
insert(_el$7, createComponent(For, {
|
|
20624
20641
|
get each() {
|
|
20625
20642
|
return rows(a());
|
|
@@ -20641,9 +20658,9 @@ function AffiliateSettings() {
|
|
|
20641
20658
|
delegateEvents(["click"]);
|
|
20642
20659
|
|
|
20643
20660
|
// src/pages/AffiliatePortal.tsx
|
|
20644
|
-
var _tmpl$
|
|
20645
|
-
var _tmpl$
|
|
20646
|
-
var _tmpl$
|
|
20661
|
+
var _tmpl$386 = /* @__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>`);
|
|
20662
|
+
var _tmpl$2122 = /* @__PURE__ */ template(`<span style=font-size:1rem;opacity:0.7;flex-shrink:0>`);
|
|
20663
|
+
var _tmpl$387 = /* @__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">`);
|
|
20647
20664
|
var _tmpl$458 = /* @__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); } }`);
|
|
20648
20665
|
var TAB_LABELS2 = {
|
|
20649
20666
|
overview: "Overview",
|
|
@@ -20689,7 +20706,7 @@ function AffiliatePortal(props) {
|
|
|
20689
20706
|
});
|
|
20690
20707
|
},
|
|
20691
20708
|
get children() {
|
|
20692
|
-
var _el$ = _tmpl$
|
|
20709
|
+
var _el$ = _tmpl$386(), _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;
|
|
20693
20710
|
_el$3.$$click = () => setDrawerOpen(true);
|
|
20694
20711
|
insert(_el$4, () => TAB_LABELS2[currentTab()]);
|
|
20695
20712
|
_el$5.$$click = () => setDrawerOpen(false);
|
|
@@ -20698,14 +20715,14 @@ function AffiliatePortal(props) {
|
|
|
20698
20715
|
return orderedTabs();
|
|
20699
20716
|
},
|
|
20700
20717
|
children: (tab) => (() => {
|
|
20701
|
-
var _el$1 = _tmpl$
|
|
20718
|
+
var _el$1 = _tmpl$387();
|
|
20702
20719
|
_el$1.$$click = () => handleTabClick(tab);
|
|
20703
20720
|
insert(_el$1, createComponent(Show, {
|
|
20704
20721
|
get when() {
|
|
20705
20722
|
return props.tabIcons?.[tab];
|
|
20706
20723
|
},
|
|
20707
20724
|
get children() {
|
|
20708
|
-
var _el$10 = _tmpl$
|
|
20725
|
+
var _el$10 = _tmpl$2122();
|
|
20709
20726
|
effect(() => className(_el$10, props.tabIcons[tab]));
|
|
20710
20727
|
return _el$10;
|
|
20711
20728
|
}
|
|
@@ -20801,11 +20818,11 @@ function AffiliateGateSpinner(props) {
|
|
|
20801
20818
|
})();
|
|
20802
20819
|
}
|
|
20803
20820
|
delegateEvents(["click"]);
|
|
20804
|
-
var _tmpl$
|
|
20821
|
+
var _tmpl$388 = /* @__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">`);
|
|
20805
20822
|
function AffiliatePasswordInput(props) {
|
|
20806
20823
|
const [visible, setVisible] = createSignal(false);
|
|
20807
20824
|
return (() => {
|
|
20808
|
-
var _el$ = _tmpl$
|
|
20825
|
+
var _el$ = _tmpl$388(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
20809
20826
|
_el$2.$$input = (e) => props.onInput(e.currentTarget.value);
|
|
20810
20827
|
_el$3.$$click = () => setVisible((v) => !v);
|
|
20811
20828
|
insert(_el$3, () => visible() ? "Hide" : "Show");
|
|
@@ -20846,9 +20863,9 @@ function inputStyle() {
|
|
|
20846
20863
|
delegateEvents(["input", "click"]);
|
|
20847
20864
|
|
|
20848
20865
|
// src/pages/AffiliateRegister.tsx
|
|
20849
|
-
var _tmpl$
|
|
20850
|
-
var _tmpl$
|
|
20851
|
-
var _tmpl$
|
|
20866
|
+
var _tmpl$389 = /* @__PURE__ */ template(`<input type=text required autocomplete=given-name>`);
|
|
20867
|
+
var _tmpl$2123 = /* @__PURE__ */ template(`<input type=text required autocomplete=family-name>`);
|
|
20868
|
+
var _tmpl$390 = /* @__PURE__ */ template(`<input type=email required autocomplete=email>`);
|
|
20852
20869
|
var _tmpl$459 = /* @__PURE__ */ template(`<input type=text required minlength=4>`);
|
|
20853
20870
|
var _tmpl$551 = /* @__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">`);
|
|
20854
20871
|
var _tmpl$647 = /* @__PURE__ */ template(`<button type=button>Already have an account? Log in`);
|
|
@@ -20901,7 +20918,7 @@ function AffiliateRegister(props) {
|
|
|
20901
20918
|
insert(_el$6, createComponent(Row, {
|
|
20902
20919
|
label: "First name",
|
|
20903
20920
|
get children() {
|
|
20904
|
-
var _el$7 = _tmpl$
|
|
20921
|
+
var _el$7 = _tmpl$389();
|
|
20905
20922
|
_el$7.$$input = (e) => setFirstName(e.currentTarget.value);
|
|
20906
20923
|
effect((_$p) => style(_el$7, inputStyle2(), _$p));
|
|
20907
20924
|
effect(() => _el$7.value = firstName());
|
|
@@ -20911,7 +20928,7 @@ function AffiliateRegister(props) {
|
|
|
20911
20928
|
insert(_el$6, createComponent(Row, {
|
|
20912
20929
|
label: "Last name",
|
|
20913
20930
|
get children() {
|
|
20914
|
-
var _el$8 = _tmpl$
|
|
20931
|
+
var _el$8 = _tmpl$2123();
|
|
20915
20932
|
_el$8.$$input = (e) => setLastName(e.currentTarget.value);
|
|
20916
20933
|
effect((_$p) => style(_el$8, inputStyle2(), _$p));
|
|
20917
20934
|
effect(() => _el$8.value = lastName());
|
|
@@ -20921,7 +20938,7 @@ function AffiliateRegister(props) {
|
|
|
20921
20938
|
insert(_el$6, createComponent(Row, {
|
|
20922
20939
|
label: "Email",
|
|
20923
20940
|
get children() {
|
|
20924
|
-
var _el$9 = _tmpl$
|
|
20941
|
+
var _el$9 = _tmpl$390();
|
|
20925
20942
|
_el$9.$$input = (e) => setEmail(e.currentTarget.value);
|
|
20926
20943
|
effect((_$p) => style(_el$9, inputStyle2(), _$p));
|
|
20927
20944
|
effect(() => _el$9.value = email());
|
|
@@ -21040,9 +21057,9 @@ function linkStyle() {
|
|
|
21040
21057
|
};
|
|
21041
21058
|
}
|
|
21042
21059
|
delegateEvents(["input", "click"]);
|
|
21043
|
-
var _tmpl$
|
|
21044
|
-
var _tmpl$
|
|
21045
|
-
var _tmpl$
|
|
21060
|
+
var _tmpl$391 = /* @__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">`);
|
|
21061
|
+
var _tmpl$2124 = /* @__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?`);
|
|
21062
|
+
var _tmpl$393 = /* @__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`);
|
|
21046
21063
|
var _tmpl$460 = /* @__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">`);
|
|
21047
21064
|
function AffiliateLogin(props) {
|
|
21048
21065
|
const [email, setEmail] = createSignal("");
|
|
@@ -21079,7 +21096,7 @@ function AffiliateLogin(props) {
|
|
|
21079
21096
|
return error();
|
|
21080
21097
|
},
|
|
21081
21098
|
get children() {
|
|
21082
|
-
var _el$0 = _tmpl$
|
|
21099
|
+
var _el$0 = _tmpl$391();
|
|
21083
21100
|
insert(_el$0, error);
|
|
21084
21101
|
return _el$0;
|
|
21085
21102
|
}
|
|
@@ -21090,7 +21107,7 @@ function AffiliateLogin(props) {
|
|
|
21090
21107
|
return props.onNavigateForgotPassword;
|
|
21091
21108
|
},
|
|
21092
21109
|
get children() {
|
|
21093
|
-
var _el$10 = _tmpl$
|
|
21110
|
+
var _el$10 = _tmpl$2124();
|
|
21094
21111
|
_el$10.$$click = () => props.onNavigateForgotPassword?.();
|
|
21095
21112
|
return _el$10;
|
|
21096
21113
|
}
|
|
@@ -21100,7 +21117,7 @@ function AffiliateLogin(props) {
|
|
|
21100
21117
|
return props.onNavigateRegister;
|
|
21101
21118
|
},
|
|
21102
21119
|
get children() {
|
|
21103
|
-
var _el$11 = _tmpl$
|
|
21120
|
+
var _el$11 = _tmpl$393();
|
|
21104
21121
|
_el$11.$$click = () => props.onNavigateRegister?.();
|
|
21105
21122
|
return _el$11;
|
|
21106
21123
|
}
|
|
@@ -21148,9 +21165,9 @@ function inputStyle3() {
|
|
|
21148
21165
|
};
|
|
21149
21166
|
}
|
|
21150
21167
|
delegateEvents(["input", "click"]);
|
|
21151
|
-
var _tmpl$
|
|
21152
|
-
var _tmpl$
|
|
21153
|
-
var _tmpl$
|
|
21168
|
+
var _tmpl$394 = /* @__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">`);
|
|
21169
|
+
var _tmpl$2125 = /* @__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">`);
|
|
21170
|
+
var _tmpl$395 = /* @__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`);
|
|
21154
21171
|
var _tmpl$461 = /* @__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">`);
|
|
21155
21172
|
var _tmpl$552 = /* @__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.`);
|
|
21156
21173
|
var _tmpl$648 = /* @__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`);
|
|
@@ -21176,7 +21193,7 @@ function ForgotPasswordPage(props) {
|
|
|
21176
21193
|
}
|
|
21177
21194
|
}
|
|
21178
21195
|
return (() => {
|
|
21179
|
-
var _el$ = _tmpl$
|
|
21196
|
+
var _el$ = _tmpl$395(), _el$2 = _el$.firstChild; _el$2.firstChild;
|
|
21180
21197
|
insert(_el$2, createComponent(Show, {
|
|
21181
21198
|
get when() {
|
|
21182
21199
|
return !message();
|
|
@@ -21198,7 +21215,7 @@ function ForgotPasswordPage(props) {
|
|
|
21198
21215
|
})];
|
|
21199
21216
|
},
|
|
21200
21217
|
get children() {
|
|
21201
|
-
var _el$4 = _tmpl$
|
|
21218
|
+
var _el$4 = _tmpl$2125(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$9 = _el$5.nextSibling;
|
|
21202
21219
|
_el$4.addEventListener("submit", handleSubmit);
|
|
21203
21220
|
_el$7.$$input = (e) => setEmail(e.currentTarget.value);
|
|
21204
21221
|
insert(_el$4, createComponent(Show, {
|
|
@@ -21206,7 +21223,7 @@ function ForgotPasswordPage(props) {
|
|
|
21206
21223
|
return error();
|
|
21207
21224
|
},
|
|
21208
21225
|
get children() {
|
|
21209
|
-
var _el$8 = _tmpl$
|
|
21226
|
+
var _el$8 = _tmpl$394();
|
|
21210
21227
|
insert(_el$8, error);
|
|
21211
21228
|
return _el$8;
|
|
21212
21229
|
}
|
|
@@ -21256,9 +21273,9 @@ function inputStyle4() {
|
|
|
21256
21273
|
};
|
|
21257
21274
|
}
|
|
21258
21275
|
delegateEvents(["input", "click"]);
|
|
21259
|
-
var _tmpl$
|
|
21260
|
-
var _tmpl$
|
|
21261
|
-
var _tmpl$
|
|
21276
|
+
var _tmpl$396 = /* @__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">`);
|
|
21277
|
+
var _tmpl$2126 = /* @__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">`);
|
|
21278
|
+
var _tmpl$397 = /* @__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`);
|
|
21262
21279
|
var _tmpl$462 = /* @__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">`);
|
|
21263
21280
|
function queryParam(name) {
|
|
21264
21281
|
if (typeof window === "undefined") return "";
|
|
@@ -21299,7 +21316,7 @@ function ResetPasswordPage(props) {
|
|
|
21299
21316
|
}
|
|
21300
21317
|
}
|
|
21301
21318
|
return (() => {
|
|
21302
|
-
var _el$ = _tmpl$
|
|
21319
|
+
var _el$ = _tmpl$397(), _el$2 = _el$.firstChild; _el$2.firstChild;
|
|
21303
21320
|
insert(_el$2, createComponent(Show, {
|
|
21304
21321
|
get when() {
|
|
21305
21322
|
return !message();
|
|
@@ -21312,7 +21329,7 @@ function ResetPasswordPage(props) {
|
|
|
21312
21329
|
})();
|
|
21313
21330
|
},
|
|
21314
21331
|
get children() {
|
|
21315
|
-
var _el$4 = _tmpl$
|
|
21332
|
+
var _el$4 = _tmpl$2126(), _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;
|
|
21316
21333
|
_el$4.addEventListener("submit", handleSubmit);
|
|
21317
21334
|
_el$7.$$input = (e) => setPassword(e.currentTarget.value);
|
|
21318
21335
|
_el$0.$$input = (e) => setConfirm(e.currentTarget.value);
|
|
@@ -21321,7 +21338,7 @@ function ResetPasswordPage(props) {
|
|
|
21321
21338
|
return error();
|
|
21322
21339
|
},
|
|
21323
21340
|
get children() {
|
|
21324
|
-
var _el$1 = _tmpl$
|
|
21341
|
+
var _el$1 = _tmpl$396();
|
|
21325
21342
|
insert(_el$1, error);
|
|
21326
21343
|
return _el$1;
|
|
21327
21344
|
}
|
|
@@ -21376,9 +21393,9 @@ function inputStyle5() {
|
|
|
21376
21393
|
};
|
|
21377
21394
|
}
|
|
21378
21395
|
delegateEvents(["input"]);
|
|
21379
|
-
var _tmpl$
|
|
21380
|
-
var _tmpl$
|
|
21381
|
-
var _tmpl$
|
|
21396
|
+
var _tmpl$398 = /* @__PURE__ */ template(`<div>`);
|
|
21397
|
+
var _tmpl$2127 = /* @__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>`);
|
|
21398
|
+
var _tmpl$399 = /* @__PURE__ */ template(`<button type=button>Back to login`);
|
|
21382
21399
|
var _tmpl$463 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Reset your password`);
|
|
21383
21400
|
var _tmpl$553 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.9rem>`);
|
|
21384
21401
|
function AffiliateForgotPassword(props) {
|
|
@@ -21416,7 +21433,7 @@ function AffiliateForgotPassword(props) {
|
|
|
21416
21433
|
})();
|
|
21417
21434
|
},
|
|
21418
21435
|
get children() {
|
|
21419
|
-
var _el$4 = _tmpl$
|
|
21436
|
+
var _el$4 = _tmpl$2127(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$9 = _el$5.nextSibling;
|
|
21420
21437
|
_el$4.addEventListener("submit", handleSubmit);
|
|
21421
21438
|
_el$7.$$input = (e) => setEmail(e.currentTarget.value);
|
|
21422
21439
|
insert(_el$4, createComponent(Show, {
|
|
@@ -21424,7 +21441,7 @@ function AffiliateForgotPassword(props) {
|
|
|
21424
21441
|
return error();
|
|
21425
21442
|
},
|
|
21426
21443
|
get children() {
|
|
21427
|
-
var _el$8 = _tmpl$
|
|
21444
|
+
var _el$8 = _tmpl$398();
|
|
21428
21445
|
insert(_el$8, error);
|
|
21429
21446
|
effect((_$p) => style(_el$8, errorStyle(), _$p));
|
|
21430
21447
|
return _el$8;
|
|
@@ -21453,7 +21470,7 @@ function AffiliateForgotPassword(props) {
|
|
|
21453
21470
|
return props.onNavigateLogin;
|
|
21454
21471
|
},
|
|
21455
21472
|
get children() {
|
|
21456
|
-
var _el$0 = _tmpl$
|
|
21473
|
+
var _el$0 = _tmpl$399();
|
|
21457
21474
|
_el$0.$$click = () => props.onNavigateLogin?.();
|
|
21458
21475
|
effect((_$p) => style(_el$0, linkStyle2(), _$p));
|
|
21459
21476
|
return _el$0;
|
|
@@ -21559,8 +21576,8 @@ function linkStyle2() {
|
|
|
21559
21576
|
};
|
|
21560
21577
|
}
|
|
21561
21578
|
delegateEvents(["input", "click"]);
|
|
21562
|
-
var _tmpl$
|
|
21563
|
-
var _tmpl$
|
|
21579
|
+
var _tmpl$400 = /* @__PURE__ */ template(`<div>`);
|
|
21580
|
+
var _tmpl$2128 = /* @__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>`);
|
|
21564
21581
|
var _tmpl$3100 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Choose a new password`);
|
|
21565
21582
|
var _tmpl$464 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.9rem>Your password has been reset. You can now log in with your new password.`);
|
|
21566
21583
|
function queryParam2(name) {
|
|
@@ -21615,7 +21632,7 @@ function AffiliateResetPassword(props) {
|
|
|
21615
21632
|
return _tmpl$464();
|
|
21616
21633
|
},
|
|
21617
21634
|
get children() {
|
|
21618
|
-
var _el$4 = _tmpl$
|
|
21635
|
+
var _el$4 = _tmpl$2128(), _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;
|
|
21619
21636
|
_el$4.addEventListener("submit", handleSubmit);
|
|
21620
21637
|
insert(_el$5, createComponent(AffiliatePasswordInput, {
|
|
21621
21638
|
required: true,
|
|
@@ -21640,7 +21657,7 @@ function AffiliateResetPassword(props) {
|
|
|
21640
21657
|
return error();
|
|
21641
21658
|
},
|
|
21642
21659
|
get children() {
|
|
21643
|
-
var _el$9 = _tmpl$
|
|
21660
|
+
var _el$9 = _tmpl$400();
|
|
21644
21661
|
insert(_el$9, error);
|
|
21645
21662
|
effect((_$p) => style(_el$9, errorStyle2(), _$p));
|
|
21646
21663
|
return _el$9;
|
|
@@ -21739,5 +21756,5 @@ function primaryButtonStyle2(submitting) {
|
|
|
21739
21756
|
}
|
|
21740
21757
|
|
|
21741
21758
|
export { AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod };
|
|
21742
|
-
//# sourceMappingURL=
|
|
21743
|
-
//# sourceMappingURL=
|
|
21759
|
+
//# sourceMappingURL=WCYQ2AYW.js.map
|
|
21760
|
+
//# sourceMappingURL=WCYQ2AYW.js.map
|