@apextelemed/partner-core 0.10.0-dev.24 → 0.11.0-dev.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +9 -0
  2. package/dist/api/index.js +4 -4
  3. package/dist/api/index.jsx +4 -4
  4. package/dist/chunk/2IFPDU4D.js +55 -0
  5. package/dist/chunk/2IFPDU4D.js.map +1 -0
  6. package/dist/chunk/{BNH4UOGN.js → 5W6SC6JO.js} +7 -7
  7. package/dist/chunk/{BNH4UOGN.js.map → 5W6SC6JO.js.map} +1 -1
  8. package/dist/chunk/{M2LV5JQD.js → 6K2CMG26.js} +4 -4
  9. package/dist/chunk/{M2LV5JQD.js.map → 6K2CMG26.js.map} +1 -1
  10. package/dist/chunk/{RRKAKQ77.jsx → 6OP52OQK.jsx} +3 -3
  11. package/dist/chunk/{VF7FTWCG.jsx → A3XK3UAQ.jsx} +3 -3
  12. package/dist/chunk/{XZXPLS3K.js → A56QXD45.js} +4 -4
  13. package/dist/chunk/{XZXPLS3K.js.map → A56QXD45.js.map} +1 -1
  14. package/dist/chunk/{XW4PEQPI.jsx → ALS5FXNC.jsx} +3 -3
  15. package/dist/chunk/{7MCMXXYQ.js → CLPOTUII.js} +3 -3
  16. package/dist/chunk/{7MCMXXYQ.js.map → CLPOTUII.js.map} +1 -1
  17. package/dist/chunk/{EZG74SQL.jsx → OBFYSGB6.jsx} +2 -2
  18. package/dist/chunk/{NHNMRJL6.js → POIS4SBW.js} +847 -447
  19. package/dist/chunk/POIS4SBW.js.map +1 -0
  20. package/dist/chunk/{FA4D2S5A.js → PT6E3DLE.js} +4 -4
  21. package/dist/chunk/{FA4D2S5A.js.map → PT6E3DLE.js.map} +1 -1
  22. package/dist/chunk/QVZ7BRNO.jsx +60 -0
  23. package/dist/chunk/{CLNLTAG7.jsx → RYISMGS2.jsx} +6 -6
  24. package/dist/chunk/{VG35MW6B.jsx → SIXC23N6.jsx} +5 -5
  25. package/dist/chunk/{JKUWPGEW.js → WL6HP6BE.js} +6 -6
  26. package/dist/chunk/{JKUWPGEW.js.map → WL6HP6BE.js.map} +1 -1
  27. package/dist/chunk/{FM3JH2ZD.jsx → WO4H2CXD.jsx} +572 -389
  28. package/dist/config/index.js +1 -1
  29. package/dist/config/index.jsx +1 -1
  30. package/dist/flows/index.js +7 -7
  31. package/dist/flows/index.jsx +7 -7
  32. package/dist/index/index.js +8 -8
  33. package/dist/index/index.jsx +8 -8
  34. package/dist/pages/index.d.ts +1 -1
  35. package/dist/pages/index.js +6 -6
  36. package/dist/pages/index.jsx +6 -6
  37. package/dist/stores/index.js +3 -3
  38. package/dist/stores/index.jsx +3 -3
  39. package/package.json +1 -1
  40. package/dist/chunk/5XGPFYIJ.js +0 -26
  41. package/dist/chunk/5XGPFYIJ.js.map +0 -1
  42. package/dist/chunk/LDZIUFDM.jsx +0 -31
  43. package/dist/chunk/NHNMRJL6.js.map +0 -1
@@ -70,10 +70,10 @@ import {
70
70
  useSurveyFlow,
71
71
  useSurveyV2Flow,
72
72
  useUpdatePaymentMethodFlow
73
- } from "./VG35MW6B.jsx";
73
+ } from "./SIXC23N6.jsx";
74
74
  import {
75
75
  fetchFunnelConfig
76
- } from "./XW4PEQPI.jsx";
76
+ } from "./ALS5FXNC.jsx";
77
77
  import {
78
78
  usePrimitives
79
79
  } from "./J63XPQP4.jsx";
@@ -81,7 +81,7 @@ import {
81
81
  affiliateAuth_default,
82
82
  auth_default,
83
83
  cart_default
84
- } from "./RRKAKQ77.jsx";
84
+ } from "./6OP52OQK.jsx";
85
85
  import {
86
86
  ApiError,
87
87
  SUPPORT_ATTACHMENT_MAX_BYTES,
@@ -97,7 +97,7 @@ import {
97
97
  offersApi,
98
98
  subscriptionsApi,
99
99
  usersApi
100
- } from "./EZG74SQL.jsx";
100
+ } from "./OBFYSGB6.jsx";
101
101
 
102
102
  // src/pages/Survey.tsx
103
103
  import { Show, For, createEffect, on } from "solid-js";
