@thecb/components 11.8.1-beta.0 → 11.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1871,6 +1871,20 @@ var adjustHexColor = function adjustHexColor(hex, percent, action) {
1871
1871
  // Convert back to hex
1872
1872
  return "#".concat(((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1).padStart(6, "0"));
1873
1873
  };
1874
+ var arrowBorder = function arrowBorder(borderColor, direction) {
1875
+ var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
1876
+ var angle = "".concat(width, " solid transparent");
1877
+ var straight = "".concat(width, " solid ").concat(borderColor);
1878
+ if (direction == "down") {
1879
+ return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
1880
+ } else if (direction == "up") {
1881
+ return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
1882
+ } else if (direction == "left") {
1883
+ return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
1884
+ } else if (direction == "right") {
1885
+ return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
1886
+ }
1887
+ };
1874
1888
 
1875
1889
  var general = /*#__PURE__*/Object.freeze({
1876
1890
  __proto__: null,
@@ -1894,7 +1908,8 @@ var general = /*#__PURE__*/Object.freeze({
1894
1908
  titleCaseString: titleCaseString,
1895
1909
  kebabCaseString: kebabCaseString,
1896
1910
  wrapIndex: wrapIndex,
1897
- adjustHexColor: adjustHexColor
1911
+ adjustHexColor: adjustHexColor,
1912
+ arrowBorder: arrowBorder
1898
1913
  });
1899
1914
 
1900
1915
  var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children", "variant"];
@@ -14855,7 +14870,9 @@ var GenericErrorIcon = function GenericErrorIcon() {
14855
14870
  };
14856
14871
 
14857
14872
  var IconAdd = function IconAdd(_ref) {
14858
- var _ref$strokeWidth = _ref.strokeWidth,
14873
+ var _ref$stroke = _ref.stroke,
14874
+ stroke = _ref$stroke === void 0 ? "none" : _ref$stroke,
14875
+ _ref$strokeWidth = _ref.strokeWidth,
14859
14876
  strokeWidth = _ref$strokeWidth === void 0 ? 1 : _ref$strokeWidth;
14860
14877
  return /*#__PURE__*/React__default.createElement("svg", {
14861
14878
  xmlns: "http://www.w3.org/2000/svg",
@@ -14870,7 +14887,7 @@ var IconAdd = function IconAdd(_ref) {
14870
14887
  })), /*#__PURE__*/React__default.createElement("g", {
14871
14888
  fill: "none",
14872
14889
  fillRule: "evenodd",
14873
- stroke: "none",
14890
+ stroke: stroke,
14874
14891
  strokeWidth: strokeWidth
14875
14892
  }, /*#__PURE__*/React__default.createElement("g", {
14876
14893
  transform: "translate(-407 -563)"
@@ -25188,406 +25205,6 @@ var DisplayBox = function DisplayBox(_ref) {
25188
25205
  };
25189
25206
  var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$l);
25190
25207
 
25191
- /*
25192
- Hook that assigns a click event listener to the main document element
25193
- Returns a ref to attach to another element (like an icon/button that triggers a popover)
25194
- If a click event gets captured by the document and the assigned element isn't the target
25195
- hook will run whatever handler is passed (eg a function that closes a popover)
25196
-
25197
- See popover component for implementation
25198
-
25199
- */
25200
-
25201
- var useOutsideClickHook = function useOutsideClickHook(handler) {
25202
- var ref = useRef();
25203
- useEffect$1(function () {
25204
- var handleOutsideClick = function handleOutsideClick(e) {
25205
- if (ref.current && !ref.current.contains(e.target)) {
25206
- handler();
25207
- }
25208
- };
25209
- document.addEventListener("click", handleOutsideClick, true);
25210
- return function () {
25211
- document.removeEventListener("click", handleOutsideClick, true);
25212
- };
25213
- }, [ref]);
25214
- return ref;
25215
- };
25216
-
25217
- /*
25218
- Hook that takes an ID selector for an element on the screen
25219
- And optionally values for top position, left position, smooth behavior
25220
- Finds element on screen and scrolls it to the provided coordinates
25221
-
25222
- (string, number, number, string, number) => undefined;
25223
- */
25224
-
25225
- var useScrollTo = function useScrollTo(id) {
25226
- var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
25227
- var left = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
25228
- var behavior = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "auto";
25229
- var delay = arguments.length > 4 ? arguments[4] : undefined;
25230
- var scrollItem;
25231
- if (delay) {
25232
- setTimeout(function () {
25233
- var _scrollItem;
25234
- scrollItem = document.getElementById(id);
25235
- (_scrollItem = scrollItem) === null || _scrollItem === void 0 || _scrollItem.scrollTo({
25236
- top: top,
25237
- left: left,
25238
- behavior: behavior
25239
- });
25240
- }, delay);
25241
- } else {
25242
- var _scrollItem2;
25243
- scrollItem = document.getElementById(id);
25244
- (_scrollItem2 = scrollItem) === null || _scrollItem2 === void 0 || _scrollItem2.scrollTo({
25245
- top: top,
25246
- left: left,
25247
- behavior: behavior
25248
- });
25249
- }
25250
- };
25251
-
25252
- var initialToastState = {
25253
- isOpen: false,
25254
- variant: "",
25255
- message: ""
25256
- };
25257
- var useToastNotification = function useToastNotification() {
25258
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
25259
- _ref$timeout = _ref.timeout,
25260
- timeout = _ref$timeout === void 0 ? 5000 : _ref$timeout;
25261
- var _useState = useState(initialToastState),
25262
- _useState2 = _slicedToArray(_useState, 2),
25263
- toastState = _useState2[0],
25264
- setToastState = _useState2[1];
25265
- useEffect$1(function () {
25266
- if (toastState.isOpen && timeout > 0) {
25267
- setTimeout(function () {
25268
- setToastState(initialToastState);
25269
- }, timeout);
25270
- }
25271
- }, [timeout, toastState.isOpen]);
25272
- var showToast = function showToast(_ref2) {
25273
- var message = _ref2.message,
25274
- variant = _ref2.variant;
25275
- return setToastState({
25276
- isOpen: true,
25277
- variant: variant,
25278
- message: message
25279
- });
25280
- };
25281
- var hideToast = function hideToast() {
25282
- return setToastState(initialToastState);
25283
- };
25284
- return {
25285
- isToastOpen: toastState.isOpen,
25286
- toastVariant: toastState.variant,
25287
- toastMessage: toastState.message,
25288
- showToast: showToast,
25289
- hideToast: hideToast
25290
- };
25291
- };
25292
-
25293
- function useConditionallyAddValidator(condition, validatorFn, addValidator, removeValidator) {
25294
- useEffect$1(function () {
25295
- if (condition) {
25296
- addValidator(validatorFn());
25297
- }
25298
- return function () {
25299
- // Remove validator when component unmounts
25300
- removeValidator(validatorFn());
25301
- };
25302
- }, [condition, addValidator, removeValidator]);
25303
- }
25304
-
25305
- /**
25306
- * A custom hook to dynamically load the Cloudflare Turnstile script.
25307
- *
25308
- * @param {string} verifyURL - The URL of the Turnstile verification script.
25309
- */
25310
- var useTurnstileScript = function useTurnstileScript(verifyURL) {
25311
- var _useState = useState(false),
25312
- _useState2 = _slicedToArray(_useState, 2),
25313
- scriptLoaded = _useState2[0],
25314
- setScriptLoaded = _useState2[1];
25315
- var _useState3 = useState(false),
25316
- _useState4 = _slicedToArray(_useState3, 2),
25317
- scriptError = _useState4[0],
25318
- setScriptError = _useState4[1];
25319
- var handleScriptError = function handleScriptError() {
25320
- setScriptError(true);
25321
- setScriptLoaded(false);
25322
- };
25323
- useEffect$1(function () {
25324
- if (typeof window === "undefined") {
25325
- setScriptLoaded(false);
25326
- return;
25327
- }
25328
- if (window.turnstile && window.turnstile.render) {
25329
- setScriptLoaded(true);
25330
- return;
25331
- }
25332
- var script = document.createElement("script");
25333
- script.src = "".concat(verifyURL, "?render=explicit");
25334
- script.onload = function () {
25335
- setScriptLoaded(true);
25336
- };
25337
- script.onerror = function () {
25338
- handleScriptError();
25339
- };
25340
- script.onabort = function () {
25341
- handleScriptError();
25342
- };
25343
- script.defer = true;
25344
- document.getElementsByTagName("head")[0].appendChild(script);
25345
- return function () {
25346
- setScriptLoaded(false);
25347
- setScriptError(false);
25348
- };
25349
- }, [verifyURL]);
25350
- return {
25351
- scriptLoaded: scriptLoaded,
25352
- scriptError: scriptError
25353
- };
25354
- };
25355
-
25356
-
25357
-
25358
- var index$1 = /*#__PURE__*/Object.freeze({
25359
- __proto__: null,
25360
- useOutsideClick: useOutsideClickHook,
25361
- useScrollTo: useScrollTo,
25362
- useToastNotification: useToastNotification,
25363
- useConditionallyAddValidator: useConditionallyAddValidator,
25364
- useTurnstileScript: useTurnstileScript
25365
- });
25366
-
25367
- var hoverColor$4 = "#116285";
25368
- var activeColor$5 = "#0E506D";
25369
- var popoverTriggerColor = "#15749D";
25370
- var fallbackValues$m = {
25371
- hoverColor: hoverColor$4,
25372
- activeColor: activeColor$5,
25373
- popoverTriggerColor: popoverTriggerColor
25374
- };
25375
-
25376
- var arrowBorder = function arrowBorder(borderColor, direction) {
25377
- var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
25378
- var angle = "".concat(width, " solid transparent");
25379
- var straight = "".concat(width, " solid ").concat(borderColor);
25380
- if (direction == "down") {
25381
- return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
25382
- } else if (direction == "up") {
25383
- return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
25384
- } else if (direction == "left") {
25385
- return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
25386
- } else if (direction == "right") {
25387
- return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
25388
- }
25389
- };
25390
- var Popover = function Popover(_ref) {
25391
- var themeValues = _ref.themeValues,
25392
- _ref$triggerText = _ref.triggerText,
25393
- triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
25394
- _ref$content = _ref.content,
25395
- content = _ref$content === void 0 ? "" : _ref$content,
25396
- _ref$hasIcon = _ref.hasIcon,
25397
- hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
25398
- Icon = _ref.icon,
25399
- _ref$iconHelpText = _ref.iconHelpText,
25400
- iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
25401
- _ref$popoverID = _ref.popoverID,
25402
- popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
25403
- _ref$popoverFocus = _ref.popoverFocus,
25404
- popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
25405
- extraStyles = _ref.extraStyles,
25406
- textExtraStyles = _ref.textExtraStyles,
25407
- _ref$minWidth = _ref.minWidth,
25408
- minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
25409
- _ref$maxWidth = _ref.maxWidth,
25410
- maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
25411
- _ref$height = _ref.height,
25412
- height = _ref$height === void 0 ? "auto" : _ref$height,
25413
- position = _ref.position,
25414
- arrowPosition = _ref.arrowPosition,
25415
- _ref$arrowDirection = _ref.arrowDirection,
25416
- arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
25417
- _ref$transform = _ref.transform,
25418
- transform = _ref$transform === void 0 ? "none" : _ref$transform,
25419
- buttonExtraStyles = _ref.buttonExtraStyles,
25420
- _ref$backgroundColor = _ref.backgroundColor,
25421
- backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
25422
- _ref$borderColor = _ref.borderColor,
25423
- borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
25424
- popoverExtraStyles = _ref.popoverExtraStyles;
25425
- var hoverColor = themeValues.hoverColor,
25426
- activeColor = themeValues.activeColor,
25427
- popoverTriggerColor = themeValues.popoverTriggerColor;
25428
- var _ref2 = position !== null && position !== void 0 ? position : {},
25429
- _ref2$top = _ref2.top,
25430
- top = _ref2$top === void 0 ? "-110px" : _ref2$top,
25431
- _ref2$right = _ref2.right,
25432
- right = _ref2$right === void 0 ? "auto" : _ref2$right,
25433
- _ref2$bottom = _ref2.bottom,
25434
- bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
25435
- _ref2$left = _ref2.left,
25436
- left = _ref2$left === void 0 ? "-225px" : _ref2$left;
25437
- var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
25438
- _ref3$arrowTop = _ref3.arrowTop,
25439
- arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
25440
- _ref3$arrowRight = _ref3.arrowRight,
25441
- arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
25442
- _ref3$arrowBottom = _ref3.arrowBottom,
25443
- arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
25444
- _ref3$arrowLeft = _ref3.arrowLeft,
25445
- arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
25446
- var _useState = useState(false),
25447
- _useState2 = _slicedToArray(_useState, 2),
25448
- popoverOpen = _useState2[0],
25449
- togglePopover = _useState2[1];
25450
- var handleTogglePopover = function handleTogglePopover(popoverState) {
25451
- if (popoverOpen !== popoverState) {
25452
- togglePopover(popoverState);
25453
- }
25454
- };
25455
- var triggerRef = useOutsideClickHook(function () {
25456
- return handleTogglePopover(false);
25457
- });
25458
- return /*#__PURE__*/React__default.createElement(Box, {
25459
- padding: "0",
25460
- extraStyles: "position: relative; ".concat(extraStyles)
25461
- }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
25462
- action: function action() {
25463
- return noop$1;
25464
- },
25465
- onFocus: function onFocus() {
25466
- handleTogglePopover(true);
25467
- },
25468
- onBlur: function onBlur() {
25469
- handleTogglePopover(false);
25470
- },
25471
- onKeyDown: function onKeyDown(e) {
25472
- if (e.keyCode === ESCAPE) {
25473
- handleTogglePopover(false);
25474
- }
25475
- },
25476
- onTouchStart: function onTouchStart() {
25477
- return handleTogglePopover(true);
25478
- },
25479
- onTouchEnd: function onTouchEnd() {
25480
- return handleTogglePopover(false);
25481
- },
25482
- onMouseEnter: function onMouseEnter() {
25483
- return handleTogglePopover(true);
25484
- },
25485
- onMouseLeave: function onMouseLeave() {
25486
- return handleTogglePopover(false);
25487
- },
25488
- contentOverride: true,
25489
- variant: "smallGhost",
25490
- tabIndex: "0",
25491
- id: "btnPopover".concat(popoverID),
25492
- "aria-expanded": popoverOpen,
25493
- "aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
25494
- "aria-describedby": "Disclosure".concat(popoverID),
25495
- "aria-controls": "Disclosed".concat(popoverID),
25496
- ref: triggerRef,
25497
- extraStyles: buttonExtraStyles
25498
- }, hasIcon && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, null), /*#__PURE__*/React__default.createElement(Box, {
25499
- padding: "0",
25500
- srOnly: true
25501
- }, /*#__PURE__*/React__default.createElement(Text$1, {
25502
- id: "btnPopover".concat(popoverID, "_info")
25503
- }, iconHelpText))), !hasIcon && /*#__PURE__*/React__default.createElement(Text$1, {
25504
- color: popoverTriggerColor,
25505
- extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
25506
- }, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
25507
- background: backgroundColor,
25508
- borderRadius: "4px",
25509
- boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
25510
- id: "Disclosed".concat(popoverID),
25511
- role: "region",
25512
- "aria-describedby": "Disclosure".concat(popoverID),
25513
- tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
25514
- minWidth: minWidth,
25515
- maxWidth: maxWidth,
25516
- 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 transform: ").concat(transform, ";\n ").concat(popoverExtraStyles, ";\n ")
25517
- }, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
25518
- padding: "0",
25519
- extraStyles: "\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n ".concat(arrowBorder(borderColor, arrowDirection, "8px"), ";\n filter: drop-shadow(2px 8px 14px black);\n bottom: ").concat(arrowBottom, ";\n right: ").concat(arrowRight, ";\n top: ").concat(arrowTop, ";\n left: ").concat(arrowLeft, ";\n ")
25520
- })));
25521
- };
25522
- var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$m);
25523
-
25524
- var DisplayCard = function DisplayCard(_ref) {
25525
- var title = _ref.title,
25526
- item = _ref.item,
25527
- buttonText = _ref.buttonText,
25528
- buttonAction = _ref.buttonAction,
25529
- url = _ref.url,
25530
- _ref$link = _ref.link,
25531
- link = _ref$link === void 0 ? false : _ref$link,
25532
- helpText = _ref.helpText,
25533
- _ref$hasPopover = _ref.hasPopover,
25534
- hasPopover = _ref$hasPopover === void 0 ? false : _ref$hasPopover,
25535
- _ref$popoverTriggerTe = _ref.popoverTriggerText,
25536
- popoverTriggerText = _ref$popoverTriggerTe === void 0 ? "" : _ref$popoverTriggerTe,
25537
- _ref$popoverContent = _ref.popoverContent,
25538
- popoverContent = _ref$popoverContent === void 0 ? "" : _ref$popoverContent,
25539
- popoverExtraStyles = _ref.popoverExtraStyles,
25540
- popoverTextExtraStyles = _ref.popoverTextExtraStyles;
25541
- return /*#__PURE__*/React__default.createElement(Box, {
25542
- padding: "0 0 16px"
25543
- }, /*#__PURE__*/React__default.createElement(Stack, {
25544
- childGap: "0rem"
25545
- }, /*#__PURE__*/React__default.createElement(Box, {
25546
- padding: "0 0 8px 0"
25547
- }, /*#__PURE__*/React__default.createElement(Cluster, {
25548
- justify: "space-between",
25549
- align: "center",
25550
- overflow: true
25551
- }, /*#__PURE__*/React__default.createElement(Paragraph$1, {
25552
- variant: "pL",
25553
- color: CHARADE_GREY,
25554
- extraStyles: "letter-spacing: 0.29px"
25555
- }, title), hasPopover && /*#__PURE__*/React__default.createElement(Popover$1, {
25556
- triggerText: popoverTriggerText,
25557
- content: popoverContent,
25558
- popoverExtraStyles: popoverExtraStyles,
25559
- popoverTextExtraStyles: popoverTextExtraStyles
25560
- }))), /*#__PURE__*/React__default.createElement(Box, {
25561
- padding: "0"
25562
- }, /*#__PURE__*/React__default.createElement(Box, {
25563
- padding: "24px",
25564
- borderSize: "1px",
25565
- borderRadius: "4px",
25566
- background: WHITE,
25567
- boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
25568
- }, /*#__PURE__*/React__default.createElement(Cluster, {
25569
- justify: "space-between",
25570
- align: "center"
25571
- }, /*#__PURE__*/React__default.createElement(Text$1, {
25572
- color: CHARADE_GREY
25573
- }, item), link ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
25574
- text: buttonText,
25575
- url: url,
25576
- variant: "smallGhost",
25577
- dataQa: buttonText,
25578
- extraStyles: "min-width: 0;"
25579
- }) : buttonAction ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
25580
- text: buttonText,
25581
- action: buttonAction,
25582
- variant: "smallGhost",
25583
- dataQa: buttonText,
25584
- extraStyles: "min-width: 0;"
25585
- }) : helpText ? /*#__PURE__*/React__default.createElement(Text$1, {
25586
- color: STORM_GREY,
25587
- extraStyles: "font-style: italic;"
25588
- }, helpText) : /*#__PURE__*/React__default.createElement(Fragment$1, null))))));
25589
- };
25590
-
25591
25208
  function _extends$2() {
25592
25209
  _extends$2 = Object.assign || function (target) {
25593
25210
  for (var i = 1; i < arguments.length; i++) {
@@ -25919,7 +25536,7 @@ var hoverFocusStyles$1 = {
25919
25536
  var formFooterPanel = {
25920
25537
  "default": "".concat(INFO_BLUE)
25921
25538
  };
25922
- var fallbackValues$n = {
25539
+ var fallbackValues$m = {
25923
25540
  linkColor: linkColor$2,
25924
25541
  formBackgroundColor: formBackgroundColor$1,
25925
25542
  inputBackgroundColor: inputBackgroundColor$1,
@@ -26176,7 +25793,7 @@ var FormInput = function FormInput(_ref15) {
26176
25793
  padding: "0 0 0 auto"
26177
25794
  }, decorator)));
26178
25795
  };
26179
- var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$n, "default");
25796
+ var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$m, "default");
26180
25797
 
