@apextelemed/partner-core 0.17.0-dev.54 → 0.17.0-dev.55

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 (41) hide show
  1. package/README.md +4 -5
  2. package/dist/api/index.d.ts +1 -1
  3. package/dist/api/index.js +3 -3
  4. package/dist/api/index.jsx +3 -3
  5. package/dist/chunk/{VUDLDIMS.jsx → 2LZ4RMMO.jsx} +541 -554
  6. package/dist/chunk/{MUNFWRXF.js → 54ICTHZX.js} +6 -3
  7. package/dist/chunk/54ICTHZX.js.map +1 -0
  8. package/dist/chunk/{WTQ63KR4.js → 5DNJWMSW.js} +3 -3
  9. package/dist/chunk/{WTQ63KR4.js.map → 5DNJWMSW.js.map} +1 -1
  10. package/dist/chunk/{Z5QDFCLZ.js → ERW2WNI6.js} +330 -343
  11. package/dist/chunk/ERW2WNI6.js.map +1 -0
  12. package/dist/chunk/{BI7NBPCA.jsx → FAKJL3AD.jsx} +5 -2
  13. package/dist/chunk/{P3TJ6ALH.jsx → KI3RUQTI.jsx} +2 -2
  14. package/dist/chunk/{CAG35QKZ.jsx → KSWWT576.jsx} +5 -5
  15. package/dist/chunk/{XDRP4X2N.js → L6ZE7Q7C.js} +3 -3
  16. package/dist/chunk/{XDRP4X2N.js.map → L6ZE7Q7C.js.map} +1 -1
  17. package/dist/chunk/{Q2L3CZPR.jsx → LON6ZV4S.jsx} +2 -2
  18. package/dist/chunk/{MQRPGAH7.js → Q7VYJUQC.js} +5 -5
  19. package/dist/chunk/{MQRPGAH7.js.map → Q7VYJUQC.js.map} +1 -1
  20. package/dist/chunk/{XI4OZ4SZ.js → QJAMR6MG.js} +3 -3
  21. package/dist/chunk/{XI4OZ4SZ.js.map → QJAMR6MG.js.map} +1 -1
  22. package/dist/chunk/{HXBRBHFR.jsx → TFELHUFX.jsx} +2 -2
  23. package/dist/chunk/{F5PDIE2J.js → TKN2GOKS.js} +6 -6
  24. package/dist/chunk/{F5PDIE2J.js.map → TKN2GOKS.js.map} +1 -1
  25. package/dist/chunk/{DC24EAWT.jsx → YGKENMTV.jsx} +4 -4
  26. package/dist/{client-BH1wq2Pp.d.ts → client-CEt_6guF.d.ts} +5 -2
  27. package/dist/flows/index.d.ts +1 -1
  28. package/dist/flows/index.js +6 -6
  29. package/dist/flows/index.jsx +6 -6
  30. package/dist/index/index.d.ts +1 -1
  31. package/dist/index/index.js +7 -7
  32. package/dist/index/index.jsx +7 -7
  33. package/dist/pages/index.d.ts +8 -6
  34. package/dist/pages/index.js +5 -5
  35. package/dist/pages/index.jsx +5 -5
  36. package/dist/stores/index.d.ts +1 -1
  37. package/dist/stores/index.js +2 -2
  38. package/dist/stores/index.jsx +2 -2
  39. package/package.json +1 -1
  40. package/dist/chunk/MUNFWRXF.js.map +0 -1
  41. package/dist/chunk/Z5QDFCLZ.js.map +0 -1
@@ -84,10 +84,10 @@ import {
84
84
  useSurveyV2Flow,
85
85
  useUpdatePaymentMethodFlow,
86
86
  visibleWarnings
87
- } from "./DC24EAWT.jsx";
87
+ } from "./YGKENMTV.jsx";
88
88
  import {
89
89
  fetchFunnelConfig
90
- } from "./HXBRBHFR.jsx";
90
+ } from "./TFELHUFX.jsx";
91
91
  import {
92
92
  usePrimitives
93
93
  } from "./J63XPQP4.jsx";
@@ -95,7 +95,7 @@ import {
95
95
  affiliateAuth_default,
96
96
  auth_default,
97
97
  cart_default
98
- } from "./Q2L3CZPR.jsx";
98
+ } from "./LON6ZV4S.jsx";
99
99
  import {
100
100
  ADMIN_ROLES,
101
101
  ApiError,
@@ -112,7 +112,7 @@ import {
112
112
  offersApi,
113
113
  subscriptionsApi,
114
114
  usersApi
115
- } from "./BI7NBPCA.jsx";
115
+ } from "./FAKJL3AD.jsx";
116
116
 
117
117
  // src/pages/Survey.tsx
118
118
  import { Show, For, createEffect, on } from "solid-js";
