@apextelemed/partner-core 0.23.0-dev.82 → 0.23.0-dev.84
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/{Z33DIIG6.jsx → 3PC2Z2QD.jsx} +2 -2
- package/dist/chunk/{4GYQYONL.js → ANR4H6TB.js} +5 -5
- package/dist/chunk/{4GYQYONL.js.map → ANR4H6TB.js.map} +1 -1
- package/dist/chunk/{74A4ERWQ.js → DFZFYIME.js} +3 -3
- package/dist/chunk/{74A4ERWQ.js.map → DFZFYIME.js.map} +1 -1
- package/dist/chunk/{Y74YTJXR.js → FFHPVSPW.js} +4 -12
- package/dist/chunk/FFHPVSPW.js.map +1 -0
- package/dist/chunk/{L7TIWRSK.jsx → GYVEVOH7.jsx} +4 -4
- package/dist/chunk/{L5DLLO2G.jsx → JQEJL7HE.jsx} +5 -5
- package/dist/chunk/{K2TKMLIY.js → JQIEY5VS.js} +3 -3
- package/dist/chunk/{K2TKMLIY.js.map → JQIEY5VS.js.map} +1 -1
- package/dist/chunk/{6TJPPA6S.jsx → K4SFTGFZ.jsx} +99 -62
- package/dist/chunk/{SAHG4GZB.js → MFW42ITZ.js} +6 -6
- package/dist/chunk/{SAHG4GZB.js.map → MFW42ITZ.js.map} +1 -1
- package/dist/chunk/{PK74TNA6.js → TUIMLDLN.js} +3 -3
- package/dist/chunk/{PK74TNA6.js.map → TUIMLDLN.js.map} +1 -1
- package/dist/chunk/{2TGKQDQV.jsx → UWWII3GE.jsx} +2 -2
- package/dist/chunk/{6TO6ZQVD.js → XB27METC.js} +167 -120
- package/dist/chunk/XB27METC.js.map +1 -0
- package/dist/chunk/{GIJCNQCB.jsx → XRFUHRLK.jsx} +2 -2
- package/dist/chunk/{GWVFWHTO.jsx → XWGLSZKD.jsx} +3 -11
- package/dist/{client-BdY7wkDp.d.ts → client-C-0_UTAb.d.ts} +4 -20
- 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/6TO6ZQVD.js.map +0 -1
- package/dist/chunk/Y74YTJXR.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, isValidUsPhone, 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, PHONE_ERROR, isImageAttachment, buildRefillView, toTrackerRequest, needsReview, visibleWarnings, compareStrengths, MATCH_DEPENDENT_WARNINGS, SOURCE_FIELD_NOTE, MATCH_HOW_LABEL, explainFinding, matchKey } from './ANR4H6TB.js';
|
|
3
|
+
import { fetchFunnelConfig } from './TUIMLDLN.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 './DFZFYIME.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 './FFHPVSPW.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';
|
|
@@ -28016,11 +28016,12 @@ function SmsLogCard(props) {
|
|
|
28016
28016
|
});
|
|
28017
28017
|
}
|
|
28018
28018
|
delegateEvents(["click"]);
|
|
28019
|
-
var _tmpl$478 = /* @__PURE__ */ template(`<div class=app-admin-
|
|
28020
|
-
var _tmpl$2131 = /* @__PURE__ */ template(`<div
|
|
28021
|
-
var _tmpl$3105 = /* @__PURE__ */ template(`<div class=app-admin-
|
|
28022
|
-
var _tmpl$479 = /* @__PURE__ */ template(`<div class=app-admin-
|
|
28023
|
-
var _tmpl$568 = /* @__PURE__ */ template(`<div
|
|
28019
|
+
var _tmpl$478 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style=padding:0.875rem;display:grid;gap:0.625rem><div style=font-size:0.875rem;font-weight:600></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-sm">`);
|
|
28020
|
+
var _tmpl$2131 = /* @__PURE__ */ template(`<div class=app-admin-notice role=status>`);
|
|
28021
|
+
var _tmpl$3105 = /* @__PURE__ */ template(`<div class=app-admin-notice role=alert style=color:var(--app-admin-danger-fg)>`);
|
|
28022
|
+
var _tmpl$479 = /* @__PURE__ */ template(`<div class=app-admin-card-soft data-testid=sms-test-phone style=padding:0.875rem;display:grid;gap:0.5rem><label class=app-admin-label for=sms-test-phone-input style=font-size:0.875rem;font-weight:600>Your phone for test texts</label><div>Test texts are sent to this number. It is the phone on your own account.</div><div class=app-admin-btn-row><input id=sms-test-phone-input class=app-admin-input type=tel inputmode=tel autocomplete=tel placeholder="(555) 555-1234"><button type=button class="app-admin-btn app-admin-btn-sm">`);
|
|
28023
|
+
var _tmpl$568 = /* @__PURE__ */ template(`<div>Save your phone number above to send a test.`);
|
|
28024
|
+
var _tmpl$660 = /* @__PURE__ */ template(`<div class=app-admin-notice role=alert>The texts could not be loaded. `);
|
|
28024
28025
|
function testMessage(res) {
|
|
28025
28026
|
switch (res.status) {
|
|
28026
28027
|
case "sent":
|
|
@@ -28051,41 +28052,15 @@ function testMessage(res) {
|
|
|
28051
28052
|
}
|
|
28052
28053
|
}
|
|
28053
28054
|
function TemplateRow(props) {
|
|
28054
|
-
const
|
|
28055
|
-
const [enabled, setEnabled] = createSignal(saved().enabled);
|
|
28056
|
-
const [saving, setSaving] = createSignal(false);
|
|
28057
|
-
const [error, setError] = createSignal(null);
|
|
28055
|
+
const t = () => props.template;
|
|
28058
28056
|
const [testing, setTesting] = createSignal(false);
|
|
28059
28057
|
const [test, setTest] = createSignal(null);
|
|
28060
|
-
const dirty = () => enabled() !== saved().enabled;
|
|
28061
|
-
const save = async () => {
|
|
28062
|
-
if (!dirty() || saving()) return;
|
|
28063
|
-
setSaving(true);
|
|
28064
|
-
setError(null);
|
|
28065
|
-
try {
|
|
28066
|
-
const res = await adminApi.saveSmsTemplates({
|
|
28067
|
-
[saved().key]: {
|
|
28068
|
-
enabled: enabled()
|
|
28069
|
-
}
|
|
28070
|
-
});
|
|
28071
|
-
const next = res.templates.find((t) => t.key === saved().key);
|
|
28072
|
-
if (next) {
|
|
28073
|
-
setEnabled(next.enabled);
|
|
28074
|
-
props.onSaved(next);
|
|
28075
|
-
}
|
|
28076
|
-
toastSuccess(`${saved().label} text saved`);
|
|
28077
|
-
} catch (e) {
|
|
28078
|
-
setError(e instanceof Error ? e.message : "Could not save.");
|
|
28079
|
-
} finally {
|
|
28080
|
-
setSaving(false);
|
|
28081
|
-
}
|
|
28082
|
-
};
|
|
28083
28058
|
const sendTest = async () => {
|
|
28084
28059
|
if (testing()) return;
|
|
28085
28060
|
setTesting(true);
|
|
28086
28061
|
setTest(null);
|
|
28087
28062
|
try {
|
|
28088
|
-
setTest(testMessage(await adminApi.sendSmsTemplateTest(
|
|
28063
|
+
setTest(testMessage(await adminApi.sendSmsTemplateTest(t().key)));
|
|
28089
28064
|
} catch (e) {
|
|
28090
28065
|
setTest({
|
|
28091
28066
|
tone: "bad",
|
|
@@ -28096,91 +28071,161 @@ function TemplateRow(props) {
|
|
|
28096
28071
|
}
|
|
28097
28072
|
};
|
|
28098
28073
|
return (() => {
|
|
28099
|
-
var _el$ = _tmpl$
|
|
28100
|
-
insert(_el$
|
|
28101
|
-
_el$5
|
|
28102
|
-
|
|
28103
|
-
insert(_el$
|
|
28074
|
+
var _el$ = _tmpl$478(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$3.nextSibling, _el$7 = _el$6.firstChild;
|
|
28075
|
+
insert(_el$2, () => t().label);
|
|
28076
|
+
insert(_el$5, () => t().preview);
|
|
28077
|
+
_el$7.$$click = () => void sendTest();
|
|
28078
|
+
insert(_el$7, () => testing() ? "Sending\u2026" : "Send test to my phone");
|
|
28104
28079
|
insert(_el$, createComponent(Show, {
|
|
28105
28080
|
get when() {
|
|
28106
|
-
return
|
|
28081
|
+
return test();
|
|
28107
28082
|
},
|
|
28108
|
-
|
|
28109
|
-
var _el$
|
|
28110
|
-
insert(_el$
|
|
28111
|
-
|
|
28112
|
-
|
|
28113
|
-
|
|
28114
|
-
|
|
28115
|
-
|
|
28116
|
-
|
|
28117
|
-
|
|
28118
|
-
|
|
28083
|
+
children: (r) => (() => {
|
|
28084
|
+
var _el$8 = _tmpl$2131();
|
|
28085
|
+
insert(_el$8, () => r().text);
|
|
28086
|
+
effect((_$p) => style(_el$8, r().tone === "bad" ? {
|
|
28087
|
+
color: "var(--app-admin-danger-fg)"
|
|
28088
|
+
} : void 0, _$p));
|
|
28089
|
+
return _el$8;
|
|
28090
|
+
})()
|
|
28091
|
+
}), null);
|
|
28092
|
+
effect((_p$) => {
|
|
28093
|
+
var _v$ = t().key, _v$2 = muted3, _v$3 = testing() || !props.canTest;
|
|
28094
|
+
_v$ !== _p$.e && setAttribute(_el$, "data-template", _p$.e = _v$);
|
|
28095
|
+
_p$.t = style(_el$3, _v$2, _p$.t);
|
|
28096
|
+
_v$3 !== _p$.a && (_el$7.disabled = _p$.a = _v$3);
|
|
28097
|
+
return _p$;
|
|
28098
|
+
}, {
|
|
28099
|
+
e: void 0,
|
|
28100
|
+
t: void 0,
|
|
28101
|
+
a: void 0
|
|
28102
|
+
});
|
|
28103
|
+
return _el$;
|
|
28104
|
+
})();
|
|
28105
|
+
}
|
|
28106
|
+
function TestPhoneBlock(props) {
|
|
28107
|
+
const [value, setValue] = createSignal("");
|
|
28108
|
+
const [saving, setSaving] = createSignal(false);
|
|
28109
|
+
const [error, setError] = createSignal("");
|
|
28110
|
+
const [note, setNote] = createSignal(null);
|
|
28111
|
+
const [loaded] = createResource(async () => {
|
|
28112
|
+
try {
|
|
28113
|
+
const res = await usersApi.getProfile();
|
|
28114
|
+
const raw = res.data?.phone;
|
|
28115
|
+
const phone = typeof raw === "string" ? raw : "";
|
|
28116
|
+
setValue(phone);
|
|
28117
|
+
props.onLoaded(phone);
|
|
28118
|
+
} catch {
|
|
28119
|
+
}
|
|
28120
|
+
return true;
|
|
28121
|
+
});
|
|
28122
|
+
const save = async () => {
|
|
28123
|
+
if (saving()) return;
|
|
28124
|
+
const phone = value().trim();
|
|
28125
|
+
setNote(null);
|
|
28126
|
+
if (!isValidUsPhone(phone)) {
|
|
28127
|
+
setError(PHONE_ERROR);
|
|
28128
|
+
return;
|
|
28129
|
+
}
|
|
28130
|
+
setError("");
|
|
28131
|
+
setSaving(true);
|
|
28132
|
+
try {
|
|
28133
|
+
await usersApi.updateProfile({
|
|
28134
|
+
phone
|
|
28135
|
+
});
|
|
28136
|
+
props.onSaved(phone);
|
|
28137
|
+
setNote({
|
|
28138
|
+
tone: "ok",
|
|
28139
|
+
text: "Saved to your account."
|
|
28140
|
+
});
|
|
28141
|
+
} catch (e) {
|
|
28142
|
+
setNote({
|
|
28143
|
+
tone: "bad",
|
|
28144
|
+
text: e instanceof Error ? e.message : "Could not save your number."
|
|
28145
|
+
});
|
|
28146
|
+
} finally {
|
|
28147
|
+
setSaving(false);
|
|
28148
|
+
}
|
|
28149
|
+
};
|
|
28150
|
+
return (() => {
|
|
28151
|
+
var _el$9 = _tmpl$479(), _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$1.nextSibling, _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling;
|
|
28152
|
+
_el$11.$$input = (e) => {
|
|
28153
|
+
setValue(e.currentTarget.value);
|
|
28154
|
+
setError("");
|
|
28155
|
+
setNote(null);
|
|
28156
|
+
};
|
|
28157
|
+
_el$12.$$click = () => void save();
|
|
28158
|
+
insert(_el$12, () => saving() ? "Saving\u2026" : "Save");
|
|
28159
|
+
insert(_el$9, createComponent(Show, {
|
|
28119
28160
|
get when() {
|
|
28120
|
-
return
|
|
28161
|
+
return error();
|
|
28121
28162
|
},
|
|
28122
28163
|
get children() {
|
|
28123
|
-
var _el$
|
|
28124
|
-
|
|
28125
|
-
return _el$
|
|
28164
|
+
var _el$13 = _tmpl$3105();
|
|
28165
|
+
insert(_el$13, error);
|
|
28166
|
+
return _el$13;
|
|
28126
28167
|
}
|
|
28127
28168
|
}), null);
|
|
28128
|
-
insert(_el
|
|
28169
|
+
insert(_el$9, createComponent(Show, {
|
|
28129
28170
|
get when() {
|
|
28130
|
-
return
|
|
28171
|
+
return note();
|
|
28131
28172
|
},
|
|
28132
|
-
children: (
|
|
28133
|
-
var _el$
|
|
28134
|
-
insert(_el$
|
|
28135
|
-
effect((_$p) => style(_el$
|
|
28173
|
+
children: (r) => (() => {
|
|
28174
|
+
var _el$14 = _tmpl$2131();
|
|
28175
|
+
insert(_el$14, () => r().text);
|
|
28176
|
+
effect((_$p) => style(_el$14, r().tone === "bad" ? {
|
|
28136
28177
|
color: "var(--app-admin-danger-fg)"
|
|
28137
28178
|
} : void 0, _$p));
|
|
28138
|
-
return _el$
|
|
28179
|
+
return _el$14;
|
|
28139
28180
|
})()
|
|
28140
28181
|
}), null);
|
|
28141
28182
|
effect((_p$) => {
|
|
28142
|
-
var _v$ =
|
|
28143
|
-
|
|
28144
|
-
_v$
|
|
28145
|
-
_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);
|
|
28183
|
+
var _v$4 = muted3, _v$5 = loaded.loading, _v$6 = saving() || loaded.loading;
|
|
28184
|
+
_p$.e = style(_el$1, _v$4, _p$.e);
|
|
28185
|
+
_v$5 !== _p$.t && (_el$11.disabled = _p$.t = _v$5);
|
|
28186
|
+
_v$6 !== _p$.a && (_el$12.disabled = _p$.a = _v$6);
|
|
28148
28187
|
return _p$;
|
|
28149
28188
|
}, {
|
|
28150
28189
|
e: void 0,
|
|
28151
28190
|
t: void 0,
|
|
28152
|
-
a: void 0
|
|
28153
|
-
o: void 0,
|
|
28154
|
-
i: void 0
|
|
28191
|
+
a: void 0
|
|
28155
28192
|
});
|
|
28156
|
-
effect(() => _el$
|
|
28157
|
-
return _el
|
|
28193
|
+
effect(() => _el$11.value = value());
|
|
28194
|
+
return _el$9;
|
|
28158
28195
|
})();
|
|
28159
28196
|
}
|
|
28160
28197
|
function SmsTemplatesCard(props) {
|
|
28161
|
-
const [data
|
|
28162
|
-
mutate
|
|
28163
|
-
}] = createResource(async () => {
|
|
28198
|
+
const [data] = createResource(async () => {
|
|
28164
28199
|
const res = await adminApi.getSmsTemplates();
|
|
28165
28200
|
props.onLoaded?.(res.templates);
|
|
28166
28201
|
return res;
|
|
28167
28202
|
});
|
|
28203
|
+
const [phone, setPhone] = createSignal("");
|
|
28168
28204
|
const templates = () => data.error ? [] : data()?.templates ?? [];
|
|
28169
|
-
const replace = (next) => mutate({
|
|
28170
|
-
templates: templates().map((t) => t.key === next.key ? next : t)
|
|
28171
|
-
});
|
|
28172
28205
|
return createComponent(SmsCard, {
|
|
28173
28206
|
title: "What the texts say",
|
|
28174
|
-
note: "
|
|
28207
|
+
note: "Every text below is sent automatically once texts are set up. The wording is fixed.",
|
|
28175
28208
|
get children() {
|
|
28176
|
-
return [createComponent(
|
|
28209
|
+
return [createComponent(TestPhoneBlock, {
|
|
28210
|
+
onSaved: setPhone,
|
|
28211
|
+
onLoaded: setPhone
|
|
28212
|
+
}), createComponent(Show, {
|
|
28213
|
+
get when() {
|
|
28214
|
+
return !isValidUsPhone(phone());
|
|
28215
|
+
},
|
|
28216
|
+
get children() {
|
|
28217
|
+
var _el$15 = _tmpl$568();
|
|
28218
|
+
effect((_$p) => style(_el$15, muted3, _$p));
|
|
28219
|
+
return _el$15;
|
|
28220
|
+
}
|
|
28221
|
+
}), createComponent(Show, {
|
|
28177
28222
|
get when() {
|
|
28178
28223
|
return data.error;
|
|
28179
28224
|
},
|
|
28180
28225
|
get children() {
|
|
28181
|
-
var _el$
|
|
28182
|
-
insert(_el$
|
|
28183
|
-
return _el$
|
|
28226
|
+
var _el$16 = _tmpl$660(); _el$16.firstChild;
|
|
28227
|
+
insert(_el$16, () => data.error?.message, null);
|
|
28228
|
+
return _el$16;
|
|
28184
28229
|
}
|
|
28185
28230
|
}), createComponent(Show, {
|
|
28186
28231
|
get when() {
|
|
@@ -28195,13 +28240,15 @@ function SmsTemplatesCard(props) {
|
|
|
28195
28240
|
},
|
|
28196
28241
|
children: (t) => createComponent(TemplateRow, {
|
|
28197
28242
|
template: t,
|
|
28198
|
-
|
|
28243
|
+
get canTest() {
|
|
28244
|
+
return isValidUsPhone(phone());
|
|
28245
|
+
}
|
|
28199
28246
|
})
|
|
28200
28247
|
})];
|
|
28201
28248
|
}
|
|
28202
28249
|
});
|
|
28203
28250
|
}
|
|
28204
|
-
delegateEvents(["click"]);
|
|
28251
|
+
delegateEvents(["click", "input"]);
|
|
28205
28252
|
|
|
28206
28253
|
// src/pages/admin/SmsSettings.tsx
|
|
28207
28254
|
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>`);
|
|
@@ -28209,7 +28256,7 @@ var _tmpl$2132 = /* @__PURE__ */ template(`<p data-testid=sms-status-text style=
|
|
|
28209
28256
|
var _tmpl$3106 = /* @__PURE__ */ template(`<button type=button class=app-admin-link-btn>Go to Features`);
|
|
28210
28257
|
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.`);
|
|
28211
28258
|
var _tmpl$569 = /* @__PURE__ */ template(`<a target=_blank rel="noopener noreferrer">`);
|
|
28212
|
-
var _tmpl$
|
|
28259
|
+
var _tmpl$661 = /* @__PURE__ */ template(`<div style=display:grid;gap:0.5rem>`);
|
|
28213
28260
|
var _tmpl$754 = /* @__PURE__ */ template(`<span data-testid=sms-status-badge>`);
|
|
28214
28261
|
var _tmpl$846 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>No number yet`);
|
|
28215
28262
|
var _tmpl$942 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>-`);
|
|
@@ -28278,7 +28325,7 @@ function StatusCard(props) {
|
|
|
28278
28325
|
return s().feature;
|
|
28279
28326
|
},
|
|
28280
28327
|
get children() {
|
|
28281
|
-
var _el$8 = _tmpl$
|
|
28328
|
+
var _el$8 = _tmpl$661();
|
|
28282
28329
|
insert(_el$8, createComponent(Row2, {
|
|
28283
28330
|
label: "Sends from",
|
|
28284
28331
|
get children() {
|
|
@@ -28412,7 +28459,7 @@ var _tmpl$2133 = /* @__PURE__ */ template(`<select class=app-admin-input>`);
|
|
|
28412
28459
|
var _tmpl$3107 = /* @__PURE__ */ template(`<option>`);
|
|
28413
28460
|
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">`);
|
|
28414
28461
|
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>`);
|
|
28415
|
-
var _tmpl$
|
|
28462
|
+
var _tmpl$664 = /* @__PURE__ */ template(`<div class=app-admin-heading style="font-size:1rem;margin:1.5rem 0 0.5rem">Pending invites`);
|
|
28416
28463
|
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
28464
|
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
28465
|
var _tmpl$943 = /* @__PURE__ */ template(`<span class=app-admin-text-muted> (you)`);
|
|
@@ -28589,7 +28636,7 @@ function Admins(props) {
|
|
|
28589
28636
|
return (team()?.invites ?? []).length > 0;
|
|
28590
28637
|
},
|
|
28591
28638
|
get children() {
|
|
28592
|
-
return [_tmpl$
|
|
28639
|
+
return [_tmpl$664(), (() => {
|
|
28593
28640
|
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;
|
|
28594
28641
|
insert(_el$30, createComponent(For, {
|
|
28595
28642
|
get each() {
|
|
@@ -28633,7 +28680,7 @@ var _tmpl$2134 = /* @__PURE__ */ template(`<button type=button style="display:fl
|
|
|
28633
28680
|
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>`);
|
|
28634
28681
|
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">`);
|
|
28635
28682
|
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.`);
|
|
28636
|
-
var _tmpl$
|
|
28683
|
+
var _tmpl$665 = /* @__PURE__ */ template(`<div role=alert style="margin:1rem 0;padding:1.25rem 1.5rem;border:1px solid var(--app-admin-border);border-radius:var(--app-admin-radius-sm);background:var(--app-admin-surface);color:var(--app-admin-fg)"><div style=font-weight:600;margin-bottom:0.375rem>This section failed to load</div><div style=font-size:0.875rem;color:var(--app-admin-fg-muted);margin-bottom:1rem;word-break:break-word></div><button type=button style="padding:0.5rem 0.875rem;border-radius:var(--app-admin-radius-sm);border:1px solid var(--app-admin-border);background:var(--app-admin-primary-soft);color:var(--app-admin-primary-soft-fg);font-size:0.875rem;font-weight:500;cursor:pointer">Try again`);
|
|
28637
28684
|
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); } }`);
|
|
28638
28685
|
var TAB_LABELS = {
|
|
28639
28686
|
dashboard: "Dashboard",
|
|
@@ -29138,7 +29185,7 @@ function AdminTabError(props) {
|
|
|
29138
29185
|
console.error("[AdminDashboard] tab failed to render:", props.error);
|
|
29139
29186
|
const message = () => props.error instanceof Error ? props.error.message : String(props.error);
|
|
29140
29187
|
return (() => {
|
|
29141
|
-
var _el$15 = _tmpl$
|
|
29188
|
+
var _el$15 = _tmpl$665(), _el$16 = _el$15.firstChild, _el$17 = _el$16.nextSibling, _el$18 = _el$17.nextSibling;
|
|
29142
29189
|
insert(_el$17, message);
|
|
29143
29190
|
_el$18.$$click = () => props.reset();
|
|
29144
29191
|
return _el$15;
|
|
@@ -29233,7 +29280,7 @@ var _tmpl$2135 = /* @__PURE__ */ template(`<div style="display:flex;align-items:
|
|
|
29233
29280
|
var _tmpl$3109 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>Could not load this customer's dashboard.`);
|
|
29234
29281
|
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">`);
|
|
29235
29282
|
var _tmpl$574 = /* @__PURE__ */ template(`<div><h3>Subscription`);
|
|
29236
|
-
var _tmpl$
|
|
29283
|
+
var _tmpl$666 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:0.5rem>`);
|
|
29237
29284
|
var _tmpl$757 = /* @__PURE__ */ template(`<div><h3>Prescription requests`);
|
|
29238
29285
|
var _tmpl$848 = /* @__PURE__ */ template(`<div><h3>Pending surveys`);
|
|
29239
29286
|
var _tmpl$944 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>No active subscription.`);
|
|
@@ -29365,7 +29412,7 @@ function PatientDashboardPreview(props) {
|
|
|
29365
29412
|
return _tmpl$1226();
|
|
29366
29413
|
},
|
|
29367
29414
|
get children() {
|
|
29368
|
-
var _el$22 = _tmpl$
|
|
29415
|
+
var _el$22 = _tmpl$666();
|
|
29369
29416
|
insert(_el$22, createComponent(For, {
|
|
29370
29417
|
get each() {
|
|
29371
29418
|
return data.rxList();
|
|
@@ -29417,7 +29464,7 @@ function PatientDashboardPreview(props) {
|
|
|
29417
29464
|
return _tmpl$1621();
|
|
29418
29465
|
},
|
|
29419
29466
|
get children() {
|
|
29420
|
-
var _el$25 = _tmpl$
|
|
29467
|
+
var _el$25 = _tmpl$666();
|
|
29421
29468
|
insert(_el$25, createComponent(For, {
|
|
29422
29469
|
get each() {
|
|
29423
29470
|
return data.pendingSurveys();
|
|
@@ -29595,7 +29642,7 @@ var _tmpl$2137 = /* @__PURE__ */ template(`<div class=ship><p class=ship__eta></
|
|
|
29595
29642
|
var _tmpl$3118 = /* @__PURE__ */ template(`<span class=refill__cycle>Day <!> of `);
|
|
29596
29643
|
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>`);
|
|
29597
29644
|
var _tmpl$575 = /* @__PURE__ */ template(`<span class=refill__cycle>Preparing your next fill`);
|
|
29598
|
-
var _tmpl$
|
|
29645
|
+
var _tmpl$667 = /* @__PURE__ */ template(`<div><span class=refill__dot aria-hidden=true></span><span class="lab-label refill__label"></span><span class=refill__date></span><span class=refill__rel>`);
|
|
29599
29646
|
var _tmpl$758 = /* @__PURE__ */ template(`<a class=refill__action>Complete check-in \u2192`);
|
|
29600
29647
|
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
29648
|
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`);
|
|
@@ -29680,7 +29727,7 @@ function OrderTracker(props) {
|
|
|
29680
29727
|
return r().events;
|
|
29681
29728
|
},
|
|
29682
29729
|
children: (e) => (() => {
|
|
29683
|
-
var _el$20 = _tmpl$
|
|
29730
|
+
var _el$20 = _tmpl$667(), _el$21 = _el$20.firstChild, _el$22 = _el$21.nextSibling, _el$23 = _el$22.nextSibling, _el$24 = _el$23.nextSibling;
|
|
29684
29731
|
insert(_el$22, () => e.label);
|
|
29685
29732
|
insert(_el$23, () => formatEventDate(e.date));
|
|
29686
29733
|
insert(_el$24, (() => {
|
|
@@ -30005,7 +30052,7 @@ var _tmpl$2139 = /* @__PURE__ */ template(`<div class=plan__empty><h2 class=plan
|
|
|
30005
30052
|
var _tmpl$3120 = /* @__PURE__ */ template(`<p class=membership__dose>`);
|
|
30006
30053
|
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 `);
|
|
30007
30054
|
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`);
|
|
30008
|
-
var _tmpl$
|
|
30055
|
+
var _tmpl$668 = /* @__PURE__ */ template(`<p class=plan__note>Question about billing? <button type=button class=plan__note-link>Message support`);
|
|
30009
30056
|
var _tmpl$759 = /* @__PURE__ */ template(`<p class=plan__error role=alert>`);
|
|
30010
30057
|
var _tmpl$850 = /* @__PURE__ */ template(`<button type=button class=plan__link-btn>`);
|
|
30011
30058
|
var _tmpl$946 = /* @__PURE__ */ template(`<button type=button class="plan__link-btn plan__link-btn--quiet">Cancel subscription`);
|
|
@@ -30097,7 +30144,7 @@ function PlanBilling(props) {
|
|
|
30097
30144
|
return props.messagingEnabled;
|
|
30098
30145
|
},
|
|
30099
30146
|
get children() {
|
|
30100
|
-
var _el$28 = _tmpl$
|
|
30147
|
+
var _el$28 = _tmpl$668(), _el$29 = _el$28.firstChild, _el$31 = _el$29.nextSibling;
|
|
30101
30148
|
_el$31.$$click = () => props.onOpenMessages({
|
|
30102
30149
|
channel: "support",
|
|
30103
30150
|
category: "billing"
|
|
@@ -30184,7 +30231,7 @@ var _tmpl$2140 = /* @__PURE__ */ template(`<p class=account__sms-error role=aler
|
|
|
30184
30231
|
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`);
|
|
30185
30232
|
var _tmpl$4100 = /* @__PURE__ */ template(`<ul class=account__sms-events aria-label="Which texts you get">`);
|
|
30186
30233
|
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`);
|
|
30187
|
-
var _tmpl$
|
|
30234
|
+
var _tmpl$669 = /* @__PURE__ */ template(`<dd class=account__sms-number><span></span><button type=button class=account__note-link>`);
|
|
30188
30235
|
var _tmpl$760 = /* @__PURE__ */ template(`<p class=account__sms-notice role=status>`);
|
|
30189
30236
|
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
30237
|
var _tmpl$947 = /* @__PURE__ */ template(`<p class=account__sms-links>`);
|
|
@@ -30216,7 +30263,7 @@ function SmsSection() {
|
|
|
30216
30263
|
},
|
|
30217
30264
|
get fallback() {
|
|
30218
30265
|
return (() => {
|
|
30219
|
-
var _el$13 = _tmpl$
|
|
30266
|
+
var _el$13 = _tmpl$669(), _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling;
|
|
30220
30267
|
insert(_el$14, (() => {
|
|
30221
30268
|
var _c$ = memo(() => !!sms.phone());
|
|
30222
30269
|
return () => _c$() ? formatUsPhone(sms.phone()) : "No number on file";
|
|
@@ -30385,7 +30432,7 @@ var _tmpl$2141 = /* @__PURE__ */ template(`<p class=account__note>Need to update
|
|
|
30385
30432
|
var _tmpl$3122 = /* @__PURE__ */ template(`<button type=button class="account__support-link account__support-btn">Messages`);
|
|
30386
30433
|
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`);
|
|
30387
30434
|
var _tmpl$578 = /* @__PURE__ */ template(`<div class=account__field><dt class=lab-label></dt><dd>`);
|
|
30388
|
-
var _tmpl$
|
|
30435
|
+
var _tmpl$670 = /* @__PURE__ */ template(`<a class=account__support-link>`);
|
|
30389
30436
|
function pick(member, ...keys) {
|
|
30390
30437
|
if (!member) return "";
|
|
30391
30438
|
for (const k of keys) {
|
|
@@ -30475,7 +30522,7 @@ function AccountPanel(props) {
|
|
|
30475
30522
|
return props.legalLinks ?? [];
|
|
30476
30523
|
},
|
|
30477
30524
|
children: (link) => (() => {
|
|
30478
|
-
var _el$14 = _tmpl$
|
|
30525
|
+
var _el$14 = _tmpl$670();
|
|
30479
30526
|
insert(_el$14, () => link.label);
|
|
30480
30527
|
effect(() => setAttribute(_el$14, "href", link.href));
|
|
30481
30528
|
return _el$14;
|
|
@@ -30491,7 +30538,7 @@ var _tmpl$2142 = /* @__PURE__ */ template(`<ul class=leaflet__disclaimers id=lea
|
|
|
30491
30538
|
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>`);
|
|
30492
30539
|
var _tmpl$4102 = /* @__PURE__ */ template(`<li>`);
|
|
30493
30540
|
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>`);
|
|
30494
|
-
var _tmpl$
|
|
30541
|
+
var _tmpl$671 = /* @__PURE__ */ template(`<li class=steps__item><span class=steps__num></span><div class=steps__body><h3 class=steps__title></h3><p class=steps__detail>`);
|
|
30495
30542
|
function firstNumber(s) {
|
|
30496
30543
|
const m = (s || "").match(/\d+(\.\d+)?/);
|
|
30497
30544
|
return m ? m[0] : null;
|
|
@@ -30545,7 +30592,7 @@ function MedicationGuide(props) {
|
|
|
30545
30592
|
return props.guide.injectionSteps;
|
|
30546
30593
|
},
|
|
30547
30594
|
children: (step) => (() => {
|
|
30548
|
-
var _el$54 = _tmpl$
|
|
30595
|
+
var _el$54 = _tmpl$671(), _el$55 = _el$54.firstChild, _el$56 = _el$55.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$57.nextSibling;
|
|
30549
30596
|
insert(_el$55, () => step.n);
|
|
30550
30597
|
insert(_el$57, () => step.title);
|
|
30551
30598
|
insert(_el$58, () => step.detail);
|
|
@@ -30652,7 +30699,7 @@ var _tmpl$2143 = /* @__PURE__ */ template(`<span class=channel-chip__category>`)
|
|
|
30652
30699
|
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`);
|
|
30653
30700
|
var _tmpl$4103 = /* @__PURE__ */ template(`<div class=msg-list__state><div class=request-status__spinner>`);
|
|
30654
30701
|
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>`);
|
|
30655
|
-
var _tmpl$
|
|
30702
|
+
var _tmpl$673 = /* @__PURE__ */ template(`<div class=msg-list__scroll data-scrollable>`);
|
|
30656
30703
|
var _tmpl$761 = /* @__PURE__ */ template(`<span class=msg-list__pip>`);
|
|
30657
30704
|
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
30705
|
var _tmpl$948 = /* @__PURE__ */ template(`<button type=button class=msg-attachment__image-link><img class=msg-attachment__image loading=lazy>`, true, false, false);
|
|
@@ -30923,7 +30970,7 @@ function MessagesPanel(props) {
|
|
|
30923
30970
|
_el$7.$$click = openCompose;
|
|
30924
30971
|
return _el$3;
|
|
30925
30972
|
})(), (() => {
|
|
30926
|
-
var _el$8 = _tmpl$
|
|
30973
|
+
var _el$8 = _tmpl$673();
|
|
30927
30974
|
insert(_el$8, createComponent(Show, {
|
|
30928
30975
|
get when() {
|
|
30929
30976
|
return thread().loadingConversations();
|
|
@@ -31554,7 +31601,7 @@ var _tmpl$2145 = /* @__PURE__ */ template(`<div class=portal-state data-testid=h
|
|
|
31554
31601
|
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.`);
|
|
31555
31602
|
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>`);
|
|
31556
31603
|
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`);
|
|
31557
|
-
var _tmpl$
|
|
31604
|
+
var _tmpl$674 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your answers\u2026`);
|
|
31558
31605
|
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
31606
|
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
31607
|
var _tmpl$949 = /* @__PURE__ */ template(`<section class=history-section><h3 class=lab-label>`);
|
|
@@ -31625,7 +31672,7 @@ function SurveyHistory() {
|
|
|
31625
31672
|
return !detail.loading;
|
|
31626
31673
|
},
|
|
31627
31674
|
get fallback() {
|
|
31628
|
-
return _tmpl$
|
|
31675
|
+
return _tmpl$674();
|
|
31629
31676
|
},
|
|
31630
31677
|
get children() {
|
|
31631
31678
|
return createComponent(Show, {
|
|
@@ -31701,7 +31748,7 @@ var _tmpl$2146 = /* @__PURE__ */ template(`<span>`);
|
|
|
31701
31748
|
var _tmpl$3127 = /* @__PURE__ */ template(`<button type=button><i aria-hidden=true></i><span class=portal-item__label>`);
|
|
31702
31749
|
var _tmpl$4105 = /* @__PURE__ */ template(`<div class=rx-others data-testid=rx-others><span class=lab-label>Other orders`);
|
|
31703
31750
|
var _tmpl$584 = /* @__PURE__ */ template(`<div class=rx-stack>`);
|
|
31704
|
-
var _tmpl$
|
|
31751
|
+
var _tmpl$675 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your portal\u2026`);
|
|
31705
31752
|
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
31753
|
var _tmpl$854 = /* @__PURE__ */ template(`<p class=portal-rail__hi>Hi, `);
|
|
31707
31754
|
var _tmpl$950 = /* @__PURE__ */ template(`<a class=portal-rail__back data-testid=rail-back>\u2190 Back to shop`);
|
|
@@ -31975,7 +32022,7 @@ function MemberPortal(props) {
|
|
|
31975
32022
|
return !data.loading();
|
|
31976
32023
|
},
|
|
31977
32024
|
get fallback() {
|
|
31978
|
-
return _tmpl$
|
|
32025
|
+
return _tmpl$675();
|
|
31979
32026
|
},
|
|
31980
32027
|
get children() {
|
|
31981
32028
|
return createComponent(Show, {
|
|
@@ -32810,7 +32857,7 @@ var _tmpl$2153 = /* @__PURE__ */ template(`<input type=text required autocomplet
|
|
|
32810
32857
|
var _tmpl$3134 = /* @__PURE__ */ template(`<input type=email required autocomplete=email>`);
|
|
32811
32858
|
var _tmpl$4116 = /* @__PURE__ */ template(`<input type=text required minlength=4>`);
|
|
32812
32859
|
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">`);
|
|
32813
|
-
var _tmpl$
|
|
32860
|
+
var _tmpl$676 = /* @__PURE__ */ template(`<button type=button>Already have an account? Log in`);
|
|
32814
32861
|
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
32862
|
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
32863
|
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.`);
|
|
@@ -32932,7 +32979,7 @@ function AffiliateRegister(props) {
|
|
|
32932
32979
|
return props.onNavigateLogin;
|
|
32933
32980
|
},
|
|
32934
32981
|
get children() {
|
|
32935
|
-
var _el$19 = _tmpl$
|
|
32982
|
+
var _el$19 = _tmpl$676();
|
|
32936
32983
|
_el$19.$$click = () => props.onNavigateLogin?.();
|
|
32937
32984
|
effect((_$p) => style(_el$19, linkStyle(), _$p));
|
|
32938
32985
|
return _el$19;
|
|
@@ -33112,7 +33159,7 @@ var _tmpl$2155 = /* @__PURE__ */ template(`<form style=display:flex;flex-directi
|
|
|
33112
33159
|
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`);
|
|
33113
33160
|
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">`);
|
|
33114
33161
|
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.`);
|
|
33115
|
-
var _tmpl$
|
|
33162
|
+
var _tmpl$677 = /* @__PURE__ */ template(`<button type=button style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600;cursor:pointer">Back to sign in`);
|
|
33116
33163
|
function ForgotPasswordPage(props) {
|
|
33117
33164
|
const [email, setEmail] = createSignal("");
|
|
33118
33165
|
const [submitting, setSubmitting] = createSignal(false);
|
|
@@ -33150,7 +33197,7 @@ function ForgotPasswordPage(props) {
|
|
|
33150
33197
|
return props.onDone;
|
|
33151
33198
|
},
|
|
33152
33199
|
get children() {
|
|
33153
|
-
var _el$10 = _tmpl$
|
|
33200
|
+
var _el$10 = _tmpl$677();
|
|
33154
33201
|
_el$10.$$click = () => props.onDone?.();
|
|
33155
33202
|
return _el$10;
|
|
33156
33203
|
}
|
|
@@ -33823,5 +33870,5 @@ function primaryButtonStyle2(submitting) {
|
|
|
33823
33870
|
}
|
|
33824
33871
|
|
|
33825
33872
|
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 };
|
|
33826
|
-
//# sourceMappingURL=
|
|
33827
|
-
//# sourceMappingURL=
|
|
33873
|
+
//# sourceMappingURL=XB27METC.js.map
|
|
33874
|
+
//# sourceMappingURL=XB27METC.js.map
|