26181
25798
  var _excluded$A = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
26182
25799
  var FormInputRow = function FormInputRow(_ref) {
@@ -26224,7 +25841,7 @@ var FormContainer = function FormContainer(_ref) {
26224
25841
  borderRadius: "4px"
26225
25842
  }, rest), children);
26226
25843
  };
26227
- var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$n, "default");
25844
+ var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$m, "default");
26228
25845
 
26229
25846
  var FormFooterPanel = function FormFooterPanel(_ref) {
26230
25847
  var themeValues = _ref.themeValues,
@@ -26245,7 +25862,7 @@ var FormFooterPanel = function FormFooterPanel(_ref) {
26245
25862
  text: linkText
26246
25863
  })));
26247
25864
  };
26248
- var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$n, "default");
25865
+ var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$m, "default");
26249
25866
 
26250
25867
  var _excluded$D = ["ariaLabelledBy", "labelDisplayOverride", "labelTextWhenNoError", "errorMessages", "helperModal", "field", "fieldActions", "showErrors", "themeValues", "customHeight", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow", "labelTextVariant", "errorTextVariant", "resize", "rows", "cols", "placeholder", "maxLength"];
26251
25868
  var TextareaField = styled.textarea.withConfig({
@@ -26381,7 +25998,7 @@ var FormTextarea = function FormTextarea(_ref8) {
26381
25998
  extraStyles: "height: ".concat(themeValues.lineHeight, "; ").concat(errorFieldExtraStyles, ";")
26382
25999
  })));
