@thecb/components 11.8.0-beta.1 → 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,866 +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
- helpText = _ref.helpText,
25682
- _ref$hasTooltip = _ref.hasTooltip,
25683
- hasTooltip = _ref$hasTooltip === void 0 ? false : _ref$hasTooltip,
25684
- _ref$tooltipTriggerTe = _ref.tooltipTriggerText,
25685
- tooltipTriggerText = _ref$tooltipTriggerTe === void 0 ? "" : _ref$tooltipTriggerTe,
25686
- _ref$tooltipContent = _ref.tooltipContent,
25687
- tooltipContent = _ref$tooltipContent === void 0 ? "" : _ref$tooltipContent,
25688
- _ref$tooltipPosition = _ref.tooltipPosition,
25689
- tooltipPosition = _ref$tooltipPosition === void 0 ? {
25690
- top: "auto",
25691
- bottom: "calc(100% + 0.25rem)",
25692
- left: "auto",
25693
- right: "0"
25694
- } : _ref$tooltipPosition,
25695
- _ref$tooltipArrowPosi = _ref.tooltipArrowPosition,
25696
- tooltipArrowPosition = _ref$tooltipArrowPosi === void 0 ? {
25697
- arrowBottom: "-0.5rem",
25698
- arrowRight: "0.625rem",
25699
- arrowTop: "auto",
25700
- arrowLeft: "auto"
25701
- } : _ref$tooltipArrowPosi,
25702
- tooltipArrowDirection = _ref.tooltipArrowDirection,
25703
- tooltipExtraStyles = _ref.tooltipExtraStyles,
25704
- _ref$tooltipTextExtra = _ref.tooltipTextExtraStyles,
25705
- tooltipTextExtraStyles = _ref$tooltipTextExtra === void 0 ? "max-width: 300px;" : _ref$tooltipTextExtra,
25706
- _ref$hasPopover = _ref.hasPopover,
25707
- hasPopover = _ref$hasPopover === void 0 ? false : _ref$hasPopover,
25708
- _ref$popoverTriggerTe = _ref.popoverTriggerText,
25709
- popoverTriggerText = _ref$popoverTriggerTe === void 0 ? "" : _ref$popoverTriggerTe,
25710
- _ref$popoverContent = _ref.popoverContent,
25711
- popoverContent = _ref$popoverContent === void 0 ? "" : _ref$popoverContent,
25712
- popoverExtraStyles = _ref.popoverExtraStyles,
25713
- popoverTextExtraStyles = _ref.popoverTextExtraStyles;
25714
- return /*#__PURE__*/React__default.createElement(Box, {
25715
- padding: "0 0 16px"
25716
- }, /*#__PURE__*/React__default.createElement(Stack, {
25717
- childGap: "0rem"
25718
- }, /*#__PURE__*/React__default.createElement(Box, {
25719
- padding: "0 0 8px 0"
25720
- }, /*#__PURE__*/React__default.createElement(Cluster, {
25721
- justify: "space-between",
25722
- align: "center",
25723
- overflow: true
25724
- }, /*#__PURE__*/React__default.createElement(Paragraph$1, {
25725
- variant: "pL",
25726
- color: CHARADE_GREY,
25727
- extraStyles: "letter-spacing: 0.29px"
25728
- }, title), hasPopover && /*#__PURE__*/React__default.createElement(Popover$1, {
25729
- triggerText: popoverTriggerText,
25730
- content: popoverContent,
25731
- popoverExtraStyles: popoverExtraStyles,
25732
- popoverTextExtraStyles: popoverTextExtraStyles
25733
- }), hasTooltip && /*#__PURE__*/React__default.createElement(Tooltip$1, {
25734
- triggerText: tooltipTriggerText,
25735
- content: tooltipContent,
25736
- textExtraStyles: tooltipTextExtraStyles,
25737
- position: tooltipPosition,
25738
- arrowPosition: tooltipArrowPosition,
25739
- arrowDirection: tooltipArrowDirection,
25740
- tooltipExtraStyles: tooltipExtraStyles
25741
- }))), /*#__PURE__*/React__default.createElement(Box, {
25742
- padding: "0"
25743
- }, /*#__PURE__*/React__default.createElement(Box, {
25744
- padding: "24px",
25745
- borderSize: "1px",
25746
- borderRadius: "4px",
25747
- background: WHITE,
25748
- boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
25749
- }, /*#__PURE__*/React__default.createElement(Cluster, {
25750
- justify: "space-between",
25751
- align: "center"
25752
- }, /*#__PURE__*/React__default.createElement(Text$1, {
25753
- color: CHARADE_GREY
25754
- }, item), link ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
25755
- text: buttonText,
25756
- url: url,
25757
- variant: "smallGhost",
25758
- dataQa: buttonText,
25759
- extraStyles: "min-width: 0;"
25760
- }) : buttonAction ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
25761
- text: buttonText,
25762
- action: buttonAction,
25763
- variant: "smallGhost",
25764
- dataQa: buttonText,
25765
- extraStyles: "min-width: 0;"
25766
- }) : helpText ? /*#__PURE__*/React__default.createElement(Text$1, {
25767
- color: STORM_GREY,
25768
- extraStyles: "font-style: italic;"
25769
- }, 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
+ };
25770
25390
  };
25771
25391
 
25772
- function _extends$2() {
25773
- _extends$2 = Object.assign || function (target) {
25774
- for (var i = 1; i < arguments.length; i++) {
25775
- 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"]);
25776
25397
 
25777
- for (var key in source) {
25778
- if (Object.prototype.hasOwnProperty.call(source, key)) {
25779
- target[key] = source[key];
25780
- }
25781
- }
25782
- }
25398
+ var _useState = useState(format$1(formatter)(value)),
25399
+ _useState2 = _slicedToArray$1(_useState, 2),
25400
+ formattedValue = _useState2[0],
25401
+ setFormattedValue = _useState2[1];
25783
25402
 
25784
- return target;
25785
- };
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]);
25786
25416
 
25787
- return _extends$2.apply(this, arguments);
25788
- }
25417
+ var handleChange = function handleChange(event) {
25418
+ var deleteKeyPressed = stateRefs.current.isDelete;
25419
+ var maxFormatExceeded = stateRefs.current.rawValue.length >= formatter.formats.length - 1;
25789
25420
 
25790
- function _objectWithoutPropertiesLoose$1(source, excluded) {
25791
- if (source == null) return {};
25792
- var target = {};
25793
- var sourceKeys = Object.keys(source);
25794
- 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
+ */
25795
25430
 
25796
- for (i = 0; i < sourceKeys.length; i++) {
25797
- key = sourceKeys[i];
25798
- if (excluded.indexOf(key) >= 0) continue;
25799
- target[key] = source[key];
25800
- }
25801
25431
 
25802
- return target;
25803
- }
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
25804
25436
 
25805
- function _objectWithoutProperties$1(source, excluded) {
25806
- 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
25807
25440
 
25808
- 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)
25809
25442
 
25810
- 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
25811
25448
 
25812
- if (Object.getOwnPropertySymbols) {
25813
- 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
25814
25453
 
25815
- for (i = 0; i < sourceSymbolKeys.length; i++) {
25816
- key = sourceSymbolKeys[i];
25817
- if (excluded.indexOf(key) >= 0) continue;
25818
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
25819
- target[key] = source[key];
25454
+ if (onChange) {
25455
+ onChange(unformattedNewValue);
25820
25456
  }
25821
- }
25822
-
25823
- return target;
25824
- }
25457
+ };
25825
25458
 
