@apextelemed/partner-core 0.5.1 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +65 -14
  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/{DQE4K55D.jsx → 2MRJESYW.jsx} +15 -1
  6. package/dist/chunk/{XHOD3HUQ.js → 3MRCEVWC.js} +3 -3
  7. package/dist/chunk/{XHOD3HUQ.js.map → 3MRCEVWC.js.map} +1 -1
  8. package/dist/chunk/{ZJENZPAM.jsx → 4A2CPTUM.jsx} +5 -5
  9. package/dist/chunk/{5D7SGF46.js → 7AJQ5SVA.js} +16 -2
  10. package/dist/chunk/7AJQ5SVA.js.map +1 -0
  11. package/dist/chunk/{ZD2MMEXL.js → AH2VJK7Q.js} +6 -6
  12. package/dist/chunk/{ZD2MMEXL.js.map → AH2VJK7Q.js.map} +1 -1
  13. package/dist/chunk/{2UWULNSX.jsx → BVHNZLDK.jsx} +2 -2
  14. package/dist/chunk/{GNG53L37.jsx → FNOEL4FK.jsx} +2 -2
  15. package/dist/chunk/{AH3PJBED.jsx → IWWUVNBB.jsx} +306 -49
  16. package/dist/chunk/{7ZESUC4Q.js → LVGOEJHQ.js} +3 -3
  17. package/dist/chunk/{7ZESUC4Q.js.map → LVGOEJHQ.js.map} +1 -1
  18. package/dist/chunk/{JTG4H4I5.jsx → OLLSJX7B.jsx} +89 -11
  19. package/dist/chunk/{FUOUTRAO.jsx → OWTKSSYT.jsx} +2 -2
  20. package/dist/chunk/{GPVYUP3H.js → QCYSYBQ7.js} +89 -13
  21. package/dist/chunk/QCYSYBQ7.js.map +1 -0
  22. package/dist/chunk/{C7TELVJF.js → RFDMPQG4.js} +3 -3
  23. package/dist/chunk/{C7TELVJF.js.map → RFDMPQG4.js.map} +1 -1
  24. package/dist/chunk/{JXPPJF2V.js → XKCIXSN4.js} +513 -280
  25. package/dist/chunk/XKCIXSN4.js.map +1 -0
  26. package/dist/{client-BD9_HCZY.d.ts → client-CY8nbizi.d.ts} +27 -1
  27. package/dist/flows/index.d.ts +54 -6
  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 +6 -1
  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/dist/theme/member-portal.css +130 -0
  40. package/package.json +1 -1
  41. package/dist/chunk/5D7SGF46.js.map +0 -1
  42. package/dist/chunk/GPVYUP3H.js.map +0 -1
  43. package/dist/chunk/JXPPJF2V.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import { disqualificationReasonText, qualifiedDrugIds } from './LZWA44KD.js';
2
- import { useSurveyFlow, resolveSurveyV2DrugIntent, emailGateAnswered, redeemResumeLink, useSurveyV2Flow, availableStateOptions, US_STATE_OPTIONS, useCheckoutFlow, useCartCheckoutFlow, useSignupFlow, useRegisterFlow, useSubscribeFlow, useDashboardData, useUpdatePaymentMethodFlow, useMemberPortalData, useMessagesThread, captureFunnelEmail, markEmailGateAnswered, useAffiliateStats, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, stateAvailabilityNote, hasStateRestrictions, uploadPrescriptionPhoto, deriveAttention, deriveJourney, buildTimeline, lifecycleReason, accountSource, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, formatConversationTime, buildTrackerView, ACCOUNT_SOURCE_LABEL, fmtDay, formatCalendarDate, formatMessageTime, formatEventDate, formatStageDate, LIFECYCLE_TONE, buildTrackingUrl, isImageAttachment, buildRefillView, toTrackerRequest } from './GPVYUP3H.js';
3
- import { fetchFunnelConfig } from './7ZESUC4Q.js';
2
+ import { useSurveyFlow, resolveSurveyV2DrugIntent, emailGateAnswered, redeemResumeLink, useSurveyV2Flow, availableStateOptions, US_STATE_OPTIONS, useCheckoutFlow, useCartCheckoutFlow, useSignupFlow, useRegisterFlow, useSubscribeFlow, useDashboardData, useUpdatePaymentMethodFlow, useMemberPortalData, useMessagesThread, captureFunnelEmail, markEmailGateAnswered, useAffiliateStats, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, stateAvailabilityNote, hasStateRestrictions, uploadPrescriptionPhoto, deriveAttention, deriveJourney, buildTimeline, lifecycleReason, accountSource, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, formatConversationTime, SUPPORT_CATEGORIES, buildTrackerView, ACCOUNT_SOURCE_LABEL, fmtDay, formatCalendarDate, categoryLabel, formatMessageTime, formatEventDate, formatStageDate, LIFECYCLE_TONE, buildTrackingUrl, isImageAttachment, buildRefillView, toTrackerRequest } from './QCYSYBQ7.js';
3
+ import { fetchFunnelConfig } from './LVGOEJHQ.js';
4
4
  import { usePrimitives } from './67KHO66G.js';
5
- import { auth_default, cart_default, affiliateAuth_default } from './C7TELVJF.js';
6
- import { usersApi, adminApi, membersApi, affiliatePortalApi, authApi, adminAffiliatesApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, apiFetch, apexApi, subscriptionsApi, ApiError } from './5D7SGF46.js';
5
+ import { auth_default, cart_default, affiliateAuth_default } from './RFDMPQG4.js';
6
+ import { usersApi, adminApi, membersApi, affiliatePortalApi, authApi, adminAffiliatesApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, apiFetch, apexApi, subscriptionsApi, ApiError } from './7AJQ5SVA.js';
7
7
  import { delegateEvents, createComponent, insert, memo, effect, setStyleProperty, mergeProps, use, setAttribute, addEventListener, style, className, Dynamic, template } from 'solid-js/web';
8
8
  import { createContext, createEffect, on, Show, For, createResource, createSignal, createMemo, Index, ErrorBoundary, Switch, Match, onMount, onCleanup, useContext } from 'solid-js';
9
9
  import { isQuestionVisible } from '@apextelemed/survey-core';
