@thecb/components 11.8.0-beta.2 → 11.8.0-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/dist/index.esm.js CHANGED
@@ -25190,873 +25190,287 @@ var DisplayBox = function DisplayBox(_ref) {
25190
25190
  };
25191
25191
  var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$l);
25192
25192
 
25193
- /*
25194
- Hook that assigns a click event listener to the main document element
25195
- Returns a ref to attach to another element (like an icon/button that triggers a popover)
25196
- If a click event gets captured by the document and the assigned element isn't the target
25197
- hook will run whatever handler is passed (eg a function that closes a popover)
25198
-
25199
- See popover component for implementation
25200
-
25201
- */
25193
+ function _extends$2() {
25194
+ _extends$2 = Object.assign || function (target) {
25195
+ for (var i = 1; i < arguments.length; i++) {
25196
+ var source = arguments[i];
25202
25197
 
25203
- var useOutsideClickHook = function useOutsideClickHook(handler) {
25204
- var ref = useRef();
25205
- useEffect$1(function () {
25206
- var handleOutsideClick = function handleOutsideClick(e) {
25207
- if (ref.current && !ref.current.contains(e.target)) {
25208
- handler();
25198
+ for (var key in source) {
25199
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
25200
+ target[key] = source[key];
25201
+ }
25209
25202
  }
25210
- };
25211
- document.addEventListener("click", handleOutsideClick, true);
25212
- return function () {
25213
- document.removeEventListener("click", handleOutsideClick, true);
25214
- };
25215
- }, [ref]);
25216
- return ref;
25217
- };
25203
+ }
25218
25204
 
25219
- /*
25220
- Hook that takes an ID selector for an element on the screen
25221
- And optionally values for top position, left position, smooth behavior
25222
- Finds element on screen and scrolls it to the provided coordinates
25205
+ return target;
25206
+ };
25223
25207
 
25224
- (string, number, number, string, number) => undefined;
25225
- */
25208
+ return _extends$2.apply(this, arguments);
25209
+ }
25226
25210
 
25227
- var useScrollTo = function useScrollTo(id) {
25228
- var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
25229
- var left = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
25230
- var behavior = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "auto";
25231
- var delay = arguments.length > 4 ? arguments[4] : undefined;
25232
- var scrollItem;
25233
- if (delay) {
25234
- setTimeout(function () {
25235
- var _scrollItem;
25236
- scrollItem = document.getElementById(id);
25237
- (_scrollItem = scrollItem) === null || _scrollItem === void 0 || _scrollItem.scrollTo({
25238
- top: top,
25239
- left: left,
25240
- behavior: behavior
25241
- });
25242
- }, delay);
25243
- } else {
25244
- var _scrollItem2;
25245
- scrollItem = document.getElementById(id);
25246
- (_scrollItem2 = scrollItem) === null || _scrollItem2 === void 0 || _scrollItem2.scrollTo({
25247
- top: top,
25248
- left: left,
25249
- behavior: behavior
25250
- });
25211
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
25212
+ if (source == null) return {};
25213
+ var target = {};
25214
+ var sourceKeys = Object.keys(source);
25215
+ var key, i;
25216
+
25217
+ for (i = 0; i < sourceKeys.length; i++) {
25218
+ key = sourceKeys[i];
25219
+ if (excluded.indexOf(key) >= 0) continue;
25220
+ target[key] = source[key];
25251
25221
  }
25252
- };
25253
25222
 
25254
- var initialToastState = {
25255
- isOpen: false,
25256
- variant: "",
25257
- message: ""
25258
- };
25259
- var useToastNotification = function useToastNotification() {
25260
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
25261
- _ref$timeout = _ref.timeout,
25262
- timeout = _ref$timeout === void 0 ? 5000 : _ref$timeout;
25263
- var _useState = useState(initialToastState),
25264
- _useState2 = _slicedToArray(_useState, 2),
25265
- toastState = _useState2[0],
25266
- setToastState = _useState2[1];
25267
- useEffect$1(function () {
25268
- if (toastState.isOpen && timeout > 0) {
25269
- setTimeout(function () {
25270
- setToastState(initialToastState);
25271
- }, timeout);
25272
- }
25273
- }, [timeout, toastState.isOpen]);
25274
- var showToast = function showToast(_ref2) {
25275
- var message = _ref2.message,
25276
- variant = _ref2.variant;
25277
- return setToastState({
25278
- isOpen: true,
25279
- variant: variant,
25280
- message: message
25281
- });
25282
- };
25283
- var hideToast = function hideToast() {
25284
- return setToastState(initialToastState);
25285
- };
25286
- return {
25287
- isToastOpen: toastState.isOpen,
25288
- toastVariant: toastState.variant,
25289
- toastMessage: toastState.message,
25290
- showToast: showToast,
25291
- hideToast: hideToast
25292
- };
25293
- };
25223
+ return target;
25224
+ }
25294
25225
 
25295
- function useConditionallyAddValidator(condition, validatorFn, addValidator, removeValidator) {
25296
- useEffect$1(function () {
25297
- if (condition) {
25298
- addValidator(validatorFn());
25226
+ function _objectWithoutProperties$1(source, excluded) {
25227
+ if (source == null) return {};
25228
+
25229
+ var target = _objectWithoutPropertiesLoose$1(source, excluded);
25230
+
25231
+ var key, i;
25232
+
25233
+ if (Object.getOwnPropertySymbols) {
25234
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
25235
+
25236
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
25237
+ key = sourceSymbolKeys[i];
25238
+ if (excluded.indexOf(key) >= 0) continue;
25239
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
25240
+ target[key] = source[key];
25299
25241
  }
25300
- return function () {
25301
- // Remove validator when component unmounts
25302
- removeValidator(validatorFn());
25303
- };
25304
- }, [condition, addValidator, removeValidator]);
25242
+ }
25243
+
25244
+ return target;
25305
25245
  }
25306
25246
 
25307
- /**
25308
- * A custom hook to dynamically load the Cloudflare Turnstile script.
25309
- *
25310
- * @param {string} verifyURL - The URL of the Turnstile verification script.
25311
- */
25312
- var useTurnstileScript = function useTurnstileScript(verifyURL) {
25313
- var _useState = useState(false),
25314
- _useState2 = _slicedToArray(_useState, 2),
25315
- scriptLoaded = _useState2[0],
25316
- setScriptLoaded = _useState2[1];
25317
- var _useState3 = useState(false),
25318
- _useState4 = _slicedToArray(_useState3, 2),
25319
- scriptError = _useState4[0],
25320
- setScriptError = _useState4[1];
25321
- var handleScriptError = function handleScriptError() {
25322
- setScriptError(true);
25323
- setScriptLoaded(false);
25324
- };
25325
- useEffect$1(function () {
25326
- if (typeof window === "undefined") {
25327
- setScriptLoaded(false);
25328
- return;
25329
- }
25330
- if (window.turnstile && window.turnstile.render) {
25331
- setScriptLoaded(true);
25332
- return;
25333
- }
25334
- var script = document.createElement("script");
25335
- script.src = "".concat(verifyURL, "?render=explicit");
25336
- script.onload = function () {
25337
- setScriptLoaded(true);
25338
- };
25339
- script.onerror = function () {
25340
- handleScriptError();
25341
- };
25342
- script.onabort = function () {
25343
- handleScriptError();
25344
- };
25345
- script.defer = true;
25346
- document.getElementsByTagName("head")[0].appendChild(script);
25347
- return function () {
25348
- setScriptLoaded(false);
25349
- setScriptError(false);
25350
- };
25351
- }, [verifyURL]);
25352
- return {
25353
- scriptLoaded: scriptLoaded,
25354
- scriptError: scriptError
25355
- };
25356
- };
25247
+ function _slicedToArray$1(arr, i) {
25248
+ return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _nonIterableRest$1();
25249
+ }
25357
25250
 
25251
+ function _toConsumableArray$1(arr) {
25252
+ return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _nonIterableSpread$1();
25253
+ }
25358
25254
 
25255
+ function _arrayWithoutHoles$1(arr) {
25256
+ if (Array.isArray(arr)) {
25257
+ for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
25359
25258
 
25360
- var index$1 = /*#__PURE__*/Object.freeze({
25361
- __proto__: null,
25362
- useOutsideClick: useOutsideClickHook,
25363
- useScrollTo: useScrollTo,
25364
- useToastNotification: useToastNotification,
25365
- useConditionallyAddValidator: useConditionallyAddValidator,
25366
- useTurnstileScript: useTurnstileScript
25367
- });
25259
+ return arr2;
25260
+ }
25261
+ }
25368
25262
 
25369
- var hoverColor$4 = "#116285";
25370
- var activeColor$5 = "#0E506D";
25371
- var popoverTriggerColor = "#15749D";
25372
- var fallbackValues$m = {
25373
- hoverColor: hoverColor$4,
25374
- activeColor: activeColor$5,
25375
- popoverTriggerColor: popoverTriggerColor
25376
- };
25263
+ function _arrayWithHoles$1(arr) {
25264
+ if (Array.isArray(arr)) return arr;
25265
+ }
25377
25266
 
25378
- var arrowBorder = function arrowBorder(borderColor, direction) {
25379
- var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
25380
- var angle = "".concat(width, " solid transparent");
25381
- var straight = "".concat(width, " solid ").concat(borderColor);
25382
- if (direction == "down") {
25383
- return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
25384
- } else if (direction == "up") {
25385
- return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
25386
- } else if (direction == "left") {
25387
- return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
25388
- } else if (direction == "right") {
25389
- return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
25267
+ function _iterableToArray$1(iter) {
25268
+ if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
25269
+ }
25270
+
25271
+ function _iterableToArrayLimit$1(arr, i) {
25272
+ if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
25273
+ return;
25390
25274
  }
25391
- };
25392
- var Popover = function Popover(_ref) {
25393
- var themeValues = _ref.themeValues,
25394
- _ref$triggerText = _ref.triggerText,
25395
- triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
25396
- _ref$content = _ref.content,
25397
- content = _ref$content === void 0 ? "" : _ref$content,
25398
- _ref$hasIcon = _ref.hasIcon,
25399
- hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
25400
- Icon = _ref.icon,
25401
- _ref$iconHelpText = _ref.iconHelpText,
25402
- iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
25403
- _ref$popoverID = _ref.popoverID,
25404
- popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
25405
- _ref$popoverFocus = _ref.popoverFocus,
25406
- popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
25407
- extraStyles = _ref.extraStyles,
25408
- textExtraStyles = _ref.textExtraStyles,
25409
- _ref$minWidth = _ref.minWidth,
25410
- minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
25411
- _ref$maxWidth = _ref.maxWidth,
25412
- maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
25413
- _ref$height = _ref.height,
25414
- height = _ref$height === void 0 ? "auto" : _ref$height,
25415
- position = _ref.position,
25416
- arrowPosition = _ref.arrowPosition,
25417
- _ref$arrowDirection = _ref.arrowDirection,
25418
- arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
25419
- _ref$transform = _ref.transform,
25420
- transform = _ref$transform === void 0 ? "none" : _ref$transform,
25421
- buttonExtraStyles = _ref.buttonExtraStyles,
25422
- _ref$backgroundColor = _ref.backgroundColor,
25423
- backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
25424
- _ref$borderColor = _ref.borderColor,
25425
- borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
25426
- popoverExtraStyles = _ref.popoverExtraStyles;
25427
- var hoverColor = themeValues.hoverColor,
25428
- activeColor = themeValues.activeColor,
25429
- popoverTriggerColor = themeValues.popoverTriggerColor;
25430
- var _ref2 = position !== null && position !== void 0 ? position : {},
25431
- _ref2$top = _ref2.top,
25432
- top = _ref2$top === void 0 ? "-110px" : _ref2$top,
25433
- _ref2$right = _ref2.right,
25434
- right = _ref2$right === void 0 ? "auto" : _ref2$right,
25435
- _ref2$bottom = _ref2.bottom,
25436
- bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
25437
- _ref2$left = _ref2.left,
25438
- left = _ref2$left === void 0 ? "-225px" : _ref2$left;
25439
- var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
25440
- _ref3$arrowTop = _ref3.arrowTop,
25441
- arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
25442
- _ref3$arrowRight = _ref3.arrowRight,
25443
- arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
25444
- _ref3$arrowBottom = _ref3.arrowBottom,
25445
- arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
25446
- _ref3$arrowLeft = _ref3.arrowLeft,
25447
- arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
25448
- var _useState = useState(false),
25449
- _useState2 = _slicedToArray(_useState, 2),
25450
- popoverOpen = _useState2[0],
25451
- togglePopover = _useState2[1];
25452
- var handleTogglePopover = function handleTogglePopover(popoverState) {
25453
- if (popoverOpen !== popoverState) {
25454
- togglePopover(popoverState);
25275
+
25276
+ var _arr = [];
25277
+ var _n = true;
25278
+ var _d = false;
25279
+ var _e = undefined;
25280
+
25281
+ try {
25282
+ for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
25283
+ _arr.push(_s.value);
25284
+
25285
+ if (i && _arr.length === i) break;
25455
25286
  }
25287
+ } catch (err) {
25288
+ _d = true;
25289
+ _e = err;
25290
+ } finally {
25291
+ try {
25292
+ if (!_n && _i["return"] != null) _i["return"]();
25293
+ } finally {
25294
+ if (_d) throw _e;
25295
+ }
25296
+ }
25297
+
25298
+ return _arr;
25299
+ }
25300
+
25301
+ function _nonIterableSpread$1() {
25302
+ throw new TypeError("Invalid attempt to spread non-iterable instance");
25303
+ }
25304
+
25305
+ function _nonIterableRest$1() {
25306
+ throw new TypeError("Invalid attempt to destructure non-iterable instance");
25307
+ }
25308
+
25309
+ var getUniqueFormatDelimiters = function getUniqueFormatDelimiters(formats, formatChar) {
25310
+ return _toConsumableArray$1(new Set(formats.join("").split(formatChar).join("").split("")));
25311
+ };
25312
+ var format$1 = function format(formatter) {
25313
+ return function (value) {
25314
+ var usedFormat = formatter.formats[value.length];
25315
+
25316
+ if (!usedFormat) {
25317
+ return value;
25318
+ }
25319
+
25320
+ var formatPieces = usedFormat.split(formatter.formatChar);
25321
+ var valuePieces = value.split("");
25322
+ var zipped = formatPieces.map(function (v, i) {
25323
+ return v + (valuePieces[i] || "");
25324
+ });
25325
+ return zipped.join("");
25456
25326
  };
25457
- var triggerRef = useOutsideClickHook(function () {
25458
- return handleTogglePopover(false);
25327
+ };
25328
+
25329
+ var countDelims = function countDelims(formatter, index) {
25330
+ var count = 0;
25331
+ var format = formatter.formats[index];
25332
+ if (!format) return 0;
25333
+ formatter.uniqueDelimiters.forEach(function (delim) {
25334
+ return count += format.split(delim).length - 1;
25459
25335
  });
25460
- return /*#__PURE__*/React__default.createElement(Box, {
25461
- padding: "0",
25462
- extraStyles: "position: relative; ".concat(extraStyles)
25463
- }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
25464
- action: function action() {
25465
- return noop$1;
25466
- },
25467
- onFocus: function onFocus() {
25468
- handleTogglePopover(true);
25469
- },
25470
- onBlur: function onBlur() {
25471
- handleTogglePopover(false);
25472
- },
25473
- onKeyDown: function onKeyDown(e) {
25474
- if (e.keyCode === ESCAPE) {
25475
- handleTogglePopover(false);
25476
- }
25477
- },
25478
- onTouchStart: function onTouchStart() {
25479
- return handleTogglePopover(true);
25480
- },
25481
- onTouchEnd: function onTouchEnd() {
25482
- return handleTogglePopover(false);
25483
- },
25484
- onMouseEnter: function onMouseEnter() {
25485
- return handleTogglePopover(true);
25486
- },
25487
- onMouseLeave: function onMouseLeave() {
25488
- return handleTogglePopover(false);
25489
- },
25490
- contentOverride: true,
25491
- variant: "smallGhost",
25492
- tabIndex: "0",
25493
- id: "btnPopover".concat(popoverID),
25494
- "aria-expanded": popoverOpen,
25495
- "aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
25496
- "aria-describedby": "Disclosure".concat(popoverID),
25497
- "aria-controls": "Disclosed".concat(popoverID),
25498
- ref: triggerRef,
25499
- extraStyles: buttonExtraStyles
25500
- }, hasIcon && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, null), /*#__PURE__*/React__default.createElement(Box, {
25501
- padding: "0",
25502
- srOnly: true
25503
- }, /*#__PURE__*/React__default.createElement(Text$1, {
25504
- id: "btnPopover".concat(popoverID, "_info")
25505
- }, iconHelpText))), !hasIcon && /*#__PURE__*/React__default.createElement(Text$1, {
25506
- color: popoverTriggerColor,
25507
- extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
25508
- }, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
25509
- background: backgroundColor,
25510
- borderRadius: "4px",
25511
- boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
25512
- id: "Disclosed".concat(popoverID),
25513
- role: "region",
25514
- "aria-describedby": "Disclosure".concat(popoverID),
25515
- tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
25516
- minWidth: minWidth,
25517
- maxWidth: maxWidth,
25518
- 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 ")
25519
- }, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
25520
- padding: "0",
25521
- 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 ")
25522
- })));
25336
+ return count;
25523
25337
  };