25826
- function _slicedToArray$1(arr, i) {
25827
- return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _nonIterableRest$1();
25828
- }
25829
-
25830
- function _toConsumableArray$1(arr) {
25831
- return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _nonIterableSpread$1();
25832
- }
25833
-
25834
- function _arrayWithoutHoles$1(arr) {
25835
- if (Array.isArray(arr)) {
25836
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
25837
-
25838
- return arr2;
25839
- }
25840
- }
25841
-
25842
- function _arrayWithHoles$1(arr) {
25843
- if (Array.isArray(arr)) return arr;
25844
- }
25845
-
25846
- function _iterableToArray$1(iter) {
25847
- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
25848
- }
25849
-
25850
- function _iterableToArrayLimit$1(arr, i) {
25851
- if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
25852
- return;
25853
- }
25854
-
25855
- var _arr = [];
25856
- var _n = true;
25857
- var _d = false;
25858
- var _e = undefined;
25859
-
25860
- try {
25861
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
25862
- _arr.push(_s.value);
25863
-
25864
- if (i && _arr.length === i) break;
25865
- }
25866
- } catch (err) {
25867
- _d = true;
25868
- _e = err;
25869
- } finally {
25870
- try {
25871
- if (!_n && _i["return"] != null) _i["return"]();
25872
- } finally {
25873
- if (_d) throw _e;
25874
- }
25875
- }
25876
-
25877
- return _arr;
25878
- }
25879
-
25880
- function _nonIterableSpread$1() {
25881
- throw new TypeError("Invalid attempt to spread non-iterable instance");
25882
- }
25883
-
25884
- function _nonIterableRest$1() {
25885
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
25886
- }
25887
-
25888
- var getUniqueFormatDelimiters = function getUniqueFormatDelimiters(formats, formatChar) {
25889
- return _toConsumableArray$1(new Set(formats.join("").split(formatChar).join("").split("")));
25890
- };
25891
- var format$1 = function format(formatter) {
25892
- return function (value) {
25893
- var usedFormat = formatter.formats[value.length];
25894
-
25895
- if (!usedFormat) {
25896
- return value;
25897
- }
25898
-
25899
- var formatPieces = usedFormat.split(formatter.formatChar);
25900
- var valuePieces = value.split("");
25901
- var zipped = formatPieces.map(function (v, i) {
25902
- return v + (valuePieces[i] || "");
25903
- });
25904
- return zipped.join("");
25905
- };
25906
- };
25907
-
25908
- var countDelims = function countDelims(formatter, index) {
25909
- var count = 0;
25910
- var format = formatter.formats[index];
25911
- if (!format) return 0;
25912
- formatter.uniqueDelimiters.forEach(function (delim) {
25913
- return count += format.split(delim).length - 1;
25914
- });
25915
- return count;
25916
- };
25917
-
25918
- var unformat = function unformat(formatter) {
25919
- return function (formattedValue, formatIndex) {
25920
- if (formatIndex >= formatter.formats.length) {
25921
- return formattedValue;
25922
- }
25923
-
25924
- var format = formatter.formats[formatIndex];
25925
- return formattedValue.split("").filter(function (_, i) {
25926
- return !(format[i] != formatter.formatChar);
25927
- }).join("");
25928
- };
25929
- };
25930
- var inject = function inject(baseString) {
25931
- return function (start, end, newString) {
25932
- return baseString.substring(0, start) + newString + baseString.substring(end);
25933
- };
25934
- };
25935
- var formattedToUnformattedIndex = function formattedToUnformattedIndex(formattedIndex, rawValue, formatter) {
25936
- var maxFormatExceeded = rawValue.length >= formatter.formats.length;
25937
-
25938
- if (maxFormatExceeded) {
25939
- return formattedIndex;
25940
- } else {
25941
- var formatString = formatter.formats[rawValue.length];
25942
- var beforeString = formatString.slice(0, formattedIndex);
25943
- return beforeString.split("").filter(function (c) {
25944
- return c === formatter.formatChar;
25945
- }).length;
25946
- }
25947
- };
25948
- var unformattedToFormattedIndex = function unformattedToFormattedIndex(rawIndex, rawValue, formatter, del) {
25949
- var maxFormatExceeded = rawValue.length >= formatter.formats.length; // If forced to stay formatted, offset by delims - 1
25950
- // This is done so the component doesn't assume that any added chars will be kept
25951
- // (i.e. if an external constraint is applied)
25952
-
25953
- if (maxFormatExceeded) {
25954
- var delims = countDelims(formatter, rawValue.length - 1);
25955
- return delims > 0 && !del ? rawIndex + delims - 1 : rawIndex;
25956
- } else {
25957
- return formatter.formats[rawValue.length].split(formatter.formatChar).slice(0, rawIndex).reduce(function (acc, curr) {
25958
- return curr.length + acc;
25959
- }, 0) + rawIndex;
25960
- }
25961
- };
25962
-
25963
- var createFormat = function createFormat(formats, formatChar) {
25964
- return {
25965
- uniqueDelimiters: getUniqueFormatDelimiters(formats, formatChar),
25966
- formats: formats,
25967
- formatChar: formatChar
25968
- };
25969
- };
25970
-
25971
- var FormattedInput = function FormattedInput(_ref) {
25972
- var value = _ref.value,
25973
- formatter = _ref.formatter,
25974
- onChange = _ref.onChange,
25975
- props = _objectWithoutProperties$1(_ref, ["value", "formatter", "onChange"]);
25976
-
25977
- var _useState = useState(format$1(formatter)(value)),
25978
- _useState2 = _slicedToArray$1(_useState, 2),
25979
- formattedValue = _useState2[0],
25980
- setFormattedValue = _useState2[1];
25981
-
25982
- var inputEl = useRef(null);
25983
- var stateRefs = useRef({
25984
- selectionStart: 0,
25985
- selectionEnd: 0,
25986
- isDelete: false,
25987
- rawValue: ''
25988
- });
25989
- useLayoutEffect(function () {
25990
- // A lot of the work here is cursor manipulation
25991
- if (inputEl.current && inputEl.current === document.activeElement) {
25992
- inputEl.current.setSelectionRange(stateRefs.current.selectionStart, stateRefs.current.selectionEnd);
25993
- }
25994
- }, [stateRefs]);
25995
-
25996
- var handleChange = function handleChange(event) {
25997
- var deleteKeyPressed = stateRefs.current.isDelete;
25998
- var maxFormatExceeded = stateRefs.current.rawValue.length >= formatter.formats.length - 1;
25999
-
26000
- if (maxFormatExceeded && !deleteKeyPressed) {
26001
- return;
26002
- }
26003
- /* At the beginning of onChange, event.target.value is a concat of the previous formatted value
26004
- * and an unformatted injection at the start, end, or in the middle (maybe a deletion). To prepare
26005
- * the unformatted value for the user's onChange, the formatted string and unformatted injection need
26006
- * to be separated, then unformat the formatted string, then insert (or delete) the injection from the
26007
- * old unformatted value.
26008
- */
26009
-
26010
-
26011
- var injectionLength = event.target.value.length - formattedValue.length;
26012
- var end = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? stateRefs.current.selectionStart + injectionLength : stateRefs.current.selectionEnd - 1;
26013
- var injection = event.target.value.substring(stateRefs.current.selectionStart, end); // Injection is the new unformatted piece of the input
26014
- // Need to find where to put it
26015
-
26016
- var rawInjectionPointStart = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter);
26017
- var rawInjectionPointEnd = formattedToUnformattedIndex(stateRefs.current.selectionEnd, stateRefs.current.rawValue, formatter); // Unformat the previous formatted value for injection
26018
- // Using the relevant format string, strips away chars not marked with the formatChar
26019
-
26020
- var unformattedOldValue = unformat(formatter)(formattedValue, stateRefs.current.rawValue.length); // Edit the previous unformatted value (either add, update or delete)
26021
-
26022
- var injectIntoOldValue = inject(unformattedOldValue);
26023
- var unformattedNewValue = deleteKeyPressed ? rawInjectionPointStart === rawInjectionPointEnd ? injectIntoOldValue(rawInjectionPointStart - 1, rawInjectionPointStart, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, injection);
26024
- var lengthDifference = unformattedNewValue.length - stateRefs.current.rawValue.length;
26025
- var rawIndex = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter) + lengthDifference; // Find the new cursor position for the potential formatted value
26026
- // Applied by useLayoutEffect
26027
-
26028
- var newFormattedCursorPosition = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? unformattedToFormattedIndex(rawIndex, unformattedNewValue, formatter, deleteKeyPressed) : deleteKeyPressed ? stateRefs.current.selectionStart : stateRefs.current.selectionEnd;
26029
- var formattedNewValue = format$1(formatter)(unformattedNewValue);
26030
- setFormattedValue(formattedNewValue); // Apply the external onChange function to the raw underlying string
26031
- // This is where the user generally updates the input value
26032
-
26033
- if (onChange) {
26034
- onChange(unformattedNewValue);
26035
- }
26036
- };
26037
-
26038
- return React__default.createElement("input", _extends$2({}, props, {
26039
- ref: inputEl,
26040
- value: format$1(formatter)(value),
26041
- onKeyDown: function onKeyDown(event) {
26042
- // Keep track of the state of the input before onChange
26043
- stateRefs.current = {
26044
- isDelete: event.key === "Backspace" || event.key === "Delete",
26045
- selectionStart: event.target.selectionStart,
26046
- selectionEnd: event.target.selectionEnd,
26047
- rawValue: value
26048
- };
26049
- },
26050
- onChange: handleChange
26051
- }));
26052
- };
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
+ };
26053
25474
 
