@apextelemed/partner-core 0.17.0-dev.52 → 0.17.0-dev.53
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/{TLDELI22.jsx → 2PME7R6L.jsx} +11 -5
- package/dist/chunk/{A6FJGQIS.js → 3VBKKYOR.js} +3 -3
- package/dist/chunk/{A6FJGQIS.js.map → 3VBKKYOR.js.map} +1 -1
- package/dist/chunk/{FXRGPBYU.js → 3VUCQNOR.js} +3 -3
- package/dist/chunk/{FXRGPBYU.js.map → 3VUCQNOR.js.map} +1 -1
- package/dist/chunk/{6V7RVUXX.js → COIUOQOE.js} +3 -3
- package/dist/chunk/{6V7RVUXX.js.map → COIUOQOE.js.map} +1 -1
- package/dist/chunk/{BYDMO5RM.js → DETBZTGQ.js} +12 -6
- package/dist/chunk/DETBZTGQ.js.map +1 -0
- package/dist/chunk/{O7H7DAWO.js → FDCDDUB6.js} +282 -236
- package/dist/chunk/FDCDDUB6.js.map +1 -0
- package/dist/chunk/{2HDMTWLH.js → JDCV4T6O.js} +6 -6
- package/dist/chunk/{2HDMTWLH.js.map → JDCV4T6O.js.map} +1 -1
- package/dist/chunk/{RDZDD5UW.js → NQLBWDE3.js} +2 -2
- package/dist/chunk/{RDZDD5UW.js.map → NQLBWDE3.js.map} +1 -1
- package/dist/chunk/{BJXD2NQQ.jsx → OOCYQ4I6.jsx} +2 -2
- package/dist/chunk/{37UEVJEC.jsx → PDK3JMIW.jsx} +1 -1
- package/dist/chunk/{5HQAA4UO.jsx → PW7F2JMV.jsx} +2 -2
- package/dist/chunk/{FTZ52PMM.jsx → XGCOWLXF.jsx} +2 -2
- package/dist/chunk/{IQDVS3XA.jsx → XZJASVNG.jsx} +5 -5
- package/dist/chunk/{T37L6JE6.jsx → Z745N7NE.jsx} +53 -23
- package/dist/{client-BLh8hFAu.d.ts → client-JZfa9Gbp.d.ts} +14 -1
- package/dist/flows/index.d.ts +12 -3
- package/dist/flows/index.js +6 -6
- package/dist/flows/index.jsx +6 -6
- package/dist/index/index.d.ts +1 -1
- package/dist/index/index.js +7 -7
- package/dist/index/index.jsx +7 -7
- package/dist/pages/index.d.ts +1 -1
- package/dist/pages/index.js +5 -5
- package/dist/pages/index.jsx +5 -5
- package/dist/stores/index.d.ts +1 -1
- package/dist/stores/index.js +2 -2
- package/dist/stores/index.jsx +2 -2
- package/package.json +1 -1
- package/dist/chunk/BYDMO5RM.js.map +0 -1
- package/dist/chunk/O7H7DAWO.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, useStrengthMatches, skuBindingModeFor, isCssColorValue, categoryLabel, formatConversationTime, buildTrackerView, ACCOUNT_SOURCE_LABEL, fmtDay, createCatalogProduct, addCatalogItemAsProduct, applyPriceDrafts, resolveStrengthPrices, invalidDraftKeys, orphanKey, ORPHAN_REASON, useAddPharmacy, READINESS_LABEL, useCatalogConversion, formatCalendarDate, formatMessageTime, formatEventDate, formatStageDate, offerSummaryText, LIFECYCLE_TONE, buildTrackingUrl, buildStrengthRows, isLeftForReview, doseIdOf, 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, useStrengthMatches, skuBindingModeFor, isCssColorValue, categoryLabel, formatConversationTime, buildTrackerView, ACCOUNT_SOURCE_LABEL, fmtDay, createCatalogProduct, addCatalogItemAsProduct, applyPriceDrafts, resolveStrengthPrices, invalidDraftKeys, orphanKey, ORPHAN_REASON, useAddPharmacy, READINESS_LABEL, useCatalogConversion, formatCalendarDate, formatMessageTime, formatEventDate, formatStageDate, offerSummaryText, LIFECYCLE_TONE, buildTrackingUrl, buildStrengthRows, isLeftForReview, doseIdOf, pharmacyLabel, isImageAttachment, buildRefillView, toTrackerRequest, needsReview, visibleWarnings, compareStrengths, MATCH_DEPENDENT_WARNINGS, SOURCE_FIELD_NOTE, MATCH_HOW_LABEL, explainFinding, matchKey } from './DETBZTGQ.js';
|
|
3
|
+
import { fetchFunnelConfig } from './COIUOQOE.js';
|
|
4
4
|
import { usePrimitives } from './67KHO66G.js';
|
|
5
|
-
import { cart_default, auth_default, affiliateAuth_default } from './
|
|
6
|
-
import { usersApi, adminApi, membersApi, offersApi, affiliatePortalApi, authApi, adminAffiliatesApi, apiFetch, apexApi, adminCatalogApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, ApiError, subscriptionsApi } from './
|
|
5
|
+
import { cart_default, auth_default, affiliateAuth_default } from './3VBKKYOR.js';
|
|
6
|
+
import { usersApi, adminApi, membersApi, offersApi, affiliatePortalApi, authApi, adminAffiliatesApi, apiFetch, apexApi, adminCatalogApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, ApiError, subscriptionsApi } from './NQLBWDE3.js';
|
|
7
7
|
import { delegateEvents, createComponent, insert, memo, effect, setStyleProperty, mergeProps, use, setAttribute, addEventListener, style, className, Dynamic, Portal, template } from 'solid-js/web';
|
|
8
8
|
import { createContext, createSignal, createEffect, on, Show, For, createResource, createMemo, untrack, ErrorBoundary, Switch, Match, onMount, onCleanup, useContext, Index } from 'solid-js';
|
|
9
9
|
import { isQuestionVisible } from '@apextelemed/survey-core';
|
|
@@ -14262,12 +14262,12 @@ var _tmpl$632 = /* @__PURE__ */ template(`<strong>`);
|
|
|
14262
14262
|
var _tmpl$730 = /* @__PURE__ */ template(`<span class=app-admin-convert-detail>`);
|
|
14263
14263
|
var _tmpl$826 = /* @__PURE__ */ template(`<div><span>`);
|
|
14264
14264
|
var _tmpl$923 = /* @__PURE__ */ template(`<div class=app-admin-convert-wait role=status aria-live=polite data-testid=add-pharmacy-waiting><div class=app-admin-spinner></div><strong>`);
|
|
14265
|
-
var _tmpl$020 = /* @__PURE__ */ template(`<div class=app-admin-catalog-row__main style=flex-wrap:wrap><span class=app-admin-catalog-row__title style=font-size:0.875rem><span><strong> subscriber</strong> <!> on <strong></strong>. Which strength is that now?</span></span><select class=app-admin-input style=width:auto;min-width:10rem><option value
|
|
14265
|
+
var _tmpl$020 = /* @__PURE__ */ template(`<div class=app-admin-catalog-row__main style=flex-wrap:wrap><span class=app-admin-catalog-row__title style=font-size:0.875rem><span><strong> subscriber</strong> <!> on <strong></strong>. Which strength is that now?</span></span><select class=app-admin-input style=width:auto;min-width:10rem><option value>`);
|
|
14266
14266
|
var _tmpl$1101 = /* @__PURE__ */ template(`<span class=app-admin-text-muted>(<!>)`);
|
|
14267
14267
|
var _tmpl$1015 = /* @__PURE__ */ template(`<div class=app-admin-convert-findings>`);
|
|
14268
14268
|
var _tmpl$1116 = /* @__PURE__ */ template(`<div><h4 class=app-admin-label style="margin:0 0 0.5rem">Strengths and prices</h4><table class=app-admin-table data-testid=add-pharmacy-strengths><thead><tr><th scope=col>Strength</th><th scope=col>Now</th><th scope=col>After saving</th></tr></thead><tbody>`);
|
|
14269
14269
|
var _tmpl$1213 = /* @__PURE__ */ template(`<p role=status aria-live=polite data-testid=add-pharmacy-replanning style="margin:0.25rem 0 0">Updating prices\u2026`);
|
|
14270
|
-
var _tmpl$1311 = /* @__PURE__ */ template(`<div data-testid=add-pharmacy-match><h4 class=app-admin-label style="margin:0 0 0.5rem">Subscribers on strengths that changed</h4><ul class=app-admin-catalog-list style=margin:0></ul><p class=app-admin-text-muted style="margin:0.5rem 0 0"
|
|
14270
|
+
var _tmpl$1311 = /* @__PURE__ */ template(`<div data-testid=add-pharmacy-match><h4 class=app-admin-label style="margin:0 0 0.5rem">Subscribers on strengths that changed</h4><ul class=app-admin-catalog-list style=margin:0></ul><p class=app-admin-text-muted style="margin:0.5rem 0 0">`);
|
|
14271
14271
|
var _tmpl$1411 = /* @__PURE__ */ template(`<div><h4 class=app-admin-label style="margin:0 0 0.25rem">Set a price for each new strength</h4><p>A strength can't be sold until it has a price. The member price is optional.</p><ul class=app-admin-catalog-list style=margin:0>`);
|
|
14272
14272
|
var _tmpl$1511 = /* @__PURE__ */ template(`<div class=app-admin-convert data-testid=add-pharmacy-review><p style=margin:0;font-size:0.875rem>Adding <strong></strong> to <!>.`);
|
|
14273
14273
|
var _tmpl$1611 = /* @__PURE__ */ template(`<button type=button class=app-admin-banner__dismiss aria-label=Dismiss>\xD7`);
|
|
@@ -14456,13 +14456,14 @@ function MatchQuestion(props) {
|
|
|
14456
14456
|
insert(_el$32, name);
|
|
14457
14457
|
insert(_el$27, createComponent(Show, {
|
|
14458
14458
|
get when() {
|
|
14459
|
-
return q().price != null;
|
|
14459
|
+
return memo(() => !!!props.flatFee)() && q().price != null;
|
|
14460
14460
|
},
|
|
14461
14461
|
get children() {
|
|
14462
14462
|
return [" \u2014 ", memo(() => fmtPrice(q().price))];
|
|
14463
14463
|
}
|
|
14464
14464
|
}), _el$33);
|
|
14465
14465
|
_el$35.addEventListener("change", (e) => props.flow.setMatchAnswer(q().source, e.currentTarget.value === "" ? null : e.currentTarget.value));
|
|
14466
|
+
insert(_el$36, () => props.flatFee ? "Not matched" : "Leave for review");
|
|
14466
14467
|
insert(_el$35, createComponent(For, {
|
|
14467
14468
|
get each() {
|
|
14468
14469
|
return props.options;
|
|
@@ -14519,30 +14520,30 @@ function Review(props) {
|
|
|
14519
14520
|
},
|
|
14520
14521
|
keyed: true,
|
|
14521
14522
|
children: (n) => (() => {
|
|
14522
|
-
var _el$
|
|
14523
|
-
insert(_el$
|
|
14524
|
-
insert(_el$
|
|
14523
|
+
var _el$67 = _tmpl$1711(), _el$68 = _el$67.firstChild;
|
|
14524
|
+
insert(_el$68, () => n.message);
|
|
14525
|
+
insert(_el$67, createComponent(Show, {
|
|
14525
14526
|
get when() {
|
|
14526
14527
|
return n.tone !== "danger";
|
|
14527
14528
|
},
|
|
14528
14529
|
get children() {
|
|
14529
|
-
var _el$
|
|
14530
|
-
_el$
|
|
14531
|
-
return _el$
|
|
14530
|
+
var _el$69 = _tmpl$1611();
|
|
14531
|
+
_el$69.$$click = () => flow.dismissNotice();
|
|
14532
|
+
return _el$69;
|
|
14532
14533
|
}
|
|
14533
14534
|
}), null);
|
|
14534
14535
|
effect((_p$) => {
|
|
14535
14536
|
var _v$10 = `app-admin-banner app-admin-banner--${n.tone}`, _v$11 = n.tone === "danger" ? "alert" : "status", _v$12 = n.code;
|
|
14536
|
-
_v$10 !== _p$.e && className(_el$
|
|
14537
|
-
_v$11 !== _p$.t && setAttribute(_el$
|
|
14538
|
-
_v$12 !== _p$.a && setAttribute(_el$
|
|
14537
|
+
_v$10 !== _p$.e && className(_el$67, _p$.e = _v$10);
|
|
14538
|
+
_v$11 !== _p$.t && setAttribute(_el$67, "role", _p$.t = _v$11);
|
|
14539
|
+
_v$12 !== _p$.a && setAttribute(_el$67, "data-code", _p$.a = _v$12);
|
|
14539
14540
|
return _p$;
|
|
14540
14541
|
}, {
|
|
14541
14542
|
e: void 0,
|
|
14542
14543
|
t: void 0,
|
|
14543
14544
|
a: void 0
|
|
14544
14545
|
});
|
|
14545
|
-
return _el$
|
|
14546
|
+
return _el$67;
|
|
14546
14547
|
})()
|
|
14547
14548
|
}), null);
|
|
14548
14549
|
insert(_el$38, createComponent(Show, {
|
|
@@ -14592,23 +14593,23 @@ function Review(props) {
|
|
|
14592
14593
|
return compareStrengths(p());
|
|
14593
14594
|
},
|
|
14594
14595
|
children: (row) => (() => {
|
|
14595
|
-
var _el$
|
|
14596
|
-
insert(_el$
|
|
14597
|
-
insert(_el$
|
|
14596
|
+
var _el$70 = _tmpl$1811(), _el$71 = _el$70.firstChild, _el$72 = _el$71.nextSibling, _el$73 = _el$72.nextSibling, _el$74 = _el$73.firstChild;
|
|
14597
|
+
insert(_el$71, () => row.dosage);
|
|
14598
|
+
insert(_el$72, (() => {
|
|
14598
14599
|
var _c$2 = memo(() => row.before === void 0);
|
|
14599
14600
|
return () => _c$2() ? "Not sold" : priceText(row.before);
|
|
14600
14601
|
})());
|
|
14601
|
-
insert(_el$
|
|
14602
|
+
insert(_el$74, (() => {
|
|
14602
14603
|
var _c$3 = memo(() => row.after == null);
|
|
14603
14604
|
return () => _c$3() ? "Needs a price" : fmtPrice(row.after);
|
|
14604
14605
|
})());
|
|
14605
|
-
insert(_el$
|
|
14606
|
+
insert(_el$73, createComponent(Show, {
|
|
14606
14607
|
get when() {
|
|
14607
14608
|
return row.isNew;
|
|
14608
14609
|
},
|
|
14609
14610
|
children: " (new)"
|
|
14610
14611
|
}), null);
|
|
14611
|
-
return _el$
|
|
14612
|
+
return _el$70;
|
|
14612
14613
|
})()
|
|
14613
14614
|
}));
|
|
14614
14615
|
return _el$52;
|
|
@@ -14619,38 +14620,51 @@ function Review(props) {
|
|
|
14619
14620
|
return (p().matchQuestions ?? []).length > 0;
|
|
14620
14621
|
},
|
|
14621
14622
|
get children() {
|
|
14622
|
-
var _el$57 = _tmpl$1311(), _el$58 = _el$57.firstChild
|
|
14623
|
-
insert(_el$
|
|
14623
|
+
var _el$57 = _tmpl$1311(), _el$58 = _el$57.firstChild; _el$58.firstChild; var _el$60 = _el$58.nextSibling, _el$61 = _el$60.nextSibling;
|
|
14624
|
+
insert(_el$58, () => p().flatFee ? " (optional)" : "", null);
|
|
14625
|
+
insert(_el$60, createComponent(Index, {
|
|
14624
14626
|
get each() {
|
|
14625
14627
|
return p().matchQuestions;
|
|
14626
14628
|
},
|
|
14627
14629
|
children: (q) => (() => {
|
|
14628
|
-
var _el$
|
|
14629
|
-
insert(_el$
|
|
14630
|
+
var _el$75 = _tmpl$1910();
|
|
14631
|
+
insert(_el$75, createComponent(MatchQuestion, {
|
|
14630
14632
|
flow,
|
|
14631
14633
|
get question() {
|
|
14632
14634
|
return q();
|
|
14633
14635
|
},
|
|
14634
14636
|
get options() {
|
|
14635
14637
|
return p().doseOptions ?? [];
|
|
14638
|
+
},
|
|
14639
|
+
get flatFee() {
|
|
14640
|
+
return p().flatFee === true;
|
|
14636
14641
|
}
|
|
14637
14642
|
}));
|
|
14638
|
-
return _el$
|
|
14643
|
+
return _el$75;
|
|
14639
14644
|
})()
|
|
14640
14645
|
}));
|
|
14646
|
+
insert(_el$61, createComponent(Show, {
|
|
14647
|
+
get when() {
|
|
14648
|
+
return p().flatFee;
|
|
14649
|
+
},
|
|
14650
|
+
get fallback() {
|
|
14651
|
+
return "Picking a strength keeps these subscribers\u2019 refills on it and carries the old price over. Left for review, their refills still go out but are flagged for a person to check. You can change this later on the product.";
|
|
14652
|
+
},
|
|
14653
|
+
children: "This product charges one price, so this doesn\u2019t affect refills today. It\u2019s used if you switch to per-strength pricing, and you can change it later on the product."
|
|
14654
|
+
}));
|
|
14641
14655
|
insert(_el$57, createComponent(Show, {
|
|
14642
14656
|
get when() {
|
|
14643
14657
|
return flow.replanning();
|
|
14644
14658
|
},
|
|
14645
14659
|
get children() {
|
|
14646
|
-
var _el$
|
|
14647
|
-
effect((_$p) => style(_el$
|
|
14660
|
+
var _el$62 = _tmpl$1213();
|
|
14661
|
+
effect((_$p) => style(_el$62, {
|
|
14648
14662
|
...hint2
|
|
14649
14663
|
}, _$p));
|
|
14650
|
-
return _el$
|
|
14664
|
+
return _el$62;
|
|
14651
14665
|
}
|
|
14652
14666
|
}), null);
|
|
14653
|
-
effect((_$p) => style(_el$
|
|
14667
|
+
effect((_$p) => style(_el$61, {
|
|
14654
14668
|
...hint2
|
|
14655
14669
|
}, _$p));
|
|
14656
14670
|
return _el$57;
|
|
@@ -14661,8 +14675,8 @@ function Review(props) {
|
|
|
14661
14675
|
return p().pricesRequired.length > 0;
|
|
14662
14676
|
},
|
|
14663
14677
|
get children() {
|
|
14664
|
-
var _el$
|
|
14665
|
-
insert(_el$
|
|
14678
|
+
var _el$63 = _tmpl$1411(), _el$64 = _el$63.firstChild, _el$65 = _el$64.nextSibling, _el$66 = _el$65.nextSibling;
|
|
14679
|
+
insert(_el$66, createComponent(For, {
|
|
14666
14680
|
get each() {
|
|
14667
14681
|
return p().pricesRequired;
|
|
14668
14682
|
},
|
|
@@ -14670,21 +14684,21 @@ function Review(props) {
|
|
|
14670
14684
|
const invalid = () => flow.flagged().has(r.doseId) || (flow.prices()[r.doseId] ?? "").trim() !== "" && flow.missing().includes(r.doseId);
|
|
14671
14685
|
const savingsBad = () => flow.savingsInvalid().includes(r.doseId);
|
|
14672
14686
|
return (() => {
|
|
14673
|
-
var _el$
|
|
14674
|
-
insert(_el$
|
|
14675
|
-
_el$
|
|
14676
|
-
_el$
|
|
14677
|
-
insert(_el$
|
|
14687
|
+
var _el$76 = _tmpl$2211(), _el$77 = _el$76.firstChild, _el$78 = _el$77.firstChild, _el$79 = _el$78.firstChild, _el$80 = _el$78.nextSibling, _el$81 = _el$80.firstChild, _el$82 = _el$81.nextSibling;
|
|
14688
|
+
insert(_el$79, () => r.dosage);
|
|
14689
|
+
_el$81.$$input = (e) => flow.setPrice(r.doseId, e.currentTarget.value);
|
|
14690
|
+
_el$82.$$input = (e) => flow.setSavingsPrice(r.doseId, e.currentTarget.value);
|
|
14691
|
+
insert(_el$76, createComponent(Show, {
|
|
14678
14692
|
get when() {
|
|
14679
14693
|
return invalid();
|
|
14680
14694
|
},
|
|
14681
14695
|
get children() {
|
|
14682
|
-
var _el$
|
|
14683
|
-
insert(_el$
|
|
14684
|
-
return _el$
|
|
14696
|
+
var _el$83 = _tmpl$2010(), _el$84 = _el$83.firstChild, _el$86 = _el$84.nextSibling; _el$86.nextSibling;
|
|
14697
|
+
insert(_el$83, () => r.dosage, _el$86);
|
|
14698
|
+
return _el$83;
|
|
14685
14699
|
}
|
|
14686
14700
|
}), null);
|
|
14687
|
-
insert(_el$
|
|
14701
|
+
insert(_el$76, createComponent(Show, {
|
|
14688
14702
|
get when() {
|
|
14689
14703
|
return savingsBad();
|
|
14690
14704
|
},
|
|
@@ -14694,13 +14708,13 @@ function Review(props) {
|
|
|
14694
14708
|
}), null);
|
|
14695
14709
|
effect((_p$) => {
|
|
14696
14710
|
var _v$13 = !!invalid(), _v$14 = `Price for ${r.dosage}`, _v$15 = invalid() ? "true" : void 0, _v$16 = flow.state().kind === "saving", _v$17 = `Member price for ${r.dosage} (optional)`, _v$18 = savingsBad() ? "true" : void 0, _v$19 = flow.state().kind === "saving";
|
|
14697
|
-
_v$13 !== _p$.e && _el$
|
|
14698
|
-
_v$14 !== _p$.t && setAttribute(_el$
|
|
14699
|
-
_v$15 !== _p$.a && setAttribute(_el$
|
|
14700
|
-
_v$16 !== _p$.o && (_el$
|
|
14701
|
-
_v$17 !== _p$.i && setAttribute(_el$
|
|
14702
|
-
_v$18 !== _p$.n && setAttribute(_el$
|
|
14703
|
-
_v$19 !== _p$.s && (_el$
|
|
14711
|
+
_v$13 !== _p$.e && _el$76.classList.toggle("is-flagged", _p$.e = _v$13);
|
|
14712
|
+
_v$14 !== _p$.t && setAttribute(_el$81, "aria-label", _p$.t = _v$14);
|
|
14713
|
+
_v$15 !== _p$.a && setAttribute(_el$81, "aria-invalid", _p$.a = _v$15);
|
|
14714
|
+
_v$16 !== _p$.o && (_el$81.disabled = _p$.o = _v$16);
|
|
14715
|
+
_v$17 !== _p$.i && setAttribute(_el$82, "aria-label", _p$.i = _v$17);
|
|
14716
|
+
_v$18 !== _p$.n && setAttribute(_el$82, "aria-invalid", _p$.n = _v$18);
|
|
14717
|
+
_v$19 !== _p$.s && (_el$82.disabled = _p$.s = _v$19);
|
|
14704
14718
|
return _p$;
|
|
14705
14719
|
}, {
|
|
14706
14720
|
e: void 0,
|
|
@@ -14711,14 +14725,14 @@ function Review(props) {
|
|
|
14711
14725
|
n: void 0,
|
|
14712
14726
|
s: void 0
|
|
14713
14727
|
});
|
|
14714
|
-
effect(() => _el$
|
|
14715
|
-
effect(() => _el$
|
|
14716
|
-
return _el$
|
|
14728
|
+
effect(() => _el$81.value = flow.prices()[r.doseId] ?? "");
|
|
14729
|
+
effect(() => _el$82.value = flow.savingsPrices()[r.doseId] ?? "");
|
|
14730
|
+
return _el$76;
|
|
14717
14731
|
})();
|
|
14718
14732
|
}
|
|
14719
14733
|
}));
|
|
14720
|
-
effect((_$p) => style(_el$
|
|
14721
|
-
return _el$
|
|
14734
|
+
effect((_$p) => style(_el$65, hint2, _$p));
|
|
14735
|
+
return _el$63;
|
|
14722
14736
|
}
|
|
14723
14737
|
}), null);
|
|
14724
14738
|
return _el$38;
|
|
@@ -14760,9 +14774,9 @@ function AddPharmacyDialog(props) {
|
|
|
14760
14774
|
return kind() === "planning";
|
|
14761
14775
|
},
|
|
14762
14776
|
get children() {
|
|
14763
|
-
var _el$
|
|
14764
|
-
_el$
|
|
14765
|
-
return _el$
|
|
14777
|
+
var _el$88 = _tmpl$2310();
|
|
14778
|
+
_el$88.$$click = () => flow.cancel();
|
|
14779
|
+
return _el$88;
|
|
14766
14780
|
}
|
|
14767
14781
|
}), createComponent(Match, {
|
|
14768
14782
|
get when() {
|
|
@@ -14770,22 +14784,22 @@ function AddPharmacyDialog(props) {
|
|
|
14770
14784
|
},
|
|
14771
14785
|
get children() {
|
|
14772
14786
|
return [(() => {
|
|
14773
|
-
var _el$
|
|
14774
|
-
_el$
|
|
14775
|
-
return _el$
|
|
14787
|
+
var _el$89 = _tmpl$2310();
|
|
14788
|
+
_el$89.$$click = () => flow.cancel();
|
|
14789
|
+
return _el$89;
|
|
14776
14790
|
})(), (() => {
|
|
14777
|
-
var _el$
|
|
14778
|
-
_el$
|
|
14791
|
+
var _el$90 = _tmpl$2410();
|
|
14792
|
+
_el$90.$$click = () => void flow.save();
|
|
14779
14793
|
effect((_p$) => {
|
|
14780
14794
|
var _v$20 = !flow.canSave(), _v$21 = flow.canSave() ? void 0 : "Resolve what is shown above first";
|
|
14781
|
-
_v$20 !== _p$.e && (_el$
|
|
14782
|
-
_v$21 !== _p$.t && setAttribute(_el$
|
|
14795
|
+
_v$20 !== _p$.e && (_el$90.disabled = _p$.e = _v$20);
|
|
14796
|
+
_v$21 !== _p$.t && setAttribute(_el$90, "title", _p$.t = _v$21);
|
|
14783
14797
|
return _p$;
|
|
14784
14798
|
}, {
|
|
14785
14799
|
e: void 0,
|
|
14786
14800
|
t: void 0
|
|
14787
14801
|
});
|
|
14788
|
-
return _el$
|
|
14802
|
+
return _el$90;
|
|
14789
14803
|
})()];
|
|
14790
14804
|
}
|
|
14791
14805
|
}), createComponent(Match, {
|
|
@@ -14794,17 +14808,17 @@ function AddPharmacyDialog(props) {
|
|
|
14794
14808
|
},
|
|
14795
14809
|
get children() {
|
|
14796
14810
|
return [(() => {
|
|
14797
|
-
var _el$
|
|
14798
|
-
_el$
|
|
14799
|
-
return _el$
|
|
14811
|
+
var _el$91 = _tmpl$2510();
|
|
14812
|
+
_el$91.$$click = () => flow.cancel();
|
|
14813
|
+
return _el$91;
|
|
14800
14814
|
})(), createComponent(Show, {
|
|
14801
14815
|
get when() {
|
|
14802
14816
|
return !flow.state().unconfirmed;
|
|
14803
14817
|
},
|
|
14804
14818
|
get children() {
|
|
14805
|
-
var _el$
|
|
14806
|
-
_el$
|
|
14807
|
-
return _el$
|
|
14819
|
+
var _el$92 = _tmpl$2610();
|
|
14820
|
+
_el$92.$$click = () => flow.backToPicking();
|
|
14821
|
+
return _el$92;
|
|
14808
14822
|
}
|
|
14809
14823
|
}), createComponent(Show, {
|
|
14810
14824
|
get when() {
|
|
@@ -14812,13 +14826,13 @@ function AddPharmacyDialog(props) {
|
|
|
14812
14826
|
},
|
|
14813
14827
|
get children() {
|
|
14814
14828
|
return [(() => {
|
|
14815
|
-
var _el$
|
|
14816
|
-
_el$
|
|
14817
|
-
return _el$92;
|
|
14818
|
-
})(), (() => {
|
|
14819
|
-
var _el$93 = _tmpl$285();
|
|
14820
|
-
_el$93.$$click = () => void flow.retry();
|
|
14829
|
+
var _el$93 = _tmpl$278();
|
|
14830
|
+
_el$93.$$click = () => void flow.startOver();
|
|
14821
14831
|
return _el$93;
|
|
14832
|
+
})(), (() => {
|
|
14833
|
+
var _el$94 = _tmpl$285();
|
|
14834
|
+
_el$94.$$click = () => void flow.retry();
|
|
14835
|
+
return _el$94;
|
|
14822
14836
|
})()];
|
|
14823
14837
|
}
|
|
14824
14838
|
}), createComponent(Show, {
|
|
@@ -14826,9 +14840,9 @@ function AddPharmacyDialog(props) {
|
|
|
14826
14840
|
return memo(() => !!!flow.state().unconfirmed)() && flow.state().canRetry;
|
|
14827
14841
|
},
|
|
14828
14842
|
get children() {
|
|
14829
|
-
var _el$
|
|
14830
|
-
_el$
|
|
14831
|
-
return _el$
|
|
14843
|
+
var _el$95 = _tmpl$295();
|
|
14844
|
+
_el$95.$$click = () => void flow.retry();
|
|
14845
|
+
return _el$95;
|
|
14832
14846
|
}
|
|
14833
14847
|
})];
|
|
14834
14848
|
}
|
|
@@ -14871,36 +14885,36 @@ function AddPharmacyDialog(props) {
|
|
|
14871
14885
|
return memo(() => kind() === "reviewing")() && simple();
|
|
14872
14886
|
},
|
|
14873
14887
|
get children() {
|
|
14874
|
-
var _el$
|
|
14875
|
-
insert(_el$
|
|
14888
|
+
var _el$96 = _tmpl$304(), _el$97 = _el$96.firstChild, _el$98 = _el$97.firstChild, _el$99 = _el$98.nextSibling, _el$100 = _el$99.nextSibling, _el$102 = _el$100.nextSibling; _el$102.nextSibling; var _el$103 = _el$97.nextSibling;
|
|
14889
|
+
insert(_el$96, createComponent(Show, {
|
|
14876
14890
|
get when() {
|
|
14877
14891
|
return flow.notice();
|
|
14878
14892
|
},
|
|
14879
14893
|
keyed: true,
|
|
14880
14894
|
children: (n) => (() => {
|
|
14881
|
-
var _el$
|
|
14882
|
-
insert(_el$
|
|
14895
|
+
var _el$107 = _tmpl$3310(), _el$108 = _el$107.firstChild;
|
|
14896
|
+
insert(_el$108, () => n.message);
|
|
14883
14897
|
effect((_p$) => {
|
|
14884
14898
|
var _v$22 = `app-admin-banner app-admin-banner--${n.tone}`, _v$23 = n.code;
|
|
14885
|
-
_v$22 !== _p$.e && className(_el$
|
|
14886
|
-
_v$23 !== _p$.t && setAttribute(_el$
|
|
14899
|
+
_v$22 !== _p$.e && className(_el$107, _p$.e = _v$22);
|
|
14900
|
+
_v$23 !== _p$.t && setAttribute(_el$107, "data-code", _p$.t = _v$23);
|
|
14887
14901
|
return _p$;
|
|
14888
14902
|
}, {
|
|
14889
14903
|
e: void 0,
|
|
14890
14904
|
t: void 0
|
|
14891
14905
|
});
|
|
14892
|
-
return _el$
|
|
14906
|
+
return _el$107;
|
|
14893
14907
|
})()
|
|
14894
|
-
}), _el$
|
|
14895
|
-
insert(_el$
|
|
14908
|
+
}), _el$97);
|
|
14909
|
+
insert(_el$99, (() => {
|
|
14896
14910
|
var _c$4 = memo(() => !!reviewPlan());
|
|
14897
14911
|
return () => _c$4() ? pharmacyLabel(reviewPlan()) : "";
|
|
14898
14912
|
})());
|
|
14899
|
-
insert(_el$
|
|
14900
|
-
effect((_$p) => style(_el$
|
|
14913
|
+
insert(_el$97, () => props.productName, _el$102);
|
|
14914
|
+
effect((_$p) => style(_el$103, {
|
|
14901
14915
|
...hint2
|
|
14902
14916
|
}, _$p));
|
|
14903
|
-
return _el$
|
|
14917
|
+
return _el$96;
|
|
14904
14918
|
}
|
|
14905
14919
|
}), createComponent(Match, {
|
|
14906
14920
|
get when() {
|
|
@@ -14922,11 +14936,11 @@ function AddPharmacyDialog(props) {
|
|
|
14922
14936
|
return createComponent(Waiting, {
|
|
14923
14937
|
title: "Saving\u2026 this can take up to a minute. Don\u2019t close this page.",
|
|
14924
14938
|
get children() {
|
|
14925
|
-
var _el$
|
|
14926
|
-
effect((_$p) => style(_el$
|
|
14939
|
+
var _el$104 = _tmpl$3111();
|
|
14940
|
+
effect((_$p) => style(_el$104, {
|
|
14927
14941
|
...hint2
|
|
14928
14942
|
}, _$p));
|
|
14929
|
-
return _el$
|
|
14943
|
+
return _el$104;
|
|
14930
14944
|
}
|
|
14931
14945
|
});
|
|
14932
14946
|
}
|
|
@@ -14935,9 +14949,9 @@ function AddPharmacyDialog(props) {
|
|
|
14935
14949
|
return kind() === "failed";
|
|
14936
14950
|
},
|
|
14937
14951
|
get children() {
|
|
14938
|
-
var _el$
|
|
14939
|
-
insert(_el$
|
|
14940
|
-
return _el$
|
|
14952
|
+
var _el$105 = _tmpl$3210(), _el$106 = _el$105.firstChild;
|
|
14953
|
+
insert(_el$106, () => flow.state().message);
|
|
14954
|
+
return _el$105;
|
|
14941
14955
|
}
|
|
14942
14956
|
})];
|
|
14943
14957
|
}
|
|
@@ -14956,8 +14970,8 @@ function SinglePharmacySection(props) {
|
|
|
14956
14970
|
const rows = () => props.product.pharmacies ?? [];
|
|
14957
14971
|
const excluded = createMemo(() => new Set(rows().flatMap((p) => p.pharmacyId ? [p.pharmacyId] : [])));
|
|
14958
14972
|
return (() => {
|
|
14959
|
-
var _el$
|
|
14960
|
-
insert(_el$
|
|
14973
|
+
var _el$109 = _tmpl$363(), _el$110 = _el$109.firstChild, _el$111 = _el$110.firstChild, _el$112 = _el$111.nextSibling, _el$113 = _el$110.nextSibling; _el$113.firstChild;
|
|
14974
|
+
insert(_el$112, createComponent(AddPharmacyButton, {
|
|
14961
14975
|
flow,
|
|
14962
14976
|
get unsaved() {
|
|
14963
14977
|
return props.unsaved;
|
|
@@ -14967,7 +14981,7 @@ function SinglePharmacySection(props) {
|
|
|
14967
14981
|
},
|
|
14968
14982
|
describedBy: "product-pharmacies-hint"
|
|
14969
14983
|
}));
|
|
14970
|
-
insert(_el$
|
|
14984
|
+
insert(_el$113, createComponent(Show, {
|
|
14971
14985
|
get when() {
|
|
14972
14986
|
return props.unsaved;
|
|
14973
14987
|
},
|
|
@@ -14975,7 +14989,7 @@ function SinglePharmacySection(props) {
|
|
|
14975
14989
|
return _tmpl$3410();
|
|
14976
14990
|
}
|
|
14977
14991
|
}), null);
|
|
14978
|
-
insert(_el$
|
|
14992
|
+
insert(_el$109, createComponent(Show, {
|
|
14979
14993
|
get when() {
|
|
14980
14994
|
return known();
|
|
14981
14995
|
},
|
|
@@ -14991,36 +15005,36 @@ function SinglePharmacySection(props) {
|
|
|
14991
15005
|
return _tmpl$382();
|
|
14992
15006
|
},
|
|
14993
15007
|
get children() {
|
|
14994
|
-
var _el$
|
|
14995
|
-
insert(_el$
|
|
15008
|
+
var _el$117 = _tmpl$353();
|
|
15009
|
+
insert(_el$117, createComponent(For, {
|
|
14996
15010
|
get each() {
|
|
14997
15011
|
return rows();
|
|
14998
15012
|
},
|
|
14999
15013
|
children: (p) => (() => {
|
|
15000
|
-
var _el$
|
|
15001
|
-
insert(_el$
|
|
15002
|
-
insert(_el$
|
|
15003
|
-
insert(_el$
|
|
15014
|
+
var _el$120 = _tmpl$402(), _el$121 = _el$120.firstChild, _el$122 = _el$121.firstChild, _el$123 = _el$122.nextSibling, _el$124 = _el$123.firstChild, _el$126 = _el$124.nextSibling; _el$126.firstChild;
|
|
15015
|
+
insert(_el$122, () => p.rank);
|
|
15016
|
+
insert(_el$124, () => p.pharmacyName ?? p.drugName ?? "Pharmacy");
|
|
15017
|
+
insert(_el$123, createComponent(Show, {
|
|
15004
15018
|
get when() {
|
|
15005
15019
|
return memo(() => !!p.pharmacyName)() && p.drugName;
|
|
15006
15020
|
},
|
|
15007
15021
|
get children() {
|
|
15008
|
-
var _el$
|
|
15009
|
-
insert(_el$
|
|
15010
|
-
return _el$
|
|
15022
|
+
var _el$125 = _tmpl$392();
|
|
15023
|
+
insert(_el$125, () => p.drugName);
|
|
15024
|
+
return _el$125;
|
|
15011
15025
|
}
|
|
15012
|
-
}), _el$
|
|
15013
|
-
insert(_el$
|
|
15014
|
-
effect(() => _el$
|
|
15015
|
-
return _el$
|
|
15026
|
+
}), _el$126);
|
|
15027
|
+
insert(_el$126, () => p.rank, null);
|
|
15028
|
+
effect(() => _el$120.classList.toggle("is-muted", !p.enabled));
|
|
15029
|
+
return _el$120;
|
|
15016
15030
|
})()
|
|
15017
15031
|
}));
|
|
15018
|
-
return _el$
|
|
15032
|
+
return _el$117;
|
|
15019
15033
|
}
|
|
15020
15034
|
});
|
|
15021
15035
|
}
|
|
15022
15036
|
}), null);
|
|
15023
|
-
insert(_el$
|
|
15037
|
+
insert(_el$109, createComponent(Show, {
|
|
15024
15038
|
get when() {
|
|
15025
15039
|
return flow.state().kind === "picking";
|
|
15026
15040
|
},
|
|
@@ -15033,13 +15047,13 @@ function SinglePharmacySection(props) {
|
|
|
15033
15047
|
});
|
|
15034
15048
|
}
|
|
15035
15049
|
}), null);
|
|
15036
|
-
insert(_el$
|
|
15050
|
+
insert(_el$109, createComponent(AddPharmacyDialog, {
|
|
15037
15051
|
flow,
|
|
15038
15052
|
get productName() {
|
|
15039
15053
|
return props.product.name;
|
|
15040
15054
|
}
|
|
15041
15055
|
}), null);
|
|
15042
|
-
return _el$
|
|
15056
|
+
return _el$109;
|
|
15043
15057
|
})();
|
|
15044
15058
|
}
|
|
15045
15059
|
delegateEvents(["click", "input"]);
|
|
@@ -16219,18 +16233,21 @@ function NewCatalogProductDialog(props) {
|
|
|
16219
16233
|
delegateEvents(["click", "input"]);
|
|
16220
16234
|
var _tmpl$281 = /* @__PURE__ */ template(`<strong style=font-size:0.6875rem>`);
|
|
16221
16235
|
var _tmpl$287 = /* @__PURE__ */ template(`<div class="app-admin-banner app-admin-banner--warn"role=group data-testid=strength-match-decision style=flex-direction:column;align-items:flex-start><span><strong></strong> has no price of its own. Sell it at the old price of <strong></strong>?</span><span class=app-admin-catalog-row__controls><button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm">Use </button><button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm">Don't use it</button><button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm">Cancel</button></span><span class=app-admin-text-muted style=font-size:0.6875rem>If you don't use it, <!> has no price until one is set in Strengths.`);
|
|
16222
|
-
var _tmpl$355 = /* @__PURE__ */ template(`<span
|
|
16223
|
-
var _tmpl$444 = /* @__PURE__ */ template(`<
|
|
16224
|
-
var _tmpl$539 = /* @__PURE__ */ template(`<
|
|
16225
|
-
var _tmpl$635 = /* @__PURE__ */ template(`<option>`);
|
|
16226
|
-
var _tmpl$732 = /* @__PURE__ */ template(`<
|
|
16227
|
-
var _tmpl$828 = /* @__PURE__ */ template(`<
|
|
16228
|
-
var _tmpl$925 = /* @__PURE__ */ template(`<
|
|
16229
|
-
var _tmpl$022 = /* @__PURE__ */ template(`<
|
|
16230
|
-
var _tmpl$1103 = /* @__PURE__ */ template(`<
|
|
16231
|
-
var _tmpl$1017 = /* @__PURE__ */ template(`<p
|
|
16232
|
-
var _tmpl$1118 = /* @__PURE__ */ template(`<
|
|
16233
|
-
var _tmpl$1215 = /* @__PURE__ */ template(`<
|
|
16236
|
+
var _tmpl$355 = /* @__PURE__ */ template(`<span><strong> subscriber</strong> on <strong>`);
|
|
16237
|
+
var _tmpl$444 = /* @__PURE__ */ template(`<span class="app-admin-badge app-admin-badge--warning">Needs review`);
|
|
16238
|
+
var _tmpl$539 = /* @__PURE__ */ template(`<div class=app-admin-field-error role=alert>`);
|
|
16239
|
+
var _tmpl$635 = /* @__PURE__ */ template(`<li class=app-admin-catalog-row data-testid=strength-match-row><div class=app-admin-catalog-row__main style=flex-wrap:wrap><span class=app-admin-catalog-row__title style=font-size:0.875rem></span><select class=app-admin-input style=width:auto;min-width:10rem><option value>`);
|
|
16240
|
+
var _tmpl$732 = /* @__PURE__ */ template(`<span><strong></strong> \u2014 no subscribers on it right now`);
|
|
16241
|
+
var _tmpl$828 = /* @__PURE__ */ template(`<option>`);
|
|
16242
|
+
var _tmpl$925 = /* @__PURE__ */ template(`<div class=app-admin-catalog-block__head><h3 class=app-admin-label id=strength-matches-title style=margin:0>Subscribers' strengths`);
|
|
16243
|
+
var _tmpl$022 = /* @__PURE__ */ template(`<span class=app-admin-text-muted data-testid=strength-matches-flat-fee-note>This product charges one price, so this doesn't affect refills today. It's used if you switch to per-strength pricing.`);
|
|
16244
|
+
var _tmpl$1103 = /* @__PURE__ */ template(`<strong>`);
|
|
16245
|
+
var _tmpl$1017 = /* @__PURE__ */ template(`<p id=strength-matches-hint> `);
|
|
16246
|
+
var _tmpl$1118 = /* @__PURE__ */ template(`<ul class=app-admin-catalog-list aria-label="Older strengths subscribers are on">`);
|
|
16247
|
+
var _tmpl$1215 = /* @__PURE__ */ template(`<section class=app-admin-catalog-block aria-labelledby=strength-matches-title data-testid=strength-matches>`);
|
|
16248
|
+
var _tmpl$1313 = /* @__PURE__ */ template(`<p class=app-admin-catalog-hint>`);
|
|
16249
|
+
var _tmpl$1413 = /* @__PURE__ */ template(`<div role=status data-testid=strength-matches-failed><h3 class=app-admin-label id=strength-matches-title style="margin:0 0 0.25rem">Subscribers' strengths</h3><p class=app-admin-catalog-hint>Couldn't load subscribers' strengths. <button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm">Try again`);
|
|
16250
|
+
var _tmpl$1513 = /* @__PURE__ */ template(`<div class="app-admin-banner app-admin-banner--warn"role=status data-testid=strength-matches-notice><span></span><button type=button class=app-admin-banner__dismiss aria-label=Dismiss>\xD7`);
|
|
16234
16251
|
var hint4 = {
|
|
16235
16252
|
"font-size": "0.6875rem",
|
|
16236
16253
|
color: "var(--app-admin-fg-muted)",
|
|
@@ -16238,7 +16255,7 @@ var hint4 = {
|
|
|
16238
16255
|
"line-height": 1.4
|
|
16239
16256
|
};
|
|
16240
16257
|
var idPart = (s) => s.replace(/[^A-Za-z0-9_-]/g, "_");
|
|
16241
|
-
var optionLabel = (o) => `${o.label} \u2014 ${o.price == null ? "no price yet" : fmtPrice(o.price)}`;
|
|
16258
|
+
var optionLabel = (o, flatFee) => flatFee ? o.label : `${o.label} \u2014 ${o.price == null ? "no price yet" : fmtPrice(o.price)}`;
|
|
16242
16259
|
function refocus(el) {
|
|
16243
16260
|
queueMicrotask(() => {
|
|
16244
16261
|
if (!el || !el.isConnected) return;
|
|
@@ -16292,6 +16309,7 @@ function MatchRow(props) {
|
|
|
16292
16309
|
const flow = props.flow;
|
|
16293
16310
|
const row = () => flow.rows().find((r) => r.dosage === props.dosage);
|
|
16294
16311
|
const n = () => row()?.subscriberCount ?? 0;
|
|
16312
|
+
const flatFee = () => flow.flatFee();
|
|
16295
16313
|
const err = () => flow.errors()[props.dosage];
|
|
16296
16314
|
const errorId = () => `strength-match-error-${idPart(props.dosage)}`;
|
|
16297
16315
|
const decision = () => {
|
|
@@ -16309,16 +16327,32 @@ function MatchRow(props) {
|
|
|
16309
16327
|
refocus(select);
|
|
16310
16328
|
};
|
|
16311
16329
|
return (() => {
|
|
16312
|
-
var _el$14 = _tmpl$
|
|
16313
|
-
insert(_el$
|
|
16314
|
-
|
|
16315
|
-
|
|
16330
|
+
var _el$14 = _tmpl$635(), _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild, _el$24 = _el$16.nextSibling, _el$25 = _el$24.firstChild;
|
|
16331
|
+
insert(_el$16, createComponent(Show, {
|
|
16332
|
+
get when() {
|
|
16333
|
+
return !(flatFee() && n() === 0);
|
|
16334
|
+
},
|
|
16335
|
+
get fallback() {
|
|
16336
|
+
return (() => {
|
|
16337
|
+
var _el$27 = _tmpl$732(), _el$28 = _el$27.firstChild;
|
|
16338
|
+
insert(_el$28, () => props.dosage);
|
|
16339
|
+
return _el$27;
|
|
16340
|
+
})();
|
|
16341
|
+
},
|
|
16342
|
+
get children() {
|
|
16343
|
+
var _el$17 = _tmpl$355(), _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$22 = _el$20.nextSibling;
|
|
16344
|
+
insert(_el$18, n, _el$19);
|
|
16345
|
+
insert(_el$18, () => n() === 1 ? "" : "s", null);
|
|
16346
|
+
insert(_el$22, () => props.dosage);
|
|
16347
|
+
return _el$17;
|
|
16348
|
+
}
|
|
16349
|
+
}), null);
|
|
16316
16350
|
insert(_el$16, createComponent(Show, {
|
|
16317
16351
|
get when() {
|
|
16318
|
-
return memo(() => !!row())() && isLeftForReview(row());
|
|
16352
|
+
return memo(() => !!(!flatFee() && row()))() && isLeftForReview(row());
|
|
16319
16353
|
},
|
|
16320
16354
|
get children() {
|
|
16321
|
-
return _tmpl$
|
|
16355
|
+
return _tmpl$444();
|
|
16322
16356
|
}
|
|
16323
16357
|
}), null);
|
|
16324
16358
|
_el$24.addEventListener("change", (e) => {
|
|
@@ -16326,15 +16360,16 @@ function MatchRow(props) {
|
|
|
16326
16360
|
});
|
|
16327
16361
|
var _ref$2 = select;
|
|
16328
16362
|
typeof _ref$2 === "function" ? use(_ref$2, _el$24) : select = _el$24;
|
|
16363
|
+
insert(_el$25, () => flatFee() ? "Not matched" : "Leave for review");
|
|
16329
16364
|
insert(_el$24, createComponent(For, {
|
|
16330
16365
|
get each() {
|
|
16331
16366
|
return flow.doseOptions();
|
|
16332
16367
|
},
|
|
16333
16368
|
children: (o) => (() => {
|
|
16334
|
-
var _el$
|
|
16335
|
-
insert(_el$
|
|
16336
|
-
effect(() => _el$
|
|
16337
|
-
return _el$
|
|
16369
|
+
var _el$29 = _tmpl$828();
|
|
16370
|
+
insert(_el$29, () => optionLabel(o, flatFee()));
|
|
16371
|
+
effect(() => _el$29.value = o.doseId);
|
|
16372
|
+
return _el$29;
|
|
16338
16373
|
})()
|
|
16339
16374
|
}), null);
|
|
16340
16375
|
insert(_el$14, createComponent(Show, {
|
|
@@ -16362,7 +16397,7 @@ function MatchRow(props) {
|
|
|
16362
16397
|
return err();
|
|
16363
16398
|
},
|
|
16364
16399
|
get children() {
|
|
16365
|
-
var _el$26 = _tmpl$
|
|
16400
|
+
var _el$26 = _tmpl$539();
|
|
16366
16401
|
insert(_el$26, err);
|
|
16367
16402
|
effect(() => setAttribute(_el$26, "id", errorId()));
|
|
16368
16403
|
return _el$26;
|
|
@@ -16392,60 +16427,71 @@ function StrengthMatchesSection(props) {
|
|
|
16392
16427
|
return shown();
|
|
16393
16428
|
},
|
|
16394
16429
|
get children() {
|
|
16395
|
-
var _el$
|
|
16396
|
-
insert(_el$
|
|
16430
|
+
var _el$30 = _tmpl$1215();
|
|
16431
|
+
insert(_el$30, createComponent(Show, {
|
|
16397
16432
|
get when() {
|
|
16398
16433
|
return !failed();
|
|
16399
16434
|
},
|
|
16400
16435
|
get fallback() {
|
|
16401
16436
|
return (() => {
|
|
16402
|
-
var _el$
|
|
16403
|
-
_el$
|
|
16404
|
-
insert(_el$
|
|
16437
|
+
var _el$38 = _tmpl$1413(), _el$39 = _el$38.firstChild, _el$40 = _el$39.nextSibling, _el$41 = _el$40.firstChild, _el$43 = _el$41.nextSibling;
|
|
16438
|
+
_el$43.$$click = () => void flow.reload();
|
|
16439
|
+
insert(_el$38, createComponent(Show, {
|
|
16405
16440
|
get when() {
|
|
16406
16441
|
return flow.notice();
|
|
16407
16442
|
},
|
|
16408
16443
|
get children() {
|
|
16409
|
-
var _el$
|
|
16410
|
-
insert(_el$
|
|
16411
|
-
return _el$
|
|
16444
|
+
var _el$44 = _tmpl$1313();
|
|
16445
|
+
insert(_el$44, () => flow.notice());
|
|
16446
|
+
return _el$44;
|
|
16412
16447
|
}
|
|
16413
16448
|
}), null);
|
|
16414
|
-
return _el$
|
|
16449
|
+
return _el$38;
|
|
16415
16450
|
})();
|
|
16416
16451
|
},
|
|
16417
16452
|
get children() {
|
|
16418
16453
|
return [(() => {
|
|
16419
|
-
var _el$29 = _tmpl$732(); _el$29.firstChild;
|
|
16420
|
-
return _el$29;
|
|
16421
|
-
})(), (() => {
|
|
16422
16454
|
var _el$31 = _tmpl$925(); _el$31.firstChild;
|
|
16423
|
-
|
|
16424
|
-
|
|
16455
|
+
return _el$31;
|
|
16456
|
+
})(), (() => {
|
|
16457
|
+
var _el$33 = _tmpl$1017(), _el$35 = _el$33.firstChild;
|
|
16458
|
+
style(_el$33, hint4);
|
|
16459
|
+
insert(_el$33, createComponent(Show, {
|
|
16460
|
+
get when() {
|
|
16461
|
+
return flow.flatFee();
|
|
16462
|
+
},
|
|
16463
|
+
get fallback() {
|
|
16464
|
+
return "Which strength each older strength is now. A change applies from each subscriber's next refill; refills already sent keep what they have. It doesn't change what any strength sells for.";
|
|
16465
|
+
},
|
|
16466
|
+
get children() {
|
|
16467
|
+
return ["Which strength each older strength is now.", " ", _tmpl$022()];
|
|
16468
|
+
}
|
|
16469
|
+
}), _el$35);
|
|
16470
|
+
insert(_el$33, createComponent(Show, {
|
|
16425
16471
|
get when() {
|
|
16426
16472
|
return props.unsaved;
|
|
16427
16473
|
},
|
|
16428
16474
|
get children() {
|
|
16429
|
-
var _el$
|
|
16430
|
-
insert(_el$
|
|
16431
|
-
return _el$
|
|
16475
|
+
var _el$36 = _tmpl$1103();
|
|
16476
|
+
insert(_el$36, UNSAVED_HINT);
|
|
16477
|
+
return _el$36;
|
|
16432
16478
|
}
|
|
16433
16479
|
}), null);
|
|
16434
|
-
return _el$
|
|
16480
|
+
return _el$33;
|
|
16435
16481
|
})(), createComponent(Show, {
|
|
16436
16482
|
get when() {
|
|
16437
16483
|
return flow.notice();
|
|
16438
16484
|
},
|
|
16439
16485
|
keyed: true,
|
|
16440
16486
|
children: (message) => (() => {
|
|
16441
|
-
var _el$
|
|
16442
|
-
insert(_el$
|
|
16443
|
-
_el$
|
|
16444
|
-
return _el$
|
|
16487
|
+
var _el$45 = _tmpl$1513(), _el$46 = _el$45.firstChild, _el$47 = _el$46.nextSibling;
|
|
16488
|
+
insert(_el$46, message);
|
|
16489
|
+
_el$47.$$click = () => flow.dismissNotice();
|
|
16490
|
+
return _el$45;
|
|
16445
16491
|
})()
|
|
16446
16492
|
}), (() => {
|
|
16447
|
-
var _el$
|
|
16448
|
-
insert(_el$
|
|
16493
|
+
var _el$37 = _tmpl$1118();
|
|
16494
|
+
insert(_el$37, createComponent(For, {
|
|
16449
16495
|
get each() {
|
|
16450
16496
|
return dosages();
|
|
16451
16497
|
},
|
|
@@ -16457,11 +16503,11 @@ function StrengthMatchesSection(props) {
|
|
|
16457
16503
|
}
|
|
16458
16504
|
})
|
|
16459
16505
|
}));
|
|
16460
|
-
return _el$
|
|
16506
|
+
return _el$37;
|
|
16461
16507
|
})()];
|
|
16462
16508
|
}
|
|
16463
16509
|
}));
|
|
16464
|
-
return _el$
|
|
16510
|
+
return _el$30;
|
|
16465
16511
|
}
|
|
16466
16512
|
});
|
|
16467
16513
|
}
|
|
@@ -16480,9 +16526,9 @@ var _tmpl$1104 = /* @__PURE__ */ template(`<div class="app-admin-banner app-admi
|
|
|
16480
16526
|
var _tmpl$1018 = /* @__PURE__ */ template(`<li>The catalog item <strong></strong> (<span class=app-admin-text-mono></span>) will be switched on and the product moved onto it.`);
|
|
16481
16527
|
var _tmpl$1119 = /* @__PURE__ */ template(`<div><h4 class=app-admin-label style="margin:0 0 0.5rem">This can\u2019t be converted yet`);
|
|
16482
16528
|
var _tmpl$1216 = /* @__PURE__ */ template(`<div><h4 class=app-admin-label style="margin:0 0 0.5rem">Things to know`);
|
|
16483
|
-
var _tmpl$
|
|
16484
|
-
var _tmpl$
|
|
16485
|
-
var _tmpl$
|
|
16529
|
+
var _tmpl$1314 = /* @__PURE__ */ template(`<div class=app-admin-convert data-testid=conversion-step-intro><p style=margin:0;font-size:0.875rem;line-height:1.5><strong></strong> is sold from an individual pharmacy drug (<span class=app-admin-text-mono></span>). Converting moves it onto a <strong>catalog product</strong> on your prescribing platform, so you manage its strengths and pharmacies here.</p><ul class=app-admin-convert-list><li>You choose which of the new strengths each current price moves to. Nothing carries over unless you say so.</li><li>The product keeps its name, categories, subscribers and order history. Only its link to the prescribing platform and the links on its prices change.</li><li>You can undo the conversion afterwards.`);
|
|
16530
|
+
var _tmpl$1414 = /* @__PURE__ */ template(`<li>A catalog item is created from this drug first. It starts switched off: nothing is sold from it and your product stays exactly as it is until you convert.`);
|
|
16531
|
+
var _tmpl$1514 = /* @__PURE__ */ template(`<div class=app-admin-convert data-testid=conversion-step-prepare><p style=margin:0;font-size:0.875rem;line-height:1.5>To show you the new strengths, we first create the catalog item from <span class=app-admin-text-mono></span> on your prescribing platform.</p><ul class=app-admin-convert-list><li>The item is created <strong>switched off</strong>: nothing is sold from it.</li><li> is not changed and keeps selling exactly as it does now.</li><li>Its strengths appear on the next step, where you match your current prices to them.</li><li>You can stop after this step; the item simply waits for you.`);
|
|
16486
16532
|
var _tmpl$1613 = /* @__PURE__ */ template(`<span class="app-admin-badge app-admin-badge--warning">Subscribers flagged`);
|
|
16487
16533
|
var _tmpl$1713 = /* @__PURE__ */ template(`<option value=__not_carried_over__>Not carried over`);
|
|
16488
16534
|
var _tmpl$1813 = /* @__PURE__ */ template(`<span data-testid=conversion-how>`);
|
|
@@ -16688,7 +16734,7 @@ function WhatWillHappen(props) {
|
|
|
16688
16734
|
const p = () => props.flow.preview();
|
|
16689
16735
|
const target = () => p()?.target ?? null;
|
|
16690
16736
|
return (() => {
|
|
16691
|
-
var _el$14 = _tmpl$
|
|
16737
|
+
var _el$14 = _tmpl$1314(), _el$20 = _el$14.firstChild, _el$21 = _el$20.firstChild, _el$22 = _el$21.nextSibling, _el$23 = _el$22.nextSibling, _el$24 = _el$20.nextSibling, _el$30 = _el$24.firstChild;
|
|
16692
16738
|
insert(_el$14, createComponent(Show, {
|
|
16693
16739
|
get when() {
|
|
16694
16740
|
return p()?.stage === "active_not_committed";
|
|
@@ -16706,7 +16752,7 @@ function WhatWillHappen(props) {
|
|
|
16706
16752
|
return target()?.kind === "existing";
|
|
16707
16753
|
},
|
|
16708
16754
|
get fallback() {
|
|
16709
|
-
return _tmpl$
|
|
16755
|
+
return _tmpl$1414();
|
|
16710
16756
|
},
|
|
16711
16757
|
get children() {
|
|
16712
16758
|
var _el$25 = _tmpl$1018(), _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling, _el$28 = _el$27.nextSibling, _el$29 = _el$28.nextSibling;
|
|
@@ -16750,7 +16796,7 @@ function WhatWillHappen(props) {
|
|
|
16750
16796
|
}
|
|
16751
16797
|
function Prepare(props) {
|
|
16752
16798
|
return (() => {
|
|
16753
|
-
var _el$36 = _tmpl$
|
|
16799
|
+
var _el$36 = _tmpl$1514(), _el$37 = _el$36.firstChild, _el$38 = _el$37.firstChild, _el$40 = _el$38.nextSibling, _el$41 = _el$37.nextSibling, _el$42 = _el$41.firstChild, _el$43 = _el$42.nextSibling, _el$44 = _el$43.firstChild;
|
|
16754
16800
|
insert(_el$40, () => props.product.apexDrugId);
|
|
16755
16801
|
insert(_el$43, () => props.product.name, _el$44);
|
|
16756
16802
|
return _el$36;
|
|
@@ -17765,9 +17811,9 @@ var _tmpl$1105 = /* @__PURE__ */ template(`<p style=font-size:0.75rem;color:var(
|
|
|
17765
17811
|
var _tmpl$1019 = /* @__PURE__ */ template(`<div><label class=app-admin-label>Pricing</label><div style="display:grid;grid-template-columns:1fr 1fr;gap:0.5rem"></div><p style="font-size:0.6875rem;color:var(--app-admin-fg-muted);margin:0.375rem 0 0;line-height:1.4">`);
|
|
17766
17812
|
var _tmpl$1120 = /* @__PURE__ */ template(`<select class=app-admin-input><option value>Lowest available strength`);
|
|
17767
17813
|
var _tmpl$1217 = /* @__PURE__ */ template(`<div><label class=app-admin-label>Fallback strength</label><p style="font-size:0.6875rem;color:var(--app-admin-fg-muted);margin:0.375rem 0 0;line-height:1.4">Used when a customer reaches checkout without choosing one. Otherwise the lowest available strength.`);
|
|
17768
|
-
var _tmpl$
|
|
17769
|
-
var _tmpl$
|
|
17770
|
-
var _tmpl$
|
|
17814
|
+
var _tmpl$1315 = /* @__PURE__ */ template(`<label style=display:flex;align-items:center;gap:0.5rem;font-size:0.875rem;cursor:pointer><input type=checkbox><span>Prescriber picks the strength (no fixed strength sent)`);
|
|
17815
|
+
var _tmpl$1415 = /* @__PURE__ */ template(`<label style=display:flex;align-items:center;gap:0.5rem;font-size:0.875rem;cursor:pointer><input type=checkbox><span>Prescriber picks the strength`);
|
|
17816
|
+
var _tmpl$1515 = /* @__PURE__ */ template(`<div style=margin-top:0.5rem><label class=app-admin-label>Pharmacy product</label><select class=app-admin-input>`);
|
|
17771
17817
|
var _tmpl$1614 = /* @__PURE__ */ template(`<div style=margin-top:0.5rem><label class=app-admin-label>Pharmacy product</label><select class=app-admin-input title="The pharmacy product this strength is sent as">`);
|
|
17772
17818
|
var _tmpl$1714 = /* @__PURE__ */ template(`<div><label class=app-admin-label>Strength sent to the pharmacy</label><p style="font-size:0.6875rem;color:var(--app-admin-fg-muted);margin:0.375rem 0 0.5rem;line-height:1.4">Bind each strength to a specific Apex SKU so the exact product is sent to the pharmacy \u2014 no fuzzy label matching. Turn on \u201CPrescriber picks\u201D for a titration product with no fixed SKU at order time.`);
|
|
17773
17819
|
var _tmpl$1814 = /* @__PURE__ */ template(`<div style=display:flex;flex-direction:column;gap:0.625rem>`);
|
|
@@ -18342,7 +18388,7 @@ function ProductEditPanel(props) {
|
|
|
18342
18388
|
},
|
|
18343
18389
|
get children() {
|
|
18344
18390
|
return [(() => {
|
|
18345
|
-
var _el$48 = _tmpl$
|
|
18391
|
+
var _el$48 = _tmpl$1315(), _el$49 = _el$48.firstChild;
|
|
18346
18392
|
_el$49.addEventListener("change", (e) => setPrescriberPicks(e.currentTarget.checked));
|
|
18347
18393
|
effect(() => _el$49.checked = prescriberPicks());
|
|
18348
18394
|
return _el$48;
|
|
@@ -18378,7 +18424,7 @@ function ProductEditPanel(props) {
|
|
|
18378
18424
|
},
|
|
18379
18425
|
get children() {
|
|
18380
18426
|
return [(() => {
|
|
18381
|
-
var _el$53 = _tmpl$
|
|
18427
|
+
var _el$53 = _tmpl$1415(), _el$54 = _el$53.firstChild;
|
|
18382
18428
|
_el$54.addEventListener("change", (e) => setPrescriberPicks(e.currentTarget.checked));
|
|
18383
18429
|
effect(() => _el$54.checked = prescriberPicks());
|
|
18384
18430
|
return _el$53;
|
|
@@ -18387,7 +18433,7 @@ function ProductEditPanel(props) {
|
|
|
18387
18433
|
return memo(() => !!!prescriberPicks())() && pricingMode() === "flat_fee";
|
|
18388
18434
|
},
|
|
18389
18435
|
get children() {
|
|
18390
|
-
var _el$55 = _tmpl$
|
|
18436
|
+
var _el$55 = _tmpl$1515(), _el$56 = _el$55.firstChild, _el$57 = _el$56.nextSibling;
|
|
18391
18437
|
_el$57.addEventListener("change", (e) => setProductSkuId(e.currentTarget.value));
|
|
18392
18438
|
insert(_el$57, createComponent(SkuSelectOptions, {
|
|
18393
18439
|
get skus() {
|
|
@@ -19522,9 +19568,9 @@ var _tmpl$1106 = /* @__PURE__ */ template(`<div><div class=app-admin-section-sta
|
|
|
19522
19568
|
var _tmpl$1020 = /* @__PURE__ */ template(`<span>`);
|
|
19523
19569
|
var _tmpl$1121 = /* @__PURE__ */ template(`<button type=button class=app-admin-link-btn style=font-size:inherit>`);
|
|
19524
19570
|
var _tmpl$1218 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm">Revoke`);
|
|
19525
|
-
var _tmpl$
|
|
19526
|
-
var _tmpl$
|
|
19527
|
-
var _tmpl$
|
|
19571
|
+
var _tmpl$1316 = /* @__PURE__ */ template(`<tr><td data-label=Person></td><td data-label=State><span></span></td><td data-label="Deadline to claim"class=app-admin-text-muted></td><td data-label="Issued by"><div class=app-admin-text-muted style=font-size:0.75rem></div></td><td class=app-admin-table-cell--end>`);
|
|
19572
|
+
var _tmpl$1416 = /* @__PURE__ */ template(`<div class=app-admin-alerts style=margin-bottom:1rem>`);
|
|
19573
|
+
var _tmpl$1516 = /* @__PURE__ */ template(`<div class=app-admin-card style=overflow:hidden><table class=app-admin-table><thead><tr><th>Name</th><th>Amount</th><th>Applies to</th><th>Grants</th><th>Handed out by</th><th>Status</th><th style=width:12rem></th></tr></thead><tbody>`);
|
|
19528
19574
|
var _tmpl$1615 = /* @__PURE__ */ template(`<div><div style=display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:2rem><button type=button class="app-admin-btn app-admin-btn-primary"style=white-space:nowrap>+ New offer`);
|
|
19529
19575
|
var _tmpl$1715 = /* @__PURE__ */ template(`<div class=app-admin-text-muted style=font-size:0.75rem;font-weight:400>`);
|
|
19530
19576
|
var _tmpl$1815 = /* @__PURE__ */ template(`<tr><td data-label=Name style=font-weight:500></td><td data-label=Amount> off</td><td data-label="Applies to"></td><td data-label=Grants> open \xB7 <!> claimed<div class=app-admin-text-muted style=font-size:0.75rem> expired \xB7 <!> revoked</div></td><td data-label="Handed out by"class=app-admin-text-muted></td><td data-label=Status><span></span></td><td data-label=Actions><button type=button style=color:var(--app-admin-primary-soft-fg)>Grants</button><button type=button style=color:var(--app-admin-primary-soft-fg);margin-left:0.75rem>Edit</button><button type=button style=color:var(--app-admin-danger-fg);margin-left:0.75rem>Archive`);
|
|
@@ -19857,7 +19903,7 @@ function OfferGrants(props) {
|
|
|
19857
19903
|
return grants();
|
|
19858
19904
|
},
|
|
19859
19905
|
children: (g) => (() => {
|
|
19860
|
-
var _el$56 = _tmpl$
|
|
19906
|
+
var _el$56 = _tmpl$1316(), _el$57 = _el$56.firstChild, _el$59 = _el$57.nextSibling, _el$60 = _el$59.firstChild, _el$61 = _el$59.nextSibling, _el$62 = _el$61.nextSibling, _el$63 = _el$62.firstChild, _el$64 = _el$62.nextSibling;
|
|
19861
19907
|
insert(_el$57, createComponent(Show, {
|
|
19862
19908
|
get when() {
|
|
19863
19909
|
return g.userId && nav;
|
|
@@ -19985,7 +20031,7 @@ function Offers() {
|
|
|
19985
20031
|
return loadError() || archiveError();
|
|
19986
20032
|
},
|
|
19987
20033
|
get children() {
|
|
19988
|
-
var _el$69 = _tmpl$
|
|
20034
|
+
var _el$69 = _tmpl$1416();
|
|
19989
20035
|
insert(_el$69, createComponent(Show, {
|
|
19990
20036
|
get when() {
|
|
19991
20037
|
return loadError();
|
|
@@ -20025,7 +20071,7 @@ function Offers() {
|
|
|
20025
20071
|
return createComponent(LoadingSpinner, {});
|
|
20026
20072
|
},
|
|
20027
20073
|
get children() {
|
|
20028
|
-
var _el$70 = _tmpl$
|
|
20074
|
+
var _el$70 = _tmpl$1516(), _el$71 = _el$70.firstChild, _el$72 = _el$71.firstChild, _el$73 = _el$72.firstChild, _el$74 = _el$73.firstChild, _el$75 = _el$74.nextSibling, _el$76 = _el$75.nextSibling, _el$77 = _el$76.nextSibling, _el$78 = _el$77.nextSibling, _el$79 = _el$78.nextSibling; _el$79.nextSibling; var _el$81 = _el$72.nextSibling;
|
|
20029
20075
|
insert(_el$81, createComponent(For, {
|
|
20030
20076
|
get each() {
|
|
20031
20077
|
return offers();
|
|
@@ -20790,9 +20836,9 @@ var _tmpl$1108 = /* @__PURE__ */ template(`<p role=alert style="margin:0.5rem 0
|
|
|
20790
20836
|
var _tmpl$1021 = /* @__PURE__ */ template(`<div style="padding:1rem 1.25rem 0.75rem;border-bottom:1px solid var(--app-admin-border)"><div style=display:flex;justify-content:space-between;gap:1rem;align-items:flex-start><div style=min-width:0><h3 style="margin:0 0 0.25rem"></h3><p class=app-admin-text-muted style=margin:0;font-size:0.8125rem></p></div></div><div style=display:flex;gap:0.375rem;align-items:center;margin-top:0.75rem;flex-wrap:wrap><select class=app-admin-input aria-label=Category style="font-size:0.75rem;width:auto;padding:0.125rem 0.5rem"><option value>Uncategorized</option></select><span style=flex:1>`);
|
|
20791
20837
|
var _tmpl$1122 = /* @__PURE__ */ template(`<p style=margin:0>The customer's messages in this thread will be sent to their prescriber as one message and removed from support. Support's replies stay. This can't be undone.`);
|
|
20792
20838
|
var _tmpl$1219 = /* @__PURE__ */ template(`<div class=app-admin-support-scroll data-scrollable style="padding:1rem 1.25rem"><div>`);
|
|
20793
|
-
var _tmpl$
|
|
20794
|
-
var _tmpl$
|
|
20795
|
-
var _tmpl$
|
|
20839
|
+
var _tmpl$1317 = /* @__PURE__ */ template(`<p role=alert style="margin:0 0 0.5rem;font-size:0.8125rem;color:var(--app-admin-danger-fg)">`);
|
|
20840
|
+
var _tmpl$1417 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-ghost">Send & resolve`);
|
|
20841
|
+
var _tmpl$1517 = /* @__PURE__ */ template(`<form style="padding:0.75rem 1.25rem 1rem;border-top:1px solid var(--app-admin-border)"><div style=display:flex;gap:0.375rem;flex-wrap:wrap;margin-bottom:0.5rem></div><textarea class=app-admin-input rows=3 maxlength=5000 placeholder="Write a reply\u2026"aria-label=Reply style=width:100%></textarea><div style=display:flex;gap:0.5rem;align-items:center;margin-top:0.5rem;flex-wrap:wrap><button type=submit class="app-admin-btn app-admin-btn-primary"></button><label class="app-admin-btn app-admin-btn-ghost"style=cursor:pointer>Attach<input type=file style=display:none>`);
|
|
20796
20842
|
var _tmpl$1616 = /* @__PURE__ */ template(`<option>`);
|
|
20797
20843
|
var _tmpl$1716 = /* @__PURE__ */ template(`<button type=button style=font-size:0.75rem>`);
|
|
20798
20844
|
var _tmpl$1816 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-ghost">Cancel`);
|
|
@@ -21282,14 +21328,14 @@ ${body}` : body);
|
|
|
21282
21328
|
typeof _ref$2 === "function" ? use(_ref$2, _el$26) : transcriptEnd.setEnd = _el$26;
|
|
21283
21329
|
return _el$25;
|
|
21284
21330
|
})(), (() => {
|
|
21285
|
-
var _el$27 = _tmpl$
|
|
21331
|
+
var _el$27 = _tmpl$1517(), _el$29 = _el$27.firstChild, _el$30 = _el$29.nextSibling, _el$31 = _el$30.nextSibling, _el$32 = _el$31.firstChild, _el$34 = _el$32.nextSibling, _el$35 = _el$34.firstChild, _el$36 = _el$35.nextSibling;
|
|
21286
21332
|
_el$27.addEventListener("submit", sendReply);
|
|
21287
21333
|
insert(_el$27, createComponent(Show, {
|
|
21288
21334
|
get when() {
|
|
21289
21335
|
return error();
|
|
21290
21336
|
},
|
|
21291
21337
|
get children() {
|
|
21292
|
-
var _el$28 = _tmpl$
|
|
21338
|
+
var _el$28 = _tmpl$1317();
|
|
21293
21339
|
insert(_el$28, error);
|
|
21294
21340
|
return _el$28;
|
|
21295
21341
|
}
|
|
@@ -21313,7 +21359,7 @@ ${body}` : body);
|
|
|
21313
21359
|
return memo(() => d().thread.status !== "closed")() && d().thread.status !== "transferred";
|
|
21314
21360
|
},
|
|
21315
21361
|
get children() {
|
|
21316
|
-
var _el$33 = _tmpl$
|
|
21362
|
+
var _el$33 = _tmpl$1417();
|
|
21317
21363
|
_el$33.$$click = (e) => void sendReply(e, {
|
|
21318
21364
|
resolve: true
|
|
21319
21365
|
});
|
|
@@ -23064,9 +23110,9 @@ var _tmpl$1124 = /* @__PURE__ */ template(`<div style="display:grid;grid-templat
|
|
|
23064
23110
|
var _tmpl$1023 = /* @__PURE__ */ template(`<p class=app-admin-text-muted style="font-size:0.75rem;margin:0;padding:0.625rem 1.25rem 0">Each step waits the given hours after the previous one (the first, after enrollment), then sends its template with the chosen link.`);
|
|
23065
23111
|
var _tmpl$1125 = /* @__PURE__ */ template(`<table class=app-admin-table><thead><tr><th>Person</th><th>Came from</th><th>Step</th><th>Next due</th><th></th></tr></thead><tbody>`);
|
|
23066
23112
|
var _tmpl$1220 = /* @__PURE__ */ template(`<div style=display:grid;gap:0.75rem><label><span>Name</span><input class=app-admin-input maxlength=120 placeholder="Finish your visit"></label><label><span>Notes (internal)</span><input class=app-admin-input maxlength=500 placeholder="Who this is for and why">`);
|
|
23067
|
-
var _tmpl$
|
|
23068
|
-
var _tmpl$
|
|
23069
|
-
var _tmpl$
|
|
23113
|
+
var _tmpl$1318 = /* @__PURE__ */ template(`<label><input type=checkbox aria-label="Send automatically when a step is due"><span>Send automatically when a step is due<span class=app-admin-text-muted style=display:block;font-size:0.75rem;margin-top:0.125rem>`);
|
|
23114
|
+
var _tmpl$1418 = /* @__PURE__ */ template(`<label><span>Only enroll people who entered in the last (days)</span><input class=app-admin-input type=number min=1 max=365><span class=app-admin-text-muted style=font-size:0.75rem>So a feed never mails months-old accounts. Add those by hand if you want them.`);
|
|
23115
|
+
var _tmpl$1518 = /* @__PURE__ */ template(`<label style=font-size:0.8125rem;display:flex;gap:0.375rem;align-items:center><input type=checkbox>Skip people whose questionnaire did not qualify`);
|
|
23070
23116
|
var _tmpl$1617 = /* @__PURE__ */ template(`<div style=display:grid;gap:0.75rem><p class=app-admin-text-muted style=font-size:0.75rem;margin:0>Anyone you add from the Funnel tab. Tick segments to also enroll whoever enters them (the hourly check adds and removes them; their clock starts at their own entry).</p><label><input type=checkbox aria-label="Savings-program members only"><span>Savings-program members only<span class=app-admin-text-muted style=display:block;font-size:0.75rem;margin-top:0.125rem>Re-checked at every send: someone who is no longer a member in good standing is removed instead of emailed.`);
|
|
23071
23117
|
var _tmpl$1717 = /* @__PURE__ */ template(`<option selected>`);
|
|
23072
23118
|
var _tmpl$1817 = /* @__PURE__ */ template(`<label><span>Valid for (days)</span><input class=app-admin-input type=number min=1 max=365 aria-label="Offer valid for days"style=width:6rem><span class=app-admin-text-muted style=font-size:0.75rem>Each person gets their own deadline, counted from the day they were enrolled.`);
|
|
@@ -23873,7 +23919,7 @@ function SequenceEditor(props) {
|
|
|
23873
23919
|
insert(_el$44, createComponent(Section, {
|
|
23874
23920
|
title: "Sending",
|
|
23875
23921
|
get children() {
|
|
23876
|
-
var _el$52 = _tmpl$
|
|
23922
|
+
var _el$52 = _tmpl$1318(), _el$53 = _el$52.firstChild, _el$54 = _el$53.nextSibling, _el$55 = _el$54.firstChild, _el$56 = _el$55.nextSibling;
|
|
23877
23923
|
_el$53.addEventListener("change", (e) => update({
|
|
23878
23924
|
autoSend: e.currentTarget.checked
|
|
23879
23925
|
}));
|
|
@@ -23916,7 +23962,7 @@ function SequenceEditor(props) {
|
|
|
23916
23962
|
},
|
|
23917
23963
|
get children() {
|
|
23918
23964
|
return [(() => {
|
|
23919
|
-
var _el$59 = _tmpl$
|
|
23965
|
+
var _el$59 = _tmpl$1418(), _el$60 = _el$59.firstChild, _el$61 = _el$60.nextSibling; _el$61.nextSibling;
|
|
23920
23966
|
_el$61.$$input = (e) => update({
|
|
23921
23967
|
feedMaxAgeDays: Number(e.currentTarget.value)
|
|
23922
23968
|
});
|
|
@@ -23932,7 +23978,7 @@ function SequenceEditor(props) {
|
|
|
23932
23978
|
effect(() => _el$61.value = draft().feedMaxAgeDays ?? 30);
|
|
23933
23979
|
return _el$59;
|
|
23934
23980
|
})(), (() => {
|
|
23935
|
-
var _el$63 = _tmpl$
|
|
23981
|
+
var _el$63 = _tmpl$1518(), _el$64 = _el$63.firstChild;
|
|
23936
23982
|
_el$64.addEventListener("change", (e) => update({
|
|
23937
23983
|
feedQualifiedOnly: e.currentTarget.checked
|
|
23938
23984
|
}));
|
|
@@ -24204,9 +24250,9 @@ var _tmpl$1126 = /* @__PURE__ */ template(`<span class="app-admin-badge app-admi
|
|
|
24204
24250
|
var _tmpl$1024 = /* @__PURE__ */ template(`<div class=app-admin-text-muted style=font-size:0.75rem>`);
|
|
24205
24251
|
var _tmpl$1127 = /* @__PURE__ */ template(`<span class="app-admin-badge app-admin-badge--info"style=margin-left:0.5rem>Savings`);
|
|
24206
24252
|
var _tmpl$1221 = /* @__PURE__ */ template(`<td data-label=Account><span class=app-admin-text-muted>`);
|
|
24207
|
-
var _tmpl$
|
|
24208
|
-
var _tmpl$
|
|
24209
|
-
var _tmpl$
|
|
24253
|
+
var _tmpl$1319 = /* @__PURE__ */ template(`<tr><td><input type=checkbox></td><td data-label=Person><div></div></td><td data-label="Where they stopped"></td><td data-label=Since class=app-admin-text-muted>`);
|
|
24254
|
+
var _tmpl$1419 = /* @__PURE__ */ template(`<div><div style=margin-bottom:1rem><select class=app-admin-input style=width:auto><option value=7>Last 7 days</option><option value=30>Last 30 days</option><option value=90>Last 90 days`);
|
|
24255
|
+
var _tmpl$1519 = /* @__PURE__ */ template(`<div class=app-admin-card style=margin-top:1.25rem><div style=padding:1.25rem;display:flex;align-items:flex-end;gap:0.375rem;height:9rem>`);
|
|
24210
24256
|
var _tmpl$1618 = /* @__PURE__ */ template(`<span style=font-size:0.6875rem;color:var(--app-admin-fg-muted)>`);
|
|
24211
24257
|
var _tmpl$1718 = /* @__PURE__ */ template(`<div style=flex:1;display:flex;flex-direction:column;align-items:center;gap:0.25rem;height:100%;justify-content:flex-end><div style="width:100%;max-width:1.75rem;border-radius:4px 4px 0 0"></div><span style=font-size:0.625rem;color:var(--app-admin-fg-subtle)>`);
|
|
24212
24258
|
function CardHeader(props) {
|
|
@@ -24363,7 +24409,7 @@ function SegmentSection(props) {
|
|
|
24363
24409
|
return page().people;
|
|
24364
24410
|
},
|
|
24365
24411
|
children: (p) => (() => {
|
|
24366
|
-
var _el$35 = _tmpl$
|
|
24412
|
+
var _el$35 = _tmpl$1319(), _el$36 = _el$35.firstChild, _el$37 = _el$36.firstChild, _el$38 = _el$36.nextSibling, _el$39 = _el$38.firstChild, _el$43 = _el$38.nextSibling, _el$44 = _el$43.nextSibling;
|
|
24367
24413
|
_el$37.addEventListener("change", (e) => setSelected({
|
|
24368
24414
|
...selected(),
|
|
24369
24415
|
[p.email]: e.currentTarget.checked
|
|
@@ -24459,7 +24505,7 @@ function Funnel() {
|
|
|
24459
24505
|
const [segments] = createResource(days, (d) => apiFetch(`/admin/funnel/segments?days=${d}`));
|
|
24460
24506
|
const dropoffMax = () => Math.max(1, ...(summary()?.stepDropoff ?? []).map((b) => b.count));
|
|
24461
24507
|
return (() => {
|
|
24462
|
-
var _el$48 = _tmpl$
|
|
24508
|
+
var _el$48 = _tmpl$1419(), _el$49 = _el$48.firstChild, _el$50 = _el$49.firstChild;
|
|
24463
24509
|
insert(_el$48, createComponent(PageTitle, {
|
|
24464
24510
|
subtitle: "Who stopped short of a subscription, and where",
|
|
24465
24511
|
children: "Funnel"
|
|
@@ -24499,7 +24545,7 @@ function Funnel() {
|
|
|
24499
24545
|
return summary();
|
|
24500
24546
|
},
|
|
24501
24547
|
children: (s) => (() => {
|
|
24502
|
-
var _el$51 = _tmpl$
|
|
24548
|
+
var _el$51 = _tmpl$1519(), _el$52 = _el$51.firstChild;
|
|
24503
24549
|
insert(_el$51, createComponent(CardHeader, {
|
|
24504
24550
|
title: "Where abandons quit",
|
|
24505
24551
|
get note() {
|
|
@@ -24562,9 +24608,9 @@ var _tmpl$1128 = /* @__PURE__ */ template(`<span>`);
|
|
|
24562
24608
|
var _tmpl$1025 = /* @__PURE__ */ template(`<p style=margin:0>Nobody has been enrolled in this sequence yet.`);
|
|
24563
24609
|
var _tmpl$1129 = /* @__PURE__ */ template(`<p style="margin:0 0 1rem">No emails have gone out yet.`);
|
|
24564
24610
|
var _tmpl$1222 = /* @__PURE__ */ template(`<tr><td data-label=Email style=min-width:14rem><strong>.</strong> </td><td data-label=Sent></td><td data-label="Link followed"></td><td data-label="Bought after this email"></td><td data-label="Unsubscribed after it">`);
|
|
24565
|
-
var _tmpl$
|
|
24566
|
-
var _tmpl$
|
|
24567
|
-
var _tmpl$
|
|
24611
|
+
var _tmpl$1320 = /* @__PURE__ */ template(`<span>a step since removed`);
|
|
24612
|
+
var _tmpl$1420 = /* @__PURE__ */ template(`<div>Offer: <!> granted \u2014 <!> open, <!> claimed, <!> expired<!>.`);
|
|
24613
|
+
var _tmpl$1520 = /* @__PURE__ */ template(`<td data-label="Claimed the offer">`);
|
|
24568
24614
|
var _tmpl$1619 = /* @__PURE__ */ template(`<tr><td data-label=Person></td><td data-label=Bought></td><td data-label="Last email before buying"></td><td data-label="Followed a link"></td><td data-label="Paid since">`);
|
|
24569
24615
|
var _tmpl$1719 = /* @__PURE__ */ template(`<span>none yet`);
|
|
24570
24616
|
var _tmpl$1818 = /* @__PURE__ */ template(`<span>No`);
|
|
@@ -24726,7 +24772,7 @@ function SequenceCard(props) {
|
|
|
24726
24772
|
var _el$30 = _tmpl$1222(), _el$31 = _el$30.firstChild, _el$32 = _el$31.firstChild, _el$33 = _el$32.firstChild; _el$32.nextSibling; var _el$35 = _el$31.nextSibling, _el$36 = _el$35.nextSibling, _el$37 = _el$36.nextSibling, _el$38 = _el$37.nextSibling;
|
|
24727
24773
|
insert(_el$32, () => s.stepIndex + 1, _el$33);
|
|
24728
24774
|
insert(_el$31, () => s.templateName ?? (() => {
|
|
24729
|
-
var _el$39 = _tmpl$
|
|
24775
|
+
var _el$39 = _tmpl$1320();
|
|
24730
24776
|
effect((_$p) => style(_el$39, muted, _$p));
|
|
24731
24777
|
return _el$39;
|
|
24732
24778
|
})(), null);
|
|
@@ -24767,7 +24813,7 @@ function SequenceCard(props) {
|
|
|
24767
24813
|
return r().offer;
|
|
24768
24814
|
},
|
|
24769
24815
|
children: (offer) => (() => {
|
|
24770
|
-
var _el$40 = _tmpl$
|
|
24816
|
+
var _el$40 = _tmpl$1420(), _el$41 = _el$40.firstChild, _el$47 = _el$41.nextSibling, _el$42 = _el$47.nextSibling, _el$48 = _el$42.nextSibling, _el$43 = _el$48.nextSibling, _el$49 = _el$43.nextSibling, _el$44 = _el$49.nextSibling, _el$50 = _el$44.nextSibling, _el$45 = _el$50.nextSibling, _el$51 = _el$45.nextSibling; _el$51.nextSibling;
|
|
24771
24817
|
insert(_el$40, () => offer().granted, _el$47);
|
|
24772
24818
|
insert(_el$40, () => offer().states.open, _el$48);
|
|
24773
24819
|
insert(_el$40, () => offer().states.claimed, _el$49);
|
|
@@ -24831,7 +24877,7 @@ function SequenceCard(props) {
|
|
|
24831
24877
|
return r().offer;
|
|
24832
24878
|
},
|
|
24833
24879
|
get children() {
|
|
24834
|
-
var _el$57 = _tmpl$
|
|
24880
|
+
var _el$57 = _tmpl$1520();
|
|
24835
24881
|
insert(_el$57, (() => {
|
|
24836
24882
|
var _c$3 = memo(() => !!b.claimedOffer);
|
|
24837
24883
|
return () => _c$3() ? "Yes" : (() => {
|
|
@@ -24956,8 +25002,8 @@ var _tmpl$1130 = /* @__PURE__ */ template(`<span class="app-admin-badge app-admi
|
|
|
24956
25002
|
var _tmpl$1026 = /* @__PURE__ */ template(`<label style=display:flex;gap:0.5rem;align-items:flex-start;cursor:pointer><input type=radio name=support-channel-mode style=margin-top:0.1875rem><span><span style=font-size:0.875rem;display:block></span><span style=font-size:0.75rem>`);
|
|
24957
25003
|
var _tmpl$1131 = /* @__PURE__ */ template(`<span style=font-size:0.75rem;color:var(--app-admin-danger-fg)>Enter the inbox that should receive support messages.`);
|
|
24958
25004
|
var _tmpl$1223 = /* @__PURE__ */ template(`<label style=display:grid;gap:0.25rem;max-width:24rem><span>Support inbox</span><input type=email class=app-admin-input data-testid=support-channel-email-input placeholder=help@example.com>`);
|
|
24959
|
-
var _tmpl$
|
|
24960
|
-
var _tmpl$
|
|
25005
|
+
var _tmpl$1321 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-primary app-admin-btn-sm"data-testid=support-channel-save>`);
|
|
25006
|
+
var _tmpl$1421 = /* @__PURE__ */ template(`<div>`);
|
|
24961
25007
|
function humanize2(key) {
|
|
24962
25008
|
return key.replace(/([A-Z])/g, " $1").replace(/[_-]/g, " ").replace(/^\w/, (c) => c.toUpperCase()).trim();
|
|
24963
25009
|
}
|
|
@@ -25346,7 +25392,7 @@ function SupportChannelCard() {
|
|
|
25346
25392
|
note: "Where messages from the member portal's Support form go. Care-team messages are not affected.",
|
|
25347
25393
|
get aside() {
|
|
25348
25394
|
return (() => {
|
|
25349
|
-
var _el$51 = _tmpl$
|
|
25395
|
+
var _el$51 = _tmpl$1321();
|
|
25350
25396
|
_el$51.$$click = save;
|
|
25351
25397
|
insert(_el$51, () => saving() ? "Saving\u2026" : "Save");
|
|
25352
25398
|
effect(() => _el$51.disabled = !dirty() || saving() || needsInbox());
|
|
@@ -25392,7 +25438,7 @@ function SupportChannelCard() {
|
|
|
25392
25438
|
}
|
|
25393
25439
|
function EmailNotifications() {
|
|
25394
25440
|
return (() => {
|
|
25395
|
-
var _el$52 = _tmpl$
|
|
25441
|
+
var _el$52 = _tmpl$1421();
|
|
25396
25442
|
insert(_el$52, createComponent(PageTitle, {
|
|
25397
25443
|
subtitle: "Who gets admin copies, and when the automated billing reminders go out",
|
|
25398
25444
|
children: "Notifications"
|
|
@@ -26250,9 +26296,9 @@ var _tmpl$1134 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style=
|
|
|
26250
26296
|
var _tmpl$1028 = /* @__PURE__ */ template(`<p style="font-size:0.75rem;color:var(--app-admin-fg-muted);margin:0.25rem 0 0">`);
|
|
26251
26297
|
var _tmpl$1135 = /* @__PURE__ */ template(`<div><h3>Prescription status</h3><div class=app-admin-card-soft style=padding:0.75rem><div style=display:flex;align-items:center;justify-content:space-between><span style=font-size:0.875rem;font-weight:500>Current request`);
|
|
26252
26298
|
var _tmpl$1224 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>No prescription requests.`);
|
|
26253
|
-
var _tmpl$
|
|
26254
|
-
var _tmpl$
|
|
26255
|
-
var _tmpl$
|
|
26299
|
+
var _tmpl$1322 = /* @__PURE__ */ template(`<span style=font-size:0.75rem;color:var(--app-admin-fg-muted);margin-left:0.5rem>`);
|
|
26300
|
+
var _tmpl$1422 = /* @__PURE__ */ template(`<span> \xB7 `);
|
|
26301
|
+
var _tmpl$1521 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style=padding:0.75rem><div style=display:flex;align-items:center;justify-content:space-between><div><span style=font-size:0.875rem;font-weight:500></span></div></div><div style=font-size:0.75rem;color:var(--app-admin-fg-muted);margin-top:0.25rem>`);
|
|
26256
26302
|
var _tmpl$1620 = /* @__PURE__ */ template(`<p style=color:var(--app-admin-fg-muted);font-size:0.875rem>No pending surveys.`);
|
|
26257
26303
|
var _tmpl$1720 = /* @__PURE__ */ template(`<div class=app-admin-card-soft style=padding:0.75rem><span style=font-size:0.875rem;font-weight:500></span><span style=font-size:0.75rem;color:var(--app-admin-fg-muted);margin-left:0.5rem>Cycle `);
|
|
26258
26304
|
function PatientDashboardPreview(props) {
|
|
@@ -26379,14 +26425,14 @@ function PatientDashboardPreview(props) {
|
|
|
26379
26425
|
return data.rxList();
|
|
26380
26426
|
},
|
|
26381
26427
|
children: (req) => (() => {
|
|
26382
|
-
var _el$39 = _tmpl$
|
|
26428
|
+
var _el$39 = _tmpl$1521(), _el$40 = _el$39.firstChild, _el$41 = _el$40.firstChild, _el$42 = _el$41.firstChild, _el$44 = _el$40.nextSibling;
|
|
26383
26429
|
insert(_el$42, () => req.drugName || req.drugId || "Prescription");
|
|
26384
26430
|
insert(_el$41, createComponent(Show, {
|
|
26385
26431
|
get when() {
|
|
26386
26432
|
return req.dosage;
|
|
26387
26433
|
},
|
|
26388
26434
|
get children() {
|
|
26389
|
-
var _el$43 = _tmpl$
|
|
26435
|
+
var _el$43 = _tmpl$1322();
|
|
26390
26436
|
insert(_el$43, () => req.dosage);
|
|
26391
26437
|
return _el$43;
|
|
26392
26438
|
}
|
|
@@ -26401,7 +26447,7 @@ function PatientDashboardPreview(props) {
|
|
|
26401
26447
|
return req.priceCents != null;
|
|
26402
26448
|
},
|
|
26403
26449
|
get children() {
|
|
26404
|
-
var _el$45 = _tmpl$
|
|
26450
|
+
var _el$45 = _tmpl$1422(), _el$46 = _el$45.firstChild;
|
|
26405
26451
|
insert(_el$45, () => centsToUsd(req.priceCents), _el$46);
|
|
26406
26452
|
return _el$45;
|
|
26407
26453
|
}
|
|
@@ -26612,9 +26658,9 @@ var _tmpl$1136 = /* @__PURE__ */ template(`<span class=thread__halo aria-hidden=
|
|
|
26612
26658
|
var _tmpl$1029 = /* @__PURE__ */ template(`<time class=thread__time>`);
|
|
26613
26659
|
var _tmpl$1137 = /* @__PURE__ */ template(`<h2 class=thread__hero>`);
|
|
26614
26660
|
var _tmpl$1225 = /* @__PURE__ */ template(`<p class=thread__caption>`);
|
|
26615
|
-
var _tmpl$
|
|
26616
|
-
var _tmpl$
|
|
26617
|
-
var _tmpl$
|
|
26661
|
+
var _tmpl$1323 = /* @__PURE__ */ template(`<button type=button class="portal-btn portal-btn--ghost thread__action">Where's my order?`);
|
|
26662
|
+
var _tmpl$1423 = /* @__PURE__ */ template(`<button type=button class="portal-btn portal-btn--primary thread__action">Message your care team`);
|
|
26663
|
+
var _tmpl$1522 = /* @__PURE__ */ template(`<button type=button class="portal-btn portal-btn--ghost thread__action">Talk to your provider`);
|
|
26618
26664
|
var _tmpl$1621 = /* @__PURE__ */ template(`<li><div class=thread__rail><span class=thread__bead></span></div><div><div class=thread__top><span class="lab-label thread__label">`);
|
|
26619
26665
|
var _tmpl$1721 = /* @__PURE__ */ template(`<p class="thread__caption thread__await"data-testid=await-messaging>Your care team is reviewing your request. You\u2019ll be able to message them here once your consult begins.`);
|
|
26620
26666
|
var _tmpl$1819 = /* @__PURE__ */ template(`<p class="thread__caption thread__await"data-testid=await-messaging>Your provider will follow up with you about next steps.`);
|
|
@@ -26807,7 +26853,7 @@ function OrderTracker(props) {
|
|
|
26807
26853
|
return props.messagingEnabled;
|
|
26808
26854
|
},
|
|
26809
26855
|
get children() {
|
|
26810
|
-
var _el$52 = _tmpl$
|
|
26856
|
+
var _el$52 = _tmpl$1323();
|
|
26811
26857
|
_el$52.$$click = () => props.onOpenMessages({
|
|
26812
26858
|
channel: "support",
|
|
26813
26859
|
category: "orders"
|
|
@@ -26830,7 +26876,7 @@ function OrderTracker(props) {
|
|
|
26830
26876
|
return _tmpl$1721();
|
|
26831
26877
|
},
|
|
26832
26878
|
get children() {
|
|
26833
|
-
var _el$53 = _tmpl$
|
|
26879
|
+
var _el$53 = _tmpl$1423();
|
|
26834
26880
|
_el$53.$$click = () => props.onOpenMessages({
|
|
26835
26881
|
channel: "care"
|
|
26836
26882
|
});
|
|
@@ -26852,7 +26898,7 @@ function OrderTracker(props) {
|
|
|
26852
26898
|
return _tmpl$1819();
|
|
26853
26899
|
},
|
|
26854
26900
|
get children() {
|
|
26855
|
-
var _el$54 = _tmpl$
|
|
26901
|
+
var _el$54 = _tmpl$1522();
|
|
26856
26902
|
_el$54.$$click = () => props.onOpenMessages({
|
|
26857
26903
|
channel: "care"
|
|
26858
26904
|
});
|
|
@@ -27467,9 +27513,9 @@ var _tmpl$1139 = /* @__PURE__ */ template(`<span class=msg-attachment__fallback>
|
|
|
27467
27513
|
var _tmpl$1030 = /* @__PURE__ */ template(`<p class=msg-thread__sender>`);
|
|
27468
27514
|
var _tmpl$1140 = /* @__PURE__ */ template(`<div class=msg-thread__text>`);
|
|
27469
27515
|
var _tmpl$1226 = /* @__PURE__ */ template(`<div class=msg-attachment>`);
|
|
27470
|
-
var _tmpl$
|
|
27471
|
-
var _tmpl$
|
|
27472
|
-
var _tmpl$
|
|
27516
|
+
var _tmpl$1324 = /* @__PURE__ */ template(`<div><div><p class=msg-thread__meta>`);
|
|
27517
|
+
var _tmpl$1424 = /* @__PURE__ */ template(`<p class=msg-thread__system data-testid=system-message>`);
|
|
27518
|
+
var _tmpl$1523 = /* @__PURE__ */ template(`<p class=msg-thread__text>`);
|
|
27473
27519
|
var _tmpl$1622 = /* @__PURE__ */ template(`<button type=button class="msg-compose__staged-remove msg-compose__staged-remove--inline">Remove file`);
|
|
27474
27520
|
var _tmpl$1722 = /* @__PURE__ */ template(`<p class=msg-compose__error role=alert>`);
|
|
27475
27521
|
var _tmpl$1820 = /* @__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 data-testid=support-compose-reply-note></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>`);
|
|
@@ -27874,13 +27920,13 @@ function MessagesPanel(props) {
|
|
|
27874
27920
|
},
|
|
27875
27921
|
get fallback() {
|
|
27876
27922
|
return (() => {
|
|
27877
|
-
var _el$34 = _tmpl$
|
|
27923
|
+
var _el$34 = _tmpl$1424();
|
|
27878
27924
|
insert(_el$34, body);
|
|
27879
27925
|
return _el$34;
|
|
27880
27926
|
})();
|
|
27881
27927
|
},
|
|
27882
27928
|
get children() {
|
|
27883
|
-
var _el$28 = _tmpl$
|
|
27929
|
+
var _el$28 = _tmpl$1324(), _el$29 = _el$28.firstChild, _el$33 = _el$29.firstChild;
|
|
27884
27930
|
insert(_el$29, createComponent(Show, {
|
|
27885
27931
|
get when() {
|
|
27886
27932
|
return memo(() => !!!isOwn())() && p.msg.senderName;
|
|
@@ -27902,7 +27948,7 @@ function MessagesPanel(props) {
|
|
|
27902
27948
|
},
|
|
27903
27949
|
get fallback() {
|
|
27904
27950
|
return (() => {
|
|
27905
|
-
var _el$35 = _tmpl$
|
|
27951
|
+
var _el$35 = _tmpl$1523();
|
|
27906
27952
|
insert(_el$35, body);
|
|
27907
27953
|
return _el$35;
|
|
27908
27954
|
})();
|
|
@@ -30504,5 +30550,5 @@ function primaryButtonStyle2(submitting) {
|
|
|
30504
30550
|
}
|
|
30505
30551
|
|
|
30506
30552
|
export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath };
|
|
30507
|
-
//# sourceMappingURL=
|
|
30508
|
-
//# sourceMappingURL=
|
|
30553
|
+
//# sourceMappingURL=FDCDDUB6.js.map
|
|
30554
|
+
//# sourceMappingURL=FDCDDUB6.js.map
|