@heycater/qualification-funnel 1.2.3 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/icons/catering_category/breakfast.svg +1 -0
- package/dist/artifacts/icons/catering_category/buffet.svg +1 -0
- package/dist/artifacts/icons/catering_category/business_lunch.svg +1 -0
- package/dist/artifacts/icons/catering_category/cakes_and_sweets.svg +1 -0
- package/dist/artifacts/icons/catering_category/drinks.svg +1 -0
- package/dist/artifacts/icons/catering_category/fine_dining.svg +1 -0
- package/dist/artifacts/icons/catering_category/fingerfood.svg +1 -0
- package/dist/artifacts/icons/catering_category/street_food.svg +1 -0
- package/dist/artifacts/images/survey/dietary_restrictions/meat.svg +1 -0
- package/dist/artifacts/images/survey/dietary_restrictions/vegan.svg +1 -0
- package/dist/artifacts/images/survey/dietary_restrictions/vegetarian.svg +1 -0
- package/dist/artifacts/locales/de/qualification.json +7 -1
- package/dist/artifacts/locales/en/qualification.json +7 -1
- package/dist/demo/iife-auto.html +1 -1
- package/dist/demo/iife-fullscreen.html +49 -0
- package/dist/demo/iife.html +1 -1
- package/dist/heycater-funnel.iife.js +509 -348
- package/dist/index.cjs.js +457 -286
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.esm.js +1415 -1649
- package/dist/index.esm.js.map +1 -1
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _a;
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import React__default, { createContext, useContext, useMemo, useReducer, useCallback, useEffect, useRef, useState, isValidElement, cloneElement, Children, forwardRef } from "react";
|
|
4
|
-
import { darken as darken$1, lighten as lighten$1, ButtonBase as ButtonBase$2, Typography as Typography$1, useMediaQuery, Input as Input$1, IconButton as IconButton$2, useTheme as useTheme$1,
|
|
4
|
+
import { darken as darken$1, lighten as lighten$1, ButtonBase as ButtonBase$2, Typography as Typography$1, useMediaQuery, Input as Input$1, IconButton as IconButton$2, FormControlLabel, useTheme as useTheme$1, Tooltip, Menu, Hidden, SnackbarContent, Snackbar, TextField, CircularProgress, Modal, ThemeProvider as ThemeProvider$1, StylesProvider as StylesProvider$1, CssBaseline } from "@material-ui/core";
|
|
5
5
|
import { useTranslation, initReactI18next, I18nextProvider } from "react-i18next";
|
|
6
6
|
import styled, { css as css$1, createGlobalStyle, ThemeProvider } from "styled-components";
|
|
7
7
|
import { gql, useQuery, useClient, mapExchange, Client, cacheExchange, fetchExchange, Provider } from "urql";
|
|
@@ -9,8 +9,6 @@ import { breakpoints as breakpoints$1, compose, display, flexbox, palette, posit
|
|
|
9
9
|
import i18next from "i18next";
|
|
10
10
|
import { DayPicker, useActiveModifiers, useDayPicker, Day, Row, useNavigation, IconLeft, IconRight } from "react-day-picker";
|
|
11
11
|
import { useFormikContext, useField, getIn as getIn$1, Form, Formik, Field } from "formik";
|
|
12
|
-
import Bugsnag from "@bugsnag/js";
|
|
13
|
-
import BugsnagPluginReact from "@bugsnag/plugin-react";
|
|
14
12
|
import * as ReactDOM from "react-dom";
|
|
15
13
|
import { useInView } from "react-intersection-observer";
|
|
16
14
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
@@ -992,8 +990,8 @@ function requireReactJsxRuntime_development() {
|
|
|
992
990
|
})(reactJsxRuntime_development);
|
|
993
991
|
return reactJsxRuntime_development;
|
|
994
992
|
}
|
|
995
|
-
var define_process_env_default$
|
|
996
|
-
if (define_process_env_default$
|
|
993
|
+
var define_process_env_default$L = {};
|
|
994
|
+
if (define_process_env_default$L.NODE_ENV === "production") {
|
|
997
995
|
jsxRuntime.exports = requireReactJsxRuntime_production_min();
|
|
998
996
|
} else {
|
|
999
997
|
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
@@ -1002,7 +1000,91 @@ var jsxRuntimeExports = jsxRuntime.exports;
|
|
|
1002
1000
|
const breakpointsFn = breakpoints$1(
|
|
1003
1001
|
compose(display, flexbox, palette, positions, sizing, spacing, typography)
|
|
1004
1002
|
);
|
|
1005
|
-
const
|
|
1003
|
+
const SYSTEM_PROPS = /* @__PURE__ */ new Set([
|
|
1004
|
+
// spacing
|
|
1005
|
+
"m",
|
|
1006
|
+
"mt",
|
|
1007
|
+
"mr",
|
|
1008
|
+
"mb",
|
|
1009
|
+
"ml",
|
|
1010
|
+
"mx",
|
|
1011
|
+
"my",
|
|
1012
|
+
"p",
|
|
1013
|
+
"pt",
|
|
1014
|
+
"pr",
|
|
1015
|
+
"pb",
|
|
1016
|
+
"pl",
|
|
1017
|
+
"px",
|
|
1018
|
+
"py",
|
|
1019
|
+
"margin",
|
|
1020
|
+
"marginTop",
|
|
1021
|
+
"marginRight",
|
|
1022
|
+
"marginBottom",
|
|
1023
|
+
"marginLeft",
|
|
1024
|
+
"padding",
|
|
1025
|
+
"paddingTop",
|
|
1026
|
+
"paddingRight",
|
|
1027
|
+
"paddingBottom",
|
|
1028
|
+
"paddingLeft",
|
|
1029
|
+
// display
|
|
1030
|
+
"display",
|
|
1031
|
+
// flexbox
|
|
1032
|
+
"flexDirection",
|
|
1033
|
+
"flexWrap",
|
|
1034
|
+
"justifyContent",
|
|
1035
|
+
"alignItems",
|
|
1036
|
+
"alignContent",
|
|
1037
|
+
"order",
|
|
1038
|
+
"flex",
|
|
1039
|
+
"flexGrow",
|
|
1040
|
+
"flexShrink",
|
|
1041
|
+
"flexBasis",
|
|
1042
|
+
"alignSelf",
|
|
1043
|
+
"justifySelf",
|
|
1044
|
+
// palette
|
|
1045
|
+
"bgcolor",
|
|
1046
|
+
"backgroundColor",
|
|
1047
|
+
// typography
|
|
1048
|
+
"fontFamily",
|
|
1049
|
+
"fontSize",
|
|
1050
|
+
"fontWeight",
|
|
1051
|
+
"fontStyle",
|
|
1052
|
+
"letterSpacing",
|
|
1053
|
+
"lineHeight",
|
|
1054
|
+
"textAlign",
|
|
1055
|
+
"textTransform",
|
|
1056
|
+
// sizing
|
|
1057
|
+
"width",
|
|
1058
|
+
"height",
|
|
1059
|
+
"maxWidth",
|
|
1060
|
+
"maxHeight",
|
|
1061
|
+
"minWidth",
|
|
1062
|
+
"minHeight",
|
|
1063
|
+
// positions
|
|
1064
|
+
"position",
|
|
1065
|
+
"zIndex",
|
|
1066
|
+
"top",
|
|
1067
|
+
"right",
|
|
1068
|
+
"bottom",
|
|
1069
|
+
"left",
|
|
1070
|
+
// borders
|
|
1071
|
+
"border",
|
|
1072
|
+
"borderTop",
|
|
1073
|
+
"borderRight",
|
|
1074
|
+
"borderBottom",
|
|
1075
|
+
"borderLeft",
|
|
1076
|
+
"borderColor",
|
|
1077
|
+
"borderRadius",
|
|
1078
|
+
// shadows
|
|
1079
|
+
"boxShadow",
|
|
1080
|
+
// gap
|
|
1081
|
+
"gap",
|
|
1082
|
+
"rowGap",
|
|
1083
|
+
"columnGap"
|
|
1084
|
+
]);
|
|
1085
|
+
const Box = styled.div.withConfig({
|
|
1086
|
+
shouldForwardProp: (prop) => !SYSTEM_PROPS.has(prop)
|
|
1087
|
+
})`
|
|
1006
1088
|
${borders}
|
|
1007
1089
|
${display}
|
|
1008
1090
|
${flexbox}
|
|
@@ -1140,8 +1222,35 @@ const BLOCK_XS = (props) => css$1`
|
|
|
1140
1222
|
}
|
|
1141
1223
|
`;
|
|
1142
1224
|
const breakpointSpacing = breakpoints$1(compose(spacing, typography));
|
|
1225
|
+
const TYPOGRAPHY_SYSTEM_PROPS = /* @__PURE__ */ new Set([
|
|
1226
|
+
"m",
|
|
1227
|
+
"mt",
|
|
1228
|
+
"mr",
|
|
1229
|
+
"mb",
|
|
1230
|
+
"ml",
|
|
1231
|
+
"mx",
|
|
1232
|
+
"my",
|
|
1233
|
+
"p",
|
|
1234
|
+
"pt",
|
|
1235
|
+
"pr",
|
|
1236
|
+
"pb",
|
|
1237
|
+
"pl",
|
|
1238
|
+
"px",
|
|
1239
|
+
"py",
|
|
1240
|
+
"fontSize",
|
|
1241
|
+
"fontWeight",
|
|
1242
|
+
"fontFamily",
|
|
1243
|
+
"fontStyle",
|
|
1244
|
+
"letterSpacing",
|
|
1245
|
+
"lineHeight",
|
|
1246
|
+
"textAlign",
|
|
1247
|
+
"textTransform"
|
|
1248
|
+
]);
|
|
1143
1249
|
const CustomTypography = (props) => {
|
|
1144
|
-
|
|
1250
|
+
const filtered = Object.fromEntries(
|
|
1251
|
+
Object.entries(props).filter(([key]) => !TYPOGRAPHY_SYSTEM_PROPS.has(key))
|
|
1252
|
+
);
|
|
1253
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Typography$1, { ...filtered });
|
|
1145
1254
|
};
|
|
1146
1255
|
const Typography = styled(CustomTypography)`
|
|
1147
1256
|
${spacing}
|
|
@@ -1267,7 +1376,7 @@ const ProgressIndicator = ({ stepCount, currentStep }) => {
|
|
|
1267
1376
|
const percent2 = currentStep / stepCount * 100;
|
|
1268
1377
|
const { t: t2 } = useTranslation();
|
|
1269
1378
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$6, { children: [
|
|
1270
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Typography, { fontWeight: 600, fontSize: 14, lineHeight: "150%", children: [
|
|
1379
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Typography, { fontWeight: 600, fontSize: 14, style: { lineHeight: "150%" }, children: [
|
|
1271
1380
|
currentStep,
|
|
1272
1381
|
"/",
|
|
1273
1382
|
stepCount,
|
|
@@ -1317,7 +1426,9 @@ const sizes = {
|
|
|
1317
1426
|
md: 1250,
|
|
1318
1427
|
lg: 1890
|
|
1319
1428
|
};
|
|
1320
|
-
const StyledContainer$1 = styled(Box)
|
|
1429
|
+
const StyledContainer$1 = styled(Box).withConfig({
|
|
1430
|
+
shouldForwardProp: (prop) => prop !== "disableGutters" && prop !== "padding" && prop !== "size"
|
|
1431
|
+
})`
|
|
1321
1432
|
--padding: ${({ theme, disableGutters, padding }) => disableGutters ? 0 : theme.spacing(padding ?? 2)}px;
|
|
1322
1433
|
|
|
1323
1434
|
--contentMaxWidth: ${({ size }) => typeof size === "number" ? size : sizes[size || "md"]}px;
|
|
@@ -1501,8 +1612,8 @@ function baseHas$1(object2, key) {
|
|
|
1501
1612
|
return object2 != null && hasOwnProperty$9.call(object2, key);
|
|
1502
1613
|
}
|
|
1503
1614
|
var _baseHas = baseHas$1;
|
|
1504
|
-
var isArray$
|
|
1505
|
-
var isArray_1 = isArray$
|
|
1615
|
+
var isArray$b = Array.isArray;
|
|
1616
|
+
var isArray_1 = isArray$b;
|
|
1506
1617
|
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
1507
1618
|
var _freeGlobal = freeGlobal$1;
|
|
1508
1619
|
var freeGlobal = _freeGlobal;
|
|
@@ -1561,10 +1672,10 @@ function isSymbol$4(value) {
|
|
|
1561
1672
|
return typeof value == "symbol" || isObjectLike$4(value) && baseGetTag$4(value) == symbolTag$1;
|
|
1562
1673
|
}
|
|
1563
1674
|
var isSymbol_1 = isSymbol$4;
|
|
1564
|
-
var isArray$
|
|
1675
|
+
var isArray$a = isArray_1, isSymbol$3 = isSymbol_1;
|
|
1565
1676
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
1566
1677
|
function isKey$3(value, object2) {
|
|
1567
|
-
if (isArray$
|
|
1678
|
+
if (isArray$a(value)) {
|
|
1568
1679
|
return false;
|
|
1569
1680
|
}
|
|
1570
1681
|
var type2 = typeof value;
|
|
@@ -1899,13 +2010,13 @@ function arrayMap$1(array2, iteratee) {
|
|
|
1899
2010
|
return result;
|
|
1900
2011
|
}
|
|
1901
2012
|
var _arrayMap = arrayMap$1;
|
|
1902
|
-
var Symbol$2 = _Symbol, arrayMap = _arrayMap, isArray$
|
|
2013
|
+
var Symbol$2 = _Symbol, arrayMap = _arrayMap, isArray$9 = isArray_1, isSymbol$2 = isSymbol_1;
|
|
1903
2014
|
var symbolProto$1 = Symbol$2 ? Symbol$2.prototype : void 0, symbolToString = symbolProto$1 ? symbolProto$1.toString : void 0;
|
|
1904
2015
|
function baseToString$1(value) {
|
|
1905
2016
|
if (typeof value == "string") {
|
|
1906
2017
|
return value;
|
|
1907
2018
|
}
|
|
1908
|
-
if (isArray$
|
|
2019
|
+
if (isArray$9(value)) {
|
|
1909
2020
|
return arrayMap(value, baseToString$1) + "";
|
|
1910
2021
|
}
|
|
1911
2022
|
if (isSymbol$2(value)) {
|
|
@@ -1920,9 +2031,9 @@ function toString$5(value) {
|
|
|
1920
2031
|
return value == null ? "" : baseToString(value);
|
|
1921
2032
|
}
|
|
1922
2033
|
var toString_1 = toString$5;
|
|
1923
|
-
var isArray$
|
|
2034
|
+
var isArray$8 = isArray_1, isKey$2 = _isKey, stringToPath$1 = _stringToPath, toString$4 = toString_1;
|
|
1924
2035
|
function castPath$2(value, object2) {
|
|
1925
|
-
if (isArray$
|
|
2036
|
+
if (isArray$8(value)) {
|
|
1926
2037
|
return value;
|
|
1927
2038
|
}
|
|
1928
2039
|
return isKey$2(value, object2) ? [value] : stringToPath$1(toString$4(value));
|
|
@@ -1966,7 +2077,7 @@ function toKey$4(value) {
|
|
|
1966
2077
|
return result == "0" && 1 / value == -Infinity ? "-0" : result;
|
|
1967
2078
|
}
|
|
1968
2079
|
var _toKey = toKey$4;
|
|
1969
|
-
var castPath$1 = _castPath, isArguments$1 = isArguments_1, isArray$
|
|
2080
|
+
var castPath$1 = _castPath, isArguments$1 = isArguments_1, isArray$7 = isArray_1, isIndex$1 = _isIndex, isLength$2 = isLength_1, toKey$3 = _toKey;
|
|
1970
2081
|
function hasPath$2(object2, path, hasFunc) {
|
|
1971
2082
|
path = castPath$1(path, object2);
|
|
1972
2083
|
var index = -1, length = path.length, result = false;
|
|
@@ -1981,15 +2092,15 @@ function hasPath$2(object2, path, hasFunc) {
|
|
|
1981
2092
|
return result;
|
|
1982
2093
|
}
|
|
1983
2094
|
length = object2 == null ? 0 : object2.length;
|
|
1984
|
-
return !!length && isLength$2(length) && isIndex$1(key, length) && (isArray$
|
|
2095
|
+
return !!length && isLength$2(length) && isIndex$1(key, length) && (isArray$7(object2) || isArguments$1(object2));
|
|
1985
2096
|
}
|
|
1986
2097
|
var _hasPath = hasPath$2;
|
|
1987
2098
|
var baseHas = _baseHas, hasPath$1 = _hasPath;
|
|
1988
|
-
function has$
|
|
2099
|
+
function has$4(object2, path) {
|
|
1989
2100
|
return object2 != null && hasPath$1(object2, path, baseHas);
|
|
1990
2101
|
}
|
|
1991
|
-
var has_1 = has$
|
|
1992
|
-
const has$
|
|
2102
|
+
var has_1 = has$4;
|
|
2103
|
+
const has$5 = /* @__PURE__ */ getDefaultExportFromCjs(has_1);
|
|
1993
2104
|
const isSchema = (obj) => obj && obj.__isYupSchema__;
|
|
1994
2105
|
class Condition {
|
|
1995
2106
|
constructor(refs, options) {
|
|
@@ -2000,7 +2111,7 @@ class Condition {
|
|
|
2000
2111
|
this.fn = options;
|
|
2001
2112
|
return;
|
|
2002
2113
|
}
|
|
2003
|
-
if (!has$
|
|
2114
|
+
if (!has$5(options, "is")) throw new TypeError("`is:` is required for `when()` conditions");
|
|
2004
2115
|
if (!options.then && !options.otherwise) throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");
|
|
2005
2116
|
let {
|
|
2006
2117
|
is,
|
|
@@ -2239,11 +2350,11 @@ var baseIsTypedArray = _baseIsTypedArray, baseUnary = _baseUnary, nodeUtil = _no
|
|
|
2239
2350
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
2240
2351
|
var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
2241
2352
|
var isTypedArray_1 = isTypedArray$2;
|
|
2242
|
-
var baseTimes = _baseTimes, isArguments = isArguments_1, isArray$
|
|
2353
|
+
var baseTimes = _baseTimes, isArguments = isArguments_1, isArray$6 = isArray_1, isBuffer$2 = isBufferExports, isIndex = _isIndex, isTypedArray$1 = isTypedArray_1;
|
|
2243
2354
|
var objectProto$5 = Object.prototype;
|
|
2244
2355
|
var hasOwnProperty$3 = objectProto$5.hasOwnProperty;
|
|
2245
2356
|
function arrayLikeKeys$1(value, inherited) {
|
|
2246
|
-
var isArr = isArray$
|
|
2357
|
+
var isArr = isArray$6(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer$2(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
2247
2358
|
for (var key in value) {
|
|
2248
2359
|
if ((inherited || hasOwnProperty$3.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
2249
2360
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -2511,10 +2622,10 @@ function arrayPush$1(array2, values2) {
|
|
|
2511
2622
|
return array2;
|
|
2512
2623
|
}
|
|
2513
2624
|
var _arrayPush = arrayPush$1;
|
|
2514
|
-
var arrayPush = _arrayPush, isArray$
|
|
2625
|
+
var arrayPush = _arrayPush, isArray$5 = isArray_1;
|
|
2515
2626
|
function baseGetAllKeys$1(object2, keysFunc, symbolsFunc) {
|
|
2516
2627
|
var result = keysFunc(object2);
|
|
2517
|
-
return isArray$
|
|
2628
|
+
return isArray$5(object2) ? result : arrayPush(result, symbolsFunc(object2));
|
|
2518
2629
|
}
|
|
2519
2630
|
var _baseGetAllKeys = baseGetAllKeys$1;
|
|
2520
2631
|
function arrayFilter$1(array2, predicate) {
|
|
@@ -2637,13 +2748,13 @@ if (DataView$1 && getTag$1(new DataView$1(new ArrayBuffer(1))) != dataViewTag ||
|
|
|
2637
2748
|
};
|
|
2638
2749
|
}
|
|
2639
2750
|
var _getTag = getTag$1;
|
|
2640
|
-
var Stack$1 = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag = _getTag, isArray$
|
|
2751
|
+
var Stack$1 = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag = _getTag, isArray$4 = isArray_1, isBuffer$1 = isBufferExports, isTypedArray = isTypedArray_1;
|
|
2641
2752
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
2642
2753
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
|
|
2643
2754
|
var objectProto = Object.prototype;
|
|
2644
2755
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
2645
2756
|
function baseIsEqualDeep$1(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
2646
|
-
var objIsArr = isArray$
|
|
2757
|
+
var objIsArr = isArray$4(object2), othIsArr = isArray$4(other), objTag = objIsArr ? arrayTag : getTag(object2), othTag = othIsArr ? arrayTag : getTag(other);
|
|
2647
2758
|
objTag = objTag == argsTag ? objectTag : objTag;
|
|
2648
2759
|
othTag = othTag == argsTag ? objectTag : othTag;
|
|
2649
2760
|
var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
|
|
@@ -2812,7 +2923,7 @@ function property$1(path) {
|
|
|
2812
2923
|
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
|
2813
2924
|
}
|
|
2814
2925
|
var property_1 = property$1;
|
|
2815
|
-
var baseMatches = _baseMatches, baseMatchesProperty = _baseMatchesProperty, identity = identity_1, isArray$
|
|
2926
|
+
var baseMatches = _baseMatches, baseMatchesProperty = _baseMatchesProperty, identity = identity_1, isArray$3 = isArray_1, property = property_1;
|
|
2816
2927
|
function baseIteratee$2(value) {
|
|
2817
2928
|
if (typeof value == "function") {
|
|
2818
2929
|
return value;
|
|
@@ -2821,7 +2932,7 @@ function baseIteratee$2(value) {
|
|
|
2821
2932
|
return identity;
|
|
2822
2933
|
}
|
|
2823
2934
|
if (typeof value == "object") {
|
|
2824
|
-
return isArray$
|
|
2935
|
+
return isArray$3(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
2825
2936
|
}
|
|
2826
2937
|
return property(value);
|
|
2827
2938
|
}
|
|
@@ -2854,27 +2965,11 @@ Cache.prototype.set = function(key, value) {
|
|
|
2854
2965
|
return this._values[key] = value;
|
|
2855
2966
|
};
|
|
2856
2967
|
var SPLIT_REGEX = /[^.^\]^[]+|(?=\[\]|\.\.)/g, DIGIT_REGEX = /^\d+$/, LEAD_DIGIT_REGEX = /^\d/, SPEC_CHAR_REGEX = /[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g, CLEAN_QUOTES_REGEX = /^\s*(['"]?)(.*?)(\1)\s*$/, MAX_CACHE_SIZE = 512;
|
|
2857
|
-
var pathCache = new Cache(MAX_CACHE_SIZE)
|
|
2968
|
+
var pathCache = new Cache(MAX_CACHE_SIZE);
|
|
2969
|
+
new Cache(MAX_CACHE_SIZE);
|
|
2970
|
+
var getCache = new Cache(MAX_CACHE_SIZE);
|
|
2858
2971
|
var propertyExpr = {
|
|
2859
|
-
Cache,
|
|
2860
2972
|
split,
|
|
2861
|
-
normalizePath,
|
|
2862
|
-
setter: function(path) {
|
|
2863
|
-
var parts = normalizePath(path);
|
|
2864
|
-
return setCache.get(path) || setCache.set(path, function setter(obj, value) {
|
|
2865
|
-
var index = 0;
|
|
2866
|
-
var len = parts.length;
|
|
2867
|
-
var data = obj;
|
|
2868
|
-
while (index < len - 1) {
|
|
2869
|
-
var part = parts[index];
|
|
2870
|
-
if (part === "__proto__" || part === "constructor" || part === "prototype") {
|
|
2871
|
-
return obj;
|
|
2872
|
-
}
|
|
2873
|
-
data = data[parts[index++]];
|
|
2874
|
-
}
|
|
2875
|
-
data[parts[index]] = value;
|
|
2876
|
-
});
|
|
2877
|
-
},
|
|
2878
2973
|
getter: function(path, safe) {
|
|
2879
2974
|
var parts = normalizePath(path);
|
|
2880
2975
|
return getCache.get(path) || getCache.set(path, function getter(data) {
|
|
@@ -2886,11 +2981,6 @@ var propertyExpr = {
|
|
|
2886
2981
|
return data;
|
|
2887
2982
|
});
|
|
2888
2983
|
},
|
|
2889
|
-
join: function(segments) {
|
|
2890
|
-
return segments.reduce(function(path, part) {
|
|
2891
|
-
return path + (isQuoted(part) || DIGIT_REGEX.test(part) ? "[" + part + "]" : (path ? "." : "") + part);
|
|
2892
|
-
}, "");
|
|
2893
|
-
},
|
|
2894
2984
|
forEach: function(path, cb, thisArg) {
|
|
2895
2985
|
forEach(Array.isArray(path) ? path : split(path), cb, thisArg);
|
|
2896
2986
|
}
|
|
@@ -4485,7 +4575,7 @@ function sortFields(fields, excludedEdges = []) {
|
|
|
4485
4575
|
nodes.add(node);
|
|
4486
4576
|
if (!excludes.has(`${key}-${node}`)) edges.push([key, node]);
|
|
4487
4577
|
}
|
|
4488
|
-
for (const key in fields) if (has$
|
|
4578
|
+
for (const key in fields) if (has$5(fields, key)) {
|
|
4489
4579
|
let value = fields[key];
|
|
4490
4580
|
nodes.add(key);
|
|
4491
4581
|
if (Reference.isRef(value) && value.isSibling) addNode(value.path, key);
|
|
@@ -4574,7 +4664,7 @@ class ObjectSchema extends BaseSchema {
|
|
|
4574
4664
|
let isChanged = false;
|
|
4575
4665
|
for (const prop of props) {
|
|
4576
4666
|
let field = fields[prop];
|
|
4577
|
-
let exists = has$
|
|
4667
|
+
let exists = has$5(value, prop);
|
|
4578
4668
|
if (field) {
|
|
4579
4669
|
let fieldValue;
|
|
4580
4670
|
let inputValue = value[prop];
|
|
@@ -4737,7 +4827,7 @@ class ObjectSchema extends BaseSchema {
|
|
|
4737
4827
|
return this.transform((obj) => {
|
|
4738
4828
|
if (obj == null) return obj;
|
|
4739
4829
|
let newObj = obj;
|
|
4740
|
-
if (has$
|
|
4830
|
+
if (has$5(obj, from)) {
|
|
4741
4831
|
newObj = _extends$4({}, obj);
|
|
4742
4832
|
if (!alias) delete newObj[from];
|
|
4743
4833
|
newObj[to] = fromGetter(obj);
|
|
@@ -5179,7 +5269,8 @@ const DEFAULT_CONFIG = {
|
|
|
5179
5269
|
salesforceWebToLeadOid: "",
|
|
5180
5270
|
locale: "de",
|
|
5181
5271
|
isProduction: true,
|
|
5182
|
-
codeRed: "marketplace"
|
|
5272
|
+
codeRed: "marketplace",
|
|
5273
|
+
mode: "embedded"
|
|
5183
5274
|
};
|
|
5184
5275
|
let assetsBaseUrl = null;
|
|
5185
5276
|
function getAssetUrl(path) {
|
|
@@ -5980,7 +6071,7 @@ const numberOfVegetariansQuestion = createQuestion({
|
|
|
5980
6071
|
content: {
|
|
5981
6072
|
titleEn: "Vegetarians",
|
|
5982
6073
|
titleDe: "Vegetarier",
|
|
5983
|
-
image: getAssetUrl(`${DIETARY_PATH}/vegetarian.
|
|
6074
|
+
image: getAssetUrl(`${DIETARY_PATH}/vegetarian.svg`)
|
|
5984
6075
|
}
|
|
5985
6076
|
});
|
|
5986
6077
|
const numberOfVegansQuestion = createQuestion({
|
|
@@ -5989,7 +6080,7 @@ const numberOfVegansQuestion = createQuestion({
|
|
|
5989
6080
|
content: {
|
|
5990
6081
|
titleEn: "Vegans",
|
|
5991
6082
|
titleDe: "Veganer",
|
|
5992
|
-
image: getAssetUrl(`${DIETARY_PATH}/vegan.
|
|
6083
|
+
image: getAssetUrl(`${DIETARY_PATH}/vegan.svg`)
|
|
5993
6084
|
}
|
|
5994
6085
|
});
|
|
5995
6086
|
const numberOfCarnivoresQuestion = createQuestion({
|
|
@@ -5998,7 +6089,7 @@ const numberOfCarnivoresQuestion = createQuestion({
|
|
|
5998
6089
|
content: {
|
|
5999
6090
|
titleEn: "Carnivore",
|
|
6000
6091
|
titleDe: "Fleischesser",
|
|
6001
|
-
image: getAssetUrl(`${DIETARY_PATH}/
|
|
6092
|
+
image: getAssetUrl(`${DIETARY_PATH}/meat.svg`)
|
|
6002
6093
|
}
|
|
6003
6094
|
});
|
|
6004
6095
|
function _typeof$1(o) {
|
|
@@ -7746,6 +7837,53 @@ const dateQuestion = createDateQuestion({
|
|
|
7746
7837
|
};
|
|
7747
7838
|
}
|
|
7748
7839
|
});
|
|
7840
|
+
const BUDGET_RANGES = [
|
|
7841
|
+
"under_10k",
|
|
7842
|
+
"10k_25k",
|
|
7843
|
+
"25k_50k",
|
|
7844
|
+
"over_50k"
|
|
7845
|
+
];
|
|
7846
|
+
const BUDGET_RANGE_ITEMS = [
|
|
7847
|
+
{
|
|
7848
|
+
value: "under_10k",
|
|
7849
|
+
labelEn: "<10k",
|
|
7850
|
+
labelDe: "<10k",
|
|
7851
|
+
display: "<10k"
|
|
7852
|
+
},
|
|
7853
|
+
{
|
|
7854
|
+
value: "10k_25k",
|
|
7855
|
+
labelEn: "10k–25k",
|
|
7856
|
+
labelDe: "10k–25k",
|
|
7857
|
+
display: "10k–25k"
|
|
7858
|
+
},
|
|
7859
|
+
{
|
|
7860
|
+
value: "25k_50k",
|
|
7861
|
+
labelEn: "25k–50k",
|
|
7862
|
+
labelDe: "25k–50k",
|
|
7863
|
+
display: "25k–50k"
|
|
7864
|
+
},
|
|
7865
|
+
{
|
|
7866
|
+
value: "over_50k",
|
|
7867
|
+
labelEn: "50k+",
|
|
7868
|
+
labelDe: "50k+",
|
|
7869
|
+
display: "50k+"
|
|
7870
|
+
}
|
|
7871
|
+
];
|
|
7872
|
+
const budgetRangeQuestion = Object.freeze(
|
|
7873
|
+
createSelectorQuestion({
|
|
7874
|
+
id: "budget_range",
|
|
7875
|
+
getValidator: () => {
|
|
7876
|
+
return yup.mixed().oneOf([...BUDGET_RANGES]).required();
|
|
7877
|
+
},
|
|
7878
|
+
getItems: () => {
|
|
7879
|
+
return [...BUDGET_RANGE_ITEMS];
|
|
7880
|
+
},
|
|
7881
|
+
content: {
|
|
7882
|
+
titleEn: "What is your estimated budget?",
|
|
7883
|
+
titleDe: "Wie hoch ist dein geschätztes Budget?"
|
|
7884
|
+
}
|
|
7885
|
+
})
|
|
7886
|
+
);
|
|
7749
7887
|
const LEAD_TYPES = ["private", "business"];
|
|
7750
7888
|
const LEAD_TYPE_PATH = "/artifacts/images/survey/lead_type";
|
|
7751
7889
|
const LEAD_TYPE_ITEMS = [
|
|
@@ -7847,24 +7985,24 @@ const SERVICE_TYPES = [
|
|
|
7847
7985
|
const SERVICE_TYPE_ITEMS = [
|
|
7848
7986
|
{
|
|
7849
7987
|
value: "meetings_events",
|
|
7850
|
-
labelEn: "Meetings &
|
|
7851
|
-
labelDe: "Meetings &
|
|
7852
|
-
subtitleEn: "One-
|
|
7853
|
-
subtitleDe: "Einmaliges Catering"
|
|
7988
|
+
labelEn: "Meetings & Catering",
|
|
7989
|
+
labelDe: "Meetings & Catering",
|
|
7990
|
+
subtitleEn: "One-time catering for meetings or team events",
|
|
7991
|
+
subtitleDe: "Einmaliges Catering für Meetings oder Team-Events"
|
|
7854
7992
|
},
|
|
7855
7993
|
{
|
|
7856
7994
|
value: "regular_employee_catering",
|
|
7857
|
-
labelEn: "Daily
|
|
7858
|
-
labelDe: "
|
|
7859
|
-
subtitleEn: "
|
|
7860
|
-
subtitleDe: "Regelmäßige
|
|
7995
|
+
labelEn: "Daily Office Meals",
|
|
7996
|
+
labelDe: "Tägliche Office Meals",
|
|
7997
|
+
subtitleEn: "Recurring lunch solutions for your team",
|
|
7998
|
+
subtitleDe: "Regelmäßige Lunch-Lösungen für dein Team"
|
|
7861
7999
|
},
|
|
7862
8000
|
{
|
|
7863
8001
|
value: "full_service_event",
|
|
7864
|
-
labelEn: "
|
|
7865
|
-
labelDe: "
|
|
7866
|
-
subtitleEn: "
|
|
7867
|
-
subtitleDe: "
|
|
8002
|
+
labelEn: "Full-Service Event",
|
|
8003
|
+
labelDe: "Full-Service Event",
|
|
8004
|
+
subtitleEn: "Complete event planning including catering and location",
|
|
8005
|
+
subtitleDe: "Komplette Eventplanung inklusive Catering und Location"
|
|
7868
8006
|
}
|
|
7869
8007
|
];
|
|
7870
8008
|
const serviceTypeQuestion = Object.freeze(
|
|
@@ -7912,6 +8050,7 @@ const questions$2 = {
|
|
|
7912
8050
|
};
|
|
7913
8051
|
const SCHEMA_QUESTIONS = {
|
|
7914
8052
|
service_type: serviceTypeQuestion,
|
|
8053
|
+
budget_range: budgetRangeQuestion,
|
|
7915
8054
|
lead_type: leadTypeQuestion,
|
|
7916
8055
|
min_order_number: peopleCountQuestion,
|
|
7917
8056
|
caterer_minimum_order_value: totalBudgetQuestion,
|
|
@@ -7937,6 +8076,7 @@ const STEP_IDS = {
|
|
|
7937
8076
|
teamSize: "team_size",
|
|
7938
8077
|
deliveryFrequency: "delivery_frequency",
|
|
7939
8078
|
peopleCount: "people_count",
|
|
8079
|
+
budgetRange: "budget_range",
|
|
7940
8080
|
contactForm: "contact_form"
|
|
7941
8081
|
};
|
|
7942
8082
|
const cityStep = createStep({
|
|
@@ -8034,6 +8174,14 @@ const peopleCountStep = createStep({
|
|
|
8034
8174
|
subtitleDe: "Mindestens 100 Gäste für Full-Service Events"
|
|
8035
8175
|
}
|
|
8036
8176
|
});
|
|
8177
|
+
const budgetRangeStep = createStep({
|
|
8178
|
+
id: STEP_IDS.budgetRange,
|
|
8179
|
+
questions: [budgetRangeQuestion],
|
|
8180
|
+
content: {
|
|
8181
|
+
titleEn: "What is your estimated budget?",
|
|
8182
|
+
titleDe: "Wie hoch ist dein geschätztes Budget?"
|
|
8183
|
+
}
|
|
8184
|
+
});
|
|
8037
8185
|
const contactFormStep = createStep({
|
|
8038
8186
|
id: STEP_IDS.contactForm,
|
|
8039
8187
|
questions: [],
|
|
@@ -8052,6 +8200,7 @@ const steps$2 = {
|
|
|
8052
8200
|
teamSize: teamSizeStep,
|
|
8053
8201
|
deliveryFrequency: deliveryFrequencyStep,
|
|
8054
8202
|
peopleCount: peopleCountStep,
|
|
8203
|
+
budgetRange: budgetRangeStep,
|
|
8055
8204
|
contactForm: contactFormStep
|
|
8056
8205
|
};
|
|
8057
8206
|
const SCHEMA_STEPS = createStepSchema({
|
|
@@ -8064,6 +8213,7 @@ const SCHEMA_STEPS = createStepSchema({
|
|
|
8064
8213
|
[STEP_IDS.teamSize]: teamSizeStep,
|
|
8065
8214
|
[STEP_IDS.deliveryFrequency]: deliveryFrequencyStep,
|
|
8066
8215
|
[STEP_IDS.peopleCount]: peopleCountStep,
|
|
8216
|
+
[STEP_IDS.budgetRange]: budgetRangeStep,
|
|
8067
8217
|
[STEP_IDS.contactForm]: contactFormStep
|
|
8068
8218
|
});
|
|
8069
8219
|
function createStepSchema(obj) {
|
|
@@ -8139,7 +8289,8 @@ const FLOW_CONFIGURATIONS = {
|
|
|
8139
8289
|
STEP_IDS.city,
|
|
8140
8290
|
STEP_IDS.cateringCategories,
|
|
8141
8291
|
STEP_IDS.eventDate,
|
|
8142
|
-
STEP_IDS.budgetAndPeopleCount
|
|
8292
|
+
STEP_IDS.budgetAndPeopleCount,
|
|
8293
|
+
STEP_IDS.dietaryRestrictions
|
|
8143
8294
|
]
|
|
8144
8295
|
},
|
|
8145
8296
|
full_service_event: {
|
|
@@ -8148,7 +8299,8 @@ const FLOW_CONFIGURATIONS = {
|
|
|
8148
8299
|
STEP_IDS.serviceSelection,
|
|
8149
8300
|
STEP_IDS.city,
|
|
8150
8301
|
STEP_IDS.eventDate,
|
|
8151
|
-
STEP_IDS.peopleCount
|
|
8302
|
+
STEP_IDS.peopleCount,
|
|
8303
|
+
STEP_IDS.budgetRange
|
|
8152
8304
|
]
|
|
8153
8305
|
}
|
|
8154
8306
|
};
|
|
@@ -9166,8 +9318,9 @@ function isDataInStorageInvalid(data) {
|
|
|
9166
9318
|
return true;
|
|
9167
9319
|
}
|
|
9168
9320
|
}
|
|
9169
|
-
const EmbeddedQuestionControls = ({ onBackground }) => {
|
|
9321
|
+
const EmbeddedQuestionControls = ({ onBackground, mode = "embedded" }) => {
|
|
9170
9322
|
const { state, actions, canContinue } = useQualification();
|
|
9323
|
+
const isFullscreen = mode === "fullscreen";
|
|
9171
9324
|
const toPrevStep2 = useCallback(() => {
|
|
9172
9325
|
actions.prevStep();
|
|
9173
9326
|
}, []);
|
|
@@ -9181,8 +9334,9 @@ const EmbeddedQuestionControls = ({ onBackground }) => {
|
|
|
9181
9334
|
const prevStep = steps2[stepIndex - 1];
|
|
9182
9335
|
const isLastStep = Boolean(step2 && stepIndex === steps2.length - 1);
|
|
9183
9336
|
const enabledSteps = state.qualification.steps.filter((q2) => !q2.disabled);
|
|
9337
|
+
const StyledButton = isFullscreen ? FullscreenButton : EmbeddedButton;
|
|
9184
9338
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { size: "sm", display: "flex", flexDirection: "column", children: [
|
|
9185
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9339
|
+
!isFullscreen && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9186
9340
|
Box,
|
|
9187
9341
|
{
|
|
9188
9342
|
display: { xs: "none", sm: "block" },
|
|
@@ -9203,7 +9357,7 @@ const EmbeddedQuestionControls = ({ onBackground }) => {
|
|
|
9203
9357
|
visibility: state.status === QUALIFICATION_STATUS.answered ? "hidden" : "visible",
|
|
9204
9358
|
children: [
|
|
9205
9359
|
prevStep && !prevStep.disabled && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9206
|
-
|
|
9360
|
+
StyledButton,
|
|
9207
9361
|
{
|
|
9208
9362
|
id: "embedded-funnel__prev-btn",
|
|
9209
9363
|
variant: onBackground === "dark" ? "tertiary" : "secondary",
|
|
@@ -9213,7 +9367,7 @@ const EmbeddedQuestionControls = ({ onBackground }) => {
|
|
|
9213
9367
|
}
|
|
9214
9368
|
),
|
|
9215
9369
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Box, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9216
|
-
|
|
9370
|
+
StyledButton,
|
|
9217
9371
|
{
|
|
9218
9372
|
variant: "primary",
|
|
9219
9373
|
type: "submit",
|
|
@@ -9231,6 +9385,11 @@ const EmbeddedQuestionControls = ({ onBackground }) => {
|
|
|
9231
9385
|
const EmbeddedButton = styled(Button)`
|
|
9232
9386
|
height: 24px;
|
|
9233
9387
|
`;
|
|
9388
|
+
const FullscreenButton = styled(Button)`
|
|
9389
|
+
height: 48px;
|
|
9390
|
+
min-width: 140px;
|
|
9391
|
+
font-size: 16px;
|
|
9392
|
+
`;
|
|
9234
9393
|
const ButtonsWrapper = styled(Box)`
|
|
9235
9394
|
display: flex;
|
|
9236
9395
|
justify-content: center;
|
|
@@ -9859,13 +10018,13 @@ const usePillValues = (options) => {
|
|
|
9859
10018
|
return [];
|
|
9860
10019
|
}
|
|
9861
10020
|
const pillValues = options.map(
|
|
9862
|
-
({ stepId
|
|
10021
|
+
({ stepId, questionId }) => getPillValue({
|
|
9863
10022
|
steps: state.qualification.steps,
|
|
9864
10023
|
answers: state.qualification.answers,
|
|
9865
10024
|
t: t2,
|
|
9866
10025
|
locale: locale2,
|
|
9867
|
-
stepId
|
|
9868
|
-
questionId
|
|
10026
|
+
stepId,
|
|
10027
|
+
questionId
|
|
9869
10028
|
})
|
|
9870
10029
|
).flat().filter((truthy) => !!truthy);
|
|
9871
10030
|
return pillValues;
|
|
@@ -9922,12 +10081,14 @@ function getPillValue({
|
|
|
9922
10081
|
const returnValue = [
|
|
9923
10082
|
{
|
|
9924
10083
|
stepId,
|
|
10084
|
+
questionId: "event_date",
|
|
9925
10085
|
text: formatDate(date2, locale2) || ""
|
|
9926
10086
|
}
|
|
9927
10087
|
];
|
|
9928
10088
|
if (leadTypeItem) {
|
|
9929
10089
|
returnValue.push({
|
|
9930
10090
|
stepId: step2.id,
|
|
10091
|
+
questionId: "lead_type",
|
|
9931
10092
|
text: getItemLabel(locale2, leadTypeItem)
|
|
9932
10093
|
});
|
|
9933
10094
|
}
|
|
@@ -9966,10 +10127,12 @@ function getPillValue({
|
|
|
9966
10127
|
return [
|
|
9967
10128
|
{
|
|
9968
10129
|
stepId,
|
|
10130
|
+
questionId: "min_order_number",
|
|
9969
10131
|
text: t2("qualification:selection.people", { amount: peopleCount })
|
|
9970
10132
|
},
|
|
9971
10133
|
{
|
|
9972
10134
|
stepId,
|
|
10135
|
+
questionId: "price_per_person",
|
|
9973
10136
|
text: t2("qualification:selection.budget", {
|
|
9974
10137
|
perPerson: pricePerPerson,
|
|
9975
10138
|
total: total2
|
|
@@ -9977,6 +10140,16 @@ function getPillValue({
|
|
|
9977
10140
|
}
|
|
9978
10141
|
];
|
|
9979
10142
|
}
|
|
10143
|
+
case "budget_range": {
|
|
10144
|
+
const answer = answers == null ? void 0 : answers.budget_range;
|
|
10145
|
+
const item = BUDGET_RANGE_ITEMS.find(
|
|
10146
|
+
(rangeItem) => rangeItem.value === answer
|
|
10147
|
+
);
|
|
10148
|
+
return item ? {
|
|
10149
|
+
stepId,
|
|
10150
|
+
text: getItemLabel(locale2, item)
|
|
10151
|
+
} : null;
|
|
10152
|
+
}
|
|
9980
10153
|
case "dietary_restrictions": {
|
|
9981
10154
|
if (questionId === "number_of_carnivore") {
|
|
9982
10155
|
return {
|
|
@@ -10056,6 +10229,9 @@ const selectionSchema = [
|
|
|
10056
10229
|
{
|
|
10057
10230
|
stepId: "people_count_and_budget"
|
|
10058
10231
|
},
|
|
10232
|
+
{
|
|
10233
|
+
stepId: "budget_range"
|
|
10234
|
+
},
|
|
10059
10235
|
{
|
|
10060
10236
|
stepId: "dietary_restrictions",
|
|
10061
10237
|
questionId: "number_of_vegetarians"
|
|
@@ -10137,7 +10313,7 @@ function SelectedAnswers({ currentStep, wrap }) {
|
|
|
10137
10313
|
questionId: pill.questionId,
|
|
10138
10314
|
text: pill.text || ""
|
|
10139
10315
|
},
|
|
10140
|
-
pill.questionId
|
|
10316
|
+
`${pill.stepId}_${pill.questionId}`
|
|
10141
10317
|
)) })
|
|
10142
10318
|
}
|
|
10143
10319
|
)
|
|
@@ -10169,7 +10345,7 @@ function SelectedAnswers({ currentStep, wrap }) {
|
|
|
10169
10345
|
questionId: pill.questionId,
|
|
10170
10346
|
text: pill.text || ""
|
|
10171
10347
|
},
|
|
10172
|
-
pill.questionId
|
|
10348
|
+
`${pill.stepId}_${pill.questionId}`
|
|
10173
10349
|
)) })
|
|
10174
10350
|
}
|
|
10175
10351
|
)
|
|
@@ -10222,8 +10398,10 @@ const EmbeddedQuestionLayout = ({
|
|
|
10222
10398
|
answerContainerSize = 826,
|
|
10223
10399
|
side,
|
|
10224
10400
|
wrapper,
|
|
10401
|
+
mode = "embedded",
|
|
10225
10402
|
...boxProps
|
|
10226
10403
|
}) => {
|
|
10404
|
+
const isFullscreen = mode === "fullscreen";
|
|
10227
10405
|
const { state } = useQualification();
|
|
10228
10406
|
const isMobile = useBreakpointDown("sm");
|
|
10229
10407
|
if (state.status !== QUALIFICATION_STATUS.answered && state.status !== QUALIFICATION_STATUS.answering && state.status !== QUALIFICATION_STATUS.qualifiedForRequest) {
|
|
@@ -10233,91 +10411,109 @@ const EmbeddedQuestionLayout = ({
|
|
|
10233
10411
|
const steps2 = state.qualification.steps;
|
|
10234
10412
|
const stepIndex = step2 ? steps2.findIndex(({ id }) => id === step2.id) : -1;
|
|
10235
10413
|
const showSelectedAnswerPills = state.status === QUALIFICATION_STATUS.answering && stepIndex > 0;
|
|
10236
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
10414
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
10237
10415
|
Container,
|
|
10238
10416
|
{
|
|
10239
10417
|
size: containerSize,
|
|
10240
10418
|
disableGutters,
|
|
10419
|
+
...isFullscreen ? { style: { display: "flex", flexDirection: "column", flexGrow: 1 } } : {},
|
|
10241
10420
|
...boxProps,
|
|
10242
|
-
children:
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10421
|
+
children: [
|
|
10422
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
10423
|
+
Wrapper$5,
|
|
10424
|
+
{
|
|
10425
|
+
bgcolor: wrapper === "white" ? "white" : "transparent",
|
|
10426
|
+
minHeight: isFullscreen ? void 0 : { xs: 0, md: MIN_HEIGHT_OVER_MD },
|
|
10427
|
+
display: "flex",
|
|
10428
|
+
width: "100%",
|
|
10429
|
+
color: "rgba(0,0,0,0.8)",
|
|
10430
|
+
flexDirection: "column",
|
|
10431
|
+
justifyContent: "center",
|
|
10432
|
+
alignItems: "flex-start",
|
|
10433
|
+
position: isMobile ? "inherit" : "relative",
|
|
10434
|
+
...isFullscreen ? { flexGrow: 1, style: { paddingBottom: "80px" } } : {},
|
|
10435
|
+
children: [
|
|
10436
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
10437
|
+
WrapperBox$1,
|
|
10438
|
+
{
|
|
10439
|
+
position: isFullscreen ? "inherit" : isMobile ? "inherit" : "absolute",
|
|
10440
|
+
width: "100%",
|
|
10441
|
+
flexGrow: 1,
|
|
10442
|
+
display: "flex",
|
|
10443
|
+
flexDirection: { xs: "column", md: "row" },
|
|
10444
|
+
mb: isFullscreen ? 0 : 4,
|
|
10445
|
+
alignItems: { xs: "center", md: "flex-start" },
|
|
10446
|
+
children: [
|
|
10447
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10448
|
+
Box,
|
|
10449
|
+
{
|
|
10450
|
+
flexGrow: 0,
|
|
10451
|
+
width: { xs: "100%", md: "min-content" },
|
|
10452
|
+
maxWidth: "500px",
|
|
10453
|
+
children: side
|
|
10454
|
+
}
|
|
10455
|
+
),
|
|
10456
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
10457
|
+
Box,
|
|
10458
|
+
{
|
|
10459
|
+
flexGrow: 1,
|
|
10460
|
+
display: "flex",
|
|
10461
|
+
flexDirection: "column",
|
|
10462
|
+
alignSelf: "stretch",
|
|
10463
|
+
children: [
|
|
10464
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(TextWrapper, { children: [
|
|
10465
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Box, { textAlign: "center", mb: isFullscreen ? 4 : 2, maxWidth: isFullscreen ? 650 : 550, mx: "auto", children: typeof title === "string" ? isFullscreen ? /* @__PURE__ */ jsxRuntimeExports.jsxs(FullscreenTitle, { children: [
|
|
10466
|
+
title,
|
|
10467
|
+
" "
|
|
10468
|
+
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(Subtitle$1, { variant: "subtitle2", children: [
|
|
10469
|
+
title,
|
|
10470
|
+
" "
|
|
10471
|
+
] }) : title }),
|
|
10472
|
+
subtitle && /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { as: "p", textAlign: "center", mb: isFullscreen ? 2 : 0, children: [
|
|
10473
|
+
subtitle,
|
|
10474
|
+
" "
|
|
10475
|
+
] })
|
|
10476
|
+
] }),
|
|
10477
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Box, { my: "auto", children: content }),
|
|
10478
|
+
!isFullscreen && /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { mt: 2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(EmbeddedQuestionControls, { onBackground: "light", mode: "embedded" }) })
|
|
10479
|
+
]
|
|
10480
|
+
}
|
|
10481
|
+
)
|
|
10482
|
+
]
|
|
10483
|
+
}
|
|
10484
|
+
),
|
|
10485
|
+
!isFullscreen && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10486
|
+
Container,
|
|
10487
|
+
{
|
|
10488
|
+
mt: "auto",
|
|
10489
|
+
size: answerContainerSize,
|
|
10490
|
+
disableGutters,
|
|
10491
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10276
10492
|
Box,
|
|
10277
10493
|
{
|
|
10278
|
-
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
children: [
|
|
10283
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(TextWrapper, { children: [
|
|
10284
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Box, { textAlign: "center", mb: 2, maxWidth: 550, mx: "auto", children: typeof title === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Subtitle$1, { variant: "subtitle2", children: [
|
|
10285
|
-
title,
|
|
10286
|
-
" "
|
|
10287
|
-
] }) : title }),
|
|
10288
|
-
subtitle && /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { as: "p", textAlign: "center", children: [
|
|
10289
|
-
subtitle,
|
|
10290
|
-
" "
|
|
10291
|
-
] })
|
|
10292
|
-
] }),
|
|
10293
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Box, { my: "auto", children: content }),
|
|
10294
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Box, { mt: 2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(EmbeddedQuestionControls, { onBackground: "light" }) })
|
|
10295
|
-
]
|
|
10494
|
+
bgcolor: "white",
|
|
10495
|
+
borderRadius: { xs: 0, sm: 8 },
|
|
10496
|
+
visibility: showSelectedAnswerPills ? "visible" : "hidden",
|
|
10497
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(SelectedAnswers, { currentStep: step2 || steps2[1] })
|
|
10296
10498
|
}
|
|
10297
10499
|
)
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10309
|
-
|
|
10310
|
-
|
|
10311
|
-
|
|
10312
|
-
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
)
|
|
10316
|
-
}
|
|
10317
|
-
)
|
|
10318
|
-
]
|
|
10319
|
-
}
|
|
10320
|
-
)
|
|
10500
|
+
}
|
|
10501
|
+
)
|
|
10502
|
+
]
|
|
10503
|
+
}
|
|
10504
|
+
),
|
|
10505
|
+
isFullscreen && /* @__PURE__ */ jsxRuntimeExports.jsxs(StickyFooter, { children: [
|
|
10506
|
+
showSelectedAnswerPills && /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { size: answerContainerSize, disableGutters, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10507
|
+
Box,
|
|
10508
|
+
{
|
|
10509
|
+
bgcolor: "white",
|
|
10510
|
+
borderRadius: { xs: 0, sm: 8 },
|
|
10511
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(SelectedAnswers, { currentStep: step2 || steps2[1] })
|
|
10512
|
+
}
|
|
10513
|
+
) }),
|
|
10514
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(EmbeddedQuestionControls, { onBackground: "light", mode: "fullscreen" })
|
|
10515
|
+
] })
|
|
10516
|
+
]
|
|
10321
10517
|
}
|
|
10322
10518
|
);
|
|
10323
10519
|
};
|
|
@@ -10356,6 +10552,38 @@ const Subtitle$1 = styled(Typography)`
|
|
|
10356
10552
|
font-size: 18px;
|
|
10357
10553
|
}
|
|
10358
10554
|
`;
|
|
10555
|
+
const FullscreenTitle = styled.h2`
|
|
10556
|
+
font-weight: 600;
|
|
10557
|
+
font-size: 22px;
|
|
10558
|
+
white-space: pre-line;
|
|
10559
|
+
line-height: 140%;
|
|
10560
|
+
margin: 0;
|
|
10561
|
+
color: var(--embedded-text-color, inherit);
|
|
10562
|
+
|
|
10563
|
+
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
10564
|
+
font-size: 26px;
|
|
10565
|
+
}
|
|
10566
|
+
|
|
10567
|
+
${({ theme }) => theme.breakpoints.up("md")} {
|
|
10568
|
+
font-size: 30px;
|
|
10569
|
+
}
|
|
10570
|
+
`;
|
|
10571
|
+
const StickyFooter = styled.div`
|
|
10572
|
+
position: sticky;
|
|
10573
|
+
bottom: 0;
|
|
10574
|
+
left: 0;
|
|
10575
|
+
width: 100vw;
|
|
10576
|
+
margin-left: calc(-50vw + 50%);
|
|
10577
|
+
background: white;
|
|
10578
|
+
box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
|
|
10579
|
+
padding: ${({ theme }) => theme.spacing(2)}px ${({ theme }) => theme.spacing(1)}px;
|
|
10580
|
+
margin-top: auto;
|
|
10581
|
+
z-index: 10;
|
|
10582
|
+
|
|
10583
|
+
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
10584
|
+
padding: ${({ theme }) => theme.spacing(2)}px ${({ theme }) => theme.spacing(3)}px;
|
|
10585
|
+
}
|
|
10586
|
+
`;
|
|
10359
10587
|
const CloseIcon$1 = ({ size = 24, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "currentColor", ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) });
|
|
10360
10588
|
const AddIcon = ({ size = 24, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "currentColor", ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" }) });
|
|
10361
10589
|
const RemoveIcon = ({ size = 24, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "currentColor", ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M19 13H5v-2h14v2z" }) });
|
|
@@ -10803,44 +11031,144 @@ const Wrapper$4 = styled.div`
|
|
|
10803
11031
|
grid-template-columns: 1fr auto;
|
|
10804
11032
|
}
|
|
10805
11033
|
`;
|
|
10806
|
-
|
|
10807
|
-
hasSidebar,
|
|
10808
|
-
dateSelector,
|
|
10809
|
-
sideContent,
|
|
10810
|
-
...boxProps
|
|
10811
|
-
}) {
|
|
10812
|
-
const { actions, state, answerOf } = useQualification();
|
|
10813
|
-
useEffect(() => {
|
|
10814
|
-
if (answerOf("lead_type") === void 0)
|
|
10815
|
-
actions.answerQuestion("lead_type", "private");
|
|
10816
|
-
}, [answerOf]);
|
|
10817
|
-
if (state.status !== QUALIFICATION_STATUS.answering) {
|
|
10818
|
-
return null;
|
|
10819
|
-
}
|
|
10820
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$3, { $hasSidebar: hasSidebar, ...boxProps, children: [
|
|
10821
|
-
dateSelector,
|
|
10822
|
-
sideContent
|
|
10823
|
-
] });
|
|
10824
|
-
}
|
|
10825
|
-
const Wrapper$3 = styled(Box)`
|
|
11034
|
+
const TilesWrapper = styled(Box)`
|
|
10826
11035
|
display: flex;
|
|
11036
|
+
flex-direction: row;
|
|
11037
|
+
height: auto;
|
|
11038
|
+
gap: ${({ theme }) => theme.spacing(1.5)}px;
|
|
10827
11039
|
flex-wrap: wrap;
|
|
10828
11040
|
justify-content: center;
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
11041
|
+
|
|
11042
|
+
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
11043
|
+
max-width: 1050px;
|
|
11044
|
+
flex-direction: row;
|
|
11045
|
+
height: auto;
|
|
11046
|
+
gap: ${({ theme, $size }) => $size === "sm" ? theme.spacing(1.5) : theme.spacing(2.5)}px;
|
|
11047
|
+
flex-wrap: wrap;
|
|
11048
|
+
justify-content: center;
|
|
11049
|
+
}
|
|
11050
|
+
`;
|
|
11051
|
+
const StyledTileTypography = styled(Typography)`
|
|
11052
|
+
line-height: 172.5%;
|
|
11053
|
+
`;
|
|
11054
|
+
const TileTypography = (props) => {
|
|
11055
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11056
|
+
StyledTileTypography,
|
|
11057
|
+
{
|
|
11058
|
+
fontSize: { xs: 12, sm: 16 },
|
|
11059
|
+
fontWeight: 600,
|
|
11060
|
+
...props
|
|
11061
|
+
}
|
|
11062
|
+
);
|
|
11063
|
+
};
|
|
11064
|
+
const Tile = styled.div`
|
|
11065
|
+
${({ theme, $variant }) => $variant === "primary" && css$1`
|
|
11066
|
+
--active-background: #fff9f4;
|
|
11067
|
+
--active-outline: 3px solid ${theme.palette.primary.main};
|
|
11068
|
+
--active-text-color: rgba(0, 0, 0, 0.7);
|
|
11069
|
+
`}
|
|
11070
|
+
|
|
11071
|
+
${({ theme, $variant }) => $variant === "secondary" && css$1`
|
|
11072
|
+
--active-background: white;
|
|
11073
|
+
--active-outline: 2px solid ${theme.palette.secondary[500]};
|
|
11074
|
+
--active-text-color: ${theme.palette.secondary[500]};
|
|
11075
|
+
`}
|
|
11076
|
+
|
|
11077
|
+
--active-shadow: 0px 6px 25px 0px rgba(0, 0, 0, 0.15);
|
|
11078
|
+
|
|
11079
|
+
cursor: pointer;
|
|
11080
|
+
background: #fff;
|
|
11081
|
+
display: flex;
|
|
11082
|
+
overflow: hidden;
|
|
10833
11083
|
align-items: center;
|
|
10834
|
-
|
|
11084
|
+
border-radius: 20px;
|
|
11085
|
+
box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.1);
|
|
11086
|
+
height: 110px;
|
|
11087
|
+
width: 110px;
|
|
11088
|
+
justify-content: center;
|
|
11089
|
+
flex-direction: column;
|
|
11090
|
+
gap: ${({ theme }) => theme.spacing(2)}px;
|
|
11091
|
+
padding: ${({ theme }) => theme.spacing(3, 1, 2, 1)};
|
|
10835
11092
|
|
|
10836
|
-
${({ theme
|
|
10837
|
-
|
|
11093
|
+
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
11094
|
+
justify-content: center;
|
|
11095
|
+
flex-direction: column;
|
|
11096
|
+
gap: ${({ theme }) => theme.spacing(1)}px;
|
|
11097
|
+
width: 154px;
|
|
11098
|
+
height: ${({ $height }) => $height || "166px"};
|
|
11099
|
+
|
|
11100
|
+
padding: ${({ theme }) => theme.spacing(3, 1, 2, 1)};
|
|
10838
11101
|
}
|
|
10839
11102
|
|
|
10840
|
-
${({
|
|
10841
|
-
|
|
11103
|
+
outline: ${({ $selected }) => $selected ? "var(--active-outline)" : "none"};
|
|
11104
|
+
box-shadow: ${({ $selected }) => $selected ? "var(--active-shadow)" : "0px 4px 14px 0px rgba(0, 0, 0, 0.1)"};
|
|
11105
|
+
color: ${({ $selected }) => $selected ? "var(--active-text-color)" : "rgba(0, 0, 0, 0.7)"};
|
|
11106
|
+
background-color: ${({ $selected }) => $selected ? "var(--active-background)" : "white"};
|
|
11107
|
+
|
|
11108
|
+
transition: all 0.1s ease;
|
|
11109
|
+
|
|
11110
|
+
@media (hover: hover) {
|
|
11111
|
+
&:hover {
|
|
11112
|
+
outline: var(--active-outline);
|
|
11113
|
+
box-shadow: var(--active-shadow);
|
|
11114
|
+
color: var(--active-text-color);
|
|
11115
|
+
}
|
|
11116
|
+
}
|
|
11117
|
+
|
|
11118
|
+
:focus,
|
|
11119
|
+
:active {
|
|
11120
|
+
outline: var(--active-outline);
|
|
11121
|
+
box-shadow: var(--active-shadow);
|
|
11122
|
+
color: var(--active-text-color);
|
|
11123
|
+
background-color: var(--active-background);
|
|
11124
|
+
}
|
|
11125
|
+
`;
|
|
11126
|
+
const BudgetRangeTiles = ({
|
|
11127
|
+
onSelect,
|
|
11128
|
+
selected,
|
|
11129
|
+
variant = "primary"
|
|
11130
|
+
}) => {
|
|
11131
|
+
const { i18n } = useTranslation();
|
|
11132
|
+
const isGerman = i18n.language === "de";
|
|
11133
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TilesWrapper, { children: BUDGET_RANGE_ITEMS.map((item) => {
|
|
11134
|
+
const label = isGerman ? item.labelDe : item.labelEn;
|
|
11135
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
11136
|
+
BudgetTile,
|
|
11137
|
+
{
|
|
11138
|
+
$variant: variant,
|
|
11139
|
+
$selected: selected === item.value,
|
|
11140
|
+
id: `tile__budget-range--${item.value}`,
|
|
11141
|
+
onClick: (e2) => {
|
|
11142
|
+
e2.currentTarget.blur();
|
|
11143
|
+
onSelect(item.value);
|
|
11144
|
+
},
|
|
11145
|
+
children: [
|
|
11146
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(IconWrapper$4, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(BudgetText, { children: item.display }) }),
|
|
11147
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TileTypography, { children: label })
|
|
11148
|
+
]
|
|
11149
|
+
},
|
|
11150
|
+
item.value
|
|
11151
|
+
);
|
|
11152
|
+
}) });
|
|
11153
|
+
};
|
|
11154
|
+
const BudgetTile = styled(Tile)`
|
|
11155
|
+
text-align: center;
|
|
11156
|
+
`;
|
|
11157
|
+
const IconWrapper$4 = styled(Box)`
|
|
11158
|
+
min-width: 50px;
|
|
11159
|
+
display: grid;
|
|
11160
|
+
place-content: center;
|
|
11161
|
+
font-size: 22px;
|
|
11162
|
+
|
|
11163
|
+
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
11164
|
+
font-size: 28px;
|
|
11165
|
+
flex-grow: 1;
|
|
10842
11166
|
}
|
|
10843
11167
|
`;
|
|
11168
|
+
const BudgetText = styled.span`
|
|
11169
|
+
font-weight: 600;
|
|
11170
|
+
color: ${({ theme }) => theme.palette.primary.main};
|
|
11171
|
+
`;
|
|
10844
11172
|
const AppSwitch = (props) => {
|
|
10845
11173
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(SwitchLabelWrapper, { children: [
|
|
10846
11174
|
/* @__PURE__ */ jsxRuntimeExports.jsx("input", { type: "checkbox", ...props }),
|
|
@@ -10889,7 +11217,7 @@ const SwitchLabelWrapper = styled.label`
|
|
|
10889
11217
|
}
|
|
10890
11218
|
|
|
10891
11219
|
input:checked + span {
|
|
10892
|
-
background-color: ${({ theme }) => theme.palette.
|
|
11220
|
+
background-color: ${({ theme }) => theme.palette.primary.main};
|
|
10893
11221
|
}
|
|
10894
11222
|
|
|
10895
11223
|
input:checked + span:before {
|
|
@@ -10898,25 +11226,104 @@ const SwitchLabelWrapper = styled.label`
|
|
|
10898
11226
|
transform: translateX(14px);
|
|
10899
11227
|
}
|
|
10900
11228
|
`;
|
|
10901
|
-
function
|
|
11229
|
+
function BusinessCustomerToggle() {
|
|
10902
11230
|
var _a2, _b;
|
|
10903
11231
|
const { t: t2 } = useTranslation("qualification");
|
|
10904
|
-
const { actions,
|
|
10905
|
-
const theme = useTheme$1();
|
|
11232
|
+
const { actions, answerOf } = useQualification();
|
|
10906
11233
|
const { currentUserAccount } = useCurrentUser();
|
|
10907
11234
|
const isLoggedIn = !!currentUserAccount;
|
|
10908
|
-
const
|
|
11235
|
+
const showToggle = (_b = (_a2 = questions$2.leadType).condition) == null ? void 0 : _b.call(_a2, isLoggedIn);
|
|
10909
11236
|
useEffect(() => {
|
|
10910
11237
|
if (answerOf("lead_type") === void 0)
|
|
10911
11238
|
actions.answerQuestion("lead_type", "private");
|
|
10912
11239
|
}, [answerOf]);
|
|
10913
|
-
if (
|
|
11240
|
+
if (!showToggle) {
|
|
10914
11241
|
return null;
|
|
10915
11242
|
}
|
|
10916
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
11243
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ToggleWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11244
|
+
FormControlLabel,
|
|
11245
|
+
{
|
|
11246
|
+
control: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11247
|
+
AppSwitch,
|
|
11248
|
+
{
|
|
11249
|
+
id: "toggle__lead-type",
|
|
11250
|
+
name: "lead-type",
|
|
11251
|
+
checked: answerOf("lead_type") === "business",
|
|
11252
|
+
onChange: (value) => actions.answerQuestion(
|
|
11253
|
+
"lead_type",
|
|
11254
|
+
value.target.checked ? "business" : "private"
|
|
11255
|
+
)
|
|
11256
|
+
}
|
|
11257
|
+
),
|
|
11258
|
+
label: /* @__PURE__ */ jsxRuntimeExports.jsx(LabelTypography$1, { variant: "body2", ml: 1.5, pt: 0.25, pl: 1, children: t2("questionTypes.leadType.switch") })
|
|
11259
|
+
}
|
|
11260
|
+
) });
|
|
11261
|
+
}
|
|
11262
|
+
const LabelTypography$1 = styled(Typography)`
|
|
11263
|
+
font-size: 14px;
|
|
11264
|
+
`;
|
|
11265
|
+
const ToggleWrapper = styled.div`
|
|
11266
|
+
display: flex;
|
|
11267
|
+
justify-content: center;
|
|
11268
|
+
padding: 1rem 0;
|
|
11269
|
+
`;
|
|
11270
|
+
function DatePickerLayout({
|
|
11271
|
+
hasSidebar,
|
|
11272
|
+
dateSelector,
|
|
11273
|
+
sideContent,
|
|
11274
|
+
...boxProps
|
|
11275
|
+
}) {
|
|
11276
|
+
const { actions, state, answerOf } = useQualification();
|
|
11277
|
+
useEffect(() => {
|
|
11278
|
+
if (answerOf("lead_type") === void 0)
|
|
11279
|
+
actions.answerQuestion("lead_type", "private");
|
|
11280
|
+
}, [answerOf]);
|
|
11281
|
+
if (state.status !== QUALIFICATION_STATUS.answering) {
|
|
11282
|
+
return null;
|
|
11283
|
+
}
|
|
11284
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$3, { $hasSidebar: hasSidebar, ...boxProps, children: [
|
|
11285
|
+
dateSelector,
|
|
11286
|
+
sideContent
|
|
11287
|
+
] });
|
|
11288
|
+
}
|
|
11289
|
+
const Wrapper$3 = styled(Box)`
|
|
11290
|
+
display: flex;
|
|
11291
|
+
flex-wrap: wrap;
|
|
11292
|
+
justify-content: center;
|
|
11293
|
+
margin-left: auto;
|
|
11294
|
+
margin-right: auto;
|
|
11295
|
+
flex-direction: row;
|
|
11296
|
+
row-gap: 2rem;
|
|
11297
|
+
align-items: center;
|
|
11298
|
+
column-gap: 0rem;
|
|
11299
|
+
|
|
11300
|
+
${({ theme, $hasSidebar }) => theme.breakpoints.up($hasSidebar ? "lg" : "md")} {
|
|
11301
|
+
column-gap: 2rem;
|
|
11302
|
+
}
|
|
11303
|
+
|
|
11304
|
+
${({ theme, $hasSidebar }) => theme.breakpoints.up($hasSidebar ? "md" : "sm")} {
|
|
11305
|
+
align-items: flex-start;
|
|
11306
|
+
}
|
|
11307
|
+
`;
|
|
11308
|
+
function DatePickerSide() {
|
|
11309
|
+
var _a2, _b;
|
|
11310
|
+
const { t: t2 } = useTranslation("qualification");
|
|
11311
|
+
const { actions, state, answerOf } = useQualification();
|
|
11312
|
+
const theme = useTheme$1();
|
|
11313
|
+
const { currentUserAccount } = useCurrentUser();
|
|
11314
|
+
const isLoggedIn = !!currentUserAccount;
|
|
11315
|
+
const showLeadTypeCheckbox = (_b = (_a2 = questions$2.leadType).condition) == null ? void 0 : _b.call(_a2, isLoggedIn);
|
|
11316
|
+
useEffect(() => {
|
|
11317
|
+
if (answerOf("lead_type") === void 0)
|
|
11318
|
+
actions.answerQuestion("lead_type", "private");
|
|
11319
|
+
}, [answerOf]);
|
|
11320
|
+
if (state.status !== QUALIFICATION_STATUS.answering) {
|
|
11321
|
+
return null;
|
|
11322
|
+
}
|
|
11323
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(SwitchesWrapper, { children: [
|
|
11324
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11325
|
+
FormControlLabel,
|
|
11326
|
+
{
|
|
10920
11327
|
control: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10921
11328
|
AppSwitch,
|
|
10922
11329
|
{
|
|
@@ -10947,7 +11354,7 @@ function DatePickerSide() {
|
|
|
10947
11354
|
)
|
|
10948
11355
|
}
|
|
10949
11356
|
),
|
|
10950
|
-
showLeadTypeCheckbox && /* @__PURE__ */ jsxRuntimeExports.jsx(Box, {
|
|
11357
|
+
showLeadTypeCheckbox && /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10951
11358
|
FormControlLabel,
|
|
10952
11359
|
{
|
|
10953
11360
|
control: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -11059,20 +11466,22 @@ function DayWithOutsideMonthLabel(props) {
|
|
|
11059
11466
|
function CustomCaption(props) {
|
|
11060
11467
|
const { goToMonth, nextMonth, previousMonth } = useNavigation();
|
|
11061
11468
|
const daypicker = useDayPicker();
|
|
11062
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { display: "flex", justifyContent: "space-between", py: 1, children: [
|
|
11469
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { display: "flex", justifyContent: "space-between", alignItems: "center", py: 1.5, children: [
|
|
11063
11470
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11064
11471
|
MonthNavigationButton,
|
|
11065
11472
|
{
|
|
11473
|
+
id: "datepicker__prev-month",
|
|
11066
11474
|
type: "button",
|
|
11067
11475
|
disabled: !previousMonth,
|
|
11068
11476
|
onClick: () => previousMonth && goToMonth(previousMonth),
|
|
11069
11477
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(IconLeft, {})
|
|
11070
11478
|
}
|
|
11071
11479
|
),
|
|
11072
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { fontSize:
|
|
11480
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { fontSize: 15, fontWeight: 600, children: format(props.displayMonth, "MMMM yyyy", { locale: daypicker.locale }) }),
|
|
11073
11481
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11074
11482
|
MonthNavigationButton,
|
|
11075
11483
|
{
|
|
11484
|
+
id: "datepicker__next-month",
|
|
11076
11485
|
type: "button",
|
|
11077
11486
|
disabled: !nextMonth,
|
|
11078
11487
|
onClick: () => nextMonth && goToMonth(nextMonth),
|
|
@@ -11091,6 +11500,10 @@ function OnlyAfterToday(props) {
|
|
|
11091
11500
|
const datesWithWeekOffset = props.dates.map(
|
|
11092
11501
|
(date2) => addWeeks(date2, weekOffset)
|
|
11093
11502
|
);
|
|
11503
|
+
const hasDateInMonth = datesWithWeekOffset.some(
|
|
11504
|
+
(date2) => isSameMonth(date2, props.displayMonth)
|
|
11505
|
+
);
|
|
11506
|
+
if (!hasDateInMonth) return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
|
|
11094
11507
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11095
11508
|
Row,
|
|
11096
11509
|
{
|
|
@@ -11106,6 +11519,28 @@ const MonthNavigationButton = styled.button`
|
|
|
11106
11519
|
background-color: transparent;
|
|
11107
11520
|
border: none;
|
|
11108
11521
|
cursor: pointer;
|
|
11522
|
+
border-radius: 50%;
|
|
11523
|
+
width: 32px;
|
|
11524
|
+
height: 32px;
|
|
11525
|
+
padding: 0;
|
|
11526
|
+
display: flex;
|
|
11527
|
+
align-items: center;
|
|
11528
|
+
justify-content: center;
|
|
11529
|
+
transition: background-color 0.2s ease, transform 0.15s ease;
|
|
11530
|
+
|
|
11531
|
+
&:hover:not(:disabled) {
|
|
11532
|
+
background-color: rgba(0, 0, 0, 0.06);
|
|
11533
|
+
transform: scale(1.1);
|
|
11534
|
+
}
|
|
11535
|
+
|
|
11536
|
+
&:active:not(:disabled) {
|
|
11537
|
+
transform: scale(0.95);
|
|
11538
|
+
}
|
|
11539
|
+
|
|
11540
|
+
&:disabled {
|
|
11541
|
+
opacity: 0.25;
|
|
11542
|
+
cursor: default;
|
|
11543
|
+
}
|
|
11109
11544
|
`;
|
|
11110
11545
|
const TypographyCaption = styled(Typography)`
|
|
11111
11546
|
color: #686d6b;
|
|
@@ -11114,39 +11549,93 @@ const TypographyCaption = styled(Typography)`
|
|
|
11114
11549
|
letter-spacing: 0.4px;
|
|
11115
11550
|
`;
|
|
11116
11551
|
const StyledDateSelect = styled.div`
|
|
11117
|
-
width:
|
|
11552
|
+
width: 420px;
|
|
11118
11553
|
max-width: 100%;
|
|
11119
|
-
margin: ${(props) => props.theme.spacing(2, "auto", 3, "auto")};
|
|
11120
11554
|
margin: 0 auto;
|
|
11121
11555
|
padding: 0;
|
|
11556
|
+
|
|
11122
11557
|
.rdp {
|
|
11123
|
-
--rdp-accent-color: ${({ theme }) => theme.palette.
|
|
11124
|
-
--rdp-background-color:
|
|
11125
|
-
--rdp-cell-size:
|
|
11558
|
+
--rdp-accent-color: ${({ theme }) => theme.palette.primary.main};
|
|
11559
|
+
--rdp-background-color: rgba(249, 85, 36, 0.1);
|
|
11560
|
+
--rdp-cell-size: 36px;
|
|
11126
11561
|
|
|
11127
11562
|
background-color: white;
|
|
11128
|
-
border-radius:
|
|
11129
|
-
padding: ${({ theme }) => theme.spacing(1
|
|
11563
|
+
border-radius: 20px;
|
|
11564
|
+
padding: ${({ theme }) => theme.spacing(1)}px;
|
|
11130
11565
|
margin: 0 auto;
|
|
11566
|
+
box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.08);
|
|
11567
|
+
width: fit-content;
|
|
11568
|
+
max-width: 100%;
|
|
11569
|
+
box-sizing: border-box;
|
|
11570
|
+
overflow: hidden;
|
|
11571
|
+
|
|
11572
|
+
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
11573
|
+
--rdp-cell-size: 44px;
|
|
11574
|
+
padding: ${({ theme }) => theme.spacing(3)}px;
|
|
11575
|
+
}
|
|
11576
|
+
}
|
|
11577
|
+
|
|
11578
|
+
.rdp-table {
|
|
11579
|
+
width: 100%;
|
|
11580
|
+
table-layout: fixed;
|
|
11581
|
+
border-collapse: collapse;
|
|
11582
|
+
|
|
11583
|
+
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
11584
|
+
width: auto;
|
|
11585
|
+
table-layout: auto;
|
|
11586
|
+
}
|
|
11131
11587
|
}
|
|
11132
11588
|
|
|
11133
11589
|
.rdp-head_cell {
|
|
11134
|
-
font-size:
|
|
11135
|
-
font-weight:
|
|
11136
|
-
|
|
11137
|
-
|
|
11590
|
+
font-size: 12px;
|
|
11591
|
+
font-weight: 600;
|
|
11592
|
+
color: #9ca3a1;
|
|
11593
|
+
text-transform: uppercase;
|
|
11594
|
+
letter-spacing: 0.5px;
|
|
11595
|
+
padding-bottom: ${({ theme }) => theme.spacing(1)}px;
|
|
11596
|
+
padding-top: ${({ theme }) => theme.spacing(1.5)}px;
|
|
11138
11597
|
}
|
|
11139
11598
|
|
|
11140
11599
|
.rdp-button {
|
|
11141
|
-
|
|
11600
|
+
border-radius: 50%;
|
|
11601
|
+
transition: all 0.2s ease;
|
|
11602
|
+
font-weight: 400;
|
|
11603
|
+
font-size: 14px;
|
|
11604
|
+
max-width: 100%;
|
|
11605
|
+
|
|
11606
|
+
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
11607
|
+
max-width: none;
|
|
11608
|
+
}
|
|
11609
|
+
}
|
|
11610
|
+
|
|
11611
|
+
.rdp-button:hover:not([disabled]):not(.rdp-day_selected) {
|
|
11612
|
+
background-color: rgba(249, 85, 36, 0.08);
|
|
11613
|
+
color: #1a1a1a;
|
|
11614
|
+
}
|
|
11615
|
+
|
|
11616
|
+
.rdp-day_selected,
|
|
11617
|
+
.rdp-day_selected:hover,
|
|
11618
|
+
.rdp-day_selected:focus-visible {
|
|
11619
|
+
font-weight: 600;
|
|
11620
|
+
color: white;
|
|
11621
|
+
}
|
|
11622
|
+
|
|
11623
|
+
.rdp-day_selected:not(.rdp-day_outside) {
|
|
11624
|
+
box-shadow: 0 2px 8px rgba(249, 85, 36, 0.3);
|
|
11142
11625
|
}
|
|
11143
11626
|
|
|
11144
11627
|
.rdp-day_outside {
|
|
11145
|
-
opacity: 0.
|
|
11628
|
+
opacity: 0.35;
|
|
11629
|
+
}
|
|
11630
|
+
|
|
11631
|
+
.rdp-day_today:not(.rdp-day_selected) {
|
|
11632
|
+
font-weight: 700;
|
|
11633
|
+
color: ${({ theme }) => theme.palette.primary.main};
|
|
11634
|
+
position: relative;
|
|
11146
11635
|
}
|
|
11147
11636
|
`;
|
|
11148
11637
|
const DateSelectWrapper = styled.div`
|
|
11149
|
-
width:
|
|
11638
|
+
width: 100%;
|
|
11150
11639
|
margin: 0 auto;
|
|
11151
11640
|
`;
|
|
11152
11641
|
const QuestionMark = (props) => {
|
|
@@ -11169,98 +11658,6 @@ const QuestionMark = (props) => {
|
|
|
11169
11658
|
}
|
|
11170
11659
|
);
|
|
11171
11660
|
};
|
|
11172
|
-
const TilesWrapper = styled(Box)`
|
|
11173
|
-
display: flex;
|
|
11174
|
-
flex-direction: row;
|
|
11175
|
-
height: auto;
|
|
11176
|
-
gap: ${({ theme }) => theme.spacing(1)}px;
|
|
11177
|
-
flex-wrap: wrap;
|
|
11178
|
-
justify-content: center;
|
|
11179
|
-
|
|
11180
|
-
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
11181
|
-
width: 930px;
|
|
11182
|
-
flex-direction: row;
|
|
11183
|
-
height: auto;
|
|
11184
|
-
gap: ${({ theme, $size }) => $size === "sm" ? theme.spacing(1) : theme.spacing(2)}px;
|
|
11185
|
-
flex-wrap: wrap;
|
|
11186
|
-
justify-content: center;
|
|
11187
|
-
}
|
|
11188
|
-
`;
|
|
11189
|
-
const StyledTileTypography = styled(Typography)`
|
|
11190
|
-
line-height: 172.5%;
|
|
11191
|
-
`;
|
|
11192
|
-
const TileTypography = (props) => {
|
|
11193
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11194
|
-
StyledTileTypography,
|
|
11195
|
-
{
|
|
11196
|
-
fontSize: { xs: 12, sm: 16 },
|
|
11197
|
-
fontWeight: 600,
|
|
11198
|
-
...props
|
|
11199
|
-
}
|
|
11200
|
-
);
|
|
11201
|
-
};
|
|
11202
|
-
const Tile = styled.div`
|
|
11203
|
-
${({ theme, $variant }) => $variant === "primary" && css$1`
|
|
11204
|
-
--active-background: #fff9f4;
|
|
11205
|
-
--active-outline: 3px solid ${theme.palette.primary.main};
|
|
11206
|
-
--active-text-color: rgba(0, 0, 0, 0.7);
|
|
11207
|
-
`}
|
|
11208
|
-
|
|
11209
|
-
${({ theme, $variant }) => $variant === "secondary" && css$1`
|
|
11210
|
-
--active-background: white;
|
|
11211
|
-
--active-outline: 2px solid ${theme.palette.secondary[500]};
|
|
11212
|
-
--active-text-color: ${theme.palette.secondary[500]};
|
|
11213
|
-
`}
|
|
11214
|
-
|
|
11215
|
-
--active-shadow: 0px 6px 25px 0px rgba(0, 0, 0, 0.15);
|
|
11216
|
-
|
|
11217
|
-
cursor: pointer;
|
|
11218
|
-
background: #fff;
|
|
11219
|
-
display: flex;
|
|
11220
|
-
overflow: hidden;
|
|
11221
|
-
align-items: center;
|
|
11222
|
-
border-radius: 20px;
|
|
11223
|
-
box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.1);
|
|
11224
|
-
height: 110px;
|
|
11225
|
-
width: 110px;
|
|
11226
|
-
justify-content: center;
|
|
11227
|
-
flex-direction: column;
|
|
11228
|
-
gap: ${({ theme }) => theme.spacing(2)}px;
|
|
11229
|
-
padding: ${({ theme }) => theme.spacing(3, 1, 2, 1)};
|
|
11230
|
-
|
|
11231
|
-
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
11232
|
-
justify-content: center;
|
|
11233
|
-
flex-direction: column;
|
|
11234
|
-
gap: ${({ theme }) => theme.spacing(1)}px;
|
|
11235
|
-
width: 154px;
|
|
11236
|
-
height: ${({ $height }) => $height || "166px"};
|
|
11237
|
-
|
|
11238
|
-
padding: ${({ theme }) => theme.spacing(3, 1, 2, 1)};
|
|
11239
|
-
}
|
|
11240
|
-
|
|
11241
|
-
outline: ${({ $selected }) => $selected ? "var(--active-outline)" : "none"};
|
|
11242
|
-
box-shadow: ${({ $selected }) => $selected ? "var(--active-shadow)" : "0px 4px 14px 0px rgba(0, 0, 0, 0.1)"};
|
|
11243
|
-
color: ${({ $selected }) => $selected ? "var(--active-text-color)" : "rgba(0, 0, 0, 0.7)"};
|
|
11244
|
-
background-color: ${({ $selected }) => $selected ? "var(--active-background)" : "white"};
|
|
11245
|
-
|
|
11246
|
-
transition: all 0.1s ease;
|
|
11247
|
-
|
|
11248
|
-
@media (hover: hover) {
|
|
11249
|
-
&:hover {
|
|
11250
|
-
outline: var(--active-outline);
|
|
11251
|
-
box-shadow: var(--active-shadow);
|
|
11252
|
-
color: var(--active-text-color);
|
|
11253
|
-
}
|
|
11254
|
-
}
|
|
11255
|
-
|
|
11256
|
-
:focus,
|
|
11257
|
-
:active {
|
|
11258
|
-
outline: var(--active-outline);
|
|
11259
|
-
box-shadow: var(--active-shadow);
|
|
11260
|
-
color: var(--active-text-color);
|
|
11261
|
-
background-color: var(--active-background);
|
|
11262
|
-
}
|
|
11263
|
-
`;
|
|
11264
11661
|
const DeliveryFrequencyTiles = ({
|
|
11265
11662
|
onSelect,
|
|
11266
11663
|
selected,
|
|
@@ -11319,9 +11716,9 @@ const IconWrapper$3 = styled(Box)`
|
|
|
11319
11716
|
`;
|
|
11320
11717
|
const FrequencyText = styled.span`
|
|
11321
11718
|
font-weight: 400;
|
|
11322
|
-
color:
|
|
11719
|
+
color: ${({ theme }) => theme.palette.primary.main};
|
|
11323
11720
|
`;
|
|
11324
|
-
const ICON_SIZE_IN_PX =
|
|
11721
|
+
const ICON_SIZE_IN_PX = 36;
|
|
11325
11722
|
SCHEMA_STEPS.dietary_restrictions;
|
|
11326
11723
|
const DietaryStepper = ({ question, autoFocus }) => {
|
|
11327
11724
|
const { localizedAttributeName } = useLocalizedFieldName();
|
|
@@ -11348,8 +11745,6 @@ const DietaryStepper = ({ question, autoFocus }) => {
|
|
|
11348
11745
|
Box,
|
|
11349
11746
|
{
|
|
11350
11747
|
display: "flex",
|
|
11351
|
-
ml: { xs: `-${ICON_SIZE_IN_PX}px`, sm: 0 },
|
|
11352
|
-
justifySelf: { xs: "center", sm: "start" },
|
|
11353
11748
|
alignItems: "center",
|
|
11354
11749
|
justifyContent: { xs: "center", sm: "start" },
|
|
11355
11750
|
children: [
|
|
@@ -11357,9 +11752,7 @@ const DietaryStepper = ({ question, autoFocus }) => {
|
|
|
11357
11752
|
StyledImg$1,
|
|
11358
11753
|
{
|
|
11359
11754
|
alt: "",
|
|
11360
|
-
src: localizedOptions == null ? void 0 : localizedOptions.image
|
|
11361
|
-
width: ICON_SIZE_IN_PX,
|
|
11362
|
-
height: ICON_SIZE_IN_PX
|
|
11755
|
+
src: localizedOptions == null ? void 0 : localizedOptions.image
|
|
11363
11756
|
}
|
|
11364
11757
|
),
|
|
11365
11758
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "body1", pl: 1, children: localizedOptions.label })
|
|
@@ -11379,18 +11772,21 @@ const DietaryStepper = ({ question, autoFocus }) => {
|
|
|
11379
11772
|
] }) });
|
|
11380
11773
|
};
|
|
11381
11774
|
const StyledImg$1 = styled.img`
|
|
11382
|
-
|
|
11775
|
+
width: ${ICON_SIZE_IN_PX}px;
|
|
11776
|
+
height: ${ICON_SIZE_IN_PX}px;
|
|
11777
|
+
object-fit: contain;
|
|
11778
|
+
flex-shrink: 0;
|
|
11383
11779
|
`;
|
|
11384
11780
|
const GridWrapper$1 = styled.div`
|
|
11385
11781
|
display: grid;
|
|
11386
|
-
|
|
11387
|
-
grid-template-columns: 1fr
|
|
11388
|
-
justify-content: center;
|
|
11782
|
+
align-items: center;
|
|
11783
|
+
grid-template-columns: 1fr auto;
|
|
11389
11784
|
gap: ${({ theme }) => theme.spacing(2)}px;
|
|
11390
11785
|
|
|
11391
11786
|
${({ theme }) => theme.breakpoints.down("xs")} {
|
|
11392
11787
|
grid-template-columns: 1fr;
|
|
11393
|
-
|
|
11788
|
+
justify-items: center;
|
|
11789
|
+
gap: ${({ theme }) => theme.spacing(1)}px;
|
|
11394
11790
|
}
|
|
11395
11791
|
`;
|
|
11396
11792
|
function DietaryTotal({ count }) {
|
|
@@ -11709,50 +12105,51 @@ const ServiceTypeTiles = ({
|
|
|
11709
12105
|
};
|
|
11710
12106
|
const ServiceTile = styled(Tile)`
|
|
11711
12107
|
text-align: center;
|
|
11712
|
-
height:
|
|
11713
|
-
width:
|
|
12108
|
+
height: 150px;
|
|
12109
|
+
width: 130px;
|
|
11714
12110
|
overflow: visible;
|
|
11715
12111
|
gap: ${({ theme }) => theme.spacing(0.5)}px;
|
|
11716
12112
|
|
|
11717
12113
|
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
11718
|
-
height:
|
|
11719
|
-
width:
|
|
12114
|
+
height: 200px;
|
|
12115
|
+
width: 200px;
|
|
11720
12116
|
gap: ${({ theme }) => theme.spacing(1)}px;
|
|
11721
12117
|
}
|
|
11722
12118
|
`;
|
|
11723
12119
|
const IconWrapper$2 = styled(Box)`
|
|
11724
|
-
min-width:
|
|
11725
|
-
height:
|
|
12120
|
+
min-width: 32px;
|
|
12121
|
+
height: 32px;
|
|
11726
12122
|
display: grid;
|
|
11727
12123
|
place-content: center;
|
|
11728
|
-
font-size:
|
|
12124
|
+
font-size: 28px;
|
|
11729
12125
|
|
|
11730
12126
|
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
11731
|
-
height:
|
|
11732
|
-
font-size:
|
|
12127
|
+
height: 40px;
|
|
12128
|
+
font-size: 36px;
|
|
11733
12129
|
}
|
|
11734
12130
|
`;
|
|
11735
12131
|
const ServiceTileLabel = styled(Typography)`
|
|
11736
|
-
font-size:
|
|
12132
|
+
font-size: 11px;
|
|
11737
12133
|
font-weight: 600;
|
|
11738
12134
|
line-height: 1.3;
|
|
11739
12135
|
|
|
11740
12136
|
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
11741
|
-
font-size:
|
|
12137
|
+
font-size: 15px;
|
|
11742
12138
|
}
|
|
11743
12139
|
`;
|
|
11744
12140
|
const SubtitleText = styled(Typography)`
|
|
11745
12141
|
font-size: 9px;
|
|
11746
12142
|
color: rgba(0, 0, 0, 0.5);
|
|
11747
12143
|
text-align: center;
|
|
11748
|
-
line-height: 1.
|
|
12144
|
+
line-height: 1.4;
|
|
12145
|
+
max-width: 160px;
|
|
11749
12146
|
|
|
11750
12147
|
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
11751
|
-
font-size:
|
|
12148
|
+
font-size: 12px;
|
|
11752
12149
|
}
|
|
11753
12150
|
`;
|
|
11754
|
-
const ICON_BASE_PATH = "/artifacts/
|
|
11755
|
-
const getIconUrl = (name) => getAssetUrl(`${ICON_BASE_PATH}/${name}.
|
|
12151
|
+
const ICON_BASE_PATH = "/artifacts/icons/catering_category";
|
|
12152
|
+
const getIconUrl = (name) => getAssetUrl(`${ICON_BASE_PATH}/${name}.svg`);
|
|
11756
12153
|
const DEFAULT_IMAGE_SIZE = {
|
|
11757
12154
|
SM: 54,
|
|
11758
12155
|
MD: 84
|
|
@@ -11799,6 +12196,7 @@ const CateringCategoryTiles = ({
|
|
|
11799
12196
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
11800
12197
|
Tile,
|
|
11801
12198
|
{
|
|
12199
|
+
id: "tile__catering_category--other",
|
|
11802
12200
|
$variant: variant,
|
|
11803
12201
|
onClick: (e2) => {
|
|
11804
12202
|
e2.currentTarget.blur();
|
|
@@ -11823,7 +12221,7 @@ const CateringCategoryTiles = ({
|
|
|
11823
12221
|
] });
|
|
11824
12222
|
};
|
|
11825
12223
|
const StyledImg = styled.img`
|
|
11826
|
-
object-fit:
|
|
12224
|
+
object-fit: contain;
|
|
11827
12225
|
`;
|
|
11828
12226
|
const ImageWrapper = styled(Box)`
|
|
11829
12227
|
--wrapperSize: ${IMAGE_WRAPPER_SIZE.SM}px;
|
|
@@ -11857,26 +12255,14 @@ function useCateringCategories(items) {
|
|
|
11857
12255
|
},
|
|
11858
12256
|
{
|
|
11859
12257
|
id: "street_food",
|
|
11860
|
-
src: getIconUrl("
|
|
11861
|
-
text: t2("occasion.street_food")
|
|
11862
|
-
scale: 1.15
|
|
12258
|
+
src: getIconUrl("street_food"),
|
|
12259
|
+
text: t2("occasion.street_food")
|
|
11863
12260
|
},
|
|
11864
12261
|
{
|
|
11865
12262
|
id: "business_lunch",
|
|
11866
|
-
src: getIconUrl("
|
|
12263
|
+
src: getIconUrl("business_lunch"),
|
|
11867
12264
|
text: t2("occasion.business_lunch")
|
|
11868
12265
|
},
|
|
11869
|
-
{
|
|
11870
|
-
id: "christmas",
|
|
11871
|
-
src: getIconUrl("christmas"),
|
|
11872
|
-
text: t2("occasion.christmas"),
|
|
11873
|
-
scale: 1.1
|
|
11874
|
-
},
|
|
11875
|
-
{
|
|
11876
|
-
id: "bbq",
|
|
11877
|
-
src: getIconUrl("bbq"),
|
|
11878
|
-
text: t2("occasion.bbq")
|
|
11879
|
-
},
|
|
11880
12266
|
{
|
|
11881
12267
|
id: "breakfast",
|
|
11882
12268
|
src: getIconUrl("breakfast"),
|
|
@@ -11884,12 +12270,12 @@ function useCateringCategories(items) {
|
|
|
11884
12270
|
},
|
|
11885
12271
|
{
|
|
11886
12272
|
id: "cakes_and_sweets",
|
|
11887
|
-
src: getIconUrl("
|
|
12273
|
+
src: getIconUrl("cakes_and_sweets"),
|
|
11888
12274
|
text: t2("occasion.cakes_and_sweets")
|
|
11889
12275
|
},
|
|
11890
12276
|
{
|
|
11891
12277
|
id: "fine_dining",
|
|
11892
|
-
src: getIconUrl("
|
|
12278
|
+
src: getIconUrl("fine_dining"),
|
|
11893
12279
|
text: t2("occasion.fine_dining_short")
|
|
11894
12280
|
},
|
|
11895
12281
|
{
|
|
@@ -11898,7 +12284,7 @@ function useCateringCategories(items) {
|
|
|
11898
12284
|
text: t2("occasion.drinks_short")
|
|
11899
12285
|
}
|
|
11900
12286
|
];
|
|
11901
|
-
const preFilteredCategories = allCategories
|
|
12287
|
+
const preFilteredCategories = allCategories;
|
|
11902
12288
|
if (items) {
|
|
11903
12289
|
return preFilteredCategories.filter(
|
|
11904
12290
|
(category) => items.includes(category.id)
|
|
@@ -11996,6 +12382,7 @@ const defaultStepTitleMapping = {
|
|
|
11996
12382
|
team_size: "qualification:embeddedFunnel.teamSize.title",
|
|
11997
12383
|
delivery_frequency: "qualification:embeddedFunnel.deliveryFrequency.title",
|
|
11998
12384
|
people_count: "qualification:embeddedFunnel.peopleCount.title",
|
|
12385
|
+
budget_range: "qualification:embeddedFunnel.budgetRange.title",
|
|
11999
12386
|
contact_form: "qualification:embeddedFunnel.contactForm.title"
|
|
12000
12387
|
};
|
|
12001
12388
|
const EmbeddedQuestion = ({
|
|
@@ -12005,7 +12392,8 @@ const EmbeddedQuestion = ({
|
|
|
12005
12392
|
renderTitle,
|
|
12006
12393
|
ratings,
|
|
12007
12394
|
titleTranslationKeys = defaultStepTitleMapping,
|
|
12008
|
-
LayoutComponent = EmbeddedQuestionLayout
|
|
12395
|
+
LayoutComponent = EmbeddedQuestionLayout,
|
|
12396
|
+
mode = "embedded"
|
|
12009
12397
|
}) => {
|
|
12010
12398
|
var _a2, _b, _c, _d;
|
|
12011
12399
|
const { t: t2 } = useTranslation();
|
|
@@ -12015,12 +12403,14 @@ const EmbeddedQuestion = ({
|
|
|
12015
12403
|
(title2) => renderTitle ? renderTitle(title2) : title2,
|
|
12016
12404
|
[]
|
|
12017
12405
|
);
|
|
12018
|
-
const
|
|
12406
|
+
const serviceType = answerOf("service_type");
|
|
12407
|
+
const title = step2.id === "city" && serviceType ? t2(`qualification:embeddedFunnel.city.title_${serviceType}`, t2(titleTranslationKeys[step2.id])) : t2(titleTranslationKeys[step2.id]);
|
|
12019
12408
|
switch (step2.id) {
|
|
12020
12409
|
case steps$2.city.id:
|
|
12021
12410
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12022
12411
|
LayoutComponent,
|
|
12023
12412
|
{
|
|
12413
|
+
mode,
|
|
12024
12414
|
title: getTitleContent(title),
|
|
12025
12415
|
ratings,
|
|
12026
12416
|
content: /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { size: "sm", disableGutters: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -12042,6 +12432,7 @@ const EmbeddedQuestion = ({
|
|
|
12042
12432
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12043
12433
|
LayoutComponent,
|
|
12044
12434
|
{
|
|
12435
|
+
mode,
|
|
12045
12436
|
wrapper: ((_a2 = slides == null ? void 0 : slides.category) == null ? void 0 : _a2.whiteWrapper) ? "white" : "transparent",
|
|
12046
12437
|
title: getTitleContent(title),
|
|
12047
12438
|
ratings,
|
|
@@ -12067,6 +12458,7 @@ const EmbeddedQuestion = ({
|
|
|
12067
12458
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12068
12459
|
LayoutComponent,
|
|
12069
12460
|
{
|
|
12461
|
+
mode,
|
|
12070
12462
|
wrapper: ((_b = slides == null ? void 0 : slides.dietaryRestriction) == null ? void 0 : _b.whiteWrapper) ? "white" : "transparent",
|
|
12071
12463
|
ratings,
|
|
12072
12464
|
title: getTitleContent(title),
|
|
@@ -12081,6 +12473,7 @@ const EmbeddedQuestion = ({
|
|
|
12081
12473
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12082
12474
|
LayoutComponent,
|
|
12083
12475
|
{
|
|
12476
|
+
mode,
|
|
12084
12477
|
wrapper: ((_c = slides == null ? void 0 : slides.dateAndLead) == null ? void 0 : _c.whiteWrapper) ? "white" : "transparent",
|
|
12085
12478
|
ratings,
|
|
12086
12479
|
title: getTitleContent(title),
|
|
@@ -12093,6 +12486,7 @@ const EmbeddedQuestion = ({
|
|
|
12093
12486
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12094
12487
|
LayoutComponent,
|
|
12095
12488
|
{
|
|
12489
|
+
mode,
|
|
12096
12490
|
wrapper: ((_d = slides == null ? void 0 : slides.budgetAndPeople) == null ? void 0 : _d.whiteWrapper) ? "white" : "transparent",
|
|
12097
12491
|
ratings,
|
|
12098
12492
|
title: getTitleContent(title),
|
|
@@ -12104,6 +12498,7 @@ const EmbeddedQuestion = ({
|
|
|
12104
12498
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12105
12499
|
LayoutComponent,
|
|
12106
12500
|
{
|
|
12501
|
+
mode,
|
|
12107
12502
|
title: getTitleContent(title),
|
|
12108
12503
|
ratings,
|
|
12109
12504
|
content: /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { size: "sm", disableGutters: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -12111,8 +12506,8 @@ const EmbeddedQuestion = ({
|
|
|
12111
12506
|
{
|
|
12112
12507
|
variant: highlightColor,
|
|
12113
12508
|
selected: answerOf("service_type"),
|
|
12114
|
-
onSelect: (
|
|
12115
|
-
actions.answerQuestion("service_type",
|
|
12509
|
+
onSelect: (serviceType2) => {
|
|
12510
|
+
actions.answerQuestion("service_type", serviceType2);
|
|
12116
12511
|
actions.nextStep();
|
|
12117
12512
|
}
|
|
12118
12513
|
}
|
|
@@ -12124,6 +12519,7 @@ const EmbeddedQuestion = ({
|
|
|
12124
12519
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12125
12520
|
LayoutComponent,
|
|
12126
12521
|
{
|
|
12522
|
+
mode,
|
|
12127
12523
|
title: getTitleContent(title),
|
|
12128
12524
|
ratings,
|
|
12129
12525
|
content: /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { size: MAX_WIDTH_OF_WHITE_WRAPPER, children: /* @__PURE__ */ jsxRuntimeExports.jsx(WhiteWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { py: 4, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -12141,19 +12537,23 @@ const EmbeddedQuestion = ({
|
|
|
12141
12537
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12142
12538
|
LayoutComponent,
|
|
12143
12539
|
{
|
|
12540
|
+
mode,
|
|
12144
12541
|
title: getTitleContent(title),
|
|
12145
12542
|
ratings,
|
|
12146
|
-
content: /* @__PURE__ */ jsxRuntimeExports.
|
|
12147
|
-
|
|
12148
|
-
|
|
12149
|
-
|
|
12150
|
-
|
|
12151
|
-
|
|
12152
|
-
|
|
12153
|
-
|
|
12543
|
+
content: /* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { size: "sm", disableGutters: true, children: [
|
|
12544
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12545
|
+
DeliveryFrequencyTiles,
|
|
12546
|
+
{
|
|
12547
|
+
variant: highlightColor,
|
|
12548
|
+
selected: answerOf("delivery_frequency"),
|
|
12549
|
+
onSelect: (frequency) => {
|
|
12550
|
+
actions.answerQuestion("delivery_frequency", frequency);
|
|
12551
|
+
actions.nextStep();
|
|
12552
|
+
}
|
|
12154
12553
|
}
|
|
12155
|
-
|
|
12156
|
-
|
|
12554
|
+
),
|
|
12555
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(BusinessCustomerToggle, {})
|
|
12556
|
+
] }),
|
|
12157
12557
|
side: selectedMenu && /* @__PURE__ */ jsxRuntimeExports.jsx(SelectedMenuCard, { ...selectedMenu })
|
|
12158
12558
|
}
|
|
12159
12559
|
);
|
|
@@ -12161,6 +12561,7 @@ const EmbeddedQuestion = ({
|
|
|
12161
12561
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12162
12562
|
LayoutComponent,
|
|
12163
12563
|
{
|
|
12564
|
+
mode,
|
|
12164
12565
|
title: getTitleContent(title),
|
|
12165
12566
|
ratings,
|
|
12166
12567
|
content: /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { size: MAX_WIDTH_OF_WHITE_WRAPPER, children: /* @__PURE__ */ jsxRuntimeExports.jsx(WhiteWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { py: 4, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -12174,6 +12575,30 @@ const EmbeddedQuestion = ({
|
|
|
12174
12575
|
side: selectedMenu && /* @__PURE__ */ jsxRuntimeExports.jsx(SelectedMenuCard, { ...selectedMenu })
|
|
12175
12576
|
}
|
|
12176
12577
|
);
|
|
12578
|
+
case steps$2.budgetRange.id:
|
|
12579
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12580
|
+
LayoutComponent,
|
|
12581
|
+
{
|
|
12582
|
+
mode,
|
|
12583
|
+
title: getTitleContent(title),
|
|
12584
|
+
ratings,
|
|
12585
|
+
content: /* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { size: "sm", disableGutters: true, children: [
|
|
12586
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12587
|
+
BudgetRangeTiles,
|
|
12588
|
+
{
|
|
12589
|
+
variant: highlightColor,
|
|
12590
|
+
selected: answerOf("budget_range"),
|
|
12591
|
+
onSelect: (range2) => {
|
|
12592
|
+
actions.answerQuestion("budget_range", range2);
|
|
12593
|
+
actions.nextStep();
|
|
12594
|
+
}
|
|
12595
|
+
}
|
|
12596
|
+
),
|
|
12597
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(BusinessCustomerToggle, {})
|
|
12598
|
+
] }),
|
|
12599
|
+
side: selectedMenu && /* @__PURE__ */ jsxRuntimeExports.jsx(SelectedMenuCard, { ...selectedMenu })
|
|
12600
|
+
}
|
|
12601
|
+
);
|
|
12177
12602
|
case steps$2.contactForm.id:
|
|
12178
12603
|
return null;
|
|
12179
12604
|
default: {
|
|
@@ -12185,9 +12610,13 @@ const EmbeddedQuestion = ({
|
|
|
12185
12610
|
const WhiteWrapper = styled.div`
|
|
12186
12611
|
background-color: white;
|
|
12187
12612
|
border-radius: 8px;
|
|
12188
|
-
padding: 1px
|
|
12613
|
+
padding: 1px 8px;
|
|
12189
12614
|
width: 100%;
|
|
12190
12615
|
color: black;
|
|
12616
|
+
|
|
12617
|
+
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
12618
|
+
padding: 1px 16px;
|
|
12619
|
+
}
|
|
12191
12620
|
`;
|
|
12192
12621
|
const BackgroundImage = ({
|
|
12193
12622
|
src,
|
|
@@ -12518,20 +12947,20 @@ var quoteREs = {
|
|
|
12518
12947
|
};
|
|
12519
12948
|
var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
12520
12949
|
var opts = options || {};
|
|
12521
|
-
if (has$
|
|
12950
|
+
if (has$3(opts, "quoteStyle") && !has$3(quotes, opts.quoteStyle)) {
|
|
12522
12951
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
12523
12952
|
}
|
|
12524
|
-
if (has$
|
|
12953
|
+
if (has$3(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
|
|
12525
12954
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
12526
12955
|
}
|
|
12527
|
-
var customInspect = has$
|
|
12956
|
+
var customInspect = has$3(opts, "customInspect") ? opts.customInspect : true;
|
|
12528
12957
|
if (typeof customInspect !== "boolean" && customInspect !== "symbol") {
|
|
12529
12958
|
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
12530
12959
|
}
|
|
12531
|
-
if (has$
|
|
12960
|
+
if (has$3(opts, "indent") && opts.indent !== null && opts.indent !== " " && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
|
|
12532
12961
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
12533
12962
|
}
|
|
12534
|
-
if (has$
|
|
12963
|
+
if (has$3(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") {
|
|
12535
12964
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
12536
12965
|
}
|
|
12537
12966
|
var numericSeparator = opts.numericSeparator;
|
|
@@ -12563,7 +12992,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
12563
12992
|
depth = 0;
|
|
12564
12993
|
}
|
|
12565
12994
|
if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
|
|
12566
|
-
return isArray$
|
|
12995
|
+
return isArray$2(obj) ? "[Array]" : "[Object]";
|
|
12567
12996
|
}
|
|
12568
12997
|
var indent = getIndent(opts, depth);
|
|
12569
12998
|
if (typeof seen === "undefined") {
|
|
@@ -12580,7 +13009,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
12580
13009
|
var newOpts = {
|
|
12581
13010
|
depth: opts.depth
|
|
12582
13011
|
};
|
|
12583
|
-
if (has$
|
|
13012
|
+
if (has$3(opts, "quoteStyle")) {
|
|
12584
13013
|
newOpts.quoteStyle = opts.quoteStyle;
|
|
12585
13014
|
}
|
|
12586
13015
|
return inspect_(value, newOpts, depth + 1, seen);
|
|
@@ -12609,7 +13038,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
12609
13038
|
s3 += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
|
|
12610
13039
|
return s3;
|
|
12611
13040
|
}
|
|
12612
|
-
if (isArray$
|
|
13041
|
+
if (isArray$2(obj)) {
|
|
12613
13042
|
if (obj.length === 0) {
|
|
12614
13043
|
return "[]";
|
|
12615
13044
|
}
|
|
@@ -12709,7 +13138,7 @@ function quote(s3) {
|
|
|
12709
13138
|
function canTrustToString(obj) {
|
|
12710
13139
|
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
12711
13140
|
}
|
|
12712
|
-
function isArray$
|
|
13141
|
+
function isArray$2(obj) {
|
|
12713
13142
|
return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
|
|
12714
13143
|
}
|
|
12715
13144
|
function isDate(obj) {
|
|
@@ -12761,7 +13190,7 @@ function isBigInt(obj) {
|
|
|
12761
13190
|
var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
|
|
12762
13191
|
return key in this;
|
|
12763
13192
|
};
|
|
12764
|
-
function has$
|
|
13193
|
+
function has$3(obj, key) {
|
|
12765
13194
|
return hasOwn$1.call(obj, key);
|
|
12766
13195
|
}
|
|
12767
13196
|
function toStr$1(obj) {
|
|
@@ -12937,12 +13366,12 @@ function indentedJoin(xs, indent) {
|
|
|
12937
13366
|
return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent.prev;
|
|
12938
13367
|
}
|
|
12939
13368
|
function arrObjKeys(obj, inspect2) {
|
|
12940
|
-
var isArr = isArray$
|
|
13369
|
+
var isArr = isArray$2(obj);
|
|
12941
13370
|
var xs = [];
|
|
12942
13371
|
if (isArr) {
|
|
12943
13372
|
xs.length = obj.length;
|
|
12944
13373
|
for (var i2 = 0; i2 < obj.length; i2++) {
|
|
12945
|
-
xs[i2] = has$
|
|
13374
|
+
xs[i2] = has$3(obj, i2) ? inspect2(obj[i2], obj) : "";
|
|
12946
13375
|
}
|
|
12947
13376
|
}
|
|
12948
13377
|
var syms = typeof gOPS === "function" ? gOPS(obj) : [];
|
|
@@ -12954,7 +13383,7 @@ function arrObjKeys(obj, inspect2) {
|
|
|
12954
13383
|
}
|
|
12955
13384
|
}
|
|
12956
13385
|
for (var key in obj) {
|
|
12957
|
-
if (!has$
|
|
13386
|
+
if (!has$3(obj, key)) {
|
|
12958
13387
|
continue;
|
|
12959
13388
|
}
|
|
12960
13389
|
if (isArr && String(Number(key)) === key && key < obj.length) {
|
|
@@ -13852,7 +14281,7 @@ var Format = {
|
|
|
13852
14281
|
RFC1738: "RFC1738",
|
|
13853
14282
|
RFC3986: "RFC3986"
|
|
13854
14283
|
};
|
|
13855
|
-
var formats$
|
|
14284
|
+
var formats$2 = {
|
|
13856
14285
|
"default": Format.RFC3986,
|
|
13857
14286
|
formatters: {
|
|
13858
14287
|
RFC1738: function(value) {
|
|
@@ -13862,16 +14291,30 @@ var formats$3 = {
|
|
|
13862
14291
|
return String(value);
|
|
13863
14292
|
}
|
|
13864
14293
|
},
|
|
13865
|
-
RFC1738: Format.RFC1738
|
|
13866
|
-
|
|
14294
|
+
RFC1738: Format.RFC1738
|
|
14295
|
+
};
|
|
14296
|
+
var formats$1 = formats$2;
|
|
14297
|
+
var getSideChannel$1 = sideChannel;
|
|
14298
|
+
var has$2 = Object.prototype.hasOwnProperty;
|
|
14299
|
+
var isArray$1 = Array.isArray;
|
|
14300
|
+
var overflowChannel = getSideChannel$1();
|
|
14301
|
+
var markOverflow = function markOverflow2(obj, maxIndex) {
|
|
14302
|
+
overflowChannel.set(obj, maxIndex);
|
|
14303
|
+
return obj;
|
|
14304
|
+
};
|
|
14305
|
+
var isOverflow = function isOverflow2(obj) {
|
|
14306
|
+
return overflowChannel.has(obj);
|
|
14307
|
+
};
|
|
14308
|
+
var getMaxIndex = function getMaxIndex2(obj) {
|
|
14309
|
+
return overflowChannel.get(obj);
|
|
14310
|
+
};
|
|
14311
|
+
var setMaxIndex = function setMaxIndex2(obj, maxIndex) {
|
|
14312
|
+
overflowChannel.set(obj, maxIndex);
|
|
13867
14313
|
};
|
|
13868
|
-
var formats$2 = formats$3;
|
|
13869
|
-
var has$3 = Object.prototype.hasOwnProperty;
|
|
13870
|
-
var isArray$2 = Array.isArray;
|
|
13871
14314
|
var hexTable = function() {
|
|
13872
14315
|
var array2 = [];
|
|
13873
14316
|
for (var i2 = 0; i2 < 256; ++i2) {
|
|
13874
|
-
array2.
|
|
14317
|
+
array2[array2.length] = "%" + ((i2 < 16 ? "0" : "") + i2.toString(16)).toUpperCase();
|
|
13875
14318
|
}
|
|
13876
14319
|
return array2;
|
|
13877
14320
|
}();
|
|
@@ -13879,11 +14322,11 @@ var compactQueue = function compactQueue2(queue) {
|
|
|
13879
14322
|
while (queue.length > 1) {
|
|
13880
14323
|
var item = queue.pop();
|
|
13881
14324
|
var obj = item.obj[item.prop];
|
|
13882
|
-
if (isArray$
|
|
14325
|
+
if (isArray$1(obj)) {
|
|
13883
14326
|
var compacted = [];
|
|
13884
14327
|
for (var j = 0; j < obj.length; ++j) {
|
|
13885
14328
|
if (typeof obj[j] !== "undefined") {
|
|
13886
|
-
compacted.
|
|
14329
|
+
compacted[compacted.length] = obj[j];
|
|
13887
14330
|
}
|
|
13888
14331
|
}
|
|
13889
14332
|
item.obj[item.prop] = compacted;
|
|
@@ -13904,10 +14347,20 @@ var merge = function merge2(target, source, options) {
|
|
|
13904
14347
|
return target;
|
|
13905
14348
|
}
|
|
13906
14349
|
if (typeof source !== "object" && typeof source !== "function") {
|
|
13907
|
-
if (isArray$
|
|
13908
|
-
target.
|
|
14350
|
+
if (isArray$1(target)) {
|
|
14351
|
+
var nextIndex = target.length;
|
|
14352
|
+
if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
|
|
14353
|
+
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
14354
|
+
}
|
|
14355
|
+
target[nextIndex] = source;
|
|
13909
14356
|
} else if (target && typeof target === "object") {
|
|
13910
|
-
if (
|
|
14357
|
+
if (isOverflow(target)) {
|
|
14358
|
+
var newIndex = getMaxIndex(target) + 1;
|
|
14359
|
+
target[newIndex] = source;
|
|
14360
|
+
setMaxIndex(target, newIndex);
|
|
14361
|
+
} else if (options && options.strictMerge) {
|
|
14362
|
+
return [target, source];
|
|
14363
|
+
} else if (options && (options.plainObjects || options.allowPrototypes) || !has$2.call(Object.prototype, source)) {
|
|
13911
14364
|
target[source] = true;
|
|
13912
14365
|
}
|
|
13913
14366
|
} else {
|
|
@@ -13916,20 +14369,33 @@ var merge = function merge2(target, source, options) {
|
|
|
13916
14369
|
return target;
|
|
13917
14370
|
}
|
|
13918
14371
|
if (!target || typeof target !== "object") {
|
|
13919
|
-
|
|
13920
|
-
|
|
13921
|
-
|
|
13922
|
-
|
|
13923
|
-
|
|
14372
|
+
if (isOverflow(source)) {
|
|
14373
|
+
var sourceKeys = Object.keys(source);
|
|
14374
|
+
var result = options && options.plainObjects ? { __proto__: null, 0: target } : { 0: target };
|
|
14375
|
+
for (var m3 = 0; m3 < sourceKeys.length; m3++) {
|
|
14376
|
+
var oldKey = parseInt(sourceKeys[m3], 10);
|
|
14377
|
+
result[oldKey + 1] = source[sourceKeys[m3]];
|
|
14378
|
+
}
|
|
14379
|
+
return markOverflow(result, getMaxIndex(source) + 1);
|
|
14380
|
+
}
|
|
14381
|
+
var combined = [target].concat(source);
|
|
14382
|
+
if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
|
|
14383
|
+
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
14384
|
+
}
|
|
14385
|
+
return combined;
|
|
13924
14386
|
}
|
|
13925
|
-
|
|
14387
|
+
var mergeTarget = target;
|
|
14388
|
+
if (isArray$1(target) && !isArray$1(source)) {
|
|
14389
|
+
mergeTarget = arrayToObject(target, options);
|
|
14390
|
+
}
|
|
14391
|
+
if (isArray$1(target) && isArray$1(source)) {
|
|
13926
14392
|
source.forEach(function(item, i2) {
|
|
13927
|
-
if (has$
|
|
14393
|
+
if (has$2.call(target, i2)) {
|
|
13928
14394
|
var targetItem = target[i2];
|
|
13929
14395
|
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
13930
14396
|
target[i2] = merge2(targetItem, item, options);
|
|
13931
14397
|
} else {
|
|
13932
|
-
target.
|
|
14398
|
+
target[target.length] = item;
|
|
13933
14399
|
}
|
|
13934
14400
|
} else {
|
|
13935
14401
|
target[i2] = item;
|
|
@@ -13939,11 +14405,20 @@ var merge = function merge2(target, source, options) {
|
|
|
13939
14405
|
}
|
|
13940
14406
|
return Object.keys(source).reduce(function(acc, key) {
|
|
13941
14407
|
var value = source[key];
|
|
13942
|
-
if (has$
|
|
14408
|
+
if (has$2.call(acc, key)) {
|
|
13943
14409
|
acc[key] = merge2(acc[key], value, options);
|
|
13944
14410
|
} else {
|
|
13945
14411
|
acc[key] = value;
|
|
13946
14412
|
}
|
|
14413
|
+
if (isOverflow(source) && !isOverflow(acc)) {
|
|
14414
|
+
markOverflow(acc, getMaxIndex(source));
|
|
14415
|
+
}
|
|
14416
|
+
if (isOverflow(acc)) {
|
|
14417
|
+
var keyNum = parseInt(key, 10);
|
|
14418
|
+
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
14419
|
+
setMaxIndex(acc, keyNum);
|
|
14420
|
+
}
|
|
14421
|
+
}
|
|
13947
14422
|
return acc;
|
|
13948
14423
|
}, mergeTarget);
|
|
13949
14424
|
};
|
|
@@ -13986,7 +14461,7 @@ var encode = function encode2(str, defaultEncoder, charset, kind, format2) {
|
|
|
13986
14461
|
var arr = [];
|
|
13987
14462
|
for (var i2 = 0; i2 < segment.length; ++i2) {
|
|
13988
14463
|
var c2 = segment.charCodeAt(i2);
|
|
13989
|
-
if (c2 === 45 || c2 === 46 || c2 === 95 || c2 === 126 || c2 >= 48 && c2 <= 57 || c2 >= 65 && c2 <= 90 || c2 >= 97 && c2 <= 122 || format2 === formats$
|
|
14464
|
+
if (c2 === 45 || c2 === 46 || c2 === 95 || c2 === 126 || c2 >= 48 && c2 <= 57 || c2 >= 65 && c2 <= 90 || c2 >= 97 && c2 <= 122 || format2 === formats$1.RFC1738 && (c2 === 40 || c2 === 41)) {
|
|
13990
14465
|
arr[arr.length] = segment.charAt(i2);
|
|
13991
14466
|
continue;
|
|
13992
14467
|
}
|
|
@@ -14021,8 +14496,8 @@ var compact = function compact2(value) {
|
|
|
14021
14496
|
var key = keys2[j];
|
|
14022
14497
|
var val = obj[key];
|
|
14023
14498
|
if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
|
|
14024
|
-
queue.
|
|
14025
|
-
refs.
|
|
14499
|
+
queue[queue.length] = { obj, prop: key };
|
|
14500
|
+
refs[refs.length] = val;
|
|
14026
14501
|
}
|
|
14027
14502
|
}
|
|
14028
14503
|
}
|
|
@@ -14038,20 +14513,30 @@ var isBuffer = function isBuffer2(obj) {
|
|
|
14038
14513
|
}
|
|
14039
14514
|
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
14040
14515
|
};
|
|
14041
|
-
var combine = function combine2(a3, b2) {
|
|
14042
|
-
|
|
14516
|
+
var combine = function combine2(a3, b2, arrayLimit, plainObjects) {
|
|
14517
|
+
if (isOverflow(a3)) {
|
|
14518
|
+
var newIndex = getMaxIndex(a3) + 1;
|
|
14519
|
+
a3[newIndex] = b2;
|
|
14520
|
+
setMaxIndex(a3, newIndex);
|
|
14521
|
+
return a3;
|
|
14522
|
+
}
|
|
14523
|
+
var result = [].concat(a3, b2);
|
|
14524
|
+
if (result.length > arrayLimit) {
|
|
14525
|
+
return markOverflow(arrayToObject(result, { plainObjects }), result.length - 1);
|
|
14526
|
+
}
|
|
14527
|
+
return result;
|
|
14043
14528
|
};
|
|
14044
14529
|
var maybeMap = function maybeMap2(val, fn) {
|
|
14045
|
-
if (isArray$
|
|
14530
|
+
if (isArray$1(val)) {
|
|
14046
14531
|
var mapped = [];
|
|
14047
14532
|
for (var i2 = 0; i2 < val.length; i2 += 1) {
|
|
14048
|
-
mapped.
|
|
14533
|
+
mapped[mapped.length] = fn(val[i2]);
|
|
14049
14534
|
}
|
|
14050
14535
|
return mapped;
|
|
14051
14536
|
}
|
|
14052
14537
|
return fn(val);
|
|
14053
14538
|
};
|
|
14054
|
-
var utils$
|
|
14539
|
+
var utils$1 = {
|
|
14055
14540
|
arrayToObject,
|
|
14056
14541
|
assign,
|
|
14057
14542
|
combine,
|
|
@@ -14059,14 +14544,16 @@ var utils$2 = {
|
|
|
14059
14544
|
decode,
|
|
14060
14545
|
encode,
|
|
14061
14546
|
isBuffer,
|
|
14547
|
+
isOverflow,
|
|
14062
14548
|
isRegExp,
|
|
14549
|
+
markOverflow,
|
|
14063
14550
|
maybeMap,
|
|
14064
14551
|
merge
|
|
14065
14552
|
};
|
|
14066
14553
|
var getSideChannel2 = sideChannel;
|
|
14067
|
-
var utils
|
|
14068
|
-
var formats
|
|
14069
|
-
var has$
|
|
14554
|
+
var utils = utils$1;
|
|
14555
|
+
var formats = formats$2;
|
|
14556
|
+
var has$1 = Object.prototype.hasOwnProperty;
|
|
14070
14557
|
var arrayPrefixGenerators = {
|
|
14071
14558
|
brackets: function brackets(prefix2) {
|
|
14072
14559
|
return prefix2 + "[]";
|
|
@@ -14079,14 +14566,14 @@ var arrayPrefixGenerators = {
|
|
|
14079
14566
|
return prefix2;
|
|
14080
14567
|
}
|
|
14081
14568
|
};
|
|
14082
|
-
var isArray
|
|
14569
|
+
var isArray = Array.isArray;
|
|
14083
14570
|
var push = Array.prototype.push;
|
|
14084
14571
|
var pushToArray = function(arr, valueOrArray) {
|
|
14085
|
-
push.apply(arr, isArray
|
|
14572
|
+
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
14086
14573
|
};
|
|
14087
14574
|
var toISO = Date.prototype.toISOString;
|
|
14088
|
-
var defaultFormat = formats
|
|
14089
|
-
var defaults
|
|
14575
|
+
var defaultFormat = formats["default"];
|
|
14576
|
+
var defaults = {
|
|
14090
14577
|
addQueryPrefix: false,
|
|
14091
14578
|
allowDots: false,
|
|
14092
14579
|
allowEmptyArrays: false,
|
|
@@ -14097,11 +14584,11 @@ var defaults$1 = {
|
|
|
14097
14584
|
delimiter: "&",
|
|
14098
14585
|
encode: true,
|
|
14099
14586
|
encodeDotInKeys: false,
|
|
14100
|
-
encoder: utils
|
|
14587
|
+
encoder: utils.encode,
|
|
14101
14588
|
encodeValuesOnly: false,
|
|
14102
14589
|
filter: void 0,
|
|
14103
14590
|
format: defaultFormat,
|
|
14104
|
-
formatter: formats
|
|
14591
|
+
formatter: formats.formatters[defaultFormat],
|
|
14105
14592
|
// deprecated
|
|
14106
14593
|
indices: false,
|
|
14107
14594
|
serializeDate: function serializeDate(date2) {
|
|
@@ -14137,8 +14624,8 @@ var stringify$1 = function stringify(object2, prefix2, generateArrayPrefix, comm
|
|
|
14137
14624
|
obj = filter(prefix2, obj);
|
|
14138
14625
|
} else if (obj instanceof Date) {
|
|
14139
14626
|
obj = serializeDate2(obj);
|
|
14140
|
-
} else if (generateArrayPrefix === "comma" && isArray
|
|
14141
|
-
obj = utils
|
|
14627
|
+
} else if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
14628
|
+
obj = utils.maybeMap(obj, function(value2) {
|
|
14142
14629
|
if (value2 instanceof Date) {
|
|
14143
14630
|
return serializeDate2(value2);
|
|
14144
14631
|
}
|
|
@@ -14147,14 +14634,14 @@ var stringify$1 = function stringify(object2, prefix2, generateArrayPrefix, comm
|
|
|
14147
14634
|
}
|
|
14148
14635
|
if (obj === null) {
|
|
14149
14636
|
if (strictNullHandling) {
|
|
14150
|
-
return encoder && !encodeValuesOnly ? encoder(prefix2, defaults
|
|
14637
|
+
return encoder && !encodeValuesOnly ? encoder(prefix2, defaults.encoder, charset, "key", format2) : prefix2;
|
|
14151
14638
|
}
|
|
14152
14639
|
obj = "";
|
|
14153
14640
|
}
|
|
14154
|
-
if (isNonNullishPrimitive(obj) || utils
|
|
14641
|
+
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
14155
14642
|
if (encoder) {
|
|
14156
|
-
var keyValue = encodeValuesOnly ? prefix2 : encoder(prefix2, defaults
|
|
14157
|
-
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults
|
|
14643
|
+
var keyValue = encodeValuesOnly ? prefix2 : encoder(prefix2, defaults.encoder, charset, "key", format2);
|
|
14644
|
+
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format2))];
|
|
14158
14645
|
}
|
|
14159
14646
|
return [formatter(prefix2) + "=" + formatter(String(obj))];
|
|
14160
14647
|
}
|
|
@@ -14163,20 +14650,20 @@ var stringify$1 = function stringify(object2, prefix2, generateArrayPrefix, comm
|
|
|
14163
14650
|
return values2;
|
|
14164
14651
|
}
|
|
14165
14652
|
var objKeys;
|
|
14166
|
-
if (generateArrayPrefix === "comma" && isArray
|
|
14653
|
+
if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
14167
14654
|
if (encodeValuesOnly && encoder) {
|
|
14168
|
-
obj = utils
|
|
14655
|
+
obj = utils.maybeMap(obj, encoder);
|
|
14169
14656
|
}
|
|
14170
14657
|
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
|
|
14171
|
-
} else if (isArray
|
|
14658
|
+
} else if (isArray(filter)) {
|
|
14172
14659
|
objKeys = filter;
|
|
14173
14660
|
} else {
|
|
14174
14661
|
var keys2 = Object.keys(obj);
|
|
14175
14662
|
objKeys = sort ? keys2.sort(sort) : keys2;
|
|
14176
14663
|
}
|
|
14177
14664
|
var encodedPrefix = encodeDotInKeys ? String(prefix2).replace(/\./g, "%2E") : String(prefix2);
|
|
14178
|
-
var adjustedPrefix = commaRoundTrip && isArray
|
|
14179
|
-
if (allowEmptyArrays && isArray
|
|
14665
|
+
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
14666
|
+
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
14180
14667
|
return adjustedPrefix + "[]";
|
|
14181
14668
|
}
|
|
14182
14669
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
@@ -14186,7 +14673,7 @@ var stringify$1 = function stringify(object2, prefix2, generateArrayPrefix, comm
|
|
|
14186
14673
|
continue;
|
|
14187
14674
|
}
|
|
14188
14675
|
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
|
|
14189
|
-
var keyPrefix = isArray
|
|
14676
|
+
var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
|
|
14190
14677
|
sideChannel2.set(object2, step2);
|
|
14191
14678
|
var valueSideChannel = getSideChannel2();
|
|
14192
14679
|
valueSideChannel.set(sentinel, sideChannel2);
|
|
@@ -14199,7 +14686,7 @@ var stringify$1 = function stringify(object2, prefix2, generateArrayPrefix, comm
|
|
|
14199
14686
|
strictNullHandling,
|
|
14200
14687
|
skipNulls,
|
|
14201
14688
|
encodeDotInKeys,
|
|
14202
|
-
generateArrayPrefix === "comma" && encodeValuesOnly && isArray
|
|
14689
|
+
generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder,
|
|
14203
14690
|
filter,
|
|
14204
14691
|
sort,
|
|
14205
14692
|
allowDots,
|
|
@@ -14215,7 +14702,7 @@ var stringify$1 = function stringify(object2, prefix2, generateArrayPrefix, comm
|
|
|
14215
14702
|
};
|
|
14216
14703
|
var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
|
|
14217
14704
|
if (!opts) {
|
|
14218
|
-
return defaults
|
|
14705
|
+
return defaults;
|
|
14219
14706
|
}
|
|
14220
14707
|
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
14221
14708
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
@@ -14226,20 +14713,20 @@ var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
|
|
|
14226
14713
|
if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
|
|
14227
14714
|
throw new TypeError("Encoder has to be a function.");
|
|
14228
14715
|
}
|
|
14229
|
-
var charset = opts.charset || defaults
|
|
14716
|
+
var charset = opts.charset || defaults.charset;
|
|
14230
14717
|
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
14231
14718
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
14232
14719
|
}
|
|
14233
|
-
var format2 = formats
|
|
14720
|
+
var format2 = formats["default"];
|
|
14234
14721
|
if (typeof opts.format !== "undefined") {
|
|
14235
|
-
if (!has$
|
|
14722
|
+
if (!has$1.call(formats.formatters, opts.format)) {
|
|
14236
14723
|
throw new TypeError("Unknown format option provided.");
|
|
14237
14724
|
}
|
|
14238
14725
|
format2 = opts.format;
|
|
14239
14726
|
}
|
|
14240
|
-
var formatter = formats
|
|
14241
|
-
var filter = defaults
|
|
14242
|
-
if (typeof opts.filter === "function" || isArray
|
|
14727
|
+
var formatter = formats.formatters[format2];
|
|
14728
|
+
var filter = defaults.filter;
|
|
14729
|
+
if (typeof opts.filter === "function" || isArray(opts.filter)) {
|
|
14243
14730
|
filter = opts.filter;
|
|
14244
14731
|
}
|
|
14245
14732
|
var arrayFormat;
|
|
@@ -14248,32 +14735,32 @@ var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
|
|
|
14248
14735
|
} else if ("indices" in opts) {
|
|
14249
14736
|
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
14250
14737
|
} else {
|
|
14251
|
-
arrayFormat = defaults
|
|
14738
|
+
arrayFormat = defaults.arrayFormat;
|
|
14252
14739
|
}
|
|
14253
14740
|
if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
14254
14741
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
14255
14742
|
}
|
|
14256
|
-
var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults
|
|
14743
|
+
var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
14257
14744
|
return {
|
|
14258
|
-
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults
|
|
14745
|
+
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
14259
14746
|
allowDots,
|
|
14260
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults
|
|
14747
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
14261
14748
|
arrayFormat,
|
|
14262
14749
|
charset,
|
|
14263
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults
|
|
14750
|
+
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
14264
14751
|
commaRoundTrip: !!opts.commaRoundTrip,
|
|
14265
|
-
delimiter: typeof opts.delimiter === "undefined" ? defaults
|
|
14266
|
-
encode: typeof opts.encode === "boolean" ? opts.encode : defaults
|
|
14267
|
-
encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults
|
|
14268
|
-
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults
|
|
14269
|
-
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults
|
|
14752
|
+
delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
|
|
14753
|
+
encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
|
|
14754
|
+
encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
14755
|
+
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
|
|
14756
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
14270
14757
|
filter,
|
|
14271
14758
|
format: format2,
|
|
14272
14759
|
formatter,
|
|
14273
|
-
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults
|
|
14274
|
-
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults
|
|
14760
|
+
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
|
|
14761
|
+
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls,
|
|
14275
14762
|
sort: typeof opts.sort === "function" ? opts.sort : null,
|
|
14276
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults
|
|
14763
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
|
|
14277
14764
|
};
|
|
14278
14765
|
};
|
|
14279
14766
|
var stringify_1 = function(object2, opts) {
|
|
@@ -14284,7 +14771,7 @@ var stringify_1 = function(object2, opts) {
|
|
|
14284
14771
|
if (typeof options.filter === "function") {
|
|
14285
14772
|
filter = options.filter;
|
|
14286
14773
|
obj = filter("", obj);
|
|
14287
|
-
} else if (isArray
|
|
14774
|
+
} else if (isArray(options.filter)) {
|
|
14288
14775
|
filter = options.filter;
|
|
14289
14776
|
objKeys = filter;
|
|
14290
14777
|
}
|
|
@@ -14339,256 +14826,8 @@ var stringify_1 = function(object2, opts) {
|
|
|
14339
14826
|
}
|
|
14340
14827
|
return joined.length > 0 ? prefix2 + joined : "";
|
|
14341
14828
|
};
|
|
14342
|
-
var utils = utils$2;
|
|
14343
|
-
var has$1 = Object.prototype.hasOwnProperty;
|
|
14344
|
-
var isArray = Array.isArray;
|
|
14345
|
-
var defaults = {
|
|
14346
|
-
allowDots: false,
|
|
14347
|
-
allowEmptyArrays: false,
|
|
14348
|
-
allowPrototypes: false,
|
|
14349
|
-
allowSparse: false,
|
|
14350
|
-
arrayLimit: 20,
|
|
14351
|
-
charset: "utf-8",
|
|
14352
|
-
charsetSentinel: false,
|
|
14353
|
-
comma: false,
|
|
14354
|
-
decodeDotInKeys: false,
|
|
14355
|
-
decoder: utils.decode,
|
|
14356
|
-
delimiter: "&",
|
|
14357
|
-
depth: 5,
|
|
14358
|
-
duplicates: "combine",
|
|
14359
|
-
ignoreQueryPrefix: false,
|
|
14360
|
-
interpretNumericEntities: false,
|
|
14361
|
-
parameterLimit: 1e3,
|
|
14362
|
-
parseArrays: true,
|
|
14363
|
-
plainObjects: false,
|
|
14364
|
-
strictDepth: false,
|
|
14365
|
-
strictNullHandling: false,
|
|
14366
|
-
throwOnLimitExceeded: false
|
|
14367
|
-
};
|
|
14368
|
-
var interpretNumericEntities = function(str) {
|
|
14369
|
-
return str.replace(/&#(\d+);/g, function($0, numberStr) {
|
|
14370
|
-
return String.fromCharCode(parseInt(numberStr, 10));
|
|
14371
|
-
});
|
|
14372
|
-
};
|
|
14373
|
-
var parseArrayValue = function(val, options, currentArrayLength) {
|
|
14374
|
-
if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
|
|
14375
|
-
return val.split(",");
|
|
14376
|
-
}
|
|
14377
|
-
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
14378
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
14379
|
-
}
|
|
14380
|
-
return val;
|
|
14381
|
-
};
|
|
14382
|
-
var isoSentinel = "utf8=%26%2310003%3B";
|
|
14383
|
-
var charsetSentinel = "utf8=%E2%9C%93";
|
|
14384
|
-
var parseValues = function parseQueryStringValues(str, options) {
|
|
14385
|
-
var obj = { __proto__: null };
|
|
14386
|
-
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
|
|
14387
|
-
cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
14388
|
-
var limit2 = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
|
|
14389
|
-
var parts = cleanStr.split(
|
|
14390
|
-
options.delimiter,
|
|
14391
|
-
options.throwOnLimitExceeded ? limit2 + 1 : limit2
|
|
14392
|
-
);
|
|
14393
|
-
if (options.throwOnLimitExceeded && parts.length > limit2) {
|
|
14394
|
-
throw new RangeError("Parameter limit exceeded. Only " + limit2 + " parameter" + (limit2 === 1 ? "" : "s") + " allowed.");
|
|
14395
|
-
}
|
|
14396
|
-
var skipIndex = -1;
|
|
14397
|
-
var i2;
|
|
14398
|
-
var charset = options.charset;
|
|
14399
|
-
if (options.charsetSentinel) {
|
|
14400
|
-
for (i2 = 0; i2 < parts.length; ++i2) {
|
|
14401
|
-
if (parts[i2].indexOf("utf8=") === 0) {
|
|
14402
|
-
if (parts[i2] === charsetSentinel) {
|
|
14403
|
-
charset = "utf-8";
|
|
14404
|
-
} else if (parts[i2] === isoSentinel) {
|
|
14405
|
-
charset = "iso-8859-1";
|
|
14406
|
-
}
|
|
14407
|
-
skipIndex = i2;
|
|
14408
|
-
i2 = parts.length;
|
|
14409
|
-
}
|
|
14410
|
-
}
|
|
14411
|
-
}
|
|
14412
|
-
for (i2 = 0; i2 < parts.length; ++i2) {
|
|
14413
|
-
if (i2 === skipIndex) {
|
|
14414
|
-
continue;
|
|
14415
|
-
}
|
|
14416
|
-
var part = parts[i2];
|
|
14417
|
-
var bracketEqualsPos = part.indexOf("]=");
|
|
14418
|
-
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
14419
|
-
var key;
|
|
14420
|
-
var val;
|
|
14421
|
-
if (pos === -1) {
|
|
14422
|
-
key = options.decoder(part, defaults.decoder, charset, "key");
|
|
14423
|
-
val = options.strictNullHandling ? null : "";
|
|
14424
|
-
} else {
|
|
14425
|
-
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
|
|
14426
|
-
val = utils.maybeMap(
|
|
14427
|
-
parseArrayValue(
|
|
14428
|
-
part.slice(pos + 1),
|
|
14429
|
-
options,
|
|
14430
|
-
isArray(obj[key]) ? obj[key].length : 0
|
|
14431
|
-
),
|
|
14432
|
-
function(encodedVal) {
|
|
14433
|
-
return options.decoder(encodedVal, defaults.decoder, charset, "value");
|
|
14434
|
-
}
|
|
14435
|
-
);
|
|
14436
|
-
}
|
|
14437
|
-
if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
|
|
14438
|
-
val = interpretNumericEntities(String(val));
|
|
14439
|
-
}
|
|
14440
|
-
if (part.indexOf("[]=") > -1) {
|
|
14441
|
-
val = isArray(val) ? [val] : val;
|
|
14442
|
-
}
|
|
14443
|
-
var existing = has$1.call(obj, key);
|
|
14444
|
-
if (existing && options.duplicates === "combine") {
|
|
14445
|
-
obj[key] = utils.combine(obj[key], val);
|
|
14446
|
-
} else if (!existing || options.duplicates === "last") {
|
|
14447
|
-
obj[key] = val;
|
|
14448
|
-
}
|
|
14449
|
-
}
|
|
14450
|
-
return obj;
|
|
14451
|
-
};
|
|
14452
|
-
var parseObject = function(chain, val, options, valuesParsed) {
|
|
14453
|
-
var currentArrayLength = 0;
|
|
14454
|
-
if (chain.length > 0 && chain[chain.length - 1] === "[]") {
|
|
14455
|
-
var parentKey = chain.slice(0, -1).join("");
|
|
14456
|
-
currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
|
|
14457
|
-
}
|
|
14458
|
-
var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
|
|
14459
|
-
for (var i2 = chain.length - 1; i2 >= 0; --i2) {
|
|
14460
|
-
var obj;
|
|
14461
|
-
var root2 = chain[i2];
|
|
14462
|
-
if (root2 === "[]" && options.parseArrays) {
|
|
14463
|
-
obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf);
|
|
14464
|
-
} else {
|
|
14465
|
-
obj = options.plainObjects ? { __proto__: null } : {};
|
|
14466
|
-
var cleanRoot = root2.charAt(0) === "[" && root2.charAt(root2.length - 1) === "]" ? root2.slice(1, -1) : root2;
|
|
14467
|
-
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
14468
|
-
var index = parseInt(decodedRoot, 10);
|
|
14469
|
-
if (!options.parseArrays && decodedRoot === "") {
|
|
14470
|
-
obj = { 0: leaf };
|
|
14471
|
-
} else if (!isNaN(index) && root2 !== decodedRoot && String(index) === decodedRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
|
|
14472
|
-
obj = [];
|
|
14473
|
-
obj[index] = leaf;
|
|
14474
|
-
} else if (decodedRoot !== "__proto__") {
|
|
14475
|
-
obj[decodedRoot] = leaf;
|
|
14476
|
-
}
|
|
14477
|
-
}
|
|
14478
|
-
leaf = obj;
|
|
14479
|
-
}
|
|
14480
|
-
return leaf;
|
|
14481
|
-
};
|
|
14482
|
-
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
14483
|
-
if (!givenKey) {
|
|
14484
|
-
return;
|
|
14485
|
-
}
|
|
14486
|
-
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
|
|
14487
|
-
var brackets2 = /(\[[^[\]]*])/;
|
|
14488
|
-
var child = /(\[[^[\]]*])/g;
|
|
14489
|
-
var segment = options.depth > 0 && brackets2.exec(key);
|
|
14490
|
-
var parent = segment ? key.slice(0, segment.index) : key;
|
|
14491
|
-
var keys2 = [];
|
|
14492
|
-
if (parent) {
|
|
14493
|
-
if (!options.plainObjects && has$1.call(Object.prototype, parent)) {
|
|
14494
|
-
if (!options.allowPrototypes) {
|
|
14495
|
-
return;
|
|
14496
|
-
}
|
|
14497
|
-
}
|
|
14498
|
-
keys2.push(parent);
|
|
14499
|
-
}
|
|
14500
|
-
var i2 = 0;
|
|
14501
|
-
while (options.depth > 0 && (segment = child.exec(key)) !== null && i2 < options.depth) {
|
|
14502
|
-
i2 += 1;
|
|
14503
|
-
if (!options.plainObjects && has$1.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
14504
|
-
if (!options.allowPrototypes) {
|
|
14505
|
-
return;
|
|
14506
|
-
}
|
|
14507
|
-
}
|
|
14508
|
-
keys2.push(segment[1]);
|
|
14509
|
-
}
|
|
14510
|
-
if (segment) {
|
|
14511
|
-
if (options.strictDepth === true) {
|
|
14512
|
-
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
14513
|
-
}
|
|
14514
|
-
keys2.push("[" + key.slice(segment.index) + "]");
|
|
14515
|
-
}
|
|
14516
|
-
return parseObject(keys2, val, options, valuesParsed);
|
|
14517
|
-
};
|
|
14518
|
-
var normalizeParseOptions = function normalizeParseOptions2(opts) {
|
|
14519
|
-
if (!opts) {
|
|
14520
|
-
return defaults;
|
|
14521
|
-
}
|
|
14522
|
-
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
14523
|
-
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
14524
|
-
}
|
|
14525
|
-
if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
|
|
14526
|
-
throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
14527
|
-
}
|
|
14528
|
-
if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
|
|
14529
|
-
throw new TypeError("Decoder has to be a function.");
|
|
14530
|
-
}
|
|
14531
|
-
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
14532
|
-
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
14533
|
-
}
|
|
14534
|
-
if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
|
|
14535
|
-
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
14536
|
-
}
|
|
14537
|
-
var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
|
|
14538
|
-
var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
|
|
14539
|
-
if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
|
|
14540
|
-
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
14541
|
-
}
|
|
14542
|
-
var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
14543
|
-
return {
|
|
14544
|
-
allowDots,
|
|
14545
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
14546
|
-
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
14547
|
-
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
|
|
14548
|
-
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
|
|
14549
|
-
charset,
|
|
14550
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
14551
|
-
comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
|
|
14552
|
-
decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
14553
|
-
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
|
|
14554
|
-
delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
14555
|
-
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
14556
|
-
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
|
|
14557
|
-
duplicates,
|
|
14558
|
-
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
14559
|
-
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
14560
|
-
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
|
|
14561
|
-
parseArrays: opts.parseArrays !== false,
|
|
14562
|
-
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
|
|
14563
|
-
strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
|
|
14564
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
14565
|
-
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
|
|
14566
|
-
};
|
|
14567
|
-
};
|
|
14568
|
-
var parse$1 = function(str, opts) {
|
|
14569
|
-
var options = normalizeParseOptions(opts);
|
|
14570
|
-
if (str === "" || str === null || typeof str === "undefined") {
|
|
14571
|
-
return options.plainObjects ? { __proto__: null } : {};
|
|
14572
|
-
}
|
|
14573
|
-
var tempObj = typeof str === "string" ? parseValues(str, options) : str;
|
|
14574
|
-
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
14575
|
-
var keys2 = Object.keys(tempObj);
|
|
14576
|
-
for (var i2 = 0; i2 < keys2.length; ++i2) {
|
|
14577
|
-
var key = keys2[i2];
|
|
14578
|
-
var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
|
|
14579
|
-
obj = utils.merge(obj, newObj, options);
|
|
14580
|
-
}
|
|
14581
|
-
if (options.allowSparse === true) {
|
|
14582
|
-
return obj;
|
|
14583
|
-
}
|
|
14584
|
-
return utils.compact(obj);
|
|
14585
|
-
};
|
|
14586
14829
|
var stringify2 = stringify_1;
|
|
14587
|
-
var parse = parse$1;
|
|
14588
|
-
var formats = formats$3;
|
|
14589
14830
|
var lib = {
|
|
14590
|
-
formats,
|
|
14591
|
-
parse,
|
|
14592
14831
|
stringify: stringify2
|
|
14593
14832
|
};
|
|
14594
14833
|
const CUSTOMER_APP_HOST = getConfig().customerAppHost;
|
|
@@ -14687,7 +14926,8 @@ function createOpportunityCreationPayload(payload) {
|
|
|
14687
14926
|
analyticsClientId,
|
|
14688
14927
|
service_type,
|
|
14689
14928
|
team_size,
|
|
14690
|
-
delivery_frequency
|
|
14929
|
+
delivery_frequency,
|
|
14930
|
+
budget_range
|
|
14691
14931
|
} = payload;
|
|
14692
14932
|
return {
|
|
14693
14933
|
analyticsClientId,
|
|
@@ -14736,7 +14976,8 @@ function createOpportunityCreationPayload(payload) {
|
|
|
14736
14976
|
cloudGroupTagValuesAttributes: cloudGroupTagValuesPayload(payload),
|
|
14737
14977
|
serviceType: service_type,
|
|
14738
14978
|
teamSize: team_size,
|
|
14739
|
-
deliveryFrequency: delivery_frequency
|
|
14979
|
+
deliveryFrequency: delivery_frequency,
|
|
14980
|
+
budgetRange: budget_range
|
|
14740
14981
|
};
|
|
14741
14982
|
}
|
|
14742
14983
|
const CREATE_OPPORTUNITY = gql`
|
|
@@ -15127,8 +15368,8 @@ function _extends$2() {
|
|
|
15127
15368
|
}, _extends$2.apply(null, arguments);
|
|
15128
15369
|
}
|
|
15129
15370
|
var propTypes = { exports: {} };
|
|
15130
|
-
var reactIs$
|
|
15131
|
-
var reactIs_production_min
|
|
15371
|
+
var reactIs$1 = { exports: {} };
|
|
15372
|
+
var reactIs_production_min = {};
|
|
15132
15373
|
/** @license React v16.13.1
|
|
15133
15374
|
* react-is.production.min.js
|
|
15134
15375
|
*
|
|
@@ -15137,10 +15378,10 @@ var reactIs_production_min$2 = {};
|
|
|
15137
15378
|
* This source code is licensed under the MIT license found in the
|
|
15138
15379
|
* LICENSE file in the root directory of this source tree.
|
|
15139
15380
|
*/
|
|
15140
|
-
var hasRequiredReactIs_production_min
|
|
15141
|
-
function requireReactIs_production_min
|
|
15142
|
-
if (hasRequiredReactIs_production_min
|
|
15143
|
-
hasRequiredReactIs_production_min
|
|
15381
|
+
var hasRequiredReactIs_production_min;
|
|
15382
|
+
function requireReactIs_production_min() {
|
|
15383
|
+
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
15384
|
+
hasRequiredReactIs_production_min = 1;
|
|
15144
15385
|
var b2 = "function" === typeof Symbol && Symbol.for, c2 = b2 ? Symbol.for("react.element") : 60103, d3 = b2 ? Symbol.for("react.portal") : 60106, e2 = b2 ? Symbol.for("react.fragment") : 60107, f = b2 ? Symbol.for("react.strict_mode") : 60108, g = b2 ? Symbol.for("react.profiler") : 60114, h3 = b2 ? Symbol.for("react.provider") : 60109, k2 = b2 ? Symbol.for("react.context") : 60110, l = b2 ? Symbol.for("react.async_mode") : 60111, m3 = b2 ? Symbol.for("react.concurrent_mode") : 60111, n = b2 ? Symbol.for("react.forward_ref") : 60112, p = b2 ? Symbol.for("react.suspense") : 60113, q2 = b2 ? Symbol.for("react.suspense_list") : 60120, r2 = b2 ? Symbol.for("react.memo") : 60115, t2 = b2 ? Symbol.for("react.lazy") : 60116, v = b2 ? Symbol.for("react.block") : 60121, w2 = b2 ? Symbol.for("react.fundamental") : 60117, x2 = b2 ? Symbol.for("react.responder") : 60118, y3 = b2 ? Symbol.for("react.scope") : 60119;
|
|
15145
15386
|
function z2(a3) {
|
|
15146
15387
|
if ("object" === typeof a3 && null !== a3) {
|
|
@@ -15175,67 +15416,67 @@ function requireReactIs_production_min$2() {
|
|
|
15175
15416
|
function A(a3) {
|
|
15176
15417
|
return z2(a3) === m3;
|
|
15177
15418
|
}
|
|
15178
|
-
reactIs_production_min
|
|
15179
|
-
reactIs_production_min
|
|
15180
|
-
reactIs_production_min
|
|
15181
|
-
reactIs_production_min
|
|
15182
|
-
reactIs_production_min
|
|
15183
|
-
reactIs_production_min
|
|
15184
|
-
reactIs_production_min
|
|
15185
|
-
reactIs_production_min
|
|
15186
|
-
reactIs_production_min
|
|
15187
|
-
reactIs_production_min
|
|
15188
|
-
reactIs_production_min
|
|
15189
|
-
reactIs_production_min
|
|
15190
|
-
reactIs_production_min
|
|
15191
|
-
reactIs_production_min
|
|
15419
|
+
reactIs_production_min.AsyncMode = l;
|
|
15420
|
+
reactIs_production_min.ConcurrentMode = m3;
|
|
15421
|
+
reactIs_production_min.ContextConsumer = k2;
|
|
15422
|
+
reactIs_production_min.ContextProvider = h3;
|
|
15423
|
+
reactIs_production_min.Element = c2;
|
|
15424
|
+
reactIs_production_min.ForwardRef = n;
|
|
15425
|
+
reactIs_production_min.Fragment = e2;
|
|
15426
|
+
reactIs_production_min.Lazy = t2;
|
|
15427
|
+
reactIs_production_min.Memo = r2;
|
|
15428
|
+
reactIs_production_min.Portal = d3;
|
|
15429
|
+
reactIs_production_min.Profiler = g;
|
|
15430
|
+
reactIs_production_min.StrictMode = f;
|
|
15431
|
+
reactIs_production_min.Suspense = p;
|
|
15432
|
+
reactIs_production_min.isAsyncMode = function(a3) {
|
|
15192
15433
|
return A(a3) || z2(a3) === l;
|
|
15193
15434
|
};
|
|
15194
|
-
reactIs_production_min
|
|
15195
|
-
reactIs_production_min
|
|
15435
|
+
reactIs_production_min.isConcurrentMode = A;
|
|
15436
|
+
reactIs_production_min.isContextConsumer = function(a3) {
|
|
15196
15437
|
return z2(a3) === k2;
|
|
15197
15438
|
};
|
|
15198
|
-
reactIs_production_min
|
|
15439
|
+
reactIs_production_min.isContextProvider = function(a3) {
|
|
15199
15440
|
return z2(a3) === h3;
|
|
15200
15441
|
};
|
|
15201
|
-
reactIs_production_min
|
|
15442
|
+
reactIs_production_min.isElement = function(a3) {
|
|
15202
15443
|
return "object" === typeof a3 && null !== a3 && a3.$$typeof === c2;
|
|
15203
15444
|
};
|
|
15204
|
-
reactIs_production_min
|
|
15445
|
+
reactIs_production_min.isForwardRef = function(a3) {
|
|
15205
15446
|
return z2(a3) === n;
|
|
15206
15447
|
};
|
|
15207
|
-
reactIs_production_min
|
|
15448
|
+
reactIs_production_min.isFragment = function(a3) {
|
|
15208
15449
|
return z2(a3) === e2;
|
|
15209
15450
|
};
|
|
15210
|
-
reactIs_production_min
|
|
15451
|
+
reactIs_production_min.isLazy = function(a3) {
|
|
15211
15452
|
return z2(a3) === t2;
|
|
15212
15453
|
};
|
|
15213
|
-
reactIs_production_min
|
|
15454
|
+
reactIs_production_min.isMemo = function(a3) {
|
|
15214
15455
|
return z2(a3) === r2;
|
|
15215
15456
|
};
|
|
15216
|
-
reactIs_production_min
|
|
15457
|
+
reactIs_production_min.isPortal = function(a3) {
|
|
15217
15458
|
return z2(a3) === d3;
|
|
15218
15459
|
};
|
|
15219
|
-
reactIs_production_min
|
|
15460
|
+
reactIs_production_min.isProfiler = function(a3) {
|
|
15220
15461
|
return z2(a3) === g;
|
|
15221
15462
|
};
|
|
15222
|
-
reactIs_production_min
|
|
15463
|
+
reactIs_production_min.isStrictMode = function(a3) {
|
|
15223
15464
|
return z2(a3) === f;
|
|
15224
15465
|
};
|
|
15225
|
-
reactIs_production_min
|
|
15466
|
+
reactIs_production_min.isSuspense = function(a3) {
|
|
15226
15467
|
return z2(a3) === p;
|
|
15227
15468
|
};
|
|
15228
|
-
reactIs_production_min
|
|
15469
|
+
reactIs_production_min.isValidElementType = function(a3) {
|
|
15229
15470
|
return "string" === typeof a3 || "function" === typeof a3 || a3 === e2 || a3 === m3 || a3 === g || a3 === f || a3 === p || a3 === q2 || "object" === typeof a3 && null !== a3 && (a3.$$typeof === t2 || a3.$$typeof === r2 || a3.$$typeof === h3 || a3.$$typeof === k2 || a3.$$typeof === n || a3.$$typeof === w2 || a3.$$typeof === x2 || a3.$$typeof === y3 || a3.$$typeof === v);
|
|
15230
15471
|
};
|
|
15231
|
-
reactIs_production_min
|
|
15232
|
-
return reactIs_production_min
|
|
15472
|
+
reactIs_production_min.typeOf = z2;
|
|
15473
|
+
return reactIs_production_min;
|
|
15233
15474
|
}
|
|
15234
|
-
var reactIs_development
|
|
15235
|
-
var hasRequiredReactIs_development
|
|
15236
|
-
function requireReactIs_development
|
|
15237
|
-
if (hasRequiredReactIs_development
|
|
15238
|
-
hasRequiredReactIs_development
|
|
15475
|
+
var reactIs_development = {};
|
|
15476
|
+
var hasRequiredReactIs_development;
|
|
15477
|
+
function requireReactIs_development() {
|
|
15478
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
|
15479
|
+
hasRequiredReactIs_development = 1;
|
|
15239
15480
|
var define_process_env_default2 = {};
|
|
15240
15481
|
/** @license React v16.13.1
|
|
15241
15482
|
* react-is.development.js
|
|
@@ -15362,50 +15603,45 @@ function requireReactIs_development$2() {
|
|
|
15362
15603
|
function isSuspense(object2) {
|
|
15363
15604
|
return typeOf(object2) === REACT_SUSPENSE_TYPE;
|
|
15364
15605
|
}
|
|
15365
|
-
reactIs_development
|
|
15366
|
-
reactIs_development
|
|
15367
|
-
reactIs_development
|
|
15368
|
-
reactIs_development
|
|
15369
|
-
reactIs_development
|
|
15370
|
-
reactIs_development
|
|
15371
|
-
reactIs_development
|
|
15372
|
-
reactIs_development
|
|
15373
|
-
reactIs_development
|
|
15374
|
-
reactIs_development
|
|
15375
|
-
reactIs_development
|
|
15376
|
-
reactIs_development
|
|
15377
|
-
reactIs_development
|
|
15378
|
-
reactIs_development
|
|
15379
|
-
reactIs_development
|
|
15380
|
-
reactIs_development
|
|
15381
|
-
reactIs_development
|
|
15382
|
-
reactIs_development
|
|
15383
|
-
reactIs_development
|
|
15384
|
-
reactIs_development
|
|
15385
|
-
reactIs_development
|
|
15386
|
-
reactIs_development
|
|
15387
|
-
reactIs_development
|
|
15388
|
-
reactIs_development
|
|
15389
|
-
reactIs_development
|
|
15390
|
-
reactIs_development
|
|
15391
|
-
reactIs_development
|
|
15392
|
-
reactIs_development
|
|
15606
|
+
reactIs_development.AsyncMode = AsyncMode;
|
|
15607
|
+
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
15608
|
+
reactIs_development.ContextConsumer = ContextConsumer;
|
|
15609
|
+
reactIs_development.ContextProvider = ContextProvider;
|
|
15610
|
+
reactIs_development.Element = Element;
|
|
15611
|
+
reactIs_development.ForwardRef = ForwardRef;
|
|
15612
|
+
reactIs_development.Fragment = Fragment;
|
|
15613
|
+
reactIs_development.Lazy = Lazy2;
|
|
15614
|
+
reactIs_development.Memo = Memo;
|
|
15615
|
+
reactIs_development.Portal = Portal3;
|
|
15616
|
+
reactIs_development.Profiler = Profiler;
|
|
15617
|
+
reactIs_development.StrictMode = StrictMode;
|
|
15618
|
+
reactIs_development.Suspense = Suspense;
|
|
15619
|
+
reactIs_development.isAsyncMode = isAsyncMode;
|
|
15620
|
+
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
15621
|
+
reactIs_development.isContextConsumer = isContextConsumer;
|
|
15622
|
+
reactIs_development.isContextProvider = isContextProvider;
|
|
15623
|
+
reactIs_development.isElement = isElement2;
|
|
15624
|
+
reactIs_development.isForwardRef = isForwardRef;
|
|
15625
|
+
reactIs_development.isFragment = isFragment;
|
|
15626
|
+
reactIs_development.isLazy = isLazy;
|
|
15627
|
+
reactIs_development.isMemo = isMemo;
|
|
15628
|
+
reactIs_development.isPortal = isPortal;
|
|
15629
|
+
reactIs_development.isProfiler = isProfiler;
|
|
15630
|
+
reactIs_development.isStrictMode = isStrictMode;
|
|
15631
|
+
reactIs_development.isSuspense = isSuspense;
|
|
15632
|
+
reactIs_development.isValidElementType = isValidElementType;
|
|
15633
|
+
reactIs_development.typeOf = typeOf;
|
|
15393
15634
|
})();
|
|
15394
15635
|
}
|
|
15395
|
-
return reactIs_development
|
|
15636
|
+
return reactIs_development;
|
|
15396
15637
|
}
|
|
15397
|
-
var
|
|
15398
|
-
|
|
15399
|
-
|
|
15400
|
-
|
|
15401
|
-
|
|
15402
|
-
if (define_process_env_default2.NODE_ENV === "production") {
|
|
15403
|
-
reactIs$3.exports = requireReactIs_production_min$2();
|
|
15404
|
-
} else {
|
|
15405
|
-
reactIs$3.exports = requireReactIs_development$2();
|
|
15406
|
-
}
|
|
15407
|
-
return reactIs$3.exports;
|
|
15638
|
+
var define_process_env_default$K = {};
|
|
15639
|
+
if (define_process_env_default$K.NODE_ENV === "production") {
|
|
15640
|
+
reactIs$1.exports = requireReactIs_production_min();
|
|
15641
|
+
} else {
|
|
15642
|
+
reactIs$1.exports = requireReactIs_development();
|
|
15408
15643
|
}
|
|
15644
|
+
var reactIsExports = reactIs$1.exports;
|
|
15409
15645
|
var ReactPropTypesSecret_1;
|
|
15410
15646
|
var hasRequiredReactPropTypesSecret;
|
|
15411
15647
|
function requireReactPropTypesSecret() {
|
|
@@ -15493,7 +15729,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
15493
15729
|
if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
|
|
15494
15730
|
hasRequiredFactoryWithTypeCheckers = 1;
|
|
15495
15731
|
var define_process_env_default2 = {};
|
|
15496
|
-
var ReactIs =
|
|
15732
|
+
var ReactIs = reactIsExports;
|
|
15497
15733
|
var assign2 = requireObjectAssign();
|
|
15498
15734
|
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
15499
15735
|
var has2 = requireHas();
|
|
@@ -15985,9 +16221,9 @@ function requireFactoryWithThrowingShims() {
|
|
|
15985
16221
|
};
|
|
15986
16222
|
return factoryWithThrowingShims;
|
|
15987
16223
|
}
|
|
15988
|
-
var define_process_env_default$
|
|
15989
|
-
if (define_process_env_default$
|
|
15990
|
-
var ReactIs =
|
|
16224
|
+
var define_process_env_default$J = {};
|
|
16225
|
+
if (define_process_env_default$J.NODE_ENV !== "production") {
|
|
16226
|
+
var ReactIs = reactIsExports;
|
|
15991
16227
|
var throwOnDirectAccess = true;
|
|
15992
16228
|
propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
15993
16229
|
} else {
|
|
@@ -16006,9 +16242,9 @@ function clsx() {
|
|
|
16006
16242
|
for (var e2, t2, f = 0, n = ""; f < arguments.length; ) (e2 = arguments[f++]) && (t2 = r(e2)) && (n && (n += " "), n += t2);
|
|
16007
16243
|
return n;
|
|
16008
16244
|
}
|
|
16009
|
-
var define_process_env_default$
|
|
16245
|
+
var define_process_env_default$I = {};
|
|
16010
16246
|
function chainPropTypes(propType1, propType2) {
|
|
16011
|
-
if (define_process_env_default$
|
|
16247
|
+
if (define_process_env_default$I.NODE_ENV === "production") {
|
|
16012
16248
|
return function() {
|
|
16013
16249
|
return null;
|
|
16014
16250
|
};
|
|
@@ -16059,10 +16295,10 @@ function elementTypeAcceptingRef(props, propName, componentName, location, propF
|
|
|
16059
16295
|
return null;
|
|
16060
16296
|
}
|
|
16061
16297
|
const elementTypeAcceptingRef$1 = chainPropTypes(propTypesExports.elementType, elementTypeAcceptingRef);
|
|
16062
|
-
var define_process_env_default$
|
|
16298
|
+
var define_process_env_default$H = {};
|
|
16063
16299
|
var specialProperty = "exact-prop: ";
|
|
16064
16300
|
function exactProp(propTypes2) {
|
|
16065
|
-
if (define_process_env_default$
|
|
16301
|
+
if (define_process_env_default$H.NODE_ENV === "production") {
|
|
16066
16302
|
return propTypes2;
|
|
16067
16303
|
}
|
|
16068
16304
|
return _extends$2({}, propTypes2, _defineProperty({}, specialProperty, function(props) {
|
|
@@ -16084,336 +16320,11 @@ function formatMuiErrorMessage(code) {
|
|
|
16084
16320
|
}
|
|
16085
16321
|
return "Minified Material-UI error #" + code + "; visit " + url + " for the full message.";
|
|
16086
16322
|
}
|
|
16087
|
-
var
|
|
16088
|
-
|
|
16089
|
-
|
|
16090
|
-
|
|
16091
|
-
|
|
16092
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16093
|
-
*
|
|
16094
|
-
* This source code is licensed under the MIT license found in the
|
|
16095
|
-
* LICENSE file in the root directory of this source tree.
|
|
16096
|
-
*/
|
|
16097
|
-
var hasRequiredReactIs_production_min$1;
|
|
16098
|
-
function requireReactIs_production_min$1() {
|
|
16099
|
-
if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
|
|
16100
|
-
hasRequiredReactIs_production_min$1 = 1;
|
|
16101
|
-
var b2 = 60103, c2 = 60106, d3 = 60107, e2 = 60108, f = 60114, g = 60109, h3 = 60110, k2 = 60112, l = 60113, m3 = 60120, n = 60115, p = 60116, q2 = 60121, r2 = 60122, u2 = 60117, v = 60129, w2 = 60131;
|
|
16102
|
-
if ("function" === typeof Symbol && Symbol.for) {
|
|
16103
|
-
var x2 = Symbol.for;
|
|
16104
|
-
b2 = x2("react.element");
|
|
16105
|
-
c2 = x2("react.portal");
|
|
16106
|
-
d3 = x2("react.fragment");
|
|
16107
|
-
e2 = x2("react.strict_mode");
|
|
16108
|
-
f = x2("react.profiler");
|
|
16109
|
-
g = x2("react.provider");
|
|
16110
|
-
h3 = x2("react.context");
|
|
16111
|
-
k2 = x2("react.forward_ref");
|
|
16112
|
-
l = x2("react.suspense");
|
|
16113
|
-
m3 = x2("react.suspense_list");
|
|
16114
|
-
n = x2("react.memo");
|
|
16115
|
-
p = x2("react.lazy");
|
|
16116
|
-
q2 = x2("react.block");
|
|
16117
|
-
r2 = x2("react.server.block");
|
|
16118
|
-
u2 = x2("react.fundamental");
|
|
16119
|
-
v = x2("react.debug_trace_mode");
|
|
16120
|
-
w2 = x2("react.legacy_hidden");
|
|
16121
|
-
}
|
|
16122
|
-
function y3(a3) {
|
|
16123
|
-
if ("object" === typeof a3 && null !== a3) {
|
|
16124
|
-
var t2 = a3.$$typeof;
|
|
16125
|
-
switch (t2) {
|
|
16126
|
-
case b2:
|
|
16127
|
-
switch (a3 = a3.type, a3) {
|
|
16128
|
-
case d3:
|
|
16129
|
-
case f:
|
|
16130
|
-
case e2:
|
|
16131
|
-
case l:
|
|
16132
|
-
case m3:
|
|
16133
|
-
return a3;
|
|
16134
|
-
default:
|
|
16135
|
-
switch (a3 = a3 && a3.$$typeof, a3) {
|
|
16136
|
-
case h3:
|
|
16137
|
-
case k2:
|
|
16138
|
-
case p:
|
|
16139
|
-
case n:
|
|
16140
|
-
case g:
|
|
16141
|
-
return a3;
|
|
16142
|
-
default:
|
|
16143
|
-
return t2;
|
|
16144
|
-
}
|
|
16145
|
-
}
|
|
16146
|
-
case c2:
|
|
16147
|
-
return t2;
|
|
16148
|
-
}
|
|
16149
|
-
}
|
|
16150
|
-
}
|
|
16151
|
-
var z2 = g, A = b2, B2 = k2, C = d3, D2 = p, E2 = n, F = c2, G2 = f, H3 = e2, I2 = l;
|
|
16152
|
-
reactIs_production_min$1.ContextConsumer = h3;
|
|
16153
|
-
reactIs_production_min$1.ContextProvider = z2;
|
|
16154
|
-
reactIs_production_min$1.Element = A;
|
|
16155
|
-
reactIs_production_min$1.ForwardRef = B2;
|
|
16156
|
-
reactIs_production_min$1.Fragment = C;
|
|
16157
|
-
reactIs_production_min$1.Lazy = D2;
|
|
16158
|
-
reactIs_production_min$1.Memo = E2;
|
|
16159
|
-
reactIs_production_min$1.Portal = F;
|
|
16160
|
-
reactIs_production_min$1.Profiler = G2;
|
|
16161
|
-
reactIs_production_min$1.StrictMode = H3;
|
|
16162
|
-
reactIs_production_min$1.Suspense = I2;
|
|
16163
|
-
reactIs_production_min$1.isAsyncMode = function() {
|
|
16164
|
-
return false;
|
|
16165
|
-
};
|
|
16166
|
-
reactIs_production_min$1.isConcurrentMode = function() {
|
|
16167
|
-
return false;
|
|
16168
|
-
};
|
|
16169
|
-
reactIs_production_min$1.isContextConsumer = function(a3) {
|
|
16170
|
-
return y3(a3) === h3;
|
|
16171
|
-
};
|
|
16172
|
-
reactIs_production_min$1.isContextProvider = function(a3) {
|
|
16173
|
-
return y3(a3) === g;
|
|
16174
|
-
};
|
|
16175
|
-
reactIs_production_min$1.isElement = function(a3) {
|
|
16176
|
-
return "object" === typeof a3 && null !== a3 && a3.$$typeof === b2;
|
|
16177
|
-
};
|
|
16178
|
-
reactIs_production_min$1.isForwardRef = function(a3) {
|
|
16179
|
-
return y3(a3) === k2;
|
|
16180
|
-
};
|
|
16181
|
-
reactIs_production_min$1.isFragment = function(a3) {
|
|
16182
|
-
return y3(a3) === d3;
|
|
16183
|
-
};
|
|
16184
|
-
reactIs_production_min$1.isLazy = function(a3) {
|
|
16185
|
-
return y3(a3) === p;
|
|
16186
|
-
};
|
|
16187
|
-
reactIs_production_min$1.isMemo = function(a3) {
|
|
16188
|
-
return y3(a3) === n;
|
|
16189
|
-
};
|
|
16190
|
-
reactIs_production_min$1.isPortal = function(a3) {
|
|
16191
|
-
return y3(a3) === c2;
|
|
16192
|
-
};
|
|
16193
|
-
reactIs_production_min$1.isProfiler = function(a3) {
|
|
16194
|
-
return y3(a3) === f;
|
|
16195
|
-
};
|
|
16196
|
-
reactIs_production_min$1.isStrictMode = function(a3) {
|
|
16197
|
-
return y3(a3) === e2;
|
|
16198
|
-
};
|
|
16199
|
-
reactIs_production_min$1.isSuspense = function(a3) {
|
|
16200
|
-
return y3(a3) === l;
|
|
16201
|
-
};
|
|
16202
|
-
reactIs_production_min$1.isValidElementType = function(a3) {
|
|
16203
|
-
return "string" === typeof a3 || "function" === typeof a3 || a3 === d3 || a3 === f || a3 === v || a3 === e2 || a3 === l || a3 === m3 || a3 === w2 || "object" === typeof a3 && null !== a3 && (a3.$$typeof === p || a3.$$typeof === n || a3.$$typeof === g || a3.$$typeof === h3 || a3.$$typeof === k2 || a3.$$typeof === u2 || a3.$$typeof === q2 || a3[0] === r2) ? true : false;
|
|
16204
|
-
};
|
|
16205
|
-
reactIs_production_min$1.typeOf = y3;
|
|
16206
|
-
return reactIs_production_min$1;
|
|
16207
|
-
}
|
|
16208
|
-
var reactIs_development$1 = {};
|
|
16209
|
-
var hasRequiredReactIs_development$1;
|
|
16210
|
-
function requireReactIs_development$1() {
|
|
16211
|
-
if (hasRequiredReactIs_development$1) return reactIs_development$1;
|
|
16212
|
-
hasRequiredReactIs_development$1 = 1;
|
|
16213
|
-
var define_process_env_default2 = {};
|
|
16214
|
-
/** @license React v17.0.2
|
|
16215
|
-
* react-is.development.js
|
|
16216
|
-
*
|
|
16217
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16218
|
-
*
|
|
16219
|
-
* This source code is licensed under the MIT license found in the
|
|
16220
|
-
* LICENSE file in the root directory of this source tree.
|
|
16221
|
-
*/
|
|
16222
|
-
if (define_process_env_default2.NODE_ENV !== "production") {
|
|
16223
|
-
(function() {
|
|
16224
|
-
var REACT_ELEMENT_TYPE = 60103;
|
|
16225
|
-
var REACT_PORTAL_TYPE = 60106;
|
|
16226
|
-
var REACT_FRAGMENT_TYPE = 60107;
|
|
16227
|
-
var REACT_STRICT_MODE_TYPE = 60108;
|
|
16228
|
-
var REACT_PROFILER_TYPE = 60114;
|
|
16229
|
-
var REACT_PROVIDER_TYPE = 60109;
|
|
16230
|
-
var REACT_CONTEXT_TYPE = 60110;
|
|
16231
|
-
var REACT_FORWARD_REF_TYPE = 60112;
|
|
16232
|
-
var REACT_SUSPENSE_TYPE = 60113;
|
|
16233
|
-
var REACT_SUSPENSE_LIST_TYPE = 60120;
|
|
16234
|
-
var REACT_MEMO_TYPE = 60115;
|
|
16235
|
-
var REACT_LAZY_TYPE = 60116;
|
|
16236
|
-
var REACT_BLOCK_TYPE = 60121;
|
|
16237
|
-
var REACT_SERVER_BLOCK_TYPE = 60122;
|
|
16238
|
-
var REACT_FUNDAMENTAL_TYPE = 60117;
|
|
16239
|
-
var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
|
|
16240
|
-
var REACT_LEGACY_HIDDEN_TYPE = 60131;
|
|
16241
|
-
if (typeof Symbol === "function" && Symbol.for) {
|
|
16242
|
-
var symbolFor = Symbol.for;
|
|
16243
|
-
REACT_ELEMENT_TYPE = symbolFor("react.element");
|
|
16244
|
-
REACT_PORTAL_TYPE = symbolFor("react.portal");
|
|
16245
|
-
REACT_FRAGMENT_TYPE = symbolFor("react.fragment");
|
|
16246
|
-
REACT_STRICT_MODE_TYPE = symbolFor("react.strict_mode");
|
|
16247
|
-
REACT_PROFILER_TYPE = symbolFor("react.profiler");
|
|
16248
|
-
REACT_PROVIDER_TYPE = symbolFor("react.provider");
|
|
16249
|
-
REACT_CONTEXT_TYPE = symbolFor("react.context");
|
|
16250
|
-
REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref");
|
|
16251
|
-
REACT_SUSPENSE_TYPE = symbolFor("react.suspense");
|
|
16252
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list");
|
|
16253
|
-
REACT_MEMO_TYPE = symbolFor("react.memo");
|
|
16254
|
-
REACT_LAZY_TYPE = symbolFor("react.lazy");
|
|
16255
|
-
REACT_BLOCK_TYPE = symbolFor("react.block");
|
|
16256
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
|
|
16257
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
|
|
16258
|
-
symbolFor("react.scope");
|
|
16259
|
-
symbolFor("react.opaque.id");
|
|
16260
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
|
|
16261
|
-
symbolFor("react.offscreen");
|
|
16262
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
|
|
16263
|
-
}
|
|
16264
|
-
var enableScopeAPI = false;
|
|
16265
|
-
function isValidElementType(type2) {
|
|
16266
|
-
if (typeof type2 === "string" || typeof type2 === "function") {
|
|
16267
|
-
return true;
|
|
16268
|
-
}
|
|
16269
|
-
if (type2 === REACT_FRAGMENT_TYPE || type2 === REACT_PROFILER_TYPE || type2 === REACT_DEBUG_TRACING_MODE_TYPE || type2 === REACT_STRICT_MODE_TYPE || type2 === REACT_SUSPENSE_TYPE || type2 === REACT_SUSPENSE_LIST_TYPE || type2 === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
|
|
16270
|
-
return true;
|
|
16271
|
-
}
|
|
16272
|
-
if (typeof type2 === "object" && type2 !== null) {
|
|
16273
|
-
if (type2.$$typeof === REACT_LAZY_TYPE || type2.$$typeof === REACT_MEMO_TYPE || type2.$$typeof === REACT_PROVIDER_TYPE || type2.$$typeof === REACT_CONTEXT_TYPE || type2.$$typeof === REACT_FORWARD_REF_TYPE || type2.$$typeof === REACT_FUNDAMENTAL_TYPE || type2.$$typeof === REACT_BLOCK_TYPE || type2[0] === REACT_SERVER_BLOCK_TYPE) {
|
|
16274
|
-
return true;
|
|
16275
|
-
}
|
|
16276
|
-
}
|
|
16277
|
-
return false;
|
|
16278
|
-
}
|
|
16279
|
-
function typeOf(object2) {
|
|
16280
|
-
if (typeof object2 === "object" && object2 !== null) {
|
|
16281
|
-
var $$typeof = object2.$$typeof;
|
|
16282
|
-
switch ($$typeof) {
|
|
16283
|
-
case REACT_ELEMENT_TYPE:
|
|
16284
|
-
var type2 = object2.type;
|
|
16285
|
-
switch (type2) {
|
|
16286
|
-
case REACT_FRAGMENT_TYPE:
|
|
16287
|
-
case REACT_PROFILER_TYPE:
|
|
16288
|
-
case REACT_STRICT_MODE_TYPE:
|
|
16289
|
-
case REACT_SUSPENSE_TYPE:
|
|
16290
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
16291
|
-
return type2;
|
|
16292
|
-
default:
|
|
16293
|
-
var $$typeofType = type2 && type2.$$typeof;
|
|
16294
|
-
switch ($$typeofType) {
|
|
16295
|
-
case REACT_CONTEXT_TYPE:
|
|
16296
|
-
case REACT_FORWARD_REF_TYPE:
|
|
16297
|
-
case REACT_LAZY_TYPE:
|
|
16298
|
-
case REACT_MEMO_TYPE:
|
|
16299
|
-
case REACT_PROVIDER_TYPE:
|
|
16300
|
-
return $$typeofType;
|
|
16301
|
-
default:
|
|
16302
|
-
return $$typeof;
|
|
16303
|
-
}
|
|
16304
|
-
}
|
|
16305
|
-
case REACT_PORTAL_TYPE:
|
|
16306
|
-
return $$typeof;
|
|
16307
|
-
}
|
|
16308
|
-
}
|
|
16309
|
-
return void 0;
|
|
16310
|
-
}
|
|
16311
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
16312
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
16313
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
16314
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
16315
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
16316
|
-
var Lazy2 = REACT_LAZY_TYPE;
|
|
16317
|
-
var Memo = REACT_MEMO_TYPE;
|
|
16318
|
-
var Portal3 = REACT_PORTAL_TYPE;
|
|
16319
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
16320
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
16321
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
16322
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
16323
|
-
var hasWarnedAboutDeprecatedIsConcurrentMode = false;
|
|
16324
|
-
function isAsyncMode(object2) {
|
|
16325
|
-
{
|
|
16326
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
16327
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
16328
|
-
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
|
|
16329
|
-
}
|
|
16330
|
-
}
|
|
16331
|
-
return false;
|
|
16332
|
-
}
|
|
16333
|
-
function isConcurrentMode(object2) {
|
|
16334
|
-
{
|
|
16335
|
-
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
16336
|
-
hasWarnedAboutDeprecatedIsConcurrentMode = true;
|
|
16337
|
-
console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
|
|
16338
|
-
}
|
|
16339
|
-
}
|
|
16340
|
-
return false;
|
|
16341
|
-
}
|
|
16342
|
-
function isContextConsumer(object2) {
|
|
16343
|
-
return typeOf(object2) === REACT_CONTEXT_TYPE;
|
|
16344
|
-
}
|
|
16345
|
-
function isContextProvider(object2) {
|
|
16346
|
-
return typeOf(object2) === REACT_PROVIDER_TYPE;
|
|
16347
|
-
}
|
|
16348
|
-
function isElement2(object2) {
|
|
16349
|
-
return typeof object2 === "object" && object2 !== null && object2.$$typeof === REACT_ELEMENT_TYPE;
|
|
16350
|
-
}
|
|
16351
|
-
function isForwardRef(object2) {
|
|
16352
|
-
return typeOf(object2) === REACT_FORWARD_REF_TYPE;
|
|
16353
|
-
}
|
|
16354
|
-
function isFragment(object2) {
|
|
16355
|
-
return typeOf(object2) === REACT_FRAGMENT_TYPE;
|
|
16356
|
-
}
|
|
16357
|
-
function isLazy(object2) {
|
|
16358
|
-
return typeOf(object2) === REACT_LAZY_TYPE;
|
|
16359
|
-
}
|
|
16360
|
-
function isMemo(object2) {
|
|
16361
|
-
return typeOf(object2) === REACT_MEMO_TYPE;
|
|
16362
|
-
}
|
|
16363
|
-
function isPortal(object2) {
|
|
16364
|
-
return typeOf(object2) === REACT_PORTAL_TYPE;
|
|
16365
|
-
}
|
|
16366
|
-
function isProfiler(object2) {
|
|
16367
|
-
return typeOf(object2) === REACT_PROFILER_TYPE;
|
|
16368
|
-
}
|
|
16369
|
-
function isStrictMode(object2) {
|
|
16370
|
-
return typeOf(object2) === REACT_STRICT_MODE_TYPE;
|
|
16371
|
-
}
|
|
16372
|
-
function isSuspense(object2) {
|
|
16373
|
-
return typeOf(object2) === REACT_SUSPENSE_TYPE;
|
|
16374
|
-
}
|
|
16375
|
-
reactIs_development$1.ContextConsumer = ContextConsumer;
|
|
16376
|
-
reactIs_development$1.ContextProvider = ContextProvider;
|
|
16377
|
-
reactIs_development$1.Element = Element;
|
|
16378
|
-
reactIs_development$1.ForwardRef = ForwardRef;
|
|
16379
|
-
reactIs_development$1.Fragment = Fragment;
|
|
16380
|
-
reactIs_development$1.Lazy = Lazy2;
|
|
16381
|
-
reactIs_development$1.Memo = Memo;
|
|
16382
|
-
reactIs_development$1.Portal = Portal3;
|
|
16383
|
-
reactIs_development$1.Profiler = Profiler;
|
|
16384
|
-
reactIs_development$1.StrictMode = StrictMode;
|
|
16385
|
-
reactIs_development$1.Suspense = Suspense;
|
|
16386
|
-
reactIs_development$1.isAsyncMode = isAsyncMode;
|
|
16387
|
-
reactIs_development$1.isConcurrentMode = isConcurrentMode;
|
|
16388
|
-
reactIs_development$1.isContextConsumer = isContextConsumer;
|
|
16389
|
-
reactIs_development$1.isContextProvider = isContextProvider;
|
|
16390
|
-
reactIs_development$1.isElement = isElement2;
|
|
16391
|
-
reactIs_development$1.isForwardRef = isForwardRef;
|
|
16392
|
-
reactIs_development$1.isFragment = isFragment;
|
|
16393
|
-
reactIs_development$1.isLazy = isLazy;
|
|
16394
|
-
reactIs_development$1.isMemo = isMemo;
|
|
16395
|
-
reactIs_development$1.isPortal = isPortal;
|
|
16396
|
-
reactIs_development$1.isProfiler = isProfiler;
|
|
16397
|
-
reactIs_development$1.isStrictMode = isStrictMode;
|
|
16398
|
-
reactIs_development$1.isSuspense = isSuspense;
|
|
16399
|
-
reactIs_development$1.isValidElementType = isValidElementType;
|
|
16400
|
-
reactIs_development$1.typeOf = typeOf;
|
|
16401
|
-
})();
|
|
16402
|
-
}
|
|
16403
|
-
return reactIs_development$1;
|
|
16404
|
-
}
|
|
16405
|
-
var define_process_env_default$I = {};
|
|
16406
|
-
if (define_process_env_default$I.NODE_ENV === "production") {
|
|
16407
|
-
reactIs$2.exports = requireReactIs_production_min$1();
|
|
16408
|
-
} else {
|
|
16409
|
-
reactIs$2.exports = requireReactIs_development$1();
|
|
16410
|
-
}
|
|
16411
|
-
var reactIsExports$1 = reactIs$2.exports;
|
|
16412
|
-
var fnNameMatchRegex = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
|
|
16413
|
-
function getFunctionName(fn) {
|
|
16414
|
-
var match2 = "".concat(fn).match(fnNameMatchRegex);
|
|
16415
|
-
var name = match2 && match2[1];
|
|
16416
|
-
return name || "";
|
|
16323
|
+
var fnNameMatchRegex = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
|
|
16324
|
+
function getFunctionName(fn) {
|
|
16325
|
+
var match2 = "".concat(fn).match(fnNameMatchRegex);
|
|
16326
|
+
var name = match2 && match2[1];
|
|
16327
|
+
return name || "";
|
|
16417
16328
|
}
|
|
16418
16329
|
function getFunctionComponentName(Component) {
|
|
16419
16330
|
var fallback = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
@@ -16435,9 +16346,9 @@ function getDisplayName(Component) {
|
|
|
16435
16346
|
}
|
|
16436
16347
|
if (_typeof$1(Component) === "object") {
|
|
16437
16348
|
switch (Component.$$typeof) {
|
|
16438
|
-
case reactIsExports
|
|
16349
|
+
case reactIsExports.ForwardRef:
|
|
16439
16350
|
return getWrappedName(Component, Component.render, "ForwardRef");
|
|
16440
|
-
case reactIsExports
|
|
16351
|
+
case reactIsExports.Memo:
|
|
16441
16352
|
return getWrappedName(Component, Component.type, "memo");
|
|
16442
16353
|
default:
|
|
16443
16354
|
return void 0;
|
|
@@ -16445,9 +16356,9 @@ function getDisplayName(Component) {
|
|
|
16445
16356
|
}
|
|
16446
16357
|
return void 0;
|
|
16447
16358
|
}
|
|
16448
|
-
var define_process_env_default$
|
|
16359
|
+
var define_process_env_default$G = {};
|
|
16449
16360
|
function HTMLElementType(props, propName, componentName, location, propFullName) {
|
|
16450
|
-
if (define_process_env_default$
|
|
16361
|
+
if (define_process_env_default$G.NODE_ENV === "production") {
|
|
16451
16362
|
return null;
|
|
16452
16363
|
}
|
|
16453
16364
|
var propValue = props[propName];
|
|
@@ -16461,11 +16372,11 @@ function HTMLElementType(props, propName, componentName, location, propFullName)
|
|
|
16461
16372
|
return null;
|
|
16462
16373
|
}
|
|
16463
16374
|
var refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);
|
|
16464
|
-
var define_process_env_default$
|
|
16375
|
+
var define_process_env_default$F = {};
|
|
16465
16376
|
function clamp(value) {
|
|
16466
16377
|
var min2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
16467
16378
|
var max2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
|
|
16468
|
-
if (define_process_env_default$
|
|
16379
|
+
if (define_process_env_default$F.NODE_ENV !== "production") {
|
|
16469
16380
|
if (value < min2 || value > max2) {
|
|
16470
16381
|
console.error("Material-UI: The value provided ".concat(value, " is out of range [").concat(min2, ", ").concat(max2, "]."));
|
|
16471
16382
|
}
|
|
@@ -16517,7 +16428,7 @@ function decomposeColor(color) {
|
|
|
16517
16428
|
var marker = color.indexOf("(");
|
|
16518
16429
|
var type2 = color.substring(0, marker);
|
|
16519
16430
|
if (["rgb", "rgba", "hsl", "hsla"].indexOf(type2) === -1) {
|
|
16520
|
-
throw new Error(define_process_env_default$
|
|
16431
|
+
throw new Error(define_process_env_default$F.NODE_ENV !== "production" ? "Material-UI: Unsupported `".concat(color, "` color.\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().") : formatMuiErrorMessage(3, color));
|
|
16521
16432
|
}
|
|
16522
16433
|
var values2 = color.substring(marker + 1, color.length - 1).split(",");
|
|
16523
16434
|
values2 = values2.map(function(value) {
|
|
@@ -16592,7 +16503,7 @@ function lighten(color, coefficient) {
|
|
|
16592
16503
|
}
|
|
16593
16504
|
return recomposeColor(color);
|
|
16594
16505
|
}
|
|
16595
|
-
var define_process_env_default$
|
|
16506
|
+
var define_process_env_default$E = {};
|
|
16596
16507
|
var keys$1 = ["xs", "sm", "md", "lg", "xl"];
|
|
16597
16508
|
function createBreakpoints$2(breakpoints2) {
|
|
16598
16509
|
var _breakpoints$values = breakpoints2.values, values2 = _breakpoints$values === void 0 ? {
|
|
@@ -16627,7 +16538,7 @@ function createBreakpoints$2(breakpoints2) {
|
|
|
16627
16538
|
}
|
|
16628
16539
|
var warnedOnce2 = false;
|
|
16629
16540
|
function width(key) {
|
|
16630
|
-
if (define_process_env_default$
|
|
16541
|
+
if (define_process_env_default$E.NODE_ENV !== "production") {
|
|
16631
16542
|
if (!warnedOnce2) {
|
|
16632
16543
|
warnedOnce2 = true;
|
|
16633
16544
|
console.warn(["Material-UI: The `theme.breakpoints.width` utility is deprecated because it's redundant.", "Use the `theme.breakpoints.values` instead."].join("\n"));
|
|
@@ -16718,7 +16629,7 @@ var green = {
|
|
|
16718
16629
|
500: "#4caf50",
|
|
16719
16630
|
700: "#388e3c"
|
|
16720
16631
|
};
|
|
16721
|
-
var define_process_env_default$
|
|
16632
|
+
var define_process_env_default$D = {};
|
|
16722
16633
|
var light = {
|
|
16723
16634
|
// The colors used to style the text.
|
|
16724
16635
|
text: {
|
|
@@ -16827,7 +16738,7 @@ function createPalette(palette2) {
|
|
|
16827
16738
|
} : _palette$success, _palette$type = palette2.type, type2 = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette2.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette2.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties(palette2, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
|
|
16828
16739
|
function getContrastText(background) {
|
|
16829
16740
|
var contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;
|
|
16830
|
-
if (define_process_env_default$
|
|
16741
|
+
if (define_process_env_default$D.NODE_ENV !== "production") {
|
|
16831
16742
|
var contrast = getContrastRatio(background, contrastText);
|
|
16832
16743
|
if (contrast < 3) {
|
|
16833
16744
|
console.error(["Material-UI: The contrast ratio of ".concat(contrast, ":1 for ").concat(contrastText, " on ").concat(background), "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"));
|
|
@@ -16844,10 +16755,10 @@ function createPalette(palette2) {
|
|
|
16844
16755
|
color.main = color[mainShade];
|
|
16845
16756
|
}
|
|
16846
16757
|
if (!color.main) {
|
|
16847
|
-
throw new Error(define_process_env_default$
|
|
16758
|
+
throw new Error(define_process_env_default$D.NODE_ENV !== "production" ? "Material-UI: The color provided to augmentColor(color) is invalid.\nThe color object needs to have a `main` property or a `".concat(mainShade, "` property.") : formatMuiErrorMessage(4, mainShade));
|
|
16848
16759
|
}
|
|
16849
16760
|
if (typeof color.main !== "string") {
|
|
16850
|
-
throw new Error(define_process_env_default$
|
|
16761
|
+
throw new Error(define_process_env_default$D.NODE_ENV !== "production" ? "Material-UI: The color provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `".concat(JSON.stringify(color.main), '` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@material-ui/core/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });') : formatMuiErrorMessage(5, JSON.stringify(color.main)));
|
|
16851
16762
|
}
|
|
16852
16763
|
addLightOrDark(color, "light", lightShade, tonalOffset);
|
|
16853
16764
|
addLightOrDark(color, "dark", darkShade, tonalOffset);
|
|
@@ -16860,7 +16771,7 @@ function createPalette(palette2) {
|
|
|
16860
16771
|
dark,
|
|
16861
16772
|
light
|
|
16862
16773
|
};
|
|
16863
|
-
if (define_process_env_default$
|
|
16774
|
+
if (define_process_env_default$D.NODE_ENV !== "production") {
|
|
16864
16775
|
if (!types[type2]) {
|
|
16865
16776
|
console.error("Material-UI: The palette type `".concat(type2, "` is not supported."));
|
|
16866
16777
|
}
|
|
@@ -16898,13 +16809,13 @@ function createPalette(palette2) {
|
|
|
16898
16809
|
}, types[type2]), other);
|
|
16899
16810
|
return paletteOutput;
|
|
16900
16811
|
}
|
|
16901
|
-
var define_process_env_default$
|
|
16812
|
+
var define_process_env_default$C = {};
|
|
16902
16813
|
function round(value) {
|
|
16903
16814
|
return Math.round(value * 1e5) / 1e5;
|
|
16904
16815
|
}
|
|
16905
16816
|
var warnedOnce = false;
|
|
16906
16817
|
function roundWithDeprecationWarning(value) {
|
|
16907
|
-
if (define_process_env_default$
|
|
16818
|
+
if (define_process_env_default$C.NODE_ENV !== "production") {
|
|
16908
16819
|
if (!warnedOnce) {
|
|
16909
16820
|
console.warn(["Material-UI: The `theme.typography.round` helper is deprecated.", "Head to https://mui.com/r/migration-v4/#theme for a migration path."].join("\n"));
|
|
16910
16821
|
warnedOnce = true;
|
|
@@ -16918,7 +16829,7 @@ var caseAllCaps = {
|
|
|
16918
16829
|
var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
16919
16830
|
function createTypography(palette2, typography2) {
|
|
16920
16831
|
var _ref3 = typeof typography2 === "function" ? typography2(palette2) : typography2, _ref$fontFamily = _ref3.fontFamily, fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref3.fontSize, fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref3.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref3.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref3.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref3.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref3.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref3.allVariants, pxToRem2 = _ref3.pxToRem, other = _objectWithoutProperties(_ref3, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
|
|
16921
|
-
if (define_process_env_default$
|
|
16832
|
+
if (define_process_env_default$C.NODE_ENV !== "production") {
|
|
16922
16833
|
if (typeof fontSize !== "number") {
|
|
16923
16834
|
console.error("Material-UI: `fontSize` is required to be a number.");
|
|
16924
16835
|
}
|
|
@@ -16982,7 +16893,7 @@ var shadows = ["none", createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), create
|
|
|
16982
16893
|
var shape = {
|
|
16983
16894
|
borderRadius: 4
|
|
16984
16895
|
};
|
|
16985
|
-
var define_process_env_default$
|
|
16896
|
+
var define_process_env_default$B = {};
|
|
16986
16897
|
var warnOnce;
|
|
16987
16898
|
function createSpacing() {
|
|
16988
16899
|
var spacingInput = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 8;
|
|
@@ -16996,7 +16907,7 @@ function createSpacing() {
|
|
|
16996
16907
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
16997
16908
|
args[_key] = arguments[_key];
|
|
16998
16909
|
}
|
|
16999
|
-
if (define_process_env_default$
|
|
16910
|
+
if (define_process_env_default$B.NODE_ENV !== "production") {
|
|
17000
16911
|
if (!(args.length <= 4)) {
|
|
17001
16912
|
console.error("Material-UI: Too many arguments provided, expected between 0 and 4, got ".concat(args.length));
|
|
17002
16913
|
}
|
|
@@ -17017,8 +16928,8 @@ function createSpacing() {
|
|
|
17017
16928
|
};
|
|
17018
16929
|
Object.defineProperty(spacing2, "unit", {
|
|
17019
16930
|
get: function get3() {
|
|
17020
|
-
if (define_process_env_default$
|
|
17021
|
-
if (!warnOnce || define_process_env_default$
|
|
16931
|
+
if (define_process_env_default$B.NODE_ENV !== "production") {
|
|
16932
|
+
if (!warnOnce || define_process_env_default$B.NODE_ENV === "test") {
|
|
17022
16933
|
console.error(["Material-UI: theme.spacing.unit usage has been deprecated.", "It will be removed in v5.", "You can replace `theme.spacing.unit * y` with `theme.spacing(y)`.", "", "You can use the `https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod/README.md#theme-spacing-api` migration helper to make the process smoother."].join("\n"));
|
|
17023
16934
|
}
|
|
17024
16935
|
warnOnce = true;
|
|
@@ -17029,7 +16940,7 @@ function createSpacing() {
|
|
|
17029
16940
|
spacing2.mui = true;
|
|
17030
16941
|
return spacing2;
|
|
17031
16942
|
}
|
|
17032
|
-
var define_process_env_default$
|
|
16943
|
+
var define_process_env_default$A = {};
|
|
17033
16944
|
var easing = {
|
|
17034
16945
|
// This is the most common easing curve.
|
|
17035
16946
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
@@ -17064,7 +16975,7 @@ const transitions = {
|
|
|
17064
16975
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["all"];
|
|
17065
16976
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
17066
16977
|
var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = _objectWithoutProperties(options, ["duration", "easing", "delay"]);
|
|
17067
|
-
if (define_process_env_default$
|
|
16978
|
+
if (define_process_env_default$A.NODE_ENV !== "production") {
|
|
17068
16979
|
var isString2 = function isString22(value) {
|
|
17069
16980
|
return typeof value === "string";
|
|
17070
16981
|
};
|
|
@@ -17108,7 +17019,7 @@ var zIndex = {
|
|
|
17108
17019
|
snackbar: 1400,
|
|
17109
17020
|
tooltip: 1500
|
|
17110
17021
|
};
|
|
17111
|
-
var define_process_env_default$
|
|
17022
|
+
var define_process_env_default$z = {};
|
|
17112
17023
|
function createTheme() {
|
|
17113
17024
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
17114
17025
|
var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
|
|
@@ -17137,7 +17048,7 @@ function createTheme() {
|
|
|
17137
17048
|
muiTheme = args.reduce(function(acc, argument) {
|
|
17138
17049
|
return deepmerge(acc, argument);
|
|
17139
17050
|
}, muiTheme);
|
|
17140
|
-
if (define_process_env_default$
|
|
17051
|
+
if (define_process_env_default$z.NODE_ENV !== "production") {
|
|
17141
17052
|
var pseudoClasses2 = ["checked", "disabled", "error", "focused", "focusVisible", "required", "expanded", "selected"];
|
|
17142
17053
|
var traverse = function traverse2(node, parentKey) {
|
|
17143
17054
|
var depth = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
|
|
@@ -17149,7 +17060,7 @@ function createTheme() {
|
|
|
17149
17060
|
traverse2(child, key, depth + 1);
|
|
17150
17061
|
}
|
|
17151
17062
|
} else if (pseudoClasses2.indexOf(key) !== -1 && Object.keys(child).length > 0) {
|
|
17152
|
-
if (define_process_env_default$
|
|
17063
|
+
if (define_process_env_default$z.NODE_ENV !== "production") {
|
|
17153
17064
|
console.error(["Material-UI: The `".concat(parentKey, "` component increases ") + "the CSS specificity of the `".concat(key, "` internal state."), "You can not override it like this: ", JSON.stringify(node, null, 2), "", "Instead, you need to use the $ruleName syntax:", JSON.stringify({
|
|
17154
17065
|
root: _defineProperty({}, "&$".concat(key), child)
|
|
17155
17066
|
}, null, 2), "", "https://mui.com/r/pseudo-classes-guide"].join("\n"));
|
|
@@ -17164,7 +17075,7 @@ function createTheme() {
|
|
|
17164
17075
|
}
|
|
17165
17076
|
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
17166
17077
|
const nested = hasSymbol ? Symbol.for("mui.nested") : "__THEME_NESTED__";
|
|
17167
|
-
var define_process_env_default$
|
|
17078
|
+
var define_process_env_default$y = {};
|
|
17168
17079
|
var pseudoClasses = ["checked", "disabled", "error", "focused", "focusVisible", "required", "expanded", "selected"];
|
|
17169
17080
|
function createGenerateClassName() {
|
|
17170
17081
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -17173,7 +17084,7 @@ function createGenerateClassName() {
|
|
|
17173
17084
|
var ruleCounter = 0;
|
|
17174
17085
|
var getNextCounterId = function getNextCounterId2() {
|
|
17175
17086
|
ruleCounter += 1;
|
|
17176
|
-
if (define_process_env_default$
|
|
17087
|
+
if (define_process_env_default$y.NODE_ENV !== "production") {
|
|
17177
17088
|
if (ruleCounter >= 1e10) {
|
|
17178
17089
|
console.warn(["Material-UI: You might have a memory leak.", "The ruleCounter is not supposed to grow that much."].join(""));
|
|
17179
17090
|
}
|
|
@@ -17192,7 +17103,7 @@ function createGenerateClassName() {
|
|
|
17192
17103
|
}
|
|
17193
17104
|
return "".concat(prefix2, "-").concat(getNextCounterId());
|
|
17194
17105
|
}
|
|
17195
|
-
if (define_process_env_default$
|
|
17106
|
+
if (define_process_env_default$y.NODE_ENV === "production") {
|
|
17196
17107
|
return "".concat(seedPrefix).concat(productionPrefix).concat(getNextCounterId());
|
|
17197
17108
|
}
|
|
17198
17109
|
var suffix = "".concat(rule.key, "-").concat(getNextCounterId());
|
|
@@ -17216,8 +17127,8 @@ function getThemeProps(params) {
|
|
|
17216
17127
|
}
|
|
17217
17128
|
return props;
|
|
17218
17129
|
}
|
|
17219
|
-
var define_process_env_default$
|
|
17220
|
-
var isProduction = define_process_env_default$
|
|
17130
|
+
var define_process_env_default$x = {};
|
|
17131
|
+
var isProduction = define_process_env_default$x.NODE_ENV === "production";
|
|
17221
17132
|
function warning(condition, message) {
|
|
17222
17133
|
if (!isProduction) {
|
|
17223
17134
|
var text = "Warning: " + message;
|
|
@@ -17239,7 +17150,7 @@ var isBrowser$1 = (typeof window === "undefined" ? "undefined" : _typeof(window)
|
|
|
17239
17150
|
function _inheritsLoose(t2, o) {
|
|
17240
17151
|
t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
|
|
17241
17152
|
}
|
|
17242
|
-
var define_process_env_default$
|
|
17153
|
+
var define_process_env_default$w = {};
|
|
17243
17154
|
var plainObjectConstrurctor = {}.constructor;
|
|
17244
17155
|
function cloneStyle(style) {
|
|
17245
17156
|
if (style == null || typeof style !== "object") return style;
|
|
@@ -17260,7 +17171,7 @@ function createRule(name, decl, options) {
|
|
|
17260
17171
|
var rule = jss2.plugins.onCreateRule(name, declCopy, options);
|
|
17261
17172
|
if (rule) return rule;
|
|
17262
17173
|
if (name[0] === "@") {
|
|
17263
|
-
define_process_env_default$
|
|
17174
|
+
define_process_env_default$w.NODE_ENV !== "production" ? warning(false, "[JSS] Unknown rule " + name) : void 0;
|
|
17264
17175
|
}
|
|
17265
17176
|
return null;
|
|
17266
17177
|
}
|
|
@@ -17393,7 +17304,7 @@ var BaseStyleRule = /* @__PURE__ */ function() {
|
|
|
17393
17304
|
}
|
|
17394
17305
|
var sheet = this.options.sheet;
|
|
17395
17306
|
if (sheet && sheet.attached) {
|
|
17396
|
-
define_process_env_default$
|
|
17307
|
+
define_process_env_default$w.NODE_ENV !== "production" ? warning(false, '[JSS] Rule is not linked. Missing sheet option "link: true".') : void 0;
|
|
17397
17308
|
}
|
|
17398
17309
|
return this;
|
|
17399
17310
|
};
|
|
@@ -17543,7 +17454,7 @@ var KeyframesRule = /* @__PURE__ */ function() {
|
|
|
17543
17454
|
this.name = nameMatch[1];
|
|
17544
17455
|
} else {
|
|
17545
17456
|
this.name = "noname";
|
|
17546
|
-
define_process_env_default$
|
|
17457
|
+
define_process_env_default$w.NODE_ENV !== "production" ? warning(false, "[JSS] Bad keyframes name " + key) : void 0;
|
|
17547
17458
|
}
|
|
17548
17459
|
this.key = this.type + "-" + this.name;
|
|
17549
17460
|
this.options = options;
|
|
@@ -17584,7 +17495,7 @@ var findReferencedKeyframe = function findReferencedKeyframe2(val, keyframes) {
|
|
|
17584
17495
|
if (name in keyframes) {
|
|
17585
17496
|
return keyframes[name];
|
|
17586
17497
|
}
|
|
17587
|
-
define_process_env_default$
|
|
17498
|
+
define_process_env_default$w.NODE_ENV !== "production" ? warning(false, '[JSS] Referenced keyframes rule "' + name + '" is not defined.') : void 0;
|
|
17588
17499
|
return match2;
|
|
17589
17500
|
});
|
|
17590
17501
|
}
|
|
@@ -18083,7 +17994,7 @@ var PluginsRegistry = /* @__PURE__ */ function() {
|
|
|
18083
17994
|
if (name in registry) {
|
|
18084
17995
|
registry[name].push(plugin[name]);
|
|
18085
17996
|
} else {
|
|
18086
|
-
define_process_env_default$
|
|
17997
|
+
define_process_env_default$w.NODE_ENV !== "production" ? warning(false, '[JSS] Unknown hook "' + name + '".') : void 0;
|
|
18087
17998
|
}
|
|
18088
17999
|
}
|
|
18089
18000
|
return registry;
|
|
@@ -18164,7 +18075,7 @@ var createGenerateId = function createGenerateId2(options) {
|
|
|
18164
18075
|
var generateId = function generateId2(rule, sheet) {
|
|
18165
18076
|
ruleCounter += 1;
|
|
18166
18077
|
if (ruleCounter > maxRules) {
|
|
18167
|
-
define_process_env_default$
|
|
18078
|
+
define_process_env_default$w.NODE_ENV !== "production" ? warning(false, "[JSS] You might have a memory leak. Rule counter is at " + ruleCounter + ".") : void 0;
|
|
18168
18079
|
}
|
|
18169
18080
|
var jssId = "";
|
|
18170
18081
|
var prefix2 = "";
|
|
@@ -18226,7 +18137,7 @@ var removeProperty = function removeProperty2(cssRule, prop) {
|
|
|
18226
18137
|
cssRule.style.removeProperty(prop);
|
|
18227
18138
|
}
|
|
18228
18139
|
} catch (err) {
|
|
18229
|
-
define_process_env_default$
|
|
18140
|
+
define_process_env_default$w.NODE_ENV !== "production" ? warning(false, '[JSS] DOMException "' + err.message + '" was thrown. Tried to remove property "' + prop + '".') : void 0;
|
|
18230
18141
|
}
|
|
18231
18142
|
};
|
|
18232
18143
|
var setSelector = function setSelector2(cssRule, selectorText) {
|
|
@@ -18291,7 +18202,7 @@ function findPrevNode(options) {
|
|
|
18291
18202
|
node: comment.nextSibling
|
|
18292
18203
|
};
|
|
18293
18204
|
}
|
|
18294
|
-
define_process_env_default$
|
|
18205
|
+
define_process_env_default$w.NODE_ENV !== "production" ? warning(false, '[JSS] Insertion point "' + insertionPoint + '" not found.') : void 0;
|
|
18295
18206
|
}
|
|
18296
18207
|
return false;
|
|
18297
18208
|
}
|
|
@@ -18306,7 +18217,7 @@ function insertStyle(style, options) {
|
|
|
18306
18217
|
var insertionPointElement = insertionPoint;
|
|
18307
18218
|
var parentNode = insertionPointElement.parentNode;
|
|
18308
18219
|
if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);
|
|
18309
|
-
else define_process_env_default$
|
|
18220
|
+
else define_process_env_default$w.NODE_ENV !== "production" ? warning(false, "[JSS] Insertion point is not in the DOM.") : void 0;
|
|
18310
18221
|
return;
|
|
18311
18222
|
}
|
|
18312
18223
|
getHead().appendChild(style);
|
|
@@ -18323,7 +18234,7 @@ var _insertRule = function insertRule(container, rule, index2) {
|
|
|
18323
18234
|
container.appendRule(rule);
|
|
18324
18235
|
}
|
|
18325
18236
|
} catch (err) {
|
|
18326
|
-
define_process_env_default$
|
|
18237
|
+
define_process_env_default$w.NODE_ENV !== "production" ? warning(false, "[JSS] " + err.message) : void 0;
|
|
18327
18238
|
return false;
|
|
18328
18239
|
}
|
|
18329
18240
|
return container.cssRules[index2];
|
|
@@ -18583,7 +18494,7 @@ function getDynamicStyles(styles3) {
|
|
|
18583
18494
|
* @license MIT
|
|
18584
18495
|
*/
|
|
18585
18496
|
createJss();
|
|
18586
|
-
var define_process_env_default$
|
|
18497
|
+
var define_process_env_default$v = {};
|
|
18587
18498
|
var now = Date.now();
|
|
18588
18499
|
var fnValuesNs = "fnValues" + now;
|
|
18589
18500
|
var fnRuleNs = "fnStyle" + ++now;
|
|
@@ -18612,10 +18523,10 @@ var functionPlugin = function functionPlugin2() {
|
|
|
18612
18523
|
var fnRule = styleRule[fnRuleNs];
|
|
18613
18524
|
if (fnRule) {
|
|
18614
18525
|
styleRule.style = fnRule(data) || {};
|
|
18615
|
-
if (define_process_env_default$
|
|
18526
|
+
if (define_process_env_default$v.NODE_ENV === "development") {
|
|
18616
18527
|
for (var prop in styleRule.style) {
|
|
18617
18528
|
if (typeof styleRule.style[prop] === "function") {
|
|
18618
|
-
define_process_env_default$
|
|
18529
|
+
define_process_env_default$v.NODE_ENV !== "production" ? warning(false, "[JSS] Function values inside function rules are not supported.") : void 0;
|
|
18619
18530
|
break;
|
|
18620
18531
|
}
|
|
18621
18532
|
}
|
|
@@ -18749,7 +18660,7 @@ function jssGlobal() {
|
|
|
18749
18660
|
onProcessRule
|
|
18750
18661
|
};
|
|
18751
18662
|
}
|
|
18752
|
-
var define_process_env_default$
|
|
18663
|
+
var define_process_env_default$u = {};
|
|
18753
18664
|
var separatorRegExp = /\s*,\s*/g;
|
|
18754
18665
|
var parentRegExp = /&/g;
|
|
18755
18666
|
var refRegExp = /\$([\w-]+)/g;
|
|
@@ -18760,7 +18671,7 @@ function jssNested() {
|
|
|
18760
18671
|
if (rule) {
|
|
18761
18672
|
return rule.selector;
|
|
18762
18673
|
}
|
|
18763
|
-
define_process_env_default$
|
|
18674
|
+
define_process_env_default$u.NODE_ENV !== "production" ? warning(false, '[JSS] Could not find the referenced rule "' + key + '" in "' + (container.options.meta || container.toString()) + '".') : void 0;
|
|
18764
18675
|
return key;
|
|
18765
18676
|
};
|
|
18766
18677
|
}
|
|
@@ -19104,7 +19015,7 @@ function _nonIterableSpread() {
|
|
|
19104
19015
|
function _toConsumableArray(r2) {
|
|
19105
19016
|
return _arrayWithoutHoles(r2) || _iterableToArray(r2) || _unsupportedIterableToArray(r2) || _nonIterableSpread();
|
|
19106
19017
|
}
|
|
19107
|
-
var define_process_env_default$
|
|
19018
|
+
var define_process_env_default$t = {};
|
|
19108
19019
|
var js = "";
|
|
19109
19020
|
var css = "";
|
|
19110
19021
|
var vendor = "";
|
|
@@ -19372,7 +19283,7 @@ function supportedProperty17(prop, options) {
|
|
|
19372
19283
|
options = {};
|
|
19373
19284
|
}
|
|
19374
19285
|
if (!el) return prop;
|
|
19375
|
-
if (define_process_env_default$
|
|
19286
|
+
if (define_process_env_default$t.NODE_ENV !== "benchmark" && cache[prop] != null) {
|
|
19376
19287
|
return cache[prop];
|
|
19377
19288
|
}
|
|
19378
19289
|
if (prop === "transition" || prop === "transform") {
|
|
@@ -19414,7 +19325,7 @@ function supportedValue(property2, value) {
|
|
|
19414
19325
|
return prefixedValue;
|
|
19415
19326
|
}
|
|
19416
19327
|
var cacheKey = property2 + prefixedValue;
|
|
19417
|
-
if (define_process_env_default$
|
|
19328
|
+
if (define_process_env_default$t.NODE_ENV !== "benchmark" && cache$1[cacheKey] != null) {
|
|
19418
19329
|
return cache$1[cacheKey];
|
|
19419
19330
|
}
|
|
19420
19331
|
try {
|
|
@@ -19513,7 +19424,7 @@ function jssPreset() {
|
|
|
19513
19424
|
]
|
|
19514
19425
|
};
|
|
19515
19426
|
}
|
|
19516
|
-
var define_process_env_default$
|
|
19427
|
+
var define_process_env_default$s = {};
|
|
19517
19428
|
function mergeClasses() {
|
|
19518
19429
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
19519
19430
|
var baseClasses = options.baseClasses, newClasses = options.newClasses, Component = options.Component;
|
|
@@ -19521,14 +19432,14 @@ function mergeClasses() {
|
|
|
19521
19432
|
return baseClasses;
|
|
19522
19433
|
}
|
|
19523
19434
|
var nextClasses = _extends$2({}, baseClasses);
|
|
19524
|
-
if (define_process_env_default$
|
|
19435
|
+
if (define_process_env_default$s.NODE_ENV !== "production") {
|
|
19525
19436
|
if (typeof newClasses === "string") {
|
|
19526
19437
|
console.error(["Material-UI: The value `".concat(newClasses, "` ") + "provided to the classes prop of ".concat(getDisplayName(Component), " is incorrect."), "You might want to use the className prop instead."].join("\n"));
|
|
19527
19438
|
return baseClasses;
|
|
19528
19439
|
}
|
|
19529
19440
|
}
|
|
19530
19441
|
Object.keys(newClasses).forEach(function(key) {
|
|
19531
|
-
if (define_process_env_default$
|
|
19442
|
+
if (define_process_env_default$s.NODE_ENV !== "production") {
|
|
19532
19443
|
if (!baseClasses[key] && newClasses[key]) {
|
|
19533
19444
|
console.error(["Material-UI: The key `".concat(key, "` ") + "provided to the classes prop is not implemented in ".concat(getDisplayName(Component), "."), "You can only override one of the following: ".concat(Object.keys(baseClasses).join(","), ".")].join("\n"));
|
|
19534
19445
|
}
|
|
@@ -19560,20 +19471,20 @@ var multiKeyStore = {
|
|
|
19560
19471
|
subCache.delete(key2);
|
|
19561
19472
|
}
|
|
19562
19473
|
};
|
|
19563
|
-
var define_process_env_default$
|
|
19474
|
+
var define_process_env_default$r = {};
|
|
19564
19475
|
var ThemeContext = React__default.createContext(null);
|
|
19565
|
-
if (define_process_env_default$
|
|
19476
|
+
if (define_process_env_default$r.NODE_ENV !== "production") {
|
|
19566
19477
|
ThemeContext.displayName = "ThemeContext";
|
|
19567
19478
|
}
|
|
19568
|
-
var define_process_env_default$
|
|
19479
|
+
var define_process_env_default$q = {};
|
|
19569
19480
|
function useTheme() {
|
|
19570
19481
|
var theme = React__default.useContext(ThemeContext);
|
|
19571
|
-
if (define_process_env_default$
|
|
19482
|
+
if (define_process_env_default$q.NODE_ENV !== "production") {
|
|
19572
19483
|
React__default.useDebugValue(theme);
|
|
19573
19484
|
}
|
|
19574
19485
|
return theme;
|
|
19575
19486
|
}
|
|
19576
|
-
var define_process_env_default$
|
|
19487
|
+
var define_process_env_default$p = {};
|
|
19577
19488
|
var jss = createJss(jssPreset());
|
|
19578
19489
|
var generateClassName = createGenerateClassName();
|
|
19579
19490
|
var sheetsManager = /* @__PURE__ */ new Map();
|
|
@@ -19586,7 +19497,7 @@ var defaultOptions = {
|
|
|
19586
19497
|
sheetsRegistry: null
|
|
19587
19498
|
};
|
|
19588
19499
|
var StylesContext = React__default.createContext(defaultOptions);
|
|
19589
|
-
if (define_process_env_default$
|
|
19500
|
+
if (define_process_env_default$p.NODE_ENV !== "production") {
|
|
19590
19501
|
StylesContext.displayName = "StylesContext";
|
|
19591
19502
|
}
|
|
19592
19503
|
var injectFirstNode;
|
|
@@ -19596,17 +19507,17 @@ function StylesProvider(props) {
|
|
|
19596
19507
|
var context = _extends$2({}, outerOptions, {
|
|
19597
19508
|
disableGeneration
|
|
19598
19509
|
}, localOptions);
|
|
19599
|
-
if (define_process_env_default$
|
|
19510
|
+
if (define_process_env_default$p.NODE_ENV !== "production") {
|
|
19600
19511
|
if (typeof window === "undefined" && !context.sheetsManager) {
|
|
19601
19512
|
console.error("Material-UI: You need to use the ServerStyleSheets API when rendering on the server.");
|
|
19602
19513
|
}
|
|
19603
19514
|
}
|
|
19604
|
-
if (define_process_env_default$
|
|
19515
|
+
if (define_process_env_default$p.NODE_ENV !== "production") {
|
|
19605
19516
|
if (context.jss.options.insertionPoint && injectFirst) {
|
|
19606
19517
|
console.error("Material-UI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time.");
|
|
19607
19518
|
}
|
|
19608
19519
|
}
|
|
19609
|
-
if (define_process_env_default$
|
|
19520
|
+
if (define_process_env_default$p.NODE_ENV !== "production") {
|
|
19610
19521
|
if (injectFirst && localOptions.jss) {
|
|
19611
19522
|
console.error("Material-UI: You cannot use the jss and injectFirst props at the same time.");
|
|
19612
19523
|
}
|
|
@@ -19626,7 +19537,7 @@ function StylesProvider(props) {
|
|
|
19626
19537
|
value: context
|
|
19627
19538
|
}, children);
|
|
19628
19539
|
}
|
|
19629
|
-
define_process_env_default$
|
|
19540
|
+
define_process_env_default$p.NODE_ENV !== "production" ? StylesProvider.propTypes = {
|
|
19630
19541
|
/**
|
|
19631
19542
|
* Your component tree.
|
|
19632
19543
|
*/
|
|
@@ -19680,14 +19591,14 @@ define_process_env_default$q.NODE_ENV !== "production" ? StylesProvider.propType
|
|
|
19680
19591
|
*/
|
|
19681
19592
|
sheetsRegistry: PropTypes.object
|
|
19682
19593
|
} : void 0;
|
|
19683
|
-
if (define_process_env_default$
|
|
19684
|
-
define_process_env_default$
|
|
19594
|
+
if (define_process_env_default$p.NODE_ENV !== "production") {
|
|
19595
|
+
define_process_env_default$p.NODE_ENV !== "production" ? StylesProvider.propTypes = exactProp(StylesProvider.propTypes) : void 0;
|
|
19685
19596
|
}
|
|
19686
|
-
var define_process_env_default$
|
|
19597
|
+
var define_process_env_default$o = {};
|
|
19687
19598
|
var indexCounter = -1e9;
|
|
19688
19599
|
function increment() {
|
|
19689
19600
|
indexCounter += 1;
|
|
19690
|
-
if (define_process_env_default$
|
|
19601
|
+
if (define_process_env_default$o.NODE_ENV !== "production") {
|
|
19691
19602
|
if (indexCounter >= 0) {
|
|
19692
19603
|
console.warn(["Material-UI: You might have a memory leak.", "The indexCounter is not supposed to grow that much."].join("\n"));
|
|
19693
19604
|
}
|
|
@@ -19695,10 +19606,10 @@ function increment() {
|
|
|
19695
19606
|
return indexCounter;
|
|
19696
19607
|
}
|
|
19697
19608
|
var noopTheme = {};
|
|
19698
|
-
var define_process_env_default$
|
|
19609
|
+
var define_process_env_default$n = {};
|
|
19699
19610
|
function getStylesCreator(stylesOrCreator) {
|
|
19700
19611
|
var themingEnabled = typeof stylesOrCreator === "function";
|
|
19701
|
-
if (define_process_env_default$
|
|
19612
|
+
if (define_process_env_default$n.NODE_ENV !== "production") {
|
|
19702
19613
|
if (_typeof$1(stylesOrCreator) !== "object" && !themingEnabled) {
|
|
19703
19614
|
console.error(["Material-UI: The `styles` argument provided is invalid.", "You need to provide a function generating the styles or a styles object."].join("\n"));
|
|
19704
19615
|
}
|
|
@@ -19709,7 +19620,7 @@ function getStylesCreator(stylesOrCreator) {
|
|
|
19709
19620
|
try {
|
|
19710
19621
|
styles3 = themingEnabled ? stylesOrCreator(theme) : stylesOrCreator;
|
|
19711
19622
|
} catch (err) {
|
|
19712
|
-
if (define_process_env_default$
|
|
19623
|
+
if (define_process_env_default$n.NODE_ENV !== "production") {
|
|
19713
19624
|
if (themingEnabled === true && theme === noopTheme) {
|
|
19714
19625
|
console.error(["Material-UI: The `styles` argument provided is invalid.", "You are providing a function without a theme in the context.", "One of the parent elements needs to use a ThemeProvider."].join("\n"));
|
|
19715
19626
|
}
|
|
@@ -19722,7 +19633,7 @@ function getStylesCreator(stylesOrCreator) {
|
|
|
19722
19633
|
var overrides = theme.overrides[name];
|
|
19723
19634
|
var stylesWithOverrides = _extends$2({}, styles3);
|
|
19724
19635
|
Object.keys(overrides).forEach(function(key) {
|
|
19725
|
-
if (define_process_env_default$
|
|
19636
|
+
if (define_process_env_default$n.NODE_ENV !== "production") {
|
|
19726
19637
|
if (!stylesWithOverrides[key]) {
|
|
19727
19638
|
console.warn(["Material-UI: You are trying to override a style that does not exist.", "Fix the `".concat(key, "` key of `theme.overrides.").concat(name, "`.")].join("\n"));
|
|
19728
19639
|
}
|
|
@@ -19734,7 +19645,7 @@ function getStylesCreator(stylesOrCreator) {
|
|
|
19734
19645
|
options: {}
|
|
19735
19646
|
};
|
|
19736
19647
|
}
|
|
19737
|
-
var define_process_env_default$
|
|
19648
|
+
var define_process_env_default$m = {};
|
|
19738
19649
|
function getClasses(_ref3, classes, Component) {
|
|
19739
19650
|
var state = _ref3.state, stylesOptions = _ref3.stylesOptions;
|
|
19740
19651
|
if (stylesOptions.disableGeneration) {
|
|
@@ -19761,443 +19672,169 @@ function getClasses(_ref3, classes, Component) {
|
|
|
19761
19672
|
}
|
|
19762
19673
|
if (generate) {
|
|
19763
19674
|
state.cacheClasses.value = mergeClasses({
|
|
19764
|
-
baseClasses: state.cacheClasses.lastJSS,
|
|
19765
|
-
newClasses: classes,
|
|
19766
|
-
Component
|
|
19767
|
-
});
|
|
19768
|
-
}
|
|
19769
|
-
return state.cacheClasses.value;
|
|
19770
|
-
}
|
|
19771
|
-
function attach(_ref22, props) {
|
|
19772
|
-
var state = _ref22.state, theme = _ref22.theme, stylesOptions = _ref22.stylesOptions, stylesCreator = _ref22.stylesCreator, name = _ref22.name;
|
|
19773
|
-
if (stylesOptions.disableGeneration) {
|
|
19774
|
-
return;
|
|
19775
|
-
}
|
|
19776
|
-
var sheetManager = multiKeyStore.get(stylesOptions.sheetsManager, stylesCreator, theme);
|
|
19777
|
-
if (!sheetManager) {
|
|
19778
|
-
sheetManager = {
|
|
19779
|
-
refs: 0,
|
|
19780
|
-
staticSheet: null,
|
|
19781
|
-
dynamicStyles: null
|
|
19782
|
-
};
|
|
19783
|
-
multiKeyStore.set(stylesOptions.sheetsManager, stylesCreator, theme, sheetManager);
|
|
19784
|
-
}
|
|
19785
|
-
var options = _extends$2({}, stylesCreator.options, stylesOptions, {
|
|
19786
|
-
theme,
|
|
19787
|
-
flip: typeof stylesOptions.flip === "boolean" ? stylesOptions.flip : theme.direction === "rtl"
|
|
19788
|
-
});
|
|
19789
|
-
options.generateId = options.serverGenerateClassName || options.generateClassName;
|
|
19790
|
-
var sheetsRegistry = stylesOptions.sheetsRegistry;
|
|
19791
|
-
if (sheetManager.refs === 0) {
|
|
19792
|
-
var staticSheet;
|
|
19793
|
-
if (stylesOptions.sheetsCache) {
|
|
19794
|
-
staticSheet = multiKeyStore.get(stylesOptions.sheetsCache, stylesCreator, theme);
|
|
19795
|
-
}
|
|
19796
|
-
var styles3 = stylesCreator.create(theme, name);
|
|
19797
|
-
if (!staticSheet) {
|
|
19798
|
-
staticSheet = stylesOptions.jss.createStyleSheet(styles3, _extends$2({
|
|
19799
|
-
link: false
|
|
19800
|
-
}, options));
|
|
19801
|
-
staticSheet.attach();
|
|
19802
|
-
if (stylesOptions.sheetsCache) {
|
|
19803
|
-
multiKeyStore.set(stylesOptions.sheetsCache, stylesCreator, theme, staticSheet);
|
|
19804
|
-
}
|
|
19805
|
-
}
|
|
19806
|
-
if (sheetsRegistry) {
|
|
19807
|
-
sheetsRegistry.add(staticSheet);
|
|
19808
|
-
}
|
|
19809
|
-
sheetManager.staticSheet = staticSheet;
|
|
19810
|
-
sheetManager.dynamicStyles = getDynamicStyles(styles3);
|
|
19811
|
-
}
|
|
19812
|
-
if (sheetManager.dynamicStyles) {
|
|
19813
|
-
var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends$2({
|
|
19814
|
-
link: true
|
|
19815
|
-
}, options));
|
|
19816
|
-
dynamicSheet.update(props);
|
|
19817
|
-
dynamicSheet.attach();
|
|
19818
|
-
state.dynamicSheet = dynamicSheet;
|
|
19819
|
-
state.classes = mergeClasses({
|
|
19820
|
-
baseClasses: sheetManager.staticSheet.classes,
|
|
19821
|
-
newClasses: dynamicSheet.classes
|
|
19822
|
-
});
|
|
19823
|
-
if (sheetsRegistry) {
|
|
19824
|
-
sheetsRegistry.add(dynamicSheet);
|
|
19825
|
-
}
|
|
19826
|
-
} else {
|
|
19827
|
-
state.classes = sheetManager.staticSheet.classes;
|
|
19828
|
-
}
|
|
19829
|
-
sheetManager.refs += 1;
|
|
19830
|
-
}
|
|
19831
|
-
function update$1(_ref3, props) {
|
|
19832
|
-
var state = _ref3.state;
|
|
19833
|
-
if (state.dynamicSheet) {
|
|
19834
|
-
state.dynamicSheet.update(props);
|
|
19835
|
-
}
|
|
19836
|
-
}
|
|
19837
|
-
function detach(_ref4) {
|
|
19838
|
-
var state = _ref4.state, theme = _ref4.theme, stylesOptions = _ref4.stylesOptions, stylesCreator = _ref4.stylesCreator;
|
|
19839
|
-
if (stylesOptions.disableGeneration) {
|
|
19840
|
-
return;
|
|
19841
|
-
}
|
|
19842
|
-
var sheetManager = multiKeyStore.get(stylesOptions.sheetsManager, stylesCreator, theme);
|
|
19843
|
-
sheetManager.refs -= 1;
|
|
19844
|
-
var sheetsRegistry = stylesOptions.sheetsRegistry;
|
|
19845
|
-
if (sheetManager.refs === 0) {
|
|
19846
|
-
multiKeyStore.delete(stylesOptions.sheetsManager, stylesCreator, theme);
|
|
19847
|
-
stylesOptions.jss.removeStyleSheet(sheetManager.staticSheet);
|
|
19848
|
-
if (sheetsRegistry) {
|
|
19849
|
-
sheetsRegistry.remove(sheetManager.staticSheet);
|
|
19850
|
-
}
|
|
19851
|
-
}
|
|
19852
|
-
if (state.dynamicSheet) {
|
|
19853
|
-
stylesOptions.jss.removeStyleSheet(state.dynamicSheet);
|
|
19854
|
-
if (sheetsRegistry) {
|
|
19855
|
-
sheetsRegistry.remove(state.dynamicSheet);
|
|
19856
|
-
}
|
|
19857
|
-
}
|
|
19858
|
-
}
|
|
19859
|
-
function useSynchronousEffect(func, values2) {
|
|
19860
|
-
var key = React__default.useRef([]);
|
|
19861
|
-
var output;
|
|
19862
|
-
var currentKey = React__default.useMemo(function() {
|
|
19863
|
-
return {};
|
|
19864
|
-
}, values2);
|
|
19865
|
-
if (key.current !== currentKey) {
|
|
19866
|
-
key.current = currentKey;
|
|
19867
|
-
output = func();
|
|
19868
|
-
}
|
|
19869
|
-
React__default.useEffect(
|
|
19870
|
-
function() {
|
|
19871
|
-
return function() {
|
|
19872
|
-
if (output) {
|
|
19873
|
-
output();
|
|
19874
|
-
}
|
|
19875
|
-
};
|
|
19876
|
-
},
|
|
19877
|
-
[currentKey]
|
|
19878
|
-
// eslint-disable-line react-hooks/exhaustive-deps
|
|
19879
|
-
);
|
|
19880
|
-
}
|
|
19881
|
-
function makeStyles(stylesOrCreator) {
|
|
19882
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
19883
|
-
var name = options.name, classNamePrefixOption = options.classNamePrefix, Component = options.Component, _options$defaultTheme = options.defaultTheme, defaultTheme2 = _options$defaultTheme === void 0 ? noopTheme : _options$defaultTheme, stylesOptions2 = _objectWithoutProperties(options, ["name", "classNamePrefix", "Component", "defaultTheme"]);
|
|
19884
|
-
var stylesCreator = getStylesCreator(stylesOrCreator);
|
|
19885
|
-
var classNamePrefix = name || classNamePrefixOption || "makeStyles";
|
|
19886
|
-
stylesCreator.options = {
|
|
19887
|
-
index: increment(),
|
|
19888
|
-
name,
|
|
19889
|
-
meta: classNamePrefix,
|
|
19890
|
-
classNamePrefix
|
|
19891
|
-
};
|
|
19892
|
-
var useStyles = function useStyles2() {
|
|
19893
|
-
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
19894
|
-
var theme = useTheme() || defaultTheme2;
|
|
19895
|
-
var stylesOptions = _extends$2({}, React__default.useContext(StylesContext), stylesOptions2);
|
|
19896
|
-
var instance = React__default.useRef();
|
|
19897
|
-
var shouldUpdate = React__default.useRef();
|
|
19898
|
-
useSynchronousEffect(function() {
|
|
19899
|
-
var current = {
|
|
19900
|
-
name,
|
|
19901
|
-
state: {},
|
|
19902
|
-
stylesCreator,
|
|
19903
|
-
stylesOptions,
|
|
19904
|
-
theme
|
|
19905
|
-
};
|
|
19906
|
-
attach(current, props);
|
|
19907
|
-
shouldUpdate.current = false;
|
|
19908
|
-
instance.current = current;
|
|
19909
|
-
return function() {
|
|
19910
|
-
detach(current);
|
|
19911
|
-
};
|
|
19912
|
-
}, [theme, stylesCreator]);
|
|
19913
|
-
React__default.useEffect(function() {
|
|
19914
|
-
if (shouldUpdate.current) {
|
|
19915
|
-
update$1(instance.current, props);
|
|
19916
|
-
}
|
|
19917
|
-
shouldUpdate.current = true;
|
|
19918
|
-
});
|
|
19919
|
-
var classes = getClasses(instance.current, props.classes, Component);
|
|
19920
|
-
if (define_process_env_default$n.NODE_ENV !== "production") {
|
|
19921
|
-
React__default.useDebugValue(classes);
|
|
19922
|
-
}
|
|
19923
|
-
return classes;
|
|
19924
|
-
};
|
|
19925
|
-
return useStyles;
|
|
19926
|
-
}
|
|
19927
|
-
var reactIs$1 = { exports: {} };
|
|
19928
|
-
var reactIs_production_min = {};
|
|
19929
|
-
/** @license React v16.13.1
|
|
19930
|
-
* react-is.production.min.js
|
|
19931
|
-
*
|
|
19932
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19933
|
-
*
|
|
19934
|
-
* This source code is licensed under the MIT license found in the
|
|
19935
|
-
* LICENSE file in the root directory of this source tree.
|
|
19936
|
-
*/
|
|
19937
|
-
var hasRequiredReactIs_production_min;
|
|
19938
|
-
function requireReactIs_production_min() {
|
|
19939
|
-
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
19940
|
-
hasRequiredReactIs_production_min = 1;
|
|
19941
|
-
var b2 = "function" === typeof Symbol && Symbol.for, c2 = b2 ? Symbol.for("react.element") : 60103, d3 = b2 ? Symbol.for("react.portal") : 60106, e2 = b2 ? Symbol.for("react.fragment") : 60107, f = b2 ? Symbol.for("react.strict_mode") : 60108, g = b2 ? Symbol.for("react.profiler") : 60114, h3 = b2 ? Symbol.for("react.provider") : 60109, k2 = b2 ? Symbol.for("react.context") : 60110, l = b2 ? Symbol.for("react.async_mode") : 60111, m3 = b2 ? Symbol.for("react.concurrent_mode") : 60111, n = b2 ? Symbol.for("react.forward_ref") : 60112, p = b2 ? Symbol.for("react.suspense") : 60113, q2 = b2 ? Symbol.for("react.suspense_list") : 60120, r2 = b2 ? Symbol.for("react.memo") : 60115, t2 = b2 ? Symbol.for("react.lazy") : 60116, v = b2 ? Symbol.for("react.block") : 60121, w2 = b2 ? Symbol.for("react.fundamental") : 60117, x2 = b2 ? Symbol.for("react.responder") : 60118, y3 = b2 ? Symbol.for("react.scope") : 60119;
|
|
19942
|
-
function z2(a3) {
|
|
19943
|
-
if ("object" === typeof a3 && null !== a3) {
|
|
19944
|
-
var u2 = a3.$$typeof;
|
|
19945
|
-
switch (u2) {
|
|
19946
|
-
case c2:
|
|
19947
|
-
switch (a3 = a3.type, a3) {
|
|
19948
|
-
case l:
|
|
19949
|
-
case m3:
|
|
19950
|
-
case e2:
|
|
19951
|
-
case g:
|
|
19952
|
-
case f:
|
|
19953
|
-
case p:
|
|
19954
|
-
return a3;
|
|
19955
|
-
default:
|
|
19956
|
-
switch (a3 = a3 && a3.$$typeof, a3) {
|
|
19957
|
-
case k2:
|
|
19958
|
-
case n:
|
|
19959
|
-
case t2:
|
|
19960
|
-
case r2:
|
|
19961
|
-
case h3:
|
|
19962
|
-
return a3;
|
|
19963
|
-
default:
|
|
19964
|
-
return u2;
|
|
19965
|
-
}
|
|
19966
|
-
}
|
|
19967
|
-
case d3:
|
|
19968
|
-
return u2;
|
|
19969
|
-
}
|
|
19970
|
-
}
|
|
19971
|
-
}
|
|
19972
|
-
function A(a3) {
|
|
19973
|
-
return z2(a3) === m3;
|
|
19974
|
-
}
|
|
19975
|
-
reactIs_production_min.AsyncMode = l;
|
|
19976
|
-
reactIs_production_min.ConcurrentMode = m3;
|
|
19977
|
-
reactIs_production_min.ContextConsumer = k2;
|
|
19978
|
-
reactIs_production_min.ContextProvider = h3;
|
|
19979
|
-
reactIs_production_min.Element = c2;
|
|
19980
|
-
reactIs_production_min.ForwardRef = n;
|
|
19981
|
-
reactIs_production_min.Fragment = e2;
|
|
19982
|
-
reactIs_production_min.Lazy = t2;
|
|
19983
|
-
reactIs_production_min.Memo = r2;
|
|
19984
|
-
reactIs_production_min.Portal = d3;
|
|
19985
|
-
reactIs_production_min.Profiler = g;
|
|
19986
|
-
reactIs_production_min.StrictMode = f;
|
|
19987
|
-
reactIs_production_min.Suspense = p;
|
|
19988
|
-
reactIs_production_min.isAsyncMode = function(a3) {
|
|
19989
|
-
return A(a3) || z2(a3) === l;
|
|
19990
|
-
};
|
|
19991
|
-
reactIs_production_min.isConcurrentMode = A;
|
|
19992
|
-
reactIs_production_min.isContextConsumer = function(a3) {
|
|
19993
|
-
return z2(a3) === k2;
|
|
19994
|
-
};
|
|
19995
|
-
reactIs_production_min.isContextProvider = function(a3) {
|
|
19996
|
-
return z2(a3) === h3;
|
|
19997
|
-
};
|
|
19998
|
-
reactIs_production_min.isElement = function(a3) {
|
|
19999
|
-
return "object" === typeof a3 && null !== a3 && a3.$$typeof === c2;
|
|
20000
|
-
};
|
|
20001
|
-
reactIs_production_min.isForwardRef = function(a3) {
|
|
20002
|
-
return z2(a3) === n;
|
|
20003
|
-
};
|
|
20004
|
-
reactIs_production_min.isFragment = function(a3) {
|
|
20005
|
-
return z2(a3) === e2;
|
|
20006
|
-
};
|
|
20007
|
-
reactIs_production_min.isLazy = function(a3) {
|
|
20008
|
-
return z2(a3) === t2;
|
|
20009
|
-
};
|
|
20010
|
-
reactIs_production_min.isMemo = function(a3) {
|
|
20011
|
-
return z2(a3) === r2;
|
|
20012
|
-
};
|
|
20013
|
-
reactIs_production_min.isPortal = function(a3) {
|
|
20014
|
-
return z2(a3) === d3;
|
|
20015
|
-
};
|
|
20016
|
-
reactIs_production_min.isProfiler = function(a3) {
|
|
20017
|
-
return z2(a3) === g;
|
|
20018
|
-
};
|
|
20019
|
-
reactIs_production_min.isStrictMode = function(a3) {
|
|
20020
|
-
return z2(a3) === f;
|
|
20021
|
-
};
|
|
20022
|
-
reactIs_production_min.isSuspense = function(a3) {
|
|
20023
|
-
return z2(a3) === p;
|
|
20024
|
-
};
|
|
20025
|
-
reactIs_production_min.isValidElementType = function(a3) {
|
|
20026
|
-
return "string" === typeof a3 || "function" === typeof a3 || a3 === e2 || a3 === m3 || a3 === g || a3 === f || a3 === p || a3 === q2 || "object" === typeof a3 && null !== a3 && (a3.$$typeof === t2 || a3.$$typeof === r2 || a3.$$typeof === h3 || a3.$$typeof === k2 || a3.$$typeof === n || a3.$$typeof === w2 || a3.$$typeof === x2 || a3.$$typeof === y3 || a3.$$typeof === v);
|
|
20027
|
-
};
|
|
20028
|
-
reactIs_production_min.typeOf = z2;
|
|
20029
|
-
return reactIs_production_min;
|
|
20030
|
-
}
|
|
20031
|
-
var reactIs_development = {};
|
|
20032
|
-
var hasRequiredReactIs_development;
|
|
20033
|
-
function requireReactIs_development() {
|
|
20034
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
20035
|
-
hasRequiredReactIs_development = 1;
|
|
20036
|
-
var define_process_env_default2 = {};
|
|
20037
|
-
/** @license React v16.13.1
|
|
20038
|
-
* react-is.development.js
|
|
20039
|
-
*
|
|
20040
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
20041
|
-
*
|
|
20042
|
-
* This source code is licensed under the MIT license found in the
|
|
20043
|
-
* LICENSE file in the root directory of this source tree.
|
|
20044
|
-
*/
|
|
20045
|
-
if (define_process_env_default2.NODE_ENV !== "production") {
|
|
20046
|
-
(function() {
|
|
20047
|
-
var hasSymbol2 = typeof Symbol === "function" && Symbol.for;
|
|
20048
|
-
var REACT_ELEMENT_TYPE = hasSymbol2 ? Symbol.for("react.element") : 60103;
|
|
20049
|
-
var REACT_PORTAL_TYPE = hasSymbol2 ? Symbol.for("react.portal") : 60106;
|
|
20050
|
-
var REACT_FRAGMENT_TYPE = hasSymbol2 ? Symbol.for("react.fragment") : 60107;
|
|
20051
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol2 ? Symbol.for("react.strict_mode") : 60108;
|
|
20052
|
-
var REACT_PROFILER_TYPE = hasSymbol2 ? Symbol.for("react.profiler") : 60114;
|
|
20053
|
-
var REACT_PROVIDER_TYPE = hasSymbol2 ? Symbol.for("react.provider") : 60109;
|
|
20054
|
-
var REACT_CONTEXT_TYPE = hasSymbol2 ? Symbol.for("react.context") : 60110;
|
|
20055
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol2 ? Symbol.for("react.async_mode") : 60111;
|
|
20056
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol2 ? Symbol.for("react.concurrent_mode") : 60111;
|
|
20057
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol2 ? Symbol.for("react.forward_ref") : 60112;
|
|
20058
|
-
var REACT_SUSPENSE_TYPE = hasSymbol2 ? Symbol.for("react.suspense") : 60113;
|
|
20059
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol2 ? Symbol.for("react.suspense_list") : 60120;
|
|
20060
|
-
var REACT_MEMO_TYPE = hasSymbol2 ? Symbol.for("react.memo") : 60115;
|
|
20061
|
-
var REACT_LAZY_TYPE = hasSymbol2 ? Symbol.for("react.lazy") : 60116;
|
|
20062
|
-
var REACT_BLOCK_TYPE = hasSymbol2 ? Symbol.for("react.block") : 60121;
|
|
20063
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol2 ? Symbol.for("react.fundamental") : 60117;
|
|
20064
|
-
var REACT_RESPONDER_TYPE = hasSymbol2 ? Symbol.for("react.responder") : 60118;
|
|
20065
|
-
var REACT_SCOPE_TYPE = hasSymbol2 ? Symbol.for("react.scope") : 60119;
|
|
20066
|
-
function isValidElementType(type2) {
|
|
20067
|
-
return typeof type2 === "string" || typeof type2 === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
20068
|
-
type2 === REACT_FRAGMENT_TYPE || type2 === REACT_CONCURRENT_MODE_TYPE || type2 === REACT_PROFILER_TYPE || type2 === REACT_STRICT_MODE_TYPE || type2 === REACT_SUSPENSE_TYPE || type2 === REACT_SUSPENSE_LIST_TYPE || typeof type2 === "object" && type2 !== null && (type2.$$typeof === REACT_LAZY_TYPE || type2.$$typeof === REACT_MEMO_TYPE || type2.$$typeof === REACT_PROVIDER_TYPE || type2.$$typeof === REACT_CONTEXT_TYPE || type2.$$typeof === REACT_FORWARD_REF_TYPE || type2.$$typeof === REACT_FUNDAMENTAL_TYPE || type2.$$typeof === REACT_RESPONDER_TYPE || type2.$$typeof === REACT_SCOPE_TYPE || type2.$$typeof === REACT_BLOCK_TYPE);
|
|
20069
|
-
}
|
|
20070
|
-
function typeOf(object2) {
|
|
20071
|
-
if (typeof object2 === "object" && object2 !== null) {
|
|
20072
|
-
var $$typeof = object2.$$typeof;
|
|
20073
|
-
switch ($$typeof) {
|
|
20074
|
-
case REACT_ELEMENT_TYPE:
|
|
20075
|
-
var type2 = object2.type;
|
|
20076
|
-
switch (type2) {
|
|
20077
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
20078
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
20079
|
-
case REACT_FRAGMENT_TYPE:
|
|
20080
|
-
case REACT_PROFILER_TYPE:
|
|
20081
|
-
case REACT_STRICT_MODE_TYPE:
|
|
20082
|
-
case REACT_SUSPENSE_TYPE:
|
|
20083
|
-
return type2;
|
|
20084
|
-
default:
|
|
20085
|
-
var $$typeofType = type2 && type2.$$typeof;
|
|
20086
|
-
switch ($$typeofType) {
|
|
20087
|
-
case REACT_CONTEXT_TYPE:
|
|
20088
|
-
case REACT_FORWARD_REF_TYPE:
|
|
20089
|
-
case REACT_LAZY_TYPE:
|
|
20090
|
-
case REACT_MEMO_TYPE:
|
|
20091
|
-
case REACT_PROVIDER_TYPE:
|
|
20092
|
-
return $$typeofType;
|
|
20093
|
-
default:
|
|
20094
|
-
return $$typeof;
|
|
20095
|
-
}
|
|
20096
|
-
}
|
|
20097
|
-
case REACT_PORTAL_TYPE:
|
|
20098
|
-
return $$typeof;
|
|
20099
|
-
}
|
|
20100
|
-
}
|
|
20101
|
-
return void 0;
|
|
20102
|
-
}
|
|
20103
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
20104
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
20105
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
20106
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
20107
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
20108
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
20109
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
20110
|
-
var Lazy2 = REACT_LAZY_TYPE;
|
|
20111
|
-
var Memo = REACT_MEMO_TYPE;
|
|
20112
|
-
var Portal3 = REACT_PORTAL_TYPE;
|
|
20113
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
20114
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
20115
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
20116
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
20117
|
-
function isAsyncMode(object2) {
|
|
20118
|
-
{
|
|
20119
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
20120
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
20121
|
-
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
|
20122
|
-
}
|
|
20123
|
-
}
|
|
20124
|
-
return isConcurrentMode(object2) || typeOf(object2) === REACT_ASYNC_MODE_TYPE;
|
|
20125
|
-
}
|
|
20126
|
-
function isConcurrentMode(object2) {
|
|
20127
|
-
return typeOf(object2) === REACT_CONCURRENT_MODE_TYPE;
|
|
20128
|
-
}
|
|
20129
|
-
function isContextConsumer(object2) {
|
|
20130
|
-
return typeOf(object2) === REACT_CONTEXT_TYPE;
|
|
20131
|
-
}
|
|
20132
|
-
function isContextProvider(object2) {
|
|
20133
|
-
return typeOf(object2) === REACT_PROVIDER_TYPE;
|
|
20134
|
-
}
|
|
20135
|
-
function isElement2(object2) {
|
|
20136
|
-
return typeof object2 === "object" && object2 !== null && object2.$$typeof === REACT_ELEMENT_TYPE;
|
|
20137
|
-
}
|
|
20138
|
-
function isForwardRef(object2) {
|
|
20139
|
-
return typeOf(object2) === REACT_FORWARD_REF_TYPE;
|
|
20140
|
-
}
|
|
20141
|
-
function isFragment(object2) {
|
|
20142
|
-
return typeOf(object2) === REACT_FRAGMENT_TYPE;
|
|
20143
|
-
}
|
|
20144
|
-
function isLazy(object2) {
|
|
20145
|
-
return typeOf(object2) === REACT_LAZY_TYPE;
|
|
20146
|
-
}
|
|
20147
|
-
function isMemo(object2) {
|
|
20148
|
-
return typeOf(object2) === REACT_MEMO_TYPE;
|
|
20149
|
-
}
|
|
20150
|
-
function isPortal(object2) {
|
|
20151
|
-
return typeOf(object2) === REACT_PORTAL_TYPE;
|
|
20152
|
-
}
|
|
20153
|
-
function isProfiler(object2) {
|
|
20154
|
-
return typeOf(object2) === REACT_PROFILER_TYPE;
|
|
20155
|
-
}
|
|
20156
|
-
function isStrictMode(object2) {
|
|
20157
|
-
return typeOf(object2) === REACT_STRICT_MODE_TYPE;
|
|
20158
|
-
}
|
|
20159
|
-
function isSuspense(object2) {
|
|
20160
|
-
return typeOf(object2) === REACT_SUSPENSE_TYPE;
|
|
19675
|
+
baseClasses: state.cacheClasses.lastJSS,
|
|
19676
|
+
newClasses: classes,
|
|
19677
|
+
Component
|
|
19678
|
+
});
|
|
19679
|
+
}
|
|
19680
|
+
return state.cacheClasses.value;
|
|
19681
|
+
}
|
|
19682
|
+
function attach(_ref22, props) {
|
|
19683
|
+
var state = _ref22.state, theme = _ref22.theme, stylesOptions = _ref22.stylesOptions, stylesCreator = _ref22.stylesCreator, name = _ref22.name;
|
|
19684
|
+
if (stylesOptions.disableGeneration) {
|
|
19685
|
+
return;
|
|
19686
|
+
}
|
|
19687
|
+
var sheetManager = multiKeyStore.get(stylesOptions.sheetsManager, stylesCreator, theme);
|
|
19688
|
+
if (!sheetManager) {
|
|
19689
|
+
sheetManager = {
|
|
19690
|
+
refs: 0,
|
|
19691
|
+
staticSheet: null,
|
|
19692
|
+
dynamicStyles: null
|
|
19693
|
+
};
|
|
19694
|
+
multiKeyStore.set(stylesOptions.sheetsManager, stylesCreator, theme, sheetManager);
|
|
19695
|
+
}
|
|
19696
|
+
var options = _extends$2({}, stylesCreator.options, stylesOptions, {
|
|
19697
|
+
theme,
|
|
19698
|
+
flip: typeof stylesOptions.flip === "boolean" ? stylesOptions.flip : theme.direction === "rtl"
|
|
19699
|
+
});
|
|
19700
|
+
options.generateId = options.serverGenerateClassName || options.generateClassName;
|
|
19701
|
+
var sheetsRegistry = stylesOptions.sheetsRegistry;
|
|
19702
|
+
if (sheetManager.refs === 0) {
|
|
19703
|
+
var staticSheet;
|
|
19704
|
+
if (stylesOptions.sheetsCache) {
|
|
19705
|
+
staticSheet = multiKeyStore.get(stylesOptions.sheetsCache, stylesCreator, theme);
|
|
19706
|
+
}
|
|
19707
|
+
var styles3 = stylesCreator.create(theme, name);
|
|
19708
|
+
if (!staticSheet) {
|
|
19709
|
+
staticSheet = stylesOptions.jss.createStyleSheet(styles3, _extends$2({
|
|
19710
|
+
link: false
|
|
19711
|
+
}, options));
|
|
19712
|
+
staticSheet.attach();
|
|
19713
|
+
if (stylesOptions.sheetsCache) {
|
|
19714
|
+
multiKeyStore.set(stylesOptions.sheetsCache, stylesCreator, theme, staticSheet);
|
|
20161
19715
|
}
|
|
20162
|
-
|
|
20163
|
-
|
|
20164
|
-
|
|
20165
|
-
|
|
20166
|
-
|
|
20167
|
-
|
|
20168
|
-
reactIs_development.Fragment = Fragment;
|
|
20169
|
-
reactIs_development.Lazy = Lazy2;
|
|
20170
|
-
reactIs_development.Memo = Memo;
|
|
20171
|
-
reactIs_development.Portal = Portal3;
|
|
20172
|
-
reactIs_development.Profiler = Profiler;
|
|
20173
|
-
reactIs_development.StrictMode = StrictMode;
|
|
20174
|
-
reactIs_development.Suspense = Suspense;
|
|
20175
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
20176
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
20177
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
20178
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
20179
|
-
reactIs_development.isElement = isElement2;
|
|
20180
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
20181
|
-
reactIs_development.isFragment = isFragment;
|
|
20182
|
-
reactIs_development.isLazy = isLazy;
|
|
20183
|
-
reactIs_development.isMemo = isMemo;
|
|
20184
|
-
reactIs_development.isPortal = isPortal;
|
|
20185
|
-
reactIs_development.isProfiler = isProfiler;
|
|
20186
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
20187
|
-
reactIs_development.isSuspense = isSuspense;
|
|
20188
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
20189
|
-
reactIs_development.typeOf = typeOf;
|
|
20190
|
-
})();
|
|
19716
|
+
}
|
|
19717
|
+
if (sheetsRegistry) {
|
|
19718
|
+
sheetsRegistry.add(staticSheet);
|
|
19719
|
+
}
|
|
19720
|
+
sheetManager.staticSheet = staticSheet;
|
|
19721
|
+
sheetManager.dynamicStyles = getDynamicStyles(styles3);
|
|
20191
19722
|
}
|
|
20192
|
-
|
|
19723
|
+
if (sheetManager.dynamicStyles) {
|
|
19724
|
+
var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, _extends$2({
|
|
19725
|
+
link: true
|
|
19726
|
+
}, options));
|
|
19727
|
+
dynamicSheet.update(props);
|
|
19728
|
+
dynamicSheet.attach();
|
|
19729
|
+
state.dynamicSheet = dynamicSheet;
|
|
19730
|
+
state.classes = mergeClasses({
|
|
19731
|
+
baseClasses: sheetManager.staticSheet.classes,
|
|
19732
|
+
newClasses: dynamicSheet.classes
|
|
19733
|
+
});
|
|
19734
|
+
if (sheetsRegistry) {
|
|
19735
|
+
sheetsRegistry.add(dynamicSheet);
|
|
19736
|
+
}
|
|
19737
|
+
} else {
|
|
19738
|
+
state.classes = sheetManager.staticSheet.classes;
|
|
19739
|
+
}
|
|
19740
|
+
sheetManager.refs += 1;
|
|
20193
19741
|
}
|
|
20194
|
-
|
|
20195
|
-
|
|
20196
|
-
|
|
20197
|
-
|
|
20198
|
-
|
|
19742
|
+
function update$1(_ref3, props) {
|
|
19743
|
+
var state = _ref3.state;
|
|
19744
|
+
if (state.dynamicSheet) {
|
|
19745
|
+
state.dynamicSheet.update(props);
|
|
19746
|
+
}
|
|
19747
|
+
}
|
|
19748
|
+
function detach(_ref4) {
|
|
19749
|
+
var state = _ref4.state, theme = _ref4.theme, stylesOptions = _ref4.stylesOptions, stylesCreator = _ref4.stylesCreator;
|
|
19750
|
+
if (stylesOptions.disableGeneration) {
|
|
19751
|
+
return;
|
|
19752
|
+
}
|
|
19753
|
+
var sheetManager = multiKeyStore.get(stylesOptions.sheetsManager, stylesCreator, theme);
|
|
19754
|
+
sheetManager.refs -= 1;
|
|
19755
|
+
var sheetsRegistry = stylesOptions.sheetsRegistry;
|
|
19756
|
+
if (sheetManager.refs === 0) {
|
|
19757
|
+
multiKeyStore.delete(stylesOptions.sheetsManager, stylesCreator, theme);
|
|
19758
|
+
stylesOptions.jss.removeStyleSheet(sheetManager.staticSheet);
|
|
19759
|
+
if (sheetsRegistry) {
|
|
19760
|
+
sheetsRegistry.remove(sheetManager.staticSheet);
|
|
19761
|
+
}
|
|
19762
|
+
}
|
|
19763
|
+
if (state.dynamicSheet) {
|
|
19764
|
+
stylesOptions.jss.removeStyleSheet(state.dynamicSheet);
|
|
19765
|
+
if (sheetsRegistry) {
|
|
19766
|
+
sheetsRegistry.remove(state.dynamicSheet);
|
|
19767
|
+
}
|
|
19768
|
+
}
|
|
19769
|
+
}
|
|
19770
|
+
function useSynchronousEffect(func, values2) {
|
|
19771
|
+
var key = React__default.useRef([]);
|
|
19772
|
+
var output;
|
|
19773
|
+
var currentKey = React__default.useMemo(function() {
|
|
19774
|
+
return {};
|
|
19775
|
+
}, values2);
|
|
19776
|
+
if (key.current !== currentKey) {
|
|
19777
|
+
key.current = currentKey;
|
|
19778
|
+
output = func();
|
|
19779
|
+
}
|
|
19780
|
+
React__default.useEffect(
|
|
19781
|
+
function() {
|
|
19782
|
+
return function() {
|
|
19783
|
+
if (output) {
|
|
19784
|
+
output();
|
|
19785
|
+
}
|
|
19786
|
+
};
|
|
19787
|
+
},
|
|
19788
|
+
[currentKey]
|
|
19789
|
+
// eslint-disable-line react-hooks/exhaustive-deps
|
|
19790
|
+
);
|
|
19791
|
+
}
|
|
19792
|
+
function makeStyles(stylesOrCreator) {
|
|
19793
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
19794
|
+
var name = options.name, classNamePrefixOption = options.classNamePrefix, Component = options.Component, _options$defaultTheme = options.defaultTheme, defaultTheme2 = _options$defaultTheme === void 0 ? noopTheme : _options$defaultTheme, stylesOptions2 = _objectWithoutProperties(options, ["name", "classNamePrefix", "Component", "defaultTheme"]);
|
|
19795
|
+
var stylesCreator = getStylesCreator(stylesOrCreator);
|
|
19796
|
+
var classNamePrefix = name || classNamePrefixOption || "makeStyles";
|
|
19797
|
+
stylesCreator.options = {
|
|
19798
|
+
index: increment(),
|
|
19799
|
+
name,
|
|
19800
|
+
meta: classNamePrefix,
|
|
19801
|
+
classNamePrefix
|
|
19802
|
+
};
|
|
19803
|
+
var useStyles = function useStyles2() {
|
|
19804
|
+
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
19805
|
+
var theme = useTheme() || defaultTheme2;
|
|
19806
|
+
var stylesOptions = _extends$2({}, React__default.useContext(StylesContext), stylesOptions2);
|
|
19807
|
+
var instance = React__default.useRef();
|
|
19808
|
+
var shouldUpdate = React__default.useRef();
|
|
19809
|
+
useSynchronousEffect(function() {
|
|
19810
|
+
var current = {
|
|
19811
|
+
name,
|
|
19812
|
+
state: {},
|
|
19813
|
+
stylesCreator,
|
|
19814
|
+
stylesOptions,
|
|
19815
|
+
theme
|
|
19816
|
+
};
|
|
19817
|
+
attach(current, props);
|
|
19818
|
+
shouldUpdate.current = false;
|
|
19819
|
+
instance.current = current;
|
|
19820
|
+
return function() {
|
|
19821
|
+
detach(current);
|
|
19822
|
+
};
|
|
19823
|
+
}, [theme, stylesCreator]);
|
|
19824
|
+
React__default.useEffect(function() {
|
|
19825
|
+
if (shouldUpdate.current) {
|
|
19826
|
+
update$1(instance.current, props);
|
|
19827
|
+
}
|
|
19828
|
+
shouldUpdate.current = true;
|
|
19829
|
+
});
|
|
19830
|
+
var classes = getClasses(instance.current, props.classes, Component);
|
|
19831
|
+
if (define_process_env_default$m.NODE_ENV !== "production") {
|
|
19832
|
+
React__default.useDebugValue(classes);
|
|
19833
|
+
}
|
|
19834
|
+
return classes;
|
|
19835
|
+
};
|
|
19836
|
+
return useStyles;
|
|
20199
19837
|
}
|
|
20200
|
-
var reactIsExports = reactIs$1.exports;
|
|
20201
19838
|
var reactIs = reactIsExports;
|
|
20202
19839
|
var REACT_STATICS = {
|
|
20203
19840
|
childContextTypes: true,
|
|
@@ -25963,23 +25600,31 @@ const useSelectedCity = () => {
|
|
|
25963
25600
|
return null;
|
|
25964
25601
|
};
|
|
25965
25602
|
const BUGSNAG_API_KEY = typeof window !== "undefined" ? (_a = window.__HEYCATER_CONFIG__) == null ? void 0 : _a.bugsnagApiKey : void 0;
|
|
25966
|
-
|
|
25967
|
-
|
|
25968
|
-
apiKey: BUGSNAG_API_KEY,
|
|
25969
|
-
plugins: [new BugsnagPluginReact(React__default)],
|
|
25970
|
-
enabledReleaseStages: ["production", "staging"],
|
|
25971
|
-
collectUserIp: false,
|
|
25972
|
-
logger: false
|
|
25973
|
-
});
|
|
25974
|
-
}
|
|
25975
|
-
const BugsnagExport = BUGSNAG_API_KEY ? Bugsnag : {
|
|
25976
|
-
notify: (error) => console.error("[Bugsnag disabled]", error),
|
|
25603
|
+
const NoopBugsnag = {
|
|
25604
|
+
notify: (error, onError2) => console.error("[Bugsnag disabled]", error),
|
|
25977
25605
|
leaveBreadcrumb: () => {
|
|
25978
25606
|
},
|
|
25979
25607
|
getPlugin: () => ({
|
|
25980
25608
|
createErrorBoundary: () => ({ children }) => children
|
|
25981
25609
|
})
|
|
25982
25610
|
};
|
|
25611
|
+
const BugsnagExport = NoopBugsnag;
|
|
25612
|
+
if (BUGSNAG_API_KEY) {
|
|
25613
|
+
Promise.all([
|
|
25614
|
+
import("@bugsnag/js"),
|
|
25615
|
+
import("@bugsnag/plugin-react")
|
|
25616
|
+
]).then(([{ default: Bugsnag }, { default: BugsnagPluginReact }]) => {
|
|
25617
|
+
Bugsnag.start({
|
|
25618
|
+
apiKey: BUGSNAG_API_KEY,
|
|
25619
|
+
plugins: [new BugsnagPluginReact(React__default)],
|
|
25620
|
+
enabledReleaseStages: ["production", "staging"],
|
|
25621
|
+
collectUserIp: false,
|
|
25622
|
+
logger: false
|
|
25623
|
+
});
|
|
25624
|
+
Object.assign(BugsnagExport, Bugsnag);
|
|
25625
|
+
}).catch(() => {
|
|
25626
|
+
});
|
|
25627
|
+
}
|
|
25983
25628
|
const getAddressValidatorServiceURL = () => `https://addressvalidation.googleapis.com/v1:validateAddress?key=${getConfig().googleMapsApiKey}`;
|
|
25984
25629
|
function findComponent(components, type2) {
|
|
25985
25630
|
return components.find((c2) => c2.componentType === type2);
|
|
@@ -27018,6 +26663,7 @@ function RequestForm({ header = null }) {
|
|
|
27018
26663
|
handleDeliveryAddressChange();
|
|
27019
26664
|
}, [deliveryAddress]);
|
|
27020
26665
|
const handleSubmit = async (values2) => {
|
|
26666
|
+
var _a3, _b2;
|
|
27021
26667
|
handleDisableCTA(true);
|
|
27022
26668
|
let redirectRoute = "";
|
|
27023
26669
|
if (currentUserAccount) {
|
|
@@ -27039,6 +26685,7 @@ function RequestForm({ header = null }) {
|
|
|
27039
26685
|
if (success && isUkLead) {
|
|
27040
26686
|
setShowLeadSuccess(true);
|
|
27041
26687
|
window.gtag && window.gtag("event", "submit_qf_request");
|
|
26688
|
+
(_a3 = window.dataLayer) == null ? void 0 : _a3.push({ event: "funnel_form_submit" });
|
|
27042
26689
|
return;
|
|
27043
26690
|
}
|
|
27044
26691
|
if (signInToken) {
|
|
@@ -27049,6 +26696,7 @@ function RequestForm({ header = null }) {
|
|
|
27049
26696
|
}
|
|
27050
26697
|
if (qualification == null ? void 0 : qualification.selectedMenu) ;
|
|
27051
26698
|
window.gtag && window.gtag("event", "submit_qf_request");
|
|
26699
|
+
(_b2 = window.dataLayer) == null ? void 0 : _b2.push({ event: "funnel_form_submit" });
|
|
27052
26700
|
actions.setRequest(values2);
|
|
27053
26701
|
redirectToCustomerAccountRequest(redirectRoute);
|
|
27054
26702
|
};
|
|
@@ -27056,6 +26704,7 @@ function RequestForm({ header = null }) {
|
|
|
27056
26704
|
const content = /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
27057
26705
|
Button,
|
|
27058
26706
|
{
|
|
26707
|
+
id: "request-form__submit-btn",
|
|
27059
26708
|
block: "true",
|
|
27060
26709
|
"data-logged-in": !!currentUserAccount,
|
|
27061
26710
|
"data-valid": isFormValid,
|
|
@@ -27365,6 +27014,79 @@ const FormContainer = styled.div`
|
|
|
27365
27014
|
const StyledModal = styled(Modal)`
|
|
27366
27015
|
overflow-y: auto;
|
|
27367
27016
|
`;
|
|
27017
|
+
const FullscreenHeader = ({
|
|
27018
|
+
currentStep,
|
|
27019
|
+
stepCount,
|
|
27020
|
+
onCancel
|
|
27021
|
+
}) => {
|
|
27022
|
+
const { t: t2 } = useTranslation();
|
|
27023
|
+
const percent2 = currentStep / stepCount * 100;
|
|
27024
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(HeaderBar, { children: [
|
|
27025
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CancelLink, { id: "fullscreen-funnel__cancel-btn", onClick: onCancel, children: t2("common:labels.cancel") }),
|
|
27026
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ProgressBarWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressTrack, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressFill, { style: { width: `${percent2}%` } }) }) }),
|
|
27027
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(StepCounter, { children: [
|
|
27028
|
+
currentStep,
|
|
27029
|
+
"/",
|
|
27030
|
+
stepCount,
|
|
27031
|
+
" ",
|
|
27032
|
+
t2("qualification:steps")
|
|
27033
|
+
] })
|
|
27034
|
+
] });
|
|
27035
|
+
};
|
|
27036
|
+
const HeaderBar = styled.div`
|
|
27037
|
+
display: flex;
|
|
27038
|
+
align-items: center;
|
|
27039
|
+
height: 56px;
|
|
27040
|
+
padding: 0 ${({ theme }) => theme.spacing(2)}px;
|
|
27041
|
+
background: white;
|
|
27042
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.grey[200]};
|
|
27043
|
+
flex-shrink: 0;
|
|
27044
|
+
z-index: 10;
|
|
27045
|
+
|
|
27046
|
+
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
27047
|
+
padding: 0 ${({ theme }) => theme.spacing(3)}px;
|
|
27048
|
+
}
|
|
27049
|
+
`;
|
|
27050
|
+
const CancelLink = styled.button`
|
|
27051
|
+
background: none;
|
|
27052
|
+
border: none;
|
|
27053
|
+
cursor: pointer;
|
|
27054
|
+
font-size: 14px;
|
|
27055
|
+
color: ${({ theme }) => theme.palette.grey[600]};
|
|
27056
|
+
padding: 0;
|
|
27057
|
+
white-space: nowrap;
|
|
27058
|
+
|
|
27059
|
+
&:hover {
|
|
27060
|
+
color: ${({ theme }) => theme.palette.grey[900]};
|
|
27061
|
+
}
|
|
27062
|
+
`;
|
|
27063
|
+
const ProgressBarWrapper = styled.div`
|
|
27064
|
+
flex: 1;
|
|
27065
|
+
display: flex;
|
|
27066
|
+
align-items: center;
|
|
27067
|
+
justify-content: center;
|
|
27068
|
+
padding: 0 ${({ theme }) => theme.spacing(2)}px;
|
|
27069
|
+
`;
|
|
27070
|
+
const ProgressTrack = styled.div`
|
|
27071
|
+
height: 8px;
|
|
27072
|
+
background: ${({ theme }) => theme.palette.grey[100]};
|
|
27073
|
+
border-radius: 8px;
|
|
27074
|
+
overflow: hidden;
|
|
27075
|
+
width: 100%;
|
|
27076
|
+
max-width: 300px;
|
|
27077
|
+
`;
|
|
27078
|
+
const ProgressFill = styled.div`
|
|
27079
|
+
height: 100%;
|
|
27080
|
+
background: ${({ theme }) => theme.palette.primary.main};
|
|
27081
|
+
border-radius: 8px;
|
|
27082
|
+
transition: width 250ms ease;
|
|
27083
|
+
`;
|
|
27084
|
+
const StepCounter = styled.span`
|
|
27085
|
+
font-size: 14px;
|
|
27086
|
+
font-weight: 600;
|
|
27087
|
+
color: ${({ theme }) => theme.palette.grey[600]};
|
|
27088
|
+
white-space: nowrap;
|
|
27089
|
+
`;
|
|
27368
27090
|
const CircularLoader = ({ variant }) => {
|
|
27369
27091
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularAnimation, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
27370
27092
|
"svg",
|
|
@@ -27379,7 +27101,7 @@ const CircularLoader = ({ variant }) => {
|
|
|
27379
27101
|
"path",
|
|
27380
27102
|
{
|
|
27381
27103
|
d: "M200.5 100C200.5 155.228 155.728 200 100.5 200C45.2715 200 0.5 155.228 0.5 100C0.5 44.7715 45.2715 0 100.5 0C155.728 0 200.5 44.7715 200.5 100ZM28.1509 100C28.1509 139.957 60.5427 172.349 100.5 172.349C140.457 172.349 172.849 139.957 172.849 100C172.849 60.0427 140.457 27.6509 100.5 27.6509C60.5427 27.6509 28.1509 60.0427 28.1509 100Z",
|
|
27382
|
-
fill: variant === "light" ? "white" : "#
|
|
27104
|
+
fill: variant === "light" ? "white" : "#F95524",
|
|
27383
27105
|
fillOpacity: "0.2"
|
|
27384
27106
|
}
|
|
27385
27107
|
),
|
|
@@ -27387,7 +27109,7 @@ const CircularLoader = ({ variant }) => {
|
|
|
27387
27109
|
"path",
|
|
27388
27110
|
{
|
|
27389
27111
|
d: "M200.5 100C200.5 86.8678 197.913 73.8642 192.888 61.7317C187.862 49.5991 180.497 38.5752 171.211 29.2893C161.925 20.0035 150.901 12.6375 138.768 7.61204C126.636 2.58657 113.632 -2.1395e-06 100.5 0V27.6509C110.001 27.6509 119.409 29.5222 128.187 33.1581C136.965 36.794 144.94 42.1232 151.659 48.8414C158.377 55.5597 163.706 63.5354 167.342 72.3132C170.978 81.091 172.849 90.499 172.849 100H200.5Z",
|
|
27390
|
-
fill: variant === "light" ? "white" : "#
|
|
27112
|
+
fill: variant === "light" ? "white" : "#F95524"
|
|
27391
27113
|
}
|
|
27392
27114
|
)
|
|
27393
27115
|
]
|
|
@@ -28396,7 +28118,10 @@ const embeddedFunnel$1 = {
|
|
|
28396
28118
|
title: "Kontaktinformationen"
|
|
28397
28119
|
},
|
|
28398
28120
|
city: {
|
|
28399
|
-
title: "
|
|
28121
|
+
title: "Wähle Deine Stadt:",
|
|
28122
|
+
title_meetings_events: "Wähle Deine Stadt:",
|
|
28123
|
+
title_regular_employee_catering: "Organisiere regelmäßiges Mittagessen für Dein Team. Wähle Deine Stadt:",
|
|
28124
|
+
title_full_service_event: "Plane Dein Firmenevent inklusive Catering, Location und Organisation. Wähle Deine Stadt:",
|
|
28400
28125
|
titleShort: "Wähle Deine Stadt:",
|
|
28401
28126
|
nextTo: "Weiter zur Stadtauswahl"
|
|
28402
28127
|
},
|
|
@@ -28432,6 +28157,9 @@ const embeddedFunnel$1 = {
|
|
|
28432
28157
|
budgetAndPeople: {
|
|
28433
28158
|
title: "Wie viele Personen sollen ca. verköstigt werden und was hast du für ein Budget?"
|
|
28434
28159
|
},
|
|
28160
|
+
budgetRange: {
|
|
28161
|
+
title: "Wie hoch ist dein geschätztes Budget?"
|
|
28162
|
+
},
|
|
28435
28163
|
customerTier: {
|
|
28436
28164
|
title: "heycater! ist spezialisiert auf Kunden mit regelmäßigem Cateringbedarf",
|
|
28437
28165
|
nextTo: "Weiter"
|
|
@@ -29582,7 +29310,10 @@ const embeddedFunnel = {
|
|
|
29582
29310
|
title: "Contact Information"
|
|
29583
29311
|
},
|
|
29584
29312
|
city: {
|
|
29585
|
-
title: "
|
|
29313
|
+
title: "Choose your city:",
|
|
29314
|
+
title_meetings_events: "Choose your city:",
|
|
29315
|
+
title_regular_employee_catering: "Organize regular lunches for your team. Choose your city:",
|
|
29316
|
+
title_full_service_event: "Plan your corporate event including catering, location, and organization. Choose your city:",
|
|
29586
29317
|
titleShort: "Choose your city:",
|
|
29587
29318
|
nextTo: "Continue to the city selection"
|
|
29588
29319
|
},
|
|
@@ -29618,6 +29349,9 @@ const embeddedFunnel = {
|
|
|
29618
29349
|
budgetAndPeople: {
|
|
29619
29350
|
title: "How many people are to be catered for and what is your budget?"
|
|
29620
29351
|
},
|
|
29352
|
+
budgetRange: {
|
|
29353
|
+
title: "What is your estimated budget?"
|
|
29354
|
+
},
|
|
29621
29355
|
customerTier: {
|
|
29622
29356
|
title: "heycater! specializes in customers with regular catering needs",
|
|
29623
29357
|
nextTo: "Next"
|
|
@@ -30046,11 +29780,13 @@ const EmbeddedFunnel = React__default.forwardRef(
|
|
|
30046
29780
|
slides,
|
|
30047
29781
|
renderTitle,
|
|
30048
29782
|
titleTranslationKeys,
|
|
30049
|
-
LayoutComponent = EmbeddedQuestionLayout
|
|
29783
|
+
LayoutComponent = EmbeddedQuestionLayout,
|
|
29784
|
+
mode = "embedded",
|
|
29785
|
+
onCancel
|
|
30050
29786
|
}, ref2) => {
|
|
30051
29787
|
var _a2, _b, _c, _d, _e, _f, _g;
|
|
30052
29788
|
const scrollHelperRef = useRef(null);
|
|
30053
|
-
const onQuestionChange = useCallback(() => {
|
|
29789
|
+
const onQuestionChange = useCallback((step2) => {
|
|
30054
29790
|
if (scrollHelperRef && (scrollHelperRef == null ? void 0 : scrollHelperRef.current)) {
|
|
30055
29791
|
scrollHelperRef.current.scrollIntoView({
|
|
30056
29792
|
inline: "nearest",
|
|
@@ -30058,6 +29794,12 @@ const EmbeddedFunnel = React__default.forwardRef(
|
|
|
30058
29794
|
behavior: "smooth"
|
|
30059
29795
|
});
|
|
30060
29796
|
}
|
|
29797
|
+
if (step2 && typeof window !== "undefined" && window.dataLayer) {
|
|
29798
|
+
window.dataLayer.push({
|
|
29799
|
+
event: "funnel_step_view",
|
|
29800
|
+
funnel_step_id: step2.id
|
|
29801
|
+
});
|
|
29802
|
+
}
|
|
30061
29803
|
}, []);
|
|
30062
29804
|
const { state, actions, canContinue } = useQualification({
|
|
30063
29805
|
onQuestionChange
|
|
@@ -30116,13 +29858,18 @@ const EmbeddedFunnel = React__default.forwardRef(
|
|
|
30116
29858
|
if (stepId === "event_date" && ((_g = slides == null ? void 0 : slides.dateAndLead) == null ? void 0 : _g.whiteWrapper)) {
|
|
30117
29859
|
textColor = "dark";
|
|
30118
29860
|
}
|
|
29861
|
+
const isFullscreen = mode === "fullscreen";
|
|
29862
|
+
const enabledSteps = state.qualification.steps.filter((q2) => !q2.disabled);
|
|
29863
|
+
const handleCancel = onCancel || (() => window.history.back());
|
|
30119
29864
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
30120
29865
|
FormWrapper,
|
|
30121
29866
|
{
|
|
30122
29867
|
$textColor: textColor,
|
|
29868
|
+
$mode: mode,
|
|
30123
29869
|
tabIndex: 0,
|
|
30124
29870
|
ref: ref2,
|
|
30125
29871
|
"data-embedded-funnel": true,
|
|
29872
|
+
"data-ph-capture-attribute-funnel-step": stepId || void 0,
|
|
30126
29873
|
name: "step" in state.qualification ? state.qualification.step.id : state.status,
|
|
30127
29874
|
onSubmit: (e2) => {
|
|
30128
29875
|
e2.preventDefault();
|
|
@@ -30130,8 +29877,16 @@ const EmbeddedFunnel = React__default.forwardRef(
|
|
|
30130
29877
|
},
|
|
30131
29878
|
onKeyPressCapture: onKeyPress,
|
|
30132
29879
|
children: [
|
|
29880
|
+
isFullscreen && state.status === QUALIFICATION_STATUS.answering && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29881
|
+
FullscreenHeader,
|
|
29882
|
+
{
|
|
29883
|
+
currentStep: state.qualification.stepIndex + 1,
|
|
29884
|
+
stepCount: enabledSteps.length,
|
|
29885
|
+
onCancel: handleCancel
|
|
29886
|
+
}
|
|
29887
|
+
),
|
|
30133
29888
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Box, { position: "absolute", top: "-120px", ref: scrollHelperRef }),
|
|
30134
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { width: "100%", pb: 6, children: [
|
|
29889
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { width: "100%", pb: isFullscreen ? 0 : 6, flexGrow: 1, display: "flex", flexDirection: "column", children: [
|
|
30135
29890
|
state.status === QUALIFICATION_STATUS.answering && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30136
29891
|
EmbeddedQuestion,
|
|
30137
29892
|
{
|
|
@@ -30141,7 +29896,8 @@ const EmbeddedFunnel = React__default.forwardRef(
|
|
|
30141
29896
|
ratings,
|
|
30142
29897
|
renderTitle,
|
|
30143
29898
|
LayoutComponent,
|
|
30144
|
-
titleTranslationKeys
|
|
29899
|
+
titleTranslationKeys,
|
|
29900
|
+
mode
|
|
30145
29901
|
}
|
|
30146
29902
|
),
|
|
30147
29903
|
state.status === QUALIFICATION_STATUS.answered && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
@@ -30164,6 +29920,12 @@ const FormWrapper = styled.form`
|
|
|
30164
29920
|
width: 100%;
|
|
30165
29921
|
position: relative;
|
|
30166
29922
|
|
|
29923
|
+
${({ $mode }) => $mode === "fullscreen" ? `
|
|
29924
|
+
min-height: 100vh;
|
|
29925
|
+
display: flex;
|
|
29926
|
+
flex-direction: column;
|
|
29927
|
+
` : ""}
|
|
29928
|
+
|
|
30167
29929
|
:focus,
|
|
30168
29930
|
:focus-visible {
|
|
30169
29931
|
outline: none;
|
|
@@ -30581,7 +30343,9 @@ function QualificationFunnel({
|
|
|
30581
30343
|
locale: locale2 = "de",
|
|
30582
30344
|
storageKey = "heycater-funnel",
|
|
30583
30345
|
onBackground = "light",
|
|
30584
|
-
highlightColor = "primary"
|
|
30346
|
+
highlightColor = "primary",
|
|
30347
|
+
mode = "embedded",
|
|
30348
|
+
onCancel
|
|
30585
30349
|
}) {
|
|
30586
30350
|
const [ratings, setRatings] = useState(null);
|
|
30587
30351
|
const [initialized, setInitialized] = useState(false);
|
|
@@ -30617,7 +30381,9 @@ function QualificationFunnel({
|
|
|
30617
30381
|
{
|
|
30618
30382
|
onBackground,
|
|
30619
30383
|
highlightColor,
|
|
30620
|
-
ratings
|
|
30384
|
+
ratings,
|
|
30385
|
+
mode,
|
|
30386
|
+
onCancel
|
|
30621
30387
|
}
|
|
30622
30388
|
)
|
|
30623
30389
|
}
|