26054
25475
  var linkColor$2 = {
26055
25476
  "default": "".concat(MATISSE_BLUE),
@@ -26100,7 +25521,7 @@ var hoverFocusStyles$1 = {
26100
25521
  var formFooterPanel = {
26101
25522
  "default": "".concat(INFO_BLUE)
26102
25523
  };
26103
- var fallbackValues$o = {
25524
+ var fallbackValues$m = {
26104
25525
  linkColor: linkColor$2,
26105
25526
  formBackgroundColor: formBackgroundColor$1,
26106
25527
  inputBackgroundColor: inputBackgroundColor$1,
@@ -26357,7 +25778,7 @@ var FormInput = function FormInput(_ref15) {
26357
25778
  padding: "0 0 0 auto"
26358
25779
  }, decorator)));
26359
25780
  };
26360
- var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$o, "default");
25781
+ var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$m, "default");
26361
25782
 
26362
25783
  var _excluded$A = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
26363
25784
  var FormInputRow = function FormInputRow(_ref) {
@@ -26405,7 +25826,7 @@ var FormContainer = function FormContainer(_ref) {
26405
25826
  borderRadius: "4px"
26406
25827
  }, rest), children);
26407
25828
  };
26408
- var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$o, "default");
25829
+ var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$m, "default");
26409
25830
 
26410
25831
  var FormFooterPanel = function FormFooterPanel(_ref) {
26411
25832
  var themeValues = _ref.themeValues,
@@ -26426,7 +25847,7 @@ var FormFooterPanel = function FormFooterPanel(_ref) {
26426
25847
  text: linkText
26427
25848
  })));
26428
25849
  };
26429
- var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$o, "default");
25850
+ var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$m, "default");
26430
25851
 
26431
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"];
26432
25853
  var TextareaField = styled.textarea.withConfig({
@@ -26562,7 +25983,7 @@ var FormTextarea = function FormTextarea(_ref8) {
26562
25983
  extraStyles: "height: ".concat(themeValues.lineHeight, "; ").concat(errorFieldExtraStyles, ";")
26563
25984
  })));
26564
25985
  };
26565
- var FormTextarea$1 = themeComponent(FormTextarea, "FormTextarea", fallbackValues$o, "default");
25986
+ var FormTextarea$1 = themeComponent(FormTextarea, "FormTextarea", fallbackValues$m, "default");
26566
25987
 
26567
25988
  var fontSize$7 = {
26568
25989
  "default": "1rem",
@@ -26576,7 +25997,7 @@ var color$9 = {
26576
25997
  "default": "".concat(CHARADE_GREY),
26577
25998
  radio: "".concat(MINESHAFT_GREY)
26578
25999
  };
26579
- var fallbackValues$p = {
26000
+ var fallbackValues$n = {
26580
26001
  fontSize: fontSize$7,
26581
26002
  padding: padding$1,
26582
26003
  color: color$9
@@ -26618,11 +26039,11 @@ var FormattedAddress = function FormattedAddress(_ref) {
26618
26039
  dataQa: "".concat(qaPrefix, "-3")
26619
26040
  }, city, ", ", stateProvince, " ".concat(zip), country ? " ".concat(country) : "")));
26620
26041
  };
26621
- var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$p, "default");
26042
+ var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$n, "default");
26622
26043
 
26623
26044
  var textColor$1 = "".concat(CHARADE_GREY);
26624
26045
  var autopayTextColor = "".concat(REGENT_GREY);
26625
- var fallbackValues$q = {
26046
+ var fallbackValues$o = {
26626
26047
  textColor: textColor$1,
26627
26048
  autopayTextColor: autopayTextColor
26628
26049
  };
@@ -26660,11 +26081,11 @@ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
26660
26081
  extraStyles: "font-style: italic;"
26661
26082
  }, "Autopay Enabled")));
26662
26083
  };
26663
- var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$q);
26084
+ var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$o);
26664
26085
 
26665
26086
  var textColor$2 = "".concat(CHARADE_GREY);
26666
26087
  var autopayTextColor$1 = "".concat(REGENT_GREY);
26667
- var fallbackValues$r = {
26088
+ var fallbackValues$p = {
26668
26089
  textColor: textColor$2,
26669
26090
  autopayTextColor: autopayTextColor$1
26670
26091
  };
@@ -26756,7 +26177,7 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
26756
26177
  extraStyles: "font-style: italic;"
26757
26178
  }, "Autopay Enabled")));
26758
26179
  };
26759
- var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$r);
26180
+ var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$p);
26760
26181
 
26761
26182
  var Hamburger = styled.button.withConfig({
26762
26183
  displayName: "HamburgerButton__Hamburger",
@@ -26837,7 +26258,7 @@ var fontSize$8 = {
26837
26258
  h5: "1.375rem",
26838
26259
  h6: "1.25rem"
26839
26260
  };
26840
- var fallbackValues$s = {
26261
+ var fallbackValues$q = {
26841
26262
  fontFamily: fontFamily$5,
26842
26263
  fontSize: fontSize$8
26843
26264
  };
@@ -26876,7 +26297,7 @@ var Heading = function Heading(_ref) {
26876
26297
  "data-qa": dataQa
26877
26298
  }, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
26878
26299
  };
26879
- var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$s, "h1");
26300
+ var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$q, "h1");
26880
26301
 
26881
26302
  var Image = styled.img.withConfig({
26882
26303
  displayName: "ImageBoxstyled__Image",
@@ -26932,7 +26353,7 @@ var ImageBox = function ImageBox(_ref) {
26932
26353
  };
26933
26354
 
26934
26355
  var color$a = "#15749D";
26935
- var fallbackValues$t = {
26356
+ var fallbackValues$r = {
26936
26357
  color: color$a
26937
26358
  };
26938
26359
 
@@ -26998,7 +26419,7 @@ var Spinner$1 = function Spinner(_ref6) {
26998
26419
  strokeWidth: strokeWidth
26999
26420
  })));
27000
26421
  };
27001
- var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$t);
26422
+ var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$r);
27002
26423
 
27003
26424
  var Jumbo = function Jumbo(_ref) {
27004
26425
  var showButton = _ref.showButton,
@@ -27090,7 +26511,7 @@ var fontWeight$5 = {
27090
26511
  // fontsize Detail regular
27091
26512
  large: "700" // fontsize Title small
27092
26513
  };
27093
- var fallbackValues$u = {
26514
+ var fallbackValues$s = {
27094
26515
  fontWeight: fontWeight$5
27095
26516
  };
27096
26517
 
@@ -27149,7 +26570,7 @@ var LabeledAmount = function LabeledAmount(_ref) {
27149
26570
  var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
27150
26571
  return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
27151
26572
  };
27152
- var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$u, "default");
26573
+ var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$s, "default");
27153
26574
 
