@eclass/ui-kit 1.17.0 → 1.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eclass-ui-kit.es.js +2510 -560
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +27 -27
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/molecules/Tooltip/NewTooltip.d.ts +11 -0
- package/dist/molecules/index.d.ts +1 -0
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -108,7 +108,7 @@ var KEYFRAMES = "@keyframes";
|
|
|
108
108
|
var abs = Math.abs;
|
|
109
109
|
var from = String.fromCharCode;
|
|
110
110
|
var assign = Object.assign;
|
|
111
|
-
function hash(value, length2) {
|
|
111
|
+
function hash$2(value, length2) {
|
|
112
112
|
return (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3);
|
|
113
113
|
}
|
|
114
114
|
function trim(value) {
|
|
@@ -126,8 +126,8 @@ function indexof(value, search) {
|
|
|
126
126
|
function charat(value, index2) {
|
|
127
127
|
return value.charCodeAt(index2) | 0;
|
|
128
128
|
}
|
|
129
|
-
function substr(value, begin,
|
|
130
|
-
return value.slice(begin,
|
|
129
|
+
function substr(value, begin, end2) {
|
|
130
|
+
return value.slice(begin, end2);
|
|
131
131
|
}
|
|
132
132
|
function strlen(value) {
|
|
133
133
|
return value.length;
|
|
@@ -174,8 +174,8 @@ function peek() {
|
|
|
174
174
|
function caret() {
|
|
175
175
|
return position$1;
|
|
176
176
|
}
|
|
177
|
-
function slice(begin,
|
|
178
|
-
return substr(characters, begin,
|
|
177
|
+
function slice(begin, end2) {
|
|
178
|
+
return substr(characters, begin, end2);
|
|
179
179
|
}
|
|
180
180
|
function token(type) {
|
|
181
181
|
switch (type) {
|
|
@@ -270,7 +270,7 @@ function compile(value) {
|
|
|
270
270
|
}
|
|
271
271
|
function parse$2(value, root2, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
272
272
|
var index2 = 0;
|
|
273
|
-
var
|
|
273
|
+
var offset2 = 0;
|
|
274
274
|
var length2 = pseudo;
|
|
275
275
|
var atrule = 0;
|
|
276
276
|
var property = 0;
|
|
@@ -282,7 +282,7 @@ function parse$2(value, root2, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
282
282
|
var type = "";
|
|
283
283
|
var props = rules;
|
|
284
284
|
var children = rulesets;
|
|
285
|
-
var
|
|
285
|
+
var reference2 = rule;
|
|
286
286
|
var characters2 = type;
|
|
287
287
|
while (scanning)
|
|
288
288
|
switch (previous = character2, character2 = next()) {
|
|
@@ -325,29 +325,29 @@ function parse$2(value, root2, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
325
325
|
case 0:
|
|
326
326
|
case 125:
|
|
327
327
|
scanning = 0;
|
|
328
|
-
case 59 +
|
|
328
|
+
case 59 + offset2:
|
|
329
329
|
if (property > 0 && strlen(characters2) - length2)
|
|
330
330
|
append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
|
|
331
331
|
break;
|
|
332
332
|
case 59:
|
|
333
333
|
characters2 += ";";
|
|
334
334
|
default:
|
|
335
|
-
append(
|
|
335
|
+
append(reference2 = ruleset(characters2, root2, parent, index2, offset2, rules, points, type, props = [], children = [], length2), rulesets);
|
|
336
336
|
if (character2 === 123)
|
|
337
|
-
if (
|
|
338
|
-
parse$2(characters2, root2,
|
|
337
|
+
if (offset2 === 0)
|
|
338
|
+
parse$2(characters2, root2, reference2, reference2, props, rulesets, length2, points, children);
|
|
339
339
|
else
|
|
340
340
|
switch (atrule) {
|
|
341
341
|
case 100:
|
|
342
342
|
case 109:
|
|
343
343
|
case 115:
|
|
344
|
-
parse$2(value,
|
|
344
|
+
parse$2(value, reference2, reference2, rule && append(ruleset(value, reference2, reference2, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children);
|
|
345
345
|
break;
|
|
346
346
|
default:
|
|
347
|
-
parse$2(characters2,
|
|
347
|
+
parse$2(characters2, reference2, reference2, reference2, [""], children, 0, points, children);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
index2 =
|
|
350
|
+
index2 = offset2 = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
|
|
351
351
|
break;
|
|
352
352
|
case 58:
|
|
353
353
|
length2 = 1 + strlen(characters2), property = previous;
|
|
@@ -360,7 +360,7 @@ function parse$2(value, root2, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
360
360
|
}
|
|
361
361
|
switch (characters2 += from(character2), character2 * variable) {
|
|
362
362
|
case 38:
|
|
363
|
-
ampersand =
|
|
363
|
+
ampersand = offset2 > 0 ? 1 : (characters2 += "\f", -1);
|
|
364
364
|
break;
|
|
365
365
|
case 44:
|
|
366
366
|
points[index2++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
|
|
@@ -368,7 +368,7 @@ function parse$2(value, root2, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
368
368
|
case 64:
|
|
369
369
|
if (peek() === 45)
|
|
370
370
|
characters2 += delimit(next());
|
|
371
|
-
atrule = peek(),
|
|
371
|
+
atrule = peek(), offset2 = length2 = strlen(type = characters2 += identifier(caret())), character2++;
|
|
372
372
|
break;
|
|
373
373
|
case 45:
|
|
374
374
|
if (previous === 45 && strlen(characters2) == 2)
|
|
@@ -377,15 +377,15 @@ function parse$2(value, root2, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
377
377
|
}
|
|
378
378
|
return rulesets;
|
|
379
379
|
}
|
|
380
|
-
function ruleset(value, root2, parent, index2,
|
|
381
|
-
var post =
|
|
382
|
-
var rule =
|
|
380
|
+
function ruleset(value, root2, parent, index2, offset2, rules, points, type, props, children, length2) {
|
|
381
|
+
var post = offset2 - 1;
|
|
382
|
+
var rule = offset2 === 0 ? rules : [""];
|
|
383
383
|
var size2 = sizeof(rule);
|
|
384
384
|
for (var i = 0, j = 0, k2 = 0; i < index2; ++i)
|
|
385
385
|
for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j = points[i])), z2 = value; x2 < size2; ++x2)
|
|
386
386
|
if (z2 = trim(j > 0 ? rule[x2] + " " + y2 : replace(y2, /&\f/g, rule[x2])))
|
|
387
387
|
props[k2++] = z2;
|
|
388
|
-
return node(value, root2, parent,
|
|
388
|
+
return node(value, root2, parent, offset2 === 0 ? RULESET : type, props, children, length2);
|
|
389
389
|
}
|
|
390
390
|
function comment(value, root2, parent) {
|
|
391
391
|
return node(value, root2, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
|
|
@@ -394,7 +394,7 @@ function declaration(value, root2, parent, length2) {
|
|
|
394
394
|
return node(value, root2, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
|
|
395
395
|
}
|
|
396
396
|
function prefix(value, length2) {
|
|
397
|
-
switch (hash(value, length2)) {
|
|
397
|
+
switch (hash$2(value, length2)) {
|
|
398
398
|
case 5103:
|
|
399
399
|
return WEBKIT + "print-" + value + value;
|
|
400
400
|
case 5737:
|
|
@@ -584,11 +584,11 @@ var weakMemoize = function weakMemoize2(func) {
|
|
|
584
584
|
return ret;
|
|
585
585
|
};
|
|
586
586
|
};
|
|
587
|
-
function memoize$1(
|
|
587
|
+
function memoize$1(fn6) {
|
|
588
588
|
var cache = /* @__PURE__ */ Object.create(null);
|
|
589
589
|
return function(arg) {
|
|
590
590
|
if (cache[arg] === void 0)
|
|
591
|
-
cache[arg] =
|
|
591
|
+
cache[arg] = fn6(arg);
|
|
592
592
|
return cache[arg];
|
|
593
593
|
};
|
|
594
594
|
}
|
|
@@ -739,8 +739,8 @@ var createCache = function createCache2(options) {
|
|
|
739
739
|
cache.sheet.hydrate(nodesToHydrate);
|
|
740
740
|
return cache;
|
|
741
741
|
};
|
|
742
|
-
function _extends$
|
|
743
|
-
_extends$
|
|
742
|
+
function _extends$h() {
|
|
743
|
+
_extends$h = Object.assign || function(target) {
|
|
744
744
|
for (var i = 1; i < arguments.length; i++) {
|
|
745
745
|
var source = arguments[i];
|
|
746
746
|
for (var key in source) {
|
|
@@ -751,7 +751,7 @@ function _extends$f() {
|
|
|
751
751
|
}
|
|
752
752
|
return target;
|
|
753
753
|
};
|
|
754
|
-
return _extends$
|
|
754
|
+
return _extends$h.apply(this, arguments);
|
|
755
755
|
}
|
|
756
756
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
757
757
|
var reactIs$1 = { exports: {} };
|
|
@@ -1151,7 +1151,7 @@ var getTheme = function getTheme2(outerTheme, theme2) {
|
|
|
1151
1151
|
var mergedTheme = theme2(outerTheme);
|
|
1152
1152
|
return mergedTheme;
|
|
1153
1153
|
}
|
|
1154
|
-
return _extends$
|
|
1154
|
+
return _extends$h({}, outerTheme, theme2);
|
|
1155
1155
|
};
|
|
1156
1156
|
var createCacheWithTheme = /* @__PURE__ */ weakMemoize(function(outerTheme) {
|
|
1157
1157
|
return weakMemoize(function(theme2) {
|
|
@@ -1915,8 +1915,8 @@ var lodash_mergewith = { exports: {} };
|
|
|
1915
1915
|
}
|
|
1916
1916
|
assignMergeValue(object, key, newValue);
|
|
1917
1917
|
}
|
|
1918
|
-
function baseRest(func,
|
|
1919
|
-
return setToString(overRest(func,
|
|
1918
|
+
function baseRest(func, start2) {
|
|
1919
|
+
return setToString(overRest(func, start2, identity), func + "");
|
|
1920
1920
|
}
|
|
1921
1921
|
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
1922
1922
|
return defineProperty(func, "toString", {
|
|
@@ -2065,19 +2065,19 @@ var lodash_mergewith = { exports: {} };
|
|
|
2065
2065
|
function objectToString(value) {
|
|
2066
2066
|
return nativeObjectToString.call(value);
|
|
2067
2067
|
}
|
|
2068
|
-
function overRest(func,
|
|
2069
|
-
|
|
2068
|
+
function overRest(func, start2, transform10) {
|
|
2069
|
+
start2 = nativeMax(start2 === void 0 ? func.length - 1 : start2, 0);
|
|
2070
2070
|
return function() {
|
|
2071
|
-
var args = arguments, index2 = -1, length2 = nativeMax(args.length -
|
|
2071
|
+
var args = arguments, index2 = -1, length2 = nativeMax(args.length - start2, 0), array = Array(length2);
|
|
2072
2072
|
while (++index2 < length2) {
|
|
2073
|
-
array[index2] = args[
|
|
2073
|
+
array[index2] = args[start2 + index2];
|
|
2074
2074
|
}
|
|
2075
2075
|
index2 = -1;
|
|
2076
|
-
var otherArgs = Array(
|
|
2077
|
-
while (++index2 <
|
|
2076
|
+
var otherArgs = Array(start2 + 1);
|
|
2077
|
+
while (++index2 < start2) {
|
|
2078
2078
|
otherArgs[index2] = args[index2];
|
|
2079
2079
|
}
|
|
2080
|
-
otherArgs[
|
|
2080
|
+
otherArgs[start2] = transform10(array);
|
|
2081
2081
|
return apply(func, this, otherArgs);
|
|
2082
2082
|
};
|
|
2083
2083
|
}
|
|
@@ -2244,11 +2244,11 @@ function get(obj, path, fallback, index2) {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
return obj === void 0 ? fallback : obj;
|
|
2246
2246
|
}
|
|
2247
|
-
var memoize = function memoize2(
|
|
2247
|
+
var memoize = function memoize2(fn6) {
|
|
2248
2248
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
2249
2249
|
var memoizedFn = function memoizedFn2(obj, path, fallback, index2) {
|
|
2250
2250
|
if (typeof obj === "undefined") {
|
|
2251
|
-
return
|
|
2251
|
+
return fn6(obj, path, fallback);
|
|
2252
2252
|
}
|
|
2253
2253
|
if (!cache.has(obj)) {
|
|
2254
2254
|
cache.set(obj, /* @__PURE__ */ new Map());
|
|
@@ -2257,18 +2257,18 @@ var memoize = function memoize2(fn) {
|
|
|
2257
2257
|
if (map.has(path)) {
|
|
2258
2258
|
return map.get(path);
|
|
2259
2259
|
}
|
|
2260
|
-
var value =
|
|
2260
|
+
var value = fn6(obj, path, fallback, index2);
|
|
2261
2261
|
map.set(path, value);
|
|
2262
2262
|
return value;
|
|
2263
2263
|
};
|
|
2264
2264
|
return memoizedFn;
|
|
2265
2265
|
};
|
|
2266
2266
|
var memoizedGet = memoize(get);
|
|
2267
|
-
function objectFilter(object,
|
|
2267
|
+
function objectFilter(object, fn6) {
|
|
2268
2268
|
var result = {};
|
|
2269
2269
|
Object.keys(object).forEach(function(key) {
|
|
2270
2270
|
var value = object[key];
|
|
2271
|
-
var shouldPass =
|
|
2271
|
+
var shouldPass = fn6(value, key, object);
|
|
2272
2272
|
if (shouldPass) {
|
|
2273
2273
|
result[key] = value;
|
|
2274
2274
|
}
|
|
@@ -2290,6 +2290,10 @@ var fromEntries = function fromEntries2(entries) {
|
|
|
2290
2290
|
return carry;
|
|
2291
2291
|
}, {});
|
|
2292
2292
|
};
|
|
2293
|
+
var getCSSVar = function getCSSVar2(theme2, scale2, value) {
|
|
2294
|
+
var _theme$__cssMap$$varR, _theme$__cssMap$;
|
|
2295
|
+
return (_theme$__cssMap$$varR = (_theme$__cssMap$ = theme2.__cssMap[scale2 + "." + value]) == null ? void 0 : _theme$__cssMap$.varRef) != null ? _theme$__cssMap$$varR : value;
|
|
2296
|
+
};
|
|
2293
2297
|
function analyzeCSSValue$1(value) {
|
|
2294
2298
|
var num = parseFloat(value.toString());
|
|
2295
2299
|
var unit = value.toString().replace(String(num), "");
|
|
@@ -2329,12 +2333,12 @@ function subtract(value) {
|
|
|
2329
2333
|
return "" + (parseFloat(m2) + factor);
|
|
2330
2334
|
});
|
|
2331
2335
|
}
|
|
2332
|
-
function queryString(
|
|
2336
|
+
function queryString(min2, max2) {
|
|
2333
2337
|
var query = ["@media screen"];
|
|
2334
|
-
if (
|
|
2335
|
-
query.push("and", "(min-width: " + px$1(
|
|
2336
|
-
if (
|
|
2337
|
-
query.push("and", "(max-width: " + px$1(
|
|
2338
|
+
if (min2)
|
|
2339
|
+
query.push("and", "(min-width: " + px$1(min2) + ")");
|
|
2340
|
+
if (max2)
|
|
2341
|
+
query.push("and", "(max-width: " + px$1(max2) + ")");
|
|
2338
2342
|
return query.join(" ");
|
|
2339
2343
|
}
|
|
2340
2344
|
function analyzeBreakpoints(breakpoints2) {
|
|
@@ -2400,12 +2404,12 @@ function analyzeBreakpoints(breakpoints2) {
|
|
|
2400
2404
|
}
|
|
2401
2405
|
};
|
|
2402
2406
|
}
|
|
2403
|
-
function isElement(el) {
|
|
2407
|
+
function isElement$1(el) {
|
|
2404
2408
|
return el != null && typeof el == "object" && "nodeType" in el && el.nodeType === Node.ELEMENT_NODE;
|
|
2405
2409
|
}
|
|
2406
|
-
function isHTMLElement(el) {
|
|
2410
|
+
function isHTMLElement$1(el) {
|
|
2407
2411
|
var _el$ownerDocument$def;
|
|
2408
|
-
if (!isElement(el)) {
|
|
2412
|
+
if (!isElement$1(el)) {
|
|
2409
2413
|
return false;
|
|
2410
2414
|
}
|
|
2411
2415
|
var win2 = (_el$ownerDocument$def = el.ownerDocument.defaultView) != null ? _el$ownerDocument$def : window;
|
|
@@ -2413,7 +2417,7 @@ function isHTMLElement(el) {
|
|
|
2413
2417
|
}
|
|
2414
2418
|
function getOwnerDocument(node2) {
|
|
2415
2419
|
var _node$ownerDocument;
|
|
2416
|
-
return isElement(node2) ? (_node$ownerDocument = node2.ownerDocument) != null ? _node$ownerDocument : document : document;
|
|
2420
|
+
return isElement$1(node2) ? (_node$ownerDocument = node2.ownerDocument) != null ? _node$ownerDocument : document : document;
|
|
2417
2421
|
}
|
|
2418
2422
|
function canUseDOM() {
|
|
2419
2423
|
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
@@ -2435,10 +2439,10 @@ function isDisabled(element) {
|
|
|
2435
2439
|
return Boolean(element.getAttribute("disabled")) === true || Boolean(element.getAttribute("aria-disabled")) === true;
|
|
2436
2440
|
}
|
|
2437
2441
|
function isInputElement(element) {
|
|
2438
|
-
return isHTMLElement(element) && element.tagName.toLowerCase() === "input" && "select" in element;
|
|
2442
|
+
return isHTMLElement$1(element) && element.tagName.toLowerCase() === "input" && "select" in element;
|
|
2439
2443
|
}
|
|
2440
2444
|
function isActiveElement(element) {
|
|
2441
|
-
var doc2 = isHTMLElement(element) ? getOwnerDocument(element) : document;
|
|
2445
|
+
var doc2 = isHTMLElement$1(element) ? getOwnerDocument(element) : document;
|
|
2442
2446
|
return doc2.activeElement === element;
|
|
2443
2447
|
}
|
|
2444
2448
|
function isHidden(element) {
|
|
@@ -2451,7 +2455,7 @@ function isContentEditable(element) {
|
|
|
2451
2455
|
return value !== "false" && value != null;
|
|
2452
2456
|
}
|
|
2453
2457
|
function isFocusable(element) {
|
|
2454
|
-
if (!isHTMLElement(element) || isHidden(element) || isDisabled(element)) {
|
|
2458
|
+
if (!isHTMLElement$1(element) || isHidden(element) || isDisabled(element)) {
|
|
2455
2459
|
return false;
|
|
2456
2460
|
}
|
|
2457
2461
|
var localName = element.localName;
|
|
@@ -2537,21 +2541,21 @@ function callAllHandlers() {
|
|
|
2537
2541
|
fns[_key2] = arguments[_key2];
|
|
2538
2542
|
}
|
|
2539
2543
|
return function func(event) {
|
|
2540
|
-
fns.some(function(
|
|
2541
|
-
|
|
2544
|
+
fns.some(function(fn6) {
|
|
2545
|
+
fn6 == null ? void 0 : fn6(event);
|
|
2542
2546
|
return event == null ? void 0 : event.defaultPrevented;
|
|
2543
2547
|
});
|
|
2544
2548
|
};
|
|
2545
2549
|
}
|
|
2546
|
-
function once(
|
|
2550
|
+
function once(fn6) {
|
|
2547
2551
|
var result;
|
|
2548
2552
|
return function func() {
|
|
2549
|
-
if (
|
|
2553
|
+
if (fn6) {
|
|
2550
2554
|
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
2551
2555
|
args[_key5] = arguments[_key5];
|
|
2552
2556
|
}
|
|
2553
|
-
result =
|
|
2554
|
-
|
|
2557
|
+
result = fn6.apply(this, args);
|
|
2558
|
+
fn6 = null;
|
|
2555
2559
|
}
|
|
2556
2560
|
return result;
|
|
2557
2561
|
};
|
|
@@ -2682,8 +2686,8 @@ function flatten(target, maxDepth) {
|
|
|
2682
2686
|
return result;
|
|
2683
2687
|
}, {});
|
|
2684
2688
|
}
|
|
2685
|
-
function valueToPercent(value,
|
|
2686
|
-
return (value -
|
|
2689
|
+
function valueToPercent(value, min2, max2) {
|
|
2690
|
+
return (value - min2) * 100 / (max2 - min2);
|
|
2687
2691
|
}
|
|
2688
2692
|
Object.freeze(["base", "sm", "md", "lg", "xl", "2xl"]);
|
|
2689
2693
|
function mapResponsive(prop2, mapper) {
|
|
@@ -2754,13 +2758,13 @@ function getValidChildren(children) {
|
|
|
2754
2758
|
});
|
|
2755
2759
|
}
|
|
2756
2760
|
var useSafeLayoutEffect = isBrowser$1 ? React.useLayoutEffect : React.useEffect;
|
|
2757
|
-
function useCallbackRef$1(
|
|
2761
|
+
function useCallbackRef$1(fn6, deps) {
|
|
2758
2762
|
if (deps === void 0) {
|
|
2759
2763
|
deps = [];
|
|
2760
2764
|
}
|
|
2761
|
-
var ref = React.useRef(
|
|
2765
|
+
var ref = React.useRef(fn6);
|
|
2762
2766
|
useSafeLayoutEffect(function() {
|
|
2763
|
-
ref.current =
|
|
2767
|
+
ref.current = fn6;
|
|
2764
2768
|
});
|
|
2765
2769
|
return React.useCallback(function() {
|
|
2766
2770
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -2769,13 +2773,32 @@ function useCallbackRef$1(fn, deps) {
|
|
|
2769
2773
|
return ref.current == null ? void 0 : ref.current.apply(ref, args);
|
|
2770
2774
|
}, deps);
|
|
2771
2775
|
}
|
|
2776
|
+
function useEventListener(event, handler, env, options) {
|
|
2777
|
+
var listener = useCallbackRef$1(handler);
|
|
2778
|
+
React.useEffect(function() {
|
|
2779
|
+
var _runIfFn;
|
|
2780
|
+
var node2 = (_runIfFn = runIfFn(env)) != null ? _runIfFn : document;
|
|
2781
|
+
if (!handler) {
|
|
2782
|
+
return;
|
|
2783
|
+
}
|
|
2784
|
+
node2.addEventListener(event, listener, options);
|
|
2785
|
+
return function() {
|
|
2786
|
+
node2.removeEventListener(event, listener, options);
|
|
2787
|
+
};
|
|
2788
|
+
}, [event, env, options, listener, handler]);
|
|
2789
|
+
return function() {
|
|
2790
|
+
var _runIfFn2;
|
|
2791
|
+
var node2 = (_runIfFn2 = runIfFn(env)) != null ? _runIfFn2 : document;
|
|
2792
|
+
node2.removeEventListener(event, listener, options);
|
|
2793
|
+
};
|
|
2794
|
+
}
|
|
2772
2795
|
function useControllableProp(prop2, state2) {
|
|
2773
2796
|
var isControlled = prop2 !== void 0;
|
|
2774
2797
|
var value = isControlled && typeof prop2 !== "undefined" ? prop2 : state2;
|
|
2775
2798
|
return [isControlled, value];
|
|
2776
2799
|
}
|
|
2777
|
-
function _extends$
|
|
2778
|
-
_extends$
|
|
2800
|
+
function _extends$g() {
|
|
2801
|
+
_extends$g = Object.assign || function(target) {
|
|
2779
2802
|
for (var i = 1; i < arguments.length; i++) {
|
|
2780
2803
|
var source = arguments[i];
|
|
2781
2804
|
for (var key in source) {
|
|
@@ -2786,7 +2809,7 @@ function _extends$e() {
|
|
|
2786
2809
|
}
|
|
2787
2810
|
return target;
|
|
2788
2811
|
};
|
|
2789
|
-
return _extends$
|
|
2812
|
+
return _extends$g.apply(this, arguments);
|
|
2790
2813
|
}
|
|
2791
2814
|
var defaultIdContext = {
|
|
2792
2815
|
current: 1
|
|
@@ -2860,7 +2883,7 @@ function useDisclosure(props) {
|
|
|
2860
2883
|
if (props2 === void 0) {
|
|
2861
2884
|
props2 = {};
|
|
2862
2885
|
}
|
|
2863
|
-
return _extends$
|
|
2886
|
+
return _extends$g({}, props2, {
|
|
2864
2887
|
"aria-expanded": "true",
|
|
2865
2888
|
"aria-controls": id2,
|
|
2866
2889
|
onClick: callAllHandlers(props2.onClick, onToggle)
|
|
@@ -2870,20 +2893,20 @@ function useDisclosure(props) {
|
|
|
2870
2893
|
if (props2 === void 0) {
|
|
2871
2894
|
props2 = {};
|
|
2872
2895
|
}
|
|
2873
|
-
return _extends$
|
|
2896
|
+
return _extends$g({}, props2, {
|
|
2874
2897
|
hidden: !isOpen,
|
|
2875
2898
|
id: id2
|
|
2876
2899
|
});
|
|
2877
2900
|
}
|
|
2878
2901
|
};
|
|
2879
2902
|
}
|
|
2880
|
-
function useUnmountEffect$1(
|
|
2903
|
+
function useUnmountEffect$1(fn6, deps) {
|
|
2881
2904
|
if (deps === void 0) {
|
|
2882
2905
|
deps = [];
|
|
2883
2906
|
}
|
|
2884
2907
|
return React.useEffect(function() {
|
|
2885
2908
|
return function() {
|
|
2886
|
-
return
|
|
2909
|
+
return fn6();
|
|
2887
2910
|
};
|
|
2888
2911
|
}, deps);
|
|
2889
2912
|
}
|
|
@@ -9440,8 +9463,8 @@ function PortalManager(props) {
|
|
|
9440
9463
|
}
|
|
9441
9464
|
}, children);
|
|
9442
9465
|
}
|
|
9443
|
-
function _extends$
|
|
9444
|
-
_extends$
|
|
9466
|
+
function _extends$f() {
|
|
9467
|
+
_extends$f = Object.assign || function(target) {
|
|
9445
9468
|
for (var i = 1; i < arguments.length; i++) {
|
|
9446
9469
|
var source = arguments[i];
|
|
9447
9470
|
for (var key in source) {
|
|
@@ -9452,9 +9475,9 @@ function _extends$d() {
|
|
|
9452
9475
|
}
|
|
9453
9476
|
return target;
|
|
9454
9477
|
};
|
|
9455
|
-
return _extends$
|
|
9478
|
+
return _extends$f.apply(this, arguments);
|
|
9456
9479
|
}
|
|
9457
|
-
function _objectWithoutPropertiesLoose$
|
|
9480
|
+
function _objectWithoutPropertiesLoose$e(source, excluded) {
|
|
9458
9481
|
if (source == null)
|
|
9459
9482
|
return {};
|
|
9460
9483
|
var target = {};
|
|
@@ -9468,7 +9491,7 @@ function _objectWithoutPropertiesLoose$c(source, excluded) {
|
|
|
9468
9491
|
}
|
|
9469
9492
|
return target;
|
|
9470
9493
|
}
|
|
9471
|
-
var _excluded$
|
|
9494
|
+
var _excluded$g = ["containerRef"];
|
|
9472
9495
|
var _createContext$4 = createContext({
|
|
9473
9496
|
strict: false,
|
|
9474
9497
|
name: "PortalContext"
|
|
@@ -9551,8 +9574,8 @@ var ContainerPortal = function ContainerPortal2(props) {
|
|
|
9551
9574
|
return null;
|
|
9552
9575
|
};
|
|
9553
9576
|
function Portal(props) {
|
|
9554
|
-
var containerRef = props.containerRef, rest = _objectWithoutPropertiesLoose$
|
|
9555
|
-
return containerRef ? /* @__PURE__ */ React.createElement(ContainerPortal, _extends$
|
|
9577
|
+
var containerRef = props.containerRef, rest = _objectWithoutPropertiesLoose$e(props, _excluded$g);
|
|
9578
|
+
return containerRef ? /* @__PURE__ */ React.createElement(ContainerPortal, _extends$f({
|
|
9556
9579
|
containerRef
|
|
9557
9580
|
}, rest)) : /* @__PURE__ */ React.createElement(DefaultPortal, rest);
|
|
9558
9581
|
}
|
|
@@ -9765,13 +9788,13 @@ function getColorScheme(fallback) {
|
|
|
9765
9788
|
var isDark3 = (_getMediaQuery = getMediaQuery(queries.dark)) != null ? _getMediaQuery : fallback === "dark";
|
|
9766
9789
|
return isDark3 ? "dark" : "light";
|
|
9767
9790
|
}
|
|
9768
|
-
function addListener(
|
|
9791
|
+
function addListener(fn6) {
|
|
9769
9792
|
if (!("matchMedia" in window)) {
|
|
9770
9793
|
return noop$1;
|
|
9771
9794
|
}
|
|
9772
9795
|
var mediaQueryList = window.matchMedia(queries.dark);
|
|
9773
9796
|
var listener = function listener2() {
|
|
9774
|
-
|
|
9797
|
+
fn6(mediaQueryList.matches ? "dark" : "light", true);
|
|
9775
9798
|
};
|
|
9776
9799
|
mediaQueryList.addEventListener("change", listener);
|
|
9777
9800
|
return function() {
|
|
@@ -9888,8 +9911,8 @@ function ColorModeProvider(props) {
|
|
|
9888
9911
|
value: context
|
|
9889
9912
|
}, children);
|
|
9890
9913
|
}
|
|
9891
|
-
function _extends$
|
|
9892
|
-
_extends$
|
|
9914
|
+
function _extends$e() {
|
|
9915
|
+
_extends$e = Object.assign || function(target) {
|
|
9893
9916
|
for (var i = 1; i < arguments.length; i++) {
|
|
9894
9917
|
var source = arguments[i];
|
|
9895
9918
|
for (var key in source) {
|
|
@@ -9900,7 +9923,7 @@ function _extends$c() {
|
|
|
9900
9923
|
}
|
|
9901
9924
|
return target;
|
|
9902
9925
|
};
|
|
9903
|
-
return _extends$
|
|
9926
|
+
return _extends$e.apply(this, arguments);
|
|
9904
9927
|
}
|
|
9905
9928
|
var tokenToCSSVar = function tokenToCSSVar2(scale2, value) {
|
|
9906
9929
|
return function(theme2) {
|
|
@@ -9911,7 +9934,7 @@ var tokenToCSSVar = function tokenToCSSVar2(scale2, value) {
|
|
|
9911
9934
|
};
|
|
9912
9935
|
function createTransform(options) {
|
|
9913
9936
|
var scale2 = options.scale, transform10 = options.transform, compose = options.compose;
|
|
9914
|
-
var
|
|
9937
|
+
var fn6 = function fn7(value, theme2) {
|
|
9915
9938
|
var _transform;
|
|
9916
9939
|
var _value = tokenToCSSVar(scale2, value)(theme2);
|
|
9917
9940
|
var result = (_transform = transform10 == null ? void 0 : transform10(_value, theme2)) != null ? _transform : _value;
|
|
@@ -9920,7 +9943,7 @@ function createTransform(options) {
|
|
|
9920
9943
|
}
|
|
9921
9944
|
return result;
|
|
9922
9945
|
};
|
|
9923
|
-
return
|
|
9946
|
+
return fn6;
|
|
9924
9947
|
}
|
|
9925
9948
|
function toConfig(scale2, transform10) {
|
|
9926
9949
|
return function(property) {
|
|
@@ -10244,7 +10267,7 @@ var t = {
|
|
|
10244
10267
|
};
|
|
10245
10268
|
},
|
|
10246
10269
|
prop: function prop(property, scale2, transform10) {
|
|
10247
|
-
return _extends$
|
|
10270
|
+
return _extends$e({
|
|
10248
10271
|
property,
|
|
10249
10272
|
scale: scale2
|
|
10250
10273
|
}, scale2 && {
|
|
@@ -10426,7 +10449,7 @@ var color$1 = {
|
|
|
10426
10449
|
fill: t.colors("fill"),
|
|
10427
10450
|
stroke: t.colors("stroke")
|
|
10428
10451
|
};
|
|
10429
|
-
var effect = {
|
|
10452
|
+
var effect$3 = {
|
|
10430
10453
|
boxShadow: t.shadows("boxShadow"),
|
|
10431
10454
|
mixBlendMode: true,
|
|
10432
10455
|
blendMode: t.prop("mixBlendMode"),
|
|
@@ -10434,8 +10457,8 @@ var effect = {
|
|
|
10434
10457
|
bgBlendMode: t.prop("backgroundBlendMode"),
|
|
10435
10458
|
opacity: true
|
|
10436
10459
|
};
|
|
10437
|
-
Object.assign(effect, {
|
|
10438
|
-
shadow: effect.boxShadow
|
|
10460
|
+
Object.assign(effect$3, {
|
|
10461
|
+
shadow: effect$3.boxShadow
|
|
10439
10462
|
});
|
|
10440
10463
|
var filter$1 = {
|
|
10441
10464
|
filter: {
|
|
@@ -10910,21 +10933,21 @@ var state = {
|
|
|
10910
10933
|
return str + ":placeholder-shown " + post;
|
|
10911
10934
|
}
|
|
10912
10935
|
};
|
|
10913
|
-
var toGroup = function toGroup2(
|
|
10936
|
+
var toGroup = function toGroup2(fn6) {
|
|
10914
10937
|
return merge(function(v2) {
|
|
10915
|
-
return
|
|
10938
|
+
return fn6(v2, "&");
|
|
10916
10939
|
}, "[role=group]", "[data-group]", ".group");
|
|
10917
10940
|
};
|
|
10918
|
-
var toPeer = function toPeer2(
|
|
10941
|
+
var toPeer = function toPeer2(fn6) {
|
|
10919
10942
|
return merge(function(v2) {
|
|
10920
|
-
return
|
|
10943
|
+
return fn6(v2, "~ &");
|
|
10921
10944
|
}, "[data-peer]", ".peer");
|
|
10922
10945
|
};
|
|
10923
|
-
var merge = function merge2(
|
|
10946
|
+
var merge = function merge2(fn6) {
|
|
10924
10947
|
for (var _len = arguments.length, selectors = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
10925
10948
|
selectors[_key - 1] = arguments[_key];
|
|
10926
10949
|
}
|
|
10927
|
-
return selectors.map(
|
|
10950
|
+
return selectors.map(fn6).join(", ");
|
|
10928
10951
|
};
|
|
10929
10952
|
var pseudoSelectors = {
|
|
10930
10953
|
_hover: "&:hover, &[data-hover]",
|
|
@@ -10987,10 +11010,10 @@ var pseudoSelectors = {
|
|
|
10987
11010
|
_light: ".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"
|
|
10988
11011
|
};
|
|
10989
11012
|
var pseudoPropNames = objectKeys(pseudoSelectors);
|
|
10990
|
-
var systemProps = mergeWith({}, background, border, color$1, flexbox, layout, filter$1, ring2, interactivity, grid, others, position, effect, space$1, scroll, typography$2, textDecoration, transform8, list$1, transition$1);
|
|
11013
|
+
var systemProps = mergeWith({}, background, border, color$1, flexbox, layout, filter$1, ring2, interactivity, grid, others, position, effect$3, space$1, scroll, typography$2, textDecoration, transform8, list$1, transition$1);
|
|
10991
11014
|
Object.assign({}, space$1, layout, flexbox, grid, position);
|
|
10992
11015
|
var propNames = [].concat(objectKeys(systemProps), pseudoPropNames);
|
|
10993
|
-
var styleProps = _extends$
|
|
11016
|
+
var styleProps = _extends$e({}, systemProps, pseudoSelectors);
|
|
10994
11017
|
var isStyleProp = function isStyleProp2(prop2) {
|
|
10995
11018
|
return prop2 in styleProps;
|
|
10996
11019
|
};
|
|
@@ -11243,30 +11266,30 @@ function tokenToCssVar(token2, prefix2) {
|
|
|
11243
11266
|
return cssVar$1(String(token2).replace(/\./g, "-"), void 0, prefix2);
|
|
11244
11267
|
}
|
|
11245
11268
|
function createThemeVars(flatTokens, options) {
|
|
11246
|
-
var
|
|
11269
|
+
var cssVars2 = {};
|
|
11247
11270
|
var cssMap = {};
|
|
11248
11271
|
var _loop = function _loop2() {
|
|
11249
11272
|
var _Object$entries$_i = _Object$entries[_i], token2 = _Object$entries$_i[0], tokenValue = _Object$entries$_i[1];
|
|
11250
11273
|
var isSemantic = tokenValue.isSemantic, value = tokenValue.value;
|
|
11251
|
-
var _tokenToCssVar = tokenToCssVar(token2, options == null ? void 0 : options.cssVarPrefix), variable = _tokenToCssVar.variable,
|
|
11274
|
+
var _tokenToCssVar = tokenToCssVar(token2, options == null ? void 0 : options.cssVarPrefix), variable = _tokenToCssVar.variable, reference2 = _tokenToCssVar.reference;
|
|
11252
11275
|
if (!isSemantic) {
|
|
11253
11276
|
if (token2.startsWith("space")) {
|
|
11254
11277
|
var keys2 = token2.split(".");
|
|
11255
11278
|
var firstKey = keys2[0], referenceKeys = keys2.slice(1);
|
|
11256
11279
|
var negativeLookupKey = firstKey + ".-" + referenceKeys.join(".");
|
|
11257
11280
|
var negativeValue = calc$1.negate(value);
|
|
11258
|
-
var negatedReference = calc$1.negate(
|
|
11281
|
+
var negatedReference = calc$1.negate(reference2);
|
|
11259
11282
|
cssMap[negativeLookupKey] = {
|
|
11260
11283
|
value: negativeValue,
|
|
11261
11284
|
"var": variable,
|
|
11262
11285
|
varRef: negatedReference
|
|
11263
11286
|
};
|
|
11264
11287
|
}
|
|
11265
|
-
|
|
11288
|
+
cssVars2[variable] = value;
|
|
11266
11289
|
cssMap[token2] = {
|
|
11267
11290
|
value,
|
|
11268
11291
|
"var": variable,
|
|
11269
|
-
varRef:
|
|
11292
|
+
varRef: reference2
|
|
11270
11293
|
};
|
|
11271
11294
|
return "continue";
|
|
11272
11295
|
}
|
|
@@ -11276,13 +11299,13 @@ function createThemeVars(flatTokens, options) {
|
|
|
11276
11299
|
var resolvedTokenValue = flatTokens[withScale];
|
|
11277
11300
|
if (!resolvedTokenValue)
|
|
11278
11301
|
return maybeToken;
|
|
11279
|
-
var _tokenToCssVar2 = tokenToCssVar(withScale, options == null ? void 0 : options.cssVarPrefix),
|
|
11280
|
-
return
|
|
11302
|
+
var _tokenToCssVar2 = tokenToCssVar(withScale, options == null ? void 0 : options.cssVarPrefix), reference3 = _tokenToCssVar2.reference;
|
|
11303
|
+
return reference3;
|
|
11281
11304
|
};
|
|
11282
11305
|
var normalizedValue = isObject(value) ? value : {
|
|
11283
11306
|
"default": value
|
|
11284
11307
|
};
|
|
11285
|
-
|
|
11308
|
+
cssVars2 = mergeWith(cssVars2, Object.entries(normalizedValue).reduce(function(acc, _ref2) {
|
|
11286
11309
|
var _pseudoSelectors$cond, _acc$conditionSelecto;
|
|
11287
11310
|
var conditionAlias = _ref2[0], conditionValue = _ref2[1];
|
|
11288
11311
|
var maybeReference = lookupToken(conditionValue);
|
|
@@ -11295,9 +11318,9 @@ function createThemeVars(flatTokens, options) {
|
|
|
11295
11318
|
return acc;
|
|
11296
11319
|
}, {}));
|
|
11297
11320
|
cssMap[token2] = {
|
|
11298
|
-
value:
|
|
11321
|
+
value: reference2,
|
|
11299
11322
|
"var": variable,
|
|
11300
|
-
varRef:
|
|
11323
|
+
varRef: reference2
|
|
11301
11324
|
};
|
|
11302
11325
|
};
|
|
11303
11326
|
for (var _i = 0, _Object$entries = Object.entries(flatTokens); _i < _Object$entries.length; _i++) {
|
|
@@ -11306,11 +11329,11 @@ function createThemeVars(flatTokens, options) {
|
|
|
11306
11329
|
continue;
|
|
11307
11330
|
}
|
|
11308
11331
|
return {
|
|
11309
|
-
cssVars,
|
|
11332
|
+
cssVars: cssVars2,
|
|
11310
11333
|
cssMap
|
|
11311
11334
|
};
|
|
11312
11335
|
}
|
|
11313
|
-
function _objectWithoutPropertiesLoose$
|
|
11336
|
+
function _objectWithoutPropertiesLoose$d(source, excluded) {
|
|
11314
11337
|
if (source == null)
|
|
11315
11338
|
return {};
|
|
11316
11339
|
var target = {};
|
|
@@ -11324,7 +11347,7 @@ function _objectWithoutPropertiesLoose$b(source, excluded) {
|
|
|
11324
11347
|
}
|
|
11325
11348
|
return target;
|
|
11326
11349
|
}
|
|
11327
|
-
var _excluded$
|
|
11350
|
+
var _excluded$f = ["__cssMap", "__cssVars", "__breakpoints"];
|
|
11328
11351
|
var tokens = ["colors", "borders", "borderWidths", "borderStyles", "fonts", "fontSizes", "fontWeights", "letterSpacings", "lineHeights", "radii", "space", "shadows", "sizes", "zIndices", "transition", "blur"];
|
|
11329
11352
|
function extractTokens(theme2) {
|
|
11330
11353
|
var _tokens = tokens;
|
|
@@ -11337,7 +11360,7 @@ function omitVars(rawTheme) {
|
|
|
11337
11360
|
rawTheme.__cssMap;
|
|
11338
11361
|
rawTheme.__cssVars;
|
|
11339
11362
|
rawTheme.__breakpoints;
|
|
11340
|
-
var cleanTheme = _objectWithoutPropertiesLoose$
|
|
11363
|
+
var cleanTheme = _objectWithoutPropertiesLoose$d(rawTheme, _excluded$f);
|
|
11341
11364
|
return cleanTheme;
|
|
11342
11365
|
}
|
|
11343
11366
|
function flattenTokens(_ref2) {
|
|
@@ -11373,7 +11396,7 @@ function toCSSVar(rawTheme) {
|
|
|
11373
11396
|
var cssVarPrefix = (_theme$config = theme2.config) == null ? void 0 : _theme$config.cssVarPrefix;
|
|
11374
11397
|
var _createThemeVars = createThemeVars(flatTokens, {
|
|
11375
11398
|
cssVarPrefix
|
|
11376
|
-
}), cssMap = _createThemeVars.cssMap,
|
|
11399
|
+
}), cssMap = _createThemeVars.cssMap, cssVars2 = _createThemeVars.cssVars;
|
|
11377
11400
|
var defaultCssVars = {
|
|
11378
11401
|
"--chakra-ring-inset": "var(--chakra-empty,/*!*/ /*!*/)",
|
|
11379
11402
|
"--chakra-ring-offset-width": "0px",
|
|
@@ -11385,7 +11408,7 @@ function toCSSVar(rawTheme) {
|
|
|
11385
11408
|
"--chakra-space-y-reverse": "0"
|
|
11386
11409
|
};
|
|
11387
11410
|
Object.assign(theme2, {
|
|
11388
|
-
__cssVars: _extends$
|
|
11411
|
+
__cssVars: _extends$e({}, defaultCssVars, cssVars2),
|
|
11389
11412
|
__cssMap: cssMap,
|
|
11390
11413
|
__breakpoints: analyzeBreakpoints(theme2.breakpoints)
|
|
11391
11414
|
});
|
|
@@ -11600,7 +11623,7 @@ var createStyled = function createStyled2(tag2, options) {
|
|
|
11600
11623
|
}
|
|
11601
11624
|
});
|
|
11602
11625
|
Styled.withComponent = function(nextTag, nextOptions) {
|
|
11603
|
-
return createStyled2(nextTag, _extends$
|
|
11626
|
+
return createStyled2(nextTag, _extends$h({}, options, nextOptions, {
|
|
11604
11627
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
11605
11628
|
})).apply(void 0, styles2);
|
|
11606
11629
|
};
|
|
@@ -11747,8 +11770,8 @@ var newStyled = createStyled.bind();
|
|
|
11747
11770
|
tags.forEach(function(tagName) {
|
|
11748
11771
|
newStyled[tagName] = newStyled(tagName);
|
|
11749
11772
|
});
|
|
11750
|
-
function _extends$
|
|
11751
|
-
_extends$
|
|
11773
|
+
function _extends$d() {
|
|
11774
|
+
_extends$d = Object.assign || function(target) {
|
|
11752
11775
|
for (var i = 1; i < arguments.length; i++) {
|
|
11753
11776
|
var source = arguments[i];
|
|
11754
11777
|
for (var key in source) {
|
|
@@ -11759,7 +11782,7 @@ function _extends$b() {
|
|
|
11759
11782
|
}
|
|
11760
11783
|
return target;
|
|
11761
11784
|
};
|
|
11762
|
-
return _extends$
|
|
11785
|
+
return _extends$d.apply(this, arguments);
|
|
11763
11786
|
}
|
|
11764
11787
|
var ThemeProvider2 = function ThemeProvider3(props) {
|
|
11765
11788
|
var cssVarsRoot = props.cssVarsRoot, theme2 = props.theme, children = props.children;
|
|
@@ -11815,11 +11838,11 @@ function omitThemingProps(props) {
|
|
|
11815
11838
|
function useChakra() {
|
|
11816
11839
|
var colorModeResult = useColorMode();
|
|
11817
11840
|
var theme2 = useTheme();
|
|
11818
|
-
return _extends$
|
|
11841
|
+
return _extends$d({}, colorModeResult, {
|
|
11819
11842
|
theme: theme2
|
|
11820
11843
|
});
|
|
11821
11844
|
}
|
|
11822
|
-
function _objectWithoutPropertiesLoose$
|
|
11845
|
+
function _objectWithoutPropertiesLoose$c(source, excluded) {
|
|
11823
11846
|
if (source == null)
|
|
11824
11847
|
return {};
|
|
11825
11848
|
var target = {};
|
|
@@ -11838,12 +11861,12 @@ var validHTMLProps = /* @__PURE__ */ new Set(["htmlWidth", "htmlHeight", "htmlSi
|
|
|
11838
11861
|
var shouldForwardProp = function shouldForwardProp2(prop2) {
|
|
11839
11862
|
return validHTMLProps.has(prop2) || !allPropNames.has(prop2);
|
|
11840
11863
|
};
|
|
11841
|
-
var _excluded$1$
|
|
11864
|
+
var _excluded$1$4 = ["theme", "css", "__css", "sx"], _excluded2$3 = ["baseStyle"];
|
|
11842
11865
|
var toCSSObject = function toCSSObject2(_ref2) {
|
|
11843
11866
|
var baseStyle22 = _ref2.baseStyle;
|
|
11844
11867
|
return function(props) {
|
|
11845
11868
|
props.theme;
|
|
11846
|
-
var cssProp = props.css, __css = props.__css, sx = props.sx, rest = _objectWithoutPropertiesLoose$
|
|
11869
|
+
var cssProp = props.css, __css = props.__css, sx = props.sx, rest = _objectWithoutPropertiesLoose$c(props, _excluded$1$4);
|
|
11847
11870
|
var styleProps2 = objectFilter(rest, function(_, prop2) {
|
|
11848
11871
|
return isStyleProp(prop2);
|
|
11849
11872
|
});
|
|
@@ -11854,7 +11877,7 @@ var toCSSObject = function toCSSObject2(_ref2) {
|
|
|
11854
11877
|
};
|
|
11855
11878
|
};
|
|
11856
11879
|
function styled(component, options) {
|
|
11857
|
-
var _ref2 = options != null ? options : {}, baseStyle22 = _ref2.baseStyle, styledOptions = _objectWithoutPropertiesLoose$
|
|
11880
|
+
var _ref2 = options != null ? options : {}, baseStyle22 = _ref2.baseStyle, styledOptions = _objectWithoutPropertiesLoose$c(_ref2, _excluded2$3);
|
|
11858
11881
|
if (!styledOptions.shouldForwardProp) {
|
|
11859
11882
|
styledOptions.shouldForwardProp = shouldForwardProp;
|
|
11860
11883
|
}
|
|
@@ -11866,7 +11889,7 @@ function styled(component, options) {
|
|
|
11866
11889
|
function forwardRef(component) {
|
|
11867
11890
|
return /* @__PURE__ */ React.forwardRef(component);
|
|
11868
11891
|
}
|
|
11869
|
-
var _excluded$
|
|
11892
|
+
var _excluded$e = ["styleConfig"];
|
|
11870
11893
|
function useStyleConfig(themeKey, props, opts) {
|
|
11871
11894
|
var _styleConfig$defaultP;
|
|
11872
11895
|
if (props === void 0) {
|
|
@@ -11875,7 +11898,7 @@ function useStyleConfig(themeKey, props, opts) {
|
|
|
11875
11898
|
if (opts === void 0) {
|
|
11876
11899
|
opts = {};
|
|
11877
11900
|
}
|
|
11878
|
-
var _props = props, styleConfigProp = _props.styleConfig, rest = _objectWithoutPropertiesLoose$
|
|
11901
|
+
var _props = props, styleConfigProp = _props.styleConfig, rest = _objectWithoutPropertiesLoose$c(_props, _excluded$e);
|
|
11879
11902
|
var _useChakra = useChakra(), theme2 = _useChakra.theme, colorMode = _useChakra.colorMode;
|
|
11880
11903
|
var themeStyleConfig = memoizedGet(theme2, "components." + themeKey);
|
|
11881
11904
|
var styleConfig = styleConfigProp || themeStyleConfig;
|
|
@@ -11973,8 +11996,8 @@ var spacing = {
|
|
|
11973
11996
|
80: "20rem",
|
|
11974
11997
|
96: "24rem"
|
|
11975
11998
|
};
|
|
11976
|
-
function _extends$
|
|
11977
|
-
_extends$
|
|
11999
|
+
function _extends$c() {
|
|
12000
|
+
_extends$c = Object.assign || function(target) {
|
|
11978
12001
|
for (var i = 1; i < arguments.length; i++) {
|
|
11979
12002
|
var source = arguments[i];
|
|
11980
12003
|
for (var key in source) {
|
|
@@ -11985,7 +12008,7 @@ function _extends$a() {
|
|
|
11985
12008
|
}
|
|
11986
12009
|
return target;
|
|
11987
12010
|
};
|
|
11988
|
-
return _extends$
|
|
12011
|
+
return _extends$c.apply(this, arguments);
|
|
11989
12012
|
}
|
|
11990
12013
|
var largeSizes = {
|
|
11991
12014
|
max: "max-content",
|
|
@@ -12012,25 +12035,25 @@ var container$1 = {
|
|
|
12012
12035
|
lg: "1024px",
|
|
12013
12036
|
xl: "1280px"
|
|
12014
12037
|
};
|
|
12015
|
-
var sizes$l = _extends$
|
|
12038
|
+
var sizes$l = _extends$c({}, spacing, largeSizes, {
|
|
12016
12039
|
container: container$1
|
|
12017
12040
|
});
|
|
12018
|
-
function bound01(n2,
|
|
12041
|
+
function bound01(n2, max2) {
|
|
12019
12042
|
if (isOnePointZero(n2)) {
|
|
12020
12043
|
n2 = "100%";
|
|
12021
12044
|
}
|
|
12022
12045
|
var isPercent = isPercentage(n2);
|
|
12023
|
-
n2 =
|
|
12046
|
+
n2 = max2 === 360 ? n2 : Math.min(max2, Math.max(0, parseFloat(n2)));
|
|
12024
12047
|
if (isPercent) {
|
|
12025
|
-
n2 = parseInt(String(n2 *
|
|
12048
|
+
n2 = parseInt(String(n2 * max2), 10) / 100;
|
|
12026
12049
|
}
|
|
12027
|
-
if (Math.abs(n2 -
|
|
12050
|
+
if (Math.abs(n2 - max2) < 1e-6) {
|
|
12028
12051
|
return 1;
|
|
12029
12052
|
}
|
|
12030
|
-
if (
|
|
12031
|
-
n2 = (n2 < 0 ? n2 %
|
|
12053
|
+
if (max2 === 360) {
|
|
12054
|
+
n2 = (n2 < 0 ? n2 % max2 + max2 : n2 % max2) / parseFloat(String(max2));
|
|
12032
12055
|
} else {
|
|
12033
|
-
n2 = n2 %
|
|
12056
|
+
n2 = n2 % max2 / parseFloat(String(max2));
|
|
12034
12057
|
}
|
|
12035
12058
|
return n2;
|
|
12036
12059
|
}
|
|
@@ -12070,18 +12093,18 @@ function rgbToHsl(r2, g2, b2) {
|
|
|
12070
12093
|
r2 = bound01(r2, 255);
|
|
12071
12094
|
g2 = bound01(g2, 255);
|
|
12072
12095
|
b2 = bound01(b2, 255);
|
|
12073
|
-
var
|
|
12074
|
-
var
|
|
12096
|
+
var max2 = Math.max(r2, g2, b2);
|
|
12097
|
+
var min2 = Math.min(r2, g2, b2);
|
|
12075
12098
|
var h = 0;
|
|
12076
12099
|
var s = 0;
|
|
12077
|
-
var l2 = (
|
|
12078
|
-
if (
|
|
12100
|
+
var l2 = (max2 + min2) / 2;
|
|
12101
|
+
if (max2 === min2) {
|
|
12079
12102
|
s = 0;
|
|
12080
12103
|
h = 0;
|
|
12081
12104
|
} else {
|
|
12082
|
-
var d2 =
|
|
12083
|
-
s = l2 > 0.5 ? d2 / (2 -
|
|
12084
|
-
switch (
|
|
12105
|
+
var d2 = max2 - min2;
|
|
12106
|
+
s = l2 > 0.5 ? d2 / (2 - max2 - min2) : d2 / (max2 + min2);
|
|
12107
|
+
switch (max2) {
|
|
12085
12108
|
case r2:
|
|
12086
12109
|
h = (g2 - b2) / d2 + (g2 < b2 ? 6 : 0);
|
|
12087
12110
|
break;
|
|
@@ -12138,16 +12161,16 @@ function rgbToHsv(r2, g2, b2) {
|
|
|
12138
12161
|
r2 = bound01(r2, 255);
|
|
12139
12162
|
g2 = bound01(g2, 255);
|
|
12140
12163
|
b2 = bound01(b2, 255);
|
|
12141
|
-
var
|
|
12142
|
-
var
|
|
12164
|
+
var max2 = Math.max(r2, g2, b2);
|
|
12165
|
+
var min2 = Math.min(r2, g2, b2);
|
|
12143
12166
|
var h = 0;
|
|
12144
|
-
var v2 =
|
|
12145
|
-
var d2 =
|
|
12146
|
-
var s =
|
|
12147
|
-
if (
|
|
12167
|
+
var v2 = max2;
|
|
12168
|
+
var d2 = max2 - min2;
|
|
12169
|
+
var s = max2 === 0 ? 0 : d2 / max2;
|
|
12170
|
+
if (max2 === min2) {
|
|
12148
12171
|
h = 0;
|
|
12149
12172
|
} else {
|
|
12150
|
-
switch (
|
|
12173
|
+
switch (max2) {
|
|
12151
12174
|
case r2:
|
|
12152
12175
|
h = (g2 - b2) / d2 + (g2 < b2 ? 6 : 0);
|
|
12153
12176
|
break;
|
|
@@ -13013,11 +13036,11 @@ function randomWithin(range, seed) {
|
|
|
13013
13036
|
if (seed === void 0) {
|
|
13014
13037
|
return Math.floor(range[0] + Math.random() * (range[1] + 1 - range[0]));
|
|
13015
13038
|
}
|
|
13016
|
-
var
|
|
13017
|
-
var
|
|
13039
|
+
var max2 = range[1] || 1;
|
|
13040
|
+
var min2 = range[0] || 0;
|
|
13018
13041
|
seed = (seed * 9301 + 49297) % 233280;
|
|
13019
13042
|
var rnd = seed / 233280;
|
|
13020
|
-
return Math.floor(
|
|
13043
|
+
return Math.floor(min2 + rnd * (max2 - min2));
|
|
13021
13044
|
}
|
|
13022
13045
|
function defineColor(bound) {
|
|
13023
13046
|
var sMin = bound.lowerBounds[0][0];
|
|
@@ -13232,8 +13255,8 @@ function orient(options) {
|
|
|
13232
13255
|
return {};
|
|
13233
13256
|
return orientation === "vertical" ? vertical : horizontal;
|
|
13234
13257
|
}
|
|
13235
|
-
function _extends$
|
|
13236
|
-
_extends$
|
|
13258
|
+
function _extends$b() {
|
|
13259
|
+
_extends$b = Object.assign || function(target) {
|
|
13237
13260
|
for (var i = 1; i < arguments.length; i++) {
|
|
13238
13261
|
var source = arguments[i];
|
|
13239
13262
|
for (var key in source) {
|
|
@@ -13244,14 +13267,14 @@ function _extends$9() {
|
|
|
13244
13267
|
}
|
|
13245
13268
|
return target;
|
|
13246
13269
|
};
|
|
13247
|
-
return _extends$
|
|
13270
|
+
return _extends$b.apply(this, arguments);
|
|
13248
13271
|
}
|
|
13249
13272
|
var createBreakpoints = function createBreakpoints2(config2) {
|
|
13250
13273
|
warn({
|
|
13251
13274
|
condition: true,
|
|
13252
13275
|
message: ["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon", "simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")
|
|
13253
13276
|
});
|
|
13254
|
-
return _extends$
|
|
13277
|
+
return _extends$b({
|
|
13255
13278
|
base: "0em"
|
|
13256
13279
|
}, config2);
|
|
13257
13280
|
};
|
|
@@ -13458,14 +13481,14 @@ function addPrefix(value, prefix2) {
|
|
|
13458
13481
|
function toVarRef(name, fallback) {
|
|
13459
13482
|
return "var(" + escape(name) + (fallback ? ", " + fallback : "") + ")";
|
|
13460
13483
|
}
|
|
13461
|
-
function toVar(value, prefix2) {
|
|
13484
|
+
function toVar$1(value, prefix2) {
|
|
13462
13485
|
if (prefix2 === void 0) {
|
|
13463
13486
|
prefix2 = "";
|
|
13464
13487
|
}
|
|
13465
13488
|
return "--" + addPrefix(value, prefix2);
|
|
13466
13489
|
}
|
|
13467
13490
|
function cssVar(name, options) {
|
|
13468
|
-
var cssVariable = toVar(name, options == null ? void 0 : options.prefix);
|
|
13491
|
+
var cssVariable = toVar$1(name, options == null ? void 0 : options.prefix);
|
|
13469
13492
|
return {
|
|
13470
13493
|
variable: cssVariable,
|
|
13471
13494
|
reference: toVarRef(cssVariable, getFallback(options == null ? void 0 : options.fallback))
|
|
@@ -13886,7 +13909,7 @@ var variantGhost = function variantGhost2(props) {
|
|
|
13886
13909
|
var variantOutline$1 = function variantOutline2(props) {
|
|
13887
13910
|
var c2 = props.colorScheme;
|
|
13888
13911
|
var borderColor = mode("gray.200", "whiteAlpha.300")(props);
|
|
13889
|
-
return _extends$
|
|
13912
|
+
return _extends$c({
|
|
13890
13913
|
border: "1px solid",
|
|
13891
13914
|
borderColor: c2 === "gray" ? borderColor : "currentColor"
|
|
13892
13915
|
}, variantGhost(props));
|
|
@@ -14225,7 +14248,7 @@ var baseStyleDialogContainer$1 = {
|
|
|
14225
14248
|
};
|
|
14226
14249
|
var baseStyleDialog$1 = function baseStyleDialog(props) {
|
|
14227
14250
|
var isFullHeight = props.isFullHeight;
|
|
14228
|
-
return _extends$
|
|
14251
|
+
return _extends$c({}, isFullHeight && {
|
|
14229
14252
|
height: "100vh"
|
|
14230
14253
|
}, {
|
|
14231
14254
|
zIndex: "modal",
|
|
@@ -14893,7 +14916,7 @@ function getSize(size2) {
|
|
|
14893
14916
|
var _fontSize = (_sizeStyle$field$font = (_sizeStyle$field = sizeStyle.field) == null ? void 0 : _sizeStyle$field.fontSize) != null ? _sizeStyle$field$font : "md";
|
|
14894
14917
|
var fontSize = typography$1.fontSizes[_fontSize.toString()];
|
|
14895
14918
|
return {
|
|
14896
|
-
field: _extends$
|
|
14919
|
+
field: _extends$c({}, sizeStyle.field, {
|
|
14897
14920
|
paddingInlineEnd: $inputPadding.reference,
|
|
14898
14921
|
verticalAlign: "top"
|
|
14899
14922
|
}),
|
|
@@ -14924,7 +14947,7 @@ var numberInput = {
|
|
|
14924
14947
|
defaultProps: defaultProps$b
|
|
14925
14948
|
};
|
|
14926
14949
|
var _Input$variants$unsty$1;
|
|
14927
|
-
var baseStyle$f = _extends$
|
|
14950
|
+
var baseStyle$f = _extends$c({}, Input.baseStyle.field, {
|
|
14928
14951
|
textAlign: "center"
|
|
14929
14952
|
});
|
|
14930
14953
|
var sizes$b = {
|
|
@@ -15032,7 +15055,7 @@ function filledStyle(props) {
|
|
|
15032
15055
|
var bgColor = mode(c2 + ".500", c2 + ".200")(props);
|
|
15033
15056
|
var gradient = "linear-gradient(\n to right,\n transparent 0%,\n " + getColor(t2, bgColor) + " 50%,\n transparent 100%\n )";
|
|
15034
15057
|
var addStripe = !isIndeterminate && hasStripe;
|
|
15035
|
-
return _extends$
|
|
15058
|
+
return _extends$c({}, addStripe && stripeStyle, isIndeterminate ? {
|
|
15036
15059
|
bgImage: gradient
|
|
15037
15060
|
} : {
|
|
15038
15061
|
bgColor
|
|
@@ -15050,7 +15073,7 @@ var baseStyleTrack$2 = function baseStyleTrack(props) {
|
|
|
15050
15073
|
};
|
|
15051
15074
|
};
|
|
15052
15075
|
var baseStyleFilledTrack$1 = function baseStyleFilledTrack(props) {
|
|
15053
|
-
return _extends$
|
|
15076
|
+
return _extends$c({
|
|
15054
15077
|
transitionProperty: "common",
|
|
15055
15078
|
transitionDuration: "slow"
|
|
15056
15079
|
}, filledStyle(props));
|
|
@@ -15096,9 +15119,9 @@ var progress$1 = {
|
|
|
15096
15119
|
};
|
|
15097
15120
|
var baseStyleControl2 = function baseStyleControl3(props) {
|
|
15098
15121
|
var _Checkbox$baseStyle = Checkbox.baseStyle(props), _Checkbox$baseStyle$c = _Checkbox$baseStyle.control, control = _Checkbox$baseStyle$c === void 0 ? {} : _Checkbox$baseStyle$c;
|
|
15099
|
-
return _extends$
|
|
15122
|
+
return _extends$c({}, control, {
|
|
15100
15123
|
borderRadius: "full",
|
|
15101
|
-
_checked: _extends$
|
|
15124
|
+
_checked: _extends$c({}, control["_checked"], {
|
|
15102
15125
|
_before: {
|
|
15103
15126
|
content: '""',
|
|
15104
15127
|
display: "inline-block",
|
|
@@ -15157,7 +15180,7 @@ var radio = {
|
|
|
15157
15180
|
defaultProps: defaultProps$8
|
|
15158
15181
|
};
|
|
15159
15182
|
var baseStyleField = function baseStyleField2(props) {
|
|
15160
|
-
return _extends$
|
|
15183
|
+
return _extends$c({}, Input.baseStyle.field, {
|
|
15161
15184
|
bg: mode("white", "gray.700")(props),
|
|
15162
15185
|
appearance: "none",
|
|
15163
15186
|
paddingBottom: "1px",
|
|
@@ -15227,14 +15250,14 @@ var baseStyle$a = function baseStyle15(props) {
|
|
|
15227
15250
|
var defaultStartColor = mode("gray.100", "gray.800")(props);
|
|
15228
15251
|
var defaultEndColor = mode("gray.400", "gray.600")(props);
|
|
15229
15252
|
var _props$startColor = props.startColor, startColor = _props$startColor === void 0 ? defaultStartColor : _props$startColor, _props$endColor = props.endColor, endColor = _props$endColor === void 0 ? defaultEndColor : _props$endColor, speed = props.speed, theme2 = props.theme;
|
|
15230
|
-
var
|
|
15231
|
-
var
|
|
15253
|
+
var start2 = getColor(theme2, startColor);
|
|
15254
|
+
var end2 = getColor(theme2, endColor);
|
|
15232
15255
|
return {
|
|
15233
15256
|
opacity: 0.7,
|
|
15234
15257
|
borderRadius: "2px",
|
|
15235
|
-
borderColor:
|
|
15236
|
-
background:
|
|
15237
|
-
animation: speed + "s linear infinite alternate " + fade(
|
|
15258
|
+
borderColor: start2,
|
|
15259
|
+
background: end2,
|
|
15260
|
+
animation: speed + "s linear infinite alternate " + fade(start2, end2)
|
|
15238
15261
|
};
|
|
15239
15262
|
};
|
|
15240
15263
|
var skeleton = {
|
|
@@ -15278,7 +15301,7 @@ function thumbOrientation(props) {
|
|
|
15278
15301
|
}
|
|
15279
15302
|
var baseStyleContainer$1 = function baseStyleContainer2(props) {
|
|
15280
15303
|
var orientation = props.orientation;
|
|
15281
|
-
return _extends$
|
|
15304
|
+
return _extends$c({
|
|
15282
15305
|
display: "inline-block",
|
|
15283
15306
|
position: "relative",
|
|
15284
15307
|
cursor: "pointer",
|
|
@@ -15308,7 +15331,7 @@ var baseStyleTrack$1 = function baseStyleTrack2(props) {
|
|
|
15308
15331
|
};
|
|
15309
15332
|
};
|
|
15310
15333
|
var baseStyleThumb$1 = function baseStyleThumb(props) {
|
|
15311
|
-
return _extends$
|
|
15334
|
+
return _extends$c({
|
|
15312
15335
|
display: "flex",
|
|
15313
15336
|
alignItems: "center",
|
|
15314
15337
|
justifyContent: "center",
|
|
@@ -15578,12 +15601,12 @@ var numericStyles = {
|
|
|
15578
15601
|
var variantSimple = function variantSimple2(props) {
|
|
15579
15602
|
var c2 = props.colorScheme;
|
|
15580
15603
|
return {
|
|
15581
|
-
th: _extends$
|
|
15604
|
+
th: _extends$c({
|
|
15582
15605
|
color: mode("gray.600", "gray.400")(props),
|
|
15583
15606
|
borderBottom: "1px",
|
|
15584
15607
|
borderColor: mode(c2 + ".100", c2 + ".700")(props)
|
|
15585
15608
|
}, numericStyles),
|
|
15586
|
-
td: _extends$
|
|
15609
|
+
td: _extends$c({
|
|
15587
15610
|
borderBottom: "1px",
|
|
15588
15611
|
borderColor: mode(c2 + ".100", c2 + ".700")(props)
|
|
15589
15612
|
}, numericStyles),
|
|
@@ -15604,12 +15627,12 @@ var variantSimple = function variantSimple2(props) {
|
|
|
15604
15627
|
var variantStripe = function variantStripe2(props) {
|
|
15605
15628
|
var c2 = props.colorScheme;
|
|
15606
15629
|
return {
|
|
15607
|
-
th: _extends$
|
|
15630
|
+
th: _extends$c({
|
|
15608
15631
|
color: mode("gray.600", "gray.400")(props),
|
|
15609
15632
|
borderBottom: "1px",
|
|
15610
15633
|
borderColor: mode(c2 + ".100", c2 + ".700")(props)
|
|
15611
15634
|
}, numericStyles),
|
|
15612
|
-
td: _extends$
|
|
15635
|
+
td: _extends$c({
|
|
15613
15636
|
borderBottom: "1px",
|
|
15614
15637
|
borderColor: mode(c2 + ".100", c2 + ".700")(props)
|
|
15615
15638
|
}, numericStyles),
|
|
@@ -15997,7 +16020,7 @@ var tag = {
|
|
|
15997
16020
|
defaultProps: defaultProps$1
|
|
15998
16021
|
};
|
|
15999
16022
|
var _Input$variants$unsty, _Input$sizes$xs$field, _Input$sizes$sm$field, _Input$sizes$md$field, _Input$sizes$lg$field;
|
|
16000
|
-
var baseStyle$1 = _extends$
|
|
16023
|
+
var baseStyle$1 = _extends$c({}, Input.baseStyle.field, {
|
|
16001
16024
|
paddingY: "8px",
|
|
16002
16025
|
minHeight: "80px",
|
|
16003
16026
|
lineHeight: "short",
|
|
@@ -16398,7 +16421,7 @@ var blur2 = {
|
|
|
16398
16421
|
"2xl": "40px",
|
|
16399
16422
|
"3xl": "64px"
|
|
16400
16423
|
};
|
|
16401
|
-
var foundations = _extends$
|
|
16424
|
+
var foundations = _extends$c({
|
|
16402
16425
|
breakpoints,
|
|
16403
16426
|
zIndices,
|
|
16404
16427
|
radii: radii$1,
|
|
@@ -16448,15 +16471,15 @@ var config = {
|
|
|
16448
16471
|
initialColorMode: "light",
|
|
16449
16472
|
cssVarPrefix: "chakra"
|
|
16450
16473
|
};
|
|
16451
|
-
var theme$1 = _extends$
|
|
16474
|
+
var theme$1 = _extends$c({
|
|
16452
16475
|
direction
|
|
16453
16476
|
}, foundations, {
|
|
16454
16477
|
components,
|
|
16455
16478
|
styles: styles$1$1,
|
|
16456
16479
|
config
|
|
16457
16480
|
});
|
|
16458
|
-
function _extends$
|
|
16459
|
-
_extends$
|
|
16481
|
+
function _extends$a() {
|
|
16482
|
+
_extends$a = Object.assign || function(target) {
|
|
16460
16483
|
for (var i = 1; i < arguments.length; i++) {
|
|
16461
16484
|
var source = arguments[i];
|
|
16462
16485
|
for (var key in source) {
|
|
@@ -16467,9 +16490,9 @@ function _extends$8() {
|
|
|
16467
16490
|
}
|
|
16468
16491
|
return target;
|
|
16469
16492
|
};
|
|
16470
|
-
return _extends$
|
|
16493
|
+
return _extends$a.apply(this, arguments);
|
|
16471
16494
|
}
|
|
16472
|
-
function _objectWithoutPropertiesLoose$
|
|
16495
|
+
function _objectWithoutPropertiesLoose$b(source, excluded) {
|
|
16473
16496
|
if (source == null)
|
|
16474
16497
|
return {};
|
|
16475
16498
|
var target = {};
|
|
@@ -16483,7 +16506,7 @@ function _objectWithoutPropertiesLoose$9(source, excluded) {
|
|
|
16483
16506
|
}
|
|
16484
16507
|
return target;
|
|
16485
16508
|
}
|
|
16486
|
-
var _excluded$
|
|
16509
|
+
var _excluded$d = ["as", "viewBox", "color", "focusable", "children", "className", "__css"];
|
|
16487
16510
|
var fallbackIcon = {
|
|
16488
16511
|
path: /* @__PURE__ */ React.createElement("g", {
|
|
16489
16512
|
stroke: "currentColor",
|
|
@@ -16506,9 +16529,9 @@ var fallbackIcon = {
|
|
|
16506
16529
|
viewBox: "0 0 24 24"
|
|
16507
16530
|
};
|
|
16508
16531
|
var Icon = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
16509
|
-
var element = props.as, viewBox = props.viewBox, _props$color = props.color, color2 = _props$color === void 0 ? "currentColor" : _props$color, _props$focusable = props.focusable, focusable = _props$focusable === void 0 ? false : _props$focusable, children = props.children, className = props.className, __css = props.__css, rest = _objectWithoutPropertiesLoose$
|
|
16532
|
+
var element = props.as, viewBox = props.viewBox, _props$color = props.color, color2 = _props$color === void 0 ? "currentColor" : _props$color, _props$focusable = props.focusable, focusable = _props$focusable === void 0 ? false : _props$focusable, children = props.children, className = props.className, __css = props.__css, rest = _objectWithoutPropertiesLoose$b(props, _excluded$d);
|
|
16510
16533
|
var _className = cx("chakra-icon", className);
|
|
16511
|
-
var styles2 = _extends$
|
|
16534
|
+
var styles2 = _extends$a({
|
|
16512
16535
|
w: "1em",
|
|
16513
16536
|
h: "1em",
|
|
16514
16537
|
display: "inline-block",
|
|
@@ -16524,12 +16547,12 @@ var Icon = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
16524
16547
|
};
|
|
16525
16548
|
var _viewBox = viewBox != null ? viewBox : fallbackIcon.viewBox;
|
|
16526
16549
|
if (element && typeof element !== "string") {
|
|
16527
|
-
return /* @__PURE__ */ React.createElement(chakra.svg, _extends$
|
|
16550
|
+
return /* @__PURE__ */ React.createElement(chakra.svg, _extends$a({
|
|
16528
16551
|
as: element
|
|
16529
16552
|
}, shared, rest));
|
|
16530
16553
|
}
|
|
16531
16554
|
var _path = children != null ? children : fallbackIcon.path;
|
|
16532
|
-
return /* @__PURE__ */ React.createElement(chakra.svg, _extends$
|
|
16555
|
+
return /* @__PURE__ */ React.createElement(chakra.svg, _extends$a({
|
|
16533
16556
|
verticalAlign: "middle",
|
|
16534
16557
|
viewBox: _viewBox
|
|
16535
16558
|
}, shared, rest), _path);
|
|
@@ -16995,7 +17018,7 @@ const startLoop$1 = () => {
|
|
|
16995
17018
|
onNextFrame$1(processFrame$1);
|
|
16996
17019
|
};
|
|
16997
17020
|
const getFrameData$1 = () => frame$1;
|
|
16998
|
-
const clamp$1 = (
|
|
17021
|
+
const clamp$1 = (min2, max2, v2) => Math.min(Math.max(v2, min2), max2);
|
|
16999
17022
|
const safeMin = 1e-3;
|
|
17000
17023
|
const minDuration = 0.01;
|
|
17001
17024
|
const maxDuration = 10;
|
|
@@ -17146,7 +17169,7 @@ const progress = (from2, to, value) => {
|
|
|
17146
17169
|
return toFromDifference === 0 ? 1 : (value - from2) / toFromDifference;
|
|
17147
17170
|
};
|
|
17148
17171
|
const mix = (from2, to, progress2) => -progress2 * from2 + progress2 * to + from2;
|
|
17149
|
-
const clamp = (
|
|
17172
|
+
const clamp = (min2, max2) => (v2) => Math.max(Math.min(v2, max2), min2);
|
|
17150
17173
|
const sanitize = (v2) => v2 % 1 ? Number(v2.toFixed(5)) : v2;
|
|
17151
17174
|
const floatRegex = /(-)?([\d]*\.?[\d])+/g;
|
|
17152
17175
|
const colorRegex = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi;
|
|
@@ -17160,7 +17183,7 @@ const number = {
|
|
|
17160
17183
|
transform: (v2) => v2
|
|
17161
17184
|
};
|
|
17162
17185
|
const alpha = Object.assign(Object.assign({}, number), { transform: clamp(0, 1) });
|
|
17163
|
-
const scale = Object.assign(Object.assign({}, number), { default: 1 });
|
|
17186
|
+
const scale$1 = Object.assign(Object.assign({}, number), { default: 1 });
|
|
17164
17187
|
const createUnitType = (unit) => ({
|
|
17165
17188
|
test: (v2) => isString(v2) && v2.endsWith(unit) && v2.split(" ").length === 1,
|
|
17166
17189
|
parse: parseFloat,
|
|
@@ -17559,13 +17582,13 @@ function defaultOffset(values) {
|
|
|
17559
17582
|
const numValues = values.length;
|
|
17560
17583
|
return values.map((_value, i) => i !== 0 ? i / (numValues - 1) : 0);
|
|
17561
17584
|
}
|
|
17562
|
-
function convertOffsetToTimes(
|
|
17563
|
-
return
|
|
17585
|
+
function convertOffsetToTimes(offset2, duration) {
|
|
17586
|
+
return offset2.map((o) => o * duration);
|
|
17564
17587
|
}
|
|
17565
|
-
function keyframes$1({ from: from2 = 0, to = 1, ease, offset, duration = 300 }) {
|
|
17588
|
+
function keyframes$1({ from: from2 = 0, to = 1, ease, offset: offset2, duration = 300 }) {
|
|
17566
17589
|
const state2 = { done: false, value: from2 };
|
|
17567
17590
|
const values = Array.isArray(to) ? to : [from2, to];
|
|
17568
|
-
const times = convertOffsetToTimes(
|
|
17591
|
+
const times = convertOffsetToTimes(offset2 && offset2.length === values.length ? offset2 : defaultOffset(values), duration);
|
|
17569
17592
|
function createInterpolator() {
|
|
17570
17593
|
return interpolate(times, values, {
|
|
17571
17594
|
ease: Array.isArray(ease) ? ease : defaultEasing(values, ease)
|
|
@@ -17821,17 +17844,17 @@ function animate$1(_a) {
|
|
|
17821
17844
|
function velocityPerSecond(velocity, frameDuration) {
|
|
17822
17845
|
return frameDuration ? velocity * (1e3 / frameDuration) : 0;
|
|
17823
17846
|
}
|
|
17824
|
-
function inertia({ from: from2 = 0, velocity = 0, min, max, power = 0.8, timeConstant = 750, bounceStiffness = 500, bounceDamping = 10, restDelta = 1, modifyTarget, driver, onUpdate, onComplete, onStop }) {
|
|
17847
|
+
function inertia({ from: from2 = 0, velocity = 0, min: min2, max: max2, power = 0.8, timeConstant = 750, bounceStiffness = 500, bounceDamping = 10, restDelta = 1, modifyTarget, driver, onUpdate, onComplete, onStop }) {
|
|
17825
17848
|
let currentAnimation;
|
|
17826
17849
|
function isOutOfBounds(v2) {
|
|
17827
|
-
return
|
|
17850
|
+
return min2 !== void 0 && v2 < min2 || max2 !== void 0 && v2 > max2;
|
|
17828
17851
|
}
|
|
17829
17852
|
function boundaryNearest(v2) {
|
|
17830
|
-
if (
|
|
17831
|
-
return
|
|
17832
|
-
if (
|
|
17833
|
-
return
|
|
17834
|
-
return Math.abs(
|
|
17853
|
+
if (min2 === void 0)
|
|
17854
|
+
return max2;
|
|
17855
|
+
if (max2 === void 0)
|
|
17856
|
+
return min2;
|
|
17857
|
+
return Math.abs(min2 - v2) < Math.abs(max2 - v2) ? min2 : max2;
|
|
17835
17858
|
}
|
|
17836
17859
|
function startAnimation2(options) {
|
|
17837
17860
|
currentAnimation === null || currentAnimation === void 0 ? void 0 : currentAnimation.stop();
|
|
@@ -17856,7 +17879,7 @@ function inertia({ from: from2 = 0, velocity = 0, min, max, power = 0.8, timeCon
|
|
|
17856
17879
|
if (typeof modifyTarget !== "undefined")
|
|
17857
17880
|
target = modifyTarget(target);
|
|
17858
17881
|
const boundary = boundaryNearest(target);
|
|
17859
|
-
const heading2 = boundary ===
|
|
17882
|
+
const heading2 = boundary === min2 ? -1 : 1;
|
|
17860
17883
|
let prev2;
|
|
17861
17884
|
let current;
|
|
17862
17885
|
const checkBoundary = (v2) => {
|
|
@@ -18249,10 +18272,10 @@ var numberValueTypes = {
|
|
|
18249
18272
|
rotateX: degrees,
|
|
18250
18273
|
rotateY: degrees,
|
|
18251
18274
|
rotateZ: degrees,
|
|
18252
|
-
scale,
|
|
18253
|
-
scaleX: scale,
|
|
18254
|
-
scaleY: scale,
|
|
18255
|
-
scaleZ: scale,
|
|
18275
|
+
scale: scale$1,
|
|
18276
|
+
scaleX: scale$1,
|
|
18277
|
+
scaleY: scale$1,
|
|
18278
|
+
scaleZ: scale$1,
|
|
18256
18279
|
skew: degrees,
|
|
18257
18280
|
skewX: degrees,
|
|
18258
18281
|
skewY: degrees,
|
|
@@ -18321,7 +18344,7 @@ function isTransitionDefined(_a) {
|
|
|
18321
18344
|
return !!Object.keys(transition2).length;
|
|
18322
18345
|
}
|
|
18323
18346
|
function convertTransitionToAnimationOptions(_a) {
|
|
18324
|
-
var ease = _a.ease, times = _a.times, yoyo = _a.yoyo,
|
|
18347
|
+
var ease = _a.ease, times = _a.times, yoyo = _a.yoyo, flip2 = _a.flip, loop = _a.loop, transition2 = __rest$3(_a, ["ease", "times", "yoyo", "flip", "loop"]);
|
|
18325
18348
|
var options = __assign$4({}, transition2);
|
|
18326
18349
|
if (times)
|
|
18327
18350
|
options["offset"] = times;
|
|
@@ -18334,15 +18357,15 @@ function convertTransitionToAnimationOptions(_a) {
|
|
|
18334
18357
|
}
|
|
18335
18358
|
if (transition2.type === "tween")
|
|
18336
18359
|
options.type = "keyframes";
|
|
18337
|
-
if (yoyo || loop ||
|
|
18360
|
+
if (yoyo || loop || flip2) {
|
|
18338
18361
|
if (yoyo) {
|
|
18339
18362
|
options.repeatType = "reverse";
|
|
18340
18363
|
} else if (loop) {
|
|
18341
18364
|
options.repeatType = "loop";
|
|
18342
|
-
} else if (
|
|
18365
|
+
} else if (flip2) {
|
|
18343
18366
|
options.repeatType = "mirror";
|
|
18344
18367
|
}
|
|
18345
|
-
options.repeat = loop || yoyo ||
|
|
18368
|
+
options.repeat = loop || yoyo || flip2 || transition2.repeat;
|
|
18346
18369
|
}
|
|
18347
18370
|
if (transition2.type !== "spring")
|
|
18348
18371
|
options.type = "keyframes";
|
|
@@ -18384,7 +18407,7 @@ function getAnimation(key, value, target, transition2, onComplete) {
|
|
|
18384
18407
|
target = getZeroUnit(origin);
|
|
18385
18408
|
}
|
|
18386
18409
|
var isOriginAnimatable = isAnimatable(key, origin);
|
|
18387
|
-
function
|
|
18410
|
+
function start2() {
|
|
18388
18411
|
var options = {
|
|
18389
18412
|
from: origin,
|
|
18390
18413
|
to: target,
|
|
@@ -18414,7 +18437,7 @@ function getAnimation(key, value, target, transition2, onComplete) {
|
|
|
18414
18437
|
return { stop: function() {
|
|
18415
18438
|
} };
|
|
18416
18439
|
}
|
|
18417
|
-
return !isOriginAnimatable || !isTargetAnimatable || valueTransition.type === false ? set3 :
|
|
18440
|
+
return !isOriginAnimatable || !isTargetAnimatable || valueTransition.type === false ? set3 : start2;
|
|
18418
18441
|
}
|
|
18419
18442
|
function isZero(value) {
|
|
18420
18443
|
return value === 0 || typeof value === "string" && parseFloat(value) === 0 && value.indexOf(" ") === -1;
|
|
@@ -18437,13 +18460,13 @@ function startAnimation(key, value, target, transition2) {
|
|
|
18437
18460
|
var controls;
|
|
18438
18461
|
var animation = getAnimation(key, value, target, transition2, onComplete);
|
|
18439
18462
|
var delay = getDelayFromTransition(transition2, key);
|
|
18440
|
-
var
|
|
18463
|
+
var start2 = function() {
|
|
18441
18464
|
return controls = animation();
|
|
18442
18465
|
};
|
|
18443
18466
|
if (delay) {
|
|
18444
|
-
delayTimer = window.setTimeout(
|
|
18467
|
+
delayTimer = window.setTimeout(start2, secondsToMilliseconds(delay));
|
|
18445
18468
|
} else {
|
|
18446
|
-
|
|
18469
|
+
start2();
|
|
18447
18470
|
}
|
|
18448
18471
|
return function() {
|
|
18449
18472
|
clearTimeout(delayTimer);
|
|
@@ -18510,13 +18533,13 @@ function getRadius(values, radiusName) {
|
|
|
18510
18533
|
}
|
|
18511
18534
|
var easeCrossfadeIn = compress(0, 0.5, circOut);
|
|
18512
18535
|
var easeCrossfadeOut = compress(0.5, 0.95, linear);
|
|
18513
|
-
function compress(
|
|
18536
|
+
function compress(min2, max2, easing) {
|
|
18514
18537
|
return function(p2) {
|
|
18515
|
-
if (p2 <
|
|
18538
|
+
if (p2 < min2)
|
|
18516
18539
|
return 0;
|
|
18517
|
-
if (p2 >
|
|
18540
|
+
if (p2 > max2)
|
|
18518
18541
|
return 1;
|
|
18519
|
-
return easing(progress(
|
|
18542
|
+
return easing(progress(min2, max2, p2));
|
|
18520
18543
|
};
|
|
18521
18544
|
}
|
|
18522
18545
|
function copyAxisInto(axis, originAxis) {
|
|
@@ -18599,11 +18622,11 @@ function translateAxis(axis, distance2) {
|
|
|
18599
18622
|
axis.min = axis.min + distance2;
|
|
18600
18623
|
axis.max = axis.max + distance2;
|
|
18601
18624
|
}
|
|
18602
|
-
function transformAxis(axis,
|
|
18625
|
+
function transformAxis(axis, transforms2, _a) {
|
|
18603
18626
|
var _b = __read(_a, 3), key = _b[0], scaleKey = _b[1], originKey = _b[2];
|
|
18604
|
-
var axisOrigin =
|
|
18627
|
+
var axisOrigin = transforms2[originKey] !== void 0 ? transforms2[originKey] : 0.5;
|
|
18605
18628
|
var originPoint = mix(axis.min, axis.max, axisOrigin);
|
|
18606
|
-
applyAxisDelta(axis,
|
|
18629
|
+
applyAxisDelta(axis, transforms2[key], transforms2[scaleKey], originPoint, transforms2.scale);
|
|
18607
18630
|
}
|
|
18608
18631
|
var xKeys$1 = ["x", "scaleX", "originX"];
|
|
18609
18632
|
var yKeys$1 = ["y", "scaleY", "originY"];
|
|
@@ -18693,15 +18716,15 @@ function removeAxisDelta(axis, translate, scale2, origin, boxScale, originAxis,
|
|
|
18693
18716
|
axis.min = removePointDelta(axis.min, translate, scale2, originPoint, boxScale);
|
|
18694
18717
|
axis.max = removePointDelta(axis.max, translate, scale2, originPoint, boxScale);
|
|
18695
18718
|
}
|
|
18696
|
-
function removeAxisTransforms(axis,
|
|
18719
|
+
function removeAxisTransforms(axis, transforms2, _a, origin, sourceAxis) {
|
|
18697
18720
|
var _b = __read(_a, 3), key = _b[0], scaleKey = _b[1], originKey = _b[2];
|
|
18698
|
-
removeAxisDelta(axis,
|
|
18721
|
+
removeAxisDelta(axis, transforms2[key], transforms2[scaleKey], transforms2[originKey], transforms2.scale, origin, sourceAxis);
|
|
18699
18722
|
}
|
|
18700
18723
|
var xKeys = ["x", "scaleX", "originX"];
|
|
18701
18724
|
var yKeys = ["y", "scaleY", "originY"];
|
|
18702
|
-
function removeBoxTransforms(box,
|
|
18703
|
-
removeAxisTransforms(box.x,
|
|
18704
|
-
removeAxisTransforms(box.y,
|
|
18725
|
+
function removeBoxTransforms(box, transforms2, originBox, sourceBox) {
|
|
18726
|
+
removeAxisTransforms(box.x, transforms2, xKeys, originBox === null || originBox === void 0 ? void 0 : originBox.x, sourceBox === null || sourceBox === void 0 ? void 0 : sourceBox.x);
|
|
18727
|
+
removeAxisTransforms(box.y, transforms2, yKeys, originBox === null || originBox === void 0 ? void 0 : originBox.y, sourceBox === null || sourceBox === void 0 ? void 0 : sourceBox.y);
|
|
18705
18728
|
}
|
|
18706
18729
|
var createAxisDelta = function() {
|
|
18707
18730
|
return {
|
|
@@ -18849,9 +18872,9 @@ function eachAxis(callback) {
|
|
|
18849
18872
|
return [callback("x"), callback("y")];
|
|
18850
18873
|
}
|
|
18851
18874
|
var transformAxes = ["", "X", "Y", "Z"];
|
|
18852
|
-
var order = ["translate", "scale", "rotate", "skew"];
|
|
18875
|
+
var order$1 = ["translate", "scale", "rotate", "skew"];
|
|
18853
18876
|
var transformProps = ["transformPerspective", "x", "y", "z"];
|
|
18854
|
-
order.forEach(function(operationKey) {
|
|
18877
|
+
order$1.forEach(function(operationKey) {
|
|
18855
18878
|
return transformAxes.forEach(function(axesKey) {
|
|
18856
18879
|
return transformProps.push(operationKey + axesKey);
|
|
18857
18880
|
});
|
|
@@ -19940,7 +19963,7 @@ var getValueAsType = function(value, type) {
|
|
|
19940
19963
|
};
|
|
19941
19964
|
function buildHTMLStyles(state2, latestValues, options, transformTemplate2) {
|
|
19942
19965
|
var _a;
|
|
19943
|
-
var style = state2.style, vars2 = state2.vars, transform10 = state2.transform, transformKeys2 = state2.transformKeys,
|
|
19966
|
+
var style = state2.style, vars2 = state2.vars, transform10 = state2.transform, transformKeys2 = state2.transformKeys, transformOrigin2 = state2.transformOrigin;
|
|
19944
19967
|
transformKeys2.length = 0;
|
|
19945
19968
|
var hasTransform2 = false;
|
|
19946
19969
|
var hasTransformOrigin = false;
|
|
@@ -19962,7 +19985,7 @@ function buildHTMLStyles(state2, latestValues, options, transformTemplate2) {
|
|
|
19962
19985
|
if (value !== ((_a = valueType.default) !== null && _a !== void 0 ? _a : 0))
|
|
19963
19986
|
transformIsNone = false;
|
|
19964
19987
|
} else if (isTransformOriginProp(key)) {
|
|
19965
|
-
|
|
19988
|
+
transformOrigin2[key] = valueAsType;
|
|
19966
19989
|
hasTransformOrigin = true;
|
|
19967
19990
|
} else {
|
|
19968
19991
|
style[key] = valueAsType;
|
|
@@ -19976,7 +19999,7 @@ function buildHTMLStyles(state2, latestValues, options, transformTemplate2) {
|
|
|
19976
19999
|
style.transform = "none";
|
|
19977
20000
|
}
|
|
19978
20001
|
if (hasTransformOrigin) {
|
|
19979
|
-
style.transformOrigin = buildTransformOrigin(
|
|
20002
|
+
style.transformOrigin = buildTransformOrigin(transformOrigin2);
|
|
19980
20003
|
}
|
|
19981
20004
|
}
|
|
19982
20005
|
var createHtmlRenderState = function() {
|
|
@@ -20108,8 +20131,8 @@ function filterProps(props, isDom, forwardMotionProps) {
|
|
|
20108
20131
|
}
|
|
20109
20132
|
return filteredProps;
|
|
20110
20133
|
}
|
|
20111
|
-
function calcOrigin$1(origin,
|
|
20112
|
-
return typeof origin === "string" ? origin : px2.transform(
|
|
20134
|
+
function calcOrigin$1(origin, offset2, size2) {
|
|
20135
|
+
return typeof origin === "string" ? origin : px2.transform(offset2 + size2 * origin);
|
|
20113
20136
|
}
|
|
20114
20137
|
function calcSVGTransformOrigin(dimensions, originX, originY) {
|
|
20115
20138
|
var pxOriginX = calcOrigin$1(originX, dimensions.x, dimensions.width);
|
|
@@ -20124,19 +20147,19 @@ var camelKeys = {
|
|
|
20124
20147
|
offset: "strokeDashoffset",
|
|
20125
20148
|
array: "strokeDasharray"
|
|
20126
20149
|
};
|
|
20127
|
-
function buildSVGPath(attrs, length2, spacing2,
|
|
20150
|
+
function buildSVGPath(attrs, length2, spacing2, offset2, useDashCase) {
|
|
20128
20151
|
if (spacing2 === void 0) {
|
|
20129
20152
|
spacing2 = 1;
|
|
20130
20153
|
}
|
|
20131
|
-
if (
|
|
20132
|
-
|
|
20154
|
+
if (offset2 === void 0) {
|
|
20155
|
+
offset2 = 0;
|
|
20133
20156
|
}
|
|
20134
20157
|
if (useDashCase === void 0) {
|
|
20135
20158
|
useDashCase = true;
|
|
20136
20159
|
}
|
|
20137
20160
|
attrs.pathLength = 1;
|
|
20138
20161
|
var keys2 = useDashCase ? dashKeys : camelKeys;
|
|
20139
|
-
attrs[keys2.offset] = px2.transform(-
|
|
20162
|
+
attrs[keys2.offset] = px2.transform(-offset2);
|
|
20140
20163
|
var pathLength = px2.transform(length2);
|
|
20141
20164
|
var pathSpacing = px2.transform(spacing2);
|
|
20142
20165
|
attrs[keys2.array] = "".concat(pathLength, " ").concat(pathSpacing);
|
|
@@ -20636,16 +20659,16 @@ function observeIntersection(element, options, callback) {
|
|
|
20636
20659
|
};
|
|
20637
20660
|
}
|
|
20638
20661
|
function useViewport(_a) {
|
|
20639
|
-
var visualElement2 = _a.visualElement, whileInView = _a.whileInView, onViewportEnter = _a.onViewportEnter, onViewportLeave = _a.onViewportLeave, _b = _a.viewport,
|
|
20662
|
+
var visualElement2 = _a.visualElement, whileInView = _a.whileInView, onViewportEnter = _a.onViewportEnter, onViewportLeave = _a.onViewportLeave, _b = _a.viewport, viewport2 = _b === void 0 ? {} : _b;
|
|
20640
20663
|
var state2 = useRef({
|
|
20641
20664
|
hasEnteredView: false,
|
|
20642
20665
|
isInView: false
|
|
20643
20666
|
});
|
|
20644
20667
|
var shouldObserve = Boolean(whileInView || onViewportEnter || onViewportLeave);
|
|
20645
|
-
if (
|
|
20668
|
+
if (viewport2.once && state2.current.hasEnteredView)
|
|
20646
20669
|
shouldObserve = false;
|
|
20647
20670
|
var useObserver = typeof IntersectionObserver === "undefined" ? useMissingIntersectionObserver : useIntersectionObserver;
|
|
20648
|
-
useObserver(shouldObserve, state2.current, visualElement2,
|
|
20671
|
+
useObserver(shouldObserve, state2.current, visualElement2, viewport2);
|
|
20649
20672
|
}
|
|
20650
20673
|
var thresholdNames = {
|
|
20651
20674
|
some: 0,
|
|
@@ -20750,7 +20773,7 @@ var testValueType = function(v2) {
|
|
|
20750
20773
|
return type.test(v2);
|
|
20751
20774
|
};
|
|
20752
20775
|
};
|
|
20753
|
-
var auto = {
|
|
20776
|
+
var auto$1 = {
|
|
20754
20777
|
test: function(v2) {
|
|
20755
20778
|
return v2 === "auto";
|
|
20756
20779
|
},
|
|
@@ -20758,7 +20781,7 @@ var auto = {
|
|
|
20758
20781
|
return v2;
|
|
20759
20782
|
}
|
|
20760
20783
|
};
|
|
20761
|
-
var dimensionValueTypes = [number, px2, percent, degrees, vw, vh, auto];
|
|
20784
|
+
var dimensionValueTypes = [number, px2, percent, degrees, vw, vh, auto$1];
|
|
20762
20785
|
var findDimensionValueType = function(v2) {
|
|
20763
20786
|
return dimensionValueTypes.find(testValueType(v2));
|
|
20764
20787
|
};
|
|
@@ -21274,35 +21297,35 @@ function getVelocity(history, timeDelta) {
|
|
|
21274
21297
|
return currentVelocity;
|
|
21275
21298
|
}
|
|
21276
21299
|
function applyConstraints(point, _a, elastic) {
|
|
21277
|
-
var
|
|
21278
|
-
if (
|
|
21279
|
-
point = elastic ? mix(
|
|
21280
|
-
} else if (
|
|
21281
|
-
point = elastic ? mix(
|
|
21300
|
+
var min2 = _a.min, max2 = _a.max;
|
|
21301
|
+
if (min2 !== void 0 && point < min2) {
|
|
21302
|
+
point = elastic ? mix(min2, point, elastic.min) : Math.max(point, min2);
|
|
21303
|
+
} else if (max2 !== void 0 && point > max2) {
|
|
21304
|
+
point = elastic ? mix(max2, point, elastic.max) : Math.min(point, max2);
|
|
21282
21305
|
}
|
|
21283
21306
|
return point;
|
|
21284
21307
|
}
|
|
21285
|
-
function calcRelativeAxisConstraints(axis,
|
|
21308
|
+
function calcRelativeAxisConstraints(axis, min2, max2) {
|
|
21286
21309
|
return {
|
|
21287
|
-
min:
|
|
21288
|
-
max:
|
|
21310
|
+
min: min2 !== void 0 ? axis.min + min2 : void 0,
|
|
21311
|
+
max: max2 !== void 0 ? axis.max + max2 - (axis.max - axis.min) : void 0
|
|
21289
21312
|
};
|
|
21290
21313
|
}
|
|
21291
21314
|
function calcRelativeConstraints(layoutBox, _a) {
|
|
21292
|
-
var
|
|
21315
|
+
var top2 = _a.top, left2 = _a.left, bottom2 = _a.bottom, right2 = _a.right;
|
|
21293
21316
|
return {
|
|
21294
|
-
x: calcRelativeAxisConstraints(layoutBox.x,
|
|
21295
|
-
y: calcRelativeAxisConstraints(layoutBox.y,
|
|
21317
|
+
x: calcRelativeAxisConstraints(layoutBox.x, left2, right2),
|
|
21318
|
+
y: calcRelativeAxisConstraints(layoutBox.y, top2, bottom2)
|
|
21296
21319
|
};
|
|
21297
21320
|
}
|
|
21298
21321
|
function calcViewportAxisConstraints(layoutAxis, constraintsAxis) {
|
|
21299
21322
|
var _a;
|
|
21300
|
-
var
|
|
21301
|
-
var
|
|
21323
|
+
var min2 = constraintsAxis.min - layoutAxis.min;
|
|
21324
|
+
var max2 = constraintsAxis.max - layoutAxis.max;
|
|
21302
21325
|
if (constraintsAxis.max - constraintsAxis.min < layoutAxis.max - layoutAxis.min) {
|
|
21303
|
-
_a = __read([
|
|
21326
|
+
_a = __read([max2, min2], 2), min2 = _a[0], max2 = _a[1];
|
|
21304
21327
|
}
|
|
21305
|
-
return { min, max };
|
|
21328
|
+
return { min: min2, max: max2 };
|
|
21306
21329
|
}
|
|
21307
21330
|
function calcViewportConstraints(layoutBox, constraintsBox) {
|
|
21308
21331
|
return {
|
|
@@ -21357,10 +21380,10 @@ function resolvePointElastic(dragElastic, label) {
|
|
|
21357
21380
|
return typeof dragElastic === "number" ? dragElastic : (_a = dragElastic[label]) !== null && _a !== void 0 ? _a : 0;
|
|
21358
21381
|
}
|
|
21359
21382
|
function convertBoundingBoxToBox(_a) {
|
|
21360
|
-
var
|
|
21383
|
+
var top2 = _a.top, left2 = _a.left, right2 = _a.right, bottom2 = _a.bottom;
|
|
21361
21384
|
return {
|
|
21362
|
-
x: { min:
|
|
21363
|
-
y: { min:
|
|
21385
|
+
x: { min: left2, max: right2 },
|
|
21386
|
+
y: { min: top2, max: bottom2 }
|
|
21364
21387
|
};
|
|
21365
21388
|
}
|
|
21366
21389
|
function convertBoxToBoundingBox(_a) {
|
|
@@ -21450,16 +21473,16 @@ var VisualElementDragControls = function() {
|
|
|
21450
21473
|
var _a2 = _this.getProps(), dragPropagation = _a2.dragPropagation, dragDirectionLock = _a2.dragDirectionLock, onDirectionLock = _a2.onDirectionLock, onDrag = _a2.onDrag;
|
|
21451
21474
|
if (!dragPropagation && !_this.openGlobalLock)
|
|
21452
21475
|
return;
|
|
21453
|
-
var
|
|
21476
|
+
var offset2 = info.offset;
|
|
21454
21477
|
if (dragDirectionLock && _this.currentDirection === null) {
|
|
21455
|
-
_this.currentDirection = getCurrentDirection(
|
|
21478
|
+
_this.currentDirection = getCurrentDirection(offset2);
|
|
21456
21479
|
if (_this.currentDirection !== null) {
|
|
21457
21480
|
onDirectionLock === null || onDirectionLock === void 0 ? void 0 : onDirectionLock(_this.currentDirection);
|
|
21458
21481
|
}
|
|
21459
21482
|
return;
|
|
21460
21483
|
}
|
|
21461
|
-
_this.updateAxis("x", info.point,
|
|
21462
|
-
_this.updateAxis("y", info.point,
|
|
21484
|
+
_this.updateAxis("x", info.point, offset2);
|
|
21485
|
+
_this.updateAxis("y", info.point, offset2);
|
|
21463
21486
|
_this.visualElement.syncRender();
|
|
21464
21487
|
onDrag === null || onDrag === void 0 ? void 0 : onDrag(event, info);
|
|
21465
21488
|
};
|
|
@@ -21498,12 +21521,12 @@ var VisualElementDragControls = function() {
|
|
|
21498
21521
|
}
|
|
21499
21522
|
(_b = this.visualElement.animationState) === null || _b === void 0 ? void 0 : _b.setActive(AnimationType.Drag, false);
|
|
21500
21523
|
};
|
|
21501
|
-
VisualElementDragControls2.prototype.updateAxis = function(axis, _point,
|
|
21524
|
+
VisualElementDragControls2.prototype.updateAxis = function(axis, _point, offset2) {
|
|
21502
21525
|
var drag2 = this.getProps().drag;
|
|
21503
|
-
if (!
|
|
21526
|
+
if (!offset2 || !shouldDrag(axis, drag2, this.currentDirection))
|
|
21504
21527
|
return;
|
|
21505
21528
|
var axisValue = this.getAxisMotionValue(axis);
|
|
21506
|
-
var next2 = this.originPoint[axis] +
|
|
21529
|
+
var next2 = this.originPoint[axis] + offset2[axis];
|
|
21507
21530
|
if (this.constraints && this.constraints[axis]) {
|
|
21508
21531
|
next2 = applyConstraints(next2, this.constraints[axis], this.elastic[axis]);
|
|
21509
21532
|
}
|
|
@@ -21597,8 +21620,8 @@ var VisualElementDragControls = function() {
|
|
|
21597
21620
|
var projection = _this.visualElement.projection;
|
|
21598
21621
|
var axisValue = _this.getAxisMotionValue(axis);
|
|
21599
21622
|
if (projection && projection.layout) {
|
|
21600
|
-
var _a = projection.layout.actual[axis],
|
|
21601
|
-
axisValue.set(point[axis] - mix(
|
|
21623
|
+
var _a = projection.layout.actual[axis], min2 = _a.min, max2 = _a.max;
|
|
21624
|
+
axisValue.set(point[axis] - mix(min2, max2, 0.5));
|
|
21602
21625
|
}
|
|
21603
21626
|
});
|
|
21604
21627
|
};
|
|
@@ -21627,8 +21650,8 @@ var VisualElementDragControls = function() {
|
|
|
21627
21650
|
if (!shouldDrag(axis, drag2, null))
|
|
21628
21651
|
return;
|
|
21629
21652
|
var axisValue = _this.getAxisMotionValue(axis);
|
|
21630
|
-
var _a2 = _this.constraints[axis],
|
|
21631
|
-
axisValue.set(mix(
|
|
21653
|
+
var _a2 = _this.constraints[axis], min2 = _a2.min, max2 = _a2.max;
|
|
21654
|
+
axisValue.set(mix(min2, max2, boxProgress[axis]));
|
|
21632
21655
|
});
|
|
21633
21656
|
};
|
|
21634
21657
|
VisualElementDragControls2.prototype.addListeners = function() {
|
|
@@ -21685,14 +21708,14 @@ var VisualElementDragControls = function() {
|
|
|
21685
21708
|
function shouldDrag(direction2, drag2, currentDirection) {
|
|
21686
21709
|
return (drag2 === true || drag2 === direction2) && (currentDirection === null || currentDirection === direction2);
|
|
21687
21710
|
}
|
|
21688
|
-
function getCurrentDirection(
|
|
21711
|
+
function getCurrentDirection(offset2, lockThreshold) {
|
|
21689
21712
|
if (lockThreshold === void 0) {
|
|
21690
21713
|
lockThreshold = 10;
|
|
21691
21714
|
}
|
|
21692
21715
|
var direction2 = null;
|
|
21693
|
-
if (Math.abs(
|
|
21716
|
+
if (Math.abs(offset2.y) > lockThreshold) {
|
|
21694
21717
|
direction2 = "y";
|
|
21695
|
-
} else if (Math.abs(
|
|
21718
|
+
} else if (Math.abs(offset2.x) > lockThreshold) {
|
|
21696
21719
|
direction2 = "x";
|
|
21697
21720
|
}
|
|
21698
21721
|
return direction2;
|
|
@@ -22195,22 +22218,22 @@ var positionalValues = {
|
|
|
22195
22218
|
return y2.max - y2.min - parseFloat(paddingTop) - parseFloat(paddingBottom);
|
|
22196
22219
|
},
|
|
22197
22220
|
top: function(_bbox, _a) {
|
|
22198
|
-
var
|
|
22199
|
-
return parseFloat(
|
|
22221
|
+
var top2 = _a.top;
|
|
22222
|
+
return parseFloat(top2);
|
|
22200
22223
|
},
|
|
22201
22224
|
left: function(_bbox, _a) {
|
|
22202
|
-
var
|
|
22203
|
-
return parseFloat(
|
|
22225
|
+
var left2 = _a.left;
|
|
22226
|
+
return parseFloat(left2);
|
|
22204
22227
|
},
|
|
22205
22228
|
bottom: function(_a, _b) {
|
|
22206
22229
|
var y2 = _a.y;
|
|
22207
|
-
var
|
|
22208
|
-
return parseFloat(
|
|
22230
|
+
var top2 = _b.top;
|
|
22231
|
+
return parseFloat(top2) + (y2.max - y2.min);
|
|
22209
22232
|
},
|
|
22210
22233
|
right: function(_a, _b) {
|
|
22211
22234
|
var x2 = _a.x;
|
|
22212
|
-
var
|
|
22213
|
-
return parseFloat(
|
|
22235
|
+
var left2 = _b.left;
|
|
22236
|
+
return parseFloat(left2) + (x2.max - x2.min);
|
|
22214
22237
|
},
|
|
22215
22238
|
x: getTranslateFromMatrix(4, 13),
|
|
22216
22239
|
y: getTranslateFromMatrix(5, 14)
|
|
@@ -22323,7 +22346,7 @@ var parseDomVariant = function(visualElement2, target, origin, transitionEnd) {
|
|
|
22323
22346
|
transitionEnd = resolved.transitionEnd;
|
|
22324
22347
|
return unitConversion(visualElement2, target, origin, transitionEnd);
|
|
22325
22348
|
};
|
|
22326
|
-
function getComputedStyle$
|
|
22349
|
+
function getComputedStyle$2(element) {
|
|
22327
22350
|
return window.getComputedStyle(element);
|
|
22328
22351
|
}
|
|
22329
22352
|
var htmlConfig = {
|
|
@@ -22333,7 +22356,7 @@ var htmlConfig = {
|
|
|
22333
22356
|
var defaultType = getDefaultValueType(key);
|
|
22334
22357
|
return defaultType ? defaultType.default || 0 : 0;
|
|
22335
22358
|
} else {
|
|
22336
|
-
var computedStyle = getComputedStyle$
|
|
22359
|
+
var computedStyle = getComputedStyle$2(domElement);
|
|
22337
22360
|
return (isCSSVariable$1(key) ? computedStyle.getPropertyValue(key) : computedStyle[key]) || 0;
|
|
22338
22361
|
}
|
|
22339
22362
|
},
|
|
@@ -22447,16 +22470,16 @@ var correctBoxShadow = {
|
|
|
22447
22470
|
if (shadow.length > 5)
|
|
22448
22471
|
return original;
|
|
22449
22472
|
var template = complex.createTransformer(latest);
|
|
22450
|
-
var
|
|
22473
|
+
var offset2 = typeof shadow[0] !== "number" ? 1 : 0;
|
|
22451
22474
|
var xScale = projectionDelta.x.scale * treeScale.x;
|
|
22452
22475
|
var yScale = projectionDelta.y.scale * treeScale.y;
|
|
22453
|
-
shadow[0 +
|
|
22454
|
-
shadow[1 +
|
|
22476
|
+
shadow[0 + offset2] /= xScale;
|
|
22477
|
+
shadow[1 + offset2] /= yScale;
|
|
22455
22478
|
var averageScale = mix(xScale, yScale, 0.5);
|
|
22456
|
-
if (typeof shadow[2 +
|
|
22457
|
-
shadow[2 +
|
|
22458
|
-
if (typeof shadow[3 +
|
|
22459
|
-
shadow[3 +
|
|
22479
|
+
if (typeof shadow[2 + offset2] === "number")
|
|
22480
|
+
shadow[2 + offset2] /= averageScale;
|
|
22481
|
+
if (typeof shadow[3 + offset2] === "number")
|
|
22482
|
+
shadow[3 + offset2] /= averageScale;
|
|
22460
22483
|
var output = template(shadow);
|
|
22461
22484
|
if (containsCSSVariables) {
|
|
22462
22485
|
var i_1 = 0;
|
|
@@ -22780,7 +22803,7 @@ var AnimatePresence = function(_a) {
|
|
|
22780
22803
|
return cloneElement(child);
|
|
22781
22804
|
}));
|
|
22782
22805
|
};
|
|
22783
|
-
function _objectWithoutPropertiesLoose$
|
|
22806
|
+
function _objectWithoutPropertiesLoose$a(source, excluded) {
|
|
22784
22807
|
if (source == null)
|
|
22785
22808
|
return {};
|
|
22786
22809
|
var target = {};
|
|
@@ -22794,8 +22817,8 @@ function _objectWithoutPropertiesLoose$8(source, excluded) {
|
|
|
22794
22817
|
}
|
|
22795
22818
|
return target;
|
|
22796
22819
|
}
|
|
22797
|
-
function _extends$
|
|
22798
|
-
_extends$
|
|
22820
|
+
function _extends$9() {
|
|
22821
|
+
_extends$9 = Object.assign || function(target) {
|
|
22799
22822
|
for (var i = 1; i < arguments.length; i++) {
|
|
22800
22823
|
var source = arguments[i];
|
|
22801
22824
|
for (var key in source) {
|
|
@@ -22806,7 +22829,7 @@ function _extends$7() {
|
|
|
22806
22829
|
}
|
|
22807
22830
|
return target;
|
|
22808
22831
|
};
|
|
22809
|
-
return _extends$
|
|
22832
|
+
return _extends$9.apply(this, arguments);
|
|
22810
22833
|
}
|
|
22811
22834
|
var TransitionEasings = {
|
|
22812
22835
|
ease: [0.25, 0.1, 0.25, 1],
|
|
@@ -22956,12 +22979,12 @@ var TransitionDefaults = {
|
|
|
22956
22979
|
};
|
|
22957
22980
|
var withDelay = {
|
|
22958
22981
|
enter: function enter(transition2, delay) {
|
|
22959
|
-
return _extends$
|
|
22982
|
+
return _extends$9({}, transition2, {
|
|
22960
22983
|
delay: isNumber(delay) ? delay : delay == null ? void 0 : delay["enter"]
|
|
22961
22984
|
});
|
|
22962
22985
|
},
|
|
22963
22986
|
exit: function exit(transition2, delay) {
|
|
22964
|
-
return _extends$
|
|
22987
|
+
return _extends$9({}, transition2, {
|
|
22965
22988
|
delay: isNumber(delay) ? delay : delay == null ? void 0 : delay["exit"]
|
|
22966
22989
|
});
|
|
22967
22990
|
}
|
|
@@ -22996,13 +23019,13 @@ var variants$2 = {
|
|
|
22996
23019
|
exit: function exit3(_ref2) {
|
|
22997
23020
|
var _transition$exit;
|
|
22998
23021
|
var reverse = _ref2.reverse, initialScale = _ref2.initialScale, transition2 = _ref2.transition, transitionEnd = _ref2.transitionEnd, delay = _ref2.delay;
|
|
22999
|
-
return _extends$
|
|
23022
|
+
return _extends$9({
|
|
23000
23023
|
opacity: 0
|
|
23001
23024
|
}, reverse ? {
|
|
23002
23025
|
scale: initialScale,
|
|
23003
23026
|
transitionEnd: transitionEnd == null ? void 0 : transitionEnd.exit
|
|
23004
23027
|
} : {
|
|
23005
|
-
transitionEnd: _extends$
|
|
23028
|
+
transitionEnd: _extends$9({
|
|
23006
23029
|
scale: initialScale
|
|
23007
23030
|
}, transitionEnd == null ? void 0 : transitionEnd.exit)
|
|
23008
23031
|
}, {
|
|
@@ -23026,7 +23049,7 @@ var scaleFadeConfig = {
|
|
|
23026
23049
|
exit: "exit",
|
|
23027
23050
|
variants: variants$2
|
|
23028
23051
|
};
|
|
23029
|
-
var _excluded$1$
|
|
23052
|
+
var _excluded$1$3 = ["direction", "style", "unmountOnExit", "in", "className", "transition", "transitionEnd", "delay"];
|
|
23030
23053
|
var defaultTransition = {
|
|
23031
23054
|
exit: {
|
|
23032
23055
|
duration: 0.15,
|
|
@@ -23045,7 +23068,7 @@ var variants$1 = {
|
|
|
23045
23068
|
var _slideTransition = slideTransition({
|
|
23046
23069
|
direction: direction2
|
|
23047
23070
|
}), exitStyles = _slideTransition.exit;
|
|
23048
|
-
return _extends$
|
|
23071
|
+
return _extends$9({}, exitStyles, {
|
|
23049
23072
|
transition: (_transition$exit = transition2 == null ? void 0 : transition2.exit) != null ? _transition$exit : withDelay.exit(defaultTransition.exit, delay),
|
|
23050
23073
|
transitionEnd: transitionEnd == null ? void 0 : transitionEnd.exit
|
|
23051
23074
|
});
|
|
@@ -23056,14 +23079,14 @@ var variants$1 = {
|
|
|
23056
23079
|
var _slideTransition2 = slideTransition({
|
|
23057
23080
|
direction: direction2
|
|
23058
23081
|
}), enterStyles = _slideTransition2.enter;
|
|
23059
|
-
return _extends$
|
|
23082
|
+
return _extends$9({}, enterStyles, {
|
|
23060
23083
|
transition: (_transition$enter = transition2 == null ? void 0 : transition2.enter) != null ? _transition$enter : withDelay.enter(defaultTransition.enter, delay),
|
|
23061
23084
|
transitionEnd: transitionEnd == null ? void 0 : transitionEnd.enter
|
|
23062
23085
|
});
|
|
23063
23086
|
}
|
|
23064
23087
|
};
|
|
23065
23088
|
var Slide = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
23066
|
-
var _props$direction = props.direction, direction2 = _props$direction === void 0 ? "right" : _props$direction, style = props.style, unmountOnExit = props.unmountOnExit, isOpen = props["in"], className = props.className, transition2 = props.transition, transitionEnd = props.transitionEnd, delay = props.delay, rest = _objectWithoutPropertiesLoose$
|
|
23089
|
+
var _props$direction = props.direction, direction2 = _props$direction === void 0 ? "right" : _props$direction, style = props.style, unmountOnExit = props.unmountOnExit, isOpen = props["in"], className = props.className, transition2 = props.transition, transitionEnd = props.transitionEnd, delay = props.delay, rest = _objectWithoutPropertiesLoose$a(props, _excluded$1$3);
|
|
23067
23090
|
var transitionStyles = slideTransition({
|
|
23068
23091
|
direction: direction2
|
|
23069
23092
|
});
|
|
@@ -23080,7 +23103,7 @@ var Slide = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
23080
23103
|
};
|
|
23081
23104
|
return /* @__PURE__ */ React.createElement(AnimatePresence, {
|
|
23082
23105
|
custom
|
|
23083
|
-
}, show && /* @__PURE__ */ React.createElement(motion.div, _extends$
|
|
23106
|
+
}, show && /* @__PURE__ */ React.createElement(motion.div, _extends$9({}, rest, {
|
|
23084
23107
|
ref,
|
|
23085
23108
|
initial: "exit",
|
|
23086
23109
|
className: cx("chakra-slide", className),
|
|
@@ -23117,17 +23140,17 @@ var variants = {
|
|
|
23117
23140
|
exit: function exit5(_ref3) {
|
|
23118
23141
|
var _transition$exit2;
|
|
23119
23142
|
var offsetY = _ref3.offsetY, offsetX = _ref3.offsetX, transition2 = _ref3.transition, transitionEnd = _ref3.transitionEnd, reverse = _ref3.reverse, delay = _ref3.delay;
|
|
23120
|
-
var
|
|
23143
|
+
var offset2 = {
|
|
23121
23144
|
x: offsetX,
|
|
23122
23145
|
y: offsetY
|
|
23123
23146
|
};
|
|
23124
|
-
return _extends$
|
|
23147
|
+
return _extends$9({
|
|
23125
23148
|
opacity: 0,
|
|
23126
23149
|
transition: (_transition$exit2 = transition2 == null ? void 0 : transition2.exit) != null ? _transition$exit2 : withDelay.exit(TransitionDefaults.exit, delay)
|
|
23127
|
-
}, reverse ? _extends$
|
|
23150
|
+
}, reverse ? _extends$9({}, offset2, {
|
|
23128
23151
|
transitionEnd: transitionEnd == null ? void 0 : transitionEnd.exit
|
|
23129
23152
|
}) : {
|
|
23130
|
-
transitionEnd: _extends$
|
|
23153
|
+
transitionEnd: _extends$9({}, offset2, transitionEnd == null ? void 0 : transitionEnd.exit)
|
|
23131
23154
|
});
|
|
23132
23155
|
}
|
|
23133
23156
|
};
|
|
@@ -23137,8 +23160,8 @@ var slideFadeConfig = {
|
|
|
23137
23160
|
exit: "exit",
|
|
23138
23161
|
variants
|
|
23139
23162
|
};
|
|
23140
|
-
function _extends$
|
|
23141
|
-
_extends$
|
|
23163
|
+
function _extends$8() {
|
|
23164
|
+
_extends$8 = Object.assign || function(target) {
|
|
23142
23165
|
for (var i = 1; i < arguments.length; i++) {
|
|
23143
23166
|
var source = arguments[i];
|
|
23144
23167
|
for (var key in source) {
|
|
@@ -23149,9 +23172,9 @@ function _extends$6() {
|
|
|
23149
23172
|
}
|
|
23150
23173
|
return target;
|
|
23151
23174
|
};
|
|
23152
|
-
return _extends$
|
|
23175
|
+
return _extends$8.apply(this, arguments);
|
|
23153
23176
|
}
|
|
23154
|
-
function _objectWithoutPropertiesLoose$
|
|
23177
|
+
function _objectWithoutPropertiesLoose$9(source, excluded) {
|
|
23155
23178
|
if (source == null)
|
|
23156
23179
|
return {};
|
|
23157
23180
|
var target = {};
|
|
@@ -23217,10 +23240,10 @@ function useImage(props) {
|
|
|
23217
23240
|
}, [status, load, ignoreFallback]);
|
|
23218
23241
|
return ignoreFallback ? "loaded" : status;
|
|
23219
23242
|
}
|
|
23220
|
-
var _excluded$
|
|
23243
|
+
var _excluded$c = ["htmlWidth", "htmlHeight", "alt"], _excluded2$2 = ["fallbackSrc", "fallback", "src", "srcSet", "align", "fit", "loading", "ignoreFallback", "crossOrigin"];
|
|
23221
23244
|
var NativeImage = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
23222
|
-
var htmlWidth = props.htmlWidth, htmlHeight = props.htmlHeight, alt = props.alt, rest = _objectWithoutPropertiesLoose$
|
|
23223
|
-
return /* @__PURE__ */ React.createElement("img", _extends$
|
|
23245
|
+
var htmlWidth = props.htmlWidth, htmlHeight = props.htmlHeight, alt = props.alt, rest = _objectWithoutPropertiesLoose$9(props, _excluded$c);
|
|
23246
|
+
return /* @__PURE__ */ React.createElement("img", _extends$8({
|
|
23224
23247
|
width: htmlWidth,
|
|
23225
23248
|
height: htmlHeight,
|
|
23226
23249
|
ref,
|
|
@@ -23228,12 +23251,12 @@ var NativeImage = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
23228
23251
|
}, rest));
|
|
23229
23252
|
});
|
|
23230
23253
|
var Image$1 = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
23231
|
-
var fallbackSrc = props.fallbackSrc, fallback = props.fallback, src = props.src, srcSet = props.srcSet, align = props.align, fit = props.fit, loading = props.loading, ignoreFallback = props.ignoreFallback, crossOrigin = props.crossOrigin, rest = _objectWithoutPropertiesLoose$
|
|
23254
|
+
var fallbackSrc = props.fallbackSrc, fallback = props.fallback, src = props.src, srcSet = props.srcSet, align = props.align, fit = props.fit, loading = props.loading, ignoreFallback = props.ignoreFallback, crossOrigin = props.crossOrigin, rest = _objectWithoutPropertiesLoose$9(props, _excluded2$2);
|
|
23232
23255
|
var shouldIgnore = loading != null || ignoreFallback || fallbackSrc === void 0 && fallback === void 0;
|
|
23233
|
-
var status = useImage(_extends$
|
|
23256
|
+
var status = useImage(_extends$8({}, props, {
|
|
23234
23257
|
ignoreFallback: shouldIgnore
|
|
23235
23258
|
}));
|
|
23236
|
-
var shared = _extends$
|
|
23259
|
+
var shared = _extends$8({
|
|
23237
23260
|
ref,
|
|
23238
23261
|
objectFit: fit,
|
|
23239
23262
|
objectPosition: align
|
|
@@ -23241,13 +23264,13 @@ var Image$1 = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
23241
23264
|
if (status !== "loaded") {
|
|
23242
23265
|
if (fallback)
|
|
23243
23266
|
return fallback;
|
|
23244
|
-
return /* @__PURE__ */ React.createElement(chakra.img, _extends$
|
|
23267
|
+
return /* @__PURE__ */ React.createElement(chakra.img, _extends$8({
|
|
23245
23268
|
as: NativeImage,
|
|
23246
23269
|
className: "chakra-image__placeholder",
|
|
23247
23270
|
src: fallbackSrc
|
|
23248
23271
|
}, shared));
|
|
23249
23272
|
}
|
|
23250
|
-
return /* @__PURE__ */ React.createElement(chakra.img, _extends$
|
|
23273
|
+
return /* @__PURE__ */ React.createElement(chakra.img, _extends$8({
|
|
23251
23274
|
as: NativeImage,
|
|
23252
23275
|
src,
|
|
23253
23276
|
srcSet,
|
|
@@ -23273,8 +23296,8 @@ var VisuallyHidden = chakra("span", {
|
|
|
23273
23296
|
chakra("input", {
|
|
23274
23297
|
baseStyle: visuallyHiddenStyle
|
|
23275
23298
|
});
|
|
23276
|
-
function _extends$
|
|
23277
|
-
_extends$
|
|
23299
|
+
function _extends$7() {
|
|
23300
|
+
_extends$7 = Object.assign || function(target) {
|
|
23278
23301
|
for (var i = 1; i < arguments.length; i++) {
|
|
23279
23302
|
var source = arguments[i];
|
|
23280
23303
|
for (var key in source) {
|
|
@@ -23285,9 +23308,9 @@ function _extends$5() {
|
|
|
23285
23308
|
}
|
|
23286
23309
|
return target;
|
|
23287
23310
|
};
|
|
23288
|
-
return _extends$
|
|
23311
|
+
return _extends$7.apply(this, arguments);
|
|
23289
23312
|
}
|
|
23290
|
-
function _objectWithoutPropertiesLoose$
|
|
23313
|
+
function _objectWithoutPropertiesLoose$8(source, excluded) {
|
|
23291
23314
|
if (source == null)
|
|
23292
23315
|
return {};
|
|
23293
23316
|
var target = {};
|
|
@@ -23301,7 +23324,7 @@ function _objectWithoutPropertiesLoose$6(source, excluded) {
|
|
|
23301
23324
|
}
|
|
23302
23325
|
return target;
|
|
23303
23326
|
}
|
|
23304
|
-
var _excluded$
|
|
23327
|
+
var _excluded$b = ["label", "thickness", "speed", "emptyColor", "className"];
|
|
23305
23328
|
var spin$1 = keyframes$2({
|
|
23306
23329
|
"0%": {
|
|
23307
23330
|
transform: "rotate(0deg)"
|
|
@@ -23312,9 +23335,9 @@ var spin$1 = keyframes$2({
|
|
|
23312
23335
|
});
|
|
23313
23336
|
var Spinner = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
23314
23337
|
var styles2 = useStyleConfig("Spinner", props);
|
|
23315
|
-
var _omitThemingProps = omitThemingProps(props), _omitThemingProps$lab = _omitThemingProps.label, label = _omitThemingProps$lab === void 0 ? "Loading..." : _omitThemingProps$lab, _omitThemingProps$thi = _omitThemingProps.thickness, thickness = _omitThemingProps$thi === void 0 ? "2px" : _omitThemingProps$thi, _omitThemingProps$spe = _omitThemingProps.speed, speed = _omitThemingProps$spe === void 0 ? "0.45s" : _omitThemingProps$spe, _omitThemingProps$emp = _omitThemingProps.emptyColor, emptyColor = _omitThemingProps$emp === void 0 ? "transparent" : _omitThemingProps$emp, className = _omitThemingProps.className, rest = _objectWithoutPropertiesLoose$
|
|
23338
|
+
var _omitThemingProps = omitThemingProps(props), _omitThemingProps$lab = _omitThemingProps.label, label = _omitThemingProps$lab === void 0 ? "Loading..." : _omitThemingProps$lab, _omitThemingProps$thi = _omitThemingProps.thickness, thickness = _omitThemingProps$thi === void 0 ? "2px" : _omitThemingProps$thi, _omitThemingProps$spe = _omitThemingProps.speed, speed = _omitThemingProps$spe === void 0 ? "0.45s" : _omitThemingProps$spe, _omitThemingProps$emp = _omitThemingProps.emptyColor, emptyColor = _omitThemingProps$emp === void 0 ? "transparent" : _omitThemingProps$emp, className = _omitThemingProps.className, rest = _objectWithoutPropertiesLoose$8(_omitThemingProps, _excluded$b);
|
|
23316
23339
|
var _className = cx("chakra-spinner", className);
|
|
23317
|
-
var spinnerStyles = _extends$
|
|
23340
|
+
var spinnerStyles = _extends$7({
|
|
23318
23341
|
display: "inline-block",
|
|
23319
23342
|
borderColor: "currentColor",
|
|
23320
23343
|
borderStyle: "solid",
|
|
@@ -23324,13 +23347,13 @@ var Spinner = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
23324
23347
|
borderLeftColor: emptyColor,
|
|
23325
23348
|
animation: spin$1 + " " + speed + " linear infinite"
|
|
23326
23349
|
}, styles2);
|
|
23327
|
-
return /* @__PURE__ */ React.createElement(chakra.div, _extends$
|
|
23350
|
+
return /* @__PURE__ */ React.createElement(chakra.div, _extends$7({
|
|
23328
23351
|
ref,
|
|
23329
23352
|
__css: spinnerStyles,
|
|
23330
23353
|
className: _className
|
|
23331
23354
|
}, rest), label && /* @__PURE__ */ React.createElement(VisuallyHidden, null, label));
|
|
23332
23355
|
});
|
|
23333
|
-
function _objectWithoutPropertiesLoose$
|
|
23356
|
+
function _objectWithoutPropertiesLoose$7(source, excluded) {
|
|
23334
23357
|
if (source == null)
|
|
23335
23358
|
return {};
|
|
23336
23359
|
var target = {};
|
|
@@ -23344,8 +23367,8 @@ function _objectWithoutPropertiesLoose$5(source, excluded) {
|
|
|
23344
23367
|
}
|
|
23345
23368
|
return target;
|
|
23346
23369
|
}
|
|
23347
|
-
function _extends$
|
|
23348
|
-
_extends$
|
|
23370
|
+
function _extends$6() {
|
|
23371
|
+
_extends$6 = Object.assign || function(target) {
|
|
23349
23372
|
for (var i = 1; i < arguments.length; i++) {
|
|
23350
23373
|
var source = arguments[i];
|
|
23351
23374
|
for (var key in source) {
|
|
@@ -23356,7 +23379,7 @@ function _extends$4() {
|
|
|
23356
23379
|
}
|
|
23357
23380
|
return target;
|
|
23358
23381
|
};
|
|
23359
|
-
return _extends$
|
|
23382
|
+
return _extends$6.apply(this, arguments);
|
|
23360
23383
|
}
|
|
23361
23384
|
var _createContext$2 = createContext({
|
|
23362
23385
|
strict: false,
|
|
@@ -23368,18 +23391,18 @@ var ButtonSpinner = function ButtonSpinner2(props) {
|
|
|
23368
23391
|
color: "currentColor",
|
|
23369
23392
|
width: "1em",
|
|
23370
23393
|
height: "1em"
|
|
23371
|
-
}) : _props$children, className = props.className, __css = props.__css, rest = _objectWithoutPropertiesLoose$
|
|
23394
|
+
}) : _props$children, className = props.className, __css = props.__css, rest = _objectWithoutPropertiesLoose$7(props, _excluded$3$2);
|
|
23372
23395
|
var _className = cx("chakra-button__spinner", className);
|
|
23373
23396
|
var marginProp = placement === "start" ? "marginEnd" : "marginStart";
|
|
23374
23397
|
var spinnerStyles = React.useMemo(function() {
|
|
23375
23398
|
var _extends2;
|
|
23376
|
-
return _extends$
|
|
23399
|
+
return _extends$6((_extends2 = {
|
|
23377
23400
|
display: "flex",
|
|
23378
23401
|
alignItems: "center",
|
|
23379
23402
|
position: label ? "relative" : "absolute"
|
|
23380
23403
|
}, _extends2[marginProp] = label ? spacing2 : 0, _extends2.fontSize = "1em", _extends2.lineHeight = "normal", _extends2), __css);
|
|
23381
23404
|
}, [__css, label, marginProp, spacing2]);
|
|
23382
|
-
return /* @__PURE__ */ React.createElement(chakra.div, _extends$
|
|
23405
|
+
return /* @__PURE__ */ React.createElement(chakra.div, _extends$6({
|
|
23383
23406
|
className: _className
|
|
23384
23407
|
}, rest, {
|
|
23385
23408
|
__css: spinnerStyles
|
|
@@ -23387,13 +23410,13 @@ var ButtonSpinner = function ButtonSpinner2(props) {
|
|
|
23387
23410
|
};
|
|
23388
23411
|
var _excluded$2$2 = ["children", "className"];
|
|
23389
23412
|
var ButtonIcon = function ButtonIcon2(props) {
|
|
23390
|
-
var children = props.children, className = props.className, rest = _objectWithoutPropertiesLoose$
|
|
23413
|
+
var children = props.children, className = props.className, rest = _objectWithoutPropertiesLoose$7(props, _excluded$2$2);
|
|
23391
23414
|
var _children = /* @__PURE__ */ React.isValidElement(children) ? /* @__PURE__ */ React.cloneElement(children, {
|
|
23392
23415
|
"aria-hidden": true,
|
|
23393
23416
|
focusable: false
|
|
23394
23417
|
}) : children;
|
|
23395
23418
|
var _className = cx("chakra-button__icon", className);
|
|
23396
|
-
return /* @__PURE__ */ React.createElement(chakra.span, _extends$
|
|
23419
|
+
return /* @__PURE__ */ React.createElement(chakra.span, _extends$6({
|
|
23397
23420
|
display: "inline-flex",
|
|
23398
23421
|
alignSelf: "center",
|
|
23399
23422
|
flexShrink: 0
|
|
@@ -23414,17 +23437,17 @@ function useButtonType(value) {
|
|
|
23414
23437
|
type
|
|
23415
23438
|
};
|
|
23416
23439
|
}
|
|
23417
|
-
var _excluded$1$
|
|
23440
|
+
var _excluded$1$2 = ["isDisabled", "isLoading", "isActive", "isFullWidth", "children", "leftIcon", "rightIcon", "loadingText", "iconSpacing", "type", "spinner", "spinnerPlacement", "className", "as"];
|
|
23418
23441
|
var Button = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
23419
23442
|
var group = useButtonGroup();
|
|
23420
|
-
var styles2 = useStyleConfig("Button", _extends$
|
|
23421
|
-
var _omitThemingProps = omitThemingProps(props), _omitThemingProps$isD = _omitThemingProps.isDisabled, isDisabled2 = _omitThemingProps$isD === void 0 ? group == null ? void 0 : group.isDisabled : _omitThemingProps$isD, isLoading = _omitThemingProps.isLoading, isActive = _omitThemingProps.isActive, isFullWidth = _omitThemingProps.isFullWidth, children = _omitThemingProps.children, leftIcon = _omitThemingProps.leftIcon, rightIcon = _omitThemingProps.rightIcon, loadingText = _omitThemingProps.loadingText, _omitThemingProps$ico = _omitThemingProps.iconSpacing, iconSpacing2 = _omitThemingProps$ico === void 0 ? "0.5rem" : _omitThemingProps$ico, type = _omitThemingProps.type, spinner2 = _omitThemingProps.spinner, _omitThemingProps$spi = _omitThemingProps.spinnerPlacement, spinnerPlacement = _omitThemingProps$spi === void 0 ? "start" : _omitThemingProps$spi, className = _omitThemingProps.className, as = _omitThemingProps.as, rest = _objectWithoutPropertiesLoose$
|
|
23443
|
+
var styles2 = useStyleConfig("Button", _extends$6({}, group, props));
|
|
23444
|
+
var _omitThemingProps = omitThemingProps(props), _omitThemingProps$isD = _omitThemingProps.isDisabled, isDisabled2 = _omitThemingProps$isD === void 0 ? group == null ? void 0 : group.isDisabled : _omitThemingProps$isD, isLoading = _omitThemingProps.isLoading, isActive = _omitThemingProps.isActive, isFullWidth = _omitThemingProps.isFullWidth, children = _omitThemingProps.children, leftIcon = _omitThemingProps.leftIcon, rightIcon = _omitThemingProps.rightIcon, loadingText = _omitThemingProps.loadingText, _omitThemingProps$ico = _omitThemingProps.iconSpacing, iconSpacing2 = _omitThemingProps$ico === void 0 ? "0.5rem" : _omitThemingProps$ico, type = _omitThemingProps.type, spinner2 = _omitThemingProps.spinner, _omitThemingProps$spi = _omitThemingProps.spinnerPlacement, spinnerPlacement = _omitThemingProps$spi === void 0 ? "start" : _omitThemingProps$spi, className = _omitThemingProps.className, as = _omitThemingProps.as, rest = _objectWithoutPropertiesLoose$7(_omitThemingProps, _excluded$1$2);
|
|
23422
23445
|
var buttonStyles = React.useMemo(function() {
|
|
23423
23446
|
var _styles$_focus;
|
|
23424
23447
|
var _focus = mergeWith({}, (_styles$_focus = styles2 == null ? void 0 : styles2["_focus"]) != null ? _styles$_focus : {}, {
|
|
23425
23448
|
zIndex: 1
|
|
23426
23449
|
});
|
|
23427
|
-
return _extends$
|
|
23450
|
+
return _extends$6({
|
|
23428
23451
|
display: "inline-flex",
|
|
23429
23452
|
appearance: "none",
|
|
23430
23453
|
alignItems: "center",
|
|
@@ -23446,7 +23469,7 @@ var Button = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
23446
23469
|
iconSpacing: iconSpacing2,
|
|
23447
23470
|
children
|
|
23448
23471
|
};
|
|
23449
|
-
return /* @__PURE__ */ React.createElement(chakra.button, _extends$
|
|
23472
|
+
return /* @__PURE__ */ React.createElement(chakra.button, _extends$6({
|
|
23450
23473
|
disabled: isDisabled2 || isLoading,
|
|
23451
23474
|
ref: useMergeRefs$1(ref, _ref2),
|
|
23452
23475
|
as,
|
|
@@ -23477,7 +23500,7 @@ function ButtonContent(props) {
|
|
|
23477
23500
|
marginStart: iconSpacing2
|
|
23478
23501
|
}, rightIcon));
|
|
23479
23502
|
}
|
|
23480
|
-
function _objectWithoutPropertiesLoose$
|
|
23503
|
+
function _objectWithoutPropertiesLoose$6(source, excluded) {
|
|
23481
23504
|
if (source == null)
|
|
23482
23505
|
return {};
|
|
23483
23506
|
var target = {};
|
|
@@ -23491,8 +23514,8 @@ function _objectWithoutPropertiesLoose$4(source, excluded) {
|
|
|
23491
23514
|
}
|
|
23492
23515
|
return target;
|
|
23493
23516
|
}
|
|
23494
|
-
function _extends$
|
|
23495
|
-
_extends$
|
|
23517
|
+
function _extends$5() {
|
|
23518
|
+
_extends$5 = Object.assign || function(target) {
|
|
23496
23519
|
for (var i = 1; i < arguments.length; i++) {
|
|
23497
23520
|
var source = arguments[i];
|
|
23498
23521
|
for (var key in source) {
|
|
@@ -23503,11 +23526,11 @@ function _extends$3() {
|
|
|
23503
23526
|
}
|
|
23504
23527
|
return target;
|
|
23505
23528
|
};
|
|
23506
|
-
return _extends$
|
|
23529
|
+
return _extends$5.apply(this, arguments);
|
|
23507
23530
|
}
|
|
23508
|
-
var _excluded$
|
|
23531
|
+
var _excluded$9 = ["children", "isDisabled", "__css"];
|
|
23509
23532
|
var CloseIcon = function CloseIcon2(props) {
|
|
23510
|
-
return /* @__PURE__ */ React.createElement(Icon, _extends$
|
|
23533
|
+
return /* @__PURE__ */ React.createElement(Icon, _extends$5({
|
|
23511
23534
|
focusable: "false",
|
|
23512
23535
|
"aria-hidden": true
|
|
23513
23536
|
}, props), /* @__PURE__ */ React.createElement("path", {
|
|
@@ -23517,7 +23540,7 @@ var CloseIcon = function CloseIcon2(props) {
|
|
|
23517
23540
|
};
|
|
23518
23541
|
var CloseButton = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
23519
23542
|
var styles2 = useStyleConfig("CloseButton", props);
|
|
23520
|
-
var _omitThemingProps = omitThemingProps(props), children = _omitThemingProps.children, isDisabled2 = _omitThemingProps.isDisabled, __css = _omitThemingProps.__css, rest = _objectWithoutPropertiesLoose$
|
|
23543
|
+
var _omitThemingProps = omitThemingProps(props), children = _omitThemingProps.children, isDisabled2 = _omitThemingProps.isDisabled, __css = _omitThemingProps.__css, rest = _objectWithoutPropertiesLoose$6(_omitThemingProps, _excluded$9);
|
|
23521
23544
|
var baseStyle22 = {
|
|
23522
23545
|
outline: 0,
|
|
23523
23546
|
display: "flex",
|
|
@@ -23525,19 +23548,19 @@ var CloseButton = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
23525
23548
|
justifyContent: "center",
|
|
23526
23549
|
flexShrink: 0
|
|
23527
23550
|
};
|
|
23528
|
-
return /* @__PURE__ */ React.createElement(chakra.button, _extends$
|
|
23551
|
+
return /* @__PURE__ */ React.createElement(chakra.button, _extends$5({
|
|
23529
23552
|
type: "button",
|
|
23530
23553
|
"aria-label": "Close",
|
|
23531
23554
|
ref,
|
|
23532
23555
|
disabled: isDisabled2,
|
|
23533
|
-
__css: _extends$
|
|
23556
|
+
__css: _extends$5({}, baseStyle22, styles2, __css)
|
|
23534
23557
|
}, rest), children || /* @__PURE__ */ React.createElement(CloseIcon, {
|
|
23535
23558
|
width: "1em",
|
|
23536
23559
|
height: "1em"
|
|
23537
23560
|
}));
|
|
23538
23561
|
});
|
|
23539
|
-
function _extends$
|
|
23540
|
-
_extends$
|
|
23562
|
+
function _extends$4() {
|
|
23563
|
+
_extends$4 = Object.assign || function(target) {
|
|
23541
23564
|
for (var i = 1; i < arguments.length; i++) {
|
|
23542
23565
|
var source = arguments[i];
|
|
23543
23566
|
for (var key in source) {
|
|
@@ -23548,9 +23571,9 @@ function _extends$2() {
|
|
|
23548
23571
|
}
|
|
23549
23572
|
return target;
|
|
23550
23573
|
};
|
|
23551
|
-
return _extends$
|
|
23574
|
+
return _extends$4.apply(this, arguments);
|
|
23552
23575
|
}
|
|
23553
|
-
function _objectWithoutPropertiesLoose$
|
|
23576
|
+
function _objectWithoutPropertiesLoose$5(source, excluded) {
|
|
23554
23577
|
if (source == null)
|
|
23555
23578
|
return {};
|
|
23556
23579
|
var target = {};
|
|
@@ -23574,7 +23597,7 @@ var Center = chakra("div", {
|
|
|
23574
23597
|
});
|
|
23575
23598
|
var _excluded$a = ["direction", "align", "justify", "wrap", "basis", "grow", "shrink"];
|
|
23576
23599
|
var Flex = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
23577
|
-
var direction2 = props.direction, align = props.align, justify = props.justify, wrap3 = props.wrap, basis = props.basis, grow = props.grow, shrink = props.shrink, rest = _objectWithoutPropertiesLoose$
|
|
23600
|
+
var direction2 = props.direction, align = props.align, justify = props.justify, wrap3 = props.wrap, basis = props.basis, grow = props.grow, shrink = props.shrink, rest = _objectWithoutPropertiesLoose$5(props, _excluded$a);
|
|
23578
23601
|
var styles2 = {
|
|
23579
23602
|
display: "flex",
|
|
23580
23603
|
flexDirection: direction2,
|
|
@@ -23585,7 +23608,7 @@ var Flex = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
23585
23608
|
flexGrow: grow,
|
|
23586
23609
|
flexShrink: shrink
|
|
23587
23610
|
};
|
|
23588
|
-
return /* @__PURE__ */ React.createElement(chakra.div, _extends$
|
|
23611
|
+
return /* @__PURE__ */ React.createElement(chakra.div, _extends$4({
|
|
23589
23612
|
ref,
|
|
23590
23613
|
__css: styles2
|
|
23591
23614
|
}, rest));
|
|
@@ -23595,8 +23618,8 @@ var Heading = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
23595
23618
|
var styles2 = useStyleConfig("Heading", props);
|
|
23596
23619
|
var _omitThemingProps = omitThemingProps(props);
|
|
23597
23620
|
_omitThemingProps.className;
|
|
23598
|
-
var rest = _objectWithoutPropertiesLoose$
|
|
23599
|
-
return /* @__PURE__ */ React.createElement(chakra.h2, _extends$
|
|
23621
|
+
var rest = _objectWithoutPropertiesLoose$5(_omitThemingProps, _excluded$8);
|
|
23622
|
+
return /* @__PURE__ */ React.createElement(chakra.h2, _extends$4({
|
|
23600
23623
|
ref,
|
|
23601
23624
|
className: cx("chakra-heading", props.className)
|
|
23602
23625
|
}, rest, {
|
|
@@ -23606,8 +23629,8 @@ var Heading = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
23606
23629
|
var _excluded$6 = ["className", "isExternal"];
|
|
23607
23630
|
var Link = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
23608
23631
|
var styles2 = useStyleConfig("Link", props);
|
|
23609
|
-
var _omitThemingProps = omitThemingProps(props), className = _omitThemingProps.className, isExternal = _omitThemingProps.isExternal, rest = _objectWithoutPropertiesLoose$
|
|
23610
|
-
return /* @__PURE__ */ React.createElement(chakra.a, _extends$
|
|
23632
|
+
var _omitThemingProps = omitThemingProps(props), className = _omitThemingProps.className, isExternal = _omitThemingProps.isExternal, rest = _objectWithoutPropertiesLoose$5(_omitThemingProps, _excluded$6);
|
|
23633
|
+
return /* @__PURE__ */ React.createElement(chakra.a, _extends$4({
|
|
23611
23634
|
target: isExternal ? "_blank" : void 0,
|
|
23612
23635
|
rel: isExternal ? "noopener" : void 0,
|
|
23613
23636
|
ref,
|
|
@@ -23624,7 +23647,7 @@ var _createContext = createContext({
|
|
|
23624
23647
|
var List = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
23625
23648
|
var _ref2;
|
|
23626
23649
|
var styles2 = useMultiStyleConfig("List", props);
|
|
23627
|
-
var _omitThemingProps = omitThemingProps(props), children = _omitThemingProps.children, _omitThemingProps$sty = _omitThemingProps.styleType, styleType = _omitThemingProps$sty === void 0 ? "none" : _omitThemingProps$sty, stylePosition = _omitThemingProps.stylePosition, spacing2 = _omitThemingProps.spacing, rest = _objectWithoutPropertiesLoose$
|
|
23650
|
+
var _omitThemingProps = omitThemingProps(props), children = _omitThemingProps.children, _omitThemingProps$sty = _omitThemingProps.styleType, styleType = _omitThemingProps$sty === void 0 ? "none" : _omitThemingProps$sty, stylePosition = _omitThemingProps.stylePosition, spacing2 = _omitThemingProps.spacing, rest = _objectWithoutPropertiesLoose$5(_omitThemingProps, _excluded$5);
|
|
23628
23651
|
var validChildren = getValidChildren(children);
|
|
23629
23652
|
var selector2 = "& > *:not(style) ~ *:not(style)";
|
|
23630
23653
|
var spacingStyle = spacing2 ? (_ref2 = {}, _ref2[selector2] = {
|
|
@@ -23632,17 +23655,17 @@ var List = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
23632
23655
|
}, _ref2) : {};
|
|
23633
23656
|
return /* @__PURE__ */ React.createElement(StylesProvider, {
|
|
23634
23657
|
value: styles2
|
|
23635
|
-
}, /* @__PURE__ */ React.createElement(chakra.ul, _extends$
|
|
23658
|
+
}, /* @__PURE__ */ React.createElement(chakra.ul, _extends$4({
|
|
23636
23659
|
ref,
|
|
23637
23660
|
listStyleType: styleType,
|
|
23638
23661
|
listStylePosition: stylePosition,
|
|
23639
23662
|
role: "list",
|
|
23640
|
-
__css: _extends$
|
|
23663
|
+
__css: _extends$4({}, styles2.container, spacingStyle)
|
|
23641
23664
|
}, rest), validChildren));
|
|
23642
23665
|
});
|
|
23643
23666
|
var ListItem = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
23644
23667
|
var styles2 = useStyles();
|
|
23645
|
-
return /* @__PURE__ */ React.createElement(chakra.li, _extends$
|
|
23668
|
+
return /* @__PURE__ */ React.createElement(chakra.li, _extends$4({
|
|
23646
23669
|
ref
|
|
23647
23670
|
}, props, {
|
|
23648
23671
|
__css: styles2.item
|
|
@@ -23727,10 +23750,10 @@ function getDividerStyles(options) {
|
|
|
23727
23750
|
}
|
|
23728
23751
|
var _excluded$3$1 = ["isInline", "direction", "align", "justify", "spacing", "wrap", "children", "divider", "className", "shouldWrapChildren"];
|
|
23729
23752
|
var StackItem = function StackItem2(props) {
|
|
23730
|
-
return /* @__PURE__ */ React.createElement(chakra.div, _extends$
|
|
23753
|
+
return /* @__PURE__ */ React.createElement(chakra.div, _extends$4({
|
|
23731
23754
|
className: "chakra-stack__item"
|
|
23732
23755
|
}, props, {
|
|
23733
|
-
__css: _extends$
|
|
23756
|
+
__css: _extends$4({
|
|
23734
23757
|
display: "inline-block",
|
|
23735
23758
|
flex: "0 0 auto",
|
|
23736
23759
|
minWidth: 0
|
|
@@ -23739,7 +23762,7 @@ var StackItem = function StackItem2(props) {
|
|
|
23739
23762
|
};
|
|
23740
23763
|
var Stack = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
23741
23764
|
var _ref2;
|
|
23742
|
-
var isInline = props.isInline, directionProp = props.direction, align = props.align, justify = props.justify, _props$spacing = props.spacing, spacing2 = _props$spacing === void 0 ? "0.5rem" : _props$spacing, wrap3 = props.wrap, children = props.children, divider2 = props.divider, className = props.className, shouldWrapChildren = props.shouldWrapChildren, rest = _objectWithoutPropertiesLoose$
|
|
23765
|
+
var isInline = props.isInline, directionProp = props.direction, align = props.align, justify = props.justify, _props$spacing = props.spacing, spacing2 = _props$spacing === void 0 ? "0.5rem" : _props$spacing, wrap3 = props.wrap, children = props.children, divider2 = props.divider, className = props.className, shouldWrapChildren = props.shouldWrapChildren, rest = _objectWithoutPropertiesLoose$5(props, _excluded$3$1);
|
|
23743
23766
|
var direction2 = isInline ? "row" : directionProp != null ? directionProp : "column";
|
|
23744
23767
|
var styles2 = React.useMemo(function() {
|
|
23745
23768
|
return getStackStyles({
|
|
@@ -23774,7 +23797,7 @@ var Stack = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
23774
23797
|
}, _child, _divider);
|
|
23775
23798
|
});
|
|
23776
23799
|
var _className = cx("chakra-stack", className);
|
|
23777
|
-
return /* @__PURE__ */ React.createElement(chakra.div, _extends$
|
|
23800
|
+
return /* @__PURE__ */ React.createElement(chakra.div, _extends$4({
|
|
23778
23801
|
ref,
|
|
23779
23802
|
display: "flex",
|
|
23780
23803
|
alignItems: align,
|
|
@@ -23786,7 +23809,7 @@ var Stack = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
23786
23809
|
}, rest), clones);
|
|
23787
23810
|
});
|
|
23788
23811
|
var HStack = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
23789
|
-
return /* @__PURE__ */ React.createElement(Stack, _extends$
|
|
23812
|
+
return /* @__PURE__ */ React.createElement(Stack, _extends$4({
|
|
23790
23813
|
align: "center"
|
|
23791
23814
|
}, props, {
|
|
23792
23815
|
direction: "row",
|
|
@@ -23801,23 +23824,23 @@ var Text = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
23801
23824
|
_omitThemingProps.align;
|
|
23802
23825
|
_omitThemingProps.decoration;
|
|
23803
23826
|
_omitThemingProps.casing;
|
|
23804
|
-
var rest = _objectWithoutPropertiesLoose$
|
|
23827
|
+
var rest = _objectWithoutPropertiesLoose$5(_omitThemingProps, _excluded$2$1);
|
|
23805
23828
|
var aliasedProps = filterUndefined({
|
|
23806
23829
|
textAlign: props.align,
|
|
23807
23830
|
textDecoration: props.decoration,
|
|
23808
23831
|
textTransform: props.casing
|
|
23809
23832
|
});
|
|
23810
|
-
return /* @__PURE__ */ React.createElement(chakra.p, _extends$
|
|
23833
|
+
return /* @__PURE__ */ React.createElement(chakra.p, _extends$4({
|
|
23811
23834
|
ref,
|
|
23812
23835
|
className: cx("chakra-text", props.className)
|
|
23813
23836
|
}, aliasedProps, rest, {
|
|
23814
23837
|
__css: styles2
|
|
23815
23838
|
}));
|
|
23816
23839
|
});
|
|
23817
|
-
var _excluded = ["isExternal", "target", "rel", "className"], _excluded2 = ["className"];
|
|
23840
|
+
var _excluded$7 = ["isExternal", "target", "rel", "className"], _excluded2 = ["className"];
|
|
23818
23841
|
var LinkOverlay = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
23819
|
-
var isExternal = props.isExternal, target = props.target, rel = props.rel, className = props.className, rest = _objectWithoutPropertiesLoose$
|
|
23820
|
-
return /* @__PURE__ */ React.createElement(chakra.a, _extends$
|
|
23842
|
+
var isExternal = props.isExternal, target = props.target, rel = props.rel, className = props.className, rest = _objectWithoutPropertiesLoose$5(props, _excluded$7);
|
|
23843
|
+
return /* @__PURE__ */ React.createElement(chakra.a, _extends$4({}, rest, {
|
|
23821
23844
|
ref,
|
|
23822
23845
|
className: cx("chakra-linkbox__overlay", className),
|
|
23823
23846
|
rel: isExternal ? "noopener noreferrer" : rel,
|
|
@@ -23839,8 +23862,8 @@ var LinkOverlay = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
23839
23862
|
}));
|
|
23840
23863
|
});
|
|
23841
23864
|
var LinkBox = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
23842
|
-
var className = props.className, rest = _objectWithoutPropertiesLoose$
|
|
23843
|
-
return /* @__PURE__ */ React.createElement(chakra.div, _extends$
|
|
23865
|
+
var className = props.className, rest = _objectWithoutPropertiesLoose$5(props, _excluded2);
|
|
23866
|
+
return /* @__PURE__ */ React.createElement(chakra.div, _extends$4({
|
|
23844
23867
|
ref,
|
|
23845
23868
|
position: "relative"
|
|
23846
23869
|
}, rest, {
|
|
@@ -23853,133 +23876,1792 @@ var LinkBox = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
23853
23876
|
}
|
|
23854
23877
|
}));
|
|
23855
23878
|
});
|
|
23856
|
-
|
|
23857
|
-
|
|
23858
|
-
|
|
23859
|
-
|
|
23860
|
-
|
|
23861
|
-
|
|
23862
|
-
|
|
23863
|
-
|
|
23864
|
-
|
|
23865
|
-
|
|
23866
|
-
|
|
23879
|
+
var top = "top";
|
|
23880
|
+
var bottom = "bottom";
|
|
23881
|
+
var right = "right";
|
|
23882
|
+
var left = "left";
|
|
23883
|
+
var auto = "auto";
|
|
23884
|
+
var basePlacements = [top, bottom, right, left];
|
|
23885
|
+
var start = "start";
|
|
23886
|
+
var end = "end";
|
|
23887
|
+
var clippingParents = "clippingParents";
|
|
23888
|
+
var viewport = "viewport";
|
|
23889
|
+
var popper = "popper";
|
|
23890
|
+
var reference = "reference";
|
|
23891
|
+
var variationPlacements = /* @__PURE__ */ basePlacements.reduce(function(acc, placement) {
|
|
23892
|
+
return acc.concat([placement + "-" + start, placement + "-" + end]);
|
|
23893
|
+
}, []);
|
|
23894
|
+
var placements = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
|
|
23895
|
+
return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
|
|
23896
|
+
}, []);
|
|
23897
|
+
var beforeRead = "beforeRead";
|
|
23898
|
+
var read = "read";
|
|
23899
|
+
var afterRead = "afterRead";
|
|
23900
|
+
var beforeMain = "beforeMain";
|
|
23901
|
+
var main$1 = "main";
|
|
23902
|
+
var afterMain = "afterMain";
|
|
23903
|
+
var beforeWrite = "beforeWrite";
|
|
23904
|
+
var write = "write";
|
|
23905
|
+
var afterWrite = "afterWrite";
|
|
23906
|
+
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main$1, afterMain, beforeWrite, write, afterWrite];
|
|
23907
|
+
function getNodeName(element) {
|
|
23908
|
+
return element ? (element.nodeName || "").toLowerCase() : null;
|
|
23909
|
+
}
|
|
23910
|
+
function getWindow(node2) {
|
|
23911
|
+
if (node2 == null) {
|
|
23912
|
+
return window;
|
|
23913
|
+
}
|
|
23914
|
+
if (node2.toString() !== "[object Window]") {
|
|
23915
|
+
var ownerDocument = node2.ownerDocument;
|
|
23916
|
+
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
23867
23917
|
}
|
|
23868
|
-
return
|
|
23918
|
+
return node2;
|
|
23869
23919
|
}
|
|
23870
|
-
|
|
23871
|
-
var
|
|
23872
|
-
|
|
23873
|
-
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
23874
|
-
function emptyFunction() {
|
|
23920
|
+
function isElement(node2) {
|
|
23921
|
+
var OwnElement = getWindow(node2).Element;
|
|
23922
|
+
return node2 instanceof OwnElement || node2 instanceof Element;
|
|
23875
23923
|
}
|
|
23876
|
-
function
|
|
23924
|
+
function isHTMLElement(node2) {
|
|
23925
|
+
var OwnElement = getWindow(node2).HTMLElement;
|
|
23926
|
+
return node2 instanceof OwnElement || node2 instanceof HTMLElement;
|
|
23877
23927
|
}
|
|
23878
|
-
|
|
23879
|
-
|
|
23880
|
-
|
|
23881
|
-
|
|
23928
|
+
function isShadowRoot(node2) {
|
|
23929
|
+
if (typeof ShadowRoot === "undefined") {
|
|
23930
|
+
return false;
|
|
23931
|
+
}
|
|
23932
|
+
var OwnElement = getWindow(node2).ShadowRoot;
|
|
23933
|
+
return node2 instanceof OwnElement || node2 instanceof ShadowRoot;
|
|
23934
|
+
}
|
|
23935
|
+
function applyStyles(_ref2) {
|
|
23936
|
+
var state2 = _ref2.state;
|
|
23937
|
+
Object.keys(state2.elements).forEach(function(name) {
|
|
23938
|
+
var style = state2.styles[name] || {};
|
|
23939
|
+
var attributes = state2.attributes[name] || {};
|
|
23940
|
+
var element = state2.elements[name];
|
|
23941
|
+
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
23882
23942
|
return;
|
|
23883
23943
|
}
|
|
23884
|
-
|
|
23885
|
-
|
|
23886
|
-
|
|
23887
|
-
|
|
23888
|
-
|
|
23889
|
-
|
|
23890
|
-
|
|
23944
|
+
Object.assign(element.style, style);
|
|
23945
|
+
Object.keys(attributes).forEach(function(name2) {
|
|
23946
|
+
var value = attributes[name2];
|
|
23947
|
+
if (value === false) {
|
|
23948
|
+
element.removeAttribute(name2);
|
|
23949
|
+
} else {
|
|
23950
|
+
element.setAttribute(name2, value === true ? "" : value);
|
|
23951
|
+
}
|
|
23952
|
+
});
|
|
23953
|
+
});
|
|
23954
|
+
}
|
|
23955
|
+
function effect$2(_ref2) {
|
|
23956
|
+
var state2 = _ref2.state;
|
|
23957
|
+
var initialStyles = {
|
|
23958
|
+
popper: {
|
|
23959
|
+
position: state2.options.strategy,
|
|
23960
|
+
left: "0",
|
|
23961
|
+
top: "0",
|
|
23962
|
+
margin: "0"
|
|
23963
|
+
},
|
|
23964
|
+
arrow: {
|
|
23965
|
+
position: "absolute"
|
|
23966
|
+
},
|
|
23967
|
+
reference: {}
|
|
23968
|
+
};
|
|
23969
|
+
Object.assign(state2.elements.popper.style, initialStyles.popper);
|
|
23970
|
+
state2.styles = initialStyles;
|
|
23971
|
+
if (state2.elements.arrow) {
|
|
23972
|
+
Object.assign(state2.elements.arrow.style, initialStyles.arrow);
|
|
23891
23973
|
}
|
|
23892
|
-
|
|
23893
|
-
|
|
23894
|
-
|
|
23895
|
-
|
|
23896
|
-
|
|
23897
|
-
|
|
23898
|
-
|
|
23899
|
-
|
|
23900
|
-
|
|
23901
|
-
|
|
23902
|
-
|
|
23903
|
-
|
|
23904
|
-
|
|
23905
|
-
|
|
23906
|
-
|
|
23907
|
-
|
|
23908
|
-
|
|
23909
|
-
shape: getShim,
|
|
23910
|
-
exact: getShim,
|
|
23911
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
23912
|
-
resetWarningCache: emptyFunction
|
|
23974
|
+
return function() {
|
|
23975
|
+
Object.keys(state2.elements).forEach(function(name) {
|
|
23976
|
+
var element = state2.elements[name];
|
|
23977
|
+
var attributes = state2.attributes[name] || {};
|
|
23978
|
+
var styleProperties = Object.keys(state2.styles.hasOwnProperty(name) ? state2.styles[name] : initialStyles[name]);
|
|
23979
|
+
var style = styleProperties.reduce(function(style2, property) {
|
|
23980
|
+
style2[property] = "";
|
|
23981
|
+
return style2;
|
|
23982
|
+
}, {});
|
|
23983
|
+
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
23984
|
+
return;
|
|
23985
|
+
}
|
|
23986
|
+
Object.assign(element.style, style);
|
|
23987
|
+
Object.keys(attributes).forEach(function(attribute) {
|
|
23988
|
+
element.removeAttribute(attribute);
|
|
23989
|
+
});
|
|
23990
|
+
});
|
|
23913
23991
|
};
|
|
23914
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
23915
|
-
return ReactPropTypes;
|
|
23916
|
-
};
|
|
23917
|
-
{
|
|
23918
|
-
propTypes.exports = factoryWithThrowingShims();
|
|
23919
23992
|
}
|
|
23920
|
-
var
|
|
23921
|
-
|
|
23922
|
-
|
|
23923
|
-
|
|
23924
|
-
|
|
23925
|
-
|
|
23926
|
-
|
|
23927
|
-
|
|
23928
|
-
|
|
23929
|
-
|
|
23993
|
+
var applyStyles$1 = {
|
|
23994
|
+
name: "applyStyles",
|
|
23995
|
+
enabled: true,
|
|
23996
|
+
phase: "write",
|
|
23997
|
+
fn: applyStyles,
|
|
23998
|
+
effect: effect$2,
|
|
23999
|
+
requires: ["computeStyles"]
|
|
24000
|
+
};
|
|
24001
|
+
function getBasePlacement(placement) {
|
|
24002
|
+
return placement.split("-")[0];
|
|
24003
|
+
}
|
|
24004
|
+
function getBoundingClientRect(element, includeScale) {
|
|
24005
|
+
var rect = element.getBoundingClientRect();
|
|
24006
|
+
var scaleX = 1;
|
|
24007
|
+
var scaleY = 1;
|
|
24008
|
+
return {
|
|
24009
|
+
width: rect.width / scaleX,
|
|
24010
|
+
height: rect.height / scaleY,
|
|
24011
|
+
top: rect.top / scaleY,
|
|
24012
|
+
right: rect.right / scaleX,
|
|
24013
|
+
bottom: rect.bottom / scaleY,
|
|
24014
|
+
left: rect.left / scaleX,
|
|
24015
|
+
x: rect.left / scaleX,
|
|
24016
|
+
y: rect.top / scaleY
|
|
24017
|
+
};
|
|
24018
|
+
}
|
|
24019
|
+
function getLayoutRect(element) {
|
|
24020
|
+
var clientRect = getBoundingClientRect(element);
|
|
24021
|
+
var width = element.offsetWidth;
|
|
24022
|
+
var height = element.offsetHeight;
|
|
24023
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
24024
|
+
width = clientRect.width;
|
|
24025
|
+
}
|
|
24026
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
24027
|
+
height = clientRect.height;
|
|
23930
24028
|
}
|
|
23931
|
-
return
|
|
24029
|
+
return {
|
|
24030
|
+
x: element.offsetLeft,
|
|
24031
|
+
y: element.offsetTop,
|
|
24032
|
+
width,
|
|
24033
|
+
height
|
|
24034
|
+
};
|
|
23932
24035
|
}
|
|
23933
|
-
function
|
|
23934
|
-
var
|
|
23935
|
-
|
|
23936
|
-
|
|
23937
|
-
|
|
23938
|
-
|
|
23939
|
-
|
|
23940
|
-
|
|
23941
|
-
|
|
23942
|
-
set current(value) {
|
|
23943
|
-
var last = ref.value;
|
|
23944
|
-
if (last !== value) {
|
|
23945
|
-
ref.value = value;
|
|
23946
|
-
ref.callback(value, last);
|
|
23947
|
-
}
|
|
23948
|
-
}
|
|
24036
|
+
function contains(parent, child) {
|
|
24037
|
+
var rootNode = child.getRootNode && child.getRootNode();
|
|
24038
|
+
if (parent.contains(child)) {
|
|
24039
|
+
return true;
|
|
24040
|
+
} else if (rootNode && isShadowRoot(rootNode)) {
|
|
24041
|
+
var next2 = child;
|
|
24042
|
+
do {
|
|
24043
|
+
if (next2 && parent.isSameNode(next2)) {
|
|
24044
|
+
return true;
|
|
23949
24045
|
}
|
|
23950
|
-
|
|
23951
|
-
|
|
23952
|
-
|
|
23953
|
-
return
|
|
24046
|
+
next2 = next2.parentNode || next2.host;
|
|
24047
|
+
} while (next2);
|
|
24048
|
+
}
|
|
24049
|
+
return false;
|
|
23954
24050
|
}
|
|
23955
|
-
function
|
|
23956
|
-
return
|
|
23957
|
-
return refs.forEach(function(ref) {
|
|
23958
|
-
return assignRef(ref, newValue);
|
|
23959
|
-
});
|
|
23960
|
-
});
|
|
24051
|
+
function getComputedStyle$1(element) {
|
|
24052
|
+
return getWindow(element).getComputedStyle(element);
|
|
23961
24053
|
}
|
|
23962
|
-
|
|
23963
|
-
|
|
23964
|
-
|
|
23965
|
-
|
|
23966
|
-
|
|
23967
|
-
|
|
23968
|
-
|
|
23969
|
-
|
|
23970
|
-
|
|
23971
|
-
|
|
23972
|
-
|
|
23973
|
-
|
|
23974
|
-
|
|
23975
|
-
|
|
23976
|
-
|
|
23977
|
-
|
|
23978
|
-
|
|
23979
|
-
|
|
23980
|
-
|
|
23981
|
-
|
|
23982
|
-
|
|
24054
|
+
function isTableElement(element) {
|
|
24055
|
+
return ["table", "td", "th"].indexOf(getNodeName(element)) >= 0;
|
|
24056
|
+
}
|
|
24057
|
+
function getDocumentElement(element) {
|
|
24058
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
24059
|
+
}
|
|
24060
|
+
function getParentNode(element) {
|
|
24061
|
+
if (getNodeName(element) === "html") {
|
|
24062
|
+
return element;
|
|
24063
|
+
}
|
|
24064
|
+
return element.assignedSlot || element.parentNode || (isShadowRoot(element) ? element.host : null) || getDocumentElement(element);
|
|
24065
|
+
}
|
|
24066
|
+
function getTrueOffsetParent(element) {
|
|
24067
|
+
if (!isHTMLElement(element) || getComputedStyle$1(element).position === "fixed") {
|
|
24068
|
+
return null;
|
|
24069
|
+
}
|
|
24070
|
+
return element.offsetParent;
|
|
24071
|
+
}
|
|
24072
|
+
function getContainingBlock(element) {
|
|
24073
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1;
|
|
24074
|
+
var isIE = navigator.userAgent.indexOf("Trident") !== -1;
|
|
24075
|
+
if (isIE && isHTMLElement(element)) {
|
|
24076
|
+
var elementCss = getComputedStyle$1(element);
|
|
24077
|
+
if (elementCss.position === "fixed") {
|
|
24078
|
+
return null;
|
|
24079
|
+
}
|
|
24080
|
+
}
|
|
24081
|
+
var currentNode = getParentNode(element);
|
|
24082
|
+
while (isHTMLElement(currentNode) && ["html", "body"].indexOf(getNodeName(currentNode)) < 0) {
|
|
24083
|
+
var css3 = getComputedStyle$1(currentNode);
|
|
24084
|
+
if (css3.transform !== "none" || css3.perspective !== "none" || css3.contain === "paint" || ["transform", "perspective"].indexOf(css3.willChange) !== -1 || isFirefox && css3.willChange === "filter" || isFirefox && css3.filter && css3.filter !== "none") {
|
|
24085
|
+
return currentNode;
|
|
24086
|
+
} else {
|
|
24087
|
+
currentNode = currentNode.parentNode;
|
|
24088
|
+
}
|
|
24089
|
+
}
|
|
24090
|
+
return null;
|
|
24091
|
+
}
|
|
24092
|
+
function getOffsetParent(element) {
|
|
24093
|
+
var window2 = getWindow(element);
|
|
24094
|
+
var offsetParent = getTrueOffsetParent(element);
|
|
24095
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === "static") {
|
|
24096
|
+
offsetParent = getTrueOffsetParent(offsetParent);
|
|
24097
|
+
}
|
|
24098
|
+
if (offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle$1(offsetParent).position === "static")) {
|
|
24099
|
+
return window2;
|
|
24100
|
+
}
|
|
24101
|
+
return offsetParent || getContainingBlock(element) || window2;
|
|
24102
|
+
}
|
|
24103
|
+
function getMainAxisFromPlacement(placement) {
|
|
24104
|
+
return ["top", "bottom"].indexOf(placement) >= 0 ? "x" : "y";
|
|
24105
|
+
}
|
|
24106
|
+
var max = Math.max;
|
|
24107
|
+
var min = Math.min;
|
|
24108
|
+
var round = Math.round;
|
|
24109
|
+
function within(min$1, value, max$1) {
|
|
24110
|
+
return max(min$1, min(value, max$1));
|
|
24111
|
+
}
|
|
24112
|
+
function getFreshSideObject() {
|
|
24113
|
+
return {
|
|
24114
|
+
top: 0,
|
|
24115
|
+
right: 0,
|
|
24116
|
+
bottom: 0,
|
|
24117
|
+
left: 0
|
|
24118
|
+
};
|
|
24119
|
+
}
|
|
24120
|
+
function mergePaddingObject(paddingObject) {
|
|
24121
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
24122
|
+
}
|
|
24123
|
+
function expandToHashMap(value, keys2) {
|
|
24124
|
+
return keys2.reduce(function(hashMap, key) {
|
|
24125
|
+
hashMap[key] = value;
|
|
24126
|
+
return hashMap;
|
|
24127
|
+
}, {});
|
|
24128
|
+
}
|
|
24129
|
+
var toPaddingObject = function toPaddingObject2(padding, state2) {
|
|
24130
|
+
padding = typeof padding === "function" ? padding(Object.assign({}, state2.rects, {
|
|
24131
|
+
placement: state2.placement
|
|
24132
|
+
})) : padding;
|
|
24133
|
+
return mergePaddingObject(typeof padding !== "number" ? padding : expandToHashMap(padding, basePlacements));
|
|
24134
|
+
};
|
|
24135
|
+
function arrow(_ref2) {
|
|
24136
|
+
var _state$modifiersData$;
|
|
24137
|
+
var state2 = _ref2.state, name = _ref2.name, options = _ref2.options;
|
|
24138
|
+
var arrowElement = state2.elements.arrow;
|
|
24139
|
+
var popperOffsets2 = state2.modifiersData.popperOffsets;
|
|
24140
|
+
var basePlacement = getBasePlacement(state2.placement);
|
|
24141
|
+
var axis = getMainAxisFromPlacement(basePlacement);
|
|
24142
|
+
var isVertical = [left, right].indexOf(basePlacement) >= 0;
|
|
24143
|
+
var len = isVertical ? "height" : "width";
|
|
24144
|
+
if (!arrowElement || !popperOffsets2) {
|
|
24145
|
+
return;
|
|
24146
|
+
}
|
|
24147
|
+
var paddingObject = toPaddingObject(options.padding, state2);
|
|
24148
|
+
var arrowRect = getLayoutRect(arrowElement);
|
|
24149
|
+
var minProp = axis === "y" ? top : left;
|
|
24150
|
+
var maxProp = axis === "y" ? bottom : right;
|
|
24151
|
+
var endDiff = state2.rects.reference[len] + state2.rects.reference[axis] - popperOffsets2[axis] - state2.rects.popper[len];
|
|
24152
|
+
var startDiff = popperOffsets2[axis] - state2.rects.reference[axis];
|
|
24153
|
+
var arrowOffsetParent = getOffsetParent(arrowElement);
|
|
24154
|
+
var clientSize = arrowOffsetParent ? axis === "y" ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
|
24155
|
+
var centerToReference = endDiff / 2 - startDiff / 2;
|
|
24156
|
+
var min2 = paddingObject[minProp];
|
|
24157
|
+
var max2 = clientSize - arrowRect[len] - paddingObject[maxProp];
|
|
24158
|
+
var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
|
|
24159
|
+
var offset2 = within(min2, center, max2);
|
|
24160
|
+
var axisProp = axis;
|
|
24161
|
+
state2.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset2, _state$modifiersData$.centerOffset = offset2 - center, _state$modifiersData$);
|
|
24162
|
+
}
|
|
24163
|
+
function effect$1(_ref2) {
|
|
24164
|
+
var state2 = _ref2.state, options = _ref2.options;
|
|
24165
|
+
var _options$element = options.element, arrowElement = _options$element === void 0 ? "[data-popper-arrow]" : _options$element;
|
|
24166
|
+
if (arrowElement == null) {
|
|
24167
|
+
return;
|
|
24168
|
+
}
|
|
24169
|
+
if (typeof arrowElement === "string") {
|
|
24170
|
+
arrowElement = state2.elements.popper.querySelector(arrowElement);
|
|
24171
|
+
if (!arrowElement) {
|
|
24172
|
+
return;
|
|
24173
|
+
}
|
|
24174
|
+
}
|
|
24175
|
+
if (!contains(state2.elements.popper, arrowElement)) {
|
|
24176
|
+
return;
|
|
24177
|
+
}
|
|
24178
|
+
state2.elements.arrow = arrowElement;
|
|
24179
|
+
}
|
|
24180
|
+
var arrow$1 = {
|
|
24181
|
+
name: "arrow",
|
|
24182
|
+
enabled: true,
|
|
24183
|
+
phase: "main",
|
|
24184
|
+
fn: arrow,
|
|
24185
|
+
effect: effect$1,
|
|
24186
|
+
requires: ["popperOffsets"],
|
|
24187
|
+
requiresIfExists: ["preventOverflow"]
|
|
24188
|
+
};
|
|
24189
|
+
function getVariation(placement) {
|
|
24190
|
+
return placement.split("-")[1];
|
|
24191
|
+
}
|
|
24192
|
+
var unsetSides = {
|
|
24193
|
+
top: "auto",
|
|
24194
|
+
right: "auto",
|
|
24195
|
+
bottom: "auto",
|
|
24196
|
+
left: "auto"
|
|
24197
|
+
};
|
|
24198
|
+
function roundOffsetsByDPR(_ref2) {
|
|
24199
|
+
var x2 = _ref2.x, y2 = _ref2.y;
|
|
24200
|
+
var win2 = window;
|
|
24201
|
+
var dpr = win2.devicePixelRatio || 1;
|
|
24202
|
+
return {
|
|
24203
|
+
x: round(round(x2 * dpr) / dpr) || 0,
|
|
24204
|
+
y: round(round(y2 * dpr) / dpr) || 0
|
|
24205
|
+
};
|
|
24206
|
+
}
|
|
24207
|
+
function mapToStyles(_ref2) {
|
|
24208
|
+
var _Object$assign2;
|
|
24209
|
+
var popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position2 = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets;
|
|
24210
|
+
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === "function" ? roundOffsets(offsets) : offsets, _ref3$x = _ref3.x, x2 = _ref3$x === void 0 ? 0 : _ref3$x, _ref3$y = _ref3.y, y2 = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
24211
|
+
var hasX = offsets.hasOwnProperty("x");
|
|
24212
|
+
var hasY = offsets.hasOwnProperty("y");
|
|
24213
|
+
var sideX = left;
|
|
24214
|
+
var sideY = top;
|
|
24215
|
+
var win2 = window;
|
|
24216
|
+
if (adaptive) {
|
|
24217
|
+
var offsetParent = getOffsetParent(popper2);
|
|
24218
|
+
var heightProp = "clientHeight";
|
|
24219
|
+
var widthProp = "clientWidth";
|
|
24220
|
+
if (offsetParent === getWindow(popper2)) {
|
|
24221
|
+
offsetParent = getDocumentElement(popper2);
|
|
24222
|
+
if (getComputedStyle$1(offsetParent).position !== "static" && position2 === "absolute") {
|
|
24223
|
+
heightProp = "scrollHeight";
|
|
24224
|
+
widthProp = "scrollWidth";
|
|
24225
|
+
}
|
|
24226
|
+
}
|
|
24227
|
+
offsetParent = offsetParent;
|
|
24228
|
+
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
24229
|
+
sideY = bottom;
|
|
24230
|
+
y2 -= offsetParent[heightProp] - popperRect.height;
|
|
24231
|
+
y2 *= gpuAcceleration ? 1 : -1;
|
|
24232
|
+
}
|
|
24233
|
+
if (placement === left || (placement === top || placement === bottom) && variation === end) {
|
|
24234
|
+
sideX = right;
|
|
24235
|
+
x2 -= offsetParent[widthProp] - popperRect.width;
|
|
24236
|
+
x2 *= gpuAcceleration ? 1 : -1;
|
|
24237
|
+
}
|
|
24238
|
+
}
|
|
24239
|
+
var commonStyles = Object.assign({
|
|
24240
|
+
position: position2
|
|
24241
|
+
}, adaptive && unsetSides);
|
|
24242
|
+
if (gpuAcceleration) {
|
|
24243
|
+
var _Object$assign;
|
|
24244
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win2.devicePixelRatio || 1) <= 1 ? "translate(" + x2 + "px, " + y2 + "px)" : "translate3d(" + x2 + "px, " + y2 + "px, 0)", _Object$assign));
|
|
24245
|
+
}
|
|
24246
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x2 + "px" : "", _Object$assign2.transform = "", _Object$assign2));
|
|
24247
|
+
}
|
|
24248
|
+
function computeStyles(_ref4) {
|
|
24249
|
+
var state2 = _ref4.state, options = _ref4.options;
|
|
24250
|
+
var _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = _options$adaptive === void 0 ? true : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
24251
|
+
var commonStyles = {
|
|
24252
|
+
placement: getBasePlacement(state2.placement),
|
|
24253
|
+
variation: getVariation(state2.placement),
|
|
24254
|
+
popper: state2.elements.popper,
|
|
24255
|
+
popperRect: state2.rects.popper,
|
|
24256
|
+
gpuAcceleration
|
|
24257
|
+
};
|
|
24258
|
+
if (state2.modifiersData.popperOffsets != null) {
|
|
24259
|
+
state2.styles.popper = Object.assign({}, state2.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
24260
|
+
offsets: state2.modifiersData.popperOffsets,
|
|
24261
|
+
position: state2.options.strategy,
|
|
24262
|
+
adaptive,
|
|
24263
|
+
roundOffsets
|
|
24264
|
+
})));
|
|
24265
|
+
}
|
|
24266
|
+
if (state2.modifiersData.arrow != null) {
|
|
24267
|
+
state2.styles.arrow = Object.assign({}, state2.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
24268
|
+
offsets: state2.modifiersData.arrow,
|
|
24269
|
+
position: "absolute",
|
|
24270
|
+
adaptive: false,
|
|
24271
|
+
roundOffsets
|
|
24272
|
+
})));
|
|
24273
|
+
}
|
|
24274
|
+
state2.attributes.popper = Object.assign({}, state2.attributes.popper, {
|
|
24275
|
+
"data-popper-placement": state2.placement
|
|
24276
|
+
});
|
|
24277
|
+
}
|
|
24278
|
+
var computeStyles$1 = {
|
|
24279
|
+
name: "computeStyles",
|
|
24280
|
+
enabled: true,
|
|
24281
|
+
phase: "beforeWrite",
|
|
24282
|
+
fn: computeStyles,
|
|
24283
|
+
data: {}
|
|
24284
|
+
};
|
|
24285
|
+
var passive = {
|
|
24286
|
+
passive: true
|
|
24287
|
+
};
|
|
24288
|
+
function effect(_ref2) {
|
|
24289
|
+
var state2 = _ref2.state, instance = _ref2.instance, options = _ref2.options;
|
|
24290
|
+
var _options$scroll = options.scroll, scroll2 = _options$scroll === void 0 ? true : _options$scroll, _options$resize = options.resize, resize = _options$resize === void 0 ? true : _options$resize;
|
|
24291
|
+
var window2 = getWindow(state2.elements.popper);
|
|
24292
|
+
var scrollParents = [].concat(state2.scrollParents.reference, state2.scrollParents.popper);
|
|
24293
|
+
if (scroll2) {
|
|
24294
|
+
scrollParents.forEach(function(scrollParent) {
|
|
24295
|
+
scrollParent.addEventListener("scroll", instance.update, passive);
|
|
24296
|
+
});
|
|
24297
|
+
}
|
|
24298
|
+
if (resize) {
|
|
24299
|
+
window2.addEventListener("resize", instance.update, passive);
|
|
24300
|
+
}
|
|
24301
|
+
return function() {
|
|
24302
|
+
if (scroll2) {
|
|
24303
|
+
scrollParents.forEach(function(scrollParent) {
|
|
24304
|
+
scrollParent.removeEventListener("scroll", instance.update, passive);
|
|
24305
|
+
});
|
|
24306
|
+
}
|
|
24307
|
+
if (resize) {
|
|
24308
|
+
window2.removeEventListener("resize", instance.update, passive);
|
|
24309
|
+
}
|
|
24310
|
+
};
|
|
24311
|
+
}
|
|
24312
|
+
var eventListeners = {
|
|
24313
|
+
name: "eventListeners",
|
|
24314
|
+
enabled: true,
|
|
24315
|
+
phase: "write",
|
|
24316
|
+
fn: function fn() {
|
|
24317
|
+
},
|
|
24318
|
+
effect,
|
|
24319
|
+
data: {}
|
|
24320
|
+
};
|
|
24321
|
+
var hash$1 = {
|
|
24322
|
+
left: "right",
|
|
24323
|
+
right: "left",
|
|
24324
|
+
bottom: "top",
|
|
24325
|
+
top: "bottom"
|
|
24326
|
+
};
|
|
24327
|
+
function getOppositePlacement(placement) {
|
|
24328
|
+
return placement.replace(/left|right|bottom|top/g, function(matched) {
|
|
24329
|
+
return hash$1[matched];
|
|
24330
|
+
});
|
|
24331
|
+
}
|
|
24332
|
+
var hash = {
|
|
24333
|
+
start: "end",
|
|
24334
|
+
end: "start"
|
|
24335
|
+
};
|
|
24336
|
+
function getOppositeVariationPlacement(placement) {
|
|
24337
|
+
return placement.replace(/start|end/g, function(matched) {
|
|
24338
|
+
return hash[matched];
|
|
24339
|
+
});
|
|
24340
|
+
}
|
|
24341
|
+
function getWindowScroll(node2) {
|
|
24342
|
+
var win2 = getWindow(node2);
|
|
24343
|
+
var scrollLeft = win2.pageXOffset;
|
|
24344
|
+
var scrollTop = win2.pageYOffset;
|
|
24345
|
+
return {
|
|
24346
|
+
scrollLeft,
|
|
24347
|
+
scrollTop
|
|
24348
|
+
};
|
|
24349
|
+
}
|
|
24350
|
+
function getWindowScrollBarX(element) {
|
|
24351
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
|
|
24352
|
+
}
|
|
24353
|
+
function getViewportRect(element) {
|
|
24354
|
+
var win2 = getWindow(element);
|
|
24355
|
+
var html = getDocumentElement(element);
|
|
24356
|
+
var visualViewport = win2.visualViewport;
|
|
24357
|
+
var width = html.clientWidth;
|
|
24358
|
+
var height = html.clientHeight;
|
|
24359
|
+
var x2 = 0;
|
|
24360
|
+
var y2 = 0;
|
|
24361
|
+
if (visualViewport) {
|
|
24362
|
+
width = visualViewport.width;
|
|
24363
|
+
height = visualViewport.height;
|
|
24364
|
+
if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
|
|
24365
|
+
x2 = visualViewport.offsetLeft;
|
|
24366
|
+
y2 = visualViewport.offsetTop;
|
|
24367
|
+
}
|
|
24368
|
+
}
|
|
24369
|
+
return {
|
|
24370
|
+
width,
|
|
24371
|
+
height,
|
|
24372
|
+
x: x2 + getWindowScrollBarX(element),
|
|
24373
|
+
y: y2
|
|
24374
|
+
};
|
|
24375
|
+
}
|
|
24376
|
+
function getDocumentRect(element) {
|
|
24377
|
+
var _element$ownerDocumen;
|
|
24378
|
+
var html = getDocumentElement(element);
|
|
24379
|
+
var winScroll = getWindowScroll(element);
|
|
24380
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
24381
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
24382
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
24383
|
+
var x2 = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
24384
|
+
var y2 = -winScroll.scrollTop;
|
|
24385
|
+
if (getComputedStyle$1(body || html).direction === "rtl") {
|
|
24386
|
+
x2 += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
24387
|
+
}
|
|
24388
|
+
return {
|
|
24389
|
+
width,
|
|
24390
|
+
height,
|
|
24391
|
+
x: x2,
|
|
24392
|
+
y: y2
|
|
24393
|
+
};
|
|
24394
|
+
}
|
|
24395
|
+
function isScrollParent(element) {
|
|
24396
|
+
var _getComputedStyle = getComputedStyle$1(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
|
|
24397
|
+
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
24398
|
+
}
|
|
24399
|
+
function getScrollParent(node2) {
|
|
24400
|
+
if (["html", "body", "#document"].indexOf(getNodeName(node2)) >= 0) {
|
|
24401
|
+
return node2.ownerDocument.body;
|
|
24402
|
+
}
|
|
24403
|
+
if (isHTMLElement(node2) && isScrollParent(node2)) {
|
|
24404
|
+
return node2;
|
|
24405
|
+
}
|
|
24406
|
+
return getScrollParent(getParentNode(node2));
|
|
24407
|
+
}
|
|
24408
|
+
function listScrollParents(element, list2) {
|
|
24409
|
+
var _element$ownerDocumen;
|
|
24410
|
+
if (list2 === void 0) {
|
|
24411
|
+
list2 = [];
|
|
24412
|
+
}
|
|
24413
|
+
var scrollParent = getScrollParent(element);
|
|
24414
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
24415
|
+
var win2 = getWindow(scrollParent);
|
|
24416
|
+
var target = isBody ? [win2].concat(win2.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
24417
|
+
var updatedList = list2.concat(target);
|
|
24418
|
+
return isBody ? updatedList : updatedList.concat(listScrollParents(getParentNode(target)));
|
|
24419
|
+
}
|
|
24420
|
+
function rectToClientRect(rect) {
|
|
24421
|
+
return Object.assign({}, rect, {
|
|
24422
|
+
left: rect.x,
|
|
24423
|
+
top: rect.y,
|
|
24424
|
+
right: rect.x + rect.width,
|
|
24425
|
+
bottom: rect.y + rect.height
|
|
24426
|
+
});
|
|
24427
|
+
}
|
|
24428
|
+
function getInnerBoundingClientRect(element) {
|
|
24429
|
+
var rect = getBoundingClientRect(element);
|
|
24430
|
+
rect.top = rect.top + element.clientTop;
|
|
24431
|
+
rect.left = rect.left + element.clientLeft;
|
|
24432
|
+
rect.bottom = rect.top + element.clientHeight;
|
|
24433
|
+
rect.right = rect.left + element.clientWidth;
|
|
24434
|
+
rect.width = element.clientWidth;
|
|
24435
|
+
rect.height = element.clientHeight;
|
|
24436
|
+
rect.x = rect.left;
|
|
24437
|
+
rect.y = rect.top;
|
|
24438
|
+
return rect;
|
|
24439
|
+
}
|
|
24440
|
+
function getClientRectFromMixedType(element, clippingParent) {
|
|
24441
|
+
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
24442
|
+
}
|
|
24443
|
+
function getClippingParents(element) {
|
|
24444
|
+
var clippingParents2 = listScrollParents(getParentNode(element));
|
|
24445
|
+
var canEscapeClipping = ["absolute", "fixed"].indexOf(getComputedStyle$1(element).position) >= 0;
|
|
24446
|
+
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
24447
|
+
if (!isElement(clipperElement)) {
|
|
24448
|
+
return [];
|
|
24449
|
+
}
|
|
24450
|
+
return clippingParents2.filter(function(clippingParent) {
|
|
24451
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== "body";
|
|
24452
|
+
});
|
|
24453
|
+
}
|
|
24454
|
+
function getClippingRect(element, boundary, rootBoundary) {
|
|
24455
|
+
var mainClippingParents = boundary === "clippingParents" ? getClippingParents(element) : [].concat(boundary);
|
|
24456
|
+
var clippingParents2 = [].concat(mainClippingParents, [rootBoundary]);
|
|
24457
|
+
var firstClippingParent = clippingParents2[0];
|
|
24458
|
+
var clippingRect = clippingParents2.reduce(function(accRect, clippingParent) {
|
|
24459
|
+
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
24460
|
+
accRect.top = max(rect.top, accRect.top);
|
|
24461
|
+
accRect.right = min(rect.right, accRect.right);
|
|
24462
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
24463
|
+
accRect.left = max(rect.left, accRect.left);
|
|
24464
|
+
return accRect;
|
|
24465
|
+
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
24466
|
+
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
24467
|
+
clippingRect.height = clippingRect.bottom - clippingRect.top;
|
|
24468
|
+
clippingRect.x = clippingRect.left;
|
|
24469
|
+
clippingRect.y = clippingRect.top;
|
|
24470
|
+
return clippingRect;
|
|
24471
|
+
}
|
|
24472
|
+
function computeOffsets(_ref2) {
|
|
24473
|
+
var reference2 = _ref2.reference, element = _ref2.element, placement = _ref2.placement;
|
|
24474
|
+
var basePlacement = placement ? getBasePlacement(placement) : null;
|
|
24475
|
+
var variation = placement ? getVariation(placement) : null;
|
|
24476
|
+
var commonX = reference2.x + reference2.width / 2 - element.width / 2;
|
|
24477
|
+
var commonY = reference2.y + reference2.height / 2 - element.height / 2;
|
|
24478
|
+
var offsets;
|
|
24479
|
+
switch (basePlacement) {
|
|
24480
|
+
case top:
|
|
24481
|
+
offsets = {
|
|
24482
|
+
x: commonX,
|
|
24483
|
+
y: reference2.y - element.height
|
|
24484
|
+
};
|
|
24485
|
+
break;
|
|
24486
|
+
case bottom:
|
|
24487
|
+
offsets = {
|
|
24488
|
+
x: commonX,
|
|
24489
|
+
y: reference2.y + reference2.height
|
|
24490
|
+
};
|
|
24491
|
+
break;
|
|
24492
|
+
case right:
|
|
24493
|
+
offsets = {
|
|
24494
|
+
x: reference2.x + reference2.width,
|
|
24495
|
+
y: commonY
|
|
24496
|
+
};
|
|
24497
|
+
break;
|
|
24498
|
+
case left:
|
|
24499
|
+
offsets = {
|
|
24500
|
+
x: reference2.x - element.width,
|
|
24501
|
+
y: commonY
|
|
24502
|
+
};
|
|
24503
|
+
break;
|
|
24504
|
+
default:
|
|
24505
|
+
offsets = {
|
|
24506
|
+
x: reference2.x,
|
|
24507
|
+
y: reference2.y
|
|
24508
|
+
};
|
|
24509
|
+
}
|
|
24510
|
+
var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
|
|
24511
|
+
if (mainAxis != null) {
|
|
24512
|
+
var len = mainAxis === "y" ? "height" : "width";
|
|
24513
|
+
switch (variation) {
|
|
24514
|
+
case start:
|
|
24515
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference2[len] / 2 - element[len] / 2);
|
|
24516
|
+
break;
|
|
24517
|
+
case end:
|
|
24518
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference2[len] / 2 - element[len] / 2);
|
|
24519
|
+
break;
|
|
24520
|
+
}
|
|
24521
|
+
}
|
|
24522
|
+
return offsets;
|
|
24523
|
+
}
|
|
24524
|
+
function detectOverflow(state2, options) {
|
|
24525
|
+
if (options === void 0) {
|
|
24526
|
+
options = {};
|
|
24527
|
+
}
|
|
24528
|
+
var _options = options, _options$placement = _options.placement, placement = _options$placement === void 0 ? state2.placement : _options$placement, _options$boundary = _options.boundary, boundary = _options$boundary === void 0 ? clippingParents : _options$boundary, _options$rootBoundary = _options.rootBoundary, rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary, _options$elementConte = _options.elementContext, elementContext = _options$elementConte === void 0 ? popper : _options$elementConte, _options$altBoundary = _options.altBoundary, altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary, _options$padding = _options.padding, padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
24529
|
+
var paddingObject = mergePaddingObject(typeof padding !== "number" ? padding : expandToHashMap(padding, basePlacements));
|
|
24530
|
+
var altContext = elementContext === popper ? reference : popper;
|
|
24531
|
+
var popperRect = state2.rects.popper;
|
|
24532
|
+
var element = state2.elements[altBoundary ? altContext : elementContext];
|
|
24533
|
+
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state2.elements.popper), boundary, rootBoundary);
|
|
24534
|
+
var referenceClientRect = getBoundingClientRect(state2.elements.reference);
|
|
24535
|
+
var popperOffsets2 = computeOffsets({
|
|
24536
|
+
reference: referenceClientRect,
|
|
24537
|
+
element: popperRect,
|
|
24538
|
+
strategy: "absolute",
|
|
24539
|
+
placement
|
|
24540
|
+
});
|
|
24541
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets2));
|
|
24542
|
+
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect;
|
|
24543
|
+
var overflowOffsets = {
|
|
24544
|
+
top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
|
|
24545
|
+
bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
|
|
24546
|
+
left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
|
|
24547
|
+
right: elementClientRect.right - clippingClientRect.right + paddingObject.right
|
|
24548
|
+
};
|
|
24549
|
+
var offsetData = state2.modifiersData.offset;
|
|
24550
|
+
if (elementContext === popper && offsetData) {
|
|
24551
|
+
var offset2 = offsetData[placement];
|
|
24552
|
+
Object.keys(overflowOffsets).forEach(function(key) {
|
|
24553
|
+
var multiply3 = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
|
|
24554
|
+
var axis = [top, bottom].indexOf(key) >= 0 ? "y" : "x";
|
|
24555
|
+
overflowOffsets[key] += offset2[axis] * multiply3;
|
|
24556
|
+
});
|
|
24557
|
+
}
|
|
24558
|
+
return overflowOffsets;
|
|
24559
|
+
}
|
|
24560
|
+
function computeAutoPlacement(state2, options) {
|
|
24561
|
+
if (options === void 0) {
|
|
24562
|
+
options = {};
|
|
24563
|
+
}
|
|
24564
|
+
var _options = options, placement = _options.placement, boundary = _options.boundary, rootBoundary = _options.rootBoundary, padding = _options.padding, flipVariations = _options.flipVariations, _options$allowedAutoP = _options.allowedAutoPlacements, allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP;
|
|
24565
|
+
var variation = getVariation(placement);
|
|
24566
|
+
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function(placement2) {
|
|
24567
|
+
return getVariation(placement2) === variation;
|
|
24568
|
+
}) : basePlacements;
|
|
24569
|
+
var allowedPlacements = placements$1.filter(function(placement2) {
|
|
24570
|
+
return allowedAutoPlacements.indexOf(placement2) >= 0;
|
|
24571
|
+
});
|
|
24572
|
+
if (allowedPlacements.length === 0) {
|
|
24573
|
+
allowedPlacements = placements$1;
|
|
24574
|
+
}
|
|
24575
|
+
var overflows = allowedPlacements.reduce(function(acc, placement2) {
|
|
24576
|
+
acc[placement2] = detectOverflow(state2, {
|
|
24577
|
+
placement: placement2,
|
|
24578
|
+
boundary,
|
|
24579
|
+
rootBoundary,
|
|
24580
|
+
padding
|
|
24581
|
+
})[getBasePlacement(placement2)];
|
|
24582
|
+
return acc;
|
|
24583
|
+
}, {});
|
|
24584
|
+
return Object.keys(overflows).sort(function(a2, b2) {
|
|
24585
|
+
return overflows[a2] - overflows[b2];
|
|
24586
|
+
});
|
|
24587
|
+
}
|
|
24588
|
+
function getExpandedFallbackPlacements(placement) {
|
|
24589
|
+
if (getBasePlacement(placement) === auto) {
|
|
24590
|
+
return [];
|
|
24591
|
+
}
|
|
24592
|
+
var oppositePlacement = getOppositePlacement(placement);
|
|
24593
|
+
return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
|
|
24594
|
+
}
|
|
24595
|
+
function flip(_ref2) {
|
|
24596
|
+
var state2 = _ref2.state, options = _ref2.options, name = _ref2.name;
|
|
24597
|
+
if (state2.modifiersData[name]._skip) {
|
|
24598
|
+
return;
|
|
24599
|
+
}
|
|
24600
|
+
var _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis, specifiedFallbackPlacements = options.fallbackPlacements, padding = options.padding, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, _options$flipVariatio = options.flipVariations, flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio, allowedAutoPlacements = options.allowedAutoPlacements;
|
|
24601
|
+
var preferredPlacement = state2.options.placement;
|
|
24602
|
+
var basePlacement = getBasePlacement(preferredPlacement);
|
|
24603
|
+
var isBasePlacement = basePlacement === preferredPlacement;
|
|
24604
|
+
var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
|
|
24605
|
+
var placements2 = [preferredPlacement].concat(fallbackPlacements).reduce(function(acc, placement2) {
|
|
24606
|
+
return acc.concat(getBasePlacement(placement2) === auto ? computeAutoPlacement(state2, {
|
|
24607
|
+
placement: placement2,
|
|
24608
|
+
boundary,
|
|
24609
|
+
rootBoundary,
|
|
24610
|
+
padding,
|
|
24611
|
+
flipVariations,
|
|
24612
|
+
allowedAutoPlacements
|
|
24613
|
+
}) : placement2);
|
|
24614
|
+
}, []);
|
|
24615
|
+
var referenceRect = state2.rects.reference;
|
|
24616
|
+
var popperRect = state2.rects.popper;
|
|
24617
|
+
var checksMap = /* @__PURE__ */ new Map();
|
|
24618
|
+
var makeFallbackChecks = true;
|
|
24619
|
+
var firstFittingPlacement = placements2[0];
|
|
24620
|
+
for (var i = 0; i < placements2.length; i++) {
|
|
24621
|
+
var placement = placements2[i];
|
|
24622
|
+
var _basePlacement = getBasePlacement(placement);
|
|
24623
|
+
var isStartVariation = getVariation(placement) === start;
|
|
24624
|
+
var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
|
|
24625
|
+
var len = isVertical ? "width" : "height";
|
|
24626
|
+
var overflow = detectOverflow(state2, {
|
|
24627
|
+
placement,
|
|
24628
|
+
boundary,
|
|
24629
|
+
rootBoundary,
|
|
24630
|
+
altBoundary,
|
|
24631
|
+
padding
|
|
24632
|
+
});
|
|
24633
|
+
var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
|
|
24634
|
+
if (referenceRect[len] > popperRect[len]) {
|
|
24635
|
+
mainVariationSide = getOppositePlacement(mainVariationSide);
|
|
24636
|
+
}
|
|
24637
|
+
var altVariationSide = getOppositePlacement(mainVariationSide);
|
|
24638
|
+
var checks = [];
|
|
24639
|
+
if (checkMainAxis) {
|
|
24640
|
+
checks.push(overflow[_basePlacement] <= 0);
|
|
24641
|
+
}
|
|
24642
|
+
if (checkAltAxis) {
|
|
24643
|
+
checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
|
|
24644
|
+
}
|
|
24645
|
+
if (checks.every(function(check) {
|
|
24646
|
+
return check;
|
|
24647
|
+
})) {
|
|
24648
|
+
firstFittingPlacement = placement;
|
|
24649
|
+
makeFallbackChecks = false;
|
|
24650
|
+
break;
|
|
24651
|
+
}
|
|
24652
|
+
checksMap.set(placement, checks);
|
|
24653
|
+
}
|
|
24654
|
+
if (makeFallbackChecks) {
|
|
24655
|
+
var numberOfChecks = flipVariations ? 3 : 1;
|
|
24656
|
+
var _loop = function _loop2(_i2) {
|
|
24657
|
+
var fittingPlacement = placements2.find(function(placement2) {
|
|
24658
|
+
var checks2 = checksMap.get(placement2);
|
|
24659
|
+
if (checks2) {
|
|
24660
|
+
return checks2.slice(0, _i2).every(function(check) {
|
|
24661
|
+
return check;
|
|
24662
|
+
});
|
|
24663
|
+
}
|
|
24664
|
+
});
|
|
24665
|
+
if (fittingPlacement) {
|
|
24666
|
+
firstFittingPlacement = fittingPlacement;
|
|
24667
|
+
return "break";
|
|
24668
|
+
}
|
|
24669
|
+
};
|
|
24670
|
+
for (var _i = numberOfChecks; _i > 0; _i--) {
|
|
24671
|
+
var _ret = _loop(_i);
|
|
24672
|
+
if (_ret === "break")
|
|
24673
|
+
break;
|
|
24674
|
+
}
|
|
24675
|
+
}
|
|
24676
|
+
if (state2.placement !== firstFittingPlacement) {
|
|
24677
|
+
state2.modifiersData[name]._skip = true;
|
|
24678
|
+
state2.placement = firstFittingPlacement;
|
|
24679
|
+
state2.reset = true;
|
|
24680
|
+
}
|
|
24681
|
+
}
|
|
24682
|
+
var flip$1 = {
|
|
24683
|
+
name: "flip",
|
|
24684
|
+
enabled: true,
|
|
24685
|
+
phase: "main",
|
|
24686
|
+
fn: flip,
|
|
24687
|
+
requiresIfExists: ["offset"],
|
|
24688
|
+
data: {
|
|
24689
|
+
_skip: false
|
|
24690
|
+
}
|
|
24691
|
+
};
|
|
24692
|
+
function getSideOffsets(overflow, rect, preventedOffsets) {
|
|
24693
|
+
if (preventedOffsets === void 0) {
|
|
24694
|
+
preventedOffsets = {
|
|
24695
|
+
x: 0,
|
|
24696
|
+
y: 0
|
|
24697
|
+
};
|
|
24698
|
+
}
|
|
24699
|
+
return {
|
|
24700
|
+
top: overflow.top - rect.height - preventedOffsets.y,
|
|
24701
|
+
right: overflow.right - rect.width + preventedOffsets.x,
|
|
24702
|
+
bottom: overflow.bottom - rect.height + preventedOffsets.y,
|
|
24703
|
+
left: overflow.left - rect.width - preventedOffsets.x
|
|
24704
|
+
};
|
|
24705
|
+
}
|
|
24706
|
+
function isAnySideFullyClipped(overflow) {
|
|
24707
|
+
return [top, right, bottom, left].some(function(side) {
|
|
24708
|
+
return overflow[side] >= 0;
|
|
24709
|
+
});
|
|
24710
|
+
}
|
|
24711
|
+
function hide(_ref2) {
|
|
24712
|
+
var state2 = _ref2.state, name = _ref2.name;
|
|
24713
|
+
var referenceRect = state2.rects.reference;
|
|
24714
|
+
var popperRect = state2.rects.popper;
|
|
24715
|
+
var preventedOffsets = state2.modifiersData.preventOverflow;
|
|
24716
|
+
var referenceOverflow = detectOverflow(state2, {
|
|
24717
|
+
elementContext: "reference"
|
|
24718
|
+
});
|
|
24719
|
+
var popperAltOverflow = detectOverflow(state2, {
|
|
24720
|
+
altBoundary: true
|
|
24721
|
+
});
|
|
24722
|
+
var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
|
|
24723
|
+
var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
|
|
24724
|
+
var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
|
|
24725
|
+
var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
|
|
24726
|
+
state2.modifiersData[name] = {
|
|
24727
|
+
referenceClippingOffsets,
|
|
24728
|
+
popperEscapeOffsets,
|
|
24729
|
+
isReferenceHidden,
|
|
24730
|
+
hasPopperEscaped
|
|
24731
|
+
};
|
|
24732
|
+
state2.attributes.popper = Object.assign({}, state2.attributes.popper, {
|
|
24733
|
+
"data-popper-reference-hidden": isReferenceHidden,
|
|
24734
|
+
"data-popper-escaped": hasPopperEscaped
|
|
24735
|
+
});
|
|
24736
|
+
}
|
|
24737
|
+
var hide$1 = {
|
|
24738
|
+
name: "hide",
|
|
24739
|
+
enabled: true,
|
|
24740
|
+
phase: "main",
|
|
24741
|
+
requiresIfExists: ["preventOverflow"],
|
|
24742
|
+
fn: hide
|
|
24743
|
+
};
|
|
24744
|
+
function distanceAndSkiddingToXY(placement, rects, offset2) {
|
|
24745
|
+
var basePlacement = getBasePlacement(placement);
|
|
24746
|
+
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
24747
|
+
var _ref2 = typeof offset2 === "function" ? offset2(Object.assign({}, rects, {
|
|
24748
|
+
placement
|
|
24749
|
+
})) : offset2, skidding = _ref2[0], distance2 = _ref2[1];
|
|
24750
|
+
skidding = skidding || 0;
|
|
24751
|
+
distance2 = (distance2 || 0) * invertDistance;
|
|
24752
|
+
return [left, right].indexOf(basePlacement) >= 0 ? {
|
|
24753
|
+
x: distance2,
|
|
24754
|
+
y: skidding
|
|
24755
|
+
} : {
|
|
24756
|
+
x: skidding,
|
|
24757
|
+
y: distance2
|
|
24758
|
+
};
|
|
24759
|
+
}
|
|
24760
|
+
function offset(_ref2) {
|
|
24761
|
+
var state2 = _ref2.state, options = _ref2.options, name = _ref2.name;
|
|
24762
|
+
var _options$offset = options.offset, offset2 = _options$offset === void 0 ? [0, 0] : _options$offset;
|
|
24763
|
+
var data = placements.reduce(function(acc, placement) {
|
|
24764
|
+
acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
|
|
24765
|
+
return acc;
|
|
24766
|
+
}, {});
|
|
24767
|
+
var _data$state$placement = data[state2.placement], x2 = _data$state$placement.x, y2 = _data$state$placement.y;
|
|
24768
|
+
if (state2.modifiersData.popperOffsets != null) {
|
|
24769
|
+
state2.modifiersData.popperOffsets.x += x2;
|
|
24770
|
+
state2.modifiersData.popperOffsets.y += y2;
|
|
24771
|
+
}
|
|
24772
|
+
state2.modifiersData[name] = data;
|
|
24773
|
+
}
|
|
24774
|
+
var offset$1 = {
|
|
24775
|
+
name: "offset",
|
|
24776
|
+
enabled: true,
|
|
24777
|
+
phase: "main",
|
|
24778
|
+
requires: ["popperOffsets"],
|
|
24779
|
+
fn: offset
|
|
24780
|
+
};
|
|
24781
|
+
function popperOffsets(_ref2) {
|
|
24782
|
+
var state2 = _ref2.state, name = _ref2.name;
|
|
24783
|
+
state2.modifiersData[name] = computeOffsets({
|
|
24784
|
+
reference: state2.rects.reference,
|
|
24785
|
+
element: state2.rects.popper,
|
|
24786
|
+
strategy: "absolute",
|
|
24787
|
+
placement: state2.placement
|
|
24788
|
+
});
|
|
24789
|
+
}
|
|
24790
|
+
var popperOffsets$1 = {
|
|
24791
|
+
name: "popperOffsets",
|
|
24792
|
+
enabled: true,
|
|
24793
|
+
phase: "read",
|
|
24794
|
+
fn: popperOffsets,
|
|
24795
|
+
data: {}
|
|
24796
|
+
};
|
|
24797
|
+
function getAltAxis(axis) {
|
|
24798
|
+
return axis === "x" ? "y" : "x";
|
|
24799
|
+
}
|
|
24800
|
+
function preventOverflow(_ref2) {
|
|
24801
|
+
var state2 = _ref2.state, options = _ref2.options, name = _ref2.name;
|
|
24802
|
+
var _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, padding = options.padding, _options$tether = options.tether, tether = _options$tether === void 0 ? true : _options$tether, _options$tetherOffset = options.tetherOffset, tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
|
|
24803
|
+
var overflow = detectOverflow(state2, {
|
|
24804
|
+
boundary,
|
|
24805
|
+
rootBoundary,
|
|
24806
|
+
padding,
|
|
24807
|
+
altBoundary
|
|
24808
|
+
});
|
|
24809
|
+
var basePlacement = getBasePlacement(state2.placement);
|
|
24810
|
+
var variation = getVariation(state2.placement);
|
|
24811
|
+
var isBasePlacement = !variation;
|
|
24812
|
+
var mainAxis = getMainAxisFromPlacement(basePlacement);
|
|
24813
|
+
var altAxis = getAltAxis(mainAxis);
|
|
24814
|
+
var popperOffsets2 = state2.modifiersData.popperOffsets;
|
|
24815
|
+
var referenceRect = state2.rects.reference;
|
|
24816
|
+
var popperRect = state2.rects.popper;
|
|
24817
|
+
var tetherOffsetValue = typeof tetherOffset === "function" ? tetherOffset(Object.assign({}, state2.rects, {
|
|
24818
|
+
placement: state2.placement
|
|
24819
|
+
})) : tetherOffset;
|
|
24820
|
+
var data = {
|
|
24821
|
+
x: 0,
|
|
24822
|
+
y: 0
|
|
24823
|
+
};
|
|
24824
|
+
if (!popperOffsets2) {
|
|
24825
|
+
return;
|
|
24826
|
+
}
|
|
24827
|
+
if (checkMainAxis || checkAltAxis) {
|
|
24828
|
+
var mainSide = mainAxis === "y" ? top : left;
|
|
24829
|
+
var altSide = mainAxis === "y" ? bottom : right;
|
|
24830
|
+
var len = mainAxis === "y" ? "height" : "width";
|
|
24831
|
+
var offset2 = popperOffsets2[mainAxis];
|
|
24832
|
+
var min$1 = popperOffsets2[mainAxis] + overflow[mainSide];
|
|
24833
|
+
var max$1 = popperOffsets2[mainAxis] - overflow[altSide];
|
|
24834
|
+
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
24835
|
+
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
24836
|
+
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len];
|
|
24837
|
+
var arrowElement = state2.elements.arrow;
|
|
24838
|
+
var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
|
|
24839
|
+
width: 0,
|
|
24840
|
+
height: 0
|
|
24841
|
+
};
|
|
24842
|
+
var arrowPaddingObject = state2.modifiersData["arrow#persistent"] ? state2.modifiersData["arrow#persistent"].padding : getFreshSideObject();
|
|
24843
|
+
var arrowPaddingMin = arrowPaddingObject[mainSide];
|
|
24844
|
+
var arrowPaddingMax = arrowPaddingObject[altSide];
|
|
24845
|
+
var arrowLen = within(0, referenceRect[len], arrowRect[len]);
|
|
24846
|
+
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
|
|
24847
|
+
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
|
|
24848
|
+
var arrowOffsetParent = state2.elements.arrow && getOffsetParent(state2.elements.arrow);
|
|
24849
|
+
var clientOffset = arrowOffsetParent ? mainAxis === "y" ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
|
24850
|
+
var offsetModifierValue = state2.modifiersData.offset ? state2.modifiersData.offset[state2.placement][mainAxis] : 0;
|
|
24851
|
+
var tetherMin = popperOffsets2[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
24852
|
+
var tetherMax = popperOffsets2[mainAxis] + maxOffset - offsetModifierValue;
|
|
24853
|
+
if (checkMainAxis) {
|
|
24854
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset2, tether ? max(max$1, tetherMax) : max$1);
|
|
24855
|
+
popperOffsets2[mainAxis] = preventedOffset;
|
|
24856
|
+
data[mainAxis] = preventedOffset - offset2;
|
|
24857
|
+
}
|
|
24858
|
+
if (checkAltAxis) {
|
|
24859
|
+
var _mainSide = mainAxis === "x" ? top : left;
|
|
24860
|
+
var _altSide = mainAxis === "x" ? bottom : right;
|
|
24861
|
+
var _offset = popperOffsets2[altAxis];
|
|
24862
|
+
var _min = _offset + overflow[_mainSide];
|
|
24863
|
+
var _max = _offset - overflow[_altSide];
|
|
24864
|
+
var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
|
|
24865
|
+
popperOffsets2[altAxis] = _preventedOffset;
|
|
24866
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
24867
|
+
}
|
|
24868
|
+
}
|
|
24869
|
+
state2.modifiersData[name] = data;
|
|
24870
|
+
}
|
|
24871
|
+
var preventOverflow$1 = {
|
|
24872
|
+
name: "preventOverflow",
|
|
24873
|
+
enabled: true,
|
|
24874
|
+
phase: "main",
|
|
24875
|
+
fn: preventOverflow,
|
|
24876
|
+
requiresIfExists: ["offset"]
|
|
24877
|
+
};
|
|
24878
|
+
function getHTMLElementScroll(element) {
|
|
24879
|
+
return {
|
|
24880
|
+
scrollLeft: element.scrollLeft,
|
|
24881
|
+
scrollTop: element.scrollTop
|
|
24882
|
+
};
|
|
24883
|
+
}
|
|
24884
|
+
function getNodeScroll(node2) {
|
|
24885
|
+
if (node2 === getWindow(node2) || !isHTMLElement(node2)) {
|
|
24886
|
+
return getWindowScroll(node2);
|
|
24887
|
+
} else {
|
|
24888
|
+
return getHTMLElementScroll(node2);
|
|
24889
|
+
}
|
|
24890
|
+
}
|
|
24891
|
+
function isElementScaled(element) {
|
|
24892
|
+
var rect = element.getBoundingClientRect();
|
|
24893
|
+
var scaleX = rect.width / element.offsetWidth || 1;
|
|
24894
|
+
var scaleY = rect.height / element.offsetHeight || 1;
|
|
24895
|
+
return scaleX !== 1 || scaleY !== 1;
|
|
24896
|
+
}
|
|
24897
|
+
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
24898
|
+
if (isFixed === void 0) {
|
|
24899
|
+
isFixed = false;
|
|
24900
|
+
}
|
|
24901
|
+
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
24902
|
+
isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
24903
|
+
var documentElement = getDocumentElement(offsetParent);
|
|
24904
|
+
var rect = getBoundingClientRect(elementOrVirtualElement);
|
|
24905
|
+
var scroll2 = {
|
|
24906
|
+
scrollLeft: 0,
|
|
24907
|
+
scrollTop: 0
|
|
24908
|
+
};
|
|
24909
|
+
var offsets = {
|
|
24910
|
+
x: 0,
|
|
24911
|
+
y: 0
|
|
24912
|
+
};
|
|
24913
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
24914
|
+
if (getNodeName(offsetParent) !== "body" || isScrollParent(documentElement)) {
|
|
24915
|
+
scroll2 = getNodeScroll(offsetParent);
|
|
24916
|
+
}
|
|
24917
|
+
if (isHTMLElement(offsetParent)) {
|
|
24918
|
+
offsets = getBoundingClientRect(offsetParent);
|
|
24919
|
+
offsets.x += offsetParent.clientLeft;
|
|
24920
|
+
offsets.y += offsetParent.clientTop;
|
|
24921
|
+
} else if (documentElement) {
|
|
24922
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
24923
|
+
}
|
|
24924
|
+
}
|
|
24925
|
+
return {
|
|
24926
|
+
x: rect.left + scroll2.scrollLeft - offsets.x,
|
|
24927
|
+
y: rect.top + scroll2.scrollTop - offsets.y,
|
|
24928
|
+
width: rect.width,
|
|
24929
|
+
height: rect.height
|
|
24930
|
+
};
|
|
24931
|
+
}
|
|
24932
|
+
function order(modifiers) {
|
|
24933
|
+
var map = /* @__PURE__ */ new Map();
|
|
24934
|
+
var visited = /* @__PURE__ */ new Set();
|
|
24935
|
+
var result = [];
|
|
24936
|
+
modifiers.forEach(function(modifier) {
|
|
24937
|
+
map.set(modifier.name, modifier);
|
|
24938
|
+
});
|
|
24939
|
+
function sort(modifier) {
|
|
24940
|
+
visited.add(modifier.name);
|
|
24941
|
+
var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
|
|
24942
|
+
requires.forEach(function(dep) {
|
|
24943
|
+
if (!visited.has(dep)) {
|
|
24944
|
+
var depModifier = map.get(dep);
|
|
24945
|
+
if (depModifier) {
|
|
24946
|
+
sort(depModifier);
|
|
24947
|
+
}
|
|
24948
|
+
}
|
|
24949
|
+
});
|
|
24950
|
+
result.push(modifier);
|
|
24951
|
+
}
|
|
24952
|
+
modifiers.forEach(function(modifier) {
|
|
24953
|
+
if (!visited.has(modifier.name)) {
|
|
24954
|
+
sort(modifier);
|
|
24955
|
+
}
|
|
24956
|
+
});
|
|
24957
|
+
return result;
|
|
24958
|
+
}
|
|
24959
|
+
function orderModifiers(modifiers) {
|
|
24960
|
+
var orderedModifiers = order(modifiers);
|
|
24961
|
+
return modifierPhases.reduce(function(acc, phase) {
|
|
24962
|
+
return acc.concat(orderedModifiers.filter(function(modifier) {
|
|
24963
|
+
return modifier.phase === phase;
|
|
24964
|
+
}));
|
|
24965
|
+
}, []);
|
|
24966
|
+
}
|
|
24967
|
+
function debounce(fn6) {
|
|
24968
|
+
var pending;
|
|
24969
|
+
return function() {
|
|
24970
|
+
if (!pending) {
|
|
24971
|
+
pending = new Promise(function(resolve) {
|
|
24972
|
+
Promise.resolve().then(function() {
|
|
24973
|
+
pending = void 0;
|
|
24974
|
+
resolve(fn6());
|
|
24975
|
+
});
|
|
24976
|
+
});
|
|
24977
|
+
}
|
|
24978
|
+
return pending;
|
|
24979
|
+
};
|
|
24980
|
+
}
|
|
24981
|
+
function mergeByName(modifiers) {
|
|
24982
|
+
var merged = modifiers.reduce(function(merged2, current) {
|
|
24983
|
+
var existing = merged2[current.name];
|
|
24984
|
+
merged2[current.name] = existing ? Object.assign({}, existing, current, {
|
|
24985
|
+
options: Object.assign({}, existing.options, current.options),
|
|
24986
|
+
data: Object.assign({}, existing.data, current.data)
|
|
24987
|
+
}) : current;
|
|
24988
|
+
return merged2;
|
|
24989
|
+
}, {});
|
|
24990
|
+
return Object.keys(merged).map(function(key) {
|
|
24991
|
+
return merged[key];
|
|
24992
|
+
});
|
|
24993
|
+
}
|
|
24994
|
+
var DEFAULT_OPTIONS = {
|
|
24995
|
+
placement: "bottom",
|
|
24996
|
+
modifiers: [],
|
|
24997
|
+
strategy: "absolute"
|
|
24998
|
+
};
|
|
24999
|
+
function areValidElements() {
|
|
25000
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
25001
|
+
args[_key] = arguments[_key];
|
|
25002
|
+
}
|
|
25003
|
+
return !args.some(function(element) {
|
|
25004
|
+
return !(element && typeof element.getBoundingClientRect === "function");
|
|
25005
|
+
});
|
|
25006
|
+
}
|
|
25007
|
+
function popperGenerator(generatorOptions) {
|
|
25008
|
+
if (generatorOptions === void 0) {
|
|
25009
|
+
generatorOptions = {};
|
|
25010
|
+
}
|
|
25011
|
+
var _generatorOptions = generatorOptions, _generatorOptions$def = _generatorOptions.defaultModifiers, defaultModifiers2 = _generatorOptions$def === void 0 ? [] : _generatorOptions$def, _generatorOptions$def2 = _generatorOptions.defaultOptions, defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
|
|
25012
|
+
return function createPopper2(reference2, popper2, options) {
|
|
25013
|
+
if (options === void 0) {
|
|
25014
|
+
options = defaultOptions;
|
|
25015
|
+
}
|
|
25016
|
+
var state2 = {
|
|
25017
|
+
placement: "bottom",
|
|
25018
|
+
orderedModifiers: [],
|
|
25019
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
25020
|
+
modifiersData: {},
|
|
25021
|
+
elements: {
|
|
25022
|
+
reference: reference2,
|
|
25023
|
+
popper: popper2
|
|
25024
|
+
},
|
|
25025
|
+
attributes: {},
|
|
25026
|
+
styles: {}
|
|
25027
|
+
};
|
|
25028
|
+
var effectCleanupFns = [];
|
|
25029
|
+
var isDestroyed = false;
|
|
25030
|
+
var instance = {
|
|
25031
|
+
state: state2,
|
|
25032
|
+
setOptions: function setOptions(setOptionsAction) {
|
|
25033
|
+
var options2 = typeof setOptionsAction === "function" ? setOptionsAction(state2.options) : setOptionsAction;
|
|
25034
|
+
cleanupModifierEffects();
|
|
25035
|
+
state2.options = Object.assign({}, defaultOptions, state2.options, options2);
|
|
25036
|
+
state2.scrollParents = {
|
|
25037
|
+
reference: isElement(reference2) ? listScrollParents(reference2) : reference2.contextElement ? listScrollParents(reference2.contextElement) : [],
|
|
25038
|
+
popper: listScrollParents(popper2)
|
|
25039
|
+
};
|
|
25040
|
+
var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers2, state2.options.modifiers)));
|
|
25041
|
+
state2.orderedModifiers = orderedModifiers.filter(function(m2) {
|
|
25042
|
+
return m2.enabled;
|
|
25043
|
+
});
|
|
25044
|
+
runModifierEffects();
|
|
25045
|
+
return instance.update();
|
|
25046
|
+
},
|
|
25047
|
+
forceUpdate: function forceUpdate() {
|
|
25048
|
+
if (isDestroyed) {
|
|
25049
|
+
return;
|
|
25050
|
+
}
|
|
25051
|
+
var _state$elements = state2.elements, reference3 = _state$elements.reference, popper3 = _state$elements.popper;
|
|
25052
|
+
if (!areValidElements(reference3, popper3)) {
|
|
25053
|
+
return;
|
|
25054
|
+
}
|
|
25055
|
+
state2.rects = {
|
|
25056
|
+
reference: getCompositeRect(reference3, getOffsetParent(popper3), state2.options.strategy === "fixed"),
|
|
25057
|
+
popper: getLayoutRect(popper3)
|
|
25058
|
+
};
|
|
25059
|
+
state2.reset = false;
|
|
25060
|
+
state2.placement = state2.options.placement;
|
|
25061
|
+
state2.orderedModifiers.forEach(function(modifier) {
|
|
25062
|
+
return state2.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
25063
|
+
});
|
|
25064
|
+
for (var index2 = 0; index2 < state2.orderedModifiers.length; index2++) {
|
|
25065
|
+
if (state2.reset === true) {
|
|
25066
|
+
state2.reset = false;
|
|
25067
|
+
index2 = -1;
|
|
25068
|
+
continue;
|
|
25069
|
+
}
|
|
25070
|
+
var _state$orderedModifie = state2.orderedModifiers[index2], fn6 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name;
|
|
25071
|
+
if (typeof fn6 === "function") {
|
|
25072
|
+
state2 = fn6({
|
|
25073
|
+
state: state2,
|
|
25074
|
+
options: _options,
|
|
25075
|
+
name,
|
|
25076
|
+
instance
|
|
25077
|
+
}) || state2;
|
|
25078
|
+
}
|
|
25079
|
+
}
|
|
25080
|
+
},
|
|
25081
|
+
update: debounce(function() {
|
|
25082
|
+
return new Promise(function(resolve) {
|
|
25083
|
+
instance.forceUpdate();
|
|
25084
|
+
resolve(state2);
|
|
25085
|
+
});
|
|
25086
|
+
}),
|
|
25087
|
+
destroy: function destroy() {
|
|
25088
|
+
cleanupModifierEffects();
|
|
25089
|
+
isDestroyed = true;
|
|
25090
|
+
}
|
|
25091
|
+
};
|
|
25092
|
+
if (!areValidElements(reference2, popper2)) {
|
|
25093
|
+
return instance;
|
|
25094
|
+
}
|
|
25095
|
+
instance.setOptions(options).then(function(state3) {
|
|
25096
|
+
if (!isDestroyed && options.onFirstUpdate) {
|
|
25097
|
+
options.onFirstUpdate(state3);
|
|
25098
|
+
}
|
|
25099
|
+
});
|
|
25100
|
+
function runModifierEffects() {
|
|
25101
|
+
state2.orderedModifiers.forEach(function(_ref3) {
|
|
25102
|
+
var name = _ref3.name, _ref3$options = _ref3.options, options2 = _ref3$options === void 0 ? {} : _ref3$options, effect5 = _ref3.effect;
|
|
25103
|
+
if (typeof effect5 === "function") {
|
|
25104
|
+
var cleanupFn = effect5({
|
|
25105
|
+
state: state2,
|
|
25106
|
+
name,
|
|
25107
|
+
instance,
|
|
25108
|
+
options: options2
|
|
25109
|
+
});
|
|
25110
|
+
var noopFn = function noopFn2() {
|
|
25111
|
+
};
|
|
25112
|
+
effectCleanupFns.push(cleanupFn || noopFn);
|
|
25113
|
+
}
|
|
25114
|
+
});
|
|
25115
|
+
}
|
|
25116
|
+
function cleanupModifierEffects() {
|
|
25117
|
+
effectCleanupFns.forEach(function(fn6) {
|
|
25118
|
+
return fn6();
|
|
25119
|
+
});
|
|
25120
|
+
effectCleanupFns = [];
|
|
25121
|
+
}
|
|
25122
|
+
return instance;
|
|
25123
|
+
};
|
|
25124
|
+
}
|
|
25125
|
+
var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
|
|
25126
|
+
var createPopper = /* @__PURE__ */ popperGenerator({
|
|
25127
|
+
defaultModifiers
|
|
25128
|
+
});
|
|
25129
|
+
function _objectWithoutPropertiesLoose$4(source, excluded) {
|
|
25130
|
+
if (source == null)
|
|
25131
|
+
return {};
|
|
25132
|
+
var target = {};
|
|
25133
|
+
var sourceKeys = Object.keys(source);
|
|
25134
|
+
var key, i;
|
|
25135
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
25136
|
+
key = sourceKeys[i];
|
|
25137
|
+
if (excluded.indexOf(key) >= 0)
|
|
25138
|
+
continue;
|
|
25139
|
+
target[key] = source[key];
|
|
25140
|
+
}
|
|
25141
|
+
return target;
|
|
25142
|
+
}
|
|
25143
|
+
function _extends$3() {
|
|
25144
|
+
_extends$3 = Object.assign || function(target) {
|
|
25145
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
25146
|
+
var source = arguments[i];
|
|
25147
|
+
for (var key in source) {
|
|
25148
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
25149
|
+
target[key] = source[key];
|
|
25150
|
+
}
|
|
25151
|
+
}
|
|
25152
|
+
}
|
|
25153
|
+
return target;
|
|
25154
|
+
};
|
|
25155
|
+
return _extends$3.apply(this, arguments);
|
|
25156
|
+
}
|
|
25157
|
+
var toVar = function toVar2(value, fallback) {
|
|
25158
|
+
return {
|
|
25159
|
+
"var": value,
|
|
25160
|
+
varRef: fallback ? "var(" + value + ", " + fallback + ")" : "var(" + value + ")"
|
|
25161
|
+
};
|
|
25162
|
+
};
|
|
25163
|
+
var cssVars = {
|
|
25164
|
+
arrowShadowColor: toVar("--popper-arrow-shadow-color"),
|
|
25165
|
+
arrowSize: toVar("--popper-arrow-size", "8px"),
|
|
25166
|
+
arrowSizeHalf: toVar("--popper-arrow-size-half"),
|
|
25167
|
+
arrowBg: toVar("--popper-arrow-bg"),
|
|
25168
|
+
transformOrigin: toVar("--popper-transform-origin"),
|
|
25169
|
+
arrowOffset: toVar("--popper-arrow-offset")
|
|
25170
|
+
};
|
|
25171
|
+
function getBoxShadow(placement) {
|
|
25172
|
+
if (placement.includes("top"))
|
|
25173
|
+
return "1px 1px 1px 0 var(--popper-arrow-shadow-color)";
|
|
25174
|
+
if (placement.includes("bottom"))
|
|
25175
|
+
return "-1px -1px 1px 0 var(--popper-arrow-shadow-color)";
|
|
25176
|
+
if (placement.includes("right"))
|
|
25177
|
+
return "-1px 1px 1px 0 var(--popper-arrow-shadow-color)";
|
|
25178
|
+
if (placement.includes("left"))
|
|
25179
|
+
return "1px -1px 1px 0 var(--popper-arrow-shadow-color)";
|
|
25180
|
+
}
|
|
25181
|
+
var transforms = {
|
|
25182
|
+
top: "bottom center",
|
|
25183
|
+
"top-start": "bottom left",
|
|
25184
|
+
"top-end": "bottom right",
|
|
25185
|
+
bottom: "top center",
|
|
25186
|
+
"bottom-start": "top left",
|
|
25187
|
+
"bottom-end": "top right",
|
|
25188
|
+
left: "right center",
|
|
25189
|
+
"left-start": "right top",
|
|
25190
|
+
"left-end": "right bottom",
|
|
25191
|
+
right: "left center",
|
|
25192
|
+
"right-start": "left top",
|
|
25193
|
+
"right-end": "left bottom"
|
|
25194
|
+
};
|
|
25195
|
+
var toTransformOrigin = function toTransformOrigin2(placement) {
|
|
25196
|
+
return transforms[placement];
|
|
25197
|
+
};
|
|
25198
|
+
var defaultEventListeners = {
|
|
25199
|
+
scroll: true,
|
|
25200
|
+
resize: true
|
|
25201
|
+
};
|
|
25202
|
+
function getEventListenerOptions(value) {
|
|
25203
|
+
var eventListeners2;
|
|
25204
|
+
if (typeof value === "object") {
|
|
25205
|
+
eventListeners2 = {
|
|
25206
|
+
enabled: true,
|
|
25207
|
+
options: _extends$3({}, defaultEventListeners, value)
|
|
25208
|
+
};
|
|
25209
|
+
} else {
|
|
25210
|
+
eventListeners2 = {
|
|
25211
|
+
enabled: value,
|
|
25212
|
+
options: defaultEventListeners
|
|
25213
|
+
};
|
|
25214
|
+
}
|
|
25215
|
+
return eventListeners2;
|
|
25216
|
+
}
|
|
25217
|
+
var matchWidth = {
|
|
25218
|
+
name: "matchWidth",
|
|
25219
|
+
enabled: true,
|
|
25220
|
+
phase: "beforeWrite",
|
|
25221
|
+
requires: ["computeStyles"],
|
|
25222
|
+
fn: function fn2(_ref2) {
|
|
25223
|
+
var state2 = _ref2.state;
|
|
25224
|
+
state2.styles.popper.width = state2.rects.reference.width + "px";
|
|
25225
|
+
},
|
|
25226
|
+
effect: function effect2(_ref2) {
|
|
25227
|
+
var state2 = _ref2.state;
|
|
25228
|
+
return function() {
|
|
25229
|
+
var reference2 = state2.elements.reference;
|
|
25230
|
+
state2.elements.popper.style.width = reference2.offsetWidth + "px";
|
|
25231
|
+
};
|
|
25232
|
+
}
|
|
25233
|
+
};
|
|
25234
|
+
var transformOrigin = {
|
|
25235
|
+
name: "transformOrigin",
|
|
25236
|
+
enabled: true,
|
|
25237
|
+
phase: "write",
|
|
25238
|
+
fn: function fn3(_ref3) {
|
|
25239
|
+
var state2 = _ref3.state;
|
|
25240
|
+
setTransformOrigin(state2);
|
|
25241
|
+
},
|
|
25242
|
+
effect: function effect3(_ref4) {
|
|
25243
|
+
var state2 = _ref4.state;
|
|
25244
|
+
return function() {
|
|
25245
|
+
setTransformOrigin(state2);
|
|
25246
|
+
};
|
|
25247
|
+
}
|
|
25248
|
+
};
|
|
25249
|
+
var setTransformOrigin = function setTransformOrigin2(state2) {
|
|
25250
|
+
state2.elements.popper.style.setProperty(cssVars.transformOrigin["var"], toTransformOrigin(state2.placement));
|
|
25251
|
+
};
|
|
25252
|
+
var positionArrow = {
|
|
25253
|
+
name: "positionArrow",
|
|
25254
|
+
enabled: true,
|
|
25255
|
+
phase: "afterWrite",
|
|
25256
|
+
fn: function fn4(_ref5) {
|
|
25257
|
+
var state2 = _ref5.state;
|
|
25258
|
+
setArrowStyles(state2);
|
|
25259
|
+
}
|
|
25260
|
+
};
|
|
25261
|
+
var setArrowStyles = function setArrowStyles2(state2) {
|
|
25262
|
+
var _state$elements;
|
|
25263
|
+
if (!state2.placement)
|
|
25264
|
+
return;
|
|
25265
|
+
var overrides = getArrowStyle$1(state2.placement);
|
|
25266
|
+
if ((_state$elements = state2.elements) != null && _state$elements.arrow && overrides) {
|
|
25267
|
+
var _Object$assign, _vars;
|
|
25268
|
+
Object.assign(state2.elements.arrow.style, (_Object$assign = {}, _Object$assign[overrides.property] = overrides.value, _Object$assign.width = cssVars.arrowSize.varRef, _Object$assign.height = cssVars.arrowSize.varRef, _Object$assign.zIndex = -1, _Object$assign));
|
|
25269
|
+
var vars2 = (_vars = {}, _vars[cssVars.arrowSizeHalf["var"]] = "calc(" + cssVars.arrowSize.varRef + " / 2)", _vars[cssVars.arrowOffset["var"]] = "calc(" + cssVars.arrowSizeHalf.varRef + " * -1)", _vars);
|
|
25270
|
+
for (var property in vars2) {
|
|
25271
|
+
state2.elements.arrow.style.setProperty(property, vars2[property]);
|
|
25272
|
+
}
|
|
25273
|
+
}
|
|
25274
|
+
};
|
|
25275
|
+
var getArrowStyle$1 = function getArrowStyle(placement) {
|
|
25276
|
+
if (placement.startsWith("top")) {
|
|
25277
|
+
return {
|
|
25278
|
+
property: "bottom",
|
|
25279
|
+
value: cssVars.arrowOffset.varRef
|
|
25280
|
+
};
|
|
25281
|
+
}
|
|
25282
|
+
if (placement.startsWith("bottom")) {
|
|
25283
|
+
return {
|
|
25284
|
+
property: "top",
|
|
25285
|
+
value: cssVars.arrowOffset.varRef
|
|
25286
|
+
};
|
|
25287
|
+
}
|
|
25288
|
+
if (placement.startsWith("left")) {
|
|
25289
|
+
return {
|
|
25290
|
+
property: "right",
|
|
25291
|
+
value: cssVars.arrowOffset.varRef
|
|
25292
|
+
};
|
|
25293
|
+
}
|
|
25294
|
+
if (placement.startsWith("right")) {
|
|
25295
|
+
return {
|
|
25296
|
+
property: "left",
|
|
25297
|
+
value: cssVars.arrowOffset.varRef
|
|
25298
|
+
};
|
|
25299
|
+
}
|
|
25300
|
+
};
|
|
25301
|
+
var innerArrow = {
|
|
25302
|
+
name: "innerArrow",
|
|
25303
|
+
enabled: true,
|
|
25304
|
+
phase: "main",
|
|
25305
|
+
requires: ["arrow"],
|
|
25306
|
+
fn: function fn5(_ref6) {
|
|
25307
|
+
var state2 = _ref6.state;
|
|
25308
|
+
setInnerArrowStyles(state2);
|
|
25309
|
+
},
|
|
25310
|
+
effect: function effect4(_ref7) {
|
|
25311
|
+
var state2 = _ref7.state;
|
|
25312
|
+
return function() {
|
|
25313
|
+
setInnerArrowStyles(state2);
|
|
25314
|
+
};
|
|
25315
|
+
}
|
|
25316
|
+
};
|
|
25317
|
+
var setInnerArrowStyles = function setInnerArrowStyles2(state2) {
|
|
25318
|
+
if (!state2.elements.arrow)
|
|
25319
|
+
return;
|
|
25320
|
+
var inner = state2.elements.arrow.querySelector("[data-popper-arrow-inner]");
|
|
25321
|
+
if (!inner)
|
|
25322
|
+
return;
|
|
25323
|
+
Object.assign(inner.style, {
|
|
25324
|
+
transform: "rotate(45deg)",
|
|
25325
|
+
background: cssVars.arrowBg.varRef,
|
|
25326
|
+
top: 0,
|
|
25327
|
+
left: 0,
|
|
25328
|
+
width: "100%",
|
|
25329
|
+
height: "100%",
|
|
25330
|
+
position: "absolute",
|
|
25331
|
+
zIndex: "inherit",
|
|
25332
|
+
boxShadow: getBoxShadow(state2.placement)
|
|
25333
|
+
});
|
|
25334
|
+
};
|
|
25335
|
+
var logicals = {
|
|
25336
|
+
"start-start": {
|
|
25337
|
+
ltr: "left-start",
|
|
25338
|
+
rtl: "right-start"
|
|
25339
|
+
},
|
|
25340
|
+
"start-end": {
|
|
25341
|
+
ltr: "left-end",
|
|
25342
|
+
rtl: "right-end"
|
|
25343
|
+
},
|
|
25344
|
+
"end-start": {
|
|
25345
|
+
ltr: "right-start",
|
|
25346
|
+
rtl: "left-start"
|
|
25347
|
+
},
|
|
25348
|
+
"end-end": {
|
|
25349
|
+
ltr: "right-end",
|
|
25350
|
+
rtl: "left-end"
|
|
25351
|
+
},
|
|
25352
|
+
start: {
|
|
25353
|
+
ltr: "left",
|
|
25354
|
+
rtl: "right"
|
|
25355
|
+
},
|
|
25356
|
+
end: {
|
|
25357
|
+
ltr: "right",
|
|
25358
|
+
rtl: "left"
|
|
25359
|
+
}
|
|
25360
|
+
};
|
|
25361
|
+
var opposites = {
|
|
25362
|
+
"auto-start": "auto-end",
|
|
25363
|
+
"auto-end": "auto-start",
|
|
25364
|
+
"top-start": "top-end",
|
|
25365
|
+
"top-end": "top-start",
|
|
25366
|
+
"bottom-start": "bottom-end",
|
|
25367
|
+
"bottom-end": "bottom-start"
|
|
25368
|
+
};
|
|
25369
|
+
function getPopperPlacement(placement, dir) {
|
|
25370
|
+
var _logicals$placement, _opposites$placement;
|
|
25371
|
+
if (dir === void 0) {
|
|
25372
|
+
dir = "ltr";
|
|
25373
|
+
}
|
|
25374
|
+
var value = ((_logicals$placement = logicals[placement]) == null ? void 0 : _logicals$placement[dir]) || placement;
|
|
25375
|
+
if (dir === "ltr")
|
|
25376
|
+
return value;
|
|
25377
|
+
return (_opposites$placement = opposites[placement]) != null ? _opposites$placement : value;
|
|
25378
|
+
}
|
|
25379
|
+
var _excluded$4 = ["size", "shadowColor", "bg", "style"];
|
|
25380
|
+
function usePopper(props) {
|
|
25381
|
+
if (props === void 0) {
|
|
25382
|
+
props = {};
|
|
25383
|
+
}
|
|
25384
|
+
var _props = props, _props$enabled = _props.enabled, enabled = _props$enabled === void 0 ? true : _props$enabled, modifiers = _props.modifiers, _props$placement = _props.placement, placementProp = _props$placement === void 0 ? "bottom" : _props$placement, _props$strategy = _props.strategy, strategy = _props$strategy === void 0 ? "absolute" : _props$strategy, _props$arrowPadding = _props.arrowPadding, arrowPadding = _props$arrowPadding === void 0 ? 8 : _props$arrowPadding, _props$eventListeners = _props.eventListeners, eventListeners2 = _props$eventListeners === void 0 ? true : _props$eventListeners, offset2 = _props.offset, _props$gutter = _props.gutter, gutter = _props$gutter === void 0 ? 8 : _props$gutter, _props$flip = _props.flip, flip2 = _props$flip === void 0 ? true : _props$flip, _props$boundary = _props.boundary, boundary = _props$boundary === void 0 ? "clippingParents" : _props$boundary, _props$preventOverflo = _props.preventOverflow, preventOverflow2 = _props$preventOverflo === void 0 ? true : _props$preventOverflo, matchWidth$1 = _props.matchWidth, _props$direction = _props.direction, direction2 = _props$direction === void 0 ? "ltr" : _props$direction;
|
|
25385
|
+
var reference2 = useRef(null);
|
|
25386
|
+
var popper2 = useRef(null);
|
|
25387
|
+
var instance = useRef(null);
|
|
25388
|
+
var placement = getPopperPlacement(placementProp, direction2);
|
|
25389
|
+
var cleanup = useRef(function() {
|
|
25390
|
+
});
|
|
25391
|
+
var setupPopper = useCallback(function() {
|
|
25392
|
+
if (!enabled || !reference2.current || !popper2.current)
|
|
25393
|
+
return;
|
|
25394
|
+
cleanup.current == null ? void 0 : cleanup.current();
|
|
25395
|
+
instance.current = createPopper(reference2.current, popper2.current, {
|
|
25396
|
+
placement,
|
|
25397
|
+
modifiers: [innerArrow, positionArrow, transformOrigin, _extends$3({}, matchWidth, {
|
|
25398
|
+
enabled: !!matchWidth$1
|
|
25399
|
+
}), _extends$3({
|
|
25400
|
+
name: "eventListeners"
|
|
25401
|
+
}, getEventListenerOptions(eventListeners2)), {
|
|
25402
|
+
name: "arrow",
|
|
25403
|
+
options: {
|
|
25404
|
+
padding: arrowPadding
|
|
25405
|
+
}
|
|
25406
|
+
}, {
|
|
25407
|
+
name: "offset",
|
|
25408
|
+
options: {
|
|
25409
|
+
offset: offset2 != null ? offset2 : [0, gutter]
|
|
25410
|
+
}
|
|
25411
|
+
}, {
|
|
25412
|
+
name: "flip",
|
|
25413
|
+
enabled: !!flip2,
|
|
25414
|
+
options: {
|
|
25415
|
+
padding: 8
|
|
25416
|
+
}
|
|
25417
|
+
}, {
|
|
25418
|
+
name: "preventOverflow",
|
|
25419
|
+
enabled: !!preventOverflow2,
|
|
25420
|
+
options: {
|
|
25421
|
+
boundary
|
|
25422
|
+
}
|
|
25423
|
+
}].concat(modifiers != null ? modifiers : []),
|
|
25424
|
+
strategy
|
|
25425
|
+
});
|
|
25426
|
+
instance.current.forceUpdate();
|
|
25427
|
+
cleanup.current = instance.current.destroy;
|
|
25428
|
+
}, [placement, enabled, modifiers, matchWidth$1, eventListeners2, arrowPadding, offset2, gutter, flip2, preventOverflow2, boundary, strategy]);
|
|
25429
|
+
useEffect(function() {
|
|
25430
|
+
return function() {
|
|
25431
|
+
if (!reference2.current && !popper2.current) {
|
|
25432
|
+
var _instance$current;
|
|
25433
|
+
(_instance$current = instance.current) == null ? void 0 : _instance$current.destroy();
|
|
25434
|
+
instance.current = null;
|
|
25435
|
+
}
|
|
25436
|
+
};
|
|
25437
|
+
}, []);
|
|
25438
|
+
var referenceRef = useCallback(function(node2) {
|
|
25439
|
+
reference2.current = node2;
|
|
25440
|
+
setupPopper();
|
|
25441
|
+
}, [setupPopper]);
|
|
25442
|
+
var getReferenceProps = useCallback(function(props2, ref) {
|
|
25443
|
+
if (props2 === void 0) {
|
|
25444
|
+
props2 = {};
|
|
25445
|
+
}
|
|
25446
|
+
if (ref === void 0) {
|
|
25447
|
+
ref = null;
|
|
25448
|
+
}
|
|
25449
|
+
return _extends$3({}, props2, {
|
|
25450
|
+
ref: mergeRefs(referenceRef, ref)
|
|
25451
|
+
});
|
|
25452
|
+
}, [referenceRef]);
|
|
25453
|
+
var popperRef = useCallback(function(node2) {
|
|
25454
|
+
popper2.current = node2;
|
|
25455
|
+
setupPopper();
|
|
25456
|
+
}, [setupPopper]);
|
|
25457
|
+
var getPopperProps = useCallback(function(props2, ref) {
|
|
25458
|
+
if (props2 === void 0) {
|
|
25459
|
+
props2 = {};
|
|
25460
|
+
}
|
|
25461
|
+
if (ref === void 0) {
|
|
25462
|
+
ref = null;
|
|
25463
|
+
}
|
|
25464
|
+
return _extends$3({}, props2, {
|
|
25465
|
+
ref: mergeRefs(popperRef, ref),
|
|
25466
|
+
style: _extends$3({}, props2.style, {
|
|
25467
|
+
position: strategy,
|
|
25468
|
+
minWidth: "max-content",
|
|
25469
|
+
inset: "0 auto auto 0"
|
|
25470
|
+
})
|
|
25471
|
+
});
|
|
25472
|
+
}, [strategy, popperRef]);
|
|
25473
|
+
var getArrowProps = useCallback(function(props2, ref) {
|
|
25474
|
+
if (props2 === void 0) {
|
|
25475
|
+
props2 = {};
|
|
25476
|
+
}
|
|
25477
|
+
if (ref === void 0) {
|
|
25478
|
+
ref = null;
|
|
25479
|
+
}
|
|
25480
|
+
var _props2 = props2;
|
|
25481
|
+
_props2.size;
|
|
25482
|
+
_props2.shadowColor;
|
|
25483
|
+
_props2.bg;
|
|
25484
|
+
_props2.style;
|
|
25485
|
+
var rest = _objectWithoutPropertiesLoose$4(_props2, _excluded$4);
|
|
25486
|
+
return _extends$3({}, rest, {
|
|
25487
|
+
ref,
|
|
25488
|
+
"data-popper-arrow": "",
|
|
25489
|
+
style: getArrowStyle2(props2)
|
|
25490
|
+
});
|
|
25491
|
+
}, []);
|
|
25492
|
+
var getArrowInnerProps = useCallback(function(props2, ref) {
|
|
25493
|
+
if (props2 === void 0) {
|
|
25494
|
+
props2 = {};
|
|
25495
|
+
}
|
|
25496
|
+
if (ref === void 0) {
|
|
25497
|
+
ref = null;
|
|
25498
|
+
}
|
|
25499
|
+
return _extends$3({}, props2, {
|
|
25500
|
+
ref,
|
|
25501
|
+
"data-popper-arrow-inner": ""
|
|
25502
|
+
});
|
|
25503
|
+
}, []);
|
|
25504
|
+
return {
|
|
25505
|
+
update: function update() {
|
|
25506
|
+
var _instance$current2;
|
|
25507
|
+
(_instance$current2 = instance.current) == null ? void 0 : _instance$current2.update();
|
|
25508
|
+
},
|
|
25509
|
+
forceUpdate: function forceUpdate() {
|
|
25510
|
+
var _instance$current3;
|
|
25511
|
+
(_instance$current3 = instance.current) == null ? void 0 : _instance$current3.forceUpdate();
|
|
25512
|
+
},
|
|
25513
|
+
transformOrigin: cssVars.transformOrigin.varRef,
|
|
25514
|
+
referenceRef,
|
|
25515
|
+
popperRef,
|
|
25516
|
+
getPopperProps,
|
|
25517
|
+
getArrowProps,
|
|
25518
|
+
getArrowInnerProps,
|
|
25519
|
+
getReferenceProps
|
|
25520
|
+
};
|
|
25521
|
+
}
|
|
25522
|
+
function getArrowStyle2(props) {
|
|
25523
|
+
var size2 = props.size, shadowColor = props.shadowColor, bg2 = props.bg, style = props.style;
|
|
25524
|
+
var computedStyle = _extends$3({}, style, {
|
|
25525
|
+
position: "absolute"
|
|
25526
|
+
});
|
|
25527
|
+
if (size2) {
|
|
25528
|
+
computedStyle["--popper-arrow-size"] = size2;
|
|
25529
|
+
}
|
|
25530
|
+
if (shadowColor) {
|
|
25531
|
+
computedStyle["--popper-arrow-shadow-color"] = shadowColor;
|
|
25532
|
+
}
|
|
25533
|
+
if (bg2) {
|
|
25534
|
+
computedStyle["--popper-arrow-bg"] = bg2;
|
|
25535
|
+
}
|
|
25536
|
+
return computedStyle;
|
|
25537
|
+
}
|
|
25538
|
+
function _objectWithoutPropertiesLoose$3(source, excluded) {
|
|
25539
|
+
if (source == null)
|
|
25540
|
+
return {};
|
|
25541
|
+
var target = {};
|
|
25542
|
+
var sourceKeys = Object.keys(source);
|
|
25543
|
+
var key, i;
|
|
25544
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
25545
|
+
key = sourceKeys[i];
|
|
25546
|
+
if (excluded.indexOf(key) >= 0)
|
|
25547
|
+
continue;
|
|
25548
|
+
target[key] = source[key];
|
|
25549
|
+
}
|
|
25550
|
+
return target;
|
|
25551
|
+
}
|
|
25552
|
+
var propTypes = { exports: {} };
|
|
25553
|
+
var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
25554
|
+
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
25555
|
+
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
25556
|
+
function emptyFunction() {
|
|
25557
|
+
}
|
|
25558
|
+
function emptyFunctionWithReset() {
|
|
25559
|
+
}
|
|
25560
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
25561
|
+
var factoryWithThrowingShims = function() {
|
|
25562
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
25563
|
+
if (secret === ReactPropTypesSecret) {
|
|
25564
|
+
return;
|
|
25565
|
+
}
|
|
25566
|
+
var err = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
|
|
25567
|
+
err.name = "Invariant Violation";
|
|
25568
|
+
throw err;
|
|
25569
|
+
}
|
|
25570
|
+
shim.isRequired = shim;
|
|
25571
|
+
function getShim() {
|
|
25572
|
+
return shim;
|
|
25573
|
+
}
|
|
25574
|
+
var ReactPropTypes = {
|
|
25575
|
+
array: shim,
|
|
25576
|
+
bool: shim,
|
|
25577
|
+
func: shim,
|
|
25578
|
+
number: shim,
|
|
25579
|
+
object: shim,
|
|
25580
|
+
string: shim,
|
|
25581
|
+
symbol: shim,
|
|
25582
|
+
any: shim,
|
|
25583
|
+
arrayOf: getShim,
|
|
25584
|
+
element: shim,
|
|
25585
|
+
elementType: shim,
|
|
25586
|
+
instanceOf: getShim,
|
|
25587
|
+
node: shim,
|
|
25588
|
+
objectOf: getShim,
|
|
25589
|
+
oneOf: getShim,
|
|
25590
|
+
oneOfType: getShim,
|
|
25591
|
+
shape: getShim,
|
|
25592
|
+
exact: getShim,
|
|
25593
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
25594
|
+
resetWarningCache: emptyFunction
|
|
25595
|
+
};
|
|
25596
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
25597
|
+
return ReactPropTypes;
|
|
25598
|
+
};
|
|
25599
|
+
{
|
|
25600
|
+
propTypes.exports = factoryWithThrowingShims();
|
|
25601
|
+
}
|
|
25602
|
+
var PropTypes = propTypes.exports;
|
|
25603
|
+
var FOCUS_GROUP = "data-focus-lock";
|
|
25604
|
+
var FOCUS_DISABLED = "data-focus-lock-disabled";
|
|
25605
|
+
var FOCUS_ALLOW = "data-no-focus-lock";
|
|
25606
|
+
var FOCUS_AUTO = "data-autofocus-inside";
|
|
25607
|
+
function assignRef(ref, value) {
|
|
25608
|
+
if (typeof ref === "function") {
|
|
25609
|
+
ref(value);
|
|
25610
|
+
} else if (ref) {
|
|
25611
|
+
ref.current = value;
|
|
25612
|
+
}
|
|
25613
|
+
return ref;
|
|
25614
|
+
}
|
|
25615
|
+
function useCallbackRef(initialValue, callback) {
|
|
25616
|
+
var ref = useState(function() {
|
|
25617
|
+
return {
|
|
25618
|
+
value: initialValue,
|
|
25619
|
+
callback,
|
|
25620
|
+
facade: {
|
|
25621
|
+
get current() {
|
|
25622
|
+
return ref.value;
|
|
25623
|
+
},
|
|
25624
|
+
set current(value) {
|
|
25625
|
+
var last = ref.value;
|
|
25626
|
+
if (last !== value) {
|
|
25627
|
+
ref.value = value;
|
|
25628
|
+
ref.callback(value, last);
|
|
25629
|
+
}
|
|
25630
|
+
}
|
|
25631
|
+
}
|
|
25632
|
+
};
|
|
25633
|
+
})[0];
|
|
25634
|
+
ref.callback = callback;
|
|
25635
|
+
return ref.facade;
|
|
25636
|
+
}
|
|
25637
|
+
function useMergeRefs(refs, defaultValue) {
|
|
25638
|
+
return useCallbackRef(defaultValue, function(newValue) {
|
|
25639
|
+
return refs.forEach(function(ref) {
|
|
25640
|
+
return assignRef(ref, newValue);
|
|
25641
|
+
});
|
|
25642
|
+
});
|
|
25643
|
+
}
|
|
25644
|
+
var hiddenGuard = {
|
|
25645
|
+
width: "1px",
|
|
25646
|
+
height: "0px",
|
|
25647
|
+
padding: 0,
|
|
25648
|
+
overflow: "hidden",
|
|
25649
|
+
position: "fixed",
|
|
25650
|
+
top: "1px",
|
|
25651
|
+
left: "1px"
|
|
25652
|
+
};
|
|
25653
|
+
/*! *****************************************************************************
|
|
25654
|
+
Copyright (c) Microsoft Corporation.
|
|
25655
|
+
|
|
25656
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
25657
|
+
purpose with or without fee is hereby granted.
|
|
25658
|
+
|
|
25659
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
25660
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
25661
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
25662
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
25663
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
25664
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
23983
25665
|
PERFORMANCE OF THIS SOFTWARE.
|
|
23984
25666
|
***************************************************************************** */
|
|
23985
25667
|
var __assign$3 = function() {
|
|
@@ -24174,7 +25856,7 @@ var FocusLock$2 = /* @__PURE__ */ React.forwardRef(function FocusLockUI(props, p
|
|
|
24174
25856
|
setObserved(newObserved);
|
|
24175
25857
|
}
|
|
24176
25858
|
}, []);
|
|
24177
|
-
var lockProps = _extends$
|
|
25859
|
+
var lockProps = _extends$h((_extends2 = {}, _extends2[FOCUS_DISABLED] = disabled2 && "disabled", _extends2[FOCUS_GROUP] = group, _extends2), containerProps);
|
|
24178
25860
|
var hasLeadingGuards = noFocusGuards !== true;
|
|
24179
25861
|
var hasTailingGuards = hasLeadingGuards && noFocusGuards !== "tail";
|
|
24180
25862
|
var mergedRef = useMergeRefs([parentRef, setObserveNode]);
|
|
@@ -24204,7 +25886,7 @@ var FocusLock$2 = /* @__PURE__ */ React.forwardRef(function FocusLockUI(props, p
|
|
|
24204
25886
|
onActivation,
|
|
24205
25887
|
onDeactivation,
|
|
24206
25888
|
returnFocus
|
|
24207
|
-
}), /* @__PURE__ */ React.createElement(Container3, _extends$
|
|
25889
|
+
}), /* @__PURE__ */ React.createElement(Container3, _extends$h({
|
|
24208
25890
|
ref: mergedRef
|
|
24209
25891
|
}, lockProps, {
|
|
24210
25892
|
className,
|
|
@@ -24741,7 +26423,7 @@ var recordPortal = function recordPortal2(observerNode, portaledElement) {
|
|
|
24741
26423
|
var focusIsPortaledPair = function focusIsPortaledPair2(element) {
|
|
24742
26424
|
return lastPortaledElement && lastPortaledElement.portaledElement === element;
|
|
24743
26425
|
};
|
|
24744
|
-
function autoGuard(startIndex,
|
|
26426
|
+
function autoGuard(startIndex, end2, step, allNodes) {
|
|
24745
26427
|
var lastGuard = null;
|
|
24746
26428
|
var i = startIndex;
|
|
24747
26429
|
do {
|
|
@@ -24758,7 +26440,7 @@ function autoGuard(startIndex, end, step, allNodes) {
|
|
|
24758
26440
|
} else {
|
|
24759
26441
|
break;
|
|
24760
26442
|
}
|
|
24761
|
-
} while ((i += step) !==
|
|
26443
|
+
} while ((i += step) !== end2);
|
|
24762
26444
|
if (lastGuard) {
|
|
24763
26445
|
lastGuard.node.tabIndex = 0;
|
|
24764
26446
|
}
|
|
@@ -24900,14 +26582,14 @@ mediumEffect.assignMedium(function(cb2) {
|
|
|
24900
26582
|
});
|
|
24901
26583
|
var FocusTrap = withSideEffect(reducePropsToState, handleStateChangeOnClient)(FocusWatcher);
|
|
24902
26584
|
var FocusLockCombination = /* @__PURE__ */ React.forwardRef(function FocusLockUICombination(props, ref) {
|
|
24903
|
-
return /* @__PURE__ */ React.createElement(FocusLockUI2, _extends$
|
|
26585
|
+
return /* @__PURE__ */ React.createElement(FocusLockUI2, _extends$h({
|
|
24904
26586
|
sideCar: FocusTrap,
|
|
24905
26587
|
ref
|
|
24906
26588
|
}, props));
|
|
24907
26589
|
});
|
|
24908
26590
|
var _ref = FocusLockUI2.propTypes || {};
|
|
24909
26591
|
_ref.sideCar;
|
|
24910
|
-
_objectWithoutPropertiesLoose$
|
|
26592
|
+
_objectWithoutPropertiesLoose$3(_ref, ["sideCar"]);
|
|
24911
26593
|
FocusLockCombination.propTypes = {};
|
|
24912
26594
|
var FocusLock$1 = FocusLockCombination;
|
|
24913
26595
|
var FocusLock = function FocusLock2(props) {
|
|
@@ -25091,13 +26773,13 @@ var parse = function(x2) {
|
|
|
25091
26773
|
};
|
|
25092
26774
|
var getOffset = function(gapMode) {
|
|
25093
26775
|
var cs = window.getComputedStyle(document.body);
|
|
25094
|
-
var
|
|
25095
|
-
var
|
|
25096
|
-
var
|
|
26776
|
+
var left2 = cs[gapMode === "padding" ? "paddingLeft" : "marginLeft"];
|
|
26777
|
+
var top2 = cs[gapMode === "padding" ? "paddingTop" : "marginTop"];
|
|
26778
|
+
var right2 = cs[gapMode === "padding" ? "paddingRight" : "marginRight"];
|
|
25097
26779
|
return [
|
|
25098
|
-
parse(
|
|
25099
|
-
parse(
|
|
25100
|
-
parse(
|
|
26780
|
+
parse(left2),
|
|
26781
|
+
parse(top2),
|
|
26782
|
+
parse(right2)
|
|
25101
26783
|
];
|
|
25102
26784
|
};
|
|
25103
26785
|
var getGapWidth = function(gapMode) {
|
|
@@ -25119,13 +26801,13 @@ var getGapWidth = function(gapMode) {
|
|
|
25119
26801
|
};
|
|
25120
26802
|
var Style = styleSingleton();
|
|
25121
26803
|
var getStyles = function(_a, allowRelative, gapMode, important) {
|
|
25122
|
-
var
|
|
26804
|
+
var left2 = _a.left, top2 = _a.top, right2 = _a.right, gap = _a.gap;
|
|
25123
26805
|
if (gapMode === void 0) {
|
|
25124
26806
|
gapMode = "margin";
|
|
25125
26807
|
}
|
|
25126
26808
|
return "\n ." + noScrollbarsClassName + " {\n overflow: hidden " + important + ";\n padding-right: " + gap + "px " + important + ";\n }\n body {\n overflow: hidden " + important + ";\n " + [
|
|
25127
26809
|
allowRelative && "position: relative " + important + ";",
|
|
25128
|
-
gapMode === "margin" && "\n padding-left: " +
|
|
26810
|
+
gapMode === "margin" && "\n padding-left: " + left2 + "px;\n padding-top: " + top2 + "px;\n padding-right: " + right2 + "px;\n margin-left:0;\n margin-top:0;\n margin-right: " + gap + "px " + important + ";\n ",
|
|
25129
26811
|
gapMode === "padding" && "padding-right: " + gap + "px " + important + ";"
|
|
25130
26812
|
].filter(Boolean).join("") + "\n }\n \n ." + zeroRightClassName + " {\n right: " + gap + "px " + important + ";\n }\n \n ." + fullWidthClassName + " {\n margin-right: " + gap + "px " + important + ";\n }\n \n ." + zeroRightClassName + " ." + zeroRightClassName + " {\n right: 0 " + important + ";\n }\n \n ." + fullWidthClassName + " ." + fullWidthClassName + " {\n margin-right: 0 " + important + ";\n }\n \n body {\n " + removedBarSizeVariable + ": " + gap + "px;\n }\n";
|
|
25131
26813
|
};
|
|
@@ -25453,7 +27135,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
|
25453
27135
|
}
|
|
25454
27136
|
};
|
|
25455
27137
|
};
|
|
25456
|
-
function _objectWithoutPropertiesLoose$
|
|
27138
|
+
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
25457
27139
|
if (source == null)
|
|
25458
27140
|
return {};
|
|
25459
27141
|
var target = {};
|
|
@@ -25467,8 +27149,8 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
|
25467
27149
|
}
|
|
25468
27150
|
return target;
|
|
25469
27151
|
}
|
|
25470
|
-
function _extends$
|
|
25471
|
-
_extends$
|
|
27152
|
+
function _extends$2() {
|
|
27153
|
+
_extends$2 = Object.assign || function(target) {
|
|
25472
27154
|
for (var i = 1; i < arguments.length; i++) {
|
|
25473
27155
|
var source = arguments[i];
|
|
25474
27156
|
for (var key in source) {
|
|
@@ -25479,23 +27161,23 @@ function _extends$1() {
|
|
|
25479
27161
|
}
|
|
25480
27162
|
return target;
|
|
25481
27163
|
};
|
|
25482
|
-
return _extends$
|
|
27164
|
+
return _extends$2.apply(this, arguments);
|
|
25483
27165
|
}
|
|
25484
27166
|
var _excluded$3 = ["preset"];
|
|
25485
27167
|
var transitions = {
|
|
25486
|
-
slideInBottom: _extends$
|
|
27168
|
+
slideInBottom: _extends$2({}, slideFadeConfig, {
|
|
25487
27169
|
custom: {
|
|
25488
27170
|
offsetY: 16,
|
|
25489
27171
|
reverse: true
|
|
25490
27172
|
}
|
|
25491
27173
|
}),
|
|
25492
|
-
slideInRight: _extends$
|
|
27174
|
+
slideInRight: _extends$2({}, slideFadeConfig, {
|
|
25493
27175
|
custom: {
|
|
25494
27176
|
offsetX: 16,
|
|
25495
27177
|
reverse: true
|
|
25496
27178
|
}
|
|
25497
27179
|
}),
|
|
25498
|
-
scale: _extends$
|
|
27180
|
+
scale: _extends$2({}, scaleFadeConfig, {
|
|
25499
27181
|
custom: {
|
|
25500
27182
|
initialScale: 0.95,
|
|
25501
27183
|
reverse: true
|
|
@@ -25505,9 +27187,9 @@ var transitions = {
|
|
|
25505
27187
|
};
|
|
25506
27188
|
var Motion = chakra(motion.section);
|
|
25507
27189
|
var ModalTransition = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
25508
|
-
var preset = props.preset, rest = _objectWithoutPropertiesLoose$
|
|
27190
|
+
var preset = props.preset, rest = _objectWithoutPropertiesLoose$2(props, _excluded$3);
|
|
25509
27191
|
var motionProps = transitions[preset];
|
|
25510
|
-
return /* @__PURE__ */ React.createElement(Motion, _extends$
|
|
27192
|
+
return /* @__PURE__ */ React.createElement(Motion, _extends$2({
|
|
25511
27193
|
ref
|
|
25512
27194
|
}, motionProps, rest));
|
|
25513
27195
|
});
|
|
@@ -25571,7 +27253,7 @@ function useModal(props) {
|
|
|
25571
27253
|
if (ref === void 0) {
|
|
25572
27254
|
ref = null;
|
|
25573
27255
|
}
|
|
25574
|
-
return _extends$
|
|
27256
|
+
return _extends$2({
|
|
25575
27257
|
role: "dialog"
|
|
25576
27258
|
}, props2, {
|
|
25577
27259
|
ref: mergeRefs(ref, dialogRef),
|
|
@@ -25603,7 +27285,7 @@ function useModal(props) {
|
|
|
25603
27285
|
if (ref === void 0) {
|
|
25604
27286
|
ref = null;
|
|
25605
27287
|
}
|
|
25606
|
-
return _extends$
|
|
27288
|
+
return _extends$2({}, props2, {
|
|
25607
27289
|
ref: mergeRefs(ref, overlayRef),
|
|
25608
27290
|
onClick: callAllHandlers(props2.onClick, onOverlayClick),
|
|
25609
27291
|
onKeyDown: callAllHandlers(props2.onKeyDown, onKeyDown),
|
|
@@ -25641,7 +27323,7 @@ var Modal = function Modal2(props) {
|
|
|
25641
27323
|
var portalProps = props.portalProps, children = props.children, autoFocus = props.autoFocus, trapFocus = props.trapFocus, initialFocusRef = props.initialFocusRef, finalFocusRef = props.finalFocusRef, returnFocusOnClose = props.returnFocusOnClose, blockScrollOnMount = props.blockScrollOnMount, allowPinchZoom = props.allowPinchZoom, preserveScrollBarGap = props.preserveScrollBarGap, motionPreset = props.motionPreset, lockFocusAcrossFrames = props.lockFocusAcrossFrames, onCloseComplete = props.onCloseComplete;
|
|
25642
27324
|
var styles2 = useMultiStyleConfig("Modal", props);
|
|
25643
27325
|
var modal2 = useModal(props);
|
|
25644
|
-
var context = _extends$
|
|
27326
|
+
var context = _extends$2({}, modal2, {
|
|
25645
27327
|
autoFocus,
|
|
25646
27328
|
trapFocus,
|
|
25647
27329
|
initialFocusRef,
|
|
@@ -25673,20 +27355,20 @@ Modal.defaultProps = {
|
|
|
25673
27355
|
};
|
|
25674
27356
|
var MotionDiv = chakra(motion.div);
|
|
25675
27357
|
var ModalContent = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
25676
|
-
var className = props.className, children = props.children, rootProps = props.containerProps, rest = _objectWithoutPropertiesLoose$
|
|
27358
|
+
var className = props.className, children = props.children, rootProps = props.containerProps, rest = _objectWithoutPropertiesLoose$2(props, _excluded$2);
|
|
25677
27359
|
var _useModalContext = useModalContext(), getDialogProps = _useModalContext.getDialogProps, getDialogContainerProps = _useModalContext.getDialogContainerProps;
|
|
25678
27360
|
var dialogProps = getDialogProps(rest, ref);
|
|
25679
27361
|
var containerProps = getDialogContainerProps(rootProps);
|
|
25680
27362
|
var _className = cx("chakra-modal__content", className);
|
|
25681
27363
|
var styles2 = useStyles$1();
|
|
25682
|
-
var dialogStyles = _extends$
|
|
27364
|
+
var dialogStyles = _extends$2({
|
|
25683
27365
|
display: "flex",
|
|
25684
27366
|
flexDirection: "column",
|
|
25685
27367
|
position: "relative",
|
|
25686
27368
|
width: "100%",
|
|
25687
27369
|
outline: 0
|
|
25688
27370
|
}, styles2.dialog);
|
|
25689
|
-
var dialogContainerStyles = _extends$
|
|
27371
|
+
var dialogContainerStyles = _extends$2({
|
|
25690
27372
|
display: "flex",
|
|
25691
27373
|
width: "100vw",
|
|
25692
27374
|
height: "100vh",
|
|
@@ -25698,11 +27380,11 @@ var ModalContent = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
25698
27380
|
top: 0
|
|
25699
27381
|
}, styles2.dialogContainer);
|
|
25700
27382
|
var _useModalContext2 = useModalContext(), motionPreset = _useModalContext2.motionPreset;
|
|
25701
|
-
return /* @__PURE__ */ React.createElement(ModalFocusScope, null, /* @__PURE__ */ React.createElement(chakra.div, _extends$
|
|
27383
|
+
return /* @__PURE__ */ React.createElement(ModalFocusScope, null, /* @__PURE__ */ React.createElement(chakra.div, _extends$2({}, containerProps, {
|
|
25702
27384
|
className: "chakra-modal__content-container",
|
|
25703
27385
|
tabIndex: -1,
|
|
25704
27386
|
__css: dialogContainerStyles
|
|
25705
|
-
}), /* @__PURE__ */ React.createElement(ModalTransition, _extends$
|
|
27387
|
+
}), /* @__PURE__ */ React.createElement(ModalTransition, _extends$2({
|
|
25706
27388
|
preset: motionPreset,
|
|
25707
27389
|
className: _className
|
|
25708
27390
|
}, dialogProps, {
|
|
@@ -25735,10 +27417,10 @@ function ModalFocusScope(props) {
|
|
|
25735
27417
|
var ModalOverlay = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
25736
27418
|
var className = props.className;
|
|
25737
27419
|
props.transition;
|
|
25738
|
-
var rest = _objectWithoutPropertiesLoose$
|
|
27420
|
+
var rest = _objectWithoutPropertiesLoose$2(props, _excluded2$1$1);
|
|
25739
27421
|
var _className = cx("chakra-modal__overlay", className);
|
|
25740
27422
|
var styles2 = useStyles$1();
|
|
25741
|
-
var overlayStyle = _extends$
|
|
27423
|
+
var overlayStyle = _extends$2({
|
|
25742
27424
|
pos: "fixed",
|
|
25743
27425
|
left: "0",
|
|
25744
27426
|
top: "0",
|
|
@@ -25747,14 +27429,14 @@ var ModalOverlay = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
25747
27429
|
}, styles2.overlay);
|
|
25748
27430
|
var _useModalContext4 = useModalContext(), motionPreset = _useModalContext4.motionPreset;
|
|
25749
27431
|
var motionProps = motionPreset === "none" ? {} : fadeConfig;
|
|
25750
|
-
return /* @__PURE__ */ React.createElement(MotionDiv, _extends$
|
|
27432
|
+
return /* @__PURE__ */ React.createElement(MotionDiv, _extends$2({}, motionProps, {
|
|
25751
27433
|
__css: overlayStyle,
|
|
25752
27434
|
ref,
|
|
25753
27435
|
className: _className
|
|
25754
27436
|
}, rest));
|
|
25755
27437
|
});
|
|
25756
27438
|
var ModalHeader = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
25757
|
-
var className = props.className, rest = _objectWithoutPropertiesLoose$
|
|
27439
|
+
var className = props.className, rest = _objectWithoutPropertiesLoose$2(props, _excluded3);
|
|
25758
27440
|
var _useModalContext5 = useModalContext(), headerId = _useModalContext5.headerId, setHeaderMounted = _useModalContext5.setHeaderMounted;
|
|
25759
27441
|
React.useEffect(function() {
|
|
25760
27442
|
setHeaderMounted(true);
|
|
@@ -25764,10 +27446,10 @@ var ModalHeader = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
25764
27446
|
}, [setHeaderMounted]);
|
|
25765
27447
|
var _className = cx("chakra-modal__header", className);
|
|
25766
27448
|
var styles2 = useStyles$1();
|
|
25767
|
-
var headerStyles = _extends$
|
|
27449
|
+
var headerStyles = _extends$2({
|
|
25768
27450
|
flex: 0
|
|
25769
27451
|
}, styles2.header);
|
|
25770
|
-
return /* @__PURE__ */ React.createElement(chakra.header, _extends$
|
|
27452
|
+
return /* @__PURE__ */ React.createElement(chakra.header, _extends$2({
|
|
25771
27453
|
ref,
|
|
25772
27454
|
className: _className,
|
|
25773
27455
|
id: headerId
|
|
@@ -25776,7 +27458,7 @@ var ModalHeader = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
25776
27458
|
}));
|
|
25777
27459
|
});
|
|
25778
27460
|
var ModalBody = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
25779
|
-
var className = props.className, rest = _objectWithoutPropertiesLoose$
|
|
27461
|
+
var className = props.className, rest = _objectWithoutPropertiesLoose$2(props, _excluded4);
|
|
25780
27462
|
var _useModalContext6 = useModalContext(), bodyId = _useModalContext6.bodyId, setBodyMounted = _useModalContext6.setBodyMounted;
|
|
25781
27463
|
React.useEffect(function() {
|
|
25782
27464
|
setBodyMounted(true);
|
|
@@ -25786,7 +27468,7 @@ var ModalBody = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
25786
27468
|
}, [setBodyMounted]);
|
|
25787
27469
|
var _className = cx("chakra-modal__body", className);
|
|
25788
27470
|
var styles2 = useStyles$1();
|
|
25789
|
-
return /* @__PURE__ */ React.createElement(chakra.div, _extends$
|
|
27471
|
+
return /* @__PURE__ */ React.createElement(chakra.div, _extends$2({
|
|
25790
27472
|
ref,
|
|
25791
27473
|
className: _className,
|
|
25792
27474
|
id: bodyId
|
|
@@ -25795,15 +27477,15 @@ var ModalBody = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
25795
27477
|
}));
|
|
25796
27478
|
});
|
|
25797
27479
|
var ModalFooter = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
25798
|
-
var className = props.className, rest = _objectWithoutPropertiesLoose$
|
|
27480
|
+
var className = props.className, rest = _objectWithoutPropertiesLoose$2(props, _excluded5);
|
|
25799
27481
|
var _className = cx("chakra-modal__footer", className);
|
|
25800
27482
|
var styles2 = useStyles$1();
|
|
25801
|
-
var footerStyles = _extends$
|
|
27483
|
+
var footerStyles = _extends$2({
|
|
25802
27484
|
display: "flex",
|
|
25803
27485
|
alignItems: "center",
|
|
25804
27486
|
justifyContent: "flex-end"
|
|
25805
27487
|
}, styles2.footer);
|
|
25806
|
-
return /* @__PURE__ */ React.createElement(chakra.footer, _extends$
|
|
27488
|
+
return /* @__PURE__ */ React.createElement(chakra.footer, _extends$2({
|
|
25807
27489
|
ref
|
|
25808
27490
|
}, rest, {
|
|
25809
27491
|
__css: footerStyles,
|
|
@@ -25811,11 +27493,11 @@ var ModalFooter = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
25811
27493
|
}));
|
|
25812
27494
|
});
|
|
25813
27495
|
var ModalCloseButton = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
25814
|
-
var onClick = props.onClick, className = props.className, rest = _objectWithoutPropertiesLoose$
|
|
27496
|
+
var onClick = props.onClick, className = props.className, rest = _objectWithoutPropertiesLoose$2(props, _excluded6);
|
|
25815
27497
|
var _useModalContext7 = useModalContext(), onClose = _useModalContext7.onClose;
|
|
25816
27498
|
var _className = cx("chakra-modal__close-btn", className);
|
|
25817
27499
|
var styles2 = useStyles$1();
|
|
25818
|
-
return /* @__PURE__ */ React.createElement(CloseButton, _extends$
|
|
27500
|
+
return /* @__PURE__ */ React.createElement(CloseButton, _extends$2({
|
|
25819
27501
|
ref,
|
|
25820
27502
|
__css: styles2.closeButton,
|
|
25821
27503
|
className: _className,
|
|
@@ -25827,7 +27509,7 @@ var ModalCloseButton = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
25827
27509
|
});
|
|
25828
27510
|
createContext();
|
|
25829
27511
|
chakra(Slide);
|
|
25830
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
27512
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
25831
27513
|
if (source == null)
|
|
25832
27514
|
return {};
|
|
25833
27515
|
var target = {};
|
|
@@ -25841,8 +27523,8 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
25841
27523
|
}
|
|
25842
27524
|
return target;
|
|
25843
27525
|
}
|
|
25844
|
-
function _extends() {
|
|
25845
|
-
_extends = Object.assign || function(target) {
|
|
27526
|
+
function _extends$1() {
|
|
27527
|
+
_extends$1 = Object.assign || function(target) {
|
|
25846
27528
|
for (var i = 1; i < arguments.length; i++) {
|
|
25847
27529
|
var source = arguments[i];
|
|
25848
27530
|
for (var key in source) {
|
|
@@ -25853,7 +27535,7 @@ function _extends() {
|
|
|
25853
27535
|
}
|
|
25854
27536
|
return target;
|
|
25855
27537
|
};
|
|
25856
|
-
return _extends.apply(this, arguments);
|
|
27538
|
+
return _extends$1.apply(this, arguments);
|
|
25857
27539
|
}
|
|
25858
27540
|
var spin = keyframes$2({
|
|
25859
27541
|
"0%": {
|
|
@@ -25894,8 +27576,8 @@ keyframes$2({
|
|
|
25894
27576
|
}
|
|
25895
27577
|
});
|
|
25896
27578
|
function getProgressProps(options) {
|
|
25897
|
-
var _options$value = options.value, value = _options$value === void 0 ? 0 : _options$value,
|
|
25898
|
-
var percent2 = valueToPercent(value,
|
|
27579
|
+
var _options$value = options.value, value = _options$value === void 0 ? 0 : _options$value, min2 = options.min, max2 = options.max, valueText = options.valueText, getValueText = options.getValueText, isIndeterminate = options.isIndeterminate;
|
|
27580
|
+
var percent2 = valueToPercent(value, min2, max2);
|
|
25899
27581
|
var getAriaValueText = function getAriaValueText2() {
|
|
25900
27582
|
if (value == null)
|
|
25901
27583
|
return void 0;
|
|
@@ -25904,8 +27586,8 @@ function getProgressProps(options) {
|
|
|
25904
27586
|
return {
|
|
25905
27587
|
bind: {
|
|
25906
27588
|
"data-indeterminate": isIndeterminate ? "" : void 0,
|
|
25907
|
-
"aria-valuemax":
|
|
25908
|
-
"aria-valuemin":
|
|
27589
|
+
"aria-valuemax": max2,
|
|
27590
|
+
"aria-valuemin": min2,
|
|
25909
27591
|
"aria-valuenow": isIndeterminate ? void 0 : value,
|
|
25910
27592
|
"aria-valuetext": getAriaValueText(),
|
|
25911
27593
|
role: "progressbar"
|
|
@@ -25914,9 +27596,9 @@ function getProgressProps(options) {
|
|
|
25914
27596
|
value
|
|
25915
27597
|
};
|
|
25916
27598
|
}
|
|
25917
|
-
var _excluded$1 = ["size", "isIndeterminate"], _excluded2$1 = ["size", "max", "min", "valueText", "getValueText", "value", "capIsRound", "children", "thickness", "color", "trackColor", "isIndeterminate"];
|
|
27599
|
+
var _excluded$1$1 = ["size", "isIndeterminate"], _excluded2$1 = ["size", "max", "min", "valueText", "getValueText", "value", "capIsRound", "children", "thickness", "color", "trackColor", "isIndeterminate"];
|
|
25918
27600
|
var Circle = function Circle2(props) {
|
|
25919
|
-
return /* @__PURE__ */ React.createElement(chakra.circle, _extends({
|
|
27601
|
+
return /* @__PURE__ */ React.createElement(chakra.circle, _extends$1({
|
|
25920
27602
|
cx: 50,
|
|
25921
27603
|
cy: 50,
|
|
25922
27604
|
r: 42,
|
|
@@ -25924,8 +27606,8 @@ var Circle = function Circle2(props) {
|
|
|
25924
27606
|
}, props));
|
|
25925
27607
|
};
|
|
25926
27608
|
var Shape = function Shape2(props) {
|
|
25927
|
-
var size2 = props.size, isIndeterminate = props.isIndeterminate, rest = _objectWithoutPropertiesLoose(props, _excluded$1);
|
|
25928
|
-
return /* @__PURE__ */ React.createElement(chakra.svg, _extends({
|
|
27609
|
+
var size2 = props.size, isIndeterminate = props.isIndeterminate, rest = _objectWithoutPropertiesLoose$1(props, _excluded$1$1);
|
|
27610
|
+
return /* @__PURE__ */ React.createElement(chakra.svg, _extends$1({
|
|
25929
27611
|
viewBox: "0 0 100 100",
|
|
25930
27612
|
__css: {
|
|
25931
27613
|
width: size2,
|
|
@@ -25936,10 +27618,10 @@ var Shape = function Shape2(props) {
|
|
|
25936
27618
|
};
|
|
25937
27619
|
var CircularProgress = function CircularProgress2(props) {
|
|
25938
27620
|
var _progress$percent;
|
|
25939
|
-
var _props$size = props.size, size2 = _props$size === void 0 ? "48px" : _props$size, _props$max = props.max,
|
|
27621
|
+
var _props$size = props.size, size2 = _props$size === void 0 ? "48px" : _props$size, _props$max = props.max, max2 = _props$max === void 0 ? 100 : _props$max, _props$min = props.min, min2 = _props$min === void 0 ? 0 : _props$min, valueText = props.valueText, getValueText = props.getValueText, value = props.value, capIsRound = props.capIsRound, children = props.children, _props$thickness = props.thickness, thickness = _props$thickness === void 0 ? "10px" : _props$thickness, _props$color = props.color, color2 = _props$color === void 0 ? "#0078d4" : _props$color, _props$trackColor = props.trackColor, trackColor = _props$trackColor === void 0 ? "#edebe9" : _props$trackColor, isIndeterminate = props.isIndeterminate, rest = _objectWithoutPropertiesLoose$1(props, _excluded2$1);
|
|
25940
27622
|
var progress2 = getProgressProps({
|
|
25941
|
-
min,
|
|
25942
|
-
max,
|
|
27623
|
+
min: min2,
|
|
27624
|
+
max: max2,
|
|
25943
27625
|
value,
|
|
25944
27626
|
valueText,
|
|
25945
27627
|
getValueText,
|
|
@@ -25964,7 +27646,7 @@ var CircularProgress = function CircularProgress2(props) {
|
|
|
25964
27646
|
verticalAlign: "middle",
|
|
25965
27647
|
fontSize: size2
|
|
25966
27648
|
};
|
|
25967
|
-
return /* @__PURE__ */ React.createElement(chakra.div, _extends({
|
|
27649
|
+
return /* @__PURE__ */ React.createElement(chakra.div, _extends$1({
|
|
25968
27650
|
className: "chakra-progress"
|
|
25969
27651
|
}, progress2.bind, rest, {
|
|
25970
27652
|
__css: rootStyles
|
|
@@ -25975,7 +27657,7 @@ var CircularProgress = function CircularProgress2(props) {
|
|
|
25975
27657
|
stroke: trackColor,
|
|
25976
27658
|
strokeWidth: thickness,
|
|
25977
27659
|
className: "chakra-progress__track"
|
|
25978
|
-
}), /* @__PURE__ */ React.createElement(Circle, _extends({
|
|
27660
|
+
}), /* @__PURE__ */ React.createElement(Circle, _extends$1({
|
|
25979
27661
|
stroke: color2,
|
|
25980
27662
|
strokeWidth: thickness,
|
|
25981
27663
|
className: "chakra-progress__indicator",
|
|
@@ -25994,6 +27676,241 @@ chakra("div", {
|
|
|
25994
27676
|
transform: "translate(-50%, -50%)"
|
|
25995
27677
|
}
|
|
25996
27678
|
});
|
|
27679
|
+
function _extends() {
|
|
27680
|
+
_extends = Object.assign || function(target) {
|
|
27681
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
27682
|
+
var source = arguments[i];
|
|
27683
|
+
for (var key in source) {
|
|
27684
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
27685
|
+
target[key] = source[key];
|
|
27686
|
+
}
|
|
27687
|
+
}
|
|
27688
|
+
}
|
|
27689
|
+
return target;
|
|
27690
|
+
};
|
|
27691
|
+
return _extends.apply(this, arguments);
|
|
27692
|
+
}
|
|
27693
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
27694
|
+
if (source == null)
|
|
27695
|
+
return {};
|
|
27696
|
+
var target = {};
|
|
27697
|
+
var sourceKeys = Object.keys(source);
|
|
27698
|
+
var key, i;
|
|
27699
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
27700
|
+
key = sourceKeys[i];
|
|
27701
|
+
if (excluded.indexOf(key) >= 0)
|
|
27702
|
+
continue;
|
|
27703
|
+
target[key] = source[key];
|
|
27704
|
+
}
|
|
27705
|
+
return target;
|
|
27706
|
+
}
|
|
27707
|
+
var scale = {
|
|
27708
|
+
exit: {
|
|
27709
|
+
scale: 0.85,
|
|
27710
|
+
opacity: 0,
|
|
27711
|
+
transition: {
|
|
27712
|
+
opacity: {
|
|
27713
|
+
duration: 0.15,
|
|
27714
|
+
easings: "easeInOut"
|
|
27715
|
+
},
|
|
27716
|
+
scale: {
|
|
27717
|
+
duration: 0.2,
|
|
27718
|
+
easings: "easeInOut"
|
|
27719
|
+
}
|
|
27720
|
+
}
|
|
27721
|
+
},
|
|
27722
|
+
enter: {
|
|
27723
|
+
scale: 1,
|
|
27724
|
+
opacity: 1,
|
|
27725
|
+
transition: {
|
|
27726
|
+
opacity: {
|
|
27727
|
+
easings: "easeOut",
|
|
27728
|
+
duration: 0.2
|
|
27729
|
+
},
|
|
27730
|
+
scale: {
|
|
27731
|
+
duration: 0.2,
|
|
27732
|
+
ease: [0.175, 0.885, 0.4, 1.1]
|
|
27733
|
+
}
|
|
27734
|
+
}
|
|
27735
|
+
}
|
|
27736
|
+
};
|
|
27737
|
+
var _excluded$1 = ["openDelay", "closeDelay", "closeOnClick", "closeOnMouseDown", "closeOnEsc", "onOpen", "onClose", "placement", "id", "isOpen", "defaultIsOpen", "arrowSize", "arrowShadowColor", "arrowPadding", "modifiers", "isDisabled", "gutter", "offset", "direction"];
|
|
27738
|
+
function useTooltip(props) {
|
|
27739
|
+
if (props === void 0) {
|
|
27740
|
+
props = {};
|
|
27741
|
+
}
|
|
27742
|
+
var _props = props, _props$openDelay = _props.openDelay, openDelay = _props$openDelay === void 0 ? 0 : _props$openDelay, _props$closeDelay = _props.closeDelay, closeDelay = _props$closeDelay === void 0 ? 0 : _props$closeDelay, _props$closeOnClick = _props.closeOnClick, closeOnClick = _props$closeOnClick === void 0 ? true : _props$closeOnClick, closeOnMouseDown = _props.closeOnMouseDown, _props$closeOnEsc = _props.closeOnEsc, closeOnEsc = _props$closeOnEsc === void 0 ? true : _props$closeOnEsc, onOpenProp = _props.onOpen, onCloseProp = _props.onClose, placement = _props.placement, id2 = _props.id, isOpenProp = _props.isOpen, defaultIsOpen = _props.defaultIsOpen, _props$arrowSize = _props.arrowSize, arrowSize = _props$arrowSize === void 0 ? 10 : _props$arrowSize, arrowShadowColor = _props.arrowShadowColor, arrowPadding = _props.arrowPadding, modifiers = _props.modifiers, isDisabled2 = _props.isDisabled, gutter = _props.gutter, offset2 = _props.offset, direction2 = _props.direction, htmlProps = _objectWithoutPropertiesLoose(_props, _excluded$1);
|
|
27743
|
+
var _useDisclosure = useDisclosure({
|
|
27744
|
+
isOpen: isOpenProp,
|
|
27745
|
+
defaultIsOpen,
|
|
27746
|
+
onOpen: onOpenProp,
|
|
27747
|
+
onClose: onCloseProp
|
|
27748
|
+
}), isOpen = _useDisclosure.isOpen, onOpen = _useDisclosure.onOpen, onClose = _useDisclosure.onClose;
|
|
27749
|
+
var _usePopper = usePopper({
|
|
27750
|
+
enabled: isOpen,
|
|
27751
|
+
placement,
|
|
27752
|
+
arrowPadding,
|
|
27753
|
+
modifiers,
|
|
27754
|
+
gutter,
|
|
27755
|
+
offset: offset2,
|
|
27756
|
+
direction: direction2
|
|
27757
|
+
}), referenceRef = _usePopper.referenceRef, getPopperProps = _usePopper.getPopperProps, getArrowInnerProps = _usePopper.getArrowInnerProps, getArrowProps = _usePopper.getArrowProps;
|
|
27758
|
+
var tooltipId = useId$1(id2, "tooltip");
|
|
27759
|
+
var ref = React.useRef(null);
|
|
27760
|
+
var enterTimeout = React.useRef();
|
|
27761
|
+
var exitTimeout = React.useRef();
|
|
27762
|
+
var openWithDelay = React.useCallback(function() {
|
|
27763
|
+
if (!isDisabled2) {
|
|
27764
|
+
enterTimeout.current = window.setTimeout(onOpen, openDelay);
|
|
27765
|
+
}
|
|
27766
|
+
}, [isDisabled2, onOpen, openDelay]);
|
|
27767
|
+
var closeWithDelay = React.useCallback(function() {
|
|
27768
|
+
if (enterTimeout.current) {
|
|
27769
|
+
clearTimeout(enterTimeout.current);
|
|
27770
|
+
}
|
|
27771
|
+
exitTimeout.current = window.setTimeout(onClose, closeDelay);
|
|
27772
|
+
}, [closeDelay, onClose]);
|
|
27773
|
+
var onClick = React.useCallback(function() {
|
|
27774
|
+
if (closeOnClick) {
|
|
27775
|
+
closeWithDelay();
|
|
27776
|
+
}
|
|
27777
|
+
}, [closeOnClick, closeWithDelay]);
|
|
27778
|
+
var onMouseDown = React.useCallback(function() {
|
|
27779
|
+
if (closeOnMouseDown) {
|
|
27780
|
+
closeWithDelay();
|
|
27781
|
+
}
|
|
27782
|
+
}, [closeOnMouseDown, closeWithDelay]);
|
|
27783
|
+
var onKeyDown = React.useCallback(function(event) {
|
|
27784
|
+
if (isOpen && event.key === "Escape") {
|
|
27785
|
+
closeWithDelay();
|
|
27786
|
+
}
|
|
27787
|
+
}, [isOpen, closeWithDelay]);
|
|
27788
|
+
useEventListener("keydown", closeOnEsc ? onKeyDown : void 0);
|
|
27789
|
+
React.useEffect(function() {
|
|
27790
|
+
return function() {
|
|
27791
|
+
clearTimeout(enterTimeout.current);
|
|
27792
|
+
clearTimeout(exitTimeout.current);
|
|
27793
|
+
};
|
|
27794
|
+
}, []);
|
|
27795
|
+
useEventListener("mouseleave", closeWithDelay, function() {
|
|
27796
|
+
return ref.current;
|
|
27797
|
+
});
|
|
27798
|
+
var getTriggerProps = React.useCallback(function(props2, _ref2) {
|
|
27799
|
+
if (props2 === void 0) {
|
|
27800
|
+
props2 = {};
|
|
27801
|
+
}
|
|
27802
|
+
if (_ref2 === void 0) {
|
|
27803
|
+
_ref2 = null;
|
|
27804
|
+
}
|
|
27805
|
+
var triggerProps = _extends({}, props2, {
|
|
27806
|
+
ref: mergeRefs(ref, _ref2, referenceRef),
|
|
27807
|
+
onMouseEnter: callAllHandlers(props2.onMouseEnter, openWithDelay),
|
|
27808
|
+
onClick: callAllHandlers(props2.onClick, onClick),
|
|
27809
|
+
onMouseDown: callAllHandlers(props2.onMouseDown, onMouseDown),
|
|
27810
|
+
onFocus: callAllHandlers(props2.onFocus, openWithDelay),
|
|
27811
|
+
onBlur: callAllHandlers(props2.onBlur, closeWithDelay),
|
|
27812
|
+
"aria-describedby": isOpen ? tooltipId : void 0
|
|
27813
|
+
});
|
|
27814
|
+
return triggerProps;
|
|
27815
|
+
}, [openWithDelay, closeWithDelay, onMouseDown, isOpen, tooltipId, onClick, referenceRef]);
|
|
27816
|
+
var getTooltipPositionerProps = React.useCallback(function(props2, forwardedRef) {
|
|
27817
|
+
var _extends2;
|
|
27818
|
+
if (props2 === void 0) {
|
|
27819
|
+
props2 = {};
|
|
27820
|
+
}
|
|
27821
|
+
if (forwardedRef === void 0) {
|
|
27822
|
+
forwardedRef = null;
|
|
27823
|
+
}
|
|
27824
|
+
return getPopperProps(_extends({}, props2, {
|
|
27825
|
+
style: _extends({}, props2.style, (_extends2 = {}, _extends2[cssVars.arrowSize["var"]] = arrowSize ? px$1(arrowSize) : void 0, _extends2[cssVars.arrowShadowColor["var"]] = arrowShadowColor, _extends2))
|
|
27826
|
+
}), forwardedRef);
|
|
27827
|
+
}, [getPopperProps, arrowSize, arrowShadowColor]);
|
|
27828
|
+
var getTooltipProps = React.useCallback(function(props2, _ref2) {
|
|
27829
|
+
if (props2 === void 0) {
|
|
27830
|
+
props2 = {};
|
|
27831
|
+
}
|
|
27832
|
+
if (_ref2 === void 0) {
|
|
27833
|
+
_ref2 = null;
|
|
27834
|
+
}
|
|
27835
|
+
var tooltipProps = _extends({
|
|
27836
|
+
ref: _ref2
|
|
27837
|
+
}, htmlProps, props2, {
|
|
27838
|
+
id: tooltipId,
|
|
27839
|
+
role: "tooltip",
|
|
27840
|
+
style: _extends({}, props2.style, {
|
|
27841
|
+
position: "relative",
|
|
27842
|
+
transformOrigin: cssVars.transformOrigin.varRef
|
|
27843
|
+
})
|
|
27844
|
+
});
|
|
27845
|
+
return tooltipProps;
|
|
27846
|
+
}, [htmlProps, tooltipId]);
|
|
27847
|
+
return {
|
|
27848
|
+
isOpen,
|
|
27849
|
+
show: openWithDelay,
|
|
27850
|
+
hide: closeWithDelay,
|
|
27851
|
+
getTriggerProps,
|
|
27852
|
+
getTooltipProps,
|
|
27853
|
+
getTooltipPositionerProps,
|
|
27854
|
+
getArrowProps,
|
|
27855
|
+
getArrowInnerProps
|
|
27856
|
+
};
|
|
27857
|
+
}
|
|
27858
|
+
var _excluded = ["children", "label", "shouldWrapChildren", "aria-label", "hasArrow", "bg", "portalProps", "background", "backgroundColor", "bgColor"];
|
|
27859
|
+
var StyledTooltip = chakra(motion.div);
|
|
27860
|
+
var Tooltip = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
27861
|
+
var _ref2, _ref22;
|
|
27862
|
+
var styles2 = useStyleConfig("Tooltip", props);
|
|
27863
|
+
var ownProps = omitThemingProps(props);
|
|
27864
|
+
var theme2 = useTheme();
|
|
27865
|
+
var children = ownProps.children, label = ownProps.label, shouldWrapChildren = ownProps.shouldWrapChildren, ariaLabel = ownProps["aria-label"], hasArrow = ownProps.hasArrow, bg2 = ownProps.bg, portalProps = ownProps.portalProps, background2 = ownProps.background, backgroundColor = ownProps.backgroundColor, bgColor = ownProps.bgColor, rest = _objectWithoutPropertiesLoose(ownProps, _excluded);
|
|
27866
|
+
var userDefinedBg = (_ref2 = (_ref22 = background2 != null ? background2 : backgroundColor) != null ? _ref22 : bg2) != null ? _ref2 : bgColor;
|
|
27867
|
+
if (userDefinedBg) {
|
|
27868
|
+
styles2.bg = userDefinedBg;
|
|
27869
|
+
styles2[cssVars.arrowBg["var"]] = getCSSVar(theme2, "colors", userDefinedBg);
|
|
27870
|
+
}
|
|
27871
|
+
var tooltip2 = useTooltip(_extends({}, rest, {
|
|
27872
|
+
direction: theme2.direction
|
|
27873
|
+
}));
|
|
27874
|
+
var shouldWrap = isString$1(children) || shouldWrapChildren;
|
|
27875
|
+
var trigger;
|
|
27876
|
+
if (shouldWrap) {
|
|
27877
|
+
trigger = /* @__PURE__ */ React.createElement(chakra.span, _extends({
|
|
27878
|
+
tabIndex: 0
|
|
27879
|
+
}, tooltip2.getTriggerProps()), children);
|
|
27880
|
+
} else {
|
|
27881
|
+
var child = React.Children.only(children);
|
|
27882
|
+
trigger = /* @__PURE__ */ React.cloneElement(child, tooltip2.getTriggerProps(child.props, child.ref));
|
|
27883
|
+
}
|
|
27884
|
+
var hasAriaLabel = !!ariaLabel;
|
|
27885
|
+
var _tooltipProps = tooltip2.getTooltipProps({}, ref);
|
|
27886
|
+
var tooltipProps = hasAriaLabel ? omit(_tooltipProps, ["role", "id"]) : _tooltipProps;
|
|
27887
|
+
var hiddenProps = pick(_tooltipProps, ["role", "id"]);
|
|
27888
|
+
if (!label) {
|
|
27889
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
27890
|
+
}
|
|
27891
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, trigger, /* @__PURE__ */ React.createElement(AnimatePresence, null, tooltip2.isOpen && /* @__PURE__ */ React.createElement(Portal, portalProps, /* @__PURE__ */ React.createElement(chakra.div, _extends({}, tooltip2.getTooltipPositionerProps(), {
|
|
27892
|
+
__css: {
|
|
27893
|
+
zIndex: styles2.zIndex,
|
|
27894
|
+
pointerEvents: "none"
|
|
27895
|
+
}
|
|
27896
|
+
}), /* @__PURE__ */ React.createElement(StyledTooltip, _extends({
|
|
27897
|
+
variants: scale
|
|
27898
|
+
}, tooltipProps, {
|
|
27899
|
+
initial: "exit",
|
|
27900
|
+
animate: "enter",
|
|
27901
|
+
exit: "exit",
|
|
27902
|
+
__css: styles2
|
|
27903
|
+
}), label, hasAriaLabel && /* @__PURE__ */ React.createElement(VisuallyHidden, hiddenProps, ariaLabel), hasArrow && /* @__PURE__ */ React.createElement(chakra.div, {
|
|
27904
|
+
"data-popper-arrow": true,
|
|
27905
|
+
className: "chakra-tooltip__arrow-wrapper"
|
|
27906
|
+
}, /* @__PURE__ */ React.createElement(chakra.div, {
|
|
27907
|
+
"data-popper-arrow-inner": true,
|
|
27908
|
+
className: "chakra-tooltip__arrow",
|
|
27909
|
+
__css: {
|
|
27910
|
+
bg: styles2.bg
|
|
27911
|
+
}
|
|
27912
|
+
})))))));
|
|
27913
|
+
});
|
|
25997
27914
|
var ChakraProvider2 = ChakraProvider$1;
|
|
25998
27915
|
ChakraProvider2.defaultProps = {
|
|
25999
27916
|
theme: theme$1
|
|
@@ -26289,14 +28206,14 @@ var createRipples = function(defaultProps2) {
|
|
|
26289
28206
|
ev.stopPropagation();
|
|
26290
28207
|
var pageX = ev.pageX, pageY = ev.pageY, currentTarget = ev.currentTarget;
|
|
26291
28208
|
var rect = currentTarget.getBoundingClientRect();
|
|
26292
|
-
var
|
|
26293
|
-
var
|
|
28209
|
+
var left2 = pageX - (rect.left + window.scrollX);
|
|
28210
|
+
var top2 = pageY - (rect.top + window.scrollY);
|
|
26294
28211
|
var size2 = Math.max(rect.width, rect.height);
|
|
26295
28212
|
_this.setState(function(state2) {
|
|
26296
28213
|
return {
|
|
26297
28214
|
rippleStyle: __assign$1({}, state2.rippleStyle, {
|
|
26298
|
-
left,
|
|
26299
|
-
top,
|
|
28215
|
+
left: left2,
|
|
28216
|
+
top: top2,
|
|
26300
28217
|
opacity: 1,
|
|
26301
28218
|
transform: "translate(-50%, -50%)",
|
|
26302
28219
|
transition: "initial",
|
|
@@ -27278,6 +29195,39 @@ function BtnLink({
|
|
|
27278
29195
|
});
|
|
27279
29196
|
}
|
|
27280
29197
|
BtnLink.displayName = "BtnLink";
|
|
29198
|
+
const NewTooltip = ({
|
|
29199
|
+
children,
|
|
29200
|
+
className = "tooltip",
|
|
29201
|
+
label,
|
|
29202
|
+
isDisabled: isDisabled2 = false,
|
|
29203
|
+
m: m2,
|
|
29204
|
+
placement = "bottom"
|
|
29205
|
+
}) => {
|
|
29206
|
+
return /* @__PURE__ */ jsx(Tooltip, {
|
|
29207
|
+
sx: {
|
|
29208
|
+
bg: vars("colors-neutral-darkCharcoal"),
|
|
29209
|
+
borderRadius: "10px",
|
|
29210
|
+
color: "white !important",
|
|
29211
|
+
fontSize: "12px",
|
|
29212
|
+
fontWeight: "400",
|
|
29213
|
+
maxWidth: "170px",
|
|
29214
|
+
padding: "8px",
|
|
29215
|
+
".chakra-tooltip__arrow": {
|
|
29216
|
+
bg: `${vars("colors-neutral-darkCharcoal")} !important`
|
|
29217
|
+
}
|
|
29218
|
+
},
|
|
29219
|
+
className,
|
|
29220
|
+
closeOnClick: true,
|
|
29221
|
+
label,
|
|
29222
|
+
m: m2,
|
|
29223
|
+
hasArrow: true,
|
|
29224
|
+
isDisabled: isDisabled2,
|
|
29225
|
+
placement,
|
|
29226
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
29227
|
+
children
|
|
29228
|
+
})
|
|
29229
|
+
});
|
|
29230
|
+
};
|
|
27281
29231
|
const STUDENT = 4;
|
|
27282
29232
|
function Header() {
|
|
27283
29233
|
const {
|
|
@@ -28460,5 +30410,5 @@ function CourseList({
|
|
|
28460
30410
|
});
|
|
28461
30411
|
}
|
|
28462
30412
|
CourseList.displayName = "CourseList";
|
|
28463
|
-
export { Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, CourseStatus, index as Icons, Label, Progress, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, vars };
|
|
30413
|
+
export { Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, CourseStatus, index as Icons, Label, NewTooltip, Progress, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, vars };
|
|
28464
30414
|
//# sourceMappingURL=eclass-ui-kit.es.js.map
|