26383
26000
  };
26384
- var FormTextarea$1 = themeComponent(FormTextarea, "FormTextarea", fallbackValues$n, "default");
26001
+ var FormTextarea$1 = themeComponent(FormTextarea, "FormTextarea", fallbackValues$m, "default");
26385
26002
 
26386
26003
  var fontSize$7 = {
26387
26004
  "default": "1rem",
@@ -26395,7 +26012,7 @@ var color$9 = {
26395
26012
  "default": "".concat(CHARADE_GREY),
26396
26013
  radio: "".concat(MINESHAFT_GREY)
26397
26014
  };
26398
- var fallbackValues$o = {
26015
+ var fallbackValues$n = {
26399
26016
  fontSize: fontSize$7,
26400
26017
  padding: padding$1,
26401
26018
  color: color$9
@@ -26437,11 +26054,11 @@ var FormattedAddress = function FormattedAddress(_ref) {
26437
26054
  dataQa: "".concat(qaPrefix, "-3")
26438
26055
  }, city, ", ", stateProvince, " ".concat(zip), country ? " ".concat(country) : "")));
26439
26056
  };
26440
- var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$o, "default");
26057
+ var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$n, "default");
26441
26058
 
26442
26059
  var textColor$1 = "".concat(CHARADE_GREY);
26443
26060
  var autopayTextColor = "".concat(REGENT_GREY);
26444
- var fallbackValues$p = {
26061
+ var fallbackValues$o = {
26445
26062
  textColor: textColor$1,
26446
26063
  autopayTextColor: autopayTextColor
26447
26064
  };
@@ -26479,11 +26096,11 @@ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
26479
26096
  extraStyles: "font-style: italic;"
26480
26097
  }, "Autopay Enabled")));
26481
26098
  };
26482
- var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$p);
26099
+ var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$o);
26483
26100
 
26484
26101
  var textColor$2 = "".concat(CHARADE_GREY);
26485
26102
  var autopayTextColor$1 = "".concat(REGENT_GREY);
26486
- var fallbackValues$q = {
26103
+ var fallbackValues$p = {
26487
26104
  textColor: textColor$2,
26488
26105
  autopayTextColor: autopayTextColor$1
26489
26106
  };
@@ -26575,7 +26192,7 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
26575
26192
  extraStyles: "font-style: italic;"
26576
26193
  }, "Autopay Enabled")));
26577
26194
  };
26578
- var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$q);
26195
+ var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$p);
26579
26196
 
26580
26197
  var Hamburger = styled.button.withConfig({
26581
26198
  displayName: "HamburgerButton__Hamburger",
@@ -26656,7 +26273,7 @@ var fontSize$8 = {
26656
26273
  h5: "1.375rem",
26657
26274
  h6: "1.25rem"
26658
26275
  };
26659
- var fallbackValues$r = {
26276
+ var fallbackValues$q = {
26660
26277
  fontFamily: fontFamily$5,
26661
26278
  fontSize: fontSize$8
26662
26279
  };
@@ -26695,7 +26312,7 @@ var Heading = function Heading(_ref) {
26695
26312
  "data-qa": dataQa
26696
26313
  }, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
26697
26314
  };
26698
- var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$r, "h1");
26315
+ var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$q, "h1");
26699
26316
 
26700
26317
  var Image = styled.img.withConfig({
26701
26318
  displayName: "ImageBoxstyled__Image",
@@ -26751,7 +26368,7 @@ var ImageBox = function ImageBox(_ref) {
26751
26368
  };
26752
26369
 
26753
26370
  var color$a = "#15749D";
26754
- var fallbackValues$s = {
26371
+ var fallbackValues$r = {
26755
26372
  color: color$a
26756
26373
  };
26757
26374
 
@@ -26817,7 +26434,7 @@ var Spinner$1 = function Spinner(_ref6) {
26817
26434
  strokeWidth: strokeWidth
26818
26435
  })));
26819
26436
  };
26820
- var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$s);
26437
+ var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$r);
26821
26438
 
