@thecb/components 6.3.1-beta.2 → 6.3.1-beta.5
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/README.md +39 -0
- package/dist/index.cjs.js +587 -414
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +51 -24
- package/dist/index.esm.js +585 -411
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card/Card.js +60 -21
- package/src/components/atoms/card/Card.theme.js +9 -2
- package/src/components/atoms/card/CardHeader.js +27 -0
- package/src/components/atoms/card/CardImage.styled.js +9 -0
- package/src/components/atoms/card/CardText.js +41 -0
- package/src/components/{molecules/welcome-card/WelcomeCard.theme.js → atoms/card/CardText.theme.js} +3 -6
- package/src/components/atoms/card/index.d.ts +21 -1
- package/src/components/atoms/display-card/DisplayCard.js +1 -1
- package/src/components/atoms/index.d.ts +1 -0
- package/src/components/atoms/layouts/Switcher.d.ts +17 -0
- package/src/components/atoms/layouts/index.d.ts +1 -0
- package/src/components/atoms/text/index.d.ts +16 -0
- package/src/components/molecules/index.d.ts +0 -2
- package/src/components/molecules/index.js +0 -2
- package/src/components/molecules/card-with-header/CardWithHeader.js +0 -34
- package/src/components/molecules/card-with-header/CardWithHeader.theme.js +0 -9
- package/src/components/molecules/card-with-header/index.d.ts +0 -11
- package/src/components/molecules/card-with-header/index.js +0 -2
- package/src/components/molecules/welcome-card/WelcomeCard.js +0 -64
- package/src/components/molecules/welcome-card/index.d.ts +0 -15
- package/src/components/molecules/welcome-card/index.js +0 -3
package/dist/index.cjs.js
CHANGED
|
@@ -6338,7 +6338,7 @@ var general = /*#__PURE__*/Object.freeze({
|
|
|
6338
6338
|
throttle: throttle
|
|
6339
6339
|
});
|
|
6340
6340
|
|
|
6341
|
-
var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"];
|
|
6341
|
+
var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children", "variant"];
|
|
6342
6342
|
|
|
6343
6343
|
var Text = function Text(_ref) {
|
|
6344
6344
|
var themeValues = _ref.themeValues,
|
|
@@ -6356,6 +6356,8 @@ var Text = function Text(_ref) {
|
|
|
6356
6356
|
as = _ref.as,
|
|
6357
6357
|
dataQa = _ref.dataQa,
|
|
6358
6358
|
children = _ref.children,
|
|
6359
|
+
_ref$variant = _ref.variant,
|
|
6360
|
+
variant = _ref$variant === void 0 ? "p" : _ref$variant,
|
|
6359
6361
|
rest = _objectWithoutProperties(_ref, _excluded$1);
|
|
6360
6362
|
|
|
6361
6363
|
return /*#__PURE__*/React__default.createElement(TextSpan, _extends({
|
|
@@ -6369,7 +6371,8 @@ var Text = function Text(_ref) {
|
|
|
6369
6371
|
onClick: onClick,
|
|
6370
6372
|
onKeyPress: onKeyPress,
|
|
6371
6373
|
"data-qa": dataQa,
|
|
6372
|
-
$textWrap: textWrap
|
|
6374
|
+
$textWrap: textWrap,
|
|
6375
|
+
$variant: variant
|
|
6373
6376
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
6374
6377
|
};
|
|
6375
6378
|
|
|
@@ -22393,53 +22396,6 @@ var DisplayBox = function DisplayBox(_ref) {
|
|
|
22393
22396
|
|
|
22394
22397
|
var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$h);
|
|
22395
22398
|
|
|
22396
|
-
var DisplayCard = function DisplayCard(_ref) {
|
|
22397
|
-
var title = _ref.title,
|
|
22398
|
-
item = _ref.item,
|
|
22399
|
-
buttonText = _ref.buttonText,
|
|
22400
|
-
buttonAction = _ref.buttonAction,
|
|
22401
|
-
url = _ref.url,
|
|
22402
|
-
_ref$link = _ref.link,
|
|
22403
|
-
link = _ref$link === void 0 ? false : _ref$link;
|
|
22404
|
-
return /*#__PURE__*/React__default.createElement(Box, {
|
|
22405
|
-
padding: "0 0 16px"
|
|
22406
|
-
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
22407
|
-
childGap: "0rem"
|
|
22408
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
22409
|
-
padding: "0 0 8px 0"
|
|
22410
|
-
}, /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
22411
|
-
variant: "pL",
|
|
22412
|
-
color: CHARADE_GREY,
|
|
22413
|
-
extraStyles: "letter-spacing: 0.29px"
|
|
22414
|
-
}, title)), /*#__PURE__*/React__default.createElement(Box, {
|
|
22415
|
-
padding: "0"
|
|
22416
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
22417
|
-
padding: "24px",
|
|
22418
|
-
borderSize: "1px",
|
|
22419
|
-
borderRadius: "4px",
|
|
22420
|
-
background: WHITE,
|
|
22421
|
-
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
22422
|
-
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
22423
|
-
justify: "space-between",
|
|
22424
|
-
align: "center"
|
|
22425
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
22426
|
-
variant: "p",
|
|
22427
|
-
color: CHARADE_GREY
|
|
22428
|
-
}, item), link ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|
|
22429
|
-
text: buttonText,
|
|
22430
|
-
url: url,
|
|
22431
|
-
variant: "smallGhost",
|
|
22432
|
-
dataQa: buttonText,
|
|
22433
|
-
extraStyles: "min-width: 0;"
|
|
22434
|
-
}) : buttonAction ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
22435
|
-
text: buttonText,
|
|
22436
|
-
action: buttonAction,
|
|
22437
|
-
variant: "smallGhost",
|
|
22438
|
-
dataQa: buttonText,
|
|
22439
|
-
extraStyles: "min-width: 0;"
|
|
22440
|
-
}) : /*#__PURE__*/React__default.createElement(React.Fragment, null))))));
|
|
22441
|
-
};
|
|
22442
|
-
|
|
22443
22399
|
function _extends$2() {
|
|
22444
22400
|
_extends$2 = Object.assign || function (target) {
|
|
22445
22401
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -22718,6 +22674,284 @@ var FormattedInput = function FormattedInput(_ref) {
|
|
|
22718
22674
|
}));
|
|
22719
22675
|
};
|
|
22720
22676
|
|
|
22677
|
+
var formatDelimiter = "_";
|
|
22678
|
+
var phoneFormats = ["", "_", "__", "(___) ", "(___) _", "(___) __", "(___) ___-", "(___) ___-_", "(___) ___-__", "(___) ___-___", "(___) ___-____"];
|
|
22679
|
+
var zipFormats = ["", "_", "__", "___", "____", "_____", "______", "_____-__", "_____-___", "_____-____"];
|
|
22680
|
+
var creditCardFormats = ["", "_", "__", "___", "____", "____ _", "____ __", "____ ___", "____ ____", "____ ____ _", "____ ____ __", "____ ____ ___", "____ ____ ____", "____ ____ ____ _", "____ ____ ____ __", "____ ____ ____ ___", "____ ____ ____ ____"];
|
|
22681
|
+
var moneyFormats = ["", "$0.0_", "$0.__", "$_.__", "$__.__", "$___.__", "$_,___.__", "$__,___.__", "$___,___.__", "$_,___,___.__", "$__,___,___.__", "$___,___,___.__", "$_,___,___,___.__", "$__,___,___,___.__", "$___,___,___,___.__", "$_,___,___,___,___.__"];
|
|
22682
|
+
var expirationDateFormats = ["", "_", "__/", "__/_", "__/__"];
|
|
22683
|
+
var zipFormat = createFormat(zipFormats, formatDelimiter);
|
|
22684
|
+
var creditCardFormat = createFormat(creditCardFormats, formatDelimiter);
|
|
22685
|
+
var expirationDateFormat = createFormat(expirationDateFormats, formatDelimiter);
|
|
22686
|
+
var phoneFormat = createFormat(phoneFormats, formatDelimiter);
|
|
22687
|
+
var moneyFormat = createFormat(moneyFormats, formatDelimiter);
|
|
22688
|
+
|
|
22689
|
+
var formats = /*#__PURE__*/Object.freeze({
|
|
22690
|
+
__proto__: null,
|
|
22691
|
+
formatDelimiter: formatDelimiter,
|
|
22692
|
+
phoneFormats: phoneFormats,
|
|
22693
|
+
moneyFormats: moneyFormats,
|
|
22694
|
+
expirationDateFormats: expirationDateFormats,
|
|
22695
|
+
zipFormat: zipFormat,
|
|
22696
|
+
creditCardFormat: creditCardFormat,
|
|
22697
|
+
expirationDateFormat: expirationDateFormat,
|
|
22698
|
+
phoneFormat: phoneFormat,
|
|
22699
|
+
moneyFormat: moneyFormat
|
|
22700
|
+
});
|
|
22701
|
+
|
|
22702
|
+
var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
|
|
22703
|
+
var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
22704
|
+
// Only move focus when "hasErrors" is true
|
|
22705
|
+
// "hasErrors" is managed by container page of form
|
|
22706
|
+
// typically set to "true" on attempted form submission, if errors exist
|
|
22707
|
+
// Reset errors, if provided, resets the error state tracking in order to properly re-run
|
|
22708
|
+
React.useEffect(function () {
|
|
22709
|
+
if (hasErrors) {
|
|
22710
|
+
var _inputsWithErrors$;
|
|
22711
|
+
|
|
22712
|
+
var inputsWithErrors = document.querySelectorAll("input[aria-invalid=true]");
|
|
22713
|
+
inputsWithErrors === null || inputsWithErrors === void 0 ? void 0 : (_inputsWithErrors$ = inputsWithErrors[0]) === null || _inputsWithErrors$ === void 0 ? void 0 : _inputsWithErrors$.focus();
|
|
22714
|
+
}
|
|
22715
|
+
|
|
22716
|
+
return function () {
|
|
22717
|
+
return resetHasErrors(false);
|
|
22718
|
+
};
|
|
22719
|
+
});
|
|
22720
|
+
};
|
|
22721
|
+
|
|
22722
|
+
/*
|
|
22723
|
+
Hook that assigns a click event listener to the main document element
|
|
22724
|
+
Returns a ref to attach to another element (like an icon/button that triggers a popover)
|
|
22725
|
+
If a click event gets captured by the document and the assigned element isn't the target
|
|
22726
|
+
hook will run whatever handler is passed (eg a function that closes a popover)
|
|
22727
|
+
|
|
22728
|
+
See popover component for implementation
|
|
22729
|
+
|
|
22730
|
+
*/
|
|
22731
|
+
|
|
22732
|
+
var useOutsideClickHook$1 = function useOutsideClickHook(handler) {
|
|
22733
|
+
var ref = React.useRef();
|
|
22734
|
+
React.useEffect(function () {
|
|
22735
|
+
}, [ref]);
|
|
22736
|
+
return ref;
|
|
22737
|
+
};
|
|
22738
|
+
|
|
22739
|
+
|
|
22740
|
+
|
|
22741
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
22742
|
+
__proto__: null,
|
|
22743
|
+
formats: formats,
|
|
22744
|
+
general: general,
|
|
22745
|
+
theme: themeUtils,
|
|
22746
|
+
useFocusInvalidInput: useFocusInvalidInput,
|
|
22747
|
+
useOutsideClick: useOutsideClickHook$1
|
|
22748
|
+
});
|
|
22749
|
+
|
|
22750
|
+
var hoverColor$4 = "#116285";
|
|
22751
|
+
var activeColor$4 = "#0E506D";
|
|
22752
|
+
var popoverTriggerColor = "#15749D";
|
|
22753
|
+
var fallbackValues$i = {
|
|
22754
|
+
hoverColor: hoverColor$4,
|
|
22755
|
+
activeColor: activeColor$4,
|
|
22756
|
+
popoverTriggerColor: popoverTriggerColor
|
|
22757
|
+
};
|
|
22758
|
+
|
|
22759
|
+
var Popover = function Popover(_ref) {
|
|
22760
|
+
var themeValues = _ref.themeValues,
|
|
22761
|
+
_ref$triggerText = _ref.triggerText,
|
|
22762
|
+
triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
|
|
22763
|
+
_ref$content = _ref.content,
|
|
22764
|
+
content = _ref$content === void 0 ? "" : _ref$content,
|
|
22765
|
+
_ref$hasIcon = _ref.hasIcon,
|
|
22766
|
+
hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
|
|
22767
|
+
Icon = _ref.icon,
|
|
22768
|
+
_ref$iconHelpText = _ref.iconHelpText,
|
|
22769
|
+
iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
|
|
22770
|
+
_ref$popoverID = _ref.popoverID,
|
|
22771
|
+
popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
|
|
22772
|
+
_ref$popoverFocus = _ref.popoverFocus,
|
|
22773
|
+
popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
|
|
22774
|
+
extraStyles = _ref.extraStyles,
|
|
22775
|
+
textExtraStyles = _ref.textExtraStyles,
|
|
22776
|
+
_ref$minWidth = _ref.minWidth,
|
|
22777
|
+
minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
|
|
22778
|
+
_ref$maxWidth = _ref.maxWidth,
|
|
22779
|
+
maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
|
|
22780
|
+
_ref$height = _ref.height,
|
|
22781
|
+
height = _ref$height === void 0 ? "auto" : _ref$height,
|
|
22782
|
+
position = _ref.position,
|
|
22783
|
+
arrowPosition = _ref.arrowPosition;
|
|
22784
|
+
var hoverColor = themeValues.hoverColor,
|
|
22785
|
+
activeColor = themeValues.activeColor,
|
|
22786
|
+
popoverTriggerColor = themeValues.popoverTriggerColor;
|
|
22787
|
+
|
|
22788
|
+
var _ref2 = position !== null && position !== void 0 ? position : {},
|
|
22789
|
+
_ref2$top = _ref2.top,
|
|
22790
|
+
top = _ref2$top === void 0 ? "-110px" : _ref2$top,
|
|
22791
|
+
_ref2$right = _ref2.right,
|
|
22792
|
+
right = _ref2$right === void 0 ? "auto" : _ref2$right,
|
|
22793
|
+
_ref2$bottom = _ref2.bottom,
|
|
22794
|
+
bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
|
|
22795
|
+
_ref2$left = _ref2.left,
|
|
22796
|
+
left = _ref2$left === void 0 ? "-225px" : _ref2$left;
|
|
22797
|
+
|
|
22798
|
+
var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
|
|
22799
|
+
_ref3$arrowTop = _ref3.arrowTop,
|
|
22800
|
+
arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
|
|
22801
|
+
_ref3$arrowRight = _ref3.arrowRight,
|
|
22802
|
+
arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
|
|
22803
|
+
_ref3$arrowBottom = _ref3.arrowBottom,
|
|
22804
|
+
arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
|
|
22805
|
+
_ref3$arrowLeft = _ref3.arrowLeft,
|
|
22806
|
+
arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
|
|
22807
|
+
|
|
22808
|
+
var _useState = React.useState(false),
|
|
22809
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
22810
|
+
popoverOpen = _useState2[0],
|
|
22811
|
+
togglePopover = _useState2[1];
|
|
22812
|
+
|
|
22813
|
+
var handleTogglePopover = function handleTogglePopover(popoverState) {
|
|
22814
|
+
if (popoverOpen !== popoverState) {
|
|
22815
|
+
togglePopover(popoverState);
|
|
22816
|
+
}
|
|
22817
|
+
};
|
|
22818
|
+
|
|
22819
|
+
var triggerRef = useOutsideClickHook(function () {
|
|
22820
|
+
return handleTogglePopover(false);
|
|
22821
|
+
});
|
|
22822
|
+
return /*#__PURE__*/React__default.createElement(Box, {
|
|
22823
|
+
padding: "0",
|
|
22824
|
+
extraStyles: "position: relative; ".concat(extraStyles)
|
|
22825
|
+
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
22826
|
+
action: function action() {
|
|
22827
|
+
return noop;
|
|
22828
|
+
},
|
|
22829
|
+
onFocus: function onFocus() {
|
|
22830
|
+
handleTogglePopover(true);
|
|
22831
|
+
},
|
|
22832
|
+
onBlur: function onBlur() {
|
|
22833
|
+
handleTogglePopover(false);
|
|
22834
|
+
},
|
|
22835
|
+
onKeyDown: function onKeyDown(e) {
|
|
22836
|
+
if (e.keyCode === 27) {
|
|
22837
|
+
handleTogglePopover(false);
|
|
22838
|
+
}
|
|
22839
|
+
},
|
|
22840
|
+
onTouchStart: function onTouchStart() {
|
|
22841
|
+
return handleTogglePopover(true);
|
|
22842
|
+
},
|
|
22843
|
+
onTouchEnd: function onTouchEnd() {
|
|
22844
|
+
return handleTogglePopover(false);
|
|
22845
|
+
},
|
|
22846
|
+
onMouseEnter: function onMouseEnter() {
|
|
22847
|
+
return handleTogglePopover(true);
|
|
22848
|
+
},
|
|
22849
|
+
onMouseLeave: function onMouseLeave() {
|
|
22850
|
+
return handleTogglePopover(false);
|
|
22851
|
+
},
|
|
22852
|
+
contentOverride: true,
|
|
22853
|
+
variant: "smallGhost",
|
|
22854
|
+
tabIndex: "0",
|
|
22855
|
+
id: "btnPopover".concat(popoverID),
|
|
22856
|
+
"aria-expanded": popoverOpen,
|
|
22857
|
+
"aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
|
|
22858
|
+
"aria-describedby": "Disclosure".concat(popoverID),
|
|
22859
|
+
"aria-controls": "Disclosed".concat(popoverID),
|
|
22860
|
+
ref: triggerRef
|
|
22861
|
+
}, hasIcon && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, null), /*#__PURE__*/React__default.createElement(Box, {
|
|
22862
|
+
padding: "0",
|
|
22863
|
+
srOnly: true
|
|
22864
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
22865
|
+
id: "btnPopover".concat(popoverID, "_info")
|
|
22866
|
+
}, iconHelpText))), !hasIcon && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
22867
|
+
color: popoverTriggerColor,
|
|
22868
|
+
extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
|
|
22869
|
+
}, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
|
|
22870
|
+
background: "white",
|
|
22871
|
+
borderRadius: "4px",
|
|
22872
|
+
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
|
|
22873
|
+
id: "Disclosed".concat(popoverID),
|
|
22874
|
+
role: "region",
|
|
22875
|
+
"aria-describedby": "Disclosure".concat(popoverID),
|
|
22876
|
+
tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
|
|
22877
|
+
minWidth: minWidth,
|
|
22878
|
+
maxWidth: maxWidth,
|
|
22879
|
+
extraStyles: "\n display: ".concat(popoverOpen ? "block" : "none", "; \n position: absolute; \n top: ").concat(top, "; \n right: ").concat(right, "; \n bottom: ").concat(bottom, "; \n left: ").concat(left, ";\n height: ").concat(height, "\n ")
|
|
22880
|
+
}, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
|
|
22881
|
+
padding: "0",
|
|
22882
|
+
extraStyles: "position: absolute; content: \"\"; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid rgba(255, 255, 255, 0.85); filter: drop-shadow(2px 8px 14px black); bottom: ".concat(arrowBottom, "; right: ").concat(arrowRight, "; top: ").concat(arrowTop, "; left: ").concat(arrowLeft, ";")
|
|
22883
|
+
})));
|
|
22884
|
+
};
|
|
22885
|
+
|
|
22886
|
+
var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$i);
|
|
22887
|
+
|
|
22888
|
+
var DisplayCard = function DisplayCard(_ref) {
|
|
22889
|
+
var title = _ref.title,
|
|
22890
|
+
item = _ref.item,
|
|
22891
|
+
buttonText = _ref.buttonText,
|
|
22892
|
+
buttonAction = _ref.buttonAction,
|
|
22893
|
+
url = _ref.url,
|
|
22894
|
+
_ref$link = _ref.link,
|
|
22895
|
+
link = _ref$link === void 0 ? false : _ref$link,
|
|
22896
|
+
helpText = _ref.helpText,
|
|
22897
|
+
_ref$hasPopover = _ref.hasPopover,
|
|
22898
|
+
hasPopover = _ref$hasPopover === void 0 ? false : _ref$hasPopover,
|
|
22899
|
+
_ref$popoverTriggerTe = _ref.popoverTriggerText,
|
|
22900
|
+
popoverTriggerText = _ref$popoverTriggerTe === void 0 ? "" : _ref$popoverTriggerTe,
|
|
22901
|
+
_ref$popoverContent = _ref.popoverContent,
|
|
22902
|
+
popoverContent = _ref$popoverContent === void 0 ? "" : _ref$popoverContent,
|
|
22903
|
+
popoverExtraStyles = _ref.popoverExtraStyles,
|
|
22904
|
+
popoverTextExtraStyles = _ref.popoverTextExtraStyles;
|
|
22905
|
+
return /*#__PURE__*/React__default.createElement(Box, {
|
|
22906
|
+
padding: "0 0 16px"
|
|
22907
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
22908
|
+
childGap: "0rem"
|
|
22909
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
22910
|
+
padding: "0 0 8px 0"
|
|
22911
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
22912
|
+
justify: "space-between",
|
|
22913
|
+
align: "center",
|
|
22914
|
+
overflow: true
|
|
22915
|
+
}, /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
22916
|
+
variant: "pL",
|
|
22917
|
+
color: CHARADE_GREY,
|
|
22918
|
+
extraStyles: "letter-spacing: 0.29px"
|
|
22919
|
+
}, title), hasPopover && /*#__PURE__*/React__default.createElement(Popover$1, {
|
|
22920
|
+
triggerText: popoverTriggerText,
|
|
22921
|
+
content: popoverContent,
|
|
22922
|
+
popoverExtraStyles: popoverExtraStyles,
|
|
22923
|
+
popoverTextExtraStyles: popoverTextExtraStyles
|
|
22924
|
+
}))), /*#__PURE__*/React__default.createElement(Box, {
|
|
22925
|
+
padding: "0"
|
|
22926
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
22927
|
+
padding: "24px",
|
|
22928
|
+
borderSize: "1px",
|
|
22929
|
+
borderRadius: "4px",
|
|
22930
|
+
background: WHITE,
|
|
22931
|
+
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
22932
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
22933
|
+
justify: "space-between",
|
|
22934
|
+
align: "center"
|
|
22935
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
22936
|
+
color: CHARADE_GREY
|
|
22937
|
+
}, item), link ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|
|
22938
|
+
text: buttonText,
|
|
22939
|
+
url: url,
|
|
22940
|
+
variant: "smallGhost",
|
|
22941
|
+
dataQa: buttonText,
|
|
22942
|
+
extraStyles: "min-width: 0;"
|
|
22943
|
+
}) : buttonAction ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
22944
|
+
text: buttonText,
|
|
22945
|
+
action: buttonAction,
|
|
22946
|
+
variant: "smallGhost",
|
|
22947
|
+
dataQa: buttonText,
|
|
22948
|
+
extraStyles: "min-width: 0;"
|
|
22949
|
+
}) : helpText ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
22950
|
+
color: STORM_GREY,
|
|
22951
|
+
extraStyles: "font-style: italic;"
|
|
22952
|
+
}, helpText) : /*#__PURE__*/React__default.createElement(React.Fragment, null))))));
|
|
22953
|
+
};
|
|
22954
|
+
|
|
22721
22955
|
var linkColor$2 = {
|
|
22722
22956
|
"default": "".concat(MATISSE_BLUE),
|
|
22723
22957
|
disabled: "".concat(MATISSE_BLUE)
|
|
@@ -22767,7 +23001,7 @@ var hoverFocusStyles$1 = {
|
|
|
22767
23001
|
var formFooterPanel = {
|
|
22768
23002
|
"default": "".concat(INFO_BLUE)
|
|
22769
23003
|
};
|
|
22770
|
-
var fallbackValues$
|
|
23004
|
+
var fallbackValues$j = {
|
|
22771
23005
|
linkColor: linkColor$2,
|
|
22772
23006
|
formBackgroundColor: formBackgroundColor$1,
|
|
22773
23007
|
inputBackgroundColor: inputBackgroundColor$1,
|
|
@@ -22989,7 +23223,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
22989
23223
|
}, decorator)));
|
|
22990
23224
|
};
|
|
22991
23225
|
|
|
22992
|
-
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$
|
|
23226
|
+
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$j, "default");
|
|
22993
23227
|
|
|
22994
23228
|
var _excluded$q = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
22995
23229
|
|
|
@@ -23045,7 +23279,7 @@ var FormContainer = function FormContainer(_ref) {
|
|
|
23045
23279
|
}, rest), children);
|
|
23046
23280
|
};
|
|
23047
23281
|
|
|
23048
|
-
var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$
|
|
23282
|
+
var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$j, "default");
|
|
23049
23283
|
|
|
23050
23284
|
var FormFooterPanel = function FormFooterPanel(_ref) {
|
|
23051
23285
|
var themeValues = _ref.themeValues,
|
|
@@ -23069,7 +23303,7 @@ var FormFooterPanel = function FormFooterPanel(_ref) {
|
|
|
23069
23303
|
})));
|
|
23070
23304
|
};
|
|
23071
23305
|
|
|
23072
|
-
var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$
|
|
23306
|
+
var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$j, "default");
|
|
23073
23307
|
|
|
23074
23308
|
var fontSize$7 = {
|
|
23075
23309
|
"default": "1rem",
|
|
@@ -23083,7 +23317,7 @@ var color$7 = {
|
|
|
23083
23317
|
"default": "".concat(CHARADE_GREY),
|
|
23084
23318
|
radio: "".concat(MINESHAFT_GREY)
|
|
23085
23319
|
};
|
|
23086
|
-
var fallbackValues$
|
|
23320
|
+
var fallbackValues$k = {
|
|
23087
23321
|
fontSize: fontSize$7,
|
|
23088
23322
|
padding: padding$1,
|
|
23089
23323
|
color: color$7
|
|
@@ -23126,11 +23360,11 @@ var FormattedAddress = function FormattedAddress(_ref) {
|
|
|
23126
23360
|
}, city, ", ", stateProvince, " ".concat(zip), country ? " ".concat(country) : "")));
|
|
23127
23361
|
};
|
|
23128
23362
|
|
|
23129
|
-
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$
|
|
23363
|
+
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$k, "default");
|
|
23130
23364
|
|
|
23131
23365
|
var textColor$1 = "".concat(CHARADE_GREY);
|
|
23132
23366
|
var autopayTextColor = "".concat(REGENT_GREY);
|
|
23133
|
-
var fallbackValues$
|
|
23367
|
+
var fallbackValues$l = {
|
|
23134
23368
|
textColor: textColor$1,
|
|
23135
23369
|
autopayTextColor: autopayTextColor
|
|
23136
23370
|
};
|
|
@@ -23196,7 +23430,7 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
|
23196
23430
|
}, "Autopay Enabled")));
|
|
23197
23431
|
};
|
|
23198
23432
|
|
|
23199
|
-
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$
|
|
23433
|
+
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$l);
|
|
23200
23434
|
|
|
23201
23435
|
var Hamburger = styled__default.button.withConfig({
|
|
23202
23436
|
displayName: "HamburgerButton__Hamburger",
|
|
@@ -23278,7 +23512,7 @@ var fontSize$8 = {
|
|
|
23278
23512
|
h5: "1.375rem",
|
|
23279
23513
|
h6: "1.25rem"
|
|
23280
23514
|
};
|
|
23281
|
-
var fallbackValues$
|
|
23515
|
+
var fallbackValues$m = {
|
|
23282
23516
|
fontFamily: fontFamily$5,
|
|
23283
23517
|
fontSize: fontSize$8
|
|
23284
23518
|
};
|
|
@@ -23320,7 +23554,7 @@ var Heading = function Heading(_ref) {
|
|
|
23320
23554
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
23321
23555
|
};
|
|
23322
23556
|
|
|
23323
|
-
var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$
|
|
23557
|
+
var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$m, "h1");
|
|
23324
23558
|
|
|
23325
23559
|
var Jumbo = function Jumbo(_ref) {
|
|
23326
23560
|
var showButton = _ref.showButton,
|
|
@@ -23394,7 +23628,7 @@ var fontWeight$4 = {
|
|
|
23394
23628
|
pL: "600",
|
|
23395
23629
|
h6: "700"
|
|
23396
23630
|
};
|
|
23397
|
-
var fallbackValues$
|
|
23631
|
+
var fallbackValues$n = {
|
|
23398
23632
|
fontWeight: fontWeight$4
|
|
23399
23633
|
};
|
|
23400
23634
|
|
|
@@ -23422,7 +23656,7 @@ var LabeledAmount = function LabeledAmount(_ref) {
|
|
|
23422
23656
|
}, amount));
|
|
23423
23657
|
};
|
|
23424
23658
|
|
|
23425
|
-
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$
|
|
23659
|
+
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$n, "default");
|
|
23426
23660
|
|
|
23427
23661
|
var weightTitle = {
|
|
23428
23662
|
"default": "600",
|
|
@@ -23432,7 +23666,7 @@ var paragraphVariant = {
|
|
|
23432
23666
|
"default": "pL",
|
|
23433
23667
|
small: "pS"
|
|
23434
23668
|
};
|
|
23435
|
-
var fallbackValues$
|
|
23669
|
+
var fallbackValues$o = {
|
|
23436
23670
|
weightTitle: weightTitle,
|
|
23437
23671
|
paragraphVariant: paragraphVariant
|
|
23438
23672
|
};
|
|
@@ -23461,10 +23695,10 @@ var LineItem = function LineItem(_ref) {
|
|
|
23461
23695
|
}, amount));
|
|
23462
23696
|
};
|
|
23463
23697
|
|
|
23464
|
-
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$
|
|
23698
|
+
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$o, "default");
|
|
23465
23699
|
|
|
23466
23700
|
var color$8 = "#15749D";
|
|
23467
|
-
var fallbackValues$
|
|
23701
|
+
var fallbackValues$p = {
|
|
23468
23702
|
color: color$8
|
|
23469
23703
|
};
|
|
23470
23704
|
|
|
@@ -23503,7 +23737,7 @@ var Spinner$1 = function Spinner(_ref4) {
|
|
|
23503
23737
|
})));
|
|
23504
23738
|
};
|
|
23505
23739
|
|
|
23506
|
-
var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$
|
|
23740
|
+
var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$p);
|
|
23507
23741
|
|
|
23508
23742
|
var Loading = function Loading() {
|
|
23509
23743
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -23769,7 +24003,7 @@ var height$1 = {
|
|
|
23769
24003
|
"default": "3rem",
|
|
23770
24004
|
large: "192px"
|
|
23771
24005
|
};
|
|
23772
|
-
var fallbackValues$
|
|
24006
|
+
var fallbackValues$q = {
|
|
23773
24007
|
color: color$9,
|
|
23774
24008
|
height: height$1
|
|
23775
24009
|
};
|
|
@@ -23862,12 +24096,12 @@ var Placeholder = function Placeholder(_ref2) {
|
|
|
23862
24096
|
}, text)))))))))));
|
|
23863
24097
|
};
|
|
23864
24098
|
|
|
23865
|
-
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$
|
|
24099
|
+
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$q, "default");
|
|
23866
24100
|
|
|
23867
24101
|
var backgroundColor$4 = {
|
|
23868
24102
|
"default": "".concat(WHITE)
|
|
23869
24103
|
};
|
|
23870
|
-
var fallbackValues$
|
|
24104
|
+
var fallbackValues$r = {
|
|
23871
24105
|
backgroundColor: backgroundColor$4
|
|
23872
24106
|
};
|
|
23873
24107
|
|
|
@@ -23895,12 +24129,12 @@ var ProcessingFee = function ProcessingFee(_ref) {
|
|
|
23895
24129
|
}));
|
|
23896
24130
|
};
|
|
23897
24131
|
|
|
23898
|
-
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$
|
|
24132
|
+
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$r, "default");
|
|
23899
24133
|
|
|
23900
|
-
var activeColor$
|
|
24134
|
+
var activeColor$5 = "".concat(MATISSE_BLUE);
|
|
23901
24135
|
var inactiveColor = "".concat(GREY_CHATEAU);
|
|
23902
|
-
var fallbackValues$
|
|
23903
|
-
activeColor: activeColor$
|
|
24136
|
+
var fallbackValues$s = {
|
|
24137
|
+
activeColor: activeColor$5,
|
|
23904
24138
|
inactiveColor: inactiveColor
|
|
23905
24139
|
};
|
|
23906
24140
|
|
|
@@ -23989,12 +24223,12 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
23989
24223
|
})));
|
|
23990
24224
|
};
|
|
23991
24225
|
|
|
23992
|
-
var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$
|
|
24226
|
+
var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$s);
|
|
23993
24227
|
|
|
23994
24228
|
var border$2 = {
|
|
23995
24229
|
"default": "1px solid #caced8"
|
|
23996
24230
|
};
|
|
23997
|
-
var fallbackValues$
|
|
24231
|
+
var fallbackValues$t = {
|
|
23998
24232
|
border: border$2
|
|
23999
24233
|
};
|
|
24000
24234
|
|
|
@@ -24069,7 +24303,7 @@ var SearchableSelect = function SearchableSelect(_ref) {
|
|
|
24069
24303
|
})))));
|
|
24070
24304
|
};
|
|
24071
24305
|
|
|
24072
|
-
var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$
|
|
24306
|
+
var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$t, "default");
|
|
24073
24307
|
|
|
24074
24308
|
var borderColor$2 = {
|
|
24075
24309
|
"default": "".concat(GREY_CHATEAU)
|
|
@@ -24077,7 +24311,7 @@ var borderColor$2 = {
|
|
|
24077
24311
|
var borderSize = {
|
|
24078
24312
|
"default": "1px"
|
|
24079
24313
|
};
|
|
24080
|
-
var fallbackValues$
|
|
24314
|
+
var fallbackValues$u = {
|
|
24081
24315
|
borderColor: borderColor$2,
|
|
24082
24316
|
borderSize: borderSize
|
|
24083
24317
|
};
|
|
@@ -24094,7 +24328,7 @@ var SolidDivider = function SolidDivider(_ref) {
|
|
|
24094
24328
|
});
|
|
24095
24329
|
};
|
|
24096
24330
|
|
|
24097
|
-
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$
|
|
24331
|
+
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$u, "default");
|
|
24098
24332
|
|
|
24099
24333
|
var placeHolderOptionUS = {
|
|
24100
24334
|
text: "Please select state",
|
|
@@ -34678,7 +34912,7 @@ var offBackground = "".concat(REGENT_GREY);
|
|
|
34678
34912
|
var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
|
|
34679
34913
|
var rightLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row;\n");
|
|
34680
34914
|
var leftLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row-reverse;\n");
|
|
34681
|
-
var fallbackValues$
|
|
34915
|
+
var fallbackValues$v = {
|
|
34682
34916
|
onBackground: onBackground,
|
|
34683
34917
|
disabledBackground: disabledBackground,
|
|
34684
34918
|
white: white,
|
|
@@ -34853,7 +35087,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
34853
35087
|
}, label))));
|
|
34854
35088
|
};
|
|
34855
35089
|
|
|
34856
|
-
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$
|
|
35090
|
+
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$v);
|
|
34857
35091
|
|
|
34858
35092
|
var background$1 = "".concat(ATHENS_GREY);
|
|
34859
35093
|
var white$1 = "".concat(WHITE);
|
|
@@ -34899,58 +35133,136 @@ var TypeaheadInput = function TypeaheadInput(_ref) {
|
|
|
34899
35133
|
};
|
|
34900
35134
|
|
|
34901
35135
|
var backgroundColor$5 = WHITE;
|
|
34902
|
-
var
|
|
34903
|
-
|
|
35136
|
+
var imageBackgroundColor = INFO_BLUE;
|
|
35137
|
+
var headerBackgroundColor = STORM_GREY;
|
|
35138
|
+
var headerColor = WHITE;
|
|
35139
|
+
var fallbackValues$w = {
|
|
35140
|
+
backgroundColor: backgroundColor$5,
|
|
35141
|
+
imageBackgroundColor: imageBackgroundColor,
|
|
35142
|
+
headerBackgroundColor: headerBackgroundColor,
|
|
35143
|
+
headerColor: headerColor
|
|
34904
35144
|
};
|
|
34905
35145
|
|
|
34906
|
-
var
|
|
35146
|
+
var CardImage = styled__default.img.withConfig({
|
|
35147
|
+
displayName: "CardImagestyled__CardImage",
|
|
35148
|
+
componentId: "sc-ug7kyn-0"
|
|
35149
|
+
})(["background:", ";object-fit:", ";height:", ";"], function (_ref) {
|
|
35150
|
+
var backgroundColor = _ref.backgroundColor;
|
|
35151
|
+
return backgroundColor;
|
|
35152
|
+
}, function (_ref2) {
|
|
35153
|
+
var objectFit = _ref2.objectFit;
|
|
35154
|
+
return objectFit;
|
|
35155
|
+
}, function (_ref3) {
|
|
35156
|
+
var height = _ref3.height;
|
|
35157
|
+
return height;
|
|
35158
|
+
});
|
|
35159
|
+
|
|
35160
|
+
var titleColor = BRIGHT_GREY;
|
|
35161
|
+
var titleWeight = FONT_WEIGHT_BOLD;
|
|
35162
|
+
var fallbackValues$x = _defineProperty({
|
|
35163
|
+
titleColor: titleColor,
|
|
35164
|
+
titleWeight: titleWeight
|
|
35165
|
+
}, "titleWeight", titleWeight);
|
|
34907
35166
|
|
|
34908
|
-
var
|
|
34909
|
-
var
|
|
34910
|
-
|
|
34911
|
-
|
|
34912
|
-
|
|
34913
|
-
|
|
34914
|
-
|
|
34915
|
-
|
|
34916
|
-
|
|
34917
|
-
|
|
34918
|
-
},
|
|
35167
|
+
var CardText = function CardText(_ref) {
|
|
35168
|
+
var text = _ref.text,
|
|
35169
|
+
titleText = _ref.titleText,
|
|
35170
|
+
_ref$titleVariant = _ref.titleVariant,
|
|
35171
|
+
titleVariant = _ref$titleVariant === void 0 ? "small" : _ref$titleVariant,
|
|
35172
|
+
themeValues = _ref.themeValues;
|
|
35173
|
+
return /*#__PURE__*/React__default.createElement(Cover, null, /*#__PURE__*/React__default.createElement(Stack, null, titleText && /*#__PURE__*/React__default.createElement(Title$1, {
|
|
35174
|
+
variant: titleVariant,
|
|
35175
|
+
color: themeValues.titleColor,
|
|
35176
|
+
weight: themeValues === null || themeValues === void 0 ? void 0 : themeValues.titleWeight
|
|
35177
|
+
}, titleText), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
35178
|
+
color: themeValues.textColor
|
|
35179
|
+
}, text)));
|
|
34919
35180
|
};
|
|
35181
|
+
var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$x);
|
|
34920
35182
|
|
|
34921
|
-
var
|
|
34922
|
-
var
|
|
34923
|
-
|
|
34924
|
-
|
|
34925
|
-
|
|
34926
|
-
|
|
35183
|
+
var CardHeader = function CardHeader(_ref) {
|
|
35184
|
+
var headerText = _ref.headerText,
|
|
35185
|
+
headerColor = _ref.headerColor,
|
|
35186
|
+
headerVariant = _ref.headerVariant,
|
|
35187
|
+
backgroundColor = _ref.backgroundColor,
|
|
35188
|
+
padding = _ref.padding,
|
|
35189
|
+
borderRadius = _ref.borderRadius;
|
|
35190
|
+
return /*#__PURE__*/React__default.createElement(Box, {
|
|
35191
|
+
padding: padding,
|
|
35192
|
+
background: backgroundColor,
|
|
35193
|
+
borderRadius: "".concat(borderRadius, " ").concat(borderRadius, " 0 0")
|
|
35194
|
+
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
35195
|
+
variant: headerVariant,
|
|
35196
|
+
color: headerColor
|
|
35197
|
+
}, headerText));
|
|
35198
|
+
};
|
|
34927
35199
|
|
|
34928
|
-
|
|
35200
|
+
var Card = function Card(_ref) {
|
|
35201
|
+
var themeValues = _ref.themeValues,
|
|
35202
|
+
children = _ref.children,
|
|
35203
|
+
extraStyles = _ref.extraStyles,
|
|
35204
|
+
_ref$width = _ref.width,
|
|
35205
|
+
width = _ref$width === void 0 ? "276px" : _ref$width,
|
|
35206
|
+
text = _ref.text,
|
|
35207
|
+
titleText = _ref.titleText,
|
|
35208
|
+
_ref$titleVariant = _ref.titleVariant,
|
|
35209
|
+
titleVariant = _ref$titleVariant === void 0 ? "small" : _ref$titleVariant,
|
|
35210
|
+
imgSrc = _ref.imgSrc,
|
|
35211
|
+
_ref$imgHeight = _ref.imgHeight,
|
|
35212
|
+
imgHeight = _ref$imgHeight === void 0 ? "150px" : _ref$imgHeight,
|
|
35213
|
+
_ref$imgObjectFit = _ref.imgObjectFit,
|
|
35214
|
+
imgObjectFit = _ref$imgObjectFit === void 0 ? "none" : _ref$imgObjectFit,
|
|
35215
|
+
headerText = _ref.headerText,
|
|
35216
|
+
_ref$headerVariant = _ref.headerVariant,
|
|
35217
|
+
headerVariant = _ref$headerVariant === void 0 ? "small" : _ref$headerVariant,
|
|
35218
|
+
_ref$borderRadius = _ref.borderRadius,
|
|
35219
|
+
borderRadius = _ref$borderRadius === void 0 ? "4px" : _ref$borderRadius,
|
|
35220
|
+
_ref$padding = _ref.padding,
|
|
35221
|
+
padding = _ref$padding === void 0 ? "24px" : _ref$padding;
|
|
35222
|
+
var numberOfChildren = children.length + (imgSrc ? 1 : 0) + (text ? 1 : 0) + (headerText ? 1 : 0);
|
|
35223
|
+
return /*#__PURE__*/React__default.createElement(BoxWithShadow$1, {
|
|
34929
35224
|
variant: "baseStandard",
|
|
34930
35225
|
background: themeValues.backgroundColor,
|
|
34931
|
-
borderRadius:
|
|
35226
|
+
borderRadius: borderRadius,
|
|
34932
35227
|
padding: "0",
|
|
34933
35228
|
margin: "0",
|
|
34934
|
-
|
|
34935
|
-
minHeight: "100%",
|
|
34936
|
-
minWidth: variant !== "vertical" && "276px",
|
|
35229
|
+
minWidth: width,
|
|
34937
35230
|
extraStyles: extraStyles
|
|
34938
|
-
},
|
|
34939
|
-
singleChild: true
|
|
34940
|
-
|
|
34941
|
-
|
|
34942
|
-
|
|
34943
|
-
|
|
35231
|
+
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
35232
|
+
singleChild: true
|
|
35233
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
35234
|
+
fullHeight: true,
|
|
35235
|
+
childGap: "0",
|
|
35236
|
+
bottomItem: numberOfChildren
|
|
35237
|
+
}, headerText && /*#__PURE__*/React__default.createElement(CardHeader, {
|
|
35238
|
+
headerText: headerText,
|
|
35239
|
+
headerColor: themeValues.headerColor,
|
|
35240
|
+
headerVariant: headerVariant,
|
|
35241
|
+
backgroundColor: themeValues.headerBackgroundColor,
|
|
35242
|
+
borderRadius: borderRadius,
|
|
35243
|
+
padding: padding
|
|
35244
|
+
}), imgSrc && /*#__PURE__*/React__default.createElement(CardImage, {
|
|
35245
|
+
height: imgHeight,
|
|
35246
|
+
objectFit: imgObjectFit,
|
|
35247
|
+
backgroundColor: themeValues.imageBackgroundColor,
|
|
35248
|
+
src: imgSrc
|
|
35249
|
+
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
35250
|
+
padding: padding
|
|
35251
|
+
}, text && /*#__PURE__*/React__default.createElement(CardText$1, {
|
|
35252
|
+
titleText: titleText,
|
|
35253
|
+
text: text,
|
|
35254
|
+
titleVariant: titleVariant
|
|
35255
|
+
}), children))));
|
|
34944
35256
|
};
|
|
34945
35257
|
|
|
34946
|
-
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$
|
|
35258
|
+
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$w);
|
|
34947
35259
|
|
|
34948
35260
|
var fontFamily$6 = "Public Sans, sans-serif";
|
|
34949
|
-
var activeColor$
|
|
35261
|
+
var activeColor$6 = MATISSE_BLUE;
|
|
34950
35262
|
var linkColor$3 = CHARADE_GREY;
|
|
34951
|
-
var fallbackValues$
|
|
35263
|
+
var fallbackValues$y = {
|
|
34952
35264
|
fontFamily: fontFamily$6,
|
|
34953
|
-
activeColor: activeColor$
|
|
35265
|
+
activeColor: activeColor$6,
|
|
34954
35266
|
linkColor: linkColor$3
|
|
34955
35267
|
};
|
|
34956
35268
|
|
|
@@ -34981,7 +35293,7 @@ var NavTab = function NavTab(_ref) {
|
|
|
34981
35293
|
}, label));
|
|
34982
35294
|
};
|
|
34983
35295
|
|
|
34984
|
-
var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$
|
|
35296
|
+
var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$y);
|
|
34985
35297
|
|
|
34986
35298
|
var NavTabs = function NavTabs(_ref) {
|
|
34987
35299
|
var tabsConfig = _ref.tabsConfig,
|
|
@@ -36760,31 +37072,6 @@ const createFormState = formConfig => ({
|
|
|
36760
37072
|
mapStateToProps: mapStateToProps
|
|
36761
37073
|
});
|
|
36762
37074
|
|
|
36763
|
-
var formatDelimiter = "_";
|
|
36764
|
-
var phoneFormats = ["", "_", "__", "(___) ", "(___) _", "(___) __", "(___) ___-", "(___) ___-_", "(___) ___-__", "(___) ___-___", "(___) ___-____"];
|
|
36765
|
-
var zipFormats = ["", "_", "__", "___", "____", "_____", "______", "_____-__", "_____-___", "_____-____"];
|
|
36766
|
-
var creditCardFormats = ["", "_", "__", "___", "____", "____ _", "____ __", "____ ___", "____ ____", "____ ____ _", "____ ____ __", "____ ____ ___", "____ ____ ____", "____ ____ ____ _", "____ ____ ____ __", "____ ____ ____ ___", "____ ____ ____ ____"];
|
|
36767
|
-
var moneyFormats = ["", "$0.0_", "$0.__", "$_.__", "$__.__", "$___.__", "$_,___.__", "$__,___.__", "$___,___.__", "$_,___,___.__", "$__,___,___.__", "$___,___,___.__", "$_,___,___,___.__", "$__,___,___,___.__", "$___,___,___,___.__", "$_,___,___,___,___.__"];
|
|
36768
|
-
var expirationDateFormats = ["", "_", "__/", "__/_", "__/__"];
|
|
36769
|
-
var zipFormat = createFormat(zipFormats, formatDelimiter);
|
|
36770
|
-
var creditCardFormat = createFormat(creditCardFormats, formatDelimiter);
|
|
36771
|
-
var expirationDateFormat = createFormat(expirationDateFormats, formatDelimiter);
|
|
36772
|
-
var phoneFormat = createFormat(phoneFormats, formatDelimiter);
|
|
36773
|
-
var moneyFormat = createFormat(moneyFormats, formatDelimiter);
|
|
36774
|
-
|
|
36775
|
-
var formats = /*#__PURE__*/Object.freeze({
|
|
36776
|
-
__proto__: null,
|
|
36777
|
-
formatDelimiter: formatDelimiter,
|
|
36778
|
-
phoneFormats: phoneFormats,
|
|
36779
|
-
moneyFormats: moneyFormats,
|
|
36780
|
-
expirationDateFormats: expirationDateFormats,
|
|
36781
|
-
zipFormat: zipFormat,
|
|
36782
|
-
creditCardFormat: creditCardFormat,
|
|
36783
|
-
expirationDateFormat: expirationDateFormat,
|
|
36784
|
-
phoneFormat: phoneFormat,
|
|
36785
|
-
moneyFormat: moneyFormat
|
|
36786
|
-
});
|
|
36787
|
-
|
|
36788
37075
|
var AddressForm = function AddressForm(_ref) {
|
|
36789
37076
|
var _zipErrorMessages;
|
|
36790
37077
|
|
|
@@ -36932,39 +37219,6 @@ AddressForm.reducer = reducer;
|
|
|
36932
37219
|
AddressForm.mapStateToProps = mapStateToProps$1;
|
|
36933
37220
|
AddressForm.mapDispatchToProps = mapDispatchToProps;
|
|
36934
37221
|
|
|
36935
|
-
var headerBackgroundColor = STORM_GREY;
|
|
36936
|
-
var headerTextColor = WHITE;
|
|
36937
|
-
var fallbackValues$x = {
|
|
36938
|
-
headerBackgroundColor: headerBackgroundColor,
|
|
36939
|
-
headerTextColor: headerTextColor
|
|
36940
|
-
};
|
|
36941
|
-
|
|
36942
|
-
var _excluded$x = ["themeValues", "children", "header", "extraStyles", "variant"];
|
|
36943
|
-
|
|
36944
|
-
var CardWithHeader = function CardWithHeader(_ref) {
|
|
36945
|
-
var themeValues = _ref.themeValues,
|
|
36946
|
-
children = _ref.children,
|
|
36947
|
-
header = _ref.header,
|
|
36948
|
-
extraStyles = _ref.extraStyles,
|
|
36949
|
-
variant = _ref.variant,
|
|
36950
|
-
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
36951
|
-
|
|
36952
|
-
return /*#__PURE__*/React__default.createElement(Card$1, _extends({
|
|
36953
|
-
extraStyles: extraStyles
|
|
36954
|
-
}, props), /*#__PURE__*/React__default.createElement(Box, {
|
|
36955
|
-
padding: "24px",
|
|
36956
|
-
background: themeValues.headerBackgroundColor,
|
|
36957
|
-
extraStyles: "\n border-radius: 4px 4px 0 0;\n "
|
|
36958
|
-
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
36959
|
-
variant: "small",
|
|
36960
|
-
color: themeValues.headerTextColor
|
|
36961
|
-
}, header)), /*#__PURE__*/React__default.createElement(Box, {
|
|
36962
|
-
padding: "24px"
|
|
36963
|
-
}, children));
|
|
36964
|
-
};
|
|
36965
|
-
|
|
36966
|
-
var CardWithHeader$1 = themeComponent(CardWithHeader, "CardWithHeader", fallbackValues$x);
|
|
36967
|
-
|
|
36968
37222
|
var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
36969
37223
|
var _newPasswordErrorMess;
|
|
36970
37224
|
|
|
@@ -37102,11 +37356,11 @@ ChangePasswordForm.reducer = reducer$1;
|
|
|
37102
37356
|
ChangePasswordForm.mapStateToProps = mapStateToProps$2;
|
|
37103
37357
|
ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
|
|
37104
37358
|
|
|
37105
|
-
var titleColor = "#292A33";
|
|
37359
|
+
var titleColor$1 = "#292A33";
|
|
37106
37360
|
var headingBackgroundColor = "transparent";
|
|
37107
37361
|
var bodyBackgroundColor = "transparent";
|
|
37108
|
-
var fallbackValues$
|
|
37109
|
-
titleColor: titleColor,
|
|
37362
|
+
var fallbackValues$z = {
|
|
37363
|
+
titleColor: titleColor$1,
|
|
37110
37364
|
headingBackgroundColor: headingBackgroundColor,
|
|
37111
37365
|
bodyBackgroundColor: bodyBackgroundColor
|
|
37112
37366
|
};
|
|
@@ -37232,7 +37486,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
37232
37486
|
}, children))));
|
|
37233
37487
|
};
|
|
37234
37488
|
|
|
37235
|
-
var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$
|
|
37489
|
+
var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$z);
|
|
37236
37490
|
|
|
37237
37491
|
var EditNameForm = function EditNameForm(_ref) {
|
|
37238
37492
|
var fields = _ref.fields,
|
|
@@ -37638,7 +37892,7 @@ EmailForm.mapDispatchToProps = mapDispatchToProps$3;
|
|
|
37638
37892
|
|
|
37639
37893
|
var footerBackgroundColor = BRIGHT_GREY;
|
|
37640
37894
|
var subfooterBackgroundColor = STORM_GREY;
|
|
37641
|
-
var fallbackValues$
|
|
37895
|
+
var fallbackValues$A = {
|
|
37642
37896
|
footerBackgroundColor: footerBackgroundColor,
|
|
37643
37897
|
subfooterBackgroundColor: subfooterBackgroundColor
|
|
37644
37898
|
};
|
|
@@ -37670,7 +37924,7 @@ var FooterWithSubfooter = function FooterWithSubfooter(_ref) {
|
|
|
37670
37924
|
}));
|
|
37671
37925
|
};
|
|
37672
37926
|
|
|
37673
|
-
var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$
|
|
37927
|
+
var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$A);
|
|
37674
37928
|
|
|
37675
37929
|
var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
37676
37930
|
var _EmailErrorMessages;
|
|
@@ -37722,7 +37976,7 @@ ForgotPasswordForm.mapDispatchToProps = mapDispatchToProps$4;
|
|
|
37722
37976
|
|
|
37723
37977
|
var textColor$2 = "#ffffff";
|
|
37724
37978
|
var backgroundColor$6 = "#182848";
|
|
37725
|
-
var fallbackValues$
|
|
37979
|
+
var fallbackValues$B = {
|
|
37726
37980
|
textColor: textColor$2,
|
|
37727
37981
|
backgroundColor: backgroundColor$6
|
|
37728
37982
|
};
|
|
@@ -37779,7 +38033,7 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
37779
38033
|
}), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter))));
|
|
37780
38034
|
};
|
|
37781
38035
|
|
|
37782
|
-
var HighlightTabRow$1 = /*#__PURE__*/React.memo(themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$
|
|
38036
|
+
var HighlightTabRow$1 = /*#__PURE__*/React.memo(themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$B));
|
|
37783
38037
|
|
|
37784
38038
|
var AccountBillIcon = function AccountBillIcon() {
|
|
37785
38039
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
@@ -43187,7 +43441,7 @@ var backgroundColor$7 = {
|
|
|
43187
43441
|
largeTitle: WHITE,
|
|
43188
43442
|
small: WHITE
|
|
43189
43443
|
};
|
|
43190
|
-
var fallbackValues$
|
|
43444
|
+
var fallbackValues$C = {
|
|
43191
43445
|
fontSize: fontSize$9,
|
|
43192
43446
|
fontWeight: fontWeight$5,
|
|
43193
43447
|
fontColor: fontColor,
|
|
@@ -43246,7 +43500,7 @@ var Module = function Module(_ref) {
|
|
|
43246
43500
|
}, children)));
|
|
43247
43501
|
};
|
|
43248
43502
|
|
|
43249
|
-
var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$
|
|
43503
|
+
var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$C, "default"));
|
|
43250
43504
|
|
|
43251
43505
|
var backgroundColor$8 = {
|
|
43252
43506
|
profile: "#3b414d",
|
|
@@ -43256,7 +43510,7 @@ var shadowColor = {
|
|
|
43256
43510
|
profile: "#292A33",
|
|
43257
43511
|
cms: "#292A33"
|
|
43258
43512
|
};
|
|
43259
|
-
var fallbackValues$
|
|
43513
|
+
var fallbackValues$D = {
|
|
43260
43514
|
backgroundColor: backgroundColor$8,
|
|
43261
43515
|
shadowColor: shadowColor
|
|
43262
43516
|
};
|
|
@@ -43297,7 +43551,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
|
|
|
43297
43551
|
}, menuContent));
|
|
43298
43552
|
};
|
|
43299
43553
|
|
|
43300
|
-
var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$
|
|
43554
|
+
var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$D, "profile");
|
|
43301
43555
|
|
|
43302
43556
|
var menu = posed.div({
|
|
43303
43557
|
invisible: {
|
|
@@ -43353,7 +43607,7 @@ var NavMenuMobile = function NavMenuMobile(_ref) {
|
|
|
43353
43607
|
}, menuContent));
|
|
43354
43608
|
};
|
|
43355
43609
|
|
|
43356
|
-
var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$
|
|
43610
|
+
var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$D, "profile");
|
|
43357
43611
|
|
|
43358
43612
|
var IconsModule = function IconsModule(_ref) {
|
|
43359
43613
|
var icon = _ref.icon,
|
|
@@ -43405,15 +43659,15 @@ var TitleModule = function TitleModule(_ref) {
|
|
|
43405
43659
|
};
|
|
43406
43660
|
|
|
43407
43661
|
var color$a = "#15749D";
|
|
43408
|
-
var hoverColor$
|
|
43409
|
-
var activeColor$
|
|
43662
|
+
var hoverColor$5 = "#116285";
|
|
43663
|
+
var activeColor$7 = "#0E506D";
|
|
43410
43664
|
var linkColor$4 = "#3176AA";
|
|
43411
43665
|
var fontWeight$6 = FONT_WEIGHT_REGULAR;
|
|
43412
43666
|
var modalLinkHoverFocus = "outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;";
|
|
43413
|
-
var fallbackValues$
|
|
43667
|
+
var fallbackValues$E = {
|
|
43414
43668
|
color: color$a,
|
|
43415
|
-
hoverColor: hoverColor$
|
|
43416
|
-
activeColor: activeColor$
|
|
43669
|
+
hoverColor: hoverColor$5,
|
|
43670
|
+
activeColor: activeColor$7,
|
|
43417
43671
|
linkColor: linkColor$4,
|
|
43418
43672
|
fontWeight: fontWeight$6,
|
|
43419
43673
|
modalLinkHoverFocus: modalLinkHoverFocus
|
|
@@ -43522,7 +43776,7 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
43522
43776
|
}, modalExtraProps), renderAutoPayControl());
|
|
43523
43777
|
};
|
|
43524
43778
|
|
|
43525
|
-
var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$
|
|
43779
|
+
var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$E);
|
|
43526
43780
|
|
|
43527
43781
|
var AmountModule = function AmountModule(_ref) {
|
|
43528
43782
|
var totalAmountDue = _ref.totalAmountDue,
|
|
@@ -44334,14 +44588,14 @@ var labeledAmountTotal = {
|
|
|
44334
44588
|
"default": "h6",
|
|
44335
44589
|
small: "p"
|
|
44336
44590
|
};
|
|
44337
|
-
var fallbackValues$
|
|
44591
|
+
var fallbackValues$F = {
|
|
44338
44592
|
backgroundColor: backgroundColor$9,
|
|
44339
44593
|
lineItem: lineItem,
|
|
44340
44594
|
labeledAmountSubtotal: labeledAmountSubtotal,
|
|
44341
44595
|
labeledAmountTotal: labeledAmountTotal
|
|
44342
44596
|
};
|
|
44343
44597
|
|
|
44344
|
-
var _excluded$
|
|
44598
|
+
var _excluded$w = ["amount"],
|
|
44345
44599
|
_excluded2$1 = ["amount"];
|
|
44346
44600
|
|
|
44347
44601
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
@@ -44486,7 +44740,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
44486
44740
|
return fee.amount > 0;
|
|
44487
44741
|
}).map(function (_ref5) {
|
|
44488
44742
|
var amount = _ref5.amount,
|
|
44489
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
44743
|
+
rest = _objectWithoutProperties(_ref5, _excluded$w);
|
|
44490
44744
|
|
|
44491
44745
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
44492
44746
|
amount: displayCurrency(amount)
|
|
@@ -44585,7 +44839,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
44585
44839
|
});
|
|
44586
44840
|
};
|
|
44587
44841
|
|
|
44588
|
-
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$
|
|
44842
|
+
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$F, "default");
|
|
44589
44843
|
|
|
44590
44844
|
var linkColor$5 = {
|
|
44591
44845
|
"default": "#3176AA"
|
|
@@ -44602,7 +44856,7 @@ var fontWeight$7 = {
|
|
|
44602
44856
|
var modalLinkHoverFocus$1 = {
|
|
44603
44857
|
"default": "outline: none; text-decoration: underline;"
|
|
44604
44858
|
};
|
|
44605
|
-
var fallbackValues$
|
|
44859
|
+
var fallbackValues$G = {
|
|
44606
44860
|
linkColor: linkColor$5,
|
|
44607
44861
|
fontSize: fontSize$a,
|
|
44608
44862
|
lineHeight: lineHeight$4,
|
|
@@ -44661,7 +44915,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
44661
44915
|
}, link));
|
|
44662
44916
|
};
|
|
44663
44917
|
|
|
44664
|
-
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$
|
|
44918
|
+
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$G, "default");
|
|
44665
44919
|
|
|
44666
44920
|
var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
44667
44921
|
var _routingNumberErrors, _accountNumberErrors;
|
|
@@ -45026,6 +45280,129 @@ PaymentFormCard$1.reducer = reducer$8;
|
|
|
45026
45280
|
PaymentFormCard$1.mapStateToProps = mapStateToProps$9;
|
|
45027
45281
|
PaymentFormCard$1.mapDispatchToProps = mapDispatchToProps$8;
|
|
45028
45282
|
|
|
45283
|
+
var DashboardIframe = styled__default.iframe.withConfig({
|
|
45284
|
+
displayName: "PeriscopeDashboardIframestyled__DashboardIframe",
|
|
45285
|
+
componentId: "sc-j0cucj-0"
|
|
45286
|
+
})(["border:none;box-shadow:0 0 5px 0 ", ";display:none;"], ALTO_GREY);
|
|
45287
|
+
|
|
45288
|
+
/**
|
|
45289
|
+
* Component: PeriscopeDashboardIframe
|
|
45290
|
+
*
|
|
45291
|
+
* Used for rendering Citybase's periscope reporting dashboards in iframes.
|
|
45292
|
+
* Receives action props to trigger a request on mount for the iframe's url.
|
|
45293
|
+
* Receives a string prop if/when we receive the url result.
|
|
45294
|
+
* And receives action props to emit errors from failed iframe loading.
|
|
45295
|
+
*
|
|
45296
|
+
* The logic and api client methods to handle requests/response,
|
|
45297
|
+
* store the url, etc. should be provided from the app consuming this library.
|
|
45298
|
+
*
|
|
45299
|
+
* If the url request is pending, render a spinner.
|
|
45300
|
+
* If the url request failed, render a UI error state.
|
|
45301
|
+
**/
|
|
45302
|
+
|
|
45303
|
+
var DASHBOARD_SIZE_MESSAGE_TYPE = "dashboard_resize";
|
|
45304
|
+
var PERISCOPE_ORIGIN = "https://app.periscopedata.com";
|
|
45305
|
+
|
|
45306
|
+
var isValidMessage = function isValidMessage(message) {
|
|
45307
|
+
return message.isTrusted && message.origin === PERISCOPE_ORIGIN && message.data && message.data.event_type === DASHBOARD_SIZE_MESSAGE_TYPE;
|
|
45308
|
+
};
|
|
45309
|
+
|
|
45310
|
+
var PeriscopeDashboardIframe = function PeriscopeDashboardIframe(_ref) {
|
|
45311
|
+
var url = _ref.url,
|
|
45312
|
+
requestDashboardUrl = _ref.requestDashboardUrl,
|
|
45313
|
+
periscopeDataPending = _ref.periscopeDataPending,
|
|
45314
|
+
periscopeDataSuccess = _ref.periscopeDataSuccess,
|
|
45315
|
+
periscopeDataFailure = _ref.periscopeDataFailure,
|
|
45316
|
+
periscopeDataRequestSuccess = _ref.periscopeDataRequestSuccess,
|
|
45317
|
+
periscopeDataRequestFailure = _ref.periscopeDataRequestFailure,
|
|
45318
|
+
_ref$timerMS = _ref.timerMS,
|
|
45319
|
+
timerMS = _ref$timerMS === void 0 ? 20000 : _ref$timerMS;
|
|
45320
|
+
|
|
45321
|
+
var _useState = React.useState(0),
|
|
45322
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
45323
|
+
height = _useState2[0],
|
|
45324
|
+
setHeight = _useState2[1];
|
|
45325
|
+
|
|
45326
|
+
var time = {
|
|
45327
|
+
timer: null
|
|
45328
|
+
};
|
|
45329
|
+
React.useEffect(function () {
|
|
45330
|
+
time.timer = setTimeout(function () {
|
|
45331
|
+
if (!periscopeDataSuccess) {
|
|
45332
|
+
periscopeDataRequestFailure();
|
|
45333
|
+
}
|
|
45334
|
+
}, timerMS);
|
|
45335
|
+
return function () {
|
|
45336
|
+
return clearTimeout(time.timer);
|
|
45337
|
+
};
|
|
45338
|
+
}, [periscopeDataSuccess]);
|
|
45339
|
+
|
|
45340
|
+
var Dashboard = function Dashboard(height) {
|
|
45341
|
+
return function (url) {
|
|
45342
|
+
return /*#__PURE__*/React__default.createElement(DashboardIframe, {
|
|
45343
|
+
src: url,
|
|
45344
|
+
width: "100%",
|
|
45345
|
+
height: height,
|
|
45346
|
+
"data-qa": "DashboardIframe",
|
|
45347
|
+
onLoad: function onLoad() {
|
|
45348
|
+
var iframe = document.querySelector("iframe");
|
|
45349
|
+
iframe.style.display = "initial";
|
|
45350
|
+
}
|
|
45351
|
+
});
|
|
45352
|
+
};
|
|
45353
|
+
};
|
|
45354
|
+
|
|
45355
|
+
var validatePeriscope = function validatePeriscope(message) {
|
|
45356
|
+
if (isValidMessage(message)) {
|
|
45357
|
+
setHeight(message.data.dashboard_height + 100);
|
|
45358
|
+
|
|
45359
|
+
if (!periscopeDataSuccess) {
|
|
45360
|
+
clearTimeout(time.timer);
|
|
45361
|
+
periscopeDataRequestSuccess();
|
|
45362
|
+
}
|
|
45363
|
+
}
|
|
45364
|
+
};
|
|
45365
|
+
|
|
45366
|
+
React.useLayoutEffect(function () {
|
|
45367
|
+
window.addEventListener("message", validatePeriscope);
|
|
45368
|
+
requestDashboardUrl();
|
|
45369
|
+
return function () {
|
|
45370
|
+
return window.removeEventListener("message", validatePeriscope);
|
|
45371
|
+
};
|
|
45372
|
+
}, [requestDashboardUrl]);
|
|
45373
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(BoxWithShadow$1, {
|
|
45374
|
+
padding: "0",
|
|
45375
|
+
minWidth: "100%",
|
|
45376
|
+
minHeight: "592px",
|
|
45377
|
+
variant: "baseStandard",
|
|
45378
|
+
background: "#fff",
|
|
45379
|
+
borderRadius: "4px",
|
|
45380
|
+
extraStyles: "display: flex; justify-content: center; align-items: center; flex-direction: column;"
|
|
45381
|
+
}, periscopeDataPending && !periscopeDataSuccess && /*#__PURE__*/React__default.createElement(Cover, {
|
|
45382
|
+
minHeight: "100%",
|
|
45383
|
+
singleChild: true
|
|
45384
|
+
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
45385
|
+
intrinsic: true
|
|
45386
|
+
}, /*#__PURE__*/React__default.createElement(Spinner$2, {
|
|
45387
|
+
size: "100"
|
|
45388
|
+
}))), periscopeDataFailure && !periscopeDataSuccess && /*#__PURE__*/React__default.createElement(Box, {
|
|
45389
|
+
padding: "64px"
|
|
45390
|
+
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
45391
|
+
intrinsic: true
|
|
45392
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
45393
|
+
padding: "0 0 2rem"
|
|
45394
|
+
}, /*#__PURE__*/React__default.createElement(PeriscopeFailedIcon, null)), /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
45395
|
+
variant: "h3",
|
|
45396
|
+
weight: "700"
|
|
45397
|
+
}, "Something Went Wrong"), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
45398
|
+
variant: "p",
|
|
45399
|
+
extraStyles: "text-align: center;"
|
|
45400
|
+
}, "There was an issue trying to load the dashboard."), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
45401
|
+
variant: "p",
|
|
45402
|
+
extraStyles: "text-align: center;"
|
|
45403
|
+
}, "Your organization may not have a dashboard configured."))), !periscopeDataFailure && url && Dashboard(height)(url)));
|
|
45404
|
+
};
|
|
45405
|
+
|
|
45029
45406
|
var PhoneForm = function PhoneForm(_ref) {
|
|
45030
45407
|
var _phoneErrorMessage;
|
|
45031
45408
|
|
|
@@ -45095,7 +45472,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
|
45095
45472
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
45096
45473
|
var borderColor$3 = "".concat(GREY_CHATEAU);
|
|
45097
45474
|
var focusStyles = "outline: none;";
|
|
45098
|
-
var fallbackValues$
|
|
45475
|
+
var fallbackValues$H = {
|
|
45099
45476
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
45100
45477
|
headingDisabledColor: headingDisabledColor,
|
|
45101
45478
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
@@ -45314,7 +45691,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
45314
45691
|
})));
|
|
45315
45692
|
};
|
|
45316
45693
|
|
|
45317
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
45694
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$H);
|
|
45318
45695
|
|
|
45319
45696
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
45320
45697
|
var _emailErrorMessages, _passwordErrorMessage;
|
|
@@ -45611,7 +45988,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
45611
45988
|
var activeTabBackground = "#FFFFFF";
|
|
45612
45989
|
var activeTabAccent = "#15749D";
|
|
45613
45990
|
var activeTabHover = "#B8D5E1";
|
|
45614
|
-
var fallbackValues$
|
|
45991
|
+
var fallbackValues$I = {
|
|
45615
45992
|
activeTabBackground: activeTabBackground,
|
|
45616
45993
|
activeTabAccent: activeTabAccent,
|
|
45617
45994
|
activeTabHover: activeTabHover
|
|
@@ -45690,12 +46067,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
45690
46067
|
}))));
|
|
45691
46068
|
};
|
|
45692
46069
|
|
|
45693
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
46070
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$I);
|
|
45694
46071
|
|
|
45695
46072
|
var activeTabBackground$1 = "#FFFFFF";
|
|
45696
46073
|
var activeTabAccent$1 = "#15749D";
|
|
45697
46074
|
var activeTabHover$1 = "#B8D5E1";
|
|
45698
|
-
var fallbackValues$
|
|
46075
|
+
var fallbackValues$J = {
|
|
45699
46076
|
activeTabBackground: activeTabBackground$1,
|
|
45700
46077
|
activeTabAccent: activeTabAccent$1,
|
|
45701
46078
|
activeTabHover: activeTabHover$1
|
|
@@ -45751,7 +46128,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
45751
46128
|
})));
|
|
45752
46129
|
};
|
|
45753
46130
|
|
|
45754
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
46131
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$J);
|
|
45755
46132
|
|
|
45756
46133
|
var backgroundColor$a = {
|
|
45757
46134
|
"default": "#ffffff",
|
|
@@ -45782,7 +46159,7 @@ var modalLinkHoverFocus$2 = {
|
|
|
45782
46159
|
"default": standardInteractionStyles,
|
|
45783
46160
|
footer: standardInteractionStyles
|
|
45784
46161
|
};
|
|
45785
|
-
var fallbackValues$
|
|
46162
|
+
var fallbackValues$K = {
|
|
45786
46163
|
backgroundColor: backgroundColor$a,
|
|
45787
46164
|
linkColor: linkColor$6,
|
|
45788
46165
|
border: border$3,
|
|
@@ -45844,7 +46221,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
45844
46221
|
}, link));
|
|
45845
46222
|
};
|
|
45846
46223
|
|
|
45847
|
-
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$
|
|
46224
|
+
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$K, "default");
|
|
45848
46225
|
|
|
45849
46226
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
45850
46227
|
var onCheck = _ref.onCheck,
|
|
@@ -45914,56 +46291,6 @@ var Timeout = function Timeout(_ref) {
|
|
|
45914
46291
|
|
|
45915
46292
|
var Timeout$1 = withWindowSize(Timeout);
|
|
45916
46293
|
|
|
45917
|
-
var titleColor$1 = BRIGHT_GREY;
|
|
45918
|
-
var textColor$3 = BRIGHT_GREY;
|
|
45919
|
-
var titleWeight = FONT_WEIGHT_BOLD;
|
|
45920
|
-
var imageBackgroundColor = INFO_BLUE;
|
|
45921
|
-
var fallbackValues$K = {
|
|
45922
|
-
textColor: textColor$3,
|
|
45923
|
-
titleColor: titleColor$1,
|
|
45924
|
-
titleWeight: titleWeight,
|
|
45925
|
-
imageBackgroundColor: imageBackgroundColor
|
|
45926
|
-
};
|
|
45927
|
-
|
|
45928
|
-
var WelcomeCard = function WelcomeCard(_ref) {
|
|
45929
|
-
var themeValues = _ref.themeValues,
|
|
45930
|
-
title = _ref.title,
|
|
45931
|
-
text = _ref.text,
|
|
45932
|
-
buttonText = _ref.buttonText,
|
|
45933
|
-
url = _ref.url,
|
|
45934
|
-
imageSrc = _ref.imageSrc,
|
|
45935
|
-
newTab = _ref.newTab,
|
|
45936
|
-
variant = _ref.variant;
|
|
45937
|
-
return /*#__PURE__*/React__default.createElement(Card$1, {
|
|
45938
|
-
variant: variant
|
|
45939
|
-
}, imageSrc && /*#__PURE__*/React__default.createElement(Cover, null, /*#__PURE__*/React__default.createElement("img", {
|
|
45940
|
-
src: imageSrc,
|
|
45941
|
-
style: {
|
|
45942
|
-
background: "".concat(themeValues.imageBackgroundColor),
|
|
45943
|
-
objectFit: "none",
|
|
45944
|
-
height: "150px"
|
|
45945
|
-
}
|
|
45946
|
-
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
45947
|
-
padding: "24px"
|
|
45948
|
-
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
45949
|
-
variant: "small",
|
|
45950
|
-
color: themeValues.titleColor,
|
|
45951
|
-
weight: themeValues.titleWeight
|
|
45952
|
-
}, title), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
45953
|
-
color: themeValues.textColor
|
|
45954
|
-
}, text), url && buttonText && /*#__PURE__*/React__default.createElement(Box, {
|
|
45955
|
-
extraStyles: "margin-top: 4rem; padding: 0"
|
|
45956
|
-
}, /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|
|
45957
|
-
extraStyles: "margin: 0; width: 100%",
|
|
45958
|
-
linkExtraStyles: "text-decoration:none",
|
|
45959
|
-
url: url,
|
|
45960
|
-
text: buttonText,
|
|
45961
|
-
newTab: newTab
|
|
45962
|
-
}))));
|
|
45963
|
-
};
|
|
45964
|
-
|
|
45965
|
-
var WelcomeCard$1 = themeComponent(WelcomeCard, "WelcomeCard", fallbackValues$K);
|
|
45966
|
-
|
|
45967
46294
|
var fontWeight$9 = "600";
|
|
45968
46295
|
var fontColor$1 = WHITE;
|
|
45969
46296
|
var textAlign$1 = "left";
|
|
@@ -46065,129 +46392,6 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
46065
46392
|
}))));
|
|
46066
46393
|
};
|
|
46067
46394
|
|
|
46068
|
-
var DashboardIframe = styled__default.iframe.withConfig({
|
|
46069
|
-
displayName: "PeriscopeDashboardIframestyled__DashboardIframe",
|
|
46070
|
-
componentId: "sc-j0cucj-0"
|
|
46071
|
-
})(["border:none;box-shadow:0 0 5px 0 ", ";display:none;"], ALTO_GREY);
|
|
46072
|
-
|
|
46073
|
-
/**
|
|
46074
|
-
* Component: PeriscopeDashboardIframe
|
|
46075
|
-
*
|
|
46076
|
-
* Used for rendering Citybase's periscope reporting dashboards in iframes.
|
|
46077
|
-
* Receives action props to trigger a request on mount for the iframe's url.
|
|
46078
|
-
* Receives a string prop if/when we receive the url result.
|
|
46079
|
-
* And receives action props to emit errors from failed iframe loading.
|
|
46080
|
-
*
|
|
46081
|
-
* The logic and api client methods to handle requests/response,
|
|
46082
|
-
* store the url, etc. should be provided from the app consuming this library.
|
|
46083
|
-
*
|
|
46084
|
-
* If the url request is pending, render a spinner.
|
|
46085
|
-
* If the url request failed, render a UI error state.
|
|
46086
|
-
**/
|
|
46087
|
-
|
|
46088
|
-
var DASHBOARD_SIZE_MESSAGE_TYPE = "dashboard_resize";
|
|
46089
|
-
var PERISCOPE_ORIGIN = "https://app.periscopedata.com";
|
|
46090
|
-
|
|
46091
|
-
var isValidMessage = function isValidMessage(message) {
|
|
46092
|
-
return message.isTrusted && message.origin === PERISCOPE_ORIGIN && message.data && message.data.event_type === DASHBOARD_SIZE_MESSAGE_TYPE;
|
|
46093
|
-
};
|
|
46094
|
-
|
|
46095
|
-
var PeriscopeDashboardIframe = function PeriscopeDashboardIframe(_ref) {
|
|
46096
|
-
var url = _ref.url,
|
|
46097
|
-
requestDashboardUrl = _ref.requestDashboardUrl,
|
|
46098
|
-
periscopeDataPending = _ref.periscopeDataPending,
|
|
46099
|
-
periscopeDataSuccess = _ref.periscopeDataSuccess,
|
|
46100
|
-
periscopeDataFailure = _ref.periscopeDataFailure,
|
|
46101
|
-
periscopeDataRequestSuccess = _ref.periscopeDataRequestSuccess,
|
|
46102
|
-
periscopeDataRequestFailure = _ref.periscopeDataRequestFailure,
|
|
46103
|
-
_ref$timerMS = _ref.timerMS,
|
|
46104
|
-
timerMS = _ref$timerMS === void 0 ? 20000 : _ref$timerMS;
|
|
46105
|
-
|
|
46106
|
-
var _useState = React.useState(0),
|
|
46107
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
46108
|
-
height = _useState2[0],
|
|
46109
|
-
setHeight = _useState2[1];
|
|
46110
|
-
|
|
46111
|
-
var time = {
|
|
46112
|
-
timer: null
|
|
46113
|
-
};
|
|
46114
|
-
React.useEffect(function () {
|
|
46115
|
-
time.timer = setTimeout(function () {
|
|
46116
|
-
if (!periscopeDataSuccess) {
|
|
46117
|
-
periscopeDataRequestFailure();
|
|
46118
|
-
}
|
|
46119
|
-
}, timerMS);
|
|
46120
|
-
return function () {
|
|
46121
|
-
return clearTimeout(time.timer);
|
|
46122
|
-
};
|
|
46123
|
-
}, [periscopeDataSuccess]);
|
|
46124
|
-
|
|
46125
|
-
var Dashboard = function Dashboard(height) {
|
|
46126
|
-
return function (url) {
|
|
46127
|
-
return /*#__PURE__*/React__default.createElement(DashboardIframe, {
|
|
46128
|
-
src: url,
|
|
46129
|
-
width: "100%",
|
|
46130
|
-
height: height,
|
|
46131
|
-
"data-qa": "DashboardIframe",
|
|
46132
|
-
onLoad: function onLoad() {
|
|
46133
|
-
var iframe = document.querySelector("iframe");
|
|
46134
|
-
iframe.style.display = "initial";
|
|
46135
|
-
}
|
|
46136
|
-
});
|
|
46137
|
-
};
|
|
46138
|
-
};
|
|
46139
|
-
|
|
46140
|
-
var validatePeriscope = function validatePeriscope(message) {
|
|
46141
|
-
if (isValidMessage(message)) {
|
|
46142
|
-
setHeight(message.data.dashboard_height + 100);
|
|
46143
|
-
|
|
46144
|
-
if (!periscopeDataSuccess) {
|
|
46145
|
-
clearTimeout(time.timer);
|
|
46146
|
-
periscopeDataRequestSuccess();
|
|
46147
|
-
}
|
|
46148
|
-
}
|
|
46149
|
-
};
|
|
46150
|
-
|
|
46151
|
-
React.useLayoutEffect(function () {
|
|
46152
|
-
window.addEventListener("message", validatePeriscope);
|
|
46153
|
-
requestDashboardUrl();
|
|
46154
|
-
return function () {
|
|
46155
|
-
return window.removeEventListener("message", validatePeriscope);
|
|
46156
|
-
};
|
|
46157
|
-
}, [requestDashboardUrl]);
|
|
46158
|
-
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(BoxWithShadow$1, {
|
|
46159
|
-
padding: "0",
|
|
46160
|
-
minWidth: "100%",
|
|
46161
|
-
minHeight: "592px",
|
|
46162
|
-
variant: "baseStandard",
|
|
46163
|
-
background: "#fff",
|
|
46164
|
-
borderRadius: "4px",
|
|
46165
|
-
extraStyles: "display: flex; justify-content: center; align-items: center; flex-direction: column;"
|
|
46166
|
-
}, periscopeDataPending && !periscopeDataSuccess && /*#__PURE__*/React__default.createElement(Cover, {
|
|
46167
|
-
minHeight: "100%",
|
|
46168
|
-
singleChild: true
|
|
46169
|
-
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
46170
|
-
intrinsic: true
|
|
46171
|
-
}, /*#__PURE__*/React__default.createElement(Spinner$2, {
|
|
46172
|
-
size: "100"
|
|
46173
|
-
}))), periscopeDataFailure && !periscopeDataSuccess && /*#__PURE__*/React__default.createElement(Box, {
|
|
46174
|
-
padding: "64px"
|
|
46175
|
-
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
46176
|
-
intrinsic: true
|
|
46177
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
46178
|
-
padding: "0 0 2rem"
|
|
46179
|
-
}, /*#__PURE__*/React__default.createElement(PeriscopeFailedIcon, null)), /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
46180
|
-
variant: "h3",
|
|
46181
|
-
weight: "700"
|
|
46182
|
-
}, "Something Went Wrong"), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
46183
|
-
variant: "p",
|
|
46184
|
-
extraStyles: "text-align: center;"
|
|
46185
|
-
}, "There was an issue trying to load the dashboard."), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
46186
|
-
variant: "p",
|
|
46187
|
-
extraStyles: "text-align: center;"
|
|
46188
|
-
}, "Your organization may not have a dashboard configured."))), !periscopeDataFailure && url && Dashboard(height)(url)));
|
|
46189
|
-
};
|
|
46190
|
-
|
|
46191
46395
|
var pageBackground = "#FBFCFD";
|
|
46192
46396
|
var fallbackValues$M = {
|
|
46193
46397
|
pageBackground: pageBackground
|
|
@@ -46452,42 +46656,12 @@ var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "
|
|
|
46452
46656
|
|
|
46453
46657
|
|
|
46454
46658
|
|
|
46455
|
-
var index$
|
|
46659
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
46456
46660
|
__proto__: null,
|
|
46457
46661
|
colors: colors,
|
|
46458
46662
|
fontWeights: style_constants
|
|
46459
46663
|
});
|
|
46460
46664
|
|
|
46461
|
-
var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
|
|
46462
|
-
var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
46463
|
-
// Only move focus when "hasErrors" is true
|
|
46464
|
-
// "hasErrors" is managed by container page of form
|
|
46465
|
-
// typically set to "true" on attempted form submission, if errors exist
|
|
46466
|
-
// Reset errors, if provided, resets the error state tracking in order to properly re-run
|
|
46467
|
-
React.useEffect(function () {
|
|
46468
|
-
if (hasErrors) {
|
|
46469
|
-
var _inputsWithErrors$;
|
|
46470
|
-
|
|
46471
|
-
var inputsWithErrors = document.querySelectorAll("input[aria-invalid=true]");
|
|
46472
|
-
inputsWithErrors === null || inputsWithErrors === void 0 ? void 0 : (_inputsWithErrors$ = inputsWithErrors[0]) === null || _inputsWithErrors$ === void 0 ? void 0 : _inputsWithErrors$.focus();
|
|
46473
|
-
}
|
|
46474
|
-
|
|
46475
|
-
return function () {
|
|
46476
|
-
return resetHasErrors(false);
|
|
46477
|
-
};
|
|
46478
|
-
});
|
|
46479
|
-
};
|
|
46480
|
-
|
|
46481
|
-
|
|
46482
|
-
|
|
46483
|
-
var index$5 = /*#__PURE__*/Object.freeze({
|
|
46484
|
-
__proto__: null,
|
|
46485
|
-
formats: formats,
|
|
46486
|
-
general: general,
|
|
46487
|
-
theme: themeUtils,
|
|
46488
|
-
useFocusInvalidInput: useFocusInvalidInput
|
|
46489
|
-
});
|
|
46490
|
-
|
|
46491
46665
|
exports.AccountNumberImage = AccountNumberImage;
|
|
46492
46666
|
exports.AccountsAddIcon = AccountsAddIcon$1;
|
|
46493
46667
|
exports.AccountsIcon = AccountsIcon$1;
|
|
@@ -46507,7 +46681,6 @@ exports.ButtonWithAction = ButtonWithAction;
|
|
|
46507
46681
|
exports.ButtonWithLink = ButtonWithLink;
|
|
46508
46682
|
exports.CalendarIcon = CalendarIcon;
|
|
46509
46683
|
exports.Card = Card$1;
|
|
46510
|
-
exports.CardWithHeader = CardWithHeader$1;
|
|
46511
46684
|
exports.CarrotIcon = CarrotIcon$1;
|
|
46512
46685
|
exports.CashIcon = CashIcon;
|
|
46513
46686
|
exports.Center = Center;
|
|
@@ -46601,6 +46774,7 @@ exports.PeriscopeDashboardIframe = PeriscopeDashboardIframe;
|
|
|
46601
46774
|
exports.PeriscopeFailedIcon = PeriscopeFailedIcon;
|
|
46602
46775
|
exports.PhoneForm = PhoneForm;
|
|
46603
46776
|
exports.Placeholder = Placeholder$1;
|
|
46777
|
+
exports.Popover = Popover$1;
|
|
46604
46778
|
exports.ProcessingFee = ProcessingFee$1;
|
|
46605
46779
|
exports.ProfileIcon = ProfileIcon$1;
|
|
46606
46780
|
exports.ProfileIconSmall = ProfileIconSmall$1;
|
|
@@ -46648,12 +46822,11 @@ exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
|
|
|
46648
46822
|
exports.VoidedIcon = VoidedIcon;
|
|
46649
46823
|
exports.WalletIcon = WalletIcon$1;
|
|
46650
46824
|
exports.WarningIconXS = WarningIconXS;
|
|
46651
|
-
exports.WelcomeCard = WelcomeCard$1;
|
|
46652
46825
|
exports.WelcomeModule = WelcomeModule$1;
|
|
46653
46826
|
exports.WorkflowTile = WorkflowTile;
|
|
46654
46827
|
exports.cardRegistry = cardRegistry;
|
|
46655
|
-
exports.constants = index$
|
|
46828
|
+
exports.constants = index$5;
|
|
46656
46829
|
exports.createPartialAmountFormState = createPartialAmountFormState;
|
|
46657
|
-
exports.util = index$
|
|
46830
|
+
exports.util = index$4;
|
|
46658
46831
|
exports.withWindowSize = withWindowSize;
|
|
46659
46832
|
//# sourceMappingURL=index.cjs.js.map
|