@apextelemed/partner-core 0.23.0-dev.78 → 0.23.0-dev.80

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 (40) hide show
  1. package/dist/api/index.d.ts +1 -1
  2. package/dist/api/index.js +3 -3
  3. package/dist/api/index.jsx +3 -3
  4. package/dist/chunk/{F7FXSXKR.jsx → 2GTWVO52.jsx} +5 -5
  5. package/dist/chunk/{4VJRXVJP.js → 2OXKVNNY.js} +139 -276
  6. package/dist/chunk/2OXKVNNY.js.map +1 -0
  7. package/dist/chunk/{DTXQYGIJ.js → 3PUSGUJX.js} +6 -7
  8. package/dist/chunk/3PUSGUJX.js.map +1 -0
  9. package/dist/chunk/{5OLQYZKT.jsx → 6X2C7K6K.jsx} +2 -2
  10. package/dist/chunk/{6JUMUKSN.jsx → AA7EUOB6.jsx} +5 -6
  11. package/dist/chunk/{5OMDD7HC.js → BJXH2J3Z.js} +3 -3
  12. package/dist/chunk/{5OMDD7HC.js.map → BJXH2J3Z.js.map} +1 -1
  13. package/dist/chunk/{XFKYBR7X.js → GF4CVY2S.js} +3 -3
  14. package/dist/chunk/{XFKYBR7X.js.map → GF4CVY2S.js.map} +1 -1
  15. package/dist/chunk/{AOU7JIZI.jsx → IM27S2HM.jsx} +2 -2
  16. package/dist/chunk/{5L6VDC4W.jsx → KPFIVXLP.jsx} +14 -133
  17. package/dist/chunk/{XLJ7GEWD.js → M6PV6FON.js} +5 -5
  18. package/dist/chunk/{XLJ7GEWD.js.map → M6PV6FON.js.map} +1 -1
  19. package/dist/chunk/{2M3CVZ2D.js → MCZVL3GO.js} +6 -6
  20. package/dist/chunk/{2M3CVZ2D.js.map → MCZVL3GO.js.map} +1 -1
  21. package/dist/chunk/{Z7QE2PW6.jsx → PXICBLZI.jsx} +4 -4
  22. package/dist/chunk/{UBUC63F3.jsx → QKCN523Q.jsx} +2 -2
  23. package/dist/chunk/{XKMPKFQC.js → TNGDSXSC.js} +3 -3
  24. package/dist/chunk/{XKMPKFQC.js.map → TNGDSXSC.js.map} +1 -1
  25. package/dist/{client-C1pHvA6f.d.ts → client-CsxG6Mdf.d.ts} +10 -16
  26. package/dist/flows/index.d.ts +1 -1
  27. package/dist/flows/index.js +6 -6
  28. package/dist/flows/index.jsx +6 -6
  29. package/dist/index/index.d.ts +1 -1
  30. package/dist/index/index.js +7 -7
  31. package/dist/index/index.jsx +7 -7
  32. package/dist/pages/index.d.ts +1 -1
  33. package/dist/pages/index.js +5 -5
  34. package/dist/pages/index.jsx +5 -5
  35. package/dist/stores/index.d.ts +1 -1
  36. package/dist/stores/index.js +2 -2
  37. package/dist/stores/index.jsx +2 -2
  38. package/package.json +1 -1
  39. package/dist/chunk/4VJRXVJP.js.map +0 -1
  40. package/dist/chunk/DTXQYGIJ.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import { disqualificationReasonText, qualifiedDrugIds } from './LZWA44KD.js';
2
- import { SUPPORT_CATEGORIES, useSurveyFlow, reconcileCartAgainstCatalog, resolveSurveyV2DrugIntent, emailGateAnswered, redeemResumeLink, useSurveyV2Flow, US_STATE_OPTIONS, availableStateOptions, useCheckoutFlow, catalogUnavailableMessage, useCartCheckoutFlow, useSignupFlow, useRegisterFlow, useSubscribeFlow, useDashboardData, useUpdatePaymentMethodFlow, useMemberPortalData, useMessagesThread, captureFunnelEmail, markEmailGateAnswered, isCatalogItemId, subscribeToSupportTopic, useAffiliateStats, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, stateAvailabilityNote, hasStateRestrictions, uploadPrescriptionPhoto, deriveAttention, deriveJourney, buildTimeline, lifecycleReason, accountSource, intakeEvidence, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, classifyCatalogError, groupDrugsByPharmacy, useProductCatalogEditor, skuBindingModeFor, isCssColorValue, categoryLabel, useSmsPreferences, formatUsPhone, formatConversationTime, buildTrackerView, ACCOUNT_SOURCE_LABEL, fmtDay, createCatalogProduct, addCatalogItemAsProduct, applyPriceDrafts, resolveStrengthPrices, invalidDraftKeys, orphanKey, ORPHAN_REASON, useAddPharmacy, READINESS_LABEL, useCatalogConversion, formatCalendarDate, formatMessageTime, formatEventDate, formatStageDate, offerSummaryText, LIFECYCLE_TONE, buildTrackingUrl, buildStrengthRows, pharmacyLabel, isImageAttachment, buildRefillView, toTrackerRequest, needsReview, visibleWarnings, compareStrengths, MATCH_DEPENDENT_WARNINGS, SOURCE_FIELD_NOTE, MATCH_HOW_LABEL, explainFinding, matchKey } from './XLJ7GEWD.js';
3
- import { fetchFunnelConfig } from './5OMDD7HC.js';
2
+ import { SUPPORT_CATEGORIES, useSurveyFlow, reconcileCartAgainstCatalog, resolveSurveyV2DrugIntent, emailGateAnswered, redeemResumeLink, useSurveyV2Flow, US_STATE_OPTIONS, availableStateOptions, useCheckoutFlow, catalogUnavailableMessage, useCartCheckoutFlow, useSignupFlow, useRegisterFlow, useSubscribeFlow, useDashboardData, useUpdatePaymentMethodFlow, useMemberPortalData, useMessagesThread, captureFunnelEmail, markEmailGateAnswered, isCatalogItemId, subscribeToSupportTopic, useAffiliateStats, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, stateAvailabilityNote, hasStateRestrictions, uploadPrescriptionPhoto, deriveAttention, deriveJourney, buildTimeline, lifecycleReason, accountSource, intakeEvidence, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, classifyCatalogError, groupDrugsByPharmacy, useProductCatalogEditor, skuBindingModeFor, isCssColorValue, categoryLabel, useSmsPreferences, formatUsPhone, formatConversationTime, buildTrackerView, ACCOUNT_SOURCE_LABEL, fmtDay, createCatalogProduct, addCatalogItemAsProduct, applyPriceDrafts, resolveStrengthPrices, invalidDraftKeys, orphanKey, ORPHAN_REASON, useAddPharmacy, READINESS_LABEL, useCatalogConversion, formatCalendarDate, formatMessageTime, formatEventDate, formatStageDate, offerSummaryText, LIFECYCLE_TONE, buildTrackingUrl, buildStrengthRows, pharmacyLabel, isImageAttachment, buildRefillView, toTrackerRequest, needsReview, visibleWarnings, compareStrengths, MATCH_DEPENDENT_WARNINGS, SOURCE_FIELD_NOTE, MATCH_HOW_LABEL, explainFinding, matchKey } from './M6PV6FON.js';
3
+ import { fetchFunnelConfig } from './BJXH2J3Z.js';
4
4
  import { usePrimitives } from './67KHO66G.js';
5
- import { cart_default, auth_default, affiliateAuth_default } from './XKMPKFQC.js';
6
- import { usersApi, adminApi, membersApi, offersApi, authApi, affiliatePortalApi, adminAffiliatesApi, apiFetch, apexApi, adminCatalogApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, ADMIN_ROLES, ApiError, subscriptionsApi } from './DTXQYGIJ.js';
5
+ import { cart_default, auth_default, affiliateAuth_default } from './TNGDSXSC.js';
6
+ import { usersApi, adminApi, membersApi, offersApi, authApi, affiliatePortalApi, adminAffiliatesApi, apiFetch, apexApi, adminCatalogApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, ADMIN_ROLES, ApiError, subscriptionsApi } from './3PUSGUJX.js';
7
7
  import { delegateEvents, createComponent, insert, memo, effect, setStyleProperty, mergeProps, use, setAttribute, addEventListener, style, className, Dynamic, Portal, template } from 'solid-js/web';
8
8
  import { createContext, createSignal, createEffect, on, Show, For, createResource, createMemo, untrack, ErrorBoundary, Switch, Match, onMount, onCleanup, useContext, Index } from 'solid-js';
9
9
  import { isQuestionVisible } from '@apextelemed/survey-core';
@@ -28003,67 +28003,11 @@ function SmsLogCard(props) {
28003
28003
  });
28004
28004
  }
28005
28005
  delegateEvents(["click"]);