26822
26439
  var Jumbo = function Jumbo(_ref) {
26823
26440
  var showButton = _ref.showButton,
@@ -26909,7 +26526,7 @@ var fontWeight$5 = {
26909
26526
  // fontsize Detail regular
26910
26527
  large: "700" // fontsize Title small
26911
26528
  };
26912
- var fallbackValues$t = {
26529
+ var fallbackValues$s = {
26913
26530
  fontWeight: fontWeight$5
26914
26531
  };
26915
26532
 
@@ -26968,7 +26585,7 @@ var LabeledAmount = function LabeledAmount(_ref) {
26968
26585
  var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
26969
26586
  return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
26970
26587
  };
26971
- var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$t, "default");
26588
+ var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$s, "default");
26972
26589
 
26973
26590
  var weightTitle = {
26974
26591
  "default": "600",
@@ -26978,7 +26595,7 @@ var detailVariant = {
26978
26595
  "default": "large",
26979
26596
  small: "small"
26980
26597
  };
26981
- var fallbackValues$u = {
26598
+ var fallbackValues$t = {
26982
26599
  weightTitle: weightTitle,
26983
26600
  detailVariant: detailVariant
26984
26601
  };
@@ -27026,7 +26643,7 @@ var LineItem = function LineItem(_ref) {
27026
26643
  childGap: "0.25rem"
27027
26644
  }, visibleCustomAttrs));
27028
26645
  };
27029
- var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$u, "default");
26646
+ var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$t, "default");
27030
26647
 
27031
26648
  var Loading = function Loading() {
27032
26649
  return /*#__PURE__*/React__default.createElement(Box, {
@@ -27214,9 +26831,10 @@ var PasswordRequirements = function PasswordRequirements(_ref) {
27214
26831
  color: RAZZMATAZZ_RED
27215
26832
  }), INPUT_STATE_VALID, {
27216
26833
  icon: /*#__PURE__*/React__default.createElement(IconValid, {
27217
- margin: "0 0.5rem 0 0"
26834
+ margin: "0 0.5rem 0 0",
26835
+ bgFill: SEA_GREEN
27218
26836
  }),
27219
- color: FOREST_GREEN
26837
+ color: SEA_GREEN
27220
26838
  });
27221
26839
  var validationMap = {
27222
26840
  charactersValidation: {
@@ -27286,7 +26904,7 @@ var height$1 = {
27286
26904
  "default": "3rem",
27287
26905
  large: "192px"
27288
26906
  };
27289
- var fallbackValues$v = {
26907
+ var fallbackValues$u = {
27290
26908
  color: color$b,
27291
26909
  height: height$1
27292
26910
  };
@@ -27428,12 +27046,12 @@ var Placeholder = function Placeholder(_ref4) {
27428
27046
  extraStyles: "padding: 0 0 0 8px; text-align: center;"
27429
27047
  }, text)))))))))));
27430
27048
  };
27431
- var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$v, "default");
27049
+ var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$u, "default");
27432
27050
 
27433
27051
  var backgroundColor$5 = {
27434
27052
  "default": "".concat(WHITE)
27435
27053
  };
27436
- var fallbackValues$w = {
27054
+ var fallbackValues$v = {
27437
27055
  backgroundColor: backgroundColor$5
27438
27056
  };
27439
27057
 
@@ -27460,13 +27078,13 @@ var ProcessingFee = function ProcessingFee(_ref) {
27460
27078
  showQuitLink: false
27461
27079
  }));
27462
27080
  };
27463
- var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$w, "default");
27081
+ var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$v, "default");
27464
27082
 
27465
- var activeColor$6 = MATISSE_BLUE;
27083
+ var activeColor$5 = MATISSE_BLUE;
27466
27084
  var disabledColor$1 = MANATEE_GREY;
27467
27085
  var inactiveBorderColor = GREY_CHATEAU;
27468
- var fallbackValues$x = {
27469
- activeColor: activeColor$6,
27086
+ var fallbackValues$w = {
27087
+ activeColor: activeColor$5,
27470
27088
  disabledColor: disabledColor$1,
27471
27089
  inactiveBorderColor: inactiveBorderColor
27472
27090
  };
@@ -27552,12 +27170,12 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
27552
27170
  borderColor: themeValues.inactiveBorderColor
27553
27171
  }), labelText));
27554
27172
  };
27555
- var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$x);
27173
+ var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$w);
27556
27174
 
27557
- var activeColor$7 = "".concat(MATISSE_BLUE);
27175
+ var activeColor$6 = "".concat(MATISSE_BLUE);
27558
27176
  var inactiveColor$1 = "".concat(STORM_GREY);
27559
- var fallbackValues$y = {
27560
- activeColor: activeColor$7,
27177
+ var fallbackValues$x = {
27178
+ activeColor: activeColor$6,
27561
27179
  inactiveColor: inactiveColor$1
27562
27180
  };
27563
27181
 
@@ -27665,11 +27283,11 @@ var RadioButton$1 = function RadioButton(_ref2) {
27665
27283
  borderRadius: "8px"
27666
27284
  })));
27667
27285
  };
27668
- var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$y);
27286
+ var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$x);
27669
27287
 
27670
27288
  var searchIconColor = WHITE;
27671
27289
  var searchIconBackgroundColor = MATISSE_BLUE;
27672
- var fallbackValues$z = {
27290
+ var fallbackValues$y = {
27673
27291
  searchIconColor: searchIconColor,
27674
27292
  searchIconBackgroundColor: searchIconBackgroundColor
27675
27293
  };
@@ -27767,12 +27385,12 @@ var Search = function Search(_ref) {
27767
27385
  size: 24
27768
27386
  })));
27769
27387
  };
27770
- var Search$1 = themeComponent(Search, "Search", fallbackValues$z);
27388
+ var Search$1 = themeComponent(Search, "Search", fallbackValues$y);
27771
27389
 
27772
27390
  var border$2 = {
27773
27391
  "default": "1px solid #caced8"
27774
27392
  };
27775
- var fallbackValues$A = {
27393
+ var fallbackValues$z = {
27776
27394
  border: border$2
27777
27395
  };
27778
27396
 
@@ -27845,7 +27463,7 @@ var SearchableSelect = function SearchableSelect(_ref) {
27845
27463
  });
27846
27464
  }))));
27847
27465
  };
27848
- var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$A, "default");
27466
+ var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$z, "default");
27849
27467
 
27850
27468
  var borderColor$4 = {
27851
27469
  "default": "".concat(GREY_CHATEAU)
@@ -27853,7 +27471,7 @@ var borderColor$4 = {
27853
27471
  var borderSize = {
27854
27472
  "default": "1px"
27855
27473
  };
27856
- var fallbackValues$B = {
27474
+ var fallbackValues$A = {
27857
27475
  borderColor: borderColor$4,
27858
27476
  borderSize: borderSize
27859
27477
  };
@@ -27871,7 +27489,7 @@ var SolidDivider = function SolidDivider(_ref) {
27871
27489
  borderWidthOverride: "0px 0px ".concat(borderSize || themeValues.borderSize, " 0px")
27872
27490
  });
27873
27491
  };
27874
- var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$B, "default");
27492
+ var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$A, "default");
27875
27493
 
27876
27494
  var placeHolderOptionUS = {
27877
27495
  text: "Please select state",
@@ -38466,7 +38084,7 @@ var white = "".concat(WHITE);
38466
38084
  var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
38467
38085
  var rightLabelStyles = "\n > div {\n flex-direction: row;\n }\n";
38468
38086
  var leftLabelStyles = "\n > div {\n flex-direction: row-reverse;\n }\n";
38469
- var fallbackValues$C = {
38087
+ var fallbackValues$B = {
38470
38088
  onBackground: onBackground,
38471
38089
  disabledBackground: disabledBackground,
38472
38090
  disabledBackgroundLight: disabledBackgroundLight,
@@ -38638,7 +38256,7 @@ var ToggleSwitch = function ToggleSwitch(_ref10) {
38638
38256
  padding: "0"
38639
38257
  }, label))));
38640
38258
  };
38641
- var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$C);
38259
+ var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$B);
38642
38260
 
38643
38261
  var background$2 = "".concat(ATHENS_GREY);
38644
38262
  var white$1 = "".concat(WHITE);
@@ -38685,7 +38303,7 @@ var imageBackgroundColor = INFO_BLUE;
38685
38303
  var headerBackgroundColor = STORM_GREY;
38686
38304
  var headerColor = WHITE;
38687
38305
  var contentBackgroundColor = INFO_BLUE;
