@burdenoff/microfe-billing 2026.1116.1 → 2026.1119.2
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/billing/modules/addons/pages/AddonCreatePage.js +143 -143
- package/dist/billing/modules/addons/pages/AddonCreatePage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonEditPage.js +170 -170
- package/dist/billing/modules/addons/pages/AddonEditPage.js.map +1 -1
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js +148 -148
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js +115 -115
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.js +136 -136
- package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js +129 -129
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/RefundsPage.js +325 -325
- package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.js +149 -149
- package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js +99 -98
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/checkout/components/StoreShippingSection.js +125 -124
- package/dist/billing/modules/checkout/components/StoreShippingSection.js.map +1 -1
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js +61 -60
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CouponsListPage.js +177 -177
- package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js +231 -231
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/EditCouponPage.js +139 -139
- package/dist/billing/modules/coupons/pages/EditCouponPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js +54 -54
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +65 -65
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditsPage.js +95 -95
- package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js +232 -231
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js +328 -328
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +57 -57
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/EarningsPage.js +53 -53
- package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutsPage.js +100 -100
- package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanCreatePage.js +150 -150
- package/dist/billing/modules/plans/pages/PlanCreatePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanEditPage.js +125 -125
- package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +113 -113
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +132 -132
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/SettingsPage.js +101 -101
- package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +125 -125
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
- package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.js +51 -50
- package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.js.map +1 -1
- package/dist/billing/modules/usage/pages/UsagePage.js +107 -107
- package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
- package/dist/billing/shared/components/GeoPricingOverridesEditor.js +1 -0
- package/package.json +2 -2
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { useCallback as e, useEffect as t, useMemo as n, useRef as r, useState as i } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { ThemedSelect as a } from "@burdenoff/fe-libs/ui";
|
|
3
|
+
import { AlertCircle as o, Building2 as s, Check as c, ChevronDown as l, FileText as u, Loader2 as d, Mail as f, MapPin as p, Search as m, X as h } from "lucide-react";
|
|
4
|
+
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
5
|
+
import { useI18n as y } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
5
6
|
// src/billing/modules/dashboard/components/CreateBillingAccountModal.tsx
|
|
6
|
-
var
|
|
7
|
+
var b = [
|
|
7
8
|
{
|
|
8
9
|
code: "IN",
|
|
9
10
|
name: "India"
|
|
@@ -132,7 +133,7 @@ var y = [
|
|
|
132
133
|
code: "LK",
|
|
133
134
|
name: "Sri Lanka"
|
|
134
135
|
}
|
|
135
|
-
],
|
|
136
|
+
], x = /* @__PURE__ */ "Andaman and Nicobar Islands.Andhra Pradesh.Arunachal Pradesh.Assam.Bihar.Chandigarh.Chhattisgarh.Dadra and Nagar Haveli and Daman and Diu.Delhi.Goa.Gujarat.Haryana.Himachal Pradesh.Jammu and Kashmir.Jharkhand.Karnataka.Kerala.Ladakh.Lakshadweep.Madhya Pradesh.Maharashtra.Manipur.Meghalaya.Mizoram.Nagaland.Odisha.Puducherry.Punjab.Rajasthan.Sikkim.Tamil Nadu.Telangana.Tripura.Uttar Pradesh.Uttarakhand.West Bengal".split("."), S = [
|
|
136
137
|
{
|
|
137
138
|
code: "USD",
|
|
138
139
|
name: "US Dollar",
|
|
@@ -440,16 +441,16 @@ var y = [
|
|
|
440
441
|
flag: "OM"
|
|
441
442
|
}
|
|
442
443
|
];
|
|
443
|
-
function
|
|
444
|
+
function C(e) {
|
|
444
445
|
if (e === "EU") return "🇪🇺";
|
|
445
446
|
let t = e.toUpperCase().split("").map((e) => 127397 + e.charCodeAt(0));
|
|
446
447
|
return String.fromCodePoint(...t);
|
|
447
448
|
}
|
|
448
|
-
var
|
|
449
|
-
let { t:
|
|
450
|
-
let n =
|
|
449
|
+
var w = ({ isOpen: w, onClose: T, onSubmit: E, isSubmitting: D = !1, error: O = null }) => {
|
|
450
|
+
let { t: k } = y(), A = (e, t) => {
|
|
451
|
+
let n = k(e);
|
|
451
452
|
return n === e ? t : n;
|
|
452
|
-
}, [
|
|
453
|
+
}, [j, M] = i({
|
|
453
454
|
name: "",
|
|
454
455
|
email: "",
|
|
455
456
|
billingEmail: "",
|
|
@@ -461,14 +462,14 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
461
462
|
city: "",
|
|
462
463
|
state: "",
|
|
463
464
|
postalCode: ""
|
|
464
|
-
}), [
|
|
465
|
-
if (!
|
|
466
|
-
let e =
|
|
467
|
-
return
|
|
468
|
-
}, [
|
|
465
|
+
}), [N, P] = i({}), [F, I] = i(!1), [L, R] = i(""), z = r(null), B = r(null), V = r(null), H = r(null), U = n(() => {
|
|
466
|
+
if (!L.trim()) return S;
|
|
467
|
+
let e = L.toLowerCase();
|
|
468
|
+
return S.filter((t) => t.code.toLowerCase().includes(e) || t.name.toLowerCase().includes(e) || t.symbol.includes(e));
|
|
469
|
+
}, [L]), W = n(() => S.find((e) => e.code === j.currency) || S[0], [j.currency]);
|
|
469
470
|
t(() => {
|
|
470
|
-
if (
|
|
471
|
-
|
|
471
|
+
if (w) {
|
|
472
|
+
M({
|
|
472
473
|
name: "",
|
|
473
474
|
email: "",
|
|
474
475
|
billingEmail: "",
|
|
@@ -480,415 +481,415 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
480
481
|
city: "",
|
|
481
482
|
state: "",
|
|
482
483
|
postalCode: ""
|
|
483
|
-
}),
|
|
484
|
-
let e = setTimeout(() =>
|
|
484
|
+
}), P({}), I(!1), R("");
|
|
485
|
+
let e = setTimeout(() => B.current?.focus(), 100);
|
|
485
486
|
return () => clearTimeout(e);
|
|
486
487
|
}
|
|
487
|
-
}, [
|
|
488
|
+
}, [w]), t(() => {
|
|
488
489
|
let e = (e) => {
|
|
489
|
-
|
|
490
|
+
V.current && !V.current.contains(e.target) && (I(!1), R(""));
|
|
490
491
|
};
|
|
491
492
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
492
493
|
}, []), t(() => {
|
|
493
|
-
|
|
494
|
-
}, [
|
|
494
|
+
F && H.current && H.current.focus();
|
|
495
|
+
}, [F]), t(() => {
|
|
495
496
|
let e = (e) => {
|
|
496
|
-
e.key === "Escape" &&
|
|
497
|
+
e.key === "Escape" && w && !D && T();
|
|
497
498
|
};
|
|
498
499
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
499
500
|
}, [
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
501
|
+
w,
|
|
502
|
+
D,
|
|
503
|
+
T
|
|
503
504
|
]), t(() => {
|
|
504
|
-
if (!
|
|
505
|
-
let e =
|
|
505
|
+
if (!w) return;
|
|
506
|
+
let e = z.current;
|
|
506
507
|
if (!e) return;
|
|
507
508
|
let t = e.querySelectorAll("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])"), n = t[0], r = t[t.length - 1], i = (e) => {
|
|
508
509
|
e.key === "Tab" && (e.shiftKey ? document.activeElement === n && (e.preventDefault(), r.focus()) : document.activeElement === r && (e.preventDefault(), n.focus()));
|
|
509
510
|
};
|
|
510
511
|
return e.addEventListener("keydown", i), () => e.removeEventListener("keydown", i);
|
|
511
|
-
}, [
|
|
512
|
-
let
|
|
512
|
+
}, [w]);
|
|
513
|
+
let G = e(() => {
|
|
513
514
|
let e = {};
|
|
514
|
-
return
|
|
515
|
-
}, [
|
|
516
|
-
if (e.preventDefault(), !
|
|
515
|
+
return j.name.trim() || (e.name = "Account name is required"), j.email.trim() ? /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(j.email) || (e.email = "Please enter a valid email address") : e.email = "Email is required", j.billingEmail && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(j.billingEmail) && (e.billingEmail = "Please enter a valid email address"), j.country || (e.country = "Country is required"), j.line1.trim() || (e.line1 = "Address line 1 is required"), j.city.trim() || (e.city = "City is required"), j.country === "IN" && !j.state && (e.state = "State is required for India"), j.postalCode.trim() || (e.postalCode = "Postal code is required"), P(e), Object.keys(e).length === 0;
|
|
516
|
+
}, [j]), K = async (e) => {
|
|
517
|
+
if (e.preventDefault(), !G()) return;
|
|
517
518
|
let t = {
|
|
518
|
-
name:
|
|
519
|
-
email:
|
|
520
|
-
currency:
|
|
519
|
+
name: j.name.trim(),
|
|
520
|
+
email: j.email.trim(),
|
|
521
|
+
currency: j.currency
|
|
521
522
|
};
|
|
522
|
-
|
|
523
|
+
j.billingEmail?.trim() && (t.billingEmail = j.billingEmail.trim()), j.taxId?.trim() && (t.taxId = j.taxId.trim());
|
|
523
524
|
let n = {
|
|
524
|
-
country:
|
|
525
|
-
line1:
|
|
526
|
-
city:
|
|
527
|
-
postalCode:
|
|
525
|
+
country: j.country,
|
|
526
|
+
line1: j.line1.trim(),
|
|
527
|
+
city: j.city.trim(),
|
|
528
|
+
postalCode: j.postalCode.trim()
|
|
528
529
|
};
|
|
529
|
-
|
|
530
|
-
},
|
|
531
|
-
|
|
530
|
+
j.line2?.trim() && (n.line2 = j.line2.trim()), j.state && (n.state = j.state), await E(t, n);
|
|
531
|
+
}, q = (e, t) => {
|
|
532
|
+
M((n) => {
|
|
532
533
|
let r = {
|
|
533
534
|
...n,
|
|
534
535
|
[e]: t
|
|
535
536
|
};
|
|
536
537
|
return e === "country" && t === "IN" && n.currency !== "INR" && (r.currency = "INR"), e === "country" && t !== n.country && (r.state = ""), r;
|
|
537
|
-
}),
|
|
538
|
+
}), N[e] && P((t) => {
|
|
538
539
|
let n = { ...t };
|
|
539
540
|
return delete n[e], n;
|
|
540
541
|
});
|
|
541
542
|
};
|
|
542
|
-
return
|
|
543
|
+
return w ? /* @__PURE__ */ v("div", {
|
|
543
544
|
className: "fixed inset-0 z-50 flex items-center justify-center",
|
|
544
545
|
role: "dialog",
|
|
545
546
|
"aria-modal": "true",
|
|
546
547
|
"aria-labelledby": "modal-title",
|
|
547
|
-
children: [/* @__PURE__ */
|
|
548
|
+
children: [/* @__PURE__ */ _("div", {
|
|
548
549
|
className: "absolute inset-0 bg-bg-overlay backdrop-blur-sm",
|
|
549
|
-
onClick:
|
|
550
|
+
onClick: D ? void 0 : T,
|
|
550
551
|
"aria-hidden": "true"
|
|
551
|
-
}), /* @__PURE__ */
|
|
552
|
-
ref:
|
|
552
|
+
}), /* @__PURE__ */ v("div", {
|
|
553
|
+
ref: z,
|
|
553
554
|
className: "relative w-full max-w-2xl mx-4 bg-bg-surface border border-border-seam rounded-card shadow-[var(--shadow-elevation-4)] max-h-[90vh] flex flex-col overflow-hidden",
|
|
554
555
|
children: [
|
|
555
|
-
/* @__PURE__ */
|
|
556
|
+
/* @__PURE__ */ v("header", {
|
|
556
557
|
className: "flex items-center justify-between p-4 border-b border-border-subtle shrink-0",
|
|
557
|
-
children: [/* @__PURE__ */
|
|
558
|
+
children: [/* @__PURE__ */ v("div", {
|
|
558
559
|
className: "flex items-center gap-3",
|
|
559
|
-
children: [/* @__PURE__ */
|
|
560
|
+
children: [/* @__PURE__ */ _("div", {
|
|
560
561
|
className: "size-10 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
561
|
-
children: /* @__PURE__ */
|
|
562
|
-
}), /* @__PURE__ */
|
|
562
|
+
children: /* @__PURE__ */ _(s, { className: "size-5 text-text-link" })
|
|
563
|
+
}), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("h2", {
|
|
563
564
|
id: "modal-title",
|
|
564
565
|
className: "text-lg font-semibold text-text-primary",
|
|
565
566
|
children: "Create Billing Account"
|
|
566
|
-
}), /* @__PURE__ */
|
|
567
|
+
}), /* @__PURE__ */ _("p", {
|
|
567
568
|
className: "text-sm text-text-secondary",
|
|
568
569
|
children: "Set up a new billing account for your organization"
|
|
569
570
|
})] })]
|
|
570
|
-
}), /* @__PURE__ */
|
|
571
|
+
}), /* @__PURE__ */ _("button", {
|
|
571
572
|
type: "button",
|
|
572
|
-
onClick:
|
|
573
|
-
disabled:
|
|
573
|
+
onClick: T,
|
|
574
|
+
disabled: D,
|
|
574
575
|
className: "p-2 rounded-button hover:bg-bg-sunken text-text-secondary hover:text-text-primary transition-colors disabled:opacity-50",
|
|
575
576
|
"aria-label": "Close modal",
|
|
576
|
-
children: /* @__PURE__ */
|
|
577
|
+
children: /* @__PURE__ */ _(h, { className: "size-5" })
|
|
577
578
|
})]
|
|
578
579
|
}),
|
|
579
|
-
/* @__PURE__ */
|
|
580
|
-
onSubmit:
|
|
580
|
+
/* @__PURE__ */ v("form", {
|
|
581
|
+
onSubmit: K,
|
|
581
582
|
className: "p-4 space-y-4 overflow-y-auto flex-1",
|
|
582
583
|
children: [
|
|
583
|
-
|
|
584
|
+
O && /* @__PURE__ */ v("div", {
|
|
584
585
|
className: "flex items-center gap-2 p-3 rounded-lg bg-status-error-bg-subtle border border-status-error-border text-status-error-text",
|
|
585
|
-
children: [/* @__PURE__ */
|
|
586
|
+
children: [/* @__PURE__ */ _(o, { className: "size-4 flex-shrink-0" }), /* @__PURE__ */ _("p", {
|
|
586
587
|
className: "text-sm",
|
|
587
|
-
children:
|
|
588
|
+
children: O
|
|
588
589
|
})]
|
|
589
590
|
}),
|
|
590
|
-
/* @__PURE__ */
|
|
591
|
+
/* @__PURE__ */ v("div", {
|
|
591
592
|
className: "space-y-1.5",
|
|
592
593
|
children: [
|
|
593
|
-
/* @__PURE__ */
|
|
594
|
+
/* @__PURE__ */ v("label", {
|
|
594
595
|
htmlFor: "name",
|
|
595
596
|
className: "block text-sm font-medium text-text-primary",
|
|
596
|
-
children: ["Account Name ", /* @__PURE__ */
|
|
597
|
+
children: ["Account Name ", /* @__PURE__ */ _("span", {
|
|
597
598
|
className: "text-status-error-text",
|
|
598
599
|
children: "*"
|
|
599
600
|
})]
|
|
600
601
|
}),
|
|
601
|
-
/* @__PURE__ */
|
|
602
|
+
/* @__PURE__ */ v("div", {
|
|
602
603
|
className: "relative",
|
|
603
|
-
children: [/* @__PURE__ */
|
|
604
|
-
ref:
|
|
604
|
+
children: [/* @__PURE__ */ _(s, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-secondary" }), /* @__PURE__ */ _("input", {
|
|
605
|
+
ref: B,
|
|
605
606
|
type: "text",
|
|
606
607
|
id: "name",
|
|
607
|
-
value:
|
|
608
|
-
onChange: (e) =>
|
|
608
|
+
value: j.name,
|
|
609
|
+
onChange: (e) => q("name", e.target.value),
|
|
609
610
|
className: `
|
|
610
611
|
w-full pl-[3.25rem] pr-3 py-2 border rounded-lg bg-bg-surface text-text-primary
|
|
611
612
|
placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
612
|
-
${
|
|
613
|
+
${N.name ? "border-status-error-border" : "border-border-default"}
|
|
613
614
|
`,
|
|
614
615
|
placeholder: "e.g., Acme Corporation",
|
|
615
|
-
disabled:
|
|
616
|
+
disabled: D
|
|
616
617
|
})]
|
|
617
618
|
}),
|
|
618
|
-
|
|
619
|
+
N.name && /* @__PURE__ */ _("p", {
|
|
619
620
|
className: "text-sm text-status-error-text",
|
|
620
|
-
children:
|
|
621
|
+
children: N.name
|
|
621
622
|
})
|
|
622
623
|
]
|
|
623
624
|
}),
|
|
624
|
-
/* @__PURE__ */
|
|
625
|
+
/* @__PURE__ */ v("div", {
|
|
625
626
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
626
|
-
children: [/* @__PURE__ */
|
|
627
|
+
children: [/* @__PURE__ */ v("div", {
|
|
627
628
|
className: "space-y-1.5",
|
|
628
629
|
children: [
|
|
629
|
-
/* @__PURE__ */
|
|
630
|
+
/* @__PURE__ */ v("label", {
|
|
630
631
|
htmlFor: "email",
|
|
631
632
|
className: "block text-sm font-medium text-text-primary",
|
|
632
|
-
children: ["Email ", /* @__PURE__ */
|
|
633
|
+
children: ["Email ", /* @__PURE__ */ _("span", {
|
|
633
634
|
className: "text-status-error-text",
|
|
634
635
|
children: "*"
|
|
635
636
|
})]
|
|
636
637
|
}),
|
|
637
|
-
/* @__PURE__ */
|
|
638
|
+
/* @__PURE__ */ v("div", {
|
|
638
639
|
className: "relative",
|
|
639
|
-
children: [/* @__PURE__ */
|
|
640
|
+
children: [/* @__PURE__ */ _(f, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-secondary" }), /* @__PURE__ */ _("input", {
|
|
640
641
|
type: "email",
|
|
641
642
|
id: "email",
|
|
642
|
-
value:
|
|
643
|
-
onChange: (e) =>
|
|
643
|
+
value: j.email,
|
|
644
|
+
onChange: (e) => q("email", e.target.value),
|
|
644
645
|
className: `
|
|
645
646
|
w-full pl-[3.25rem] pr-3 py-2 border rounded-lg bg-bg-surface text-text-primary
|
|
646
647
|
placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
647
|
-
${
|
|
648
|
+
${N.email ? "border-status-error-border" : "border-border-default"}
|
|
648
649
|
`,
|
|
649
650
|
placeholder: "contact@company.com",
|
|
650
|
-
disabled:
|
|
651
|
+
disabled: D
|
|
651
652
|
})]
|
|
652
653
|
}),
|
|
653
|
-
|
|
654
|
+
N.email && /* @__PURE__ */ _("p", {
|
|
654
655
|
className: "text-sm text-status-error-text",
|
|
655
|
-
children:
|
|
656
|
+
children: N.email
|
|
656
657
|
})
|
|
657
658
|
]
|
|
658
|
-
}), /* @__PURE__ */
|
|
659
|
+
}), /* @__PURE__ */ v("div", {
|
|
659
660
|
className: "space-y-1.5",
|
|
660
661
|
children: [
|
|
661
|
-
/* @__PURE__ */
|
|
662
|
+
/* @__PURE__ */ v("label", {
|
|
662
663
|
htmlFor: "billingEmail",
|
|
663
664
|
className: "block text-sm font-medium text-text-primary",
|
|
664
|
-
children: ["Billing Email ", /* @__PURE__ */
|
|
665
|
+
children: ["Billing Email ", /* @__PURE__ */ _("span", {
|
|
665
666
|
className: "text-text-secondary text-xs",
|
|
666
667
|
children: "(optional)"
|
|
667
668
|
})]
|
|
668
669
|
}),
|
|
669
|
-
/* @__PURE__ */
|
|
670
|
+
/* @__PURE__ */ v("div", {
|
|
670
671
|
className: "relative",
|
|
671
|
-
children: [/* @__PURE__ */
|
|
672
|
+
children: [/* @__PURE__ */ _(f, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-secondary" }), /* @__PURE__ */ _("input", {
|
|
672
673
|
type: "email",
|
|
673
674
|
id: "billingEmail",
|
|
674
|
-
value:
|
|
675
|
-
onChange: (e) =>
|
|
675
|
+
value: j.billingEmail || "",
|
|
676
|
+
onChange: (e) => q("billingEmail", e.target.value),
|
|
676
677
|
className: `
|
|
677
678
|
w-full pl-[3.25rem] pr-3 py-2 border rounded-lg bg-bg-surface text-text-primary
|
|
678
679
|
placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
679
|
-
${
|
|
680
|
+
${N.billingEmail ? "border-status-error-border" : "border-border-default"}
|
|
680
681
|
`,
|
|
681
682
|
placeholder: "billing@company.com",
|
|
682
|
-
disabled:
|
|
683
|
+
disabled: D
|
|
683
684
|
})]
|
|
684
685
|
}),
|
|
685
|
-
|
|
686
|
+
N.billingEmail && /* @__PURE__ */ _("p", {
|
|
686
687
|
className: "text-sm text-status-error-text",
|
|
687
|
-
children:
|
|
688
|
+
children: N.billingEmail
|
|
688
689
|
})
|
|
689
690
|
]
|
|
690
691
|
})]
|
|
691
692
|
}),
|
|
692
|
-
/* @__PURE__ */
|
|
693
|
+
/* @__PURE__ */ v("div", {
|
|
693
694
|
className: "pt-3 border-t border-border-subtle",
|
|
694
695
|
children: [
|
|
695
|
-
/* @__PURE__ */
|
|
696
|
+
/* @__PURE__ */ v("h3", {
|
|
696
697
|
className: "text-sm font-medium text-text-primary mb-3 flex items-center gap-2",
|
|
697
|
-
children: [/* @__PURE__ */
|
|
698
|
+
children: [/* @__PURE__ */ _(p, { className: "size-4 text-text-secondary" }), "Billing Address"]
|
|
698
699
|
}),
|
|
699
|
-
/* @__PURE__ */
|
|
700
|
+
/* @__PURE__ */ v("div", {
|
|
700
701
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-3 mb-3",
|
|
701
|
-
children: [/* @__PURE__ */
|
|
702
|
+
children: [/* @__PURE__ */ v("div", {
|
|
702
703
|
className: "space-y-1.5",
|
|
703
704
|
children: [
|
|
704
|
-
/* @__PURE__ */
|
|
705
|
+
/* @__PURE__ */ v("label", {
|
|
705
706
|
htmlFor: "country",
|
|
706
707
|
className: "block text-sm font-medium text-text-primary",
|
|
707
|
-
children: ["Country ", /* @__PURE__ */
|
|
708
|
+
children: ["Country ", /* @__PURE__ */ _("span", {
|
|
708
709
|
className: "text-status-error-text",
|
|
709
710
|
children: "*"
|
|
710
711
|
})]
|
|
711
712
|
}),
|
|
712
|
-
/* @__PURE__ */
|
|
713
|
+
/* @__PURE__ */ v(a, {
|
|
713
714
|
id: "country",
|
|
714
|
-
value:
|
|
715
|
-
onChange: (e) =>
|
|
715
|
+
value: j.country,
|
|
716
|
+
onChange: (e) => q("country", e.target.value),
|
|
716
717
|
className: `
|
|
717
718
|
w-full px-3 py-2 border rounded-lg bg-bg-surface scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary text-text-primary
|
|
718
719
|
focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
719
|
-
${
|
|
720
|
+
${N.country ? "border-status-error-border" : "border-border-default"}
|
|
720
721
|
`,
|
|
721
|
-
disabled:
|
|
722
|
-
children: [/* @__PURE__ */
|
|
722
|
+
disabled: D,
|
|
723
|
+
children: [/* @__PURE__ */ _("option", {
|
|
723
724
|
value: "",
|
|
724
|
-
children:
|
|
725
|
-
}),
|
|
725
|
+
children: A("billing.overview.selectCountry", "Select a country")
|
|
726
|
+
}), b.map((e) => /* @__PURE__ */ _("option", {
|
|
726
727
|
value: e.code,
|
|
727
728
|
children: e.name
|
|
728
729
|
}, e.code))]
|
|
729
730
|
}),
|
|
730
|
-
|
|
731
|
+
N.country && /* @__PURE__ */ _("p", {
|
|
731
732
|
className: "text-sm text-status-error-text",
|
|
732
|
-
children:
|
|
733
|
+
children: N.country
|
|
733
734
|
})
|
|
734
735
|
]
|
|
735
|
-
}), /* @__PURE__ */
|
|
736
|
+
}), /* @__PURE__ */ v("div", {
|
|
736
737
|
className: "space-y-1.5",
|
|
737
738
|
children: [
|
|
738
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ v("label", {
|
|
739
740
|
htmlFor: "line1",
|
|
740
741
|
className: "block text-sm font-medium text-text-primary",
|
|
741
|
-
children: ["Address Line 1 ", /* @__PURE__ */
|
|
742
|
+
children: ["Address Line 1 ", /* @__PURE__ */ _("span", {
|
|
742
743
|
className: "text-status-error-text",
|
|
743
744
|
children: "*"
|
|
744
745
|
})]
|
|
745
746
|
}),
|
|
746
|
-
/* @__PURE__ */
|
|
747
|
+
/* @__PURE__ */ _("input", {
|
|
747
748
|
type: "text",
|
|
748
749
|
id: "line1",
|
|
749
|
-
value:
|
|
750
|
-
onChange: (e) =>
|
|
750
|
+
value: j.line1,
|
|
751
|
+
onChange: (e) => q("line1", e.target.value),
|
|
751
752
|
className: `
|
|
752
753
|
w-full px-3 py-2 border rounded-lg bg-bg-surface text-text-primary
|
|
753
754
|
placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
754
|
-
${
|
|
755
|
+
${N.line1 ? "border-status-error-border" : "border-border-default"}
|
|
755
756
|
`,
|
|
756
757
|
placeholder: "Street address, P.O. box",
|
|
757
|
-
disabled:
|
|
758
|
+
disabled: D
|
|
758
759
|
}),
|
|
759
|
-
|
|
760
|
+
N.line1 && /* @__PURE__ */ _("p", {
|
|
760
761
|
className: "text-sm text-status-error-text",
|
|
761
|
-
children:
|
|
762
|
+
children: N.line1
|
|
762
763
|
})
|
|
763
764
|
]
|
|
764
765
|
})]
|
|
765
766
|
}),
|
|
766
|
-
/* @__PURE__ */
|
|
767
|
+
/* @__PURE__ */ v("div", {
|
|
767
768
|
className: "space-y-1.5 mb-3",
|
|
768
|
-
children: [/* @__PURE__ */
|
|
769
|
+
children: [/* @__PURE__ */ v("label", {
|
|
769
770
|
htmlFor: "line2",
|
|
770
771
|
className: "block text-sm font-medium text-text-primary",
|
|
771
|
-
children: ["Address Line 2 ", /* @__PURE__ */
|
|
772
|
+
children: ["Address Line 2 ", /* @__PURE__ */ _("span", {
|
|
772
773
|
className: "text-text-secondary text-xs",
|
|
773
774
|
children: "(optional)"
|
|
774
775
|
})]
|
|
775
|
-
}), /* @__PURE__ */
|
|
776
|
+
}), /* @__PURE__ */ _("input", {
|
|
776
777
|
type: "text",
|
|
777
778
|
id: "line2",
|
|
778
|
-
value:
|
|
779
|
-
onChange: (e) =>
|
|
779
|
+
value: j.line2,
|
|
780
|
+
onChange: (e) => q("line2", e.target.value),
|
|
780
781
|
className: "w-full px-3 py-2 border border-border-default rounded-input bg-bg-surface text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong",
|
|
781
782
|
placeholder: "Apartment, suite, unit, building, floor",
|
|
782
|
-
disabled:
|
|
783
|
+
disabled: D
|
|
783
784
|
})]
|
|
784
785
|
}),
|
|
785
|
-
/* @__PURE__ */
|
|
786
|
+
/* @__PURE__ */ v("div", {
|
|
786
787
|
className: "grid grid-cols-2 sm:grid-cols-3 gap-3 mb-3",
|
|
787
788
|
children: [
|
|
788
|
-
/* @__PURE__ */
|
|
789
|
+
/* @__PURE__ */ v("div", {
|
|
789
790
|
className: "space-y-1.5",
|
|
790
791
|
children: [
|
|
791
|
-
/* @__PURE__ */
|
|
792
|
+
/* @__PURE__ */ v("label", {
|
|
792
793
|
htmlFor: "city",
|
|
793
794
|
className: "block text-sm font-medium text-text-primary",
|
|
794
|
-
children: ["City ", /* @__PURE__ */
|
|
795
|
+
children: ["City ", /* @__PURE__ */ _("span", {
|
|
795
796
|
className: "text-status-error-text",
|
|
796
797
|
children: "*"
|
|
797
798
|
})]
|
|
798
799
|
}),
|
|
799
|
-
/* @__PURE__ */
|
|
800
|
+
/* @__PURE__ */ _("input", {
|
|
800
801
|
type: "text",
|
|
801
802
|
id: "city",
|
|
802
|
-
value:
|
|
803
|
-
onChange: (e) =>
|
|
803
|
+
value: j.city,
|
|
804
|
+
onChange: (e) => q("city", e.target.value),
|
|
804
805
|
className: `
|
|
805
806
|
w-full px-3 py-2 border rounded-lg bg-bg-surface text-text-primary
|
|
806
807
|
placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
807
|
-
${
|
|
808
|
+
${N.city ? "border-status-error-border" : "border-border-default"}
|
|
808
809
|
`,
|
|
809
810
|
placeholder: "City",
|
|
810
|
-
disabled:
|
|
811
|
+
disabled: D
|
|
811
812
|
}),
|
|
812
|
-
|
|
813
|
+
N.city && /* @__PURE__ */ _("p", {
|
|
813
814
|
className: "text-sm text-status-error-text",
|
|
814
|
-
children:
|
|
815
|
+
children: N.city
|
|
815
816
|
})
|
|
816
817
|
]
|
|
817
818
|
}),
|
|
818
|
-
/* @__PURE__ */
|
|
819
|
+
/* @__PURE__ */ v("div", {
|
|
819
820
|
className: "space-y-1.5",
|
|
820
821
|
children: [
|
|
821
|
-
/* @__PURE__ */
|
|
822
|
+
/* @__PURE__ */ v("label", {
|
|
822
823
|
htmlFor: "state",
|
|
823
824
|
className: "block text-sm font-medium text-text-primary",
|
|
824
825
|
children: [
|
|
825
826
|
"State",
|
|
826
827
|
" ",
|
|
827
|
-
|
|
828
|
+
j.country === "IN" && /* @__PURE__ */ _("span", {
|
|
828
829
|
className: "text-status-error-text",
|
|
829
830
|
children: "*"
|
|
830
831
|
})
|
|
831
832
|
]
|
|
832
833
|
}),
|
|
833
|
-
|
|
834
|
+
j.country === "IN" ? /* @__PURE__ */ v(a, {
|
|
834
835
|
id: "state",
|
|
835
|
-
value:
|
|
836
|
-
onChange: (e) =>
|
|
836
|
+
value: j.state,
|
|
837
|
+
onChange: (e) => q("state", e.target.value),
|
|
837
838
|
className: `
|
|
838
839
|
w-full px-3 py-2 border rounded-lg bg-bg-surface scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary text-text-primary
|
|
839
840
|
focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
840
|
-
${
|
|
841
|
+
${N.state ? "border-status-error-border" : "border-border-default"}
|
|
841
842
|
`,
|
|
842
|
-
disabled:
|
|
843
|
-
children: [/* @__PURE__ */
|
|
843
|
+
disabled: D,
|
|
844
|
+
children: [/* @__PURE__ */ _("option", {
|
|
844
845
|
value: "",
|
|
845
846
|
children: "Select state"
|
|
846
|
-
}),
|
|
847
|
+
}), x.map((e) => /* @__PURE__ */ _("option", {
|
|
847
848
|
value: e,
|
|
848
849
|
children: e
|
|
849
850
|
}, e))]
|
|
850
|
-
}) : /* @__PURE__ */
|
|
851
|
+
}) : /* @__PURE__ */ _("input", {
|
|
851
852
|
type: "text",
|
|
852
853
|
id: "state",
|
|
853
|
-
value:
|
|
854
|
-
onChange: (e) =>
|
|
854
|
+
value: j.state,
|
|
855
|
+
onChange: (e) => q("state", e.target.value),
|
|
855
856
|
className: "w-full px-3 py-2 border border-border-default rounded-input bg-bg-surface text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong",
|
|
856
857
|
placeholder: "State/Province",
|
|
857
|
-
disabled:
|
|
858
|
+
disabled: D
|
|
858
859
|
}),
|
|
859
|
-
|
|
860
|
+
N.state && /* @__PURE__ */ _("p", {
|
|
860
861
|
className: "text-sm text-status-error-text",
|
|
861
|
-
children:
|
|
862
|
+
children: N.state
|
|
862
863
|
})
|
|
863
864
|
]
|
|
864
865
|
}),
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
+
/* @__PURE__ */ v("div", {
|
|
866
867
|
className: "space-y-1.5 col-span-2 sm:col-span-1",
|
|
867
868
|
children: [
|
|
868
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ v("label", {
|
|
869
870
|
htmlFor: "postalCode",
|
|
870
871
|
className: "block text-sm font-medium text-text-primary",
|
|
871
|
-
children: ["Postal Code ", /* @__PURE__ */
|
|
872
|
+
children: ["Postal Code ", /* @__PURE__ */ _("span", {
|
|
872
873
|
className: "text-status-error-text",
|
|
873
874
|
children: "*"
|
|
874
875
|
})]
|
|
875
876
|
}),
|
|
876
|
-
/* @__PURE__ */
|
|
877
|
+
/* @__PURE__ */ _("input", {
|
|
877
878
|
type: "text",
|
|
878
879
|
id: "postalCode",
|
|
879
|
-
value:
|
|
880
|
-
onChange: (e) =>
|
|
880
|
+
value: j.postalCode,
|
|
881
|
+
onChange: (e) => q("postalCode", e.target.value),
|
|
881
882
|
className: `
|
|
882
883
|
w-full px-3 py-2 border rounded-lg bg-bg-surface text-text-primary
|
|
883
884
|
placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong
|
|
884
|
-
${
|
|
885
|
+
${N.postalCode ? "border-status-error-border" : "border-border-default"}
|
|
885
886
|
`,
|
|
886
|
-
placeholder:
|
|
887
|
-
disabled:
|
|
887
|
+
placeholder: j.country === "IN" ? "600001" : "ZIP/Postal code",
|
|
888
|
+
disabled: D
|
|
888
889
|
}),
|
|
889
|
-
|
|
890
|
+
N.postalCode && /* @__PURE__ */ _("p", {
|
|
890
891
|
className: "text-sm text-status-error-text",
|
|
891
|
-
children:
|
|
892
|
+
children: N.postalCode
|
|
892
893
|
})
|
|
893
894
|
]
|
|
894
895
|
})
|
|
@@ -896,61 +897,61 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
896
897
|
})
|
|
897
898
|
]
|
|
898
899
|
}),
|
|
899
|
-
/* @__PURE__ */
|
|
900
|
+
/* @__PURE__ */ v("div", {
|
|
900
901
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4 pt-3 border-t border-border-subtle",
|
|
901
|
-
children: [/* @__PURE__ */
|
|
902
|
+
children: [/* @__PURE__ */ v("div", {
|
|
902
903
|
className: "space-y-1.5",
|
|
903
|
-
children: [/* @__PURE__ */
|
|
904
|
+
children: [/* @__PURE__ */ _("label", {
|
|
904
905
|
className: "block text-sm font-medium text-text-primary",
|
|
905
|
-
children:
|
|
906
|
-
}), /* @__PURE__ */
|
|
906
|
+
children: A("billing.overview.currency", "Currency")
|
|
907
|
+
}), /* @__PURE__ */ v("div", {
|
|
907
908
|
className: "relative",
|
|
908
|
-
ref:
|
|
909
|
-
children: [/* @__PURE__ */
|
|
909
|
+
ref: V,
|
|
910
|
+
children: [/* @__PURE__ */ v("button", {
|
|
910
911
|
type: "button",
|
|
911
|
-
onClick: () => !
|
|
912
|
-
disabled:
|
|
912
|
+
onClick: () => !D && I(!F),
|
|
913
|
+
disabled: D,
|
|
913
914
|
className: `
|
|
914
915
|
w-full flex items-center justify-between gap-2 px-3 py-2 rounded-lg border
|
|
915
916
|
transition-all duration-200 text-left
|
|
916
917
|
disabled:opacity-50 disabled:cursor-not-allowed
|
|
917
|
-
${
|
|
918
|
+
${F ? "border-border-strong ring-1 ring-[var(--color-focus-ring)]" : "border-border-default hover:border-border-strong"}
|
|
918
919
|
`,
|
|
919
|
-
children: [/* @__PURE__ */
|
|
920
|
+
children: [/* @__PURE__ */ v("div", {
|
|
920
921
|
className: "flex items-center gap-2",
|
|
921
922
|
children: [
|
|
922
|
-
/* @__PURE__ */
|
|
923
|
+
/* @__PURE__ */ _("span", {
|
|
923
924
|
className: "text-base",
|
|
924
|
-
children:
|
|
925
|
+
children: C(W.flag)
|
|
925
926
|
}),
|
|
926
|
-
/* @__PURE__ */
|
|
927
|
+
/* @__PURE__ */ _("span", {
|
|
927
928
|
className: "font-medium text-text-primary",
|
|
928
|
-
children:
|
|
929
|
+
children: W.code
|
|
929
930
|
}),
|
|
930
|
-
/* @__PURE__ */
|
|
931
|
+
/* @__PURE__ */ v("span", {
|
|
931
932
|
className: "text-sm text-text-secondary",
|
|
932
933
|
children: [
|
|
933
|
-
|
|
934
|
+
W.symbol,
|
|
934
935
|
" · ",
|
|
935
|
-
|
|
936
|
+
W.name
|
|
936
937
|
]
|
|
937
938
|
})
|
|
938
939
|
]
|
|
939
|
-
}), /* @__PURE__ */
|
|
940
|
-
}),
|
|
940
|
+
}), /* @__PURE__ */ _(l, { className: `size-4 text-text-secondary transition-transform ${F ? "rotate-180" : ""}` })]
|
|
941
|
+
}), F && /* @__PURE__ */ v("div", {
|
|
941
942
|
className: "absolute z-50 w-full bottom-full mb-1 bg-bg-elevated border border-border-seam rounded-card shadow-elevation-3 overflow-hidden",
|
|
942
943
|
onMouseDown: (e) => e.stopPropagation(),
|
|
943
|
-
children: [/* @__PURE__ */
|
|
944
|
+
children: [/* @__PURE__ */ _("div", {
|
|
944
945
|
className: "max-h-48 overflow-y-auto",
|
|
945
|
-
children:
|
|
946
|
+
children: U.length === 0 ? /* @__PURE__ */ _("div", {
|
|
946
947
|
className: "px-3 py-4 text-sm text-text-secondary text-center",
|
|
947
948
|
children: "No currencies found"
|
|
948
|
-
}) :
|
|
949
|
-
let t = e.code ===
|
|
950
|
-
return /* @__PURE__ */
|
|
949
|
+
}) : U.map((e) => {
|
|
950
|
+
let t = e.code === j.currency;
|
|
951
|
+
return /* @__PURE__ */ v("button", {
|
|
951
952
|
type: "button",
|
|
952
953
|
onClick: () => {
|
|
953
|
-
|
|
954
|
+
q("currency", e.code), I(!1), R("");
|
|
954
955
|
},
|
|
955
956
|
className: `
|
|
956
957
|
w-full flex items-center gap-3 px-3 py-2 text-left
|
|
@@ -958,40 +959,40 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
958
959
|
${t ? "bg-[var(--color-accent-soft)] text-text-primary" : "hover:bg-bg-sunken text-text-primary"}
|
|
959
960
|
`,
|
|
960
961
|
children: [
|
|
961
|
-
/* @__PURE__ */
|
|
962
|
+
/* @__PURE__ */ _("span", {
|
|
962
963
|
className: "text-base shrink-0",
|
|
963
|
-
children:
|
|
964
|
+
children: C(e.flag)
|
|
964
965
|
}),
|
|
965
|
-
/* @__PURE__ */
|
|
966
|
+
/* @__PURE__ */ v("div", {
|
|
966
967
|
className: "flex-1 min-w-0",
|
|
967
|
-
children: [/* @__PURE__ */
|
|
968
|
+
children: [/* @__PURE__ */ v("div", {
|
|
968
969
|
className: "flex items-center gap-2",
|
|
969
|
-
children: [/* @__PURE__ */
|
|
970
|
+
children: [/* @__PURE__ */ _("span", {
|
|
970
971
|
className: "font-medium",
|
|
971
972
|
children: e.code
|
|
972
|
-
}), /* @__PURE__ */
|
|
973
|
+
}), /* @__PURE__ */ _("span", {
|
|
973
974
|
className: "text-xs text-text-secondary",
|
|
974
975
|
children: e.symbol
|
|
975
976
|
})]
|
|
976
|
-
}), /* @__PURE__ */
|
|
977
|
+
}), /* @__PURE__ */ _("p", {
|
|
977
978
|
className: "text-xs text-text-secondary truncate",
|
|
978
979
|
children: e.name
|
|
979
980
|
})]
|
|
980
981
|
}),
|
|
981
|
-
t && /* @__PURE__ */
|
|
982
|
+
t && /* @__PURE__ */ _(c, { className: "size-4 text-text-link shrink-0" })
|
|
982
983
|
]
|
|
983
984
|
}, e.code);
|
|
984
985
|
})
|
|
985
|
-
}), /* @__PURE__ */
|
|
986
|
+
}), /* @__PURE__ */ _("div", {
|
|
986
987
|
className: "p-2 border-t border-border-subtle",
|
|
987
|
-
children: /* @__PURE__ */
|
|
988
|
+
children: /* @__PURE__ */ v("div", {
|
|
988
989
|
className: "relative",
|
|
989
|
-
children: [/* @__PURE__ */
|
|
990
|
-
ref:
|
|
990
|
+
children: [/* @__PURE__ */ _(m, { className: "absolute left-2.5 top-1/2 -translate-y-1/2 size-4 text-text-secondary" }), /* @__PURE__ */ _("input", {
|
|
991
|
+
ref: H,
|
|
991
992
|
type: "text",
|
|
992
993
|
placeholder: "Search currency...",
|
|
993
|
-
value:
|
|
994
|
-
onChange: (e) =>
|
|
994
|
+
value: L,
|
|
995
|
+
onChange: (e) => R(e.target.value),
|
|
995
996
|
onMouseDown: (e) => e.stopPropagation(),
|
|
996
997
|
className: "w-full pl-8 pr-3 py-2 text-sm bg-bg-surface border border-border-subtle rounded-button focus:outline-none focus:ring-1 focus:ring-[var(--color-focus-ring)]"
|
|
997
998
|
})]
|
|
@@ -999,51 +1000,51 @@ var C = ({ isOpen: C, onClose: w, onSubmit: T, isSubmitting: E = !1, error: D =
|
|
|
999
1000
|
})]
|
|
1000
1001
|
})]
|
|
1001
1002
|
})]
|
|
1002
|
-
}), /* @__PURE__ */
|
|
1003
|
+
}), /* @__PURE__ */ v("div", {
|
|
1003
1004
|
className: "space-y-1.5",
|
|
1004
|
-
children: [/* @__PURE__ */
|
|
1005
|
+
children: [/* @__PURE__ */ v("label", {
|
|
1005
1006
|
htmlFor: "taxId",
|
|
1006
1007
|
className: "block text-sm font-medium text-text-primary",
|
|
1007
|
-
children: ["Tax ID / VAT Number ", /* @__PURE__ */
|
|
1008
|
+
children: ["Tax ID / VAT Number ", /* @__PURE__ */ _("span", {
|
|
1008
1009
|
className: "text-text-secondary text-xs",
|
|
1009
1010
|
children: "(optional)"
|
|
1010
1011
|
})]
|
|
1011
|
-
}), /* @__PURE__ */
|
|
1012
|
+
}), /* @__PURE__ */ v("div", {
|
|
1012
1013
|
className: "relative",
|
|
1013
|
-
children: [/* @__PURE__ */
|
|
1014
|
+
children: [/* @__PURE__ */ _(u, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-secondary" }), /* @__PURE__ */ _("input", {
|
|
1014
1015
|
type: "text",
|
|
1015
1016
|
id: "taxId",
|
|
1016
|
-
value:
|
|
1017
|
-
onChange: (e) =>
|
|
1017
|
+
value: j.taxId || "",
|
|
1018
|
+
onChange: (e) => q("taxId", e.target.value),
|
|
1018
1019
|
className: "w-full pl-[3.25rem] pr-3 py-2 border border-border-default rounded-input bg-bg-surface text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] focus:border-border-strong",
|
|
1019
|
-
placeholder:
|
|
1020
|
-
disabled:
|
|
1020
|
+
placeholder: j.country === "IN" ? "e.g., 22AAAAA0000A1Z5" : "Tax ID / VAT Number",
|
|
1021
|
+
disabled: D
|
|
1021
1022
|
})]
|
|
1022
1023
|
})]
|
|
1023
1024
|
})]
|
|
1024
1025
|
})
|
|
1025
1026
|
]
|
|
1026
1027
|
}),
|
|
1027
|
-
/* @__PURE__ */
|
|
1028
|
+
/* @__PURE__ */ v("footer", {
|
|
1028
1029
|
className: "flex items-center justify-end gap-3 p-4 border-t border-border-subtle bg-bg-sunken rounded-b-card shrink-0",
|
|
1029
|
-
children: [/* @__PURE__ */
|
|
1030
|
+
children: [/* @__PURE__ */ _("button", {
|
|
1030
1031
|
type: "button",
|
|
1031
|
-
onClick:
|
|
1032
|
-
disabled:
|
|
1032
|
+
onClick: T,
|
|
1033
|
+
disabled: D,
|
|
1033
1034
|
className: "px-4 py-2 text-sm font-medium text-text-primary border border-border-subtle rounded-button hover:bg-bg-sunken hover:border-border-strong transition-all duration-200 disabled:opacity-50",
|
|
1034
1035
|
children: "Cancel"
|
|
1035
|
-
}), /* @__PURE__ */
|
|
1036
|
+
}), /* @__PURE__ */ _("button", {
|
|
1036
1037
|
type: "button",
|
|
1037
|
-
onClick:
|
|
1038
|
-
disabled:
|
|
1038
|
+
onClick: K,
|
|
1039
|
+
disabled: D,
|
|
1039
1040
|
className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium text-action-primary-text bg-action-primary-bg rounded-button hover:bg-action-primary-bgHover transition-colors duration-200 disabled:opacity-50",
|
|
1040
|
-
children:
|
|
1041
|
+
children: D ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(d, { className: "size-4 animate-spin" }), "Creating…"] }) : "Create Account"
|
|
1041
1042
|
})]
|
|
1042
1043
|
})
|
|
1043
1044
|
]
|
|
1044
1045
|
})]
|
|
1045
1046
|
}) : null;
|
|
1046
1047
|
};
|
|
1047
|
-
export {
|
|
1048
|
+
export { w as CreateBillingAccountModal };
|
|
1048
1049
|
|
|
1049
1050
|
//# sourceMappingURL=CreateBillingAccountModal.js.map
|