@janbox/storefront-builder 2.0.7 → 2.0.8
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/{countdown-timer.inspector-DEhYueYx.js → countdown-timer.inspector-BZH-hb1h.js} +712 -714
- package/dist/{dataset-DToMsct-.js → dataset-BMKs5zYr.js} +569 -584
- package/dist/editor.js +9 -7
- package/dist/index-DWK1bwW0.js +4 -0
- package/dist/index.js +4 -4
- package/dist/templates.js +1 -1
- package/dist/{tooltip-Dw5U2fSJ.js → tooltip-BTVACKyw.js} +1 -1
- package/package.json +1 -1
- package/dist/index-D8gzgG22.js +0 -4
|
@@ -198,7 +198,7 @@ function wi() {
|
|
|
198
198
|
})(r)
|
|
199
199
|
);
|
|
200
200
|
M.ProcessingInstruction = a;
|
|
201
|
-
var
|
|
201
|
+
var c = (
|
|
202
202
|
/** @class */
|
|
203
203
|
(function(f) {
|
|
204
204
|
t(m, f);
|
|
@@ -238,8 +238,8 @@ function wi() {
|
|
|
238
238
|
}), m;
|
|
239
239
|
})(i)
|
|
240
240
|
);
|
|
241
|
-
M.NodeWithChildren =
|
|
242
|
-
var
|
|
241
|
+
M.NodeWithChildren = c;
|
|
242
|
+
var l = (
|
|
243
243
|
/** @class */
|
|
244
244
|
(function(f) {
|
|
245
245
|
t(m, f);
|
|
@@ -254,9 +254,9 @@ function wi() {
|
|
|
254
254
|
enumerable: !1,
|
|
255
255
|
configurable: !0
|
|
256
256
|
}), m;
|
|
257
|
-
})(
|
|
257
|
+
})(c)
|
|
258
258
|
);
|
|
259
|
-
M.CDATA =
|
|
259
|
+
M.CDATA = l;
|
|
260
260
|
var u = (
|
|
261
261
|
/** @class */
|
|
262
262
|
(function(f) {
|
|
@@ -272,7 +272,7 @@ function wi() {
|
|
|
272
272
|
enumerable: !1,
|
|
273
273
|
configurable: !0
|
|
274
274
|
}), m;
|
|
275
|
-
})(
|
|
275
|
+
})(c)
|
|
276
276
|
);
|
|
277
277
|
M.Document = u;
|
|
278
278
|
var d = (
|
|
@@ -320,7 +320,7 @@ function wi() {
|
|
|
320
320
|
enumerable: !1,
|
|
321
321
|
configurable: !0
|
|
322
322
|
}), m;
|
|
323
|
-
})(
|
|
323
|
+
})(c)
|
|
324
324
|
);
|
|
325
325
|
M.Element = d;
|
|
326
326
|
function h(f) {
|
|
@@ -364,7 +364,7 @@ function wi() {
|
|
|
364
364
|
return Kt.parent = P;
|
|
365
365
|
}), f.namespace != null && (P.namespace = f.namespace), f["x-attribsNamespace"] && (P["x-attribsNamespace"] = e({}, f["x-attribsNamespace"])), f["x-attribsPrefix"] && (P["x-attribsPrefix"] = e({}, f["x-attribsPrefix"])), b = P;
|
|
366
366
|
} else if (p(f)) {
|
|
367
|
-
var w = m ? S(f.children) : [], k = new
|
|
367
|
+
var w = m ? S(f.children) : [], k = new l(w);
|
|
368
368
|
w.forEach(function(_) {
|
|
369
369
|
return _.parent = k;
|
|
370
370
|
}), b = k;
|
|
@@ -393,16 +393,16 @@ function wi() {
|
|
|
393
393
|
var Ci;
|
|
394
394
|
function hs() {
|
|
395
395
|
return Ci || (Ci = 1, (function(t) {
|
|
396
|
-
var e = St && St.__createBinding || (Object.create ? (function(a,
|
|
397
|
-
u === void 0 && (u =
|
|
398
|
-
var d = Object.getOwnPropertyDescriptor(
|
|
399
|
-
(!d || ("get" in d ? !
|
|
400
|
-
return l
|
|
396
|
+
var e = St && St.__createBinding || (Object.create ? (function(a, c, l, u) {
|
|
397
|
+
u === void 0 && (u = l);
|
|
398
|
+
var d = Object.getOwnPropertyDescriptor(c, l);
|
|
399
|
+
(!d || ("get" in d ? !c.__esModule : d.writable || d.configurable)) && (d = { enumerable: !0, get: function() {
|
|
400
|
+
return c[l];
|
|
401
401
|
} }), Object.defineProperty(a, u, d);
|
|
402
|
-
}) : (function(a,
|
|
403
|
-
u === void 0 && (u =
|
|
404
|
-
})), n = St && St.__exportStar || function(a,
|
|
405
|
-
for (var
|
|
402
|
+
}) : (function(a, c, l, u) {
|
|
403
|
+
u === void 0 && (u = l), a[u] = c[l];
|
|
404
|
+
})), n = St && St.__exportStar || function(a, c) {
|
|
405
|
+
for (var l in a) l !== "default" && !Object.prototype.hasOwnProperty.call(c, l) && e(c, a, l);
|
|
406
406
|
};
|
|
407
407
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.DomHandler = void 0;
|
|
408
408
|
var i = /* @__PURE__ */ fs(), r = /* @__PURE__ */ wi();
|
|
@@ -414,57 +414,57 @@ function hs() {
|
|
|
414
414
|
}, s = (
|
|
415
415
|
/** @class */
|
|
416
416
|
(function() {
|
|
417
|
-
function a(
|
|
418
|
-
this.dom = [], this.root = new r.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof
|
|
417
|
+
function a(c, l, u) {
|
|
418
|
+
this.dom = [], this.root = new r.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof l == "function" && (u = l, l = o), typeof c == "object" && (l = c, c = void 0), this.callback = c ?? null, this.options = l ?? o, this.elementCB = u ?? null;
|
|
419
419
|
}
|
|
420
|
-
return a.prototype.onparserinit = function(
|
|
421
|
-
this.parser =
|
|
420
|
+
return a.prototype.onparserinit = function(c) {
|
|
421
|
+
this.parser = c;
|
|
422
422
|
}, a.prototype.onreset = function() {
|
|
423
423
|
this.dom = [], this.root = new r.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
|
|
424
424
|
}, a.prototype.onend = function() {
|
|
425
425
|
this.done || (this.done = !0, this.parser = null, this.handleCallback(null));
|
|
426
|
-
}, a.prototype.onerror = function(
|
|
427
|
-
this.handleCallback(
|
|
426
|
+
}, a.prototype.onerror = function(c) {
|
|
427
|
+
this.handleCallback(c);
|
|
428
428
|
}, a.prototype.onclosetag = function() {
|
|
429
429
|
this.lastNode = null;
|
|
430
|
-
var
|
|
431
|
-
this.options.withEndIndices && (
|
|
432
|
-
}, a.prototype.onopentag = function(
|
|
433
|
-
var u = this.options.xmlMode ? i.ElementType.Tag : void 0, d = new r.Element(
|
|
430
|
+
var c = this.tagStack.pop();
|
|
431
|
+
this.options.withEndIndices && (c.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(c);
|
|
432
|
+
}, a.prototype.onopentag = function(c, l) {
|
|
433
|
+
var u = this.options.xmlMode ? i.ElementType.Tag : void 0, d = new r.Element(c, l, void 0, u);
|
|
434
434
|
this.addNode(d), this.tagStack.push(d);
|
|
435
|
-
}, a.prototype.ontext = function(
|
|
436
|
-
var
|
|
437
|
-
if (
|
|
438
|
-
|
|
435
|
+
}, a.prototype.ontext = function(c) {
|
|
436
|
+
var l = this.lastNode;
|
|
437
|
+
if (l && l.type === i.ElementType.Text)
|
|
438
|
+
l.data += c, this.options.withEndIndices && (l.endIndex = this.parser.endIndex);
|
|
439
439
|
else {
|
|
440
|
-
var u = new r.Text(
|
|
440
|
+
var u = new r.Text(c);
|
|
441
441
|
this.addNode(u), this.lastNode = u;
|
|
442
442
|
}
|
|
443
|
-
}, a.prototype.oncomment = function(
|
|
443
|
+
}, a.prototype.oncomment = function(c) {
|
|
444
444
|
if (this.lastNode && this.lastNode.type === i.ElementType.Comment) {
|
|
445
|
-
this.lastNode.data +=
|
|
445
|
+
this.lastNode.data += c;
|
|
446
446
|
return;
|
|
447
447
|
}
|
|
448
|
-
var
|
|
449
|
-
this.addNode(
|
|
448
|
+
var l = new r.Comment(c);
|
|
449
|
+
this.addNode(l), this.lastNode = l;
|
|
450
450
|
}, a.prototype.oncommentend = function() {
|
|
451
451
|
this.lastNode = null;
|
|
452
452
|
}, a.prototype.oncdatastart = function() {
|
|
453
|
-
var
|
|
454
|
-
this.addNode(
|
|
453
|
+
var c = new r.Text(""), l = new r.CDATA([c]);
|
|
454
|
+
this.addNode(l), c.parent = l, this.lastNode = c;
|
|
455
455
|
}, a.prototype.oncdataend = function() {
|
|
456
456
|
this.lastNode = null;
|
|
457
|
-
}, a.prototype.onprocessinginstruction = function(
|
|
458
|
-
var u = new r.ProcessingInstruction(
|
|
457
|
+
}, a.prototype.onprocessinginstruction = function(c, l) {
|
|
458
|
+
var u = new r.ProcessingInstruction(c, l);
|
|
459
459
|
this.addNode(u);
|
|
460
|
-
}, a.prototype.handleCallback = function(
|
|
460
|
+
}, a.prototype.handleCallback = function(c) {
|
|
461
461
|
if (typeof this.callback == "function")
|
|
462
|
-
this.callback(
|
|
463
|
-
else if (
|
|
464
|
-
throw
|
|
465
|
-
}, a.prototype.addNode = function(
|
|
466
|
-
var
|
|
467
|
-
this.options.withStartIndices && (
|
|
462
|
+
this.callback(c, this.dom);
|
|
463
|
+
else if (c)
|
|
464
|
+
throw c;
|
|
465
|
+
}, a.prototype.addNode = function(c) {
|
|
466
|
+
var l = this.tagStack[this.tagStack.length - 1], u = l.children[l.children.length - 1];
|
|
467
|
+
this.options.withStartIndices && (c.startIndex = this.parser.startIndex), this.options.withEndIndices && (c.endIndex = this.parser.endIndex), l.children.push(c), u && (c.prev = u, u.next = c), c.parent = l, this.lastNode = null;
|
|
468
468
|
}, a;
|
|
469
469
|
})()
|
|
470
470
|
);
|
|
@@ -514,46 +514,46 @@ function Wl() {
|
|
|
514
514
|
var Si;
|
|
515
515
|
function ps() {
|
|
516
516
|
if (Si) return mt;
|
|
517
|
-
Si = 1, Object.defineProperty(mt, "__esModule", { value: !0 }), mt.formatAttributes = i, mt.hasOpenTag = o, mt.escapeSpecialCharacters = s, mt.revertEscapedCharacters = a, mt.formatDOM =
|
|
517
|
+
Si = 1, Object.defineProperty(mt, "__esModule", { value: !0 }), mt.formatAttributes = i, mt.hasOpenTag = o, mt.escapeSpecialCharacters = s, mt.revertEscapedCharacters = a, mt.formatDOM = c;
|
|
518
518
|
var t = /* @__PURE__ */ hs(), e = Wl();
|
|
519
|
-
function n(
|
|
520
|
-
return e.CASE_SENSITIVE_TAG_NAMES_MAP[
|
|
519
|
+
function n(l) {
|
|
520
|
+
return e.CASE_SENSITIVE_TAG_NAMES_MAP[l];
|
|
521
521
|
}
|
|
522
|
-
function i(
|
|
523
|
-
for (var u = {}, d = 0, h =
|
|
524
|
-
var p =
|
|
522
|
+
function i(l) {
|
|
523
|
+
for (var u = {}, d = 0, h = l.length; d < h; d++) {
|
|
524
|
+
var p = l[d];
|
|
525
525
|
u[p.name] = p.value;
|
|
526
526
|
}
|
|
527
527
|
return u;
|
|
528
528
|
}
|
|
529
|
-
function r(
|
|
530
|
-
|
|
531
|
-
var u = n(
|
|
532
|
-
return u ||
|
|
529
|
+
function r(l) {
|
|
530
|
+
l = l.toLowerCase();
|
|
531
|
+
var u = n(l);
|
|
532
|
+
return u || l;
|
|
533
533
|
}
|
|
534
|
-
function o(
|
|
535
|
-
var d = "<" + u, h =
|
|
534
|
+
function o(l, u) {
|
|
535
|
+
var d = "<" + u, h = l.toLowerCase().indexOf(d);
|
|
536
536
|
if (h === -1)
|
|
537
537
|
return !1;
|
|
538
|
-
var p =
|
|
538
|
+
var p = l[h + d.length];
|
|
539
539
|
return p === ">" || p === " " || p === " " || p === `
|
|
540
540
|
` || p === "\r" || p === "/";
|
|
541
541
|
}
|
|
542
|
-
function s(
|
|
543
|
-
return
|
|
542
|
+
function s(l) {
|
|
543
|
+
return l.replace(e.CARRIAGE_RETURN_REGEX, e.CARRIAGE_RETURN_PLACEHOLDER);
|
|
544
544
|
}
|
|
545
|
-
function a(
|
|
546
|
-
return
|
|
545
|
+
function a(l) {
|
|
546
|
+
return l.replace(e.CARRIAGE_RETURN_PLACEHOLDER_REGEX, e.CARRIAGE_RETURN);
|
|
547
547
|
}
|
|
548
|
-
function l
|
|
548
|
+
function c(l, u, d) {
|
|
549
549
|
var h, p, T, y;
|
|
550
550
|
u === void 0 && (u = null);
|
|
551
|
-
for (var v = [], x, C = 0, A =
|
|
552
|
-
var S =
|
|
551
|
+
for (var v = [], x, C = 0, A = l.length; C < A; C++) {
|
|
552
|
+
var S = l[C];
|
|
553
553
|
switch (S.nodeType) {
|
|
554
554
|
case 1: {
|
|
555
555
|
var f = r(S.nodeName);
|
|
556
|
-
x = new t.Element(f, i(S.attributes)), x.children =
|
|
556
|
+
x = new t.Element(f, i(S.attributes)), x.children = c(
|
|
557
557
|
// template children are on content
|
|
558
558
|
f === "template" ? S.content.childNodes : S.childNodes,
|
|
559
559
|
x
|
|
@@ -586,9 +586,9 @@ function Hl() {
|
|
|
586
586
|
throw new Error("This browser does not support `DOMParser.prototype.parseFromString`");
|
|
587
587
|
}, a = typeof window == "object" && window.DOMParser;
|
|
588
588
|
if (typeof a == "function") {
|
|
589
|
-
var
|
|
589
|
+
var c = new a(), l = "text/html";
|
|
590
590
|
s = function(y, v) {
|
|
591
|
-
return v && (y = "<".concat(v, ">").concat(y, "</").concat(v, ">")),
|
|
591
|
+
return v && (y = "<".concat(v, ">").concat(y, "</").concat(v, ">")), c.parseFromString(y, l);
|
|
592
592
|
}, o = s;
|
|
593
593
|
}
|
|
594
594
|
if (typeof document == "object" && document.implementation) {
|
|
@@ -1162,12 +1162,12 @@ function zl() {
|
|
|
1162
1162
|
Di = 1;
|
|
1163
1163
|
const t = 0, e = 1, n = 2, i = 3, r = 4, o = 5, s = 6;
|
|
1164
1164
|
function a(f) {
|
|
1165
|
-
return
|
|
1165
|
+
return l.hasOwnProperty(f) ? l[f] : null;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function c(f, m, b, w, P, k, N) {
|
|
1168
1168
|
this.acceptsBooleans = m === n || m === i || m === r, this.attributeName = w, this.attributeNamespace = P, this.mustUseProperty = b, this.propertyName = f, this.type = m, this.sanitizeURL = k, this.removeEmptyString = N;
|
|
1169
1169
|
}
|
|
1170
|
-
const
|
|
1170
|
+
const l = {};
|
|
1171
1171
|
[
|
|
1172
1172
|
"children",
|
|
1173
1173
|
"dangerouslySetInnerHTML",
|
|
@@ -1181,7 +1181,7 @@ function zl() {
|
|
|
1181
1181
|
"suppressHydrationWarning",
|
|
1182
1182
|
"style"
|
|
1183
1183
|
].forEach((f) => {
|
|
1184
|
-
|
|
1184
|
+
l[f] = new c(
|
|
1185
1185
|
f,
|
|
1186
1186
|
t,
|
|
1187
1187
|
!1,
|
|
@@ -1201,7 +1201,7 @@ function zl() {
|
|
|
1201
1201
|
["htmlFor", "for"],
|
|
1202
1202
|
["httpEquiv", "http-equiv"]
|
|
1203
1203
|
].forEach(([f, m]) => {
|
|
1204
|
-
|
|
1204
|
+
l[f] = new c(
|
|
1205
1205
|
f,
|
|
1206
1206
|
e,
|
|
1207
1207
|
!1,
|
|
@@ -1216,7 +1216,7 @@ function zl() {
|
|
|
1216
1216
|
// removeEmptyString
|
|
1217
1217
|
);
|
|
1218
1218
|
}), ["contentEditable", "draggable", "spellCheck", "value"].forEach((f) => {
|
|
1219
|
-
|
|
1219
|
+
l[f] = new c(
|
|
1220
1220
|
f,
|
|
1221
1221
|
n,
|
|
1222
1222
|
!1,
|
|
@@ -1236,7 +1236,7 @@ function zl() {
|
|
|
1236
1236
|
"focusable",
|
|
1237
1237
|
"preserveAlpha"
|
|
1238
1238
|
].forEach((f) => {
|
|
1239
|
-
|
|
1239
|
+
l[f] = new c(
|
|
1240
1240
|
f,
|
|
1241
1241
|
n,
|
|
1242
1242
|
!1,
|
|
@@ -1278,7 +1278,7 @@ function zl() {
|
|
|
1278
1278
|
// Microdata
|
|
1279
1279
|
"itemScope"
|
|
1280
1280
|
].forEach((f) => {
|
|
1281
|
-
|
|
1281
|
+
l[f] = new c(
|
|
1282
1282
|
f,
|
|
1283
1283
|
i,
|
|
1284
1284
|
!1,
|
|
@@ -1303,7 +1303,7 @@ function zl() {
|
|
|
1303
1303
|
// you'll need to set attributeName to name.toLowerCase()
|
|
1304
1304
|
// instead in the assignment below.
|
|
1305
1305
|
].forEach((f) => {
|
|
1306
|
-
|
|
1306
|
+
l[f] = new c(
|
|
1307
1307
|
f,
|
|
1308
1308
|
i,
|
|
1309
1309
|
!0,
|
|
@@ -1324,7 +1324,7 @@ function zl() {
|
|
|
1324
1324
|
// you'll need to set attributeName to name.toLowerCase()
|
|
1325
1325
|
// instead in the assignment below.
|
|
1326
1326
|
].forEach((f) => {
|
|
1327
|
-
|
|
1327
|
+
l[f] = new c(
|
|
1328
1328
|
f,
|
|
1329
1329
|
r,
|
|
1330
1330
|
!1,
|
|
@@ -1347,7 +1347,7 @@ function zl() {
|
|
|
1347
1347
|
// you'll need to set attributeName to name.toLowerCase()
|
|
1348
1348
|
// instead in the assignment below.
|
|
1349
1349
|
].forEach((f) => {
|
|
1350
|
-
|
|
1350
|
+
l[f] = new c(
|
|
1351
1351
|
f,
|
|
1352
1352
|
s,
|
|
1353
1353
|
!1,
|
|
@@ -1362,7 +1362,7 @@ function zl() {
|
|
|
1362
1362
|
// removeEmptyString
|
|
1363
1363
|
);
|
|
1364
1364
|
}), ["rowSpan", "start"].forEach((f) => {
|
|
1365
|
-
|
|
1365
|
+
l[f] = new c(
|
|
1366
1366
|
f,
|
|
1367
1367
|
o,
|
|
1368
1368
|
!1,
|
|
@@ -1457,7 +1457,7 @@ function zl() {
|
|
|
1457
1457
|
// instead in the assignment below.
|
|
1458
1458
|
].forEach((f) => {
|
|
1459
1459
|
const m = f.replace(d, h);
|
|
1460
|
-
|
|
1460
|
+
l[m] = new c(
|
|
1461
1461
|
m,
|
|
1462
1462
|
e,
|
|
1463
1463
|
!1,
|
|
@@ -1482,7 +1482,7 @@ function zl() {
|
|
|
1482
1482
|
// instead in the assignment below.
|
|
1483
1483
|
].forEach((f) => {
|
|
1484
1484
|
const m = f.replace(d, h);
|
|
1485
|
-
|
|
1485
|
+
l[m] = new c(
|
|
1486
1486
|
m,
|
|
1487
1487
|
e,
|
|
1488
1488
|
!1,
|
|
@@ -1503,7 +1503,7 @@ function zl() {
|
|
|
1503
1503
|
// instead in the assignment below.
|
|
1504
1504
|
].forEach((f) => {
|
|
1505
1505
|
const m = f.replace(d, h);
|
|
1506
|
-
|
|
1506
|
+
l[m] = new c(
|
|
1507
1507
|
m,
|
|
1508
1508
|
e,
|
|
1509
1509
|
!1,
|
|
@@ -1516,7 +1516,7 @@ function zl() {
|
|
|
1516
1516
|
// removeEmptyString
|
|
1517
1517
|
);
|
|
1518
1518
|
}), ["tabIndex", "crossOrigin"].forEach((f) => {
|
|
1519
|
-
|
|
1519
|
+
l[f] = new c(
|
|
1520
1520
|
f,
|
|
1521
1521
|
e,
|
|
1522
1522
|
!1,
|
|
@@ -1532,7 +1532,7 @@ function zl() {
|
|
|
1532
1532
|
);
|
|
1533
1533
|
});
|
|
1534
1534
|
const p = "xlinkHref";
|
|
1535
|
-
|
|
1535
|
+
l[p] = new c(
|
|
1536
1536
|
"xlinkHref",
|
|
1537
1537
|
e,
|
|
1538
1538
|
!1,
|
|
@@ -1544,7 +1544,7 @@ function zl() {
|
|
|
1544
1544
|
!1
|
|
1545
1545
|
// removeEmptyString
|
|
1546
1546
|
), ["src", "href", "action", "formAction"].forEach((f) => {
|
|
1547
|
-
|
|
1547
|
+
l[f] = new c(
|
|
1548
1548
|
f,
|
|
1549
1549
|
e,
|
|
1550
1550
|
!1,
|
|
@@ -1578,8 +1578,8 @@ var Zt = {}, It = {}, Je, ki;
|
|
|
1578
1578
|
function ql() {
|
|
1579
1579
|
if (ki) return Je;
|
|
1580
1580
|
ki = 1;
|
|
1581
|
-
var t = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, e = /\n/g, n = /^\s*/, i = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, r = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, s = /^[;\s]*/, a = /^\s+|\s+$/g,
|
|
1582
|
-
`,
|
|
1581
|
+
var t = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, e = /\n/g, n = /^\s*/, i = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, r = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, s = /^[;\s]*/, a = /^\s+|\s+$/g, c = `
|
|
1582
|
+
`, l = "/", u = "*", d = "", h = "comment", p = "declaration";
|
|
1583
1583
|
function T(v, x) {
|
|
1584
1584
|
if (typeof v != "string")
|
|
1585
1585
|
throw new TypeError("First argument must be a string");
|
|
@@ -1589,7 +1589,7 @@ function ql() {
|
|
|
1589
1589
|
function S(_) {
|
|
1590
1590
|
var V = _.match(e);
|
|
1591
1591
|
V && (C += V.length);
|
|
1592
|
-
var tt = _.lastIndexOf(
|
|
1592
|
+
var tt = _.lastIndexOf(c);
|
|
1593
1593
|
A = ~tt ? _.length - tt : A + _.length;
|
|
1594
1594
|
}
|
|
1595
1595
|
function f() {
|
|
@@ -1626,8 +1626,8 @@ function ql() {
|
|
|
1626
1626
|
}
|
|
1627
1627
|
function N() {
|
|
1628
1628
|
var _ = f();
|
|
1629
|
-
if (!(
|
|
1630
|
-
for (var V = 2; d != v.charAt(V) && (u != v.charAt(V) ||
|
|
1629
|
+
if (!(l != v.charAt(0) || u != v.charAt(1))) {
|
|
1630
|
+
for (var V = 2; d != v.charAt(V) && (u != v.charAt(V) || l != v.charAt(V + 1)); )
|
|
1631
1631
|
++V;
|
|
1632
1632
|
if (V += 2, d === v.charAt(V - 1))
|
|
1633
1633
|
return b("End of comment missing");
|
|
@@ -1678,11 +1678,11 @@ function Kl() {
|
|
|
1678
1678
|
if (!i || typeof i != "string")
|
|
1679
1679
|
return o;
|
|
1680
1680
|
const s = (0, e.default)(i), a = typeof r == "function";
|
|
1681
|
-
return s.forEach((
|
|
1682
|
-
if (
|
|
1681
|
+
return s.forEach((c) => {
|
|
1682
|
+
if (c.type !== "declaration")
|
|
1683
1683
|
return;
|
|
1684
|
-
const { property:
|
|
1685
|
-
a ? r(
|
|
1684
|
+
const { property: l, value: u } = c;
|
|
1685
|
+
a ? r(l, u, c) : u && (o = o || {}, o[l] = u);
|
|
1686
1686
|
}), o;
|
|
1687
1687
|
}
|
|
1688
1688
|
return It;
|
|
@@ -1691,16 +1691,16 @@ var Jt = {}, Vi;
|
|
|
1691
1691
|
function Xl() {
|
|
1692
1692
|
if (Vi) return Jt;
|
|
1693
1693
|
Vi = 1, Object.defineProperty(Jt, "__esModule", { value: !0 }), Jt.camelCase = void 0;
|
|
1694
|
-
var t = /^--[a-zA-Z0-9_-]+$/, e = /-([a-z])/g, n = /^[^-]+$/, i = /^-(webkit|moz|ms|o|khtml)-/, r = /^-(ms)-/, o = function(
|
|
1695
|
-
return !
|
|
1696
|
-
}, s = function(
|
|
1694
|
+
var t = /^--[a-zA-Z0-9_-]+$/, e = /-([a-z])/g, n = /^[^-]+$/, i = /^-(webkit|moz|ms|o|khtml)-/, r = /^-(ms)-/, o = function(l) {
|
|
1695
|
+
return !l || n.test(l) || t.test(l);
|
|
1696
|
+
}, s = function(l, u) {
|
|
1697
1697
|
return u.toUpperCase();
|
|
1698
|
-
}, a = function(
|
|
1698
|
+
}, a = function(l, u) {
|
|
1699
1699
|
return "".concat(u, "-");
|
|
1700
|
-
},
|
|
1701
|
-
return u === void 0 && (u = {}), o(
|
|
1700
|
+
}, c = function(l, u) {
|
|
1701
|
+
return u === void 0 && (u = {}), o(l) ? l : (l = l.toLowerCase(), u.reactCompat ? l = l.replace(r, a) : l = l.replace(i, a), l.replace(e, s));
|
|
1702
1702
|
};
|
|
1703
|
-
return Jt.camelCase =
|
|
1703
|
+
return Jt.camelCase = c, Jt;
|
|
1704
1704
|
}
|
|
1705
1705
|
var Qt, _i;
|
|
1706
1706
|
function Yl() {
|
|
@@ -1711,8 +1711,8 @@ function Yl() {
|
|
|
1711
1711
|
}, e = t(Kl()), n = Xl();
|
|
1712
1712
|
function i(r, o) {
|
|
1713
1713
|
var s = {};
|
|
1714
|
-
return !r || typeof r != "string" || (0, e.default)(r, function(a,
|
|
1715
|
-
a &&
|
|
1714
|
+
return !r || typeof r != "string" || (0, e.default)(r, function(a, c) {
|
|
1715
|
+
a && c && (s[(0, n.camelCase)(a, o)] = c);
|
|
1716
1716
|
}), s;
|
|
1717
1717
|
}
|
|
1718
1718
|
return i.default = i, Qt = i, Qt;
|
|
@@ -1764,14 +1764,14 @@ function ms() {
|
|
|
1764
1764
|
"html",
|
|
1765
1765
|
"frameset"
|
|
1766
1766
|
]);
|
|
1767
|
-
var
|
|
1767
|
+
var c = function(u) {
|
|
1768
1768
|
return !t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(u.name);
|
|
1769
1769
|
};
|
|
1770
|
-
t.canTextBeChildOfNode =
|
|
1771
|
-
var
|
|
1770
|
+
t.canTextBeChildOfNode = c;
|
|
1771
|
+
var l = function(u) {
|
|
1772
1772
|
return u;
|
|
1773
1773
|
};
|
|
1774
|
-
t.returnFirstArg =
|
|
1774
|
+
t.returnFirstArg = l;
|
|
1775
1775
|
})(Zt)), Zt;
|
|
1776
1776
|
}
|
|
1777
1777
|
var Oi;
|
|
@@ -1782,31 +1782,31 @@ function gs() {
|
|
|
1782
1782
|
reset: !0,
|
|
1783
1783
|
submit: !0
|
|
1784
1784
|
};
|
|
1785
|
-
function o(a,
|
|
1785
|
+
function o(a, c) {
|
|
1786
1786
|
a === void 0 && (a = {});
|
|
1787
|
-
var
|
|
1787
|
+
var l = {}, u = !!(a.type && r[a.type]);
|
|
1788
1788
|
for (var d in a) {
|
|
1789
1789
|
var h = a[d];
|
|
1790
1790
|
if ((0, t.isCustomAttribute)(d)) {
|
|
1791
|
-
|
|
1791
|
+
l[d] = h;
|
|
1792
1792
|
continue;
|
|
1793
1793
|
}
|
|
1794
1794
|
var p = d.toLowerCase(), T = s(p);
|
|
1795
1795
|
if (T) {
|
|
1796
1796
|
var y = (0, t.getPropertyInfo)(T);
|
|
1797
|
-
switch (n.includes(T) && i.includes(
|
|
1797
|
+
switch (n.includes(T) && i.includes(c) && !u && (T = s("default" + p)), l[T] = h, y?.type) {
|
|
1798
1798
|
case t.BOOLEAN:
|
|
1799
|
-
|
|
1799
|
+
l[T] = !0;
|
|
1800
1800
|
break;
|
|
1801
1801
|
case t.OVERLOADED_BOOLEAN:
|
|
1802
|
-
h === "" && (
|
|
1802
|
+
h === "" && (l[T] = !0);
|
|
1803
1803
|
break;
|
|
1804
1804
|
}
|
|
1805
1805
|
continue;
|
|
1806
1806
|
}
|
|
1807
|
-
e.PRESERVE_CUSTOM_ATTRIBUTES && (
|
|
1807
|
+
e.PRESERVE_CUSTOM_ATTRIBUTES && (l[d] = h);
|
|
1808
1808
|
}
|
|
1809
|
-
return (0, e.setStyleProp)(a.style,
|
|
1809
|
+
return (0, e.setStyleProp)(a.style, l), l;
|
|
1810
1810
|
}
|
|
1811
1811
|
function s(a) {
|
|
1812
1812
|
return t.possibleStandardNames[a];
|
|
@@ -1826,13 +1826,13 @@ function Zl() {
|
|
|
1826
1826
|
createElement: e.createElement,
|
|
1827
1827
|
isValidElement: e.isValidElement
|
|
1828
1828
|
};
|
|
1829
|
-
function o(a,
|
|
1830
|
-
var
|
|
1831
|
-
|
|
1832
|
-
for (var T = [], y = typeof
|
|
1829
|
+
function o(a, c) {
|
|
1830
|
+
var l, u, d, h, p;
|
|
1831
|
+
c === void 0 && (c = {});
|
|
1832
|
+
for (var T = [], y = typeof c.replace == "function", v = (l = c.transform) !== null && l !== void 0 ? l : i.returnFirstArg, x = (u = c.library) !== null && u !== void 0 ? u : r, C = x.cloneElement, A = x.createElement, S = x.isValidElement, f = a.length, m = 0; m < f; m++) {
|
|
1833
1833
|
var b = a[m];
|
|
1834
1834
|
if (y) {
|
|
1835
|
-
var w = (d =
|
|
1835
|
+
var w = (d = c.replace) === null || d === void 0 ? void 0 : d.call(c, b, m);
|
|
1836
1836
|
if (S(w)) {
|
|
1837
1837
|
f > 1 && (w = C(w, {
|
|
1838
1838
|
key: (h = w.key) !== null && h !== void 0 ? h : m
|
|
@@ -1842,7 +1842,7 @@ function Zl() {
|
|
|
1842
1842
|
}
|
|
1843
1843
|
if (b.type === "text") {
|
|
1844
1844
|
var P = !b.data.trim().length;
|
|
1845
|
-
if (P && b.parent && !(0, i.canTextBeChildOfNode)(b.parent) ||
|
|
1845
|
+
if (P && b.parent && !(0, i.canTextBeChildOfNode)(b.parent) || c.trim && P)
|
|
1846
1846
|
continue;
|
|
1847
1847
|
T.push(v(b.data, b, m));
|
|
1848
1848
|
continue;
|
|
@@ -1858,7 +1858,7 @@ function Zl() {
|
|
|
1858
1858
|
});
|
|
1859
1859
|
break;
|
|
1860
1860
|
case "tag":
|
|
1861
|
-
b.name === "textarea" && b.children[0] ? N.defaultValue = b.children[0].data : !((p = b.children) === null || p === void 0) && p.length && (Q = o(b.children,
|
|
1861
|
+
b.name === "textarea" && b.children[0] ? N.defaultValue = b.children[0].data : !((p = b.children) === null || p === void 0) && p.length && (Q = o(b.children, c));
|
|
1862
1862
|
break;
|
|
1863
1863
|
// skip all other cases (e.g., comment)
|
|
1864
1864
|
default:
|
|
@@ -1876,8 +1876,8 @@ function Zl() {
|
|
|
1876
1876
|
var Ni;
|
|
1877
1877
|
function Jl() {
|
|
1878
1878
|
return Ni || (Ni = 1, (function(t) {
|
|
1879
|
-
var e = Xt && Xt.__importDefault || function(
|
|
1880
|
-
return
|
|
1879
|
+
var e = Xt && Xt.__importDefault || function(c) {
|
|
1880
|
+
return c && c.__esModule ? c : { default: c };
|
|
1881
1881
|
};
|
|
1882
1882
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.htmlToDOM = t.domToReact = t.attributesToProps = t.Text = t.ProcessingInstruction = t.Element = t.Comment = void 0, t.default = a;
|
|
1883
1883
|
var n = e(Gl());
|
|
@@ -1897,11 +1897,11 @@ function Jl() {
|
|
|
1897
1897
|
return o.Text;
|
|
1898
1898
|
} });
|
|
1899
1899
|
var s = { lowerCaseAttributeNames: !1 };
|
|
1900
|
-
function a(
|
|
1900
|
+
function a(c, l) {
|
|
1901
1901
|
var u;
|
|
1902
|
-
if (typeof
|
|
1902
|
+
if (typeof c != "string")
|
|
1903
1903
|
throw new TypeError("First argument must be a string");
|
|
1904
|
-
return
|
|
1904
|
+
return c ? (0, r.default)((0, n.default)(c, (u = l?.htmlparser2) !== null && u !== void 0 ? u : s), l) : [];
|
|
1905
1905
|
}
|
|
1906
1906
|
})(Xt)), Xt;
|
|
1907
1907
|
}
|
|
@@ -1916,7 +1916,7 @@ function ec(t, e) {
|
|
|
1916
1916
|
if (s.type === "tag" && "attribs" in s && s.attribs) {
|
|
1917
1917
|
const a = s;
|
|
1918
1918
|
a.attribs.id && (a.attribs.id = n(a.attribs.id));
|
|
1919
|
-
const
|
|
1919
|
+
const c = [
|
|
1920
1920
|
"fill",
|
|
1921
1921
|
"stroke",
|
|
1922
1922
|
"filter",
|
|
@@ -1927,15 +1927,15 @@ function ec(t, e) {
|
|
|
1927
1927
|
"marker-end",
|
|
1928
1928
|
"style"
|
|
1929
1929
|
];
|
|
1930
|
-
for (const
|
|
1931
|
-
const u = a.attribs[
|
|
1930
|
+
for (const l of c) {
|
|
1931
|
+
const u = a.attribs[l];
|
|
1932
1932
|
if (u)
|
|
1933
|
-
if (
|
|
1933
|
+
if (l === "style") {
|
|
1934
1934
|
const d = u?.match(/url\(#(.+?)\)/);
|
|
1935
|
-
d && (a.attribs[
|
|
1935
|
+
d && (a.attribs[l] = u.replace(d[1], n(d[1])));
|
|
1936
1936
|
} else {
|
|
1937
1937
|
const d = u?.match(/^url\(#(.+?)\)$/);
|
|
1938
|
-
d && (a.attribs[
|
|
1938
|
+
d && (a.attribs[l] = `url(#${n(d[1])})`);
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
1941
|
return a;
|
|
@@ -1972,18 +1972,18 @@ const vs = (t) => t.info ?? {}, ys = (t) => t.data?.custom ?? {}, nc = (t) => {
|
|
|
1972
1972
|
}, t;
|
|
1973
1973
|
}, Ct = (t = () => ({})) => {
|
|
1974
1974
|
const e = dl(t), { query: n, actions: i } = e, r = le(
|
|
1975
|
-
(s, a,
|
|
1976
|
-
const
|
|
1975
|
+
(s, a, c) => {
|
|
1976
|
+
const l = n.node(s).get(), u = a ?? l.data.parent, d = u ? n.node(u).get() : null;
|
|
1977
1977
|
if (!d)
|
|
1978
1978
|
throw new Error("Parent node not found");
|
|
1979
1979
|
const h = {
|
|
1980
1980
|
data: {
|
|
1981
|
-
...
|
|
1981
|
+
...l.data,
|
|
1982
1982
|
nodes: [],
|
|
1983
1983
|
linkedNodes: {}
|
|
1984
1984
|
}
|
|
1985
1985
|
}, p = n.parseFreshNode(h).toNode();
|
|
1986
|
-
return i.add(p, d.id,
|
|
1986
|
+
return i.add(p, d.id, c ?? d.data.nodes.length), l.data.nodes.forEach((T, y) => {
|
|
1987
1987
|
r(T, p.id, y);
|
|
1988
1988
|
}), n.node(p.id).get();
|
|
1989
1989
|
},
|
|
@@ -1993,13 +1993,13 @@ const vs = (t) => t.info ?? {}, ys = (t) => t.data?.custom ?? {}, nc = (t) => {
|
|
|
1993
1993
|
const a = s.parentId ?? n.node(s.nodeId).get().data.parent;
|
|
1994
1994
|
if (!a)
|
|
1995
1995
|
throw new Error("Parent node not found");
|
|
1996
|
-
let
|
|
1996
|
+
let c;
|
|
1997
1997
|
if ("sourceIndex" in s) {
|
|
1998
|
-
const { sourceIndex:
|
|
1999
|
-
|
|
1998
|
+
const { sourceIndex: l, destinationIndex: u } = s;
|
|
1999
|
+
c = u > l ? u + 1 : u;
|
|
2000
2000
|
} else
|
|
2001
|
-
|
|
2002
|
-
i.move(s.nodeId, a,
|
|
2001
|
+
c = s.moveIndex;
|
|
2002
|
+
i.move(s.nodeId, a, c);
|
|
2003
2003
|
},
|
|
2004
2004
|
[i, n]
|
|
2005
2005
|
);
|
|
@@ -2012,16 +2012,16 @@ const vs = (t) => t.info ?? {}, ys = (t) => t.data?.custom ?? {}, nc = (t) => {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
}), [r, e, o]);
|
|
2014
2014
|
}, F = (t = {}) => {
|
|
2015
|
-
const { enabled: e, indicator: n } = Ct((
|
|
2016
|
-
enabled:
|
|
2017
|
-
indicator:
|
|
2018
|
-
})), { id: i, selectable: r, displayName: o, resolvedId: s } = O((
|
|
2019
|
-
selectable: ic(
|
|
2020
|
-
displayName: nc(
|
|
2021
|
-
resolvedId: wt(
|
|
2015
|
+
const { enabled: e, indicator: n } = Ct((l) => ({
|
|
2016
|
+
enabled: l.options.enabled,
|
|
2017
|
+
indicator: l.indicator
|
|
2018
|
+
})), { id: i, selectable: r, displayName: o, resolvedId: s } = O((l) => ({
|
|
2019
|
+
selectable: ic(l),
|
|
2020
|
+
displayName: nc(l),
|
|
2021
|
+
resolvedId: wt(l)
|
|
2022
2022
|
}));
|
|
2023
2023
|
if (!e) return {};
|
|
2024
|
-
const a = n?.placement?.parent?.id === i,
|
|
2024
|
+
const a = n?.placement?.parent?.id === i, c = a && !!n?.error;
|
|
2025
2025
|
return {
|
|
2026
2026
|
[gt.DATA_NODE_ID]: i,
|
|
2027
2027
|
[gt.DATA_NODE_EDITABLE]: ds.True,
|
|
@@ -2029,7 +2029,7 @@ const vs = (t) => t.info ?? {}, ys = (t) => t.data?.custom ?? {}, nc = (t) => {
|
|
|
2029
2029
|
[gt.DATA_NODE_NAME]: o,
|
|
2030
2030
|
[gt.DATA_NODE_RESOLVED]: s,
|
|
2031
2031
|
[gt.DATA_NODE_DROP_TARGET]: a.toString(),
|
|
2032
|
-
[gt.DATA_NODE_DROP_TARGET_ERROR]:
|
|
2032
|
+
[gt.DATA_NODE_DROP_TARGET_ERROR]: c.toString(),
|
|
2033
2033
|
...t
|
|
2034
2034
|
};
|
|
2035
2035
|
}, bs = ({ children: t }) => {
|
|
@@ -2178,34 +2178,33 @@ let Bi = !1;
|
|
|
2178
2178
|
const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
2179
2179
|
...Oa(we.subscribe, we.getSnapshot),
|
|
2180
2180
|
setState: we.setState
|
|
2181
|
-
}), oc = La(() => import("./index-
|
|
2182
|
-
({ tooltip: t, size: e = "24",
|
|
2183
|
-
const
|
|
2181
|
+
}), oc = La(() => import("./index-DWK1bwW0.js").then((t) => ({ default: t.WbTooltip }))), ac = q(
|
|
2182
|
+
({ tooltip: t, size: e = "24", type: n = "button", isHighlighted: i, ...r }, o) => {
|
|
2183
|
+
const s = {
|
|
2184
2184
|
width: Number(e),
|
|
2185
2185
|
height: Number(e),
|
|
2186
2186
|
display: "flex",
|
|
2187
2187
|
borderRadius: 4,
|
|
2188
2188
|
alignItems: "center",
|
|
2189
2189
|
justifyContent: "center"
|
|
2190
|
-
},
|
|
2190
|
+
}, a = /* @__PURE__ */ g(
|
|
2191
2191
|
"button",
|
|
2192
2192
|
{
|
|
2193
2193
|
css: [
|
|
2194
|
-
|
|
2194
|
+
s,
|
|
2195
2195
|
{
|
|
2196
2196
|
color: R.palette.white["6s"],
|
|
2197
2197
|
"&:enabled:hover": { backgroundColor: R.palette.white["1s"] },
|
|
2198
2198
|
"&:disabled": { color: R.palette.white["3s"] }
|
|
2199
2199
|
},
|
|
2200
|
-
|
|
2200
|
+
i && { backgroundColor: R.palette.white["2s"] }
|
|
2201
2201
|
],
|
|
2202
|
-
type:
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
ref: s
|
|
2202
|
+
type: n,
|
|
2203
|
+
...r,
|
|
2204
|
+
ref: o
|
|
2206
2205
|
}
|
|
2207
2206
|
);
|
|
2208
|
-
return J(t) ?
|
|
2207
|
+
return J(t) ? a : /* @__PURE__ */ g(Na, { fallback: a, children: /* @__PURE__ */ g(oc, { ...t, children: a }) });
|
|
2209
2208
|
}
|
|
2210
2209
|
), ws = q(({ source: t, ...e }, n) => {
|
|
2211
2210
|
const i = Be(), r = st(() => ec(t, i), [t, i]);
|
|
@@ -2230,17 +2229,16 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2230
2229
|
({
|
|
2231
2230
|
size: t = "32",
|
|
2232
2231
|
variant: e = "contained",
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
isLoading: l,
|
|
2232
|
+
type: n = "button",
|
|
2233
|
+
fullWidth: i,
|
|
2234
|
+
prefix: r,
|
|
2235
|
+
suffix: o,
|
|
2236
|
+
children: s,
|
|
2237
|
+
isLoading: a,
|
|
2240
2238
|
disabled: c,
|
|
2241
|
-
...
|
|
2242
|
-
},
|
|
2243
|
-
const
|
|
2239
|
+
...l
|
|
2240
|
+
}, u) => {
|
|
2241
|
+
const d = [
|
|
2244
2242
|
{
|
|
2245
2243
|
height: Number(t),
|
|
2246
2244
|
display: "flex",
|
|
@@ -2254,58 +2252,47 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2254
2252
|
"&:disabled": { color: R.palette.white["3s"] },
|
|
2255
2253
|
...R.text.xs
|
|
2256
2254
|
},
|
|
2257
|
-
(c ||
|
|
2258
|
-
|
|
2255
|
+
(c || a) && { pointerEvents: "none" },
|
|
2256
|
+
i && { width: "100%" },
|
|
2259
2257
|
e === "contained" && {
|
|
2260
2258
|
backgroundColor: R.palette.white["1s"],
|
|
2261
2259
|
"&:enabled:hover": { backgroundColor: R.palette.white["2s"] }
|
|
2262
2260
|
},
|
|
2263
|
-
|
|
2261
|
+
a && { "& > *": { visibility: "hidden" } }
|
|
2264
2262
|
];
|
|
2265
|
-
return /* @__PURE__ */ I(
|
|
2266
|
-
|
|
2267
|
-
{
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
"
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
borderRadius: 8,
|
|
2299
|
-
pointerEvents: "none",
|
|
2300
|
-
borderWidth: 1,
|
|
2301
|
-
borderStyle: "solid",
|
|
2302
|
-
borderColor: "transparent"
|
|
2303
|
-
}
|
|
2304
|
-
}
|
|
2305
|
-
)
|
|
2306
|
-
]
|
|
2307
|
-
}
|
|
2308
|
-
);
|
|
2263
|
+
return /* @__PURE__ */ I("button", { type: n, css: d, disabled: c, ...l, ref: u, children: [
|
|
2264
|
+
r,
|
|
2265
|
+
pn(s) ? /* @__PURE__ */ g("span", { children: s }) : s,
|
|
2266
|
+
o,
|
|
2267
|
+
a && /* @__PURE__ */ g(
|
|
2268
|
+
"div",
|
|
2269
|
+
{
|
|
2270
|
+
css: {
|
|
2271
|
+
position: "absolute",
|
|
2272
|
+
inset: 0,
|
|
2273
|
+
display: "flex",
|
|
2274
|
+
alignItems: "center",
|
|
2275
|
+
justifyContent: "center",
|
|
2276
|
+
visibility: "visible"
|
|
2277
|
+
},
|
|
2278
|
+
children: /* @__PURE__ */ g(me, { source: Cs, size: 16, css: { animation: `${lc} 1s linear infinite` } })
|
|
2279
|
+
}
|
|
2280
|
+
),
|
|
2281
|
+
e === "outlined" && /* @__PURE__ */ g(
|
|
2282
|
+
"div",
|
|
2283
|
+
{
|
|
2284
|
+
css: {
|
|
2285
|
+
position: "absolute",
|
|
2286
|
+
inset: 0,
|
|
2287
|
+
borderRadius: 8,
|
|
2288
|
+
pointerEvents: "none",
|
|
2289
|
+
borderWidth: 1,
|
|
2290
|
+
borderStyle: "solid",
|
|
2291
|
+
borderColor: "transparent"
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
)
|
|
2295
|
+
] });
|
|
2309
2296
|
}
|
|
2310
2297
|
), As = ({
|
|
2311
2298
|
prefix: t,
|
|
@@ -2316,8 +2303,8 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2316
2303
|
fullWidth: o,
|
|
2317
2304
|
wrapRef: s,
|
|
2318
2305
|
onChange: a,
|
|
2319
|
-
mode:
|
|
2320
|
-
debounce:
|
|
2306
|
+
mode: c = "onChange",
|
|
2307
|
+
debounce: l = 0,
|
|
2321
2308
|
value: u,
|
|
2322
2309
|
ref: d,
|
|
2323
2310
|
error: h,
|
|
@@ -2343,23 +2330,23 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2343
2330
|
a?.(w);
|
|
2344
2331
|
return;
|
|
2345
2332
|
}
|
|
2346
|
-
if (
|
|
2333
|
+
if (c === "onBlur") {
|
|
2347
2334
|
mn(u) || C(w.target.value);
|
|
2348
2335
|
return;
|
|
2349
2336
|
}
|
|
2350
|
-
if (
|
|
2337
|
+
if (l > 0) {
|
|
2351
2338
|
mn(u) || C(w.target.value), v.current = setTimeout(() => {
|
|
2352
2339
|
a?.(w);
|
|
2353
|
-
},
|
|
2340
|
+
}, l);
|
|
2354
2341
|
return;
|
|
2355
2342
|
}
|
|
2356
2343
|
a?.(w);
|
|
2357
2344
|
}, m = (w) => {
|
|
2358
2345
|
T && w.target.select(), A.current = w.target.value, y.onFocus?.(w);
|
|
2359
2346
|
}, b = (w) => {
|
|
2360
|
-
A.current !== w.target.value && (
|
|
2347
|
+
A.current !== w.target.value && (c === "onBlur" || l > 0) && f(w, !0), y.onBlur?.(w), setTimeout(() => {
|
|
2361
2348
|
C(void 0);
|
|
2362
|
-
},
|
|
2349
|
+
}, l);
|
|
2363
2350
|
};
|
|
2364
2351
|
return /* @__PURE__ */ I("div", { css: { width: "100%" }, children: [
|
|
2365
2352
|
/* @__PURE__ */ I(
|
|
@@ -2457,13 +2444,13 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2457
2444
|
reference: s,
|
|
2458
2445
|
triggers: a = ["click"]
|
|
2459
2446
|
}) => {
|
|
2460
|
-
const [
|
|
2447
|
+
const [c, l] = $a({
|
|
2461
2448
|
defaultValue: !1,
|
|
2462
2449
|
value: t
|
|
2463
2450
|
}), d = za({
|
|
2464
|
-
open:
|
|
2451
|
+
open: c,
|
|
2465
2452
|
onOpenChange: (S, f, m) => {
|
|
2466
|
-
|
|
2453
|
+
l(S), n?.(S, f, m);
|
|
2467
2454
|
},
|
|
2468
2455
|
placement: e,
|
|
2469
2456
|
middleware: [
|
|
@@ -2694,7 +2681,7 @@ function gc({ children: t, isPresent: e }) {
|
|
|
2694
2681
|
left: 0
|
|
2695
2682
|
}), { nonce: o } = G(Un);
|
|
2696
2683
|
return ss(() => {
|
|
2697
|
-
const { width: s, height: a, top:
|
|
2684
|
+
const { width: s, height: a, top: c, left: l } = r.current;
|
|
2698
2685
|
if (e || !i.current || !s || !a)
|
|
2699
2686
|
return;
|
|
2700
2687
|
i.current.dataset.motionPopId = n;
|
|
@@ -2704,8 +2691,8 @@ function gc({ children: t, isPresent: e }) {
|
|
|
2704
2691
|
position: absolute !important;
|
|
2705
2692
|
width: ${s}px !important;
|
|
2706
2693
|
height: ${a}px !important;
|
|
2707
|
-
top: ${
|
|
2708
|
-
left: ${
|
|
2694
|
+
top: ${c}px !important;
|
|
2695
|
+
left: ${l}px !important;
|
|
2709
2696
|
}
|
|
2710
2697
|
`), () => {
|
|
2711
2698
|
document.head.removeChild(u);
|
|
@@ -2713,7 +2700,7 @@ function gc({ children: t, isPresent: e }) {
|
|
|
2713
2700
|
}, [e]), Mt(mc, { isPresent: e, childRef: i, sizeRef: r, children: _n.cloneElement(t, { ref: i }) });
|
|
2714
2701
|
}
|
|
2715
2702
|
const vc = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: r, presenceAffectsLayout: o, mode: s }) => {
|
|
2716
|
-
const a = jn(yc),
|
|
2703
|
+
const a = jn(yc), c = Be(), l = le((d) => {
|
|
2717
2704
|
a.set(d, !0);
|
|
2718
2705
|
for (const h of a.values())
|
|
2719
2706
|
if (!h)
|
|
@@ -2721,11 +2708,11 @@ const vc = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom:
|
|
|
2721
2708
|
i && i();
|
|
2722
2709
|
}, [a, i]), u = st(
|
|
2723
2710
|
() => ({
|
|
2724
|
-
id:
|
|
2711
|
+
id: c,
|
|
2725
2712
|
initial: e,
|
|
2726
2713
|
isPresent: n,
|
|
2727
2714
|
custom: r,
|
|
2728
|
-
onExitComplete:
|
|
2715
|
+
onExitComplete: l,
|
|
2729
2716
|
register: (d) => (a.set(d, !1), () => a.delete(d))
|
|
2730
2717
|
}),
|
|
2731
2718
|
/**
|
|
@@ -2733,7 +2720,7 @@ const vc = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom:
|
|
|
2733
2720
|
* we want to make a new context value to ensure they get re-rendered
|
|
2734
2721
|
* so they can detect that layout change.
|
|
2735
2722
|
*/
|
|
2736
|
-
o ? [Math.random(),
|
|
2723
|
+
o ? [Math.random(), l] : [n, l]
|
|
2737
2724
|
);
|
|
2738
2725
|
return st(() => {
|
|
2739
2726
|
a.forEach((d, h) => a.set(h, !1));
|
|
@@ -2763,28 +2750,28 @@ function Ui(t) {
|
|
|
2763
2750
|
}), e;
|
|
2764
2751
|
}
|
|
2765
2752
|
const Wn = typeof window < "u", ks = Wn ? Ba : je, bc = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, presenceAffectsLayout: r = !0, mode: o = "sync", propagate: s = !1 }) => {
|
|
2766
|
-
const [a,
|
|
2753
|
+
const [a, c] = Ds(s), l = st(() => Ui(t), [t]), u = s && !a ? [] : l.map(Ce), d = rt(!0), h = rt(l), p = jn(() => /* @__PURE__ */ new Map()), [T, y] = hn(l), [v, x] = hn(l);
|
|
2767
2754
|
ks(() => {
|
|
2768
|
-
d.current = !1, h.current =
|
|
2755
|
+
d.current = !1, h.current = l;
|
|
2769
2756
|
for (let S = 0; S < v.length; S++) {
|
|
2770
2757
|
const f = Ce(v[S]);
|
|
2771
2758
|
u.includes(f) ? p.delete(f) : p.get(f) !== !0 && p.set(f, !1);
|
|
2772
2759
|
}
|
|
2773
2760
|
}, [v, u.length, u.join("-")]);
|
|
2774
2761
|
const C = [];
|
|
2775
|
-
if (
|
|
2776
|
-
let S = [...
|
|
2762
|
+
if (l !== T) {
|
|
2763
|
+
let S = [...l];
|
|
2777
2764
|
for (let f = 0; f < v.length; f++) {
|
|
2778
2765
|
const m = v[f], b = Ce(m);
|
|
2779
2766
|
u.includes(b) || (S.splice(f, 0, m), C.push(m));
|
|
2780
2767
|
}
|
|
2781
|
-
o === "wait" && C.length && (S = C), x(Ui(S)), y(
|
|
2768
|
+
o === "wait" && C.length && (S = C), x(Ui(S)), y(l);
|
|
2782
2769
|
return;
|
|
2783
2770
|
}
|
|
2784
2771
|
process.env.NODE_ENV !== "production" && o === "wait" && v.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
2785
2772
|
const { forceRender: A } = G(Bn);
|
|
2786
2773
|
return Mt(fl, { children: v.map((S) => {
|
|
2787
|
-
const f = Ce(S), m = s && !a ? !1 :
|
|
2774
|
+
const f = Ce(S), m = s && !a ? !1 : l === v || u.includes(f), b = () => {
|
|
2788
2775
|
if (p.has(f))
|
|
2789
2776
|
p.set(f, !0);
|
|
2790
2777
|
else
|
|
@@ -2792,7 +2779,7 @@ const Wn = typeof window < "u", ks = Wn ? Ba : je, bc = ({ children: t, custom:
|
|
|
2792
2779
|
let w = !0;
|
|
2793
2780
|
p.forEach((P) => {
|
|
2794
2781
|
P || (w = !1);
|
|
2795
|
-
}), w && (A?.(), x(h.current), s &&
|
|
2782
|
+
}), w && (A?.(), x(h.current), s && c?.(), i && i());
|
|
2796
2783
|
};
|
|
2797
2784
|
return Mt(vc, { isPresent: m, initial: !d.current || n ? void 0 : !1, custom: m ? void 0 : e, presenceAffectsLayout: r, mode: o, onExitComplete: m ? void 0 : b, children: S }, f);
|
|
2798
2785
|
}) });
|
|
@@ -2815,35 +2802,35 @@ function xc(t) {
|
|
|
2815
2802
|
timestamp: 0,
|
|
2816
2803
|
isProcessing: !1
|
|
2817
2804
|
};
|
|
2818
|
-
function a(
|
|
2819
|
-
o.has(
|
|
2805
|
+
function a(l) {
|
|
2806
|
+
o.has(l) && (c.schedule(l), t()), l(s);
|
|
2820
2807
|
}
|
|
2821
|
-
const
|
|
2808
|
+
const c = {
|
|
2822
2809
|
/**
|
|
2823
2810
|
* Schedule a process to run on the next frame.
|
|
2824
2811
|
*/
|
|
2825
|
-
schedule: (
|
|
2812
|
+
schedule: (l, u = !1, d = !1) => {
|
|
2826
2813
|
const p = d && i ? e : n;
|
|
2827
|
-
return u && o.add(
|
|
2814
|
+
return u && o.add(l), p.has(l) || p.add(l), l;
|
|
2828
2815
|
},
|
|
2829
2816
|
/**
|
|
2830
2817
|
* Cancel the provided callback from running on the next frame.
|
|
2831
2818
|
*/
|
|
2832
|
-
cancel: (
|
|
2833
|
-
n.delete(
|
|
2819
|
+
cancel: (l) => {
|
|
2820
|
+
n.delete(l), o.delete(l);
|
|
2834
2821
|
},
|
|
2835
2822
|
/**
|
|
2836
2823
|
* Execute all schedule callbacks.
|
|
2837
2824
|
*/
|
|
2838
|
-
process: (
|
|
2839
|
-
if (s =
|
|
2825
|
+
process: (l) => {
|
|
2826
|
+
if (s = l, i) {
|
|
2840
2827
|
r = !0;
|
|
2841
2828
|
return;
|
|
2842
2829
|
}
|
|
2843
|
-
i = !0, [e, n] = [n, e], e.forEach(a), e.clear(), i = !1, r && (r = !1,
|
|
2830
|
+
i = !0, [e, n] = [n, e], e.forEach(a), e.clear(), i = !1, r && (r = !1, c.process(l));
|
|
2844
2831
|
}
|
|
2845
2832
|
};
|
|
2846
|
-
return
|
|
2833
|
+
return c;
|
|
2847
2834
|
}
|
|
2848
2835
|
const Ae = [
|
|
2849
2836
|
"read",
|
|
@@ -2865,9 +2852,9 @@ function Ms(t, e) {
|
|
|
2865
2852
|
delta: 0,
|
|
2866
2853
|
timestamp: 0,
|
|
2867
2854
|
isProcessing: !1
|
|
2868
|
-
}, o = () => n = !0, s = Ae.reduce((x, C) => (x[C] = xc(o), x), {}), { read: a, resolveKeyframes:
|
|
2855
|
+
}, o = () => n = !0, s = Ae.reduce((x, C) => (x[C] = xc(o), x), {}), { read: a, resolveKeyframes: c, update: l, preRender: u, render: d, postRender: h } = s, p = () => {
|
|
2869
2856
|
const x = performance.now();
|
|
2870
|
-
n = !1, r.delta = i ? 1e3 / 60 : Math.max(Math.min(x - r.timestamp, wc), 1), r.timestamp = x, r.isProcessing = !0, a.process(r),
|
|
2857
|
+
n = !1, r.delta = i ? 1e3 / 60 : Math.max(Math.min(x - r.timestamp, wc), 1), r.timestamp = x, r.isProcessing = !0, a.process(r), c.process(r), l.process(r), u.process(r), d.process(r), h.process(r), r.isProcessing = !1, n && e && (i = !1, t(p));
|
|
2871
2858
|
}, T = () => {
|
|
2872
2859
|
n = !0, i = !0, r.isProcessing || t(p);
|
|
2873
2860
|
};
|
|
@@ -3036,20 +3023,20 @@ function Mc(t, e, n) {
|
|
|
3036
3023
|
const $n = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Vc = "framerAppearId", Os = "data-" + $n(Vc), { schedule: zn } = Ms(queueMicrotask, !1), Ls = ut({});
|
|
3037
3024
|
function _c(t, e, n, i, r) {
|
|
3038
3025
|
var o, s;
|
|
3039
|
-
const { visualElement: a } = G(He),
|
|
3040
|
-
i = i ||
|
|
3026
|
+
const { visualElement: a } = G(He), c = G(Vs), l = G(Ue), u = G(Un).reducedMotion, d = rt(null);
|
|
3027
|
+
i = i || c.renderer, !d.current && i && (d.current = i(t, {
|
|
3041
3028
|
visualState: e,
|
|
3042
3029
|
parent: a,
|
|
3043
3030
|
props: n,
|
|
3044
|
-
presenceContext:
|
|
3045
|
-
blockInitialAnimation:
|
|
3031
|
+
presenceContext: l,
|
|
3032
|
+
blockInitialAnimation: l ? l.initial === !1 : !1,
|
|
3046
3033
|
reducedMotionConfig: u
|
|
3047
3034
|
}));
|
|
3048
3035
|
const h = d.current, p = G(Ls);
|
|
3049
3036
|
h && !h.projection && r && (h.type === "html" || h.type === "svg") && Ic(d.current, n, r, p);
|
|
3050
3037
|
const T = rt(!1);
|
|
3051
3038
|
ss(() => {
|
|
3052
|
-
h && T.current && h.update(n,
|
|
3039
|
+
h && T.current && h.update(n, l);
|
|
3053
3040
|
});
|
|
3054
3041
|
const y = n[Os], v = rt(!!y && !(!((o = window.MotionHandoffIsComplete) === null || o === void 0) && o.call(window, y)) && ((s = window.MotionHasOptimisedAnimation) === null || s === void 0 ? void 0 : s.call(window, y)));
|
|
3055
3042
|
return ks(() => {
|
|
@@ -3062,7 +3049,7 @@ function _c(t, e, n, i, r) {
|
|
|
3062
3049
|
}), h;
|
|
3063
3050
|
}
|
|
3064
3051
|
function Ic(t, e, n, i) {
|
|
3065
|
-
const { layoutId: r, layout: o, drag: s, dragConstraints: a, layoutScroll:
|
|
3052
|
+
const { layoutId: r, layout: o, drag: s, dragConstraints: a, layoutScroll: c, layoutRoot: l } = e;
|
|
3066
3053
|
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : Ns(t.parent)), t.projection.setOptions({
|
|
3067
3054
|
layoutId: r,
|
|
3068
3055
|
layout: o,
|
|
@@ -3077,8 +3064,8 @@ function Ic(t, e, n, i) {
|
|
|
3077
3064
|
*/
|
|
3078
3065
|
animationType: typeof o == "string" ? o : "both",
|
|
3079
3066
|
initialPromotionConfig: i,
|
|
3080
|
-
layoutScroll:
|
|
3081
|
-
layoutRoot:
|
|
3067
|
+
layoutScroll: c,
|
|
3068
|
+
layoutRoot: l
|
|
3082
3069
|
});
|
|
3083
3070
|
}
|
|
3084
3071
|
function Ns(t) {
|
|
@@ -3088,23 +3075,23 @@ function Ns(t) {
|
|
|
3088
3075
|
function Oc({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: r }) {
|
|
3089
3076
|
var o, s;
|
|
3090
3077
|
t && Cc(t);
|
|
3091
|
-
function a(
|
|
3078
|
+
function a(l, u) {
|
|
3092
3079
|
let d;
|
|
3093
3080
|
const h = {
|
|
3094
3081
|
...G(Un),
|
|
3095
|
-
...
|
|
3096
|
-
layoutId: Lc(
|
|
3097
|
-
}, { isStatic: p } = h, T = Dc(
|
|
3082
|
+
...l,
|
|
3083
|
+
layoutId: Lc(l)
|
|
3084
|
+
}, { isStatic: p } = h, T = Dc(l), y = i(l, p);
|
|
3098
3085
|
if (!p && Wn) {
|
|
3099
3086
|
Nc(h, t);
|
|
3100
3087
|
const v = Fc(h);
|
|
3101
3088
|
d = v.MeasureLayout, T.visualElement = _c(r, y, h, e, v.ProjectionNode);
|
|
3102
3089
|
}
|
|
3103
|
-
return hl(He.Provider, { value: T, children: [d && T.visualElement ? Mt(d, { visualElement: T.visualElement, ...h }) : null, n(r,
|
|
3090
|
+
return hl(He.Provider, { value: T, children: [d && T.visualElement ? Mt(d, { visualElement: T.visualElement, ...h }) : null, n(r, l, Mc(y, T.visualElement, u), y, p, T.visualElement)] });
|
|
3104
3091
|
}
|
|
3105
3092
|
a.displayName = `motion.${typeof r == "string" ? r : `create(${(s = (o = r.displayName) !== null && o !== void 0 ? o : r.name) !== null && s !== void 0 ? s : ""})`}`;
|
|
3106
|
-
const
|
|
3107
|
-
return
|
|
3093
|
+
const c = q(a);
|
|
3094
|
+
return c[kc] = r, c;
|
|
3108
3095
|
}
|
|
3109
3096
|
function Lc({ layoutId: t }) {
|
|
3110
3097
|
const e = G(Bn).id;
|
|
@@ -3212,8 +3199,8 @@ function Hc(t, e, n, i) {
|
|
|
3212
3199
|
for (const h in o)
|
|
3213
3200
|
r[h] = Pe(o[h]);
|
|
3214
3201
|
let { initial: s, animate: a } = t;
|
|
3215
|
-
const
|
|
3216
|
-
e &&
|
|
3202
|
+
const c = $e(t), l = Is(t);
|
|
3203
|
+
e && l && !c && t.inherit !== !1 && (s === void 0 && (s = e.initial), a === void 0 && (a = e.animate));
|
|
3217
3204
|
let u = n ? n.initial === !1 : !1;
|
|
3218
3205
|
u = u || s === !1;
|
|
3219
3206
|
const d = u ? a : s;
|
|
@@ -3359,15 +3346,15 @@ function Jc(t, e, n) {
|
|
|
3359
3346
|
const s = zt[o], a = t[s];
|
|
3360
3347
|
if (a === void 0)
|
|
3361
3348
|
continue;
|
|
3362
|
-
let
|
|
3363
|
-
if (typeof a == "number" ?
|
|
3364
|
-
const
|
|
3365
|
-
if (!
|
|
3349
|
+
let c = !0;
|
|
3350
|
+
if (typeof a == "number" ? c = a === (s.startsWith("scale") ? 1 : 0) : c = parseFloat(a) === 0, !c || n) {
|
|
3351
|
+
const l = Us(a, Yn[s]);
|
|
3352
|
+
if (!c) {
|
|
3366
3353
|
r = !1;
|
|
3367
3354
|
const u = Yc[s] || s;
|
|
3368
|
-
i += `${u}(${
|
|
3355
|
+
i += `${u}(${l}) `;
|
|
3369
3356
|
}
|
|
3370
|
-
n && (e[s] =
|
|
3357
|
+
n && (e[s] = l);
|
|
3371
3358
|
}
|
|
3372
3359
|
}
|
|
3373
3360
|
return i = i.trim(), n ? i = n(e, r ? "" : i) : r && (i = "none"), i;
|
|
@@ -3375,22 +3362,22 @@ function Jc(t, e, n) {
|
|
|
3375
3362
|
function Zn(t, e, n) {
|
|
3376
3363
|
const { style: i, vars: r, transformOrigin: o } = t;
|
|
3377
3364
|
let s = !1, a = !1;
|
|
3378
|
-
for (const
|
|
3379
|
-
const
|
|
3380
|
-
if (Vt.has(
|
|
3365
|
+
for (const c in e) {
|
|
3366
|
+
const l = e[c];
|
|
3367
|
+
if (Vt.has(c)) {
|
|
3381
3368
|
s = !0;
|
|
3382
3369
|
continue;
|
|
3383
|
-
} else if (js(
|
|
3384
|
-
r[
|
|
3370
|
+
} else if (js(c)) {
|
|
3371
|
+
r[c] = l;
|
|
3385
3372
|
continue;
|
|
3386
3373
|
} else {
|
|
3387
|
-
const u = Us(
|
|
3388
|
-
|
|
3374
|
+
const u = Us(l, Yn[c]);
|
|
3375
|
+
c.startsWith("origin") ? (a = !0, o[c] = u) : i[c] = u;
|
|
3389
3376
|
}
|
|
3390
3377
|
}
|
|
3391
3378
|
if (e.transform || (s || n ? i.transform = Jc(e, t.transform, n) : i.transform && (i.transform = "none")), a) {
|
|
3392
|
-
const { originX:
|
|
3393
|
-
i.transformOrigin = `${
|
|
3379
|
+
const { originX: c = "50%", originY: l = "50%", originZ: u = 0 } = o;
|
|
3380
|
+
i.transformOrigin = `${c} ${l} ${u}`;
|
|
3394
3381
|
}
|
|
3395
3382
|
}
|
|
3396
3383
|
const Qc = {
|
|
@@ -3422,17 +3409,17 @@ function Jn(t, {
|
|
|
3422
3409
|
originY: o,
|
|
3423
3410
|
pathLength: s,
|
|
3424
3411
|
pathSpacing: a = 1,
|
|
3425
|
-
pathOffset:
|
|
3412
|
+
pathOffset: c = 0,
|
|
3426
3413
|
// This is object creation, which we try to avoid per-frame.
|
|
3427
|
-
...
|
|
3414
|
+
...l
|
|
3428
3415
|
}, u, d) {
|
|
3429
|
-
if (Zn(t,
|
|
3416
|
+
if (Zn(t, l, d), u) {
|
|
3430
3417
|
t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
|
|
3431
3418
|
return;
|
|
3432
3419
|
}
|
|
3433
3420
|
t.attrs = t.style, t.style = {};
|
|
3434
3421
|
const { attrs: h, style: p, dimensions: T } = t;
|
|
3435
|
-
h.transform && (T && (p.transform = h.transform), delete h.transform), T && (r !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = nu(T, r !== void 0 ? r : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (h.x = e), n !== void 0 && (h.y = n), i !== void 0 && (h.scale = i), s !== void 0 && eu(h, s, a,
|
|
3422
|
+
h.transform && (T && (p.transform = h.transform), delete h.transform), T && (r !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = nu(T, r !== void 0 ? r : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (h.x = e), n !== void 0 && (h.y = n), i !== void 0 && (h.scale = i), s !== void 0 && eu(h, s, a, c, !1);
|
|
3436
3423
|
}
|
|
3437
3424
|
const Qn = () => ({
|
|
3438
3425
|
style: {},
|
|
@@ -3533,8 +3520,8 @@ const Xi = ["x", "y", "width", "height", "cx", "cy", "r"], su = {
|
|
|
3533
3520
|
let s = !e;
|
|
3534
3521
|
if (e)
|
|
3535
3522
|
for (let a = 0; a < Xi.length; a++) {
|
|
3536
|
-
const
|
|
3537
|
-
t[
|
|
3523
|
+
const c = Xi[a];
|
|
3524
|
+
t[c] !== e[c] && (s = !0);
|
|
3538
3525
|
}
|
|
3539
3526
|
s && B.read(() => {
|
|
3540
3527
|
ru(n, i), B.render(() => {
|
|
@@ -3583,7 +3570,7 @@ function uu(t, e, n, i) {
|
|
|
3583
3570
|
}
|
|
3584
3571
|
function du(t = !1) {
|
|
3585
3572
|
return (n, i, r, { latestValues: o }, s) => {
|
|
3586
|
-
const
|
|
3573
|
+
const c = (qn(n) ? uu : cu)(i, o, s, n), l = Ec(i, typeof n == "string", t), u = n !== pe ? { ...l, ...c, ref: r } : {}, { children: d } = i, h = st(() => X(d) ? d.get() : d, [d]);
|
|
3587
3574
|
return ja(n, {
|
|
3588
3575
|
...u,
|
|
3589
3576
|
children: h
|
|
@@ -4102,7 +4089,7 @@ function fe(t) {
|
|
|
4102
4089
|
var: []
|
|
4103
4090
|
}, r = [];
|
|
4104
4091
|
let o = 0;
|
|
4105
|
-
const a = e.replace(Lu, (
|
|
4092
|
+
const a = e.replace(Lu, (c) => (K.test(c) ? (i.color.push(o), r.push(po), n.push(K.parse(c))) : c.startsWith(Ou) ? (i.var.push(o), r.push(Iu), n.push(c)) : (i.number.push(o), r.push(ho), n.push(parseFloat(c))), ++o, Ji)).split(Ji);
|
|
4106
4093
|
return { values: n, split: a, indexes: i, types: r };
|
|
4107
4094
|
}
|
|
4108
4095
|
function mo(t) {
|
|
@@ -4257,8 +4244,8 @@ class pi {
|
|
|
4257
4244
|
if (s !== void 0)
|
|
4258
4245
|
e[0] = s;
|
|
4259
4246
|
else if (i && n) {
|
|
4260
|
-
const
|
|
4261
|
-
|
|
4247
|
+
const c = i.readValue(n, a);
|
|
4248
|
+
c != null && (e[0] = c);
|
|
4262
4249
|
}
|
|
4263
4250
|
e[0] === void 0 && (e[0] = a), r && s === void 0 && r.set(e[0]);
|
|
4264
4251
|
} else
|
|
@@ -4319,11 +4306,11 @@ class Ao extends pi {
|
|
|
4319
4306
|
if (!n || !n.current)
|
|
4320
4307
|
return;
|
|
4321
4308
|
super.readKeyframes();
|
|
4322
|
-
for (let
|
|
4323
|
-
let
|
|
4324
|
-
if (typeof
|
|
4325
|
-
const u = xo(
|
|
4326
|
-
u !== void 0 && (e[
|
|
4309
|
+
for (let c = 0; c < e.length; c++) {
|
|
4310
|
+
let l = e[c];
|
|
4311
|
+
if (typeof l == "string" && (l = l.trim(), Xn(l))) {
|
|
4312
|
+
const u = xo(l, n.current);
|
|
4313
|
+
u !== void 0 && (e[c] = u), c === e.length - 1 && (this.finalKeyframe = l);
|
|
4327
4314
|
}
|
|
4328
4315
|
}
|
|
4329
4316
|
if (this.resolveNoneKeyframes(), !Ys.has(i) || e.length !== 2)
|
|
@@ -4331,9 +4318,9 @@ class Ao extends pi {
|
|
|
4331
4318
|
const [r, o] = e, s = nr(r), a = nr(o);
|
|
4332
4319
|
if (s !== a)
|
|
4333
4320
|
if (Qi(s) && Qi(a))
|
|
4334
|
-
for (let
|
|
4335
|
-
const
|
|
4336
|
-
typeof
|
|
4321
|
+
for (let c = 0; c < e.length; c++) {
|
|
4322
|
+
const l = e[c];
|
|
4323
|
+
typeof l == "string" && (e[c] = parseFloat(l));
|
|
4337
4324
|
}
|
|
4338
4325
|
else
|
|
4339
4326
|
this.needsMeasurement = !0;
|
|
@@ -4360,8 +4347,8 @@ class Ao extends pi {
|
|
|
4360
4347
|
const o = n.getValue(i);
|
|
4361
4348
|
o && o.jump(this.measuredOrigin, !1);
|
|
4362
4349
|
const s = r.length - 1, a = r[s];
|
|
4363
|
-
r[s] = Ht[i](n.measureViewportBox(), window.getComputedStyle(n.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), !((e = this.removedTransforms) === null || e === void 0) && e.length && this.removedTransforms.forEach(([
|
|
4364
|
-
n.getValue(
|
|
4350
|
+
r[s] = Ht[i](n.measureViewportBox(), window.getComputedStyle(n.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), !((e = this.removedTransforms) === null || e === void 0) && e.length && this.removedTransforms.forEach(([c, l]) => {
|
|
4351
|
+
n.getValue(c).set(l);
|
|
4365
4352
|
}), this.resolveNoneKeyframes();
|
|
4366
4353
|
}
|
|
4367
4354
|
}
|
|
@@ -4431,12 +4418,12 @@ class So {
|
|
|
4431
4418
|
*/
|
|
4432
4419
|
onKeyframesResolved(e, n) {
|
|
4433
4420
|
this.resolvedAt = lt.now(), this.hasAttemptedResolve = !0;
|
|
4434
|
-
const { name: i, type: r, velocity: o, delay: s, onComplete: a, onUpdate:
|
|
4435
|
-
if (!
|
|
4421
|
+
const { name: i, type: r, velocity: o, delay: s, onComplete: a, onUpdate: c, isGenerator: l } = this.options;
|
|
4422
|
+
if (!l && !td(e, i, r, o))
|
|
4436
4423
|
if (s)
|
|
4437
4424
|
this.options.duration = 0;
|
|
4438
4425
|
else {
|
|
4439
|
-
|
|
4426
|
+
c && c(qe(e, this.options, n)), a && a(), this.resolveFinishedPromise();
|
|
4440
4427
|
return;
|
|
4441
4428
|
}
|
|
4442
4429
|
const u = this.initPlayback(e, n);
|
|
@@ -4484,8 +4471,8 @@ function id({ hue: t, saturation: e, lightness: n, alpha: i }) {
|
|
|
4484
4471
|
if (!e)
|
|
4485
4472
|
r = o = s = n;
|
|
4486
4473
|
else {
|
|
4487
|
-
const a = n < 0.5 ? n * (1 + e) : n + e - n * e,
|
|
4488
|
-
r = en(
|
|
4474
|
+
const a = n < 0.5 ? n * (1 + e) : n + e - n * e, c = 2 * n - a;
|
|
4475
|
+
r = en(c, a, t + 1 / 3), o = en(c, a, t), s = en(c, a, t - 1 / 3);
|
|
4489
4476
|
}
|
|
4490
4477
|
return {
|
|
4491
4478
|
red: Math.round(r * 255),
|
|
@@ -4546,8 +4533,8 @@ function ud(t, e) {
|
|
|
4546
4533
|
var n;
|
|
4547
4534
|
const i = [], r = { color: 0, var: 0, number: 0 };
|
|
4548
4535
|
for (let o = 0; o < e.values.length; o++) {
|
|
4549
|
-
const s = e.types[o], a = t.indexes[s][r[s]],
|
|
4550
|
-
i[o] =
|
|
4536
|
+
const s = e.types[o], a = t.indexes[s][r[s]], c = (n = t.values[a]) !== null && n !== void 0 ? n : 0;
|
|
4537
|
+
i[o] = c, r[s]++;
|
|
4551
4538
|
}
|
|
4552
4539
|
return i;
|
|
4553
4540
|
}
|
|
@@ -4596,31 +4583,31 @@ function hd({ duration: t = j.duration, bounce: e = j.bounce, velocity: n = j.ve
|
|
|
4596
4583
|
let r, o;
|
|
4597
4584
|
$t(t <= /* @__PURE__ */ ct(j.maxDuration), "Spring duration must be 10 seconds or less");
|
|
4598
4585
|
let s = 1 - e;
|
|
4599
|
-
s = ht(j.minDamping, j.maxDamping, s), t = ht(j.minDuration, j.maxDuration, /* @__PURE__ */ ft(t)), s < 1 ? (r = (
|
|
4600
|
-
const u =
|
|
4586
|
+
s = ht(j.minDamping, j.maxDamping, s), t = ht(j.minDuration, j.maxDuration, /* @__PURE__ */ ft(t)), s < 1 ? (r = (l) => {
|
|
4587
|
+
const u = l * s, d = u * t, h = u - n, p = Sn(l, s), T = Math.exp(-d);
|
|
4601
4588
|
return rn - h / p * T;
|
|
4602
|
-
}, o = (
|
|
4603
|
-
const d =
|
|
4604
|
-
return (-r(
|
|
4605
|
-
}) : (r = (
|
|
4606
|
-
const u = Math.exp(-
|
|
4589
|
+
}, o = (l) => {
|
|
4590
|
+
const d = l * s * t, h = d * n + n, p = Math.pow(s, 2) * Math.pow(l, 2) * t, T = Math.exp(-d), y = Sn(Math.pow(l, 2), s);
|
|
4591
|
+
return (-r(l) + rn > 0 ? -1 : 1) * ((h - p) * T) / y;
|
|
4592
|
+
}) : (r = (l) => {
|
|
4593
|
+
const u = Math.exp(-l * t), d = (l - n) * t + 1;
|
|
4607
4594
|
return -rn + u * d;
|
|
4608
|
-
}, o = (
|
|
4609
|
-
const u = Math.exp(-
|
|
4595
|
+
}, o = (l) => {
|
|
4596
|
+
const u = Math.exp(-l * t), d = (n - l) * (t * t);
|
|
4610
4597
|
return u * d;
|
|
4611
4598
|
});
|
|
4612
|
-
const a = 5 / t,
|
|
4613
|
-
if (t = /* @__PURE__ */ ct(t), isNaN(
|
|
4599
|
+
const a = 5 / t, c = md(r, o, a);
|
|
4600
|
+
if (t = /* @__PURE__ */ ct(t), isNaN(c))
|
|
4614
4601
|
return {
|
|
4615
4602
|
stiffness: j.stiffness,
|
|
4616
4603
|
damping: j.damping,
|
|
4617
4604
|
duration: t
|
|
4618
4605
|
};
|
|
4619
4606
|
{
|
|
4620
|
-
const
|
|
4607
|
+
const l = Math.pow(c, 2) * i;
|
|
4621
4608
|
return {
|
|
4622
|
-
stiffness:
|
|
4623
|
-
damping: s * 2 * Math.sqrt(i *
|
|
4609
|
+
stiffness: l,
|
|
4610
|
+
damping: s * 2 * Math.sqrt(i * l),
|
|
4624
4611
|
duration: t
|
|
4625
4612
|
};
|
|
4626
4613
|
}
|
|
@@ -4674,10 +4661,10 @@ function ko(t = j.visualDuration, e = j.bounce) {
|
|
|
4674
4661
|
bounce: e
|
|
4675
4662
|
} : t;
|
|
4676
4663
|
let { restSpeed: i, restDelta: r } = n;
|
|
4677
|
-
const o = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness:
|
|
4664
|
+
const o = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: c, damping: l, mass: u, duration: d, velocity: h, isResolvedFromDuration: p } = yd({
|
|
4678
4665
|
...n,
|
|
4679
4666
|
velocity: -/* @__PURE__ */ ft(n.velocity || 0)
|
|
4680
|
-
}), T = h || 0, y =
|
|
4667
|
+
}), T = h || 0, y = l / (2 * Math.sqrt(c * u)), v = s - o, x = /* @__PURE__ */ ft(Math.sqrt(c / u)), C = Math.abs(v) < 5;
|
|
4681
4668
|
i || (i = C ? j.restSpeed.granular : j.restSpeed.default), r || (r = C ? j.restDelta.granular : j.restDelta.default);
|
|
4682
4669
|
let A;
|
|
4683
4670
|
if (y < 1) {
|
|
@@ -4716,17 +4703,17 @@ function ko(t = j.visualDuration, e = j.bounce) {
|
|
|
4716
4703
|
};
|
|
4717
4704
|
return S;
|
|
4718
4705
|
}
|
|
4719
|
-
function ar({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: r = 10, bounceStiffness: o = 500, modifyTarget: s, min: a, max:
|
|
4706
|
+
function ar({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: r = 10, bounceStiffness: o = 500, modifyTarget: s, min: a, max: c, restDelta: l = 0.5, restSpeed: u }) {
|
|
4720
4707
|
const d = t[0], h = {
|
|
4721
4708
|
done: !1,
|
|
4722
4709
|
value: d
|
|
4723
|
-
}, p = (w) => a !== void 0 && w < a ||
|
|
4710
|
+
}, p = (w) => a !== void 0 && w < a || c !== void 0 && w > c, T = (w) => a === void 0 ? c : c === void 0 || Math.abs(a - w) < Math.abs(c - w) ? a : c;
|
|
4724
4711
|
let y = n * e;
|
|
4725
4712
|
const v = d + y, x = s === void 0 ? v : s(v);
|
|
4726
4713
|
x !== v && (y = x - d);
|
|
4727
4714
|
const C = (w) => -y * Math.exp(-w / i), A = (w) => x + C(w), S = (w) => {
|
|
4728
4715
|
const P = C(w), k = A(w);
|
|
4729
|
-
h.done = Math.abs(P) <=
|
|
4716
|
+
h.done = Math.abs(P) <= l, h.value = h.done ? x : k;
|
|
4730
4717
|
};
|
|
4731
4718
|
let f, m;
|
|
4732
4719
|
const b = (w) => {
|
|
@@ -4736,7 +4723,7 @@ function ar({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
4736
4723
|
// TODO: This should be passing * 1000
|
|
4737
4724
|
damping: r,
|
|
4738
4725
|
stiffness: o,
|
|
4739
|
-
restDelta:
|
|
4726
|
+
restDelta: l,
|
|
4740
4727
|
restSpeed: u
|
|
4741
4728
|
}));
|
|
4742
4729
|
};
|
|
@@ -4774,8 +4761,8 @@ function wd(t, e, n) {
|
|
|
4774
4761
|
for (let s = 0; s < o; s++) {
|
|
4775
4762
|
let a = r(t[s], t[s + 1]);
|
|
4776
4763
|
if (e) {
|
|
4777
|
-
const
|
|
4778
|
-
a = ye(
|
|
4764
|
+
const c = Array.isArray(e) ? e[s] || Y : e;
|
|
4765
|
+
a = ye(c, a);
|
|
4779
4766
|
}
|
|
4780
4767
|
i.push(a);
|
|
4781
4768
|
}
|
|
@@ -4789,17 +4776,17 @@ function Cd(t, e, { clamp: n = !0, ease: i, mixer: r } = {}) {
|
|
|
4789
4776
|
return () => e[1];
|
|
4790
4777
|
const s = t[0] === t[1];
|
|
4791
4778
|
t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
|
|
4792
|
-
const a = wd(e, i, r),
|
|
4779
|
+
const a = wd(e, i, r), c = a.length, l = (u) => {
|
|
4793
4780
|
if (s && u < t[0])
|
|
4794
4781
|
return e[0];
|
|
4795
4782
|
let d = 0;
|
|
4796
|
-
if (
|
|
4783
|
+
if (c > 1)
|
|
4797
4784
|
for (; d < t.length - 2 && !(u < t[d + 1]); d++)
|
|
4798
4785
|
;
|
|
4799
4786
|
const h = /* @__PURE__ */ Wt(t[d], t[d + 1], u);
|
|
4800
4787
|
return a[d](h);
|
|
4801
4788
|
};
|
|
4802
|
-
return n ? (u) =>
|
|
4789
|
+
return n ? (u) => l(ht(t[0], t[o - 1], u)) : l;
|
|
4803
4790
|
}
|
|
4804
4791
|
function Ad(t, e) {
|
|
4805
4792
|
const n = t[t.length - 1];
|
|
@@ -4832,7 +4819,7 @@ function Oe({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }
|
|
|
4832
4819
|
});
|
|
4833
4820
|
return {
|
|
4834
4821
|
calculatedDuration: t,
|
|
4835
|
-
next: (
|
|
4822
|
+
next: (c) => (o.value = a(c), o.done = c >= t, o)
|
|
4836
4823
|
};
|
|
4837
4824
|
}
|
|
4838
4825
|
const Rd = (t) => {
|
|
@@ -4859,10 +4846,10 @@ class gi extends So {
|
|
|
4859
4846
|
if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
|
|
4860
4847
|
return;
|
|
4861
4848
|
this.teardown();
|
|
4862
|
-
const { onStop:
|
|
4863
|
-
|
|
4849
|
+
const { onStop: c } = this.options;
|
|
4850
|
+
c && c();
|
|
4864
4851
|
};
|
|
4865
|
-
const { name: n, motionValue: i, element: r, keyframes: o } = this.options, s = r?.KeyframeResolver || pi, a = (
|
|
4852
|
+
const { name: n, motionValue: i, element: r, keyframes: o } = this.options, s = r?.KeyframeResolver || pi, a = (c, l) => this.onKeyframesResolved(c, l);
|
|
4866
4853
|
this.resolver = new s(o, a, n, i, r), this.resolver.scheduleResolve();
|
|
4867
4854
|
}
|
|
4868
4855
|
flatten() {
|
|
@@ -4870,10 +4857,10 @@ class gi extends So {
|
|
|
4870
4857
|
}
|
|
4871
4858
|
initPlayback(e) {
|
|
4872
4859
|
const { type: n = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: o, velocity: s = 0 } = this.options, a = ai(n) ? n : Dd[n] || Oe;
|
|
4873
|
-
let
|
|
4874
|
-
a !== Oe && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && bt(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),
|
|
4860
|
+
let c, l;
|
|
4861
|
+
a !== Oe && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && bt(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), c = ye(kd, Ro(e[0], e[1])), e = [0, 100]);
|
|
4875
4862
|
const u = a({ ...this.options, keyframes: e });
|
|
4876
|
-
o === "mirror" && (
|
|
4863
|
+
o === "mirror" && (l = a({
|
|
4877
4864
|
...this.options,
|
|
4878
4865
|
keyframes: [...e].reverse(),
|
|
4879
4866
|
velocity: -s
|
|
@@ -4881,8 +4868,8 @@ class gi extends So {
|
|
|
4881
4868
|
const { calculatedDuration: d } = u, h = d + r, p = h * (i + 1) - r;
|
|
4882
4869
|
return {
|
|
4883
4870
|
generator: u,
|
|
4884
|
-
mirroredGenerator:
|
|
4885
|
-
mapPercentToKeyframes:
|
|
4871
|
+
mirroredGenerator: l,
|
|
4872
|
+
mapPercentToKeyframes: c,
|
|
4886
4873
|
calculatedDuration: d,
|
|
4887
4874
|
resolvedDuration: h,
|
|
4888
4875
|
totalDuration: p
|
|
@@ -4898,7 +4885,7 @@ class gi extends So {
|
|
|
4898
4885
|
const { keyframes: w } = this.options;
|
|
4899
4886
|
return { done: !0, value: w[w.length - 1] };
|
|
4900
4887
|
}
|
|
4901
|
-
const { finalKeyframe: r, generator: o, mirroredGenerator: s, mapPercentToKeyframes: a, keyframes:
|
|
4888
|
+
const { finalKeyframe: r, generator: o, mirroredGenerator: s, mapPercentToKeyframes: a, keyframes: c, calculatedDuration: l, totalDuration: u, resolvedDuration: d } = i;
|
|
4902
4889
|
if (this.startTime === null)
|
|
4903
4890
|
return o.next(0);
|
|
4904
4891
|
const { delay: h, repeat: p, repeatType: T, repeatDelay: y, onUpdate: v } = this.options;
|
|
@@ -4911,12 +4898,12 @@ class gi extends So {
|
|
|
4911
4898
|
let P = Math.floor(w), k = w % 1;
|
|
4912
4899
|
!k && w >= 1 && (k = 1), k === 1 && P--, P = Math.min(P, p + 1), P % 2 && (T === "reverse" ? (k = 1 - k, y && (k -= y / d)) : T === "mirror" && (S = s)), A = ht(0, 1, k) * d;
|
|
4913
4900
|
}
|
|
4914
|
-
const f = C ? { done: !1, value:
|
|
4901
|
+
const f = C ? { done: !1, value: c[0] } : S.next(A);
|
|
4915
4902
|
a && (f.value = a(f.value));
|
|
4916
4903
|
let { done: m } = f;
|
|
4917
|
-
!C &&
|
|
4904
|
+
!C && l !== null && (m = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
|
|
4918
4905
|
const b = this.holdTime === null && (this.state === "finished" || this.state === "running" && m);
|
|
4919
|
-
return b && r !== void 0 && (f.value = qe(
|
|
4906
|
+
return b && r !== void 0 && (f.value = qe(c, this.options, r)), v && v(f.value), b && this.finish(), f;
|
|
4920
4907
|
}
|
|
4921
4908
|
get duration() {
|
|
4922
4909
|
const { resolved: e } = this;
|
|
@@ -4985,11 +4972,11 @@ const Md = /* @__PURE__ */ new Set([
|
|
|
4985
4972
|
// or until we implement support for linear() easing.
|
|
4986
4973
|
// "background-color"
|
|
4987
4974
|
]);
|
|
4988
|
-
function Vd(t, e, n, { delay: i = 0, duration: r = 300, repeat: o = 0, repeatType: s = "loop", ease: a = "easeInOut", times:
|
|
4989
|
-
const
|
|
4990
|
-
|
|
4975
|
+
function Vd(t, e, n, { delay: i = 0, duration: r = 300, repeat: o = 0, repeatType: s = "loop", ease: a = "easeInOut", times: c } = {}) {
|
|
4976
|
+
const l = { [e]: n };
|
|
4977
|
+
c && (l.offset = c);
|
|
4991
4978
|
const u = eo(a, r);
|
|
4992
|
-
return Array.isArray(u) && (
|
|
4979
|
+
return Array.isArray(u) && (l.easing = u), t.animate(l, {
|
|
4993
4980
|
delay: i,
|
|
4994
4981
|
duration: r,
|
|
4995
4982
|
easing: Array.isArray(u) ? "linear" : u,
|
|
@@ -5037,15 +5024,15 @@ class ur extends So {
|
|
|
5037
5024
|
this.resolver = new Ao(o, (s, a) => this.onKeyframesResolved(s, a), n, i, r), this.resolver.scheduleResolve();
|
|
5038
5025
|
}
|
|
5039
5026
|
initPlayback(e, n) {
|
|
5040
|
-
let { duration: i = 300, times: r, ease: o, type: s, motionValue: a, name:
|
|
5027
|
+
let { duration: i = 300, times: r, ease: o, type: s, motionValue: a, name: c, startTime: l } = this.options;
|
|
5041
5028
|
if (!a.owner || !a.owner.current)
|
|
5042
5029
|
return !1;
|
|
5043
5030
|
if (typeof o == "string" && _e() && Nd(o) && (o = Vo[o]), Od(this.options)) {
|
|
5044
5031
|
const { onComplete: d, onUpdate: h, motionValue: p, element: T, ...y } = this.options, v = Ld(e, y);
|
|
5045
5032
|
e = v.keyframes, e.length === 1 && (e[1] = e[0]), i = v.duration, r = v.times, o = v.ease, s = "keyframes";
|
|
5046
5033
|
}
|
|
5047
|
-
const u = Vd(a.owner.current,
|
|
5048
|
-
return u.startTime =
|
|
5034
|
+
const u = Vd(a.owner.current, c, e, { ...this.options, duration: i, times: r, ease: o });
|
|
5035
|
+
return u.startTime = l ?? this.calcStartTime(), this.pendingTimeline ? (Zi(u, this.pendingTimeline), this.pendingTimeline = void 0) : u.onfinish = () => {
|
|
5049
5036
|
const { onComplete: d } = this.options;
|
|
5050
5037
|
a.set(qe(e, this.options, n)), d && d(), this.cancel(), this.resolveFinishedPromise();
|
|
5051
5038
|
}, {
|
|
@@ -5149,7 +5136,7 @@ class ur extends So {
|
|
|
5149
5136
|
if (n.playState === "idle" || n.playState === "finished")
|
|
5150
5137
|
return;
|
|
5151
5138
|
if (this.time) {
|
|
5152
|
-
const { motionValue:
|
|
5139
|
+
const { motionValue: l, onUpdate: u, onComplete: d, element: h, ...p } = this.options, T = new gi({
|
|
5153
5140
|
...p,
|
|
5154
5141
|
keyframes: i,
|
|
5155
5142
|
duration: r,
|
|
@@ -5158,10 +5145,10 @@ class ur extends So {
|
|
|
5158
5145
|
times: a,
|
|
5159
5146
|
isGenerator: !0
|
|
5160
5147
|
}), y = /* @__PURE__ */ ct(this.time);
|
|
5161
|
-
|
|
5148
|
+
l.setWithVelocity(T.sample(y - Le).value, T.sample(y).value, Le);
|
|
5162
5149
|
}
|
|
5163
|
-
const { onStop:
|
|
5164
|
-
|
|
5150
|
+
const { onStop: c } = this.options;
|
|
5151
|
+
c && c(), this.cancel();
|
|
5165
5152
|
}
|
|
5166
5153
|
complete() {
|
|
5167
5154
|
const { resolved: e } = this;
|
|
@@ -5175,12 +5162,12 @@ class ur extends So {
|
|
|
5175
5162
|
const { motionValue: n, name: i, repeatDelay: r, repeatType: o, damping: s, type: a } = e;
|
|
5176
5163
|
if (!n || !n.owner || !(n.owner.current instanceof HTMLElement))
|
|
5177
5164
|
return !1;
|
|
5178
|
-
const { onUpdate:
|
|
5165
|
+
const { onUpdate: c, transformTemplate: l } = n.owner.getProps();
|
|
5179
5166
|
return _d() && i && Md.has(i) && /**
|
|
5180
5167
|
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
5181
5168
|
* no way to read the value from WAAPI every frame.
|
|
5182
5169
|
*/
|
|
5183
|
-
!
|
|
5170
|
+
!c && !l && !r && o !== "mirror" && s !== 0 && a !== "inertia";
|
|
5184
5171
|
}
|
|
5185
5172
|
}
|
|
5186
5173
|
const Fd = {
|
|
@@ -5201,19 +5188,19 @@ const Fd = {
|
|
|
5201
5188
|
ease: [0.25, 0.1, 0.35, 1],
|
|
5202
5189
|
duration: 0.3
|
|
5203
5190
|
}, Wd = (t, { keyframes: e }) => e.length > 2 ? jd : Vt.has(t) ? t.startsWith("scale") ? Bd(e[1]) : Fd : Ud;
|
|
5204
|
-
function Hd({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: r, repeat: o, repeatType: s, repeatDelay: a, from:
|
|
5191
|
+
function Hd({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: r, repeat: o, repeatType: s, repeatDelay: a, from: c, elapsed: l, ...u }) {
|
|
5205
5192
|
return !!Object.keys(u).length;
|
|
5206
5193
|
}
|
|
5207
5194
|
const vi = (t, e, n, i = {}, r, o) => (s) => {
|
|
5208
|
-
const a = ni(i, t) || {},
|
|
5209
|
-
let { elapsed:
|
|
5210
|
-
|
|
5195
|
+
const a = ni(i, t) || {}, c = a.delay || i.delay || 0;
|
|
5196
|
+
let { elapsed: l = 0 } = i;
|
|
5197
|
+
l = l - /* @__PURE__ */ ct(c);
|
|
5211
5198
|
let u = {
|
|
5212
5199
|
keyframes: Array.isArray(n) ? n : [null, n],
|
|
5213
5200
|
ease: "easeOut",
|
|
5214
5201
|
velocity: e.getVelocity(),
|
|
5215
5202
|
...a,
|
|
5216
|
-
delay: -
|
|
5203
|
+
delay: -l,
|
|
5217
5204
|
onUpdate: (h) => {
|
|
5218
5205
|
e.set(h), a.onUpdate && a.onUpdate(h);
|
|
5219
5206
|
},
|
|
@@ -5244,11 +5231,11 @@ function Gd({ protectedKeys: t, needsAnimating: e }, n) {
|
|
|
5244
5231
|
}
|
|
5245
5232
|
function _o(t, e, { delay: n = 0, transitionOverride: i, type: r } = {}) {
|
|
5246
5233
|
var o;
|
|
5247
|
-
let { transition: s = t.getDefaultTransition(), transitionEnd: a, ...
|
|
5234
|
+
let { transition: s = t.getDefaultTransition(), transitionEnd: a, ...c } = e;
|
|
5248
5235
|
i && (s = i);
|
|
5249
|
-
const
|
|
5250
|
-
for (const d in
|
|
5251
|
-
const h = t.getValue(d, (o = t.latestValues[d]) !== null && o !== void 0 ? o : null), p =
|
|
5236
|
+
const l = [], u = r && t.animationState && t.animationState.getState()[r];
|
|
5237
|
+
for (const d in c) {
|
|
5238
|
+
const h = t.getValue(d, (o = t.latestValues[d]) !== null && o !== void 0 ? o : null), p = c[d];
|
|
5252
5239
|
if (p === void 0 || u && Gd(u, d))
|
|
5253
5240
|
continue;
|
|
5254
5241
|
const T = {
|
|
@@ -5265,36 +5252,36 @@ function _o(t, e, { delay: n = 0, transitionOverride: i, type: r } = {}) {
|
|
|
5265
5252
|
}
|
|
5266
5253
|
vn(t, d), h.start(vi(d, h, p, t.shouldReduceMotion && Ys.has(d) ? { type: !1 } : T, t, y));
|
|
5267
5254
|
const v = h.animation;
|
|
5268
|
-
v &&
|
|
5255
|
+
v && l.push(v);
|
|
5269
5256
|
}
|
|
5270
|
-
return a && Promise.all(
|
|
5257
|
+
return a && Promise.all(l).then(() => {
|
|
5271
5258
|
B.update(() => {
|
|
5272
5259
|
a && vu(t, a);
|
|
5273
5260
|
});
|
|
5274
|
-
}),
|
|
5261
|
+
}), l;
|
|
5275
5262
|
}
|
|
5276
5263
|
function En(t, e, n = {}) {
|
|
5277
5264
|
var i;
|
|
5278
5265
|
const r = ze(t, e, n.type === "exit" ? (i = t.presenceContext) === null || i === void 0 ? void 0 : i.custom : void 0);
|
|
5279
5266
|
let { transition: o = t.getDefaultTransition() || {} } = r || {};
|
|
5280
5267
|
n.transitionOverride && (o = n.transitionOverride);
|
|
5281
|
-
const s = r ? () => Promise.all(_o(t, r, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (
|
|
5268
|
+
const s = r ? () => Promise.all(_o(t, r, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (l = 0) => {
|
|
5282
5269
|
const { delayChildren: u = 0, staggerChildren: d, staggerDirection: h } = o;
|
|
5283
|
-
return $d(t, e, u +
|
|
5284
|
-
} : () => Promise.resolve(), { when:
|
|
5285
|
-
if (
|
|
5286
|
-
const [
|
|
5287
|
-
return
|
|
5270
|
+
return $d(t, e, u + l, d, h, n);
|
|
5271
|
+
} : () => Promise.resolve(), { when: c } = o;
|
|
5272
|
+
if (c) {
|
|
5273
|
+
const [l, u] = c === "beforeChildren" ? [s, a] : [a, s];
|
|
5274
|
+
return l().then(() => u());
|
|
5288
5275
|
} else
|
|
5289
5276
|
return Promise.all([s(), a(n.delay)]);
|
|
5290
5277
|
}
|
|
5291
5278
|
function $d(t, e, n = 0, i = 0, r = 1, o) {
|
|
5292
|
-
const s = [], a = (t.variantChildren.size - 1) * i,
|
|
5293
|
-
return Array.from(t.variantChildren).sort(zd).forEach((
|
|
5294
|
-
|
|
5279
|
+
const s = [], a = (t.variantChildren.size - 1) * i, c = r === 1 ? (l = 0) => l * i : (l = 0) => a - l * i;
|
|
5280
|
+
return Array.from(t.variantChildren).sort(zd).forEach((l, u) => {
|
|
5281
|
+
l.notify("AnimationStart", e), s.push(En(l, e, {
|
|
5295
5282
|
...o,
|
|
5296
|
-
delay: n +
|
|
5297
|
-
}).then(() =>
|
|
5283
|
+
delay: n + c(u)
|
|
5284
|
+
}).then(() => l.notify("AnimationComplete", e)));
|
|
5298
5285
|
}), Promise.all(s);
|
|
5299
5286
|
}
|
|
5300
5287
|
function zd(t, e) {
|
|
@@ -5337,25 +5324,25 @@ function Zd(t) {
|
|
|
5337
5324
|
}
|
|
5338
5325
|
function Jd(t) {
|
|
5339
5326
|
let e = Zd(t), n = dr(), i = !0;
|
|
5340
|
-
const r = (
|
|
5327
|
+
const r = (c) => (l, u) => {
|
|
5341
5328
|
var d;
|
|
5342
|
-
const h = ze(t, u,
|
|
5329
|
+
const h = ze(t, u, c === "exit" ? (d = t.presenceContext) === null || d === void 0 ? void 0 : d.custom : void 0);
|
|
5343
5330
|
if (h) {
|
|
5344
5331
|
const { transition: p, transitionEnd: T, ...y } = h;
|
|
5345
|
-
|
|
5332
|
+
l = { ...l, ...y, ...T };
|
|
5346
5333
|
}
|
|
5347
|
-
return
|
|
5334
|
+
return l;
|
|
5348
5335
|
};
|
|
5349
|
-
function o(
|
|
5350
|
-
e =
|
|
5336
|
+
function o(c) {
|
|
5337
|
+
e = c(t);
|
|
5351
5338
|
}
|
|
5352
|
-
function s(
|
|
5353
|
-
const { props:
|
|
5339
|
+
function s(c) {
|
|
5340
|
+
const { props: l } = t, u = Io(t.parent) || {}, d = [], h = /* @__PURE__ */ new Set();
|
|
5354
5341
|
let p = {}, T = 1 / 0;
|
|
5355
5342
|
for (let v = 0; v < Yd; v++) {
|
|
5356
|
-
const x = Xd[v], C = n[x], A =
|
|
5343
|
+
const x = Xd[v], C = n[x], A = l[x] !== void 0 ? l[x] : u[x], S = ce(A), f = x === c ? C.isActive : null;
|
|
5357
5344
|
f === !1 && (T = v);
|
|
5358
|
-
let m = A === u[x] && A !==
|
|
5345
|
+
let m = A === u[x] && A !== l[x] && S;
|
|
5359
5346
|
if (m && i && t.manuallyAnimateOnMount && (m = !1), C.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
|
|
5360
5347
|
!C.isActive && f === null || // If we didn't and don't have any defined prop for this animation type
|
|
5361
5348
|
!A && !C.prevProp || // Or if the prop doesn't define an animation
|
|
@@ -5363,7 +5350,7 @@ function Jd(t) {
|
|
|
5363
5350
|
continue;
|
|
5364
5351
|
const b = Qd(C.prevProp, A);
|
|
5365
5352
|
let w = b || // If we're making this variant active, we want to always make it active
|
|
5366
|
-
x ===
|
|
5353
|
+
x === c && C.isActive && !m && S || // If we removed a higher-priority variant (i is in reverse order)
|
|
5367
5354
|
v > T && S, P = !1;
|
|
5368
5355
|
const k = Array.isArray(A) ? A : [A];
|
|
5369
5356
|
let N = k.reduce(r(x), {});
|
|
@@ -5396,17 +5383,17 @@ function Jd(t) {
|
|
|
5396
5383
|
}), d.push({ animation: v });
|
|
5397
5384
|
}
|
|
5398
5385
|
let y = !!d.length;
|
|
5399
|
-
return i && (
|
|
5386
|
+
return i && (l.initial === !1 || l.initial === l.animate) && !t.manuallyAnimateOnMount && (y = !1), i = !1, y ? e(d) : Promise.resolve();
|
|
5400
5387
|
}
|
|
5401
|
-
function a(
|
|
5388
|
+
function a(c, l) {
|
|
5402
5389
|
var u;
|
|
5403
|
-
if (n[
|
|
5390
|
+
if (n[c].isActive === l)
|
|
5404
5391
|
return Promise.resolve();
|
|
5405
5392
|
(u = t.variantChildren) === null || u === void 0 || u.forEach((h) => {
|
|
5406
5393
|
var p;
|
|
5407
|
-
return (p = h.animationState) === null || p === void 0 ? void 0 : p.setActive(
|
|
5408
|
-
}), n[
|
|
5409
|
-
const d = s(
|
|
5394
|
+
return (p = h.animationState) === null || p === void 0 ? void 0 : p.setActive(c, l);
|
|
5395
|
+
}), n[c].isActive = l;
|
|
5396
|
+
const d = s(c);
|
|
5410
5397
|
for (const h in n)
|
|
5411
5398
|
n[h].protectedKeys = {};
|
|
5412
5399
|
return d;
|
|
@@ -5565,8 +5552,8 @@ class Lo {
|
|
|
5565
5552
|
}, !yi(e))
|
|
5566
5553
|
return;
|
|
5567
5554
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.contextWindow = r || window;
|
|
5568
|
-
const s = be(e), a = sn(s, this.transformPagePoint), { point:
|
|
5569
|
-
this.history = [{ ...
|
|
5555
|
+
const s = be(e), a = sn(s, this.transformPagePoint), { point: c } = a, { timestamp: l } = z;
|
|
5556
|
+
this.history = [{ ...c, timestamp: l }];
|
|
5570
5557
|
const { onSessionStart: u } = n;
|
|
5571
5558
|
u && u(e, on(a, this.history)), this.removeListeners = ye(se(this.contextWindow, "pointermove", this.handlePointerMove), se(this.contextWindow, "pointerup", this.handlePointerUp), se(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
5572
5559
|
}
|
|
@@ -5762,8 +5749,8 @@ function Af(t, e, n, i = !1) {
|
|
|
5762
5749
|
let o, s;
|
|
5763
5750
|
for (let a = 0; a < r; a++) {
|
|
5764
5751
|
o = n[a], s = o.projectionDelta;
|
|
5765
|
-
const { visualElement:
|
|
5766
|
-
|
|
5752
|
+
const { visualElement: c } = o.options;
|
|
5753
|
+
c && c.props.style && c.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && jt(t, {
|
|
5767
5754
|
x: -o.scroll.offset.x,
|
|
5768
5755
|
y: -o.scroll.offset.y
|
|
5769
5756
|
}), s && (e.x *= s.x.scale, e.y *= s.y.scale, Wo(t, s)), i && Pt(o.latestValues) && jt(t, o.latestValues));
|
|
@@ -5826,19 +5813,19 @@ class Pf {
|
|
|
5826
5813
|
return;
|
|
5827
5814
|
}
|
|
5828
5815
|
this.updateAxis("x", d.point, v), this.updateAxis("y", d.point, v), this.visualElement.render(), y && y(u, d);
|
|
5829
|
-
}, a = (u, d) => this.stop(u, d),
|
|
5816
|
+
}, a = (u, d) => this.stop(u, d), c = () => it((u) => {
|
|
5830
5817
|
var d;
|
|
5831
5818
|
return this.getAnimationState(u) === "paused" && ((d = this.getAxisMotionValue(u).animation) === null || d === void 0 ? void 0 : d.play());
|
|
5832
|
-
}), { dragSnapToOrigin:
|
|
5819
|
+
}), { dragSnapToOrigin: l } = this.getProps();
|
|
5833
5820
|
this.panSession = new Lo(e, {
|
|
5834
5821
|
onSessionStart: r,
|
|
5835
5822
|
onStart: o,
|
|
5836
5823
|
onMove: s,
|
|
5837
5824
|
onSessionEnd: a,
|
|
5838
|
-
resumeAnimation:
|
|
5825
|
+
resumeAnimation: c
|
|
5839
5826
|
}, {
|
|
5840
5827
|
transformPagePoint: this.visualElement.getTransformPagePoint(),
|
|
5841
|
-
dragSnapToOrigin:
|
|
5828
|
+
dragSnapToOrigin: l,
|
|
5842
5829
|
contextWindow: Go(this.visualElement)
|
|
5843
5830
|
});
|
|
5844
5831
|
}
|
|
@@ -5891,10 +5878,10 @@ class Pf {
|
|
|
5891
5878
|
return s;
|
|
5892
5879
|
}
|
|
5893
5880
|
startAnimation(e) {
|
|
5894
|
-
const { drag: n, dragMomentum: i, dragElastic: r, dragTransition: o, dragSnapToOrigin: s, onDragTransitionEnd: a } = this.getProps(),
|
|
5881
|
+
const { drag: n, dragMomentum: i, dragElastic: r, dragTransition: o, dragSnapToOrigin: s, onDragTransitionEnd: a } = this.getProps(), c = this.constraints || {}, l = it((u) => {
|
|
5895
5882
|
if (!Ee(u, n, this.currentDirection))
|
|
5896
5883
|
return;
|
|
5897
|
-
let d =
|
|
5884
|
+
let d = c && c[u] || {};
|
|
5898
5885
|
s && (d = { min: 0, max: 0 });
|
|
5899
5886
|
const h = r ? 200 : 1e6, p = r ? 40 : 1e7, T = {
|
|
5900
5887
|
type: "inertia",
|
|
@@ -5909,7 +5896,7 @@ class Pf {
|
|
|
5909
5896
|
};
|
|
5910
5897
|
return this.startAxisValueAnimation(u, T);
|
|
5911
5898
|
});
|
|
5912
|
-
return Promise.all(
|
|
5899
|
+
return Promise.all(l).then(a);
|
|
5913
5900
|
}
|
|
5914
5901
|
startAxisValueAnimation(e, n) {
|
|
5915
5902
|
const i = this.getAxisMotionValue(e);
|
|
@@ -5966,34 +5953,34 @@ class Pf {
|
|
|
5966
5953
|
it((s) => {
|
|
5967
5954
|
const a = this.getAxisMotionValue(s);
|
|
5968
5955
|
if (a && this.constraints !== !1) {
|
|
5969
|
-
const
|
|
5970
|
-
r[s] = bf({ min:
|
|
5956
|
+
const c = a.get();
|
|
5957
|
+
r[s] = bf({ min: c, max: c }, this.constraints[s]);
|
|
5971
5958
|
}
|
|
5972
5959
|
});
|
|
5973
5960
|
const { transformTemplate: o } = this.visualElement.getProps();
|
|
5974
5961
|
this.visualElement.current.style.transform = o ? o({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), it((s) => {
|
|
5975
5962
|
if (!Ee(s, e, null))
|
|
5976
5963
|
return;
|
|
5977
|
-
const a = this.getAxisMotionValue(s), { min:
|
|
5978
|
-
a.set(U(
|
|
5964
|
+
const a = this.getAxisMotionValue(s), { min: c, max: l } = this.constraints[s];
|
|
5965
|
+
a.set(U(c, l, r[s]));
|
|
5979
5966
|
});
|
|
5980
5967
|
}
|
|
5981
5968
|
addListeners() {
|
|
5982
5969
|
if (!this.visualElement.current)
|
|
5983
5970
|
return;
|
|
5984
5971
|
Ef.set(this.visualElement, this);
|
|
5985
|
-
const e = this.visualElement.current, n = se(e, "pointerdown", (
|
|
5986
|
-
const { drag:
|
|
5987
|
-
|
|
5972
|
+
const e = this.visualElement.current, n = se(e, "pointerdown", (c) => {
|
|
5973
|
+
const { drag: l, dragListener: u = !0 } = this.getProps();
|
|
5974
|
+
l && u && this.start(c);
|
|
5988
5975
|
}), i = () => {
|
|
5989
|
-
const { dragConstraints:
|
|
5990
|
-
Lt(
|
|
5976
|
+
const { dragConstraints: c } = this.getProps();
|
|
5977
|
+
Lt(c) && c.current && (this.constraints = this.resolveRefConstraints());
|
|
5991
5978
|
}, { projection: r } = this.visualElement, o = r.addEventListener("measure", i);
|
|
5992
5979
|
r && !r.layout && (r.root && r.root.updateScroll(), r.updateLayout()), B.read(i);
|
|
5993
|
-
const s = he(window, "resize", () => this.scalePositionWithinConstraints()), a = r.addEventListener("didUpdate", (({ delta:
|
|
5994
|
-
this.isDragging &&
|
|
5980
|
+
const s = he(window, "resize", () => this.scalePositionWithinConstraints()), a = r.addEventListener("didUpdate", (({ delta: c, hasLayoutChanged: l }) => {
|
|
5981
|
+
this.isDragging && l && (it((u) => {
|
|
5995
5982
|
const d = this.getAxisMotionValue(u);
|
|
5996
|
-
d && (this.originPoint[u] +=
|
|
5983
|
+
d && (this.originPoint[u] += c[u].translate, d.set(d.get() + c[u].translate));
|
|
5997
5984
|
}), this.visualElement.render());
|
|
5998
5985
|
}));
|
|
5999
5986
|
return () => {
|
|
@@ -6098,10 +6085,10 @@ const te = {
|
|
|
6098
6085
|
const i = t, r = xt.parse(t);
|
|
6099
6086
|
if (r.length > 5)
|
|
6100
6087
|
return i;
|
|
6101
|
-
const o = xt.createTransformer(t), s = typeof r[0] != "number" ? 1 : 0, a = n.x.scale * e.x,
|
|
6102
|
-
r[0 + s] /= a, r[1 + s] /=
|
|
6103
|
-
const
|
|
6104
|
-
return typeof r[2 + s] == "number" && (r[2 + s] /=
|
|
6088
|
+
const o = xt.createTransformer(t), s = typeof r[0] != "number" ? 1 : 0, a = n.x.scale * e.x, c = n.y.scale * e.y;
|
|
6089
|
+
r[0 + s] /= a, r[1 + s] /= c;
|
|
6090
|
+
const l = U(a, c, 0.5);
|
|
6091
|
+
return typeof r[2 + s] == "number" && (r[2 + s] /= l), typeof r[3 + s] == "number" && (r[3 + s] /= l), o(r);
|
|
6105
6092
|
}
|
|
6106
6093
|
};
|
|
6107
6094
|
class Vf extends Ua {
|
|
@@ -6203,10 +6190,10 @@ function jf(t, e, n, i, r, o) {
|
|
|
6203
6190
|
), t.opacityExit = U(e.opacity !== void 0 ? e.opacity : 1, 0, Wf(i))) : o && (t.opacity = U(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
|
|
6204
6191
|
for (let s = 0; s < Bf; s++) {
|
|
6205
6192
|
const a = `border${zo[s]}Radius`;
|
|
6206
|
-
let
|
|
6207
|
-
if (
|
|
6193
|
+
let c = Vr(e, a), l = Vr(n, a);
|
|
6194
|
+
if (c === void 0 && l === void 0)
|
|
6208
6195
|
continue;
|
|
6209
|
-
|
|
6196
|
+
c || (c = 0), l || (l = 0), c === 0 || l === 0 || Mr(c) === Mr(l) ? (t[a] = Math.max(U(kr(c), kr(l), i), 0), (at.test(l) || at.test(c)) && (t[a] += "%")) : t[a] = l;
|
|
6210
6197
|
}
|
|
6211
6198
|
(e.rotate || n.rotate) && (t.rotate = U(e.rotate || 0, n.rotate || 0, i));
|
|
6212
6199
|
}
|
|
@@ -6324,11 +6311,11 @@ function Kf(t, e, n) {
|
|
|
6324
6311
|
let i = "";
|
|
6325
6312
|
const r = t.x.translate / e.x, o = t.y.translate / e.y, s = n?.z || 0;
|
|
6326
6313
|
if ((r || o || s) && (i = `translate3d(${r}px, ${o}px, ${s}px) `), (e.x !== 1 || e.y !== 1) && (i += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
|
|
6327
|
-
const { transformPerspective:
|
|
6328
|
-
|
|
6314
|
+
const { transformPerspective: l, rotate: u, rotateX: d, rotateY: h, skewX: p, skewY: T } = n;
|
|
6315
|
+
l && (i = `perspective(${l}px) ${i}`), u && (i += `rotate(${u}deg) `), d && (i += `rotateX(${d}deg) `), h && (i += `rotateY(${h}deg) `), p && (i += `skewX(${p}deg) `), T && (i += `skewY(${T}deg) `);
|
|
6329
6316
|
}
|
|
6330
|
-
const a = t.x.scale * e.x,
|
|
6331
|
-
return (a !== 1 ||
|
|
6317
|
+
const a = t.x.scale * e.x, c = t.y.scale * e.y;
|
|
6318
|
+
return (a !== 1 || c !== 1) && (i += `scale(${a}, ${c})`), i || "none";
|
|
6332
6319
|
}
|
|
6333
6320
|
const Rt = {
|
|
6334
6321
|
type: "projectionFrame",
|
|
@@ -6363,16 +6350,16 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6363
6350
|
}, this.updateProjection = () => {
|
|
6364
6351
|
this.projectionUpdateScheduled = !1, ne && (Rt.totalNodes = Rt.resolvedTargetDeltas = Rt.recalculatedProjection = 0), this.nodes.forEach(Qf), this.nodes.forEach(rh), this.nodes.forEach(sh), this.nodes.forEach(th), ne && window.MotionDebug.record(Rt);
|
|
6365
6352
|
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = s, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
|
|
6366
|
-
for (let
|
|
6367
|
-
this.path[
|
|
6353
|
+
for (let c = 0; c < this.path.length; c++)
|
|
6354
|
+
this.path[c].shouldResetTransform = !0;
|
|
6368
6355
|
this.root === this && (this.nodes = new Nf());
|
|
6369
6356
|
}
|
|
6370
6357
|
addEventListener(s, a) {
|
|
6371
6358
|
return this.eventHandlers.has(s) || this.eventHandlers.set(s, new si()), this.eventHandlers.get(s).add(a);
|
|
6372
6359
|
}
|
|
6373
6360
|
notifyListeners(s, ...a) {
|
|
6374
|
-
const
|
|
6375
|
-
|
|
6361
|
+
const c = this.eventHandlers.get(s);
|
|
6362
|
+
c && c.notify(...a);
|
|
6376
6363
|
}
|
|
6377
6364
|
hasListeners(s) {
|
|
6378
6365
|
return this.eventHandlers.has(s);
|
|
@@ -6384,15 +6371,15 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6384
6371
|
if (this.instance)
|
|
6385
6372
|
return;
|
|
6386
6373
|
this.isSVG = Of(s), this.instance = s;
|
|
6387
|
-
const { layoutId:
|
|
6388
|
-
if (u && !u.current && u.mount(s), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (
|
|
6374
|
+
const { layoutId: c, layout: l, visualElement: u } = this.options;
|
|
6375
|
+
if (u && !u.current && u.mount(s), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (l || c) && (this.isLayoutDirty = !0), t) {
|
|
6389
6376
|
let d;
|
|
6390
6377
|
const h = () => this.root.updateBlockedByResize = !1;
|
|
6391
6378
|
t(s, () => {
|
|
6392
6379
|
this.root.updateBlockedByResize = !0, d && d(), d = Ff(h, 250), De.hasAnimatedSinceResize && (De.hasAnimatedSinceResize = !1, this.nodes.forEach($r));
|
|
6393
6380
|
});
|
|
6394
6381
|
}
|
|
6395
|
-
|
|
6382
|
+
c && this.root.registerSharedNode(c, this), this.options.animate !== !1 && u && (c || l) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: h, hasRelativeTargetChanged: p, layout: T }) => {
|
|
6396
6383
|
if (this.isTreeAnimationBlocked()) {
|
|
6397
6384
|
this.target = void 0, this.relativeTarget = void 0;
|
|
6398
6385
|
return;
|
|
@@ -6449,11 +6436,11 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6449
6436
|
const d = this.path[u];
|
|
6450
6437
|
d.shouldResetTransform = !0, d.updateScroll("snapshot"), d.options.layoutRoot && d.willUpdate(!1);
|
|
6451
6438
|
}
|
|
6452
|
-
const { layoutId: a, layout:
|
|
6453
|
-
if (a === void 0 && !
|
|
6439
|
+
const { layoutId: a, layout: c } = this.options;
|
|
6440
|
+
if (a === void 0 && !c)
|
|
6454
6441
|
return;
|
|
6455
|
-
const
|
|
6456
|
-
this.prevTransformTemplateValue =
|
|
6442
|
+
const l = this.getTransformTemplate();
|
|
6443
|
+
this.prevTransformTemplateValue = l ? l(this.latestValues, "") : void 0, this.updateSnapshot(), s && this.notifyListeners("willUpdate");
|
|
6457
6444
|
}
|
|
6458
6445
|
update() {
|
|
6459
6446
|
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
@@ -6488,8 +6475,8 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6488
6475
|
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
|
|
6489
6476
|
return;
|
|
6490
6477
|
if (this.resumeFrom && !this.resumeFrom.instance)
|
|
6491
|
-
for (let
|
|
6492
|
-
this.path[
|
|
6478
|
+
for (let c = 0; c < this.path.length; c++)
|
|
6479
|
+
this.path[c].updateScroll();
|
|
6493
6480
|
const s = this.layout;
|
|
6494
6481
|
this.layout = this.measure(!1), this.layoutCorrected = H(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
6495
6482
|
const { visualElement: a } = this.options;
|
|
@@ -6498,29 +6485,29 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6498
6485
|
updateScroll(s = "measure") {
|
|
6499
6486
|
let a = !!(this.options.layoutScroll && this.instance);
|
|
6500
6487
|
if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === s && (a = !1), a) {
|
|
6501
|
-
const
|
|
6488
|
+
const c = i(this.instance);
|
|
6502
6489
|
this.scroll = {
|
|
6503
6490
|
animationId: this.root.animationId,
|
|
6504
6491
|
phase: s,
|
|
6505
|
-
isRoot:
|
|
6492
|
+
isRoot: c,
|
|
6506
6493
|
offset: n(this.instance),
|
|
6507
|
-
wasRoot: this.scroll ? this.scroll.isRoot :
|
|
6494
|
+
wasRoot: this.scroll ? this.scroll.isRoot : c
|
|
6508
6495
|
};
|
|
6509
6496
|
}
|
|
6510
6497
|
}
|
|
6511
6498
|
resetTransform() {
|
|
6512
6499
|
if (!r)
|
|
6513
6500
|
return;
|
|
6514
|
-
const s = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !Ko(this.projectionDelta),
|
|
6515
|
-
s && (a || Pt(this.latestValues) || u) && (r(this.instance,
|
|
6501
|
+
const s = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !Ko(this.projectionDelta), c = this.getTransformTemplate(), l = c ? c(this.latestValues, "") : void 0, u = l !== this.prevTransformTemplateValue;
|
|
6502
|
+
s && (a || Pt(this.latestValues) || u) && (r(this.instance, l), this.shouldResetTransform = !1, this.scheduleRender());
|
|
6516
6503
|
}
|
|
6517
6504
|
measure(s = !0) {
|
|
6518
6505
|
const a = this.measurePageBox();
|
|
6519
|
-
let
|
|
6520
|
-
return s && (
|
|
6506
|
+
let c = this.removeElementScroll(a);
|
|
6507
|
+
return s && (c = this.removeTransform(c)), dh(c), {
|
|
6521
6508
|
animationId: this.root.animationId,
|
|
6522
6509
|
measuredBox: a,
|
|
6523
|
-
layoutBox:
|
|
6510
|
+
layoutBox: c,
|
|
6524
6511
|
latestValues: {},
|
|
6525
6512
|
source: this.id
|
|
6526
6513
|
};
|
|
@@ -6530,46 +6517,46 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6530
6517
|
const { visualElement: a } = this.options;
|
|
6531
6518
|
if (!a)
|
|
6532
6519
|
return H();
|
|
6533
|
-
const
|
|
6520
|
+
const c = a.measureViewportBox();
|
|
6534
6521
|
if (!(((s = this.scroll) === null || s === void 0 ? void 0 : s.wasRoot) || this.path.some(fh))) {
|
|
6535
6522
|
const { scroll: u } = this.root;
|
|
6536
|
-
u && (Bt(
|
|
6523
|
+
u && (Bt(c.x, u.offset.x), Bt(c.y, u.offset.y));
|
|
6537
6524
|
}
|
|
6538
|
-
return
|
|
6525
|
+
return c;
|
|
6539
6526
|
}
|
|
6540
6527
|
removeElementScroll(s) {
|
|
6541
6528
|
var a;
|
|
6542
|
-
const
|
|
6543
|
-
if (nt(
|
|
6544
|
-
return
|
|
6545
|
-
for (let
|
|
6546
|
-
const u = this.path[
|
|
6547
|
-
u !== this.root && d && h.layoutScroll && (d.wasRoot && nt(
|
|
6529
|
+
const c = H();
|
|
6530
|
+
if (nt(c, s), !((a = this.scroll) === null || a === void 0) && a.wasRoot)
|
|
6531
|
+
return c;
|
|
6532
|
+
for (let l = 0; l < this.path.length; l++) {
|
|
6533
|
+
const u = this.path[l], { scroll: d, options: h } = u;
|
|
6534
|
+
u !== this.root && d && h.layoutScroll && (d.wasRoot && nt(c, s), Bt(c.x, d.offset.x), Bt(c.y, d.offset.y));
|
|
6548
6535
|
}
|
|
6549
|
-
return
|
|
6536
|
+
return c;
|
|
6550
6537
|
}
|
|
6551
6538
|
applyTransform(s, a = !1) {
|
|
6552
|
-
const
|
|
6553
|
-
nt(
|
|
6554
|
-
for (let
|
|
6555
|
-
const u = this.path[
|
|
6556
|
-
!a && u.options.layoutScroll && u.scroll && u !== u.root && jt(
|
|
6539
|
+
const c = H();
|
|
6540
|
+
nt(c, s);
|
|
6541
|
+
for (let l = 0; l < this.path.length; l++) {
|
|
6542
|
+
const u = this.path[l];
|
|
6543
|
+
!a && u.options.layoutScroll && u.scroll && u !== u.root && jt(c, {
|
|
6557
6544
|
x: -u.scroll.offset.x,
|
|
6558
6545
|
y: -u.scroll.offset.y
|
|
6559
|
-
}), Pt(u.latestValues) && jt(
|
|
6546
|
+
}), Pt(u.latestValues) && jt(c, u.latestValues);
|
|
6560
6547
|
}
|
|
6561
|
-
return Pt(this.latestValues) && jt(
|
|
6548
|
+
return Pt(this.latestValues) && jt(c, this.latestValues), c;
|
|
6562
6549
|
}
|
|
6563
6550
|
removeTransform(s) {
|
|
6564
6551
|
const a = H();
|
|
6565
6552
|
nt(a, s);
|
|
6566
|
-
for (let
|
|
6567
|
-
const
|
|
6568
|
-
if (!
|
|
6553
|
+
for (let c = 0; c < this.path.length; c++) {
|
|
6554
|
+
const l = this.path[c];
|
|
6555
|
+
if (!l.instance || !Pt(l.latestValues))
|
|
6569
6556
|
continue;
|
|
6570
|
-
Rn(
|
|
6571
|
-
const u = H(), d =
|
|
6572
|
-
nt(u, d), Nr(a,
|
|
6557
|
+
Rn(l.latestValues) && l.updateSnapshot();
|
|
6558
|
+
const u = H(), d = l.measurePageBox();
|
|
6559
|
+
nt(u, d), Nr(a, l.latestValues, l.snapshot ? l.snapshot.layoutBox : void 0, u);
|
|
6573
6560
|
}
|
|
6574
6561
|
return Pt(this.latestValues) && Nr(a, this.latestValues), a;
|
|
6575
6562
|
}
|
|
@@ -6591,10 +6578,10 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6591
6578
|
}
|
|
6592
6579
|
resolveTargetDelta(s = !1) {
|
|
6593
6580
|
var a;
|
|
6594
|
-
const
|
|
6595
|
-
this.isProjectionDirty || (this.isProjectionDirty =
|
|
6596
|
-
const
|
|
6597
|
-
if (!(s ||
|
|
6581
|
+
const c = this.getLead();
|
|
6582
|
+
this.isProjectionDirty || (this.isProjectionDirty = c.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = c.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = c.isSharedProjectionDirty);
|
|
6583
|
+
const l = !!this.resumingFrom || this !== c;
|
|
6584
|
+
if (!(s || l && this.isSharedProjectionDirty || this.isProjectionDirty || !((a = this.parent) === null || a === void 0) && a.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize))
|
|
6598
6585
|
return;
|
|
6599
6586
|
const { layout: d, layoutId: h } = this.options;
|
|
6600
6587
|
if (!(!this.layout || !(d || h))) {
|
|
@@ -6621,16 +6608,16 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6621
6608
|
}
|
|
6622
6609
|
calcProjection() {
|
|
6623
6610
|
var s;
|
|
6624
|
-
const a = this.getLead(),
|
|
6625
|
-
let
|
|
6626
|
-
if ((this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty) && (
|
|
6611
|
+
const a = this.getLead(), c = !!this.resumingFrom || this !== a;
|
|
6612
|
+
let l = !0;
|
|
6613
|
+
if ((this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty) && (l = !1), c && (this.isSharedProjectionDirty || this.isTransformDirty) && (l = !1), this.resolvedRelativeTargetAt === z.timestamp && (l = !1), l)
|
|
6627
6614
|
return;
|
|
6628
6615
|
const { layout: u, layoutId: d } = this.options;
|
|
6629
6616
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || d))
|
|
6630
6617
|
return;
|
|
6631
6618
|
nt(this.layoutCorrected, this.layout.layoutBox);
|
|
6632
6619
|
const h = this.treeScale.x, p = this.treeScale.y;
|
|
6633
|
-
Af(this.layoutCorrected, this.treeScale, this.path,
|
|
6620
|
+
Af(this.layoutCorrected, this.treeScale, this.path, c), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = H());
|
|
6634
6621
|
const { target: T } = a;
|
|
6635
6622
|
if (!T) {
|
|
6636
6623
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
@@ -6647,8 +6634,8 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6647
6634
|
scheduleRender(s = !0) {
|
|
6648
6635
|
var a;
|
|
6649
6636
|
if ((a = this.options.visualElement) === null || a === void 0 || a.scheduleRender(), s) {
|
|
6650
|
-
const
|
|
6651
|
-
|
|
6637
|
+
const c = this.getStack();
|
|
6638
|
+
c && c.scheduleRender();
|
|
6652
6639
|
}
|
|
6653
6640
|
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
6654
6641
|
}
|
|
@@ -6656,14 +6643,14 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6656
6643
|
this.prevProjectionDelta = Ft(), this.projectionDelta = Ft(), this.projectionDeltaWithTransform = Ft();
|
|
6657
6644
|
}
|
|
6658
6645
|
setAnimationOrigin(s, a = !1) {
|
|
6659
|
-
const
|
|
6646
|
+
const c = this.snapshot, l = c ? c.latestValues : {}, u = { ...this.latestValues }, d = Ft();
|
|
6660
6647
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
6661
|
-
const h = H(), p =
|
|
6648
|
+
const h = H(), p = c ? c.source : void 0, T = this.layout ? this.layout.source : void 0, y = p !== T, v = this.getStack(), x = !v || v.members.length <= 1, C = !!(y && !x && this.options.crossfade === !0 && !this.path.some(ch));
|
|
6662
6649
|
this.animationProgress = 0;
|
|
6663
6650
|
let A;
|
|
6664
6651
|
this.mixTargetDelta = (S) => {
|
|
6665
6652
|
const f = S / 1e3;
|
|
6666
|
-
zr(d.x, s.x, f), zr(d.y, s.y, f), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ae(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), lh(this.relativeTarget, this.relativeTargetOrigin, h, f), A && zf(this.relativeTarget, A) && (this.isProjectionDirty = !1), A || (A = H()), nt(A, this.relativeTarget)), y && (this.animationValues = u, jf(u,
|
|
6653
|
+
zr(d.x, s.x, f), zr(d.y, s.y, f), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ae(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), lh(this.relativeTarget, this.relativeTargetOrigin, h, f), A && zf(this.relativeTarget, A) && (this.isProjectionDirty = !1), A || (A = H()), nt(A, this.relativeTarget)), y && (this.animationValues = u, jf(u, l, this.latestValues, f, C, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = f;
|
|
6667
6654
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
6668
6655
|
}
|
|
6669
6656
|
startAnimation(s) {
|
|
@@ -6689,24 +6676,24 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6689
6676
|
}
|
|
6690
6677
|
applyTransformsToTarget() {
|
|
6691
6678
|
const s = this.getLead();
|
|
6692
|
-
let { targetWithTransforms: a, target:
|
|
6693
|
-
if (!(!a || !
|
|
6694
|
-
if (this !== s && this.layout &&
|
|
6695
|
-
|
|
6679
|
+
let { targetWithTransforms: a, target: c, layout: l, latestValues: u } = s;
|
|
6680
|
+
if (!(!a || !c || !l)) {
|
|
6681
|
+
if (this !== s && this.layout && l && Jo(this.options.animationType, this.layout.layoutBox, l.layoutBox)) {
|
|
6682
|
+
c = this.target || H();
|
|
6696
6683
|
const d = Z(this.layout.layoutBox.x);
|
|
6697
|
-
|
|
6684
|
+
c.x.min = s.target.x.min, c.x.max = c.x.min + d;
|
|
6698
6685
|
const h = Z(this.layout.layoutBox.y);
|
|
6699
|
-
|
|
6686
|
+
c.y.min = s.target.y.min, c.y.max = c.y.min + h;
|
|
6700
6687
|
}
|
|
6701
|
-
nt(a,
|
|
6688
|
+
nt(a, c), jt(a, u), oe(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
|
|
6702
6689
|
}
|
|
6703
6690
|
}
|
|
6704
6691
|
registerSharedNode(s, a) {
|
|
6705
6692
|
this.sharedNodes.has(s) || this.sharedNodes.set(s, new qf()), this.sharedNodes.get(s).add(a);
|
|
6706
|
-
const
|
|
6693
|
+
const l = a.options.initialPromotionConfig;
|
|
6707
6694
|
a.promote({
|
|
6708
|
-
transition:
|
|
6709
|
-
preserveFollowOpacity:
|
|
6695
|
+
transition: l ? l.transition : void 0,
|
|
6696
|
+
preserveFollowOpacity: l && l.shouldPreserveFollowOpacity ? l.shouldPreserveFollowOpacity(a) : void 0
|
|
6710
6697
|
});
|
|
6711
6698
|
}
|
|
6712
6699
|
isLead() {
|
|
@@ -6728,9 +6715,9 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6728
6715
|
if (s)
|
|
6729
6716
|
return this.root.sharedNodes.get(s);
|
|
6730
6717
|
}
|
|
6731
|
-
promote({ needsReset: s, transition: a, preserveFollowOpacity:
|
|
6732
|
-
const
|
|
6733
|
-
|
|
6718
|
+
promote({ needsReset: s, transition: a, preserveFollowOpacity: c } = {}) {
|
|
6719
|
+
const l = this.getStack();
|
|
6720
|
+
l && l.promote(this, c), s && (this.projectionDelta = void 0, this.needsReset = !0), a && this.setOptions({ transition: a });
|
|
6734
6721
|
}
|
|
6735
6722
|
relegate() {
|
|
6736
6723
|
const s = this.getStack();
|
|
@@ -6741,50 +6728,50 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6741
6728
|
if (!s)
|
|
6742
6729
|
return;
|
|
6743
6730
|
let a = !1;
|
|
6744
|
-
const { latestValues:
|
|
6745
|
-
if ((
|
|
6731
|
+
const { latestValues: c } = s;
|
|
6732
|
+
if ((c.z || c.rotate || c.rotateX || c.rotateY || c.rotateZ || c.skewX || c.skewY) && (a = !0), !a)
|
|
6746
6733
|
return;
|
|
6747
|
-
const
|
|
6748
|
-
|
|
6734
|
+
const l = {};
|
|
6735
|
+
c.z && cn("z", s, l, this.animationValues);
|
|
6749
6736
|
for (let u = 0; u < ln.length; u++)
|
|
6750
|
-
cn(`rotate${ln[u]}`, s,
|
|
6737
|
+
cn(`rotate${ln[u]}`, s, l, this.animationValues), cn(`skew${ln[u]}`, s, l, this.animationValues);
|
|
6751
6738
|
s.render();
|
|
6752
|
-
for (const u in
|
|
6753
|
-
s.setStaticValue(u,
|
|
6739
|
+
for (const u in l)
|
|
6740
|
+
s.setStaticValue(u, l[u]), this.animationValues && (this.animationValues[u] = l[u]);
|
|
6754
6741
|
s.scheduleRender();
|
|
6755
6742
|
}
|
|
6756
6743
|
getProjectionStyles(s) {
|
|
6757
|
-
var a,
|
|
6744
|
+
var a, c;
|
|
6758
6745
|
if (!this.instance || this.isSVG)
|
|
6759
6746
|
return;
|
|
6760
6747
|
if (!this.isVisible)
|
|
6761
6748
|
return Xf;
|
|
6762
|
-
const
|
|
6749
|
+
const l = {
|
|
6763
6750
|
visibility: ""
|
|
6764
6751
|
}, u = this.getTransformTemplate();
|
|
6765
6752
|
if (this.needsReset)
|
|
6766
|
-
return this.needsReset = !1,
|
|
6753
|
+
return this.needsReset = !1, l.opacity = "", l.pointerEvents = Pe(s?.pointerEvents) || "", l.transform = u ? u(this.latestValues, "") : "none", l;
|
|
6767
6754
|
const d = this.getLead();
|
|
6768
6755
|
if (!this.projectionDelta || !this.layout || !d.target) {
|
|
6769
6756
|
const y = {};
|
|
6770
6757
|
return this.options.layoutId && (y.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, y.pointerEvents = Pe(s?.pointerEvents) || ""), this.hasProjected && !Pt(this.latestValues) && (y.transform = u ? u({}, "") : "none", this.hasProjected = !1), y;
|
|
6771
6758
|
}
|
|
6772
6759
|
const h = d.animationValues || d.latestValues;
|
|
6773
|
-
this.applyTransformsToTarget(),
|
|
6760
|
+
this.applyTransformsToTarget(), l.transform = Kf(this.projectionDeltaWithTransform, this.treeScale, h), u && (l.transform = u(h, l.transform));
|
|
6774
6761
|
const { x: p, y: T } = this.projectionDelta;
|
|
6775
|
-
|
|
6762
|
+
l.transformOrigin = `${p.origin * 100}% ${T.origin * 100}% 0`, d.animationValues ? l.opacity = d === this ? (c = (a = h.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && c !== void 0 ? c : 1 : this.preserveOpacity ? this.latestValues.opacity : h.opacityExit : l.opacity = d === this ? h.opacity !== void 0 ? h.opacity : "" : h.opacityExit !== void 0 ? h.opacityExit : 0;
|
|
6776
6763
|
for (const y in Ve) {
|
|
6777
6764
|
if (h[y] === void 0)
|
|
6778
6765
|
continue;
|
|
6779
|
-
const { correct: v, applyTo: x } = Ve[y], C =
|
|
6766
|
+
const { correct: v, applyTo: x } = Ve[y], C = l.transform === "none" ? h[y] : v(h[y], d);
|
|
6780
6767
|
if (x) {
|
|
6781
6768
|
const A = x.length;
|
|
6782
6769
|
for (let S = 0; S < A; S++)
|
|
6783
|
-
|
|
6770
|
+
l[x[S]] = C;
|
|
6784
6771
|
} else
|
|
6785
|
-
|
|
6772
|
+
l[y] = C;
|
|
6786
6773
|
}
|
|
6787
|
-
return this.options.layoutId && (
|
|
6774
|
+
return this.options.layoutId && (l.pointerEvents = d === this ? Pe(s?.pointerEvents) || "" : "none"), l;
|
|
6788
6775
|
}
|
|
6789
6776
|
clearSnapshot() {
|
|
6790
6777
|
this.resumeFrom = this.snapshot = void 0;
|
|
@@ -6815,9 +6802,9 @@ function Jf(t) {
|
|
|
6815
6802
|
});
|
|
6816
6803
|
const a = Ft();
|
|
6817
6804
|
oe(a, i, n.layoutBox);
|
|
6818
|
-
const
|
|
6819
|
-
s ? oe(
|
|
6820
|
-
const
|
|
6805
|
+
const c = Ft();
|
|
6806
|
+
s ? oe(c, t.applyTransform(r, !0), n.measuredBox) : oe(c, i, n.layoutBox);
|
|
6807
|
+
const l = !Ko(a);
|
|
6821
6808
|
let u = !1;
|
|
6822
6809
|
if (!t.resumeFrom) {
|
|
6823
6810
|
const d = t.getClosestProjectingParent();
|
|
@@ -6834,9 +6821,9 @@ function Jf(t) {
|
|
|
6834
6821
|
t.notifyListeners("didUpdate", {
|
|
6835
6822
|
layout: i,
|
|
6836
6823
|
snapshot: n,
|
|
6837
|
-
delta:
|
|
6824
|
+
delta: c,
|
|
6838
6825
|
layoutDelta: a,
|
|
6839
|
-
hasLayoutChanged:
|
|
6826
|
+
hasLayoutChanged: l,
|
|
6840
6827
|
hasRelativeTargetChanged: u
|
|
6841
6828
|
});
|
|
6842
6829
|
} else if (t.isLead()) {
|
|
@@ -6969,13 +6956,13 @@ function Zr(t) {
|
|
|
6969
6956
|
}
|
|
6970
6957
|
function gh(t, e, n = {}) {
|
|
6971
6958
|
const [i, r, o] = ta(t, n), s = Zr((a) => {
|
|
6972
|
-
const { target:
|
|
6973
|
-
if (typeof
|
|
6959
|
+
const { target: c } = a, l = e(a);
|
|
6960
|
+
if (typeof l != "function" || !c)
|
|
6974
6961
|
return;
|
|
6975
6962
|
const u = Zr((d) => {
|
|
6976
|
-
|
|
6963
|
+
l(d), c.removeEventListener("pointerleave", u);
|
|
6977
6964
|
});
|
|
6978
|
-
|
|
6965
|
+
c.addEventListener("pointerleave", u, r);
|
|
6979
6966
|
});
|
|
6980
6967
|
return i.forEach((a) => {
|
|
6981
6968
|
a.addEventListener("pointerenter", s, r);
|
|
@@ -7056,21 +7043,21 @@ function ts(t) {
|
|
|
7056
7043
|
}
|
|
7057
7044
|
function wh(t, e, n = {}) {
|
|
7058
7045
|
const [i, r, o] = ta(t, n), s = (a) => {
|
|
7059
|
-
const
|
|
7060
|
-
if (!ts(a) || ie.has(
|
|
7046
|
+
const c = a.currentTarget;
|
|
7047
|
+
if (!ts(a) || ie.has(c))
|
|
7061
7048
|
return;
|
|
7062
|
-
ie.add(
|
|
7063
|
-
const
|
|
7064
|
-
window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", h), !(!ts(p) || !ie.has(
|
|
7049
|
+
ie.add(c);
|
|
7050
|
+
const l = e(a), u = (p, T) => {
|
|
7051
|
+
window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", h), !(!ts(p) || !ie.has(c)) && (ie.delete(c), typeof l == "function" && l(p, { success: T }));
|
|
7065
7052
|
}, d = (p) => {
|
|
7066
|
-
u(p, n.useGlobalTarget || ea(
|
|
7053
|
+
u(p, n.useGlobalTarget || ea(c, p.target));
|
|
7067
7054
|
}, h = (p) => {
|
|
7068
7055
|
u(p, !1);
|
|
7069
7056
|
};
|
|
7070
7057
|
window.addEventListener("pointerup", d, r), window.addEventListener("pointercancel", h, r);
|
|
7071
7058
|
};
|
|
7072
7059
|
return i.forEach((a) => {
|
|
7073
|
-
!Th(a) && a.getAttribute("tabindex") === null && (a.tabIndex = 0), (n.useGlobalTarget ? window : a).addEventListener("pointerdown", s, r), a.addEventListener("focus", (
|
|
7060
|
+
!Th(a) && a.getAttribute("tabindex") === null && (a.tabIndex = 0), (n.useGlobalTarget ? window : a).addEventListener("pointerdown", s, r), a.addEventListener("focus", (l) => xh(l, r), r);
|
|
7074
7061
|
}), o;
|
|
7075
7062
|
}
|
|
7076
7063
|
function es(t, e, n) {
|
|
@@ -7119,13 +7106,13 @@ class Dh extends At {
|
|
|
7119
7106
|
root: n ? n.current : void 0,
|
|
7120
7107
|
rootMargin: i,
|
|
7121
7108
|
threshold: typeof r == "number" ? r : Rh[r]
|
|
7122
|
-
}, a = (
|
|
7123
|
-
const { isIntersecting:
|
|
7124
|
-
if (this.isInView ===
|
|
7109
|
+
}, a = (c) => {
|
|
7110
|
+
const { isIntersecting: l } = c;
|
|
7111
|
+
if (this.isInView === l || (this.isInView = l, o && !l && this.hasEnteredView))
|
|
7125
7112
|
return;
|
|
7126
|
-
|
|
7127
|
-
const { onViewportEnter: u, onViewportLeave: d } = this.node.getProps(), h =
|
|
7128
|
-
h && h(
|
|
7113
|
+
l && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", l);
|
|
7114
|
+
const { onViewportEnter: u, onViewportLeave: d } = this.node.getProps(), h = l ? u : d;
|
|
7115
|
+
h && h(c);
|
|
7129
7116
|
};
|
|
7130
7117
|
return Ph(this.node.current, s, a);
|
|
7131
7118
|
}
|
|
@@ -7219,12 +7206,12 @@ class Nh {
|
|
|
7219
7206
|
const p = lt.now();
|
|
7220
7207
|
this.renderScheduledAt < p && (this.renderScheduledAt = p, B.render(this.render, !1, !0));
|
|
7221
7208
|
};
|
|
7222
|
-
const { latestValues:
|
|
7223
|
-
this.onUpdate = u, this.latestValues =
|
|
7209
|
+
const { latestValues: c, renderState: l, onUpdate: u } = s;
|
|
7210
|
+
this.onUpdate = u, this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = $e(n), this.isVariantNode = Is(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
7224
7211
|
const { willChange: d, ...h } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
7225
7212
|
for (const p in h) {
|
|
7226
7213
|
const T = h[p];
|
|
7227
|
-
|
|
7214
|
+
c[p] !== void 0 && X(T) && T.set(c[p], !1);
|
|
7228
7215
|
}
|
|
7229
7216
|
}
|
|
7230
7217
|
mount(e) {
|
|
@@ -7596,7 +7583,7 @@ const Uh = (t, e) => qn(t) ? new jh(e) : new Bh(e, {
|
|
|
7596
7583
|
)
|
|
7597
7584
|
]
|
|
7598
7585
|
}
|
|
7599
|
-
)), _p = q(({
|
|
7586
|
+
)), _p = q(({ ...t }, e) => /* @__PURE__ */ g(
|
|
7600
7587
|
"textarea",
|
|
7601
7588
|
{
|
|
7602
7589
|
css: {
|
|
@@ -7616,24 +7603,23 @@ const Uh = (t, e) => qn(t) ? new jh(e) : new Bh(e, {
|
|
|
7616
7603
|
borderColor: R.palette.white["1s"]
|
|
7617
7604
|
}
|
|
7618
7605
|
},
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
ref: n
|
|
7606
|
+
...t,
|
|
7607
|
+
ref: e
|
|
7622
7608
|
}
|
|
7623
7609
|
)), Ip = q(
|
|
7624
7610
|
({ children: t, open: e = !0, collapsedSize: n = 0, orientation: i = "vertical", ...r }, o) => {
|
|
7625
7611
|
const s = rt(e), a = st(() => {
|
|
7626
|
-
const
|
|
7627
|
-
return s.current ? (
|
|
7628
|
-
}, [n, i]),
|
|
7629
|
-
const
|
|
7630
|
-
return e ? (
|
|
7612
|
+
const l = {};
|
|
7613
|
+
return s.current ? (l.width = i === "horizontal" ? "auto" : void 0, l.height = i === "vertical" ? "auto" : void 0) : (l.width = i === "horizontal" ? n : void 0, l.height = i === "vertical" ? n : void 0), l;
|
|
7614
|
+
}, [n, i]), c = st(() => {
|
|
7615
|
+
const l = {};
|
|
7616
|
+
return e ? (l.width = i === "horizontal" ? "auto" : void 0, l.height = i === "vertical" ? "auto" : void 0) : (l.width = i === "horizontal" ? n : void 0, l.height = i === "vertical" ? n : void 0), l;
|
|
7631
7617
|
}, [n, e, i]);
|
|
7632
7618
|
return /* @__PURE__ */ g(
|
|
7633
7619
|
ra.div,
|
|
7634
7620
|
{
|
|
7635
7621
|
css: { overflow: "hidden" },
|
|
7636
|
-
animate:
|
|
7622
|
+
animate: c,
|
|
7637
7623
|
initial: a,
|
|
7638
7624
|
transition: { duration: 0.15 },
|
|
7639
7625
|
...r,
|
|
@@ -7644,7 +7630,7 @@ const Uh = (t, e) => qn(t) ? new jh(e) : new Bh(e, {
|
|
|
7644
7630
|
}
|
|
7645
7631
|
), Gh = ut({}), sa = () => G(Gh), Op = q(
|
|
7646
7632
|
({ style: t, floatingPortalProps: e, floatingFocusManagerProps: n, floatingOverlayProps: i, ...r }, o) => {
|
|
7647
|
-
const { getFloatingProps: s, context: a } = sa(),
|
|
7633
|
+
const { getFloatingProps: s, context: a } = sa(), c = W([a.refs.setFloating, o]);
|
|
7648
7634
|
return /* @__PURE__ */ g(bc, { children: a.open && /* @__PURE__ */ g(Ln, { root: document.body, ...e, children: /* @__PURE__ */ g(
|
|
7649
7635
|
rl,
|
|
7650
7636
|
{
|
|
@@ -7665,7 +7651,7 @@ const Uh = (t, e) => qn(t) ? new jh(e) : new Bh(e, {
|
|
|
7665
7651
|
zIndex: os
|
|
7666
7652
|
},
|
|
7667
7653
|
...s(r),
|
|
7668
|
-
ref:
|
|
7654
|
+
ref: c,
|
|
7669
7655
|
children: r.children
|
|
7670
7656
|
}
|
|
7671
7657
|
) })
|
|
@@ -7680,11 +7666,11 @@ const Uh = (t, e) => qn(t) ? new jh(e) : new Bh(e, {
|
|
|
7680
7666
|
return je(() => {
|
|
7681
7667
|
const a = r.current;
|
|
7682
7668
|
if (!a) return;
|
|
7683
|
-
const
|
|
7684
|
-
o?.(!1,
|
|
7669
|
+
const c = function(l) {
|
|
7670
|
+
o?.(!1, l, e);
|
|
7685
7671
|
};
|
|
7686
|
-
return a.addEventListener(t,
|
|
7687
|
-
a.removeEventListener(t,
|
|
7672
|
+
return a.addEventListener(t, c), () => {
|
|
7673
|
+
a.removeEventListener(t, c);
|
|
7688
7674
|
};
|
|
7689
7675
|
}, [t, o, e]), /* @__PURE__ */ g("div", { css: { display: "contents" }, ...n, ref: s });
|
|
7690
7676
|
}
|
|
@@ -7715,19 +7701,18 @@ const Uh = (t, e) => qn(t) ? new jh(e) : new Bh(e, {
|
|
|
7715
7701
|
</clipPath>
|
|
7716
7702
|
</defs>
|
|
7717
7703
|
</svg>`, Np = q(
|
|
7718
|
-
({
|
|
7704
|
+
({ children: t, closeable: e = !0, ...n }, i) => /* @__PURE__ */ I(
|
|
7719
7705
|
"div",
|
|
7720
7706
|
{
|
|
7721
7707
|
css: [
|
|
7722
7708
|
{ paddingBlock: 8, paddingInline: 20, position: "relative", gap: 8, fontWeight: 500, ...R.text.base },
|
|
7723
|
-
|
|
7709
|
+
e && { paddingRight: "3rem" }
|
|
7724
7710
|
],
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
ref: r,
|
|
7711
|
+
...n,
|
|
7712
|
+
ref: i,
|
|
7728
7713
|
children: [
|
|
7729
|
-
|
|
7730
|
-
|
|
7714
|
+
t,
|
|
7715
|
+
e && /* @__PURE__ */ g(zh, { children: /* @__PURE__ */ g("div", { css: { position: "absolute", right: 12, top: "50%", transform: "translateY(-50%)" }, children: /* @__PURE__ */ g(ac, { children: /* @__PURE__ */ g(me, { source: qh }) }) }) })
|
|
7731
7716
|
]
|
|
7732
7717
|
}
|
|
7733
7718
|
)
|
|
@@ -7806,7 +7791,7 @@ const Uh = (t, e) => qn(t) ? new jh(e) : new Bh(e, {
|
|
|
7806
7791
|
children: s.name
|
|
7807
7792
|
}
|
|
7808
7793
|
),
|
|
7809
|
-
/* @__PURE__ */ g("div", { css: { display: "inline-flex", alignItems: "center", gap: 8 }, children: s.colors.map((
|
|
7794
|
+
/* @__PURE__ */ g("div", { css: { display: "inline-flex", alignItems: "center", gap: 8 }, children: s.colors.map((c) => /* @__PURE__ */ g("div", { css: { display: "inline-flex" }, children: /* @__PURE__ */ g("button", { title: c, onClick: n, type: "button", value: c, children: /* @__PURE__ */ g(Vn, { color: Fe[c] }) }) }, c)) })
|
|
7810
7795
|
] }, a))
|
|
7811
7796
|
}
|
|
7812
7797
|
)
|
|
@@ -7820,9 +7805,9 @@ const Uh = (t, e) => qn(t) ? new jh(e) : new Bh(e, {
|
|
|
7820
7805
|
}) => {
|
|
7821
7806
|
const o = (u) => {
|
|
7822
7807
|
e?.(Fe[u.currentTarget.value]);
|
|
7823
|
-
}, s = Fn(), a = On(t, s.theme.palette)?.hex(),
|
|
7808
|
+
}, s = Fn(), a = On(t, s.theme.palette)?.hex(), c = (u) => {
|
|
7824
7809
|
u.target.select();
|
|
7825
|
-
},
|
|
7810
|
+
}, l = (u) => {
|
|
7826
7811
|
e?.(u.target.value);
|
|
7827
7812
|
};
|
|
7828
7813
|
return /* @__PURE__ */ I(uc, { placement: i, ...r, children: [
|
|
@@ -7859,8 +7844,8 @@ const Uh = (t, e) => qn(t) ? new jh(e) : new Bh(e, {
|
|
|
7859
7844
|
source: oa
|
|
7860
7845
|
}
|
|
7861
7846
|
),
|
|
7862
|
-
onChange:
|
|
7863
|
-
onFocus:
|
|
7847
|
+
onChange: l,
|
|
7848
|
+
onFocus: c,
|
|
7864
7849
|
value: a,
|
|
7865
7850
|
size: "32"
|
|
7866
7851
|
}
|
|
@@ -8276,7 +8261,7 @@ const wa = ({
|
|
|
8276
8261
|
}) => {
|
|
8277
8262
|
const { enabled: a } = Ct((d) => ({
|
|
8278
8263
|
enabled: d.options.enabled
|
|
8279
|
-
})), { connectors:
|
|
8264
|
+
})), { connectors: c } = O(), u = Object.fromEntries(
|
|
8280
8265
|
["years", "months", "weeks", "days", "hours", "minutes", "seconds"].map((d) => [d, i.every((h) => h.value !== d)])
|
|
8281
8266
|
);
|
|
8282
8267
|
return /* @__PURE__ */ g(Rl, { date: r, omit: u, children: (d) => /* @__PURE__ */ I(
|
|
@@ -8284,7 +8269,7 @@ const wa = ({
|
|
|
8284
8269
|
{
|
|
8285
8270
|
...s,
|
|
8286
8271
|
ref: (h) => {
|
|
8287
|
-
h &&
|
|
8272
|
+
h && c.connect(h);
|
|
8288
8273
|
},
|
|
8289
8274
|
sx: {
|
|
8290
8275
|
display: "flex",
|