38688
- var fallbackValues$D = {
38306
+ var fallbackValues$C = {
38689
38307
  backgroundColor: backgroundColor$6,
38690
38308
  contentBackgroundColor: contentBackgroundColor,
38691
38309
  imageBackgroundColor: imageBackgroundColor,
@@ -38710,7 +38328,7 @@ var CardImage = styled.img.withConfig({
38710
38328
  var titleColor = BRIGHT_GREY;
38711
38329
  var titleWeight = FONT_WEIGHT_BOLD;
38712
38330
  var textColor$3 = BRIGHT_GREY;
38713
- var fallbackValues$E = {
38331
+ var fallbackValues$D = {
38714
38332
  titleColor: titleColor,
38715
38333
  titleWeight: titleWeight,
38716
38334
  textColor: textColor$3
@@ -38755,7 +38373,7 @@ var CardText = function CardText(_ref) {
38755
38373
  color: themeValues.textColor
38756
38374
  }, text))));
38757
38375
  };
38758
- var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$E);
38376
+ var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$D);
38759
38377
 
38760
38378
  var CardHeader = function CardHeader(_ref) {
38761
38379
  var backgroundColor = _ref.backgroundColor,
@@ -38871,14 +38489,14 @@ var Card = function Card(_ref) {
38871
38489
  titleVariant: titleVariant
38872
38490
  }), children)))));
38873
38491
  };
38874
- var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$D);
38492
+ var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$C);
38875
38493
 
38876
38494
  var fontFamily$6 = "Public Sans, sans-serif";
38877
- var activeColor$8 = MATISSE_BLUE;
38495
+ var activeColor$7 = MATISSE_BLUE;
38878
38496
  var linkColor$3 = CHARADE_GREY;
38879
- var fallbackValues$F = {
38497
+ var fallbackValues$E = {
38880
38498
  fontFamily: fontFamily$6,
38881
- activeColor: activeColor$8,
38499
+ activeColor: activeColor$7,
38882
38500
  linkColor: linkColor$3
38883
38501
  };
38884
38502
 
@@ -38905,7 +38523,7 @@ var NavTab = function NavTab(_ref) {
38905
38523
  extraStyles: "\n border-bottom: 3px solid transparent;\n font-family: ".concat(themeValues.fontFamily, ";\n text-decoration: none;\n ").concat(isActive && !isMobile ? border : "none", ";\n &:hover {\n text-decoration: none;\n color: ").concat(themeValues.activeColor, ";\n ").concat(isMobile ? "" : "".concat(border), "\n };\n padding: 1.25rem 0;\n ")
38906
38524
  }, label));
38907
38525
  };
38908
- var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$F);
38526
+ var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$E);
38909
38527
 
38910
38528
  var NavTabs = function NavTabs(_ref) {
38911
38529
  var tabsConfig = _ref.tabsConfig,
@@ -39033,7 +38651,7 @@ var backgroundColor$7 = {
39033
38651
  largeTitle: WHITE,
39034
38652
  small: WHITE
39035
38653
  };
39036
- var fallbackValues$G = {
38654
+ var fallbackValues$F = {
39037
38655
  fontSize: fontSize$9,
39038
38656
  fontWeight: fontWeight$6,
39039
38657
  fontColor: fontColor,
@@ -39113,7 +38731,7 @@ var Module = function Module(_ref) {
39113
38731
  boxShadow: themeValues.boxShadow
39114
38732
  }, children)));
39115
38733
  };
39116
- var Module$1 = /*#__PURE__*/memo(themeComponent(Module, "Module", fallbackValues$G, "default"));
38734
+ var Module$1 = /*#__PURE__*/memo(themeComponent(Module, "Module", fallbackValues$F, "default"));
39117
38735
 
39118
38736
  var WalletName = function WalletName(_ref) {
39119
38737
  var mainText = _ref.mainText,
@@ -40093,7 +39711,7 @@ AddressForm.mapStateToProps = mapStateToProps$1;
40093
39711
  AddressForm.mapDispatchToProps = mapDispatchToProps;
40094
39712
 
40095
39713
  var backgroundColor$8 = "#ebeffb";
40096
- var fallbackValues$H = {
39714
+ var fallbackValues$G = {
40097
39715
  backgroundColor: backgroundColor$8
40098
39716
  };
40099
39717
 
@@ -40142,7 +39760,7 @@ var Banner = function Banner(_ref) {
40142
39760
  extraStyles: isMobile && "> svg { width: 176px; }"
40143
39761
  }, /*#__PURE__*/React__default.createElement(Image, null))));
40144
39762
  };
40145
- var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$H);
39763
+ var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$G);
40146
39764
 
40147
39765
  var ChangePasswordForm = function ChangePasswordForm(_ref) {
40148
39766
  var clearOnDismount = _ref.clearOnDismount,
@@ -40276,7 +39894,7 @@ ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
40276
39894
  var titleColor$1 = "#292A33";
40277
39895
  var headingBackgroundColor = "transparent";
40278
39896
  var bodyBackgroundColor = "transparent";
40279
- var fallbackValues$I = {
39897
+ var fallbackValues$H = {
40280
39898
  titleColor: titleColor$1,
40281
39899
  headingBackgroundColor: headingBackgroundColor,
40282
39900
  bodyBackgroundColor: bodyBackgroundColor
@@ -40401,7 +40019,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
40401
40019
  "aria-labelledby": "".concat(id, "-button")
40402
40020
  }, children))));
40403
40021
  };
40404
- var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$I);
40022
+ var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$H);
40405
40023
 