27154
26575
  var weightTitle = {
27155
26576
  "default": "600",
@@ -27159,7 +26580,7 @@ var detailVariant = {
27159
26580
  "default": "large",
27160
26581
  small: "small"
27161
26582
  };
27162
- var fallbackValues$v = {
26583
+ var fallbackValues$t = {
27163
26584
  weightTitle: weightTitle,
27164
26585
  detailVariant: detailVariant
27165
26586
  };
@@ -27207,7 +26628,7 @@ var LineItem = function LineItem(_ref) {
27207
26628
  childGap: "0.25rem"
27208
26629
  }, visibleCustomAttrs));
27209
26630
  };
27210
- var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$v, "default");
26631
+ var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$t, "default");
27211
26632
 
27212
26633
  var Loading = function Loading() {
27213
26634
  return /*#__PURE__*/React__default.createElement(Box, {
@@ -27467,7 +26888,7 @@ var height$1 = {
27467
26888
  "default": "3rem",
27468
26889
  large: "192px"
27469
26890
  };
27470
- var fallbackValues$w = {
26891
+ var fallbackValues$u = {
27471
26892
  color: color$b,
27472
26893
  height: height$1
27473
26894
  };
@@ -27609,12 +27030,12 @@ var Placeholder = function Placeholder(_ref4) {
27609
27030
  extraStyles: "padding: 0 0 0 8px; text-align: center;"
27610
27031
  }, text)))))))))));
27611
27032
  };
27612
- var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$w, "default");
27033
+ var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$u, "default");
27613
27034
 
27614
27035
  var backgroundColor$5 = {
27615
27036
  "default": "".concat(WHITE)
27616
27037
  };
27617
- var fallbackValues$x = {
27038
+ var fallbackValues$v = {
27618
27039
  backgroundColor: backgroundColor$5
27619
27040
  };
27620
27041
 
@@ -27641,13 +27062,13 @@ var ProcessingFee = function ProcessingFee(_ref) {
27641
27062
  showQuitLink: false
27642
27063
  }));
27643
27064
  };
27644
- var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$x, "default");
27065
+ var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$v, "default");
27645
27066
 
27646
- var activeColor$7 = MATISSE_BLUE;
27067
+ var activeColor$5 = MATISSE_BLUE;
27647
27068
  var disabledColor$1 = MANATEE_GREY;
27648
27069
  var inactiveBorderColor = GREY_CHATEAU;
27649
- var fallbackValues$y = {
27650
- activeColor: activeColor$7,
27070
+ var fallbackValues$w = {
27071
+ activeColor: activeColor$5,
27651
27072
  disabledColor: disabledColor$1,
27652
27073
  inactiveBorderColor: inactiveBorderColor
27653
27074
  };
@@ -27733,12 +27154,12 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
27733
27154
  borderColor: themeValues.inactiveBorderColor
27734
27155
  }), labelText));
27735
27156
  };
27736
- var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$y);
27157
+ var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$w);
27737
27158
 
27738
- var activeColor$8 = "".concat(MATISSE_BLUE);
27159
+ var activeColor$6 = "".concat(MATISSE_BLUE);
27739
27160
  var inactiveColor$1 = "".concat(STORM_GREY);
27740
- var fallbackValues$z = {
27741
- activeColor: activeColor$8,
27161
+ var fallbackValues$x = {
27162
+ activeColor: activeColor$6,
27742
27163
  inactiveColor: inactiveColor$1
27743
27164
  };
27744
27165
 
@@ -27846,11 +27267,11 @@ var RadioButton$1 = function RadioButton(_ref2) {
27846
27267
  borderRadius: "8px"
27847
27268
  })));
27848
27269
  };
27849
- var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$z);
27270
+ var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$x);
27850
27271
 
27851
27272
  var searchIconColor = WHITE;
27852
27273
  var searchIconBackgroundColor = MATISSE_BLUE;
27853
- var fallbackValues$A = {
27274
+ var fallbackValues$y = {
27854
27275
  searchIconColor: searchIconColor,
27855
27276
  searchIconBackgroundColor: searchIconBackgroundColor
27856
27277
  };
@@ -27948,12 +27369,12 @@ var Search = function Search(_ref) {
27948
27369
  size: 24
27949
27370
  })));
27950
27371
  };
27951
- var Search$1 = themeComponent(Search, "Search", fallbackValues$A);
27372
+ var Search$1 = themeComponent(Search, "Search", fallbackValues$y);
27952
27373
 
27953
27374
  var border$2 = {
27954
27375
  "default": "1px solid #caced8"
27955
27376
  };
27956
- var fallbackValues$B = {
27377
+ var fallbackValues$z = {
27957
27378
  border: border$2
27958
27379
  };
27959
27380
 
@@ -28026,7 +27447,7 @@ var SearchableSelect = function SearchableSelect(_ref) {
28026
27447
  });
28027
27448
  }))));
28028
27449
  };
28029
- var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$B, "default");
27450
+ var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$z, "default");
28030
27451
 
28031
27452
  var borderColor$4 = {
28032
27453
  "default": "".concat(GREY_CHATEAU)
@@ -28034,7 +27455,7 @@ var borderColor$4 = {
28034
27455
  var borderSize = {
28035
27456
  "default": "1px"
28036
27457
  };
28037
- var fallbackValues$C = {
27458
+ var fallbackValues$A = {
28038
27459
  borderColor: borderColor$4,
28039
27460
  borderSize: borderSize
28040
27461
  };
@@ -28052,7 +27473,7 @@ var SolidDivider = function SolidDivider(_ref) {
28052
27473
  borderWidthOverride: "0px 0px ".concat(borderSize || themeValues.borderSize, " 0px")
28053
27474
  });
28054
27475
  };
28055
- var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$C, "default");
27476
+ var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$A, "default");
28056
27477
 
28057
27478
  var placeHolderOptionUS = {
28058
27479
  text: "Please select state",
@@ -38647,7 +38068,7 @@ var white = "".concat(WHITE);
38647
38068
  var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
38648
38069
  var rightLabelStyles = "\n > div {\n flex-direction: row;\n }\n";
38649
38070
  var leftLabelStyles = "\n > div {\n flex-direction: row-reverse;\n }\n";
38650
- var fallbackValues$D = {
38071
+ var fallbackValues$B = {
38651
38072
  onBackground: onBackground,
38652
38073
  disabledBackground: disabledBackground,
38653
38074
  disabledBackgroundLight: disabledBackgroundLight,
@@ -38819,7 +38240,7 @@ var ToggleSwitch = function ToggleSwitch(_ref10) {
38819
38240
  padding: "0"
38820
38241
  }, label))));
38821
38242
  };
38822
- var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$D);
38243
+ var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$B);
38823
38244
 
38824
38245
  var background$2 = "".concat(ATHENS_GREY);
38825
38246
  var white$1 = "".concat(WHITE);
@@ -38866,7 +38287,7 @@ var imageBackgroundColor = INFO_BLUE;
38866
38287
  var headerBackgroundColor = STORM_GREY;
38867
38288
  var headerColor = WHITE;
38868
38289
  var contentBackgroundColor = INFO_BLUE;
38869
- var fallbackValues$E = {
38290
+ var fallbackValues$C = {
38870
38291
  backgroundColor: backgroundColor$6,
38871
38292
  contentBackgroundColor: contentBackgroundColor,
38872
38293
  imageBackgroundColor: imageBackgroundColor,
@@ -38891,7 +38312,7 @@ var CardImage = styled.img.withConfig({
38891
38312
  var titleColor = BRIGHT_GREY;
38892
38313
  var titleWeight = FONT_WEIGHT_BOLD;
38893
38314
  var textColor$3 = BRIGHT_GREY;
38894
- var fallbackValues$F = {
38315
+ var fallbackValues$D = {
38895
38316
  titleColor: titleColor,
38896
38317
  titleWeight: titleWeight,
38897
38318
  textColor: textColor$3
@@ -38936,7 +38357,7 @@ var CardText = function CardText(_ref) {
38936
38357
  color: themeValues.textColor
38937
38358
  }, text))));
38938
38359
  };
38939
- var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$F);
38360
+ var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$D);
38940
38361
 
