@apextelemed/partner-core 0.6.0 → 0.6.2
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 → 7ENL3GYZ.jsx} +361 -302
- package/dist/chunk/{HKNTNZRW.js → P2G32S2W.js} +781 -600
- package/dist/chunk/P2G32S2W.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,35 +15651,46 @@ 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(`<p class=app-admin-text-muted style="font-size:0.75rem;margin:0;padding:0.625rem 1.25rem 0">Nothing here has been emailed, and nothing will be until you send it or turn automatic sending on.`);
|
|
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(`<button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm">Send all due`);
|
|
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> of </td><td class=app-admin-table-cell--end><div style=display:flex;gap:0.375rem;justify-content:flex-end><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-ghost 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>`);
|
|
15662
|
-
var _tmpl$925 = /* @__PURE__ */ template(`<
|
|
15663
|
-
var _tmpl$021 = /* @__PURE__ */ template(`<option>
|
|
15664
|
-
var _tmpl$1101 = /* @__PURE__ */ template(`<
|
|
15665
|
-
var _tmpl$1014 = /* @__PURE__ */ template(`<
|
|
15666
|
-
var _tmpl$1116 = /* @__PURE__ */ template(`<
|
|
15667
|
-
var _tmpl$1213 = /* @__PURE__ */ template(`<
|
|
15668
|
-
var _tmpl$1313 = /* @__PURE__ */ template(`<
|
|
15669
|
-
var _tmpl$1413 = /* @__PURE__ */ template(`<
|
|
15670
|
-
var _tmpl$1513 = /* @__PURE__ */ template(`<
|
|
15671
|
-
var _tmpl$1613 = /* @__PURE__ */ template(`<
|
|
15672
|
-
var _tmpl$1713 = /* @__PURE__ */ template(`<div style="border-
|
|
15673
|
-
var _tmpl$1812 = /* @__PURE__ */ template(`<
|
|
15674
|
-
var _tmpl$1912 = /* @__PURE__ */ template(`<
|
|
15675
|
-
var _tmpl$2010 = /* @__PURE__ */ template(`<
|
|
15676
|
-
var _tmpl$2115 = /* @__PURE__ */ template(`<
|
|
15677
|
-
var _tmpl$2212 = /* @__PURE__ */ template(`<
|
|
15678
|
-
var _tmpl$2311 = /* @__PURE__ */ template(`<
|
|
15679
|
-
var _tmpl$2411 = /* @__PURE__ */ template(`<
|
|
15680
|
-
var _tmpl$2511 = /* @__PURE__ */ template(`<
|
|
15681
|
-
var _tmpl$2610 = /* @__PURE__ */ template(`<
|
|
15682
|
-
var _tmpl$2710 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>
|
|
15662
|
+
var _tmpl$925 = /* @__PURE__ */ template(`<option>(deleted template)`);
|
|
15663
|
+
var _tmpl$021 = /* @__PURE__ */ template(`<div style="display:grid;grid-template-columns:2rem minmax(7rem, 9rem) minmax(12rem, 2fr) minmax(10rem, 1fr) auto;gap:0.5rem;align-items:center;padding:0.625rem 1.25rem"><span class=app-admin-text-muted style=font-size:0.8125rem;font-weight:600></span><label style=display:flex;gap:0.375rem;align-items:center;font-size:0.8125rem><span class=app-admin-text-muted></span><input class=app-admin-input type=number min=1 max=720 style=width:4.5rem><span class=app-admin-text-muted>h</span></label><select class=app-admin-input><option value>Choose a template\u2026</option></select><select class=app-admin-input></select><div style=display:flex;gap:0.25rem><button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm">Test</button><button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm"title="Remove step">\xD7`);
|
|
15664
|
+
var _tmpl$1101 = /* @__PURE__ */ template(`<p class=app-admin-text-muted style="font-size:0.75rem;margin:0;padding:0.625rem 1.25rem 0">Each step waits the given hours after the previous one (the first, after enrollment), then sends its template with the chosen link.`);
|
|
15665
|
+
var _tmpl$1014 = /* @__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>`);
|
|
15666
|
+
var _tmpl$1116 = /* @__PURE__ */ template(`<div style=display:grid;gap:0.75rem><label><span>Name</span><input class=app-admin-input maxlength=120 placeholder="Finish your visit"></label><label><span>Notes (internal)</span><input class=app-admin-input maxlength=500 placeholder="Who this is for and why">`);
|
|
15667
|
+
var _tmpl$1213 = /* @__PURE__ */ template(`<label><input type=checkbox aria-label="Send automatically when a step is due"><span>Send automatically when a step is due<span class=app-admin-text-muted style=display:block;font-size:0.75rem;margin-top:0.125rem>`);
|
|
15668
|
+
var _tmpl$1313 = /* @__PURE__ */ template(`<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 a feed never mails months-old accounts. Add those by hand if you want them.`);
|
|
15669
|
+
var _tmpl$1413 = /* @__PURE__ */ template(`<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(`<div style=display:grid;gap:0.75rem><p class=app-admin-text-muted style=font-size:0.75rem;margin:0>Anyone you add from the Funnel tab. Tick segments to also enroll whoever enters them (the hourly check adds and removes them; their clock starts at their own entry).`);
|
|
15671
|
+
var _tmpl$1613 = /* @__PURE__ */ template(`<div style=max-width:40rem>`);
|
|
15672
|
+
var _tmpl$1713 = /* @__PURE__ */ template(`<div><nav role=tablist aria-label="Sequence sections"style="display:flex;gap:0.25rem;border-bottom:1px solid var(--app-admin-border);margin:1rem 0 1.25rem">`);
|
|
15673
|
+
var _tmpl$1812 = /* @__PURE__ */ template(`<span style=text-transform:none>`);
|
|
15674
|
+
var _tmpl$1912 = /* @__PURE__ */ template(`<span class="app-admin-badge app-admin-badge--neutral"style=text-transform:none>`);
|
|
15675
|
+
var _tmpl$2010 = /* @__PURE__ */ template(`<span class="app-admin-badge app-admin-badge--neutral"style=text-transform:none> in it`);
|
|
15676
|
+
var _tmpl$2115 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm">Archive`);
|
|
15677
|
+
var _tmpl$2212 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-primary">`);
|
|
15678
|
+
var _tmpl$2311 = /* @__PURE__ */ template(`<span style=margin-left:0.375rem;opacity:0.7>`);
|
|
15679
|
+
var _tmpl$2411 = /* @__PURE__ */ template(`<button type=button role=tab style="padding:0.625rem 1rem;margin-bottom:-1px;font-size:0.8125rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;border-bottom:2px solid;background:none;border-top:none;border-left:none;border-right:none;cursor:pointer">`);
|
|
15680
|
+
var _tmpl$2511 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-sm">Add step`);
|
|
15681
|
+
var _tmpl$2610 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-sm">Open Email \u203A Templates`);
|
|
15682
|
+
var _tmpl$2710 = /* @__PURE__ */ template(`<div style="padding:1rem 1.25rem;display:flex;gap:0.75rem;align-items:center;flex-wrap:wrap"><span class=app-admin-text-muted style=font-size:0.8125rem>A step sends a marketing template. Create one under Email \u203A Templates first.`);
|
|
15683
|
+
var _tmpl$289 = /* @__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 class=app-admin-table-cell--end><button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm">Remove`);
|
|
15684
|
+
var _tmpl$295 = /* @__PURE__ */ template(`<div><div style=font-size:0.75rem;margin-bottom:0.25rem></div><div style=display:grid;gap:0.25rem>`);
|
|
15685
|
+
var _tmpl$305 = /* @__PURE__ */ template(`<label style=font-size:0.8125rem;display:flex;gap:0.375rem;align-items:center><input type=checkbox>`);
|
|
15686
|
+
var _tmpl$3112 = /* @__PURE__ */ template(`<div>`);
|
|
15687
|
+
var _tmpl$3210 = /* @__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>`);
|
|
15688
|
+
var _tmpl$3310 = /* @__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`);
|
|
15689
|
+
var _tmpl$3410 = /* @__PURE__ */ template(`<div class=app-admin-text-muted style=font-size:0.75rem>`);
|
|
15690
|
+
var _tmpl$356 = /* @__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>`);
|
|
15691
|
+
var _tmpl$363 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>by hand`);
|
|
15692
|
+
var _tmpl$372 = /* @__PURE__ */ template(`<strong>`);
|
|
15693
|
+
var _tmpl$382 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>0`);
|
|
15683
15694
|
var LINKS = ["members", "resume_survey", "cart", "home", "none"];
|
|
15684
15695
|
var EMPTY_STEP = {
|
|
15685
15696
|
waitHours: 24,
|
|
@@ -15710,13 +15721,11 @@ var field = {
|
|
|
15710
15721
|
display: "grid",
|
|
15711
15722
|
gap: "0.25rem"
|
|
15712
15723
|
};
|
|
15713
|
-
function
|
|
15724
|
+
function SequenceQueue(props) {
|
|
15714
15725
|
const nav = useAdminNav();
|
|
15715
|
-
const [reload, setReload] = createSignal(0);
|
|
15716
15726
|
const [busy, setBusy] = createSignal(null);
|
|
15717
|
-
const [
|
|
15718
|
-
|
|
15719
|
-
}] = createResource(reload, () => apiFetch("/admin/funnel/queue"));
|
|
15727
|
+
const rows = () => props.rows ?? [];
|
|
15728
|
+
const refetch = () => props.refetch();
|
|
15720
15729
|
const act = async (row, action) => {
|
|
15721
15730
|
setBusy(row.enrollmentId);
|
|
15722
15731
|
try {
|
|
@@ -15736,15 +15745,16 @@ function Queue(props) {
|
|
|
15736
15745
|
setBusy(null);
|
|
15737
15746
|
}
|
|
15738
15747
|
};
|
|
15739
|
-
const sendAll = async (
|
|
15740
|
-
|
|
15741
|
-
|
|
15748
|
+
const sendAll = async () => {
|
|
15749
|
+
const count = rows().length;
|
|
15750
|
+
if (!window.confirm(`Send ${count} due email${count === 1 ? "" : "s"} for \u201C${props.sequence.name}\u201D now?`)) return;
|
|
15751
|
+
setBusy("all");
|
|
15742
15752
|
try {
|
|
15743
|
-
const r = await apiFetch(`/admin/funnel/sequences/${
|
|
15753
|
+
const r = await apiFetch(`/admin/funnel/sequences/${props.sequence.id}/send-due`, {
|
|
15744
15754
|
method: "POST"
|
|
15745
15755
|
});
|
|
15746
15756
|
toastSuccess(Object.entries(r.outcomes).map(([k, n]) => `${n} ${OUTCOME_LABEL[k] ?? k}`).join(", ") || "Nothing was due");
|
|
15747
|
-
|
|
15757
|
+
refetch();
|
|
15748
15758
|
props.onChanged();
|
|
15749
15759
|
} catch (e) {
|
|
15750
15760
|
toastError(e.message);
|
|
@@ -15752,98 +15762,100 @@ function Queue(props) {
|
|
|
15752
15762
|
setBusy(null);
|
|
15753
15763
|
}
|
|
15754
15764
|
};
|
|
15755
|
-
|
|
15756
|
-
|
|
15757
|
-
|
|
15758
|
-
|
|
15759
|
-
|
|
15760
|
-
|
|
15765
|
+
return createComponent(Section, {
|
|
15766
|
+
title: "Waiting to send",
|
|
15767
|
+
get count() {
|
|
15768
|
+
return rows().length;
|
|
15769
|
+
},
|
|
15770
|
+
flush: true,
|
|
15771
|
+
get action() {
|
|
15772
|
+
return createComponent(Show, {
|
|
15773
|
+
get when() {
|
|
15774
|
+
return rows().length > 0;
|
|
15775
|
+
},
|
|
15776
|
+
get children() {
|
|
15777
|
+
var _el$5 = _tmpl$355();
|
|
15778
|
+
_el$5.$$click = () => void sendAll();
|
|
15779
|
+
effect(() => _el$5.disabled = busy() === "all");
|
|
15780
|
+
return _el$5;
|
|
15781
|
+
}
|
|
15782
|
+
});
|
|
15783
|
+
},
|
|
15784
|
+
get children() {
|
|
15785
|
+
return [createComponent(Show, {
|
|
15786
|
+
get when() {
|
|
15787
|
+
return !props.sequence.autoSend;
|
|
15788
|
+
},
|
|
15789
|
+
get children() {
|
|
15790
|
+
return _tmpl$287();
|
|
15791
|
+
}
|
|
15792
|
+
}), createComponent(Show, {
|
|
15793
|
+
get when() {
|
|
15794
|
+
return props.rows;
|
|
15795
|
+
},
|
|
15796
|
+
get fallback() {
|
|
15797
|
+
return createComponent(LoadingSpinner, {});
|
|
15798
|
+
},
|
|
15799
|
+
get children() {
|
|
15800
|
+
return createComponent(Show, {
|
|
15801
|
+
get when() {
|
|
15802
|
+
return rows().length > 0;
|
|
15803
|
+
},
|
|
15804
|
+
get fallback() {
|
|
15805
|
+
return createComponent(EmptyState, {
|
|
15806
|
+
get message() {
|
|
15807
|
+
return props.sequence.autoSend ? "Nothing due \u2014 the hourly check sends these itself." : "Nobody is due right now.";
|
|
15808
|
+
}
|
|
15809
|
+
});
|
|
15810
|
+
},
|
|
15811
|
+
get children() {
|
|
15812
|
+
var _el$2 = _tmpl$288(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
|
|
15813
|
+
insert(_el$4, createComponent(For, {
|
|
15814
|
+
get each() {
|
|
15815
|
+
return rows();
|
|
15816
|
+
},
|
|
15817
|
+
children: (row) => (() => {
|
|
15818
|
+
var _el$6 = _tmpl$537(), _el$7 = _el$6.firstChild, _el$9 = _el$7.nextSibling, _el$0 = _el$9.nextSibling, _el$1 = _el$0.nextSibling, _el$10 = _el$1.firstChild, _el$11 = _el$1.nextSibling, _el$12 = _el$11.firstChild, _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling;
|
|
15819
|
+
insert(_el$7, createComponent(Show, {
|
|
15820
|
+
get when() {
|
|
15821
|
+
return row.userId && nav;
|
|
15822
|
+
},
|
|
15823
|
+
get fallback() {
|
|
15824
|
+
return row.email;
|
|
15825
|
+
},
|
|
15826
|
+
get children() {
|
|
15827
|
+
var _el$8 = _tmpl$442();
|
|
15828
|
+
_el$8.$$click = () => nav.openCustomer(row.userId);
|
|
15829
|
+
insert(_el$8, () => row.email);
|
|
15830
|
+
return _el$8;
|
|
15831
|
+
}
|
|
15832
|
+
}));
|
|
15833
|
+
insert(_el$9, () => segmentLongLabel(row.segmentAtAdd));
|
|
15834
|
+
insert(_el$0, () => daysAgo(row.anchoredAt));
|
|
15835
|
+
insert(_el$1, () => row.stepIndex + 1, _el$10);
|
|
15836
|
+
insert(_el$1, () => row.stepCount, null);
|
|
15837
|
+
_el$13.$$click = () => void act(row, "send");
|
|
15838
|
+
insert(_el$13, () => busy() === row.enrollmentId ? "Sending\u2026" : "Send");
|
|
15839
|
+
_el$14.$$click = () => void act(row, "skip");
|
|
15840
|
+
effect((_p$) => {
|
|
15841
|
+
var _v$ = busy() === row.enrollmentId, _v$2 = busy() === row.enrollmentId;
|
|
15842
|
+
_v$ !== _p$.e && (_el$13.disabled = _p$.e = _v$);
|
|
15843
|
+
_v$2 !== _p$.t && (_el$14.disabled = _p$.t = _v$2);
|
|
15844
|
+
return _p$;
|
|
15845
|
+
}, {
|
|
15846
|
+
e: void 0,
|
|
15847
|
+
t: void 0
|
|
15848
|
+
});
|
|
15849
|
+
return _el$6;
|
|
15850
|
+
})()
|
|
15851
|
+
}));
|
|
15852
|
+
return _el$2;
|
|
15853
|
+
}
|
|
15854
|
+
});
|
|
15855
|
+
}
|
|
15856
|
+
})];
|
|
15761
15857
|
}
|
|
15762
|
-
|
|
15763
|
-
};
|
|
15764
|
-
return (() => {
|
|
15765
|
-
var _el$ = _tmpl$287(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
|
|
15766
|
-
insert(_el$, createComponent(Show, {
|
|
15767
|
-
get when() {
|
|
15768
|
-
return queue();
|
|
15769
|
-
},
|
|
15770
|
-
get fallback() {
|
|
15771
|
-
return createComponent(LoadingSpinner, {});
|
|
15772
|
-
},
|
|
15773
|
-
get children() {
|
|
15774
|
-
return createComponent(Show, {
|
|
15775
|
-
get when() {
|
|
15776
|
-
return (queue().due.length ?? 0) > 0;
|
|
15777
|
-
},
|
|
15778
|
-
get fallback() {
|
|
15779
|
-
return createComponent(EmptyState, {
|
|
15780
|
-
message: "Nobody is due an email right now."
|
|
15781
|
-
});
|
|
15782
|
-
},
|
|
15783
|
-
get children() {
|
|
15784
|
-
return createComponent(For, {
|
|
15785
|
-
get each() {
|
|
15786
|
-
return bySequence();
|
|
15787
|
-
},
|
|
15788
|
-
children: ([sequenceId, rows]) => [(() => {
|
|
15789
|
-
var _el$5 = _tmpl$288(), _el$6 = _el$5.firstChild, _el$7 = _el$6.firstChild, _el$9 = _el$7.nextSibling; _el$9.nextSibling; var _el$0 = _el$6.nextSibling;
|
|
15790
|
-
insert(_el$6, () => rows[0].sequenceName, _el$7);
|
|
15791
|
-
insert(_el$6, () => rows.length, _el$9);
|
|
15792
|
-
_el$0.$$click = () => void sendAll(sequenceId, rows[0].sequenceName, rows.length);
|
|
15793
|
-
effect(() => _el$0.disabled = busy() === sequenceId);
|
|
15794
|
-
return _el$5;
|
|
15795
|
-
})(), (() => {
|
|
15796
|
-
var _el$1 = _tmpl$355(), _el$10 = _el$1.firstChild, _el$11 = _el$10.nextSibling;
|
|
15797
|
-
insert(_el$11, createComponent(For, {
|
|
15798
|
-
each: rows,
|
|
15799
|
-
children: (row) => (() => {
|
|
15800
|
-
var _el$12 = _tmpl$537(), _el$13 = _el$12.firstChild, _el$15 = _el$13.nextSibling, _el$16 = _el$15.nextSibling, _el$17 = _el$16.nextSibling, _el$18 = _el$17.firstChild, _el$19 = _el$18.nextSibling, _el$20 = _el$19.firstChild, _el$22 = _el$20.nextSibling; _el$22.nextSibling; var _el$23 = _el$17.nextSibling, _el$24 = _el$23.firstChild, _el$25 = _el$24.firstChild, _el$26 = _el$25.nextSibling;
|
|
15801
|
-
insert(_el$13, createComponent(Show, {
|
|
15802
|
-
get when() {
|
|
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
|
-
})()
|
|
15834
|
-
}));
|
|
15835
|
-
return _el$1;
|
|
15836
|
-
})()]
|
|
15837
|
-
});
|
|
15838
|
-
}
|
|
15839
|
-
});
|
|
15840
|
-
}
|
|
15841
|
-
}), null);
|
|
15842
|
-
effect((_$p) => style(_el$4, {
|
|
15843
|
-
...label
|
|
15844
|
-
}, _$p));
|
|
15845
|
-
return _el$;
|
|
15846
|
-
})();
|
|
15858
|
+
});
|
|
15847
15859
|
}
|
|
15848
15860
|
var OUTCOME_LABEL = {
|
|
15849
15861
|
sent: "sent",
|
|
@@ -15880,25 +15892,25 @@ function AddToSequence(props) {
|
|
|
15880
15892
|
}
|
|
15881
15893
|
};
|
|
15882
15894
|
return (() => {
|
|
15883
|
-
var _el$
|
|
15884
|
-
_el$
|
|
15885
|
-
insert(_el$
|
|
15895
|
+
var _el$15 = _tmpl$733(), _el$16 = _el$15.firstChild; _el$16.firstChild; var _el$18 = _el$16.nextSibling;
|
|
15896
|
+
_el$16.addEventListener("change", (e) => setTarget(e.currentTarget.value));
|
|
15897
|
+
insert(_el$16, createComponent(For, {
|
|
15886
15898
|
get each() {
|
|
15887
15899
|
return sequences()?.sequences ?? [];
|
|
15888
15900
|
},
|
|
15889
15901
|
children: (s) => (() => {
|
|
15890
|
-
var _el$
|
|
15891
|
-
insert(_el$
|
|
15892
|
-
effect(() => _el$
|
|
15893
|
-
return _el$
|
|
15902
|
+
var _el$20 = _tmpl$828();
|
|
15903
|
+
insert(_el$20, () => s.name);
|
|
15904
|
+
effect(() => _el$20.value = s.id);
|
|
15905
|
+
return _el$20;
|
|
15894
15906
|
})()
|
|
15895
15907
|
}), null);
|
|
15896
|
-
_el$
|
|
15897
|
-
insert(_el$
|
|
15908
|
+
_el$18.$$click = () => void add();
|
|
15909
|
+
insert(_el$18, (() => {
|
|
15898
15910
|
var _c$ = memo(() => !!busy());
|
|
15899
15911
|
return () => _c$() ? "Adding\u2026" : `Add ${props.people.length}`;
|
|
15900
15912
|
})());
|
|
15901
|
-
insert(_el$
|
|
15913
|
+
insert(_el$15, createComponent(Show, {
|
|
15902
15914
|
get when() {
|
|
15903
15915
|
return memo(() => !!sequences())() && sequences().sequences.length === 0;
|
|
15904
15916
|
},
|
|
@@ -15906,98 +15918,66 @@ function AddToSequence(props) {
|
|
|
15906
15918
|
return _tmpl$635();
|
|
15907
15919
|
}
|
|
15908
15920
|
}), null);
|
|
15909
|
-
effect(() => _el$
|
|
15910
|
-
effect(() => _el$
|
|
15911
|
-
return _el$
|
|
15921
|
+
effect(() => _el$18.disabled = busy() || !target() || props.people.length === 0);
|
|
15922
|
+
effect(() => _el$16.value = target());
|
|
15923
|
+
return _el$15;
|
|
15912
15924
|
})();
|
|
15913
15925
|
}
|
|
15914
|
-
function
|
|
15915
|
-
const nav = useAdminNav();
|
|
15926
|
+
function StepRow(props) {
|
|
15916
15927
|
const set = (k, v) => props.onChange({
|
|
15917
15928
|
...props.step,
|
|
15918
15929
|
[k]: v
|
|
15919
15930
|
});
|
|
15920
15931
|
const missingTemplate = () => props.step.templateId && !props.templates.some((t) => t.id === props.step.templateId);
|
|
15921
15932
|
return (() => {
|
|
15922
|
-
var _el$
|
|
15923
|
-
insert(_el$
|
|
15924
|
-
_el$
|
|
15925
|
-
|
|
15933
|
+
var _el$21 = _tmpl$021(), _el$22 = _el$21.firstChild, _el$23 = _el$22.nextSibling, _el$24 = _el$23.firstChild, _el$25 = _el$24.nextSibling, _el$26 = _el$23.nextSibling; _el$26.firstChild; var _el$29 = _el$26.nextSibling, _el$30 = _el$29.nextSibling, _el$31 = _el$30.firstChild, _el$32 = _el$31.nextSibling;
|
|
15934
|
+
insert(_el$22, () => props.index + 1);
|
|
15935
|
+
insert(_el$24, () => props.index === 0 ? "after" : "+");
|
|
15936
|
+
_el$25.$$input = (e) => set("waitHours", Number(e.currentTarget.value));
|
|
15937
|
+
_el$26.addEventListener("change", (e) => set("templateId", e.currentTarget.value));
|
|
15938
|
+
insert(_el$26, createComponent(Show, {
|
|
15926
15939
|
get when() {
|
|
15927
|
-
return
|
|
15940
|
+
return missingTemplate();
|
|
15928
15941
|
},
|
|
15929
15942
|
get children() {
|
|
15930
|
-
var _el$
|
|
15931
|
-
_el$
|
|
15932
|
-
return _el$
|
|
15943
|
+
var _el$28 = _tmpl$925();
|
|
15944
|
+
effect(() => _el$28.value = props.step.templateId);
|
|
15945
|
+
return _el$28;
|
|
15933
15946
|
}
|
|
15934
15947
|
}), null);
|
|
15935
|
-
insert(_el$
|
|
15936
|
-
|
|
15937
|
-
|
|
15938
|
-
get when() {
|
|
15939
|
-
return props.templates.length > 0;
|
|
15940
|
-
},
|
|
15941
|
-
get fallback() {
|
|
15942
|
-
return (() => {
|
|
15943
|
-
var _el$52 = _tmpl$1213(); _el$52.firstChild;
|
|
15944
|
-
insert(_el$52, createComponent(Show, {
|
|
15945
|
-
when: nav,
|
|
15946
|
-
get children() {
|
|
15947
|
-
var _el$54 = _tmpl$1116();
|
|
15948
|
-
_el$54.$$click = () => nav.selectTab("email-templates");
|
|
15949
|
-
return _el$54;
|
|
15950
|
-
}
|
|
15951
|
-
}), null);
|
|
15952
|
-
return _el$52;
|
|
15953
|
-
})();
|
|
15948
|
+
insert(_el$26, createComponent(For, {
|
|
15949
|
+
get each() {
|
|
15950
|
+
return props.templates;
|
|
15954
15951
|
},
|
|
15955
|
-
|
|
15956
|
-
var _el$
|
|
15957
|
-
_el$
|
|
15958
|
-
|
|
15959
|
-
|
|
15960
|
-
|
|
15961
|
-
},
|
|
15962
|
-
get children() {
|
|
15963
|
-
var _el$48 = _tmpl$021();
|
|
15964
|
-
effect(() => _el$48.value = props.step.templateId);
|
|
15965
|
-
return _el$48;
|
|
15966
|
-
}
|
|
15967
|
-
}), null);
|
|
15968
|
-
insert(_el$46, createComponent(For, {
|
|
15969
|
-
get each() {
|
|
15970
|
-
return props.templates;
|
|
15971
|
-
},
|
|
15972
|
-
children: (t) => (() => {
|
|
15973
|
-
var _el$55 = _tmpl$828();
|
|
15974
|
-
insert(_el$55, () => t.name);
|
|
15975
|
-
effect(() => _el$55.value = t.id);
|
|
15976
|
-
return _el$55;
|
|
15977
|
-
})()
|
|
15978
|
-
}), null);
|
|
15979
|
-
effect(() => _el$46.value = props.step.templateId);
|
|
15980
|
-
return _el$46;
|
|
15981
|
-
}
|
|
15952
|
+
children: (t) => (() => {
|
|
15953
|
+
var _el$33 = _tmpl$828();
|
|
15954
|
+
insert(_el$33, () => t.name);
|
|
15955
|
+
effect(() => _el$33.value = t.id);
|
|
15956
|
+
return _el$33;
|
|
15957
|
+
})()
|
|
15982
15958
|
}), null);
|
|
15983
|
-
_el$
|
|
15984
|
-
insert(_el$
|
|
15959
|
+
_el$29.addEventListener("change", (e) => set("link", e.currentTarget.value));
|
|
15960
|
+
insert(_el$29, createComponent(For, {
|
|
15985
15961
|
each: LINKS,
|
|
15986
15962
|
children: (l) => (() => {
|
|
15987
|
-
var _el$
|
|
15988
|
-
_el$
|
|
15989
|
-
insert(_el$
|
|
15990
|
-
return _el$
|
|
15963
|
+
var _el$34 = _tmpl$828();
|
|
15964
|
+
_el$34.value = l;
|
|
15965
|
+
insert(_el$34, () => LINK_LABEL[l]);
|
|
15966
|
+
return _el$34;
|
|
15991
15967
|
})()
|
|
15992
15968
|
}));
|
|
15969
|
+
_el$31.$$click = () => props.onTest();
|
|
15970
|
+
_el$32.$$click = () => props.onRemove();
|
|
15993
15971
|
effect((_p$) => {
|
|
15994
|
-
var _v$3 =
|
|
15995
|
-
_p$.e
|
|
15996
|
-
_p$.t
|
|
15997
|
-
_p$.a
|
|
15998
|
-
_p$.o
|
|
15999
|
-
_p$.i
|
|
16000
|
-
_p$.n
|
|
15972
|
+
var _v$3 = props.index === 0 ? "none" : "1px solid var(--app-admin-border-soft)", _v$4 = `Step ${props.index + 1} wait hours`, _v$5 = `Step ${props.index + 1} template`, _v$6 = `Step ${props.index + 1} link`, _v$7 = !props.canTest, _v$8 = props.canTest ? "Email this step to me" : "Save first", _v$9 = props.count <= 1, _v$0 = `Remove step ${props.index + 1}`;
|
|
15973
|
+
_v$3 !== _p$.e && setStyleProperty(_el$21, "border-top", _p$.e = _v$3);
|
|
15974
|
+
_v$4 !== _p$.t && setAttribute(_el$25, "aria-label", _p$.t = _v$4);
|
|
15975
|
+
_v$5 !== _p$.a && setAttribute(_el$26, "aria-label", _p$.a = _v$5);
|
|
15976
|
+
_v$6 !== _p$.o && setAttribute(_el$29, "aria-label", _p$.o = _v$6);
|
|
15977
|
+
_v$7 !== _p$.i && (_el$31.disabled = _p$.i = _v$7);
|
|
15978
|
+
_v$8 !== _p$.n && setAttribute(_el$31, "title", _p$.n = _v$8);
|
|
15979
|
+
_v$9 !== _p$.s && (_el$32.disabled = _p$.s = _v$9);
|
|
15980
|
+
_v$0 !== _p$.h && setAttribute(_el$32, "aria-label", _p$.h = _v$0);
|
|
16001
15981
|
return _p$;
|
|
16002
15982
|
}, {
|
|
16003
15983
|
e: void 0,
|
|
@@ -16005,22 +15985,45 @@ function StepEditor(props) {
|
|
|
16005
15985
|
a: void 0,
|
|
16006
15986
|
o: void 0,
|
|
16007
15987
|
i: void 0,
|
|
16008
|
-
n: void 0
|
|
15988
|
+
n: void 0,
|
|
15989
|
+
s: void 0,
|
|
15990
|
+
h: void 0
|
|
16009
15991
|
});
|
|
16010
|
-
effect(() => _el$
|
|
16011
|
-
effect(() => _el$
|
|
16012
|
-
|
|
15992
|
+
effect(() => _el$25.value = props.step.waitHours);
|
|
15993
|
+
effect(() => _el$26.value = props.step.templateId);
|
|
15994
|
+
effect(() => _el$29.value = props.step.link);
|
|
15995
|
+
return _el$21;
|
|
16013
15996
|
})();
|
|
16014
15997
|
}
|
|
15998
|
+
var checkboxRow = {
|
|
15999
|
+
"font-size": "0.8125rem",
|
|
16000
|
+
display: "flex",
|
|
16001
|
+
gap: "0.5rem",
|
|
16002
|
+
"align-items": "flex-start"
|
|
16003
|
+
};
|
|
16015
16004
|
function SequenceEditor(props) {
|
|
16016
16005
|
const nav = useAdminNav();
|
|
16017
16006
|
const [draft, setDraft] = createSignal(JSON.parse(JSON.stringify(props.initial)));
|
|
16018
16007
|
const [saving, setSaving] = createSignal(false);
|
|
16019
16008
|
const [error, setError] = createSignal(null);
|
|
16020
16009
|
const isNew = () => !draft().id;
|
|
16010
|
+
const dirty = () => JSON.stringify(draft()) !== JSON.stringify(props.initial);
|
|
16021
16011
|
const [enrollments, {
|
|
16022
16012
|
refetch: refetchEnrollments
|
|
16023
16013
|
}] = createResource(() => props.initial.id || null, (id) => apiFetch(`/admin/funnel/sequences/${id}/enrollments`));
|
|
16014
|
+
const [queue, {
|
|
16015
|
+
refetch: refetchQueue
|
|
16016
|
+
}] = createResource(() => props.initial.id || null, () => apiFetch("/admin/funnel/queue"));
|
|
16017
|
+
const dueRows = () => queue() ? queue().due.filter((r) => r.sequenceId === props.initial.id) : void 0;
|
|
16018
|
+
const [tab, setTab] = createSignal(isNew() ? "settings" : "queue");
|
|
16019
|
+
const tabKeys = () => isNew() ? ["steps", "settings"] : ["queue", "steps", "people", "settings"];
|
|
16020
|
+
const TAB_LABEL = {
|
|
16021
|
+
queue: "Queue",
|
|
16022
|
+
steps: "Steps",
|
|
16023
|
+
people: "People",
|
|
16024
|
+
settings: "Settings"
|
|
16025
|
+
};
|
|
16026
|
+
const tabCount = (key) => key === "queue" ? dueRows()?.length : key === "steps" ? draft().steps.length : key === "people" ? enrollments()?.enrollments.length : void 0;
|
|
16024
16027
|
const update = (patch) => setDraft({
|
|
16025
16028
|
...draft(),
|
|
16026
16029
|
...patch
|
|
@@ -16077,10 +16080,6 @@ function SequenceEditor(props) {
|
|
|
16077
16080
|
}
|
|
16078
16081
|
};
|
|
16079
16082
|
const test = async (stepIndex) => {
|
|
16080
|
-
if (isNew()) {
|
|
16081
|
-
toastError("Save the sequence first, then send a test.");
|
|
16082
|
-
return;
|
|
16083
|
-
}
|
|
16084
16083
|
try {
|
|
16085
16084
|
const r = await apiFetch(`/admin/funnel/sequences/${draft().id}/test`, {
|
|
16086
16085
|
method: "POST",
|
|
@@ -16110,213 +16109,387 @@ function SequenceEditor(props) {
|
|
|
16110
16109
|
feedSegments: cur.includes(key) ? cur.filter((k) => k !== key) : [...cur, key]
|
|
16111
16110
|
});
|
|
16112
16111
|
};
|
|
16112
|
+
const feedSummary = () => draft().feedSegments.length > 0 ? `Fed by ${draft().feedSegments.length} segment${draft().feedSegments.length === 1 ? "" : "s"}, last ${draft().feedMaxAgeDays ?? 30} days` : "Enrolled by hand only";
|
|
16113
16113
|
return (() => {
|
|
16114
|
-
var _el$
|
|
16115
|
-
insert(_el$
|
|
16116
|
-
|
|
16117
|
-
|
|
16118
|
-
|
|
16119
|
-
|
|
16120
|
-
_el$65.$$input = (e) => update({
|
|
16121
|
-
name: e.currentTarget.value
|
|
16122
|
-
});
|
|
16123
|
-
_el$68.$$input = (e) => update({
|
|
16124
|
-
description: e.currentTarget.value || null
|
|
16125
|
-
});
|
|
16126
|
-
insert(_el$61, createComponent(Index, {
|
|
16127
|
-
get each() {
|
|
16128
|
-
return draft().steps;
|
|
16114
|
+
var _el$35 = _tmpl$1713(), _el$36 = _el$35.firstChild;
|
|
16115
|
+
insert(_el$35, createComponent(DetailHeader, {
|
|
16116
|
+
backLabel: "Sequences",
|
|
16117
|
+
onBack: () => props.onClose(),
|
|
16118
|
+
get title() {
|
|
16119
|
+
return memo(() => !!isNew())() ? "New sequence" : draft().name || "Untitled sequence";
|
|
16129
16120
|
},
|
|
16130
|
-
|
|
16131
|
-
|
|
16132
|
-
|
|
16133
|
-
|
|
16134
|
-
|
|
16135
|
-
|
|
16136
|
-
|
|
16137
|
-
|
|
16138
|
-
|
|
16139
|
-
|
|
16140
|
-
|
|
16141
|
-
|
|
16142
|
-
|
|
16143
|
-
|
|
16144
|
-
|
|
16145
|
-
|
|
16146
|
-
|
|
16147
|
-
|
|
16148
|
-
|
|
16149
|
-
|
|
16150
|
-
|
|
16151
|
-
|
|
16152
|
-
|
|
16153
|
-
|
|
16154
|
-
|
|
16155
|
-
|
|
16156
|
-
|
|
16157
|
-
|
|
16158
|
-
|
|
16159
|
-
|
|
16160
|
-
|
|
16161
|
-
|
|
16162
|
-
|
|
16163
|
-
|
|
16164
|
-
|
|
16165
|
-
|
|
16166
|
-
|
|
16167
|
-
|
|
16168
|
-
|
|
16169
|
-
|
|
16170
|
-
|
|
16171
|
-
|
|
16172
|
-
|
|
16173
|
-
}
|
|
16174
|
-
|
|
16175
|
-
|
|
16176
|
-
|
|
16177
|
-
insert(_el$71, createComponent(Show, {
|
|
16121
|
+
get subtitle() {
|
|
16122
|
+
return draft().description || (isNew() ? "Timed emails for people who stopped short of a subscription." : void 0);
|
|
16123
|
+
},
|
|
16124
|
+
get badges() {
|
|
16125
|
+
return [(() => {
|
|
16126
|
+
var _el$62 = _tmpl$1812();
|
|
16127
|
+
insert(_el$62, () => draft().autoSend ? "Sends automatically" : "Sends on review");
|
|
16128
|
+
effect(() => className(_el$62, `app-admin-badge app-admin-badge--${draft().autoSend ? "success" : "info"}`));
|
|
16129
|
+
return _el$62;
|
|
16130
|
+
})(), (() => {
|
|
16131
|
+
var _el$63 = _tmpl$1912();
|
|
16132
|
+
insert(_el$63, feedSummary);
|
|
16133
|
+
return _el$63;
|
|
16134
|
+
})(), createComponent(Show, {
|
|
16135
|
+
get when() {
|
|
16136
|
+
return memo(() => !!!isNew())() && enrollments();
|
|
16137
|
+
},
|
|
16138
|
+
get children() {
|
|
16139
|
+
var _el$64 = _tmpl$2010(), _el$65 = _el$64.firstChild;
|
|
16140
|
+
insert(_el$64, () => enrollments().enrollments.length, _el$65);
|
|
16141
|
+
return _el$64;
|
|
16142
|
+
}
|
|
16143
|
+
})];
|
|
16144
|
+
},
|
|
16145
|
+
get actions() {
|
|
16146
|
+
return [createComponent(Show, {
|
|
16147
|
+
get when() {
|
|
16148
|
+
return !isNew();
|
|
16149
|
+
},
|
|
16150
|
+
get children() {
|
|
16151
|
+
var _el$66 = _tmpl$2115();
|
|
16152
|
+
_el$66.$$click = () => void archive();
|
|
16153
|
+
return _el$66;
|
|
16154
|
+
}
|
|
16155
|
+
}), (() => {
|
|
16156
|
+
var _el$67 = _tmpl$2212();
|
|
16157
|
+
_el$67.$$click = () => void save();
|
|
16158
|
+
insert(_el$67, (() => {
|
|
16159
|
+
var _c$2 = memo(() => !!saving());
|
|
16160
|
+
return () => _c$2() ? "Saving\u2026" : isNew() ? "Create sequence" : "Save changes";
|
|
16161
|
+
})());
|
|
16162
|
+
effect(() => _el$67.disabled = saving() || !isNew() && !dirty());
|
|
16163
|
+
return _el$67;
|
|
16164
|
+
})()];
|
|
16165
|
+
}
|
|
16166
|
+
}), _el$36);
|
|
16167
|
+
insert(_el$35, createComponent(Show, {
|
|
16178
16168
|
get when() {
|
|
16179
|
-
return
|
|
16169
|
+
return error();
|
|
16180
16170
|
},
|
|
16181
16171
|
get children() {
|
|
16182
|
-
|
|
16183
|
-
|
|
16184
|
-
|
|
16172
|
+
return createComponent(AlertItem, {
|
|
16173
|
+
severity: "danger",
|
|
16174
|
+
title: "Could not save",
|
|
16175
|
+
get detail() {
|
|
16176
|
+
return error();
|
|
16177
|
+
}
|
|
16185
16178
|
});
|
|
16186
|
-
|
|
16187
|
-
|
|
16188
|
-
|
|
16179
|
+
}
|
|
16180
|
+
}), _el$36);
|
|
16181
|
+
insert(_el$36, createComponent(For, {
|
|
16182
|
+
get each() {
|
|
16183
|
+
return tabKeys();
|
|
16184
|
+
},
|
|
16185
|
+
children: (key) => (() => {
|
|
16186
|
+
var _el$68 = _tmpl$2411();
|
|
16187
|
+
_el$68.$$click = () => setTab(key);
|
|
16188
|
+
insert(_el$68, () => TAB_LABEL[key], null);
|
|
16189
|
+
insert(_el$68, createComponent(Show, {
|
|
16190
|
+
get when() {
|
|
16191
|
+
return tabCount(key) !== void 0;
|
|
16192
|
+
},
|
|
16193
|
+
get children() {
|
|
16194
|
+
var _el$69 = _tmpl$2311();
|
|
16195
|
+
insert(_el$69, () => tabCount(key));
|
|
16196
|
+
return _el$69;
|
|
16197
|
+
}
|
|
16198
|
+
}), null);
|
|
16189
16199
|
effect((_p$) => {
|
|
16190
|
-
var _v$
|
|
16191
|
-
_p$.e
|
|
16192
|
-
_p$.t
|
|
16200
|
+
var _v$15 = tab() === key, _v$16 = tab() === key ? "var(--app-admin-primary)" : "transparent", _v$17 = tab() === key ? "var(--app-admin-primary)" : "var(--app-admin-fg-muted)";
|
|
16201
|
+
_v$15 !== _p$.e && setAttribute(_el$68, "aria-selected", _p$.e = _v$15);
|
|
16202
|
+
_v$16 !== _p$.t && setStyleProperty(_el$68, "border-color", _p$.t = _v$16);
|
|
16203
|
+
_v$17 !== _p$.a && setStyleProperty(_el$68, "color", _p$.a = _v$17);
|
|
16193
16204
|
return _p$;
|
|
16194
16205
|
}, {
|
|
16195
16206
|
e: void 0,
|
|
16196
|
-
t: void 0
|
|
16207
|
+
t: void 0,
|
|
16208
|
+
a: void 0
|
|
16197
16209
|
});
|
|
16198
|
-
|
|
16199
|
-
|
|
16200
|
-
return _el$74;
|
|
16201
|
-
}
|
|
16202
|
-
}), null);
|
|
16203
|
-
_el$84.addEventListener("change", (e) => update({
|
|
16204
|
-
autoSend: e.currentTarget.checked
|
|
16210
|
+
return _el$68;
|
|
16211
|
+
})()
|
|
16205
16212
|
}));
|
|
16206
|
-
insert(_el$
|
|
16207
|
-
insert(_el$61, createComponent(Show, {
|
|
16208
|
-
get when() {
|
|
16209
|
-
return error();
|
|
16210
|
-
},
|
|
16211
|
-
get children() {
|
|
16212
|
-
var _el$86 = _tmpl$1413();
|
|
16213
|
-
insert(_el$86, error);
|
|
16214
|
-
return _el$86;
|
|
16215
|
-
}
|
|
16216
|
-
}), _el$87);
|
|
16217
|
-
_el$88.$$click = () => void save();
|
|
16218
|
-
insert(_el$88, (() => {
|
|
16219
|
-
var _c$3 = memo(() => !!saving());
|
|
16220
|
-
return () => _c$3() ? "Saving\u2026" : isNew() ? "Create sequence" : "Save changes";
|
|
16221
|
-
})());
|
|
16222
|
-
insert(_el$87, createComponent(Show, {
|
|
16223
|
-
get when() {
|
|
16224
|
-
return !isNew();
|
|
16225
|
-
},
|
|
16226
|
-
get children() {
|
|
16227
|
-
var _el$89 = _tmpl$1513();
|
|
16228
|
-
_el$89.$$click = () => void archive();
|
|
16229
|
-
return _el$89;
|
|
16230
|
-
}
|
|
16231
|
-
}), null);
|
|
16232
|
-
insert(_el$57, createComponent(Show, {
|
|
16233
|
-
get when() {
|
|
16234
|
-
return !isNew();
|
|
16235
|
-
},
|
|
16213
|
+
insert(_el$35, createComponent(Switch, {
|
|
16236
16214
|
get children() {
|
|
16237
|
-
|
|
16238
|
-
insert(_el$92, () => enrollments()?.enrollments.length ?? "\u2026", null);
|
|
16239
|
-
insert(_el$90, createComponent(Show, {
|
|
16215
|
+
return [createComponent(Match, {
|
|
16240
16216
|
get when() {
|
|
16241
|
-
return
|
|
16217
|
+
return tab() === "queue";
|
|
16242
16218
|
},
|
|
16243
|
-
get
|
|
16244
|
-
return createComponent(
|
|
16219
|
+
get children() {
|
|
16220
|
+
return createComponent(SequenceQueue, {
|
|
16221
|
+
get sequence() {
|
|
16222
|
+
return props.initial;
|
|
16223
|
+
},
|
|
16224
|
+
get rows() {
|
|
16225
|
+
return dueRows();
|
|
16226
|
+
},
|
|
16227
|
+
refetch: () => void refetchQueue(),
|
|
16228
|
+
get onChanged() {
|
|
16229
|
+
return props.onChanged;
|
|
16230
|
+
}
|
|
16231
|
+
});
|
|
16232
|
+
}
|
|
16233
|
+
}), createComponent(Match, {
|
|
16234
|
+
get when() {
|
|
16235
|
+
return tab() === "steps";
|
|
16245
16236
|
},
|
|
16246
16237
|
get children() {
|
|
16247
|
-
return createComponent(
|
|
16248
|
-
|
|
16249
|
-
|
|
16238
|
+
return createComponent(Section, {
|
|
16239
|
+
title: "Steps",
|
|
16240
|
+
get count() {
|
|
16241
|
+
return draft().steps.length;
|
|
16250
16242
|
},
|
|
16251
|
-
|
|
16252
|
-
|
|
16253
|
-
|
|
16243
|
+
flush: true,
|
|
16244
|
+
get action() {
|
|
16245
|
+
return (() => {
|
|
16246
|
+
var _el$70 = _tmpl$2511();
|
|
16247
|
+
_el$70.$$click = () => update({
|
|
16248
|
+
steps: [...draft().steps, {
|
|
16249
|
+
...EMPTY_STEP,
|
|
16250
|
+
waitHours: 72
|
|
16251
|
+
}]
|
|
16252
|
+
});
|
|
16253
|
+
effect(() => _el$70.disabled = draft().steps.length >= 8);
|
|
16254
|
+
return _el$70;
|
|
16255
|
+
})();
|
|
16256
|
+
},
|
|
16257
|
+
get children() {
|
|
16258
|
+
return createComponent(Show, {
|
|
16259
|
+
get when() {
|
|
16260
|
+
return props.templates.length > 0;
|
|
16261
|
+
},
|
|
16262
|
+
get fallback() {
|
|
16263
|
+
return (() => {
|
|
16264
|
+
var _el$71 = _tmpl$2710(); _el$71.firstChild;
|
|
16265
|
+
insert(_el$71, createComponent(Show, {
|
|
16266
|
+
when: nav,
|
|
16267
|
+
get children() {
|
|
16268
|
+
var _el$73 = _tmpl$2610();
|
|
16269
|
+
_el$73.$$click = () => nav.selectTab("email-templates");
|
|
16270
|
+
return _el$73;
|
|
16271
|
+
}
|
|
16272
|
+
}), null);
|
|
16273
|
+
return _el$71;
|
|
16274
|
+
})();
|
|
16275
|
+
},
|
|
16276
|
+
get children() {
|
|
16277
|
+
return [_tmpl$1101(), createComponent(Index, {
|
|
16278
|
+
get each() {
|
|
16279
|
+
return draft().steps;
|
|
16280
|
+
},
|
|
16281
|
+
children: (step, i) => createComponent(StepRow, {
|
|
16282
|
+
index: i,
|
|
16283
|
+
get step() {
|
|
16284
|
+
return step();
|
|
16285
|
+
},
|
|
16286
|
+
get count() {
|
|
16287
|
+
return draft().steps.length;
|
|
16288
|
+
},
|
|
16289
|
+
get templates() {
|
|
16290
|
+
return props.templates;
|
|
16291
|
+
},
|
|
16292
|
+
get canTest() {
|
|
16293
|
+
return !isNew();
|
|
16294
|
+
},
|
|
16295
|
+
onChange: (s) => setStep(i, s),
|
|
16296
|
+
onRemove: () => update({
|
|
16297
|
+
steps: draft().steps.filter((_, j) => j !== i)
|
|
16298
|
+
}),
|
|
16299
|
+
onTest: () => void test(i)
|
|
16300
|
+
})
|
|
16301
|
+
})];
|
|
16302
|
+
}
|
|
16254
16303
|
});
|
|
16304
|
+
}
|
|
16305
|
+
});
|
|
16306
|
+
}
|
|
16307
|
+
}), createComponent(Match, {
|
|
16308
|
+
get when() {
|
|
16309
|
+
return tab() === "people";
|
|
16310
|
+
},
|
|
16311
|
+
get children() {
|
|
16312
|
+
return createComponent(Section, {
|
|
16313
|
+
title: "People in this sequence",
|
|
16314
|
+
get count() {
|
|
16315
|
+
return enrollments()?.enrollments.length;
|
|
16255
16316
|
},
|
|
16317
|
+
flush: true,
|
|
16256
16318
|
get children() {
|
|
16257
|
-
|
|
16258
|
-
|
|
16259
|
-
|
|
16260
|
-
|
|
16319
|
+
return createComponent(Show, {
|
|
16320
|
+
get when() {
|
|
16321
|
+
return enrollments();
|
|
16322
|
+
},
|
|
16323
|
+
get fallback() {
|
|
16324
|
+
return createComponent(LoadingSpinner, {});
|
|
16261
16325
|
},
|
|
16262
|
-
children
|
|
16263
|
-
|
|
16264
|
-
insert(_el$103, createComponent(Show, {
|
|
16326
|
+
get children() {
|
|
16327
|
+
return createComponent(Show, {
|
|
16265
16328
|
get when() {
|
|
16266
|
-
return
|
|
16329
|
+
return enrollments().enrollments.length > 0;
|
|
16267
16330
|
},
|
|
16268
16331
|
get fallback() {
|
|
16269
|
-
return
|
|
16332
|
+
return createComponent(EmptyState, {
|
|
16333
|
+
message: "Nobody yet. Add people from the Funnel tab, or feed the sequence from a segment."
|
|
16334
|
+
});
|
|
16270
16335
|
},
|
|
16271
16336
|
get children() {
|
|
16272
|
-
var _el$
|
|
16273
|
-
_el$
|
|
16274
|
-
|
|
16275
|
-
|
|
16337
|
+
var _el$38 = _tmpl$1014(), _el$39 = _el$38.firstChild, _el$40 = _el$39.nextSibling;
|
|
16338
|
+
insert(_el$40, createComponent(For, {
|
|
16339
|
+
get each() {
|
|
16340
|
+
return enrollments().enrollments;
|
|
16341
|
+
},
|
|
16342
|
+
children: (e) => (() => {
|
|
16343
|
+
var _el$74 = _tmpl$289(), _el$75 = _el$74.firstChild, _el$77 = _el$75.firstChild, _el$78 = _el$77.firstChild, _el$79 = _el$75.nextSibling, _el$80 = _el$79.nextSibling, _el$81 = _el$80.firstChild, _el$82 = _el$80.nextSibling, _el$83 = _el$82.nextSibling, _el$84 = _el$83.firstChild;
|
|
16344
|
+
insert(_el$75, createComponent(Show, {
|
|
16345
|
+
get when() {
|
|
16346
|
+
return e.userId && nav;
|
|
16347
|
+
},
|
|
16348
|
+
get fallback() {
|
|
16349
|
+
return e.email;
|
|
16350
|
+
},
|
|
16351
|
+
get children() {
|
|
16352
|
+
var _el$76 = _tmpl$442();
|
|
16353
|
+
_el$76.$$click = () => nav.openCustomer(e.userId);
|
|
16354
|
+
insert(_el$76, () => e.email);
|
|
16355
|
+
return _el$76;
|
|
16356
|
+
}
|
|
16357
|
+
}), _el$77);
|
|
16358
|
+
insert(_el$77, () => e.source === "feed" ? "enrolled by the feed" : "added by hand", _el$78);
|
|
16359
|
+
insert(_el$77, () => formatDate(e.addedAt), null);
|
|
16360
|
+
insert(_el$79, () => segmentLongLabel(e.segmentAtAdd));
|
|
16361
|
+
insert(_el$80, () => Math.min(e.stepIndex + 1, draft().steps.length), _el$81);
|
|
16362
|
+
insert(_el$80, () => draft().steps.length, null);
|
|
16363
|
+
insert(_el$82, (() => {
|
|
16364
|
+
var _c$3 = memo(() => !!e.nextDueAt);
|
|
16365
|
+
return () => _c$3() ? formatDate(e.nextDueAt) : "\u2014";
|
|
16366
|
+
})());
|
|
16367
|
+
_el$84.$$click = () => void remove(e);
|
|
16368
|
+
return _el$74;
|
|
16369
|
+
})()
|
|
16370
|
+
}));
|
|
16371
|
+
return _el$38;
|
|
16276
16372
|
}
|
|
16277
|
-
})
|
|
16278
|
-
|
|
16279
|
-
|
|
16280
|
-
insert(_el$107, () => segmentLongLabel(e.segmentAtAdd));
|
|
16281
|
-
insert(_el$108, () => Math.min(e.stepIndex + 1, draft().steps.length), _el$109);
|
|
16282
|
-
insert(_el$108, () => draft().steps.length, null);
|
|
16283
|
-
insert(_el$110, (() => {
|
|
16284
|
-
var _c$4 = memo(() => !!e.nextDueAt);
|
|
16285
|
-
return () => _c$4() ? formatDate(e.nextDueAt) : "\u2014";
|
|
16286
|
-
})());
|
|
16287
|
-
_el$112.$$click = () => void remove(e);
|
|
16288
|
-
return _el$102;
|
|
16289
|
-
})()
|
|
16290
|
-
}));
|
|
16291
|
-
return _el$94;
|
|
16373
|
+
});
|
|
16374
|
+
}
|
|
16375
|
+
});
|
|
16292
16376
|
}
|
|
16293
16377
|
});
|
|
16294
16378
|
}
|
|
16295
|
-
}),
|
|
16296
|
-
|
|
16379
|
+
}), createComponent(Match, {
|
|
16380
|
+
get when() {
|
|
16381
|
+
return tab() === "settings";
|
|
16382
|
+
},
|
|
16383
|
+
get children() {
|
|
16384
|
+
var _el$41 = _tmpl$1613();
|
|
16385
|
+
insert(_el$41, createComponent(Section, {
|
|
16386
|
+
title: "About",
|
|
16387
|
+
get children() {
|
|
16388
|
+
var _el$42 = _tmpl$1116(), _el$43 = _el$42.firstChild, _el$44 = _el$43.firstChild, _el$45 = _el$44.nextSibling, _el$46 = _el$43.nextSibling, _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling;
|
|
16389
|
+
_el$45.$$input = (e) => update({
|
|
16390
|
+
name: e.currentTarget.value
|
|
16391
|
+
});
|
|
16392
|
+
_el$48.$$input = (e) => update({
|
|
16393
|
+
description: e.currentTarget.value || null
|
|
16394
|
+
});
|
|
16395
|
+
effect((_p$) => {
|
|
16396
|
+
var _v$1 = field, _v$10 = label, _v$11 = field, _v$12 = label;
|
|
16397
|
+
_p$.e = style(_el$43, _v$1, _p$.e);
|
|
16398
|
+
_p$.t = style(_el$44, _v$10, _p$.t);
|
|
16399
|
+
_p$.a = style(_el$46, _v$11, _p$.a);
|
|
16400
|
+
_p$.o = style(_el$47, _v$12, _p$.o);
|
|
16401
|
+
return _p$;
|
|
16402
|
+
}, {
|
|
16403
|
+
e: void 0,
|
|
16404
|
+
t: void 0,
|
|
16405
|
+
a: void 0,
|
|
16406
|
+
o: void 0
|
|
16407
|
+
});
|
|
16408
|
+
effect(() => _el$45.value = draft().name);
|
|
16409
|
+
effect(() => _el$48.value = draft().description ?? "");
|
|
16410
|
+
return _el$42;
|
|
16411
|
+
}
|
|
16412
|
+
}), null);
|
|
16413
|
+
insert(_el$41, createComponent(Section, {
|
|
16414
|
+
title: "Sending",
|
|
16415
|
+
get children() {
|
|
16416
|
+
var _el$49 = _tmpl$1213(), _el$50 = _el$49.firstChild, _el$51 = _el$50.nextSibling, _el$52 = _el$51.firstChild, _el$53 = _el$52.nextSibling;
|
|
16417
|
+
style(_el$49, checkboxRow);
|
|
16418
|
+
_el$50.addEventListener("change", (e) => update({
|
|
16419
|
+
autoSend: e.currentTarget.checked
|
|
16420
|
+
}));
|
|
16421
|
+
insert(_el$53, () => draft().autoSend ? "The hourly check emails due steps itself. Buyers and unsubscribes drop out first; one sequence email per person per day." : "Off: due steps wait under \u201CWaiting to send\u201D for you.");
|
|
16422
|
+
effect(() => _el$50.checked = draft().autoSend);
|
|
16423
|
+
return _el$49;
|
|
16424
|
+
}
|
|
16425
|
+
}), null);
|
|
16426
|
+
insert(_el$41, createComponent(Section, {
|
|
16427
|
+
title: "Who gets enrolled",
|
|
16428
|
+
get children() {
|
|
16429
|
+
var _el$54 = _tmpl$1513(); _el$54.firstChild;
|
|
16430
|
+
insert(_el$54, createComponent(For, {
|
|
16431
|
+
each: ["a", "b"],
|
|
16432
|
+
children: (g) => (() => {
|
|
16433
|
+
var _el$85 = _tmpl$295(), _el$86 = _el$85.firstChild, _el$87 = _el$86.nextSibling;
|
|
16434
|
+
insert(_el$86, () => GROUP_LABEL[g]);
|
|
16435
|
+
insert(_el$87, createComponent(For, {
|
|
16436
|
+
get each() {
|
|
16437
|
+
return SEGMENT_KEYS[g];
|
|
16438
|
+
},
|
|
16439
|
+
children: (key) => (() => {
|
|
16440
|
+
var _el$88 = _tmpl$305(), _el$89 = _el$88.firstChild;
|
|
16441
|
+
_el$89.addEventListener("change", () => toggleSegment(key));
|
|
16442
|
+
insert(_el$88, () => SEGMENT_LABEL[key], null);
|
|
16443
|
+
effect(() => _el$89.checked = draft().feedSegments.includes(key));
|
|
16444
|
+
return _el$88;
|
|
16445
|
+
})()
|
|
16446
|
+
}));
|
|
16447
|
+
effect((_$p) => style(_el$86, {
|
|
16448
|
+
...label
|
|
16449
|
+
}, _$p));
|
|
16450
|
+
return _el$85;
|
|
16451
|
+
})()
|
|
16452
|
+
}), null);
|
|
16453
|
+
insert(_el$54, createComponent(Show, {
|
|
16454
|
+
get when() {
|
|
16455
|
+
return draft().feedSegments.length > 0;
|
|
16456
|
+
},
|
|
16457
|
+
get children() {
|
|
16458
|
+
return [(() => {
|
|
16459
|
+
var _el$56 = _tmpl$1313(), _el$57 = _el$56.firstChild, _el$58 = _el$57.nextSibling; _el$58.nextSibling;
|
|
16460
|
+
_el$58.$$input = (e) => update({
|
|
16461
|
+
feedMaxAgeDays: Number(e.currentTarget.value)
|
|
16462
|
+
});
|
|
16463
|
+
effect((_p$) => {
|
|
16464
|
+
var _v$13 = field, _v$14 = label;
|
|
16465
|
+
_p$.e = style(_el$56, _v$13, _p$.e);
|
|
16466
|
+
_p$.t = style(_el$57, _v$14, _p$.t);
|
|
16467
|
+
return _p$;
|
|
16468
|
+
}, {
|
|
16469
|
+
e: void 0,
|
|
16470
|
+
t: void 0
|
|
16471
|
+
});
|
|
16472
|
+
effect(() => _el$58.value = draft().feedMaxAgeDays ?? 30);
|
|
16473
|
+
return _el$56;
|
|
16474
|
+
})(), (() => {
|
|
16475
|
+
var _el$60 = _tmpl$1413(), _el$61 = _el$60.firstChild;
|
|
16476
|
+
_el$61.addEventListener("change", (e) => update({
|
|
16477
|
+
feedQualifiedOnly: e.currentTarget.checked
|
|
16478
|
+
}));
|
|
16479
|
+
effect(() => _el$61.checked = draft().feedQualifiedOnly);
|
|
16480
|
+
return _el$60;
|
|
16481
|
+
})()];
|
|
16482
|
+
}
|
|
16483
|
+
}), null);
|
|
16484
|
+
return _el$54;
|
|
16485
|
+
}
|
|
16486
|
+
}), null);
|
|
16487
|
+
return _el$41;
|
|
16488
|
+
}
|
|
16489
|
+
})];
|
|
16297
16490
|
}
|
|
16298
16491
|
}), null);
|
|
16299
|
-
|
|
16300
|
-
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$63, _v$1, _p$.e);
|
|
16302
|
-
_p$.t = style(_el$64, _v$10, _p$.t);
|
|
16303
|
-
_p$.a = style(_el$66, _v$11, _p$.a);
|
|
16304
|
-
_p$.o = style(_el$67, _v$12, _p$.o);
|
|
16305
|
-
_v$13 !== _p$.i && (_el$70.disabled = _p$.i = _v$13);
|
|
16306
|
-
_v$14 !== _p$.n && (_el$88.disabled = _p$.n = _v$14);
|
|
16307
|
-
return _p$;
|
|
16308
|
-
}, {
|
|
16309
|
-
e: void 0,
|
|
16310
|
-
t: void 0,
|
|
16311
|
-
a: void 0,
|
|
16312
|
-
o: void 0,
|
|
16313
|
-
i: void 0,
|
|
16314
|
-
n: void 0
|
|
16315
|
-
});
|
|
16316
|
-
effect(() => _el$65.value = draft().name);
|
|
16317
|
-
effect(() => _el$68.value = draft().description ?? "");
|
|
16318
|
-
effect(() => _el$84.checked = draft().autoSend);
|
|
16319
|
-
return _el$57;
|
|
16492
|
+
return _el$35;
|
|
16320
16493
|
})();
|
|
16321
16494
|
}
|
|
16322
16495
|
function Sequences() {
|
|
@@ -16327,38 +16500,38 @@ function Sequences() {
|
|
|
16327
16500
|
const [emailTemplates] = createResource(() => adminApi.getEmailTemplates());
|
|
16328
16501
|
const customTemplates = () => emailTemplates()?.customTemplates ?? [];
|
|
16329
16502
|
const [editing, setEditing] = createSignal(null);
|
|
16330
|
-
const
|
|
16503
|
+
const [queue, {
|
|
16504
|
+
refetch: refetchQueue
|
|
16505
|
+
}] = createResource(reload, () => apiFetch("/admin/funnel/queue").catch(() => ({
|
|
16506
|
+
due: []
|
|
16507
|
+
})));
|
|
16508
|
+
const dueFor = (id) => (queue()?.due ?? []).filter((d) => d.sequenceId === id).length;
|
|
16509
|
+
const changed = () => {
|
|
16510
|
+
void refetch();
|
|
16511
|
+
void refetchQueue();
|
|
16512
|
+
};
|
|
16331
16513
|
return (() => {
|
|
16332
|
-
var _el$
|
|
16333
|
-
insert(_el$
|
|
16334
|
-
subtitle: "Timed emails for people who stopped short of a subscription",
|
|
16335
|
-
children: "Sequences"
|
|
16336
|
-
}), null);
|
|
16337
|
-
insert(_el$113, createComponent(Show, {
|
|
16514
|
+
var _el$90 = _tmpl$3112();
|
|
16515
|
+
insert(_el$90, createComponent(Show, {
|
|
16338
16516
|
get when() {
|
|
16339
|
-
return
|
|
16340
|
-
},
|
|
16341
|
-
get fallback() {
|
|
16342
|
-
return createComponent(LoadingSpinner, {});
|
|
16517
|
+
return !editing();
|
|
16343
16518
|
},
|
|
16344
16519
|
get children() {
|
|
16345
|
-
return createComponent(
|
|
16346
|
-
|
|
16347
|
-
|
|
16348
|
-
},
|
|
16349
|
-
onChanged: changed
|
|
16520
|
+
return createComponent(PageTitle, {
|
|
16521
|
+
subtitle: "Timed emails for people who stopped short of a subscription",
|
|
16522
|
+
children: "Sequences"
|
|
16350
16523
|
});
|
|
16351
16524
|
}
|
|
16352
16525
|
}), null);
|
|
16353
|
-
insert(_el$
|
|
16526
|
+
insert(_el$90, createComponent(Show, {
|
|
16354
16527
|
get when() {
|
|
16355
16528
|
return editing();
|
|
16356
16529
|
},
|
|
16357
16530
|
get fallback() {
|
|
16358
16531
|
return (() => {
|
|
16359
|
-
var _el$
|
|
16360
|
-
_el$
|
|
16361
|
-
insert(_el$
|
|
16532
|
+
var _el$91 = _tmpl$3310(), _el$92 = _el$91.firstChild, _el$93 = _el$92.firstChild, _el$94 = _el$93.nextSibling;
|
|
16533
|
+
_el$94.$$click = () => setEditing(blankSequence());
|
|
16534
|
+
insert(_el$91, createComponent(Show, {
|
|
16362
16535
|
get when() {
|
|
16363
16536
|
return list();
|
|
16364
16537
|
},
|
|
@@ -16376,44 +16549,52 @@ function Sequences() {
|
|
|
16376
16549
|
});
|
|
16377
16550
|
},
|
|
16378
16551
|
get children() {
|
|
16379
|
-
var _el$
|
|
16380
|
-
insert(_el$
|
|
16552
|
+
var _el$95 = _tmpl$3210(), _el$96 = _el$95.firstChild, _el$97 = _el$96.nextSibling;
|
|
16553
|
+
insert(_el$97, createComponent(For, {
|
|
16381
16554
|
get each() {
|
|
16382
16555
|
return list().sequences;
|
|
16383
16556
|
},
|
|
16384
16557
|
children: (s) => (() => {
|
|
16385
|
-
var _el$
|
|
16386
|
-
_el$
|
|
16387
|
-
insert(_el$
|
|
16388
|
-
insert(_el$
|
|
16558
|
+
var _el$98 = _tmpl$356(), _el$99 = _el$98.firstChild, _el$100 = _el$99.firstChild, _el$102 = _el$99.nextSibling, _el$103 = _el$102.nextSibling, _el$104 = _el$103.nextSibling, _el$105 = _el$104.nextSibling, _el$106 = _el$105.nextSibling, _el$107 = _el$106.nextSibling, _el$108 = _el$107.nextSibling, _el$109 = _el$108.nextSibling;
|
|
16559
|
+
_el$100.$$click = () => setEditing(s);
|
|
16560
|
+
insert(_el$100, () => s.name);
|
|
16561
|
+
insert(_el$99, createComponent(Show, {
|
|
16389
16562
|
get when() {
|
|
16390
16563
|
return s.description;
|
|
16391
16564
|
},
|
|
16392
16565
|
get children() {
|
|
16393
|
-
var _el$
|
|
16394
|
-
insert(_el$
|
|
16395
|
-
return _el$
|
|
16566
|
+
var _el$101 = _tmpl$3410();
|
|
16567
|
+
insert(_el$101, () => s.description);
|
|
16568
|
+
return _el$101;
|
|
16396
16569
|
}
|
|
16397
16570
|
}), null);
|
|
16398
|
-
insert(_el$
|
|
16399
|
-
insert(_el$
|
|
16400
|
-
var _c$
|
|
16401
|
-
return () => _c$
|
|
16571
|
+
insert(_el$102, () => s.steps.length);
|
|
16572
|
+
insert(_el$103, (() => {
|
|
16573
|
+
var _c$4 = memo(() => s.feedSegments.length > 0);
|
|
16574
|
+
return () => _c$4() ? `${s.feedSegments.length} segment${s.feedSegments.length === 1 ? "" : "s"}, \u2264${s.feedMaxAgeDays}d` : _tmpl$363();
|
|
16402
16575
|
})());
|
|
16403
|
-
insert(_el$
|
|
16404
|
-
insert(_el$
|
|
16405
|
-
insert(_el$
|
|
16406
|
-
|
|
16407
|
-
|
|
16408
|
-
|
|
16576
|
+
insert(_el$104, () => s.autoSend ? "Automatic" : "Review");
|
|
16577
|
+
insert(_el$105, () => s.stats.active);
|
|
16578
|
+
insert(_el$106, (() => {
|
|
16579
|
+
var _c$5 = memo(() => dueFor(s.id) > 0);
|
|
16580
|
+
return () => _c$5() ? (() => {
|
|
16581
|
+
var _el$111 = _tmpl$372();
|
|
16582
|
+
insert(_el$111, () => dueFor(s.id));
|
|
16583
|
+
return _el$111;
|
|
16584
|
+
})() : _tmpl$382();
|
|
16585
|
+
})());
|
|
16586
|
+
insert(_el$107, () => s.stats.sent);
|
|
16587
|
+
insert(_el$108, () => s.stats.boughtAfterEnroll);
|
|
16588
|
+
insert(_el$109, () => s.stats.unsubscribed);
|
|
16589
|
+
return _el$98;
|
|
16409
16590
|
})()
|
|
16410
16591
|
}));
|
|
16411
|
-
return _el$
|
|
16592
|
+
return _el$95;
|
|
16412
16593
|
}
|
|
16413
16594
|
});
|
|
16414
16595
|
}
|
|
16415
16596
|
}), null);
|
|
16416
|
-
return _el$
|
|
16597
|
+
return _el$91;
|
|
16417
16598
|
})();
|
|
16418
16599
|
},
|
|
16419
16600
|
children: (seq) => createComponent(SequenceEditor, {
|
|
@@ -16431,15 +16612,15 @@ function Sequences() {
|
|
|
16431
16612
|
onChanged: changed
|
|
16432
16613
|
})
|
|
16433
16614
|
}), null);
|
|
16434
|
-
return _el$
|
|
16615
|
+
return _el$90;
|
|
16435
16616
|
})();
|
|
16436
16617
|
}
|
|
16437
16618
|
delegateEvents(["click", "input"]);
|
|
16438
16619
|
|
|
16439
16620
|
// src/pages/admin/Funnel.tsx
|
|
16440
|
-
var _tmpl$
|
|
16441
|
-
var _tmpl$
|
|
16442
|
-
var _tmpl$
|
|
16621
|
+
var _tmpl$290 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;color:var(--app-admin-fg-muted);margin:0.25rem 0 0">`);
|
|
16622
|
+
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>`);
|
|
16623
|
+
var _tmpl$357 = /* @__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
16624
|
var _tmpl$443 = /* @__PURE__ */ template(`<th>Account`);
|
|
16444
16625
|
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 <!>.`);
|
|
16445
16626
|
var _tmpl$636 = /* @__PURE__ */ template(`<div class=app-admin-card style=margin-top:1.25rem;overflow:hidden><div style="padding:1rem 1.25rem;display:grid;gap:0.5rem"></div><div style="padding:0.5rem 1.25rem 0.75rem;border-top:1px solid var(--app-admin-border-soft)"></div><table class=app-admin-table><thead><tr><th style=width:2rem><input type=checkbox aria-label="Select all"></th><th>Person</th><th>Where they stopped</th><th>Since</th></tr></thead><tbody>`);
|
|
@@ -16458,14 +16639,14 @@ var _tmpl$1614 = /* @__PURE__ */ template(`<span style=font-size:0.6875rem;color
|
|
|
16458
16639
|
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
16640
|
function CardHeader(props) {
|
|
16460
16641
|
return (() => {
|
|
16461
|
-
var _el$ = _tmpl$
|
|
16642
|
+
var _el$ = _tmpl$291(), _el$2 = _el$.firstChild;
|
|
16462
16643
|
insert(_el$2, () => props.title);
|
|
16463
16644
|
insert(_el$, createComponent(Show, {
|
|
16464
16645
|
get when() {
|
|
16465
16646
|
return props.note;
|
|
16466
16647
|
},
|
|
16467
16648
|
get children() {
|
|
16468
|
-
var _el$3 = _tmpl$
|
|
16649
|
+
var _el$3 = _tmpl$290();
|
|
16469
16650
|
insert(_el$3, () => props.note);
|
|
16470
16651
|
return _el$3;
|
|
16471
16652
|
}
|
|
@@ -16551,7 +16732,7 @@ function SegmentSection(props) {
|
|
|
16551
16732
|
return hasSavings();
|
|
16552
16733
|
},
|
|
16553
16734
|
get children() {
|
|
16554
|
-
var _el$6 = _tmpl$
|
|
16735
|
+
var _el$6 = _tmpl$357(), _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$0 = _el$8.nextSibling; _el$0.nextSibling;
|
|
16555
16736
|
_el$7.addEventListener("change", (e) => setSavingsOnly(e.currentTarget.checked));
|
|
16556
16737
|
insert(_el$6, () => props.summary.savingsMembers, _el$0);
|
|
16557
16738
|
effect(() => _el$7.checked = savingsOnly());
|
|
@@ -16795,9 +16976,9 @@ function Funnel() {
|
|
|
16795
16976
|
})();
|
|
16796
16977
|
}
|
|
16797
16978
|
delegateEvents(["click"]);
|
|
16798
|
-
var _tmpl$
|
|
16799
|
-
var _tmpl$
|
|
16800
|
-
var _tmpl$
|
|
16979
|
+
var _tmpl$296 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;margin:0.25rem 0 0">`);
|
|
16980
|
+
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">`);
|
|
16981
|
+
var _tmpl$358 = /* @__PURE__ */ template(`<label style=display:flex;align-items:center;gap:0.5rem;font-size:0.875rem;cursor:pointer><input type=checkbox>`);
|
|
16801
16982
|
var _tmpl$444 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm">`);
|
|
16802
16983
|
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`);
|
|
16803
16984
|
var _tmpl$637 = /* @__PURE__ */ template(`<div><div style=margin-bottom:0.375rem>Send a copy for</div><div style="display:grid;grid-template-columns:repeat(auto-fill, minmax(14rem, 1fr));gap:0.375rem 1rem">`);
|
|
@@ -16816,14 +16997,14 @@ var label2 = {
|
|
|
16816
16997
|
};
|
|
16817
16998
|
function Card(props) {
|
|
16818
16999
|
return (() => {
|
|
16819
|
-
var _el$ = _tmpl$
|
|
17000
|
+
var _el$ = _tmpl$297(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$6 = _el$2.nextSibling;
|
|
16820
17001
|
insert(_el$4, () => props.title);
|
|
16821
17002
|
insert(_el$3, createComponent(Show, {
|
|
16822
17003
|
get when() {
|
|
16823
17004
|
return props.note;
|
|
16824
17005
|
},
|
|
16825
17006
|
get children() {
|
|
16826
|
-
var _el$5 = _tmpl$
|
|
17007
|
+
var _el$5 = _tmpl$296();
|
|
16827
17008
|
insert(_el$5, () => props.note);
|
|
16828
17009
|
effect((_$p) => style(_el$5, {
|
|
16829
17010
|
...label2
|
|
@@ -16838,7 +17019,7 @@ function Card(props) {
|
|
|
16838
17019
|
}
|
|
16839
17020
|
function Toggle(props) {
|
|
16840
17021
|
return (() => {
|
|
16841
|
-
var _el$7 = _tmpl$
|
|
17022
|
+
var _el$7 = _tmpl$358(), _el$8 = _el$7.firstChild;
|
|
16842
17023
|
_el$8.addEventListener("change", (e) => props.onChange(e.currentTarget.checked));
|
|
16843
17024
|
insert(_el$7, () => props.label, null);
|
|
16844
17025
|
effect(() => _el$8.checked = props.checked);
|
|
@@ -17146,9 +17327,9 @@ function EmailNotifications() {
|
|
|
17146
17327
|
delegateEvents(["click", "input", "keydown"]);
|
|
17147
17328
|
|
|
17148
17329
|
// src/pages/AdminDashboard.tsx
|
|
17149
|
-
var _tmpl$
|
|
17150
|
-
var _tmpl$
|
|
17151
|
-
var _tmpl$
|
|
17330
|
+
var _tmpl$298 = /* @__PURE__ */ template(`<span style=font-size:1rem;opacity:0.7;flex-shrink:0>`);
|
|
17331
|
+
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">`);
|
|
17332
|
+
var _tmpl$359 = /* @__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
17333
|
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
17334
|
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`);
|
|
17154
17335
|
var _tmpl$638 = /* @__PURE__ */ template(`<div class=app-admin-root style=display:flex;align-items:center;justify-content:center;position:sticky;background:var(--app-admin-bg)><div role=status aria-label="Loading admin"style="width:1.75rem;height:1.75rem;border-radius:9999px;border:2px solid var(--app-admin-border);border-top-color:var(--app-admin-primary);animation:app-admin-gate-spin 0.8s linear infinite"></div><style>@keyframes app-admin-gate-spin { to { transform: rotate(360deg); } }`);
|
|
@@ -17261,14 +17442,14 @@ function AdminDashboard(props) {
|
|
|
17261
17442
|
};
|
|
17262
17443
|
const topOffset = () => props.topOffset ?? "0px";
|
|
17263
17444
|
const TabButton = (btnProps) => (() => {
|
|
17264
|
-
var _el$ = _tmpl$
|
|
17445
|
+
var _el$ = _tmpl$299();
|
|
17265
17446
|
_el$.$$click = () => handleTabClick(btnProps.tab);
|
|
17266
17447
|
insert(_el$, createComponent(Show, {
|
|
17267
17448
|
get when() {
|
|
17268
17449
|
return props.tabIcons?.[btnProps.tab];
|
|
17269
17450
|
},
|
|
17270
17451
|
get children() {
|
|
17271
|
-
var _el$2 = _tmpl$
|
|
17452
|
+
var _el$2 = _tmpl$298();
|
|
17272
17453
|
effect(() => className(_el$2, props.tabIcons[btnProps.tab]));
|
|
17273
17454
|
return _el$2;
|
|
17274
17455
|
}
|
|
@@ -17300,7 +17481,7 @@ function AdminDashboard(props) {
|
|
|
17300
17481
|
return createComponent(AdminNavContext.Provider, {
|
|
17301
17482
|
value: adminNav,
|
|
17302
17483
|
get children() {
|
|
17303
|
-
var _el$3 = _tmpl$
|
|
17484
|
+
var _el$3 = _tmpl$359(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.nextSibling, _el$7 = _el$4.nextSibling, _el$8 = _el$7.nextSibling, _el$9 = _el$8.firstChild, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$8.nextSibling;
|
|
17304
17485
|
_el$5.$$click = () => setDrawerOpen(true);
|
|
17305
17486
|
insert(_el$6, () => TAB_LABELS[currentTab()]);
|
|
17306
17487
|
_el$7.$$click = () => setDrawerOpen(false);
|
|
@@ -17547,9 +17728,9 @@ function AdminGateSpinner(props) {
|
|
|
17547
17728
|
})();
|
|
17548
17729
|
}
|
|
17549
17730
|
delegateEvents(["click"]);
|
|
17550
|
-
var _tmpl$
|
|
17551
|
-
var _tmpl$
|
|
17552
|
-
var _tmpl$
|
|
17731
|
+
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`);
|
|
17732
|
+
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`);
|
|
17733
|
+
var _tmpl$360 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>Could not load this customer's dashboard.`);
|
|
17553
17734
|
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
17735
|
var _tmpl$541 = /* @__PURE__ */ template(`<div><h3>Subscription`);
|
|
17555
17736
|
var _tmpl$639 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:0.5rem>`);
|
|
@@ -17571,7 +17752,7 @@ function PatientDashboardPreview(props) {
|
|
|
17571
17752
|
authToken: () => props.token
|
|
17572
17753
|
});
|
|
17573
17754
|
return (() => {
|
|
17574
|
-
var _el$ = _tmpl$
|
|
17755
|
+
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
17756
|
_el$.$$click = (e) => {
|
|
17576
17757
|
if (e.target === e.currentTarget) props.onClose();
|
|
17577
17758
|
};
|
|
@@ -17583,7 +17764,7 @@ function PatientDashboardPreview(props) {
|
|
|
17583
17764
|
},
|
|
17584
17765
|
keyed: true,
|
|
17585
17766
|
children: (msg) => (() => {
|
|
17586
|
-
var _el$1 = _tmpl$
|
|
17767
|
+
var _el$1 = _tmpl$2100(), _el$10 = _el$1.firstChild, _el$11 = _el$10.nextSibling;
|
|
17587
17768
|
insert(_el$10, msg);
|
|
17588
17769
|
_el$11.$$click = () => data.retry();
|
|
17589
17770
|
return _el$1;
|
|
@@ -17602,7 +17783,7 @@ function PatientDashboardPreview(props) {
|
|
|
17602
17783
|
return data.profile();
|
|
17603
17784
|
},
|
|
17604
17785
|
get fallback() {
|
|
17605
|
-
return _tmpl$
|
|
17786
|
+
return _tmpl$360();
|
|
17606
17787
|
},
|
|
17607
17788
|
children: (profile) => [(() => {
|
|
17608
17789
|
var _el$13 = _tmpl$446(), _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$16.nextSibling;
|
|
@@ -17761,9 +17942,9 @@ function PatientDashboardPreview(props) {
|
|
|
17761
17942
|
})();
|
|
17762
17943
|
}
|
|
17763
17944
|
delegateEvents(["click"]);
|
|
17764
|
-
var _tmpl$
|
|
17765
|
-
var _tmpl$
|
|
17766
|
-
var _tmpl$
|
|
17945
|
+
var _tmpl$301 = /* @__PURE__ */ template(`<div style=margin-bottom:1rem>`);
|
|
17946
|
+
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>`);
|
|
17947
|
+
var _tmpl$361 = /* @__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
17948
|
var LIVE = /* @__PURE__ */ new Set(["active", "paused", "past_due"]);
|
|
17768
17949
|
function UpdatePaymentMethod(props) {
|
|
17769
17950
|
const {
|
|
@@ -17793,7 +17974,7 @@ function UpdatePaymentMethod(props) {
|
|
|
17793
17974
|
if (ok) props.onDone();
|
|
17794
17975
|
}
|
|
17795
17976
|
return (() => {
|
|
17796
|
-
var _el$ = _tmpl$
|
|
17977
|
+
var _el$ = _tmpl$361(), _el$2 = _el$.firstChild;
|
|
17797
17978
|
insert(_el$, createComponent(Heading, {
|
|
17798
17979
|
level: 1,
|
|
17799
17980
|
get children() {
|
|
@@ -17824,14 +18005,14 @@ function UpdatePaymentMethod(props) {
|
|
|
17824
18005
|
return memo(() => !!!resolving())() && !noSubscription();
|
|
17825
18006
|
},
|
|
17826
18007
|
get children() {
|
|
17827
|
-
var _el$3 = _tmpl$
|
|
18008
|
+
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
18009
|
_el$3.addEventListener("submit", handleSubmit);
|
|
17829
18010
|
insert(_el$3, createComponent(Show, {
|
|
17830
18011
|
get when() {
|
|
17831
18012
|
return flow.error();
|
|
17832
18013
|
},
|
|
17833
18014
|
get children() {
|
|
17834
|
-
var _el$4 = _tmpl$
|
|
18015
|
+
var _el$4 = _tmpl$301();
|
|
17835
18016
|
insert(_el$4, createComponent(Banner, {
|
|
17836
18017
|
variant: "error",
|
|
17837
18018
|
get children() {
|
|
@@ -17909,9 +18090,9 @@ function UpdatePaymentMethod(props) {
|
|
|
17909
18090
|
return _el$;
|
|
17910
18091
|
})();
|
|
17911
18092
|
}
|
|
17912
|
-
var _tmpl$
|
|
17913
|
-
var _tmpl$
|
|
17914
|
-
var _tmpl$
|
|
18093
|
+
var _tmpl$306 = /* @__PURE__ */ template(`<a class=ship__track target=_blank rel="noopener noreferrer">Track<!> \u2197`);
|
|
18094
|
+
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>`);
|
|
18095
|
+
var _tmpl$364 = /* @__PURE__ */ template(`<span class=refill__cycle>Day <!> of `);
|
|
17915
18096
|
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
18097
|
var _tmpl$542 = /* @__PURE__ */ template(`<span class=refill__cycle>Preparing your next fill`);
|
|
17917
18098
|
var _tmpl$640 = /* @__PURE__ */ template(`<div><span class=refill__dot aria-hidden=true></span><span class="lab-label refill__label"></span><span class=refill__date></span><span class=refill__rel>`);
|
|
@@ -17946,7 +18127,7 @@ function TrackingChip(props) {
|
|
|
17946
18127
|
}
|
|
17947
18128
|
};
|
|
17948
18129
|
return (() => {
|
|
17949
|
-
var _el$ = _tmpl$
|
|
18130
|
+
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
18131
|
insert(_el$2, () => props.eta);
|
|
17951
18132
|
_el$4.$$click = copy;
|
|
17952
18133
|
insert(_el$5, () => props.number);
|
|
@@ -17957,7 +18138,7 @@ function TrackingChip(props) {
|
|
|
17957
18138
|
return props.url;
|
|
17958
18139
|
},
|
|
17959
18140
|
get children() {
|
|
17960
|
-
var _el$8 = _tmpl$
|
|
18141
|
+
var _el$8 = _tmpl$306(), _el$9 = _el$8.firstChild, _el$1 = _el$9.nextSibling; _el$1.nextSibling;
|
|
17961
18142
|
insert(_el$8, (() => {
|
|
17962
18143
|
var _c$ = memo(() => !!props.carrier);
|
|
17963
18144
|
return () => _c$() ? ` with ${props.carrier}` : "";
|
|
@@ -17987,7 +18168,7 @@ function OrderTracker(props) {
|
|
|
17987
18168
|
return _tmpl$542();
|
|
17988
18169
|
},
|
|
17989
18170
|
get children() {
|
|
17990
|
-
var _el$14 = _tmpl$
|
|
18171
|
+
var _el$14 = _tmpl$364(), _el$15 = _el$14.firstChild, _el$17 = _el$15.nextSibling; _el$17.nextSibling;
|
|
17991
18172
|
insert(_el$14, () => r().cycleDay, _el$17);
|
|
17992
18173
|
insert(_el$14, () => r().cycleLength, null);
|
|
17993
18174
|
return _el$14;
|
|
@@ -18226,9 +18407,9 @@ function OrderTracker(props) {
|
|
|
18226
18407
|
});
|
|
18227
18408
|
}
|
|
18228
18409
|
delegateEvents(["click"]);
|
|
18229
|
-
var _tmpl$
|
|
18230
|
-
var _tmpl$
|
|
18231
|
-
var _tmpl$
|
|
18410
|
+
var _tmpl$307 = /* @__PURE__ */ template(`<span class=rx-row__dose> \xB7 `);
|
|
18411
|
+
var _tmpl$2103 = /* @__PURE__ */ template(`<div class=rx-row__body>`);
|
|
18412
|
+
var _tmpl$365 = /* @__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
18413
|
var STATUS_LABEL = {
|
|
18233
18414
|
pending: "Under review",
|
|
18234
18415
|
approved: "Approved",
|
|
@@ -18245,7 +18426,7 @@ function RxRow(props) {
|
|
|
18245
18426
|
return STATUS_LABEL[props.rx.status] ?? props.rx.status;
|
|
18246
18427
|
};
|
|
18247
18428
|
return (() => {
|
|
18248
|
-
var _el$ = _tmpl$
|
|
18429
|
+
var _el$ = _tmpl$365(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$6 = _el$3.nextSibling, _el$7 = _el$6.nextSibling;
|
|
18249
18430
|
_el$2.$$click = () => setOpen((v) => !v);
|
|
18250
18431
|
insert(_el$3, () => props.rx.drugName ?? "Medication", null);
|
|
18251
18432
|
insert(_el$3, createComponent(Show, {
|
|
@@ -18253,7 +18434,7 @@ function RxRow(props) {
|
|
|
18253
18434
|
return props.rx.dosage;
|
|
18254
18435
|
},
|
|
18255
18436
|
get children() {
|
|
18256
|
-
var _el$4 = _tmpl$
|
|
18437
|
+
var _el$4 = _tmpl$307(); _el$4.firstChild;
|
|
18257
18438
|
insert(_el$4, () => props.rx.dosage, null);
|
|
18258
18439
|
return _el$4;
|
|
18259
18440
|
}
|
|
@@ -18264,7 +18445,7 @@ function RxRow(props) {
|
|
|
18264
18445
|
return open();
|
|
18265
18446
|
},
|
|
18266
18447
|
get children() {
|
|
18267
|
-
var _el$8 = _tmpl$
|
|
18448
|
+
var _el$8 = _tmpl$2103();
|
|
18268
18449
|
insert(_el$8, createComponent(OrderTracker, {
|
|
18269
18450
|
get request() {
|
|
18270
18451
|
return props.request;
|
|
@@ -18307,9 +18488,9 @@ function RxRow(props) {
|
|
|
18307
18488
|
})();
|
|
18308
18489
|
}
|
|
18309
18490
|
delegateEvents(["click"]);
|
|
18310
|
-
var _tmpl$
|
|
18311
|
-
var _tmpl$
|
|
18312
|
-
var _tmpl$
|
|
18491
|
+
var _tmpl$308 = /* @__PURE__ */ template(`<div class=plan data-testid=plan-billing><span class=lab-label>Plan & billing`);
|
|
18492
|
+
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`);
|
|
18493
|
+
var _tmpl$366 = /* @__PURE__ */ template(`<p class=membership__dose>`);
|
|
18313
18494
|
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
18495
|
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`);
|
|
18315
18496
|
var _tmpl$641 = /* @__PURE__ */ template(`<p class=plan__note>Question about billing? <button type=button class=plan__note-link>Message support`);
|
|
@@ -18362,14 +18543,14 @@ function PlanBilling(props) {
|
|
|
18362
18543
|
}
|
|
18363
18544
|
};
|
|
18364
18545
|
return (() => {
|
|
18365
|
-
var _el$ = _tmpl$
|
|
18546
|
+
var _el$ = _tmpl$308(); _el$.firstChild;
|
|
18366
18547
|
insert(_el$, createComponent(Show, {
|
|
18367
18548
|
get when() {
|
|
18368
18549
|
return primary();
|
|
18369
18550
|
},
|
|
18370
18551
|
get fallback() {
|
|
18371
18552
|
return (() => {
|
|
18372
|
-
var _el$3 = _tmpl$
|
|
18553
|
+
var _el$3 = _tmpl$2104(), _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.nextSibling;
|
|
18373
18554
|
effect(() => setAttribute(_el$6, "href", props.intakeHref));
|
|
18374
18555
|
return _el$3;
|
|
18375
18556
|
})();
|
|
@@ -18384,7 +18565,7 @@ function PlanBilling(props) {
|
|
|
18384
18565
|
return sub().dosage;
|
|
18385
18566
|
},
|
|
18386
18567
|
get children() {
|
|
18387
|
-
var _el$11 = _tmpl$
|
|
18568
|
+
var _el$11 = _tmpl$366();
|
|
18388
18569
|
insert(_el$11, () => sub().dosage);
|
|
18389
18570
|
return _el$11;
|
|
18390
18571
|
}
|
|
@@ -18486,9 +18667,9 @@ function PlanBilling(props) {
|
|
|
18486
18667
|
})();
|
|
18487
18668
|
}
|
|
18488
18669
|
delegateEvents(["click"]);
|
|
18489
|
-
var _tmpl$
|
|
18490
|
-
var _tmpl$
|
|
18491
|
-
var _tmpl$
|
|
18670
|
+
var _tmpl$309 = /* @__PURE__ */ template(`<p class=account__empty>We don\u2019t have your details on file yet.`);
|
|
18671
|
+
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.`);
|
|
18672
|
+
var _tmpl$367 = /* @__PURE__ */ template(`<button type=button class="account__support-link account__support-btn">Messages`);
|
|
18492
18673
|
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
18674
|
var _tmpl$544 = /* @__PURE__ */ template(`<div class=account__field><dt class=lab-label></dt><dd>`);
|
|
18494
18675
|
var _tmpl$642 = /* @__PURE__ */ template(`<a class=account__support-link>`);
|
|
@@ -18549,7 +18730,7 @@ function AccountPanel(props) {
|
|
|
18549
18730
|
return fields().length === 0;
|
|
18550
18731
|
},
|
|
18551
18732
|
get children() {
|
|
18552
|
-
return _tmpl$
|
|
18733
|
+
return _tmpl$309();
|
|
18553
18734
|
}
|
|
18554
18735
|
}), _el$0);
|
|
18555
18736
|
insert(_el$, createComponent(Show, {
|
|
@@ -18557,7 +18738,7 @@ function AccountPanel(props) {
|
|
|
18557
18738
|
return props.messagingEnabled;
|
|
18558
18739
|
},
|
|
18559
18740
|
get children() {
|
|
18560
|
-
var _el$6 = _tmpl$
|
|
18741
|
+
var _el$6 = _tmpl$2105(), _el$7 = _el$6.firstChild, _el$9 = _el$7.nextSibling;
|
|
18561
18742
|
_el$9.$$click = () => props.onOpenMessages({
|
|
18562
18743
|
channel: "support",
|
|
18563
18744
|
category: "account"
|
|
@@ -18570,7 +18751,7 @@ function AccountPanel(props) {
|
|
|
18570
18751
|
return props.messagingEnabled;
|
|
18571
18752
|
},
|
|
18572
18753
|
get children() {
|
|
18573
|
-
var _el$1 = _tmpl$
|
|
18754
|
+
var _el$1 = _tmpl$367();
|
|
18574
18755
|
_el$1.$$click = () => props.onOpenMessages();
|
|
18575
18756
|
return _el$1;
|
|
18576
18757
|
}
|
|
@@ -18591,9 +18772,9 @@ function AccountPanel(props) {
|
|
|
18591
18772
|
})();
|
|
18592
18773
|
}
|
|
18593
18774
|
delegateEvents(["click"]);
|
|
18594
|
-
var _tmpl$
|
|
18595
|
-
var _tmpl$
|
|
18596
|
-
var _tmpl$
|
|
18775
|
+
var _tmpl$368 = /* @__PURE__ */ template(`<section class="leaflet__section leaflet__section--caution"><h2 class=leaflet__h2>Birth control</h2><p class=leaflet__body>`);
|
|
18776
|
+
var _tmpl$2106 = /* @__PURE__ */ template(`<ul class=leaflet__disclaimers id=leaflet-disclaimers>`);
|
|
18777
|
+
var _tmpl$369 = /* @__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
18778
|
var _tmpl$450 = /* @__PURE__ */ template(`<li>`);
|
|
18598
18779
|
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
18780
|
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 +18798,7 @@ function MedicationGuide(props) {
|
|
|
18617
18798
|
return "upcoming";
|
|
18618
18799
|
};
|
|
18619
18800
|
return (() => {
|
|
18620
|
-
var _el$ = _tmpl$
|
|
18801
|
+
var _el$ = _tmpl$369(), _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
18802
|
insert(_el$4, () => props.guide.title);
|
|
18622
18803
|
insert(_el$5, () => props.guide.summary);
|
|
18623
18804
|
insert(_el$8, () => props.guide.boxedWarning);
|
|
@@ -18673,7 +18854,7 @@ function MedicationGuide(props) {
|
|
|
18673
18854
|
return props.guide.contraception;
|
|
18674
18855
|
},
|
|
18675
18856
|
get children() {
|
|
18676
|
-
var _el$24 = _tmpl$
|
|
18857
|
+
var _el$24 = _tmpl$368(), _el$25 = _el$24.firstChild, _el$26 = _el$25.nextSibling;
|
|
18677
18858
|
insert(_el$26, () => props.guide.contraception);
|
|
18678
18859
|
return _el$24;
|
|
18679
18860
|
}
|
|
@@ -18725,7 +18906,7 @@ function MedicationGuide(props) {
|
|
|
18725
18906
|
return showDisclaimers();
|
|
18726
18907
|
},
|
|
18727
18908
|
get children() {
|
|
18728
|
-
var _el$44 = _tmpl$
|
|
18909
|
+
var _el$44 = _tmpl$2106();
|
|
18729
18910
|
insert(_el$44, createComponent(For, {
|
|
18730
18911
|
get each() {
|
|
18731
18912
|
return props.guide.disclaimers;
|
|
@@ -18752,9 +18933,9 @@ function MedicationGuide(props) {
|
|
|
18752
18933
|
})();
|
|
18753
18934
|
}
|
|
18754
18935
|
delegateEvents(["click"]);
|
|
18755
|
-
var _tmpl$
|
|
18756
|
-
var _tmpl$
|
|
18757
|
-
var _tmpl$
|
|
18936
|
+
var _tmpl$370 = /* @__PURE__ */ template(`<span data-testid=channel-chip>`);
|
|
18937
|
+
var _tmpl$2107 = /* @__PURE__ */ template(`<span class=channel-chip__category>`);
|
|
18938
|
+
var _tmpl$371 = /* @__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
18939
|
var _tmpl$451 = /* @__PURE__ */ template(`<div class=msg-list__state><div class=request-status__spinner>`);
|
|
18759
18940
|
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
18941
|
var _tmpl$644 = /* @__PURE__ */ template(`<div class=msg-list__scroll data-scrollable>`);
|
|
@@ -18784,14 +18965,14 @@ var _tmpl$2711 = /* @__PURE__ */ template(`<div class="msg-thread msg-choice"dat
|
|
|
18784
18965
|
var _tmpl$2810 = /* @__PURE__ */ template(`<span class=msg-thread__status data-testid=thread-status-closed>Resolved`);
|
|
18785
18966
|
var _tmpl$2910 = /* @__PURE__ */ template(`<span class=msg-thread__status data-testid=thread-status-transferred>Moved to care team`);
|
|
18786
18967
|
var _tmpl$3010 = /* @__PURE__ */ template(`<div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label="Back to conversations"data-testid=messages-back><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><div><div class=msg-thread__title-row><h3 class=msg-thread__name></h3></div><p class=msg-thread__role>`);
|
|
18787
|
-
var _tmpl$
|
|
18788
|
-
var _tmpl$
|
|
18789
|
-
var _tmpl$
|
|
18790
|
-
var _tmpl$
|
|
18968
|
+
var _tmpl$3113 = /* @__PURE__ */ template(`<div class=msg-thread__banner><button type=button class=msg-thread__banner-link data-testid=continue-with-care-team>Continue with your care team`);
|
|
18969
|
+
var _tmpl$3211 = /* @__PURE__ */ template(`<div class=msg-thread__messages data-scrollable><div>`);
|
|
18970
|
+
var _tmpl$3311 = /* @__PURE__ */ template(`<span class=msg-compose__error role=alert>`);
|
|
18971
|
+
var _tmpl$3411 = /* @__PURE__ */ template(`<div class=msg-compose__staged>`);
|
|
18791
18972
|
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$
|
|
18793
|
-
var _tmpl$
|
|
18794
|
-
var _tmpl$
|
|
18973
|
+
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>`);
|
|
18974
|
+
var _tmpl$373 = /* @__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`);
|
|
18975
|
+
var _tmpl$383 = /* @__PURE__ */ template(`<div class=msg-panel__layout><div></div><div>`);
|
|
18795
18976
|
var _tmpl$392 = /* @__PURE__ */ template(`<div class=msg-panel data-testid=messages-panel>`);
|
|
18796
18977
|
var _tmpl$402 = /* @__PURE__ */ template(`<div class="msg-panel__layout msg-panel__layout--gate">`);
|
|
18797
18978
|
var _tmpl$4110 = /* @__PURE__ */ template(`<div class=msg-panel__placeholder data-testid=messages-placeholder><p>Select a conversation to read and reply.`);
|
|
@@ -18980,14 +19161,14 @@ function MessagesPanel(props) {
|
|
|
18980
19161
|
}
|
|
18981
19162
|
}
|
|
18982
19163
|
const ChannelChip = (p) => (() => {
|
|
18983
|
-
var _el$ = _tmpl$
|
|
19164
|
+
var _el$ = _tmpl$370();
|
|
18984
19165
|
insert(_el$, () => p.source === "clinical" ? "Care team" : "Support", null);
|
|
18985
19166
|
insert(_el$, createComponent(Show, {
|
|
18986
19167
|
get when() {
|
|
18987
19168
|
return memo(() => p.source === "support")() && categoryLabel(p.category);
|
|
18988
19169
|
},
|
|
18989
19170
|
children: (label3) => (() => {
|
|
18990
|
-
var _el$2 = _tmpl$
|
|
19171
|
+
var _el$2 = _tmpl$2107();
|
|
18991
19172
|
insert(_el$2, label3);
|
|
18992
19173
|
return _el$2;
|
|
18993
19174
|
})()
|
|
@@ -19005,7 +19186,7 @@ function MessagesPanel(props) {
|
|
|
19005
19186
|
})();
|
|
19006
19187
|
const channelConversations = () => thread().conversations().filter((c) => c.source === (channel() === "care" ? "clinical" : "support"));
|
|
19007
19188
|
const ConversationList = () => [(() => {
|
|
19008
|
-
var _el$3 = _tmpl$
|
|
19189
|
+
var _el$3 = _tmpl$371(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.nextSibling, _el$7 = _el$4.nextSibling;
|
|
19009
19190
|
_el$5.$$click = goToGate;
|
|
19010
19191
|
insert(_el$6, () => channel() === "care" ? "My care team" : "Support");
|
|
19011
19192
|
_el$7.$$click = openCompose;
|
|
@@ -19435,12 +19616,12 @@ function MessagesPanel(props) {
|
|
|
19435
19616
|
return memo(() => selectedConvo()?.source === "support")() && (selectedConvo()?.status === "closed" || selectedConvo()?.status === "transferred");
|
|
19436
19617
|
},
|
|
19437
19618
|
get children() {
|
|
19438
|
-
var _el$97 = _tmpl$
|
|
19619
|
+
var _el$97 = _tmpl$3113(), _el$98 = _el$97.firstChild;
|
|
19439
19620
|
_el$98.$$click = continueWithCareTeam;
|
|
19440
19621
|
return _el$97;
|
|
19441
19622
|
}
|
|
19442
19623
|
}), (() => {
|
|
19443
|
-
var _el$99 = _tmpl$
|
|
19624
|
+
var _el$99 = _tmpl$3211(), _el$101 = _el$99.firstChild;
|
|
19444
19625
|
insert(_el$99, createComponent(Show, {
|
|
19445
19626
|
get when() {
|
|
19446
19627
|
return thread().loadingMessages();
|
|
@@ -19465,13 +19646,13 @@ function MessagesPanel(props) {
|
|
|
19465
19646
|
return pendingFile() || attachError();
|
|
19466
19647
|
},
|
|
19467
19648
|
get children() {
|
|
19468
|
-
var _el$102 = _tmpl$
|
|
19649
|
+
var _el$102 = _tmpl$3411();
|
|
19469
19650
|
insert(_el$102, createComponent(Show, {
|
|
19470
19651
|
get when() {
|
|
19471
19652
|
return pendingFile();
|
|
19472
19653
|
},
|
|
19473
19654
|
children: (file) => (() => {
|
|
19474
|
-
var _el$111 = _tmpl$
|
|
19655
|
+
var _el$111 = _tmpl$373(), _el$112 = _el$111.firstChild, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling;
|
|
19475
19656
|
insert(_el$111, () => file().name, _el$113);
|
|
19476
19657
|
insert(_el$113, () => formatFileSize(file().size));
|
|
19477
19658
|
_el$114.$$click = () => setPendingFile(null);
|
|
@@ -19483,7 +19664,7 @@ function MessagesPanel(props) {
|
|
|
19483
19664
|
return attachError();
|
|
19484
19665
|
},
|
|
19485
19666
|
get children() {
|
|
19486
|
-
var _el$103 = _tmpl$
|
|
19667
|
+
var _el$103 = _tmpl$3311();
|
|
19487
19668
|
insert(_el$103, attachError);
|
|
19488
19669
|
return _el$103;
|
|
19489
19670
|
}
|
|
@@ -19495,7 +19676,7 @@ function MessagesPanel(props) {
|
|
|
19495
19676
|
return !(selectedConvo()?.source === "support" && selectedConvo()?.status === "transferred");
|
|
19496
19677
|
},
|
|
19497
19678
|
get children() {
|
|
19498
|
-
var _el$104 = _tmpl$
|
|
19679
|
+
var _el$104 = _tmpl$3610(), _el$109 = _el$104.firstChild, _el$110 = _el$109.nextSibling;
|
|
19499
19680
|
insert(_el$104, createComponent(Show, {
|
|
19500
19681
|
get when() {
|
|
19501
19682
|
return thread().selectedSource() === "support";
|
|
@@ -19532,7 +19713,7 @@ function MessagesPanel(props) {
|
|
|
19532
19713
|
})();
|
|
19533
19714
|
},
|
|
19534
19715
|
get children() {
|
|
19535
|
-
var _el$116 = _tmpl$
|
|
19716
|
+
var _el$116 = _tmpl$383(), _el$117 = _el$116.firstChild, _el$118 = _el$117.nextSibling;
|
|
19536
19717
|
insert(_el$117, createComponent(ConversationList, {}));
|
|
19537
19718
|
insert(_el$118, createComponent(Show, {
|
|
19538
19719
|
get when() {
|
|
@@ -19601,9 +19782,9 @@ function MessagesPanel(props) {
|
|
|
19601
19782
|
})();
|
|
19602
19783
|
}
|
|
19603
19784
|
delegateEvents(["click", "input", "keydown"]);
|
|
19604
|
-
var _tmpl$
|
|
19605
|
-
var _tmpl$
|
|
19606
|
-
var _tmpl$
|
|
19785
|
+
var _tmpl$374 = /* @__PURE__ */ template(`<ul class=history-list data-testid=history-list>`);
|
|
19786
|
+
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.`);
|
|
19787
|
+
var _tmpl$375 = /* @__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
19788
|
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
19789
|
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
19790
|
var _tmpl$645 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your answers\u2026`);
|
|
@@ -19640,7 +19821,7 @@ function SurveyHistory() {
|
|
|
19640
19821
|
return !list.error;
|
|
19641
19822
|
},
|
|
19642
19823
|
get fallback() {
|
|
19643
|
-
return _tmpl$
|
|
19824
|
+
return _tmpl$2108();
|
|
19644
19825
|
},
|
|
19645
19826
|
get children() {
|
|
19646
19827
|
return createComponent(Show, {
|
|
@@ -19648,10 +19829,10 @@ function SurveyHistory() {
|
|
|
19648
19829
|
return (list() ?? []).length > 0;
|
|
19649
19830
|
},
|
|
19650
19831
|
get fallback() {
|
|
19651
|
-
return _tmpl$
|
|
19832
|
+
return _tmpl$375();
|
|
19652
19833
|
},
|
|
19653
19834
|
get children() {
|
|
19654
|
-
var _el$ = _tmpl$
|
|
19835
|
+
var _el$ = _tmpl$374();
|
|
19655
19836
|
insert(_el$, createComponent(For, {
|
|
19656
19837
|
get each() {
|
|
19657
19838
|
return list();
|
|
@@ -19748,9 +19929,9 @@ function SurveyHistory() {
|
|
|
19748
19929
|
delegateEvents(["click"]);
|
|
19749
19930
|
|
|
19750
19931
|
// src/pages/MemberPortal.tsx
|
|
19751
|
-
var _tmpl$
|
|
19752
|
-
var _tmpl$
|
|
19753
|
-
var _tmpl$
|
|
19932
|
+
var _tmpl$376 = /* @__PURE__ */ template(`<span class=portal-item__live aria-label="In progress">`);
|
|
19933
|
+
var _tmpl$2109 = /* @__PURE__ */ template(`<span>`);
|
|
19934
|
+
var _tmpl$377 = /* @__PURE__ */ template(`<button type=button><i aria-hidden=true></i><span class=portal-item__label>`);
|
|
19754
19935
|
var _tmpl$453 = /* @__PURE__ */ template(`<div class=rx-others data-testid=rx-others><span class=lab-label>Other orders`);
|
|
19755
19936
|
var _tmpl$548 = /* @__PURE__ */ template(`<div class=rx-stack>`);
|
|
19756
19937
|
var _tmpl$646 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your portal\u2026`);
|
|
@@ -19882,7 +20063,7 @@ function MemberPortal(props) {
|
|
|
19882
20063
|
return tabs();
|
|
19883
20064
|
},
|
|
19884
20065
|
children: (item) => (() => {
|
|
19885
|
-
var _el$ = _tmpl$
|
|
20066
|
+
var _el$ = _tmpl$377(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
19886
20067
|
_el$.$$click = () => selectTab(item.key);
|
|
19887
20068
|
insert(_el$3, () => item.label);
|
|
19888
20069
|
insert(_el$, createComponent(Show, {
|
|
@@ -19890,7 +20071,7 @@ function MemberPortal(props) {
|
|
|
19890
20071
|
return memo(() => item.key === "tracker")() && inMotion();
|
|
19891
20072
|
},
|
|
19892
20073
|
get children() {
|
|
19893
|
-
return _tmpl$
|
|
20074
|
+
return _tmpl$376();
|
|
19894
20075
|
}
|
|
19895
20076
|
}), null);
|
|
19896
20077
|
insert(_el$, createComponent(Show, {
|
|
@@ -19898,7 +20079,7 @@ function MemberPortal(props) {
|
|
|
19898
20079
|
return memo(() => item.key === "messages")() && unreadTotal() > 0;
|
|
19899
20080
|
},
|
|
19900
20081
|
get children() {
|
|
19901
|
-
var _el$5 = _tmpl$
|
|
20082
|
+
var _el$5 = _tmpl$2109();
|
|
19902
20083
|
insert(_el$5, (() => {
|
|
19903
20084
|
var _c$ = memo(() => unreadTotal() > 99);
|
|
19904
20085
|
return () => _c$() ? "99+" : unreadTotal();
|
|
@@ -20206,9 +20387,9 @@ function MemberPortal(props) {
|
|
|
20206
20387
|
})();
|
|
20207
20388
|
}
|
|
20208
20389
|
delegateEvents(["click"]);
|
|
20209
|
-
var _tmpl$
|
|
20210
|
-
var _tmpl$
|
|
20211
|
-
var _tmpl$
|
|
20390
|
+
var _tmpl$378 = /* @__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.`);
|
|
20391
|
+
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`);
|
|
20392
|
+
var _tmpl$379 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Loading stats\u2026`);
|
|
20212
20393
|
var _tmpl$454 = /* @__PURE__ */ template(`<div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));gap:1rem">`);
|
|
20213
20394
|
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
20395
|
function formatMoney(cents) {
|
|
@@ -20243,13 +20424,13 @@ function AffiliateOverview() {
|
|
|
20243
20424
|
value: `${(s.conversionRate * 100).toFixed(1)}%`
|
|
20244
20425
|
}];
|
|
20245
20426
|
return (() => {
|
|
20246
|
-
var _el$ = _tmpl$
|
|
20427
|
+
var _el$ = _tmpl$2117(); _el$.firstChild;
|
|
20247
20428
|
insert(_el$, createComponent(Show, {
|
|
20248
20429
|
get when() {
|
|
20249
20430
|
return isPending();
|
|
20250
20431
|
},
|
|
20251
20432
|
get children() {
|
|
20252
|
-
return _tmpl$
|
|
20433
|
+
return _tmpl$378();
|
|
20253
20434
|
}
|
|
20254
20435
|
}), null);
|
|
20255
20436
|
insert(_el$, createComponent(Show, {
|
|
@@ -20257,7 +20438,7 @@ function AffiliateOverview() {
|
|
|
20257
20438
|
return stats();
|
|
20258
20439
|
},
|
|
20259
20440
|
get fallback() {
|
|
20260
|
-
return _tmpl$
|
|
20441
|
+
return _tmpl$379();
|
|
20261
20442
|
},
|
|
20262
20443
|
children: (s) => (() => {
|
|
20263
20444
|
var _el$5 = _tmpl$454();
|
|
@@ -20278,9 +20459,9 @@ function AffiliateOverview() {
|
|
|
20278
20459
|
return _el$;
|
|
20279
20460
|
})();
|
|
20280
20461
|
}
|
|
20281
|
-
var _tmpl$
|
|
20282
|
-
var _tmpl$
|
|
20283
|
-
var _tmpl$
|
|
20462
|
+
var _tmpl$380 = /* @__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>`);
|
|
20463
|
+
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`);
|
|
20464
|
+
var _tmpl$381 = /* @__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
20465
|
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
20466
|
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
20467
|
function formatMoney2(cents) {
|
|
@@ -20320,16 +20501,16 @@ function AffiliateConversions() {
|
|
|
20320
20501
|
limit: 100
|
|
20321
20502
|
});
|
|
20322
20503
|
return (() => {
|
|
20323
|
-
var _el$ = _tmpl$
|
|
20504
|
+
var _el$ = _tmpl$2118(); _el$.firstChild;
|
|
20324
20505
|
insert(_el$, createComponent(Show, {
|
|
20325
20506
|
get when() {
|
|
20326
20507
|
return (conversions() ?? []).length > 0;
|
|
20327
20508
|
},
|
|
20328
20509
|
get fallback() {
|
|
20329
|
-
return _tmpl$
|
|
20510
|
+
return _tmpl$381();
|
|
20330
20511
|
},
|
|
20331
20512
|
get children() {
|
|
20332
|
-
var _el$3 = _tmpl$
|
|
20513
|
+
var _el$3 = _tmpl$380(), _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
20514
|
insert(_el$10, createComponent(For, {
|
|
20334
20515
|
get each() {
|
|
20335
20516
|
return conversions();
|
|
@@ -20411,9 +20592,9 @@ function td() {
|
|
|
20411
20592
|
color: "var(--app-affiliate-fg)"
|
|
20412
20593
|
};
|
|
20413
20594
|
}
|
|
20414
|
-
var _tmpl$
|
|
20415
|
-
var _tmpl$
|
|
20416
|
-
var _tmpl$
|
|
20595
|
+
var _tmpl$384 = /* @__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>`);
|
|
20596
|
+
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.`);
|
|
20597
|
+
var _tmpl$385 = /* @__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
20598
|
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
20599
|
function formatDate4(iso) {
|
|
20419
20600
|
const d = new Date(iso);
|
|
@@ -20447,16 +20628,16 @@ function AffiliateDownline() {
|
|
|
20447
20628
|
downline
|
|
20448
20629
|
} = useAffiliateDownline();
|
|
20449
20630
|
return (() => {
|
|
20450
|
-
var _el$ = _tmpl$
|
|
20631
|
+
var _el$ = _tmpl$2119(), _el$2 = _el$.firstChild; _el$2.nextSibling;
|
|
20451
20632
|
insert(_el$, createComponent(Show, {
|
|
20452
20633
|
get when() {
|
|
20453
20634
|
return (downline() ?? []).length > 0;
|
|
20454
20635
|
},
|
|
20455
20636
|
get fallback() {
|
|
20456
|
-
return _tmpl$
|
|
20637
|
+
return _tmpl$385();
|
|
20457
20638
|
},
|
|
20458
20639
|
get children() {
|
|
20459
|
-
var _el$4 = _tmpl$
|
|
20640
|
+
var _el$4 = _tmpl$384(), _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
20641
|
insert(_el$10, createComponent(For, {
|
|
20461
20642
|
get each() {
|
|
20462
20643
|
return downline();
|
|
@@ -20525,9 +20706,9 @@ function td2() {
|
|
|
20525
20706
|
color: "var(--app-affiliate-fg)"
|
|
20526
20707
|
};
|
|
20527
20708
|
}
|
|
20528
|
-
var _tmpl$
|
|
20529
|
-
var _tmpl$
|
|
20530
|
-
var _tmpl$
|
|
20709
|
+
var _tmpl$386 = /* @__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.`);
|
|
20710
|
+
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`);
|
|
20711
|
+
var _tmpl$387 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Your referral link will appear here once your account is approved.`);
|
|
20531
20712
|
function AffiliateReferralLink() {
|
|
20532
20713
|
const {
|
|
20533
20714
|
links
|
|
@@ -20552,16 +20733,16 @@ function AffiliateReferralLink() {
|
|
|
20552
20733
|
}
|
|
20553
20734
|
}
|
|
20554
20735
|
return (() => {
|
|
20555
|
-
var _el$ = _tmpl$
|
|
20736
|
+
var _el$ = _tmpl$2120(); _el$.firstChild;
|
|
20556
20737
|
insert(_el$, createComponent(Show, {
|
|
20557
20738
|
get when() {
|
|
20558
20739
|
return homepageLink();
|
|
20559
20740
|
},
|
|
20560
20741
|
get fallback() {
|
|
20561
|
-
return _tmpl$
|
|
20742
|
+
return _tmpl$387();
|
|
20562
20743
|
},
|
|
20563
20744
|
get children() {
|
|
20564
|
-
var _el$3 = _tmpl$
|
|
20745
|
+
var _el$3 = _tmpl$386(), _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling; _el$5.nextSibling;
|
|
20565
20746
|
insert(_el$6, homepageLink);
|
|
20566
20747
|
_el$7.$$click = copy;
|
|
20567
20748
|
insert(_el$7, () => copied() ? "Copied" : "Copy");
|
|
@@ -20572,9 +20753,9 @@ function AffiliateReferralLink() {
|
|
|
20572
20753
|
})();
|
|
20573
20754
|
}
|
|
20574
20755
|
delegateEvents(["click"]);
|
|
20575
|
-
var _tmpl$
|
|
20576
|
-
var _tmpl$
|
|
20577
|
-
var _tmpl$
|
|
20756
|
+
var _tmpl$388 = /* @__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.`);
|
|
20757
|
+
var _tmpl$2121 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Loading\u2026`);
|
|
20758
|
+
var _tmpl$389 = /* @__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
20759
|
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
20760
|
var STATUS_LABEL2 = {
|
|
20580
20761
|
pending: "Pending approval",
|
|
@@ -20610,16 +20791,16 @@ function AffiliateSettings() {
|
|
|
20610
20791
|
value: a.paymentEmail ?? "\u2014"
|
|
20611
20792
|
}];
|
|
20612
20793
|
return (() => {
|
|
20613
|
-
var _el$ = _tmpl$
|
|
20794
|
+
var _el$ = _tmpl$388(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild; _el$3.nextSibling;
|
|
20614
20795
|
insert(_el$, createComponent(Show, {
|
|
20615
20796
|
get when() {
|
|
20616
20797
|
return affiliate();
|
|
20617
20798
|
},
|
|
20618
20799
|
get fallback() {
|
|
20619
|
-
return _tmpl$
|
|
20800
|
+
return _tmpl$2121();
|
|
20620
20801
|
},
|
|
20621
20802
|
children: (a) => (() => {
|
|
20622
|
-
var _el$7 = _tmpl$
|
|
20803
|
+
var _el$7 = _tmpl$389();
|
|
20623
20804
|
insert(_el$7, createComponent(For, {
|
|
20624
20805
|
get each() {
|
|
20625
20806
|
return rows(a());
|
|
@@ -20641,9 +20822,9 @@ function AffiliateSettings() {
|
|
|
20641
20822
|
delegateEvents(["click"]);
|
|
20642
20823
|
|
|
20643
20824
|
// src/pages/AffiliatePortal.tsx
|
|
20644
|
-
var _tmpl$
|
|
20645
|
-
var _tmpl$
|
|
20646
|
-
var _tmpl$
|
|
20825
|
+
var _tmpl$390 = /* @__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>`);
|
|
20826
|
+
var _tmpl$2122 = /* @__PURE__ */ template(`<span style=font-size:1rem;opacity:0.7;flex-shrink:0>`);
|
|
20827
|
+
var _tmpl$391 = /* @__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
20828
|
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
20829
|
var TAB_LABELS2 = {
|
|
20649
20830
|
overview: "Overview",
|
|
@@ -20689,7 +20870,7 @@ function AffiliatePortal(props) {
|
|
|
20689
20870
|
});
|
|
20690
20871
|
},
|
|
20691
20872
|
get children() {
|
|
20692
|
-
var _el$ = _tmpl$
|
|
20873
|
+
var _el$ = _tmpl$390(), _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
20874
|
_el$3.$$click = () => setDrawerOpen(true);
|
|
20694
20875
|
insert(_el$4, () => TAB_LABELS2[currentTab()]);
|
|
20695
20876
|
_el$5.$$click = () => setDrawerOpen(false);
|
|
@@ -20698,14 +20879,14 @@ function AffiliatePortal(props) {
|
|
|
20698
20879
|
return orderedTabs();
|
|
20699
20880
|
},
|
|
20700
20881
|
children: (tab) => (() => {
|
|
20701
|
-
var _el$1 = _tmpl$
|
|
20882
|
+
var _el$1 = _tmpl$391();
|
|
20702
20883
|
_el$1.$$click = () => handleTabClick(tab);
|
|
20703
20884
|
insert(_el$1, createComponent(Show, {
|
|
20704
20885
|
get when() {
|
|
20705
20886
|
return props.tabIcons?.[tab];
|
|
20706
20887
|
},
|
|
20707
20888
|
get children() {
|
|
20708
|
-
var _el$10 = _tmpl$
|
|
20889
|
+
var _el$10 = _tmpl$2122();
|
|
20709
20890
|
effect(() => className(_el$10, props.tabIcons[tab]));
|
|
20710
20891
|
return _el$10;
|
|
20711
20892
|
}
|
|
@@ -20801,11 +20982,11 @@ function AffiliateGateSpinner(props) {
|
|
|
20801
20982
|
})();
|
|
20802
20983
|
}
|
|
20803
20984
|
delegateEvents(["click"]);
|
|
20804
|
-
var _tmpl$
|
|
20985
|
+
var _tmpl$393 = /* @__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
20986
|
function AffiliatePasswordInput(props) {
|
|
20806
20987
|
const [visible, setVisible] = createSignal(false);
|
|
20807
20988
|
return (() => {
|
|
20808
|
-
var _el$ = _tmpl$
|
|
20989
|
+
var _el$ = _tmpl$393(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
20809
20990
|
_el$2.$$input = (e) => props.onInput(e.currentTarget.value);
|
|
20810
20991
|
_el$3.$$click = () => setVisible((v) => !v);
|
|
20811
20992
|
insert(_el$3, () => visible() ? "Hide" : "Show");
|
|
@@ -20846,9 +21027,9 @@ function inputStyle() {
|
|
|
20846
21027
|
delegateEvents(["input", "click"]);
|
|
20847
21028
|
|
|
20848
21029
|
// src/pages/AffiliateRegister.tsx
|
|
20849
|
-
var _tmpl$
|
|
20850
|
-
var _tmpl$
|
|
20851
|
-
var _tmpl$
|
|
21030
|
+
var _tmpl$394 = /* @__PURE__ */ template(`<input type=text required autocomplete=given-name>`);
|
|
21031
|
+
var _tmpl$2123 = /* @__PURE__ */ template(`<input type=text required autocomplete=family-name>`);
|
|
21032
|
+
var _tmpl$395 = /* @__PURE__ */ template(`<input type=email required autocomplete=email>`);
|
|
20852
21033
|
var _tmpl$459 = /* @__PURE__ */ template(`<input type=text required minlength=4>`);
|
|
20853
21034
|
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
21035
|
var _tmpl$647 = /* @__PURE__ */ template(`<button type=button>Already have an account? Log in`);
|
|
@@ -20901,7 +21082,7 @@ function AffiliateRegister(props) {
|
|
|
20901
21082
|
insert(_el$6, createComponent(Row, {
|
|
20902
21083
|
label: "First name",
|
|
20903
21084
|
get children() {
|
|
20904
|
-
var _el$7 = _tmpl$
|
|
21085
|
+
var _el$7 = _tmpl$394();
|
|
20905
21086
|
_el$7.$$input = (e) => setFirstName(e.currentTarget.value);
|
|
20906
21087
|
effect((_$p) => style(_el$7, inputStyle2(), _$p));
|
|
20907
21088
|
effect(() => _el$7.value = firstName());
|
|
@@ -20911,7 +21092,7 @@ function AffiliateRegister(props) {
|
|
|
20911
21092
|
insert(_el$6, createComponent(Row, {
|
|
20912
21093
|
label: "Last name",
|
|
20913
21094
|
get children() {
|
|
20914
|
-
var _el$8 = _tmpl$
|
|
21095
|
+
var _el$8 = _tmpl$2123();
|
|
20915
21096
|
_el$8.$$input = (e) => setLastName(e.currentTarget.value);
|
|
20916
21097
|
effect((_$p) => style(_el$8, inputStyle2(), _$p));
|
|
20917
21098
|
effect(() => _el$8.value = lastName());
|
|
@@ -20921,7 +21102,7 @@ function AffiliateRegister(props) {
|
|
|
20921
21102
|
insert(_el$6, createComponent(Row, {
|
|
20922
21103
|
label: "Email",
|
|
20923
21104
|
get children() {
|
|
20924
|
-
var _el$9 = _tmpl$
|
|
21105
|
+
var _el$9 = _tmpl$395();
|
|
20925
21106
|
_el$9.$$input = (e) => setEmail(e.currentTarget.value);
|
|
20926
21107
|
effect((_$p) => style(_el$9, inputStyle2(), _$p));
|
|
20927
21108
|
effect(() => _el$9.value = email());
|
|
@@ -21040,9 +21221,9 @@ function linkStyle() {
|
|
|
21040
21221
|
};
|
|
21041
21222
|
}
|
|
21042
21223
|
delegateEvents(["input", "click"]);
|
|
21043
|
-
var _tmpl$
|
|
21044
|
-
var _tmpl$
|
|
21045
|
-
var _tmpl$
|
|
21224
|
+
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">`);
|
|
21225
|
+
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?`);
|
|
21226
|
+
var _tmpl$397 = /* @__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
21227
|
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
21228
|
function AffiliateLogin(props) {
|
|
21048
21229
|
const [email, setEmail] = createSignal("");
|
|
@@ -21079,7 +21260,7 @@ function AffiliateLogin(props) {
|
|
|
21079
21260
|
return error();
|
|
21080
21261
|
},
|
|
21081
21262
|
get children() {
|
|
21082
|
-
var _el$0 = _tmpl$
|
|
21263
|
+
var _el$0 = _tmpl$396();
|
|
21083
21264
|
insert(_el$0, error);
|
|
21084
21265
|
return _el$0;
|
|
21085
21266
|
}
|
|
@@ -21090,7 +21271,7 @@ function AffiliateLogin(props) {
|
|
|
21090
21271
|
return props.onNavigateForgotPassword;
|
|
21091
21272
|
},
|
|
21092
21273
|
get children() {
|
|
21093
|
-
var _el$10 = _tmpl$
|
|
21274
|
+
var _el$10 = _tmpl$2124();
|
|
21094
21275
|
_el$10.$$click = () => props.onNavigateForgotPassword?.();
|
|
21095
21276
|
return _el$10;
|
|
21096
21277
|
}
|
|
@@ -21100,7 +21281,7 @@ function AffiliateLogin(props) {
|
|
|
21100
21281
|
return props.onNavigateRegister;
|
|
21101
21282
|
},
|
|
21102
21283
|
get children() {
|
|
21103
|
-
var _el$11 = _tmpl$
|
|
21284
|
+
var _el$11 = _tmpl$397();
|
|
21104
21285
|
_el$11.$$click = () => props.onNavigateRegister?.();
|
|
21105
21286
|
return _el$11;
|
|
21106
21287
|
}
|
|
@@ -21148,9 +21329,9 @@ function inputStyle3() {
|
|
|
21148
21329
|
};
|
|
21149
21330
|
}
|
|
21150
21331
|
delegateEvents(["input", "click"]);
|
|
21151
|
-
var _tmpl$
|
|
21152
|
-
var _tmpl$
|
|
21153
|
-
var _tmpl$
|
|
21332
|
+
var _tmpl$398 = /* @__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">`);
|
|
21333
|
+
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">`);
|
|
21334
|
+
var _tmpl$399 = /* @__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
21335
|
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
21336
|
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
21337
|
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 +21357,7 @@ function ForgotPasswordPage(props) {
|
|
|
21176
21357
|
}
|
|
21177
21358
|
}
|
|
21178
21359
|
return (() => {
|
|
21179
|
-
var _el$ = _tmpl$
|
|
21360
|
+
var _el$ = _tmpl$399(), _el$2 = _el$.firstChild; _el$2.firstChild;
|
|
21180
21361
|
insert(_el$2, createComponent(Show, {
|
|
21181
21362
|
get when() {
|
|
21182
21363
|
return !message();
|
|
@@ -21198,7 +21379,7 @@ function ForgotPasswordPage(props) {
|
|
|
21198
21379
|
})];
|
|
21199
21380
|
},
|
|
21200
21381
|
get children() {
|
|
21201
|
-
var _el$4 = _tmpl$
|
|
21382
|
+
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
21383
|
_el$4.addEventListener("submit", handleSubmit);
|
|
21203
21384
|
_el$7.$$input = (e) => setEmail(e.currentTarget.value);
|
|
21204
21385
|
insert(_el$4, createComponent(Show, {
|
|
@@ -21206,7 +21387,7 @@ function ForgotPasswordPage(props) {
|
|
|
21206
21387
|
return error();
|
|
21207
21388
|
},
|
|
21208
21389
|
get children() {
|
|
21209
|
-
var _el$8 = _tmpl$
|
|
21390
|
+
var _el$8 = _tmpl$398();
|
|
21210
21391
|
insert(_el$8, error);
|
|
21211
21392
|
return _el$8;
|
|
21212
21393
|
}
|
|
@@ -21256,9 +21437,9 @@ function inputStyle4() {
|
|
|
21256
21437
|
};
|
|
21257
21438
|
}
|
|
21258
21439
|
delegateEvents(["input", "click"]);
|
|
21259
|
-
var _tmpl$
|
|
21260
|
-
var _tmpl$
|
|
21261
|
-
var _tmpl$
|
|
21440
|
+
var _tmpl$400 = /* @__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">`);
|
|
21441
|
+
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">`);
|
|
21442
|
+
var _tmpl$3100 = /* @__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
21443
|
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
21444
|
function queryParam(name) {
|
|
21264
21445
|
if (typeof window === "undefined") return "";
|
|
@@ -21299,7 +21480,7 @@ function ResetPasswordPage(props) {
|
|
|
21299
21480
|
}
|
|
21300
21481
|
}
|
|
21301
21482
|
return (() => {
|
|
21302
|
-
var _el$ = _tmpl$
|
|
21483
|
+
var _el$ = _tmpl$3100(), _el$2 = _el$.firstChild; _el$2.firstChild;
|
|
21303
21484
|
insert(_el$2, createComponent(Show, {
|
|
21304
21485
|
get when() {
|
|
21305
21486
|
return !message();
|
|
@@ -21312,7 +21493,7 @@ function ResetPasswordPage(props) {
|
|
|
21312
21493
|
})();
|
|
21313
21494
|
},
|
|
21314
21495
|
get children() {
|
|
21315
|
-
var _el$4 = _tmpl$
|
|
21496
|
+
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
21497
|
_el$4.addEventListener("submit", handleSubmit);
|
|
21317
21498
|
_el$7.$$input = (e) => setPassword(e.currentTarget.value);
|
|
21318
21499
|
_el$0.$$input = (e) => setConfirm(e.currentTarget.value);
|
|
@@ -21321,7 +21502,7 @@ function ResetPasswordPage(props) {
|
|
|
21321
21502
|
return error();
|
|
21322
21503
|
},
|
|
21323
21504
|
get children() {
|
|
21324
|
-
var _el$1 = _tmpl$
|
|
21505
|
+
var _el$1 = _tmpl$400();
|
|
21325
21506
|
insert(_el$1, error);
|
|
21326
21507
|
return _el$1;
|
|
21327
21508
|
}
|
|
@@ -21376,9 +21557,9 @@ function inputStyle5() {
|
|
|
21376
21557
|
};
|
|
21377
21558
|
}
|
|
21378
21559
|
delegateEvents(["input"]);
|
|
21379
|
-
var _tmpl$
|
|
21380
|
-
var _tmpl$
|
|
21381
|
-
var _tmpl$
|
|
21560
|
+
var _tmpl$401 = /* @__PURE__ */ template(`<div>`);
|
|
21561
|
+
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>`);
|
|
21562
|
+
var _tmpl$3101 = /* @__PURE__ */ template(`<button type=button>Back to login`);
|
|
21382
21563
|
var _tmpl$463 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Reset your password`);
|
|
21383
21564
|
var _tmpl$553 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.9rem>`);
|
|
21384
21565
|
function AffiliateForgotPassword(props) {
|
|
@@ -21416,7 +21597,7 @@ function AffiliateForgotPassword(props) {
|
|
|
21416
21597
|
})();
|
|
21417
21598
|
},
|
|
21418
21599
|
get children() {
|
|
21419
|
-
var _el$4 = _tmpl$
|
|
21600
|
+
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
21601
|
_el$4.addEventListener("submit", handleSubmit);
|
|
21421
21602
|
_el$7.$$input = (e) => setEmail(e.currentTarget.value);
|
|
21422
21603
|
insert(_el$4, createComponent(Show, {
|
|
@@ -21424,7 +21605,7 @@ function AffiliateForgotPassword(props) {
|
|
|
21424
21605
|
return error();
|
|
21425
21606
|
},
|
|
21426
21607
|
get children() {
|
|
21427
|
-
var _el$8 = _tmpl$
|
|
21608
|
+
var _el$8 = _tmpl$401();
|
|
21428
21609
|
insert(_el$8, error);
|
|
21429
21610
|
effect((_$p) => style(_el$8, errorStyle(), _$p));
|
|
21430
21611
|
return _el$8;
|
|
@@ -21453,7 +21634,7 @@ function AffiliateForgotPassword(props) {
|
|
|
21453
21634
|
return props.onNavigateLogin;
|
|
21454
21635
|
},
|
|
21455
21636
|
get children() {
|
|
21456
|
-
var _el$0 = _tmpl$
|
|
21637
|
+
var _el$0 = _tmpl$3101();
|
|
21457
21638
|
_el$0.$$click = () => props.onNavigateLogin?.();
|
|
21458
21639
|
effect((_$p) => style(_el$0, linkStyle2(), _$p));
|
|
21459
21640
|
return _el$0;
|
|
@@ -21559,9 +21740,9 @@ function linkStyle2() {
|
|
|
21559
21740
|
};
|
|
21560
21741
|
}
|
|
21561
21742
|
delegateEvents(["input", "click"]);
|
|
21562
|
-
var _tmpl$
|
|
21563
|
-
var _tmpl$
|
|
21564
|
-
var _tmpl$
|
|
21743
|
+
var _tmpl$403 = /* @__PURE__ */ template(`<div>`);
|
|
21744
|
+
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>`);
|
|
21745
|
+
var _tmpl$3102 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Choose a new password`);
|
|
21565
21746
|
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
21747
|
function queryParam2(name) {
|
|
21567
21748
|
if (typeof window === "undefined") return "";
|
|
@@ -21606,7 +21787,7 @@ function AffiliateResetPassword(props) {
|
|
|
21606
21787
|
}
|
|
21607
21788
|
}
|
|
21608
21789
|
return (() => {
|
|
21609
|
-
var _el$ = _tmpl$
|
|
21790
|
+
var _el$ = _tmpl$3102(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
|
|
21610
21791
|
insert(_el$2, createComponent(Show, {
|
|
21611
21792
|
get when() {
|
|
21612
21793
|
return !done();
|
|
@@ -21615,7 +21796,7 @@ function AffiliateResetPassword(props) {
|
|
|
21615
21796
|
return _tmpl$464();
|
|
21616
21797
|
},
|
|
21617
21798
|
get children() {
|
|
21618
|
-
var _el$4 = _tmpl$
|
|
21799
|
+
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
21800
|
_el$4.addEventListener("submit", handleSubmit);
|
|
21620
21801
|
insert(_el$5, createComponent(AffiliatePasswordInput, {
|
|
21621
21802
|
required: true,
|
|
@@ -21640,7 +21821,7 @@ function AffiliateResetPassword(props) {
|
|
|
21640
21821
|
return error();
|
|
21641
21822
|
},
|
|
21642
21823
|
get children() {
|
|
21643
|
-
var _el$9 = _tmpl$
|
|
21824
|
+
var _el$9 = _tmpl$403();
|
|
21644
21825
|
insert(_el$9, error);
|
|
21645
21826
|
effect((_$p) => style(_el$9, errorStyle2(), _$p));
|
|
21646
21827
|
return _el$9;
|
|
@@ -21739,5 +21920,5 @@ function primaryButtonStyle2(submitting) {
|
|
|
21739
21920
|
}
|
|
21740
21921
|
|
|
21741
21922
|
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=
|
|
21923
|
+
//# sourceMappingURL=P2G32S2W.js.map
|
|
21924
|
+
//# sourceMappingURL=P2G32S2W.js.map
|