40406
40024
  var ClipboardIcon = function ClipboardIcon(_ref) {
40407
40025
  var themeValues = _ref.themeValues;
@@ -40436,6 +40054,325 @@ var ClipboardIcon = function ClipboardIcon(_ref) {
40436
40054
  };
40437
40055
  var ClipboardIcon$1 = themeComponent(ClipboardIcon, "Icons", fallbackValues$2, "primary");
40438
40056
 
40057
+ /*
40058
+ Hook that assigns a click event listener to the main document element
40059
+ Returns a ref to attach to another element (like an icon/button that triggers a popover)
40060
+ If a click event gets captured by the document and the assigned element isn't the target
40061
+ hook will run whatever handler is passed (eg a function that closes a popover)
40062
+
40063
+ See popover component for implementation
40064
+
40065
+ */
40066
+
40067
+ var useOutsideClickHook = function useOutsideClickHook(handler) {
40068
+ var ref = useRef();
40069
+ useEffect$1(function () {
40070
+ var handleOutsideClick = function handleOutsideClick(e) {
40071
+ if (ref.current && !ref.current.contains(e.target)) {
40072
+ handler();
40073
+ }
40074
+ };
40075
+ document.addEventListener("click", handleOutsideClick, true);
40076
+ return function () {
40077
+ document.removeEventListener("click", handleOutsideClick, true);
40078
+ };
40079
+ }, [ref]);
40080
+ return ref;
40081
+ };
40082
+
40083
+ /*
40084
+ Hook that takes an ID selector for an element on the screen
40085
+ And optionally values for top position, left position, smooth behavior
40086
+ Finds element on screen and scrolls it to the provided coordinates
40087
+
40088
+ (string, number, number, string, number) => undefined;
40089
+ */
40090
+
40091
+ var useScrollTo = function useScrollTo(id) {
40092
+ var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
40093
+ var left = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
40094
+ var behavior = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "auto";
40095
+ var delay = arguments.length > 4 ? arguments[4] : undefined;
40096
+ var scrollItem;
40097
+ if (delay) {
40098
+ setTimeout(function () {
40099
+ var _scrollItem;
40100
+ scrollItem = document.getElementById(id);
40101
+ (_scrollItem = scrollItem) === null || _scrollItem === void 0 || _scrollItem.scrollTo({
40102
+ top: top,
40103
+ left: left,
40104
+ behavior: behavior
40105
+ });
40106
+ }, delay);
40107
+ } else {
40108
+ var _scrollItem2;
40109
+ scrollItem = document.getElementById(id);
40110
+ (_scrollItem2 = scrollItem) === null || _scrollItem2 === void 0 || _scrollItem2.scrollTo({
40111
+ top: top,
40112
+ left: left,
40113
+ behavior: behavior
40114
+ });
40115
+ }
40116
+ };
40117
+
40118
+ var initialToastState = {
40119
+ isOpen: false,
40120
+ variant: "",
40121
+ message: ""
40122
+ };
40123
+ var useToastNotification = function useToastNotification() {
40124
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
40125
+ _ref$timeout = _ref.timeout,
40126
+ timeout = _ref$timeout === void 0 ? 5000 : _ref$timeout;
40127
+ var _useState = useState(initialToastState),
40128
+ _useState2 = _slicedToArray(_useState, 2),
40129
+ toastState = _useState2[0],
40130
+ setToastState = _useState2[1];
40131
+ useEffect$1(function () {
40132
+ if (toastState.isOpen && timeout > 0) {
40133
+ setTimeout(function () {
40134
+ setToastState(initialToastState);
40135
+ }, timeout);
40136
+ }
40137
+ }, [timeout, toastState.isOpen]);
40138
+ var showToast = function showToast(_ref2) {
40139
+ var message = _ref2.message,
40140
+ variant = _ref2.variant;
40141
+ return setToastState({
40142
+ isOpen: true,
40143
+ variant: variant,
40144
+ message: message
40145
+ });
40146
+ };
40147
+ var hideToast = function hideToast() {
40148
+ return setToastState(initialToastState);
40149
+ };
40150
+ return {
40151
+ isToastOpen: toastState.isOpen,
40152
+ toastVariant: toastState.variant,
40153
+ toastMessage: toastState.message,
40154
+ showToast: showToast,
40155
+ hideToast: hideToast
40156
+ };
40157
+ };
40158
+
40159
+ function useConditionallyAddValidator(condition, validatorFn, addValidator, removeValidator) {
40160
+ useEffect$1(function () {
40161
+ if (condition) {
40162
+ addValidator(validatorFn());
40163
+ }
40164
+ return function () {
40165
+ // Remove validator when component unmounts
40166
+ removeValidator(validatorFn());
40167
+ };
40168
+ }, [condition, addValidator, removeValidator]);
40169
+ }
40170
+
40171
+ /**
40172
+ * A custom hook to dynamically load the Cloudflare Turnstile script.
40173
+ *
40174
+ * @param {string} verifyURL - The URL of the Turnstile verification script.
40175
+ */
40176
+ var useTurnstileScript = function useTurnstileScript(verifyURL) {
40177
+ var _useState = useState(false),
40178
+ _useState2 = _slicedToArray(_useState, 2),
40179
+ scriptLoaded = _useState2[0],
40180
+ setScriptLoaded = _useState2[1];
40181
+ var _useState3 = useState(false),
40182
+ _useState4 = _slicedToArray(_useState3, 2),
40183
+ scriptError = _useState4[0],
40184
+ setScriptError = _useState4[1];
40185
+ var handleScriptError = function handleScriptError() {
40186
+ setScriptError(true);
40187
+ setScriptLoaded(false);
40188
+ };
40189
+ useEffect$1(function () {
40190
+ if (typeof window === "undefined") {
40191
+ setScriptLoaded(false);
40192
+ return;
40193
+ }
40194
+ if (window.turnstile && window.turnstile.render) {
40195
+ setScriptLoaded(true);
40196
+ return;
40197
+ }
40198
+ var script = document.createElement("script");
40199
+ script.src = "".concat(verifyURL, "?render=explicit");
40200
+ script.onload = function () {
40201
+ setScriptLoaded(true);
40202
+ };
40203
+ script.onerror = function () {
40204
+ handleScriptError();
40205
+ };
40206
+ script.onabort = function () {
40207
+ handleScriptError();
40208
+ };
40209
+ script.defer = true;
40210
+ document.getElementsByTagName("head")[0].appendChild(script);
40211
+ return function () {
40212
+ setScriptLoaded(false);
40213
+ setScriptError(false);
40214
+ };
40215
+ }, [verifyURL]);
40216
+ return {
40217
+ scriptLoaded: scriptLoaded,
40218
+ scriptError: scriptError
40219
+ };
40220
+ };
40221
+
40222
+
40223
+
40224
+ var index$1 = /*#__PURE__*/Object.freeze({
40225
+ __proto__: null,
40226
+ useOutsideClick: useOutsideClickHook,
40227
+ useScrollTo: useScrollTo,
40228
+ useToastNotification: useToastNotification,
40229
+ useConditionallyAddValidator: useConditionallyAddValidator,
40230
+ useTurnstileScript: useTurnstileScript
40231
+ });
40232
+
40233
+ var hoverColor$4 = "#116285";
40234
+ var activeColor$8 = "#0E506D";
40235
+ var popoverTriggerColor = "#15749D";
40236
+ var fallbackValues$I = {
40237
+ hoverColor: hoverColor$4,
40238
+ activeColor: activeColor$8,
40239
+ popoverTriggerColor: popoverTriggerColor
40240
+ };
40241
+
40242
+ var Popover = function Popover(_ref) {
40243
+ var themeValues = _ref.themeValues,
40244
+ _ref$triggerText = _ref.triggerText,
40245
+ triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
40246
+ _ref$content = _ref.content,
40247
+ content = _ref$content === void 0 ? "" : _ref$content,
40248
+ _ref$hasIcon = _ref.hasIcon,
40249
+ hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
40250
+ Icon = _ref.icon,
40251
+ _ref$iconHelpText = _ref.iconHelpText,
40252
+ iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
40253
+ _ref$popoverID = _ref.popoverID,
40254
+ popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
40255
+ _ref$popoverFocus = _ref.popoverFocus,
40256
+ popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
40257
+ extraStyles = _ref.extraStyles,
40258
+ textExtraStyles = _ref.textExtraStyles,
40259
+ _ref$minWidth = _ref.minWidth,
40260
+ minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
40261
+ _ref$maxWidth = _ref.maxWidth,
40262
+ maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
40263
+ _ref$height = _ref.height,
40264
+ height = _ref$height === void 0 ? "auto" : _ref$height,
40265
+ position = _ref.position,
40266
+ arrowPosition = _ref.arrowPosition,
40267
+ _ref$arrowDirection = _ref.arrowDirection,
40268
+ arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
40269
+ _ref$transform = _ref.transform,
40270
+ transform = _ref$transform === void 0 ? "none" : _ref$transform,
40271
+ buttonExtraStyles = _ref.buttonExtraStyles,
40272
+ _ref$backgroundColor = _ref.backgroundColor,
40273
+ backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
40274
+ _ref$borderColor = _ref.borderColor,
40275
+ borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
40276
+ popoverExtraStyles = _ref.popoverExtraStyles;
40277
+ var hoverColor = themeValues.hoverColor,
40278
+ activeColor = themeValues.activeColor,
40279
+ popoverTriggerColor = themeValues.popoverTriggerColor;
40280
+ var _ref2 = position !== null && position !== void 0 ? position : {},
40281
+ _ref2$top = _ref2.top,
40282
+ top = _ref2$top === void 0 ? "-110px" : _ref2$top,
40283
+ _ref2$right = _ref2.right,
40284
+ right = _ref2$right === void 0 ? "auto" : _ref2$right,
40285
+ _ref2$bottom = _ref2.bottom,
40286
+ bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
40287
+ _ref2$left = _ref2.left,
40288
+ left = _ref2$left === void 0 ? "-225px" : _ref2$left;
40289
+ var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
40290
+ _ref3$arrowTop = _ref3.arrowTop,
40291
+ arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
40292
+ _ref3$arrowRight = _ref3.arrowRight,
40293
+ arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
40294
+ _ref3$arrowBottom = _ref3.arrowBottom,
40295
+ arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
40296
+ _ref3$arrowLeft = _ref3.arrowLeft,
40297
+ arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
40298
+ var _useState = useState(false),
40299
+ _useState2 = _slicedToArray(_useState, 2),
40300
+ popoverOpen = _useState2[0],
40301
+ togglePopover = _useState2[1];
40302
+ var handleTogglePopover = function handleTogglePopover(popoverState) {
40303
+ if (popoverOpen !== popoverState) {
40304
+ togglePopover(popoverState);
40305
+ }
40306
+ };
40307
+ var triggerRef = useOutsideClickHook(function () {
40308
+ return handleTogglePopover(false);
40309
+ });
40310
+ return /*#__PURE__*/React__default.createElement(Box, {
40311
+ padding: "0",
40312
+ extraStyles: "position: relative; ".concat(extraStyles)
40313
+ }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
40314
+ action: function action() {
40315
+ return noop$1;
40316
+ },
40317
+ onFocus: function onFocus() {
40318
+ handleTogglePopover(true);
40319
+ },
40320
+ onBlur: function onBlur() {
40321
+ handleTogglePopover(false);
40322
+ },
40323
+ onKeyDown: function onKeyDown(e) {
40324
+ if (e.keyCode === ESCAPE) {
40325
+ handleTogglePopover(false);
40326
+ }
40327
+ },
40328
+ onTouchStart: function onTouchStart() {
40329
+ return handleTogglePopover(true);
40330
+ },
40331
+ onTouchEnd: function onTouchEnd() {
40332
+ return handleTogglePopover(false);
40333
+ },
40334
+ onMouseEnter: function onMouseEnter() {
40335
+ return handleTogglePopover(true);
40336
+ },
40337
+ onMouseLeave: function onMouseLeave() {
40338
+ return handleTogglePopover(false);
40339
+ },
40340
+ contentOverride: true,
40341
+ variant: "smallGhost",
40342
+ tabIndex: "0",
40343
+ id: "btnPopover".concat(popoverID),
40344
+ "aria-expanded": popoverOpen,
40345
+ "aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
40346
+ "aria-describedby": "Disclosure".concat(popoverID),
40347
+ "aria-controls": "Disclosed".concat(popoverID),
40348
+ ref: triggerRef,
40349
+ extraStyles: buttonExtraStyles
40350
+ }, hasIcon && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, null), /*#__PURE__*/React__default.createElement(Box, {
40351
+ padding: "0",
40352
+ srOnly: true
40353
+ }, /*#__PURE__*/React__default.createElement(Text$1, {
40354
+ id: "btnPopover".concat(popoverID, "_info")
40355
+ }, iconHelpText))), !hasIcon && /*#__PURE__*/React__default.createElement(Text$1, {
40356
+ color: popoverTriggerColor,
40357
+ extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
40358
+ }, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
40359
+ background: backgroundColor,
40360
+ borderRadius: "4px",
40361
+ boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
40362
+ id: "Disclosed".concat(popoverID),
40363
+ role: "region",
40364
+ "aria-describedby": "Disclosure".concat(popoverID),
40365
+ tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
40366
+ minWidth: minWidth,
40367
+ maxWidth: maxWidth,
40368
+ 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 transform: ").concat(transform, ";\n ").concat(popoverExtraStyles, ";\n ")
40369
+ }, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
40370
+ padding: "0",
40371
+ extraStyles: "\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n ".concat(arrowBorder(borderColor, arrowDirection, "8px"), ";\n filter: drop-shadow(2px 8px 14px black);\n bottom: ").concat(arrowBottom, ";\n right: ").concat(arrowRight, ";\n top: ").concat(arrowTop, ";\n left: ").concat(arrowLeft, ";\n ")
40372
+ })));
40373
+ };
40374
+ var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$I);
40375
+
40439
40376
  /*
40440
40377
  This component will render `content` and a clipboard icon.
40441
40378
  When hovered, a popover with content `initialPopoverContent` will be displayed.
@@ -51231,8 +51168,161 @@ var TurnstileWidget = /*#__PURE__*/forwardRef(function (_ref4, ref) {
51231
51168
  }, error)));
