@burdenoff/microfe-devportal 2026.915.9 → 2026.915.11
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/devportal/pages/CreateOrganizationPage.d.ts.map +1 -1
- package/dist/devportal/pages/CreateOrganizationPage.js +0 -4
- package/dist/devportal/pages/CreateOrganizationPage.js.map +1 -1
- package/dist/devportal/pages/OrganizationDetailPage.d.ts.map +1 -1
- package/dist/devportal/pages/OrganizationDetailPage.js +548 -504
- package/dist/devportal/pages/OrganizationDetailPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,28 +3,28 @@ import { cn as t } from "../utils/cn.js";
|
|
|
3
3
|
import { EmptyState as n } from "../components/EmptyState.js";
|
|
4
4
|
import { orgSectionPath as r, useIsSellerSection as i } from "../hooks/useIsSellerSection.js";
|
|
5
5
|
import { useGetApplicationsQuery as a, useGetOrganizationQuery as o, useUpdateOrgLegalInfoMutation as s, useUpdateOrgTaxInfoMutation as c, useUpdateOrganizationMutation as l } from "../../generated/global-operations.js";
|
|
6
|
-
import { PageLayout as
|
|
7
|
-
import { ORG_ROLE_LABELS as
|
|
8
|
-
import { AppListItem as
|
|
9
|
-
import { StatCard as
|
|
10
|
-
import { DataTable as
|
|
11
|
-
import { InputField as
|
|
12
|
-
import { ConfirmDialog as
|
|
6
|
+
import { PageLayout as ee, PageSection as u } from "../components/PageLayout.js";
|
|
7
|
+
import { ORG_ROLE_LABELS as d } from "../utils/constants.js";
|
|
8
|
+
import { AppListItem as f } from "../components/AppCard.js";
|
|
9
|
+
import { StatCard as p, StatCardGrid as m } from "../components/StatCard.js";
|
|
10
|
+
import { DataTable as h, DetailList as g } from "../components/DataTable.js";
|
|
11
|
+
import { InputField as _, TextareaField as v } from "../components/FormField.js";
|
|
12
|
+
import { Alert as y, ConfirmDialog as b } from "../components/ConfirmDialog.js";
|
|
13
13
|
import { RegisterPickupLocationModal as te } from "../components/RegisterPickupLocationModal.js";
|
|
14
14
|
import { useDevportalPermission as ne } from "../hooks/usePermission.js";
|
|
15
|
-
import { capitalizeCarrierName as
|
|
16
|
-
import { DEVPORTAL_PERMISSIONS as
|
|
17
|
-
import { useOrganizationPickupAddresses as
|
|
18
|
-
import { useEffect as
|
|
19
|
-
import { AlertCircle as
|
|
20
|
-
import { useParams as
|
|
21
|
-
import { Fragment as
|
|
22
|
-
import { useI18n as
|
|
23
|
-
import { EmphasisPanel as
|
|
24
|
-
import { clearGraphqlFetchResponseCache as
|
|
15
|
+
import { capitalizeCarrierName as re, useCarrierPickupLocations as ie } from "../hooks/useCarrierPickupLocations.js";
|
|
16
|
+
import { DEVPORTAL_PERMISSIONS as ae } from "../constants/permissions.js";
|
|
17
|
+
import { useOrganizationPickupAddresses as x } from "../hooks/useOrganizationPickupAddresses.js";
|
|
18
|
+
import { useEffect as S, useState as C } from "react";
|
|
19
|
+
import { AlertCircle as w, AppWindow as T, ArrowRight as E, BarChart3 as oe, Building2 as se, CheckCircle as D, CreditCard as ce, DollarSign as O, ExternalLink as k, Loader2 as A, Plus as j, Settings as le, Shield as M, Trash2 as N, TrendingUp as P, Users as ue } from "lucide-react";
|
|
20
|
+
import { useParams as F } from "react-router";
|
|
21
|
+
import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
22
|
+
import { useI18n as z } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
23
|
+
import { EmphasisPanel as B, NextSteps as V } from "@burdenoff/fe-libs/ui";
|
|
24
|
+
import { clearGraphqlFetchResponseCache as H, graphqlFetch as U } from "@burdenoff/fe-libs/shared/graphql";
|
|
25
25
|
//#region src/devportal/pages/OrganizationDetailPage.tsx
|
|
26
|
-
var
|
|
27
|
-
function
|
|
26
|
+
var W = "\n query OrganizationVerificationDetails($id: ID!) {\n developerOrganization(id: $id) {\n id\n verificationMethod\n verificationRequestedAt\n verificationStatus\n verificationRequestNotes\n verificationEvidenceUrl\n verificationDomain\n verificationRequestedBy\n verificationReviewedAt\n verificationReviewedBy\n verificationReviewNotes\n verificationRejectedReason\n }\n }\n", G = "\n mutation RequestOrgVerificationExtended(\n $id: ID!\n $method: String!\n $notes: String\n $evidenceUrl: String\n $domain: String\n ) {\n requestOrgVerification(\n id: $id\n method: $method\n notes: $notes\n evidenceUrl: $evidenceUrl\n domain: $domain\n ) {\n id\n verificationMethod\n verificationRequestedAt\n verificationStatus\n verificationRequestNotes\n verificationEvidenceUrl\n verificationDomain\n verificationRejectedReason\n }\n }\n";
|
|
27
|
+
function de(e) {
|
|
28
28
|
let t = e;
|
|
29
29
|
return {
|
|
30
30
|
id: e.id,
|
|
@@ -76,12 +76,13 @@ function W(e) {
|
|
|
76
76
|
taxFormVerified: e.taxFormVerified ?? !1,
|
|
77
77
|
legalEntityName: e.legalEntityName ?? void 0,
|
|
78
78
|
legalEntityType: e.legalEntityType ?? void 0,
|
|
79
|
+
billingAccountId: e.billingAccountId ?? void 0,
|
|
79
80
|
pickupPostalCode: e.pickupPostalCode ?? void 0,
|
|
80
81
|
createdAt: e.createdAt,
|
|
81
82
|
updatedAt: e.updatedAt
|
|
82
83
|
};
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function K(e) {
|
|
85
86
|
return {
|
|
86
87
|
id: e.id,
|
|
87
88
|
organizationId: e.organizationId,
|
|
@@ -100,11 +101,11 @@ function G(e) {
|
|
|
100
101
|
updatedAt: e.updatedAt
|
|
101
102
|
};
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
+
function fe(e) {
|
|
104
105
|
let t = e.trim().toLowerCase();
|
|
105
106
|
return /^[a-z0-9.-]+\.[a-z]{2,}$/i.test(t) && !t.includes("@");
|
|
106
107
|
}
|
|
107
|
-
function
|
|
108
|
+
function q(e) {
|
|
108
109
|
try {
|
|
109
110
|
let t = new URL(e.trim());
|
|
110
111
|
return t.protocol === "http:" || t.protocol === "https:";
|
|
@@ -112,272 +113,300 @@ function K(e) {
|
|
|
112
113
|
return !1;
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
+
function pe(e) {
|
|
116
117
|
let t = e.trim();
|
|
117
118
|
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t);
|
|
118
119
|
}
|
|
119
|
-
var
|
|
120
|
+
var J = {
|
|
120
121
|
VIEWER: 0,
|
|
121
122
|
DEVELOPER: 1,
|
|
122
123
|
ADMIN: 2,
|
|
123
124
|
OWNER: 3
|
|
124
|
-
},
|
|
125
|
-
let { navigate: n, basePath: s, setActiveOrgId: c, setActivePhysicalOrgId: l, currentUser:
|
|
126
|
-
let n =
|
|
125
|
+
}, Y = () => {
|
|
126
|
+
let { navigate: n, basePath: s, setActiveOrgId: c, setActivePhysicalOrgId: l, currentUser: u } = e(), d = i(), { orgId: f } = F(), { addresses: p, loading: m, refetch: h } = x(f), { t: g } = z(), _ = (e, t) => {
|
|
127
|
+
let n = g(e);
|
|
127
128
|
return n === e ? t : n;
|
|
128
|
-
}, [
|
|
129
|
+
}, [v, b] = C("overview"), [te, ne] = C(!1), re = [
|
|
129
130
|
{
|
|
130
131
|
id: "overview",
|
|
131
|
-
label:
|
|
132
|
-
icon:
|
|
132
|
+
label: _("devportal.overview", "Overview"),
|
|
133
|
+
icon: se
|
|
133
134
|
},
|
|
134
135
|
{
|
|
135
136
|
id: "apps",
|
|
136
|
-
label:
|
|
137
|
+
label: _("devportal.applications", "Applications"),
|
|
137
138
|
icon: T
|
|
138
139
|
},
|
|
139
140
|
{
|
|
140
141
|
id: "members",
|
|
141
|
-
label:
|
|
142
|
-
icon:
|
|
142
|
+
label: _("devportal.members", "Members"),
|
|
143
|
+
icon: ue
|
|
143
144
|
},
|
|
144
145
|
{
|
|
145
146
|
id: "settings",
|
|
146
|
-
label:
|
|
147
|
-
icon:
|
|
147
|
+
label: _("devportal.settings", "Settings"),
|
|
148
|
+
icon: le
|
|
148
149
|
}
|
|
149
|
-
], { data:
|
|
150
|
-
variables: { id:
|
|
151
|
-
skip: !
|
|
152
|
-
}),
|
|
150
|
+
], { data: ie, previousData: ae, loading: E, error: oe } = o({
|
|
151
|
+
variables: { id: f },
|
|
152
|
+
skip: !f
|
|
153
|
+
}), D = ie ?? ae, { data: k } = a({
|
|
153
154
|
variables: {
|
|
154
155
|
limit: 50,
|
|
155
|
-
organizationId:
|
|
156
|
+
organizationId: f
|
|
156
157
|
},
|
|
157
|
-
skip: !
|
|
158
|
+
skip: !f,
|
|
158
159
|
fetchPolicy: "cache-and-network"
|
|
159
|
-
}),
|
|
160
|
+
}), M = (D?.developerOrganization?.members ?? []).map(K), N = (u ? M.find((e) => e.userId === u.id) : void 0)?.role, P = N !== void 0 && J[N] >= J.DEVELOPER, I = N !== void 0 && J[N] >= J.ADMIN, B = I, H = I, U = re.filter((e) => e.id !== "settings" || I), W = (e) => {
|
|
160
161
|
n?.(`${s}${e}`);
|
|
161
162
|
};
|
|
162
|
-
if (
|
|
163
|
-
|
|
163
|
+
if (S(() => {
|
|
164
|
+
f && (d ? l(f) : c(f));
|
|
164
165
|
}, [
|
|
165
|
-
p,
|
|
166
166
|
f,
|
|
167
|
+
d,
|
|
167
168
|
c,
|
|
168
169
|
l
|
|
169
|
-
]),
|
|
170
|
-
|
|
171
|
-
}, [
|
|
172
|
-
let e =
|
|
173
|
-
if (!
|
|
170
|
+
]), S(() => {
|
|
171
|
+
v === "settings" && !I && b("overview");
|
|
172
|
+
}, [v, I]), S(() => {
|
|
173
|
+
let e = D?.developerOrganization?.name;
|
|
174
|
+
if (!f || !e) return;
|
|
174
175
|
let t = window.__breadcrumbRegistry;
|
|
175
|
-
return t?.register(
|
|
176
|
-
}, [
|
|
177
|
-
title:
|
|
178
|
-
backLink: `${s}${r(
|
|
179
|
-
backLabel:
|
|
180
|
-
children: /* @__PURE__ */
|
|
176
|
+
return t?.register(f, e), () => t?.unregister(f);
|
|
177
|
+
}, [f, ie?.developerOrganization?.name]), E && !D) return /* @__PURE__ */ L(ee, {
|
|
178
|
+
title: _("devportal.loadingDots", "Loading..."),
|
|
179
|
+
backLink: `${s}${r(d)}`,
|
|
180
|
+
backLabel: _("devportal.backToOrganizations", "Back to Organizations"),
|
|
181
|
+
children: /* @__PURE__ */ L("div", {
|
|
181
182
|
className: "flex items-center justify-center py-12",
|
|
182
|
-
children: /* @__PURE__ */
|
|
183
|
+
children: /* @__PURE__ */ L(A, { className: "h-8 w-8 animate-spin text-text-secondary" })
|
|
183
184
|
})
|
|
184
185
|
});
|
|
185
|
-
if (
|
|
186
|
-
title:
|
|
187
|
-
backLink: `${s}${r(
|
|
188
|
-
backLabel:
|
|
189
|
-
children: /* @__PURE__ */
|
|
186
|
+
if (oe || !D?.developerOrganization) return /* @__PURE__ */ L(ee, {
|
|
187
|
+
title: _("devportal.organizationNotFound", "Organization Not Found"),
|
|
188
|
+
backLink: `${s}${r(d)}`,
|
|
189
|
+
backLabel: _("devportal.backToOrganizations", "Back to Organizations"),
|
|
190
|
+
children: /* @__PURE__ */ R("div", {
|
|
190
191
|
className: "flex flex-col items-center justify-center py-12 gap-4",
|
|
191
192
|
children: [
|
|
192
|
-
/* @__PURE__ */
|
|
193
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ L(w, { className: "h-12 w-12 text-status-error-text" }),
|
|
194
|
+
/* @__PURE__ */ L("h2", {
|
|
194
195
|
className: "text-lg font-semibold",
|
|
195
|
-
children:
|
|
196
|
+
children: _("devportal.organizationNotFoundLower", "Organization not found")
|
|
196
197
|
}),
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ L("p", {
|
|
198
199
|
className: "text-text-secondary",
|
|
199
|
-
children:
|
|
200
|
+
children: oe?.message || _("devportal.organizationNotFoundDescription", "The organization you're looking for doesn't exist or you don't have access to it.")
|
|
200
201
|
}),
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
-
onClick: () =>
|
|
202
|
+
/* @__PURE__ */ L("button", {
|
|
203
|
+
onClick: () => W(r(d)),
|
|
203
204
|
className: "mt-4 inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
204
|
-
children:
|
|
205
|
+
children: _("devportal.backToOrganizations", "Back to Organizations")
|
|
205
206
|
})
|
|
206
207
|
]
|
|
207
208
|
})
|
|
208
209
|
});
|
|
209
|
-
let
|
|
210
|
-
return /* @__PURE__ */
|
|
211
|
-
title:
|
|
212
|
-
description:
|
|
213
|
-
purpose:
|
|
214
|
-
backLink: `${s}${r(
|
|
215
|
-
backLabel:
|
|
216
|
-
actions: /* @__PURE__ */
|
|
210
|
+
let G = de(D.developerOrganization), fe = M, q = k?.applications?.edges?.map((e) => e.node) ?? [];
|
|
211
|
+
return /* @__PURE__ */ R(ee, {
|
|
212
|
+
title: G.name,
|
|
213
|
+
description: G.description,
|
|
214
|
+
purpose: _("devportal.orgDetailPurpose", "This is the home for one organization — the apps it owns, the people who can work on them, and its store and billing settings. Invite teammates, add apps, and verify the org so your published listings look trustworthy."),
|
|
215
|
+
backLink: `${s}${r(d)}`,
|
|
216
|
+
backLabel: _("devportal.backToOrganizations", "Back to Organizations"),
|
|
217
|
+
actions: /* @__PURE__ */ L("div", {
|
|
217
218
|
className: "flex items-center gap-2",
|
|
218
|
-
children:
|
|
219
|
-
onClick: () => n?.(`/billing/earnings?developerOrgId=${encodeURIComponent(
|
|
219
|
+
children: B ? /* @__PURE__ */ R("button", {
|
|
220
|
+
onClick: () => n?.(`/billing/earnings?developerOrgId=${encodeURIComponent(G.id)}&developerOrgName=${encodeURIComponent(G.name)}`),
|
|
220
221
|
className: "inline-flex items-center gap-2 rounded-md border px-4 py-2 text-sm font-medium hover:bg-bg-sunken transition-colors",
|
|
221
|
-
children: [/* @__PURE__ */
|
|
222
|
+
children: [/* @__PURE__ */ L(O, { size: 16 }), _("devportal.revenue", "Revenue")]
|
|
222
223
|
}) : null
|
|
223
224
|
}),
|
|
224
225
|
children: [
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ L("div", {
|
|
226
227
|
className: "border-b",
|
|
227
|
-
children: /* @__PURE__ */
|
|
228
|
+
children: /* @__PURE__ */ L("nav", {
|
|
228
229
|
className: "-mb-px flex gap-4 overflow-x-auto",
|
|
229
230
|
role: "tablist",
|
|
230
|
-
"aria-label":
|
|
231
|
-
children:
|
|
231
|
+
"aria-label": _("devportal.organizationSections", "Organization sections"),
|
|
232
|
+
children: U.map((e) => {
|
|
232
233
|
let n = e.icon;
|
|
233
|
-
return /* @__PURE__ */
|
|
234
|
+
return /* @__PURE__ */ R("button", {
|
|
234
235
|
id: `organization-tab-${e.id}`,
|
|
235
236
|
role: "tab",
|
|
236
|
-
"aria-selected":
|
|
237
|
+
"aria-selected": v === e.id,
|
|
237
238
|
"aria-controls": `organization-panel-${e.id}`,
|
|
238
|
-
onClick: () =>
|
|
239
|
-
className: t("flex items-center gap-2 border-b-2 px-1 py-3 text-sm font-medium transition-colors",
|
|
240
|
-
children: [/* @__PURE__ */
|
|
239
|
+
onClick: () => b(e.id),
|
|
240
|
+
className: t("flex items-center gap-2 border-b-2 px-1 py-3 text-sm font-medium transition-colors", v === e.id ? "border-primary text-primary" : "border-transparent text-text-secondary hover:text-text-primary hover:border-muted-foreground"),
|
|
241
|
+
children: [/* @__PURE__ */ L(n, { size: 16 }), e.label]
|
|
241
242
|
}, e.id);
|
|
242
243
|
})
|
|
243
244
|
})
|
|
244
245
|
}),
|
|
245
|
-
/* @__PURE__ */
|
|
246
|
+
I && d && !m && p.length === 0 && /* @__PURE__ */ R(y, {
|
|
247
|
+
variant: "warning",
|
|
248
|
+
title: _("devportal.pickupAddressRequiredTitle", "Pickup address required"),
|
|
246
249
|
className: "mt-6",
|
|
247
|
-
|
|
250
|
+
children: [/* @__PURE__ */ L("p", { children: _("devportal.pickupAddressRequiredDesc", "This organization sells physical items, so it needs a real pickup address before it's fully set up — buyers need to know where orders actually ship from.") }), /* @__PURE__ */ L("button", {
|
|
251
|
+
type: "button",
|
|
252
|
+
onClick: () => {
|
|
253
|
+
b("settings"), ne(!0);
|
|
254
|
+
},
|
|
255
|
+
className: "mt-2 text-sm font-semibold underline",
|
|
256
|
+
children: _("devportal.pickupAddressRequiredCta", "Configure it now")
|
|
257
|
+
})]
|
|
258
|
+
}),
|
|
259
|
+
/* @__PURE__ */ L(V, {
|
|
260
|
+
className: "mt-6",
|
|
261
|
+
storageKey: `devportal-org-${G.id}`,
|
|
248
262
|
steps: [
|
|
249
|
-
...
|
|
263
|
+
...H ? [{
|
|
250
264
|
id: "invite-members",
|
|
251
|
-
label:
|
|
252
|
-
description:
|
|
253
|
-
icon: /* @__PURE__ */
|
|
254
|
-
onClick: () =>
|
|
265
|
+
label: _("devportal.inviteMembers", "Invite members"),
|
|
266
|
+
description: _("devportal.orgStepInvite", "Add teammates so they can build alongside you"),
|
|
267
|
+
icon: /* @__PURE__ */ L(ue, { size: 16 }),
|
|
268
|
+
onClick: () => b("members")
|
|
269
|
+
}] : [],
|
|
270
|
+
...I ? [{
|
|
271
|
+
id: "settings",
|
|
272
|
+
label: _("devportal.orgStepVerify", "Complete organization profile"),
|
|
273
|
+
description: _("devportal.orgStepVerifyDesc", "Add a logo and details, then request verification"),
|
|
274
|
+
icon: /* @__PURE__ */ L(le, { size: 16 }),
|
|
275
|
+
onClick: () => b("settings"),
|
|
276
|
+
done: !!G.isVerified
|
|
277
|
+
}] : [],
|
|
278
|
+
...I ? [{
|
|
279
|
+
id: "link-billing",
|
|
280
|
+
label: _("devportal.orgStepLinkBilling", "Link billing account"),
|
|
281
|
+
description: _("devportal.orgStepLinkBillingDesc", "Connect a billing account so sale and payout revenue has somewhere to go"),
|
|
282
|
+
icon: /* @__PURE__ */ L(ce, { size: 16 }),
|
|
283
|
+
onClick: () => n?.(`/billing/earnings?developerOrgId=${encodeURIComponent(G.id)}&developerOrgName=${encodeURIComponent(G.name)}`),
|
|
284
|
+
done: !!G.billingAccountId
|
|
255
285
|
}] : [],
|
|
256
|
-
...
|
|
286
|
+
...P && !d ? [{
|
|
257
287
|
id: "create-app",
|
|
258
|
-
label:
|
|
259
|
-
description:
|
|
260
|
-
icon: /* @__PURE__ */
|
|
261
|
-
onClick: () =>
|
|
288
|
+
label: _("devportal.createApp", "Create App"),
|
|
289
|
+
description: _("devportal.orgStepCreateApp", "Build a new application under this organization"),
|
|
290
|
+
icon: /* @__PURE__ */ L(T, { size: 16 }),
|
|
291
|
+
onClick: () => W("/apps/new")
|
|
262
292
|
}] : [],
|
|
263
|
-
...
|
|
293
|
+
...P && d ? [{
|
|
264
294
|
id: "list-item",
|
|
265
|
-
label:
|
|
266
|
-
description:
|
|
267
|
-
icon: /* @__PURE__ */
|
|
268
|
-
onClick: () =>
|
|
269
|
-
}] : [],
|
|
270
|
-
...D ? [{
|
|
271
|
-
id: "settings",
|
|
272
|
-
label: h("devportal.orgStepVerify", "Complete organization profile"),
|
|
273
|
-
description: h("devportal.orgStepVerifyDesc", "Add a logo and details, then request verification"),
|
|
274
|
-
icon: /* @__PURE__ */ z(ae, { size: 16 }),
|
|
275
|
-
onClick: () => _("settings"),
|
|
276
|
-
done: !!F.isVerified
|
|
295
|
+
label: _("devportal.listAnItem", "List an Item"),
|
|
296
|
+
description: _("devportal.orgStepListItem", "List a physical product for sale under this organization"),
|
|
297
|
+
icon: /* @__PURE__ */ L(j, { size: 16 }),
|
|
298
|
+
onClick: () => W("/seller/items/new")
|
|
277
299
|
}] : []
|
|
278
300
|
]
|
|
279
301
|
}),
|
|
280
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ R("div", {
|
|
281
303
|
className: "mt-6",
|
|
282
|
-
id: `organization-panel-${
|
|
304
|
+
id: `organization-panel-${v}`,
|
|
283
305
|
role: "tabpanel",
|
|
284
|
-
"aria-labelledby": `organization-tab-${
|
|
306
|
+
"aria-labelledby": `organization-tab-${v}`,
|
|
285
307
|
tabIndex: 0,
|
|
286
308
|
children: [
|
|
287
|
-
|
|
288
|
-
org:
|
|
289
|
-
apps:
|
|
290
|
-
members:
|
|
291
|
-
canCreateApps:
|
|
292
|
-
canViewRevenue:
|
|
293
|
-
onNavigate:
|
|
294
|
-
onShowApps: () =>
|
|
309
|
+
v === "overview" && /* @__PURE__ */ L(me, {
|
|
310
|
+
org: G,
|
|
311
|
+
apps: q,
|
|
312
|
+
members: fe,
|
|
313
|
+
canCreateApps: P,
|
|
314
|
+
canViewRevenue: B,
|
|
315
|
+
onNavigate: W,
|
|
316
|
+
onShowApps: () => b("apps")
|
|
295
317
|
}),
|
|
296
|
-
|
|
297
|
-
org:
|
|
298
|
-
apps:
|
|
299
|
-
onNavigate:
|
|
300
|
-
canCreateApps:
|
|
318
|
+
v === "apps" && /* @__PURE__ */ L(X, {
|
|
319
|
+
org: G,
|
|
320
|
+
apps: q,
|
|
321
|
+
onNavigate: W,
|
|
322
|
+
canCreateApps: P
|
|
301
323
|
}),
|
|
302
|
-
|
|
303
|
-
members:
|
|
304
|
-
onNavigate:
|
|
305
|
-
orgId:
|
|
306
|
-
canInviteMembers:
|
|
324
|
+
v === "members" && /* @__PURE__ */ L(Z, {
|
|
325
|
+
members: fe,
|
|
326
|
+
onNavigate: W,
|
|
327
|
+
orgId: G.id,
|
|
328
|
+
canInviteMembers: H
|
|
307
329
|
}),
|
|
308
|
-
|
|
330
|
+
v === "settings" && I && /* @__PURE__ */ L(he, {
|
|
331
|
+
org: G,
|
|
332
|
+
pickupAddresses: p,
|
|
333
|
+
pickupAddressesLoading: m,
|
|
334
|
+
refetchPickupAddresses: h,
|
|
335
|
+
focusFulfillment: te,
|
|
336
|
+
onFocusFulfillmentHandled: () => ne(!1)
|
|
337
|
+
})
|
|
309
338
|
]
|
|
310
339
|
})
|
|
311
340
|
]
|
|
312
341
|
});
|
|
313
|
-
},
|
|
314
|
-
let { t: c } =
|
|
342
|
+
}, me = ({ org: e, apps: t, members: r, canCreateApps: i, canViewRevenue: a, onNavigate: o, onShowApps: s }) => {
|
|
343
|
+
let { t: c } = z(), l = (e, t) => {
|
|
315
344
|
let n = c(e);
|
|
316
345
|
return n === e ? t : n;
|
|
317
346
|
};
|
|
318
|
-
return /* @__PURE__ */
|
|
347
|
+
return /* @__PURE__ */ R("div", {
|
|
319
348
|
className: "grid gap-6 lg:grid-cols-3",
|
|
320
|
-
children: [/* @__PURE__ */
|
|
349
|
+
children: [/* @__PURE__ */ R("div", {
|
|
321
350
|
className: "lg:col-span-2 space-y-6",
|
|
322
|
-
children: [/* @__PURE__ */
|
|
351
|
+
children: [/* @__PURE__ */ L(B, { children: /* @__PURE__ */ R(m, {
|
|
323
352
|
columns: a ? 4 : 3,
|
|
324
353
|
children: [
|
|
325
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ L(p, {
|
|
326
355
|
title: l("devportal.publishedApps", "Published Apps"),
|
|
327
356
|
value: `${e.publishedApps}/${e.totalApps}`,
|
|
328
|
-
icon: /* @__PURE__ */
|
|
357
|
+
icon: /* @__PURE__ */ L(T, { size: 20 })
|
|
329
358
|
}),
|
|
330
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ L(p, {
|
|
331
360
|
title: l("devportal.totalInstalls", "Total Installs"),
|
|
332
361
|
value: e.totalInstalls.toLocaleString(),
|
|
333
|
-
icon: /* @__PURE__ */
|
|
362
|
+
icon: /* @__PURE__ */ L(P, { size: 20 })
|
|
334
363
|
}),
|
|
335
|
-
a ? /* @__PURE__ */
|
|
364
|
+
a ? /* @__PURE__ */ L(p, {
|
|
336
365
|
title: l("devportal.totalRevenue", "Total Revenue"),
|
|
337
366
|
value: `$${e.totalRevenue.toLocaleString()}`,
|
|
338
|
-
icon: /* @__PURE__ */
|
|
367
|
+
icon: /* @__PURE__ */ L(O, { size: 20 })
|
|
339
368
|
}) : null,
|
|
340
|
-
/* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ L(p, {
|
|
341
370
|
title: l("devportal.avgRating", "Avg Rating"),
|
|
342
371
|
value: e.averageRating ? `${e.averageRating.toFixed(1)} ★` : l("devportal.notAvailable", "N/A"),
|
|
343
|
-
icon: /* @__PURE__ */
|
|
372
|
+
icon: /* @__PURE__ */ L(oe, { size: 20 })
|
|
344
373
|
})
|
|
345
374
|
]
|
|
346
|
-
}) }), /* @__PURE__ */
|
|
375
|
+
}) }), /* @__PURE__ */ L(u, {
|
|
347
376
|
title: l("devportal.recentApplications", "Recent Applications"),
|
|
348
|
-
actions: /* @__PURE__ */
|
|
377
|
+
actions: /* @__PURE__ */ R("button", {
|
|
349
378
|
onClick: s,
|
|
350
379
|
className: "text-sm text-primary hover:underline flex items-center gap-1",
|
|
351
380
|
children: [
|
|
352
381
|
l("devportal.viewAll", "View all"),
|
|
353
382
|
" ",
|
|
354
|
-
/* @__PURE__ */
|
|
383
|
+
/* @__PURE__ */ L(E, { size: 14 })
|
|
355
384
|
]
|
|
356
385
|
}),
|
|
357
|
-
children: t.length > 0 ? /* @__PURE__ */
|
|
386
|
+
children: t.length > 0 ? /* @__PURE__ */ L("div", {
|
|
358
387
|
className: "space-y-2",
|
|
359
|
-
children: t.slice(0, 3).map((e) => /* @__PURE__ */
|
|
388
|
+
children: t.slice(0, 3).map((e) => /* @__PURE__ */ L(f, {
|
|
360
389
|
app: e,
|
|
361
390
|
onClick: () => o(`/apps/${e.id}`)
|
|
362
391
|
}, e.id))
|
|
363
|
-
}) : /* @__PURE__ */
|
|
392
|
+
}) : /* @__PURE__ */ L(n, {
|
|
364
393
|
illustration: "empty-data",
|
|
365
|
-
icon: /* @__PURE__ */
|
|
394
|
+
icon: /* @__PURE__ */ L(T, { size: 24 }),
|
|
366
395
|
title: l("devportal.noApplications", "No applications"),
|
|
367
396
|
description: e.kind === "PHYSICAL" ? l("devportal.createYourFirstItem", "List your first physical item") : l("devportal.createYourFirstApplication", "Create your first application"),
|
|
368
|
-
action: i ? /* @__PURE__ */
|
|
397
|
+
action: i ? /* @__PURE__ */ R("button", {
|
|
369
398
|
onClick: () => o(e.kind === "PHYSICAL" ? "/seller/items/new" : "/apps/new"),
|
|
370
399
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
371
|
-
children: [/* @__PURE__ */
|
|
400
|
+
children: [/* @__PURE__ */ L(j, { size: 16 }), e.kind === "PHYSICAL" ? l("devportal.createItem", "Create Item") : l("devportal.createApp", "Create App")]
|
|
372
401
|
}) : void 0
|
|
373
402
|
})
|
|
374
403
|
})]
|
|
375
|
-
}), /* @__PURE__ */
|
|
404
|
+
}), /* @__PURE__ */ R("div", {
|
|
376
405
|
className: "space-y-6",
|
|
377
406
|
children: [
|
|
378
|
-
a ? /* @__PURE__ */
|
|
407
|
+
a ? /* @__PURE__ */ L(u, {
|
|
379
408
|
title: l("devportal.revenueSummary", "Revenue Summary"),
|
|
380
|
-
children: /* @__PURE__ */
|
|
409
|
+
children: /* @__PURE__ */ L(g, { items: [
|
|
381
410
|
{
|
|
382
411
|
label: l("devportal.totalRevenue", "Total Revenue"),
|
|
383
412
|
value: `$${e.totalRevenue.toLocaleString()}`
|
|
@@ -400,31 +429,31 @@ var q = {
|
|
|
400
429
|
}
|
|
401
430
|
] })
|
|
402
431
|
}) : null,
|
|
403
|
-
/* @__PURE__ */
|
|
432
|
+
/* @__PURE__ */ L(u, {
|
|
404
433
|
title: l("devportal.teamMembers", "Team Members"),
|
|
405
|
-
actions: /* @__PURE__ */
|
|
434
|
+
actions: /* @__PURE__ */ L("button", {
|
|
406
435
|
onClick: () => o(`/organizations/${e.id}/members`),
|
|
407
436
|
className: "text-sm text-primary hover:underline",
|
|
408
437
|
children: l("devportal.manage", "Manage")
|
|
409
438
|
}),
|
|
410
|
-
children: /* @__PURE__ */
|
|
439
|
+
children: /* @__PURE__ */ R("div", {
|
|
411
440
|
className: "space-y-2",
|
|
412
|
-
children: [r.slice(0, 3).map((e) => /* @__PURE__ */
|
|
441
|
+
children: [r.slice(0, 3).map((e) => /* @__PURE__ */ L("div", {
|
|
413
442
|
className: "flex items-center justify-between py-2",
|
|
414
|
-
children: /* @__PURE__ */
|
|
443
|
+
children: /* @__PURE__ */ R("div", {
|
|
415
444
|
className: "flex items-center gap-3",
|
|
416
|
-
children: [/* @__PURE__ */
|
|
445
|
+
children: [/* @__PURE__ */ L("div", {
|
|
417
446
|
className: "h-8 w-8 rounded-full bg-action-primary-bg/10 flex items-center justify-center text-sm font-medium text-primary",
|
|
418
447
|
children: e.email?.charAt(0).toUpperCase() || "U"
|
|
419
|
-
}), /* @__PURE__ */
|
|
448
|
+
}), /* @__PURE__ */ R("div", { children: [/* @__PURE__ */ L("p", {
|
|
420
449
|
className: "text-sm font-medium",
|
|
421
450
|
children: e.email
|
|
422
|
-
}), /* @__PURE__ */
|
|
451
|
+
}), /* @__PURE__ */ L("p", {
|
|
423
452
|
className: "text-xs text-text-secondary",
|
|
424
|
-
children:
|
|
453
|
+
children: d[e.role]
|
|
425
454
|
})] })]
|
|
426
455
|
})
|
|
427
|
-
}, e.id)), r.length > 3 && /* @__PURE__ */
|
|
456
|
+
}, e.id)), r.length > 3 && /* @__PURE__ */ R("p", {
|
|
428
457
|
className: "text-xs text-text-secondary",
|
|
429
458
|
children: [
|
|
430
459
|
"+",
|
|
@@ -435,99 +464,99 @@ var q = {
|
|
|
435
464
|
})]
|
|
436
465
|
})
|
|
437
466
|
}),
|
|
438
|
-
/* @__PURE__ */
|
|
467
|
+
/* @__PURE__ */ L(u, {
|
|
439
468
|
title: l("devportal.links", "Links"),
|
|
440
|
-
children: /* @__PURE__ */
|
|
469
|
+
children: /* @__PURE__ */ R("div", {
|
|
441
470
|
className: "space-y-2",
|
|
442
|
-
children: [e.websiteUrl && /* @__PURE__ */
|
|
471
|
+
children: [e.websiteUrl && /* @__PURE__ */ R("a", {
|
|
443
472
|
href: e.websiteUrl,
|
|
444
473
|
target: "_blank",
|
|
445
474
|
rel: "noopener noreferrer",
|
|
446
475
|
className: "flex items-center gap-2 text-sm text-primary hover:underline",
|
|
447
|
-
children: [/* @__PURE__ */
|
|
448
|
-
}), e.contactEmail && /* @__PURE__ */
|
|
476
|
+
children: [/* @__PURE__ */ L(k, { size: 14 }), l("devportal.website", "Website")]
|
|
477
|
+
}), e.contactEmail && /* @__PURE__ */ R("a", {
|
|
449
478
|
href: `mailto:${e.contactEmail}`,
|
|
450
479
|
className: "flex items-center gap-2 text-sm text-primary hover:underline",
|
|
451
|
-
children: [/* @__PURE__ */
|
|
480
|
+
children: [/* @__PURE__ */ L(k, { size: 14 }), e.contactEmail]
|
|
452
481
|
})]
|
|
453
482
|
})
|
|
454
483
|
})
|
|
455
484
|
]
|
|
456
485
|
})]
|
|
457
486
|
});
|
|
458
|
-
},
|
|
459
|
-
let { t: a } =
|
|
487
|
+
}, X = ({ org: e, apps: t, onNavigate: r, canCreateApps: i }) => {
|
|
488
|
+
let { t: a } = z(), o = (e, t) => {
|
|
460
489
|
let n = a(e);
|
|
461
490
|
return n === e ? t : n;
|
|
462
491
|
}, s = e.kind === "PHYSICAL", c = s ? "/seller/items/new" : "/apps/new", l = s ? o("devportal.createItem", "Create Item") : o("devportal.createApp", "Create App");
|
|
463
|
-
return /* @__PURE__ */
|
|
492
|
+
return /* @__PURE__ */ R("div", {
|
|
464
493
|
className: "space-y-6",
|
|
465
|
-
children: [/* @__PURE__ */
|
|
494
|
+
children: [/* @__PURE__ */ R("div", {
|
|
466
495
|
className: "flex items-center justify-between",
|
|
467
|
-
children: [/* @__PURE__ */
|
|
496
|
+
children: [/* @__PURE__ */ R("p", {
|
|
468
497
|
className: "text-sm text-text-secondary",
|
|
469
498
|
children: [
|
|
470
499
|
t.length,
|
|
471
500
|
" ",
|
|
472
501
|
t.length === 1 ? o("devportal.application", "application") : o("devportal.applications", "applications")
|
|
473
502
|
]
|
|
474
|
-
}), i ? /* @__PURE__ */
|
|
503
|
+
}), i ? /* @__PURE__ */ R("button", {
|
|
475
504
|
onClick: () => r(c),
|
|
476
505
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
477
|
-
children: [/* @__PURE__ */
|
|
506
|
+
children: [/* @__PURE__ */ L(j, { size: 16 }), l]
|
|
478
507
|
}) : null]
|
|
479
|
-
}), t.length > 0 ? /* @__PURE__ */
|
|
508
|
+
}), t.length > 0 ? /* @__PURE__ */ L("div", {
|
|
480
509
|
className: "space-y-2",
|
|
481
|
-
children: t.map((e) => /* @__PURE__ */
|
|
510
|
+
children: t.map((e) => /* @__PURE__ */ L(f, {
|
|
482
511
|
app: e,
|
|
483
512
|
onClick: () => r(`/apps/${e.id}`)
|
|
484
513
|
}, e.id))
|
|
485
|
-
}) : /* @__PURE__ */
|
|
514
|
+
}) : /* @__PURE__ */ L(n, {
|
|
486
515
|
illustration: "empty-data",
|
|
487
|
-
icon: /* @__PURE__ */
|
|
516
|
+
icon: /* @__PURE__ */ L(T, { size: 32 }),
|
|
488
517
|
title: o("devportal.noApplications", "No applications"),
|
|
489
518
|
description: s ? o("devportal.createFirstItemForOrg", "List your first physical item for this organization") : o("devportal.createFirstAppForOrg", "Create your first application for this organization"),
|
|
490
|
-
action: i ? /* @__PURE__ */
|
|
519
|
+
action: i ? /* @__PURE__ */ R("button", {
|
|
491
520
|
onClick: () => r(c),
|
|
492
521
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
493
|
-
children: [/* @__PURE__ */
|
|
522
|
+
children: [/* @__PURE__ */ L(j, { size: 16 }), l]
|
|
494
523
|
}) : void 0
|
|
495
524
|
})]
|
|
496
525
|
});
|
|
497
|
-
},
|
|
498
|
-
let { t: a } =
|
|
526
|
+
}, Z = ({ members: e, onNavigate: n, orgId: r, canInviteMembers: i }) => {
|
|
527
|
+
let { t: a } = z(), o = (e, t) => {
|
|
499
528
|
let n = a(e);
|
|
500
529
|
return n === e ? t : n;
|
|
501
530
|
};
|
|
502
|
-
return /* @__PURE__ */
|
|
531
|
+
return /* @__PURE__ */ R("div", {
|
|
503
532
|
className: "space-y-6",
|
|
504
|
-
children: [/* @__PURE__ */
|
|
533
|
+
children: [/* @__PURE__ */ R("div", {
|
|
505
534
|
className: "flex items-center justify-between",
|
|
506
|
-
children: [/* @__PURE__ */
|
|
535
|
+
children: [/* @__PURE__ */ R("p", {
|
|
507
536
|
className: "text-sm text-text-secondary",
|
|
508
537
|
children: [
|
|
509
538
|
e.length,
|
|
510
539
|
" ",
|
|
511
540
|
e.length === 1 ? o("devportal.memberLower", "member") : o("devportal.membersLower", "members")
|
|
512
541
|
]
|
|
513
|
-
}), i ? /* @__PURE__ */
|
|
542
|
+
}), i ? /* @__PURE__ */ R("button", {
|
|
514
543
|
onClick: () => n(`/organizations/${r}/members`),
|
|
515
544
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
516
|
-
children: [/* @__PURE__ */
|
|
545
|
+
children: [/* @__PURE__ */ L(j, { size: 16 }), o("devportal.inviteMember", "Invite Member")]
|
|
517
546
|
}) : null]
|
|
518
|
-
}), /* @__PURE__ */
|
|
547
|
+
}), /* @__PURE__ */ L(h, {
|
|
519
548
|
data: e,
|
|
520
549
|
keyField: "id",
|
|
521
550
|
columns: [
|
|
522
551
|
{
|
|
523
552
|
key: "email",
|
|
524
553
|
header: o("devportal.memberColumn", "Member"),
|
|
525
|
-
render: (e) => /* @__PURE__ */
|
|
554
|
+
render: (e) => /* @__PURE__ */ R("div", {
|
|
526
555
|
className: "flex items-center gap-3",
|
|
527
|
-
children: [/* @__PURE__ */
|
|
556
|
+
children: [/* @__PURE__ */ L("div", {
|
|
528
557
|
className: "h-8 w-8 rounded-full bg-action-primary-bg/10 flex items-center justify-center text-sm font-medium text-primary",
|
|
529
558
|
children: e.email?.charAt(0).toUpperCase() || "U"
|
|
530
|
-
}), /* @__PURE__ */
|
|
559
|
+
}), /* @__PURE__ */ L("span", {
|
|
531
560
|
className: "font-medium",
|
|
532
561
|
children: e.email
|
|
533
562
|
})]
|
|
@@ -536,9 +565,9 @@ var q = {
|
|
|
536
565
|
{
|
|
537
566
|
key: "role",
|
|
538
567
|
header: o("devportal.roleColumn", "Role"),
|
|
539
|
-
render: (e) => /* @__PURE__ */
|
|
568
|
+
render: (e) => /* @__PURE__ */ L("span", {
|
|
540
569
|
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", e.role === "OWNER" ? "bg-accent-purple-subtle text-accent-purple" : e.role === "ADMIN" ? "bg-status-info-bg-subtle text-status-info-text" : e.role === "DEVELOPER" ? "bg-status-success-bg-subtle text-status-success-text" : "bg-bg-sunken text-text-primary"),
|
|
541
|
-
children:
|
|
570
|
+
children: d[e.role]
|
|
542
571
|
})
|
|
543
572
|
},
|
|
544
573
|
{
|
|
@@ -549,11 +578,21 @@ var q = {
|
|
|
549
578
|
]
|
|
550
579
|
})]
|
|
551
580
|
});
|
|
552
|
-
},
|
|
553
|
-
let
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
581
|
+
}, he = ({ org: e, pickupAddresses: n, pickupAddressesLoading: r, refetchPickupAddresses: i, focusFulfillment: a, onFocusFulfillmentHandled: o }) => {
|
|
582
|
+
let [ee, d] = C(!1);
|
|
583
|
+
S(() => {
|
|
584
|
+
if (!a) return;
|
|
585
|
+
document.getElementById("fulfillment-section")?.scrollIntoView({
|
|
586
|
+
behavior: "smooth",
|
|
587
|
+
block: "start"
|
|
588
|
+
}), d(!0);
|
|
589
|
+
let e = setTimeout(() => d(!1), 2500);
|
|
590
|
+
return o?.(), () => clearTimeout(e);
|
|
591
|
+
}, [a]);
|
|
592
|
+
let { t: f } = z(), { allowed: p } = ne(ae.ORG_UPDATE), m = (e, t) => {
|
|
593
|
+
let n = f(e);
|
|
594
|
+
return n === e ? t : n;
|
|
595
|
+
}, [h, y] = C({
|
|
557
596
|
name: e.name,
|
|
558
597
|
description: e.description ?? "",
|
|
559
598
|
websiteUrl: e.websiteUrl ?? "",
|
|
@@ -561,25 +600,25 @@ var q = {
|
|
|
561
600
|
supportEmail: e.supportEmail ?? "",
|
|
562
601
|
logoUrl: e.logoUrl ?? "",
|
|
563
602
|
bannerUrl: e.bannerUrl ?? ""
|
|
564
|
-
}), [
|
|
603
|
+
}), [x, w] = C({
|
|
565
604
|
legalEntityName: e.legalEntityName ?? "",
|
|
566
605
|
legalEntityType: e.legalEntityType ?? ""
|
|
567
|
-
}), [
|
|
606
|
+
}), [T, E] = C({
|
|
568
607
|
taxId: e.taxId ?? "",
|
|
569
608
|
taxCountry: e.taxCountry ?? ""
|
|
570
|
-
}), { locations:
|
|
609
|
+
}), { locations: oe, refetch: se } = ie(), [ce, O] = C(!1), [k, P] = C(null), [ue, F] = C(null), [B, V] = C(null), [de, K] = C(null), [J, Y] = C(null), [me, X] = C(null), [Z, he] = C("manual"), [ge, _e] = C(!1), [ve, ye] = C(""), [be, xe] = C(""), [Se, Ce] = C(""), [we, Te] = C(null), [Ee, De] = C(!1), Q = we ?? {
|
|
571
610
|
verificationMethod: e.verificationMethod,
|
|
572
611
|
verificationRequestedAt: e.verificationRequestedAt,
|
|
573
612
|
verificationStatus: e.verificationStatus,
|
|
574
613
|
verificationRequestNotes: e.verificationRequestNotes,
|
|
575
614
|
verificationRejectedReason: e.verificationRejectedReason
|
|
576
|
-
},
|
|
577
|
-
|
|
578
|
-
let
|
|
579
|
-
|
|
580
|
-
let
|
|
581
|
-
|
|
582
|
-
|
|
615
|
+
}, $ = [];
|
|
616
|
+
h.contactEmail.trim() ? pe(h.contactEmail) || $.push(m("devportal.contactEmailInvalid", "Contact email must be valid")) : $.push(m("devportal.contactEmailRequired", "Contact email is required")), h.supportEmail.trim() && !pe(h.supportEmail) && $.push(m("devportal.supportEmailInvalid", "Support email must be valid")), h.websiteUrl.trim() ? q(h.websiteUrl) || $.push(m("devportal.websiteInvalid", "Website URL must be valid")) : $.push(m("devportal.websiteRequired", "Website URL is required")), x.legalEntityName.trim() || $.push(m("devportal.legalEntityNameRequired", "Legal entity name is required")), x.legalEntityType.trim() || $.push(m("devportal.legalEntityTypeRequired", "Entity type is required")), T.taxId.trim() || $.push(m("devportal.taxIdRequired", "Tax ID is required")), T.taxCountry.trim() ? /^[A-Za-z]{2}$/.test(T.taxCountry.trim()) || $.push(m("devportal.taxCountryInvalid", "Tax country must be a 2-letter code")) : $.push(m("devportal.taxCountryRequired", "Tax country is required"));
|
|
617
|
+
let Oe = [];
|
|
618
|
+
Z === "domain" && !fe(Se.trim()) && Oe.push(m("devportal.verification.errors.domainRequired", "Enter a valid domain like burdenoff.com")), Z === "document" && !q(be.trim()) && Oe.push(m("devportal.verification.errors.evidenceUrlRequired", "Enter a valid evidence URL starting with http:// or https://")), Z === "manual" && !ve.trim() && Oe.push(m("devportal.verification.errors.notesRequired", "Add notes so the reviewer knows what to verify"));
|
|
619
|
+
let ke = $.length === 0 && Oe.length === 0 && !Ee && p, [Ae, { loading: je }] = l({ refetchQueries: ["GetOrganization"] }), [Me, { loading: Ne }] = s({ refetchQueries: ["GetOrganization"] }), [Pe, { loading: Fe }] = c({ refetchQueries: ["GetOrganization"] });
|
|
620
|
+
S(() => {
|
|
621
|
+
y({
|
|
583
622
|
name: e.name,
|
|
584
623
|
description: e.description ?? "",
|
|
585
624
|
websiteUrl: e.websiteUrl ?? "",
|
|
@@ -587,66 +626,66 @@ var q = {
|
|
|
587
626
|
supportEmail: e.supportEmail ?? "",
|
|
588
627
|
logoUrl: e.logoUrl ?? "",
|
|
589
628
|
bannerUrl: e.bannerUrl ?? ""
|
|
590
|
-
}),
|
|
629
|
+
}), w({
|
|
591
630
|
legalEntityName: e.legalEntityName ?? "",
|
|
592
631
|
legalEntityType: e.legalEntityType ?? ""
|
|
593
|
-
}),
|
|
632
|
+
}), E({
|
|
594
633
|
taxId: e.taxId ?? "",
|
|
595
634
|
taxCountry: e.taxCountry ?? ""
|
|
596
635
|
});
|
|
597
|
-
}, [e.id]),
|
|
636
|
+
}, [e.id]), S(() => {
|
|
598
637
|
e.id && U({
|
|
599
638
|
gateway: "global",
|
|
600
|
-
query:
|
|
639
|
+
query: W,
|
|
601
640
|
variables: { id: e.id }
|
|
602
|
-
}).then((e) =>
|
|
603
|
-
}, [e.id,
|
|
604
|
-
let
|
|
605
|
-
|
|
641
|
+
}).then((e) => Te(e.data?.developerOrganization ?? null)).catch(() => Te(null));
|
|
642
|
+
}, [e.id, ge]);
|
|
643
|
+
let Ie = async () => {
|
|
644
|
+
X(null), Y(null);
|
|
606
645
|
try {
|
|
607
|
-
await
|
|
646
|
+
await Ae({ variables: {
|
|
608
647
|
id: e.id,
|
|
609
648
|
input: {
|
|
610
|
-
name:
|
|
611
|
-
description:
|
|
612
|
-
websiteUrl:
|
|
613
|
-
contactEmail:
|
|
614
|
-
supportEmail:
|
|
615
|
-
logoUrl:
|
|
616
|
-
bannerUrl:
|
|
649
|
+
name: h.name.trim() || void 0,
|
|
650
|
+
description: h.description.trim() || null,
|
|
651
|
+
websiteUrl: h.websiteUrl.trim() || null,
|
|
652
|
+
contactEmail: h.contactEmail.trim() || null,
|
|
653
|
+
supportEmail: h.supportEmail.trim() || null,
|
|
654
|
+
logoUrl: h.logoUrl.trim() || null,
|
|
655
|
+
bannerUrl: h.bannerUrl.trim() || null
|
|
617
656
|
}
|
|
618
|
-
} }),
|
|
657
|
+
} }), Y(m("devportal.organizationUpdated", "Organization details updated"));
|
|
619
658
|
} catch (e) {
|
|
620
|
-
|
|
659
|
+
X(e instanceof Error ? e.message : m("devportal.failedToUpdateOrganization", "Failed to update organization"));
|
|
621
660
|
}
|
|
622
|
-
},
|
|
623
|
-
|
|
661
|
+
}, Le = async () => {
|
|
662
|
+
X(null), Y(null);
|
|
624
663
|
try {
|
|
625
|
-
await
|
|
664
|
+
await Me({ variables: {
|
|
626
665
|
id: e.id,
|
|
627
666
|
input: {
|
|
628
|
-
legalEntityName:
|
|
629
|
-
legalEntityType:
|
|
667
|
+
legalEntityName: x.legalEntityName.trim() || null,
|
|
668
|
+
legalEntityType: x.legalEntityType.trim() || null
|
|
630
669
|
}
|
|
631
|
-
} }),
|
|
670
|
+
} }), Y(m("devportal.legalInfoUpdated", "Legal information updated"));
|
|
632
671
|
} catch (e) {
|
|
633
|
-
|
|
672
|
+
X(e instanceof Error ? e.message : m("devportal.failedToUpdateLegalInfo", "Failed to update legal information"));
|
|
634
673
|
}
|
|
635
|
-
},
|
|
636
|
-
|
|
674
|
+
}, Re = async () => {
|
|
675
|
+
X(null), Y(null);
|
|
637
676
|
try {
|
|
638
|
-
await
|
|
677
|
+
await Pe({ variables: {
|
|
639
678
|
id: e.id,
|
|
640
679
|
input: {
|
|
641
|
-
taxId:
|
|
642
|
-
taxCountry:
|
|
680
|
+
taxId: T.taxId.trim() || null,
|
|
681
|
+
taxCountry: T.taxCountry.trim() || null
|
|
643
682
|
}
|
|
644
|
-
} }),
|
|
683
|
+
} }), Y(m("devportal.taxInfoUpdated", "Tax information updated"));
|
|
645
684
|
} catch (e) {
|
|
646
|
-
|
|
685
|
+
X(e instanceof Error ? e.message : m("devportal.failedToUpdateTaxInfo", "Failed to update tax information"));
|
|
647
686
|
}
|
|
648
|
-
},
|
|
649
|
-
|
|
687
|
+
}, ze = async (e) => {
|
|
688
|
+
K(null), V(null), F(e);
|
|
650
689
|
try {
|
|
651
690
|
let t = await U({
|
|
652
691
|
gateway: "global",
|
|
@@ -654,14 +693,14 @@ var q = {
|
|
|
654
693
|
variables: { id: e }
|
|
655
694
|
});
|
|
656
695
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? "Failed to switch pickup address");
|
|
657
|
-
|
|
696
|
+
H(), i(), V(m("devportal.pickupAddressSetActive", "Pickup address updated"));
|
|
658
697
|
} catch (e) {
|
|
659
|
-
|
|
698
|
+
K(e instanceof Error ? e.message : m("devportal.failedToSwitchPickupAddress", "Failed to switch pickup address"));
|
|
660
699
|
} finally {
|
|
661
|
-
|
|
700
|
+
F(null);
|
|
662
701
|
}
|
|
663
|
-
},
|
|
664
|
-
|
|
702
|
+
}, Be = async (e) => {
|
|
703
|
+
K(null), V(null), F(e);
|
|
665
704
|
try {
|
|
666
705
|
let t = await U({
|
|
667
706
|
gateway: "global",
|
|
@@ -669,279 +708,281 @@ var q = {
|
|
|
669
708
|
variables: { id: e }
|
|
670
709
|
});
|
|
671
710
|
if (t.errors?.length) throw Error(t.errors[0]?.message ?? "Failed to remove pickup address");
|
|
672
|
-
|
|
711
|
+
H(), i(), V(m("devportal.pickupAddressRemoved", "Pickup address removed"));
|
|
673
712
|
} catch (e) {
|
|
674
|
-
|
|
713
|
+
K(e instanceof Error ? e.message : m("devportal.failedToRemovePickupAddress", "Failed to remove pickup address"));
|
|
675
714
|
} finally {
|
|
676
|
-
|
|
715
|
+
F(null), P(null);
|
|
677
716
|
}
|
|
678
717
|
};
|
|
679
|
-
return /* @__PURE__ */
|
|
718
|
+
return /* @__PURE__ */ R("div", {
|
|
680
719
|
className: "space-y-6 max-w-2xl",
|
|
681
720
|
children: [
|
|
682
|
-
|
|
721
|
+
me && /* @__PURE__ */ L("div", {
|
|
683
722
|
className: "rounded-md border border-status-error-bg bg-status-error-bg-subtle px-4 py-3 text-sm text-status-error-text",
|
|
684
|
-
children:
|
|
723
|
+
children: me
|
|
685
724
|
}),
|
|
686
|
-
|
|
725
|
+
J && /* @__PURE__ */ L("div", {
|
|
687
726
|
className: "rounded-md border border-status-success-bg bg-status-success-bg-subtle px-4 py-3 text-sm text-status-success-text",
|
|
688
|
-
children:
|
|
727
|
+
children: J
|
|
689
728
|
}),
|
|
690
|
-
/* @__PURE__ */
|
|
691
|
-
title:
|
|
692
|
-
children: /* @__PURE__ */
|
|
729
|
+
/* @__PURE__ */ L(u, {
|
|
730
|
+
title: m("devportal.organizationDetails", "Organization Details"),
|
|
731
|
+
children: /* @__PURE__ */ R("div", {
|
|
693
732
|
className: "space-y-4",
|
|
694
733
|
children: [
|
|
695
|
-
/* @__PURE__ */
|
|
734
|
+
/* @__PURE__ */ R("div", {
|
|
696
735
|
className: "grid gap-4 sm:grid-cols-2",
|
|
697
|
-
children: [/* @__PURE__ */
|
|
698
|
-
label:
|
|
699
|
-
value:
|
|
700
|
-
onChange: (e) =>
|
|
736
|
+
children: [/* @__PURE__ */ L(_, {
|
|
737
|
+
label: m("devportal.organizationName", "Organization Name"),
|
|
738
|
+
value: h.name,
|
|
739
|
+
onChange: (e) => y((t) => ({
|
|
701
740
|
...t,
|
|
702
741
|
name: e.target.value
|
|
703
742
|
})),
|
|
704
|
-
disabled: !
|
|
743
|
+
disabled: !p,
|
|
705
744
|
required: !0
|
|
706
|
-
}), /* @__PURE__ */
|
|
707
|
-
label:
|
|
745
|
+
}), /* @__PURE__ */ L(_, {
|
|
746
|
+
label: m("devportal.slug", "Slug"),
|
|
708
747
|
value: e.slug,
|
|
709
748
|
disabled: !0,
|
|
710
|
-
hint:
|
|
749
|
+
hint: m("devportal.slugReadOnly", "Slug cannot be changed here")
|
|
711
750
|
})]
|
|
712
751
|
}),
|
|
713
|
-
/* @__PURE__ */
|
|
714
|
-
label:
|
|
715
|
-
value:
|
|
716
|
-
onChange: (e) =>
|
|
752
|
+
/* @__PURE__ */ L(v, {
|
|
753
|
+
label: m("devportal.description", "Description"),
|
|
754
|
+
value: h.description,
|
|
755
|
+
onChange: (e) => y((t) => ({
|
|
717
756
|
...t,
|
|
718
757
|
description: e.target.value
|
|
719
758
|
})),
|
|
720
|
-
disabled: !
|
|
759
|
+
disabled: !p,
|
|
721
760
|
rows: 4
|
|
722
761
|
}),
|
|
723
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ R("div", {
|
|
724
763
|
className: "grid gap-4 sm:grid-cols-2",
|
|
725
764
|
children: [
|
|
726
|
-
/* @__PURE__ */
|
|
727
|
-
label:
|
|
765
|
+
/* @__PURE__ */ L(_, {
|
|
766
|
+
label: m("devportal.website", "Website"),
|
|
728
767
|
type: "url",
|
|
729
|
-
value:
|
|
730
|
-
onChange: (e) =>
|
|
768
|
+
value: h.websiteUrl,
|
|
769
|
+
onChange: (e) => y((t) => ({
|
|
731
770
|
...t,
|
|
732
771
|
websiteUrl: e.target.value
|
|
733
772
|
})),
|
|
734
|
-
disabled: !
|
|
773
|
+
disabled: !p
|
|
735
774
|
}),
|
|
736
|
-
/* @__PURE__ */
|
|
737
|
-
label:
|
|
775
|
+
/* @__PURE__ */ L(_, {
|
|
776
|
+
label: m("devportal.contactEmail", "Contact Email"),
|
|
738
777
|
type: "email",
|
|
739
|
-
value:
|
|
740
|
-
onChange: (e) =>
|
|
778
|
+
value: h.contactEmail,
|
|
779
|
+
onChange: (e) => y((t) => ({
|
|
741
780
|
...t,
|
|
742
781
|
contactEmail: e.target.value
|
|
743
782
|
})),
|
|
744
|
-
disabled: !
|
|
783
|
+
disabled: !p
|
|
745
784
|
}),
|
|
746
|
-
/* @__PURE__ */
|
|
747
|
-
label:
|
|
785
|
+
/* @__PURE__ */ L(_, {
|
|
786
|
+
label: m("devportal.supportEmail", "Support Email"),
|
|
748
787
|
type: "email",
|
|
749
|
-
value:
|
|
750
|
-
onChange: (e) =>
|
|
788
|
+
value: h.supportEmail,
|
|
789
|
+
onChange: (e) => y((t) => ({
|
|
751
790
|
...t,
|
|
752
791
|
supportEmail: e.target.value
|
|
753
792
|
})),
|
|
754
|
-
disabled: !
|
|
793
|
+
disabled: !p
|
|
755
794
|
}),
|
|
756
|
-
/* @__PURE__ */
|
|
757
|
-
label:
|
|
795
|
+
/* @__PURE__ */ L(_, {
|
|
796
|
+
label: m("devportal.logoUrl", "Logo URL"),
|
|
758
797
|
type: "url",
|
|
759
|
-
value:
|
|
760
|
-
onChange: (e) =>
|
|
798
|
+
value: h.logoUrl,
|
|
799
|
+
onChange: (e) => y((t) => ({
|
|
761
800
|
...t,
|
|
762
801
|
logoUrl: e.target.value
|
|
763
802
|
})),
|
|
764
|
-
disabled: !
|
|
803
|
+
disabled: !p
|
|
765
804
|
})
|
|
766
805
|
]
|
|
767
806
|
}),
|
|
768
|
-
/* @__PURE__ */
|
|
769
|
-
label:
|
|
807
|
+
/* @__PURE__ */ L(_, {
|
|
808
|
+
label: m("devportal.bannerUrl", "Banner URL"),
|
|
770
809
|
type: "url",
|
|
771
|
-
value:
|
|
772
|
-
onChange: (e) =>
|
|
810
|
+
value: h.bannerUrl,
|
|
811
|
+
onChange: (e) => y((t) => ({
|
|
773
812
|
...t,
|
|
774
813
|
bannerUrl: e.target.value
|
|
775
814
|
})),
|
|
776
|
-
disabled: !
|
|
815
|
+
disabled: !p
|
|
777
816
|
}),
|
|
778
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ L(g, { items: [
|
|
779
818
|
{
|
|
780
|
-
label:
|
|
781
|
-
value: /* @__PURE__ */
|
|
819
|
+
label: m("devportal.organizationId", "Organization ID"),
|
|
820
|
+
value: /* @__PURE__ */ L("code", {
|
|
782
821
|
className: "text-xs",
|
|
783
822
|
children: e.id
|
|
784
823
|
})
|
|
785
824
|
},
|
|
786
825
|
{
|
|
787
|
-
label:
|
|
826
|
+
label: m("devportal.tier", "Tier"),
|
|
788
827
|
value: e.tier
|
|
789
828
|
},
|
|
790
829
|
{
|
|
791
|
-
label:
|
|
792
|
-
value: e.partnerTier ||
|
|
830
|
+
label: m("devportal.partnerTier", "Partner Tier"),
|
|
831
|
+
value: e.partnerTier || m("devportal.none", "None")
|
|
793
832
|
},
|
|
794
833
|
{
|
|
795
|
-
label:
|
|
834
|
+
label: m("devportal.created", "Created"),
|
|
796
835
|
value: new Date(e.createdAt).toLocaleDateString()
|
|
797
836
|
},
|
|
798
837
|
{
|
|
799
|
-
label:
|
|
838
|
+
label: m("devportal.platformFeeRate", "Platform Fee Rate"),
|
|
800
839
|
value: `${(e.platformFeeRate * 100).toFixed(0)}%`
|
|
801
840
|
}
|
|
802
841
|
] }),
|
|
803
|
-
/* @__PURE__ */
|
|
842
|
+
/* @__PURE__ */ L("div", {
|
|
804
843
|
className: "flex justify-end",
|
|
805
|
-
children: /* @__PURE__ */
|
|
844
|
+
children: /* @__PURE__ */ R("button", {
|
|
806
845
|
type: "button",
|
|
807
|
-
disabled: !
|
|
808
|
-
onClick: () => void
|
|
846
|
+
disabled: !p || je,
|
|
847
|
+
onClick: () => void Ie(),
|
|
809
848
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-50",
|
|
810
|
-
children: [
|
|
849
|
+
children: [je ? /* @__PURE__ */ L(A, {
|
|
811
850
|
size: 14,
|
|
812
851
|
className: "animate-spin"
|
|
813
|
-
}) : /* @__PURE__ */
|
|
852
|
+
}) : /* @__PURE__ */ L(le, { size: 14 }), m("devportal.saveChanges", "Save Changes")]
|
|
814
853
|
})
|
|
815
854
|
})
|
|
816
855
|
]
|
|
817
856
|
})
|
|
818
857
|
}),
|
|
819
|
-
/* @__PURE__ */
|
|
820
|
-
title:
|
|
821
|
-
children: /* @__PURE__ */
|
|
858
|
+
/* @__PURE__ */ L(u, {
|
|
859
|
+
title: m("devportal.legalInformation", "Legal Information"),
|
|
860
|
+
children: /* @__PURE__ */ R("div", {
|
|
822
861
|
className: "space-y-4",
|
|
823
862
|
children: [
|
|
824
|
-
/* @__PURE__ */
|
|
863
|
+
/* @__PURE__ */ R("div", {
|
|
825
864
|
className: "grid gap-4 sm:grid-cols-2",
|
|
826
865
|
children: [
|
|
827
|
-
/* @__PURE__ */
|
|
828
|
-
label:
|
|
829
|
-
value:
|
|
830
|
-
onChange: (e) =>
|
|
866
|
+
/* @__PURE__ */ L(_, {
|
|
867
|
+
label: m("devportal.legalEntityName", "Legal Entity Name"),
|
|
868
|
+
value: x.legalEntityName,
|
|
869
|
+
onChange: (e) => w((t) => ({
|
|
831
870
|
...t,
|
|
832
871
|
legalEntityName: e.target.value
|
|
833
872
|
})),
|
|
834
|
-
disabled: !
|
|
873
|
+
disabled: !p
|
|
835
874
|
}),
|
|
836
|
-
/* @__PURE__ */
|
|
837
|
-
label:
|
|
838
|
-
value:
|
|
839
|
-
onChange: (e) =>
|
|
875
|
+
/* @__PURE__ */ L(_, {
|
|
876
|
+
label: m("devportal.entityType", "Entity Type"),
|
|
877
|
+
value: x.legalEntityType,
|
|
878
|
+
onChange: (e) => w((t) => ({
|
|
840
879
|
...t,
|
|
841
880
|
legalEntityType: e.target.value
|
|
842
881
|
})),
|
|
843
|
-
disabled: !
|
|
882
|
+
disabled: !p
|
|
844
883
|
}),
|
|
845
|
-
/* @__PURE__ */
|
|
846
|
-
label:
|
|
847
|
-
value:
|
|
848
|
-
onChange: (e) =>
|
|
884
|
+
/* @__PURE__ */ L(_, {
|
|
885
|
+
label: m("devportal.taxId", "Tax ID"),
|
|
886
|
+
value: T.taxId,
|
|
887
|
+
onChange: (e) => E((t) => ({
|
|
849
888
|
...t,
|
|
850
889
|
taxId: e.target.value
|
|
851
890
|
})),
|
|
852
|
-
disabled: !
|
|
891
|
+
disabled: !p
|
|
853
892
|
}),
|
|
854
|
-
/* @__PURE__ */
|
|
855
|
-
label:
|
|
856
|
-
value:
|
|
857
|
-
onChange: (e) =>
|
|
893
|
+
/* @__PURE__ */ L(_, {
|
|
894
|
+
label: m("devportal.taxCountry", "Tax Country"),
|
|
895
|
+
value: T.taxCountry,
|
|
896
|
+
onChange: (e) => E((t) => ({
|
|
858
897
|
...t,
|
|
859
898
|
taxCountry: e.target.value.toUpperCase()
|
|
860
899
|
})),
|
|
861
|
-
disabled: !
|
|
900
|
+
disabled: !p
|
|
862
901
|
})
|
|
863
902
|
]
|
|
864
903
|
}),
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
-
label:
|
|
867
|
-
value: e.taxFormType ||
|
|
904
|
+
/* @__PURE__ */ L(g, { items: [{
|
|
905
|
+
label: m("devportal.taxForm", "Tax Form"),
|
|
906
|
+
value: e.taxFormType || m("devportal.notSubmitted", "Not submitted")
|
|
868
907
|
}, {
|
|
869
|
-
label:
|
|
870
|
-
value: e.taxFormType ? e.taxFormVerified ? /* @__PURE__ */
|
|
908
|
+
label: m("devportal.taxFormStatus", "Tax Form Status"),
|
|
909
|
+
value: e.taxFormType ? e.taxFormVerified ? /* @__PURE__ */ R("span", {
|
|
871
910
|
className: "text-status-success-text flex items-center gap-1",
|
|
872
911
|
children: [
|
|
873
|
-
/* @__PURE__ */
|
|
912
|
+
/* @__PURE__ */ L(D, { size: 14 }),
|
|
874
913
|
" ",
|
|
875
|
-
|
|
914
|
+
m("devportal.verified", "Verified")
|
|
876
915
|
]
|
|
877
|
-
}) :
|
|
916
|
+
}) : m("devportal.pendingVerification", "Pending verification") : m("devportal.notSubmitted", "Not submitted")
|
|
878
917
|
}] }),
|
|
879
|
-
/* @__PURE__ */
|
|
918
|
+
/* @__PURE__ */ R("div", {
|
|
880
919
|
className: "flex justify-end gap-2",
|
|
881
|
-
children: [/* @__PURE__ */
|
|
920
|
+
children: [/* @__PURE__ */ R("button", {
|
|
882
921
|
type: "button",
|
|
883
|
-
disabled: !
|
|
884
|
-
onClick: () => void
|
|
922
|
+
disabled: !p || Ne,
|
|
923
|
+
onClick: () => void Le(),
|
|
885
924
|
className: "inline-flex items-center gap-2 rounded-md border border-border-seam px-4 py-2 text-sm font-medium hover:bg-bg-sunken disabled:opacity-50",
|
|
886
|
-
children: [
|
|
925
|
+
children: [Ne ? /* @__PURE__ */ L(A, {
|
|
887
926
|
size: 14,
|
|
888
927
|
className: "animate-spin"
|
|
889
|
-
}) : null,
|
|
890
|
-
}), /* @__PURE__ */
|
|
928
|
+
}) : null, m("devportal.saveLegalInfo", "Save Legal Info")]
|
|
929
|
+
}), /* @__PURE__ */ R("button", {
|
|
891
930
|
type: "button",
|
|
892
|
-
disabled: !
|
|
893
|
-
onClick: () => void
|
|
931
|
+
disabled: !p || Fe,
|
|
932
|
+
onClick: () => void Re(),
|
|
894
933
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-50",
|
|
895
|
-
children: [
|
|
934
|
+
children: [Fe ? /* @__PURE__ */ L(A, {
|
|
896
935
|
size: 14,
|
|
897
936
|
className: "animate-spin"
|
|
898
|
-
}) : null,
|
|
937
|
+
}) : null, m("devportal.saveTaxInfo", "Save Tax Info")]
|
|
899
938
|
})]
|
|
900
939
|
})
|
|
901
940
|
]
|
|
902
941
|
})
|
|
903
942
|
}),
|
|
904
|
-
e.kind === "PHYSICAL" && /* @__PURE__ */
|
|
905
|
-
|
|
906
|
-
|
|
943
|
+
e.kind === "PHYSICAL" && /* @__PURE__ */ L(u, {
|
|
944
|
+
id: "fulfillment-section",
|
|
945
|
+
title: m("devportal.fulfillment", "Fulfillment"),
|
|
946
|
+
className: t("scroll-mt-6 rounded-lg transition-shadow duration-500", ee && "ring-2 ring-action-primary-bg ring-offset-4"),
|
|
947
|
+
children: /* @__PURE__ */ R("div", {
|
|
907
948
|
className: "space-y-3",
|
|
908
949
|
children: [
|
|
909
|
-
|
|
950
|
+
de && /* @__PURE__ */ L("div", {
|
|
910
951
|
className: "rounded-md border border-status-error-bg bg-status-error-bg-subtle px-4 py-3 text-sm text-status-error-text",
|
|
911
|
-
children:
|
|
952
|
+
children: de
|
|
912
953
|
}),
|
|
913
|
-
|
|
954
|
+
B && /* @__PURE__ */ L("div", {
|
|
914
955
|
className: "rounded-md border border-status-success-bg bg-status-success-bg-subtle px-4 py-3 text-sm text-status-success-text",
|
|
915
|
-
children:
|
|
956
|
+
children: B
|
|
916
957
|
}),
|
|
917
|
-
!
|
|
958
|
+
!r && n.length === 0 && /* @__PURE__ */ R("div", {
|
|
918
959
|
className: "rounded-md border border-border-seam bg-bg-sunken p-4",
|
|
919
|
-
children: [/* @__PURE__ */
|
|
960
|
+
children: [/* @__PURE__ */ L("p", {
|
|
920
961
|
className: "text-sm font-medium",
|
|
921
|
-
children:
|
|
922
|
-
}), /* @__PURE__ */
|
|
962
|
+
children: m("devportal.noPickupAddress", "No pickup address set up yet")
|
|
963
|
+
}), /* @__PURE__ */ L("p", {
|
|
923
964
|
className: "mt-1 text-sm text-text-secondary",
|
|
924
|
-
children:
|
|
965
|
+
children: m("devportal.noPickupAddressHint", "Buyers need to know where your physical orders actually ship from — a bare pincode isn't enough, two sellers can share one. Add your real pickup address and we'll register it with our shipping carrier for you, free of charge.")
|
|
925
966
|
})]
|
|
926
967
|
}),
|
|
927
|
-
|
|
968
|
+
n.length > 0 && /* @__PURE__ */ L("div", {
|
|
928
969
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
|
|
929
|
-
children:
|
|
930
|
-
let n =
|
|
931
|
-
return /* @__PURE__ */
|
|
970
|
+
children: n.map((e) => {
|
|
971
|
+
let n = oe.some((t) => t.carrier === e.carrier && t.postalCode === e.postalCode), r = ue === e.id;
|
|
972
|
+
return /* @__PURE__ */ R("div", {
|
|
932
973
|
className: t("rounded-md border p-4", e.isDefault ? "border-status-success-border bg-status-success-bg-subtle" : "border-border-seam bg-bg-sunken"),
|
|
933
974
|
children: [
|
|
934
|
-
/* @__PURE__ */
|
|
975
|
+
/* @__PURE__ */ R("div", {
|
|
935
976
|
className: "flex items-start justify-between gap-2",
|
|
936
|
-
children: [/* @__PURE__ */
|
|
977
|
+
children: [/* @__PURE__ */ L("p", {
|
|
937
978
|
className: "text-sm font-medium",
|
|
938
979
|
children: e.carrierLocationLabel
|
|
939
|
-
}), e.isDefault && /* @__PURE__ */
|
|
980
|
+
}), e.isDefault && /* @__PURE__ */ L("span", {
|
|
940
981
|
className: "rounded-full bg-status-success-bg px-2 py-0.5 text-xs font-medium text-white",
|
|
941
|
-
children:
|
|
982
|
+
children: m("devportal.active", "Active")
|
|
942
983
|
})]
|
|
943
984
|
}),
|
|
944
|
-
/* @__PURE__ */
|
|
985
|
+
/* @__PURE__ */ R("p", {
|
|
945
986
|
className: "mt-1 text-sm text-text-secondary",
|
|
946
987
|
children: [
|
|
947
988
|
e.address,
|
|
@@ -956,227 +997,230 @@ var q = {
|
|
|
956
997
|
e.country
|
|
957
998
|
]
|
|
958
999
|
}),
|
|
959
|
-
/* @__PURE__ */
|
|
1000
|
+
/* @__PURE__ */ L("p", {
|
|
960
1001
|
className: "mt-1 text-xs text-text-secondary",
|
|
961
|
-
children:
|
|
1002
|
+
children: re(e.carrier)
|
|
962
1003
|
}),
|
|
963
|
-
!n && /* @__PURE__ */
|
|
1004
|
+
!n && /* @__PURE__ */ L("p", {
|
|
964
1005
|
className: "mt-2 text-xs text-status-error-text",
|
|
965
|
-
children:
|
|
1006
|
+
children: m("devportal.pickupAddressNotRegisteredHint", "Not currently registered with the carrier — physical orders can't auto-ship from this address right now.")
|
|
966
1007
|
}),
|
|
967
|
-
|
|
1008
|
+
p && /* @__PURE__ */ R("div", {
|
|
968
1009
|
className: "mt-3 flex items-center gap-4",
|
|
969
|
-
children: [!e.isDefault && /* @__PURE__ */
|
|
1010
|
+
children: [!e.isDefault && /* @__PURE__ */ L("button", {
|
|
970
1011
|
type: "button",
|
|
971
|
-
disabled:
|
|
972
|
-
onClick: () => void
|
|
1012
|
+
disabled: r,
|
|
1013
|
+
onClick: () => void ze(e.id),
|
|
973
1014
|
className: "text-sm font-medium text-action-primary-text hover:underline disabled:opacity-50",
|
|
974
|
-
children:
|
|
975
|
-
}), /* @__PURE__ */
|
|
1015
|
+
children: m("devportal.setPickupAddressActiveCta", "Set as active")
|
|
1016
|
+
}), /* @__PURE__ */ R("button", {
|
|
976
1017
|
type: "button",
|
|
977
|
-
disabled:
|
|
978
|
-
onClick: () =>
|
|
1018
|
+
disabled: r,
|
|
1019
|
+
onClick: () => P(e.id),
|
|
979
1020
|
className: "flex items-center gap-1.5 text-sm text-status-error-text hover:underline disabled:opacity-50",
|
|
980
|
-
children: [/* @__PURE__ */
|
|
1021
|
+
children: [/* @__PURE__ */ L(N, { className: "h-3.5 w-3.5" }), m("devportal.removePickupAddressCta", "Remove")]
|
|
981
1022
|
})]
|
|
982
1023
|
})
|
|
983
1024
|
]
|
|
984
1025
|
}, e.id);
|
|
985
1026
|
})
|
|
986
1027
|
}),
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
1028
|
+
p && /* @__PURE__ */ L("div", {
|
|
1029
|
+
className: "flex justify-end",
|
|
1030
|
+
children: /* @__PURE__ */ R("button", {
|
|
1031
|
+
type: "button",
|
|
1032
|
+
onClick: () => O(!0),
|
|
1033
|
+
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
|
|
1034
|
+
children: [/* @__PURE__ */ L(j, { size: 14 }), m("devportal.addPickupAddressCta", "Add pickup address")]
|
|
1035
|
+
})
|
|
992
1036
|
}),
|
|
993
|
-
|
|
994
|
-
open:
|
|
995
|
-
onOpenChange:
|
|
1037
|
+
ce && /* @__PURE__ */ L(te, {
|
|
1038
|
+
open: ce,
|
|
1039
|
+
onOpenChange: O,
|
|
996
1040
|
organizationId: e.id,
|
|
997
1041
|
carrier: "shiprocket",
|
|
998
1042
|
onRegistered: () => {
|
|
999
|
-
|
|
1043
|
+
i(), se(), V(m("devportal.pickupAddressAdded", "Pickup address added"));
|
|
1000
1044
|
}
|
|
1001
1045
|
}),
|
|
1002
|
-
/* @__PURE__ */
|
|
1003
|
-
open:
|
|
1046
|
+
/* @__PURE__ */ L(b, {
|
|
1047
|
+
open: k !== null,
|
|
1004
1048
|
onOpenChange: (e) => {
|
|
1005
|
-
e ||
|
|
1049
|
+
e || P(null);
|
|
1006
1050
|
},
|
|
1007
1051
|
variant: "danger",
|
|
1008
|
-
loading:
|
|
1009
|
-
title:
|
|
1010
|
-
description:
|
|
1011
|
-
confirmLabel:
|
|
1012
|
-
cancelLabel:
|
|
1052
|
+
loading: ue === k,
|
|
1053
|
+
title: m("devportal.removePickupAddressConfirmTitle", "Remove this pickup address?"),
|
|
1054
|
+
description: m("devportal.removePickupAddressConfirmDesc", "We'll stop using it to quote and book shipments for this organization. Carriers like Shiprocket don't offer a way to delete an address from their own account once added, so it may still show up there, but it won't be used for your orders anymore."),
|
|
1055
|
+
confirmLabel: m("devportal.remove", "Remove"),
|
|
1056
|
+
cancelLabel: m("devportal.cancel", "Cancel"),
|
|
1013
1057
|
onConfirm: async () => {
|
|
1014
|
-
|
|
1058
|
+
k && await Be(k);
|
|
1015
1059
|
}
|
|
1016
1060
|
})
|
|
1017
1061
|
]
|
|
1018
1062
|
})
|
|
1019
1063
|
}),
|
|
1020
|
-
/* @__PURE__ */
|
|
1021
|
-
title:
|
|
1022
|
-
children: [/* @__PURE__ */
|
|
1023
|
-
label:
|
|
1024
|
-
value:
|
|
1064
|
+
/* @__PURE__ */ R(u, {
|
|
1065
|
+
title: m("devportal.verificationStatus", "Verification Status"),
|
|
1066
|
+
children: [/* @__PURE__ */ L(g, { items: [{
|
|
1067
|
+
label: m("devportal.verifiedLabel", "Verified"),
|
|
1068
|
+
value: Q.verificationStatus === "VERIFIED" ? /* @__PURE__ */ R("span", {
|
|
1025
1069
|
className: "text-status-success-text flex items-center gap-1",
|
|
1026
1070
|
children: [
|
|
1027
|
-
/* @__PURE__ */
|
|
1071
|
+
/* @__PURE__ */ L(D, { size: 14 }),
|
|
1028
1072
|
" ",
|
|
1029
|
-
|
|
1073
|
+
m("devportal.verifiedVia", "Verified via"),
|
|
1030
1074
|
" ",
|
|
1031
|
-
|
|
1075
|
+
Q.verificationMethod
|
|
1032
1076
|
]
|
|
1033
|
-
}) :
|
|
1077
|
+
}) : Q.verificationStatus === "PENDING" ? m("devportal.pendingVerification", "Pending verification") : Q.verificationStatus === "REJECTED" ? m("devportal.verificationRejected", "Rejected") : m("devportal.notVerified", "Not verified")
|
|
1034
1078
|
}, {
|
|
1035
|
-
label:
|
|
1036
|
-
value: e.isCertified ? /* @__PURE__ */
|
|
1079
|
+
label: m("devportal.certifiedLabel", "Certified"),
|
|
1080
|
+
value: e.isCertified ? /* @__PURE__ */ R("span", {
|
|
1037
1081
|
className: "text-accent-blue flex items-center gap-1",
|
|
1038
1082
|
children: [
|
|
1039
|
-
/* @__PURE__ */
|
|
1083
|
+
/* @__PURE__ */ L(M, { size: 14 }),
|
|
1040
1084
|
" ",
|
|
1041
|
-
|
|
1085
|
+
m("devportal.certifiedUntil", "Certified until"),
|
|
1042
1086
|
" ",
|
|
1043
1087
|
e.certificationExpiry ? new Date(e.certificationExpiry).toLocaleDateString() : "N/A"
|
|
1044
1088
|
]
|
|
1045
|
-
}) :
|
|
1046
|
-
}] }),
|
|
1089
|
+
}) : m("devportal.notCertified", "Not certified")
|
|
1090
|
+
}] }), Q.verificationStatus !== "VERIFIED" && /* @__PURE__ */ L("div", {
|
|
1047
1091
|
className: "mt-4 rounded-md border border-border-subtle p-4 space-y-3",
|
|
1048
|
-
children:
|
|
1092
|
+
children: ge ? /* @__PURE__ */ R("p", {
|
|
1049
1093
|
className: "text-sm text-status-success-text flex items-center gap-2",
|
|
1050
|
-
children: [/* @__PURE__ */
|
|
1051
|
-
}) : /* @__PURE__ */
|
|
1052
|
-
/* @__PURE__ */
|
|
1094
|
+
children: [/* @__PURE__ */ L(D, { size: 14 }), m("devportal.verificationRequested", "Verification request submitted. Our team will review and contact you.")]
|
|
1095
|
+
}) : /* @__PURE__ */ R(I, { children: [
|
|
1096
|
+
/* @__PURE__ */ L("p", {
|
|
1053
1097
|
className: "text-sm text-text-secondary",
|
|
1054
|
-
children:
|
|
1098
|
+
children: m("devportal.requestVerificationHint", "Get your organization verified to build trust with users. Choose a verification method:")
|
|
1055
1099
|
}),
|
|
1056
|
-
|
|
1100
|
+
Q.verificationStatus === "PENDING" && /* @__PURE__ */ R("div", {
|
|
1057
1101
|
className: "rounded-md border border-border-subtle bg-bg-sunken/40 p-3 text-sm text-text-secondary",
|
|
1058
1102
|
children: [
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1103
|
+
m("devportal.pendingVerification", "Pending verification"),
|
|
1104
|
+
Q.verificationMethod ? ` · ${Q.verificationMethod}` : "",
|
|
1105
|
+
Q.verificationRequestNotes ? ` · ${Q.verificationRequestNotes}` : ""
|
|
1062
1106
|
]
|
|
1063
1107
|
}),
|
|
1064
|
-
|
|
1108
|
+
Q.verificationStatus === "REJECTED" && Q.verificationRejectedReason && /* @__PURE__ */ L("div", {
|
|
1065
1109
|
className: "rounded-md border border-status-error-border bg-status-error-bg-subtle p-3 text-sm text-status-error-text",
|
|
1066
|
-
children:
|
|
1110
|
+
children: Q.verificationRejectedReason
|
|
1067
1111
|
}),
|
|
1068
|
-
|
|
1112
|
+
$.length > 0 && /* @__PURE__ */ R("div", {
|
|
1069
1113
|
className: "rounded-md border border-border-subtle bg-bg-sunken/40 p-3 text-sm text-text-secondary",
|
|
1070
|
-
children: [/* @__PURE__ */
|
|
1114
|
+
children: [/* @__PURE__ */ L("div", {
|
|
1071
1115
|
className: "font-medium text-text-primary",
|
|
1072
|
-
children:
|
|
1073
|
-
}), /* @__PURE__ */
|
|
1116
|
+
children: m("devportal.completeBeforeVerification", "Complete these details before submitting for review")
|
|
1117
|
+
}), /* @__PURE__ */ L("ul", {
|
|
1074
1118
|
className: "mt-2 list-disc pl-5 space-y-1",
|
|
1075
|
-
children:
|
|
1119
|
+
children: $.map((e) => /* @__PURE__ */ L("li", { children: e }, e))
|
|
1076
1120
|
})]
|
|
1077
1121
|
}),
|
|
1078
|
-
|
|
1079
|
-
/* @__PURE__ */
|
|
1122
|
+
Q.verificationStatus !== "PENDING" && /* @__PURE__ */ R(I, { children: [
|
|
1123
|
+
/* @__PURE__ */ L("div", {
|
|
1080
1124
|
className: "flex gap-2 flex-wrap",
|
|
1081
1125
|
children: [
|
|
1082
1126
|
"domain",
|
|
1083
1127
|
"document",
|
|
1084
1128
|
"manual"
|
|
1085
|
-
].map((e) => /* @__PURE__ */
|
|
1129
|
+
].map((e) => /* @__PURE__ */ L("button", {
|
|
1086
1130
|
type: "button",
|
|
1087
|
-
onClick: () =>
|
|
1088
|
-
className: `rounded-md border px-3 py-1 text-xs font-medium transition-colors ${
|
|
1089
|
-
children: e === "domain" ?
|
|
1131
|
+
onClick: () => he(e),
|
|
1132
|
+
className: `rounded-md border px-3 py-1 text-xs font-medium transition-colors ${Z === e ? "bg-action-primary-bg text-action-primary-text border-primary" : "border-border-subtle hover:bg-bg-sunken"}`,
|
|
1133
|
+
children: e === "domain" ? m("devportal.domainVerification", "Domain") : e === "document" ? m("devportal.documentVerification", "Document") : m("devportal.manualVerification", "Manual review")
|
|
1090
1134
|
}, e))
|
|
1091
1135
|
}),
|
|
1092
|
-
|
|
1093
|
-
label:
|
|
1094
|
-
value:
|
|
1095
|
-
onChange: (e) =>
|
|
1136
|
+
Z === "domain" ? /* @__PURE__ */ L(_, {
|
|
1137
|
+
label: m("devportal.domainVerification", "Domain"),
|
|
1138
|
+
value: Se,
|
|
1139
|
+
onChange: (e) => Ce(e.target.value),
|
|
1096
1140
|
placeholder: "example.com"
|
|
1097
|
-
}) :
|
|
1098
|
-
label:
|
|
1099
|
-
value:
|
|
1100
|
-
onChange: (e) =>
|
|
1141
|
+
}) : Z === "document" ? /* @__PURE__ */ L(_, {
|
|
1142
|
+
label: m("devportal.evidenceUrl", "Evidence URL"),
|
|
1143
|
+
value: be,
|
|
1144
|
+
onChange: (e) => xe(e.target.value),
|
|
1101
1145
|
placeholder: "https://..."
|
|
1102
1146
|
}) : null,
|
|
1103
|
-
/* @__PURE__ */
|
|
1104
|
-
label:
|
|
1105
|
-
value:
|
|
1106
|
-
onChange: (e) =>
|
|
1147
|
+
/* @__PURE__ */ L(v, {
|
|
1148
|
+
label: m("devportal.notes", "Notes"),
|
|
1149
|
+
value: ve,
|
|
1150
|
+
onChange: (e) => ye(e.target.value),
|
|
1107
1151
|
placeholder: "What should reviewers validate?"
|
|
1108
1152
|
}),
|
|
1109
|
-
/* @__PURE__ */
|
|
1153
|
+
/* @__PURE__ */ R("button", {
|
|
1110
1154
|
type: "button",
|
|
1111
|
-
disabled: !
|
|
1155
|
+
disabled: !ke,
|
|
1112
1156
|
onClick: () => void (async () => {
|
|
1113
|
-
let t =
|
|
1114
|
-
if (
|
|
1115
|
-
|
|
1157
|
+
let t = Se.trim(), n = be.trim(), r = ve.trim();
|
|
1158
|
+
if (Z === "domain" && !fe(t)) {
|
|
1159
|
+
X(m("devportal.verification.errors.domainRequired", "Enter a valid domain like burdenoff.com"));
|
|
1116
1160
|
return;
|
|
1117
1161
|
}
|
|
1118
|
-
if (
|
|
1119
|
-
|
|
1162
|
+
if (Z === "document" && !q(n)) {
|
|
1163
|
+
X(m("devportal.verification.errors.evidenceUrlRequired", "Enter a valid evidence URL starting with http:// or https://"));
|
|
1120
1164
|
return;
|
|
1121
1165
|
}
|
|
1122
|
-
if (
|
|
1123
|
-
|
|
1166
|
+
if (Z === "manual" && !r) {
|
|
1167
|
+
X(m("devportal.verification.errors.notesRequired", "Add notes so the reviewer knows what to verify"));
|
|
1124
1168
|
return;
|
|
1125
1169
|
}
|
|
1126
|
-
|
|
1170
|
+
X(null), Y(null), De(!0);
|
|
1127
1171
|
try {
|
|
1128
|
-
await
|
|
1172
|
+
await Ae({ variables: {
|
|
1129
1173
|
id: e.id,
|
|
1130
1174
|
input: {
|
|
1131
|
-
name:
|
|
1132
|
-
description:
|
|
1133
|
-
websiteUrl:
|
|
1134
|
-
contactEmail:
|
|
1135
|
-
supportEmail:
|
|
1136
|
-
logoUrl:
|
|
1137
|
-
bannerUrl:
|
|
1175
|
+
name: h.name.trim() || void 0,
|
|
1176
|
+
description: h.description.trim() || null,
|
|
1177
|
+
websiteUrl: h.websiteUrl.trim() || null,
|
|
1178
|
+
contactEmail: h.contactEmail.trim() || null,
|
|
1179
|
+
supportEmail: h.supportEmail.trim() || null,
|
|
1180
|
+
logoUrl: h.logoUrl.trim() || null,
|
|
1181
|
+
bannerUrl: h.bannerUrl.trim() || null
|
|
1138
1182
|
}
|
|
1139
|
-
} }), await
|
|
1183
|
+
} }), await Me({ variables: {
|
|
1140
1184
|
id: e.id,
|
|
1141
1185
|
input: {
|
|
1142
|
-
legalEntityName:
|
|
1143
|
-
legalEntityType:
|
|
1186
|
+
legalEntityName: x.legalEntityName.trim() || null,
|
|
1187
|
+
legalEntityType: x.legalEntityType.trim() || null
|
|
1144
1188
|
}
|
|
1145
|
-
} }), await
|
|
1189
|
+
} }), await Pe({ variables: {
|
|
1146
1190
|
id: e.id,
|
|
1147
1191
|
input: {
|
|
1148
|
-
taxId:
|
|
1149
|
-
taxCountry:
|
|
1192
|
+
taxId: T.taxId.trim() || null,
|
|
1193
|
+
taxCountry: T.taxCountry.trim() || null
|
|
1150
1194
|
}
|
|
1151
1195
|
} });
|
|
1152
|
-
let
|
|
1196
|
+
let i = await U({
|
|
1153
1197
|
gateway: "global",
|
|
1154
|
-
query:
|
|
1198
|
+
query: G,
|
|
1155
1199
|
variables: {
|
|
1156
1200
|
id: e.id,
|
|
1157
|
-
method:
|
|
1201
|
+
method: Z,
|
|
1158
1202
|
notes: r || null,
|
|
1159
|
-
evidenceUrl:
|
|
1160
|
-
domain:
|
|
1203
|
+
evidenceUrl: Z === "domain" ? null : n || null,
|
|
1204
|
+
domain: Z === "domain" && t || null
|
|
1161
1205
|
}
|
|
1162
1206
|
});
|
|
1163
|
-
if (
|
|
1164
|
-
|
|
1207
|
+
if (i.errors?.length) throw Error(i.errors[0]?.message || "Verification request failed");
|
|
1208
|
+
_e(!0), Y(m("devportal.verificationRequested", "Verification request submitted. Our team will review and contact you.")), Te((await U({
|
|
1165
1209
|
gateway: "global",
|
|
1166
|
-
query:
|
|
1210
|
+
query: W,
|
|
1167
1211
|
variables: { id: e.id }
|
|
1168
1212
|
})).data?.developerOrganization ?? null);
|
|
1169
1213
|
} catch (e) {
|
|
1170
|
-
|
|
1214
|
+
X(e instanceof Error ? e.message : m("devportal.verificationRequestFailed", "Verification request failed"));
|
|
1171
1215
|
} finally {
|
|
1172
|
-
|
|
1216
|
+
De(!1);
|
|
1173
1217
|
}
|
|
1174
1218
|
})(),
|
|
1175
1219
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-50",
|
|
1176
|
-
children: [
|
|
1220
|
+
children: [Ee ? /* @__PURE__ */ L(A, {
|
|
1177
1221
|
size: 14,
|
|
1178
1222
|
className: "animate-spin"
|
|
1179
|
-
}) : /* @__PURE__ */
|
|
1223
|
+
}) : /* @__PURE__ */ L(M, { size: 14 }), m("devportal.requestVerification", "Request Verification")]
|
|
1180
1224
|
})
|
|
1181
1225
|
] })
|
|
1182
1226
|
] })
|
|
@@ -1186,6 +1230,6 @@ var q = {
|
|
|
1186
1230
|
});
|
|
1187
1231
|
};
|
|
1188
1232
|
//#endregion
|
|
1189
|
-
export {
|
|
1233
|
+
export { Y as OrganizationDetailPage };
|
|
1190
1234
|
|
|
1191
1235
|
//# sourceMappingURL=OrganizationDetailPage.js.map
|