25524
- var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$m);
25525
25338
 
25526
- var hoverColor$5 = "#116285";
25527
- var activeColor$6 = "#0E506D";
25528
- var tooltipTriggerColor = "#15749D";
25529
- var fallbackValues$n = {
25530
- hoverColor: hoverColor$5,
25531
- activeColor: activeColor$6,
25532
- tooltipTriggerColor: tooltipTriggerColor
25339
+ var unformat = function unformat(formatter) {
25340
+ return function (formattedValue, formatIndex) {
25341
+ if (formatIndex >= formatter.formats.length) {
25342
+ return formattedValue;
25343
+ }
25344
+
25345
+ var format = formatter.formats[formatIndex];
25346
+ return formattedValue.split("").filter(function (_, i) {
25347
+ return !(format[i] != formatter.formatChar);
25348
+ }).join("");
25349
+ };
25350
+ };
25351
+ var inject = function inject(baseString) {
25352
+ return function (start, end, newString) {
25353
+ return baseString.substring(0, start) + newString + baseString.substring(end);
25354
+ };
25533
25355
  };
25356
+ var formattedToUnformattedIndex = function formattedToUnformattedIndex(formattedIndex, rawValue, formatter) {
25357
+ var maxFormatExceeded = rawValue.length >= formatter.formats.length;
25534
25358
 
25535
- var arrowBorder$1 = function arrowBorder(borderColor, direction) {
25536
- var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
25537
- var angle = "".concat(width, " solid transparent");
25538
- var straight = "".concat(width, " solid ").concat(borderColor);
25539
- if (direction == "down") {
25540
- return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
25541
- } else if (direction == "up") {
25542
- return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
25543
- } else if (direction == "left") {
25544
- return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
25545
- } else if (direction == "right") {
25546
- return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
25359
+ if (maxFormatExceeded) {
25360
+ return formattedIndex;
25361
+ } else {
25362
+ var formatString = formatter.formats[rawValue.length];
25363
+ var beforeString = formatString.slice(0, formattedIndex);
25364
+ return beforeString.split("").filter(function (c) {
25365
+ return c === formatter.formatChar;
25366
+ }).length;
25547
25367
  }
25548
25368
  };
25549
- var Tooltip = function Tooltip(_ref) {
25550
- var themeValues = _ref.themeValues,
25551
- _ref$triggerText = _ref.triggerText,
25552
- triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
25553
- _ref$content = _ref.content,
25554
- content = _ref$content === void 0 ? "" : _ref$content,
25555
- _ref$hasIconTrigger = _ref.hasIconTrigger,
25556
- hasIconTrigger = _ref$hasIconTrigger === void 0 ? false : _ref$hasIconTrigger,
25557
- _ref$IconTrigger = _ref.IconTrigger,
25558
- IconTrigger = _ref$IconTrigger === void 0 ? IconAdd : _ref$IconTrigger,
25559
- _ref$iconHelpText = _ref.iconHelpText,
25560
- iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
25561
- _ref$tooltipID = _ref.tooltipID,
25562
- tooltipID = _ref$tooltipID === void 0 ? 0 : _ref$tooltipID,
25563
- extraStyles = _ref.extraStyles,
25564
- _ref$textExtraStyles = _ref.textExtraStyles,
25565
- textExtraStyles = _ref$textExtraStyles === void 0 ? "" : _ref$textExtraStyles,
25566
- _ref$minWidth = _ref.minWidth,
25567
- minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
25568
- _ref$maxWidth = _ref.maxWidth,
25569
- maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
25570
- _ref$height = _ref.height,
25571
- height = _ref$height === void 0 ? "auto" : _ref$height,
25572
- position = _ref.position,
25573
- arrowPosition = _ref.arrowPosition,
25574
- _ref$arrowDirection = _ref.arrowDirection,
25575
- arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
25576
- _ref$transform = _ref.transform,
25577
- transform = _ref$transform === void 0 ? "none" : _ref$transform,
25578
- buttonExtraStyles = _ref.buttonExtraStyles,
25579
- _ref$backgroundColor = _ref.backgroundColor,
25580
- backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
25581
- _ref$borderColor = _ref.borderColor,
25582
- borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
25583
- tooltipExtraStyles = _ref.tooltipExtraStyles;
25584
- var hoverColor = themeValues.hoverColor,
25585
- activeColor = themeValues.activeColor,
25586
- tooltipTriggerColor = themeValues.tooltipTriggerColor;
25587
- var _ref2 = position !== null && position !== void 0 ? position : {},
25588
- _ref2$top = _ref2.top,
25589
- top = _ref2$top === void 0 ? "-110px" : _ref2$top,
25590
- _ref2$right = _ref2.right,
25591
- right = _ref2$right === void 0 ? "auto" : _ref2$right,
25592
- _ref2$bottom = _ref2.bottom,
25593
- bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
25594
- _ref2$left = _ref2.left,
25595
- left = _ref2$left === void 0 ? "-225px" : _ref2$left;
25596
- var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
25597
- _ref3$arrowTop = _ref3.arrowTop,
25598
- arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
25599
- _ref3$arrowRight = _ref3.arrowRight,
25600
- arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
25601
- _ref3$arrowBottom = _ref3.arrowBottom,
25602
- arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
25603
- _ref3$arrowLeft = _ref3.arrowLeft,
25604
- arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
25605
- var _useState = useState(false),
25606
- _useState2 = _slicedToArray(_useState, 2),
25607
- tooltipOpen = _useState2[0],
25608
- setTooltipOpen = _useState2[1];
25609
- var handleToggleTooltip = function handleToggleTooltip(tooltipState) {
25610
- if (tooltipOpen !== tooltipState) {
25611
- setTooltipOpen(tooltipState);
25612
- }
25613
- };
25614
- var handleKeyboardEvent = function handleKeyboardEvent(e) {
25615
- if (e.keyCode === ESCAPE || e.keyCode === 9) {
25616
- handleToggleTooltip(false);
25617
- }
25618
- };
25619
- return /*#__PURE__*/React__default.createElement(Box, {
25620
- padding: "0",
25621
- extraStyles: "position: relative; ".concat(extraStyles)
25622
- }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
25623
- action: function action() {
25624
- return noop$1;
25625
- },
25626
- onFocus: function onFocus() {
25627
- return handleToggleTooltip(true);
25628
- },
25629
- onBlur: function onBlur() {
25630
- return handleToggleTooltip(false);
25631
- },
25632
- onKeyDown: handleKeyboardEvent,
25633
- onTouchStart: function onTouchStart() {
25634
- return handleToggleTooltip(true);
25635
- },
25636
- onTouchEnd: function onTouchEnd() {
25637
- return handleToggleTooltip(false);
25638
- },
25639
- onMouseEnter: function onMouseEnter() {
25640
- return handleToggleTooltip(true);
25641
- },
25642
- onMouseLeave: function onMouseLeave() {
25643
- return handleToggleTooltip(false);
25644
- },
25645
- contentOverride: true,
25646
- variant: "smallGhost",
25647
- tabIndex: "0",
25648
- "aria-describedby": tooltipID,
25649
- extraStyles: buttonExtraStyles
25650
- }, hasIconTrigger && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(IconTrigger, {
25651
- stroke: BLACK
25652
- }), /*#__PURE__*/React__default.createElement(Box, {
25653
- padding: "0",
25654
- srOnly: true
25655
- }, /*#__PURE__*/React__default.createElement(Text$1, null, iconHelpText))), !hasIconTrigger && /*#__PURE__*/React__default.createElement(Text$1, {
25656
- extraStyles: textExtraStyles
25657
- }, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
25658
- background: backgroundColor,
25659
- borderRadius: "4px",
25660
- boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
25661
- id: tooltipID,
25662
- role: "tooltip",
25663
- minWidth: minWidth,
25664
- maxWidth: maxWidth,
25665
- extraStyles: "\n display: ".concat(tooltipOpen ? "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(tooltipExtraStyles, ";\n ")
25666
- }, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
25667
- padding: "0",
25668
- extraStyles: "\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n ".concat(arrowBorder$1(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 ")
25669
- })));
25369
+ var unformattedToFormattedIndex = function unformattedToFormattedIndex(rawIndex, rawValue, formatter, del) {
25370
+ var maxFormatExceeded = rawValue.length >= formatter.formats.length; // If forced to stay formatted, offset by delims - 1
25371
+ // This is done so the component doesn't assume that any added chars will be kept
25372
+ // (i.e. if an external constraint is applied)
25373
+
25374
+ if (maxFormatExceeded) {
25375
+ var delims = countDelims(formatter, rawValue.length - 1);
25376
+ return delims > 0 && !del ? rawIndex + delims - 1 : rawIndex;
25377
+ } else {
25378
+ return formatter.formats[rawValue.length].split(formatter.formatChar).slice(0, rawIndex).reduce(function (acc, curr) {
25379
+ return curr.length + acc;
25380
+ }, 0) + rawIndex;
25381
+ }
25670
25382
  };
25671
- var Tooltip$1 = themeComponent(Tooltip, "Tooltip", fallbackValues$n);
25672
25383
 
25673
- var DisplayCard = function DisplayCard(_ref) {
25674
- var title = _ref.title,
25675
- item = _ref.item,
25676
- buttonText = _ref.buttonText,
25677
- buttonAction = _ref.buttonAction,
25678
- url = _ref.url,
25679
- _ref$link = _ref.link,
25680
- link = _ref$link === void 0 ? false : _ref$link,
25681
- linkText = _ref.linkText,
25682
- linkURL = _ref.linkURL,
25683
- _ref$linkExtraStyles = _ref.linkExtraStyles,
25684
- linkExtraStyles = _ref$linkExtraStyles === void 0 ? "" : _ref$linkExtraStyles,
25685
- helpText = _ref.helpText,
25686
- _ref$hasTooltip = _ref.hasTooltip,
25687
- hasTooltip = _ref$hasTooltip === void 0 ? false : _ref$hasTooltip,
25688
- _ref$tooltipTriggerTe = _ref.tooltipTriggerText,
25689
- tooltipTriggerText = _ref$tooltipTriggerTe === void 0 ? "" : _ref$tooltipTriggerTe,
25690
- _ref$tooltipContent = _ref.tooltipContent,
25691
- tooltipContent = _ref$tooltipContent === void 0 ? "" : _ref$tooltipContent,
25692
- _ref$tooltipPosition = _ref.tooltipPosition,
25693
- tooltipPosition = _ref$tooltipPosition === void 0 ? {
25694
- top: "auto",
25695
- bottom: "calc(100% + 0.25rem)",
25696
- left: "auto",
25697
- right: "0"
25698
- } : _ref$tooltipPosition,
25699
- _ref$tooltipArrowPosi = _ref.tooltipArrowPosition,
25700
- tooltipArrowPosition = _ref$tooltipArrowPosi === void 0 ? {
25701
- arrowBottom: "-0.5rem",
25702
- arrowRight: "0.625rem",
25703
- arrowTop: "auto",
25704
- arrowLeft: "auto"
25705
- } : _ref$tooltipArrowPosi,
25706
- tooltipArrowDirection = _ref.tooltipArrowDirection,
25707
- tooltipExtraStyles = _ref.tooltipExtraStyles,
25708
- _ref$tooltipTextExtra = _ref.tooltipTextExtraStyles,
25709
- tooltipTextExtraStyles = _ref$tooltipTextExtra === void 0 ? "max-width: 300px;" : _ref$tooltipTextExtra,
25710
- _ref$hasPopover = _ref.hasPopover,
25711
- hasPopover = _ref$hasPopover === void 0 ? false : _ref$hasPopover,
25712
- _ref$popoverTriggerTe = _ref.popoverTriggerText,
25713
- popoverTriggerText = _ref$popoverTriggerTe === void 0 ? "" : _ref$popoverTriggerTe,
25714
- _ref$popoverContent = _ref.popoverContent,
25715
- popoverContent = _ref$popoverContent === void 0 ? "" : _ref$popoverContent,
25716
- popoverExtraStyles = _ref.popoverExtraStyles,
25717
- popoverTextExtraStyles = _ref.popoverTextExtraStyles;
25718
- return /*#__PURE__*/React__default.createElement(Box, {
25719
- padding: "0 0 16px"
25720
- }, /*#__PURE__*/React__default.createElement(Stack, {
25721
- childGap: "0rem"
25722
- }, /*#__PURE__*/React__default.createElement(Box, {
25723
- padding: "0 0 8px 0"
25724
- }, /*#__PURE__*/React__default.createElement(Cluster, {
25725
- justify: "space-between",
25726
- align: "center",
25727
- overflow: true
25728
- }, /*#__PURE__*/React__default.createElement(Paragraph$1, {
25729
- variant: "pL",
25730
- color: CHARADE_GREY,
25731
- extraStyles: "letter-spacing: 0.29px"
25732
- }, title), hasPopover && /*#__PURE__*/React__default.createElement(Popover$1, {
25733
- triggerText: popoverTriggerText,
25734
- content: popoverContent,
25735
- popoverExtraStyles: popoverExtraStyles,
25736
- popoverTextExtraStyles: popoverTextExtraStyles
25737
- }), hasTooltip && /*#__PURE__*/React__default.createElement(Tooltip$1, {
25738
- triggerText: tooltipTriggerText,
25739
- content: tooltipContent,
25740
- textExtraStyles: tooltipTextExtraStyles,
25741
- position: tooltipPosition,
25742
- arrowPosition: tooltipArrowPosition,
25743
- arrowDirection: tooltipArrowDirection,
25744
- tooltipExtraStyles: tooltipExtraStyles
25745
- }))), /*#__PURE__*/React__default.createElement(Box, {
25746
- padding: "0"
25747
- }, /*#__PURE__*/React__default.createElement(Box, {
25748
- padding: "24px",
25749
- borderSize: "1px",
25750
- borderRadius: "4px",
25751
- background: WHITE,
25752
- boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
25753
- }, /*#__PURE__*/React__default.createElement(Cluster, {
25754
- justify: "space-between",
25755
- align: "center"
25756
- }, /*#__PURE__*/React__default.createElement(Text$1, {
25757
- color: CHARADE_GREY
25758
- }, item), linkText && linkURL && /*#__PURE__*/React__default.createElement(Link, {
25759
- to: linkURL,
25760
- extraStyles: linkExtraStyles
25761
- }, linkText), link ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
25762
- text: buttonText,
25763
- url: url,
25764
- variant: "smallGhost",
25765
- dataQa: buttonText,
25766
- extraStyles: "min-width: 0;"
25767
- }) : buttonAction ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
25768
- text: buttonText,
25769
- action: buttonAction,
25770
- variant: "smallGhost",
25771
- dataQa: buttonText,
25772
- extraStyles: "min-width: 0;"
25773
- }) : helpText ? /*#__PURE__*/React__default.createElement(Text$1, {
25774
- color: STORM_GREY,
25775
- extraStyles: "font-style: italic;"
25776
- }, helpText) : /*#__PURE__*/React__default.createElement(Fragment$1, null))))));
25384
+ var createFormat = function createFormat(formats, formatChar) {
25385
+ return {
25386
+ uniqueDelimiters: getUniqueFormatDelimiters(formats, formatChar),
25387
+ formats: formats,
25388
+ formatChar: formatChar
25389
+ };
25777
25390
  };
