@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.cjs.js +977 -1077
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +978 -1077
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/index.js +0 -1
- package/src/components/atoms/display-card/DisplayCard.js +0 -118
- package/src/components/atoms/display-card/DisplayCard.mdx +0 -13
- package/src/components/atoms/display-card/DisplayCard.stories.js +0 -240
- package/src/components/atoms/display-card/index.js +0 -3
package/dist/index.cjs.js
CHANGED
|
@@ -25198,866 +25198,287 @@ var DisplayBox = function DisplayBox(_ref) {
|
|
|
25198
25198
|
};
|
|
25199
25199
|
var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$l);
|
|
25200
25200
|
|
|
25201
|
-
|
|
25202
|
-
|
|
25203
|
-
|
|
25204
|
-
|
|
25205
|
-
hook will run whatever handler is passed (eg a function that closes a popover)
|
|
25206
|
-
|
|
25207
|
-
See popover component for implementation
|
|
25208
|
-
|
|
25209
|
-
*/
|
|
25201
|
+
function _extends$2() {
|
|
25202
|
+
_extends$2 = Object.assign || function (target) {
|
|
25203
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
25204
|
+
var source = arguments[i];
|
|
25210
25205
|
|
|
25211
|
-
var
|
|
25212
|
-
|
|
25213
|
-
|
|
25214
|
-
|
|
25215
|
-
if (ref.current && !ref.current.contains(e.target)) {
|
|
25216
|
-
handler();
|
|
25206
|
+
for (var key in source) {
|
|
25207
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
25208
|
+
target[key] = source[key];
|
|
25209
|
+
}
|
|
25217
25210
|
}
|
|
25218
|
-
}
|
|
25219
|
-
document.addEventListener("click", handleOutsideClick, true);
|
|
25220
|
-
return function () {
|
|
25221
|
-
document.removeEventListener("click", handleOutsideClick, true);
|
|
25222
|
-
};
|
|
25223
|
-
}, [ref]);
|
|
25224
|
-
return ref;
|
|
25225
|
-
};
|
|
25211
|
+
}
|
|
25226
25212
|
|
|
25227
|
-
|
|
25228
|
-
|
|
25229
|
-
And optionally values for top position, left position, smooth behavior
|
|
25230
|
-
Finds element on screen and scrolls it to the provided coordinates
|
|
25213
|
+
return target;
|
|
25214
|
+
};
|
|
25231
25215
|
|
|
25232
|
-
(
|
|
25233
|
-
|
|
25216
|
+
return _extends$2.apply(this, arguments);
|
|
25217
|
+
}
|
|
25234
25218
|
|
|
25235
|
-
|
|
25236
|
-
|
|
25237
|
-
var
|
|
25238
|
-
var
|
|
25239
|
-
var
|
|
25240
|
-
|
|
25241
|
-
|
|
25242
|
-
|
|
25243
|
-
|
|
25244
|
-
|
|
25245
|
-
(_scrollItem = scrollItem) === null || _scrollItem === void 0 || _scrollItem.scrollTo({
|
|
25246
|
-
top: top,
|
|
25247
|
-
left: left,
|
|
25248
|
-
behavior: behavior
|
|
25249
|
-
});
|
|
25250
|
-
}, delay);
|
|
25251
|
-
} else {
|
|
25252
|
-
var _scrollItem2;
|
|
25253
|
-
scrollItem = document.getElementById(id);
|
|
25254
|
-
(_scrollItem2 = scrollItem) === null || _scrollItem2 === void 0 || _scrollItem2.scrollTo({
|
|
25255
|
-
top: top,
|
|
25256
|
-
left: left,
|
|
25257
|
-
behavior: behavior
|
|
25258
|
-
});
|
|
25219
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
25220
|
+
if (source == null) return {};
|
|
25221
|
+
var target = {};
|
|
25222
|
+
var sourceKeys = Object.keys(source);
|
|
25223
|
+
var key, i;
|
|
25224
|
+
|
|
25225
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
25226
|
+
key = sourceKeys[i];
|
|
25227
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
25228
|
+
target[key] = source[key];
|
|
25259
25229
|
}
|
|
25260
|
-
};
|
|
25261
25230
|
|
|
25262
|
-
|
|
25263
|
-
|
|
25264
|
-
variant: "",
|
|
25265
|
-
message: ""
|
|
25266
|
-
};
|
|
25267
|
-
var useToastNotification = function useToastNotification() {
|
|
25268
|
-
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
25269
|
-
_ref$timeout = _ref.timeout,
|
|
25270
|
-
timeout = _ref$timeout === void 0 ? 5000 : _ref$timeout;
|
|
25271
|
-
var _useState = React.useState(initialToastState),
|
|
25272
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
25273
|
-
toastState = _useState2[0],
|
|
25274
|
-
setToastState = _useState2[1];
|
|
25275
|
-
React.useEffect(function () {
|
|
25276
|
-
if (toastState.isOpen && timeout > 0) {
|
|
25277
|
-
setTimeout(function () {
|
|
25278
|
-
setToastState(initialToastState);
|
|
25279
|
-
}, timeout);
|
|
25280
|
-
}
|
|
25281
|
-
}, [timeout, toastState.isOpen]);
|
|
25282
|
-
var showToast = function showToast(_ref2) {
|
|
25283
|
-
var message = _ref2.message,
|
|
25284
|
-
variant = _ref2.variant;
|
|
25285
|
-
return setToastState({
|
|
25286
|
-
isOpen: true,
|
|
25287
|
-
variant: variant,
|
|
25288
|
-
message: message
|
|
25289
|
-
});
|
|
25290
|
-
};
|
|
25291
|
-
var hideToast = function hideToast() {
|
|
25292
|
-
return setToastState(initialToastState);
|
|
25293
|
-
};
|
|
25294
|
-
return {
|
|
25295
|
-
isToastOpen: toastState.isOpen,
|
|
25296
|
-
toastVariant: toastState.variant,
|
|
25297
|
-
toastMessage: toastState.message,
|
|
25298
|
-
showToast: showToast,
|
|
25299
|
-
hideToast: hideToast
|
|
25300
|
-
};
|
|
25301
|
-
};
|
|
25231
|
+
return target;
|
|
25232
|
+
}
|
|
25302
25233
|
|
|
25303
|
-
function
|
|
25304
|
-
|
|
25305
|
-
|
|
25306
|
-
|
|
25234
|
+
function _objectWithoutProperties$1(source, excluded) {
|
|
25235
|
+
if (source == null) return {};
|
|
25236
|
+
|
|
25237
|
+
var target = _objectWithoutPropertiesLoose$1(source, excluded);
|
|
25238
|
+
|
|
25239
|
+
var key, i;
|
|
25240
|
+
|
|
25241
|
+
if (Object.getOwnPropertySymbols) {
|
|
25242
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
25243
|
+
|
|
25244
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
25245
|
+
key = sourceSymbolKeys[i];
|
|
25246
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
25247
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
25248
|
+
target[key] = source[key];
|
|
25307
25249
|
}
|
|
25308
|
-
|
|
25309
|
-
|
|
25310
|
-
|
|
25311
|
-
};
|
|
25312
|
-
}, [condition, addValidator, removeValidator]);
|
|
25250
|
+
}
|
|
25251
|
+
|
|
25252
|
+
return target;
|
|
25313
25253
|
}
|
|
25314
25254
|
|
|
25315
|
-
|
|
25316
|
-
|
|
25317
|
-
|
|
25318
|
-
* @param {string} verifyURL - The URL of the Turnstile verification script.
|
|
25319
|
-
*/
|
|
25320
|
-
var useTurnstileScript = function useTurnstileScript(verifyURL) {
|
|
25321
|
-
var _useState = React.useState(false),
|
|
25322
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
25323
|
-
scriptLoaded = _useState2[0],
|
|
25324
|
-
setScriptLoaded = _useState2[1];
|
|
25325
|
-
var _useState3 = React.useState(false),
|
|
25326
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
25327
|
-
scriptError = _useState4[0],
|
|
25328
|
-
setScriptError = _useState4[1];
|
|
25329
|
-
var handleScriptError = function handleScriptError() {
|
|
25330
|
-
setScriptError(true);
|
|
25331
|
-
setScriptLoaded(false);
|
|
25332
|
-
};
|
|
25333
|
-
React.useEffect(function () {
|
|
25334
|
-
if (typeof window === "undefined") {
|
|
25335
|
-
setScriptLoaded(false);
|
|
25336
|
-
return;
|
|
25337
|
-
}
|
|
25338
|
-
if (window.turnstile && window.turnstile.render) {
|
|
25339
|
-
setScriptLoaded(true);
|
|
25340
|
-
return;
|
|
25341
|
-
}
|
|
25342
|
-
var script = document.createElement("script");
|
|
25343
|
-
script.src = "".concat(verifyURL, "?render=explicit");
|
|
25344
|
-
script.onload = function () {
|
|
25345
|
-
setScriptLoaded(true);
|
|
25346
|
-
};
|
|
25347
|
-
script.onerror = function () {
|
|
25348
|
-
handleScriptError();
|
|
25349
|
-
};
|
|
25350
|
-
script.onabort = function () {
|
|
25351
|
-
handleScriptError();
|
|
25352
|
-
};
|
|
25353
|
-
script.defer = true;
|
|
25354
|
-
document.getElementsByTagName("head")[0].appendChild(script);
|
|
25355
|
-
return function () {
|
|
25356
|
-
setScriptLoaded(false);
|
|
25357
|
-
setScriptError(false);
|
|
25358
|
-
};
|
|
25359
|
-
}, [verifyURL]);
|
|
25360
|
-
return {
|
|
25361
|
-
scriptLoaded: scriptLoaded,
|
|
25362
|
-
scriptError: scriptError
|
|
25363
|
-
};
|
|
25364
|
-
};
|
|
25255
|
+
function _slicedToArray$1(arr, i) {
|
|
25256
|
+
return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _nonIterableRest$1();
|
|
25257
|
+
}
|
|
25365
25258
|
|
|
25259
|
+
function _toConsumableArray$1(arr) {
|
|
25260
|
+
return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _nonIterableSpread$1();
|
|
25261
|
+
}
|
|
25366
25262
|
|
|
25263
|
+
function _arrayWithoutHoles$1(arr) {
|
|
25264
|
+
if (Array.isArray(arr)) {
|
|
25265
|
+
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
|
25367
25266
|
|
|
25368
|
-
|
|
25369
|
-
|
|
25370
|
-
|
|
25371
|
-
useScrollTo: useScrollTo,
|
|
25372
|
-
useToastNotification: useToastNotification,
|
|
25373
|
-
useConditionallyAddValidator: useConditionallyAddValidator,
|
|
25374
|
-
useTurnstileScript: useTurnstileScript
|
|
25375
|
-
});
|
|
25267
|
+
return arr2;
|
|
25268
|
+
}
|
|
25269
|
+
}
|
|
25376
25270
|
|
|
25377
|
-
|
|
25378
|
-
|
|
25379
|
-
|
|
25380
|
-
var fallbackValues$m = {
|
|
25381
|
-
hoverColor: hoverColor$4,
|
|
25382
|
-
activeColor: activeColor$5,
|
|
25383
|
-
popoverTriggerColor: popoverTriggerColor
|
|
25384
|
-
};
|
|
25271
|
+
function _arrayWithHoles$1(arr) {
|
|
25272
|
+
if (Array.isArray(arr)) return arr;
|
|
25273
|
+
}
|
|
25385
25274
|
|
|
25386
|
-
|
|
25387
|
-
|
|
25388
|
-
|
|
25389
|
-
|
|
25390
|
-
|
|
25391
|
-
|
|
25392
|
-
|
|
25393
|
-
return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
|
|
25394
|
-
} else if (direction == "left") {
|
|
25395
|
-
return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
|
|
25396
|
-
} else if (direction == "right") {
|
|
25397
|
-
return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
|
|
25275
|
+
function _iterableToArray$1(iter) {
|
|
25276
|
+
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
25277
|
+
}
|
|
25278
|
+
|
|
25279
|
+
function _iterableToArrayLimit$1(arr, i) {
|
|
25280
|
+
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
|
25281
|
+
return;
|
|
25398
25282
|
}
|
|
25399
|
-
|
|
25400
|
-
var
|
|
25401
|
-
var
|
|
25402
|
-
|
|
25403
|
-
|
|
25404
|
-
|
|
25405
|
-
|
|
25406
|
-
|
|
25407
|
-
|
|
25408
|
-
|
|
25409
|
-
|
|
25410
|
-
iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
|
|
25411
|
-
_ref$popoverID = _ref.popoverID,
|
|
25412
|
-
popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
|
|
25413
|
-
_ref$popoverFocus = _ref.popoverFocus,
|
|
25414
|
-
popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
|
|
25415
|
-
extraStyles = _ref.extraStyles,
|
|
25416
|
-
textExtraStyles = _ref.textExtraStyles,
|
|
25417
|
-
_ref$minWidth = _ref.minWidth,
|
|
25418
|
-
minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
|
|
25419
|
-
_ref$maxWidth = _ref.maxWidth,
|
|
25420
|
-
maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
|
|
25421
|
-
_ref$height = _ref.height,
|
|
25422
|
-
height = _ref$height === void 0 ? "auto" : _ref$height,
|
|
25423
|
-
position = _ref.position,
|
|
25424
|
-
arrowPosition = _ref.arrowPosition,
|
|
25425
|
-
_ref$arrowDirection = _ref.arrowDirection,
|
|
25426
|
-
arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
|
|
25427
|
-
_ref$transform = _ref.transform,
|
|
25428
|
-
transform = _ref$transform === void 0 ? "none" : _ref$transform,
|
|
25429
|
-
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
25430
|
-
_ref$backgroundColor = _ref.backgroundColor,
|
|
25431
|
-
backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
|
|
25432
|
-
_ref$borderColor = _ref.borderColor,
|
|
25433
|
-
borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
|
|
25434
|
-
popoverExtraStyles = _ref.popoverExtraStyles;
|
|
25435
|
-
var hoverColor = themeValues.hoverColor,
|
|
25436
|
-
activeColor = themeValues.activeColor,
|
|
25437
|
-
popoverTriggerColor = themeValues.popoverTriggerColor;
|
|
25438
|
-
var _ref2 = position !== null && position !== void 0 ? position : {},
|
|
25439
|
-
_ref2$top = _ref2.top,
|
|
25440
|
-
top = _ref2$top === void 0 ? "-110px" : _ref2$top,
|
|
25441
|
-
_ref2$right = _ref2.right,
|
|
25442
|
-
right = _ref2$right === void 0 ? "auto" : _ref2$right,
|
|
25443
|
-
_ref2$bottom = _ref2.bottom,
|
|
25444
|
-
bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
|
|
25445
|
-
_ref2$left = _ref2.left,
|
|
25446
|
-
left = _ref2$left === void 0 ? "-225px" : _ref2$left;
|
|
25447
|
-
var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
|
|
25448
|
-
_ref3$arrowTop = _ref3.arrowTop,
|
|
25449
|
-
arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
|
|
25450
|
-
_ref3$arrowRight = _ref3.arrowRight,
|
|
25451
|
-
arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
|
|
25452
|
-
_ref3$arrowBottom = _ref3.arrowBottom,
|
|
25453
|
-
arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
|
|
25454
|
-
_ref3$arrowLeft = _ref3.arrowLeft,
|
|
25455
|
-
arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
|
|
25456
|
-
var _useState = React.useState(false),
|
|
25457
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
25458
|
-
popoverOpen = _useState2[0],
|
|
25459
|
-
togglePopover = _useState2[1];
|
|
25460
|
-
var handleTogglePopover = function handleTogglePopover(popoverState) {
|
|
25461
|
-
if (popoverOpen !== popoverState) {
|
|
25462
|
-
togglePopover(popoverState);
|
|
25283
|
+
|
|
25284
|
+
var _arr = [];
|
|
25285
|
+
var _n = true;
|
|
25286
|
+
var _d = false;
|
|
25287
|
+
var _e = undefined;
|
|
25288
|
+
|
|
25289
|
+
try {
|
|
25290
|
+
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
25291
|
+
_arr.push(_s.value);
|
|
25292
|
+
|
|
25293
|
+
if (i && _arr.length === i) break;
|
|
25463
25294
|
}
|
|
25295
|
+
} catch (err) {
|
|
25296
|
+
_d = true;
|
|
25297
|
+
_e = err;
|
|
25298
|
+
} finally {
|
|
25299
|
+
try {
|
|
25300
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
25301
|
+
} finally {
|
|
25302
|
+
if (_d) throw _e;
|
|
25303
|
+
}
|
|
25304
|
+
}
|
|
25305
|
+
|
|
25306
|
+
return _arr;
|
|
25307
|
+
}
|
|
25308
|
+
|
|
25309
|
+
function _nonIterableSpread$1() {
|
|
25310
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
25311
|
+
}
|
|
25312
|
+
|
|
25313
|
+
function _nonIterableRest$1() {
|
|
25314
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
25315
|
+
}
|
|
25316
|
+
|
|
25317
|
+
var getUniqueFormatDelimiters = function getUniqueFormatDelimiters(formats, formatChar) {
|
|
25318
|
+
return _toConsumableArray$1(new Set(formats.join("").split(formatChar).join("").split("")));
|
|
25319
|
+
};
|
|
25320
|
+
var format$1 = function format(formatter) {
|
|
25321
|
+
return function (value) {
|
|
25322
|
+
var usedFormat = formatter.formats[value.length];
|
|
25323
|
+
|
|
25324
|
+
if (!usedFormat) {
|
|
25325
|
+
return value;
|
|
25326
|
+
}
|
|
25327
|
+
|
|
25328
|
+
var formatPieces = usedFormat.split(formatter.formatChar);
|
|
25329
|
+
var valuePieces = value.split("");
|
|
25330
|
+
var zipped = formatPieces.map(function (v, i) {
|
|
25331
|
+
return v + (valuePieces[i] || "");
|
|
25332
|
+
});
|
|
25333
|
+
return zipped.join("");
|
|
25464
25334
|
};
|
|
25465
|
-
|
|
25466
|
-
|
|
25335
|
+
};
|
|
25336
|
+
|
|
25337
|
+
var countDelims = function countDelims(formatter, index) {
|
|
25338
|
+
var count = 0;
|
|
25339
|
+
var format = formatter.formats[index];
|
|
25340
|
+
if (!format) return 0;
|
|
25341
|
+
formatter.uniqueDelimiters.forEach(function (delim) {
|
|
25342
|
+
return count += format.split(delim).length - 1;
|
|
25467
25343
|
});
|
|
25468
|
-
return
|
|
25469
|
-
padding: "0",
|
|
25470
|
-
extraStyles: "position: relative; ".concat(extraStyles)
|
|
25471
|
-
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
25472
|
-
action: function action() {
|
|
25473
|
-
return noop$1;
|
|
25474
|
-
},
|
|
25475
|
-
onFocus: function onFocus() {
|
|
25476
|
-
handleTogglePopover(true);
|
|
25477
|
-
},
|
|
25478
|
-
onBlur: function onBlur() {
|
|
25479
|
-
handleTogglePopover(false);
|
|
25480
|
-
},
|
|
25481
|
-
onKeyDown: function onKeyDown(e) {
|
|
25482
|
-
if (e.keyCode === ESCAPE) {
|
|
25483
|
-
handleTogglePopover(false);
|
|
25484
|
-
}
|
|
25485
|
-
},
|
|
25486
|
-
onTouchStart: function onTouchStart() {
|
|
25487
|
-
return handleTogglePopover(true);
|
|
25488
|
-
},
|
|
25489
|
-
onTouchEnd: function onTouchEnd() {
|
|
25490
|
-
return handleTogglePopover(false);
|
|
25491
|
-
},
|
|
25492
|
-
onMouseEnter: function onMouseEnter() {
|
|
25493
|
-
return handleTogglePopover(true);
|
|
25494
|
-
},
|
|
25495
|
-
onMouseLeave: function onMouseLeave() {
|
|
25496
|
-
return handleTogglePopover(false);
|
|
25497
|
-
},
|
|
25498
|
-
contentOverride: true,
|
|
25499
|
-
variant: "smallGhost",
|
|
25500
|
-
tabIndex: "0",
|
|
25501
|
-
id: "btnPopover".concat(popoverID),
|
|
25502
|
-
"aria-expanded": popoverOpen,
|
|
25503
|
-
"aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
|
|
25504
|
-
"aria-describedby": "Disclosure".concat(popoverID),
|
|
25505
|
-
"aria-controls": "Disclosed".concat(popoverID),
|
|
25506
|
-
ref: triggerRef,
|
|
25507
|
-
extraStyles: buttonExtraStyles
|
|
25508
|
-
}, hasIcon && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, null), /*#__PURE__*/React__default.createElement(Box, {
|
|
25509
|
-
padding: "0",
|
|
25510
|
-
srOnly: true
|
|
25511
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25512
|
-
id: "btnPopover".concat(popoverID, "_info")
|
|
25513
|
-
}, iconHelpText))), !hasIcon && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25514
|
-
color: popoverTriggerColor,
|
|
25515
|
-
extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
|
|
25516
|
-
}, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
|
|
25517
|
-
background: backgroundColor,
|
|
25518
|
-
borderRadius: "4px",
|
|
25519
|
-
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
|
|
25520
|
-
id: "Disclosed".concat(popoverID),
|
|
25521
|
-
role: "region",
|
|
25522
|
-
"aria-describedby": "Disclosure".concat(popoverID),
|
|
25523
|
-
tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
|
|
25524
|
-
minWidth: minWidth,
|
|
25525
|
-
maxWidth: maxWidth,
|
|
25526
|
-
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 ")
|
|
25527
|
-
}, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
|
|
25528
|
-
padding: "0",
|
|
25529
|
-
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 ")
|
|
25530
|
-
})));
|
|
25344
|
+
return count;
|
|
25531
25345
|
};
|
|
25532
|
-
var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$m);
|
|
25533
25346
|
|
|
25534
|
-
var
|
|
25535
|
-
|
|
25536
|
-
|
|
25537
|
-
|
|
25538
|
-
|
|
25539
|
-
|
|
25540
|
-
|
|
25347
|
+
var unformat = function unformat(formatter) {
|
|
25348
|
+
return function (formattedValue, formatIndex) {
|
|
25349
|
+
if (formatIndex >= formatter.formats.length) {
|
|
25350
|
+
return formattedValue;
|
|
25351
|
+
}
|
|
25352
|
+
|
|
25353
|
+
var format = formatter.formats[formatIndex];
|
|
25354
|
+
return formattedValue.split("").filter(function (_, i) {
|
|
25355
|
+
return !(format[i] != formatter.formatChar);
|
|
25356
|
+
}).join("");
|
|
25357
|
+
};
|
|
25358
|
+
};
|
|
25359
|
+
var inject = function inject(baseString) {
|
|
25360
|
+
return function (start, end, newString) {
|
|
25361
|
+
return baseString.substring(0, start) + newString + baseString.substring(end);
|
|
25362
|
+
};
|
|
25541
25363
|
};
|
|
25364
|
+
var formattedToUnformattedIndex = function formattedToUnformattedIndex(formattedIndex, rawValue, formatter) {
|
|
25365
|
+
var maxFormatExceeded = rawValue.length >= formatter.formats.length;
|
|
25542
25366
|
|
|
25543
|
-
|
|
25544
|
-
|
|
25545
|
-
|
|
25546
|
-
|
|
25547
|
-
|
|
25548
|
-
return
|
|
25549
|
-
|
|
25550
|
-
|
|
25551
|
-
} else if (direction == "left") {
|
|
25552
|
-
return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
|
|
25553
|
-
} else if (direction == "right") {
|
|
25554
|
-
return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
|
|
25367
|
+
if (maxFormatExceeded) {
|
|
25368
|
+
return formattedIndex;
|
|
25369
|
+
} else {
|
|
25370
|
+
var formatString = formatter.formats[rawValue.length];
|
|
25371
|
+
var beforeString = formatString.slice(0, formattedIndex);
|
|
25372
|
+
return beforeString.split("").filter(function (c) {
|
|
25373
|
+
return c === formatter.formatChar;
|
|
25374
|
+
}).length;
|
|
25555
25375
|
}
|
|
25556
25376
|
};
|
|
25557
|
-
var
|
|
25558
|
-
var
|
|
25559
|
-
|
|
25560
|
-
|
|
25561
|
-
|
|
25562
|
-
|
|
25563
|
-
|
|
25564
|
-
|
|
25565
|
-
|
|
25566
|
-
|
|
25567
|
-
|
|
25568
|
-
|
|
25569
|
-
|
|
25570
|
-
tooltipID = _ref$tooltipID === void 0 ? 0 : _ref$tooltipID,
|
|
25571
|
-
extraStyles = _ref.extraStyles,
|
|
25572
|
-
_ref$textExtraStyles = _ref.textExtraStyles,
|
|
25573
|
-
textExtraStyles = _ref$textExtraStyles === void 0 ? "" : _ref$textExtraStyles,
|
|
25574
|
-
_ref$minWidth = _ref.minWidth,
|
|
25575
|
-
minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
|
|
25576
|
-
_ref$maxWidth = _ref.maxWidth,
|
|
25577
|
-
maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
|
|
25578
|
-
_ref$height = _ref.height,
|
|
25579
|
-
height = _ref$height === void 0 ? "auto" : _ref$height,
|
|
25580
|
-
position = _ref.position,
|
|
25581
|
-
arrowPosition = _ref.arrowPosition,
|
|
25582
|
-
_ref$arrowDirection = _ref.arrowDirection,
|
|
25583
|
-
arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
|
|
25584
|
-
_ref$transform = _ref.transform,
|
|
25585
|
-
transform = _ref$transform === void 0 ? "none" : _ref$transform,
|
|
25586
|
-
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
25587
|
-
_ref$backgroundColor = _ref.backgroundColor,
|
|
25588
|
-
backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
|
|
25589
|
-
_ref$borderColor = _ref.borderColor,
|
|
25590
|
-
borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
|
|
25591
|
-
tooltipExtraStyles = _ref.tooltipExtraStyles;
|
|
25592
|
-
var hoverColor = themeValues.hoverColor,
|
|
25593
|
-
activeColor = themeValues.activeColor,
|
|
25594
|
-
tooltipTriggerColor = themeValues.tooltipTriggerColor;
|
|
25595
|
-
var _ref2 = position !== null && position !== void 0 ? position : {},
|
|
25596
|
-
_ref2$top = _ref2.top,
|
|
25597
|
-
top = _ref2$top === void 0 ? "-110px" : _ref2$top,
|
|
25598
|
-
_ref2$right = _ref2.right,
|
|
25599
|
-
right = _ref2$right === void 0 ? "auto" : _ref2$right,
|
|
25600
|
-
_ref2$bottom = _ref2.bottom,
|
|
25601
|
-
bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
|
|
25602
|
-
_ref2$left = _ref2.left,
|
|
25603
|
-
left = _ref2$left === void 0 ? "-225px" : _ref2$left;
|
|
25604
|
-
var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
|
|
25605
|
-
_ref3$arrowTop = _ref3.arrowTop,
|
|
25606
|
-
arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
|
|
25607
|
-
_ref3$arrowRight = _ref3.arrowRight,
|
|
25608
|
-
arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
|
|
25609
|
-
_ref3$arrowBottom = _ref3.arrowBottom,
|
|
25610
|
-
arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
|
|
25611
|
-
_ref3$arrowLeft = _ref3.arrowLeft,
|
|
25612
|
-
arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
|
|
25613
|
-
var _useState = React.useState(false),
|
|
25614
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
25615
|
-
tooltipOpen = _useState2[0],
|
|
25616
|
-
setTooltipOpen = _useState2[1];
|
|
25617
|
-
var handleToggleTooltip = function handleToggleTooltip(tooltipState) {
|
|
25618
|
-
if (tooltipOpen !== tooltipState) {
|
|
25619
|
-
setTooltipOpen(tooltipState);
|
|
25620
|
-
}
|
|
25621
|
-
};
|
|
25622
|
-
var handleKeyboardEvent = function handleKeyboardEvent(e) {
|
|
25623
|
-
if (e.keyCode === ESCAPE || e.keyCode === 9) {
|
|
25624
|
-
handleToggleTooltip(false);
|
|
25625
|
-
}
|
|
25626
|
-
};
|
|
25627
|
-
return /*#__PURE__*/React__default.createElement(Box, {
|
|
25628
|
-
padding: "0",
|
|
25629
|
-
extraStyles: "position: relative; ".concat(extraStyles)
|
|
25630
|
-
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
25631
|
-
action: function action() {
|
|
25632
|
-
return noop$1;
|
|
25633
|
-
},
|
|
25634
|
-
onFocus: function onFocus() {
|
|
25635
|
-
return handleToggleTooltip(true);
|
|
25636
|
-
},
|
|
25637
|
-
onBlur: function onBlur() {
|
|
25638
|
-
return handleToggleTooltip(false);
|
|
25639
|
-
},
|
|
25640
|
-
onKeyDown: handleKeyboardEvent,
|
|
25641
|
-
onTouchStart: function onTouchStart() {
|
|
25642
|
-
return handleToggleTooltip(true);
|
|
25643
|
-
},
|
|
25644
|
-
onTouchEnd: function onTouchEnd() {
|
|
25645
|
-
return handleToggleTooltip(false);
|
|
25646
|
-
},
|
|
25647
|
-
onMouseEnter: function onMouseEnter() {
|
|
25648
|
-
return handleToggleTooltip(true);
|
|
25649
|
-
},
|
|
25650
|
-
onMouseLeave: function onMouseLeave() {
|
|
25651
|
-
return handleToggleTooltip(false);
|
|
25652
|
-
},
|
|
25653
|
-
contentOverride: true,
|
|
25654
|
-
variant: "smallGhost",
|
|
25655
|
-
tabIndex: "0",
|
|
25656
|
-
"aria-describedby": tooltipID,
|
|
25657
|
-
extraStyles: buttonExtraStyles
|
|
25658
|
-
}, hasIconTrigger && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(IconTrigger, {
|
|
25659
|
-
stroke: BLACK
|
|
25660
|
-
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
25661
|
-
padding: "0",
|
|
25662
|
-
srOnly: true
|
|
25663
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, null, iconHelpText))), !hasIconTrigger && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25664
|
-
extraStyles: textExtraStyles
|
|
25665
|
-
}, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
|
|
25666
|
-
background: backgroundColor,
|
|
25667
|
-
borderRadius: "4px",
|
|
25668
|
-
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
|
|
25669
|
-
id: tooltipID,
|
|
25670
|
-
role: "tooltip",
|
|
25671
|
-
minWidth: minWidth,
|
|
25672
|
-
maxWidth: maxWidth,
|
|
25673
|
-
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 ")
|
|
25674
|
-
}, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
|
|
25675
|
-
padding: "0",
|
|
25676
|
-
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 ")
|
|
25677
|
-
})));
|
|
25377
|
+
var unformattedToFormattedIndex = function unformattedToFormattedIndex(rawIndex, rawValue, formatter, del) {
|
|
25378
|
+
var maxFormatExceeded = rawValue.length >= formatter.formats.length; // If forced to stay formatted, offset by delims - 1
|
|
25379
|
+
// This is done so the component doesn't assume that any added chars will be kept
|
|
25380
|
+
// (i.e. if an external constraint is applied)
|
|
25381
|
+
|
|
25382
|
+
if (maxFormatExceeded) {
|
|
25383
|
+
var delims = countDelims(formatter, rawValue.length - 1);
|
|
25384
|
+
return delims > 0 && !del ? rawIndex + delims - 1 : rawIndex;
|
|
25385
|
+
} else {
|
|
25386
|
+
return formatter.formats[rawValue.length].split(formatter.formatChar).slice(0, rawIndex).reduce(function (acc, curr) {
|
|
25387
|
+
return curr.length + acc;
|
|
25388
|
+
}, 0) + rawIndex;
|
|
25389
|
+
}
|
|
25678
25390
|
};
|
|
25679
|
-
var Tooltip$1 = themeComponent(Tooltip, "Tooltip", fallbackValues$n);
|
|
25680
25391
|
|
|
25681
|
-
var
|
|
25682
|
-
|
|
25683
|
-
|
|
25684
|
-
|
|
25685
|
-
|
|
25686
|
-
|
|
25687
|
-
_ref$link = _ref.link,
|
|
25688
|
-
link = _ref$link === void 0 ? false : _ref$link,
|
|
25689
|
-
helpText = _ref.helpText,
|
|
25690
|
-
_ref$hasTooltip = _ref.hasTooltip,
|
|
25691
|
-
hasTooltip = _ref$hasTooltip === void 0 ? false : _ref$hasTooltip,
|
|
25692
|
-
_ref$tooltipTriggerTe = _ref.tooltipTriggerText,
|
|
25693
|
-
tooltipTriggerText = _ref$tooltipTriggerTe === void 0 ? "" : _ref$tooltipTriggerTe,
|
|
25694
|
-
_ref$tooltipContent = _ref.tooltipContent,
|
|
25695
|
-
tooltipContent = _ref$tooltipContent === void 0 ? "" : _ref$tooltipContent,
|
|
25696
|
-
_ref$tooltipPosition = _ref.tooltipPosition,
|
|
25697
|
-
tooltipPosition = _ref$tooltipPosition === void 0 ? {
|
|
25698
|
-
top: "auto",
|
|
25699
|
-
bottom: "calc(100% + 0.25rem)",
|
|
25700
|
-
left: "auto",
|
|
25701
|
-
right: "0"
|
|
25702
|
-
} : _ref$tooltipPosition,
|
|
25703
|
-
_ref$tooltipArrowPosi = _ref.tooltipArrowPosition,
|
|
25704
|
-
tooltipArrowPosition = _ref$tooltipArrowPosi === void 0 ? {
|
|
25705
|
-
arrowBottom: "-0.5rem",
|
|
25706
|
-
arrowRight: "0.625rem",
|
|
25707
|
-
arrowTop: "auto",
|
|
25708
|
-
arrowLeft: "auto"
|
|
25709
|
-
} : _ref$tooltipArrowPosi,
|
|
25710
|
-
tooltipArrowDirection = _ref.tooltipArrowDirection,
|
|
25711
|
-
tooltipExtraStyles = _ref.tooltipExtraStyles,
|
|
25712
|
-
_ref$tooltipTextExtra = _ref.tooltipTextExtraStyles,
|
|
25713
|
-
tooltipTextExtraStyles = _ref$tooltipTextExtra === void 0 ? "max-width: 300px;" : _ref$tooltipTextExtra,
|
|
25714
|
-
_ref$hasPopover = _ref.hasPopover,
|
|
25715
|
-
hasPopover = _ref$hasPopover === void 0 ? false : _ref$hasPopover,
|
|
25716
|
-
_ref$popoverTriggerTe = _ref.popoverTriggerText,
|
|
25717
|
-
popoverTriggerText = _ref$popoverTriggerTe === void 0 ? "" : _ref$popoverTriggerTe,
|
|
25718
|
-
_ref$popoverContent = _ref.popoverContent,
|
|
25719
|
-
popoverContent = _ref$popoverContent === void 0 ? "" : _ref$popoverContent,
|
|
25720
|
-
popoverExtraStyles = _ref.popoverExtraStyles,
|
|
25721
|
-
popoverTextExtraStyles = _ref.popoverTextExtraStyles;
|
|
25722
|
-
return /*#__PURE__*/React__default.createElement(Box, {
|
|
25723
|
-
padding: "0 0 16px"
|
|
25724
|
-
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
25725
|
-
childGap: "0rem"
|
|
25726
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
25727
|
-
padding: "0 0 8px 0"
|
|
25728
|
-
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
25729
|
-
justify: "space-between",
|
|
25730
|
-
align: "center",
|
|
25731
|
-
overflow: true
|
|
25732
|
-
}, /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25733
|
-
variant: "pL",
|
|
25734
|
-
color: CHARADE_GREY,
|
|
25735
|
-
extraStyles: "letter-spacing: 0.29px"
|
|
25736
|
-
}, title), hasPopover && /*#__PURE__*/React__default.createElement(Popover$1, {
|
|
25737
|
-
triggerText: popoverTriggerText,
|
|
25738
|
-
content: popoverContent,
|
|
25739
|
-
popoverExtraStyles: popoverExtraStyles,
|
|
25740
|
-
popoverTextExtraStyles: popoverTextExtraStyles
|
|
25741
|
-
}), hasTooltip && /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
25742
|
-
triggerText: tooltipTriggerText,
|
|
25743
|
-
content: tooltipContent,
|
|
25744
|
-
textExtraStyles: tooltipTextExtraStyles,
|
|
25745
|
-
position: tooltipPosition,
|
|
25746
|
-
arrowPosition: tooltipArrowPosition,
|
|
25747
|
-
arrowDirection: tooltipArrowDirection,
|
|
25748
|
-
tooltipExtraStyles: tooltipExtraStyles
|
|
25749
|
-
}))), /*#__PURE__*/React__default.createElement(Box, {
|
|
25750
|
-
padding: "0"
|
|
25751
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
25752
|
-
padding: "24px",
|
|
25753
|
-
borderSize: "1px",
|
|
25754
|
-
borderRadius: "4px",
|
|
25755
|
-
background: WHITE,
|
|
25756
|
-
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
25757
|
-
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
25758
|
-
justify: "space-between",
|
|
25759
|
-
align: "center"
|
|
25760
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25761
|
-
color: CHARADE_GREY
|
|
25762
|
-
}, item), link ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|
|
25763
|
-
text: buttonText,
|
|
25764
|
-
url: url,
|
|
25765
|
-
variant: "smallGhost",
|
|
25766
|
-
dataQa: buttonText,
|
|
25767
|
-
extraStyles: "min-width: 0;"
|
|
25768
|
-
}) : buttonAction ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
25769
|
-
text: buttonText,
|
|
25770
|
-
action: buttonAction,
|
|
25771
|
-
variant: "smallGhost",
|
|
25772
|
-
dataQa: buttonText,
|
|
25773
|
-
extraStyles: "min-width: 0;"
|
|
25774
|
-
}) : helpText ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25775
|
-
color: STORM_GREY,
|
|
25776
|
-
extraStyles: "font-style: italic;"
|
|
25777
|
-
}, helpText) : /*#__PURE__*/React__default.createElement(React.Fragment, null))))));
|
|
25392
|
+
var createFormat = function createFormat(formats, formatChar) {
|
|
25393
|
+
return {
|
|
25394
|
+
uniqueDelimiters: getUniqueFormatDelimiters(formats, formatChar),
|
|
25395
|
+
formats: formats,
|
|
25396
|
+
formatChar: formatChar
|
|
25397
|
+
};
|
|
25778
25398
|
};
|
|
25779
25399
|
|
|
25780
|
-
function
|
|
25781
|
-
|
|
25782
|
-
|
|
25783
|
-
|
|
25400
|
+
var FormattedInput = function FormattedInput(_ref) {
|
|
25401
|
+
var value = _ref.value,
|
|
25402
|
+
formatter = _ref.formatter,
|
|
25403
|
+
onChange = _ref.onChange,
|
|
25404
|
+
props = _objectWithoutProperties$1(_ref, ["value", "formatter", "onChange"]);
|
|
25784
25405
|
|
|
25785
|
-
|
|
25786
|
-
|
|
25787
|
-
|
|
25788
|
-
|
|
25789
|
-
}
|
|
25790
|
-
}
|
|
25406
|
+
var _useState = React.useState(format$1(formatter)(value)),
|
|
25407
|
+
_useState2 = _slicedToArray$1(_useState, 2),
|
|
25408
|
+
formattedValue = _useState2[0],
|
|
25409
|
+
setFormattedValue = _useState2[1];
|
|
25791
25410
|
|
|
25792
|
-
|
|
25793
|
-
|
|
25411
|
+
var inputEl = React.useRef(null);
|
|
25412
|
+
var stateRefs = React.useRef({
|
|
25413
|
+
selectionStart: 0,
|
|
25414
|
+
selectionEnd: 0,
|
|
25415
|
+
isDelete: false,
|
|
25416
|
+
rawValue: ''
|
|
25417
|
+
});
|
|
25418
|
+
React.useLayoutEffect(function () {
|
|
25419
|
+
// A lot of the work here is cursor manipulation
|
|
25420
|
+
if (inputEl.current && inputEl.current === document.activeElement) {
|
|
25421
|
+
inputEl.current.setSelectionRange(stateRefs.current.selectionStart, stateRefs.current.selectionEnd);
|
|
25422
|
+
}
|
|
25423
|
+
}, [stateRefs]);
|
|
25794
25424
|
|
|
25795
|
-
|
|
25796
|
-
|
|
25425
|
+
var handleChange = function handleChange(event) {
|
|
25426
|
+
var deleteKeyPressed = stateRefs.current.isDelete;
|
|
25427
|
+
var maxFormatExceeded = stateRefs.current.rawValue.length >= formatter.formats.length - 1;
|
|
25797
25428
|
|
|
25798
|
-
|
|
25799
|
-
|
|
25800
|
-
|
|
25801
|
-
|
|
25802
|
-
|
|
25429
|
+
if (maxFormatExceeded && !deleteKeyPressed) {
|
|
25430
|
+
return;
|
|
25431
|
+
}
|
|
25432
|
+
/* At the beginning of onChange, event.target.value is a concat of the previous formatted value
|
|
25433
|
+
* and an unformatted injection at the start, end, or in the middle (maybe a deletion). To prepare
|
|
25434
|
+
* the unformatted value for the user's onChange, the formatted string and unformatted injection need
|
|
25435
|
+
* to be separated, then unformat the formatted string, then insert (or delete) the injection from the
|
|
25436
|
+
* old unformatted value.
|
|
25437
|
+
*/
|
|
25803
25438
|
|
|
25804
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
25805
|
-
key = sourceKeys[i];
|
|
25806
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
25807
|
-
target[key] = source[key];
|
|
25808
|
-
}
|
|
25809
25439
|
|
|
25810
|
-
|
|
25811
|
-
|
|
25440
|
+
var injectionLength = event.target.value.length - formattedValue.length;
|
|
25441
|
+
var end = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? stateRefs.current.selectionStart + injectionLength : stateRefs.current.selectionEnd - 1;
|
|
25442
|
+
var injection = event.target.value.substring(stateRefs.current.selectionStart, end); // Injection is the new unformatted piece of the input
|
|
25443
|
+
// Need to find where to put it
|
|
25812
25444
|
|
|
25813
|
-
|
|
25814
|
-
|
|
25445
|
+
var rawInjectionPointStart = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter);
|
|
25446
|
+
var rawInjectionPointEnd = formattedToUnformattedIndex(stateRefs.current.selectionEnd, stateRefs.current.rawValue, formatter); // Unformat the previous formatted value for injection
|
|
25447
|
+
// Using the relevant format string, strips away chars not marked with the formatChar
|
|
25815
25448
|
|
|
25816
|
-
|
|
25449
|
+
var unformattedOldValue = unformat(formatter)(formattedValue, stateRefs.current.rawValue.length); // Edit the previous unformatted value (either add, update or delete)
|
|
25817
25450
|
|
|
25818
|
-
|
|
25451
|
+
var injectIntoOldValue = inject(unformattedOldValue);
|
|
25452
|
+
var unformattedNewValue = deleteKeyPressed ? rawInjectionPointStart === rawInjectionPointEnd ? injectIntoOldValue(rawInjectionPointStart - 1, rawInjectionPointStart, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, injection);
|
|
25453
|
+
var lengthDifference = unformattedNewValue.length - stateRefs.current.rawValue.length;
|
|
25454
|
+
var rawIndex = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter) + lengthDifference; // Find the new cursor position for the potential formatted value
|
|
25455
|
+
// Applied by useLayoutEffect
|
|
25819
25456
|
|
|
25820
|
-
|
|
25821
|
-
var
|
|
25457
|
+
var newFormattedCursorPosition = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? unformattedToFormattedIndex(rawIndex, unformattedNewValue, formatter, deleteKeyPressed) : deleteKeyPressed ? stateRefs.current.selectionStart : stateRefs.current.selectionEnd;
|
|
25458
|
+
var formattedNewValue = format$1(formatter)(unformattedNewValue);
|
|
25459
|
+
setFormattedValue(formattedNewValue); // Apply the external onChange function to the raw underlying string
|
|
25460
|
+
// This is where the user generally updates the input value
|
|
25822
25461
|
|
|
25823
|
-
|
|
25824
|
-
|
|
25825
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
25826
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
25827
|
-
target[key] = source[key];
|
|
25462
|
+
if (onChange) {
|
|
25463
|
+
onChange(unformattedNewValue);
|
|
25828
25464
|
}
|
|
25829
|
-
}
|
|
25830
|
-
|
|
25831
|
-
return target;
|
|
25832
|
-
}
|
|
25465
|
+
};
|
|
25833
25466
|
|
|
25834
|
-
|
|
25835
|
-
|
|
25836
|
-
|
|
25837
|
-
|
|
25838
|
-
|
|
25839
|
-
|
|
25840
|
-
|
|
25841
|
-
|
|
25842
|
-
|
|
25843
|
-
|
|
25844
|
-
|
|
25845
|
-
|
|
25846
|
-
|
|
25847
|
-
}
|
|
25848
|
-
}
|
|
25849
|
-
|
|
25850
|
-
function _arrayWithHoles$1(arr) {
|
|
25851
|
-
if (Array.isArray(arr)) return arr;
|
|
25852
|
-
}
|
|
25853
|
-
|
|
25854
|
-
function _iterableToArray$1(iter) {
|
|
25855
|
-
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
25856
|
-
}
|
|
25857
|
-
|
|
25858
|
-
function _iterableToArrayLimit$1(arr, i) {
|
|
25859
|
-
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
|
25860
|
-
return;
|
|
25861
|
-
}
|
|
25862
|
-
|
|
25863
|
-
var _arr = [];
|
|
25864
|
-
var _n = true;
|
|
25865
|
-
var _d = false;
|
|
25866
|
-
var _e = undefined;
|
|
25867
|
-
|
|
25868
|
-
try {
|
|
25869
|
-
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
25870
|
-
_arr.push(_s.value);
|
|
25871
|
-
|
|
25872
|
-
if (i && _arr.length === i) break;
|
|
25873
|
-
}
|
|
25874
|
-
} catch (err) {
|
|
25875
|
-
_d = true;
|
|
25876
|
-
_e = err;
|
|
25877
|
-
} finally {
|
|
25878
|
-
try {
|
|
25879
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
25880
|
-
} finally {
|
|
25881
|
-
if (_d) throw _e;
|
|
25882
|
-
}
|
|
25883
|
-
}
|
|
25884
|
-
|
|
25885
|
-
return _arr;
|
|
25886
|
-
}
|
|
25887
|
-
|
|
25888
|
-
function _nonIterableSpread$1() {
|
|
25889
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
25890
|
-
}
|
|
25891
|
-
|
|
25892
|
-
function _nonIterableRest$1() {
|
|
25893
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
25894
|
-
}
|
|
25895
|
-
|
|
25896
|
-
var getUniqueFormatDelimiters = function getUniqueFormatDelimiters(formats, formatChar) {
|
|
25897
|
-
return _toConsumableArray$1(new Set(formats.join("").split(formatChar).join("").split("")));
|
|
25898
|
-
};
|
|
25899
|
-
var format$1 = function format(formatter) {
|
|
25900
|
-
return function (value) {
|
|
25901
|
-
var usedFormat = formatter.formats[value.length];
|
|
25902
|
-
|
|
25903
|
-
if (!usedFormat) {
|
|
25904
|
-
return value;
|
|
25905
|
-
}
|
|
25906
|
-
|
|
25907
|
-
var formatPieces = usedFormat.split(formatter.formatChar);
|
|
25908
|
-
var valuePieces = value.split("");
|
|
25909
|
-
var zipped = formatPieces.map(function (v, i) {
|
|
25910
|
-
return v + (valuePieces[i] || "");
|
|
25911
|
-
});
|
|
25912
|
-
return zipped.join("");
|
|
25913
|
-
};
|
|
25914
|
-
};
|
|
25915
|
-
|
|
25916
|
-
var countDelims = function countDelims(formatter, index) {
|
|
25917
|
-
var count = 0;
|
|
25918
|
-
var format = formatter.formats[index];
|
|
25919
|
-
if (!format) return 0;
|
|
25920
|
-
formatter.uniqueDelimiters.forEach(function (delim) {
|
|
25921
|
-
return count += format.split(delim).length - 1;
|
|
25922
|
-
});
|
|
25923
|
-
return count;
|
|
25924
|
-
};
|
|
25925
|
-
|
|
25926
|
-
var unformat = function unformat(formatter) {
|
|
25927
|
-
return function (formattedValue, formatIndex) {
|
|
25928
|
-
if (formatIndex >= formatter.formats.length) {
|
|
25929
|
-
return formattedValue;
|
|
25930
|
-
}
|
|
25931
|
-
|
|
25932
|
-
var format = formatter.formats[formatIndex];
|
|
25933
|
-
return formattedValue.split("").filter(function (_, i) {
|
|
25934
|
-
return !(format[i] != formatter.formatChar);
|
|
25935
|
-
}).join("");
|
|
25936
|
-
};
|
|
25937
|
-
};
|
|
25938
|
-
var inject = function inject(baseString) {
|
|
25939
|
-
return function (start, end, newString) {
|
|
25940
|
-
return baseString.substring(0, start) + newString + baseString.substring(end);
|
|
25941
|
-
};
|
|
25942
|
-
};
|
|
25943
|
-
var formattedToUnformattedIndex = function formattedToUnformattedIndex(formattedIndex, rawValue, formatter) {
|
|
25944
|
-
var maxFormatExceeded = rawValue.length >= formatter.formats.length;
|
|
25945
|
-
|
|
25946
|
-
if (maxFormatExceeded) {
|
|
25947
|
-
return formattedIndex;
|
|
25948
|
-
} else {
|
|
25949
|
-
var formatString = formatter.formats[rawValue.length];
|
|
25950
|
-
var beforeString = formatString.slice(0, formattedIndex);
|
|
25951
|
-
return beforeString.split("").filter(function (c) {
|
|
25952
|
-
return c === formatter.formatChar;
|
|
25953
|
-
}).length;
|
|
25954
|
-
}
|
|
25955
|
-
};
|
|
25956
|
-
var unformattedToFormattedIndex = function unformattedToFormattedIndex(rawIndex, rawValue, formatter, del) {
|
|
25957
|
-
var maxFormatExceeded = rawValue.length >= formatter.formats.length; // If forced to stay formatted, offset by delims - 1
|
|
25958
|
-
// This is done so the component doesn't assume that any added chars will be kept
|
|
25959
|
-
// (i.e. if an external constraint is applied)
|
|
25960
|
-
|
|
25961
|
-
if (maxFormatExceeded) {
|
|
25962
|
-
var delims = countDelims(formatter, rawValue.length - 1);
|
|
25963
|
-
return delims > 0 && !del ? rawIndex + delims - 1 : rawIndex;
|
|
25964
|
-
} else {
|
|
25965
|
-
return formatter.formats[rawValue.length].split(formatter.formatChar).slice(0, rawIndex).reduce(function (acc, curr) {
|
|
25966
|
-
return curr.length + acc;
|
|
25967
|
-
}, 0) + rawIndex;
|
|
25968
|
-
}
|
|
25969
|
-
};
|
|
25970
|
-
|
|
25971
|
-
var createFormat = function createFormat(formats, formatChar) {
|
|
25972
|
-
return {
|
|
25973
|
-
uniqueDelimiters: getUniqueFormatDelimiters(formats, formatChar),
|
|
25974
|
-
formats: formats,
|
|
25975
|
-
formatChar: formatChar
|
|
25976
|
-
};
|
|
25977
|
-
};
|
|
25978
|
-
|
|
25979
|
-
var FormattedInput = function FormattedInput(_ref) {
|
|
25980
|
-
var value = _ref.value,
|
|
25981
|
-
formatter = _ref.formatter,
|
|
25982
|
-
onChange = _ref.onChange,
|
|
25983
|
-
props = _objectWithoutProperties$1(_ref, ["value", "formatter", "onChange"]);
|
|
25984
|
-
|
|
25985
|
-
var _useState = React.useState(format$1(formatter)(value)),
|
|
25986
|
-
_useState2 = _slicedToArray$1(_useState, 2),
|
|
25987
|
-
formattedValue = _useState2[0],
|
|
25988
|
-
setFormattedValue = _useState2[1];
|
|
25989
|
-
|
|
25990
|
-
var inputEl = React.useRef(null);
|
|
25991
|
-
var stateRefs = React.useRef({
|
|
25992
|
-
selectionStart: 0,
|
|
25993
|
-
selectionEnd: 0,
|
|
25994
|
-
isDelete: false,
|
|
25995
|
-
rawValue: ''
|
|
25996
|
-
});
|
|
25997
|
-
React.useLayoutEffect(function () {
|
|
25998
|
-
// A lot of the work here is cursor manipulation
|
|
25999
|
-
if (inputEl.current && inputEl.current === document.activeElement) {
|
|
26000
|
-
inputEl.current.setSelectionRange(stateRefs.current.selectionStart, stateRefs.current.selectionEnd);
|
|
26001
|
-
}
|
|
26002
|
-
}, [stateRefs]);
|
|
26003
|
-
|
|
26004
|
-
var handleChange = function handleChange(event) {
|
|
26005
|
-
var deleteKeyPressed = stateRefs.current.isDelete;
|
|
26006
|
-
var maxFormatExceeded = stateRefs.current.rawValue.length >= formatter.formats.length - 1;
|
|
26007
|
-
|
|
26008
|
-
if (maxFormatExceeded && !deleteKeyPressed) {
|
|
26009
|
-
return;
|
|
26010
|
-
}
|
|
26011
|
-
/* At the beginning of onChange, event.target.value is a concat of the previous formatted value
|
|
26012
|
-
* and an unformatted injection at the start, end, or in the middle (maybe a deletion). To prepare
|
|
26013
|
-
* the unformatted value for the user's onChange, the formatted string and unformatted injection need
|
|
26014
|
-
* to be separated, then unformat the formatted string, then insert (or delete) the injection from the
|
|
26015
|
-
* old unformatted value.
|
|
26016
|
-
*/
|
|
26017
|
-
|
|
26018
|
-
|
|
26019
|
-
var injectionLength = event.target.value.length - formattedValue.length;
|
|
26020
|
-
var end = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? stateRefs.current.selectionStart + injectionLength : stateRefs.current.selectionEnd - 1;
|
|
26021
|
-
var injection = event.target.value.substring(stateRefs.current.selectionStart, end); // Injection is the new unformatted piece of the input
|
|
26022
|
-
// Need to find where to put it
|
|
26023
|
-
|
|
26024
|
-
var rawInjectionPointStart = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter);
|
|
26025
|
-
var rawInjectionPointEnd = formattedToUnformattedIndex(stateRefs.current.selectionEnd, stateRefs.current.rawValue, formatter); // Unformat the previous formatted value for injection
|
|
26026
|
-
// Using the relevant format string, strips away chars not marked with the formatChar
|
|
26027
|
-
|
|
26028
|
-
var unformattedOldValue = unformat(formatter)(formattedValue, stateRefs.current.rawValue.length); // Edit the previous unformatted value (either add, update or delete)
|
|
26029
|
-
|
|
26030
|
-
var injectIntoOldValue = inject(unformattedOldValue);
|
|
26031
|
-
var unformattedNewValue = deleteKeyPressed ? rawInjectionPointStart === rawInjectionPointEnd ? injectIntoOldValue(rawInjectionPointStart - 1, rawInjectionPointStart, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, injection);
|
|
26032
|
-
var lengthDifference = unformattedNewValue.length - stateRefs.current.rawValue.length;
|
|
26033
|
-
var rawIndex = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter) + lengthDifference; // Find the new cursor position for the potential formatted value
|
|
26034
|
-
// Applied by useLayoutEffect
|
|
26035
|
-
|
|
26036
|
-
var newFormattedCursorPosition = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? unformattedToFormattedIndex(rawIndex, unformattedNewValue, formatter, deleteKeyPressed) : deleteKeyPressed ? stateRefs.current.selectionStart : stateRefs.current.selectionEnd;
|
|
26037
|
-
var formattedNewValue = format$1(formatter)(unformattedNewValue);
|
|
26038
|
-
setFormattedValue(formattedNewValue); // Apply the external onChange function to the raw underlying string
|
|
26039
|
-
// This is where the user generally updates the input value
|
|
26040
|
-
|
|
26041
|
-
if (onChange) {
|
|
26042
|
-
onChange(unformattedNewValue);
|
|
26043
|
-
}
|
|
26044
|
-
};
|
|
26045
|
-
|
|
26046
|
-
return React__default.createElement("input", _extends$2({}, props, {
|
|
26047
|
-
ref: inputEl,
|
|
26048
|
-
value: format$1(formatter)(value),
|
|
26049
|
-
onKeyDown: function onKeyDown(event) {
|
|
26050
|
-
// Keep track of the state of the input before onChange
|
|
26051
|
-
stateRefs.current = {
|
|
26052
|
-
isDelete: event.key === "Backspace" || event.key === "Delete",
|
|
26053
|
-
selectionStart: event.target.selectionStart,
|
|
26054
|
-
selectionEnd: event.target.selectionEnd,
|
|
26055
|
-
rawValue: value
|
|
26056
|
-
};
|
|
26057
|
-
},
|
|
26058
|
-
onChange: handleChange
|
|
26059
|
-
}));
|
|
26060
|
-
};
|
|
25467
|
+
return React__default.createElement("input", _extends$2({}, props, {
|
|
25468
|
+
ref: inputEl,
|
|
25469
|
+
value: format$1(formatter)(value),
|
|
25470
|
+
onKeyDown: function onKeyDown(event) {
|
|
25471
|
+
// Keep track of the state of the input before onChange
|
|
25472
|
+
stateRefs.current = {
|
|
25473
|
+
isDelete: event.key === "Backspace" || event.key === "Delete",
|
|
25474
|
+
selectionStart: event.target.selectionStart,
|
|
25475
|
+
selectionEnd: event.target.selectionEnd,
|
|
25476
|
+
rawValue: value
|
|
25477
|
+
};
|
|
25478
|
+
},
|
|
25479
|
+
onChange: handleChange
|
|
25480
|
+
}));
|
|
25481
|
+
};
|
|
26061
25482
|
|
|
26062
25483
|
var linkColor$2 = {
|
|
26063
25484
|
"default": "".concat(MATISSE_BLUE),
|
|
@@ -26108,7 +25529,7 @@ var hoverFocusStyles$1 = {
|
|
|
26108
25529
|
var formFooterPanel = {
|
|
26109
25530
|
"default": "".concat(INFO_BLUE)
|
|
26110
25531
|
};
|
|
26111
|
-
var fallbackValues$
|
|
25532
|
+
var fallbackValues$m = {
|
|
26112
25533
|
linkColor: linkColor$2,
|
|
26113
25534
|
formBackgroundColor: formBackgroundColor$1,
|
|
26114
25535
|
inputBackgroundColor: inputBackgroundColor$1,
|
|
@@ -26365,7 +25786,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26365
25786
|
padding: "0 0 0 auto"
|
|
26366
25787
|
}, decorator)));
|
|
26367
25788
|
};
|
|
26368
|
-
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$
|
|
25789
|
+
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$m, "default");
|
|
26369
25790
|
|
|
26370
25791
|
var _excluded$A = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
26371
25792
|
var FormInputRow = function FormInputRow(_ref) {
|
|
@@ -26413,7 +25834,7 @@ var FormContainer = function FormContainer(_ref) {
|
|
|
26413
25834
|
borderRadius: "4px"
|
|
26414
25835
|
}, rest), children);
|
|
26415
25836
|
};
|
|
26416
|
-
var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$
|
|
25837
|
+
var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$m, "default");
|
|
26417
25838
|
|
|
26418
25839
|
var FormFooterPanel = function FormFooterPanel(_ref) {
|
|
26419
25840
|
var themeValues = _ref.themeValues,
|
|
@@ -26434,7 +25855,7 @@ var FormFooterPanel = function FormFooterPanel(_ref) {
|
|
|
26434
25855
|
text: linkText
|
|
26435
25856
|
})));
|
|
26436
25857
|
};
|
|
26437
|
-
var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$
|
|
25858
|
+
var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$m, "default");
|
|
26438
25859
|
|
|
26439
25860
|
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"];
|
|
26440
25861
|
var TextareaField = styled__default.textarea.withConfig({
|
|
@@ -26570,7 +25991,7 @@ var FormTextarea = function FormTextarea(_ref8) {
|
|
|
26570
25991
|
extraStyles: "height: ".concat(themeValues.lineHeight, "; ").concat(errorFieldExtraStyles, ";")
|
|
26571
25992
|
})));
|
|
26572
25993
|
};
|
|
26573
|
-
var FormTextarea$1 = themeComponent(FormTextarea, "FormTextarea", fallbackValues$
|
|
25994
|
+
var FormTextarea$1 = themeComponent(FormTextarea, "FormTextarea", fallbackValues$m, "default");
|
|
26574
25995
|
|
|
26575
25996
|
var fontSize$7 = {
|
|
26576
25997
|
"default": "1rem",
|
|
@@ -26584,7 +26005,7 @@ var color$9 = {
|
|
|
26584
26005
|
"default": "".concat(CHARADE_GREY),
|
|
26585
26006
|
radio: "".concat(MINESHAFT_GREY)
|
|
26586
26007
|
};
|
|
26587
|
-
var fallbackValues$
|
|
26008
|
+
var fallbackValues$n = {
|
|
26588
26009
|
fontSize: fontSize$7,
|
|
26589
26010
|
padding: padding$1,
|
|
26590
26011
|
color: color$9
|
|
@@ -26626,11 +26047,11 @@ var FormattedAddress = function FormattedAddress(_ref) {
|
|
|
26626
26047
|
dataQa: "".concat(qaPrefix, "-3")
|
|
26627
26048
|
}, city, ", ", stateProvince, " ".concat(zip), country ? " ".concat(country) : "")));
|
|
26628
26049
|
};
|
|
26629
|
-
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$
|
|
26050
|
+
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$n, "default");
|
|
26630
26051
|
|
|
26631
26052
|
var textColor$1 = "".concat(CHARADE_GREY);
|
|
26632
26053
|
var autopayTextColor = "".concat(REGENT_GREY);
|
|
26633
|
-
var fallbackValues$
|
|
26054
|
+
var fallbackValues$o = {
|
|
26634
26055
|
textColor: textColor$1,
|
|
26635
26056
|
autopayTextColor: autopayTextColor
|
|
26636
26057
|
};
|
|
@@ -26668,11 +26089,11 @@ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
|
|
|
26668
26089
|
extraStyles: "font-style: italic;"
|
|
26669
26090
|
}, "Autopay Enabled")));
|
|
26670
26091
|
};
|
|
26671
|
-
var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$
|
|
26092
|
+
var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$o);
|
|
26672
26093
|
|
|
26673
26094
|
var textColor$2 = "".concat(CHARADE_GREY);
|
|
26674
26095
|
var autopayTextColor$1 = "".concat(REGENT_GREY);
|
|
26675
|
-
var fallbackValues$
|
|
26096
|
+
var fallbackValues$p = {
|
|
26676
26097
|
textColor: textColor$2,
|
|
26677
26098
|
autopayTextColor: autopayTextColor$1
|
|
26678
26099
|
};
|
|
@@ -26764,7 +26185,7 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
|
26764
26185
|
extraStyles: "font-style: italic;"
|
|
26765
26186
|
}, "Autopay Enabled")));
|
|
26766
26187
|
};
|
|
26767
|
-
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$
|
|
26188
|
+
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$p);
|
|
26768
26189
|
|
|
26769
26190
|
var Hamburger = styled__default.button.withConfig({
|
|
26770
26191
|
displayName: "HamburgerButton__Hamburger",
|
|
@@ -26845,7 +26266,7 @@ var fontSize$8 = {
|
|
|
26845
26266
|
h5: "1.375rem",
|
|
26846
26267
|
h6: "1.25rem"
|
|
26847
26268
|
};
|
|
26848
|
-
var fallbackValues$
|
|
26269
|
+
var fallbackValues$q = {
|
|
26849
26270
|
fontFamily: fontFamily$5,
|
|
26850
26271
|
fontSize: fontSize$8
|
|
26851
26272
|
};
|
|
@@ -26884,7 +26305,7 @@ var Heading = function Heading(_ref) {
|
|
|
26884
26305
|
"data-qa": dataQa
|
|
26885
26306
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
26886
26307
|
};
|
|
26887
|
-
var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$
|
|
26308
|
+
var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$q, "h1");
|
|
26888
26309
|
|
|
26889
26310
|
var Image = styled__default.img.withConfig({
|
|
26890
26311
|
displayName: "ImageBoxstyled__Image",
|
|
@@ -26940,7 +26361,7 @@ var ImageBox = function ImageBox(_ref) {
|
|
|
26940
26361
|
};
|
|
26941
26362
|
|
|
26942
26363
|
var color$a = "#15749D";
|
|
26943
|
-
var fallbackValues$
|
|
26364
|
+
var fallbackValues$r = {
|
|
26944
26365
|
color: color$a
|
|
26945
26366
|
};
|
|
26946
26367
|
|
|
@@ -27006,7 +26427,7 @@ var Spinner$1 = function Spinner(_ref6) {
|
|
|
27006
26427
|
strokeWidth: strokeWidth
|
|
27007
26428
|
})));
|
|
27008
26429
|
};
|
|
27009
|
-
var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$
|
|
26430
|
+
var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$r);
|
|
27010
26431
|
|
|
27011
26432
|
var Jumbo = function Jumbo(_ref) {
|
|
27012
26433
|
var showButton = _ref.showButton,
|
|
@@ -27098,7 +26519,7 @@ var fontWeight$5 = {
|
|
|
27098
26519
|
// fontsize Detail regular
|
|
27099
26520
|
large: "700" // fontsize Title small
|
|
27100
26521
|
};
|
|
27101
|
-
var fallbackValues$
|
|
26522
|
+
var fallbackValues$s = {
|
|
27102
26523
|
fontWeight: fontWeight$5
|
|
27103
26524
|
};
|
|
27104
26525
|
|
|
@@ -27157,7 +26578,7 @@ var LabeledAmount = function LabeledAmount(_ref) {
|
|
|
27157
26578
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
27158
26579
|
return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
|
|
27159
26580
|
};
|
|
27160
|
-
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$
|
|
26581
|
+
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$s, "default");
|
|
27161
26582
|
|
|
27162
26583
|
var weightTitle = {
|
|
27163
26584
|
"default": "600",
|
|
@@ -27167,7 +26588,7 @@ var detailVariant = {
|
|
|
27167
26588
|
"default": "large",
|
|
27168
26589
|
small: "small"
|
|
27169
26590
|
};
|
|
27170
|
-
var fallbackValues$
|
|
26591
|
+
var fallbackValues$t = {
|
|
27171
26592
|
weightTitle: weightTitle,
|
|
27172
26593
|
detailVariant: detailVariant
|
|
27173
26594
|
};
|
|
@@ -27215,7 +26636,7 @@ var LineItem = function LineItem(_ref) {
|
|
|
27215
26636
|
childGap: "0.25rem"
|
|
27216
26637
|
}, visibleCustomAttrs));
|
|
27217
26638
|
};
|
|
27218
|
-
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$
|
|
26639
|
+
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$t, "default");
|
|
27219
26640
|
|
|
27220
26641
|
var Loading = function Loading() {
|
|
27221
26642
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -27475,7 +26896,7 @@ var height$1 = {
|
|
|
27475
26896
|
"default": "3rem",
|
|
27476
26897
|
large: "192px"
|
|
27477
26898
|
};
|
|
27478
|
-
var fallbackValues$
|
|
26899
|
+
var fallbackValues$u = {
|
|
27479
26900
|
color: color$b,
|
|
27480
26901
|
height: height$1
|
|
27481
26902
|
};
|
|
@@ -27617,12 +27038,12 @@ var Placeholder = function Placeholder(_ref4) {
|
|
|
27617
27038
|
extraStyles: "padding: 0 0 0 8px; text-align: center;"
|
|
27618
27039
|
}, text)))))))))));
|
|
27619
27040
|
};
|
|
27620
|
-
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$
|
|
27041
|
+
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$u, "default");
|
|
27621
27042
|
|
|
27622
27043
|
var backgroundColor$5 = {
|
|
27623
27044
|
"default": "".concat(WHITE)
|
|
27624
27045
|
};
|
|
27625
|
-
var fallbackValues$
|
|
27046
|
+
var fallbackValues$v = {
|
|
27626
27047
|
backgroundColor: backgroundColor$5
|
|
27627
27048
|
};
|
|
27628
27049
|
|
|
@@ -27649,13 +27070,13 @@ var ProcessingFee = function ProcessingFee(_ref) {
|
|
|
27649
27070
|
showQuitLink: false
|
|
27650
27071
|
}));
|
|
27651
27072
|
};
|
|
27652
|
-
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$
|
|
27073
|
+
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$v, "default");
|
|
27653
27074
|
|
|
27654
|
-
var activeColor$
|
|
27075
|
+
var activeColor$5 = MATISSE_BLUE;
|
|
27655
27076
|
var disabledColor$1 = MANATEE_GREY;
|
|
27656
27077
|
var inactiveBorderColor = GREY_CHATEAU;
|
|
27657
|
-
var fallbackValues$
|
|
27658
|
-
activeColor: activeColor$
|
|
27078
|
+
var fallbackValues$w = {
|
|
27079
|
+
activeColor: activeColor$5,
|
|
27659
27080
|
disabledColor: disabledColor$1,
|
|
27660
27081
|
inactiveBorderColor: inactiveBorderColor
|
|
27661
27082
|
};
|
|
@@ -27741,12 +27162,12 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
|
|
|
27741
27162
|
borderColor: themeValues.inactiveBorderColor
|
|
27742
27163
|
}), labelText));
|
|
27743
27164
|
};
|
|
27744
|
-
var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$
|
|
27165
|
+
var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$w);
|
|
27745
27166
|
|
|
27746
|
-
var activeColor$
|
|
27167
|
+
var activeColor$6 = "".concat(MATISSE_BLUE);
|
|
27747
27168
|
var inactiveColor$1 = "".concat(STORM_GREY);
|
|
27748
|
-
var fallbackValues$
|
|
27749
|
-
activeColor: activeColor$
|
|
27169
|
+
var fallbackValues$x = {
|
|
27170
|
+
activeColor: activeColor$6,
|
|
27750
27171
|
inactiveColor: inactiveColor$1
|
|
27751
27172
|
};
|
|
27752
27173
|
|
|
@@ -27854,11 +27275,11 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27854
27275
|
borderRadius: "8px"
|
|
27855
27276
|
})));
|
|
27856
27277
|
};
|
|
27857
|
-
var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$
|
|
27278
|
+
var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$x);
|
|
27858
27279
|
|
|
27859
27280
|
var searchIconColor = WHITE;
|
|
27860
27281
|
var searchIconBackgroundColor = MATISSE_BLUE;
|
|
27861
|
-
var fallbackValues$
|
|
27282
|
+
var fallbackValues$y = {
|
|
27862
27283
|
searchIconColor: searchIconColor,
|
|
27863
27284
|
searchIconBackgroundColor: searchIconBackgroundColor
|
|
27864
27285
|
};
|
|
@@ -27956,12 +27377,12 @@ var Search = function Search(_ref) {
|
|
|
27956
27377
|
size: 24
|
|
27957
27378
|
})));
|
|
27958
27379
|
};
|
|
27959
|
-
var Search$1 = themeComponent(Search, "Search", fallbackValues$
|
|
27380
|
+
var Search$1 = themeComponent(Search, "Search", fallbackValues$y);
|
|
27960
27381
|
|
|
27961
27382
|
var border$2 = {
|
|
27962
27383
|
"default": "1px solid #caced8"
|
|
27963
27384
|
};
|
|
27964
|
-
var fallbackValues$
|
|
27385
|
+
var fallbackValues$z = {
|
|
27965
27386
|
border: border$2
|
|
27966
27387
|
};
|
|
27967
27388
|
|
|
@@ -28034,7 +27455,7 @@ var SearchableSelect = function SearchableSelect(_ref) {
|
|
|
28034
27455
|
});
|
|
28035
27456
|
}))));
|
|
28036
27457
|
};
|
|
28037
|
-
var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$
|
|
27458
|
+
var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$z, "default");
|
|
28038
27459
|
|
|
28039
27460
|
var borderColor$4 = {
|
|
28040
27461
|
"default": "".concat(GREY_CHATEAU)
|
|
@@ -28042,7 +27463,7 @@ var borderColor$4 = {
|
|
|
28042
27463
|
var borderSize = {
|
|
28043
27464
|
"default": "1px"
|
|
28044
27465
|
};
|
|
28045
|
-
var fallbackValues$
|
|
27466
|
+
var fallbackValues$A = {
|
|
28046
27467
|
borderColor: borderColor$4,
|
|
28047
27468
|
borderSize: borderSize
|
|
28048
27469
|
};
|
|
@@ -28060,7 +27481,7 @@ var SolidDivider = function SolidDivider(_ref) {
|
|
|
28060
27481
|
borderWidthOverride: "0px 0px ".concat(borderSize || themeValues.borderSize, " 0px")
|
|
28061
27482
|
});
|
|
28062
27483
|
};
|
|
28063
|
-
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$
|
|
27484
|
+
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$A, "default");
|
|
28064
27485
|
|
|
28065
27486
|
var placeHolderOptionUS = {
|
|
28066
27487
|
text: "Please select state",
|
|
@@ -38655,7 +38076,7 @@ var white = "".concat(WHITE);
|
|
|
38655
38076
|
var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
|
|
38656
38077
|
var rightLabelStyles = "\n > div {\n flex-direction: row;\n }\n";
|
|
38657
38078
|
var leftLabelStyles = "\n > div {\n flex-direction: row-reverse;\n }\n";
|
|
38658
|
-
var fallbackValues$
|
|
38079
|
+
var fallbackValues$B = {
|
|
38659
38080
|
onBackground: onBackground,
|
|
38660
38081
|
disabledBackground: disabledBackground,
|
|
38661
38082
|
disabledBackgroundLight: disabledBackgroundLight,
|
|
@@ -38827,7 +38248,7 @@ var ToggleSwitch = function ToggleSwitch(_ref10) {
|
|
|
38827
38248
|
padding: "0"
|
|
38828
38249
|
}, label))));
|
|
38829
38250
|
};
|
|
38830
|
-
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$
|
|
38251
|
+
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$B);
|
|
38831
38252
|
|
|
38832
38253
|
var background$2 = "".concat(ATHENS_GREY);
|
|
38833
38254
|
var white$1 = "".concat(WHITE);
|
|
@@ -38874,7 +38295,7 @@ var imageBackgroundColor = INFO_BLUE;
|
|
|
38874
38295
|
var headerBackgroundColor = STORM_GREY;
|
|
38875
38296
|
var headerColor = WHITE;
|
|
38876
38297
|
var contentBackgroundColor = INFO_BLUE;
|
|
38877
|
-
var fallbackValues$
|
|
38298
|
+
var fallbackValues$C = {
|
|
38878
38299
|
backgroundColor: backgroundColor$6,
|
|
38879
38300
|
contentBackgroundColor: contentBackgroundColor,
|
|
38880
38301
|
imageBackgroundColor: imageBackgroundColor,
|
|
@@ -38899,7 +38320,7 @@ var CardImage = styled__default.img.withConfig({
|
|
|
38899
38320
|
var titleColor = BRIGHT_GREY;
|
|
38900
38321
|
var titleWeight = FONT_WEIGHT_BOLD;
|
|
38901
38322
|
var textColor$3 = BRIGHT_GREY;
|
|
38902
|
-
var fallbackValues$
|
|
38323
|
+
var fallbackValues$D = {
|
|
38903
38324
|
titleColor: titleColor,
|
|
38904
38325
|
titleWeight: titleWeight,
|
|
38905
38326
|
textColor: textColor$3
|
|
@@ -38944,7 +38365,7 @@ var CardText = function CardText(_ref) {
|
|
|
38944
38365
|
color: themeValues.textColor
|
|
38945
38366
|
}, text))));
|
|
38946
38367
|
};
|
|
38947
|
-
var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$
|
|
38368
|
+
var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$D);
|
|
38948
38369
|
|
|
38949
38370
|
var CardHeader = function CardHeader(_ref) {
|
|
38950
38371
|
var backgroundColor = _ref.backgroundColor,
|
|
@@ -39060,14 +38481,14 @@ var Card = function Card(_ref) {
|
|
|
39060
38481
|
titleVariant: titleVariant
|
|
39061
38482
|
}), children)))));
|
|
39062
38483
|
};
|
|
39063
|
-
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$
|
|
38484
|
+
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$C);
|
|
39064
38485
|
|
|
39065
38486
|
var fontFamily$6 = "Public Sans, sans-serif";
|
|
39066
|
-
var activeColor$
|
|
38487
|
+
var activeColor$7 = MATISSE_BLUE;
|
|
39067
38488
|
var linkColor$3 = CHARADE_GREY;
|
|
39068
|
-
var fallbackValues$
|
|
38489
|
+
var fallbackValues$E = {
|
|
39069
38490
|
fontFamily: fontFamily$6,
|
|
39070
|
-
activeColor: activeColor$
|
|
38491
|
+
activeColor: activeColor$7,
|
|
39071
38492
|
linkColor: linkColor$3
|
|
39072
38493
|
};
|
|
39073
38494
|
|
|
@@ -39094,7 +38515,7 @@ var NavTab = function NavTab(_ref) {
|
|
|
39094
38515
|
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 ")
|
|
39095
38516
|
}, label));
|
|
39096
38517
|
};
|
|
39097
|
-
var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$
|
|
38518
|
+
var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$E);
|
|
39098
38519
|
|
|
39099
38520
|
var NavTabs = function NavTabs(_ref) {
|
|
39100
38521
|
var tabsConfig = _ref.tabsConfig,
|
|
@@ -39222,7 +38643,7 @@ var backgroundColor$7 = {
|
|
|
39222
38643
|
largeTitle: WHITE,
|
|
39223
38644
|
small: WHITE
|
|
39224
38645
|
};
|
|
39225
|
-
var fallbackValues$
|
|
38646
|
+
var fallbackValues$F = {
|
|
39226
38647
|
fontSize: fontSize$9,
|
|
39227
38648
|
fontWeight: fontWeight$6,
|
|
39228
38649
|
fontColor: fontColor,
|
|
@@ -39302,7 +38723,7 @@ var Module = function Module(_ref) {
|
|
|
39302
38723
|
boxShadow: themeValues.boxShadow
|
|
39303
38724
|
}, children)));
|
|
39304
38725
|
};
|
|
39305
|
-
var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$
|
|
38726
|
+
var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$F, "default"));
|
|
39306
38727
|
|
|
39307
38728
|
var WalletName = function WalletName(_ref) {
|
|
39308
38729
|
var mainText = _ref.mainText,
|
|
@@ -40282,7 +39703,7 @@ AddressForm.mapStateToProps = mapStateToProps$1;
|
|
|
40282
39703
|
AddressForm.mapDispatchToProps = mapDispatchToProps;
|
|
40283
39704
|
|
|
40284
39705
|
var backgroundColor$8 = "#ebeffb";
|
|
40285
|
-
var fallbackValues$
|
|
39706
|
+
var fallbackValues$G = {
|
|
40286
39707
|
backgroundColor: backgroundColor$8
|
|
40287
39708
|
};
|
|
40288
39709
|
|
|
@@ -40331,7 +39752,7 @@ var Banner = function Banner(_ref) {
|
|
|
40331
39752
|
extraStyles: isMobile && "> svg { width: 176px; }"
|
|
40332
39753
|
}, /*#__PURE__*/React__default.createElement(Image, null))));
|
|
40333
39754
|
};
|
|
40334
|
-
var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$
|
|
39755
|
+
var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$G);
|
|
40335
39756
|
|
|
40336
39757
|
var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
40337
39758
|
var clearOnDismount = _ref.clearOnDismount,
|
|
@@ -40453,177 +39874,510 @@ var formConfig$1 = {
|
|
|
40453
39874
|
validators: [required(), matchesField("newPassword")]
|
|
40454
39875
|
}
|
|
40455
39876
|
};
|
|
40456
|
-
var _createFormState$1 = createFormState(formConfig$1),
|
|
40457
|
-
reducer$1 = _createFormState$1.reducer,
|
|
40458
|
-
mapStateToProps$2 = _createFormState$1.mapStateToProps,
|
|
40459
|
-
mapDispatchToProps$1 = _createFormState$1.mapDispatchToProps;
|
|
39877
|
+
var _createFormState$1 = createFormState(formConfig$1),
|
|
39878
|
+
reducer$1 = _createFormState$1.reducer,
|
|
39879
|
+
mapStateToProps$2 = _createFormState$1.mapStateToProps,
|
|
39880
|
+
mapDispatchToProps$1 = _createFormState$1.mapDispatchToProps;
|
|
39881
|
+
|
|
39882
|
+
ChangePasswordForm.reducer = reducer$1;
|
|
39883
|
+
ChangePasswordForm.mapStateToProps = mapStateToProps$2;
|
|
39884
|
+
ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
|
|
39885
|
+
|
|
39886
|
+
var titleColor$1 = "#292A33";
|
|
39887
|
+
var headingBackgroundColor = "transparent";
|
|
39888
|
+
var bodyBackgroundColor = "transparent";
|
|
39889
|
+
var fallbackValues$H = {
|
|
39890
|
+
titleColor: titleColor$1,
|
|
39891
|
+
headingBackgroundColor: headingBackgroundColor,
|
|
39892
|
+
bodyBackgroundColor: bodyBackgroundColor
|
|
39893
|
+
};
|
|
39894
|
+
|
|
39895
|
+
var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
39896
|
+
var _label$replaceAll;
|
|
39897
|
+
var isOpen = _ref.isOpen,
|
|
39898
|
+
toggleSection = _ref.toggleSection,
|
|
39899
|
+
themeValues = _ref.themeValues,
|
|
39900
|
+
isMobile = _ref.isMobile,
|
|
39901
|
+
supportsTouch = _ref.supportsTouch,
|
|
39902
|
+
title = _ref.title,
|
|
39903
|
+
customPadding = _ref.customPadding,
|
|
39904
|
+
_ref$initiallyOpen = _ref.initiallyOpen,
|
|
39905
|
+
initiallyOpen = _ref$initiallyOpen === void 0 ? true : _ref$initiallyOpen,
|
|
39906
|
+
_ref$openHeight = _ref.openHeight,
|
|
39907
|
+
openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
|
|
39908
|
+
children = _ref.children,
|
|
39909
|
+
_ref$customTitle = _ref.customTitle,
|
|
39910
|
+
customTitle = _ref$customTitle === void 0 ? false : _ref$customTitle,
|
|
39911
|
+
_ref$stackTitle = _ref.stackTitle,
|
|
39912
|
+
stackTitle = _ref$stackTitle === void 0 ? false : _ref$stackTitle,
|
|
39913
|
+
stackTitleContent = _ref.stackTitleContent,
|
|
39914
|
+
_ref$sectionGap = _ref.sectionGap,
|
|
39915
|
+
sectionGap = _ref$sectionGap === void 0 ? "0.5rem" : _ref$sectionGap,
|
|
39916
|
+
_ref$name = _ref.name,
|
|
39917
|
+
name = _ref$name === void 0 ? "" : _ref$name,
|
|
39918
|
+
_ref$index = _ref.index,
|
|
39919
|
+
index = _ref$index === void 0 ? 1 : _ref$index,
|
|
39920
|
+
_ref$extraStyles = _ref.extraStyles,
|
|
39921
|
+
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles;
|
|
39922
|
+
var handleKeyDown = function handleKeyDown(e) {
|
|
39923
|
+
if (e.keyCode === ENTER) {
|
|
39924
|
+
toggleSection();
|
|
39925
|
+
}
|
|
39926
|
+
};
|
|
39927
|
+
var numChildren = typeof children === "Array" ? children.length : 1;
|
|
39928
|
+
var label = name !== "" ? name : !customTitle ? title : "collapsible section";
|
|
39929
|
+
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);
|
|
39930
|
+
var wrapper = {
|
|
39931
|
+
open: {
|
|
39932
|
+
height: openHeight,
|
|
39933
|
+
transition: {
|
|
39934
|
+
duration: 0.3,
|
|
39935
|
+
ease: [0.04, 0.62, 0.23, 0.98],
|
|
39936
|
+
staggerChildren: 0.15
|
|
39937
|
+
}
|
|
39938
|
+
},
|
|
39939
|
+
closed: {
|
|
39940
|
+
height: 0,
|
|
39941
|
+
transition: {
|
|
39942
|
+
duration: 0.3,
|
|
39943
|
+
ease: [0.04, 0.62, 0.23, 0.98],
|
|
39944
|
+
staggerChildren: 0.15,
|
|
39945
|
+
staggerDirection: -1,
|
|
39946
|
+
delay: numChildren * 0.35
|
|
39947
|
+
}
|
|
39948
|
+
}
|
|
39949
|
+
};
|
|
39950
|
+
var icon = {
|
|
39951
|
+
open: {
|
|
39952
|
+
rotate: "90deg"
|
|
39953
|
+
},
|
|
39954
|
+
closed: {
|
|
39955
|
+
rotate: "0deg"
|
|
39956
|
+
}
|
|
39957
|
+
};
|
|
39958
|
+
return /*#__PURE__*/React__default.createElement(Motion, {
|
|
39959
|
+
padding: "0",
|
|
39960
|
+
hoverStyles: "outline: none;",
|
|
39961
|
+
animate: isOpen ? "open" : "closed",
|
|
39962
|
+
positionTransition: true
|
|
39963
|
+
}, stackTitle && /*#__PURE__*/React__default.createElement(React.Fragment, null, stackTitleContent), /*#__PURE__*/React__default.createElement(Stack, {
|
|
39964
|
+
childGap: isOpen && !isMobile ? sectionGap : "0rem"
|
|
39965
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
39966
|
+
padding: "0",
|
|
39967
|
+
role: "heading",
|
|
39968
|
+
"aria-label": label,
|
|
39969
|
+
"aria-level": 3
|
|
39970
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
39971
|
+
padding: customPadding ? customPadding : "0",
|
|
39972
|
+
background: themeValues.headingBackgroundColor,
|
|
39973
|
+
onClick: isMobile && supportsTouch ? noop$1 : toggleSection,
|
|
39974
|
+
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop$1,
|
|
39975
|
+
key: "header",
|
|
39976
|
+
hoverStyles: "cursor: pointer;",
|
|
39977
|
+
tabIndex: "0",
|
|
39978
|
+
onKeyDown: handleKeyDown,
|
|
39979
|
+
extraStyles: "z-index: 25; ".concat(extraStyles),
|
|
39980
|
+
role: "button",
|
|
39981
|
+
"aria-expanded": isOpen.toString(),
|
|
39982
|
+
"aria-controls": id,
|
|
39983
|
+
id: "".concat(id, "-button")
|
|
39984
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
39985
|
+
justify: "space-between",
|
|
39986
|
+
align: "center"
|
|
39987
|
+
}, customTitle ? /*#__PURE__*/React__default.createElement(Box, {
|
|
39988
|
+
width: "calc(100% - 36px)",
|
|
39989
|
+
padding: "0px"
|
|
39990
|
+
}, title) : /*#__PURE__*/React__default.createElement(Title$1, {
|
|
39991
|
+
weight: FONT_WEIGHT_SEMIBOLD,
|
|
39992
|
+
color: themeValues.titleColor,
|
|
39993
|
+
as: "h6",
|
|
39994
|
+
variant: "small"
|
|
39995
|
+
}, title), /*#__PURE__*/React__default.createElement(Motion, {
|
|
39996
|
+
variants: icon,
|
|
39997
|
+
extraStyles: "display: flex; align-items: center;"
|
|
39998
|
+
}, /*#__PURE__*/React__default.createElement(ChevronIcon$1, null))))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
|
|
39999
|
+
initial: false
|
|
40000
|
+
}, isOpen && /*#__PURE__*/React__default.createElement(Motion, {
|
|
40001
|
+
padding: "0",
|
|
40002
|
+
background: themeValues.bodyBackgroundColor,
|
|
40003
|
+
key: "content",
|
|
40004
|
+
positionTransition: true,
|
|
40005
|
+
initial: initiallyOpen ? "open" : "closed",
|
|
40006
|
+
exit: "closed",
|
|
40007
|
+
variants: wrapper,
|
|
40008
|
+
extraStyles: "transform-origin: 100% 0; overflow-y: hidden;",
|
|
40009
|
+
id: "".concat(id, "-content"),
|
|
40010
|
+
role: "region",
|
|
40011
|
+
"aria-labelledby": "".concat(id, "-button")
|
|
40012
|
+
}, children))));
|
|
40013
|
+
};
|
|
40014
|
+
var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$H);
|
|
40015
|
+
|
|
40016
|
+
var ClipboardIcon = function ClipboardIcon(_ref) {
|
|
40017
|
+
var themeValues = _ref.themeValues;
|
|
40018
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
40019
|
+
width: "24",
|
|
40020
|
+
height: "24",
|
|
40021
|
+
viewBox: "0 0 24 24",
|
|
40022
|
+
fill: "none",
|
|
40023
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
40024
|
+
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
40025
|
+
id: "mask0_1104_623",
|
|
40026
|
+
style: {
|
|
40027
|
+
maskType: "alpha"
|
|
40028
|
+
},
|
|
40029
|
+
maskUnits: "userSpaceOnUse",
|
|
40030
|
+
x: "4",
|
|
40031
|
+
y: "2",
|
|
40032
|
+
width: "16",
|
|
40033
|
+
height: "18"
|
|
40034
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
40035
|
+
fillRule: "evenodd",
|
|
40036
|
+
clipRule: "evenodd",
|
|
40037
|
+
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",
|
|
40038
|
+
fill: themeValues.singleIconColor
|
|
40039
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
40040
|
+
mask: "url(#mask0_1104_623)"
|
|
40041
|
+
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
40042
|
+
width: "24",
|
|
40043
|
+
height: "24",
|
|
40044
|
+
fill: themeValues.singleIconColor
|
|
40045
|
+
})));
|
|
40046
|
+
};
|
|
40047
|
+
var ClipboardIcon$1 = themeComponent(ClipboardIcon, "Icons", fallbackValues$2, "primary");
|
|
40048
|
+
|
|
40049
|
+
/*
|
|
40050
|
+
Hook that assigns a click event listener to the main document element
|
|
40051
|
+
Returns a ref to attach to another element (like an icon/button that triggers a popover)
|
|
40052
|
+
If a click event gets captured by the document and the assigned element isn't the target
|
|
40053
|
+
hook will run whatever handler is passed (eg a function that closes a popover)
|
|
40054
|
+
|
|
40055
|
+
See popover component for implementation
|
|
40056
|
+
|
|
40057
|
+
*/
|
|
40058
|
+
|
|
40059
|
+
var useOutsideClickHook = function useOutsideClickHook(handler) {
|
|
40060
|
+
var ref = React.useRef();
|
|
40061
|
+
React.useEffect(function () {
|
|
40062
|
+
var handleOutsideClick = function handleOutsideClick(e) {
|
|
40063
|
+
if (ref.current && !ref.current.contains(e.target)) {
|
|
40064
|
+
handler();
|
|
40065
|
+
}
|
|
40066
|
+
};
|
|
40067
|
+
document.addEventListener("click", handleOutsideClick, true);
|
|
40068
|
+
return function () {
|
|
40069
|
+
document.removeEventListener("click", handleOutsideClick, true);
|
|
40070
|
+
};
|
|
40071
|
+
}, [ref]);
|
|
40072
|
+
return ref;
|
|
40073
|
+
};
|
|
40074
|
+
|
|
40075
|
+
/*
|
|
40076
|
+
Hook that takes an ID selector for an element on the screen
|
|
40077
|
+
And optionally values for top position, left position, smooth behavior
|
|
40078
|
+
Finds element on screen and scrolls it to the provided coordinates
|
|
40079
|
+
|
|
40080
|
+
(string, number, number, string, number) => undefined;
|
|
40081
|
+
*/
|
|
40082
|
+
|
|
40083
|
+
var useScrollTo = function useScrollTo(id) {
|
|
40084
|
+
var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
40085
|
+
var left = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
40086
|
+
var behavior = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "auto";
|
|
40087
|
+
var delay = arguments.length > 4 ? arguments[4] : undefined;
|
|
40088
|
+
var scrollItem;
|
|
40089
|
+
if (delay) {
|
|
40090
|
+
setTimeout(function () {
|
|
40091
|
+
var _scrollItem;
|
|
40092
|
+
scrollItem = document.getElementById(id);
|
|
40093
|
+
(_scrollItem = scrollItem) === null || _scrollItem === void 0 || _scrollItem.scrollTo({
|
|
40094
|
+
top: top,
|
|
40095
|
+
left: left,
|
|
40096
|
+
behavior: behavior
|
|
40097
|
+
});
|
|
40098
|
+
}, delay);
|
|
40099
|
+
} else {
|
|
40100
|
+
var _scrollItem2;
|
|
40101
|
+
scrollItem = document.getElementById(id);
|
|
40102
|
+
(_scrollItem2 = scrollItem) === null || _scrollItem2 === void 0 || _scrollItem2.scrollTo({
|
|
40103
|
+
top: top,
|
|
40104
|
+
left: left,
|
|
40105
|
+
behavior: behavior
|
|
40106
|
+
});
|
|
40107
|
+
}
|
|
40108
|
+
};
|
|
40109
|
+
|
|
40110
|
+
var initialToastState = {
|
|
40111
|
+
isOpen: false,
|
|
40112
|
+
variant: "",
|
|
40113
|
+
message: ""
|
|
40114
|
+
};
|
|
40115
|
+
var useToastNotification = function useToastNotification() {
|
|
40116
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
40117
|
+
_ref$timeout = _ref.timeout,
|
|
40118
|
+
timeout = _ref$timeout === void 0 ? 5000 : _ref$timeout;
|
|
40119
|
+
var _useState = React.useState(initialToastState),
|
|
40120
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
40121
|
+
toastState = _useState2[0],
|
|
40122
|
+
setToastState = _useState2[1];
|
|
40123
|
+
React.useEffect(function () {
|
|
40124
|
+
if (toastState.isOpen && timeout > 0) {
|
|
40125
|
+
setTimeout(function () {
|
|
40126
|
+
setToastState(initialToastState);
|
|
40127
|
+
}, timeout);
|
|
40128
|
+
}
|
|
40129
|
+
}, [timeout, toastState.isOpen]);
|
|
40130
|
+
var showToast = function showToast(_ref2) {
|
|
40131
|
+
var message = _ref2.message,
|
|
40132
|
+
variant = _ref2.variant;
|
|
40133
|
+
return setToastState({
|
|
40134
|
+
isOpen: true,
|
|
40135
|
+
variant: variant,
|
|
40136
|
+
message: message
|
|
40137
|
+
});
|
|
40138
|
+
};
|
|
40139
|
+
var hideToast = function hideToast() {
|
|
40140
|
+
return setToastState(initialToastState);
|
|
40141
|
+
};
|
|
40142
|
+
return {
|
|
40143
|
+
isToastOpen: toastState.isOpen,
|
|
40144
|
+
toastVariant: toastState.variant,
|
|
40145
|
+
toastMessage: toastState.message,
|
|
40146
|
+
showToast: showToast,
|
|
40147
|
+
hideToast: hideToast
|
|
40148
|
+
};
|
|
40149
|
+
};
|
|
40150
|
+
|
|
40151
|
+
function useConditionallyAddValidator(condition, validatorFn, addValidator, removeValidator) {
|
|
40152
|
+
React.useEffect(function () {
|
|
40153
|
+
if (condition) {
|
|
40154
|
+
addValidator(validatorFn());
|
|
40155
|
+
}
|
|
40156
|
+
return function () {
|
|
40157
|
+
// Remove validator when component unmounts
|
|
40158
|
+
removeValidator(validatorFn());
|
|
40159
|
+
};
|
|
40160
|
+
}, [condition, addValidator, removeValidator]);
|
|
40161
|
+
}
|
|
40162
|
+
|
|
40163
|
+
/**
|
|
40164
|
+
* A custom hook to dynamically load the Cloudflare Turnstile script.
|
|
40165
|
+
*
|
|
40166
|
+
* @param {string} verifyURL - The URL of the Turnstile verification script.
|
|
40167
|
+
*/
|
|
40168
|
+
var useTurnstileScript = function useTurnstileScript(verifyURL) {
|
|
40169
|
+
var _useState = React.useState(false),
|
|
40170
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
40171
|
+
scriptLoaded = _useState2[0],
|
|
40172
|
+
setScriptLoaded = _useState2[1];
|
|
40173
|
+
var _useState3 = React.useState(false),
|
|
40174
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
40175
|
+
scriptError = _useState4[0],
|
|
40176
|
+
setScriptError = _useState4[1];
|
|
40177
|
+
var handleScriptError = function handleScriptError() {
|
|
40178
|
+
setScriptError(true);
|
|
40179
|
+
setScriptLoaded(false);
|
|
40180
|
+
};
|
|
40181
|
+
React.useEffect(function () {
|
|
40182
|
+
if (typeof window === "undefined") {
|
|
40183
|
+
setScriptLoaded(false);
|
|
40184
|
+
return;
|
|
40185
|
+
}
|
|
40186
|
+
if (window.turnstile && window.turnstile.render) {
|
|
40187
|
+
setScriptLoaded(true);
|
|
40188
|
+
return;
|
|
40189
|
+
}
|
|
40190
|
+
var script = document.createElement("script");
|
|
40191
|
+
script.src = "".concat(verifyURL, "?render=explicit");
|
|
40192
|
+
script.onload = function () {
|
|
40193
|
+
setScriptLoaded(true);
|
|
40194
|
+
};
|
|
40195
|
+
script.onerror = function () {
|
|
40196
|
+
handleScriptError();
|
|
40197
|
+
};
|
|
40198
|
+
script.onabort = function () {
|
|
40199
|
+
handleScriptError();
|
|
40200
|
+
};
|
|
40201
|
+
script.defer = true;
|
|
40202
|
+
document.getElementsByTagName("head")[0].appendChild(script);
|
|
40203
|
+
return function () {
|
|
40204
|
+
setScriptLoaded(false);
|
|
40205
|
+
setScriptError(false);
|
|
40206
|
+
};
|
|
40207
|
+
}, [verifyURL]);
|
|
40208
|
+
return {
|
|
40209
|
+
scriptLoaded: scriptLoaded,
|
|
40210
|
+
scriptError: scriptError
|
|
40211
|
+
};
|
|
40212
|
+
};
|
|
40460
40213
|
|
|
40461
|
-
ChangePasswordForm.reducer = reducer$1;
|
|
40462
|
-
ChangePasswordForm.mapStateToProps = mapStateToProps$2;
|
|
40463
|
-
ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
|
|
40464
40214
|
|
|
40465
|
-
|
|
40466
|
-
var
|
|
40467
|
-
|
|
40468
|
-
|
|
40469
|
-
|
|
40470
|
-
|
|
40471
|
-
|
|
40215
|
+
|
|
40216
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
40217
|
+
__proto__: null,
|
|
40218
|
+
useOutsideClick: useOutsideClickHook,
|
|
40219
|
+
useScrollTo: useScrollTo,
|
|
40220
|
+
useToastNotification: useToastNotification,
|
|
40221
|
+
useConditionallyAddValidator: useConditionallyAddValidator,
|
|
40222
|
+
useTurnstileScript: useTurnstileScript
|
|
40223
|
+
});
|
|
40224
|
+
|
|
40225
|
+
var hoverColor$4 = "#116285";
|
|
40226
|
+
var activeColor$8 = "#0E506D";
|
|
40227
|
+
var popoverTriggerColor = "#15749D";
|
|
40228
|
+
var fallbackValues$I = {
|
|
40229
|
+
hoverColor: hoverColor$4,
|
|
40230
|
+
activeColor: activeColor$8,
|
|
40231
|
+
popoverTriggerColor: popoverTriggerColor
|
|
40472
40232
|
};
|
|
40473
40233
|
|
|
40474
|
-
var
|
|
40475
|
-
var
|
|
40476
|
-
var
|
|
40477
|
-
|
|
40478
|
-
|
|
40479
|
-
|
|
40480
|
-
|
|
40481
|
-
|
|
40482
|
-
|
|
40483
|
-
|
|
40484
|
-
|
|
40485
|
-
|
|
40486
|
-
|
|
40487
|
-
|
|
40488
|
-
|
|
40489
|
-
|
|
40490
|
-
_ref$
|
|
40491
|
-
|
|
40492
|
-
|
|
40493
|
-
_ref$
|
|
40494
|
-
|
|
40495
|
-
_ref$
|
|
40496
|
-
|
|
40497
|
-
_ref$
|
|
40498
|
-
|
|
40499
|
-
_ref$
|
|
40500
|
-
|
|
40501
|
-
|
|
40502
|
-
|
|
40503
|
-
|
|
40234
|
+
var arrowBorder = function arrowBorder(borderColor, direction) {
|
|
40235
|
+
var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
|
|
40236
|
+
var angle = "".concat(width, " solid transparent");
|
|
40237
|
+
var straight = "".concat(width, " solid ").concat(borderColor);
|
|
40238
|
+
if (direction == "down") {
|
|
40239
|
+
return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
|
|
40240
|
+
} else if (direction == "up") {
|
|
40241
|
+
return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
|
|
40242
|
+
} else if (direction == "left") {
|
|
40243
|
+
return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
|
|
40244
|
+
} else if (direction == "right") {
|
|
40245
|
+
return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
|
|
40246
|
+
}
|
|
40247
|
+
};
|
|
40248
|
+
var Popover = function Popover(_ref) {
|
|
40249
|
+
var themeValues = _ref.themeValues,
|
|
40250
|
+
_ref$triggerText = _ref.triggerText,
|
|
40251
|
+
triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
|
|
40252
|
+
_ref$content = _ref.content,
|
|
40253
|
+
content = _ref$content === void 0 ? "" : _ref$content,
|
|
40254
|
+
_ref$hasIcon = _ref.hasIcon,
|
|
40255
|
+
hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
|
|
40256
|
+
Icon = _ref.icon,
|
|
40257
|
+
_ref$iconHelpText = _ref.iconHelpText,
|
|
40258
|
+
iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
|
|
40259
|
+
_ref$popoverID = _ref.popoverID,
|
|
40260
|
+
popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
|
|
40261
|
+
_ref$popoverFocus = _ref.popoverFocus,
|
|
40262
|
+
popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
|
|
40263
|
+
extraStyles = _ref.extraStyles,
|
|
40264
|
+
textExtraStyles = _ref.textExtraStyles,
|
|
40265
|
+
_ref$minWidth = _ref.minWidth,
|
|
40266
|
+
minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
|
|
40267
|
+
_ref$maxWidth = _ref.maxWidth,
|
|
40268
|
+
maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
|
|
40269
|
+
_ref$height = _ref.height,
|
|
40270
|
+
height = _ref$height === void 0 ? "auto" : _ref$height,
|
|
40271
|
+
position = _ref.position,
|
|
40272
|
+
arrowPosition = _ref.arrowPosition,
|
|
40273
|
+
_ref$arrowDirection = _ref.arrowDirection,
|
|
40274
|
+
arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
|
|
40275
|
+
_ref$transform = _ref.transform,
|
|
40276
|
+
transform = _ref$transform === void 0 ? "none" : _ref$transform,
|
|
40277
|
+
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
40278
|
+
_ref$backgroundColor = _ref.backgroundColor,
|
|
40279
|
+
backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
|
|
40280
|
+
_ref$borderColor = _ref.borderColor,
|
|
40281
|
+
borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
|
|
40282
|
+
popoverExtraStyles = _ref.popoverExtraStyles;
|
|
40283
|
+
var hoverColor = themeValues.hoverColor,
|
|
40284
|
+
activeColor = themeValues.activeColor,
|
|
40285
|
+
popoverTriggerColor = themeValues.popoverTriggerColor;
|
|
40286
|
+
var _ref2 = position !== null && position !== void 0 ? position : {},
|
|
40287
|
+
_ref2$top = _ref2.top,
|
|
40288
|
+
top = _ref2$top === void 0 ? "-110px" : _ref2$top,
|
|
40289
|
+
_ref2$right = _ref2.right,
|
|
40290
|
+
right = _ref2$right === void 0 ? "auto" : _ref2$right,
|
|
40291
|
+
_ref2$bottom = _ref2.bottom,
|
|
40292
|
+
bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
|
|
40293
|
+
_ref2$left = _ref2.left,
|
|
40294
|
+
left = _ref2$left === void 0 ? "-225px" : _ref2$left;
|
|
40295
|
+
var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
|
|
40296
|
+
_ref3$arrowTop = _ref3.arrowTop,
|
|
40297
|
+
arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
|
|
40298
|
+
_ref3$arrowRight = _ref3.arrowRight,
|
|
40299
|
+
arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
|
|
40300
|
+
_ref3$arrowBottom = _ref3.arrowBottom,
|
|
40301
|
+
arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
|
|
40302
|
+
_ref3$arrowLeft = _ref3.arrowLeft,
|
|
40303
|
+
arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
|
|
40304
|
+
var _useState = React.useState(false),
|
|
40305
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
40306
|
+
popoverOpen = _useState2[0],
|
|
40307
|
+
togglePopover = _useState2[1];
|
|
40308
|
+
var handleTogglePopover = function handleTogglePopover(popoverState) {
|
|
40309
|
+
if (popoverOpen !== popoverState) {
|
|
40310
|
+
togglePopover(popoverState);
|
|
40504
40311
|
}
|
|
40505
40312
|
};
|
|
40506
|
-
var
|
|
40507
|
-
|
|
40508
|
-
|
|
40509
|
-
|
|
40510
|
-
|
|
40511
|
-
|
|
40512
|
-
|
|
40513
|
-
|
|
40514
|
-
|
|
40515
|
-
staggerChildren: 0.15
|
|
40516
|
-
}
|
|
40313
|
+
var triggerRef = useOutsideClickHook(function () {
|
|
40314
|
+
return handleTogglePopover(false);
|
|
40315
|
+
});
|
|
40316
|
+
return /*#__PURE__*/React__default.createElement(Box, {
|
|
40317
|
+
padding: "0",
|
|
40318
|
+
extraStyles: "position: relative; ".concat(extraStyles)
|
|
40319
|
+
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
40320
|
+
action: function action() {
|
|
40321
|
+
return noop$1;
|
|
40517
40322
|
},
|
|
40518
|
-
|
|
40519
|
-
|
|
40520
|
-
|
|
40521
|
-
|
|
40522
|
-
|
|
40523
|
-
|
|
40524
|
-
|
|
40525
|
-
|
|
40323
|
+
onFocus: function onFocus() {
|
|
40324
|
+
handleTogglePopover(true);
|
|
40325
|
+
},
|
|
40326
|
+
onBlur: function onBlur() {
|
|
40327
|
+
handleTogglePopover(false);
|
|
40328
|
+
},
|
|
40329
|
+
onKeyDown: function onKeyDown(e) {
|
|
40330
|
+
if (e.keyCode === ESCAPE) {
|
|
40331
|
+
handleTogglePopover(false);
|
|
40526
40332
|
}
|
|
40527
|
-
}
|
|
40528
|
-
};
|
|
40529
|
-
var icon = {
|
|
40530
|
-
open: {
|
|
40531
|
-
rotate: "90deg"
|
|
40532
40333
|
},
|
|
40533
|
-
|
|
40534
|
-
|
|
40535
|
-
}
|
|
40536
|
-
};
|
|
40537
|
-
return /*#__PURE__*/React__default.createElement(Motion, {
|
|
40538
|
-
padding: "0",
|
|
40539
|
-
hoverStyles: "outline: none;",
|
|
40540
|
-
animate: isOpen ? "open" : "closed",
|
|
40541
|
-
positionTransition: true
|
|
40542
|
-
}, stackTitle && /*#__PURE__*/React__default.createElement(React.Fragment, null, stackTitleContent), /*#__PURE__*/React__default.createElement(Stack, {
|
|
40543
|
-
childGap: isOpen && !isMobile ? sectionGap : "0rem"
|
|
40544
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40545
|
-
padding: "0",
|
|
40546
|
-
role: "heading",
|
|
40547
|
-
"aria-label": label,
|
|
40548
|
-
"aria-level": 3
|
|
40549
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40550
|
-
padding: customPadding ? customPadding : "0",
|
|
40551
|
-
background: themeValues.headingBackgroundColor,
|
|
40552
|
-
onClick: isMobile && supportsTouch ? noop$1 : toggleSection,
|
|
40553
|
-
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop$1,
|
|
40554
|
-
key: "header",
|
|
40555
|
-
hoverStyles: "cursor: pointer;",
|
|
40556
|
-
tabIndex: "0",
|
|
40557
|
-
onKeyDown: handleKeyDown,
|
|
40558
|
-
extraStyles: "z-index: 25; ".concat(extraStyles),
|
|
40559
|
-
role: "button",
|
|
40560
|
-
"aria-expanded": isOpen.toString(),
|
|
40561
|
-
"aria-controls": id,
|
|
40562
|
-
id: "".concat(id, "-button")
|
|
40563
|
-
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
40564
|
-
justify: "space-between",
|
|
40565
|
-
align: "center"
|
|
40566
|
-
}, customTitle ? /*#__PURE__*/React__default.createElement(Box, {
|
|
40567
|
-
width: "calc(100% - 36px)",
|
|
40568
|
-
padding: "0px"
|
|
40569
|
-
}, title) : /*#__PURE__*/React__default.createElement(Title$1, {
|
|
40570
|
-
weight: FONT_WEIGHT_SEMIBOLD,
|
|
40571
|
-
color: themeValues.titleColor,
|
|
40572
|
-
as: "h6",
|
|
40573
|
-
variant: "small"
|
|
40574
|
-
}, title), /*#__PURE__*/React__default.createElement(Motion, {
|
|
40575
|
-
variants: icon,
|
|
40576
|
-
extraStyles: "display: flex; align-items: center;"
|
|
40577
|
-
}, /*#__PURE__*/React__default.createElement(ChevronIcon$1, null))))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
|
|
40578
|
-
initial: false
|
|
40579
|
-
}, isOpen && /*#__PURE__*/React__default.createElement(Motion, {
|
|
40580
|
-
padding: "0",
|
|
40581
|
-
background: themeValues.bodyBackgroundColor,
|
|
40582
|
-
key: "content",
|
|
40583
|
-
positionTransition: true,
|
|
40584
|
-
initial: initiallyOpen ? "open" : "closed",
|
|
40585
|
-
exit: "closed",
|
|
40586
|
-
variants: wrapper,
|
|
40587
|
-
extraStyles: "transform-origin: 100% 0; overflow-y: hidden;",
|
|
40588
|
-
id: "".concat(id, "-content"),
|
|
40589
|
-
role: "region",
|
|
40590
|
-
"aria-labelledby": "".concat(id, "-button")
|
|
40591
|
-
}, children))));
|
|
40592
|
-
};
|
|
40593
|
-
var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$J);
|
|
40594
|
-
|
|
40595
|
-
var ClipboardIcon = function ClipboardIcon(_ref) {
|
|
40596
|
-
var themeValues = _ref.themeValues;
|
|
40597
|
-
return /*#__PURE__*/React__default.createElement("svg", {
|
|
40598
|
-
width: "24",
|
|
40599
|
-
height: "24",
|
|
40600
|
-
viewBox: "0 0 24 24",
|
|
40601
|
-
fill: "none",
|
|
40602
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
40603
|
-
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
40604
|
-
id: "mask0_1104_623",
|
|
40605
|
-
style: {
|
|
40606
|
-
maskType: "alpha"
|
|
40334
|
+
onTouchStart: function onTouchStart() {
|
|
40335
|
+
return handleTogglePopover(true);
|
|
40607
40336
|
},
|
|
40608
|
-
|
|
40609
|
-
|
|
40610
|
-
|
|
40611
|
-
|
|
40612
|
-
|
|
40613
|
-
|
|
40614
|
-
|
|
40615
|
-
|
|
40616
|
-
|
|
40617
|
-
|
|
40618
|
-
|
|
40619
|
-
|
|
40620
|
-
|
|
40621
|
-
|
|
40622
|
-
|
|
40623
|
-
|
|
40337
|
+
onTouchEnd: function onTouchEnd() {
|
|
40338
|
+
return handleTogglePopover(false);
|
|
40339
|
+
},
|
|
40340
|
+
onMouseEnter: function onMouseEnter() {
|
|
40341
|
+
return handleTogglePopover(true);
|
|
40342
|
+
},
|
|
40343
|
+
onMouseLeave: function onMouseLeave() {
|
|
40344
|
+
return handleTogglePopover(false);
|
|
40345
|
+
},
|
|
40346
|
+
contentOverride: true,
|
|
40347
|
+
variant: "smallGhost",
|
|
40348
|
+
tabIndex: "0",
|
|
40349
|
+
id: "btnPopover".concat(popoverID),
|
|
40350
|
+
"aria-expanded": popoverOpen,
|
|
40351
|
+
"aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
|
|
40352
|
+
"aria-describedby": "Disclosure".concat(popoverID),
|
|
40353
|
+
"aria-controls": "Disclosed".concat(popoverID),
|
|
40354
|
+
ref: triggerRef,
|
|
40355
|
+
extraStyles: buttonExtraStyles
|
|
40356
|
+
}, hasIcon && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, null), /*#__PURE__*/React__default.createElement(Box, {
|
|
40357
|
+
padding: "0",
|
|
40358
|
+
srOnly: true
|
|
40359
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
40360
|
+
id: "btnPopover".concat(popoverID, "_info")
|
|
40361
|
+
}, iconHelpText))), !hasIcon && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
40362
|
+
color: popoverTriggerColor,
|
|
40363
|
+
extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
|
|
40364
|
+
}, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
|
|
40365
|
+
background: backgroundColor,
|
|
40366
|
+
borderRadius: "4px",
|
|
40367
|
+
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
|
|
40368
|
+
id: "Disclosed".concat(popoverID),
|
|
40369
|
+
role: "region",
|
|
40370
|
+
"aria-describedby": "Disclosure".concat(popoverID),
|
|
40371
|
+
tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
|
|
40372
|
+
minWidth: minWidth,
|
|
40373
|
+
maxWidth: maxWidth,
|
|
40374
|
+
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 ")
|
|
40375
|
+
}, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
|
|
40376
|
+
padding: "0",
|
|
40377
|
+
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 ")
|
|
40624
40378
|
})));
|
|
40625
40379
|
};
|
|
40626
|
-
var
|
|
40380
|
+
var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$I);
|
|
40627
40381
|
|
|
40628
40382
|
/*
|
|
40629
40383
|
This component will render `content` and a clipboard icon.
|
|
@@ -41170,7 +40924,7 @@ EmailForm.mapDispatchToProps = mapDispatchToProps$3;
|
|
|
41170
40924
|
|
|
41171
40925
|
var footerBackgroundColor = BRIGHT_GREY;
|
|
41172
40926
|
var subfooterBackgroundColor = STORM_GREY;
|
|
41173
|
-
var fallbackValues$
|
|
40927
|
+
var fallbackValues$J = {
|
|
41174
40928
|
footerBackgroundColor: footerBackgroundColor,
|
|
41175
40929
|
subfooterBackgroundColor: subfooterBackgroundColor
|
|
41176
40930
|
};
|
|
@@ -41201,7 +40955,7 @@ var FooterWithSubfooter = function FooterWithSubfooter(_ref) {
|
|
|
41201
40955
|
rightContent: rightSubfooterContent
|
|
41202
40956
|
}));
|
|
41203
40957
|
};
|
|
41204
|
-
var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$
|
|
40958
|
+
var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$J);
|
|
41205
40959
|
|
|
41206
40960
|
var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
41207
40961
|
var fields = _ref.fields,
|
|
@@ -41248,7 +41002,7 @@ ForgotPasswordForm.mapDispatchToProps = mapDispatchToProps$4;
|
|
|
41248
41002
|
|
|
41249
41003
|
var textColor$4 = "#ffffff";
|
|
41250
41004
|
var backgroundColor$9 = "#182848";
|
|
41251
|
-
var fallbackValues$
|
|
41005
|
+
var fallbackValues$K = {
|
|
41252
41006
|
textColor: textColor$4,
|
|
41253
41007
|
backgroundColor: backgroundColor$9
|
|
41254
41008
|
};
|
|
@@ -41307,7 +41061,7 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
41307
41061
|
}, t));
|
|
41308
41062
|
}), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter))));
|
|
41309
41063
|
};
|
|
41310
|
-
var HighlightTabRow$1 = themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$
|
|
41064
|
+
var HighlightTabRow$1 = themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$K);
|
|
41311
41065
|
|
|
41312
41066
|
/** @license React v16.13.1
|
|
41313
41067
|
* react-is.production.min.js
|
|
@@ -45765,7 +45519,7 @@ var activeBackgroundColor$1 = CORNFLOWER_BLUE;
|
|
|
45765
45519
|
var backgroundColor$a = LINK_WATER;
|
|
45766
45520
|
var borderColor$5 = MOON_RAKER;
|
|
45767
45521
|
var color$c = ROYAL_BLUE_VIVID;
|
|
45768
|
-
var fallbackValues$
|
|
45522
|
+
var fallbackValues$L = {
|
|
45769
45523
|
disabledBackgroundColor: disabledBackgroundColor$1,
|
|
45770
45524
|
disabledBorderColor: disabledBorderColor$1,
|
|
45771
45525
|
disabledColor: disabledColor$2,
|
|
@@ -45900,7 +45654,7 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
45900
45654
|
extraStyles: "margin-right: auto;"
|
|
45901
45655
|
}), showRight && !!rightContent && rightContent))));
|
|
45902
45656
|
};
|
|
45903
|
-
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$
|
|
45657
|
+
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$L, "primary");
|
|
45904
45658
|
|
|
45905
45659
|
var LoginForm = function LoginForm(_ref) {
|
|
45906
45660
|
var clearOnDismount = _ref.clearOnDismount,
|
|
@@ -45972,7 +45726,7 @@ var shadowColor = {
|
|
|
45972
45726
|
profile: "#292A33",
|
|
45973
45727
|
cms: "#292A33"
|
|
45974
45728
|
};
|
|
45975
|
-
var fallbackValues$
|
|
45729
|
+
var fallbackValues$M = {
|
|
45976
45730
|
backgroundColor: backgroundColor$b,
|
|
45977
45731
|
shadowColor: shadowColor
|
|
45978
45732
|
};
|
|
@@ -46012,7 +45766,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
|
|
|
46012
45766
|
onBlur: onBlur
|
|
46013
45767
|
}, menuContent));
|
|
46014
45768
|
};
|
|
46015
|
-
var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$
|
|
45769
|
+
var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$M, "profile");
|
|
46016
45770
|
|
|
46017
45771
|
var menuVariants = {
|
|
46018
45772
|
invisible: {
|
|
@@ -46064,7 +45818,7 @@ var NavMenuMobile = function NavMenuMobile(_ref3) {
|
|
|
46064
45818
|
background: themeValues.backgroundColor
|
|
46065
45819
|
}, menuContent));
|
|
46066
45820
|
};
|
|
46067
|
-
var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$
|
|
45821
|
+
var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$M, "profile");
|
|
46068
45822
|
|
|
46069
45823
|
var IconsModule = function IconsModule(_ref) {
|
|
46070
45824
|
var icon = _ref.icon,
|
|
@@ -46677,7 +46431,7 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
|
|
|
46677
46431
|
};
|
|
46678
46432
|
|
|
46679
46433
|
var iconColor = ROYAL_BLUE_VIVID;
|
|
46680
|
-
var fallbackValues$
|
|
46434
|
+
var fallbackValues$N = {
|
|
46681
46435
|
iconColor: iconColor
|
|
46682
46436
|
};
|
|
46683
46437
|
|
|
@@ -47018,7 +46772,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
47018
46772
|
}))));
|
|
47019
46773
|
return isLoading ? loadingObligation : inactive ? inactiveObligation : activeObligation;
|
|
47020
46774
|
};
|
|
47021
|
-
var Obligation$1 = themeComponent(Obligation, "Obligation", fallbackValues$
|
|
46775
|
+
var Obligation$1 = themeComponent(Obligation, "Obligation", fallbackValues$N);
|
|
47022
46776
|
|
|
47023
46777
|
var weightTitle$1 = {
|
|
47024
46778
|
"default": "600",
|
|
@@ -47028,7 +46782,7 @@ var detailVariant$1 = {
|
|
|
47028
46782
|
"default": "large",
|
|
47029
46783
|
small: "small"
|
|
47030
46784
|
};
|
|
47031
|
-
var fallbackValues$
|
|
46785
|
+
var fallbackValues$O = {
|
|
47032
46786
|
weightTitle: weightTitle$1,
|
|
47033
46787
|
detailVariant: detailVariant$1
|
|
47034
46788
|
};
|
|
@@ -47085,7 +46839,7 @@ var PartialAmountField = function PartialAmountField(_ref) {
|
|
|
47085
46839
|
function arePropsEqual(prevProps, nextProps) {
|
|
47086
46840
|
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);
|
|
47087
46841
|
}
|
|
47088
|
-
var PartialAmountField$1 = /*#__PURE__*/React__default.memo(themeComponent(PartialAmountField, "PartialAmountField", fallbackValues$
|
|
46842
|
+
var PartialAmountField$1 = /*#__PURE__*/React__default.memo(themeComponent(PartialAmountField, "PartialAmountField", fallbackValues$O, "default"), arePropsEqual);
|
|
47089
46843
|
|
|
47090
46844
|
var PartialAmountForm = function PartialAmountForm(_ref) {
|
|
47091
46845
|
var _ref$variant = _ref.variant,
|
|
@@ -47189,9 +46943,9 @@ var arrowColor = WHITE;
|
|
|
47189
46943
|
var numberColor = MATISSE_BLUE;
|
|
47190
46944
|
var hoverBackgroundColor$2 = ALABASTER_WHITE;
|
|
47191
46945
|
var activeBackgroundColor$2 = WHITE;
|
|
47192
|
-
var activeColor$
|
|
47193
|
-
var fallbackValues$
|
|
47194
|
-
activeColor: activeColor$
|
|
46946
|
+
var activeColor$9 = MATISSE_BLUE;
|
|
46947
|
+
var fallbackValues$P = {
|
|
46948
|
+
activeColor: activeColor$9,
|
|
47195
46949
|
activeBackgroundColor: activeBackgroundColor$2,
|
|
47196
46950
|
arrowColor: arrowColor,
|
|
47197
46951
|
hoverBackgroundColor: hoverBackgroundColor$2,
|
|
@@ -47384,7 +47138,7 @@ var Pagination = function Pagination(_ref3) {
|
|
|
47384
47138
|
buttonWidth: buttonWidth
|
|
47385
47139
|
}));
|
|
47386
47140
|
};
|
|
47387
|
-
var Pagination$1 = themeComponent(Pagination, "Pagination", fallbackValues$
|
|
47141
|
+
var Pagination$1 = themeComponent(Pagination, "Pagination", fallbackValues$P);
|
|
47388
47142
|
|
|
47389
47143
|
var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
47390
47144
|
var _ref$isForwardButtonD = _ref.isForwardButtonDisabled,
|
|
@@ -47485,7 +47239,7 @@ var labeledAmountTotal = {
|
|
|
47485
47239
|
"default": "large",
|
|
47486
47240
|
small: "small"
|
|
47487
47241
|
};
|
|
47488
|
-
var fallbackValues$
|
|
47242
|
+
var fallbackValues$Q = {
|
|
47489
47243
|
backgroundColor: backgroundColor$c,
|
|
47490
47244
|
lineItem: lineItem,
|
|
47491
47245
|
labeledAmountSubtotal: labeledAmountSubtotal,
|
|
@@ -47854,7 +47608,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47854
47608
|
isError: isError
|
|
47855
47609
|
});
|
|
47856
47610
|
};
|
|
47857
|
-
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$
|
|
47611
|
+
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$Q, "default");
|
|
47858
47612
|
|
|
47859
47613
|
var linkColor$4 = {
|
|
47860
47614
|
"default": "#3176AA"
|
|
@@ -47874,7 +47628,7 @@ var modalLinkHoverFocus = {
|
|
|
47874
47628
|
var linkTextDecoration = {
|
|
47875
47629
|
"default": LINK_TEXT_DECORATION
|
|
47876
47630
|
};
|
|
47877
|
-
var fallbackValues$
|
|
47631
|
+
var fallbackValues$R = {
|
|
47878
47632
|
linkColor: linkColor$4,
|
|
47879
47633
|
fontSize: fontSize$a,
|
|
47880
47634
|
lineHeight: lineHeight$4,
|
|
@@ -47938,7 +47692,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47938
47692
|
}, link)
|
|
47939
47693
|
}));
|
|
47940
47694
|
};
|
|
47941
|
-
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$
|
|
47695
|
+
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$R, "default");
|
|
47942
47696
|
|
|
47943
47697
|
var backgroundColor$d = {
|
|
47944
47698
|
"default": "#ffffff",
|
|
@@ -47973,7 +47727,7 @@ var modalLinkTextDecoration = {
|
|
|
47973
47727
|
"default": LINK_TEXT_DECORATION,
|
|
47974
47728
|
footer: "none"
|
|
47975
47729
|
};
|
|
47976
|
-
var fallbackValues$
|
|
47730
|
+
var fallbackValues$S = {
|
|
47977
47731
|
backgroundColor: backgroundColor$d,
|
|
47978
47732
|
linkColor: linkColor$5,
|
|
47979
47733
|
border: border$3,
|
|
@@ -48045,7 +47799,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
48045
47799
|
className: "modal-trigger"
|
|
48046
47800
|
}, link));
|
|
48047
47801
|
};
|
|
48048
|
-
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$
|
|
47802
|
+
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$S, "default");
|
|
48049
47803
|
|
|
48050
47804
|
var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
48051
47805
|
var onCheck = _ref.onCheck,
|
|
@@ -48817,7 +48571,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
|
48817
48571
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
48818
48572
|
var borderColor$6 = "".concat(GHOST_GREY);
|
|
48819
48573
|
var focusStyles = "outline: none;";
|
|
48820
|
-
var fallbackValues$
|
|
48574
|
+
var fallbackValues$T = {
|
|
48821
48575
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
48822
48576
|
headingDisabledColor: headingDisabledColor,
|
|
48823
48577
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
@@ -49152,9 +48906,9 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49152
48906
|
});
|
|
49153
48907
|
})));
|
|
49154
48908
|
};
|
|
49155
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
48909
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$T);
|
|
49156
48910
|
|
|
49157
|
-
var fallbackValues$
|
|
48911
|
+
var fallbackValues$U = {
|
|
49158
48912
|
primaryColor: ROYAL_BLUE_VIVID,
|
|
49159
48913
|
secondaryColor: CHARADE_GREY
|
|
49160
48914
|
};
|
|
@@ -49265,7 +49019,7 @@ var RegistrationBanner = function RegistrationBanner(_ref) {
|
|
|
49265
49019
|
weight: FONT_WEIGHT_SEMIBOLD
|
|
49266
49020
|
}, "or Log In")))));
|
|
49267
49021
|
};
|
|
49268
|
-
var RegistrationBanner$1 = withWindowSize(themeComponent(RegistrationBanner, "RegistrationBanner", fallbackValues$
|
|
49022
|
+
var RegistrationBanner$1 = withWindowSize(themeComponent(RegistrationBanner, "RegistrationBanner", fallbackValues$U));
|
|
49269
49023
|
|
|
49270
49024
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
49271
49025
|
var clearOnDismount = _ref.clearOnDismount,
|
|
@@ -49385,13 +49139,13 @@ RegistrationForm.mapDispatchToProps = mapDispatchToProps$9;
|
|
|
49385
49139
|
|
|
49386
49140
|
var GRECIAN_GREY$1 = GRECIAN_GREY;
|
|
49387
49141
|
var bannerBackgroundColor = GRECIAN_GREY$1;
|
|
49388
|
-
var fallbackValues$
|
|
49142
|
+
var fallbackValues$V = {
|
|
49389
49143
|
bannerBackgroundColor: bannerBackgroundColor
|
|
49390
49144
|
};
|
|
49391
49145
|
|
|
49392
49146
|
var ResetConfirmationForm = function ResetConfirmationForm() {
|
|
49393
49147
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
49394
|
-
var themeValues = createThemeValues(themeContext, fallbackValues$
|
|
49148
|
+
var themeValues = createThemeValues(themeContext, fallbackValues$V, "ResetConfirmationForm");
|
|
49395
49149
|
var isMobile = themeContext.isMobile;
|
|
49396
49150
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
49397
49151
|
padding: "0",
|
|
@@ -49506,13 +49260,13 @@ ResetPasswordForm.mapDispatchToProps = mapDispatchToProps$a;
|
|
|
49506
49260
|
|
|
49507
49261
|
var GRECIAN_GREY$2 = GRECIAN_GREY;
|
|
49508
49262
|
var bannerBackgroundColor$1 = GRECIAN_GREY$2;
|
|
49509
|
-
var fallbackValues$
|
|
49263
|
+
var fallbackValues$W = {
|
|
49510
49264
|
bannerBackgroundColor: bannerBackgroundColor$1
|
|
49511
49265
|
};
|
|
49512
49266
|
|
|
49513
49267
|
var ResetPasswordSuccess = function ResetPasswordSuccess() {
|
|
49514
49268
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
49515
|
-
var themeValues = createThemeValues(themeContext, fallbackValues$
|
|
49269
|
+
var themeValues = createThemeValues(themeContext, fallbackValues$W, "ResetPasswordSuccess");
|
|
49516
49270
|
var isMobile = themeContext.isMobile;
|
|
49517
49271
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
49518
49272
|
padding: "0",
|
|
@@ -49561,7 +49315,7 @@ var ResetPasswordSuccess$1 = withWindowSize(ResetPasswordSuccess);
|
|
|
49561
49315
|
var activeTabBackground = "#FFFFFF";
|
|
49562
49316
|
var activeTabAccent = "#15749D";
|
|
49563
49317
|
var activeTabHover = "#B8D5E1";
|
|
49564
|
-
var fallbackValues$
|
|
49318
|
+
var fallbackValues$X = {
|
|
49565
49319
|
activeTabBackground: activeTabBackground,
|
|
49566
49320
|
activeTabAccent: activeTabAccent,
|
|
49567
49321
|
activeTabHover: activeTabHover
|
|
@@ -49656,12 +49410,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
49656
49410
|
}, tab.content);
|
|
49657
49411
|
}))));
|
|
49658
49412
|
};
|
|
49659
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
49413
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$X);
|
|
49660
49414
|
|
|
49661
49415
|
var activeTabBackground$1 = "#FFFFFF";
|
|
49662
49416
|
var activeTabAccent$1 = "#15749D";
|
|
49663
49417
|
var activeTabHover$1 = "#B8D5E1";
|
|
49664
|
-
var fallbackValues$
|
|
49418
|
+
var fallbackValues$Y = {
|
|
49665
49419
|
activeTabBackground: activeTabBackground$1,
|
|
49666
49420
|
activeTabAccent: activeTabAccent$1,
|
|
49667
49421
|
activeTabHover: activeTabHover$1
|
|
@@ -49720,7 +49474,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
49720
49474
|
}, text)))));
|
|
49721
49475
|
})));
|
|
49722
49476
|
};
|
|
49723
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
49477
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$Y);
|
|
49724
49478
|
|
|
49725
49479
|
var Timeout = function Timeout(_ref) {
|
|
49726
49480
|
var onLogout = _ref.onLogout;
|
|
@@ -49841,7 +49595,7 @@ var fontColor$1 = WHITE;
|
|
|
49841
49595
|
var textAlign$1 = "left";
|
|
49842
49596
|
var headerBackgroundColor$1 = BRIGHT_GREY;
|
|
49843
49597
|
var imageBackgroundColor$1 = MATISSE_BLUE;
|
|
49844
|
-
var fallbackValues$
|
|
49598
|
+
var fallbackValues$Z = {
|
|
49845
49599
|
fontWeight: fontWeight$9,
|
|
49846
49600
|
fontColor: fontColor$1,
|
|
49847
49601
|
textAlign: textAlign$1,
|
|
@@ -49886,7 +49640,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
|
|
|
49886
49640
|
src: welcomeImage
|
|
49887
49641
|
})))));
|
|
49888
49642
|
};
|
|
49889
|
-
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$
|
|
49643
|
+
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$Z));
|
|
49890
49644
|
|
|
49891
49645
|
var WorkflowTile = function WorkflowTile(_ref) {
|
|
49892
49646
|
var _ref$workflowName = _ref.workflowName,
|
|
@@ -49946,7 +49700,7 @@ var menuItemColorDelete = RAZZMATAZZ_RED;
|
|
|
49946
49700
|
var menuItemHoverBackgroundColor = CORNFLOWER_BLUE;
|
|
49947
49701
|
var menuItemHoverBackgroundColorDelete = BLUSH_RED;
|
|
49948
49702
|
var menuItemHoverColor = ROYAL_BLUE_VIVID;
|
|
49949
|
-
var fallbackValues
|
|
49703
|
+
var fallbackValues$_ = {
|
|
49950
49704
|
menuItemBackgroundColor: menuItemBackgroundColor,
|
|
49951
49705
|
menuItemColor: menuItemColor,
|
|
49952
49706
|
menuItemColorDelete: menuItemColorDelete,
|
|
@@ -50013,15 +49767,15 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
50013
49767
|
extraStyles: textExtraStyles
|
|
50014
49768
|
}, text)));
|
|
50015
49769
|
};
|
|
50016
|
-
var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues
|
|
49770
|
+
var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$_);
|
|
50017
49771
|
|
|
50018
|
-
var hoverColor$
|
|
50019
|
-
var activeColor$
|
|
49772
|
+
var hoverColor$5 = "#116285";
|
|
49773
|
+
var activeColor$a = "#0E506D";
|
|
50020
49774
|
var menuTriggerColor = "#15749D";
|
|
50021
49775
|
var backgroundColor$e = "white";
|
|
50022
|
-
var fallbackValues
|
|
50023
|
-
hoverColor: hoverColor$
|
|
50024
|
-
activeColor: activeColor$
|
|
49776
|
+
var fallbackValues$$ = {
|
|
49777
|
+
hoverColor: hoverColor$5,
|
|
49778
|
+
activeColor: activeColor$a,
|
|
50025
49779
|
menuTriggerColor: menuTriggerColor,
|
|
50026
49780
|
backgroundColor: backgroundColor$e
|
|
50027
49781
|
};
|
|
@@ -50155,13 +49909,13 @@ var PopupMenu = function PopupMenu(_ref) {
|
|
|
50155
49909
|
}, item));
|
|
50156
49910
|
})));
|
|
50157
49911
|
};
|
|
50158
|
-
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues
|
|
49912
|
+
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$$);
|
|
50159
49913
|
|
|
50160
49914
|
var primaryColor$1 = WHITE;
|
|
50161
49915
|
var primaryHoverColor = INFO_BLUE;
|
|
50162
49916
|
var secondaryColor = MATISSE_BLUE;
|
|
50163
49917
|
var secondaryHoverColor = "#115D7E";
|
|
50164
|
-
var fallbackValues$
|
|
49918
|
+
var fallbackValues$10 = {
|
|
50165
49919
|
primaryColor: primaryColor$1,
|
|
50166
49920
|
primaryHoverColor: primaryHoverColor,
|
|
50167
49921
|
secondaryColor: secondaryColor,
|
|
@@ -50863,7 +50617,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50863
50617
|
ariaLabel: "Apply all filters"
|
|
50864
50618
|
}))));
|
|
50865
50619
|
};
|
|
50866
|
-
var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$
|
|
50620
|
+
var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$10);
|
|
50867
50621
|
|
|
50868
50622
|
var TextWrapStyles = styled.css(["word-wrap:break-word;overflow-wrap:break-word;white-space:normal;max-width:100%;"]);
|
|
50869
50623
|
var Container$1 = styled__default(Box).withConfig({
|
|
@@ -51065,7 +50819,7 @@ var justifyContent = {
|
|
|
51065
50819
|
desktop: "center"
|
|
51066
50820
|
}
|
|
51067
50821
|
};
|
|
51068
|
-
var fallbackValues$
|
|
50822
|
+
var fallbackValues$11 = {
|
|
51069
50823
|
// Colors
|
|
51070
50824
|
heroPrimaryColor: heroPrimaryColor,
|
|
51071
50825
|
heroTextColor: heroTextColor,
|
|
@@ -51272,7 +51026,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
51272
51026
|
theme: themeValues
|
|
51273
51027
|
}, description)))));
|
|
51274
51028
|
};
|
|
51275
|
-
var HeroImage$1 = withWindowSize(themeComponent(HeroImage, "HeroImage", fallbackValues$
|
|
51029
|
+
var HeroImage$1 = withWindowSize(themeComponent(HeroImage, "HeroImage", fallbackValues$11, "v1"));
|
|
51276
51030
|
|
|
51277
51031
|
var TurnstileWidgetContainer = styled__default(Box).withConfig({
|
|
51278
51032
|
displayName: "TurnstileWidget__TurnstileWidgetContainer",
|
|
@@ -51415,6 +51169,153 @@ var TurnstileWidget = /*#__PURE__*/React.forwardRef(function (_ref4, ref) {
|
|
|
51415
51169
|
}, error)));
|
|
51416
51170
|
});
|
|
51417
51171
|
|
|
51172
|
+
var hoverColor$6 = "#116285";
|
|
51173
|
+
var activeColor$b = "#0E506D";
|
|
51174
|
+
var tooltipTriggerColor = "#15749D";
|
|
51175
|
+
var fallbackValues$12 = {
|
|
51176
|
+
hoverColor: hoverColor$6,
|
|
51177
|
+
activeColor: activeColor$b,
|
|
51178
|
+
tooltipTriggerColor: tooltipTriggerColor
|
|
51179
|
+
};
|
|
51180
|
+
|
|
51181
|
+
var arrowBorder$1 = function arrowBorder(borderColor, direction) {
|
|
51182
|
+
var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
|
|
51183
|
+
var angle = "".concat(width, " solid transparent");
|
|
51184
|
+
var straight = "".concat(width, " solid ").concat(borderColor);
|
|
51185
|
+
if (direction == "down") {
|
|
51186
|
+
return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
|
|
51187
|
+
} else if (direction == "up") {
|
|
51188
|
+
return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
|
|
51189
|
+
} else if (direction == "left") {
|
|
51190
|
+
return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
|
|
51191
|
+
} else if (direction == "right") {
|
|
51192
|
+
return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
|
|
51193
|
+
}
|
|
51194
|
+
};
|
|
51195
|
+
var Tooltip = function Tooltip(_ref) {
|
|
51196
|
+
var themeValues = _ref.themeValues,
|
|
51197
|
+
_ref$triggerText = _ref.triggerText,
|
|
51198
|
+
triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
|
|
51199
|
+
_ref$content = _ref.content,
|
|
51200
|
+
content = _ref$content === void 0 ? "" : _ref$content,
|
|
51201
|
+
_ref$hasIconTrigger = _ref.hasIconTrigger,
|
|
51202
|
+
hasIconTrigger = _ref$hasIconTrigger === void 0 ? false : _ref$hasIconTrigger,
|
|
51203
|
+
_ref$IconTrigger = _ref.IconTrigger,
|
|
51204
|
+
IconTrigger = _ref$IconTrigger === void 0 ? IconAdd : _ref$IconTrigger,
|
|
51205
|
+
_ref$iconHelpText = _ref.iconHelpText,
|
|
51206
|
+
iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
|
|
51207
|
+
_ref$tooltipID = _ref.tooltipID,
|
|
51208
|
+
tooltipID = _ref$tooltipID === void 0 ? 0 : _ref$tooltipID,
|
|
51209
|
+
extraStyles = _ref.extraStyles,
|
|
51210
|
+
_ref$textExtraStyles = _ref.textExtraStyles,
|
|
51211
|
+
textExtraStyles = _ref$textExtraStyles === void 0 ? "" : _ref$textExtraStyles,
|
|
51212
|
+
_ref$minWidth = _ref.minWidth,
|
|
51213
|
+
minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
|
|
51214
|
+
_ref$maxWidth = _ref.maxWidth,
|
|
51215
|
+
maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
|
|
51216
|
+
_ref$height = _ref.height,
|
|
51217
|
+
height = _ref$height === void 0 ? "auto" : _ref$height,
|
|
51218
|
+
position = _ref.position,
|
|
51219
|
+
arrowPosition = _ref.arrowPosition,
|
|
51220
|
+
_ref$arrowDirection = _ref.arrowDirection,
|
|
51221
|
+
arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
|
|
51222
|
+
_ref$transform = _ref.transform,
|
|
51223
|
+
transform = _ref$transform === void 0 ? "none" : _ref$transform,
|
|
51224
|
+
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
51225
|
+
_ref$backgroundColor = _ref.backgroundColor,
|
|
51226
|
+
backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
|
|
51227
|
+
_ref$borderColor = _ref.borderColor,
|
|
51228
|
+
borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
|
|
51229
|
+
tooltipExtraStyles = _ref.tooltipExtraStyles;
|
|
51230
|
+
var hoverColor = themeValues.hoverColor,
|
|
51231
|
+
activeColor = themeValues.activeColor,
|
|
51232
|
+
tooltipTriggerColor = themeValues.tooltipTriggerColor;
|
|
51233
|
+
var _ref2 = position !== null && position !== void 0 ? position : {},
|
|
51234
|
+
_ref2$top = _ref2.top,
|
|
51235
|
+
top = _ref2$top === void 0 ? "-110px" : _ref2$top,
|
|
51236
|
+
_ref2$right = _ref2.right,
|
|
51237
|
+
right = _ref2$right === void 0 ? "auto" : _ref2$right,
|
|
51238
|
+
_ref2$bottom = _ref2.bottom,
|
|
51239
|
+
bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
|
|
51240
|
+
_ref2$left = _ref2.left,
|
|
51241
|
+
left = _ref2$left === void 0 ? "-225px" : _ref2$left;
|
|
51242
|
+
var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
|
|
51243
|
+
_ref3$arrowTop = _ref3.arrowTop,
|
|
51244
|
+
arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
|
|
51245
|
+
_ref3$arrowRight = _ref3.arrowRight,
|
|
51246
|
+
arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
|
|
51247
|
+
_ref3$arrowBottom = _ref3.arrowBottom,
|
|
51248
|
+
arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
|
|
51249
|
+
_ref3$arrowLeft = _ref3.arrowLeft,
|
|
51250
|
+
arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
|
|
51251
|
+
var _useState = React.useState(false),
|
|
51252
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
51253
|
+
tooltipOpen = _useState2[0],
|
|
51254
|
+
setTooltipOpen = _useState2[1];
|
|
51255
|
+
var handleToggleTooltip = function handleToggleTooltip(tooltipState) {
|
|
51256
|
+
if (tooltipOpen !== tooltipState) {
|
|
51257
|
+
setTooltipOpen(tooltipState);
|
|
51258
|
+
}
|
|
51259
|
+
};
|
|
51260
|
+
var handleKeyboardEvent = function handleKeyboardEvent(e) {
|
|
51261
|
+
if (e.keyCode === ESCAPE || e.keyCode === 9) {
|
|
51262
|
+
handleToggleTooltip(false);
|
|
51263
|
+
}
|
|
51264
|
+
};
|
|
51265
|
+
return /*#__PURE__*/React__default.createElement(Box, {
|
|
51266
|
+
padding: "0",
|
|
51267
|
+
extraStyles: "position: relative; ".concat(extraStyles)
|
|
51268
|
+
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
51269
|
+
action: function action() {
|
|
51270
|
+
return noop$1;
|
|
51271
|
+
},
|
|
51272
|
+
onFocus: function onFocus() {
|
|
51273
|
+
return handleToggleTooltip(true);
|
|
51274
|
+
},
|
|
51275
|
+
onBlur: function onBlur() {
|
|
51276
|
+
return handleToggleTooltip(false);
|
|
51277
|
+
},
|
|
51278
|
+
onKeyDown: handleKeyboardEvent,
|
|
51279
|
+
onTouchStart: function onTouchStart() {
|
|
51280
|
+
return handleToggleTooltip(true);
|
|
51281
|
+
},
|
|
51282
|
+
onTouchEnd: function onTouchEnd() {
|
|
51283
|
+
return handleToggleTooltip(false);
|
|
51284
|
+
},
|
|
51285
|
+
onMouseEnter: function onMouseEnter() {
|
|
51286
|
+
return handleToggleTooltip(true);
|
|
51287
|
+
},
|
|
51288
|
+
onMouseLeave: function onMouseLeave() {
|
|
51289
|
+
return handleToggleTooltip(false);
|
|
51290
|
+
},
|
|
51291
|
+
contentOverride: true,
|
|
51292
|
+
variant: "smallGhost",
|
|
51293
|
+
tabIndex: "0",
|
|
51294
|
+
"aria-describedby": tooltipID,
|
|
51295
|
+
extraStyles: buttonExtraStyles
|
|
51296
|
+
}, hasIconTrigger && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(IconTrigger, {
|
|
51297
|
+
stroke: BLACK
|
|
51298
|
+
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
51299
|
+
padding: "0",
|
|
51300
|
+
srOnly: true
|
|
51301
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, null, iconHelpText))), !hasIconTrigger && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
51302
|
+
extraStyles: textExtraStyles
|
|
51303
|
+
}, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
|
|
51304
|
+
background: backgroundColor,
|
|
51305
|
+
borderRadius: "4px",
|
|
51306
|
+
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
|
|
51307
|
+
id: tooltipID,
|
|
51308
|
+
role: "tooltip",
|
|
51309
|
+
minWidth: minWidth,
|
|
51310
|
+
maxWidth: maxWidth,
|
|
51311
|
+
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 ")
|
|
51312
|
+
}, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
|
|
51313
|
+
padding: "0",
|
|
51314
|
+
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 ")
|
|
51315
|
+
})));
|
|
51316
|
+
};
|
|
51317
|
+
var Tooltip$1 = themeComponent(Tooltip, "Tooltip", fallbackValues$12);
|
|
51318
|
+
|
|
51418
51319
|
var pageBackground = "#FBFCFD";
|
|
51419
51320
|
var fallbackValues$13 = {
|
|
51420
51321
|
pageBackground: pageBackground
|
|
@@ -51815,7 +51716,6 @@ exports.DisabledPaymentMethodsAddIcon = DisabledPaymentMethodsAddIcon;
|
|
|
51815
51716
|
exports.DisabledPropertiesAddIcon = DisabledPropertiesAddIcon;
|
|
51816
51717
|
exports.DiscoverSmallIcon = DiscoverSmallIcon;
|
|
51817
51718
|
exports.DisplayBox = DisplayBox$1;
|
|
51818
|
-
exports.DisplayCard = DisplayCard;
|
|
51819
51719
|
exports.Dropdown = Dropdown$1;
|
|
51820
51720
|
exports.DuplicateIcon = DuplicateIcon;
|
|
51821
51721
|
exports.EditNameForm = EditNameForm;
|