@apextelemed/partner-core 0.5.0 → 0.5.1
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/{Z2CR6WKF.jsx → 2UWULNSX.jsx} +2 -2
- package/dist/chunk/{ITK5F5AI.js → 5D7SGF46.js} +2 -2
- package/dist/chunk/{ITK5F5AI.js.map → 5D7SGF46.js.map} +1 -1
- package/dist/chunk/{4YUUZ532.js → 7ZESUC4Q.js} +3 -3
- package/dist/chunk/{4YUUZ532.js.map → 7ZESUC4Q.js.map} +1 -1
- package/dist/chunk/{YPZVHEBG.jsx → AH3PJBED.jsx} +44 -15
- package/dist/chunk/{NNTB7KL5.js → C7TELVJF.js} +3 -3
- package/dist/chunk/{NNTB7KL5.js.map → C7TELVJF.js.map} +1 -1
- package/dist/chunk/{B5RBZKAK.jsx → DQE4K55D.jsx} +1 -1
- package/dist/chunk/{GGY7VMZ2.jsx → FUOUTRAO.jsx} +2 -2
- package/dist/chunk/{CXBPVQ7W.jsx → GNG53L37.jsx} +2 -2
- package/dist/chunk/{4W5ONAFF.js → GPVYUP3H.js} +5 -5
- package/dist/chunk/{4W5ONAFF.js.map → GPVYUP3H.js.map} +1 -1
- package/dist/chunk/{6QC4BETO.jsx → JTG4H4I5.jsx} +4 -4
- package/dist/chunk/{7COJH6FZ.js → JXPPJF2V.js} +106 -79
- package/dist/chunk/JXPPJF2V.js.map +1 -0
- package/dist/chunk/{O4V2YXBF.js → XHOD3HUQ.js} +3 -3
- package/dist/chunk/{O4V2YXBF.js.map → XHOD3HUQ.js.map} +1 -1
- package/dist/chunk/{6MDLP62Y.js → ZD2MMEXL.js} +6 -6
- package/dist/chunk/{6MDLP62Y.js.map → ZD2MMEXL.js.map} +1 -1
- package/dist/chunk/{5CXUPFZU.jsx → ZJENZPAM.jsx} +5 -5
- package/dist/{client-Cm6n4V0r.d.ts → client-BD9_HCZY.d.ts} +8 -0
- package/dist/flows/index.d.ts +1 -1
- package/dist/flows/index.js +6 -6
- package/dist/flows/index.jsx +6 -6
- package/dist/index/index.d.ts +1 -1
- package/dist/index/index.js +7 -7
- package/dist/index/index.jsx +7 -7
- package/dist/pages/index.d.ts +1 -1
- package/dist/pages/index.js +5 -5
- package/dist/pages/index.jsx +5 -5
- package/dist/stores/index.d.ts +1 -1
- package/dist/stores/index.js +2 -2
- package/dist/stores/index.jsx +2 -2
- package/package.json +1 -1
- package/dist/chunk/7COJH6FZ.js.map +0 -1
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
readResumeToken,
|
|
7
7
|
saveFunnelDraft,
|
|
8
8
|
stripResumeToken
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./2UWULNSX.jsx";
|
|
10
10
|
import {
|
|
11
11
|
affiliateAuth_default,
|
|
12
12
|
auth_default,
|
|
13
13
|
cart_default,
|
|
14
14
|
medication_default
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./GNG53L37.jsx";
|
|
16
16
|
import {
|
|
17
17
|
ApiError,
|
|
18
18
|
addressesApi,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
subscriptionsApi,
|
|
28
28
|
supportApi,
|
|
29
29
|
usersApi
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./DQE4K55D.jsx";
|
|
31
31
|
import {
|
|
32
32
|
getConfig
|
|
33
33
|
} from "./LDZIUFDM.jsx";
|
|
@@ -4027,4 +4027,4 @@ export {
|
|
|
4027
4027
|
useSurveyV2Flow,
|
|
4028
4028
|
uploadPrescriptionPhoto
|
|
4029
4029
|
};
|
|
4030
|
-
//# sourceMappingURL=
|
|
4030
|
+
//# sourceMappingURL=JTG4H4I5.jsx.map
|
|
@@ -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, buildTrackerView, ACCOUNT_SOURCE_LABEL, fmtDay, formatCalendarDate, formatMessageTime, formatEventDate, formatStageDate, LIFECYCLE_TONE, buildTrackingUrl, isImageAttachment, buildRefillView, toTrackerRequest } from './GPVYUP3H.js';
|
|
3
|
+
import { fetchFunnelConfig } from './7ZESUC4Q.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 './C7TELVJF.js';
|
|
6
|
+
import { usersApi, adminApi, membersApi, affiliatePortalApi, authApi, adminAffiliatesApi, SUPPORT_ATTACHMENT_MIME_TYPES, SUPPORT_ATTACHMENT_MAX_BYTES, apiFetch, apexApi, subscriptionsApi, ApiError } from './5D7SGF46.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';
|
|
@@ -11166,6 +11166,41 @@ function RequestCard(props) {
|
|
|
11166
11166
|
return _el$;
|
|
11167
11167
|
})();
|
|
11168
11168
|
}
|
|
11169
|
+
|
|
11170
|
+
// src/pages/admin/customers/subscriptionTerms.ts
|
|
11171
|
+
function nextChargeCents(s) {
|
|
11172
|
+
return s.nextChargeCents ?? s.amountCents;
|
|
11173
|
+
}
|
|
11174
|
+
function charges(n) {
|
|
11175
|
+
return `${n} more ${n === 1 ? "charge" : "charges"}`;
|
|
11176
|
+
}
|
|
11177
|
+
function priceChange(s) {
|
|
11178
|
+
const next = nextChargeCents(s);
|
|
11179
|
+
const base = s.baseAmountCents;
|
|
11180
|
+
if (next == null || base == null || base <= next) return null;
|
|
11181
|
+
if (s.discountRecurringIndefinite) return `${centsToUsd(base - next)} off ongoing`;
|
|
11182
|
+
const remaining = s.discountRecurringRemaining ?? 0;
|
|
11183
|
+
if (s.billingMode !== "gateway" && remaining > 0) return `then ${centsToUsd(base)} after ${charges(remaining)}`;
|
|
11184
|
+
return `then ${centsToUsd(base)}`;
|
|
11185
|
+
}
|
|
11186
|
+
function priceLine(s) {
|
|
11187
|
+
const every = `${centsToUsd(nextChargeCents(s))} every ${s.intervalDays ?? 30} days`;
|
|
11188
|
+
const change = priceChange(s);
|
|
11189
|
+
return change ? `${every}, ${change}` : every;
|
|
11190
|
+
}
|
|
11191
|
+
function discountTerms(s) {
|
|
11192
|
+
const amount = s.amountCents;
|
|
11193
|
+
const base = s.baseAmountCents;
|
|
11194
|
+
const off = amount != null && base != null && base > amount ? `${centsToUsd(base - amount)} off` : null;
|
|
11195
|
+
const remaining = s.discountRecurringRemaining ?? 0;
|
|
11196
|
+
if (s.discountRecurringIndefinite) return off ? `${off}, ongoing` : "Recurring, ongoing";
|
|
11197
|
+
if (remaining > 0) return off ? `${off}, ${charges(remaining)}` : `Recurring, ${charges(remaining)}`;
|
|
11198
|
+
if (!off || base == null) return null;
|
|
11199
|
+
const next = nextChargeCents(s);
|
|
11200
|
+
return next != null && next >= base ? `${off}, ended` : `${off}, first charge only`;
|
|
11201
|
+
}
|
|
11202
|
+
|
|
11203
|
+
// src/pages/admin/customers/sections/SubscriptionCard.tsx
|
|
11169
11204
|
var _tmpl$161 = /* @__PURE__ */ template(`<span class=app-admin-text-muted style=font-size:0.875rem>`);
|
|
11170
11205
|
var _tmpl$257 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm">Change amount`);
|
|
11171
11206
|
var _tmpl$340 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-ghost app-admin-btn-sm">Change schedule`);
|
|
@@ -11174,7 +11209,7 @@ var _tmpl$527 = /* @__PURE__ */ template(`<button type=button class="app-admin-b
|
|
|
11174
11209
|
var _tmpl$626 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-danger">`);
|
|
11175
11210
|
var _tmpl$724 = /* @__PURE__ */ template(`<div class=app-admin-table-wrap style=margin-top:0.5rem><table class=app-admin-table style=font-size:0.8125rem><thead><tr><th>When</th><th>Period</th><th>Amount</th><th>Outcome</th><th>Reason</th><th></th></tr></thead><tbody>`);
|
|
11176
11211
|
var _tmpl$821 = /* @__PURE__ */ template(`<div style=margin-top:0.875rem><button type=button class=app-admin-link-btn> billing attempts (<!>)`);
|
|
11177
|
-
var _tmpl$918 = /* @__PURE__ */ template(`<article class=app-admin-card-soft style="padding:1rem 1.25rem"><div style=display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:0.75rem><div style=min-width:0><div style=display:flex;align-items:center;gap:0.5rem;flex-wrap:wrap><span style=font-weight:600></span></div><div class=app-admin-text-muted style=font-size:0.875rem;margin-top:0.25rem>
|
|
11212
|
+
var _tmpl$918 = /* @__PURE__ */ template(`<article class=app-admin-card-soft style="padding:1rem 1.25rem"><div style=display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:0.75rem><div style=min-width:0><div style=display:flex;align-items:center;gap:0.5rem;flex-wrap:wrap><span style=font-weight:600></span></div><div class=app-admin-text-muted style=font-size:0.875rem;margin-top:0.25rem> \xB7 </div></div><div style=display:flex;flex-wrap:wrap;gap:0.375rem></div></div><div style=margin-top:0.875rem>`);
|
|
11178
11213
|
var _tmpl$015 = /* @__PURE__ */ template(`<span class=app-admin-text-mono style=font-size:0.8125rem>`);
|
|
11179
11214
|
var _tmpl$169 = /* @__PURE__ */ template(`<button type=button class="app-admin-btn app-admin-btn-warning">Resolve`);
|
|
11180
11215
|
var _tmpl$1010 = /* @__PURE__ */ template(`<tr><td data-label=When class=app-admin-text-muted></td><td data-label=Period class=app-admin-text-muted></td><td data-label=Amount></td><td data-label=Outcome><span></span></td><td data-label=Reason class=app-admin-text-muted></td><td data-label class=app-admin-table-cell--no-label>`);
|
|
@@ -11191,13 +11226,8 @@ function SubscriptionCard(props) {
|
|
|
11191
11226
|
const [showAttempts, setShowAttempts] = createSignal(s().status === "past_due" || s().status === "incomplete" || (s().billingAttempts ?? []).some((a) => a.status === "indeterminate"));
|
|
11192
11227
|
const attempts = () => [...s().billingAttempts ?? []].sort((a, b) => Date.parse(b.createdAt ?? "") - Date.parse(a.createdAt ?? ""));
|
|
11193
11228
|
const busy = (key) => props.busy === `${key}-${s().id}`;
|
|
11194
|
-
const discount = () => {
|
|
11195
|
-
if (s().discountRecurringIndefinite) return "Recurring discount, indefinite";
|
|
11196
|
-
if ((s().discountRecurringRemaining ?? 0) > 0) return `Recurring discount, ${s().discountRecurringRemaining} charge${s().discountRecurringRemaining === 1 ? "" : "s"} left`;
|
|
11197
|
-
return null;
|
|
11198
|
-
};
|
|
11199
11229
|
return (() => {
|
|
11200
|
-
var _el$ = _tmpl$918(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$7 = _el$4.nextSibling, _el$8 = _el$7.firstChild, _el$
|
|
11230
|
+
var _el$ = _tmpl$918(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$7 = _el$4.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$3.nextSibling, _el$13 = _el$2.nextSibling;
|
|
11201
11231
|
insert(_el$5, () => subscriptionLabel(s()));
|
|
11202
11232
|
insert(_el$4, createComponent(Show, {
|
|
11203
11233
|
get when() {
|
|
@@ -11214,79 +11244,70 @@ function SubscriptionCard(props) {
|
|
|
11214
11244
|
return s().status;
|
|
11215
11245
|
}
|
|
11216
11246
|
}), null);
|
|
11217
|
-
insert(_el$7, () =>
|
|
11218
|
-
insert(_el$7, () => s().intervalDays ?? 30, _el$1);
|
|
11219
|
-
insert(_el$7, createComponent(Show, {
|
|
11220
|
-
get when() {
|
|
11221
|
-
return memo(() => s().baseAmountCents != null)() && s().baseAmountCents !== s().amountCents;
|
|
11222
|
-
},
|
|
11223
|
-
get children() {
|
|
11224
|
-
return ` (then ${centsToUsd(s().baseAmountCents)})`;
|
|
11225
|
-
}
|
|
11226
|
-
}), _el$10);
|
|
11247
|
+
insert(_el$7, () => priceLine(s()), _el$8);
|
|
11227
11248
|
insert(_el$7, () => gateway() ? "billed by the gateway" : "billed by the platform", null);
|
|
11228
|
-
insert(_el$
|
|
11249
|
+
insert(_el$9, createComponent(Show, {
|
|
11229
11250
|
get when() {
|
|
11230
11251
|
return live();
|
|
11231
11252
|
},
|
|
11232
11253
|
get children() {
|
|
11233
11254
|
return [(() => {
|
|
11234
|
-
var _el$
|
|
11235
|
-
_el$
|
|
11255
|
+
var _el$0 = _tmpl$257();
|
|
11256
|
+
_el$0.$$click = () => props.onEditAmount(s());
|
|
11236
11257
|
effect((_p$) => {
|
|
11237
11258
|
var _v$ = gateway(), _v$2 = gateway() ? "The gateway holds this price; move the subscription to platform billing first." : void 0;
|
|
11238
|
-
_v$ !== _p$.e && (_el$
|
|
11239
|
-
_v$2 !== _p$.t && setAttribute(_el$
|
|
11259
|
+
_v$ !== _p$.e && (_el$0.disabled = _p$.e = _v$);
|
|
11260
|
+
_v$2 !== _p$.t && setAttribute(_el$0, "title", _p$.t = _v$2);
|
|
11240
11261
|
return _p$;
|
|
11241
11262
|
}, {
|
|
11242
11263
|
e: void 0,
|
|
11243
11264
|
t: void 0
|
|
11244
11265
|
});
|
|
11245
|
-
return _el$
|
|
11266
|
+
return _el$0;
|
|
11246
11267
|
})(), (() => {
|
|
11247
|
-
var _el$
|
|
11248
|
-
_el$
|
|
11249
|
-
return _el$
|
|
11268
|
+
var _el$1 = _tmpl$340();
|
|
11269
|
+
_el$1.$$click = () => props.onEditSchedule(s());
|
|
11270
|
+
return _el$1;
|
|
11250
11271
|
})()];
|
|
11251
11272
|
}
|
|
11252
11273
|
}), null);
|
|
11253
|
-
insert(_el$
|
|
11274
|
+
insert(_el$9, createComponent(Show, {
|
|
11254
11275
|
get when() {
|
|
11255
11276
|
return s().status === "active";
|
|
11256
11277
|
},
|
|
11257
11278
|
get children() {
|
|
11258
|
-
var _el$
|
|
11259
|
-
_el$
|
|
11260
|
-
insert(_el$
|
|
11261
|
-
effect(() => _el$
|
|
11262
|
-
return _el$
|
|
11279
|
+
var _el$10 = _tmpl$430();
|
|
11280
|
+
_el$10.$$click = () => props.onPause(s());
|
|
11281
|
+
insert(_el$10, () => busy("pause") ? "Pausing\u2026" : "Pause");
|
|
11282
|
+
effect(() => _el$10.disabled = busy("pause"));
|
|
11283
|
+
return _el$10;
|
|
11263
11284
|
}
|
|
11264
11285
|
}), null);
|
|
11265
|
-
insert(_el$
|
|
11286
|
+
insert(_el$9, createComponent(Show, {
|
|
11266
11287
|
get when() {
|
|
11267
11288
|
return s().status === "paused";
|
|
11268
11289
|
},
|
|
11269
11290
|
get children() {
|
|
11270
|
-
var _el$
|
|
11271
|
-
_el$
|
|
11272
|
-
insert(_el$
|
|
11273
|
-
effect(() => _el$
|
|
11274
|
-
return _el$
|
|
11291
|
+
var _el$11 = _tmpl$527();
|
|
11292
|
+
_el$11.$$click = () => props.onResume(s());
|
|
11293
|
+
insert(_el$11, () => busy("resume") ? "Resuming\u2026" : "Resume");
|
|
11294
|
+
effect(() => _el$11.disabled = busy("resume"));
|
|
11295
|
+
return _el$11;
|
|
11275
11296
|
}
|
|
11276
11297
|
}), null);
|
|
11277
|
-
insert(_el$
|
|
11298
|
+
insert(_el$9, createComponent(Show, {
|
|
11278
11299
|
get when() {
|
|
11279
11300
|
return live();
|
|
11280
11301
|
},
|
|
11281
11302
|
get children() {
|
|
11282
|
-
var _el$
|
|
11283
|
-
_el$
|
|
11284
|
-
insert(_el$
|
|
11285
|
-
effect(() => _el$
|
|
11286
|
-
return _el$
|
|
11303
|
+
var _el$12 = _tmpl$626();
|
|
11304
|
+
_el$12.$$click = () => props.onCancel(s());
|
|
11305
|
+
insert(_el$12, () => busy("cancel") ? "\u2026" : "Cancel");
|
|
11306
|
+
effect(() => _el$12.disabled = busy("cancel"));
|
|
11307
|
+
return _el$12;
|
|
11287
11308
|
}
|
|
11288
11309
|
}), null);
|
|
11289
|
-
insert(_el$
|
|
11310
|
+
insert(_el$13, createComponent(KeyValueList, {
|
|
11290
11311
|
get items() {
|
|
11291
11312
|
return [{
|
|
11292
11313
|
label: "Next charge",
|
|
@@ -11306,15 +11327,21 @@ function SubscriptionCard(props) {
|
|
|
11306
11327
|
}, {
|
|
11307
11328
|
label: "Retries",
|
|
11308
11329
|
value: s().retryCount ? `${s().retryCount}${s().lastAttemptAt ? `, last ${fmtDate(s().lastAttemptAt)}` : ""}` : null
|
|
11330
|
+
}, {
|
|
11331
|
+
label: "Promo code",
|
|
11332
|
+
value: s().promoCode ?? null
|
|
11333
|
+
}, {
|
|
11334
|
+
label: "Sale",
|
|
11335
|
+
value: s().saleName ?? null
|
|
11309
11336
|
}, {
|
|
11310
11337
|
label: "Discount",
|
|
11311
|
-
value:
|
|
11338
|
+
value: discountTerms(s())
|
|
11312
11339
|
}, {
|
|
11313
11340
|
label: "Gateway id",
|
|
11314
11341
|
value: s().gatewaySubscriptionId ? (() => {
|
|
11315
|
-
var _el$
|
|
11316
|
-
insert(_el$
|
|
11317
|
-
return _el$
|
|
11342
|
+
var _el$23 = _tmpl$015();
|
|
11343
|
+
insert(_el$23, () => s().gatewaySubscriptionId);
|
|
11344
|
+
return _el$23;
|
|
11318
11345
|
})() : null
|
|
11319
11346
|
}].filter((i) => i.value !== null && i.value !== void 0);
|
|
11320
11347
|
}
|
|
@@ -11324,25 +11351,25 @@ function SubscriptionCard(props) {
|
|
|
11324
11351
|
return attempts().length > 0;
|
|
11325
11352
|
},
|
|
11326
11353
|
get children() {
|
|
11327
|
-
var _el$
|
|
11328
|
-
_el$
|
|
11329
|
-
insert(_el$
|
|
11330
|
-
insert(_el$
|
|
11331
|
-
insert(_el$
|
|
11354
|
+
var _el$14 = _tmpl$821(), _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild, _el$18 = _el$16.nextSibling; _el$18.nextSibling;
|
|
11355
|
+
_el$15.$$click = () => setShowAttempts((v) => !v);
|
|
11356
|
+
insert(_el$15, () => showAttempts() ? "Hide" : "Show", _el$16);
|
|
11357
|
+
insert(_el$15, () => attempts().length, _el$18);
|
|
11358
|
+
insert(_el$14, createComponent(Show, {
|
|
11332
11359
|
get when() {
|
|
11333
11360
|
return showAttempts();
|
|
11334
11361
|
},
|
|
11335
11362
|
get children() {
|
|
11336
|
-
var _el$
|
|
11337
|
-
insert(_el$
|
|
11363
|
+
var _el$19 = _tmpl$724(), _el$20 = _el$19.firstChild, _el$21 = _el$20.firstChild, _el$22 = _el$21.nextSibling;
|
|
11364
|
+
insert(_el$22, createComponent(For, {
|
|
11338
11365
|
get each() {
|
|
11339
11366
|
return attempts();
|
|
11340
11367
|
},
|
|
11341
11368
|
children: (a) => (() => {
|
|
11342
|
-
var _el$
|
|
11343
|
-
insert(_el$
|
|
11344
|
-
insert(_el$
|
|
11345
|
-
insert(_el$
|
|
11369
|
+
var _el$24 = _tmpl$1010(), _el$25 = _el$24.firstChild, _el$26 = _el$25.nextSibling, _el$27 = _el$26.nextSibling, _el$28 = _el$27.nextSibling, _el$29 = _el$28.firstChild, _el$30 = _el$28.nextSibling, _el$31 = _el$30.nextSibling;
|
|
11370
|
+
insert(_el$25, () => fmtDate(a.createdAt));
|
|
11371
|
+
insert(_el$26, () => (a.billingPeriod ?? 0) + 1, null);
|
|
11372
|
+
insert(_el$26, createComponent(Show, {
|
|
11346
11373
|
get when() {
|
|
11347
11374
|
return (a.attemptNo ?? 1) > 1;
|
|
11348
11375
|
},
|
|
@@ -11350,29 +11377,29 @@ function SubscriptionCard(props) {
|
|
|
11350
11377
|
return ` (try ${a.attemptNo})`;
|
|
11351
11378
|
}
|
|
11352
11379
|
}), null);
|
|
11353
|
-
insert(_el$
|
|
11354
|
-
insert(_el$
|
|
11355
|
-
insert(_el$
|
|
11356
|
-
insert(_el$
|
|
11380
|
+
insert(_el$27, () => centsToUsd(a.amountCents));
|
|
11381
|
+
insert(_el$29, () => a.status);
|
|
11382
|
+
insert(_el$30, () => a.errorMessage ?? a.errorCode ?? "\u2014");
|
|
11383
|
+
insert(_el$31, createComponent(Show, {
|
|
11357
11384
|
get when() {
|
|
11358
11385
|
return a.status === "pending" || a.status === "indeterminate";
|
|
11359
11386
|
},
|
|
11360
11387
|
get children() {
|
|
11361
|
-
var _el$
|
|
11362
|
-
_el$
|
|
11363
|
-
effect(() => _el$
|
|
11364
|
-
return _el$
|
|
11388
|
+
var _el$32 = _tmpl$169();
|
|
11389
|
+
_el$32.$$click = () => props.onResolveAttempt(s(), a);
|
|
11390
|
+
effect(() => _el$32.disabled = props.busy === `resolve-${a.id}`);
|
|
11391
|
+
return _el$32;
|
|
11365
11392
|
}
|
|
11366
11393
|
}));
|
|
11367
|
-
effect(() => className(_el$
|
|
11368
|
-
return _el$
|
|
11394
|
+
effect(() => className(_el$29, `app-admin-badge app-admin-badge--${attemptTone(a.status)}`));
|
|
11395
|
+
return _el$24;
|
|
11369
11396
|
})()
|
|
11370
11397
|
}));
|
|
11371
|
-
return _el$
|
|
11398
|
+
return _el$19;
|
|
11372
11399
|
}
|
|
11373
11400
|
}), null);
|
|
11374
|
-
effect(() => setAttribute(_el$
|
|
11375
|
-
return _el$
|
|
11401
|
+
effect(() => setAttribute(_el$15, "aria-expanded", showAttempts()));
|
|
11402
|
+
return _el$14;
|
|
11376
11403
|
}
|
|
11377
11404
|
}), null);
|
|
11378
11405
|
effect(() => setAttribute(_el$, "id", `sub-${s().id}`));
|
|
@@ -19715,5 +19742,5 @@ function primaryButtonStyle2(submitting) {
|
|
|
19715
19742
|
}
|
|
19716
19743
|
|
|
19717
19744
|
export { AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod };
|
|
19718
|
-
//# sourceMappingURL=
|
|
19719
|
-
//# sourceMappingURL=
|
|
19745
|
+
//# sourceMappingURL=JXPPJF2V.js.map
|
|
19746
|
+
//# sourceMappingURL=JXPPJF2V.js.map
|