@apextelemed/partner-core 0.17.0-dev.50 → 0.17.0-dev.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/api/index.d.ts +1 -1
  2. package/dist/api/index.js +3 -3
  3. package/dist/api/index.jsx +3 -3
  4. package/dist/chunk/{YQK6OTY6.jsx → 3SPMZ7FK.jsx} +2 -2
  5. package/dist/chunk/{OVRA6JBK.jsx → 545PPOE5.jsx} +2 -2
  6. package/dist/chunk/{EGP7AQDM.js → ANKLNWGB.js} +6 -6
  7. package/dist/chunk/{EGP7AQDM.js.map → ANKLNWGB.js.map} +1 -1
  8. package/dist/chunk/{H7RY2N5U.js → AXXQJC6M.js} +3 -3
  9. package/dist/chunk/{H7RY2N5U.js.map → AXXQJC6M.js.map} +1 -1
  10. package/dist/chunk/{6QI7MVTN.jsx → HM5L6J62.jsx} +2 -2
  11. package/dist/chunk/{ISC5GVA2.js → ICGZXU3R.js} +4 -4
  12. package/dist/chunk/ICGZXU3R.js.map +1 -0
  13. package/dist/chunk/{BVJPX54P.js → L4DFQMYM.js} +451 -358
  14. package/dist/chunk/L4DFQMYM.js.map +1 -0
  15. package/dist/chunk/{R5WTYT2O.js → LFSDVMIY.js} +93 -19
  16. package/dist/chunk/LFSDVMIY.js.map +1 -0
  17. package/dist/chunk/{XV5WXVPT.jsx → OZZGMI6C.jsx} +69 -9
  18. package/dist/chunk/{HADRZNID.jsx → P4NWFY4T.jsx} +5 -5
  19. package/dist/chunk/{3CWWN7H2.jsx → PHSZOZVK.jsx} +3 -3
  20. package/dist/chunk/{KADMJCZL.js → TFA64PLK.js} +3 -3
  21. package/dist/chunk/{KADMJCZL.js.map → TFA64PLK.js.map} +1 -1
  22. package/dist/chunk/{GVXPPYZZ.jsx → VE5ACNFB.jsx} +92 -17
  23. package/dist/chunk/{2CHHHNFT.js → Z6PDUPOU.js} +3 -3
  24. package/dist/chunk/{2CHHHNFT.js.map → Z6PDUPOU.js.map} +1 -1
  25. package/dist/{client-Da9ye3z4.d.ts → client-Baf1FSEp.d.ts} +33 -2
  26. package/dist/flows/index.d.ts +17 -3
  27. package/dist/flows/index.js +6 -6
  28. package/dist/flows/index.jsx +6 -6
  29. package/dist/index/index.d.ts +1 -1
  30. package/dist/index/index.js +7 -7
  31. package/dist/index/index.jsx +7 -7
  32. package/dist/pages/index.d.ts +1 -1
  33. package/dist/pages/index.js +5 -5
  34. package/dist/pages/index.jsx +5 -5
  35. package/dist/stores/index.d.ts +1 -1
  36. package/dist/stores/index.js +2 -2
  37. package/dist/stores/index.jsx +2 -2
  38. package/package.json +1 -1
  39. package/dist/chunk/BVJPX54P.js.map +0 -1
  40. package/dist/chunk/ISC5GVA2.js.map +0 -1
  41. package/dist/chunk/R5WTYT2O.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import { disqualificationReasonText, qualifiedDrugIds } from './LZWA44KD.js';
2
- import { SUPPORT_CATEGORIES, useSurveyFlow, reconcileCartAgainstCatalog, resolveSurveyV2DrugIntent, emailGateAnswered, redeemResumeLink, useSurveyV2Flow, US_STATE_OPTIONS, availableStateOptions, useCheckoutFlow, catalogUnavailableMessage, useCartCheckoutFlow, useSignupFlow, useRegisterFlow, useSubscribeFlow, useDashboardData, useUpdatePaymentMethodFlow, useMemberPortalData, useMessagesThread, captureFunnelEmail, markEmailGateAnswered, isCatalogItemId, subscribeToSupportTopic, useAffiliateStats, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, stateAvailabilityNote, hasStateRestrictions, uploadPrescriptionPhoto, deriveAttention, deriveJourney, buildTimeline, lifecycleReason, accountSource, intakeEvidence, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, classifyCatalogError, groupDrugsByPharmacy, useProductCatalogEditor, skuBindingModeFor, isCssColorValue, categoryLabel, formatConversationTime, buildTrackerView, ACCOUNT_SOURCE_LABEL, fmtDay, createCatalogProduct, addCatalogItemAsProduct, applyPriceDrafts, resolveStrengthPrices, invalidDraftKeys, orphanKey, ORPHAN_REASON, useAddPharmacy, READINESS_LABEL, useCatalogConversion, formatCalendarDate, formatMessageTime, formatEventDate, formatStageDate, offerSummaryText, LIFECYCLE_TONE, buildTrackingUrl, buildStrengthRows, pharmacyLabel, isImageAttachment, buildRefillView, toTrackerRequest, needsReview, visibleWarnings, compareStrengths, MATCH_DEPENDENT_WARNINGS, SOURCE_FIELD_NOTE, MATCH_HOW_LABEL, explainFinding } from './R5WTYT2O.js';
3
- import { fetchFunnelConfig } from './2CHHHNFT.js';
2
+ import { SUPPORT_CATEGORIES, useSurveyFlow, reconcileCartAgainstCatalog, resolveSurveyV2DrugIntent, emailGateAnswered, redeemResumeLink, useSurveyV2Flow, US_STATE_OPTIONS, availableStateOptions, useCheckoutFlow, catalogUnavailableMessage, useCartCheckoutFlow, useSignupFlow, useRegisterFlow, useSubscribeFlow, useDashboardData, useUpdatePaymentMethodFlow, useMemberPortalData, useMessagesThread, captureFunnelEmail, markEmailGateAnswered, isCatalogItemId, subscribeToSupportTopic, useAffiliateStats, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, stateAvailabilityNote, hasStateRestrictions, uploadPrescriptionPhoto, deriveAttention, deriveJourney, buildTimeline, lifecycleReason, accountSource, intakeEvidence, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, classifyCatalogError, groupDrugsByPharmacy, useProductCatalogEditor, skuBindingModeFor, isCssColorValue, categoryLabel, formatConversationTime, buildTrackerView, ACCOUNT_SOURCE_LABEL, fmtDay, createCatalogProduct, addCatalogItemAsProduct, applyPriceDrafts, resolveStrengthPrices, invalidDraftKeys, orphanKey, ORPHAN_REASON, useAddPharmacy, READINESS_LABEL, useCatalogConversion, formatCalendarDate, formatMessageTime, formatEventDate, formatStageDate, offerSummaryText, LIFECYCLE_TONE, buildTrackingUrl, buildStrengthRows, pharmacyLabel, isImageAttachment, buildRefillView, toTrackerRequest, needsReview, visibleWarnings, compareStrengths, MATCH_DEPENDENT_WARNINGS, SOURCE_FIELD_NOTE, MATCH_HOW_LABEL, explainFinding, matchKey } from './LFSDVMIY.js';
3
+ import { fetchFunnelConfig } from './Z6PDUPOU.js';
4
4
  import { usePrimitives } from './67KHO66G.js';
5
- import { cart_default, auth_default, affiliateAuth_default } from './H7RY2N5U.js';
6
- import { usersApi, adminApi, membersApi, offersApi, affiliatePortalApi, authApi, adminAffiliatesApi, apiFetch, apexApi, adminCatalogApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, ApiError, subscriptionsApi } from './ISC5GVA2.js';
5
+ import { cart_default, auth_default, affiliateAuth_default } from './AXXQJC6M.js';
6
+ import { usersApi, adminApi, membersApi, offersApi, affiliatePortalApi, authApi, adminAffiliatesApi, apiFetch, apexApi, adminCatalogApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, ApiError, subscriptionsApi } from './ICGZXU3R.js';
7
7
  import { delegateEvents, createComponent, insert, memo, effect, setStyleProperty, mergeProps, use, setAttribute, addEventListener, style, className, Dynamic, Portal, template } from 'solid-js/web';
8
8
  import { createContext, createSignal, createEffect, on, Show, For, createResource, createMemo, untrack, ErrorBoundary, Switch, Match, onMount, onCleanup, useContext, Index } from 'solid-js';
9
9
  import { isQuestionVisible } from '@apextelemed/survey-core';
@@ -14262,35 +14262,39 @@ var _tmpl$632 = /* @__PURE__ */ template(`<strong>`);
14262
14262
  var _tmpl$730 = /* @__PURE__ */ template(`<span class=app-admin-convert-detail>`);
14263
14263
  var _tmpl$826 = /* @__PURE__ */ template(`<div><span>`);
14264
14264
  var _tmpl$923 = /* @__PURE__ */ template(`<div class=app-admin-convert-wait role=status aria-live=polite data-testid=add-pharmacy-waiting><div class=app-admin-spinner></div><strong>`);
