@apextelemed/partner-core 0.25.0-dev.91 → 0.25.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/chunk/{HGKZ6FBS.jsx → 6MPJIVNJ.jsx} +242 -35
- package/dist/chunk/{OJV5HNJM.js → 7IQKUSD5.js} +19 -7
- package/dist/chunk/7IQKUSD5.js.map +1 -0
- package/dist/chunk/{XNSHW2IW.js → FKND7XXI.js} +1405 -1210
- package/dist/chunk/FKND7XXI.js.map +1 -0
- package/dist/chunk/{POF64TCZ.js → LIGPTJRM.js} +224 -17
- package/dist/chunk/LIGPTJRM.js.map +1 -0
- package/dist/chunk/{IKLXSGDE.jsx → WRLY53X7.jsx} +18 -6
- package/dist/chunk/{Q5OPCOWX.jsx → XJF3Z2IM.jsx} +135 -24
- package/dist/flows/index.d.ts +6 -2866
- package/dist/flows/index.js +2 -2
- package/dist/flows/index.jsx +2 -2
- package/dist/index/index.d.ts +43 -3
- package/dist/index/index.js +3 -3
- package/dist/index/index.jsx +5 -3
- package/dist/index-CEwbvyzz.d.ts +2954 -0
- package/dist/pages/index.js +2 -2
- package/dist/pages/index.jsx +2 -2
- package/package.json +1 -1
- package/dist/chunk/OJV5HNJM.js.map +0 -1
- package/dist/chunk/POF64TCZ.js.map +0 -1
- package/dist/chunk/XNSHW2IW.js.map +0 -1
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
useCatalogAvailability,
|
|
26
26
|
useSmsConsent,
|
|
27
27
|
validateAddress
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./6MPJIVNJ.jsx";
|
|
29
29
|
import {
|
|
30
30
|
auth_default,
|
|
31
31
|
cart_default
|
|
@@ -80,7 +80,9 @@ function useSubscriptionIntakeFlow(options) {
|
|
|
80
80
|
const accept = useCardTokenizer();
|
|
81
81
|
let restored = {};
|
|
82
82
|
if (typeof window !== "undefined") restored = loadDraft();
|
|
83
|
-
const [step, setStep] = createSignal(
|
|
83
|
+
const [step, setStep] = createSignal(
|
|
84
|
+
auth_default.isAuthenticated() ? Math.min(restored.step ?? 0, MAX_RESTORABLE_STEP) : 0
|
|
85
|
+
);
|
|
84
86
|
const [error, setError] = createSignal(null);
|
|
85
87
|
const [tokenizing, setTokenizing] = createSignal(false);
|
|
86
88
|
const [submitting, setSubmitting] = createSignal(false);
|
|
@@ -287,9 +289,11 @@ function useSubscriptionIntakeFlow(options) {
|
|
|
287
289
|
} else if (s === 1) {
|
|
288
290
|
return firstAddressError(validateAddress(addr.shipping(), "", { enforceAvailability: true }));
|
|
289
291
|
} else if (s === 2) {
|
|
290
|
-
if (!
|
|
291
|
-
|
|
292
|
-
|
|
292
|
+
if (!accept.hostedFields()) {
|
|
293
|
+
if (!cardNumberRaw().trim()) return "Card number is required.";
|
|
294
|
+
if (!expiryRaw().trim()) return "Expiration date is required.";
|
|
295
|
+
if (!cvvRaw().trim()) return "CVV is required.";
|
|
296
|
+
}
|
|
293
297
|
}
|
|
294
298
|
return null;
|
|
295
299
|
}
|
|
@@ -309,6 +313,12 @@ function useSubscriptionIntakeFlow(options) {
|
|
|
309
313
|
let awaitingAvailability = false;
|
|
310
314
|
async function submit() {
|
|
311
315
|
if (awaitingAvailability) return;
|
|
316
|
+
const accountErr = validateStep(0);
|
|
317
|
+
if (accountErr) {
|
|
318
|
+
setStep(0);
|
|
319
|
+
setError(accountErr);
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
312
322
|
awaitingAvailability = true;
|
|
313
323
|
try {
|
|
314
324
|
await availability.settled();
|
|
@@ -486,6 +496,8 @@ function useSubscriptionIntakeFlow(options) {
|
|
|
486
496
|
expiry: expiryRaw,
|
|
487
497
|
setExpiry: (v) => setExpiryRaw(formatExpiry(v)),
|
|
488
498
|
cvv: cvvRaw,
|
|
499
|
+
hostedCardFields: accept.hostedFields,
|
|
500
|
+
registerCardField: accept.registerHostedField,
|
|
489
501
|
setCvv: (v) => setCvvRaw(formatCvv(v)),
|
|
490
502
|
promoCode,
|
|
491
503
|
setPromoCode,
|
|
@@ -661,4 +673,4 @@ export {
|
|
|
661
673
|
restoreCartFromLink,
|
|
662
674
|
startCartCapture
|
|
663
675
|
};
|
|
664
|
-
//# sourceMappingURL=
|
|
676
|
+
//# sourceMappingURL=WRLY53X7.jsx.map
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
useSurveyV2Flow,
|
|
87
87
|
useUpdatePaymentMethodFlow,
|
|
88
88
|
visibleWarnings
|
|
89
|
-
} from "./
|
|
89
|
+
} from "./6MPJIVNJ.jsx";
|
|
90
90
|
import {
|
|
91
91
|
affiliateAuth_default,
|
|
92
92
|
auth_default,
|
|
@@ -2239,6 +2239,79 @@ function QuestionField2(props) {
|
|
|
2239
2239
|
// src/pages/Checkout.tsx
|
|
2240
2240
|
import { Show as Show5, createEffect as createEffect3 } from "solid-js";
|
|
2241
2241
|
|
|
2242
|
+
// src/components/SecureCardPanel.tsx
|
|
2243
|
+
import { onMount } from "solid-js";
|
|
2244
|
+
var STYLE_ID = "apc-secure-card-panel-css";
|
|
2245
|
+
var CSS = `
|
|
2246
|
+
.apc-card{--_bg:var(--apc-card-bg,var(--app-flow-surface,#fff));--_head:var(--apc-card-head-bg,var(--app-flow-surface-inset,#f6f6f4));--_border:var(--apc-card-border,var(--app-flow-border,rgba(0,0,0,.14)));--_radius:var(--apc-card-radius,var(--app-flow-radius,12px));--_fg:var(--apc-card-fg,var(--app-flow-fg,inherit));--_muted:var(--apc-card-muted,var(--app-flow-fg-muted,#6b6b6b));--_accent:var(--apc-card-accent,var(--app-flow-primary,#2563eb));--_danger:var(--apc-card-danger,var(--app-flow-danger,#c0392b));--_ok:var(--apc-card-success,var(--app-flow-success,#4caf50));
|
|
2247
|
+
border:1px solid var(--_border);border-radius:var(--_radius);background:var(--_bg);color:var(--_fg);overflow:hidden;text-align:left;box-shadow:0 1px 2px rgba(0,0,0,.03),0 8px 24px -14px rgba(0,0,0,.18)}
|
|
2248
|
+
.apc-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:var(--_head);border-bottom:1px solid var(--_border);font-size:13px;line-height:1.2}
|
|
2249
|
+
.apc-card-title{display:flex;align-items:center;gap:8px;font-weight:600;margin:0;font-size:inherit}
|
|
2250
|
+
.apc-card-badge{display:flex;align-items:center;gap:6px;color:var(--_muted);font-size:12px;white-space:nowrap}
|
|
2251
|
+
.apc-card-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--_ok);box-shadow:0 0 0 3px color-mix(in srgb,var(--_ok) 25%,transparent)}
|
|
2252
|
+
.apc-card-grid{display:grid;grid-template-columns:1fr 1fr}
|
|
2253
|
+
.apc-card-grid.apc-inline{grid-template-columns:2fr 1fr 1fr}
|
|
2254
|
+
.apc-card-cell{position:relative;padding:10px 16px 9px;min-width:0}
|
|
2255
|
+
.apc-card-cell.apc-full{grid-column:1/-1}
|
|
2256
|
+
.apc-card-grid:not(.apc-inline) .apc-card-cell+.apc-card-cell:not(.apc-full){border-left:1px solid var(--_border)}
|
|
2257
|
+
.apc-card-grid:not(.apc-inline) .apc-full{border-bottom:1px solid var(--_border)}
|
|
2258
|
+
.apc-card-grid.apc-inline .apc-card-cell+.apc-card-cell{border-left:1px solid var(--_border)}
|
|
2259
|
+
.apc-card-label{display:block;font-size:11px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--_muted);margin-bottom:3px;transition:color .15s}
|
|
2260
|
+
.apc-card-slot{height:26px;font-size:17px;color:var(--_fg)}
|
|
2261
|
+
.apc-card-slot iframe{display:block;width:100%;height:100%!important;border:0;outline:none}
|
|
2262
|
+
.apc-card-cell::after{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:transparent;transition:background .15s}
|
|
2263
|
+
.apc-card-cell:has(>[data-focused])::after{background:var(--_accent)}
|
|
2264
|
+
.apc-card-cell:has(>[data-focused]) .apc-card-label{color:var(--_accent)}
|
|
2265
|
+
.apc-card-cell:has(>[data-invalid])::after{background:var(--_danger)}
|
|
2266
|
+
.apc-card-cell:has(>[data-invalid]) .apc-card-label{color:var(--_danger)}
|
|
2267
|
+
.apc-card-note{display:flex;gap:8px;align-items:flex-start;margin:10px 4px 0;color:var(--_muted);font-size:12px;line-height:1.45}
|
|
2268
|
+
.apc-card-note svg{flex:none;margin-top:1px}
|
|
2269
|
+
`;
|
|
2270
|
+
function ensureStyles() {
|
|
2271
|
+
if (typeof document === "undefined" || document.getElementById(STYLE_ID)) return;
|
|
2272
|
+
const el = document.createElement("style");
|
|
2273
|
+
el.id = STYLE_ID;
|
|
2274
|
+
el.textContent = CSS;
|
|
2275
|
+
document.head.insertBefore(el, document.head.firstChild);
|
|
2276
|
+
}
|
|
2277
|
+
var Lock = () => <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
2278
|
+
<rect x="3" y="11" width="18" height="10" rx="2" />
|
|
2279
|
+
<path d="M7 11V7a5 5 0 0 1 10 0v4" />
|
|
2280
|
+
</svg>;
|
|
2281
|
+
var Shield = () => <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round" aria-hidden="true">
|
|
2282
|
+
<path d="M12 2l8 4v6c0 5-3.5 9-8 10-4.5-1-8-5-8-10V6z" />
|
|
2283
|
+
</svg>;
|
|
2284
|
+
function SecureCardPanel(props) {
|
|
2285
|
+
onMount(ensureStyles);
|
|
2286
|
+
const cell = (field2, label3, full = false) => <div class={full ? "apc-card-cell apc-full" : "apc-card-cell"}>
|
|
2287
|
+
<span class="apc-card-label">{label3}</span>
|
|
2288
|
+
<div class="apc-card-slot" role="group" aria-label={label3} data-hosted-field={field2} ref={(el) => props.register(field2, el)} />
|
|
2289
|
+
</div>;
|
|
2290
|
+
return <div>
|
|
2291
|
+
<div class={props.class ? `apc-card ${props.class}` : "apc-card"}>
|
|
2292
|
+
<div class="apc-card-head">
|
|
2293
|
+
<p class="apc-card-title">
|
|
2294
|
+
<Lock />
|
|
2295
|
+
{props.title ?? "Card details"}
|
|
2296
|
+
</p>
|
|
2297
|
+
<span class="apc-card-badge">Encrypted</span>
|
|
2298
|
+
</div>
|
|
2299
|
+
<div class={props.inline ? "apc-card-grid apc-inline" : "apc-card-grid"}>
|
|
2300
|
+
{cell("number", "Card number", !props.inline)}
|
|
2301
|
+
{cell("expiry", "Expires")}
|
|
2302
|
+
{cell("cvv", "CVV")}
|
|
2303
|
+
</div>
|
|
2304
|
+
</div>
|
|
2305
|
+
<p class="apc-card-note">
|
|
2306
|
+
<Shield />
|
|
2307
|
+
<span>
|
|
2308
|
+
Your card goes straight to our payment processor.{" "}
|
|
2309
|
+
{props.merchantName ? `${props.merchantName} never sees or stores the number.` : "We never see or store the number."}
|
|
2310
|
+
</span>
|
|
2311
|
+
</p>
|
|
2312
|
+
</div>;
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2242
2315
|
// src/components/AddressFields.tsx
|
|
2243
2316
|
import { Show as Show4 } from "solid-js";
|
|
2244
2317
|
function formatAddress(a) {
|
|
@@ -2761,6 +2834,10 @@ function PurchaseForm(props) {
|
|
|
2761
2834
|
"margin-top": "1rem",
|
|
2762
2835
|
"margin-bottom": "1.5rem"
|
|
2763
2836
|
}}
|
|
2837
|
+
>
|
|
2838
|
+
<Show5
|
|
2839
|
+
when={!flow.hostedCardFields()}
|
|
2840
|
+
fallback={<SecureCardPanel register={flow.registerCardField} />}
|
|
2764
2841
|
>
|
|
2765
2842
|
<TextField
|
|
2766
2843
|
label="Card Number"
|
|
@@ -2788,6 +2865,7 @@ function PurchaseForm(props) {
|
|
|
2788
2865
|
inputmode="numeric"
|
|
2789
2866
|
/>
|
|
2790
2867
|
</div>
|
|
2868
|
+
</Show5>
|
|
2791
2869
|
</div>
|
|
2792
2870
|
</Show5>
|
|
2793
2871
|
|
|
@@ -3057,6 +3135,10 @@ function PurchaseForm2(props) {
|
|
|
3057
3135
|
|
|
3058
3136
|
<div
|
|
3059
3137
|
style={{ "margin-top": "0.75rem", display: "flex", "flex-direction": "column", gap: "1rem" }}
|
|
3138
|
+
>
|
|
3139
|
+
<Show6
|
|
3140
|
+
when={!flow.hostedCardFields()}
|
|
3141
|
+
fallback={<SecureCardPanel register={flow.registerCardField} />}
|
|
3060
3142
|
>
|
|
3061
3143
|
<TextField
|
|
3062
3144
|
label="Card Number"
|
|
@@ -3084,6 +3166,7 @@ function PurchaseForm2(props) {
|
|
|
3084
3166
|
inputmode="numeric"
|
|
3085
3167
|
/>
|
|
3086
3168
|
</div>
|
|
3169
|
+
</Show6>
|
|
3087
3170
|
</div>
|
|
3088
3171
|
</div>
|
|
3089
3172
|
|
|
@@ -3427,6 +3510,10 @@ function PaymentStep(props) {
|
|
|
3427
3510
|
</div>
|
|
3428
3511
|
</Card3>
|
|
3429
3512
|
|
|
3513
|
+
<Show8
|
|
3514
|
+
when={!flow.hostedCardFields()}
|
|
3515
|
+
fallback={<SecureCardPanel register={flow.registerCardField} />}
|
|
3516
|
+
>
|
|
3430
3517
|
<TextField
|
|
3431
3518
|
label="Card Number"
|
|
3432
3519
|
value={flow.cardNumber()}
|
|
@@ -3454,6 +3541,7 @@ function PaymentStep(props) {
|
|
|
3454
3541
|
inputmode="numeric"
|
|
3455
3542
|
/>
|
|
3456
3543
|
</div>
|
|
3544
|
+
</Show8>
|
|
3457
3545
|
|
|
3458
3546
|
<Show8 when={props.promoField}>
|
|
3459
3547
|
{props.promoField({
|
|
@@ -4028,6 +4116,10 @@ function SubscribeContent(props) {
|
|
|
4028
4116
|
/>
|
|
4029
4117
|
|
|
4030
4118
|
<SectionLabel>Card Details</SectionLabel>
|
|
4119
|
+
<Show10
|
|
4120
|
+
when={!flow.hostedCardFields()}
|
|
4121
|
+
fallback={<SecureCardPanel register={flow.registerCardField} />}
|
|
4122
|
+
>
|
|
4031
4123
|
<div style={{ display: "flex", "flex-direction": "column", gap: "0.75rem" }}>
|
|
4032
4124
|
<TextField
|
|
4033
4125
|
value={flow.cardNumber()}
|
|
@@ -4053,6 +4145,7 @@ function SubscribeContent(props) {
|
|
|
4053
4145
|
/>
|
|
4054
4146
|
</div>
|
|
4055
4147
|
</div>
|
|
4148
|
+
</Show10>
|
|
4056
4149
|
|
|
4057
4150
|
{
|
|
4058
4151
|
/* Payment-setup init failure: without this the Subscribe button
|
|
@@ -9962,7 +10055,7 @@ function Categories() {
|
|
|
9962
10055
|
}
|
|
9963
10056
|
|
|
9964
10057
|
// src/pages/admin/Customers.tsx
|
|
9965
|
-
import { createSignal as createSignal27, onCleanup as onCleanup2, onMount, Show as Show45 } from "solid-js";
|
|
10058
|
+
import { createSignal as createSignal27, onCleanup as onCleanup2, onMount as onMount2, Show as Show45 } from "solid-js";
|
|
9966
10059
|
|
|
9967
10060
|
// src/pages/admin/customers/CustomerDetail.tsx
|
|
9968
10061
|
import { createMemo as createMemo11, createResource as createResource14, createSignal as createSignal25, For as For30, Show as Show43 } from "solid-js";
|
|
@@ -12117,6 +12210,12 @@ function cardLabel(card) {
|
|
|
12117
12210
|
}
|
|
12118
12211
|
function UpdateCardModal(props) {
|
|
12119
12212
|
const tokenizer = useCardTokenizer();
|
|
12213
|
+
const hostedBox = (field2) => <div
|
|
12214
|
+
class="app-admin-input"
|
|
12215
|
+
style={{ height: "2.5rem", padding: "0 0.75rem", display: "flex", "align-items": "center" }}
|
|
12216
|
+
data-hosted-field={field2}
|
|
12217
|
+
ref={(el) => tokenizer.registerHostedField(field2, el)}
|
|
12218
|
+
/>;
|
|
12120
12219
|
const [onFile, { refetch: refetchCard }] = createResource11(() => props.customer.uid, (uid) => adminApi.getCustomerCard(uid));
|
|
12121
12220
|
const [number, setNumber] = createSignal21("");
|
|
12122
12221
|
const [expiry, setExpiry] = createSignal21("");
|
|
@@ -12272,7 +12371,7 @@ function UpdateCardModal(props) {
|
|
|
12272
12371
|
type="submit"
|
|
12273
12372
|
form="update-card-form"
|
|
12274
12373
|
class="app-admin-btn app-admin-btn-primary"
|
|
12275
|
-
disabled={working() || stopped() || !tokenizer.ready() || !number() || !expiry() || !cvv()}
|
|
12374
|
+
disabled={working() || stopped() || !tokenizer.ready() || !tokenizer.hostedFields() && (!number() || !expiry() || !cvv())}
|
|
12276
12375
|
>
|
|
12277
12376
|
{working() ? "Saving\u2026" : chargeNow() && props.due.length > 0 ? `Save card and charge ${centsToUsd(dueTotal())}` : "Save card"}
|
|
12278
12377
|
</button>
|
|
@@ -12313,7 +12412,8 @@ function UpdateCardModal(props) {
|
|
|
12313
12412
|
|
|
12314
12413
|
<fieldset disabled={stopped() || working()} style={{ border: 0, margin: 0, padding: 0 }} class="app-admin-section-stack">
|
|
12315
12414
|
<FormRow label="Card number">
|
|
12316
|
-
<
|
|
12415
|
+
<Show39 when={!tokenizer.hostedFields()} fallback={hostedBox("number")}>
|
|
12416
|
+
<input
|
|
12317
12417
|
class="app-admin-input"
|
|
12318
12418
|
inputmode="numeric"
|
|
12319
12419
|
autocomplete="off"
|
|
@@ -12321,13 +12421,18 @@ function UpdateCardModal(props) {
|
|
|
12321
12421
|
onInput={(e) => setNumber(e.currentTarget.value.replace(/[^\d ]/g, ""))}
|
|
12322
12422
|
placeholder={refused() ? "Re-enter the card number" : ""}
|
|
12323
12423
|
/>
|
|
12424
|
+
</Show39>
|
|
12324
12425
|
</FormRow>
|
|
12325
12426
|
<div class="app-admin-form-grid">
|
|
12326
12427
|
<FormRow label="Expires (MM/YY)">
|
|
12327
|
-
<
|
|
12428
|
+
<Show39 when={!tokenizer.hostedFields()} fallback={hostedBox("expiry")}>
|
|
12429
|
+
<input class="app-admin-input" inputmode="numeric" autocomplete="off" value={expiry()} onInput={(e) => setExpiry(e.currentTarget.value)} placeholder="MM/YY" />
|
|
12430
|
+
</Show39>
|
|
12328
12431
|
</FormRow>
|
|
12329
12432
|
<FormRow label="CVV">
|
|
12330
|
-
<
|
|
12433
|
+
<Show39 when={!tokenizer.hostedFields()} fallback={hostedBox("cvv")}>
|
|
12434
|
+
<input class="app-admin-input" inputmode="numeric" autocomplete="off" type="password" value={cvv()} onInput={(e) => setCvv(e.currentTarget.value.replace(/\D/g, ""))} maxlength="4" />
|
|
12435
|
+
</Show39>
|
|
12331
12436
|
</FormRow>
|
|
12332
12437
|
<FormRow label="Billing ZIP">
|
|
12333
12438
|
<input class="app-admin-input" inputmode="numeric" autocomplete="off" value={zip()} onInput={(e) => setZip(e.currentTarget.value)} />
|
|
@@ -13737,7 +13842,7 @@ function Customers(props = {}) {
|
|
|
13737
13842
|
setInternalUid(next);
|
|
13738
13843
|
pushCustomerUrl(next);
|
|
13739
13844
|
};
|
|
13740
|
-
|
|
13845
|
+
onMount2(() => {
|
|
13741
13846
|
if (controlled()) return;
|
|
13742
13847
|
if (props.initialUid) pushCustomerUrl(props.initialUid);
|
|
13743
13848
|
const off = onCustomerUrlChange((fromUrl) => setInternalUid(fromUrl));
|
|
@@ -14389,11 +14494,11 @@ function RecurringRevenue(props) {
|
|
|
14389
14494
|
import { createResource as createResource20, createSignal as createSignal31, For as For35, Show as Show50 } from "solid-js";
|
|
14390
14495
|
|
|
14391
14496
|
// src/pages/admin/QuickBooksCard.tsx
|
|
14392
|
-
import { createResource as createResource19, createSignal as createSignal30, Show as Show49, onMount as
|
|
14497
|
+
import { createResource as createResource19, createSignal as createSignal30, Show as Show49, onMount as onMount3 } from "solid-js";
|
|
14393
14498
|
function QuickBooksCard() {
|
|
14394
14499
|
const [status, { refetch }] = createResource19(() => adminApi.quickbooksStatus().catch(() => null));
|
|
14395
14500
|
const [connecting, setConnecting] = createSignal30(false);
|
|
14396
|
-
|
|
14501
|
+
onMount3(() => {
|
|
14397
14502
|
const params = new URLSearchParams(window.location.search);
|
|
14398
14503
|
const result = params.get("quickbooks");
|
|
14399
14504
|
if (result === "connected") {
|
|
@@ -14929,7 +15034,7 @@ function CategoriesPopover(props) {
|
|
|
14929
15034
|
}
|
|
14930
15035
|
|
|
14931
15036
|
// src/pages/admin/ProductCatalogSections.tsx
|
|
14932
|
-
import { createMemo as createMemo17, createSignal as createSignal34, For as For38, onMount as
|
|
15037
|
+
import { createMemo as createMemo17, createSignal as createSignal34, For as For38, onMount as onMount4, Show as Show53 } from "solid-js";
|
|
14933
15038
|
|
|
14934
15039
|
// src/pages/admin/ProductPharmacies.tsx
|
|
14935
15040
|
import { createEffect as createEffect10, createMemo as createMemo16, createSignal as createSignal33, For as For37, Index, Match as Match4, onCleanup as onCleanup4, Show as Show52, Switch as Switch4 } from "solid-js";
|
|
@@ -16085,7 +16190,7 @@ function NewCatalogProductDialog(props) {
|
|
|
16085
16190
|
const [error, setError] = createSignal34("");
|
|
16086
16191
|
const [pending, setPending] = createSignal34(null);
|
|
16087
16192
|
const [locked, setLocked] = createSignal34(false);
|
|
16088
|
-
|
|
16193
|
+
onMount4(async () => {
|
|
16089
16194
|
try {
|
|
16090
16195
|
setDrugs((await adminCatalogApi.listDrugs()).drugs ?? []);
|
|
16091
16196
|
} catch (err) {
|
|
@@ -18836,7 +18941,7 @@ function Products(props) {
|
|
|
18836
18941
|
}
|
|
18837
18942
|
|
|
18838
18943
|
// src/pages/admin/Offers.tsx
|
|
18839
|
-
import { createMemo as createMemo20, createResource as createResource22, createSignal as createSignal37, For as For41, onMount as
|
|
18944
|
+
import { createMemo as createMemo20, createResource as createResource22, createSignal as createSignal37, For as For41, onMount as onMount5, Show as Show56 } from "solid-js";
|
|
18840
18945
|
|
|
18841
18946
|
// src/pages/admin/funnelShared.ts
|
|
18842
18947
|
var SEGMENT_KEYS = {
|
|
@@ -19200,7 +19305,7 @@ function OfferGrants(props) {
|
|
|
19200
19305
|
if (reset) setGrants([]);
|
|
19201
19306
|
}
|
|
19202
19307
|
};
|
|
19203
|
-
|
|
19308
|
+
onMount5(() => void load(true));
|
|
19204
19309
|
const changed = () => {
|
|
19205
19310
|
void load(true);
|
|
19206
19311
|
props.onChanged();
|
|
@@ -19973,7 +20078,7 @@ function Sales() {
|
|
|
19973
20078
|
}
|
|
19974
20079
|
|
|
19975
20080
|
// src/pages/admin/Support.tsx
|
|
19976
|
-
import { createResource as createResource26, createSignal as createSignal40, For as For46, onCleanup as onCleanup6, onMount as
|
|
20081
|
+
import { createResource as createResource26, createSignal as createSignal40, For as For46, onCleanup as onCleanup6, onMount as onMount6, Show as Show61 } from "solid-js";
|
|
19977
20082
|
|
|
19978
20083
|
// src/pages/admin/support/format.ts
|
|
19979
20084
|
function customerLabel(thread) {
|
|
@@ -21057,7 +21162,7 @@ function Support(props = {}) {
|
|
|
21057
21162
|
const row = threads().find((t) => t.id === thread.id);
|
|
21058
21163
|
if (row?.adminUnread && !thread.adminUnread) refreshQueue();
|
|
21059
21164
|
}
|
|
21060
|
-
|
|
21165
|
+
onMount6(() => {
|
|
21061
21166
|
const timer = setInterval(refreshQueue, POLL_MS);
|
|
21062
21167
|
let sub = null;
|
|
21063
21168
|
let cancelled = false;
|
|
@@ -21272,7 +21377,7 @@ import { createEffect as createEffect15, createSignal as createSignal44, createR
|
|
|
21272
21377
|
import { createSignal as createSignal43, For as For49, Show as Show64 } from "solid-js";
|
|
21273
21378
|
|
|
21274
21379
|
// src/pages/admin/EmailBodyEditor.tsx
|
|
21275
|
-
import { createEffect as createEffect14, createSignal as createSignal42, For as For48, on as on9, onCleanup as onCleanup7, onMount as
|
|
21380
|
+
import { createEffect as createEffect14, createSignal as createSignal42, For as For48, on as on9, onCleanup as onCleanup7, onMount as onMount7, Show as Show63 } from "solid-js";
|
|
21276
21381
|
import { Editor } from "@tiptap/core";
|
|
21277
21382
|
|
|
21278
21383
|
// src/pages/admin/emailBodyExtensions.ts
|
|
@@ -21515,7 +21620,7 @@ function EmailBodyEditor(props) {
|
|
|
21515
21620
|
})
|
|
21516
21621
|
);
|
|
21517
21622
|
};
|
|
21518
|
-
|
|
21623
|
+
onMount7(() => {
|
|
21519
21624
|
load(props.value);
|
|
21520
21625
|
props.ref?.({
|
|
21521
21626
|
insertPlaceholder,
|
|
@@ -21639,7 +21744,7 @@ function EmailBodyEditor(props) {
|
|
|
21639
21744
|
const t = e.target;
|
|
21640
21745
|
if (!menuEl?.contains(t) && !menuButton.contains(t)) closeMenu();
|
|
21641
21746
|
};
|
|
21642
|
-
|
|
21747
|
+
onMount7(() => document.addEventListener("mousedown", onDocPointerDown));
|
|
21643
21748
|
onCleanup7(() => document.removeEventListener("mousedown", onDocPointerDown));
|
|
21644
21749
|
const moveFocus = (items, current2, delta) => {
|
|
21645
21750
|
if (items.length === 0) return;
|
|
@@ -24329,7 +24434,7 @@ function SmsCard(props) {
|
|
|
24329
24434
|
}
|
|
24330
24435
|
|
|
24331
24436
|
// src/pages/admin/sms/SmsLogCard.tsx
|
|
24332
|
-
import { createSignal as createSignal50, For as For56, onMount as
|
|
24437
|
+
import { createSignal as createSignal50, For as For56, onMount as onMount8, Show as Show72 } from "solid-js";
|
|
24333
24438
|
var PAGE_SIZE2 = 25;
|
|
24334
24439
|
var BASE_STATUSES = ["delivered", "sent", "failed", "blocked"];
|
|
24335
24440
|
var humanize4 = (key) => key.replace(/([A-Z])/g, " $1").replace(/[_-]/g, " ").replace(/^\w/, (c) => c.toUpperCase()).trim();
|
|
@@ -24383,7 +24488,7 @@ function SmsLogCard(props) {
|
|
|
24383
24488
|
if (mine === generation) setLoading(false);
|
|
24384
24489
|
}
|
|
24385
24490
|
};
|
|
24386
|
-
|
|
24491
|
+
onMount8(() => void load(false));
|
|
24387
24492
|
const statuses = () => [.../* @__PURE__ */ new Set([...BASE_STATUSES, ...seen()])];
|
|
24388
24493
|
const eventLabel = (key) => props.labels()[key] ?? humanize4(key);
|
|
24389
24494
|
return <SmsCard
|
|
@@ -25741,6 +25846,10 @@ function UpdatePaymentMethod(props) {
|
|
|
25741
25846
|
</Show78>
|
|
25742
25847
|
|
|
25743
25848
|
<div style={{ display: "grid", gap: "1rem", "margin-bottom": "1.5rem" }}>
|
|
25849
|
+
<Show78
|
|
25850
|
+
when={!flow.hostedCardFields()}
|
|
25851
|
+
fallback={<SecureCardPanel register={flow.registerCardField} />}
|
|
25852
|
+
>
|
|
25744
25853
|
<TextField
|
|
25745
25854
|
label="Card number"
|
|
25746
25855
|
value={flow.cardNumber()}
|
|
@@ -25767,6 +25876,7 @@ function UpdatePaymentMethod(props) {
|
|
|
25767
25876
|
inputmode="numeric"
|
|
25768
25877
|
/>
|
|
25769
25878
|
</div>
|
|
25879
|
+
</Show78>
|
|
25770
25880
|
</div>
|
|
25771
25881
|
|
|
25772
25882
|
{
|
|
@@ -25799,7 +25909,7 @@ function UpdatePaymentMethod(props) {
|
|
|
25799
25909
|
}
|
|
25800
25910
|
|
|
25801
25911
|
// src/pages/MemberPortal.tsx
|
|
25802
|
-
import { Show as Show87, Switch as Switch9, Match as Match9, For as For67, createSignal as createSignal62, onMount as
|
|
25912
|
+
import { Show as Show87, Switch as Switch9, Match as Match9, For as For67, createSignal as createSignal62, onMount as onMount9 } from "solid-js";
|
|
25803
25913
|
|
|
25804
25914
|
// src/pages/member/OrderTracker.tsx
|
|
25805
25915
|
import { Show as Show79, For as For61, createSignal as createSignal55 } from "solid-js";
|
|
@@ -27701,14 +27811,14 @@ function MemberPortal(props) {
|
|
|
27701
27811
|
};
|
|
27702
27812
|
const [tab, setTab] = createSignal62(resolveTabFromUrl() ?? "tracker");
|
|
27703
27813
|
const [intent, setIntent] = createSignal62(resolveIntentFromUrl());
|
|
27704
|
-
|
|
27814
|
+
onMount9(() => {
|
|
27705
27815
|
const resolved = resolveTabFromUrl();
|
|
27706
27816
|
if (resolved && resolved !== tab()) setTab(resolved);
|
|
27707
27817
|
const resolvedIntent = resolveIntentFromUrl();
|
|
27708
27818
|
if (resolvedIntent) setIntent(resolvedIntent);
|
|
27709
27819
|
});
|
|
27710
27820
|
const [offers, setOffers] = createSignal62([]);
|
|
27711
|
-
|
|
27821
|
+
onMount9(() => {
|
|
27712
27822
|
if (!props.auth.isAuthenticated()) return;
|
|
27713
27823
|
offersApi.mine().then((r) => setOffers(r.offers ?? [])).catch(() => setOffers([]));
|
|
27714
27824
|
});
|
|
@@ -29974,6 +30084,7 @@ function primaryButtonStyle2(submitting) {
|
|
|
29974
30084
|
export {
|
|
29975
30085
|
SurveyPage,
|
|
29976
30086
|
SurveyV2Page,
|
|
30087
|
+
SecureCardPanel,
|
|
29977
30088
|
AddressFields,
|
|
29978
30089
|
CheckoutPage,
|
|
29979
30090
|
CartCheckoutPage,
|
|
@@ -30001,4 +30112,4 @@ export {
|
|
|
30001
30112
|
AffiliateForgotPassword,
|
|
30002
30113
|
AffiliateResetPassword
|
|
30003
30114
|
};
|
|
30004
|
-
//# sourceMappingURL=
|
|
30115
|
+
//# sourceMappingURL=XJF3Z2IM.jsx.map
|