@apextelemed/partner-core 0.1.0 → 0.2.0

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 (36) hide show
  1. package/README.md +10 -6
  2. package/dist/api/index.d.ts +1 -1
  3. package/dist/api/index.js +1 -1
  4. package/dist/api/index.jsx +1 -1
  5. package/dist/chunk/{V42CGY2S.jsx → DUVW24DM.jsx} +1 -1
  6. package/dist/chunk/{DHII7L5Y.js → EIXV4DCU.js} +5 -5
  7. package/dist/chunk/{DHII7L5Y.js.map → EIXV4DCU.js.map} +1 -1
  8. package/dist/chunk/{3VEOP7TZ.jsx → FJZHH5T4.jsx} +22 -6
  9. package/dist/chunk/{E7722UPF.js → FWUBNK42.js} +3 -3
  10. package/dist/chunk/{E7722UPF.js.map → FWUBNK42.js.map} +1 -1
  11. package/dist/chunk/{ZMOG2IIC.js → KFJXIKD4.js} +31 -10
  12. package/dist/chunk/KFJXIKD4.js.map +1 -0
  13. package/dist/chunk/{KZZSQ7LP.jsx → KMHMT6YP.jsx} +2 -2
  14. package/dist/chunk/{KNTZTYXE.jsx → MEWFN6IW.jsx} +30 -9
  15. package/dist/chunk/{HLXKWRRW.js → OEXSGX5F.js} +103 -86
  16. package/dist/chunk/OEXSGX5F.js.map +1 -0
  17. package/dist/chunk/{L46OKCKG.jsx → SNAV6DII.jsx} +4 -4
  18. package/dist/chunk/{DY5BJ6UG.js → UNAI6NBV.js} +2 -2
  19. package/dist/chunk/UNAI6NBV.js.map +1 -0
  20. package/dist/{client-BzSg2DEK.d.ts → client-CWYoMmla.d.ts} +11 -0
  21. package/dist/flows/index.d.ts +55 -7
  22. package/dist/flows/index.js +4 -4
  23. package/dist/flows/index.jsx +4 -4
  24. package/dist/index/index.d.ts +1 -1
  25. package/dist/index/index.js +5 -5
  26. package/dist/index/index.jsx +5 -5
  27. package/dist/pages/index.d.ts +1 -1
  28. package/dist/pages/index.js +4 -4
  29. package/dist/pages/index.jsx +4 -4
  30. package/dist/stores/index.d.ts +1 -1
  31. package/dist/stores/index.js +2 -2
  32. package/dist/stores/index.jsx +2 -2
  33. package/package.json +1 -1
  34. package/dist/chunk/DY5BJ6UG.js.map +0 -1
  35. package/dist/chunk/HLXKWRRW.js.map +0 -1
  36. package/dist/chunk/ZMOG2IIC.js.map +0 -1
@@ -12,7 +12,7 @@ import {
12
12
  setAffiliateTokens,
13
13
  setTokens,
14
14
  usersApi
15
- } from "./V42CGY2S.jsx";
15
+ } from "./DUVW24DM.jsx";
16
16
  import {
17
17
  getConfig,
18
18
  onConfigured
@@ -406,4 +406,4 @@ export {
406
406
  affiliateAuth_default,
407
407
  medication_default
408
408
  };
409
- //# sourceMappingURL=KZZSQ7LP.jsx.map
409
+ //# sourceMappingURL=KMHMT6YP.jsx.map
@@ -12,7 +12,7 @@ import {
12
12
  auth_default,
13
13
  cart_default,
14
14
  medication_default
15
- } from "./KZZSQ7LP.jsx";
15
+ } from "./KMHMT6YP.jsx";
16
16
  import {
17
17
  ApiError,
18
18
  addressesApi,
@@ -27,7 +27,7 @@ import {
27
27
  subscriptionsApi,
28
28
  supportApi,
29
29
  usersApi
30
- } from "./V42CGY2S.jsx";
30
+ } from "./DUVW24DM.jsx";
31
31
  import {
32
32
  getConfig
33
33
  } from "./LDZIUFDM.jsx";
@@ -2351,19 +2351,35 @@ function softRelative(date, now) {
2351
2351
  const weeks = Math.round(diffDays / 7);
2352
2352
  return `in ${weeks} weeks`;
2353
2353
  }