38941
38362
  var CardHeader = function CardHeader(_ref) {
38942
38363
  var backgroundColor = _ref.backgroundColor,
@@ -39052,14 +38473,14 @@ var Card = function Card(_ref) {
39052
38473
  titleVariant: titleVariant
39053
38474
  }), children)))));
39054
38475
  };
39055
- var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$E);
38476
+ var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$C);
39056
38477
 
39057
38478
  var fontFamily$6 = "Public Sans, sans-serif";
39058
- var activeColor$9 = MATISSE_BLUE;
38479
+ var activeColor$7 = MATISSE_BLUE;
39059
38480
  var linkColor$3 = CHARADE_GREY;
39060
- var fallbackValues$G = {
38481
+ var fallbackValues$E = {
39061
38482
  fontFamily: fontFamily$6,
39062
- activeColor: activeColor$9,
38483
+ activeColor: activeColor$7,
39063
38484
  linkColor: linkColor$3
39064
38485
  };
39065
38486
 
@@ -39086,7 +38507,7 @@ var NavTab = function NavTab(_ref) {
39086
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 ")
39087
38508
  }, label));
39088
38509
  };
39089
- var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$G);
38510
+ var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$E);
39090
38511
 
39091
38512
  var NavTabs = function NavTabs(_ref) {
39092
38513
  var tabsConfig = _ref.tabsConfig,
@@ -39214,7 +38635,7 @@ var backgroundColor$7 = {
39214
38635
  largeTitle: WHITE,
39215
38636
  small: WHITE
39216
38637
  };
39217
- var fallbackValues$H = {
38638
+ var fallbackValues$F = {
39218
38639
  fontSize: fontSize$9,
39219
38640
  fontWeight: fontWeight$6,
39220
38641
  fontColor: fontColor,
@@ -39294,7 +38715,7 @@ var Module = function Module(_ref) {
39294
38715
  boxShadow: themeValues.boxShadow
39295
38716
  }, children)));
39296
38717
  };
39297
- var Module$1 = /*#__PURE__*/memo(themeComponent(Module, "Module", fallbackValues$H, "default"));
38718
+ var Module$1 = /*#__PURE__*/memo(themeComponent(Module, "Module", fallbackValues$F, "default"));
39298
38719
 
39299
38720
  var WalletName = function WalletName(_ref) {
39300
38721
  var mainText = _ref.mainText,
@@ -40274,7 +39695,7 @@ AddressForm.mapStateToProps = mapStateToProps$1;
40274
39695
  AddressForm.mapDispatchToProps = mapDispatchToProps;
40275
39696
 
40276
39697
  var backgroundColor$8 = "#ebeffb";
40277
- var fallbackValues$I = {
39698
+ var fallbackValues$G = {
40278
39699
  backgroundColor: backgroundColor$8
40279
39700
  };
40280
39701
 
@@ -40323,7 +39744,7 @@ var Banner = function Banner(_ref) {
40323
39744
  extraStyles: isMobile && "> svg { width: 176px; }"
40324
39745
  }, /*#__PURE__*/React__default.createElement(Image, null))));
40325
39746
  };
40326
- var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$I);
39747
+ var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$G);
40327
39748
 
40328
39749
  var ChangePasswordForm = function ChangePasswordForm(_ref) {
40329
39750
  var clearOnDismount = _ref.clearOnDismount,
@@ -40445,177 +39866,510 @@ var formConfig$1 = {
40445
39866
  validators: [required(), matchesField("newPassword")]
40446
39867
  }
40447
39868
  };
40448
- var _createFormState$1 = createFormState(formConfig$1),
40449
- reducer$1 = _createFormState$1.reducer,
40450
- mapStateToProps$2 = _createFormState$1.mapStateToProps,
40451
- 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
+ };
40452
40205
 
40453
- ChangePasswordForm.reducer = reducer$1;
40454
- ChangePasswordForm.mapStateToProps = mapStateToProps$2;
40455
- ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
40456
40206
 
40457
- var titleColor$1 = "#292A33";
40458
- var headingBackgroundColor = "transparent";
40459
- var bodyBackgroundColor = "transparent";
40460
- var fallbackValues$J = {
40461
- titleColor: titleColor$1,
40462
- headingBackgroundColor: headingBackgroundColor,
40463
- 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
40464
40224
  };
40465
40225
 
40466
- var CollapsibleSection = function CollapsibleSection(_ref) {
40467
- var _label$replaceAll;
40468
- var isOpen = _ref.isOpen,
40469
- toggleSection = _ref.toggleSection,
40470
- themeValues = _ref.themeValues,
40471
- isMobile = _ref.isMobile,
40472
- supportsTouch = _ref.supportsTouch,
40473
- title = _ref.title,
40474
- customPadding = _ref.customPadding,
40475
- _ref$initiallyOpen = _ref.initiallyOpen,
40476
- initiallyOpen = _ref$initiallyOpen === void 0 ? true : _ref$initiallyOpen,
40477
- _ref$openHeight = _ref.openHeight,
40478
- openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
40479
- children = _ref.children,
40480
- _ref$customTitle = _ref.customTitle,
40481
- customTitle = _ref$customTitle === void 0 ? false : _ref$customTitle,
40482
- _ref$stackTitle = _ref.stackTitle,
40483
- stackTitle = _ref$stackTitle === void 0 ? false : _ref$stackTitle,
40484
- stackTitleContent = _ref.stackTitleContent,
40485
- _ref$sectionGap = _ref.sectionGap,
40486
- sectionGap = _ref$sectionGap === void 0 ? "0.5rem" : _ref$sectionGap,
40487
- _ref$name = _ref.name,
40488
- name = _ref$name === void 0 ? "" : _ref$name,
40489
- _ref$index = _ref.index,
40490
- index = _ref$index === void 0 ? 1 : _ref$index,
40491
- _ref$extraStyles = _ref.extraStyles,
40492
- extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles;
40493
- var handleKeyDown = function handleKeyDown(e) {
40494
- if (e.keyCode === ENTER) {
40495
- 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);
40496
40303
  }
40497
40304
  };