25778
25391
 
25779
- function _extends$2() {
25780
- _extends$2 = Object.assign || function (target) {
25781
- for (var i = 1; i < arguments.length; i++) {
25782
- var source = arguments[i];
25392
+ var FormattedInput = function FormattedInput(_ref) {
25393
+ var value = _ref.value,
25394
+ formatter = _ref.formatter,
25395
+ onChange = _ref.onChange,
25396
+ props = _objectWithoutProperties$1(_ref, ["value", "formatter", "onChange"]);
25783
25397
 
25784
- for (var key in source) {
25785
- if (Object.prototype.hasOwnProperty.call(source, key)) {
25786
- target[key] = source[key];
25787
- }
25788
- }
25789
- }
25398
+ var _useState = useState(format$1(formatter)(value)),
25399
+ _useState2 = _slicedToArray$1(_useState, 2),
25400
+ formattedValue = _useState2[0],
25401
+ setFormattedValue = _useState2[1];
25790
25402
 
25791
- return target;
25792
- };
25403
+ var inputEl = useRef(null);
25404
+ var stateRefs = useRef({
25405
+ selectionStart: 0,
25406
+ selectionEnd: 0,
25407
+ isDelete: false,
25408
+ rawValue: ''
25409
+ });
25410
+ useLayoutEffect(function () {
25411
+ // A lot of the work here is cursor manipulation
25412
+ if (inputEl.current && inputEl.current === document.activeElement) {
25413
+ inputEl.current.setSelectionRange(stateRefs.current.selectionStart, stateRefs.current.selectionEnd);
25414
+ }
25415
+ }, [stateRefs]);
25793
25416
 
25794
- return _extends$2.apply(this, arguments);
25795
- }
25417
+ var handleChange = function handleChange(event) {
25418
+ var deleteKeyPressed = stateRefs.current.isDelete;
25419
+ var maxFormatExceeded = stateRefs.current.rawValue.length >= formatter.formats.length - 1;
25796
25420
 
25797
- function _objectWithoutPropertiesLoose$1(source, excluded) {
25798
- if (source == null) return {};
25799
- var target = {};
25800
- var sourceKeys = Object.keys(source);
25801
- var key, i;
25421
+ if (maxFormatExceeded && !deleteKeyPressed) {
25422
+ return;
25423
+ }
25424
+ /* At the beginning of onChange, event.target.value is a concat of the previous formatted value
25425
+ * and an unformatted injection at the start, end, or in the middle (maybe a deletion). To prepare
25426
+ * the unformatted value for the user's onChange, the formatted string and unformatted injection need
25427
+ * to be separated, then unformat the formatted string, then insert (or delete) the injection from the
25428
+ * old unformatted value.
25429
+ */
25802
25430
 
25803
- for (i = 0; i < sourceKeys.length; i++) {
25804
- key = sourceKeys[i];
25805
- if (excluded.indexOf(key) >= 0) continue;
25806
- target[key] = source[key];
25807
- }
25808
25431
 
25809
- return target;
25810
- }
25432
+ var injectionLength = event.target.value.length - formattedValue.length;
25433
+ var end = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? stateRefs.current.selectionStart + injectionLength : stateRefs.current.selectionEnd - 1;
25434
+ var injection = event.target.value.substring(stateRefs.current.selectionStart, end); // Injection is the new unformatted piece of the input
25435
+ // Need to find where to put it
25811
25436
 
25812
- function _objectWithoutProperties$1(source, excluded) {
25813
- if (source == null) return {};
25437
+ var rawInjectionPointStart = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter);
25438
+ var rawInjectionPointEnd = formattedToUnformattedIndex(stateRefs.current.selectionEnd, stateRefs.current.rawValue, formatter); // Unformat the previous formatted value for injection
25439
+ // Using the relevant format string, strips away chars not marked with the formatChar
25814
25440
 
25815
- var target = _objectWithoutPropertiesLoose$1(source, excluded);
25441
+ var unformattedOldValue = unformat(formatter)(formattedValue, stateRefs.current.rawValue.length); // Edit the previous unformatted value (either add, update or delete)
25816
25442
 
25817
- var key, i;
25443
+ var injectIntoOldValue = inject(unformattedOldValue);
25444
+ var unformattedNewValue = deleteKeyPressed ? rawInjectionPointStart === rawInjectionPointEnd ? injectIntoOldValue(rawInjectionPointStart - 1, rawInjectionPointStart, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, injection);
25445
+ var lengthDifference = unformattedNewValue.length - stateRefs.current.rawValue.length;
25446
+ var rawIndex = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter) + lengthDifference; // Find the new cursor position for the potential formatted value
25447
+ // Applied by useLayoutEffect
25818
25448
 
25819
- if (Object.getOwnPropertySymbols) {
25820
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
25449
+ var newFormattedCursorPosition = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? unformattedToFormattedIndex(rawIndex, unformattedNewValue, formatter, deleteKeyPressed) : deleteKeyPressed ? stateRefs.current.selectionStart : stateRefs.current.selectionEnd;
25450
+ var formattedNewValue = format$1(formatter)(unformattedNewValue);
25451
+ setFormattedValue(formattedNewValue); // Apply the external onChange function to the raw underlying string
25452
+ // This is where the user generally updates the input value
25821
25453
 
25822
- for (i = 0; i < sourceSymbolKeys.length; i++) {
25823
- key = sourceSymbolKeys[i];
25824
- if (excluded.indexOf(key) >= 0) continue;
25825
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
25826
- target[key] = source[key];
25454
+ if (onChange) {
25455
+ onChange(unformattedNewValue);
25827
25456
  }
25828
- }
25829
-
25830
- return target;
25831
- }
25457
+ };
25832
25458
 
25833
- function _slicedToArray$1(arr, i) {
25834
- return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _nonIterableRest$1();
25835
- }
25836
-
25837
- function _toConsumableArray$1(arr) {
25838
- return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _nonIterableSpread$1();
25839
- }
25840
-
25841
- function _arrayWithoutHoles$1(arr) {
25842
- if (Array.isArray(arr)) {
25843
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
25844
-
25845
- return arr2;
25846
- }
25847
- }
25848
-
25849
- function _arrayWithHoles$1(arr) {
25850
- if (Array.isArray(arr)) return arr;
25851
- }
25852
-
25853
- function _iterableToArray$1(iter) {
25854
- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
25855
- }
25856
-
25857
- function _iterableToArrayLimit$1(arr, i) {
25858
- if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
25859
- return;
25860
- }
25861
-
25862
- var _arr = [];
25863
- var _n = true;
25864
- var _d = false;
25865
- var _e = undefined;
25866
-
25867
- try {
25868
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
25869
- _arr.push(_s.value);
25870
-
25871
- if (i && _arr.length === i) break;
25872
- }
25873
- } catch (err) {
25874
- _d = true;
25875
- _e = err;
25876
- } finally {
25877
- try {
25878
- if (!_n && _i["return"] != null) _i["return"]();
25879
- } finally {
25880
- if (_d) throw _e;
25881
- }
25882
- }
25883
-
25884
- return _arr;
25885
- }
25886
-
25887
- function _nonIterableSpread$1() {
25888
- throw new TypeError("Invalid attempt to spread non-iterable instance");
25889
- }
25890
-
25891
- function _nonIterableRest$1() {
25892
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
25893
- }
25894
-
25895
- var getUniqueFormatDelimiters = function getUniqueFormatDelimiters(formats, formatChar) {
25896
- return _toConsumableArray$1(new Set(formats.join("").split(formatChar).join("").split("")));
25897
- };
25898
- var format$1 = function format(formatter) {
25899
- return function (value) {
25900
- var usedFormat = formatter.formats[value.length];
25901
-
25902
- if (!usedFormat) {
25903
- return value;
25904
- }
25905
-
25906
- var formatPieces = usedFormat.split(formatter.formatChar);
25907
- var valuePieces = value.split("");
25908
- var zipped = formatPieces.map(function (v, i) {
25909
- return v + (valuePieces[i] || "");
25910
- });
25911
- return zipped.join("");
25912
- };
25913
- };
25914
-
25915
- var countDelims = function countDelims(formatter, index) {
25916
- var count = 0;
25917
- var format = formatter.formats[index];
25918
- if (!format) return 0;
25919
- formatter.uniqueDelimiters.forEach(function (delim) {
25920
- return count += format.split(delim).length - 1;
25921
- });
25922
- return count;
25923
- };
25924
-
25925
- var unformat = function unformat(formatter) {
25926
- return function (formattedValue, formatIndex) {
25927
- if (formatIndex >= formatter.formats.length) {
25928
- return formattedValue;
25929
- }
25930
-
25931
- var format = formatter.formats[formatIndex];
25932
- return formattedValue.split("").filter(function (_, i) {
25933
- return !(format[i] != formatter.formatChar);
25934
- }).join("");
25935
- };
25936
- };
25937
- var inject = function inject(baseString) {
25938
- return function (start, end, newString) {
25939
- return baseString.substring(0, start) + newString + baseString.substring(end);
25940
- };
25941
- };
25942
- var formattedToUnformattedIndex = function formattedToUnformattedIndex(formattedIndex, rawValue, formatter) {
25943
- var maxFormatExceeded = rawValue.length >= formatter.formats.length;
25944
-
25945
- if (maxFormatExceeded) {
25946
- return formattedIndex;
25947
- } else {
25948
- var formatString = formatter.formats[rawValue.length];
25949
- var beforeString = formatString.slice(0, formattedIndex);
25950
- return beforeString.split("").filter(function (c) {
25951
- return c === formatter.formatChar;
25952
- }).length;
25953
- }
25954
- };
25955
- var unformattedToFormattedIndex = function unformattedToFormattedIndex(rawIndex, rawValue, formatter, del) {
25956
- var maxFormatExceeded = rawValue.length >= formatter.formats.length; // If forced to stay formatted, offset by delims - 1
25957
- // This is done so the component doesn't assume that any added chars will be kept
25958
- // (i.e. if an external constraint is applied)
25959
-
25960
- if (maxFormatExceeded) {
25961
- var delims = countDelims(formatter, rawValue.length - 1);
25962
- return delims > 0 && !del ? rawIndex + delims - 1 : rawIndex;
25963
- } else {
25964
- return formatter.formats[rawValue.length].split(formatter.formatChar).slice(0, rawIndex).reduce(function (acc, curr) {
25965
- return curr.length + acc;
25966
- }, 0) + rawIndex;
25967
- }
25968
- };
25969
-
25970
- var createFormat = function createFormat(formats, formatChar) {
25971
- return {
25972
- uniqueDelimiters: getUniqueFormatDelimiters(formats, formatChar),
25973
- formats: formats,
25974
- formatChar: formatChar
25975
- };
25976
- };
25977
-
25978
- var FormattedInput = function FormattedInput(_ref) {
25979
- var value = _ref.value,
25980
- formatter = _ref.formatter,
25981
- onChange = _ref.onChange,
25982
- props = _objectWithoutProperties$1(_ref, ["value", "formatter", "onChange"]);
25983
-
25984
- var _useState = useState(format$1(formatter)(value)),
25985
- _useState2 = _slicedToArray$1(_useState, 2),
25986
- formattedValue = _useState2[0],
25987
- setFormattedValue = _useState2[1];
25988
-
25989
- var inputEl = useRef(null);
25990
- var stateRefs = useRef({
25991
- selectionStart: 0,
25992
- selectionEnd: 0,
25993
- isDelete: false,
25994
- rawValue: ''
25995
- });
25996
- useLayoutEffect(function () {
25997
- // A lot of the work here is cursor manipulation
25998
- if (inputEl.current && inputEl.current === document.activeElement) {
25999
- inputEl.current.setSelectionRange(stateRefs.current.selectionStart, stateRefs.current.selectionEnd);
26000
- }
26001
- }, [stateRefs]);
26002
-
26003
- var handleChange = function handleChange(event) {
26004
- var deleteKeyPressed = stateRefs.current.isDelete;
26005
- var maxFormatExceeded = stateRefs.current.rawValue.length >= formatter.formats.length - 1;
26006
-
26007
- if (maxFormatExceeded && !deleteKeyPressed) {
26008
- return;
26009
- }
26010
- /* At the beginning of onChange, event.target.value is a concat of the previous formatted value
26011
- * and an unformatted injection at the start, end, or in the middle (maybe a deletion). To prepare
26012
- * the unformatted value for the user's onChange, the formatted string and unformatted injection need
26013
- * to be separated, then unformat the formatted string, then insert (or delete) the injection from the
26014
- * old unformatted value.
26015
- */
26016
-
26017
-
26018
- var injectionLength = event.target.value.length - formattedValue.length;
26019
- var end = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? stateRefs.current.selectionStart + injectionLength : stateRefs.current.selectionEnd - 1;
26020
- var injection = event.target.value.substring(stateRefs.current.selectionStart, end); // Injection is the new unformatted piece of the input
26021
- // Need to find where to put it
26022
-
26023
- var rawInjectionPointStart = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter);
26024
- var rawInjectionPointEnd = formattedToUnformattedIndex(stateRefs.current.selectionEnd, stateRefs.current.rawValue, formatter); // Unformat the previous formatted value for injection
26025
- // Using the relevant format string, strips away chars not marked with the formatChar
26026
-
26027
- var unformattedOldValue = unformat(formatter)(formattedValue, stateRefs.current.rawValue.length); // Edit the previous unformatted value (either add, update or delete)
26028
-
26029
- var injectIntoOldValue = inject(unformattedOldValue);
26030
- var unformattedNewValue = deleteKeyPressed ? rawInjectionPointStart === rawInjectionPointEnd ? injectIntoOldValue(rawInjectionPointStart - 1, rawInjectionPointStart, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, injection);
26031
- var lengthDifference = unformattedNewValue.length - stateRefs.current.rawValue.length;
26032
- var rawIndex = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter) + lengthDifference; // Find the new cursor position for the potential formatted value
26033
- // Applied by useLayoutEffect
26034
-
26035
- var newFormattedCursorPosition = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? unformattedToFormattedIndex(rawIndex, unformattedNewValue, formatter, deleteKeyPressed) : deleteKeyPressed ? stateRefs.current.selectionStart : stateRefs.current.selectionEnd;
26036
- var formattedNewValue = format$1(formatter)(unformattedNewValue);
26037
- setFormattedValue(formattedNewValue); // Apply the external onChange function to the raw underlying string
26038
- // This is where the user generally updates the input value
26039
-
26040
- if (onChange) {
26041
- onChange(unformattedNewValue);
26042
- }
26043
- };
26044
-
26045
- return React__default.createElement("input", _extends$2({}, props, {
26046
- ref: inputEl,
26047
- value: format$1(formatter)(value),
26048
- onKeyDown: function onKeyDown(event) {
26049
- // Keep track of the state of the input before onChange
26050
- stateRefs.current = {
26051
- isDelete: event.key === "Backspace" || event.key === "Delete",
26052
- selectionStart: event.target.selectionStart,
26053
- selectionEnd: event.target.selectionEnd,
26054
- rawValue: value
26055
- };
26056
- },
26057
- onChange: handleChange
26058
- }));
26059
- };
25459
+ return React__default.createElement("input", _extends$2({}, props, {
25460
+ ref: inputEl,
25461
+ value: format$1(formatter)(value),
25462
+ onKeyDown: function onKeyDown(event) {
25463
+ // Keep track of the state of the input before onChange
25464
+ stateRefs.current = {
25465
+ isDelete: event.key === "Backspace" || event.key === "Delete",
25466
+ selectionStart: event.target.selectionStart,
25467
+ selectionEnd: event.target.selectionEnd,
25468
+ rawValue: value
25469
+ };
25470
+ },
25471
+ onChange: handleChange
25472
+ }));
25473
+ };
26060
25474
 