28006
-
28007
- // src/pages/admin/sms/smsSegments.ts
28008
- var GSM_BASIC = `@\xA3$\xA5\xE8\xE9\xF9\xEC\xF2\xC7
28009
- \xD8\xF8\r\xC5\xE5\u0394_\u03A6\u0393\u039B\u03A9\u03A0\u03A8\u03A3\u0398\u039E\xC6\xE6\xDF\xC9 !"#\xA4%&'()*+,-./0123456789:;<=>?\xA1ABCDEFGHIJKLMNOPQRSTUVWXYZ\xC4\xD6\xD1\xDC\xA7\xBFabcdefghijklmnopqrstuvwxyz\xE4\xF6\xF1\xFC\xE0`;
28010
- var GSM_EXTENDED = "^{}\\[~]|\u20AC";
28011
- var BASIC = new Set(GSM_BASIC);
28012
- var EXTENDED = new Set(GSM_EXTENDED);
28013
- var GSM7_SINGLE = 160;
28014
- var GSM7_MULTI = 153;
28015
- var UCS2_SINGLE = 70;
28016
- var UCS2_MULTI = 67;
28017
- function countSmsSegments(text) {
28018
- let gsmUnits = 0;
28019
- let gsm = true;
28020
- for (const ch of text) {
28021
- if (BASIC.has(ch)) gsmUnits += 1;
28022
- else if (EXTENDED.has(ch)) gsmUnits += 2;
28023
- else {
28024
- gsm = false;
28025
- break;
28026
- }
28027
- }
28028
- if (gsm) {
28029
- return {
28030
- encoding: "GSM-7",
28031
- units: gsmUnits,
28032
- segments: gsmUnits === 0 ? 0 : gsmUnits <= GSM7_SINGLE ? 1 : Math.ceil(gsmUnits / GSM7_MULTI)
28033
- };
28034
- }
28035
- const units = text.length;
28036
- return {
28037
- encoding: "UCS-2",
28038
- units,
28039
- segments: units <= UCS2_SINGLE ? 1 : Math.ceil(units / UCS2_MULTI)
28040
- };
28041
- }
28042
- function segmentCapacity(info) {
28043
- if (info.encoding === "GSM-7") return info.segments <= 1 ? GSM7_SINGLE : GSM7_MULTI * info.segments;
28044
- return info.segments <= 1 ? UCS2_SINGLE : UCS2_MULTI * info.segments;
28045
- }
28046
-
28047
- // src/pages/admin/sms/smsTemplateDraft.ts
28048
- function changeFor(saved, draft) {
28049
- const change = {};
28050
- if (draft.enabled !== saved.enabled) change.enabled = draft.enabled;
28051
- if (draft.body !== saved.body) change.body = draft.body === saved.defaultBody ? null : draft.body;
28052
- return Object.keys(change).length > 0 ? change : null;
28053
- }
28054
- var tokenText = (token) => `{{${token}}}`;
28055
-
28056
- // src/pages/admin/sms/SmsTemplatesCard.tsx
28057
- var _tmpl$478 = /* @__PURE__ */ template(`<div class=app-admin-notice role=note>This text has a character outside the basic SMS alphabet (a curly quote, an emoji or an accented letter), so it is sent in a form that fits only 70 characters per segment instead of 160.`);
28058
- var _tmpl$2131 = /* @__PURE__ */ template(`<div style=display:flex;flex-wrap:wrap;align-items:center;gap:0.375rem><span>Insert:`);
28059
- var _tmpl$3105 = /* @__PURE__ */ template(`<div>Preview: <span style=color:var(--app-admin-fg)>`);
28060
- var _tmpl$479 = /* @__PURE__ */ template(`<div class=app-admin-notice role=alert>`);
28061
- var _tmpl$568 = /* @__PURE__ */ template(`<div>The test sends the saved text. Save your changes first to try them.`);
28062
- var _tmpl$660 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style=padding:0.875rem;display:grid;gap:0.625rem><div style=display:flex;align-items:center;justify-content:space-between;gap:1rem><div style=font-size:0.875rem;font-weight:600></div><label style=display:flex;align-items:center;gap:0.5rem;font-size:0.8125rem;cursor:pointer><input type=checkbox role=switch></label></div><textarea class=app-admin-input rows=3></textarea><div style="display:flex;flex-wrap:wrap;justify-content:space-between;gap:0.5rem 1rem"><span data-testid=sms-counter>/300 characters \xB7 <!> \xB7 <!>/<!> \xB7 <!> </span><span>Must start with <!>.</span></div><div class=app-admin-btn-row><button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm"></button><button type=button class="app-admin-btn app-admin-btn-sm">Reset to default</button><button type=button class="app-admin-btn app-admin-btn-sm">`);
28063
- var _tmpl$754 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-sm">`);
28064
- var _tmpl$846 = /* @__PURE__ */ template(`<div class=app-admin-notice role=status>`);
28065
- var _tmpl$942 = /* @__PURE__ */ template(`<div class=app-admin-notice role=alert>The texts could not be loaded. `);
28066
- var MAX_BODY_LENGTH = 300;
28006
+ var _tmpl$478 = /* @__PURE__ */ template(`<div class=app-admin-notice role=alert>`);
28007
+ var _tmpl$2131 = /* @__PURE__ */ template(`<div>The test follows the saved setting. Save your change first.`);
28008
+ var _tmpl$3105 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style=padding:0.875rem;display:grid;gap:0.625rem><div style=display:flex;align-items:center;justify-content:space-between;gap:1rem><div style=font-size:0.875rem;font-weight:600></div><label style=display:flex;align-items:center;gap:0.5rem;font-size:0.8125rem;cursor:pointer><input type=checkbox role=switch></label></div><div data-testid=sms-preview>Preview: <span style=color:var(--app-admin-fg)></span></div><div class=app-admin-btn-row><button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm"></button><button type=button class="app-admin-btn app-admin-btn-sm">`);
28009
+ var _tmpl$479 = /* @__PURE__ */ template(`<div class=app-admin-notice role=status>`);
28010
+ var _tmpl$568 = /* @__PURE__ */ template(`<div class=app-admin-notice role=alert>The texts could not be loaded. `);
28067
28011
  function testMessage(res) {
28068
28012
  switch (res.status) {
28069
28013
  case "sent":
@@ -28093,46 +28037,27 @@ function testMessage(res) {
28093
28037
  };
28094
28038
  }
28095
28039
  }