51232
51169
  });
51233
51170
 
51234
- var pageBackground = "#FBFCFD";
51171
+ var TOOLTIP_THEME_SOURCE = "Popover";
51235
51172
  var fallbackValues$12 = {
51173
+ hoverColor: SAPPHIRE_BLUE,
51174
+ activeColor: PEACOCK_BLUE,
51175
+ popoverTriggerColor: MATISSE_BLUE,
51176
+ borderColor: "rgba(255, 255, 255, 0.85)"
51177
+ };
51178
+ var Tooltip = function Tooltip(_ref) {
51179
+ var tooltipID = _ref.tooltipID,
51180
+ _ref$hasIconTrigger = _ref.hasIconTrigger,
51181
+ hasIconTrigger = _ref$hasIconTrigger === void 0 ? false : _ref$hasIconTrigger,
51182
+ _ref$IconTrigger = _ref.IconTrigger,
51183
+ IconTrigger = _ref$IconTrigger === void 0 ? WarningIconXS : _ref$IconTrigger,
51184
+ _ref$iconHelpText = _ref.iconHelpText,
51185
+ iconHelpText = _ref$iconHelpText === void 0 ? "Open the tooltip" : _ref$iconHelpText,
51186
+ _ref$triggerText = _ref.triggerText,
51187
+ triggerText = _ref$triggerText === void 0 ? "Open the tooltip" : _ref$triggerText,
51188
+ _ref$tooltipContent = _ref.tooltipContent,
51189
+ tooltipContent = _ref$tooltipContent === void 0 ? "The contents of the tooltip go here." : _ref$tooltipContent,
51190
+ _ref$contentPosition = _ref.contentPosition,
51191
+ contentPosition = _ref$contentPosition === void 0 ? {
51192
+ top: "-110px",
51193
+ right: "auto",
51194
+ bottom: "auto",
51195
+ left: "-225px"
51196
+ } : _ref$contentPosition,
51197
+ _ref$arrowDirection = _ref.arrowDirection,
51198
+ arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
51199
+ _ref$arrowPosition = _ref.arrowPosition,
51200
+ arrowPosition = _ref$arrowPosition === void 0 ? {
51201
+ arrowTop: "auto",
51202
+ arrowRight: "10px",
51203
+ arrowBottom: "-8px",
51204
+ arrowLeft: "auto"
51205
+ } : _ref$arrowPosition,
51206
+ _ref$minWidth = _ref.minWidth,
51207
+ minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
51208
+ _ref$maxWidth = _ref.maxWidth,
51209
+ maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
51210
+ _ref$height = _ref.height,
51211
+ height = _ref$height === void 0 ? "auto" : _ref$height,
51212
+ _ref$containerExtraSt = _ref.containerExtraStyles,
51213
+ containerExtraStyles = _ref$containerExtraSt === void 0 ? "" : _ref$containerExtraSt,
51214
+ _ref$triggerExtraStyl = _ref.triggerExtraStyles,
51215
+ triggerExtraStyles = _ref$triggerExtraStyl === void 0 ? "" : _ref$triggerExtraStyl,
51216
+ _ref$triggerButtonVar = _ref.triggerButtonVariant,
51217
+ triggerButtonVariant = _ref$triggerButtonVar === void 0 ? "smallGhost" : _ref$triggerButtonVar,
51218
+ _ref$contentExtraStyl = _ref.contentExtraStyles,
51219
+ contentExtraStyles = _ref$contentExtraStyl === void 0 ? "" : _ref$contentExtraStyl,
51220
+ _ref$contentBackgroun = _ref.contentBackgroundColor,
51221
+ contentBackgroundColor = _ref$contentBackgroun === void 0 ? WHITE : _ref$contentBackgroun;
51222
+ var closeTimeoutRef = useRef(null);
51223
+ var _useState = useState(false),
51224
+ _useState2 = _slicedToArray(_useState, 2),
51225
+ tooltipOpen = _useState2[0],
51226
+ setTooltipOpen = _useState2[1];
51227
+ var themeContext = useContext(ThemeContext);
51228
+ var themeValues = createThemeValues(themeContext, fallbackValues$12, TOOLTIP_THEME_SOURCE);
51229
+ var borderColor = themeValues.borderColor,
51230
+ tooltipTriggerColor = themeValues.popoverTriggerColor,
51231
+ hoverColor = themeValues.hoverColor,
51232
+ activeColor = themeValues.activeColor;
51233
+ var top = contentPosition.top,
51234
+ right = contentPosition.right,
51235
+ bottom = contentPosition.bottom,
51236
+ left = contentPosition.left;
51237
+ var arrowTop = arrowPosition.arrowTop,
51238
+ arrowRight = arrowPosition.arrowRight,
51239
+ arrowBottom = arrowPosition.arrowBottom,
51240
+ arrowLeft = arrowPosition.arrowLeft;
51241
+ var handleToggleTooltip = function handleToggleTooltip(desiredTooltipState) {
51242
+ if (tooltipOpen !== desiredTooltipState) {
51243
+ setTooltipOpen(desiredTooltipState);
51244
+ }
51245
+ };
51246
+ var handleKeyboardEvent = function handleKeyboardEvent(e) {
51247
+ if (e.key === "Escape") {
51248
+ handleToggleTooltip(false);
51249
+ }
51250
+ };
51251
+ var handleMouseEnter = function handleMouseEnter() {
51252
+ if (closeTimeoutRef.current) {
51253
+ clearTimeout(closeTimeoutRef.current);
51254
+ closeTimeoutRef.current = null;
51255
+ }
51256
+ handleToggleTooltip(true);
51257
+ };
51258
+ var handleMouseLeave = function handleMouseLeave() {
51259
+ closeTimeoutRef.current = setTimeout(function () {
51260
+ handleToggleTooltip(false);
51261
+ }, 300);
51262
+ };
51263
+ useEffect$1(function () {
51264
+ return function () {
51265
+ if (closeTimeoutRef.current) {
51266
+ clearTimeout(closeTimeoutRef.current);
51267
+ }
51268
+ };
51269
+ }, []);
51270
+ return /*#__PURE__*/React__default.createElement(Box, {
51271
+ ref: closeTimeoutRef,
51272
+ padding: "0",
51273
+ extraStyles: "position: relative; ".concat(containerExtraStyles),
51274
+ onMouseEnter: function onMouseEnter() {
51275
+ return handleMouseEnter();
51276
+ },
51277
+ onMouseLeave: function onMouseLeave() {
51278
+ return handleMouseLeave();
51279
+ },
51280
+ "data-qa": "tooltip-container"
51281
+ }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
51282
+ "aria-describedby": tooltipID,
51283
+ onKeyDown: handleKeyboardEvent,
51284
+ variant: triggerButtonVariant,
51285
+ onFocus: function onFocus() {
51286
+ return handleToggleTooltip(true);
51287
+ },
51288
+ onBlur: function onBlur() {
51289
+ return handleToggleTooltip(false);
51290
+ },
51291
+ onTouchStart: function onTouchStart() {
51292
+ return handleToggleTooltip(true);
51293
+ },
51294
+ "data-qa": "tooltip-trigger",
51295
+ contentOverride: true
51296
+ }, hasIconTrigger === true && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Box, {
51297
+ "aria-label": "Open tooltip"
51298
+ }, /*#__PURE__*/React__default.createElement(IconTrigger, {
51299
+ color: tooltipTriggerColor
51300
+ })), /*#__PURE__*/React__default.createElement(Box, {
51301
+ padding: "0",
51302
+ srOnly: true
51303
+ }, /*#__PURE__*/React__default.createElement(Text$1, null, iconHelpText))), hasIconTrigger === false && /*#__PURE__*/React__default.createElement(Text$1, {
51304
+ color: tooltipTriggerColor,
51305
+ extraStyles: "\n color: ".concat(tooltipTriggerColor, ";\n &:visited {\n color: ").concat(tooltipTriggerColor, ";\n }\n &:hover {\n color: ").concat(hoverColor, "; \n }\n &:active,\n &:focus {\n color: ").concat(activeColor, "; \n }\n ").concat(triggerExtraStyles, ";\n ")
51306
+ }, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
51307
+ role: "tooltip",
51308
+ id: tooltipID,
51309
+ "aria-hidden": !tooltipOpen,
51310
+ background: contentBackgroundColor,
51311
+ "data-qa": "tooltip-contents",
51312
+ extraStyles: "\n position: absolute;\n display: ".concat(tooltipOpen ? "block" : "none", ";\n top: ").concat(top, "; \n right: ").concat(right, ";\n bottom: ").concat(bottom, ";\n left: ").concat(left, ";\n height: ").concat(height, ";\n ").concat(contentExtraStyles, "\n "),
51313
+ boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
51314
+ border: "1px solid transparent",
51315
+ borderRadius: "4px",
51316
+ minWidth: minWidth,
51317
+ maxWidth: maxWidth
51318
+ }, /*#__PURE__*/React__default.createElement(Paragraph$1, null, tooltipContent), /*#__PURE__*/React__default.createElement(Box, {
51319
+ padding: "0",
51320
+ extraStyles: "\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n ".concat(arrowBorder(borderColor, arrowDirection, "8px"), ";\n filter: drop-shadow(2px 8px 14px black);\n bottom: ").concat(arrowBottom, ";\n right: ").concat(arrowRight, ";\n top: ").concat(arrowTop, ";\n left: ").concat(arrowLeft, ";\n ")
51321
+ })));
51322
+ };
51323
+
51324
+ var pageBackground = "#FBFCFD";
51325
+ var fallbackValues$13 = {
51236
51326
  pageBackground: pageBackground
51237
51327
  };