26061
25475
  var linkColor$2 = {
26062
25476
  "default": "".concat(MATISSE_BLUE),
@@ -26107,7 +25521,7 @@ var hoverFocusStyles$1 = {
26107
25521
  var formFooterPanel = {
26108
25522
  "default": "".concat(INFO_BLUE)
26109
25523
  };
26110
- var fallbackValues$o = {
25524
+ var fallbackValues$m = {
26111
25525
  linkColor: linkColor$2,
26112
25526
  formBackgroundColor: formBackgroundColor$1,
26113
25527
  inputBackgroundColor: inputBackgroundColor$1,
@@ -26364,7 +25778,7 @@ var FormInput = function FormInput(_ref15) {
26364
25778
  padding: "0 0 0 auto"
26365
25779
  }, decorator)));
26366
25780
  };
26367
- var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$o, "default");
25781
+ var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$m, "default");
26368
25782
 
26369
25783
  var _excluded$A = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
26370
25784
  var FormInputRow = function FormInputRow(_ref) {
@@ -26412,7 +25826,7 @@ var FormContainer = function FormContainer(_ref) {
26412
25826
  borderRadius: "4px"
26413
25827
  }, rest), children);
26414
25828
  };
26415
- var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$o, "default");
25829
+ var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$m, "default");
26416
25830
 
26417
25831
  var FormFooterPanel = function FormFooterPanel(_ref) {
26418
25832
  var themeValues = _ref.themeValues,
@@ -26433,7 +25847,7 @@ var FormFooterPanel = function FormFooterPanel(_ref) {
26433
25847
  text: linkText
26434
25848
  })));
26435
25849
  };
26436
- var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$o, "default");
25850
+ var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$m, "default");
26437
25851
 
26438
25852
  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"];
26439
25853
  var TextareaField = styled.textarea.withConfig({
@@ -26569,7 +25983,7 @@ var FormTextarea = function FormTextarea(_ref8) {
26569
25983
  extraStyles: "height: ".concat(themeValues.lineHeight, "; ").concat(errorFieldExtraStyles, ";")
26570
25984
  })));
26571
25985
  };
26572
- var FormTextarea$1 = themeComponent(FormTextarea, "FormTextarea", fallbackValues$o, "default");
25986
+ var FormTextarea$1 = themeComponent(FormTextarea, "FormTextarea", fallbackValues$m, "default");
26573
25987
 
26574
25988
  var fontSize$7 = {
26575
25989
  "default": "1rem",
@@ -26583,7 +25997,7 @@ var color$9 = {
26583
25997
  "default": "".concat(CHARADE_GREY),
26584
25998
  radio: "".concat(MINESHAFT_GREY)
26585
25999
  };
26586
- var fallbackValues$p = {
26000
+ var fallbackValues$n = {
26587
26001
  fontSize: fontSize$7,
26588
26002
  padding: padding$1,
26589
26003
  color: color$9
@@ -26625,11 +26039,11 @@ var FormattedAddress = function FormattedAddress(_ref) {
26625
26039
  dataQa: "".concat(qaPrefix, "-3")
26626
26040
  }, city, ", ", stateProvince, " ".concat(zip), country ? " ".concat(country) : "")));
26627
26041
  };
26628
- var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$p, "default");
26042
+ var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$n, "default");
26629
26043
 
26630
26044
  var textColor$1 = "".concat(CHARADE_GREY);
26631
26045
  var autopayTextColor = "".concat(REGENT_GREY);
26632
- var fallbackValues$q = {
26046
+ var fallbackValues$o = {
26633
26047
  textColor: textColor$1,
26634
26048
  autopayTextColor: autopayTextColor
26635
26049
  };
@@ -26667,11 +26081,11 @@ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
26667
26081
  extraStyles: "font-style: italic;"
26668
26082
  }, "Autopay Enabled")));
26669
26083
  };
26670
- var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$q);
26084
+ var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$o);
26671
26085
 
26672
26086
  var textColor$2 = "".concat(CHARADE_GREY);
26673
26087
  var autopayTextColor$1 = "".concat(REGENT_GREY);
26674
- var fallbackValues$r = {
26088
+ var fallbackValues$p = {
26675
26089
  textColor: textColor$2,
26676
26090
  autopayTextColor: autopayTextColor$1
26677
26091
  };
@@ -26763,7 +26177,7 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
26763
26177
  extraStyles: "font-style: italic;"
26764
26178
  }, "Autopay Enabled")));
26765
26179
  };
26766
- var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$r);
26180
+ var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$p);
26767
26181
 
26768
26182
  var Hamburger = styled.button.withConfig({
26769
26183
  displayName: "HamburgerButton__Hamburger",
@@ -26844,7 +26258,7 @@ var fontSize$8 = {
26844
26258
  h5: "1.375rem",
26845
26259
  h6: "1.25rem"
26846
26260
  };
26847
- var fallbackValues$s = {
26261
+ var fallbackValues$q = {
26848
26262
  fontFamily: fontFamily$5,
26849
26263
  fontSize: fontSize$8
26850
26264
  };
@@ -26883,7 +26297,7 @@ var Heading = function Heading(_ref) {
26883
26297
  "data-qa": dataQa
26884
26298
  }, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
26885
26299
  };
26886
- var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$s, "h1");
26300
+ var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$q, "h1");
26887
26301
 
26888
26302
  var Image = styled.img.withConfig({
26889
26303
  displayName: "ImageBoxstyled__Image",
@@ -26939,7 +26353,7 @@ var ImageBox = function ImageBox(_ref) {
26939
26353
  };
26940
26354
 
26941
26355
  var color$a = "#15749D";
26942
- var fallbackValues$t = {
26356
+ var fallbackValues$r = {
26943
26357
  color: color$a
26944
26358
  };
26945
26359
 
@@ -27005,7 +26419,7 @@ var Spinner$1 = function Spinner(_ref6) {
27005
26419
  strokeWidth: strokeWidth
27006
26420
  })));
27007
26421
  };
27008
- var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$t);
26422
+ var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$r);
27009
26423
 
27010
26424
  var Jumbo = function Jumbo(_ref) {
27011
26425
  var showButton = _ref.showButton,
@@ -27097,7 +26511,7 @@ var fontWeight$5 = {
27097
26511
  // fontsize Detail regular
27098
26512
  large: "700" // fontsize Title small
27099
26513
  };
27100
- var fallbackValues$u = {
26514
+ var fallbackValues$s = {
27101
26515
  fontWeight: fontWeight$5
27102
26516
  };
27103
26517
 
@@ -27156,7 +26570,7 @@ var LabeledAmount = function LabeledAmount(_ref) {
27156
26570
  var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
27157
26571
  return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
27158
26572
  };
27159
- var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$u, "default");
26573
+ var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$s, "default");
27160
26574
 
27161
26575
  var weightTitle = {
27162
26576
  "default": "600",
@@ -27166,7 +26580,7 @@ var detailVariant = {
27166
26580
  "default": "large",
27167
26581
  small: "small"
27168
26582
  };
27169
- var fallbackValues$v = {
26583
+ var fallbackValues$t = {
27170
26584
  weightTitle: weightTitle,
27171
26585
  detailVariant: detailVariant
27172
26586
  };
@@ -27214,7 +26628,7 @@ var LineItem = function LineItem(_ref) {
27214
26628
  childGap: "0.25rem"
27215
26629
  }, visibleCustomAttrs));
27216
26630
  };
27217
- var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$v, "default");
26631
+ var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$t, "default");
27218
26632
 
27219
26633
  var Loading = function Loading() {
27220
26634
  return /*#__PURE__*/React__default.createElement(Box, {
@@ -27474,7 +26888,7 @@ var height$1 = {
27474
26888
  "default": "3rem",
27475
26889
  large: "192px"
27476
26890
  };
27477
- var fallbackValues$w = {
26891
+ var fallbackValues$u = {
27478
26892
  color: color$b,
27479
26893
  height: height$1
27480
26894
  };
@@ -27616,12 +27030,12 @@ var Placeholder = function Placeholder(_ref4) {
27616
27030
  extraStyles: "padding: 0 0 0 8px; text-align: center;"
27617
27031
  }, text)))))))))));
27618
27032
  };
27619
- var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$w, "default");
27033
+ var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$u, "default");
27620
27034
 
27621
27035
  var backgroundColor$5 = {
27622
27036
  "default": "".concat(WHITE)
27623
27037
  };
27624
- var fallbackValues$x = {
27038
+ var fallbackValues$v = {
27625
27039
  backgroundColor: backgroundColor$5
27626
27040
  };
27627
27041
 
@@ -27648,13 +27062,13 @@ var ProcessingFee = function ProcessingFee(_ref) {
27648
27062
  showQuitLink: false
27649
27063
  }));
27650
27064
  };
27651
- var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$x, "default");
27065
+ var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$v, "default");
27652
27066
 
27653
- var activeColor$7 = MATISSE_BLUE;
27067
+ var activeColor$5 = MATISSE_BLUE;
27654
27068
  var disabledColor$1 = MANATEE_GREY;
27655
27069
  var inactiveBorderColor = GREY_CHATEAU;
27656
- var fallbackValues$y = {
27657
- activeColor: activeColor$7,
27070
+ var fallbackValues$w = {
27071
+ activeColor: activeColor$5,
27658
27072
  disabledColor: disabledColor$1,
27659
27073
  inactiveBorderColor: inactiveBorderColor
27660
27074
  };
@@ -27740,12 +27154,12 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
27740
27154
  borderColor: themeValues.inactiveBorderColor
27741
27155
  }), labelText));
27742
27156
  };
27743
- var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$y);
27157
+ var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$w);
27744
27158
 
27745
- var activeColor$8 = "".concat(MATISSE_BLUE);
27159
+ var activeColor$6 = "".concat(MATISSE_BLUE);
27746
27160
  var inactiveColor$1 = "".concat(STORM_GREY);
27747
- var fallbackValues$z = {
27748
- activeColor: activeColor$8,
27161
+ var fallbackValues$x = {
27162
+ activeColor: activeColor$6,
27749
27163
  inactiveColor: inactiveColor$1
27750
27164
  };
27751
27165
 
@@ -27853,11 +27267,11 @@ var RadioButton$1 = function RadioButton(_ref2) {
27853
27267
  borderRadius: "8px"
27854
27268
  })));
27855
27269
  };
27856
- var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$z);
27270
+ var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$x);
27857
27271
 
27858
27272
  var searchIconColor = WHITE;
27859
27273
  var searchIconBackgroundColor = MATISSE_BLUE;
27860
- var fallbackValues$A = {
27274
+ var fallbackValues$y = {
27861
27275
  searchIconColor: searchIconColor,
27862
27276
  searchIconBackgroundColor: searchIconBackgroundColor
27863
27277
  };
@@ -27955,12 +27369,12 @@ var Search = function Search(_ref) {
27955
27369
  size: 24
27956
27370
  })));
27957
27371
  };
27958
- var Search$1 = themeComponent(Search, "Search", fallbackValues$A);
27372
+ var Search$1 = themeComponent(Search, "Search", fallbackValues$y);
27959
27373
 
27960
27374
  var border$2 = {
27961
27375
  "default": "1px solid #caced8"
27962
27376
  };
27963
- var fallbackValues$B = {
27377
+ var fallbackValues$z = {
27964
27378
  border: border$2
27965
27379
  };
27966
27380
 
@@ -28033,7 +27447,7 @@ var SearchableSelect = function SearchableSelect(_ref) {
28033
27447
  });
28034
27448
  }))));
28035
27449
  };
28036
- var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$B, "default");
27450
+ var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$z, "default");
28037
27451
 
28038
27452
  var borderColor$4 = {
28039
27453
  "default": "".concat(GREY_CHATEAU)
@@ -28041,7 +27455,7 @@ var borderColor$4 = {
28041
27455
  var borderSize = {
28042
27456
  "default": "1px"
28043
27457
  };
28044
- var fallbackValues$C = {
27458
+ var fallbackValues$A = {
28045
27459
  borderColor: borderColor$4,
28046
27460
  borderSize: borderSize
28047
27461
  };
@@ -28059,7 +27473,7 @@ var SolidDivider = function SolidDivider(_ref) {
28059
27473
  borderWidthOverride: "0px 0px ".concat(borderSize || themeValues.borderSize, " 0px")
28060
27474
  });
28061
27475
  };
28062
- var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$C, "default");
27476
+ var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$A, "default");
28063
27477
 
28064
27478
  var placeHolderOptionUS = {
28065
27479
  text: "Please select state",
@@ -38654,7 +38068,7 @@ var white = "".concat(WHITE);
38654
38068
  var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
38655
38069
  var rightLabelStyles = "\n > div {\n flex-direction: row;\n }\n";
38656
38070
  var leftLabelStyles = "\n > div {\n flex-direction: row-reverse;\n }\n";
38657
- var fallbackValues$D = {
38071
+ var fallbackValues$B = {
38658
38072
  onBackground: onBackground,
38659
38073
  disabledBackground: disabledBackground,
38660
38074
  disabledBackgroundLight: disabledBackgroundLight,
@@ -38826,7 +38240,7 @@ var ToggleSwitch = function ToggleSwitch(_ref10) {
38826
38240
  padding: "0"
38827
38241
  }, label))));
38828
38242
  };
38829
- var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$D);
38243
+ var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$B);
38830
38244
 
38831
38245
  var background$2 = "".concat(ATHENS_GREY);
38832
38246
  var white$1 = "".concat(WHITE);
@@ -38873,7 +38287,7 @@ var imageBackgroundColor = INFO_BLUE;
38873
38287
  var headerBackgroundColor = STORM_GREY;
38874
38288
  var headerColor = WHITE;
38875
38289
  var contentBackgroundColor = INFO_BLUE;
38876
- var fallbackValues$E = {
38290
+ var fallbackValues$C = {
38877
38291
  backgroundColor: backgroundColor$6,
38878
38292
  contentBackgroundColor: contentBackgroundColor,
38879
38293
  imageBackgroundColor: imageBackgroundColor,
@@ -38898,7 +38312,7 @@ var CardImage = styled.img.withConfig({
38898
38312
  var titleColor = BRIGHT_GREY;
38899
38313
  var titleWeight = FONT_WEIGHT_BOLD;
38900
38314
  var textColor$3 = BRIGHT_GREY;
38901
- var fallbackValues$F = {
38315
+ var fallbackValues$D = {
38902
38316
  titleColor: titleColor,
38903
38317
  titleWeight: titleWeight,
38904
38318
  textColor: textColor$3
@@ -38943,7 +38357,7 @@ var CardText = function CardText(_ref) {
38943
38357
  color: themeValues.textColor
38944
38358
  }, text))));
38945
38359
  };
38946
- var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$F);
38360
+ var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$D);
38947
38361
 
38948
38362
  var CardHeader = function CardHeader(_ref) {
38949
38363
  var backgroundColor = _ref.backgroundColor,
@@ -39059,14 +38473,14 @@ var Card = function Card(_ref) {
39059
38473
  titleVariant: titleVariant
39060
38474
  }), children)))));
39061
38475
  };
39062
- var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$E);
38476
+ var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$C);
39063
38477
 