28096
- function TemplateEditor(props) {
28040
+ function TemplateRow(props) {
28097
28041
  const saved = () => props.template;
28098
28042
  const [enabled, setEnabled] = createSignal(saved().enabled);
28099
- const [body, setBody] = createSignal(saved().body);
28100
28043
  const [saving, setSaving] = createSignal(false);
28101
28044
  const [error, setError] = createSignal(null);
28102
28045
  const [testing, setTesting] = createSignal(false);
28103
28046
  const [test, setTest] = createSignal(null);
28104
- let area;
28105
- const change = () => changeFor(saved(), {
28106
- enabled: enabled(),
28107
- body: body()
28108
- });
28109
- const dirty = () => change() !== null;
28110
- const counts = () => countSmsSegments(body());
28111
- const tooLong = () => body().length > MAX_BODY_LENGTH;
28112
- const insertToken = (token) => {
28113
- const text = tokenText(token);
28114
- const start = area?.selectionStart ?? body().length;
28115
- const end = area?.selectionEnd ?? start;
28116
- setBody(body().slice(0, start) + text + body().slice(end));
28117
- const caret = start + text.length;
28118
- queueMicrotask(() => {
28119
- area?.focus();
28120
- area?.setSelectionRange(caret, caret);
28121
- });
28122
- };
28047
+ const dirty = () => enabled() !== saved().enabled;
28123
28048
  const save = async () => {
28124
- const c = change();
28125
- if (!c || saving()) return;
28049
+ if (!dirty() || saving()) return;
28126
28050
  setSaving(true);
28127
28051
  setError(null);
28128
28052
  try {
28129
28053
  const res = await adminApi.saveSmsTemplates({
28130
- [saved().key]: c
28054
+ [saved().key]: {
28055
+ enabled: enabled()
28056
+ }
28131
28057
  });
28132
28058
  const next = res.templates.find((t) => t.key === saved().key);
28133
28059
  if (next) {
28134
28060
  setEnabled(next.enabled);
28135
- setBody(next.body);
28136
28061
  props.onSaved(next);
28137
28062
  }
28138
28063
  toastSuccess(`${saved().label} text saved`);
@@ -28158,84 +28083,33 @@ function TemplateEditor(props) {
28158
28083
  }
28159
28084
  };
28160
28085
  return (() => {
28161
- var _el$ = _tmpl$660(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild, _el$6 = _el$2.nextSibling, _el$7 = _el$6.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild, _el$15 = _el$9.nextSibling, _el$10 = _el$15.nextSibling, _el$16 = _el$10.nextSibling, _el$11 = _el$16.nextSibling, _el$17 = _el$11.nextSibling, _el$12 = _el$17.nextSibling, _el$18 = _el$12.nextSibling; _el$18.nextSibling; var _el$19 = _el$8.nextSibling, _el$20 = _el$19.firstChild, _el$22 = _el$20.nextSibling; _el$22.nextSibling; var _el$30 = _el$7.nextSibling, _el$31 = _el$30.firstChild, _el$32 = _el$31.nextSibling, _el$33 = _el$32.nextSibling;
28086
+ var _el$ = _tmpl$3105(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild, _el$6 = _el$2.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$0 = _el$6.nextSibling, _el$1 = _el$0.firstChild, _el$10 = _el$1.nextSibling;
28162
28087
  insert(_el$3, () => saved().label);
28163
28088
  _el$5.addEventListener("change", (e) => setEnabled(e.currentTarget.checked));
28164
28089
  insert(_el$4, () => enabled() ? "On" : "Off", null);
28165
- _el$6.$$input = (e) => setBody(e.currentTarget.value);
28166
- var _ref$ = area;
28167
- typeof _ref$ === "function" ? use(_ref$, _el$6) : area = _el$6;
28168
- insert(_el$8, () => body().length, _el$9);
28169
- insert(_el$8, () => counts().encoding, _el$15);
28170
- insert(_el$8, () => counts().units, _el$16);
28171
- insert(_el$8, () => segmentCapacity(counts()), _el$17);
28172
- insert(_el$8, () => counts().segments, _el$18);
28173
- insert(_el$8, () => counts().segments === 1 ? "segment" : "segments", null);
28174
- insert(_el$19, () => tokenText("siteName"), _el$22);
28175
- insert(_el$, createComponent(Show, {
28176
- get when() {
28177
- return memo(() => counts().encoding === "UCS-2")() && body().length > 0;
28178
- },
28179
- get children() {
28180
- return _tmpl$478();
28181
- }
28182
- }), _el$30);
28183
- insert(_el$, createComponent(Show, {
28184
- get when() {
28185
- return saved().tokens.length > 0;
28186
- },
28187
- get children() {
28188
- var _el$24 = _tmpl$2131(), _el$25 = _el$24.firstChild;
28189
- insert(_el$24, createComponent(For, {
28190
- get each() {
28191
- return saved().tokens;
28192
- },
28193
- children: (token) => (() => {
28194
- var _el$35 = _tmpl$754();
28195
- _el$35.$$click = () => insertToken(token);
28196
- insert(_el$35, () => tokenText(token));
28197
- effect(() => setAttribute(_el$35, "aria-label", `Insert ${tokenText(token)}`));
28198
- return _el$35;
28199
- })()
28200
- }), null);
28201
- effect((_$p) => style(_el$25, muted3, _$p));
28202
- return _el$24;
28203
- }
28204
- }), _el$30);
28205
- insert(_el$, createComponent(Show, {
28206
- get when() {
28207
- return memo(() => !!!dirty())() && saved().preview;
28208
- },
28209
- get children() {
28210
- var _el$26 = _tmpl$3105(), _el$27 = _el$26.firstChild, _el$28 = _el$27.nextSibling;
28211
- insert(_el$28, () => saved().preview);
28212
- effect((_$p) => style(_el$26, muted3, _$p));
28213
- return _el$26;
28214
- }
28215
- }), _el$30);
28090
+ insert(_el$8, () => saved().preview);
28216
28091
  insert(_el$, createComponent(Show, {
28217
28092
  get when() {
28218
28093
  return error();
28219
28094
  },
28220
28095
  get children() {
28221
- var _el$29 = _tmpl$479();
28222
- insert(_el$29, error);
28223
- return _el$29;
28096
+ var _el$9 = _tmpl$478();
28097
+ insert(_el$9, error);
28098
+ return _el$9;
28224
28099
  }
28225
- }), _el$30);
28226
- _el$31.$$click = () => void save();
28227
- insert(_el$31, () => saving() ? "Saving\u2026" : "Save");
28228
- _el$32.$$click = () => setBody(saved().defaultBody);
28229
- _el$33.$$click = () => void sendTest();
28230
- insert(_el$33, () => testing() ? "Sending\u2026" : "Send test to my phone");
28100
+ }), _el$0);
28101
+ _el$1.$$click = () => void save();
28102
+ insert(_el$1, () => saving() ? "Saving\u2026" : "Save");
28103
+ _el$10.$$click = () => void sendTest();
28104
+ insert(_el$10, () => testing() ? "Sending\u2026" : "Send test to my phone");
28231
28105
  insert(_el$, createComponent(Show, {
28232
28106
  get when() {
28233
28107
  return dirty();
28234
28108
  },
28235
28109
  get children() {
28236
- var _el$34 = _tmpl$568();
28237
- effect((_$p) => style(_el$34, muted3, _$p));
28238
- return _el$34;
28110
+ var _el$11 = _tmpl$2131();
28111
+ effect((_$p) => style(_el$11, muted3, _$p));
28112
+ return _el$11;
28239
28113
  }
28240
28114
  }), null);
28241
28115
  insert(_el$, createComponent(Show, {
@@ -28243,41 +28117,30 @@ function TemplateEditor(props) {
28243
28117
  return test();
28244
28118
  },
28245
28119
  children: (t) => (() => {
28246
- var _el$36 = _tmpl$846();
28247
- insert(_el$36, () => t().text);
28248
- effect((_$p) => style(_el$36, t().tone === "bad" ? {
28120
+ var _el$12 = _tmpl$479();
28121
+ insert(_el$12, () => t().text);
28122
+ effect((_$p) => style(_el$12, t().tone === "bad" ? {
28249
28123
  color: "var(--app-admin-danger-fg)"
28250
28124
  } : void 0, _$p));
28251
- return _el$36;
28125
+ return _el$12;
28252
28126
  })()
28253
28127
  }), null);
28254
28128
  effect((_p$) => {
28255
- var _v$ = saved().key, _v$2 = `Send the ${saved().label} text`, _v$3 = `${saved().label} text`, _v$4 = {
28256
- ...muted3
28257
- }, _v$5 = tooLong() ? {
28258
- color: "var(--app-admin-danger-fg)"
28259
- } : void 0, _v$6 = !dirty() || saving(), _v$7 = body() === saved().defaultBody || saving(), _v$8 = testing();
28129
+ var _v$ = saved().key, _v$2 = `Send the ${saved().label} text`, _v$3 = muted3, _v$4 = !dirty() || saving(), _v$5 = testing();
28260
28130
  _v$ !== _p$.e && setAttribute(_el$, "data-template", _p$.e = _v$);
28261
28131
  _v$2 !== _p$.t && setAttribute(_el$5, "aria-label", _p$.t = _v$2);
28262
- _v$3 !== _p$.a && setAttribute(_el$6, "aria-label", _p$.a = _v$3);
28263
- _p$.o = style(_el$7, _v$4, _p$.o);
28264
- _p$.i = style(_el$8, _v$5, _p$.i);
28265
- _v$6 !== _p$.n && (_el$31.disabled = _p$.n = _v$6);
28266
- _v$7 !== _p$.s && (_el$32.disabled = _p$.s = _v$7);
28267
- _v$8 !== _p$.h && (_el$33.disabled = _p$.h = _v$8);
28132
+ _p$.a = style(_el$6, _v$3, _p$.a);
28133
+ _v$4 !== _p$.o && (_el$1.disabled = _p$.o = _v$4);
28134
+ _v$5 !== _p$.i && (_el$10.disabled = _p$.i = _v$5);
28268
28135
  return _p$;
28269
28136
  }, {
28270
28137
  e: void 0,
28271
28138
  t: void 0,
28272
28139
  a: void 0,
28273
28140
  o: void 0,
28274
- i: void 0,
28275
- n: void 0,
28276
- s: void 0,
28277
- h: void 0
28141
+ i: void 0
28278
28142
  });
28279
28143
  effect(() => _el$5.checked = enabled());
28280
- effect(() => _el$6.value = body());
28281
28144
  return _el$;
28282
28145
  })();
28283
28146
  }
@@ -28295,16 +28158,16 @@ function SmsTemplatesCard(props) {
28295
28158
  });
28296
28159
  return createComponent(SmsCard, {
28297
28160
  title: "What the texts say",
28298
- note: "Each text starts with your site name. A text that fits in one segment costs the least; going past it sends (and bills) more than one.",
28161
+ note: "The wording of each text is fixed. You can switch each one on or off.",
28299
28162
  get children() {
28300
28163
  return [createComponent(Show, {
28301
28164
  get when() {
28302
28165
  return data.error;
28303
28166
  },
28304
28167
  get children() {
28305
- var _el$37 = _tmpl$942(); _el$37.firstChild;
28306
- insert(_el$37, () => data.error?.message, null);
28307
- return _el$37;
28168
+ var _el$13 = _tmpl$568(); _el$13.firstChild;
28169
+ insert(_el$13, () => data.error?.message, null);
28170
+ return _el$13;
28308
28171
  }
28309
28172
  }), createComponent(Show, {
28310
28173
  get when() {
@@ -28317,7 +28180,7 @@ function SmsTemplatesCard(props) {
28317
28180
  get each() {
28318
28181
  return templates();
28319
28182
  },
28320
- children: (t) => createComponent(TemplateEditor, {
28183
+ children: (t) => createComponent(TemplateRow, {
28321
28184
  template: t,
28322
28185
  onSaved: replace
28323
28186
  })
@@ -28325,7 +28188,7 @@ function SmsTemplatesCard(props) {
28325
28188
  }
28326
28189
  });
28327
28190
  }
28328
- delegateEvents(["input", "click"]);
28191
+ delegateEvents(["click"]);
28329
28192
 
28330
28193
  // src/pages/admin/SmsSettings.tsx
28331
28194
  var _tmpl$480 = /* @__PURE__ */ template(`<div style=display:flex;gap:1rem;font-size:0.875rem><div style=width:8rem;flex-shrink:0></div><div style=min-width:0;word-break:break-word>`);
@@ -28333,10 +28196,10 @@ var _tmpl$2132 = /* @__PURE__ */ template(`<p data-testid=sms-status-text style=
28333
28196
  var _tmpl$3106 = /* @__PURE__ */ template(`<button type=button class=app-admin-link-btn>Go to Features`);
28334
28197
  var _tmpl$481 = /* @__PURE__ */ template(`<div class=app-admin-notice data-testid=sms-feature-off>Before this site can text customers, a number has to be registered with carriers, which we set up for you. Ask for it under Settings \u203A Features.`);
28335
28198
  var _tmpl$569 = /* @__PURE__ */ template(`<a target=_blank rel="noopener noreferrer">`);
28336
- var _tmpl$661 = /* @__PURE__ */ template(`<div style=display:grid;gap:0.5rem>`);
28337
- var _tmpl$755 = /* @__PURE__ */ template(`<span data-testid=sms-status-badge>`);
28338
- var _tmpl$847 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>No number yet`);
28339
- var _tmpl$943 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>-`);
28199
+ var _tmpl$660 = /* @__PURE__ */ template(`<div style=display:grid;gap:0.5rem>`);
28200
+ var _tmpl$754 = /* @__PURE__ */ template(`<span data-testid=sms-status-badge>`);
28201
+ var _tmpl$846 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>No number yet`);
28202
+ var _tmpl$942 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>-`);
28340
28203
  var _tmpl$038 = /* @__PURE__ */ template(`<div class=app-admin-notice role=alert style=margin-top:1.25rem>Text message settings could not be loaded. `);
28341
28204
  var _tmpl$1140 = /* @__PURE__ */ template(`<div>`);
28342
28205
  var NOT_READY = {
@@ -28363,7 +28226,7 @@ function StatusCard(props) {
28363
28226
  title: "Status",
28364
28227
  get aside() {
28365
28228
  return (() => {
28366
- var _el$1 = _tmpl$755();
28229
+ var _el$1 = _tmpl$754();
28367
28230
  insert(_el$1, () => s().ready ? "Ready" : "Not sending");
28368
28231
  effect(() => className(_el$1, `app-admin-badge app-admin-badge--${s().ready ? "success" : "warning"}`));
28369
28232
  return _el$1;
@@ -28402,17 +28265,17 @@ function StatusCard(props) {
28402
28265
  return s().feature;
28403
28266
  },
28404
28267
  get children() {
28405
- var _el$8 = _tmpl$661();
28268
+ var _el$8 = _tmpl$660();
28406
28269
  insert(_el$8, createComponent(Row2, {
28407
28270
  label: "Sends from",
28408
28271
  get children() {
28409
- return s().fromNumber ?? _tmpl$847();
28272
+ return s().fromNumber ?? _tmpl$846();
28410
28273
  }
28411
28274
  }), null);
28412
28275
  insert(_el$8, createComponent(Row2, {
28413
28276
  label: "Brand name",
28414
28277
  get children() {
28415
- return s().brandName || _tmpl$943();
28278
+ return s().brandName || _tmpl$942();
28416
28279
  }
28417
28280
  }), null);
28418
28281
  insert(_el$8, createComponent(Row2, {
@@ -28423,7 +28286,7 @@ function StatusCard(props) {
28423
28286
  return s().termsUrl;
28424
28287
  },
28425
28288
  get fallback() {
28426
- return _tmpl$943();
28289
+ return _tmpl$942();
28427
28290
  },
28428
28291
  get children() {
28429
28292
  var _el$9 = _tmpl$569();
@@ -28442,7 +28305,7 @@ function StatusCard(props) {
28442
28305
  return s().privacyUrl;
28443
28306
  },
28444
28307
  get fallback() {
28445
- return _tmpl$943();
28308
+ return _tmpl$942();
28446
28309
  },
28447
28310
  get children() {
28448
28311
  var _el$0 = _tmpl$569();
@@ -28536,10 +28399,10 @@ var _tmpl$2133 = /* @__PURE__ */ template(`<select class=app-admin-input>`);
28536
28399
  var _tmpl$3107 = /* @__PURE__ */ template(`<option>`);
28537
28400
  var _tmpl$486 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style="padding:0.625rem 0.875rem;margin-top:0.75rem;font-size:0.875rem">`);
28538
28401
  var _tmpl$570 = /* @__PURE__ */ template(`<table class=app-admin-table><thead><tr><th>Admin</th><th>Role</th><th style=text-align:right></th></tr></thead><tbody>`);
28539
- var _tmpl$664 = /* @__PURE__ */ template(`<div class=app-admin-heading style="font-size:1rem;margin:1.5rem 0 0.5rem">Pending invites`);
28540
- var _tmpl$756 = /* @__PURE__ */ template(`<table class=app-admin-table><thead><tr><th>Email</th><th>Role when they join</th><th>Expires</th><th style=text-align:right></th></tr></thead><tbody>`);
28541
- var _tmpl$848 = /* @__PURE__ */ template(`<div><form class=app-admin-card style=padding:1rem;margin-bottom:1.5rem><div class=app-admin-heading style=font-size:1rem;margin-bottom:0.75rem>Invite an admin</div><div style=display:flex;gap:0.75rem;flex-wrap:wrap;align-items:flex-end><label style="display:flex;flex-direction:column;gap:0.25rem;flex:1 1 16rem"><span class=app-admin-label>Email</span><input class=app-admin-input type=email required placeholder=name@example.com></label><label style=display:flex;flex-direction:column;gap:0.25rem><span class=app-admin-label>Role</span></label><button type=submit class="app-admin-btn app-admin-btn-primary"></button></div><div class=app-admin-text-muted style=font-size:0.8125rem;margin-top:0.5rem>: `);
28542
- var _tmpl$944 = /* @__PURE__ */ template(`<span class=app-admin-text-muted> (you)`);
28402
+ var _tmpl$661 = /* @__PURE__ */ template(`<div class=app-admin-heading style="font-size:1rem;margin:1.5rem 0 0.5rem">Pending invites`);
28403
+ var _tmpl$755 = /* @__PURE__ */ template(`<table class=app-admin-table><thead><tr><th>Email</th><th>Role when they join</th><th>Expires</th><th style=text-align:right></th></tr></thead><tbody>`);
28404
+ var _tmpl$847 = /* @__PURE__ */ template(`<div><form class=app-admin-card style=padding:1rem;margin-bottom:1.5rem><div class=app-admin-heading style=font-size:1rem;margin-bottom:0.75rem>Invite an admin</div><div style=display:flex;gap:0.75rem;flex-wrap:wrap;align-items:flex-end><label style="display:flex;flex-direction:column;gap:0.25rem;flex:1 1 16rem"><span class=app-admin-label>Email</span><input class=app-admin-input type=email required placeholder=name@example.com></label><label style=display:flex;flex-direction:column;gap:0.25rem><span class=app-admin-label>Role</span></label><button type=submit class="app-admin-btn app-admin-btn-primary"></button></div><div class=app-admin-text-muted style=font-size:0.8125rem;margin-top:0.5rem>: `);
28405
+ var _tmpl$943 = /* @__PURE__ */ template(`<span class=app-admin-text-muted> (you)`);
28543
28406
  var _tmpl$039 = /* @__PURE__ */ template(`<tr><td></td><td></td><td style=text-align:right><button type=button class="app-admin-btn app-admin-btn-ghost">Remove`);
28544
28407
  var _tmpl$1141 = /* @__PURE__ */ template(`<tr><td></td><td></td><td class=app-admin-text-muted></td><td style=text-align:right><button type=button class="app-admin-btn app-admin-btn-ghost">Withdraw`);
28545
28408
  var ADMIN_ROLE_SUMMARY = {
@@ -28636,7 +28499,7 @@ function Admins(props) {
28636
28499
  };
28637
28500
  const isMe = (a) => adminMe()?.uid === a.id;
28638
28501
  return (() => {
28639
- var _el$4 = _tmpl$848(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild, _el$0 = _el$9.nextSibling, _el$1 = _el$8.nextSibling; _el$1.firstChild; var _el$11 = _el$1.nextSibling, _el$12 = _el$7.nextSibling, _el$13 = _el$12.firstChild;
28502
+ var _el$4 = _tmpl$847(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild, _el$0 = _el$9.nextSibling, _el$1 = _el$8.nextSibling; _el$1.firstChild; var _el$11 = _el$1.nextSibling, _el$12 = _el$7.nextSibling, _el$13 = _el$12.firstChild;
28640
28503
  insert(_el$4, createComponent(PageTitle, {
28641
28504
  subtitle: "Who can use this admin, and what each person can see and do.",
28642
28505
  children: "Admins"
@@ -28694,7 +28557,7 @@ function Admins(props) {
28694
28557
  return isMe(a);
28695
28558
  },
28696
28559
  get children() {
28697
- return _tmpl$944();
28560
+ return _tmpl$943();
28698
28561
  }
28699
28562
  }), null);
28700
28563
  insert(_el$34, createComponent(RoleSelect, {
@@ -28713,8 +28576,8 @@ function Admins(props) {
28713
28576
  return (team()?.invites ?? []).length > 0;
28714
28577
  },
28715
28578
  get children() {
28716
- return [_tmpl$664(), (() => {
28717
- var _el$23 = _tmpl$756(), _el$24 = _el$23.firstChild, _el$25 = _el$24.firstChild, _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling, _el$28 = _el$27.nextSibling; _el$28.nextSibling; var _el$30 = _el$24.nextSibling;
28579
+ return [_tmpl$661(), (() => {
28580
+ var _el$23 = _tmpl$755(), _el$24 = _el$23.firstChild, _el$25 = _el$24.firstChild, _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling, _el$28 = _el$27.nextSibling; _el$28.nextSibling; var _el$30 = _el$24.nextSibling;
28718
28581
  insert(_el$30, createComponent(For, {
28719
28582
  get each() {
28720
28583
  return team()?.invites ?? [];
@@ -28757,8 +28620,8 @@ var _tmpl$2134 = /* @__PURE__ */ template(`<button type=button style="display:fl
28757
28620
  var _tmpl$3108 = /* @__PURE__ */ template(`<div class="app-admin-root app-admin-shell"data-scrollable style=position:sticky><div class=app-admin-shell-header><button type=button class=app-admin-shell-menu-trigger aria-label="Open admin menu"><svg width=22 height=22 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round aria-hidden=true><line x1=3 y1=6 x2=21 y2=6></line><line x1=3 y1=12 x2=21 y2=12></line><line x1=3 y1=18 x2=21 y2=18></line></svg></button><span class=app-admin-shell-header-title></span></div><div class=app-admin-backdrop aria-hidden=true></div><aside class=app-admin-sidebar><div style=padding:1.25rem><h2 style="font-size:0.7rem;font-weight:500;color:var(--app-admin-fg-muted);text-transform:uppercase;letter-spacing:0.08em;margin:0 0 1rem">Admin Panel</h2><nav style=display:flex;flex-direction:column;gap:0.25rem></nav></div></aside><div class=app-admin-content>`);
28758
28621
  var _tmpl$488 = /* @__PURE__ */ template(`<h3 style="font-size:0.625rem;font-weight:600;color:var(--app-admin-fg-muted);text-transform:uppercase;letter-spacing:0.08em;margin:1rem 0 0.375rem;padding:0 0.75rem">`);
28759
28622
  var _tmpl$571 = /* @__PURE__ */ template(`<div role=alert style="margin:1rem 0;padding:1.25rem 1.5rem;border:1px solid var(--app-admin-border);border-radius:var(--app-admin-radius-sm);background:var(--app-admin-surface);color:var(--app-admin-fg)"><div style=font-weight:600;margin-bottom:0.375rem>Not available for your role</div><div style=color:var(--app-admin-fg-muted);font-size:0.875rem>Ask an owner of this site if you need access to this section.`);
28760
- var _tmpl$665 = /* @__PURE__ */ template(`<div role=alert style="margin:1rem 0;padding:1.25rem 1.5rem;border:1px solid var(--app-admin-border);border-radius:var(--app-admin-radius-sm);background:var(--app-admin-surface);color:var(--app-admin-fg)"><div style=font-weight:600;margin-bottom:0.375rem>This section failed to load</div><div style=font-size:0.875rem;color:var(--app-admin-fg-muted);margin-bottom:1rem;word-break:break-word></div><button type=button style="padding:0.5rem 0.875rem;border-radius:var(--app-admin-radius-sm);border:1px solid var(--app-admin-border);background:var(--app-admin-primary-soft);color:var(--app-admin-primary-soft-fg);font-size:0.875rem;font-weight:500;cursor:pointer">Try again`);
28761
- var _tmpl$757 = /* @__PURE__ */ template(`<div class=app-admin-root style=display:flex;align-items:center;justify-content:center;position:sticky;background:var(--app-admin-bg)><div role=status aria-label="Loading admin"style="width:1.75rem;height:1.75rem;border-radius:9999px;border:2px solid var(--app-admin-border);border-top-color:var(--app-admin-primary);animation:app-admin-gate-spin 0.8s linear infinite"></div><style>@keyframes app-admin-gate-spin { to { transform: rotate(360deg); } }`);
28623
+ var _tmpl$664 = /* @__PURE__ */ template(`<div role=alert style="margin:1rem 0;padding:1.25rem 1.5rem;border:1px solid var(--app-admin-border);border-radius:var(--app-admin-radius-sm);background:var(--app-admin-surface);color:var(--app-admin-fg)"><div style=font-weight:600;margin-bottom:0.375rem>This section failed to load</div><div style=font-size:0.875rem;color:var(--app-admin-fg-muted);margin-bottom:1rem;word-break:break-word></div><button type=button style="padding:0.5rem 0.875rem;border-radius:var(--app-admin-radius-sm);border:1px solid var(--app-admin-border);background:var(--app-admin-primary-soft);color:var(--app-admin-primary-soft-fg);font-size:0.875rem;font-weight:500;cursor:pointer">Try again`);
28624
+ var _tmpl$756 = /* @__PURE__ */ template(`<div class=app-admin-root style=display:flex;align-items:center;justify-content:center;position:sticky;background:var(--app-admin-bg)><div role=status aria-label="Loading admin"style="width:1.75rem;height:1.75rem;border-radius:9999px;border:2px solid var(--app-admin-border);border-top-color:var(--app-admin-primary);animation:app-admin-gate-spin 0.8s linear infinite"></div><style>@keyframes app-admin-gate-spin { to { transform: rotate(360deg); } }`);
28762
28625
  var TAB_LABELS = {
28763
28626
  dashboard: "Dashboard",
28764
28627
  customers: "Customers",
@@ -29247,7 +29110,7 @@ function AdminTabError(props) {
29247
29110
  console.error("[AdminDashboard] tab failed to render:", props.error);
29248
29111
  const message = () => props.error instanceof Error ? props.error.message : String(props.error);
29249
29112
  return (() => {
29250
- var _el$15 = _tmpl$665(), _el$16 = _el$15.firstChild, _el$17 = _el$16.nextSibling, _el$18 = _el$17.nextSibling;
29113
+ var _el$15 = _tmpl$664(), _el$16 = _el$15.firstChild, _el$17 = _el$16.nextSibling, _el$18 = _el$17.nextSibling;
29251
29114
  insert(_el$17, message);
29252
29115
  _el$18.$$click = () => props.reset();
29253
29116
  return _el$15;
@@ -29255,7 +29118,7 @@ function AdminTabError(props) {
29255
29118
  }
29256
29119
  function AdminGateSpinner(props) {
29257
29120
  return (() => {
29258
- var _el$19 = _tmpl$757(); _el$19.firstChild;
29121
+ var _el$19 = _tmpl$756(); _el$19.firstChild;
29259
29122
  effect((_p$) => {
29260
29123
  var _v$8 = props.topOffset, _v$9 = `calc(100vh - ${props.topOffset})`;
29261
29124
  _v$8 !== _p$.e && setStyleProperty(_el$19, "top", _p$.e = _v$8);
@@ -29342,10 +29205,10 @@ var _tmpl$2135 = /* @__PURE__ */ template(`<div style="display:flex;align-items:
29342
29205
  var _tmpl$3109 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>Could not load this customer's dashboard.`);
29343
29206
  var _tmpl$490 = /* @__PURE__ */ template(`<div><h3>Profile</h3><div class=app-admin-card-soft style=padding:0.75rem><p style=font-weight:600;font-size:0.9375rem;margin:0></p><p style="font-size:0.8125rem;color:var(--app-admin-fg-muted);margin:0.25rem 0 0">`);
29344
29207
  var _tmpl$574 = /* @__PURE__ */ template(`<div><h3>Subscription`);
29345
- var _tmpl$666 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:0.5rem>`);
29346
- var _tmpl$758 = /* @__PURE__ */ template(`<div><h3>Prescription requests`);
29347
- var _tmpl$849 = /* @__PURE__ */ template(`<div><h3>Pending surveys`);
29348
- var _tmpl$945 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>No active subscription.`);
29208
+ var _tmpl$665 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:0.5rem>`);
29209
+ var _tmpl$757 = /* @__PURE__ */ template(`<div><h3>Prescription requests`);
29210
+ var _tmpl$848 = /* @__PURE__ */ template(`<div><h3>Pending surveys`);
29211
+ var _tmpl$944 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>No active subscription.`);
29349
29212
  var _tmpl$040 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;color:var(--app-admin-fg-muted);margin:0.25rem 0 0">Next charge `);
29350
29213
  var _tmpl$1142 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style=padding:0.75rem><div style=display:flex;align-items:center;justify-content:space-between><span style=font-size:0.875rem;font-weight:500>`);
29351
29214
  var _tmpl$1031 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;color:var(--app-admin-fg-muted);margin:0.25rem 0 0">`);
@@ -29407,7 +29270,7 @@ function PatientDashboardPreview(props) {
29407
29270
  return data.subscription();
29408
29271
  },
29409
29272
  get fallback() {
29410
- return _tmpl$945();
29273
+ return _tmpl$944();
29411
29274
  },
29412
29275
  children: (sub) => (() => {
29413
29276
  var _el$27 = _tmpl$1142(), _el$28 = _el$27.firstChild, _el$29 = _el$28.firstChild;
@@ -29465,7 +29328,7 @@ function PatientDashboardPreview(props) {
29465
29328
  return _el$32;
29466
29329
  })()
29467
29330
  }), (() => {
29468
- var _el$20 = _tmpl$758(), _el$21 = _el$20.firstChild;
29331
+ var _el$20 = _tmpl$757(), _el$21 = _el$20.firstChild;
29469
29332
  insert(_el$20, createComponent(Show, {
29470
29333
  get when() {
29471
29334
  return (data.rxList() ?? []).length > 0;
@@ -29474,7 +29337,7 @@ function PatientDashboardPreview(props) {
29474
29337
  return _tmpl$1226();
29475
29338
  },
29476
29339
  get children() {
29477
- var _el$22 = _tmpl$666();
29340
+ var _el$22 = _tmpl$665();
29478
29341
  insert(_el$22, createComponent(For, {
29479
29342
  get each() {
29480
29343
  return data.rxList();
@@ -29517,7 +29380,7 @@ function PatientDashboardPreview(props) {
29517
29380
  effect((_$p) => style(_el$21, panelSectionHeader, _$p));
29518
29381
  return _el$20;
29519
29382
  })(), (() => {
29520
- var _el$23 = _tmpl$849(), _el$24 = _el$23.firstChild;
29383
+ var _el$23 = _tmpl$848(), _el$24 = _el$23.firstChild;
29521
29384
  insert(_el$23, createComponent(Show, {
29522
29385
  get when() {
29523
29386
  return (data.pendingSurveys() ?? []).length > 0;
@@ -29526,7 +29389,7 @@ function PatientDashboardPreview(props) {
29526
29389
  return _tmpl$1621();
29527
29390
  },
29528
29391
  get children() {
29529
- var _el$25 = _tmpl$666();
29392
+ var _el$25 = _tmpl$665();
29530
29393
  insert(_el$25, createComponent(For, {
29531
29394
  get each() {
29532
29395
  return data.pendingSurveys();
@@ -29704,10 +29567,10 @@ var _tmpl$2137 = /* @__PURE__ */ template(`<div class=ship><p class=ship__eta></
29704
29567
  var _tmpl$3118 = /* @__PURE__ */ template(`<span class=refill__cycle>Day <!> of `);
29705
29568
  var _tmpl$496 = /* @__PURE__ */ template(`<div class=refill data-testid=refill-strip><div class=refill__head><span class=lab-label>Your plan</span></div><div class=refill__rail>`);
29706
29569
  var _tmpl$575 = /* @__PURE__ */ template(`<span class=refill__cycle>Preparing your next fill`);
29707
- var _tmpl$667 = /* @__PURE__ */ template(`<div><span class=refill__dot aria-hidden=true></span><span class="lab-label refill__label"></span><span class=refill__date></span><span class=refill__rel>`);
29708
- var _tmpl$759 = /* @__PURE__ */ template(`<a class=refill__action>Complete check-in \u2192`);
29709
- var _tmpl$850 = /* @__PURE__ */ template(`<p class=tracker__empty-text data-testid=tracker-savings-note><strong>Member pricing is active on your account.</strong> It applies automatically when you check out.`);
29710
- var _tmpl$946 = /* @__PURE__ */ template(`<div class=tracker><span class=lab-label>Your order</span><div class=tracker__empty data-testid=tracker-empty><div class=tracker__empty-mark aria-hidden=true><span class=tracker__empty-bead></span></div><h2 class=tracker__empty-title>Your journey starts here</h2><p class=tracker__empty-text></p><a class="portal-btn portal-btn--primary">Start your intake`);
29570
+ var _tmpl$666 = /* @__PURE__ */ template(`<div><span class=refill__dot aria-hidden=true></span><span class="lab-label refill__label"></span><span class=refill__date></span><span class=refill__rel>`);
29571
+ var _tmpl$758 = /* @__PURE__ */ template(`<a class=refill__action>Complete check-in \u2192`);
29572
+ var _tmpl$849 = /* @__PURE__ */ template(`<p class=tracker__empty-text data-testid=tracker-savings-note><strong>Member pricing is active on your account.</strong> It applies automatically when you check out.`);
29573
+ var _tmpl$945 = /* @__PURE__ */ template(`<div class=tracker><span class=lab-label>Your order</span><div class=tracker__empty data-testid=tracker-empty><div class=tracker__empty-mark aria-hidden=true><span class=tracker__empty-bead></span></div><h2 class=tracker__empty-title>Your journey starts here</h2><p class=tracker__empty-text></p><a class="portal-btn portal-btn--primary">Start your intake`);
29711
29574
  var _tmpl$041 = /* @__PURE__ */ template(`<p class=tracker__empty-text data-testid=tracker-offer-note><strong>You have <!> waiting.</strong> It applies automatically at checkout \u2014 finish your intake by <!> to keep it.`);
29712
29575
  var _tmpl$1144 = /* @__PURE__ */ template(`<span class=thread__halo aria-hidden=true>`);
29713
29576
  var _tmpl$1032 = /* @__PURE__ */ template(`<time class=thread__time>`);
@@ -29789,7 +29652,7 @@ function OrderTracker(props) {
29789
29652
  return r().events;
29790
29653
  },
29791
29654
  children: (e) => (() => {
29792
- var _el$20 = _tmpl$667(), _el$21 = _el$20.firstChild, _el$22 = _el$21.nextSibling, _el$23 = _el$22.nextSibling, _el$24 = _el$23.nextSibling;
29655
+ var _el$20 = _tmpl$666(), _el$21 = _el$20.firstChild, _el$22 = _el$21.nextSibling, _el$23 = _el$22.nextSibling, _el$24 = _el$23.nextSibling;
29793
29656
  insert(_el$22, () => e.label);
29794
29657
  insert(_el$23, () => formatEventDate(e.date));
29795
29658
  insert(_el$24, (() => {
@@ -29802,7 +29665,7 @@ function OrderTracker(props) {
29802
29665
  },
29803
29666
  keyed: true,
29804
29667
  children: (rid) => (() => {
29805
- var _el$25 = _tmpl$759();
29668
+ var _el$25 = _tmpl$758();
29806
29669
  effect(() => setAttribute(_el$25, "href", props.renewHref(rid)));
29807
29670
  return _el$25;
29808
29671
  })()
@@ -29816,14 +29679,14 @@ function OrderTracker(props) {
29816
29679
  })()
29817
29680
  });
29818
29681
  const EmptyState2 = () => (() => {
29819
- var _el$26 = _tmpl$946(), _el$27 = _el$26.firstChild, _el$28 = _el$27.nextSibling, _el$29 = _el$28.firstChild, _el$30 = _el$29.nextSibling, _el$32 = _el$30.nextSibling, _el$33 = _el$32.nextSibling;
29682
+ var _el$26 = _tmpl$945(), _el$27 = _el$26.firstChild, _el$28 = _el$27.nextSibling, _el$29 = _el$28.firstChild, _el$30 = _el$29.nextSibling, _el$32 = _el$30.nextSibling, _el$33 = _el$32.nextSibling;
29820
29683
  insert(_el$26, createComponent(RefillStrip, {}), _el$28);
29821
29684
  insert(_el$28, createComponent(Show, {
29822
29685
  get when() {
29823
29686
  return props.savingsMember;
29824
29687
  },
29825
29688
  get children() {
29826
- return _tmpl$850();
29689
+ return _tmpl$849();
29827
29690
  }
29828
29691
  }), _el$32);
29829
29692
  insert(_el$28, createComponent(Show, {
@@ -30114,10 +29977,10 @@ var _tmpl$2139 = /* @__PURE__ */ template(`<div class=plan__empty><h2 class=plan
30114
29977
  var _tmpl$3120 = /* @__PURE__ */ template(`<p class=membership__dose>`);
30115
29978
  var _tmpl$499 = /* @__PURE__ */ template(`<div data-testid=membership-card><div class=membership__sheen aria-hidden=true></div><div class=membership__top><span class="lab-label membership__status"></span><span class=membership__brand></span></div><h2 class=membership__med></h2><div class=membership__bottom><span class=membership__price><span class=membership__per>/mo</span></span><span class=membership__renew>Renews `);
30116
29979
  var _tmpl$576 = /* @__PURE__ */ template(`<dl class=ledger><div class=ledger__row><dt>Member since</dt><dd></dd></div><div class=ledger__row><dt>Next billing date</dt><dd></dd></div><div class=ledger__row><dt>Billing amount</dt><dd>/mo`);
30117
- var _tmpl$668 = /* @__PURE__ */ template(`<p class=plan__note>Question about billing? <button type=button class=plan__note-link>Message support`);
30118
- var _tmpl$760 = /* @__PURE__ */ template(`<p class=plan__error role=alert>`);
30119
- var _tmpl$851 = /* @__PURE__ */ template(`<button type=button class=plan__link-btn>`);
30120
- var _tmpl$947 = /* @__PURE__ */ template(`<button type=button class="plan__link-btn plan__link-btn--quiet">Cancel subscription`);
29980
+ var _tmpl$667 = /* @__PURE__ */ template(`<p class=plan__note>Question about billing? <button type=button class=plan__note-link>Message support`);
29981
+ var _tmpl$759 = /* @__PURE__ */ template(`<p class=plan__error role=alert>`);
29982
+ var _tmpl$850 = /* @__PURE__ */ template(`<button type=button class=plan__link-btn>`);
29983
+ var _tmpl$946 = /* @__PURE__ */ template(`<button type=button class="plan__link-btn plan__link-btn--quiet">Cancel subscription`);
30121
29984
  var _tmpl$042 = /* @__PURE__ */ template(`<div class=plan__actions><a class=plan__link-btn>Update payment method`);
30122
29985
  var _tmpl$1146 = /* @__PURE__ */ template(`<div class=confirm data-testid=cancel-confirm><p class=confirm__text>Cancel your subscription? You\u2019ll keep access until the end of your current billing period on <!>.</p><div class=confirm__actions><button type=button class="portal-btn portal-btn--ghost">Keep my plan</button><button type=button class="portal-btn portal-btn--danger">`);
30123
29986
  function formatCents(cents) {
@@ -30206,7 +30069,7 @@ function PlanBilling(props) {
30206
30069
  return props.messagingEnabled;
30207
30070
  },
30208
30071
  get children() {
30209
- var _el$28 = _tmpl$668(), _el$29 = _el$28.firstChild, _el$31 = _el$29.nextSibling;
30072
+ var _el$28 = _tmpl$667(), _el$29 = _el$28.firstChild, _el$31 = _el$29.nextSibling;
30210
30073
  _el$31.$$click = () => props.onOpenMessages({
30211
30074
  channel: "support",
30212
30075
  category: "billing"
@@ -30218,7 +30081,7 @@ function PlanBilling(props) {
30218
30081
  return error();
30219
30082
  },
30220
30083
  get children() {
30221
- var _el$32 = _tmpl$760();
30084
+ var _el$32 = _tmpl$759();
30222
30085
  insert(_el$32, error);
30223
30086
  return _el$32;
30224
30087
  }
@@ -30229,7 +30092,7 @@ function PlanBilling(props) {
30229
30092
  return sub().status === "active";
30230
30093
  },
30231
30094
  get children() {
30232
- var _el$34 = _tmpl$851();
30095
+ var _el$34 = _tmpl$850();
30233
30096
  _el$34.$$click = () => run("pause", () => subscriptionsApi.pause(sub().id));
30234
30097
  insert(_el$34, () => action() === "pause" ? "Pausing\u2026" : "Pause subscription");
30235
30098
  effect(() => _el$34.disabled = !!action());
@@ -30241,7 +30104,7 @@ function PlanBilling(props) {
30241
30104
  return sub().status === "paused";
30242
30105
  },
30243
30106
  get children() {
30244
- var _el$35 = _tmpl$851();
30107
+ var _el$35 = _tmpl$850();
30245
30108
  _el$35.$$click = () => run("resume", () => subscriptionsApi.resume(sub().id));
30246
30109
  insert(_el$35, () => action() === "resume" ? "Resuming\u2026" : "Resume subscription");
30247
30110
  effect(() => _el$35.disabled = !!action());
@@ -30253,7 +30116,7 @@ function PlanBilling(props) {
30253
30116
  return memo(() => sub().status !== "cancelled")() && sub().status !== "expired";
30254
30117
  },
30255
30118
  get children() {
30256
- var _el$37 = _tmpl$947();
30119
+ var _el$37 = _tmpl$946();
30257
30120
  _el$37.$$click = () => setConfirmCancel(true);
30258
30121
  effect(() => _el$37.disabled = !!action());
30259
30122
  return _el$37;
@@ -30293,10 +30156,10 @@ var _tmpl$2140 = /* @__PURE__ */ template(`<p class=account__sms-error role=aler
30293
30156
  var _tmpl$3121 = /* @__PURE__ */ template(`<div class=account__sms-on><span>Texts are on</span><button type=button class=plan__link-btn>Turn off texts`);
30294
30157
  var _tmpl$4100 = /* @__PURE__ */ template(`<ul class=account__sms-events aria-label="Which texts you get">`);
30295
30158
  var _tmpl$577 = /* @__PURE__ */ template(`<section class=account__sms data-testid=sms-section aria-labelledby=sms-heading><span class=lab-label id=sms-heading>Text messages</span><dl class=account__fields><div class=account__field><dt class=lab-label>Mobile number`);
30296
- var _tmpl$669 = /* @__PURE__ */ template(`<dd class=account__sms-number><span></span><button type=button class=account__note-link>`);
30297
- var _tmpl$761 = /* @__PURE__ */ template(`<p class=account__sms-notice role=status>`);
30298
- var _tmpl$852 = /* @__PURE__ */ template(`<p class=account__sms-stop data-testid=sms-stop>You replied STOP. Text START to <!> to receive texts again.`);
30299
- var _tmpl$948 = /* @__PURE__ */ template(`<p class=account__sms-links>`);
30159
+ var _tmpl$668 = /* @__PURE__ */ template(`<dd class=account__sms-number><span></span><button type=button class=account__note-link>`);
30160
+ var _tmpl$760 = /* @__PURE__ */ template(`<p class=account__sms-notice role=status>`);
30161
+ var _tmpl$851 = /* @__PURE__ */ template(`<p class=account__sms-stop data-testid=sms-stop>You replied STOP. Text START to <!> to receive texts again.`);
30162
+ var _tmpl$947 = /* @__PURE__ */ template(`<p class=account__sms-links>`);
30300
30163
  var _tmpl$043 = /* @__PURE__ */ template(`<p class=account__sms-hint>Add a mobile number to turn on texts.`);
30301
30164
  var _tmpl$1147 = /* @__PURE__ */ template(`<div class=account__sms-consent><p class=account__sms-wording data-testid=sms-consent-text></p><button type=button class="portal-btn portal-btn--primary">Turn on texts`);
30302
30165
  var _tmpl$1033 = /* @__PURE__ */ template(`<a target=_blank rel="noopener noreferrer">Terms`);
@@ -30325,7 +30188,7 @@ function SmsSection() {
30325
30188
  },
30326
30189
  get fallback() {
30327
30190
  return (() => {
30328
- var _el$13 = _tmpl$669(), _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling;
30191
+ var _el$13 = _tmpl$668(), _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling;
30329
30192
  insert(_el$14, (() => {
30330
30193
  var _c$ = memo(() => !!sms.phone());
30331
30194
  return () => _c$() ? formatUsPhone(sms.phone()) : "No number on file";
@@ -30369,7 +30232,7 @@ function SmsSection() {
30369
30232
  return sms.notice();
30370
30233
  },
30371
30234
  children: (n) => (() => {
30372
- var _el$16 = _tmpl$761();
30235
+ var _el$16 = _tmpl$760();
30373
30236
  insert(_el$16, () => n().message);
30374
30237
  return _el$16;
30375
30238
  })()
@@ -30380,7 +30243,7 @@ function SmsSection() {
30380
30243
  },
30381
30244
  get fallback() {
30382
30245
  return (() => {
30383
- var _el$17 = _tmpl$852(), _el$18 = _el$17.firstChild, _el$21 = _el$18.nextSibling; _el$21.nextSibling;
30246
+ var _el$17 = _tmpl$851(), _el$18 = _el$17.firstChild, _el$21 = _el$18.nextSibling; _el$21.nextSibling;
30384
30247
  insert(_el$17, (() => {
30385
30248
  var _c$2 = memo(() => !!sms.fromNumber());
30386
30249
  return () => _c$2() ? formatUsPhone(sms.fromNumber()) : "the number you received texts from";
@@ -30406,7 +30269,7 @@ function SmsSection() {
30406
30269
  return offer().termsUrl || offer().privacyUrl;
30407
30270
  },
30408
30271
  get children() {
30409
- var _el$24 = _tmpl$948();
30272
+ var _el$24 = _tmpl$947();
30410
30273
  insert(_el$24, createComponent(Show, {
30411
30274
  get when() {
30412
30275
  return offer().termsUrl;
@@ -30494,7 +30357,7 @@ var _tmpl$2141 = /* @__PURE__ */ template(`<p class=account__note>Need to update
30494
30357
  var _tmpl$3122 = /* @__PURE__ */ template(`<button type=button class="account__support-link account__support-btn">Messages`);
30495
30358
  var _tmpl$4101 = /* @__PURE__ */ template(`<div class=account data-testid=account-panel><span class=lab-label>Account</span><h1 class=account__title>Your details</h1><dl class=account__fields></dl><div class=account__support></div><button type=button class="portal-btn portal-btn--ghost account__signout">Sign out`);
30496
30359
  var _tmpl$578 = /* @__PURE__ */ template(`<div class=account__field><dt class=lab-label></dt><dd>`);
30497
- var _tmpl$670 = /* @__PURE__ */ template(`<a class=account__support-link>`);
30360
+ var _tmpl$669 = /* @__PURE__ */ template(`<a class=account__support-link>`);
30498
30361
  function pick(member, ...keys) {
30499
30362
  if (!member) return "";
30500
30363
  for (const k of keys) {
@@ -30584,7 +30447,7 @@ function AccountPanel(props) {
30584
30447
  return props.legalLinks ?? [];
30585
30448
  },
30586
30449
  children: (link) => (() => {
30587
- var _el$14 = _tmpl$670();
30450
+ var _el$14 = _tmpl$669();
30588
30451
  insert(_el$14, () => link.label);
30589
30452
  effect(() => setAttribute(_el$14, "href", link.href));
30590
30453
  return _el$14;
@@ -30600,7 +30463,7 @@ var _tmpl$2142 = /* @__PURE__ */ template(`<ul class=leaflet__disclaimers id=lea
30600
30463
  var _tmpl$3123 = /* @__PURE__ */ template(`<div class=leaflet data-testid=medication-guide><header class=leaflet__header><span class=lab-label>How to take it</span><h1 class=leaflet__title></h1><p class=leaflet__summary></p></header><section class=leaflet__boxed aria-label="Boxed warning"><div class=leaflet__boxed-head><i class="ph-fill ph-warning"aria-hidden=true></i><span>Important warning</span></div><p></p></section><section class="leaflet__section leaflet__section--caution"><h2 class=leaflet__h2>Do not use this medicine if\u2026</h2><ul class="leaflet__list leaflet__list--caution"></ul></section><section class=leaflet__section><h2 class=leaflet__h2>Your dose over time</h2><p class=leaflet__note>A typical step-up. Your prescriber sets your exact doses and timing.</p><ol class=titration></ol></section><section class=leaflet__section><h2 class=leaflet__h2>Giving your injection</h2><ol class=steps></ol></section><div class=leaflet__grid><section class=leaflet__section><h2 class=leaflet__h2>Storing your medicine</h2><ul class=leaflet__list></ul></section><section class=leaflet__section><h2 class=leaflet__h2>If you miss a dose</h2><p class=leaflet__body></p></section></div><div class=leaflet__grid><section class=leaflet__section><h2 class=leaflet__h2>Common side effects</h2><ul class="leaflet__list leaflet__list--check"></ul></section><section class="leaflet__section leaflet__section--alert"><h2 class=leaflet__h2>Call right away if you notice\u2026</h2><ul class="leaflet__list leaflet__list--alert"></ul></section></div><section class=leaflet__section><h2 class=leaflet__h2>When to contact your care team</h2><ul class=leaflet__list></ul></section><section class=leaflet__section><h2 class=leaflet__h2>Tips for feeling your best</h2><ul class="leaflet__list leaflet__list--check"></ul></section><section class=leaflet__footnote><button type=button class=leaflet__disclose aria-controls=leaflet-disclaimers> the important details<i aria-hidden=true>`);
30601
30464
  var _tmpl$4102 = /* @__PURE__ */ template(`<li>`);
30602
30465
  var _tmpl$579 = /* @__PURE__ */ template(`<li><span class=titration__bead aria-hidden=true></span><div class=titration__body><div class=titration__row><span class=titration__dose></span><span class="lab-label titration__phase"></span></div><span class=titration__time></span><p class=titration__note>`);
30603
- var _tmpl$671 = /* @__PURE__ */ template(`<li class=steps__item><span class=steps__num></span><div class=steps__body><h3 class=steps__title></h3><p class=steps__detail>`);
30466
+ var _tmpl$670 = /* @__PURE__ */ template(`<li class=steps__item><span class=steps__num></span><div class=steps__body><h3 class=steps__title></h3><p class=steps__detail>`);
30604
30467
  function firstNumber(s) {
30605
30468
  const m = (s || "").match(/\d+(\.\d+)?/);
30606
30469
  return m ? m[0] : null;
@@ -30654,7 +30517,7 @@ function MedicationGuide(props) {
30654
30517
  return props.guide.injectionSteps;
30655
30518
  },
30656
30519
  children: (step) => (() => {
30657
- var _el$54 = _tmpl$671(), _el$55 = _el$54.firstChild, _el$56 = _el$55.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$57.nextSibling;
30520
+ var _el$54 = _tmpl$670(), _el$55 = _el$54.firstChild, _el$56 = _el$55.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$57.nextSibling;
30658
30521
  insert(_el$55, () => step.n);
30659
30522
  insert(_el$57, () => step.title);
30660
30523
  insert(_el$58, () => step.detail);
@@ -30761,10 +30624,10 @@ var _tmpl$2143 = /* @__PURE__ */ template(`<span class=channel-chip__category>`)
30761
30624
  var _tmpl$3124 = /* @__PURE__ */ template(`<div class=msg-list__header><div class=msg-list__header-title><button type=button class=msg-list__back aria-label="Choose a different team"data-testid=messages-choose-different><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><h2 class=msg-list__title></h2></div><button type=button class=msg-list__new data-testid=messages-new-support><i class="ph-thin ph-plus"aria-hidden=true></i>New message`);
30762
30625
  var _tmpl$4103 = /* @__PURE__ */ template(`<div class=msg-list__state><div class=request-status__spinner>`);
30763
30626
  var _tmpl$580 = /* @__PURE__ */ template(`<div class="msg-list__state msg-list__state--empty"data-testid=messages-empty><i class="ph-thin ph-chat-circle msg-list__empty-icon"aria-hidden=true></i><p class=msg-list__empty-title>No conversations yet.</p><p class=msg-list__empty-hint>`);
30764
- var _tmpl$673 = /* @__PURE__ */ template(`<div class=msg-list__scroll data-scrollable>`);
30765
- var _tmpl$762 = /* @__PURE__ */ template(`<span class=msg-list__pip>`);
30766
- var _tmpl$853 = /* @__PURE__ */ template(`<button type=button><div class=msg-list__row><span class=msg-list__name-group><span class=msg-list__name></span></span><span class=msg-list__time></span></div><div class=msg-list__row><span class=msg-list__preview>`);
30767
- var _tmpl$949 = /* @__PURE__ */ template(`<button type=button class=msg-attachment__image-link><img class=msg-attachment__image loading=lazy>`, true, false, false);
30627
+ var _tmpl$671 = /* @__PURE__ */ template(`<div class=msg-list__scroll data-scrollable>`);
30628
+ var _tmpl$761 = /* @__PURE__ */ template(`<span class=msg-list__pip>`);
30629
+ var _tmpl$852 = /* @__PURE__ */ template(`<button type=button><div class=msg-list__row><span class=msg-list__name-group><span class=msg-list__name></span></span><span class=msg-list__time></span></div><div class=msg-list__row><span class=msg-list__preview>`);
30630
+ var _tmpl$948 = /* @__PURE__ */ template(`<button type=button class=msg-attachment__image-link><img class=msg-attachment__image loading=lazy>`, true, false, false);
30768
30631
  var _tmpl$044 = /* @__PURE__ */ template(`<button type=button class=msg-attachment__file><span class=msg-attachment__file-icon aria-hidden=true><i class="ph-thin ph-paperclip"></i></span><span class=msg-attachment__file-info><span class=msg-attachment__file-name></span><span class=msg-attachment__file-size>`);
30769
30632
  var _tmpl$1149 = /* @__PURE__ */ template(`<span class=msg-attachment__fallback>`);
30770
30633
  var _tmpl$1034 = /* @__PURE__ */ template(`<p class=msg-thread__sender>`);
@@ -31032,7 +30895,7 @@ function MessagesPanel(props) {
31032
30895
  _el$7.$$click = openCompose;
31033
30896
  return _el$3;
31034
30897
  })(), (() => {
31035
- var _el$8 = _tmpl$673();
30898
+ var _el$8 = _tmpl$671();
31036
30899
  insert(_el$8, createComponent(Show, {
31037
30900
  get when() {
31038
30901
  return thread().loadingConversations();
@@ -31062,7 +30925,7 @@ function MessagesPanel(props) {
31062
30925
  return channelConversations();
31063
30926
  },
31064
30927
  children: (convo) => (() => {
31065
- var _el$12 = _tmpl$853(), _el$13 = _el$12.firstChild, _el$14 = _el$13.firstChild, _el$15 = _el$14.firstChild, _el$16 = _el$14.nextSibling, _el$17 = _el$13.nextSibling, _el$18 = _el$17.firstChild;
30928
+ var _el$12 = _tmpl$852(), _el$13 = _el$12.firstChild, _el$14 = _el$13.firstChild, _el$15 = _el$14.firstChild, _el$16 = _el$14.nextSibling, _el$17 = _el$13.nextSibling, _el$18 = _el$17.firstChild;
31066
30929
  _el$12.$$click = () => thread().selectConversation(convo.id);
31067
30930
  insert(_el$15, () => convo.participantName ?? "Provider");
31068
30931
  insert(_el$14, createComponent(ChannelChip, {
@@ -31080,7 +30943,7 @@ function MessagesPanel(props) {
31080
30943
  return (convo.unreadCount ?? 0) > 0;
31081
30944
  },
31082
30945
  get children() {
31083
- var _el$19 = _tmpl$762();
30946
+ var _el$19 = _tmpl$761();
31084
30947
  insert(_el$19, () => convo.unreadCount);
31085
30948
  return _el$19;
31086
30949
  }
@@ -31143,7 +31006,7 @@ function MessagesPanel(props) {
31143
31006
  })();
31144
31007
  },
31145
31008
  get children() {
31146
- var _el$20 = _tmpl$949(), _el$21 = _el$20.firstChild;
31009
+ var _el$20 = _tmpl$948(), _el$21 = _el$20.firstChild;
31147
31010
  _el$20.$$click = openDocument;
31148
31011
  _el$21.addEventListener("error", () => {
31149
31012
  if (retried) {
@@ -31663,10 +31526,10 @@ var _tmpl$2145 = /* @__PURE__ */ template(`<div class=portal-state data-testid=h
31663
31526
  var _tmpl$3126 = /* @__PURE__ */ template(`<div class=portal-state data-testid=history-empty><p>No submitted questionnaires yet.</p><p class=history-hint>Your intake and refill check-in answers will appear here once you've submitted them.`);
31664
31527
  var _tmpl$4104 = /* @__PURE__ */ template(`<li><button type=button class=history-row><span class=history-row__mode></span><span class=history-row__date></span><i class="ph-thin ph-caret-right portal-icon"aria-hidden=true>`);
31665
31528
  var _tmpl$581 = /* @__PURE__ */ template(`<div data-testid=history-detail><button type=button class="portal-btn portal-btn--ghost history-back"><i class="ph-thin ph-caret-left portal-icon"aria-hidden=true></i> All questionnaires`);
31666
- var _tmpl$674 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your answers\u2026`);
31667
- var _tmpl$763 = /* @__PURE__ */ template(`<div class=portal-state data-testid=history-detail-error><p>We couldn't load this questionnaire. Please try again in a moment.`);
31668
- var _tmpl$854 = /* @__PURE__ */ template(`<article class=history-transcript><header class=history-transcript__head><h2></h2><p class=history-transcript__meta>Submitted <!>. Your answers are shown exactly as they were at the time \u2014 they aren't updated afterwards.`);
31669
- var _tmpl$950 = /* @__PURE__ */ template(`<section class=history-section><h3 class=lab-label>`);
31529
+ var _tmpl$673 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your answers\u2026`);
31530
+ var _tmpl$762 = /* @__PURE__ */ template(`<div class=portal-state data-testid=history-detail-error><p>We couldn't load this questionnaire. Please try again in a moment.`);
31531
+ var _tmpl$853 = /* @__PURE__ */ template(`<article class=history-transcript><header class=history-transcript__head><h2></h2><p class=history-transcript__meta>Submitted <!>. Your answers are shown exactly as they were at the time \u2014 they aren't updated afterwards.`);
31532
+ var _tmpl$949 = /* @__PURE__ */ template(`<section class=history-section><h3 class=lab-label>`);
31670
31533
  var _tmpl$045 = /* @__PURE__ */ template(`<div class=history-qa><p class=history-qa__q></p><p class=history-qa__a>`);
31671
31534
  var _tmpl$1151 = /* @__PURE__ */ template(`<div class=survey-history data-testid=survey-history>`);
31672
31535
  var _tmpl$1035 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your submitted surveys\u2026`);
@@ -31734,7 +31597,7 @@ function SurveyHistory() {
31734
31597
  return !detail.loading;
31735
31598
  },
31736
31599
  get fallback() {
31737
- return _tmpl$674();
31600
+ return _tmpl$673();
31738
31601
  },
31739
31602
  get children() {
31740
31603
  return createComponent(Show, {
@@ -31742,10 +31605,10 @@ function SurveyHistory() {
31742
31605
  return memo(() => !!!detail.error)() && detail();
31743
31606
  },
31744
31607
  get fallback() {
31745
- return _tmpl$763();
31608
+ return _tmpl$762();
31746
31609
  },
31747
31610
  children: (t) => (() => {
31748
- var _el$10 = _tmpl$854(), _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling, _el$14 = _el$13.firstChild, _el$16 = _el$14.nextSibling; _el$16.nextSibling;
31611
+ var _el$10 = _tmpl$853(), _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling, _el$14 = _el$13.firstChild, _el$16 = _el$14.nextSibling; _el$16.nextSibling;
31749
31612
  insert(_el$12, () => MODE_LABELS[t().mode] ?? "Questionnaire");
31750
31613
  insert(_el$13, () => formatDate3(t().completedAt ?? t().createdAt) ?? "\u2014", _el$16);
31751
31614
  insert(_el$10, createComponent(For, {
@@ -31753,7 +31616,7 @@ function SurveyHistory() {
31753
31616
  return t().sections;
31754
31617
  },
31755
31618
  children: (section) => (() => {
31756
- var _el$17 = _tmpl$950(), _el$18 = _el$17.firstChild;
31619
+ var _el$17 = _tmpl$949(), _el$18 = _el$17.firstChild;
31757
31620
  insert(_el$18, () => section.title);
31758
31621
  insert(_el$17, createComponent(For, {
31759
31622
  get each() {
@@ -31810,10 +31673,10 @@ var _tmpl$2146 = /* @__PURE__ */ template(`<span>`);
31810
31673
  var _tmpl$3127 = /* @__PURE__ */ template(`<button type=button><i aria-hidden=true></i><span class=portal-item__label>`);
31811
31674
  var _tmpl$4105 = /* @__PURE__ */ template(`<div class=rx-others data-testid=rx-others><span class=lab-label>Other orders`);
31812
31675
  var _tmpl$584 = /* @__PURE__ */ template(`<div class=rx-stack>`);
31813
- var _tmpl$675 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your portal\u2026`);
31814
- var _tmpl$764 = /* @__PURE__ */ template(`<div class="request-status__error portal-state"><p class=request-status__error-text></p><button type=button class="portal-btn portal-btn--ghost">Try again`);
31815
- var _tmpl$855 = /* @__PURE__ */ template(`<p class=portal-rail__hi>Hi, `);
31816
- var _tmpl$951 = /* @__PURE__ */ template(`<a class=portal-rail__back data-testid=rail-back>\u2190 Back to shop`);
31676
+ var _tmpl$674 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your portal\u2026`);
31677
+ var _tmpl$763 = /* @__PURE__ */ template(`<div class="request-status__error portal-state"><p class=request-status__error-text></p><button type=button class="portal-btn portal-btn--ghost">Try again`);
31678
+ var _tmpl$854 = /* @__PURE__ */ template(`<p class=portal-rail__hi>Hi, `);
31679
+ var _tmpl$950 = /* @__PURE__ */ template(`<a class=portal-rail__back data-testid=rail-back>\u2190 Back to shop`);
31817
31680
  var _tmpl$046 = /* @__PURE__ */ template(`<a class=portal-topbar-back data-testid=mobile-back><span aria-hidden=true>\u2190</span> Back to shop`);
31818
31681
  var _tmpl$1152 = /* @__PURE__ */ template(`<main class=portal data-testid=member-portal><aside class=portal-rail><div class=portal-rail__brand><a class=portal-rail__logo></a><span class=portal-rail__dot aria-hidden=true></span></div><nav class=portal-rail__nav aria-label="Portal sections"></nav><div class=portal-rail__foot><button type=button class=portal-rail__signout>\u2014 Sign out</button></div></aside><section class=portal-content><div></div></section><nav class=portal-tabs aria-label="Portal sections">`);
31819
31682
  var _tmpl$1036 = /* @__PURE__ */ template(`<span class=portal-rail__wordmark>`);
@@ -32084,7 +31947,7 @@ function MemberPortal(props) {
32084
31947
  return !data.loading();
32085
31948
  },
32086
31949
  get fallback() {
32087
- return _tmpl$675();
31950
+ return _tmpl$674();
32088
31951
  },
32089
31952
  get children() {
32090
31953
  return createComponent(Show, {
@@ -32093,7 +31956,7 @@ function MemberPortal(props) {
32093
31956
  },
32094
31957
  get fallback() {
32095
31958
  return (() => {
32096
- var _el$0 = _tmpl$764(), _el$1 = _el$0.firstChild, _el$10 = _el$1.nextSibling;
31959
+ var _el$0 = _tmpl$763(), _el$1 = _el$0.firstChild, _el$10 = _el$1.nextSibling;
32097
31960
  insert(_el$1, () => data.error());
32098
31961
  _el$10.$$click = () => data.refetch();
32099
31962
  return _el$0;
@@ -32221,7 +32084,7 @@ function MemberPortal(props) {
32221
32084
  return data.firstName() !== "Member";
32222
32085
  },
32223
32086
  get children() {
32224
- var _el$15 = _tmpl$855(); _el$15.firstChild;
32087
+ var _el$15 = _tmpl$854(); _el$15.firstChild;
32225
32088
  insert(_el$15, () => data.firstName(), null);
32226
32089
  return _el$15;
32227
32090
  }
@@ -32234,7 +32097,7 @@ function MemberPortal(props) {
32234
32097
  return showBackLink();
32235
32098
  },
32236
32099
  get children() {
32237
- var _el$19 = _tmpl$951();
32100
+ var _el$19 = _tmpl$950();
32238
32101
  effect(() => setAttribute(_el$19, "href", catalogHref()));
32239
32102
  return _el$19;
32240
32103
  }
@@ -32919,10 +32782,10 @@ var _tmpl$2153 = /* @__PURE__ */ template(`<input type=text required autocomplet
32919
32782
  var _tmpl$3134 = /* @__PURE__ */ template(`<input type=email required autocomplete=email>`);
32920
32783
  var _tmpl$4116 = /* @__PURE__ */ template(`<input type=text required minlength=4>`);
32921
32784
  var _tmpl$596 = /* @__PURE__ */ template(`<div style="padding:0.625rem 0.875rem;background:var(--app-affiliate-danger-bg);color:var(--app-affiliate-danger-fg);border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem">`);
32922
- var _tmpl$676 = /* @__PURE__ */ template(`<button type=button>Already have an account? Log in`);
32923
- var _tmpl$765 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><div style="padding:0.625rem 0.875rem;background:var(--app-affiliate-surface-light);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius-sm);font-size:0.8125rem;line-height:1.5;color:var(--app-affiliate-fg-muted)">A customer's purchase earns you commission only if they reached the site through your referral link \u2014 the site address with <code>?ref=</code> appended:<div style=font-weight:600;word-break:break-all;margin-top:0.25rem;color:var(--app-affiliate-fg)>/?ref=</div>Make sure any marketing materials use that full link for tracking, not just the website address itself.</div><button type=submit style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600">`);
32924
- var _tmpl$856 = /* @__PURE__ */ template(`<div class=app-affiliate-root style="background:var(--app-affiliate-bg);color:var(--app-affiliate-fg);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem"><div style="width:100%;max-width:28rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);padding:2rem;display:flex;flex-direction:column;gap:1.25rem"><div><h1 style="font-family:var(--app-affiliate-font-display);margin:0 0 0.5rem;font-size:1.5rem">Become an affiliate</h1><p style=margin:0;color:var(--app-affiliate-fg-muted);font-size:0.875rem>New applications are reviewed by an admin before activation.`);
32925
- var _tmpl$952 = /* @__PURE__ */ template(`<div style=padding:1rem;background:var(--app-affiliate-success-bg);color:var(--app-affiliate-success-fg);border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem>Thanks \u2014 we received your application. You'll be able to log in once it's approved.`);
32785
+ var _tmpl$675 = /* @__PURE__ */ template(`<button type=button>Already have an account? Log in`);
32786
+ var _tmpl$764 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><div style="padding:0.625rem 0.875rem;background:var(--app-affiliate-surface-light);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius-sm);font-size:0.8125rem;line-height:1.5;color:var(--app-affiliate-fg-muted)">A customer's purchase earns you commission only if they reached the site through your referral link \u2014 the site address with <code>?ref=</code> appended:<div style=font-weight:600;word-break:break-all;margin-top:0.25rem;color:var(--app-affiliate-fg)>/?ref=</div>Make sure any marketing materials use that full link for tracking, not just the website address itself.</div><button type=submit style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600">`);
32787
+ var _tmpl$855 = /* @__PURE__ */ template(`<div class=app-affiliate-root style="background:var(--app-affiliate-bg);color:var(--app-affiliate-fg);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem"><div style="width:100%;max-width:28rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);padding:2rem;display:flex;flex-direction:column;gap:1.25rem"><div><h1 style="font-family:var(--app-affiliate-font-display);margin:0 0 0.5rem;font-size:1.5rem">Become an affiliate</h1><p style=margin:0;color:var(--app-affiliate-fg-muted);font-size:0.875rem>New applications are reviewed by an admin before activation.`);
32788
+ var _tmpl$951 = /* @__PURE__ */ template(`<div style=padding:1rem;background:var(--app-affiliate-success-bg);color:var(--app-affiliate-success-fg);border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem>Thanks \u2014 we received your application. You'll be able to log in once it's approved.`);
32926
32789
  var _tmpl$047 = /* @__PURE__ */ template(`<span style=font-size:0.75rem;color:var(--app-affiliate-fg-subtle)>`);
32927
32790
  var _tmpl$1154 = /* @__PURE__ */ template(`<label style=display:flex;flex-direction:column;gap:0.35rem><span style=font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--app-affiliate-fg-muted)>`);
32928
32791
  function AffiliateRegister(props) {
@@ -32955,16 +32818,16 @@ function AffiliateRegister(props) {
32955
32818
  }
32956
32819
  }
32957
32820
  return (() => {
32958
- var _el$ = _tmpl$856(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild; _el$4.nextSibling;
32821
+ var _el$ = _tmpl$855(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild; _el$4.nextSibling;
32959
32822
  insert(_el$2, createComponent(Show, {
32960
32823
  get when() {
32961
32824
  return !submitted();
32962
32825
  },
32963
32826
  get fallback() {
32964
- return _tmpl$952();
32827
+ return _tmpl$951();
32965
32828
  },
32966
32829
  get children() {
32967
- var _el$6 = _tmpl$765(), _el$1 = _el$6.firstChild, _el$10 = _el$1.firstChild, _el$12 = _el$10.nextSibling; _el$12.firstChild; var _el$14 = _el$12.nextSibling, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild, _el$18 = _el$1.nextSibling;
32830
+ var _el$6 = _tmpl$764(), _el$1 = _el$6.firstChild, _el$10 = _el$1.firstChild, _el$12 = _el$10.nextSibling; _el$12.firstChild; var _el$14 = _el$12.nextSibling, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild, _el$18 = _el$1.nextSibling;
32968
32831
  _el$6.addEventListener("submit", handleSubmit);
32969
32832
  insert(_el$6, createComponent(Row3, {
32970
32833
  label: "First name",
@@ -33041,7 +32904,7 @@ function AffiliateRegister(props) {
33041
32904
  return props.onNavigateLogin;
33042
32905
  },
33043
32906
  get children() {
33044
- var _el$19 = _tmpl$676();
32907
+ var _el$19 = _tmpl$675();
33045
32908
  _el$19.$$click = () => props.onNavigateLogin?.();
33046
32909
  effect((_$p) => style(_el$19, linkStyle(), _$p));
33047
32910
  return _el$19;
@@ -33221,7 +33084,7 @@ var _tmpl$2155 = /* @__PURE__ */ template(`<form style=display:flex;flex-directi
33221
33084
  var _tmpl$3136 = /* @__PURE__ */ template(`<div class=app-affiliate-root style="background:var(--app-affiliate-bg);color:var(--app-affiliate-fg);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem"><div style="width:100%;max-width:24rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);padding:2rem;display:flex;flex-direction:column;gap:1.25rem"><h1 style=font-family:var(--app-affiliate-font-display);margin:0;font-size:1.5rem>Reset your password`);
33222
33085
  var _tmpl$4118 = /* @__PURE__ */ template(`<div style="padding:0.625rem 0.875rem;background:var(--app-affiliate-surface-light);border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem">`);
33223
33086
  var _tmpl$599 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.8125rem;opacity:0.8>The link is good for one hour. If nothing arrives, check your spam folder \u2014 and make sure this is the address you signed up with.`);
33224
- var _tmpl$677 = /* @__PURE__ */ template(`<button type=button style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600;cursor:pointer">Back to sign in`);
33087
+ var _tmpl$676 = /* @__PURE__ */ template(`<button type=button style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600;cursor:pointer">Back to sign in`);
33225
33088
  function ForgotPasswordPage(props) {
33226
33089
  const [email, setEmail] = createSignal("");
33227
33090
  const [submitting, setSubmitting] = createSignal(false);
@@ -33259,7 +33122,7 @@ function ForgotPasswordPage(props) {
33259
33122
  return props.onDone;
33260
33123
  },
33261
33124
  get children() {
33262
- var _el$10 = _tmpl$677();
33125
+ var _el$10 = _tmpl$676();
33263
33126
  _el$10.$$click = () => props.onDone?.();
33264
33127
  return _el$10;
33265
33128
  }
@@ -33932,5 +33795,5 @@ function primaryButtonStyle2(submitting) {
33932
33795
  }
33933
33796
 
33934
33797
  export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AcceptAdminInvitePage, AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SmsConsentField, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath };
33935
- //# sourceMappingURL=4VJRXVJP.js.map
33936
- //# sourceMappingURL=4VJRXVJP.js.map
33798
+ //# sourceMappingURL=2OXKVNNY.js.map
33799
+ //# sourceMappingURL=2OXKVNNY.js.map