@thecb/components 6.3.0-beta.2 → 6.3.1-beta.3
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 +475 -394
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +17 -21
- package/dist/index.esm.js +473 -391
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card/Card.js +11 -20
- package/src/components/atoms/card/index.d.ts +1 -0
- package/src/components/atoms/display-card/DisplayCard.js +31 -12
- 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/Text.js +2 -0
- package/src/components/molecules/index.d.ts +0 -2
- package/src/components/molecules/index.js +2 -3
- package/src/components/molecules/popover/Popover.js +124 -0
- package/src/components/molecules/popover/Popover.theme.js +9 -0
- package/src/components/molecules/popover/index.js +3 -0
- package/src/util/index.js +2 -1
- package/src/util/useOutsideClick.js +33 -0
- package/src/components/molecules/card-with-header/CardWithHeader.js +0 -33
- package/src/components/molecules/card-with-header/CardWithHeader.theme.js +0 -9
- package/src/components/molecules/card-with-header/index.d.ts +0 -10
- package/src/components/molecules/card-with-header/index.js +0 -2
- package/src/components/molecules/welcome-card/WelcomeCard.js +0 -63
- package/src/components/molecules/welcome-card/WelcomeCard.theme.js +0 -15
- package/src/components/molecules/welcome-card/index.d.ts +0 -14
- package/src/components/molecules/welcome-card/index.js +0 -3
package/dist/index.esm.js
CHANGED
|
@@ -6330,7 +6330,7 @@ var general = /*#__PURE__*/Object.freeze({
|
|
|
6330
6330
|
throttle: throttle
|
|
6331
6331
|
});
|
|
6332
6332
|
|
|
6333
|
-
var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"];
|
|
6333
|
+
var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children", "variant"];
|
|
6334
6334
|
|
|
6335
6335
|
var Text = function Text(_ref) {
|
|
6336
6336
|
var themeValues = _ref.themeValues,
|
|
@@ -6348,6 +6348,8 @@ var Text = function Text(_ref) {
|
|
|
6348
6348
|
as = _ref.as,
|
|
6349
6349
|
dataQa = _ref.dataQa,
|
|
6350
6350
|
children = _ref.children,
|
|
6351
|
+
_ref$variant = _ref.variant,
|
|
6352
|
+
variant = _ref$variant === void 0 ? "p" : _ref$variant,
|
|
6351
6353
|
rest = _objectWithoutProperties(_ref, _excluded$1);
|
|
6352
6354
|
|
|
6353
6355
|
return /*#__PURE__*/React.createElement(TextSpan, _extends({
|
|
@@ -6361,7 +6363,8 @@ var Text = function Text(_ref) {
|
|
|
6361
6363
|
onClick: onClick,
|
|
6362
6364
|
onKeyPress: onKeyPress,
|
|
6363
6365
|
"data-qa": dataQa,
|
|
6364
|
-
$textWrap: textWrap
|
|
6366
|
+
$textWrap: textWrap,
|
|
6367
|
+
$variant: variant
|
|
6365
6368
|
}, rest), safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
|
|
6366
6369
|
};
|
|
6367
6370
|
|
|
@@ -22385,53 +22388,6 @@ var DisplayBox = function DisplayBox(_ref) {
|
|
|
22385
22388
|
|
|
22386
22389
|
var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$h);
|
|
22387
22390
|
|
|
22388
|
-
var DisplayCard = function DisplayCard(_ref) {
|
|
22389
|
-
var title = _ref.title,
|
|
22390
|
-
item = _ref.item,
|
|
22391
|
-
buttonText = _ref.buttonText,
|
|
22392
|
-
buttonAction = _ref.buttonAction,
|
|
22393
|
-
url = _ref.url,
|
|
22394
|
-
_ref$link = _ref.link,
|
|
22395
|
-
link = _ref$link === void 0 ? false : _ref$link;
|
|
22396
|
-
return /*#__PURE__*/React.createElement(Box, {
|
|
22397
|
-
padding: "0 0 16px"
|
|
22398
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
22399
|
-
childGap: "0rem"
|
|
22400
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
22401
|
-
padding: "0 0 8px 0"
|
|
22402
|
-
}, /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
22403
|
-
variant: "pL",
|
|
22404
|
-
color: CHARADE_GREY,
|
|
22405
|
-
extraStyles: "letter-spacing: 0.29px"
|
|
22406
|
-
}, title)), /*#__PURE__*/React.createElement(Box, {
|
|
22407
|
-
padding: "0"
|
|
22408
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
22409
|
-
padding: "24px",
|
|
22410
|
-
borderSize: "1px",
|
|
22411
|
-
borderRadius: "4px",
|
|
22412
|
-
background: WHITE,
|
|
22413
|
-
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
22414
|
-
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
22415
|
-
justify: "space-between",
|
|
22416
|
-
align: "center"
|
|
22417
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
22418
|
-
variant: "p",
|
|
22419
|
-
color: CHARADE_GREY
|
|
22420
|
-
}, item), link ? /*#__PURE__*/React.createElement(ButtonWithLink, {
|
|
22421
|
-
text: buttonText,
|
|
22422
|
-
url: url,
|
|
22423
|
-
variant: "smallGhost",
|
|
22424
|
-
dataQa: buttonText,
|
|
22425
|
-
extraStyles: "min-width: 0;"
|
|
22426
|
-
}) : buttonAction ? /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
22427
|
-
text: buttonText,
|
|
22428
|
-
action: buttonAction,
|
|
22429
|
-
variant: "smallGhost",
|
|
22430
|
-
dataQa: buttonText,
|
|
22431
|
-
extraStyles: "min-width: 0;"
|
|
22432
|
-
}) : /*#__PURE__*/React.createElement(Fragment$1, null))))));
|
|
22433
|
-
};
|
|
22434
|
-
|
|
22435
22391
|
function _extends$2() {
|
|
22436
22392
|
_extends$2 = Object.assign || function (target) {
|
|
22437
22393
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -22710,6 +22666,284 @@ var FormattedInput = function FormattedInput(_ref) {
|
|
|
22710
22666
|
}));
|
|
22711
22667
|
};
|
|
22712
22668
|
|
|
22669
|
+
var formatDelimiter = "_";
|
|
22670
|
+
var phoneFormats = ["", "_", "__", "(___) ", "(___) _", "(___) __", "(___) ___-", "(___) ___-_", "(___) ___-__", "(___) ___-___", "(___) ___-____"];
|
|
22671
|
+
var zipFormats = ["", "_", "__", "___", "____", "_____", "______", "_____-__", "_____-___", "_____-____"];
|
|
22672
|
+
var creditCardFormats = ["", "_", "__", "___", "____", "____ _", "____ __", "____ ___", "____ ____", "____ ____ _", "____ ____ __", "____ ____ ___", "____ ____ ____", "____ ____ ____ _", "____ ____ ____ __", "____ ____ ____ ___", "____ ____ ____ ____"];
|
|
22673
|
+
var moneyFormats = ["", "$0.0_", "$0.__", "$_.__", "$__.__", "$___.__", "$_,___.__", "$__,___.__", "$___,___.__", "$_,___,___.__", "$__,___,___.__", "$___,___,___.__", "$_,___,___,___.__", "$__,___,___,___.__", "$___,___,___,___.__", "$_,___,___,___,___.__"];
|
|
22674
|
+
var expirationDateFormats = ["", "_", "__/", "__/_", "__/__"];
|
|
22675
|
+
var zipFormat = createFormat(zipFormats, formatDelimiter);
|
|
22676
|
+
var creditCardFormat = createFormat(creditCardFormats, formatDelimiter);
|
|
22677
|
+
var expirationDateFormat = createFormat(expirationDateFormats, formatDelimiter);
|
|
22678
|
+
var phoneFormat = createFormat(phoneFormats, formatDelimiter);
|
|
22679
|
+
var moneyFormat = createFormat(moneyFormats, formatDelimiter);
|
|
22680
|
+
|
|
22681
|
+
var formats = /*#__PURE__*/Object.freeze({
|
|
22682
|
+
__proto__: null,
|
|
22683
|
+
formatDelimiter: formatDelimiter,
|
|
22684
|
+
phoneFormats: phoneFormats,
|
|
22685
|
+
moneyFormats: moneyFormats,
|
|
22686
|
+
expirationDateFormats: expirationDateFormats,
|
|
22687
|
+
zipFormat: zipFormat,
|
|
22688
|
+
creditCardFormat: creditCardFormat,
|
|
22689
|
+
expirationDateFormat: expirationDateFormat,
|
|
22690
|
+
phoneFormat: phoneFormat,
|
|
22691
|
+
moneyFormat: moneyFormat
|
|
22692
|
+
});
|
|
22693
|
+
|
|
22694
|
+
var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
|
|
22695
|
+
var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
22696
|
+
// Only move focus when "hasErrors" is true
|
|
22697
|
+
// "hasErrors" is managed by container page of form
|
|
22698
|
+
// typically set to "true" on attempted form submission, if errors exist
|
|
22699
|
+
// Reset errors, if provided, resets the error state tracking in order to properly re-run
|
|
22700
|
+
useEffect$1(function () {
|
|
22701
|
+
if (hasErrors) {
|
|
22702
|
+
var _inputsWithErrors$;
|
|
22703
|
+
|
|
22704
|
+
var inputsWithErrors = document.querySelectorAll("input[aria-invalid=true]");
|
|
22705
|
+
inputsWithErrors === null || inputsWithErrors === void 0 ? void 0 : (_inputsWithErrors$ = inputsWithErrors[0]) === null || _inputsWithErrors$ === void 0 ? void 0 : _inputsWithErrors$.focus();
|
|
22706
|
+
}
|
|
22707
|
+
|
|
22708
|
+
return function () {
|
|
22709
|
+
return resetHasErrors(false);
|
|
22710
|
+
};
|
|
22711
|
+
});
|
|
22712
|
+
};
|
|
22713
|
+
|
|
22714
|
+
/*
|
|
22715
|
+
Hook that assigns a click event listener to the main document element
|
|
22716
|
+
Returns a ref to attach to another element (like an icon/button that triggers a popover)
|
|
22717
|
+
If a click event gets captured by the document and the assigned element isn't the target
|
|
22718
|
+
hook will run whatever handler is passed (eg a function that closes a popover)
|
|
22719
|
+
|
|
22720
|
+
See popover component for implementation
|
|
22721
|
+
|
|
22722
|
+
*/
|
|
22723
|
+
|
|
22724
|
+
var useOutsideClickHook$1 = function useOutsideClickHook(handler) {
|
|
22725
|
+
var ref = useRef();
|
|
22726
|
+
useEffect$1(function () {
|
|
22727
|
+
}, [ref]);
|
|
22728
|
+
return ref;
|
|
22729
|
+
};
|
|
22730
|
+
|
|
22731
|
+
|
|
22732
|
+
|
|
22733
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
22734
|
+
__proto__: null,
|
|
22735
|
+
formats: formats,
|
|
22736
|
+
general: general,
|
|
22737
|
+
theme: themeUtils,
|
|
22738
|
+
useFocusInvalidInput: useFocusInvalidInput,
|
|
22739
|
+
useOutsideClick: useOutsideClickHook$1
|
|
22740
|
+
});
|
|
22741
|
+
|
|
22742
|
+
var hoverColor$4 = "#116285";
|
|
22743
|
+
var activeColor$4 = "#0E506D";
|
|
22744
|
+
var popoverTriggerColor = "#15749D";
|
|
22745
|
+
var fallbackValues$i = {
|
|
22746
|
+
hoverColor: hoverColor$4,
|
|
22747
|
+
activeColor: activeColor$4,
|
|
22748
|
+
popoverTriggerColor: popoverTriggerColor
|
|
22749
|
+
};
|
|
22750
|
+
|
|
22751
|
+
var Popover = function Popover(_ref) {
|
|
22752
|
+
var themeValues = _ref.themeValues,
|
|
22753
|
+
_ref$triggerText = _ref.triggerText,
|
|
22754
|
+
triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
|
|
22755
|
+
_ref$content = _ref.content,
|
|
22756
|
+
content = _ref$content === void 0 ? "" : _ref$content,
|
|
22757
|
+
_ref$hasIcon = _ref.hasIcon,
|
|
22758
|
+
hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
|
|
22759
|
+
Icon = _ref.icon,
|
|
22760
|
+
_ref$iconHelpText = _ref.iconHelpText,
|
|
22761
|
+
iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
|
|
22762
|
+
_ref$popoverID = _ref.popoverID,
|
|
22763
|
+
popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
|
|
22764
|
+
_ref$popoverFocus = _ref.popoverFocus,
|
|
22765
|
+
popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
|
|
22766
|
+
extraStyles = _ref.extraStyles,
|
|
22767
|
+
textExtraStyles = _ref.textExtraStyles,
|
|
22768
|
+
_ref$minWidth = _ref.minWidth,
|
|
22769
|
+
minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
|
|
22770
|
+
_ref$maxWidth = _ref.maxWidth,
|
|
22771
|
+
maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
|
|
22772
|
+
_ref$height = _ref.height,
|
|
22773
|
+
height = _ref$height === void 0 ? "auto" : _ref$height,
|
|
22774
|
+
position = _ref.position,
|
|
22775
|
+
arrowPosition = _ref.arrowPosition;
|
|
22776
|
+
var hoverColor = themeValues.hoverColor,
|
|
22777
|
+
activeColor = themeValues.activeColor,
|
|
22778
|
+
popoverTriggerColor = themeValues.popoverTriggerColor;
|
|
22779
|
+
|
|
22780
|
+
var _ref2 = position !== null && position !== void 0 ? position : {},
|
|
22781
|
+
_ref2$top = _ref2.top,
|
|
22782
|
+
top = _ref2$top === void 0 ? "-110px" : _ref2$top,
|
|
22783
|
+
_ref2$right = _ref2.right,
|
|
22784
|
+
right = _ref2$right === void 0 ? "auto" : _ref2$right,
|
|
22785
|
+
_ref2$bottom = _ref2.bottom,
|
|
22786
|
+
bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
|
|
22787
|
+
_ref2$left = _ref2.left,
|
|
22788
|
+
left = _ref2$left === void 0 ? "-225px" : _ref2$left;
|
|
22789
|
+
|
|
22790
|
+
var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
|
|
22791
|
+
_ref3$arrowTop = _ref3.arrowTop,
|
|
22792
|
+
arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
|
|
22793
|
+
_ref3$arrowRight = _ref3.arrowRight,
|
|
22794
|
+
arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
|
|
22795
|
+
_ref3$arrowBottom = _ref3.arrowBottom,
|
|
22796
|
+
arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
|
|
22797
|
+
_ref3$arrowLeft = _ref3.arrowLeft,
|
|
22798
|
+
arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
|
|
22799
|
+
|
|
22800
|
+
var _useState = useState(false),
|
|
22801
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
22802
|
+
popoverOpen = _useState2[0],
|
|
22803
|
+
togglePopover = _useState2[1];
|
|
22804
|
+
|
|
22805
|
+
var handleTogglePopover = function handleTogglePopover(popoverState) {
|
|
22806
|
+
if (popoverOpen !== popoverState) {
|
|
22807
|
+
togglePopover(popoverState);
|
|
22808
|
+
}
|
|
22809
|
+
};
|
|
22810
|
+
|
|
22811
|
+
var triggerRef = useOutsideClickHook(function () {
|
|
22812
|
+
return handleTogglePopover(false);
|
|
22813
|
+
});
|
|
22814
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
22815
|
+
padding: "0",
|
|
22816
|
+
extraStyles: "position: relative; ".concat(extraStyles)
|
|
22817
|
+
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
22818
|
+
action: function action() {
|
|
22819
|
+
return noop;
|
|
22820
|
+
},
|
|
22821
|
+
onFocus: function onFocus() {
|
|
22822
|
+
handleTogglePopover(true);
|
|
22823
|
+
},
|
|
22824
|
+
onBlur: function onBlur() {
|
|
22825
|
+
handleTogglePopover(false);
|
|
22826
|
+
},
|
|
22827
|
+
onKeyDown: function onKeyDown(e) {
|
|
22828
|
+
if (e.keyCode === 27) {
|
|
22829
|
+
handleTogglePopover(false);
|
|
22830
|
+
}
|
|
22831
|
+
},
|
|
22832
|
+
onTouchStart: function onTouchStart() {
|
|
22833
|
+
return handleTogglePopover(true);
|
|
22834
|
+
},
|
|
22835
|
+
onTouchEnd: function onTouchEnd() {
|
|
22836
|
+
return handleTogglePopover(false);
|
|
22837
|
+
},
|
|
22838
|
+
onMouseEnter: function onMouseEnter() {
|
|
22839
|
+
return handleTogglePopover(true);
|
|
22840
|
+
},
|
|
22841
|
+
onMouseLeave: function onMouseLeave() {
|
|
22842
|
+
return handleTogglePopover(false);
|
|
22843
|
+
},
|
|
22844
|
+
contentOverride: true,
|
|
22845
|
+
variant: "smallGhost",
|
|
22846
|
+
tabIndex: "0",
|
|
22847
|
+
id: "btnPopover".concat(popoverID),
|
|
22848
|
+
"aria-expanded": popoverOpen,
|
|
22849
|
+
"aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
|
|
22850
|
+
"aria-describedby": "Disclosure".concat(popoverID),
|
|
22851
|
+
"aria-controls": "Disclosed".concat(popoverID),
|
|
22852
|
+
ref: triggerRef
|
|
22853
|
+
}, hasIcon && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, null), /*#__PURE__*/React.createElement(Box, {
|
|
22854
|
+
padding: "0",
|
|
22855
|
+
srOnly: true
|
|
22856
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
22857
|
+
id: "btnPopover".concat(popoverID, "_info")
|
|
22858
|
+
}, iconHelpText))), !hasIcon && /*#__PURE__*/React.createElement(Text$1, {
|
|
22859
|
+
color: popoverTriggerColor,
|
|
22860
|
+
extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
|
|
22861
|
+
}, triggerText)), /*#__PURE__*/React.createElement(Box, {
|
|
22862
|
+
background: "white",
|
|
22863
|
+
borderRadius: "4px",
|
|
22864
|
+
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
|
|
22865
|
+
id: "Disclosed".concat(popoverID),
|
|
22866
|
+
role: "region",
|
|
22867
|
+
"aria-describedby": "Disclosure".concat(popoverID),
|
|
22868
|
+
tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
|
|
22869
|
+
minWidth: minWidth,
|
|
22870
|
+
maxWidth: maxWidth,
|
|
22871
|
+
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 ")
|
|
22872
|
+
}, /*#__PURE__*/React.createElement(Paragraph$1, null, content), /*#__PURE__*/React.createElement(Box, {
|
|
22873
|
+
padding: "0",
|
|
22874
|
+
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, ";")
|
|
22875
|
+
})));
|
|
22876
|
+
};
|
|
22877
|
+
|
|
22878
|
+
var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$i);
|
|
22879
|
+
|
|
22880
|
+
var DisplayCard = function DisplayCard(_ref) {
|
|
22881
|
+
var title = _ref.title,
|
|
22882
|
+
item = _ref.item,
|
|
22883
|
+
buttonText = _ref.buttonText,
|
|
22884
|
+
buttonAction = _ref.buttonAction,
|
|
22885
|
+
url = _ref.url,
|
|
22886
|
+
_ref$link = _ref.link,
|
|
22887
|
+
link = _ref$link === void 0 ? false : _ref$link,
|
|
22888
|
+
helpText = _ref.helpText,
|
|
22889
|
+
_ref$hasPopover = _ref.hasPopover,
|
|
22890
|
+
hasPopover = _ref$hasPopover === void 0 ? false : _ref$hasPopover,
|
|
22891
|
+
_ref$popoverTriggerTe = _ref.popoverTriggerText,
|
|
22892
|
+
popoverTriggerText = _ref$popoverTriggerTe === void 0 ? "" : _ref$popoverTriggerTe,
|
|
22893
|
+
_ref$popoverContent = _ref.popoverContent,
|
|
22894
|
+
popoverContent = _ref$popoverContent === void 0 ? "" : _ref$popoverContent,
|
|
22895
|
+
popoverExtraStyles = _ref.popoverExtraStyles,
|
|
22896
|
+
popoverTextExtraStyles = _ref.popoverTextExtraStyles;
|
|
22897
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
22898
|
+
padding: "0 0 16px"
|
|
22899
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
22900
|
+
childGap: "0rem"
|
|
22901
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
22902
|
+
padding: "0 0 8px 0"
|
|
22903
|
+
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
22904
|
+
justify: "space-between",
|
|
22905
|
+
align: "center",
|
|
22906
|
+
overflow: true
|
|
22907
|
+
}, /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
22908
|
+
variant: "pL",
|
|
22909
|
+
color: CHARADE_GREY,
|
|
22910
|
+
extraStyles: "letter-spacing: 0.29px"
|
|
22911
|
+
}, title), hasPopover && /*#__PURE__*/React.createElement(Popover$1, {
|
|
22912
|
+
triggerText: popoverTriggerText,
|
|
22913
|
+
content: popoverContent,
|
|
22914
|
+
popoverExtraStyles: popoverExtraStyles,
|
|
22915
|
+
popoverTextExtraStyles: popoverTextExtraStyles
|
|
22916
|
+
}))), /*#__PURE__*/React.createElement(Box, {
|
|
22917
|
+
padding: "0"
|
|
22918
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
22919
|
+
padding: "24px",
|
|
22920
|
+
borderSize: "1px",
|
|
22921
|
+
borderRadius: "4px",
|
|
22922
|
+
background: WHITE,
|
|
22923
|
+
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
22924
|
+
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
22925
|
+
justify: "space-between",
|
|
22926
|
+
align: "center"
|
|
22927
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
22928
|
+
color: CHARADE_GREY
|
|
22929
|
+
}, item), link ? /*#__PURE__*/React.createElement(ButtonWithLink, {
|
|
22930
|
+
text: buttonText,
|
|
22931
|
+
url: url,
|
|
22932
|
+
variant: "smallGhost",
|
|
22933
|
+
dataQa: buttonText,
|
|
22934
|
+
extraStyles: "min-width: 0;"
|
|
22935
|
+
}) : buttonAction ? /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
22936
|
+
text: buttonText,
|
|
22937
|
+
action: buttonAction,
|
|
22938
|
+
variant: "smallGhost",
|
|
22939
|
+
dataQa: buttonText,
|
|
22940
|
+
extraStyles: "min-width: 0;"
|
|
22941
|
+
}) : helpText ? /*#__PURE__*/React.createElement(Text$1, {
|
|
22942
|
+
color: STORM_GREY,
|
|
22943
|
+
extraStyles: "font-style: italic;"
|
|
22944
|
+
}, helpText) : /*#__PURE__*/React.createElement(Fragment$1, null))))));
|
|
22945
|
+
};
|
|
22946
|
+
|
|
22713
22947
|
var linkColor$2 = {
|
|
22714
22948
|
"default": "".concat(MATISSE_BLUE),
|
|
22715
22949
|
disabled: "".concat(MATISSE_BLUE)
|
|
@@ -22759,7 +22993,7 @@ var hoverFocusStyles$1 = {
|
|
|
22759
22993
|
var formFooterPanel = {
|
|
22760
22994
|
"default": "".concat(INFO_BLUE)
|
|
22761
22995
|
};
|
|
22762
|
-
var fallbackValues$
|
|
22996
|
+
var fallbackValues$j = {
|
|
22763
22997
|
linkColor: linkColor$2,
|
|
22764
22998
|
formBackgroundColor: formBackgroundColor$1,
|
|
22765
22999
|
inputBackgroundColor: inputBackgroundColor$1,
|
|
@@ -22981,7 +23215,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
22981
23215
|
}, decorator)));
|
|
22982
23216
|
};
|
|
22983
23217
|
|
|
22984
|
-
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$
|
|
23218
|
+
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$j, "default");
|
|
22985
23219
|
|
|
22986
23220
|
var _excluded$q = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
22987
23221
|
|
|
@@ -23037,7 +23271,7 @@ var FormContainer = function FormContainer(_ref) {
|
|
|
23037
23271
|
}, rest), children);
|
|
23038
23272
|
};
|
|
23039
23273
|
|
|
23040
|
-
var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$
|
|
23274
|
+
var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$j, "default");
|
|
23041
23275
|
|
|
23042
23276
|
var FormFooterPanel = function FormFooterPanel(_ref) {
|
|
23043
23277
|
var themeValues = _ref.themeValues,
|
|
@@ -23061,7 +23295,7 @@ var FormFooterPanel = function FormFooterPanel(_ref) {
|
|
|
23061
23295
|
})));
|
|
23062
23296
|
};
|
|
23063
23297
|
|
|
23064
|
-
var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$
|
|
23298
|
+
var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$j, "default");
|
|
23065
23299
|
|
|
23066
23300
|
var fontSize$7 = {
|
|
23067
23301
|
"default": "1rem",
|
|
@@ -23075,7 +23309,7 @@ var color$7 = {
|
|
|
23075
23309
|
"default": "".concat(CHARADE_GREY),
|
|
23076
23310
|
radio: "".concat(MINESHAFT_GREY)
|
|
23077
23311
|
};
|
|
23078
|
-
var fallbackValues$
|
|
23312
|
+
var fallbackValues$k = {
|
|
23079
23313
|
fontSize: fontSize$7,
|
|
23080
23314
|
padding: padding$1,
|
|
23081
23315
|
color: color$7
|
|
@@ -23118,11 +23352,11 @@ var FormattedAddress = function FormattedAddress(_ref) {
|
|
|
23118
23352
|
}, city, ", ", stateProvince, " ".concat(zip), country ? " ".concat(country) : "")));
|
|
23119
23353
|
};
|
|
23120
23354
|
|
|
23121
|
-
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$
|
|
23355
|
+
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$k, "default");
|
|
23122
23356
|
|
|
23123
23357
|
var textColor$1 = "".concat(CHARADE_GREY);
|
|
23124
23358
|
var autopayTextColor = "".concat(REGENT_GREY);
|
|
23125
|
-
var fallbackValues$
|
|
23359
|
+
var fallbackValues$l = {
|
|
23126
23360
|
textColor: textColor$1,
|
|
23127
23361
|
autopayTextColor: autopayTextColor
|
|
23128
23362
|
};
|
|
@@ -23188,7 +23422,7 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
|
23188
23422
|
}, "Autopay Enabled")));
|
|
23189
23423
|
};
|
|
23190
23424
|
|
|
23191
|
-
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$
|
|
23425
|
+
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$l);
|
|
23192
23426
|
|
|
23193
23427
|
var Hamburger = styled.button.withConfig({
|
|
23194
23428
|
displayName: "HamburgerButton__Hamburger",
|
|
@@ -23270,7 +23504,7 @@ var fontSize$8 = {
|
|
|
23270
23504
|
h5: "1.375rem",
|
|
23271
23505
|
h6: "1.25rem"
|
|
23272
23506
|
};
|
|
23273
|
-
var fallbackValues$
|
|
23507
|
+
var fallbackValues$m = {
|
|
23274
23508
|
fontFamily: fontFamily$5,
|
|
23275
23509
|
fontSize: fontSize$8
|
|
23276
23510
|
};
|
|
@@ -23312,7 +23546,7 @@ var Heading = function Heading(_ref) {
|
|
|
23312
23546
|
}, rest), safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
|
|
23313
23547
|
};
|
|
23314
23548
|
|
|
23315
|
-
var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$
|
|
23549
|
+
var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$m, "h1");
|
|
23316
23550
|
|
|
23317
23551
|
var Jumbo = function Jumbo(_ref) {
|
|
23318
23552
|
var showButton = _ref.showButton,
|
|
@@ -23386,7 +23620,7 @@ var fontWeight$4 = {
|
|
|
23386
23620
|
pL: "600",
|
|
23387
23621
|
h6: "700"
|
|
23388
23622
|
};
|
|
23389
|
-
var fallbackValues$
|
|
23623
|
+
var fallbackValues$n = {
|
|
23390
23624
|
fontWeight: fontWeight$4
|
|
23391
23625
|
};
|
|
23392
23626
|
|
|
@@ -23414,7 +23648,7 @@ var LabeledAmount = function LabeledAmount(_ref) {
|
|
|
23414
23648
|
}, amount));
|
|
23415
23649
|
};
|
|
23416
23650
|
|
|
23417
|
-
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$
|
|
23651
|
+
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$n, "default");
|
|
23418
23652
|
|
|
23419
23653
|
var weightTitle = {
|
|
23420
23654
|
"default": "600",
|
|
@@ -23424,7 +23658,7 @@ var paragraphVariant = {
|
|
|
23424
23658
|
"default": "pL",
|
|
23425
23659
|
small: "pS"
|
|
23426
23660
|
};
|
|
23427
|
-
var fallbackValues$
|
|
23661
|
+
var fallbackValues$o = {
|
|
23428
23662
|
weightTitle: weightTitle,
|
|
23429
23663
|
paragraphVariant: paragraphVariant
|
|
23430
23664
|
};
|
|
@@ -23453,10 +23687,10 @@ var LineItem = function LineItem(_ref) {
|
|
|
23453
23687
|
}, amount));
|
|
23454
23688
|
};
|
|
23455
23689
|
|
|
23456
|
-
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$
|
|
23690
|
+
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$o, "default");
|
|
23457
23691
|
|
|
23458
23692
|
var color$8 = "#15749D";
|
|
23459
|
-
var fallbackValues$
|
|
23693
|
+
var fallbackValues$p = {
|
|
23460
23694
|
color: color$8
|
|
23461
23695
|
};
|
|
23462
23696
|
|
|
@@ -23495,7 +23729,7 @@ var Spinner$1 = function Spinner(_ref4) {
|
|
|
23495
23729
|
})));
|
|
23496
23730
|
};
|
|
23497
23731
|
|
|
23498
|
-
var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$
|
|
23732
|
+
var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$p);
|
|
23499
23733
|
|
|
23500
23734
|
var Loading = function Loading() {
|
|
23501
23735
|
return /*#__PURE__*/React.createElement(Box, {
|
|
@@ -23761,7 +23995,7 @@ var height$1 = {
|
|
|
23761
23995
|
"default": "3rem",
|
|
23762
23996
|
large: "192px"
|
|
23763
23997
|
};
|
|
23764
|
-
var fallbackValues$
|
|
23998
|
+
var fallbackValues$q = {
|
|
23765
23999
|
color: color$9,
|
|
23766
24000
|
height: height$1
|
|
23767
24001
|
};
|
|
@@ -23854,12 +24088,12 @@ var Placeholder = function Placeholder(_ref2) {
|
|
|
23854
24088
|
}, text)))))))))));
|
|
23855
24089
|
};
|
|
23856
24090
|
|
|
23857
|
-
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$
|
|
24091
|
+
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$q, "default");
|
|
23858
24092
|
|
|
23859
24093
|
var backgroundColor$4 = {
|
|
23860
24094
|
"default": "".concat(WHITE)
|
|
23861
24095
|
};
|
|
23862
|
-
var fallbackValues$
|
|
24096
|
+
var fallbackValues$r = {
|
|
23863
24097
|
backgroundColor: backgroundColor$4
|
|
23864
24098
|
};
|
|
23865
24099
|
|
|
@@ -23887,12 +24121,12 @@ var ProcessingFee = function ProcessingFee(_ref) {
|
|
|
23887
24121
|
}));
|
|
23888
24122
|
};
|
|
23889
24123
|
|
|
23890
|
-
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$
|
|
24124
|
+
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$r, "default");
|
|
23891
24125
|
|
|
23892
|
-
var activeColor$
|
|
24126
|
+
var activeColor$5 = "".concat(MATISSE_BLUE);
|
|
23893
24127
|
var inactiveColor = "".concat(GREY_CHATEAU);
|
|
23894
|
-
var fallbackValues$
|
|
23895
|
-
activeColor: activeColor$
|
|
24128
|
+
var fallbackValues$s = {
|
|
24129
|
+
activeColor: activeColor$5,
|
|
23896
24130
|
inactiveColor: inactiveColor
|
|
23897
24131
|
};
|
|
23898
24132
|
|
|
@@ -23981,12 +24215,12 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
23981
24215
|
})));
|
|
23982
24216
|
};
|
|
23983
24217
|
|
|
23984
|
-
var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$
|
|
24218
|
+
var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$s);
|
|
23985
24219
|
|
|
23986
24220
|
var border$2 = {
|
|
23987
24221
|
"default": "1px solid #caced8"
|
|
23988
24222
|
};
|
|
23989
|
-
var fallbackValues$
|
|
24223
|
+
var fallbackValues$t = {
|
|
23990
24224
|
border: border$2
|
|
23991
24225
|
};
|
|
23992
24226
|
|
|
@@ -24061,7 +24295,7 @@ var SearchableSelect = function SearchableSelect(_ref) {
|
|
|
24061
24295
|
})))));
|
|
24062
24296
|
};
|
|
24063
24297
|
|
|
24064
|
-
var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$
|
|
24298
|
+
var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$t, "default");
|
|
24065
24299
|
|
|
24066
24300
|
var borderColor$2 = {
|
|
24067
24301
|
"default": "".concat(GREY_CHATEAU)
|
|
@@ -24069,7 +24303,7 @@ var borderColor$2 = {
|
|
|
24069
24303
|
var borderSize = {
|
|
24070
24304
|
"default": "1px"
|
|
24071
24305
|
};
|
|
24072
|
-
var fallbackValues$
|
|
24306
|
+
var fallbackValues$u = {
|
|
24073
24307
|
borderColor: borderColor$2,
|
|
24074
24308
|
borderSize: borderSize
|
|
24075
24309
|
};
|
|
@@ -24086,7 +24320,7 @@ var SolidDivider = function SolidDivider(_ref) {
|
|
|
24086
24320
|
});
|
|
24087
24321
|
};
|
|
24088
24322
|
|
|
24089
|
-
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$
|
|
24323
|
+
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$u, "default");
|
|
24090
24324
|
|
|
24091
24325
|
var placeHolderOptionUS = {
|
|
24092
24326
|
text: "Please select state",
|
|
@@ -34670,7 +34904,7 @@ var offBackground = "".concat(REGENT_GREY);
|
|
|
34670
34904
|
var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
|
|
34671
34905
|
var rightLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row;\n");
|
|
34672
34906
|
var leftLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row-reverse;\n");
|
|
34673
|
-
var fallbackValues$
|
|
34907
|
+
var fallbackValues$v = {
|
|
34674
34908
|
onBackground: onBackground,
|
|
34675
34909
|
disabledBackground: disabledBackground,
|
|
34676
34910
|
white: white,
|
|
@@ -34845,7 +35079,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
34845
35079
|
}, label))));
|
|
34846
35080
|
};
|
|
34847
35081
|
|
|
34848
|
-
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$
|
|
35082
|
+
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$v);
|
|
34849
35083
|
|
|
34850
35084
|
var background$1 = "".concat(ATHENS_GREY);
|
|
34851
35085
|
var white$1 = "".concat(WHITE);
|
|
@@ -34891,31 +35125,20 @@ var TypeaheadInput = function TypeaheadInput(_ref) {
|
|
|
34891
35125
|
};
|
|
34892
35126
|
|
|
34893
35127
|
var backgroundColor$5 = WHITE;
|
|
34894
|
-
var fallbackValues$
|
|
35128
|
+
var fallbackValues$w = {
|
|
34895
35129
|
backgroundColor: backgroundColor$5
|
|
34896
35130
|
};
|
|
34897
35131
|
|
|
34898
|
-
var _excluded$w = ["themeValues", "variant", "children", "extraStyles"];
|
|
35132
|
+
var _excluded$w = ["themeValues", "variant", "children", "extraStyles", "width"];
|
|
34899
35133
|
|
|
34900
|
-
var
|
|
34901
|
-
var
|
|
34902
|
-
|
|
34903
|
-
|
|
34904
|
-
|
|
34905
|
-
|
|
34906
|
-
|
|
34907
|
-
|
|
34908
|
-
maxWidth: "100%",
|
|
34909
|
-
fullHeight: true
|
|
34910
|
-
}, children));
|
|
34911
|
-
};
|
|
34912
|
-
|
|
34913
|
-
var Card = function Card(_ref2) {
|
|
34914
|
-
var themeValues = _ref2.themeValues,
|
|
34915
|
-
variant = _ref2.variant,
|
|
34916
|
-
children = _ref2.children,
|
|
34917
|
-
extraStyles = _ref2.extraStyles,
|
|
34918
|
-
props = _objectWithoutProperties(_ref2, _excluded$w);
|
|
35134
|
+
var Card = function Card(_ref) {
|
|
35135
|
+
var themeValues = _ref.themeValues,
|
|
35136
|
+
variant = _ref.variant,
|
|
35137
|
+
children = _ref.children,
|
|
35138
|
+
extraStyles = _ref.extraStyles,
|
|
35139
|
+
_ref$width = _ref.width,
|
|
35140
|
+
width = _ref$width === void 0 ? "276px" : _ref$width,
|
|
35141
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
34919
35142
|
|
|
34920
35143
|
return /*#__PURE__*/React.createElement(BoxWithShadow$1, _extends({
|
|
34921
35144
|
variant: "baseStandard",
|
|
@@ -34923,26 +35146,19 @@ var Card = function Card(_ref2) {
|
|
|
34923
35146
|
borderRadius: "4px",
|
|
34924
35147
|
padding: "0",
|
|
34925
35148
|
margin: "0",
|
|
34926
|
-
|
|
34927
|
-
minHeight: "100%",
|
|
34928
|
-
minWidth: variant !== "vertical" && "276px",
|
|
35149
|
+
minWidth: width,
|
|
34929
35150
|
extraStyles: extraStyles
|
|
34930
|
-
}, props), /*#__PURE__*/React.createElement(Cover,
|
|
34931
|
-
singleChild: true,
|
|
34932
|
-
fillCenter: true
|
|
34933
|
-
}, /*#__PURE__*/React.createElement(CardVariantSwitcher$1, {
|
|
34934
|
-
variant: variant
|
|
34935
|
-
}, children)));
|
|
35151
|
+
}, props), /*#__PURE__*/React.createElement(Cover, null, children));
|
|
34936
35152
|
};
|
|
34937
35153
|
|
|
34938
|
-
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$
|
|
35154
|
+
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$w);
|
|
34939
35155
|
|
|
34940
35156
|
var fontFamily$6 = "Public Sans, sans-serif";
|
|
34941
|
-
var activeColor$
|
|
35157
|
+
var activeColor$6 = MATISSE_BLUE;
|
|
34942
35158
|
var linkColor$3 = CHARADE_GREY;
|
|
34943
|
-
var fallbackValues$
|
|
35159
|
+
var fallbackValues$x = {
|
|
34944
35160
|
fontFamily: fontFamily$6,
|
|
34945
|
-
activeColor: activeColor$
|
|
35161
|
+
activeColor: activeColor$6,
|
|
34946
35162
|
linkColor: linkColor$3
|
|
34947
35163
|
};
|
|
34948
35164
|
|
|
@@ -34973,7 +35189,7 @@ var NavTab = function NavTab(_ref) {
|
|
|
34973
35189
|
}, label));
|
|
34974
35190
|
};
|
|
34975
35191
|
|
|
34976
|
-
var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$
|
|
35192
|
+
var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$x);
|
|
34977
35193
|
|
|
34978
35194
|
var NavTabs = function NavTabs(_ref) {
|
|
34979
35195
|
var tabsConfig = _ref.tabsConfig,
|
|
@@ -36752,31 +36968,6 @@ const createFormState = formConfig => ({
|
|
|
36752
36968
|
mapStateToProps: mapStateToProps
|
|
36753
36969
|
});
|
|
36754
36970
|
|
|
36755
|
-
var formatDelimiter = "_";
|
|
36756
|
-
var phoneFormats = ["", "_", "__", "(___) ", "(___) _", "(___) __", "(___) ___-", "(___) ___-_", "(___) ___-__", "(___) ___-___", "(___) ___-____"];
|
|
36757
|
-
var zipFormats = ["", "_", "__", "___", "____", "_____", "______", "_____-__", "_____-___", "_____-____"];
|
|
36758
|
-
var creditCardFormats = ["", "_", "__", "___", "____", "____ _", "____ __", "____ ___", "____ ____", "____ ____ _", "____ ____ __", "____ ____ ___", "____ ____ ____", "____ ____ ____ _", "____ ____ ____ __", "____ ____ ____ ___", "____ ____ ____ ____"];
|
|
36759
|
-
var moneyFormats = ["", "$0.0_", "$0.__", "$_.__", "$__.__", "$___.__", "$_,___.__", "$__,___.__", "$___,___.__", "$_,___,___.__", "$__,___,___.__", "$___,___,___.__", "$_,___,___,___.__", "$__,___,___,___.__", "$___,___,___,___.__", "$_,___,___,___,___.__"];
|
|
36760
|
-
var expirationDateFormats = ["", "_", "__/", "__/_", "__/__"];
|
|
36761
|
-
var zipFormat = createFormat(zipFormats, formatDelimiter);
|
|
36762
|
-
var creditCardFormat = createFormat(creditCardFormats, formatDelimiter);
|
|
36763
|
-
var expirationDateFormat = createFormat(expirationDateFormats, formatDelimiter);
|
|
36764
|
-
var phoneFormat = createFormat(phoneFormats, formatDelimiter);
|
|
36765
|
-
var moneyFormat = createFormat(moneyFormats, formatDelimiter);
|
|
36766
|
-
|
|
36767
|
-
var formats = /*#__PURE__*/Object.freeze({
|
|
36768
|
-
__proto__: null,
|
|
36769
|
-
formatDelimiter: formatDelimiter,
|
|
36770
|
-
phoneFormats: phoneFormats,
|
|
36771
|
-
moneyFormats: moneyFormats,
|
|
36772
|
-
expirationDateFormats: expirationDateFormats,
|
|
36773
|
-
zipFormat: zipFormat,
|
|
36774
|
-
creditCardFormat: creditCardFormat,
|
|
36775
|
-
expirationDateFormat: expirationDateFormat,
|
|
36776
|
-
phoneFormat: phoneFormat,
|
|
36777
|
-
moneyFormat: moneyFormat
|
|
36778
|
-
});
|
|
36779
|
-
|
|
36780
36971
|
var AddressForm = function AddressForm(_ref) {
|
|
36781
36972
|
var _zipErrorMessages;
|
|
36782
36973
|
|
|
@@ -36924,38 +37115,6 @@ AddressForm.reducer = reducer;
|
|
|
36924
37115
|
AddressForm.mapStateToProps = mapStateToProps$1;
|
|
36925
37116
|
AddressForm.mapDispatchToProps = mapDispatchToProps;
|
|
36926
37117
|
|
|
36927
|
-
var headerBackgroundColor = STORM_GREY;
|
|
36928
|
-
var headerTextColor = WHITE;
|
|
36929
|
-
var fallbackValues$x = {
|
|
36930
|
-
headerBackgroundColor: headerBackgroundColor,
|
|
36931
|
-
headerTextColor: headerTextColor
|
|
36932
|
-
};
|
|
36933
|
-
|
|
36934
|
-
var _excluded$x = ["themeValues", "children", "header", "extraStyles"];
|
|
36935
|
-
|
|
36936
|
-
var CardWithHeader = function CardWithHeader(_ref) {
|
|
36937
|
-
var themeValues = _ref.themeValues,
|
|
36938
|
-
children = _ref.children,
|
|
36939
|
-
header = _ref.header,
|
|
36940
|
-
extraStyles = _ref.extraStyles,
|
|
36941
|
-
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
36942
|
-
|
|
36943
|
-
return /*#__PURE__*/React.createElement(Card$1, _extends({
|
|
36944
|
-
extraStyles: extraStyles
|
|
36945
|
-
}, props), /*#__PURE__*/React.createElement(Box, {
|
|
36946
|
-
padding: "24px",
|
|
36947
|
-
background: themeValues.headerBackgroundColor,
|
|
36948
|
-
extraStyles: "\n border-radius: 4px 4px 0 0;\n "
|
|
36949
|
-
}, /*#__PURE__*/React.createElement(Title$1, {
|
|
36950
|
-
variant: "small",
|
|
36951
|
-
color: themeValues.headerTextColor
|
|
36952
|
-
}, header)), /*#__PURE__*/React.createElement(Box, {
|
|
36953
|
-
padding: "24px"
|
|
36954
|
-
}, children));
|
|
36955
|
-
};
|
|
36956
|
-
|
|
36957
|
-
var CardWithHeader$1 = themeComponent(CardWithHeader, "CardWithHeader", fallbackValues$x);
|
|
36958
|
-
|
|
36959
37118
|
var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
36960
37119
|
var _newPasswordErrorMess;
|
|
36961
37120
|
|
|
@@ -43396,15 +43555,15 @@ var TitleModule = function TitleModule(_ref) {
|
|
|
43396
43555
|
};
|
|
43397
43556
|
|
|
43398
43557
|
var color$a = "#15749D";
|
|
43399
|
-
var hoverColor$
|
|
43400
|
-
var activeColor$
|
|
43558
|
+
var hoverColor$5 = "#116285";
|
|
43559
|
+
var activeColor$7 = "#0E506D";
|
|
43401
43560
|
var linkColor$4 = "#3176AA";
|
|
43402
43561
|
var fontWeight$6 = FONT_WEIGHT_REGULAR;
|
|
43403
43562
|
var modalLinkHoverFocus = "outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;";
|
|
43404
43563
|
var fallbackValues$D = {
|
|
43405
43564
|
color: color$a,
|
|
43406
|
-
hoverColor: hoverColor$
|
|
43407
|
-
activeColor: activeColor$
|
|
43565
|
+
hoverColor: hoverColor$5,
|
|
43566
|
+
activeColor: activeColor$7,
|
|
43408
43567
|
linkColor: linkColor$4,
|
|
43409
43568
|
fontWeight: fontWeight$6,
|
|
43410
43569
|
modalLinkHoverFocus: modalLinkHoverFocus
|
|
@@ -44332,7 +44491,7 @@ var fallbackValues$E = {
|
|
|
44332
44491
|
labeledAmountTotal: labeledAmountTotal
|
|
44333
44492
|
};
|
|
44334
44493
|
|
|
44335
|
-
var _excluded$
|
|
44494
|
+
var _excluded$x = ["amount"],
|
|
44336
44495
|
_excluded2$1 = ["amount"];
|
|
44337
44496
|
|
|
44338
44497
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
@@ -44477,7 +44636,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
44477
44636
|
return fee.amount > 0;
|
|
44478
44637
|
}).map(function (_ref5) {
|
|
44479
44638
|
var amount = _ref5.amount,
|
|
44480
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
44639
|
+
rest = _objectWithoutProperties(_ref5, _excluded$x);
|
|
44481
44640
|
|
|
44482
44641
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
44483
44642
|
amount: displayCurrency(amount)
|
|
@@ -45017,6 +45176,129 @@ PaymentFormCard$1.reducer = reducer$8;
|
|
|
45017
45176
|
PaymentFormCard$1.mapStateToProps = mapStateToProps$9;
|
|
45018
45177
|
PaymentFormCard$1.mapDispatchToProps = mapDispatchToProps$8;
|
|
45019
45178
|
|
|
45179
|
+
var DashboardIframe = styled.iframe.withConfig({
|
|
45180
|
+
displayName: "PeriscopeDashboardIframestyled__DashboardIframe",
|
|
45181
|
+
componentId: "sc-j0cucj-0"
|
|
45182
|
+
})(["border:none;box-shadow:0 0 5px 0 ", ";display:none;"], ALTO_GREY);
|
|
45183
|
+
|
|
45184
|
+
/**
|
|
45185
|
+
* Component: PeriscopeDashboardIframe
|
|
45186
|
+
*
|
|
45187
|
+
* Used for rendering Citybase's periscope reporting dashboards in iframes.
|
|
45188
|
+
* Receives action props to trigger a request on mount for the iframe's url.
|
|
45189
|
+
* Receives a string prop if/when we receive the url result.
|
|
45190
|
+
* And receives action props to emit errors from failed iframe loading.
|
|
45191
|
+
*
|
|
45192
|
+
* The logic and api client methods to handle requests/response,
|
|
45193
|
+
* store the url, etc. should be provided from the app consuming this library.
|
|
45194
|
+
*
|
|
45195
|
+
* If the url request is pending, render a spinner.
|
|
45196
|
+
* If the url request failed, render a UI error state.
|
|
45197
|
+
**/
|
|
45198
|
+
|
|
45199
|
+
var DASHBOARD_SIZE_MESSAGE_TYPE = "dashboard_resize";
|
|
45200
|
+
var PERISCOPE_ORIGIN = "https://app.periscopedata.com";
|
|
45201
|
+
|
|
45202
|
+
var isValidMessage = function isValidMessage(message) {
|
|
45203
|
+
return message.isTrusted && message.origin === PERISCOPE_ORIGIN && message.data && message.data.event_type === DASHBOARD_SIZE_MESSAGE_TYPE;
|
|
45204
|
+
};
|
|
45205
|
+
|
|
45206
|
+
var PeriscopeDashboardIframe = function PeriscopeDashboardIframe(_ref) {
|
|
45207
|
+
var url = _ref.url,
|
|
45208
|
+
requestDashboardUrl = _ref.requestDashboardUrl,
|
|
45209
|
+
periscopeDataPending = _ref.periscopeDataPending,
|
|
45210
|
+
periscopeDataSuccess = _ref.periscopeDataSuccess,
|
|
45211
|
+
periscopeDataFailure = _ref.periscopeDataFailure,
|
|
45212
|
+
periscopeDataRequestSuccess = _ref.periscopeDataRequestSuccess,
|
|
45213
|
+
periscopeDataRequestFailure = _ref.periscopeDataRequestFailure,
|
|
45214
|
+
_ref$timerMS = _ref.timerMS,
|
|
45215
|
+
timerMS = _ref$timerMS === void 0 ? 20000 : _ref$timerMS;
|
|
45216
|
+
|
|
45217
|
+
var _useState = useState(0),
|
|
45218
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
45219
|
+
height = _useState2[0],
|
|
45220
|
+
setHeight = _useState2[1];
|
|
45221
|
+
|
|
45222
|
+
var time = {
|
|
45223
|
+
timer: null
|
|
45224
|
+
};
|
|
45225
|
+
useEffect$1(function () {
|
|
45226
|
+
time.timer = setTimeout(function () {
|
|
45227
|
+
if (!periscopeDataSuccess) {
|
|
45228
|
+
periscopeDataRequestFailure();
|
|
45229
|
+
}
|
|
45230
|
+
}, timerMS);
|
|
45231
|
+
return function () {
|
|
45232
|
+
return clearTimeout(time.timer);
|
|
45233
|
+
};
|
|
45234
|
+
}, [periscopeDataSuccess]);
|
|
45235
|
+
|
|
45236
|
+
var Dashboard = function Dashboard(height) {
|
|
45237
|
+
return function (url) {
|
|
45238
|
+
return /*#__PURE__*/React.createElement(DashboardIframe, {
|
|
45239
|
+
src: url,
|
|
45240
|
+
width: "100%",
|
|
45241
|
+
height: height,
|
|
45242
|
+
"data-qa": "DashboardIframe",
|
|
45243
|
+
onLoad: function onLoad() {
|
|
45244
|
+
var iframe = document.querySelector("iframe");
|
|
45245
|
+
iframe.style.display = "initial";
|
|
45246
|
+
}
|
|
45247
|
+
});
|
|
45248
|
+
};
|
|
45249
|
+
};
|
|
45250
|
+
|
|
45251
|
+
var validatePeriscope = function validatePeriscope(message) {
|
|
45252
|
+
if (isValidMessage(message)) {
|
|
45253
|
+
setHeight(message.data.dashboard_height + 100);
|
|
45254
|
+
|
|
45255
|
+
if (!periscopeDataSuccess) {
|
|
45256
|
+
clearTimeout(time.timer);
|
|
45257
|
+
periscopeDataRequestSuccess();
|
|
45258
|
+
}
|
|
45259
|
+
}
|
|
45260
|
+
};
|
|
45261
|
+
|
|
45262
|
+
useLayoutEffect(function () {
|
|
45263
|
+
window.addEventListener("message", validatePeriscope);
|
|
45264
|
+
requestDashboardUrl();
|
|
45265
|
+
return function () {
|
|
45266
|
+
return window.removeEventListener("message", validatePeriscope);
|
|
45267
|
+
};
|
|
45268
|
+
}, [requestDashboardUrl]);
|
|
45269
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(BoxWithShadow$1, {
|
|
45270
|
+
padding: "0",
|
|
45271
|
+
minWidth: "100%",
|
|
45272
|
+
minHeight: "592px",
|
|
45273
|
+
variant: "baseStandard",
|
|
45274
|
+
background: "#fff",
|
|
45275
|
+
borderRadius: "4px",
|
|
45276
|
+
extraStyles: "display: flex; justify-content: center; align-items: center; flex-direction: column;"
|
|
45277
|
+
}, periscopeDataPending && !periscopeDataSuccess && /*#__PURE__*/React.createElement(Cover, {
|
|
45278
|
+
minHeight: "100%",
|
|
45279
|
+
singleChild: true
|
|
45280
|
+
}, /*#__PURE__*/React.createElement(Center, {
|
|
45281
|
+
intrinsic: true
|
|
45282
|
+
}, /*#__PURE__*/React.createElement(Spinner$2, {
|
|
45283
|
+
size: "100"
|
|
45284
|
+
}))), periscopeDataFailure && !periscopeDataSuccess && /*#__PURE__*/React.createElement(Box, {
|
|
45285
|
+
padding: "64px"
|
|
45286
|
+
}, /*#__PURE__*/React.createElement(Center, {
|
|
45287
|
+
intrinsic: true
|
|
45288
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
45289
|
+
padding: "0 0 2rem"
|
|
45290
|
+
}, /*#__PURE__*/React.createElement(PeriscopeFailedIcon, null)), /*#__PURE__*/React.createElement(Heading$1, {
|
|
45291
|
+
variant: "h3",
|
|
45292
|
+
weight: "700"
|
|
45293
|
+
}, "Something Went Wrong"), /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
45294
|
+
variant: "p",
|
|
45295
|
+
extraStyles: "text-align: center;"
|
|
45296
|
+
}, "There was an issue trying to load the dashboard."), /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
45297
|
+
variant: "p",
|
|
45298
|
+
extraStyles: "text-align: center;"
|
|
45299
|
+
}, "Your organization may not have a dashboard configured."))), !periscopeDataFailure && url && Dashboard(height)(url)));
|
|
45300
|
+
};
|
|
45301
|
+
|
|
45020
45302
|
var PhoneForm = function PhoneForm(_ref) {
|
|
45021
45303
|
var _phoneErrorMessage;
|
|
45022
45304
|
|
|
@@ -45905,64 +46187,17 @@ var Timeout = function Timeout(_ref) {
|
|
|
45905
46187
|
|
|
45906
46188
|
var Timeout$1 = withWindowSize(Timeout);
|
|
45907
46189
|
|
|
45908
|
-
var titleColor$1 = BRIGHT_GREY;
|
|
45909
|
-
var textColor$3 = BRIGHT_GREY;
|
|
45910
|
-
var titleWeight = FONT_WEIGHT_BOLD;
|
|
45911
|
-
var imageBackgroundColor = INFO_BLUE;
|
|
45912
|
-
var fallbackValues$K = {
|
|
45913
|
-
textColor: textColor$3,
|
|
45914
|
-
titleColor: titleColor$1,
|
|
45915
|
-
titleWeight: titleWeight,
|
|
45916
|
-
imageBackgroundColor: imageBackgroundColor
|
|
45917
|
-
};
|
|
45918
|
-
|
|
45919
|
-
var WelcomeCard = function WelcomeCard(_ref) {
|
|
45920
|
-
var themeValues = _ref.themeValues,
|
|
45921
|
-
title = _ref.title,
|
|
45922
|
-
text = _ref.text,
|
|
45923
|
-
buttonText = _ref.buttonText,
|
|
45924
|
-
url = _ref.url,
|
|
45925
|
-
imageSrc = _ref.imageSrc,
|
|
45926
|
-
newTab = _ref.newTab;
|
|
45927
|
-
return /*#__PURE__*/React.createElement(Card$1, null, imageSrc && /*#__PURE__*/React.createElement(Cover, null, /*#__PURE__*/React.createElement("img", {
|
|
45928
|
-
src: imageSrc,
|
|
45929
|
-
style: {
|
|
45930
|
-
background: "".concat(themeValues.imageBackgroundColor),
|
|
45931
|
-
objectFit: "none",
|
|
45932
|
-
height: "150px"
|
|
45933
|
-
}
|
|
45934
|
-
})), /*#__PURE__*/React.createElement(Box, {
|
|
45935
|
-
padding: "24px"
|
|
45936
|
-
}, /*#__PURE__*/React.createElement(Title$1, {
|
|
45937
|
-
variant: "small",
|
|
45938
|
-
color: themeValues.titleColor,
|
|
45939
|
-
weight: themeValues.titleWeight
|
|
45940
|
-
}, title), /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
45941
|
-
color: themeValues.textColor
|
|
45942
|
-
}, text), url && buttonText && /*#__PURE__*/React.createElement(Box, {
|
|
45943
|
-
extraStyles: "margin-top: 4rem; padding: 0"
|
|
45944
|
-
}, /*#__PURE__*/React.createElement(ButtonWithLink, {
|
|
45945
|
-
extraStyles: "margin: 0; width: 100%",
|
|
45946
|
-
linkExtraStyles: "text-decoration:none",
|
|
45947
|
-
url: url,
|
|
45948
|
-
text: buttonText,
|
|
45949
|
-
newTab: newTab
|
|
45950
|
-
}))));
|
|
45951
|
-
};
|
|
45952
|
-
|
|
45953
|
-
var WelcomeCard$1 = themeComponent(WelcomeCard, "WelcomeCard", fallbackValues$K);
|
|
45954
|
-
|
|
45955
46190
|
var fontWeight$9 = "600";
|
|
45956
46191
|
var fontColor$1 = WHITE;
|
|
45957
46192
|
var textAlign$1 = "left";
|
|
45958
|
-
var headerBackgroundColor
|
|
45959
|
-
var imageBackgroundColor
|
|
45960
|
-
var fallbackValues$
|
|
46193
|
+
var headerBackgroundColor = BRIGHT_GREY;
|
|
46194
|
+
var imageBackgroundColor = MATISSE_BLUE;
|
|
46195
|
+
var fallbackValues$K = {
|
|
45961
46196
|
fontWeight: fontWeight$9,
|
|
45962
46197
|
fontColor: fontColor$1,
|
|
45963
46198
|
textAlign: textAlign$1,
|
|
45964
|
-
headerBackgroundColor: headerBackgroundColor
|
|
45965
|
-
imageBackgroundColor: imageBackgroundColor
|
|
46199
|
+
headerBackgroundColor: headerBackgroundColor,
|
|
46200
|
+
imageBackgroundColor: imageBackgroundColor
|
|
45966
46201
|
};
|
|
45967
46202
|
|
|
45968
46203
|
var WelcomeImage = styled.img.withConfig({
|
|
@@ -46004,7 +46239,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
|
|
|
46004
46239
|
})))));
|
|
46005
46240
|
};
|
|
46006
46241
|
|
|
46007
|
-
var WelcomeModule$1 = /*#__PURE__*/memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$
|
|
46242
|
+
var WelcomeModule$1 = /*#__PURE__*/memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$K));
|
|
46008
46243
|
|
|
46009
46244
|
var WorkflowTile = function WorkflowTile(_ref) {
|
|
46010
46245
|
var _ref$workflowName = _ref.workflowName,
|
|
@@ -46053,131 +46288,8 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
46053
46288
|
}))));
|
|
46054
46289
|
};
|
|
46055
46290
|
|
|
46056
|
-
var DashboardIframe = styled.iframe.withConfig({
|
|
46057
|
-
displayName: "PeriscopeDashboardIframestyled__DashboardIframe",
|
|
46058
|
-
componentId: "sc-j0cucj-0"
|
|
46059
|
-
})(["border:none;box-shadow:0 0 5px 0 ", ";display:none;"], ALTO_GREY);
|
|
46060
|
-
|
|
46061
|
-
/**
|
|
46062
|
-
* Component: PeriscopeDashboardIframe
|
|
46063
|
-
*
|
|
46064
|
-
* Used for rendering Citybase's periscope reporting dashboards in iframes.
|
|
46065
|
-
* Receives action props to trigger a request on mount for the iframe's url.
|
|
46066
|
-
* Receives a string prop if/when we receive the url result.
|
|
46067
|
-
* And receives action props to emit errors from failed iframe loading.
|
|
46068
|
-
*
|
|
46069
|
-
* The logic and api client methods to handle requests/response,
|
|
46070
|
-
* store the url, etc. should be provided from the app consuming this library.
|
|
46071
|
-
*
|
|
46072
|
-
* If the url request is pending, render a spinner.
|
|
46073
|
-
* If the url request failed, render a UI error state.
|
|
46074
|
-
**/
|
|
46075
|
-
|
|
46076
|
-
var DASHBOARD_SIZE_MESSAGE_TYPE = "dashboard_resize";
|
|
46077
|
-
var PERISCOPE_ORIGIN = "https://app.periscopedata.com";
|
|
46078
|
-
|
|
46079
|
-
var isValidMessage = function isValidMessage(message) {
|
|
46080
|
-
return message.isTrusted && message.origin === PERISCOPE_ORIGIN && message.data && message.data.event_type === DASHBOARD_SIZE_MESSAGE_TYPE;
|
|
46081
|
-
};
|
|
46082
|
-
|
|
46083
|
-
var PeriscopeDashboardIframe = function PeriscopeDashboardIframe(_ref) {
|
|
46084
|
-
var url = _ref.url,
|
|
46085
|
-
requestDashboardUrl = _ref.requestDashboardUrl,
|
|
46086
|
-
periscopeDataPending = _ref.periscopeDataPending,
|
|
46087
|
-
periscopeDataSuccess = _ref.periscopeDataSuccess,
|
|
46088
|
-
periscopeDataFailure = _ref.periscopeDataFailure,
|
|
46089
|
-
periscopeDataRequestSuccess = _ref.periscopeDataRequestSuccess,
|
|
46090
|
-
periscopeDataRequestFailure = _ref.periscopeDataRequestFailure,
|
|
46091
|
-
_ref$timerMS = _ref.timerMS,
|
|
46092
|
-
timerMS = _ref$timerMS === void 0 ? 20000 : _ref$timerMS;
|
|
46093
|
-
|
|
46094
|
-
var _useState = useState(0),
|
|
46095
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
46096
|
-
height = _useState2[0],
|
|
46097
|
-
setHeight = _useState2[1];
|
|
46098
|
-
|
|
46099
|
-
var time = {
|
|
46100
|
-
timer: null
|
|
46101
|
-
};
|
|
46102
|
-
useEffect$1(function () {
|
|
46103
|
-
time.timer = setTimeout(function () {
|
|
46104
|
-
if (!periscopeDataSuccess) {
|
|
46105
|
-
periscopeDataRequestFailure();
|
|
46106
|
-
}
|
|
46107
|
-
}, timerMS);
|
|
46108
|
-
return function () {
|
|
46109
|
-
return clearTimeout(time.timer);
|
|
46110
|
-
};
|
|
46111
|
-
}, [periscopeDataSuccess]);
|
|
46112
|
-
|
|
46113
|
-
var Dashboard = function Dashboard(height) {
|
|
46114
|
-
return function (url) {
|
|
46115
|
-
return /*#__PURE__*/React.createElement(DashboardIframe, {
|
|
46116
|
-
src: url,
|
|
46117
|
-
width: "100%",
|
|
46118
|
-
height: height,
|
|
46119
|
-
"data-qa": "DashboardIframe",
|
|
46120
|
-
onLoad: function onLoad() {
|
|
46121
|
-
var iframe = document.querySelector("iframe");
|
|
46122
|
-
iframe.style.display = "initial";
|
|
46123
|
-
}
|
|
46124
|
-
});
|
|
46125
|
-
};
|
|
46126
|
-
};
|
|
46127
|
-
|
|
46128
|
-
var validatePeriscope = function validatePeriscope(message) {
|
|
46129
|
-
if (isValidMessage(message)) {
|
|
46130
|
-
setHeight(message.data.dashboard_height + 100);
|
|
46131
|
-
|
|
46132
|
-
if (!periscopeDataSuccess) {
|
|
46133
|
-
clearTimeout(time.timer);
|
|
46134
|
-
periscopeDataRequestSuccess();
|
|
46135
|
-
}
|
|
46136
|
-
}
|
|
46137
|
-
};
|
|
46138
|
-
|
|
46139
|
-
useLayoutEffect(function () {
|
|
46140
|
-
window.addEventListener("message", validatePeriscope);
|
|
46141
|
-
requestDashboardUrl();
|
|
46142
|
-
return function () {
|
|
46143
|
-
return window.removeEventListener("message", validatePeriscope);
|
|
46144
|
-
};
|
|
46145
|
-
}, [requestDashboardUrl]);
|
|
46146
|
-
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(BoxWithShadow$1, {
|
|
46147
|
-
padding: "0",
|
|
46148
|
-
minWidth: "100%",
|
|
46149
|
-
minHeight: "592px",
|
|
46150
|
-
variant: "baseStandard",
|
|
46151
|
-
background: "#fff",
|
|
46152
|
-
borderRadius: "4px",
|
|
46153
|
-
extraStyles: "display: flex; justify-content: center; align-items: center; flex-direction: column;"
|
|
46154
|
-
}, periscopeDataPending && !periscopeDataSuccess && /*#__PURE__*/React.createElement(Cover, {
|
|
46155
|
-
minHeight: "100%",
|
|
46156
|
-
singleChild: true
|
|
46157
|
-
}, /*#__PURE__*/React.createElement(Center, {
|
|
46158
|
-
intrinsic: true
|
|
46159
|
-
}, /*#__PURE__*/React.createElement(Spinner$2, {
|
|
46160
|
-
size: "100"
|
|
46161
|
-
}))), periscopeDataFailure && !periscopeDataSuccess && /*#__PURE__*/React.createElement(Box, {
|
|
46162
|
-
padding: "64px"
|
|
46163
|
-
}, /*#__PURE__*/React.createElement(Center, {
|
|
46164
|
-
intrinsic: true
|
|
46165
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
46166
|
-
padding: "0 0 2rem"
|
|
46167
|
-
}, /*#__PURE__*/React.createElement(PeriscopeFailedIcon, null)), /*#__PURE__*/React.createElement(Heading$1, {
|
|
46168
|
-
variant: "h3",
|
|
46169
|
-
weight: "700"
|
|
46170
|
-
}, "Something Went Wrong"), /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
46171
|
-
variant: "p",
|
|
46172
|
-
extraStyles: "text-align: center;"
|
|
46173
|
-
}, "There was an issue trying to load the dashboard."), /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
46174
|
-
variant: "p",
|
|
46175
|
-
extraStyles: "text-align: center;"
|
|
46176
|
-
}, "Your organization may not have a dashboard configured."))), !periscopeDataFailure && url && Dashboard(height)(url)));
|
|
46177
|
-
};
|
|
46178
|
-
|
|
46179
46291
|
var pageBackground = "#FBFCFD";
|
|
46180
|
-
var fallbackValues$
|
|
46292
|
+
var fallbackValues$L = {
|
|
46181
46293
|
pageBackground: pageBackground
|
|
46182
46294
|
};
|
|
46183
46295
|
|
|
@@ -46224,7 +46336,7 @@ var CenterSingle = function CenterSingle(_ref) {
|
|
|
46224
46336
|
})));
|
|
46225
46337
|
};
|
|
46226
46338
|
|
|
46227
|
-
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$
|
|
46339
|
+
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$L));
|
|
46228
46340
|
|
|
46229
46341
|
var CenterStack = function CenterStack(_ref) {
|
|
46230
46342
|
var header = _ref.header,
|
|
@@ -46266,7 +46378,7 @@ var CenterStack = function CenterStack(_ref) {
|
|
|
46266
46378
|
})));
|
|
46267
46379
|
};
|
|
46268
46380
|
|
|
46269
|
-
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$
|
|
46381
|
+
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$L));
|
|
46270
46382
|
|
|
46271
46383
|
var CenterSingle$2 = function CenterSingle(_ref) {
|
|
46272
46384
|
var header = _ref.header,
|
|
@@ -46311,7 +46423,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
|
|
|
46311
46423
|
})));
|
|
46312
46424
|
};
|
|
46313
46425
|
|
|
46314
|
-
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$
|
|
46426
|
+
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$L));
|
|
46315
46427
|
|
|
46316
46428
|
var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
46317
46429
|
var header = _ref.header,
|
|
@@ -46365,7 +46477,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
|
46365
46477
|
})));
|
|
46366
46478
|
};
|
|
46367
46479
|
|
|
46368
|
-
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$
|
|
46480
|
+
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$L));
|
|
46369
46481
|
|
|
46370
46482
|
var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
46371
46483
|
var header = _ref.header,
|
|
@@ -46436,45 +46548,15 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
|
46436
46548
|
})));
|
|
46437
46549
|
};
|
|
46438
46550
|
|
|
46439
|
-
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$
|
|
46551
|
+
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$L));
|
|
46440
46552
|
|
|
46441
46553
|
|
|
46442
46554
|
|
|
46443
|
-
var index$
|
|
46555
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
46444
46556
|
__proto__: null,
|
|
46445
46557
|
colors: colors,
|
|
46446
46558
|
fontWeights: style_constants
|
|
46447
46559
|
});
|
|
46448
46560
|
|
|
46449
|
-
|
|
46450
|
-
var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
46451
|
-
// Only move focus when "hasErrors" is true
|
|
46452
|
-
// "hasErrors" is managed by container page of form
|
|
46453
|
-
// typically set to "true" on attempted form submission, if errors exist
|
|
46454
|
-
// Reset errors, if provided, resets the error state tracking in order to properly re-run
|
|
46455
|
-
useEffect$1(function () {
|
|
46456
|
-
if (hasErrors) {
|
|
46457
|
-
var _inputsWithErrors$;
|
|
46458
|
-
|
|
46459
|
-
var inputsWithErrors = document.querySelectorAll("input[aria-invalid=true]");
|
|
46460
|
-
inputsWithErrors === null || inputsWithErrors === void 0 ? void 0 : (_inputsWithErrors$ = inputsWithErrors[0]) === null || _inputsWithErrors$ === void 0 ? void 0 : _inputsWithErrors$.focus();
|
|
46461
|
-
}
|
|
46462
|
-
|
|
46463
|
-
return function () {
|
|
46464
|
-
return resetHasErrors(false);
|
|
46465
|
-
};
|
|
46466
|
-
});
|
|
46467
|
-
};
|
|
46468
|
-
|
|
46469
|
-
|
|
46470
|
-
|
|
46471
|
-
var index$5 = /*#__PURE__*/Object.freeze({
|
|
46472
|
-
__proto__: null,
|
|
46473
|
-
formats: formats,
|
|
46474
|
-
general: general,
|
|
46475
|
-
theme: themeUtils,
|
|
46476
|
-
useFocusInvalidInput: useFocusInvalidInput
|
|
46477
|
-
});
|
|
46478
|
-
|
|
46479
|
-
export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, AutopayOnIcon, BankIcon, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CardWithHeader$1 as CardWithHeader, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackReversalIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GoToEmailIcon$1 as GoToEmailIcon, Grid, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, IconAdd, IconQuitLarge, Imposter, InternalLink, InternalUserInfoForm, Jumbo$1 as Jumbo, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, Loading, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentIcon, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioSection$1 as RadioSection, Reel, RefundIcon, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, Switcher, TabSidebar$1 as TabSidebar, TableListItem, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletIcon$1 as WalletIcon, WarningIconXS, WelcomeCard$1 as WelcomeCard, WelcomeModule$1 as WelcomeModule, WorkflowTile, cardRegistry, index$4 as constants, createPartialAmountFormState, index$5 as util, withWindowSize };
|
|
46561
|
+
export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, AutopayOnIcon, BankIcon, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackReversalIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GoToEmailIcon$1 as GoToEmailIcon, Grid, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, IconAdd, IconQuitLarge, Imposter, InternalLink, InternalUserInfoForm, Jumbo$1 as Jumbo, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, Loading, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentIcon, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, Popover$1 as Popover, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioSection$1 as RadioSection, Reel, RefundIcon, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, Switcher, TabSidebar$1 as TabSidebar, TableListItem, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletIcon$1 as WalletIcon, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, cardRegistry, index$5 as constants, createPartialAmountFormState, index$4 as util, withWindowSize };
|
|
46480
46562
|
//# sourceMappingURL=index.esm.js.map
|