@paubox/ui 1.10.0 → 1.11.5
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/index.esm.js +455 -353
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -1711,28 +1711,28 @@ function _templateObject1$j() {
|
|
|
1711
1711
|
};
|
|
1712
1712
|
return data;
|
|
1713
1713
|
}
|
|
1714
|
-
function _templateObject2$
|
|
1714
|
+
function _templateObject2$j() {
|
|
1715
1715
|
var data = _tagged_template_literal$u([
|
|
1716
1716
|
"\n box-shadow: 0px 8px 16px 0px #0000001f;\n"
|
|
1717
1717
|
]);
|
|
1718
|
-
_templateObject2$
|
|
1718
|
+
_templateObject2$j = function _templateObject() {
|
|
1719
1719
|
return data;
|
|
1720
1720
|
};
|
|
1721
1721
|
return data;
|
|
1722
1722
|
}
|
|
1723
|
-
function _templateObject3$
|
|
1723
|
+
function _templateObject3$f() {
|
|
1724
1724
|
var data = _tagged_template_literal$u([
|
|
1725
1725
|
"\n box-shadow: 0px 8px 32px 0px #00000029;\n"
|
|
1726
1726
|
]);
|
|
1727
|
-
_templateObject3$
|
|
1727
|
+
_templateObject3$f = function _templateObject() {
|
|
1728
1728
|
return data;
|
|
1729
1729
|
};
|
|
1730
1730
|
return data;
|
|
1731
1731
|
}
|
|
1732
1732
|
var elevation100 = css(_templateObject$u());
|
|
1733
1733
|
var elevation200 = css(_templateObject1$j());
|
|
1734
|
-
var elevation300 = css(_templateObject2$
|
|
1735
|
-
var elevation400 = css(_templateObject3$
|
|
1734
|
+
var elevation300 = css(_templateObject2$j());
|
|
1735
|
+
var elevation400 = css(_templateObject3$f());
|
|
1736
1736
|
|
|
1737
1737
|
var elevation = /*#__PURE__*/Object.freeze({
|
|
1738
1738
|
__proto__: null,
|
|
@@ -1779,7 +1779,7 @@ function _templateObject1$i() {
|
|
|
1779
1779
|
};
|
|
1780
1780
|
return data;
|
|
1781
1781
|
}
|
|
1782
|
-
function _templateObject2$
|
|
1782
|
+
function _templateObject2$i() {
|
|
1783
1783
|
var data = _tagged_template_literal$t([
|
|
1784
1784
|
"\n ",
|
|
1785
1785
|
"\n font-size: ",
|
|
@@ -1787,12 +1787,12 @@ function _templateObject2$h() {
|
|
|
1787
1787
|
"rem;\n letter-spacing: ",
|
|
1788
1788
|
"px;\n font-weight: 600;\n"
|
|
1789
1789
|
]);
|
|
1790
|
-
_templateObject2$
|
|
1790
|
+
_templateObject2$i = function _templateObject() {
|
|
1791
1791
|
return data;
|
|
1792
1792
|
};
|
|
1793
1793
|
return data;
|
|
1794
1794
|
}
|
|
1795
|
-
function _templateObject3$
|
|
1795
|
+
function _templateObject3$e() {
|
|
1796
1796
|
var data = _tagged_template_literal$t([
|
|
1797
1797
|
"\n ",
|
|
1798
1798
|
"\n font-size: ",
|
|
@@ -1800,7 +1800,7 @@ function _templateObject3$d() {
|
|
|
1800
1800
|
"rem;\n letter-spacing: ",
|
|
1801
1801
|
"px;\n font-weight: 400;\n"
|
|
1802
1802
|
]);
|
|
1803
|
-
_templateObject3$
|
|
1803
|
+
_templateObject3$e = function _templateObject() {
|
|
1804
1804
|
return data;
|
|
1805
1805
|
};
|
|
1806
1806
|
return data;
|
|
@@ -2094,8 +2094,8 @@ function _templateObject25() {
|
|
|
2094
2094
|
var commonStyles = css(_templateObject$t());
|
|
2095
2095
|
// HEADLINES
|
|
2096
2096
|
var $headline100Regular = css(_templateObject1$i(), commonStyles, headline100FontSize / BASE_FONT_SIZE, headline100LineHeight / BASE_FONT_SIZE, headline100LetterSpacing);
|
|
2097
|
-
var $headline100Semibold = css(_templateObject2$
|
|
2098
|
-
var $headline200Regular = css(_templateObject3$
|
|
2097
|
+
var $headline100Semibold = css(_templateObject2$i(), commonStyles, headline100FontSize / BASE_FONT_SIZE, headline100LineHeight / BASE_FONT_SIZE, headline100LetterSpacing);
|
|
2098
|
+
var $headline200Regular = css(_templateObject3$e(), commonStyles, headline200FontSize / BASE_FONT_SIZE, headline200LineHeight / BASE_FONT_SIZE, headline200LetterSpacing);
|
|
2099
2099
|
var $headline200Semibold = css(_templateObject4$b(), commonStyles, headline200FontSize / BASE_FONT_SIZE, headline200LineHeight / BASE_FONT_SIZE, headline200LetterSpacing);
|
|
2100
2100
|
var $headline300Regular = css(_templateObject5$5(), commonStyles, headline300FontSize / BASE_FONT_SIZE, headline300LineHeight / BASE_FONT_SIZE, headline300LetterSpacing);
|
|
2101
2101
|
var $headline300Semibold = css(_templateObject6$3(), commonStyles, headline300FontSize / BASE_FONT_SIZE, headline300LineHeight / BASE_FONT_SIZE, headline300LetterSpacing);
|
|
@@ -2151,15 +2151,15 @@ var typography = /*#__PURE__*/Object.freeze({
|
|
|
2151
2151
|
$paragraph300Semibold: $paragraph300Semibold
|
|
2152
2152
|
});
|
|
2153
2153
|
|
|
2154
|
-
function _array_like_to_array$
|
|
2154
|
+
function _array_like_to_array$q(arr, len) {
|
|
2155
2155
|
if (len == null || len > arr.length) len = arr.length;
|
|
2156
2156
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2157
2157
|
return arr2;
|
|
2158
2158
|
}
|
|
2159
|
-
function _array_with_holes$
|
|
2159
|
+
function _array_with_holes$m(arr) {
|
|
2160
2160
|
if (Array.isArray(arr)) return arr;
|
|
2161
2161
|
}
|
|
2162
|
-
function _iterable_to_array_limit$
|
|
2162
|
+
function _iterable_to_array_limit$m(arr, i) {
|
|
2163
2163
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2164
2164
|
if (_i == null) return;
|
|
2165
2165
|
var _arr = [];
|
|
@@ -2183,11 +2183,11 @@ function _iterable_to_array_limit$l(arr, i) {
|
|
|
2183
2183
|
}
|
|
2184
2184
|
return _arr;
|
|
2185
2185
|
}
|
|
2186
|
-
function _non_iterable_rest$
|
|
2186
|
+
function _non_iterable_rest$m() {
|
|
2187
2187
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2188
2188
|
}
|
|
2189
|
-
function _sliced_to_array$
|
|
2190
|
-
return _array_with_holes$
|
|
2189
|
+
function _sliced_to_array$m(arr, i) {
|
|
2190
|
+
return _array_with_holes$m(arr) || _iterable_to_array_limit$m(arr, i) || _unsupported_iterable_to_array$q(arr, i) || _non_iterable_rest$m();
|
|
2191
2191
|
}
|
|
2192
2192
|
function _tagged_template_literal$s(strings, raw) {
|
|
2193
2193
|
if (!raw) {
|
|
@@ -2199,13 +2199,13 @@ function _tagged_template_literal$s(strings, raw) {
|
|
|
2199
2199
|
}
|
|
2200
2200
|
}));
|
|
2201
2201
|
}
|
|
2202
|
-
function _unsupported_iterable_to_array$
|
|
2202
|
+
function _unsupported_iterable_to_array$q(o, minLen) {
|
|
2203
2203
|
if (!o) return;
|
|
2204
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2204
|
+
if (typeof o === "string") return _array_like_to_array$q(o, minLen);
|
|
2205
2205
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2206
2206
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2207
2207
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2208
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2208
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$q(o, minLen);
|
|
2209
2209
|
}
|
|
2210
2210
|
function _templateObject$s() {
|
|
2211
2211
|
var data = _tagged_template_literal$s([
|
|
@@ -2229,22 +2229,22 @@ function _templateObject1$h() {
|
|
|
2229
2229
|
};
|
|
2230
2230
|
return data;
|
|
2231
2231
|
}
|
|
2232
|
-
function _templateObject2$
|
|
2232
|
+
function _templateObject2$h() {
|
|
2233
2233
|
var data = _tagged_template_literal$s([
|
|
2234
2234
|
"\n ",
|
|
2235
2235
|
";\n margin: 0;\n"
|
|
2236
2236
|
]);
|
|
2237
|
-
_templateObject2$
|
|
2237
|
+
_templateObject2$h = function _templateObject() {
|
|
2238
2238
|
return data;
|
|
2239
2239
|
};
|
|
2240
2240
|
return data;
|
|
2241
2241
|
}
|
|
2242
|
-
function _templateObject3$
|
|
2242
|
+
function _templateObject3$d() {
|
|
2243
2243
|
var data = _tagged_template_literal$s([
|
|
2244
2244
|
"\n font-size: 1.5rem;\n color: ",
|
|
2245
2245
|
";\n margin-bottom: auto;\n flex-shrink: 0;\n"
|
|
2246
2246
|
]);
|
|
2247
|
-
_templateObject3$
|
|
2247
|
+
_templateObject3$d = function _templateObject() {
|
|
2248
2248
|
return data;
|
|
2249
2249
|
};
|
|
2250
2250
|
return data;
|
|
@@ -2280,8 +2280,8 @@ var Title = styled.h1(_templateObject1$h(), function(param) {
|
|
|
2280
2280
|
var size = param.size;
|
|
2281
2281
|
return size === 'large' ? $paragraph100Semibold : $paragraph200Regular;
|
|
2282
2282
|
});
|
|
2283
|
-
var Text = styled.p(_templateObject2$
|
|
2284
|
-
var StyledIcon = styled.div(_templateObject3$
|
|
2283
|
+
var Text = styled.p(_templateObject2$h(), $paragraph200Regular);
|
|
2284
|
+
var StyledIcon = styled.div(_templateObject3$d(), function(param) {
|
|
2285
2285
|
var type = param.type;
|
|
2286
2286
|
return type === 'info' ? primary700 : type === 'error' ? danger700 : type === 'success' ? success700 : warning700;
|
|
2287
2287
|
});
|
|
@@ -2292,7 +2292,7 @@ var TruncaterButton = styled.button(_templateObject5$4(), primary700, function(p
|
|
|
2292
2292
|
});
|
|
2293
2293
|
var AlertBar = function(props) {
|
|
2294
2294
|
var title = props.title, _props_text = props.text, text = _props_text === void 0 ? '' : _props_text, _props_size = props.size, size = _props_size === void 0 ? 'small' : _props_size, _props_type = props.type, type = _props_type === void 0 ? 'info' : _props_type;
|
|
2295
|
-
var _useState = _sliced_to_array$
|
|
2295
|
+
var _useState = _sliced_to_array$m(useState(false), 2), isExpanded = _useState[0], setIsExpanded = _useState[1];
|
|
2296
2296
|
var maxLength = 123;
|
|
2297
2297
|
var isTooLong = text.length > maxLength;
|
|
2298
2298
|
var displayText = isExpanded || !isTooLong ? text : "".concat(text.slice(0, maxLength), "...");
|
|
@@ -6127,15 +6127,15 @@ function cleanEscapedString$1(input) {
|
|
|
6127
6127
|
return _dateLeft.getFullYear() === _dateRight.getFullYear();
|
|
6128
6128
|
}
|
|
6129
6129
|
|
|
6130
|
-
function _array_like_to_array$
|
|
6130
|
+
function _array_like_to_array$p(arr, len) {
|
|
6131
6131
|
if (len == null || len > arr.length) len = arr.length;
|
|
6132
6132
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6133
6133
|
return arr2;
|
|
6134
6134
|
}
|
|
6135
|
-
function _array_with_holes$
|
|
6135
|
+
function _array_with_holes$l(arr) {
|
|
6136
6136
|
if (Array.isArray(arr)) return arr;
|
|
6137
6137
|
}
|
|
6138
|
-
function _iterable_to_array_limit$
|
|
6138
|
+
function _iterable_to_array_limit$l(arr, i) {
|
|
6139
6139
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6140
6140
|
if (_i == null) return;
|
|
6141
6141
|
var _arr = [];
|
|
@@ -6159,19 +6159,19 @@ function _iterable_to_array_limit$k(arr, i) {
|
|
|
6159
6159
|
}
|
|
6160
6160
|
return _arr;
|
|
6161
6161
|
}
|
|
6162
|
-
function _non_iterable_rest$
|
|
6162
|
+
function _non_iterable_rest$l() {
|
|
6163
6163
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6164
6164
|
}
|
|
6165
|
-
function _sliced_to_array$
|
|
6166
|
-
return _array_with_holes$
|
|
6165
|
+
function _sliced_to_array$l(arr, i) {
|
|
6166
|
+
return _array_with_holes$l(arr) || _iterable_to_array_limit$l(arr, i) || _unsupported_iterable_to_array$p(arr, i) || _non_iterable_rest$l();
|
|
6167
6167
|
}
|
|
6168
|
-
function _unsupported_iterable_to_array$
|
|
6168
|
+
function _unsupported_iterable_to_array$p(o, minLen) {
|
|
6169
6169
|
if (!o) return;
|
|
6170
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6170
|
+
if (typeof o === "string") return _array_like_to_array$p(o, minLen);
|
|
6171
6171
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6172
6172
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6173
6173
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6174
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6174
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$p(o, minLen);
|
|
6175
6175
|
}
|
|
6176
6176
|
/**
|
|
6177
6177
|
* @name isWithinInterval
|
|
@@ -6215,7 +6215,7 @@ function _unsupported_iterable_to_array$o(o, minLen) {
|
|
|
6215
6215
|
* // => true
|
|
6216
6216
|
*/ function isWithinInterval(date, interval) {
|
|
6217
6217
|
var time = +toDate(date);
|
|
6218
|
-
var _sort = _sliced_to_array$
|
|
6218
|
+
var _sort = _sliced_to_array$l([
|
|
6219
6219
|
+toDate(interval.start),
|
|
6220
6220
|
+toDate(interval.end)
|
|
6221
6221
|
].sort(function(a, b) {
|
|
@@ -13513,13 +13513,13 @@ function rectToClientRect(rect) {
|
|
|
13513
13513
|
};
|
|
13514
13514
|
}
|
|
13515
13515
|
|
|
13516
|
-
function _array_like_to_array$
|
|
13516
|
+
function _array_like_to_array$o(arr, len) {
|
|
13517
13517
|
if (len == null || len > arr.length) len = arr.length;
|
|
13518
13518
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
13519
13519
|
return arr2;
|
|
13520
13520
|
}
|
|
13521
13521
|
function _array_without_holes$c(arr) {
|
|
13522
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
13522
|
+
if (Array.isArray(arr)) return _array_like_to_array$o(arr);
|
|
13523
13523
|
}
|
|
13524
13524
|
function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
13525
13525
|
try {
|
|
@@ -13631,19 +13631,19 @@ function _object_without_properties_loose$m(source, excluded) {
|
|
|
13631
13631
|
return target;
|
|
13632
13632
|
}
|
|
13633
13633
|
function _to_consumable_array$c(arr) {
|
|
13634
|
-
return _array_without_holes$c(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$
|
|
13634
|
+
return _array_without_holes$c(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$o(arr) || _non_iterable_spread$c();
|
|
13635
13635
|
}
|
|
13636
13636
|
function _type_of$4(obj) {
|
|
13637
13637
|
"@swc/helpers - typeof";
|
|
13638
13638
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
13639
13639
|
}
|
|
13640
|
-
function _unsupported_iterable_to_array$
|
|
13640
|
+
function _unsupported_iterable_to_array$o(o, minLen) {
|
|
13641
13641
|
if (!o) return;
|
|
13642
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
13642
|
+
if (typeof o === "string") return _array_like_to_array$o(o, minLen);
|
|
13643
13643
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
13644
13644
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
13645
13645
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
13646
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
13646
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$o(o, minLen);
|
|
13647
13647
|
}
|
|
13648
13648
|
function _ts_generator$1(thisArg, body) {
|
|
13649
13649
|
var f, y, t, g, _ = {
|
|
@@ -14438,16 +14438,16 @@ function _convertValueToCoords() {
|
|
|
14438
14438
|
};
|
|
14439
14439
|
};
|
|
14440
14440
|
|
|
14441
|
-
function _array_like_to_array$
|
|
14441
|
+
function _array_like_to_array$n(arr, len) {
|
|
14442
14442
|
if (len == null || len > arr.length) len = arr.length;
|
|
14443
14443
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
14444
14444
|
return arr2;
|
|
14445
14445
|
}
|
|
14446
|
-
function _array_with_holes$
|
|
14446
|
+
function _array_with_holes$k(arr) {
|
|
14447
14447
|
if (Array.isArray(arr)) return arr;
|
|
14448
14448
|
}
|
|
14449
14449
|
function _array_without_holes$b(arr) {
|
|
14450
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
14450
|
+
if (Array.isArray(arr)) return _array_like_to_array$n(arr);
|
|
14451
14451
|
}
|
|
14452
14452
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
14453
14453
|
try {
|
|
@@ -14494,7 +14494,7 @@ function _define_property$z(obj, key, value) {
|
|
|
14494
14494
|
function _iterable_to_array$b(iter) {
|
|
14495
14495
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
14496
14496
|
}
|
|
14497
|
-
function _iterable_to_array_limit$
|
|
14497
|
+
function _iterable_to_array_limit$k(arr, i) {
|
|
14498
14498
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
14499
14499
|
if (_i == null) return;
|
|
14500
14500
|
var _arr = [];
|
|
@@ -14518,7 +14518,7 @@ function _iterable_to_array_limit$j(arr, i) {
|
|
|
14518
14518
|
}
|
|
14519
14519
|
return _arr;
|
|
14520
14520
|
}
|
|
14521
|
-
function _non_iterable_rest$
|
|
14521
|
+
function _non_iterable_rest$k() {
|
|
14522
14522
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14523
14523
|
}
|
|
14524
14524
|
function _non_iterable_spread$b() {
|
|
@@ -14558,19 +14558,19 @@ function _object_spread_props$t(target, source) {
|
|
|
14558
14558
|
}
|
|
14559
14559
|
return target;
|
|
14560
14560
|
}
|
|
14561
|
-
function _sliced_to_array$
|
|
14562
|
-
return _array_with_holes$
|
|
14561
|
+
function _sliced_to_array$k(arr, i) {
|
|
14562
|
+
return _array_with_holes$k(arr) || _iterable_to_array_limit$k(arr, i) || _unsupported_iterable_to_array$n(arr, i) || _non_iterable_rest$k();
|
|
14563
14563
|
}
|
|
14564
14564
|
function _to_consumable_array$b(arr) {
|
|
14565
|
-
return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$
|
|
14565
|
+
return _array_without_holes$b(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$n(arr) || _non_iterable_spread$b();
|
|
14566
14566
|
}
|
|
14567
|
-
function _unsupported_iterable_to_array$
|
|
14567
|
+
function _unsupported_iterable_to_array$n(o, minLen) {
|
|
14568
14568
|
if (!o) return;
|
|
14569
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
14569
|
+
if (typeof o === "string") return _array_like_to_array$n(o, minLen);
|
|
14570
14570
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14571
14571
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
14572
14572
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
14573
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
14573
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$n(o, minLen);
|
|
14574
14574
|
}
|
|
14575
14575
|
function _ts_generator(thisArg, body) {
|
|
14576
14576
|
var f, y, t, g, _ = {
|
|
@@ -15221,7 +15221,7 @@ function observeMove(element, onMove) {
|
|
|
15221
15221
|
var resizeObserver = null;
|
|
15222
15222
|
if (elementResize) {
|
|
15223
15223
|
resizeObserver = new ResizeObserver(function(_ref) {
|
|
15224
|
-
var _$_ref = _sliced_to_array$
|
|
15224
|
+
var _$_ref = _sliced_to_array$k(_ref, 1), firstEntry = _$_ref[0];
|
|
15225
15225
|
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
15226
15226
|
// Prevent update loops when using the `size` middleware.
|
|
15227
15227
|
// https://github.com/floating-ui/floating-ui/issues/1740
|
|
@@ -15304,12 +15304,12 @@ function observeMove(element, onMove) {
|
|
|
15304
15304
|
}));
|
|
15305
15305
|
};
|
|
15306
15306
|
|
|
15307
|
-
function _array_like_to_array$
|
|
15307
|
+
function _array_like_to_array$m(arr, len) {
|
|
15308
15308
|
if (len == null || len > arr.length) len = arr.length;
|
|
15309
15309
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
15310
15310
|
return arr2;
|
|
15311
15311
|
}
|
|
15312
|
-
function _array_with_holes$
|
|
15312
|
+
function _array_with_holes$j(arr) {
|
|
15313
15313
|
if (Array.isArray(arr)) return arr;
|
|
15314
15314
|
}
|
|
15315
15315
|
function _define_property$y(obj, key, value) {
|
|
@@ -15325,7 +15325,7 @@ function _define_property$y(obj, key, value) {
|
|
|
15325
15325
|
}
|
|
15326
15326
|
return obj;
|
|
15327
15327
|
}
|
|
15328
|
-
function _iterable_to_array_limit$
|
|
15328
|
+
function _iterable_to_array_limit$j(arr, i) {
|
|
15329
15329
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
15330
15330
|
if (_i == null) return;
|
|
15331
15331
|
var _arr = [];
|
|
@@ -15349,7 +15349,7 @@ function _iterable_to_array_limit$i(arr, i) {
|
|
|
15349
15349
|
}
|
|
15350
15350
|
return _arr;
|
|
15351
15351
|
}
|
|
15352
|
-
function _non_iterable_rest$
|
|
15352
|
+
function _non_iterable_rest$j() {
|
|
15353
15353
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15354
15354
|
}
|
|
15355
15355
|
function _object_spread$y(target) {
|
|
@@ -15386,20 +15386,20 @@ function _object_spread_props$s(target, source) {
|
|
|
15386
15386
|
}
|
|
15387
15387
|
return target;
|
|
15388
15388
|
}
|
|
15389
|
-
function _sliced_to_array$
|
|
15390
|
-
return _array_with_holes$
|
|
15389
|
+
function _sliced_to_array$j(arr, i) {
|
|
15390
|
+
return _array_with_holes$j(arr) || _iterable_to_array_limit$j(arr, i) || _unsupported_iterable_to_array$m(arr, i) || _non_iterable_rest$j();
|
|
15391
15391
|
}
|
|
15392
15392
|
function _type_of$3(obj) {
|
|
15393
15393
|
"@swc/helpers - typeof";
|
|
15394
15394
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
15395
15395
|
}
|
|
15396
|
-
function _unsupported_iterable_to_array$
|
|
15396
|
+
function _unsupported_iterable_to_array$m(o, minLen) {
|
|
15397
15397
|
if (!o) return;
|
|
15398
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
15398
|
+
if (typeof o === "string") return _array_like_to_array$m(o, minLen);
|
|
15399
15399
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
15400
15400
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
15401
15401
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
15402
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
15402
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$m(o, minLen);
|
|
15403
15403
|
}
|
|
15404
15404
|
var index$1 = typeof document !== 'undefined' ? useLayoutEffect : useEffect;
|
|
15405
15405
|
// Fork of `fast-deep-equal` that only does the comparisons we need and compares
|
|
@@ -15477,7 +15477,7 @@ function useLatestRef(value) {
|
|
|
15477
15477
|
options = {};
|
|
15478
15478
|
}
|
|
15479
15479
|
var _options_placement = options.placement, placement = _options_placement === void 0 ? 'bottom' : _options_placement, _options_strategy = options.strategy, strategy = _options_strategy === void 0 ? 'absolute' : _options_strategy, _options_middleware = options.middleware, middleware = _options_middleware === void 0 ? [] : _options_middleware, platform = options.platform, tmp = options.elements, _ref = tmp === void 0 ? {} : tmp, externalReference = _ref.reference, externalFloating = _ref.floating, _options_transform = options.transform, transform = _options_transform === void 0 ? true : _options_transform, whileElementsMounted = options.whileElementsMounted, open = options.open;
|
|
15480
|
-
var _React_useState = _sliced_to_array$
|
|
15480
|
+
var _React_useState = _sliced_to_array$j(React.useState({
|
|
15481
15481
|
x: 0,
|
|
15482
15482
|
y: 0,
|
|
15483
15483
|
strategy: strategy,
|
|
@@ -15485,12 +15485,12 @@ function useLatestRef(value) {
|
|
|
15485
15485
|
middlewareData: {},
|
|
15486
15486
|
isPositioned: false
|
|
15487
15487
|
}), 2), data = _React_useState[0], setData = _React_useState[1];
|
|
15488
|
-
var _React_useState1 = _sliced_to_array$
|
|
15488
|
+
var _React_useState1 = _sliced_to_array$j(React.useState(middleware), 2), latestMiddleware = _React_useState1[0], setLatestMiddleware = _React_useState1[1];
|
|
15489
15489
|
if (!deepEqual(latestMiddleware, middleware)) {
|
|
15490
15490
|
setLatestMiddleware(middleware);
|
|
15491
15491
|
}
|
|
15492
|
-
var _React_useState2 = _sliced_to_array$
|
|
15493
|
-
var _React_useState3 = _sliced_to_array$
|
|
15492
|
+
var _React_useState2 = _sliced_to_array$j(React.useState(null), 2), _reference = _React_useState2[0], _setReference = _React_useState2[1];
|
|
15493
|
+
var _React_useState3 = _sliced_to_array$j(React.useState(null), 2), _floating = _React_useState3[0], _setFloating = _React_useState3[1];
|
|
15494
15494
|
var setReference = React.useCallback(function(node) {
|
|
15495
15495
|
if (node !== referenceRef.current) {
|
|
15496
15496
|
referenceRef.current = node;
|
|
@@ -15720,16 +15720,16 @@ function useLatestRef(value) {
|
|
|
15720
15720
|
});
|
|
15721
15721
|
};
|
|
15722
15722
|
|
|
15723
|
-
function _array_like_to_array$
|
|
15723
|
+
function _array_like_to_array$l(arr, len) {
|
|
15724
15724
|
if (len == null || len > arr.length) len = arr.length;
|
|
15725
15725
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
15726
15726
|
return arr2;
|
|
15727
15727
|
}
|
|
15728
|
-
function _array_with_holes$
|
|
15728
|
+
function _array_with_holes$i(arr) {
|
|
15729
15729
|
if (Array.isArray(arr)) return arr;
|
|
15730
15730
|
}
|
|
15731
15731
|
function _array_without_holes$a(arr) {
|
|
15732
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
15732
|
+
if (Array.isArray(arr)) return _array_like_to_array$l(arr);
|
|
15733
15733
|
}
|
|
15734
15734
|
function _define_property$x(obj, key, value) {
|
|
15735
15735
|
if (key in obj) {
|
|
@@ -15747,7 +15747,7 @@ function _define_property$x(obj, key, value) {
|
|
|
15747
15747
|
function _iterable_to_array$a(iter) {
|
|
15748
15748
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
15749
15749
|
}
|
|
15750
|
-
function _iterable_to_array_limit$
|
|
15750
|
+
function _iterable_to_array_limit$i(arr, i) {
|
|
15751
15751
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
15752
15752
|
if (_i == null) return;
|
|
15753
15753
|
var _arr = [];
|
|
@@ -15771,7 +15771,7 @@ function _iterable_to_array_limit$h(arr, i) {
|
|
|
15771
15771
|
}
|
|
15772
15772
|
return _arr;
|
|
15773
15773
|
}
|
|
15774
|
-
function _non_iterable_rest$
|
|
15774
|
+
function _non_iterable_rest$i() {
|
|
15775
15775
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15776
15776
|
}
|
|
15777
15777
|
function _non_iterable_spread$a() {
|
|
@@ -15838,19 +15838,19 @@ function _object_without_properties_loose$l(source, excluded) {
|
|
|
15838
15838
|
}
|
|
15839
15839
|
return target;
|
|
15840
15840
|
}
|
|
15841
|
-
function _sliced_to_array$
|
|
15842
|
-
return _array_with_holes$
|
|
15841
|
+
function _sliced_to_array$i(arr, i) {
|
|
15842
|
+
return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$l(arr, i) || _non_iterable_rest$i();
|
|
15843
15843
|
}
|
|
15844
15844
|
function _to_consumable_array$a(arr) {
|
|
15845
|
-
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$
|
|
15845
|
+
return _array_without_holes$a(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$l(arr) || _non_iterable_spread$a();
|
|
15846
15846
|
}
|
|
15847
|
-
function _unsupported_iterable_to_array$
|
|
15847
|
+
function _unsupported_iterable_to_array$l(o, minLen) {
|
|
15848
15848
|
if (!o) return;
|
|
15849
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
15849
|
+
if (typeof o === "string") return _array_like_to_array$l(o, minLen);
|
|
15850
15850
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
15851
15851
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
15852
15852
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
15853
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
15853
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$l(o, minLen);
|
|
15854
15854
|
}
|
|
15855
15855
|
// https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379
|
|
15856
15856
|
var SafeReact = _object_spread$x({}, React);
|
|
@@ -15910,7 +15910,7 @@ var genId = function() {
|
|
|
15910
15910
|
"floating-ui-" + Math.random().toString(36).slice(2, 6) + count$1++);
|
|
15911
15911
|
};
|
|
15912
15912
|
function useFloatingId() {
|
|
15913
|
-
var _React_useState = _sliced_to_array$
|
|
15913
|
+
var _React_useState = _sliced_to_array$i(React.useState(function() {
|
|
15914
15914
|
return serverHandoffComplete ? genId() : undefined;
|
|
15915
15915
|
}), 2), id = _React_useState[0], setId = _React_useState[1];
|
|
15916
15916
|
index(function() {
|
|
@@ -15982,7 +15982,7 @@ function error() {
|
|
|
15982
15982
|
}
|
|
15983
15983
|
}
|
|
15984
15984
|
var clipPathId = useId();
|
|
15985
|
-
var _React_useState = _sliced_to_array$
|
|
15985
|
+
var _React_useState = _sliced_to_array$i(React.useState(false), 2), isRTL = _React_useState[0], setIsRTL = _React_useState[1];
|
|
15986
15986
|
// https://github.com/floating-ui/floating-ui/issues/2932
|
|
15987
15987
|
index(function() {
|
|
15988
15988
|
if (!floating) return;
|
|
@@ -15996,7 +15996,7 @@ function error() {
|
|
|
15996
15996
|
if (!floating) {
|
|
15997
15997
|
return null;
|
|
15998
15998
|
}
|
|
15999
|
-
var _placement_split = _sliced_to_array$
|
|
15999
|
+
var _placement_split = _sliced_to_array$i(placement.split('-'), 2), side = _placement_split[0], alignment = _placement_split[1];
|
|
16000
16000
|
var isVerticalSide = side === 'top' || side === 'bottom';
|
|
16001
16001
|
var computedStaticOffset = staticOffset;
|
|
16002
16002
|
if (isVerticalSide && shift != null && shift.x || !isVerticalSide && shift != null && shift.y) {
|
|
@@ -16097,7 +16097,7 @@ function useFloatingRootContext(options) {
|
|
|
16097
16097
|
var _options_open = options.open, open = _options_open === void 0 ? false : _options_open, onOpenChangeProp = options.onOpenChange, elementsProp = options.elements;
|
|
16098
16098
|
var floatingId = useId();
|
|
16099
16099
|
var dataRef = React.useRef({});
|
|
16100
|
-
var _React_useState = _sliced_to_array$
|
|
16100
|
+
var _React_useState = _sliced_to_array$i(React.useState(function() {
|
|
16101
16101
|
return createPubSub();
|
|
16102
16102
|
}), 1), events = _React_useState[0];
|
|
16103
16103
|
var nested = useFloatingParentNodeId() != null;
|
|
@@ -16107,7 +16107,7 @@ function useFloatingRootContext(options) {
|
|
|
16107
16107
|
error('Cannot pass a virtual element to the `elements.reference` option,', 'as it must be a real DOM element. Use `refs.setPositionReference()`', 'instead.');
|
|
16108
16108
|
}
|
|
16109
16109
|
}
|
|
16110
|
-
var _React_useState1 = _sliced_to_array$
|
|
16110
|
+
var _React_useState1 = _sliced_to_array$i(React.useState(elementsProp.reference), 2), positionReference = _React_useState1[0], setPositionReference = _React_useState1[1];
|
|
16111
16111
|
var onOpenChange = useEffectEvent(function(open, event, reason) {
|
|
16112
16112
|
dataRef.current.openEvent = open ? event : undefined;
|
|
16113
16113
|
events.emit('openchange', {
|
|
@@ -16169,8 +16169,8 @@ function useFloatingRootContext(options) {
|
|
|
16169
16169
|
}));
|
|
16170
16170
|
var rootContext = options.rootContext || internalRootContext;
|
|
16171
16171
|
var computedElements = rootContext.elements;
|
|
16172
|
-
var _React_useState = _sliced_to_array$
|
|
16173
|
-
var _React_useState1 = _sliced_to_array$
|
|
16172
|
+
var _React_useState = _sliced_to_array$i(React.useState(null), 2), _domReference = _React_useState[0], setDomReference = _React_useState[1];
|
|
16173
|
+
var _React_useState1 = _sliced_to_array$i(React.useState(null), 2), positionReference = _React_useState1[0], _setPositionReference = _React_useState1[1];
|
|
16174
16174
|
var optionDomReference = computedElements == null ? void 0 : computedElements.reference;
|
|
16175
16175
|
var domReference = optionDomReference || _domReference;
|
|
16176
16176
|
var domReferenceRef = React.useRef(null);
|
|
@@ -21657,7 +21657,7 @@ function _templateObject1$g() {
|
|
|
21657
21657
|
};
|
|
21658
21658
|
return data;
|
|
21659
21659
|
}
|
|
21660
|
-
function _templateObject2$
|
|
21660
|
+
function _templateObject2$g() {
|
|
21661
21661
|
var data = _tagged_template_literal$p([
|
|
21662
21662
|
"\n ",
|
|
21663
21663
|
"\n\n & * {\n box-sizing: content-box;\n }\n\n &.calendar-container {\n display: flex;\n align-items: center;\n flex-direction: column;\n position: relative;\n\n border: none;\n font-family: 'Roboto', sans-serif;\n color: ",
|
|
@@ -21669,14 +21669,14 @@ function _templateObject2$f() {
|
|
|
21669
21669
|
"\n ",
|
|
21670
21670
|
"\n }\n"
|
|
21671
21671
|
]);
|
|
21672
|
-
_templateObject2$
|
|
21672
|
+
_templateObject2$g = function _templateObject() {
|
|
21673
21673
|
return data;
|
|
21674
21674
|
};
|
|
21675
21675
|
return data;
|
|
21676
21676
|
}
|
|
21677
21677
|
var dayStyles = css(_templateObject$p(), $paragraph300Medium, neutral400, $paragraph300Bold, primary600, $paragraph300Medium, neutral400, primary100, textPrimaryWhite, primary600);
|
|
21678
21678
|
var rangeStyles = css(_templateObject1$g(), primary600, primary100, primary100, textPrimaryWhite, primary600, primary200, textPrimaryWhite, primary600, primary100, textPrimaryWhite, primary600, primary100);
|
|
21679
|
-
var Container$3 = styled.div(_templateObject2$
|
|
21679
|
+
var Container$3 = styled.div(_templateObject2$g(), datepickerStyles, textPrimary, neutral100, neutral300, $paragraph100Semibold, spacing(4), dayStyles, rangeStyles);
|
|
21680
21680
|
var CalendarContainer = function(param) {
|
|
21681
21681
|
var children = param.children;
|
|
21682
21682
|
return /*#__PURE__*/ jsx("div", {
|
|
@@ -22144,16 +22144,16 @@ var useClickOutside = function(ref, callback) {
|
|
|
22144
22144
|
]);
|
|
22145
22145
|
};
|
|
22146
22146
|
|
|
22147
|
-
function _array_like_to_array$
|
|
22147
|
+
function _array_like_to_array$k(arr, len) {
|
|
22148
22148
|
if (len == null || len > arr.length) len = arr.length;
|
|
22149
22149
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
22150
22150
|
return arr2;
|
|
22151
22151
|
}
|
|
22152
|
-
function _array_with_holes$
|
|
22152
|
+
function _array_with_holes$h(arr) {
|
|
22153
22153
|
if (Array.isArray(arr)) return arr;
|
|
22154
22154
|
}
|
|
22155
22155
|
function _array_without_holes$9(arr) {
|
|
22156
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
22156
|
+
if (Array.isArray(arr)) return _array_like_to_array$k(arr);
|
|
22157
22157
|
}
|
|
22158
22158
|
function _define_property$t(obj, key, value) {
|
|
22159
22159
|
if (key in obj) {
|
|
@@ -22171,7 +22171,7 @@ function _define_property$t(obj, key, value) {
|
|
|
22171
22171
|
function _iterable_to_array$9(iter) {
|
|
22172
22172
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
22173
22173
|
}
|
|
22174
|
-
function _iterable_to_array_limit$
|
|
22174
|
+
function _iterable_to_array_limit$h(arr, i) {
|
|
22175
22175
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
22176
22176
|
if (_i == null) return;
|
|
22177
22177
|
var _arr = [];
|
|
@@ -22195,7 +22195,7 @@ function _iterable_to_array_limit$g(arr, i) {
|
|
|
22195
22195
|
}
|
|
22196
22196
|
return _arr;
|
|
22197
22197
|
}
|
|
22198
|
-
function _non_iterable_rest$
|
|
22198
|
+
function _non_iterable_rest$h() {
|
|
22199
22199
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22200
22200
|
}
|
|
22201
22201
|
function _non_iterable_spread$9() {
|
|
@@ -22216,8 +22216,8 @@ function _object_spread$t(target) {
|
|
|
22216
22216
|
}
|
|
22217
22217
|
return target;
|
|
22218
22218
|
}
|
|
22219
|
-
function _sliced_to_array$
|
|
22220
|
-
return _array_with_holes$
|
|
22219
|
+
function _sliced_to_array$h(arr, i) {
|
|
22220
|
+
return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$k(arr, i) || _non_iterable_rest$h();
|
|
22221
22221
|
}
|
|
22222
22222
|
function _tagged_template_literal$m(strings, raw) {
|
|
22223
22223
|
if (!raw) {
|
|
@@ -22230,15 +22230,15 @@ function _tagged_template_literal$m(strings, raw) {
|
|
|
22230
22230
|
}));
|
|
22231
22231
|
}
|
|
22232
22232
|
function _to_consumable_array$9(arr) {
|
|
22233
|
-
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$
|
|
22233
|
+
return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$k(arr) || _non_iterable_spread$9();
|
|
22234
22234
|
}
|
|
22235
|
-
function _unsupported_iterable_to_array$
|
|
22235
|
+
function _unsupported_iterable_to_array$k(o, minLen) {
|
|
22236
22236
|
if (!o) return;
|
|
22237
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
22237
|
+
if (typeof o === "string") return _array_like_to_array$k(o, minLen);
|
|
22238
22238
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
22239
22239
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
22240
22240
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
22241
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
22241
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$k(o, minLen);
|
|
22242
22242
|
}
|
|
22243
22243
|
function _templateObject$m() {
|
|
22244
22244
|
var data = _tagged_template_literal$m([
|
|
@@ -22312,7 +22312,7 @@ var calculatePosition = function(anchorRect, popperRect, side, align, offset, de
|
|
|
22312
22312
|
};
|
|
22313
22313
|
var Popper = function(param) {
|
|
22314
22314
|
var anchorRef = param.anchorRef, open = param.open, onClose = param.onClose, _param_side = param.side, side = _param_side === void 0 ? 'bottom' : _param_side, _param_align = param.align, align = _param_align === void 0 ? 'middle' : _param_align, _param_offset = param.offset, offset = _param_offset === void 0 ? 0 : _param_offset, minWidth = param.minWidth, minHeight = param.minHeight, maxWidth = param.maxWidth, maxHeight = param.maxHeight, children = param.children, containerRefOverride = param.containerRefOverride, childContainerRefs = param.childContainerRefs, _param_detectEdges = param.detectEdges, detectEdges = _param_detectEdges === void 0 ? true : _param_detectEdges, style = param.style;
|
|
22315
|
-
var _useState = _sliced_to_array$
|
|
22315
|
+
var _useState = _sliced_to_array$h(useState(null), 2), position = _useState[0], setPosition = _useState[1];
|
|
22316
22316
|
var containerRef = useRef(null);
|
|
22317
22317
|
containerRef = containerRefOverride || containerRef;
|
|
22318
22318
|
useClickOutside(childContainerRefs ? [
|
|
@@ -22397,12 +22397,12 @@ var Popper = function(param) {
|
|
|
22397
22397
|
}), document.querySelector('div[role="presentation"]') || document.body);
|
|
22398
22398
|
};
|
|
22399
22399
|
|
|
22400
|
-
function _array_like_to_array$
|
|
22400
|
+
function _array_like_to_array$j(arr, len) {
|
|
22401
22401
|
if (len == null || len > arr.length) len = arr.length;
|
|
22402
22402
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
22403
22403
|
return arr2;
|
|
22404
22404
|
}
|
|
22405
|
-
function _array_with_holes$
|
|
22405
|
+
function _array_with_holes$g(arr) {
|
|
22406
22406
|
if (Array.isArray(arr)) return arr;
|
|
22407
22407
|
}
|
|
22408
22408
|
function _define_property$s(obj, key, value) {
|
|
@@ -22418,7 +22418,7 @@ function _define_property$s(obj, key, value) {
|
|
|
22418
22418
|
}
|
|
22419
22419
|
return obj;
|
|
22420
22420
|
}
|
|
22421
|
-
function _iterable_to_array_limit$
|
|
22421
|
+
function _iterable_to_array_limit$g(arr, i) {
|
|
22422
22422
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
22423
22423
|
if (_i == null) return;
|
|
22424
22424
|
var _arr = [];
|
|
@@ -22442,7 +22442,7 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
22442
22442
|
}
|
|
22443
22443
|
return _arr;
|
|
22444
22444
|
}
|
|
22445
|
-
function _non_iterable_rest$
|
|
22445
|
+
function _non_iterable_rest$g() {
|
|
22446
22446
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22447
22447
|
}
|
|
22448
22448
|
function _object_spread$s(target) {
|
|
@@ -22506,8 +22506,8 @@ function _object_without_properties_loose$i(source, excluded) {
|
|
|
22506
22506
|
}
|
|
22507
22507
|
return target;
|
|
22508
22508
|
}
|
|
22509
|
-
function _sliced_to_array$
|
|
22510
|
-
return _array_with_holes$
|
|
22509
|
+
function _sliced_to_array$g(arr, i) {
|
|
22510
|
+
return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$j(arr, i) || _non_iterable_rest$g();
|
|
22511
22511
|
}
|
|
22512
22512
|
function _tagged_template_literal$l(strings, raw) {
|
|
22513
22513
|
if (!raw) {
|
|
@@ -22519,13 +22519,13 @@ function _tagged_template_literal$l(strings, raw) {
|
|
|
22519
22519
|
}
|
|
22520
22520
|
}));
|
|
22521
22521
|
}
|
|
22522
|
-
function _unsupported_iterable_to_array$
|
|
22522
|
+
function _unsupported_iterable_to_array$j(o, minLen) {
|
|
22523
22523
|
if (!o) return;
|
|
22524
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
22524
|
+
if (typeof o === "string") return _array_like_to_array$j(o, minLen);
|
|
22525
22525
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
22526
22526
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
22527
22527
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
22528
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
22528
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$j(o, minLen);
|
|
22529
22529
|
}
|
|
22530
22530
|
function _templateObject$l() {
|
|
22531
22531
|
var data = _tagged_template_literal$l([
|
|
@@ -22548,14 +22548,14 @@ var DatePicker = function(_param) {
|
|
|
22548
22548
|
"endDate",
|
|
22549
22549
|
"onChange"
|
|
22550
22550
|
]);
|
|
22551
|
-
var _useState = _sliced_to_array$
|
|
22551
|
+
var _useState = _sliced_to_array$g(useState(false), 2), open = _useState[0], setOpen = _useState[1];
|
|
22552
22552
|
var buttonRef = useRef(null);
|
|
22553
22553
|
var handleDateSelect = function(date) {
|
|
22554
22554
|
onChange(date);
|
|
22555
22555
|
setOpen(false);
|
|
22556
22556
|
};
|
|
22557
22557
|
var handleRangeSelect = function(param) {
|
|
22558
|
-
var _$_param = _sliced_to_array$
|
|
22558
|
+
var _$_param = _sliced_to_array$g(param, 2), start = _$_param[0], end = _$_param[1];
|
|
22559
22559
|
if (end) {
|
|
22560
22560
|
end.setHours(23, 59, 59, 999);
|
|
22561
22561
|
setOpen(false);
|
|
@@ -22624,12 +22624,12 @@ var formatForId = function(str) {
|
|
|
22624
22624
|
return str.replace(' ', '-').replace(/[^a-zA-Z0-9\s]/g, '').toLowerCase();
|
|
22625
22625
|
};
|
|
22626
22626
|
|
|
22627
|
-
function _array_like_to_array$
|
|
22627
|
+
function _array_like_to_array$i(arr, len) {
|
|
22628
22628
|
if (len == null || len > arr.length) len = arr.length;
|
|
22629
22629
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
22630
22630
|
return arr2;
|
|
22631
22631
|
}
|
|
22632
|
-
function _array_with_holes$
|
|
22632
|
+
function _array_with_holes$f(arr) {
|
|
22633
22633
|
if (Array.isArray(arr)) return arr;
|
|
22634
22634
|
}
|
|
22635
22635
|
function _define_property$r(obj, key, value) {
|
|
@@ -22645,7 +22645,7 @@ function _define_property$r(obj, key, value) {
|
|
|
22645
22645
|
}
|
|
22646
22646
|
return obj;
|
|
22647
22647
|
}
|
|
22648
|
-
function _iterable_to_array_limit$
|
|
22648
|
+
function _iterable_to_array_limit$f(arr, i) {
|
|
22649
22649
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
22650
22650
|
if (_i == null) return;
|
|
22651
22651
|
var _arr = [];
|
|
@@ -22669,7 +22669,7 @@ function _iterable_to_array_limit$e(arr, i) {
|
|
|
22669
22669
|
}
|
|
22670
22670
|
return _arr;
|
|
22671
22671
|
}
|
|
22672
|
-
function _non_iterable_rest$
|
|
22672
|
+
function _non_iterable_rest$f() {
|
|
22673
22673
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22674
22674
|
}
|
|
22675
22675
|
function _object_spread$r(target) {
|
|
@@ -22706,8 +22706,8 @@ function _object_spread_props$m(target, source) {
|
|
|
22706
22706
|
}
|
|
22707
22707
|
return target;
|
|
22708
22708
|
}
|
|
22709
|
-
function _sliced_to_array$
|
|
22710
|
-
return _array_with_holes$
|
|
22709
|
+
function _sliced_to_array$f(arr, i) {
|
|
22710
|
+
return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$i(arr, i) || _non_iterable_rest$f();
|
|
22711
22711
|
}
|
|
22712
22712
|
function _tagged_template_literal$k(strings, raw) {
|
|
22713
22713
|
if (!raw) {
|
|
@@ -22719,13 +22719,13 @@ function _tagged_template_literal$k(strings, raw) {
|
|
|
22719
22719
|
}
|
|
22720
22720
|
}));
|
|
22721
22721
|
}
|
|
22722
|
-
function _unsupported_iterable_to_array$
|
|
22722
|
+
function _unsupported_iterable_to_array$i(o, minLen) {
|
|
22723
22723
|
if (!o) return;
|
|
22724
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
22724
|
+
if (typeof o === "string") return _array_like_to_array$i(o, minLen);
|
|
22725
22725
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
22726
22726
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
22727
22727
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
22728
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
22728
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$i(o, minLen);
|
|
22729
22729
|
}
|
|
22730
22730
|
function _templateObject$k() {
|
|
22731
22731
|
var data = _tagged_template_literal$k([
|
|
@@ -22746,7 +22746,7 @@ var DropdownMenu = function(param) {
|
|
|
22746
22746
|
var label = param.label, items = param.items, children = param.children, openProp = param.open, onOpenChange = param.onOpenChange, iconLeft = param.iconLeft, _param_size = param.size, size = _param_size === void 0 ? 'small' : _param_size, align = param.align, _param_buttonProps = param.buttonProps, buttonProps = _param_buttonProps === void 0 ? {
|
|
22747
22747
|
color: 'primary'
|
|
22748
22748
|
} : _param_buttonProps, _param_testId = param.testId, testId = _param_testId === void 0 ? 'dropdown' : _param_testId, childContainerRefs = param.childContainerRefs, disabled = param.disabled;
|
|
22749
|
-
var _useState = _sliced_to_array$
|
|
22749
|
+
var _useState = _sliced_to_array$f(useState(false), 2), open = _useState[0], setOpen = _useState[1];
|
|
22750
22750
|
var buttonRef = useRef(null);
|
|
22751
22751
|
var isControlled = openProp !== undefined && onOpenChange;
|
|
22752
22752
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
@@ -22816,15 +22816,15 @@ var DropdownMenu = function(param) {
|
|
|
22816
22816
|
});
|
|
22817
22817
|
};
|
|
22818
22818
|
|
|
22819
|
-
function _array_like_to_array$
|
|
22819
|
+
function _array_like_to_array$h(arr, len) {
|
|
22820
22820
|
if (len == null || len > arr.length) len = arr.length;
|
|
22821
22821
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
22822
22822
|
return arr2;
|
|
22823
22823
|
}
|
|
22824
|
-
function _array_with_holes$
|
|
22824
|
+
function _array_with_holes$e(arr) {
|
|
22825
22825
|
if (Array.isArray(arr)) return arr;
|
|
22826
22826
|
}
|
|
22827
|
-
function _iterable_to_array_limit$
|
|
22827
|
+
function _iterable_to_array_limit$e(arr, i) {
|
|
22828
22828
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
22829
22829
|
if (_i == null) return;
|
|
22830
22830
|
var _arr = [];
|
|
@@ -22848,11 +22848,11 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
22848
22848
|
}
|
|
22849
22849
|
return _arr;
|
|
22850
22850
|
}
|
|
22851
|
-
function _non_iterable_rest$
|
|
22851
|
+
function _non_iterable_rest$e() {
|
|
22852
22852
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22853
22853
|
}
|
|
22854
|
-
function _sliced_to_array$
|
|
22855
|
-
return _array_with_holes$
|
|
22854
|
+
function _sliced_to_array$e(arr, i) {
|
|
22855
|
+
return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$h(arr, i) || _non_iterable_rest$e();
|
|
22856
22856
|
}
|
|
22857
22857
|
function _tagged_template_literal$j(strings, raw) {
|
|
22858
22858
|
if (!raw) {
|
|
@@ -22864,13 +22864,13 @@ function _tagged_template_literal$j(strings, raw) {
|
|
|
22864
22864
|
}
|
|
22865
22865
|
}));
|
|
22866
22866
|
}
|
|
22867
|
-
function _unsupported_iterable_to_array$
|
|
22867
|
+
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
22868
22868
|
if (!o) return;
|
|
22869
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
22869
|
+
if (typeof o === "string") return _array_like_to_array$h(o, minLen);
|
|
22870
22870
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
22871
22871
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
22872
22872
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
22873
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
22873
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$h(o, minLen);
|
|
22874
22874
|
}
|
|
22875
22875
|
function _templateObject$j() {
|
|
22876
22876
|
var data = _tagged_template_literal$j([
|
|
@@ -22891,20 +22891,20 @@ function _templateObject1$f() {
|
|
|
22891
22891
|
};
|
|
22892
22892
|
return data;
|
|
22893
22893
|
}
|
|
22894
|
-
function _templateObject2$
|
|
22894
|
+
function _templateObject2$f() {
|
|
22895
22895
|
var data = _tagged_template_literal$j([
|
|
22896
22896
|
"\n display: flex;\n width: 100%;\n flex-direction: row;\n flex-wrap: nowrap;\n gap: 0.5rem;\n"
|
|
22897
22897
|
]);
|
|
22898
|
-
_templateObject2$
|
|
22898
|
+
_templateObject2$f = function _templateObject() {
|
|
22899
22899
|
return data;
|
|
22900
22900
|
};
|
|
22901
22901
|
return data;
|
|
22902
22902
|
}
|
|
22903
|
-
function _templateObject3$
|
|
22903
|
+
function _templateObject3$c() {
|
|
22904
22904
|
var data = _tagged_template_literal$j([
|
|
22905
22905
|
"\n width: 100%;\n min-width: 0;\n"
|
|
22906
22906
|
]);
|
|
22907
|
-
_templateObject3$
|
|
22907
|
+
_templateObject3$c = function _templateObject() {
|
|
22908
22908
|
return data;
|
|
22909
22909
|
};
|
|
22910
22910
|
return data;
|
|
@@ -22914,13 +22914,13 @@ var RowContainer = styled.div(_templateObject$j(), function(param) {
|
|
|
22914
22914
|
return isHovered ? '#FEE2E2' : 'transparent';
|
|
22915
22915
|
});
|
|
22916
22916
|
var ContentContainer = styled.div(_templateObject1$f());
|
|
22917
|
-
var SelectContainer = styled.div(_templateObject2$
|
|
22918
|
-
var MultiInputContainer = styled.div(_templateObject3$
|
|
22917
|
+
var SelectContainer = styled.div(_templateObject2$f());
|
|
22918
|
+
var MultiInputContainer = styled.div(_templateObject3$c());
|
|
22919
22919
|
var FilterRow = function(param) {
|
|
22920
22920
|
var filterKey = param.filterKey, rowIndex = param.rowIndex, values = param.values, errors = param.errors, touched = param.touched, onChange = param.onChange, onRemove = param.onRemove, fieldOptions = param.fieldOptions, operatorOptions = param.operatorOptions, showRemove = param.showRemove;
|
|
22921
22921
|
var _touched_filters_filterKey_rowIndex, _touched_filters_filterKey, _touched_filters, _errors_filters_filterKey_rowIndex, _errors_filters_filterKey, _errors_filters, _touched_filters_filterKey_rowIndex1, _touched_filters_filterKey1, _touched_filters1, _errors_filters_filterKey_rowIndex1, _errors_filters_filterKey1, _errors_filters1, _touched_filters_filterKey_rowIndex2, _touched_filters_filterKey2, _touched_filters2, _errors_filters_filterKey_rowIndex2, _errors_filters_filterKey2, _errors_filters2;
|
|
22922
22922
|
var currentFilter = values.filters[Number(filterKey)][Number(rowIndex)];
|
|
22923
|
-
var _useState = _sliced_to_array$
|
|
22923
|
+
var _useState = _sliced_to_array$e(useState(false), 2), isHovered = _useState[0], setIsHovered = _useState[1];
|
|
22924
22924
|
var currentField = fieldOptions.find(function(field) {
|
|
22925
22925
|
return field.value === currentFilter.field;
|
|
22926
22926
|
});
|
|
@@ -23013,16 +23013,16 @@ var FilterRow = function(param) {
|
|
|
23013
23013
|
});
|
|
23014
23014
|
};
|
|
23015
23015
|
|
|
23016
|
-
function _array_like_to_array$
|
|
23016
|
+
function _array_like_to_array$g(arr, len) {
|
|
23017
23017
|
if (len == null || len > arr.length) len = arr.length;
|
|
23018
23018
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
23019
23019
|
return arr2;
|
|
23020
23020
|
}
|
|
23021
|
-
function _array_with_holes$
|
|
23021
|
+
function _array_with_holes$d(arr) {
|
|
23022
23022
|
if (Array.isArray(arr)) return arr;
|
|
23023
23023
|
}
|
|
23024
23024
|
function _array_without_holes$8(arr) {
|
|
23025
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
23025
|
+
if (Array.isArray(arr)) return _array_like_to_array$g(arr);
|
|
23026
23026
|
}
|
|
23027
23027
|
function _define_property$q(obj, key, value) {
|
|
23028
23028
|
if (key in obj) {
|
|
@@ -23040,7 +23040,7 @@ function _define_property$q(obj, key, value) {
|
|
|
23040
23040
|
function _iterable_to_array$8(iter) {
|
|
23041
23041
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
23042
23042
|
}
|
|
23043
|
-
function _iterable_to_array_limit$
|
|
23043
|
+
function _iterable_to_array_limit$d(arr, i) {
|
|
23044
23044
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
23045
23045
|
if (_i == null) return;
|
|
23046
23046
|
var _arr = [];
|
|
@@ -23064,7 +23064,7 @@ function _iterable_to_array_limit$c(arr, i) {
|
|
|
23064
23064
|
}
|
|
23065
23065
|
return _arr;
|
|
23066
23066
|
}
|
|
23067
|
-
function _non_iterable_rest$
|
|
23067
|
+
function _non_iterable_rest$d() {
|
|
23068
23068
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
23069
23069
|
}
|
|
23070
23070
|
function _non_iterable_spread$8() {
|
|
@@ -23085,8 +23085,8 @@ function _object_spread$q(target) {
|
|
|
23085
23085
|
}
|
|
23086
23086
|
return target;
|
|
23087
23087
|
}
|
|
23088
|
-
function _sliced_to_array$
|
|
23089
|
-
return _array_with_holes$
|
|
23088
|
+
function _sliced_to_array$d(arr, i) {
|
|
23089
|
+
return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$g(arr, i) || _non_iterable_rest$d();
|
|
23090
23090
|
}
|
|
23091
23091
|
function _tagged_template_literal$i(strings, raw) {
|
|
23092
23092
|
if (!raw) {
|
|
@@ -23099,15 +23099,15 @@ function _tagged_template_literal$i(strings, raw) {
|
|
|
23099
23099
|
}));
|
|
23100
23100
|
}
|
|
23101
23101
|
function _to_consumable_array$8(arr) {
|
|
23102
|
-
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$
|
|
23102
|
+
return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$g(arr) || _non_iterable_spread$8();
|
|
23103
23103
|
}
|
|
23104
|
-
function _unsupported_iterable_to_array$
|
|
23104
|
+
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
23105
23105
|
if (!o) return;
|
|
23106
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
23106
|
+
if (typeof o === "string") return _array_like_to_array$g(o, minLen);
|
|
23107
23107
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
23108
23108
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
23109
23109
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
23110
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
23110
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen);
|
|
23111
23111
|
}
|
|
23112
23112
|
function _templateObject$i() {
|
|
23113
23113
|
var data = _tagged_template_literal$i([
|
|
@@ -23129,20 +23129,20 @@ function _templateObject1$e() {
|
|
|
23129
23129
|
};
|
|
23130
23130
|
return data;
|
|
23131
23131
|
}
|
|
23132
|
-
function _templateObject2$
|
|
23132
|
+
function _templateObject2$e() {
|
|
23133
23133
|
var data = _tagged_template_literal$i([
|
|
23134
23134
|
"\n position: absolute;\n display: flex;\n\n justify-content: center;\n align-items: center;\n right: -0.75rem;\n top: -0.75rem;\n border-radius: 9999px;\n border: 1px solid #e5e7eb;\n background-color: white;\n padding: 0.25rem;\n &:hover {\n cursor: pointer;\n }\n"
|
|
23135
23135
|
]);
|
|
23136
|
-
_templateObject2$
|
|
23136
|
+
_templateObject2$e = function _templateObject() {
|
|
23137
23137
|
return data;
|
|
23138
23138
|
};
|
|
23139
23139
|
return data;
|
|
23140
23140
|
}
|
|
23141
|
-
function _templateObject3$
|
|
23141
|
+
function _templateObject3$b() {
|
|
23142
23142
|
var data = _tagged_template_literal$i([
|
|
23143
23143
|
"\n display: flex;\n width: 100%;\n flex-direction: column;\n flex-wrap: wrap;\n gap: 1rem;\n border-color: #e5e7eb;\n"
|
|
23144
23144
|
]);
|
|
23145
|
-
_templateObject3$
|
|
23145
|
+
_templateObject3$b = function _templateObject() {
|
|
23146
23146
|
return data;
|
|
23147
23147
|
};
|
|
23148
23148
|
return data;
|
|
@@ -23183,14 +23183,14 @@ var FilterGroup = styled.div(_templateObject1$e(), function(param) {
|
|
|
23183
23183
|
var isHovered = param.isHovered;
|
|
23184
23184
|
return isHovered ? danger200 : '#e5e7eb';
|
|
23185
23185
|
});
|
|
23186
|
-
var CloseButton$1 = styled.button(_templateObject2$
|
|
23187
|
-
var FilterRowsContainer = styled.div(_templateObject3$
|
|
23186
|
+
var CloseButton$1 = styled.button(_templateObject2$e());
|
|
23187
|
+
var FilterRowsContainer = styled.div(_templateObject3$b());
|
|
23188
23188
|
var OrButton = styled.button(_templateObject4$9(), neutral100);
|
|
23189
23189
|
var ButtonGroup = styled.div(_templateObject5$3());
|
|
23190
23190
|
var AndButtonContainer = styled.div(_templateObject6$2());
|
|
23191
23191
|
var FilterForm = function(param) {
|
|
23192
23192
|
var values = param.values, fieldOptions = param.fieldOptions, operatorOptions = param.operatorOptions, onSubmit = param.onSubmit, onClear = param.onClear, onChange = param.onChange, errors = param.errors, touched = param.touched;
|
|
23193
|
-
var _useState = _sliced_to_array$
|
|
23193
|
+
var _useState = _sliced_to_array$d(useState(undefined), 2), isHovered = _useState[0], setIsHovered = _useState[1];
|
|
23194
23194
|
var handleAddFilterRow = function(filterKey) {
|
|
23195
23195
|
var _Math;
|
|
23196
23196
|
var currentFilter = values.filters[filterKey];
|
|
@@ -23233,7 +23233,7 @@ var FilterForm = function(param) {
|
|
|
23233
23233
|
return /*#__PURE__*/ jsxs(Container$2, {
|
|
23234
23234
|
children: [
|
|
23235
23235
|
Object.entries(values.filters).map(function(param, index) {
|
|
23236
|
-
var _param = _sliced_to_array$
|
|
23236
|
+
var _param = _sliced_to_array$d(param, 2), filterKey = _param[0], filterGroup = _param[1];
|
|
23237
23237
|
var _errors_filterKey;
|
|
23238
23238
|
return /*#__PURE__*/ jsxs(FilterGroup, {
|
|
23239
23239
|
isHovered: isHovered === index,
|
|
@@ -23257,7 +23257,7 @@ var FilterForm = function(param) {
|
|
|
23257
23257
|
}),
|
|
23258
23258
|
/*#__PURE__*/ jsx(FilterRowsContainer, {
|
|
23259
23259
|
children: Object.entries(filterGroup).map(function(param) {
|
|
23260
|
-
var _param = _sliced_to_array$
|
|
23260
|
+
var _param = _sliced_to_array$d(param, 1), rowIndex = _param[0];
|
|
23261
23261
|
return /*#__PURE__*/ jsx(FilterRow, {
|
|
23262
23262
|
filterKey: filterKey,
|
|
23263
23263
|
rowIndex: rowIndex,
|
|
@@ -23536,13 +23536,13 @@ function _templateObject1$d() {
|
|
|
23536
23536
|
};
|
|
23537
23537
|
return data;
|
|
23538
23538
|
}
|
|
23539
|
-
function _templateObject2$
|
|
23539
|
+
function _templateObject2$d() {
|
|
23540
23540
|
var data = _tagged_template_literal$h([
|
|
23541
23541
|
"\n position: absolute;\n left: ",
|
|
23542
23542
|
";\n right: ",
|
|
23543
23543
|
";\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n & svg {\n font-size: 1rem;\n }\n"
|
|
23544
23544
|
]);
|
|
23545
|
-
_templateObject2$
|
|
23545
|
+
_templateObject2$d = function _templateObject() {
|
|
23546
23546
|
return data;
|
|
23547
23547
|
};
|
|
23548
23548
|
return data;
|
|
@@ -23570,7 +23570,7 @@ var BaseInput$1 = styled.input(_templateObject1$d(), function(param) {
|
|
|
23570
23570
|
return sz === 'lg' ? $paragraph100Regular : $paragraph200Regular;
|
|
23571
23571
|
});
|
|
23572
23572
|
// Style for the Icons
|
|
23573
|
-
var IconWrapper$3 = styled.span(_templateObject2$
|
|
23573
|
+
var IconWrapper$3 = styled.span(_templateObject2$d(), function(param) {
|
|
23574
23574
|
var position = param.position;
|
|
23575
23575
|
return position === 'left' ? '0.5rem' : 'auto';
|
|
23576
23576
|
}, function(param) {
|
|
@@ -23627,16 +23627,16 @@ var Input = function(_param) {
|
|
|
23627
23627
|
});
|
|
23628
23628
|
};
|
|
23629
23629
|
|
|
23630
|
-
function _array_like_to_array$
|
|
23630
|
+
function _array_like_to_array$f(arr, len) {
|
|
23631
23631
|
if (len == null || len > arr.length) len = arr.length;
|
|
23632
23632
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
23633
23633
|
return arr2;
|
|
23634
23634
|
}
|
|
23635
|
-
function _array_with_holes$
|
|
23635
|
+
function _array_with_holes$c(arr) {
|
|
23636
23636
|
if (Array.isArray(arr)) return arr;
|
|
23637
23637
|
}
|
|
23638
23638
|
function _array_without_holes$7(arr) {
|
|
23639
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
23639
|
+
if (Array.isArray(arr)) return _array_like_to_array$f(arr);
|
|
23640
23640
|
}
|
|
23641
23641
|
function _define_property$n(obj, key, value) {
|
|
23642
23642
|
if (key in obj) {
|
|
@@ -23654,7 +23654,7 @@ function _define_property$n(obj, key, value) {
|
|
|
23654
23654
|
function _iterable_to_array$7(iter) {
|
|
23655
23655
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
23656
23656
|
}
|
|
23657
|
-
function _iterable_to_array_limit$
|
|
23657
|
+
function _iterable_to_array_limit$c(arr, i) {
|
|
23658
23658
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
23659
23659
|
if (_i == null) return;
|
|
23660
23660
|
var _arr = [];
|
|
@@ -23678,7 +23678,7 @@ function _iterable_to_array_limit$b(arr, i) {
|
|
|
23678
23678
|
}
|
|
23679
23679
|
return _arr;
|
|
23680
23680
|
}
|
|
23681
|
-
function _non_iterable_rest$
|
|
23681
|
+
function _non_iterable_rest$c() {
|
|
23682
23682
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
23683
23683
|
}
|
|
23684
23684
|
function _non_iterable_spread$7() {
|
|
@@ -23745,8 +23745,8 @@ function _object_without_properties_loose$f(source, excluded) {
|
|
|
23745
23745
|
}
|
|
23746
23746
|
return target;
|
|
23747
23747
|
}
|
|
23748
|
-
function _sliced_to_array$
|
|
23749
|
-
return _array_with_holes$
|
|
23748
|
+
function _sliced_to_array$c(arr, i) {
|
|
23749
|
+
return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$f(arr, i) || _non_iterable_rest$c();
|
|
23750
23750
|
}
|
|
23751
23751
|
function _tagged_template_literal$g(strings, raw) {
|
|
23752
23752
|
if (!raw) {
|
|
@@ -23759,15 +23759,15 @@ function _tagged_template_literal$g(strings, raw) {
|
|
|
23759
23759
|
}));
|
|
23760
23760
|
}
|
|
23761
23761
|
function _to_consumable_array$7(arr) {
|
|
23762
|
-
return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$
|
|
23762
|
+
return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$7();
|
|
23763
23763
|
}
|
|
23764
|
-
function _unsupported_iterable_to_array$
|
|
23764
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
23765
23765
|
if (!o) return;
|
|
23766
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
23766
|
+
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
23767
23767
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
23768
23768
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
23769
23769
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
23770
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
23770
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
|
|
23771
23771
|
}
|
|
23772
23772
|
function _templateObject$g() {
|
|
23773
23773
|
var data = _tagged_template_literal$g([
|
|
@@ -23793,7 +23793,7 @@ function _templateObject1$c() {
|
|
|
23793
23793
|
};
|
|
23794
23794
|
return data;
|
|
23795
23795
|
}
|
|
23796
|
-
function _templateObject2$
|
|
23796
|
+
function _templateObject2$c() {
|
|
23797
23797
|
var data = _tagged_template_literal$g([
|
|
23798
23798
|
"\n flex: 1;\n z-index: 2;\n pointer-events: none;\n border: none;\n background-color: transparent;\n\n -webkit-appearance: none;\n -moz-appearance: none;\n &::-ms-expand {\n display: none;\n }\n &::placeholder {\n color: ",
|
|
23799
23799
|
";\n }\n color: ",
|
|
@@ -23802,18 +23802,18 @@ function _templateObject2$b() {
|
|
|
23802
23802
|
";\n opacity: 0.3;\n }\n\n ",
|
|
23803
23803
|
"\n"
|
|
23804
23804
|
]);
|
|
23805
|
-
_templateObject2$
|
|
23805
|
+
_templateObject2$c = function _templateObject() {
|
|
23806
23806
|
return data;
|
|
23807
23807
|
};
|
|
23808
23808
|
return data;
|
|
23809
23809
|
}
|
|
23810
|
-
function _templateObject3$
|
|
23810
|
+
function _templateObject3$a() {
|
|
23811
23811
|
var data = _tagged_template_literal$g([
|
|
23812
23812
|
"\n background-color: ",
|
|
23813
23813
|
";\n border-radius: 1rem;\n border: none;\n cursor: pointer;\n padding: 0.25rem 0.313rem;\n white-space: nowrap;\n display: flex;\n gap: 0.25rem;\n ",
|
|
23814
23814
|
"\n align-items: center;\n justify-content: center;\n"
|
|
23815
23815
|
]);
|
|
23816
|
-
_templateObject3$
|
|
23816
|
+
_templateObject3$a = function _templateObject() {
|
|
23817
23817
|
return data;
|
|
23818
23818
|
};
|
|
23819
23819
|
return data;
|
|
@@ -23884,7 +23884,7 @@ var MultiSelectWrapper = styled.div(_templateObject1$c(), function(param) {
|
|
|
23884
23884
|
return disabled || type === 'secondary' ? neutral100 : 'white';
|
|
23885
23885
|
});
|
|
23886
23886
|
// Style for the Select itself
|
|
23887
|
-
var BaseSelect$1 = styled.select(_templateObject2$
|
|
23887
|
+
var BaseSelect$1 = styled.select(_templateObject2$c(), neutral500, function(param) {
|
|
23888
23888
|
var value = param.value;
|
|
23889
23889
|
return Array.isArray(value) && value.length > 0 ? textPrimary : neutral500;
|
|
23890
23890
|
}, function(param) {
|
|
@@ -23894,7 +23894,7 @@ var BaseSelect$1 = styled.select(_templateObject2$b(), neutral500, function(para
|
|
|
23894
23894
|
var sz = param.sz, type = param.type;
|
|
23895
23895
|
return type === 'primary' ? sz === 'lg' ? $paragraph100Regular : $paragraph200Regular : sz === 'lg' ? $paragraph100Semibold : $paragraph200Semibold;
|
|
23896
23896
|
});
|
|
23897
|
-
var Chip$1 = styled.button(_templateObject3$
|
|
23897
|
+
var Chip$1 = styled.button(_templateObject3$a(), function(param) {
|
|
23898
23898
|
var secondary = param.secondary;
|
|
23899
23899
|
return secondary ? neutral300 : neutral100;
|
|
23900
23900
|
}, function(param) {
|
|
@@ -23942,7 +23942,7 @@ var MultiSelect = function(_param) {
|
|
|
23942
23942
|
"disabled",
|
|
23943
23943
|
"type"
|
|
23944
23944
|
]);
|
|
23945
|
-
var _useState = _sliced_to_array$
|
|
23945
|
+
var _useState = _sliced_to_array$c(useState(false), 2), open = _useState[0], setOpen = _useState[1];
|
|
23946
23946
|
var wrapperRef = useRef(null);
|
|
23947
23947
|
var toggleSelect = function(option) {
|
|
23948
23948
|
setValues(values.some(function(val) {
|
|
@@ -24044,12 +24044,12 @@ var MultiSelect = function(_param) {
|
|
|
24044
24044
|
});
|
|
24045
24045
|
};
|
|
24046
24046
|
|
|
24047
|
-
function _array_like_to_array$
|
|
24047
|
+
function _array_like_to_array$e(arr, len) {
|
|
24048
24048
|
if (len == null || len > arr.length) len = arr.length;
|
|
24049
24049
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
24050
24050
|
return arr2;
|
|
24051
24051
|
}
|
|
24052
|
-
function _array_with_holes$
|
|
24052
|
+
function _array_with_holes$b(arr) {
|
|
24053
24053
|
if (Array.isArray(arr)) return arr;
|
|
24054
24054
|
}
|
|
24055
24055
|
function _define_property$m(obj, key, value) {
|
|
@@ -24065,7 +24065,7 @@ function _define_property$m(obj, key, value) {
|
|
|
24065
24065
|
}
|
|
24066
24066
|
return obj;
|
|
24067
24067
|
}
|
|
24068
|
-
function _iterable_to_array_limit$
|
|
24068
|
+
function _iterable_to_array_limit$b(arr, i) {
|
|
24069
24069
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
24070
24070
|
if (_i == null) return;
|
|
24071
24071
|
var _arr = [];
|
|
@@ -24089,7 +24089,7 @@ function _iterable_to_array_limit$a(arr, i) {
|
|
|
24089
24089
|
}
|
|
24090
24090
|
return _arr;
|
|
24091
24091
|
}
|
|
24092
|
-
function _non_iterable_rest$
|
|
24092
|
+
function _non_iterable_rest$b() {
|
|
24093
24093
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24094
24094
|
}
|
|
24095
24095
|
function _object_spread$m(target) {
|
|
@@ -24134,8 +24134,8 @@ function _object_without_properties_loose$e(source, excluded) {
|
|
|
24134
24134
|
}
|
|
24135
24135
|
return target;
|
|
24136
24136
|
}
|
|
24137
|
-
function _sliced_to_array$
|
|
24138
|
-
return _array_with_holes$
|
|
24137
|
+
function _sliced_to_array$b(arr, i) {
|
|
24138
|
+
return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$b();
|
|
24139
24139
|
}
|
|
24140
24140
|
function _tagged_template_literal$f(strings, raw) {
|
|
24141
24141
|
if (!raw) {
|
|
@@ -24147,13 +24147,13 @@ function _tagged_template_literal$f(strings, raw) {
|
|
|
24147
24147
|
}
|
|
24148
24148
|
}));
|
|
24149
24149
|
}
|
|
24150
|
-
function _unsupported_iterable_to_array$
|
|
24150
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
24151
24151
|
if (!o) return;
|
|
24152
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
24152
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
24153
24153
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
24154
24154
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
24155
24155
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
24156
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
24156
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
24157
24157
|
}
|
|
24158
24158
|
function _templateObject$f() {
|
|
24159
24159
|
var data = _tagged_template_literal$f([
|
|
@@ -24180,7 +24180,7 @@ var Search = function(_param) {
|
|
|
24180
24180
|
"clearable",
|
|
24181
24181
|
"sz"
|
|
24182
24182
|
]);
|
|
24183
|
-
var _useState = _sliced_to_array$
|
|
24183
|
+
var _useState = _sliced_to_array$b(useState(''), 2), value = _useState[0], setValue = _useState[1];
|
|
24184
24184
|
var debounceDelay = 1200;
|
|
24185
24185
|
var handleChange = function(e) {
|
|
24186
24186
|
setLoading === null || setLoading === void 0 ? void 0 : setLoading(true);
|
|
@@ -24210,16 +24210,16 @@ var Search = function(_param) {
|
|
|
24210
24210
|
}, props));
|
|
24211
24211
|
};
|
|
24212
24212
|
|
|
24213
|
-
function _array_like_to_array$
|
|
24213
|
+
function _array_like_to_array$d(arr, len) {
|
|
24214
24214
|
if (len == null || len > arr.length) len = arr.length;
|
|
24215
24215
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
24216
24216
|
return arr2;
|
|
24217
24217
|
}
|
|
24218
|
-
function _array_with_holes$
|
|
24218
|
+
function _array_with_holes$a(arr) {
|
|
24219
24219
|
if (Array.isArray(arr)) return arr;
|
|
24220
24220
|
}
|
|
24221
24221
|
function _array_without_holes$6(arr) {
|
|
24222
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
24222
|
+
if (Array.isArray(arr)) return _array_like_to_array$d(arr);
|
|
24223
24223
|
}
|
|
24224
24224
|
function _define_property$l(obj, key, value) {
|
|
24225
24225
|
if (key in obj) {
|
|
@@ -24237,7 +24237,7 @@ function _define_property$l(obj, key, value) {
|
|
|
24237
24237
|
function _iterable_to_array$6(iter) {
|
|
24238
24238
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
24239
24239
|
}
|
|
24240
|
-
function _iterable_to_array_limit$
|
|
24240
|
+
function _iterable_to_array_limit$a(arr, i) {
|
|
24241
24241
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
24242
24242
|
if (_i == null) return;
|
|
24243
24243
|
var _arr = [];
|
|
@@ -24261,7 +24261,7 @@ function _iterable_to_array_limit$9(arr, i) {
|
|
|
24261
24261
|
}
|
|
24262
24262
|
return _arr;
|
|
24263
24263
|
}
|
|
24264
|
-
function _non_iterable_rest$
|
|
24264
|
+
function _non_iterable_rest$a() {
|
|
24265
24265
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24266
24266
|
}
|
|
24267
24267
|
function _non_iterable_spread$6() {
|
|
@@ -24328,8 +24328,8 @@ function _object_without_properties_loose$d(source, excluded) {
|
|
|
24328
24328
|
}
|
|
24329
24329
|
return target;
|
|
24330
24330
|
}
|
|
24331
|
-
function _sliced_to_array$
|
|
24332
|
-
return _array_with_holes$
|
|
24331
|
+
function _sliced_to_array$a(arr, i) {
|
|
24332
|
+
return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$d(arr, i) || _non_iterable_rest$a();
|
|
24333
24333
|
}
|
|
24334
24334
|
function _tagged_template_literal$e(strings, raw) {
|
|
24335
24335
|
if (!raw) {
|
|
@@ -24342,15 +24342,15 @@ function _tagged_template_literal$e(strings, raw) {
|
|
|
24342
24342
|
}));
|
|
24343
24343
|
}
|
|
24344
24344
|
function _to_consumable_array$6(arr) {
|
|
24345
|
-
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$
|
|
24345
|
+
return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$6();
|
|
24346
24346
|
}
|
|
24347
|
-
function _unsupported_iterable_to_array$
|
|
24347
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
24348
24348
|
if (!o) return;
|
|
24349
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
24349
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
24350
24350
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
24351
24351
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
24352
24352
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
24353
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
24353
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
|
|
24354
24354
|
}
|
|
24355
24355
|
function _templateObject$e() {
|
|
24356
24356
|
var data = _tagged_template_literal$e([
|
|
@@ -24375,22 +24375,22 @@ function _templateObject1$b() {
|
|
|
24375
24375
|
};
|
|
24376
24376
|
return data;
|
|
24377
24377
|
}
|
|
24378
|
-
function _templateObject2$
|
|
24378
|
+
function _templateObject2$b() {
|
|
24379
24379
|
var data = _tagged_template_literal$e([
|
|
24380
24380
|
"\n background-color: ",
|
|
24381
24381
|
";\n border-radius: 1rem;\n border: none;\n cursor: pointer;\n display: flex;\n padding: 0.25rem 0.313rem;\n white-space: nowrap;\n gap: 0.25rem;\n ",
|
|
24382
24382
|
"\n align-items: center;\n justify-content: center;\n"
|
|
24383
24383
|
]);
|
|
24384
|
-
_templateObject2$
|
|
24384
|
+
_templateObject2$b = function _templateObject() {
|
|
24385
24385
|
return data;
|
|
24386
24386
|
};
|
|
24387
24387
|
return data;
|
|
24388
24388
|
}
|
|
24389
|
-
function _templateObject3$
|
|
24389
|
+
function _templateObject3$9() {
|
|
24390
24390
|
var data = _tagged_template_literal$e([
|
|
24391
24391
|
"\n display: flex;\n gap: 0.25rem;\n flex-wrap: wrap;\n height: auto;\n"
|
|
24392
24392
|
]);
|
|
24393
|
-
_templateObject3$
|
|
24393
|
+
_templateObject3$9 = function _templateObject() {
|
|
24394
24394
|
return data;
|
|
24395
24395
|
};
|
|
24396
24396
|
return data;
|
|
@@ -24417,11 +24417,11 @@ var BaseInput = styled.input(_templateObject1$b(), neutral500, function(param) {
|
|
|
24417
24417
|
return type === 'primary' ? sz === 'lg' ? $paragraph100Regular : $paragraph200Regular : sz === 'lg' ? $paragraph100Semibold : $paragraph200Semibold;
|
|
24418
24418
|
});
|
|
24419
24419
|
// Reusing Chip from MultiSelect
|
|
24420
|
-
var Chip = styled.button(_templateObject2$
|
|
24420
|
+
var Chip = styled.button(_templateObject2$b(), function(param) {
|
|
24421
24421
|
var secondary = param.secondary;
|
|
24422
24422
|
return secondary ? neutral300 : neutral100;
|
|
24423
24423
|
}, $label200Medium);
|
|
24424
|
-
var ChipWrapper = styled.div(_templateObject3$
|
|
24424
|
+
var ChipWrapper = styled.div(_templateObject3$9());
|
|
24425
24425
|
var ChipCounter = styled.p(_templateObject4$7(), function(param) {
|
|
24426
24426
|
var sz = param.sz, type = param.type;
|
|
24427
24427
|
return type === 'primary' ? sz === 'lg' ? $paragraph100Regular : $paragraph200Regular : sz === 'lg' ? $paragraph100Semibold : $paragraph200Semibold;
|
|
@@ -24452,8 +24452,8 @@ var MultiInput = function(_param) {
|
|
|
24452
24452
|
"chips"
|
|
24453
24453
|
]);
|
|
24454
24454
|
var _popperRef_current;
|
|
24455
|
-
var _useState = _sliced_to_array$
|
|
24456
|
-
var _useState1 = _sliced_to_array$
|
|
24455
|
+
var _useState = _sliced_to_array$a(useState(''), 2), inputValue = _useState[0], setInputValue = _useState[1];
|
|
24456
|
+
var _useState1 = _sliced_to_array$a(useState(false), 2), isFocused = _useState1[0], setIsFocused = _useState1[1];
|
|
24457
24457
|
var popperRef = useRef(null);
|
|
24458
24458
|
var handleKeyDown = function(e) {
|
|
24459
24459
|
if (e.key === 'Enter' && inputValue.trim()) {
|
|
@@ -24535,16 +24535,16 @@ var MultiInput = function(_param) {
|
|
|
24535
24535
|
}));
|
|
24536
24536
|
};
|
|
24537
24537
|
|
|
24538
|
-
function _array_like_to_array$
|
|
24538
|
+
function _array_like_to_array$c(arr, len) {
|
|
24539
24539
|
if (len == null || len > arr.length) len = arr.length;
|
|
24540
24540
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
24541
24541
|
return arr2;
|
|
24542
24542
|
}
|
|
24543
|
-
function _array_with_holes$
|
|
24543
|
+
function _array_with_holes$9(arr) {
|
|
24544
24544
|
if (Array.isArray(arr)) return arr;
|
|
24545
24545
|
}
|
|
24546
24546
|
function _array_without_holes$5(arr) {
|
|
24547
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
24547
|
+
if (Array.isArray(arr)) return _array_like_to_array$c(arr);
|
|
24548
24548
|
}
|
|
24549
24549
|
function _define_property$k(obj, key, value) {
|
|
24550
24550
|
if (key in obj) {
|
|
@@ -24562,7 +24562,7 @@ function _define_property$k(obj, key, value) {
|
|
|
24562
24562
|
function _iterable_to_array$5(iter) {
|
|
24563
24563
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
24564
24564
|
}
|
|
24565
|
-
function _iterable_to_array_limit$
|
|
24565
|
+
function _iterable_to_array_limit$9(arr, i) {
|
|
24566
24566
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
24567
24567
|
if (_i == null) return;
|
|
24568
24568
|
var _arr = [];
|
|
@@ -24586,7 +24586,7 @@ function _iterable_to_array_limit$8(arr, i) {
|
|
|
24586
24586
|
}
|
|
24587
24587
|
return _arr;
|
|
24588
24588
|
}
|
|
24589
|
-
function _non_iterable_rest$
|
|
24589
|
+
function _non_iterable_rest$9() {
|
|
24590
24590
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24591
24591
|
}
|
|
24592
24592
|
function _non_iterable_spread$5() {
|
|
@@ -24653,8 +24653,8 @@ function _object_without_properties_loose$c(source, excluded) {
|
|
|
24653
24653
|
}
|
|
24654
24654
|
return target;
|
|
24655
24655
|
}
|
|
24656
|
-
function _sliced_to_array$
|
|
24657
|
-
return _array_with_holes$
|
|
24656
|
+
function _sliced_to_array$9(arr, i) {
|
|
24657
|
+
return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$9();
|
|
24658
24658
|
}
|
|
24659
24659
|
function _tagged_template_literal$d(strings, raw) {
|
|
24660
24660
|
if (!raw) {
|
|
@@ -24667,15 +24667,15 @@ function _tagged_template_literal$d(strings, raw) {
|
|
|
24667
24667
|
}));
|
|
24668
24668
|
}
|
|
24669
24669
|
function _to_consumable_array$5(arr) {
|
|
24670
|
-
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$
|
|
24670
|
+
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$c(arr) || _non_iterable_spread$5();
|
|
24671
24671
|
}
|
|
24672
|
-
function _unsupported_iterable_to_array$
|
|
24672
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
24673
24673
|
if (!o) return;
|
|
24674
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
24674
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
24675
24675
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
24676
24676
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
24677
24677
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
24678
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
24678
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
|
|
24679
24679
|
}
|
|
24680
24680
|
function _templateObject$d() {
|
|
24681
24681
|
var data = _tagged_template_literal$d([
|
|
@@ -24702,25 +24702,25 @@ function _templateObject1$a() {
|
|
|
24702
24702
|
};
|
|
24703
24703
|
return data;
|
|
24704
24704
|
}
|
|
24705
|
-
function _templateObject2$
|
|
24705
|
+
function _templateObject2$a() {
|
|
24706
24706
|
var data = _tagged_template_literal$d([
|
|
24707
24707
|
"\n flex: 1;\n pointer-events: none;\n border: none;\n width: 100%;\n text-overflow: ellipsis;\n white-space: nowrap;\n background-color: transparent;\n z-index: 1;\n -webkit-appearance: none;\n -moz-appearance: none;\n &::-ms-expand {\n display: none;\n }\n color: ",
|
|
24708
24708
|
";\n padding: ",
|
|
24709
24709
|
";\n padding-right: 2rem;\n outline: none;\n\n ",
|
|
24710
24710
|
"\n"
|
|
24711
24711
|
]);
|
|
24712
|
-
_templateObject2$
|
|
24712
|
+
_templateObject2$a = function _templateObject() {
|
|
24713
24713
|
return data;
|
|
24714
24714
|
};
|
|
24715
24715
|
return data;
|
|
24716
24716
|
}
|
|
24717
|
-
function _templateObject3$
|
|
24717
|
+
function _templateObject3$8() {
|
|
24718
24718
|
var data = _tagged_template_literal$d([
|
|
24719
24719
|
"\n position: absolute;\n right: 0rem;\n width: 2rem;\n font-size: ",
|
|
24720
24720
|
"rem;\n background-color: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 0;\n border: none;\n cursor: pointer;\n transition: all 150ms ease-in-out;\n transform: ",
|
|
24721
24721
|
";\n"
|
|
24722
24722
|
]);
|
|
24723
|
-
_templateObject3$
|
|
24723
|
+
_templateObject3$8 = function _templateObject() {
|
|
24724
24724
|
return data;
|
|
24725
24725
|
};
|
|
24726
24726
|
return data;
|
|
@@ -24758,14 +24758,14 @@ var SelectWrapper = styled.div(_templateObject1$a(), function(param) {
|
|
|
24758
24758
|
return disabled || type === 'secondary' ? neutral100 : 'white';
|
|
24759
24759
|
});
|
|
24760
24760
|
// Style for the Select itself
|
|
24761
|
-
var BaseSelect = styled.select(_templateObject2$
|
|
24761
|
+
var BaseSelect = styled.select(_templateObject2$a(), textPrimary, function(param) {
|
|
24762
24762
|
var sz = param.sz;
|
|
24763
24763
|
return sz === 'lg' ? '0.5rem 0.563rem' : '0.375rem 0.563rem';
|
|
24764
24764
|
}, function(param) {
|
|
24765
24765
|
var sz = param.sz, type = param.type;
|
|
24766
24766
|
return type === 'primary' ? sz === 'lg' ? $paragraph100Regular : $paragraph200Regular : sz === 'lg' ? $paragraph100Semibold : $paragraph200Semibold;
|
|
24767
24767
|
});
|
|
24768
|
-
var IconWrapper$1 = styled.div(_templateObject3$
|
|
24768
|
+
var IconWrapper$1 = styled.div(_templateObject3$8(), function(param) {
|
|
24769
24769
|
var sz = param.sz;
|
|
24770
24770
|
return sz === 'lg' ? 1 : 0.75;
|
|
24771
24771
|
}, function(param) {
|
|
@@ -24791,7 +24791,7 @@ var Select = function(_param) {
|
|
|
24791
24791
|
"clearOptionLabel"
|
|
24792
24792
|
]);
|
|
24793
24793
|
var _options_find;
|
|
24794
|
-
var _useState = _sliced_to_array$
|
|
24794
|
+
var _useState = _sliced_to_array$9(useState(false), 2), open = _useState[0], setOpen = _useState[1];
|
|
24795
24795
|
var selectRef = useRef(null);
|
|
24796
24796
|
var handleSelect = function(option) {
|
|
24797
24797
|
setValue(option.value);
|
|
@@ -24987,11 +24987,11 @@ function _templateObject1$9() {
|
|
|
24987
24987
|
};
|
|
24988
24988
|
return data;
|
|
24989
24989
|
}
|
|
24990
|
-
function _templateObject2$
|
|
24990
|
+
function _templateObject2$9() {
|
|
24991
24991
|
var data = _tagged_template_literal$c([
|
|
24992
24992
|
"\n position: absolute;\n right: 0.5rem;\n"
|
|
24993
24993
|
]);
|
|
24994
|
-
_templateObject2$
|
|
24994
|
+
_templateObject2$9 = function _templateObject() {
|
|
24995
24995
|
return data;
|
|
24996
24996
|
};
|
|
24997
24997
|
return data;
|
|
@@ -25016,7 +25016,7 @@ var BaseTextArea = styled.textarea(_templateObject1$9(), function(param) {
|
|
|
25016
25016
|
var sz = param.sz;
|
|
25017
25017
|
return sz === 'lg' ? $paragraph100Regular : $paragraph200Regular;
|
|
25018
25018
|
});
|
|
25019
|
-
var CloseButton = styled(IconButton)(_templateObject2$
|
|
25019
|
+
var CloseButton = styled(IconButton)(_templateObject2$9());
|
|
25020
25020
|
var TextArea = /*#__PURE__*/ forwardRef(function(_param, ref) {
|
|
25021
25021
|
var _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, _param_clearable = _param.clearable, clearable = _param_clearable === void 0 ? false : _param_clearable, onClear = _param.onClear, style = _param.style, props = _object_without_properties$b(_param, [
|
|
25022
25022
|
"sz",
|
|
@@ -25171,24 +25171,24 @@ function _templateObject1$8() {
|
|
|
25171
25171
|
};
|
|
25172
25172
|
return data;
|
|
25173
25173
|
}
|
|
25174
|
-
function _templateObject2$
|
|
25174
|
+
function _templateObject2$8() {
|
|
25175
25175
|
var data = _tagged_template_literal$b([
|
|
25176
25176
|
"\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 0.5rem;\n background-color: transparent;\n text-align: left;\n border: none;\n white-space: nowrap;\n width: 100%;\n padding: ",
|
|
25177
25177
|
"px ",
|
|
25178
25178
|
"px;\n text-decoration: none;\n ",
|
|
25179
25179
|
"\n"
|
|
25180
25180
|
]);
|
|
25181
|
-
_templateObject2$
|
|
25181
|
+
_templateObject2$8 = function _templateObject() {
|
|
25182
25182
|
return data;
|
|
25183
25183
|
};
|
|
25184
25184
|
return data;
|
|
25185
25185
|
}
|
|
25186
|
-
function _templateObject3$
|
|
25186
|
+
function _templateObject3$7() {
|
|
25187
25187
|
var data = _tagged_template_literal$b([
|
|
25188
25188
|
"\n ",
|
|
25189
25189
|
"\n"
|
|
25190
25190
|
]);
|
|
25191
|
-
_templateObject3$
|
|
25191
|
+
_templateObject3$7 = function _templateObject() {
|
|
25192
25192
|
return data;
|
|
25193
25193
|
};
|
|
25194
25194
|
return data;
|
|
@@ -25205,8 +25205,8 @@ function _templateObject4$5() {
|
|
|
25205
25205
|
}
|
|
25206
25206
|
var MenuItemContainer = styled.div(_templateObject$b(), primary100);
|
|
25207
25207
|
var IconContainer = styled.div(_templateObject1$8());
|
|
25208
|
-
var buttonStyles = css(_templateObject2$
|
|
25209
|
-
var StyledItem = styled.button(_templateObject3$
|
|
25208
|
+
var buttonStyles = css(_templateObject2$8(), spacing(1), spacing(2), $paragraph200Regular);
|
|
25209
|
+
var StyledItem = styled.button(_templateObject3$7(), buttonStyles);
|
|
25210
25210
|
var StyledLink = styled.a(_templateObject4$5(), buttonStyles);
|
|
25211
25211
|
var MenuItem = function(_param) {
|
|
25212
25212
|
var label = _param.label, href = _param.href, selected = _param.selected, checkbox = _param.checkbox, onClick = _param.onClick, icon = _param.icon, disabled = _param.disabled, _param_size = _param.size, size = _param_size === void 0 ? 'small' : _param_size, props = _object_without_properties$a(_param, [
|
|
@@ -26402,13 +26402,13 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
26402
26402
|
var propTypesExports = propTypes.exports;
|
|
26403
26403
|
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
26404
26404
|
|
|
26405
|
-
function _array_like_to_array$
|
|
26405
|
+
function _array_like_to_array$b(arr, len) {
|
|
26406
26406
|
if (len == null || len > arr.length) len = arr.length;
|
|
26407
26407
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
26408
26408
|
return arr2;
|
|
26409
26409
|
}
|
|
26410
26410
|
function _array_without_holes$4(arr) {
|
|
26411
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
26411
|
+
if (Array.isArray(arr)) return _array_like_to_array$b(arr);
|
|
26412
26412
|
}
|
|
26413
26413
|
function _iterable_to_array$4(iter) {
|
|
26414
26414
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -26417,15 +26417,15 @@ function _non_iterable_spread$4() {
|
|
|
26417
26417
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
26418
26418
|
}
|
|
26419
26419
|
function _to_consumable_array$4(arr) {
|
|
26420
|
-
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$
|
|
26420
|
+
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$b(arr) || _non_iterable_spread$4();
|
|
26421
26421
|
}
|
|
26422
|
-
function _unsupported_iterable_to_array$
|
|
26422
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
26423
26423
|
if (!o) return;
|
|
26424
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
26424
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
26425
26425
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
26426
26426
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
26427
26427
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
26428
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
26428
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
26429
26429
|
}
|
|
26430
26430
|
function chainPropTypes(propType1, propType2) {
|
|
26431
26431
|
if (process.env.NODE_ENV === 'production') {
|
|
@@ -26620,15 +26620,15 @@ function ownerWindow(node) {
|
|
|
26620
26620
|
* and confirm it doesn't apply to your use-case.
|
|
26621
26621
|
*/ var useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
26622
26622
|
|
|
26623
|
-
function _array_like_to_array$
|
|
26623
|
+
function _array_like_to_array$a(arr, len) {
|
|
26624
26624
|
if (len == null || len > arr.length) len = arr.length;
|
|
26625
26625
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
26626
26626
|
return arr2;
|
|
26627
26627
|
}
|
|
26628
|
-
function _array_with_holes$
|
|
26628
|
+
function _array_with_holes$8(arr) {
|
|
26629
26629
|
if (Array.isArray(arr)) return arr;
|
|
26630
26630
|
}
|
|
26631
|
-
function _iterable_to_array_limit$
|
|
26631
|
+
function _iterable_to_array_limit$8(arr, i) {
|
|
26632
26632
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
26633
26633
|
if (_i == null) return;
|
|
26634
26634
|
var _arr = [];
|
|
@@ -26652,25 +26652,25 @@ function _iterable_to_array_limit$7(arr, i) {
|
|
|
26652
26652
|
}
|
|
26653
26653
|
return _arr;
|
|
26654
26654
|
}
|
|
26655
|
-
function _non_iterable_rest$
|
|
26655
|
+
function _non_iterable_rest$8() {
|
|
26656
26656
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
26657
26657
|
}
|
|
26658
|
-
function _sliced_to_array$
|
|
26659
|
-
return _array_with_holes$
|
|
26658
|
+
function _sliced_to_array$8(arr, i) {
|
|
26659
|
+
return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$8();
|
|
26660
26660
|
}
|
|
26661
|
-
function _unsupported_iterable_to_array$
|
|
26661
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
26662
26662
|
if (!o) return;
|
|
26663
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
26663
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
26664
26664
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
26665
26665
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
26666
26666
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
26667
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
26667
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
26668
26668
|
}
|
|
26669
26669
|
function useControlled(param) {
|
|
26670
26670
|
var controlled = param.controlled, defaultProp = param.default, name = param.name, _param_state = param.state, state = _param_state === void 0 ? 'value' : _param_state;
|
|
26671
26671
|
// isControlled is ignored in the hook dependency lists as it should never change.
|
|
26672
26672
|
var _React_useRef = React.useRef(controlled !== undefined), isControlled = _React_useRef.current;
|
|
26673
|
-
var _React_useState = _sliced_to_array$
|
|
26673
|
+
var _React_useState = _sliced_to_array$8(React.useState(defaultProp), 2), valueState = _React_useState[0], setValue = _React_useState[1];
|
|
26674
26674
|
var value = isControlled ? controlled : valueState;
|
|
26675
26675
|
if (process.env.NODE_ENV !== 'production') {
|
|
26676
26676
|
React.useEffect(function() {
|
|
@@ -26712,13 +26712,13 @@ function useControlled(param) {
|
|
|
26712
26712
|
];
|
|
26713
26713
|
}
|
|
26714
26714
|
|
|
26715
|
-
function _array_like_to_array$
|
|
26715
|
+
function _array_like_to_array$9(arr, len) {
|
|
26716
26716
|
if (len == null || len > arr.length) len = arr.length;
|
|
26717
26717
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
26718
26718
|
return arr2;
|
|
26719
26719
|
}
|
|
26720
26720
|
function _array_without_holes$3(arr) {
|
|
26721
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
26721
|
+
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
26722
26722
|
}
|
|
26723
26723
|
function _iterable_to_array$3(iter) {
|
|
26724
26724
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -26727,15 +26727,15 @@ function _non_iterable_spread$3() {
|
|
|
26727
26727
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
26728
26728
|
}
|
|
26729
26729
|
function _to_consumable_array$3(arr) {
|
|
26730
|
-
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$
|
|
26730
|
+
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$3();
|
|
26731
26731
|
}
|
|
26732
|
-
function _unsupported_iterable_to_array$
|
|
26732
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
26733
26733
|
if (!o) return;
|
|
26734
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
26734
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
26735
26735
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
26736
26736
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
26737
26737
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
26738
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
26738
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
26739
26739
|
}
|
|
26740
26740
|
/**
|
|
26741
26741
|
* Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892
|
|
@@ -27292,15 +27292,15 @@ function prepareForSlot(Component) {
|
|
|
27292
27292
|
});
|
|
27293
27293
|
}
|
|
27294
27294
|
|
|
27295
|
-
function _array_like_to_array$
|
|
27295
|
+
function _array_like_to_array$8(arr, len) {
|
|
27296
27296
|
if (len == null || len > arr.length) len = arr.length;
|
|
27297
27297
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
27298
27298
|
return arr2;
|
|
27299
27299
|
}
|
|
27300
|
-
function _array_with_holes$
|
|
27300
|
+
function _array_with_holes$7(arr) {
|
|
27301
27301
|
if (Array.isArray(arr)) return arr;
|
|
27302
27302
|
}
|
|
27303
|
-
function _iterable_to_array_limit$
|
|
27303
|
+
function _iterable_to_array_limit$7(arr, i) {
|
|
27304
27304
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
27305
27305
|
if (_i == null) return;
|
|
27306
27306
|
var _arr = [];
|
|
@@ -27324,19 +27324,19 @@ function _iterable_to_array_limit$6(arr, i) {
|
|
|
27324
27324
|
}
|
|
27325
27325
|
return _arr;
|
|
27326
27326
|
}
|
|
27327
|
-
function _non_iterable_rest$
|
|
27327
|
+
function _non_iterable_rest$7() {
|
|
27328
27328
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
27329
27329
|
}
|
|
27330
|
-
function _sliced_to_array$
|
|
27331
|
-
return _array_with_holes$
|
|
27330
|
+
function _sliced_to_array$7(arr, i) {
|
|
27331
|
+
return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$7();
|
|
27332
27332
|
}
|
|
27333
|
-
function _unsupported_iterable_to_array$
|
|
27333
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
27334
27334
|
if (!o) return;
|
|
27335
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
27335
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
27336
27336
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
27337
27337
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
27338
27338
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
27339
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
27339
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
27340
27340
|
}
|
|
27341
27341
|
function getContainer$1(container) {
|
|
27342
27342
|
return typeof container === 'function' ? container() : container;
|
|
@@ -27354,7 +27354,7 @@ function getContainer$1(container) {
|
|
|
27354
27354
|
* - [Portal API](https://mui.com/base-ui/react-portal/components-api/#portal)
|
|
27355
27355
|
*/ var Portal = /*#__PURE__*/ React.forwardRef(function Portal(props, forwardedRef) {
|
|
27356
27356
|
var children = props.children, container = props.container, _props_disablePortal = props.disablePortal, disablePortal = _props_disablePortal === void 0 ? false : _props_disablePortal;
|
|
27357
|
-
var _React_useState = _sliced_to_array$
|
|
27357
|
+
var _React_useState = _sliced_to_array$7(React.useState(null), 2), mountNode = _React_useState[0], setMountNode = _React_useState[1];
|
|
27358
27358
|
var handleRef = useForkRef(/*#__PURE__*/ React.isValidElement(children) ? getReactElementRef(children) : null, forwardedRef);
|
|
27359
27359
|
useEnhancedEffect(function() {
|
|
27360
27360
|
if (!disablePortal) {
|
|
@@ -27419,13 +27419,13 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
27419
27419
|
Portal['propTypes' + ''] = exactProp(Portal.propTypes);
|
|
27420
27420
|
}
|
|
27421
27421
|
|
|
27422
|
-
function _array_like_to_array$
|
|
27422
|
+
function _array_like_to_array$7(arr, len) {
|
|
27423
27423
|
if (len == null || len > arr.length) len = arr.length;
|
|
27424
27424
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
27425
27425
|
return arr2;
|
|
27426
27426
|
}
|
|
27427
27427
|
function _array_without_holes$2(arr) {
|
|
27428
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
27428
|
+
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
27429
27429
|
}
|
|
27430
27430
|
function _class_call_check(instance, Constructor) {
|
|
27431
27431
|
if (!(instance instanceof Constructor)) {
|
|
@@ -27459,15 +27459,15 @@ function _non_iterable_spread$2() {
|
|
|
27459
27459
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
27460
27460
|
}
|
|
27461
27461
|
function _to_consumable_array$2(arr) {
|
|
27462
|
-
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$
|
|
27462
|
+
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_spread$2();
|
|
27463
27463
|
}
|
|
27464
|
-
function _unsupported_iterable_to_array$
|
|
27464
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
27465
27465
|
if (!o) return;
|
|
27466
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
27466
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
27467
27467
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
27468
27468
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
27469
27469
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
27470
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
27470
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
27471
27471
|
}
|
|
27472
27472
|
// Is a vertical scrollbar displayed?
|
|
27473
27473
|
function isOverflowing(container) {
|
|
@@ -27715,12 +27715,12 @@ function getHiddenSiblings(container) {
|
|
|
27715
27715
|
return ModalManager;
|
|
27716
27716
|
}();
|
|
27717
27717
|
|
|
27718
|
-
function _array_like_to_array$
|
|
27718
|
+
function _array_like_to_array$6(arr, len) {
|
|
27719
27719
|
if (len == null || len > arr.length) len = arr.length;
|
|
27720
27720
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
27721
27721
|
return arr2;
|
|
27722
27722
|
}
|
|
27723
|
-
function _array_with_holes$
|
|
27723
|
+
function _array_with_holes$6(arr) {
|
|
27724
27724
|
if (Array.isArray(arr)) return arr;
|
|
27725
27725
|
}
|
|
27726
27726
|
function _define_property$c(obj, key, value) {
|
|
@@ -27736,7 +27736,7 @@ function _define_property$c(obj, key, value) {
|
|
|
27736
27736
|
}
|
|
27737
27737
|
return obj;
|
|
27738
27738
|
}
|
|
27739
|
-
function _iterable_to_array_limit$
|
|
27739
|
+
function _iterable_to_array_limit$6(arr, i) {
|
|
27740
27740
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
27741
27741
|
if (_i == null) return;
|
|
27742
27742
|
var _arr = [];
|
|
@@ -27760,7 +27760,7 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
27760
27760
|
}
|
|
27761
27761
|
return _arr;
|
|
27762
27762
|
}
|
|
27763
|
-
function _non_iterable_rest$
|
|
27763
|
+
function _non_iterable_rest$6() {
|
|
27764
27764
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
27765
27765
|
}
|
|
27766
27766
|
function _object_spread$c(target) {
|
|
@@ -27797,16 +27797,16 @@ function _object_spread_props$a(target, source) {
|
|
|
27797
27797
|
}
|
|
27798
27798
|
return target;
|
|
27799
27799
|
}
|
|
27800
|
-
function _sliced_to_array$
|
|
27801
|
-
return _array_with_holes$
|
|
27800
|
+
function _sliced_to_array$6(arr, i) {
|
|
27801
|
+
return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$6();
|
|
27802
27802
|
}
|
|
27803
|
-
function _unsupported_iterable_to_array$
|
|
27803
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
27804
27804
|
if (!o) return;
|
|
27805
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
27805
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
27806
27806
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
27807
27807
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
27808
27808
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
27809
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
27809
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
27810
27810
|
}
|
|
27811
27811
|
function getContainer(container) {
|
|
27812
27812
|
return typeof container === 'function' ? container() : container;
|
|
@@ -27834,7 +27834,7 @@ var defaultManager = new ModalManager();
|
|
|
27834
27834
|
var mountNodeRef = React.useRef(null);
|
|
27835
27835
|
var modalRef = React.useRef(null);
|
|
27836
27836
|
var handleRef = useForkRef(modalRef, rootRef);
|
|
27837
|
-
var _React_useState = _sliced_to_array$
|
|
27837
|
+
var _React_useState = _sliced_to_array$6(React.useState(!open), 2), exited = _React_useState[0], setExited = _React_useState[1];
|
|
27838
27838
|
var hasTransition = getHasTransition(children);
|
|
27839
27839
|
var ariaHiddenProp = true;
|
|
27840
27840
|
if (parameters['aria-hidden'] === 'false' || parameters['aria-hidden'] === false) {
|
|
@@ -28695,12 +28695,12 @@ process.env.NODE_ENV !== "production" ? Modal$1.propTypes = {
|
|
|
28695
28695
|
})
|
|
28696
28696
|
} : void 0;
|
|
28697
28697
|
|
|
28698
|
-
function _array_like_to_array$
|
|
28698
|
+
function _array_like_to_array$5(arr, len) {
|
|
28699
28699
|
if (len == null || len > arr.length) len = arr.length;
|
|
28700
28700
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
28701
28701
|
return arr2;
|
|
28702
28702
|
}
|
|
28703
|
-
function _array_with_holes$
|
|
28703
|
+
function _array_with_holes$5(arr) {
|
|
28704
28704
|
if (Array.isArray(arr)) return arr;
|
|
28705
28705
|
}
|
|
28706
28706
|
function _define_property$a(obj, key, value) {
|
|
@@ -28716,7 +28716,7 @@ function _define_property$a(obj, key, value) {
|
|
|
28716
28716
|
}
|
|
28717
28717
|
return obj;
|
|
28718
28718
|
}
|
|
28719
|
-
function _iterable_to_array_limit$
|
|
28719
|
+
function _iterable_to_array_limit$5(arr, i) {
|
|
28720
28720
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
28721
28721
|
if (_i == null) return;
|
|
28722
28722
|
var _arr = [];
|
|
@@ -28740,7 +28740,7 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
28740
28740
|
}
|
|
28741
28741
|
return _arr;
|
|
28742
28742
|
}
|
|
28743
|
-
function _non_iterable_rest$
|
|
28743
|
+
function _non_iterable_rest$5() {
|
|
28744
28744
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
28745
28745
|
}
|
|
28746
28746
|
function _object_spread$a(target) {
|
|
@@ -28777,16 +28777,16 @@ function _object_spread_props$8(target, source) {
|
|
|
28777
28777
|
}
|
|
28778
28778
|
return target;
|
|
28779
28779
|
}
|
|
28780
|
-
function _sliced_to_array$
|
|
28781
|
-
return _array_with_holes$
|
|
28780
|
+
function _sliced_to_array$5(arr, i) {
|
|
28781
|
+
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$5(arr, i) || _non_iterable_rest$5();
|
|
28782
28782
|
}
|
|
28783
|
-
function _unsupported_iterable_to_array$
|
|
28783
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
28784
28784
|
if (!o) return;
|
|
28785
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
28785
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
28786
28786
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
28787
28787
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
28788
28788
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
28789
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
28789
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
28790
28790
|
}
|
|
28791
28791
|
/**
|
|
28792
28792
|
* The basic building block for creating custom switches.
|
|
@@ -28800,7 +28800,7 @@ function _unsupported_iterable_to_array$4(o, minLen) {
|
|
|
28800
28800
|
* - [useSwitch API](https://mui.com/base-ui/react-switch/hooks-api/#use-switch)
|
|
28801
28801
|
*/ function useSwitch(props) {
|
|
28802
28802
|
var checkedProp = props.checked, defaultChecked = props.defaultChecked, disabled = props.disabled, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onFocusVisible = props.onFocusVisible, readOnly = props.readOnly, required = props.required;
|
|
28803
|
-
var _useControlled = _sliced_to_array$
|
|
28803
|
+
var _useControlled = _sliced_to_array$5(useControlled({
|
|
28804
28804
|
controlled: checkedProp,
|
|
28805
28805
|
default: Boolean(defaultChecked),
|
|
28806
28806
|
name: 'Switch',
|
|
@@ -28818,7 +28818,7 @@ function _unsupported_iterable_to_array$4(o, minLen) {
|
|
|
28818
28818
|
(_otherProps_onChange = otherProps.onChange) === null || _otherProps_onChange === void 0 ? void 0 : _otherProps_onChange.call(otherProps, event);
|
|
28819
28819
|
};
|
|
28820
28820
|
};
|
|
28821
|
-
var _React_useState = _sliced_to_array$
|
|
28821
|
+
var _React_useState = _sliced_to_array$5(React.useState(false), 2), focusVisible = _React_useState[0], setFocusVisible = _React_useState[1];
|
|
28822
28822
|
if (disabled && focusVisible) {
|
|
28823
28823
|
setFocusVisible(false);
|
|
28824
28824
|
}
|
|
@@ -29097,20 +29097,20 @@ function _templateObject1$7() {
|
|
|
29097
29097
|
};
|
|
29098
29098
|
return data;
|
|
29099
29099
|
}
|
|
29100
|
-
function _templateObject2$
|
|
29100
|
+
function _templateObject2$7() {
|
|
29101
29101
|
var data = _tagged_template_literal$8([
|
|
29102
29102
|
""
|
|
29103
29103
|
]);
|
|
29104
|
-
_templateObject2$
|
|
29104
|
+
_templateObject2$7 = function _templateObject() {
|
|
29105
29105
|
return data;
|
|
29106
29106
|
};
|
|
29107
29107
|
return data;
|
|
29108
29108
|
}
|
|
29109
|
-
function _templateObject3$
|
|
29109
|
+
function _templateObject3$6() {
|
|
29110
29110
|
var data = _tagged_template_literal$8([
|
|
29111
29111
|
"\n overflow-y: auto;\n"
|
|
29112
29112
|
]);
|
|
29113
|
-
_templateObject3$
|
|
29113
|
+
_templateObject3$6 = function _templateObject() {
|
|
29114
29114
|
return data;
|
|
29115
29115
|
};
|
|
29116
29116
|
return data;
|
|
@@ -29127,8 +29127,8 @@ function _templateObject4$4() {
|
|
|
29127
29127
|
}
|
|
29128
29128
|
var StyledModal = styled(Modal$1)(_templateObject$8());
|
|
29129
29129
|
var ModalContent = styled.div(_templateObject1$7(), spacing(2), spacing(1), spacing(3), elevation400);
|
|
29130
|
-
var ModalHeader = styled.div(_templateObject2$
|
|
29131
|
-
var ModalBody = styled.div(_templateObject3$
|
|
29130
|
+
var ModalHeader = styled.div(_templateObject2$7());
|
|
29131
|
+
var ModalBody = styled.div(_templateObject3$6());
|
|
29132
29132
|
var ModalFooter = styled.div(_templateObject4$4(), spacing(1));
|
|
29133
29133
|
var Modal = function(param) {
|
|
29134
29134
|
var open = param.open, onClose = param.onClose, loading = param.loading, title = param.title, header = param.header, children = param.children, actions = param.actions, style = param.style, _param_testId = param.testId, testId = _param_testId === void 0 ? 'modal' : _param_testId;
|
|
@@ -29192,6 +29192,44 @@ var Modal = function(param) {
|
|
|
29192
29192
|
});
|
|
29193
29193
|
};
|
|
29194
29194
|
|
|
29195
|
+
function _array_like_to_array$4(arr, len) {
|
|
29196
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
29197
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
29198
|
+
return arr2;
|
|
29199
|
+
}
|
|
29200
|
+
function _array_with_holes$4(arr) {
|
|
29201
|
+
if (Array.isArray(arr)) return arr;
|
|
29202
|
+
}
|
|
29203
|
+
function _iterable_to_array_limit$4(arr, i) {
|
|
29204
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
29205
|
+
if (_i == null) return;
|
|
29206
|
+
var _arr = [];
|
|
29207
|
+
var _n = true;
|
|
29208
|
+
var _d = false;
|
|
29209
|
+
var _s, _e;
|
|
29210
|
+
try {
|
|
29211
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
29212
|
+
_arr.push(_s.value);
|
|
29213
|
+
if (i && _arr.length === i) break;
|
|
29214
|
+
}
|
|
29215
|
+
} catch (err) {
|
|
29216
|
+
_d = true;
|
|
29217
|
+
_e = err;
|
|
29218
|
+
} finally{
|
|
29219
|
+
try {
|
|
29220
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
29221
|
+
} finally{
|
|
29222
|
+
if (_d) throw _e;
|
|
29223
|
+
}
|
|
29224
|
+
}
|
|
29225
|
+
return _arr;
|
|
29226
|
+
}
|
|
29227
|
+
function _non_iterable_rest$4() {
|
|
29228
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
29229
|
+
}
|
|
29230
|
+
function _sliced_to_array$4(arr, i) {
|
|
29231
|
+
return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$4();
|
|
29232
|
+
}
|
|
29195
29233
|
function _tagged_template_literal$7(strings, raw) {
|
|
29196
29234
|
if (!raw) {
|
|
29197
29235
|
raw = strings.slice(0);
|
|
@@ -29202,6 +29240,14 @@ function _tagged_template_literal$7(strings, raw) {
|
|
|
29202
29240
|
}
|
|
29203
29241
|
}));
|
|
29204
29242
|
}
|
|
29243
|
+
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
29244
|
+
if (!o) return;
|
|
29245
|
+
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
29246
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
29247
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
29248
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
29249
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
|
|
29250
|
+
}
|
|
29205
29251
|
function _templateObject$7() {
|
|
29206
29252
|
var data = _tagged_template_literal$7([
|
|
29207
29253
|
"\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ",
|
|
@@ -29214,58 +29260,83 @@ function _templateObject$7() {
|
|
|
29214
29260
|
}
|
|
29215
29261
|
function _templateObject1$6() {
|
|
29216
29262
|
var data = _tagged_template_literal$7([
|
|
29217
|
-
"\n display: flex;\n align-items: center;\n"
|
|
29263
|
+
"\n display: flex;\n align-items: center;\n gap: ",
|
|
29264
|
+
"px;\n"
|
|
29218
29265
|
]);
|
|
29219
29266
|
_templateObject1$6 = function _templateObject() {
|
|
29220
29267
|
return data;
|
|
29221
29268
|
};
|
|
29222
29269
|
return data;
|
|
29223
29270
|
}
|
|
29271
|
+
function _templateObject2$6() {
|
|
29272
|
+
var data = _tagged_template_literal$7([
|
|
29273
|
+
"\n display: flex;\n align-items: center;\n gap: ",
|
|
29274
|
+
"px;\n"
|
|
29275
|
+
]);
|
|
29276
|
+
_templateObject2$6 = function _templateObject() {
|
|
29277
|
+
return data;
|
|
29278
|
+
};
|
|
29279
|
+
return data;
|
|
29280
|
+
}
|
|
29281
|
+
function _templateObject3$5() {
|
|
29282
|
+
var data = _tagged_template_literal$7([
|
|
29283
|
+
"\n width: 45px;\n text-align: center;\n"
|
|
29284
|
+
]);
|
|
29285
|
+
_templateObject3$5 = function _templateObject() {
|
|
29286
|
+
return data;
|
|
29287
|
+
};
|
|
29288
|
+
return data;
|
|
29289
|
+
}
|
|
29224
29290
|
var PaginationContainer = styled.div(_templateObject$7(), spacing(2));
|
|
29225
|
-
var PageControls = styled.div(_templateObject1$6());
|
|
29291
|
+
var PageControls = styled.div(_templateObject1$6(), spacing(1));
|
|
29292
|
+
var PageInputWrapper = styled.div(_templateObject2$6(), spacing(0.5));
|
|
29293
|
+
var PageInput = styled(Input)(_templateObject3$5());
|
|
29226
29294
|
var Pagination = function(param) {
|
|
29227
|
-
var mode = param.mode, pageInfo = param.pageInfo, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading
|
|
29295
|
+
var mode = param.mode, pageInfo = param.pageInfo, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading; param.onPageSizeChange; var subText = param.subText, onPageChange = param.onPageChange, _param_testId = param.testId, testId = _param_testId === void 0 ? 'pagination' : _param_testId;
|
|
29296
|
+
var _useState = _sliced_to_array$4(useState(''), 2), pageInputValue = _useState[0], setPageInputValue = _useState[1];
|
|
29297
|
+
var formatNumber = function(num) {
|
|
29298
|
+
return num.toLocaleString('en-US');
|
|
29299
|
+
};
|
|
29300
|
+
var handlePageInputChange = function(value) {
|
|
29301
|
+
if (value === '' || /^\d+$/.test(value)) {
|
|
29302
|
+
setPageInputValue(value);
|
|
29303
|
+
}
|
|
29304
|
+
};
|
|
29305
|
+
var handlePageInputBlur = function(e) {
|
|
29306
|
+
// Restore placeholder
|
|
29307
|
+
if (mode === 'page') {
|
|
29308
|
+
e.target.placeholder = String(pageInfo.currentPage);
|
|
29309
|
+
// Submit if there's a value
|
|
29310
|
+
if (pageInputValue) {
|
|
29311
|
+
var pageNumber = Number(pageInputValue);
|
|
29312
|
+
if (pageNumber >= 1 && pageNumber <= pageInfo.pageCount) {
|
|
29313
|
+
onPageChange(pageNumber);
|
|
29314
|
+
setPageInputValue('');
|
|
29315
|
+
}
|
|
29316
|
+
}
|
|
29317
|
+
}
|
|
29318
|
+
};
|
|
29319
|
+
var handlePageInputKeyDown = function(e) {
|
|
29320
|
+
if (e.key === 'Enter') {
|
|
29321
|
+
if (mode === 'page' && pageInputValue) {
|
|
29322
|
+
var pageNumber = Number(pageInputValue);
|
|
29323
|
+
if (pageNumber >= 1 && pageNumber <= pageInfo.pageCount) {
|
|
29324
|
+
onPageChange(pageNumber);
|
|
29325
|
+
setPageInputValue('');
|
|
29326
|
+
}
|
|
29327
|
+
}
|
|
29328
|
+
e.currentTarget.blur();
|
|
29329
|
+
} else if (e.key === 'Escape') {
|
|
29330
|
+
setPageInputValue('');
|
|
29331
|
+
e.currentTarget.blur();
|
|
29332
|
+
}
|
|
29333
|
+
};
|
|
29228
29334
|
return /*#__PURE__*/ jsxs(PaginationContainer, {
|
|
29229
29335
|
children: [
|
|
29230
|
-
/*#__PURE__*/
|
|
29231
|
-
|
|
29232
|
-
|
|
29233
|
-
|
|
29234
|
-
style: {
|
|
29235
|
-
marginRight: spacing(1)
|
|
29236
|
-
},
|
|
29237
|
-
as: "span",
|
|
29238
|
-
children: "Rows per page:"
|
|
29239
|
-
}),
|
|
29240
|
-
/*#__PURE__*/ jsx(Select, {
|
|
29241
|
-
name: "".concat(testId, "-pagesize-select"),
|
|
29242
|
-
id: "".concat(testId, "-pagesize-select"),
|
|
29243
|
-
options: [
|
|
29244
|
-
{
|
|
29245
|
-
value: '50',
|
|
29246
|
-
label: '50'
|
|
29247
|
-
},
|
|
29248
|
-
{
|
|
29249
|
-
value: '100',
|
|
29250
|
-
label: '100'
|
|
29251
|
-
}
|
|
29252
|
-
],
|
|
29253
|
-
value: pageInfo.pageSize,
|
|
29254
|
-
setValue: function(value) {
|
|
29255
|
-
onPageSizeChange(Number(value));
|
|
29256
|
-
},
|
|
29257
|
-
disabled: isLoading,
|
|
29258
|
-
"data-testid": "".concat(testId, "-pagesize-select")
|
|
29259
|
-
}),
|
|
29260
|
-
subText && /*#__PURE__*/ jsx(Typography, {
|
|
29261
|
-
style: {
|
|
29262
|
-
marginLeft: spacing(1)
|
|
29263
|
-
},
|
|
29264
|
-
variant: "label200Semibold",
|
|
29265
|
-
as: "span",
|
|
29266
|
-
children: subText
|
|
29267
|
-
})
|
|
29268
|
-
]
|
|
29336
|
+
subText && /*#__PURE__*/ jsx(Typography, {
|
|
29337
|
+
variant: "label200Semibold",
|
|
29338
|
+
as: "span",
|
|
29339
|
+
children: subText
|
|
29269
29340
|
}),
|
|
29270
29341
|
/*#__PURE__*/ jsxs(PageControls, {
|
|
29271
29342
|
children: [
|
|
@@ -29274,7 +29345,7 @@ var Pagination = function(param) {
|
|
|
29274
29345
|
/*#__PURE__*/ jsx(Typography, {
|
|
29275
29346
|
variant: "paragraph300Regular",
|
|
29276
29347
|
as: "span",
|
|
29277
|
-
children: "".concat(pageInfo.pageSize * (pageInfo.currentPage - 1) + 1, " – ").concat(pageInfo.currentPage >= pageInfo.pageCount ? pageInfo.itemCount : pageInfo.pageSize * pageInfo.currentPage, " of ").concat(pageInfo.itemCount)
|
|
29348
|
+
children: "".concat(formatNumber(pageInfo.pageSize * (pageInfo.currentPage - 1) + 1), " – ").concat(pageInfo.currentPage >= pageInfo.pageCount ? formatNumber(pageInfo.itemCount) : formatNumber(pageInfo.pageSize * pageInfo.currentPage), " of ").concat(formatNumber(pageInfo.itemCount))
|
|
29278
29349
|
}),
|
|
29279
29350
|
/*#__PURE__*/ jsx(Button, {
|
|
29280
29351
|
color: "secondary",
|
|
@@ -29284,12 +29355,46 @@ var Pagination = function(param) {
|
|
|
29284
29355
|
disabled: isLoading || pageInfo.currentPage === 1,
|
|
29285
29356
|
style: {
|
|
29286
29357
|
fontSize: 10,
|
|
29287
|
-
padding: spacing(1)
|
|
29288
|
-
marginLeft: spacing(1)
|
|
29358
|
+
padding: spacing(1)
|
|
29289
29359
|
},
|
|
29290
29360
|
"data-testid": "".concat(testId, "-prev-button"),
|
|
29291
29361
|
children: /*#__PURE__*/ jsx(ChevronLeft, {})
|
|
29292
29362
|
}),
|
|
29363
|
+
/*#__PURE__*/ jsxs(PageInputWrapper, {
|
|
29364
|
+
children: [
|
|
29365
|
+
/*#__PURE__*/ jsx(Typography, {
|
|
29366
|
+
variant: "paragraph300Regular",
|
|
29367
|
+
as: "span",
|
|
29368
|
+
children: "Page"
|
|
29369
|
+
}),
|
|
29370
|
+
/*#__PURE__*/ jsx(PageInput, {
|
|
29371
|
+
type: "text",
|
|
29372
|
+
value: pageInputValue,
|
|
29373
|
+
onChange: function(e) {
|
|
29374
|
+
return handlePageInputChange(e.target.value);
|
|
29375
|
+
},
|
|
29376
|
+
onKeyDown: handlePageInputKeyDown,
|
|
29377
|
+
onBlur: handlePageInputBlur,
|
|
29378
|
+
onFocus: function(e) {
|
|
29379
|
+
return e.target.placeholder = '';
|
|
29380
|
+
},
|
|
29381
|
+
placeholder: String(pageInfo.currentPage),
|
|
29382
|
+
disabled: isLoading,
|
|
29383
|
+
sz: "sm",
|
|
29384
|
+
"data-testid": "".concat(testId, "-page-input")
|
|
29385
|
+
}),
|
|
29386
|
+
/*#__PURE__*/ jsx(Typography, {
|
|
29387
|
+
variant: "paragraph300Regular",
|
|
29388
|
+
as: "span",
|
|
29389
|
+
children: "of"
|
|
29390
|
+
}),
|
|
29391
|
+
/*#__PURE__*/ jsx(Typography, {
|
|
29392
|
+
variant: "paragraph300Regular",
|
|
29393
|
+
as: "span",
|
|
29394
|
+
children: pageInfo.pageCount
|
|
29395
|
+
})
|
|
29396
|
+
]
|
|
29397
|
+
}),
|
|
29293
29398
|
/*#__PURE__*/ jsx(Button, {
|
|
29294
29399
|
color: "secondary",
|
|
29295
29400
|
onClick: function() {
|
|
@@ -29298,8 +29403,7 @@ var Pagination = function(param) {
|
|
|
29298
29403
|
disabled: isLoading || pageInfo.currentPage >= pageInfo.pageCount,
|
|
29299
29404
|
style: {
|
|
29300
29405
|
fontSize: 10,
|
|
29301
|
-
padding: spacing(1)
|
|
29302
|
-
marginLeft: spacing(1)
|
|
29406
|
+
padding: spacing(1)
|
|
29303
29407
|
},
|
|
29304
29408
|
"data-testid": "".concat(testId, "-next-button"),
|
|
29305
29409
|
children: /*#__PURE__*/ jsx(ChevronRight, {})
|
|
@@ -29311,7 +29415,7 @@ var Pagination = function(param) {
|
|
|
29311
29415
|
/*#__PURE__*/ jsx(Typography, {
|
|
29312
29416
|
variant: "paragraph300Regular",
|
|
29313
29417
|
as: "span",
|
|
29314
|
-
children: "".concat(pageInfo.pageIndex * pageInfo.pageSize + 1, " – ").concat((pageInfo.pageIndex + 1) * pageInfo.pageSize > pageInfo.itemCount ? pageInfo.itemCount : (pageInfo.pageIndex + 1) * pageInfo.pageSize, " of ").concat(pageInfo.itemCount)
|
|
29418
|
+
children: "".concat(formatNumber(pageInfo.pageIndex * pageInfo.pageSize + 1), " – ").concat((pageInfo.pageIndex + 1) * pageInfo.pageSize > pageInfo.itemCount ? formatNumber(pageInfo.itemCount) : formatNumber((pageInfo.pageIndex + 1) * pageInfo.pageSize), " of ").concat(formatNumber(pageInfo.itemCount))
|
|
29315
29419
|
}),
|
|
29316
29420
|
/*#__PURE__*/ jsx(Button, {
|
|
29317
29421
|
color: "secondary",
|
|
@@ -29321,8 +29425,7 @@ var Pagination = function(param) {
|
|
|
29321
29425
|
disabled: isLoading || !pageInfo.hasPrevPage,
|
|
29322
29426
|
style: {
|
|
29323
29427
|
fontSize: 10,
|
|
29324
|
-
padding: spacing(1)
|
|
29325
|
-
marginLeft: spacing(1)
|
|
29428
|
+
padding: spacing(1)
|
|
29326
29429
|
},
|
|
29327
29430
|
"data-testid": "".concat(testId, "-prev-button"),
|
|
29328
29431
|
children: /*#__PURE__*/ jsx(ChevronLeft, {})
|
|
@@ -29335,8 +29438,7 @@ var Pagination = function(param) {
|
|
|
29335
29438
|
disabled: isLoading || !pageInfo.hasNextPage,
|
|
29336
29439
|
style: {
|
|
29337
29440
|
fontSize: 10,
|
|
29338
|
-
padding: spacing(1)
|
|
29339
|
-
marginLeft: spacing(1)
|
|
29441
|
+
padding: spacing(1)
|
|
29340
29442
|
},
|
|
29341
29443
|
"data-testid": "".concat(testId, "-next-button"),
|
|
29342
29444
|
children: /*#__PURE__*/ jsx(ChevronRight, {})
|