@@ -15081,14 +15081,15 @@ var _tmpl$1312 = /* @__PURE__ */ template(`<div style="display:grid;grid-templat
15081
15081
  var _tmpl$1412 = /* @__PURE__ */ template(`<div class=app-admin-card style=margin-top:1.25rem><div style="padding:1rem 1.25rem;display:grid;gap:0.625rem">`);
15082
15082
  var _tmpl$1512 = /* @__PURE__ */ template(`<div class=app-admin-card style=margin-top:1.25rem><div style=padding:1.25rem;display:flex;align-items:flex-end;gap:0.375rem;height:9rem>`);
15083
15083
  var _tmpl$1612 = /* @__PURE__ */ template(`<div class=app-admin-card style=margin-top:1.25rem;overflow:hidden><table class=app-admin-table><thead><tr><th>Track</th><th>Sent</th><th>Recovered</th></tr></thead><tbody><tr><td data-label=Track>Finish signup (completed surveys)</td><td data-label=Sent></td><td data-label=Recovered></td></tr><tr><td data-label=Track>Finish questionnaire (mid-survey)</td><td data-label=Sent></td><td data-label=Recovered></td></tr><tr><td data-label=Track class=app-admin-text-muted>Unsubscribes</td><td data-label=Count colspan=2>`);
15084
- var _tmpl$1712 = /* @__PURE__ */ template(`<div style="display:grid;grid-template-columns:10rem 1fr 7rem;align-items:center;gap:0.75rem"><span style=font-size:0.8125rem;color:var(--app-admin-fg-muted)></span><div style=background:var(--app-admin-border-soft);border-radius:4px;height:1.125rem><div style=height:100%;background:var(--app-admin-primary);border-radius:4px></div></div><span style=font-size:0.8125rem;text-align:right><span style=color:var(--app-admin-fg-subtle);margin-left:0.375rem>`);
15085
- var _tmpl$1811 = /* @__PURE__ */ template(`<span style=font-size:0.6875rem;color:var(--app-admin-fg-muted)>`);
15086
- var _tmpl$1911 = /* @__PURE__ */ template(`<div style=flex:1;display:flex;flex-direction:column;align-items:center;gap:0.25rem;height:100%;justify-content:flex-end><div style="width:100%;max-width:1.75rem;border-radius:4px 4px 0 0"></div><span style=font-size:0.625rem;color:var(--app-admin-fg-subtle)>`);
15087
- var _tmpl$2010 = /* @__PURE__ */ template(`<tr><td colspan=4>`);
15088
- var _tmpl$2115 = /* @__PURE__ */ template(`<tr><td data-label="Last seen"class=app-admin-text-muted></td><td data-label=Progress></td><td data-label=Email></td><td data-label=Reminders>`);
15089
- var _tmpl$2212 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>not captured`);
15090
- var _tmpl$2311 = /* @__PURE__ */ template(`<tr><td colspan=5>`);
15091
- var _tmpl$2411 = /* @__PURE__ */ template(`<tr><td data-label=Captured class=app-admin-text-muted></td><td data-label=Name></td><td data-label=Email></td><td data-label=Qualified></td><td data-label=Reminders>`);
15084
+ var _tmpl$1712 = /* @__PURE__ */ template(`<div class=app-admin-funnel-stage style="display:grid;grid-template-columns:10rem 1fr 7rem;align-items:center;gap:0.75rem"><span style=font-size:0.8125rem;color:var(--app-admin-fg-muted)></span><div style=background:var(--app-admin-border-soft);border-radius:4px;height:1.125rem><div style=height:100%;background:var(--app-admin-primary);border-radius:4px></div></div><span style=font-size:0.8125rem;text-align:right><span style=color:var(--app-admin-fg-subtle);margin-left:0.375rem>`);
15085
+ var _tmpl$1811 = /* @__PURE__ */ template(`<p class=app-admin-text-muted style="font-size:0.75rem;margin:0.25rem 0 0">Step-by-step tracking saw <!> of <!> completed visits in this window \u2014 the rest finished before telemetry was switched on, or from a browser that never reported.`);
15086
+ var _tmpl$1911 = /* @__PURE__ */ template(`<span style=font-size:0.6875rem;color:var(--app-admin-fg-muted)>`);
15087
+ var _tmpl$2010 = /* @__PURE__ */ template(`<div style=flex:1;display:flex;flex-direction:column;align-items:center;gap:0.25rem;height:100%;justify-content:flex-end><div style="width:100%;max-width:1.75rem;border-radius:4px 4px 0 0"></div><span style=font-size:0.625rem;color:var(--app-admin-fg-subtle)>`);
15088
+ var _tmpl$2115 = /* @__PURE__ */ template(`<tr><td colspan=4>`);
15089
+ var _tmpl$2212 = /* @__PURE__ */ template(`<tr><td data-label="Last seen"class=app-admin-text-muted></td><td data-label=Progress></td><td data-label=Email></td><td data-label=Reminders>`);
15090
+ var _tmpl$2311 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>not captured`);
15091
+ var _tmpl$2411 = /* @__PURE__ */ template(`<tr><td colspan=5>`);
15092
+ var _tmpl$2511 = /* @__PURE__ */ template(`<tr><td data-label=Captured class=app-admin-text-muted></td><td data-label=Name></td><td data-label=Email></td><td data-label=Qualified></td><td data-label=Reminders>`);
15092
15093
  var MODE_HELP = {
15093
15094
  off: "Nothing is sent and nothing is queued.",
15094
15095
  review: 'The schedule decides who is due; nothing leaves until you send it. Due reminders appear under "Waiting for approval" below.',
@@ -15400,18 +15401,39 @@ function Funnel() {
15400
15401
  if (!s) return [];
15401
15402
  return [{
15402
15403
  label: "Surveys started",
15403
- value: s.sessions.started
15404
+ value: s.sessions.started,
15405
+ of: null,
15406
+ group: "tracked"
15404
15407
  }, {
15405
15408
  label: "Surveys completed",
15406
- value: s.captures.total
15409
+ value: s.sessions.completed,
15410
+ of: s.sessions.started,
15411
+ group: "tracked"
15412
+ }, {
15413
+ label: "Visits completed",
15414
+ value: s.captures.total,
15415
+ of: null,
15416
+ group: "visits"
15407
15417
  }, {
15408
15418
  label: "Qualified",
15409
- value: s.captures.qualified
15419
+ value: s.captures.qualified,
15420
+ of: s.captures.total,
15421
+ group: "visits"
15410
15422
  }, {
15411
15423
  label: "Signed up",
15412
- value: s.captures.converted
15424
+ value: s.captures.converted,
15425
+ of: s.captures.leads,
15426
+ group: "visits"
15413
15427
  }];
15414
15428
  };
15429
+ const trackingGap = () => {
15430
+ const s = summary();
15431
+ if (!s) return null;
15432
+ return s.captures.total > s.sessions.completed ? {
15433
+ tracked: s.sessions.completed,
15434
+ total: s.captures.total
15435
+ } : null;
15436
+ };
15415
15437
  const stageMax = () => Math.max(1, ...stages().map((s) => s.value));
15416
15438
  const dropoffMax = () => Math.max(1, ...(summary()?.stepDropoff ?? []).map((b) => b.count));
15417
15439
  const totalRecovered = () => (summary()?.recovery.captureRecovered ?? 0) + (summary()?.recovery.sessionRecovered ?? 0);
@@ -15440,7 +15462,7 @@ function Funnel() {
15440
15462
  insert(_el$51, createComponent(StatCard, {
15441
15463
  label: "Completion Rate",
15442
15464
  get value() {
15443
- return pct(s().captures.total, s().sessions.started);
15465
+ return pct(s().sessions.completed, s().sessions.started);
15444
15466
  }
15445
15467
  }), null);
15446
15468
  insert(_el$51, createComponent(StatCard, {
@@ -15465,7 +15487,8 @@ function Funnel() {
15465
15487
  })(), (() => {
15466
15488
  var _el$52 = _tmpl$1412(), _el$53 = _el$52.firstChild;
15467
15489
  insert(_el$52, createComponent(CardHeader, {
15468
- title: "Funnel stages"
15490
+ title: "Funnel stages",
15491
+ note: "Step tracking covers visits since telemetry was switched on; completed visits are recorded independently, so the two counts are read separately."
15469
15492
  }), _el$53);
15470
15493
  insert(_el$53, createComponent(For, {
15471
15494
  get each() {
@@ -15476,23 +15499,36 @@ function Funnel() {
15476
15499
  insert(_el$72, () => stage.label);
15477
15500
  insert(_el$75, () => stage.value, _el$76);
15478
15501
  insert(_el$76, (() => {
15479
- var _c$ = memo(() => i() > 0);
15480
- return () => _c$() ? pct(stage.value, stages()[i() - 1].value) : "";
15502
+ var _c$ = memo(() => stage.of != null);
15503
+ return () => _c$() ? pct(stage.value, stage.of) : "";
15481
15504
  })());
15482
15505
  effect((_p$) => {
15483
- var _v$4 = `${stage.label}: ${stage.value}`, _v$5 = `${stage.value / stageMax() * 100}%`, _v$6 = stage.value > 0 ? "4px" : "0";
15506
+ var _v$4 = `${stage.label}: ${stage.value}`, _v$5 = stage.group, _v$6 = `${stage.value / stageMax() * 100}%`, _v$7 = stage.value > 0 ? "4px" : "0";
15484
15507
  _v$4 !== _p$.e && setAttribute(_el$71, "title", _p$.e = _v$4);
15485
- _v$5 !== _p$.t && setStyleProperty(_el$74, "width", _p$.t = _v$5);
15486
- _v$6 !== _p$.a && setStyleProperty(_el$74, "min-width", _p$.a = _v$6);
15508
+ _v$5 !== _p$.t && setAttribute(_el$71, "data-group", _p$.t = _v$5);
15509
+ _v$6 !== _p$.a && setStyleProperty(_el$74, "width", _p$.a = _v$6);
15510
+ _v$7 !== _p$.o && setStyleProperty(_el$74, "min-width", _p$.o = _v$7);
15487
15511
  return _p$;
15488
15512
  }, {
15489
15513
  e: void 0,
15490
15514
  t: void 0,
15491
- a: void 0
15515
+ a: void 0,
15516
+ o: void 0
15492
15517
  });
15493
15518
  return _el$71;
15494
15519
  })()
15495
- }));
15520
+ }), null);
15521
+ insert(_el$53, createComponent(Show, {
15522
+ get when() {
15523
+ return trackingGap();
15524
+ },
15525
+ children: (gap) => (() => {
15526
+ var _el$77 = _tmpl$1811(), _el$78 = _el$77.firstChild, _el$81 = _el$78.nextSibling, _el$79 = _el$81.nextSibling, _el$82 = _el$79.nextSibling; _el$82.nextSibling;
15527
+ insert(_el$77, () => gap().tracked, _el$81);
15528
+ insert(_el$77, () => gap().total, _el$82);
15529
+ return _el$77;
15530
+ })()
15531
+ }), null);
15496
15532
  return _el$52;
15497
15533
  })(), (() => {
15498
15534
  var _el$54 = _tmpl$1512(), _el$55 = _el$54.firstChild;
@@ -15507,33 +15543,33 @@ function Funnel() {
15507
15543
  return s().stepDropoff;
15508
15544
  },
15509
15545
  children: (b) => (() => {
15510
- var _el$77 = _tmpl$1911(), _el$79 = _el$77.firstChild, _el$80 = _el$79.nextSibling;
15511
- insert(_el$77, createComponent(Show, {
15546
+ var _el$83 = _tmpl$2010(), _el$85 = _el$83.firstChild, _el$86 = _el$85.nextSibling;
15547
+ insert(_el$83, createComponent(Show, {
15512
15548
  get when() {
15513
15549
  return b.count > 0;
15514
15550
  },
15515
15551
  get children() {
15516
- var _el$78 = _tmpl$1811();
15517
- insert(_el$78, () => b.count);
15518
- return _el$78;
15552
+ var _el$84 = _tmpl$1911();
15553
+ insert(_el$84, () => b.count);
15554
+ return _el$84;
15519
15555
  }
15520
- }), _el$79);
15521
- insert(_el$80, (() => {
15556
+ }), _el$85);
15557
+ insert(_el$86, (() => {
15522
15558
  var _c$2 = memo(() => b.bucket === 0);
15523
15559
  return () => _c$2() ? "Start" : memo(() => b.bucket === 10)() ? "Info" : b.bucket === 5 ? "50%" : "";
15524
15560
  })());
15525
15561
  effect((_p$) => {
15526
- var _v$7 = `${b.bucket * 10}% through: ${b.count} abandon${b.count === 1 ? "" : "s"}`, _v$8 = `${Math.max(b.count > 0 ? 6 : 2, b.count / dropoffMax() * 100)}px`, _v$9 = b.count > 0 ? "var(--app-admin-primary)" : "var(--app-admin-border-soft)";
15527
- _v$7 !== _p$.e && setAttribute(_el$77, "title", _p$.e = _v$7);
15528
- _v$8 !== _p$.t && setStyleProperty(_el$79, "height", _p$.t = _v$8);
15529
- _v$9 !== _p$.a && setStyleProperty(_el$79, "background", _p$.a = _v$9);
15562
+ var _v$8 = `${b.bucket * 10}% through: ${b.count} abandon${b.count === 1 ? "" : "s"}`, _v$9 = `${Math.max(b.count > 0 ? 6 : 2, b.count / dropoffMax() * 100)}px`, _v$0 = b.count > 0 ? "var(--app-admin-primary)" : "var(--app-admin-border-soft)";
15563
+ _v$8 !== _p$.e && setAttribute(_el$83, "title", _p$.e = _v$8);
15564
+ _v$9 !== _p$.t && setStyleProperty(_el$85, "height", _p$.t = _v$9);
15565
+ _v$0 !== _p$.a && setStyleProperty(_el$85, "background", _p$.a = _v$0);
15530
15566
  return _p$;
15531
15567
  }, {
15532
15568
  e: void 0,
15533
15569
  t: void 0,
15534
15570
  a: void 0
15535
15571
  });
15536
- return _el$77;
15572
+ return _el$83;
15537
15573
  })()
15538
15574
  }));
15539
15575
  return _el$54;
@@ -15561,11 +15597,11 @@ function Funnel() {
15561
15597
  },
15562
15598
  get fallback() {
15563
15599
  return (() => {
15564
- var _el$81 = _tmpl$2010(), _el$82 = _el$81.firstChild;
15565
- insert(_el$82, createComponent(EmptyState, {
15600
+ var _el$87 = _tmpl$2115(), _el$88 = _el$87.firstChild;
15601
+ insert(_el$88, createComponent(EmptyState, {
15566
15602
  message: "No abandoned sessions"
15567
15603
  }));
15568
- return _el$81;
15604
+ return _el$87;
15569
15605
  })();
15570
15606
  },
15571
15607
  get children() {
@@ -15574,15 +15610,15 @@ function Funnel() {
15574
15610
  return abandons()?.sessions;
15575
15611
  },
15576
15612
  children: (sess) => (() => {
15577
- var _el$83 = _tmpl$2115(), _el$84 = _el$83.firstChild, _el$85 = _el$84.nextSibling, _el$86 = _el$85.nextSibling, _el$87 = _el$86.nextSibling;
15578
- insert(_el$84, () => formatDate(sess.last_seen_at));
15579
- insert(_el$85, (() => {
15613
+ var _el$89 = _tmpl$2212(), _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling, _el$92 = _el$91.nextSibling, _el$93 = _el$92.nextSibling;
15614
+ insert(_el$90, () => formatDate(sess.last_seen_at));
15615
+ insert(_el$91, (() => {
15580
15616
  var _c$3 = memo(() => !!(sess.last_step != null && sess.step_count));
15581
15617
  return () => _c$3() ? `Step ${Math.min(sess.last_step + 1, sess.step_count)} of ${sess.step_count}` : "\u2014";
15582
15618
  })());
15583
- insert(_el$86, () => sess.email ?? _tmpl$2212());
15584
- insert(_el$87, () => sess.reminders_sent);
15585
- return _el$83;
15619
+ insert(_el$92, () => sess.email ?? _tmpl$2311());
15620
+ insert(_el$93, () => sess.reminders_sent);
15621
+ return _el$89;
15586
15622
  })()
15587
15623
  });
15588
15624
  }
@@ -15596,11 +15632,11 @@ function Funnel() {
15596
15632
  },
15597
15633
  get fallback() {
15598
15634
  return (() => {
15599
- var _el$89 = _tmpl$2311(), _el$90 = _el$89.firstChild;
15600
- insert(_el$90, createComponent(EmptyState, {
15635
+ var _el$95 = _tmpl$2411(), _el$96 = _el$95.firstChild;
15636
+ insert(_el$96, createComponent(EmptyState, {
15601
15637
  message: "No unconverted captures"
15602
15638
  }));
15603
- return _el$89;
15639
+ return _el$95;
15604
15640
  })();
15605
15641
  },
15606
15642
  get children() {
@@ -15609,13 +15645,13 @@ function Funnel() {
15609
15645
  return leads()?.captures;
15610
15646
  },
15611
15647
  children: (c) => (() => {
15612
- var _el$91 = _tmpl$2411(), _el$92 = _el$91.firstChild, _el$93 = _el$92.nextSibling, _el$94 = _el$93.nextSibling, _el$95 = _el$94.nextSibling, _el$96 = _el$95.nextSibling;
15613
- insert(_el$92, () => formatDate(c.captured_at));
15614
- insert(_el$93, () => c.patient_name ?? "\u2014");
15615
- insert(_el$94, () => c.email ?? "\u2014");
15616
- insert(_el$95, () => c.qualified ? "Yes" : "No");
15617
- insert(_el$96, () => c.reminders_sent);
15618
- return _el$91;
15648
+ var _el$97 = _tmpl$2511(), _el$98 = _el$97.firstChild, _el$99 = _el$98.nextSibling, _el$100 = _el$99.nextSibling, _el$101 = _el$100.nextSibling, _el$102 = _el$101.nextSibling;
15649
+ insert(_el$98, () => formatDate(c.captured_at));
15650
+ insert(_el$99, () => c.patient_name ?? "\u2014");
15651
+ insert(_el$100, () => c.email ?? "\u2014");
15652
+ insert(_el$101, () => c.qualified ? "Yes" : "No");
15653
+ insert(_el$102, () => c.reminders_sent);
15654
+ return _el$97;
15619
15655
  })()
15620
15656
  });
15621
15657
  }
@@ -17165,34 +17201,40 @@ function MedicationGuide(props) {
17165
17201
  })();
17166
17202
  }
17167
17203
  delegateEvents(["click"]);
17168
- var _tmpl$305 = /* @__PURE__ */ template(`<div class=msg-list__header><h2 class=msg-list__title>Messages</h2><button type=button class=msg-list__new data-testid=messages-new-support><i class="ph-thin ph-plus"aria-hidden=true></i>Message support`);
17169
- var _tmpl$2103 = /* @__PURE__ */ template(`<div class=msg-list__state><div class=request-status__spinner>`);
17170
- var _tmpl$364 = /* @__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>Your care team will reach out after reviewing your case \u2014 or message support with a question any time.`);
17171
- var _tmpl$448 = /* @__PURE__ */ template(`<div class=msg-list__scroll data-scrollable>`);
17172
- var _tmpl$543 = /* @__PURE__ */ template(`<span class=msg-list__pip>`);
17173
- var _tmpl$641 = /* @__PURE__ */ template(`<button type=button><div class=msg-list__row><span class=msg-list__name></span><span class=msg-list__time></span></div><div class=msg-list__row><span class=msg-list__preview>`);
17174
- var _tmpl$736 = /* @__PURE__ */ template(`<button type=button class=msg-attachment__image-link><img class=msg-attachment__image loading=lazy>`, true, false, false);
17175
- var _tmpl$832 = /* @__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>`);
17176
- var _tmpl$929 = /* @__PURE__ */ template(`<span class=msg-attachment__fallback>`);
17177
- var _tmpl$025 = /* @__PURE__ */ template(`<p class=msg-thread__sender>`);
17178
- var _tmpl$1105 = /* @__PURE__ */ template(`<div class=msg-thread__text>`);
17179
- var _tmpl$1017 = /* @__PURE__ */ template(`<div class=msg-attachment>`);
17180
- var _tmpl$1119 = /* @__PURE__ */ template(`<div><div><p class=msg-thread__meta>`);
17181
- var _tmpl$1216 = /* @__PURE__ */ template(`<p class=msg-thread__system data-testid=system-message>`);
17182
- var _tmpl$1315 = /* @__PURE__ */ template(`<p class=msg-thread__text>`);
17183
- var _tmpl$1415 = /* @__PURE__ */ template(`<button type=button class="msg-compose__staged-remove msg-compose__staged-remove--inline">Remove file`);
17184
- var _tmpl$1515 = /* @__PURE__ */ template(`<p class=msg-compose__error role=alert>`);
17185
- var _tmpl$1615 = /* @__PURE__ */ template(`<form class="msg-thread msg-thread--compose"data-testid=support-compose><div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label="Back to conversations"><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><div><h3 class=msg-thread__name>Message support</h3><p class=msg-thread__role>We usually reply within one business day</p></div></div><div class=msg-compose__new><label class=msg-compose__label for=support-subject>What's this about?</label><input id=support-subject class=msg-compose__subject type=text maxlength=500 required placeholder="e.g. Question about my order"><label class=msg-compose__label for=support-body>How can we help?</label><textarea id=support-body class=msg-compose__body rows=6 maxlength=5000 required placeholder="Tell us what's going on\u2026"></textarea><label class="msg-compose__attach msg-compose__attach--block"title="Attach a file"><i class="ph-thin ph-paperclip"aria-hidden=true></i><span class=msg-compose__attach-label></span><input class=msg-compose__file-input type=file data-testid=support-compose-attach></label><button type=submit class=msg-compose__send data-testid=support-compose-send>`);
17186
- var _tmpl$1715 = /* @__PURE__ */ template(`<span class=msg-thread__status data-testid=thread-status-closed>Resolved`);
17187
- var _tmpl$1812 = /* @__PURE__ */ template(`<div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label="Back to conversations"data-testid=messages-back><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><div><h3 class=msg-thread__name></h3><p class=msg-thread__role>`);
17188
- var _tmpl$1912 = /* @__PURE__ */ template(`<div class=msg-thread__messages data-scrollable><div>`);
17189
- var _tmpl$2011 = /* @__PURE__ */ template(`<span class=msg-compose__error role=alert>`);
17190
- var _tmpl$2116 = /* @__PURE__ */ template(`<div class=msg-compose__staged>`);
17191
- var _tmpl$2213 = /* @__PURE__ */ template(`<label class=msg-compose__attach title="Attach a file"><i class="ph-thin ph-paperclip"aria-hidden=true></i><span class=msg-compose__attach-label>Attach a file</span><input class=msg-compose__file-input type=file data-testid=messages-attach>`);
17192
- var _tmpl$2312 = /* @__PURE__ */ template(`<div class=msg-compose><textarea class=msg-compose__input rows=1 placeholder="Type a message\u2026"aria-label=Message></textarea><button type=button class=msg-compose__send data-testid=messages-send>`);
17193
- var _tmpl$2412 = /* @__PURE__ */ template(`<span class=msg-compose__staged-file data-testid=staged-file><i class="ph-thin ph-paperclip"aria-hidden=true></i><span class=msg-attachment__file-size></span><button type=button class=msg-compose__staged-remove aria-label="Remove attachment">\xD7`);
17194
- var _tmpl$2511 = /* @__PURE__ */ template(`<div class=msg-panel data-testid=messages-panel><div class=msg-panel__layout><div></div><div>`);
17195
- var _tmpl$2610 = /* @__PURE__ */ template(`<div class=msg-panel__placeholder data-testid=messages-placeholder><p>Select a conversation to read and reply.`);
17204
+ var _tmpl$305 = /* @__PURE__ */ template(`<span data-testid=channel-chip>`);
17205
+ var _tmpl$2103 = /* @__PURE__ */ template(`<span class=channel-chip__category>`);
17206
+ var _tmpl$364 = /* @__PURE__ */ template(`<div class=msg-list__header><h2 class=msg-list__title>Messages</h2><button type=button class=msg-list__new data-testid=messages-new-support><i class="ph-thin ph-plus"aria-hidden=true></i>New message`);
17207
+ var _tmpl$448 = /* @__PURE__ */ template(`<div class=msg-list__state><div class=request-status__spinner>`);
17208
+ var _tmpl$543 = /* @__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>Your care team reviews and responds to anything about your treatment, medication or side effects. For questions about your account, an order, billing or the site, message support instead.`);
17209
+ var _tmpl$641 = /* @__PURE__ */ template(`<div class=msg-list__scroll data-scrollable>`);
17210
+ var _tmpl$736 = /* @__PURE__ */ template(`<span class=msg-list__pip>`);
17211
+ var _tmpl$832 = /* @__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>`);
17212
+ var _tmpl$929 = /* @__PURE__ */ template(`<button type=button class=msg-attachment__image-link><img class=msg-attachment__image loading=lazy>`, true, false, false);
17213
+ var _tmpl$025 = /* @__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>`);
17214
+ var _tmpl$1105 = /* @__PURE__ */ template(`<span class=msg-attachment__fallback>`);
17215
+ var _tmpl$1017 = /* @__PURE__ */ template(`<p class=msg-thread__sender>`);
17216
+ var _tmpl$1119 = /* @__PURE__ */ template(`<div class=msg-thread__text>`);
17217
+ var _tmpl$1216 = /* @__PURE__ */ template(`<div class=msg-attachment>`);
17218
+ var _tmpl$1315 = /* @__PURE__ */ template(`<div><div><p class=msg-thread__meta>`);
17219
+ var _tmpl$1415 = /* @__PURE__ */ template(`<p class=msg-thread__system data-testid=system-message>`);
17220
+ var _tmpl$1515 = /* @__PURE__ */ template(`<p class=msg-thread__text>`);
17221
+ var _tmpl$1615 = /* @__PURE__ */ template(`<button type=button class="msg-compose__staged-remove msg-compose__staged-remove--inline">Remove file`);
17222
+ var _tmpl$1715 = /* @__PURE__ */ template(`<p class=msg-compose__error role=alert>`);
17223
+ var _tmpl$1812 = /* @__PURE__ */ template(`<form class="msg-thread msg-thread--compose"data-testid=support-compose><div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label=Back data-testid=support-compose-back><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><div><h3 class=msg-thread__name>Message support</h3><p class=msg-thread__role>We usually reply within one business day</p></div></div><div class=msg-compose__new><label class=msg-compose__label id=support-category-label>What's this about? <span class=msg-compose__label-optional>(optional)</span></label><div class=msg-compose__categories role=group aria-labelledby=support-category-label></div><label class=msg-compose__label for=support-subject>Subject</label><input id=support-subject class=msg-compose__subject type=text maxlength=500 required placeholder="e.g. Question about my order"><label class=msg-compose__label for=support-body>How can we help?</label><textarea id=support-body class=msg-compose__body rows=6 maxlength=5000 required placeholder="Tell us what's going on\u2026"></textarea><label class="msg-compose__attach msg-compose__attach--block"title="Attach a file"><i class="ph-thin ph-paperclip"aria-hidden=true></i><span class=msg-compose__attach-label></span><input class=msg-compose__file-input type=file data-testid=support-compose-attach></label><button type=submit class=msg-compose__send data-testid=support-compose-send>`);
17224
+ var _tmpl$1912 = /* @__PURE__ */ template(`<button type=button>`);
17225
+ var _tmpl$2011 = /* @__PURE__ */ template(`<form class="msg-thread msg-thread--compose"data-testid=care-compose><div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label=Back data-testid=care-compose-back><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><div><h3 class=msg-thread__name>Message your care team</h3><p class=msg-thread__role>Your prescriber or their team will reply</p></div></div><div class=msg-compose__new><label class=msg-compose__label for=care-body>Message</label><textarea id=care-body class=msg-compose__body rows=6 maxlength=5000 required placeholder="Tell your care team what's going on\u2026"></textarea><label class="msg-compose__attach msg-compose__attach--block"title="Attach a file"><i class="ph-thin ph-paperclip"aria-hidden=true></i><span class=msg-compose__attach-label></span><input class=msg-compose__file-input type=file data-testid=care-compose-attach></label><button type=submit class=msg-compose__send data-testid=care-compose-send>`);
17226
+ var _tmpl$2116 = /* @__PURE__ */ template(`<div class="msg-thread msg-choice"data-testid=messages-channel-choice><div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label="Back to conversations"><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><div><h3 class=msg-thread__name>New message</h3><p class=msg-thread__role>What's this about?</p></div></div><div class=msg-choice__options><button type=button class=msg-choice__option data-testid=choice-care-team><i class="ph-thin ph-heartbeat msg-choice__option-icon"aria-hidden=true></i><span class=msg-choice__option-title>My treatment, medication or side effects</span><span class=msg-choice__option-sub>Goes to your care team</span></button><button type=button class=msg-choice__option data-testid=choice-support><i class="ph-thin ph-lifebuoy msg-choice__option-icon"aria-hidden=true></i><span class=msg-choice__option-title>My account, order, billing or the website</span><span class=msg-choice__option-sub>Goes to support`);
17227
+ var _tmpl$2213 = /* @__PURE__ */ template(`<div class="msg-thread msg-choice"data-testid=care-team-notice><div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label=Back><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><div><h3 class=msg-thread__name>Care team</h3><p class=msg-thread__role>Goes to your care team</p></div></div><div class=msg-choice__notice><p class=msg-choice__notice-text>Your care team will reach out after reviewing your case. If you have a question about your account or order in the meantime, send it to support.</p><button type=button class="portal-btn portal-btn--primary"data-testid=care-team-notice-switch>Message support instead`);
17228
+ var _tmpl$2312 = /* @__PURE__ */ template(`<span class=msg-thread__status data-testid=thread-status-closed>Resolved`);
17229
+ var _tmpl$2412 = /* @__PURE__ */ template(`<div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label="Back to conversations"data-testid=messages-back><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><div><div class=msg-thread__title-row><h3 class=msg-thread__name></h3></div><p class=msg-thread__role>`);
17230
+ var _tmpl$2512 = /* @__PURE__ */ template(`<div class=msg-thread__messages data-scrollable><div>`);
17231
+ var _tmpl$2610 = /* @__PURE__ */ template(`<span class=msg-compose__error role=alert>`);
17232
+ var _tmpl$2710 = /* @__PURE__ */ template(`<div class=msg-compose__staged>`);
17233
+ var _tmpl$2810 = /* @__PURE__ */ template(`<label class=msg-compose__attach title="Attach a file"><i class="ph-thin ph-paperclip"aria-hidden=true></i><span class=msg-compose__attach-label>Attach a file</span><input class=msg-compose__file-input type=file data-testid=messages-attach>`);
17234
+ var _tmpl$2910 = /* @__PURE__ */ template(`<div class=msg-compose><textarea class=msg-compose__input rows=1 placeholder="Type a message\u2026"aria-label=Message></textarea><button type=button class=msg-compose__send data-testid=messages-send>`);
17235
+ var _tmpl$306 = /* @__PURE__ */ template(`<span class=msg-compose__staged-file data-testid=staged-file><i class="ph-thin ph-paperclip"aria-hidden=true></i><span class=msg-attachment__file-size></span><button type=button class=msg-compose__staged-remove aria-label="Remove attachment">\xD7`);
17236
+ var _tmpl$3112 = /* @__PURE__ */ template(`<div class=msg-panel data-testid=messages-panel><div class=msg-panel__layout><div></div><div>`);
17237
+ var _tmpl$3210 = /* @__PURE__ */ template(`<div class=msg-panel__placeholder data-testid=messages-placeholder><p>Select a conversation to read and reply.`);
17196
17238
  function sanitizeMessageHtml(html) {
17197
17239
  return DOMPurify.sanitize(html, {
17198
17240
  ALLOWED_TAGS: ["a", "b", "strong", "i", "em", "u", "s", "p", "br", "ul", "ol", "li", "blockquote", "h1", "h2", "h3", "h4", "span", "div", "table", "thead", "tbody", "tr", "th", "td", "img", "hr", "code", "pre"],
@@ -17217,8 +17259,10 @@ function rejectionReason(file) {
17217
17259
  function MessagesPanel(props) {
17218
17260
  const thread = () => props.thread;
17219
17261
  const [composing, setComposing] = createSignal(false);
17262
+ const [composeStep, setComposeStep] = createSignal("choice");
17220
17263
  const [newSubject, setNewSubject] = createSignal("");
17221
17264
  const [newBody, setNewBody] = createSignal("");
17265
+ const [newCategory, setNewCategory] = createSignal(null);
17222
17266
  const [composeError, setComposeError] = createSignal(null);
17223
17267
  const [pendingFile, setPendingFile] = createSignal(null);
17224
17268
  const [newFile, setNewFile] = createSignal(null);
@@ -17252,13 +17296,26 @@ function MessagesPanel(props) {
17252
17296
  thread().clearSelection();
17253
17297
  setNewSubject("");
17254
17298
  setNewBody("");
17299
+ setNewCategory(null);
17255
17300
  setComposeError(null);
17301
+ setComposeStep("choice");
17256
17302
  setComposing(true);
17257
17303
  }
17304
+ let composerRef;
17305
+ async function pickCareTeam() {
17306
+ const convo = thread().conversations().find((c) => c.source === "clinical");
17307
+ if (!convo) {
17308
+ setComposeStep("care");
17309
+ return;
17310
+ }
17311
+ setComposing(false);
17312
+ await thread().selectConversation(convo.id);
17313
+ requestAnimationFrame(() => composerRef?.focus());
17314
+ }
17258
17315
  async function submitCompose(e) {
17259
17316
  e.preventDefault();
17260
17317
  setComposeError(null);
17261
- const result = await thread().startSupportThread(newSubject(), newBody(), newFile() ?? void 0);
17318
+ const result = await thread().startSupportThread(newSubject(), newBody(), newFile() ?? void 0, newCategory());
17262
17319
  if (!result.created) {
17263
17320
  setComposeError("That didn't send. Please try again.");
17264
17321
  return;
@@ -17266,6 +17323,30 @@ function MessagesPanel(props) {
17266
17323
  setComposing(false);
17267
17324
  setNewSubject("");
17268
17325
  setNewBody("");
17326
+ setNewCategory(null);
17327
+ const file = newFile();
17328
+ setNewFile(null);
17329
+ if (result.attachmentFailed && file) {
17330
+ setPendingFile(file);
17331
+ setAttachError("Your message was sent, but the file didn\u2019t attach. Try sending it again.");
17332
+ }
17333
+ }
17334
+ async function submitCareCompose(e) {
17335
+ e.preventDefault();
17336
+ setComposeError(null);
17337
+ const result = await thread().startCareTeamThread(newBody(), newFile() ?? void 0);
17338
+ if (result.reason === "no_care_team") {
17339
+ setComposeStep("care-notice");
17340
+ return;
17341
+ }
17342
+ if (!result.created) {
17343
+ setComposeError("That didn't send. Please try again.");
17344
+ return;
17345
+ }
17346
+ setComposing(false);
17347
+ setNewSubject("");
17348
+ setNewBody("");
17349
+ setNewCategory(null);
17269
17350
  const file = newFile();
17270
17351
  setNewFile(null);
17271
17352
  if (result.attachmentFailed && file) {
@@ -17288,61 +17369,93 @@ function MessagesPanel(props) {
17288
17369
  void handleSend();
17289
17370
  }
17290
17371
  }
17291
- const ConversationList = () => [(() => {
17292
- var _el$ = _tmpl$305(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
17293
- _el$3.$$click = openCompose;
17372
+ const ChannelChip = (p) => (() => {
17373
+ var _el$ = _tmpl$305();
17374
+ insert(_el$, () => p.source === "clinical" ? "Care team" : "Support", null);
17375
+ insert(_el$, createComponent(Show, {
17376
+ get when() {
17377
+ return memo(() => p.source === "support")() && categoryLabel(p.category);
17378
+ },
17379
+ children: (label) => (() => {
17380
+ var _el$2 = _tmpl$2103();
17381
+ insert(_el$2, label);
17382
+ return _el$2;
17383
+ })()
17384
+ }), null);
17385
+ effect((_p$) => {
17386
+ var _v$ = `channel-chip channel-chip--${p.source}`, _v$2 = p.source;
17387
+ _v$ !== _p$.e && className(_el$, _p$.e = _v$);
17388
+ _v$2 !== _p$.t && setAttribute(_el$, "data-channel", _p$.t = _v$2);
17389
+ return _p$;
17390
+ }, {
17391
+ e: void 0,
17392
+ t: void 0
17393
+ });
17294
17394
  return _el$;
17395
+ })();
17396
+ const ConversationList = () => [(() => {
17397
+ var _el$3 = _tmpl$364(), _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling;
17398
+ _el$5.$$click = openCompose;
17399
+ return _el$3;
17295
17400
  })(), (() => {
17296
- var _el$4 = _tmpl$448();
17297
- insert(_el$4, createComponent(Show, {
17401
+ var _el$6 = _tmpl$641();
17402
+ insert(_el$6, createComponent(Show, {
17298
17403
  get when() {
17299
17404
  return thread().loadingConversations();
17300
17405
  },
17301
17406
  get children() {
17302
- return _tmpl$2103();
17407
+ return _tmpl$448();
17303
17408
  }
17304
17409
  }), null);
17305
- insert(_el$4, createComponent(Show, {
17410
+ insert(_el$6, createComponent(Show, {
17306
17411
  get when() {
17307
17412
  return memo(() => !!!thread().loadingConversations())() && thread().conversations().length === 0;
17308
17413
  },
17309
17414
  get children() {
17310
- return _tmpl$364();
17415
+ return _tmpl$543();
17311
17416
  }
17312
17417
  }), null);
17313
- insert(_el$4, createComponent(For, {
17418
+ insert(_el$6, createComponent(For, {
17314
17419
  get each() {
17315
17420
  return thread().conversations();
17316
17421
  },
17317
17422
  children: (convo) => (() => {
17318
- var _el$7 = _tmpl$641(), _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild, _el$0 = _el$9.nextSibling, _el$1 = _el$8.nextSibling, _el$10 = _el$1.firstChild;
17319
- _el$7.$$click = () => thread().selectConversation(convo.id);
17320
- insert(_el$9, () => convo.participantName ?? "Provider");
17321
- insert(_el$0, () => formatConversationTime(convo.lastMessageAt));
17322
- insert(_el$10, () => convo.lastMessage ?? "No messages yet");
17323
- insert(_el$1, createComponent(Show, {
17423
+ var _el$9 = _tmpl$832(), _el$0 = _el$9.firstChild, _el$1 = _el$0.firstChild, _el$10 = _el$1.firstChild, _el$11 = _el$1.nextSibling, _el$12 = _el$0.nextSibling, _el$13 = _el$12.firstChild;
17424
+ _el$9.$$click = () => thread().selectConversation(convo.id);
17425
+ insert(_el$10, () => convo.participantName ?? "Provider");
17426
+ insert(_el$1, createComponent(ChannelChip, {
17427
+ get source() {
17428
+ return convo.source;
17429
+ },
17430
+ get category() {
17431
+ return convo.category;
17432
+ }
17433
+ }), null);
17434
+ insert(_el$11, () => formatConversationTime(convo.lastMessageAt));
17435
+ insert(_el$13, () => convo.lastMessage ?? "No messages yet");
17436
+ insert(_el$12, createComponent(Show, {
17324
17437
  get when() {
17325
17438
  return (convo.unreadCount ?? 0) > 0;
17326
17439
  },
17327
17440
  get children() {
17328
- var _el$11 = _tmpl$543();
17329
- insert(_el$11, () => convo.unreadCount);
17330
- return _el$11;
17441
+ var _el$14 = _tmpl$736();
17442
+ insert(_el$14, () => convo.unreadCount);
17443
+ return _el$14;
17331
17444
  }
17332
17445
  }), null);
17333
17446
  effect((_p$) => {
17334
- var _v$ = `msg-list__item${thread().selectedId() === convo.id ? " is-active" : ""}`, _v$2 = `conversation-${convo.id}`;
17335
- _v$ !== _p$.e && className(_el$7, _p$.e = _v$);
17336
- _v$2 !== _p$.t && setAttribute(_el$7, "data-testid", _p$.t = _v$2);
17447
+ var _v$3 = `msg-list__item${thread().selectedId() === convo.id ? " is-active" : ""}`, _v$4 = `conversation-${convo.id}`;
17448
+ _v$3 !== _p$.e && className(_el$9, _p$.e = _v$3);
17449
+ _v$4 !== _p$.t && setAttribute(_el$9, "data-testid", _p$.t = _v$4);
17337
17450
  return _p$;
17338
17451
  }, {
17339
17452
  e: void 0,
17340
17453
  t: void 0
17341
17454
  });
17342
- return _el$7;
17455
+ return _el$9;
17343
17456
  })()
17344
17457
  }), null);
17345
- return _el$4;
17458
+ return _el$6;
17346
17459
  })()];
17347
17460
  const Attachment = (p) => {
17348
17461
  const [url, setUrl] = createSignal(p.attachment.url ?? null);
@@ -17367,12 +17480,12 @@ function MessagesPanel(props) {
17367
17480
  },
17368
17481
  get fallback() {
17369
17482
  return (() => {
17370
- var _el$14 = _tmpl$832(), _el$15 = _el$14.firstChild, _el$16 = _el$15.nextSibling, _el$17 = _el$16.firstChild, _el$18 = _el$17.nextSibling;
17371
- _el$14.$$click = openDocument;
17372
- insert(_el$17, () => p.attachment.filename);
17373
- insert(_el$18, () => formatFileSize(p.attachment.sizeBytes));
17374
- effect(() => setAttribute(_el$14, "data-testid", `attachment-${p.attachment.id}`));
17375
- return _el$14;
17483
+ var _el$17 = _tmpl$025(), _el$18 = _el$17.firstChild, _el$19 = _el$18.nextSibling, _el$20 = _el$19.firstChild, _el$21 = _el$20.nextSibling;
17484
+ _el$17.$$click = openDocument;
17485
+ insert(_el$20, () => p.attachment.filename);
17486
+ insert(_el$21, () => formatFileSize(p.attachment.sizeBytes));
17487
+ effect(() => setAttribute(_el$17, "data-testid", `attachment-${p.attachment.id}`));
17488
+ return _el$17;
17376
17489
  })();
17377
17490
  },
17378
17491
  get children() {
@@ -17382,15 +17495,15 @@ function MessagesPanel(props) {
17382
17495
  },
17383
17496
  get fallback() {
17384
17497
  return (() => {
17385
- var _el$19 = _tmpl$929();
17386
- insert(_el$19, () => failed() ? "Attachment unavailable" : "Loading\u2026");
17387
- return _el$19;
17498
+ var _el$22 = _tmpl$1105();
17499
+ insert(_el$22, () => failed() ? "Attachment unavailable" : "Loading\u2026");
17500
+ return _el$22;
17388
17501
  })();
17389
17502
  },
17390
17503
  get children() {
17391
- var _el$12 = _tmpl$736(), _el$13 = _el$12.firstChild;
17392
- _el$12.$$click = openDocument;
17393
- _el$13.addEventListener("error", () => {
17504
+ var _el$15 = _tmpl$929(), _el$16 = _el$15.firstChild;
17505
+ _el$15.$$click = openDocument;
17506
+ _el$16.addEventListener("error", () => {
17394
17507
  if (retried) {
17395
17508
  setFailed(true);
17396
17509
  return;
@@ -17399,15 +17512,15 @@ function MessagesPanel(props) {
17399
17512
  void resolve(true);
17400
17513
  });
17401
17514
  effect((_p$) => {
17402
- var _v$3 = url(), _v$4 = p.attachment.filename;
17403
- _v$3 !== _p$.e && setAttribute(_el$13, "src", _p$.e = _v$3);
17404
- _v$4 !== _p$.t && setAttribute(_el$13, "alt", _p$.t = _v$4);
17515
+ var _v$5 = url(), _v$6 = p.attachment.filename;
17516
+ _v$5 !== _p$.e && setAttribute(_el$16, "src", _p$.e = _v$5);
17517
+ _v$6 !== _p$.t && setAttribute(_el$16, "alt", _p$.t = _v$6);
17405
17518
  return _p$;
17406
17519
  }, {
17407
17520
  e: void 0,
17408
17521
  t: void 0
17409
17522
  });
17410
- return _el$12;
17523
+ return _el$15;
17411
17524
  }
17412
17525
  });
17413
17526
  }
@@ -17422,24 +17535,24 @@ function MessagesPanel(props) {
17422
17535
  },
17423
17536
  get fallback() {
17424
17537
  return (() => {
17425
- var _el$26 = _tmpl$1216();
17426
- insert(_el$26, body);
17427
- return _el$26;
17538
+ var _el$29 = _tmpl$1415();
17539
+ insert(_el$29, body);
17540
+ return _el$29;
17428
17541
  })();
17429
17542
  },
17430
17543
  get children() {
17431
- var _el$20 = _tmpl$1119(), _el$21 = _el$20.firstChild, _el$25 = _el$21.firstChild;
17432
- insert(_el$21, createComponent(Show, {
17544
+ var _el$23 = _tmpl$1315(), _el$24 = _el$23.firstChild, _el$28 = _el$24.firstChild;
17545
+ insert(_el$24, createComponent(Show, {
17433
17546
  get when() {
17434
17547
  return memo(() => !!!isOwn())() && p.msg.senderName;
17435
17548
  },
17436
17549
  get children() {
17437
- var _el$22 = _tmpl$025();
17438
- insert(_el$22, () => p.msg.senderName);
17439
- return _el$22;
17550
+ var _el$25 = _tmpl$1017();
17551
+ insert(_el$25, () => p.msg.senderName);
17552
+ return _el$25;
17440
17553
  }
17441
- }), _el$25);
17442
- insert(_el$21, createComponent(Show, {
17554
+ }), _el$28);
17555
+ insert(_el$24, createComponent(Show, {
17443
17556
  get when() {
17444
17557
  return body();
17445
17558
  },
@@ -17450,26 +17563,26 @@ function MessagesPanel(props) {
17450
17563
  },
17451
17564
  get fallback() {
17452
17565
  return (() => {
17453
- var _el$27 = _tmpl$1315();
17454
- insert(_el$27, body);
17455
- return _el$27;
17566
+ var _el$30 = _tmpl$1515();
17567
+ insert(_el$30, body);
17568
+ return _el$30;
17456
17569
  })();
17457
17570
  },
17458
17571
  get children() {
17459
- var _el$23 = _tmpl$1105();
17460
- effect(() => _el$23.innerHTML = sanitizeMessageHtml(body()));
17461
- return _el$23;
17572
+ var _el$26 = _tmpl$1119();
17573
+ effect(() => _el$26.innerHTML = sanitizeMessageHtml(body()));
17574
+ return _el$26;
17462
17575
  }
17463
17576
  });
17464
17577
  }
17465
- }), _el$25);
17466
- insert(_el$21, createComponent(Show, {
17578
+ }), _el$28);
17579
+ insert(_el$24, createComponent(Show, {
17467
17580
  get when() {
17468
17581
  return p.msg.attachments?.length;
17469
17582
  },
17470
17583
  get children() {
17471
- var _el$24 = _tmpl$1017();
17472
- insert(_el$24, createComponent(For, {
17584
+ var _el$27 = _tmpl$1216();
17585
+ insert(_el$27, createComponent(For, {
17473
17586
  get each() {
17474
17587
  return p.msg.attachments;
17475
17588
  },
@@ -17477,163 +17590,283 @@ function MessagesPanel(props) {
17477
17590
  attachment: a
17478
17591
  })
17479
17592
  }));
17480
- return _el$24;
17593
+ return _el$27;
17481
17594
  }
17482
- }), _el$25);
17483
- insert(_el$25, () => formatMessageTime(p.msg.createdAt));
17595
+ }), _el$28);
17596
+ insert(_el$28, () => formatMessageTime(p.msg.createdAt));
17484
17597
  effect((_p$) => {
17485
- var _v$5 = `msg-thread__line${isOwn() ? " msg-thread__line--own" : ""}`, _v$6 = `msg-thread__bubble${isOwn() ? " msg-thread__bubble--own" : ""}`;
17486
- _v$5 !== _p$.e && className(_el$20, _p$.e = _v$5);
17487
- _v$6 !== _p$.t && className(_el$21, _p$.t = _v$6);
17598
+ var _v$7 = `msg-thread__line${isOwn() ? " msg-thread__line--own" : ""}`, _v$8 = `msg-thread__bubble${isOwn() ? " msg-thread__bubble--own" : ""}`;
17599
+ _v$7 !== _p$.e && className(_el$23, _p$.e = _v$7);
17600
+ _v$8 !== _p$.t && className(_el$24, _p$.t = _v$8);
17488
17601
  return _p$;
17489
17602
  }, {
17490
17603
  e: void 0,
17491
17604
  t: void 0
17492
17605
  });
17493
- return _el$20;
17606
+ return _el$23;
17494
17607
  }
17495
17608
  });
17496
17609
  };
17497
17610
  const NewSupportThread = () => (() => {
17498
- var _el$28 = _tmpl$1615(), _el$29 = _el$28.firstChild, _el$30 = _el$29.firstChild, _el$31 = _el$29.nextSibling, _el$32 = _el$31.firstChild, _el$33 = _el$32.nextSibling, _el$34 = _el$33.nextSibling, _el$35 = _el$34.nextSibling, _el$36 = _el$35.nextSibling, _el$37 = _el$36.firstChild, _el$38 = _el$37.nextSibling, _el$39 = _el$38.nextSibling, _el$42 = _el$36.nextSibling;
17499
- _el$28.addEventListener("submit", submitCompose);
17500
- _el$30.$$click = () => setComposing(false);
17501
- _el$33.$$input = (e) => setNewSubject(e.currentTarget.value);
17502
- _el$35.$$input = (e) => setNewBody(e.currentTarget.value);
17503
- insert(_el$38, () => newFile()?.name ?? "Attach a file (optional)");
17504
- _el$39.addEventListener("change", (e) => stageFile(e.currentTarget, setNewFile));
17505
- insert(_el$31, createComponent(Show, {
17611
+ var _el$31 = _tmpl$1812(), _el$32 = _el$31.firstChild, _el$33 = _el$32.firstChild, _el$34 = _el$32.nextSibling, _el$35 = _el$34.firstChild, _el$36 = _el$35.nextSibling, _el$37 = _el$36.nextSibling, _el$38 = _el$37.nextSibling, _el$39 = _el$38.nextSibling, _el$40 = _el$39.nextSibling, _el$41 = _el$40.nextSibling, _el$42 = _el$41.firstChild, _el$43 = _el$42.nextSibling, _el$44 = _el$43.nextSibling, _el$47 = _el$41.nextSibling;
17612
+ _el$31.addEventListener("submit", submitCompose);
17613
+ _el$33.$$click = () => setComposeStep("choice");
17614
+ insert(_el$36, createComponent(For, {
17615
+ each: SUPPORT_CATEGORIES,
17616
+ children: (c) => (() => {
17617
+ var _el$48 = _tmpl$1912();
17618
+ _el$48.$$click = () => setNewCategory((prev) => prev === c.key ? null : c.key);
17619
+ insert(_el$48, () => c.label);
17620
+ effect((_p$) => {
17621
+ var _v$1 = `msg-compose__category-chip${newCategory() === c.key ? " is-selected" : ""}`, _v$10 = `compose-category-${c.key}`, _v$11 = newCategory() === c.key;
17622
+ _v$1 !== _p$.e && className(_el$48, _p$.e = _v$1);
17623
+ _v$10 !== _p$.t && setAttribute(_el$48, "data-testid", _p$.t = _v$10);
17624
+ _v$11 !== _p$.a && setAttribute(_el$48, "aria-pressed", _p$.a = _v$11);
17625
+ return _p$;
17626
+ }, {
17627
+ e: void 0,
17628
+ t: void 0,
17629
+ a: void 0
17630
+ });
17631
+ return _el$48;
17632
+ })()
17633
+ }));
17634
+ _el$38.$$input = (e) => setNewSubject(e.currentTarget.value);
17635
+ _el$40.$$input = (e) => setNewBody(e.currentTarget.value);
17636
+ insert(_el$43, () => newFile()?.name ?? "Attach a file (optional)");
17637
+ _el$44.addEventListener("change", (e) => stageFile(e.currentTarget, setNewFile));
17638
+ insert(_el$34, createComponent(Show, {
17506
17639
  get when() {
17507
17640
  return newFile();
17508
17641
  },
17509
17642
  get children() {
17510
- var _el$40 = _tmpl$1415();
17511
- _el$40.$$click = () => setNewFile(null);
17512
- return _el$40;
17643
+ var _el$45 = _tmpl$1615();
17644
+ _el$45.$$click = () => setNewFile(null);
17645
+ return _el$45;
17513
17646
  }
17514
- }), _el$42);
17515
- insert(_el$31, createComponent(Show, {
17647
+ }), _el$47);
17648
+ insert(_el$34, createComponent(Show, {
17516
17649
  get when() {
17517
17650
  return attachError() || composeError();
17518
17651
  },
17519
17652
  get children() {
17520
- var _el$41 = _tmpl$1515();
17521
- insert(_el$41, () => attachError() ?? composeError());
17522
- return _el$41;
17653
+ var _el$46 = _tmpl$1715();
17654
+ insert(_el$46, () => attachError() ?? composeError());
17655
+ return _el$46;
17523
17656
  }
17524
- }), _el$42);
17525
- insert(_el$42, () => thread().startingThread() ? "Sending\u2026" : "Send");
17657
+ }), _el$47);
17658
+ insert(_el$47, () => thread().startingThread() ? "Sending\u2026" : "Send");
17659
+ effect((_p$) => {
17660
+ var _v$9 = SUPPORT_ATTACHMENT_MIME_TYPES.join(","), _v$0 = thread().startingThread() || !newSubject().trim() || !newBody().trim();
17661
+ _v$9 !== _p$.e && setAttribute(_el$44, "accept", _p$.e = _v$9);
17662
+ _v$0 !== _p$.t && (_el$47.disabled = _p$.t = _v$0);
17663
+ return _p$;
17664
+ }, {
17665
+ e: void 0,
17666
+ t: void 0
17667
+ });
17668
+ effect(() => _el$38.value = newSubject());
17669
+ effect(() => _el$40.value = newBody());
17670
+ return _el$31;
17671
+ })();
17672
+ const NewCareTeamThread = () => (() => {
17673
+ var _el$49 = _tmpl$2011(), _el$50 = _el$49.firstChild, _el$51 = _el$50.firstChild, _el$52 = _el$50.nextSibling, _el$53 = _el$52.firstChild, _el$54 = _el$53.nextSibling, _el$55 = _el$54.nextSibling, _el$56 = _el$55.firstChild, _el$57 = _el$56.nextSibling, _el$58 = _el$57.nextSibling, _el$61 = _el$55.nextSibling;
17674
+ _el$49.addEventListener("submit", submitCareCompose);
17675
+ _el$51.$$click = () => setComposeStep("choice");
17676
+ _el$54.$$input = (e) => setNewBody(e.currentTarget.value);
17677
+ insert(_el$57, () => newFile()?.name ?? "Attach a file (optional)");
17678
+ _el$58.addEventListener("change", (e) => stageFile(e.currentTarget, setNewFile));
17679
+ insert(_el$52, createComponent(Show, {
17680
+ get when() {
17681
+ return newFile();
17682
+ },
17683
+ get children() {
17684
+ var _el$59 = _tmpl$1615();
17685
+ _el$59.$$click = () => setNewFile(null);
17686
+ return _el$59;
17687
+ }
17688
+ }), _el$61);
17689
+ insert(_el$52, createComponent(Show, {
17690
+ get when() {
17691
+ return attachError() || composeError();
17692
+ },
17693
+ get children() {
17694
+ var _el$60 = _tmpl$1715();
17695
+ insert(_el$60, () => attachError() ?? composeError());
17696
+ return _el$60;
17697
+ }
17698
+ }), _el$61);
17699
+ insert(_el$61, () => thread().startingCareTeamThread() ? "Sending\u2026" : "Send");
17526
17700
  effect((_p$) => {
17527
- var _v$7 = SUPPORT_ATTACHMENT_MIME_TYPES.join(","), _v$8 = thread().startingThread() || !newSubject().trim() || !newBody().trim();
17528
- _v$7 !== _p$.e && setAttribute(_el$39, "accept", _p$.e = _v$7);
17529
- _v$8 !== _p$.t && (_el$42.disabled = _p$.t = _v$8);
17701
+ var _v$12 = SUPPORT_ATTACHMENT_MIME_TYPES.join(","), _v$13 = thread().startingCareTeamThread() || !newBody().trim();
17702
+ _v$12 !== _p$.e && setAttribute(_el$58, "accept", _p$.e = _v$12);
17703
+ _v$13 !== _p$.t && (_el$61.disabled = _p$.t = _v$13);
17530
17704
  return _p$;
17531
17705
  }, {
17532
17706
  e: void 0,
17533
17707
  t: void 0
17534
17708
  });
17535
- effect(() => _el$33.value = newSubject());
17536
- effect(() => _el$35.value = newBody());
17537
- return _el$28;
17709
+ effect(() => _el$54.value = newBody());
17710
+ return _el$49;
17711
+ })();
17712
+ const ChannelChoice = () => (() => {
17713
+ var _el$62 = _tmpl$2116(), _el$63 = _el$62.firstChild, _el$64 = _el$63.firstChild, _el$65 = _el$63.nextSibling, _el$66 = _el$65.firstChild, _el$67 = _el$66.nextSibling;
17714
+ _el$64.$$click = () => setComposing(false);
17715
+ _el$66.$$click = () => void pickCareTeam();
17716
+ _el$67.$$click = () => setComposeStep("support");
17717
+ return _el$62;
17718
+ })();
17719
+ const CareTeamNotice = () => (() => {
17720
+ var _el$68 = _tmpl$2213(), _el$69 = _el$68.firstChild, _el$70 = _el$69.firstChild, _el$71 = _el$69.nextSibling, _el$72 = _el$71.firstChild, _el$73 = _el$72.nextSibling;
17721
+ _el$70.$$click = () => setComposeStep("choice");
17722
+ _el$73.$$click = () => setComposeStep("support");
17723
+ return _el$68;
17538
17724
  })();
17539
17725
  const Thread = () => [(() => {
17540
- var _el$43 = _tmpl$1812(), _el$44 = _el$43.firstChild, _el$45 = _el$44.nextSibling, _el$46 = _el$45.firstChild, _el$47 = _el$46.nextSibling;
17541
- _el$44.$$click = () => thread().clearSelection();
17542
- insert(_el$46, () => selectedConvo()?.participantName ?? "Provider");
17543
- insert(_el$47, () => selectedConvo()?.participantRole ?? "Prescriber");
17544
- insert(_el$43, createComponent(Show, {
17726
+ var _el$74 = _tmpl$2412(), _el$75 = _el$74.firstChild, _el$76 = _el$75.nextSibling, _el$77 = _el$76.firstChild, _el$78 = _el$77.firstChild, _el$79 = _el$77.nextSibling;
17727
+ _el$75.$$click = () => thread().clearSelection();
17728
+ insert(_el$78, () => selectedConvo()?.participantName ?? "Provider");
17729
+ insert(_el$77, createComponent(Show, {
17730
+ get when() {
17731
+ return selectedConvo();
17732
+ },
17733
+ children: (convo) => createComponent(ChannelChip, {
17734
+ get source() {
17735
+ return convo().source;
17736
+ },
17737
+ get category() {
17738
+ return convo().category;
17739
+ }
17740
+ })
17741
+ }), null);
17742
+ insert(_el$79, () => selectedConvo()?.participantRole ?? "Prescriber");
17743
+ insert(_el$74, createComponent(Show, {
17545
17744
  get when() {
17546
17745
  return memo(() => selectedConvo()?.source === "support")() && selectedConvo()?.status === "closed";
17547
17746
  },
17548
17747
  get children() {
17549
- return _tmpl$1715();
17748
+ return _tmpl$2312();
17550
17749
  }
17551
17750
  }), null);
17552
- return _el$43;
17751
+ return _el$74;
17553
17752
  })(), (() => {
17554
- var _el$49 = _tmpl$1912(), _el$51 = _el$49.firstChild;
17555
- insert(_el$49, createComponent(Show, {
17753
+ var _el$81 = _tmpl$2512(), _el$83 = _el$81.firstChild;
17754
+ insert(_el$81, createComponent(Show, {
17556
17755
  get when() {
17557
17756
  return thread().loadingMessages();
17558
17757
  },
17559
17758
  get children() {
17560
- return _tmpl$2103();
17759
+ return _tmpl$448();
17561
17760
  }
17562
- }), _el$51);
17563
- insert(_el$49, createComponent(For, {
17761
+ }), _el$83);
17762
+ insert(_el$81, createComponent(For, {
17564
17763
  get each() {
17565
17764
  return thread().messages();
17566
17765
  },
17567
17766
  children: (msg) => createComponent(Bubble, {
17568
17767
  msg
17569
17768
  })
17570
- }), _el$51);
17769
+ }), _el$83);
17571
17770
  var _ref$ = endRef;
17572
- typeof _ref$ === "function" ? use(_ref$, _el$51) : endRef = _el$51;
17573
- return _el$49;
17771
+ typeof _ref$ === "function" ? use(_ref$, _el$83) : endRef = _el$83;
17772
+ return _el$81;
17574
17773
  })(), createComponent(Show, {
17575
17774
  get when() {
17576
17775
  return pendingFile() || attachError();
17577
17776
  },
17578
17777
  get children() {
17579
- var _el$52 = _tmpl$2116();
17580
- insert(_el$52, createComponent(Show, {
17778
+ var _el$84 = _tmpl$2710();
17779
+ insert(_el$84, createComponent(Show, {
17581
17780
  get when() {
17582
17781
  return pendingFile();
17583
17782
  },
17584
17783
  children: (file) => (() => {
17585
- var _el$61 = _tmpl$2412(), _el$62 = _el$61.firstChild, _el$63 = _el$62.nextSibling, _el$64 = _el$63.nextSibling;
17586
- insert(_el$61, () => file().name, _el$63);
17587
- insert(_el$63, () => formatFileSize(file().size));
17588
- _el$64.$$click = () => setPendingFile(null);
17589
- return _el$61;
17784
+ var _el$93 = _tmpl$306(), _el$94 = _el$93.firstChild, _el$95 = _el$94.nextSibling, _el$96 = _el$95.nextSibling;
17785
+ insert(_el$93, () => file().name, _el$95);
17786
+ insert(_el$95, () => formatFileSize(file().size));
17787
+ _el$96.$$click = () => setPendingFile(null);
17788
+ return _el$93;
17590
17789
  })()
17591
17790
  }), null);
17592
- insert(_el$52, createComponent(Show, {
17791
+ insert(_el$84, createComponent(Show, {
17593
17792
  get when() {
17594
17793
  return attachError();
17595
17794
  },
17596
17795
  get children() {
17597
- var _el$53 = _tmpl$2011();
17598
- insert(_el$53, attachError);
17599
- return _el$53;
17796
+ var _el$85 = _tmpl$2610();
17797
+ insert(_el$85, attachError);
17798
+ return _el$85;
17600
17799
  }
17601
17800
  }), null);
17602
- return _el$52;
17801
+ return _el$84;
17603
17802
  }
17604
17803
  }), (() => {
17605
- var _el$54 = _tmpl$2312(), _el$59 = _el$54.firstChild, _el$60 = _el$59.nextSibling;
17606
- insert(_el$54, createComponent(Show, {
17804
+ var _el$86 = _tmpl$2910(), _el$91 = _el$86.firstChild, _el$92 = _el$91.nextSibling;
17805
+ insert(_el$86, createComponent(Show, {
17607
17806
  get when() {
17608
17807
  return thread().selectedSource() === "support";
17609
17808
  },
17610
17809
  get children() {
17611
- var _el$55 = _tmpl$2213(), _el$56 = _el$55.firstChild, _el$57 = _el$56.nextSibling, _el$58 = _el$57.nextSibling;
17612
- _el$58.addEventListener("change", (e) => stageFile(e.currentTarget, setPendingFile));
17613
- effect(() => setAttribute(_el$58, "accept", SUPPORT_ATTACHMENT_MIME_TYPES.join(",")));
17614
- return _el$55;
17810
+ var _el$87 = _tmpl$2810(), _el$88 = _el$87.firstChild, _el$89 = _el$88.nextSibling, _el$90 = _el$89.nextSibling;
17811
+ _el$90.addEventListener("change", (e) => stageFile(e.currentTarget, setPendingFile));
17812
+ effect(() => setAttribute(_el$90, "accept", SUPPORT_ATTACHMENT_MIME_TYPES.join(",")));
17813
+ return _el$87;
17615
17814
  }
17616
- }), _el$59);
17617
- _el$59.$$keydown = handleKeyDown;
17618
- _el$59.$$input = (e) => thread().setDraft(e.currentTarget.value);
17619
- _el$60.$$click = handleSend;
17620
- insert(_el$60, () => thread().sending() ? "Sending\u2026" : "Send");
17621
- effect(() => _el$60.disabled = !canSend());
17622
- effect(() => _el$59.value = thread().draft());
17623
- return _el$54;
17815
+ }), _el$91);
17816
+ _el$91.$$keydown = handleKeyDown;
17817
+ _el$91.$$input = (e) => thread().setDraft(e.currentTarget.value);
17818
+ var _ref$2 = composerRef;
17819
+ typeof _ref$2 === "function" ? use(_ref$2, _el$91) : composerRef = _el$91;
17820
+ _el$92.$$click = handleSend;
17821
+ insert(_el$92, () => thread().sending() ? "Sending\u2026" : "Send");
17822
+ effect(() => _el$92.disabled = !canSend());
17823
+ effect(() => _el$91.value = thread().draft());
17824
+ return _el$86;
17624
17825
  })()];
17625
17826
  return (() => {
17626
- var _el$65 = _tmpl$2511(), _el$66 = _el$65.firstChild, _el$67 = _el$66.firstChild, _el$68 = _el$67.nextSibling;
17627
- insert(_el$67, createComponent(ConversationList, {}));
17628
- insert(_el$68, createComponent(Show, {
17827
+ var _el$97 = _tmpl$3112(), _el$98 = _el$97.firstChild, _el$99 = _el$98.firstChild, _el$100 = _el$99.nextSibling;
17828
+ insert(_el$99, createComponent(ConversationList, {}));
17829
+ insert(_el$100, createComponent(Show, {
17629
17830
  get when() {
17630
17831
  return composing();
17631
17832
  },
17632
17833
  get children() {
17633
- return createComponent(NewSupportThread, {});
17834
+ return createComponent(Switch, {
17835
+ get children() {
17836
+ return [createComponent(Match, {
17837
+ get when() {
17838
+ return composeStep() === "choice";
17839
+ },
17840
+ get children() {
17841
+ return createComponent(ChannelChoice, {});
17842
+ }
17843
+ }), createComponent(Match, {
17844
+ get when() {
17845
+ return composeStep() === "care";
17846
+ },
17847
+ get children() {
17848
+ return createComponent(NewCareTeamThread, {});
17849
+ }
17850
+ }), createComponent(Match, {
17851
+ get when() {
17852
+ return composeStep() === "care-notice";
17853
+ },
17854
+ get children() {
17855
+ return createComponent(CareTeamNotice, {});
17856
+ }
17857
+ }), createComponent(Match, {
17858
+ get when() {
17859
+ return composeStep() === "support";
17860
+ },
17861
+ get children() {
17862
+ return createComponent(NewSupportThread, {});
17863
+ }
17864
+ })];
17865
+ }
17866
+ });
17634
17867
  }
17635
17868
  }), null);
17636
- insert(_el$68, createComponent(Show, {
17869
+ insert(_el$100, createComponent(Show, {
17637
17870
  get when() {
17638
17871
  return !composing();
17639
17872
  },
@@ -17643,7 +17876,7 @@ function MessagesPanel(props) {
17643
17876
  return thread().selectedId() != null;
17644
17877
  },
17645
17878
  get fallback() {
17646
- return _tmpl$2610();
17879
+ return _tmpl$3210();
17647
17880
  },
17648
17881
  get children() {
17649
17882
  return createComponent(Thread, {});
@@ -17652,19 +17885,19 @@ function MessagesPanel(props) {
17652
17885
  }
17653
17886
  }), null);
17654
17887
  effect((_p$) => {
17655
- var _v$9 = `msg-panel__sidebar${threadOpen() ? " msg-panel__sidebar--hidden-mobile" : ""}`, _v$0 = `msg-panel__main${threadOpen() ? "" : " msg-panel__main--hidden-mobile"}`;
17656
- _v$9 !== _p$.e && className(_el$67, _p$.e = _v$9);
17657
- _v$0 !== _p$.t && className(_el$68, _p$.t = _v$0);
17888
+ var _v$14 = `msg-panel__sidebar${threadOpen() ? " msg-panel__sidebar--hidden-mobile" : ""}`, _v$15 = `msg-panel__main${threadOpen() ? "" : " msg-panel__main--hidden-mobile"}`;
17889
+ _v$14 !== _p$.e && className(_el$99, _p$.e = _v$14);
17890
+ _v$15 !== _p$.t && className(_el$100, _p$.t = _v$15);
17658
17891
  return _p$;
17659
17892
  }, {
17660
17893
  e: void 0,
17661
17894
  t: void 0
17662
17895
  });
17663
- return _el$65;
17896
+ return _el$97;
17664
17897
  })();
17665
17898
  }
17666
17899
  delegateEvents(["click", "input", "keydown"]);
17667
- var _tmpl$306 = /* @__PURE__ */ template(`<ul class=history-list data-testid=history-list>`);
17900
+ var _tmpl$307 = /* @__PURE__ */ template(`<ul class=history-list data-testid=history-list>`);
17668
17901
  var _tmpl$2104 = /* @__PURE__ */ template(`<div class=portal-state data-testid=history-error><p>We couldn't load your submitted surveys. Please try again in a moment.`);
17669
17902
  var _tmpl$365 = /* @__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.`);
17670
17903
  var _tmpl$449 = /* @__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>`);
@@ -17714,7 +17947,7 @@ function SurveyHistory() {
17714
17947
  return _tmpl$365();
17715
17948
  },
17716
17949
  get children() {
17717
- var _el$ = _tmpl$306();
17950
+ var _el$ = _tmpl$307();
17718
17951
  insert(_el$, createComponent(For, {
17719
17952
  get each() {
17720
17953
  return list();
@@ -17811,7 +18044,7 @@ function SurveyHistory() {
17811
18044
  delegateEvents(["click"]);
17812
18045
 
17813
18046
  // src/pages/MemberPortal.tsx
17814
- var _tmpl$307 = /* @__PURE__ */ template(`<span class=portal-item__live aria-label="In progress">`);
18047
+ var _tmpl$308 = /* @__PURE__ */ template(`<span class=portal-item__live aria-label="In progress">`);
17815
18048
  var _tmpl$2105 = /* @__PURE__ */ template(`<span>`);
17816
18049
  var _tmpl$366 = /* @__PURE__ */ template(`<button type=button><i aria-hidden=true></i><span class=portal-item__label>`);
17817
18050
  var _tmpl$450 = /* @__PURE__ */ template(`<div class=rx-others data-testid=rx-others><span class=lab-label>Other orders`);
@@ -17913,7 +18146,7 @@ function MemberPortal(props) {
17913
18146
  return memo(() => item.key === "tracker")() && inMotion();
17914
18147
  },
17915
18148
  get children() {
17916
- return _tmpl$307();
18149
+ return _tmpl$308();
17917
18150
  }
17918
18151
  }), null);
17919
18152
  insert(_el$, createComponent(Show, {
@@ -18219,7 +18452,7 @@ function MemberPortal(props) {
18219
18452
  })();
18220
18453
  }
18221
18454
  delegateEvents(["click"]);
18222
- var _tmpl$308 = /* @__PURE__ */ template(`<div style="padding:1rem 1.25rem;border-radius:var(--app-affiliate-radius);background:var(--app-affiliate-warning-bg);color:var(--app-affiliate-warning-fg);border:1px solid var(--app-affiliate-border)">Your affiliate account is awaiting approval. Once an admin activates it, your referral link will start earning commissions.`);
18455
+ var _tmpl$309 = /* @__PURE__ */ template(`<div style="padding:1rem 1.25rem;border-radius:var(--app-affiliate-radius);background:var(--app-affiliate-warning-bg);color:var(--app-affiliate-warning-fg);border:1px solid var(--app-affiliate-border)">Your affiliate account is awaiting approval. Once an admin activates it, your referral link will start earning commissions.`);
18223
18456
  var _tmpl$2106 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Overview`);
18224
18457
  var _tmpl$367 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Loading stats\u2026`);
18225
18458
  var _tmpl$451 = /* @__PURE__ */ template(`<div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));gap:1rem">`);
@@ -18262,7 +18495,7 @@ function AffiliateOverview() {
18262
18495
  return isPending();
18263
18496
  },
18264
18497
  get children() {
18265
- return _tmpl$308();
18498
+ return _tmpl$309();
18266
18499
  }
18267
18500
  }), null);
18268
18501
  insert(_el$, createComponent(Show, {
@@ -18291,9 +18524,9 @@ function AffiliateOverview() {
18291
18524
  return _el$;
18292
18525
  })();
18293
18526
  }
18294
- var _tmpl$309 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden"><table class=app-affiliate-table style=width:100%;border-collapse:collapse;font-size:0.875rem><thead><tr style=background:var(--app-affiliate-surface-light)><th>Date</th><th>Type</th><th>Order total</th><th>Commission</th><th>Status</th></tr></thead><tbody>`);
18527
+ var _tmpl$368 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden"><table class=app-affiliate-table style=width:100%;border-collapse:collapse;font-size:0.875rem><thead><tr style=background:var(--app-affiliate-surface-light)><th>Date</th><th>Type</th><th>Order total</th><th>Commission</th><th>Status</th></tr></thead><tbody>`);
18295
18528
  var _tmpl$2107 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Conversions`);
18296
- var _tmpl$368 = /* @__PURE__ */ template(`<div style="padding:2rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);color:var(--app-affiliate-fg-muted);text-align:center">No conversions yet. Share your referral link to start earning.`);
18529
+ var _tmpl$369 = /* @__PURE__ */ template(`<div style="padding:2rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);color:var(--app-affiliate-fg-muted);text-align:center">No conversions yet. Share your referral link to start earning.`);
18297
18530
  var _tmpl$452 = /* @__PURE__ */ template(`<span title="Override commission earned on a sub-affiliate's sale"style="margin-left:0.4rem;padding:0.1rem 0.45rem;border-radius:999px;font-size:0.65rem;font-weight:600;background:var(--app-affiliate-primary-soft);color:var(--app-affiliate-primary-soft-fg)">Override`);
18298
18531
  var _tmpl$547 = /* @__PURE__ */ template(`<tr style="border-top:1px solid var(--app-affiliate-border)"><td data-label=Date></td><td data-label=Type></td><td data-label="Order total"></td><td data-label=Commission style=color:var(--app-affiliate-fg);font-weight:600></td><td data-label=Status><span style="padding:0.2rem 0.6rem;border-radius:999px;font-size:0.75rem;font-weight:600">`);
18299
18532
  function formatMoney2(cents) {
@@ -18339,10 +18572,10 @@ function AffiliateConversions() {
18339
18572
  return (conversions() ?? []).length > 0;
18340
18573
  },
18341
18574
  get fallback() {
18342
- return _tmpl$368();
18575
+ return _tmpl$369();
18343
18576
  },
18344
18577
  get children() {
18345
- var _el$3 = _tmpl$309(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$9 = _el$8.nextSibling, _el$0 = _el$9.nextSibling, _el$1 = _el$0.nextSibling, _el$10 = _el$5.nextSibling;
18578
+ var _el$3 = _tmpl$368(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$9 = _el$8.nextSibling, _el$0 = _el$9.nextSibling, _el$1 = _el$0.nextSibling, _el$10 = _el$5.nextSibling;
18346
18579
  insert(_el$10, createComponent(For, {
18347
18580
  get each() {
18348
18581
  return conversions();
@@ -18424,9 +18657,9 @@ function td() {
18424
18657
  color: "var(--app-affiliate-fg)"
18425
18658
  };
18426
18659
  }
18427
- var _tmpl$369 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden"><table class=app-affiliate-table style=width:100%;border-collapse:collapse;font-size:0.875rem><thead><tr style=background:var(--app-affiliate-surface-light)><th>Code</th><th>Name</th><th>Status</th><th>Joined</th></tr></thead><tbody>`);
18660
+ var _tmpl$370 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden"><table class=app-affiliate-table style=width:100%;border-collapse:collapse;font-size:0.875rem><thead><tr style=background:var(--app-affiliate-surface-light)><th>Code</th><th>Name</th><th>Status</th><th>Joined</th></tr></thead><tbody>`);
18428
18661
  var _tmpl$2108 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Downline</h1><p style=margin:0;color:var(--app-affiliate-fg-muted);font-size:0.875rem>Affiliates you've referred. You earn an override commission on every qualifying sale they make \u2014 those show up as \u201COverride\u201D rows on your Conversions.`);
18429
- var _tmpl$370 = /* @__PURE__ */ template(`<div style="padding:2rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);color:var(--app-affiliate-fg-muted);text-align:center">No sub-affiliates yet.`);
18662
+ var _tmpl$371 = /* @__PURE__ */ template(`<div style="padding:2rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);color:var(--app-affiliate-fg-muted);text-align:center">No sub-affiliates yet.`);
18430
18663
  var _tmpl$453 = /* @__PURE__ */ template(`<tr style="border-top:1px solid var(--app-affiliate-border)"><td data-label=Code style=font-family:var(--app-affiliate-font-mono)></td><td data-label=Name></td><td data-label=Status><span style="padding:0.2rem 0.6rem;border-radius:999px;font-size:0.75rem;font-weight:600"></span></td><td data-label=Joined>`);
18431
18664
  function formatDate4(iso) {
18432
18665
  const d = new Date(iso);
@@ -18466,10 +18699,10 @@ function AffiliateDownline() {
18466
18699
  return (downline() ?? []).length > 0;
18467
18700
  },
18468
18701
  get fallback() {
18469
- return _tmpl$370();
18702
+ return _tmpl$371();
18470
18703
  },
18471
18704
  get children() {
18472
- var _el$4 = _tmpl$369(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$9.nextSibling, _el$1 = _el$0.nextSibling, _el$10 = _el$6.nextSibling;
18705
+ var _el$4 = _tmpl$370(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$9.nextSibling, _el$1 = _el$0.nextSibling, _el$10 = _el$6.nextSibling;
18473
18706
  insert(_el$10, createComponent(For, {
18474
18707
  get each() {
18475
18708
  return downline();
@@ -18538,9 +18771,9 @@ function td2() {
18538
18771
  color: "var(--app-affiliate-fg)"
18539
18772
  };
18540
18773
  }
18541
- var _tmpl$371 = /* @__PURE__ */ template(`<div style="padding:1.5rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);display:flex;flex-direction:column;gap:0.75rem"><div style=font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--app-affiliate-fg-muted)>Share this link</div><div style=display:flex;gap:0.5rem;align-items:stretch;flex-wrap:wrap><code style="flex:1;min-width:16rem;padding:0.75rem 1rem;background:var(--app-affiliate-surface-light);border-radius:var(--app-affiliate-radius-sm);font-family:var(--app-affiliate-font-mono);color:var(--app-affiliate-fg);word-break:break-all"></code><button type=button style="padding:0.75rem 1.25rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600;cursor:pointer"></button></div><div style=font-size:0.875rem;color:var(--app-affiliate-fg-muted)>Anyone who visits this URL has a tracking cookie set for the duration of your program. If they sign up and subscribe within the cookie window, you earn commission on the conversion.`);
18774
+ var _tmpl$372 = /* @__PURE__ */ template(`<div style="padding:1.5rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);display:flex;flex-direction:column;gap:0.75rem"><div style=font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--app-affiliate-fg-muted)>Share this link</div><div style=display:flex;gap:0.5rem;align-items:stretch;flex-wrap:wrap><code style="flex:1;min-width:16rem;padding:0.75rem 1rem;background:var(--app-affiliate-surface-light);border-radius:var(--app-affiliate-radius-sm);font-family:var(--app-affiliate-font-mono);color:var(--app-affiliate-fg);word-break:break-all"></code><button type=button style="padding:0.75rem 1.25rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600;cursor:pointer"></button></div><div style=font-size:0.875rem;color:var(--app-affiliate-fg-muted)>Anyone who visits this URL has a tracking cookie set for the duration of your program. If they sign up and subscribe within the cookie window, you earn commission on the conversion.`);
18542
18775
  var _tmpl$2109 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Referral link`);
18543
- var _tmpl$372 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Your referral link will appear here once your account is approved.`);
18776
+ var _tmpl$373 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Your referral link will appear here once your account is approved.`);
18544
18777
  function AffiliateReferralLink() {
18545
18778
  const {
18546
18779
  links
@@ -18571,10 +18804,10 @@ function AffiliateReferralLink() {
18571
18804
  return homepageLink();
18572
18805
  },
18573
18806
  get fallback() {
18574
- return _tmpl$372();
18807
+ return _tmpl$373();
18575
18808
  },
18576
18809
  get children() {
18577
- var _el$3 = _tmpl$371(), _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling; _el$5.nextSibling;
18810
+ var _el$3 = _tmpl$372(), _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling; _el$5.nextSibling;
18578
18811
  insert(_el$6, homepageLink);
18579
18812
  _el$7.$$click = copy;
18580
18813
  insert(_el$7, () => copied() ? "Copied" : "Copy");
@@ -18585,9 +18818,9 @@ function AffiliateReferralLink() {
18585
18818
  })();
18586
18819
  }
18587
18820
  delegateEvents(["click"]);
18588
- var _tmpl$373 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Account</h1><div><button type=button style="padding:0.75rem 1.25rem;background:transparent;color:var(--app-affiliate-fg);border:1px solid var(--app-affiliate-border-strong);border-radius:var(--app-affiliate-radius-sm);cursor:pointer;font-weight:500">Log out</button></div><div style=font-size:0.875rem;color:var(--app-affiliate-fg-muted)>To update your profile or payment details, contact your program administrator.`);
18821
+ var _tmpl$374 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Account</h1><div><button type=button style="padding:0.75rem 1.25rem;background:transparent;color:var(--app-affiliate-fg);border:1px solid var(--app-affiliate-border-strong);border-radius:var(--app-affiliate-radius-sm);cursor:pointer;font-weight:500">Log out</button></div><div style=font-size:0.875rem;color:var(--app-affiliate-fg-muted)>To update your profile or payment details, contact your program administrator.`);
18589
18822
  var _tmpl$2117 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Loading\u2026`);
18590
- var _tmpl$374 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden">`);
18823
+ var _tmpl$375 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden">`);
18591
18824
  var _tmpl$454 = /* @__PURE__ */ template(`<div style="display:flex;justify-content:space-between;align-items:center;padding:0.875rem 1.25rem;border-bottom:1px solid var(--app-affiliate-border)"><div style=font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--app-affiliate-fg-muted)></div><div style=color:var(--app-affiliate-fg)>`);
18592
18825
  var STATUS_LABEL2 = {
18593
18826
  pending: "Pending approval",
@@ -18623,7 +18856,7 @@ function AffiliateSettings() {
18623
18856
  value: a.paymentEmail ?? "\u2014"
18624
18857
  }];
18625
18858
  return (() => {
18626
- var _el$ = _tmpl$373(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild; _el$3.nextSibling;
18859
+ var _el$ = _tmpl$374(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild; _el$3.nextSibling;
18627
18860
  insert(_el$, createComponent(Show, {
18628
18861
  get when() {
18629
18862
  return affiliate();
@@ -18632,7 +18865,7 @@ function AffiliateSettings() {
18632
18865
  return _tmpl$2117();
18633
18866
  },
18634
18867
  children: (a) => (() => {
18635
- var _el$7 = _tmpl$374();
18868
+ var _el$7 = _tmpl$375();
18636
18869
  insert(_el$7, createComponent(For, {
18637
18870
  get each() {
18638
18871
  return rows(a());
@@ -18654,9 +18887,9 @@ function AffiliateSettings() {
18654
18887
  delegateEvents(["click"]);
18655
18888
 
18656
18889
  // src/pages/AffiliatePortal.tsx
18657
- var _tmpl$375 = /* @__PURE__ */ template(`<div class="app-affiliate-root app-affiliate-shell"style=position:sticky;background:var(--app-affiliate-bg);color:var(--app-affiliate-fg)><div class=app-affiliate-shell-header><button type=button class=app-affiliate-shell-menu-trigger aria-label="Open portal menu"><svg width=22 height=22 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round aria-hidden=true><line x1=3 y1=6 x2=21 y2=6></line><line x1=3 y1=12 x2=21 y2=12></line><line x1=3 y1=18 x2=21 y2=18></line></svg></button><span class=app-affiliate-shell-header-title></span></div><div class=app-affiliate-backdrop aria-hidden=true></div><aside class=app-affiliate-sidebar><div style=padding:1.25rem><h2 style="font-size:0.7rem;font-weight:500;color:var(--app-affiliate-fg-muted);text-transform:uppercase;letter-spacing:0.08em;margin:0 0 1rem">Affiliate Portal</h2><nav style=display:flex;flex-direction:column;gap:0.25rem></nav></div></aside><div class=app-affiliate-content>`);
18890
+ var _tmpl$376 = /* @__PURE__ */ template(`<div class="app-affiliate-root app-affiliate-shell"style=position:sticky;background:var(--app-affiliate-bg);color:var(--app-affiliate-fg)><div class=app-affiliate-shell-header><button type=button class=app-affiliate-shell-menu-trigger aria-label="Open portal menu"><svg width=22 height=22 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round aria-hidden=true><line x1=3 y1=6 x2=21 y2=6></line><line x1=3 y1=12 x2=21 y2=12></line><line x1=3 y1=18 x2=21 y2=18></line></svg></button><span class=app-affiliate-shell-header-title></span></div><div class=app-affiliate-backdrop aria-hidden=true></div><aside class=app-affiliate-sidebar><div style=padding:1.25rem><h2 style="font-size:0.7rem;font-weight:500;color:var(--app-affiliate-fg-muted);text-transform:uppercase;letter-spacing:0.08em;margin:0 0 1rem">Affiliate Portal</h2><nav style=display:flex;flex-direction:column;gap:0.25rem></nav></div></aside><div class=app-affiliate-content>`);
18658
18891
  var _tmpl$2118 = /* @__PURE__ */ template(`<span style=font-size:1rem;opacity:0.7;flex-shrink:0>`);
18659
- var _tmpl$376 = /* @__PURE__ */ template(`<button type=button style="display:flex;align-items:center;gap:0.75rem;padding:0.625rem 0.75rem;border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem;font-weight:500;text-align:left;border:none;cursor:pointer">`);
18892
+ var _tmpl$377 = /* @__PURE__ */ template(`<button type=button style="display:flex;align-items:center;gap:0.75rem;padding:0.625rem 0.75rem;border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem;font-weight:500;text-align:left;border:none;cursor:pointer">`);
18660
18893
  var _tmpl$455 = /* @__PURE__ */ template(`<div class=app-affiliate-root style=display:flex;align-items:center;justify-content:center;position:sticky;background:var(--app-affiliate-bg)><div role=status aria-label="Loading affiliate portal"style="width:1.75rem;height:1.75rem;border-radius:9999px;border:2px solid var(--app-affiliate-border);border-top-color:var(--app-affiliate-primary);animation:app-affiliate-gate-spin 0.8s linear infinite"></div><style>@keyframes app-affiliate-gate-spin { to { transform: rotate(360deg); } }`);
18661
18894
  var TAB_LABELS2 = {
18662
18895
  overview: "Overview",
@@ -18702,7 +18935,7 @@ function AffiliatePortal(props) {
18702
18935
  });
18703
18936
  },
18704
18937
  get children() {
18705
- var _el$ = _tmpl$375(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling, _el$6 = _el$5.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$6.nextSibling;
18938
+ var _el$ = _tmpl$376(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling, _el$6 = _el$5.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$6.nextSibling;
18706
18939
  _el$3.$$click = () => setDrawerOpen(true);
18707
18940
  insert(_el$4, () => TAB_LABELS2[currentTab()]);
18708
18941
  _el$5.$$click = () => setDrawerOpen(false);
@@ -18711,7 +18944,7 @@ function AffiliatePortal(props) {
18711
18944
  return orderedTabs();
18712
18945
  },
18713
18946
  children: (tab) => (() => {
18714
- var _el$1 = _tmpl$376();
18947
+ var _el$1 = _tmpl$377();
18715
18948
  _el$1.$$click = () => handleTabClick(tab);
18716
18949
  insert(_el$1, createComponent(Show, {
18717
18950
  get when() {
@@ -18814,11 +19047,11 @@ function AffiliateGateSpinner(props) {
18814
19047
  })();
18815
19048
  }
18816
19049
  delegateEvents(["click"]);
18817
- var _tmpl$377 = /* @__PURE__ */ template(`<div style=position:relative><input><button type=button style="position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;padding:0 0.75rem;background:transparent;border:none;color:var(--app-affiliate-fg-muted);cursor:pointer;font-size:0.75rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em">`);
19050
+ var _tmpl$378 = /* @__PURE__ */ template(`<div style=position:relative><input><button type=button style="position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;padding:0 0.75rem;background:transparent;border:none;color:var(--app-affiliate-fg-muted);cursor:pointer;font-size:0.75rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em">`);
18818
19051
  function AffiliatePasswordInput(props) {
18819
19052
  const [visible, setVisible] = createSignal(false);
18820
19053
  return (() => {
18821
- var _el$ = _tmpl$377(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
19054
+ var _el$ = _tmpl$378(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
18822
19055
  _el$2.$$input = (e) => props.onInput(e.currentTarget.value);
18823
19056
  _el$3.$$click = () => setVisible((v) => !v);
18824
19057
  insert(_el$3, () => visible() ? "Hide" : "Show");
@@ -18859,9 +19092,9 @@ function inputStyle() {
18859
19092
  delegateEvents(["input", "click"]);
18860
19093
 
18861
19094
  // src/pages/AffiliateRegister.tsx
18862
- var _tmpl$378 = /* @__PURE__ */ template(`<input type=text required autocomplete=given-name>`);
19095
+ var _tmpl$379 = /* @__PURE__ */ template(`<input type=text required autocomplete=given-name>`);
18863
19096
  var _tmpl$2119 = /* @__PURE__ */ template(`<input type=text required autocomplete=family-name>`);
18864
- var _tmpl$379 = /* @__PURE__ */ template(`<input type=email required autocomplete=email>`);
19097
+ var _tmpl$380 = /* @__PURE__ */ template(`<input type=email required autocomplete=email>`);
18865
19098
  var _tmpl$456 = /* @__PURE__ */ template(`<input type=text required minlength=4>`);
18866
19099
  var _tmpl$548 = /* @__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">`);
18867
19100
  var _tmpl$644 = /* @__PURE__ */ template(`<button type=button>Already have an account? Log in`);
@@ -18914,7 +19147,7 @@ function AffiliateRegister(props) {
18914
19147
  insert(_el$6, createComponent(Row, {
18915
19148
  label: "First name",
18916
19149
  get children() {
18917
- var _el$7 = _tmpl$378();
19150
+ var _el$7 = _tmpl$379();
18918
19151
  _el$7.$$input = (e) => setFirstName(e.currentTarget.value);
18919
19152
  effect((_$p) => style(_el$7, inputStyle2(), _$p));
18920
19153
  effect(() => _el$7.value = firstName());
@@ -18934,7 +19167,7 @@ function AffiliateRegister(props) {
18934
19167
  insert(_el$6, createComponent(Row, {
18935
19168
  label: "Email",
18936
19169
  get children() {
18937
- var _el$9 = _tmpl$379();
19170
+ var _el$9 = _tmpl$380();
18938
19171
  _el$9.$$input = (e) => setEmail(e.currentTarget.value);
18939
19172
  effect((_$p) => style(_el$9, inputStyle2(), _$p));
18940
19173
  effect(() => _el$9.value = email());
@@ -19053,9 +19286,9 @@ function linkStyle() {
19053
19286
  };
19054
19287
  }
19055
19288
  delegateEvents(["input", "click"]);
19056
- var _tmpl$380 = /* @__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">`);
19289
+ var _tmpl$381 = /* @__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">`);
19057
19290
  var _tmpl$2120 = /* @__PURE__ */ template(`<button type=button style=background:transparent;border:none;color:var(--app-affiliate-fg-muted);cursor:pointer;text-decoration:underline;font-size:0.875rem;padding:0;text-align:center>Forgot your password?`);
19058
- var _tmpl$381 = /* @__PURE__ */ template(`<button type=button style=background:transparent;border:none;color:var(--app-affiliate-primary-soft-fg);cursor:pointer;text-decoration:underline;font-size:0.875rem;padding:0;text-align:center>New affiliate? Apply`);
19291
+ var _tmpl$382 = /* @__PURE__ */ template(`<button type=button style=background:transparent;border:none;color:var(--app-affiliate-primary-soft-fg);cursor:pointer;text-decoration:underline;font-size:0.875rem;padding:0;text-align:center>New affiliate? Apply`);
19059
19292
  var _tmpl$457 = /* @__PURE__ */ template(`<div class=app-affiliate-root style="background:var(--app-affiliate-bg);color:var(--app-affiliate-fg);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem"><div style="width:100%;max-width:24rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);padding:2rem;display:flex;flex-direction:column;gap:1.25rem"><h1 style=font-family:var(--app-affiliate-font-display);margin:0;font-size:1.5rem>Affiliate login</h1><form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>Email</span><input type=email required autocomplete=email></label><label style=display:flex;flex-direction:column;gap:0.35rem><span>Password</span></label><button type=submit style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600">`);
19060
19293
  function AffiliateLogin(props) {
19061
19294
  const [email, setEmail] = createSignal("");
@@ -19092,7 +19325,7 @@ function AffiliateLogin(props) {
19092
19325
  return error();
19093
19326
  },
19094
19327
  get children() {
19095
- var _el$0 = _tmpl$380();
19328
+ var _el$0 = _tmpl$381();
19096
19329
  insert(_el$0, error);
19097
19330
  return _el$0;
19098
19331
  }
@@ -19113,7 +19346,7 @@ function AffiliateLogin(props) {
19113
19346
  return props.onNavigateRegister;
19114
19347
  },
19115
19348
  get children() {
19116
- var _el$11 = _tmpl$381();
19349
+ var _el$11 = _tmpl$382();
19117
19350
  _el$11.$$click = () => props.onNavigateRegister?.();
19118
19351
  return _el$11;
19119
19352
  }
@@ -19161,9 +19394,9 @@ function inputStyle3() {
19161
19394
  };
19162
19395
  }
19163
19396
  delegateEvents(["input", "click"]);
19164
- var _tmpl$382 = /* @__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">`);
19397
+ var _tmpl$383 = /* @__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">`);
19165
19398
  var _tmpl$2121 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>Email</span><input type=email required></label><button type=submit style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600">`);
19166
- var _tmpl$383 = /* @__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`);
19399
+ var _tmpl$384 = /* @__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`);
19167
19400
  var _tmpl$458 = /* @__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">`);
19168
19401
  function ForgotPasswordPage(props) {
19169
19402
  const [email, setEmail] = createSignal("");
@@ -19188,7 +19421,7 @@ function ForgotPasswordPage(props) {
19188
19421
  }
19189
19422
  }
19190
19423
  return (() => {
19191
- var _el$ = _tmpl$383(), _el$2 = _el$.firstChild; _el$2.firstChild;
19424
+ var _el$ = _tmpl$384(), _el$2 = _el$.firstChild; _el$2.firstChild;
19192
19425
  insert(_el$2, createComponent(Show, {
19193
19426
  get when() {
19194
19427
  return !message();
@@ -19209,7 +19442,7 @@ function ForgotPasswordPage(props) {
19209
19442
  return error();
19210
19443
  },
19211
19444
  get children() {
19212
- var _el$8 = _tmpl$382();
19445
+ var _el$8 = _tmpl$383();
19213
19446
  insert(_el$8, error);
19214
19447
  return _el$8;
19215
19448
  }
@@ -19259,9 +19492,9 @@ function inputStyle4() {
19259
19492
  };
19260
19493
  }
19261
19494
  delegateEvents(["input"]);
19262
- var _tmpl$384 = /* @__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">`);
19495
+ var _tmpl$385 = /* @__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">`);
19263
19496
  var _tmpl$2122 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>New password</span><input type=password required autocomplete=new-password></label><label style=display:flex;flex-direction:column;gap:0.35rem><span>Confirm password</span><input type=password required autocomplete=new-password></label><button type=submit style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600">`);
19264
- var _tmpl$385 = /* @__PURE__ */ template(`<div class=app-affiliate-root style="background:var(--app-affiliate-bg);color:var(--app-affiliate-fg);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem"><div style="width:100%;max-width:24rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);padding:2rem;display:flex;flex-direction:column;gap:1.25rem"><h1 style=font-family:var(--app-affiliate-font-display);margin:0;font-size:1.5rem>Choose a new password`);
19497
+ var _tmpl$386 = /* @__PURE__ */ template(`<div class=app-affiliate-root style="background:var(--app-affiliate-bg);color:var(--app-affiliate-fg);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem"><div style="width:100%;max-width:24rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);padding:2rem;display:flex;flex-direction:column;gap:1.25rem"><h1 style=font-family:var(--app-affiliate-font-display);margin:0;font-size:1.5rem>Choose a new password`);
19265
19498
  var _tmpl$459 = /* @__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">`);
19266
19499
  function queryParam(name) {
19267
19500
  if (typeof window === "undefined") return "";
@@ -19302,7 +19535,7 @@ function ResetPasswordPage(props) {
19302
19535
  }
19303
19536
  }
19304
19537
  return (() => {
19305
- var _el$ = _tmpl$385(), _el$2 = _el$.firstChild; _el$2.firstChild;
19538
+ var _el$ = _tmpl$386(), _el$2 = _el$.firstChild; _el$2.firstChild;
19306
19539
  insert(_el$2, createComponent(Show, {
19307
19540
  get when() {
19308
19541
  return !message();
@@ -19324,7 +19557,7 @@ function ResetPasswordPage(props) {
19324
19557
  return error();
19325
19558
  },
19326
19559
  get children() {
19327
- var _el$1 = _tmpl$384();
19560
+ var _el$1 = _tmpl$385();
19328
19561
  insert(_el$1, error);
19329
19562
  return _el$1;
19330
19563
  }
@@ -19379,9 +19612,9 @@ function inputStyle5() {
19379
19612
  };
19380
19613
  }
19381
19614
  delegateEvents(["input"]);
19382
- var _tmpl$386 = /* @__PURE__ */ template(`<div>`);
19615
+ var _tmpl$387 = /* @__PURE__ */ template(`<div>`);
19383
19616
  var _tmpl$2123 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>Email</span><input type=email required autocomplete=email></label><button type=submit>`);
19384
- var _tmpl$387 = /* @__PURE__ */ template(`<button type=button>Back to login`);
19617
+ var _tmpl$388 = /* @__PURE__ */ template(`<button type=button>Back to login`);
19385
19618
  var _tmpl$460 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Reset your password`);
19386
19619
  var _tmpl$549 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.9rem>`);
19387
19620
  function AffiliateForgotPassword(props) {
@@ -19427,7 +19660,7 @@ function AffiliateForgotPassword(props) {
19427
19660
  return error();
19428
19661
  },
19429
19662
  get children() {
19430
- var _el$8 = _tmpl$386();
19663
+ var _el$8 = _tmpl$387();
19431
19664
  insert(_el$8, error);
19432
19665
  effect((_$p) => style(_el$8, errorStyle(), _$p));
19433
19666
  return _el$8;
@@ -19456,7 +19689,7 @@ function AffiliateForgotPassword(props) {
19456
19689
  return props.onNavigateLogin;
19457
19690
  },
19458
19691
  get children() {
19459
- var _el$0 = _tmpl$387();
19692
+ var _el$0 = _tmpl$388();
19460
19693
  _el$0.$$click = () => props.onNavigateLogin?.();
19461
19694
  effect((_$p) => style(_el$0, linkStyle2(), _$p));
19462
19695
  return _el$0;
@@ -19562,9 +19795,9 @@ function linkStyle2() {
19562
19795
  };
19563
19796
  }
19564
19797
  delegateEvents(["input", "click"]);
19565
- var _tmpl$388 = /* @__PURE__ */ template(`<div>`);
19798
+ var _tmpl$389 = /* @__PURE__ */ template(`<div>`);
19566
19799
  var _tmpl$2124 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>New password</span></label><label style=display:flex;flex-direction:column;gap:0.35rem><span>Confirm new password</span></label><button type=submit>`);
19567
- var _tmpl$389 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Choose a new password`);
19800
+ var _tmpl$390 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Choose a new password`);
19568
19801
  var _tmpl$461 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.9rem>Your password has been reset. You can now log in with your new password.`);
19569
19802
  function queryParam2(name) {
19570
19803
  if (typeof window === "undefined") return "";
@@ -19609,7 +19842,7 @@ function AffiliateResetPassword(props) {
19609
19842
  }
19610
19843
  }
19611
19844
  return (() => {
19612
- var _el$ = _tmpl$389(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
19845
+ var _el$ = _tmpl$390(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
19613
19846
  insert(_el$2, createComponent(Show, {
19614
19847
  get when() {
19615
19848
  return !done();
@@ -19643,7 +19876,7 @@ function AffiliateResetPassword(props) {
19643
19876
  return error();
19644
19877
  },
19645
19878
  get children() {
19646
- var _el$9 = _tmpl$388();
19879
+ var _el$9 = _tmpl$389();
19647
19880
  insert(_el$9, error);
19648
19881
  effect((_$p) => style(_el$9, errorStyle2(), _$p));
19649
19882
  return _el$9;
@@ -19742,5 +19975,5 @@ function primaryButtonStyle2(submitting) {
19742
19975
  }
19743
19976
 
19744
19977
  export { AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod };
19745
- //# sourceMappingURL=JXPPJF2V.js.map
19746
- //# sourceMappingURL=JXPPJF2V.js.map
19978
+ //# sourceMappingURL=XKCIXSN4.js.map
19979
+ //# sourceMappingURL=XKCIXSN4.js.map