@thecb/components 7.2.1 → 7.3.2-beta.0
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.js +56 -314
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +57 -314
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.js +7 -2
- package/src/components/molecules/.DS_Store +0 -0
- package/src/components/molecules/index.js +0 -1
- package/src/components/molecules/radio-group/RadioGroup.js +3 -0
- package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.stories.js +0 -39
- package/src/components/molecules/internal-user-info-form/InternalUserInfoForm.js +0 -266
- package/src/components/molecules/internal-user-info-form/InternalUserInfoForm.state.js +0 -26
- package/src/components/molecules/internal-user-info-form/index.js +0 -11
package/dist/index.cjs.js
CHANGED
|
@@ -24661,7 +24661,9 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref) {
|
|
|
24661
24661
|
groupName = _ref.groupName,
|
|
24662
24662
|
setValue = _ref.setValue,
|
|
24663
24663
|
ariaInvalid = _ref.ariaInvalid,
|
|
24664
|
-
index = _ref.index
|
|
24664
|
+
index = _ref.index,
|
|
24665
|
+
_ref$handleChange = _ref.handleChange,
|
|
24666
|
+
handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange;
|
|
24665
24667
|
return /*#__PURE__*/React__default.createElement(InputAndLabelContainer, {
|
|
24666
24668
|
align: "center",
|
|
24667
24669
|
childGap: "0.5rem"
|
|
@@ -24675,7 +24677,8 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref) {
|
|
|
24675
24677
|
id: id,
|
|
24676
24678
|
value: value,
|
|
24677
24679
|
onChange: function onChange(e) {
|
|
24678
|
-
|
|
24680
|
+
setValue(e.target.value);
|
|
24681
|
+
handleChange(e);
|
|
24679
24682
|
},
|
|
24680
24683
|
defaultChecked: index === 0
|
|
24681
24684
|
}), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
@@ -40333,269 +40336,6 @@ var PROPERTIES_COMMERCIAL_AUTO_ICON = "PROPERTIES_COMMERCIAL_AUTO";
|
|
|
40333
40336
|
var MISC_BILL_ICON = "MISC_SINGLE_BILL";
|
|
40334
40337
|
var iconsMap = (_iconsMap = {}, _defineProperty(_iconsMap, ACCOUNTS_GENERIC_ICON, AccountGenericIcon), _defineProperty(_iconsMap, ACCOUNTS_CONSTRUCTION_ICON, AccountConstructionIcon), _defineProperty(_iconsMap, ACCOUNTS_HEALTH_ICON, AccountMedicalIcon), _defineProperty(_iconsMap, ACCOUNTS_DENTAL_ICON, AccountDentalIcon), _defineProperty(_iconsMap, ACCOUNTS_UTILITY_ELECTRIC_ICON, AccountElectricIcon), _defineProperty(_iconsMap, ACCOUNTS_UTILITY_GARBAGE_ICON, AccountGarbageIcon), _defineProperty(_iconsMap, ACCOUNTS_UTILITY_GAS_ICON, AccountGasIcon), _defineProperty(_iconsMap, ACCOUNTS_UTILITY_WATER_ICON, AccountWaterIcon), _defineProperty(_iconsMap, PROPERTIES_PERSONAL_ICON, PropertyPersonalIcon), _defineProperty(_iconsMap, PROPERTIES_GARAGE_ICON, PropertyGarageIcon), _defineProperty(_iconsMap, PROPERTIES_BUSINESS_ICON, PropertyBusinessIcon), _defineProperty(_iconsMap, PROPERTIES_STOREFRONT_ICON, PropertyStorefrontIcon), _defineProperty(_iconsMap, PROPERTIES_APARTMENT_ICON, PropertyApartmentIcon), _defineProperty(_iconsMap, PROPERTIES_LAND_ICON, PropertyLandIcon), _defineProperty(_iconsMap, PROPERTIES_CAR_ICON, PropertyCarIcon), _defineProperty(_iconsMap, PROPERTIES_MOTORCYCLE_ICON, PropertyMotorcycleIcon), _defineProperty(_iconsMap, PROPERTIES_COMMERCIAL_AUTO_ICON, PropertyCommercialVehicleIcon), _defineProperty(_iconsMap, MISC_BILL_ICON, AccountBillIcon), _iconsMap);
|
|
40335
40338
|
|
|
40336
|
-
var _roleDescriptions;
|
|
40337
|
-
var RESEARCHER = "RESEARCHER";
|
|
40338
|
-
var AGENCY_ADMIN = "AGENCY_ADMIN";
|
|
40339
|
-
var CLIENT_ADMIN = "CLIENT_ADMIN";
|
|
40340
|
-
var SUPERVISOR = "SUPERVISOR";
|
|
40341
|
-
var CB_ADMIN = "CITYBASE_ADMIN";
|
|
40342
|
-
var CREATE_CLIENT_ADMIN = "CREATE_CLIENT_ADMIN";
|
|
40343
|
-
var PROFILE = "PROFILE";
|
|
40344
|
-
var ADD = "ADD";
|
|
40345
|
-
var EDIT = "EDIT";
|
|
40346
|
-
var roleDescriptions = (_roleDescriptions = {}, _defineProperty(_roleDescriptions, RESEARCHER, "Researcher"), _defineProperty(_roleDescriptions, AGENCY_ADMIN, "Agency admin"), _defineProperty(_roleDescriptions, CLIENT_ADMIN, "Client admin"), _defineProperty(_roleDescriptions, SUPERVISOR, "Supervisor"), _defineProperty(_roleDescriptions, CB_ADMIN, "Citybase admin"), _roleDescriptions);
|
|
40347
|
-
|
|
40348
|
-
var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
40349
|
-
var _ref$variant = _ref.variant,
|
|
40350
|
-
variant = _ref$variant === void 0 ? "default" : _ref$variant,
|
|
40351
|
-
fields = _ref.fields,
|
|
40352
|
-
actions = _ref.actions,
|
|
40353
|
-
clearOnDismount = _ref.clearOnDismount,
|
|
40354
|
-
showErrors = _ref.showErrors,
|
|
40355
|
-
_ref$handleSubmit = _ref.handleSubmit,
|
|
40356
|
-
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40357
|
-
closeForm = _ref.closeForm,
|
|
40358
|
-
allAgencyOptions = _ref.allAgencyOptions,
|
|
40359
|
-
selectedAgencies = _ref.selectedAgencies,
|
|
40360
|
-
allSelected = _ref.allSelected,
|
|
40361
|
-
_ref$toggleSelectAllA = _ref.toggleSelectAllAgencies,
|
|
40362
|
-
toggleSelectAllAgencies = _ref$toggleSelectAllA === void 0 ? noop : _ref$toggleSelectAllA,
|
|
40363
|
-
selectAgency = _ref.selectAgency,
|
|
40364
|
-
roleOptions = _ref.roleOptions,
|
|
40365
|
-
clientOptions = _ref.clientOptions,
|
|
40366
|
-
namesDisabled = _ref.namesDisabled,
|
|
40367
|
-
emailDisabled = _ref.emailDisabled,
|
|
40368
|
-
roleDisabled = _ref.roleDisabled,
|
|
40369
|
-
selectionDisabled = _ref.selectionDisabled,
|
|
40370
|
-
formType = _ref.formType,
|
|
40371
|
-
openChangePasswordForm = _ref.openChangePasswordForm,
|
|
40372
|
-
firstName = _ref.firstName,
|
|
40373
|
-
lastName = _ref.lastName;
|
|
40374
|
-
React.useEffect(function () {
|
|
40375
|
-
if (formType === CREATE_CLIENT_ADMIN) {
|
|
40376
|
-
actions.fields.client.addValidator(required());
|
|
40377
|
-
}
|
|
40378
|
-
|
|
40379
|
-
if (formType !== PROFILE) {
|
|
40380
|
-
actions.fields.email.addValidator(required());
|
|
40381
|
-
actions.fields.role.addValidator(required());
|
|
40382
|
-
}
|
|
40383
|
-
}, []);
|
|
40384
|
-
|
|
40385
|
-
if (clearOnDismount) {
|
|
40386
|
-
React.useEffect(function () {
|
|
40387
|
-
return function () {
|
|
40388
|
-
return actions.form.clear();
|
|
40389
|
-
};
|
|
40390
|
-
}, []);
|
|
40391
|
-
}
|
|
40392
|
-
|
|
40393
|
-
var clientErrorMessages = _defineProperty({}, required.error, "Client is required");
|
|
40394
|
-
|
|
40395
|
-
var firstNameErrorMessages = _defineProperty({}, required.error, "First name is required");
|
|
40396
|
-
|
|
40397
|
-
var lastNameErrorMessages = _defineProperty({}, required.error, "Last name is required");
|
|
40398
|
-
|
|
40399
|
-
var emailErrorMessages = _defineProperty({}, isProbablyEmail.error, "Invalid email address");
|
|
40400
|
-
|
|
40401
|
-
var roleErrorMessages = _defineProperty({}, required.error, "Role is required");
|
|
40402
|
-
|
|
40403
|
-
return /*#__PURE__*/React__default.createElement(FormContainer$1, {
|
|
40404
|
-
variant: variant,
|
|
40405
|
-
role: "form",
|
|
40406
|
-
"aria-label": "user-info-form",
|
|
40407
|
-
extraStyles: "padding: 0;"
|
|
40408
|
-
}, formType === PROFILE && /*#__PURE__*/React__default.createElement(Box, {
|
|
40409
|
-
padding: "1.5rem"
|
|
40410
|
-
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
40411
|
-
justify: "flex-start",
|
|
40412
|
-
align: "center"
|
|
40413
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40414
|
-
padding: "1.25rem",
|
|
40415
|
-
borderRadius: "50%",
|
|
40416
|
-
background: "#CACED8"
|
|
40417
|
-
}, /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
40418
|
-
variant: "h4",
|
|
40419
|
-
weight: "700"
|
|
40420
|
-
}, firstName.charAt(0).toUpperCase(), lastName.charAt(0).toUpperCase())), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
40421
|
-
variant: "p",
|
|
40422
|
-
weight: "700",
|
|
40423
|
-
extraStyles: "padding-left: 1rem;"
|
|
40424
|
-
}, firstName, " ", lastName))), formType === CREATE_CLIENT_ADMIN && /*#__PURE__*/React__default.createElement(Box, {
|
|
40425
|
-
padding: "1.5rem 1.5rem 0.5rem",
|
|
40426
|
-
borderColor: GHOST_GREY,
|
|
40427
|
-
borderSize: "1px",
|
|
40428
|
-
borderWidthOverride: "0 0 1px 0"
|
|
40429
|
-
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
40430
|
-
variant: "h6",
|
|
40431
|
-
weight: "700",
|
|
40432
|
-
margin: "0 0 1rem"
|
|
40433
|
-
}, "Select Client"), /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
40434
|
-
labelTextWhenNoError: "Client",
|
|
40435
|
-
errorMessages: clientErrorMessages,
|
|
40436
|
-
options: clientOptions.map(function (client) {
|
|
40437
|
-
return {
|
|
40438
|
-
text: client,
|
|
40439
|
-
value: client,
|
|
40440
|
-
id: client
|
|
40441
|
-
};
|
|
40442
|
-
}),
|
|
40443
|
-
field: fields.client,
|
|
40444
|
-
fieldActions: actions.fields.client,
|
|
40445
|
-
showErrors: showErrors,
|
|
40446
|
-
onKeyDown: function onKeyDown(e) {
|
|
40447
|
-
return e.key === "Enter" && handleSubmit(e);
|
|
40448
|
-
}
|
|
40449
|
-
}))), /*#__PURE__*/React__default.createElement(Box, {
|
|
40450
|
-
padding: formType === PROFILE ? "1.5rem 1.5rem 0" : "1.5rem 1.5rem 0.5rem",
|
|
40451
|
-
borderColor: GHOST_GREY,
|
|
40452
|
-
borderSize: "1px",
|
|
40453
|
-
borderWidthOverride: formType === PROFILE ? "1px 0 0" : "0 0 1px 0"
|
|
40454
|
-
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
40455
|
-
variant: "h6",
|
|
40456
|
-
weight: "700",
|
|
40457
|
-
margin: "0 0 1rem"
|
|
40458
|
-
}, "Personal Information"), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40459
|
-
labelTextWhenNoError: "First Name",
|
|
40460
|
-
errorMessages: firstNameErrorMessages,
|
|
40461
|
-
field: fields.firstName,
|
|
40462
|
-
fieldActions: actions.fields.firstName,
|
|
40463
|
-
showErrors: showErrors,
|
|
40464
|
-
onKeyDown: function onKeyDown(e) {
|
|
40465
|
-
return e.key === "Enter" && handleSubmit(e);
|
|
40466
|
-
},
|
|
40467
|
-
disabled: namesDisabled,
|
|
40468
|
-
autocomplete: "given-name"
|
|
40469
|
-
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40470
|
-
labelTextWhenNoError: "Last Name",
|
|
40471
|
-
errorMessages: lastNameErrorMessages,
|
|
40472
|
-
field: fields.lastName,
|
|
40473
|
-
fieldActions: actions.fields.lastName,
|
|
40474
|
-
showErrors: showErrors,
|
|
40475
|
-
onKeyDown: function onKeyDown(e) {
|
|
40476
|
-
return e.key === "Enter" && handleSubmit(e);
|
|
40477
|
-
},
|
|
40478
|
-
disabled: namesDisabled,
|
|
40479
|
-
autocomplete: "family-name"
|
|
40480
|
-
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40481
|
-
labelTextWhenNoError: "Email",
|
|
40482
|
-
errorMessages: emailErrorMessages,
|
|
40483
|
-
field: fields.email,
|
|
40484
|
-
fieldActions: actions.fields.email,
|
|
40485
|
-
showErrors: showErrors,
|
|
40486
|
-
onKeyDown: function onKeyDown(e) {
|
|
40487
|
-
return e.key === "Enter" && handleSubmit(e);
|
|
40488
|
-
},
|
|
40489
|
-
disabled: emailDisabled,
|
|
40490
|
-
autocomplete: "email"
|
|
40491
|
-
}), formType === PROFILE && /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
40492
|
-
labelTextWhenNoError: "Password",
|
|
40493
|
-
errorMessages: {},
|
|
40494
|
-
field: {
|
|
40495
|
-
rawValue: "•••••••••••••"
|
|
40496
|
-
},
|
|
40497
|
-
disabled: true,
|
|
40498
|
-
decorator: /*#__PURE__*/React__default.createElement(Text$1, {
|
|
40499
|
-
variant: "pS",
|
|
40500
|
-
color: "#15749D",
|
|
40501
|
-
onClick: openChangePasswordForm,
|
|
40502
|
-
extraStyles: "cursor: pointer;"
|
|
40503
|
-
}, "Change Password")
|
|
40504
|
-
}))), /*#__PURE__*/React__default.createElement(Box, {
|
|
40505
|
-
padding: "1.5rem"
|
|
40506
|
-
}, formType !== PROFILE && /*#__PURE__*/React__default.createElement(Box, {
|
|
40507
|
-
padding: "0 0 0.5rem"
|
|
40508
|
-
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
40509
|
-
variant: "h6",
|
|
40510
|
-
weight: "700",
|
|
40511
|
-
margin: "0 0 1rem"
|
|
40512
|
-
}, "User Settings"), /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
40513
|
-
labelTextWhenNoError: "User Role",
|
|
40514
|
-
errorMessages: roleErrorMessages,
|
|
40515
|
-
options: roleOptions.map(function (role) {
|
|
40516
|
-
return {
|
|
40517
|
-
text: roleDescriptions[role],
|
|
40518
|
-
value: role,
|
|
40519
|
-
id: role
|
|
40520
|
-
};
|
|
40521
|
-
}),
|
|
40522
|
-
field: fields.role,
|
|
40523
|
-
fieldActions: actions.fields.role,
|
|
40524
|
-
showErrors: showErrors,
|
|
40525
|
-
onKeyDown: function onKeyDown(e) {
|
|
40526
|
-
return e.key === "Enter" && handleSubmit(e);
|
|
40527
|
-
},
|
|
40528
|
-
disabled: roleDisabled
|
|
40529
|
-
}))), (formType === ADD || formType === EDIT) && /*#__PURE__*/React__default.createElement(Box, {
|
|
40530
|
-
padding: "0.5rem 0 1.5rem"
|
|
40531
|
-
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
40532
|
-
variant: "p"
|
|
40533
|
-
}, "Select which agencies the user can view"), /*#__PURE__*/React__default.createElement(SearchableSelect$1, {
|
|
40534
|
-
actions: actions,
|
|
40535
|
-
fields: fields,
|
|
40536
|
-
items: allAgencyOptions,
|
|
40537
|
-
selectedItems: selectedAgencies,
|
|
40538
|
-
allSelected: allSelected,
|
|
40539
|
-
toggleSelectAllItems: toggleSelectAllAgencies,
|
|
40540
|
-
selectItem: selectAgency,
|
|
40541
|
-
disabled: selectionDisabled
|
|
40542
|
-
}))), /*#__PURE__*/React__default.createElement(Box, {
|
|
40543
|
-
padding: "0"
|
|
40544
|
-
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
40545
|
-
childGap: "1rem",
|
|
40546
|
-
direction: "row",
|
|
40547
|
-
justify: "flex-end"
|
|
40548
|
-
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
40549
|
-
text: "Cancel",
|
|
40550
|
-
action: function action() {
|
|
40551
|
-
if (formType !== CREATE_CLIENT_ADMIN) {
|
|
40552
|
-
toggleSelectAllAgencies(false);
|
|
40553
|
-
}
|
|
40554
|
-
|
|
40555
|
-
closeForm();
|
|
40556
|
-
},
|
|
40557
|
-
variant: "secondary",
|
|
40558
|
-
dataQa: "Cancel",
|
|
40559
|
-
extraStyles: "margin: 0rem; padding: 0.75rem 1.5rem; border-radius: 4px;"
|
|
40560
|
-
}), /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
40561
|
-
text: "Save",
|
|
40562
|
-
action: handleSubmit,
|
|
40563
|
-
variant: "primary",
|
|
40564
|
-
dataQa: "Save",
|
|
40565
|
-
extraStyles: "margin: 0rem; padding: 0.75rem 1.5rem; border-radius: 4px;"
|
|
40566
|
-
})))));
|
|
40567
|
-
};
|
|
40568
|
-
|
|
40569
|
-
var formConfig$5 = {
|
|
40570
|
-
client: {
|
|
40571
|
-
validators: []
|
|
40572
|
-
},
|
|
40573
|
-
firstName: {
|
|
40574
|
-
validators: [required()]
|
|
40575
|
-
},
|
|
40576
|
-
lastName: {
|
|
40577
|
-
validators: [required()]
|
|
40578
|
-
},
|
|
40579
|
-
email: {
|
|
40580
|
-
validators: [isProbablyEmail()]
|
|
40581
|
-
},
|
|
40582
|
-
role: {
|
|
40583
|
-
validators: []
|
|
40584
|
-
},
|
|
40585
|
-
searchTerm: {
|
|
40586
|
-
validators: []
|
|
40587
|
-
}
|
|
40588
|
-
};
|
|
40589
|
-
|
|
40590
|
-
var _createFormState$5 = createFormState(formConfig$5),
|
|
40591
|
-
reducer$5 = _createFormState$5.reducer,
|
|
40592
|
-
mapStateToProps$6 = _createFormState$5.mapStateToProps,
|
|
40593
|
-
mapDispatchToProps$5 = _createFormState$5.mapDispatchToProps;
|
|
40594
|
-
|
|
40595
|
-
InternalUserInfoForm.reducer = reducer$5;
|
|
40596
|
-
InternalUserInfoForm.mapStateToProps = mapStateToProps$6;
|
|
40597
|
-
InternalUserInfoForm.mapDispatchToProps = mapDispatchToProps$5;
|
|
40598
|
-
|
|
40599
40339
|
var LoginForm = function LoginForm(_ref) {
|
|
40600
40340
|
var _emailErrorMessages;
|
|
40601
40341
|
|
|
@@ -40647,7 +40387,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
40647
40387
|
}));
|
|
40648
40388
|
};
|
|
40649
40389
|
|
|
40650
|
-
var formConfig$
|
|
40390
|
+
var formConfig$5 = {
|
|
40651
40391
|
email: {
|
|
40652
40392
|
validators: [required(), isProbablyEmail()]
|
|
40653
40393
|
},
|
|
@@ -40656,14 +40396,14 @@ var formConfig$6 = {
|
|
|
40656
40396
|
}
|
|
40657
40397
|
};
|
|
40658
40398
|
|
|
40659
|
-
var _createFormState$
|
|
40660
|
-
reducer$
|
|
40661
|
-
mapStateToProps$
|
|
40662
|
-
mapDispatchToProps$
|
|
40399
|
+
var _createFormState$5 = createFormState(formConfig$5),
|
|
40400
|
+
reducer$5 = _createFormState$5.reducer,
|
|
40401
|
+
mapStateToProps$6 = _createFormState$5.mapStateToProps,
|
|
40402
|
+
mapDispatchToProps$5 = _createFormState$5.mapDispatchToProps;
|
|
40663
40403
|
|
|
40664
|
-
LoginForm.reducer = reducer$
|
|
40665
|
-
LoginForm.mapStateToProps = mapStateToProps$
|
|
40666
|
-
LoginForm.mapDispatchToProps = mapDispatchToProps$
|
|
40404
|
+
LoginForm.reducer = reducer$5;
|
|
40405
|
+
LoginForm.mapStateToProps = mapStateToProps$6;
|
|
40406
|
+
LoginForm.mapDispatchToProps = mapDispatchToProps$5;
|
|
40667
40407
|
|
|
40668
40408
|
/** @license React v16.13.1
|
|
40669
40409
|
* react-is.production.min.js
|
|
@@ -45925,7 +45665,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
45925
45665
|
})));
|
|
45926
45666
|
};
|
|
45927
45667
|
|
|
45928
|
-
var formConfig$
|
|
45668
|
+
var formConfig$6 = {
|
|
45929
45669
|
name: {
|
|
45930
45670
|
validators: [required()]
|
|
45931
45671
|
},
|
|
@@ -45951,14 +45691,14 @@ var formConfig$7 = {
|
|
|
45951
45691
|
}
|
|
45952
45692
|
};
|
|
45953
45693
|
|
|
45954
|
-
var _createFormState$
|
|
45955
|
-
reducer$
|
|
45956
|
-
mapStateToProps$
|
|
45957
|
-
mapDispatchToProps$
|
|
45694
|
+
var _createFormState$6 = createFormState(formConfig$6),
|
|
45695
|
+
reducer$6 = _createFormState$6.reducer,
|
|
45696
|
+
mapStateToProps$7 = _createFormState$6.mapStateToProps,
|
|
45697
|
+
mapDispatchToProps$6 = _createFormState$6.mapDispatchToProps;
|
|
45958
45698
|
|
|
45959
|
-
PaymentFormACH.reducer = reducer$
|
|
45960
|
-
PaymentFormACH.mapStateToProps = mapStateToProps$
|
|
45961
|
-
PaymentFormACH.mapDispatchToProps = mapDispatchToProps$
|
|
45699
|
+
PaymentFormACH.reducer = reducer$6;
|
|
45700
|
+
PaymentFormACH.mapStateToProps = mapStateToProps$7;
|
|
45701
|
+
PaymentFormACH.mapDispatchToProps = mapDispatchToProps$6;
|
|
45962
45702
|
|
|
45963
45703
|
var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
45964
45704
|
var _creditCardNumberErro, _expirationDateErrors, _cvvErrors, _zipCodeErrors;
|
|
@@ -46099,7 +45839,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
46099
45839
|
|
|
46100
45840
|
var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
|
|
46101
45841
|
|
|
46102
|
-
var formConfig$
|
|
45842
|
+
var formConfig$7 = {
|
|
46103
45843
|
country: {
|
|
46104
45844
|
defaultValue: "US",
|
|
46105
45845
|
validators: [required()]
|
|
@@ -46125,14 +45865,14 @@ var formConfig$8 = {
|
|
|
46125
45865
|
}
|
|
46126
45866
|
};
|
|
46127
45867
|
|
|
46128
|
-
var _createFormState$
|
|
46129
|
-
reducer$
|
|
46130
|
-
mapStateToProps$
|
|
46131
|
-
mapDispatchToProps$
|
|
45868
|
+
var _createFormState$7 = createFormState(formConfig$7),
|
|
45869
|
+
reducer$7 = _createFormState$7.reducer,
|
|
45870
|
+
mapStateToProps$8 = _createFormState$7.mapStateToProps,
|
|
45871
|
+
mapDispatchToProps$7 = _createFormState$7.mapDispatchToProps;
|
|
46132
45872
|
|
|
46133
|
-
PaymentFormCard$1.reducer = reducer$
|
|
46134
|
-
PaymentFormCard$1.mapStateToProps = mapStateToProps$
|
|
46135
|
-
PaymentFormCard$1.mapDispatchToProps = mapDispatchToProps$
|
|
45873
|
+
PaymentFormCard$1.reducer = reducer$7;
|
|
45874
|
+
PaymentFormCard$1.mapStateToProps = mapStateToProps$8;
|
|
45875
|
+
PaymentFormCard$1.mapDispatchToProps = mapDispatchToProps$7;
|
|
46136
45876
|
|
|
46137
45877
|
var DashboardIframe = styled__default.iframe.withConfig({
|
|
46138
45878
|
displayName: "PeriscopeDashboardIframestyled__DashboardIframe",
|
|
@@ -46305,21 +46045,21 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
46305
46045
|
})));
|
|
46306
46046
|
};
|
|
46307
46047
|
|
|
46308
|
-
var formConfig$
|
|
46048
|
+
var formConfig$8 = {
|
|
46309
46049
|
phone: {
|
|
46310
46050
|
validators: [required(), hasLength(10, 10)],
|
|
46311
46051
|
constraints: [onlyIntegers(), hasLength(0, 10)]
|
|
46312
46052
|
}
|
|
46313
46053
|
};
|
|
46314
46054
|
|
|
46315
|
-
var _createFormState$
|
|
46316
|
-
reducer$
|
|
46317
|
-
mapStateToProps$
|
|
46318
|
-
mapDispatchToProps$
|
|
46055
|
+
var _createFormState$8 = createFormState(formConfig$8),
|
|
46056
|
+
reducer$8 = _createFormState$8.reducer,
|
|
46057
|
+
mapStateToProps$9 = _createFormState$8.mapStateToProps,
|
|
46058
|
+
mapDispatchToProps$8 = _createFormState$8.mapDispatchToProps;
|
|
46319
46059
|
|
|
46320
|
-
PhoneForm.reducer = reducer$
|
|
46321
|
-
PhoneForm.mapStateToProps = mapStateToProps$
|
|
46322
|
-
PhoneForm.mapDispatchToProps = mapDispatchToProps$
|
|
46060
|
+
PhoneForm.reducer = reducer$8;
|
|
46061
|
+
PhoneForm.mapStateToProps = mapStateToProps$9;
|
|
46062
|
+
PhoneForm.mapDispatchToProps = mapDispatchToProps$8;
|
|
46323
46063
|
|
|
46324
46064
|
var DefaultHeading = styled__default.div.withConfig({
|
|
46325
46065
|
displayName: "RadioGroup__DefaultHeading",
|
|
@@ -46342,6 +46082,8 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
46342
46082
|
}, headingText) : _ref$heading,
|
|
46343
46083
|
config = _ref.config,
|
|
46344
46084
|
extraStyles = _ref.extraStyles,
|
|
46085
|
+
_ref$handleChange = _ref.handleChange,
|
|
46086
|
+
handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange,
|
|
46345
46087
|
field = _ref.field,
|
|
46346
46088
|
fieldActions = _ref.fieldActions;
|
|
46347
46089
|
|
|
@@ -46362,6 +46104,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
46362
46104
|
}, c, {
|
|
46363
46105
|
groupName: groupName,
|
|
46364
46106
|
setValue: setValue,
|
|
46107
|
+
handleChange: handleChange,
|
|
46365
46108
|
"aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors
|
|
46366
46109
|
}));
|
|
46367
46110
|
})));
|
|
@@ -46686,7 +46429,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
46686
46429
|
})));
|
|
46687
46430
|
};
|
|
46688
46431
|
|
|
46689
|
-
var formConfig$
|
|
46432
|
+
var formConfig$9 = {
|
|
46690
46433
|
firstName: {
|
|
46691
46434
|
validators: [required()]
|
|
46692
46435
|
},
|
|
@@ -46704,14 +46447,14 @@ var formConfig$a = {
|
|
|
46704
46447
|
}
|
|
46705
46448
|
};
|
|
46706
46449
|
|
|
46707
|
-
var _createFormState$
|
|
46708
|
-
reducer$
|
|
46709
|
-
mapStateToProps$
|
|
46710
|
-
mapDispatchToProps$
|
|
46450
|
+
var _createFormState$9 = createFormState(formConfig$9),
|
|
46451
|
+
reducer$9 = _createFormState$9.reducer,
|
|
46452
|
+
mapStateToProps$a = _createFormState$9.mapStateToProps,
|
|
46453
|
+
mapDispatchToProps$9 = _createFormState$9.mapDispatchToProps;
|
|
46711
46454
|
|
|
46712
|
-
RegistrationForm.reducer = reducer$
|
|
46713
|
-
RegistrationForm.mapStateToProps = mapStateToProps$
|
|
46714
|
-
RegistrationForm.mapDispatchToProps = mapDispatchToProps$
|
|
46455
|
+
RegistrationForm.reducer = reducer$9;
|
|
46456
|
+
RegistrationForm.mapStateToProps = mapStateToProps$a;
|
|
46457
|
+
RegistrationForm.mapDispatchToProps = mapDispatchToProps$9;
|
|
46715
46458
|
|
|
46716
46459
|
var ResetConfirmationForm = function ResetConfirmationForm() {
|
|
46717
46460
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
@@ -46818,7 +46561,7 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
46818
46561
|
})));
|
|
46819
46562
|
};
|
|
46820
46563
|
|
|
46821
|
-
var formConfig$
|
|
46564
|
+
var formConfig$a = {
|
|
46822
46565
|
password: {
|
|
46823
46566
|
validators: [required(), hasLength(8, 100), hasNumber(), hasLowercaseLetter(), hasUppercaseLetter(), hasSpecialCharacter()]
|
|
46824
46567
|
},
|
|
@@ -46827,14 +46570,14 @@ var formConfig$b = {
|
|
|
46827
46570
|
}
|
|
46828
46571
|
};
|
|
46829
46572
|
|
|
46830
|
-
var _createFormState$
|
|
46831
|
-
reducer$
|
|
46832
|
-
mapStateToProps$
|
|
46833
|
-
mapDispatchToProps$
|
|
46573
|
+
var _createFormState$a = createFormState(formConfig$a),
|
|
46574
|
+
reducer$a = _createFormState$a.reducer,
|
|
46575
|
+
mapStateToProps$b = _createFormState$a.mapStateToProps,
|
|
46576
|
+
mapDispatchToProps$a = _createFormState$a.mapDispatchToProps;
|
|
46834
46577
|
|
|
46835
|
-
ResetPasswordForm.reducer = reducer$
|
|
46836
|
-
ResetPasswordForm.mapStateToProps = mapStateToProps$
|
|
46837
|
-
ResetPasswordForm.mapDispatchToProps = mapDispatchToProps$
|
|
46578
|
+
ResetPasswordForm.reducer = reducer$a;
|
|
46579
|
+
ResetPasswordForm.mapStateToProps = mapStateToProps$b;
|
|
46580
|
+
ResetPasswordForm.mapDispatchToProps = mapDispatchToProps$a;
|
|
46838
46581
|
|
|
46839
46582
|
var ResetConfirmationForm$2 = function ResetConfirmationForm() {
|
|
46840
46583
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
@@ -47632,7 +47375,6 @@ exports.IconAdd = IconAdd;
|
|
|
47632
47375
|
exports.IconQuitLarge = IconQuitLarge;
|
|
47633
47376
|
exports.Imposter = Imposter;
|
|
47634
47377
|
exports.InternalLink = InternalLink;
|
|
47635
|
-
exports.InternalUserInfoForm = InternalUserInfoForm;
|
|
47636
47378
|
exports.Jumbo = Jumbo$1;
|
|
47637
47379
|
exports.LabeledAmount = LabeledAmount$1;
|
|
47638
47380
|
exports.LineItem = LineItem$1;
|