39064
38478
  var fontFamily$6 = "Public Sans, sans-serif";
39065
- var activeColor$9 = MATISSE_BLUE;
38479
+ var activeColor$7 = MATISSE_BLUE;
39066
38480
  var linkColor$3 = CHARADE_GREY;
39067
- var fallbackValues$G = {
38481
+ var fallbackValues$E = {
39068
38482
  fontFamily: fontFamily$6,
39069
- activeColor: activeColor$9,
38483
+ activeColor: activeColor$7,
39070
38484
  linkColor: linkColor$3
39071
38485
  };
39072
38486
 
@@ -39093,7 +38507,7 @@ var NavTab = function NavTab(_ref) {
39093
38507
  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 ")
39094
38508
  }, label));
39095
38509
  };
39096
- var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$G);
38510
+ var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$E);
39097
38511
 
39098
38512
  var NavTabs = function NavTabs(_ref) {
39099
38513
  var tabsConfig = _ref.tabsConfig,
@@ -39221,7 +38635,7 @@ var backgroundColor$7 = {
39221
38635
  largeTitle: WHITE,
39222
38636
  small: WHITE
39223
38637
  };
39224
- var fallbackValues$H = {
38638
+ var fallbackValues$F = {
39225
38639
  fontSize: fontSize$9,
39226
38640
  fontWeight: fontWeight$6,
39227
38641
  fontColor: fontColor,
@@ -39301,7 +38715,7 @@ var Module = function Module(_ref) {
39301
38715
  boxShadow: themeValues.boxShadow
39302
38716
  }, children)));
39303
38717
  };
39304
- var Module$1 = /*#__PURE__*/memo(themeComponent(Module, "Module", fallbackValues$H, "default"));
38718
+ var Module$1 = /*#__PURE__*/memo(themeComponent(Module, "Module", fallbackValues$F, "default"));
39305
38719
 
39306
38720
  var WalletName = function WalletName(_ref) {
39307
38721
  var mainText = _ref.mainText,
@@ -40281,7 +39695,7 @@ AddressForm.mapStateToProps = mapStateToProps$1;
40281
39695
  AddressForm.mapDispatchToProps = mapDispatchToProps;
40282
39696
 
40283
39697
  var backgroundColor$8 = "#ebeffb";
40284
- var fallbackValues$I = {
39698
+ var fallbackValues$G = {
40285
39699
  backgroundColor: backgroundColor$8
40286
39700
  };
40287
39701
 
@@ -40330,7 +39744,7 @@ var Banner = function Banner(_ref) {
40330
39744
  extraStyles: isMobile && "> svg { width: 176px; }"
40331
39745
  }, /*#__PURE__*/React__default.createElement(Image, null))));
40332
39746
  };
40333
- var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$I);
39747
+ var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$G);
40334
39748
 
40335
39749
  var ChangePasswordForm = function ChangePasswordForm(_ref) {
40336
39750
  var clearOnDismount = _ref.clearOnDismount,
@@ -40452,177 +39866,510 @@ var formConfig$1 = {
40452
39866
  validators: [required(), matchesField("newPassword")]
40453
39867
  }
40454
39868
  };
40455
- var _createFormState$1 = createFormState(formConfig$1),
40456
- reducer$1 = _createFormState$1.reducer,
40457
- mapStateToProps$2 = _createFormState$1.mapStateToProps,
40458
- mapDispatchToProps$1 = _createFormState$1.mapDispatchToProps;
39869
+ var _createFormState$1 = createFormState(formConfig$1),
39870
+ reducer$1 = _createFormState$1.reducer,
39871
+ mapStateToProps$2 = _createFormState$1.mapStateToProps,
39872
+ mapDispatchToProps$1 = _createFormState$1.mapDispatchToProps;
39873
+
39874
+ ChangePasswordForm.reducer = reducer$1;
39875
+ ChangePasswordForm.mapStateToProps = mapStateToProps$2;
39876
+ ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
39877
+
39878
+ var titleColor$1 = "#292A33";
39879
+ var headingBackgroundColor = "transparent";
39880
+ var bodyBackgroundColor = "transparent";
39881
+ var fallbackValues$H = {
39882
+ titleColor: titleColor$1,
39883
+ headingBackgroundColor: headingBackgroundColor,
39884
+ bodyBackgroundColor: bodyBackgroundColor
39885
+ };
39886
+
39887
+ var CollapsibleSection = function CollapsibleSection(_ref) {
39888
+ var _label$replaceAll;
39889
+ var isOpen = _ref.isOpen,
39890
+ toggleSection = _ref.toggleSection,
39891
+ themeValues = _ref.themeValues,
39892
+ isMobile = _ref.isMobile,
39893
+ supportsTouch = _ref.supportsTouch,
39894
+ title = _ref.title,
39895
+ customPadding = _ref.customPadding,
39896
+ _ref$initiallyOpen = _ref.initiallyOpen,
39897
+ initiallyOpen = _ref$initiallyOpen === void 0 ? true : _ref$initiallyOpen,
39898
+ _ref$openHeight = _ref.openHeight,
39899
+ openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
39900
+ children = _ref.children,
39901
+ _ref$customTitle = _ref.customTitle,
39902
+ customTitle = _ref$customTitle === void 0 ? false : _ref$customTitle,
39903
+ _ref$stackTitle = _ref.stackTitle,
39904
+ stackTitle = _ref$stackTitle === void 0 ? false : _ref$stackTitle,
39905
+ stackTitleContent = _ref.stackTitleContent,
39906
+ _ref$sectionGap = _ref.sectionGap,
39907
+ sectionGap = _ref$sectionGap === void 0 ? "0.5rem" : _ref$sectionGap,
39908
+ _ref$name = _ref.name,
39909
+ name = _ref$name === void 0 ? "" : _ref$name,
39910
+ _ref$index = _ref.index,
39911
+ index = _ref$index === void 0 ? 1 : _ref$index,
39912
+ _ref$extraStyles = _ref.extraStyles,
39913
+ extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles;
39914
+ var handleKeyDown = function handleKeyDown(e) {
39915
+ if (e.keyCode === ENTER) {
39916
+ toggleSection();
39917
+ }
39918
+ };
39919
+ var numChildren = typeof children === "Array" ? children.length : 1;
39920
+ var label = name !== "" ? name : !customTitle ? title : "collapsible section";
39921
+ var id = "".concat(label === null || label === void 0 || (_label$replaceAll = label.replaceAll) === null || _label$replaceAll === void 0 || (_label$replaceAll = _label$replaceAll.call(label, " ", "-")) === null || _label$replaceAll === void 0 ? void 0 : _label$replaceAll.toLowerCase(), "-").concat(index);
39922
+ var wrapper = {
39923
+ open: {
39924
+ height: openHeight,
39925
+ transition: {
39926
+ duration: 0.3,
39927
+ ease: [0.04, 0.62, 0.23, 0.98],
39928
+ staggerChildren: 0.15
39929
+ }
39930
+ },
39931
+ closed: {
39932
+ height: 0,
39933
+ transition: {
39934
+ duration: 0.3,
39935
+ ease: [0.04, 0.62, 0.23, 0.98],
39936
+ staggerChildren: 0.15,
39937
+ staggerDirection: -1,
39938
+ delay: numChildren * 0.35
39939
+ }
39940
+ }
39941
+ };
39942
+ var icon = {
39943
+ open: {
39944
+ rotate: "90deg"
39945
+ },
39946
+ closed: {
39947
+ rotate: "0deg"
39948
+ }
39949
+ };
39950
+ return /*#__PURE__*/React__default.createElement(Motion, {
39951
+ padding: "0",
39952
+ hoverStyles: "outline: none;",
39953
+ animate: isOpen ? "open" : "closed",
39954
+ positionTransition: true
39955
+ }, stackTitle && /*#__PURE__*/React__default.createElement(Fragment$1, null, stackTitleContent), /*#__PURE__*/React__default.createElement(Stack, {
39956
+ childGap: isOpen && !isMobile ? sectionGap : "0rem"
39957
+ }, /*#__PURE__*/React__default.createElement(Box, {
39958
+ padding: "0",
39959
+ role: "heading",
39960
+ "aria-label": label,
39961
+ "aria-level": 3
39962
+ }, /*#__PURE__*/React__default.createElement(Box, {
39963
+ padding: customPadding ? customPadding : "0",
39964
+ background: themeValues.headingBackgroundColor,
39965
+ onClick: isMobile && supportsTouch ? noop$1 : toggleSection,
39966
+ onTouchEnd: isMobile && supportsTouch ? toggleSection : noop$1,
39967
+ key: "header",
39968
+ hoverStyles: "cursor: pointer;",
39969
+ tabIndex: "0",
39970
+ onKeyDown: handleKeyDown,
39971
+ extraStyles: "z-index: 25; ".concat(extraStyles),
39972
+ role: "button",
39973
+ "aria-expanded": isOpen.toString(),
39974
+ "aria-controls": id,
39975
+ id: "".concat(id, "-button")
39976
+ }, /*#__PURE__*/React__default.createElement(Cluster, {
39977
+ justify: "space-between",
39978
+ align: "center"
39979
+ }, customTitle ? /*#__PURE__*/React__default.createElement(Box, {
39980
+ width: "calc(100% - 36px)",
39981
+ padding: "0px"
39982
+ }, title) : /*#__PURE__*/React__default.createElement(Title$1, {
39983
+ weight: FONT_WEIGHT_SEMIBOLD,
39984
+ color: themeValues.titleColor,
39985
+ as: "h6",
39986
+ variant: "small"
39987
+ }, title), /*#__PURE__*/React__default.createElement(Motion, {
39988
+ variants: icon,
39989
+ extraStyles: "display: flex; align-items: center;"
39990
+ }, /*#__PURE__*/React__default.createElement(ChevronIcon$1, null))))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
39991
+ initial: false
39992
+ }, isOpen && /*#__PURE__*/React__default.createElement(Motion, {
39993
+ padding: "0",
39994
+ background: themeValues.bodyBackgroundColor,
39995
+ key: "content",
39996
+ positionTransition: true,
39997
+ initial: initiallyOpen ? "open" : "closed",
39998
+ exit: "closed",
39999
+ variants: wrapper,
40000
+ extraStyles: "transform-origin: 100% 0; overflow-y: hidden;",
40001
+ id: "".concat(id, "-content"),
40002
+ role: "region",
40003
+ "aria-labelledby": "".concat(id, "-button")
40004
+ }, children))));
40005
+ };
40006
+ var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$H);
40007
+
40008
+ var ClipboardIcon = function ClipboardIcon(_ref) {
40009
+ var themeValues = _ref.themeValues;
40010
+ return /*#__PURE__*/React__default.createElement("svg", {
40011
+ width: "24",
40012
+ height: "24",
40013
+ viewBox: "0 0 24 24",
40014
+ fill: "none",
40015
+ xmlns: "http://www.w3.org/2000/svg"
40016
+ }, /*#__PURE__*/React__default.createElement("mask", {
40017
+ id: "mask0_1104_623",
40018
+ style: {
40019
+ maskType: "alpha"
40020
+ },
40021
+ maskUnits: "userSpaceOnUse",
40022
+ x: "4",
40023
+ y: "2",
40024
+ width: "16",
40025
+ height: "18"
40026
+ }, /*#__PURE__*/React__default.createElement("path", {
40027
+ fillRule: "evenodd",
40028
+ clipRule: "evenodd",
40029
+ d: "M9.83929 3.43753H14.1607V5.59825H9.83929L9.83929 3.43753ZM8.75893 3.43753C8.75893 2.84087 9.24262 2.35718 9.83929 2.35718H14.1607C14.7574 2.35718 15.2411 2.84087 15.2411 3.43753V5.59825C15.2411 6.19491 14.7574 6.67861 14.1607 6.67861H9.83929C9.24262 6.67861 8.75893 6.19491 8.75893 5.59825V3.43753ZM6.59821 3.70762H7.94866V5.32816H6.59821C6.29988 5.32816 6.05804 5.57001 6.05804 5.86834V17.4822C6.05804 17.7805 6.29988 18.0224 6.59821 18.0224H17.4018C17.7001 18.0224 17.942 17.7805 17.942 17.4822V5.86834C17.942 5.57001 17.7001 5.32816 17.4018 5.32816H16.0513V3.70762H17.4018C18.5951 3.70762 19.5625 4.67501 19.5625 5.86834V17.4822C19.5625 18.6755 18.5951 19.6429 17.4018 19.6429H6.59821C5.40488 19.6429 4.4375 18.6755 4.4375 17.4822V5.86834C4.4375 4.67501 5.40488 3.70762 6.59821 3.70762Z",
40030
+ fill: themeValues.singleIconColor
40031
+ })), /*#__PURE__*/React__default.createElement("g", {
40032
+ mask: "url(#mask0_1104_623)"
40033
+ }, /*#__PURE__*/React__default.createElement("rect", {
40034
+ width: "24",
40035
+ height: "24",
40036
+ fill: themeValues.singleIconColor
40037
+ })));
40038
+ };
40039
+ var ClipboardIcon$1 = themeComponent(ClipboardIcon, "Icons", fallbackValues$2, "primary");
40040
+
40041
+ /*
40042
+ Hook that assigns a click event listener to the main document element
40043
+ Returns a ref to attach to another element (like an icon/button that triggers a popover)
40044
+ If a click event gets captured by the document and the assigned element isn't the target
40045
+ hook will run whatever handler is passed (eg a function that closes a popover)
40046
+
40047
+ See popover component for implementation
40048
+
40049
+ */
40050
+
40051
+ var useOutsideClickHook = function useOutsideClickHook(handler) {
40052
+ var ref = useRef();
40053
+ useEffect$1(function () {
40054
+ var handleOutsideClick = function handleOutsideClick(e) {
40055
+ if (ref.current && !ref.current.contains(e.target)) {
40056
+ handler();
40057
+ }
40058
+ };
40059
+ document.addEventListener("click", handleOutsideClick, true);
40060
+ return function () {
40061
+ document.removeEventListener("click", handleOutsideClick, true);
40062
+ };
40063
+ }, [ref]);
40064
+ return ref;
40065
+ };
40066
+
40067
+ /*
40068
+ Hook that takes an ID selector for an element on the screen
40069
+ And optionally values for top position, left position, smooth behavior
40070
+ Finds element on screen and scrolls it to the provided coordinates
40071
+
40072
+ (string, number, number, string, number) => undefined;
40073
+ */
40074
+
40075
+ var useScrollTo = function useScrollTo(id) {
40076
+ var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
40077
+ var left = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
40078
+ var behavior = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "auto";
40079
+ var delay = arguments.length > 4 ? arguments[4] : undefined;
40080
+ var scrollItem;
40081
+ if (delay) {
40082
+ setTimeout(function () {
40083
+ var _scrollItem;
40084
+ scrollItem = document.getElementById(id);
40085
+ (_scrollItem = scrollItem) === null || _scrollItem === void 0 || _scrollItem.scrollTo({
40086
+ top: top,
40087
+ left: left,
40088
+ behavior: behavior
40089
+ });
40090
+ }, delay);
40091
+ } else {
40092
+ var _scrollItem2;
40093
+ scrollItem = document.getElementById(id);
40094
+ (_scrollItem2 = scrollItem) === null || _scrollItem2 === void 0 || _scrollItem2.scrollTo({
40095
+ top: top,
40096
+ left: left,
40097
+ behavior: behavior
40098
+ });
40099
+ }
40100
+ };
40101
+
40102
+ var initialToastState = {
40103
+ isOpen: false,
40104
+ variant: "",
40105
+ message: ""
40106
+ };
40107
+ var useToastNotification = function useToastNotification() {
40108
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
40109
+ _ref$timeout = _ref.timeout,
40110
+ timeout = _ref$timeout === void 0 ? 5000 : _ref$timeout;
40111
+ var _useState = useState(initialToastState),
40112
+ _useState2 = _slicedToArray(_useState, 2),
40113
+ toastState = _useState2[0],
40114
+ setToastState = _useState2[1];
40115
+ useEffect$1(function () {
40116
+ if (toastState.isOpen && timeout > 0) {
40117
+ setTimeout(function () {
40118
+ setToastState(initialToastState);
40119
+ }, timeout);
40120
+ }
40121
+ }, [timeout, toastState.isOpen]);
40122
+ var showToast = function showToast(_ref2) {
40123
+ var message = _ref2.message,
40124
+ variant = _ref2.variant;
40125
+ return setToastState({
40126
+ isOpen: true,
40127
+ variant: variant,
40128
+ message: message
40129
+ });
40130
+ };
40131
+ var hideToast = function hideToast() {
40132
+ return setToastState(initialToastState);
40133
+ };
40134
+ return {
40135
+ isToastOpen: toastState.isOpen,
40136
+ toastVariant: toastState.variant,
40137
+ toastMessage: toastState.message,
40138
+ showToast: showToast,
40139
+ hideToast: hideToast
40140
+ };
40141
+ };
40142
+
40143
+ function useConditionallyAddValidator(condition, validatorFn, addValidator, removeValidator) {
40144
+ useEffect$1(function () {
40145
+ if (condition) {
40146
+ addValidator(validatorFn());
40147
+ }
40148
+ return function () {
40149
+ // Remove validator when component unmounts
40150
+ removeValidator(validatorFn());
40151
+ };
40152
+ }, [condition, addValidator, removeValidator]);
40153
+ }
40154
+
40155
+ /**
40156
+ * A custom hook to dynamically load the Cloudflare Turnstile script.
40157
+ *
40158
+ * @param {string} verifyURL - The URL of the Turnstile verification script.
40159
+ */
40160
+ var useTurnstileScript = function useTurnstileScript(verifyURL) {
40161
+ var _useState = useState(false),
40162
+ _useState2 = _slicedToArray(_useState, 2),
40163
+ scriptLoaded = _useState2[0],
40164
+ setScriptLoaded = _useState2[1];
40165
+ var _useState3 = useState(false),
40166
+ _useState4 = _slicedToArray(_useState3, 2),
40167
+ scriptError = _useState4[0],
40168
+ setScriptError = _useState4[1];
40169
+ var handleScriptError = function handleScriptError() {
40170
+ setScriptError(true);
40171
+ setScriptLoaded(false);
40172
+ };
40173
+ useEffect$1(function () {
40174
+ if (typeof window === "undefined") {
40175
+ setScriptLoaded(false);
40176
+ return;
40177
+ }
40178
+ if (window.turnstile && window.turnstile.render) {
40179
+ setScriptLoaded(true);
40180
+ return;
40181
+ }
40182
+ var script = document.createElement("script");
40183
+ script.src = "".concat(verifyURL, "?render=explicit");
40184
+ script.onload = function () {
40185
+ setScriptLoaded(true);
40186
+ };
40187
+ script.onerror = function () {
40188
+ handleScriptError();
40189
+ };
40190
+ script.onabort = function () {
40191
+ handleScriptError();
40192
+ };
40193
+ script.defer = true;
40194
+ document.getElementsByTagName("head")[0].appendChild(script);
40195
+ return function () {
40196
+ setScriptLoaded(false);
40197
+ setScriptError(false);
40198
+ };
40199
+ }, [verifyURL]);
40200
+ return {
40201
+ scriptLoaded: scriptLoaded,
40202
+ scriptError: scriptError
40203
+ };
40204
+ };
40459
40205
 