40498
- var numChildren = typeof children === "Array" ? children.length : 1;
40499
- var label = name !== "" ? name : !customTitle ? title : "collapsible section";
40500
- 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);
40501
- var wrapper = {
40502
- open: {
40503
- height: openHeight,
40504
- transition: {
40505
- duration: 0.3,
40506
- ease: [0.04, 0.62, 0.23, 0.98],
40507
- staggerChildren: 0.15
40508
- }
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;
40509
40314
  },
40510
- closed: {
40511
- height: 0,
40512
- transition: {
40513
- duration: 0.3,
40514
- ease: [0.04, 0.62, 0.23, 0.98],
40515
- staggerChildren: 0.15,
40516
- staggerDirection: -1,
40517
- 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);
40518
40324
  }
40519
- }
40520
- };
40521
- var icon = {
40522
- open: {
40523
- rotate: "90deg"
40524
40325
  },
40525
- closed: {
40526
- rotate: "0deg"
40527
- }
40528
- };
40529
- return /*#__PURE__*/React__default.createElement(Motion, {
40530
- padding: "0",
40531
- hoverStyles: "outline: none;",
40532
- animate: isOpen ? "open" : "closed",
40533
- positionTransition: true
40534
- }, stackTitle && /*#__PURE__*/React__default.createElement(Fragment$1, null, stackTitleContent), /*#__PURE__*/React__default.createElement(Stack, {
40535
- childGap: isOpen && !isMobile ? sectionGap : "0rem"
40536
- }, /*#__PURE__*/React__default.createElement(Box, {
40537
- padding: "0",
40538
- role: "heading",
40539
- "aria-label": label,
40540
- "aria-level": 3
40541
- }, /*#__PURE__*/React__default.createElement(Box, {
40542
- padding: customPadding ? customPadding : "0",
40543
- background: themeValues.headingBackgroundColor,
40544
- onClick: isMobile && supportsTouch ? noop$1 : toggleSection,
40545
- onTouchEnd: isMobile && supportsTouch ? toggleSection : noop$1,
40546
- key: "header",
40547
- hoverStyles: "cursor: pointer;",
40548
- tabIndex: "0",
40549
- onKeyDown: handleKeyDown,
40550
- extraStyles: "z-index: 25; ".concat(extraStyles),
40551
- role: "button",
40552
- "aria-expanded": isOpen.toString(),
40553
- "aria-controls": id,
40554
- id: "".concat(id, "-button")
40555
- }, /*#__PURE__*/React__default.createElement(Cluster, {
40556
- justify: "space-between",
40557
- align: "center"
40558
- }, customTitle ? /*#__PURE__*/React__default.createElement(Box, {
40559
- width: "calc(100% - 36px)",
40560
- padding: "0px"
40561
- }, title) : /*#__PURE__*/React__default.createElement(Title$1, {
40562
- weight: FONT_WEIGHT_SEMIBOLD,
40563
- color: themeValues.titleColor,
40564
- as: "h6",
40565
- variant: "small"
40566
- }, title), /*#__PURE__*/React__default.createElement(Motion, {
40567
- variants: icon,
40568
- extraStyles: "display: flex; align-items: center;"
40569
- }, /*#__PURE__*/React__default.createElement(ChevronIcon$1, null))))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
40570
- initial: false
40571
- }, isOpen && /*#__PURE__*/React__default.createElement(Motion, {
40572
- padding: "0",
40573
- background: themeValues.bodyBackgroundColor,
40574
- key: "content",
40575
- positionTransition: true,
40576
- initial: initiallyOpen ? "open" : "closed",
40577
- exit: "closed",
40578
- variants: wrapper,
40579
- extraStyles: "transform-origin: 100% 0; overflow-y: hidden;",
40580
- id: "".concat(id, "-content"),
40581
- role: "region",
40582
- "aria-labelledby": "".concat(id, "-button")
40583
- }, children))));
40584
- };
40585
- var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$J);
40586
-
40587
- var ClipboardIcon = function ClipboardIcon(_ref) {
40588
- var themeValues = _ref.themeValues;
40589
- return /*#__PURE__*/React__default.createElement("svg", {
40590
- width: "24",
40591
- height: "24",
40592
- viewBox: "0 0 24 24",
40593
- fill: "none",
40594
- xmlns: "http://www.w3.org/2000/svg"
40595
- }, /*#__PURE__*/React__default.createElement("mask", {
40596
- id: "mask0_1104_623",
40597
- style: {
40598
- maskType: "alpha"
40326
+ onTouchStart: function onTouchStart() {
40327
+ return handleTogglePopover(true);
40599
40328
  },
40600
- maskUnits: "userSpaceOnUse",
40601
- x: "4",
40602
- y: "2",
40603
- width: "16",
40604
- height: "18"
40605
- }, /*#__PURE__*/React__default.createElement("path", {
40606
- fillRule: "evenodd",
40607
- clipRule: "evenodd",
40608
- 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",
40609
- fill: themeValues.singleIconColor
40610
- })), /*#__PURE__*/React__default.createElement("g", {
40611
- mask: "url(#mask0_1104_623)"
40612
- }, /*#__PURE__*/React__default.createElement("rect", {
40613
- width: "24",
40614
- height: "24",
40615
- 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 ")
40616
40370
  })));
40617
40371
  };
40618
- var ClipboardIcon$1 = themeComponent(ClipboardIcon, "Icons", fallbackValues$2, "primary");
40372
+ var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$I);
40619
40373
 