14265
- var _tmpl$020 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>(<!>)`);
14266
- var _tmpl$1101 = /* @__PURE__ */ template(`<div class=app-admin-convert-findings>`);
14267
- var _tmpl$1015 = /* @__PURE__ */ template(`<div><h4 class=app-admin-label style="margin:0 0 0.5rem">Strengths and prices</h4><table class=app-admin-table data-testid=add-pharmacy-strengths><thead><tr><th scope=col>Strength</th><th scope=col>Now</th><th scope=col>After saving</th></tr></thead><tbody>`);
14268
- var _tmpl$1116 = /* @__PURE__ */ template(`<div><h4 class=app-admin-label style="margin:0 0 0.25rem">Set a price for each new strength</h4><p>A strength can't be sold until it has a price. The member price is optional.</p><ul class=app-admin-catalog-list style=margin:0>`);
14269
- var _tmpl$1213 = /* @__PURE__ */ template(`<div class=app-admin-convert data-testid=add-pharmacy-review><p style=margin:0;font-size:0.875rem>Adding <strong></strong> to <!>.`);
14270
- var _tmpl$1311 = /* @__PURE__ */ template(`<button type=button class=app-admin-banner__dismiss aria-label=Dismiss>\xD7`);
14271
- var _tmpl$1411 = /* @__PURE__ */ template(`<div data-testid=add-pharmacy-notice><span>`);
14272
- var _tmpl$1511 = /* @__PURE__ */ template(`<tr><td data-label=Strength></td><td data-label=Now class=app-admin-table-cell--num></td><td data-label="After saving"class=app-admin-table-cell--num><strong>`);
14273
- var _tmpl$1611 = /* @__PURE__ */ template(`<div class=app-admin-field-error role=alert>Enter a price for <!>.`);
14274
- var _tmpl$1711 = /* @__PURE__ */ template(`<div class=app-admin-field-error role=alert>Enter the member price as an amount, or leave it blank.`);
14275
- var _tmpl$1811 = /* @__PURE__ */ template(`<li class=app-admin-catalog-row data-testid=add-pharmacy-price-row><div class=app-admin-catalog-row__main><span class=app-admin-catalog-row__title><strong></strong></span><div class=app-admin-catalog-row__controls><input type=number step=0.01 min=0 inputmode=decimal class=app-admin-input placeholder=Price style=width:7rem;min-width:0><input type=number step=0.01 min=0 inputmode=decimal class=app-admin-input placeholder="Member price"style=width:9rem;min-width:0>`);
14276
- var _tmpl$1910 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-ghost">Cancel`);
14277
- var _tmpl$2010 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-primary">Add pharmacy`);
14278
- var _tmpl$2114 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-ghost">Close`);
14279
- var _tmpl$2211 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-ghost">Choose a different pharmacy`);
14280
- var _tmpl$2310 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-ghost">Start over`);
14281
- var _tmpl$2410 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-primary">Check again`);
14282
- var _tmpl$2510 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-primary">Try again`);
14283
- var _tmpl$2610 = /* @__PURE__ */ template(`<div data-testid=add-pharmacy-confirm><p style=margin:0>Add <strong></strong> to <!>?</p><p style="margin:0.5rem 0 0">Its strengths and prices stay as they are. New prescriptions go to the first pharmacy in the list that can fill them.`);
14284
- var _tmpl$278 = /* @__PURE__ */ template(`<p style=margin:0>If the page does get closed, reopen this product afterwards: its pharmacies list always shows where things stand.`);
14285
- var _tmpl$285 = /* @__PURE__ */ template(`<div class="app-admin-banner app-admin-banner--danger"role=alert data-testid=add-pharmacy-failed style=margin-bottom:0><span>`);
14286
- var _tmpl$295 = /* @__PURE__ */ template(`<div role=status data-testid=add-pharmacy-notice><span>`);
14287
- var _tmpl$304 = /* @__PURE__ */ template(`<strong>Save or discard your changes first.`);
14288
- var _tmpl$3111 = /* @__PURE__ */ template(`<ol class=app-admin-catalog-list aria-label="Pharmacies in order of preference">`);
14289
- var _tmpl$3210 = /* @__PURE__ */ template(`<section class=app-admin-catalog-block aria-labelledby=product-pharmacies-title data-testid=product-pharmacies><div class=app-admin-catalog-block__head><h3 class=app-admin-label id=product-pharmacies-title style=margin:0>Pharmacies</h3><span class=app-admin-catalog-row__controls></span></div><p class=app-admin-catalog-hint id=product-pharmacies-hint>Prescriptions go to the first pharmacy that can fill them, top to bottom. `);
14290
- var _tmpl$3310 = /* @__PURE__ */ template(`<p class=app-admin-catalog-hint>We can't read this product's pharmacy right now. Try again in a moment.`);
14291
- var _tmpl$3410 = /* @__PURE__ */ template(`<p class=app-admin-catalog-hint>No pharmacy fills this product yet.`);
14292
- var _tmpl$353 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>`);
14293
- var _tmpl$363 = /* @__PURE__ */ template(`<li class=app-admin-catalog-row><div class=app-admin-catalog-row__main><span class=app-admin-catalog-row__rank aria-hidden=true></span><span class=app-admin-catalog-row__title><strong></strong><span class=app-admin-sr-only>Preference `);
14265
+ var _tmpl$020 = /* @__PURE__ */ template(`<div class=app-admin-catalog-row__main style=flex-wrap:wrap><span class=app-admin-catalog-row__title style=font-size:0.875rem><span><strong> subscriber</strong> <!> on <strong></strong>. Which strength is that now?</span></span><select class=app-admin-input style=width:auto;min-width:10rem><option value>Leave for review`);
14266
+ var _tmpl$1101 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>(<!>)`);
14267
+ var _tmpl$1015 = /* @__PURE__ */ template(`<div class=app-admin-convert-findings>`);
14268
+ var _tmpl$1116 = /* @__PURE__ */ template(`<div><h4 class=app-admin-label style="margin:0 0 0.5rem">Strengths and prices</h4><table class=app-admin-table data-testid=add-pharmacy-strengths><thead><tr><th scope=col>Strength</th><th scope=col>Now</th><th scope=col>After saving</th></tr></thead><tbody>`);
14269
+ var _tmpl$1213 = /* @__PURE__ */ template(`<p role=status aria-live=polite data-testid=add-pharmacy-replanning style="margin:0.25rem 0 0">Updating prices\u2026`);
14270
+ var _tmpl$1311 = /* @__PURE__ */ template(`<div data-testid=add-pharmacy-match><h4 class=app-admin-label style="margin:0 0 0.5rem">Subscribers on strengths that changed</h4><ul class=app-admin-catalog-list style=margin:0></ul><p class=app-admin-text-muted style="margin:0.5rem 0 0">Picking a strength keeps these subscribers\u2019 refills on it and carries the old price over. Left for review, their refills still go out but are flagged for a person to check.`);
14271
+ var _tmpl$1411 = /* @__PURE__ */ template(`<div><h4 class=app-admin-label style="margin:0 0 0.25rem">Set a price for each new strength</h4><p>A strength can't be sold until it has a price. The member price is optional.</p><ul class=app-admin-catalog-list style=margin:0>`);
14272
+ var _tmpl$1511 = /* @__PURE__ */ template(`<div class=app-admin-convert data-testid=add-pharmacy-review><p style=margin:0;font-size:0.875rem>Adding <strong></strong> to <!>.`);
14273
+ var _tmpl$1611 = /* @__PURE__ */ template(`<button type=button class=app-admin-banner__dismiss aria-label=Dismiss>\xD7`);
14274
+ var _tmpl$1711 = /* @__PURE__ */ template(`<div data-testid=add-pharmacy-notice><span>`);
14275
+ var _tmpl$1811 = /* @__PURE__ */ template(`<tr><td data-label=Strength></td><td data-label=Now class=app-admin-table-cell--num></td><td data-label="After saving"class=app-admin-table-cell--num><strong>`);
14276
+ var _tmpl$1910 = /* @__PURE__ */ template(`<li class=app-admin-catalog-row data-testid=add-pharmacy-match-row>`);
14277
+ var _tmpl$2010 = /* @__PURE__ */ template(`<div class=app-admin-field-error role=alert>Enter a price for <!>.`);
14278
+ var _tmpl$2114 = /* @__PURE__ */ template(`<div class=app-admin-field-error role=alert>Enter the member price as an amount, or leave it blank.`);
14279
+ var _tmpl$2211 = /* @__PURE__ */ template(`<li class=app-admin-catalog-row data-testid=add-pharmacy-price-row><div class=app-admin-catalog-row__main><span class=app-admin-catalog-row__title><strong></strong></span><div class=app-admin-catalog-row__controls><input type=number step=0.01 min=0 inputmode=decimal class=app-admin-input placeholder=Price style=width:7rem;min-width:0><input type=number step=0.01 min=0 inputmode=decimal class=app-admin-input placeholder="Member price"style=width:9rem;min-width:0>`);
14280
+ var _tmpl$2310 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-ghost">Cancel`);
14281
+ var _tmpl$2410 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-primary">Add pharmacy`);
14282
+ var _tmpl$2510 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-ghost">Close`);
14283
+ var _tmpl$2610 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-ghost">Choose a different pharmacy`);
14284
+ var _tmpl$278 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-ghost">Start over`);
14285
+ var _tmpl$285 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-primary">Check again`);
14286
+ var _tmpl$295 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-primary">Try again`);
14287
+ var _tmpl$304 = /* @__PURE__ */ template(`<div data-testid=add-pharmacy-confirm><p style=margin:0>Add <strong></strong> to <!>?</p><p style="margin:0.5rem 0 0">Its strengths and prices stay as they are. New prescriptions go to the first pharmacy in the list that can fill them.`);
14288
+ var _tmpl$3111 = /* @__PURE__ */ template(`<p style=margin:0>If the page does get closed, reopen this product afterwards: its pharmacies list always shows where things stand.`);
14289
+ var _tmpl$3210 = /* @__PURE__ */ template(`<div class="app-admin-banner app-admin-banner--danger"role=alert data-testid=add-pharmacy-failed style=margin-bottom:0><span>`);
14290
+ var _tmpl$3310 = /* @__PURE__ */ template(`<div role=status data-testid=add-pharmacy-notice><span>`);
14291
+ var _tmpl$3410 = /* @__PURE__ */ template(`<strong>Save or discard your changes first.`);
14292
+ var _tmpl$353 = /* @__PURE__ */ template(`<ol class=app-admin-catalog-list aria-label="Pharmacies in order of preference">`);
14293
+ var _tmpl$363 = /* @__PURE__ */ template(`<section class=app-admin-catalog-block aria-labelledby=product-pharmacies-title data-testid=product-pharmacies><div class=app-admin-catalog-block__head><h3 class=app-admin-label id=product-pharmacies-title style=margin:0>Pharmacies</h3><span class=app-admin-catalog-row__controls></span></div><p class=app-admin-catalog-hint id=product-pharmacies-hint>Prescriptions go to the first pharmacy that can fill them, top to bottom. `);
14294
+ var _tmpl$372 = /* @__PURE__ */ template(`<p class=app-admin-catalog-hint>We can't read this product's pharmacy right now. Try again in a moment.`);
14295
+ var _tmpl$382 = /* @__PURE__ */ template(`<p class=app-admin-catalog-hint>No pharmacy fills this product yet.`);
14296
+ var _tmpl$392 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>`);
14297
+ var _tmpl$402 = /* @__PURE__ */ template(`<li class=app-admin-catalog-row><div class=app-admin-catalog-row__main><span class=app-admin-catalog-row__rank aria-hidden=true></span><span class=app-admin-catalog-row__title><strong></strong><span class=app-admin-sr-only>Preference `);
14294
14298
  var hint2 = {
14295
14299
  "font-size": "0.6875rem",
14296
14300
  color: "var(--app-admin-fg-muted)",
@@ -14436,6 +14440,53 @@ function Waiting(props) {
14436
14440
  })();
14437
14441
  }
14438
14442
  var priceText = (n) => n == null ? "No price" : fmtPrice(n);
14443
+ function MatchQuestion(props) {
14444
+ const q = () => props.question;
14445
+ const name = () => q().dosage ?? q().source.dosage ?? "a strength with no name";
14446
+ const answer = () => {
14447
+ const given = props.flow.matchAnswers()[matchKey(q().source)];
14448
+ return given === void 0 ? q().doseId ?? "" : given ?? "";
14449
+ };
14450
+ const n = () => q().subscriberCount;
14451
+ return (() => {
14452
+ var _el$25 = _tmpl$020(), _el$26 = _el$25.firstChild, _el$27 = _el$26.firstChild, _el$28 = _el$27.firstChild, _el$29 = _el$28.firstChild, _el$30 = _el$28.nextSibling, _el$34 = _el$30.nextSibling, _el$31 = _el$34.nextSibling, _el$32 = _el$31.nextSibling, _el$33 = _el$32.nextSibling, _el$35 = _el$26.nextSibling, _el$36 = _el$35.firstChild;
14453
+ insert(_el$28, n, _el$29);
14454
+ insert(_el$28, () => n() === 1 ? "" : "s", null);
14455
+ insert(_el$27, () => n() === 1 ? "is" : "are", _el$34);
14456
+ insert(_el$32, name);
14457
+ insert(_el$27, createComponent(Show, {
14458
+ get when() {
14459
+ return q().price != null;
14460
+ },
14461
+ get children() {
14462
+ return [" \u2014 ", memo(() => fmtPrice(q().price))];
14463
+ }
14464
+ }), _el$33);
14465
+ _el$35.addEventListener("change", (e) => props.flow.setMatchAnswer(q().source, e.currentTarget.value === "" ? null : e.currentTarget.value));
14466
+ insert(_el$35, createComponent(For, {
14467
+ get each() {
14468
+ return props.options;
14469
+ },
14470
+ children: (o) => (() => {
14471
+ var _el$37 = _tmpl$536();
14472
+ insert(_el$37, () => o.label);
14473
+ effect(() => _el$37.selected = answer() === o.doseId);
14474
+ effect(() => _el$37.value = o.doseId);
14475
+ return _el$37;
14476
+ })()
14477
+ }), null);
14478
+ effect((_p$) => {
14479
+ var _v$0 = `Which strength is ${name()} now`, _v$1 = answer() === "";
14480
+ _v$0 !== _p$.e && setAttribute(_el$35, "aria-label", _p$.e = _v$0);
14481
+ _v$1 !== _p$.t && (_el$36.selected = _p$.t = _v$1);
14482
+ return _p$;
14483
+ }, {
14484
+ e: void 0,
14485
+ t: void 0
14486
+ });
14487
+ return _el$25;
14488
+ })();
14489
+ }
14439
14490
  function Review(props) {
14440
14491
  const flow = props.flow;
14441
14492
  const plan = () => {
@@ -14447,60 +14498,60 @@ function Review(props) {
14447
14498
  return plan();
14448
14499
  },
14449
14500
  children: (p) => (() => {
14450
- var _el$25 = _tmpl$1213(), _el$26 = _el$25.firstChild, _el$27 = _el$26.firstChild, _el$28 = _el$27.nextSibling, _el$33 = _el$28.nextSibling, _el$36 = _el$33.nextSibling; _el$36.nextSibling;
14451
- insert(_el$28, () => pharmacyLabel(p()));
14452
- insert(_el$26, createComponent(Show, {
14501
+ var _el$38 = _tmpl$1511(), _el$39 = _el$38.firstChild, _el$40 = _el$39.firstChild, _el$41 = _el$40.nextSibling, _el$46 = _el$41.nextSibling, _el$49 = _el$46.nextSibling; _el$49.nextSibling;
14502
+ insert(_el$41, () => pharmacyLabel(p()));
14503
+ insert(_el$39, createComponent(Show, {
14453
14504
  get when() {
14454
14505
  return p().pharmacy.pharmacyName;
14455
14506
  },
14456
14507
  get children() {
14457
14508
  return [" ", (() => {
14458
- var _el$29 = _tmpl$020(), _el$30 = _el$29.firstChild, _el$32 = _el$30.nextSibling; _el$32.nextSibling;
14459
- insert(_el$29, () => p().pharmacy.drugName, _el$32);
14460
- return _el$29;
14509
+ var _el$42 = _tmpl$1101(), _el$43 = _el$42.firstChild, _el$45 = _el$43.nextSibling; _el$45.nextSibling;
14510
+ insert(_el$42, () => p().pharmacy.drugName, _el$45);
14511
+ return _el$42;
14461
14512
  })()];
14462
14513
  }
14463
- }), _el$33);
14464
- insert(_el$26, () => props.productName, _el$36);
14465
- insert(_el$25, createComponent(Show, {
14514
+ }), _el$46);
14515
+ insert(_el$39, () => props.productName, _el$49);
14516
+ insert(_el$38, createComponent(Show, {
14466
14517
  get when() {
14467
14518
  return flow.notice();
14468
14519
  },
14469
14520
  keyed: true,
14470
14521
  children: (n) => (() => {
14471
- var _el$48 = _tmpl$1411(), _el$49 = _el$48.firstChild;
14472
- insert(_el$49, () => n.message);
14473
- insert(_el$48, createComponent(Show, {
14522
+ var _el$66 = _tmpl$1711(), _el$67 = _el$66.firstChild;
14523
+ insert(_el$67, () => n.message);
14524
+ insert(_el$66, createComponent(Show, {
14474
14525
  get when() {
14475
14526
  return n.tone !== "danger";
14476
14527
  },
14477
14528
  get children() {
14478
- var _el$50 = _tmpl$1311();
14479
- _el$50.$$click = () => flow.dismissNotice();
14480
- return _el$50;
14529
+ var _el$68 = _tmpl$1611();
14530
+ _el$68.$$click = () => flow.dismissNotice();
14531
+ return _el$68;
14481
14532
  }
14482
14533
  }), null);
14483
14534
  effect((_p$) => {
14484
- var _v$0 = `app-admin-banner app-admin-banner--${n.tone}`, _v$1 = n.tone === "danger" ? "alert" : "status", _v$10 = n.code;
14485
- _v$0 !== _p$.e && className(_el$48, _p$.e = _v$0);
14486
- _v$1 !== _p$.t && setAttribute(_el$48, "role", _p$.t = _v$1);
14487
- _v$10 !== _p$.a && setAttribute(_el$48, "data-code", _p$.a = _v$10);
14535
+ var _v$10 = `app-admin-banner app-admin-banner--${n.tone}`, _v$11 = n.tone === "danger" ? "alert" : "status", _v$12 = n.code;
14536
+ _v$10 !== _p$.e && className(_el$66, _p$.e = _v$10);
14537
+ _v$11 !== _p$.t && setAttribute(_el$66, "role", _p$.t = _v$11);
14538
+ _v$12 !== _p$.a && setAttribute(_el$66, "data-code", _p$.a = _v$12);
14488
14539
  return _p$;
14489
14540
  }, {
14490
14541
  e: void 0,
14491
14542
  t: void 0,
14492
14543
  a: void 0
14493
14544
  });
14494
- return _el$48;
14545
+ return _el$66;
14495
14546
  })()
14496
14547
  }), null);
14497
- insert(_el$25, createComponent(Show, {
14548
+ insert(_el$38, createComponent(Show, {
14498
14549
  get when() {
14499
14550
  return p().blockers.length > 0;
14500
14551
  },
14501
14552
  get children() {
14502
- var _el$37 = _tmpl$1101();
14503
- insert(_el$37, createComponent(For, {
14553
+ var _el$50 = _tmpl$1015();
14554
+ insert(_el$50, createComponent(For, {
14504
14555
  get each() {
14505
14556
  return p().blockers;
14506
14557
  },
@@ -14509,16 +14560,16 @@ function Review(props) {
14509
14560
  tone: "danger"
14510
14561
  })
14511
14562
  }));
14512
- return _el$37;
14563
+ return _el$50;
14513
14564
  }
14514
14565
  }), null);
14515
- insert(_el$25, createComponent(Show, {
14566
+ insert(_el$38, createComponent(Show, {
14516
14567
  get when() {
14517
14568
  return visibleWarnings(p()).length > 0;
14518
14569
  },
14519
14570
  get children() {
14520
- var _el$38 = _tmpl$1101();
14521
- insert(_el$38, createComponent(For, {
14571
+ var _el$51 = _tmpl$1015();
14572
+ insert(_el$51, createComponent(For, {
14522
14573
  get each() {
14523
14574
  return visibleWarnings(p());
14524
14575
  },
@@ -14527,49 +14578,91 @@ function Review(props) {
14527
14578
  tone: "warn"
14528
14579
  })
14529
14580
  }));
14530
- return _el$38;
14581
+ return _el$51;
14531
14582
  }
14532
14583
  }), null);
14533
- insert(_el$25, createComponent(Show, {
14584
+ insert(_el$38, createComponent(Show, {
14534
14585
  get when() {
14535
14586
  return compareStrengths(p()).length > 0;
14536
14587
  },
14537
14588
  get children() {
14538
- var _el$39 = _tmpl$1015(), _el$40 = _el$39.firstChild, _el$41 = _el$40.nextSibling, _el$42 = _el$41.firstChild, _el$43 = _el$42.nextSibling;
14539
- insert(_el$43, createComponent(For, {
14589
+ var _el$52 = _tmpl$1116(), _el$53 = _el$52.firstChild, _el$54 = _el$53.nextSibling, _el$55 = _el$54.firstChild, _el$56 = _el$55.nextSibling;
14590
+ insert(_el$56, createComponent(For, {
14540
14591
  get each() {
14541
14592
  return compareStrengths(p());
14542
14593
  },
14543
14594
  children: (row) => (() => {
14544
- var _el$51 = _tmpl$1511(), _el$52 = _el$51.firstChild, _el$53 = _el$52.nextSibling, _el$54 = _el$53.nextSibling, _el$55 = _el$54.firstChild;
14545
- insert(_el$52, () => row.dosage);
14546
- insert(_el$53, (() => {
14595
+ var _el$69 = _tmpl$1811(), _el$70 = _el$69.firstChild, _el$71 = _el$70.nextSibling, _el$72 = _el$71.nextSibling, _el$73 = _el$72.firstChild;
14596
+ insert(_el$70, () => row.dosage);
14597
+ insert(_el$71, (() => {
14547
14598
  var _c$2 = memo(() => row.before === void 0);
14548
14599
  return () => _c$2() ? "Not sold" : priceText(row.before);
14549
14600
  })());
14550
- insert(_el$55, (() => {
14601
+ insert(_el$73, (() => {
14551
14602
  var _c$3 = memo(() => row.after == null);
14552
14603
  return () => _c$3() ? "Needs a price" : fmtPrice(row.after);
14553
14604
  })());
14554
- insert(_el$54, createComponent(Show, {
14605
+ insert(_el$72, createComponent(Show, {
14555
14606
  get when() {
14556
14607
  return row.isNew;
14557
14608
  },
14558
14609
  children: " (new)"
14559
14610
  }), null);
14560
- return _el$51;
14611
+ return _el$69;
14612
+ })()
14613
+ }));
14614
+ return _el$52;
14615
+ }
14616
+ }), null);
14617
+ insert(_el$38, createComponent(Show, {
14618
+ get when() {
14619
+ return (p().matchQuestions ?? []).length > 0;
14620
+ },
14621
+ get children() {
14622
+ var _el$57 = _tmpl$1311(), _el$58 = _el$57.firstChild, _el$59 = _el$58.nextSibling, _el$60 = _el$59.nextSibling;
14623
+ insert(_el$59, createComponent(Index, {
14624
+ get each() {
14625
+ return p().matchQuestions;
14626
+ },
14627
+ children: (q) => (() => {
14628
+ var _el$74 = _tmpl$1910();
14629
+ insert(_el$74, createComponent(MatchQuestion, {
14630
+ flow,
14631
+ get question() {
14632
+ return q();
14633
+ },
14634
+ get options() {
14635
+ return p().doseOptions ?? [];
14636
+ }
14637
+ }));
14638
+ return _el$74;
14561
14639
  })()
14562
14640
  }));
14563
- return _el$39;
14641
+ insert(_el$57, createComponent(Show, {
14642
+ get when() {
14643
+ return flow.replanning();
14644
+ },
14645
+ get children() {
14646
+ var _el$61 = _tmpl$1213();
14647
+ effect((_$p) => style(_el$61, {
14648
+ ...hint2
14649
+ }, _$p));
14650
+ return _el$61;
14651
+ }
14652
+ }), null);
14653
+ effect((_$p) => style(_el$60, {
14654
+ ...hint2
14655
+ }, _$p));
14656
+ return _el$57;
14564
14657
  }
14565
14658
  }), null);
14566
- insert(_el$25, createComponent(Show, {
14659
+ insert(_el$38, createComponent(Show, {
14567
14660
  get when() {
14568
14661
  return p().pricesRequired.length > 0;
14569
14662
  },
14570
14663
  get children() {
14571
- var _el$44 = _tmpl$1116(), _el$45 = _el$44.firstChild, _el$46 = _el$45.nextSibling, _el$47 = _el$46.nextSibling;
14572
- insert(_el$47, createComponent(For, {
14664
+ var _el$62 = _tmpl$1411(), _el$63 = _el$62.firstChild, _el$64 = _el$63.nextSibling, _el$65 = _el$64.nextSibling;
14665
+ insert(_el$65, createComponent(For, {
14573
14666
  get each() {
14574
14667
  return p().pricesRequired;
14575
14668
  },
@@ -14577,37 +14670,37 @@ function Review(props) {
14577
14670
  const invalid = () => flow.flagged().has(r.doseId) || (flow.prices()[r.doseId] ?? "").trim() !== "" && flow.missing().includes(r.doseId);
14578
14671
  const savingsBad = () => flow.savingsInvalid().includes(r.doseId);
14579
14672
  return (() => {
14580
- var _el$56 = _tmpl$1811(), _el$57 = _el$56.firstChild, _el$58 = _el$57.firstChild, _el$59 = _el$58.firstChild, _el$60 = _el$58.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling;
14581
- insert(_el$59, () => r.dosage);
14582
- _el$61.$$input = (e) => flow.setPrice(r.doseId, e.currentTarget.value);
14583
- _el$62.$$input = (e) => flow.setSavingsPrice(r.doseId, e.currentTarget.value);
14584
- insert(_el$56, createComponent(Show, {
14673
+ var _el$75 = _tmpl$2211(), _el$76 = _el$75.firstChild, _el$77 = _el$76.firstChild, _el$78 = _el$77.firstChild, _el$79 = _el$77.nextSibling, _el$80 = _el$79.firstChild, _el$81 = _el$80.nextSibling;
14674
+ insert(_el$78, () => r.dosage);
14675
+ _el$80.$$input = (e) => flow.setPrice(r.doseId, e.currentTarget.value);
14676
+ _el$81.$$input = (e) => flow.setSavingsPrice(r.doseId, e.currentTarget.value);
14677
+ insert(_el$75, createComponent(Show, {
14585
14678
  get when() {
14586
14679
  return invalid();
14587
14680
  },
14588
14681
  get children() {
14589
- var _el$63 = _tmpl$1611(), _el$64 = _el$63.firstChild, _el$66 = _el$64.nextSibling; _el$66.nextSibling;
14590
- insert(_el$63, () => r.dosage, _el$66);
14591
- return _el$63;
14682
+ var _el$82 = _tmpl$2010(), _el$83 = _el$82.firstChild, _el$85 = _el$83.nextSibling; _el$85.nextSibling;
14683
+ insert(_el$82, () => r.dosage, _el$85);
14684
+ return _el$82;
14592
14685
  }
14593
14686
  }), null);
14594
- insert(_el$56, createComponent(Show, {
14687
+ insert(_el$75, createComponent(Show, {
14595
14688
  get when() {
14596
14689
  return savingsBad();
14597
14690
  },
14598
14691
  get children() {
14599
- return _tmpl$1711();
14692
+ return _tmpl$2114();
14600
14693
  }
14601
14694
  }), null);
14602
14695
  effect((_p$) => {
14603
- var _v$11 = !!invalid(), _v$12 = `Price for ${r.dosage}`, _v$13 = invalid() ? "true" : void 0, _v$14 = flow.state().kind === "saving", _v$15 = `Member price for ${r.dosage} (optional)`, _v$16 = savingsBad() ? "true" : void 0, _v$17 = flow.state().kind === "saving";
14604
- _v$11 !== _p$.e && _el$56.classList.toggle("is-flagged", _p$.e = _v$11);
14605
- _v$12 !== _p$.t && setAttribute(_el$61, "aria-label", _p$.t = _v$12);
14606
- _v$13 !== _p$.a && setAttribute(_el$61, "aria-invalid", _p$.a = _v$13);
14607
- _v$14 !== _p$.o && (_el$61.disabled = _p$.o = _v$14);
14608
- _v$15 !== _p$.i && setAttribute(_el$62, "aria-label", _p$.i = _v$15);
14609
- _v$16 !== _p$.n && setAttribute(_el$62, "aria-invalid", _p$.n = _v$16);
14610
- _v$17 !== _p$.s && (_el$62.disabled = _p$.s = _v$17);
14696
+ var _v$13 = !!invalid(), _v$14 = `Price for ${r.dosage}`, _v$15 = invalid() ? "true" : void 0, _v$16 = flow.state().kind === "saving", _v$17 = `Member price for ${r.dosage} (optional)`, _v$18 = savingsBad() ? "true" : void 0, _v$19 = flow.state().kind === "saving";
14697
+ _v$13 !== _p$.e && _el$75.classList.toggle("is-flagged", _p$.e = _v$13);
14698
+ _v$14 !== _p$.t && setAttribute(_el$80, "aria-label", _p$.t = _v$14);
14699
+ _v$15 !== _p$.a && setAttribute(_el$80, "aria-invalid", _p$.a = _v$15);
14700
+ _v$16 !== _p$.o && (_el$80.disabled = _p$.o = _v$16);
14701
+ _v$17 !== _p$.i && setAttribute(_el$81, "aria-label", _p$.i = _v$17);
14702
+ _v$18 !== _p$.n && setAttribute(_el$81, "aria-invalid", _p$.n = _v$18);
14703
+ _v$19 !== _p$.s && (_el$81.disabled = _p$.s = _v$19);
14611
14704
  return _p$;
14612
14705
  }, {
14613
14706
  e: void 0,
@@ -14618,17 +14711,17 @@ function Review(props) {
14618
14711
  n: void 0,
14619
14712
  s: void 0
14620
14713
  });
14621
- effect(() => _el$61.value = flow.prices()[r.doseId] ?? "");
14622
- effect(() => _el$62.value = flow.savingsPrices()[r.doseId] ?? "");
14623
- return _el$56;
14714
+ effect(() => _el$80.value = flow.prices()[r.doseId] ?? "");
14715
+ effect(() => _el$81.value = flow.savingsPrices()[r.doseId] ?? "");
14716
+ return _el$75;
14624
14717
  })();
14625
14718
  }
14626
14719
  }));
14627
- effect((_$p) => style(_el$46, hint2, _$p));
14628
- return _el$44;
14720
+ effect((_$p) => style(_el$64, hint2, _$p));
14721
+ return _el$62;
14629
14722
  }
14630
14723
  }), null);
14631
- return _el$25;
14724
+ return _el$38;
14632
14725
  })()
14633
14726
  });
14634
14727
  }
@@ -14667,9 +14760,9 @@ function AddPharmacyDialog(props) {
14667
14760
  return kind() === "planning";
14668
14761
  },
14669
14762
  get children() {
14670
- var _el$68 = _tmpl$1910();
14671
- _el$68.$$click = () => flow.cancel();
14672
- return _el$68;
14763
+ var _el$87 = _tmpl$2310();
14764
+ _el$87.$$click = () => flow.cancel();
14765
+ return _el$87;
14673
14766
  }
14674
14767
  }), createComponent(Match, {
14675
14768
  get when() {
@@ -14677,22 +14770,22 @@ function AddPharmacyDialog(props) {
14677
14770
  },
14678
14771
  get children() {
14679
14772
  return [(() => {
14680
- var _el$69 = _tmpl$1910();
14681
- _el$69.$$click = () => flow.cancel();
14682
- return _el$69;
14773
+ var _el$88 = _tmpl$2310();
14774
+ _el$88.$$click = () => flow.cancel();
14775
+ return _el$88;
14683
14776
  })(), (() => {
14684
- var _el$70 = _tmpl$2010();
14685
- _el$70.$$click = () => void flow.save();
14777
+ var _el$89 = _tmpl$2410();
14778
+ _el$89.$$click = () => void flow.save();
14686
14779
  effect((_p$) => {
14687
- var _v$18 = !flow.canSave(), _v$19 = flow.canSave() ? void 0 : "Resolve what is shown above first";
14688
- _v$18 !== _p$.e && (_el$70.disabled = _p$.e = _v$18);
14689
- _v$19 !== _p$.t && setAttribute(_el$70, "title", _p$.t = _v$19);
14780
+ var _v$20 = !flow.canSave(), _v$21 = flow.canSave() ? void 0 : "Resolve what is shown above first";
14781
+ _v$20 !== _p$.e && (_el$89.disabled = _p$.e = _v$20);
14782
+ _v$21 !== _p$.t && setAttribute(_el$89, "title", _p$.t = _v$21);
14690
14783
  return _p$;
14691
14784
  }, {
14692
14785
  e: void 0,
14693
14786
  t: void 0
14694
14787
  });
14695
- return _el$70;
14788
+ return _el$89;
14696
14789
  })()];
14697
14790
  }
14698
14791
  }), createComponent(Match, {
@@ -14701,17 +14794,17 @@ function AddPharmacyDialog(props) {
14701
14794
  },
14702
14795
  get children() {
14703
14796
  return [(() => {
14704
- var _el$71 = _tmpl$2114();
14705
- _el$71.$$click = () => flow.cancel();
14706
- return _el$71;
14797
+ var _el$90 = _tmpl$2510();
14798
+ _el$90.$$click = () => flow.cancel();
14799
+ return _el$90;
14707
14800
  })(), createComponent(Show, {
14708
14801
  get when() {
14709
14802
  return !flow.state().unconfirmed;
14710
14803
  },
14711
14804
  get children() {
14712
- var _el$72 = _tmpl$2211();
14713
- _el$72.$$click = () => flow.backToPicking();
14714
- return _el$72;
14805
+ var _el$91 = _tmpl$2610();
14806
+ _el$91.$$click = () => flow.backToPicking();
14807
+ return _el$91;
14715
14808
  }
14716
14809
  }), createComponent(Show, {
14717
14810
  get when() {
@@ -14719,13 +14812,13 @@ function AddPharmacyDialog(props) {
14719
14812
  },
14720
14813
  get children() {
14721
14814
  return [(() => {
14722
- var _el$73 = _tmpl$2310();
14723
- _el$73.$$click = () => void flow.startOver();
14724
- return _el$73;
14815
+ var _el$92 = _tmpl$278();
14816
+ _el$92.$$click = () => void flow.startOver();
14817
+ return _el$92;
14725
14818
  })(), (() => {
14726
- var _el$74 = _tmpl$2410();
14727
- _el$74.$$click = () => void flow.retry();
14728
- return _el$74;
14819
+ var _el$93 = _tmpl$285();
14820
+ _el$93.$$click = () => void flow.retry();
14821
+ return _el$93;
14729
14822
  })()];
14730
14823
  }
14731
14824
  }), createComponent(Show, {
@@ -14733,9 +14826,9 @@ function AddPharmacyDialog(props) {
14733
14826
  return memo(() => !!!flow.state().unconfirmed)() && flow.state().canRetry;
14734
14827
  },
14735
14828
  get children() {
14736
- var _el$75 = _tmpl$2510();
14737
- _el$75.$$click = () => void flow.retry();
14738
- return _el$75;
14829
+ var _el$94 = _tmpl$295();
14830
+ _el$94.$$click = () => void flow.retry();
14831
+ return _el$94;
14739
14832
  }
14740
14833
  })];
14741
14834
  }
@@ -14778,36 +14871,36 @@ function AddPharmacyDialog(props) {
14778
14871
  return memo(() => kind() === "reviewing")() && simple();
14779
14872
  },
14780
14873
  get children() {
14781
- var _el$76 = _tmpl$2610(), _el$77 = _el$76.firstChild, _el$78 = _el$77.firstChild, _el$79 = _el$78.nextSibling, _el$80 = _el$79.nextSibling, _el$82 = _el$80.nextSibling; _el$82.nextSibling; var _el$83 = _el$77.nextSibling;
14782
- insert(_el$76, createComponent(Show, {
14874
+ var _el$95 = _tmpl$304(), _el$96 = _el$95.firstChild, _el$97 = _el$96.firstChild, _el$98 = _el$97.nextSibling, _el$99 = _el$98.nextSibling, _el$101 = _el$99.nextSibling; _el$101.nextSibling; var _el$102 = _el$96.nextSibling;
14875
+ insert(_el$95, createComponent(Show, {
14783
14876
  get when() {
14784
14877
  return flow.notice();
14785
14878
  },
14786
14879
  keyed: true,
14787
14880
  children: (n) => (() => {
14788
- var _el$87 = _tmpl$295(), _el$88 = _el$87.firstChild;
14789
- insert(_el$88, () => n.message);
14881
+ var _el$106 = _tmpl$3310(), _el$107 = _el$106.firstChild;
14882
+ insert(_el$107, () => n.message);
14790
14883
  effect((_p$) => {
14791
- var _v$20 = `app-admin-banner app-admin-banner--${n.tone}`, _v$21 = n.code;
14792
- _v$20 !== _p$.e && className(_el$87, _p$.e = _v$20);
14793
- _v$21 !== _p$.t && setAttribute(_el$87, "data-code", _p$.t = _v$21);
14884
+ var _v$22 = `app-admin-banner app-admin-banner--${n.tone}`, _v$23 = n.code;
14885
+ _v$22 !== _p$.e && className(_el$106, _p$.e = _v$22);
14886
+ _v$23 !== _p$.t && setAttribute(_el$106, "data-code", _p$.t = _v$23);
14794
14887
  return _p$;
14795
14888
  }, {
14796
14889
  e: void 0,
14797
14890
  t: void 0
14798
14891
  });
14799
- return _el$87;
14892
+ return _el$106;
14800
14893
  })()
14801
- }), _el$77);
14802
- insert(_el$79, (() => {
14894
+ }), _el$96);
14895
+ insert(_el$98, (() => {
14803
14896
  var _c$4 = memo(() => !!reviewPlan());
14804
14897
  return () => _c$4() ? pharmacyLabel(reviewPlan()) : "";
14805
14898
  })());
14806
- insert(_el$77, () => props.productName, _el$82);
14807
- effect((_$p) => style(_el$83, {
14899
+ insert(_el$96, () => props.productName, _el$101);
14900
+ effect((_$p) => style(_el$102, {
14808
14901
  ...hint2
14809
14902
  }, _$p));
14810
- return _el$76;
14903
+ return _el$95;
14811
14904
  }
14812
14905
  }), createComponent(Match, {
14813
14906
  get when() {
@@ -14829,11 +14922,11 @@ function AddPharmacyDialog(props) {
14829
14922
  return createComponent(Waiting, {
14830
14923
  title: "Saving\u2026 this can take up to a minute. Don\u2019t close this page.",
14831
14924
  get children() {
14832
- var _el$84 = _tmpl$278();
14833
- effect((_$p) => style(_el$84, {
14925
+ var _el$103 = _tmpl$3111();
14926
+ effect((_$p) => style(_el$103, {
14834
14927
  ...hint2
14835
14928
  }, _$p));
14836
- return _el$84;
14929
+ return _el$103;
14837
14930
  }
14838
14931
  });
14839
14932
  }
@@ -14842,9 +14935,9 @@ function AddPharmacyDialog(props) {
14842
14935
  return kind() === "failed";
14843
14936
  },
14844
14937
  get children() {
14845
- var _el$85 = _tmpl$285(), _el$86 = _el$85.firstChild;
14846
- insert(_el$86, () => flow.state().message);
14847
- return _el$85;
14938
+ var _el$104 = _tmpl$3210(), _el$105 = _el$104.firstChild;
14939
+ insert(_el$105, () => flow.state().message);
14940
+ return _el$104;
14848
14941
  }
14849
14942
  })];
14850
14943
  }
@@ -14863,8 +14956,8 @@ function SinglePharmacySection(props) {
14863
14956
  const rows = () => props.product.pharmacies ?? [];
14864
14957
  const excluded = createMemo(() => new Set(rows().flatMap((p) => p.pharmacyId ? [p.pharmacyId] : [])));
14865
14958
  return (() => {
14866
- var _el$89 = _tmpl$3210(), _el$90 = _el$89.firstChild, _el$91 = _el$90.firstChild, _el$92 = _el$91.nextSibling, _el$93 = _el$90.nextSibling; _el$93.firstChild;
14867
- insert(_el$92, createComponent(AddPharmacyButton, {
14959
+ var _el$108 = _tmpl$363(), _el$109 = _el$108.firstChild, _el$110 = _el$109.firstChild, _el$111 = _el$110.nextSibling, _el$112 = _el$109.nextSibling; _el$112.firstChild;
14960
+ insert(_el$111, createComponent(AddPharmacyButton, {
14868
14961
  flow,
14869
14962
  get unsaved() {
14870
14963
  return props.unsaved;
@@ -14874,20 +14967,20 @@ function SinglePharmacySection(props) {
14874
14967
  },
14875
14968
  describedBy: "product-pharmacies-hint"
14876
14969
  }));
14877
- insert(_el$93, createComponent(Show, {
14970
+ insert(_el$112, createComponent(Show, {
14878
14971
  get when() {
14879
14972
  return props.unsaved;
14880
14973
  },
14881
14974
  get children() {
14882
- return _tmpl$304();
14975
+ return _tmpl$3410();
14883
14976
  }
14884
14977
  }), null);
14885
- insert(_el$89, createComponent(Show, {
14978
+ insert(_el$108, createComponent(Show, {
14886
14979
  get when() {
14887
14980
  return known();
14888
14981
  },
14889
14982
  get fallback() {
14890
- return _tmpl$3310();
14983
+ return _tmpl$372();
14891
14984
  },
14892
14985
  get children() {
14893
14986
  return createComponent(Show, {
@@ -14895,39 +14988,39 @@ function SinglePharmacySection(props) {
14895
14988
  return rows().length > 0;
14896
14989
  },
14897
14990
  get fallback() {
14898
- return _tmpl$3410();
14991
+ return _tmpl$382();
14899
14992
  },
14900
14993
  get children() {
14901
- var _el$97 = _tmpl$3111();
14902
- insert(_el$97, createComponent(For, {
14994
+ var _el$116 = _tmpl$353();
14995
+ insert(_el$116, createComponent(For, {
14903
14996
  get each() {
14904
14997
  return rows();
14905
14998
  },
14906
14999
  children: (p) => (() => {
14907
- var _el$100 = _tmpl$363(), _el$101 = _el$100.firstChild, _el$102 = _el$101.firstChild, _el$103 = _el$102.nextSibling, _el$104 = _el$103.firstChild, _el$106 = _el$104.nextSibling; _el$106.firstChild;
14908
- insert(_el$102, () => p.rank);
14909
- insert(_el$104, () => p.pharmacyName ?? p.drugName ?? "Pharmacy");
14910
- insert(_el$103, createComponent(Show, {
15000
+ var _el$119 = _tmpl$402(), _el$120 = _el$119.firstChild, _el$121 = _el$120.firstChild, _el$122 = _el$121.nextSibling, _el$123 = _el$122.firstChild, _el$125 = _el$123.nextSibling; _el$125.firstChild;
15001
+ insert(_el$121, () => p.rank);
15002
+ insert(_el$123, () => p.pharmacyName ?? p.drugName ?? "Pharmacy");
15003
+ insert(_el$122, createComponent(Show, {
14911
15004
  get when() {
14912
15005
  return memo(() => !!p.pharmacyName)() && p.drugName;
14913
15006
  },
14914
15007
  get children() {
14915
- var _el$105 = _tmpl$353();
14916
- insert(_el$105, () => p.drugName);
14917
- return _el$105;
15008
+ var _el$124 = _tmpl$392();
15009
+ insert(_el$124, () => p.drugName);
15010
+ return _el$124;
14918
15011
  }
14919
- }), _el$106);
14920
- insert(_el$106, () => p.rank, null);
14921
- effect(() => _el$100.classList.toggle("is-muted", !p.enabled));
14922
- return _el$100;
15012
+ }), _el$125);
15013
+ insert(_el$125, () => p.rank, null);
15014
+ effect(() => _el$119.classList.toggle("is-muted", !p.enabled));
15015
+ return _el$119;
14923
15016
  })()
14924
15017
  }));
14925
- return _el$97;
15018
+ return _el$116;
14926
15019
  }
14927
15020
  });
14928
15021
  }
14929
15022
  }), null);
14930
- insert(_el$89, createComponent(Show, {
15023
+ insert(_el$108, createComponent(Show, {
14931
15024
  get when() {
14932
15025
  return flow.state().kind === "picking";
14933
15026
  },
@@ -14940,13 +15033,13 @@ function SinglePharmacySection(props) {
14940
15033
  });
14941
15034
  }
14942
15035
  }), null);
14943
- insert(_el$89, createComponent(AddPharmacyDialog, {
15036
+ insert(_el$108, createComponent(AddPharmacyDialog, {
14944
15037
  flow,
14945
15038
  get productName() {
14946
15039
  return props.product.name;
14947
15040
  }
14948
15041
  }), null);
14949
- return _el$89;
15042
+ return _el$108;
14950
15043
  })();
14951
15044
  }
14952
15045
  delegateEvents(["click", "input"]);
@@ -14990,10 +15083,10 @@ var _tmpl$3311 = /* @__PURE__ */ template(`<span class=app-admin-text-muted styl
14990
15083
  var _tmpl$3411 = /* @__PURE__ */ template(`<span class=app-admin-catalog-chip><button type=button>\xD7`);
