@thecb/components 11.8.0-beta.2 → 11.8.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +977 -1084
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +978 -1084
- 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 -127
- package/src/components/atoms/display-card/DisplayCard.mdx +0 -13
- package/src/components/atoms/display-card/DisplayCard.stories.js +0 -274
- package/src/components/atoms/display-card/index.js +0 -3
package/dist/index.cjs.js
CHANGED
|
@@ -25198,873 +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
|
-
linkText = _ref.linkText,
|
|
25690
|
-
linkURL = _ref.linkURL,
|
|
25691
|
-
_ref$linkExtraStyles = _ref.linkExtraStyles,
|
|
25692
|
-
linkExtraStyles = _ref$linkExtraStyles === void 0 ? "" : _ref$linkExtraStyles,
|
|
25693
|
-
helpText = _ref.helpText,
|
|
25694
|
-
_ref$hasTooltip = _ref.hasTooltip,
|
|
25695
|
-
hasTooltip = _ref$hasTooltip === void 0 ? false : _ref$hasTooltip,
|
|
25696
|
-
_ref$tooltipTriggerTe = _ref.tooltipTriggerText,
|
|
25697
|
-
tooltipTriggerText = _ref$tooltipTriggerTe === void 0 ? "" : _ref$tooltipTriggerTe,
|
|
25698
|
-
_ref$tooltipContent = _ref.tooltipContent,
|
|
25699
|
-
tooltipContent = _ref$tooltipContent === void 0 ? "" : _ref$tooltipContent,
|
|
25700
|
-
_ref$tooltipPosition = _ref.tooltipPosition,
|
|
25701
|
-
tooltipPosition = _ref$tooltipPosition === void 0 ? {
|
|
25702
|
-
top: "auto",
|
|
25703
|
-
bottom: "calc(100% + 0.25rem)",
|
|
25704
|
-
left: "auto",
|
|
25705
|
-
right: "0"
|
|
25706
|
-
} : _ref$tooltipPosition,
|
|
25707
|
-
_ref$tooltipArrowPosi = _ref.tooltipArrowPosition,
|
|
25708
|
-
tooltipArrowPosition = _ref$tooltipArrowPosi === void 0 ? {
|
|
25709
|
-
arrowBottom: "-0.5rem",
|
|
25710
|
-
arrowRight: "0.625rem",
|
|
25711
|
-
arrowTop: "auto",
|
|
25712
|
-
arrowLeft: "auto"
|
|
25713
|
-
} : _ref$tooltipArrowPosi,
|
|
25714
|
-
tooltipArrowDirection = _ref.tooltipArrowDirection,
|
|
25715
|
-
tooltipExtraStyles = _ref.tooltipExtraStyles,
|
|
25716
|
-
_ref$tooltipTextExtra = _ref.tooltipTextExtraStyles,
|
|
25717
|
-
tooltipTextExtraStyles = _ref$tooltipTextExtra === void 0 ? "max-width: 300px;" : _ref$tooltipTextExtra,
|
|
25718
|
-
_ref$hasPopover = _ref.hasPopover,
|
|
25719
|
-
hasPopover = _ref$hasPopover === void 0 ? false : _ref$hasPopover,
|
|
25720
|
-
_ref$popoverTriggerTe = _ref.popoverTriggerText,
|
|
25721
|
-
popoverTriggerText = _ref$popoverTriggerTe === void 0 ? "" : _ref$popoverTriggerTe,
|
|
25722
|
-
_ref$popoverContent = _ref.popoverContent,
|
|
25723
|
-
popoverContent = _ref$popoverContent === void 0 ? "" : _ref$popoverContent,
|
|
25724
|
-
popoverExtraStyles = _ref.popoverExtraStyles,
|
|
25725
|
-
popoverTextExtraStyles = _ref.popoverTextExtraStyles;
|
|
25726
|
-
return /*#__PURE__*/React__default.createElement(Box, {
|
|
25727
|
-
padding: "0 0 16px"
|
|
25728
|
-
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
25729
|
-
childGap: "0rem"
|
|
25730
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
25731
|
-
padding: "0 0 8px 0"
|
|
25732
|
-
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
25733
|
-
justify: "space-between",
|
|
25734
|
-
align: "center",
|
|
25735
|
-
overflow: true
|
|
25736
|
-
}, /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
25737
|
-
variant: "pL",
|
|
25738
|
-
color: CHARADE_GREY,
|
|
25739
|
-
extraStyles: "letter-spacing: 0.29px"
|
|
25740
|
-
}, title), hasPopover && /*#__PURE__*/React__default.createElement(Popover$1, {
|
|
25741
|
-
triggerText: popoverTriggerText,
|
|
25742
|
-
content: popoverContent,
|
|
25743
|
-
popoverExtraStyles: popoverExtraStyles,
|
|
25744
|
-
popoverTextExtraStyles: popoverTextExtraStyles
|
|
25745
|
-
}), hasTooltip && /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
25746
|
-
triggerText: tooltipTriggerText,
|
|
25747
|
-
content: tooltipContent,
|
|
25748
|
-
textExtraStyles: tooltipTextExtraStyles,
|
|
25749
|
-
position: tooltipPosition,
|
|
25750
|
-
arrowPosition: tooltipArrowPosition,
|
|
25751
|
-
arrowDirection: tooltipArrowDirection,
|
|
25752
|
-
tooltipExtraStyles: tooltipExtraStyles
|
|
25753
|
-
}))), /*#__PURE__*/React__default.createElement(Box, {
|
|
25754
|
-
padding: "0"
|
|
25755
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
25756
|
-
padding: "24px",
|
|
25757
|
-
borderSize: "1px",
|
|
25758
|
-
borderRadius: "4px",
|
|
25759
|
-
background: WHITE,
|
|
25760
|
-
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
25761
|
-
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
25762
|
-
justify: "space-between",
|
|
25763
|
-
align: "center"
|
|
25764
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25765
|
-
color: CHARADE_GREY
|
|
25766
|
-
}, item), linkText && linkURL && /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
25767
|
-
to: linkURL,
|
|
25768
|
-
extraStyles: linkExtraStyles
|
|
25769
|
-
}, linkText), link ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|
|
25770
|
-
text: buttonText,
|
|
25771
|
-
url: url,
|
|
25772
|
-
variant: "smallGhost",
|
|
25773
|
-
dataQa: buttonText,
|
|
25774
|
-
extraStyles: "min-width: 0;"
|
|
25775
|
-
}) : buttonAction ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
25776
|
-
text: buttonText,
|
|
25777
|
-
action: buttonAction,
|
|
25778
|
-
variant: "smallGhost",
|
|
25779
|
-
dataQa: buttonText,
|
|
25780
|
-
extraStyles: "min-width: 0;"
|
|
25781
|
-
}) : helpText ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25782
|
-
color: STORM_GREY,
|
|
25783
|
-
extraStyles: "font-style: italic;"
|
|
25784
|
-
}, 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
|
+
};
|
|
25785
25398
|
};
|
|
25786
25399
|
|
|
25787
|
-
function
|
|
25788
|
-
|
|
25789
|
-
|
|
25790
|
-
|
|
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"]);
|
|
25791
25405
|
|
|
25792
|
-
|
|
25793
|
-
|
|
25794
|
-
|
|
25795
|
-
|
|
25796
|
-
}
|
|
25797
|
-
}
|
|
25406
|
+
var _useState = React.useState(format$1(formatter)(value)),
|
|
25407
|
+
_useState2 = _slicedToArray$1(_useState, 2),
|
|
25408
|
+
formattedValue = _useState2[0],
|
|
25409
|
+
setFormattedValue = _useState2[1];
|
|
25798
25410
|
|
|
25799
|
-
|
|
25800
|
-
|
|
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]);
|
|
25801
25424
|
|
|
25802
|
-
|
|
25803
|
-
|
|
25425
|
+
var handleChange = function handleChange(event) {
|
|
25426
|
+
var deleteKeyPressed = stateRefs.current.isDelete;
|
|
25427
|
+
var maxFormatExceeded = stateRefs.current.rawValue.length >= formatter.formats.length - 1;
|
|
25804
25428
|
|
|
25805
|
-
|
|
25806
|
-
|
|
25807
|
-
|
|
25808
|
-
|
|
25809
|
-
|
|
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
|
+
*/
|
|
25810
25438
|
|
|
25811
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
25812
|
-
key = sourceKeys[i];
|
|
25813
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
25814
|
-
target[key] = source[key];
|
|
25815
|
-
}
|
|
25816
25439
|
|
|
25817
|
-
|
|
25818
|
-
|
|
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
|
|
25819
25444
|
|
|
25820
|
-
|
|
25821
|
-
|
|
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
|
|
25822
25448
|
|
|
25823
|
-
|
|
25449
|
+
var unformattedOldValue = unformat(formatter)(formattedValue, stateRefs.current.rawValue.length); // Edit the previous unformatted value (either add, update or delete)
|
|
25824
25450
|
|
|
25825
|
-
|
|
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
|
|
25826
25456
|
|
|
25827
|
-
|
|
25828
|
-
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
|
|
25829
25461
|
|
|
25830
|
-
|
|
25831
|
-
|
|
25832
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
25833
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
25834
|
-
target[key] = source[key];
|
|
25462
|
+
if (onChange) {
|
|
25463
|
+
onChange(unformattedNewValue);
|
|
25835
25464
|
}
|
|
25836
|
-
}
|
|
25837
|
-
|
|
25838
|
-
return target;
|
|
25839
|
-
}
|
|
25465
|
+
};
|
|
25840
25466
|
|
|
25841
|
-
|
|
25842
|
-
|
|
25843
|
-
|
|
25844
|
-
|
|
25845
|
-
|
|
25846
|
-
|
|
25847
|
-
|
|
25848
|
-
|
|
25849
|
-
|
|
25850
|
-
|
|
25851
|
-
|
|
25852
|
-
|
|
25853
|
-
|
|
25854
|
-
}
|
|
25855
|
-
}
|
|
25856
|
-
|
|
25857
|
-
function _arrayWithHoles$1(arr) {
|
|
25858
|
-
if (Array.isArray(arr)) return arr;
|
|
25859
|
-
}
|
|
25860
|
-
|
|
25861
|
-
function _iterableToArray$1(iter) {
|
|
25862
|
-
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
25863
|
-
}
|
|
25864
|
-
|
|
25865
|
-
function _iterableToArrayLimit$1(arr, i) {
|
|
25866
|
-
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
|
25867
|
-
return;
|
|
25868
|
-
}
|
|
25869
|
-
|
|
25870
|
-
var _arr = [];
|
|
25871
|
-
var _n = true;
|
|
25872
|
-
var _d = false;
|
|
25873
|
-
var _e = undefined;
|
|
25874
|
-
|
|
25875
|
-
try {
|
|
25876
|
-
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
25877
|
-
_arr.push(_s.value);
|
|
25878
|
-
|
|
25879
|
-
if (i && _arr.length === i) break;
|
|
25880
|
-
}
|
|
25881
|
-
} catch (err) {
|
|
25882
|
-
_d = true;
|
|
25883
|
-
_e = err;
|
|
25884
|
-
} finally {
|
|
25885
|
-
try {
|
|
25886
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
25887
|
-
} finally {
|
|
25888
|
-
if (_d) throw _e;
|
|
25889
|
-
}
|
|
25890
|
-
}
|
|
25891
|
-
|
|
25892
|
-
return _arr;
|
|
25893
|
-
}
|
|
25894
|
-
|
|
25895
|
-
function _nonIterableSpread$1() {
|
|
25896
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
25897
|
-
}
|
|
25898
|
-
|
|
25899
|
-
function _nonIterableRest$1() {
|
|
25900
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
25901
|
-
}
|
|
25902
|
-
|
|
25903
|
-
var getUniqueFormatDelimiters = function getUniqueFormatDelimiters(formats, formatChar) {
|
|
25904
|
-
return _toConsumableArray$1(new Set(formats.join("").split(formatChar).join("").split("")));
|
|
25905
|
-
};
|
|
25906
|
-
var format$1 = function format(formatter) {
|
|
25907
|
-
return function (value) {
|
|
25908
|
-
var usedFormat = formatter.formats[value.length];
|
|
25909
|
-
|
|
25910
|
-
if (!usedFormat) {
|
|
25911
|
-
return value;
|
|
25912
|
-
}
|
|
25913
|
-
|
|
25914
|
-
var formatPieces = usedFormat.split(formatter.formatChar);
|
|
25915
|
-
var valuePieces = value.split("");
|
|
25916
|
-
var zipped = formatPieces.map(function (v, i) {
|
|
25917
|
-
return v + (valuePieces[i] || "");
|
|
25918
|
-
});
|
|
25919
|
-
return zipped.join("");
|
|
25920
|
-
};
|
|
25921
|
-
};
|
|
25922
|
-
|
|
25923
|
-
var countDelims = function countDelims(formatter, index) {
|
|
25924
|
-
var count = 0;
|
|
25925
|
-
var format = formatter.formats[index];
|
|
25926
|
-
if (!format) return 0;
|
|
25927
|
-
formatter.uniqueDelimiters.forEach(function (delim) {
|
|
25928
|
-
return count += format.split(delim).length - 1;
|
|
25929
|
-
});
|
|
25930
|
-
return count;
|
|
25931
|
-
};
|
|
25932
|
-
|
|
25933
|
-
var unformat = function unformat(formatter) {
|
|
25934
|
-
return function (formattedValue, formatIndex) {
|
|
25935
|
-
if (formatIndex >= formatter.formats.length) {
|
|
25936
|
-
return formattedValue;
|
|
25937
|
-
}
|
|
25938
|
-
|
|
25939
|
-
var format = formatter.formats[formatIndex];
|
|
25940
|
-
return formattedValue.split("").filter(function (_, i) {
|
|
25941
|
-
return !(format[i] != formatter.formatChar);
|
|
25942
|
-
}).join("");
|
|
25943
|
-
};
|
|
25944
|
-
};
|
|
25945
|
-
var inject = function inject(baseString) {
|
|
25946
|
-
return function (start, end, newString) {
|
|
25947
|
-
return baseString.substring(0, start) + newString + baseString.substring(end);
|
|
25948
|
-
};
|
|
25949
|
-
};
|
|
25950
|
-
var formattedToUnformattedIndex = function formattedToUnformattedIndex(formattedIndex, rawValue, formatter) {
|
|
25951
|
-
var maxFormatExceeded = rawValue.length >= formatter.formats.length;
|
|
25952
|
-
|
|
25953
|
-
if (maxFormatExceeded) {
|
|
25954
|
-
return formattedIndex;
|
|
25955
|
-
} else {
|
|
25956
|
-
var formatString = formatter.formats[rawValue.length];
|
|
25957
|
-
var beforeString = formatString.slice(0, formattedIndex);
|
|
25958
|
-
return beforeString.split("").filter(function (c) {
|
|
25959
|
-
return c === formatter.formatChar;
|
|
25960
|
-
}).length;
|
|
25961
|
-
}
|
|
25962
|
-
};
|
|
25963
|
-
var unformattedToFormattedIndex = function unformattedToFormattedIndex(rawIndex, rawValue, formatter, del) {
|
|
25964
|
-
var maxFormatExceeded = rawValue.length >= formatter.formats.length; // If forced to stay formatted, offset by delims - 1
|
|
25965
|
-
// This is done so the component doesn't assume that any added chars will be kept
|
|
25966
|
-
// (i.e. if an external constraint is applied)
|
|
25967
|
-
|
|
25968
|
-
if (maxFormatExceeded) {
|
|
25969
|
-
var delims = countDelims(formatter, rawValue.length - 1);
|
|
25970
|
-
return delims > 0 && !del ? rawIndex + delims - 1 : rawIndex;
|
|
25971
|
-
} else {
|
|
25972
|
-
return formatter.formats[rawValue.length].split(formatter.formatChar).slice(0, rawIndex).reduce(function (acc, curr) {
|
|
25973
|
-
return curr.length + acc;
|
|
25974
|
-
}, 0) + rawIndex;
|
|
25975
|
-
}
|
|
25976
|
-
};
|
|
25977
|
-
|
|
25978
|
-
var createFormat = function createFormat(formats, formatChar) {
|
|
25979
|
-
return {
|
|
25980
|
-
uniqueDelimiters: getUniqueFormatDelimiters(formats, formatChar),
|
|
25981
|
-
formats: formats,
|
|
25982
|
-
formatChar: formatChar
|
|
25983
|
-
};
|
|
25984
|
-
};
|
|
25985
|
-
|
|
25986
|
-
var FormattedInput = function FormattedInput(_ref) {
|
|
25987
|
-
var value = _ref.value,
|
|
25988
|
-
formatter = _ref.formatter,
|
|
25989
|
-
onChange = _ref.onChange,
|
|
25990
|
-
props = _objectWithoutProperties$1(_ref, ["value", "formatter", "onChange"]);
|
|
25991
|
-
|
|
25992
|
-
var _useState = React.useState(format$1(formatter)(value)),
|
|
25993
|
-
_useState2 = _slicedToArray$1(_useState, 2),
|
|
25994
|
-
formattedValue = _useState2[0],
|
|
25995
|
-
setFormattedValue = _useState2[1];
|
|
25996
|
-
|
|
25997
|
-
var inputEl = React.useRef(null);
|
|
25998
|
-
var stateRefs = React.useRef({
|
|
25999
|
-
selectionStart: 0,
|
|
26000
|
-
selectionEnd: 0,
|
|
26001
|
-
isDelete: false,
|
|
26002
|
-
rawValue: ''
|
|
26003
|
-
});
|
|
26004
|
-
React.useLayoutEffect(function () {
|
|
26005
|
-
// A lot of the work here is cursor manipulation
|
|
26006
|
-
if (inputEl.current && inputEl.current === document.activeElement) {
|
|
26007
|
-
inputEl.current.setSelectionRange(stateRefs.current.selectionStart, stateRefs.current.selectionEnd);
|
|
26008
|
-
}
|
|
26009
|
-
}, [stateRefs]);
|
|
26010
|
-
|
|
26011
|
-
var handleChange = function handleChange(event) {
|
|
26012
|
-
var deleteKeyPressed = stateRefs.current.isDelete;
|
|
26013
|
-
var maxFormatExceeded = stateRefs.current.rawValue.length >= formatter.formats.length - 1;
|
|
26014
|
-
|
|
26015
|
-
if (maxFormatExceeded && !deleteKeyPressed) {
|
|
26016
|
-
return;
|
|
26017
|
-
}
|
|
26018
|
-
/* At the beginning of onChange, event.target.value is a concat of the previous formatted value
|
|
26019
|
-
* and an unformatted injection at the start, end, or in the middle (maybe a deletion). To prepare
|
|
26020
|
-
* the unformatted value for the user's onChange, the formatted string and unformatted injection need
|
|
26021
|
-
* to be separated, then unformat the formatted string, then insert (or delete) the injection from the
|
|
26022
|
-
* old unformatted value.
|
|
26023
|
-
*/
|
|
26024
|
-
|
|
26025
|
-
|
|
26026
|
-
var injectionLength = event.target.value.length - formattedValue.length;
|
|
26027
|
-
var end = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? stateRefs.current.selectionStart + injectionLength : stateRefs.current.selectionEnd - 1;
|
|
26028
|
-
var injection = event.target.value.substring(stateRefs.current.selectionStart, end); // Injection is the new unformatted piece of the input
|
|
26029
|
-
// Need to find where to put it
|
|
26030
|
-
|
|
26031
|
-
var rawInjectionPointStart = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter);
|
|
26032
|
-
var rawInjectionPointEnd = formattedToUnformattedIndex(stateRefs.current.selectionEnd, stateRefs.current.rawValue, formatter); // Unformat the previous formatted value for injection
|
|
26033
|
-
// Using the relevant format string, strips away chars not marked with the formatChar
|
|
26034
|
-
|
|
26035
|
-
var unformattedOldValue = unformat(formatter)(formattedValue, stateRefs.current.rawValue.length); // Edit the previous unformatted value (either add, update or delete)
|
|
26036
|
-
|
|
26037
|
-
var injectIntoOldValue = inject(unformattedOldValue);
|
|
26038
|
-
var unformattedNewValue = deleteKeyPressed ? rawInjectionPointStart === rawInjectionPointEnd ? injectIntoOldValue(rawInjectionPointStart - 1, rawInjectionPointStart, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, injection);
|
|
26039
|
-
var lengthDifference = unformattedNewValue.length - stateRefs.current.rawValue.length;
|
|
26040
|
-
var rawIndex = formattedToUnformattedIndex(stateRefs.current.selectionStart, stateRefs.current.rawValue, formatter) + lengthDifference; // Find the new cursor position for the potential formatted value
|
|
26041
|
-
// Applied by useLayoutEffect
|
|
26042
|
-
|
|
26043
|
-
var newFormattedCursorPosition = stateRefs.current.selectionStart === stateRefs.current.selectionEnd ? unformattedToFormattedIndex(rawIndex, unformattedNewValue, formatter, deleteKeyPressed) : deleteKeyPressed ? stateRefs.current.selectionStart : stateRefs.current.selectionEnd;
|
|
26044
|
-
var formattedNewValue = format$1(formatter)(unformattedNewValue);
|
|
26045
|
-
setFormattedValue(formattedNewValue); // Apply the external onChange function to the raw underlying string
|
|
26046
|
-
// This is where the user generally updates the input value
|
|
26047
|
-
|
|
26048
|
-
if (onChange) {
|
|
26049
|
-
onChange(unformattedNewValue);
|
|
26050
|
-
}
|
|
26051
|
-
};
|
|
26052
|
-
|
|
26053
|
-
return React__default.createElement("input", _extends$2({}, props, {
|
|
26054
|
-
ref: inputEl,
|
|
26055
|
-
value: format$1(formatter)(value),
|
|
26056
|
-
onKeyDown: function onKeyDown(event) {
|
|
26057
|
-
// Keep track of the state of the input before onChange
|
|
26058
|
-
stateRefs.current = {
|
|
26059
|
-
isDelete: event.key === "Backspace" || event.key === "Delete",
|
|
26060
|
-
selectionStart: event.target.selectionStart,
|
|
26061
|
-
selectionEnd: event.target.selectionEnd,
|
|
26062
|
-
rawValue: value
|
|
26063
|
-
};
|
|
26064
|
-
},
|
|
26065
|
-
onChange: handleChange
|
|
26066
|
-
}));
|
|
26067
|
-
};
|
|
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
|
+
};
|
|
26068
25482
|
|
|
26069
25483
|
var linkColor$2 = {
|
|
26070
25484
|
"default": "".concat(MATISSE_BLUE),
|
|
@@ -26115,7 +25529,7 @@ var hoverFocusStyles$1 = {
|
|
|
26115
25529
|
var formFooterPanel = {
|
|
26116
25530
|
"default": "".concat(INFO_BLUE)
|
|
26117
25531
|
};
|
|
26118
|
-
var fallbackValues$
|
|
25532
|
+
var fallbackValues$m = {
|
|
26119
25533
|
linkColor: linkColor$2,
|
|
26120
25534
|
formBackgroundColor: formBackgroundColor$1,
|
|
26121
25535
|
inputBackgroundColor: inputBackgroundColor$1,
|
|
@@ -26372,7 +25786,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26372
25786
|
padding: "0 0 0 auto"
|
|
26373
25787
|
}, decorator)));
|
|
26374
25788
|
};
|
|
26375
|
-
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$
|
|
25789
|
+
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$m, "default");
|
|
26376
25790
|
|
|
26377
25791
|
var _excluded$A = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
26378
25792
|
var FormInputRow = function FormInputRow(_ref) {
|
|
@@ -26420,7 +25834,7 @@ var FormContainer = function FormContainer(_ref) {
|
|
|
26420
25834
|
borderRadius: "4px"
|
|
26421
25835
|
}, rest), children);
|
|
26422
25836
|
};
|
|
26423
|
-
var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$
|
|
25837
|
+
var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$m, "default");
|
|
26424
25838
|
|
|
26425
25839
|
var FormFooterPanel = function FormFooterPanel(_ref) {
|
|
26426
25840
|
var themeValues = _ref.themeValues,
|
|
@@ -26441,7 +25855,7 @@ var FormFooterPanel = function FormFooterPanel(_ref) {
|
|
|
26441
25855
|
text: linkText
|
|
26442
25856
|
})));
|
|
26443
25857
|
};
|
|
26444
|
-
var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$
|
|
25858
|
+
var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$m, "default");
|
|
26445
25859
|
|
|
26446
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"];
|
|
26447
25861
|
var TextareaField = styled__default.textarea.withConfig({
|
|
@@ -26577,7 +25991,7 @@ var FormTextarea = function FormTextarea(_ref8) {
|
|
|
26577
25991
|
extraStyles: "height: ".concat(themeValues.lineHeight, "; ").concat(errorFieldExtraStyles, ";")
|
|
26578
25992
|
})));
|
|
26579
25993
|
};
|
|
26580
|
-
var FormTextarea$1 = themeComponent(FormTextarea, "FormTextarea", fallbackValues$
|
|
25994
|
+
var FormTextarea$1 = themeComponent(FormTextarea, "FormTextarea", fallbackValues$m, "default");
|
|
26581
25995
|
|
|
26582
25996
|
var fontSize$7 = {
|
|
26583
25997
|
"default": "1rem",
|
|
@@ -26591,7 +26005,7 @@ var color$9 = {
|
|
|
26591
26005
|
"default": "".concat(CHARADE_GREY),
|
|
26592
26006
|
radio: "".concat(MINESHAFT_GREY)
|
|
26593
26007
|
};
|
|
26594
|
-
var fallbackValues$
|
|
26008
|
+
var fallbackValues$n = {
|
|
26595
26009
|
fontSize: fontSize$7,
|
|
26596
26010
|
padding: padding$1,
|
|
26597
26011
|
color: color$9
|
|
@@ -26633,11 +26047,11 @@ var FormattedAddress = function FormattedAddress(_ref) {
|
|
|
26633
26047
|
dataQa: "".concat(qaPrefix, "-3")
|
|
26634
26048
|
}, city, ", ", stateProvince, " ".concat(zip), country ? " ".concat(country) : "")));
|
|
26635
26049
|
};
|
|
26636
|
-
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$
|
|
26050
|
+
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$n, "default");
|
|
26637
26051
|
|
|
26638
26052
|
var textColor$1 = "".concat(CHARADE_GREY);
|
|
26639
26053
|
var autopayTextColor = "".concat(REGENT_GREY);
|
|
26640
|
-
var fallbackValues$
|
|
26054
|
+
var fallbackValues$o = {
|
|
26641
26055
|
textColor: textColor$1,
|
|
26642
26056
|
autopayTextColor: autopayTextColor
|
|
26643
26057
|
};
|
|
@@ -26675,11 +26089,11 @@ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
|
|
|
26675
26089
|
extraStyles: "font-style: italic;"
|
|
26676
26090
|
}, "Autopay Enabled")));
|
|
26677
26091
|
};
|
|
26678
|
-
var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$
|
|
26092
|
+
var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$o);
|
|
26679
26093
|
|
|
26680
26094
|
var textColor$2 = "".concat(CHARADE_GREY);
|
|
26681
26095
|
var autopayTextColor$1 = "".concat(REGENT_GREY);
|
|
26682
|
-
var fallbackValues$
|
|
26096
|
+
var fallbackValues$p = {
|
|
26683
26097
|
textColor: textColor$2,
|
|
26684
26098
|
autopayTextColor: autopayTextColor$1
|
|
26685
26099
|
};
|
|
@@ -26771,7 +26185,7 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
|
26771
26185
|
extraStyles: "font-style: italic;"
|
|
26772
26186
|
}, "Autopay Enabled")));
|
|
26773
26187
|
};
|
|
26774
|
-
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$
|
|
26188
|
+
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$p);
|
|
26775
26189
|
|
|
26776
26190
|
var Hamburger = styled__default.button.withConfig({
|
|
26777
26191
|
displayName: "HamburgerButton__Hamburger",
|
|
@@ -26852,7 +26266,7 @@ var fontSize$8 = {
|
|
|
26852
26266
|
h5: "1.375rem",
|
|
26853
26267
|
h6: "1.25rem"
|
|
26854
26268
|
};
|
|
26855
|
-
var fallbackValues$
|
|
26269
|
+
var fallbackValues$q = {
|
|
26856
26270
|
fontFamily: fontFamily$5,
|
|
26857
26271
|
fontSize: fontSize$8
|
|
26858
26272
|
};
|
|
@@ -26891,7 +26305,7 @@ var Heading = function Heading(_ref) {
|
|
|
26891
26305
|
"data-qa": dataQa
|
|
26892
26306
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
26893
26307
|
};
|
|
26894
|
-
var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$
|
|
26308
|
+
var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$q, "h1");
|
|
26895
26309
|
|
|
26896
26310
|
var Image = styled__default.img.withConfig({
|
|
26897
26311
|
displayName: "ImageBoxstyled__Image",
|
|
@@ -26947,7 +26361,7 @@ var ImageBox = function ImageBox(_ref) {
|
|
|
26947
26361
|
};
|
|
26948
26362
|
|
|
26949
26363
|
var color$a = "#15749D";
|
|
26950
|
-
var fallbackValues$
|
|
26364
|
+
var fallbackValues$r = {
|
|
26951
26365
|
color: color$a
|
|
26952
26366
|
};
|
|
26953
26367
|
|
|
@@ -27013,7 +26427,7 @@ var Spinner$1 = function Spinner(_ref6) {
|
|
|
27013
26427
|
strokeWidth: strokeWidth
|
|
27014
26428
|
})));
|
|
27015
26429
|
};
|
|
27016
|
-
var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$
|
|
26430
|
+
var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$r);
|
|
27017
26431
|
|
|
27018
26432
|
var Jumbo = function Jumbo(_ref) {
|
|
27019
26433
|
var showButton = _ref.showButton,
|
|
@@ -27105,7 +26519,7 @@ var fontWeight$5 = {
|
|
|
27105
26519
|
// fontsize Detail regular
|
|
27106
26520
|
large: "700" // fontsize Title small
|
|
27107
26521
|
};
|
|
27108
|
-
var fallbackValues$
|
|
26522
|
+
var fallbackValues$s = {
|
|
27109
26523
|
fontWeight: fontWeight$5
|
|
27110
26524
|
};
|
|
27111
26525
|
|
|
@@ -27164,7 +26578,7 @@ var LabeledAmount = function LabeledAmount(_ref) {
|
|
|
27164
26578
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
27165
26579
|
return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
|
|
27166
26580
|
};
|
|
27167
|
-
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$
|
|
26581
|
+
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$s, "default");
|
|
27168
26582
|
|
|
27169
26583
|
var weightTitle = {
|
|
27170
26584
|
"default": "600",
|
|
@@ -27174,7 +26588,7 @@ var detailVariant = {
|
|
|
27174
26588
|
"default": "large",
|
|
27175
26589
|
small: "small"
|
|
27176
26590
|
};
|
|
27177
|
-
var fallbackValues$
|
|
26591
|
+
var fallbackValues$t = {
|
|
27178
26592
|
weightTitle: weightTitle,
|
|
27179
26593
|
detailVariant: detailVariant
|
|
27180
26594
|
};
|
|
@@ -27222,7 +26636,7 @@ var LineItem = function LineItem(_ref) {
|
|
|
27222
26636
|
childGap: "0.25rem"
|
|
27223
26637
|
}, visibleCustomAttrs));
|
|
27224
26638
|
};
|
|
27225
|
-
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$
|
|
26639
|
+
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$t, "default");
|
|
27226
26640
|
|
|
27227
26641
|
var Loading = function Loading() {
|
|
27228
26642
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -27482,7 +26896,7 @@ var height$1 = {
|
|
|
27482
26896
|
"default": "3rem",
|
|
27483
26897
|
large: "192px"
|
|
27484
26898
|
};
|
|
27485
|
-
var fallbackValues$
|
|
26899
|
+
var fallbackValues$u = {
|
|
27486
26900
|
color: color$b,
|
|
27487
26901
|
height: height$1
|
|
27488
26902
|
};
|
|
@@ -27624,12 +27038,12 @@ var Placeholder = function Placeholder(_ref4) {
|
|
|
27624
27038
|
extraStyles: "padding: 0 0 0 8px; text-align: center;"
|
|
27625
27039
|
}, text)))))))))));
|
|
27626
27040
|
};
|
|
27627
|
-
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$
|
|
27041
|
+
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$u, "default");
|
|
27628
27042
|
|
|
27629
27043
|
var backgroundColor$5 = {
|
|
27630
27044
|
"default": "".concat(WHITE)
|
|
27631
27045
|
};
|
|
27632
|
-
var fallbackValues$
|
|
27046
|
+
var fallbackValues$v = {
|
|
27633
27047
|
backgroundColor: backgroundColor$5
|
|
27634
27048
|
};
|
|
27635
27049
|
|
|
@@ -27656,13 +27070,13 @@ var ProcessingFee = function ProcessingFee(_ref) {
|
|
|
27656
27070
|
showQuitLink: false
|
|
27657
27071
|
}));
|
|
27658
27072
|
};
|
|
27659
|
-
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$
|
|
27073
|
+
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$v, "default");
|
|
27660
27074
|
|
|
27661
|
-
var activeColor$
|
|
27075
|
+
var activeColor$5 = MATISSE_BLUE;
|
|
27662
27076
|
var disabledColor$1 = MANATEE_GREY;
|
|
27663
27077
|
var inactiveBorderColor = GREY_CHATEAU;
|
|
27664
|
-
var fallbackValues$
|
|
27665
|
-
activeColor: activeColor$
|
|
27078
|
+
var fallbackValues$w = {
|
|
27079
|
+
activeColor: activeColor$5,
|
|
27666
27080
|
disabledColor: disabledColor$1,
|
|
27667
27081
|
inactiveBorderColor: inactiveBorderColor
|
|
27668
27082
|
};
|
|
@@ -27748,12 +27162,12 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
|
|
|
27748
27162
|
borderColor: themeValues.inactiveBorderColor
|
|
27749
27163
|
}), labelText));
|
|
27750
27164
|
};
|
|
27751
|
-
var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$
|
|
27165
|
+
var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$w);
|
|
27752
27166
|
|
|
27753
|
-
var activeColor$
|
|
27167
|
+
var activeColor$6 = "".concat(MATISSE_BLUE);
|
|
27754
27168
|
var inactiveColor$1 = "".concat(STORM_GREY);
|
|
27755
|
-
var fallbackValues$
|
|
27756
|
-
activeColor: activeColor$
|
|
27169
|
+
var fallbackValues$x = {
|
|
27170
|
+
activeColor: activeColor$6,
|
|
27757
27171
|
inactiveColor: inactiveColor$1
|
|
27758
27172
|
};
|
|
27759
27173
|
|
|
@@ -27861,11 +27275,11 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27861
27275
|
borderRadius: "8px"
|
|
27862
27276
|
})));
|
|
27863
27277
|
};
|
|
27864
|
-
var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$
|
|
27278
|
+
var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$x);
|
|
27865
27279
|
|
|
27866
27280
|
var searchIconColor = WHITE;
|
|
27867
27281
|
var searchIconBackgroundColor = MATISSE_BLUE;
|
|
27868
|
-
var fallbackValues$
|
|
27282
|
+
var fallbackValues$y = {
|
|
27869
27283
|
searchIconColor: searchIconColor,
|
|
27870
27284
|
searchIconBackgroundColor: searchIconBackgroundColor
|
|
27871
27285
|
};
|
|
@@ -27963,12 +27377,12 @@ var Search = function Search(_ref) {
|
|
|
27963
27377
|
size: 24
|
|
27964
27378
|
})));
|
|
27965
27379
|
};
|
|
27966
|
-
var Search$1 = themeComponent(Search, "Search", fallbackValues$
|
|
27380
|
+
var Search$1 = themeComponent(Search, "Search", fallbackValues$y);
|
|
27967
27381
|
|
|
27968
27382
|
var border$2 = {
|
|
27969
27383
|
"default": "1px solid #caced8"
|
|
27970
27384
|
};
|
|
27971
|
-
var fallbackValues$
|
|
27385
|
+
var fallbackValues$z = {
|
|
27972
27386
|
border: border$2
|
|
27973
27387
|
};
|
|
27974
27388
|
|
|
@@ -28041,7 +27455,7 @@ var SearchableSelect = function SearchableSelect(_ref) {
|
|
|
28041
27455
|
});
|
|
28042
27456
|
}))));
|
|
28043
27457
|
};
|
|
28044
|
-
var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$
|
|
27458
|
+
var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$z, "default");
|
|
28045
27459
|
|
|
28046
27460
|
var borderColor$4 = {
|
|
28047
27461
|
"default": "".concat(GREY_CHATEAU)
|
|
@@ -28049,7 +27463,7 @@ var borderColor$4 = {
|
|
|
28049
27463
|
var borderSize = {
|
|
28050
27464
|
"default": "1px"
|
|
28051
27465
|
};
|
|
28052
|
-
var fallbackValues$
|
|
27466
|
+
var fallbackValues$A = {
|
|
28053
27467
|
borderColor: borderColor$4,
|
|
28054
27468
|
borderSize: borderSize
|
|
28055
27469
|
};
|
|
@@ -28067,7 +27481,7 @@ var SolidDivider = function SolidDivider(_ref) {
|
|
|
28067
27481
|
borderWidthOverride: "0px 0px ".concat(borderSize || themeValues.borderSize, " 0px")
|
|
28068
27482
|
});
|
|
28069
27483
|
};
|
|
28070
|
-
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$
|
|
27484
|
+
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$A, "default");
|
|
28071
27485
|
|
|
28072
27486
|
var placeHolderOptionUS = {
|
|
28073
27487
|
text: "Please select state",
|
|
@@ -38662,7 +38076,7 @@ var white = "".concat(WHITE);
|
|
|
38662
38076
|
var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
|
|
38663
38077
|
var rightLabelStyles = "\n > div {\n flex-direction: row;\n }\n";
|
|
38664
38078
|
var leftLabelStyles = "\n > div {\n flex-direction: row-reverse;\n }\n";
|
|
38665
|
-
var fallbackValues$
|
|
38079
|
+
var fallbackValues$B = {
|
|
38666
38080
|
onBackground: onBackground,
|
|
38667
38081
|
disabledBackground: disabledBackground,
|
|
38668
38082
|
disabledBackgroundLight: disabledBackgroundLight,
|
|
@@ -38834,7 +38248,7 @@ var ToggleSwitch = function ToggleSwitch(_ref10) {
|
|
|
38834
38248
|
padding: "0"
|
|
38835
38249
|
}, label))));
|
|
38836
38250
|
};
|
|
38837
|
-
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$
|
|
38251
|
+
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$B);
|
|
38838
38252
|
|
|
38839
38253
|
var background$2 = "".concat(ATHENS_GREY);
|
|
38840
38254
|
var white$1 = "".concat(WHITE);
|
|
@@ -38881,7 +38295,7 @@ var imageBackgroundColor = INFO_BLUE;
|
|
|
38881
38295
|
var headerBackgroundColor = STORM_GREY;
|
|
38882
38296
|
var headerColor = WHITE;
|
|
38883
38297
|
var contentBackgroundColor = INFO_BLUE;
|
|
38884
|
-
var fallbackValues$
|
|
38298
|
+
var fallbackValues$C = {
|
|
38885
38299
|
backgroundColor: backgroundColor$6,
|
|
38886
38300
|
contentBackgroundColor: contentBackgroundColor,
|
|
38887
38301
|
imageBackgroundColor: imageBackgroundColor,
|
|
@@ -38906,7 +38320,7 @@ var CardImage = styled__default.img.withConfig({
|
|
|
38906
38320
|
var titleColor = BRIGHT_GREY;
|
|
38907
38321
|
var titleWeight = FONT_WEIGHT_BOLD;
|
|
38908
38322
|
var textColor$3 = BRIGHT_GREY;
|
|
38909
|
-
var fallbackValues$
|
|
38323
|
+
var fallbackValues$D = {
|
|
38910
38324
|
titleColor: titleColor,
|
|
38911
38325
|
titleWeight: titleWeight,
|
|
38912
38326
|
textColor: textColor$3
|
|
@@ -38951,7 +38365,7 @@ var CardText = function CardText(_ref) {
|
|
|
38951
38365
|
color: themeValues.textColor
|
|
38952
38366
|
}, text))));
|
|
38953
38367
|
};
|
|
38954
|
-
var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$
|
|
38368
|
+
var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$D);
|
|
38955
38369
|
|
|
38956
38370
|
var CardHeader = function CardHeader(_ref) {
|
|
38957
38371
|
var backgroundColor = _ref.backgroundColor,
|
|
@@ -39067,14 +38481,14 @@ var Card = function Card(_ref) {
|
|
|
39067
38481
|
titleVariant: titleVariant
|
|
39068
38482
|
}), children)))));
|
|
39069
38483
|
};
|
|
39070
|
-
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$
|
|
38484
|
+
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$C);
|
|
39071
38485
|
|
|
39072
38486
|
var fontFamily$6 = "Public Sans, sans-serif";
|
|
39073
|
-
var activeColor$
|
|
38487
|
+
var activeColor$7 = MATISSE_BLUE;
|
|
39074
38488
|
var linkColor$3 = CHARADE_GREY;
|
|
39075
|
-
var fallbackValues$
|
|
38489
|
+
var fallbackValues$E = {
|
|
39076
38490
|
fontFamily: fontFamily$6,
|
|
39077
|
-
activeColor: activeColor$
|
|
38491
|
+
activeColor: activeColor$7,
|
|
39078
38492
|
linkColor: linkColor$3
|
|
39079
38493
|
};
|
|
39080
38494
|
|
|
@@ -39101,7 +38515,7 @@ var NavTab = function NavTab(_ref) {
|
|
|
39101
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 ")
|
|
39102
38516
|
}, label));
|
|
39103
38517
|
};
|
|
39104
|
-
var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$
|
|
38518
|
+
var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$E);
|
|
39105
38519
|
|
|
39106
38520
|
var NavTabs = function NavTabs(_ref) {
|
|
39107
38521
|
var tabsConfig = _ref.tabsConfig,
|
|
@@ -39229,7 +38643,7 @@ var backgroundColor$7 = {
|
|
|
39229
38643
|
largeTitle: WHITE,
|
|
39230
38644
|
small: WHITE
|
|
39231
38645
|
};
|
|
39232
|
-
var fallbackValues$
|
|
38646
|
+
var fallbackValues$F = {
|
|
39233
38647
|
fontSize: fontSize$9,
|
|
39234
38648
|
fontWeight: fontWeight$6,
|
|
39235
38649
|
fontColor: fontColor,
|
|
@@ -39309,7 +38723,7 @@ var Module = function Module(_ref) {
|
|
|
39309
38723
|
boxShadow: themeValues.boxShadow
|
|
39310
38724
|
}, children)));
|
|
39311
38725
|
};
|
|
39312
|
-
var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$
|
|
38726
|
+
var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$F, "default"));
|
|
39313
38727
|
|
|
39314
38728
|
var WalletName = function WalletName(_ref) {
|
|
39315
38729
|
var mainText = _ref.mainText,
|
|
@@ -40289,7 +39703,7 @@ AddressForm.mapStateToProps = mapStateToProps$1;
|
|
|
40289
39703
|
AddressForm.mapDispatchToProps = mapDispatchToProps;
|
|
40290
39704
|
|
|
40291
39705
|
var backgroundColor$8 = "#ebeffb";
|
|
40292
|
-
var fallbackValues$
|
|
39706
|
+
var fallbackValues$G = {
|
|
40293
39707
|
backgroundColor: backgroundColor$8
|
|
40294
39708
|
};
|
|
40295
39709
|
|
|
@@ -40338,7 +39752,7 @@ var Banner = function Banner(_ref) {
|
|
|
40338
39752
|
extraStyles: isMobile && "> svg { width: 176px; }"
|
|
40339
39753
|
}, /*#__PURE__*/React__default.createElement(Image, null))));
|
|
40340
39754
|
};
|
|
40341
|
-
var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$
|
|
39755
|
+
var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$G);
|
|
40342
39756
|
|
|
40343
39757
|
var ChangePasswordForm = function ChangePasswordForm(_ref) {
|
|
40344
39758
|
var clearOnDismount = _ref.clearOnDismount,
|
|
@@ -40460,177 +39874,510 @@ var formConfig$1 = {
|
|
|
40460
39874
|
validators: [required(), matchesField("newPassword")]
|
|
40461
39875
|
}
|
|
40462
39876
|
};
|
|
40463
|
-
var _createFormState$1 = createFormState(formConfig$1),
|
|
40464
|
-
reducer$1 = _createFormState$1.reducer,
|
|
40465
|
-
mapStateToProps$2 = _createFormState$1.mapStateToProps,
|
|
40466
|
-
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
|
+
};
|
|
40467
40213
|
|
|
40468
|
-
ChangePasswordForm.reducer = reducer$1;
|
|
40469
|
-
ChangePasswordForm.mapStateToProps = mapStateToProps$2;
|
|
40470
|
-
ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
|
|
40471
40214
|
|
|
40472
|
-
|
|
40473
|
-
var
|
|
40474
|
-
|
|
40475
|
-
|
|
40476
|
-
|
|
40477
|
-
|
|
40478
|
-
|
|
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
|
|
40479
40232
|
};
|
|
40480
40233
|
|
|
40481
|
-
var
|
|
40482
|
-
var
|
|
40483
|
-
var
|
|
40484
|
-
|
|
40485
|
-
|
|
40486
|
-
|
|
40487
|
-
|
|
40488
|
-
|
|
40489
|
-
|
|
40490
|
-
|
|
40491
|
-
|
|
40492
|
-
|
|
40493
|
-
|
|
40494
|
-
|
|
40495
|
-
|
|
40496
|
-
|
|
40497
|
-
_ref$
|
|
40498
|
-
|
|
40499
|
-
|
|
40500
|
-
_ref$
|
|
40501
|
-
|
|
40502
|
-
_ref$
|
|
40503
|
-
|
|
40504
|
-
_ref$
|
|
40505
|
-
|
|
40506
|
-
_ref$
|
|
40507
|
-
|
|
40508
|
-
|
|
40509
|
-
|
|
40510
|
-
|
|
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);
|
|
40511
40311
|
}
|
|
40512
40312
|
};
|
|
40513
|
-
var
|
|
40514
|
-
|
|
40515
|
-
|
|
40516
|
-
|
|
40517
|
-
|
|
40518
|
-
|
|
40519
|
-
|
|
40520
|
-
|
|
40521
|
-
|
|
40522
|
-
staggerChildren: 0.15
|
|
40523
|
-
}
|
|
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;
|
|
40524
40322
|
},
|
|
40525
|
-
|
|
40526
|
-
|
|
40527
|
-
|
|
40528
|
-
|
|
40529
|
-
|
|
40530
|
-
|
|
40531
|
-
|
|
40532
|
-
|
|
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);
|
|
40533
40332
|
}
|
|
40534
|
-
}
|
|
40535
|
-
};
|
|
40536
|
-
var icon = {
|
|
40537
|
-
open: {
|
|
40538
|
-
rotate: "90deg"
|
|
40539
40333
|
},
|
|
40540
|
-
|
|
40541
|
-
|
|
40542
|
-
}
|
|
40543
|
-
};
|
|
40544
|
-
return /*#__PURE__*/React__default.createElement(Motion, {
|
|
40545
|
-
padding: "0",
|
|
40546
|
-
hoverStyles: "outline: none;",
|
|
40547
|
-
animate: isOpen ? "open" : "closed",
|
|
40548
|
-
positionTransition: true
|
|
40549
|
-
}, stackTitle && /*#__PURE__*/React__default.createElement(React.Fragment, null, stackTitleContent), /*#__PURE__*/React__default.createElement(Stack, {
|
|
40550
|
-
childGap: isOpen && !isMobile ? sectionGap : "0rem"
|
|
40551
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40552
|
-
padding: "0",
|
|
40553
|
-
role: "heading",
|
|
40554
|
-
"aria-label": label,
|
|
40555
|
-
"aria-level": 3
|
|
40556
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40557
|
-
padding: customPadding ? customPadding : "0",
|
|
40558
|
-
background: themeValues.headingBackgroundColor,
|
|
40559
|
-
onClick: isMobile && supportsTouch ? noop$1 : toggleSection,
|
|
40560
|
-
onTouchEnd: isMobile && supportsTouch ? toggleSection : noop$1,
|
|
40561
|
-
key: "header",
|
|
40562
|
-
hoverStyles: "cursor: pointer;",
|
|
40563
|
-
tabIndex: "0",
|
|
40564
|
-
onKeyDown: handleKeyDown,
|
|
40565
|
-
extraStyles: "z-index: 25; ".concat(extraStyles),
|
|
40566
|
-
role: "button",
|
|
40567
|
-
"aria-expanded": isOpen.toString(),
|
|
40568
|
-
"aria-controls": id,
|
|
40569
|
-
id: "".concat(id, "-button")
|
|
40570
|
-
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
40571
|
-
justify: "space-between",
|
|
40572
|
-
align: "center"
|
|
40573
|
-
}, customTitle ? /*#__PURE__*/React__default.createElement(Box, {
|
|
40574
|
-
width: "calc(100% - 36px)",
|
|
40575
|
-
padding: "0px"
|
|
40576
|
-
}, title) : /*#__PURE__*/React__default.createElement(Title$1, {
|
|
40577
|
-
weight: FONT_WEIGHT_SEMIBOLD,
|
|
40578
|
-
color: themeValues.titleColor,
|
|
40579
|
-
as: "h6",
|
|
40580
|
-
variant: "small"
|
|
40581
|
-
}, title), /*#__PURE__*/React__default.createElement(Motion, {
|
|
40582
|
-
variants: icon,
|
|
40583
|
-
extraStyles: "display: flex; align-items: center;"
|
|
40584
|
-
}, /*#__PURE__*/React__default.createElement(ChevronIcon$1, null))))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
|
|
40585
|
-
initial: false
|
|
40586
|
-
}, isOpen && /*#__PURE__*/React__default.createElement(Motion, {
|
|
40587
|
-
padding: "0",
|
|
40588
|
-
background: themeValues.bodyBackgroundColor,
|
|
40589
|
-
key: "content",
|
|
40590
|
-
positionTransition: true,
|
|
40591
|
-
initial: initiallyOpen ? "open" : "closed",
|
|
40592
|
-
exit: "closed",
|
|
40593
|
-
variants: wrapper,
|
|
40594
|
-
extraStyles: "transform-origin: 100% 0; overflow-y: hidden;",
|
|
40595
|
-
id: "".concat(id, "-content"),
|
|
40596
|
-
role: "region",
|
|
40597
|
-
"aria-labelledby": "".concat(id, "-button")
|
|
40598
|
-
}, children))));
|
|
40599
|
-
};
|
|
40600
|
-
var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$J);
|
|
40601
|
-
|
|
40602
|
-
var ClipboardIcon = function ClipboardIcon(_ref) {
|
|
40603
|
-
var themeValues = _ref.themeValues;
|
|
40604
|
-
return /*#__PURE__*/React__default.createElement("svg", {
|
|
40605
|
-
width: "24",
|
|
40606
|
-
height: "24",
|
|
40607
|
-
viewBox: "0 0 24 24",
|
|
40608
|
-
fill: "none",
|
|
40609
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
40610
|
-
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
40611
|
-
id: "mask0_1104_623",
|
|
40612
|
-
style: {
|
|
40613
|
-
maskType: "alpha"
|
|
40334
|
+
onTouchStart: function onTouchStart() {
|
|
40335
|
+
return handleTogglePopover(true);
|
|
40614
40336
|
},
|
|
40615
|
-
|
|
40616
|
-
|
|
40617
|
-
|
|
40618
|
-
|
|
40619
|
-
|
|
40620
|
-
|
|
40621
|
-
|
|
40622
|
-
|
|
40623
|
-
|
|
40624
|
-
|
|
40625
|
-
|
|
40626
|
-
|
|
40627
|
-
|
|
40628
|
-
|
|
40629
|
-
|
|
40630
|
-
|
|
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 ")
|
|
40631
40378
|
})));
|
|
40632
40379
|
};
|
|
40633
|
-
var
|
|
40380
|
+
var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$I);
|
|
40634
40381
|
|
|
40635
40382
|
/*
|
|
40636
40383
|
This component will render `content` and a clipboard icon.
|
|
@@ -41177,7 +40924,7 @@ EmailForm.mapDispatchToProps = mapDispatchToProps$3;
|
|
|
41177
40924
|
|
|
41178
40925
|
var footerBackgroundColor = BRIGHT_GREY;
|
|
41179
40926
|
var subfooterBackgroundColor = STORM_GREY;
|
|
41180
|
-
var fallbackValues$
|
|
40927
|
+
var fallbackValues$J = {
|
|
41181
40928
|
footerBackgroundColor: footerBackgroundColor,
|
|
41182
40929
|
subfooterBackgroundColor: subfooterBackgroundColor
|
|
41183
40930
|
};
|
|
@@ -41208,7 +40955,7 @@ var FooterWithSubfooter = function FooterWithSubfooter(_ref) {
|
|
|
41208
40955
|
rightContent: rightSubfooterContent
|
|
41209
40956
|
}));
|
|
41210
40957
|
};
|
|
41211
|
-
var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$
|
|
40958
|
+
var FooterWithSubfooter$1 = themeComponent(FooterWithSubfooter, "FooterWithSubfooter", fallbackValues$J);
|
|
41212
40959
|
|
|
41213
40960
|
var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
41214
40961
|
var fields = _ref.fields,
|
|
@@ -41255,7 +41002,7 @@ ForgotPasswordForm.mapDispatchToProps = mapDispatchToProps$4;
|
|
|
41255
41002
|
|
|
41256
41003
|
var textColor$4 = "#ffffff";
|
|
41257
41004
|
var backgroundColor$9 = "#182848";
|
|
41258
|
-
var fallbackValues$
|
|
41005
|
+
var fallbackValues$K = {
|
|
41259
41006
|
textColor: textColor$4,
|
|
41260
41007
|
backgroundColor: backgroundColor$9
|
|
41261
41008
|
};
|
|
@@ -41314,7 +41061,7 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
41314
41061
|
}, t));
|
|
41315
41062
|
}), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter))));
|
|
41316
41063
|
};
|
|
41317
|
-
var HighlightTabRow$1 = themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$
|
|
41064
|
+
var HighlightTabRow$1 = themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$K);
|
|
41318
41065
|
|
|
41319
41066
|
/** @license React v16.13.1
|
|
41320
41067
|
* react-is.production.min.js
|
|
@@ -45772,7 +45519,7 @@ var activeBackgroundColor$1 = CORNFLOWER_BLUE;
|
|
|
45772
45519
|
var backgroundColor$a = LINK_WATER;
|
|
45773
45520
|
var borderColor$5 = MOON_RAKER;
|
|
45774
45521
|
var color$c = ROYAL_BLUE_VIVID;
|
|
45775
|
-
var fallbackValues$
|
|
45522
|
+
var fallbackValues$L = {
|
|
45776
45523
|
disabledBackgroundColor: disabledBackgroundColor$1,
|
|
45777
45524
|
disabledBorderColor: disabledBorderColor$1,
|
|
45778
45525
|
disabledColor: disabledColor$2,
|
|
@@ -45907,7 +45654,7 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
45907
45654
|
extraStyles: "margin-right: auto;"
|
|
45908
45655
|
}), showRight && !!rightContent && rightContent))));
|
|
45909
45656
|
};
|
|
45910
|
-
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$
|
|
45657
|
+
var LinkCard$1 = themeComponent(LinkCard, "LinkCard", fallbackValues$L, "primary");
|
|
45911
45658
|
|
|
45912
45659
|
var LoginForm = function LoginForm(_ref) {
|
|
45913
45660
|
var clearOnDismount = _ref.clearOnDismount,
|
|
@@ -45979,7 +45726,7 @@ var shadowColor = {
|
|
|
45979
45726
|
profile: "#292A33",
|
|
45980
45727
|
cms: "#292A33"
|
|
45981
45728
|
};
|
|
45982
|
-
var fallbackValues$
|
|
45729
|
+
var fallbackValues$M = {
|
|
45983
45730
|
backgroundColor: backgroundColor$b,
|
|
45984
45731
|
shadowColor: shadowColor
|
|
45985
45732
|
};
|
|
@@ -46019,7 +45766,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
|
|
|
46019
45766
|
onBlur: onBlur
|
|
46020
45767
|
}, menuContent));
|
|
46021
45768
|
};
|
|
46022
|
-
var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$
|
|
45769
|
+
var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$M, "profile");
|
|
46023
45770
|
|
|
46024
45771
|
var menuVariants = {
|
|
46025
45772
|
invisible: {
|
|
@@ -46071,7 +45818,7 @@ var NavMenuMobile = function NavMenuMobile(_ref3) {
|
|
|
46071
45818
|
background: themeValues.backgroundColor
|
|
46072
45819
|
}, menuContent));
|
|
46073
45820
|
};
|
|
46074
|
-
var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$
|
|
45821
|
+
var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$M, "profile");
|
|
46075
45822
|
|
|
46076
45823
|
var IconsModule = function IconsModule(_ref) {
|
|
46077
45824
|
var icon = _ref.icon,
|
|
@@ -46684,7 +46431,7 @@ var InactiveTitleModule = function InactiveTitleModule(_ref) {
|
|
|
46684
46431
|
};
|
|
46685
46432
|
|
|
46686
46433
|
var iconColor = ROYAL_BLUE_VIVID;
|
|
46687
|
-
var fallbackValues$
|
|
46434
|
+
var fallbackValues$N = {
|
|
46688
46435
|
iconColor: iconColor
|
|
46689
46436
|
};
|
|
46690
46437
|
|
|
@@ -47025,7 +46772,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
47025
46772
|
}))));
|
|
47026
46773
|
return isLoading ? loadingObligation : inactive ? inactiveObligation : activeObligation;
|
|
47027
46774
|
};
|
|
47028
|
-
var Obligation$1 = themeComponent(Obligation, "Obligation", fallbackValues$
|
|
46775
|
+
var Obligation$1 = themeComponent(Obligation, "Obligation", fallbackValues$N);
|
|
47029
46776
|
|
|
47030
46777
|
var weightTitle$1 = {
|
|
47031
46778
|
"default": "600",
|
|
@@ -47035,7 +46782,7 @@ var detailVariant$1 = {
|
|
|
47035
46782
|
"default": "large",
|
|
47036
46783
|
small: "small"
|
|
47037
46784
|
};
|
|
47038
|
-
var fallbackValues$
|
|
46785
|
+
var fallbackValues$O = {
|
|
47039
46786
|
weightTitle: weightTitle$1,
|
|
47040
46787
|
detailVariant: detailVariant$1
|
|
47041
46788
|
};
|
|
@@ -47092,7 +46839,7 @@ var PartialAmountField = function PartialAmountField(_ref) {
|
|
|
47092
46839
|
function arePropsEqual(prevProps, nextProps) {
|
|
47093
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);
|
|
47094
46841
|
}
|
|
47095
|
-
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);
|
|
47096
46843
|
|
|
47097
46844
|
var PartialAmountForm = function PartialAmountForm(_ref) {
|
|
47098
46845
|
var _ref$variant = _ref.variant,
|
|
@@ -47196,9 +46943,9 @@ var arrowColor = WHITE;
|
|
|
47196
46943
|
var numberColor = MATISSE_BLUE;
|
|
47197
46944
|
var hoverBackgroundColor$2 = ALABASTER_WHITE;
|
|
47198
46945
|
var activeBackgroundColor$2 = WHITE;
|
|
47199
|
-
var activeColor$
|
|
47200
|
-
var fallbackValues$
|
|
47201
|
-
activeColor: activeColor$
|
|
46946
|
+
var activeColor$9 = MATISSE_BLUE;
|
|
46947
|
+
var fallbackValues$P = {
|
|
46948
|
+
activeColor: activeColor$9,
|
|
47202
46949
|
activeBackgroundColor: activeBackgroundColor$2,
|
|
47203
46950
|
arrowColor: arrowColor,
|
|
47204
46951
|
hoverBackgroundColor: hoverBackgroundColor$2,
|
|
@@ -47391,7 +47138,7 @@ var Pagination = function Pagination(_ref3) {
|
|
|
47391
47138
|
buttonWidth: buttonWidth
|
|
47392
47139
|
}));
|
|
47393
47140
|
};
|
|
47394
|
-
var Pagination$1 = themeComponent(Pagination, "Pagination", fallbackValues$
|
|
47141
|
+
var Pagination$1 = themeComponent(Pagination, "Pagination", fallbackValues$P);
|
|
47395
47142
|
|
|
47396
47143
|
var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
47397
47144
|
var _ref$isForwardButtonD = _ref.isForwardButtonDisabled,
|
|
@@ -47492,7 +47239,7 @@ var labeledAmountTotal = {
|
|
|
47492
47239
|
"default": "large",
|
|
47493
47240
|
small: "small"
|
|
47494
47241
|
};
|
|
47495
|
-
var fallbackValues$
|
|
47242
|
+
var fallbackValues$Q = {
|
|
47496
47243
|
backgroundColor: backgroundColor$c,
|
|
47497
47244
|
lineItem: lineItem,
|
|
47498
47245
|
labeledAmountSubtotal: labeledAmountSubtotal,
|
|
@@ -47861,7 +47608,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47861
47608
|
isError: isError
|
|
47862
47609
|
});
|
|
47863
47610
|
};
|
|
47864
|
-
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$
|
|
47611
|
+
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$Q, "default");
|
|
47865
47612
|
|
|
47866
47613
|
var linkColor$4 = {
|
|
47867
47614
|
"default": "#3176AA"
|
|
@@ -47881,7 +47628,7 @@ var modalLinkHoverFocus = {
|
|
|
47881
47628
|
var linkTextDecoration = {
|
|
47882
47629
|
"default": LINK_TEXT_DECORATION
|
|
47883
47630
|
};
|
|
47884
|
-
var fallbackValues$
|
|
47631
|
+
var fallbackValues$R = {
|
|
47885
47632
|
linkColor: linkColor$4,
|
|
47886
47633
|
fontSize: fontSize$a,
|
|
47887
47634
|
lineHeight: lineHeight$4,
|
|
@@ -47945,7 +47692,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47945
47692
|
}, link)
|
|
47946
47693
|
}));
|
|
47947
47694
|
};
|
|
47948
|
-
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$
|
|
47695
|
+
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$R, "default");
|
|
47949
47696
|
|
|
47950
47697
|
var backgroundColor$d = {
|
|
47951
47698
|
"default": "#ffffff",
|
|
@@ -47980,7 +47727,7 @@ var modalLinkTextDecoration = {
|
|
|
47980
47727
|
"default": LINK_TEXT_DECORATION,
|
|
47981
47728
|
footer: "none"
|
|
47982
47729
|
};
|
|
47983
|
-
var fallbackValues$
|
|
47730
|
+
var fallbackValues$S = {
|
|
47984
47731
|
backgroundColor: backgroundColor$d,
|
|
47985
47732
|
linkColor: linkColor$5,
|
|
47986
47733
|
border: border$3,
|
|
@@ -48052,7 +47799,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
48052
47799
|
className: "modal-trigger"
|
|
48053
47800
|
}, link));
|
|
48054
47801
|
};
|
|
48055
|
-
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$
|
|
47802
|
+
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$S, "default");
|
|
48056
47803
|
|
|
48057
47804
|
var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
48058
47805
|
var onCheck = _ref.onCheck,
|
|
@@ -48824,7 +48571,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
|
48824
48571
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
48825
48572
|
var borderColor$6 = "".concat(GHOST_GREY);
|
|
48826
48573
|
var focusStyles = "outline: none;";
|
|
48827
|
-
var fallbackValues$
|
|
48574
|
+
var fallbackValues$T = {
|
|
48828
48575
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
48829
48576
|
headingDisabledColor: headingDisabledColor,
|
|
48830
48577
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
@@ -49159,9 +48906,9 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49159
48906
|
});
|
|
49160
48907
|
})));
|
|
49161
48908
|
};
|
|
49162
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
48909
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$T);
|
|
49163
48910
|
|
|
49164
|
-
var fallbackValues$
|
|
48911
|
+
var fallbackValues$U = {
|
|
49165
48912
|
primaryColor: ROYAL_BLUE_VIVID,
|
|
49166
48913
|
secondaryColor: CHARADE_GREY
|
|
49167
48914
|
};
|
|
@@ -49272,7 +49019,7 @@ var RegistrationBanner = function RegistrationBanner(_ref) {
|
|
|
49272
49019
|
weight: FONT_WEIGHT_SEMIBOLD
|
|
49273
49020
|
}, "or Log In")))));
|
|
49274
49021
|
};
|
|
49275
|
-
var RegistrationBanner$1 = withWindowSize(themeComponent(RegistrationBanner, "RegistrationBanner", fallbackValues$
|
|
49022
|
+
var RegistrationBanner$1 = withWindowSize(themeComponent(RegistrationBanner, "RegistrationBanner", fallbackValues$U));
|
|
49276
49023
|
|
|
49277
49024
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
49278
49025
|
var clearOnDismount = _ref.clearOnDismount,
|
|
@@ -49392,13 +49139,13 @@ RegistrationForm.mapDispatchToProps = mapDispatchToProps$9;
|
|
|
49392
49139
|
|
|
49393
49140
|
var GRECIAN_GREY$1 = GRECIAN_GREY;
|
|
49394
49141
|
var bannerBackgroundColor = GRECIAN_GREY$1;
|
|
49395
|
-
var fallbackValues$
|
|
49142
|
+
var fallbackValues$V = {
|
|
49396
49143
|
bannerBackgroundColor: bannerBackgroundColor
|
|
49397
49144
|
};
|
|
49398
49145
|
|
|
49399
49146
|
var ResetConfirmationForm = function ResetConfirmationForm() {
|
|
49400
49147
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
49401
|
-
var themeValues = createThemeValues(themeContext, fallbackValues$
|
|
49148
|
+
var themeValues = createThemeValues(themeContext, fallbackValues$V, "ResetConfirmationForm");
|
|
49402
49149
|
var isMobile = themeContext.isMobile;
|
|
49403
49150
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
49404
49151
|
padding: "0",
|
|
@@ -49513,13 +49260,13 @@ ResetPasswordForm.mapDispatchToProps = mapDispatchToProps$a;
|
|
|
49513
49260
|
|
|
49514
49261
|
var GRECIAN_GREY$2 = GRECIAN_GREY;
|
|
49515
49262
|
var bannerBackgroundColor$1 = GRECIAN_GREY$2;
|
|
49516
|
-
var fallbackValues$
|
|
49263
|
+
var fallbackValues$W = {
|
|
49517
49264
|
bannerBackgroundColor: bannerBackgroundColor$1
|
|
49518
49265
|
};
|
|
49519
49266
|
|
|
49520
49267
|
var ResetPasswordSuccess = function ResetPasswordSuccess() {
|
|
49521
49268
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
49522
|
-
var themeValues = createThemeValues(themeContext, fallbackValues$
|
|
49269
|
+
var themeValues = createThemeValues(themeContext, fallbackValues$W, "ResetPasswordSuccess");
|
|
49523
49270
|
var isMobile = themeContext.isMobile;
|
|
49524
49271
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
49525
49272
|
padding: "0",
|
|
@@ -49568,7 +49315,7 @@ var ResetPasswordSuccess$1 = withWindowSize(ResetPasswordSuccess);
|
|
|
49568
49315
|
var activeTabBackground = "#FFFFFF";
|
|
49569
49316
|
var activeTabAccent = "#15749D";
|
|
49570
49317
|
var activeTabHover = "#B8D5E1";
|
|
49571
|
-
var fallbackValues$
|
|
49318
|
+
var fallbackValues$X = {
|
|
49572
49319
|
activeTabBackground: activeTabBackground,
|
|
49573
49320
|
activeTabAccent: activeTabAccent,
|
|
49574
49321
|
activeTabHover: activeTabHover
|
|
@@ -49663,12 +49410,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
49663
49410
|
}, tab.content);
|
|
49664
49411
|
}))));
|
|
49665
49412
|
};
|
|
49666
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
49413
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$X);
|
|
49667
49414
|
|
|
49668
49415
|
var activeTabBackground$1 = "#FFFFFF";
|
|
49669
49416
|
var activeTabAccent$1 = "#15749D";
|
|
49670
49417
|
var activeTabHover$1 = "#B8D5E1";
|
|
49671
|
-
var fallbackValues$
|
|
49418
|
+
var fallbackValues$Y = {
|
|
49672
49419
|
activeTabBackground: activeTabBackground$1,
|
|
49673
49420
|
activeTabAccent: activeTabAccent$1,
|
|
49674
49421
|
activeTabHover: activeTabHover$1
|
|
@@ -49727,7 +49474,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
49727
49474
|
}, text)))));
|
|
49728
49475
|
})));
|
|
49729
49476
|
};
|
|
49730
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
49477
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$Y);
|
|
49731
49478
|
|
|
49732
49479
|
var Timeout = function Timeout(_ref) {
|
|
49733
49480
|
var onLogout = _ref.onLogout;
|
|
@@ -49848,7 +49595,7 @@ var fontColor$1 = WHITE;
|
|
|
49848
49595
|
var textAlign$1 = "left";
|
|
49849
49596
|
var headerBackgroundColor$1 = BRIGHT_GREY;
|
|
49850
49597
|
var imageBackgroundColor$1 = MATISSE_BLUE;
|
|
49851
|
-
var fallbackValues$
|
|
49598
|
+
var fallbackValues$Z = {
|
|
49852
49599
|
fontWeight: fontWeight$9,
|
|
49853
49600
|
fontColor: fontColor$1,
|
|
49854
49601
|
textAlign: textAlign$1,
|
|
@@ -49893,7 +49640,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
|
|
|
49893
49640
|
src: welcomeImage
|
|
49894
49641
|
})))));
|
|
49895
49642
|
};
|
|
49896
|
-
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$
|
|
49643
|
+
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$Z));
|
|
49897
49644
|
|
|
49898
49645
|
var WorkflowTile = function WorkflowTile(_ref) {
|
|
49899
49646
|
var _ref$workflowName = _ref.workflowName,
|
|
@@ -49953,7 +49700,7 @@ var menuItemColorDelete = RAZZMATAZZ_RED;
|
|
|
49953
49700
|
var menuItemHoverBackgroundColor = CORNFLOWER_BLUE;
|
|
49954
49701
|
var menuItemHoverBackgroundColorDelete = BLUSH_RED;
|
|
49955
49702
|
var menuItemHoverColor = ROYAL_BLUE_VIVID;
|
|
49956
|
-
var fallbackValues
|
|
49703
|
+
var fallbackValues$_ = {
|
|
49957
49704
|
menuItemBackgroundColor: menuItemBackgroundColor,
|
|
49958
49705
|
menuItemColor: menuItemColor,
|
|
49959
49706
|
menuItemColorDelete: menuItemColorDelete,
|
|
@@ -50020,15 +49767,15 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
50020
49767
|
extraStyles: textExtraStyles
|
|
50021
49768
|
}, text)));
|
|
50022
49769
|
};
|
|
50023
|
-
var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues
|
|
49770
|
+
var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$_);
|
|
50024
49771
|
|
|
50025
|
-
var hoverColor$
|
|
50026
|
-
var activeColor$
|
|
49772
|
+
var hoverColor$5 = "#116285";
|
|
49773
|
+
var activeColor$a = "#0E506D";
|
|
50027
49774
|
var menuTriggerColor = "#15749D";
|
|
50028
49775
|
var backgroundColor$e = "white";
|
|
50029
|
-
var fallbackValues
|
|
50030
|
-
hoverColor: hoverColor$
|
|
50031
|
-
activeColor: activeColor$
|
|
49776
|
+
var fallbackValues$$ = {
|
|
49777
|
+
hoverColor: hoverColor$5,
|
|
49778
|
+
activeColor: activeColor$a,
|
|
50032
49779
|
menuTriggerColor: menuTriggerColor,
|
|
50033
49780
|
backgroundColor: backgroundColor$e
|
|
50034
49781
|
};
|
|
@@ -50162,13 +49909,13 @@ var PopupMenu = function PopupMenu(_ref) {
|
|
|
50162
49909
|
}, item));
|
|
50163
49910
|
})));
|
|
50164
49911
|
};
|
|
50165
|
-
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues
|
|
49912
|
+
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$$);
|
|
50166
49913
|
|
|
50167
49914
|
var primaryColor$1 = WHITE;
|
|
50168
49915
|
var primaryHoverColor = INFO_BLUE;
|
|
50169
49916
|
var secondaryColor = MATISSE_BLUE;
|
|
50170
49917
|
var secondaryHoverColor = "#115D7E";
|
|
50171
|
-
var fallbackValues$
|
|
49918
|
+
var fallbackValues$10 = {
|
|
50172
49919
|
primaryColor: primaryColor$1,
|
|
50173
49920
|
primaryHoverColor: primaryHoverColor,
|
|
50174
49921
|
secondaryColor: secondaryColor,
|
|
@@ -50870,7 +50617,7 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
|
|
|
50870
50617
|
ariaLabel: "Apply all filters"
|
|
50871
50618
|
}))));
|
|
50872
50619
|
};
|
|
50873
|
-
var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$
|
|
50620
|
+
var MultipleSelectFilter$1 = themeComponent(MultipleSelectFilter, "MultipleSelectFilter", fallbackValues$10);
|
|
50874
50621
|
|
|
50875
50622
|
var TextWrapStyles = styled.css(["word-wrap:break-word;overflow-wrap:break-word;white-space:normal;max-width:100%;"]);
|
|
50876
50623
|
var Container$1 = styled__default(Box).withConfig({
|
|
@@ -51072,7 +50819,7 @@ var justifyContent = {
|
|
|
51072
50819
|
desktop: "center"
|
|
51073
50820
|
}
|
|
51074
50821
|
};
|
|
51075
|
-
var fallbackValues$
|
|
50822
|
+
var fallbackValues$11 = {
|
|
51076
50823
|
// Colors
|
|
51077
50824
|
heroPrimaryColor: heroPrimaryColor,
|
|
51078
50825
|
heroTextColor: heroTextColor,
|
|
@@ -51279,7 +51026,7 @@ var HeroImage = function HeroImage(_ref) {
|
|
|
51279
51026
|
theme: themeValues
|
|
51280
51027
|
}, description)))));
|
|
51281
51028
|
};
|
|
51282
|
-
var HeroImage$1 = withWindowSize(themeComponent(HeroImage, "HeroImage", fallbackValues$
|
|
51029
|
+
var HeroImage$1 = withWindowSize(themeComponent(HeroImage, "HeroImage", fallbackValues$11, "v1"));
|
|
51283
51030
|
|
|
51284
51031
|
var TurnstileWidgetContainer = styled__default(Box).withConfig({
|
|
51285
51032
|
displayName: "TurnstileWidget__TurnstileWidgetContainer",
|
|
@@ -51422,6 +51169,153 @@ var TurnstileWidget = /*#__PURE__*/React.forwardRef(function (_ref4, ref) {
|
|
|
51422
51169
|
}, error)));
|
|
51423
51170
|
});
|
|
51424
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
|
+
|
|
51425
51319
|
var pageBackground = "#FBFCFD";
|
|
51426
51320
|
var fallbackValues$13 = {
|
|
51427
51321
|
pageBackground: pageBackground
|
|
@@ -51822,7 +51716,6 @@ exports.DisabledPaymentMethodsAddIcon = DisabledPaymentMethodsAddIcon;
|
|
|
51822
51716
|
exports.DisabledPropertiesAddIcon = DisabledPropertiesAddIcon;
|
|
51823
51717
|
exports.DiscoverSmallIcon = DiscoverSmallIcon;
|
|
51824
51718
|
exports.DisplayBox = DisplayBox$1;
|
|
51825
|
-
exports.DisplayCard = DisplayCard;
|
|
51826
51719
|
exports.Dropdown = Dropdown$1;
|
|
51827
51720
|
exports.DuplicateIcon = DuplicateIcon;
|
|
51828
51721
|
exports.EditNameForm = EditNameForm;
|