40460
- ChangePasswordForm.reducer = reducer$1;
40461
- ChangePasswordForm.mapStateToProps = mapStateToProps$2;
40462
- ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
40463
40206
 
40464
- var titleColor$1 = "#292A33";
40465
- var headingBackgroundColor = "transparent";
40466
- var bodyBackgroundColor = "transparent";
40467
- var fallbackValues$J = {
40468
- titleColor: titleColor$1,
40469
- headingBackgroundColor: headingBackgroundColor,
40470
- bodyBackgroundColor: bodyBackgroundColor
40207
+
40208
+ var index$1 = /*#__PURE__*/Object.freeze({
40209
+ __proto__: null,
40210
+ useOutsideClick: useOutsideClickHook,
40211
+ useScrollTo: useScrollTo,
40212
+ useToastNotification: useToastNotification,
40213
+ useConditionallyAddValidator: useConditionallyAddValidator,
40214
+ useTurnstileScript: useTurnstileScript
40215
+ });
40216
+
40217
+ var hoverColor$4 = "#116285";
40218
+ var activeColor$8 = "#0E506D";
40219
+ var popoverTriggerColor = "#15749D";
40220
+ var fallbackValues$I = {
40221
+ hoverColor: hoverColor$4,
40222
+ activeColor: activeColor$8,
40223
+ popoverTriggerColor: popoverTriggerColor
40471
40224
  };
40472
40225
 
40473
- var CollapsibleSection = function CollapsibleSection(_ref) {
40474
- var _label$replaceAll;
40475
- var isOpen = _ref.isOpen,
40476
- toggleSection = _ref.toggleSection,
40477
- themeValues = _ref.themeValues,
40478
- isMobile = _ref.isMobile,
40479
- supportsTouch = _ref.supportsTouch,
40480
- title = _ref.title,
40481
- customPadding = _ref.customPadding,
40482
- _ref$initiallyOpen = _ref.initiallyOpen,
40483
- initiallyOpen = _ref$initiallyOpen === void 0 ? true : _ref$initiallyOpen,
40484
- _ref$openHeight = _ref.openHeight,
40485
- openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
40486
- children = _ref.children,
40487
- _ref$customTitle = _ref.customTitle,
40488
- customTitle = _ref$customTitle === void 0 ? false : _ref$customTitle,
40489
- _ref$stackTitle = _ref.stackTitle,
40490
- stackTitle = _ref$stackTitle === void 0 ? false : _ref$stackTitle,
40491
- stackTitleContent = _ref.stackTitleContent,
40492
- _ref$sectionGap = _ref.sectionGap,
40493
- sectionGap = _ref$sectionGap === void 0 ? "0.5rem" : _ref$sectionGap,
40494
- _ref$name = _ref.name,
40495
- name = _ref$name === void 0 ? "" : _ref$name,
40496
- _ref$index = _ref.index,
40497
- index = _ref$index === void 0 ? 1 : _ref$index,
40498
- _ref$extraStyles = _ref.extraStyles,
40499
- extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles;
40500
- var handleKeyDown = function handleKeyDown(e) {
40501
- if (e.keyCode === ENTER) {
40502
- toggleSection();
40226
+ var arrowBorder = function arrowBorder(borderColor, direction) {
40227
+ var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
40228
+ var angle = "".concat(width, " solid transparent");
40229
+ var straight = "".concat(width, " solid ").concat(borderColor);
40230
+ if (direction == "down") {
40231
+ return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
40232
+ } else if (direction == "up") {
40233
+ return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
40234
+ } else if (direction == "left") {
40235
+ return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
40236
+ } else if (direction == "right") {
40237
+ return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
40238
+ }
40239
+ };
40240
+ var Popover = function Popover(_ref) {
40241
+ var themeValues = _ref.themeValues,
40242
+ _ref$triggerText = _ref.triggerText,
40243
+ triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
40244
+ _ref$content = _ref.content,
40245
+ content = _ref$content === void 0 ? "" : _ref$content,
40246
+ _ref$hasIcon = _ref.hasIcon,
40247
+ hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
40248
+ Icon = _ref.icon,
40249
+ _ref$iconHelpText = _ref.iconHelpText,
40250
+ iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
40251
+ _ref$popoverID = _ref.popoverID,
40252
+ popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
40253
+ _ref$popoverFocus = _ref.popoverFocus,
40254
+ popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
40255
+ extraStyles = _ref.extraStyles,
40256
+ textExtraStyles = _ref.textExtraStyles,
40257
+ _ref$minWidth = _ref.minWidth,
40258
+ minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
40259
+ _ref$maxWidth = _ref.maxWidth,
40260
+ maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
40261
+ _ref$height = _ref.height,
40262
+ height = _ref$height === void 0 ? "auto" : _ref$height,
40263
+ position = _ref.position,
40264
+ arrowPosition = _ref.arrowPosition,
40265
+ _ref$arrowDirection = _ref.arrowDirection,
40266
+ arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
40267
+ _ref$transform = _ref.transform,
40268
+ transform = _ref$transform === void 0 ? "none" : _ref$transform,
40269
+ buttonExtraStyles = _ref.buttonExtraStyles,
40270
+ _ref$backgroundColor = _ref.backgroundColor,
40271
+ backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
40272
+ _ref$borderColor = _ref.borderColor,
40273
+ borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
40274
+ popoverExtraStyles = _ref.popoverExtraStyles;
40275
+ var hoverColor = themeValues.hoverColor,
40276
+ activeColor = themeValues.activeColor,
40277
+ popoverTriggerColor = themeValues.popoverTriggerColor;
40278
+ var _ref2 = position !== null && position !== void 0 ? position : {},
40279
+ _ref2$top = _ref2.top,
40280
+ top = _ref2$top === void 0 ? "-110px" : _ref2$top,
40281
+ _ref2$right = _ref2.right,
40282
+ right = _ref2$right === void 0 ? "auto" : _ref2$right,
40283
+ _ref2$bottom = _ref2.bottom,
40284
+ bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
40285
+ _ref2$left = _ref2.left,
40286
+ left = _ref2$left === void 0 ? "-225px" : _ref2$left;
40287
+ var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
40288
+ _ref3$arrowTop = _ref3.arrowTop,
40289
+ arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
40290
+ _ref3$arrowRight = _ref3.arrowRight,
40291
+ arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
40292
+ _ref3$arrowBottom = _ref3.arrowBottom,
40293
+ arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
40294
+ _ref3$arrowLeft = _ref3.arrowLeft,
40295
+ arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
40296
+ var _useState = useState(false),
40297
+ _useState2 = _slicedToArray(_useState, 2),
40298
+ popoverOpen = _useState2[0],
40299
+ togglePopover = _useState2[1];
40300
+ var handleTogglePopover = function handleTogglePopover(popoverState) {
40301
+ if (popoverOpen !== popoverState) {
40302
+ togglePopover(popoverState);
40503
40303
  }
40504
40304
  };
40505
- var numChildren = typeof children === "Array" ? children.length : 1;
40506
- var label = name !== "" ? name : !customTitle ? title : "collapsible section";
40507
- var id = "".concat(label === null || label === void 0 || (_label$replaceAll = label.replaceAll) === null || _label$replaceAll === void 0 || (_label$replaceAll = _label$replaceAll.call(label, " ", "-")) === null || _label$replaceAll === void 0 ? void 0 : _label$replaceAll.toLowerCase(), "-").concat(index);
40508
- var wrapper = {
40509
- open: {
40510
- height: openHeight,
40511
- transition: {
40512
- duration: 0.3,
40513
- ease: [0.04, 0.62, 0.23, 0.98],
40514
- staggerChildren: 0.15
40515
- }
40305
+ var triggerRef = useOutsideClickHook(function () {
40306
+ return handleTogglePopover(false);
40307
+ });
40308
+ return /*#__PURE__*/React__default.createElement(Box, {
40309
+ padding: "0",
40310
+ extraStyles: "position: relative; ".concat(extraStyles)
40311
+ }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
40312
+ action: function action() {
40313
+ return noop$1;
40516
40314
  },
40517
- closed: {
40518
- height: 0,
40519
- transition: {
40520
- duration: 0.3,
40521
- ease: [0.04, 0.62, 0.23, 0.98],
40522
- staggerChildren: 0.15,
40523
- staggerDirection: -1,
40524
- delay: numChildren * 0.35
40315
+ onFocus: function onFocus() {
40316
+ handleTogglePopover(true);
40317
+ },
40318
+ onBlur: function onBlur() {
40319
+ handleTogglePopover(false);
40320
+ },
40321
+ onKeyDown: function onKeyDown(e) {
40322
+ if (e.keyCode === ESCAPE) {
40323
+ handleTogglePopover(false);
40525
40324
  }
40526
- }
40527
- };
40528
- var icon = {
40529
- open: {
40530
- rotate: "90deg"
40531
40325
  },
40532
- closed: {
40533
- rotate: "0deg"
40534
- }
40535
- };
40536
- return /*#__PURE__*/React__default.createElement(Motion, {
40537
- padding: "0",
40538
- hoverStyles: "outline: none;",
40539
- animate: isOpen ? "open" : "closed",
40540
- positionTransition: true
40541
- }, stackTitle && /*#__PURE__*/React__default.createElement(Fragment$1, null, stackTitleContent), /*#__PURE__*/React__default.createElement(Stack, {
40542
- childGap: isOpen && !isMobile ? sectionGap : "0rem"
40543
- }, /*#__PURE__*/React__default.createElement(Box, {
40544
- padding: "0",
40545
- role: "heading",
40546
- "aria-label": label,
40547
- "aria-level": 3
40548
- }, /*#__PURE__*/React__default.createElement(Box, {
40549
- padding: customPadding ? customPadding : "0",
40550
- background: themeValues.headingBackgroundColor,
40551
- onClick: isMobile && supportsTouch ? noop$1 : toggleSection,
40552
- onTouchEnd: isMobile && supportsTouch ? toggleSection : noop$1,
40553
- key: "header",
40554
- hoverStyles: "cursor: pointer;",
40555
- tabIndex: "0",
40556
- onKeyDown: handleKeyDown,
40557
- extraStyles: "z-index: 25; ".concat(extraStyles),
40558
- role: "button",
40559
- "aria-expanded": isOpen.toString(),
40560
- "aria-controls": id,
40561
- id: "".concat(id, "-button")
40562
- }, /*#__PURE__*/React__default.createElement(Cluster, {
40563
- justify: "space-between",
40564
- align: "center"
40565
- }, customTitle ? /*#__PURE__*/React__default.createElement(Box, {
40566
- width: "calc(100% - 36px)",
40567
- padding: "0px"
40568
- }, title) : /*#__PURE__*/React__default.createElement(Title$1, {
40569
- weight: FONT_WEIGHT_SEMIBOLD,
40570
- color: themeValues.titleColor,
40571
- as: "h6",
40572
- variant: "small"
40573
- }, title), /*#__PURE__*/React__default.createElement(Motion, {
40574
- variants: icon,
40575
- extraStyles: "display: flex; align-items: center;"
40576
- }, /*#__PURE__*/React__default.createElement(ChevronIcon$1, null))))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
40577
- initial: false
40578
- }, isOpen && /*#__PURE__*/React__default.createElement(Motion, {
40579
- padding: "0",
40580
- background: themeValues.bodyBackgroundColor,
40581
- key: "content",
40582
- positionTransition: true,
40583
- initial: initiallyOpen ? "open" : "closed",
40584
- exit: "closed",
40585
- variants: wrapper,
40586
- extraStyles: "transform-origin: 100% 0; overflow-y: hidden;",
40587
- id: "".concat(id, "-content"),
40588
- role: "region",
40589
- "aria-labelledby": "".concat(id, "-button")
40590
- }, children))));
40591
- };
40592
- var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$J);
40593
-
40594
- var ClipboardIcon = function ClipboardIcon(_ref) {
40595
- var themeValues = _ref.themeValues;
40596
- return /*#__PURE__*/React__default.createElement("svg", {
40597
- width: "24",
40598
- height: "24",
40599
- viewBox: "0 0 24 24",
40600
- fill: "none",
40601
- xmlns: "http://www.w3.org/2000/svg"
40602
- }, /*#__PURE__*/React__default.createElement("mask", {
40603
- id: "mask0_1104_623",
40604
- style: {
40605
- maskType: "alpha"
40326
+ onTouchStart: function onTouchStart() {
40327
+ return handleTogglePopover(true);
40606
40328
  },
40607
- maskUnits: "userSpaceOnUse",
40608
- x: "4",
40609
- y: "2",
40610
- width: "16",
40611
- height: "18"
40612
- }, /*#__PURE__*/React__default.createElement("path", {
40613
- fillRule: "evenodd",
40614
- clipRule: "evenodd",
40615
- d: "M9.83929 3.43753H14.1607V5.59825H9.83929L9.83929 3.43753ZM8.75893 3.43753C8.75893 2.84087 9.24262 2.35718 9.83929 2.35718H14.1607C14.7574 2.35718 15.2411 2.84087 15.2411 3.43753V5.59825C15.2411 6.19491 14.7574 6.67861 14.1607 6.67861H9.83929C9.24262 6.67861 8.75893 6.19491 8.75893 5.59825V3.43753ZM6.59821 3.70762H7.94866V5.32816H6.59821C6.29988 5.32816 6.05804 5.57001 6.05804 5.86834V17.4822C6.05804 17.7805 6.29988 18.0224 6.59821 18.0224H17.4018C17.7001 18.0224 17.942 17.7805 17.942 17.4822V5.86834C17.942 5.57001 17.7001 5.32816 17.4018 5.32816H16.0513V3.70762H17.4018C18.5951 3.70762 19.5625 4.67501 19.5625 5.86834V17.4822C19.5625 18.6755 18.5951 19.6429 17.4018 19.6429H6.59821C5.40488 19.6429 4.4375 18.6755 4.4375 17.4822V5.86834C4.4375 4.67501 5.40488 3.70762 6.59821 3.70762Z",
40616
- fill: themeValues.singleIconColor
40617
- })), /*#__PURE__*/React__default.createElement("g", {
40618
- mask: "url(#mask0_1104_623)"
40619
- }, /*#__PURE__*/React__default.createElement("rect", {
40620
- width: "24",
40621
- height: "24",
40622
- fill: themeValues.singleIconColor
40329
+ onTouchEnd: function onTouchEnd() {
40330
+ return handleTogglePopover(false);
40331
+ },
40332
+ onMouseEnter: function onMouseEnter() {
40333
+ return handleTogglePopover(true);
40334
+ },
40335
+ onMouseLeave: function onMouseLeave() {
40336
+ return handleTogglePopover(false);
40337
+ },
40338
+ contentOverride: true,
40339
+ variant: "smallGhost",
40340
+ tabIndex: "0",
40341
+ id: "btnPopover".concat(popoverID),
40342
+ "aria-expanded": popoverOpen,
40343
+ "aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
40344
+ "aria-describedby": "Disclosure".concat(popoverID),
40345
+ "aria-controls": "Disclosed".concat(popoverID),
40346
+ ref: triggerRef,
40347
+ extraStyles: buttonExtraStyles
40348
+ }, hasIcon && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, null), /*#__PURE__*/React__default.createElement(Box, {
40349
+ padding: "0",
40350
+ srOnly: true
40351
+ }, /*#__PURE__*/React__default.createElement(Text$1, {
40352
+ id: "btnPopover".concat(popoverID, "_info")
40353
+ }, iconHelpText))), !hasIcon && /*#__PURE__*/React__default.createElement(Text$1, {
40354
+ color: popoverTriggerColor,
40355
+ extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
40356
+ }, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
40357
+ background: backgroundColor,
40358
+ borderRadius: "4px",
40359
+ boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
40360
+ id: "Disclosed".concat(popoverID),
40361
+ role: "region",
40362
+ "aria-describedby": "Disclosure".concat(popoverID),
40363
+ tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
40364
+ minWidth: minWidth,
40365
+ maxWidth: maxWidth,
40366
+ 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 ")
40367
+ }, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
40368
+ padding: "0",
40369
+ 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 ")
40623
40370
  })));
40624
40371
  };
40625
- var ClipboardIcon$1 = themeComponent(ClipboardIcon, "Icons", fallbackValues$2, "primary");
40372
+ var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$I);
40626
40373
 
40627
40374
  /*
40628
40375
  This component will render `content` and a clipboard icon.
@@ -41169,7 +40916,7 @@ EmailForm.mapDispatchToProps = mapDispatchToProps$3;
41169
40916
 
41170
40917
  var footerBackgroundColor = BRIGHT_GREY;
41171
40918
  var subfooterBackgroundColor = STORM_GREY;
41172
- var fallbackValues$K = {
40919
+ var fallbackValues$J = {
41173
40920
  footerBackgroundColor: footerBackgroundColor,
41174
40921
  subfooterBackgroundColor: subfooterBackgroundColor
41175
40922
  };
@@ -41200,7 +40947,7 @@ var FooterWithSubfooter = function FooterWithSubfooter(_ref) {
41200
40947
  rightContent: rightSubfooterContent
41201
40948
  }));
41202
40949
  };
41203
- var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$K);
40950
+ var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$J);
41204
40951
 
41205
40952
  var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
41206
40953
  var fields = _ref.fields,
@@ -41247,7 +40994,7 @@ ForgotPasswordForm.mapDispatchToProps = mapDispatchToProps$4;
41247
40994
 
41248
40995
  var textColor$4 = "#ffffff";
41249
40996
  var backgroundColor$9 = "#182848";
41250
- var fallbackValues$L = {
40997
+ var fallbackValues$K = {
41251
40998
  textColor: textColor$4,
41252
40999
  backgroundColor: backgroundColor$9
41253
41000
  };
@@ -41306,7 +41053,7 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
41306
41053
  }, t));
41307
41054
  }), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter))));
41308
41055
  };
41309
- var HighlightTabRow$1 = themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$L);
41056
+ var HighlightTabRow$1 = themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$K);
41310
41057
 
41311
41058
  /** @license React v16.13.1
41312
41059
  * react-is.production.min.js
@@ -45764,7 +45511,7 @@ var activeBackgroundColor$1 = CORNFLOWER_BLUE;
45764
45511
  var backgroundColor$a = LINK_WATER;
45765
45512
  var borderColor$5 = MOON_RAKER;
45766
45513
  var color$c = ROYAL_BLUE_VIVID;
45767
- var fallbackValues$M = {
45514
+ var fallbackValues$L = {
45768
45515
  disabledBackgroundColor: disabledBackgroundColor$1,
45769
45516
  disabledBorderColor: disabledBorderColor$1,
45770
45517
  disabledColor: disabledColor$2,
@@ -45899,7 +45646,7 @@ var LinkCard = function LinkCard(_ref) {
45899
45646
  extraStyles: "margin-right: auto;"
45900
45647
  }), showRight && !!rightContent && rightContent))));
45901
45648
  };
45902
- var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$M, "primary");
45649
+ var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$L, "primary");
45903
45650
 
45904
45651
  var LoginForm = function LoginForm(_ref) {
45905
45652
  var clearOnDismount = _ref.clearOnDismount,
@@ -45971,7 +45718,7 @@ var shadowColor = {
45971
45718
  profile: "#292A33",
45972
45719
  cms: "#292A33"
45973
45720
  };
45974
- var fallbackValues$N = {
45721
+ var fallbackValues$M = {
45975
45722
  backgroundColor: backgroundColor$b,
45976
45723
  shadowColor: shadowColor
45977
45724
  };
@@ -46011,7 +45758,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
46011
45758
  onBlur: onBlur
46012
45759
  }, menuContent));
46013
45760
  };
46014
- var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$N, "profile");
45761
+ var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$M, "profile");
46015
45762
 
46016
45763
  var menuVariants = {
46017
45764
  invisible: {
@@ -46063,7 +45810,7 @@ var NavMenuMobile = function NavMenuMobile(_ref3) {
46063
45810
  background: themeValues.backgroundColor
46064
45811
  }, menuContent));
46065
45812
  };
46066
- var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$N, "profile");
45813
+ var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$M, "profile");
46067
45814
 
46068
45815
  var IconsModule = function IconsModule(_ref) {
46069
45816
  var icon = _ref.icon,
@@ -46676,7 +46423,7 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
46676
46423
  };
46677
46424
 
46678
46425
  var iconColor = ROYAL_BLUE_VIVID;
46679
- var fallbackValues$O = {
46426
+ var fallbackValues$N = {
46680
46427
  iconColor: iconColor
46681
46428
  };
46682
46429
 
@@ -47017,7 +46764,7 @@ var Obligation = function Obligation(_ref) {
47017
46764
  }))));
47018
46765
  return isLoading ? loadingObligation : inactive ? inactiveObligation : activeObligation;
47019
46766
  };
47020
- var Obligation$1 = themeComponent(Obligation, "Obligation", fallbackValues$O);
46767
+ var Obligation$1 = themeComponent(Obligation, "Obligation", fallbackValues$N);
47021
46768
 
47022
46769
  var weightTitle$1 = {
47023
46770
  "default": "600",
@@ -47027,7 +46774,7 @@ var detailVariant$1 = {
47027
46774
  "default": "large",
47028
46775
  small: "small"
47029
46776
  };
47030
- var fallbackValues$P = {
46777
+ var fallbackValues$O = {
47031
46778
  weightTitle: weightTitle$1,
47032
46779
  detailVariant: detailVariant$1
47033
46780
  };
@@ -47084,7 +46831,7 @@ var PartialAmountField = function PartialAmountField(_ref) {
47084
46831
  function arePropsEqual(prevProps, nextProps) {
47085
46832
  return equals(prevProps.errorMessages, nextProps.errorMessages) && equals(prevProps.field, nextProps.field) && equals(prevProps.showErrors, nextProps.showErrors) && equals(prevProps.moneyFormat, nextProps.moneyFormat) && equals(prevProps.lineItem, nextProps.lineItem);
47086
46833
  }
47087
- var PartialAmountField$1 = /*#__PURE__*/React__default.memo(themeComponent(PartialAmountField, "PartialAmountField", fallbackValues$P, "default"), arePropsEqual);
46834
+ var PartialAmountField$1 = /*#__PURE__*/React__default.memo(themeComponent(PartialAmountField, "PartialAmountField", fallbackValues$O, "default"), arePropsEqual);
47088
46835
 
47089
46836
  var PartialAmountForm = function PartialAmountForm(_ref) {
47090
46837
  var _ref$variant = _ref.variant,
@@ -47188,9 +46935,9 @@ var arrowColor = WHITE;
47188
46935
  var numberColor = MATISSE_BLUE;
47189
46936
  var hoverBackgroundColor$2 = ALABASTER_WHITE;
47190
46937
  var activeBackgroundColor$2 = WHITE;
47191
- var activeColor$a = MATISSE_BLUE;
47192
- var fallbackValues$Q = {
47193
- activeColor: activeColor$a,
46938
+ var activeColor$9 = MATISSE_BLUE;
46939
+ var fallbackValues$P = {
46940
+ activeColor: activeColor$9,
47194
46941
  activeBackgroundColor: activeBackgroundColor$2,
47195
46942
  arrowColor: arrowColor,
47196
46943
  hoverBackgroundColor: hoverBackgroundColor$2,
@@ -47383,7 +47130,7 @@ var Pagination = function Pagination(_ref3) {
47383
47130
  buttonWidth: buttonWidth
47384
47131
  }));
47385
47132
  };
47386
- var Pagination$1 = themeComponent(Pagination, "Pagination", fallbackValues$Q);
47133
+ var Pagination$1 = themeComponent(Pagination, "Pagination", fallbackValues$P);
47387
47134
 
47388
47135
  var PaymentButtonBar = function PaymentButtonBar(_ref) {
47389
47136
  var _ref$isForwardButtonD = _ref.isForwardButtonDisabled,
@@ -47484,7 +47231,7 @@ var labeledAmountTotal = {
47484
47231
  "default": "large",
47485
47232
  small: "small"
47486
47233
  };
47487
- var fallbackValues$R = {
47234
+ var fallbackValues$Q = {
47488
47235
  backgroundColor: backgroundColor$c,
47489
47236
  lineItem: lineItem,
47490
47237
  labeledAmountSubtotal: labeledAmountSubtotal,
@@ -47853,7 +47600,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
47853
47600
  isError: isError
47854
47601
  });
47855
47602
  };
47856
- var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$R, "default");
47603
+ var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$Q, "default");
47857
47604
 
47858
47605
  var linkColor$4 = {
47859
47606
  "default": "#3176AA"
@@ -47873,7 +47620,7 @@ var modalLinkHoverFocus = {
47873
47620
  var linkTextDecoration = {
47874
47621
  "default": LINK_TEXT_DECORATION
47875
47622
  };
47876
- var fallbackValues$S = {
47623
+ var fallbackValues$R = {
47877
47624
  linkColor: linkColor$4,
47878
47625
  fontSize: fontSize$a,
47879
47626
  lineHeight: lineHeight$4,
@@ -47937,7 +47684,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
47937
47684
  }, link)
47938
47685
  }));
