braid-ui 1.0.31 → 1.0.32
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/index.cjs +145 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -44
- package/dist/index.d.ts +46 -44
- package/dist/index.js +145 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4636,6 +4636,7 @@ var accountColumns = [
|
|
|
4636
4636
|
];
|
|
4637
4637
|
var BusinessDetailView = ({
|
|
4638
4638
|
business,
|
|
4639
|
+
businessProfile,
|
|
4639
4640
|
identityVerification,
|
|
4640
4641
|
businessUBOs,
|
|
4641
4642
|
businessDocuments,
|
|
@@ -4643,6 +4644,7 @@ var BusinessDetailView = ({
|
|
|
4643
4644
|
currentStatus,
|
|
4644
4645
|
isEditingProfile,
|
|
4645
4646
|
onStatusChange,
|
|
4647
|
+
onProfileDataChange,
|
|
4646
4648
|
onToggleProfileEdit,
|
|
4647
4649
|
onNavigateToAccounts,
|
|
4648
4650
|
onNavigateToCounterparty,
|
|
@@ -4692,9 +4694,11 @@ var BusinessDetailView = ({
|
|
|
4692
4694
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4693
4695
|
BusinessProfileCard,
|
|
4694
4696
|
{
|
|
4697
|
+
data: businessProfile,
|
|
4695
4698
|
identityVerification,
|
|
4696
4699
|
isEditing: isEditingProfile,
|
|
4697
|
-
onToggleEdit: onToggleProfileEdit
|
|
4700
|
+
onToggleEdit: onToggleProfileEdit,
|
|
4701
|
+
onDataChange: onProfileDataChange
|
|
4698
4702
|
}
|
|
4699
4703
|
),
|
|
4700
4704
|
/* @__PURE__ */ jsxRuntime.jsx(UBOCard, { ubos: businessUBOs }),
|
|
@@ -10243,6 +10247,136 @@ var mockBusinessDocuments = {
|
|
|
10243
10247
|
}
|
|
10244
10248
|
]
|
|
10245
10249
|
};
|
|
10250
|
+
|
|
10251
|
+
// src/lib/mock-data/business-profiles-data.ts
|
|
10252
|
+
var mockBusinessProfiles = {
|
|
10253
|
+
"8112488": {
|
|
10254
|
+
name: "RAPIDZ PAY INC",
|
|
10255
|
+
productId: 1,
|
|
10256
|
+
businessIdType: "EIN",
|
|
10257
|
+
idNumber: "12-3456789",
|
|
10258
|
+
dba: "Rapidz Pay",
|
|
10259
|
+
businessEntityType: "CORPORATION",
|
|
10260
|
+
incorporationState: "Delaware",
|
|
10261
|
+
formationDate: "2020-01-15",
|
|
10262
|
+
website: "https://rapidzpay.com",
|
|
10263
|
+
mcc: "6211",
|
|
10264
|
+
naics: "522320",
|
|
10265
|
+
mobilePhone: "+1 (555) 123-4567",
|
|
10266
|
+
achCompanyId: "1234567890",
|
|
10267
|
+
contactPersonFirstName: "John",
|
|
10268
|
+
contactPersonLastName: "Smith",
|
|
10269
|
+
contactPersonEmail: "john.smith@rapidzpay.com",
|
|
10270
|
+
contactPersonPhone: "+1 (555) 234-5678",
|
|
10271
|
+
address: {
|
|
10272
|
+
line1: "123 Business Ave",
|
|
10273
|
+
line2: "Suite 100",
|
|
10274
|
+
city: "New York",
|
|
10275
|
+
state: "NY",
|
|
10276
|
+
postalCode: "10001",
|
|
10277
|
+
countryCode: "US"
|
|
10278
|
+
}
|
|
10279
|
+
},
|
|
10280
|
+
"8111609": {
|
|
10281
|
+
name: "Fern Hyper Growth Llc",
|
|
10282
|
+
productId: 2,
|
|
10283
|
+
businessIdType: "EIN",
|
|
10284
|
+
idNumber: "98-7654321",
|
|
10285
|
+
businessEntityType: "LIMITED_LIABILITY_COMPANY",
|
|
10286
|
+
incorporationState: "California",
|
|
10287
|
+
formationDate: "2019-06-20",
|
|
10288
|
+
website: "https://fernhypergrowth.com",
|
|
10289
|
+
mcc: "5999",
|
|
10290
|
+
naics: "541519",
|
|
10291
|
+
mobilePhone: "+1 (555) 987-6543",
|
|
10292
|
+
contactPersonFirstName: "Jane",
|
|
10293
|
+
contactPersonLastName: "Doe",
|
|
10294
|
+
contactPersonEmail: "jane.doe@fernhypergrowth.com",
|
|
10295
|
+
contactPersonPhone: "+1 (555) 876-5432",
|
|
10296
|
+
address: {
|
|
10297
|
+
line1: "456 Tech Street",
|
|
10298
|
+
city: "San Francisco",
|
|
10299
|
+
state: "CA",
|
|
10300
|
+
postalCode: "94102",
|
|
10301
|
+
countryCode: "US"
|
|
10302
|
+
}
|
|
10303
|
+
},
|
|
10304
|
+
"8111026": {
|
|
10305
|
+
name: "ACEROSGALVANISADOS & PREPINTADOS",
|
|
10306
|
+
productId: 3,
|
|
10307
|
+
businessIdType: "EIN",
|
|
10308
|
+
idNumber: "45-6789012",
|
|
10309
|
+
businessEntityType: "PARTNERSHIP",
|
|
10310
|
+
incorporationState: "Texas",
|
|
10311
|
+
formationDate: "2018-03-10",
|
|
10312
|
+
website: "https://acerosgalvanisados.com",
|
|
10313
|
+
mcc: "5051",
|
|
10314
|
+
naics: "423510",
|
|
10315
|
+
mobilePhone: "+1 (555) 456-7890",
|
|
10316
|
+
contactPersonFirstName: "Carlos",
|
|
10317
|
+
contactPersonLastName: "Rodriguez",
|
|
10318
|
+
contactPersonEmail: "carlos@acerosgalvanisados.com",
|
|
10319
|
+
contactPersonPhone: "+1 (555) 567-8901",
|
|
10320
|
+
address: {
|
|
10321
|
+
line1: "789 Industrial Blvd",
|
|
10322
|
+
city: "Houston",
|
|
10323
|
+
state: "TX",
|
|
10324
|
+
postalCode: "77001",
|
|
10325
|
+
countryCode: "US"
|
|
10326
|
+
}
|
|
10327
|
+
},
|
|
10328
|
+
"8110892": {
|
|
10329
|
+
name: "Tech Solutions Corp",
|
|
10330
|
+
productId: 4,
|
|
10331
|
+
businessIdType: "EIN",
|
|
10332
|
+
idNumber: "23-4567890",
|
|
10333
|
+
businessEntityType: "CORPORATION",
|
|
10334
|
+
incorporationState: "Washington",
|
|
10335
|
+
formationDate: "2021-08-15",
|
|
10336
|
+
website: "https://techsolutions.com",
|
|
10337
|
+
mcc: "7372",
|
|
10338
|
+
naics: "541511",
|
|
10339
|
+
mobilePhone: "+1 (555) 321-0987",
|
|
10340
|
+
achCompanyId: "9876543210",
|
|
10341
|
+
contactPersonFirstName: "Sarah",
|
|
10342
|
+
contactPersonLastName: "Johnson",
|
|
10343
|
+
contactPersonEmail: "sarah.johnson@techsolutions.com",
|
|
10344
|
+
contactPersonPhone: "+1 (555) 432-1098",
|
|
10345
|
+
address: {
|
|
10346
|
+
line1: "321 Tech Park",
|
|
10347
|
+
line2: "Building B",
|
|
10348
|
+
city: "Seattle",
|
|
10349
|
+
state: "WA",
|
|
10350
|
+
postalCode: "98101",
|
|
10351
|
+
countryCode: "US"
|
|
10352
|
+
}
|
|
10353
|
+
},
|
|
10354
|
+
"8110654": {
|
|
10355
|
+
name: "Global Trade Partners LLC",
|
|
10356
|
+
productId: 5,
|
|
10357
|
+
businessIdType: "EIN",
|
|
10358
|
+
idNumber: "67-8901234",
|
|
10359
|
+
dba: "GTP",
|
|
10360
|
+
businessEntityType: "LIMITED_LIABILITY_COMPANY",
|
|
10361
|
+
incorporationState: "Florida",
|
|
10362
|
+
formationDate: "2017-11-01",
|
|
10363
|
+
website: "https://globaltradepartners.com",
|
|
10364
|
+
mcc: "5732",
|
|
10365
|
+
naics: "443142",
|
|
10366
|
+
mobilePhone: "+1 (555) 654-3210",
|
|
10367
|
+
contactPersonFirstName: "Michael",
|
|
10368
|
+
contactPersonLastName: "Chen",
|
|
10369
|
+
contactPersonEmail: "michael.chen@gtp.com",
|
|
10370
|
+
contactPersonPhone: "+1 (555) 765-4321",
|
|
10371
|
+
address: {
|
|
10372
|
+
line1: "555 Trade Center",
|
|
10373
|
+
city: "Miami",
|
|
10374
|
+
state: "FL",
|
|
10375
|
+
postalCode: "33101",
|
|
10376
|
+
countryCode: "US"
|
|
10377
|
+
}
|
|
10378
|
+
}
|
|
10379
|
+
};
|
|
10246
10380
|
var BusinessDetail = () => {
|
|
10247
10381
|
const { id } = reactRouterDom.useParams();
|
|
10248
10382
|
const navigate = reactRouterDom.useNavigate();
|
|
@@ -10251,14 +10385,22 @@ var BusinessDetail = () => {
|
|
|
10251
10385
|
const businessUBOs = id ? mockBusinessUBOs[id] || [] : [];
|
|
10252
10386
|
const businessDocuments = id ? mockBusinessDocuments[id] || [] : [];
|
|
10253
10387
|
const businessAccounts = id ? mockBusinessAccounts[id] || [] : [];
|
|
10388
|
+
const initialProfile = id ? mockBusinessProfiles[id] : void 0;
|
|
10254
10389
|
const [currentStatus, setCurrentStatus] = React15.useState(business?.status || "active");
|
|
10255
10390
|
const [isEditingProfile, setIsEditingProfile] = React15.useState(false);
|
|
10391
|
+
const [businessProfile, setBusinessProfile] = React15.useState(
|
|
10392
|
+
initialProfile
|
|
10393
|
+
);
|
|
10256
10394
|
const handleStatusChange = (newStatus) => {
|
|
10257
10395
|
setCurrentStatus(newStatus);
|
|
10258
10396
|
};
|
|
10259
10397
|
const handleToggleProfileEdit = () => {
|
|
10260
10398
|
setIsEditingProfile(!isEditingProfile);
|
|
10261
10399
|
};
|
|
10400
|
+
const handleProfileDataChange = (updatedProfile) => {
|
|
10401
|
+
setBusinessProfile(updatedProfile);
|
|
10402
|
+
console.log("Profile updated:", updatedProfile);
|
|
10403
|
+
};
|
|
10262
10404
|
const handleNavigateToAccounts = () => {
|
|
10263
10405
|
navigate(`/accounts?customerId=${id}&customerType=business`);
|
|
10264
10406
|
};
|
|
@@ -10278,6 +10420,7 @@ var BusinessDetail = () => {
|
|
|
10278
10420
|
BusinessDetailView,
|
|
10279
10421
|
{
|
|
10280
10422
|
business,
|
|
10423
|
+
businessProfile,
|
|
10281
10424
|
identityVerification,
|
|
10282
10425
|
businessUBOs,
|
|
10283
10426
|
businessDocuments,
|
|
@@ -10285,6 +10428,7 @@ var BusinessDetail = () => {
|
|
|
10285
10428
|
currentStatus,
|
|
10286
10429
|
isEditingProfile,
|
|
10287
10430
|
onStatusChange: handleStatusChange,
|
|
10431
|
+
onProfileDataChange: handleProfileDataChange,
|
|
10288
10432
|
onToggleProfileEdit: handleToggleProfileEdit,
|
|
10289
10433
|
onNavigateToAccounts: handleNavigateToAccounts,
|
|
10290
10434
|
onNavigateToCounterparty: handleNavigateToCounterparty,
|