@apextelemed/partner-core 0.5.2 → 0.5.3
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/README.md +65 -14
- 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/{DQE4K55D.jsx → 2MRJESYW.jsx} +15 -1
- package/dist/chunk/{XHOD3HUQ.js → 3MRCEVWC.js} +3 -3
- package/dist/chunk/{XHOD3HUQ.js.map → 3MRCEVWC.js.map} +1 -1
- package/dist/chunk/{ZJENZPAM.jsx → 4A2CPTUM.jsx} +5 -5
- package/dist/chunk/{5D7SGF46.js → 7AJQ5SVA.js} +16 -2
- package/dist/chunk/7AJQ5SVA.js.map +1 -0
- package/dist/chunk/{ZD2MMEXL.js → AH2VJK7Q.js} +6 -6
- package/dist/chunk/{ZD2MMEXL.js.map → AH2VJK7Q.js.map} +1 -1
- package/dist/chunk/{2UWULNSX.jsx → BVHNZLDK.jsx} +2 -2
- package/dist/chunk/{GNG53L37.jsx → FNOEL4FK.jsx} +2 -2
- package/dist/chunk/{I322BQIU.jsx → IWWUVNBB.jsx} +282 -42
- package/dist/chunk/{7ZESUC4Q.js → LVGOEJHQ.js} +3 -3
- package/dist/chunk/{7ZESUC4Q.js.map → LVGOEJHQ.js.map} +1 -1
- package/dist/chunk/{JTG4H4I5.jsx → OLLSJX7B.jsx} +89 -11
- package/dist/chunk/{FUOUTRAO.jsx → OWTKSSYT.jsx} +2 -2
- package/dist/chunk/{GPVYUP3H.js → QCYSYBQ7.js} +89 -13
- package/dist/chunk/QCYSYBQ7.js.map +1 -0
- package/dist/chunk/{C7TELVJF.js → RFDMPQG4.js} +3 -3
- package/dist/chunk/{C7TELVJF.js.map → RFDMPQG4.js.map} +1 -1
- package/dist/chunk/{KO2JPCIP.js → XKCIXSN4.js} +425 -228
- package/dist/chunk/XKCIXSN4.js.map +1 -0
- package/dist/{client-BD9_HCZY.d.ts → client-CY8nbizi.d.ts} +27 -1
- package/dist/flows/index.d.ts +54 -6
- 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 +6 -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/dist/theme/member-portal.css +130 -0
- package/package.json +1 -1
- package/dist/chunk/5D7SGF46.js.map +0 -1
- package/dist/chunk/GPVYUP3H.js.map +0 -1
- package/dist/chunk/KO2JPCIP.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { disqualificationReasonText, qualifiedDrugIds } from './LZWA44KD.js';
|
|
2
|
-
import { useSurveyFlow, resolveSurveyV2DrugIntent, emailGateAnswered, redeemResumeLink, useSurveyV2Flow, availableStateOptions, US_STATE_OPTIONS, useCheckoutFlow, useCartCheckoutFlow, useSignupFlow, useRegisterFlow, useSubscribeFlow, useDashboardData, useUpdatePaymentMethodFlow, useMemberPortalData, useMessagesThread, captureFunnelEmail, markEmailGateAnswered, useAffiliateStats, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, stateAvailabilityNote, hasStateRestrictions, uploadPrescriptionPhoto, deriveAttention, deriveJourney, buildTimeline, lifecycleReason, accountSource, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, formatConversationTime, buildTrackerView, ACCOUNT_SOURCE_LABEL, fmtDay, formatCalendarDate, formatMessageTime, formatEventDate, formatStageDate, LIFECYCLE_TONE, buildTrackingUrl, isImageAttachment, buildRefillView, toTrackerRequest } from './
|
|
3
|
-
import { fetchFunnelConfig } from './
|
|
2
|
+
import { useSurveyFlow, resolveSurveyV2DrugIntent, emailGateAnswered, redeemResumeLink, useSurveyV2Flow, availableStateOptions, US_STATE_OPTIONS, useCheckoutFlow, useCartCheckoutFlow, useSignupFlow, useRegisterFlow, useSubscribeFlow, useDashboardData, useUpdatePaymentMethodFlow, useMemberPortalData, useMessagesThread, captureFunnelEmail, markEmailGateAnswered, useAffiliateStats, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, stateAvailabilityNote, hasStateRestrictions, uploadPrescriptionPhoto, deriveAttention, deriveJourney, buildTimeline, lifecycleReason, accountSource, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, formatConversationTime, SUPPORT_CATEGORIES, buildTrackerView, ACCOUNT_SOURCE_LABEL, fmtDay, formatCalendarDate, categoryLabel, formatMessageTime, formatEventDate, formatStageDate, LIFECYCLE_TONE, buildTrackingUrl, isImageAttachment, buildRefillView, toTrackerRequest } from './QCYSYBQ7.js';
|
|
3
|
+
import { fetchFunnelConfig } from './LVGOEJHQ.js';
|
|
4
4
|
import { usePrimitives } from './67KHO66G.js';
|
|
5
|
-
import { auth_default, cart_default, affiliateAuth_default } from './
|
|
6
|
-
import { usersApi, adminApi, membersApi, affiliatePortalApi, authApi, adminAffiliatesApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, apiFetch, apexApi, subscriptionsApi, ApiError } from './
|
|
5
|
+
import { auth_default, cart_default, affiliateAuth_default } from './RFDMPQG4.js';
|
|
6
|
+
import { usersApi, adminApi, membersApi, affiliatePortalApi, authApi, adminAffiliatesApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, apiFetch, apexApi, subscriptionsApi, ApiError } from './7AJQ5SVA.js';
|
|
7
7
|
import { delegateEvents, createComponent, insert, memo, effect, setStyleProperty, mergeProps, use, setAttribute, addEventListener, style, className, Dynamic, template } from 'solid-js/web';
|
|
8
8
|
import { createContext, createEffect, on, Show, For, createResource, createSignal, createMemo, Index, ErrorBoundary, Switch, Match, onMount, onCleanup, useContext } from 'solid-js';
|
|
9
9
|
import { isQuestionVisible } from '@apextelemed/survey-core';
|
|
@@ -17201,34 +17201,40 @@ function MedicationGuide(props) {
|
|
|
17201
17201
|
})();
|
|
17202
17202
|
}
|
|
17203
17203
|
delegateEvents(["click"]);
|
|
17204
|
-
var _tmpl$305 = /* @__PURE__ */ template(`<
|
|
17205
|
-
var _tmpl$2103 = /* @__PURE__ */ template(`<
|
|
17206
|
-
var _tmpl$364 = /* @__PURE__ */ template(`<div class=
|
|
17207
|
-
var _tmpl$448 = /* @__PURE__ */ template(`<div class=msg-
|
|
17208
|
-
var _tmpl$543 = /* @__PURE__ */ template(`<
|
|
17209
|
-
var _tmpl$641 = /* @__PURE__ */ template(`<
|
|
17210
|
-
var _tmpl$736 = /* @__PURE__ */ template(`<
|
|
17211
|
-
var _tmpl$832 = /* @__PURE__ */ template(`<button type=button class=msg-
|
|
17212
|
-
var _tmpl$929 = /* @__PURE__ */ template(`<
|
|
17213
|
-
var _tmpl$025 = /* @__PURE__ */ template(`<
|
|
17214
|
-
var _tmpl$1105 = /* @__PURE__ */ template(`<
|
|
17215
|
-
var _tmpl$1017 = /* @__PURE__ */ template(`<
|
|
17216
|
-
var _tmpl$1119 = /* @__PURE__ */ template(`<div
|
|
17217
|
-
var _tmpl$1216 = /* @__PURE__ */ template(`<
|
|
17218
|
-
var _tmpl$1315 = /* @__PURE__ */ template(`<p class=msg-
|
|
17219
|
-
var _tmpl$1415 = /* @__PURE__ */ template(`<
|
|
17220
|
-
var _tmpl$1515 = /* @__PURE__ */ template(`<p class=msg-
|
|
17221
|
-
var _tmpl$1615 = /* @__PURE__ */ template(`<
|
|
17222
|
-
var _tmpl$1715 = /* @__PURE__ */ template(`<
|
|
17223
|
-
var _tmpl$1812 = /* @__PURE__ */ template(`<div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label=
|
|
17224
|
-
var _tmpl$1912 = /* @__PURE__ */ template(`<
|
|
17225
|
-
var _tmpl$2011 = /* @__PURE__ */ template(`<span class=msg-
|
|
17226
|
-
var _tmpl$2116 = /* @__PURE__ */ template(`<div class=msg-
|
|
17227
|
-
var _tmpl$2213 = /* @__PURE__ */ template(`<
|
|
17228
|
-
var _tmpl$2312 = /* @__PURE__ */ template(`<
|
|
17229
|
-
var _tmpl$2412 = /* @__PURE__ */ template(`<
|
|
17230
|
-
var _tmpl$2512 = /* @__PURE__ */ template(`<div class=msg-
|
|
17231
|
-
var _tmpl$2610 = /* @__PURE__ */ template(`<
|
|
17204
|
+
var _tmpl$305 = /* @__PURE__ */ template(`<span data-testid=channel-chip>`);
|
|
17205
|
+
var _tmpl$2103 = /* @__PURE__ */ template(`<span class=channel-chip__category>`);
|
|
17206
|
+
var _tmpl$364 = /* @__PURE__ */ template(`<div class=msg-list__header><h2 class=msg-list__title>Messages</h2><button type=button class=msg-list__new data-testid=messages-new-support><i class="ph-thin ph-plus"aria-hidden=true></i>New message`);
|
|
17207
|
+
var _tmpl$448 = /* @__PURE__ */ template(`<div class=msg-list__state><div class=request-status__spinner>`);
|
|
17208
|
+
var _tmpl$543 = /* @__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>Your care team reviews and responds to anything about your treatment, medication or side effects. For questions about your account, an order, billing or the site, message support instead.`);
|
|
17209
|
+
var _tmpl$641 = /* @__PURE__ */ template(`<div class=msg-list__scroll data-scrollable>`);
|
|
17210
|
+
var _tmpl$736 = /* @__PURE__ */ template(`<span class=msg-list__pip>`);
|
|
17211
|
+
var _tmpl$832 = /* @__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>`);
|
|
17212
|
+
var _tmpl$929 = /* @__PURE__ */ template(`<button type=button class=msg-attachment__image-link><img class=msg-attachment__image loading=lazy>`, true, false, false);
|
|
17213
|
+
var _tmpl$025 = /* @__PURE__ */ template(`<button type=button class=msg-attachment__file><span class=msg-attachment__file-icon aria-hidden=true><i class="ph-thin ph-paperclip"></i></span><span class=msg-attachment__file-info><span class=msg-attachment__file-name></span><span class=msg-attachment__file-size>`);
|
|
17214
|
+
var _tmpl$1105 = /* @__PURE__ */ template(`<span class=msg-attachment__fallback>`);
|
|
17215
|
+
var _tmpl$1017 = /* @__PURE__ */ template(`<p class=msg-thread__sender>`);
|
|
17216
|
+
var _tmpl$1119 = /* @__PURE__ */ template(`<div class=msg-thread__text>`);
|
|
17217
|
+
var _tmpl$1216 = /* @__PURE__ */ template(`<div class=msg-attachment>`);
|
|
17218
|
+
var _tmpl$1315 = /* @__PURE__ */ template(`<div><div><p class=msg-thread__meta>`);
|
|
17219
|
+
var _tmpl$1415 = /* @__PURE__ */ template(`<p class=msg-thread__system data-testid=system-message>`);
|
|
17220
|
+
var _tmpl$1515 = /* @__PURE__ */ template(`<p class=msg-thread__text>`);
|
|
17221
|
+
var _tmpl$1615 = /* @__PURE__ */ template(`<button type=button class="msg-compose__staged-remove msg-compose__staged-remove--inline">Remove file`);
|
|
17222
|
+
var _tmpl$1715 = /* @__PURE__ */ template(`<p class=msg-compose__error role=alert>`);
|
|
17223
|
+
var _tmpl$1812 = /* @__PURE__ */ template(`<form class="msg-thread msg-thread--compose"data-testid=support-compose><div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label=Back data-testid=support-compose-back><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><div><h3 class=msg-thread__name>Message support</h3><p class=msg-thread__role>We usually reply within one business day</p></div></div><div class=msg-compose__new><label class=msg-compose__label id=support-category-label>What's this about? <span class=msg-compose__label-optional>(optional)</span></label><div class=msg-compose__categories role=group aria-labelledby=support-category-label></div><label class=msg-compose__label for=support-subject>Subject</label><input id=support-subject class=msg-compose__subject type=text maxlength=500 required placeholder="e.g. Question about my order"><label class=msg-compose__label for=support-body>How can we help?</label><textarea id=support-body class=msg-compose__body rows=6 maxlength=5000 required placeholder="Tell us what's going on\u2026"></textarea><label class="msg-compose__attach msg-compose__attach--block"title="Attach a file"><i class="ph-thin ph-paperclip"aria-hidden=true></i><span class=msg-compose__attach-label></span><input class=msg-compose__file-input type=file data-testid=support-compose-attach></label><button type=submit class=msg-compose__send data-testid=support-compose-send>`);
|
|
17224
|
+
var _tmpl$1912 = /* @__PURE__ */ template(`<button type=button>`);
|
|
17225
|
+
var _tmpl$2011 = /* @__PURE__ */ template(`<form class="msg-thread msg-thread--compose"data-testid=care-compose><div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label=Back data-testid=care-compose-back><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><div><h3 class=msg-thread__name>Message your care team</h3><p class=msg-thread__role>Your prescriber or their team will reply</p></div></div><div class=msg-compose__new><label class=msg-compose__label for=care-body>Message</label><textarea id=care-body class=msg-compose__body rows=6 maxlength=5000 required placeholder="Tell your care team what's going on\u2026"></textarea><label class="msg-compose__attach msg-compose__attach--block"title="Attach a file"><i class="ph-thin ph-paperclip"aria-hidden=true></i><span class=msg-compose__attach-label></span><input class=msg-compose__file-input type=file data-testid=care-compose-attach></label><button type=submit class=msg-compose__send data-testid=care-compose-send>`);
|
|
17226
|
+
var _tmpl$2116 = /* @__PURE__ */ template(`<div class="msg-thread msg-choice"data-testid=messages-channel-choice><div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label="Back to conversations"><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><div><h3 class=msg-thread__name>New message</h3><p class=msg-thread__role>What's this about?</p></div></div><div class=msg-choice__options><button type=button class=msg-choice__option data-testid=choice-care-team><i class="ph-thin ph-heartbeat msg-choice__option-icon"aria-hidden=true></i><span class=msg-choice__option-title>My treatment, medication or side effects</span><span class=msg-choice__option-sub>Goes to your care team</span></button><button type=button class=msg-choice__option data-testid=choice-support><i class="ph-thin ph-lifebuoy msg-choice__option-icon"aria-hidden=true></i><span class=msg-choice__option-title>My account, order, billing or the website</span><span class=msg-choice__option-sub>Goes to support`);
|
|
17227
|
+
var _tmpl$2213 = /* @__PURE__ */ template(`<div class="msg-thread msg-choice"data-testid=care-team-notice><div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label=Back><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><div><h3 class=msg-thread__name>Care team</h3><p class=msg-thread__role>Goes to your care team</p></div></div><div class=msg-choice__notice><p class=msg-choice__notice-text>Your care team will reach out after reviewing your case. If you have a question about your account or order in the meantime, send it to support.</p><button type=button class="portal-btn portal-btn--primary"data-testid=care-team-notice-switch>Message support instead`);
|
|
17228
|
+
var _tmpl$2312 = /* @__PURE__ */ template(`<span class=msg-thread__status data-testid=thread-status-closed>Resolved`);
|
|
17229
|
+
var _tmpl$2412 = /* @__PURE__ */ template(`<div class=msg-thread__header><button type=button class=msg-thread__back-btn aria-label="Back to conversations"data-testid=messages-back><i class="ph-thin ph-arrow-left"aria-hidden=true></i></button><div><div class=msg-thread__title-row><h3 class=msg-thread__name></h3></div><p class=msg-thread__role>`);
|
|
17230
|
+
var _tmpl$2512 = /* @__PURE__ */ template(`<div class=msg-thread__messages data-scrollable><div>`);
|
|
17231
|
+
var _tmpl$2610 = /* @__PURE__ */ template(`<span class=msg-compose__error role=alert>`);
|
|
17232
|
+
var _tmpl$2710 = /* @__PURE__ */ template(`<div class=msg-compose__staged>`);
|
|
17233
|
+
var _tmpl$2810 = /* @__PURE__ */ template(`<label class=msg-compose__attach title="Attach a file"><i class="ph-thin ph-paperclip"aria-hidden=true></i><span class=msg-compose__attach-label>Attach a file</span><input class=msg-compose__file-input type=file data-testid=messages-attach>`);
|
|
17234
|
+
var _tmpl$2910 = /* @__PURE__ */ template(`<div class=msg-compose><textarea class=msg-compose__input rows=1 placeholder="Type a message\u2026"aria-label=Message></textarea><button type=button class=msg-compose__send data-testid=messages-send>`);
|
|
17235
|
+
var _tmpl$306 = /* @__PURE__ */ template(`<span class=msg-compose__staged-file data-testid=staged-file><i class="ph-thin ph-paperclip"aria-hidden=true></i><span class=msg-attachment__file-size></span><button type=button class=msg-compose__staged-remove aria-label="Remove attachment">\xD7`);
|
|
17236
|
+
var _tmpl$3112 = /* @__PURE__ */ template(`<div class=msg-panel data-testid=messages-panel><div class=msg-panel__layout><div></div><div>`);
|
|
17237
|
+
var _tmpl$3210 = /* @__PURE__ */ template(`<div class=msg-panel__placeholder data-testid=messages-placeholder><p>Select a conversation to read and reply.`);
|
|
17232
17238
|
function sanitizeMessageHtml(html) {
|
|
17233
17239
|
return DOMPurify.sanitize(html, {
|
|
17234
17240
|
ALLOWED_TAGS: ["a", "b", "strong", "i", "em", "u", "s", "p", "br", "ul", "ol", "li", "blockquote", "h1", "h2", "h3", "h4", "span", "div", "table", "thead", "tbody", "tr", "th", "td", "img", "hr", "code", "pre"],
|
|
@@ -17253,8 +17259,10 @@ function rejectionReason(file) {
|
|
|
17253
17259
|
function MessagesPanel(props) {
|
|
17254
17260
|
const thread = () => props.thread;
|
|
17255
17261
|
const [composing, setComposing] = createSignal(false);
|
|
17262
|
+
const [composeStep, setComposeStep] = createSignal("choice");
|
|
17256
17263
|
const [newSubject, setNewSubject] = createSignal("");
|
|
17257
17264
|
const [newBody, setNewBody] = createSignal("");
|
|
17265
|
+
const [newCategory, setNewCategory] = createSignal(null);
|
|
17258
17266
|
const [composeError, setComposeError] = createSignal(null);
|
|
17259
17267
|
const [pendingFile, setPendingFile] = createSignal(null);
|
|
17260
17268
|
const [newFile, setNewFile] = createSignal(null);
|
|
@@ -17288,13 +17296,49 @@ function MessagesPanel(props) {
|
|
|
17288
17296
|
thread().clearSelection();
|
|
17289
17297
|
setNewSubject("");
|
|
17290
17298
|
setNewBody("");
|
|
17299
|
+
setNewCategory(null);
|
|
17291
17300
|
setComposeError(null);
|
|
17301
|
+
setComposeStep("choice");
|
|
17292
17302
|
setComposing(true);
|
|
17293
17303
|
}
|
|
17304
|
+
let composerRef;
|
|
17305
|
+
async function pickCareTeam() {
|
|
17306
|
+
const convo = thread().conversations().find((c) => c.source === "clinical");
|
|
17307
|
+
if (!convo) {
|
|
17308
|
+
setComposeStep("care");
|
|
17309
|
+
return;
|
|
17310
|
+
}
|
|
17311
|
+
setComposing(false);
|
|
17312
|
+
await thread().selectConversation(convo.id);
|
|
17313
|
+
requestAnimationFrame(() => composerRef?.focus());
|
|
17314
|
+
}
|
|
17294
17315
|
async function submitCompose(e) {
|
|
17295
17316
|
e.preventDefault();
|
|
17296
17317
|
setComposeError(null);
|
|
17297
|
-
const result = await thread().startSupportThread(newSubject(), newBody(), newFile() ?? void 0);
|
|
17318
|
+
const result = await thread().startSupportThread(newSubject(), newBody(), newFile() ?? void 0, newCategory());
|
|
17319
|
+
if (!result.created) {
|
|
17320
|
+
setComposeError("That didn't send. Please try again.");
|
|
17321
|
+
return;
|
|
17322
|
+
}
|
|
17323
|
+
setComposing(false);
|
|
17324
|
+
setNewSubject("");
|
|
17325
|
+
setNewBody("");
|
|
17326
|
+
setNewCategory(null);
|
|
17327
|
+
const file = newFile();
|
|
17328
|
+
setNewFile(null);
|
|
17329
|
+
if (result.attachmentFailed && file) {
|
|
17330
|
+
setPendingFile(file);
|
|
17331
|
+
setAttachError("Your message was sent, but the file didn\u2019t attach. Try sending it again.");
|
|
17332
|
+
}
|
|
17333
|
+
}
|
|
17334
|
+
async function submitCareCompose(e) {
|
|
17335
|
+
e.preventDefault();
|
|
17336
|
+
setComposeError(null);
|
|
17337
|
+
const result = await thread().startCareTeamThread(newBody(), newFile() ?? void 0);
|
|
17338
|
+
if (result.reason === "no_care_team") {
|
|
17339
|
+
setComposeStep("care-notice");
|
|
17340
|
+
return;
|
|
17341
|
+
}
|
|
17298
17342
|
if (!result.created) {
|
|
17299
17343
|
setComposeError("That didn't send. Please try again.");
|
|
17300
17344
|
return;
|
|
@@ -17302,6 +17346,7 @@ function MessagesPanel(props) {
|
|
|
17302
17346
|
setComposing(false);
|
|
17303
17347
|
setNewSubject("");
|
|
17304
17348
|
setNewBody("");
|
|
17349
|
+
setNewCategory(null);
|
|
17305
17350
|
const file = newFile();
|
|
17306
17351
|
setNewFile(null);
|
|
17307
17352
|
if (result.attachmentFailed && file) {
|
|
@@ -17324,61 +17369,93 @@ function MessagesPanel(props) {
|
|
|
17324
17369
|
void handleSend();
|
|
17325
17370
|
}
|
|
17326
17371
|
}
|
|
17327
|
-
const
|
|
17328
|
-
var _el$ = _tmpl$305()
|
|
17329
|
-
_el
|
|
17372
|
+
const ChannelChip = (p) => (() => {
|
|
17373
|
+
var _el$ = _tmpl$305();
|
|
17374
|
+
insert(_el$, () => p.source === "clinical" ? "Care team" : "Support", null);
|
|
17375
|
+
insert(_el$, createComponent(Show, {
|
|
17376
|
+
get when() {
|
|
17377
|
+
return memo(() => p.source === "support")() && categoryLabel(p.category);
|
|
17378
|
+
},
|
|
17379
|
+
children: (label) => (() => {
|
|
17380
|
+
var _el$2 = _tmpl$2103();
|
|
17381
|
+
insert(_el$2, label);
|
|
17382
|
+
return _el$2;
|
|
17383
|
+
})()
|
|
17384
|
+
}), null);
|
|
17385
|
+
effect((_p$) => {
|
|
17386
|
+
var _v$ = `channel-chip channel-chip--${p.source}`, _v$2 = p.source;
|
|
17387
|
+
_v$ !== _p$.e && className(_el$, _p$.e = _v$);
|
|
17388
|
+
_v$2 !== _p$.t && setAttribute(_el$, "data-channel", _p$.t = _v$2);
|
|
17389
|
+
return _p$;
|
|
17390
|
+
}, {
|
|
17391
|
+
e: void 0,
|
|
17392
|
+
t: void 0
|
|
17393
|
+
});
|
|
17330
17394
|
return _el$;
|
|
17395
|
+
})();
|
|
17396
|
+
const ConversationList = () => [(() => {
|
|
17397
|
+
var _el$3 = _tmpl$364(), _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling;
|
|
17398
|
+
_el$5.$$click = openCompose;
|
|
17399
|
+
return _el$3;
|
|
17331
17400
|
})(), (() => {
|
|
17332
|
-
var _el$
|
|
17333
|
-
insert(_el$
|
|
17401
|
+
var _el$6 = _tmpl$641();
|
|
17402
|
+
insert(_el$6, createComponent(Show, {
|
|
17334
17403
|
get when() {
|
|
17335
17404
|
return thread().loadingConversations();
|
|
17336
17405
|
},
|
|
17337
17406
|
get children() {
|
|
17338
|
-
return _tmpl$
|
|
17407
|
+
return _tmpl$448();
|
|
17339
17408
|
}
|
|
17340
17409
|
}), null);
|
|
17341
|
-
insert(_el$
|
|
17410
|
+
insert(_el$6, createComponent(Show, {
|
|
17342
17411
|
get when() {
|
|
17343
17412
|
return memo(() => !!!thread().loadingConversations())() && thread().conversations().length === 0;
|
|
17344
17413
|
},
|
|
17345
17414
|
get children() {
|
|
17346
|
-
return _tmpl$
|
|
17415
|
+
return _tmpl$543();
|
|
17347
17416
|
}
|
|
17348
17417
|
}), null);
|
|
17349
|
-
insert(_el$
|
|
17418
|
+
insert(_el$6, createComponent(For, {
|
|
17350
17419
|
get each() {
|
|
17351
17420
|
return thread().conversations();
|
|
17352
17421
|
},
|
|
17353
17422
|
children: (convo) => (() => {
|
|
17354
|
-
var _el$
|
|
17355
|
-
_el$
|
|
17356
|
-
insert(_el$
|
|
17357
|
-
insert(_el$
|
|
17358
|
-
|
|
17359
|
-
|
|
17423
|
+
var _el$9 = _tmpl$832(), _el$0 = _el$9.firstChild, _el$1 = _el$0.firstChild, _el$10 = _el$1.firstChild, _el$11 = _el$1.nextSibling, _el$12 = _el$0.nextSibling, _el$13 = _el$12.firstChild;
|
|
17424
|
+
_el$9.$$click = () => thread().selectConversation(convo.id);
|
|
17425
|
+
insert(_el$10, () => convo.participantName ?? "Provider");
|
|
17426
|
+
insert(_el$1, createComponent(ChannelChip, {
|
|
17427
|
+
get source() {
|
|
17428
|
+
return convo.source;
|
|
17429
|
+
},
|
|
17430
|
+
get category() {
|
|
17431
|
+
return convo.category;
|
|
17432
|
+
}
|
|
17433
|
+
}), null);
|
|
17434
|
+
insert(_el$11, () => formatConversationTime(convo.lastMessageAt));
|
|
17435
|
+
insert(_el$13, () => convo.lastMessage ?? "No messages yet");
|
|
17436
|
+
insert(_el$12, createComponent(Show, {
|
|
17360
17437
|
get when() {
|
|
17361
17438
|
return (convo.unreadCount ?? 0) > 0;
|
|
17362
17439
|
},
|
|
17363
17440
|
get children() {
|
|
17364
|
-
var _el$
|
|
17365
|
-
insert(_el$
|
|
17366
|
-
return _el$
|
|
17441
|
+
var _el$14 = _tmpl$736();
|
|
17442
|
+
insert(_el$14, () => convo.unreadCount);
|
|
17443
|
+
return _el$14;
|
|
17367
17444
|
}
|
|
17368
17445
|
}), null);
|
|
17369
17446
|
effect((_p$) => {
|
|
17370
|
-
var _v$ = `msg-list__item${thread().selectedId() === convo.id ? " is-active" : ""}`, _v$
|
|
17371
|
-
_v$ !== _p$.e && className(_el$
|
|
17372
|
-
_v$
|
|
17447
|
+
var _v$3 = `msg-list__item${thread().selectedId() === convo.id ? " is-active" : ""}`, _v$4 = `conversation-${convo.id}`;
|
|
17448
|
+
_v$3 !== _p$.e && className(_el$9, _p$.e = _v$3);
|
|
17449
|
+
_v$4 !== _p$.t && setAttribute(_el$9, "data-testid", _p$.t = _v$4);
|
|
17373
17450
|
return _p$;
|
|
17374
17451
|
}, {
|
|
17375
17452
|
e: void 0,
|
|
17376
17453
|
t: void 0
|
|
17377
17454
|
});
|
|
17378
|
-
return _el$
|
|
17455
|
+
return _el$9;
|
|
17379
17456
|
})()
|
|
17380
17457
|
}), null);
|
|
17381
|
-
return _el$
|
|
17458
|
+
return _el$6;
|
|
17382
17459
|
})()];
|
|
17383
17460
|
const Attachment = (p) => {
|
|
17384
17461
|
const [url, setUrl] = createSignal(p.attachment.url ?? null);
|
|
@@ -17403,12 +17480,12 @@ function MessagesPanel(props) {
|
|
|
17403
17480
|
},
|
|
17404
17481
|
get fallback() {
|
|
17405
17482
|
return (() => {
|
|
17406
|
-
var _el$
|
|
17407
|
-
_el$
|
|
17408
|
-
insert(_el$
|
|
17409
|
-
insert(_el$
|
|
17410
|
-
effect(() => setAttribute(_el$
|
|
17411
|
-
return _el$
|
|
17483
|
+
var _el$17 = _tmpl$025(), _el$18 = _el$17.firstChild, _el$19 = _el$18.nextSibling, _el$20 = _el$19.firstChild, _el$21 = _el$20.nextSibling;
|
|
17484
|
+
_el$17.$$click = openDocument;
|
|
17485
|
+
insert(_el$20, () => p.attachment.filename);
|
|
17486
|
+
insert(_el$21, () => formatFileSize(p.attachment.sizeBytes));
|
|
17487
|
+
effect(() => setAttribute(_el$17, "data-testid", `attachment-${p.attachment.id}`));
|
|
17488
|
+
return _el$17;
|
|
17412
17489
|
})();
|
|
17413
17490
|
},
|
|
17414
17491
|
get children() {
|
|
@@ -17418,15 +17495,15 @@ function MessagesPanel(props) {
|
|
|
17418
17495
|
},
|
|
17419
17496
|
get fallback() {
|
|
17420
17497
|
return (() => {
|
|
17421
|
-
var _el$
|
|
17422
|
-
insert(_el$
|
|
17423
|
-
return _el$
|
|
17498
|
+
var _el$22 = _tmpl$1105();
|
|
17499
|
+
insert(_el$22, () => failed() ? "Attachment unavailable" : "Loading\u2026");
|
|
17500
|
+
return _el$22;
|
|
17424
17501
|
})();
|
|
17425
17502
|
},
|
|
17426
17503
|
get children() {
|
|
17427
|
-
var _el$
|
|
17428
|
-
_el$
|
|
17429
|
-
_el$
|
|
17504
|
+
var _el$15 = _tmpl$929(), _el$16 = _el$15.firstChild;
|
|
17505
|
+
_el$15.$$click = openDocument;
|
|
17506
|
+
_el$16.addEventListener("error", () => {
|
|
17430
17507
|
if (retried) {
|
|
17431
17508
|
setFailed(true);
|
|
17432
17509
|
return;
|
|
@@ -17435,15 +17512,15 @@ function MessagesPanel(props) {
|
|
|
17435
17512
|
void resolve(true);
|
|
17436
17513
|
});
|
|
17437
17514
|
effect((_p$) => {
|
|
17438
|
-
var _v$
|
|
17439
|
-
_v$
|
|
17440
|
-
_v$
|
|
17515
|
+
var _v$5 = url(), _v$6 = p.attachment.filename;
|
|
17516
|
+
_v$5 !== _p$.e && setAttribute(_el$16, "src", _p$.e = _v$5);
|
|
17517
|
+
_v$6 !== _p$.t && setAttribute(_el$16, "alt", _p$.t = _v$6);
|
|
17441
17518
|
return _p$;
|
|
17442
17519
|
}, {
|
|
17443
17520
|
e: void 0,
|
|
17444
17521
|
t: void 0
|
|
17445
17522
|
});
|
|
17446
|
-
return _el$
|
|
17523
|
+
return _el$15;
|
|
17447
17524
|
}
|
|
17448
17525
|
});
|
|
17449
17526
|
}
|
|
@@ -17458,24 +17535,24 @@ function MessagesPanel(props) {
|
|
|
17458
17535
|
},
|
|
17459
17536
|
get fallback() {
|
|
17460
17537
|
return (() => {
|
|
17461
|
-
var _el$
|
|
17462
|
-
insert(_el$
|
|
17463
|
-
return _el$
|
|
17538
|
+
var _el$29 = _tmpl$1415();
|
|
17539
|
+
insert(_el$29, body);
|
|
17540
|
+
return _el$29;
|
|
17464
17541
|
})();
|
|
17465
17542
|
},
|
|
17466
17543
|
get children() {
|
|
17467
|
-
var _el$
|
|
17468
|
-
insert(_el$
|
|
17544
|
+
var _el$23 = _tmpl$1315(), _el$24 = _el$23.firstChild, _el$28 = _el$24.firstChild;
|
|
17545
|
+
insert(_el$24, createComponent(Show, {
|
|
17469
17546
|
get when() {
|
|
17470
17547
|
return memo(() => !!!isOwn())() && p.msg.senderName;
|
|
17471
17548
|
},
|
|
17472
17549
|
get children() {
|
|
17473
|
-
var _el$
|
|
17474
|
-
insert(_el$
|
|
17475
|
-
return _el$
|
|
17550
|
+
var _el$25 = _tmpl$1017();
|
|
17551
|
+
insert(_el$25, () => p.msg.senderName);
|
|
17552
|
+
return _el$25;
|
|
17476
17553
|
}
|
|
17477
|
-
}), _el$
|
|
17478
|
-
insert(_el$
|
|
17554
|
+
}), _el$28);
|
|
17555
|
+
insert(_el$24, createComponent(Show, {
|
|
17479
17556
|
get when() {
|
|
17480
17557
|
return body();
|
|
17481
17558
|
},
|
|
@@ -17486,26 +17563,26 @@ function MessagesPanel(props) {
|
|
|
17486
17563
|
},
|
|
17487
17564
|
get fallback() {
|
|
17488
17565
|
return (() => {
|
|
17489
|
-
var _el$
|
|
17490
|
-
insert(_el$
|
|
17491
|
-
return _el$
|
|
17566
|
+
var _el$30 = _tmpl$1515();
|
|
17567
|
+
insert(_el$30, body);
|
|
17568
|
+
return _el$30;
|
|
17492
17569
|
})();
|
|
17493
17570
|
},
|
|
17494
17571
|
get children() {
|
|
17495
|
-
var _el$
|
|
17496
|
-
effect(() => _el$
|
|
17497
|
-
return _el$
|
|
17572
|
+
var _el$26 = _tmpl$1119();
|
|
17573
|
+
effect(() => _el$26.innerHTML = sanitizeMessageHtml(body()));
|
|
17574
|
+
return _el$26;
|
|
17498
17575
|
}
|
|
17499
17576
|
});
|
|
17500
17577
|
}
|
|
17501
|
-
}), _el$
|
|
17502
|
-
insert(_el$
|
|
17578
|
+
}), _el$28);
|
|
17579
|
+
insert(_el$24, createComponent(Show, {
|
|
17503
17580
|
get when() {
|
|
17504
17581
|
return p.msg.attachments?.length;
|
|
17505
17582
|
},
|
|
17506
17583
|
get children() {
|
|
17507
|
-
var _el$
|
|
17508
|
-
insert(_el$
|
|
17584
|
+
var _el$27 = _tmpl$1216();
|
|
17585
|
+
insert(_el$27, createComponent(For, {
|
|
17509
17586
|
get each() {
|
|
17510
17587
|
return p.msg.attachments;
|
|
17511
17588
|
},
|
|
@@ -17513,163 +17590,283 @@ function MessagesPanel(props) {
|
|
|
17513
17590
|
attachment: a
|
|
17514
17591
|
})
|
|
17515
17592
|
}));
|
|
17516
|
-
return _el$
|
|
17593
|
+
return _el$27;
|
|
17517
17594
|
}
|
|
17518
|
-
}), _el$
|
|
17519
|
-
insert(_el$
|
|
17595
|
+
}), _el$28);
|
|
17596
|
+
insert(_el$28, () => formatMessageTime(p.msg.createdAt));
|
|
17520
17597
|
effect((_p$) => {
|
|
17521
|
-
var _v$
|
|
17522
|
-
_v$
|
|
17523
|
-
_v$
|
|
17598
|
+
var _v$7 = `msg-thread__line${isOwn() ? " msg-thread__line--own" : ""}`, _v$8 = `msg-thread__bubble${isOwn() ? " msg-thread__bubble--own" : ""}`;
|
|
17599
|
+
_v$7 !== _p$.e && className(_el$23, _p$.e = _v$7);
|
|
17600
|
+
_v$8 !== _p$.t && className(_el$24, _p$.t = _v$8);
|
|
17524
17601
|
return _p$;
|
|
17525
17602
|
}, {
|
|
17526
17603
|
e: void 0,
|
|
17527
17604
|
t: void 0
|
|
17528
17605
|
});
|
|
17529
|
-
return _el$
|
|
17606
|
+
return _el$23;
|
|
17530
17607
|
}
|
|
17531
17608
|
});
|
|
17532
17609
|
};
|
|
17533
17610
|
const NewSupportThread = () => (() => {
|
|
17534
|
-
var _el$
|
|
17535
|
-
_el$
|
|
17536
|
-
_el$
|
|
17537
|
-
_el$
|
|
17538
|
-
|
|
17539
|
-
|
|
17540
|
-
|
|
17541
|
-
|
|
17611
|
+
var _el$31 = _tmpl$1812(), _el$32 = _el$31.firstChild, _el$33 = _el$32.firstChild, _el$34 = _el$32.nextSibling, _el$35 = _el$34.firstChild, _el$36 = _el$35.nextSibling, _el$37 = _el$36.nextSibling, _el$38 = _el$37.nextSibling, _el$39 = _el$38.nextSibling, _el$40 = _el$39.nextSibling, _el$41 = _el$40.nextSibling, _el$42 = _el$41.firstChild, _el$43 = _el$42.nextSibling, _el$44 = _el$43.nextSibling, _el$47 = _el$41.nextSibling;
|
|
17612
|
+
_el$31.addEventListener("submit", submitCompose);
|
|
17613
|
+
_el$33.$$click = () => setComposeStep("choice");
|
|
17614
|
+
insert(_el$36, createComponent(For, {
|
|
17615
|
+
each: SUPPORT_CATEGORIES,
|
|
17616
|
+
children: (c) => (() => {
|
|
17617
|
+
var _el$48 = _tmpl$1912();
|
|
17618
|
+
_el$48.$$click = () => setNewCategory((prev) => prev === c.key ? null : c.key);
|
|
17619
|
+
insert(_el$48, () => c.label);
|
|
17620
|
+
effect((_p$) => {
|
|
17621
|
+
var _v$1 = `msg-compose__category-chip${newCategory() === c.key ? " is-selected" : ""}`, _v$10 = `compose-category-${c.key}`, _v$11 = newCategory() === c.key;
|
|
17622
|
+
_v$1 !== _p$.e && className(_el$48, _p$.e = _v$1);
|
|
17623
|
+
_v$10 !== _p$.t && setAttribute(_el$48, "data-testid", _p$.t = _v$10);
|
|
17624
|
+
_v$11 !== _p$.a && setAttribute(_el$48, "aria-pressed", _p$.a = _v$11);
|
|
17625
|
+
return _p$;
|
|
17626
|
+
}, {
|
|
17627
|
+
e: void 0,
|
|
17628
|
+
t: void 0,
|
|
17629
|
+
a: void 0
|
|
17630
|
+
});
|
|
17631
|
+
return _el$48;
|
|
17632
|
+
})()
|
|
17633
|
+
}));
|
|
17634
|
+
_el$38.$$input = (e) => setNewSubject(e.currentTarget.value);
|
|
17635
|
+
_el$40.$$input = (e) => setNewBody(e.currentTarget.value);
|
|
17636
|
+
insert(_el$43, () => newFile()?.name ?? "Attach a file (optional)");
|
|
17637
|
+
_el$44.addEventListener("change", (e) => stageFile(e.currentTarget, setNewFile));
|
|
17638
|
+
insert(_el$34, createComponent(Show, {
|
|
17542
17639
|
get when() {
|
|
17543
17640
|
return newFile();
|
|
17544
17641
|
},
|
|
17545
17642
|
get children() {
|
|
17546
|
-
var _el$
|
|
17547
|
-
_el$
|
|
17548
|
-
return _el$
|
|
17643
|
+
var _el$45 = _tmpl$1615();
|
|
17644
|
+
_el$45.$$click = () => setNewFile(null);
|
|
17645
|
+
return _el$45;
|
|
17549
17646
|
}
|
|
17550
|
-
}), _el$
|
|
17551
|
-
insert(_el$
|
|
17647
|
+
}), _el$47);
|
|
17648
|
+
insert(_el$34, createComponent(Show, {
|
|
17552
17649
|
get when() {
|
|
17553
17650
|
return attachError() || composeError();
|
|
17554
17651
|
},
|
|
17555
17652
|
get children() {
|
|
17556
|
-
var _el$
|
|
17557
|
-
insert(_el$
|
|
17558
|
-
return _el$
|
|
17653
|
+
var _el$46 = _tmpl$1715();
|
|
17654
|
+
insert(_el$46, () => attachError() ?? composeError());
|
|
17655
|
+
return _el$46;
|
|
17559
17656
|
}
|
|
17560
|
-
}), _el$
|
|
17561
|
-
insert(_el$
|
|
17657
|
+
}), _el$47);
|
|
17658
|
+
insert(_el$47, () => thread().startingThread() ? "Sending\u2026" : "Send");
|
|
17562
17659
|
effect((_p$) => {
|
|
17563
|
-
var _v$
|
|
17564
|
-
_v$
|
|
17565
|
-
_v$
|
|
17660
|
+
var _v$9 = SUPPORT_ATTACHMENT_MIME_TYPES.join(","), _v$0 = thread().startingThread() || !newSubject().trim() || !newBody().trim();
|
|
17661
|
+
_v$9 !== _p$.e && setAttribute(_el$44, "accept", _p$.e = _v$9);
|
|
17662
|
+
_v$0 !== _p$.t && (_el$47.disabled = _p$.t = _v$0);
|
|
17566
17663
|
return _p$;
|
|
17567
17664
|
}, {
|
|
17568
17665
|
e: void 0,
|
|
17569
17666
|
t: void 0
|
|
17570
17667
|
});
|
|
17571
|
-
effect(() => _el$
|
|
17572
|
-
effect(() => _el$
|
|
17573
|
-
return _el$
|
|
17668
|
+
effect(() => _el$38.value = newSubject());
|
|
17669
|
+
effect(() => _el$40.value = newBody());
|
|
17670
|
+
return _el$31;
|
|
17671
|
+
})();
|
|
17672
|
+
const NewCareTeamThread = () => (() => {
|
|
17673
|
+
var _el$49 = _tmpl$2011(), _el$50 = _el$49.firstChild, _el$51 = _el$50.firstChild, _el$52 = _el$50.nextSibling, _el$53 = _el$52.firstChild, _el$54 = _el$53.nextSibling, _el$55 = _el$54.nextSibling, _el$56 = _el$55.firstChild, _el$57 = _el$56.nextSibling, _el$58 = _el$57.nextSibling, _el$61 = _el$55.nextSibling;
|
|
17674
|
+
_el$49.addEventListener("submit", submitCareCompose);
|
|
17675
|
+
_el$51.$$click = () => setComposeStep("choice");
|
|
17676
|
+
_el$54.$$input = (e) => setNewBody(e.currentTarget.value);
|
|
17677
|
+
insert(_el$57, () => newFile()?.name ?? "Attach a file (optional)");
|
|
17678
|
+
_el$58.addEventListener("change", (e) => stageFile(e.currentTarget, setNewFile));
|
|
17679
|
+
insert(_el$52, createComponent(Show, {
|
|
17680
|
+
get when() {
|
|
17681
|
+
return newFile();
|
|
17682
|
+
},
|
|
17683
|
+
get children() {
|
|
17684
|
+
var _el$59 = _tmpl$1615();
|
|
17685
|
+
_el$59.$$click = () => setNewFile(null);
|
|
17686
|
+
return _el$59;
|
|
17687
|
+
}
|
|
17688
|
+
}), _el$61);
|
|
17689
|
+
insert(_el$52, createComponent(Show, {
|
|
17690
|
+
get when() {
|
|
17691
|
+
return attachError() || composeError();
|
|
17692
|
+
},
|
|
17693
|
+
get children() {
|
|
17694
|
+
var _el$60 = _tmpl$1715();
|
|
17695
|
+
insert(_el$60, () => attachError() ?? composeError());
|
|
17696
|
+
return _el$60;
|
|
17697
|
+
}
|
|
17698
|
+
}), _el$61);
|
|
17699
|
+
insert(_el$61, () => thread().startingCareTeamThread() ? "Sending\u2026" : "Send");
|
|
17700
|
+
effect((_p$) => {
|
|
17701
|
+
var _v$12 = SUPPORT_ATTACHMENT_MIME_TYPES.join(","), _v$13 = thread().startingCareTeamThread() || !newBody().trim();
|
|
17702
|
+
_v$12 !== _p$.e && setAttribute(_el$58, "accept", _p$.e = _v$12);
|
|
17703
|
+
_v$13 !== _p$.t && (_el$61.disabled = _p$.t = _v$13);
|
|
17704
|
+
return _p$;
|
|
17705
|
+
}, {
|
|
17706
|
+
e: void 0,
|
|
17707
|
+
t: void 0
|
|
17708
|
+
});
|
|
17709
|
+
effect(() => _el$54.value = newBody());
|
|
17710
|
+
return _el$49;
|
|
17711
|
+
})();
|
|
17712
|
+
const ChannelChoice = () => (() => {
|
|
17713
|
+
var _el$62 = _tmpl$2116(), _el$63 = _el$62.firstChild, _el$64 = _el$63.firstChild, _el$65 = _el$63.nextSibling, _el$66 = _el$65.firstChild, _el$67 = _el$66.nextSibling;
|
|
17714
|
+
_el$64.$$click = () => setComposing(false);
|
|
17715
|
+
_el$66.$$click = () => void pickCareTeam();
|
|
17716
|
+
_el$67.$$click = () => setComposeStep("support");
|
|
17717
|
+
return _el$62;
|
|
17718
|
+
})();
|
|
17719
|
+
const CareTeamNotice = () => (() => {
|
|
17720
|
+
var _el$68 = _tmpl$2213(), _el$69 = _el$68.firstChild, _el$70 = _el$69.firstChild, _el$71 = _el$69.nextSibling, _el$72 = _el$71.firstChild, _el$73 = _el$72.nextSibling;
|
|
17721
|
+
_el$70.$$click = () => setComposeStep("choice");
|
|
17722
|
+
_el$73.$$click = () => setComposeStep("support");
|
|
17723
|
+
return _el$68;
|
|
17574
17724
|
})();
|
|
17575
17725
|
const Thread = () => [(() => {
|
|
17576
|
-
var _el$
|
|
17577
|
-
_el$
|
|
17578
|
-
insert(_el$
|
|
17579
|
-
insert(_el$
|
|
17580
|
-
|
|
17726
|
+
var _el$74 = _tmpl$2412(), _el$75 = _el$74.firstChild, _el$76 = _el$75.nextSibling, _el$77 = _el$76.firstChild, _el$78 = _el$77.firstChild, _el$79 = _el$77.nextSibling;
|
|
17727
|
+
_el$75.$$click = () => thread().clearSelection();
|
|
17728
|
+
insert(_el$78, () => selectedConvo()?.participantName ?? "Provider");
|
|
17729
|
+
insert(_el$77, createComponent(Show, {
|
|
17730
|
+
get when() {
|
|
17731
|
+
return selectedConvo();
|
|
17732
|
+
},
|
|
17733
|
+
children: (convo) => createComponent(ChannelChip, {
|
|
17734
|
+
get source() {
|
|
17735
|
+
return convo().source;
|
|
17736
|
+
},
|
|
17737
|
+
get category() {
|
|
17738
|
+
return convo().category;
|
|
17739
|
+
}
|
|
17740
|
+
})
|
|
17741
|
+
}), null);
|
|
17742
|
+
insert(_el$79, () => selectedConvo()?.participantRole ?? "Prescriber");
|
|
17743
|
+
insert(_el$74, createComponent(Show, {
|
|
17581
17744
|
get when() {
|
|
17582
17745
|
return memo(() => selectedConvo()?.source === "support")() && selectedConvo()?.status === "closed";
|
|
17583
17746
|
},
|
|
17584
17747
|
get children() {
|
|
17585
|
-
return _tmpl$
|
|
17748
|
+
return _tmpl$2312();
|
|
17586
17749
|
}
|
|
17587
17750
|
}), null);
|
|
17588
|
-
return _el$
|
|
17751
|
+
return _el$74;
|
|
17589
17752
|
})(), (() => {
|
|
17590
|
-
var _el$
|
|
17591
|
-
insert(_el$
|
|
17753
|
+
var _el$81 = _tmpl$2512(), _el$83 = _el$81.firstChild;
|
|
17754
|
+
insert(_el$81, createComponent(Show, {
|
|
17592
17755
|
get when() {
|
|
17593
17756
|
return thread().loadingMessages();
|
|
17594
17757
|
},
|
|
17595
17758
|
get children() {
|
|
17596
|
-
return _tmpl$
|
|
17759
|
+
return _tmpl$448();
|
|
17597
17760
|
}
|
|
17598
|
-
}), _el$
|
|
17599
|
-
insert(_el$
|
|
17761
|
+
}), _el$83);
|
|
17762
|
+
insert(_el$81, createComponent(For, {
|
|
17600
17763
|
get each() {
|
|
17601
17764
|
return thread().messages();
|
|
17602
17765
|
},
|
|
17603
17766
|
children: (msg) => createComponent(Bubble, {
|
|
17604
17767
|
msg
|
|
17605
17768
|
})
|
|
17606
|
-
}), _el$
|
|
17769
|
+
}), _el$83);
|
|
17607
17770
|
var _ref$ = endRef;
|
|
17608
|
-
typeof _ref$ === "function" ? use(_ref$, _el$
|
|
17609
|
-
return _el$
|
|
17771
|
+
typeof _ref$ === "function" ? use(_ref$, _el$83) : endRef = _el$83;
|
|
17772
|
+
return _el$81;
|
|
17610
17773
|
})(), createComponent(Show, {
|
|
17611
17774
|
get when() {
|
|
17612
17775
|
return pendingFile() || attachError();
|
|
17613
17776
|
},
|
|
17614
17777
|
get children() {
|
|
17615
|
-
var _el$
|
|
17616
|
-
insert(_el$
|
|
17778
|
+
var _el$84 = _tmpl$2710();
|
|
17779
|
+
insert(_el$84, createComponent(Show, {
|
|
17617
17780
|
get when() {
|
|
17618
17781
|
return pendingFile();
|
|
17619
17782
|
},
|
|
17620
17783
|
children: (file) => (() => {
|
|
17621
|
-
var _el$
|
|
17622
|
-
insert(_el$
|
|
17623
|
-
insert(_el$
|
|
17624
|
-
_el$
|
|
17625
|
-
return _el$
|
|
17784
|
+
var _el$93 = _tmpl$306(), _el$94 = _el$93.firstChild, _el$95 = _el$94.nextSibling, _el$96 = _el$95.nextSibling;
|
|
17785
|
+
insert(_el$93, () => file().name, _el$95);
|
|
17786
|
+
insert(_el$95, () => formatFileSize(file().size));
|
|
17787
|
+
_el$96.$$click = () => setPendingFile(null);
|
|
17788
|
+
return _el$93;
|
|
17626
17789
|
})()
|
|
17627
17790
|
}), null);
|
|
17628
|
-
insert(_el$
|
|
17791
|
+
insert(_el$84, createComponent(Show, {
|
|
17629
17792
|
get when() {
|
|
17630
17793
|
return attachError();
|
|
17631
17794
|
},
|
|
17632
17795
|
get children() {
|
|
17633
|
-
var _el$
|
|
17634
|
-
insert(_el$
|
|
17635
|
-
return _el$
|
|
17796
|
+
var _el$85 = _tmpl$2610();
|
|
17797
|
+
insert(_el$85, attachError);
|
|
17798
|
+
return _el$85;
|
|
17636
17799
|
}
|
|
17637
17800
|
}), null);
|
|
17638
|
-
return _el$
|
|
17801
|
+
return _el$84;
|
|
17639
17802
|
}
|
|
17640
17803
|
}), (() => {
|
|
17641
|
-
var _el$
|
|
17642
|
-
insert(_el$
|
|
17804
|
+
var _el$86 = _tmpl$2910(), _el$91 = _el$86.firstChild, _el$92 = _el$91.nextSibling;
|
|
17805
|
+
insert(_el$86, createComponent(Show, {
|
|
17643
17806
|
get when() {
|
|
17644
17807
|
return thread().selectedSource() === "support";
|
|
17645
17808
|
},
|
|
17646
17809
|
get children() {
|
|
17647
|
-
var _el$
|
|
17648
|
-
_el$
|
|
17649
|
-
effect(() => setAttribute(_el$
|
|
17650
|
-
return _el$
|
|
17810
|
+
var _el$87 = _tmpl$2810(), _el$88 = _el$87.firstChild, _el$89 = _el$88.nextSibling, _el$90 = _el$89.nextSibling;
|
|
17811
|
+
_el$90.addEventListener("change", (e) => stageFile(e.currentTarget, setPendingFile));
|
|
17812
|
+
effect(() => setAttribute(_el$90, "accept", SUPPORT_ATTACHMENT_MIME_TYPES.join(",")));
|
|
17813
|
+
return _el$87;
|
|
17651
17814
|
}
|
|
17652
|
-
}), _el$
|
|
17653
|
-
_el$
|
|
17654
|
-
_el$
|
|
17655
|
-
|
|
17656
|
-
|
|
17657
|
-
|
|
17658
|
-
|
|
17659
|
-
|
|
17815
|
+
}), _el$91);
|
|
17816
|
+
_el$91.$$keydown = handleKeyDown;
|
|
17817
|
+
_el$91.$$input = (e) => thread().setDraft(e.currentTarget.value);
|
|
17818
|
+
var _ref$2 = composerRef;
|
|
17819
|
+
typeof _ref$2 === "function" ? use(_ref$2, _el$91) : composerRef = _el$91;
|
|
17820
|
+
_el$92.$$click = handleSend;
|
|
17821
|
+
insert(_el$92, () => thread().sending() ? "Sending\u2026" : "Send");
|
|
17822
|
+
effect(() => _el$92.disabled = !canSend());
|
|
17823
|
+
effect(() => _el$91.value = thread().draft());
|
|
17824
|
+
return _el$86;
|
|
17660
17825
|
})()];
|
|
17661
17826
|
return (() => {
|
|
17662
|
-
var _el$
|
|
17663
|
-
insert(_el$
|
|
17664
|
-
insert(_el$
|
|
17827
|
+
var _el$97 = _tmpl$3112(), _el$98 = _el$97.firstChild, _el$99 = _el$98.firstChild, _el$100 = _el$99.nextSibling;
|
|
17828
|
+
insert(_el$99, createComponent(ConversationList, {}));
|
|
17829
|
+
insert(_el$100, createComponent(Show, {
|
|
17665
17830
|
get when() {
|
|
17666
17831
|
return composing();
|
|
17667
17832
|
},
|
|
17668
17833
|
get children() {
|
|
17669
|
-
return createComponent(
|
|
17834
|
+
return createComponent(Switch, {
|
|
17835
|
+
get children() {
|
|
17836
|
+
return [createComponent(Match, {
|
|
17837
|
+
get when() {
|
|
17838
|
+
return composeStep() === "choice";
|
|
17839
|
+
},
|
|
17840
|
+
get children() {
|
|
17841
|
+
return createComponent(ChannelChoice, {});
|
|
17842
|
+
}
|
|
17843
|
+
}), createComponent(Match, {
|
|
17844
|
+
get when() {
|
|
17845
|
+
return composeStep() === "care";
|
|
17846
|
+
},
|
|
17847
|
+
get children() {
|
|
17848
|
+
return createComponent(NewCareTeamThread, {});
|
|
17849
|
+
}
|
|
17850
|
+
}), createComponent(Match, {
|
|
17851
|
+
get when() {
|
|
17852
|
+
return composeStep() === "care-notice";
|
|
17853
|
+
},
|
|
17854
|
+
get children() {
|
|
17855
|
+
return createComponent(CareTeamNotice, {});
|
|
17856
|
+
}
|
|
17857
|
+
}), createComponent(Match, {
|
|
17858
|
+
get when() {
|
|
17859
|
+
return composeStep() === "support";
|
|
17860
|
+
},
|
|
17861
|
+
get children() {
|
|
17862
|
+
return createComponent(NewSupportThread, {});
|
|
17863
|
+
}
|
|
17864
|
+
})];
|
|
17865
|
+
}
|
|
17866
|
+
});
|
|
17670
17867
|
}
|
|
17671
17868
|
}), null);
|
|
17672
|
-
insert(_el$
|
|
17869
|
+
insert(_el$100, createComponent(Show, {
|
|
17673
17870
|
get when() {
|
|
17674
17871
|
return !composing();
|
|
17675
17872
|
},
|
|
@@ -17679,7 +17876,7 @@ function MessagesPanel(props) {
|
|
|
17679
17876
|
return thread().selectedId() != null;
|
|
17680
17877
|
},
|
|
17681
17878
|
get fallback() {
|
|
17682
|
-
return _tmpl$
|
|
17879
|
+
return _tmpl$3210();
|
|
17683
17880
|
},
|
|
17684
17881
|
get children() {
|
|
17685
17882
|
return createComponent(Thread, {});
|
|
@@ -17688,19 +17885,19 @@ function MessagesPanel(props) {
|
|
|
17688
17885
|
}
|
|
17689
17886
|
}), null);
|
|
17690
17887
|
effect((_p$) => {
|
|
17691
|
-
var _v$
|
|
17692
|
-
_v$
|
|
17693
|
-
_v$
|
|
17888
|
+
var _v$14 = `msg-panel__sidebar${threadOpen() ? " msg-panel__sidebar--hidden-mobile" : ""}`, _v$15 = `msg-panel__main${threadOpen() ? "" : " msg-panel__main--hidden-mobile"}`;
|
|
17889
|
+
_v$14 !== _p$.e && className(_el$99, _p$.e = _v$14);
|
|
17890
|
+
_v$15 !== _p$.t && className(_el$100, _p$.t = _v$15);
|
|
17694
17891
|
return _p$;
|
|
17695
17892
|
}, {
|
|
17696
17893
|
e: void 0,
|
|
17697
17894
|
t: void 0
|
|
17698
17895
|
});
|
|
17699
|
-
return _el$
|
|
17896
|
+
return _el$97;
|
|
17700
17897
|
})();
|
|
17701
17898
|
}
|
|
17702
17899
|
delegateEvents(["click", "input", "keydown"]);
|
|
17703
|
-
var _tmpl$
|
|
17900
|
+
var _tmpl$307 = /* @__PURE__ */ template(`<ul class=history-list data-testid=history-list>`);
|
|
17704
17901
|
var _tmpl$2104 = /* @__PURE__ */ template(`<div class=portal-state data-testid=history-error><p>We couldn't load your submitted surveys. Please try again in a moment.`);
|
|
17705
17902
|
var _tmpl$365 = /* @__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.`);
|
|
17706
17903
|
var _tmpl$449 = /* @__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>`);
|
|
@@ -17750,7 +17947,7 @@ function SurveyHistory() {
|
|
|
17750
17947
|
return _tmpl$365();
|
|
17751
17948
|
},
|
|
17752
17949
|
get children() {
|
|
17753
|
-
var _el$ = _tmpl$
|
|
17950
|
+
var _el$ = _tmpl$307();
|
|
17754
17951
|
insert(_el$, createComponent(For, {
|
|
17755
17952
|
get each() {
|
|
17756
17953
|
return list();
|
|
@@ -17847,7 +18044,7 @@ function SurveyHistory() {
|
|
|
17847
18044
|
delegateEvents(["click"]);
|
|
17848
18045
|
|
|
17849
18046
|
// src/pages/MemberPortal.tsx
|
|
17850
|
-
var _tmpl$
|
|
18047
|
+
var _tmpl$308 = /* @__PURE__ */ template(`<span class=portal-item__live aria-label="In progress">`);
|
|
17851
18048
|
var _tmpl$2105 = /* @__PURE__ */ template(`<span>`);
|
|
17852
18049
|
var _tmpl$366 = /* @__PURE__ */ template(`<button type=button><i aria-hidden=true></i><span class=portal-item__label>`);
|
|
17853
18050
|
var _tmpl$450 = /* @__PURE__ */ template(`<div class=rx-others data-testid=rx-others><span class=lab-label>Other orders`);
|
|
@@ -17949,7 +18146,7 @@ function MemberPortal(props) {
|
|
|
17949
18146
|
return memo(() => item.key === "tracker")() && inMotion();
|
|
17950
18147
|
},
|
|
17951
18148
|
get children() {
|
|
17952
|
-
return _tmpl$
|
|
18149
|
+
return _tmpl$308();
|
|
17953
18150
|
}
|
|
17954
18151
|
}), null);
|
|
17955
18152
|
insert(_el$, createComponent(Show, {
|
|
@@ -18255,7 +18452,7 @@ function MemberPortal(props) {
|
|
|
18255
18452
|
})();
|
|
18256
18453
|
}
|
|
18257
18454
|
delegateEvents(["click"]);
|
|
18258
|
-
var _tmpl$
|
|
18455
|
+
var _tmpl$309 = /* @__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.`);
|
|
18259
18456
|
var _tmpl$2106 = /* @__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`);
|
|
18260
18457
|
var _tmpl$367 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Loading stats\u2026`);
|
|
18261
18458
|
var _tmpl$451 = /* @__PURE__ */ template(`<div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));gap:1rem">`);
|
|
@@ -18298,7 +18495,7 @@ function AffiliateOverview() {
|
|
|
18298
18495
|
return isPending();
|
|
18299
18496
|
},
|
|
18300
18497
|
get children() {
|
|
18301
|
-
return _tmpl$
|
|
18498
|
+
return _tmpl$309();
|
|
18302
18499
|
}
|
|
18303
18500
|
}), null);
|
|
18304
18501
|
insert(_el$, createComponent(Show, {
|
|
@@ -18327,9 +18524,9 @@ function AffiliateOverview() {
|
|
|
18327
18524
|
return _el$;
|
|
18328
18525
|
})();
|
|
18329
18526
|
}
|
|
18330
|
-
var _tmpl$
|
|
18527
|
+
var _tmpl$368 = /* @__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>`);
|
|
18331
18528
|
var _tmpl$2107 = /* @__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`);
|
|
18332
|
-
var _tmpl$
|
|
18529
|
+
var _tmpl$369 = /* @__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.`);
|
|
18333
18530
|
var _tmpl$452 = /* @__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`);
|
|
18334
18531
|
var _tmpl$547 = /* @__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">`);
|
|
18335
18532
|
function formatMoney2(cents) {
|
|
@@ -18375,10 +18572,10 @@ function AffiliateConversions() {
|
|
|
18375
18572
|
return (conversions() ?? []).length > 0;
|
|
18376
18573
|
},
|
|
18377
18574
|
get fallback() {
|
|
18378
|
-
return _tmpl$
|
|
18575
|
+
return _tmpl$369();
|
|
18379
18576
|
},
|
|
18380
18577
|
get children() {
|
|
18381
|
-
var _el$3 = _tmpl$
|
|
18578
|
+
var _el$3 = _tmpl$368(), _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;
|
|
18382
18579
|
insert(_el$10, createComponent(For, {
|
|
18383
18580
|
get each() {
|
|
18384
18581
|
return conversions();
|
|
@@ -18460,9 +18657,9 @@ function td() {
|
|
|
18460
18657
|
color: "var(--app-affiliate-fg)"
|
|
18461
18658
|
};
|
|
18462
18659
|
}
|
|
18463
|
-
var _tmpl$
|
|
18660
|
+
var _tmpl$370 = /* @__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>`);
|
|
18464
18661
|
var _tmpl$2108 = /* @__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.`);
|
|
18465
|
-
var _tmpl$
|
|
18662
|
+
var _tmpl$371 = /* @__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.`);
|
|
18466
18663
|
var _tmpl$453 = /* @__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>`);
|
|
18467
18664
|
function formatDate4(iso) {
|
|
18468
18665
|
const d = new Date(iso);
|
|
@@ -18502,10 +18699,10 @@ function AffiliateDownline() {
|
|
|
18502
18699
|
return (downline() ?? []).length > 0;
|
|
18503
18700
|
},
|
|
18504
18701
|
get fallback() {
|
|
18505
|
-
return _tmpl$
|
|
18702
|
+
return _tmpl$371();
|
|
18506
18703
|
},
|
|
18507
18704
|
get children() {
|
|
18508
|
-
var _el$4 = _tmpl$
|
|
18705
|
+
var _el$4 = _tmpl$370(), _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;
|
|
18509
18706
|
insert(_el$10, createComponent(For, {
|
|
18510
18707
|
get each() {
|
|
18511
18708
|
return downline();
|
|
@@ -18574,9 +18771,9 @@ function td2() {
|
|
|
18574
18771
|
color: "var(--app-affiliate-fg)"
|
|
18575
18772
|
};
|
|
18576
18773
|
}
|
|
18577
|
-
var _tmpl$
|
|
18774
|
+
var _tmpl$372 = /* @__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.`);
|
|
18578
18775
|
var _tmpl$2109 = /* @__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`);
|
|
18579
|
-
var _tmpl$
|
|
18776
|
+
var _tmpl$373 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Your referral link will appear here once your account is approved.`);
|
|
18580
18777
|
function AffiliateReferralLink() {
|
|
18581
18778
|
const {
|
|
18582
18779
|
links
|
|
@@ -18607,10 +18804,10 @@ function AffiliateReferralLink() {
|
|
|
18607
18804
|
return homepageLink();
|
|
18608
18805
|
},
|
|
18609
18806
|
get fallback() {
|
|
18610
|
-
return _tmpl$
|
|
18807
|
+
return _tmpl$373();
|
|
18611
18808
|
},
|
|
18612
18809
|
get children() {
|
|
18613
|
-
var _el$3 = _tmpl$
|
|
18810
|
+
var _el$3 = _tmpl$372(), _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling; _el$5.nextSibling;
|
|
18614
18811
|
insert(_el$6, homepageLink);
|
|
18615
18812
|
_el$7.$$click = copy;
|
|
18616
18813
|
insert(_el$7, () => copied() ? "Copied" : "Copy");
|
|
@@ -18621,9 +18818,9 @@ function AffiliateReferralLink() {
|
|
|
18621
18818
|
})();
|
|
18622
18819
|
}
|
|
18623
18820
|
delegateEvents(["click"]);
|
|
18624
|
-
var _tmpl$
|
|
18821
|
+
var _tmpl$374 = /* @__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.`);
|
|
18625
18822
|
var _tmpl$2117 = /* @__PURE__ */ template(`<div style=color:var(--app-affiliate-fg-muted)>Loading\u2026`);
|
|
18626
|
-
var _tmpl$
|
|
18823
|
+
var _tmpl$375 = /* @__PURE__ */ template(`<div style="background:var(--app-affiliate-surface);border:1px solid var(--app-affiliate-border);border-radius:var(--app-affiliate-radius);overflow:hidden">`);
|
|
18627
18824
|
var _tmpl$454 = /* @__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)>`);
|
|
18628
18825
|
var STATUS_LABEL2 = {
|
|
18629
18826
|
pending: "Pending approval",
|
|
@@ -18659,7 +18856,7 @@ function AffiliateSettings() {
|
|
|
18659
18856
|
value: a.paymentEmail ?? "\u2014"
|
|
18660
18857
|
}];
|
|
18661
18858
|
return (() => {
|
|
18662
|
-
var _el$ = _tmpl$
|
|
18859
|
+
var _el$ = _tmpl$374(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild; _el$3.nextSibling;
|
|
18663
18860
|
insert(_el$, createComponent(Show, {
|
|
18664
18861
|
get when() {
|
|
18665
18862
|
return affiliate();
|
|
@@ -18668,7 +18865,7 @@ function AffiliateSettings() {
|
|
|
18668
18865
|
return _tmpl$2117();
|
|
18669
18866
|
},
|
|
18670
18867
|
children: (a) => (() => {
|
|
18671
|
-
var _el$7 = _tmpl$
|
|
18868
|
+
var _el$7 = _tmpl$375();
|
|
18672
18869
|
insert(_el$7, createComponent(For, {
|
|
18673
18870
|
get each() {
|
|
18674
18871
|
return rows(a());
|
|
@@ -18690,9 +18887,9 @@ function AffiliateSettings() {
|
|
|
18690
18887
|
delegateEvents(["click"]);
|
|
18691
18888
|
|
|
18692
18889
|
// src/pages/AffiliatePortal.tsx
|
|
18693
|
-
var _tmpl$
|
|
18890
|
+
var _tmpl$376 = /* @__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>`);
|
|
18694
18891
|
var _tmpl$2118 = /* @__PURE__ */ template(`<span style=font-size:1rem;opacity:0.7;flex-shrink:0>`);
|
|
18695
|
-
var _tmpl$
|
|
18892
|
+
var _tmpl$377 = /* @__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">`);
|
|
18696
18893
|
var _tmpl$455 = /* @__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); } }`);
|
|
18697
18894
|
var TAB_LABELS2 = {
|
|
18698
18895
|
overview: "Overview",
|
|
@@ -18738,7 +18935,7 @@ function AffiliatePortal(props) {
|
|
|
18738
18935
|
});
|
|
18739
18936
|
},
|
|
18740
18937
|
get children() {
|
|
18741
|
-
var _el$ = _tmpl$
|
|
18938
|
+
var _el$ = _tmpl$376(), _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;
|
|
18742
18939
|
_el$3.$$click = () => setDrawerOpen(true);
|
|
18743
18940
|
insert(_el$4, () => TAB_LABELS2[currentTab()]);
|
|
18744
18941
|
_el$5.$$click = () => setDrawerOpen(false);
|
|
@@ -18747,7 +18944,7 @@ function AffiliatePortal(props) {
|
|
|
18747
18944
|
return orderedTabs();
|
|
18748
18945
|
},
|
|
18749
18946
|
children: (tab) => (() => {
|
|
18750
|
-
var _el$1 = _tmpl$
|
|
18947
|
+
var _el$1 = _tmpl$377();
|
|
18751
18948
|
_el$1.$$click = () => handleTabClick(tab);
|
|
18752
18949
|
insert(_el$1, createComponent(Show, {
|
|
18753
18950
|
get when() {
|
|
@@ -18850,11 +19047,11 @@ function AffiliateGateSpinner(props) {
|
|
|
18850
19047
|
})();
|
|
18851
19048
|
}
|
|
18852
19049
|
delegateEvents(["click"]);
|
|
18853
|
-
var _tmpl$
|
|
19050
|
+
var _tmpl$378 = /* @__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">`);
|
|
18854
19051
|
function AffiliatePasswordInput(props) {
|
|
18855
19052
|
const [visible, setVisible] = createSignal(false);
|
|
18856
19053
|
return (() => {
|
|
18857
|
-
var _el$ = _tmpl$
|
|
19054
|
+
var _el$ = _tmpl$378(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
18858
19055
|
_el$2.$$input = (e) => props.onInput(e.currentTarget.value);
|
|
18859
19056
|
_el$3.$$click = () => setVisible((v) => !v);
|
|
18860
19057
|
insert(_el$3, () => visible() ? "Hide" : "Show");
|
|
@@ -18895,9 +19092,9 @@ function inputStyle() {
|
|
|
18895
19092
|
delegateEvents(["input", "click"]);
|
|
18896
19093
|
|
|
18897
19094
|
// src/pages/AffiliateRegister.tsx
|
|
18898
|
-
var _tmpl$
|
|
19095
|
+
var _tmpl$379 = /* @__PURE__ */ template(`<input type=text required autocomplete=given-name>`);
|
|
18899
19096
|
var _tmpl$2119 = /* @__PURE__ */ template(`<input type=text required autocomplete=family-name>`);
|
|
18900
|
-
var _tmpl$
|
|
19097
|
+
var _tmpl$380 = /* @__PURE__ */ template(`<input type=email required autocomplete=email>`);
|
|
18901
19098
|
var _tmpl$456 = /* @__PURE__ */ template(`<input type=text required minlength=4>`);
|
|
18902
19099
|
var _tmpl$548 = /* @__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">`);
|
|
18903
19100
|
var _tmpl$644 = /* @__PURE__ */ template(`<button type=button>Already have an account? Log in`);
|
|
@@ -18950,7 +19147,7 @@ function AffiliateRegister(props) {
|
|
|
18950
19147
|
insert(_el$6, createComponent(Row, {
|
|
18951
19148
|
label: "First name",
|
|
18952
19149
|
get children() {
|
|
18953
|
-
var _el$7 = _tmpl$
|
|
19150
|
+
var _el$7 = _tmpl$379();
|
|
18954
19151
|
_el$7.$$input = (e) => setFirstName(e.currentTarget.value);
|
|
18955
19152
|
effect((_$p) => style(_el$7, inputStyle2(), _$p));
|
|
18956
19153
|
effect(() => _el$7.value = firstName());
|
|
@@ -18970,7 +19167,7 @@ function AffiliateRegister(props) {
|
|
|
18970
19167
|
insert(_el$6, createComponent(Row, {
|
|
18971
19168
|
label: "Email",
|
|
18972
19169
|
get children() {
|
|
18973
|
-
var _el$9 = _tmpl$
|
|
19170
|
+
var _el$9 = _tmpl$380();
|
|
18974
19171
|
_el$9.$$input = (e) => setEmail(e.currentTarget.value);
|
|
18975
19172
|
effect((_$p) => style(_el$9, inputStyle2(), _$p));
|
|
18976
19173
|
effect(() => _el$9.value = email());
|
|
@@ -19089,9 +19286,9 @@ function linkStyle() {
|
|
|
19089
19286
|
};
|
|
19090
19287
|
}
|
|
19091
19288
|
delegateEvents(["input", "click"]);
|
|
19092
|
-
var _tmpl$
|
|
19289
|
+
var _tmpl$381 = /* @__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">`);
|
|
19093
19290
|
var _tmpl$2120 = /* @__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?`);
|
|
19094
|
-
var _tmpl$
|
|
19291
|
+
var _tmpl$382 = /* @__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`);
|
|
19095
19292
|
var _tmpl$457 = /* @__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">`);
|
|
19096
19293
|
function AffiliateLogin(props) {
|
|
19097
19294
|
const [email, setEmail] = createSignal("");
|
|
@@ -19128,7 +19325,7 @@ function AffiliateLogin(props) {
|
|
|
19128
19325
|
return error();
|
|
19129
19326
|
},
|
|
19130
19327
|
get children() {
|
|
19131
|
-
var _el$0 = _tmpl$
|
|
19328
|
+
var _el$0 = _tmpl$381();
|
|
19132
19329
|
insert(_el$0, error);
|
|
19133
19330
|
return _el$0;
|
|
19134
19331
|
}
|
|
@@ -19149,7 +19346,7 @@ function AffiliateLogin(props) {
|
|
|
19149
19346
|
return props.onNavigateRegister;
|
|
19150
19347
|
},
|
|
19151
19348
|
get children() {
|
|
19152
|
-
var _el$11 = _tmpl$
|
|
19349
|
+
var _el$11 = _tmpl$382();
|
|
19153
19350
|
_el$11.$$click = () => props.onNavigateRegister?.();
|
|
19154
19351
|
return _el$11;
|
|
19155
19352
|
}
|
|
@@ -19197,9 +19394,9 @@ function inputStyle3() {
|
|
|
19197
19394
|
};
|
|
19198
19395
|
}
|
|
19199
19396
|
delegateEvents(["input", "click"]);
|
|
19200
|
-
var _tmpl$
|
|
19397
|
+
var _tmpl$383 = /* @__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">`);
|
|
19201
19398
|
var _tmpl$2121 = /* @__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">`);
|
|
19202
|
-
var _tmpl$
|
|
19399
|
+
var _tmpl$384 = /* @__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`);
|
|
19203
19400
|
var _tmpl$458 = /* @__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">`);
|
|
19204
19401
|
function ForgotPasswordPage(props) {
|
|
19205
19402
|
const [email, setEmail] = createSignal("");
|
|
@@ -19224,7 +19421,7 @@ function ForgotPasswordPage(props) {
|
|
|
19224
19421
|
}
|
|
19225
19422
|
}
|
|
19226
19423
|
return (() => {
|
|
19227
|
-
var _el$ = _tmpl$
|
|
19424
|
+
var _el$ = _tmpl$384(), _el$2 = _el$.firstChild; _el$2.firstChild;
|
|
19228
19425
|
insert(_el$2, createComponent(Show, {
|
|
19229
19426
|
get when() {
|
|
19230
19427
|
return !message();
|
|
@@ -19245,7 +19442,7 @@ function ForgotPasswordPage(props) {
|
|
|
19245
19442
|
return error();
|
|
19246
19443
|
},
|
|
19247
19444
|
get children() {
|
|
19248
|
-
var _el$8 = _tmpl$
|
|
19445
|
+
var _el$8 = _tmpl$383();
|
|
19249
19446
|
insert(_el$8, error);
|
|
19250
19447
|
return _el$8;
|
|
19251
19448
|
}
|
|
@@ -19295,9 +19492,9 @@ function inputStyle4() {
|
|
|
19295
19492
|
};
|
|
19296
19493
|
}
|
|
19297
19494
|
delegateEvents(["input"]);
|
|
19298
|
-
var _tmpl$
|
|
19495
|
+
var _tmpl$385 = /* @__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">`);
|
|
19299
19496
|
var _tmpl$2122 = /* @__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">`);
|
|
19300
|
-
var _tmpl$
|
|
19497
|
+
var _tmpl$386 = /* @__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`);
|
|
19301
19498
|
var _tmpl$459 = /* @__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">`);
|
|
19302
19499
|
function queryParam(name) {
|
|
19303
19500
|
if (typeof window === "undefined") return "";
|
|
@@ -19338,7 +19535,7 @@ function ResetPasswordPage(props) {
|
|
|
19338
19535
|
}
|
|
19339
19536
|
}
|
|
19340
19537
|
return (() => {
|
|
19341
|
-
var _el$ = _tmpl$
|
|
19538
|
+
var _el$ = _tmpl$386(), _el$2 = _el$.firstChild; _el$2.firstChild;
|
|
19342
19539
|
insert(_el$2, createComponent(Show, {
|
|
19343
19540
|
get when() {
|
|
19344
19541
|
return !message();
|
|
@@ -19360,7 +19557,7 @@ function ResetPasswordPage(props) {
|
|
|
19360
19557
|
return error();
|
|
19361
19558
|
},
|
|
19362
19559
|
get children() {
|
|
19363
|
-
var _el$1 = _tmpl$
|
|
19560
|
+
var _el$1 = _tmpl$385();
|
|
19364
19561
|
insert(_el$1, error);
|
|
19365
19562
|
return _el$1;
|
|
19366
19563
|
}
|
|
@@ -19415,9 +19612,9 @@ function inputStyle5() {
|
|
|
19415
19612
|
};
|
|
19416
19613
|
}
|
|
19417
19614
|
delegateEvents(["input"]);
|
|
19418
|
-
var _tmpl$
|
|
19615
|
+
var _tmpl$387 = /* @__PURE__ */ template(`<div>`);
|
|
19419
19616
|
var _tmpl$2123 = /* @__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>`);
|
|
19420
|
-
var _tmpl$
|
|
19617
|
+
var _tmpl$388 = /* @__PURE__ */ template(`<button type=button>Back to login`);
|
|
19421
19618
|
var _tmpl$460 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Reset your password`);
|
|
19422
19619
|
var _tmpl$549 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.9rem>`);
|
|
19423
19620
|
function AffiliateForgotPassword(props) {
|
|
@@ -19463,7 +19660,7 @@ function AffiliateForgotPassword(props) {
|
|
|
19463
19660
|
return error();
|
|
19464
19661
|
},
|
|
19465
19662
|
get children() {
|
|
19466
|
-
var _el$8 = _tmpl$
|
|
19663
|
+
var _el$8 = _tmpl$387();
|
|
19467
19664
|
insert(_el$8, error);
|
|
19468
19665
|
effect((_$p) => style(_el$8, errorStyle(), _$p));
|
|
19469
19666
|
return _el$8;
|
|
@@ -19492,7 +19689,7 @@ function AffiliateForgotPassword(props) {
|
|
|
19492
19689
|
return props.onNavigateLogin;
|
|
19493
19690
|
},
|
|
19494
19691
|
get children() {
|
|
19495
|
-
var _el$0 = _tmpl$
|
|
19692
|
+
var _el$0 = _tmpl$388();
|
|
19496
19693
|
_el$0.$$click = () => props.onNavigateLogin?.();
|
|
19497
19694
|
effect((_$p) => style(_el$0, linkStyle2(), _$p));
|
|
19498
19695
|
return _el$0;
|
|
@@ -19598,9 +19795,9 @@ function linkStyle2() {
|
|
|
19598
19795
|
};
|
|
19599
19796
|
}
|
|
19600
19797
|
delegateEvents(["input", "click"]);
|
|
19601
|
-
var _tmpl$
|
|
19798
|
+
var _tmpl$389 = /* @__PURE__ */ template(`<div>`);
|
|
19602
19799
|
var _tmpl$2124 = /* @__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>`);
|
|
19603
|
-
var _tmpl$
|
|
19800
|
+
var _tmpl$390 = /* @__PURE__ */ template(`<div class=app-affiliate-root><div><h1>Choose a new password`);
|
|
19604
19801
|
var _tmpl$461 = /* @__PURE__ */ template(`<p style=margin:0;font-size:0.9rem>Your password has been reset. You can now log in with your new password.`);
|
|
19605
19802
|
function queryParam2(name) {
|
|
19606
19803
|
if (typeof window === "undefined") return "";
|
|
@@ -19645,7 +19842,7 @@ function AffiliateResetPassword(props) {
|
|
|
19645
19842
|
}
|
|
19646
19843
|
}
|
|
19647
19844
|
return (() => {
|
|
19648
|
-
var _el$ = _tmpl$
|
|
19845
|
+
var _el$ = _tmpl$390(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
|
|
19649
19846
|
insert(_el$2, createComponent(Show, {
|
|
19650
19847
|
get when() {
|
|
19651
19848
|
return !done();
|
|
@@ -19679,7 +19876,7 @@ function AffiliateResetPassword(props) {
|
|
|
19679
19876
|
return error();
|
|
19680
19877
|
},
|
|
19681
19878
|
get children() {
|
|
19682
|
-
var _el$9 = _tmpl$
|
|
19879
|
+
var _el$9 = _tmpl$389();
|
|
19683
19880
|
insert(_el$9, error);
|
|
19684
19881
|
effect((_$p) => style(_el$9, errorStyle2(), _$p));
|
|
19685
19882
|
return _el$9;
|
|
@@ -19778,5 +19975,5 @@ function primaryButtonStyle2(submitting) {
|
|
|
19778
19975
|
}
|
|
19779
19976
|
|
|
19780
19977
|
export { AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod };
|
|
19781
|
-
//# sourceMappingURL=
|
|
19782
|
-
//# sourceMappingURL=
|
|
19978
|
+
//# sourceMappingURL=XKCIXSN4.js.map
|
|
19979
|
+
//# sourceMappingURL=XKCIXSN4.js.map
|