@apextelemed/partner-core 0.23.0-dev.78 → 0.23.0-dev.81
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.
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +3 -3
- package/dist/api/index.jsx +3 -3
- package/dist/chunk/{AOU7JIZI.jsx → 2TGKQDQV.jsx} +2 -2
- package/dist/chunk/{XKMPKFQC.js → 74A4ERWQ.js} +3 -3
- package/dist/chunk/{XKMPKFQC.js.map → 74A4ERWQ.js.map} +1 -1
- package/dist/chunk/{4VJRXVJP.js → BXXGDTLE.js} +172 -281
- package/dist/chunk/BXXGDTLE.js.map +1 -0
- package/dist/chunk/{5OLQYZKT.jsx → GIJCNQCB.jsx} +2 -2
- package/dist/chunk/{6JUMUKSN.jsx → GWVFWHTO.jsx} +5 -6
- package/dist/chunk/{2M3CVZ2D.js → HHNXH573.js} +6 -6
- package/dist/chunk/{2M3CVZ2D.js.map → HHNXH573.js.map} +1 -1
- package/dist/chunk/{F7FXSXKR.jsx → IGIUMJ3F.jsx} +5 -5
- package/dist/chunk/{XFKYBR7X.js → K2TKMLIY.js} +3 -3
- package/dist/chunk/{XFKYBR7X.js.map → K2TKMLIY.js.map} +1 -1
- package/dist/chunk/{5L6VDC4W.jsx → PHN4IMRV.jsx} +41 -138
- package/dist/chunk/{5OMDD7HC.js → PK74TNA6.js} +3 -3
- package/dist/chunk/{5OMDD7HC.js.map → PK74TNA6.js.map} +1 -1
- package/dist/chunk/{Z7QE2PW6.jsx → PQUHVBZN.jsx} +4 -4
- package/dist/chunk/{XLJ7GEWD.js → UOD5EQ6T.js} +5 -5
- package/dist/chunk/{XLJ7GEWD.js.map → UOD5EQ6T.js.map} +1 -1
- package/dist/chunk/{DTXQYGIJ.js → Y74YTJXR.js} +6 -7
- package/dist/chunk/Y74YTJXR.js.map +1 -0
- package/dist/chunk/{UBUC63F3.jsx → Z33DIIG6.jsx} +2 -2
- package/dist/{client-C1pHvA6f.d.ts → client-BdY7wkDp.d.ts} +16 -16
- package/dist/flows/index.d.ts +1 -1
- package/dist/flows/index.js +6 -6
- package/dist/flows/index.jsx +6 -6
- package/dist/index/index.d.ts +1 -1
- package/dist/index/index.js +7 -7
- package/dist/index/index.jsx +7 -7
- package/dist/pages/index.d.ts +1 -1
- package/dist/pages/index.js +5 -5
- package/dist/pages/index.jsx +5 -5
- package/dist/stores/index.d.ts +1 -1
- package/dist/stores/index.js +2 -2
- package/dist/stores/index.jsx +2 -2
- package/package.json +1 -1
- package/dist/chunk/4VJRXVJP.js.map +0 -1
- package/dist/chunk/DTXQYGIJ.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { disqualificationReasonText, qualifiedDrugIds } from './LZWA44KD.js';
|
|
2
|
-
import { SUPPORT_CATEGORIES, useSurveyFlow, reconcileCartAgainstCatalog, resolveSurveyV2DrugIntent, emailGateAnswered, redeemResumeLink, useSurveyV2Flow, US_STATE_OPTIONS, availableStateOptions, useCheckoutFlow, catalogUnavailableMessage, useCartCheckoutFlow, useSignupFlow, useRegisterFlow, useSubscribeFlow, useDashboardData, useUpdatePaymentMethodFlow, useMemberPortalData, useMessagesThread, captureFunnelEmail, markEmailGateAnswered, isCatalogItemId, subscribeToSupportTopic, useAffiliateStats, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, stateAvailabilityNote, hasStateRestrictions, uploadPrescriptionPhoto, deriveAttention, deriveJourney, buildTimeline, lifecycleReason, accountSource, intakeEvidence, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, classifyCatalogError, groupDrugsByPharmacy, useProductCatalogEditor, skuBindingModeFor, isCssColorValue, categoryLabel, useSmsPreferences, formatUsPhone, formatConversationTime, buildTrackerView, ACCOUNT_SOURCE_LABEL, fmtDay, createCatalogProduct, addCatalogItemAsProduct, applyPriceDrafts, resolveStrengthPrices, invalidDraftKeys, orphanKey, ORPHAN_REASON, useAddPharmacy, READINESS_LABEL, useCatalogConversion, formatCalendarDate, formatMessageTime, formatEventDate, formatStageDate, offerSummaryText, LIFECYCLE_TONE, buildTrackingUrl, buildStrengthRows, pharmacyLabel, isImageAttachment, buildRefillView, toTrackerRequest, needsReview, visibleWarnings, compareStrengths, MATCH_DEPENDENT_WARNINGS, SOURCE_FIELD_NOTE, MATCH_HOW_LABEL, explainFinding, matchKey } from './
|
|
3
|
-
import { fetchFunnelConfig } from './
|
|
2
|
+
import { SUPPORT_CATEGORIES, useSurveyFlow, reconcileCartAgainstCatalog, resolveSurveyV2DrugIntent, emailGateAnswered, redeemResumeLink, useSurveyV2Flow, US_STATE_OPTIONS, availableStateOptions, useCheckoutFlow, catalogUnavailableMessage, useCartCheckoutFlow, useSignupFlow, useRegisterFlow, useSubscribeFlow, useDashboardData, useUpdatePaymentMethodFlow, useMemberPortalData, useMessagesThread, captureFunnelEmail, markEmailGateAnswered, isCatalogItemId, subscribeToSupportTopic, useAffiliateStats, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, stateAvailabilityNote, hasStateRestrictions, uploadPrescriptionPhoto, deriveAttention, deriveJourney, buildTimeline, lifecycleReason, accountSource, intakeEvidence, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, classifyCatalogError, groupDrugsByPharmacy, useProductCatalogEditor, skuBindingModeFor, isCssColorValue, categoryLabel, useSmsPreferences, formatUsPhone, formatConversationTime, buildTrackerView, ACCOUNT_SOURCE_LABEL, fmtDay, createCatalogProduct, addCatalogItemAsProduct, applyPriceDrafts, resolveStrengthPrices, invalidDraftKeys, orphanKey, ORPHAN_REASON, useAddPharmacy, READINESS_LABEL, useCatalogConversion, formatCalendarDate, formatMessageTime, formatEventDate, formatStageDate, offerSummaryText, LIFECYCLE_TONE, buildTrackingUrl, buildStrengthRows, pharmacyLabel, isImageAttachment, buildRefillView, toTrackerRequest, needsReview, visibleWarnings, compareStrengths, MATCH_DEPENDENT_WARNINGS, SOURCE_FIELD_NOTE, MATCH_HOW_LABEL, explainFinding, matchKey } from './UOD5EQ6T.js';
|
|
3
|
+
import { fetchFunnelConfig } from './PK74TNA6.js';
|
|
4
4
|
import { usePrimitives } from './67KHO66G.js';
|
|
5
|
-
import { cart_default, auth_default, affiliateAuth_default } from './
|
|
6
|
-
import { usersApi, adminApi, membersApi, offersApi, authApi, affiliatePortalApi, adminAffiliatesApi, apiFetch, apexApi, adminCatalogApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, ADMIN_ROLES, ApiError, subscriptionsApi } from './
|
|
5
|
+
import { cart_default, auth_default, affiliateAuth_default } from './74A4ERWQ.js';
|
|
6
|
+
import { usersApi, adminApi, membersApi, offersApi, authApi, affiliatePortalApi, adminAffiliatesApi, apiFetch, apexApi, adminCatalogApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, ADMIN_ROLES, ApiError, subscriptionsApi } from './Y74YTJXR.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';
|
|
@@ -15392,7 +15392,7 @@ var _tmpl$354 = /* @__PURE__ */ template(`<span style="display:block;font-size:0
|
|
|
15392
15392
|
var _tmpl$445 = /* @__PURE__ */ template(`<span class=app-admin-heading style=display:block;font-size:1.875rem;margin:0>`);
|
|
15393
15393
|
var _tmpl$540 = /* @__PURE__ */ template(`<div style="display:grid;gap:1rem;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));padding:1rem 1.25rem">`);
|
|
15394
15394
|
var _tmpl$635 = /* @__PURE__ */ template(`<table class=app-admin-table><thead><tr><th>Paying</th><th>Subscribers</th><th style=text-align:right>Monthly equiv.</th><th style=width:40%>Share of MRR</th></tr></thead><tbody>`);
|
|
15395
|
-
var _tmpl$733 = /* @__PURE__ */ template(`<p style="margin:0;padding:0.75rem 1.25rem;font-size:0.75rem;color:var(--app-admin-fg-subtle)">Active, non-test subscriptions at what they're charged now, after discounts. Other billing cycles are converted to a 30-day month.`);
|
|
15395
|
+
var _tmpl$733 = /* @__PURE__ */ template(`<p style="margin:0;padding:0.75rem 1.25rem;font-size:0.75rem;color:var(--app-admin-fg-subtle)">Active and past-due, non-test subscriptions at what they're charged now, after discounts. Other billing cycles are converted to a 30-day month.`);
|
|
15396
15396
|
var _tmpl$829 = /* @__PURE__ */ template(`<div data-testid=admin-recurring-revenue style=margin-top:1.5rem>`);
|
|
15397
15397
|
var _tmpl$925 = /* @__PURE__ */ template(`<div style="background:var(--app-admin-surface-light);border-radius:var(--app-admin-radius);padding:0.875rem 1rem"><span style="display:block;font-size:0.8125rem;color:var(--app-admin-fg-muted);margin:0 0 0.25rem"></span><span class=app-admin-heading style=display:block;font-size:1.5rem>`);
|
|
15398
15398
|
var _tmpl$022 = /* @__PURE__ */ template(`<tr><td><div style=font-weight:600></div><div style=font-size:0.75rem;color:var(--app-admin-fg-subtle)></div></td><td></td><td style=text-align:right></td><td><div style=display:flex;align-items:center;gap:0.5rem><div style=flex:1;height:8px;background:var(--app-admin-border-soft);border-radius:4px><div style=height:8px;background:var(--app-admin-primary);border-radius:4px></div></div><span style=min-width:3rem;text-align:right;font-size:0.8125rem;color:var(--app-admin-fg-muted)>%`);
|
|
@@ -15423,13 +15423,22 @@ function Dashboard(props) {
|
|
|
15423
15423
|
},
|
|
15424
15424
|
// Subscriptions live inside the customer 360 now; the card drills into
|
|
15425
15425
|
// the customer list (which lands on the active-subscribers filter when
|
|
15426
|
-
// reached through the retired 'subscriptions' tab alias).
|
|
15426
|
+
// reached through the retired 'subscriptions' tab alias). Past due
|
|
15427
|
+
// counts: it hasn't ended, its card is being retried.
|
|
15427
15428
|
{
|
|
15428
15429
|
label: "Active Subscriptions",
|
|
15429
15430
|
value: s.activeSubscriptions.toLocaleString(),
|
|
15430
15431
|
tint: "var(--app-admin-success-fg)",
|
|
15431
15432
|
tab: "customers"
|
|
15432
15433
|
},
|
|
15434
|
+
// Who support should chase: opens the customer list on Past due.
|
|
15435
|
+
...s.pastDueCustomers !== void 0 ? [{
|
|
15436
|
+
label: "Past Due Customers",
|
|
15437
|
+
value: s.pastDueCustomers.toLocaleString(),
|
|
15438
|
+
tint: s.pastDueCustomers > 0 ? "var(--app-admin-danger-fg)" : "var(--app-admin-fg-muted)",
|
|
15439
|
+
tab: "customers",
|
|
15440
|
+
filter: "past_due"
|
|
15441
|
+
}] : [],
|
|
15433
15442
|
{
|
|
15434
15443
|
label: "Revenue (All Time)",
|
|
15435
15444
|
value: centsToUsd(s.totalRevenueCents),
|
|
@@ -15444,6 +15453,10 @@ function Dashboard(props) {
|
|
|
15444
15453
|
}
|
|
15445
15454
|
];
|
|
15446
15455
|
};
|
|
15456
|
+
const openCard = (card) => {
|
|
15457
|
+
if (card.filter && props.onOpenCustomers) props.onOpenCustomers(card.filter);
|
|
15458
|
+
else props.onSelectTab(card.tab);
|
|
15459
|
+
};
|
|
15447
15460
|
return (() => {
|
|
15448
15461
|
var _el$ = _tmpl$281(), _el$3 = _el$.firstChild;
|
|
15449
15462
|
insert(_el$, createComponent(PageTitle, {
|
|
@@ -15477,7 +15490,7 @@ function Dashboard(props) {
|
|
|
15477
15490
|
return createComponent(Dynamic, {
|
|
15478
15491
|
component: clickable ? "button" : "div",
|
|
15479
15492
|
type: clickable ? "button" : void 0,
|
|
15480
|
-
onClick: clickable ? () =>
|
|
15493
|
+
onClick: clickable ? () => openCard(card) : void 0,
|
|
15481
15494
|
get title() {
|
|
15482
15495
|
return clickable ? `View ${card.label}` : void 0;
|
|
15483
15496
|
},
|
|
@@ -28003,67 +28016,11 @@ function SmsLogCard(props) {
|
|
|
28003
28016
|
});
|
|
28004
28017
|
}
|
|
28005
28018
|
delegateEvents(["click"]);
|
|
28006
|
-
|
|
28007
|
-
|
|
28008
|
-
var
|
|
28009
|
-
|
|
28010
|
-
var
|
|
28011
|
-
var BASIC = new Set(GSM_BASIC);
|
|
28012
|
-
var EXTENDED = new Set(GSM_EXTENDED);
|
|
28013
|
-
var GSM7_SINGLE = 160;
|
|
28014
|
-
var GSM7_MULTI = 153;
|
|
28015
|
-
var UCS2_SINGLE = 70;
|
|
28016
|
-
var UCS2_MULTI = 67;
|
|
28017
|
-
function countSmsSegments(text) {
|
|
28018
|
-
let gsmUnits = 0;
|
|
28019
|
-
let gsm = true;
|
|
28020
|
-
for (const ch of text) {
|
|
28021
|
-
if (BASIC.has(ch)) gsmUnits += 1;
|
|
28022
|
-
else if (EXTENDED.has(ch)) gsmUnits += 2;
|
|
28023
|
-
else {
|
|
28024
|
-
gsm = false;
|
|
28025
|
-
break;
|
|
28026
|
-
}
|
|
28027
|
-
}
|
|
28028
|
-
if (gsm) {
|
|
28029
|
-
return {
|
|
28030
|
-
encoding: "GSM-7",
|
|
28031
|
-
units: gsmUnits,
|
|
28032
|
-
segments: gsmUnits === 0 ? 0 : gsmUnits <= GSM7_SINGLE ? 1 : Math.ceil(gsmUnits / GSM7_MULTI)
|
|
28033
|
-
};
|
|
28034
|
-
}
|
|
28035
|
-
const units = text.length;
|
|
28036
|
-
return {
|
|
28037
|
-
encoding: "UCS-2",
|
|
28038
|
-
units,
|
|
28039
|
-
segments: units <= UCS2_SINGLE ? 1 : Math.ceil(units / UCS2_MULTI)
|
|
28040
|
-
};
|
|
28041
|
-
}
|
|
28042
|
-
function segmentCapacity(info) {
|
|
28043
|
-
if (info.encoding === "GSM-7") return info.segments <= 1 ? GSM7_SINGLE : GSM7_MULTI * info.segments;
|
|
28044
|
-
return info.segments <= 1 ? UCS2_SINGLE : UCS2_MULTI * info.segments;
|
|
28045
|
-
}
|
|
28046
|
-
|
|
28047
|
-
// src/pages/admin/sms/smsTemplateDraft.ts
|
|
28048
|
-
function changeFor(saved, draft) {
|
|
28049
|
-
const change = {};
|
|
28050
|
-
if (draft.enabled !== saved.enabled) change.enabled = draft.enabled;
|
|
28051
|
-
if (draft.body !== saved.body) change.body = draft.body === saved.defaultBody ? null : draft.body;
|
|
28052
|
-
return Object.keys(change).length > 0 ? change : null;
|
|
28053
|
-
}
|
|
28054
|
-
var tokenText = (token) => `{{${token}}}`;
|
|
28055
|
-
|
|
28056
|
-
// src/pages/admin/sms/SmsTemplatesCard.tsx
|
|
28057
|
-
var _tmpl$478 = /* @__PURE__ */ template(`<div class=app-admin-notice role=note>This text has a character outside the basic SMS alphabet (a curly quote, an emoji or an accented letter), so it is sent in a form that fits only 70 characters per segment instead of 160.`);
|
|
28058
|
-
var _tmpl$2131 = /* @__PURE__ */ template(`<div style=display:flex;flex-wrap:wrap;align-items:center;gap:0.375rem><span>Insert:`);
|
|
28059
|
-
var _tmpl$3105 = /* @__PURE__ */ template(`<div>Preview: <span style=color:var(--app-admin-fg)>`);
|
|
28060
|
-
var _tmpl$479 = /* @__PURE__ */ template(`<div class=app-admin-notice role=alert>`);
|
|
28061
|
-
var _tmpl$568 = /* @__PURE__ */ template(`<div>The test sends the saved text. Save your changes first to try them.`);
|
|
28062
|
-
var _tmpl$660 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style=padding:0.875rem;display:grid;gap:0.625rem><div style=display:flex;align-items:center;justify-content:space-between;gap:1rem><div style=font-size:0.875rem;font-weight:600></div><label style=display:flex;align-items:center;gap:0.5rem;font-size:0.8125rem;cursor:pointer><input type=checkbox role=switch></label></div><textarea class=app-admin-input rows=3></textarea><div style="display:flex;flex-wrap:wrap;justify-content:space-between;gap:0.5rem 1rem"><span data-testid=sms-counter>/300 characters \xB7 <!> \xB7 <!>/<!> \xB7 <!> </span><span>Must start with <!>.</span></div><div class=app-admin-btn-row><button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm"></button><button type=button class="app-admin-btn app-admin-btn-sm">Reset to default</button><button type=button class="app-admin-btn app-admin-btn-sm">`);
|
|
28063
|
-
var _tmpl$754 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-sm">`);
|
|
28064
|
-
var _tmpl$846 = /* @__PURE__ */ template(`<div class=app-admin-notice role=status>`);
|
|
28065
|
-
var _tmpl$942 = /* @__PURE__ */ template(`<div class=app-admin-notice role=alert>The texts could not be loaded. `);
|
|
28066
|
-
var MAX_BODY_LENGTH = 300;
|
|
28019
|
+
var _tmpl$478 = /* @__PURE__ */ template(`<div class=app-admin-notice role=alert>`);
|
|
28020
|
+
var _tmpl$2131 = /* @__PURE__ */ template(`<div>The test follows the saved setting. Save your change first.`);
|
|
28021
|
+
var _tmpl$3105 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style=padding:0.875rem;display:grid;gap:0.625rem><div style=display:flex;align-items:center;justify-content:space-between;gap:1rem><div style=font-size:0.875rem;font-weight:600></div><label style=display:flex;align-items:center;gap:0.5rem;font-size:0.8125rem;cursor:pointer><input type=checkbox role=switch></label></div><div data-testid=sms-preview>Preview: <span style=color:var(--app-admin-fg)></span></div><div class=app-admin-btn-row><button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm"></button><button type=button class="app-admin-btn app-admin-btn-sm">`);
|
|
28022
|
+
var _tmpl$479 = /* @__PURE__ */ template(`<div class=app-admin-notice role=status>`);
|
|
28023
|
+
var _tmpl$568 = /* @__PURE__ */ template(`<div class=app-admin-notice role=alert>The texts could not be loaded. `);
|
|
28067
28024
|
function testMessage(res) {
|
|
28068
28025
|
switch (res.status) {
|
|
28069
28026
|
case "sent":
|
|
@@ -28093,46 +28050,27 @@ function testMessage(res) {
|
|
|
28093
28050
|
};
|
|
28094
28051
|
}
|
|
28095
28052
|
}
|
|
28096
|
-
function
|
|
28053
|
+
function TemplateRow(props) {
|
|
28097
28054
|
const saved = () => props.template;
|
|
28098
28055
|
const [enabled, setEnabled] = createSignal(saved().enabled);
|
|
28099
|
-
const [body, setBody] = createSignal(saved().body);
|
|
28100
28056
|
const [saving, setSaving] = createSignal(false);
|
|
28101
28057
|
const [error, setError] = createSignal(null);
|
|
28102
28058
|
const [testing, setTesting] = createSignal(false);
|
|
28103
28059
|
const [test, setTest] = createSignal(null);
|
|
28104
|
-
|
|
28105
|
-
const change = () => changeFor(saved(), {
|
|
28106
|
-
enabled: enabled(),
|
|
28107
|
-
body: body()
|
|
28108
|
-
});
|
|
28109
|
-
const dirty = () => change() !== null;
|
|
28110
|
-
const counts = () => countSmsSegments(body());
|
|
28111
|
-
const tooLong = () => body().length > MAX_BODY_LENGTH;
|
|
28112
|
-
const insertToken = (token) => {
|
|
28113
|
-
const text = tokenText(token);
|
|
28114
|
-
const start = area?.selectionStart ?? body().length;
|
|
28115
|
-
const end = area?.selectionEnd ?? start;
|
|
28116
|
-
setBody(body().slice(0, start) + text + body().slice(end));
|
|
28117
|
-
const caret = start + text.length;
|
|
28118
|
-
queueMicrotask(() => {
|
|
28119
|
-
area?.focus();
|
|
28120
|
-
area?.setSelectionRange(caret, caret);
|
|
28121
|
-
});
|
|
28122
|
-
};
|
|
28060
|
+
const dirty = () => enabled() !== saved().enabled;
|
|
28123
28061
|
const save = async () => {
|
|
28124
|
-
|
|
28125
|
-
if (!c || saving()) return;
|
|
28062
|
+
if (!dirty() || saving()) return;
|
|
28126
28063
|
setSaving(true);
|
|
28127
28064
|
setError(null);
|
|
28128
28065
|
try {
|
|
28129
28066
|
const res = await adminApi.saveSmsTemplates({
|
|
28130
|
-
[saved().key]:
|
|
28067
|
+
[saved().key]: {
|
|
28068
|
+
enabled: enabled()
|
|
28069
|
+
}
|
|
28131
28070
|
});
|
|
28132
28071
|
const next = res.templates.find((t) => t.key === saved().key);
|
|
28133
28072
|
if (next) {
|
|
28134
28073
|
setEnabled(next.enabled);
|
|
28135
|
-
setBody(next.body);
|
|
28136
28074
|
props.onSaved(next);
|
|
28137
28075
|
}
|
|
28138
28076
|
toastSuccess(`${saved().label} text saved`);
|
|
@@ -28158,84 +28096,33 @@ function TemplateEditor(props) {
|
|
|
28158
28096
|
}
|
|
28159
28097
|
};
|
|
28160
28098
|
return (() => {
|
|
28161
|
-
var _el$ = _tmpl$
|
|
28099
|
+
var _el$ = _tmpl$3105(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild, _el$6 = _el$2.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$0 = _el$6.nextSibling, _el$1 = _el$0.firstChild, _el$10 = _el$1.nextSibling;
|
|
28162
28100
|
insert(_el$3, () => saved().label);
|
|
28163
28101
|
_el$5.addEventListener("change", (e) => setEnabled(e.currentTarget.checked));
|
|
28164
28102
|
insert(_el$4, () => enabled() ? "On" : "Off", null);
|
|
28165
|
-
_el$
|
|
28166
|
-
var _ref$ = area;
|
|
28167
|
-
typeof _ref$ === "function" ? use(_ref$, _el$6) : area = _el$6;
|
|
28168
|
-
insert(_el$8, () => body().length, _el$9);
|
|
28169
|
-
insert(_el$8, () => counts().encoding, _el$15);
|
|
28170
|
-
insert(_el$8, () => counts().units, _el$16);
|
|
28171
|
-
insert(_el$8, () => segmentCapacity(counts()), _el$17);
|
|
28172
|
-
insert(_el$8, () => counts().segments, _el$18);
|
|
28173
|
-
insert(_el$8, () => counts().segments === 1 ? "segment" : "segments", null);
|
|
28174
|
-
insert(_el$19, () => tokenText("siteName"), _el$22);
|
|
28175
|
-
insert(_el$, createComponent(Show, {
|
|
28176
|
-
get when() {
|
|
28177
|
-
return memo(() => counts().encoding === "UCS-2")() && body().length > 0;
|
|
28178
|
-
},
|
|
28179
|
-
get children() {
|
|
28180
|
-
return _tmpl$478();
|
|
28181
|
-
}
|
|
28182
|
-
}), _el$30);
|
|
28183
|
-
insert(_el$, createComponent(Show, {
|
|
28184
|
-
get when() {
|
|
28185
|
-
return saved().tokens.length > 0;
|
|
28186
|
-
},
|
|
28187
|
-
get children() {
|
|
28188
|
-
var _el$24 = _tmpl$2131(), _el$25 = _el$24.firstChild;
|
|
28189
|
-
insert(_el$24, createComponent(For, {
|
|
28190
|
-
get each() {
|
|
28191
|
-
return saved().tokens;
|
|
28192
|
-
},
|
|
28193
|
-
children: (token) => (() => {
|
|
28194
|
-
var _el$35 = _tmpl$754();
|
|
28195
|
-
_el$35.$$click = () => insertToken(token);
|
|
28196
|
-
insert(_el$35, () => tokenText(token));
|
|
28197
|
-
effect(() => setAttribute(_el$35, "aria-label", `Insert ${tokenText(token)}`));
|
|
28198
|
-
return _el$35;
|
|
28199
|
-
})()
|
|
28200
|
-
}), null);
|
|
28201
|
-
effect((_$p) => style(_el$25, muted3, _$p));
|
|
28202
|
-
return _el$24;
|
|
28203
|
-
}
|
|
28204
|
-
}), _el$30);
|
|
28205
|
-
insert(_el$, createComponent(Show, {
|
|
28206
|
-
get when() {
|
|
28207
|
-
return memo(() => !!!dirty())() && saved().preview;
|
|
28208
|
-
},
|
|
28209
|
-
get children() {
|
|
28210
|
-
var _el$26 = _tmpl$3105(), _el$27 = _el$26.firstChild, _el$28 = _el$27.nextSibling;
|
|
28211
|
-
insert(_el$28, () => saved().preview);
|
|
28212
|
-
effect((_$p) => style(_el$26, muted3, _$p));
|
|
28213
|
-
return _el$26;
|
|
28214
|
-
}
|
|
28215
|
-
}), _el$30);
|
|
28103
|
+
insert(_el$8, () => saved().preview);
|
|
28216
28104
|
insert(_el$, createComponent(Show, {
|
|
28217
28105
|
get when() {
|
|
28218
28106
|
return error();
|
|
28219
28107
|
},
|
|
28220
28108
|
get children() {
|
|
28221
|
-
var _el$
|
|
28222
|
-
insert(_el$
|
|
28223
|
-
return _el$
|
|
28109
|
+
var _el$9 = _tmpl$478();
|
|
28110
|
+
insert(_el$9, error);
|
|
28111
|
+
return _el$9;
|
|
28224
28112
|
}
|
|
28225
|
-
}), _el$
|
|
28226
|
-
_el$
|
|
28227
|
-
insert(_el$
|
|
28228
|
-
_el$
|
|
28229
|
-
_el$
|
|
28230
|
-
insert(_el$33, () => testing() ? "Sending\u2026" : "Send test to my phone");
|
|
28113
|
+
}), _el$0);
|
|
28114
|
+
_el$1.$$click = () => void save();
|
|
28115
|
+
insert(_el$1, () => saving() ? "Saving\u2026" : "Save");
|
|
28116
|
+
_el$10.$$click = () => void sendTest();
|
|
28117
|
+
insert(_el$10, () => testing() ? "Sending\u2026" : "Send test to my phone");
|
|
28231
28118
|
insert(_el$, createComponent(Show, {
|
|
28232
28119
|
get when() {
|
|
28233
28120
|
return dirty();
|
|
28234
28121
|
},
|
|
28235
28122
|
get children() {
|
|
28236
|
-
var _el$
|
|
28237
|
-
effect((_$p) => style(_el$
|
|
28238
|
-
return _el$
|
|
28123
|
+
var _el$11 = _tmpl$2131();
|
|
28124
|
+
effect((_$p) => style(_el$11, muted3, _$p));
|
|
28125
|
+
return _el$11;
|
|
28239
28126
|
}
|
|
28240
28127
|
}), null);
|
|
28241
28128
|
insert(_el$, createComponent(Show, {
|
|
@@ -28243,41 +28130,30 @@ function TemplateEditor(props) {
|
|
|
28243
28130
|
return test();
|
|
28244
28131
|
},
|
|
28245
28132
|
children: (t) => (() => {
|
|
28246
|
-
var _el$
|
|
28247
|
-
insert(_el$
|
|
28248
|
-
effect((_$p) => style(_el$
|
|
28133
|
+
var _el$12 = _tmpl$479();
|
|
28134
|
+
insert(_el$12, () => t().text);
|
|
28135
|
+
effect((_$p) => style(_el$12, t().tone === "bad" ? {
|
|
28249
28136
|
color: "var(--app-admin-danger-fg)"
|
|
28250
28137
|
} : void 0, _$p));
|
|
28251
|
-
return _el$
|
|
28138
|
+
return _el$12;
|
|
28252
28139
|
})()
|
|
28253
28140
|
}), null);
|
|
28254
28141
|
effect((_p$) => {
|
|
28255
|
-
var _v$ = saved().key, _v$2 = `Send the ${saved().label} text`, _v$3 =
|
|
28256
|
-
...muted3
|
|
28257
|
-
}, _v$5 = tooLong() ? {
|
|
28258
|
-
color: "var(--app-admin-danger-fg)"
|
|
28259
|
-
} : void 0, _v$6 = !dirty() || saving(), _v$7 = body() === saved().defaultBody || saving(), _v$8 = testing();
|
|
28142
|
+
var _v$ = saved().key, _v$2 = `Send the ${saved().label} text`, _v$3 = muted3, _v$4 = !dirty() || saving(), _v$5 = testing();
|
|
28260
28143
|
_v$ !== _p$.e && setAttribute(_el$, "data-template", _p$.e = _v$);
|
|
28261
28144
|
_v$2 !== _p$.t && setAttribute(_el$5, "aria-label", _p$.t = _v$2);
|
|
28262
|
-
|
|
28263
|
-
_p$.o
|
|
28264
|
-
_p$.i
|
|
28265
|
-
_v$6 !== _p$.n && (_el$31.disabled = _p$.n = _v$6);
|
|
28266
|
-
_v$7 !== _p$.s && (_el$32.disabled = _p$.s = _v$7);
|
|
28267
|
-
_v$8 !== _p$.h && (_el$33.disabled = _p$.h = _v$8);
|
|
28145
|
+
_p$.a = style(_el$6, _v$3, _p$.a);
|
|
28146
|
+
_v$4 !== _p$.o && (_el$1.disabled = _p$.o = _v$4);
|
|
28147
|
+
_v$5 !== _p$.i && (_el$10.disabled = _p$.i = _v$5);
|
|
28268
28148
|
return _p$;
|
|
28269
28149
|
}, {
|
|
28270
28150
|
e: void 0,
|
|
28271
28151
|
t: void 0,
|
|
28272
28152
|
a: void 0,
|
|
28273
28153
|
o: void 0,
|
|
28274
|
-
i: void 0
|
|
28275
|
-
n: void 0,
|
|
28276
|
-
s: void 0,
|
|
28277
|
-
h: void 0
|
|
28154
|
+
i: void 0
|
|
28278
28155
|
});
|
|
28279
28156
|
effect(() => _el$5.checked = enabled());
|
|
28280
|
-
effect(() => _el$6.value = body());
|
|
28281
28157
|
return _el$;
|
|
28282
28158
|
})();
|
|
28283
28159
|
}
|
|
@@ -28295,16 +28171,16 @@ function SmsTemplatesCard(props) {
|
|
|
28295
28171
|
});
|
|
28296
28172
|
return createComponent(SmsCard, {
|
|
28297
28173
|
title: "What the texts say",
|
|
28298
|
-
note: "
|
|
28174
|
+
note: "The wording of each text is fixed. You can switch each one on or off.",
|
|
28299
28175
|
get children() {
|
|
28300
28176
|
return [createComponent(Show, {
|
|
28301
28177
|
get when() {
|
|
28302
28178
|
return data.error;
|
|
28303
28179
|
},
|
|
28304
28180
|
get children() {
|
|
28305
|
-
var _el$
|
|
28306
|
-
insert(_el$
|
|
28307
|
-
return _el$
|
|
28181
|
+
var _el$13 = _tmpl$568(); _el$13.firstChild;
|
|
28182
|
+
insert(_el$13, () => data.error?.message, null);
|
|
28183
|
+
return _el$13;
|
|
28308
28184
|
}
|
|
28309
28185
|
}), createComponent(Show, {
|
|
28310
28186
|
get when() {
|
|
@@ -28317,7 +28193,7 @@ function SmsTemplatesCard(props) {
|
|
|
28317
28193
|
get each() {
|
|
28318
28194
|
return templates();
|
|
28319
28195
|
},
|
|
28320
|
-
children: (t) => createComponent(
|
|
28196
|
+
children: (t) => createComponent(TemplateRow, {
|
|
28321
28197
|
template: t,
|
|
28322
28198
|
onSaved: replace
|
|
28323
28199
|
})
|
|
@@ -28325,7 +28201,7 @@ function SmsTemplatesCard(props) {
|
|
|
28325
28201
|
}
|
|
28326
28202
|
});
|
|
28327
28203
|
}
|
|
28328
|
-
delegateEvents(["
|
|
28204
|
+
delegateEvents(["click"]);
|
|
28329
28205
|
|
|
28330
28206
|
// src/pages/admin/SmsSettings.tsx
|
|
28331
28207
|
var _tmpl$480 = /* @__PURE__ */ template(`<div style=display:flex;gap:1rem;font-size:0.875rem><div style=width:8rem;flex-shrink:0></div><div style=min-width:0;word-break:break-word>`);
|
|
@@ -28333,10 +28209,10 @@ var _tmpl$2132 = /* @__PURE__ */ template(`<p data-testid=sms-status-text style=
|
|
|
28333
28209
|
var _tmpl$3106 = /* @__PURE__ */ template(`<button type=button class=app-admin-link-btn>Go to Features`);
|
|
28334
28210
|
var _tmpl$481 = /* @__PURE__ */ template(`<div class=app-admin-notice data-testid=sms-feature-off>Before this site can text customers, a number has to be registered with carriers, which we set up for you. Ask for it under Settings \u203A Features.`);
|
|
28335
28211
|
var _tmpl$569 = /* @__PURE__ */ template(`<a target=_blank rel="noopener noreferrer">`);
|
|
28336
|
-
var _tmpl$
|
|
28337
|
-
var _tmpl$
|
|
28338
|
-
var _tmpl$
|
|
28339
|
-
var _tmpl$
|
|
28212
|
+
var _tmpl$660 = /* @__PURE__ */ template(`<div style=display:grid;gap:0.5rem>`);
|
|
28213
|
+
var _tmpl$754 = /* @__PURE__ */ template(`<span data-testid=sms-status-badge>`);
|
|
28214
|
+
var _tmpl$846 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>No number yet`);
|
|
28215
|
+
var _tmpl$942 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>-`);
|
|
28340
28216
|
var _tmpl$038 = /* @__PURE__ */ template(`<div class=app-admin-notice role=alert style=margin-top:1.25rem>Text message settings could not be loaded. `);
|
|
28341
28217
|
var _tmpl$1140 = /* @__PURE__ */ template(`<div>`);
|
|
28342
28218
|
var NOT_READY = {
|
|
@@ -28363,7 +28239,7 @@ function StatusCard(props) {
|
|
|
28363
28239
|
title: "Status",
|
|
28364
28240
|
get aside() {
|
|
28365
28241
|
return (() => {
|
|
28366
|
-
var _el$1 = _tmpl$
|
|
28242
|
+
var _el$1 = _tmpl$754();
|
|
28367
28243
|
insert(_el$1, () => s().ready ? "Ready" : "Not sending");
|
|
28368
28244
|
effect(() => className(_el$1, `app-admin-badge app-admin-badge--${s().ready ? "success" : "warning"}`));
|
|
28369
28245
|
return _el$1;
|
|
@@ -28402,17 +28278,17 @@ function StatusCard(props) {
|
|
|
28402
28278
|
return s().feature;
|
|
28403
28279
|
},
|
|
28404
28280
|
get children() {
|
|
28405
|
-
var _el$8 = _tmpl$
|
|
28281
|
+
var _el$8 = _tmpl$660();
|
|
28406
28282
|
insert(_el$8, createComponent(Row2, {
|
|
28407
28283
|
label: "Sends from",
|
|
28408
28284
|
get children() {
|
|
28409
|
-
return s().fromNumber ?? _tmpl$
|
|
28285
|
+
return s().fromNumber ?? _tmpl$846();
|
|
28410
28286
|
}
|
|
28411
28287
|
}), null);
|
|
28412
28288
|
insert(_el$8, createComponent(Row2, {
|
|
28413
28289
|
label: "Brand name",
|
|
28414
28290
|
get children() {
|
|
28415
|
-
return s().brandName || _tmpl$
|
|
28291
|
+
return s().brandName || _tmpl$942();
|
|
28416
28292
|
}
|
|
28417
28293
|
}), null);
|
|
28418
28294
|
insert(_el$8, createComponent(Row2, {
|
|
@@ -28423,7 +28299,7 @@ function StatusCard(props) {
|
|
|
28423
28299
|
return s().termsUrl;
|
|
28424
28300
|
},
|
|
28425
28301
|
get fallback() {
|
|
28426
|
-
return _tmpl$
|
|
28302
|
+
return _tmpl$942();
|
|
28427
28303
|
},
|
|
28428
28304
|
get children() {
|
|
28429
28305
|
var _el$9 = _tmpl$569();
|
|
@@ -28442,7 +28318,7 @@ function StatusCard(props) {
|
|
|
28442
28318
|
return s().privacyUrl;
|
|
28443
28319
|
},
|
|
28444
28320
|
get fallback() {
|
|
28445
|
-
return _tmpl$
|
|
28321
|
+
return _tmpl$942();
|
|
28446
28322
|
},
|
|
28447
28323
|
get children() {
|
|
28448
28324
|
var _el$0 = _tmpl$569();
|
|
@@ -28536,10 +28412,10 @@ var _tmpl$2133 = /* @__PURE__ */ template(`<select class=app-admin-input>`);
|
|
|
28536
28412
|
var _tmpl$3107 = /* @__PURE__ */ template(`<option>`);
|
|
28537
28413
|
var _tmpl$486 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style="padding:0.625rem 0.875rem;margin-top:0.75rem;font-size:0.875rem">`);
|
|
28538
28414
|
var _tmpl$570 = /* @__PURE__ */ template(`<table class=app-admin-table><thead><tr><th>Admin</th><th>Role</th><th style=text-align:right></th></tr></thead><tbody>`);
|
|
28539
|
-
var _tmpl$
|
|
28540
|
-
var _tmpl$
|
|
28541
|
-
var _tmpl$
|
|
28542
|
-
var _tmpl$
|
|
28415
|
+
var _tmpl$661 = /* @__PURE__ */ template(`<div class=app-admin-heading style="font-size:1rem;margin:1.5rem 0 0.5rem">Pending invites`);
|
|
28416
|
+
var _tmpl$755 = /* @__PURE__ */ template(`<table class=app-admin-table><thead><tr><th>Email</th><th>Role when they join</th><th>Expires</th><th style=text-align:right></th></tr></thead><tbody>`);
|
|
28417
|
+
var _tmpl$847 = /* @__PURE__ */ template(`<div><form class=app-admin-card style=padding:1rem;margin-bottom:1.5rem><div class=app-admin-heading style=font-size:1rem;margin-bottom:0.75rem>Invite an admin</div><div style=display:flex;gap:0.75rem;flex-wrap:wrap;align-items:flex-end><label style="display:flex;flex-direction:column;gap:0.25rem;flex:1 1 16rem"><span class=app-admin-label>Email</span><input class=app-admin-input type=email required placeholder=name@example.com></label><label style=display:flex;flex-direction:column;gap:0.25rem><span class=app-admin-label>Role</span></label><button type=submit class="app-admin-btn app-admin-btn-primary"></button></div><div class=app-admin-text-muted style=font-size:0.8125rem;margin-top:0.5rem>: `);
|
|
28418
|
+
var _tmpl$943 = /* @__PURE__ */ template(`<span class=app-admin-text-muted> (you)`);
|
|
28543
28419
|
var _tmpl$039 = /* @__PURE__ */ template(`<tr><td></td><td></td><td style=text-align:right><button type=button class="app-admin-btn app-admin-btn-ghost">Remove`);
|
|
28544
28420
|
var _tmpl$1141 = /* @__PURE__ */ template(`<tr><td></td><td></td><td class=app-admin-text-muted></td><td style=text-align:right><button type=button class="app-admin-btn app-admin-btn-ghost">Withdraw`);
|
|
28545
28421
|
var ADMIN_ROLE_SUMMARY = {
|
|
@@ -28636,7 +28512,7 @@ function Admins(props) {
|
|
|
28636
28512
|
};
|
|
28637
28513
|
const isMe = (a) => adminMe()?.uid === a.id;
|
|
28638
28514
|
return (() => {
|
|
28639
|
-
var _el$4 = _tmpl$
|
|
28515
|
+
var _el$4 = _tmpl$847(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild, _el$0 = _el$9.nextSibling, _el$1 = _el$8.nextSibling; _el$1.firstChild; var _el$11 = _el$1.nextSibling, _el$12 = _el$7.nextSibling, _el$13 = _el$12.firstChild;
|
|
28640
28516
|
insert(_el$4, createComponent(PageTitle, {
|
|
28641
28517
|
subtitle: "Who can use this admin, and what each person can see and do.",
|
|
28642
28518
|
children: "Admins"
|
|
@@ -28694,7 +28570,7 @@ function Admins(props) {
|
|
|
28694
28570
|
return isMe(a);
|
|
28695
28571
|
},
|
|
28696
28572
|
get children() {
|
|
28697
|
-
return _tmpl$
|
|
28573
|
+
return _tmpl$943();
|
|
28698
28574
|
}
|
|
28699
28575
|
}), null);
|
|
28700
28576
|
insert(_el$34, createComponent(RoleSelect, {
|
|
@@ -28713,8 +28589,8 @@ function Admins(props) {
|
|
|
28713
28589
|
return (team()?.invites ?? []).length > 0;
|
|
28714
28590
|
},
|
|
28715
28591
|
get children() {
|
|
28716
|
-
return [_tmpl$
|
|
28717
|
-
var _el$23 = _tmpl$
|
|
28592
|
+
return [_tmpl$661(), (() => {
|
|
28593
|
+
var _el$23 = _tmpl$755(), _el$24 = _el$23.firstChild, _el$25 = _el$24.firstChild, _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling, _el$28 = _el$27.nextSibling; _el$28.nextSibling; var _el$30 = _el$24.nextSibling;
|
|
28718
28594
|
insert(_el$30, createComponent(For, {
|
|
28719
28595
|
get each() {
|
|
28720
28596
|
return team()?.invites ?? [];
|
|
@@ -28757,8 +28633,8 @@ var _tmpl$2134 = /* @__PURE__ */ template(`<button type=button style="display:fl
|
|
|
28757
28633
|
var _tmpl$3108 = /* @__PURE__ */ template(`<div class="app-admin-root app-admin-shell"data-scrollable style=position:sticky><div class=app-admin-shell-header><button type=button class=app-admin-shell-menu-trigger aria-label="Open admin menu"><svg width=22 height=22 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round aria-hidden=true><line x1=3 y1=6 x2=21 y2=6></line><line x1=3 y1=12 x2=21 y2=12></line><line x1=3 y1=18 x2=21 y2=18></line></svg></button><span class=app-admin-shell-header-title></span></div><div class=app-admin-backdrop aria-hidden=true></div><aside class=app-admin-sidebar><div style=padding:1.25rem><h2 style="font-size:0.7rem;font-weight:500;color:var(--app-admin-fg-muted);text-transform:uppercase;letter-spacing:0.08em;margin:0 0 1rem">Admin Panel</h2><nav style=display:flex;flex-direction:column;gap:0.25rem></nav></div></aside><div class=app-admin-content>`);
|
|
28758
28634
|
var _tmpl$488 = /* @__PURE__ */ template(`<h3 style="font-size:0.625rem;font-weight:600;color:var(--app-admin-fg-muted);text-transform:uppercase;letter-spacing:0.08em;margin:1rem 0 0.375rem;padding:0 0.75rem">`);
|
|
28759
28635
|
var _tmpl$571 = /* @__PURE__ */ template(`<div role=alert style="margin:1rem 0;padding:1.25rem 1.5rem;border:1px solid var(--app-admin-border);border-radius:var(--app-admin-radius-sm);background:var(--app-admin-surface);color:var(--app-admin-fg)"><div style=font-weight:600;margin-bottom:0.375rem>Not available for your role</div><div style=color:var(--app-admin-fg-muted);font-size:0.875rem>Ask an owner of this site if you need access to this section.`);
|
|
28760
|
-
var _tmpl$
|
|
28761
|
-
var _tmpl$
|
|
28636
|
+
var _tmpl$664 = /* @__PURE__ */ template(`<div role=alert style="margin:1rem 0;padding:1.25rem 1.5rem;border:1px solid var(--app-admin-border);border-radius:var(--app-admin-radius-sm);background:var(--app-admin-surface);color:var(--app-admin-fg)"><div style=font-weight:600;margin-bottom:0.375rem>This section failed to load</div><div style=font-size:0.875rem;color:var(--app-admin-fg-muted);margin-bottom:1rem;word-break:break-word></div><button type=button style="padding:0.5rem 0.875rem;border-radius:var(--app-admin-radius-sm);border:1px solid var(--app-admin-border);background:var(--app-admin-primary-soft);color:var(--app-admin-primary-soft-fg);font-size:0.875rem;font-weight:500;cursor:pointer">Try again`);
|
|
28637
|
+
var _tmpl$756 = /* @__PURE__ */ template(`<div class=app-admin-root style=display:flex;align-items:center;justify-content:center;position:sticky;background:var(--app-admin-bg)><div role=status aria-label="Loading admin"style="width:1.75rem;height:1.75rem;border-radius:9999px;border:2px solid var(--app-admin-border);border-top-color:var(--app-admin-primary);animation:app-admin-gate-spin 0.8s linear infinite"></div><style>@keyframes app-admin-gate-spin { to { transform: rotate(360deg); } }`);
|
|
28762
28638
|
var TAB_LABELS = {
|
|
28763
28639
|
dashboard: "Dashboard",
|
|
28764
28640
|
customers: "Customers",
|
|
@@ -28885,17 +28761,27 @@ function AdminDashboard(props) {
|
|
|
28885
28761
|
});
|
|
28886
28762
|
});
|
|
28887
28763
|
const [pendingCustomerUid, setPendingCustomerUid] = createSignal(null);
|
|
28764
|
+
const [pendingCustomerFilter, setPendingCustomerFilter] = createSignal(null);
|
|
28888
28765
|
const [pendingThreadId, setPendingThreadId] = createSignal(null);
|
|
28889
28766
|
const [pendingTemplateId, setPendingTemplateId] = createSignal(null);
|
|
28890
28767
|
const handleTabClick = (tab, opts) => {
|
|
28891
28768
|
if (!opts?.keepPending) {
|
|
28892
28769
|
setPendingCustomerUid(null);
|
|
28770
|
+
setPendingCustomerFilter(null);
|
|
28893
28771
|
setPendingThreadId(null);
|
|
28894
28772
|
}
|
|
28895
28773
|
setInternalTab(tab);
|
|
28896
28774
|
setDrawerOpen(false);
|
|
28897
28775
|
props.onTabChange?.(tab);
|
|
28898
28776
|
};
|
|
28777
|
+
const openCustomersFiltered = (filter) => {
|
|
28778
|
+
props.customers?.onSelectCustomer?.(null);
|
|
28779
|
+
setPendingCustomerUid(null);
|
|
28780
|
+
setPendingCustomerFilter(filter);
|
|
28781
|
+
handleTabClick("customers", {
|
|
28782
|
+
keepPending: true
|
|
28783
|
+
});
|
|
28784
|
+
};
|
|
28899
28785
|
const adminNav = {
|
|
28900
28786
|
selectTab: (tab) => handleTabClick(tab),
|
|
28901
28787
|
isTabEnabled,
|
|
@@ -29016,7 +28902,8 @@ function AdminDashboard(props) {
|
|
|
29016
28902
|
get fallback() {
|
|
29017
28903
|
return createComponent(Dashboard, {
|
|
29018
28904
|
onSelectTab: handleTabClick,
|
|
29019
|
-
isTabEnabled
|
|
28905
|
+
isTabEnabled,
|
|
28906
|
+
onOpenCustomers: openCustomersFiltered
|
|
29020
28907
|
});
|
|
29021
28908
|
},
|
|
29022
28909
|
get children() {
|
|
@@ -29027,7 +28914,8 @@ function AdminDashboard(props) {
|
|
|
29027
28914
|
get children() {
|
|
29028
28915
|
return createComponent(Dashboard, {
|
|
29029
28916
|
onSelectTab: handleTabClick,
|
|
29030
|
-
isTabEnabled
|
|
28917
|
+
isTabEnabled,
|
|
28918
|
+
onOpenCustomers: openCustomersFiltered
|
|
29031
28919
|
});
|
|
29032
28920
|
}
|
|
29033
28921
|
}), createComponent(Match, {
|
|
@@ -29047,6 +28935,9 @@ function AdminDashboard(props) {
|
|
|
29047
28935
|
},
|
|
29048
28936
|
get initialUid() {
|
|
29049
28937
|
return pendingCustomerUid();
|
|
28938
|
+
},
|
|
28939
|
+
get initialFilter() {
|
|
28940
|
+
return pendingCustomerFilter();
|
|
29050
28941
|
}
|
|
29051
28942
|
});
|
|
29052
28943
|
}
|
|
@@ -29247,7 +29138,7 @@ function AdminTabError(props) {
|
|
|
29247
29138
|
console.error("[AdminDashboard] tab failed to render:", props.error);
|
|
29248
29139
|
const message = () => props.error instanceof Error ? props.error.message : String(props.error);
|
|
29249
29140
|
return (() => {
|
|
29250
|
-
var _el$15 = _tmpl$
|
|
29141
|
+
var _el$15 = _tmpl$664(), _el$16 = _el$15.firstChild, _el$17 = _el$16.nextSibling, _el$18 = _el$17.nextSibling;
|
|
29251
29142
|
insert(_el$17, message);
|
|
29252
29143
|
_el$18.$$click = () => props.reset();
|
|
29253
29144
|
return _el$15;
|
|
@@ -29255,7 +29146,7 @@ function AdminTabError(props) {
|
|
|
29255
29146
|
}
|
|
29256
29147
|
function AdminGateSpinner(props) {
|
|
29257
29148
|
return (() => {
|
|
29258
|
-
var _el$19 = _tmpl$
|
|
29149
|
+
var _el$19 = _tmpl$756(); _el$19.firstChild;
|
|
29259
29150
|
effect((_p$) => {
|
|
29260
29151
|
var _v$8 = props.topOffset, _v$9 = `calc(100vh - ${props.topOffset})`;
|
|
29261
29152
|
_v$8 !== _p$.e && setStyleProperty(_el$19, "top", _p$.e = _v$8);
|
|
@@ -29342,10 +29233,10 @@ var _tmpl$2135 = /* @__PURE__ */ template(`<div style="display:flex;align-items:
|
|
|
29342
29233
|
var _tmpl$3109 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>Could not load this customer's dashboard.`);
|
|
29343
29234
|
var _tmpl$490 = /* @__PURE__ */ template(`<div><h3>Profile</h3><div class=app-admin-card-soft style=padding:0.75rem><p style=font-weight:600;font-size:0.9375rem;margin:0></p><p style="font-size:0.8125rem;color:var(--app-admin-fg-muted);margin:0.25rem 0 0">`);
|
|
29344
29235
|
var _tmpl$574 = /* @__PURE__ */ template(`<div><h3>Subscription`);
|
|
29345
|
-
var _tmpl$
|
|
29346
|
-
var _tmpl$
|
|
29347
|
-
var _tmpl$
|
|
29348
|
-
var _tmpl$
|
|
29236
|
+
var _tmpl$665 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:0.5rem>`);
|
|
29237
|
+
var _tmpl$757 = /* @__PURE__ */ template(`<div><h3>Prescription requests`);
|
|
29238
|
+
var _tmpl$848 = /* @__PURE__ */ template(`<div><h3>Pending surveys`);
|
|
29239
|
+
var _tmpl$944 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>No active subscription.`);
|
|
29349
29240
|
var _tmpl$040 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;color:var(--app-admin-fg-muted);margin:0.25rem 0 0">Next charge `);
|
|
29350
29241
|
var _tmpl$1142 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style=padding:0.75rem><div style=display:flex;align-items:center;justify-content:space-between><span style=font-size:0.875rem;font-weight:500>`);
|
|
29351
29242
|
var _tmpl$1031 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;color:var(--app-admin-fg-muted);margin:0.25rem 0 0">`);
|
|
@@ -29407,7 +29298,7 @@ function PatientDashboardPreview(props) {
|
|
|
29407
29298
|
return data.subscription();
|
|
29408
29299
|
},
|
|
29409
29300
|
get fallback() {
|
|
29410
|
-
return _tmpl$
|
|
29301
|
+
return _tmpl$944();
|
|
29411
29302
|
},
|
|
29412
29303
|
children: (sub) => (() => {
|
|
29413
29304
|
var _el$27 = _tmpl$1142(), _el$28 = _el$27.firstChild, _el$29 = _el$28.firstChild;
|
|
@@ -29465,7 +29356,7 @@ function PatientDashboardPreview(props) {
|
|
|
29465
29356
|
return _el$32;
|
|
29466
29357
|
})()
|
|
29467
29358
|
}), (() => {
|
|
29468
|
-
var _el$20 = _tmpl$
|
|
29359
|
+
var _el$20 = _tmpl$757(), _el$21 = _el$20.firstChild;
|
|
29469
29360
|
insert(_el$20, createComponent(Show, {
|
|
29470
29361
|
get when() {
|
|
29471
29362
|
return (data.rxList() ?? []).length > 0;
|
|
@@ -29474,7 +29365,7 @@ function PatientDashboardPreview(props) {
|
|
|
29474
29365
|
return _tmpl$1226();
|
|
29475
29366
|
},
|
|
29476
29367
|
get children() {
|
|
29477
|
-
var _el$22 = _tmpl$
|
|
29368
|
+
var _el$22 = _tmpl$665();
|
|
29478
29369
|
insert(_el$22, createComponent(For, {
|
|
29479
29370
|
get each() {
|
|
29480
29371
|
return data.rxList();
|
|
@@ -29517,7 +29408,7 @@ function PatientDashboardPreview(props) {
|
|
|
29517
29408
|
effect((_$p) => style(_el$21, panelSectionHeader, _$p));
|
|
29518
29409
|
return _el$20;
|
|
29519
29410
|
})(), (() => {
|
|
29520
|
-
var _el$23 = _tmpl$
|
|
29411
|
+
var _el$23 = _tmpl$848(), _el$24 = _el$23.firstChild;
|
|
29521
29412
|
insert(_el$23, createComponent(Show, {
|
|
29522
29413
|
get when() {
|
|
29523
29414
|
return (data.pendingSurveys() ?? []).length > 0;
|
|
@@ -29526,7 +29417,7 @@ function PatientDashboardPreview(props) {
|
|
|
29526
29417
|
return _tmpl$1621();
|
|
29527
29418
|
},
|
|
29528
29419
|
get children() {
|
|
29529
|
-
var _el$25 = _tmpl$
|
|
29420
|
+
var _el$25 = _tmpl$665();
|
|
29530
29421
|
insert(_el$25, createComponent(For, {
|
|
29531
29422
|
get each() {
|
|
29532
29423
|
return data.pendingSurveys();
|
|
@@ -29704,10 +29595,10 @@ var _tmpl$2137 = /* @__PURE__ */ template(`<div class=ship><p class=ship__eta></
|
|
|
29704
29595
|
var _tmpl$3118 = /* @__PURE__ */ template(`<span class=refill__cycle>Day <!> of `);
|
|
29705
29596
|
var _tmpl$496 = /* @__PURE__ */ template(`<div class=refill data-testid=refill-strip><div class=refill__head><span class=lab-label>Your plan</span></div><div class=refill__rail>`);
|
|
29706
29597
|
var _tmpl$575 = /* @__PURE__ */ template(`<span class=refill__cycle>Preparing your next fill`);
|
|
29707
|
-
var _tmpl$
|
|
29708
|
-
var _tmpl$
|
|
29709
|
-
var _tmpl$
|
|
29710
|
-
var _tmpl$
|
|
29598
|
+
var _tmpl$666 = /* @__PURE__ */ template(`<div><span class=refill__dot aria-hidden=true></span><span class="lab-label refill__label"></span><span class=refill__date></span><span class=refill__rel>`);
|
|
29599
|
+
var _tmpl$758 = /* @__PURE__ */ template(`<a class=refill__action>Complete check-in \u2192`);
|
|
29600
|
+
var _tmpl$849 = /* @__PURE__ */ template(`<p class=tracker__empty-text data-testid=tracker-savings-note><strong>Member pricing is active on your account.</strong> It applies automatically when you check out.`);
|
|
29601
|
+
var _tmpl$945 = /* @__PURE__ */ template(`<div class=tracker><span class=lab-label>Your order</span><div class=tracker__empty data-testid=tracker-empty><div class=tracker__empty-mark aria-hidden=true><span class=tracker__empty-bead></span></div><h2 class=tracker__empty-title>Your journey starts here</h2><p class=tracker__empty-text></p><a class="portal-btn portal-btn--primary">Start your intake`);
|
|
29711
29602
|
var _tmpl$041 = /* @__PURE__ */ template(`<p class=tracker__empty-text data-testid=tracker-offer-note><strong>You have <!> waiting.</strong> It applies automatically at checkout \u2014 finish your intake by <!> to keep it.`);
|
|
29712
29603
|
var _tmpl$1144 = /* @__PURE__ */ template(`<span class=thread__halo aria-hidden=true>`);
|
|
29713
29604
|
var _tmpl$1032 = /* @__PURE__ */ template(`<time class=thread__time>`);
|
|
@@ -29789,7 +29680,7 @@ function OrderTracker(props) {
|
|
|
29789
29680
|
return r().events;
|
|
29790
29681
|
},
|
|
29791
29682
|
children: (e) => (() => {
|
|
29792
|
-
var _el$20 = _tmpl$
|
|
29683
|
+
var _el$20 = _tmpl$666(), _el$21 = _el$20.firstChild, _el$22 = _el$21.nextSibling, _el$23 = _el$22.nextSibling, _el$24 = _el$23.nextSibling;
|
|
29793
29684
|
insert(_el$22, () => e.label);
|
|
29794
29685
|
insert(_el$23, () => formatEventDate(e.date));
|
|
29795
29686
|
insert(_el$24, (() => {
|
|
@@ -29802,7 +29693,7 @@ function OrderTracker(props) {
|
|
|
29802
29693
|
},
|
|
29803
29694
|
keyed: true,
|
|
29804
29695
|
children: (rid) => (() => {
|
|
29805
|
-
var _el$25 = _tmpl$
|
|
29696
|
+
var _el$25 = _tmpl$758();
|
|
29806
29697
|
effect(() => setAttribute(_el$25, "href", props.renewHref(rid)));
|
|
29807
29698
|
return _el$25;
|
|
29808
29699
|
})()
|
|
@@ -29816,14 +29707,14 @@ function OrderTracker(props) {
|
|
|
29816
29707
|
})()
|
|
29817
29708
|
});
|
|
29818
29709
|
const EmptyState2 = () => (() => {
|
|
29819
|
-
var _el$26 = _tmpl$
|
|
29710
|
+
var _el$26 = _tmpl$945(), _el$27 = _el$26.firstChild, _el$28 = _el$27.nextSibling, _el$29 = _el$28.firstChild, _el$30 = _el$29.nextSibling, _el$32 = _el$30.nextSibling, _el$33 = _el$32.nextSibling;
|
|
29820
29711
|
insert(_el$26, createComponent(RefillStrip, {}), _el$28);
|
|
29821
29712
|
insert(_el$28, createComponent(Show, {
|
|
29822
29713
|
get when() {
|
|
29823
29714
|
return props.savingsMember;
|
|
29824
29715
|
},
|
|
29825
29716
|
get children() {
|
|
29826
|
-
return _tmpl$
|
|
29717
|
+
return _tmpl$849();
|
|
29827
29718
|
}
|
|
29828
29719
|
}), _el$32);
|
|
29829
29720
|
insert(_el$28, createComponent(Show, {
|
|
@@ -30114,10 +30005,10 @@ var _tmpl$2139 = /* @__PURE__ */ template(`<div class=plan__empty><h2 class=plan
|
|
|
30114
30005
|
var _tmpl$3120 = /* @__PURE__ */ template(`<p class=membership__dose>`);
|
|
30115
30006
|
var _tmpl$499 = /* @__PURE__ */ template(`<div data-testid=membership-card><div class=membership__sheen aria-hidden=true></div><div class=membership__top><span class="lab-label membership__status"></span><span class=membership__brand></span></div><h2 class=membership__med></h2><div class=membership__bottom><span class=membership__price><span class=membership__per>/mo</span></span><span class=membership__renew>Renews `);
|
|
30116
30007
|
var _tmpl$576 = /* @__PURE__ */ template(`<dl class=ledger><div class=ledger__row><dt>Member since</dt><dd></dd></div><div class=ledger__row><dt>Next billing date</dt><dd></dd></div><div class=ledger__row><dt>Billing amount</dt><dd>/mo`);
|
|
30117
|
-
var _tmpl$
|
|
30118
|
-
var _tmpl$
|
|
30119
|
-
var _tmpl$
|
|
30120
|
-
var _tmpl$
|
|
30008
|
+
var _tmpl$667 = /* @__PURE__ */ template(`<p class=plan__note>Question about billing? <button type=button class=plan__note-link>Message support`);
|
|
30009
|
+
var _tmpl$759 = /* @__PURE__ */ template(`<p class=plan__error role=alert>`);
|
|
30010
|
+
var _tmpl$850 = /* @__PURE__ */ template(`<button type=button class=plan__link-btn>`);
|
|
30011
|
+
var _tmpl$946 = /* @__PURE__ */ template(`<button type=button class="plan__link-btn plan__link-btn--quiet">Cancel subscription`);
|
|
30121
30012
|
var _tmpl$042 = /* @__PURE__ */ template(`<div class=plan__actions><a class=plan__link-btn>Update payment method`);
|
|
30122
30013
|
var _tmpl$1146 = /* @__PURE__ */ template(`<div class=confirm data-testid=cancel-confirm><p class=confirm__text>Cancel your subscription? You\u2019ll keep access until the end of your current billing period on <!>.</p><div class=confirm__actions><button type=button class="portal-btn portal-btn--ghost">Keep my plan</button><button type=button class="portal-btn portal-btn--danger">`);
|
|
30123
30014
|
function formatCents(cents) {
|
|
@@ -30206,7 +30097,7 @@ function PlanBilling(props) {
|
|
|
30206
30097
|
return props.messagingEnabled;
|
|
30207
30098
|
},
|
|
30208
30099
|
get children() {
|
|
30209
|
-
var _el$28 = _tmpl$
|
|
30100
|
+
var _el$28 = _tmpl$667(), _el$29 = _el$28.firstChild, _el$31 = _el$29.nextSibling;
|
|
30210
30101
|
_el$31.$$click = () => props.onOpenMessages({
|
|
30211
30102
|
channel: "support",
|
|
30212
30103
|
category: "billing"
|
|
@@ -30218,7 +30109,7 @@ function PlanBilling(props) {
|
|
|
30218
30109
|
return error();
|
|
30219
30110
|
},
|
|
30220
30111
|
get children() {
|
|
30221
|
-
var _el$32 = _tmpl$
|
|
30112
|
+
var _el$32 = _tmpl$759();
|
|
30222
30113
|
insert(_el$32, error);
|
|
30223
30114
|
return _el$32;
|
|
30224
30115
|
}
|
|
@@ -30229,7 +30120,7 @@ function PlanBilling(props) {
|
|
|
30229
30120
|
return sub().status === "active";
|
|
30230
30121
|
},
|
|
30231
30122
|
get children() {
|
|
30232
|
-
var _el$34 = _tmpl$
|
|
30123
|
+
var _el$34 = _tmpl$850();
|
|
30233
30124
|
_el$34.$$click = () => run("pause", () => subscriptionsApi.pause(sub().id));
|
|
30234
30125
|
insert(_el$34, () => action() === "pause" ? "Pausing\u2026" : "Pause subscription");
|
|
30235
30126
|
effect(() => _el$34.disabled = !!action());
|
|
@@ -30241,7 +30132,7 @@ function PlanBilling(props) {
|
|
|
30241
30132
|
return sub().status === "paused";
|
|
30242
30133
|
},
|
|
30243
30134
|
get children() {
|
|
30244
|
-
var _el$35 = _tmpl$
|
|
30135
|
+
var _el$35 = _tmpl$850();
|
|
30245
30136
|
_el$35.$$click = () => run("resume", () => subscriptionsApi.resume(sub().id));
|
|
30246
30137
|
insert(_el$35, () => action() === "resume" ? "Resuming\u2026" : "Resume subscription");
|
|
30247
30138
|
effect(() => _el$35.disabled = !!action());
|
|
@@ -30253,7 +30144,7 @@ function PlanBilling(props) {
|
|
|
30253
30144
|
return memo(() => sub().status !== "cancelled")() && sub().status !== "expired";
|
|
30254
30145
|
},
|
|
30255
30146
|
get children() {
|
|
30256
|
-
var _el$37 = _tmpl$
|
|
30147
|
+
var _el$37 = _tmpl$946();
|
|
30257
30148
|
_el$37.$$click = () => setConfirmCancel(true);
|
|
30258
30149
|
effect(() => _el$37.disabled = !!action());
|
|
30259
30150
|
return _el$37;
|
|
@@ -30293,10 +30184,10 @@ var _tmpl$2140 = /* @__PURE__ */ template(`<p class=account__sms-error role=aler
|
|
|
30293
30184
|
var _tmpl$3121 = /* @__PURE__ */ template(`<div class=account__sms-on><span>Texts are on</span><button type=button class=plan__link-btn>Turn off texts`);
|
|
30294
30185
|
var _tmpl$4100 = /* @__PURE__ */ template(`<ul class=account__sms-events aria-label="Which texts you get">`);
|
|
30295
30186
|
var _tmpl$577 = /* @__PURE__ */ template(`<section class=account__sms data-testid=sms-section aria-labelledby=sms-heading><span class=lab-label id=sms-heading>Text messages</span><dl class=account__fields><div class=account__field><dt class=lab-label>Mobile number`);
|
|
30296
|
-
var _tmpl$
|
|
30297
|
-
var _tmpl$
|
|
30298
|
-
var _tmpl$
|
|
30299
|
-
var _tmpl$
|
|
30187
|
+
var _tmpl$668 = /* @__PURE__ */ template(`<dd class=account__sms-number><span></span><button type=button class=account__note-link>`);
|
|
30188
|
+
var _tmpl$760 = /* @__PURE__ */ template(`<p class=account__sms-notice role=status>`);
|
|
30189
|
+
var _tmpl$851 = /* @__PURE__ */ template(`<p class=account__sms-stop data-testid=sms-stop>You replied STOP. Text START to <!> to receive texts again.`);
|
|
30190
|
+
var _tmpl$947 = /* @__PURE__ */ template(`<p class=account__sms-links>`);
|
|
30300
30191
|
var _tmpl$043 = /* @__PURE__ */ template(`<p class=account__sms-hint>Add a mobile number to turn on texts.`);
|
|
30301
30192
|
var _tmpl$1147 = /* @__PURE__ */ template(`<div class=account__sms-consent><p class=account__sms-wording data-testid=sms-consent-text></p><button type=button class="portal-btn portal-btn--primary">Turn on texts`);
|
|
30302
30193
|
var _tmpl$1033 = /* @__PURE__ */ template(`<a target=_blank rel="noopener noreferrer">Terms`);
|
|
@@ -30325,7 +30216,7 @@ function SmsSection() {
|
|
|
30325
30216
|
},
|
|
30326
30217
|
get fallback() {
|
|
30327
30218
|
return (() => {
|
|
30328
|
-
var _el$13 = _tmpl$
|
|
30219
|
+
var _el$13 = _tmpl$668(), _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling;
|
|
30329
30220
|
insert(_el$14, (() => {
|
|
30330
30221
|
var _c$ = memo(() => !!sms.phone());
|
|
30331
30222
|
return () => _c$() ? formatUsPhone(sms.phone()) : "No number on file";
|
|
@@ -30369,7 +30260,7 @@ function SmsSection() {
|
|
|
30369
30260
|
return sms.notice();
|
|
30370
30261
|
},
|
|
30371
30262
|
children: (n) => (() => {
|
|
30372
|
-
var _el$16 = _tmpl$
|
|
30263
|
+
var _el$16 = _tmpl$760();
|
|
30373
30264
|
insert(_el$16, () => n().message);
|
|
30374
30265
|
return _el$16;
|
|
30375
30266
|
})()
|
|
@@ -30380,7 +30271,7 @@ function SmsSection() {
|
|
|
30380
30271
|
},
|
|
30381
30272
|
get fallback() {
|
|
30382
30273
|
return (() => {
|
|
30383
|
-
var _el$17 = _tmpl$
|
|
30274
|
+
var _el$17 = _tmpl$851(), _el$18 = _el$17.firstChild, _el$21 = _el$18.nextSibling; _el$21.nextSibling;
|
|
30384
30275
|
insert(_el$17, (() => {
|
|
30385
30276
|
var _c$2 = memo(() => !!sms.fromNumber());
|
|
30386
30277
|
return () => _c$2() ? formatUsPhone(sms.fromNumber()) : "the number you received texts from";
|
|
@@ -30406,7 +30297,7 @@ function SmsSection() {
|
|
|
30406
30297
|
return offer().termsUrl || offer().privacyUrl;
|
|
30407
30298
|
},
|
|
30408
30299
|
get children() {
|
|
30409
|
-
var _el$24 = _tmpl$
|
|
30300
|
+
var _el$24 = _tmpl$947();
|
|
30410
30301
|
insert(_el$24, createComponent(Show, {
|
|
30411
30302
|
get when() {
|
|
30412
30303
|
return offer().termsUrl;
|
|
@@ -30494,7 +30385,7 @@ var _tmpl$2141 = /* @__PURE__ */ template(`<p class=account__note>Need to update
|
|
|
30494
30385
|
var _tmpl$3122 = /* @__PURE__ */ template(`<button type=button class="account__support-link account__support-btn">Messages`);
|
|
30495
30386
|
var _tmpl$4101 = /* @__PURE__ */ template(`<div class=account data-testid=account-panel><span class=lab-label>Account</span><h1 class=account__title>Your details</h1><dl class=account__fields></dl><div class=account__support></div><button type=button class="portal-btn portal-btn--ghost account__signout">Sign out`);
|
|
30496
30387
|
var _tmpl$578 = /* @__PURE__ */ template(`<div class=account__field><dt class=lab-label></dt><dd>`);
|
|
30497
|
-
var _tmpl$
|
|
30388
|
+
var _tmpl$669 = /* @__PURE__ */ template(`<a class=account__support-link>`);
|
|
30498
30389
|
function pick(member, ...keys) {
|
|
30499
30390
|
if (!member) return "";
|
|
30500
30391
|
for (const k of keys) {
|
|
@@ -30584,7 +30475,7 @@ function AccountPanel(props) {
|
|
|
30584
30475
|
return props.legalLinks ?? [];
|
|
30585
30476
|
},
|
|
30586
30477
|
children: (link) => (() => {
|
|
30587
|
-
var _el$14 = _tmpl$
|
|
30478
|
+
var _el$14 = _tmpl$669();
|
|
30588
30479
|
insert(_el$14, () => link.label);
|
|
30589
30480
|
effect(() => setAttribute(_el$14, "href", link.href));
|
|
30590
30481
|
return _el$14;
|
|
@@ -30600,7 +30491,7 @@ var _tmpl$2142 = /* @__PURE__ */ template(`<ul class=leaflet__disclaimers id=lea
|
|
|
30600
30491
|
var _tmpl$3123 = /* @__PURE__ */ template(`<div class=leaflet data-testid=medication-guide><header class=leaflet__header><span class=lab-label>How to take it</span><h1 class=leaflet__title></h1><p class=leaflet__summary></p></header><section class=leaflet__boxed aria-label="Boxed warning"><div class=leaflet__boxed-head><i class="ph-fill ph-warning"aria-hidden=true></i><span>Important warning</span></div><p></p></section><section class="leaflet__section leaflet__section--caution"><h2 class=leaflet__h2>Do not use this medicine if\u2026</h2><ul class="leaflet__list leaflet__list--caution"></ul></section><section class=leaflet__section><h2 class=leaflet__h2>Your dose over time</h2><p class=leaflet__note>A typical step-up. Your prescriber sets your exact doses and timing.</p><ol class=titration></ol></section><section class=leaflet__section><h2 class=leaflet__h2>Giving your injection</h2><ol class=steps></ol></section><div class=leaflet__grid><section class=leaflet__section><h2 class=leaflet__h2>Storing your medicine</h2><ul class=leaflet__list></ul></section><section class=leaflet__section><h2 class=leaflet__h2>If you miss a dose</h2><p class=leaflet__body></p></section></div><div class=leaflet__grid><section class=leaflet__section><h2 class=leaflet__h2>Common side effects</h2><ul class="leaflet__list leaflet__list--check"></ul></section><section class="leaflet__section leaflet__section--alert"><h2 class=leaflet__h2>Call right away if you notice\u2026</h2><ul class="leaflet__list leaflet__list--alert"></ul></section></div><section class=leaflet__section><h2 class=leaflet__h2>When to contact your care team</h2><ul class=leaflet__list></ul></section><section class=leaflet__section><h2 class=leaflet__h2>Tips for feeling your best</h2><ul class="leaflet__list leaflet__list--check"></ul></section><section class=leaflet__footnote><button type=button class=leaflet__disclose aria-controls=leaflet-disclaimers> the important details<i aria-hidden=true>`);
|
|
30601
30492
|
var _tmpl$4102 = /* @__PURE__ */ template(`<li>`);
|
|
30602
30493
|
var _tmpl$579 = /* @__PURE__ */ template(`<li><span class=titration__bead aria-hidden=true></span><div class=titration__body><div class=titration__row><span class=titration__dose></span><span class="lab-label titration__phase"></span></div><span class=titration__time></span><p class=titration__note>`);
|
|
30603
|
-
var _tmpl$
|
|
30494
|
+
var _tmpl$670 = /* @__PURE__ */ template(`<li class=steps__item><span class=steps__num></span><div class=steps__body><h3 class=steps__title></h3><p class=steps__detail>`);
|
|
30604
30495
|
function firstNumber(s) {
|
|
30605
30496
|
const m = (s || "").match(/\d+(\.\d+)?/);
|
|
30606
30497
|
return m ? m[0] : null;
|
|
@@ -30654,7 +30545,7 @@ function MedicationGuide(props) {
|
|
|
30654
30545
|
return props.guide.injectionSteps;
|
|
30655
30546
|
},
|
|
30656
30547
|
children: (step) => (() => {
|
|
30657
|
-
var _el$54 = _tmpl$
|
|
30548
|
+
var _el$54 = _tmpl$670(), _el$55 = _el$54.firstChild, _el$56 = _el$55.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$57.nextSibling;
|
|
30658
30549
|
insert(_el$55, () => step.n);
|
|
30659
30550
|
insert(_el$57, () => step.title);
|
|
30660
30551
|
insert(_el$58, () => step.detail);
|
|
@@ -30761,10 +30652,10 @@ var _tmpl$2143 = /* @__PURE__ */ template(`<span class=channel-chip__category>`)
|
|
|
30761
30652
|
var _tmpl$3124 = /* @__PURE__ */ template(`<div class=msg-list__header><div class=msg-list__header-title><button type=button class=msg-list__back aria-label="Choose a different team"data-testid=messages-choose-different><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><h2 class=msg-list__title></h2></div><button type=button class=msg-list__new data-testid=messages-new-support><i class="ph-thin ph-plus"aria-hidden=true></i>New message`);
|
|
30762
30653
|
var _tmpl$4103 = /* @__PURE__ */ template(`<div class=msg-list__state><div class=request-status__spinner>`);
|
|
30763
30654
|
var _tmpl$580 = /* @__PURE__ */ template(`<div class="msg-list__state msg-list__state--empty"data-testid=messages-empty><i class="ph-thin ph-chat-circle msg-list__empty-icon"aria-hidden=true></i><p class=msg-list__empty-title>No conversations yet.</p><p class=msg-list__empty-hint>`);
|
|
30764
|
-
var _tmpl$
|
|
30765
|
-
var _tmpl$
|
|
30766
|
-
var _tmpl$
|
|
30767
|
-
var _tmpl$
|
|
30655
|
+
var _tmpl$671 = /* @__PURE__ */ template(`<div class=msg-list__scroll data-scrollable>`);
|
|
30656
|
+
var _tmpl$761 = /* @__PURE__ */ template(`<span class=msg-list__pip>`);
|
|
30657
|
+
var _tmpl$852 = /* @__PURE__ */ template(`<button type=button><div class=msg-list__row><span class=msg-list__name-group><span class=msg-list__name></span></span><span class=msg-list__time></span></div><div class=msg-list__row><span class=msg-list__preview>`);
|
|
30658
|
+
var _tmpl$948 = /* @__PURE__ */ template(`<button type=button class=msg-attachment__image-link><img class=msg-attachment__image loading=lazy>`, true, false, false);
|
|
30768
30659
|
var _tmpl$044 = /* @__PURE__ */ template(`<button type=button class=msg-attachment__file><span class=msg-attachment__file-icon aria-hidden=true><i class="ph-thin ph-paperclip"></i></span><span class=msg-attachment__file-info><span class=msg-attachment__file-name></span><span class=msg-attachment__file-size>`);
|
|
30769
30660
|
var _tmpl$1149 = /* @__PURE__ */ template(`<span class=msg-attachment__fallback>`);
|
|
30770
30661
|
var _tmpl$1034 = /* @__PURE__ */ template(`<p class=msg-thread__sender>`);
|
|
@@ -31032,7 +30923,7 @@ function MessagesPanel(props) {
|
|
|
31032
30923
|
_el$7.$$click = openCompose;
|
|
31033
30924
|
return _el$3;
|
|
31034
30925
|
})(), (() => {
|
|
31035
|
-
var _el$8 = _tmpl$
|
|
30926
|
+
var _el$8 = _tmpl$671();
|
|
31036
30927
|
insert(_el$8, createComponent(Show, {
|
|
31037
30928
|
get when() {
|
|
31038
30929
|
return thread().loadingConversations();
|
|
@@ -31062,7 +30953,7 @@ function MessagesPanel(props) {
|
|
|
31062
30953
|
return channelConversations();
|
|
31063
30954
|
},
|
|
31064
30955
|
children: (convo) => (() => {
|
|
31065
|
-
var _el$12 = _tmpl$
|
|
30956
|
+
var _el$12 = _tmpl$852(), _el$13 = _el$12.firstChild, _el$14 = _el$13.firstChild, _el$15 = _el$14.firstChild, _el$16 = _el$14.nextSibling, _el$17 = _el$13.nextSibling, _el$18 = _el$17.firstChild;
|
|
31066
30957
|
_el$12.$$click = () => thread().selectConversation(convo.id);
|
|
31067
30958
|
insert(_el$15, () => convo.participantName ?? "Provider");
|
|
31068
30959
|
insert(_el$14, createComponent(ChannelChip, {
|
|
@@ -31080,7 +30971,7 @@ function MessagesPanel(props) {
|
|
|
31080
30971
|
return (convo.unreadCount ?? 0) > 0;
|
|
31081
30972
|
},
|
|
31082
30973
|
get children() {
|
|
31083
|
-
var _el$19 = _tmpl$
|
|
30974
|
+
var _el$19 = _tmpl$761();
|
|
31084
30975
|
insert(_el$19, () => convo.unreadCount);
|
|
31085
30976
|
return _el$19;
|
|
31086
30977
|
}
|
|
@@ -31143,7 +31034,7 @@ function MessagesPanel(props) {
|
|
|
31143
31034
|
})();
|
|
31144
31035
|
},
|
|
31145
31036
|
get children() {
|
|
31146
|
-
var _el$20 = _tmpl$
|
|
31037
|
+
var _el$20 = _tmpl$948(), _el$21 = _el$20.firstChild;
|
|
31147
31038
|
_el$20.$$click = openDocument;
|
|
31148
31039
|
_el$21.addEventListener("error", () => {
|
|
31149
31040
|
if (retried) {
|
|
@@ -31663,10 +31554,10 @@ var _tmpl$2145 = /* @__PURE__ */ template(`<div class=portal-state data-testid=h
|
|
|
31663
31554
|
var _tmpl$3126 = /* @__PURE__ */ template(`<div class=portal-state data-testid=history-empty><p>No submitted questionnaires yet.</p><p class=history-hint>Your intake and refill check-in answers will appear here once you've submitted them.`);
|
|
31664
31555
|
var _tmpl$4104 = /* @__PURE__ */ template(`<li><button type=button class=history-row><span class=history-row__mode></span><span class=history-row__date></span><i class="ph-thin ph-caret-right portal-icon"aria-hidden=true>`);
|
|
31665
31556
|
var _tmpl$581 = /* @__PURE__ */ template(`<div data-testid=history-detail><button type=button class="portal-btn portal-btn--ghost history-back"><i class="ph-thin ph-caret-left portal-icon"aria-hidden=true></i> All questionnaires`);
|
|
31666
|
-
var _tmpl$
|
|
31667
|
-
var _tmpl$
|
|
31668
|
-
var _tmpl$
|
|
31669
|
-
var _tmpl$
|
|
31557
|
+
var _tmpl$673 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your answers\u2026`);
|
|
31558
|
+
var _tmpl$762 = /* @__PURE__ */ template(`<div class=portal-state data-testid=history-detail-error><p>We couldn't load this questionnaire. Please try again in a moment.`);
|
|
31559
|
+
var _tmpl$853 = /* @__PURE__ */ template(`<article class=history-transcript><header class=history-transcript__head><h2></h2><p class=history-transcript__meta>Submitted <!>. Your answers are shown exactly as they were at the time \u2014 they aren't updated afterwards.`);
|
|
31560
|
+
var _tmpl$949 = /* @__PURE__ */ template(`<section class=history-section><h3 class=lab-label>`);
|
|
31670
31561
|
var _tmpl$045 = /* @__PURE__ */ template(`<div class=history-qa><p class=history-qa__q></p><p class=history-qa__a>`);
|
|
31671
31562
|
var _tmpl$1151 = /* @__PURE__ */ template(`<div class=survey-history data-testid=survey-history>`);
|
|
31672
31563
|
var _tmpl$1035 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your submitted surveys\u2026`);
|
|
@@ -31734,7 +31625,7 @@ function SurveyHistory() {
|
|
|
31734
31625
|
return !detail.loading;
|
|
31735
31626
|
},
|
|
31736
31627
|
get fallback() {
|
|
31737
|
-
return _tmpl$
|
|
31628
|
+
return _tmpl$673();
|
|
31738
31629
|
},
|
|
31739
31630
|
get children() {
|
|
31740
31631
|
return createComponent(Show, {
|
|
@@ -31742,10 +31633,10 @@ function SurveyHistory() {
|
|
|
31742
31633
|
return memo(() => !!!detail.error)() && detail();
|
|
31743
31634
|
},
|
|
31744
31635
|
get fallback() {
|
|
31745
|
-
return _tmpl$
|
|
31636
|
+
return _tmpl$762();
|
|
31746
31637
|
},
|
|
31747
31638
|
children: (t) => (() => {
|
|
31748
|
-
var _el$10 = _tmpl$
|
|
31639
|
+
var _el$10 = _tmpl$853(), _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling, _el$14 = _el$13.firstChild, _el$16 = _el$14.nextSibling; _el$16.nextSibling;
|
|
31749
31640
|
insert(_el$12, () => MODE_LABELS[t().mode] ?? "Questionnaire");
|
|
31750
31641
|
insert(_el$13, () => formatDate3(t().completedAt ?? t().createdAt) ?? "\u2014", _el$16);
|
|
31751
31642
|
insert(_el$10, createComponent(For, {
|
|
@@ -31753,7 +31644,7 @@ function SurveyHistory() {
|
|
|
31753
31644
|
return t().sections;
|
|
31754
31645
|
},
|
|
31755
31646
|
children: (section) => (() => {
|
|
31756
|
-
var _el$17 = _tmpl$
|
|
31647
|
+
var _el$17 = _tmpl$949(), _el$18 = _el$17.firstChild;
|
|
31757
31648
|
insert(_el$18, () => section.title);
|
|
31758
31649
|
insert(_el$17, createComponent(For, {
|
|
31759
31650
|
get each() {
|
|
@@ -31810,10 +31701,10 @@ var _tmpl$2146 = /* @__PURE__ */ template(`<span>`);
|
|
|
31810
31701
|
var _tmpl$3127 = /* @__PURE__ */ template(`<button type=button><i aria-hidden=true></i><span class=portal-item__label>`);
|
|
31811
31702
|
var _tmpl$4105 = /* @__PURE__ */ template(`<div class=rx-others data-testid=rx-others><span class=lab-label>Other orders`);
|
|
31812
31703
|
var _tmpl$584 = /* @__PURE__ */ template(`<div class=rx-stack>`);
|
|
31813
|
-
var _tmpl$
|
|
31814
|
-
var _tmpl$
|
|
31815
|
-
var _tmpl$
|
|
31816
|
-
var _tmpl$
|
|
31704
|
+
var _tmpl$674 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your portal\u2026`);
|
|
31705
|
+
var _tmpl$763 = /* @__PURE__ */ template(`<div class="request-status__error portal-state"><p class=request-status__error-text></p><button type=button class="portal-btn portal-btn--ghost">Try again`);
|
|
31706
|
+
var _tmpl$854 = /* @__PURE__ */ template(`<p class=portal-rail__hi>Hi, `);
|
|
31707
|
+
var _tmpl$950 = /* @__PURE__ */ template(`<a class=portal-rail__back data-testid=rail-back>\u2190 Back to shop`);
|
|
31817
31708
|
var _tmpl$046 = /* @__PURE__ */ template(`<a class=portal-topbar-back data-testid=mobile-back><span aria-hidden=true>\u2190</span> Back to shop`);
|
|
31818
31709
|
var _tmpl$1152 = /* @__PURE__ */ template(`<main class=portal data-testid=member-portal><aside class=portal-rail><div class=portal-rail__brand><a class=portal-rail__logo></a><span class=portal-rail__dot aria-hidden=true></span></div><nav class=portal-rail__nav aria-label="Portal sections"></nav><div class=portal-rail__foot><button type=button class=portal-rail__signout>\u2014 Sign out</button></div></aside><section class=portal-content><div></div></section><nav class=portal-tabs aria-label="Portal sections">`);
|
|
31819
31710
|
var _tmpl$1036 = /* @__PURE__ */ template(`<span class=portal-rail__wordmark>`);
|
|
@@ -32084,7 +31975,7 @@ function MemberPortal(props) {
|
|
|
32084
31975
|
return !data.loading();
|
|
32085
31976
|
},
|
|
32086
31977
|
get fallback() {
|
|
32087
|
-
return _tmpl$
|
|
31978
|
+
return _tmpl$674();
|
|
32088
31979
|
},
|
|
32089
31980
|
get children() {
|
|
32090
31981
|
return createComponent(Show, {
|
|
@@ -32093,7 +31984,7 @@ function MemberPortal(props) {
|
|
|
32093
31984
|
},
|
|
32094
31985
|
get fallback() {
|
|
32095
31986
|
return (() => {
|
|
32096
|
-
var _el$0 = _tmpl$
|
|
31987
|
+
var _el$0 = _tmpl$763(), _el$1 = _el$0.firstChild, _el$10 = _el$1.nextSibling;
|
|
32097
31988
|
insert(_el$1, () => data.error());
|
|
32098
31989
|
_el$10.$$click = () => data.refetch();
|
|
32099
31990
|
return _el$0;
|
|
@@ -32221,7 +32112,7 @@ function MemberPortal(props) {
|
|
|
32221
32112
|
return data.firstName() !== "Member";
|
|
32222
32113
|
},
|
|
32223
32114
|
get children() {
|
|
32224
|
-
var _el$15 = _tmpl$
|
|
32115
|
+
var _el$15 = _tmpl$854(); _el$15.firstChild;
|
|
32225
32116
|
insert(_el$15, () => data.firstName(), null);
|
|
32226
32117
|
return _el$15;
|
|
32227
32118
|
}
|
|
@@ -32234,7 +32125,7 @@ function MemberPortal(props) {
|
|
|
32234
32125
|
return showBackLink();
|
|
32235
32126
|
},
|
|
32236
32127
|
get children() {
|
|
32237
|
-
var _el$19 = _tmpl$
|
|
32128
|
+
var _el$19 = _tmpl$950();
|
|
32238
32129
|
effect(() => setAttribute(_el$19, "href", catalogHref()));
|
|
32239
32130
|
return _el$19;
|
|
32240
32131
|
}
|
|
@@ -32919,10 +32810,10 @@ var _tmpl$2153 = /* @__PURE__ */ template(`<input type=text required autocomplet
|
|
|
32919
32810
|
var _tmpl$3134 = /* @__PURE__ */ template(`<input type=email required autocomplete=email>`);
|
|
32920
32811
|
var _tmpl$4116 = /* @__PURE__ */ template(`<input type=text required minlength=4>`);
|
|
32921
32812
|
var _tmpl$596 = /* @__PURE__ */ template(`<div style="padding:0.625rem 0.875rem;background:var(--app-affiliate-danger-bg);color:var(--app-affiliate-danger-fg);border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem">`);
|
|
32922
|
-
var _tmpl$
|
|
32923
|
-
var _tmpl$
|
|
32924
|
-
var _tmpl$
|
|
32925
|
-
var _tmpl$
|
|
32813
|
+
var _tmpl$675 = /* @__PURE__ */ template(`<button type=button>Already have an account? Log in`);
|
|
32814
|
+
var _tmpl$764 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><div style="padding:0.625rem 0.875rem;background:var(--app-affiliate-surface-light);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius-sm);font-size:0.8125rem;line-height:1.5;color:var(--app-affiliate-fg-muted)">A customer's purchase earns you commission only if they reached the site through your referral link \u2014 the site address with <code>?ref=</code> appended:<div style=font-weight:600;word-break:break-all;margin-top:0.25rem;color:var(--app-affiliate-fg)>/?ref=</div>Make sure any marketing materials use that full link for tracking, not just the website address itself.</div><button type=submit style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600">`);
|
|
32815
|
+
var _tmpl$855 = /* @__PURE__ */ template(`<div class=app-affiliate-root style="background:var(--app-affiliate-bg);color:var(--app-affiliate-fg);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem"><div style="width:100%;max-width:28rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);padding:2rem;display:flex;flex-direction:column;gap:1.25rem"><div><h1 style="font-family:var(--app-affiliate-font-display);margin:0 0 0.5rem;font-size:1.5rem">Become an affiliate</h1><p style=margin:0;color:var(--app-affiliate-fg-muted);font-size:0.875rem>New applications are reviewed by an admin before activation.`);
|
|
32816
|
+
var _tmpl$951 = /* @__PURE__ */ template(`<div style=padding:1rem;background:var(--app-affiliate-success-bg);color:var(--app-affiliate-success-fg);border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem>Thanks \u2014 we received your application. You'll be able to log in once it's approved.`);
|
|
32926
32817
|
var _tmpl$047 = /* @__PURE__ */ template(`<span style=font-size:0.75rem;color:var(--app-affiliate-fg-subtle)>`);
|
|
32927
32818
|
var _tmpl$1154 = /* @__PURE__ */ template(`<label style=display:flex;flex-direction:column;gap:0.35rem><span style=font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--app-affiliate-fg-muted)>`);
|
|
32928
32819
|
function AffiliateRegister(props) {
|
|
@@ -32955,16 +32846,16 @@ function AffiliateRegister(props) {
|
|
|
32955
32846
|
}
|
|
32956
32847
|
}
|
|
32957
32848
|
return (() => {
|
|
32958
|
-
var _el$ = _tmpl$
|
|
32849
|
+
var _el$ = _tmpl$855(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild; _el$4.nextSibling;
|
|
32959
32850
|
insert(_el$2, createComponent(Show, {
|
|
32960
32851
|
get when() {
|
|
32961
32852
|
return !submitted();
|
|
32962
32853
|
},
|
|
32963
32854
|
get fallback() {
|
|
32964
|
-
return _tmpl$
|
|
32855
|
+
return _tmpl$951();
|
|
32965
32856
|
},
|
|
32966
32857
|
get children() {
|
|
32967
|
-
var _el$6 = _tmpl$
|
|
32858
|
+
var _el$6 = _tmpl$764(), _el$1 = _el$6.firstChild, _el$10 = _el$1.firstChild, _el$12 = _el$10.nextSibling; _el$12.firstChild; var _el$14 = _el$12.nextSibling, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild, _el$18 = _el$1.nextSibling;
|
|
32968
32859
|
_el$6.addEventListener("submit", handleSubmit);
|
|
32969
32860
|
insert(_el$6, createComponent(Row3, {
|
|
32970
32861
|
label: "First name",
|
|
@@ -33041,7 +32932,7 @@ function AffiliateRegister(props) {
|
|
|
33041
32932
|
return props.onNavigateLogin;
|
|
33042
32933
|
},
|
|
33043
32934
|
get children() {
|
|
33044
|
-
var _el$19 = _tmpl$
|
|
32935
|
+
var _el$19 = _tmpl$675();
|
|
33045
32936
|
_el$19.$$click = () => props.onNavigateLogin?.();
|
|
33046
32937
|
effect((_$p) => style(_el$19, linkStyle(), _$p));
|
|
33047
32938
|
return _el$19;
|
|
@@ -33221,7 +33112,7 @@ var _tmpl$2155 = /* @__PURE__ */ template(`<form style=display:flex;flex-directi
|
|
|
33221
33112
|
var _tmpl$3136 = /* @__PURE__ */ template(`<div class=app-affiliate-root style="background:var(--app-affiliate-bg);color:var(--app-affiliate-fg);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem"><div style="width:100%;max-width:24rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);padding:2rem;display:flex;flex-direction:column;gap:1.25rem"><h1 style=font-family:var(--app-affiliate-font-display);margin:0;font-size:1.5rem>Reset your password`);
|
|
33222
33113
|
var _tmpl$4118 = /* @__PURE__ */ template(`<div style="padding:0.625rem 0.875rem;background:var(--app-affiliate-surface-light);border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem">`);
|
|
33223
33114
|
var _tmpl$599 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.8125rem;opacity:0.8>The link is good for one hour. If nothing arrives, check your spam folder \u2014 and make sure this is the address you signed up with.`);
|
|
33224
|
-
var _tmpl$
|
|
33115
|
+
var _tmpl$676 = /* @__PURE__ */ template(`<button type=button style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600;cursor:pointer">Back to sign in`);
|
|
33225
33116
|
function ForgotPasswordPage(props) {
|
|
33226
33117
|
const [email, setEmail] = createSignal("");
|
|
33227
33118
|
const [submitting, setSubmitting] = createSignal(false);
|
|
@@ -33259,7 +33150,7 @@ function ForgotPasswordPage(props) {
|
|
|
33259
33150
|
return props.onDone;
|
|
33260
33151
|
},
|
|
33261
33152
|
get children() {
|
|
33262
|
-
var _el$10 = _tmpl$
|
|
33153
|
+
var _el$10 = _tmpl$676();
|
|
33263
33154
|
_el$10.$$click = () => props.onDone?.();
|
|
33264
33155
|
return _el$10;
|
|
33265
33156
|
}
|
|
@@ -33932,5 +33823,5 @@ function primaryButtonStyle2(submitting) {
|
|
|
33932
33823
|
}
|
|
33933
33824
|
|
|
33934
33825
|
export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AcceptAdminInvitePage, AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SmsConsentField, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath };
|
|
33935
|
-
//# sourceMappingURL=
|
|
33936
|
-
//# sourceMappingURL=
|
|
33826
|
+
//# sourceMappingURL=BXXGDTLE.js.map
|
|
33827
|
+
//# sourceMappingURL=BXXGDTLE.js.map
|