@thecb/components 4.1.10 → 4.1.12-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 +261 -143
- package/package.json +2 -2
- package/src/components/atoms/form-layouts/FormLayouts.theme.js +2 -2
- package/src/components/atoms/form-select/FormSelect.js +50 -15
- package/src/components/atoms/form-select/FormSelect.stories.js +4 -2
- package/src/components/atoms/form-select/FormSelect.styled.js +6 -6
- package/src/components/atoms/form-select/FormSelect.theme.js +52 -0
- package/src/components/molecules/address-form/AddressForm.js +6 -6
- package/src/components/molecules/payment-button-bar/PaymentButtonBar.js +9 -2
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +28 -1
- package/src/components/molecules/payment-form-card/PaymentFormCard.state.js +23 -3
package/dist/index.cjs.js
CHANGED
|
@@ -19202,7 +19202,7 @@ function _templateObject2$c() {
|
|
|
19202
19202
|
}
|
|
19203
19203
|
|
|
19204
19204
|
function _templateObject$o() {
|
|
19205
|
-
var data = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: flex-start;\n"]);
|
|
19205
|
+
var data = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: flex-start;\n > * + * {\n margin-top: 0.25rem;\n }\n"]);
|
|
19206
19206
|
|
|
19207
19207
|
_templateObject$o = function _templateObject() {
|
|
19208
19208
|
return data;
|
|
@@ -19221,14 +19221,74 @@ var SelectField = styled__default.select(_templateObject3$6(), function (_ref2)
|
|
|
19221
19221
|
showErrors = _ref2.showErrors;
|
|
19222
19222
|
return field.dirty && field.hasErrors || field.hasErrors && showErrors ? ERROR_COLOR : GHOST_GREY;
|
|
19223
19223
|
}, FONT_WEIGHT_REGULAR, function (_ref3) {
|
|
19224
|
-
var
|
|
19225
|
-
return
|
|
19224
|
+
var themeValues = _ref3.themeValues;
|
|
19225
|
+
return themeValues.inputBackgroundColor && themeValues.inputBackgroundColor;
|
|
19226
19226
|
}, function (_ref4) {
|
|
19227
|
-
var
|
|
19228
|
-
return
|
|
19227
|
+
var themeValues = _ref4.themeValues;
|
|
19228
|
+
return themeValues.color && themeValues.color;
|
|
19229
19229
|
}, MATISSE_BLUE);
|
|
19230
19230
|
var SelectOption = styled__default.option(_templateObject4$3());
|
|
19231
19231
|
|
|
19232
|
+
var linkColor$1 = {
|
|
19233
|
+
"default": "".concat(MATISSE_BLUE),
|
|
19234
|
+
disabled: "".concat(MATISSE_BLUE)
|
|
19235
|
+
};
|
|
19236
|
+
var formBackgroundColor = {
|
|
19237
|
+
"default": "".concat(WHITE),
|
|
19238
|
+
disabled: "".concat(WHITE),
|
|
19239
|
+
checkout: "".concat(ATHENS_GREY),
|
|
19240
|
+
collapsible: "".concat(ATHENS_GREY)
|
|
19241
|
+
};
|
|
19242
|
+
var inputBackgroundColor = {
|
|
19243
|
+
"default": "".concat(WHITE),
|
|
19244
|
+
disabled: "".concat(SEASHELL_WHITE)
|
|
19245
|
+
};
|
|
19246
|
+
var color$5 = {
|
|
19247
|
+
"default": "".concat(MINESHAFT_GREY),
|
|
19248
|
+
disabled: "".concat(DUSTY_GREY)
|
|
19249
|
+
};
|
|
19250
|
+
var labelColor = {
|
|
19251
|
+
"default": "".concat(CHARADE_GREY),
|
|
19252
|
+
disabled: "".concat(CHARADE_GREY)
|
|
19253
|
+
};
|
|
19254
|
+
var borderColor = {
|
|
19255
|
+
"default": "".concat(GREY_CHATEAU),
|
|
19256
|
+
disabled: "".concat(GREY_CHATEAU)
|
|
19257
|
+
};
|
|
19258
|
+
var lineHeight$2 = {
|
|
19259
|
+
"default": "1rem",
|
|
19260
|
+
disabled: "1rem"
|
|
19261
|
+
};
|
|
19262
|
+
var fontSize$5 = {
|
|
19263
|
+
"default": "0.875rem",
|
|
19264
|
+
disabled: "0.875rem"
|
|
19265
|
+
};
|
|
19266
|
+
var errorFontSize = {
|
|
19267
|
+
"default": "0.75rem",
|
|
19268
|
+
disabled: "0.75rem"
|
|
19269
|
+
};
|
|
19270
|
+
var fontWeight$2 = {
|
|
19271
|
+
"default": "".concat(FONT_WEIGHT_REGULAR),
|
|
19272
|
+
disabled: "".concat(FONT_WEIGHT_REGULAR)
|
|
19273
|
+
};
|
|
19274
|
+
var hoverFocusStyles = {
|
|
19275
|
+
"default": "color: #0E506D; outline: none; text-decoration: underline; ",
|
|
19276
|
+
disabled: "color: #6E727E;"
|
|
19277
|
+
};
|
|
19278
|
+
var fallbackValues$f = {
|
|
19279
|
+
linkColor: linkColor$1,
|
|
19280
|
+
formBackgroundColor: formBackgroundColor,
|
|
19281
|
+
inputBackgroundColor: inputBackgroundColor,
|
|
19282
|
+
color: color$5,
|
|
19283
|
+
labelColor: labelColor,
|
|
19284
|
+
borderColor: borderColor,
|
|
19285
|
+
lineHeight: lineHeight$2,
|
|
19286
|
+
fontSize: fontSize$5,
|
|
19287
|
+
errorFontSize: errorFontSize,
|
|
19288
|
+
fontWeight: fontWeight$2,
|
|
19289
|
+
hoverFocusStyles: hoverFocusStyles
|
|
19290
|
+
};
|
|
19291
|
+
|
|
19232
19292
|
var FormSelect = function FormSelect(_ref) {
|
|
19233
19293
|
var fieldActions = _ref.fieldActions,
|
|
19234
19294
|
labelTextWhenNoError = _ref.labelTextWhenNoError,
|
|
@@ -19237,7 +19297,9 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
19237
19297
|
field = _ref.field,
|
|
19238
19298
|
showErrors = _ref.showErrors,
|
|
19239
19299
|
onChange = _ref.onChange,
|
|
19240
|
-
dropdownMaxHeight = _ref.dropdownMaxHeight
|
|
19300
|
+
dropdownMaxHeight = _ref.dropdownMaxHeight,
|
|
19301
|
+
disabledValues = _ref.disabledValues,
|
|
19302
|
+
themeValues = _ref.themeValues;
|
|
19241
19303
|
|
|
19242
19304
|
var _useState = React.useState(false),
|
|
19243
19305
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -19260,18 +19322,26 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
19260
19322
|
});
|
|
19261
19323
|
return /*#__PURE__*/React__default.createElement(SelectContainer, {
|
|
19262
19324
|
ref: dropdownRef
|
|
19325
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
19326
|
+
padding: "0",
|
|
19327
|
+
minWidth: "100%"
|
|
19328
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
19329
|
+
justify: "space-between",
|
|
19330
|
+
align: "center"
|
|
19263
19331
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
19332
|
+
as: "label",
|
|
19264
19333
|
variant: "pS",
|
|
19265
|
-
color:
|
|
19266
|
-
weight:
|
|
19267
|
-
extraStyles: "
|
|
19268
|
-
}, labelTextWhenNoError), /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
19334
|
+
color: themeValues.labelColor,
|
|
19335
|
+
weight: themeValues.fontWeight,
|
|
19336
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }"
|
|
19337
|
+
}, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
19269
19338
|
maxHeight: dropdownMaxHeight,
|
|
19270
19339
|
placeholder: options[0] ? options[0].text : "",
|
|
19271
19340
|
options: options,
|
|
19272
19341
|
value: field.rawValue,
|
|
19342
|
+
disabledValues: disabledValues,
|
|
19273
19343
|
isOpen: open,
|
|
19274
|
-
isError:
|
|
19344
|
+
isError: field.hasErrors && field.dirty || field.hasErrors && showErrors,
|
|
19275
19345
|
onSelect: onChange ? function (value) {
|
|
19276
19346
|
return onChange(value);
|
|
19277
19347
|
} : function (value) {
|
|
@@ -19283,9 +19353,18 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
19283
19353
|
}), /*#__PURE__*/React__default.createElement(SelectLabel, {
|
|
19284
19354
|
field: field,
|
|
19285
19355
|
showErrors: showErrors
|
|
19286
|
-
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ?
|
|
19356
|
+
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
19357
|
+
color: ERROR_COLOR,
|
|
19358
|
+
variant: "pXS",
|
|
19359
|
+
weight: themeValues.fontWeight,
|
|
19360
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }"
|
|
19361
|
+
}, errorMessages[field.errors[0]]) : /*#__PURE__*/React__default.createElement(Text$1, {
|
|
19362
|
+
extraStyles: "height: ".concat(themeValues.lineHeight, ";")
|
|
19363
|
+
})));
|
|
19287
19364
|
};
|
|
19288
19365
|
|
|
19366
|
+
var FormSelect$1 = themeComponent(FormSelect, "FormSelect", fallbackValues$f, "default");
|
|
19367
|
+
|
|
19289
19368
|
var options = [{
|
|
19290
19369
|
text: "Afghanistan",
|
|
19291
19370
|
value: "AF"
|
|
@@ -20036,7 +20115,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
20036
20115
|
fieldActions = _ref.fieldActions,
|
|
20037
20116
|
showErrors = _ref.showErrors,
|
|
20038
20117
|
onChange = _ref.onChange;
|
|
20039
|
-
return /*#__PURE__*/React__default.createElement(FormSelect, {
|
|
20118
|
+
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
20040
20119
|
options: options,
|
|
20041
20120
|
field: field,
|
|
20042
20121
|
fieldActions: fieldActions,
|
|
@@ -20049,7 +20128,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
20049
20128
|
|
|
20050
20129
|
var backgroundColor$3 = WHITE;
|
|
20051
20130
|
var boxShadow = "0px 2px 14px 0px ".concat(ATHENS_GREY, ", 0px 3px 8px 0px ").concat(GHOST_GREY);
|
|
20052
|
-
var fallbackValues$
|
|
20131
|
+
var fallbackValues$g = {
|
|
20053
20132
|
backgroundColor: backgroundColor$3,
|
|
20054
20133
|
boxShadow: boxShadow
|
|
20055
20134
|
};
|
|
@@ -20070,7 +20149,7 @@ var DisplayBox = function DisplayBox(_ref) {
|
|
|
20070
20149
|
}, children));
|
|
20071
20150
|
};
|
|
20072
20151
|
|
|
20073
|
-
var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$
|
|
20152
|
+
var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$g);
|
|
20074
20153
|
|
|
20075
20154
|
var DisplayCard = function DisplayCard(_ref) {
|
|
20076
20155
|
var title = _ref.title,
|
|
@@ -20417,64 +20496,64 @@ var src_1 = src.FormattedInput;
|
|
|
20417
20496
|
var src_2 = src.createFormat;
|
|
20418
20497
|
var src_3 = src.format;
|
|
20419
20498
|
|
|
20420
|
-
var linkColor$
|
|
20499
|
+
var linkColor$2 = {
|
|
20421
20500
|
"default": "".concat(MATISSE_BLUE),
|
|
20422
20501
|
disabled: "".concat(MATISSE_BLUE)
|
|
20423
20502
|
};
|
|
20424
|
-
var formBackgroundColor = {
|
|
20503
|
+
var formBackgroundColor$1 = {
|
|
20425
20504
|
"default": "".concat(WHITE),
|
|
20426
20505
|
disabled: "".concat(WHITE),
|
|
20427
20506
|
checkout: "".concat(ATHENS_GREY),
|
|
20428
20507
|
collapsible: "".concat(ATHENS_GREY)
|
|
20429
20508
|
};
|
|
20430
|
-
var inputBackgroundColor = {
|
|
20509
|
+
var inputBackgroundColor$1 = {
|
|
20431
20510
|
"default": "".concat(WHITE),
|
|
20432
20511
|
disabled: "".concat(SEASHELL_WHITE)
|
|
20433
20512
|
};
|
|
20434
|
-
var color$
|
|
20513
|
+
var color$6 = {
|
|
20435
20514
|
"default": "".concat(MINESHAFT_GREY),
|
|
20436
20515
|
disabled: "".concat(DUSTY_GREY)
|
|
20437
20516
|
};
|
|
20438
|
-
var labelColor = {
|
|
20439
|
-
"default": "".concat(
|
|
20440
|
-
disabled: "".concat(
|
|
20517
|
+
var labelColor$1 = {
|
|
20518
|
+
"default": "".concat(CHARADE_GREY),
|
|
20519
|
+
disabled: "".concat(CHARADE_GREY)
|
|
20441
20520
|
};
|
|
20442
|
-
var borderColor = {
|
|
20521
|
+
var borderColor$1 = {
|
|
20443
20522
|
"default": "".concat(GREY_CHATEAU),
|
|
20444
20523
|
disabled: "".concat(GREY_CHATEAU)
|
|
20445
20524
|
};
|
|
20446
|
-
var lineHeight$
|
|
20525
|
+
var lineHeight$3 = {
|
|
20447
20526
|
"default": "1rem",
|
|
20448
20527
|
disabled: "1rem"
|
|
20449
20528
|
};
|
|
20450
|
-
var fontSize$
|
|
20529
|
+
var fontSize$6 = {
|
|
20451
20530
|
"default": "0.875rem",
|
|
20452
20531
|
disabled: "0.875rem"
|
|
20453
20532
|
};
|
|
20454
|
-
var errorFontSize = {
|
|
20533
|
+
var errorFontSize$1 = {
|
|
20455
20534
|
"default": "0.75rem",
|
|
20456
20535
|
disabled: "0.75rem"
|
|
20457
20536
|
};
|
|
20458
|
-
var fontWeight$
|
|
20537
|
+
var fontWeight$3 = {
|
|
20459
20538
|
"default": "".concat(FONT_WEIGHT_REGULAR),
|
|
20460
20539
|
disabled: "".concat(FONT_WEIGHT_REGULAR)
|
|
20461
20540
|
};
|
|
20462
|
-
var hoverFocusStyles = {
|
|
20541
|
+
var hoverFocusStyles$1 = {
|
|
20463
20542
|
"default": "color: #0E506D; outline: none; text-decoration: underline; ",
|
|
20464
20543
|
disabled: "color: #6E727E;"
|
|
20465
20544
|
};
|
|
20466
|
-
var fallbackValues$
|
|
20467
|
-
linkColor: linkColor$
|
|
20468
|
-
formBackgroundColor: formBackgroundColor,
|
|
20469
|
-
inputBackgroundColor: inputBackgroundColor,
|
|
20470
|
-
color: color$
|
|
20471
|
-
labelColor: labelColor,
|
|
20472
|
-
borderColor: borderColor,
|
|
20473
|
-
lineHeight: lineHeight$
|
|
20474
|
-
fontSize: fontSize$
|
|
20475
|
-
errorFontSize: errorFontSize,
|
|
20476
|
-
fontWeight: fontWeight$
|
|
20477
|
-
hoverFocusStyles: hoverFocusStyles
|
|
20545
|
+
var fallbackValues$h = {
|
|
20546
|
+
linkColor: linkColor$2,
|
|
20547
|
+
formBackgroundColor: formBackgroundColor$1,
|
|
20548
|
+
inputBackgroundColor: inputBackgroundColor$1,
|
|
20549
|
+
color: color$6,
|
|
20550
|
+
labelColor: labelColor$1,
|
|
20551
|
+
borderColor: borderColor$1,
|
|
20552
|
+
lineHeight: lineHeight$3,
|
|
20553
|
+
fontSize: fontSize$6,
|
|
20554
|
+
errorFontSize: errorFontSize$1,
|
|
20555
|
+
fontWeight: fontWeight$3,
|
|
20556
|
+
hoverFocusStyles: hoverFocusStyles$1
|
|
20478
20557
|
};
|
|
20479
20558
|
|
|
20480
20559
|
function _templateObject4$4() {
|
|
@@ -20690,7 +20769,7 @@ var FormInput = function FormInput(_ref13) {
|
|
|
20690
20769
|
}, decorator)));
|
|
20691
20770
|
};
|
|
20692
20771
|
|
|
20693
|
-
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$
|
|
20772
|
+
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$h, "default");
|
|
20694
20773
|
|
|
20695
20774
|
var FormInputRow = function FormInputRow(_ref) {
|
|
20696
20775
|
var _ref$breakpoint = _ref.breakpoint,
|
|
@@ -20740,9 +20819,9 @@ var FormContainer = function FormContainer(_ref) {
|
|
|
20740
20819
|
}, rest), children);
|
|
20741
20820
|
};
|
|
20742
20821
|
|
|
20743
|
-
var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$
|
|
20822
|
+
var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$h, "default");
|
|
20744
20823
|
|
|
20745
|
-
var fontSize$
|
|
20824
|
+
var fontSize$7 = {
|
|
20746
20825
|
"default": "1rem",
|
|
20747
20826
|
radio: "1.0625rem"
|
|
20748
20827
|
};
|
|
@@ -20750,14 +20829,14 @@ var padding$1 = {
|
|
|
20750
20829
|
"default": "0",
|
|
20751
20830
|
radio: "0.625rem 0"
|
|
20752
20831
|
};
|
|
20753
|
-
var color$
|
|
20832
|
+
var color$7 = {
|
|
20754
20833
|
"default": "".concat(CHARADE_GREY),
|
|
20755
20834
|
radio: "".concat(MINESHAFT_GREY)
|
|
20756
20835
|
};
|
|
20757
|
-
var fallbackValues$
|
|
20758
|
-
fontSize: fontSize$
|
|
20836
|
+
var fallbackValues$i = {
|
|
20837
|
+
fontSize: fontSize$7,
|
|
20759
20838
|
padding: padding$1,
|
|
20760
|
-
color: color$
|
|
20839
|
+
color: color$7
|
|
20761
20840
|
};
|
|
20762
20841
|
|
|
20763
20842
|
var FormattedAddress = function FormattedAddress(_ref) {
|
|
@@ -20797,11 +20876,11 @@ var FormattedAddress = function FormattedAddress(_ref) {
|
|
|
20797
20876
|
}, city, ", ", stateProvince, " ".concat(zip), country ? " ".concat(country) : "")));
|
|
20798
20877
|
};
|
|
20799
20878
|
|
|
20800
|
-
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$
|
|
20879
|
+
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$i, "default");
|
|
20801
20880
|
|
|
20802
20881
|
var textColor$1 = "".concat(CHARADE_GREY);
|
|
20803
20882
|
var autopayTextColor = "".concat(REGENT_GREY);
|
|
20804
|
-
var fallbackValues$
|
|
20883
|
+
var fallbackValues$j = {
|
|
20805
20884
|
textColor: textColor$1,
|
|
20806
20885
|
autopayTextColor: autopayTextColor
|
|
20807
20886
|
};
|
|
@@ -20854,7 +20933,7 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
|
20854
20933
|
}, "Autopay Enabled")));
|
|
20855
20934
|
};
|
|
20856
20935
|
|
|
20857
|
-
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$
|
|
20936
|
+
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$j, "default");
|
|
20858
20937
|
|
|
20859
20938
|
function _templateObject3$8() {
|
|
20860
20939
|
var data = _taggedTemplateLiteral(["\n display: block;\n top: auto;\n bottom: 6px;\n left: 2px;\n transition-duration: 0.13s;\n transition-delay: 0.13s;\n transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n margin-top: 12px;\n background-color: ", ";\n\n &, &::before, &::after {\n background-color: ", ";\n width: 30px;\n height: 3px;\n position: absolute;\n transition-property: transform;\n transition-duration: 0.15s;\n transition-timing-function: ease;\n }\n\n &::before, &::after {\n content: \"\";\n display: block;\n }\n\n &::before {\n top: -10px;\n transition: top 0.12s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), \n transform 0.13s cubic-bezier(0.55, 0.055, 0.675, 0.19);\n }\n\n &::after {\n bottom: -10px;\n top: -20px;\n transition: top 0.2s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), \n opacity 0.1s linear;\n }\n\n &.active, &.active::before, &.active::after {\n background-color: ", ";\n }\n\n &.active {\n transform: translate3d(0, -10px, 0) rotate(-45deg);\n transition-delay: 0.22s;\n transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n\n &.active::after {\n top: 0;\n opacity: 0;\n transition: top 0.2s cubic-bezier(0.33333, 0, 0.66667, 0.33333), \n opacity: 0.1s 0.22s linear;\n }\n\n &.active::before {\n top: 0;\n transform: rotate(-90deg);\n transition: top 0.1s 0.16s cubic-bezier(0.33333, 0, 0.66667, 0.33333), \n transform 0.13s 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n"]);
|
|
@@ -20971,14 +21050,14 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
20971
21050
|
|
|
20972
21051
|
var Jumbo$1 = withWindowSize(Jumbo);
|
|
20973
21052
|
|
|
20974
|
-
var fontWeight$
|
|
21053
|
+
var fontWeight$4 = {
|
|
20975
21054
|
"default": "600",
|
|
20976
21055
|
p: "600",
|
|
20977
21056
|
pL: "600",
|
|
20978
21057
|
h6: "700"
|
|
20979
21058
|
};
|
|
20980
|
-
var fallbackValues$
|
|
20981
|
-
fontWeight: fontWeight$
|
|
21059
|
+
var fallbackValues$k = {
|
|
21060
|
+
fontWeight: fontWeight$4
|
|
20982
21061
|
};
|
|
20983
21062
|
|
|
20984
21063
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
@@ -21004,7 +21083,7 @@ var LabeledAmount = function LabeledAmount(_ref) {
|
|
|
21004
21083
|
}, amount));
|
|
21005
21084
|
};
|
|
21006
21085
|
|
|
21007
|
-
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$
|
|
21086
|
+
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$k, "default");
|
|
21008
21087
|
|
|
21009
21088
|
var weightTitle = {
|
|
21010
21089
|
"default": "600",
|
|
@@ -21014,7 +21093,7 @@ var paragraphVariant = {
|
|
|
21014
21093
|
"default": "pL",
|
|
21015
21094
|
small: "p"
|
|
21016
21095
|
};
|
|
21017
|
-
var fallbackValues$
|
|
21096
|
+
var fallbackValues$l = {
|
|
21018
21097
|
weightTitle: weightTitle,
|
|
21019
21098
|
paragraphVariant: paragraphVariant
|
|
21020
21099
|
};
|
|
@@ -21043,11 +21122,11 @@ var LineItem = function LineItem(_ref) {
|
|
|
21043
21122
|
}, amount));
|
|
21044
21123
|
};
|
|
21045
21124
|
|
|
21046
|
-
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$
|
|
21125
|
+
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$l, "default");
|
|
21047
21126
|
|
|
21048
|
-
var color$
|
|
21049
|
-
var fallbackValues$
|
|
21050
|
-
color: color$
|
|
21127
|
+
var color$8 = "#15749D";
|
|
21128
|
+
var fallbackValues$m = {
|
|
21129
|
+
color: color$8
|
|
21051
21130
|
};
|
|
21052
21131
|
|
|
21053
21132
|
function _templateObject2$g() {
|
|
@@ -21098,7 +21177,7 @@ var Spinner$1 = function Spinner(_ref4) {
|
|
|
21098
21177
|
})));
|
|
21099
21178
|
};
|
|
21100
21179
|
|
|
21101
|
-
var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$
|
|
21180
|
+
var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$m);
|
|
21102
21181
|
|
|
21103
21182
|
var Loading = function Loading() {
|
|
21104
21183
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -21512,7 +21591,7 @@ var PasswordRequirements = function PasswordRequirements(_ref) {
|
|
|
21512
21591
|
}))));
|
|
21513
21592
|
};
|
|
21514
21593
|
|
|
21515
|
-
var color$
|
|
21594
|
+
var color$9 = {
|
|
21516
21595
|
"default": "".concat(CHARADE_GREY),
|
|
21517
21596
|
large: "".concat(BRIGHT_GREY)
|
|
21518
21597
|
};
|
|
@@ -21520,8 +21599,8 @@ var height$1 = {
|
|
|
21520
21599
|
"default": "3rem",
|
|
21521
21600
|
large: "192px"
|
|
21522
21601
|
};
|
|
21523
|
-
var fallbackValues$
|
|
21524
|
-
color: color$
|
|
21602
|
+
var fallbackValues$n = {
|
|
21603
|
+
color: color$9,
|
|
21525
21604
|
height: height$1
|
|
21526
21605
|
};
|
|
21527
21606
|
|
|
@@ -21609,12 +21688,12 @@ var Placeholder = function Placeholder(_ref2) {
|
|
|
21609
21688
|
}, text)))))))))));
|
|
21610
21689
|
};
|
|
21611
21690
|
|
|
21612
|
-
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$
|
|
21691
|
+
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$n, "default");
|
|
21613
21692
|
|
|
21614
21693
|
var backgroundColor$4 = {
|
|
21615
21694
|
"default": "".concat(WHITE)
|
|
21616
21695
|
};
|
|
21617
|
-
var fallbackValues$
|
|
21696
|
+
var fallbackValues$o = {
|
|
21618
21697
|
backgroundColor: backgroundColor$4
|
|
21619
21698
|
};
|
|
21620
21699
|
|
|
@@ -21642,11 +21721,11 @@ var ProcessingFee = function ProcessingFee(_ref) {
|
|
|
21642
21721
|
}));
|
|
21643
21722
|
};
|
|
21644
21723
|
|
|
21645
|
-
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$
|
|
21724
|
+
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$o, "default");
|
|
21646
21725
|
|
|
21647
21726
|
var activeColor$4 = "".concat(MATISSE_BLUE);
|
|
21648
21727
|
var inactiveColor = "".concat(GREY_CHATEAU);
|
|
21649
|
-
var fallbackValues$
|
|
21728
|
+
var fallbackValues$p = {
|
|
21650
21729
|
activeColor: activeColor$4,
|
|
21651
21730
|
inactiveColor: inactiveColor
|
|
21652
21731
|
};
|
|
@@ -21742,16 +21821,16 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
21742
21821
|
})));
|
|
21743
21822
|
};
|
|
21744
21823
|
|
|
21745
|
-
var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$
|
|
21824
|
+
var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$p);
|
|
21746
21825
|
|
|
21747
|
-
var borderColor$
|
|
21826
|
+
var borderColor$2 = {
|
|
21748
21827
|
"default": "".concat(GREY_CHATEAU)
|
|
21749
21828
|
};
|
|
21750
21829
|
var borderSize = {
|
|
21751
21830
|
"default": "1px"
|
|
21752
21831
|
};
|
|
21753
|
-
var fallbackValues$
|
|
21754
|
-
borderColor: borderColor$
|
|
21832
|
+
var fallbackValues$q = {
|
|
21833
|
+
borderColor: borderColor$2,
|
|
21755
21834
|
borderSize: borderSize
|
|
21756
21835
|
};
|
|
21757
21836
|
|
|
@@ -21767,7 +21846,7 @@ var SolidDivider = function SolidDivider(_ref) {
|
|
|
21767
21846
|
});
|
|
21768
21847
|
};
|
|
21769
21848
|
|
|
21770
|
-
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$
|
|
21849
|
+
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$q, "default");
|
|
21771
21850
|
|
|
21772
21851
|
var placeHolderOptionUS = {
|
|
21773
21852
|
text: "Please select state",
|
|
@@ -32332,7 +32411,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
32332
32411
|
countryCode = _ref.countryCode;
|
|
32333
32412
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
32334
32413
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
32335
|
-
return /*#__PURE__*/React__default.createElement(FormSelect, {
|
|
32414
|
+
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
32336
32415
|
options: options,
|
|
32337
32416
|
field: field,
|
|
32338
32417
|
fieldActions: fieldActions,
|
|
@@ -32349,7 +32428,7 @@ var offBackground = "".concat(REGENT_GREY);
|
|
|
32349
32428
|
var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
|
|
32350
32429
|
var rightLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row;\n");
|
|
32351
32430
|
var leftLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row-reverse;\n");
|
|
32352
|
-
var fallbackValues$
|
|
32431
|
+
var fallbackValues$r = {
|
|
32353
32432
|
onBackground: onBackground,
|
|
32354
32433
|
disabledBackground: disabledBackground,
|
|
32355
32434
|
white: white,
|
|
@@ -32551,7 +32630,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
32551
32630
|
}, label))));
|
|
32552
32631
|
};
|
|
32553
32632
|
|
|
32554
|
-
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$
|
|
32633
|
+
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$r);
|
|
32555
32634
|
|
|
32556
32635
|
var background$1 = "".concat(ATHENS_GREY);
|
|
32557
32636
|
var white$1 = "".concat(WHITE);
|
|
@@ -34265,17 +34344,33 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
34265
34344
|
|
|
34266
34345
|
var zipErrorMessages = (_zipErrorMessages = {}, _defineProperty(_zipErrorMessages, required.error, "Zip code is required"), _defineProperty(_zipErrorMessages, hasLength.error, "Zip code must be 5 or 9 digits"), _zipErrorMessages);
|
|
34267
34346
|
|
|
34268
|
-
var stateProvinceErrorMessages = _defineProperty({}, required.error, "State or Province is required");
|
|
34269
|
-
// [required.error]: "Country is required"
|
|
34270
|
-
// };
|
|
34347
|
+
var stateProvinceErrorMessages = _defineProperty({}, required.error, "State or Province is required");
|
|
34271
34348
|
|
|
34349
|
+
var countryErrorMessages = _defineProperty({}, required.error, "Country is required");
|
|
34272
34350
|
|
|
34273
34351
|
var isUS = fields.country.rawValue === "US";
|
|
34274
34352
|
return /*#__PURE__*/React__default.createElement(FormContainer$1, {
|
|
34275
34353
|
variant: variant,
|
|
34276
34354
|
role: "form",
|
|
34277
34355
|
"aria-label": "Address"
|
|
34278
|
-
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(
|
|
34356
|
+
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(CountryDropdown, {
|
|
34357
|
+
labelTextWhenNoError: "Country",
|
|
34358
|
+
errorMessages: countryErrorMessages,
|
|
34359
|
+
field: fields.country,
|
|
34360
|
+
onChange: function onChange(value) {
|
|
34361
|
+
actions.fields.country.set(value); // temporary measure to not dirty fields until
|
|
34362
|
+
// we can write a reset function for fields
|
|
34363
|
+
|
|
34364
|
+
if (fields.stateProvince.rawValue) {
|
|
34365
|
+
actions.fields.stateProvince.set("");
|
|
34366
|
+
}
|
|
34367
|
+
|
|
34368
|
+
if (fields.zip.rawValue) {
|
|
34369
|
+
actions.fields.zip.set("");
|
|
34370
|
+
}
|
|
34371
|
+
},
|
|
34372
|
+
showErrors: showErrors
|
|
34373
|
+
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
34279
34374
|
labelTextWhenNoError: "Address",
|
|
34280
34375
|
errorMessages: street1ErrorMessages,
|
|
34281
34376
|
field: fields.street1,
|
|
@@ -34467,7 +34562,7 @@ ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
|
|
|
34467
34562
|
var titleColor = "#292A33";
|
|
34468
34563
|
var headingBackgroundColor = "transparent";
|
|
34469
34564
|
var bodyBackgroundColor = "transparent";
|
|
34470
|
-
var fallbackValues$
|
|
34565
|
+
var fallbackValues$s = {
|
|
34471
34566
|
titleColor: titleColor,
|
|
34472
34567
|
headingBackgroundColor: headingBackgroundColor,
|
|
34473
34568
|
bodyBackgroundColor: bodyBackgroundColor
|
|
@@ -34568,7 +34663,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
34568
34663
|
}, children))));
|
|
34569
34664
|
};
|
|
34570
34665
|
|
|
34571
|
-
var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$
|
|
34666
|
+
var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$s);
|
|
34572
34667
|
|
|
34573
34668
|
var EditNameForm = function EditNameForm(_ref) {
|
|
34574
34669
|
var fields = _ref.fields,
|
|
@@ -35103,7 +35198,7 @@ ForgotPasswordForm.mapDispatchToProps = mapDispatchToProps$4;
|
|
|
35103
35198
|
|
|
35104
35199
|
var textColor$2 = "#ffffff";
|
|
35105
35200
|
var backgroundColor$5 = "#182848";
|
|
35106
|
-
var fallbackValues$
|
|
35201
|
+
var fallbackValues$t = {
|
|
35107
35202
|
textColor: textColor$2,
|
|
35108
35203
|
backgroundColor: backgroundColor$5
|
|
35109
35204
|
};
|
|
@@ -35147,7 +35242,7 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
35147
35242
|
}), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter)));
|
|
35148
35243
|
};
|
|
35149
35244
|
|
|
35150
|
-
var HighlightTabRow$1 = /*#__PURE__*/React.memo(themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$
|
|
35245
|
+
var HighlightTabRow$1 = /*#__PURE__*/React.memo(themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$t));
|
|
35151
35246
|
|
|
35152
35247
|
var LoginForm = function LoginForm(_ref) {
|
|
35153
35248
|
var _emailErrorMessages;
|
|
@@ -36482,11 +36577,11 @@ var Modal$1 = function Modal(_ref) {
|
|
|
36482
36577
|
})))))))));
|
|
36483
36578
|
};
|
|
36484
36579
|
|
|
36485
|
-
var fontSize$
|
|
36580
|
+
var fontSize$8 = {
|
|
36486
36581
|
"default": "1.375rem",
|
|
36487
36582
|
largeTitle: "1.75rem"
|
|
36488
36583
|
};
|
|
36489
|
-
var fontWeight$
|
|
36584
|
+
var fontWeight$5 = {
|
|
36490
36585
|
"default": "600",
|
|
36491
36586
|
largeTitle: "700"
|
|
36492
36587
|
};
|
|
@@ -36494,7 +36589,7 @@ var fontColor = {
|
|
|
36494
36589
|
"default": CHARADE_GREY,
|
|
36495
36590
|
largeTitle: CHARADE_GREY
|
|
36496
36591
|
};
|
|
36497
|
-
var lineHeight$
|
|
36592
|
+
var lineHeight$4 = {
|
|
36498
36593
|
"default": "2rem",
|
|
36499
36594
|
largeTitle: "2rem"
|
|
36500
36595
|
};
|
|
@@ -36522,11 +36617,11 @@ var backgroundColor$6 = {
|
|
|
36522
36617
|
"default": WHITE,
|
|
36523
36618
|
largeTitle: WHITE
|
|
36524
36619
|
};
|
|
36525
|
-
var fallbackValues$
|
|
36526
|
-
fontSize: fontSize$
|
|
36527
|
-
fontWeight: fontWeight$
|
|
36620
|
+
var fallbackValues$u = {
|
|
36621
|
+
fontSize: fontSize$8,
|
|
36622
|
+
fontWeight: fontWeight$5,
|
|
36528
36623
|
fontColor: fontColor,
|
|
36529
|
-
lineHeight: lineHeight$
|
|
36624
|
+
lineHeight: lineHeight$4,
|
|
36530
36625
|
textAlign: textAlign,
|
|
36531
36626
|
titleType: titleType,
|
|
36532
36627
|
titleSpacing: titleSpacing,
|
|
@@ -36563,7 +36658,7 @@ var Module = function Module(_ref) {
|
|
|
36563
36658
|
}, children)));
|
|
36564
36659
|
};
|
|
36565
36660
|
|
|
36566
|
-
var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$
|
|
36661
|
+
var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$u, "default"));
|
|
36567
36662
|
|
|
36568
36663
|
var backgroundColor$7 = {
|
|
36569
36664
|
profile: "#3b414d",
|
|
@@ -36573,7 +36668,7 @@ var shadowColor = {
|
|
|
36573
36668
|
profile: "#292A33",
|
|
36574
36669
|
cms: "#292A33"
|
|
36575
36670
|
};
|
|
36576
|
-
var fallbackValues$
|
|
36671
|
+
var fallbackValues$v = {
|
|
36577
36672
|
backgroundColor: backgroundColor$7,
|
|
36578
36673
|
shadowColor: shadowColor
|
|
36579
36674
|
};
|
|
@@ -36614,7 +36709,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
|
|
|
36614
36709
|
}, menuContent));
|
|
36615
36710
|
};
|
|
36616
36711
|
|
|
36617
|
-
var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$
|
|
36712
|
+
var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$v, "profile");
|
|
36618
36713
|
|
|
36619
36714
|
function _templateObject$B() {
|
|
36620
36715
|
var data = _taggedTemplateLiteral(["\n position: fixed;\n top: 72px;\n"]);
|
|
@@ -36676,7 +36771,7 @@ var NavMenuMobile = function NavMenuMobile(_ref) {
|
|
|
36676
36771
|
}, menuContent));
|
|
36677
36772
|
};
|
|
36678
36773
|
|
|
36679
|
-
var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$
|
|
36774
|
+
var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$v, "profile");
|
|
36680
36775
|
|
|
36681
36776
|
var AccountBillIcon = function AccountBillIcon() {
|
|
36682
36777
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
@@ -38175,11 +38270,11 @@ var TitleModule = function TitleModule(_ref) {
|
|
|
38175
38270
|
}, subtitle)));
|
|
38176
38271
|
};
|
|
38177
38272
|
|
|
38178
|
-
var color$
|
|
38273
|
+
var color$a = "#15749D";
|
|
38179
38274
|
var hoverColor$4 = "#116285";
|
|
38180
38275
|
var activeColor$5 = "#0E506D";
|
|
38181
|
-
var fallbackValues$
|
|
38182
|
-
color: color$
|
|
38276
|
+
var fallbackValues$w = {
|
|
38277
|
+
color: color$a,
|
|
38183
38278
|
hoverColor: hoverColor$4,
|
|
38184
38279
|
activeColor: activeColor$5
|
|
38185
38280
|
};
|
|
@@ -38249,7 +38344,7 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
38249
38344
|
}, modalExtraProps));
|
|
38250
38345
|
};
|
|
38251
38346
|
|
|
38252
|
-
var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$
|
|
38347
|
+
var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$w);
|
|
38253
38348
|
|
|
38254
38349
|
var AmountModule = function AmountModule(_ref) {
|
|
38255
38350
|
var totalAmountDue = _ref.totalAmountDue,
|
|
@@ -38746,7 +38841,8 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
38746
38841
|
cancelText = _ref$cancelText === void 0 ? "Cancel" : _ref$cancelText,
|
|
38747
38842
|
redirectURL = _ref.redirectURL,
|
|
38748
38843
|
_ref$redirectText = _ref.redirectText,
|
|
38749
|
-
redirectText = _ref$redirectText === void 0 ? "Return" : _ref$redirectText
|
|
38844
|
+
redirectText = _ref$redirectText === void 0 ? "Return" : _ref$redirectText,
|
|
38845
|
+
buttonFlexOverride = _ref.buttonFlexOverride;
|
|
38750
38846
|
|
|
38751
38847
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
38752
38848
|
isMobile = _useContext.isMobile;
|
|
@@ -38783,7 +38879,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
38783
38879
|
}), /*#__PURE__*/React__default.createElement(SolidDivider$1, null), /*#__PURE__*/React__default.createElement(Box, {
|
|
38784
38880
|
padding: "2.5rem 0 3.125rem 0"
|
|
38785
38881
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
38786
|
-
justify: !!backButton ? "space-between" : "flex-end",
|
|
38882
|
+
justify: buttonFlexOverride ? buttonFlexOverride : !!backButton ? "space-between" : "flex-end",
|
|
38787
38883
|
align: "center",
|
|
38788
38884
|
childGap: "0.75rem"
|
|
38789
38885
|
}, backButton, forwardButton)));
|
|
@@ -38805,7 +38901,7 @@ var labeledAmountTotal = {
|
|
|
38805
38901
|
"default": "h6",
|
|
38806
38902
|
small: "pL"
|
|
38807
38903
|
};
|
|
38808
|
-
var fallbackValues$
|
|
38904
|
+
var fallbackValues$x = {
|
|
38809
38905
|
backgroundColor: backgroundColor$8,
|
|
38810
38906
|
lineItem: lineItem,
|
|
38811
38907
|
labeledAmountSubtotal: labeledAmountSubtotal,
|
|
@@ -38981,21 +39077,21 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
38981
39077
|
});
|
|
38982
39078
|
};
|
|
38983
39079
|
|
|
38984
|
-
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$
|
|
39080
|
+
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$x, "default");
|
|
38985
39081
|
|
|
38986
|
-
var linkColor$
|
|
39082
|
+
var linkColor$3 = {
|
|
38987
39083
|
"default": "#357fb8",
|
|
38988
39084
|
footer: "#ffffff"
|
|
38989
39085
|
};
|
|
38990
|
-
var fontSize$
|
|
39086
|
+
var fontSize$9 = {
|
|
38991
39087
|
"default": "1rem",
|
|
38992
39088
|
footer: "0.875rem"
|
|
38993
39089
|
};
|
|
38994
|
-
var lineHeight$
|
|
39090
|
+
var lineHeight$5 = {
|
|
38995
39091
|
"default": "1.5rem",
|
|
38996
39092
|
footer: "1.25rem"
|
|
38997
39093
|
};
|
|
38998
|
-
var fontWeight$
|
|
39094
|
+
var fontWeight$6 = {
|
|
38999
39095
|
"default": FONT_WEIGHT_REGULAR,
|
|
39000
39096
|
footer: FONT_WEIGHT_SEMIBOLD
|
|
39001
39097
|
};
|
|
@@ -39003,11 +39099,11 @@ var modalLinkHoverFocus = {
|
|
|
39003
39099
|
"default": "",
|
|
39004
39100
|
footer: "outline: none; text-decoration: underline;"
|
|
39005
39101
|
};
|
|
39006
|
-
var fallbackValues$
|
|
39007
|
-
linkColor: linkColor$
|
|
39008
|
-
fontSize: fontSize$
|
|
39009
|
-
lineHeight: lineHeight$
|
|
39010
|
-
fontWeight: fontWeight$
|
|
39102
|
+
var fallbackValues$y = {
|
|
39103
|
+
linkColor: linkColor$3,
|
|
39104
|
+
fontSize: fontSize$9,
|
|
39105
|
+
lineHeight: lineHeight$5,
|
|
39106
|
+
fontWeight: fontWeight$6,
|
|
39011
39107
|
modalLinkHoverFocus: modalLinkHoverFocus
|
|
39012
39108
|
};
|
|
39013
39109
|
|
|
@@ -39066,7 +39162,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
39066
39162
|
});
|
|
39067
39163
|
};
|
|
39068
39164
|
|
|
39069
|
-
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$
|
|
39165
|
+
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$y, "default");
|
|
39070
39166
|
|
|
39071
39167
|
function _templateObject2$l() {
|
|
39072
39168
|
var data = _taggedTemplateLiteral(["\n outline: none;\n"]);
|
|
@@ -39230,7 +39326,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
39230
39326
|
onKeyDown: function onKeyDown(e) {
|
|
39231
39327
|
return e.key === "Enter" && handleSubmit(e);
|
|
39232
39328
|
}
|
|
39233
|
-
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect, {
|
|
39329
|
+
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
39234
39330
|
labelTextWhenNoError: "Account type",
|
|
39235
39331
|
options: [{
|
|
39236
39332
|
text: "Select account type",
|
|
@@ -39327,6 +39423,8 @@ var expirationDateErrors = (_expirationDateErrors = {}, _defineProperty(_expirat
|
|
|
39327
39423
|
var cvvErrors = (_cvvErrors = {}, _defineProperty(_cvvErrors, required.error, "CVV is required"), _defineProperty(_cvvErrors, hasLength.error, "CVV is invalid"), _cvvErrors);
|
|
39328
39424
|
var zipCodeErrors = (_zipCodeErrors = {}, _defineProperty(_zipCodeErrors, required.error, "Zip code is required"), _defineProperty(_zipCodeErrors, hasLength.error, "Zip code is invalid"), _zipCodeErrors);
|
|
39329
39425
|
|
|
39426
|
+
var countryErrorMessages = _defineProperty({}, required.error, "Country is required");
|
|
39427
|
+
|
|
39330
39428
|
var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
39331
39429
|
var _ref$variant = _ref.variant,
|
|
39332
39430
|
variant = _ref$variant === void 0 ? "default" : _ref$variant,
|
|
@@ -39361,11 +39459,25 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
39361
39459
|
};
|
|
39362
39460
|
}
|
|
39363
39461
|
}, []);
|
|
39462
|
+
var isUS = fields.country.rawValue === "US";
|
|
39364
39463
|
return /*#__PURE__*/React__default.createElement(FormContainer$1, {
|
|
39365
39464
|
variant: variant,
|
|
39366
39465
|
role: "form",
|
|
39367
39466
|
"aria-label": "Card payment"
|
|
39368
|
-
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, /*#__PURE__*/React__default.createElement(
|
|
39467
|
+
}, /*#__PURE__*/React__default.createElement(FormInputColumn, null, !hideZipCode && /*#__PURE__*/React__default.createElement(CountryDropdown, {
|
|
39468
|
+
labelTextWhenNoError: "Country",
|
|
39469
|
+
errorMessages: countryErrorMessages,
|
|
39470
|
+
field: fields.country,
|
|
39471
|
+
onChange: function onChange(value) {
|
|
39472
|
+
actions.fields.country.set(value); // temporary measure to not dirty fields until
|
|
39473
|
+
// we can write a reset function for fields
|
|
39474
|
+
|
|
39475
|
+
if (fields.zipCode.rawValue) {
|
|
39476
|
+
actions.fields.zipCode.set("");
|
|
39477
|
+
}
|
|
39478
|
+
},
|
|
39479
|
+
showErrors: showErrors
|
|
39480
|
+
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39369
39481
|
labelTextWhenNoError: "Name on card",
|
|
39370
39482
|
errorMessages: nameOnCardErrors,
|
|
39371
39483
|
field: fields.nameOnCard,
|
|
@@ -39410,6 +39522,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
39410
39522
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
39411
39523
|
width: isMobile ? "100%" : "50%"
|
|
39412
39524
|
}, /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39525
|
+
isNum: isUS,
|
|
39526
|
+
formatter: isUS ? zipFormat : null,
|
|
39413
39527
|
labelTextWhenNoError: "Zip code",
|
|
39414
39528
|
errorMessages: zipCodeErrors,
|
|
39415
39529
|
field: fields.zipCode,
|
|
@@ -39439,6 +39553,10 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
39439
39553
|
};
|
|
39440
39554
|
|
|
39441
39555
|
var formConfig$7 = {
|
|
39556
|
+
country: {
|
|
39557
|
+
defaultValue: "US",
|
|
39558
|
+
validators: [required()]
|
|
39559
|
+
},
|
|
39442
39560
|
nameOnCard: {
|
|
39443
39561
|
validators: [required()]
|
|
39444
39562
|
},
|
|
@@ -39455,8 +39573,8 @@ var formConfig$7 = {
|
|
|
39455
39573
|
constraints: [onlyIntegers(), hasLength(0, 4)]
|
|
39456
39574
|
},
|
|
39457
39575
|
zipCode: {
|
|
39458
|
-
validators: [required(), hasLength(5, 5)],
|
|
39459
|
-
constraints: [onlyIntegers(), hasLength(0,
|
|
39576
|
+
validators: [required(), validateWhen(validateWhen(hasLength(5, 5), hasLength(0, 5)), matchesRegex("US"), "country"), validateWhen(validateWhen(hasLength(9, 9), hasLength(6, 9)), matchesRegex("US"), "country")],
|
|
39577
|
+
constraints: [validateWhen(onlyIntegers(), matchesRegex("US"), "country"), validateWhen(hasLength(0, 9), matchesRegex("US"), "country")]
|
|
39460
39578
|
}
|
|
39461
39579
|
};
|
|
39462
39580
|
|
|
@@ -39568,13 +39686,13 @@ PhoneForm.mapDispatchToProps = mapDispatchToProps$8;
|
|
|
39568
39686
|
var headingBackgroundColor$1 = "".concat(WHITE);
|
|
39569
39687
|
var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
39570
39688
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
39571
|
-
var borderColor$
|
|
39689
|
+
var borderColor$3 = "".concat(GREY_CHATEAU);
|
|
39572
39690
|
var focusStyles = "outline: none;";
|
|
39573
|
-
var fallbackValues$
|
|
39691
|
+
var fallbackValues$z = {
|
|
39574
39692
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
39575
39693
|
headingDisabledColor: headingDisabledColor,
|
|
39576
39694
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
39577
|
-
borderColor: borderColor$
|
|
39695
|
+
borderColor: borderColor$3,
|
|
39578
39696
|
focusStyles: focusStyles
|
|
39579
39697
|
};
|
|
39580
39698
|
|
|
@@ -39761,7 +39879,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
39761
39879
|
})));
|
|
39762
39880
|
};
|
|
39763
39881
|
|
|
39764
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
39882
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$z);
|
|
39765
39883
|
|
|
39766
39884
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
39767
39885
|
var _emailErrorMessages, _passwordErrorMessage;
|
|
@@ -40050,7 +40168,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
40050
40168
|
var activeTabBackground = "#FFFFFF";
|
|
40051
40169
|
var activeTabAccent = "#15749D";
|
|
40052
40170
|
var activeTabHover = "#B8D5E1";
|
|
40053
|
-
var fallbackValues$
|
|
40171
|
+
var fallbackValues$A = {
|
|
40054
40172
|
activeTabBackground: activeTabBackground,
|
|
40055
40173
|
activeTabAccent: activeTabAccent,
|
|
40056
40174
|
activeTabHover: activeTabHover
|
|
@@ -40106,13 +40224,13 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
40106
40224
|
})));
|
|
40107
40225
|
};
|
|
40108
40226
|
|
|
40109
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
40227
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$A);
|
|
40110
40228
|
|
|
40111
40229
|
var backgroundColor$9 = {
|
|
40112
40230
|
"default": "#ffffff",
|
|
40113
40231
|
footer: "#ffffff"
|
|
40114
40232
|
};
|
|
40115
|
-
var linkColor$
|
|
40233
|
+
var linkColor$4 = {
|
|
40116
40234
|
"default": "#357fb8",
|
|
40117
40235
|
footer: "#ffffff"
|
|
40118
40236
|
};
|
|
@@ -40120,15 +40238,15 @@ var border$2 = {
|
|
|
40120
40238
|
"default": "#cdcdcd",
|
|
40121
40239
|
footer: "#cdcdcd"
|
|
40122
40240
|
};
|
|
40123
|
-
var fontSize$
|
|
40241
|
+
var fontSize$a = {
|
|
40124
40242
|
"default": "1rem",
|
|
40125
40243
|
footer: "0.875rem"
|
|
40126
40244
|
};
|
|
40127
|
-
var lineHeight$
|
|
40245
|
+
var lineHeight$6 = {
|
|
40128
40246
|
"default": "1.5rem",
|
|
40129
40247
|
footer: "1.25rem"
|
|
40130
40248
|
};
|
|
40131
|
-
var fontWeight$
|
|
40249
|
+
var fontWeight$7 = {
|
|
40132
40250
|
"default": FONT_WEIGHT_REGULAR,
|
|
40133
40251
|
footer: FONT_WEIGHT_SEMIBOLD
|
|
40134
40252
|
};
|
|
@@ -40136,13 +40254,13 @@ var modalLinkHoverFocus$1 = {
|
|
|
40136
40254
|
"default": "",
|
|
40137
40255
|
footer: "outline: none; text-decoration: underline;"
|
|
40138
40256
|
};
|
|
40139
|
-
var fallbackValues$
|
|
40257
|
+
var fallbackValues$B = {
|
|
40140
40258
|
backgroundColor: backgroundColor$9,
|
|
40141
|
-
linkColor: linkColor$
|
|
40259
|
+
linkColor: linkColor$4,
|
|
40142
40260
|
border: border$2,
|
|
40143
|
-
fontSize: fontSize$
|
|
40144
|
-
lineHeight: lineHeight$
|
|
40145
|
-
fontWeight: fontWeight$
|
|
40261
|
+
fontSize: fontSize$a,
|
|
40262
|
+
lineHeight: lineHeight$6,
|
|
40263
|
+
fontWeight: fontWeight$7,
|
|
40146
40264
|
modalLinkHoverFocus: modalLinkHoverFocus$1
|
|
40147
40265
|
};
|
|
40148
40266
|
|
|
@@ -40200,7 +40318,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
40200
40318
|
});
|
|
40201
40319
|
};
|
|
40202
40320
|
|
|
40203
|
-
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$
|
|
40321
|
+
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$B, "default");
|
|
40204
40322
|
|
|
40205
40323
|
function _templateObject2$m() {
|
|
40206
40324
|
var data = _taggedTemplateLiteral([""]);
|
|
@@ -40324,13 +40442,13 @@ var Timeout = function Timeout(_ref) {
|
|
|
40324
40442
|
|
|
40325
40443
|
var Timeout$1 = withWindowSize(Timeout);
|
|
40326
40444
|
|
|
40327
|
-
var fontWeight$
|
|
40445
|
+
var fontWeight$8 = "600";
|
|
40328
40446
|
var fontColor$1 = WHITE;
|
|
40329
40447
|
var textAlign$1 = "left";
|
|
40330
40448
|
var headerBackgroundColor = BRIGHT_GREY;
|
|
40331
40449
|
var imageBackgroundColor = MATISSE_BLUE;
|
|
40332
|
-
var fallbackValues$
|
|
40333
|
-
fontWeight: fontWeight$
|
|
40450
|
+
var fallbackValues$C = {
|
|
40451
|
+
fontWeight: fontWeight$8,
|
|
40334
40452
|
fontColor: fontColor$1,
|
|
40335
40453
|
textAlign: textAlign$1,
|
|
40336
40454
|
headerBackgroundColor: headerBackgroundColor,
|
|
@@ -40382,7 +40500,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
|
|
|
40382
40500
|
})))));
|
|
40383
40501
|
};
|
|
40384
40502
|
|
|
40385
|
-
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$
|
|
40503
|
+
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$C));
|
|
40386
40504
|
|
|
40387
40505
|
var WorkflowTile = function WorkflowTile(_ref) {
|
|
40388
40506
|
var _ref$workflowName = _ref.workflowName,
|
|
@@ -40430,7 +40548,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
40430
40548
|
};
|
|
40431
40549
|
|
|
40432
40550
|
var pageBackground = "#F6F6F9";
|
|
40433
|
-
var fallbackValues$
|
|
40551
|
+
var fallbackValues$D = {
|
|
40434
40552
|
pageBackground: pageBackground
|
|
40435
40553
|
};
|
|
40436
40554
|
|
|
@@ -40477,7 +40595,7 @@ var CenterSingle = function CenterSingle(_ref) {
|
|
|
40477
40595
|
})));
|
|
40478
40596
|
};
|
|
40479
40597
|
|
|
40480
|
-
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$
|
|
40598
|
+
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$D));
|
|
40481
40599
|
|
|
40482
40600
|
var CenterStack = function CenterStack(_ref) {
|
|
40483
40601
|
var header = _ref.header,
|
|
@@ -40519,7 +40637,7 @@ var CenterStack = function CenterStack(_ref) {
|
|
|
40519
40637
|
})));
|
|
40520
40638
|
};
|
|
40521
40639
|
|
|
40522
|
-
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$
|
|
40640
|
+
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$D));
|
|
40523
40641
|
|
|
40524
40642
|
var CenterSingle$2 = function CenterSingle(_ref) {
|
|
40525
40643
|
var header = _ref.header,
|
|
@@ -40559,7 +40677,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
|
|
|
40559
40677
|
})));
|
|
40560
40678
|
};
|
|
40561
40679
|
|
|
40562
|
-
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$
|
|
40680
|
+
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$D));
|
|
40563
40681
|
|
|
40564
40682
|
var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
40565
40683
|
var header = _ref.header,
|
|
@@ -40613,7 +40731,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
|
40613
40731
|
})));
|
|
40614
40732
|
};
|
|
40615
40733
|
|
|
40616
|
-
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$
|
|
40734
|
+
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$D));
|
|
40617
40735
|
|
|
40618
40736
|
var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
40619
40737
|
var header = _ref.header,
|
|
@@ -40684,7 +40802,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
|
40684
40802
|
})));
|
|
40685
40803
|
};
|
|
40686
40804
|
|
|
40687
|
-
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$
|
|
40805
|
+
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$D));
|
|
40688
40806
|
|
|
40689
40807
|
|
|
40690
40808
|
|
|
@@ -40754,7 +40872,7 @@ exports.FormContainer = FormContainer$1;
|
|
|
40754
40872
|
exports.FormInput = FormInput$1;
|
|
40755
40873
|
exports.FormInputColumn = FormInputColumn;
|
|
40756
40874
|
exports.FormInputRow = FormInputRow;
|
|
40757
|
-
exports.FormSelect = FormSelect;
|
|
40875
|
+
exports.FormSelect = FormSelect$1;
|
|
40758
40876
|
exports.FormattedAddress = FormattedAddress$1;
|
|
40759
40877
|
exports.FormattedCreditCard = FormattedCreditCard$1;
|
|
40760
40878
|
exports.Frame = Frame;
|