@@ -4093,7 +4093,7 @@ var US_STATES3 = [
4093
4093
  var US_STATE_OPTIONS3 = US_STATES3.map((s) => ({ value: s, label: s }));
4094
4094
 
4095
4095
  // src/pages/AdminDashboard.tsx
4096
- import { createEffect as createEffect13, createSignal as createSignal37, ErrorBoundary, Match as Match3, Show as Show54, Switch as Switch3, For as For42 } from "solid-js";
4096
+ import { createEffect as createEffect13, createSignal as createSignal37, ErrorBoundary, Match as Match3, Show as Show55, Switch as Switch3, For as For43 } from "solid-js";
4097
4097
 
4098
4098
  // src/pages/admin/Affiliates.tsx
4099
4099
  import { createSignal as createSignal10, For as For14, Match, Switch } from "solid-js";
@@ -19391,8 +19391,186 @@ function Funnel() {
19391
19391
  </div>;
19392
19392
  }
19393
19393
 
19394
+ // src/pages/admin/SequenceResults.tsx
19395
+ import { createResource as createResource25, For as For40, Show as Show52 } from "solid-js";
19396
+ var muted = { color: "var(--app-admin-fg-muted)", "font-size": "0.8125rem" };
19397
+ function share(part, whole) {
19398
+ if (whole <= 0 || part <= 0) return String(part);
19399
+ return `${part} (${Math.round(part / whole * 100)}%)`;
19400
+ }
19401
+ function money(cents) {
19402
+ return (cents / 100).toLocaleString("en-US", { style: "currency", currency: "USD" });
19403
+ }
19404
+ function Figure(props) {
19405
+ return <div style={{ "min-width": "7.5rem" }}>
19406
+ <div style={{ ...muted, "font-size": "0.75rem", "text-transform": "uppercase", "letter-spacing": "0.04em" }}>{props.label}</div>
19407
+ <div class="app-admin-heading" style={{ "font-size": "1.375rem", "font-weight": "600", "line-height": "1.3" }}>{props.value}</div>
19408
+ <Show52 when={props.note}>
19409
+ <div style={muted}>{props.note}</div>
19410
+ </Show52>
19411
+ </div>;
19412
+ }
19413
+ var LEFT_ORDER = ["bought", "finished", "unsubscribed", "offer_expired", "not_eligible", "left_segment", "admin"];
19414
+ function SequenceCard(props) {
19415
+ const r = () => props.report;
19416
+ const p = () => r().people;
19417
+ const beforeAnyEmail = () => p().bought - p().boughtAfterEmail;
19418
+ const leftParts = () => LEFT_ORDER.filter((k) => (r().left[k] ?? 0) > 0).map((k) => `${r().left[k]} ${REMOVED_REASON_LABEL[k].toLowerCase()}`);
19419
+ return <Section title={r().sequence.name} action={<span style={muted}>{r().sequence.autoSend ? "Sending automatically" : "Sent on review"}</span>}>
19420
+ <Show52
19421
+ when={p().enrolled > 0}
19422
+ fallback={<p style={{ ...muted, margin: 0 }}>Nobody has been enrolled in this sequence yet.</p>}
19423
+ >
19424
+ <div style={{ display: "flex", "flex-wrap": "wrap", gap: "1.25rem 2rem", "margin-bottom": "1.25rem" }}>
19425
+ <Figure label="Enrolled" value={String(p().enrolled)} note={`${p().active} still in it`} />
19426
+ <Figure label="Emailed" value={share(p().mailed, p().enrolled)} note={`${r().emailsSent} email${r().emailsSent === 1 ? "" : "s"} sent`} />
19427
+ <Figure label="Followed a link" value={share(p().clicked, p().mailed)} note="of people emailed" />
19428
+ <Figure
19429
+ label="Bought"
19430
+ value={share(p().bought, p().enrolled)}
19431
+ note={p().bought > 0 ? `${p().boughtAfterClick} after following a link` : "of people enrolled"}
19432
+ />
19433
+ <Figure
19434
+ label="Paid"
19435
+ value={money(r().money.paidCents)}
19436
+ note={r().money.refundedCents > 0 ? `plus ${money(r().money.refundedCents)} since refunded` : `${r().money.payments} payment${r().money.payments === 1 ? "" : "s"}`}
19437
+ />
19438
+ <Show52 when={r().offer}>
19439
+ {(offer) => <Figure
19440
+ label={`${offer().amount} offer claimed`}
19441
+ value={share(offer().states.claimed, offer().granted)}
19442
+ note={`${money(r().money.discountCents)} given so far`}
19443
+ />}
19444
+ </Show52>
19445
+ </div>
19446
+
19447
+ <Show52 when={r().emailsSent > 0} fallback={<p style={{ ...muted, margin: "0 0 1rem" }}>No emails have gone out yet.</p>}>
19448
+ <table class="app-admin-table" style={{ "margin-bottom": "1rem" }}>
19449
+ <thead>
19450
+ <tr>
19451
+ <th>Email</th>
19452
+ <th>Sent</th>
19453
+ <th>Link followed</th>
19454
+ <th>Bought after this email</th>
19455
+ <th>Unsubscribed after it</th>
19456
+ </tr>
19457
+ </thead>
19458
+ <tbody>
19459
+ <For40 each={r().steps}>
19460
+ {(s) => <tr>
19461
+ <td data-label="Email" style={{ "min-width": "14rem" }}>
19462
+ <strong>{s.stepIndex + 1}.</strong> {s.templateName ?? <span style={muted}>a step since removed</span>}
19463
+ </td>
19464
+ <td data-label="Sent">{s.sent}</td>
19465
+ <td data-label="Link followed">{share(s.clicked, s.sent)}</td>
19466
+ <td data-label="Bought after this email">{share(s.bought, s.sent)}</td>
19467
+ <td data-label="Unsubscribed after it">{share(s.unsubscribed, s.sent)}</td>
19468
+ </tr>}
19469
+ </For40>
19470
+ </tbody>
19471
+ </table>
19472
+ </Show52>
19473
+
19474
+ <div style={{ display: "grid", gap: "0.375rem", ...muted }}>
19475
+ <Show52 when={beforeAnyEmail() > 0}>
19476
+ <div>
19477
+ {beforeAnyEmail()} of the {p().bought} bought before any email reached them, so no email is credited above.
19478
+ </div>
19479
+ </Show52>
19480
+ <Show52 when={leftParts().length > 0}>
19481
+ <div>No longer in it: {leftParts().join(", ")}.</div>
19482
+ </Show52>
19483
+ <Show52 when={r().offer}>
19484
+ {(offer) => <div>
19485
+ Offer: {offer().granted} granted — {offer().states.open} open, {offer().states.claimed} claimed, {offer().states.expired} expired
19486
+ <Show52 when={offer().states.revoked > 0}>, {offer().states.revoked} revoked</Show52>.
19487
+ </div>}
19488
+ </Show52>
19489
+ </div>
19490
+
19491
+ <Show52 when={r().buyers.length > 0}>
19492
+ <h3 class="app-admin-heading" style={{ "font-size": "0.875rem", "font-weight": "600", margin: "1.25rem 0 0.5rem" }}>
19493
+ Who bought
19494
+ </h3>
19495
+ <table class="app-admin-table">
19496
+ <thead>
19497
+ <tr>
19498
+ <th>Person</th>
19499
+ <th>Bought</th>
19500
+ <th>Last email before buying</th>
19501
+ <th>Followed a link</th>
19502
+ <Show52 when={r().offer}>
19503
+ <th>Claimed the offer</th>
19504
+ </Show52>
19505
+ <th>Paid since</th>
19506
+ </tr>
19507
+ </thead>
19508
+ <tbody>
19509
+ <For40 each={r().buyers}>
19510
+ {(b) => <tr>
19511
+ <td data-label="Person">{b.email}</td>
19512
+ <td data-label="Bought">{formatDate(b.boughtAt)}</td>
19513
+ <td data-label="Last email before buying">
19514
+ {b.lastStepIndex === null ? <span style={muted}>none yet</span> : `Email ${b.lastStepIndex + 1}`}
19515
+ </td>
19516
+ <td data-label="Followed a link">{b.clicked ? "Yes" : <span style={muted}>No</span>}</td>
19517
+ <Show52 when={r().offer}>
19518
+ <td data-label="Claimed the offer">{b.claimedOffer ? "Yes" : <span style={muted}>No</span>}</td>
19519
+ </Show52>
19520
+ <td data-label="Paid since">{money(b.paidCents)}</td>
19521
+ </tr>}
19522
+ </For40>
19523
+ </tbody>
19524
+ </table>
19525
+ </Show52>
19526
+ </Show52>
19527
+ </Section>;
19528
+ }
19529
+ function SequenceResults() {
19530
+ const nav = useAdminNav();
19531
+ const [report, { refetch }] = createResource25(() => apiFetch("/admin/funnel/report"));
19532
+ const days = () => report()?.sequences[0]?.attributionDays ?? 30;
19533
+ return <div>
19534
+ <PageTitle subtitle="What each sequence has achieved. “Bought” means bought after being enrolled; it does not show the email was the reason.">
19535
+ Results
19536
+ </PageTitle>
19537
+ <Show52 when={!report.error} fallback={<EmptyState message="Could not load the results. Try again in a moment." />}>
19538
+ <Show52 when={report()} fallback={<LoadingSpinner />}>
19539
+ <Show52
19540
+ when={report().sequences.length > 0}
19541
+ fallback={<EmptyState message="No sequences yet. Results appear here once a sequence has people in it." />}
19542
+ >
19543
+ <div style={{ display: "flex", "justify-content": "flex-end", gap: "0.5rem", "margin-bottom": "0.75rem" }}>
19544
+ <Show52 when={nav?.isTabEnabled("sequences")}>
19545
+ <button type="button" class="app-admin-btn app-admin-btn-sm" onClick={() => nav.selectTab("sequences")}>
19546
+ Open Sequences
19547
+ </button>
19548
+ </Show52>
19549
+ <button type="button" class="app-admin-btn app-admin-btn-sm" onClick={() => void refetch()}>
19550
+ Refresh
19551
+ </button>
19552
+ </div>
19553
+ <div style={{ display: "grid", gap: "1.25rem" }}>
19554
+ <For40 each={report().sequences}>{(r) => <SequenceCard report={r} />}</For40>
19555
+ </div>
19556
+ <div style={{ ...muted, "margin-top": "1.25rem", display: "grid", gap: "0.25rem" }}>
19557
+ <div>
19558
+ A purchase counts if it happened while the person was in the sequence, or within {days()} days of their last email from it.
19559
+ </div>
19560
+ <div>
19561
+ A link counts as followed when the person’s browser opens the site from the email. Emails sent before link tracking was added
19562
+ show none.
19563
+ </div>
19564
+ <div>Paid is every settled payment from those buyers since they were enrolled, not only the first.</div>
19565
+ </div>
19566
+ </Show52>
19567
+ </Show52>
19568
+ </Show52>
19569
+ </div>;
19570
+ }
19571
+
19394
19572
  // src/pages/admin/EmailNotifications.tsx
19395
- import { createResource as createResource25, createSignal as createSignal35, For as For40, Show as Show52 } from "solid-js";
19573
+ import { createResource as createResource26, createSignal as createSignal35, For as For41, Show as Show53 } from "solid-js";
19396
19574
  function humanize2(key) {
19397
19575
  return key.replace(/([A-Z])/g, " $1").replace(/[_-]/g, " ").replace(/^\w/, (c) => c.toUpperCase()).trim();
19398
19576
  }
@@ -19411,9 +19589,9 @@ function Card(props) {
19411
19589
  >
19412
19590
  <div>
19413
19591
  <h2 class="app-admin-heading" style={{ "font-size": "0.9375rem", "font-weight": "600", margin: 0 }}>{props.title}</h2>
19414
- <Show52 when={props.note}>
19592
+ <Show53 when={props.note}>
19415
19593
  <p style={{ ...label2, "font-size": "0.75rem", margin: "0.25rem 0 0" }}>{props.note}</p>
19416
- </Show52>
19594
+ </Show53>
19417
19595
  </div>
19418
19596
  {props.aside}
19419
19597
  </div>
@@ -19427,7 +19605,7 @@ function Toggle(props) {
19427
19605
  </label>;
19428
19606
  }
19429
19607
  function NotificationsCard() {
19430
- const [saved, { mutate }] = createResource25(() => adminApi.getEmailNotifications());
19608
+ const [saved, { mutate }] = createResource26(() => adminApi.getEmailNotifications());
19431
19609
  const [draft, setDraft] = createSignal35(null);
19432
19610
  const [newEmail, setNewEmail] = createSignal35("");
19433
19611
  const [saving, setSaving] = createSignal35(false);
@@ -19463,12 +19641,12 @@ function NotificationsCard() {
19463
19641
  {saving() ? "Saving\u2026" : "Save"}
19464
19642
  </button>}
19465
19643
  >
19466
- <Show52 when={current2()} fallback={<LoadingSpinner />}>
19644
+ <Show53 when={current2()} fallback={<LoadingSpinner />}>
19467
19645
  {(s) => <>
19468
19646
  <div>
19469
19647
  <div style={{ ...label2, "margin-bottom": "0.375rem" }}>Recipients</div>
19470
19648
  <div style={{ display: "flex", "flex-wrap": "wrap", gap: "0.375rem", "margin-bottom": "0.5rem" }}>
19471
- <For40 each={s().recipientEmails} fallback={<span class="app-admin-text-muted" style={{ "font-size": "0.8125rem" }}>Nobody — admin copies go nowhere until someone is added.</span>}>
19649
+ <For41 each={s().recipientEmails} fallback={<span class="app-admin-text-muted" style={{ "font-size": "0.8125rem" }}>Nobody — admin copies go nowhere until someone is added.</span>}>
19472
19650
  {(email) => <span class="app-admin-badge app-admin-badge--neutral" style={{ "text-transform": "none", display: "inline-flex", gap: "0.375rem", "align-items": "center" }}>
19473
19651
  {email}
19474
19652
  <button
@@ -19480,7 +19658,7 @@ function NotificationsCard() {
19480
19658
  &times;
19481
19659
  </button>
19482
19660
  </span>}
19483
- </For40>
19661
+ </For41>
19484
19662
  </div>
19485
19663
  <div style={{ display: "flex", gap: "0.5rem", "max-width": "28rem" }}>
19486
19664
  <input
@@ -19498,21 +19676,21 @@ function NotificationsCard() {
19498
19676
  <div>
19499
19677
  <div style={{ ...label2, "margin-bottom": "0.375rem" }}>Send a copy for</div>
19500
19678
  <div style={{ display: "grid", "grid-template-columns": "repeat(auto-fill, minmax(14rem, 1fr))", gap: "0.375rem 1rem" }}>
19501
- <For40 each={Object.keys(s().enabledEvents)}>
19679
+ <For41 each={Object.keys(s().enabledEvents)}>
19502
19680
  {(key) => <Toggle
19503
19681
  label={humanize2(key)}
19504
19682
  checked={!!s().enabledEvents[key]}
19505
19683
  onChange={(v) => update({ enabledEvents: { ...s().enabledEvents, [key]: v } })}
19506
19684
  />}
19507
- </For40>
19685
+ </For41>
19508
19686
  </div>
19509
19687
  </div>
19510
19688
  </>}
19511
- </Show52>
19689
+ </Show53>
19512
19690
  </Card>;
19513
19691
  }
19514
19692
  function BillingRemindersCard() {
19515
- const [saved, { mutate }] = createResource25(() => adminApi.getBillingReminders());
19693
+ const [saved, { mutate }] = createResource26(() => adminApi.getBillingReminders());
19516
19694
  const [draft, setDraft] = createSignal35(null);
19517
19695
  const [newDay, setNewDay] = createSignal35("");
19518
19696
  const [saving, setSaving] = createSignal35(false);
@@ -19552,20 +19730,20 @@ function BillingRemindersCard() {
19552
19730
  {saving() ? "Saving\u2026" : "Save"}
19553
19731
  </button>}
19554
19732
  >
19555
- <Show52 when={current2()} fallback={<LoadingSpinner />}>
19733
+ <Show53 when={current2()} fallback={<LoadingSpinner />}>
19556
19734
  {(s) => <div style={{ display: "grid", "grid-template-columns": "repeat(auto-fit, minmax(15rem, 1fr))", gap: "1rem" }}>
19557
19735
  <div class="app-admin-card-soft" style={{ padding: "0.875rem", display: "grid", gap: "0.5rem" }}>
19558
19736
  <Toggle label="Renewal reminder" checked={s().renewalReminder.enabled} onChange={(v) => update({ renewalReminder: { ...s().renewalReminder, enabled: v } })} />
19559
19737
  <div style={label2}>Days before renewal</div>
19560
19738
  <div style={{ display: "flex", "flex-wrap": "wrap", gap: "0.375rem" }}>
19561
- <For40 each={s().renewalReminder.daysBefore}>
19739
+ <For41 each={s().renewalReminder.daysBefore}>
19562
19740
  {(d) => <span class="app-admin-badge app-admin-badge--neutral" style={{ "text-transform": "none", display: "inline-flex", gap: "0.375rem" }}>
19563
19741
  {d}d
19564
- <Show52 when={s().renewalReminder.daysBefore.length > 1}>
19742
+ <Show53 when={s().renewalReminder.daysBefore.length > 1}>
19565
19743
  <button type="button" aria-label={`Remove ${d} days`} onClick={() => update({ renewalReminder: { ...s().renewalReminder, daysBefore: s().renewalReminder.daysBefore.filter((x) => x !== d) } })} style={{ background: "none", border: "none", cursor: "pointer", color: "inherit", padding: 0 }}>&times;</button>
19566
- </Show52>
19744
+ </Show53>
19567
19745
  </span>}
19568
- </For40>
19746
+ </For41>
19569
19747
  </div>
19570
19748
  <div style={{ display: "flex", gap: "0.5rem" }}>
19571
19749
  <input type="number" class="app-admin-input" style={{ width: "6rem" }} min="1" max="90" placeholder="e.g. 7" aria-label="Add days before" value={newDay()} onInput={(e) => setNewDay(e.currentTarget.value)} onKeyDown={(e) => e.key === "Enter" && (e.preventDefault(), addDay())} />
@@ -19591,7 +19769,7 @@ function BillingRemindersCard() {
19591
19769
  </label>
19592
19770
  </div>
19593
19771
  </div>}
19594
- </Show52>
19772
+ </Show53>
19595
19773
  </Card>;
19596
19774
  }
19597
19775
  function EmailNotifications() {
@@ -19603,8 +19781,8 @@ function EmailNotifications() {
19603
19781
  }
19604
19782
 
19605
19783
  // src/pages/admin/Features.tsx
19606
- import { createResource as createResource26, createSignal as createSignal36, For as For41, Show as Show53 } from "solid-js";
19607
- var muted = { "font-size": "0.8125rem", color: "var(--app-admin-fg-muted)" };
19784
+ import { createResource as createResource27, createSignal as createSignal36, For as For42, Show as Show54 } from "solid-js";
19785
+ var muted2 = { "font-size": "0.8125rem", color: "var(--app-admin-fg-muted)" };
19608
19786
  var MAX_NOTE_LENGTH = 1e3;
19609
19787
  function formatDate2(iso) {
19610
19788
  const d = new Date(iso);
@@ -19616,7 +19794,7 @@ function Card2(props) {
19616
19794
  <h2 class="app-admin-heading" style={{ "font-size": "0.9375rem", "font-weight": "600", margin: 0 }}>
19617
19795
  {props.title}
19618
19796
  </h2>
19619
- <p style={{ ...muted, "font-size": "0.75rem", margin: "0.25rem 0 0" }}>{props.note}</p>
19797
+ <p style={{ ...muted2, "font-size": "0.75rem", margin: "0.25rem 0 0" }}>{props.note}</p>
19620
19798
  </div>
19621
19799
  <div>{props.children}</div>
19622
19800
  </div>;
@@ -19635,16 +19813,16 @@ function Row(props) {
19635
19813
  >
19636
19814
  <div style={{ "min-width": 0 }}>
19637
19815
  <div style={{ "font-size": "0.875rem", "font-weight": "600" }}>{props.feature.label}</div>
19638
- <div style={{ ...muted, "margin-top": "0.125rem" }}>{props.feature.description}</div>
19639
- <Show53 when={props.note}>
19640
- <div style={{ ...muted, "font-size": "0.75rem", "margin-top": "0.25rem" }}>{props.note}</div>
19641
- </Show53>
19816
+ <div style={{ ...muted2, "margin-top": "0.125rem" }}>{props.feature.description}</div>
19817
+ <Show54 when={props.note}>
19818
+ <div style={{ ...muted2, "font-size": "0.75rem", "margin-top": "0.25rem" }}>{props.note}</div>
19819
+ </Show54>
19642
19820
  </div>
19643
19821
  <div style={{ "flex-shrink": 0 }}>{props.children}</div>
19644
19822
  </div>;
19645
19823
  }
19646
19824
  function Features() {
19647
- const [data, { mutate }] = createResource26(() => adminApi.getFeatures());
19825
+ const [data, { mutate }] = createResource27(() => adminApi.getFeatures());
19648
19826
  const [busyKey, setBusyKey] = createSignal36(null);
19649
19827
  const [requesting, setRequesting] = createSignal36(null);
19650
19828
  const [note, setNote] = createSignal36("");
@@ -19705,20 +19883,20 @@ function Features() {
19705
19883
  return <div>
19706
19884
  <PageTitle subtitle="What this site has switched on, and what you can ask for">Features</PageTitle>
19707
19885
 
19708
- <Show53 when={data.error}>
19886
+ <Show54 when={data.error}>
19709
19887
  <div class="app-admin-notice" role="alert" style={{ "margin-top": "1.25rem" }}>
19710
19888
  Features could not be loaded. {data.error?.message}
19711
19889
  </div>
19712
- </Show53>
19890
+ </Show54>
19713
19891
 
19714
- <Show53 when={!data.error && data.loading}>
19892
+ <Show54 when={!data.error && data.loading}>
19715
19893
  <LoadingSpinner />
19716
- </Show53>
19894
+ </Show54>
19717
19895
 
19718
- <Show53 when={!data.error && data()}>
19719
- <Show53 when={selfServe().length > 0}>
19896
+ <Show54 when={!data.error && data()}>
19897
+ <Show54 when={selfServe().length > 0}>
19720
19898
  <Card2 title="Switch on yourself" note="These take effect on your site right away.">
19721
- <For41 each={selfServe()}>
19899
+ <For42 each={selfServe()}>
19722
19900
  {(f) => <Row feature={f} note={blockedBy(f) ? `Turn on "${blockedBy(f).label}" first.` : void 0}>
19723
19901
  <button
19724
19902
  type="button"
@@ -19734,22 +19912,22 @@ function Features() {
19734
19912
  <span class="app-admin-toggle__knob" />
19735
19913
  </button>
19736
19914
  </Row>}
19737
- </For41>
19915
+ </For42>
19738
19916
  </Card2>
19739
- </Show53>
19917
+ </Show54>
19740
19918
 
19741
- <Show53 when={onRequest().length > 0}>
19919
+ <Show54 when={onRequest().length > 0}>
19742
19920
  <Card2
19743
19921
  title="Available on request"
19744
19922
  note="These change billing or need setup on our side, so we turn them on for you."
19745
19923
  >
19746
- <For41 each={onRequest()}>
19924
+ <For42 each={onRequest()}>
19747
19925
  {(f) => <Row feature={f}>
19748
- <Show53
19926
+ <Show54
19749
19927
  when={!f.enabled}
19750
19928
  fallback={<span class="app-admin-badge app-admin-badge--success">On</span>}
19751
19929
  >
19752
- <Show53
19930
+ <Show54
19753
19931
  when={f.request}
19754
19932
  fallback={<button
19755
19933
  type="button"
@@ -19767,15 +19945,15 @@ function Features() {
19767
19945
  >
19768
19946
  Requested {formatDate2(r().requestedAt)}
19769
19947
  </span>}
19770
- </Show53>
19771
- </Show53>
19948
+ </Show54>
19949
+ </Show54>
19772
19950
  </Row>}
19773
- </For41>
19951
+ </For42>
19774
19952
  </Card2>
19775
- </Show53>
19776
- </Show53>
19953
+ </Show54>
19954
+ </Show54>
19777
19955
 
19778
- <Show53 when={requesting()}>
19956
+ <Show54 when={requesting()}>
19779
19957
  {(f) => <Modal
19780
19958
  title={`Request ${f().label}`}
19781
19959
  width="32rem"
@@ -19794,9 +19972,9 @@ function Features() {
19794
19972
  </button>
19795
19973
  </div>}
19796
19974
  >
19797
- <p style={{ ...muted, margin: "0 0 0.875rem" }}>{f().description}</p>
19975
+ <p style={{ ...muted2, margin: "0 0 0.875rem" }}>{f().description}</p>
19798
19976
  <label style={{ display: "grid", gap: "0.25rem" }}>
19799
- <span style={muted}>Anything we should know? (optional)</span>
19977
+ <span style={muted2}>Anything we should know? (optional)</span>
19800
19978
  <textarea
19801
19979
  class="app-admin-input"
19802
19980
  rows={4}
@@ -19805,11 +19983,11 @@ function Features() {
19805
19983
  onInput={(e) => setNote(e.currentTarget.value)}
19806
19984
  />
19807
19985
  </label>
19808
- <p style={{ ...muted, "font-size": "0.75rem", margin: "0.75rem 0 0" }}>
19986
+ <p style={{ ...muted2, "font-size": "0.75rem", margin: "0.75rem 0 0" }}>
19809
19987
  We'll email our team and reply to you. Nothing changes on your site until we turn it on.
19810
19988
  </p>
19811
19989
  </Modal>}
19812
- </Show53>
19990
+ </Show54>
19813
19991
  </div>;
19814
19992
  }
19815
19993
 
@@ -19831,6 +20009,7 @@ var TAB_LABELS = {
19831
20009
  "email-notifications": "Notifications",
19832
20010
  funnel: "Funnel",
19833
20011
  sequences: "Sequences",
20012
+ "sequence-results": "Results",
19834
20013
  features: "Features"
19835
20014
  };
19836
20015
  var DEFAULT_TOP_TABS = ["dashboard"];
@@ -19840,8 +20019,8 @@ var DEFAULT_TAB_GROUPS = [
19840
20019
  { label: "Marketing", tabs: ["sales", "promo-codes", "offers", "affiliates", "funnel"] },
19841
20020
  // Everything that leaves as email, in one place: the copy of each
19842
20021
  // transactional email, who gets admin copies and the reminder schedule, and
19843
- // the drip sequences the Funnel tab feeds.
19844
- { label: "Email", tabs: ["email-templates", "email-notifications", "sequences"] },
20022
+ // the drip sequences the Funnel tab feeds, and what those achieved.
20023
+ { label: "Email", tabs: ["email-templates", "email-notifications", "sequences", "sequence-results"] },
19845
20024
  { label: "Integrations", tabs: ["webhooks"] },
19846
20025
  // What this site has switched on, and what it can ask for.
19847
20026
  { label: "Settings", tabs: ["features"] }
@@ -19930,15 +20109,15 @@ function AdminDashboard(props) {
19930
20109
  color: currentTab() === btnProps.tab ? "var(--app-admin-primary-soft-fg)" : "var(--app-admin-fg-muted)"
19931
20110
  }}
19932
20111
  >
19933
- <Show54 when={props.tabIcons?.[btnProps.tab]}>
20112
+ <Show55 when={props.tabIcons?.[btnProps.tab]}>
19934
20113
  <span
19935
20114
  class={props.tabIcons[btnProps.tab]}
19936
20115
  style={{ "font-size": "1rem", opacity: 0.7, "flex-shrink": 0 }}
19937
20116
  />
19938
- </Show54>
20117
+ </Show55>
19939
20118
  {TAB_LABELS[btnProps.tab]}
19940
20119
  </button>;
19941
- return <Show54 when={adminAllowed()} fallback={<AdminGateSpinner topOffset={props.topOffset ?? "0px"} />}>
20120
+ return <Show55 when={adminAllowed()} fallback={<AdminGateSpinner topOffset={props.topOffset ?? "0px"} />}>
19942
20121
  <AdminNavContext.Provider value={adminNav}>
19943
20122
  <div
19944
20123
  class="app-admin-root app-admin-shell"
@@ -19986,8 +20165,8 @@ function AdminDashboard(props) {
19986
20165
  Admin Panel
19987
20166
  </h2>
19988
20167
  <nav style={{ display: "flex", "flex-direction": "column", gap: "0.25rem" }}>
19989
- <For42 each={visibleTopTabs()}>{(tab) => <TabButton tab={tab} />}</For42>
19990
- <For42 each={visibleGroups()}>
20168
+ <For43 each={visibleTopTabs()}>{(tab) => <TabButton tab={tab} />}</For43>
20169
+ <For43 each={visibleGroups()}>
19991
20170
  {(group) => <>
19992
20171
  <h3
19993
20172
  style={{
@@ -20002,9 +20181,9 @@ function AdminDashboard(props) {
20002
20181
  >
20003
20182
  {group.label}
20004
20183
  </h3>
20005
- <For42 each={group.tabs}>{(tab) => <TabButton tab={tab} />}</For42>
20184
+ <For43 each={group.tabs}>{(tab) => <TabButton tab={tab} />}</For43>
20006
20185
  </>}
20007
- </For42>
20186
+ </For43>
20008
20187
  </nav>
20009
20188
  </div>
20010
20189
  </aside>
@@ -20016,7 +20195,7 @@ function AdminDashboard(props) {
20016
20195
  (which would wedge the sidebar nav), and switching tabs mounts a fresh
20017
20196
  boundary that clears a prior tab's error. */
20018
20197
  }
20019
- <Show54 when={currentTab()} keyed>
20198
+ <Show55 when={currentTab()} keyed>
20020
20199
  <ErrorBoundary fallback={(err, reset) => <AdminTabError error={err} reset={reset} />}>
20021
20200
  <Switch3 fallback={<Dashboard onSelectTab={handleTabClick} isTabEnabled={isTabEnabled} />}>
20022
20201
  <Match3 when={currentTab() === "dashboard"}>
@@ -20077,6 +20256,9 @@ function AdminDashboard(props) {
20077
20256
  <Match3 when={currentTab() === "sequences"}>
20078
20257
  <Sequences />
20079
20258
  </Match3>
20259
+ <Match3 when={currentTab() === "sequence-results"}>
20260
+ <SequenceResults />
20261
+ </Match3>
20080
20262
  <Match3 when={currentTab() === "email-notifications"}>
20081
20263
  <EmailNotifications />
20082
20264
  </Match3>
@@ -20085,11 +20267,11 @@ function AdminDashboard(props) {
20085
20267
  </Match3>
20086
20268
  </Switch3>
20087
20269
  </ErrorBoundary>
20088
- </Show54>
20270
+ </Show55>
20089
20271
  </div>
20090
20272
  </div>
20091
20273
  </AdminNavContext.Provider>
20092
- </Show54>;
20274
+ </Show55>;
20093
20275
  }
20094
20276
  function AdminTabError(props) {
20095
20277
  console.error("[AdminDashboard] tab failed to render:", props.error);
@@ -20182,6 +20364,7 @@ var ADMIN_TAB_SEGMENTS = {
20182
20364
  "email-templates": "email-templates",
20183
20365
  funnel: "funnel",
20184
20366
  sequences: "sequences",
20367
+ "sequence-results": "sequence-results",
20185
20368
  "email-notifications": "email-notifications",
20186
20369
  features: "features"
20187
20370
  };
@@ -20231,7 +20414,7 @@ function affiliateSubTabFromPath(pathname, base = "/admin") {
20231
20414
  }
20232
20415
 
20233
20416
  // src/pages/admin/PatientDashboardPreview.tsx
20234
- import { Show as Show55, For as For43 } from "solid-js";
20417
+ import { Show as Show56, For as For44 } from "solid-js";
20235
20418
  function PatientDashboardPreview(props) {
20236
20419
  const data = useDashboardData({ authToken: () => props.token });
20237
20420
  return <div
@@ -20273,7 +20456,7 @@ function PatientDashboardPreview(props) {
20273
20456
  /* A failed read is an error with a retry — never presented as an
20274
20457
  empty dashboard (the customer may have plenty of data). */
20275
20458
  }
20276
- <Show55 when={data.error()} keyed>
20459
+ <Show56 when={data.error()} keyed>
20277
20460
  {(msg) => <div
20278
20461
  style={{
20279
20462
  display: "flex",
@@ -20298,10 +20481,10 @@ function PatientDashboardPreview(props) {
20298
20481
  Retry
20299
20482
  </button>
20300
20483
  </div>}
20301
- </Show55>
20484
+ </Show56>
20302
20485
 
20303
- <Show55 when={!data.profile.loading} fallback={<LoadingSpinner />}>
20304
- <Show55
20486
+ <Show56 when={!data.profile.loading} fallback={<LoadingSpinner />}>
20487
+ <Show56
20305
20488
  when={data.profile()}
20306
20489
  fallback={<p style={{ color: "var(--app-admin-fg-muted)", "font-size": "0.875rem" }}>
20307
20490
  Could not load this customer's dashboard.
@@ -20334,7 +20517,7 @@ function PatientDashboardPreview(props) {
20334
20517
  }
20335
20518
  <div>
20336
20519
  <h3 style={panelSectionHeader}>Subscription</h3>
20337
- <Show55
20520
+ <Show56
20338
20521
  when={data.subscription()}
20339
20522
  fallback={<p
20340
20523
  style={{
@@ -20354,13 +20537,13 @@ function PatientDashboardPreview(props) {
20354
20537
  }}
20355
20538
  >
20356
20539
  <span style={{ "font-size": "0.875rem", "font-weight": "500" }}>
20357
- <Show55 when={sub().amount != null} fallback="Subscription">
20540
+ <Show56 when={sub().amount != null} fallback="Subscription">
20358
20541
  {centsToUsd(sub().amount)}/mo
20359
- </Show55>
20542
+ </Show56>
20360
20543
  </span>
20361
20544
  <StatusBadge status={sub().status} />
20362
20545
  </div>
20363
- <Show55 when={sub().nextBillingDate}>
20546
+ <Show56 when={sub().nextBillingDate}>
20364
20547
  <p
20365
20548
  style={{
20366
20549
  "font-size": "0.75rem",
@@ -20370,15 +20553,15 @@ function PatientDashboardPreview(props) {
20370
20553
  >
20371
20554
  Next charge {fmtDate(sub().nextBillingDate)}
20372
20555
  </p>
20373
- </Show55>
20556
+ </Show56>
20374
20557
  </div>}
20375
- </Show55>
20558
+ </Show56>
20376
20559
  </div>
20377
20560
 
20378
20561
  {
20379
20562
  /* Prescription status */
20380
20563
  }
20381
- <Show55 when={data.rxStatus()}>
20564
+ <Show56 when={data.rxStatus()}>
20382
20565
  {(rx) => <div>
20383
20566
  <h3 style={panelSectionHeader}>Prescription status</h3>
20384
20567
  <div class="app-admin-card-soft" style={{ padding: "0.75rem" }}>
@@ -20394,7 +20577,7 @@ function PatientDashboardPreview(props) {
20394
20577
  </span>
20395
20578
  <StatusBadge status={rx().status} />
20396
20579
  </div>
20397
- <Show55 when={rx().reason}>
20580
+ <Show56 when={rx().reason}>
20398
20581
  <p
20399
20582
  style={{
20400
20583
  "font-size": "0.75rem",
@@ -20404,17 +20587,17 @@ function PatientDashboardPreview(props) {
20404
20587
  >
20405
20588
  {rx().reason}
20406
20589
  </p>
20407
- </Show55>
20590
+ </Show56>
20408
20591
  </div>
20409
20592
  </div>}
20410
- </Show55>
20593
+ </Show56>
20411
20594
 
20412
20595
  {
20413
20596
  /* Prescription requests */
20414
20597
  }
20415
20598
  <div>
20416
20599
  <h3 style={panelSectionHeader}>Prescription requests</h3>
20417
- <Show55
20600
+ <Show56
20418
20601
  when={(data.rxList() ?? []).length > 0}
20419
20602
  fallback={<p
20420
20603
  style={{
@@ -20426,7 +20609,7 @@ function PatientDashboardPreview(props) {
20426
20609
  </p>}
20427
20610
  >
20428
20611
  <div style={{ display: "flex", "flex-direction": "column", gap: "0.5rem" }}>
20429
- <For43 each={data.rxList()}>
20612
+ <For44 each={data.rxList()}>
20430
20613
  {(req) => <div class="app-admin-card-soft" style={{ padding: "0.75rem" }}>
20431
20614
  <div
20432
20615
  style={{
@@ -20441,7 +20624,7 @@ function PatientDashboardPreview(props) {
20441
20624
  >
20442
20625
  {req.drugName || req.drugId || "Prescription"}
20443
20626
  </span>
20444
- <Show55 when={req.dosage}>
20627
+ <Show56 when={req.dosage}>
20445
20628
  <span
20446
20629
  style={{
20447
20630
  "font-size": "0.75rem",
@@ -20451,7 +20634,7 @@ function PatientDashboardPreview(props) {
20451
20634
  >
20452
20635
  {req.dosage}
20453
20636
  </span>
20454
- </Show55>
20637
+ </Show56>
20455
20638
  </div>
20456
20639
  <StatusBadge status={req.status} />
20457
20640
  </div>
@@ -20462,15 +20645,15 @@ function PatientDashboardPreview(props) {
20462
20645
  "margin-top": "0.25rem"
20463
20646
  }}
20464
20647
  >
20465
- <Show55 when={req.priceCents != null}>
20648
+ <Show56 when={req.priceCents != null}>
20466
20649
  <span>{centsToUsd(req.priceCents)} · </span>
20467
- </Show55>
20650
+ </Show56>
20468
20651
  {fmtDate(req.createdAt)}
20469
20652
  </div>
20470
20653
  </div>}
20471
- </For43>
20654
+ </For44>
20472
20655
  </div>
20473
- </Show55>
20656
+ </Show56>
20474
20657
  </div>
20475
20658
 
20476
20659
  {
@@ -20478,7 +20661,7 @@ function PatientDashboardPreview(props) {
20478
20661
  }
20479
20662
  <div>
20480
20663
  <h3 style={panelSectionHeader}>Pending surveys</h3>
20481
- <Show55
20664
+ <Show56
20482
20665
  when={(data.pendingSurveys() ?? []).length > 0}
20483
20666
  fallback={<p
20484
20667
  style={{
@@ -20490,7 +20673,7 @@ function PatientDashboardPreview(props) {
20490
20673
  </p>}
20491
20674
  >
20492
20675
  <div style={{ display: "flex", "flex-direction": "column", gap: "0.5rem" }}>
20493
- <For43 each={data.pendingSurveys()}>
20676
+ <For44 each={data.pendingSurveys()}>
20494
20677
  {(survey) => <div class="app-admin-card-soft" style={{ padding: "0.75rem" }}>
20495
20678
  <span style={{ "font-size": "0.875rem", "font-weight": "500" }}>
20496
20679
  {survey.drugName || survey.drugId || "Renewal survey"}
@@ -20505,24 +20688,24 @@ function PatientDashboardPreview(props) {
20505
20688
  Cycle {survey.cycleNumber}
20506
20689
  </span>
20507
20690
  </div>}
20508
- </For43>
20691
+ </For44>
20509
20692
  </div>
20510
- </Show55>
20693
+ </Show56>
20511
20694
  </div>
20512
20695
  </>}
20513
- </Show55>
20514
- </Show55>
20696
+ </Show56>
20697
+ </Show56>
20515
20698
  </div>
20516
20699
  </div>
20517
20700
  </div>;
20518
20701
  }
20519
20702
 
20520
20703
  // src/pages/UpdatePaymentMethod.tsx
20521
- import { Show as Show56, createResource as createResource27 } from "solid-js";
20704
+ import { Show as Show57, createResource as createResource28 } from "solid-js";
20522
20705
  var LIVE = /* @__PURE__ */ new Set(["active", "paused", "past_due"]);
20523
20706
  function UpdatePaymentMethod(props) {
20524
20707
  const { Heading, TextField, Button, Banner, Spinner } = usePrimitives();
20525
- const [resolved] = createResource27(
20708
+ const [resolved] = createResource28(
20526
20709
  () => props.subscriptionId ? null : "fetch",
20527
20710
  async () => {
20528
20711
  try {
@@ -20550,21 +20733,21 @@ function UpdatePaymentMethod(props) {
20550
20733
  Enter a new card for your subscription. Your current card stays active until this succeeds.
20551
20734
  </p>
20552
20735
 
20553
- <Show56 when={resolving()}>
20736
+ <Show57 when={resolving()}>
20554
20737
  <Spinner />
20555
- </Show56>
20738
+ </Show57>
20556
20739
 
20557
- <Show56 when={noSubscription()}>
20740
+ <Show57 when={noSubscription()}>
20558
20741
  <Banner variant="error">We couldn’t find an active subscription to update.</Banner>
20559
- </Show56>
20742
+ </Show57>
20560
20743
 
20561
- <Show56 when={!resolving() && !noSubscription()}>
20744
+ <Show57 when={!resolving() && !noSubscription()}>
20562
20745
  <form onSubmit={handleSubmit}>
20563
- <Show56 when={flow.error()}>
20746
+ <Show57 when={flow.error()}>
20564
20747
  <div style={{ "margin-bottom": "1rem" }}>
20565
20748
  <Banner variant="error">{flow.error()}</Banner>
20566
20749
  </div>
20567
- </Show56>
20750
+ </Show57>
20568
20751
 
20569
20752
  <div style={{ display: "grid", gap: "1rem", "margin-bottom": "1.5rem" }}>
20570
20753
  <TextField
@@ -20620,15 +20803,15 @@ function UpdatePaymentMethod(props) {
20620
20803
  </Button>
20621
20804
  </div>
20622
20805
  </form>
20623
- </Show56>
20806
+ </Show57>
20624
20807
  </div>;
20625
20808
  }
20626
20809
 
20627
20810
  // src/pages/MemberPortal.tsx
20628
- import { Show as Show64, Switch as Switch5, Match as Match5, For as For49, createSignal as createSignal44, onMount as onMount7 } from "solid-js";
20811
+ import { Show as Show65, Switch as Switch5, Match as Match5, For as For50, createSignal as createSignal44, onMount as onMount7 } from "solid-js";
20629
20812
 
20630
20813
  // src/pages/member/OrderTracker.tsx
20631
- import { Show as Show57, For as For44, createSignal as createSignal38 } from "solid-js";
20814
+ import { Show as Show58, For as For45, createSignal as createSignal38 } from "solid-js";
20632
20815
  function TrackingChip(props) {
20633
20816
  let copied;
20634
20817
  const [announce, setAnnounce] = createSignal38("");
@@ -20657,18 +20840,18 @@ function TrackingChip(props) {
20657
20840
  <i class="ph ph-copy ship__copy-icon" aria-hidden="true" />
20658
20841
  <span class="ship__copied" ref={copied}>Copied ✓</span>
20659
20842
  </button>
20660
- <Show57 when={props.url}>
20843
+ <Show58 when={props.url}>
20661
20844
  <a class="ship__track" href={props.url} target="_blank" rel="noopener noreferrer">
20662
20845
  Track{props.carrier ? ` with ${props.carrier}` : ""} ↗
20663
20846
  </a>
20664
- </Show57>
20847
+ </Show58>
20665
20848
  </div>
20666
20849
  <span class="portal-sr-only" role="status" aria-live="polite">{announce()}</span>
20667
20850
  </div>;
20668
20851
  }
20669
20852
  function OrderTracker(props) {
20670
20853
  const refill = () => buildRefillView(props.subscription);
20671
- const RefillStrip = () => <Show57 when={refill()}>
20854
+ const RefillStrip = () => <Show58 when={refill()}>
20672
20855
  {(r) => <div class="refill" data-testid="refill-strip">
20673
20856
  <div class="refill__head">
20674
20857
  <span class="lab-label">Your plan</span>
@@ -20677,15 +20860,15 @@ function OrderTracker(props) {
20677
20860
  awaiting the pharmacy there isn't one, so say what we're waiting
20678
20861
  on instead of counting days against a date we don't have. */
20679
20862
  }
20680
- <Show57
20863
+ <Show58
20681
20864
  when={!r().pendingFill}
20682
20865
  fallback={<span class="refill__cycle">Preparing your next fill</span>}
20683
20866
  >
20684
20867
  <span class="refill__cycle">Day {r().cycleDay} of {r().cycleLength}</span>
20685
- </Show57>
20868
+ </Show58>
20686
20869
  </div>
20687
20870
  <div class="refill__rail" style={{ "--p": String(r().progress) }}>
20688
- <For44 each={r().events}>
20871
+ <For45 each={r().events}>
20689
20872
  {(e) => <div class={`refill__stone${e.nearest ? " is-near" : ""}`}>
20690
20873
  <span class="refill__dot" aria-hidden="true" />
20691
20874
  <span class="lab-label refill__label">{e.label}</span>
@@ -20697,16 +20880,16 @@ function OrderTracker(props) {
20697
20880
  <span class="refill__rel">
20698
20881
  {!r().precise && e.date ? `around ${e.relative}` : e.relative}
20699
20882
  </span>
20700
- <Show57 when={e.key === "survey" ? props.pendingRenewalId : null} keyed>
20883
+ <Show58 when={e.key === "survey" ? props.pendingRenewalId : null} keyed>
20701
20884
  {(rid) => <a href={props.renewHref(rid)} class="refill__action">
20702
20885
  Complete check-in →
20703
20886
  </a>}
20704
- </Show57>
20887
+ </Show58>
20705
20888
  </div>}
20706
- </For44>
20889
+ </For45>
20707
20890
  </div>
20708
20891
  </div>}
20709
- </Show57>;
20892
+ </Show58>;
20710
20893
  const EmptyState2 = () => <div class="tracker">
20711
20894
  <span class="lab-label">Your order</span>
20712
20895
  <RefillStrip />
@@ -20715,17 +20898,17 @@ function OrderTracker(props) {
20715
20898
  <span class="tracker__empty-bead" />
20716
20899
  </div>
20717
20900
  <h2 class="tracker__empty-title">Your journey starts here</h2>
20718
- <Show57 when={props.savingsMember}>
20901
+ <Show58 when={props.savingsMember}>
20719
20902
  <p class="tracker__empty-text" data-testid="tracker-savings-note">
20720
20903
  <strong>Member pricing is active on your account.</strong> It applies automatically when you check out.
20721
20904
  </p>
20722
- </Show57>
20723
- <Show57 when={props.offers?.[0]}>
20905
+ </Show58>
20906
+ <Show58 when={props.offers?.[0]}>
20724
20907
  {(offer) => <p class="tracker__empty-text" data-testid="tracker-offer-note">
20725
20908
  <strong>You have {offerSummaryText(offer())} waiting.</strong> It applies automatically at checkout —
20726
20909
  finish your intake by {offer().deadlineText} to keep it.
20727
20910
  </p>}
20728
- </Show57>
20911
+ </Show58>
20729
20912
  <p class="tracker__empty-text">
20730
20913
  {props.savingsMember ? "Complete a short intake \u2014 about ten minutes \u2014 and a clinician reviews it from there. You\u2019ll watch every step come together right here, from review to delivery." : "Once you complete your intake, you\u2019ll watch every step of your prescription come together right here \u2014 from review to delivery."}
20731
20914
  </p>
@@ -20743,30 +20926,30 @@ function OrderTracker(props) {
20743
20926
  >
20744
20927
  <div class="thread__rail">
20745
20928
  <span class="thread__bead">
20746
- <Show57 when={isActive}><span class="thread__halo" aria-hidden="true" /></Show57>
20929
+ <Show58 when={isActive}><span class="thread__halo" aria-hidden="true" /></Show58>
20747
20930
  </span>
20748
20931
  </div>
20749
20932
  <div class={`thread__content${isActive ? " thread__content--active" : ""}`}>
20750
20933
  <div class="thread__top">
20751
20934
  <span class="lab-label thread__label">{s.label}</span>
20752
- <Show57 when={s.timestamp}>
20935
+ <Show58 when={s.timestamp}>
20753
20936
  <time class="thread__time">{formatStageDate(s.timestamp)}</time>
20754
- </Show57>
20937
+ </Show58>
20755
20938
  </div>
20756
- <Show57 when={s.heroWord}>
20939
+ <Show58 when={s.heroWord}>
20757
20940
  <h2 class="thread__hero">{s.heroWord}</h2>
20758
- </Show57>
20759
- <Show57 when={s.subCaption}>
20941
+ </Show58>
20942
+ <Show58 when={s.subCaption}>
20760
20943
  <p class="thread__caption">{s.subCaption}</p>
20761
- </Show57>
20762
- <Show57 when={s.state === "active" && s.key === "shipped" && sp.view.shipment}>
20944
+ </Show58>
20945
+ <Show58 when={s.state === "active" && s.key === "shipped" && sp.view.shipment}>
20763
20946
  <TrackingChip
20764
20947
  number={sp.view.shipment.trackingNumber}
20765
20948
  carrier={sp.view.shipment.carrier}
20766
20949
  url={sp.view.shipment.trackingUrl}
20767
20950
  eta={sp.view.shipment.etaLabel}
20768
20951
  />
20769
- <Show57 when={props.messagingEnabled}>
20952
+ <Show58 when={props.messagingEnabled}>
20770
20953
  <button
20771
20954
  type="button"
20772
20955
  class="portal-btn portal-btn--ghost thread__action"
@@ -20774,10 +20957,10 @@ function OrderTracker(props) {
20774
20957
  >
20775
20958
  Where's my order?
20776
20959
  </button>
20777
- </Show57>
20778
- </Show57>
20779
- <Show57 when={s.state === "consult"}>
20780
- <Show57
20960
+ </Show58>
20961
+ </Show58>
20962
+ <Show58 when={s.state === "consult"}>
20963
+ <Show58
20781
20964
  when={props.messagingEnabled}
20782
20965
  fallback={<p class="thread__caption thread__await" data-testid="await-messaging">
20783
20966
  Your care team is reviewing your request. You’ll be able to message them here once your consult begins.
@@ -20790,10 +20973,10 @@ function OrderTracker(props) {
20790
20973
  >
20791
20974
  Message your care team
20792
20975
  </button>
20793
- </Show57>
20794
- </Show57>
20795
- <Show57 when={s.state === "denied"}>
20796
- <Show57
20976
+ </Show58>
20977
+ </Show58>
20978
+ <Show58 when={s.state === "denied"}>
20979
+ <Show58
20797
20980
  when={props.messagingEnabled}
20798
20981
  fallback={<p class="thread__caption thread__await" data-testid="await-messaging">
20799
20982
  Your provider will follow up with you about next steps.
@@ -20806,12 +20989,12 @@ function OrderTracker(props) {
20806
20989
  >
20807
20990
  Talk to your provider
20808
20991
  </button>
20809
- </Show57>
20810
- </Show57>
20992
+ </Show58>
20993
+ </Show58>
20811
20994
  </div>
20812
20995
  </li>;
20813
20996
  };
20814
- return <Show57 when={props.request} fallback={<EmptyState2 />}>
20997
+ return <Show58 when={props.request} fallback={<EmptyState2 />}>
20815
20998
  {(rx) => {
20816
20999
  const view = buildTrackerView(rx());
20817
21000
  return <div class="tracker" data-testid="order-tracker">
@@ -20819,7 +21002,7 @@ function OrderTracker(props) {
20819
21002
  <span class="lab-label">Your order</span>
20820
21003
  <p class="tracker__med">
20821
21004
  {props.medicationName}
20822
- <Show57 when={rx().dosage}><span class="tracker__dose"> · {rx().dosage}</span></Show57>
21005
+ <Show58 when={rx().dosage}><span class="tracker__dose"> · {rx().dosage}</span></Show58>
20823
21006
  </p>
20824
21007
  </div>
20825
21008
 
@@ -20829,17 +21012,17 @@ function OrderTracker(props) {
20829
21012
  class={`thread${view.branch ? ` thread--${view.branch}` : ""}`}
20830
21013
  style={{ "--active": String(view.activeIndex), "--count": String(view.stages.length) }}
20831
21014
  >
20832
- <For44 each={view.stages}>
21015
+ <For45 each={view.stages}>
20833
21016
  {(stage, i) => <Stage stage={stage} index={i()} view={view} />}
20834
- </For44>
21017
+ </For45>
20835
21018
  </ol>
20836
21019
  </div>;
20837
21020
  }}
20838
- </Show57>;
21021
+ </Show58>;
20839
21022
  }
20840
21023
 
20841
21024
  // src/pages/member/RxRow.tsx
20842
- import { Show as Show58, createSignal as createSignal39 } from "solid-js";
21025
+ import { Show as Show59, createSignal as createSignal39 } from "solid-js";
20843
21026
  var STATUS_LABEL = {
20844
21027
  pending: "Under review",
20845
21028
  approved: "Approved",
@@ -20864,14 +21047,14 @@ function RxRow(props) {
20864
21047
  >
20865
21048
  <span class="rx-row__med">
20866
21049
  {props.rx.drugName ?? "Medication"}
20867
- <Show58 when={props.rx.dosage}>
21050
+ <Show59 when={props.rx.dosage}>
20868
21051
  <span class="rx-row__dose"> · {props.rx.dosage}</span>
20869
- </Show58>
21052
+ </Show59>
20870
21053
  </span>
20871
21054
  <span class="rx-row__status">{label3()}</span>
20872
21055
  <i class={`ph ph-caret-${open() ? "up" : "down"} rx-row__chevron`} aria-hidden="true" />
20873
21056
  </button>
20874
- <Show58 when={open()}>
21057
+ <Show59 when={open()}>
20875
21058
  <div class="rx-row__body">
20876
21059
  <OrderTracker
20877
21060
  request={props.request}
@@ -20884,12 +21067,12 @@ function RxRow(props) {
20884
21067
  renewHref={props.renewHref}
20885
21068
  />
20886
21069
  </div>
20887
- </Show58>
21070
+ </Show59>
20888
21071
  </div>;
20889
21072
  }
20890
21073
 
20891
21074
  // src/pages/member/PlanBilling.tsx
20892
- import { Show as Show59, createSignal as createSignal40 } from "solid-js";
21075
+ import { Show as Show60, createSignal as createSignal40 } from "solid-js";
20893
21076
  function formatCents(cents) {
20894
21077
  if (cents == null || Number.isNaN(cents)) return "\u2014";
20895
21078
  return `$${(cents / 100).toFixed(2)}`;
@@ -20932,7 +21115,7 @@ function PlanBilling(props) {
20932
21115
  return <div class="plan" data-testid="plan-billing">
20933
21116
  <span class="lab-label">Plan &amp; billing</span>
20934
21117
 
20935
- <Show59
21118
+ <Show60
20936
21119
  when={primary()}
20937
21120
  fallback={<div class="plan__empty">
20938
21121
  <h2 class="plan__empty-title">No active plan</h2>
@@ -20948,7 +21131,7 @@ function PlanBilling(props) {
20948
21131
  <span class="membership__brand">{props.brandName}</span>
20949
21132
  </div>
20950
21133
  <h2 class="membership__med">{sub().medicationName ?? sub().medication}</h2>
20951
- <Show59 when={sub().dosage}><p class="membership__dose">{sub().dosage}</p></Show59>
21134
+ <Show60 when={sub().dosage}><p class="membership__dose">{sub().dosage}</p></Show60>
20952
21135
  <div class="membership__bottom">
20953
21136
  <span class="membership__price">
20954
21137
  {formatCents(sub().amountCents)}<span class="membership__per">/mo</span>
@@ -20974,7 +21157,7 @@ function PlanBilling(props) {
20974
21157
  </div>
20975
21158
  </dl>
20976
21159
 
20977
- <Show59 when={props.messagingEnabled}>
21160
+ <Show60 when={props.messagingEnabled}>
20978
21161
  <p class="plan__note">
20979
21162
  Question about billing?{" "}
20980
21163
  <button
@@ -20985,14 +21168,14 @@ function PlanBilling(props) {
20985
21168
  Message support
20986
21169
  </button>
20987
21170
  </p>
20988
- </Show59>
21171
+ </Show60>
20989
21172
 
20990
- <Show59 when={error()}>
21173
+ <Show60 when={error()}>
20991
21174
  <p class="plan__error" role="alert">{error()}</p>
20992
- </Show59>
21175
+ </Show60>
20993
21176
 
20994
21177
  <div class="plan__actions">
20995
- <Show59 when={sub().status === "active"}>
21178
+ <Show60 when={sub().status === "active"}>
20996
21179
  <button
20997
21180
  type="button"
20998
21181
  class="plan__link-btn"
@@ -21001,8 +21184,8 @@ function PlanBilling(props) {
21001
21184
  >
21002
21185
  {action() === "pause" ? "Pausing\u2026" : "Pause subscription"}
21003
21186
  </button>
21004
- </Show59>
21005
- <Show59 when={sub().status === "paused"}>
21187
+ </Show60>
21188
+ <Show60 when={sub().status === "paused"}>
21006
21189
  <button
21007
21190
  type="button"
21008
21191
  class="plan__link-btn"
@@ -21011,11 +21194,11 @@ function PlanBilling(props) {
21011
21194
  >
21012
21195
  {action() === "resume" ? "Resuming\u2026" : "Resume subscription"}
21013
21196
  </button>
21014
- </Show59>
21197
+ </Show60>
21015
21198
 
21016
21199
  <a href={props.paymentMethodHref} class="plan__link-btn">Update payment method</a>
21017
21200
 
21018
- <Show59 when={sub().status !== "cancelled" && sub().status !== "expired"}>
21201
+ <Show60 when={sub().status !== "cancelled" && sub().status !== "expired"}>
21019
21202
  <button
21020
21203
  type="button"
21021
21204
  class="plan__link-btn plan__link-btn--quiet"
@@ -21024,10 +21207,10 @@ function PlanBilling(props) {
21024
21207
  >
21025
21208
  Cancel subscription
21026
21209
  </button>
21027
- </Show59>
21210
+ </Show60>
21028
21211
  </div>
21029
21212
 
21030
- <Show59 when={confirmCancel()}>
21213
+ <Show60 when={confirmCancel()}>
21031
21214
  <div class="confirm" data-testid="cancel-confirm">
21032
21215
  <p class="confirm__text">
21033
21216
  Cancel your subscription? You’ll keep access until the end of your current billing period
@@ -21052,14 +21235,14 @@ function PlanBilling(props) {
21052
21235
  </button>
21053
21236
  </div>
21054
21237
  </div>
21055
- </Show59>
21238
+ </Show60>
21056
21239
  </>}
21057
- </Show59>
21240
+ </Show60>
21058
21241
  </div>;
21059
21242
  }
21060
21243
 
21061
21244
  // src/pages/member/AccountPanel.tsx
21062
- import { Show as Show60, For as For45 } from "solid-js";
21245
+ import { Show as Show61, For as For46 } from "solid-js";
21063
21246
  function pick(member, ...keys) {
21064
21247
  if (!member) return "";
21065
21248
  for (const k of keys) {
@@ -21095,19 +21278,19 @@ function AccountPanel(props) {
21095
21278
  <h1 class="account__title">Your details</h1>
21096
21279
 
21097
21280
  <dl class="account__fields">
21098
- <For45 each={fields()}>
21281
+ <For46 each={fields()}>
21099
21282
  {(f) => <div class="account__field">
21100
21283
  <dt class="lab-label">{f.label}</dt>
21101
21284
  <dd>{f.value}</dd>
21102
21285
  </div>}
21103
- </For45>
21286
+ </For46>
21104
21287
  </dl>
21105
21288
 
21106
- <Show60 when={fields().length === 0}>
21289
+ <Show61 when={fields().length === 0}>
21107
21290
  <p class="account__empty">We don’t have your details on file yet.</p>
21108
- </Show60>
21291
+ </Show61>
21109
21292
 
21110
- <Show60 when={props.messagingEnabled}>
21293
+ <Show61 when={props.messagingEnabled}>
21111
21294
  <p class="account__note">
21112
21295
  Need to update something?{" "}
21113
21296
  <button
@@ -21119,17 +21302,17 @@ function AccountPanel(props) {
21119
21302
  </button>{" "}
21120
21303
  and we’ll take care of it.
21121
21304
  </p>
21122
- </Show60>
21305
+ </Show61>
21123
21306
 
21124
21307
  <div class="account__support">
21125
- <Show60 when={props.messagingEnabled}>
21308
+ <Show61 when={props.messagingEnabled}>
21126
21309
  <button type="button" class="account__support-link account__support-btn" onClick={() => props.onOpenMessages()}>
21127
21310
  Messages
21128
21311
  </button>
21129
- </Show60>
21130
- <For45 each={props.legalLinks ?? []}>
21312
+ </Show61>
21313
+ <For46 each={props.legalLinks ?? []}>
21131
21314
  {(link) => <a href={link.href} class="account__support-link">{link.label}</a>}
21132
- </For45>
21315
+ </For46>
21133
21316
  </div>
21134
21317
 
21135
21318
  <button type="button" class="portal-btn portal-btn--ghost account__signout" onClick={props.onSignOut}>
@@ -21139,7 +21322,7 @@ function AccountPanel(props) {
21139
21322
  }
21140
21323
 
21141
21324
  // src/pages/member/MedicationGuide.tsx
21142
- import { Show as Show61, For as For46, createSignal as createSignal41 } from "solid-js";
21325
+ import { Show as Show62, For as For47, createSignal as createSignal41 } from "solid-js";
21143
21326
  function firstNumber(s) {
21144
21327
  const m = (s || "").match(/\d+(\.\d+)?/);
21145
21328
  return m ? m[0] : null;
@@ -21182,7 +21365,7 @@ function MedicationGuide(props) {
21182
21365
  <section class="leaflet__section leaflet__section--caution">
21183
21366
  <h2 class="leaflet__h2">Do not use this medicine if…</h2>
21184
21367
  <ul class="leaflet__list leaflet__list--caution">
21185
- <For46 each={props.guide.doNotUseIf}>{(item) => <li>{item}</li>}</For46>
21368
+ <For47 each={props.guide.doNotUseIf}>{(item) => <li>{item}</li>}</For47>
21186
21369
  </ul>
21187
21370
  </section>
21188
21371
 
@@ -21193,7 +21376,7 @@ function MedicationGuide(props) {
21193
21376
  <h2 class="leaflet__h2">Your dose over time</h2>
21194
21377
  <p class="leaflet__note">A typical step-up. Your prescriber sets your exact doses and timing.</p>
21195
21378
  <ol class="titration">
21196
- <For46 each={props.guide.titration}>
21379
+ <For47 each={props.guide.titration}>
21197
21380
  {(step, i) => <li class={`titration__step titration__step--${titrationState(i())}`}>
21198
21381
  <span class="titration__bead" aria-hidden="true" />
21199
21382
  <div class="titration__body">
@@ -21205,14 +21388,14 @@ function MedicationGuide(props) {
21205
21388
  <p class="titration__note">{step.note}</p>
21206
21389
  </div>
21207
21390
  </li>}
21208
- </For46>
21391
+ </For47>
21209
21392
  </ol>
21210
21393
  </section>
21211
21394
 
21212
21395
  <section class="leaflet__section">
21213
21396
  <h2 class="leaflet__h2">Giving your injection</h2>
21214
21397
  <ol class="steps">
21215
- <For46 each={props.guide.injectionSteps}>
21398
+ <For47 each={props.guide.injectionSteps}>
21216
21399
  {(step) => <li class="steps__item">
21217
21400
  <span class="steps__num">{step.n}</span>
21218
21401
  <div class="steps__body">
@@ -21220,7 +21403,7 @@ function MedicationGuide(props) {
21220
21403
  <p class="steps__detail">{step.detail}</p>
21221
21404
  </div>
21222
21405
  </li>}
21223
- </For46>
21406
+ </For47>
21224
21407
  </ol>
21225
21408
  </section>
21226
21409
 
@@ -21228,7 +21411,7 @@ function MedicationGuide(props) {
21228
21411
  <section class="leaflet__section">
21229
21412
  <h2 class="leaflet__h2">Storing your medicine</h2>
21230
21413
  <ul class="leaflet__list">
21231
- <For46 each={props.guide.storage}>{(item) => <li>{item}</li>}</For46>
21414
+ <For47 each={props.guide.storage}>{(item) => <li>{item}</li>}</For47>
21232
21415
  </ul>
21233
21416
  </section>
21234
21417
 
@@ -21238,25 +21421,25 @@ function MedicationGuide(props) {
21238
21421
  </section>
21239
21422
  </div>
21240
21423
 
21241
- <Show61 when={props.guide.contraception}>
21424
+ <Show62 when={props.guide.contraception}>
21242
21425
  <section class="leaflet__section leaflet__section--caution">
21243
21426
  <h2 class="leaflet__h2">Birth control</h2>
21244
21427
  <p class="leaflet__body">{props.guide.contraception}</p>
21245
21428
  </section>
21246
- </Show61>
21429
+ </Show62>
21247
21430
 
21248
21431
  <div class="leaflet__grid">
21249
21432
  <section class="leaflet__section">
21250
21433
  <h2 class="leaflet__h2">Common side effects</h2>
21251
21434
  <ul class="leaflet__list leaflet__list--check">
21252
- <For46 each={props.guide.sideEffectsCommon}>{(item) => <li>{item}</li>}</For46>
21435
+ <For47 each={props.guide.sideEffectsCommon}>{(item) => <li>{item}</li>}</For47>
21253
21436
  </ul>
21254
21437
  </section>
21255
21438
 
21256
21439
  <section class="leaflet__section leaflet__section--alert">
21257
21440
  <h2 class="leaflet__h2">Call right away if you notice…</h2>
21258
21441
  <ul class="leaflet__list leaflet__list--alert">
21259
- <For46 each={props.guide.sideEffectsSerious}>{(item) => <li>{item}</li>}</For46>
21442
+ <For47 each={props.guide.sideEffectsSerious}>{(item) => <li>{item}</li>}</For47>
21260
21443
  </ul>
21261
21444
  </section>
21262
21445
  </div>
@@ -21264,14 +21447,14 @@ function MedicationGuide(props) {
21264
21447
  <section class="leaflet__section">
21265
21448
  <h2 class="leaflet__h2">When to contact your care team</h2>
21266
21449
  <ul class="leaflet__list">
21267
- <For46 each={props.guide.whenToCall}>{(item) => <li>{item}</li>}</For46>
21450
+ <For47 each={props.guide.whenToCall}>{(item) => <li>{item}</li>}</For47>
21268
21451
  </ul>
21269
21452
  </section>
21270
21453
 
21271
21454
  <section class="leaflet__section">
21272
21455
  <h2 class="leaflet__h2">Tips for feeling your best</h2>
21273
21456
  <ul class="leaflet__list leaflet__list--check">
21274
- <For46 each={props.guide.tips}>{(item) => <li>{item}</li>}</For46>
21457
+ <For47 each={props.guide.tips}>{(item) => <li>{item}</li>}</For47>
21275
21458
  </ul>
21276
21459
  </section>
21277
21460
 
@@ -21286,17 +21469,17 @@ function MedicationGuide(props) {
21286
21469
  {showDisclaimers() ? "Hide" : "Read"} the important details
21287
21470
  <i class={`ph ph-caret-${showDisclaimers() ? "up" : "down"}`} aria-hidden="true" />
21288
21471
  </button>
21289
- <Show61 when={showDisclaimers()}>
21472
+ <Show62 when={showDisclaimers()}>
21290
21473
  <ul class="leaflet__disclaimers" id="leaflet-disclaimers">
21291
- <For46 each={props.guide.disclaimers}>{(item) => <li>{item}</li>}</For46>
21474
+ <For47 each={props.guide.disclaimers}>{(item) => <li>{item}</li>}</For47>
21292
21475
  </ul>
21293
- </Show61>
21476
+ </Show62>
21294
21477
  </section>
21295
21478
  </div>;
21296
21479
  }
21297
21480
 
21298
21481
  // src/pages/member/MessagesPanel.tsx
21299
- import { Show as Show62, For as For47, Switch as Switch4, Match as Match4, createEffect as createEffect14, createSignal as createSignal42, on as on8 } from "solid-js";
21482
+ import { Show as Show63, For as For48, Switch as Switch4, Match as Match4, createEffect as createEffect14, createSignal as createSignal42, on as on8 } from "solid-js";
21300
21483
  import DOMPurify from "dompurify";
21301
21484
  function sanitizeMessageHtml(html) {
21302
21485
  return DOMPurify.sanitize(html, {
@@ -21529,9 +21712,9 @@ function MessagesPanel(props) {
21529
21712
  data-channel={p.source}
21530
21713
  >
21531
21714
  {p.source === "clinical" ? "Care team" : "Support"}
21532
- <Show62 when={p.source === "support" && categoryLabel(p.category)}>
21715
+ <Show63 when={p.source === "support" && categoryLabel(p.category)}>
21533
21716
  {(label3) => <span class="channel-chip__category">{label3()}</span>}
21534
- </Show62>
21717
+ </Show63>
21535
21718
  </span>;
21536
21719
  const channelConversations = () => thread().conversations().filter((c) => c.source === (channel() === "care" ? "clinical" : "support"));
21537
21720
  const ConversationList = () => <>
@@ -21560,29 +21743,29 @@ function MessagesPanel(props) {
21560
21743
  </div>
21561
21744
 
21562
21745
  <div class="msg-list__scroll" data-scrollable>
21563
- <Show62 when={thread().loadingConversations()}>
21746
+ <Show63 when={thread().loadingConversations()}>
21564
21747
  <div class="msg-list__state">
21565
21748
  <div class="request-status__spinner" />
21566
21749
  </div>
21567
- </Show62>
21750
+ </Show63>
21568
21751
 
21569
- <Show62 when={!thread().loadingConversations() && channelConversations().length === 0}>
21752
+ <Show63 when={!thread().loadingConversations() && channelConversations().length === 0}>
21570
21753
  <div class="msg-list__state msg-list__state--empty" data-testid="messages-empty">
21571
21754
  <i class="ph-thin ph-chat-circle msg-list__empty-icon" aria-hidden="true" />
21572
21755
  <p class="msg-list__empty-title">No conversations yet.</p>
21573
21756
  <p class="msg-list__empty-hint">
21574
- <Show62
21757
+ <Show63
21575
21758
  when={channel() === "care"}
21576
21759
  fallback="Message support about your account, an order, billing or the site."
21577
21760
  >
21578
21761
  Your care team reviews and responds to anything about your treatment, medication
21579
21762
  or side effects.
21580
- </Show62>
21763
+ </Show63>
21581
21764
  </p>
21582
21765
  </div>
21583
- </Show62>
21766
+ </Show63>
21584
21767
 
21585
- <For47 each={channelConversations()}>
21768
+ <For48 each={channelConversations()}>
21586
21769
  {(convo) => <button
21587
21770
  type="button"
21588
21771
  class={`msg-list__item${thread().selectedId() === convo.id ? " is-active" : ""}`}
@@ -21598,12 +21781,12 @@ function MessagesPanel(props) {
21598
21781
  </div>
21599
21782
  <div class="msg-list__row">
21600
21783
  <span class="msg-list__preview">{convo.lastMessage ?? "No messages yet"}</span>
21601
- <Show62 when={(convo.unreadCount ?? 0) > 0}>
21784
+ <Show63 when={(convo.unreadCount ?? 0) > 0}>
21602
21785
  <span class="msg-list__pip">{convo.unreadCount}</span>
21603
- </Show62>
21786
+ </Show63>
21604
21787
  </div>
21605
21788
  </button>}
21606
- </For47>
21789
+ </For48>
21607
21790
  </div>
21608
21791
  </>;
21609
21792
  const Attachment = (p) => {
@@ -21623,7 +21806,7 @@ function MessagesPanel(props) {
21623
21806
  const href = url() ?? await resolve();
21624
21807
  if (href) window.open(href, "_blank", "noopener");
21625
21808
  };
21626
- return <Show62
21809
+ return <Show63
21627
21810
  when={isImageAttachment(p.attachment)}
21628
21811
  fallback={<button
21629
21812
  type="button"
@@ -21642,7 +21825,7 @@ function MessagesPanel(props) {
21642
21825
  </span>
21643
21826
  </button>}
21644
21827
  >
21645
- <Show62
21828
+ <Show63
21646
21829
  when={url() && !failed()}
21647
21830
  fallback={<span class="msg-attachment__fallback">
21648
21831
  {failed() ? "Attachment unavailable" : "Loading\u2026"}
@@ -21664,13 +21847,13 @@ function MessagesPanel(props) {
21664
21847
  }}
21665
21848
  />
21666
21849
  </button>
21667
- </Show62>
21668
- </Show62>;
21850
+ </Show63>
21851
+ </Show63>;
21669
21852
  };
21670
21853
  const Bubble = (p) => {
21671
21854
  const isOwn = () => p.msg.senderRole === "patient";
21672
21855
  const body = () => p.msg.text || p.msg.content || "";
21673
- return <Show62
21856
+ return <Show63
21674
21857
  when={p.msg.type !== "system"}
21675
21858
  fallback={<p class="msg-thread__system" data-testid="system-message">
21676
21859
  {body()}
@@ -21678,15 +21861,15 @@ function MessagesPanel(props) {
21678
21861
  >
21679
21862
  <div class={`msg-thread__line${isOwn() ? " msg-thread__line--own" : ""}`}>
21680
21863
  <div class={`msg-thread__bubble${isOwn() ? " msg-thread__bubble--own" : ""}`}>
21681
- <Show62 when={!isOwn() && p.msg.senderName}>
21864
+ <Show63 when={!isOwn() && p.msg.senderName}>
21682
21865
  <p class="msg-thread__sender">{p.msg.senderName}</p>
21683
- </Show62>
21866
+ </Show63>
21684
21867
  {
21685
21868
  /* An attachment may arrive with no caption, so don't render an
21686
21869
  empty paragraph in that case. */
21687
21870
  }
21688
- <Show62 when={body()}>
21689
- <Show62
21871
+ <Show63 when={body()}>
21872
+ <Show63
21690
21873
  when={p.msg.type === "html"}
21691
21874
  fallback={<p class="msg-thread__text">{body()}</p>}
21692
21875
  >
@@ -21697,17 +21880,17 @@ function MessagesPanel(props) {
21697
21880
  stored XSS in every one of them. */
21698
21881
  }
21699
21882
  <div class="msg-thread__text" innerHTML={sanitizeMessageHtml(body())} />
21700
- </Show62>
21701
- </Show62>
21702
- <Show62 when={p.msg.attachments?.length}>
21883
+ </Show63>
21884
+ </Show63>
21885
+ <Show63 when={p.msg.attachments?.length}>
21703
21886
  <div class="msg-attachment">
21704
- <For47 each={p.msg.attachments}>{(a) => <Attachment attachment={a} />}</For47>
21887
+ <For48 each={p.msg.attachments}>{(a) => <Attachment attachment={a} />}</For48>
21705
21888
  </div>
21706
- </Show62>
21889
+ </Show63>
21707
21890
  <p class="msg-thread__meta">{formatMessageTime(p.msg.createdAt)}</p>
21708
21891
  </div>
21709
21892
  </div>
21710
- </Show62>;
21893
+ </Show63>;
21711
21894
  };
21712
21895
  const NewSupportThread = () => <form class="msg-thread msg-thread--compose" onSubmit={submitCompose} data-testid="support-compose">
21713
21896
  <div class="msg-thread__header">
@@ -21731,7 +21914,7 @@ function MessagesPanel(props) {
21731
21914
  What's this about? <span class="msg-compose__label-optional">(optional)</span>
21732
21915
  </label>
21733
21916
  <div class="msg-compose__categories" role="group" aria-labelledby="support-category-label">
21734
- <For47 each={SUPPORT_CATEGORIES}>
21917
+ <For48 each={SUPPORT_CATEGORIES}>
21735
21918
  {(c) => <button
21736
21919
  type="button"
21737
21920
  class={`msg-compose__category-chip${newCategory() === c.key ? " is-selected" : ""}`}
@@ -21741,7 +21924,7 @@ function MessagesPanel(props) {
21741
21924
  >
21742
21925
  {c.label}
21743
21926
  </button>}
21744
- </For47>
21927
+ </For48>
21745
21928
  </div>
21746
21929
 
21747
21930
  <label class="msg-compose__label" for="support-subject">
@@ -21785,7 +21968,7 @@ function MessagesPanel(props) {
21785
21968
  onChange={(e) => stageFile(e.currentTarget, setNewFile)}
21786
21969
  />
21787
21970
  </label>
21788
- <Show62 when={newFile()}>
21971
+ <Show63 when={newFile()}>
21789
21972
  <button
21790
21973
  type="button"
21791
21974
  class="msg-compose__staged-remove msg-compose__staged-remove--inline"
@@ -21793,13 +21976,13 @@ function MessagesPanel(props) {
21793
21976
  >
21794
21977
  Remove file
21795
21978
  </button>
21796
- </Show62>
21979
+ </Show63>
21797
21980
 
21798
- <Show62 when={attachError() || composeError()}>
21981
+ <Show63 when={attachError() || composeError()}>
21799
21982
  <p class="msg-compose__error" role="alert">
21800
21983
  {attachError() ?? composeError()}
21801
21984
  </p>
21802
- </Show62>
21985
+ </Show63>
21803
21986
 
21804
21987
  <button
21805
21988
  type="submit"
@@ -21856,7 +22039,7 @@ function MessagesPanel(props) {
21856
22039
  onChange={(e) => stageFile(e.currentTarget, setNewFile)}
21857
22040
  />
21858
22041
  </label>
21859
- <Show62 when={newFile()}>
22042
+ <Show63 when={newFile()}>
21860
22043
  <button
21861
22044
  type="button"
21862
22045
  class="msg-compose__staged-remove msg-compose__staged-remove--inline"
@@ -21864,13 +22047,13 @@ function MessagesPanel(props) {
21864
22047
  >
21865
22048
  Remove file
21866
22049
  </button>
21867
- </Show62>
22050
+ </Show63>
21868
22051
 
21869
- <Show62 when={attachError() || composeError()}>
22052
+ <Show63 when={attachError() || composeError()}>
21870
22053
  <p class="msg-compose__error" role="alert">
21871
22054
  {attachError() ?? composeError()}
21872
22055
  </p>
21873
- </Show62>
22056
+ </Show63>
21874
22057
 
21875
22058
  <button
21876
22059
  type="submit"
@@ -21902,19 +22085,19 @@ function MessagesPanel(props) {
21902
22085
  <i class="ph-thin ph-heartbeat msg-choice__option-icon" aria-hidden="true" />
21903
22086
  <span class="msg-choice__option-title">My care team</span>
21904
22087
  <span class="msg-choice__option-sub">Treatment, medication or side effects</span>
21905
- <Show62
22088
+ <Show63
21906
22089
  when={!thread().loadingConversations()}
21907
22090
  fallback={<span
21908
22091
  class="msg-choice__option-spinner request-status__spinner"
21909
22092
  data-testid="gate-care-loading"
21910
22093
  />}
21911
22094
  >
21912
- <Show62 when={careUnreadCount() > 0}>
22095
+ <Show63 when={careUnreadCount() > 0}>
21913
22096
  <span class="msg-choice__option-badge" data-testid="gate-care-badge">
21914
22097
  {careUnreadCount()}
21915
22098
  </span>
21916
- </Show62>
21917
- </Show62>
22099
+ </Show63>
22100
+ </Show63>
21918
22101
  </button>
21919
22102
  <button
21920
22103
  type="button"
@@ -21925,27 +22108,27 @@ function MessagesPanel(props) {
21925
22108
  <i class="ph-thin ph-lifebuoy msg-choice__option-icon" aria-hidden="true" />
21926
22109
  <span class="msg-choice__option-title">Support</span>
21927
22110
  <span class="msg-choice__option-sub">Account, orders, billing or the website</span>
21928
- <Show62
22111
+ <Show63
21929
22112
  when={!thread().loadingConversations()}
21930
22113
  fallback={<span
21931
22114
  class="msg-choice__option-spinner request-status__spinner"
21932
22115
  data-testid="gate-support-loading"
21933
22116
  />}
21934
22117
  >
21935
- <Show62 when={supportUnreadCount() > 0}>
22118
+ <Show63 when={supportUnreadCount() > 0}>
21936
22119
  <span class="msg-choice__option-badge" data-testid="gate-support-badge">
21937
22120
  {supportUnreadCount()}
21938
22121
  </span>
21939
- </Show62>
21940
- </Show62>
22122
+ </Show63>
22123
+ </Show63>
21941
22124
  </button>
21942
22125
  </div>
21943
22126
 
21944
- <Show62 when={threadNotFound()}>
22127
+ <Show63 when={threadNotFound()}>
21945
22128
  <p class="msg-choice__notice-text" data-testid="messages-gate-note">
21946
22129
  That conversation isn't available.
21947
22130
  </p>
21948
- </Show62>
22131
+ </Show63>
21949
22132
  </div>;
21950
22133
  const CareTeamNotice = () => <div class="msg-thread msg-choice" data-testid="care-team-notice">
21951
22134
  <div class="msg-thread__header">
@@ -21995,9 +22178,9 @@ function MessagesPanel(props) {
21995
22178
  <div>
21996
22179
  <div class="msg-thread__title-row">
21997
22180
  <h3 class="msg-thread__name">{selectedConvo()?.participantName ?? "Provider"}</h3>
21998
- <Show62 when={selectedConvo()}>
22181
+ <Show63 when={selectedConvo()}>
21999
22182
  {(convo) => <ChannelChip source={convo().source} category={convo().category} />}
22000
- </Show62>
22183
+ </Show63>
22001
22184
  </div>
22002
22185
  <p class="msg-thread__role">{selectedConvo()?.participantRole ?? "Prescriber"}</p>
22003
22186
  </div>
@@ -22006,23 +22189,23 @@ function MessagesPanel(props) {
22006
22189
  it — so this is a status cue, not a lock. A transferred one is
22007
22190
  different: its content now lives with the care team, so it's read-only. */
22008
22191
  }
22009
- <Show62 when={selectedConvo()?.source === "support" && selectedConvo()?.status === "closed"}>
22192
+ <Show63 when={selectedConvo()?.source === "support" && selectedConvo()?.status === "closed"}>
22010
22193
  <span class="msg-thread__status" data-testid="thread-status-closed">
22011
22194
  Resolved
22012
22195
  </span>
22013
- </Show62>
22014
- <Show62 when={selectedConvo()?.source === "support" && selectedConvo()?.status === "transferred"}>
22196
+ </Show63>
22197
+ <Show63 when={selectedConvo()?.source === "support" && selectedConvo()?.status === "transferred"}>
22015
22198
  <span class="msg-thread__status" data-testid="thread-status-transferred">
22016
22199
  Moved to care team
22017
22200
  </span>
22018
- </Show62>
22201
+ </Show63>
22019
22202
  </div>
22020
22203
 
22021
22204
  {
22022
22205
  /* A closed (often transferred-back) support thread offers a jump straight
22023
22206
  to the care team, rather than making the customer find the gate. */
22024
22207
  }
22025
- <Show62
22208
+ <Show63
22026
22209
  when={selectedConvo()?.source === "support" && (selectedConvo()?.status === "closed" || selectedConvo()?.status === "transferred")}
22027
22210
  >
22028
22211
  <div class="msg-thread__banner">
@@ -22035,21 +22218,21 @@ function MessagesPanel(props) {
22035
22218
  Continue with your care team
22036
22219
  </button>
22037
22220
  </div>
22038
- </Show62>
22221
+ </Show63>
22039
22222
 
22040
22223
  <div class="msg-thread__messages" data-scrollable>
22041
- <Show62 when={thread().loadingMessages()}>
22224
+ <Show63 when={thread().loadingMessages()}>
22042
22225
  <div class="msg-list__state">
22043
22226
  <div class="request-status__spinner" />
22044
22227
  </div>
22045
- </Show62>
22046
- <For47 each={thread().messages()}>{(msg) => <Bubble msg={msg} />}</For47>
22228
+ </Show63>
22229
+ <For48 each={thread().messages()}>{(msg) => <Bubble msg={msg} />}</For48>
22047
22230
  <div ref={endRef} />
22048
22231
  </div>
22049
22232
 
22050
- <Show62 when={pendingFile() || attachError()}>
22233
+ <Show63 when={pendingFile() || attachError()}>
22051
22234
  <div class="msg-compose__staged">
22052
- <Show62 when={pendingFile()}>
22235
+ <Show63 when={pendingFile()}>
22053
22236
  {(file) => <span class="msg-compose__staged-file" data-testid="staged-file">
22054
22237
  <i class="ph-thin ph-paperclip" aria-hidden="true" />
22055
22238
  {file().name}
@@ -22063,27 +22246,27 @@ function MessagesPanel(props) {
22063
22246
  ×
22064
22247
  </button>
22065
22248
  </span>}
22066
- </Show62>
22067
- <Show62 when={attachError()}>
22249
+ </Show63>
22250
+ <Show63 when={attachError()}>
22068
22251
  <span class="msg-compose__error" role="alert">
22069
22252
  {attachError()}
22070
22253
  </span>
22071
- </Show62>
22254
+ </Show63>
22072
22255
  </div>
22073
- </Show62>
22256
+ </Show63>
22074
22257
 
22075
22258
  {
22076
22259
  /* A transferred support thread is read-only: the customer's messages were
22077
22260
  moved to their care team, so the place to continue is that conversation
22078
22261
  (the banner above), not a reply that would reopen this one. */
22079
22262
  }
22080
- <Show62 when={!(selectedConvo()?.source === "support" && selectedConvo()?.status === "transferred")}>
22263
+ <Show63 when={!(selectedConvo()?.source === "support" && selectedConvo()?.status === "transferred")}>
22081
22264
  <div class="msg-compose">
22082
22265
  {
22083
22266
  /* Support threads only: clinical conversations are an Apex proxy and
22084
22267
  their attachment path isn't wired up here yet. */
22085
22268
  }
22086
- <Show62 when={thread().selectedSource() === "support"}>
22269
+ <Show63 when={thread().selectedSource() === "support"}>
22087
22270
  <label class="msg-compose__attach" title="Attach a file">
22088
22271
  <i class="ph-thin ph-paperclip" aria-hidden="true" />
22089
22272
  <span class="msg-compose__attach-label">Attach a file</span>
@@ -22095,7 +22278,7 @@ function MessagesPanel(props) {
22095
22278
  onChange={(e) => stageFile(e.currentTarget, setPendingFile)}
22096
22279
  />
22097
22280
  </label>
22098
- </Show62>
22281
+ </Show63>
22099
22282
  <textarea
22100
22283
  ref={composerRef}
22101
22284
  class="msg-compose__input"
@@ -22116,10 +22299,10 @@ function MessagesPanel(props) {
22116
22299
  {thread().sending() ? "Sending\u2026" : "Send"}
22117
22300
  </button>
22118
22301
  </div>
22119
- </Show62>
22302
+ </Show63>
22120
22303
  </>;
22121
22304
  return <div class="msg-panel" data-testid="messages-panel">
22122
- <Show62
22305
+ <Show63
22123
22306
  when={channel() !== "gate"}
22124
22307
  fallback={<div class="msg-panel__layout msg-panel__layout--gate">
22125
22308
  <ChannelGate />
@@ -22130,7 +22313,7 @@ function MessagesPanel(props) {
22130
22313
  <ConversationList />
22131
22314
  </div>
22132
22315
  <div class={`msg-panel__main${threadOpen() ? "" : " msg-panel__main--hidden-mobile"}`}>
22133
- <Show62 when={composing()}>
22316
+ <Show63 when={composing()}>
22134
22317
  <Switch4>
22135
22318
  <Match4 when={composeStep() === "care"}>
22136
22319
  <NewCareTeamThread />
@@ -22142,25 +22325,25 @@ function MessagesPanel(props) {
22142
22325
  <NewSupportThread />
22143
22326
  </Match4>
22144
22327
  </Switch4>
22145
- </Show62>
22146
- <Show62 when={!composing()}>
22147
- <Show62
22328
+ </Show63>
22329
+ <Show63 when={!composing()}>
22330
+ <Show63
22148
22331
  when={thread().selectedId() != null}
22149
22332
  fallback={<div class="msg-panel__placeholder" data-testid="messages-placeholder">
22150
22333
  <p>Select a conversation to read and reply.</p>
22151
22334
  </div>}
22152
22335
  >
22153
22336
  <Thread />
22154
- </Show62>
22155
- </Show62>
22337
+ </Show63>
22338
+ </Show63>
22156
22339
  </div>
22157
22340
  </div>
22158
- </Show62>
22341
+ </Show63>
22159
22342
  </div>;
22160
22343
  }
22161
22344
 
22162
22345
  // src/pages/member/SurveyHistory.tsx
22163
- import { createSignal as createSignal43, createResource as createResource28, For as For48, Show as Show63 } from "solid-js";
22346
+ import { createSignal as createSignal43, createResource as createResource29, For as For49, Show as Show64 } from "solid-js";
22164
22347
  var MODE_LABELS = {
22165
22348
  initial: "Intake questionnaire",
22166
22349
  refill: "Refill check-in"
@@ -22176,21 +22359,21 @@ var asEmptyOn404 = (value) => (err) => {
22176
22359
  throw err;
22177
22360
  };
22178
22361
  function SurveyHistory() {
22179
- const [list] = createResource28(
22362
+ const [list] = createResource29(
22180
22363
  () => membersApi.getSurveyResponses().then((r) => r.responses).catch(asEmptyOn404([]))
22181
22364
  );
22182
22365
  const [selectedId, setSelectedId] = createSignal43(null);
22183
- const [detail] = createResource28(
22366
+ const [detail] = createResource29(
22184
22367
  selectedId,
22185
22368
  (id) => membersApi.getSurveyResponse(id).catch(asEmptyOn404(null))
22186
22369
  );
22187
- const ListView = () => <Show63
22370
+ const ListView = () => <Show64
22188
22371
  when={!list.error}
22189
22372
  fallback={<div class="portal-state" data-testid="history-error">
22190
22373
  <p>We couldn't load your submitted surveys. Please try again in a moment.</p>
22191
22374
  </div>}
22192
22375
  >
22193
- <Show63
22376
+ <Show64
22194
22377
  when={(list() ?? []).length > 0}
22195
22378
  fallback={<div class="portal-state" data-testid="history-empty">
22196
22379
  <p>No submitted questionnaires yet.</p>
@@ -22200,7 +22383,7 @@ function SurveyHistory() {
22200
22383
  </div>}
22201
22384
  >
22202
22385
  <ul class="history-list" data-testid="history-list">
22203
- <For48 each={list()}>
22386
+ <For49 each={list()}>
22204
22387
  {(item) => <li>
22205
22388
  <button type="button" class="history-row" onClick={() => setSelectedId(item.id)}>
22206
22389
  <span class="history-row__mode">{MODE_LABELS[item.mode] ?? "Questionnaire"}</span>
@@ -22210,10 +22393,10 @@ function SurveyHistory() {
22210
22393
  <i class="ph-thin ph-caret-right portal-icon" aria-hidden="true" />
22211
22394
  </button>
22212
22395
  </li>}
22213
- </For48>
22396
+ </For49>
22214
22397
  </ul>
22215
- </Show63>
22216
- </Show63>;
22398
+ </Show64>
22399
+ </Show64>;
22217
22400
  const DetailView = () => <div data-testid="history-detail">
22218
22401
  <button
22219
22402
  type="button"
@@ -22222,14 +22405,14 @@ function SurveyHistory() {
22222
22405
  >
22223
22406
  <i class="ph-thin ph-caret-left portal-icon" aria-hidden="true" /> All questionnaires
22224
22407
  </button>
22225
- <Show63
22408
+ <Show64
22226
22409
  when={!detail.loading}
22227
22410
  fallback={<div class="portal-state">
22228
22411
  <div class="request-status__spinner" />
22229
22412
  <p>Loading your answers…</p>
22230
22413
  </div>}
22231
22414
  >
22232
- <Show63
22415
+ <Show64
22233
22416
  when={!detail.error && detail()}
22234
22417
  fallback={<div class="portal-state" data-testid="history-detail-error">
22235
22418
  <p>We couldn't load this questionnaire. Please try again in a moment.</p>
@@ -22243,33 +22426,33 @@ function SurveyHistory() {
22243
22426
  shown exactly as they were at the time — they aren't updated afterwards.
22244
22427
  </p>
22245
22428
  </header>
22246
- <For48 each={t().sections}>
22429
+ <For49 each={t().sections}>
22247
22430
  {(section) => <section class="history-section">
22248
22431
  <h3 class="lab-label">{section.title}</h3>
22249
- <For48 each={section.items}>
22432
+ <For49 each={section.items}>
22250
22433
  {(item) => <div class="history-qa">
22251
22434
  <p class="history-qa__q">{item.question}</p>
22252
22435
  <p class="history-qa__a">{item.answer}</p>
22253
22436
  </div>}
22254
- </For48>
22437
+ </For49>
22255
22438
  </section>}
22256
- </For48>
22439
+ </For49>
22257
22440
  </article>}
22258
- </Show63>
22259
- </Show63>
22441
+ </Show64>
22442
+ </Show64>
22260
22443
  </div>;
22261
22444
  return <div class="survey-history" data-testid="survey-history">
22262
- <Show63
22445
+ <Show64
22263
22446
  when={!list.loading || selectedId()}
22264
22447
  fallback={<div class="portal-state">
22265
22448
  <div class="request-status__spinner" />
22266
22449
  <p>Loading your submitted surveys…</p>
22267
22450
  </div>}
22268
22451
  >
22269
- <Show63 when={selectedId()} fallback={<ListView />}>
22452
+ <Show64 when={selectedId()} fallback={<ListView />}>
22270
22453
  <DetailView />
22271
- </Show63>
22272
- </Show63>
22454
+ </Show64>
22455
+ </Show64>
22273
22456
  </div>;
22274
22457
  }
22275
22458
 
@@ -22370,7 +22553,7 @@ function MemberPortal(props) {
22370
22553
  } catch {
22371
22554
  }
22372
22555
  };
22373
- const RailNav = (p) => <For49 each={tabs()}>
22556
+ const RailNav = (p) => <For50 each={tabs()}>
22374
22557
  {(item) => <button
22375
22558
  type="button"
22376
22559
  class={`portal-${p.variant}__item${tab() === item.key ? " is-active" : ""}`}
@@ -22380,17 +22563,17 @@ function MemberPortal(props) {
22380
22563
  >
22381
22564
  <i class={`${item.icon} portal-icon`} aria-hidden="true" />
22382
22565
  <span class="portal-item__label">{item.label}</span>
22383
- <Show64 when={item.key === "tracker" && inMotion()}>
22566
+ <Show65 when={item.key === "tracker" && inMotion()}>
22384
22567
  <span class="portal-item__live" aria-label="In progress" />
22385
- </Show64>
22386
- <Show64 when={item.key === "messages" && unreadTotal() > 0}>
22568
+ </Show65>
22569
+ <Show65 when={item.key === "messages" && unreadTotal() > 0}>
22387
22570
  <span class={`portal-item__badge${p.variant === "tabs" ? " portal-item__badge--tab" : ""}`}>
22388
22571
  {unreadTotal() > 99 ? "99+" : unreadTotal()}
22389
22572
  </span>
22390
- </Show64>
22573
+ </Show65>
22391
22574
  </button>}
22392
- </For49>;
22393
- const TrackerTab = () => <Show64
22575
+ </For50>;
22576
+ const TrackerTab = () => <Show65
22394
22577
  when={data.primaryRx()}
22395
22578
  fallback={<OrderTracker
22396
22579
  request={null}
@@ -22416,10 +22599,10 @@ function MemberPortal(props) {
22416
22599
  intakeHref={props.routes.intake}
22417
22600
  renewHref={props.routes.renew}
22418
22601
  />
22419
- <Show64 when={data.otherRx().length > 0}>
22602
+ <Show65 when={data.otherRx().length > 0}>
22420
22603
  <div class="rx-others" data-testid="rx-others">
22421
22604
  <span class="lab-label">Other orders</span>
22422
- <For49 each={data.otherRx()}>
22605
+ <For50 each={data.otherRx()}>
22423
22606
  {(rx) => <RxRow
22424
22607
  rx={rx}
22425
22608
  request={data.toTrackerRequest(rx)}
@@ -22429,19 +22612,19 @@ function MemberPortal(props) {
22429
22612
  intakeHref={props.routes.intake}
22430
22613
  renewHref={props.routes.renew}
22431
22614
  />}
22432
- </For49>
22615
+ </For50>
22433
22616
  </div>
22434
- </Show64>
22617
+ </Show65>
22435
22618
  </div>}
22436
- </Show64>;
22437
- const Content = () => <Show64
22619
+ </Show65>;
22620
+ const Content = () => <Show65
22438
22621
  when={!data.loading()}
22439
22622
  fallback={<div class="portal-state">
22440
22623
  <div class="request-status__spinner" />
22441
22624
  <p>Loading your portal…</p>
22442
22625
  </div>}
22443
22626
  >
22444
- <Show64
22627
+ <Show65
22445
22628
  when={!data.error()}
22446
22629
  fallback={<div class="request-status__error portal-state">
22447
22630
  <p class="request-status__error-text">{data.error()}</p>
@@ -22481,8 +22664,8 @@ function MemberPortal(props) {
22481
22664
  <MessagesPanel thread={messages} intent={intent()} />
22482
22665
  </Match5>
22483
22666
  </Switch5>
22484
- </Show64>
22485
- </Show64>;
22667
+ </Show65>
22668
+ </Show65>;
22486
22669
  return <main
22487
22670
  class="portal"
22488
22671
  data-testid="member-portal"
@@ -22494,30 +22677,30 @@ function MemberPortal(props) {
22494
22677
  <aside class="portal-rail">
22495
22678
  <div class="portal-rail__brand">
22496
22679
  <a href={props.brand.homeHref} class="portal-rail__logo">
22497
- <Show64
22680
+ <Show65
22498
22681
  when={props.brand.logoSrc}
22499
22682
  fallback={<span class="portal-rail__wordmark">{props.brand.name}</span>}
22500
22683
  >
22501
22684
  {(src) => <img src={src()} alt={props.brand.name} />}
22502
- </Show64>
22685
+ </Show65>
22503
22686
  </a>
22504
22687
  <span class="portal-rail__dot" aria-hidden="true" />
22505
22688
  </div>
22506
22689
 
22507
- <Show64 when={data.firstName() !== "Member"}>
22690
+ <Show65 when={data.firstName() !== "Member"}>
22508
22691
  <p class="portal-rail__hi">Hi, {data.firstName()}</p>
22509
- </Show64>
22692
+ </Show65>
22510
22693
 
22511
22694
  <nav class="portal-rail__nav" aria-label="Portal sections">
22512
22695
  <RailNav variant="rail" />
22513
22696
  </nav>
22514
22697
 
22515
22698
  <div class="portal-rail__foot">
22516
- <Show64 when={showBackLink()}>
22699
+ <Show65 when={showBackLink()}>
22517
22700
  <a href={catalogHref()} class="portal-rail__back" data-testid="rail-back">
22518
22701
  ← Back to shop
22519
22702
  </a>
22520
- </Show64>
22703
+ </Show65>
22521
22704
  <button type="button" class="portal-rail__signout" onClick={props.auth.onSignOut}>
22522
22705
  — Sign out
22523
22706
  </button>
@@ -22527,11 +22710,11 @@ function MemberPortal(props) {
22527
22710
  {
22528
22711
  /* ── Mobile back bar (the rail is hidden ≤900px, so nothing else links home) ── */
22529
22712
  }
22530
- <Show64 when={showBackLink()}>
22713
+ <Show65 when={showBackLink()}>
22531
22714
  <a href={catalogHref()} class="portal-topbar-back" data-testid="mobile-back">
22532
22715
  <span aria-hidden="true">←</span> Back to shop
22533
22716
  </a>
22534
- </Show64>
22717
+ </Show65>
22535
22718
 
22536
22719
  {
22537
22720
  /* ── Content ── */
@@ -22552,10 +22735,10 @@ function MemberPortal(props) {
22552
22735
  }
22553
22736
 
22554
22737
  // src/pages/AffiliatePortal.tsx
22555
- import { createEffect as createEffect15, createSignal as createSignal46, Match as Match6, Show as Show70, Switch as Switch6, For as For54 } from "solid-js";
22738
+ import { createEffect as createEffect15, createSignal as createSignal46, Match as Match6, Show as Show71, Switch as Switch6, For as For55 } from "solid-js";
22556
22739
 
22557
22740
  // src/pages/affiliate/Overview.tsx
22558
- import { Show as Show65, For as For50 } from "solid-js";
22741
+ import { Show as Show66, For as For51 } from "solid-js";
22559
22742
  function formatMoney(cents) {
22560
22743
  return `$${(cents / 100).toFixed(2)}`;
22561
22744
  }
@@ -22589,7 +22772,7 @@ function AffiliateOverview() {
22589
22772
  Overview
22590
22773
  </h1>
22591
22774
 
22592
- <Show65 when={isPending()}>
22775
+ <Show66 when={isPending()}>
22593
22776
  <div
22594
22777
  style={{
22595
22778
  padding: "1rem 1.25rem",
@@ -22602,9 +22785,9 @@ function AffiliateOverview() {
22602
22785
  Your affiliate account is awaiting approval. Once an admin
22603
22786
  activates it, your referral link will start earning commissions.
22604
22787
  </div>
22605
- </Show65>
22788
+ </Show66>
22606
22789
 
22607
- <Show65
22790
+ <Show66
22608
22791
  when={stats()}
22609
22792
  fallback={<div style={{ color: "var(--app-affiliate-fg-muted)" }}>Loading stats…</div>}
22610
22793
  >
@@ -22615,7 +22798,7 @@ function AffiliateOverview() {
22615
22798
  gap: "1rem"
22616
22799
  }}
22617
22800
  >
22618
- <For50 each={cards(s())}>
22801
+ <For51 each={cards(s())}>
22619
22802
  {(card) => <div
22620
22803
  style={{
22621
22804
  padding: "1.25rem",
@@ -22645,14 +22828,14 @@ function AffiliateOverview() {
22645
22828
  {card.value}
22646
22829
  </div>
22647
22830
  </div>}
22648
- </For50>
22831
+ </For51>
22649
22832
  </div>}
22650
- </Show65>
22833
+ </Show66>
22651
22834
  </div>;
22652
22835
  }
22653
22836
 
22654
22837
  // src/pages/affiliate/Conversions.tsx
22655
- import { Show as Show66, For as For51 } from "solid-js";
22838
+ import { Show as Show67, For as For52 } from "solid-js";
22656
22839
  function formatMoney2(cents) {
22657
22840
  return `$${(cents / 100).toFixed(2)}`;
22658
22841
  }
@@ -22681,7 +22864,7 @@ function AffiliateConversions() {
22681
22864
  Conversions
22682
22865
  </h1>
22683
22866
 
22684
- <Show66
22867
+ <Show67
22685
22868
  when={(conversions() ?? []).length > 0}
22686
22869
  fallback={<div
22687
22870
  style={{
@@ -22715,12 +22898,12 @@ function AffiliateConversions() {
22715
22898
  </tr>
22716
22899
  </thead>
22717
22900
  <tbody>
22718
- <For51 each={conversions()}>
22901
+ <For52 each={conversions()}>
22719
22902
  {(c) => <tr style={{ "border-top": "1px solid var(--app-affiliate-border)" }}>
22720
22903
  <td data-label="Date" style={td()}>{formatDate4(c.createdAt)}</td>
22721
22904
  <td data-label="Type" style={td()}>
22722
22905
  {c.paymentType}
22723
- <Show66 when={c.tier === 2}>
22906
+ <Show67 when={c.tier === 2}>
22724
22907
  <span
22725
22908
  style={{
22726
22909
  "margin-left": "0.4rem",
@@ -22735,7 +22918,7 @@ function AffiliateConversions() {
22735
22918
  >
22736
22919
  Override
22737
22920
  </span>
22738
- </Show66>
22921
+ </Show67>
22739
22922
  </td>
22740
22923
  <td data-label="Order total" style={td()}>{formatMoney2(c.orderTotalCents)}</td>
22741
22924
  <td data-label="Commission" style={{ ...td(), color: "var(--app-affiliate-fg)", "font-weight": "600" }}>
@@ -22756,11 +22939,11 @@ function AffiliateConversions() {
22756
22939
  </span>
22757
22940
  </td>
22758
22941
  </tr>}
22759
- </For51>
22942
+ </For52>
22760
22943
  </tbody>
22761
22944
  </table>
22762
22945
  </div>
22763
- </Show66>
22946
+ </Show67>
22764
22947
  </div>;
22765
22948
  }
22766
22949
  function th() {
@@ -22782,7 +22965,7 @@ function td() {
22782
22965
  }
22783
22966
 
22784
22967
  // src/pages/affiliate/Downline.tsx
22785
- import { Show as Show67, For as For52 } from "solid-js";
22968
+ import { Show as Show68, For as For53 } from "solid-js";
22786
22969
  function formatDate5(iso) {
22787
22970
  const d = new Date(iso);
22788
22971
  if (Number.isNaN(d.getTime())) return iso;
@@ -22813,7 +22996,7 @@ function AffiliateDownline() {
22813
22996
  make — those show up as “Override” rows on your Conversions.
22814
22997
  </p>
22815
22998
 
22816
- <Show67
22999
+ <Show68
22817
23000
  when={(downline() ?? []).length > 0}
22818
23001
  fallback={<div
22819
23002
  style={{
@@ -22849,7 +23032,7 @@ function AffiliateDownline() {
22849
23032
  </tr>
22850
23033
  </thead>
22851
23034
  <tbody>
22852
- <For52 each={downline()}>
23035
+ <For53 each={downline()}>
22853
23036
  {(d) => <tr style={{ "border-top": "1px solid var(--app-affiliate-border)" }}>
22854
23037
  <td
22855
23038
  data-label="Code"
@@ -22878,11 +23061,11 @@ function AffiliateDownline() {
22878
23061
  {formatDate5(d.createdAt)}
22879
23062
  </td>
22880
23063
  </tr>}
22881
- </For52>
23064
+ </For53>
22882
23065
  </tbody>
22883
23066
  </table>
22884
23067
  </div>
22885
- </Show67>
23068
+ </Show68>
22886
23069
  </div>;
22887
23070
  }
22888
23071
  function th2() {
@@ -22904,7 +23087,7 @@ function td2() {
22904
23087
  }
22905
23088
 
22906
23089
  // src/pages/affiliate/ReferralLink.tsx
22907
- import { Show as Show68, createSignal as createSignal45, createMemo as createMemo16 } from "solid-js";
23090
+ import { Show as Show69, createSignal as createSignal45, createMemo as createMemo16 } from "solid-js";
22908
23091
  function AffiliateReferralLink() {
22909
23092
  const { links } = useAffiliateLinks();
22910
23093
  const [copied, setCopied] = createSignal45(false);
@@ -22938,7 +23121,7 @@ function AffiliateReferralLink() {
22938
23121
  Referral link
22939
23122
  </h1>
22940
23123
 
22941
- <Show68
23124
+ <Show69
22942
23125
  when={homepageLink()}
22943
23126
  fallback={<div style={{ color: "var(--app-affiliate-fg-muted)" }}>
22944
23127
  Your referral link will appear here once your account is approved.
@@ -23014,12 +23197,12 @@ function AffiliateReferralLink() {
23014
23197
  the cookie window, you earn commission on the conversion.
23015
23198
  </div>
23016
23199
  </div>
23017
- </Show68>
23200
+ </Show69>
23018
23201
  </div>;
23019
23202
  }
23020
23203
 
23021
23204
  // src/pages/affiliate/Settings.tsx
23022
- import { Show as Show69, For as For53 } from "solid-js";
23205
+ import { Show as Show70, For as For54 } from "solid-js";
23023
23206
  var STATUS_LABEL2 = {
23024
23207
  pending: "Pending approval",
23025
23208
  active: "Active",
@@ -23049,7 +23232,7 @@ function AffiliateSettings() {
23049
23232
  Account
23050
23233
  </h1>
23051
23234
 
23052
- <Show69
23235
+ <Show70
23053
23236
  when={affiliate()}
23054
23237
  fallback={<div style={{ color: "var(--app-affiliate-fg-muted)" }}>Loading…</div>}
23055
23238
  >
@@ -23061,7 +23244,7 @@ function AffiliateSettings() {
23061
23244
  overflow: "hidden"
23062
23245
  }}
23063
23246
  >
23064
- <For53 each={rows(a())}>
23247
+ <For54 each={rows(a())}>
23065
23248
  {(row) => <div
23066
23249
  style={{
23067
23250
  display: "flex",
@@ -23083,9 +23266,9 @@ function AffiliateSettings() {
23083
23266
  </div>
23084
23267
  <div style={{ color: "var(--app-affiliate-fg)" }}>{row.value}</div>
23085
23268
  </div>}
23086
- </For53>
23269
+ </For54>
23087
23270
  </div>}
23088
- </Show69>
23271
+ </Show70>
23089
23272
 
23090
23273
  <div>
23091
23274
  <button
@@ -23156,7 +23339,7 @@ function AffiliatePortal(props) {
23156
23339
  props.onTabChange?.(tab);
23157
23340
  };
23158
23341
  const topOffset = () => props.topOffset ?? "0px";
23159
- return <Show70 when={allowed()} fallback={<AffiliateGateSpinner topOffset={topOffset()} />}>
23342
+ return <Show71 when={allowed()} fallback={<AffiliateGateSpinner topOffset={topOffset()} />}>
23160
23343
  <div
23161
23344
  class="app-affiliate-root app-affiliate-shell"
23162
23345
  classList={{ "is-drawer-open": drawerOpen() }}
@@ -23205,7 +23388,7 @@ function AffiliatePortal(props) {
23205
23388
  Affiliate Portal
23206
23389
  </h2>
23207
23390
  <nav style={{ display: "flex", "flex-direction": "column", gap: "0.25rem" }}>
23208
- <For54 each={orderedTabs()}>
23391
+ <For55 each={orderedTabs()}>
23209
23392
  {(tab) => <button
23210
23393
  type="button"
23211
23394
  onClick={() => handleTabClick(tab)}
@@ -23224,15 +23407,15 @@ function AffiliatePortal(props) {
23224
23407
  color: currentTab() === tab ? "var(--app-affiliate-primary-soft-fg)" : "var(--app-affiliate-fg-muted)"
23225
23408
  }}
23226
23409
  >
23227
- <Show70 when={props.tabIcons?.[tab]}>
23410
+ <Show71 when={props.tabIcons?.[tab]}>
23228
23411
  <span
23229
23412
  class={props.tabIcons[tab]}
23230
23413
  style={{ "font-size": "1rem", opacity: 0.7, "flex-shrink": 0 }}
23231
23414
  />
23232
- </Show70>
23415
+ </Show71>
23233
23416
  {TAB_LABELS2[tab]}
23234
23417
  </button>}
23235
- </For54>
23418
+ </For55>
23236
23419
  </nav>
23237
23420
  </div>
23238
23421
  </aside>
@@ -23257,7 +23440,7 @@ function AffiliatePortal(props) {
23257
23440
  </Switch6>
23258
23441
  </div>
23259
23442
  </div>
23260
- </Show70>;
23443
+ </Show71>;
23261
23444
  }
23262
23445
  function AffiliateGateSpinner(props) {
23263
23446
  return <div
@@ -23289,7 +23472,7 @@ function AffiliateGateSpinner(props) {
23289
23472
  }
23290
23473
 
23291
23474
  // src/pages/AffiliateRegister.tsx
23292
- import { createSignal as createSignal48, Show as Show71 } from "solid-js";
23475
+ import { createSignal as createSignal48, Show as Show72 } from "solid-js";
23293
23476
 
23294
23477
  // src/pages/AffiliatePasswordInput.tsx
23295
23478
  import { createSignal as createSignal47 } from "solid-js";
@@ -23421,7 +23604,7 @@ function AffiliateRegister(props) {
23421
23604
  </p>
23422
23605
  </div>
23423
23606
 
23424
- <Show71
23607
+ <Show72
23425
23608
  when={!submitted()}
23426
23609
  fallback={<div
23427
23610
  style={{
@@ -23517,7 +23700,7 @@ function AffiliateRegister(props) {
23517
23700
  the website address itself.
23518
23701
  </div>
23519
23702
 
23520
- <Show71 when={error()}>
23703
+ <Show72 when={error()}>
23521
23704
  <div
23522
23705
  style={{
23523
23706
  padding: "0.625rem 0.875rem",
@@ -23529,7 +23712,7 @@ function AffiliateRegister(props) {
23529
23712
  >
23530
23713
  {error()}
23531
23714
  </div>
23532
- </Show71>
23715
+ </Show72>
23533
23716
 
23534
23717
  <button
23535
23718
  type="submit"
@@ -23548,7 +23731,7 @@ function AffiliateRegister(props) {
23548
23731
  {submitting() ? "Submitting\u2026" : "Apply"}
23549
23732
  </button>
23550
23733
 
23551
- <Show71 when={props.onNavigateLogin}>
23734
+ <Show72 when={props.onNavigateLogin}>
23552
23735
  <button
23553
23736
  type="button"
23554
23737
  onClick={() => props.onNavigateLogin?.()}
@@ -23556,9 +23739,9 @@ function AffiliateRegister(props) {
23556
23739
  >
23557
23740
  Already have an account? Log in
23558
23741
  </button>
23559
- </Show71>
23742
+ </Show72>
23560
23743
  </form>
23561
- </Show71>
23744
+ </Show72>
23562
23745
  </div>
23563
23746
  </div>;
23564
23747
  }
@@ -23575,11 +23758,11 @@ function Row2(props) {
23575
23758
  {props.label}
23576
23759
  </span>
23577
23760
  {props.children}
23578
- <Show71 when={props.hint}>
23761
+ <Show72 when={props.hint}>
23579
23762
  <span style={{ "font-size": "0.75rem", color: "var(--app-affiliate-fg-subtle)" }}>
23580
23763
  {props.hint}
23581
23764
  </span>
23582
- </Show71>
23765
+ </Show72>
23583
23766
  </label>;
23584
23767
  }
23585
23768
  function inputStyle2() {
@@ -23609,7 +23792,7 @@ function linkStyle() {
23609
23792
  }
23610
23793
 
23611
23794
  // src/pages/AffiliateLogin.tsx
23612
- import { createSignal as createSignal49, Show as Show72 } from "solid-js";
23795
+ import { createSignal as createSignal49, Show as Show73 } from "solid-js";
23613
23796
  function AffiliateLogin(props) {
23614
23797
  const [email, setEmail] = createSignal49("");
23615
23798
  const [password, setPassword] = createSignal49("");
@@ -23689,7 +23872,7 @@ function AffiliateLogin(props) {
23689
23872
  />
23690
23873
  </label>
23691
23874
 
23692
- <Show72 when={error()}>
23875
+ <Show73 when={error()}>
23693
23876
  <div
23694
23877
  style={{
23695
23878
  padding: "0.625rem 0.875rem",
@@ -23701,7 +23884,7 @@ function AffiliateLogin(props) {
23701
23884
  >
23702
23885
  {error()}
23703
23886
  </div>
23704
- </Show72>
23887
+ </Show73>
23705
23888
 
23706
23889
  <button
23707
23890
  type="submit"
@@ -23720,7 +23903,7 @@ function AffiliateLogin(props) {
23720
23903
  {submitting() ? "Logging in\u2026" : "Log in"}
23721
23904
  </button>
23722
23905
 
23723
- <Show72 when={props.onNavigateForgotPassword}>
23906
+ <Show73 when={props.onNavigateForgotPassword}>
23724
23907
  <button
23725
23908
  type="button"
23726
23909
  onClick={() => props.onNavigateForgotPassword?.()}
@@ -23737,9 +23920,9 @@ function AffiliateLogin(props) {
23737
23920
  >
23738
23921
  Forgot your password?
23739
23922
  </button>
23740
- </Show72>
23923
+ </Show73>
23741
23924
 
23742
- <Show72 when={props.onNavigateRegister}>
23925
+ <Show73 when={props.onNavigateRegister}>
23743
23926
  <button
23744
23927
  type="button"
23745
23928
  onClick={() => props.onNavigateRegister?.()}
@@ -23756,7 +23939,7 @@ function AffiliateLogin(props) {
23756
23939
  >
23757
23940
  New affiliate? Apply
23758
23941
  </button>
23759
- </Show72>
23942
+ </Show73>
23760
23943
  </form>
23761
23944
  </div>
23762
23945
  </div>;
@@ -23784,7 +23967,7 @@ function inputStyle3() {
23784
23967
  }
23785
23968
 
23786
23969
  // src/pages/ForgotPassword.tsx
23787
- import { createSignal as createSignal50, Show as Show73 } from "solid-js";
23970
+ import { createSignal as createSignal50, Show as Show74 } from "solid-js";
23788
23971
  function ForgotPasswordPage(props) {
23789
23972
  const [email, setEmail] = createSignal50("");
23790
23973
  const [submitting, setSubmitting] = createSignal50(false);
@@ -23841,7 +24024,7 @@ function ForgotPasswordPage(props) {
23841
24024
  Reset your password
23842
24025
  </h1>
23843
24026
 
23844
- <Show73
24027
+ <Show74
23845
24028
  when={!message()}
23846
24029
  fallback={<>
23847
24030
  <div
@@ -23858,7 +24041,7 @@ function ForgotPasswordPage(props) {
23858
24041
  The link is good for one hour. If nothing arrives, check your spam folder — and make sure this is the
23859
24042
  address you signed up with.
23860
24043
  </p>
23861
- <Show73 when={props.onDone}>
24044
+ <Show74 when={props.onDone}>
23862
24045
  <button
23863
24046
  type="button"
23864
24047
  onClick={() => props.onDone?.()}
@@ -23874,7 +24057,7 @@ function ForgotPasswordPage(props) {
23874
24057
  >
23875
24058
  Back to sign in
23876
24059
  </button>
23877
- </Show73>
24060
+ </Show74>
23878
24061
  </>}
23879
24062
  >
23880
24063
  <form
@@ -23892,7 +24075,7 @@ function ForgotPasswordPage(props) {
23892
24075
  />
23893
24076
  </label>
23894
24077
 
23895
- <Show73 when={error()}>
24078
+ <Show74 when={error()}>
23896
24079
  <div
23897
24080
  style={{
23898
24081
  padding: "0.625rem 0.875rem",
@@ -23904,7 +24087,7 @@ function ForgotPasswordPage(props) {
23904
24087
  >
23905
24088
  {error()}
23906
24089
  </div>
23907
- </Show73>
24090
+ </Show74>
23908
24091
 
23909
24092
  <button
23910
24093
  type="submit"
@@ -23923,7 +24106,7 @@ function ForgotPasswordPage(props) {
23923
24106
  {submitting() ? "Sending\u2026" : "Send reset link"}
23924
24107
  </button>
23925
24108
  </form>
23926
- </Show73>
24109
+ </Show74>
23927
24110
  </div>
23928
24111
  </div>;
23929
24112
  }
@@ -23950,7 +24133,7 @@ function inputStyle4() {
23950
24133
  }
23951
24134
 
23952
24135
  // src/pages/ResetPassword.tsx
23953
- import { createSignal as createSignal51, Show as Show74 } from "solid-js";
24136
+ import { createSignal as createSignal51, Show as Show75 } from "solid-js";
23954
24137
  function queryParam(name) {
23955
24138
  if (typeof window === "undefined") return "";
23956
24139
  return new URLSearchParams(window.location.search).get(name) ?? "";
@@ -24024,7 +24207,7 @@ function ResetPasswordPage(props) {
24024
24207
  Choose a new password
24025
24208
  </h1>
24026
24209
 
24027
- <Show74
24210
+ <Show75
24028
24211
  when={!message()}
24029
24212
  fallback={<div
24030
24213
  style={{
@@ -24065,7 +24248,7 @@ function ResetPasswordPage(props) {
24065
24248
  />
24066
24249
  </label>
24067
24250
 
24068
- <Show74 when={error()}>
24251
+ <Show75 when={error()}>
24069
24252
  <div
24070
24253
  style={{
24071
24254
  padding: "0.625rem 0.875rem",
@@ -24077,7 +24260,7 @@ function ResetPasswordPage(props) {
24077
24260
  >
24078
24261
  {error()}
24079
24262
  </div>
24080
- </Show74>
24263
+ </Show75>
24081
24264
 
24082
24265
  <button
24083
24266
  type="submit"
@@ -24096,7 +24279,7 @@ function ResetPasswordPage(props) {
24096
24279
  {submitting() ? "Resetting\u2026" : "Reset password"}
24097
24280
  </button>
24098
24281
  </form>
24099
- </Show74>
24282
+ </Show75>
24100
24283
  </div>
24101
24284
  </div>;
24102
24285
  }
@@ -24123,7 +24306,7 @@ function inputStyle5() {
24123
24306
  }
24124
24307
 
24125
24308
  // src/pages/AffiliateForgotPassword.tsx
24126
- import { createSignal as createSignal52, Show as Show75 } from "solid-js";
24309
+ import { createSignal as createSignal52, Show as Show76 } from "solid-js";
24127
24310
  function AffiliateForgotPassword(props) {
24128
24311
  const [email, setEmail] = createSignal52("");
24129
24312
  const [submitting, setSubmitting] = createSignal52(false);
@@ -24149,7 +24332,7 @@ function AffiliateForgotPassword(props) {
24149
24332
  <div style={cardStyle()}>
24150
24333
  <h1 style={headingStyle()}>Reset your password</h1>
24151
24334
 
24152
- <Show75
24335
+ <Show76
24153
24336
  when={!message()}
24154
24337
  fallback={<p style={{ margin: 0, "font-size": "0.9rem" }}>{message()}</p>}
24155
24338
  >
@@ -24169,21 +24352,21 @@ function AffiliateForgotPassword(props) {
24169
24352
  />
24170
24353
  </label>
24171
24354
 
24172
- <Show75 when={error()}>
24355
+ <Show76 when={error()}>
24173
24356
  <div style={errorStyle()}>{error()}</div>
24174
- </Show75>
24357
+ </Show76>
24175
24358
 
24176
24359
  <button type="submit" disabled={submitting()} style={primaryButtonStyle(submitting())}>
24177
24360
  {submitting() ? "Sending\u2026" : "Send reset link"}
24178
24361
  </button>
24179
24362
  </form>
24180
- </Show75>
24363
+ </Show76>
24181
24364
 
24182
- <Show75 when={props.onNavigateLogin}>
24365
+ <Show76 when={props.onNavigateLogin}>
24183
24366
  <button type="button" onClick={() => props.onNavigateLogin?.()} style={linkStyle2()}>
24184
24367
  Back to login
24185
24368
  </button>
24186
- </Show75>
24369
+ </Show76>
24187
24370
  </div>
24188
24371
  </div>;
24189
24372
  }
@@ -24274,7 +24457,7 @@ function linkStyle2() {
24274
24457
  }
24275
24458
 
24276
24459
  // src/pages/AffiliateResetPassword.tsx
24277
- import { createSignal as createSignal53, Show as Show76 } from "solid-js";
24460
+ import { createSignal as createSignal53, Show as Show77 } from "solid-js";
24278
24461
  function queryParam2(name) {
24279
24462
  if (typeof window === "undefined") return "";
24280
24463
  return new URLSearchParams(window.location.search).get(name) ?? "";
@@ -24321,7 +24504,7 @@ function AffiliateResetPassword(props) {
24321
24504
  <div style={cardStyle2()}>
24322
24505
  <h1 style={headingStyle2()}>Choose a new password</h1>
24323
24506
 
24324
- <Show76
24507
+ <Show77
24325
24508
  when={!done()}
24326
24509
  fallback={<p style={{ margin: 0, "font-size": "0.9rem" }}>
24327
24510
  Your password has been reset. You can now log in with your new password.
@@ -24353,15 +24536,15 @@ function AffiliateResetPassword(props) {
24353
24536
  />
24354
24537
  </label>
24355
24538
 
24356
- <Show76 when={error()}>
24539
+ <Show77 when={error()}>
24357
24540
  <div style={errorStyle2()}>{error()}</div>
24358
- </Show76>
24541
+ </Show77>
24359
24542
 
24360
24543
  <button type="submit" disabled={submitting()} style={primaryButtonStyle2(submitting())}>
24361
24544
  {submitting() ? "Saving\u2026" : "Set new password"}
24362
24545
  </button>
24363
24546
  </form>
24364
- </Show76>
24547
+ </Show77>
24365
24548
  </div>
24366
24549
  </div>;
24367
24550
  }
@@ -24454,4 +24637,4 @@ export {
24454
24637
  AffiliateForgotPassword,
24455
24638
  AffiliateResetPassword
24456
24639
  };
24457
- //# sourceMappingURL=FM3JH2ZD.jsx.map
24640
+ //# sourceMappingURL=WO4H2CXD.jsx.map