@@ -4108,7 +4108,7 @@ var US_STATES3 = [
4108
4108
  var US_STATE_OPTIONS3 = US_STATES3.map((s) => ({ value: s, label: s }));
4109
4109
 
4110
4110
  // src/pages/AdminDashboard.tsx
4111
- import { createEffect as createEffect16, createSignal as createSignal44, ErrorBoundary, Match as Match5, Show as Show62, Switch as Switch5, For as For48 } from "solid-js";
4111
+ import { createEffect as createEffect16, createSignal as createSignal43, ErrorBoundary, Match as Match5, Show as Show61, Switch as Switch5, For as For48 } from "solid-js";
4112
4112
 
4113
4113
  // src/pages/admin/Affiliates.tsx
4114
4114
  import { createSignal as createSignal10, For as For14, Match, Switch } from "solid-js";
@@ -21864,191 +21864,7 @@ function Features() {
21864
21864
  }
21865
21865
 
21866
21866
  // src/pages/admin/Admins.tsx
21867
- import { createResource as createResource28, createSignal as createSignal43, For as For47, Show as Show61 } from "solid-js";
21868
-
21869
- // src/pages/AcceptAdminInvite.tsx
21870
- import { createSignal as createSignal42, Show as Show60 } from "solid-js";
21871
- function queryParam(name) {
21872
- if (typeof window === "undefined") return "";
21873
- return new URLSearchParams(window.location.search).get(name) ?? "";
21874
- }
21875
- var MIN_PASSWORD_LENGTH = 8;
21876
- var ADMIN_INVITE_PARAM = "adminInvite";
21877
- function isAdminInviteLink() {
21878
- return typeof window !== "undefined" && new URLSearchParams(window.location.search).has(ADMIN_INVITE_PARAM);
21879
- }
21880
- function AcceptAdminInvitePage(props) {
21881
- const token = () => props.token ?? queryParam("token");
21882
- const email = () => props.email ?? queryParam("email");
21883
- const [password, setPassword] = createSignal42("");
21884
- const [confirm2, setConfirm] = createSignal42("");
21885
- const [submitting, setSubmitting] = createSignal42(false);
21886
- const [error, setError] = createSignal42(null);
21887
- const [message, setMessage] = createSignal42(null);
21888
- async function handleSubmit(e) {
21889
- e.preventDefault();
21890
- setError(null);
21891
- if (!token() || !email()) {
21892
- setError("This invite link is incomplete. Ask the person who invited you to send a new one.");
21893
- return;
21894
- }
21895
- if (password().length < MIN_PASSWORD_LENGTH) {
21896
- setError(`Use at least ${MIN_PASSWORD_LENGTH} characters.`);
21897
- return;
21898
- }
21899
- if (password() !== confirm2()) {
21900
- setError("Passwords do not match.");
21901
- return;
21902
- }
21903
- setSubmitting(true);
21904
- try {
21905
- await authApi.acceptAdminInvite({
21906
- email: email().trim().toLowerCase(),
21907
- token: token(),
21908
- password: password()
21909
- });
21910
- setMessage("You\u2019re all set. Sign in with this email and your new password.");
21911
- props.onSuccess?.();
21912
- } catch (err) {
21913
- setError(err instanceof Error ? err.message : "Something went wrong");
21914
- } finally {
21915
- setSubmitting(false);
21916
- }
21917
- }
21918
- return <div
21919
- class="app-affiliate-root"
21920
- style={{
21921
- background: "var(--app-affiliate-bg)",
21922
- color: "var(--app-affiliate-fg)",
21923
- "min-height": "100vh",
21924
- display: "flex",
21925
- "align-items": "center",
21926
- "justify-content": "center",
21927
- padding: "2rem 1rem"
21928
- }}
21929
- >
21930
- <div
21931
- style={{
21932
- width: "100%",
21933
- "max-width": "24rem",
21934
- background: "var(--app-affiliate-surface)",
21935
- border: "1px solid var(--app-affiliate-border)",
21936
- "border-radius": "var(--app-affiliate-radius)",
21937
- padding: "2rem",
21938
- display: "flex",
21939
- "flex-direction": "column",
21940
- gap: "1.25rem"
21941
- }}
21942
- >
21943
- <h1
21944
- style={{
21945
- "font-family": "var(--app-affiliate-font-display)",
21946
- margin: 0,
21947
- "font-size": "1.5rem"
21948
- }}
21949
- >
21950
- Accept your admin invite
21951
- </h1>
21952
-
21953
- <Show60
21954
- when={!message()}
21955
- fallback={<div
21956
- style={{
21957
- padding: "0.625rem 0.875rem",
21958
- background: "var(--app-affiliate-surface-light)",
21959
- "border-radius": "var(--app-affiliate-radius-sm)",
21960
- "font-size": "0.875rem"
21961
- }}
21962
- >
21963
- {message()}
21964
- </div>}
21965
- >
21966
- <form
21967
- onSubmit={handleSubmit}
21968
- style={{ display: "flex", "flex-direction": "column", gap: "0.875rem" }}
21969
- >
21970
- <label style={{ display: "flex", "flex-direction": "column", gap: "0.35rem" }}>
21971
- <span style={labelStyle()}>Choose a password</span>
21972
- <input
21973
- type="password"
21974
- required
21975
- value={password()}
21976
- onInput={(e) => setPassword(e.currentTarget.value)}
21977
- autocomplete="new-password"
21978
- style={inputStyle()}
21979
- />
21980
- </label>
21981
-
21982
- <label style={{ display: "flex", "flex-direction": "column", gap: "0.35rem" }}>
21983
- <span style={labelStyle()}>Confirm password</span>
21984
- <input
21985
- type="password"
21986
- required
21987
- value={confirm2()}
21988
- onInput={(e) => setConfirm(e.currentTarget.value)}
21989
- autocomplete="new-password"
21990
- style={inputStyle()}
21991
- />
21992
- </label>
21993
-
21994
- <Show60 when={error()}>
21995
- <div
21996
- style={{
21997
- padding: "0.625rem 0.875rem",
21998
- background: "var(--app-affiliate-danger-bg)",
21999
- color: "var(--app-affiliate-danger-fg)",
22000
- "border-radius": "var(--app-affiliate-radius-sm)",
22001
- "font-size": "0.875rem"
22002
- }}
22003
- >
22004
- {error()}
22005
- </div>
22006
- </Show60>
22007
-
22008
- <button
22009
- type="submit"
22010
- disabled={submitting()}
22011
- style={{
22012
- padding: "0.75rem 1rem",
22013
- background: "var(--app-affiliate-primary)",
22014
- color: "var(--app-affiliate-primary-fg)",
22015
- border: "none",
22016
- "border-radius": "var(--app-affiliate-radius-sm)",
22017
- "font-weight": "600",
22018
- cursor: submitting() ? "not-allowed" : "pointer",
22019
- opacity: submitting() ? 0.7 : 1
22020
- }}
22021
- >
22022
- {submitting() ? "Saving\u2026" : "Accept invite"}
22023
- </button>
22024
- </form>
22025
- </Show60>
22026
- </div>
22027
- </div>;
22028
- }
22029
- function labelStyle() {
22030
- return {
22031
- "font-size": "0.75rem",
22032
- "text-transform": "uppercase",
22033
- "letter-spacing": "0.05em",
22034
- color: "var(--app-affiliate-fg-muted)"
22035
- };
22036
- }
22037
- function inputStyle() {
22038
- return {
22039
- width: "100%",
22040
- padding: "0.625rem 0.75rem",
22041
- background: "var(--app-affiliate-surface-light)",
22042
- color: "var(--app-affiliate-fg)",
22043
- border: "1px solid var(--app-affiliate-border)",
22044
- "border-radius": "var(--app-affiliate-radius-sm)",
22045
- "font-size": "0.9rem",
22046
- "font-family": "inherit",
22047
- "box-sizing": "border-box"
22048
- };
22049
- }
22050
-
22051
- // src/pages/admin/Admins.tsx
21867
+ import { createResource as createResource28, createSignal as createSignal42, For as For47, Show as Show60 } from "solid-js";
22052
21868
  var ADMIN_ROLE_SUMMARY = {
22053
21869
  owner: "Everything, including managing admins",
22054
21870
  support: "Customers, patient records, support, subscriptions and refunds",
@@ -22061,10 +21877,6 @@ var ROLE_LABEL = {
22061
21877
  accounting: "Accounting",
22062
21878
  marketing: "Marketing"
22063
21879
  };
22064
- function defaultAcceptUrl() {
22065
- if (typeof window === "undefined") return "";
22066
- return `${window.location.origin}${window.location.pathname}?${ADMIN_INVITE_PARAM}=1`;
22067
- }
22068
21880
  function RoleSelect(props) {
22069
21881
  return <select
22070
21882
  class="app-admin-input"
@@ -22072,20 +21884,20 @@ function RoleSelect(props) {
22072
21884
  disabled={props.disabled}
22073
21885
  onChange={(e) => props.onChange(e.currentTarget.value)}
22074
21886
  >
22075
- <Show61 when={props.value === null}>
21887
+ <Show60 when={props.value === null}>
22076
21888
  <option value="" disabled>
22077
21889
  Unknown role
22078
21890
  </option>
22079
- </Show61>
21891
+ </Show60>
22080
21892
  <For47 each={ADMIN_ROLES}>{(r) => <option value={r}>{ROLE_LABEL[r]}</option>}</For47>
22081
21893
  </select>;
22082
21894
  }
22083
21895
  function Admins(props) {
22084
21896
  const [team, { refetch }] = createResource28(() => adminApi.listAdminTeam());
22085
- const [email, setEmail] = createSignal43("");
22086
- const [role, setRole] = createSignal43("marketing");
22087
- const [inviting, setInviting] = createSignal43(false);
22088
- const [apexNote, setApexNote] = createSignal43(null);
21897
+ const [email, setEmail] = createSignal42("");
21898
+ const [role, setRole] = createSignal42("marketing");
21899
+ const [inviting, setInviting] = createSignal42(false);
21900
+ const [apexNote, setApexNote] = createSignal42(null);
22089
21901
  async function run(action, success) {
22090
21902
  try {
22091
21903
  await action();
@@ -22105,7 +21917,7 @@ function Admins(props) {
22105
21917
  const result = await adminApi.inviteAdmin({
22106
21918
  email: address,
22107
21919
  adminRole: role(),
22108
- acceptUrl: props.acceptInviteUrl ?? defaultAcceptUrl()
21920
+ acceptUrl: props.acceptInviteUrl
22109
21921
  });
22110
21922
  if (result.apexInviteRequired) {
22111
21923
  setApexNote(
@@ -22165,15 +21977,15 @@ function Admins(props) {
22165
21977
  <div class="app-admin-text-muted" style={{ "font-size": "0.8125rem", "margin-top": "0.5rem" }}>
22166
21978
  {ROLE_LABEL[role()]}: {ADMIN_ROLE_SUMMARY[role()]}
22167
21979
  </div>
22168
- <Show61 when={apexNote()}>
21980
+ <Show60 when={apexNote()}>
22169
21981
  <div class="app-admin-card-soft" style={{ padding: "0.625rem 0.875rem", "margin-top": "0.75rem", "font-size": "0.875rem" }}>
22170
21982
  {apexNote()}
22171
21983
  </div>
22172
- </Show61>
21984
+ </Show60>
22173
21985
  </form>
22174
21986
 
22175
- <Show61 when={!team.loading} fallback={<LoadingSpinner />}>
22176
- <Show61 when={!team.error} fallback={<EmptyState message="Couldn't load the admin team." />}>
21987
+ <Show60 when={!team.loading} fallback={<LoadingSpinner />}>
21988
+ <Show60 when={!team.error} fallback={<EmptyState message="Couldn't load the admin team." />}>
22177
21989
  <table class="app-admin-table">
22178
21990
  <thead>
22179
21991
  <tr>
@@ -22187,9 +21999,9 @@ function Admins(props) {
22187
21999
  {(a) => <tr>
22188
22000
  <td>
22189
22001
  {a.email}
22190
- <Show61 when={isMe(a)}>
22002
+ <Show60 when={isMe(a)}>
22191
22003
  <span class="app-admin-text-muted"> (you)</span>
22192
- </Show61>
22004
+ </Show60>
22193
22005
  </td>
22194
22006
  <td>
22195
22007
  <RoleSelect value={a.adminRole} onChange={(r) => void changeRole(a, r)} />
@@ -22204,7 +22016,7 @@ function Admins(props) {
22204
22016
  </tbody>
22205
22017
  </table>
22206
22018
 
22207
- <Show61 when={(team()?.invites ?? []).length > 0}>
22019
+ <Show60 when={(team()?.invites ?? []).length > 0}>
22208
22020
  <div class="app-admin-heading" style={{ "font-size": "1rem", margin: "1.5rem 0 0.5rem" }}>
22209
22021
  Pending invites
22210
22022
  </div>
@@ -22236,9 +22048,9 @@ function Admins(props) {
22236
22048
  </For47>
22237
22049
  </tbody>
22238
22050
  </table>
22239
- </Show61>
22240
- </Show61>
22241
- </Show61>
22051
+ </Show60>
22052
+ </Show60>
22053
+ </Show60>
22242
22054
  </div>;
22243
22055
  }
22244
22056
 
@@ -22316,16 +22128,15 @@ function AdminDashboard(props) {
22316
22128
  const isTabEnabled = (tab) => orderedTabs().includes(tab);
22317
22129
  const affiliatesEnabled = () => props.enabledTabs ? props.enabledTabs.includes("affiliates") : true;
22318
22130
  const fallbackTab = () => props.defaultTab ?? orderedTabs()[0] ?? "dashboard";
22319
- const [internalTab, setInternalTab] = createSignal44(fallbackTab());
22131
+ const [internalTab, setInternalTab] = createSignal43(fallbackTab());
22320
22132
  const currentTab = () => props.activeTab ?? internalTab();
22321
- const [drawerOpen, setDrawerOpen] = createSignal44(false);
22133
+ const [drawerOpen, setDrawerOpen] = createSignal43(false);
22322
22134
  createEffect16(() => {
22323
22135
  setAdminToast(props.toast);
22324
22136
  });
22325
- const inviteLink = isAdminInviteLink();
22326
22137
  createEffect16(() => {
22327
22138
  const auth = props.auth;
22328
- if (!auth || inviteLink) return;
22139
+ if (!auth) return;
22329
22140
  if (!auth.isAuthenticated()) {
22330
22141
  auth.onUnauthenticated?.();
22331
22142
  return;
@@ -22335,7 +22146,6 @@ function AdminDashboard(props) {
22335
22146
  }
22336
22147
  });
22337
22148
  const adminAllowed = () => {
22338
- if (inviteLink) return false;
22339
22149
  const auth = props.auth;
22340
22150
  if (!auth) return true;
22341
22151
  return auth.isAuthenticated() && auth.isHydrated() && auth.isAdmin();
@@ -22349,9 +22159,9 @@ function AdminDashboard(props) {
22349
22159
  void adminApi.getSupportChannel().then((s) => setSupportChannelMode(s.mode)).catch(() => {
22350
22160
  });
22351
22161
  });
22352
- const [pendingCustomerUid, setPendingCustomerUid] = createSignal44(null);
22353
- const [pendingThreadId, setPendingThreadId] = createSignal44(null);
22354
- const [pendingTemplateId, setPendingTemplateId] = createSignal44(null);
22162
+ const [pendingCustomerUid, setPendingCustomerUid] = createSignal43(null);
22163
+ const [pendingThreadId, setPendingThreadId] = createSignal43(null);
22164
+ const [pendingTemplateId, setPendingTemplateId] = createSignal43(null);
22355
22165
  const handleTabClick = (tab, opts) => {
22356
22166
  if (!opts?.keepPending) {
22357
22167
  setPendingCustomerUid(null);
@@ -22400,16 +22210,15 @@ function AdminDashboard(props) {
22400
22210
  color: currentTab() === btnProps.tab ? "var(--app-admin-primary-soft-fg)" : "var(--app-admin-fg-muted)"
22401
22211
  }}
22402
22212
  >
22403
- <Show62 when={props.tabIcons?.[btnProps.tab]}>
22213
+ <Show61 when={props.tabIcons?.[btnProps.tab]}>
22404
22214
  <span
22405
22215
  class={props.tabIcons[btnProps.tab]}
22406
22216
  style={{ "font-size": "1rem", opacity: 0.7, "flex-shrink": 0 }}
22407
22217
  />
22408
- </Show62>
22218
+ </Show61>
22409
22219
  {TAB_LABELS[btnProps.tab]}
22410
22220
  </button>;
22411
- if (inviteLink) return <AcceptAdminInvitePage />;
22412
- return <Show62 when={adminAllowed()} fallback={<AdminGateSpinner topOffset={props.topOffset ?? "0px"} />}>
22221
+ return <Show61 when={adminAllowed()} fallback={<AdminGateSpinner topOffset={props.topOffset ?? "0px"} />}>
22413
22222
  <AdminNavContext.Provider value={adminNav}>
22414
22223
  {
22415
22224
  /* data-scrollable opts the whole admin out of a host page's smooth-scroll
@@ -22494,9 +22303,9 @@ function AdminDashboard(props) {
22494
22303
  (which would wedge the sidebar nav), and switching tabs mounts a fresh
22495
22304
  boundary that clears a prior tab's error. */
22496
22305
  }
22497
- <Show62 when={currentTab()} keyed>
22306
+ <Show61 when={currentTab()} keyed>
22498
22307
  <ErrorBoundary fallback={(err, reset) => <AdminTabError error={err} reset={reset} />}>
22499
- <Show62
22308
+ <Show61
22500
22309
  when={adminMe() === void 0 || roleAllows(currentTab())}
22501
22310
  fallback={<RoleForbidden />}
22502
22311
  >
@@ -22572,13 +22381,13 @@ function AdminDashboard(props) {
22572
22381
  <Admins acceptInviteUrl={props.adminInviteAcceptUrl} />
22573
22382
  </Match5>
22574
22383
  </Switch5>
22575
- </Show62>
22384
+ </Show61>
22576
22385
  </ErrorBoundary>
22577
- </Show62>
22386
+ </Show61>
22578
22387
  </div>
22579
22388
  </div>
22580
22389
  </AdminNavContext.Provider>
22581
- </Show62>;
22390
+ </Show61>;
22582
22391
  }
22583
22392
  function RoleForbidden() {
22584
22393
  return <div
@@ -22740,7 +22549,7 @@ function affiliateSubTabFromPath(pathname, base = "/admin") {
22740
22549
  }
22741
22550
 
22742
22551
  // src/pages/admin/PatientDashboardPreview.tsx
22743
- import { Show as Show63, For as For49 } from "solid-js";
22552
+ import { Show as Show62, For as For49 } from "solid-js";
22744
22553
  function PatientDashboardPreview(props) {
22745
22554
  const data = useDashboardData({ authToken: () => props.token });
22746
22555
  return <div
@@ -22782,7 +22591,7 @@ function PatientDashboardPreview(props) {
22782
22591
  /* A failed read is an error with a retry — never presented as an
22783
22592
  empty dashboard (the customer may have plenty of data). */
22784
22593
  }
22785
- <Show63 when={data.error()} keyed>
22594
+ <Show62 when={data.error()} keyed>
22786
22595
  {(msg) => <div
22787
22596
  style={{
22788
22597
  display: "flex",
@@ -22807,10 +22616,10 @@ function PatientDashboardPreview(props) {
22807
22616
  Retry
22808
22617
  </button>
22809
22618
  </div>}
22810
- </Show63>
22619
+ </Show62>
22811
22620
 
22812
- <Show63 when={!data.profile.loading} fallback={<LoadingSpinner />}>
22813
- <Show63
22621
+ <Show62 when={!data.profile.loading} fallback={<LoadingSpinner />}>
22622
+ <Show62
22814
22623
  when={data.profile()}
22815
22624
  fallback={<p style={{ color: "var(--app-admin-fg-muted)", "font-size": "0.875rem" }}>
22816
22625
  Could not load this customer's dashboard.
@@ -22843,7 +22652,7 @@ function PatientDashboardPreview(props) {
22843
22652
  }
22844
22653
  <div>
22845
22654
  <h3 style={panelSectionHeader}>Subscription</h3>
22846
- <Show63
22655
+ <Show62
22847
22656
  when={data.subscription()}
22848
22657
  fallback={<p
22849
22658
  style={{
@@ -22863,13 +22672,13 @@ function PatientDashboardPreview(props) {
22863
22672
  }}
22864
22673
  >
22865
22674
  <span style={{ "font-size": "0.875rem", "font-weight": "500" }}>
22866
- <Show63 when={sub().amount != null} fallback="Subscription">
22675
+ <Show62 when={sub().amount != null} fallback="Subscription">
22867
22676
  {centsToUsd(sub().amount)}/mo
22868
- </Show63>
22677
+ </Show62>
22869
22678
  </span>
22870
22679
  <StatusBadge status={sub().status} />
22871
22680
  </div>
22872
- <Show63 when={sub().nextBillingDate}>
22681
+ <Show62 when={sub().nextBillingDate}>
22873
22682
  <p
22874
22683
  style={{
22875
22684
  "font-size": "0.75rem",
@@ -22879,15 +22688,15 @@ function PatientDashboardPreview(props) {
22879
22688
  >
22880
22689
  Next charge {fmtDate(sub().nextBillingDate)}
22881
22690
  </p>
22882
- </Show63>
22691
+ </Show62>
22883
22692
  </div>}
22884
- </Show63>
22693
+ </Show62>
22885
22694
  </div>
22886
22695
 
22887
22696
  {
22888
22697
  /* Prescription status */
22889
22698
  }
22890
- <Show63 when={data.rxStatus()}>
22699
+ <Show62 when={data.rxStatus()}>
22891
22700
  {(rx) => <div>
22892
22701
  <h3 style={panelSectionHeader}>Prescription status</h3>
22893
22702
  <div class="app-admin-card-soft" style={{ padding: "0.75rem" }}>
@@ -22903,7 +22712,7 @@ function PatientDashboardPreview(props) {
22903
22712
  </span>
22904
22713
  <StatusBadge status={rx().status} />
22905
22714
  </div>
22906
- <Show63 when={rx().reason}>
22715
+ <Show62 when={rx().reason}>
22907
22716
  <p
22908
22717
  style={{
22909
22718
  "font-size": "0.75rem",
@@ -22913,17 +22722,17 @@ function PatientDashboardPreview(props) {
22913
22722
  >
22914
22723
  {rx().reason}
22915
22724
  </p>
22916
- </Show63>
22725
+ </Show62>
22917
22726
  </div>
22918
22727
  </div>}
22919
- </Show63>
22728
+ </Show62>
22920
22729
 
22921
22730
  {
22922
22731
  /* Prescription requests */
22923
22732
  }
22924
22733
  <div>
22925
22734
  <h3 style={panelSectionHeader}>Prescription requests</h3>
22926
- <Show63
22735
+ <Show62
22927
22736
  when={(data.rxList() ?? []).length > 0}
22928
22737
  fallback={<p
22929
22738
  style={{
@@ -22950,7 +22759,7 @@ function PatientDashboardPreview(props) {
22950
22759
  >
22951
22760
  {req.drugName || req.drugId || "Prescription"}
22952
22761
  </span>
22953
- <Show63 when={req.dosage}>
22762
+ <Show62 when={req.dosage}>
22954
22763
  <span
22955
22764
  style={{
22956
22765
  "font-size": "0.75rem",
@@ -22960,7 +22769,7 @@ function PatientDashboardPreview(props) {
22960
22769
  >
22961
22770
  {req.dosage}
22962
22771
  </span>
22963
- </Show63>
22772
+ </Show62>
22964
22773
  </div>
22965
22774
  <StatusBadge status={req.status} />
22966
22775
  </div>
@@ -22971,15 +22780,15 @@ function PatientDashboardPreview(props) {
22971
22780
  "margin-top": "0.25rem"
22972
22781
  }}
22973
22782
  >
22974
- <Show63 when={req.priceCents != null}>
22783
+ <Show62 when={req.priceCents != null}>
22975
22784
  <span>{centsToUsd(req.priceCents)} · </span>
22976
- </Show63>
22785
+ </Show62>
22977
22786
  {fmtDate(req.createdAt)}
22978
22787
  </div>
22979
22788
  </div>}
22980
22789
  </For49>
22981
22790
  </div>
22982
- </Show63>
22791
+ </Show62>
22983
22792
  </div>
22984
22793
 
22985
22794
  {
@@ -22987,7 +22796,7 @@ function PatientDashboardPreview(props) {
22987
22796
  }
22988
22797
  <div>
22989
22798
  <h3 style={panelSectionHeader}>Pending surveys</h3>
22990
- <Show63
22799
+ <Show62
22991
22800
  when={(data.pendingSurveys() ?? []).length > 0}
22992
22801
  fallback={<p
22993
22802
  style={{
@@ -23016,18 +22825,18 @@ function PatientDashboardPreview(props) {
23016
22825
  </div>}
23017
22826
  </For49>
23018
22827
  </div>
23019
- </Show63>
22828
+ </Show62>
23020
22829
  </div>
23021
22830
  </>}
23022
- </Show63>
23023
- </Show63>
22831
+ </Show62>
22832
+ </Show62>
23024
22833
  </div>
23025
22834
  </div>
23026
22835
  </div>;
23027
22836
  }
23028
22837
 
23029
22838
  // src/pages/UpdatePaymentMethod.tsx
23030
- import { Show as Show64, createResource as createResource29 } from "solid-js";
22839
+ import { Show as Show63, createResource as createResource29 } from "solid-js";
23031
22840
  var LIVE = /* @__PURE__ */ new Set(["active", "paused", "past_due"]);
23032
22841
  function UpdatePaymentMethod(props) {
23033
22842
  const { Heading, TextField, Button, Banner, Spinner } = usePrimitives();
@@ -23059,21 +22868,21 @@ function UpdatePaymentMethod(props) {
23059
22868
  Enter a new card for your subscription. Your current card stays active until this succeeds.
23060
22869
  </p>
23061
22870
 
23062
- <Show64 when={resolving()}>
22871
+ <Show63 when={resolving()}>
23063
22872
  <Spinner />
23064
- </Show64>
22873
+ </Show63>
23065
22874
 
23066
- <Show64 when={noSubscription()}>
22875
+ <Show63 when={noSubscription()}>
23067
22876
  <Banner variant="error">We couldn’t find an active subscription to update.</Banner>
23068
- </Show64>
22877
+ </Show63>
23069
22878
 
23070
- <Show64 when={!resolving() && !noSubscription()}>
22879
+ <Show63 when={!resolving() && !noSubscription()}>
23071
22880
  <form onSubmit={handleSubmit}>
23072
- <Show64 when={flow.error()}>
22881
+ <Show63 when={flow.error()}>
23073
22882
  <div style={{ "margin-bottom": "1rem" }}>
23074
22883
  <Banner variant="error">{flow.error()}</Banner>
23075
22884
  </div>
23076
- </Show64>
22885
+ </Show63>
23077
22886
 
23078
22887
  <div style={{ display: "grid", gap: "1rem", "margin-bottom": "1.5rem" }}>
23079
22888
  <TextField
@@ -23129,18 +22938,18 @@ function UpdatePaymentMethod(props) {
23129
22938
  </Button>
23130
22939
  </div>
23131
22940
  </form>
23132
- </Show64>
22941
+ </Show63>
23133
22942
  </div>;
23134
22943
  }
23135
22944
 
23136
22945
  // src/pages/MemberPortal.tsx
23137
- import { Show as Show72, Switch as Switch7, Match as Match7, For as For55, createSignal as createSignal51, onMount as onMount8 } from "solid-js";
22946
+ import { Show as Show71, Switch as Switch7, Match as Match7, For as For55, createSignal as createSignal50, onMount as onMount8 } from "solid-js";
23138
22947
 
23139
22948
  // src/pages/member/OrderTracker.tsx
23140
- import { Show as Show65, For as For50, createSignal as createSignal45 } from "solid-js";
22949
+ import { Show as Show64, For as For50, createSignal as createSignal44 } from "solid-js";
23141
22950
  function TrackingChip(props) {
23142
22951
  let copied;
23143
- const [announce, setAnnounce] = createSignal45("");
22952
+ const [announce, setAnnounce] = createSignal44("");
23144
22953
  const copy = async () => {
23145
22954
  try {
23146
22955
  await navigator.clipboard.writeText(props.number);
@@ -23166,18 +22975,18 @@ function TrackingChip(props) {
23166
22975
  <i class="ph ph-copy ship__copy-icon" aria-hidden="true" />
23167
22976
  <span class="ship__copied" ref={copied}>Copied ✓</span>
23168
22977
  </button>
23169
- <Show65 when={props.url}>
22978
+ <Show64 when={props.url}>
23170
22979
  <a class="ship__track" href={props.url} target="_blank" rel="noopener noreferrer">
23171
22980
  Track{props.carrier ? ` with ${props.carrier}` : ""} ↗
23172
22981
  </a>
23173
- </Show65>
22982
+ </Show64>
23174
22983
  </div>
23175
22984
  <span class="portal-sr-only" role="status" aria-live="polite">{announce()}</span>
23176
22985
  </div>;
23177
22986
  }
23178
22987
  function OrderTracker(props) {
23179
22988
  const refill = () => buildRefillView(props.subscription);
23180
- const RefillStrip = () => <Show65 when={refill()}>
22989
+ const RefillStrip = () => <Show64 when={refill()}>
23181
22990
  {(r) => <div class="refill" data-testid="refill-strip">
23182
22991
  <div class="refill__head">
23183
22992
  <span class="lab-label">Your plan</span>
@@ -23186,12 +22995,12 @@ function OrderTracker(props) {
23186
22995
  awaiting the pharmacy there isn't one, so say what we're waiting
23187
22996
  on instead of counting days against a date we don't have. */
23188
22997
  }
23189
- <Show65
22998
+ <Show64
23190
22999
  when={!r().pendingFill}
23191
23000
  fallback={<span class="refill__cycle">Preparing your next fill</span>}
23192
23001
  >
23193
23002
  <span class="refill__cycle">Day {r().cycleDay} of {r().cycleLength}</span>
23194
- </Show65>
23003
+ </Show64>
23195
23004
  </div>
23196
23005
  <div class="refill__rail" style={{ "--p": String(r().progress) }}>
23197
23006
  <For50 each={r().events}>
@@ -23206,16 +23015,16 @@ function OrderTracker(props) {
23206
23015
  <span class="refill__rel">
23207
23016
  {!r().precise && e.date ? `around ${e.relative}` : e.relative}
23208
23017
  </span>
23209
- <Show65 when={e.key === "survey" ? props.pendingRenewalId : null} keyed>
23018
+ <Show64 when={e.key === "survey" ? props.pendingRenewalId : null} keyed>
23210
23019
  {(rid) => <a href={props.renewHref(rid)} class="refill__action">
23211
23020
  Complete check-in →
23212
23021
  </a>}
23213
- </Show65>
23022
+ </Show64>
23214
23023
  </div>}
23215
23024
  </For50>
23216
23025
  </div>
23217
23026
  </div>}
23218
- </Show65>;
23027
+ </Show64>;
23219
23028
  const EmptyState2 = () => <div class="tracker">
23220
23029
  <span class="lab-label">Your order</span>
23221
23030
  <RefillStrip />
@@ -23224,17 +23033,17 @@ function OrderTracker(props) {
23224
23033
  <span class="tracker__empty-bead" />
23225
23034
  </div>
23226
23035
  <h2 class="tracker__empty-title">Your journey starts here</h2>
23227
- <Show65 when={props.savingsMember}>
23036
+ <Show64 when={props.savingsMember}>
23228
23037
  <p class="tracker__empty-text" data-testid="tracker-savings-note">
23229
23038
  <strong>Member pricing is active on your account.</strong> It applies automatically when you check out.
23230
23039
  </p>
23231
- </Show65>
23232
- <Show65 when={props.offers?.[0]}>
23040
+ </Show64>
23041
+ <Show64 when={props.offers?.[0]}>
23233
23042
  {(offer) => <p class="tracker__empty-text" data-testid="tracker-offer-note">
23234
23043
  <strong>You have {offerSummaryText(offer())} waiting.</strong> It applies automatically at checkout —
23235
23044
  finish your intake by {offer().deadlineText} to keep it.
23236
23045
  </p>}
23237
- </Show65>
23046
+ </Show64>
23238
23047
  <p class="tracker__empty-text">
23239
23048
  {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."}
23240
23049
  </p>
@@ -23252,30 +23061,30 @@ function OrderTracker(props) {
23252
23061
  >
23253
23062
  <div class="thread__rail">
23254
23063
  <span class="thread__bead">
23255
- <Show65 when={isActive}><span class="thread__halo" aria-hidden="true" /></Show65>
23064
+ <Show64 when={isActive}><span class="thread__halo" aria-hidden="true" /></Show64>
23256
23065
  </span>
23257
23066
  </div>
23258
23067
  <div class={`thread__content${isActive ? " thread__content--active" : ""}`}>
23259
23068
  <div class="thread__top">
23260
23069
  <span class="lab-label thread__label">{s.label}</span>
23261
- <Show65 when={s.timestamp}>
23070
+ <Show64 when={s.timestamp}>
23262
23071
  <time class="thread__time">{formatStageDate(s.timestamp)}</time>
23263
- </Show65>
23072
+ </Show64>
23264
23073
  </div>
23265
- <Show65 when={s.heroWord}>
23074
+ <Show64 when={s.heroWord}>
23266
23075
  <h2 class="thread__hero">{s.heroWord}</h2>
23267
- </Show65>
23268
- <Show65 when={s.subCaption}>
23076
+ </Show64>
23077
+ <Show64 when={s.subCaption}>
23269
23078
  <p class="thread__caption">{s.subCaption}</p>
23270
- </Show65>
23271
- <Show65 when={s.state === "active" && s.key === "shipped" && sp.view.shipment}>
23079
+ </Show64>
23080
+ <Show64 when={s.state === "active" && s.key === "shipped" && sp.view.shipment}>
23272
23081
  <TrackingChip
23273
23082
  number={sp.view.shipment.trackingNumber}
23274
23083
  carrier={sp.view.shipment.carrier}
23275
23084
  url={sp.view.shipment.trackingUrl}
23276
23085
  eta={sp.view.shipment.etaLabel}
23277
23086
  />
23278
- <Show65 when={props.messagingEnabled}>
23087
+ <Show64 when={props.messagingEnabled}>
23279
23088
  <button
23280
23089
  type="button"
23281
23090
  class="portal-btn portal-btn--ghost thread__action"
@@ -23283,10 +23092,10 @@ function OrderTracker(props) {
23283
23092
  >
23284
23093
  Where's my order?
23285
23094
  </button>
23286
- </Show65>
23287
- </Show65>
23288
- <Show65 when={s.state === "consult"}>
23289
- <Show65
23095
+ </Show64>
23096
+ </Show64>
23097
+ <Show64 when={s.state === "consult"}>
23098
+ <Show64
23290
23099
  when={props.messagingEnabled}
23291
23100
  fallback={<p class="thread__caption thread__await" data-testid="await-messaging">
23292
23101
  Your care team is reviewing your request. You’ll be able to message them here once your consult begins.
@@ -23299,10 +23108,10 @@ function OrderTracker(props) {
23299
23108
  >
23300
23109
  Message your care team
23301
23110
  </button>
23302
- </Show65>
23303
- </Show65>
23304
- <Show65 when={s.state === "denied"}>
23305
- <Show65
23111
+ </Show64>
23112
+ </Show64>
23113
+ <Show64 when={s.state === "denied"}>
23114
+ <Show64
23306
23115
  when={props.messagingEnabled}
23307
23116
  fallback={<p class="thread__caption thread__await" data-testid="await-messaging">
23308
23117
  Your provider will follow up with you about next steps.
@@ -23315,12 +23124,12 @@ function OrderTracker(props) {
23315
23124
  >
23316
23125
  Talk to your provider
23317
23126
  </button>
23318
- </Show65>
23319
- </Show65>
23127
+ </Show64>
23128
+ </Show64>
23320
23129
  </div>
23321
23130
  </li>;
23322
23131
  };
23323
- return <Show65 when={props.request} fallback={<EmptyState2 />}>
23132
+ return <Show64 when={props.request} fallback={<EmptyState2 />}>
23324
23133
  {(rx) => {
23325
23134
  const view = buildTrackerView(rx());
23326
23135
  return <div class="tracker" data-testid="order-tracker">
@@ -23328,7 +23137,7 @@ function OrderTracker(props) {
23328
23137
  <span class="lab-label">Your order</span>
23329
23138
  <p class="tracker__med">
23330
23139
  {props.medicationName}
23331
- <Show65 when={rx().dosage}><span class="tracker__dose"> · {rx().dosage}</span></Show65>
23140
+ <Show64 when={rx().dosage}><span class="tracker__dose"> · {rx().dosage}</span></Show64>
23332
23141
  </p>
23333
23142
  </div>
23334
23143
 
@@ -23344,11 +23153,11 @@ function OrderTracker(props) {
23344
23153
  </ol>
23345
23154
  </div>;
23346
23155
  }}
23347
- </Show65>;
23156
+ </Show64>;
23348
23157
  }
23349
23158
 
23350
23159
  // src/pages/member/RxRow.tsx
23351
- import { Show as Show66, createSignal as createSignal46 } from "solid-js";
23160
+ import { Show as Show65, createSignal as createSignal45 } from "solid-js";
23352
23161
  var STATUS_LABEL = {
23353
23162
  pending: "Under review",
23354
23163
  approved: "Approved",
@@ -23359,7 +23168,7 @@ var STATUS_LABEL = {
23359
23168
  denied: "Not approved"
23360
23169
  };
23361
23170
  function RxRow(props) {
23362
- const [open, setOpen] = createSignal46(false);
23171
+ const [open, setOpen] = createSignal45(false);
23363
23172
  const label3 = () => {
23364
23173
  if (props.rx.status === "approved" && props.rx.delivery?.trackingNumber) return "On its way";
23365
23174
  return STATUS_LABEL[props.rx.status] ?? props.rx.status;
@@ -23373,14 +23182,14 @@ function RxRow(props) {
23373
23182
  >
23374
23183
  <span class="rx-row__med">
23375
23184
  {props.rx.drugName ?? "Medication"}
23376
- <Show66 when={props.rx.dosage}>
23185
+ <Show65 when={props.rx.dosage}>
23377
23186
  <span class="rx-row__dose"> · {props.rx.dosage}</span>
23378
- </Show66>
23187
+ </Show65>
23379
23188
  </span>
23380
23189
  <span class="rx-row__status">{label3()}</span>
23381
23190
  <i class={`ph ph-caret-${open() ? "up" : "down"} rx-row__chevron`} aria-hidden="true" />
23382
23191
  </button>
23383
- <Show66 when={open()}>
23192
+ <Show65 when={open()}>
23384
23193
  <div class="rx-row__body">
23385
23194
  <OrderTracker
23386
23195
  request={props.request}
@@ -23393,12 +23202,12 @@ function RxRow(props) {
23393
23202
  renewHref={props.renewHref}
23394
23203
  />
23395
23204
  </div>
23396
- </Show66>
23205
+ </Show65>
23397
23206
  </div>;
23398
23207
  }
23399
23208
 
23400
23209
  // src/pages/member/PlanBilling.tsx
23401
- import { Show as Show67, createSignal as createSignal47 } from "solid-js";
23210
+ import { Show as Show66, createSignal as createSignal46 } from "solid-js";
23402
23211
  function formatCents(cents) {
23403
23212
  if (cents == null || Number.isNaN(cents)) return "\u2014";
23404
23213
  return `$${(cents / 100).toFixed(2)}`;
@@ -23419,9 +23228,9 @@ var STATUS_COPY = {
23419
23228
  };
23420
23229
  var LIVE_STATUSES = /* @__PURE__ */ new Set(["active", "paused", "past_due"]);
23421
23230
  function PlanBilling(props) {
23422
- const [action, setAction] = createSignal47(null);
23423
- const [confirmCancel, setConfirmCancel] = createSignal47(false);
23424
- const [error, setError] = createSignal47(null);
23231
+ const [action, setAction] = createSignal46(null);
23232
+ const [confirmCancel, setConfirmCancel] = createSignal46(false);
23233
+ const [error, setError] = createSignal46(null);
23425
23234
  const primary = () => {
23426
23235
  const subs = props.subscriptions;
23427
23236
  return subs.find((s) => LIVE_STATUSES.has(s.status)) ?? subs[0] ?? null;
@@ -23441,7 +23250,7 @@ function PlanBilling(props) {
23441
23250
  return <div class="plan" data-testid="plan-billing">
23442
23251
  <span class="lab-label">Plan &amp; billing</span>
23443
23252
 
23444
- <Show67
23253
+ <Show66
23445
23254
  when={primary()}
23446
23255
  fallback={<div class="plan__empty">
23447
23256
  <h2 class="plan__empty-title">No active plan</h2>
@@ -23457,7 +23266,7 @@ function PlanBilling(props) {
23457
23266
  <span class="membership__brand">{props.brandName}</span>
23458
23267
  </div>
23459
23268
  <h2 class="membership__med">{sub().medicationName ?? sub().medication}</h2>
23460
- <Show67 when={sub().dosage}><p class="membership__dose">{sub().dosage}</p></Show67>
23269
+ <Show66 when={sub().dosage}><p class="membership__dose">{sub().dosage}</p></Show66>
23461
23270
  <div class="membership__bottom">
23462
23271
  <span class="membership__price">
23463
23272
  {formatCents(sub().amountCents)}<span class="membership__per">/mo</span>
@@ -23483,7 +23292,7 @@ function PlanBilling(props) {
23483
23292
  </div>
23484
23293
  </dl>
23485
23294
 
23486
- <Show67 when={props.messagingEnabled}>
23295
+ <Show66 when={props.messagingEnabled}>
23487
23296
  <p class="plan__note">
23488
23297
  Question about billing?{" "}
23489
23298
  <button
@@ -23494,14 +23303,14 @@ function PlanBilling(props) {
23494
23303
  Message support
23495
23304
  </button>
23496
23305
  </p>
23497
- </Show67>
23306
+ </Show66>
23498
23307
 
23499
- <Show67 when={error()}>
23308
+ <Show66 when={error()}>
23500
23309
  <p class="plan__error" role="alert">{error()}</p>
23501
- </Show67>
23310
+ </Show66>
23502
23311
 
23503
23312
  <div class="plan__actions">
23504
- <Show67 when={sub().status === "active"}>
23313
+ <Show66 when={sub().status === "active"}>
23505
23314
  <button
23506
23315
  type="button"
23507
23316
  class="plan__link-btn"
@@ -23510,8 +23319,8 @@ function PlanBilling(props) {
23510
23319
  >
23511
23320
  {action() === "pause" ? "Pausing\u2026" : "Pause subscription"}
23512
23321
  </button>
23513
- </Show67>
23514
- <Show67 when={sub().status === "paused"}>
23322
+ </Show66>
23323
+ <Show66 when={sub().status === "paused"}>
23515
23324
  <button
23516
23325
  type="button"
23517
23326
  class="plan__link-btn"
@@ -23520,11 +23329,11 @@ function PlanBilling(props) {
23520
23329
  >
23521
23330
  {action() === "resume" ? "Resuming\u2026" : "Resume subscription"}
23522
23331
  </button>
23523
- </Show67>
23332
+ </Show66>
23524
23333
 
23525
23334
  <a href={props.paymentMethodHref} class="plan__link-btn">Update payment method</a>
23526
23335
 
23527
- <Show67 when={sub().status !== "cancelled" && sub().status !== "expired"}>
23336
+ <Show66 when={sub().status !== "cancelled" && sub().status !== "expired"}>
23528
23337
  <button
23529
23338
  type="button"
23530
23339
  class="plan__link-btn plan__link-btn--quiet"
@@ -23533,10 +23342,10 @@ function PlanBilling(props) {
23533
23342
  >
23534
23343
  Cancel subscription
23535
23344
  </button>
23536
- </Show67>
23345
+ </Show66>
23537
23346
  </div>
23538
23347
 
23539
- <Show67 when={confirmCancel()}>
23348
+ <Show66 when={confirmCancel()}>
23540
23349
  <div class="confirm" data-testid="cancel-confirm">
23541
23350
  <p class="confirm__text">
23542
23351
  Cancel your subscription? You’ll keep access until the end of your current billing period
@@ -23561,14 +23370,14 @@ function PlanBilling(props) {
23561
23370
  </button>
23562
23371
  </div>
23563
23372
  </div>
23564
- </Show67>
23373
+ </Show66>
23565
23374
  </>}
23566
- </Show67>
23375
+ </Show66>
23567
23376
  </div>;
23568
23377
  }
23569
23378
 
23570
23379
  // src/pages/member/AccountPanel.tsx
23571
- import { Show as Show68, For as For51 } from "solid-js";
23380
+ import { Show as Show67, For as For51 } from "solid-js";
23572
23381
  function pick(member, ...keys) {
23573
23382
  if (!member) return "";
23574
23383
  for (const k of keys) {
@@ -23612,11 +23421,11 @@ function AccountPanel(props) {
23612
23421
  </For51>
23613
23422
  </dl>
23614
23423
 
23615
- <Show68 when={fields().length === 0}>
23424
+ <Show67 when={fields().length === 0}>
23616
23425
  <p class="account__empty">We don’t have your details on file yet.</p>
23617
- </Show68>
23426
+ </Show67>
23618
23427
 
23619
- <Show68 when={props.messagingEnabled}>
23428
+ <Show67 when={props.messagingEnabled}>
23620
23429
  <p class="account__note">
23621
23430
  Need to update something?{" "}
23622
23431
  <button
@@ -23628,14 +23437,14 @@ function AccountPanel(props) {
23628
23437
  </button>{" "}
23629
23438
  and we’ll take care of it.
23630
23439
  </p>
23631
- </Show68>
23440
+ </Show67>
23632
23441
 
23633
23442
  <div class="account__support">
23634
- <Show68 when={props.messagingEnabled}>
23443
+ <Show67 when={props.messagingEnabled}>
23635
23444
  <button type="button" class="account__support-link account__support-btn" onClick={() => props.onOpenMessages()}>
23636
23445
  Messages
23637
23446
  </button>
23638
- </Show68>
23447
+ </Show67>
23639
23448
  <For51 each={props.legalLinks ?? []}>
23640
23449
  {(link) => <a href={link.href} class="account__support-link">{link.label}</a>}
23641
23450
  </For51>
@@ -23648,13 +23457,13 @@ function AccountPanel(props) {
23648
23457
  }
23649
23458
 
23650
23459
  // src/pages/member/MedicationGuide.tsx
23651
- import { Show as Show69, For as For52, createSignal as createSignal48 } from "solid-js";
23460
+ import { Show as Show68, For as For52, createSignal as createSignal47 } from "solid-js";
23652
23461
  function firstNumber(s) {
23653
23462
  const m = (s || "").match(/\d+(\.\d+)?/);
23654
23463
  return m ? m[0] : null;
23655
23464
  }
23656
23465
  function MedicationGuide(props) {
23657
- const [showDisclaimers, setShowDisclaimers] = createSignal48(false);
23466
+ const [showDisclaimers, setShowDisclaimers] = createSignal47(false);
23658
23467
  const activeTitrationIndex = () => {
23659
23468
  const dose = firstNumber(props.currentDose);
23660
23469
  if (!dose) return -1;
@@ -23747,12 +23556,12 @@ function MedicationGuide(props) {
23747
23556
  </section>
23748
23557
  </div>
23749
23558
 
23750
- <Show69 when={props.guide.contraception}>
23559
+ <Show68 when={props.guide.contraception}>
23751
23560
  <section class="leaflet__section leaflet__section--caution">
23752
23561
  <h2 class="leaflet__h2">Birth control</h2>
23753
23562
  <p class="leaflet__body">{props.guide.contraception}</p>
23754
23563
  </section>
23755
- </Show69>
23564
+ </Show68>
23756
23565
 
23757
23566
  <div class="leaflet__grid">
23758
23567
  <section class="leaflet__section">
@@ -23795,17 +23604,17 @@ function MedicationGuide(props) {
23795
23604
  {showDisclaimers() ? "Hide" : "Read"} the important details
23796
23605
  <i class={`ph ph-caret-${showDisclaimers() ? "up" : "down"}`} aria-hidden="true" />
23797
23606
  </button>
23798
- <Show69 when={showDisclaimers()}>
23607
+ <Show68 when={showDisclaimers()}>
23799
23608
  <ul class="leaflet__disclaimers" id="leaflet-disclaimers">
23800
23609
  <For52 each={props.guide.disclaimers}>{(item) => <li>{item}</li>}</For52>
23801
23610
  </ul>
23802
- </Show69>
23611
+ </Show68>
23803
23612
  </section>
23804
23613
  </div>;
23805
23614
  }
23806
23615
 
23807
23616
  // src/pages/member/MessagesPanel.tsx
23808
- import { Show as Show70, For as For53, Switch as Switch6, Match as Match6, createEffect as createEffect17, createSignal as createSignal49, on as on9 } from "solid-js";
23617
+ import { Show as Show69, For as For53, Switch as Switch6, Match as Match6, createEffect as createEffect17, createSignal as createSignal48, on as on9 } from "solid-js";
23809
23618
  import DOMPurify from "dompurify";
23810
23619
  function sanitizeMessageHtml(html) {
23811
23620
  return DOMPurify.sanitize(html, {
@@ -23860,11 +23669,11 @@ function rejectionReason(file) {
23860
23669
  }
23861
23670
  function MessagesPanel(props) {
23862
23671
  const thread = () => props.thread;
23863
- const [channel, setChannel] = createSignal49("gate");
23864
- const [threadNotFound, setThreadNotFound] = createSignal49(false);
23865
- const [pendingThreadIntentId, setPendingThreadIntentId] = createSignal49(null);
23672
+ const [channel, setChannel] = createSignal48("gate");
23673
+ const [threadNotFound, setThreadNotFound] = createSignal48(false);
23674
+ const [pendingThreadIntentId, setPendingThreadIntentId] = createSignal48(null);
23866
23675
  const emailSupport = () => thread().supportChannel() === "email";
23867
- const [emailSent, setEmailSent] = createSignal49(false);
23676
+ const [emailSent, setEmailSent] = createSignal48(false);
23868
23677
  function switchChannel(next) {
23869
23678
  thread().clearSelection();
23870
23679
  setEmailSent(false);
@@ -23876,17 +23685,17 @@ function MessagesPanel(props) {
23876
23685
  setThreadNotFound(false);
23877
23686
  setPendingThreadIntentId(null);
23878
23687
  }
23879
- const [composing, setComposing] = createSignal49(false);
23880
- const [composeStep, setComposeStep] = createSignal49(
23688
+ const [composing, setComposing] = createSignal48(false);
23689
+ const [composeStep, setComposeStep] = createSignal48(
23881
23690
  "support"
23882
23691
  );
23883
- const [newSubject, setNewSubject] = createSignal49("");
23884
- const [newBody, setNewBody] = createSignal49("");
23885
- const [newCategory, setNewCategory] = createSignal49(null);
23886
- const [composeError, setComposeError] = createSignal49(null);
23887
- const [pendingFile, setPendingFile] = createSignal49(null);
23888
- const [newFile, setNewFile] = createSignal49(null);
23889
- const [attachError, setAttachError] = createSignal49(null);
23692
+ const [newSubject, setNewSubject] = createSignal48("");
23693
+ const [newBody, setNewBody] = createSignal48("");
23694
+ const [newCategory, setNewCategory] = createSignal48(null);
23695
+ const [composeError, setComposeError] = createSignal48(null);
23696
+ const [pendingFile, setPendingFile] = createSignal48(null);
23697
+ const [newFile, setNewFile] = createSignal48(null);
23698
+ const [attachError, setAttachError] = createSignal48(null);
23890
23699
  function stageFile(input, set) {
23891
23700
  const file = input.files?.[0];
23892
23701
  input.value = "";
@@ -24059,9 +23868,9 @@ function MessagesPanel(props) {
24059
23868
  data-channel={p.source}
24060
23869
  >
24061
23870
  {p.source === "clinical" ? "Care team" : "Support"}
24062
- <Show70 when={p.source === "support" && categoryLabel(p.category)}>
23871
+ <Show69 when={p.source === "support" && categoryLabel(p.category)}>
24063
23872
  {(label3) => <span class="channel-chip__category">{label3()}</span>}
24064
- </Show70>
23873
+ </Show69>
24065
23874
  </span>;
24066
23875
  const channelConversations = () => thread().conversations().filter((c) => c.source === (channel() === "care" ? "clinical" : "support"));
24067
23876
  const ConversationList = () => <>
@@ -24090,27 +23899,27 @@ function MessagesPanel(props) {
24090
23899
  </div>
24091
23900
 
24092
23901
  <div class="msg-list__scroll" data-scrollable>
24093
- <Show70 when={thread().loadingConversations()}>
23902
+ <Show69 when={thread().loadingConversations()}>
24094
23903
  <div class="msg-list__state">
24095
23904
  <div class="request-status__spinner" />
24096
23905
  </div>
24097
- </Show70>
23906
+ </Show69>
24098
23907
 
24099
- <Show70 when={!thread().loadingConversations() && channelConversations().length === 0}>
23908
+ <Show69 when={!thread().loadingConversations() && channelConversations().length === 0}>
24100
23909
  <div class="msg-list__state msg-list__state--empty" data-testid="messages-empty">
24101
23910
  <i class="ph-thin ph-chat-circle msg-list__empty-icon" aria-hidden="true" />
24102
23911
  <p class="msg-list__empty-title">No conversations yet.</p>
24103
23912
  <p class="msg-list__empty-hint">
24104
- <Show70
23913
+ <Show69
24105
23914
  when={channel() === "care"}
24106
23915
  fallback="Message support about your account, an order, billing or the site."
24107
23916
  >
24108
23917
  Your care team reviews and responds to anything about your treatment, medication
24109
23918
  or side effects.
24110
- </Show70>
23919
+ </Show69>
24111
23920
  </p>
24112
23921
  </div>
24113
- </Show70>
23922
+ </Show69>
24114
23923
 
24115
23924
  <For53 each={channelConversations()}>
24116
23925
  {(convo) => <button
@@ -24128,17 +23937,17 @@ function MessagesPanel(props) {
24128
23937
  </div>
24129
23938
  <div class="msg-list__row">
24130
23939
  <span class="msg-list__preview">{convo.lastMessage ?? "No messages yet"}</span>
24131
- <Show70 when={(convo.unreadCount ?? 0) > 0}>
23940
+ <Show69 when={(convo.unreadCount ?? 0) > 0}>
24132
23941
  <span class="msg-list__pip">{convo.unreadCount}</span>
24133
- </Show70>
23942
+ </Show69>
24134
23943
  </div>
24135
23944
  </button>}
24136
23945
  </For53>
24137
23946
  </div>
24138
23947
  </>;
24139
23948
  const Attachment = (p) => {
24140
- const [url, setUrl] = createSignal49(p.attachment.url ?? null);
24141
- const [failed, setFailed] = createSignal49(false);
23949
+ const [url, setUrl] = createSignal48(p.attachment.url ?? null);
23950
+ const [failed, setFailed] = createSignal48(false);
24142
23951
  let retried = false;
24143
23952
  const resolve = async (force = false) => {
24144
23953
  const next = await thread().resolveAttachmentUrl(p.attachment.id, force);
@@ -24153,7 +23962,7 @@ function MessagesPanel(props) {
24153
23962
  const href = url() ?? await resolve();
24154
23963
  if (href) window.open(href, "_blank", "noopener");
24155
23964
  };
24156
- return <Show70
23965
+ return <Show69
24157
23966
  when={isImageAttachment(p.attachment)}
24158
23967
  fallback={<button
24159
23968
  type="button"
@@ -24172,7 +23981,7 @@ function MessagesPanel(props) {
24172
23981
  </span>
24173
23982
  </button>}
24174
23983
  >
24175
- <Show70
23984
+ <Show69
24176
23985
  when={url() && !failed()}
24177
23986
  fallback={<span class="msg-attachment__fallback">
24178
23987
  {failed() ? "Attachment unavailable" : "Loading\u2026"}
@@ -24194,13 +24003,13 @@ function MessagesPanel(props) {
24194
24003
  }}
24195
24004
  />
24196
24005
  </button>
24197
- </Show70>
24198
- </Show70>;
24006
+ </Show69>
24007
+ </Show69>;
24199
24008
  };
24200
24009
  const Bubble = (p) => {
24201
24010
  const isOwn = () => p.msg.senderRole === "patient";
24202
24011
  const body = () => p.msg.text || p.msg.content || "";
24203
- return <Show70
24012
+ return <Show69
24204
24013
  when={p.msg.type !== "system"}
24205
24014
  fallback={<p class="msg-thread__system" data-testid="system-message">
24206
24015
  {body()}
@@ -24208,15 +24017,15 @@ function MessagesPanel(props) {
24208
24017
  >
24209
24018
  <div class={`msg-thread__line${isOwn() ? " msg-thread__line--own" : ""}`}>
24210
24019
  <div class={`msg-thread__bubble${isOwn() ? " msg-thread__bubble--own" : ""}`}>
24211
- <Show70 when={!isOwn() && p.msg.senderName}>
24020
+ <Show69 when={!isOwn() && p.msg.senderName}>
24212
24021
  <p class="msg-thread__sender">{p.msg.senderName}</p>
24213
- </Show70>
24022
+ </Show69>
24214
24023
  {
24215
24024
  /* An attachment may arrive with no caption, so don't render an
24216
24025
  empty paragraph in that case. */
24217
24026
  }
24218
- <Show70 when={body()}>
24219
- <Show70
24027
+ <Show69 when={body()}>
24028
+ <Show69
24220
24029
  when={p.msg.type === "html"}
24221
24030
  fallback={<p class="msg-thread__text">{body()}</p>}
24222
24031
  >
@@ -24227,17 +24036,17 @@ function MessagesPanel(props) {
24227
24036
  stored XSS in every one of them. */
24228
24037
  }
24229
24038
  <div class="msg-thread__text" innerHTML={sanitizeMessageHtml(body())} />
24230
- </Show70>
24231
- </Show70>
24232
- <Show70 when={p.msg.attachments?.length}>
24039
+ </Show69>
24040
+ </Show69>
24041
+ <Show69 when={p.msg.attachments?.length}>
24233
24042
  <div class="msg-attachment">
24234
24043
  <For53 each={p.msg.attachments}>{(a) => <Attachment attachment={a} />}</For53>
24235
24044
  </div>
24236
- </Show70>
24045
+ </Show69>
24237
24046
  <p class="msg-thread__meta">{formatMessageTime(p.msg.createdAt)}</p>
24238
24047
  </div>
24239
24048
  </div>
24240
- </Show70>;
24049
+ </Show69>;
24241
24050
  };
24242
24051
  const NewSupportThread = () => <form class="msg-thread msg-thread--compose" onSubmit={submitCompose} data-testid="support-compose">
24243
24052
  <div class="msg-thread__header">
@@ -24317,7 +24126,7 @@ function MessagesPanel(props) {
24317
24126
  onChange={(e) => stageFile(e.currentTarget, setNewFile)}
24318
24127
  />
24319
24128
  </label>
24320
- <Show70 when={newFile()}>
24129
+ <Show69 when={newFile()}>
24321
24130
  <button
24322
24131
  type="button"
24323
24132
  class="msg-compose__staged-remove msg-compose__staged-remove--inline"
@@ -24325,13 +24134,13 @@ function MessagesPanel(props) {
24325
24134
  >
24326
24135
  Remove file
24327
24136
  </button>
24328
- </Show70>
24137
+ </Show69>
24329
24138
 
24330
- <Show70 when={attachError() || composeError()}>
24139
+ <Show69 when={attachError() || composeError()}>
24331
24140
  <p class="msg-compose__error" role="alert">
24332
24141
  {attachError() ?? composeError()}
24333
24142
  </p>
24334
- </Show70>
24143
+ </Show69>
24335
24144
 
24336
24145
  <button
24337
24146
  type="submit"
@@ -24388,7 +24197,7 @@ function MessagesPanel(props) {
24388
24197
  onChange={(e) => stageFile(e.currentTarget, setNewFile)}
24389
24198
  />
24390
24199
  </label>
24391
- <Show70 when={newFile()}>
24200
+ <Show69 when={newFile()}>
24392
24201
  <button
24393
24202
  type="button"
24394
24203
  class="msg-compose__staged-remove msg-compose__staged-remove--inline"
@@ -24396,13 +24205,13 @@ function MessagesPanel(props) {
24396
24205
  >
24397
24206
  Remove file
24398
24207
  </button>
24399
- </Show70>
24208
+ </Show69>
24400
24209
 
24401
- <Show70 when={attachError() || composeError()}>
24210
+ <Show69 when={attachError() || composeError()}>
24402
24211
  <p class="msg-compose__error" role="alert">
24403
24212
  {attachError() ?? composeError()}
24404
24213
  </p>
24405
- </Show70>
24214
+ </Show69>
24406
24215
 
24407
24216
  <button
24408
24217
  type="submit"
@@ -24434,19 +24243,19 @@ function MessagesPanel(props) {
24434
24243
  <i class="ph-thin ph-heartbeat msg-choice__option-icon" aria-hidden="true" />
24435
24244
  <span class="msg-choice__option-title">My care team</span>
24436
24245
  <span class="msg-choice__option-sub">Treatment, medication or side effects</span>
24437
- <Show70
24246
+ <Show69
24438
24247
  when={!thread().loadingConversations()}
24439
24248
  fallback={<span
24440
24249
  class="msg-choice__option-spinner request-status__spinner"
24441
24250
  data-testid="gate-care-loading"
24442
24251
  />}
24443
24252
  >
24444
- <Show70 when={careUnreadCount() > 0}>
24253
+ <Show69 when={careUnreadCount() > 0}>
24445
24254
  <span class="msg-choice__option-badge" data-testid="gate-care-badge">
24446
24255
  {careUnreadCount()}
24447
24256
  </span>
24448
- </Show70>
24449
- </Show70>
24257
+ </Show69>
24258
+ </Show69>
24450
24259
  </button>
24451
24260
  <button
24452
24261
  type="button"
@@ -24457,27 +24266,27 @@ function MessagesPanel(props) {
24457
24266
  <i class="ph-thin ph-lifebuoy msg-choice__option-icon" aria-hidden="true" />
24458
24267
  <span class="msg-choice__option-title">Support</span>
24459
24268
  <span class="msg-choice__option-sub">Account, orders, billing or the website</span>
24460
- <Show70
24269
+ <Show69
24461
24270
  when={!thread().loadingConversations()}
24462
24271
  fallback={<span
24463
24272
  class="msg-choice__option-spinner request-status__spinner"
24464
24273
  data-testid="gate-support-loading"
24465
24274
  />}
24466
24275
  >
24467
- <Show70 when={supportUnreadCount() > 0 && !emailSupport()}>
24276
+ <Show69 when={supportUnreadCount() > 0 && !emailSupport()}>
24468
24277
  <span class="msg-choice__option-badge" data-testid="gate-support-badge">
24469
24278
  {supportUnreadCount()}
24470
24279
  </span>
24471
- </Show70>
24472
- </Show70>
24280
+ </Show69>
24281
+ </Show69>
24473
24282
  </button>
24474
24283
  </div>
24475
24284
 
24476
- <Show70 when={threadNotFound()}>
24285
+ <Show69 when={threadNotFound()}>
24477
24286
  <p class="msg-choice__notice-text" data-testid="messages-gate-note">
24478
24287
  That conversation isn't available.
24479
24288
  </p>
24480
- </Show70>
24289
+ </Show69>
24481
24290
  </div>;
24482
24291
  const CareTeamNotice = () => <div class="msg-thread msg-choice" data-testid="care-team-notice">
24483
24292
  <div class="msg-thread__header">
@@ -24553,9 +24362,9 @@ function MessagesPanel(props) {
24553
24362
  <div>
24554
24363
  <div class="msg-thread__title-row">
24555
24364
  <h3 class="msg-thread__name">{selectedConvo()?.participantName ?? "Provider"}</h3>
24556
- <Show70 when={selectedConvo()}>
24365
+ <Show69 when={selectedConvo()}>
24557
24366
  {(convo) => <ChannelChip source={convo().source} category={convo().category} />}
24558
- </Show70>
24367
+ </Show69>
24559
24368
  </div>
24560
24369
  <p class="msg-thread__role">{selectedConvo()?.participantRole ?? "Prescriber"}</p>
24561
24370
  </div>
@@ -24564,23 +24373,23 @@ function MessagesPanel(props) {
24564
24373
  it — so this is a status cue, not a lock. A transferred one is
24565
24374
  different: its content now lives with the care team, so it's read-only. */
24566
24375
  }
24567
- <Show70 when={selectedConvo()?.source === "support" && selectedConvo()?.status === "closed"}>
24376
+ <Show69 when={selectedConvo()?.source === "support" && selectedConvo()?.status === "closed"}>
24568
24377
  <span class="msg-thread__status" data-testid="thread-status-closed">
24569
24378
  Resolved
24570
24379
  </span>
24571
- </Show70>
24572
- <Show70 when={selectedConvo()?.source === "support" && selectedConvo()?.status === "transferred"}>
24380
+ </Show69>
24381
+ <Show69 when={selectedConvo()?.source === "support" && selectedConvo()?.status === "transferred"}>
24573
24382
  <span class="msg-thread__status" data-testid="thread-status-transferred">
24574
24383
  Moved to care team
24575
24384
  </span>
24576
- </Show70>
24385
+ </Show69>
24577
24386
  </div>
24578
24387
 
24579
24388
  {
24580
24389
  /* A closed (often transferred-back) support thread offers a jump straight
24581
24390
  to the care team, rather than making the customer find the gate. */
24582
24391
  }
24583
- <Show70
24392
+ <Show69
24584
24393
  when={selectedConvo()?.source === "support" && (selectedConvo()?.status === "closed" || selectedConvo()?.status === "transferred")}
24585
24394
  >
24586
24395
  <div class="msg-thread__banner">
@@ -24593,21 +24402,21 @@ function MessagesPanel(props) {
24593
24402
  Continue with your care team
24594
24403
  </button>
24595
24404
  </div>
24596
- </Show70>
24405
+ </Show69>
24597
24406
 
24598
24407
  <div class="msg-thread__messages" data-scrollable>
24599
- <Show70 when={thread().loadingMessages()}>
24408
+ <Show69 when={thread().loadingMessages()}>
24600
24409
  <div class="msg-list__state">
24601
24410
  <div class="request-status__spinner" />
24602
24411
  </div>
24603
- </Show70>
24412
+ </Show69>
24604
24413
  <For53 each={thread().messages()}>{(msg) => <Bubble msg={msg} />}</For53>
24605
24414
  <div ref={endRef} />
24606
24415
  </div>
24607
24416
 
24608
- <Show70 when={pendingFile() || attachError()}>
24417
+ <Show69 when={pendingFile() || attachError()}>
24609
24418
  <div class="msg-compose__staged">
24610
- <Show70 when={pendingFile()}>
24419
+ <Show69 when={pendingFile()}>
24611
24420
  {(file) => <span class="msg-compose__staged-file" data-testid="staged-file">
24612
24421
  <i class="ph-thin ph-paperclip" aria-hidden="true" />
24613
24422
  {file().name}
@@ -24621,27 +24430,27 @@ function MessagesPanel(props) {
24621
24430
  ×
24622
24431
  </button>
24623
24432
  </span>}
24624
- </Show70>
24625
- <Show70 when={attachError()}>
24433
+ </Show69>
24434
+ <Show69 when={attachError()}>
24626
24435
  <span class="msg-compose__error" role="alert">
24627
24436
  {attachError()}
24628
24437
  </span>
24629
- </Show70>
24438
+ </Show69>
24630
24439
  </div>
24631
- </Show70>
24440
+ </Show69>
24632
24441
 
24633
24442
  {
24634
24443
  /* A transferred support thread is read-only: the customer's messages were
24635
24444
  moved to their care team, so the place to continue is that conversation
24636
24445
  (the banner above), not a reply that would reopen this one. */
24637
24446
  }
24638
- <Show70 when={!(selectedConvo()?.source === "support" && selectedConvo()?.status === "transferred")}>
24447
+ <Show69 when={!(selectedConvo()?.source === "support" && selectedConvo()?.status === "transferred")}>
24639
24448
  <div class="msg-compose">
24640
24449
  {
24641
24450
  /* Support threads only: clinical conversations are an Apex proxy and
24642
24451
  their attachment path isn't wired up here yet. */
24643
24452
  }
24644
- <Show70 when={thread().selectedSource() === "support"}>
24453
+ <Show69 when={thread().selectedSource() === "support"}>
24645
24454
  <label class="msg-compose__attach" title="Attach a file">
24646
24455
  <i class="ph-thin ph-paperclip" aria-hidden="true" />
24647
24456
  <span class="msg-compose__attach-label">Attach a file</span>
@@ -24653,7 +24462,7 @@ function MessagesPanel(props) {
24653
24462
  onChange={(e) => stageFile(e.currentTarget, setPendingFile)}
24654
24463
  />
24655
24464
  </label>
24656
- </Show70>
24465
+ </Show69>
24657
24466
  <textarea
24658
24467
  ref={composerRef}
24659
24468
  class="msg-compose__input"
@@ -24674,25 +24483,25 @@ function MessagesPanel(props) {
24674
24483
  {thread().sending() ? "Sending\u2026" : "Send"}
24675
24484
  </button>
24676
24485
  </div>
24677
- </Show70>
24486
+ </Show69>
24678
24487
  </>;
24679
24488
  return <div class="msg-panel" data-testid="messages-panel">
24680
- <Show70
24489
+ <Show69
24681
24490
  when={channel() !== "gate"}
24682
24491
  fallback={<div class="msg-panel__layout msg-panel__layout--gate">
24683
24492
  <ChannelGate />
24684
24493
  </div>}
24685
24494
  >
24686
- <Show70
24495
+ <Show69
24687
24496
  when={!(channel() === "support" && emailSupport() && thread().selectedId() == null)}
24688
24497
  fallback={
24689
24498
  // Email-channel support: the form (or its confirmation) and nothing
24690
24499
  // else. A deep-linked thread that predates the switch still opens
24691
24500
  // in the normal layout below, since it has a selection.
24692
24501
  <div class="msg-panel__layout msg-panel__layout--gate">
24693
- <Show70 when={!emailSent()} fallback={<SupportEmailSent />}>
24502
+ <Show69 when={!emailSent()} fallback={<SupportEmailSent />}>
24694
24503
  <NewSupportThread />
24695
- </Show70>
24504
+ </Show69>
24696
24505
  </div>
24697
24506
  }
24698
24507
  >
@@ -24701,7 +24510,7 @@ function MessagesPanel(props) {
24701
24510
  <ConversationList />
24702
24511
  </div>
24703
24512
  <div class={`msg-panel__main${threadOpen() ? "" : " msg-panel__main--hidden-mobile"}`}>
24704
- <Show70 when={composing()}>
24513
+ <Show69 when={composing()}>
24705
24514
  <Switch6>
24706
24515
  <Match6 when={composeStep() === "care"}>
24707
24516
  <NewCareTeamThread />
@@ -24713,26 +24522,26 @@ function MessagesPanel(props) {
24713
24522
  <NewSupportThread />
24714
24523
  </Match6>
24715
24524
  </Switch6>
24716
- </Show70>
24717
- <Show70 when={!composing()}>
24718
- <Show70
24525
+ </Show69>
24526
+ <Show69 when={!composing()}>
24527
+ <Show69
24719
24528
  when={thread().selectedId() != null}
24720
24529
  fallback={<div class="msg-panel__placeholder" data-testid="messages-placeholder">
24721
24530
  <p>Select a conversation to read and reply.</p>
24722
24531
  </div>}
24723
24532
  >
24724
24533
  <Thread />
24725
- </Show70>
24726
- </Show70>
24534
+ </Show69>
24535
+ </Show69>
24727
24536
  </div>
24728
24537
  </div>
24729
- </Show70>
24730
- </Show70>
24538
+ </Show69>
24539
+ </Show69>
24731
24540
  </div>;
24732
24541
  }
24733
24542
 
24734
24543
  // src/pages/member/SurveyHistory.tsx
24735
- import { createSignal as createSignal50, createResource as createResource30, For as For54, Show as Show71 } from "solid-js";
24544
+ import { createSignal as createSignal49, createResource as createResource30, For as For54, Show as Show70 } from "solid-js";
24736
24545
  var MODE_LABELS = {
24737
24546
  initial: "Intake questionnaire",
24738
24547
  refill: "Refill check-in"
@@ -24751,18 +24560,18 @@ function SurveyHistory() {
24751
24560
  const [list] = createResource30(
24752
24561
  () => membersApi.getSurveyResponses().then((r) => r.responses).catch(asEmptyOn404([]))
24753
24562
  );
24754
- const [selectedId, setSelectedId] = createSignal50(null);
24563
+ const [selectedId, setSelectedId] = createSignal49(null);
24755
24564
  const [detail] = createResource30(
24756
24565
  selectedId,
24757
24566
  (id) => membersApi.getSurveyResponse(id).catch(asEmptyOn404(null))
24758
24567
  );
24759
- const ListView = () => <Show71
24568
+ const ListView = () => <Show70
24760
24569
  when={!list.error}
24761
24570
  fallback={<div class="portal-state" data-testid="history-error">
24762
24571
  <p>We couldn't load your submitted surveys. Please try again in a moment.</p>
24763
24572
  </div>}
24764
24573
  >
24765
- <Show71
24574
+ <Show70
24766
24575
  when={(list() ?? []).length > 0}
24767
24576
  fallback={<div class="portal-state" data-testid="history-empty">
24768
24577
  <p>No submitted questionnaires yet.</p>
@@ -24784,8 +24593,8 @@ function SurveyHistory() {
24784
24593
  </li>}
24785
24594
  </For54>
24786
24595
  </ul>
24787
- </Show71>
24788
- </Show71>;
24596
+ </Show70>
24597
+ </Show70>;
24789
24598
  const DetailView = () => <div data-testid="history-detail">
24790
24599
  <button
24791
24600
  type="button"
@@ -24794,14 +24603,14 @@ function SurveyHistory() {
24794
24603
  >
24795
24604
  <i class="ph-thin ph-caret-left portal-icon" aria-hidden="true" /> All questionnaires
24796
24605
  </button>
24797
- <Show71
24606
+ <Show70
24798
24607
  when={!detail.loading}
24799
24608
  fallback={<div class="portal-state">
24800
24609
  <div class="request-status__spinner" />
24801
24610
  <p>Loading your answers…</p>
24802
24611
  </div>}
24803
24612
  >
24804
- <Show71
24613
+ <Show70
24805
24614
  when={!detail.error && detail()}
24806
24615
  fallback={<div class="portal-state" data-testid="history-detail-error">
24807
24616
  <p>We couldn't load this questionnaire. Please try again in a moment.</p>
@@ -24827,21 +24636,21 @@ function SurveyHistory() {
24827
24636
  </section>}
24828
24637
  </For54>
24829
24638
  </article>}
24830
- </Show71>
24831
- </Show71>
24639
+ </Show70>
24640
+ </Show70>
24832
24641
  </div>;
24833
24642
  return <div class="survey-history" data-testid="survey-history">
24834
- <Show71
24643
+ <Show70
24835
24644
  when={!list.loading || selectedId()}
24836
24645
  fallback={<div class="portal-state">
24837
24646
  <div class="request-status__spinner" />
24838
24647
  <p>Loading your submitted surveys…</p>
24839
24648
  </div>}
24840
24649
  >
24841
- <Show71 when={selectedId()} fallback={<ListView />}>
24650
+ <Show70 when={selectedId()} fallback={<ListView />}>
24842
24651
  <DetailView />
24843
- </Show71>
24844
- </Show71>
24652
+ </Show70>
24653
+ </Show70>
24845
24654
  </div>;
24846
24655
  }
24847
24656
 
@@ -24904,15 +24713,15 @@ function MemberPortal(props) {
24904
24713
  }
24905
24714
  return null;
24906
24715
  };
24907
- const [tab, setTab] = createSignal51(resolveTabFromUrl() ?? "tracker");
24908
- const [intent, setIntent] = createSignal51(resolveIntentFromUrl());
24716
+ const [tab, setTab] = createSignal50(resolveTabFromUrl() ?? "tracker");
24717
+ const [intent, setIntent] = createSignal50(resolveIntentFromUrl());
24909
24718
  onMount8(() => {
24910
24719
  const resolved = resolveTabFromUrl();
24911
24720
  if (resolved && resolved !== tab()) setTab(resolved);
24912
24721
  const resolvedIntent = resolveIntentFromUrl();
24913
24722
  if (resolvedIntent) setIntent(resolvedIntent);
24914
24723
  });
24915
- const [offers, setOffers] = createSignal51([]);
24724
+ const [offers, setOffers] = createSignal50([]);
24916
24725
  onMount8(() => {
24917
24726
  if (!props.auth.isAuthenticated()) return;
24918
24727
  offersApi.mine().then((r) => setOffers(r.offers ?? [])).catch(() => setOffers([]));
@@ -24952,17 +24761,17 @@ function MemberPortal(props) {
24952
24761
  >
24953
24762
  <i class={`${item.icon} portal-icon`} aria-hidden="true" />
24954
24763
  <span class="portal-item__label">{item.label}</span>
24955
- <Show72 when={item.key === "tracker" && inMotion()}>
24764
+ <Show71 when={item.key === "tracker" && inMotion()}>
24956
24765
  <span class="portal-item__live" aria-label="In progress" />
24957
- </Show72>
24958
- <Show72 when={item.key === "messages" && unreadTotal() > 0}>
24766
+ </Show71>
24767
+ <Show71 when={item.key === "messages" && unreadTotal() > 0}>
24959
24768
  <span class={`portal-item__badge${p.variant === "tabs" ? " portal-item__badge--tab" : ""}`}>
24960
24769
  {unreadTotal() > 99 ? "99+" : unreadTotal()}
24961
24770
  </span>
24962
- </Show72>
24771
+ </Show71>
24963
24772
  </button>}
24964
24773
  </For55>;
24965
- const TrackerTab = () => <Show72
24774
+ const TrackerTab = () => <Show71
24966
24775
  when={data.primaryRx()}
24967
24776
  fallback={<OrderTracker
24968
24777
  request={null}
@@ -24988,7 +24797,7 @@ function MemberPortal(props) {
24988
24797
  intakeHref={props.routes.intake}
24989
24798
  renewHref={props.routes.renew}
24990
24799
  />
24991
- <Show72 when={data.otherRx().length > 0}>
24800
+ <Show71 when={data.otherRx().length > 0}>
24992
24801
  <div class="rx-others" data-testid="rx-others">
24993
24802
  <span class="lab-label">Other orders</span>
24994
24803
  <For55 each={data.otherRx()}>
@@ -25003,17 +24812,17 @@ function MemberPortal(props) {
25003
24812
  />}
25004
24813
  </For55>
25005
24814
  </div>
25006
- </Show72>
24815
+ </Show71>
25007
24816
  </div>}
25008
- </Show72>;
25009
- const Content = () => <Show72
24817
+ </Show71>;
24818
+ const Content = () => <Show71
25010
24819
  when={!data.loading()}
25011
24820
  fallback={<div class="portal-state">
25012
24821
  <div class="request-status__spinner" />
25013
24822
  <p>Loading your portal…</p>
25014
24823
  </div>}
25015
24824
  >
25016
- <Show72
24825
+ <Show71
25017
24826
  when={!data.error()}
25018
24827
  fallback={<div class="request-status__error portal-state">
25019
24828
  <p class="request-status__error-text">{data.error()}</p>
@@ -25053,8 +24862,8 @@ function MemberPortal(props) {
25053
24862
  <MessagesPanel thread={messages} intent={intent()} />
25054
24863
  </Match7>
25055
24864
  </Switch7>
25056
- </Show72>
25057
- </Show72>;
24865
+ </Show71>
24866
+ </Show71>;
25058
24867
  return <main
25059
24868
  class="portal"
25060
24869
  data-testid="member-portal"
@@ -25066,30 +24875,30 @@ function MemberPortal(props) {
25066
24875
  <aside class="portal-rail">
25067
24876
  <div class="portal-rail__brand">
25068
24877
  <a href={props.brand.homeHref} class="portal-rail__logo">
25069
- <Show72
24878
+ <Show71
25070
24879
  when={props.brand.logoSrc}
25071
24880
  fallback={<span class="portal-rail__wordmark">{props.brand.name}</span>}
25072
24881
  >
25073
24882
  {(src) => <img src={src()} alt={props.brand.name} />}
25074
- </Show72>
24883
+ </Show71>
25075
24884
  </a>
25076
24885
  <span class="portal-rail__dot" aria-hidden="true" />
25077
24886
  </div>
25078
24887
 
25079
- <Show72 when={data.firstName() !== "Member"}>
24888
+ <Show71 when={data.firstName() !== "Member"}>
25080
24889
  <p class="portal-rail__hi">Hi, {data.firstName()}</p>
25081
- </Show72>
24890
+ </Show71>
25082
24891
 
25083
24892
  <nav class="portal-rail__nav" aria-label="Portal sections">
25084
24893
  <RailNav variant="rail" />
25085
24894
  </nav>
25086
24895
 
25087
24896
  <div class="portal-rail__foot">
25088
- <Show72 when={showBackLink()}>
24897
+ <Show71 when={showBackLink()}>
25089
24898
  <a href={catalogHref()} class="portal-rail__back" data-testid="rail-back">
25090
24899
  ← Back to shop
25091
24900
  </a>
25092
- </Show72>
24901
+ </Show71>
25093
24902
  <button type="button" class="portal-rail__signout" onClick={props.auth.onSignOut}>
25094
24903
  — Sign out
25095
24904
  </button>
@@ -25099,11 +24908,11 @@ function MemberPortal(props) {
25099
24908
  {
25100
24909
  /* ── Mobile back bar (the rail is hidden ≤900px, so nothing else links home) ── */
25101
24910
  }
25102
- <Show72 when={showBackLink()}>
24911
+ <Show71 when={showBackLink()}>
25103
24912
  <a href={catalogHref()} class="portal-topbar-back" data-testid="mobile-back">
25104
24913
  <span aria-hidden="true">←</span> Back to shop
25105
24914
  </a>
25106
- </Show72>
24915
+ </Show71>
25107
24916
 
25108
24917
  {
25109
24918
  /* ── Content ── */
@@ -25124,10 +24933,10 @@ function MemberPortal(props) {
25124
24933
  }
25125
24934
 
25126
24935
  // src/pages/AffiliatePortal.tsx
25127
- import { createEffect as createEffect18, createSignal as createSignal53, Match as Match8, Show as Show78, Switch as Switch8, For as For60 } from "solid-js";
24936
+ import { createEffect as createEffect18, createSignal as createSignal52, Match as Match8, Show as Show77, Switch as Switch8, For as For60 } from "solid-js";
25128
24937
 
25129
24938
  // src/pages/affiliate/Overview.tsx
25130
- import { Show as Show73, For as For56 } from "solid-js";
24939
+ import { Show as Show72, For as For56 } from "solid-js";
25131
24940
  function formatMoney(cents) {
25132
24941
  return `$${(cents / 100).toFixed(2)}`;
25133
24942
  }
@@ -25161,7 +24970,7 @@ function AffiliateOverview() {
25161
24970
  Overview
25162
24971
  </h1>
25163
24972
 
25164
- <Show73 when={isPending()}>
24973
+ <Show72 when={isPending()}>
25165
24974
  <div
25166
24975
  style={{
25167
24976
  padding: "1rem 1.25rem",
@@ -25174,9 +24983,9 @@ function AffiliateOverview() {
25174
24983
  Your affiliate account is awaiting approval. Once an admin
25175
24984
  activates it, your referral link will start earning commissions.
25176
24985
  </div>
25177
- </Show73>
24986
+ </Show72>
25178
24987
 
25179
- <Show73
24988
+ <Show72
25180
24989
  when={stats()}
25181
24990
  fallback={<div style={{ color: "var(--app-affiliate-fg-muted)" }}>Loading stats…</div>}
25182
24991
  >
@@ -25219,12 +25028,12 @@ function AffiliateOverview() {
25219
25028
  </div>}
25220
25029
  </For56>
25221
25030
  </div>}
25222
- </Show73>
25031
+ </Show72>
25223
25032
  </div>;
25224
25033
  }
25225
25034
 
25226
25035
  // src/pages/affiliate/Conversions.tsx
25227
- import { Show as Show74, For as For57 } from "solid-js";
25036
+ import { Show as Show73, For as For57 } from "solid-js";
25228
25037
  function formatMoney2(cents) {
25229
25038
  return `$${(cents / 100).toFixed(2)}`;
25230
25039
  }
@@ -25253,7 +25062,7 @@ function AffiliateConversions() {
25253
25062
  Conversions
25254
25063
  </h1>
25255
25064
 
25256
- <Show74
25065
+ <Show73
25257
25066
  when={(conversions() ?? []).length > 0}
25258
25067
  fallback={<div
25259
25068
  style={{
@@ -25292,7 +25101,7 @@ function AffiliateConversions() {
25292
25101
  <td data-label="Date" style={td()}>{formatDate4(c.createdAt)}</td>
25293
25102
  <td data-label="Type" style={td()}>
25294
25103
  {c.paymentType}
25295
- <Show74 when={c.tier === 2}>
25104
+ <Show73 when={c.tier === 2}>
25296
25105
  <span
25297
25106
  style={{
25298
25107
  "margin-left": "0.4rem",
@@ -25307,7 +25116,7 @@ function AffiliateConversions() {
25307
25116
  >
25308
25117
  Override
25309
25118
  </span>
25310
- </Show74>
25119
+ </Show73>
25311
25120
  </td>
25312
25121
  <td data-label="Order total" style={td()}>{formatMoney2(c.orderTotalCents)}</td>
25313
25122
  <td data-label="Commission" style={{ ...td(), color: "var(--app-affiliate-fg)", "font-weight": "600" }}>
@@ -25332,7 +25141,7 @@ function AffiliateConversions() {
25332
25141
  </tbody>
25333
25142
  </table>
25334
25143
  </div>
25335
- </Show74>
25144
+ </Show73>
25336
25145
  </div>;
25337
25146
  }
25338
25147
  function th() {
@@ -25354,7 +25163,7 @@ function td() {
25354
25163
  }
25355
25164
 
25356
25165
  // src/pages/affiliate/Downline.tsx
25357
- import { Show as Show75, For as For58 } from "solid-js";
25166
+ import { Show as Show74, For as For58 } from "solid-js";
25358
25167
  function formatDate5(iso) {
25359
25168
  const d = new Date(iso);
25360
25169
  if (Number.isNaN(d.getTime())) return iso;
@@ -25385,7 +25194,7 @@ function AffiliateDownline() {
25385
25194
  make — those show up as “Override” rows on your Conversions.
25386
25195
  </p>
25387
25196
 
25388
- <Show75
25197
+ <Show74
25389
25198
  when={(downline() ?? []).length > 0}
25390
25199
  fallback={<div
25391
25200
  style={{
@@ -25454,7 +25263,7 @@ function AffiliateDownline() {
25454
25263
  </tbody>
25455
25264
  </table>
25456
25265
  </div>
25457
- </Show75>
25266
+ </Show74>
25458
25267
  </div>;
25459
25268
  }
25460
25269
  function th2() {
@@ -25476,10 +25285,10 @@ function td2() {
25476
25285
  }
25477
25286
 
25478
25287
  // src/pages/affiliate/ReferralLink.tsx
25479
- import { Show as Show76, createSignal as createSignal52, createMemo as createMemo18 } from "solid-js";
25288
+ import { Show as Show75, createSignal as createSignal51, createMemo as createMemo18 } from "solid-js";
25480
25289
  function AffiliateReferralLink() {
25481
25290
  const { links } = useAffiliateLinks();
25482
- const [copied, setCopied] = createSignal52(false);
25291
+ const [copied, setCopied] = createSignal51(false);
25483
25292
  const homepageLink = createMemo18(() => {
25484
25293
  const l = links();
25485
25294
  const affiliate = affiliateAuth_default.affiliate();
@@ -25510,7 +25319,7 @@ function AffiliateReferralLink() {
25510
25319
  Referral link
25511
25320
  </h1>
25512
25321
 
25513
- <Show76
25322
+ <Show75
25514
25323
  when={homepageLink()}
25515
25324
  fallback={<div style={{ color: "var(--app-affiliate-fg-muted)" }}>
25516
25325
  Your referral link will appear here once your account is approved.
@@ -25586,12 +25395,12 @@ function AffiliateReferralLink() {
25586
25395
  the cookie window, you earn commission on the conversion.
25587
25396
  </div>
25588
25397
  </div>
25589
- </Show76>
25398
+ </Show75>
25590
25399
  </div>;
25591
25400
  }
25592
25401
 
25593
25402
  // src/pages/affiliate/Settings.tsx
25594
- import { Show as Show77, For as For59 } from "solid-js";
25403
+ import { Show as Show76, For as For59 } from "solid-js";
25595
25404
  var STATUS_LABEL2 = {
25596
25405
  pending: "Pending approval",
25597
25406
  active: "Active",
@@ -25621,7 +25430,7 @@ function AffiliateSettings() {
25621
25430
  Account
25622
25431
  </h1>
25623
25432
 
25624
- <Show77
25433
+ <Show76
25625
25434
  when={affiliate()}
25626
25435
  fallback={<div style={{ color: "var(--app-affiliate-fg-muted)" }}>Loading…</div>}
25627
25436
  >
@@ -25657,7 +25466,7 @@ function AffiliateSettings() {
25657
25466
  </div>}
25658
25467
  </For59>
25659
25468
  </div>}
25660
- </Show77>
25469
+ </Show76>
25661
25470
 
25662
25471
  <div>
25663
25472
  <button
@@ -25707,9 +25516,9 @@ var TAB_ORDER = [
25707
25516
  function AffiliatePortal(props) {
25708
25517
  const orderedTabs = () => props.enabledTabs ? TAB_ORDER.filter((t) => props.enabledTabs.includes(t)) : TAB_ORDER;
25709
25518
  const fallbackTab = () => props.defaultTab ?? orderedTabs()[0] ?? "overview";
25710
- const [internalTab, setInternalTab] = createSignal53(fallbackTab());
25519
+ const [internalTab, setInternalTab] = createSignal52(fallbackTab());
25711
25520
  const currentTab = () => props.activeTab ?? internalTab();
25712
- const [drawerOpen, setDrawerOpen] = createSignal53(false);
25521
+ const [drawerOpen, setDrawerOpen] = createSignal52(false);
25713
25522
  createEffect18(() => {
25714
25523
  const auth = props.auth;
25715
25524
  if (!auth) return;
@@ -25728,7 +25537,7 @@ function AffiliatePortal(props) {
25728
25537
  props.onTabChange?.(tab);
25729
25538
  };
25730
25539
  const topOffset = () => props.topOffset ?? "0px";
25731
- return <Show78 when={allowed()} fallback={<AffiliateGateSpinner topOffset={topOffset()} />}>
25540
+ return <Show77 when={allowed()} fallback={<AffiliateGateSpinner topOffset={topOffset()} />}>
25732
25541
  <div
25733
25542
  class="app-affiliate-root app-affiliate-shell"
25734
25543
  classList={{ "is-drawer-open": drawerOpen() }}
@@ -25796,12 +25605,12 @@ function AffiliatePortal(props) {
25796
25605
  color: currentTab() === tab ? "var(--app-affiliate-primary-soft-fg)" : "var(--app-affiliate-fg-muted)"
25797
25606
  }}
25798
25607
  >
25799
- <Show78 when={props.tabIcons?.[tab]}>
25608
+ <Show77 when={props.tabIcons?.[tab]}>
25800
25609
  <span
25801
25610
  class={props.tabIcons[tab]}
25802
25611
  style={{ "font-size": "1rem", opacity: 0.7, "flex-shrink": 0 }}
25803
25612
  />
25804
- </Show78>
25613
+ </Show77>
25805
25614
  {TAB_LABELS2[tab]}
25806
25615
  </button>}
25807
25616
  </For60>
@@ -25829,7 +25638,7 @@ function AffiliatePortal(props) {
25829
25638
  </Switch8>
25830
25639
  </div>
25831
25640
  </div>
25832
- </Show78>;
25641
+ </Show77>;
25833
25642
  }
25834
25643
  function AffiliateGateSpinner(props) {
25835
25644
  return <div
@@ -25861,12 +25670,12 @@ function AffiliateGateSpinner(props) {
25861
25670
  }
25862
25671
 
25863
25672
  // src/pages/AffiliateRegister.tsx
25864
- import { createSignal as createSignal55, Show as Show79 } from "solid-js";
25673
+ import { createSignal as createSignal54, Show as Show78 } from "solid-js";
25865
25674
 
25866
25675
  // src/pages/AffiliatePasswordInput.tsx
25867
- import { createSignal as createSignal54 } from "solid-js";
25676
+ import { createSignal as createSignal53 } from "solid-js";
25868
25677
  function AffiliatePasswordInput(props) {
25869
- const [visible, setVisible] = createSignal54(false);
25678
+ const [visible, setVisible] = createSignal53(false);
25870
25679
  return <div style={{ position: "relative" }}>
25871
25680
  <input
25872
25681
  type={visible() ? "text" : "password"}
@@ -25875,7 +25684,7 @@ function AffiliatePasswordInput(props) {
25875
25684
  value={props.value}
25876
25685
  onInput={(e) => props.onInput(e.currentTarget.value)}
25877
25686
  autocomplete={props.autocomplete}
25878
- style={inputStyle2()}
25687
+ style={inputStyle()}
25879
25688
  />
25880
25689
  <button
25881
25690
  type="button"
@@ -25903,7 +25712,7 @@ function AffiliatePasswordInput(props) {
25903
25712
  </button>
25904
25713
  </div>;
25905
25714
  }
25906
- function inputStyle2() {
25715
+ function inputStyle() {
25907
25716
  return {
25908
25717
  width: "100%",
25909
25718
  padding: "0.625rem 2.9rem 0.625rem 0.75rem",
@@ -25919,14 +25728,14 @@ function inputStyle2() {
25919
25728
 
25920
25729
  // src/pages/AffiliateRegister.tsx
25921
25730
  function AffiliateRegister(props) {
25922
- const [firstName, setFirstName] = createSignal55("");
25923
- const [lastName, setLastName] = createSignal55("");
25924
- const [email, setEmail] = createSignal55("");
25925
- const [password, setPassword] = createSignal55("");
25926
- const [affiliateCode, setAffiliateCode] = createSignal55("");
25927
- const [submitting, setSubmitting] = createSignal55(false);
25928
- const [submitted, setSubmitted] = createSignal55(false);
25929
- const [error, setError] = createSignal55(null);
25731
+ const [firstName, setFirstName] = createSignal54("");
25732
+ const [lastName, setLastName] = createSignal54("");
25733
+ const [email, setEmail] = createSignal54("");
25734
+ const [password, setPassword] = createSignal54("");
25735
+ const [affiliateCode, setAffiliateCode] = createSignal54("");
25736
+ const [submitting, setSubmitting] = createSignal54(false);
25737
+ const [submitted, setSubmitted] = createSignal54(false);
25738
+ const [error, setError] = createSignal54(null);
25930
25739
  async function handleSubmit(e) {
25931
25740
  e.preventDefault();
25932
25741
  setError(null);
@@ -25993,7 +25802,7 @@ function AffiliateRegister(props) {
25993
25802
  </p>
25994
25803
  </div>
25995
25804
 
25996
- <Show79
25805
+ <Show78
25997
25806
  when={!submitted()}
25998
25807
  fallback={<div
25999
25808
  style={{
@@ -26019,7 +25828,7 @@ function AffiliateRegister(props) {
26019
25828
  value={firstName()}
26020
25829
  onInput={(e) => setFirstName(e.currentTarget.value)}
26021
25830
  autocomplete="given-name"
26022
- style={inputStyle3()}
25831
+ style={inputStyle2()}
26023
25832
  />
26024
25833
  </Row2>
26025
25834
  <Row2 label="Last name">
@@ -26029,7 +25838,7 @@ function AffiliateRegister(props) {
26029
25838
  value={lastName()}
26030
25839
  onInput={(e) => setLastName(e.currentTarget.value)}
26031
25840
  autocomplete="family-name"
26032
- style={inputStyle3()}
25841
+ style={inputStyle2()}
26033
25842
  />
26034
25843
  </Row2>
26035
25844
  <Row2 label="Email">
@@ -26039,7 +25848,7 @@ function AffiliateRegister(props) {
26039
25848
  value={email()}
26040
25849
  onInput={(e) => setEmail(e.currentTarget.value)}
26041
25850
  autocomplete="email"
26042
- style={inputStyle3()}
25851
+ style={inputStyle2()}
26043
25852
  />
26044
25853
  </Row2>
26045
25854
  <Row2 label="Password" hint="At least 8 characters">
@@ -26058,7 +25867,7 @@ function AffiliateRegister(props) {
26058
25867
  minLength={4}
26059
25868
  value={affiliateCode()}
26060
25869
  onInput={(e) => setAffiliateCode(e.currentTarget.value)}
26061
- style={inputStyle3()}
25870
+ style={inputStyle2()}
26062
25871
  />
26063
25872
  </Row2>
26064
25873
  <div
@@ -26089,7 +25898,7 @@ function AffiliateRegister(props) {
26089
25898
  the website address itself.
26090
25899
  </div>
26091
25900
 
26092
- <Show79 when={error()}>
25901
+ <Show78 when={error()}>
26093
25902
  <div
26094
25903
  style={{
26095
25904
  padding: "0.625rem 0.875rem",
@@ -26101,7 +25910,7 @@ function AffiliateRegister(props) {
26101
25910
  >
26102
25911
  {error()}
26103
25912
  </div>
26104
- </Show79>
25913
+ </Show78>
26105
25914
 
26106
25915
  <button
26107
25916
  type="submit"
@@ -26120,7 +25929,7 @@ function AffiliateRegister(props) {
26120
25929
  {submitting() ? "Submitting\u2026" : "Apply"}
26121
25930
  </button>
26122
25931
 
26123
- <Show79 when={props.onNavigateLogin}>
25932
+ <Show78 when={props.onNavigateLogin}>
26124
25933
  <button
26125
25934
  type="button"
26126
25935
  onClick={() => props.onNavigateLogin?.()}
@@ -26128,9 +25937,9 @@ function AffiliateRegister(props) {
26128
25937
  >
26129
25938
  Already have an account? Log in
26130
25939
  </button>
26131
- </Show79>
25940
+ </Show78>
26132
25941
  </form>
26133
- </Show79>
25942
+ </Show78>
26134
25943
  </div>
26135
25944
  </div>;
26136
25945
  }
@@ -26147,14 +25956,14 @@ function Row2(props) {
26147
25956
  {props.label}
26148
25957
  </span>
26149
25958
  {props.children}
26150
- <Show79 when={props.hint}>
25959
+ <Show78 when={props.hint}>
26151
25960
  <span style={{ "font-size": "0.75rem", color: "var(--app-affiliate-fg-subtle)" }}>
26152
25961
  {props.hint}
26153
25962
  </span>
26154
- </Show79>
25963
+ </Show78>
26155
25964
  </label>;
26156
25965
  }
26157
- function inputStyle3() {
25966
+ function inputStyle2() {
26158
25967
  return {
26159
25968
  width: "100%",
26160
25969
  padding: "0.625rem 0.75rem",
@@ -26181,12 +25990,12 @@ function linkStyle() {
26181
25990
  }
26182
25991
 
26183
25992
  // src/pages/AffiliateLogin.tsx
26184
- import { createSignal as createSignal56, Show as Show80 } from "solid-js";
25993
+ import { createSignal as createSignal55, Show as Show79 } from "solid-js";
26185
25994
  function AffiliateLogin(props) {
26186
- const [email, setEmail] = createSignal56("");
26187
- const [password, setPassword] = createSignal56("");
26188
- const [submitting, setSubmitting] = createSignal56(false);
26189
- const [error, setError] = createSignal56(null);
25995
+ const [email, setEmail] = createSignal55("");
25996
+ const [password, setPassword] = createSignal55("");
25997
+ const [submitting, setSubmitting] = createSignal55(false);
25998
+ const [error, setError] = createSignal55(null);
26190
25999
  async function handleSubmit(e) {
26191
26000
  e.preventDefault();
26192
26001
  setError(null);
@@ -26240,19 +26049,19 @@ function AffiliateLogin(props) {
26240
26049
  style={{ display: "flex", "flex-direction": "column", gap: "0.875rem" }}
26241
26050
  >
26242
26051
  <label style={{ display: "flex", "flex-direction": "column", gap: "0.35rem" }}>
26243
- <span style={labelStyle2()}>Email</span>
26052
+ <span style={labelStyle()}>Email</span>
26244
26053
  <input
26245
26054
  type="email"
26246
26055
  required
26247
26056
  value={email()}
26248
26057
  onInput={(e) => setEmail(e.currentTarget.value)}
26249
26058
  autocomplete="email"
26250
- style={inputStyle4()}
26059
+ style={inputStyle3()}
26251
26060
  />
26252
26061
  </label>
26253
26062
 
26254
26063
  <label style={{ display: "flex", "flex-direction": "column", gap: "0.35rem" }}>
26255
- <span style={labelStyle2()}>Password</span>
26064
+ <span style={labelStyle()}>Password</span>
26256
26065
  <AffiliatePasswordInput
26257
26066
  required
26258
26067
  value={password()}
@@ -26261,7 +26070,7 @@ function AffiliateLogin(props) {
26261
26070
  />
26262
26071
  </label>
26263
26072
 
26264
- <Show80 when={error()}>
26073
+ <Show79 when={error()}>
26265
26074
  <div
26266
26075
  style={{
26267
26076
  padding: "0.625rem 0.875rem",
@@ -26273,7 +26082,7 @@ function AffiliateLogin(props) {
26273
26082
  >
26274
26083
  {error()}
26275
26084
  </div>
26276
- </Show80>
26085
+ </Show79>
26277
26086
 
26278
26087
  <button
26279
26088
  type="submit"
@@ -26292,7 +26101,7 @@ function AffiliateLogin(props) {
26292
26101
  {submitting() ? "Logging in\u2026" : "Log in"}
26293
26102
  </button>
26294
26103
 
26295
- <Show80 when={props.onNavigateForgotPassword}>
26104
+ <Show79 when={props.onNavigateForgotPassword}>
26296
26105
  <button
26297
26106
  type="button"
26298
26107
  onClick={() => props.onNavigateForgotPassword?.()}
@@ -26309,9 +26118,9 @@ function AffiliateLogin(props) {
26309
26118
  >
26310
26119
  Forgot your password?
26311
26120
  </button>
26312
- </Show80>
26121
+ </Show79>
26313
26122
 
26314
- <Show80 when={props.onNavigateRegister}>
26123
+ <Show79 when={props.onNavigateRegister}>
26315
26124
  <button
26316
26125
  type="button"
26317
26126
  onClick={() => props.onNavigateRegister?.()}
@@ -26328,12 +26137,12 @@ function AffiliateLogin(props) {
26328
26137
  >
26329
26138
  New affiliate? Apply
26330
26139
  </button>
26331
- </Show80>
26140
+ </Show79>
26332
26141
  </form>
26333
26142
  </div>
26334
26143
  </div>;
26335
26144
  }
26336
- function labelStyle2() {
26145
+ function labelStyle() {
26337
26146
  return {
26338
26147
  "font-size": "0.75rem",
26339
26148
  "text-transform": "uppercase",
@@ -26341,7 +26150,7 @@ function labelStyle2() {
26341
26150
  color: "var(--app-affiliate-fg-muted)"
26342
26151
  };
26343
26152
  }
26344
- function inputStyle4() {
26153
+ function inputStyle3() {
26345
26154
  return {
26346
26155
  width: "100%",
26347
26156
  padding: "0.625rem 0.75rem",
@@ -26356,12 +26165,12 @@ function inputStyle4() {
26356
26165
  }
26357
26166
 
26358
26167
  // src/pages/ForgotPassword.tsx
26359
- import { createSignal as createSignal57, Show as Show81 } from "solid-js";
26168
+ import { createSignal as createSignal56, Show as Show80 } from "solid-js";
26360
26169
  function ForgotPasswordPage(props) {
26361
- const [email, setEmail] = createSignal57("");
26362
- const [submitting, setSubmitting] = createSignal57(false);
26363
- const [error, setError] = createSignal57(null);
26364
- const [message, setMessage] = createSignal57(null);
26170
+ const [email, setEmail] = createSignal56("");
26171
+ const [submitting, setSubmitting] = createSignal56(false);
26172
+ const [error, setError] = createSignal56(null);
26173
+ const [message, setMessage] = createSignal56(null);
26365
26174
  async function handleSubmit(e) {
26366
26175
  e.preventDefault();
26367
26176
  setError(null);
@@ -26413,7 +26222,7 @@ function ForgotPasswordPage(props) {
26413
26222
  Reset your password
26414
26223
  </h1>
26415
26224
 
26416
- <Show81
26225
+ <Show80
26417
26226
  when={!message()}
26418
26227
  fallback={<>
26419
26228
  <div
@@ -26430,7 +26239,7 @@ function ForgotPasswordPage(props) {
26430
26239
  The link is good for one hour. If nothing arrives, check your spam folder — and make sure this is the
26431
26240
  address you signed up with.
26432
26241
  </p>
26433
- <Show81 when={props.onDone}>
26242
+ <Show80 when={props.onDone}>
26434
26243
  <button
26435
26244
  type="button"
26436
26245
  onClick={() => props.onDone?.()}
@@ -26446,7 +26255,7 @@ function ForgotPasswordPage(props) {
26446
26255
  >
26447
26256
  Back to sign in
26448
26257
  </button>
26449
- </Show81>
26258
+ </Show80>
26450
26259
  </>}
26451
26260
  >
26452
26261
  <form
@@ -26454,12 +26263,185 @@ function ForgotPasswordPage(props) {
26454
26263
  style={{ display: "flex", "flex-direction": "column", gap: "0.875rem" }}
26455
26264
  >
26456
26265
  <label style={{ display: "flex", "flex-direction": "column", gap: "0.35rem" }}>
26457
- <span style={labelStyle3()}>Email</span>
26266
+ <span style={labelStyle2()}>Email</span>
26458
26267
  <input
26459
26268
  type="email"
26460
26269
  required
26461
26270
  value={email()}
26462
26271
  onInput={(e) => setEmail(e.currentTarget.value)}
26272
+ style={inputStyle4()}
26273
+ />
26274
+ </label>
26275
+
26276
+ <Show80 when={error()}>
26277
+ <div
26278
+ style={{
26279
+ padding: "0.625rem 0.875rem",
26280
+ background: "var(--app-affiliate-danger-bg)",
26281
+ color: "var(--app-affiliate-danger-fg)",
26282
+ "border-radius": "var(--app-affiliate-radius-sm)",
26283
+ "font-size": "0.875rem"
26284
+ }}
26285
+ >
26286
+ {error()}
26287
+ </div>
26288
+ </Show80>
26289
+
26290
+ <button
26291
+ type="submit"
26292
+ disabled={submitting()}
26293
+ style={{
26294
+ padding: "0.75rem 1rem",
26295
+ background: "var(--app-affiliate-primary)",
26296
+ color: "var(--app-affiliate-primary-fg)",
26297
+ border: "none",
26298
+ "border-radius": "var(--app-affiliate-radius-sm)",
26299
+ "font-weight": "600",
26300
+ cursor: submitting() ? "not-allowed" : "pointer",
26301
+ opacity: submitting() ? 0.7 : 1
26302
+ }}
26303
+ >
26304
+ {submitting() ? "Sending\u2026" : "Send reset link"}
26305
+ </button>
26306
+ </form>
26307
+ </Show80>
26308
+ </div>
26309
+ </div>;
26310
+ }
26311
+ function labelStyle2() {
26312
+ return {
26313
+ "font-size": "0.75rem",
26314
+ "text-transform": "uppercase",
26315
+ "letter-spacing": "0.05em",
26316
+ color: "var(--app-affiliate-fg-muted)"
26317
+ };
26318
+ }
26319
+ function inputStyle4() {
26320
+ return {
26321
+ width: "100%",
26322
+ padding: "0.625rem 0.75rem",
26323
+ background: "var(--app-affiliate-surface-light)",
26324
+ color: "var(--app-affiliate-fg)",
26325
+ border: "1px solid var(--app-affiliate-border)",
26326
+ "border-radius": "var(--app-affiliate-radius-sm)",
26327
+ "font-size": "0.9rem",
26328
+ "font-family": "inherit",
26329
+ "box-sizing": "border-box"
26330
+ };
26331
+ }
26332
+
26333
+ // src/pages/ResetPassword.tsx
26334
+ import { createSignal as createSignal57, Show as Show81 } from "solid-js";
26335
+ function queryParam(name) {
26336
+ if (typeof window === "undefined") return "";
26337
+ return new URLSearchParams(window.location.search).get(name) ?? "";
26338
+ }
26339
+ function ResetPasswordPage(props) {
26340
+ const token = () => props.token ?? queryParam("token");
26341
+ const email = () => props.email ?? queryParam("email");
26342
+ const [password, setPassword] = createSignal57("");
26343
+ const [confirm2, setConfirm] = createSignal57("");
26344
+ const [submitting, setSubmitting] = createSignal57(false);
26345
+ const [error, setError] = createSignal57(null);
26346
+ const [message, setMessage] = createSignal57(null);
26347
+ async function handleSubmit(e) {
26348
+ e.preventDefault();
26349
+ setError(null);
26350
+ if (!token() || !email()) {
26351
+ setError("This reset link is missing its token. Please request a new one.");
26352
+ return;
26353
+ }
26354
+ if (password() !== confirm2()) {
26355
+ setError("Passwords do not match.");
26356
+ return;
26357
+ }
26358
+ setSubmitting(true);
26359
+ try {
26360
+ const res = await authApi.resetPassword({
26361
+ email: email().trim().toLowerCase(),
26362
+ token: token(),
26363
+ newPassword: password()
26364
+ });
26365
+ setMessage(res.message);
26366
+ props.onSuccess?.();
26367
+ } catch (err) {
26368
+ setError(err instanceof Error ? err.message : "Something went wrong");
26369
+ } finally {
26370
+ setSubmitting(false);
26371
+ }
26372
+ }
26373
+ return <div
26374
+ class="app-affiliate-root"
26375
+ style={{
26376
+ background: "var(--app-affiliate-bg)",
26377
+ color: "var(--app-affiliate-fg)",
26378
+ "min-height": "100vh",
26379
+ display: "flex",
26380
+ "align-items": "center",
26381
+ "justify-content": "center",
26382
+ padding: "2rem 1rem"
26383
+ }}
26384
+ >
26385
+ <div
26386
+ style={{
26387
+ width: "100%",
26388
+ "max-width": "24rem",
26389
+ background: "var(--app-affiliate-surface)",
26390
+ border: "1px solid var(--app-affiliate-border)",
26391
+ "border-radius": "var(--app-affiliate-radius)",
26392
+ padding: "2rem",
26393
+ display: "flex",
26394
+ "flex-direction": "column",
26395
+ gap: "1.25rem"
26396
+ }}
26397
+ >
26398
+ <h1
26399
+ style={{
26400
+ "font-family": "var(--app-affiliate-font-display)",
26401
+ margin: 0,
26402
+ "font-size": "1.5rem"
26403
+ }}
26404
+ >
26405
+ Choose a new password
26406
+ </h1>
26407
+
26408
+ <Show81
26409
+ when={!message()}
26410
+ fallback={<div
26411
+ style={{
26412
+ padding: "0.625rem 0.875rem",
26413
+ background: "var(--app-affiliate-surface-light)",
26414
+ "border-radius": "var(--app-affiliate-radius-sm)",
26415
+ "font-size": "0.875rem"
26416
+ }}
26417
+ >
26418
+ {message()}
26419
+ </div>}
26420
+ >
26421
+ <form
26422
+ onSubmit={handleSubmit}
26423
+ style={{ display: "flex", "flex-direction": "column", gap: "0.875rem" }}
26424
+ >
26425
+ <label style={{ display: "flex", "flex-direction": "column", gap: "0.35rem" }}>
26426
+ <span style={labelStyle3()}>New password</span>
26427
+ <input
26428
+ type="password"
26429
+ required
26430
+ value={password()}
26431
+ onInput={(e) => setPassword(e.currentTarget.value)}
26432
+ autocomplete="new-password"
26433
+ style={inputStyle5()}
26434
+ />
26435
+ </label>
26436
+
26437
+ <label style={{ display: "flex", "flex-direction": "column", gap: "0.35rem" }}>
26438
+ <span style={labelStyle3()}>Confirm password</span>
26439
+ <input
26440
+ type="password"
26441
+ required
26442
+ value={confirm2()}
26443
+ onInput={(e) => setConfirm(e.currentTarget.value)}
26444
+ autocomplete="new-password"
26463
26445
  style={inputStyle5()}
26464
26446
  />
26465
26447
  </label>
@@ -26492,7 +26474,7 @@ function ForgotPasswordPage(props) {
26492
26474
  opacity: submitting() ? 0.7 : 1
26493
26475
  }}
26494
26476
  >
26495
- {submitting() ? "Sending\u2026" : "Send reset link"}
26477
+ {submitting() ? "Resetting\u2026" : "Reset password"}
26496
26478
  </button>
26497
26479
  </form>
26498
26480
  </Show81>
@@ -26521,13 +26503,14 @@ function inputStyle5() {
26521
26503
  };
26522
26504
  }
26523
26505
 
26524
- // src/pages/ResetPassword.tsx
26506
+ // src/pages/AcceptAdminInvite.tsx
26525
26507
  import { createSignal as createSignal58, Show as Show82 } from "solid-js";
26526
26508
  function queryParam2(name) {
26527
26509
  if (typeof window === "undefined") return "";
26528
26510
  return new URLSearchParams(window.location.search).get(name) ?? "";
26529
26511
  }
26530
- function ResetPasswordPage(props) {
26512
+ var MIN_PASSWORD_LENGTH = 8;
26513
+ function AcceptAdminInvitePage(props) {
26531
26514
  const token = () => props.token ?? queryParam2("token");
26532
26515
  const email = () => props.email ?? queryParam2("email");
26533
26516
  const [password, setPassword] = createSignal58("");
@@ -26539,7 +26522,11 @@ function ResetPasswordPage(props) {
26539
26522
  e.preventDefault();
26540
26523
  setError(null);
26541
26524
  if (!token() || !email()) {
26542
- setError("This reset link is missing its token. Please request a new one.");
26525
+ setError("This invite link is incomplete. Ask the person who invited you to send a new one.");
26526
+ return;
26527
+ }
26528
+ if (password().length < MIN_PASSWORD_LENGTH) {
26529
+ setError(`Use at least ${MIN_PASSWORD_LENGTH} characters.`);
26543
26530
  return;
26544
26531
  }
26545
26532
  if (password() !== confirm2()) {
@@ -26548,12 +26535,12 @@ function ResetPasswordPage(props) {
26548
26535
  }
26549
26536
  setSubmitting(true);
26550
26537
  try {
26551
- const res = await authApi.resetPassword({
26538
+ await authApi.acceptAdminInvite({
26552
26539
  email: email().trim().toLowerCase(),
26553
26540
  token: token(),
26554
- newPassword: password()
26541
+ password: password()
26555
26542
  });
26556
- setMessage(res.message);
26543
+ setMessage("You\u2019re all set. Sign in with this email and your new password.");
26557
26544
  props.onSuccess?.();
26558
26545
  } catch (err) {
26559
26546
  setError(err instanceof Error ? err.message : "Something went wrong");
@@ -26593,7 +26580,7 @@ function ResetPasswordPage(props) {
26593
26580
  "font-size": "1.5rem"
26594
26581
  }}
26595
26582
  >
26596
- Choose a new password
26583
+ Accept your admin invite
26597
26584
  </h1>
26598
26585
 
26599
26586
  <Show82
@@ -26614,7 +26601,7 @@ function ResetPasswordPage(props) {
26614
26601
  style={{ display: "flex", "flex-direction": "column", gap: "0.875rem" }}
26615
26602
  >
26616
26603
  <label style={{ display: "flex", "flex-direction": "column", gap: "0.35rem" }}>
26617
- <span style={labelStyle4()}>New password</span>
26604
+ <span style={labelStyle4()}>Choose a password</span>
26618
26605
  <input
26619
26606
  type="password"
26620
26607
  required
@@ -26665,7 +26652,7 @@ function ResetPasswordPage(props) {
26665
26652
  opacity: submitting() ? 0.7 : 1
26666
26653
  }}
26667
26654
  >
26668
- {submitting() ? "Resetting\u2026" : "Reset password"}
26655
+ {submitting() ? "Saving\u2026" : "Accept invite"}
26669
26656
  </button>
26670
26657
  </form>
26671
26658
  </Show82>
@@ -27008,7 +26995,6 @@ export {
27008
26995
  RegisterPage,
27009
26996
  SubscribePage,
27010
26997
  EmailTemplates,
27011
- AcceptAdminInvitePage,
27012
26998
  AdminDashboard,
27013
26999
  ADMIN_TAB_SEGMENTS,
27014
27000
  AFFILIATE_SUB_TAB_SEGMENTS,
@@ -27024,7 +27010,8 @@ export {
27024
27010
  AffiliateLogin,
27025
27011
  ForgotPasswordPage,
27026
27012
  ResetPasswordPage,
27013
+ AcceptAdminInvitePage,
27027
27014
  AffiliateForgotPassword,
27028
27015
  AffiliateResetPassword
27029
27016
  };
27030
- //# sourceMappingURL=VUDLDIMS.jsx.map
27017
+ //# sourceMappingURL=2LZ4RMMO.jsx.map