14991
15084
  var _tmpl$354 = /* @__PURE__ */ template(`<option>`);
14992
15085
  var _tmpl$364 = /* @__PURE__ */ template(`<li>`);
14993
- var _tmpl$372 = /* @__PURE__ */ template(`<div class=app-admin-catalog-chips>`);
14994
- var _tmpl$382 = /* @__PURE__ */ template(`<p style=margin:0>Suggestion only \u2014 pick one to start adding it; nothing is added until you confirm. `);
14995
- var _tmpl$392 = /* @__PURE__ */ template(`<div class=app-admin-catalog-row aria-label="Equivalent drugs"style=margin-top:0.75rem>`);
14996
- var _tmpl$402 = /* @__PURE__ */ template(`<p style=margin:0>No name-based matches at other pharmacies.`);
15086
+ var _tmpl$373 = /* @__PURE__ */ template(`<div class=app-admin-catalog-chips>`);
15087
+ var _tmpl$383 = /* @__PURE__ */ template(`<p style=margin:0>Suggestion only \u2014 pick one to start adding it; nothing is added until you confirm. `);
15088
+ var _tmpl$393 = /* @__PURE__ */ template(`<div class=app-admin-catalog-row aria-label="Equivalent drugs"style=margin-top:0.75rem>`);
15089
+ var _tmpl$403 = /* @__PURE__ */ template(`<p style=margin:0>No name-based matches at other pharmacies.`);
14997
15090
  var _tmpl$4110 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm"> (<!>)`);
14998
15091
  var _tmpl$4210 = /* @__PURE__ */ template(`<div class="app-admin-banner app-admin-banner--warn"role=status style=margin-bottom:0.75rem><ul class=app-admin-catalog-problems>`);
14999
15092
  var _tmpl$4310 = /* @__PURE__ */ template(`<div class=app-admin-catalog-matrix-wrap><table class=app-admin-catalog-matrix aria-label="Which pharmacy can make which strength"><thead><tr><th scope=col>Strength</th></tr></thead><tbody>`);
@@ -15640,14 +15733,14 @@ function FulfillmentSection(props) {
15640
15733
  },
15641
15734
  keyed: true,