47939
47686
  };
47940
- var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$S, "default");
47687
+ var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$R, "default");
47941
47688
 
47942
47689
  var backgroundColor$d = {
47943
47690
  "default": "#ffffff",
@@ -47972,7 +47719,7 @@ var modalLinkTextDecoration = {
47972
47719
  "default": LINK_TEXT_DECORATION,
47973
47720
  footer: "none"
47974
47721
  };
47975
- var fallbackValues$T = {
47722
+ var fallbackValues$S = {
47976
47723
  backgroundColor: backgroundColor$d,
47977
47724
  linkColor: linkColor$5,
47978
47725
  border: border$3,
@@ -48044,7 +47791,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
48044
47791
  className: "modal-trigger"
48045
47792
  }, link));
48046
47793
  };
48047
- var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$T, "default");
47794
+ var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$S, "default");
48048
47795
 
48049
47796
  var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
48050
47797
  var onCheck = _ref.onCheck,
@@ -48816,7 +48563,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
48816
48563
  var bodyBackgroundColor$1 = "#eeeeee";
48817
48564
  var borderColor$6 = "".concat(GHOST_GREY);
48818
48565
  var focusStyles = "outline: none;";
48819
- var fallbackValues$U = {
48566
+ var fallbackValues$T = {
48820
48567
  headingBackgroundColor: headingBackgroundColor$1,
48821
48568
  headingDisabledColor: headingDisabledColor,
48822
48569
  bodyBackgroundColor: bodyBackgroundColor$1,
@@ -49151,9 +48898,9 @@ var RadioSection = function RadioSection(_ref) {
49151
48898
  });
49152
48899
  })));
49153
48900
  };
49154
- var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$U);
48901
+ var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$T);
49155
48902
 
49156
- var fallbackValues$V = {
48903
+ var fallbackValues$U = {
49157
48904
  primaryColor: ROYAL_BLUE_VIVID,
49158
48905
  secondaryColor: CHARADE_GREY
49159
48906
  };
@@ -49264,7 +49011,7 @@ var RegistrationBanner = function RegistrationBanner(_ref) {
49264
49011
  weight: FONT_WEIGHT_SEMIBOLD
49265
49012
  }, "or Log In")))));
49266
49013
  };
49267
- var RegistrationBanner$1 = withWindowSize(themeComponent(RegistrationBanner, "RegistrationBanner", fallbackValues$V));
49014
+ var RegistrationBanner$1 = withWindowSize(themeComponent(RegistrationBanner, "RegistrationBanner", fallbackValues$U));
49268
49015
 