40620
40374
  /*
40621
40375
  This component will render `content` and a clipboard icon.
@@ -41162,7 +40916,7 @@ EmailForm.mapDispatchToProps = mapDispatchToProps$3;
41162
40916
 
41163
40917
  var footerBackgroundColor = BRIGHT_GREY;
41164
40918
  var subfooterBackgroundColor = STORM_GREY;
41165
- var fallbackValues$K = {
40919
+ var fallbackValues$J = {
41166
40920
  footerBackgroundColor: footerBackgroundColor,
41167
40921
  subfooterBackgroundColor: subfooterBackgroundColor
41168
40922
  };
@@ -41193,7 +40947,7 @@ var FooterWithSubfooter = function FooterWithSubfooter(_ref) {
41193
40947
  rightContent: rightSubfooterContent
41194
40948
  }));
41195
40949
  };
41196
- var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$K);
40950
+ var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$J);
41197
40951
 
41198
40952
  var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
41199
40953
  var fields = _ref.fields,
@@ -41240,7 +40994,7 @@ ForgotPasswordForm.mapDispatchToProps = mapDispatchToProps$4;
41240
40994
 
41241
40995
  var textColor$4 = "#ffffff";
41242
40996
  var backgroundColor$9 = "#182848";
41243
- var fallbackValues$L = {
40997
+ var fallbackValues$K = {
41244
40998
  textColor: textColor$4,
41245
40999
  backgroundColor: backgroundColor$9
41246
41000
  };
@@ -41299,7 +41053,7 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
41299
41053
  }, t));
41300
41054
  }), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter))));
41301
41055
  };
41302
- var HighlightTabRow$1 = themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$L);
41056
+ var HighlightTabRow$1 = themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$K);
41303
41057
 
41304
41058
  /** @license React v16.13.1
41305
41059
  * react-is.production.min.js
@@ -45757,7 +45511,7 @@ var activeBackgroundColor$1 = CORNFLOWER_BLUE;
45757
45511
  var backgroundColor$a = LINK_WATER;
45758
45512
  var borderColor$5 = MOON_RAKER;
45759
45513
  var color$c = ROYAL_BLUE_VIVID;
45760
- var fallbackValues$M = {
45514
+ var fallbackValues$L = {
45761
45515
  disabledBackgroundColor: disabledBackgroundColor$1,
45762
45516
  disabledBorderColor: disabledBorderColor$1,
45763
45517
  disabledColor: disabledColor$2,
@@ -45892,7 +45646,7 @@ var LinkCard = function LinkCard(_ref) {
45892
45646
  extraStyles: "margin-right: auto;"
45893
45647
  }), showRight && !!rightContent && rightContent))));
45894
45648
  };
45895
- var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$M, "primary");
45649
+ var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$L, "primary");
45896
45650
 
45897
45651
  var LoginForm = function LoginForm(_ref) {
45898
45652
  var clearOnDismount = _ref.clearOnDismount,
@@ -45964,7 +45718,7 @@ var shadowColor = {
45964
45718
  profile: "#292A33",
45965
45719
  cms: "#292A33"
45966
45720
  };
45967
- var fallbackValues$N = {
45721
+ var fallbackValues$M = {
45968
45722
  backgroundColor: backgroundColor$b,
45969
45723
  shadowColor: shadowColor
45970
45724
  };
@@ -46004,7 +45758,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
46004
45758
  onBlur: onBlur
46005
45759
  }, menuContent));
46006
45760
  };
46007
- var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$N, "profile");
45761
+ var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$M, "profile");
46008
45762
 
46009
45763
  var menuVariants = {
46010
45764
  invisible: {
@@ -46056,7 +45810,7 @@ var NavMenuMobile = function NavMenuMobile(_ref3) {
46056
45810
  background: themeValues.backgroundColor
46057
45811
  }, menuContent));
46058
45812
  };
46059
- var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$N, "profile");
45813
+ var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$M, "profile");
46060
45814
 
46061
45815
  var IconsModule = function IconsModule(_ref) {
46062
45816
  var icon = _ref.icon,
@@ -46669,7 +46423,7 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
46669
46423
  };
46670
46424
 
46671
46425
  var iconColor = ROYAL_BLUE_VIVID;
46672
- var fallbackValues$O = {
46426
+ var fallbackValues$N = {
46673
46427
  iconColor: iconColor
46674
46428
  };
46675
46429
 
@@ -47010,7 +46764,7 @@ var Obligation = function Obligation(_ref) {
47010
46764
  }))));
47011
46765
  return isLoading ? loadingObligation : inactive ? inactiveObligation : activeObligation;
47012
46766
  };
47013
- var Obligation$1 = themeComponent(Obligation, "Obligation", fallbackValues$O);
46767
+ var Obligation$1 = themeComponent(Obligation, "Obligation", fallbackValues$N);
47014
46768
 
47015
46769
  var weightTitle$1 = {
47016
46770
  "default": "600",
@@ -47020,7 +46774,7 @@ var detailVariant$1 = {
47020
46774
  "default": "large",
47021
46775
  small: "small"
47022
46776
  };
47023
- var fallbackValues$P = {
46777
+ var fallbackValues$O = {
47024
46778
  weightTitle: weightTitle$1,
47025
46779
  detailVariant: detailVariant$1
47026
46780
  };
@@ -47077,7 +46831,7 @@ var PartialAmountField = function PartialAmountField(_ref) {
47077
46831
  function arePropsEqual(prevProps, nextProps) {
47078
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);
47079
46833
  }
47080
- 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);
47081
46835
 
47082
46836
  var PartialAmountForm = function PartialAmountForm(_ref) {
47083
46837
  var _ref$variant = _ref.variant,
@@ -47181,9 +46935,9 @@ var arrowColor = WHITE;
47181
46935
  var numberColor = MATISSE_BLUE;
47182
46936
  var hoverBackgroundColor$2 = ALABASTER_WHITE;
47183
46937
  var activeBackgroundColor$2 = WHITE;
47184
- var activeColor$a = MATISSE_BLUE;
47185
- var fallbackValues$Q = {
47186
- activeColor: activeColor$a,
46938
+ var activeColor$9 = MATISSE_BLUE;
46939
+ var fallbackValues$P = {
46940
+ activeColor: activeColor$9,
47187
46941
  activeBackgroundColor: activeBackgroundColor$2,
47188
46942
  arrowColor: arrowColor,
47189
46943
  hoverBackgroundColor: hoverBackgroundColor$2,
@@ -47376,7 +47130,7 @@ var Pagination = function Pagination(_ref3) {
47376
47130
  buttonWidth: buttonWidth
47377
47131
  }));
47378
47132
  };
47379
- var Pagination$1 = themeComponent(Pagination, "Pagination", fallbackValues$Q);
47133
+ var Pagination$1 = themeComponent(Pagination, "Pagination", fallbackValues$P);
47380
47134
 
47381
47135
  var PaymentButtonBar = function PaymentButtonBar(_ref) {
47382
47136
  var _ref$isForwardButtonD = _ref.isForwardButtonDisabled,
@@ -47477,7 +47231,7 @@ var labeledAmountTotal = {
47477
47231
  "default": "large",
47478
47232
  small: "small"
47479
47233
  };
47480
- var fallbackValues$R = {
47234
+ var fallbackValues$Q = {
47481
47235
  backgroundColor: backgroundColor$c,
47482
47236
  lineItem: lineItem,
47483
47237
  labeledAmountSubtotal: labeledAmountSubtotal,
@@ -47846,7 +47600,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
47846
47600
  isError: isError
47847
47601
  });
47848
47602
  };
47849
- var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$R, "default");
47603
+ var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$Q, "default");
47850
47604
 
47851
47605
  var linkColor$4 = {
47852
47606
  "default": "#3176AA"
@@ -47866,7 +47620,7 @@ var modalLinkHoverFocus = {
47866
47620
  var linkTextDecoration = {
47867
47621
  "default": LINK_TEXT_DECORATION
47868
47622
  };
47869
- var fallbackValues$S = {
47623
+ var fallbackValues$R = {
47870
47624
  linkColor: linkColor$4,
47871
47625
  fontSize: fontSize$a,
47872
47626
  lineHeight: lineHeight$4,
@@ -47930,7 +47684,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
47930
47684
  }, link)
47931
47685
  }));
47932
47686
  };
47933
- var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$S, "default");
47687
+ var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$R, "default");
47934
47688
 
47935
47689
  var backgroundColor$d = {
47936
47690
  "default": "#ffffff",
@@ -47965,7 +47719,7 @@ var modalLinkTextDecoration = {
47965
47719
  "default": LINK_TEXT_DECORATION,
47966
47720
  footer: "none"
47967
47721
  };
47968
- var fallbackValues$T = {
47722
+ var fallbackValues$S = {
47969
47723
  backgroundColor: backgroundColor$d,
47970
47724
  linkColor: linkColor$5,
47971
47725
  border: border$3,
@@ -48037,7 +47791,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
48037
47791
  className: "modal-trigger"
48038
47792
  }, link));
48039
47793
  };
48040
- var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$T, "default");
47794
+ var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$S, "default");
48041
47795
 
48042
47796
  var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
48043
47797
  var onCheck = _ref.onCheck,
@@ -48809,7 +48563,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
48809
48563
  var bodyBackgroundColor$1 = "#eeeeee";
48810
48564
  var borderColor$6 = "".concat(GHOST_GREY);
48811
48565
  var focusStyles = "outline: none;";
48812
- var fallbackValues$U = {
48566
+ var fallbackValues$T = {
48813
48567
  headingBackgroundColor: headingBackgroundColor$1,
48814
48568
  headingDisabledColor: headingDisabledColor,
48815
48569
  bodyBackgroundColor: bodyBackgroundColor$1,
@@ -49144,9 +48898,9 @@ var RadioSection = function RadioSection(_ref) {
49144
48898
  });
49145
48899
  })));
49146
48900
  };
49147
- var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$U);
48901
+ var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$T);
49148
48902
 
49149
- var fallbackValues$V = {
48903
+ var fallbackValues$U = {
49150
48904
  primaryColor: ROYAL_BLUE_VIVID,
49151
48905
  secondaryColor: CHARADE_GREY
49152
48906
  };
@@ -49257,7 +49011,7 @@ var RegistrationBanner = function RegistrationBanner(_ref) {
49257
49011
  weight: FONT_WEIGHT_SEMIBOLD
49258
49012
  }, "or Log In")))));
49259
49013
  };
49260
- var RegistrationBanner$1 = withWindowSize(themeComponent(RegistrationBanner, "RegistrationBanner", fallbackValues$V));
49014
+ var RegistrationBanner$1 = withWindowSize(themeComponent(RegistrationBanner, "RegistrationBanner", fallbackValues$U));
49261
49015
 
49262
49016
  var RegistrationForm = function RegistrationForm(_ref) {
49263
49017
  var clearOnDismount = _ref.clearOnDismount,
@@ -49377,13 +49131,13 @@ RegistrationForm.mapDispatchToProps = mapDispatchToProps$9;
49377
49131
 
49378
49132
  var GRECIAN_GREY$1 = GRECIAN_GREY;
49379
49133
  var bannerBackgroundColor = GRECIAN_GREY$1;
49380
- var fallbackValues$W = {
49134
+ var fallbackValues$V = {
49381
49135
  bannerBackgroundColor: bannerBackgroundColor
49382
49136
  };
49383
49137
 
49384
49138
  var ResetConfirmationForm = function ResetConfirmationForm() {
49385
49139
  var themeContext = useContext(ThemeContext);
49386
- var themeValues = createThemeValues(themeContext, fallbackValues$W, "ResetConfirmationForm");
49140
+ var themeValues = createThemeValues(themeContext, fallbackValues$V, "ResetConfirmationForm");
49387
49141
  var isMobile = themeContext.isMobile;
49388
49142
  return /*#__PURE__*/React__default.createElement(Box, {
49389
49143
  padding: "0",
@@ -49498,13 +49252,13 @@ ResetPasswordForm.mapDispatchToProps = mapDispatchToProps$a;
49498
49252
 
49499
49253
  var GRECIAN_GREY$2 = GRECIAN_GREY;
49500
49254
  var bannerBackgroundColor$1 = GRECIAN_GREY$2;
49501
- var fallbackValues$X = {
49255
+ var fallbackValues$W = {
49502
49256
  bannerBackgroundColor: bannerBackgroundColor$1
49503
49257
  };
49504
49258
 
49505
49259
  var ResetPasswordSuccess = function ResetPasswordSuccess() {
49506
49260
  var themeContext = useContext(ThemeContext);
49507
- var themeValues = createThemeValues(themeContext, fallbackValues$X, "ResetPasswordSuccess");
49261
+ var themeValues = createThemeValues(themeContext, fallbackValues$W, "ResetPasswordSuccess");
49508
49262
  var isMobile = themeContext.isMobile;
49509
49263
  return /*#__PURE__*/React__default.createElement(Box, {
49510
49264
  padding: "0",
@@ -49553,7 +49307,7 @@ var ResetPasswordSuccess$1 = withWindowSize(ResetPasswordSuccess);
49553
49307
  var activeTabBackground = "#FFFFFF";
49554
49308
  var activeTabAccent = "#15749D";
49555
49309
  var activeTabHover = "#B8D5E1";
49556
- var fallbackValues$Y = {
49310
+ var fallbackValues$X = {
49557
49311
  activeTabBackground: activeTabBackground,
49558
49312
  activeTabAccent: activeTabAccent,
49559
49313
  activeTabHover: activeTabHover
@@ -49648,12 +49402,12 @@ var Tabs = function Tabs(_ref) {
49648
49402
  }, tab.content);
49649
49403
  }))));
49650
49404
  };
49651
- var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$Y);
49405
+ var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$X);
49652
49406
 