51238
51328
 
@@ -51280,7 +51370,7 @@ var CenterSingle = function CenterSingle(_ref) {
51280
51370
  padding: "0"
51281
51371
  })));
51282
51372
  };
51283
- var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$12));
51373
+ var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$13));
51284
51374
 
51285
51375
  var CenterStack = function CenterStack(_ref) {
51286
51376
  var header = _ref.header,
@@ -51323,7 +51413,7 @@ var CenterStack = function CenterStack(_ref) {
51323
51413
  padding: "0"
51324
51414
  })));
51325
51415
  };
51326
- var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$12));
51416
+ var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$13));
51327
51417
 
51328
51418
  var CenterSingle$2 = function CenterSingle(_ref) {
51329
51419
  var header = _ref.header,
@@ -51369,7 +51459,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
51369
51459
  padding: "0"
51370
51460
  })));
51371
51461
  };
51372
- var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$12));
51462
+ var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$13));
51373
51463
 
51374
51464
  var SidebarSingleContent = function SidebarSingleContent(_ref) {
51375
51465
  var header = _ref.header,
@@ -51422,7 +51512,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
51422
51512
  padding: "0"
51423
51513
  })));
51424
51514
  };
51425
- var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$12));
51515
+ var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$13));
51426
51516
 
51427
51517
  var SidebarStackContent = function SidebarStackContent(_ref) {
51428
51518
  var header = _ref.header,
@@ -51491,7 +51581,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
51491
51581
  key: "footer-box"
51492
51582
  })));
51493
51583
  };
51494
- var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$12));
51584
+ var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$13));
51495
51585
 
51496
51586
  var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
51497
51587
  var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
@@ -51562,5 +51652,5 @@ var index$2 = /*#__PURE__*/Object.freeze({
51562
51652
  useLogoutTimers: useLogoutTimers
51563
51653
  });
51564
51654
 
51565
- export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, AgencyIcon, Alert$1 as Alert, AllocatedIcon, AmExSmallIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankGenericSmallIcon, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CaretArrowDown$1 as CaretArrowDown, CaretArrowUp$1 as CaretArrowUp, CarrotIcon$1 as CarrotIcon, CashIcon, CashSmallIcon, CashieringImage, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, CloseIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, ContactCard, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisabledAccountsAddIcon, DisabledPaymentMethodsAddIcon, DisabledPropertiesAddIcon, DiscoverSmallIcon, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, EmptyCartIconV2$1 as EmptyCartIconV2, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, 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, FormTextarea$1 as FormTextarea, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GenericSmallIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HeroImage$1 as HeroImage, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, IdleModal, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KebabMenuIcon, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, MasterCardSmallIcon, Modal$3 as Modal, Module$1 as Module, Motion, MultiCartIcon, MultipleSelectFilter$1 as MultipleSelectFilter, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoResultsIcon, NotFoundIcon, Obligation$1 as Obligation, iconsMap as ObligationIcons, OverageIcon, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaydotImage, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentStatusIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PersonIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, Popover$1 as Popover, PopupMenu$1 as PopupMenu, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationBanner$1 as RegistrationBanner, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess$1 as ResetPasswordSuccess, RevenueManagementImage, ReversalNeededIcon, RoutingNumberImage, Search$1 as Search, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, ShortageIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, SortableTableHeading$1 as SortableTableHeading, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToastNotification, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TrashIconV2$1 as TrashIconV2, TurnstileWidget, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VisaSmallIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WalletName, WarningIconXS, WelcomeModule$1 as WelcomeModule, WireSmallIcon, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index as constants, createPartialAmountFormState, createPartialAmountFormValidators, index$1 as hooks, index$2 as util, withWindowSize };
51655
+ export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, AgencyIcon, Alert$1 as Alert, AllocatedIcon, AmExSmallIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankGenericSmallIcon, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CaretArrowDown$1 as CaretArrowDown, CaretArrowUp$1 as CaretArrowUp, CarrotIcon$1 as CarrotIcon, CashIcon, CashSmallIcon, CashieringImage, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, CloseIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, ContactCard, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisabledAccountsAddIcon, DisabledPaymentMethodsAddIcon, DisabledPropertiesAddIcon, DiscoverSmallIcon, DisplayBox$1 as DisplayBox, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, EmptyCartIconV2$1 as EmptyCartIconV2, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, 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, FormTextarea$1 as FormTextarea, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GenericSmallIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HeroImage$1 as HeroImage, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, IdleModal, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KebabMenuIcon, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, MasterCardSmallIcon, Modal$3 as Modal, Module$1 as Module, Motion, MultiCartIcon, MultipleSelectFilter$1 as MultipleSelectFilter, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoResultsIcon, NotFoundIcon, Obligation$1 as Obligation, iconsMap as ObligationIcons, OverageIcon, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaydotImage, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentStatusIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PersonIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, Popover$1 as Popover, PopupMenu$1 as PopupMenu, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationBanner$1 as RegistrationBanner, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess$1 as ResetPasswordSuccess, RevenueManagementImage, ReversalNeededIcon, RoutingNumberImage, Search$1 as Search, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, ShortageIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, SortableTableHeading$1 as SortableTableHeading, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToastNotification, ToggleSwitch$1 as ToggleSwitch, Tooltip, TrashIcon$1 as TrashIcon, TrashIconV2$1 as TrashIconV2, TurnstileWidget, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VisaSmallIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WalletName, WarningIconXS, WelcomeModule$1 as WelcomeModule, WireSmallIcon, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index as constants, createPartialAmountFormState, createPartialAmountFormValidators, index$1 as hooks, index$2 as util, withWindowSize };
51566
51656
  //# sourceMappingURL=index.esm.js.map