49269
49016
  var RegistrationForm = function RegistrationForm(_ref) {
49270
49017
  var clearOnDismount = _ref.clearOnDismount,
@@ -49384,13 +49131,13 @@ RegistrationForm.mapDispatchToProps = mapDispatchToProps$9;
49384
49131
 
49385
49132
  var GRECIAN_GREY$1 = GRECIAN_GREY;
49386
49133
  var bannerBackgroundColor = GRECIAN_GREY$1;
49387
- var fallbackValues$W = {
49134
+ var fallbackValues$V = {
49388
49135
  bannerBackgroundColor: bannerBackgroundColor
49389
49136
  };
49390
49137
 
49391
49138
  var ResetConfirmationForm = function ResetConfirmationForm() {
49392
49139
  var themeContext = useContext(ThemeContext);
49393
- var themeValues = createThemeValues(themeContext, fallbackValues$W, "ResetConfirmationForm");
49140
+ var themeValues = createThemeValues(themeContext, fallbackValues$V, "ResetConfirmationForm");
49394
49141
  var isMobile = themeContext.isMobile;
49395
49142
  return /*#__PURE__*/React__default.createElement(Box, {
49396
49143
  padding: "0",
@@ -49505,13 +49252,13 @@ ResetPasswordForm.mapDispatchToProps = mapDispatchToProps$a;
49505
49252
 
49506
49253
  var GRECIAN_GREY$2 = GRECIAN_GREY;
49507
49254
  var bannerBackgroundColor$1 = GRECIAN_GREY$2;
49508
- var fallbackValues$X = {
49255
+ var fallbackValues$W = {
49509
49256
  bannerBackgroundColor: bannerBackgroundColor$1
49510
49257
  };
49511
49258
 
49512
49259
  var ResetPasswordSuccess = function ResetPasswordSuccess() {
49513
49260
  var themeContext = useContext(ThemeContext);
49514
- var themeValues = createThemeValues(themeContext, fallbackValues$X, "ResetPasswordSuccess");
49261
+ var themeValues = createThemeValues(themeContext, fallbackValues$W, "ResetPasswordSuccess");
49515
49262
  var isMobile = themeContext.isMobile;
49516
49263
  return /*#__PURE__*/React__default.createElement(Box, {
49517
49264
  padding: "0",
@@ -49560,7 +49307,7 @@ var ResetPasswordSuccess$1 = withWindowSize(ResetPasswordSuccess);
49560
49307
  var activeTabBackground = "#FFFFFF";
49561
49308
  var activeTabAccent = "#15749D";
49562
49309
  var activeTabHover = "#B8D5E1";
49563
- var fallbackValues$Y = {
49310
+ var fallbackValues$X = {
49564
49311
  activeTabBackground: activeTabBackground,
49565
49312
  activeTabAccent: activeTabAccent,
49566
49313
  activeTabHover: activeTabHover
@@ -49655,12 +49402,12 @@ var Tabs = function Tabs(_ref) {
49655
49402
  }, tab.content);
49656
49403
  }))));
49657
49404
  };
49658
- var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$Y);
49405
+ var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$X);
49659
49406
 
49660
49407
  var activeTabBackground$1 = "#FFFFFF";
49661
49408
  var activeTabAccent$1 = "#15749D";
49662
49409
  var activeTabHover$1 = "#B8D5E1";
49663
- var fallbackValues$Z = {
49410
+ var fallbackValues$Y = {
49664
49411
  activeTabBackground: activeTabBackground$1,
49665
49412
  activeTabAccent: activeTabAccent$1,
49666
49413
  activeTabHover: activeTabHover$1
@@ -49719,7 +49466,7 @@ var TabSidebar = function TabSidebar(_ref) {
49719
49466
  }, text)))));
49720
49467
  })));
49721
49468
  };
49722
- var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$Z);
49469
+ var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$Y);
49723
49470
 
49724
49471
  var Timeout = function Timeout(_ref) {
49725
49472
  var onLogout = _ref.onLogout;
@@ -49840,7 +49587,7 @@ var fontColor$1 = WHITE;
49840
49587
  var textAlign$1 = "left";
49841
49588
  var headerBackgroundColor$1 = BRIGHT_GREY;
49842
49589
  var imageBackgroundColor$1 = MATISSE_BLUE;
49843
- var fallbackValues$_ = {
49590
+ var fallbackValues$Z = {
49844
49591
  fontWeight: fontWeight$9,
49845
49592
  fontColor: fontColor$1,
49846
49593
  textAlign: textAlign$1,
@@ -49885,7 +49632,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
49885
49632
  src: welcomeImage
49886
49633
  })))));
49887
49634
  };
49888
- var WelcomeModule$1 = /*#__PURE__*/memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$_));
49635
+ var WelcomeModule$1 = /*#__PURE__*/memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$Z));
49889
49636
 
49890
49637
  var WorkflowTile = function WorkflowTile(_ref) {
49891
49638
  var _ref$workflowName = _ref.workflowName,
@@ -49945,7 +49692,7 @@ var menuItemColorDelete = RAZZMATAZZ_RED;
49945
49692
  var menuItemHoverBackgroundColor = CORNFLOWER_BLUE;
49946
49693
  var menuItemHoverBackgroundColorDelete = BLUSH_RED;
49947
49694
  var menuItemHoverColor = ROYAL_BLUE_VIVID;
49948
- var fallbackValues$$ = {
49695
+ var fallbackValues$_ = {
49949
49696
  menuItemBackgroundColor: menuItemBackgroundColor,
49950
49697
  menuItemColor: menuItemColor,
49951
49698
  menuItemColorDelete: menuItemColorDelete,
@@ -50012,15 +49759,15 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
50012
49759
  extraStyles: textExtraStyles
50013
49760
  }, text)));
50014
49761
  };
50015
- var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$$);
49762
+ var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$_);
50016
49763
 
50017
- var hoverColor$6 = "#116285";
50018
- var activeColor$b = "#0E506D";
49764
+ var hoverColor$5 = "#116285";
49765
+ var activeColor$a = "#0E506D";
50019
49766
  var menuTriggerColor = "#15749D";
50020
49767
  var backgroundColor$e = "white";
50021
- var fallbackValues$10 = {
50022
- hoverColor: hoverColor$6,
50023
- activeColor: activeColor$b,
49768
+ var fallbackValues$$ = {
49769
+ hoverColor: hoverColor$5,
49770
+ activeColor: activeColor$a,
50024
49771
  menuTriggerColor: menuTriggerColor,
50025
49772
  backgroundColor: backgroundColor$e
50026
49773
  };
@@ -50154,13 +49901,13 @@ var PopupMenu = function PopupMenu(_ref) {
50154
49901
  }, item));
50155
49902
  })));
50156
49903
  };
50157
- var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$10);
49904
+ var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$$);
50158
49905
 
50159
49906
  var primaryColor$1 = WHITE;
50160
49907
  var primaryHoverColor = INFO_BLUE;
50161
49908
  var secondaryColor = MATISSE_BLUE;
50162
49909
  var secondaryHoverColor = "#115D7E";
50163
- var fallbackValues$11 = {
49910
+ var fallbackValues$10 = {
50164
49911
  primaryColor: primaryColor$1,
50165
49912
  primaryHoverColor: primaryHoverColor,
50166
49913
  secondaryColor: secondaryColor,
@@ -50862,7 +50609,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
50862
50609
  ariaLabel: "Apply all filters"
50863
50610
  }))));
50864
50611
  };
50865
- var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$11);
50612
+ var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$10);
50866
50613
 
50867
50614
  var TextWrapStyles = css(["word-wrap:break-word;overflow-wrap:break-word;white-space:normal;max-width:100%;"]);
50868
50615
  var Container$1 = styled(Box).withConfig({
@@ -51064,7 +50811,7 @@ var justifyContent = {
51064
50811
  desktop: "center"
51065
50812
  }
51066
50813
  };
51067
- var fallbackValues$12 = {
50814
+ var fallbackValues$11 = {
51068
50815
  // Colors
51069
50816
  heroPrimaryColor: heroPrimaryColor,
51070
50817
  heroTextColor: heroTextColor,
@@ -51271,7 +51018,7 @@ var HeroImage = function HeroImage(_ref) {
51271
51018
  theme: themeValues
51272
51019
  }, description)))));
51273
51020
  };
51274
- var HeroImage$1 = withWindowSize(themeComponent(HeroImage, "HeroImage", fallbackValues$12, "v1"));
51021
+ var HeroImage$1 = withWindowSize(themeComponent(HeroImage, "HeroImage", fallbackValues$11, "v1"));
51275
51022
 
51276
51023
  var TurnstileWidgetContainer = styled(Box).withConfig({
51277
51024
  displayName: "TurnstileWidget__TurnstileWidgetContainer",
@@ -51414,6 +51161,153 @@ var TurnstileWidget = /*#__PURE__*/forwardRef(function (_ref4, ref) {
51414
51161
  }, error)));
51415
51162
  });
51416
51163
 
51164
+ var hoverColor$6 = "#116285";
51165
+ var activeColor$b = "#0E506D";
51166
+ var tooltipTriggerColor = "#15749D";
51167
+ var fallbackValues$12 = {
51168
+ hoverColor: hoverColor$6,
51169
+ activeColor: activeColor$b,
51170
+ tooltipTriggerColor: tooltipTriggerColor
51171
+ };
51172
+
51173
+ var arrowBorder$1 = function arrowBorder(borderColor, direction) {
51174
+ var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
51175
+ var angle = "".concat(width, " solid transparent");
51176
+ var straight = "".concat(width, " solid ").concat(borderColor);
51177
+ if (direction == "down") {
51178
+ return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
51179
+ } else if (direction == "up") {
51180
+ return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
51181
+ } else if (direction == "left") {
51182
+ return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
51183
+ } else if (direction == "right") {
51184
+ return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
51185
+ }
51186
+ };
51187
+ var Tooltip = function Tooltip(_ref) {
51188
+ var themeValues = _ref.themeValues,
51189
+ _ref$triggerText = _ref.triggerText,
51190
+ triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
51191
+ _ref$content = _ref.content,
51192
+ content = _ref$content === void 0 ? "" : _ref$content,
51193
+ _ref$hasIconTrigger = _ref.hasIconTrigger,
51194
+ hasIconTrigger = _ref$hasIconTrigger === void 0 ? false : _ref$hasIconTrigger,
51195
+ _ref$IconTrigger = _ref.IconTrigger,
51196
+ IconTrigger = _ref$IconTrigger === void 0 ? IconAdd : _ref$IconTrigger,
51197
+ _ref$iconHelpText = _ref.iconHelpText,
51198
+ iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
51199
+ _ref$tooltipID = _ref.tooltipID,
51200
+ tooltipID = _ref$tooltipID === void 0 ? 0 : _ref$tooltipID,
51201
+ extraStyles = _ref.extraStyles,
51202
+ _ref$textExtraStyles = _ref.textExtraStyles,
51203
+ textExtraStyles = _ref$textExtraStyles === void 0 ? "" : _ref$textExtraStyles,
51204
+ _ref$minWidth = _ref.minWidth,
51205
+ minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
51206
+ _ref$maxWidth = _ref.maxWidth,
51207
+ maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
51208
+ _ref$height = _ref.height,
51209
+ height = _ref$height === void 0 ? "auto" : _ref$height,
51210
+ position = _ref.position,
51211
+ arrowPosition = _ref.arrowPosition,
51212
+ _ref$arrowDirection = _ref.arrowDirection,
51213
+ arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
51214
+ _ref$transform = _ref.transform,
51215
+ transform = _ref$transform === void 0 ? "none" : _ref$transform,
51216
+ buttonExtraStyles = _ref.buttonExtraStyles,
51217
+ _ref$backgroundColor = _ref.backgroundColor,
51218
+ backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
51219
+ _ref$borderColor = _ref.borderColor,
51220
+ borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
51221
+ tooltipExtraStyles = _ref.tooltipExtraStyles;
51222
+ var hoverColor = themeValues.hoverColor,
51223
+ activeColor = themeValues.activeColor,
51224
+ tooltipTriggerColor = themeValues.tooltipTriggerColor;
51225
+ var _ref2 = position !== null && position !== void 0 ? position : {},
51226
+ _ref2$top = _ref2.top,
51227
+ top = _ref2$top === void 0 ? "-110px" : _ref2$top,
51228
+ _ref2$right = _ref2.right,
51229
+ right = _ref2$right === void 0 ? "auto" : _ref2$right,
51230
+ _ref2$bottom = _ref2.bottom,
51231
+ bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
51232
+ _ref2$left = _ref2.left,
51233
+ left = _ref2$left === void 0 ? "-225px" : _ref2$left;
51234
+ var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
51235
+ _ref3$arrowTop = _ref3.arrowTop,
51236
+ arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
51237
+ _ref3$arrowRight = _ref3.arrowRight,
51238
+ arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
51239
+ _ref3$arrowBottom = _ref3.arrowBottom,
51240
+ arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
51241
+ _ref3$arrowLeft = _ref3.arrowLeft,
51242
+ arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
51243
+ var _useState = useState(false),
51244
+ _useState2 = _slicedToArray(_useState, 2),
51245
+ tooltipOpen = _useState2[0],
51246
+ setTooltipOpen = _useState2[1];
51247
+ var handleToggleTooltip = function handleToggleTooltip(tooltipState) {
51248
+ if (tooltipOpen !== tooltipState) {
51249
+ setTooltipOpen(tooltipState);
51250
+ }
51251
+ };
51252
+ var handleKeyboardEvent = function handleKeyboardEvent(e) {
51253
+ if (e.keyCode === ESCAPE || e.keyCode === 9) {
51254
+ handleToggleTooltip(false);
51255
+ }
51256
+ };
51257
+ return /*#__PURE__*/React__default.createElement(Box, {
51258
+ padding: "0",
51259
+ extraStyles: "position: relative; ".concat(extraStyles)
51260
+ }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
51261
+ action: function action() {
51262
+ return noop$1;
51263
+ },
51264
+ onFocus: function onFocus() {
51265
+ return handleToggleTooltip(true);
51266
+ },
51267
+ onBlur: function onBlur() {
51268
+ return handleToggleTooltip(false);
51269
+ },
51270
+ onKeyDown: handleKeyboardEvent,
51271
+ onTouchStart: function onTouchStart() {
51272
+ return handleToggleTooltip(true);
51273
+ },
51274
+ onTouchEnd: function onTouchEnd() {
51275
+ return handleToggleTooltip(false);
51276
+ },
51277
+ onMouseEnter: function onMouseEnter() {
51278
+ return handleToggleTooltip(true);
51279
+ },
51280
+ onMouseLeave: function onMouseLeave() {
51281
+ return handleToggleTooltip(false);
51282
+ },
51283
+ contentOverride: true,
51284
+ variant: "smallGhost",
51285
+ tabIndex: "0",
51286
+ "aria-describedby": tooltipID,
51287
+ extraStyles: buttonExtraStyles
51288
+ }, hasIconTrigger && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(IconTrigger, {
51289
+ stroke: BLACK
51290
+ }), /*#__PURE__*/React__default.createElement(Box, {
51291
+ padding: "0",
51292
+ srOnly: true
51293
+ }, /*#__PURE__*/React__default.createElement(Text$1, null, iconHelpText))), !hasIconTrigger && /*#__PURE__*/React__default.createElement(Text$1, {
51294
+ extraStyles: textExtraStyles
51295
+ }, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
51296
+ background: backgroundColor,
51297
+ borderRadius: "4px",
51298
+ boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
51299
+ id: tooltipID,
51300
+ role: "tooltip",
51301
+ minWidth: minWidth,
51302
+ maxWidth: maxWidth,
51303
+ extraStyles: "\n display: ".concat(tooltipOpen ? "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(tooltipExtraStyles, ";\n ")
51304
+ }, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
51305
+ padding: "0",
51306
+ extraStyles: "\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n ".concat(arrowBorder$1(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 ")
51307
+ })));
51308
+ };
51309
+ var Tooltip$1 = themeComponent(Tooltip, "Tooltip", fallbackValues$12);
51310
+
51417
51311
  var pageBackground = "#FBFCFD";
51418
51312
  var fallbackValues$13 = {
51419
51313
  pageBackground: pageBackground
@@ -51746,5 +51640,5 @@ var index$2 = /*#__PURE__*/Object.freeze({
51746
51640
  useLogoutTimers: useLogoutTimers
51747
51641
  });
51748
51642
 
51749
- 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, Tooltip$1 as 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 };
51643
+ 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$1 as 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 };
51750
51644
  //# sourceMappingURL=index.esm.js.map