49653
49407
  var activeTabBackground$1 = "#FFFFFF";
49654
49408
  var activeTabAccent$1 = "#15749D";
49655
49409
  var activeTabHover$1 = "#B8D5E1";
49656
- var fallbackValues$Z = {
49410
+ var fallbackValues$Y = {
49657
49411
  activeTabBackground: activeTabBackground$1,
49658
49412
  activeTabAccent: activeTabAccent$1,
49659
49413
  activeTabHover: activeTabHover$1
@@ -49712,7 +49466,7 @@ var TabSidebar = function TabSidebar(_ref) {
49712
49466
  }, text)))));
49713
49467
  })));
49714
49468
  };
49715
- var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$Z);
49469
+ var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$Y);
49716
49470
 
49717
49471
  var Timeout = function Timeout(_ref) {
49718
49472
  var onLogout = _ref.onLogout;
@@ -49833,7 +49587,7 @@ var fontColor$1 = WHITE;
49833
49587
  var textAlign$1 = "left";
49834
49588
  var headerBackgroundColor$1 = BRIGHT_GREY;
49835
49589
  var imageBackgroundColor$1 = MATISSE_BLUE;
49836
- var fallbackValues$_ = {
49590
+ var fallbackValues$Z = {
49837
49591
  fontWeight: fontWeight$9,
49838
49592
  fontColor: fontColor$1,
49839
49593
  textAlign: textAlign$1,
@@ -49878,7 +49632,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
49878
49632
  src: welcomeImage
49879
49633
  })))));
49880
49634
  };
49881
- var WelcomeModule$1 = /*#__PURE__*/memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$_));
49635
+ var WelcomeModule$1 = /*#__PURE__*/memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$Z));
49882
49636
 
49883
49637
  var WorkflowTile = function WorkflowTile(_ref) {
49884
49638
  var _ref$workflowName = _ref.workflowName,
@@ -49938,7 +49692,7 @@ var menuItemColorDelete = RAZZMATAZZ_RED;
49938
49692
  var menuItemHoverBackgroundColor = CORNFLOWER_BLUE;
49939
49693
  var menuItemHoverBackgroundColorDelete = BLUSH_RED;
49940
49694
  var menuItemHoverColor = ROYAL_BLUE_VIVID;
49941
- var fallbackValues$$ = {
49695
+ var fallbackValues$_ = {
49942
49696
  menuItemBackgroundColor: menuItemBackgroundColor,
49943
49697
  menuItemColor: menuItemColor,
49944
49698
  menuItemColorDelete: menuItemColorDelete,
@@ -50005,15 +49759,15 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
50005
49759
  extraStyles: textExtraStyles
50006
49760
  }, text)));
50007
49761
  };
50008
- var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$$);
49762
+ var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$_);
50009
49763
 
50010
- var hoverColor$6 = "#116285";
50011
- var activeColor$b = "#0E506D";
49764
+ var hoverColor$5 = "#116285";
49765
+ var activeColor$a = "#0E506D";
50012
49766
  var menuTriggerColor = "#15749D";
50013
49767
  var backgroundColor$e = "white";
50014
- var fallbackValues$10 = {
50015
- hoverColor: hoverColor$6,
50016
- activeColor: activeColor$b,
49768
+ var fallbackValues$$ = {
49769
+ hoverColor: hoverColor$5,
49770
+ activeColor: activeColor$a,
50017
49771
  menuTriggerColor: menuTriggerColor,
50018
49772
  backgroundColor: backgroundColor$e
50019
49773
  };
@@ -50147,13 +49901,13 @@ var PopupMenu = function PopupMenu(_ref) {
50147
49901
  }, item));
50148
49902
  })));
50149
49903
  };
50150
- var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$10);
49904
+ var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$$);
50151
49905
 
50152
49906
  var primaryColor$1 = WHITE;
50153
49907
  var primaryHoverColor = INFO_BLUE;
50154
49908
  var secondaryColor = MATISSE_BLUE;
50155
49909
  var secondaryHoverColor = "#115D7E";
50156
- var fallbackValues$11 = {
49910
+ var fallbackValues$10 = {
50157
49911
  primaryColor: primaryColor$1,
50158
49912
  primaryHoverColor: primaryHoverColor,
50159
49913
  secondaryColor: secondaryColor,
@@ -50855,7 +50609,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
50855
50609
  ariaLabel: "Apply all filters"
50856
50610
  }))));
50857
50611
  };
50858
- var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$11);
50612
+ var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$10);
50859
50613
 
50860
50614
  var TextWrapStyles = css(["word-wrap:break-word;overflow-wrap:break-word;white-space:normal;max-width:100%;"]);
50861
50615
  var Container$1 = styled(Box).withConfig({
@@ -51057,7 +50811,7 @@ var justifyContent = {
51057
50811
  desktop: "center"
51058
50812
  }
51059
50813
  };
51060
- var fallbackValues$12 = {
50814
+ var fallbackValues$11 = {
51061
50815
  // Colors
51062
50816
  heroPrimaryColor: heroPrimaryColor,
51063
50817
  heroTextColor: heroTextColor,
@@ -51264,7 +51018,7 @@ var HeroImage = function HeroImage(_ref) {
51264
51018
  theme: themeValues
51265
51019
  }, description)))));
51266
51020
  };
51267
- var HeroImage$1 = withWindowSize(themeComponent(HeroImage, "HeroImage", fallbackValues$12, "v1"));
51021
+ var HeroImage$1 = withWindowSize(themeComponent(HeroImage, "HeroImage", fallbackValues$11, "v1"));
51268
51022
 
51269
51023
  var TurnstileWidgetContainer = styled(Box).withConfig({
51270
51024
  displayName: "TurnstileWidget__TurnstileWidgetContainer",
@@ -51407,6 +51161,153 @@ var TurnstileWidget = /*#__PURE__*/forwardRef(function (_ref4, ref) {
51407
51161
  }, error)));
51408
51162
  });
51409
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
+
51410
51311
  var pageBackground = "#FBFCFD";
51411
51312
  var fallbackValues$13 = {
51412
51313
  pageBackground: pageBackground
@@ -51739,5 +51640,5 @@ var index$2 = /*#__PURE__*/Object.freeze({
51739
51640
  useLogoutTimers: useLogoutTimers
51740
51641
  });
51741
51642
 
51742
- 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 };
51743
51644
  //# sourceMappingURL=index.esm.js.map