@apextelemed/partner-core 0.23.0-dev.81 → 0.23.0-dev.83
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/{PHN4IMRV.jsx → 5LMCRJ6Y.jsx} +16 -61
- package/dist/chunk/{UOD5EQ6T.js → ANR4H6TB.js} +5 -7
- package/dist/chunk/ANR4H6TB.js.map +1 -0
- 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/{PQUHVBZN.jsx → GYVEVOH7.jsx} +5 -7
- package/dist/chunk/{IGIUMJ3F.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/{HHNXH573.js → MFW42ITZ.js} +6 -6
- package/dist/chunk/{HHNXH573.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/{BXXGDTLE.js → W4HVE5RI.js} +132 -195
- package/dist/chunk/W4HVE5RI.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 +3 -2
- package/dist/flows/index.js +6 -6
- package/dist/flows/index.jsx +8 -6
- package/dist/index/index.d.ts +2 -2
- package/dist/index/index.js +7 -7
- package/dist/index/index.jsx +9 -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/BXXGDTLE.js.map +0 -1
- package/dist/chunk/UOD5EQ6T.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, 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 './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,9 @@ 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-notice role=status>`);
|
|
28023
|
-
var _tmpl$568 = /* @__PURE__ */ template(`<div class=app-admin-notice role=alert>The texts could not be loaded. `);
|
|
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>The texts could not be loaded. `);
|
|
28024
28022
|
function testMessage(res) {
|
|
28025
28023
|
switch (res.status) {
|
|
28026
28024
|
case "sent":
|
|
@@ -28051,41 +28049,15 @@ function testMessage(res) {
|
|
|
28051
28049
|
}
|
|
28052
28050
|
}
|
|
28053
28051
|
function TemplateRow(props) {
|
|
28054
|
-
const
|
|
28055
|
-
const [enabled, setEnabled] = createSignal(saved().enabled);
|
|
28056
|
-
const [saving, setSaving] = createSignal(false);
|
|
28057
|
-
const [error, setError] = createSignal(null);
|
|
28052
|
+
const t = () => props.template;
|
|
28058
28053
|
const [testing, setTesting] = createSignal(false);
|
|
28059
28054
|
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
28055
|
const sendTest = async () => {
|
|
28084
28056
|
if (testing()) return;
|
|
28085
28057
|
setTesting(true);
|
|
28086
28058
|
setTest(null);
|
|
28087
28059
|
try {
|
|
28088
|
-
setTest(testMessage(await adminApi.sendSmsTemplateTest(
|
|
28060
|
+
setTest(testMessage(await adminApi.sendSmsTemplateTest(t().key)));
|
|
28089
28061
|
} catch (e) {
|
|
28090
28062
|
setTest({
|
|
28091
28063
|
tone: "bad",
|
|
@@ -28096,91 +28068,57 @@ function TemplateRow(props) {
|
|
|
28096
28068
|
}
|
|
28097
28069
|
};
|
|
28098
28070
|
return (() => {
|
|
28099
|
-
var _el$ = _tmpl$
|
|
28100
|
-
insert(_el$
|
|
28101
|
-
_el$5
|
|
28102
|
-
|
|
28103
|
-
insert(_el$
|
|
28104
|
-
insert(_el$, createComponent(Show, {
|
|
28105
|
-
get when() {
|
|
28106
|
-
return error();
|
|
28107
|
-
},
|
|
28108
|
-
get children() {
|
|
28109
|
-
var _el$9 = _tmpl$478();
|
|
28110
|
-
insert(_el$9, error);
|
|
28111
|
-
return _el$9;
|
|
28112
|
-
}
|
|
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");
|
|
28118
|
-
insert(_el$, createComponent(Show, {
|
|
28119
|
-
get when() {
|
|
28120
|
-
return dirty();
|
|
28121
|
-
},
|
|
28122
|
-
get children() {
|
|
28123
|
-
var _el$11 = _tmpl$2131();
|
|
28124
|
-
effect((_$p) => style(_el$11, muted3, _$p));
|
|
28125
|
-
return _el$11;
|
|
28126
|
-
}
|
|
28127
|
-
}), null);
|
|
28071
|
+
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;
|
|
28072
|
+
insert(_el$2, () => t().label);
|
|
28073
|
+
insert(_el$5, () => t().preview);
|
|
28074
|
+
_el$7.$$click = () => void sendTest();
|
|
28075
|
+
insert(_el$7, () => testing() ? "Sending\u2026" : "Send test to my phone");
|
|
28128
28076
|
insert(_el$, createComponent(Show, {
|
|
28129
28077
|
get when() {
|
|
28130
28078
|
return test();
|
|
28131
28079
|
},
|
|
28132
|
-
children: (
|
|
28133
|
-
var _el$
|
|
28134
|
-
insert(_el$
|
|
28135
|
-
effect((_$p) => style(_el$
|
|
28080
|
+
children: (r) => (() => {
|
|
28081
|
+
var _el$8 = _tmpl$2131();
|
|
28082
|
+
insert(_el$8, () => r().text);
|
|
28083
|
+
effect((_$p) => style(_el$8, r().tone === "bad" ? {
|
|
28136
28084
|
color: "var(--app-admin-danger-fg)"
|
|
28137
28085
|
} : void 0, _$p));
|
|
28138
|
-
return _el$
|
|
28086
|
+
return _el$8;
|
|
28139
28087
|
})()
|
|
28140
28088
|
}), null);
|
|
28141
28089
|
effect((_p$) => {
|
|
28142
|
-
var _v$ =
|
|
28090
|
+
var _v$ = t().key, _v$2 = muted3, _v$3 = testing();
|
|
28143
28091
|
_v$ !== _p$.e && setAttribute(_el$, "data-template", _p$.e = _v$);
|
|
28144
|
-
|
|
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);
|
|
28092
|
+
_p$.t = style(_el$3, _v$2, _p$.t);
|
|
28093
|
+
_v$3 !== _p$.a && (_el$7.disabled = _p$.a = _v$3);
|
|
28148
28094
|
return _p$;
|
|
28149
28095
|
}, {
|
|
28150
28096
|
e: void 0,
|
|
28151
28097
|
t: void 0,
|
|
28152
|
-
a: void 0
|
|
28153
|
-
o: void 0,
|
|
28154
|
-
i: void 0
|
|
28098
|
+
a: void 0
|
|
28155
28099
|
});
|
|
28156
|
-
effect(() => _el$5.checked = enabled());
|
|
28157
28100
|
return _el$;
|
|
28158
28101
|
})();
|
|
28159
28102
|
}
|
|
28160
28103
|
function SmsTemplatesCard(props) {
|
|
28161
|
-
const [data
|
|
28162
|
-
mutate
|
|
28163
|
-
}] = createResource(async () => {
|
|
28104
|
+
const [data] = createResource(async () => {
|
|
28164
28105
|
const res = await adminApi.getSmsTemplates();
|
|
28165
28106
|
props.onLoaded?.(res.templates);
|
|
28166
28107
|
return res;
|
|
28167
28108
|
});
|
|
28168
28109
|
const templates = () => data.error ? [] : data()?.templates ?? [];
|
|
28169
|
-
const replace = (next) => mutate({
|
|
28170
|
-
templates: templates().map((t) => t.key === next.key ? next : t)
|
|
28171
|
-
});
|
|
28172
28110
|
return createComponent(SmsCard, {
|
|
28173
28111
|
title: "What the texts say",
|
|
28174
|
-
note: "
|
|
28112
|
+
note: "Every text below is sent automatically once texts are set up. The wording is fixed.",
|
|
28175
28113
|
get children() {
|
|
28176
28114
|
return [createComponent(Show, {
|
|
28177
28115
|
get when() {
|
|
28178
28116
|
return data.error;
|
|
28179
28117
|
},
|
|
28180
28118
|
get children() {
|
|
28181
|
-
var _el$
|
|
28182
|
-
insert(_el$
|
|
28183
|
-
return _el$
|
|
28119
|
+
var _el$9 = _tmpl$3105(); _el$9.firstChild;
|
|
28120
|
+
insert(_el$9, () => data.error?.message, null);
|
|
28121
|
+
return _el$9;
|
|
28184
28122
|
}
|
|
28185
28123
|
}), createComponent(Show, {
|
|
28186
28124
|
get when() {
|
|
@@ -28194,8 +28132,7 @@ function SmsTemplatesCard(props) {
|
|
|
28194
28132
|
return templates();
|
|
28195
28133
|
},
|
|
28196
28134
|
children: (t) => createComponent(TemplateRow, {
|
|
28197
|
-
template: t
|
|
28198
|
-
onSaved: replace
|
|
28135
|
+
template: t
|
|
28199
28136
|
})
|
|
28200
28137
|
})];
|
|
28201
28138
|
}
|
|
@@ -28204,11 +28141,11 @@ function SmsTemplatesCard(props) {
|
|
|
28204
28141
|
delegateEvents(["click"]);
|
|
28205
28142
|
|
|
28206
28143
|
// src/pages/admin/SmsSettings.tsx
|
|
28207
|
-
var _tmpl$
|
|
28144
|
+
var _tmpl$479 = /* @__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>`);
|
|
28208
28145
|
var _tmpl$2132 = /* @__PURE__ */ template(`<p data-testid=sms-status-text style=margin:0;font-size:0.875rem>`);
|
|
28209
28146
|
var _tmpl$3106 = /* @__PURE__ */ template(`<button type=button class=app-admin-link-btn>Go to Features`);
|
|
28210
|
-
var _tmpl$
|
|
28211
|
-
var _tmpl$
|
|
28147
|
+
var _tmpl$480 = /* @__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.`);
|
|
28148
|
+
var _tmpl$568 = /* @__PURE__ */ template(`<a target=_blank rel="noopener noreferrer">`);
|
|
28212
28149
|
var _tmpl$660 = /* @__PURE__ */ template(`<div style=display:grid;gap:0.5rem>`);
|
|
28213
28150
|
var _tmpl$754 = /* @__PURE__ */ template(`<span data-testid=sms-status-badge>`);
|
|
28214
28151
|
var _tmpl$846 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>No number yet`);
|
|
@@ -28222,7 +28159,7 @@ var NOT_READY = {
|
|
|
28222
28159
|
};
|
|
28223
28160
|
function Row2(props) {
|
|
28224
28161
|
return (() => {
|
|
28225
|
-
var _el$ = _tmpl$
|
|
28162
|
+
var _el$ = _tmpl$479(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
28226
28163
|
insert(_el$2, () => props.label);
|
|
28227
28164
|
insert(_el$3, () => props.children);
|
|
28228
28165
|
effect((_$p) => style(_el$2, {
|
|
@@ -28258,7 +28195,7 @@ function StatusCard(props) {
|
|
|
28258
28195
|
return !s().feature;
|
|
28259
28196
|
},
|
|
28260
28197
|
get children() {
|
|
28261
|
-
var _el$5 = _tmpl$
|
|
28198
|
+
var _el$5 = _tmpl$480(); _el$5.firstChild;
|
|
28262
28199
|
insert(_el$5, createComponent(Show, {
|
|
28263
28200
|
get when() {
|
|
28264
28201
|
return canOpenFeatures();
|
|
@@ -28302,7 +28239,7 @@ function StatusCard(props) {
|
|
|
28302
28239
|
return _tmpl$942();
|
|
28303
28240
|
},
|
|
28304
28241
|
get children() {
|
|
28305
|
-
var _el$9 = _tmpl$
|
|
28242
|
+
var _el$9 = _tmpl$568();
|
|
28306
28243
|
insert(_el$9, () => s().termsUrl);
|
|
28307
28244
|
effect(() => setAttribute(_el$9, "href", s().termsUrl));
|
|
28308
28245
|
return _el$9;
|
|
@@ -28321,7 +28258,7 @@ function StatusCard(props) {
|
|
|
28321
28258
|
return _tmpl$942();
|
|
28322
28259
|
},
|
|
28323
28260
|
get children() {
|
|
28324
|
-
var _el$0 = _tmpl$
|
|
28261
|
+
var _el$0 = _tmpl$568();
|
|
28325
28262
|
insert(_el$0, () => s().privacyUrl);
|
|
28326
28263
|
effect(() => setAttribute(_el$0, "href", s().privacyUrl));
|
|
28327
28264
|
return _el$0;
|
|
@@ -28407,11 +28344,11 @@ function SmsSettings() {
|
|
|
28407
28344
|
})();
|
|
28408
28345
|
}
|
|
28409
28346
|
delegateEvents(["click"]);
|
|
28410
|
-
var _tmpl$
|
|
28347
|
+
var _tmpl$481 = /* @__PURE__ */ template(`<option value disabled>Unknown role`);
|
|
28411
28348
|
var _tmpl$2133 = /* @__PURE__ */ template(`<select class=app-admin-input>`);
|
|
28412
28349
|
var _tmpl$3107 = /* @__PURE__ */ template(`<option>`);
|
|
28413
|
-
var _tmpl$
|
|
28414
|
-
var _tmpl$
|
|
28350
|
+
var _tmpl$485 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style="padding:0.625rem 0.875rem;margin-top:0.75rem;font-size:0.875rem">`);
|
|
28351
|
+
var _tmpl$569 = /* @__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
28352
|
var _tmpl$661 = /* @__PURE__ */ template(`<div class=app-admin-heading style="font-size:1rem;margin:1.5rem 0 0.5rem">Pending invites`);
|
|
28416
28353
|
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
28354
|
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>: `);
|
|
@@ -28439,7 +28376,7 @@ function RoleSelect(props) {
|
|
|
28439
28376
|
return props.value === null;
|
|
28440
28377
|
},
|
|
28441
28378
|
get children() {
|
|
28442
|
-
return _tmpl$
|
|
28379
|
+
return _tmpl$481();
|
|
28443
28380
|
}
|
|
28444
28381
|
}), null);
|
|
28445
28382
|
insert(_el$, createComponent(For, {
|
|
@@ -28533,7 +28470,7 @@ function Admins(props) {
|
|
|
28533
28470
|
return apexNote();
|
|
28534
28471
|
},
|
|
28535
28472
|
get children() {
|
|
28536
|
-
var _el$14 = _tmpl$
|
|
28473
|
+
var _el$14 = _tmpl$485();
|
|
28537
28474
|
insert(_el$14, apexNote);
|
|
28538
28475
|
return _el$14;
|
|
28539
28476
|
}
|
|
@@ -28557,7 +28494,7 @@ function Admins(props) {
|
|
|
28557
28494
|
},
|
|
28558
28495
|
get children() {
|
|
28559
28496
|
return [(() => {
|
|
28560
|
-
var _el$15 = _tmpl$
|
|
28497
|
+
var _el$15 = _tmpl$569(), _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$17.firstChild, _el$19 = _el$18.nextSibling; _el$19.nextSibling; var _el$21 = _el$16.nextSibling;
|
|
28561
28498
|
insert(_el$21, createComponent(For, {
|
|
28562
28499
|
get each() {
|
|
28563
28500
|
return team()?.admins ?? [];
|
|
@@ -28628,11 +28565,11 @@ function Admins(props) {
|
|
|
28628
28565
|
delegateEvents(["input", "click"]);
|
|
28629
28566
|
|
|
28630
28567
|
// src/pages/AdminDashboard.tsx
|
|
28631
|
-
var _tmpl$
|
|
28568
|
+
var _tmpl$486 = /* @__PURE__ */ template(`<span style=font-size:1rem;opacity:0.7;flex-shrink:0>`);
|
|
28632
28569
|
var _tmpl$2134 = /* @__PURE__ */ template(`<button type=button style="display:flex;align-items:center;gap:0.75rem;padding:0.625rem 0.75rem;border-radius:var(--app-admin-radius-sm);font-size:0.875rem;font-weight:500;text-align:left;border:none;cursor:pointer">`);
|
|
28633
28570
|
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
|
-
var _tmpl$
|
|
28635
|
-
var _tmpl$
|
|
28571
|
+
var _tmpl$487 = /* @__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">`);
|
|
28572
|
+
var _tmpl$570 = /* @__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
28573
|
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
28574
|
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
28575
|
var TAB_LABELS = {
|
|
@@ -28817,7 +28754,7 @@ function AdminDashboard(props) {
|
|
|
28817
28754
|
return props.tabIcons?.[btnProps.tab];
|
|
28818
28755
|
},
|
|
28819
28756
|
get children() {
|
|
28820
|
-
var _el$2 = _tmpl$
|
|
28757
|
+
var _el$2 = _tmpl$486();
|
|
28821
28758
|
effect(() => className(_el$2, props.tabIcons[btnProps.tab]));
|
|
28822
28759
|
return _el$2;
|
|
28823
28760
|
}
|
|
@@ -28866,7 +28803,7 @@ function AdminDashboard(props) {
|
|
|
28866
28803
|
return visibleGroups();
|
|
28867
28804
|
},
|
|
28868
28805
|
children: (group) => [(() => {
|
|
28869
|
-
var _el$11 = _tmpl$
|
|
28806
|
+
var _el$11 = _tmpl$487();
|
|
28870
28807
|
insert(_el$11, () => group.label);
|
|
28871
28808
|
return _el$11;
|
|
28872
28809
|
})(), createComponent(For, {
|
|
@@ -29130,7 +29067,7 @@ function AdminDashboard(props) {
|
|
|
29130
29067
|
}
|
|
29131
29068
|
function RoleForbidden() {
|
|
29132
29069
|
return (() => {
|
|
29133
|
-
var _el$12 = _tmpl$
|
|
29070
|
+
var _el$12 = _tmpl$570(), _el$13 = _el$12.firstChild; _el$13.nextSibling;
|
|
29134
29071
|
return _el$12;
|
|
29135
29072
|
})();
|
|
29136
29073
|
}
|
|
@@ -29228,11 +29165,11 @@ function affiliateSubTabFromPath(pathname, base = "/admin") {
|
|
|
29228
29165
|
}
|
|
29229
29166
|
return "overview";
|
|
29230
29167
|
}
|
|
29231
|
-
var _tmpl$
|
|
29168
|
+
var _tmpl$488 = /* @__PURE__ */ template(`<div class=app-admin-modal-backdrop><div class="app-admin-card app-admin-modal"style=max-width:32rem><div class=app-admin-modal-header><h3 class=app-admin-heading style=font-size:1rem;margin:0>Customer dashboard preview</h3><button type=button class="app-admin-btn app-admin-btn-ghost"style="border:none;padding:0.25rem 0.5rem;font-size:1.25rem">\xD7</button></div><div class=app-admin-modal-body><div style="padding:0.5rem 0.75rem;border-radius:var(--app-admin-radius-sm);background:var(--app-admin-warning-bg);color:var(--app-admin-warning-fg);font-size:0.75rem;font-weight:500">Viewing as <!> \u2014 read-only`);
|
|
29232
29169
|
var _tmpl$2135 = /* @__PURE__ */ template(`<div style="display:flex;align-items:center;justify-content:space-between;gap:0.75rem;padding:0.5rem 0.75rem;border-radius:var(--app-admin-radius-sm);background:var(--app-admin-danger-bg);color:var(--app-admin-danger-fg);font-size:0.75rem;font-weight:500"><span></span><button type=button class="app-admin-btn app-admin-btn-ghost"style="padding:0.25rem 0.75rem">Retry`);
|
|
29233
29170
|
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
|
-
var _tmpl$
|
|
29235
|
-
var _tmpl$
|
|
29171
|
+
var _tmpl$489 = /* @__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">`);
|
|
29172
|
+
var _tmpl$571 = /* @__PURE__ */ template(`<div><h3>Subscription`);
|
|
29236
29173
|
var _tmpl$665 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:0.5rem>`);
|
|
29237
29174
|
var _tmpl$757 = /* @__PURE__ */ template(`<div><h3>Prescription requests`);
|
|
29238
29175
|
var _tmpl$848 = /* @__PURE__ */ template(`<div><h3>Pending surveys`);
|
|
@@ -29252,7 +29189,7 @@ function PatientDashboardPreview(props) {
|
|
|
29252
29189
|
authToken: () => props.token
|
|
29253
29190
|
});
|
|
29254
29191
|
return (() => {
|
|
29255
|
-
var _el$ = _tmpl$
|
|
29192
|
+
var _el$ = _tmpl$488(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$3.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$0 = _el$8.nextSibling; _el$0.nextSibling;
|
|
29256
29193
|
_el$.$$click = (e) => {
|
|
29257
29194
|
if (e.target === e.currentTarget) props.onClose();
|
|
29258
29195
|
};
|
|
@@ -29286,13 +29223,13 @@ function PatientDashboardPreview(props) {
|
|
|
29286
29223
|
return _tmpl$3109();
|
|
29287
29224
|
},
|
|
29288
29225
|
children: (profile) => [(() => {
|
|
29289
|
-
var _el$13 = _tmpl$
|
|
29226
|
+
var _el$13 = _tmpl$489(), _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$16.nextSibling;
|
|
29290
29227
|
insert(_el$16, () => [profile().firstName, profile().lastName].filter(Boolean).join(" ") || "Member");
|
|
29291
29228
|
insert(_el$17, () => profile().email);
|
|
29292
29229
|
effect((_$p) => style(_el$14, panelSectionHeader, _$p));
|
|
29293
29230
|
return _el$13;
|
|
29294
29231
|
})(), (() => {
|
|
29295
|
-
var _el$18 = _tmpl$
|
|
29232
|
+
var _el$18 = _tmpl$571(), _el$19 = _el$18.firstChild;
|
|
29296
29233
|
insert(_el$18, createComponent(Show, {
|
|
29297
29234
|
get when() {
|
|
29298
29235
|
return data.subscription();
|
|
@@ -29442,7 +29379,7 @@ function PatientDashboardPreview(props) {
|
|
|
29442
29379
|
})();
|
|
29443
29380
|
}
|
|
29444
29381
|
delegateEvents(["click"]);
|
|
29445
|
-
var _tmpl$
|
|
29382
|
+
var _tmpl$490 = /* @__PURE__ */ template(`<div style=margin-bottom:1rem>`);
|
|
29446
29383
|
var _tmpl$2136 = /* @__PURE__ */ template(`<form><div style=display:grid;gap:1rem;margin-bottom:1.5rem><div style="display:grid;grid-template-columns:repeat(2, 1fr);gap:1rem"></div></div><div style=margin-bottom:1.5rem></div><div style=display:flex;gap:0.75rem>`);
|
|
29447
29384
|
var _tmpl$3117 = /* @__PURE__ */ template(`<div class=pay-method style="max-width:480px;margin:0 auto;padding:2rem 1.25rem"><p style="color:var(--app-portal-fg-muted, #6e6a66);margin-bottom:1.5rem">Enter a new card for your subscription. Your current card stays active until this succeeds.`);
|
|
29448
29385
|
var LIVE = /* @__PURE__ */ new Set(["active", "paused", "past_due"]);
|
|
@@ -29512,7 +29449,7 @@ function UpdatePaymentMethod(props) {
|
|
|
29512
29449
|
return flow.error();
|
|
29513
29450
|
},
|
|
29514
29451
|
get children() {
|
|
29515
|
-
var _el$4 = _tmpl$
|
|
29452
|
+
var _el$4 = _tmpl$490();
|
|
29516
29453
|
insert(_el$4, createComponent(Banner, {
|
|
29517
29454
|
variant: "error",
|
|
29518
29455
|
get children() {
|
|
@@ -29590,11 +29527,11 @@ function UpdatePaymentMethod(props) {
|
|
|
29590
29527
|
return _el$;
|
|
29591
29528
|
})();
|
|
29592
29529
|
}
|
|
29593
|
-
var _tmpl$
|
|
29530
|
+
var _tmpl$491 = /* @__PURE__ */ template(`<a class=ship__track target=_blank rel="noopener noreferrer">Track<!> \u2197`);
|
|
29594
29531
|
var _tmpl$2137 = /* @__PURE__ */ template(`<div class=ship><p class=ship__eta></p><div class=ship__chip-row><button type=button class=ship__chip><span class=ship__num></span><i class="ph ph-copy ship__copy-icon"aria-hidden=true></i><span class=ship__copied>Copied \u2713</span></button></div><span class=portal-sr-only role=status aria-live=polite>`);
|
|
29595
29532
|
var _tmpl$3118 = /* @__PURE__ */ template(`<span class=refill__cycle>Day <!> of `);
|
|
29596
|
-
var _tmpl$
|
|
29597
|
-
var _tmpl$
|
|
29533
|
+
var _tmpl$495 = /* @__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>`);
|
|
29534
|
+
var _tmpl$574 = /* @__PURE__ */ template(`<span class=refill__cycle>Preparing your next fill`);
|
|
29598
29535
|
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
29536
|
var _tmpl$758 = /* @__PURE__ */ template(`<a class=refill__action>Complete check-in \u2192`);
|
|
29600
29537
|
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.`);
|
|
@@ -29639,7 +29576,7 @@ function TrackingChip(props) {
|
|
|
29639
29576
|
return props.url;
|
|
29640
29577
|
},
|
|
29641
29578
|
get children() {
|
|
29642
|
-
var _el$8 = _tmpl$
|
|
29579
|
+
var _el$8 = _tmpl$491(), _el$9 = _el$8.firstChild, _el$1 = _el$9.nextSibling; _el$1.nextSibling;
|
|
29643
29580
|
insert(_el$8, (() => {
|
|
29644
29581
|
var _c$ = memo(() => !!props.carrier);
|
|
29645
29582
|
return () => _c$() ? ` with ${props.carrier}` : "";
|
|
@@ -29660,13 +29597,13 @@ function OrderTracker(props) {
|
|
|
29660
29597
|
return refill();
|
|
29661
29598
|
},
|
|
29662
29599
|
children: (r) => (() => {
|
|
29663
|
-
var _el$11 = _tmpl$
|
|
29600
|
+
var _el$11 = _tmpl$495(), _el$12 = _el$11.firstChild; _el$12.firstChild; var _el$18 = _el$12.nextSibling;
|
|
29664
29601
|
insert(_el$12, createComponent(Show, {
|
|
29665
29602
|
get when() {
|
|
29666
29603
|
return !r().pendingFill;
|
|
29667
29604
|
},
|
|
29668
29605
|
get fallback() {
|
|
29669
|
-
return _tmpl$
|
|
29606
|
+
return _tmpl$574();
|
|
29670
29607
|
},
|
|
29671
29608
|
get children() {
|
|
29672
29609
|
var _el$14 = _tmpl$3118(), _el$15 = _el$14.firstChild, _el$17 = _el$15.nextSibling; _el$17.nextSibling;
|
|
@@ -29919,7 +29856,7 @@ function OrderTracker(props) {
|
|
|
29919
29856
|
});
|
|
29920
29857
|
}
|
|
29921
29858
|
delegateEvents(["click"]);
|
|
29922
|
-
var _tmpl$
|
|
29859
|
+
var _tmpl$496 = /* @__PURE__ */ template(`<span class=rx-row__dose> \xB7 `);
|
|
29923
29860
|
var _tmpl$2138 = /* @__PURE__ */ template(`<div class=rx-row__body>`);
|
|
29924
29861
|
var _tmpl$3119 = /* @__PURE__ */ template(`<div data-testid=rx-row><button type=button class=rx-row__head><span class=rx-row__med></span><span class=rx-row__status></span><i aria-hidden=true>`);
|
|
29925
29862
|
var STATUS_LABEL = {
|
|
@@ -29946,7 +29883,7 @@ function RxRow(props) {
|
|
|
29946
29883
|
return props.rx.dosage;
|
|
29947
29884
|
},
|
|
29948
29885
|
get children() {
|
|
29949
|
-
var _el$4 = _tmpl$
|
|
29886
|
+
var _el$4 = _tmpl$496(); _el$4.firstChild;
|
|
29950
29887
|
insert(_el$4, () => props.rx.dosage, null);
|
|
29951
29888
|
return _el$4;
|
|
29952
29889
|
}
|
|
@@ -30000,11 +29937,11 @@ function RxRow(props) {
|
|
|
30000
29937
|
})();
|
|
30001
29938
|
}
|
|
30002
29939
|
delegateEvents(["click"]);
|
|
30003
|
-
var _tmpl$
|
|
29940
|
+
var _tmpl$497 = /* @__PURE__ */ template(`<div class=plan data-testid=plan-billing><span class=lab-label>Plan & billing`);
|
|
30004
29941
|
var _tmpl$2139 = /* @__PURE__ */ template(`<div class=plan__empty><h2 class=plan__empty-title>No active plan</h2><p class=plan__empty-text>Start your treatment to set up your monthly plan.</p><a class="portal-btn portal-btn--primary">Start your intake`);
|
|
30005
29942
|
var _tmpl$3120 = /* @__PURE__ */ template(`<p class=membership__dose>`);
|
|
30006
|
-
var _tmpl$
|
|
30007
|
-
var _tmpl$
|
|
29943
|
+
var _tmpl$498 = /* @__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 `);
|
|
29944
|
+
var _tmpl$575 = /* @__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
29945
|
var _tmpl$667 = /* @__PURE__ */ template(`<p class=plan__note>Question about billing? <button type=button class=plan__note-link>Message support`);
|
|
30009
29946
|
var _tmpl$759 = /* @__PURE__ */ template(`<p class=plan__error role=alert>`);
|
|
30010
29947
|
var _tmpl$850 = /* @__PURE__ */ template(`<button type=button class=plan__link-btn>`);
|
|
@@ -30055,7 +29992,7 @@ function PlanBilling(props) {
|
|
|
30055
29992
|
}
|
|
30056
29993
|
};
|
|
30057
29994
|
return (() => {
|
|
30058
|
-
var _el$ = _tmpl$
|
|
29995
|
+
var _el$ = _tmpl$497(); _el$.firstChild;
|
|
30059
29996
|
insert(_el$, createComponent(Show, {
|
|
30060
29997
|
get when() {
|
|
30061
29998
|
return primary();
|
|
@@ -30068,7 +30005,7 @@ function PlanBilling(props) {
|
|
|
30068
30005
|
})();
|
|
30069
30006
|
},
|
|
30070
30007
|
children: (sub) => [(() => {
|
|
30071
|
-
var _el$7 = _tmpl$
|
|
30008
|
+
var _el$7 = _tmpl$498(), _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$9.firstChild, _el$1 = _el$0.nextSibling, _el$10 = _el$9.nextSibling, _el$12 = _el$10.nextSibling, _el$13 = _el$12.firstChild, _el$14 = _el$13.firstChild, _el$15 = _el$13.nextSibling; _el$15.firstChild;
|
|
30072
30009
|
insert(_el$0, () => STATUS_COPY[sub().status] || sub().status);
|
|
30073
30010
|
insert(_el$1, () => props.brandName);
|
|
30074
30011
|
insert(_el$10, () => sub().medicationName ?? sub().medication);
|
|
@@ -30087,7 +30024,7 @@ function PlanBilling(props) {
|
|
|
30087
30024
|
effect(() => className(_el$7, `membership membership--${sub().status}`));
|
|
30088
30025
|
return _el$7;
|
|
30089
30026
|
})(), (() => {
|
|
30090
|
-
var _el$17 = _tmpl$
|
|
30027
|
+
var _el$17 = _tmpl$575(), _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$19.nextSibling, _el$21 = _el$18.nextSibling, _el$22 = _el$21.firstChild, _el$23 = _el$22.nextSibling, _el$24 = _el$21.nextSibling, _el$25 = _el$24.firstChild, _el$26 = _el$25.nextSibling, _el$27 = _el$26.firstChild;
|
|
30091
30028
|
insert(_el$20, () => formatLongDate(sub().createdAt));
|
|
30092
30029
|
insert(_el$23, () => formatLongDate(sub().currentPeriodEnd));
|
|
30093
30030
|
insert(_el$26, () => formatCents(sub().amountCents), _el$27);
|
|
@@ -30179,11 +30116,11 @@ function PlanBilling(props) {
|
|
|
30179
30116
|
})();
|
|
30180
30117
|
}
|
|
30181
30118
|
delegateEvents(["click"]);
|
|
30182
|
-
var _tmpl$
|
|
30119
|
+
var _tmpl$499 = /* @__PURE__ */ template(`<dd class=account__sms-edit><input class=account__sms-input type=tel inputmode=tel autocomplete=tel aria-label="Mobile number"><button type=button class="portal-btn portal-btn--primary">Save number</button><button type=button class="portal-btn portal-btn--ghost">Cancel`);
|
|
30183
30120
|
var _tmpl$2140 = /* @__PURE__ */ template(`<p class=account__sms-error role=alert>`);
|
|
30184
30121
|
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
30122
|
var _tmpl$4100 = /* @__PURE__ */ template(`<ul class=account__sms-events aria-label="Which texts you get">`);
|
|
30186
|
-
var _tmpl$
|
|
30123
|
+
var _tmpl$576 = /* @__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
30124
|
var _tmpl$668 = /* @__PURE__ */ template(`<dd class=account__sms-number><span></span><button type=button class=account__note-link>`);
|
|
30188
30125
|
var _tmpl$760 = /* @__PURE__ */ template(`<p class=account__sms-notice role=status>`);
|
|
30189
30126
|
var _tmpl$851 = /* @__PURE__ */ template(`<p class=account__sms-stop data-testid=sms-stop>You replied STOP. Text START to <!> to receive texts again.`);
|
|
@@ -30209,7 +30146,7 @@ function SmsSection() {
|
|
|
30209
30146
|
return sms.available();
|
|
30210
30147
|
},
|
|
30211
30148
|
get children() {
|
|
30212
|
-
var _el$ = _tmpl$
|
|
30149
|
+
var _el$ = _tmpl$576(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild; _el$4.firstChild;
|
|
30213
30150
|
insert(_el$4, createComponent(Show, {
|
|
30214
30151
|
get when() {
|
|
30215
30152
|
return editing();
|
|
@@ -30228,7 +30165,7 @@ function SmsSection() {
|
|
|
30228
30165
|
})();
|
|
30229
30166
|
},
|
|
30230
30167
|
get children() {
|
|
30231
|
-
var _el$6 = _tmpl$
|
|
30168
|
+
var _el$6 = _tmpl$499(), _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$9 = _el$8.nextSibling;
|
|
30232
30169
|
_el$7.$$input = (e) => setDraft(e.currentTarget.value);
|
|
30233
30170
|
_el$8.$$click = savePhone;
|
|
30234
30171
|
_el$9.$$click = () => setEditing(false);
|
|
@@ -30380,11 +30317,11 @@ function SmsSection() {
|
|
|
30380
30317
|
delegateEvents(["input", "click"]);
|
|
30381
30318
|
|
|
30382
30319
|
// src/pages/member/AccountPanel.tsx
|
|
30383
|
-
var _tmpl$
|
|
30320
|
+
var _tmpl$500 = /* @__PURE__ */ template(`<p class=account__empty>We don\u2019t have your details on file yet.`);
|
|
30384
30321
|
var _tmpl$2141 = /* @__PURE__ */ template(`<p class=account__note>Need to update something? <button type=button class=account__note-link>Message support</button> and we\u2019ll take care of it.`);
|
|
30385
30322
|
var _tmpl$3122 = /* @__PURE__ */ template(`<button type=button class="account__support-link account__support-btn">Messages`);
|
|
30386
30323
|
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
|
-
var _tmpl$
|
|
30324
|
+
var _tmpl$577 = /* @__PURE__ */ template(`<div class=account__field><dt class=lab-label></dt><dd>`);
|
|
30388
30325
|
var _tmpl$669 = /* @__PURE__ */ template(`<a class=account__support-link>`);
|
|
30389
30326
|
function pick(member, ...keys) {
|
|
30390
30327
|
if (!member) return "";
|
|
@@ -30432,7 +30369,7 @@ function AccountPanel(props) {
|
|
|
30432
30369
|
return fields();
|
|
30433
30370
|
},
|
|
30434
30371
|
children: (f) => (() => {
|
|
30435
|
-
var _el$11 = _tmpl$
|
|
30372
|
+
var _el$11 = _tmpl$577(), _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling;
|
|
30436
30373
|
insert(_el$12, () => f.label);
|
|
30437
30374
|
insert(_el$13, () => f.value);
|
|
30438
30375
|
return _el$11;
|
|
@@ -30443,7 +30380,7 @@ function AccountPanel(props) {
|
|
|
30443
30380
|
return fields().length === 0;
|
|
30444
30381
|
},
|
|
30445
30382
|
get children() {
|
|
30446
|
-
return _tmpl$
|
|
30383
|
+
return _tmpl$500();
|
|
30447
30384
|
}
|
|
30448
30385
|
}), _el$0);
|
|
30449
30386
|
insert(_el$, createComponent(SmsSection, {}), _el$0);
|
|
@@ -30486,11 +30423,11 @@ function AccountPanel(props) {
|
|
|
30486
30423
|
})();
|
|
30487
30424
|
}
|
|
30488
30425
|
delegateEvents(["click"]);
|
|
30489
|
-
var _tmpl$
|
|
30426
|
+
var _tmpl$501 = /* @__PURE__ */ template(`<section class="leaflet__section leaflet__section--caution"><h2 class=leaflet__h2>Birth control</h2><p class=leaflet__body>`);
|
|
30490
30427
|
var _tmpl$2142 = /* @__PURE__ */ template(`<ul class=leaflet__disclaimers id=leaflet-disclaimers>`);
|
|
30491
30428
|
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
30429
|
var _tmpl$4102 = /* @__PURE__ */ template(`<li>`);
|
|
30493
|
-
var _tmpl$
|
|
30430
|
+
var _tmpl$578 = /* @__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
30431
|
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>`);
|
|
30495
30432
|
function firstNumber(s) {
|
|
30496
30433
|
const m = (s || "").match(/\d+(\.\d+)?/);
|
|
@@ -30531,7 +30468,7 @@ function MedicationGuide(props) {
|
|
|
30531
30468
|
return props.guide.titration;
|
|
30532
30469
|
},
|
|
30533
30470
|
children: (step, i) => (() => {
|
|
30534
|
-
var _el$46 = _tmpl$
|
|
30471
|
+
var _el$46 = _tmpl$578(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$49.firstChild, _el$51 = _el$50.nextSibling, _el$52 = _el$49.nextSibling, _el$53 = _el$52.nextSibling;
|
|
30535
30472
|
insert(_el$50, () => step.dose);
|
|
30536
30473
|
insert(_el$51, () => step.phase);
|
|
30537
30474
|
insert(_el$52, () => step.timeframe);
|
|
@@ -30568,7 +30505,7 @@ function MedicationGuide(props) {
|
|
|
30568
30505
|
return props.guide.contraception;
|
|
30569
30506
|
},
|
|
30570
30507
|
get children() {
|
|
30571
|
-
var _el$24 = _tmpl$
|
|
30508
|
+
var _el$24 = _tmpl$501(), _el$25 = _el$24.firstChild, _el$26 = _el$25.nextSibling;
|
|
30572
30509
|
insert(_el$26, () => props.guide.contraception);
|
|
30573
30510
|
return _el$24;
|
|
30574
30511
|
}
|
|
@@ -30647,11 +30584,11 @@ function MedicationGuide(props) {
|
|
|
30647
30584
|
})();
|
|
30648
30585
|
}
|
|
30649
30586
|
delegateEvents(["click"]);
|
|
30650
|
-
var _tmpl$
|
|
30587
|
+
var _tmpl$505 = /* @__PURE__ */ template(`<span data-testid=channel-chip>`);
|
|
30651
30588
|
var _tmpl$2143 = /* @__PURE__ */ template(`<span class=channel-chip__category>`);
|
|
30652
30589
|
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
30590
|
var _tmpl$4103 = /* @__PURE__ */ template(`<div class=msg-list__state><div class=request-status__spinner>`);
|
|
30654
|
-
var _tmpl$
|
|
30591
|
+
var _tmpl$579 = /* @__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
30592
|
var _tmpl$671 = /* @__PURE__ */ template(`<div class=msg-list__scroll data-scrollable>`);
|
|
30656
30593
|
var _tmpl$761 = /* @__PURE__ */ template(`<span class=msg-list__pip>`);
|
|
30657
30594
|
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>`);
|
|
@@ -30892,7 +30829,7 @@ function MessagesPanel(props) {
|
|
|
30892
30829
|
}
|
|
30893
30830
|
}
|
|
30894
30831
|
const ChannelChip = (p) => (() => {
|
|
30895
|
-
var _el$ = _tmpl$
|
|
30832
|
+
var _el$ = _tmpl$505();
|
|
30896
30833
|
insert(_el$, () => p.source === "clinical" ? "Care team" : "Support", null);
|
|
30897
30834
|
insert(_el$, createComponent(Show, {
|
|
30898
30835
|
get when() {
|
|
@@ -30937,7 +30874,7 @@ function MessagesPanel(props) {
|
|
|
30937
30874
|
return memo(() => !!!thread().loadingConversations())() && channelConversations().length === 0;
|
|
30938
30875
|
},
|
|
30939
30876
|
get children() {
|
|
30940
|
-
var _el$0 = _tmpl$
|
|
30877
|
+
var _el$0 = _tmpl$579(), _el$1 = _el$0.firstChild, _el$10 = _el$1.nextSibling, _el$11 = _el$10.nextSibling;
|
|
30941
30878
|
insert(_el$11, createComponent(Show, {
|
|
30942
30879
|
get when() {
|
|
30943
30880
|
return channel() === "care";
|
|
@@ -31549,11 +31486,11 @@ function MessagesPanel(props) {
|
|
|
31549
31486
|
})();
|
|
31550
31487
|
}
|
|
31551
31488
|
delegateEvents(["click", "input", "keydown"]);
|
|
31552
|
-
var _tmpl$
|
|
31489
|
+
var _tmpl$506 = /* @__PURE__ */ template(`<ul class=history-list data-testid=history-list>`);
|
|
31553
31490
|
var _tmpl$2145 = /* @__PURE__ */ template(`<div class=portal-state data-testid=history-error><p>We couldn't load your submitted surveys. Please try again in a moment.`);
|
|
31554
31491
|
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
31492
|
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
|
-
var _tmpl$
|
|
31493
|
+
var _tmpl$580 = /* @__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
31494
|
var _tmpl$673 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your answers\u2026`);
|
|
31558
31495
|
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
31496
|
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.`);
|
|
@@ -31599,7 +31536,7 @@ function SurveyHistory() {
|
|
|
31599
31536
|
return _tmpl$3126();
|
|
31600
31537
|
},
|
|
31601
31538
|
get children() {
|
|
31602
|
-
var _el$ = _tmpl$
|
|
31539
|
+
var _el$ = _tmpl$506();
|
|
31603
31540
|
insert(_el$, createComponent(For, {
|
|
31604
31541
|
get each() {
|
|
31605
31542
|
return list();
|
|
@@ -31618,7 +31555,7 @@ function SurveyHistory() {
|
|
|
31618
31555
|
}
|
|
31619
31556
|
});
|
|
31620
31557
|
const DetailView = () => (() => {
|
|
31621
|
-
var _el$8 = _tmpl$
|
|
31558
|
+
var _el$8 = _tmpl$580(), _el$9 = _el$8.firstChild;
|
|
31622
31559
|
_el$9.$$click = () => setSelectedId(null);
|
|
31623
31560
|
insert(_el$8, createComponent(Show, {
|
|
31624
31561
|
get when() {
|
|
@@ -31696,11 +31633,11 @@ function SurveyHistory() {
|
|
|
31696
31633
|
delegateEvents(["click"]);
|
|
31697
31634
|
|
|
31698
31635
|
// src/pages/MemberPortal.tsx
|
|
31699
|
-
var _tmpl$
|
|
31636
|
+
var _tmpl$507 = /* @__PURE__ */ template(`<span class=portal-item__live aria-label="In progress">`);
|
|
31700
31637
|
var _tmpl$2146 = /* @__PURE__ */ template(`<span>`);
|
|
31701
31638
|
var _tmpl$3127 = /* @__PURE__ */ template(`<button type=button><i aria-hidden=true></i><span class=portal-item__label>`);
|
|
31702
31639
|
var _tmpl$4105 = /* @__PURE__ */ template(`<div class=rx-others data-testid=rx-others><span class=lab-label>Other orders`);
|
|
31703
|
-
var _tmpl$
|
|
31640
|
+
var _tmpl$581 = /* @__PURE__ */ template(`<div class=rx-stack>`);
|
|
31704
31641
|
var _tmpl$674 = /* @__PURE__ */ template(`<div class=portal-state><div class=request-status__spinner></div><p>Loading your portal\u2026`);
|
|
31705
31642
|
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
31643
|
var _tmpl$854 = /* @__PURE__ */ template(`<p class=portal-rail__hi>Hi, `);
|
|
@@ -31843,7 +31780,7 @@ function MemberPortal(props) {
|
|
|
31843
31780
|
return memo(() => item.key === "tracker")() && inMotion();
|
|
31844
31781
|
},
|
|
31845
31782
|
get children() {
|
|
31846
|
-
return _tmpl$
|
|
31783
|
+
return _tmpl$507();
|
|
31847
31784
|
}
|
|
31848
31785
|
}), null);
|
|
31849
31786
|
insert(_el$, createComponent(Show, {
|
|
@@ -31909,7 +31846,7 @@ function MemberPortal(props) {
|
|
|
31909
31846
|
});
|
|
31910
31847
|
},
|
|
31911
31848
|
children: (primary) => (() => {
|
|
31912
|
-
var _el$6 = _tmpl$
|
|
31849
|
+
var _el$6 = _tmpl$581();
|
|
31913
31850
|
insert(_el$6, createComponent(OrderTracker, {
|
|
31914
31851
|
get request() {
|
|
31915
31852
|
return data.toTrackerRequest(primary());
|
|
@@ -32162,11 +32099,11 @@ function MemberPortal(props) {
|
|
|
32162
32099
|
})();
|
|
32163
32100
|
}
|
|
32164
32101
|
delegateEvents(["click"]);
|
|
32165
|
-
var _tmpl$
|
|
32102
|
+
var _tmpl$508 = /* @__PURE__ */ template(`<div style="padding:1rem 1.25rem;border-radius:var(--app-affiliate-radius);background:var(--app-affiliate-warning-bg);color:var(--app-affiliate-warning-fg);border:1px solid var(--app-affiliate-border)">Your affiliate account is awaiting approval. Once an admin activates it, your referral link will start earning commissions.`);
|
|
32166
32103
|
var _tmpl$2147 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Overview`);
|
|
32167
32104
|
var _tmpl$3128 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Loading stats\u2026`);
|
|
32168
32105
|
var _tmpl$4106 = /* @__PURE__ */ template(`<div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));gap:1rem">`);
|
|
32169
|
-
var _tmpl$
|
|
32106
|
+
var _tmpl$584 = /* @__PURE__ */ template(`<div style="padding:1.25rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius)"><div style=font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--app-affiliate-fg-muted);margin-bottom:0.5rem></div><div style=font-family:var(--app-affiliate-font-display);font-size:1.75rem;color:var(--app-affiliate-fg)>`);
|
|
32170
32107
|
function formatMoney(cents) {
|
|
32171
32108
|
return `$${(cents / 100).toFixed(2)}`;
|
|
32172
32109
|
}
|
|
@@ -32205,7 +32142,7 @@ function AffiliateOverview() {
|
|
|
32205
32142
|
return isPending();
|
|
32206
32143
|
},
|
|
32207
32144
|
get children() {
|
|
32208
|
-
return _tmpl$
|
|
32145
|
+
return _tmpl$508();
|
|
32209
32146
|
}
|
|
32210
32147
|
}), null);
|
|
32211
32148
|
insert(_el$, createComponent(Show, {
|
|
@@ -32222,7 +32159,7 @@ function AffiliateOverview() {
|
|
|
32222
32159
|
return cards(s());
|
|
32223
32160
|
},
|
|
32224
32161
|
children: (card) => (() => {
|
|
32225
|
-
var _el$6 = _tmpl$
|
|
32162
|
+
var _el$6 = _tmpl$584(), _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling;
|
|
32226
32163
|
insert(_el$7, () => card.label);
|
|
32227
32164
|
insert(_el$8, () => card.value);
|
|
32228
32165
|
return _el$6;
|
|
@@ -32234,11 +32171,11 @@ function AffiliateOverview() {
|
|
|
32234
32171
|
return _el$;
|
|
32235
32172
|
})();
|
|
32236
32173
|
}
|
|
32237
|
-
var _tmpl$
|
|
32174
|
+
var _tmpl$509 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden"><table class=app-affiliate-table style=width:100%;border-collapse:collapse;font-size:0.875rem><thead><tr style=background:var(--app-affiliate-surface-light)><th>Date</th><th>Type</th><th>Order total</th><th>Commission</th><th>Status</th></tr></thead><tbody>`);
|
|
32238
32175
|
var _tmpl$2148 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Conversions`);
|
|
32239
32176
|
var _tmpl$3129 = /* @__PURE__ */ template(`<div style="padding:2rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);color:var(--app-affiliate-fg-muted);text-align:center">No conversions yet. Share your referral link to start earning.`);
|
|
32240
32177
|
var _tmpl$4107 = /* @__PURE__ */ template(`<span title="Override commission earned on a sub-affiliate's sale"style="margin-left:0.4rem;padding:0.1rem 0.45rem;border-radius:999px;font-size:0.65rem;font-weight:600;background:var(--app-affiliate-primary-soft);color:var(--app-affiliate-primary-soft-fg)">Override`);
|
|
32241
|
-
var _tmpl$
|
|
32178
|
+
var _tmpl$585 = /* @__PURE__ */ template(`<tr style="border-top:1px solid var(--app-affiliate-border)"><td data-label=Date></td><td data-label=Type></td><td data-label="Order total"></td><td data-label=Commission style=color:var(--app-affiliate-fg);font-weight:600></td><td data-label=Status><span style="padding:0.2rem 0.6rem;border-radius:999px;font-size:0.75rem;font-weight:600">`);
|
|
32242
32179
|
function formatMoney2(cents) {
|
|
32243
32180
|
return `$${(cents / 100).toFixed(2)}`;
|
|
32244
32181
|
}
|
|
@@ -32285,13 +32222,13 @@ function AffiliateConversions() {
|
|
|
32285
32222
|
return _tmpl$3129();
|
|
32286
32223
|
},
|
|
32287
32224
|
get children() {
|
|
32288
|
-
var _el$3 = _tmpl$
|
|
32225
|
+
var _el$3 = _tmpl$509(), _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling, _el$9 = _el$8.nextSibling, _el$0 = _el$9.nextSibling, _el$1 = _el$0.nextSibling, _el$10 = _el$5.nextSibling;
|
|
32289
32226
|
insert(_el$10, createComponent(For, {
|
|
32290
32227
|
get each() {
|
|
32291
32228
|
return conversions();
|
|
32292
32229
|
},
|
|
32293
32230
|
children: (c) => (() => {
|
|
32294
|
-
var _el$12 = _tmpl$
|
|
32231
|
+
var _el$12 = _tmpl$585(), _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling, _el$16 = _el$14.nextSibling, _el$17 = _el$16.nextSibling, _el$18 = _el$17.nextSibling, _el$19 = _el$18.firstChild;
|
|
32295
32232
|
insert(_el$13, () => formatDate4(c.createdAt));
|
|
32296
32233
|
insert(_el$14, () => c.paymentType, null);
|
|
32297
32234
|
insert(_el$14, createComponent(Show, {
|
|
@@ -32370,7 +32307,7 @@ function td() {
|
|
|
32370
32307
|
color: "var(--app-affiliate-fg)"
|
|
32371
32308
|
};
|
|
32372
32309
|
}
|
|
32373
|
-
var _tmpl$
|
|
32310
|
+
var _tmpl$586 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden"><table class=app-affiliate-table style=width:100%;border-collapse:collapse;font-size:0.875rem><thead><tr style=background:var(--app-affiliate-surface-light)><th>Code</th><th>Name</th><th>Status</th><th>Joined</th></tr></thead><tbody>`);
|
|
32374
32311
|
var _tmpl$2149 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Downline</h1><p style=margin:0;color:var(--app-affiliate-fg-muted);font-size:0.875rem>Affiliates you've referred. You earn an override commission on every qualifying sale they make \u2014 those show up as \u201COverride\u201D rows on your Conversions.`);
|
|
32375
32312
|
var _tmpl$3130 = /* @__PURE__ */ template(`<div style="padding:2rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);color:var(--app-affiliate-fg-muted);text-align:center">No sub-affiliates yet.`);
|
|
32376
32313
|
var _tmpl$4108 = /* @__PURE__ */ template(`<tr style="border-top:1px solid var(--app-affiliate-border)"><td data-label=Code style=font-family:var(--app-affiliate-font-mono)></td><td data-label=Name></td><td data-label=Status><span style="padding:0.2rem 0.6rem;border-radius:999px;font-size:0.75rem;font-weight:600"></span></td><td data-label=Joined>`);
|
|
@@ -32415,7 +32352,7 @@ function AffiliateDownline() {
|
|
|
32415
32352
|
return _tmpl$3130();
|
|
32416
32353
|
},
|
|
32417
32354
|
get children() {
|
|
32418
|
-
var _el$4 = _tmpl$
|
|
32355
|
+
var _el$4 = _tmpl$586(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$9.nextSibling, _el$1 = _el$0.nextSibling, _el$10 = _el$6.nextSibling;
|
|
32419
32356
|
insert(_el$10, createComponent(For, {
|
|
32420
32357
|
get each() {
|
|
32421
32358
|
return downline();
|
|
@@ -32484,7 +32421,7 @@ function td2() {
|
|
|
32484
32421
|
color: "var(--app-affiliate-fg)"
|
|
32485
32422
|
};
|
|
32486
32423
|
}
|
|
32487
|
-
var _tmpl$
|
|
32424
|
+
var _tmpl$587 = /* @__PURE__ */ template(`<div style="padding:1.5rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);display:flex;flex-direction:column;gap:0.75rem"><div style=font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--app-affiliate-fg-muted)>Share this link</div><div style=display:flex;gap:0.5rem;align-items:stretch;flex-wrap:wrap><code style="flex:1;min-width:16rem;padding:0.75rem 1rem;background:var(--app-affiliate-surface-light);border-radius:var(--app-affiliate-radius-sm);font-family:var(--app-affiliate-font-mono);color:var(--app-affiliate-fg);word-break:break-all"></code><button type=button style="padding:0.75rem 1.25rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600;cursor:pointer"></button></div><div style=font-size:0.875rem;color:var(--app-affiliate-fg-muted)>Anyone who visits this URL has a tracking cookie set for the duration of your program. If they sign up and subscribe within the cookie window, you earn commission on the conversion.`);
|
|
32488
32425
|
var _tmpl$2150 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Referral link`);
|
|
32489
32426
|
var _tmpl$3131 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Your referral link will appear here once your account is approved.`);
|
|
32490
32427
|
function AffiliateReferralLink() {
|
|
@@ -32520,7 +32457,7 @@ function AffiliateReferralLink() {
|
|
|
32520
32457
|
return _tmpl$3131();
|
|
32521
32458
|
},
|
|
32522
32459
|
get children() {
|
|
32523
|
-
var _el$3 = _tmpl$
|
|
32460
|
+
var _el$3 = _tmpl$587(), _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling; _el$5.nextSibling;
|
|
32524
32461
|
insert(_el$6, homepageLink);
|
|
32525
32462
|
_el$7.$$click = copy;
|
|
32526
32463
|
insert(_el$7, () => copied() ? "Copied" : "Copy");
|
|
@@ -32531,7 +32468,7 @@ function AffiliateReferralLink() {
|
|
|
32531
32468
|
})();
|
|
32532
32469
|
}
|
|
32533
32470
|
delegateEvents(["click"]);
|
|
32534
|
-
var _tmpl$
|
|
32471
|
+
var _tmpl$588 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:1.5rem><h1 style=font-family:var(--app-affiliate-font-display);font-size:1.5rem;margin:0;color:var(--app-affiliate-fg)>Account</h1><div><button type=button style="padding:0.75rem 1.25rem;background:transparent;color:var(--app-affiliate-fg);border:1px solid var(--app-affiliate-border-strong);border-radius:var(--app-affiliate-radius-sm);cursor:pointer;font-weight:500">Log out</button></div><div style=font-size:0.875rem;color:var(--app-affiliate-fg-muted)>To update your profile or payment details, contact your program administrator.`);
|
|
32535
32472
|
var _tmpl$2151 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Loading\u2026`);
|
|
32536
32473
|
var _tmpl$3132 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden">`);
|
|
32537
32474
|
var _tmpl$4109 = /* @__PURE__ */ template(`<div style="display:flex;justify-content:space-between;align-items:center;padding:0.875rem 1.25rem;border-bottom:1px solid var(--app-affiliate-border)"><div style=font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--app-affiliate-fg-muted)></div><div style=color:var(--app-affiliate-fg)>`);
|
|
@@ -32569,7 +32506,7 @@ function AffiliateSettings() {
|
|
|
32569
32506
|
value: a.paymentEmail ?? "\u2014"
|
|
32570
32507
|
}];
|
|
32571
32508
|
return (() => {
|
|
32572
|
-
var _el$ = _tmpl$
|
|
32509
|
+
var _el$ = _tmpl$588(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild; _el$3.nextSibling;
|
|
32573
32510
|
insert(_el$, createComponent(Show, {
|
|
32574
32511
|
get when() {
|
|
32575
32512
|
return affiliate();
|
|
@@ -32600,7 +32537,7 @@ function AffiliateSettings() {
|
|
|
32600
32537
|
delegateEvents(["click"]);
|
|
32601
32538
|
|
|
32602
32539
|
// src/pages/AffiliatePortal.tsx
|
|
32603
|
-
var _tmpl$
|
|
32540
|
+
var _tmpl$589 = /* @__PURE__ */ template(`<div class="app-affiliate-root app-affiliate-shell"style=position:sticky;background:var(--app-affiliate-bg);color:var(--app-affiliate-fg)><div class=app-affiliate-shell-header><button type=button class=app-affiliate-shell-menu-trigger aria-label="Open portal menu"><svg width=22 height=22 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round aria-hidden=true><line x1=3 y1=6 x2=21 y2=6></line><line x1=3 y1=12 x2=21 y2=12></line><line x1=3 y1=18 x2=21 y2=18></line></svg></button><span class=app-affiliate-shell-header-title></span></div><div class=app-affiliate-backdrop aria-hidden=true></div><aside class=app-affiliate-sidebar><div style=padding:1.25rem><h2 style="font-size:0.7rem;font-weight:500;color:var(--app-affiliate-fg-muted);text-transform:uppercase;letter-spacing:0.08em;margin:0 0 1rem">Affiliate Portal</h2><nav style=display:flex;flex-direction:column;gap:0.25rem></nav></div></aside><div class=app-affiliate-content>`);
|
|
32604
32541
|
var _tmpl$2152 = /* @__PURE__ */ template(`<span style=font-size:1rem;opacity:0.7;flex-shrink:0>`);
|
|
32605
32542
|
var _tmpl$3133 = /* @__PURE__ */ template(`<button type=button style="display:flex;align-items:center;gap:0.75rem;padding:0.625rem 0.75rem;border-radius:var(--app-affiliate-radius-sm);font-size:0.875rem;font-weight:500;text-align:left;border:none;cursor:pointer">`);
|
|
32606
32543
|
var _tmpl$4115 = /* @__PURE__ */ template(`<div class=app-affiliate-root style=display:flex;align-items:center;justify-content:center;position:sticky;background:var(--app-affiliate-bg)><div role=status aria-label="Loading affiliate portal"style="width:1.75rem;height:1.75rem;border-radius:9999px;border:2px solid var(--app-affiliate-border);border-top-color:var(--app-affiliate-primary);animation:app-affiliate-gate-spin 0.8s linear infinite"></div><style>@keyframes app-affiliate-gate-spin { to { transform: rotate(360deg); } }`);
|
|
@@ -32648,7 +32585,7 @@ function AffiliatePortal(props) {
|
|
|
32648
32585
|
});
|
|
32649
32586
|
},
|
|
32650
32587
|
get children() {
|
|
32651
|
-
var _el$ = _tmpl$
|
|
32588
|
+
var _el$ = _tmpl$589(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling, _el$6 = _el$5.nextSibling, _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$6.nextSibling;
|
|
32652
32589
|
_el$3.$$click = () => setDrawerOpen(true);
|
|
32653
32590
|
insert(_el$4, () => TAB_LABELS2[currentTab()]);
|
|
32654
32591
|
_el$5.$$click = () => setDrawerOpen(false);
|
|
@@ -32760,11 +32697,11 @@ function AffiliateGateSpinner(props) {
|
|
|
32760
32697
|
})();
|
|
32761
32698
|
}
|
|
32762
32699
|
delegateEvents(["click"]);
|
|
32763
|
-
var _tmpl$
|
|
32700
|
+
var _tmpl$590 = /* @__PURE__ */ template(`<div style=position:relative><input><button type=button style="position:absolute;top:0;right:0;height:100%;display:flex;align-items:center;padding:0 0.75rem;background:transparent;border:none;color:var(--app-affiliate-fg-muted);cursor:pointer;font-size:0.75rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em">`);
|
|
32764
32701
|
function AffiliatePasswordInput(props) {
|
|
32765
32702
|
const [visible, setVisible] = createSignal(false);
|
|
32766
32703
|
return (() => {
|
|
32767
|
-
var _el$ = _tmpl$
|
|
32704
|
+
var _el$ = _tmpl$590(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
32768
32705
|
_el$2.$$input = (e) => props.onInput(e.currentTarget.value);
|
|
32769
32706
|
_el$3.$$click = () => setVisible((v) => !v);
|
|
32770
32707
|
insert(_el$3, () => visible() ? "Hide" : "Show");
|
|
@@ -32805,11 +32742,11 @@ function inputStyle() {
|
|
|
32805
32742
|
delegateEvents(["input", "click"]);
|
|
32806
32743
|
|
|
32807
32744
|
// src/pages/AffiliateRegister.tsx
|
|
32808
|
-
var _tmpl$
|
|
32745
|
+
var _tmpl$591 = /* @__PURE__ */ template(`<input type=text required autocomplete=given-name>`);
|
|
32809
32746
|
var _tmpl$2153 = /* @__PURE__ */ template(`<input type=text required autocomplete=family-name>`);
|
|
32810
32747
|
var _tmpl$3134 = /* @__PURE__ */ template(`<input type=email required autocomplete=email>`);
|
|
32811
32748
|
var _tmpl$4116 = /* @__PURE__ */ template(`<input type=text required minlength=4>`);
|
|
32812
|
-
var _tmpl$
|
|
32749
|
+
var _tmpl$594 = /* @__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
32750
|
var _tmpl$675 = /* @__PURE__ */ template(`<button type=button>Already have an account? Log in`);
|
|
32814
32751
|
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
32752
|
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.`);
|
|
@@ -32860,7 +32797,7 @@ function AffiliateRegister(props) {
|
|
|
32860
32797
|
insert(_el$6, createComponent(Row3, {
|
|
32861
32798
|
label: "First name",
|
|
32862
32799
|
get children() {
|
|
32863
|
-
var _el$7 = _tmpl$
|
|
32800
|
+
var _el$7 = _tmpl$591();
|
|
32864
32801
|
_el$7.$$input = (e) => setFirstName(e.currentTarget.value);
|
|
32865
32802
|
effect((_$p) => style(_el$7, inputStyle2(), _$p));
|
|
32866
32803
|
effect(() => _el$7.value = firstName());
|
|
@@ -32921,7 +32858,7 @@ function AffiliateRegister(props) {
|
|
|
32921
32858
|
return error();
|
|
32922
32859
|
},
|
|
32923
32860
|
get children() {
|
|
32924
|
-
var _el$17 = _tmpl$
|
|
32861
|
+
var _el$17 = _tmpl$594();
|
|
32925
32862
|
insert(_el$17, error);
|
|
32926
32863
|
return _el$17;
|
|
32927
32864
|
}
|
|
@@ -32999,7 +32936,7 @@ function linkStyle() {
|
|
|
32999
32936
|
};
|
|
33000
32937
|
}
|
|
33001
32938
|
delegateEvents(["input", "click"]);
|
|
33002
|
-
var _tmpl$
|
|
32939
|
+
var _tmpl$595 = /* @__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">`);
|
|
33003
32940
|
var _tmpl$2154 = /* @__PURE__ */ template(`<button type=button style=background:transparent;border:none;color:var(--app-affiliate-fg-muted);cursor:pointer;text-decoration:underline;font-size:0.875rem;padding:0;text-align:center>Forgot your password?`);
|
|
33004
32941
|
var _tmpl$3135 = /* @__PURE__ */ template(`<button type=button style=background:transparent;border:none;color:var(--app-affiliate-primary-soft-fg);cursor:pointer;text-decoration:underline;font-size:0.875rem;padding:0;text-align:center>New affiliate? Apply`);
|
|
33005
32942
|
var _tmpl$4117 = /* @__PURE__ */ template(`<div class=app-affiliate-root style="background:var(--app-affiliate-bg);color:var(--app-affiliate-fg);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem"><div style="width:100%;max-width:24rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);padding:2rem;display:flex;flex-direction:column;gap:1.25rem"><h1 style=font-family:var(--app-affiliate-font-display);margin:0;font-size:1.5rem>Affiliate login</h1><form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>Email</span><input type=email required autocomplete=email></label><label style=display:flex;flex-direction:column;gap:0.35rem><span>Password</span></label><button type=submit style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600">`);
|
|
@@ -33038,7 +32975,7 @@ function AffiliateLogin(props) {
|
|
|
33038
32975
|
return error();
|
|
33039
32976
|
},
|
|
33040
32977
|
get children() {
|
|
33041
|
-
var _el$0 = _tmpl$
|
|
32978
|
+
var _el$0 = _tmpl$595();
|
|
33042
32979
|
insert(_el$0, error);
|
|
33043
32980
|
return _el$0;
|
|
33044
32981
|
}
|
|
@@ -33107,11 +33044,11 @@ function inputStyle3() {
|
|
|
33107
33044
|
};
|
|
33108
33045
|
}
|
|
33109
33046
|
delegateEvents(["input", "click"]);
|
|
33110
|
-
var _tmpl$
|
|
33047
|
+
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">`);
|
|
33111
33048
|
var _tmpl$2155 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>Email</span><input type=email required></label><button type=submit style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600">`);
|
|
33112
33049
|
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
33050
|
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
|
-
var _tmpl$
|
|
33051
|
+
var _tmpl$597 = /* @__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
33052
|
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`);
|
|
33116
33053
|
function ForgotPasswordPage(props) {
|
|
33117
33054
|
const [email, setEmail] = createSignal("");
|
|
@@ -33145,7 +33082,7 @@ function ForgotPasswordPage(props) {
|
|
|
33145
33082
|
var _el$0 = _tmpl$4118();
|
|
33146
33083
|
insert(_el$0, message);
|
|
33147
33084
|
return _el$0;
|
|
33148
|
-
})(), _tmpl$
|
|
33085
|
+
})(), _tmpl$597(), createComponent(Show, {
|
|
33149
33086
|
get when() {
|
|
33150
33087
|
return props.onDone;
|
|
33151
33088
|
},
|
|
@@ -33165,7 +33102,7 @@ function ForgotPasswordPage(props) {
|
|
|
33165
33102
|
return error();
|
|
33166
33103
|
},
|
|
33167
33104
|
get children() {
|
|
33168
|
-
var _el$8 = _tmpl$
|
|
33105
|
+
var _el$8 = _tmpl$596();
|
|
33169
33106
|
insert(_el$8, error);
|
|
33170
33107
|
return _el$8;
|
|
33171
33108
|
}
|
|
@@ -33215,7 +33152,7 @@ function inputStyle4() {
|
|
|
33215
33152
|
};
|
|
33216
33153
|
}
|
|
33217
33154
|
delegateEvents(["input", "click"]);
|
|
33218
|
-
var _tmpl$
|
|
33155
|
+
var _tmpl$598 = /* @__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">`);
|
|
33219
33156
|
var _tmpl$2156 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>New password</span><input type=password required autocomplete=new-password></label><label style=display:flex;flex-direction:column;gap:0.35rem><span>Confirm password</span><input type=password required autocomplete=new-password></label><button type=submit style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600">`);
|
|
33220
33157
|
var _tmpl$3137 = /* @__PURE__ */ template(`<div class=app-affiliate-root style="background:var(--app-affiliate-bg);color:var(--app-affiliate-fg);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem"><div style="width:100%;max-width:24rem;background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);padding:2rem;display:flex;flex-direction:column;gap:1.25rem"><h1 style=font-family:var(--app-affiliate-font-display);margin:0;font-size:1.5rem>Choose a new password`);
|
|
33221
33158
|
var _tmpl$4119 = /* @__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">`);
|
|
@@ -33280,7 +33217,7 @@ function ResetPasswordPage(props) {
|
|
|
33280
33217
|
return error();
|
|
33281
33218
|
},
|
|
33282
33219
|
get children() {
|
|
33283
|
-
var _el$1 = _tmpl$
|
|
33220
|
+
var _el$1 = _tmpl$598();
|
|
33284
33221
|
insert(_el$1, error);
|
|
33285
33222
|
return _el$1;
|
|
33286
33223
|
}
|
|
@@ -33335,7 +33272,7 @@ function inputStyle5() {
|
|
|
33335
33272
|
};
|
|
33336
33273
|
}
|
|
33337
33274
|
delegateEvents(["input"]);
|
|
33338
|
-
var _tmpl$
|
|
33275
|
+
var _tmpl$599 = /* @__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">`);
|
|
33339
33276
|
var _tmpl$2157 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>Choose a password</span><input type=password required autocomplete=new-password></label><label style=display:flex;flex-direction:column;gap:0.35rem><span>Confirm password</span><input type=password required autocomplete=new-password></label><button type=submit style="padding:0.75rem 1rem;background:var(--app-affiliate-primary);color:var(--app-affiliate-primary-fg);border:none;border-radius:var(--app-affiliate-radius-sm);font-weight:600">`);
|
|
33340
33277
|
var _tmpl$3138 = /* @__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>Accept your admin invite`);
|
|
33341
33278
|
var _tmpl$4120 = /* @__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">`);
|
|
@@ -33405,7 +33342,7 @@ function AcceptAdminInvitePage(props) {
|
|
|
33405
33342
|
return error();
|
|
33406
33343
|
},
|
|
33407
33344
|
get children() {
|
|
33408
|
-
var _el$1 = _tmpl$
|
|
33345
|
+
var _el$1 = _tmpl$599();
|
|
33409
33346
|
insert(_el$1, error);
|
|
33410
33347
|
return _el$1;
|
|
33411
33348
|
}
|
|
@@ -33460,7 +33397,7 @@ function inputStyle6() {
|
|
|
33460
33397
|
};
|
|
33461
33398
|
}
|
|
33462
33399
|
delegateEvents(["input"]);
|
|
33463
|
-
var _tmpl$
|
|
33400
|
+
var _tmpl$600 = /* @__PURE__ */ template(`<div>`);
|
|
33464
33401
|
var _tmpl$2158 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>Email</span><input type=email required autocomplete=email></label><button type=submit>`);
|
|
33465
33402
|
var _tmpl$3139 = /* @__PURE__ */ template(`<button type=button>Back to login`);
|
|
33466
33403
|
var _tmpl$4121 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Reset your password`);
|
|
@@ -33508,7 +33445,7 @@ function AffiliateForgotPassword(props) {
|
|
|
33508
33445
|
return error();
|
|
33509
33446
|
},
|
|
33510
33447
|
get children() {
|
|
33511
|
-
var _el$8 = _tmpl$
|
|
33448
|
+
var _el$8 = _tmpl$600();
|
|
33512
33449
|
insert(_el$8, error);
|
|
33513
33450
|
effect((_$p) => style(_el$8, errorStyle(), _$p));
|
|
33514
33451
|
return _el$8;
|
|
@@ -33643,7 +33580,7 @@ function linkStyle2() {
|
|
|
33643
33580
|
};
|
|
33644
33581
|
}
|
|
33645
33582
|
delegateEvents(["input", "click"]);
|
|
33646
|
-
var _tmpl$
|
|
33583
|
+
var _tmpl$601 = /* @__PURE__ */ template(`<div>`);
|
|
33647
33584
|
var _tmpl$2159 = /* @__PURE__ */ template(`<form style=display:flex;flex-direction:column;gap:0.875rem><label style=display:flex;flex-direction:column;gap:0.35rem><span>New password</span></label><label style=display:flex;flex-direction:column;gap:0.35rem><span>Confirm new password</span></label><button type=submit>`);
|
|
33648
33585
|
var _tmpl$3140 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Choose a new password`);
|
|
33649
33586
|
var _tmpl$4122 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.9rem>Your password has been reset. You can now log in with your new password.`);
|
|
@@ -33724,7 +33661,7 @@ function AffiliateResetPassword(props) {
|
|
|
33724
33661
|
return error();
|
|
33725
33662
|
},
|
|
33726
33663
|
get children() {
|
|
33727
|
-
var _el$9 = _tmpl$
|
|
33664
|
+
var _el$9 = _tmpl$601();
|
|
33728
33665
|
insert(_el$9, error);
|
|
33729
33666
|
effect((_$p) => style(_el$9, errorStyle2(), _$p));
|
|
33730
33667
|
return _el$9;
|
|
@@ -33823,5 +33760,5 @@ function primaryButtonStyle2(submitting) {
|
|
|
33823
33760
|
}
|
|
33824
33761
|
|
|
33825
33762
|
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=
|
|
33763
|
+
//# sourceMappingURL=W4HVE5RI.js.map
|
|
33764
|
+
//# sourceMappingURL=W4HVE5RI.js.map
|