2354
+ function parseBackendDate(value) {
2355
+ if (!value) return null;
2356
+ const dateOnly = /^(\d{4})-(\d{2})-(\d{2})$/.exec(value);
2357
+ const d = dateOnly ? new Date(Number(dateOnly[1]), Number(dateOnly[2]) - 1, Number(dateOnly[3])) : new Date(value);
2358
+ return Number.isNaN(d.getTime()) ? null : d;
2359
+ }
2354
2360
  function buildRefillView(sub, now = Date.now()) {
2355
- if (!sub || !sub.currentPeriodEnd) return null;
2361
+ if (!sub) return null;
2356
2362
  if (sub.status === "cancelled" || sub.status === "expired" || sub.status === "suspended") {
2357
2363
  return null;
2358
2364
  }
2359
- const periodEnd = new Date(sub.currentPeriodEnd);
2360
- if (Number.isNaN(periodEnd.getTime())) return null;
2361
2365
  const cycleLength = sub.intervalDays && sub.intervalDays > 0 ? sub.intervalDays : 30;
2366
+ const fillDate = parseBackendDate(sub.nextFillDate);
2367
+ if (!fillDate && sub.checkInStatus) {
2368
+ const events2 = [
2369
+ { key: "survey", label: "Check-in due", date: null, relative: "after your next fill", nearest: false },
2370
+ { key: "fill", label: "Next refill", date: null, relative: "once your order ships", nearest: true },
2371
+ { key: "shipment", label: "Next shipment", date: null, relative: "once your order ships", nearest: false }
2372
+ ];
2373
+ return { events: events2, cycleDay: 0, cycleLength, progress: 0, precise: true, pendingFill: true };
2374
+ }
2375
+ const periodEnd = fillDate ?? parseBackendDate(sub.currentPeriodEnd);
2376
+ if (!periodEnd) return null;
2377
+ const precise = fillDate !== null;
2362
2378
  const periodStart = new Date(periodEnd.getTime() - cycleLength * DAY_MS);
2363
2379
  const elapsed = (now - periodStart.getTime()) / DAY_MS;
2364
2380
  const cycleDay = Math.min(cycleLength, Math.max(1, Math.round(elapsed)));
2365
2381
  const progress = Math.min(1, Math.max(0, (now - periodStart.getTime()) / (cycleLength * DAY_MS)));
2366
- const surveyDate = new Date(periodEnd.getTime() - 7 * DAY_MS);
2382
+ const surveyDate = parseBackendDate(sub.checkInDueAt) ?? new Date(periodEnd.getTime() - 7 * DAY_MS);
2367
2383
  const events = [
2368
2384
  { key: "survey", label: "Check-in due", date: surveyDate, relative: "", nearest: false },
2369
2385
  { key: "fill", label: "Next refill", date: periodEnd, relative: "", nearest: false },
@@ -2373,7 +2389,7 @@ function buildRefillView(sub, now = Date.now()) {
2373
2389
  const upcoming = events.filter((e) => e.date && e.date.getTime() >= now);
2374
2390
  const nearest = upcoming.sort((a, b) => a.date.getTime() - b.date.getTime())[0] || events[0];
2375
2391
  nearest.nearest = true;
2376
- return { events, cycleDay, cycleLength, progress };
2392
+ return { events, cycleDay, cycleLength, progress, precise, pendingFill: false };
2377
2393
  }
2378
2394
  function formatStageDate(value) {
2379
2395
  if (!value) return "";
@@ -2461,7 +2477,12 @@ function useMemberPortalData() {
2461
2477
  return {
2462
2478
  status: s.status,
2463
2479
  currentPeriodEnd: s.currentPeriodEnd ?? null,
2464
- intervalDays: s.intervalDays
2480
+ intervalDays: s.intervalDays,
2481
+ // The real schedule. Must be forwarded, or buildRefillView silently falls
2482
+ // back to estimating off the billing mirror.
2483
+ nextFillDate: s.nextFillDate ?? null,
2484
+ checkInDueAt: s.checkInDueAt ?? null,
2485
+ checkInStatus: s.checkInStatus ?? null
2465
2486
  };
2466
2487
  };
2467
2488
  return {
@@ -3312,4 +3333,4 @@ export {
3312
3333
  resolveSurveyV2DrugIntent,
3313
3334
  useSurveyV2Flow
3314
3335
  };
3315
- //# sourceMappingURL=KNTZTYXE.jsx.map
3336
+ //# sourceMappingURL=MEWFN6IW.jsx.map
@@ -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, formatConversationTime, buildTrackerView, formatMessageTime, formatEventDate, formatStageDate, isImageAttachment, buildRefillView } from './ZMOG2IIC.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, formatConversationTime, buildTrackerView, formatMessageTime, formatEventDate, formatStageDate, isImageAttachment, buildRefillView } from './KFJXIKD4.js';
3
3
  import { fetchFunnelConfig } from './DS4E7FAI.js';
4
4
  import { usePrimitives } from './67KHO66G.js';
5
- import { auth_default, cart_default, affiliateAuth_default } from './E7722UPF.js';
6
- import { usersApi, adminApi, membersApi, affiliatePortalApi, authApi, adminAffiliatesApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, apiFetch, apexApi, subscriptionsApi, ApiError } from './DY5BJ6UG.js';
5
+ import { auth_default, cart_default, affiliateAuth_default } from './FWUBNK42.js';
6
+ import { usersApi, adminApi, membersApi, affiliatePortalApi, authApi, adminAffiliatesApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, apiFetch, apexApi, subscriptionsApi, ApiError } from './UNAI6NBV.js';
7
7
  import { delegateEvents, createComponent, insert, memo, effect, setStyleProperty, mergeProps, use, addEventListener, style, setAttribute, className, Dynamic, template } from 'solid-js/web';
8
8
  import { createEffect, on, Show, For, createResource, createSignal, createMemo, Index, ErrorBoundary, Switch, Match, onMount } from 'solid-js';
9
9
  import { isQuestionVisible } from '@apextelemed/survey-core';
@@ -13405,21 +13405,23 @@ function UpdatePaymentMethod(props) {
13405
13405
  }
13406
13406
  var _tmpl$199 = /* @__PURE__ */ template(`<a class=ship__track target=_blank rel="noopener noreferrer">Track<!> \u2197`);
13407
13407
  var _tmpl$266 = /* @__PURE__ */ template(`<div class=ship><p class=ship__eta></p><div class=ship__chip-row><button type=button class=ship__chip><span class=ship__num></span><i class="ph ph-copy ship__copy-icon"aria-hidden=true></i><span class=ship__copied>Copied \u2713</span></button></div><span class=portal-sr-only role=status aria-live=polite>`);
13408
- var _tmpl$343 = /* @__PURE__ */ template(`<div class=refill data-testid=refill-strip><div class=refill__head><span class=lab-label>Your plan</span><span class=refill__cycle>Day <!> of </span></div><div class=refill__rail>`);
13409
- var _tmpl$434 = /* @__PURE__ */ template(`<div><span class=refill__dot aria-hidden=true></span><span class="lab-label refill__label"></span><span class=refill__date></span><span class=refill__rel>`);
13410
- var _tmpl$529 = /* @__PURE__ */ template(`<a class=refill__action>Complete check-in \u2192`);
13411
- var _tmpl$627 = /* @__PURE__ */ template(`<div class=tracker><span class=lab-label>Your order</span><div class=tracker__empty data-testid=tracker-empty><div class=tracker__empty-mark aria-hidden=true><span class=tracker__empty-bead></span></div><h2 class=tracker__empty-title>Your journey starts here</h2><p class=tracker__empty-text>Once you complete your intake, you\u2019ll watch every step of your prescription come together right here \u2014 from review to delivery.</p><a class="portal-btn portal-btn--primary">Start your intake`);
13412
- var _tmpl$724 = /* @__PURE__ */ template(`<span class=thread__halo aria-hidden=true>`);
13413
- var _tmpl$824 = /* @__PURE__ */ template(`<time class=thread__time>`);
13414
- var _tmpl$923 = /* @__PURE__ */ template(`<h2 class=thread__hero>`);
13415
- var _tmpl$020 = /* @__PURE__ */ template(`<p class=thread__caption>`);
13416
- var _tmpl$1100 = /* @__PURE__ */ template(`<button type=button class="portal-btn portal-btn--primary thread__action">Message your care team`);
13417
- var _tmpl$1015 = /* @__PURE__ */ template(`<button type=button class="portal-btn portal-btn--ghost thread__action">Talk to your provider`);
13418
- var _tmpl$1117 = /* @__PURE__ */ template(`<li><div class=thread__rail><span class=thread__bead></span></div><div><div class=thread__top><span class="lab-label thread__label">`);
13419
- var _tmpl$1213 = /* @__PURE__ */ template(`<p class="thread__caption thread__await"data-testid=await-messaging>Your care team is reviewing your request. You\u2019ll be able to message them here once your consult begins.`);
13420
- var _tmpl$1312 = /* @__PURE__ */ template(`<p class="thread__caption thread__await"data-testid=await-messaging>Your provider will follow up with you about next steps.`);
13421
- var _tmpl$1412 = /* @__PURE__ */ template(`<span class=tracker__dose> \xB7 `);
13422
- var _tmpl$1511 = /* @__PURE__ */ template(`<div class=tracker data-testid=order-tracker><div class=tracker__intro><span class=lab-label>Your order</span><p class=tracker__med></p></div><ol>`);
13408
+ var _tmpl$343 = /* @__PURE__ */ template(`<span class=refill__cycle>Day <!> of `);
13409
+ var _tmpl$434 = /* @__PURE__ */ template(`<div class=refill data-testid=refill-strip><div class=refill__head><span class=lab-label>Your plan</span></div><div class=refill__rail>`);
13410
+ var _tmpl$529 = /* @__PURE__ */ template(`<span class=refill__cycle>Preparing your next fill`);
13411
+ var _tmpl$627 = /* @__PURE__ */ template(`<div><span class=refill__dot aria-hidden=true></span><span class="lab-label refill__label"></span><span class=refill__date></span><span class=refill__rel>`);
13412
+ var _tmpl$724 = /* @__PURE__ */ template(`<a class=refill__action>Complete check-in \u2192`);
13413
+ var _tmpl$824 = /* @__PURE__ */ template(`<div class=tracker><span class=lab-label>Your order</span><div class=tracker__empty data-testid=tracker-empty><div class=tracker__empty-mark aria-hidden=true><span class=tracker__empty-bead></span></div><h2 class=tracker__empty-title>Your journey starts here</h2><p class=tracker__empty-text>Once you complete your intake, you\u2019ll watch every step of your prescription come together right here \u2014 from review to delivery.</p><a class="portal-btn portal-btn--primary">Start your intake`);
13414
+ var _tmpl$923 = /* @__PURE__ */ template(`<span class=thread__halo aria-hidden=true>`);
13415
+ var _tmpl$020 = /* @__PURE__ */ template(`<time class=thread__time>`);
13416
+ var _tmpl$1100 = /* @__PURE__ */ template(`<h2 class=thread__hero>`);
13417
+ var _tmpl$1015 = /* @__PURE__ */ template(`<p class=thread__caption>`);
13418
+ var _tmpl$1117 = /* @__PURE__ */ template(`<button type=button class="portal-btn portal-btn--primary thread__action">Message your care team`);
13419
+ var _tmpl$1213 = /* @__PURE__ */ template(`<button type=button class="portal-btn portal-btn--ghost thread__action">Talk to your provider`);
13420
+ var _tmpl$1312 = /* @__PURE__ */ template(`<li><div class=thread__rail><span class=thread__bead></span></div><div><div class=thread__top><span class="lab-label thread__label">`);
13421
+ var _tmpl$1412 = /* @__PURE__ */ template(`<p class="thread__caption thread__await"data-testid=await-messaging>Your care team is reviewing your request. You\u2019ll be able to message them here once your consult begins.`);
13422
+ var _tmpl$1511 = /* @__PURE__ */ template(`<p class="thread__caption thread__await"data-testid=await-messaging>Your provider will follow up with you about next steps.`);
13423
+ var _tmpl$1611 = /* @__PURE__ */ template(`<span class=tracker__dose> \xB7 `);
13424
+ var _tmpl$1711 = /* @__PURE__ */ template(`<div class=tracker data-testid=order-tracker><div class=tracker__intro><span class=lab-label>Your order</span><p class=tracker__med></p></div><ol>`);
13423
13425
  function TrackingChip(props) {
13424
13426
  let copied;
13425
13427
  const [announce, setAnnounce] = createSignal("");
@@ -13468,31 +13470,46 @@ function OrderTracker(props) {
13468
13470
  return refill();
13469
13471
  },
13470
13472
  children: (r) => (() => {
13471
- var _el$11 = _tmpl$343(), _el$12 = _el$11.firstChild, _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling, _el$15 = _el$14.firstChild, _el$17 = _el$15.nextSibling; _el$17.nextSibling; var _el$18 = _el$12.nextSibling;
13472
- insert(_el$14, () => r().cycleDay, _el$17);
13473
- insert(_el$14, () => r().cycleLength, null);
13473
+ var _el$11 = _tmpl$434(), _el$12 = _el$11.firstChild; _el$12.firstChild; var _el$18 = _el$12.nextSibling;
13474
+ insert(_el$12, createComponent(Show, {
13475
+ get when() {
13476
+ return !r().pendingFill;
13477
+ },
13478
+ get fallback() {
13479
+ return _tmpl$529();
13480
+ },
13481
+ get children() {
13482
+ var _el$14 = _tmpl$343(), _el$15 = _el$14.firstChild, _el$17 = _el$15.nextSibling; _el$17.nextSibling;
13483
+ insert(_el$14, () => r().cycleDay, _el$17);
13484
+ insert(_el$14, () => r().cycleLength, null);
13485
+ return _el$14;
13486
+ }
13487
+ }), null);
13474
13488
  insert(_el$18, createComponent(For, {
13475
13489
  get each() {
13476
13490
  return r().events;
13477
13491
  },
13478
13492
  children: (e) => (() => {
13479
- var _el$19 = _tmpl$434(), _el$20 = _el$19.firstChild, _el$21 = _el$20.nextSibling, _el$22 = _el$21.nextSibling, _el$23 = _el$22.nextSibling;
13480
- insert(_el$21, () => e.label);
13481
- insert(_el$22, () => formatEventDate(e.date));
13482
- insert(_el$23, () => e.relative);
13483
- insert(_el$19, createComponent(Show, {
13493
+ var _el$20 = _tmpl$627(), _el$21 = _el$20.firstChild, _el$22 = _el$21.nextSibling, _el$23 = _el$22.nextSibling, _el$24 = _el$23.nextSibling;
13494
+ insert(_el$22, () => e.label);
13495
+ insert(_el$23, () => formatEventDate(e.date));
13496
+ insert(_el$24, (() => {
13497
+ var _c$2 = memo(() => !!(!r().precise && e.date));
13498
+ return () => _c$2() ? `around ${e.relative}` : e.relative;
13499
+ })());
13500
+ insert(_el$20, createComponent(Show, {
13484
13501
  get when() {
13485
13502
  return memo(() => e.key === "survey")() ? props.pendingRenewalId : null;
13486
13503
  },
13487
13504
  keyed: true,
13488
13505
  children: (rid) => (() => {
13489
- var _el$24 = _tmpl$529();
13490
- effect(() => setAttribute(_el$24, "href", props.renewHref(rid)));
13491
- return _el$24;
13506
+ var _el$25 = _tmpl$724();
13507
+ effect(() => setAttribute(_el$25, "href", props.renewHref(rid)));
13508
+ return _el$25;
13492
13509
  })()
13493
13510
  }), null);
13494
- effect(() => className(_el$19, `refill__stone${e.nearest ? " is-near" : ""}`));
13495
- return _el$19;
13511
+ effect(() => className(_el$20, `refill__stone${e.nearest ? " is-near" : ""}`));
13512
+ return _el$20;
13496
13513
  })()
13497
13514
  }));
13498
13515
  effect((_$p) => setStyleProperty(_el$18, "--p", String(r().progress)));
@@ -13500,56 +13517,56 @@ function OrderTracker(props) {
13500
13517
  })()
13501
13518
  });
13502
13519
  const EmptyState2 = () => (() => {
13503
- var _el$25 = _tmpl$627(), _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling, _el$28 = _el$27.firstChild, _el$29 = _el$28.nextSibling, _el$30 = _el$29.nextSibling, _el$31 = _el$30.nextSibling;
13504
- insert(_el$25, createComponent(RefillStrip, {}), _el$27);
13505
- effect(() => setAttribute(_el$31, "href", props.intakeHref));
13506
- return _el$25;
13520
+ var _el$26 = _tmpl$824(), _el$27 = _el$26.firstChild, _el$28 = _el$27.nextSibling, _el$29 = _el$28.firstChild, _el$30 = _el$29.nextSibling, _el$31 = _el$30.nextSibling, _el$32 = _el$31.nextSibling;
13521
+ insert(_el$26, createComponent(RefillStrip, {}), _el$28);
13522
+ effect(() => setAttribute(_el$32, "href", props.intakeHref));
13523
+ return _el$26;
13507
13524
  })();
13508
13525
  const Stage = (sp) => {
13509
13526
  const s = sp.stage;
13510
13527
  const isActive = s.state === "active" || s.state === "consult" || s.state === "denied";
13511
13528
  return (() => {
13512
- var _el$32 = _tmpl$1117(), _el$33 = _el$32.firstChild, _el$34 = _el$33.firstChild, _el$36 = _el$33.nextSibling, _el$37 = _el$36.firstChild, _el$38 = _el$37.firstChild;
13513
- setAttribute(_el$32, "data-active", isActive ? "true" : void 0);
13514
- insert(_el$34, createComponent(Show, {
13529
+ var _el$33 = _tmpl$1312(), _el$34 = _el$33.firstChild, _el$35 = _el$34.firstChild, _el$37 = _el$34.nextSibling, _el$38 = _el$37.firstChild, _el$39 = _el$38.firstChild;
13530
+ setAttribute(_el$33, "data-active", isActive ? "true" : void 0);
13531
+ insert(_el$35, createComponent(Show, {
13515
13532
  when: isActive,
13516
13533
  get children() {
13517
- return _tmpl$724();
13534
+ return _tmpl$923();
13518
13535
  }
13519
13536
  }));
13520
- className(_el$36, `thread__content${isActive ? " thread__content--active" : ""}`);
13521
- insert(_el$38, () => s.label);
13522
- insert(_el$37, createComponent(Show, {
13537
+ className(_el$37, `thread__content${isActive ? " thread__content--active" : ""}`);
13538
+ insert(_el$39, () => s.label);
13539
+ insert(_el$38, createComponent(Show, {
13523
13540
  get when() {
13524
13541
  return s.timestamp;
13525
13542
  },
13526
13543
  get children() {
13527
- var _el$39 = _tmpl$824();
13528
- insert(_el$39, () => formatStageDate(s.timestamp));
13529
- return _el$39;
13544
+ var _el$40 = _tmpl$020();
13545
+ insert(_el$40, () => formatStageDate(s.timestamp));
13546
+ return _el$40;
13530
13547
  }
13531
13548
  }), null);
13532
- insert(_el$36, createComponent(Show, {
13549
+ insert(_el$37, createComponent(Show, {
13533
13550
  get when() {
13534
13551
  return s.heroWord;
13535
13552
  },
13536
13553
  get children() {
13537
- var _el$40 = _tmpl$923();
13538
- insert(_el$40, () => s.heroWord);
13539
- return _el$40;
13554
+ var _el$41 = _tmpl$1100();
13555
+ insert(_el$41, () => s.heroWord);
13556
+ return _el$41;
13540
13557
  }
13541
13558
  }), null);
13542
- insert(_el$36, createComponent(Show, {
13559
+ insert(_el$37, createComponent(Show, {
13543
13560
  get when() {
13544
13561
  return s.subCaption;
13545
13562
  },
13546
13563
  get children() {
13547
- var _el$41 = _tmpl$020();
13548
- insert(_el$41, () => s.subCaption);
13549
- return _el$41;
13564
+ var _el$42 = _tmpl$1015();
13565
+ insert(_el$42, () => s.subCaption);
13566
+ return _el$42;
13550
13567
  }
13551
13568
  }), null);
13552
- insert(_el$36, createComponent(Show, {
13569
+ insert(_el$37, createComponent(Show, {
13553
13570
  get when() {
13554
13571
  return memo(() => !!(s.state === "active" && s.key === "shipped"))() && sp.view.shipment;
13555
13572
  },
@@ -13570,7 +13587,7 @@ function OrderTracker(props) {
13570
13587
  });
13571
13588
  }
13572
13589
  }), null);
13573
- insert(_el$36, createComponent(Show, {
13590
+ insert(_el$37, createComponent(Show, {
13574
13591
  get when() {
13575
13592
  return s.state === "consult";
13576
13593
  },
@@ -13580,17 +13597,17 @@ function OrderTracker(props) {
13580
13597
  return props.messagingEnabled;
13581
13598
  },
13582
13599
  get fallback() {
13583
- return _tmpl$1213();
13600
+ return _tmpl$1412();
13584
13601
  },
13585
13602
  get children() {
13586
- var _el$42 = _tmpl$1100();
13587
- _el$42.$$click = () => props.onOpenMessages();
13588
- return _el$42;
13603
+ var _el$43 = _tmpl$1117();
13604
+ _el$43.$$click = () => props.onOpenMessages();
13605
+ return _el$43;
13589
13606
  }
13590
13607
  });
13591
13608
  }
13592
13609
  }), null);
13593
- insert(_el$36, createComponent(Show, {
13610
+ insert(_el$37, createComponent(Show, {
13594
13611
  get when() {
13595
13612
  return s.state === "denied";
13596
13613
  },
@@ -13600,28 +13617,28 @@ function OrderTracker(props) {
13600
13617
  return props.messagingEnabled;
13601
13618
  },
13602
13619
  get fallback() {
13603
- return _tmpl$1312();
13620
+ return _tmpl$1511();
13604
13621
  },
13605
13622
  get children() {
13606
- var _el$43 = _tmpl$1015();
13607
- _el$43.$$click = () => props.onOpenMessages();
13608
- return _el$43;
13623
+ var _el$44 = _tmpl$1213();
13624
+ _el$44.$$click = () => props.onOpenMessages();
13625
+ return _el$44;
13609
13626
  }
13610
13627
  });
13611
13628
  }
13612
13629
  }), null);
13613
13630
  effect((_p$) => {
13614
13631
  var _v$ = `thread__step thread__step--${s.state}`, _v$2 = String(sp.index), _v$3 = s.key;
13615
- _v$ !== _p$.e && className(_el$32, _p$.e = _v$);
13616
- _v$2 !== _p$.t && setStyleProperty(_el$32, "--i", _p$.t = _v$2);
13617
- _v$3 !== _p$.a && setAttribute(_el$32, "data-stage", _p$.a = _v$3);
13632
+ _v$ !== _p$.e && className(_el$33, _p$.e = _v$);
13633
+ _v$2 !== _p$.t && setStyleProperty(_el$33, "--i", _p$.t = _v$2);
13634
+ _v$3 !== _p$.a && setAttribute(_el$33, "data-stage", _p$.a = _v$3);
13618
13635
  return _p$;
13619
13636
  }, {
13620
13637
  e: void 0,
13621
13638
  t: void 0,
13622
13639
  a: void 0
13623
13640
  });
13624
- return _el$32;
13641
+ return _el$33;
13625
13642
  })();
13626
13643
  };
13627
13644
  return createComponent(Show, {
@@ -13634,20 +13651,20 @@ function OrderTracker(props) {
13634
13651
  children: (rx) => {
13635
13652
  const view = buildTrackerView(rx());
13636
13653
  return (() => {
13637
- var _el$46 = _tmpl$1511(), _el$47 = _el$46.firstChild, _el$48 = _el$47.firstChild, _el$49 = _el$48.nextSibling, _el$52 = _el$47.nextSibling;
13638
- insert(_el$49, () => props.medicationName, null);
13639
- insert(_el$49, createComponent(Show, {
13654
+ var _el$47 = _tmpl$1711(), _el$48 = _el$47.firstChild, _el$49 = _el$48.firstChild, _el$50 = _el$49.nextSibling, _el$53 = _el$48.nextSibling;
13655
+ insert(_el$50, () => props.medicationName, null);
13656
+ insert(_el$50, createComponent(Show, {
13640
13657
  get when() {
13641
13658
  return rx().dosage;
13642
13659
  },
13643
13660
  get children() {
13644
- var _el$50 = _tmpl$1412(); _el$50.firstChild;
13645
- insert(_el$50, () => rx().dosage, null);
13646
- return _el$50;
13661
+ var _el$51 = _tmpl$1611(); _el$51.firstChild;
13662
+ insert(_el$51, () => rx().dosage, null);
13663
+ return _el$51;
13647
13664
  }
13648
13665
  }), null);
13649
- insert(_el$46, createComponent(RefillStrip, {}), _el$52);
13650
- insert(_el$52, createComponent(For, {
13666
+ insert(_el$47, createComponent(RefillStrip, {}), _el$53);
13667
+ insert(_el$53, createComponent(For, {
13651
13668
  get each() {
13652
13669
  return view.stages;
13653
13670
  },
@@ -13661,16 +13678,16 @@ function OrderTracker(props) {
13661
13678
  }));
13662
13679
  effect((_p$) => {
13663
13680
  var _v$4 = `thread${view.branch ? ` thread--${view.branch}` : ""}`, _v$5 = String(view.activeIndex), _v$6 = String(view.stages.length);
13664
- _v$4 !== _p$.e && className(_el$52, _p$.e = _v$4);
13665
- _v$5 !== _p$.t && setStyleProperty(_el$52, "--active", _p$.t = _v$5);
13666
- _v$6 !== _p$.a && setStyleProperty(_el$52, "--count", _p$.a = _v$6);
13681
+ _v$4 !== _p$.e && className(_el$53, _p$.e = _v$4);
13682
+ _v$5 !== _p$.t && setStyleProperty(_el$53, "--active", _p$.t = _v$5);
13683
+ _v$6 !== _p$.a && setStyleProperty(_el$53, "--count", _p$.a = _v$6);
13667
13684
  return _p$;
13668
13685
  }, {
13669
13686
  e: void 0,
13670
13687
  t: void 0,
13671
13688
  a: void 0
13672
13689
  });
13673
- return _el$46;
13690
+ return _el$47;
13674
13691
  })();
13675
13692
  }
13676
13693
  });
@@ -14210,8 +14227,8 @@ var _tmpl$1214 = /* @__PURE__ */ template(`<p class=msg-thread__system data-test
14210
14227
  var _tmpl$1313 = /* @__PURE__ */ template(`<p class=msg-thread__text>`);
14211
14228
  var _tmpl$1413 = /* @__PURE__ */ template(`<button type=button class="msg-compose__staged-remove msg-compose__staged-remove--inline">Remove file`);
14212
14229
  var _tmpl$1512 = /* @__PURE__ */ template(`<p class=msg-compose__error role=alert>`);
14213
- var _tmpl$1611 = /* @__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>`);
14214
- var _tmpl$1711 = /* @__PURE__ */ template(`<span class=msg-thread__status data-testid=thread-status-closed>Resolved`);
14230
+ var _tmpl$1612 = /* @__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>`);
14231
+ var _tmpl$1712 = /* @__PURE__ */ template(`<span class=msg-thread__status data-testid=thread-status-closed>Resolved`);
14215
14232
  var _tmpl$1811 = /* @__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>`);
14216
14233
  var _tmpl$1910 = /* @__PURE__ */ template(`<div class=msg-thread__messages data-scrollable><div>`);
14217
14234
  var _tmpl$2010 = /* @__PURE__ */ template(`<span class=msg-compose__error role=alert>`);
@@ -14523,7 +14540,7 @@ function MessagesPanel(props) {
14523
14540
  });
14524
14541
  };
14525
14542
  const NewSupportThread = () => (() => {
14526
- var _el$28 = _tmpl$1611(), _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;
14543
+ var _el$28 = _tmpl$1612(), _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;
14527
14544
  _el$28.addEventListener("submit", submitCompose);
14528
14545
  _el$30.$$click = () => setComposing(false);
14529
14546
  _el$33.$$input = (e) => setNewSubject(e.currentTarget.value);
@@ -14574,7 +14591,7 @@ function MessagesPanel(props) {
14574
14591
  return memo(() => selectedConvo()?.source === "support")() && selectedConvo()?.status === "closed";
14575
14592
  },
14576
14593
  get children() {
14577
- return _tmpl$1711();
14594
+ return _tmpl$1712();
14578
14595
  }
14579
14596
  }), null);
14580
14597
  return _el$43;
@@ -16770,5 +16787,5 @@ function primaryButtonStyle2(submitting) {
16770
16787
  }
16771
16788
 
16772
16789
  export { AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod };
16773
- //# sourceMappingURL=HLXKWRRW.js.map
16774
- //# sourceMappingURL=HLXKWRRW.js.map
16790
+ //# sourceMappingURL=OEXSGX5F.js.map
16791
+ //# sourceMappingURL=OEXSGX5F.js.map