15642
15735
  children: (eq) => (() => {
15643
- var _el$107 = _tmpl$392();
15736
+ var _el$107 = _tmpl$393();
15644
15737
  insert(_el$107, createComponent(Show, {
15645
15738
  get when() {
15646
15739
  return eq.matches.length > 0;
15647
15740
  },
15648
15741
  get fallback() {
15649
15742
  return (() => {
15650
- var _el$111 = _tmpl$402();
15743
+ var _el$111 = _tmpl$403();
15651
15744
  effect((_$p) => style(_el$111, {
15652
15745
  ...hint3
15653
15746
  }, _$p));
@@ -15656,7 +15749,7 @@ function FulfillmentSection(props) {
15656
15749
  },
15657
15750
  get children() {
15658
15751
  return [(() => {
15659
- var _el$108 = _tmpl$372();
15752
+ var _el$108 = _tmpl$373();
15660
15753
  insert(_el$108, createComponent(For, {
15661
15754
  get each() {
15662
15755
  return eq.matches;
@@ -15684,7 +15777,7 @@ function FulfillmentSection(props) {
15684
15777
  }));
15685
15778
  return _el$108;
15686
15779
  })(), (() => {
15687
- var _el$109 = _tmpl$382(); _el$109.firstChild;
15780
+ var _el$109 = _tmpl$383(); _el$109.firstChild;
15688
15781
  insert(_el$109, () => eq.note, null);
15689
15782
  effect((_$p) => style(_el$109, {
15690
15783
  ...hint3
@@ -16162,10 +16255,10 @@ var _tmpl$3312 = /* @__PURE__ */ template(`<div class="app-admin-banner app-admi
16162
16255
  var _tmpl$3412 = /* @__PURE__ */ template(`<p>Converting takes about a minute. For part of that time this product\u2019s strengths may be missing from your store; existing subscriptions and refills keep working. You can undo the conversion afterwards.`);
16163
16256
  var _tmpl$356 = /* @__PURE__ */ template(`<li> \u2192 <strong>`);
16164
16257
  var _tmpl$365 = /* @__PURE__ */ template(`<li> \u2192 <strong>not carried over`);
16165
- var _tmpl$373 = /* @__PURE__ */ template(`<li>: `);
16166
- var _tmpl$383 = /* @__PURE__ */ template(`<strong>needs a price before it can be sold`);
16167
- var _tmpl$393 = /* @__PURE__ */ template(`<div class="app-admin-banner app-admin-banner--warn"role=group aria-label="Confirm undo"style=margin-bottom:0><span><strong>Put this product back on its original pharmacy drug?</strong><span class=app-admin-convert-detail></span><span style=display:flex;gap:0.5rem;margin-top:0.5rem;flex-wrap:wrap><button type=button class="app-admin-btn app-admin-btn-danger app-admin-btn-sm">Yes, undo the conversion</button><button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm">Cancel`);
16168
- var _tmpl$403 = /* @__PURE__ */ template(`<div class="app-admin-banner app-admin-banner--warn"role=group aria-label="Overwrite later edits"style=margin-top:0.75rem;margin-bottom:0><span><strong>This product was edited after it was converted.</strong><span class=app-admin-convert-detail>Undoing anyway restores the original links and prices and discards those later edits. Their current values are recorded first.</span><button type=button class="app-admin-btn app-admin-btn-danger app-admin-btn-sm"style=margin-top:0.5rem>Undo anyway, discarding those edits`);
16258
+ var _tmpl$374 = /* @__PURE__ */ template(`<li>: `);
16259
+ var _tmpl$384 = /* @__PURE__ */ template(`<strong>needs a price before it can be sold`);
16260
+ var _tmpl$394 = /* @__PURE__ */ template(`<div class="app-admin-banner app-admin-banner--warn"role=group aria-label="Confirm undo"style=margin-bottom:0><span><strong>Put this product back on its original pharmacy drug?</strong><span class=app-admin-convert-detail></span><span style=display:flex;gap:0.5rem;margin-top:0.5rem;flex-wrap:wrap><button type=button class="app-admin-btn app-admin-btn-danger app-admin-btn-sm">Yes, undo the conversion</button><button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm">Cancel`);
16261
+ var _tmpl$404 = /* @__PURE__ */ template(`<div class="app-admin-banner app-admin-banner--warn"role=group aria-label="Overwrite later edits"style=margin-top:0.75rem;margin-bottom:0><span><strong>This product was edited after it was converted.</strong><span class=app-admin-convert-detail>Undoing anyway restores the original links and prices and discards those later edits. Their current values are recorded first.</span><button type=button class="app-admin-btn app-admin-btn-danger app-admin-btn-sm"style=margin-top:0.5rem>Undo anyway, discarding those edits`);
16169
16262
  var _tmpl$4111 = /* @__PURE__ */ template(`<section class=app-admin-catalog-block data-testid=conversion-undo aria-labelledby=conversion-undo-title><h4 class=app-admin-label id=conversion-undo-title style="margin:0 0 0.5rem">Undo conversion</h4><p style=margin-bottom:0.5rem>Puts this product back on its original pharmacy drug and its original prices, exactly as they were before it was converted. It does <strong>not</strong> undo everything:</p><ul class=app-admin-convert-list style=font-size:0.75rem><li>Requests already placed under the catalog item keep it.</li><li>Refills of subscriptions whose last request used the catalog item keep using it \u2014 that works only while the item stays switched on.</li><li>The catalog item still exists; undoing doesn\u2019t delete it.</li><li>If the item stays switched on, this product shows no strengths in your store until you switch it off or convert the product again.</li></ul><p style="margin:0.5rem 0">After the undo we list exactly what it did not undo.</p><label class=app-admin-catalog-toggle style="margin:0.5rem 0"><input type=checkbox><span>Also switch off the catalog item</span></label><p style=margin-bottom:0.75rem>Only done when nothing else uses the item. If it can\u2019t be switched off we say why; the product is restored either way.`);
16170
16263
  var _tmpl$4211 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-danger">Undo conversion\u2026`);
16171
16264
  var _tmpl$4311 = /* @__PURE__ */ template(`<div class=app-admin-convert data-testid=conversion-undone><div class="app-admin-banner app-admin-banner--success"role=status><span><strong>The conversion was undone.</strong> The product is back on its original pharmacy drug and prices.`);
@@ -16685,14 +16778,14 @@ function Confirm(props) {
16685
16778
  return summary.strengthsAfter;
16686
16779
  },
16687
16780
  children: (x) => (() => {
16688
- var _el$104 = _tmpl$373(), _el$105 = _el$104.firstChild;
16781
+ var _el$104 = _tmpl$374(), _el$105 = _el$104.firstChild;
16689
16782
  insert(_el$104, () => x.label, _el$105);
16690
16783
  insert(_el$104, createComponent(Show, {
16691
16784
  get when() {
16692
16785
  return !x.needsPrice;
16693
16786
  },
16694
16787
  get fallback() {
16695
- return _tmpl$383();
16788
+ return _tmpl$384();
16696
16789
  },
16697
16790
  get children() {
16698
16791
  return [(() => {
@@ -16750,7 +16843,7 @@ function UndoSection(props) {
16750
16843
  })();
16751
16844
  },
16752
16845
  get children() {
16753
- var _el$117 = _tmpl$393(), _el$118 = _el$117.firstChild, _el$119 = _el$118.firstChild, _el$120 = _el$119.nextSibling, _el$121 = _el$120.nextSibling, _el$122 = _el$121.firstChild, _el$123 = _el$122.nextSibling;
16846
+ var _el$117 = _tmpl$394(), _el$118 = _el$117.firstChild, _el$119 = _el$118.firstChild, _el$120 = _el$119.nextSibling, _el$121 = _el$120.nextSibling, _el$122 = _el$121.firstChild, _el$123 = _el$122.nextSibling;
16754
16847
  insert(_el$120, () => alsoOff() ? "The catalog item will also be switched off if nothing else needs it." : "The catalog item is left as it is.");
16755
16848
  _el$122.$$click = () => {
16756
16849
  setAsking(false);
@@ -16768,7 +16861,7 @@ function UndoSection(props) {
16768
16861
  return refusedEdits();
16769
16862
  },
16770
16863
  get children() {
16771
- var _el$124 = _tmpl$403(), _el$125 = _el$124.firstChild, _el$126 = _el$125.firstChild, _el$127 = _el$126.nextSibling, _el$128 = _el$127.nextSibling;
16864
+ var _el$124 = _tmpl$404(), _el$125 = _el$124.firstChild, _el$126 = _el$125.firstChild, _el$127 = _el$126.nextSibling, _el$128 = _el$127.nextSibling;
16772
16865
  _el$128.$$click = () => void props.flow.undo({
16773
16866
  deactivateItem: alsoOff(),
16774
16867
  force: true
@@ -17447,10 +17540,10 @@ var _tmpl$3313 = /* @__PURE__ */ template(`<div style=margin-top:0.5rem;font-siz
17447
17540
  var _tmpl$3413 = /* @__PURE__ */ template(`<span style="display:inline-flex;align-items:center;gap:0.25rem;padding:0.125rem 0.5rem;background:var(--app-admin-warning-bg);border:1px solid var(--app-admin-warning-bg-strong);border-radius:var(--app-admin-radius-sm)"><button type=button title=Remove style=background:none;border:none;color:inherit;cursor:pointer;line-height:1;padding:0>\xD7`);
17448
17541
  var _tmpl$358 = /* @__PURE__ */ template(`<tr><th class=app-admin-table-cell--check><input type=checkbox></th><th>Drug</th><th>Price</th><th class=app-admin-products-col-dosages>Strengths</th><th>Categories</th><th class=app-admin-table-cell--actions><span class=app-admin-sr-only>Actions`);
17449
17542
  var _tmpl$366 = /* @__PURE__ */ template(`<span class=app-admin-text-muted title="Priced and ready \u2014 check it and press &quot;Add to store&quot;"style=font-size:0.7rem;margin-left:0.5rem;white-space:nowrap>Ready to add`);
17450
- var _tmpl$374 = /* @__PURE__ */ template(`<span style=opacity:0.6;font-size:0.75rem>Set categories`);
17451
- var _tmpl$384 = /* @__PURE__ */ template(`<tr tabindex=0 title="Click to edit price and details; use the checkbox to move it"><td class="app-admin-table-cell--no-label app-admin-table-cell--check"><input type=checkbox></td><td data-label=Drug class=app-admin-table-cell--title><div class=app-admin-product-cell><span class=app-admin-product-thumb></span><div class=app-admin-product-cell__text><span class=app-admin-product-name></span><div class="app-admin-product-id app-admin-text-mono app-admin-text-muted"></div></div></div></td><td data-label=Price class=app-admin-table-cell--num><button type=button></button></td><td data-label=Strengths class="app-admin-text-muted app-admin-products-col-dosages"style=font-size:0.75rem></td><td data-label=Categories class=app-admin-text-muted><button type=button class=app-admin-cell-btn title="Set categories"style=display:flex;flex-wrap:wrap;gap:0.25rem></button></td><td class="app-admin-table-cell--no-label app-admin-table-cell--actions"><button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm"title="Edit price, strengths, categories and details"><span aria-hidden=true>\u270E</span> Edit`);
17452
- var _tmpl$394 = /* @__PURE__ */ template(`<img alt loading=lazy>`, true, false, false);
17453
- var _tmpl$404 = /* @__PURE__ */ template(`<span>Needs a price`);
17543
+ var _tmpl$375 = /* @__PURE__ */ template(`<span style=opacity:0.6;font-size:0.75rem>Set categories`);
17544
+ var _tmpl$385 = /* @__PURE__ */ template(`<tr tabindex=0 title="Click to edit price and details; use the checkbox to move it"><td class="app-admin-table-cell--no-label app-admin-table-cell--check"><input type=checkbox></td><td data-label=Drug class=app-admin-table-cell--title><div class=app-admin-product-cell><span class=app-admin-product-thumb></span><div class=app-admin-product-cell__text><span class=app-admin-product-name></span><div class="app-admin-product-id app-admin-text-mono app-admin-text-muted"></div></div></div></td><td data-label=Price class=app-admin-table-cell--num><button type=button></button></td><td data-label=Strengths class="app-admin-text-muted app-admin-products-col-dosages"style=font-size:0.75rem></td><td data-label=Categories class=app-admin-text-muted><button type=button class=app-admin-cell-btn title="Set categories"style=display:flex;flex-wrap:wrap;gap:0.25rem></button></td><td class="app-admin-table-cell--no-label app-admin-table-cell--actions"><button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm"title="Edit price, strengths, categories and details"><span aria-hidden=true>\u270E</span> Edit`);
17545
+ var _tmpl$395 = /* @__PURE__ */ template(`<img alt loading=lazy>`, true, false, false);
17546
+ var _tmpl$405 = /* @__PURE__ */ template(`<span>Needs a price`);
17454
17547
  var _tmpl$4112 = /* @__PURE__ */ template(`<span class=app-admin-text-muted style=font-size:0.75rem>`);
17455
17548
  var _tmpl$4212 = /* @__PURE__ */ template(`<span style=opacity:0.5>-`);
17456
17549
  var _tmpl$4312 = /* @__PURE__ */ template(`<span style="padding:0.125rem 0.375rem;background:rgba(127,127,127,0.1);border-radius:var(--app-admin-radius-sm);font-size:0.75rem">`);
@@ -18674,7 +18767,7 @@ function Products(props) {
18674
18767
  })();
18675
18768
  };
18676
18769
  const renderRow = (entry) => (() => {
18677
- var _el$107 = _tmpl$384(), _el$108 = _el$107.firstChild, _el$109 = _el$108.firstChild, _el$110 = _el$108.nextSibling, _el$111 = _el$110.firstChild, _el$112 = _el$111.firstChild, _el$113 = _el$112.nextSibling, _el$114 = _el$113.firstChild, _el$116 = _el$114.nextSibling, _el$117 = _el$110.nextSibling, _el$118 = _el$117.firstChild, _el$119 = _el$117.nextSibling, _el$120 = _el$119.nextSibling, _el$121 = _el$120.firstChild, _el$123 = _el$120.nextSibling, _el$124 = _el$123.firstChild;
18770
+ var _el$107 = _tmpl$385(), _el$108 = _el$107.firstChild, _el$109 = _el$108.firstChild, _el$110 = _el$108.nextSibling, _el$111 = _el$110.firstChild, _el$112 = _el$111.firstChild, _el$113 = _el$112.nextSibling, _el$114 = _el$113.firstChild, _el$116 = _el$114.nextSibling, _el$117 = _el$110.nextSibling, _el$118 = _el$117.firstChild, _el$119 = _el$117.nextSibling, _el$120 = _el$119.nextSibling, _el$121 = _el$120.firstChild, _el$123 = _el$120.nextSibling, _el$124 = _el$123.firstChild;
18678
18771
  _el$107.$$keydown = (e) => {
18679
18772
  if (e.target !== e.currentTarget) return;
18680
18773
  if (e.key === "Enter" || e.key === " ") {
@@ -18690,7 +18783,7 @@ function Products(props) {
18690
18783
  return entry.product?.thumbnailUrl;
18691
18784
  },
18692
18785
  children: (url) => (() => {
18693
- var _el$125 = _tmpl$394();
18786
+ var _el$125 = _tmpl$395();
18694
18787
  effect(() => setAttribute(_el$125, "src", url()));
18695
18788
  return _el$125;
18696
18789
  })()
@@ -18712,7 +18805,7 @@ function Products(props) {
18712
18805
  return memo(() => !!(entryIsPriced(entry) && entry.product))() && describePrice(entry.product, entry.dosages);
18713
18806
  },
18714
18807
  get fallback() {
18715
- return _tmpl$404();
18808
+ return _tmpl$405();
18716
18809
  },
18717
18810
  children: (p) => [memo(() => p().amount), " ", (() => {
18718
18811
  var _el$127 = _tmpl$4112();
@@ -18748,7 +18841,7 @@ function Products(props) {
18748
18841
  return !entry.product?.categories?.length;
18749
18842
  },
18750
18843
  get children() {
18751
- return _tmpl$374();
18844
+ return _tmpl$375();
18752
18845
  }
18753
18846
  }), null);
18754
18847
  _el$123.$$click = (e) => e.stopPropagation();
@@ -21248,7 +21341,7 @@ function Support(props = {}) {
21248
21341
  delegateEvents(["click"]);
21249
21342
  var _tmpl$371 = /* @__PURE__ */ template(`<div class=app-admin-card style=overflow:hidden><table class=app-admin-table><thead><tr><th>Date</th><th>Provider</th><th>Event Type</th><th>Status</th><th style=width:2.5rem></th></tr></thead><tbody>`);
21250
21343
  var _tmpl$2105 = /* @__PURE__ */ template(`<div>`);
21251
- var _tmpl$375 = /* @__PURE__ */ template(`<tr class=is-clickable><td data-label=Date class=app-admin-text-muted></td><td data-label=Provider style=font-weight:500></td><td data-label="Event type"class="app-admin-text-mono app-admin-text-muted"style=font-size:0.75rem></td><td data-label=Status></td><td class=app-admin-text-muted style=font-size:0.75rem><span style="display:inline-block;transition:transform 0.15s">\u25B6`);
21344
+ var _tmpl$376 = /* @__PURE__ */ template(`<tr class=is-clickable><td data-label=Date class=app-admin-text-muted></td><td data-label=Provider style=font-weight:500></td><td data-label="Event type"class="app-admin-text-mono app-admin-text-muted"style=font-size:0.75rem></td><td data-label=Status></td><td class=app-admin-text-muted style=font-size:0.75rem><span style="display:inline-block;transition:transform 0.15s">\u25B6`);
21252
21345
  var _tmpl$457 = /* @__PURE__ */ template(`<tr><td colspan=5><pre class="app-admin-text-mono app-admin-text-muted"style=font-size:0.75rem;background:var(--app-admin-surface-light);border-radius:var(--app-admin-radius-sm);padding:1rem;overflow-x:auto;white-space:pre-wrap;word-break:break-all;margin:0>`);
21253
21346
  function Webhooks() {
21254
21347
  const [expanded, setExpanded] = createSignal(null);
@@ -21284,7 +21377,7 @@ function Webhooks() {
21284
21377
  return webhooks() ?? [];
21285
21378
  },
21286
21379
  children: (event) => [(() => {
21287
- var _el$10 = _tmpl$375(), _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling, _el$13 = _el$12.nextSibling, _el$14 = _el$13.nextSibling, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild;
21380
+ var _el$10 = _tmpl$376(), _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling, _el$13 = _el$12.nextSibling, _el$14 = _el$13.nextSibling, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild;
21288
21381
  _el$10.$$click = () => toggleExpand(String(event.id));
21289
21382
  insert(_el$11, () => event.date);
21290
21383
  insert(_el$12, () => event.provider || "Authorize.Net");
@@ -21529,9 +21622,9 @@ function buildEmailBodyExtensions(lookup) {
21529
21622
  }
21530
21623
 
21531
21624
  // src/pages/admin/EmailBodyEditor.tsx
21532
- var _tmpl$376 = /* @__PURE__ */ template(`<button type=button>`);
21625
+ var _tmpl$377 = /* @__PURE__ */ template(`<button type=button>`);
21533
21626
  var _tmpl$2106 = /* @__PURE__ */ template(`<strong>B`);
21534
- var _tmpl$377 = /* @__PURE__ */ template(`<em>I`);
21627
+ var _tmpl$378 = /* @__PURE__ */ template(`<em>I`);
21535
21628
  var _tmpl$458 = /* @__PURE__ */ template(`<u>U`);
21536
21629
  var _tmpl$549 = /* @__PURE__ */ template(`<div class=app-admin-email-menu role=menu aria-label=Placeholders>`);
21537
21630
  var _tmpl$646 = /* @__PURE__ */ template(`<div class=app-admin-email-editor><div class=app-admin-email-toolbar role=toolbar aria-label=Formatting><span class=app-admin-email-tool-sep aria-hidden=true></span><span class=app-admin-email-tool-sep aria-hidden=true></span><span class=app-admin-email-tool-sep aria-hidden=true></span><div class=app-admin-email-menu-wrap><button type=button class=app-admin-email-tool aria-haspopup=menu>Insert placeholder &#9662;</button></div></div><div class=app-admin-email-canvas><div class=app-admin-email-page>`);
@@ -21794,7 +21887,7 @@ function EmailBodyEditor(props) {
21794
21887
  moveFocus(items, document.activeElement, e.key === "ArrowRight" ? 1 : -1);
21795
21888
  };
21796
21889
  const ToolButton = (p) => (() => {
21797
- var _el$ = _tmpl$376();
21890
+ var _el$ = _tmpl$377();
21798
21891
  addEventListener(_el$, "click", p.onClick, true);
21799
21892
  _el$.$$mousedown = (e) => e.preventDefault();
21800
21893
  insert(_el$, () => p.children);
@@ -21829,7 +21922,7 @@ function EmailBodyEditor(props) {
21829
21922
  pressed: () => isActive("italic"),
21830
21923
  onClick: () => run((ed) => ed.chain().focus().toggleItalic().run()),
21831
21924
  get children() {
21832
- return _tmpl$377();
21925
+ return _tmpl$378();
21833
21926
  }
21834
21927
  }), _el$7);
21835
21928
  insert(_el$3, createComponent(ToolButton, {
@@ -22018,9 +22111,9 @@ function EmailBodyEditor(props) {
22018
22111
  delegateEvents(["mousedown", "click", "keydown", "input"]);
22019
22112
 
22020
22113
  // src/pages/admin/EmailTextEditor.tsx
22021
- var _tmpl$378 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;color:var(--app-admin-fg-muted);margin:0.5rem 0 0">`);
22114
+ var _tmpl$379 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;color:var(--app-admin-fg-muted);margin:0.5rem 0 0">`);
22022
22115
  var _tmpl$2107 = /* @__PURE__ */ template(`<div style="padding:0.75rem 0.875rem;background:var(--app-admin-info-bg);border:1px solid var(--app-admin-border);border-radius:var(--app-admin-radius-sm)"><p style=font-size:0.75rem;font-weight:600;margin-bottom:0.5rem>Placeholders<span style=font-weight:400;color:var(--app-admin-fg-muted)> &mdash; replaced with the real value when the email is sent. Click the subject or the body, then a placeholder to insert it.</span></p><div style=display:flex;flex-wrap:wrap;gap:0.375rem>`);
22023
- var _tmpl$379 = /* @__PURE__ */ template(`<p class=app-admin-field-error role=alert>This email is too long to save (<!> of <!> characters, formatting included). Shorten it.`);
22116
+ var _tmpl$380 = /* @__PURE__ */ template(`<p class=app-admin-field-error role=alert>This email is too long to save (<!> of <!> characters, formatting included). Shorten it.`);
22024
22117
  var _tmpl$459 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.25rem><div><label class=app-admin-label>Subject</label><input type=text aria-label=Subject class=app-admin-input><p style=font-size:0.75rem;color:var(--app-admin-fg-subtle);margin-top:0.25rem>/</p></div><div><span class=app-admin-label>Body`);
22025
22118
  var _tmpl$550 = /* @__PURE__ */ template(`<button type=button class=app-admin-email-token-btn>`);
22026
22119
  var TEMPLATE_LIMITS = {
@@ -22092,7 +22185,7 @@ function TemplateTextEditor(props) {
22092
22185
  return props.note;
22093
22186
  },
22094
22187
  get children() {
22095
- var _el$7 = _tmpl$378();
22188
+ var _el$7 = _tmpl$379();
22096
22189
  insert(_el$7, () => props.note);
22097
22190
  return _el$7;
22098
22191
  }
@@ -22128,7 +22221,7 @@ function TemplateTextEditor(props) {
22128
22221
  return bodyTooLong();
22129
22222
  },
22130
22223
  get children() {
22131
- var _el$13 = _tmpl$379(), _el$14 = _el$13.firstChild, _el$18 = _el$14.nextSibling, _el$15 = _el$18.nextSibling, _el$19 = _el$15.nextSibling; _el$19.nextSibling;
22224
+ var _el$13 = _tmpl$380(), _el$14 = _el$13.firstChild, _el$18 = _el$14.nextSibling, _el$15 = _el$18.nextSibling, _el$19 = _el$15.nextSibling; _el$19.nextSibling;
22132
22225
  insert(_el$13, () => props.value.body.length.toLocaleString(), _el$18);
22133
22226
  insert(_el$13, () => TEMPLATE_LIMITS.body.toLocaleString(), _el$19);
22134
22227
  return _el$13;
@@ -22142,9 +22235,9 @@ function TemplateTextEditor(props) {
22142
22235
  delegateEvents(["input", "mousedown", "click"]);
22143
22236
 
22144
22237
  // src/pages/admin/EmailTemplates.tsx
22145
- var _tmpl$380 = /* @__PURE__ */ template(`<button type=button style="display:block;width:100%;text-align:left;padding:0.5rem 0.75rem;font-size:0.8rem;font-weight:500;border:none;border-radius:var(--app-admin-radius-sm);cursor:pointer;transition:color 0.15s, background 0.15s">`);
22238
+ var _tmpl$381 = /* @__PURE__ */ template(`<button type=button style="display:block;width:100%;text-align:left;padding:0.5rem 0.75rem;font-size:0.8rem;font-weight:500;border:none;border-radius:var(--app-admin-radius-sm);cursor:pointer;transition:color 0.15s, background 0.15s">`);
22146
22239
  var _tmpl$2108 = /* @__PURE__ */ template(`<button type=button style="display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;padding:0.4rem 0.5rem;font-size:0.7rem;font-weight:700;letter-spacing:0.03em;text-transform:uppercase;border:none;background:transparent;color:var(--app-admin-fg-subtle);cursor:pointer"><span></span><span style=font-size:0.65rem>`);
22147
- var _tmpl$381 = /* @__PURE__ */ template(`<div style=display:flex;gap:1.5rem;align-items:flex-start><div class=app-admin-card style=min-width:14rem;max-width:14rem;padding:0.5rem;flex-shrink:0;max-height:70vh;overflow-y:auto;position:sticky;top:1rem><div style=margin-bottom:0.25rem>`);
22240
+ var _tmpl$386 = /* @__PURE__ */ template(`<div style=display:flex;gap:1.5rem;align-items:flex-start><div class=app-admin-card style=min-width:14rem;max-width:14rem;padding:0.5rem;flex-shrink:0;max-height:70vh;overflow-y:auto;position:sticky;top:1rem><div style=margin-bottom:0.25rem>`);
22148
22241
  var _tmpl$460 = /* @__PURE__ */ template(`<div>`);
22149
22242
  var _tmpl$551 = /* @__PURE__ */ template(`<div class=app-admin-empty>No email templates configured.`);
22150
22243
  var _tmpl$647 = /* @__PURE__ */ template(`<div style=margin-bottom:0.25rem>`);
@@ -22476,7 +22569,7 @@ function EmailTemplates(props = {}) {
22476
22569
  }
22477
22570
  };
22478
22571
  const navButton = (opts) => (() => {
22479
- var _el$ = _tmpl$380();
22572
+ var _el$ = _tmpl$381();
22480
22573
  addEventListener(_el$, "click", opts.onClick, true);
22481
22574
  insert(_el$, () => opts.label);
22482
22575
  effect((_p$) => {
@@ -22519,7 +22612,7 @@ function EmailTemplates(props = {}) {
22519
22612
  return _tmpl$551();
22520
22613
  },
22521
22614
  get children() {
22522
- var _el$6 = _tmpl$381(), _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild;
22615
+ var _el$6 = _tmpl$386(), _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild;
22523
22616
  insert(_el$7, createComponent(For, {
22524
22617
  get each() {
22525
22618
  return categorizedKeys();
@@ -22681,9 +22774,9 @@ function EmailTemplates(props = {}) {
22681
22774
  })();
22682
22775
  }
22683
22776
  delegateEvents(["click", "input"]);
22684
- var _tmpl$385 = /* @__PURE__ */ template(`<p class=app-admin-text-muted style="font-size:0.75rem;margin:0;padding:0.625rem 1.25rem 0">Nothing here has been emailed, and nothing will be until you send it or turn automatic sending on.`);
22777
+ var _tmpl$387 = /* @__PURE__ */ template(`<p class=app-admin-text-muted style="font-size:0.75rem;margin:0;padding:0.625rem 1.25rem 0">Nothing here has been emailed, and nothing will be until you send it or turn automatic sending on.`);
22685
22778
  var _tmpl$2109 = /* @__PURE__ */ template(`<table class=app-admin-table><thead><tr><th>Person</th><th>Came from</th><th>Waiting</th><th>Step</th><th></th></tr></thead><tbody>`);
22686
- var _tmpl$386 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm">Send all due`);
22779
+ var _tmpl$388 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm">Send all due`);
22687
22780
  var _tmpl$461 = /* @__PURE__ */ template(`<button type=button class=app-admin-link-btn style=font-size:inherit>`);
22688
22781
  var _tmpl$554 = /* @__PURE__ */ template(`<tr><td data-label=Person></td><td data-label="Came from"></td><td data-label=Waiting></td><td data-label=Step> of </td><td class=app-admin-table-cell--end><div style=display:flex;gap:0.375rem;justify-content:flex-end><button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm"></button><button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm"title="Move past this step without emailing. They stay in the sequence for the next one.">Skip`);
22689
22782
  var _tmpl$648 = /* @__PURE__ */ template(`<span class=app-admin-text-muted style=font-size:0.75rem>No sequences yet \u2014 create one in the Sequences tab.`);
@@ -22720,9 +22813,9 @@ var _tmpl$3414 = /* @__PURE__ */ template(`<tr><td data-label=Person><div class=
22720
22813
  var _tmpl$3510 = /* @__PURE__ */ template(`<div><div style=font-size:0.75rem;margin-bottom:0.25rem></div><div style=display:grid;gap:0.25rem>`);
22721
22814
  var _tmpl$3610 = /* @__PURE__ */ template(`<label style=font-size:0.8125rem;display:flex;gap:0.375rem;align-items:center><input type=checkbox>`);
22722
22815
  var _tmpl$3710 = /* @__PURE__ */ template(`<option> \u2014 <!> off`);
22723
- var _tmpl$387 = /* @__PURE__ */ template(`<div>`);
22724
- var _tmpl$395 = /* @__PURE__ */ template(`<table class=app-admin-table><thead><tr><th>Name</th><th>Steps</th><th>Fed by</th><th>Sending</th><th>In it</th><th>Due now</th><th>Sent</th><th>Bought</th><th>Unsubscribed</th></tr></thead><tbody>`);
22725
- var _tmpl$405 = /* @__PURE__ */ template(`<div class=app-admin-card style=margin-top:1.25rem;overflow:hidden><div style="padding:1rem 1.25rem;border-bottom:1px solid var(--app-admin-border-soft);display:flex;justify-content:space-between;align-items:center"><h2 class=app-admin-heading style=font-size:0.9375rem;font-weight:600;margin:0>Sequences</h2><button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm">New sequence`);
22816
+ var _tmpl$389 = /* @__PURE__ */ template(`<div>`);
22817
+ var _tmpl$396 = /* @__PURE__ */ template(`<table class=app-admin-table><thead><tr><th>Name</th><th>Steps</th><th>Fed by</th><th>Sending</th><th>In it</th><th>Due now</th><th>Sent</th><th>Bought</th><th>Unsubscribed</th></tr></thead><tbody>`);
22818
+ var _tmpl$406 = /* @__PURE__ */ template(`<div class=app-admin-card style=margin-top:1.25rem;overflow:hidden><div style="padding:1rem 1.25rem;border-bottom:1px solid var(--app-admin-border-soft);display:flex;justify-content:space-between;align-items:center"><h2 class=app-admin-heading style=font-size:0.9375rem;font-weight:600;margin:0>Sequences</h2><button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm">New sequence`);
22726
22819
  var _tmpl$4113 = /* @__PURE__ */ template(`<div class=app-admin-text-muted style=font-size:0.75rem>`);
22727
22820
  var _tmpl$4213 = /* @__PURE__ */ template(`<tr><td data-label=Name><button type=button class=app-admin-link-btn style=font-size:inherit;font-weight:600></button></td><td data-label=Steps></td><td data-label="Fed by"></td><td data-label=Sending></td><td data-label="In it"></td><td data-label="Due now"></td><td data-label=Sent></td><td data-label=Bought></td><td data-label=Unsubscribed>`);
22728
22821
  var _tmpl$4313 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>by hand`);
@@ -22814,7 +22907,7 @@ function SequenceQueue(props) {
22814
22907
  return rows().length > 0;
22815
22908
  },
22816
22909
  get children() {
22817
- var _el$5 = _tmpl$386();
22910
+ var _el$5 = _tmpl$388();
22818
22911
  _el$5.$$click = () => void sendAll();
22819
22912
  effect(() => _el$5.disabled = busy() === "all");
22820
22913
  return _el$5;
@@ -22827,7 +22920,7 @@ function SequenceQueue(props) {
22827
22920
  return !props.sequence.autoSend;
22828
22921
  },
22829
22922
  get children() {
22830
- return _tmpl$385();
22923
+ return _tmpl$387();
22831
22924
  }
22832
22925
  }), createComponent(Show, {
22833
22926
  get when() {
@@ -23708,7 +23801,7 @@ function Sequences() {
23708
23801
  void refetchQueue();
23709
23802
  };
23710
23803
  return (() => {
23711
- var _el$116 = _tmpl$387();
23804
+ var _el$116 = _tmpl$389();
23712
23805
  insert(_el$116, createComponent(Show, {
23713
23806
  get when() {
23714
23807
  return !editing();
@@ -23726,7 +23819,7 @@ function Sequences() {
23726
23819
  },
23727
23820
  get fallback() {
23728
23821
  return (() => {
23729
- var _el$117 = _tmpl$405(), _el$118 = _el$117.firstChild, _el$119 = _el$118.firstChild, _el$120 = _el$119.nextSibling;
23822
+ var _el$117 = _tmpl$406(), _el$118 = _el$117.firstChild, _el$119 = _el$118.firstChild, _el$120 = _el$119.nextSibling;
23730
23823
  _el$120.$$click = () => setEditing(blankSequence());
23731
23824
  insert(_el$117, createComponent(Show, {
23732
23825
  get when() {
@@ -23746,7 +23839,7 @@ function Sequences() {
23746
23839
  });
23747
23840
  },
23748
23841
  get children() {
23749
- var _el$121 = _tmpl$395(), _el$122 = _el$121.firstChild, _el$123 = _el$122.nextSibling;
23842
+ var _el$121 = _tmpl$396(), _el$122 = _el$121.firstChild, _el$123 = _el$122.nextSibling;
23750
23843
  insert(_el$123, createComponent(For, {
23751
23844
  get each() {
23752
23845
  return list().sequences;
@@ -23821,9 +23914,9 @@ function Sequences() {
23821
23914
  delegateEvents(["click", "input"]);
23822
23915
 
23823
23916
  // src/pages/admin/Funnel.tsx
23824
- var _tmpl$388 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;color:var(--app-admin-fg-muted);margin:0.25rem 0 0">`);
23917
+ var _tmpl$390 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;color:var(--app-admin-fg-muted);margin:0.25rem 0 0">`);
23825
23918
  var _tmpl$2120 = /* @__PURE__ */ template(`<div style="padding:1rem 1.25rem;border-bottom:1px solid var(--app-admin-border-soft)"><h2 class=app-admin-heading style=font-size:0.9375rem;font-weight:600;margin:0>`);
23826
- var _tmpl$389 = /* @__PURE__ */ template(`<label style=font-size:0.8125rem;display:flex;gap:0.375rem;align-items:center;margin-top:0.25rem><input type=checkbox>Savings program only (<!>)`);
23919
+ var _tmpl$391 = /* @__PURE__ */ template(`<label style=font-size:0.8125rem;display:flex;gap:0.375rem;align-items:center;margin-top:0.25rem><input type=checkbox>Savings program only (<!>)`);
23827
23920
  var _tmpl$465 = /* @__PURE__ */ template(`<th>Account`);
23828
23921
  var _tmpl$555 = /* @__PURE__ */ template(`<p class=app-admin-text-muted style="font-size:0.75rem;padding:0.625rem 1.25rem;margin:0">Showing the 50 most recent of <!>.`);
23829
23922
  var _tmpl$649 = /* @__PURE__ */ template(`<div class=app-admin-card style=margin-top:1.25rem;overflow:hidden><div style="padding:1rem 1.25rem;display:grid;gap:0.5rem"></div><div style="padding:0.5rem 1.25rem 0.75rem;border-top:1px solid var(--app-admin-border-soft)"></div><table class=app-admin-table><thead><tr><th style=width:2rem><input type=checkbox aria-label="Select all"></th><th>Person</th><th>Where they stopped</th><th>Since</th></tr></thead><tbody>`);
@@ -23849,7 +23942,7 @@ function CardHeader(props) {
23849
23942
  return props.note;
23850
23943
  },
23851
23944
  get children() {
23852
- var _el$3 = _tmpl$388();
23945
+ var _el$3 = _tmpl$390();
23853
23946
  insert(_el$3, () => props.note);
23854
23947
  return _el$3;
23855
23948
  }
@@ -23935,7 +24028,7 @@ function SegmentSection(props) {
23935
24028
  return hasSavings();
23936
24029
  },
23937
24030
  get children() {
23938
- var _el$6 = _tmpl$389(), _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$0 = _el$8.nextSibling; _el$0.nextSibling;
24031
+ var _el$6 = _tmpl$391(), _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$0 = _el$8.nextSibling; _el$0.nextSibling;
23939
24032
  _el$7.addEventListener("change", (e) => setSavingsOnly(e.currentTarget.checked));
23940
24033
  insert(_el$6, () => props.summary.savingsMembers, _el$0);
23941
24034
  effect(() => _el$7.checked = savingsOnly());
@@ -24179,9 +24272,9 @@ function Funnel() {
24179
24272
  })();
24180
24273
  }
24181
24274
  delegateEvents(["click"]);
24182
- var _tmpl$390 = /* @__PURE__ */ template(`<div>`);
24275
+ var _tmpl$397 = /* @__PURE__ */ template(`<div>`);
24183
24276
  var _tmpl$2121 = /* @__PURE__ */ template(`<div style=min-width:7.5rem><div style=font-size:0.75rem;text-transform:uppercase;letter-spacing:0.04em></div><div class=app-admin-heading style=font-size:1.375rem;font-weight:600;line-height:1.3>`);
24184
- var _tmpl$391 = /* @__PURE__ */ template(`<div style="display:flex;flex-wrap:wrap;gap:1.25rem 2rem;margin-bottom:1.25rem">`);
24277
+ var _tmpl$398 = /* @__PURE__ */ template(`<div style="display:flex;flex-wrap:wrap;gap:1.25rem 2rem;margin-bottom:1.25rem">`);
24185
24278
  var _tmpl$466 = /* @__PURE__ */ template(`<table class=app-admin-table style=margin-bottom:1rem><thead><tr><th>Email</th><th>Sent</th><th>Link followed</th><th>Bought after this email</th><th>Unsubscribed after it</th></tr></thead><tbody>`);
24186
24279
  var _tmpl$556 = /* @__PURE__ */ template(`<div> of the <!> bought before any email reached them, so no email is credited above.`);
24187
24280
  var _tmpl$650 = /* @__PURE__ */ template(`<div>No longer in it: <!>.`);
@@ -24227,7 +24320,7 @@ function Figure(props) {
24227
24320
  return props.note;
24228
24321
  },
24229
24322
  get children() {
24230
- var _el$4 = _tmpl$390();
24323
+ var _el$4 = _tmpl$397();
24231
24324
  insert(_el$4, () => props.note);
24232
24325
  effect((_$p) => style(_el$4, muted, _$p));
24233
24326
  return _el$4;
@@ -24273,7 +24366,7 @@ function SequenceCard(props) {
24273
24366
  },
24274
24367
  get children() {
24275
24368
  return [(() => {
24276
- var _el$5 = _tmpl$391();
24369
+ var _el$5 = _tmpl$398();
24277
24370
  insert(_el$5, createComponent(Figure, {
24278
24371
  label: "Enrolled",
24279
24372
  get value() {
@@ -24494,7 +24587,7 @@ function SequenceResults() {
24494
24587
  }] = createResource(() => apiFetch("/admin/funnel/report"));
24495
24588
  const days = () => report()?.sequences[0]?.attributionDays ?? 30;
24496
24589
  return (() => {
24497
- var _el$62 = _tmpl$390();
24590
+ var _el$62 = _tmpl$397();
24498
24591
  insert(_el$62, createComponent(PageTitle, {
24499
24592
  subtitle: "What each sequence has achieved. \u201CBought\u201D means bought after being enrolled; it does not show the email was the reason.",
24500
24593
  children: "Results"
@@ -24573,9 +24666,9 @@ delegateEvents(["click"]);
24573
24666
  var [supportChannelMode, setSupportChannelMode] = createSignal(null);
24574
24667
 
24575
24668
  // src/pages/admin/EmailNotifications.tsx
24576
- var _tmpl$396 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;margin:0.25rem 0 0">`);
24669
+ var _tmpl$399 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;margin:0.25rem 0 0">`);
24577
24670
  var _tmpl$2123 = /* @__PURE__ */ template(`<div class=app-admin-card style=margin-top:1.25rem><div style="padding:1rem 1.25rem;border-bottom:1px solid var(--app-admin-border-soft);display:flex;justify-content:space-between;align-items:center;gap:1rem"><div><h2 class=app-admin-heading style=font-size:0.9375rem;font-weight:600;margin:0></h2></div></div><div style="padding:1rem 1.25rem;display:grid;gap:0.875rem">`);
24578
- var _tmpl$397 = /* @__PURE__ */ template(`<label style=display:flex;align-items:center;gap:0.5rem;font-size:0.875rem;cursor:pointer><input type=checkbox>`);
24671
+ var _tmpl$3100 = /* @__PURE__ */ template(`<label style=display:flex;align-items:center;gap:0.5rem;font-size:0.875rem;cursor:pointer><input type=checkbox>`);
24579
24672
  var _tmpl$467 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm">`);
24580
24673
  var _tmpl$557 = /* @__PURE__ */ template(`<div><div style=margin-bottom:0.375rem>Recipients</div><div style=display:flex;flex-wrap:wrap;gap:0.375rem;margin-bottom:0.5rem></div><div style=display:flex;gap:0.5rem;max-width:28rem><input type=email class=app-admin-input placeholder=admin@example.com aria-label="Add recipient"><button type=button class="app-admin-btn app-admin-btn-sm">Add`);
24581
24674
  var _tmpl$651 = /* @__PURE__ */ template(`<div><div style=margin-bottom:0.375rem>Send a copy for</div><div style="display:grid;grid-template-columns:repeat(auto-fill, minmax(14rem, 1fr));gap:0.375rem 1rem">`);
@@ -24605,7 +24698,7 @@ function Card(props) {
24605
24698
  return props.note;
24606
24699
  },
24607
24700
  get children() {
24608
- var _el$5 = _tmpl$396();
24701
+ var _el$5 = _tmpl$399();
24609
24702
  insert(_el$5, () => props.note);
24610
24703
  effect((_$p) => style(_el$5, {
24611
24704
  ...label2
@@ -24620,7 +24713,7 @@ function Card(props) {
24620
24713
  }
24621
24714
  function Toggle(props) {
24622
24715
  return (() => {
24623
- var _el$7 = _tmpl$397(), _el$8 = _el$7.firstChild;
24716
+ var _el$7 = _tmpl$3100(), _el$8 = _el$7.firstChild;
24624
24717
  _el$8.addEventListener("change", (e) => props.onChange(e.currentTarget.checked));
24625
24718
  insert(_el$7, () => props.label, null);
24626
24719
  effect(() => _el$8.checked = props.checked);
@@ -25035,9 +25128,9 @@ function EmailNotifications() {
25035
25128
  })();
25036
25129
  }
25037
25130
  delegateEvents(["click", "input", "keydown"]);
25038
- var _tmpl$398 = /* @__PURE__ */ template(`<div class=app-admin-card style=margin-top:1.25rem><div style="padding:1rem 1.25rem;border-bottom:1px solid var(--app-admin-border-soft)"><h2 class=app-admin-heading style=font-size:0.9375rem;font-weight:600;margin:0></h2><p style="font-size:0.75rem;margin:0.25rem 0 0"></p></div><div>`);
25131
+ var _tmpl$400 = /* @__PURE__ */ template(`<div class=app-admin-card style=margin-top:1.25rem><div style="padding:1rem 1.25rem;border-bottom:1px solid var(--app-admin-border-soft)"><h2 class=app-admin-heading style=font-size:0.9375rem;font-weight:600;margin:0></h2><p style="font-size:0.75rem;margin:0.25rem 0 0"></p></div><div>`);
25039
25132
  var _tmpl$2124 = /* @__PURE__ */ template(`<div style=font-size:0.75rem;margin-top:0.25rem>`);
25040
- var _tmpl$399 = /* @__PURE__ */ template(`<div style="display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0.875rem 1.25rem;border-bottom:1px solid var(--app-admin-border-soft)"><div style=min-width:0><div style=font-size:0.875rem;font-weight:600></div><div style=margin-top:0.125rem></div></div><div style=flex-shrink:0>`);
25133
+ var _tmpl$3101 = /* @__PURE__ */ template(`<div style="display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0.875rem 1.25rem;border-bottom:1px solid var(--app-admin-border-soft)"><div style=min-width:0><div style=font-size:0.875rem;font-weight:600></div><div style=margin-top:0.125rem></div></div><div style=flex-shrink:0>`);
25041
25134
  var _tmpl$468 = /* @__PURE__ */ template(`<div class=app-admin-notice role=alert style=margin-top:1.25rem>Features could not be loaded. `);
25042
25135
  var _tmpl$558 = /* @__PURE__ */ template(`<div>`);
25043
25136
  var _tmpl$654 = /* @__PURE__ */ template(`<button type=button role=switch class=app-admin-toggle><span class=app-admin-toggle__knob>`);
@@ -25062,7 +25155,7 @@ function formatDate2(iso) {
25062
25155
  }
25063
25156
  function Card2(props) {
25064
25157
  return (() => {
25065
- var _el$ = _tmpl$398(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling;
25158
+ var _el$ = _tmpl$400(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling;
25066
25159
  insert(_el$3, () => props.title);
25067
25160
  insert(_el$4, () => props.note);
25068
25161
  insert(_el$5, () => props.children);
@@ -25074,7 +25167,7 @@ function Card2(props) {
25074
25167
  }
25075
25168
  function Row(props) {
25076
25169
  return (() => {
25077
- var _el$6 = _tmpl$399(), _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$1 = _el$7.nextSibling;
25170
+ var _el$6 = _tmpl$3101(), _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$1 = _el$7.nextSibling;
25078
25171
  insert(_el$8, () => props.feature.label);
25079
25172
  insert(_el$9, () => props.feature.description);
25080
25173
  insert(_el$7, createComponent(Show, {
@@ -25353,9 +25446,9 @@ function Features() {
25353
25446
  delegateEvents(["click", "input"]);
25354
25447
 
25355
25448
  // src/pages/AdminDashboard.tsx
25356
- var _tmpl$400 = /* @__PURE__ */ template(`<span style=font-size:1rem;opacity:0.7;flex-shrink:0>`);
25449
+ var _tmpl$401 = /* @__PURE__ */ template(`<span style=font-size:1rem;opacity:0.7;flex-shrink:0>`);
25357
25450
  var _tmpl$2125 = /* @__PURE__ */ template(`<button type=button style="display:flex;align-items:center;gap:0.75rem;padding:0.625rem 0.75rem;border-radius:var(--app-admin-radius-sm);font-size:0.875rem;font-weight:500;text-align:left;border:none;cursor:pointer">`);
25358
- var _tmpl$3100 = /* @__PURE__ */ template(`<div class="app-admin-root app-admin-shell"data-scrollable style=position:sticky><div class=app-admin-shell-header><button type=button class=app-admin-shell-menu-trigger aria-label="Open admin menu"><svg width=22 height=22 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round aria-hidden=true><line x1=3 y1=6 x2=21 y2=6></line><line x1=3 y1=12 x2=21 y2=12></line><line x1=3 y1=18 x2=21 y2=18></line></svg></button><span class=app-admin-shell-header-title></span></div><div class=app-admin-backdrop aria-hidden=true></div><aside class=app-admin-sidebar><div style=padding:1.25rem><h2 style="font-size:0.7rem;font-weight:500;color:var(--app-admin-fg-muted);text-transform:uppercase;letter-spacing:0.08em;margin:0 0 1rem">Admin Panel</h2><nav style=display:flex;flex-direction:column;gap:0.25rem></nav></div></aside><div class=app-admin-content>`);
25451
+ var _tmpl$3102 = /* @__PURE__ */ template(`<div class="app-admin-root app-admin-shell"data-scrollable style=position:sticky><div class=app-admin-shell-header><button type=button class=app-admin-shell-menu-trigger aria-label="Open admin menu"><svg width=22 height=22 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round aria-hidden=true><line x1=3 y1=6 x2=21 y2=6></line><line x1=3 y1=12 x2=21 y2=12></line><line x1=3 y1=18 x2=21 y2=18></line></svg></button><span class=app-admin-shell-header-title></span></div><div class=app-admin-backdrop aria-hidden=true></div><aside class=app-admin-sidebar><div style=padding:1.25rem><h2 style="font-size:0.7rem;font-weight:500;color:var(--app-admin-fg-muted);text-transform:uppercase;letter-spacing:0.08em;margin:0 0 1rem">Admin Panel</h2><nav style=display:flex;flex-direction:column;gap:0.25rem></nav></div></aside><div class=app-admin-content>`);
25359
25452
  var _tmpl$469 = /* @__PURE__ */ template(`<h3 style="font-size:0.625rem;font-weight:600;color:var(--app-admin-fg-muted);text-transform:uppercase;letter-spacing:0.08em;margin:1rem 0 0.375rem;padding:0 0.75rem">`);
25360
25453
  var _tmpl$559 = /* @__PURE__ */ template(`<div role=alert style="margin:1rem 0;padding:1.25rem 1.5rem;border:1px solid var(--app-admin-border);border-radius:var(--app-admin-radius-sm);background:var(--app-admin-surface);color:var(--app-admin-fg)"><div style=font-weight:600;margin-bottom:0.375rem>This section failed to load</div><div style=font-size:0.875rem;color:var(--app-admin-fg-muted);margin-bottom:1rem;word-break:break-word></div><button type=button style="padding:0.5rem 0.875rem;border-radius:var(--app-admin-radius-sm);border:1px solid var(--app-admin-border);background:var(--app-admin-primary-soft);color:var(--app-admin-primary-soft-fg);font-size:0.875rem;font-weight:500;cursor:pointer">Try again`);
25361
25454
  var _tmpl$655 = /* @__PURE__ */ template(`<div class=app-admin-root style=display:flex;align-items:center;justify-content:center;position:sticky;background:var(--app-admin-bg)><div role=status aria-label="Loading admin"style="width:1.75rem;height:1.75rem;border-radius:9999px;border:2px solid var(--app-admin-border);border-top-color:var(--app-admin-primary);animation:app-admin-gate-spin 0.8s linear infinite"></div><style>@keyframes app-admin-gate-spin { to { transform: rotate(360deg); } }`);
@@ -25497,7 +25590,7 @@ function AdminDashboard(props) {
25497
25590
  return props.tabIcons?.[btnProps.tab];
25498
25591
  },
25499
25592
  get children() {
25500
- var _el$2 = _tmpl$400();
25593
+ var _el$2 = _tmpl$401();
25501
25594
  effect(() => className(_el$2, props.tabIcons[btnProps.tab]));
25502
25595
  return _el$2;
25503
25596
  }
@@ -25529,7 +25622,7 @@ function AdminDashboard(props) {
25529
25622
  return createComponent(AdminNavContext.Provider, {
25530
25623
  value: adminNav,
25531
25624
  get children() {
25532
- var _el$3 = _tmpl$3100(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.nextSibling, _el$7 = _el$4.nextSibling, _el$8 = _el$7.nextSibling, _el$9 = _el$8.firstChild, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$8.nextSibling;
25625
+ var _el$3 = _tmpl$3102(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.nextSibling, _el$7 = _el$4.nextSibling, _el$8 = _el$7.nextSibling, _el$9 = _el$8.firstChild, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$8.nextSibling;
25533
25626
  _el$5.$$click = () => setDrawerOpen(true);
25534
25627
  insert(_el$6, () => TAB_LABELS[currentTab()]);
25535
25628
  _el$7.$$click = () => setDrawerOpen(false);
@@ -25867,9 +25960,9 @@ function affiliateSubTabFromPath(pathname, base = "/admin") {
25867
25960
  }
25868
25961
  return "overview";
25869
25962
  }
25870
- var _tmpl$401 = /* @__PURE__ */ template(`<div class=app-admin-modal-backdrop><div class="app-admin-card app-admin-modal"style=max-width:32rem><div class=app-admin-modal-header><h3 class=app-admin-heading style=font-size:1rem;margin:0>Customer dashboard preview</h3><button type=button class="app-admin-btn app-admin-btn-ghost"style="border:none;padding:0.25rem 0.5rem;font-size:1.25rem">\xD7</button></div><div class=app-admin-modal-body><div style="padding:0.5rem 0.75rem;border-radius:var(--app-admin-radius-sm);background:var(--app-admin-warning-bg);color:var(--app-admin-warning-fg);font-size:0.75rem;font-weight:500">Viewing as <!> \u2014 read-only`);
25963
+ var _tmpl$407 = /* @__PURE__ */ template(`<div class=app-admin-modal-backdrop><div class="app-admin-card app-admin-modal"style=max-width:32rem><div class=app-admin-modal-header><h3 class=app-admin-heading style=font-size:1rem;margin:0>Customer dashboard preview</h3><button type=button class="app-admin-btn app-admin-btn-ghost"style="border:none;padding:0.25rem 0.5rem;font-size:1.25rem">\xD7</button></div><div class=app-admin-modal-body><div style="padding:0.5rem 0.75rem;border-radius:var(--app-admin-radius-sm);background:var(--app-admin-warning-bg);color:var(--app-admin-warning-fg);font-size:0.75rem;font-weight:500">Viewing as <!> \u2014 read-only`);
25871
25964
  var _tmpl$2126 = /* @__PURE__ */ template(`<div style="display:flex;align-items:center;justify-content:space-between;gap:0.75rem;padding:0.5rem 0.75rem;border-radius:var(--app-admin-radius-sm);background:var(--app-admin-danger-bg);color:var(--app-admin-danger-fg);font-size:0.75rem;font-weight:500"><span></span><button type=button class="app-admin-btn app-admin-btn-ghost"style="padding:0.25rem 0.75rem">Retry`);
25872
- var _tmpl$3101 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>Could not load this customer's dashboard.`);
25965
+ var _tmpl$3103 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>Could not load this customer's dashboard.`);
25873
25966
  var _tmpl$470 = /* @__PURE__ */ template(`<div><h3>Profile</h3><div class=app-admin-card-soft style=padding:0.75rem><p style=font-weight:600;font-size:0.9375rem;margin:0></p><p style="font-size:0.8125rem;color:var(--app-admin-fg-muted);margin:0.25rem 0 0">`);
25874
25967
  var _tmpl$560 = /* @__PURE__ */ template(`<div><h3>Subscription`);
25875
25968
  var _tmpl$656 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:0.5rem>`);
@@ -25891,7 +25984,7 @@ function PatientDashboardPreview(props) {
25891
25984
  authToken: () => props.token
25892
25985
  });
25893
25986
  return (() => {
25894
- var _el$ = _tmpl$401(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$3.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$0 = _el$8.nextSibling; _el$0.nextSibling;
25987
+ var _el$ = _tmpl$407(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$3.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$0 = _el$8.nextSibling; _el$0.nextSibling;
25895
25988
  _el$.$$click = (e) => {
25896
25989
  if (e.target === e.currentTarget) props.onClose();
25897
25990
  };
@@ -25922,7 +26015,7 @@ function PatientDashboardPreview(props) {
25922
26015
  return data.profile();
25923
26016
  },
25924
26017
  get fallback() {
25925
- return _tmpl$3101();
26018
+ return _tmpl$3103();
25926
26019
  },
25927
26020
  children: (profile) => [(() => {
25928
26021
  var _el$13 = _tmpl$470(), _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$16.nextSibling;
@@ -26081,9 +26174,9 @@ function PatientDashboardPreview(props) {
26081
26174
  })();
26082
26175
  }
26083
26176
  delegateEvents(["click"]);
26084
- var _tmpl$406 = /* @__PURE__ */ template(`<div style=margin-bottom:1rem>`);
26177
+ var _tmpl$408 = /* @__PURE__ */ template(`<div style=margin-bottom:1rem>`);
26085
26178
  var _tmpl$2127 = /* @__PURE__ */ template(`<form><div style=display:grid;gap:1rem;margin-bottom:1.5rem><div style="display:grid;grid-template-columns:repeat(2, 1fr);gap:1rem"></div></div><div style=margin-bottom:1.5rem></div><div style=display:flex;gap:0.75rem>`);
26086
- var _tmpl$3102 = /* @__PURE__ */ template(`<div class=pay-method style="max-width:480px;margin:0 auto;padding:2rem 1.25rem"><p style="color:var(--app-portal-fg-muted, #6e6a66);margin-bottom:1.5rem">Enter a new card for your subscription. Your current card stays active until this succeeds.`);
26179
+ var _tmpl$3104 = /* @__PURE__ */ template(`<div class=pay-method style="max-width:480px;margin:0 auto;padding:2rem 1.25rem"><p style="color:var(--app-portal-fg-muted, #6e6a66);margin-bottom:1.5rem">Enter a new card for your subscription. Your current card stays active until this succeeds.`);
26087
26180
  var LIVE = /* @__PURE__ */ new Set(["active", "paused", "past_due"]);
26088
26181
  function UpdatePaymentMethod(props) {
26089
26182
  const {
@@ -26113,7 +26206,7 @@ function UpdatePaymentMethod(props) {
26113
26206
  if (ok) props.onDone();
26114
26207
  }
26115
26208
  return (() => {
26116
- var _el$ = _tmpl$3102(), _el$2 = _el$.firstChild;
26209
+ var _el$ = _tmpl$3104(), _el$2 = _el$.firstChild;
26117
26210
  insert(_el$, createComponent(Heading, {
26118
26211
  level: 1,
26119
26212
  get children() {
@@ -26151,7 +26244,7 @@ function UpdatePaymentMethod(props) {
26151
26244
  return flow.error();
26152
26245
  },
26153
26246
  get children() {
26154
- var _el$4 = _tmpl$406();
26247
+ var _el$4 = _tmpl$408();
26155
26248
  insert(_el$4, createComponent(Banner, {
26156
26249
  variant: "error",
26157
26250
  get children() {
@@ -26229,9 +26322,9 @@ function UpdatePaymentMethod(props) {
26229
26322
  return _el$;
26230
26323
  })();
26231
26324
  }
26232
- var _tmpl$407 = /* @__PURE__ */ template(`<a class=ship__track target=_blank rel="noopener noreferrer">Track<!> \u2197`);
26325
+ var _tmpl$409 = /* @__PURE__ */ template(`<a class=ship__track target=_blank rel="noopener noreferrer">Track<!> \u2197`);
26233
26326
  var _tmpl$2128 = /* @__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>`);
26234
- var _tmpl$3103 = /* @__PURE__ */ template(`<span class=refill__cycle>Day <!> of `);
26327
+ var _tmpl$3105 = /* @__PURE__ */ template(`<span class=refill__cycle>Day <!> of `);
26235
26328
  var _tmpl$471 = /* @__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>`);
26236
26329
  var _tmpl$561 = /* @__PURE__ */ template(`<span class=refill__cycle>Preparing your next fill`);
26237
26330
  var _tmpl$657 = /* @__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>`);
@@ -26278,7 +26371,7 @@ function TrackingChip(props) {
26278
26371
  return props.url;
26279
26372
  },
26280
26373
  get children() {
26281
- var _el$8 = _tmpl$407(), _el$9 = _el$8.firstChild, _el$1 = _el$9.nextSibling; _el$1.nextSibling;
26374
+ var _el$8 = _tmpl$409(), _el$9 = _el$8.firstChild, _el$1 = _el$9.nextSibling; _el$1.nextSibling;
26282
26375
  insert(_el$8, (() => {
26283
26376
  var _c$ = memo(() => !!props.carrier);
26284
26377
  return () => _c$() ? ` with ${props.carrier}` : "";
@@ -26308,7 +26401,7 @@ function OrderTracker(props) {
26308
26401
  return _tmpl$561();
26309
26402
  },
26310
26403
  get children() {
26311
- var _el$14 = _tmpl$3103(), _el$15 = _el$14.firstChild, _el$17 = _el$15.nextSibling; _el$17.nextSibling;
26404
+ var _el$14 = _tmpl$3105(), _el$15 = _el$14.firstChild, _el$17 = _el$15.nextSibling; _el$17.nextSibling;
26312
26405
  insert(_el$14, () => r().cycleDay, _el$17);
26313
26406
  insert(_el$14, () => r().cycleLength, null);
26314
26407
  return _el$14;
@@ -26558,9 +26651,9 @@ function OrderTracker(props) {
26558
26651
  });
26559
26652
  }
26560
26653
  delegateEvents(["click"]);
26561
- var _tmpl$408 = /* @__PURE__ */ template(`<span class=rx-row__dose> \xB7 `);
26654
+ var _tmpl$475 = /* @__PURE__ */ template(`<span class=rx-row__dose> \xB7 `);
26562
26655
  var _tmpl$2129 = /* @__PURE__ */ template(`<div class=rx-row__body>`);
26563
- var _tmpl$3104 = /* @__PURE__ */ template(`<div data-testid=rx-row><button type=button class=rx-row__head><span class=rx-row__med></span><span class=rx-row__status></span><i aria-hidden=true>`);
26656
+ var _tmpl$3106 = /* @__PURE__ */ template(`<div data-testid=rx-row><button type=button class=rx-row__head><span class=rx-row__med></span><span class=rx-row__status></span><i aria-hidden=true>`);
26564
26657
  var STATUS_LABEL = {
26565
26658
  pending: "Under review",
26566
26659
  approved: "Approved",
@@ -26577,7 +26670,7 @@ function RxRow(props) {
26577
26670
  return STATUS_LABEL[props.rx.status] ?? props.rx.status;
26578
26671
  };
26579
26672
  return (() => {
26580
- var _el$ = _tmpl$3104(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$6 = _el$3.nextSibling, _el$7 = _el$6.nextSibling;
26673
+ var _el$ = _tmpl$3106(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$6 = _el$3.nextSibling, _el$7 = _el$6.nextSibling;
26581
26674
  _el$2.$$click = () => setOpen((v) => !v);
26582
26675
  insert(_el$3, () => props.rx.drugName ?? "Medication", null);
26583
26676
  insert(_el$3, createComponent(Show, {
@@ -26585,7 +26678,7 @@ function RxRow(props) {
26585
26678
  return props.rx.dosage;
26586
26679
  },
26587
26680
  get children() {
26588
- var _el$4 = _tmpl$408(); _el$4.firstChild;
26681
+ var _el$4 = _tmpl$475(); _el$4.firstChild;
26589
26682
  insert(_el$4, () => props.rx.dosage, null);
26590
26683
  return _el$4;
26591
26684
  }
@@ -26639,10 +26732,10 @@ function RxRow(props) {
26639
26732
  })();
26640
26733
  }
26641
26734
  delegateEvents(["click"]);
26642
- var _tmpl$409 = /* @__PURE__ */ template(`<div class=plan data-testid=plan-billing><span class=lab-label>Plan &amp; billing`);
26735
+ var _tmpl$476 = /* @__PURE__ */ template(`<div class=plan data-testid=plan-billing><span class=lab-label>Plan &amp; billing`);
26643
26736
  var _tmpl$2130 = /* @__PURE__ */ template(`<div class=plan__empty><h2 class=plan__empty-title>No active plan</h2><p class=plan__empty-text>Start your treatment to set up your monthly plan.</p><a class="portal-btn portal-btn--primary">Start your intake`);
26644
- var _tmpl$3105 = /* @__PURE__ */ template(`<p class=membership__dose>`);
26645
- var _tmpl$475 = /* @__PURE__ */ template(`<div data-testid=membership-card><div class=membership__sheen aria-hidden=true></div><div class=membership__top><span class="lab-label membership__status"></span><span class=membership__brand></span></div><h2 class=membership__med></h2><div class=membership__bottom><span class=membership__price><span class=membership__per>/mo</span></span><span class=membership__renew>Renews `);
26737
+ var _tmpl$3107 = /* @__PURE__ */ template(`<p class=membership__dose>`);
26738
+ var _tmpl$477 = /* @__PURE__ */ template(`<div data-testid=membership-card><div class=membership__sheen aria-hidden=true></div><div class=membership__top><span class="lab-label membership__status"></span><span class=membership__brand></span></div><h2 class=membership__med></h2><div class=membership__bottom><span class=membership__price><span class=membership__per>/mo</span></span><span class=membership__renew>Renews `);
26646
26739
  var _tmpl$564 = /* @__PURE__ */ template(`<dl class=ledger><div class=ledger__row><dt>Member since</dt><dd></dd></div><div class=ledger__row><dt>Next billing date</dt><dd></dd></div><div class=ledger__row><dt>Billing amount</dt><dd>/mo`);
26647
26740
  var _tmpl$658 = /* @__PURE__ */ template(`<p class=plan__note>Question about billing? <button type=button class=plan__note-link>Message support`);
26648
26741
  var _tmpl$750 = /* @__PURE__ */ template(`<p class=plan__error role=alert>`);
@@ -26694,7 +26787,7 @@ function PlanBilling(props) {
26694
26787
  }
26695
26788
  };
26696
26789
  return (() => {
26697
- var _el$ = _tmpl$409(); _el$.firstChild;
26790
+ var _el$ = _tmpl$476(); _el$.firstChild;
26698
26791
  insert(_el$, createComponent(Show, {
26699
26792
  get when() {
26700
26793
  return primary();
@@ -26707,7 +26800,7 @@ function PlanBilling(props) {
26707
26800
  })();
26708
26801
  },
26709
26802
  children: (sub) => [(() => {
26710
- var _el$7 = _tmpl$475(), _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$9.nextSibling, _el$12 = _el$10.nextSibling, _el$13 = _el$12.firstChild, _el$14 = _el$13.firstChild, _el$15 = _el$13.nextSibling; _el$15.firstChild;
26803
+ var _el$7 = _tmpl$477(), _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$9.nextSibling, _el$12 = _el$10.nextSibling, _el$13 = _el$12.firstChild, _el$14 = _el$13.firstChild, _el$15 = _el$13.nextSibling; _el$15.firstChild;
26711
26804
  insert(_el$0, () => STATUS_COPY[sub().status] || sub().status);
26712
26805
  insert(_el$1, () => props.brandName);
26713
26806
  insert(_el$10, () => sub().medicationName ?? sub().medication);
@@ -26716,7 +26809,7 @@ function PlanBilling(props) {
26716
26809
  return sub().dosage;
26717
26810
  },
26718
26811
  get children() {
26719
- var _el$11 = _tmpl$3105();
26812
+ var _el$11 = _tmpl$3107();
26720
26813
  insert(_el$11, () => sub().dosage);
26721
26814
  return _el$11;
26722
26815
  }
@@ -26818,10 +26911,10 @@ function PlanBilling(props) {
26818
26911
  })();
26819
26912
  }
26820
26913
  delegateEvents(["click"]);
26821
- var _tmpl$476 = /* @__PURE__ */ template(`<p class=account__empty>We don\u2019t have your details on file yet.`);
26914
+ var _tmpl$478 = /* @__PURE__ */ template(`<p class=account__empty>We don\u2019t have your details on file yet.`);
26822
26915
  var _tmpl$2131 = /* @__PURE__ */ template(`<p class=account__note>Need to update something? <button type=button class=account__note-link>Message support</button> and we\u2019ll take care of it.`);
26823
- var _tmpl$3106 = /* @__PURE__ */ template(`<button type=button class="account__support-link account__support-btn">Messages`);
26824
- var _tmpl$477 = /* @__PURE__ */ template(`<div class=account data-testid=account-panel><span class=lab-label>Account</span><h1 class=account__title>Your details</h1><dl class=account__fields></dl><div class=account__support></div><button type=button class="portal-btn portal-btn--ghost account__signout">Sign out`);
26916
+ var _tmpl$3108 = /* @__PURE__ */ template(`<button type=button class="account__support-link account__support-btn">Messages`);
26917
+ var _tmpl$479 = /* @__PURE__ */ template(`<div class=account data-testid=account-panel><span class=lab-label>Account</span><h1 class=account__title>Your details</h1><dl class=account__fields></dl><div class=account__support></div><button type=button class="portal-btn portal-btn--ghost account__signout">Sign out`);
26825
26918
  var _tmpl$565 = /* @__PURE__ */ template(`<div class=account__field><dt class=lab-label></dt><dd>`);
26826
26919
  var _tmpl$659 = /* @__PURE__ */ template(`<a class=account__support-link>`);
26827
26920
  function pick(member, ...keys) {
@@ -26864,7 +26957,7 @@ function AccountPanel(props) {
26864
26957
  value: address()
26865
26958
  }].filter((f) => f.value);
26866
26959
  return (() => {
26867
- var _el$ = _tmpl$477(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling, _el$0 = _el$4.nextSibling, _el$10 = _el$0.nextSibling;
26960
+ var _el$ = _tmpl$479(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling, _el$0 = _el$4.nextSibling, _el$10 = _el$0.nextSibling;
26868
26961
  insert(_el$4, createComponent(For, {
26869
26962
  get each() {
26870
26963
  return fields();
@@ -26881,7 +26974,7 @@ function AccountPanel(props) {
26881
26974
  return fields().length === 0;
26882
26975
  },
26883
26976
  get children() {
26884
- return _tmpl$476();
26977
+ return _tmpl$478();
26885
26978
  }
26886
26979
  }), _el$0);
26887
26980
  insert(_el$, createComponent(Show, {
@@ -26902,7 +26995,7 @@ function AccountPanel(props) {
26902
26995
  return props.messagingEnabled;
26903
26996
  },
26904
26997
  get children() {
26905
- var _el$1 = _tmpl$3106();
26998
+ var _el$1 = _tmpl$3108();
26906
26999
  _el$1.$$click = () => props.onOpenMessages();
26907
27000
  return _el$1;
26908
27001
  }
@@ -26923,10 +27016,10 @@ function AccountPanel(props) {
26923
27016
  })();
26924
27017
  }
26925
27018
  delegateEvents(["click"]);
26926
- var _tmpl$478 = /* @__PURE__ */ template(`<section class="leaflet__section leaflet__section--caution"><h2 class=leaflet__h2>Birth control</h2><p class=leaflet__body>`);
27019
+ var _tmpl$480 = /* @__PURE__ */ template(`<section class="leaflet__section leaflet__section--caution"><h2 class=leaflet__h2>Birth control</h2><p class=leaflet__body>`);
26927
27020
  var _tmpl$2132 = /* @__PURE__ */ template(`<ul class=leaflet__disclaimers id=leaflet-disclaimers>`);
26928
- var _tmpl$3107 = /* @__PURE__ */ template(`<div class=leaflet data-testid=medication-guide><header class=leaflet__header><span class=lab-label>How to take it</span><h1 class=leaflet__title></h1><p class=leaflet__summary></p></header><section class=leaflet__boxed aria-label="Boxed warning"><div class=leaflet__boxed-head><i class="ph-fill ph-warning"aria-hidden=true></i><span>Important warning</span></div><p></p></section><section class="leaflet__section leaflet__section--caution"><h2 class=leaflet__h2>Do not use this medicine if\u2026</h2><ul class="leaflet__list leaflet__list--caution"></ul></section><section class=leaflet__section><h2 class=leaflet__h2>Your dose over time</h2><p class=leaflet__note>A typical step-up. Your prescriber sets your exact doses and timing.</p><ol class=titration></ol></section><section class=leaflet__section><h2 class=leaflet__h2>Giving your injection</h2><ol class=steps></ol></section><div class=leaflet__grid><section class=leaflet__section><h2 class=leaflet__h2>Storing your medicine</h2><ul class=leaflet__list></ul></section><section class=leaflet__section><h2 class=leaflet__h2>If you miss a dose</h2><p class=leaflet__body></p></section></div><div class=leaflet__grid><section class=leaflet__section><h2 class=leaflet__h2>Common side effects</h2><ul class="leaflet__list leaflet__list--check"></ul></section><section class="leaflet__section leaflet__section--alert"><h2 class=leaflet__h2>Call right away if you notice\u2026</h2><ul class="leaflet__list leaflet__list--alert"></ul></section></div><section class=leaflet__section><h2 class=leaflet__h2>When to contact your care team</h2><ul class=leaflet__list></ul></section><section class=leaflet__section><h2 class=leaflet__h2>Tips for feeling your best</h2><ul class="leaflet__list leaflet__list--check"></ul></section><section class=leaflet__footnote><button type=button class=leaflet__disclose aria-controls=leaflet-disclaimers> the important details<i aria-hidden=true>`);
26929
- var _tmpl$479 = /* @__PURE__ */ template(`<li>`);
27021
+ var _tmpl$3109 = /* @__PURE__ */ template(`<div class=leaflet data-testid=medication-guide><header class=leaflet__header><span class=lab-label>How to take it</span><h1 class=leaflet__title></h1><p class=leaflet__summary></p></header><section class=leaflet__boxed aria-label="Boxed warning"><div class=leaflet__boxed-head><i class="ph-fill ph-warning"aria-hidden=true></i><span>Important warning</span></div><p></p></section><section class="leaflet__section leaflet__section--caution"><h2 class=leaflet__h2>Do not use this medicine if\u2026</h2><ul class="leaflet__list leaflet__list--caution"></ul></section><section class=leaflet__section><h2 class=leaflet__h2>Your dose over time</h2><p class=leaflet__note>A typical step-up. Your prescriber sets your exact doses and timing.</p><ol class=titration></ol></section><section class=leaflet__section><h2 class=leaflet__h2>Giving your injection</h2><ol class=steps></ol></section><div class=leaflet__grid><section class=leaflet__section><h2 class=leaflet__h2>Storing your medicine</h2><ul class=leaflet__list></ul></section><section class=leaflet__section><h2 class=leaflet__h2>If you miss a dose</h2><p class=leaflet__body></p></section></div><div class=leaflet__grid><section class=leaflet__section><h2 class=leaflet__h2>Common side effects</h2><ul class="leaflet__list leaflet__list--check"></ul></section><section class="leaflet__section leaflet__section--alert"><h2 class=leaflet__h2>Call right away if you notice\u2026</h2><ul class="leaflet__list leaflet__list--alert"></ul></section></div><section class=leaflet__section><h2 class=leaflet__h2>When to contact your care team</h2><ul class=leaflet__list></ul></section><section class=leaflet__section><h2 class=leaflet__h2>Tips for feeling your best</h2><ul class="leaflet__list leaflet__list--check"></ul></section><section class=leaflet__footnote><button type=button class=leaflet__disclose aria-controls=leaflet-disclaimers> the important details<i aria-hidden=true>`);
27022
+ var _tmpl$481 = /* @__PURE__ */ template(`<li>`);
26930
27023
  var _tmpl$566 = /* @__PURE__ */ template(`<li><span class=titration__bead aria-hidden=true></span><div class=titration__body><div class=titration__row><span class=titration__dose></span><span class="lab-label titration__phase"></span></div><span class=titration__time></span><p class=titration__note>`);
26931
27024
  var _tmpl$660 = /* @__PURE__ */ template(`<li class=steps__item><span class=steps__num></span><div class=steps__body><h3 class=steps__title></h3><p class=steps__detail>`);
26932
27025
  function firstNumber(s) {
@@ -26949,7 +27042,7 @@ function MedicationGuide(props) {
26949
27042
  return "upcoming";
26950
27043
  };
26951
27044
  return (() => {
26952
- var _el$ = _tmpl$3107(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.nextSibling, _el$6 = _el$2.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$9 = _el$6.nextSibling, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$9.nextSibling, _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling, _el$13 = _el$12.nextSibling, _el$14 = _el$10.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$15.nextSibling, _el$17 = _el$14.nextSibling, _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$19.nextSibling, _el$21 = _el$18.nextSibling, _el$22 = _el$21.firstChild, _el$23 = _el$22.nextSibling, _el$27 = _el$17.nextSibling, _el$28 = _el$27.firstChild, _el$29 = _el$28.firstChild, _el$30 = _el$29.nextSibling, _el$31 = _el$28.nextSibling, _el$32 = _el$31.firstChild, _el$33 = _el$32.nextSibling, _el$34 = _el$27.nextSibling, _el$35 = _el$34.firstChild, _el$36 = _el$35.nextSibling, _el$37 = _el$34.nextSibling, _el$38 = _el$37.firstChild, _el$39 = _el$38.nextSibling, _el$40 = _el$37.nextSibling, _el$41 = _el$40.firstChild, _el$42 = _el$41.firstChild, _el$43 = _el$42.nextSibling;
27045
+ var _el$ = _tmpl$3109(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.nextSibling, _el$6 = _el$2.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$9 = _el$6.nextSibling, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$9.nextSibling, _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling, _el$13 = _el$12.nextSibling, _el$14 = _el$10.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$15.nextSibling, _el$17 = _el$14.nextSibling, _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$19.nextSibling, _el$21 = _el$18.nextSibling, _el$22 = _el$21.firstChild, _el$23 = _el$22.nextSibling, _el$27 = _el$17.nextSibling, _el$28 = _el$27.firstChild, _el$29 = _el$28.firstChild, _el$30 = _el$29.nextSibling, _el$31 = _el$28.nextSibling, _el$32 = _el$31.firstChild, _el$33 = _el$32.nextSibling, _el$34 = _el$27.nextSibling, _el$35 = _el$34.firstChild, _el$36 = _el$35.nextSibling, _el$37 = _el$34.nextSibling, _el$38 = _el$37.firstChild, _el$39 = _el$38.nextSibling, _el$40 = _el$37.nextSibling, _el$41 = _el$40.firstChild, _el$42 = _el$41.firstChild, _el$43 = _el$42.nextSibling;
26953
27046
  insert(_el$4, () => props.guide.title);
26954
27047
  insert(_el$5, () => props.guide.summary);
26955
27048
  insert(_el$8, () => props.guide.boxedWarning);
@@ -26958,7 +27051,7 @@ function MedicationGuide(props) {
26958
27051
  return props.guide.doNotUseIf;
26959
27052
  },
26960
27053
  children: (item) => (() => {
26961
- var _el$45 = _tmpl$479();
27054
+ var _el$45 = _tmpl$481();
26962
27055
  insert(_el$45, item);
26963
27056
  return _el$45;
26964
27057
  })()
@@ -26994,7 +27087,7 @@ function MedicationGuide(props) {
26994
27087
  return props.guide.storage;
26995
27088
  },
26996
27089
  children: (item) => (() => {
26997
- var _el$59 = _tmpl$479();
27090
+ var _el$59 = _tmpl$481();
26998
27091
  insert(_el$59, item);
26999
27092
  return _el$59;
27000
27093
  })()
@@ -27005,7 +27098,7 @@ function MedicationGuide(props) {
27005
27098
  return props.guide.contraception;
27006
27099
  },
27007
27100
  get children() {
27008
- var _el$24 = _tmpl$478(), _el$25 = _el$24.firstChild, _el$26 = _el$25.nextSibling;
27101
+ var _el$24 = _tmpl$480(), _el$25 = _el$24.firstChild, _el$26 = _el$25.nextSibling;
27009
27102
  insert(_el$26, () => props.guide.contraception);
27010
27103
  return _el$24;
27011
27104
  }
@@ -27015,7 +27108,7 @@ function MedicationGuide(props) {
27015
27108
  return props.guide.sideEffectsCommon;
27016
27109
  },
27017
27110
  children: (item) => (() => {
27018
- var _el$60 = _tmpl$479();
27111
+ var _el$60 = _tmpl$481();
27019
27112
  insert(_el$60, item);
27020
27113
  return _el$60;
27021
27114
  })()
@@ -27025,7 +27118,7 @@ function MedicationGuide(props) {
27025
27118
  return props.guide.sideEffectsSerious;
27026
27119
  },
27027
27120
  children: (item) => (() => {
27028
- var _el$61 = _tmpl$479();
27121
+ var _el$61 = _tmpl$481();
27029
27122
  insert(_el$61, item);
27030
27123
  return _el$61;
27031
27124
  })()
@@ -27035,7 +27128,7 @@ function MedicationGuide(props) {
27035
27128
  return props.guide.whenToCall;
27036
27129
  },
27037
27130
  children: (item) => (() => {
27038
- var _el$62 = _tmpl$479();
27131
+ var _el$62 = _tmpl$481();
27039
27132
  insert(_el$62, item);
27040
27133
  return _el$62;
27041
27134
  })()
@@ -27045,7 +27138,7 @@ function MedicationGuide(props) {
27045
27138
  return props.guide.tips;
27046
27139
  },
27047
27140
  children: (item) => (() => {
27048
- var _el$63 = _tmpl$479();
27141
+ var _el$63 = _tmpl$481();
27049
27142
  insert(_el$63, item);
27050
27143
  return _el$63;
27051
27144
  })()
@@ -27063,7 +27156,7 @@ function MedicationGuide(props) {
27063
27156
  return props.guide.disclaimers;
27064
27157
  },
27065
27158
  children: (item) => (() => {
27066
- var _el$64 = _tmpl$479();
27159
+ var _el$64 = _tmpl$481();
27067
27160
  insert(_el$64, item);
27068
27161
  return _el$64;
27069
27162
  })()
@@ -27084,10 +27177,10 @@ function MedicationGuide(props) {
27084
27177
  })();
27085
27178
  }
27086
27179
  delegateEvents(["click"]);
27087
- var _tmpl$480 = /* @__PURE__ */ template(`<span data-testid=channel-chip>`);
27180
+ var _tmpl$485 = /* @__PURE__ */ template(`<span data-testid=channel-chip>`);
27088
27181
  var _tmpl$2133 = /* @__PURE__ */ template(`<span class=channel-chip__category>`);
27089
- var _tmpl$3108 = /* @__PURE__ */ template(`<div class=msg-list__header><div class=msg-list__header-title><button type=button class=msg-list__back aria-label="Choose a different team"data-testid=messages-choose-different><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><h2 class=msg-list__title></h2></div><button type=button class=msg-list__new data-testid=messages-new-support><i class="ph-thin ph-plus"aria-hidden=true></i>New message`);
27090
- var _tmpl$481 = /* @__PURE__ */ template(`<div class=msg-list__state><div class=request-status__spinner>`);
27182
+ var _tmpl$3116 = /* @__PURE__ */ template(`<div class=msg-list__header><div class=msg-list__header-title><button type=button class=msg-list__back aria-label="Choose a different team"data-testid=messages-choose-different><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><h2 class=msg-list__title></h2></div><button type=button class=msg-list__new data-testid=messages-new-support><i class="ph-thin ph-plus"aria-hidden=true></i>New message`);
27183
+ var _tmpl$486 = /* @__PURE__ */ template(`<div class=msg-list__state><div class=request-status__spinner>`);
27091
27184
  var _tmpl$567 = /* @__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>`);
27092
27185
  var _tmpl$661 = /* @__PURE__ */ template(`<div class=msg-list__scroll data-scrollable>`);
27093
27186
  var _tmpl$751 = /* @__PURE__ */ template(`<span class=msg-list__pip>`);
@@ -27116,7 +27209,7 @@ var _tmpl$2714 = /* @__PURE__ */ template(`<div class="msg-thread msg-choice"dat
27116
27209
  var _tmpl$2812 = /* @__PURE__ */ template(`<div class="msg-thread msg-choice"data-testid=support-email-sent><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>Message sent</h3><p class=msg-thread__role>Support</p></div></div><div class=msg-choice__notice><p class=msg-choice__notice-text>Thanks, your message is on its way to our support team. We'll reply by email, usually within one business day.</p><button type=button class="portal-btn portal-btn--primary"data-testid=support-email-another>Send another message`);
27117
27210
  var _tmpl$2911 = /* @__PURE__ */ template(`<span class=msg-thread__status data-testid=thread-status-closed>Resolved`);
27118
27211
  var _tmpl$3011 = /* @__PURE__ */ template(`<span class=msg-thread__status data-testid=thread-status-transferred>Moved to care team`);
27119
- var _tmpl$3116 = /* @__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>`);
27212
+ var _tmpl$3117 = /* @__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>`);
27120
27213
  var _tmpl$3215 = /* @__PURE__ */ template(`<div class=msg-thread__banner><button type=button class=msg-thread__banner-link data-testid=continue-with-care-team>Continue with your care team`);
27121
27214
  var _tmpl$3315 = /* @__PURE__ */ template(`<div class=msg-thread__messages data-scrollable><div>`);
27122
27215
  var _tmpl$3415 = /* @__PURE__ */ template(`<span class=msg-compose__error role=alert>`);
@@ -27329,7 +27422,7 @@ function MessagesPanel(props) {
27329
27422
  }
27330
27423
  }
27331
27424
  const ChannelChip = (p) => (() => {
27332
- var _el$ = _tmpl$480();
27425
+ var _el$ = _tmpl$485();
27333
27426
  insert(_el$, () => p.source === "clinical" ? "Care team" : "Support", null);
27334
27427
  insert(_el$, createComponent(Show, {
27335
27428
  get when() {
@@ -27354,7 +27447,7 @@ function MessagesPanel(props) {
27354
27447
  })();
27355
27448
  const channelConversations = () => thread().conversations().filter((c) => c.source === (channel() === "care" ? "clinical" : "support"));
27356
27449
  const ConversationList = () => [(() => {
27357
- var _el$3 = _tmpl$3108(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.nextSibling, _el$7 = _el$4.nextSibling;
27450
+ var _el$3 = _tmpl$3116(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.nextSibling, _el$7 = _el$4.nextSibling;
27358
27451
  _el$5.$$click = goToGate;
27359
27452
  insert(_el$6, () => channel() === "care" ? "My care team" : "Support");
27360
27453
  _el$7.$$click = openCompose;
@@ -27366,7 +27459,7 @@ function MessagesPanel(props) {
27366
27459
  return thread().loadingConversations();
27367
27460
  },
27368
27461
  get children() {
27369
- return _tmpl$481();
27462
+ return _tmpl$486();
27370
27463
  }
27371
27464
  }), null);
27372
27465
  insert(_el$8, createComponent(Show, {
@@ -27752,7 +27845,7 @@ function MessagesPanel(props) {
27752
27845
  return _el$92;
27753
27846
  })();
27754
27847
  const Thread = () => [(() => {
27755
- var _el$98 = _tmpl$3116(), _el$99 = _el$98.firstChild, _el$100 = _el$99.nextSibling, _el$101 = _el$100.firstChild, _el$102 = _el$101.firstChild, _el$103 = _el$101.nextSibling;
27848
+ var _el$98 = _tmpl$3117(), _el$99 = _el$98.firstChild, _el$100 = _el$99.nextSibling, _el$101 = _el$100.firstChild, _el$102 = _el$101.firstChild, _el$103 = _el$101.nextSibling;
27756
27849
  _el$99.$$click = () => thread().clearSelection();
27757
27850
  insert(_el$102, () => selectedConvo()?.participantName ?? "Provider");
27758
27851
  insert(_el$101, createComponent(Show, {
@@ -27802,7 +27895,7 @@ function MessagesPanel(props) {
27802
27895
  return thread().loadingMessages();
27803
27896
  },
27804
27897
  get children() {
27805
- return _tmpl$481();
27898
+ return _tmpl$486();
27806
27899
  }
27807
27900
  }), _el$110);
27808
27901
  insert(_el$108, createComponent(For, {
@@ -27986,10 +28079,10 @@ function MessagesPanel(props) {
27986
28079
  })();
27987
28080
  }
27988
28081
  delegateEvents(["click", "input", "keydown"]);
27989
- var _tmpl$485 = /* @__PURE__ */ template(`<ul class=history-list data-testid=history-list>`);
28082
+ var _tmpl$487 = /* @__PURE__ */ template(`<ul class=history-list data-testid=history-list>`);
27990
28083
  var _tmpl$2135 = /* @__PURE__ */ template(`<div class=portal-state data-testid=history-error><p>We couldn't load your submitted surveys. Please try again in a moment.`);
27991
- var _tmpl$3109 = /* @__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.`);
27992
- var _tmpl$486 = /* @__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>`);
28084
+ var _tmpl$3118 = /* @__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.`);
28085
+ var _tmpl$488 = /* @__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>`);
27993
28086
  var _tmpl$568 = /* @__PURE__ */ template(`<div data-testid=history-detail><button type=button class="portal-btn portal-btn--ghost history-back"><i class="ph-thin ph-caret-left portal-icon"aria-hidden=true></i> All questionnaires`);
27994
28087
  var _tmpl$664 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your answers\u2026`);
27995
28088
  var _tmpl$752 = /* @__PURE__ */ template(`<div class=portal-state data-testid=history-detail-error><p>We couldn't load this questionnaire. Please try again in a moment.`);
@@ -28033,16 +28126,16 @@ function SurveyHistory() {
28033
28126
  return (list() ?? []).length > 0;
28034
28127
  },
28035
28128
  get fallback() {
28036
- return _tmpl$3109();
28129
+ return _tmpl$3118();
28037
28130
  },
28038
28131
  get children() {
28039
- var _el$ = _tmpl$485();
28132
+ var _el$ = _tmpl$487();
28040
28133
  insert(_el$, createComponent(For, {
28041
28134
  get each() {
28042
28135
  return list();
28043
28136
  },
28044
28137
  children: (item) => (() => {
28045
- var _el$4 = _tmpl$486(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
28138
+ var _el$4 = _tmpl$488(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
28046
28139
  _el$5.$$click = () => setSelectedId(item.id);
28047
28140
  insert(_el$6, () => MODE_LABELS[item.mode] ?? "Questionnaire");
28048
28141
  insert(_el$7, () => formatDate3(item.submittedAt) ?? "Date unavailable");
@@ -28133,10 +28226,10 @@ function SurveyHistory() {
28133
28226
  delegateEvents(["click"]);
28134
28227
 
28135
28228
  // src/pages/MemberPortal.tsx
28136
- var _tmpl$487 = /* @__PURE__ */ template(`<span class=portal-item__live aria-label="In progress">`);
28229
+ var _tmpl$489 = /* @__PURE__ */ template(`<span class=portal-item__live aria-label="In progress">`);
28137
28230
  var _tmpl$2136 = /* @__PURE__ */ template(`<span>`);
28138
- var _tmpl$3117 = /* @__PURE__ */ template(`<button type=button><i aria-hidden=true></i><span class=portal-item__label>`);
28139
- var _tmpl$488 = /* @__PURE__ */ template(`<div class=rx-others data-testid=rx-others><span class=lab-label>Other orders`);
28231
+ var _tmpl$3119 = /* @__PURE__ */ template(`<button type=button><i aria-hidden=true></i><span class=portal-item__label>`);
28232
+ var _tmpl$490 = /* @__PURE__ */ template(`<div class=rx-others data-testid=rx-others><span class=lab-label>Other orders`);
28140
28233
  var _tmpl$569 = /* @__PURE__ */ template(`<div class=rx-stack>`);
28141
28234
  var _tmpl$665 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your portal\u2026`);
28142
28235
  var _tmpl$753 = /* @__PURE__ */ template(`<div class="request-status__error portal-state"><p class=request-status__error-text></p><button type=button class="portal-btn portal-btn--ghost">Try again`);
@@ -28272,7 +28365,7 @@ function MemberPortal(props) {
28272
28365
  return tabs();
28273
28366
  },
28274
28367
  children: (item) => (() => {
28275
- var _el$ = _tmpl$3117(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
28368
+ var _el$ = _tmpl$3119(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
28276
28369
  _el$.$$click = () => selectTab(item.key);
28277
28370
  insert(_el$3, () => item.label);
28278
28371
  insert(_el$, createComponent(Show, {
@@ -28280,7 +28373,7 @@ function MemberPortal(props) {
28280
28373
  return memo(() => item.key === "tracker")() && inMotion();
28281
28374
  },
28282
28375
  get children() {
28283
- return _tmpl$487();
28376
+ return _tmpl$489();
28284
28377
  }
28285
28378
  }), null);
28286
28379
  insert(_el$, createComponent(Show, {
@@ -28376,7 +28469,7 @@ function MemberPortal(props) {
28376
28469
  return data.otherRx().length > 0;
28377
28470
  },
28378
28471
  get children() {
28379
- var _el$7 = _tmpl$488(); _el$7.firstChild;
28472
+ var _el$7 = _tmpl$490(); _el$7.firstChild;
28380
28473
  insert(_el$7, createComponent(For, {
28381
28474
  get each() {
28382
28475
  return data.otherRx();
@@ -28599,10 +28692,10 @@ function MemberPortal(props) {
28599
28692
  })();
28600
28693
  }
28601
28694
  delegateEvents(["click"]);
28602
- var _tmpl$489 = /* @__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.`);
28695
+ var _tmpl$491 = /* @__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.`);
28603
28696
  var _tmpl$2137 = /* @__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`);
28604
- var _tmpl$3118 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Loading stats\u2026`);
28605
- var _tmpl$490 = /* @__PURE__ */ template(`<div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));gap:1rem">`);
28697
+ var _tmpl$3120 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Loading stats\u2026`);
28698
+ var _tmpl$495 = /* @__PURE__ */ template(`<div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));gap:1rem">`);
28606
28699
  var _tmpl$570 = /* @__PURE__ */ template(`<div style="padding:1.25rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius)"><div style=font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--app-affiliate-fg-muted);margin-bottom:0.5rem></div><div style=font-family:var(--app-affiliate-font-display);font-size:1.75rem;color:var(--app-affiliate-fg)>`);
28607
28700
  function formatMoney(cents) {
28608
28701
  return `$${(cents / 100).toFixed(2)}`;
@@ -28642,7 +28735,7 @@ function AffiliateOverview() {
28642
28735
  return isPending();
28643
28736
  },
28644
28737
  get children() {
28645
- return _tmpl$489();
28738
+ return _tmpl$491();
28646
28739
  }
28647
28740
  }), null);
28648
28741
  insert(_el$, createComponent(Show, {
@@ -28650,10 +28743,10 @@ function AffiliateOverview() {
28650
28743
  return stats();
28651
28744
  },
28652
28745
  get fallback() {
28653
- return _tmpl$3118();
28746
+ return _tmpl$3120();
28654
28747
  },
28655
28748
  children: (s) => (() => {
28656
- var _el$5 = _tmpl$490();
28749
+ var _el$5 = _tmpl$495();
28657
28750
  insert(_el$5, createComponent(For, {
28658
28751
  get each() {
28659
28752
  return cards(s());
@@ -28671,10 +28764,10 @@ function AffiliateOverview() {
28671
28764
  return _el$;
28672
28765
  })();
28673
28766
  }
28674
- var _tmpl$491 = /* @__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>`);
28767
+ var _tmpl$496 = /* @__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>`);
28675
28768
  var _tmpl$2138 = /* @__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`);
28676
- var _tmpl$3119 = /* @__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.`);
28677
- var _tmpl$495 = /* @__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`);
28769
+ var _tmpl$3121 = /* @__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.`);
28770
+ var _tmpl$497 = /* @__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`);
28678
28771
  var _tmpl$571 = /* @__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">`);
28679
28772
  function formatMoney2(cents) {
28680
28773
  return `$${(cents / 100).toFixed(2)}`;
@@ -28719,10 +28812,10 @@ function AffiliateConversions() {
28719
28812
  return (conversions() ?? []).length > 0;
28720
28813
  },
28721
28814
  get fallback() {
28722
- return _tmpl$3119();
28815
+ return _tmpl$3121();
28723
28816
  },
28724
28817
  get children() {
28725
- var _el$3 = _tmpl$491(), _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;
28818
+ var _el$3 = _tmpl$496(), _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;
28726
28819
  insert(_el$10, createComponent(For, {
28727
28820
  get each() {
28728
28821
  return conversions();
@@ -28736,7 +28829,7 @@ function AffiliateConversions() {
28736
28829
  return c.tier === 2;
28737
28830
  },
28738
28831
  get children() {
28739
- return _tmpl$495();
28832
+ return _tmpl$497();
28740
28833
  }
28741
28834
  }), null);
28742
28835
  insert(_el$16, () => formatMoney2(c.orderTotalCents));
@@ -28807,10 +28900,10 @@ function td() {
28807
28900
  color: "var(--app-affiliate-fg)"
28808
28901
  };
28809
28902
  }
28810
- var _tmpl$496 = /* @__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>`);
28903
+ var _tmpl$498 = /* @__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>`);
28811
28904
  var _tmpl$2139 = /* @__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.`);
28812
- var _tmpl$3120 = /* @__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.`);
28813
- var _tmpl$497 = /* @__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>`);
28905
+ var _tmpl$3122 = /* @__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.`);
28906
+ var _tmpl$499 = /* @__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>`);
28814
28907
  function formatDate5(iso) {
28815
28908
  const d = new Date(iso);
28816
28909
  if (Number.isNaN(d.getTime())) return iso;
@@ -28849,16 +28942,16 @@ function AffiliateDownline() {
28849
28942
  return (downline() ?? []).length > 0;
28850
28943
  },
28851
28944
  get fallback() {
28852
- return _tmpl$3120();
28945
+ return _tmpl$3122();
28853
28946
  },
28854
28947
  get children() {
28855
- var _el$4 = _tmpl$496(), _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;
28948
+ var _el$4 = _tmpl$498(), _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;
28856
28949
  insert(_el$10, createComponent(For, {
28857
28950
  get each() {
28858
28951
  return downline();
28859
28952
  },
28860
28953
  children: (d) => (() => {
28861
- var _el$12 = _tmpl$497(), _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$15.nextSibling;
28954
+ var _el$12 = _tmpl$499(), _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$15.nextSibling;
28862
28955
  insert(_el$13, () => d.affiliateCode);
28863
28956
  insert(_el$14, () => [d.firstName, d.lastName].filter(Boolean).join(" ") || "\u2014");
28864
28957
  insert(_el$16, () => d.status);
@@ -28921,9 +29014,9 @@ function td2() {
28921
29014
  color: "var(--app-affiliate-fg)"
28922
29015
  };
28923
29016
  }
28924
- var _tmpl$498 = /* @__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.`);
29017
+ var _tmpl$500 = /* @__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.`);
28925
29018
  var _tmpl$2140 = /* @__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`);
28926
- var _tmpl$3121 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Your referral link will appear here once your account is approved.`);
29019
+ var _tmpl$3123 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Your referral link will appear here once your account is approved.`);
28927
29020
  function AffiliateReferralLink() {
28928
29021
  const {
28929
29022
  links
@@ -28954,10 +29047,10 @@ function AffiliateReferralLink() {
28954
29047
  return homepageLink();
28955
29048
  },
28956
29049
  get fallback() {
28957
- return _tmpl$3121();
29050
+ return _tmpl$3123();
28958
29051
  },
28959
29052
  get children() {
28960
- var _el$3 = _tmpl$498(), _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling; _el$5.nextSibling;
29053
+ var _el$3 = _tmpl$500(), _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling; _el$5.nextSibling;
28961
29054
  insert(_el$6, homepageLink);
28962
29055
  _el$7.$$click = copy;
28963
29056
  insert(_el$7, () => copied() ? "Copied" : "Copy");
@@ -28968,9 +29061,9 @@ function AffiliateReferralLink() {
28968
29061
  })();
28969
29062
  }
28970
29063
  delegateEvents(["click"]);
28971
- var _tmpl$499 = /* @__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.`);
29064
+ var _tmpl$501 = /* @__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.`);
28972
29065
  var _tmpl$2141 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Loading\u2026`);
28973
- var _tmpl$3122 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden">`);
29066
+ var _tmpl$3124 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden">`);
28974
29067
  var _tmpl$4100 = /* @__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)>`);
28975
29068
  var STATUS_LABEL2 = {
28976
29069
  pending: "Pending approval",
@@ -29006,7 +29099,7 @@ function AffiliateSettings() {
29006
29099
  value: a.paymentEmail ?? "\u2014"
29007
29100
  }];
29008
29101
  return (() => {
29009
- var _el$ = _tmpl$499(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild; _el$3.nextSibling;
29102
+ var _el$ = _tmpl$501(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild; _el$3.nextSibling;
29010
29103
  insert(_el$, createComponent(Show, {
29011
29104
  get when() {
29012
29105
  return affiliate();
@@ -29015,7 +29108,7 @@ function AffiliateSettings() {
29015
29108
  return _tmpl$2141();
29016
29109
  },
29017
29110
  children: (a) => (() => {
29018
- var _el$7 = _tmpl$3122();
29111
+ var _el$7 = _tmpl$3124();
29019
29112
  insert(_el$7, createComponent(For, {
29020
29113
  get each() {
29021
29114
  return rows(a());
@@ -29037,9 +29130,9 @@ function AffiliateSettings() {
29037
29130
  delegateEvents(["click"]);
29038
29131
 
29039
29132
  // src/pages/AffiliatePortal.tsx
29040
- var _tmpl$500 = /* @__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>`);
29133
+ var _tmpl$505 = /* @__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>`);
29041
29134
  var _tmpl$2142 = /* @__PURE__ */ template(`<span style=font-size:1rem;opacity:0.7;flex-shrink:0>`);
29042
- var _tmpl$3123 = /* @__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">`);
29135
+ var _tmpl$3125 = /* @__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">`);
29043
29136
  var _tmpl$4101 = /* @__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); } }`);
29044
29137
  var TAB_LABELS2 = {
29045
29138
  overview: "Overview",
@@ -29085,7 +29178,7 @@ function AffiliatePortal(props) {
29085
29178
  });
29086
29179
  },
29087
29180
  get children() {
29088
- var _el$ = _tmpl$500(), _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;
29181
+ var _el$ = _tmpl$505(), _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;
29089
29182
  _el$3.$$click = () => setDrawerOpen(true);
29090
29183
  insert(_el$4, () => TAB_LABELS2[currentTab()]);
29091
29184
  _el$5.$$click = () => setDrawerOpen(false);
@@ -29094,7 +29187,7 @@ function AffiliatePortal(props) {
29094
29187
  return orderedTabs();
29095
29188
  },
29096
29189
  children: (tab) => (() => {
29097
- var _el$1 = _tmpl$3123();
29190
+ var _el$1 = _tmpl$3125();
29098
29191
  _el$1.$$click = () => handleTabClick(tab);
29099
29192
  insert(_el$1, createComponent(Show, {
29100
29193
  get when() {
@@ -29197,11 +29290,11 @@ function AffiliateGateSpinner(props) {
29197
29290
  })();
29198
29291
  }
29199
29292
  delegateEvents(["click"]);
29200
- var _tmpl$501 = /* @__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">`);
29293
+ var _tmpl$506 = /* @__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">`);
29201
29294
  function AffiliatePasswordInput(props) {
29202
29295
  const [visible, setVisible] = createSignal(false);
29203
29296
  return (() => {
29204
- var _el$ = _tmpl$501(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
29297
+ var _el$ = _tmpl$506(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
29205
29298
  _el$2.$$input = (e) => props.onInput(e.currentTarget.value);
29206
29299
  _el$3.$$click = () => setVisible((v) => !v);
29207
29300
  insert(_el$3, () => visible() ? "Hide" : "Show");
@@ -29242,9 +29335,9 @@ function inputStyle() {
29242
29335
  delegateEvents(["input", "click"]);
29243
29336
 
29244
29337
  // src/pages/AffiliateRegister.tsx
29245
- var _tmpl$505 = /* @__PURE__ */ template(`<input type=text required autocomplete=given-name>`);
29338
+ var _tmpl$507 = /* @__PURE__ */ template(`<input type=text required autocomplete=given-name>`);
29246
29339
  var _tmpl$2143 = /* @__PURE__ */ template(`<input type=text required autocomplete=family-name>`);
29247
- var _tmpl$3124 = /* @__PURE__ */ template(`<input type=email required autocomplete=email>`);
29340
+ var _tmpl$3126 = /* @__PURE__ */ template(`<input type=email required autocomplete=email>`);
29248
29341
  var _tmpl$4102 = /* @__PURE__ */ template(`<input type=text required minlength=4>`);
29249
29342
  var _tmpl$574 = /* @__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">`);
29250
29343
  var _tmpl$666 = /* @__PURE__ */ template(`<button type=button>Already have an account? Log in`);
@@ -29297,7 +29390,7 @@ function AffiliateRegister(props) {
29297
29390
  insert(_el$6, createComponent(Row2, {
29298
29391
  label: "First name",
29299
29392
  get children() {
29300
- var _el$7 = _tmpl$505();
29393
+ var _el$7 = _tmpl$507();
29301
29394
  _el$7.$$input = (e) => setFirstName(e.currentTarget.value);
29302
29395
  effect((_$p) => style(_el$7, inputStyle2(), _$p));
29303
29396
  effect(() => _el$7.value = firstName());
@@ -29317,7 +29410,7 @@ function AffiliateRegister(props) {
29317
29410
  insert(_el$6, createComponent(Row2, {
29318
29411
  label: "Email",
29319
29412
  get children() {
29320
- var _el$9 = _tmpl$3124();
29413
+ var _el$9 = _tmpl$3126();
29321
29414
  _el$9.$$input = (e) => setEmail(e.currentTarget.value);
29322
29415
  effect((_$p) => style(_el$9, inputStyle2(), _$p));
29323
29416
  effect(() => _el$9.value = email());
@@ -29436,9 +29529,9 @@ function linkStyle() {
29436
29529
  };
29437
29530
  }
29438
29531
  delegateEvents(["input", "click"]);
29439
- var _tmpl$506 = /* @__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">`);
29532
+ var _tmpl$508 = /* @__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">`);
29440
29533
  var _tmpl$2144 = /* @__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?`);
29441
- var _tmpl$3125 = /* @__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`);
29534
+ var _tmpl$3127 = /* @__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`);
29442
29535
  var _tmpl$4103 = /* @__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">`);
29443
29536
  function AffiliateLogin(props) {
29444
29537
  const [email, setEmail] = createSignal("");
@@ -29475,7 +29568,7 @@ function AffiliateLogin(props) {
29475
29568
  return error();
29476
29569
  },
29477
29570
  get children() {
29478
- var _el$0 = _tmpl$506();
29571
+ var _el$0 = _tmpl$508();
29479
29572
  insert(_el$0, error);
29480
29573
  return _el$0;
29481
29574
  }
@@ -29496,7 +29589,7 @@ function AffiliateLogin(props) {
29496
29589
  return props.onNavigateRegister;
29497
29590
  },
29498
29591
  get children() {
29499
- var _el$11 = _tmpl$3125();
29592
+ var _el$11 = _tmpl$3127();
29500
29593
  _el$11.$$click = () => props.onNavigateRegister?.();
29501
29594
  return _el$11;
29502
29595
  }
@@ -29544,9 +29637,9 @@ function inputStyle3() {
29544
29637
  };
29545
29638
  }
29546
29639
  delegateEvents(["input", "click"]);
29547
- var _tmpl$507 = /* @__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">`);
29640
+ var _tmpl$509 = /* @__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">`);
29548
29641
  var _tmpl$2145 = /* @__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">`);
29549
- var _tmpl$3126 = /* @__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`);
29642
+ var _tmpl$3128 = /* @__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`);
29550
29643
  var _tmpl$4104 = /* @__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">`);
29551
29644
  var _tmpl$575 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.8125rem;opacity:0.8>The link is good for one hour. If nothing arrives, check your spam folder \u2014 and make sure this is the address you signed up with.`);
29552
29645
  var _tmpl$667 = /* @__PURE__ */ template(`<button type=button style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600;cursor:pointer">Back to sign in`);
@@ -29572,7 +29665,7 @@ function ForgotPasswordPage(props) {
29572
29665
  }
29573
29666
  }
29574
29667
  return (() => {
29575
- var _el$ = _tmpl$3126(), _el$2 = _el$.firstChild; _el$2.firstChild;
29668
+ var _el$ = _tmpl$3128(), _el$2 = _el$.firstChild; _el$2.firstChild;
29576
29669
  insert(_el$2, createComponent(Show, {
29577
29670
  get when() {
29578
29671
  return !message();
@@ -29602,7 +29695,7 @@ function ForgotPasswordPage(props) {
29602
29695
  return error();
29603
29696
  },
29604
29697
  get children() {
29605
- var _el$8 = _tmpl$507();
29698
+ var _el$8 = _tmpl$509();
29606
29699
  insert(_el$8, error);
29607
29700
  return _el$8;
29608
29701
  }
@@ -29652,9 +29745,9 @@ function inputStyle4() {
29652
29745
  };
29653
29746
  }
29654
29747
  delegateEvents(["input", "click"]);
29655
- var _tmpl$508 = /* @__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">`);
29748
+ var _tmpl$576 = /* @__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">`);
29656
29749
  var _tmpl$2146 = /* @__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">`);
29657
- var _tmpl$3127 = /* @__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`);
29750
+ var _tmpl$3129 = /* @__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`);
29658
29751
  var _tmpl$4105 = /* @__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">`);
29659
29752
  function queryParam(name) {
29660
29753
  if (typeof window === "undefined") return "";
@@ -29695,7 +29788,7 @@ function ResetPasswordPage(props) {
29695
29788
  }
29696
29789
  }
29697
29790
  return (() => {
29698
- var _el$ = _tmpl$3127(), _el$2 = _el$.firstChild; _el$2.firstChild;
29791
+ var _el$ = _tmpl$3129(), _el$2 = _el$.firstChild; _el$2.firstChild;
29699
29792
  insert(_el$2, createComponent(Show, {
29700
29793
  get when() {
29701
29794
  return !message();
@@ -29717,7 +29810,7 @@ function ResetPasswordPage(props) {
29717
29810
  return error();
29718
29811
  },
29719
29812
  get children() {
29720
- var _el$1 = _tmpl$508();
29813
+ var _el$1 = _tmpl$576();
29721
29814
  insert(_el$1, error);
29722
29815
  return _el$1;
29723
29816
  }
@@ -29772,11 +29865,11 @@ function inputStyle5() {
29772
29865
  };
29773
29866
  }
29774
29867
  delegateEvents(["input"]);
29775
- var _tmpl$509 = /* @__PURE__ */ template(`<div>`);
29868
+ var _tmpl$577 = /* @__PURE__ */ template(`<div>`);
29776
29869
  var _tmpl$2147 = /* @__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>`);
29777
- var _tmpl$3128 = /* @__PURE__ */ template(`<button type=button>Back to login`);
29870
+ var _tmpl$3130 = /* @__PURE__ */ template(`<button type=button>Back to login`);
29778
29871
  var _tmpl$4106 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Reset your password`);
29779
- var _tmpl$576 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.9rem>`);
29872
+ var _tmpl$578 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.9rem>`);
29780
29873
  function AffiliateForgotPassword(props) {
29781
29874
  const [email, setEmail] = createSignal("");
29782
29875
  const [submitting, setSubmitting] = createSignal(false);
@@ -29806,7 +29899,7 @@ function AffiliateForgotPassword(props) {
29806
29899
  },
29807
29900
  get fallback() {
29808
29901
  return (() => {
29809
- var _el$1 = _tmpl$576();
29902
+ var _el$1 = _tmpl$578();
29810
29903
  insert(_el$1, message);
29811
29904
  return _el$1;
29812
29905
  })();
@@ -29820,7 +29913,7 @@ function AffiliateForgotPassword(props) {
29820
29913
  return error();
29821
29914
  },
29822
29915
  get children() {
29823
- var _el$8 = _tmpl$509();
29916
+ var _el$8 = _tmpl$577();
29824
29917
  insert(_el$8, error);
29825
29918
  effect((_$p) => style(_el$8, errorStyle(), _$p));
29826
29919
  return _el$8;
@@ -29849,7 +29942,7 @@ function AffiliateForgotPassword(props) {
29849
29942
  return props.onNavigateLogin;
29850
29943
  },
29851
29944
  get children() {
29852
- var _el$0 = _tmpl$3128();
29945
+ var _el$0 = _tmpl$3130();
29853
29946
  _el$0.$$click = () => props.onNavigateLogin?.();
29854
29947
  effect((_$p) => style(_el$0, linkStyle2(), _$p));
29855
29948
  return _el$0;
@@ -29955,9 +30048,9 @@ function linkStyle2() {
29955
30048
  };
29956
30049
  }
29957
30050
  delegateEvents(["input", "click"]);
29958
- var _tmpl$577 = /* @__PURE__ */ template(`<div>`);
30051
+ var _tmpl$579 = /* @__PURE__ */ template(`<div>`);
29959
30052
  var _tmpl$2148 = /* @__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>`);
29960
- var _tmpl$3129 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Choose a new password`);
30053
+ var _tmpl$3131 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Choose a new password`);
29961
30054
  var _tmpl$4107 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.9rem>Your password has been reset. You can now log in with your new password.`);
29962
30055
  function queryParam2(name) {
29963
30056
  if (typeof window === "undefined") return "";
@@ -30002,7 +30095,7 @@ function AffiliateResetPassword(props) {
30002
30095
  }
30003
30096
  }
30004
30097
  return (() => {
30005
- var _el$ = _tmpl$3129(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
30098
+ var _el$ = _tmpl$3131(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
30006
30099
  insert(_el$2, createComponent(Show, {
30007
30100
  get when() {
30008
30101
  return !done();
@@ -30036,7 +30129,7 @@ function AffiliateResetPassword(props) {
30036
30129
  return error();
30037
30130
  },
30038
30131
  get children() {
30039
- var _el$9 = _tmpl$577();
30132
+ var _el$9 = _tmpl$579();
30040
30133
  insert(_el$9, error);
30041
30134
  effect((_$p) => style(_el$9, errorStyle2(), _$p));
30042
30135
  return _el$9;
@@ -30135,5 +30228,5 @@ function primaryButtonStyle2(submitting) {
30135
30228
  }
30136
30229
 
30137
30230
  export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath };
30138
- //# sourceMappingURL=BVJPX54P.js.map
30139
- //# sourceMappingURL=BVJPX54P.js.map
30231
+ //# sourceMappingURL=L4DFQMYM.js.map
30232
+ //# sourceMappingURL=L4DFQMYM.js.map