@nation-a/ui 0.16.14 → 0.16.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +960 -806
- package/dist/index.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/styled-system/styles.css +314 -11
- package/dist/styled-system/tokens/index.mjs +51 -15
- package/dist/styled-system/tokens/tokens.d.ts +5 -5
- package/dist/styled-system/types/prop-type.d.ts +2 -2
- package/dist/types/components/Text/index.d.ts +2 -2
- package/dist/types/components/Text/text.recipe.d.ts +161 -8
- package/dist/types/test/utils.d.ts +13 -0
- package/dist/types/theme/tokens/index.d.ts +22 -5
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as y, jsxs as D, Fragment as
|
|
1
|
+
import { jsx as y, jsxs as D, Fragment as Ie } from "react/jsx-runtime";
|
|
2
2
|
import * as fn from "react";
|
|
3
|
-
import { forwardRef as _, useMemo as gt, createElement as vt, useState as Tt, useEffect as ct, memo as
|
|
4
|
-
import { a as Ut, b as Hl, D as Ul, c as Gl, d as Kl, e as Yl, f as Xl, g as ql, h as Zl, i as Jl, j as si, T as ii, k as ai, l as li, m as Ql, n as tc, o as ec, S as nc, p as rc, q as oc, r as sc, s as ic, t as ac, u as lc, v as cc, w as uc, R as dc, x as hc, y as fc, z as mc, A as pc, B as gc, C as yc, E as bc, F as vc, G as xc, H as
|
|
3
|
+
import { forwardRef as _, useMemo as gt, createElement as vt, useState as Tt, useEffect as ct, memo as ie, createContext as xt, useContext as H, useRef as X, useLayoutEffect as ei, useId as pr, useInsertionEffect as ni, useCallback as J, Children as ri, isValidElement as Nl, Fragment as oi, Component as zl, useImperativeHandle as Wl, cloneElement as $l } from "react";
|
|
4
|
+
import { a as Ut, b as Hl, D as Ul, c as Gl, d as Kl, e as Yl, f as Xl, g as ql, h as Zl, i as Jl, j as si, T as ii, k as ai, l as li, m as Ql, n as tc, o as ec, S as nc, p as rc, q as oc, r as sc, s as ic, t as ac, u as lc, v as cc, w as uc, R as dc, x as hc, y as fc, z as mc, A as pc, B as gc, C as yc, E as bc, F as vc, G as xc, H as Sc, I as wc, J as kc, K as Tc, L as Pc, M as Cc, N as Ac, O as _c, P as Rc, Q as Vc, U as Dc, V as Ec, W as Mc } from "./ark-ui-BitYUtmQ.js";
|
|
5
5
|
import { X as gb, Y as yb } from "./ark-ui-BitYUtmQ.js";
|
|
6
|
-
import { createPortal as
|
|
7
|
-
import { CloseOutlineIcon as
|
|
8
|
-
import { V as
|
|
6
|
+
import { createPortal as Fc } from "react-dom";
|
|
7
|
+
import { CloseOutlineIcon as Lc, CheckCircleFillIcon as Ic, Close_CircleFillIcon as Bc } from "@nation-a/icons";
|
|
8
|
+
import { V as ee, O as Oc } from "./react-hot-toast-CPO7pUT3.js";
|
|
9
9
|
import { pandaTokens as io } from "@nation-a/tokens";
|
|
10
10
|
function ut(t) {
|
|
11
11
|
const e = fn.forwardRef(
|
|
@@ -24,26 +24,26 @@ function mn(t) {
|
|
|
24
24
|
return Object.fromEntries(Object.entries(t != null ? t : {}).filter(([e, n]) => n !== void 0));
|
|
25
25
|
}
|
|
26
26
|
var Nc = (t) => t === "base";
|
|
27
|
-
function
|
|
27
|
+
function zc(t) {
|
|
28
28
|
return t.slice().filter((e) => !Nc(e));
|
|
29
29
|
}
|
|
30
30
|
function ao(t) {
|
|
31
31
|
return String.fromCharCode(t + (t > 25 ? 39 : 97));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Wc(t) {
|
|
34
34
|
let e = "", n;
|
|
35
35
|
for (n = Math.abs(t); n > 52; n = n / 52 | 0)
|
|
36
36
|
e = ao(n % 52) + e;
|
|
37
37
|
return ao(n % 52) + e;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function $c(t, e) {
|
|
40
40
|
let n = e.length;
|
|
41
41
|
for (; n; )
|
|
42
42
|
t = t * 33 ^ e.charCodeAt(--n);
|
|
43
43
|
return t;
|
|
44
44
|
}
|
|
45
45
|
function Hc(t) {
|
|
46
|
-
return
|
|
46
|
+
return Wc($c(5381, t) >>> 0);
|
|
47
47
|
}
|
|
48
48
|
var ci = /\s*!(important)?/i;
|
|
49
49
|
function Uc(t) {
|
|
@@ -55,7 +55,7 @@ function Gc(t) {
|
|
|
55
55
|
function ui(t) {
|
|
56
56
|
return typeof t == "string" ? t.replaceAll(" ", "_") : t;
|
|
57
57
|
}
|
|
58
|
-
var
|
|
58
|
+
var Be = (t) => {
|
|
59
59
|
const e = /* @__PURE__ */ new Map();
|
|
60
60
|
return (...r) => {
|
|
61
61
|
const o = JSON.stringify(r);
|
|
@@ -129,12 +129,12 @@ function Jc(t) {
|
|
|
129
129
|
l = [...r.finalize(s), o(a)].join(":");
|
|
130
130
|
return l;
|
|
131
131
|
};
|
|
132
|
-
return
|
|
132
|
+
return Be(({ base: s, ...a } = {}) => {
|
|
133
133
|
const l = Object.assign(a, s), u = di(l, t), c = /* @__PURE__ */ new Set();
|
|
134
134
|
return yr(u, (d, h) => {
|
|
135
135
|
if (d == null)
|
|
136
136
|
return;
|
|
137
|
-
const f = Uc(d), [m, ...g] = r.shift(h), b =
|
|
137
|
+
const f = Uc(d), [m, ...g] = r.shift(h), b = zc(g), p = e.transform(m, Gc(Zc(d)));
|
|
138
138
|
let v = i(b, p.className);
|
|
139
139
|
f && (v = `${v}!`), c.add(v);
|
|
140
140
|
}), Array.from(c).join(" ");
|
|
@@ -154,14 +154,14 @@ function tu(t) {
|
|
|
154
154
|
function r(...o) {
|
|
155
155
|
return Object.assign({}, ...e(o));
|
|
156
156
|
}
|
|
157
|
-
return { mergeCss:
|
|
157
|
+
return { mergeCss: Be(n), assignCss: r };
|
|
158
158
|
}
|
|
159
|
-
var eu = /([A-Z])/g, nu = /^ms-/, ru =
|
|
159
|
+
var eu = /([A-Z])/g, nu = /^ms-/, ru = Be((t) => t.startsWith("--") ? t : t.replace(eu, "-$1").replace(nu, "-ms-").toLowerCase()), ou = ["min", "max", "clamp", "calc"], su = new RegExp(`^(${ou.join("|")})\\(.*\\)`), iu = (t) => typeof t == "string" && su.test(t), au = "cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%", lu = `(?:${au.split(",").join("|")})`, cu = new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${lu}$`), uu = (t) => typeof t == "string" && cu.test(t), du = (t) => typeof t == "string" && /^var\(--.+\)$/.test(t), Ft = {
|
|
160
160
|
map: Yc,
|
|
161
161
|
isCssFunction: iu,
|
|
162
162
|
isCssVar: du,
|
|
163
163
|
isCssUnit: uu
|
|
164
|
-
},
|
|
164
|
+
}, Lt = (t, e) => {
|
|
165
165
|
if (!(t != null && t.defaultValues))
|
|
166
166
|
return e;
|
|
167
167
|
const n = typeof t.defaultValues == "function" ? t.defaultValues(e) : t.defaultValues;
|
|
@@ -216,14 +216,14 @@ const bu = /^_/, vu = /&|@/;
|
|
|
216
216
|
function xu(t) {
|
|
217
217
|
return t.map((e) => fi.has(e) ? e.replace(bu, "") : vu.test(e) ? `[${ui(e.trim())}]` : e);
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function Su(t) {
|
|
220
220
|
return t.sort((e, n) => {
|
|
221
221
|
const r = lo(e), o = lo(n);
|
|
222
222
|
return r && !o ? 1 : !r && o ? -1 : 0;
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
|
-
const
|
|
226
|
-
|
|
225
|
+
const wu = "aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:trs,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor,textStyle:textStyle", mi = /* @__PURE__ */ new Map(), pi = /* @__PURE__ */ new Map();
|
|
226
|
+
wu.split(",").forEach((t) => {
|
|
227
227
|
const [e, n] = t.split(":"), [r, ...o] = n.split("/");
|
|
228
228
|
mi.set(e, r), o.length && o.forEach((i) => {
|
|
229
229
|
pi.set(i === "1" ? r : i, e);
|
|
@@ -231,7 +231,7 @@ ku.split(",").forEach((t) => {
|
|
|
231
231
|
});
|
|
232
232
|
const co = (t) => pi.get(t) || t, gi = {
|
|
233
233
|
conditions: {
|
|
234
|
-
shift:
|
|
234
|
+
shift: Su,
|
|
235
235
|
finalize: xu,
|
|
236
236
|
breakpoints: { keys: ["base", "xs", "sm", "md", "lg", "xl", "2xl"] }
|
|
237
237
|
},
|
|
@@ -244,7 +244,7 @@ const co = (t) => pi.get(t) || t, gi = {
|
|
|
244
244
|
toHash: (t, e) => e(t.join(":")),
|
|
245
245
|
resolveShorthand: co
|
|
246
246
|
}
|
|
247
|
-
},
|
|
247
|
+
}, ku = Jc(gi), yt = (...t) => ku(et(...t));
|
|
248
248
|
yt.raw = (...t) => et(...t);
|
|
249
249
|
const { mergeCss: et } = tu(gi);
|
|
250
250
|
function K() {
|
|
@@ -290,7 +290,7 @@ function At(t) {
|
|
|
290
290
|
return dt(h, u);
|
|
291
291
|
}
|
|
292
292
|
const d = Object.fromEntries(Object.entries(n).map(([h, f]) => [h, Object.keys(f)]));
|
|
293
|
-
return Object.assign(
|
|
293
|
+
return Object.assign(Be(l), {
|
|
294
294
|
__cva__: !0,
|
|
295
295
|
variantMap: d,
|
|
296
296
|
variantKeys: u,
|
|
@@ -326,7 +326,7 @@ function ht(t) {
|
|
|
326
326
|
const l = (h) => ({ ...n || {}, ...mn(h) }), u = Object.fromEntries(
|
|
327
327
|
Object.entries(i).map(([h, f]) => [h, Object.keys(f)])
|
|
328
328
|
);
|
|
329
|
-
return Object.assign(
|
|
329
|
+
return Object.assign(Be(r), {
|
|
330
330
|
__cva__: !1,
|
|
331
331
|
raw: o,
|
|
332
332
|
variantMap: u,
|
|
@@ -336,42 +336,42 @@ function ht(t) {
|
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
338
|
var Cu = "css", Au = Cu.split(","), _u = "", Ru = _u.split(",").concat(Au), Vu = new Map(Ru.map((t) => [t, !0])), Du = /&|@/, br = (t) => Vu.has(t) || t.startsWith("--") || Du.test(t);
|
|
339
|
-
const Eu = (t, e) => !e.includes(t) && !br(t), Mu = (t, e) => t.__shouldForwardProps__ && e ? (n) => t.__shouldForwardProps__(n) && e(n) : e,
|
|
339
|
+
const Eu = (t, e) => !e.includes(t) && !br(t), Mu = (t, e) => t.__shouldForwardProps__ && e ? (n) => t.__shouldForwardProps__(n) && e(n) : e, Fu = (t, e) => {
|
|
340
340
|
var r;
|
|
341
341
|
if (t && !e) return t;
|
|
342
342
|
if (!t && e) return e;
|
|
343
343
|
if (t.__cva__ && e.__cva__ || t.__recipe__ && e.__recipe__) return t.merge(e);
|
|
344
344
|
const n = new TypeError("Cannot merge cva with recipe. Please use either cva or recipe.");
|
|
345
345
|
throw (r = TypeError.captureStackTrace) == null || r.call(TypeError, n), n;
|
|
346
|
-
},
|
|
346
|
+
}, Lu = (t) => typeof t == "string" ? t : (t == null ? void 0 : t.displayName) || (t == null ? void 0 : t.name) || "Component";
|
|
347
347
|
function En(t, e = {}, n = {}) {
|
|
348
348
|
const r = e.__cva__ || e.__recipe__ ? e : At(e), o = n.shouldForwardProp || Eu, i = (h) => o(h, r.variantKeys), s = Object.assign(
|
|
349
349
|
n.dataAttr && e.__name__ ? { "data-recipe": e.__name__ } : {},
|
|
350
350
|
n.defaultProps
|
|
351
|
-
), a =
|
|
351
|
+
), a = Fu(t.__cva__, r), l = Mu(t, i), u = t.__base__ || t, c = /* @__PURE__ */ _(function(f, m) {
|
|
352
352
|
var R;
|
|
353
|
-
const { as: g = u, children: b, ...p } = f, v = gt(() => Object.assign({}, s, p), [p]), [
|
|
354
|
-
function
|
|
353
|
+
const { as: g = u, children: b, ...p } = f, v = gt(() => Object.assign({}, s, p), [p]), [S, P, x, w, C] = gt(() => dt(v, Yn.keys, l, a.variantKeys, br), [v]);
|
|
354
|
+
function k() {
|
|
355
355
|
var N;
|
|
356
|
-
const { css: M, ...q } =
|
|
356
|
+
const { css: M, ...q } = w, at = (N = a.__getCompoundVariantCss__) == null ? void 0 : N.call(a, x);
|
|
357
357
|
return K(a(x, !1), yt(at, q, M), v.className);
|
|
358
358
|
}
|
|
359
359
|
function A() {
|
|
360
|
-
const { css: M, ...q } =
|
|
360
|
+
const { css: M, ...q } = w, at = a.raw(x);
|
|
361
361
|
return K(yt(at, q, M), v.className);
|
|
362
362
|
}
|
|
363
|
-
const E = e.__recipe__ ?
|
|
363
|
+
const E = e.__recipe__ ? k : A;
|
|
364
364
|
return vt(g, {
|
|
365
365
|
ref: m,
|
|
366
366
|
...P,
|
|
367
367
|
...C,
|
|
368
|
-
...Yn(
|
|
368
|
+
...Yn(S),
|
|
369
369
|
className: E()
|
|
370
370
|
}, (R = v.children) != null ? R : b);
|
|
371
|
-
}), d =
|
|
371
|
+
}), d = Lu(u);
|
|
372
372
|
return c.displayName = `styled.${d}`, c.__cva__ = a, c.__base__ = u, c.__shouldForwardProps__ = i, c;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Iu() {
|
|
375
375
|
const t = /* @__PURE__ */ new Map();
|
|
376
376
|
return new Proxy(En, {
|
|
377
377
|
apply(e, n, r) {
|
|
@@ -382,16 +382,16 @@ function Bu() {
|
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
|
-
const
|
|
385
|
+
const B = /* @__PURE__ */ Iu(), ho = {
|
|
386
386
|
transform(t) {
|
|
387
387
|
return t;
|
|
388
388
|
}
|
|
389
|
-
},
|
|
390
|
-
const e =
|
|
391
|
-
return ho.transform(e,
|
|
389
|
+
}, Bu = (t = {}) => {
|
|
390
|
+
const e = Lt(ho, t);
|
|
391
|
+
return ho.transform(e, Ft);
|
|
392
392
|
}, Ht = /* @__PURE__ */ _(function(e, n) {
|
|
393
|
-
const [r, o] = dt(e, []), i =
|
|
394
|
-
return vt(
|
|
393
|
+
const [r, o] = dt(e, []), i = Bu(r), s = { css: et(i, e.css) }, a = { ref: n, ...o, ...s };
|
|
394
|
+
return vt(B.div, a);
|
|
395
395
|
}), fo = {
|
|
396
396
|
transform(t) {
|
|
397
397
|
const { direction: e, align: n, justify: r, wrap: o, basis: i, grow: s, shrink: a, ...l } = t;
|
|
@@ -408,11 +408,11 @@ const O = /* @__PURE__ */ Bu(), ho = {
|
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
410
|
}, Ou = (t = {}) => {
|
|
411
|
-
const e =
|
|
412
|
-
return fo.transform(e,
|
|
411
|
+
const e = Lt(fo, t);
|
|
412
|
+
return fo.transform(e, Ft);
|
|
413
413
|
}, ju = /* @__PURE__ */ _(function(e, n) {
|
|
414
414
|
const [r, o] = dt(e, ["align", "justify", "direction", "wrap", "basis", "grow", "shrink"]), i = Ou(r), s = { css: et(i, e.css) }, a = { ref: n, ...o, ...s };
|
|
415
|
-
return vt(
|
|
415
|
+
return vt(B.div, a);
|
|
416
416
|
}), mo = {
|
|
417
417
|
transform(t) {
|
|
418
418
|
const { align: e, justify: n, direction: r, gap: o, ...i } = t;
|
|
@@ -427,11 +427,11 @@ const O = /* @__PURE__ */ Bu(), ho = {
|
|
|
427
427
|
},
|
|
428
428
|
defaultValues: { direction: "column", gap: "10px" }
|
|
429
429
|
}, Nu = (t = {}) => {
|
|
430
|
-
const e =
|
|
431
|
-
return mo.transform(e,
|
|
432
|
-
},
|
|
430
|
+
const e = Lt(mo, t);
|
|
431
|
+
return mo.transform(e, Ft);
|
|
432
|
+
}, zu = /* @__PURE__ */ _(function(e, n) {
|
|
433
433
|
const [r, o] = dt(e, ["align", "justify", "direction", "gap"]), i = Nu(r), s = { css: et(i, e.css) }, a = { ref: n, ...o, ...s };
|
|
434
|
-
return vt(
|
|
434
|
+
return vt(B.div, a);
|
|
435
435
|
}), po = {
|
|
436
436
|
transform(t) {
|
|
437
437
|
const { justify: e, gap: n, ...r } = t;
|
|
@@ -445,12 +445,12 @@ const O = /* @__PURE__ */ Bu(), ho = {
|
|
|
445
445
|
};
|
|
446
446
|
},
|
|
447
447
|
defaultValues: { gap: "10px" }
|
|
448
|
-
},
|
|
449
|
-
const e =
|
|
450
|
-
return po.transform(e,
|
|
451
|
-
},
|
|
452
|
-
const [r, o] = dt(e, ["justify", "gap"]), i =
|
|
453
|
-
return vt(
|
|
448
|
+
}, Wu = (t = {}) => {
|
|
449
|
+
const e = Lt(po, t);
|
|
450
|
+
return po.transform(e, Ft);
|
|
451
|
+
}, $u = /* @__PURE__ */ _(function(e, n) {
|
|
452
|
+
const [r, o] = dt(e, ["justify", "gap"]), i = Wu(r), s = { css: et(i, e.css) }, a = { ref: n, ...o, ...s };
|
|
453
|
+
return vt(B.div, a);
|
|
454
454
|
}), go = {
|
|
455
455
|
transform(t) {
|
|
456
456
|
const { justify: e, gap: n, ...r } = t;
|
|
@@ -465,11 +465,11 @@ const O = /* @__PURE__ */ Bu(), ho = {
|
|
|
465
465
|
},
|
|
466
466
|
defaultValues: { gap: "10px" }
|
|
467
467
|
}, Hu = (t = {}) => {
|
|
468
|
-
const e =
|
|
469
|
-
return go.transform(e,
|
|
468
|
+
const e = Lt(go, t);
|
|
469
|
+
return go.transform(e, Ft);
|
|
470
470
|
}, pn = /* @__PURE__ */ _(function(e, n) {
|
|
471
471
|
const [r, o] = dt(e, ["justify", "gap"]), i = Hu(r), s = { css: et(i, e.css) }, a = { ref: n, ...o, ...s };
|
|
472
|
-
return vt(
|
|
472
|
+
return vt(B.div, a);
|
|
473
473
|
}), yo = {
|
|
474
474
|
transform(t) {
|
|
475
475
|
const { inline: e, ...n } = t;
|
|
@@ -481,11 +481,11 @@ const O = /* @__PURE__ */ Bu(), ho = {
|
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
483
|
}, Uu = (t = {}) => {
|
|
484
|
-
const e =
|
|
485
|
-
return yo.transform(e,
|
|
484
|
+
const e = Lt(yo, t);
|
|
485
|
+
return yo.transform(e, Ft);
|
|
486
486
|
}, vr = /* @__PURE__ */ _(function(e, n) {
|
|
487
487
|
const [r, o] = dt(e, ["inline"]), i = Uu(r), s = { css: et(i, e.css) }, a = { ref: n, ...o, ...s };
|
|
488
|
-
return vt(
|
|
488
|
+
return vt(B.div, a);
|
|
489
489
|
}), bo = {
|
|
490
490
|
transform(t, { map: e, isCssUnit: n }) {
|
|
491
491
|
const { columnGap: r, rowGap: o, gap: i, columns: s, minChildWidth: a, ...l } = t, u = (c) => n(c) ? c : `token(sizes.${c}, ${c})`;
|
|
@@ -502,11 +502,11 @@ const O = /* @__PURE__ */ Bu(), ho = {
|
|
|
502
502
|
return { gap: t.columnGap || t.rowGap ? void 0 : "10px" };
|
|
503
503
|
}
|
|
504
504
|
}, Gu = (t = {}) => {
|
|
505
|
-
const e =
|
|
506
|
-
return bo.transform(e,
|
|
505
|
+
const e = Lt(bo, t);
|
|
506
|
+
return bo.transform(e, Ft);
|
|
507
507
|
}, Ku = /* @__PURE__ */ _(function(e, n) {
|
|
508
508
|
const [r, o] = dt(e, ["gap", "columnGap", "rowGap", "columns", "minChildWidth"]), i = Gu(r), s = { css: et(i, e.css) }, a = { ref: n, ...o, ...s };
|
|
509
|
-
return vt(
|
|
509
|
+
return vt(B.div, a);
|
|
510
510
|
}), vo = {
|
|
511
511
|
transform(t, { map: e }) {
|
|
512
512
|
const { colSpan: n, rowSpan: r, colStart: o, rowStart: i, colEnd: s, rowEnd: a, ...l } = t, u = (c) => c === "auto" ? c : `span ${c}`;
|
|
@@ -521,12 +521,12 @@ const O = /* @__PURE__ */ Bu(), ho = {
|
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
523
|
}, Yu = (t = {}) => {
|
|
524
|
-
const e =
|
|
525
|
-
return vo.transform(e,
|
|
524
|
+
const e = Lt(vo, t);
|
|
525
|
+
return vo.transform(e, Ft);
|
|
526
526
|
}, Xu = /* @__PURE__ */ _(function(e, n) {
|
|
527
527
|
const [r, o] = dt(e, ["colSpan", "rowSpan", "colStart", "rowStart", "colEnd", "rowEnd"]), i = Yu(r), s = { css: et(i, e.css) }, a = { ref: n, ...o, ...s };
|
|
528
|
-
return vt(
|
|
529
|
-
}), yi = ut(Ht), Zy = ut(ju), Jy = ut(Ku), xr = ut(
|
|
528
|
+
return vt(B.div, a);
|
|
529
|
+
}), yi = ut(Ht), Zy = ut(ju), Jy = ut(Ku), xr = ut(zu), bi = ut($u), Mn = ut(pn), Qy = ut(Xu), qu = ut(vr), Zu = At({
|
|
530
530
|
base: {
|
|
531
531
|
"& path": {
|
|
532
532
|
stroke: "currentColor"
|
|
@@ -1057,7 +1057,7 @@ const ud = At({
|
|
|
1057
1057
|
onClick: l,
|
|
1058
1058
|
...u
|
|
1059
1059
|
}) => {
|
|
1060
|
-
const c =
|
|
1060
|
+
const c = B(Ut.button, ud);
|
|
1061
1061
|
return /* @__PURE__ */ y(
|
|
1062
1062
|
c,
|
|
1063
1063
|
{
|
|
@@ -1069,7 +1069,7 @@ const ud = At({
|
|
|
1069
1069
|
css: { pointerEvents: t ? "none" : "auto" },
|
|
1070
1070
|
onClick: e || t ? void 0 : l,
|
|
1071
1071
|
...u,
|
|
1072
|
-
children: t ? n || /* @__PURE__ */ D(
|
|
1072
|
+
children: t ? n || /* @__PURE__ */ D(Ie, { children: [
|
|
1073
1073
|
/* @__PURE__ */ y(
|
|
1074
1074
|
qu,
|
|
1075
1075
|
{
|
|
@@ -1087,7 +1087,7 @@ const ud = At({
|
|
|
1087
1087
|
] }) : r
|
|
1088
1088
|
}
|
|
1089
1089
|
);
|
|
1090
|
-
}, tb =
|
|
1090
|
+
}, tb = ie(ut(dd)), Xt = At({
|
|
1091
1091
|
base: {
|
|
1092
1092
|
color: "currentcolor"
|
|
1093
1093
|
},
|
|
@@ -1095,14 +1095,6 @@ const ud = At({
|
|
|
1095
1095
|
variant: "body.md"
|
|
1096
1096
|
},
|
|
1097
1097
|
variants: {
|
|
1098
|
-
font: {
|
|
1099
|
-
inter: {
|
|
1100
|
-
fontFamily: "inter"
|
|
1101
|
-
},
|
|
1102
|
-
notoSans: {
|
|
1103
|
-
fontFamily: "notoSans"
|
|
1104
|
-
}
|
|
1105
|
-
},
|
|
1106
1098
|
variant: {
|
|
1107
1099
|
"display.lg": {
|
|
1108
1100
|
textStyle: "display.lg",
|
|
@@ -1151,24 +1143,186 @@ const ud = At({
|
|
|
1151
1143
|
"label.md": {
|
|
1152
1144
|
textStyle: "label.md",
|
|
1153
1145
|
fontFamily: "notoSans"
|
|
1146
|
+
},
|
|
1147
|
+
"en.title.main.22.bold": {
|
|
1148
|
+
textStyle: "en.title.main.22.bold",
|
|
1149
|
+
fontFamily: "freeman"
|
|
1150
|
+
},
|
|
1151
|
+
"en.title.main.24.bold": {
|
|
1152
|
+
textStyle: "en.title.main.24.bold",
|
|
1153
|
+
fontFamily: "freeman"
|
|
1154
|
+
},
|
|
1155
|
+
"en.title.main.30.bold": {
|
|
1156
|
+
textStyle: "en.title.main.30.bold",
|
|
1157
|
+
fontFamily: "freeman"
|
|
1158
|
+
},
|
|
1159
|
+
"en.title.main.56.bold": {
|
|
1160
|
+
textStyle: "en.title.main.56.bold",
|
|
1161
|
+
fontFamily: "freeman"
|
|
1162
|
+
},
|
|
1163
|
+
"en.title.sub.16.bold": {
|
|
1164
|
+
textStyle: "en.title.sub.16.bold",
|
|
1165
|
+
fontFamily: "freeman"
|
|
1166
|
+
},
|
|
1167
|
+
"en.title.sub.18.bold": {
|
|
1168
|
+
textStyle: "en.title.sub.18.bold",
|
|
1169
|
+
fontFamily: "freeman"
|
|
1170
|
+
},
|
|
1171
|
+
"en.title.sub.20.bold": {
|
|
1172
|
+
textStyle: "en.title.sub.20.bold",
|
|
1173
|
+
fontFamily: "freeman"
|
|
1174
|
+
},
|
|
1175
|
+
"en.text.chat.14.bold": {
|
|
1176
|
+
textStyle: "en.text.chat.14.bold",
|
|
1177
|
+
fontFamily: "dmSans"
|
|
1178
|
+
},
|
|
1179
|
+
"en.text.chat.14.regular": {
|
|
1180
|
+
textStyle: "en.text.chat.14.regular",
|
|
1181
|
+
fontFamily: "dmSans"
|
|
1182
|
+
},
|
|
1183
|
+
"en.text.chat.16.bold": {
|
|
1184
|
+
textStyle: "en.text.chat.16.bold",
|
|
1185
|
+
fontFamily: "dmSans"
|
|
1186
|
+
},
|
|
1187
|
+
"en.text.chat.16.regular": {
|
|
1188
|
+
textStyle: "en.text.chat.16.regular",
|
|
1189
|
+
fontFamily: "dmSans"
|
|
1190
|
+
},
|
|
1191
|
+
"en.text.body.14.bold": {
|
|
1192
|
+
textStyle: "en.text.body.14.bold",
|
|
1193
|
+
fontFamily: "dmSans"
|
|
1194
|
+
},
|
|
1195
|
+
"en.text.body.14.regular": {
|
|
1196
|
+
textStyle: "en.text.body.14.regular",
|
|
1197
|
+
fontFamily: "dmSans"
|
|
1198
|
+
},
|
|
1199
|
+
"en.text.body.16.bold": {
|
|
1200
|
+
textStyle: "en.text.body.16.bold",
|
|
1201
|
+
fontFamily: "dmSans"
|
|
1202
|
+
},
|
|
1203
|
+
"en.text.body.16.regular": {
|
|
1204
|
+
textStyle: "en.text.body.16.regular",
|
|
1205
|
+
fontFamily: "dmSans"
|
|
1206
|
+
},
|
|
1207
|
+
"en.label.caption.10.semibold": {
|
|
1208
|
+
textStyle: "en.label.caption.10.semibold",
|
|
1209
|
+
fontFamily: "dmSans"
|
|
1210
|
+
},
|
|
1211
|
+
"en.label.caption.12.semibold": {
|
|
1212
|
+
textStyle: "en.label.caption.12.semibold",
|
|
1213
|
+
fontFamily: "dmSans"
|
|
1214
|
+
},
|
|
1215
|
+
"en.label.caption.14.semibold": {
|
|
1216
|
+
textStyle: "en.label.caption.14.semibold",
|
|
1217
|
+
fontFamily: "dmSans"
|
|
1218
|
+
},
|
|
1219
|
+
"kr.title.main.22.bold": {
|
|
1220
|
+
textStyle: "kr.title.main.22.bold",
|
|
1221
|
+
fontFamily: "pretendard"
|
|
1222
|
+
},
|
|
1223
|
+
"kr.title.main.24.bold": {
|
|
1224
|
+
textStyle: "kr.title.main.24.bold",
|
|
1225
|
+
fontFamily: "pretendard"
|
|
1226
|
+
},
|
|
1227
|
+
"kr.title.main.30.bold": {
|
|
1228
|
+
textStyle: "kr.title.main.30.bold",
|
|
1229
|
+
fontFamily: "pretendard"
|
|
1230
|
+
},
|
|
1231
|
+
"kr.title.main.56.bold": {
|
|
1232
|
+
textStyle: "kr.title.main.56.bold",
|
|
1233
|
+
fontFamily: "pretendard"
|
|
1234
|
+
},
|
|
1235
|
+
"kr.title.sub.16.bold": {
|
|
1236
|
+
textStyle: "kr.title.sub.16.bold",
|
|
1237
|
+
fontFamily: "pretendard"
|
|
1238
|
+
},
|
|
1239
|
+
"kr.title.sub.18.bold": {
|
|
1240
|
+
textStyle: "kr.title.sub.18.bold",
|
|
1241
|
+
fontFamily: "pretendard"
|
|
1242
|
+
},
|
|
1243
|
+
"kr.title.sub.20.bold": {
|
|
1244
|
+
textStyle: "kr.title.sub.20.bold",
|
|
1245
|
+
fontFamily: "pretendard"
|
|
1246
|
+
},
|
|
1247
|
+
"kr.text.chat.14.bold": {
|
|
1248
|
+
textStyle: "kr.text.chat.14.bold",
|
|
1249
|
+
fontFamily: "pretendard"
|
|
1250
|
+
},
|
|
1251
|
+
"kr.text.chat.14.regular": {
|
|
1252
|
+
textStyle: "kr.text.chat.14.regular",
|
|
1253
|
+
fontFamily: "pretendard"
|
|
1254
|
+
},
|
|
1255
|
+
"kr.text.chat.16.bold": {
|
|
1256
|
+
textStyle: "kr.text.chat.16.bold",
|
|
1257
|
+
fontFamily: "pretendard"
|
|
1258
|
+
},
|
|
1259
|
+
"kr.text.chat.16.regular": {
|
|
1260
|
+
textStyle: "kr.text.chat.16.regular",
|
|
1261
|
+
fontFamily: "pretendard"
|
|
1262
|
+
},
|
|
1263
|
+
"kr.text.body.14.bold": {
|
|
1264
|
+
textStyle: "kr.text.body.14.bold",
|
|
1265
|
+
fontFamily: "pretendard"
|
|
1266
|
+
},
|
|
1267
|
+
"kr.text.body.14.regular": {
|
|
1268
|
+
textStyle: "kr.text.body.14.regular",
|
|
1269
|
+
fontFamily: "pretendard"
|
|
1270
|
+
},
|
|
1271
|
+
"kr.text.body.16.bold": {
|
|
1272
|
+
textStyle: "kr.text.body.16.bold",
|
|
1273
|
+
fontFamily: "pretendard"
|
|
1274
|
+
},
|
|
1275
|
+
"kr.text.body.16.regular": {
|
|
1276
|
+
textStyle: "kr.text.body.16.regular",
|
|
1277
|
+
fontFamily: "pretendard"
|
|
1278
|
+
},
|
|
1279
|
+
"kr.label.caption.10.semibold": {
|
|
1280
|
+
textStyle: "kr.label.caption.10.semibold",
|
|
1281
|
+
fontFamily: "pretendard"
|
|
1282
|
+
},
|
|
1283
|
+
"kr.label.caption.12.semibold": {
|
|
1284
|
+
textStyle: "kr.label.caption.12.semibold",
|
|
1285
|
+
fontFamily: "pretendard"
|
|
1286
|
+
},
|
|
1287
|
+
"kr.label.caption.14.semibold": {
|
|
1288
|
+
textStyle: "kr.label.caption.14.semibold",
|
|
1289
|
+
fontFamily: "pretendard"
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
font: {
|
|
1293
|
+
inter: {
|
|
1294
|
+
fontFamily: "inter"
|
|
1295
|
+
},
|
|
1296
|
+
notoSans: {
|
|
1297
|
+
fontFamily: "notoSans"
|
|
1298
|
+
},
|
|
1299
|
+
dmSans: {
|
|
1300
|
+
fontFamily: "dmSans"
|
|
1301
|
+
},
|
|
1302
|
+
pretendard: {
|
|
1303
|
+
fontFamily: "pretendard"
|
|
1304
|
+
},
|
|
1305
|
+
freeman: {
|
|
1306
|
+
fontFamily: "freeman"
|
|
1154
1307
|
}
|
|
1155
1308
|
}
|
|
1156
1309
|
}
|
|
1157
1310
|
}), on = _((t, e) => {
|
|
1158
|
-
const { variant: n = "body.md", font: r, children: o, ...i } = t, s =
|
|
1159
|
-
display:
|
|
1160
|
-
headline:
|
|
1161
|
-
title:
|
|
1162
|
-
body:
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1311
|
+
const { variant: n = "body.md", font: r, children: o, ...i } = t, s = {
|
|
1312
|
+
display: B("h1", Xt),
|
|
1313
|
+
headline: B("h2", Xt),
|
|
1314
|
+
title: B("h3", Xt),
|
|
1315
|
+
body: B("p", Xt),
|
|
1316
|
+
text: B("p", Xt),
|
|
1317
|
+
label: B("span", Xt)
|
|
1318
|
+
}, l = ((n == null ? void 0 : n.split(".")) || ["body"]).find((c) => c in s) || "body", u = s[l];
|
|
1319
|
+
return /* @__PURE__ */ y(u, { ref: e, variant: n, font: r, ...i, children: o });
|
|
1166
1320
|
});
|
|
1167
1321
|
on.displayName = "Text";
|
|
1168
1322
|
const hd = (t, e, n = {}) => {
|
|
1169
1323
|
var r;
|
|
1170
1324
|
return ((r = n.forwardProps) == null ? void 0 : r.includes(t)) || !e.includes(t) && !br(t);
|
|
1171
|
-
},
|
|
1325
|
+
}, It = (t) => {
|
|
1172
1326
|
const e = xt(null);
|
|
1173
1327
|
return {
|
|
1174
1328
|
withRootProvider: (i) => (a) => {
|
|
@@ -1176,7 +1330,7 @@ const hd = (t, e, n = {}) => {
|
|
|
1176
1330
|
return /* @__PURE__ */ y(e.Provider, { value: c, children: /* @__PURE__ */ y(i, { ...u }) });
|
|
1177
1331
|
},
|
|
1178
1332
|
withProvider: (i, s, a) => {
|
|
1179
|
-
const l =
|
|
1333
|
+
const l = B(
|
|
1180
1334
|
i,
|
|
1181
1335
|
{},
|
|
1182
1336
|
{
|
|
@@ -1189,7 +1343,7 @@ const hd = (t, e, n = {}) => {
|
|
|
1189
1343
|
return u.displayName = i.displayName || i.name, u;
|
|
1190
1344
|
},
|
|
1191
1345
|
withContext: (i, s) => {
|
|
1192
|
-
const a =
|
|
1346
|
+
const a = B(i), l = _((u, c) => {
|
|
1193
1347
|
const d = H(e);
|
|
1194
1348
|
return /* @__PURE__ */ y(a, { ...u, ref: c, className: K(d == null ? void 0 : d[s], u.className) });
|
|
1195
1349
|
});
|
|
@@ -1280,7 +1434,7 @@ const hd = (t, e, n = {}) => {
|
|
|
1280
1434
|
px: "4"
|
|
1281
1435
|
}
|
|
1282
1436
|
}
|
|
1283
|
-
}), { withRootProvider: md, withContext:
|
|
1437
|
+
}), { withRootProvider: md, withContext: St } = It(fd), pd = md(Ul), gd = St(Gl, "backdrop"), yd = St(Kl, "trigger"), bd = St(Yl, "content"), vd = St(Xl, "title"), xd = St(ql, "description"), Sd = St(Zl, "positioner"), wd = St(Ut.header, "header"), kd = St(
|
|
1284
1438
|
({ orientation: t = "horizontal", className: e, ...n }) => /* @__PURE__ */ y(
|
|
1285
1439
|
Ut.footer,
|
|
1286
1440
|
{
|
|
@@ -1295,16 +1449,16 @@ const hd = (t, e, n = {}) => {
|
|
|
1295
1449
|
}
|
|
1296
1450
|
),
|
|
1297
1451
|
"footer"
|
|
1298
|
-
), Td =
|
|
1452
|
+
), Td = St(Ut.main, "body"), Pd = St(Jl, "closeTrigger"), eb = {
|
|
1299
1453
|
Root: pd,
|
|
1300
1454
|
Backdrop: gd,
|
|
1301
1455
|
Trigger: yd,
|
|
1302
1456
|
Content: bd,
|
|
1303
1457
|
Title: vd,
|
|
1304
1458
|
Description: xd,
|
|
1305
|
-
Positioner:
|
|
1306
|
-
Header:
|
|
1307
|
-
Footer:
|
|
1459
|
+
Positioner: Sd,
|
|
1460
|
+
Header: wd,
|
|
1461
|
+
Footer: kd,
|
|
1308
1462
|
Body: Td,
|
|
1309
1463
|
CloseTrigger: Pd
|
|
1310
1464
|
}, Cd = At({
|
|
@@ -1481,7 +1635,7 @@ const hd = (t, e, n = {}) => {
|
|
|
1481
1635
|
]
|
|
1482
1636
|
}), vi = _(
|
|
1483
1637
|
({ loading: t, disabled: e, children: n, color: r, variant: o, size: i, onClick: s, ...a }, l) => {
|
|
1484
|
-
const u =
|
|
1638
|
+
const u = B(Ut.button, Cd);
|
|
1485
1639
|
return /* @__PURE__ */ y(
|
|
1486
1640
|
u,
|
|
1487
1641
|
{
|
|
@@ -1495,7 +1649,7 @@ const hd = (t, e, n = {}) => {
|
|
|
1495
1649
|
!t && !e && (s == null || s(c));
|
|
1496
1650
|
},
|
|
1497
1651
|
...a,
|
|
1498
|
-
children: t ? /* @__PURE__ */ D(
|
|
1652
|
+
children: t ? /* @__PURE__ */ D(Ie, { children: [
|
|
1499
1653
|
/* @__PURE__ */ y(
|
|
1500
1654
|
vr,
|
|
1501
1655
|
{
|
|
@@ -1509,19 +1663,19 @@ const hd = (t, e, n = {}) => {
|
|
|
1509
1663
|
children: /* @__PURE__ */ y(gn, { size: i === "lg" ? "md" : "sm" })
|
|
1510
1664
|
}
|
|
1511
1665
|
),
|
|
1512
|
-
/* @__PURE__ */ y(
|
|
1666
|
+
/* @__PURE__ */ y(B.span, { css: { opacity: 0 }, children: n })
|
|
1513
1667
|
] }) : n
|
|
1514
1668
|
}
|
|
1515
1669
|
);
|
|
1516
1670
|
}
|
|
1517
1671
|
);
|
|
1518
1672
|
vi.displayName = "IconButton";
|
|
1519
|
-
const nb =
|
|
1673
|
+
const nb = ie(ut(vi)), Sr = xt({});
|
|
1520
1674
|
function Oe(t) {
|
|
1521
1675
|
const e = X(null);
|
|
1522
1676
|
return e.current === null && (e.current = t()), e.current;
|
|
1523
1677
|
}
|
|
1524
|
-
const
|
|
1678
|
+
const wr = typeof window != "undefined", kr = wr ? ei : ct, yn = /* @__PURE__ */ xt(null), bn = xt({
|
|
1525
1679
|
transformPagePoint: (t) => t,
|
|
1526
1680
|
isStatic: !1,
|
|
1527
1681
|
reducedMotion: "never"
|
|
@@ -1625,28 +1779,28 @@ function xo(t) {
|
|
|
1625
1779
|
}
|
|
1626
1780
|
const Dd = ({ children: t, custom: e, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: s = !1, anchorX: a = "left" }) => {
|
|
1627
1781
|
const [l, u] = xi(s), c = gt(() => xo(t), [t]), d = s && !l ? [] : c.map(Ye), h = X(!0), f = X(c), m = Oe(() => /* @__PURE__ */ new Map()), [g, b] = Tt(c), [p, v] = Tt(c);
|
|
1628
|
-
|
|
1782
|
+
kr(() => {
|
|
1629
1783
|
h.current = !1, f.current = c;
|
|
1630
1784
|
for (let x = 0; x < p.length; x++) {
|
|
1631
|
-
const
|
|
1632
|
-
d.includes(
|
|
1785
|
+
const w = Ye(p[x]);
|
|
1786
|
+
d.includes(w) ? m.delete(w) : m.get(w) !== !0 && m.set(w, !1);
|
|
1633
1787
|
}
|
|
1634
1788
|
}, [p, d.length, d.join("-")]);
|
|
1635
|
-
const
|
|
1789
|
+
const S = [];
|
|
1636
1790
|
if (c !== g) {
|
|
1637
1791
|
let x = [...c];
|
|
1638
|
-
for (let
|
|
1639
|
-
const C = p[
|
|
1640
|
-
d.includes(
|
|
1792
|
+
for (let w = 0; w < p.length; w++) {
|
|
1793
|
+
const C = p[w], k = Ye(C);
|
|
1794
|
+
d.includes(k) || (x.splice(w, 0, C), S.push(C));
|
|
1641
1795
|
}
|
|
1642
|
-
return i === "wait" &&
|
|
1796
|
+
return i === "wait" && S.length && (x = S), v(xo(x)), b(c), null;
|
|
1643
1797
|
}
|
|
1644
1798
|
process.env.NODE_ENV !== "production" && i === "wait" && p.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.`);
|
|
1645
|
-
const { forceRender: P } = H(
|
|
1646
|
-
return y(
|
|
1647
|
-
const
|
|
1648
|
-
if (m.has(
|
|
1649
|
-
m.set(
|
|
1799
|
+
const { forceRender: P } = H(Sr);
|
|
1800
|
+
return y(Ie, { children: p.map((x) => {
|
|
1801
|
+
const w = Ye(x), C = s && !l ? !1 : c === p || d.includes(w), k = () => {
|
|
1802
|
+
if (m.has(w))
|
|
1803
|
+
m.set(w, !0);
|
|
1650
1804
|
else
|
|
1651
1805
|
return;
|
|
1652
1806
|
let A = !0;
|
|
@@ -1654,7 +1808,7 @@ const Dd = ({ children: t, custom: e, initial: n = !0, onExitComplete: r, presen
|
|
|
1654
1808
|
E || (A = !1);
|
|
1655
1809
|
}), A && (P == null || P(), v(f.current), s && (u == null || u()), r && r());
|
|
1656
1810
|
};
|
|
1657
|
-
return y(Rd, { isPresent: C, initial: !h.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: o, mode: i, onExitComplete: C ? void 0 :
|
|
1811
|
+
return y(Rd, { isPresent: C, initial: !h.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: o, mode: i, onExitComplete: C ? void 0 : k, anchorX: a, children: x }, w);
|
|
1658
1812
|
}) });
|
|
1659
1813
|
}, Xe = [
|
|
1660
1814
|
"read",
|
|
@@ -1711,7 +1865,7 @@ function Ed(t, e) {
|
|
|
1711
1865
|
const Xn = {
|
|
1712
1866
|
useManualTiming: !1
|
|
1713
1867
|
}, Md = 40;
|
|
1714
|
-
function
|
|
1868
|
+
function Si(t, e) {
|
|
1715
1869
|
let n = !1, r = !0;
|
|
1716
1870
|
const o = {
|
|
1717
1871
|
delta: 0,
|
|
@@ -1724,14 +1878,14 @@ function wi(t, e) {
|
|
|
1724
1878
|
n = !0, r = !0, o.isProcessing || t(f);
|
|
1725
1879
|
};
|
|
1726
1880
|
return { schedule: Xe.reduce((p, v) => {
|
|
1727
|
-
const
|
|
1728
|
-
return p[v] = (P, x = !1,
|
|
1881
|
+
const S = s[v];
|
|
1882
|
+
return p[v] = (P, x = !1, w = !1) => (n || m(), S.schedule(P, x, w)), p;
|
|
1729
1883
|
}, {}), cancel: (p) => {
|
|
1730
1884
|
for (let v = 0; v < Xe.length; v++)
|
|
1731
1885
|
s[Xe[v]].cancel(p);
|
|
1732
1886
|
}, state: o, steps: s };
|
|
1733
1887
|
}
|
|
1734
|
-
const st = /* @__NO_SIDE_EFFECTS__ */ (t) => t, { schedule:
|
|
1888
|
+
const st = /* @__NO_SIDE_EFFECTS__ */ (t) => t, { schedule: L, cancel: Pt, state: Y, steps: Fn } = /* @__PURE__ */ Si(typeof requestAnimationFrame != "undefined" ? requestAnimationFrame : st, !0), wi = xt({ strict: !1 }), So = {
|
|
1735
1889
|
animation: [
|
|
1736
1890
|
"animate",
|
|
1737
1891
|
"variants",
|
|
@@ -1750,19 +1904,19 @@ const st = /* @__NO_SIDE_EFFECTS__ */ (t) => t, { schedule: I, cancel: Pt, state
|
|
|
1750
1904
|
pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
|
|
1751
1905
|
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
1752
1906
|
layout: ["layout", "layoutId"]
|
|
1753
|
-
},
|
|
1754
|
-
for (const t in
|
|
1755
|
-
|
|
1756
|
-
isEnabled: (e) =>
|
|
1907
|
+
}, ne = {};
|
|
1908
|
+
for (const t in So)
|
|
1909
|
+
ne[t] = {
|
|
1910
|
+
isEnabled: (e) => So[t].some((n) => !!e[n])
|
|
1757
1911
|
};
|
|
1758
|
-
function
|
|
1912
|
+
function Fd(t) {
|
|
1759
1913
|
for (const e in t)
|
|
1760
|
-
|
|
1761
|
-
...
|
|
1914
|
+
ne[e] = {
|
|
1915
|
+
...ne[e],
|
|
1762
1916
|
...t[e]
|
|
1763
1917
|
};
|
|
1764
1918
|
}
|
|
1765
|
-
const
|
|
1919
|
+
const Ld = /* @__PURE__ */ new Set([
|
|
1766
1920
|
"animate",
|
|
1767
1921
|
"exit",
|
|
1768
1922
|
"variants",
|
|
@@ -1795,26 +1949,26 @@ const Id = /* @__PURE__ */ new Set([
|
|
|
1795
1949
|
"viewport"
|
|
1796
1950
|
]);
|
|
1797
1951
|
function sn(t) {
|
|
1798
|
-
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") ||
|
|
1952
|
+
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Ld.has(t);
|
|
1799
1953
|
}
|
|
1800
|
-
let
|
|
1801
|
-
function
|
|
1802
|
-
t && (
|
|
1954
|
+
let ki = (t) => !sn(t);
|
|
1955
|
+
function Id(t) {
|
|
1956
|
+
t && (ki = (e) => e.startsWith("on") ? !sn(e) : t(e));
|
|
1803
1957
|
}
|
|
1804
1958
|
try {
|
|
1805
|
-
|
|
1959
|
+
Id(require("@emotion/is-prop-valid").default);
|
|
1806
1960
|
} catch (t) {
|
|
1807
1961
|
}
|
|
1808
|
-
function
|
|
1962
|
+
function Bd(t, e, n) {
|
|
1809
1963
|
const r = {};
|
|
1810
1964
|
for (const o in t)
|
|
1811
|
-
o === "values" && typeof t.values == "object" || (
|
|
1965
|
+
o === "values" && typeof t.values == "object" || (ki(o) || n === !0 && sn(o) || !e && !sn(o) || // If trying to use native HTML drag events, forward drag listeners
|
|
1812
1966
|
t.draggable && o.startsWith("onDrag")) && (r[o] = t[o]);
|
|
1813
1967
|
return r;
|
|
1814
1968
|
}
|
|
1815
|
-
const
|
|
1969
|
+
const wo = /* @__PURE__ */ new Set();
|
|
1816
1970
|
function je(t, e, n) {
|
|
1817
|
-
t ||
|
|
1971
|
+
t || wo.has(e) || (console.warn(e), wo.add(e));
|
|
1818
1972
|
}
|
|
1819
1973
|
function Od(t) {
|
|
1820
1974
|
if (typeof Proxy == "undefined")
|
|
@@ -1845,14 +1999,14 @@ const Tr = [
|
|
|
1845
1999
|
"whileDrag",
|
|
1846
2000
|
"exit"
|
|
1847
2001
|
], Pr = ["initial", ...Tr];
|
|
1848
|
-
function
|
|
2002
|
+
function Sn(t) {
|
|
1849
2003
|
return xn(t.animate) || Pr.some((e) => Pe(t[e]));
|
|
1850
2004
|
}
|
|
1851
2005
|
function Ti(t) {
|
|
1852
|
-
return !!(
|
|
2006
|
+
return !!(Sn(t) || t.variants);
|
|
1853
2007
|
}
|
|
1854
2008
|
function jd(t, e) {
|
|
1855
|
-
if (
|
|
2009
|
+
if (Sn(t)) {
|
|
1856
2010
|
const { initial: n, animate: r } = t;
|
|
1857
2011
|
return {
|
|
1858
2012
|
initial: n === !1 || Pe(n) ? n : void 0,
|
|
@@ -1863,19 +2017,19 @@ function jd(t, e) {
|
|
|
1863
2017
|
}
|
|
1864
2018
|
function Nd(t) {
|
|
1865
2019
|
const { initial: e, animate: n } = jd(t, H(vn));
|
|
1866
|
-
return gt(() => ({ initial: e, animate: n }), [
|
|
2020
|
+
return gt(() => ({ initial: e, animate: n }), [ko(e), ko(n)]);
|
|
1867
2021
|
}
|
|
1868
|
-
function
|
|
2022
|
+
function ko(t) {
|
|
1869
2023
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
1870
2024
|
}
|
|
1871
|
-
const
|
|
1872
|
-
function
|
|
2025
|
+
const zd = Symbol.for("motionComponentSymbol");
|
|
2026
|
+
function qt(t) {
|
|
1873
2027
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
1874
2028
|
}
|
|
1875
|
-
function
|
|
2029
|
+
function Wd(t, e, n) {
|
|
1876
2030
|
return J(
|
|
1877
2031
|
(r) => {
|
|
1878
|
-
r && t.onMount && t.onMount(r), e && (r ? e.mount(r) : e.unmount()), n && (typeof n == "function" ? n(r) :
|
|
2032
|
+
r && t.onMount && t.onMount(r), e && (r ? e.mount(r) : e.unmount()), n && (typeof n == "function" ? n(r) : qt(n) && (n.current = r));
|
|
1879
2033
|
},
|
|
1880
2034
|
/**
|
|
1881
2035
|
* Only pass a new ref callback to React if we've received a visual element
|
|
@@ -1885,10 +2039,10 @@ function zd(t, e, n) {
|
|
|
1885
2039
|
[e]
|
|
1886
2040
|
);
|
|
1887
2041
|
}
|
|
1888
|
-
const Cr = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(),
|
|
2042
|
+
const Cr = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), $d = "framerAppearId", Pi = "data-" + Cr($d), Ci = xt({}), { schedule: Ar } = /* @__PURE__ */ Si(queueMicrotask, !1);
|
|
1889
2043
|
function Hd(t, e, n, r, o) {
|
|
1890
2044
|
var g, b;
|
|
1891
|
-
const { visualElement: i } = H(vn), s = H(
|
|
2045
|
+
const { visualElement: i } = H(vn), s = H(wi), a = H(yn), l = H(bn).reducedMotion, u = X(null);
|
|
1892
2046
|
r = r || s.renderer, !u.current && r && (u.current = r(t, {
|
|
1893
2047
|
visualState: e,
|
|
1894
2048
|
parent: i,
|
|
@@ -1904,7 +2058,7 @@ function Hd(t, e, n, r, o) {
|
|
|
1904
2058
|
c && h.current && c.update(n, a);
|
|
1905
2059
|
});
|
|
1906
2060
|
const f = n[Pi], m = X(!!f && !((g = window.MotionHandoffIsComplete) != null && g.call(window, f)) && ((b = window.MotionHasOptimisedAnimation) == null ? void 0 : b.call(window, f)));
|
|
1907
|
-
return
|
|
2061
|
+
return kr(() => {
|
|
1908
2062
|
c && (h.current = !0, window.MotionIsMounted = !0, c.updateFeatures(), Ar.render(c.render), m.current && c.animationState && c.animationState.animateChanges());
|
|
1909
2063
|
}), ct(() => {
|
|
1910
2064
|
c && (!m.current && c.animationState && c.animationState.animateChanges(), m.current && (queueMicrotask(() => {
|
|
@@ -1918,7 +2072,7 @@ function Ud(t, e, n, r) {
|
|
|
1918
2072
|
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : Ai(t.parent)), t.projection.setOptions({
|
|
1919
2073
|
layoutId: o,
|
|
1920
2074
|
layout: i,
|
|
1921
|
-
alwaysMeasureLayout: !!s || a &&
|
|
2075
|
+
alwaysMeasureLayout: !!s || a && qt(a),
|
|
1922
2076
|
visualElement: t,
|
|
1923
2077
|
/**
|
|
1924
2078
|
* TODO: Update options in an effect. This could be tricky as it'll be too late
|
|
@@ -1938,10 +2092,10 @@ function Ai(t) {
|
|
|
1938
2092
|
if (t)
|
|
1939
2093
|
return t.options.allowProjection !== !1 ? t.projection : Ai(t.parent);
|
|
1940
2094
|
}
|
|
1941
|
-
let
|
|
2095
|
+
let ae = () => {
|
|
1942
2096
|
}, bt = () => {
|
|
1943
2097
|
};
|
|
1944
|
-
process.env.NODE_ENV !== "production" && (
|
|
2098
|
+
process.env.NODE_ENV !== "production" && (ae = (t, e) => {
|
|
1945
2099
|
!t && typeof console != "undefined" && console.warn(e);
|
|
1946
2100
|
}, bt = (t, e) => {
|
|
1947
2101
|
if (!t)
|
|
@@ -1949,7 +2103,7 @@ process.env.NODE_ENV !== "production" && (ie = (t, e) => {
|
|
|
1949
2103
|
});
|
|
1950
2104
|
function Gd({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: r, Component: o }) {
|
|
1951
2105
|
var a, l;
|
|
1952
|
-
t &&
|
|
2106
|
+
t && Fd(t);
|
|
1953
2107
|
function i(u, c) {
|
|
1954
2108
|
let d;
|
|
1955
2109
|
const h = {
|
|
@@ -1957,30 +2111,30 @@ function Gd({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
|
|
|
1957
2111
|
...u,
|
|
1958
2112
|
layoutId: Kd(u)
|
|
1959
2113
|
}, { isStatic: f } = h, m = Nd(u), g = r(u, f);
|
|
1960
|
-
if (!f &&
|
|
2114
|
+
if (!f && wr) {
|
|
1961
2115
|
Yd(h, t);
|
|
1962
2116
|
const b = Xd(h);
|
|
1963
2117
|
d = b.MeasureLayout, m.visualElement = Hd(o, g, h, e, b.ProjectionNode);
|
|
1964
2118
|
}
|
|
1965
|
-
return D(vn.Provider, { value: m, children: [d && m.visualElement ? y(d, { visualElement: m.visualElement, ...h }) : null, n(o, u,
|
|
2119
|
+
return D(vn.Provider, { value: m, children: [d && m.visualElement ? y(d, { visualElement: m.visualElement, ...h }) : null, n(o, u, Wd(g, m.visualElement, c), g, f, m.visualElement)] });
|
|
1966
2120
|
}
|
|
1967
2121
|
i.displayName = `motion.${typeof o == "string" ? o : `create(${(l = (a = o.displayName) != null ? a : o.name) != null ? l : ""})`}`;
|
|
1968
2122
|
const s = _(i);
|
|
1969
|
-
return s[
|
|
2123
|
+
return s[zd] = o, s;
|
|
1970
2124
|
}
|
|
1971
2125
|
function Kd({ layoutId: t }) {
|
|
1972
|
-
const e = H(
|
|
2126
|
+
const e = H(Sr).id;
|
|
1973
2127
|
return e && t !== void 0 ? e + "-" + t : t;
|
|
1974
2128
|
}
|
|
1975
2129
|
function Yd(t, e) {
|
|
1976
|
-
const n = H(
|
|
2130
|
+
const n = H(wi).strict;
|
|
1977
2131
|
if (process.env.NODE_ENV !== "production" && e && n) {
|
|
1978
2132
|
const r = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
1979
|
-
t.ignoreStrict ?
|
|
2133
|
+
t.ignoreStrict ? ae(!1, r) : bt(!1, r);
|
|
1980
2134
|
}
|
|
1981
2135
|
}
|
|
1982
2136
|
function Xd(t) {
|
|
1983
|
-
const { drag: e, layout: n } =
|
|
2137
|
+
const { drag: e, layout: n } = ne;
|
|
1984
2138
|
if (!e && !n)
|
|
1985
2139
|
return {};
|
|
1986
2140
|
const r = { ...e, ...n };
|
|
@@ -1994,7 +2148,7 @@ function Jd(t) {
|
|
|
1994
2148
|
for (const e in t)
|
|
1995
2149
|
Ce[e] = t[e], _r(e) && (Ce[e].isCSSVariable = !0);
|
|
1996
2150
|
}
|
|
1997
|
-
const
|
|
2151
|
+
const le = [
|
|
1998
2152
|
"transformPerspective",
|
|
1999
2153
|
"x",
|
|
2000
2154
|
"y",
|
|
@@ -2012,19 +2166,19 @@ const ae = [
|
|
|
2012
2166
|
"skew",
|
|
2013
2167
|
"skewX",
|
|
2014
2168
|
"skewY"
|
|
2015
|
-
], Gt = new Set(
|
|
2169
|
+
], Gt = new Set(le);
|
|
2016
2170
|
function Ri(t, { layout: e, layoutId: n }) {
|
|
2017
2171
|
return Gt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!Ce[t] || t === "opacity");
|
|
2018
2172
|
}
|
|
2019
|
-
const G = (t) => !!(t && t.getVelocity), Vi = (t, e) => e && typeof t == "number" ? e.transform(t) : t, Ct = (t, e, n) => n > e ? e : n < t ? t : n,
|
|
2173
|
+
const G = (t) => !!(t && t.getVelocity), Vi = (t, e) => e && typeof t == "number" ? e.transform(t) : t, Ct = (t, e, n) => n > e ? e : n < t ? t : n, ce = {
|
|
2020
2174
|
test: (t) => typeof t == "number",
|
|
2021
2175
|
parse: parseFloat,
|
|
2022
2176
|
transform: (t) => t
|
|
2023
2177
|
}, Ae = {
|
|
2024
|
-
...
|
|
2178
|
+
...ce,
|
|
2025
2179
|
transform: (t) => Ct(0, 1, t)
|
|
2026
2180
|
}, qe = {
|
|
2027
|
-
...
|
|
2181
|
+
...ce,
|
|
2028
2182
|
default: 1
|
|
2029
2183
|
}, Ne = (t) => ({
|
|
2030
2184
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
|
@@ -2096,7 +2250,7 @@ const G = (t) => !!(t && t.getVelocity), Vi = (t, e) => e && typeof t == "number
|
|
|
2096
2250
|
originY: To,
|
|
2097
2251
|
originZ: T
|
|
2098
2252
|
}, Po = {
|
|
2099
|
-
...
|
|
2253
|
+
...ce,
|
|
2100
2254
|
transform: Math.round
|
|
2101
2255
|
}, Vr = {
|
|
2102
2256
|
...eh,
|
|
@@ -2112,11 +2266,11 @@ const G = (t) => !!(t && t.getVelocity), Vi = (t, e) => e && typeof t == "number
|
|
|
2112
2266
|
y: "translateY",
|
|
2113
2267
|
z: "translateZ",
|
|
2114
2268
|
transformPerspective: "perspective"
|
|
2115
|
-
}, oh =
|
|
2269
|
+
}, oh = le.length;
|
|
2116
2270
|
function sh(t, e, n) {
|
|
2117
2271
|
let r = "", o = !0;
|
|
2118
2272
|
for (let i = 0; i < oh; i++) {
|
|
2119
|
-
const s =
|
|
2273
|
+
const s = le[i], a = t[s];
|
|
2120
2274
|
if (a === void 0)
|
|
2121
2275
|
continue;
|
|
2122
2276
|
let l = !0;
|
|
@@ -2245,7 +2399,7 @@ function fh(t, e, n) {
|
|
|
2245
2399
|
const r = Co(e, t.x, t.width), o = Co(n, t.y, t.height);
|
|
2246
2400
|
return `${r} ${o}`;
|
|
2247
2401
|
}
|
|
2248
|
-
function
|
|
2402
|
+
function Fr(t, {
|
|
2249
2403
|
attrX: e,
|
|
2250
2404
|
attrY: n,
|
|
2251
2405
|
attrScale: r,
|
|
@@ -2268,11 +2422,11 @@ function Lr(t, {
|
|
|
2268
2422
|
const Ei = () => ({
|
|
2269
2423
|
...Er(),
|
|
2270
2424
|
attrs: {}
|
|
2271
|
-
}),
|
|
2425
|
+
}), Lr = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
|
2272
2426
|
function mh(t, e, n, r) {
|
|
2273
2427
|
const o = gt(() => {
|
|
2274
2428
|
const i = Ei();
|
|
2275
|
-
return
|
|
2429
|
+
return Fr(i, e, Lr(r), t.transformTemplate), {
|
|
2276
2430
|
...i.attrs,
|
|
2277
2431
|
style: { ...i.style }
|
|
2278
2432
|
};
|
|
@@ -2285,7 +2439,7 @@ function mh(t, e, n, r) {
|
|
|
2285
2439
|
}
|
|
2286
2440
|
function ph(t = !1) {
|
|
2287
2441
|
return (n, r, o, { latestValues: i }, s) => {
|
|
2288
|
-
const l = (Mr(n) ? mh : lh)(r, i, s, n), u =
|
|
2442
|
+
const l = (Mr(n) ? mh : lh)(r, i, s, n), u = Bd(r, typeof n == "string", t), c = n !== oi ? { ...u, ...l, ref: o } : {}, { children: d } = r, h = gt(() => G(d) ? d.get() : d, [d]);
|
|
2289
2443
|
return vt(n, {
|
|
2290
2444
|
...c,
|
|
2291
2445
|
children: h
|
|
@@ -2298,7 +2452,7 @@ function Ao(t) {
|
|
|
2298
2452
|
e[0][r] = n.get(), e[1][r] = n.getVelocity();
|
|
2299
2453
|
}), e;
|
|
2300
2454
|
}
|
|
2301
|
-
function
|
|
2455
|
+
function Ir(t, e, n, r) {
|
|
2302
2456
|
if (typeof e == "function") {
|
|
2303
2457
|
const [o, i] = Ao(r);
|
|
2304
2458
|
e = e(n !== void 0 ? n : t.custom, o, i);
|
|
@@ -2330,7 +2484,7 @@ function vh(t, e, n, r) {
|
|
|
2330
2484
|
for (const h in i)
|
|
2331
2485
|
o[h] = Qe(i[h]);
|
|
2332
2486
|
let { initial: s, animate: a } = t;
|
|
2333
|
-
const l =
|
|
2487
|
+
const l = Sn(t), u = Ti(t);
|
|
2334
2488
|
e && u && !l && t.inherit !== !1 && (s === void 0 && (s = e.initial), a === void 0 && (a = e.animate));
|
|
2335
2489
|
let c = n ? n.initial === !1 : !1;
|
|
2336
2490
|
c = c || s === !1;
|
|
@@ -2338,16 +2492,16 @@ function vh(t, e, n, r) {
|
|
|
2338
2492
|
if (d && typeof d != "boolean" && !xn(d)) {
|
|
2339
2493
|
const h = Array.isArray(d) ? d : [d];
|
|
2340
2494
|
for (let f = 0; f < h.length; f++) {
|
|
2341
|
-
const m =
|
|
2495
|
+
const m = Ir(t, h[f]);
|
|
2342
2496
|
if (m) {
|
|
2343
2497
|
const { transitionEnd: g, transition: b, ...p } = m;
|
|
2344
2498
|
for (const v in p) {
|
|
2345
|
-
let
|
|
2346
|
-
if (Array.isArray(
|
|
2347
|
-
const P = c ?
|
|
2348
|
-
|
|
2499
|
+
let S = p[v];
|
|
2500
|
+
if (Array.isArray(S)) {
|
|
2501
|
+
const P = c ? S.length - 1 : 0;
|
|
2502
|
+
S = S[P];
|
|
2349
2503
|
}
|
|
2350
|
-
|
|
2504
|
+
S !== null && (o[v] = S);
|
|
2351
2505
|
}
|
|
2352
2506
|
for (const v in g)
|
|
2353
2507
|
o[v] = g[v];
|
|
@@ -2356,7 +2510,7 @@ function vh(t, e, n, r) {
|
|
|
2356
2510
|
}
|
|
2357
2511
|
return o;
|
|
2358
2512
|
}
|
|
2359
|
-
function
|
|
2513
|
+
function Br(t, e, n) {
|
|
2360
2514
|
var i;
|
|
2361
2515
|
const { style: r } = t, o = {};
|
|
2362
2516
|
for (const s in r)
|
|
@@ -2365,11 +2519,11 @@ function Fr(t, e, n) {
|
|
|
2365
2519
|
}
|
|
2366
2520
|
const xh = {
|
|
2367
2521
|
useVisualState: Mi({
|
|
2368
|
-
scrapeMotionValuesFromProps:
|
|
2522
|
+
scrapeMotionValuesFromProps: Br,
|
|
2369
2523
|
createRenderState: Er
|
|
2370
2524
|
})
|
|
2371
2525
|
};
|
|
2372
|
-
function
|
|
2526
|
+
function Fi(t, e) {
|
|
2373
2527
|
try {
|
|
2374
2528
|
e.dimensions = typeof t.getBBox == "function" ? t.getBBox() : t.getBoundingClientRect();
|
|
2375
2529
|
} catch (n) {
|
|
@@ -2381,12 +2535,12 @@ function Li(t, e) {
|
|
|
2381
2535
|
};
|
|
2382
2536
|
}
|
|
2383
2537
|
}
|
|
2384
|
-
function
|
|
2538
|
+
function Li(t, { style: e, vars: n }, r, o) {
|
|
2385
2539
|
Object.assign(t.style, e, o && o.getProjectionStyles(r));
|
|
2386
2540
|
for (const i in n)
|
|
2387
2541
|
t.style.setProperty(i, n[i]);
|
|
2388
2542
|
}
|
|
2389
|
-
const
|
|
2543
|
+
const Ii = /* @__PURE__ */ new Set([
|
|
2390
2544
|
"baseFrequency",
|
|
2391
2545
|
"diffuseConstant",
|
|
2392
2546
|
"kernelMatrix",
|
|
@@ -2411,21 +2565,21 @@ const Bi = /* @__PURE__ */ new Set([
|
|
|
2411
2565
|
"textLength",
|
|
2412
2566
|
"lengthAdjust"
|
|
2413
2567
|
]);
|
|
2414
|
-
function
|
|
2415
|
-
|
|
2568
|
+
function Bi(t, e, n, r) {
|
|
2569
|
+
Li(t, e, void 0, r);
|
|
2416
2570
|
for (const o in e.attrs)
|
|
2417
|
-
t.setAttribute(
|
|
2571
|
+
t.setAttribute(Ii.has(o) ? o : Cr(o), e.attrs[o]);
|
|
2418
2572
|
}
|
|
2419
2573
|
function Oi(t, e, n) {
|
|
2420
|
-
const r =
|
|
2574
|
+
const r = Br(t, e, n);
|
|
2421
2575
|
for (const o in t)
|
|
2422
2576
|
if (G(t[o]) || G(e[o])) {
|
|
2423
|
-
const i =
|
|
2577
|
+
const i = le.indexOf(o) !== -1 ? "attr" + o.charAt(0).toUpperCase() + o.substring(1) : o;
|
|
2424
2578
|
r[i] = t[o];
|
|
2425
2579
|
}
|
|
2426
2580
|
return r;
|
|
2427
2581
|
}
|
|
2428
|
-
const _o = ["x", "y", "width", "height", "cx", "cy", "r"],
|
|
2582
|
+
const _o = ["x", "y", "width", "height", "cx", "cy", "r"], Sh = {
|
|
2429
2583
|
useVisualState: Mi({
|
|
2430
2584
|
scrapeMotionValuesFromProps: Oi,
|
|
2431
2585
|
createRenderState: Ei,
|
|
@@ -2448,18 +2602,18 @@ const _o = ["x", "y", "width", "height", "cx", "cy", "r"], wh = {
|
|
|
2448
2602
|
const l = _o[a];
|
|
2449
2603
|
t[l] !== e[l] && (s = !0);
|
|
2450
2604
|
}
|
|
2451
|
-
s &&
|
|
2452
|
-
|
|
2453
|
-
|
|
2605
|
+
s && L.read(() => {
|
|
2606
|
+
Fi(n, r), L.render(() => {
|
|
2607
|
+
Fr(r, o, Lr(n.tagName), t.transformTemplate), Bi(n, r);
|
|
2454
2608
|
});
|
|
2455
2609
|
});
|
|
2456
2610
|
}
|
|
2457
2611
|
})
|
|
2458
2612
|
};
|
|
2459
|
-
function
|
|
2613
|
+
function wh(t, e) {
|
|
2460
2614
|
return function(r, { forwardMotionProps: o } = { forwardMotionProps: !1 }) {
|
|
2461
2615
|
const s = {
|
|
2462
|
-
...Mr(r) ?
|
|
2616
|
+
...Mr(r) ? Sh : xh,
|
|
2463
2617
|
preloadedFeatures: t,
|
|
2464
2618
|
useRender: ph(o),
|
|
2465
2619
|
createVisualElement: e,
|
|
@@ -2470,7 +2624,7 @@ function kh(t, e) {
|
|
|
2470
2624
|
}
|
|
2471
2625
|
function _e(t, e, n) {
|
|
2472
2626
|
const r = t.getProps();
|
|
2473
|
-
return
|
|
2627
|
+
return Ir(r, e, n !== void 0 ? n : r.custom, t);
|
|
2474
2628
|
}
|
|
2475
2629
|
const ji = /* @__PURE__ */ new Set([
|
|
2476
2630
|
"width",
|
|
@@ -2479,22 +2633,22 @@ const ji = /* @__PURE__ */ new Set([
|
|
|
2479
2633
|
"left",
|
|
2480
2634
|
"right",
|
|
2481
2635
|
"bottom",
|
|
2482
|
-
...
|
|
2636
|
+
...le
|
|
2483
2637
|
]);
|
|
2484
2638
|
let tn;
|
|
2485
|
-
function
|
|
2639
|
+
function kh() {
|
|
2486
2640
|
tn = void 0;
|
|
2487
2641
|
}
|
|
2488
2642
|
const mt = {
|
|
2489
2643
|
now: () => (tn === void 0 && mt.set(Y.isProcessing || Xn.useManualTiming ? Y.timestamp : performance.now()), tn),
|
|
2490
2644
|
set: (t) => {
|
|
2491
|
-
tn = t, queueMicrotask(
|
|
2645
|
+
tn = t, queueMicrotask(kh);
|
|
2492
2646
|
}
|
|
2493
2647
|
};
|
|
2494
2648
|
function Or(t, e) {
|
|
2495
2649
|
t.indexOf(e) === -1 && t.push(e);
|
|
2496
2650
|
}
|
|
2497
|
-
function
|
|
2651
|
+
function wn(t, e) {
|
|
2498
2652
|
const n = t.indexOf(e);
|
|
2499
2653
|
n > -1 && t.splice(n, 1);
|
|
2500
2654
|
}
|
|
@@ -2503,7 +2657,7 @@ class jr {
|
|
|
2503
2657
|
this.subscriptions = [];
|
|
2504
2658
|
}
|
|
2505
2659
|
add(e) {
|
|
2506
|
-
return Or(this.subscriptions, e), () =>
|
|
2660
|
+
return Or(this.subscriptions, e), () => wn(this.subscriptions, e);
|
|
2507
2661
|
}
|
|
2508
2662
|
notify(e, n, r) {
|
|
2509
2663
|
const o = this.subscriptions.length;
|
|
@@ -2595,7 +2749,7 @@ class Ph {
|
|
|
2595
2749
|
this.events[e] || (this.events[e] = new jr());
|
|
2596
2750
|
const r = this.events[e].add(n);
|
|
2597
2751
|
return e === "change" ? () => {
|
|
2598
|
-
r(),
|
|
2752
|
+
r(), L.read(() => {
|
|
2599
2753
|
this.events.change.getSize() || this.stop();
|
|
2600
2754
|
});
|
|
2601
2755
|
} : r;
|
|
@@ -2717,11 +2871,11 @@ class Ph {
|
|
|
2717
2871
|
this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
2718
2872
|
}
|
|
2719
2873
|
}
|
|
2720
|
-
function
|
|
2874
|
+
function re(t, e) {
|
|
2721
2875
|
return new Ph(t, e);
|
|
2722
2876
|
}
|
|
2723
2877
|
function Ch(t, e, n) {
|
|
2724
|
-
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e,
|
|
2878
|
+
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, re(n));
|
|
2725
2879
|
}
|
|
2726
2880
|
function Ah(t, e) {
|
|
2727
2881
|
const n = _e(t, e);
|
|
@@ -2744,50 +2898,50 @@ function Zn(t, e) {
|
|
|
2744
2898
|
t.addValue("willChange", r), r.add(e);
|
|
2745
2899
|
}
|
|
2746
2900
|
}
|
|
2747
|
-
function
|
|
2901
|
+
function zi(t) {
|
|
2748
2902
|
return t.props[Pi];
|
|
2749
2903
|
}
|
|
2750
|
-
const
|
|
2904
|
+
const Wi = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Rh = 1e-7, Vh = 12;
|
|
2751
2905
|
function Dh(t, e, n, r, o) {
|
|
2752
2906
|
let i, s, a = 0;
|
|
2753
2907
|
do
|
|
2754
|
-
s = e + (n - e) / 2, i =
|
|
2908
|
+
s = e + (n - e) / 2, i = Wi(s, r, o) - t, i > 0 ? n = s : e = s;
|
|
2755
2909
|
while (Math.abs(i) > Rh && ++a < Vh);
|
|
2756
2910
|
return s;
|
|
2757
2911
|
}
|
|
2758
|
-
function
|
|
2912
|
+
function ze(t, e, n, r) {
|
|
2759
2913
|
if (t === e && n === r)
|
|
2760
2914
|
return st;
|
|
2761
2915
|
const o = (i) => Dh(i, 0, 1, t, n);
|
|
2762
|
-
return (i) => i === 0 || i === 1 ? i :
|
|
2916
|
+
return (i) => i === 0 || i === 1 ? i : Wi(o(i), e, r);
|
|
2763
2917
|
}
|
|
2764
|
-
const
|
|
2918
|
+
const $i = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Hi = (t) => (e) => 1 - t(1 - e), Ui = /* @__PURE__ */ ze(0.33, 1.53, 0.69, 0.99), Nr = /* @__PURE__ */ Hi(Ui), Gi = /* @__PURE__ */ $i(Nr), Ki = (t) => (t *= 2) < 1 ? 0.5 * Nr(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), zr = (t) => 1 - Math.sin(Math.acos(t)), Yi = Hi(zr), Xi = $i(zr), qi = (t) => /^0[^.\s]+$/u.test(t);
|
|
2765
2919
|
function Eh(t) {
|
|
2766
2920
|
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || qi(t) : !0;
|
|
2767
2921
|
}
|
|
2768
|
-
const ve = (t) => Math.round(t * 1e5) / 1e5,
|
|
2922
|
+
const ve = (t) => Math.round(t * 1e5) / 1e5, Wr = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
2769
2923
|
function Mh(t) {
|
|
2770
2924
|
return t == null;
|
|
2771
2925
|
}
|
|
2772
|
-
const
|
|
2926
|
+
const Fh = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, $r = (t, e) => (n) => !!(typeof n == "string" && Fh.test(n) && n.startsWith(t) || e && !Mh(n) && Object.prototype.hasOwnProperty.call(n, e)), Zi = (t, e, n) => (r) => {
|
|
2773
2927
|
if (typeof r != "string")
|
|
2774
2928
|
return r;
|
|
2775
|
-
const [o, i, s, a] = r.match(
|
|
2929
|
+
const [o, i, s, a] = r.match(Wr);
|
|
2776
2930
|
return {
|
|
2777
2931
|
[t]: parseFloat(o),
|
|
2778
2932
|
[e]: parseFloat(i),
|
|
2779
2933
|
[n]: parseFloat(s),
|
|
2780
2934
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
2781
2935
|
};
|
|
2782
|
-
},
|
|
2783
|
-
...
|
|
2784
|
-
transform: (t) => Math.round(
|
|
2785
|
-
},
|
|
2786
|
-
test: /* @__PURE__ */
|
|
2936
|
+
}, Lh = (t) => Ct(0, 255, t), Ln = {
|
|
2937
|
+
...ce,
|
|
2938
|
+
transform: (t) => Math.round(Lh(t))
|
|
2939
|
+
}, zt = {
|
|
2940
|
+
test: /* @__PURE__ */ $r("rgb", "red"),
|
|
2787
2941
|
parse: /* @__PURE__ */ Zi("red", "green", "blue"),
|
|
2788
|
-
transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" +
|
|
2942
|
+
transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" + Ln.transform(t) + ", " + Ln.transform(e) + ", " + Ln.transform(n) + ", " + ve(Ae.transform(r)) + ")"
|
|
2789
2943
|
};
|
|
2790
|
-
function
|
|
2944
|
+
function Ih(t) {
|
|
2791
2945
|
let e = "", n = "", r = "", o = "";
|
|
2792
2946
|
return t.length > 5 ? (e = t.substring(1, 3), n = t.substring(3, 5), r = t.substring(5, 7), o = t.substring(7, 9)) : (e = t.substring(1, 2), n = t.substring(2, 3), r = t.substring(3, 4), o = t.substring(4, 5), e += e, n += n, r += r, o += o), {
|
|
2793
2947
|
red: parseInt(e, 16),
|
|
@@ -2797,23 +2951,23 @@ function Bh(t) {
|
|
|
2797
2951
|
};
|
|
2798
2952
|
}
|
|
2799
2953
|
const Jn = {
|
|
2800
|
-
test: /* @__PURE__ */
|
|
2801
|
-
parse:
|
|
2802
|
-
transform:
|
|
2803
|
-
},
|
|
2804
|
-
test: /* @__PURE__ */
|
|
2954
|
+
test: /* @__PURE__ */ $r("#"),
|
|
2955
|
+
parse: Ih,
|
|
2956
|
+
transform: zt.transform
|
|
2957
|
+
}, Zt = {
|
|
2958
|
+
test: /* @__PURE__ */ $r("hsl", "hue"),
|
|
2805
2959
|
parse: /* @__PURE__ */ Zi("hue", "saturation", "lightness"),
|
|
2806
2960
|
transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + ft.transform(ve(e)) + ", " + ft.transform(ve(n)) + ", " + ve(Ae.transform(r)) + ")"
|
|
2807
2961
|
}, Z = {
|
|
2808
|
-
test: (t) =>
|
|
2809
|
-
parse: (t) =>
|
|
2810
|
-
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ?
|
|
2811
|
-
},
|
|
2962
|
+
test: (t) => zt.test(t) || Jn.test(t) || Zt.test(t),
|
|
2963
|
+
parse: (t) => zt.test(t) ? zt.parse(t) : Zt.test(t) ? Zt.parse(t) : Jn.parse(t),
|
|
2964
|
+
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? zt.transform(t) : Zt.transform(t)
|
|
2965
|
+
}, Bh = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
2812
2966
|
function Oh(t) {
|
|
2813
2967
|
var e, n;
|
|
2814
|
-
return isNaN(t) && typeof t == "string" && (((e = t.match(
|
|
2968
|
+
return isNaN(t) && typeof t == "string" && (((e = t.match(Wr)) == null ? void 0 : e.length) || 0) + (((n = t.match(Bh)) == null ? void 0 : n.length) || 0) > 0;
|
|
2815
2969
|
}
|
|
2816
|
-
const Ji = "number", Qi = "color", jh = "var", Nh = "var(", Vo = "${}",
|
|
2970
|
+
const Ji = "number", Qi = "color", jh = "var", Nh = "var(", Vo = "${}", zh = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
2817
2971
|
function Re(t) {
|
|
2818
2972
|
const e = t.toString(), n = [], r = {
|
|
2819
2973
|
color: [],
|
|
@@ -2821,7 +2975,7 @@ function Re(t) {
|
|
|
2821
2975
|
var: []
|
|
2822
2976
|
}, o = [];
|
|
2823
2977
|
let i = 0;
|
|
2824
|
-
const a = e.replace(
|
|
2978
|
+
const a = e.replace(zh, (l) => (Z.test(l) ? (r.color.push(i), o.push(Qi), n.push(Z.parse(l))) : l.startsWith(Nh) ? (r.var.push(i), o.push(jh), n.push(l)) : (r.number.push(i), o.push(Ji), n.push(parseFloat(l))), ++i, Vo)).split(Vo);
|
|
2825
2979
|
return { values: n, split: a, indexes: r, types: o };
|
|
2826
2980
|
}
|
|
2827
2981
|
function ta(t) {
|
|
@@ -2839,22 +2993,22 @@ function ea(t) {
|
|
|
2839
2993
|
return i;
|
|
2840
2994
|
};
|
|
2841
2995
|
}
|
|
2842
|
-
const
|
|
2843
|
-
function
|
|
2996
|
+
const Wh = (t) => typeof t == "number" ? 0 : t;
|
|
2997
|
+
function $h(t) {
|
|
2844
2998
|
const e = ta(t);
|
|
2845
|
-
return ea(t)(e.map(
|
|
2999
|
+
return ea(t)(e.map(Wh));
|
|
2846
3000
|
}
|
|
2847
3001
|
const Mt = {
|
|
2848
3002
|
test: Oh,
|
|
2849
3003
|
parse: ta,
|
|
2850
3004
|
createTransformer: ea,
|
|
2851
|
-
getAnimatableNone:
|
|
3005
|
+
getAnimatableNone: $h
|
|
2852
3006
|
}, Hh = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
2853
3007
|
function Uh(t) {
|
|
2854
3008
|
const [e, n] = t.slice(0, -1).split("(");
|
|
2855
3009
|
if (e === "drop-shadow")
|
|
2856
3010
|
return t;
|
|
2857
|
-
const [r] = n.match(
|
|
3011
|
+
const [r] = n.match(Wr) || [];
|
|
2858
3012
|
if (!r)
|
|
2859
3013
|
return t;
|
|
2860
3014
|
const o = n.replace(r, "");
|
|
@@ -2899,8 +3053,8 @@ function Xh(t, e, n) {
|
|
|
2899
3053
|
for (const i of e)
|
|
2900
3054
|
t[i] = ra(n, o);
|
|
2901
3055
|
}
|
|
2902
|
-
const
|
|
2903
|
-
const e =
|
|
3056
|
+
const Wt = (t) => t * 180 / Math.PI, tr = (t) => {
|
|
3057
|
+
const e = Wt(Math.atan2(t[1], t[0]));
|
|
2904
3058
|
return er(e);
|
|
2905
3059
|
}, qh = {
|
|
2906
3060
|
x: 4,
|
|
@@ -2912,8 +3066,8 @@ const zt = (t) => t * 180 / Math.PI, tr = (t) => {
|
|
|
2912
3066
|
scale: (t) => (Math.abs(t[0]) + Math.abs(t[3])) / 2,
|
|
2913
3067
|
rotate: tr,
|
|
2914
3068
|
rotateZ: tr,
|
|
2915
|
-
skewX: (t) =>
|
|
2916
|
-
skewY: (t) =>
|
|
3069
|
+
skewX: (t) => Wt(Math.atan(t[1])),
|
|
3070
|
+
skewY: (t) => Wt(Math.atan(t[2])),
|
|
2917
3071
|
skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
|
|
2918
3072
|
}, er = (t) => (t = t % 360, t < 0 && (t += 360), t), Do = tr, Eo = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Mo = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), Zh = {
|
|
2919
3073
|
x: 12,
|
|
@@ -2925,20 +3079,20 @@ const zt = (t) => t * 180 / Math.PI, tr = (t) => {
|
|
|
2925
3079
|
scaleX: Eo,
|
|
2926
3080
|
scaleY: Mo,
|
|
2927
3081
|
scale: (t) => (Eo(t) + Mo(t)) / 2,
|
|
2928
|
-
rotateX: (t) => er(
|
|
2929
|
-
rotateY: (t) => er(
|
|
3082
|
+
rotateX: (t) => er(Wt(Math.atan2(t[6], t[5]))),
|
|
3083
|
+
rotateY: (t) => er(Wt(Math.atan2(-t[2], t[0]))),
|
|
2930
3084
|
rotateZ: Do,
|
|
2931
3085
|
rotate: Do,
|
|
2932
|
-
skewX: (t) =>
|
|
2933
|
-
skewY: (t) =>
|
|
3086
|
+
skewX: (t) => Wt(Math.atan(t[4])),
|
|
3087
|
+
skewY: (t) => Wt(Math.atan(t[1])),
|
|
2934
3088
|
skew: (t) => (Math.abs(t[1]) + Math.abs(t[4])) / 2
|
|
2935
3089
|
};
|
|
2936
|
-
function
|
|
3090
|
+
function Fo(t) {
|
|
2937
3091
|
return t.includes("scale") ? 1 : 0;
|
|
2938
3092
|
}
|
|
2939
3093
|
function nr(t, e) {
|
|
2940
3094
|
if (!t || t === "none")
|
|
2941
|
-
return
|
|
3095
|
+
return Fo(e);
|
|
2942
3096
|
const n = t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
|
|
2943
3097
|
let r, o;
|
|
2944
3098
|
if (n)
|
|
@@ -2948,7 +3102,7 @@ function nr(t, e) {
|
|
|
2948
3102
|
r = qh, o = a;
|
|
2949
3103
|
}
|
|
2950
3104
|
if (!o)
|
|
2951
|
-
return
|
|
3105
|
+
return Fo(e);
|
|
2952
3106
|
const i = r[e], s = o[1].split(",").map(Qh);
|
|
2953
3107
|
return typeof i == "function" ? i(s) : s[i];
|
|
2954
3108
|
}
|
|
@@ -2959,7 +3113,7 @@ const Jh = (t, e) => {
|
|
|
2959
3113
|
function Qh(t) {
|
|
2960
3114
|
return parseFloat(t.trim());
|
|
2961
3115
|
}
|
|
2962
|
-
const
|
|
3116
|
+
const Lo = (t) => t === ce || t === T, tf = /* @__PURE__ */ new Set(["x", "y", "z"]), ef = le.filter((t) => !tf.has(t));
|
|
2963
3117
|
function nf(t) {
|
|
2964
3118
|
const e = [];
|
|
2965
3119
|
return ef.forEach((n) => {
|
|
@@ -2967,7 +3121,7 @@ function nf(t) {
|
|
|
2967
3121
|
r !== void 0 && (e.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
|
|
2968
3122
|
}), e;
|
|
2969
3123
|
}
|
|
2970
|
-
const
|
|
3124
|
+
const oe = {
|
|
2971
3125
|
// Dimensions
|
|
2972
3126
|
width: ({ x: t }, { paddingLeft: e = "0", paddingRight: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
|
|
2973
3127
|
height: ({ y: t }, { paddingTop: e = "0", paddingBottom: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
|
|
@@ -2979,13 +3133,13 @@ const re = {
|
|
|
2979
3133
|
x: (t, { transform: e }) => nr(e, "x"),
|
|
2980
3134
|
y: (t, { transform: e }) => nr(e, "y")
|
|
2981
3135
|
};
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
const
|
|
3136
|
+
oe.translateX = oe.x;
|
|
3137
|
+
oe.translateY = oe.y;
|
|
3138
|
+
const $t = /* @__PURE__ */ new Set();
|
|
2985
3139
|
let rr = !1, or = !1;
|
|
2986
3140
|
function oa() {
|
|
2987
3141
|
if (or) {
|
|
2988
|
-
const t = Array.from(
|
|
3142
|
+
const t = Array.from($t).filter((r) => r.needsMeasurement), e = new Set(t.map((r) => r.element)), n = /* @__PURE__ */ new Map();
|
|
2989
3143
|
e.forEach((r) => {
|
|
2990
3144
|
const o = nf(r);
|
|
2991
3145
|
o.length && (n.set(r, o), r.render());
|
|
@@ -3000,10 +3154,10 @@ function oa() {
|
|
|
3000
3154
|
r.suspendedScrollY !== void 0 && window.scrollTo(0, r.suspendedScrollY);
|
|
3001
3155
|
});
|
|
3002
3156
|
}
|
|
3003
|
-
or = !1, rr = !1,
|
|
3157
|
+
or = !1, rr = !1, $t.forEach((t) => t.complete()), $t.clear();
|
|
3004
3158
|
}
|
|
3005
3159
|
function sa() {
|
|
3006
|
-
|
|
3160
|
+
$t.forEach((t) => {
|
|
3007
3161
|
t.readKeyframes(), t.needsMeasurement && (or = !0);
|
|
3008
3162
|
});
|
|
3009
3163
|
}
|
|
@@ -3015,7 +3169,7 @@ class Hr {
|
|
|
3015
3169
|
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = r, this.motionValue = o, this.element = i, this.isAsync = s;
|
|
3016
3170
|
}
|
|
3017
3171
|
scheduleResolve() {
|
|
3018
|
-
this.isScheduled = !0, this.isAsync ? (
|
|
3172
|
+
this.isScheduled = !0, this.isAsync ? ($t.add(this), rr || (rr = !0, L.read(sa), L.resolveKeyframes(oa))) : (this.readKeyframes(), this.complete());
|
|
3019
3173
|
}
|
|
3020
3174
|
readKeyframes() {
|
|
3021
3175
|
const { unresolvedKeyframes: e, name: n, element: r, motionValue: o } = this;
|
|
@@ -3042,10 +3196,10 @@ class Hr {
|
|
|
3042
3196
|
measureEndState() {
|
|
3043
3197
|
}
|
|
3044
3198
|
complete() {
|
|
3045
|
-
this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe),
|
|
3199
|
+
this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe), $t.delete(this);
|
|
3046
3200
|
}
|
|
3047
3201
|
cancel() {
|
|
3048
|
-
this.isComplete || (this.isScheduled = !1,
|
|
3202
|
+
this.isComplete || (this.isScheduled = !1, $t.delete(this));
|
|
3049
3203
|
}
|
|
3050
3204
|
resume() {
|
|
3051
3205
|
this.isComplete || this.scheduleResolve();
|
|
@@ -3078,7 +3232,7 @@ function aa(t, e, n = 1) {
|
|
|
3078
3232
|
const la = (t) => (e) => e.test(t), lf = {
|
|
3079
3233
|
test: (t) => t === "auto",
|
|
3080
3234
|
parse: (t) => t
|
|
3081
|
-
}, ca = [
|
|
3235
|
+
}, ca = [ce, T, ft, Dt, th, Qd, lf], Io = (t) => ca.find(la(t));
|
|
3082
3236
|
class ua extends Hr {
|
|
3083
3237
|
constructor(e, n, r, o, i) {
|
|
3084
3238
|
super(e, n, r, o, i, !0);
|
|
@@ -3097,9 +3251,9 @@ class ua extends Hr {
|
|
|
3097
3251
|
}
|
|
3098
3252
|
if (this.resolveNoneKeyframes(), !ji.has(r) || e.length !== 2)
|
|
3099
3253
|
return;
|
|
3100
|
-
const [o, i] = e, s =
|
|
3254
|
+
const [o, i] = e, s = Io(o), a = Io(i);
|
|
3101
3255
|
if (s !== a)
|
|
3102
|
-
if (
|
|
3256
|
+
if (Lo(s) && Lo(a))
|
|
3103
3257
|
for (let l = 0; l < e.length; l++) {
|
|
3104
3258
|
const u = e[l];
|
|
3105
3259
|
typeof u == "string" && (e[l] = parseFloat(u));
|
|
@@ -3117,7 +3271,7 @@ class ua extends Hr {
|
|
|
3117
3271
|
const { element: e, unresolvedKeyframes: n, name: r } = this;
|
|
3118
3272
|
if (!e || !e.current)
|
|
3119
3273
|
return;
|
|
3120
|
-
r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin =
|
|
3274
|
+
r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = oe[r](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
|
|
3121
3275
|
const o = n[n.length - 1];
|
|
3122
3276
|
o !== void 0 && e.getValue(r, o).jump(o, !1);
|
|
3123
3277
|
}
|
|
@@ -3129,15 +3283,15 @@ class ua extends Hr {
|
|
|
3129
3283
|
const o = e.getValue(n);
|
|
3130
3284
|
o && o.jump(this.measuredOrigin, !1);
|
|
3131
3285
|
const i = r.length - 1, s = r[i];
|
|
3132
|
-
r[i] =
|
|
3286
|
+
r[i] = oe[n](e.measureViewportBox(), window.getComputedStyle(e.current)), s !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = s), (a = this.removedTransforms) != null && a.length && this.removedTransforms.forEach(([l, u]) => {
|
|
3133
3287
|
e.getValue(l).set(u);
|
|
3134
3288
|
}), this.resolveNoneKeyframes();
|
|
3135
3289
|
}
|
|
3136
3290
|
}
|
|
3137
|
-
const
|
|
3291
|
+
const Bo = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
3138
3292
|
(Mt.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
3139
3293
|
!t.startsWith("url("));
|
|
3140
|
-
function
|
|
3294
|
+
function kn(t) {
|
|
3141
3295
|
return typeof t == "function" && "applyToOptions" in t;
|
|
3142
3296
|
}
|
|
3143
3297
|
function cf(t) {
|
|
@@ -3154,8 +3308,8 @@ function uf(t, e, n, r) {
|
|
|
3154
3308
|
return !1;
|
|
3155
3309
|
if (e === "display" || e === "visibility")
|
|
3156
3310
|
return !0;
|
|
3157
|
-
const i = t[t.length - 1], s =
|
|
3158
|
-
return
|
|
3311
|
+
const i = t[t.length - 1], s = Bo(o, e), a = Bo(i, e);
|
|
3312
|
+
return ae(s === a, `You are trying to animate ${e} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`), !s || !a ? !1 : cf(t) || (n === "spring" || kn(n)) && r;
|
|
3159
3313
|
}
|
|
3160
3314
|
const df = (t) => t !== null;
|
|
3161
3315
|
function Tn(t, { repeat: e, repeatType: n = "loop" }, r) {
|
|
@@ -3238,7 +3392,7 @@ class da {
|
|
|
3238
3392
|
}
|
|
3239
3393
|
}
|
|
3240
3394
|
const j = (t, e, n) => t + (e - t) * n;
|
|
3241
|
-
function
|
|
3395
|
+
function In(t, e, n) {
|
|
3242
3396
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
|
|
3243
3397
|
}
|
|
3244
3398
|
function ff({ hue: t, saturation: e, lightness: n, alpha: r }) {
|
|
@@ -3248,7 +3402,7 @@ function ff({ hue: t, saturation: e, lightness: n, alpha: r }) {
|
|
|
3248
3402
|
o = i = s = n;
|
|
3249
3403
|
else {
|
|
3250
3404
|
const a = n < 0.5 ? n * (1 + e) : n + e - n * e, l = 2 * n - a;
|
|
3251
|
-
o =
|
|
3405
|
+
o = In(l, a, t + 1 / 3), i = In(l, a, t), s = In(l, a, t - 1 / 3);
|
|
3252
3406
|
}
|
|
3253
3407
|
return {
|
|
3254
3408
|
red: Math.round(o * 255),
|
|
@@ -3260,24 +3414,24 @@ function ff({ hue: t, saturation: e, lightness: n, alpha: r }) {
|
|
|
3260
3414
|
function an(t, e) {
|
|
3261
3415
|
return (n) => n > 0 ? e : t;
|
|
3262
3416
|
}
|
|
3263
|
-
const
|
|
3417
|
+
const Bn = (t, e, n) => {
|
|
3264
3418
|
const r = t * t, o = n * (e * e - r) + r;
|
|
3265
3419
|
return o < 0 ? 0 : Math.sqrt(o);
|
|
3266
|
-
}, mf = [Jn,
|
|
3420
|
+
}, mf = [Jn, zt, Zt], pf = (t) => mf.find((e) => e.test(t));
|
|
3267
3421
|
function Oo(t) {
|
|
3268
3422
|
const e = pf(t);
|
|
3269
|
-
if (
|
|
3423
|
+
if (ae(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
3270
3424
|
return !1;
|
|
3271
3425
|
let n = e.parse(t);
|
|
3272
|
-
return e ===
|
|
3426
|
+
return e === Zt && (n = ff(n)), n;
|
|
3273
3427
|
}
|
|
3274
3428
|
const jo = (t, e) => {
|
|
3275
3429
|
const n = Oo(t), r = Oo(e);
|
|
3276
3430
|
if (!n || !r)
|
|
3277
3431
|
return an(t, e);
|
|
3278
3432
|
const o = { ...n };
|
|
3279
|
-
return (i) => (o.red =
|
|
3280
|
-
}, gf = (t, e) => (n) => e(t(n)),
|
|
3433
|
+
return (i) => (o.red = Bn(n.red, r.red, i), o.green = Bn(n.green, r.green, i), o.blue = Bn(n.blue, r.blue, i), o.alpha = j(n.alpha, r.alpha, i), zt.transform(o));
|
|
3434
|
+
}, gf = (t, e) => (n) => e(t(n)), We = (...t) => t.reduce(gf), sr = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
3281
3435
|
function yf(t, e) {
|
|
3282
3436
|
return sr.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
|
3283
3437
|
}
|
|
@@ -3285,7 +3439,7 @@ function bf(t, e) {
|
|
|
3285
3439
|
return (n) => j(t, e, n);
|
|
3286
3440
|
}
|
|
3287
3441
|
function Ur(t) {
|
|
3288
|
-
return typeof t == "number" ? bf : typeof t == "string" ? Rr(t) ? an : Z.test(t) ? jo :
|
|
3442
|
+
return typeof t == "number" ? bf : typeof t == "string" ? Rr(t) ? an : Z.test(t) ? jo : Sf : Array.isArray(t) ? ha : typeof t == "object" ? Z.test(t) ? jo : vf : an;
|
|
3289
3443
|
}
|
|
3290
3444
|
function ha(t, e) {
|
|
3291
3445
|
const n = [...t], r = n.length, o = t.map((i, s) => Ur(i)(i, e[s]));
|
|
@@ -3314,19 +3468,19 @@ function xf(t, e) {
|
|
|
3314
3468
|
}
|
|
3315
3469
|
return n;
|
|
3316
3470
|
}
|
|
3317
|
-
const
|
|
3471
|
+
const Sf = (t, e) => {
|
|
3318
3472
|
const n = Mt.createTransformer(e), r = Re(t), o = Re(e);
|
|
3319
|
-
return r.indexes.var.length === o.indexes.var.length && r.indexes.color.length === o.indexes.color.length && r.indexes.number.length >= o.indexes.number.length ? sr.has(t) && !o.values.length || sr.has(e) && !r.values.length ? yf(t, e) :
|
|
3473
|
+
return r.indexes.var.length === o.indexes.var.length && r.indexes.color.length === o.indexes.color.length && r.indexes.number.length >= o.indexes.number.length ? sr.has(t) && !o.values.length || sr.has(e) && !r.values.length ? yf(t, e) : We(ha(xf(r, o), o.values), n) : (ae(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), an(t, e));
|
|
3320
3474
|
};
|
|
3321
3475
|
function fa(t, e, n) {
|
|
3322
3476
|
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? j(t, e, n) : Ur(t)(t, e);
|
|
3323
3477
|
}
|
|
3324
|
-
const
|
|
3478
|
+
const wf = 5;
|
|
3325
3479
|
function ma(t, e, n) {
|
|
3326
|
-
const r = Math.max(e -
|
|
3480
|
+
const r = Math.max(e - wf, 0);
|
|
3327
3481
|
return Ni(n - t(r), e - r);
|
|
3328
3482
|
}
|
|
3329
|
-
const
|
|
3483
|
+
const W = {
|
|
3330
3484
|
// Default spring physics
|
|
3331
3485
|
stiffness: 100,
|
|
3332
3486
|
damping: 10,
|
|
@@ -3355,11 +3509,11 @@ const z = {
|
|
|
3355
3509
|
minDamping: 0.05,
|
|
3356
3510
|
maxDamping: 1
|
|
3357
3511
|
}, it = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, pt = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3, No = 1e-3;
|
|
3358
|
-
function
|
|
3512
|
+
function kf({ duration: t = W.duration, bounce: e = W.bounce, velocity: n = W.velocity, mass: r = W.mass }) {
|
|
3359
3513
|
let o, i;
|
|
3360
|
-
|
|
3514
|
+
ae(t <= /* @__PURE__ */ it(W.maxDuration), "Spring duration must be 10 seconds or less");
|
|
3361
3515
|
let s = 1 - e;
|
|
3362
|
-
s = Ct(
|
|
3516
|
+
s = Ct(W.minDamping, W.maxDamping, s), t = Ct(W.minDuration, W.maxDuration, /* @__PURE__ */ pt(t)), s < 1 ? (o = (u) => {
|
|
3363
3517
|
const c = u * s, d = c * t, h = c - n, f = ir(u, s), m = Math.exp(-d);
|
|
3364
3518
|
return No - h / f * m;
|
|
3365
3519
|
}, i = (u) => {
|
|
@@ -3375,8 +3529,8 @@ function Sf({ duration: t = z.duration, bounce: e = z.bounce, velocity: n = z.ve
|
|
|
3375
3529
|
const a = 5 / t, l = Pf(o, i, a);
|
|
3376
3530
|
if (t = /* @__PURE__ */ it(t), isNaN(l))
|
|
3377
3531
|
return {
|
|
3378
|
-
stiffness:
|
|
3379
|
-
damping:
|
|
3532
|
+
stiffness: W.stiffness,
|
|
3533
|
+
damping: W.damping,
|
|
3380
3534
|
duration: t
|
|
3381
3535
|
};
|
|
3382
3536
|
{
|
|
@@ -3442,38 +3596,38 @@ const Ve = /* @__PURE__ */ Af(() => {
|
|
|
3442
3596
|
r += t(i / (o - 1)) + ", ";
|
|
3443
3597
|
return `linear(${r.substring(0, r.length - 2)})`;
|
|
3444
3598
|
}, _f = ["duration", "bounce"], Rf = ["stiffness", "damping", "mass"];
|
|
3445
|
-
function
|
|
3599
|
+
function zo(t, e) {
|
|
3446
3600
|
return e.some((n) => t[n] !== void 0);
|
|
3447
3601
|
}
|
|
3448
3602
|
function Vf(t) {
|
|
3449
3603
|
let e = {
|
|
3450
|
-
velocity:
|
|
3451
|
-
stiffness:
|
|
3452
|
-
damping:
|
|
3453
|
-
mass:
|
|
3604
|
+
velocity: W.velocity,
|
|
3605
|
+
stiffness: W.stiffness,
|
|
3606
|
+
damping: W.damping,
|
|
3607
|
+
mass: W.mass,
|
|
3454
3608
|
isResolvedFromDuration: !1,
|
|
3455
3609
|
...t
|
|
3456
3610
|
};
|
|
3457
|
-
if (
|
|
3611
|
+
if (!zo(t, Rf) && zo(t, _f))
|
|
3458
3612
|
if (t.visualDuration) {
|
|
3459
3613
|
const n = t.visualDuration, r = 2 * Math.PI / (n * 1.2), o = r * r, i = 2 * Ct(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(o);
|
|
3460
3614
|
e = {
|
|
3461
3615
|
...e,
|
|
3462
|
-
mass:
|
|
3616
|
+
mass: W.mass,
|
|
3463
3617
|
stiffness: o,
|
|
3464
3618
|
damping: i
|
|
3465
3619
|
};
|
|
3466
3620
|
} else {
|
|
3467
|
-
const n =
|
|
3621
|
+
const n = kf(t);
|
|
3468
3622
|
e = {
|
|
3469
3623
|
...e,
|
|
3470
3624
|
...n,
|
|
3471
|
-
mass:
|
|
3625
|
+
mass: W.mass
|
|
3472
3626
|
}, e.isResolvedFromDuration = !0;
|
|
3473
3627
|
}
|
|
3474
3628
|
return e;
|
|
3475
3629
|
}
|
|
3476
|
-
function De(t =
|
|
3630
|
+
function De(t = W.visualDuration, e = W.bounce) {
|
|
3477
3631
|
const n = typeof t != "object" ? {
|
|
3478
3632
|
visualDuration: t,
|
|
3479
3633
|
keyframes: [0, 1],
|
|
@@ -3484,40 +3638,40 @@ function De(t = z.visualDuration, e = z.bounce) {
|
|
|
3484
3638
|
...n,
|
|
3485
3639
|
velocity: -/* @__PURE__ */ pt(n.velocity || 0)
|
|
3486
3640
|
}), m = h || 0, g = u / (2 * Math.sqrt(l * c)), b = s - i, p = /* @__PURE__ */ pt(Math.sqrt(l / c)), v = Math.abs(b) < 5;
|
|
3487
|
-
r || (r = v ?
|
|
3488
|
-
let
|
|
3641
|
+
r || (r = v ? W.restSpeed.granular : W.restSpeed.default), o || (o = v ? W.restDelta.granular : W.restDelta.default);
|
|
3642
|
+
let S;
|
|
3489
3643
|
if (g < 1) {
|
|
3490
3644
|
const x = ir(p, g);
|
|
3491
|
-
|
|
3492
|
-
const C = Math.exp(-g * p *
|
|
3493
|
-
return s - C * ((m + g * p * b) / x * Math.sin(x *
|
|
3645
|
+
S = (w) => {
|
|
3646
|
+
const C = Math.exp(-g * p * w);
|
|
3647
|
+
return s - C * ((m + g * p * b) / x * Math.sin(x * w) + b * Math.cos(x * w));
|
|
3494
3648
|
};
|
|
3495
3649
|
} else if (g === 1)
|
|
3496
|
-
|
|
3650
|
+
S = (x) => s - Math.exp(-p * x) * (b + (m + p * b) * x);
|
|
3497
3651
|
else {
|
|
3498
3652
|
const x = p * Math.sqrt(g * g - 1);
|
|
3499
|
-
|
|
3500
|
-
const C = Math.exp(-g * p *
|
|
3501
|
-
return s - C * ((m + g * p * b) * Math.sinh(
|
|
3653
|
+
S = (w) => {
|
|
3654
|
+
const C = Math.exp(-g * p * w), k = Math.min(x * w, 300);
|
|
3655
|
+
return s - C * ((m + g * p * b) * Math.sinh(k) + x * b * Math.cosh(k)) / x;
|
|
3502
3656
|
};
|
|
3503
3657
|
}
|
|
3504
3658
|
const P = {
|
|
3505
3659
|
calculatedDuration: f && d || null,
|
|
3506
3660
|
next: (x) => {
|
|
3507
|
-
const
|
|
3661
|
+
const w = S(x);
|
|
3508
3662
|
if (f)
|
|
3509
3663
|
a.done = x >= d;
|
|
3510
3664
|
else {
|
|
3511
3665
|
let C = 0;
|
|
3512
|
-
g < 1 && (C = x === 0 ? /* @__PURE__ */ it(m) : ma(
|
|
3513
|
-
const
|
|
3514
|
-
a.done =
|
|
3666
|
+
g < 1 && (C = x === 0 ? /* @__PURE__ */ it(m) : ma(S, x, w));
|
|
3667
|
+
const k = Math.abs(C) <= r, A = Math.abs(s - w) <= o;
|
|
3668
|
+
a.done = k && A;
|
|
3515
3669
|
}
|
|
3516
|
-
return a.value = a.done ? s :
|
|
3670
|
+
return a.value = a.done ? s : w, a;
|
|
3517
3671
|
},
|
|
3518
3672
|
toString: () => {
|
|
3519
|
-
const x = Math.min(Gr(P), ln),
|
|
3520
|
-
return x + "ms " +
|
|
3673
|
+
const x = Math.min(Gr(P), ln), w = ga((C) => P.next(x * C).value, x, 30);
|
|
3674
|
+
return x + "ms " + w;
|
|
3521
3675
|
},
|
|
3522
3676
|
toTransition: () => {
|
|
3523
3677
|
}
|
|
@@ -3528,23 +3682,23 @@ De.applyToOptions = (t) => {
|
|
|
3528
3682
|
const e = pa(t, 100, De);
|
|
3529
3683
|
return t.ease = Ve() ? e.ease : "easeOut", t.duration = /* @__PURE__ */ it(e.duration), t.type = "keyframes", t;
|
|
3530
3684
|
};
|
|
3531
|
-
function
|
|
3685
|
+
function Wo({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: o = 10, bounceStiffness: i = 500, modifyTarget: s, min: a, max: l, restDelta: u = 0.5, restSpeed: c }) {
|
|
3532
3686
|
const d = t[0], h = {
|
|
3533
3687
|
done: !1,
|
|
3534
3688
|
value: d
|
|
3535
|
-
}, f = (
|
|
3689
|
+
}, f = (k) => a !== void 0 && k < a || l !== void 0 && k > l, m = (k) => a === void 0 ? l : l === void 0 || Math.abs(a - k) < Math.abs(l - k) ? a : l;
|
|
3536
3690
|
let g = n * e;
|
|
3537
3691
|
const b = d + g, p = s === void 0 ? b : s(b);
|
|
3538
3692
|
p !== b && (g = p - d);
|
|
3539
|
-
const v = (
|
|
3540
|
-
const A = v(
|
|
3693
|
+
const v = (k) => -g * Math.exp(-k / r), S = (k) => p + v(k), P = (k) => {
|
|
3694
|
+
const A = v(k), E = S(k);
|
|
3541
3695
|
h.done = Math.abs(A) <= u, h.value = h.done ? p : E;
|
|
3542
3696
|
};
|
|
3543
|
-
let x,
|
|
3544
|
-
const C = (
|
|
3545
|
-
f(h.value) && (x =
|
|
3697
|
+
let x, w;
|
|
3698
|
+
const C = (k) => {
|
|
3699
|
+
f(h.value) && (x = k, w = De({
|
|
3546
3700
|
keyframes: [h.value, m(h.value)],
|
|
3547
|
-
velocity: ma(
|
|
3701
|
+
velocity: ma(S, k, h.value),
|
|
3548
3702
|
// TODO: This should be passing * 1000
|
|
3549
3703
|
damping: o,
|
|
3550
3704
|
stiffness: i,
|
|
@@ -3554,18 +3708,18 @@ function zo({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
3554
3708
|
};
|
|
3555
3709
|
return C(0), {
|
|
3556
3710
|
calculatedDuration: null,
|
|
3557
|
-
next: (
|
|
3711
|
+
next: (k) => {
|
|
3558
3712
|
let A = !1;
|
|
3559
|
-
return !
|
|
3713
|
+
return !w && x === void 0 && (A = !0, P(k), C(k)), x !== void 0 && k >= x ? w.next(k - x) : (!A && P(k), h);
|
|
3560
3714
|
}
|
|
3561
3715
|
};
|
|
3562
3716
|
}
|
|
3563
|
-
const Df = /* @__PURE__ */
|
|
3717
|
+
const Df = /* @__PURE__ */ ze(0.42, 0, 1, 1), Ef = /* @__PURE__ */ ze(0, 0, 0.58, 1), ya = /* @__PURE__ */ ze(0.42, 0, 0.58, 1), ba = (t) => Array.isArray(t) && typeof t[0] != "number", Yr = (t) => Array.isArray(t) && typeof t[0] == "number", $o = {
|
|
3564
3718
|
linear: st,
|
|
3565
3719
|
easeIn: Df,
|
|
3566
3720
|
easeInOut: ya,
|
|
3567
3721
|
easeOut: Ef,
|
|
3568
|
-
circIn:
|
|
3722
|
+
circIn: zr,
|
|
3569
3723
|
circInOut: Xi,
|
|
3570
3724
|
circOut: Yi,
|
|
3571
3725
|
backIn: Nr,
|
|
@@ -3576,11 +3730,11 @@ const Df = /* @__PURE__ */ $e(0.42, 0, 1, 1), Ef = /* @__PURE__ */ $e(0, 0, 0.58
|
|
|
3576
3730
|
if (Yr(t)) {
|
|
3577
3731
|
bt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
|
3578
3732
|
const [e, n, r, o] = t;
|
|
3579
|
-
return
|
|
3733
|
+
return ze(e, n, r, o);
|
|
3580
3734
|
} else if (typeof t == "string")
|
|
3581
|
-
return bt(
|
|
3735
|
+
return bt($o[t] !== void 0, `Invalid easing type '${t}'`), $o[t];
|
|
3582
3736
|
return t;
|
|
3583
|
-
},
|
|
3737
|
+
}, se = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
|
3584
3738
|
const r = e - t;
|
|
3585
3739
|
return r === 0 ? 1 : (n - t) / r;
|
|
3586
3740
|
};
|
|
@@ -3590,7 +3744,7 @@ function Mf(t, e, n) {
|
|
|
3590
3744
|
let a = o(t[s], t[s + 1]);
|
|
3591
3745
|
if (e) {
|
|
3592
3746
|
const l = Array.isArray(e) ? e[s] || st : e;
|
|
3593
|
-
a =
|
|
3747
|
+
a = We(l, a);
|
|
3594
3748
|
}
|
|
3595
3749
|
r.push(a);
|
|
3596
3750
|
}
|
|
@@ -3611,7 +3765,7 @@ function va(t, e, { clamp: n = !0, ease: r, mixer: o } = {}) {
|
|
|
3611
3765
|
if (l > 1)
|
|
3612
3766
|
for (; d < t.length - 2 && !(c < t[d + 1]); d++)
|
|
3613
3767
|
;
|
|
3614
|
-
const h = /* @__PURE__ */
|
|
3768
|
+
const h = /* @__PURE__ */ se(t[d], t[d + 1], c);
|
|
3615
3769
|
return a[d](h);
|
|
3616
3770
|
};
|
|
3617
3771
|
return n ? (c) => u(Ct(t[0], t[i - 1], c)) : u;
|
|
@@ -3619,41 +3773,41 @@ function va(t, e, { clamp: n = !0, ease: r, mixer: o } = {}) {
|
|
|
3619
3773
|
function xa(t, e) {
|
|
3620
3774
|
const n = t[t.length - 1];
|
|
3621
3775
|
for (let r = 1; r <= e; r++) {
|
|
3622
|
-
const o = /* @__PURE__ */
|
|
3776
|
+
const o = /* @__PURE__ */ se(0, e, r);
|
|
3623
3777
|
t.push(j(n, 1, o));
|
|
3624
3778
|
}
|
|
3625
3779
|
}
|
|
3626
|
-
function
|
|
3780
|
+
function Sa(t) {
|
|
3627
3781
|
const e = [0];
|
|
3628
3782
|
return xa(e, t.length - 1), e;
|
|
3629
3783
|
}
|
|
3630
|
-
function
|
|
3784
|
+
function Ff(t, e) {
|
|
3631
3785
|
return t.map((n) => n * e);
|
|
3632
3786
|
}
|
|
3633
|
-
function
|
|
3787
|
+
function Lf(t, e) {
|
|
3634
3788
|
return t.map(() => e || ya).splice(0, t.length - 1);
|
|
3635
3789
|
}
|
|
3636
3790
|
function xe({ duration: t = 300, keyframes: e, times: n, ease: r = "easeInOut" }) {
|
|
3637
3791
|
const o = ba(r) ? r.map(Ho) : Ho(r), i = {
|
|
3638
3792
|
done: !1,
|
|
3639
3793
|
value: e[0]
|
|
3640
|
-
}, s =
|
|
3794
|
+
}, s = Ff(
|
|
3641
3795
|
// Only use the provided offsets if they're the correct length
|
|
3642
3796
|
// TODO Maybe we should warn here if there's a length mismatch
|
|
3643
|
-
n && n.length === e.length ? n :
|
|
3797
|
+
n && n.length === e.length ? n : Sa(e),
|
|
3644
3798
|
t
|
|
3645
3799
|
), a = va(s, e, {
|
|
3646
|
-
ease: Array.isArray(o) ? o :
|
|
3800
|
+
ease: Array.isArray(o) ? o : Lf(e, o)
|
|
3647
3801
|
});
|
|
3648
3802
|
return {
|
|
3649
3803
|
calculatedDuration: t,
|
|
3650
3804
|
next: (l) => (i.value = a(l), i.done = l >= t, i)
|
|
3651
3805
|
};
|
|
3652
3806
|
}
|
|
3653
|
-
const
|
|
3807
|
+
const If = (t) => {
|
|
3654
3808
|
const e = ({ timestamp: n }) => t(n);
|
|
3655
3809
|
return {
|
|
3656
|
-
start: () =>
|
|
3810
|
+
start: () => L.update(e, !0),
|
|
3657
3811
|
stop: () => Pt(e),
|
|
3658
3812
|
/**
|
|
3659
3813
|
* If we're processing this frame we can use the
|
|
@@ -3661,9 +3815,9 @@ const Bf = (t) => {
|
|
|
3661
3815
|
*/
|
|
3662
3816
|
now: () => Y.isProcessing ? Y.timestamp : mt.now()
|
|
3663
3817
|
};
|
|
3664
|
-
},
|
|
3665
|
-
decay:
|
|
3666
|
-
inertia:
|
|
3818
|
+
}, Bf = {
|
|
3819
|
+
decay: Wo,
|
|
3820
|
+
inertia: Wo,
|
|
3667
3821
|
tween: xe,
|
|
3668
3822
|
keyframes: xe,
|
|
3669
3823
|
spring: De
|
|
@@ -3684,9 +3838,9 @@ class Xr extends da {
|
|
|
3684
3838
|
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
3685
3839
|
}
|
|
3686
3840
|
initPlayback(e) {
|
|
3687
|
-
const { type: n = "keyframes", repeat: r = 0, repeatDelay: o = 0, repeatType: i, velocity: s = 0 } = this.options, a =
|
|
3841
|
+
const { type: n = "keyframes", repeat: r = 0, repeatDelay: o = 0, repeatType: i, velocity: s = 0 } = this.options, a = kn(n) ? n : Bf[n] || xe;
|
|
3688
3842
|
let l, u;
|
|
3689
|
-
process.env.NODE_ENV !== "production" && a !== xe && bt(e.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), a !== xe && typeof e[0] != "number" && (l =
|
|
3843
|
+
process.env.NODE_ENV !== "production" && a !== xe && bt(e.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), a !== xe && typeof e[0] != "number" && (l = We(Of, fa(e[0], e[1])), e = [0, 100]);
|
|
3690
3844
|
const c = a({ ...this.options, keyframes: e });
|
|
3691
3845
|
i === "mirror" && (u = a({
|
|
3692
3846
|
...this.options,
|
|
@@ -3710,8 +3864,8 @@ class Xr extends da {
|
|
|
3710
3864
|
tick(e, n = !1) {
|
|
3711
3865
|
const { resolved: r } = this;
|
|
3712
3866
|
if (!r) {
|
|
3713
|
-
const { keyframes:
|
|
3714
|
-
return { done: !0, value:
|
|
3867
|
+
const { keyframes: k } = this.options;
|
|
3868
|
+
return { done: !0, value: k[k.length - 1] };
|
|
3715
3869
|
}
|
|
3716
3870
|
const { finalKeyframe: o, generator: i, mirroredGenerator: s, mapPercentToKeyframes: a, keyframes: l, calculatedDuration: u, totalDuration: c, resolvedDuration: d } = r;
|
|
3717
3871
|
if (this.startTime === null)
|
|
@@ -3720,17 +3874,17 @@ class Xr extends da {
|
|
|
3720
3874
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - c / this.speed, this.startTime)), n ? this.currentTime = e : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(e - this.startTime) * this.speed;
|
|
3721
3875
|
const p = this.currentTime - h * (this.speed >= 0 ? 1 : -1), v = this.speed >= 0 ? p < 0 : p > c;
|
|
3722
3876
|
this.currentTime = Math.max(p, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = c);
|
|
3723
|
-
let
|
|
3877
|
+
let S = this.currentTime, P = i;
|
|
3724
3878
|
if (f) {
|
|
3725
|
-
const
|
|
3726
|
-
let A = Math.floor(
|
|
3727
|
-
!E &&
|
|
3879
|
+
const k = Math.min(this.currentTime, c) / d;
|
|
3880
|
+
let A = Math.floor(k), E = k % 1;
|
|
3881
|
+
!E && k >= 1 && (E = 1), E === 1 && A--, A = Math.min(A, f + 1), !!(A % 2) && (m === "reverse" ? (E = 1 - E, g && (E -= g / d)) : m === "mirror" && (P = s)), S = Ct(0, 1, E) * d;
|
|
3728
3882
|
}
|
|
3729
|
-
const x = v ? { done: !1, value: l[0] } : P.next(
|
|
3883
|
+
const x = v ? { done: !1, value: l[0] } : P.next(S);
|
|
3730
3884
|
a && (x.value = a(x.value));
|
|
3731
|
-
let { done:
|
|
3732
|
-
!v && u !== null && (
|
|
3733
|
-
const C = this.holdTime === null && (this.state === "finished" || this.state === "running" &&
|
|
3885
|
+
let { done: w } = x;
|
|
3886
|
+
!v && u !== null && (w = this.speed >= 0 ? this.currentTime >= c : this.currentTime <= 0);
|
|
3887
|
+
const C = this.holdTime === null && (this.state === "finished" || this.state === "running" && w);
|
|
3734
3888
|
return C && o !== void 0 && (x.value = Tn(l, this.options, o)), b && b(x.value), C && this.finish(), x;
|
|
3735
3889
|
}
|
|
3736
3890
|
get duration() {
|
|
@@ -3757,7 +3911,7 @@ class Xr extends da {
|
|
|
3757
3911
|
}
|
|
3758
3912
|
if (this.isStopped)
|
|
3759
3913
|
return;
|
|
3760
|
-
const { driver: e =
|
|
3914
|
+
const { driver: e = If, onPlay: n, startTime: r } = this.options;
|
|
3761
3915
|
this.driver || (this.driver = e((i) => this.tick(i))), n && n();
|
|
3762
3916
|
const o = this.driver.now();
|
|
3763
3917
|
this.holdTime !== null ? this.startTime = o - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = o) : this.startTime = r != null ? r : this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
|
|
@@ -3813,16 +3967,16 @@ const jf = /* @__PURE__ */ new Set([
|
|
|
3813
3967
|
backIn: /* @__PURE__ */ ge([0.31, 0.01, 0.66, -0.59]),
|
|
3814
3968
|
backOut: /* @__PURE__ */ ge([0.33, 1.53, 0.69, 0.99])
|
|
3815
3969
|
};
|
|
3816
|
-
function
|
|
3970
|
+
function wa(t, e) {
|
|
3817
3971
|
if (t)
|
|
3818
|
-
return typeof t == "function" && Ve() ? ga(t, e) : Yr(t) ? ge(t) : Array.isArray(t) ? t.map((n) =>
|
|
3972
|
+
return typeof t == "function" && Ve() ? ga(t, e) : Yr(t) ? ge(t) : Array.isArray(t) ? t.map((n) => wa(n, e) || ar.easeOut) : ar[t];
|
|
3819
3973
|
}
|
|
3820
|
-
function
|
|
3974
|
+
function zf(t, e, n, { delay: r = 0, duration: o = 300, repeat: i = 0, repeatType: s = "loop", ease: a = "easeInOut", times: l } = {}, u = void 0) {
|
|
3821
3975
|
const c = {
|
|
3822
3976
|
[e]: n
|
|
3823
3977
|
};
|
|
3824
3978
|
l && (c.offset = l);
|
|
3825
|
-
const d =
|
|
3979
|
+
const d = wa(a, o);
|
|
3826
3980
|
return Array.isArray(d) && (c.easing = d), t.animate(c, {
|
|
3827
3981
|
delay: r,
|
|
3828
3982
|
duration: o,
|
|
@@ -3836,12 +3990,12 @@ function $f(t, e, n, { delay: r = 0, duration: o = 300, repeat: i = 0, repeatTyp
|
|
|
3836
3990
|
function Uo(t, e) {
|
|
3837
3991
|
t.timeline = e, t.onfinish = null;
|
|
3838
3992
|
}
|
|
3839
|
-
function
|
|
3840
|
-
return !!(typeof t == "function" && Ve() || !t || typeof t == "string" && (t in ar || Ve()) || Yr(t) || Array.isArray(t) && t.every(
|
|
3993
|
+
function ka(t) {
|
|
3994
|
+
return !!(typeof t == "function" && Ve() || !t || typeof t == "string" && (t in ar || Ve()) || Yr(t) || Array.isArray(t) && t.every(ka));
|
|
3841
3995
|
}
|
|
3842
|
-
const cn = 10,
|
|
3843
|
-
function
|
|
3844
|
-
return
|
|
3996
|
+
const cn = 10, Wf = 2e4;
|
|
3997
|
+
function $f(t) {
|
|
3998
|
+
return kn(t.type) || t.type === "spring" || !ka(t.ease);
|
|
3845
3999
|
}
|
|
3846
4000
|
function Hf(t, e) {
|
|
3847
4001
|
const n = new Xr({
|
|
@@ -3854,7 +4008,7 @@ function Hf(t, e) {
|
|
|
3854
4008
|
let r = { done: !1, value: t[0] };
|
|
3855
4009
|
const o = [];
|
|
3856
4010
|
let i = 0;
|
|
3857
|
-
for (; !r.done && i <
|
|
4011
|
+
for (; !r.done && i < Wf; )
|
|
3858
4012
|
r = n.sample(i), o.push(r.value), i += cn;
|
|
3859
4013
|
return {
|
|
3860
4014
|
times: void 0,
|
|
@@ -3881,11 +4035,11 @@ class Go extends da {
|
|
|
3881
4035
|
let { duration: r = 300, times: o, ease: i, type: s, motionValue: a, name: l, startTime: u } = this.options;
|
|
3882
4036
|
if (!a.owner || !a.owner.current)
|
|
3883
4037
|
return !1;
|
|
3884
|
-
if (typeof i == "string" && Ve() && Uf(i) && (i = Ta[i]),
|
|
4038
|
+
if (typeof i == "string" && Ve() && Uf(i) && (i = Ta[i]), $f(this.options)) {
|
|
3885
4039
|
const { onComplete: d, onUpdate: h, motionValue: f, element: m, ...g } = this.options, b = Hf(e, g);
|
|
3886
4040
|
e = b.keyframes, e.length === 1 && (e[1] = e[0]), r = b.duration, o = b.times, i = b.ease, s = "keyframes";
|
|
3887
4041
|
}
|
|
3888
|
-
const c =
|
|
4042
|
+
const c = zf(a.owner.current, l, e, { ...this.options, duration: r, times: o, ease: i });
|
|
3889
4043
|
return c.startTime = u != null ? u : this.calcStartTime(), this.pendingTimeline ? (Uo(c, this.pendingTimeline), this.pendingTimeline = void 0) : c.onfinish = () => {
|
|
3890
4044
|
const { onComplete: d } = this.options;
|
|
3891
4045
|
a.set(Tn(e, this.options, n)), d && d(), this.cancel(), this.resolveFinishedPromise();
|
|
@@ -4157,7 +4311,7 @@ const Zr = (t, e, n, r = {}, o, i) => (s) => {
|
|
|
4157
4311
|
if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (c.duration = 0, c.delay === 0 && (d = !0)), c.allowFlatten = !a.type && !a.ease, d && !i && e.get() !== void 0) {
|
|
4158
4312
|
const h = Tn(c.keyframes, a);
|
|
4159
4313
|
if (h !== void 0)
|
|
4160
|
-
return
|
|
4314
|
+
return L.update(() => {
|
|
4161
4315
|
c.onUpdate(h), c.onComplete();
|
|
4162
4316
|
}), new Pa([]);
|
|
4163
4317
|
}
|
|
@@ -4182,9 +4336,9 @@ function Jr(t, e, { delay: n = 0, transitionOverride: r, type: o } = {}) {
|
|
|
4182
4336
|
};
|
|
4183
4337
|
let g = !1;
|
|
4184
4338
|
if (window.MotionHandoffAnimation) {
|
|
4185
|
-
const p =
|
|
4339
|
+
const p = zi(t);
|
|
4186
4340
|
if (p) {
|
|
4187
|
-
const v = window.MotionHandoffAnimation(p, d,
|
|
4341
|
+
const v = window.MotionHandoffAnimation(p, d, L);
|
|
4188
4342
|
v !== null && (m.startTime = v, g = !0);
|
|
4189
4343
|
}
|
|
4190
4344
|
}
|
|
@@ -4193,7 +4347,7 @@ function Jr(t, e, { delay: n = 0, transitionOverride: r, type: o } = {}) {
|
|
|
4193
4347
|
b && l.push(b);
|
|
4194
4348
|
}
|
|
4195
4349
|
return s && Promise.all(l).then(() => {
|
|
4196
|
-
|
|
4350
|
+
L.update(() => {
|
|
4197
4351
|
s && Ah(t, s);
|
|
4198
4352
|
});
|
|
4199
4353
|
}), l;
|
|
@@ -4289,38 +4443,38 @@ function lm(t) {
|
|
|
4289
4443
|
const { props: u } = t, c = Aa(t.parent) || {}, d = [], h = /* @__PURE__ */ new Set();
|
|
4290
4444
|
let f = {}, m = 1 / 0;
|
|
4291
4445
|
for (let b = 0; b < im; b++) {
|
|
4292
|
-
const p = sm[b], v = n[p],
|
|
4446
|
+
const p = sm[b], v = n[p], S = u[p] !== void 0 ? u[p] : c[p], P = Pe(S), x = p === l ? v.isActive : null;
|
|
4293
4447
|
x === !1 && (m = b);
|
|
4294
|
-
let
|
|
4295
|
-
if (
|
|
4448
|
+
let w = S === c[p] && S !== u[p] && P;
|
|
4449
|
+
if (w && r && t.manuallyAnimateOnMount && (w = !1), v.protectedKeys = { ...f }, // If it isn't active and hasn't *just* been set as inactive
|
|
4296
4450
|
!v.isActive && x === null || // If we didn't and don't have any defined prop for this animation type
|
|
4297
|
-
!
|
|
4298
|
-
xn(
|
|
4451
|
+
!S && !v.prevProp || // Or if the prop doesn't define an animation
|
|
4452
|
+
xn(S) || typeof S == "boolean")
|
|
4299
4453
|
continue;
|
|
4300
|
-
const C = cm(v.prevProp,
|
|
4301
|
-
let
|
|
4302
|
-
p === l && v.isActive && !
|
|
4454
|
+
const C = cm(v.prevProp, S);
|
|
4455
|
+
let k = C || // If we're making this variant active, we want to always make it active
|
|
4456
|
+
p === l && v.isActive && !w && P || // If we removed a higher-priority variant (i is in reverse order)
|
|
4303
4457
|
b > m && P, A = !1;
|
|
4304
|
-
const E = Array.isArray(
|
|
4458
|
+
const E = Array.isArray(S) ? S : [S];
|
|
4305
4459
|
let R = E.reduce(o(p), {});
|
|
4306
4460
|
x === !1 && (R = {});
|
|
4307
4461
|
const { prevResolvedValues: M = {} } = v, q = {
|
|
4308
4462
|
...M,
|
|
4309
4463
|
...R
|
|
4310
|
-
}, at = (
|
|
4311
|
-
|
|
4312
|
-
const
|
|
4313
|
-
|
|
4464
|
+
}, at = (I) => {
|
|
4465
|
+
k = !0, h.has(I) && (A = !0, h.delete(I)), v.needsAnimating[I] = !0;
|
|
4466
|
+
const z = t.getValue(I);
|
|
4467
|
+
z && (z.liveStyle = !1);
|
|
4314
4468
|
};
|
|
4315
|
-
for (const
|
|
4316
|
-
const
|
|
4317
|
-
if (f.hasOwnProperty(
|
|
4469
|
+
for (const I in q) {
|
|
4470
|
+
const z = R[I], Rt = M[I];
|
|
4471
|
+
if (f.hasOwnProperty(I))
|
|
4318
4472
|
continue;
|
|
4319
4473
|
let Vt = !1;
|
|
4320
|
-
qn(
|
|
4474
|
+
qn(z) && qn(Rt) ? Vt = !Ca(z, Rt) : Vt = z !== Rt, Vt ? z != null ? at(I) : h.add(I) : z !== void 0 && h.has(I) ? at(I) : v.protectedKeys[I] = !0;
|
|
4321
4475
|
}
|
|
4322
|
-
v.prevProp =
|
|
4323
|
-
animation:
|
|
4476
|
+
v.prevProp = S, v.prevResolvedValues = R, v.isActive && (f = { ...f, ...R }), r && t.blockInitialAnimation && (k = !1), k && (!(w && C) || A) && d.push(...E.map((I) => ({
|
|
4477
|
+
animation: I,
|
|
4324
4478
|
options: { type: p }
|
|
4325
4479
|
})));
|
|
4326
4480
|
}
|
|
@@ -4331,8 +4485,8 @@ function lm(t) {
|
|
|
4331
4485
|
p && p.transition && (b.transition = p.transition);
|
|
4332
4486
|
}
|
|
4333
4487
|
h.forEach((p) => {
|
|
4334
|
-
const v = t.getBaseTarget(p),
|
|
4335
|
-
|
|
4488
|
+
const v = t.getBaseTarget(p), S = t.getValue(p);
|
|
4489
|
+
S && (S.liveStyle = !0), b[p] = v != null ? v : null;
|
|
4336
4490
|
}), d.push({ animation: b });
|
|
4337
4491
|
}
|
|
4338
4492
|
let g = !!d.length;
|
|
@@ -4383,14 +4537,14 @@ function Ko() {
|
|
|
4383
4537
|
exit: jt()
|
|
4384
4538
|
};
|
|
4385
4539
|
}
|
|
4386
|
-
class
|
|
4540
|
+
class Bt {
|
|
4387
4541
|
constructor(e) {
|
|
4388
4542
|
this.isMounted = !1, this.node = e;
|
|
4389
4543
|
}
|
|
4390
4544
|
update() {
|
|
4391
4545
|
}
|
|
4392
4546
|
}
|
|
4393
|
-
class um extends
|
|
4547
|
+
class um extends Bt {
|
|
4394
4548
|
/**
|
|
4395
4549
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
4396
4550
|
* to the underlying animation library. We only want to load that if we load this,
|
|
@@ -4419,7 +4573,7 @@ class um extends Ft {
|
|
|
4419
4573
|
}
|
|
4420
4574
|
}
|
|
4421
4575
|
let dm = 0;
|
|
4422
|
-
class hm extends
|
|
4576
|
+
class hm extends Bt {
|
|
4423
4577
|
constructor() {
|
|
4424
4578
|
super(...arguments), this.id = dm++;
|
|
4425
4579
|
}
|
|
@@ -4453,7 +4607,7 @@ function Ee(t, e, n, r = { passive: !0 }) {
|
|
|
4453
4607
|
return t.addEventListener(e, n, r), () => t.removeEventListener(e, n);
|
|
4454
4608
|
}
|
|
4455
4609
|
const Qr = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
|
|
4456
|
-
function
|
|
4610
|
+
function $e(t) {
|
|
4457
4611
|
return {
|
|
4458
4612
|
point: {
|
|
4459
4613
|
x: t.pageX,
|
|
@@ -4461,8 +4615,8 @@ function We(t) {
|
|
|
4461
4615
|
}
|
|
4462
4616
|
};
|
|
4463
4617
|
}
|
|
4464
|
-
const mm = (t) => (e) => Qr(e) && t(e,
|
|
4465
|
-
function
|
|
4618
|
+
const mm = (t) => (e) => Qr(e) && t(e, $e(e));
|
|
4619
|
+
function Se(t, e, n, r) {
|
|
4466
4620
|
return Ee(t, e, mm(n), r);
|
|
4467
4621
|
}
|
|
4468
4622
|
function _a({ top: t, left: e, right: n, bottom: r }) {
|
|
@@ -4489,25 +4643,25 @@ const Ra = 1e-4, ym = 1 - Ra, bm = 1 + Ra, Va = 0.01, vm = 0 - Va, xm = 0 + Va;
|
|
|
4489
4643
|
function nt(t) {
|
|
4490
4644
|
return t.max - t.min;
|
|
4491
4645
|
}
|
|
4492
|
-
function
|
|
4646
|
+
function Sm(t, e, n) {
|
|
4493
4647
|
return Math.abs(t - e) <= n;
|
|
4494
4648
|
}
|
|
4495
4649
|
function Yo(t, e, n, r = 0.5) {
|
|
4496
4650
|
t.origin = r, t.originPoint = j(e.min, e.max, t.origin), t.scale = nt(n) / nt(e), t.translate = j(n.min, n.max, t.origin) - t.originPoint, (t.scale >= ym && t.scale <= bm || isNaN(t.scale)) && (t.scale = 1), (t.translate >= vm && t.translate <= xm || isNaN(t.translate)) && (t.translate = 0);
|
|
4497
4651
|
}
|
|
4498
|
-
function
|
|
4652
|
+
function we(t, e, n, r) {
|
|
4499
4653
|
Yo(t.x, e.x, n.x, r ? r.originX : void 0), Yo(t.y, e.y, n.y, r ? r.originY : void 0);
|
|
4500
4654
|
}
|
|
4501
4655
|
function Xo(t, e, n) {
|
|
4502
4656
|
t.min = n.min + e.min, t.max = t.min + nt(e);
|
|
4503
4657
|
}
|
|
4504
|
-
function
|
|
4658
|
+
function wm(t, e, n) {
|
|
4505
4659
|
Xo(t.x, e.x, n.x), Xo(t.y, e.y, n.y);
|
|
4506
4660
|
}
|
|
4507
4661
|
function qo(t, e, n) {
|
|
4508
4662
|
t.min = e.min - n.min, t.max = t.min + nt(e);
|
|
4509
4663
|
}
|
|
4510
|
-
function
|
|
4664
|
+
function ke(t, e, n) {
|
|
4511
4665
|
qo(t.x, e.x, n.x), qo(t.y, e.y, n.y);
|
|
4512
4666
|
}
|
|
4513
4667
|
const Zo = () => ({
|
|
@@ -4515,10 +4669,10 @@ const Zo = () => ({
|
|
|
4515
4669
|
scale: 1,
|
|
4516
4670
|
origin: 0,
|
|
4517
4671
|
originPoint: 0
|
|
4518
|
-
}),
|
|
4672
|
+
}), Jt = () => ({
|
|
4519
4673
|
x: Zo(),
|
|
4520
4674
|
y: Zo()
|
|
4521
|
-
}), Jo = () => ({ min: 0, max: 0 }),
|
|
4675
|
+
}), Jo = () => ({ min: 0, max: 0 }), $ = () => ({
|
|
4522
4676
|
x: Jo(),
|
|
4523
4677
|
y: Jo()
|
|
4524
4678
|
});
|
|
@@ -4554,7 +4708,7 @@ function Ea(t, { x: e, y: n }) {
|
|
|
4554
4708
|
ur(t.x, e.translate, e.scale, e.originPoint), ur(t.y, n.translate, n.scale, n.originPoint);
|
|
4555
4709
|
}
|
|
4556
4710
|
const es = 0.999999999999, ns = 1.0000000000001;
|
|
4557
|
-
function
|
|
4711
|
+
function km(t, e, n, r = !1) {
|
|
4558
4712
|
const o = n.length;
|
|
4559
4713
|
if (!o)
|
|
4560
4714
|
return;
|
|
@@ -4563,21 +4717,21 @@ function Sm(t, e, n, r = !1) {
|
|
|
4563
4717
|
for (let a = 0; a < o; a++) {
|
|
4564
4718
|
i = n[a], s = i.projectionDelta;
|
|
4565
4719
|
const { visualElement: l } = i.options;
|
|
4566
|
-
l && l.props.style && l.props.style.display === "contents" || (r && i.options.layoutScroll && i.scroll && i !== i.root &&
|
|
4720
|
+
l && l.props.style && l.props.style.display === "contents" || (r && i.options.layoutScroll && i.scroll && i !== i.root && te(t, {
|
|
4567
4721
|
x: -i.scroll.offset.x,
|
|
4568
4722
|
y: -i.scroll.offset.y
|
|
4569
|
-
}), s && (e.x *= s.x.scale, e.y *= s.y.scale, Ea(t, s)), r && Nt(i.latestValues) &&
|
|
4723
|
+
}), s && (e.x *= s.x.scale, e.y *= s.y.scale, Ea(t, s)), r && Nt(i.latestValues) && te(t, i.latestValues));
|
|
4570
4724
|
}
|
|
4571
4725
|
e.x < ns && e.x > es && (e.x = 1), e.y < ns && e.y > es && (e.y = 1);
|
|
4572
4726
|
}
|
|
4573
|
-
function
|
|
4727
|
+
function Qt(t, e) {
|
|
4574
4728
|
t.min = t.min + e, t.max = t.max + e;
|
|
4575
4729
|
}
|
|
4576
4730
|
function rs(t, e, n, r, o = 0.5) {
|
|
4577
4731
|
const i = j(t.min, t.max, o);
|
|
4578
4732
|
ur(t, e, n, i, r);
|
|
4579
4733
|
}
|
|
4580
|
-
function
|
|
4734
|
+
function te(t, e) {
|
|
4581
4735
|
rs(t.x, e.x, e.scaleX, e.scale, e.originX), rs(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
4582
4736
|
}
|
|
4583
4737
|
function Ma(t, e) {
|
|
@@ -4585,14 +4739,14 @@ function Ma(t, e) {
|
|
|
4585
4739
|
}
|
|
4586
4740
|
function Tm(t, e, n) {
|
|
4587
4741
|
const r = Ma(t, n), { scroll: o } = e;
|
|
4588
|
-
return o && (
|
|
4742
|
+
return o && (Qt(r.x, o.offset.x), Qt(r.y, o.offset.y)), r;
|
|
4589
4743
|
}
|
|
4590
|
-
const
|
|
4744
|
+
const Fa = ({ current: t }) => t ? t.ownerDocument.defaultView : null, os = (t, e) => Math.abs(t - e);
|
|
4591
4745
|
function Pm(t, e) {
|
|
4592
4746
|
const n = os(t.x, e.x), r = os(t.y, e.y);
|
|
4593
4747
|
return Math.sqrt(n ** 2 + r ** 2);
|
|
4594
4748
|
}
|
|
4595
|
-
class
|
|
4749
|
+
class La {
|
|
4596
4750
|
constructor(e, n, { transformPagePoint: r, contextWindow: o, dragSnapToOrigin: i = !1 } = {}) {
|
|
4597
4751
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
4598
4752
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
@@ -4605,7 +4759,7 @@ class Ia {
|
|
|
4605
4759
|
const { onStart: b, onMove: p } = this.handlers;
|
|
4606
4760
|
h || (b && b(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), p && p(this.lastMoveEvent, d);
|
|
4607
4761
|
}, this.handlePointerMove = (d, h) => {
|
|
4608
|
-
this.lastMoveEvent = d, this.lastMoveEventInfo = jn(h, this.transformPagePoint),
|
|
4762
|
+
this.lastMoveEvent = d, this.lastMoveEventInfo = jn(h, this.transformPagePoint), L.update(this.updatePoint, !0);
|
|
4609
4763
|
}, this.handlePointerUp = (d, h) => {
|
|
4610
4764
|
this.end();
|
|
4611
4765
|
const { onEnd: f, onSessionEnd: m, resumeAnimation: g } = this.handlers;
|
|
@@ -4616,10 +4770,10 @@ class Ia {
|
|
|
4616
4770
|
}, !Qr(e))
|
|
4617
4771
|
return;
|
|
4618
4772
|
this.dragSnapToOrigin = i, this.handlers = n, this.transformPagePoint = r, this.contextWindow = o || window;
|
|
4619
|
-
const s =
|
|
4773
|
+
const s = $e(e), a = jn(s, this.transformPagePoint), { point: l } = a, { timestamp: u } = Y;
|
|
4620
4774
|
this.history = [{ ...l, timestamp: u }];
|
|
4621
4775
|
const { onSessionStart: c } = n;
|
|
4622
|
-
c && c(e, Nn(a, this.history)), this.removeListeners =
|
|
4776
|
+
c && c(e, Nn(a, this.history)), this.removeListeners = We(Se(this.contextWindow, "pointermove", this.handlePointerMove), Se(this.contextWindow, "pointerup", this.handlePointerUp), Se(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
4623
4777
|
}
|
|
4624
4778
|
updateHandlers(e) {
|
|
4625
4779
|
this.handlers = e;
|
|
@@ -4637,7 +4791,7 @@ function ss(t, e) {
|
|
|
4637
4791
|
function Nn({ point: t }, e) {
|
|
4638
4792
|
return {
|
|
4639
4793
|
point: t,
|
|
4640
|
-
delta: ss(t,
|
|
4794
|
+
delta: ss(t, Ia(e)),
|
|
4641
4795
|
offset: ss(t, Cm(e)),
|
|
4642
4796
|
velocity: Am(e, 0.1)
|
|
4643
4797
|
};
|
|
@@ -4645,14 +4799,14 @@ function Nn({ point: t }, e) {
|
|
|
4645
4799
|
function Cm(t) {
|
|
4646
4800
|
return t[0];
|
|
4647
4801
|
}
|
|
4648
|
-
function
|
|
4802
|
+
function Ia(t) {
|
|
4649
4803
|
return t[t.length - 1];
|
|
4650
4804
|
}
|
|
4651
4805
|
function Am(t, e) {
|
|
4652
4806
|
if (t.length < 2)
|
|
4653
4807
|
return { x: 0, y: 0 };
|
|
4654
4808
|
let n = t.length - 1, r = null;
|
|
4655
|
-
const o =
|
|
4809
|
+
const o = Ia(t);
|
|
4656
4810
|
for (; n >= 0 && (r = t[n], !(o.timestamp - r.timestamp > /* @__PURE__ */ it(e))); )
|
|
4657
4811
|
n--;
|
|
4658
4812
|
if (!r)
|
|
@@ -4694,7 +4848,7 @@ function Vm(t, e) {
|
|
|
4694
4848
|
function Dm(t, e) {
|
|
4695
4849
|
let n = 0.5;
|
|
4696
4850
|
const r = nt(t), o = nt(e);
|
|
4697
|
-
return o > r ? n = /* @__PURE__ */
|
|
4851
|
+
return o > r ? n = /* @__PURE__ */ se(e.min, e.max - r, t.min) : r > o && (n = /* @__PURE__ */ se(t.min, t.max - o, e.min)), Ct(0, 1, n);
|
|
4698
4852
|
}
|
|
4699
4853
|
function Em(t, e) {
|
|
4700
4854
|
const n = {};
|
|
@@ -4720,20 +4874,20 @@ const lt = {
|
|
|
4720
4874
|
x: !1,
|
|
4721
4875
|
y: !1
|
|
4722
4876
|
};
|
|
4723
|
-
function
|
|
4877
|
+
function Ba() {
|
|
4724
4878
|
return lt.x || lt.y;
|
|
4725
4879
|
}
|
|
4726
|
-
function
|
|
4880
|
+
function Fm(t) {
|
|
4727
4881
|
return t === "x" || t === "y" ? lt[t] ? null : (lt[t] = !0, () => {
|
|
4728
4882
|
lt[t] = !1;
|
|
4729
4883
|
}) : lt.x || lt.y ? null : (lt.x = lt.y = !0, () => {
|
|
4730
4884
|
lt.x = lt.y = !1;
|
|
4731
4885
|
});
|
|
4732
4886
|
}
|
|
4733
|
-
const
|
|
4734
|
-
class
|
|
4887
|
+
const Lm = /* @__PURE__ */ new WeakMap();
|
|
4888
|
+
class Im {
|
|
4735
4889
|
constructor(e) {
|
|
4736
|
-
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic =
|
|
4890
|
+
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = $(), this.visualElement = e;
|
|
4737
4891
|
}
|
|
4738
4892
|
start(e, { snapToCursor: n = !1 } = {}) {
|
|
4739
4893
|
const { presenceContext: r } = this.visualElement;
|
|
@@ -4741,22 +4895,22 @@ class Bm {
|
|
|
4741
4895
|
return;
|
|
4742
4896
|
const o = (c) => {
|
|
4743
4897
|
const { dragSnapToOrigin: d } = this.getProps();
|
|
4744
|
-
d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(
|
|
4898
|
+
d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor($e(c).point);
|
|
4745
4899
|
}, i = (c, d) => {
|
|
4746
4900
|
const { drag: h, dragPropagation: f, onDragStart: m } = this.getProps();
|
|
4747
|
-
if (h && !f && (this.openDragLock && this.openDragLock(), this.openDragLock =
|
|
4901
|
+
if (h && !f && (this.openDragLock && this.openDragLock(), this.openDragLock = Fm(h), !this.openDragLock))
|
|
4748
4902
|
return;
|
|
4749
4903
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), ot((b) => {
|
|
4750
4904
|
let p = this.getAxisMotionValue(b).get() || 0;
|
|
4751
4905
|
if (ft.test(p)) {
|
|
4752
4906
|
const { projection: v } = this.visualElement;
|
|
4753
4907
|
if (v && v.layout) {
|
|
4754
|
-
const
|
|
4755
|
-
|
|
4908
|
+
const S = v.layout.layoutBox[b];
|
|
4909
|
+
S && (p = nt(S) * (parseFloat(p) / 100));
|
|
4756
4910
|
}
|
|
4757
4911
|
}
|
|
4758
4912
|
this.originPoint[b] = p;
|
|
4759
|
-
}), m &&
|
|
4913
|
+
}), m && L.postRender(() => m(c, d)), Zn(this.visualElement, "transform");
|
|
4760
4914
|
const { animationState: g } = this.visualElement;
|
|
4761
4915
|
g && g.setActive("whileDrag", !0);
|
|
4762
4916
|
}, s = (c, d) => {
|
|
@@ -4765,7 +4919,7 @@ class Bm {
|
|
|
4765
4919
|
return;
|
|
4766
4920
|
const { offset: b } = d;
|
|
4767
4921
|
if (f && this.currentDirection === null) {
|
|
4768
|
-
this.currentDirection =
|
|
4922
|
+
this.currentDirection = Bm(b), this.currentDirection !== null && m && m(this.currentDirection);
|
|
4769
4923
|
return;
|
|
4770
4924
|
}
|
|
4771
4925
|
this.updateAxis("x", d.point, b), this.updateAxis("y", d.point, b), this.visualElement.render(), g && g(c, d);
|
|
@@ -4773,7 +4927,7 @@ class Bm {
|
|
|
4773
4927
|
var d;
|
|
4774
4928
|
return this.getAnimationState(c) === "paused" && ((d = this.getAxisMotionValue(c).animation) == null ? void 0 : d.play());
|
|
4775
4929
|
}), { dragSnapToOrigin: u } = this.getProps();
|
|
4776
|
-
this.panSession = new
|
|
4930
|
+
this.panSession = new La(e, {
|
|
4777
4931
|
onSessionStart: o,
|
|
4778
4932
|
onStart: i,
|
|
4779
4933
|
onMove: s,
|
|
@@ -4782,7 +4936,7 @@ class Bm {
|
|
|
4782
4936
|
}, {
|
|
4783
4937
|
transformPagePoint: this.visualElement.getTransformPagePoint(),
|
|
4784
4938
|
dragSnapToOrigin: u,
|
|
4785
|
-
contextWindow:
|
|
4939
|
+
contextWindow: Fa(this.visualElement)
|
|
4786
4940
|
});
|
|
4787
4941
|
}
|
|
4788
4942
|
stop(e, n) {
|
|
@@ -4792,7 +4946,7 @@ class Bm {
|
|
|
4792
4946
|
const { velocity: o } = n;
|
|
4793
4947
|
this.startAnimation(o);
|
|
4794
4948
|
const { onDragEnd: i } = this.getProps();
|
|
4795
|
-
i &&
|
|
4949
|
+
i && L.postRender(() => i(e, n));
|
|
4796
4950
|
}
|
|
4797
4951
|
cancel() {
|
|
4798
4952
|
this.isDragging = !1;
|
|
@@ -4812,13 +4966,13 @@ class Bm {
|
|
|
4812
4966
|
resolveConstraints() {
|
|
4813
4967
|
var i;
|
|
4814
4968
|
const { dragConstraints: e, dragElastic: n } = this.getProps(), r = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (i = this.visualElement.projection) == null ? void 0 : i.layout, o = this.constraints;
|
|
4815
|
-
e &&
|
|
4969
|
+
e && qt(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && r ? this.constraints = Rm(r.layoutBox, e) : this.constraints = !1, this.elastic = Mm(n), o !== this.constraints && r && this.constraints && !this.hasMutatedConstraints && ot((s) => {
|
|
4816
4970
|
this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = Em(r.layoutBox[s], this.constraints[s]));
|
|
4817
4971
|
});
|
|
4818
4972
|
}
|
|
4819
4973
|
resolveRefConstraints() {
|
|
4820
4974
|
const { dragConstraints: e, onMeasureDragConstraints: n } = this.getProps();
|
|
4821
|
-
if (!e || !
|
|
4975
|
+
if (!e || !qt(e))
|
|
4822
4976
|
return !1;
|
|
4823
4977
|
const r = e.current;
|
|
4824
4978
|
bt(r !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
|
|
@@ -4902,7 +5056,7 @@ class Bm {
|
|
|
4902
5056
|
if (!this.visualElement.current)
|
|
4903
5057
|
return;
|
|
4904
5058
|
const { drag: e, dragConstraints: n } = this.getProps(), { projection: r } = this.visualElement;
|
|
4905
|
-
if (!
|
|
5059
|
+
if (!qt(n) || !r || !this.constraints)
|
|
4906
5060
|
return;
|
|
4907
5061
|
this.stopAnimation();
|
|
4908
5062
|
const o = { x: 0, y: 0 };
|
|
@@ -4924,15 +5078,15 @@ class Bm {
|
|
|
4924
5078
|
addListeners() {
|
|
4925
5079
|
if (!this.visualElement.current)
|
|
4926
5080
|
return;
|
|
4927
|
-
|
|
4928
|
-
const e = this.visualElement.current, n =
|
|
5081
|
+
Lm.set(this.visualElement, this);
|
|
5082
|
+
const e = this.visualElement.current, n = Se(e, "pointerdown", (l) => {
|
|
4929
5083
|
const { drag: u, dragListener: c = !0 } = this.getProps();
|
|
4930
5084
|
u && c && this.start(l);
|
|
4931
5085
|
}), r = () => {
|
|
4932
5086
|
const { dragConstraints: l } = this.getProps();
|
|
4933
|
-
|
|
5087
|
+
qt(l) && l.current && (this.constraints = this.resolveRefConstraints());
|
|
4934
5088
|
}, { projection: o } = this.visualElement, i = o.addEventListener("measure", r);
|
|
4935
|
-
o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()),
|
|
5089
|
+
o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), L.read(r);
|
|
4936
5090
|
const s = Ee(window, "resize", () => this.scalePositionWithinConstraints()), a = o.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: u }) => {
|
|
4937
5091
|
this.isDragging && u && (ot((c) => {
|
|
4938
5092
|
const d = this.getAxisMotionValue(c);
|
|
@@ -4959,13 +5113,13 @@ class Bm {
|
|
|
4959
5113
|
function Ze(t, e, n) {
|
|
4960
5114
|
return (e === !0 || e === t) && (n === null || n === t);
|
|
4961
5115
|
}
|
|
4962
|
-
function
|
|
5116
|
+
function Bm(t, e = 10) {
|
|
4963
5117
|
let n = null;
|
|
4964
5118
|
return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
|
|
4965
5119
|
}
|
|
4966
|
-
class Om extends
|
|
5120
|
+
class Om extends Bt {
|
|
4967
5121
|
constructor(e) {
|
|
4968
|
-
super(e), this.removeGroupControls = st, this.removeListeners = st, this.controls = new
|
|
5122
|
+
super(e), this.removeGroupControls = st, this.removeListeners = st, this.controls = new Im(e);
|
|
4969
5123
|
}
|
|
4970
5124
|
mount() {
|
|
4971
5125
|
const { dragControls: e } = this.node.getProps();
|
|
@@ -4976,16 +5130,16 @@ class Om extends Ft {
|
|
|
4976
5130
|
}
|
|
4977
5131
|
}
|
|
4978
5132
|
const us = (t) => (e, n) => {
|
|
4979
|
-
t &&
|
|
5133
|
+
t && L.postRender(() => t(e, n));
|
|
4980
5134
|
};
|
|
4981
|
-
class jm extends
|
|
5135
|
+
class jm extends Bt {
|
|
4982
5136
|
constructor() {
|
|
4983
5137
|
super(...arguments), this.removePointerDownListener = st;
|
|
4984
5138
|
}
|
|
4985
5139
|
onPointerDown(e) {
|
|
4986
|
-
this.session = new
|
|
5140
|
+
this.session = new La(e, this.createPanHandlers(), {
|
|
4987
5141
|
transformPagePoint: this.node.getTransformPagePoint(),
|
|
4988
|
-
contextWindow:
|
|
5142
|
+
contextWindow: Fa(this.node)
|
|
4989
5143
|
});
|
|
4990
5144
|
}
|
|
4991
5145
|
createPanHandlers() {
|
|
@@ -4995,12 +5149,12 @@ class jm extends Ft {
|
|
|
4995
5149
|
onStart: us(n),
|
|
4996
5150
|
onMove: r,
|
|
4997
5151
|
onEnd: (i, s) => {
|
|
4998
|
-
delete this.session, o &&
|
|
5152
|
+
delete this.session, o && L.postRender(() => o(i, s));
|
|
4999
5153
|
}
|
|
5000
5154
|
};
|
|
5001
5155
|
}
|
|
5002
5156
|
mount() {
|
|
5003
|
-
this.removePointerDownListener =
|
|
5157
|
+
this.removePointerDownListener = Se(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
|
|
5004
5158
|
}
|
|
5005
5159
|
update() {
|
|
5006
5160
|
this.session && this.session.updateHandlers(this.createPanHandlers());
|
|
@@ -5047,7 +5201,7 @@ const fe = {
|
|
|
5047
5201
|
return typeof o[2 + s] == "number" && (o[2 + s] /= u), typeof o[3 + s] == "number" && (o[3 + s] /= u), i(o);
|
|
5048
5202
|
}
|
|
5049
5203
|
};
|
|
5050
|
-
class
|
|
5204
|
+
class zm extends zl {
|
|
5051
5205
|
/**
|
|
5052
5206
|
* This only mounts projection nodes for components that
|
|
5053
5207
|
* need measuring, we might want to do it for all components
|
|
@@ -5055,7 +5209,7 @@ class $m extends $l {
|
|
|
5055
5209
|
*/
|
|
5056
5210
|
componentDidMount() {
|
|
5057
5211
|
const { visualElement: e, layoutGroup: n, switchLayoutGroup: r, layoutId: o } = this.props, { projection: i } = e;
|
|
5058
|
-
Jd(
|
|
5212
|
+
Jd(Wm), i && (n.group && n.group.add(i), r && r.register && o && r.register(i), i.root.didUpdate(), i.addEventListener("animationComplete", () => {
|
|
5059
5213
|
this.safeToRemove();
|
|
5060
5214
|
}), i.setOptions({
|
|
5061
5215
|
...i.options,
|
|
@@ -5064,7 +5218,7 @@ class $m extends $l {
|
|
|
5064
5218
|
}
|
|
5065
5219
|
getSnapshotBeforeUpdate(e) {
|
|
5066
5220
|
const { layoutDependency: n, visualElement: r, drag: o, isPresent: i } = this.props, s = r.projection;
|
|
5067
|
-
return s && (s.isPresent = i, o || e.layoutDependency !== n || n === void 0 || e.isPresent !== i ? s.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? s.promote() : s.relegate() ||
|
|
5221
|
+
return s && (s.isPresent = i, o || e.layoutDependency !== n || n === void 0 || e.isPresent !== i ? s.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? s.promote() : s.relegate() || L.postRender(() => {
|
|
5068
5222
|
const a = s.getStack();
|
|
5069
5223
|
(!a || !a.members.length) && this.safeToRemove();
|
|
5070
5224
|
}))), null;
|
|
@@ -5088,10 +5242,10 @@ class $m extends $l {
|
|
|
5088
5242
|
}
|
|
5089
5243
|
}
|
|
5090
5244
|
function Oa(t) {
|
|
5091
|
-
const [e, n] = xi(), r = H(
|
|
5092
|
-
return y(
|
|
5245
|
+
const [e, n] = xi(), r = H(Sr);
|
|
5246
|
+
return y(zm, { ...t, layoutGroup: r, switchLayoutGroup: H(Ci), isPresent: e, safeToRemove: n });
|
|
5093
5247
|
}
|
|
5094
|
-
const
|
|
5248
|
+
const Wm = {
|
|
5095
5249
|
borderRadius: {
|
|
5096
5250
|
...fe,
|
|
5097
5251
|
applyTo: [
|
|
@@ -5108,13 +5262,13 @@ const zm = {
|
|
|
5108
5262
|
boxShadow: Nm
|
|
5109
5263
|
};
|
|
5110
5264
|
function ja(t, e, n) {
|
|
5111
|
-
const r = G(t) ? t :
|
|
5265
|
+
const r = G(t) ? t : re(t);
|
|
5112
5266
|
return r.start(Zr("", r, e, n)), r.animation;
|
|
5113
5267
|
}
|
|
5114
5268
|
function Na(t) {
|
|
5115
5269
|
return t instanceof SVGElement && t.tagName !== "svg";
|
|
5116
5270
|
}
|
|
5117
|
-
const
|
|
5271
|
+
const $m = (t, e) => t.depth - e.depth;
|
|
5118
5272
|
class Hm {
|
|
5119
5273
|
constructor() {
|
|
5120
5274
|
this.children = [], this.isDirty = !1;
|
|
@@ -5123,10 +5277,10 @@ class Hm {
|
|
|
5123
5277
|
Or(this.children, e), this.isDirty = !0;
|
|
5124
5278
|
}
|
|
5125
5279
|
remove(e) {
|
|
5126
|
-
|
|
5280
|
+
wn(this.children, e), this.isDirty = !0;
|
|
5127
5281
|
}
|
|
5128
5282
|
forEach(e) {
|
|
5129
|
-
this.isDirty && this.children.sort(
|
|
5283
|
+
this.isDirty && this.children.sort($m), this.isDirty = !1, this.children.forEach(e);
|
|
5130
5284
|
}
|
|
5131
5285
|
}
|
|
5132
5286
|
function Um(t, e) {
|
|
@@ -5134,14 +5288,14 @@ function Um(t, e) {
|
|
|
5134
5288
|
const i = o - n;
|
|
5135
5289
|
i >= e && (Pt(r), t(i - e));
|
|
5136
5290
|
};
|
|
5137
|
-
return
|
|
5291
|
+
return L.read(r, !0), () => Pt(r);
|
|
5138
5292
|
}
|
|
5139
|
-
const
|
|
5293
|
+
const za = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Gm = za.length, hs = (t) => typeof t == "string" ? parseFloat(t) : t, fs = (t) => typeof t == "number" || T.test(t);
|
|
5140
5294
|
function Km(t, e, n, r, o, i) {
|
|
5141
5295
|
var s, a, l, u;
|
|
5142
5296
|
o ? (t.opacity = j(0, (s = n.opacity) != null ? s : 1, Ym(r)), t.opacityExit = j((a = e.opacity) != null ? a : 1, 0, Xm(r))) : i && (t.opacity = j((l = e.opacity) != null ? l : 1, (u = n.opacity) != null ? u : 1, r));
|
|
5143
5297
|
for (let c = 0; c < Gm; c++) {
|
|
5144
|
-
const d = `border${
|
|
5298
|
+
const d = `border${za[c]}Radius`;
|
|
5145
5299
|
let h = ms(e, d), f = ms(n, d);
|
|
5146
5300
|
if (h === void 0 && f === void 0)
|
|
5147
5301
|
continue;
|
|
@@ -5152,9 +5306,9 @@ function Km(t, e, n, r, o, i) {
|
|
|
5152
5306
|
function ms(t, e) {
|
|
5153
5307
|
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
|
5154
5308
|
}
|
|
5155
|
-
const Ym = /* @__PURE__ */
|
|
5156
|
-
function
|
|
5157
|
-
return (r) => r < t ? 0 : r > e ? 1 : n(/* @__PURE__ */
|
|
5309
|
+
const Ym = /* @__PURE__ */ Wa(0, 0.5, Yi), Xm = /* @__PURE__ */ Wa(0.5, 0.95, st);
|
|
5310
|
+
function Wa(t, e, n) {
|
|
5311
|
+
return (r) => r < t ? 0 : r > e ? 1 : n(/* @__PURE__ */ se(t, e, r));
|
|
5158
5312
|
}
|
|
5159
5313
|
function ps(t, e) {
|
|
5160
5314
|
t.min = e.min, t.max = e.max;
|
|
@@ -5184,22 +5338,22 @@ function vs(t, e, n, r) {
|
|
|
5184
5338
|
function xs(t) {
|
|
5185
5339
|
return t.translate === 0 && t.scale === 1;
|
|
5186
5340
|
}
|
|
5187
|
-
function
|
|
5341
|
+
function $a(t) {
|
|
5188
5342
|
return xs(t.x) && xs(t.y);
|
|
5189
5343
|
}
|
|
5190
|
-
function
|
|
5344
|
+
function Ss(t, e) {
|
|
5191
5345
|
return t.min === e.min && t.max === e.max;
|
|
5192
5346
|
}
|
|
5193
5347
|
function Qm(t, e) {
|
|
5194
|
-
return
|
|
5348
|
+
return Ss(t.x, e.x) && Ss(t.y, e.y);
|
|
5195
5349
|
}
|
|
5196
|
-
function
|
|
5350
|
+
function ws(t, e) {
|
|
5197
5351
|
return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
|
|
5198
5352
|
}
|
|
5199
5353
|
function Ha(t, e) {
|
|
5200
|
-
return
|
|
5354
|
+
return ws(t.x, e.x) && ws(t.y, e.y);
|
|
5201
5355
|
}
|
|
5202
|
-
function
|
|
5356
|
+
function ks(t) {
|
|
5203
5357
|
return nt(t.x) / nt(t.y);
|
|
5204
5358
|
}
|
|
5205
5359
|
function Ts(t, e) {
|
|
@@ -5213,7 +5367,7 @@ class tp {
|
|
|
5213
5367
|
Or(this.members, e), e.scheduleRender();
|
|
5214
5368
|
}
|
|
5215
5369
|
remove(e) {
|
|
5216
|
-
if (
|
|
5370
|
+
if (wn(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
|
|
5217
5371
|
const n = this.members[this.members.length - 1];
|
|
5218
5372
|
n && this.promote(n);
|
|
5219
5373
|
}
|
|
@@ -5269,9 +5423,9 @@ function ep(t, e, n) {
|
|
|
5269
5423
|
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
|
5270
5424
|
return (a !== 1 || l !== 1) && (r += `scale(${a}, ${l})`), r || "none";
|
|
5271
5425
|
}
|
|
5272
|
-
const
|
|
5426
|
+
const zn = ["", "X", "Y", "Z"], np = { visibility: "hidden" }, Ps = 1e3;
|
|
5273
5427
|
let rp = 0;
|
|
5274
|
-
function
|
|
5428
|
+
function Wn(t, e, n, r) {
|
|
5275
5429
|
const { latestValues: o } = e;
|
|
5276
5430
|
o[t] && (n[t] = o[t], e.setStaticValue(t, 0), r && (r[t] = 0));
|
|
5277
5431
|
}
|
|
@@ -5281,10 +5435,10 @@ function Ua(t) {
|
|
|
5281
5435
|
const { visualElement: e } = t.options;
|
|
5282
5436
|
if (!e)
|
|
5283
5437
|
return;
|
|
5284
|
-
const n =
|
|
5438
|
+
const n = zi(e);
|
|
5285
5439
|
if (window.MotionHasOptimisedAnimation(n, "transform")) {
|
|
5286
5440
|
const { layout: o, layoutId: i } = t.options;
|
|
5287
|
-
window.MotionCancelOptimisedAnimation(n, "transform",
|
|
5441
|
+
window.MotionCancelOptimisedAnimation(n, "transform", L, !(o || i));
|
|
5288
5442
|
}
|
|
5289
5443
|
const { parent: r } = t;
|
|
5290
5444
|
r && !r.hasCheckedOptimisedAppear && Ua(r);
|
|
@@ -5331,9 +5485,9 @@ function Ga({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5331
5485
|
this.target = void 0, this.relativeTarget = void 0;
|
|
5332
5486
|
return;
|
|
5333
5487
|
}
|
|
5334
|
-
const g = this.options.transition || c.getDefaultTransition() || yp, { onLayoutAnimationStart: b, onLayoutAnimationComplete: p } = c.getProps(), v = !this.targetLayout || !Ha(this.targetLayout, m),
|
|
5335
|
-
if (this.options.layoutRoot || this.resumeFrom ||
|
|
5336
|
-
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d,
|
|
5488
|
+
const g = this.options.transition || c.getDefaultTransition() || yp, { onLayoutAnimationStart: b, onLayoutAnimationComplete: p } = c.getProps(), v = !this.targetLayout || !Ha(this.targetLayout, m), S = !h && f;
|
|
5489
|
+
if (this.options.layoutRoot || this.resumeFrom || S || h && (v || !this.currentAnimation)) {
|
|
5490
|
+
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d, S);
|
|
5337
5491
|
const P = {
|
|
5338
5492
|
...qr(g, "layout"),
|
|
5339
5493
|
onPlay: b,
|
|
@@ -5396,7 +5550,7 @@ function Ga({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5396
5550
|
}
|
|
5397
5551
|
this.isUpdating || this.nodes.forEach(cp), this.isUpdating = !1, this.nodes.forEach(up), this.nodes.forEach(op), this.nodes.forEach(sp), this.clearAllSnapshots();
|
|
5398
5552
|
const a = mt.now();
|
|
5399
|
-
Y.delta = Ct(0, 1e3 / 60, a - Y.timestamp), Y.timestamp = a, Y.isProcessing = !0,
|
|
5553
|
+
Y.delta = Ct(0, 1e3 / 60, a - Y.timestamp), Y.timestamp = a, Y.isProcessing = !0, Fn.update.process(Y), Fn.preRender.process(Y), Fn.render.process(Y), Y.isProcessing = !1;
|
|
5400
5554
|
}
|
|
5401
5555
|
didUpdate() {
|
|
5402
5556
|
this.updateScheduled || (this.updateScheduled = !0, Ar.read(this.scheduleUpdate));
|
|
@@ -5405,10 +5559,10 @@ function Ga({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5405
5559
|
this.nodes.forEach(lp), this.sharedNodes.forEach(mp);
|
|
5406
5560
|
}
|
|
5407
5561
|
scheduleUpdateProjection() {
|
|
5408
|
-
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0,
|
|
5562
|
+
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, L.preRender(this.updateProjection, !1, !0));
|
|
5409
5563
|
}
|
|
5410
5564
|
scheduleCheckAfterUnmount() {
|
|
5411
|
-
|
|
5565
|
+
L.postRender(() => {
|
|
5412
5566
|
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
5413
5567
|
});
|
|
5414
5568
|
}
|
|
@@ -5425,7 +5579,7 @@ function Ga({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5425
5579
|
for (let l = 0; l < this.path.length; l++)
|
|
5426
5580
|
this.path[l].updateScroll();
|
|
5427
5581
|
const s = this.layout;
|
|
5428
|
-
this.layout = this.measure(!1), this.layoutCorrected =
|
|
5582
|
+
this.layout = this.measure(!1), this.layoutCorrected = $(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
5429
5583
|
const { visualElement: a } = this.options;
|
|
5430
5584
|
a && a.notify("LayoutMeasure", this.layout.layoutBox, s ? s.layoutBox : void 0);
|
|
5431
5585
|
}
|
|
@@ -5445,7 +5599,7 @@ function Ga({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5445
5599
|
resetTransform() {
|
|
5446
5600
|
if (!o)
|
|
5447
5601
|
return;
|
|
5448
|
-
const s = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta &&
|
|
5602
|
+
const s = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !$a(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, c = u !== this.prevTransformTemplateValue;
|
|
5449
5603
|
s && (a || Nt(this.latestValues) || c) && (o(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
|
|
5450
5604
|
}
|
|
5451
5605
|
measure(s = !0) {
|
|
@@ -5463,46 +5617,46 @@ function Ga({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5463
5617
|
var u;
|
|
5464
5618
|
const { visualElement: s } = this.options;
|
|
5465
5619
|
if (!s)
|
|
5466
|
-
return
|
|
5620
|
+
return $();
|
|
5467
5621
|
const a = s.measureViewportBox();
|
|
5468
5622
|
if (!(((u = this.scroll) == null ? void 0 : u.wasRoot) || this.path.some(vp))) {
|
|
5469
5623
|
const { scroll: c } = this.root;
|
|
5470
|
-
c && (
|
|
5624
|
+
c && (Qt(a.x, c.offset.x), Qt(a.y, c.offset.y));
|
|
5471
5625
|
}
|
|
5472
5626
|
return a;
|
|
5473
5627
|
}
|
|
5474
5628
|
removeElementScroll(s) {
|
|
5475
5629
|
var l;
|
|
5476
|
-
const a =
|
|
5630
|
+
const a = $();
|
|
5477
5631
|
if (rt(a, s), (l = this.scroll) != null && l.wasRoot)
|
|
5478
5632
|
return a;
|
|
5479
5633
|
for (let u = 0; u < this.path.length; u++) {
|
|
5480
5634
|
const c = this.path[u], { scroll: d, options: h } = c;
|
|
5481
|
-
c !== this.root && d && h.layoutScroll && (d.wasRoot && rt(a, s),
|
|
5635
|
+
c !== this.root && d && h.layoutScroll && (d.wasRoot && rt(a, s), Qt(a.x, d.offset.x), Qt(a.y, d.offset.y));
|
|
5482
5636
|
}
|
|
5483
5637
|
return a;
|
|
5484
5638
|
}
|
|
5485
5639
|
applyTransform(s, a = !1) {
|
|
5486
|
-
const l =
|
|
5640
|
+
const l = $();
|
|
5487
5641
|
rt(l, s);
|
|
5488
5642
|
for (let u = 0; u < this.path.length; u++) {
|
|
5489
5643
|
const c = this.path[u];
|
|
5490
|
-
!a && c.options.layoutScroll && c.scroll && c !== c.root &&
|
|
5644
|
+
!a && c.options.layoutScroll && c.scroll && c !== c.root && te(l, {
|
|
5491
5645
|
x: -c.scroll.offset.x,
|
|
5492
5646
|
y: -c.scroll.offset.y
|
|
5493
|
-
}), Nt(c.latestValues) &&
|
|
5647
|
+
}), Nt(c.latestValues) && te(l, c.latestValues);
|
|
5494
5648
|
}
|
|
5495
|
-
return Nt(this.latestValues) &&
|
|
5649
|
+
return Nt(this.latestValues) && te(l, this.latestValues), l;
|
|
5496
5650
|
}
|
|
5497
5651
|
removeTransform(s) {
|
|
5498
|
-
const a =
|
|
5652
|
+
const a = $();
|
|
5499
5653
|
rt(a, s);
|
|
5500
5654
|
for (let l = 0; l < this.path.length; l++) {
|
|
5501
5655
|
const u = this.path[l];
|
|
5502
5656
|
if (!u.instance || !Nt(u.latestValues))
|
|
5503
5657
|
continue;
|
|
5504
5658
|
cr(u.latestValues) && u.updateSnapshot();
|
|
5505
|
-
const c =
|
|
5659
|
+
const c = $(), d = u.measurePageBox();
|
|
5506
5660
|
rt(c, d), vs(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
|
|
5507
5661
|
}
|
|
5508
5662
|
return Nt(this.latestValues) && vs(a, this.latestValues), a;
|
|
@@ -5534,12 +5688,12 @@ function Ga({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5534
5688
|
if (!(!this.layout || !(c || d))) {
|
|
5535
5689
|
if (this.resolvedRelativeTargetAt = Y.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
5536
5690
|
const f = this.getClosestProjectingParent();
|
|
5537
|
-
f && f.layout && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
|
5691
|
+
f && f.layout && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = $(), this.relativeTargetOrigin = $(), ke(this.relativeTargetOrigin, this.layout.layoutBox, f.layout.layoutBox), rt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
5538
5692
|
}
|
|
5539
|
-
if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target =
|
|
5693
|
+
if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = $(), this.targetWithTransforms = $()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), wm(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : rt(this.target, this.layout.layoutBox), Ea(this.target, this.targetDelta)) : rt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
|
|
5540
5694
|
this.attemptToResolveRelativeTarget = !1;
|
|
5541
5695
|
const f = this.getClosestProjectingParent();
|
|
5542
|
-
f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
|
5696
|
+
f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = $(), this.relativeTargetOrigin = $(), ke(this.relativeTargetOrigin, this.target, f.target), rt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
5543
5697
|
}
|
|
5544
5698
|
}
|
|
5545
5699
|
}
|
|
@@ -5561,13 +5715,13 @@ function Ga({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5561
5715
|
return;
|
|
5562
5716
|
rt(this.layoutCorrected, this.layout.layoutBox);
|
|
5563
5717
|
const d = this.treeScale.x, h = this.treeScale.y;
|
|
5564
|
-
|
|
5718
|
+
km(this.layoutCorrected, this.treeScale, this.path, a), s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox, s.targetWithTransforms = $());
|
|
5565
5719
|
const { target: f } = s;
|
|
5566
5720
|
if (!f) {
|
|
5567
5721
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
5568
5722
|
return;
|
|
5569
5723
|
}
|
|
5570
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (gs(this.prevProjectionDelta.x, this.projectionDelta.x), gs(this.prevProjectionDelta.y, this.projectionDelta.y)),
|
|
5724
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (gs(this.prevProjectionDelta.x, this.projectionDelta.x), gs(this.prevProjectionDelta.y, this.projectionDelta.y)), we(this.projectionDelta, this.layoutCorrected, f, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== h || !Ts(this.projectionDelta.x, this.prevProjectionDelta.x) || !Ts(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", f));
|
|
5571
5725
|
}
|
|
5572
5726
|
hide() {
|
|
5573
5727
|
this.isVisible = !1;
|
|
@@ -5584,21 +5738,21 @@ function Ga({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5584
5738
|
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
5585
5739
|
}
|
|
5586
5740
|
createProjectionDeltas() {
|
|
5587
|
-
this.prevProjectionDelta =
|
|
5741
|
+
this.prevProjectionDelta = Jt(), this.projectionDelta = Jt(), this.projectionDeltaWithTransform = Jt();
|
|
5588
5742
|
}
|
|
5589
5743
|
setAnimationOrigin(s, a = !1) {
|
|
5590
|
-
const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, d =
|
|
5744
|
+
const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, d = Jt();
|
|
5591
5745
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
5592
|
-
const h =
|
|
5746
|
+
const h = $(), f = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, g = f !== m, b = this.getStack(), p = !b || b.members.length <= 1, v = !!(g && !p && this.options.crossfade === !0 && !this.path.some(gp));
|
|
5593
5747
|
this.animationProgress = 0;
|
|
5594
|
-
let
|
|
5748
|
+
let S;
|
|
5595
5749
|
this.mixTargetDelta = (P) => {
|
|
5596
5750
|
const x = P / 1e3;
|
|
5597
|
-
_s(d.x, s.x, x), _s(d.y, s.y, x), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (
|
|
5751
|
+
_s(d.x, s.x, x), _s(d.y, s.y, x), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ke(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), pp(this.relativeTarget, this.relativeTargetOrigin, h, x), S && Qm(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = $()), rt(S, this.relativeTarget)), g && (this.animationValues = c, Km(c, u, this.latestValues, x, v, p)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = x;
|
|
5598
5752
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
5599
5753
|
}
|
|
5600
5754
|
startAnimation(s) {
|
|
5601
|
-
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Pt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation =
|
|
5755
|
+
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Pt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = L.update(() => {
|
|
5602
5756
|
en.hasAnimatedSinceResize = !0, this.currentAnimation = ja(0, Ps, {
|
|
5603
5757
|
...s,
|
|
5604
5758
|
onUpdate: (a) => {
|
|
@@ -5625,13 +5779,13 @@ function Ga({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5625
5779
|
let { targetWithTransforms: a, target: l, layout: u, latestValues: c } = s;
|
|
5626
5780
|
if (!(!a || !l || !u)) {
|
|
5627
5781
|
if (this !== s && this.layout && u && Ka(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
|
|
5628
|
-
l = this.target ||
|
|
5782
|
+
l = this.target || $();
|
|
5629
5783
|
const d = nt(this.layout.layoutBox.x);
|
|
5630
5784
|
l.x.min = s.target.x.min, l.x.max = l.x.min + d;
|
|
5631
5785
|
const h = nt(this.layout.layoutBox.y);
|
|
5632
5786
|
l.y.min = s.target.y.min, l.y.max = l.y.min + h;
|
|
5633
5787
|
}
|
|
5634
|
-
rt(a, l),
|
|
5788
|
+
rt(a, l), te(a, c), we(this.projectionDeltaWithTransform, this.layoutCorrected, a, c);
|
|
5635
5789
|
}
|
|
5636
5790
|
}
|
|
5637
5791
|
registerSharedNode(s, a) {
|
|
@@ -5678,9 +5832,9 @@ function Ga({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5678
5832
|
if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a)
|
|
5679
5833
|
return;
|
|
5680
5834
|
const u = {};
|
|
5681
|
-
l.z &&
|
|
5682
|
-
for (let c = 0; c <
|
|
5683
|
-
|
|
5835
|
+
l.z && Wn("z", s, u, this.animationValues);
|
|
5836
|
+
for (let c = 0; c < zn.length; c++)
|
|
5837
|
+
Wn(`rotate${zn[c]}`, s, u, this.animationValues), Wn(`skew${zn[c]}`, s, u, this.animationValues);
|
|
5684
5838
|
s.render();
|
|
5685
5839
|
for (const c in u)
|
|
5686
5840
|
s.setStaticValue(c, u[c]), this.animationValues && (this.animationValues[c] = u[c]);
|
|
@@ -5709,13 +5863,13 @@ function Ga({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
5709
5863
|
for (const g in Ce) {
|
|
5710
5864
|
if (c[g] === void 0)
|
|
5711
5865
|
continue;
|
|
5712
|
-
const { correct: b, applyTo: p, isCSSVariable: v } = Ce[g],
|
|
5866
|
+
const { correct: b, applyTo: p, isCSSVariable: v } = Ce[g], S = a.transform === "none" ? c[g] : b(c[g], u);
|
|
5713
5867
|
if (p) {
|
|
5714
5868
|
const P = p.length;
|
|
5715
5869
|
for (let x = 0; x < P; x++)
|
|
5716
|
-
a[p[x]] =
|
|
5870
|
+
a[p[x]] = S;
|
|
5717
5871
|
} else
|
|
5718
|
-
v ? this.options.visualElement.renderState.vars[g] =
|
|
5872
|
+
v ? this.options.visualElement.renderState.vars[g] = S : a[g] = S;
|
|
5719
5873
|
}
|
|
5720
5874
|
return this.options.layoutId && (a.pointerEvents = u === this ? Qe(s == null ? void 0 : s.pointerEvents) || "" : "none"), a;
|
|
5721
5875
|
}
|
|
@@ -5746,21 +5900,21 @@ function sp(t) {
|
|
|
5746
5900
|
const h = s ? e.measuredBox[d] : e.layoutBox[d], f = nt(r[d]);
|
|
5747
5901
|
h.max = h.min + f, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[d].max = t.relativeTarget[d].min + f);
|
|
5748
5902
|
});
|
|
5749
|
-
const a =
|
|
5750
|
-
|
|
5751
|
-
const l =
|
|
5752
|
-
s ?
|
|
5753
|
-
const u =
|
|
5903
|
+
const a = Jt();
|
|
5904
|
+
we(a, r, e.layoutBox);
|
|
5905
|
+
const l = Jt();
|
|
5906
|
+
s ? we(l, t.applyTransform(o, !0), e.measuredBox) : we(l, r, e.layoutBox);
|
|
5907
|
+
const u = !$a(a);
|
|
5754
5908
|
let c = !1;
|
|
5755
5909
|
if (!t.resumeFrom) {
|
|
5756
5910
|
const d = t.getClosestProjectingParent();
|
|
5757
5911
|
if (d && !d.resumeFrom) {
|
|
5758
5912
|
const { snapshot: h, layout: f } = d;
|
|
5759
5913
|
if (h && f) {
|
|
5760
|
-
const m =
|
|
5761
|
-
|
|
5762
|
-
const g =
|
|
5763
|
-
|
|
5914
|
+
const m = $();
|
|
5915
|
+
ke(m, e.layoutBox, h.layoutBox);
|
|
5916
|
+
const g = $();
|
|
5917
|
+
ke(g, r, f.layoutBox), Ha(m, g) || (c = !0), d.options.layoutRoot && (t.relativeTarget = g, t.relativeTargetOrigin = m, t.relativeParent = d);
|
|
5764
5918
|
}
|
|
5765
5919
|
}
|
|
5766
5920
|
}
|
|
@@ -5835,7 +5989,7 @@ function bp(t) {
|
|
|
5835
5989
|
Es(t.x), Es(t.y);
|
|
5836
5990
|
}
|
|
5837
5991
|
function Ka(t, e, n) {
|
|
5838
|
-
return t === "position" || t === "preserve-aspect" && !
|
|
5992
|
+
return t === "position" || t === "preserve-aspect" && !Sm(ks(e), ks(n), 0.2);
|
|
5839
5993
|
}
|
|
5840
5994
|
function vp(t) {
|
|
5841
5995
|
var e;
|
|
@@ -5848,7 +6002,7 @@ const xp = Ga({
|
|
|
5848
6002
|
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
5849
6003
|
}),
|
|
5850
6004
|
checkIsScrollRoot: () => !0
|
|
5851
|
-
}),
|
|
6005
|
+
}), $n = {
|
|
5852
6006
|
current: void 0
|
|
5853
6007
|
}, Ya = Ga({
|
|
5854
6008
|
measureScroll: (t) => ({
|
|
@@ -5856,17 +6010,17 @@ const xp = Ga({
|
|
|
5856
6010
|
y: t.scrollTop
|
|
5857
6011
|
}),
|
|
5858
6012
|
defaultParent: () => {
|
|
5859
|
-
if (
|
|
6013
|
+
if (!$n.current) {
|
|
5860
6014
|
const t = new xp({});
|
|
5861
|
-
t.mount(window), t.setOptions({ layoutScroll: !0 }),
|
|
6015
|
+
t.mount(window), t.setOptions({ layoutScroll: !0 }), $n.current = t;
|
|
5862
6016
|
}
|
|
5863
|
-
return
|
|
6017
|
+
return $n.current;
|
|
5864
6018
|
},
|
|
5865
6019
|
resetTransform: (t, e) => {
|
|
5866
6020
|
t.style.transform = e !== void 0 ? e : "none";
|
|
5867
6021
|
},
|
|
5868
6022
|
checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
|
|
5869
|
-
}),
|
|
6023
|
+
}), Sp = {
|
|
5870
6024
|
pan: {
|
|
5871
6025
|
Feature: jm
|
|
5872
6026
|
},
|
|
@@ -5896,9 +6050,9 @@ function qa(t, e) {
|
|
|
5896
6050
|
return [n, o, () => r.abort()];
|
|
5897
6051
|
}
|
|
5898
6052
|
function Ms(t) {
|
|
5899
|
-
return !(t.pointerType === "touch" ||
|
|
6053
|
+
return !(t.pointerType === "touch" || Ba());
|
|
5900
6054
|
}
|
|
5901
|
-
function
|
|
6055
|
+
function wp(t, e, n = {}) {
|
|
5902
6056
|
const [r, o, i] = qa(t, n), s = (a) => {
|
|
5903
6057
|
if (!Ms(a))
|
|
5904
6058
|
return;
|
|
@@ -5914,21 +6068,21 @@ function kp(t, e, n = {}) {
|
|
|
5914
6068
|
a.addEventListener("pointerenter", s, o);
|
|
5915
6069
|
}), i;
|
|
5916
6070
|
}
|
|
5917
|
-
function
|
|
6071
|
+
function Fs(t, e, n) {
|
|
5918
6072
|
const { props: r } = t;
|
|
5919
6073
|
t.animationState && r.whileHover && t.animationState.setActive("whileHover", n === "Start");
|
|
5920
6074
|
const o = "onHover" + n, i = r[o];
|
|
5921
|
-
i &&
|
|
6075
|
+
i && L.postRender(() => i(e, $e(e)));
|
|
5922
6076
|
}
|
|
5923
|
-
class
|
|
6077
|
+
class kp extends Bt {
|
|
5924
6078
|
mount() {
|
|
5925
6079
|
const { current: e } = this.node;
|
|
5926
|
-
e && (this.unmount =
|
|
6080
|
+
e && (this.unmount = wp(e, (n, r) => (Fs(this.node, r, "Start"), (o) => Fs(this.node, o, "End"))));
|
|
5927
6081
|
}
|
|
5928
6082
|
unmount() {
|
|
5929
6083
|
}
|
|
5930
6084
|
}
|
|
5931
|
-
class Tp extends
|
|
6085
|
+
class Tp extends Bt {
|
|
5932
6086
|
constructor() {
|
|
5933
6087
|
super(...arguments), this.isActive = !1;
|
|
5934
6088
|
}
|
|
@@ -5945,7 +6099,7 @@ class Tp extends Ft {
|
|
|
5945
6099
|
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
|
|
5946
6100
|
}
|
|
5947
6101
|
mount() {
|
|
5948
|
-
this.unmount =
|
|
6102
|
+
this.unmount = We(Ee(this.node.current, "focus", () => this.onFocus()), Ee(this.node.current, "blur", () => this.onBlur()));
|
|
5949
6103
|
}
|
|
5950
6104
|
unmount() {
|
|
5951
6105
|
}
|
|
@@ -5961,7 +6115,7 @@ function Cp(t) {
|
|
|
5961
6115
|
return Pp.has(t.tagName) || t.tabIndex !== -1;
|
|
5962
6116
|
}
|
|
5963
6117
|
const ye = /* @__PURE__ */ new WeakSet();
|
|
5964
|
-
function
|
|
6118
|
+
function Ls(t) {
|
|
5965
6119
|
return (e) => {
|
|
5966
6120
|
e.key === "Enter" && t(e);
|
|
5967
6121
|
};
|
|
@@ -5973,28 +6127,28 @@ const Ap = (t, e) => {
|
|
|
5973
6127
|
const n = t.currentTarget;
|
|
5974
6128
|
if (!n)
|
|
5975
6129
|
return;
|
|
5976
|
-
const r =
|
|
6130
|
+
const r = Ls(() => {
|
|
5977
6131
|
if (ye.has(n))
|
|
5978
6132
|
return;
|
|
5979
6133
|
Hn(n, "down");
|
|
5980
|
-
const o =
|
|
6134
|
+
const o = Ls(() => {
|
|
5981
6135
|
Hn(n, "up");
|
|
5982
6136
|
}), i = () => Hn(n, "cancel");
|
|
5983
6137
|
n.addEventListener("keyup", o, e), n.addEventListener("blur", i, e);
|
|
5984
6138
|
});
|
|
5985
6139
|
n.addEventListener("keydown", r, e), n.addEventListener("blur", () => n.removeEventListener("keydown", r), e);
|
|
5986
6140
|
};
|
|
5987
|
-
function
|
|
5988
|
-
return Qr(t) && !
|
|
6141
|
+
function Is(t) {
|
|
6142
|
+
return Qr(t) && !Ba();
|
|
5989
6143
|
}
|
|
5990
6144
|
function _p(t, e, n = {}) {
|
|
5991
6145
|
const [r, o, i] = qa(t, n), s = (a) => {
|
|
5992
6146
|
const l = a.currentTarget;
|
|
5993
|
-
if (!
|
|
6147
|
+
if (!Is(a) || ye.has(l))
|
|
5994
6148
|
return;
|
|
5995
6149
|
ye.add(l);
|
|
5996
6150
|
const u = e(l, a), c = (f, m) => {
|
|
5997
|
-
window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", h), !(!
|
|
6151
|
+
window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", h), !(!Is(f) || !ye.has(l)) && (ye.delete(l), typeof u == "function" && u(f, { success: m }));
|
|
5998
6152
|
}, d = (f) => {
|
|
5999
6153
|
c(f, l === window || l === document || n.useGlobalTarget || Za(l, f.target));
|
|
6000
6154
|
}, h = (f) => {
|
|
@@ -6006,18 +6160,18 @@ function _p(t, e, n = {}) {
|
|
|
6006
6160
|
(n.useGlobalTarget ? window : a).addEventListener("pointerdown", s, o), a instanceof HTMLElement && (a.addEventListener("focus", (u) => Ap(u, o)), !Cp(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
|
|
6007
6161
|
}), i;
|
|
6008
6162
|
}
|
|
6009
|
-
function
|
|
6163
|
+
function Bs(t, e, n) {
|
|
6010
6164
|
const { props: r } = t;
|
|
6011
6165
|
if (t.current instanceof HTMLButtonElement && t.current.disabled)
|
|
6012
6166
|
return;
|
|
6013
6167
|
t.animationState && r.whileTap && t.animationState.setActive("whileTap", n === "Start");
|
|
6014
6168
|
const o = "onTap" + (n === "End" ? "" : n), i = r[o];
|
|
6015
|
-
i &&
|
|
6169
|
+
i && L.postRender(() => i(e, $e(e)));
|
|
6016
6170
|
}
|
|
6017
|
-
class Rp extends
|
|
6171
|
+
class Rp extends Bt {
|
|
6018
6172
|
mount() {
|
|
6019
6173
|
const { current: e } = this.node;
|
|
6020
|
-
e && (this.unmount = _p(e, (n, r) => (
|
|
6174
|
+
e && (this.unmount = _p(e, (n, r) => (Bs(this.node, r, "Start"), (o, { success: i }) => Bs(this.node, o, i ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
6021
6175
|
}
|
|
6022
6176
|
unmount() {
|
|
6023
6177
|
}
|
|
@@ -6040,11 +6194,11 @@ function Mp(t, e, n) {
|
|
|
6040
6194
|
hr.delete(t), r.unobserve(t);
|
|
6041
6195
|
};
|
|
6042
6196
|
}
|
|
6043
|
-
const
|
|
6197
|
+
const Fp = {
|
|
6044
6198
|
some: 0,
|
|
6045
6199
|
all: 1
|
|
6046
6200
|
};
|
|
6047
|
-
class
|
|
6201
|
+
class Lp extends Bt {
|
|
6048
6202
|
constructor() {
|
|
6049
6203
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
6050
6204
|
}
|
|
@@ -6053,7 +6207,7 @@ class Ip extends Ft {
|
|
|
6053
6207
|
const { viewport: e = {} } = this.node.getProps(), { root: n, margin: r, amount: o = "some", once: i } = e, s = {
|
|
6054
6208
|
root: n ? n.current : void 0,
|
|
6055
6209
|
rootMargin: r,
|
|
6056
|
-
threshold: typeof o == "number" ? o :
|
|
6210
|
+
threshold: typeof o == "number" ? o : Fp[o]
|
|
6057
6211
|
}, a = (l) => {
|
|
6058
6212
|
const { isIntersecting: u } = l;
|
|
6059
6213
|
if (this.isInView === u || (this.isInView = u, i && !u && this.hasEnteredView))
|
|
@@ -6071,17 +6225,17 @@ class Ip extends Ft {
|
|
|
6071
6225
|
if (typeof IntersectionObserver == "undefined")
|
|
6072
6226
|
return;
|
|
6073
6227
|
const { props: e, prevProps: n } = this.node;
|
|
6074
|
-
["amount", "margin", "root"].some(
|
|
6228
|
+
["amount", "margin", "root"].some(Ip(e, n)) && this.startObserver();
|
|
6075
6229
|
}
|
|
6076
6230
|
unmount() {
|
|
6077
6231
|
}
|
|
6078
6232
|
}
|
|
6079
|
-
function
|
|
6233
|
+
function Ip({ viewport: t = {} }, { viewport: e = {} } = {}) {
|
|
6080
6234
|
return (n) => t[n] !== e[n];
|
|
6081
6235
|
}
|
|
6082
|
-
const
|
|
6236
|
+
const Bp = {
|
|
6083
6237
|
inView: {
|
|
6084
|
-
Feature:
|
|
6238
|
+
Feature: Lp
|
|
6085
6239
|
},
|
|
6086
6240
|
tap: {
|
|
6087
6241
|
Feature: Rp
|
|
@@ -6090,7 +6244,7 @@ const Fp = {
|
|
|
6090
6244
|
Feature: Tp
|
|
6091
6245
|
},
|
|
6092
6246
|
hover: {
|
|
6093
|
-
Feature:
|
|
6247
|
+
Feature: kp
|
|
6094
6248
|
}
|
|
6095
6249
|
}, Op = {
|
|
6096
6250
|
layout: {
|
|
@@ -6099,7 +6253,7 @@ const Fp = {
|
|
|
6099
6253
|
}
|
|
6100
6254
|
}, dn = { current: null }, to = { current: !1 };
|
|
6101
6255
|
function Ja() {
|
|
6102
|
-
if (to.current = !0, !!
|
|
6256
|
+
if (to.current = !0, !!wr)
|
|
6103
6257
|
if (window.matchMedia) {
|
|
6104
6258
|
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => dn.current = t.matches;
|
|
6105
6259
|
t.addListener(e), e();
|
|
@@ -6107,20 +6261,20 @@ function Ja() {
|
|
|
6107
6261
|
dn.current = !1;
|
|
6108
6262
|
}
|
|
6109
6263
|
const jp = [...ca, Z, Mt], Np = (t) => jp.find(la(t)), Me = /* @__PURE__ */ new WeakMap();
|
|
6110
|
-
function
|
|
6264
|
+
function zp(t, e, n) {
|
|
6111
6265
|
for (const r in e) {
|
|
6112
6266
|
const o = e[r], i = n[r];
|
|
6113
6267
|
if (G(o))
|
|
6114
6268
|
t.addValue(r, o), process.env.NODE_ENV === "development" && je(o.version === "12.7.2", `Attempting to mix Motion versions ${o.version} with 12.7.2 may not work as expected.`);
|
|
6115
6269
|
else if (G(i))
|
|
6116
|
-
t.addValue(r,
|
|
6270
|
+
t.addValue(r, re(o, { owner: t }));
|
|
6117
6271
|
else if (i !== o)
|
|
6118
6272
|
if (t.hasValue(r)) {
|
|
6119
6273
|
const s = t.getValue(r);
|
|
6120
6274
|
s.liveStyle === !0 ? s.jump(o) : s.hasAnimated || s.set(o);
|
|
6121
6275
|
} else {
|
|
6122
6276
|
const s = t.getStaticValue(r);
|
|
6123
|
-
t.addValue(r,
|
|
6277
|
+
t.addValue(r, re(s !== void 0 ? s : o, { owner: t }));
|
|
6124
6278
|
}
|
|
6125
6279
|
}
|
|
6126
6280
|
for (const r in n)
|
|
@@ -6152,10 +6306,10 @@ class Qa {
|
|
|
6152
6306
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
6153
6307
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
6154
6308
|
const f = mt.now();
|
|
6155
|
-
this.renderScheduledAt < f && (this.renderScheduledAt = f,
|
|
6309
|
+
this.renderScheduledAt < f && (this.renderScheduledAt = f, L.render(this.render, !1, !0));
|
|
6156
6310
|
};
|
|
6157
6311
|
const { latestValues: l, renderState: u, onUpdate: c } = s;
|
|
6158
|
-
this.onUpdate = c, this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = r, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = o, this.options = a, this.blockInitialAnimation = !!i, this.isControllingVariants =
|
|
6312
|
+
this.onUpdate = c, this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = r, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = o, this.options = a, this.blockInitialAnimation = !!i, this.isControllingVariants = Sn(n), this.isVariantNode = Ti(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
6159
6313
|
const { willChange: d, ...h } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
6160
6314
|
for (const f in h) {
|
|
6161
6315
|
const m = h[f];
|
|
@@ -6180,7 +6334,7 @@ class Qa {
|
|
|
6180
6334
|
const r = Gt.has(e);
|
|
6181
6335
|
r && this.onBindTransform && this.onBindTransform();
|
|
6182
6336
|
const o = n.on("change", (a) => {
|
|
6183
|
-
this.latestValues[e] = a, this.props.onUpdate &&
|
|
6337
|
+
this.latestValues[e] = a, this.props.onUpdate && L.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0);
|
|
6184
6338
|
}), i = n.on("renderRequest", this.scheduleRender);
|
|
6185
6339
|
let s;
|
|
6186
6340
|
window.MotionCheckAppearSync && (s = window.MotionCheckAppearSync(this, e, n)), this.valueSubscriptions.set(e, () => {
|
|
@@ -6192,8 +6346,8 @@ class Qa {
|
|
|
6192
6346
|
}
|
|
6193
6347
|
updateFeatures() {
|
|
6194
6348
|
let e = "animation";
|
|
6195
|
-
for (e in
|
|
6196
|
-
const n =
|
|
6349
|
+
for (e in ne) {
|
|
6350
|
+
const n = ne[e];
|
|
6197
6351
|
if (!n)
|
|
6198
6352
|
continue;
|
|
6199
6353
|
const { isEnabled: r, Feature: o } = n;
|
|
@@ -6212,7 +6366,7 @@ class Qa {
|
|
|
6212
6366
|
* removed with a re-render to work.
|
|
6213
6367
|
*/
|
|
6214
6368
|
measureViewportBox() {
|
|
6215
|
-
return this.current ? this.measureInstanceViewportBox(this.current, this.props) :
|
|
6369
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : $();
|
|
6216
6370
|
}
|
|
6217
6371
|
getStaticValue(e) {
|
|
6218
6372
|
return this.latestValues[e];
|
|
@@ -6232,7 +6386,7 @@ class Qa {
|
|
|
6232
6386
|
const i = "on" + o, s = e[i];
|
|
6233
6387
|
s && (this.propEventSubscriptions[o] = this.on(o, s));
|
|
6234
6388
|
}
|
|
6235
|
-
this.prevMotionValues =
|
|
6389
|
+
this.prevMotionValues = zp(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
|
|
6236
6390
|
}
|
|
6237
6391
|
getProps() {
|
|
6238
6392
|
return this.props;
|
|
@@ -6288,7 +6442,7 @@ class Qa {
|
|
|
6288
6442
|
if (this.props.values && this.props.values[e])
|
|
6289
6443
|
return this.props.values[e];
|
|
6290
6444
|
let r = this.values.get(e);
|
|
6291
|
-
return r === void 0 && n !== void 0 && (r =
|
|
6445
|
+
return r === void 0 && n !== void 0 && (r = re(n === null ? void 0 : n, { owner: this }), this.addValue(e, r)), r;
|
|
6292
6446
|
}
|
|
6293
6447
|
/**
|
|
6294
6448
|
* If we're trying to animate to a previously unencountered value,
|
|
@@ -6316,7 +6470,7 @@ class Qa {
|
|
|
6316
6470
|
const { initial: n } = this.props;
|
|
6317
6471
|
let r;
|
|
6318
6472
|
if (typeof n == "string" || typeof n == "object") {
|
|
6319
|
-
const s =
|
|
6473
|
+
const s = Ir(this.props, n, (i = this.presenceContext) == null ? void 0 : i.custom);
|
|
6320
6474
|
s && (r = s[e]);
|
|
6321
6475
|
}
|
|
6322
6476
|
if (n && r !== void 0)
|
|
@@ -6352,18 +6506,18 @@ class tl extends Qa {
|
|
|
6352
6506
|
}));
|
|
6353
6507
|
}
|
|
6354
6508
|
}
|
|
6355
|
-
function
|
|
6509
|
+
function Wp(t) {
|
|
6356
6510
|
return window.getComputedStyle(t);
|
|
6357
6511
|
}
|
|
6358
6512
|
class el extends tl {
|
|
6359
6513
|
constructor() {
|
|
6360
|
-
super(...arguments), this.type = "html", this.renderInstance =
|
|
6514
|
+
super(...arguments), this.type = "html", this.renderInstance = Li;
|
|
6361
6515
|
}
|
|
6362
6516
|
readValueFromInstance(e, n) {
|
|
6363
6517
|
if (Gt.has(n))
|
|
6364
6518
|
return Jh(e, n);
|
|
6365
6519
|
{
|
|
6366
|
-
const r =
|
|
6520
|
+
const r = Wp(e), o = (_r(n) ? r.getPropertyValue(n) : r[n]) || 0;
|
|
6367
6521
|
return typeof o == "string" ? o.trim() : o;
|
|
6368
6522
|
}
|
|
6369
6523
|
}
|
|
@@ -6374,13 +6528,13 @@ class el extends tl {
|
|
|
6374
6528
|
Dr(e, n, r.transformTemplate);
|
|
6375
6529
|
}
|
|
6376
6530
|
scrapeMotionValuesFromProps(e, n, r) {
|
|
6377
|
-
return
|
|
6531
|
+
return Br(e, n, r);
|
|
6378
6532
|
}
|
|
6379
6533
|
}
|
|
6380
6534
|
class nl extends tl {
|
|
6381
6535
|
constructor() {
|
|
6382
|
-
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox =
|
|
6383
|
-
this.current && !this.renderState.dimensions &&
|
|
6536
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = $, this.updateDimensions = () => {
|
|
6537
|
+
this.current && !this.renderState.dimensions && Fi(this.current, this.renderState);
|
|
6384
6538
|
};
|
|
6385
6539
|
}
|
|
6386
6540
|
getBaseTargetFromProps(e, n) {
|
|
@@ -6391,34 +6545,34 @@ class nl extends tl {
|
|
|
6391
6545
|
const r = na(n);
|
|
6392
6546
|
return r && r.default || 0;
|
|
6393
6547
|
}
|
|
6394
|
-
return n =
|
|
6548
|
+
return n = Ii.has(n) ? n : Cr(n), e.getAttribute(n);
|
|
6395
6549
|
}
|
|
6396
6550
|
scrapeMotionValuesFromProps(e, n, r) {
|
|
6397
6551
|
return Oi(e, n, r);
|
|
6398
6552
|
}
|
|
6399
6553
|
onBindTransform() {
|
|
6400
|
-
this.current && !this.renderState.dimensions &&
|
|
6554
|
+
this.current && !this.renderState.dimensions && L.postRender(this.updateDimensions);
|
|
6401
6555
|
}
|
|
6402
6556
|
build(e, n, r) {
|
|
6403
|
-
|
|
6557
|
+
Fr(e, n, this.isSVGTag, r.transformTemplate);
|
|
6404
6558
|
}
|
|
6405
6559
|
renderInstance(e, n, r, o) {
|
|
6406
|
-
|
|
6560
|
+
Bi(e, n, r, o);
|
|
6407
6561
|
}
|
|
6408
6562
|
mount(e) {
|
|
6409
|
-
this.isSVGTag =
|
|
6563
|
+
this.isSVGTag = Lr(e.tagName), super.mount(e);
|
|
6410
6564
|
}
|
|
6411
6565
|
}
|
|
6412
|
-
const
|
|
6566
|
+
const $p = (t, e) => Mr(t) ? new nl(e) : new el(e, {
|
|
6413
6567
|
allowProjection: t !== oi
|
|
6414
|
-
}), Hp = /* @__PURE__ */
|
|
6568
|
+
}), Hp = /* @__PURE__ */ wh({
|
|
6415
6569
|
...fm,
|
|
6416
|
-
...
|
|
6417
|
-
...
|
|
6570
|
+
...Bp,
|
|
6571
|
+
...Sp,
|
|
6418
6572
|
...Op
|
|
6419
|
-
},
|
|
6573
|
+
}, $p), Et = /* @__PURE__ */ Od(Hp);
|
|
6420
6574
|
function fr(t) {
|
|
6421
|
-
const e = Oe(() =>
|
|
6575
|
+
const e = Oe(() => re(t)), { isStatic: n } = H(bn);
|
|
6422
6576
|
if (n) {
|
|
6423
6577
|
const [, r] = Tt(t);
|
|
6424
6578
|
ct(() => e.on("change", r), []);
|
|
@@ -6427,8 +6581,8 @@ function fr(t) {
|
|
|
6427
6581
|
}
|
|
6428
6582
|
function rl(t, e) {
|
|
6429
6583
|
const n = fr(e()), r = () => n.set(e());
|
|
6430
|
-
return r(),
|
|
6431
|
-
const o = () =>
|
|
6584
|
+
return r(), kr(() => {
|
|
6585
|
+
const o = () => L.preRender(r, !1, !0), i = t.map((s) => s.on("change", o));
|
|
6432
6586
|
return () => {
|
|
6433
6587
|
i.forEach((s) => s()), Pt(r);
|
|
6434
6588
|
};
|
|
@@ -6491,7 +6645,7 @@ function Ns(t, e, n, r) {
|
|
|
6491
6645
|
function Zp(t, e, n) {
|
|
6492
6646
|
for (let r = 0; r < t.length; r++) {
|
|
6493
6647
|
const o = t[r];
|
|
6494
|
-
o.at > e && o.at < n && (
|
|
6648
|
+
o.at > e && o.at < n && (wn(t, o), r--);
|
|
6495
6649
|
}
|
|
6496
6650
|
}
|
|
6497
6651
|
function Jp(t, e, n, r, o, i) {
|
|
@@ -6526,50 +6680,50 @@ function rg(t, { defaultTransition: e = {}, ...n } = {}, r, o) {
|
|
|
6526
6680
|
let [g, b, p = {}] = m;
|
|
6527
6681
|
p.at !== void 0 && (d = Ns(d, p.at, c, u));
|
|
6528
6682
|
let v = 0;
|
|
6529
|
-
const
|
|
6530
|
-
const A = og(P), { delay: E = 0, times: R =
|
|
6531
|
-
let { ease:
|
|
6532
|
-
const Rt = typeof E == "function" ? E(C,
|
|
6683
|
+
const S = (P, x, w, C = 0, k = 0) => {
|
|
6684
|
+
const A = og(P), { delay: E = 0, times: R = Sa(A), type: M = "keyframes", repeat: q, repeatType: at, repeatDelay: N = 0, ...F } = x;
|
|
6685
|
+
let { ease: I = e.ease || "easeOut", duration: z } = x;
|
|
6686
|
+
const Rt = typeof E == "function" ? E(C, k) : E, Vt = A.length, Ke = kn(M) ? M : o == null ? void 0 : o[M];
|
|
6533
6687
|
if (Vt <= 2 && Ke) {
|
|
6534
6688
|
let U = 100;
|
|
6535
6689
|
if (Vt === 2 && ag(A)) {
|
|
6536
6690
|
const Ot = A[1] - A[0];
|
|
6537
6691
|
U = Math.abs(Ot);
|
|
6538
6692
|
}
|
|
6539
|
-
const
|
|
6540
|
-
|
|
6541
|
-
const tt = pa(
|
|
6542
|
-
|
|
6693
|
+
const wt = { ...F };
|
|
6694
|
+
z !== void 0 && (wt.duration = /* @__PURE__ */ it(z));
|
|
6695
|
+
const tt = pa(wt, U, Ke);
|
|
6696
|
+
I = tt.ease, z = tt.duration;
|
|
6543
6697
|
}
|
|
6544
|
-
|
|
6545
|
-
const
|
|
6698
|
+
z != null || (z = i);
|
|
6699
|
+
const de = d + Rt;
|
|
6546
6700
|
R.length === 1 && R[0] === 0 && (R[1] = 1);
|
|
6547
6701
|
const V = R.length - A.length;
|
|
6548
6702
|
if (V > 0 && xa(R, V), A.length === 1 && A.unshift(null), q) {
|
|
6549
|
-
bt(q < ng, "Repeat count too high, must be less than 20"),
|
|
6550
|
-
const U = [...A],
|
|
6551
|
-
|
|
6552
|
-
const tt = [...
|
|
6703
|
+
bt(q < ng, "Repeat count too high, must be less than 20"), z = qp(z, q);
|
|
6704
|
+
const U = [...A], wt = [...R];
|
|
6705
|
+
I = Array.isArray(I) ? [...I] : [I];
|
|
6706
|
+
const tt = [...I];
|
|
6553
6707
|
for (let Ot = 0; Ot < q; Ot++) {
|
|
6554
6708
|
A.push(...U);
|
|
6555
6709
|
for (let Yt = 0; Yt < U.length; Yt++)
|
|
6556
|
-
R.push(
|
|
6710
|
+
R.push(wt[Yt] + (Ot + 1)), I.push(Yt === 0 ? "linear" : ol(tt, Yt - 1));
|
|
6557
6711
|
}
|
|
6558
6712
|
Qp(R, q);
|
|
6559
6713
|
}
|
|
6560
|
-
const Q =
|
|
6561
|
-
Jp(
|
|
6714
|
+
const Q = de + z;
|
|
6715
|
+
Jp(w, A, I, R, de, Q), v = Math.max(Rt + z, v), h = Math.max(Q, h);
|
|
6562
6716
|
};
|
|
6563
6717
|
if (G(g)) {
|
|
6564
|
-
const P =
|
|
6565
|
-
|
|
6718
|
+
const P = zs(g, a);
|
|
6719
|
+
S(b, p, Ws("default", P));
|
|
6566
6720
|
} else {
|
|
6567
6721
|
const P = sl(g, b, r, l), x = P.length;
|
|
6568
|
-
for (let
|
|
6722
|
+
for (let w = 0; w < x; w++) {
|
|
6569
6723
|
b = b, p = p;
|
|
6570
|
-
const C = P[
|
|
6724
|
+
const C = P[w], k = zs(C, a);
|
|
6571
6725
|
for (const A in b)
|
|
6572
|
-
|
|
6726
|
+
S(b[A], sg(p, A), Ws(A, k), w, x);
|
|
6573
6727
|
}
|
|
6574
6728
|
}
|
|
6575
6729
|
c = d, d += v;
|
|
@@ -6578,12 +6732,12 @@ function rg(t, { defaultTransition: e = {}, ...n } = {}, r, o) {
|
|
|
6578
6732
|
for (const g in f) {
|
|
6579
6733
|
const b = f[g];
|
|
6580
6734
|
b.sort(tg);
|
|
6581
|
-
const p = [], v = [],
|
|
6735
|
+
const p = [], v = [], S = [];
|
|
6582
6736
|
for (let x = 0; x < b.length; x++) {
|
|
6583
|
-
const { at:
|
|
6584
|
-
p.push(C), v.push(/* @__PURE__ */
|
|
6737
|
+
const { at: w, value: C, easing: k } = b[x];
|
|
6738
|
+
p.push(C), v.push(/* @__PURE__ */ se(0, h, w)), S.push(k || "easeOut");
|
|
6585
6739
|
}
|
|
6586
|
-
v[0] !== 0 && (v.unshift(0), p.unshift(p[0]),
|
|
6740
|
+
v[0] !== 0 && (v.unshift(0), p.unshift(p[0]), S.unshift(eg)), v[v.length - 1] !== 1 && (v.push(1), p.push(null)), s.has(m) || s.set(m, {
|
|
6587
6741
|
keyframes: {},
|
|
6588
6742
|
transition: {}
|
|
6589
6743
|
});
|
|
@@ -6591,17 +6745,17 @@ function rg(t, { defaultTransition: e = {}, ...n } = {}, r, o) {
|
|
|
6591
6745
|
P.keyframes[g] = p, P.transition[g] = {
|
|
6592
6746
|
...e,
|
|
6593
6747
|
duration: h,
|
|
6594
|
-
ease:
|
|
6748
|
+
ease: S,
|
|
6595
6749
|
times: v,
|
|
6596
6750
|
...n
|
|
6597
6751
|
};
|
|
6598
6752
|
}
|
|
6599
6753
|
}), s;
|
|
6600
6754
|
}
|
|
6601
|
-
function
|
|
6755
|
+
function zs(t, e) {
|
|
6602
6756
|
return !e.has(t) && e.set(t, {}), e.get(t);
|
|
6603
6757
|
}
|
|
6604
|
-
function
|
|
6758
|
+
function Ws(t, e) {
|
|
6605
6759
|
return e[t] || (e[t] = []), e[t];
|
|
6606
6760
|
}
|
|
6607
6761
|
function og(t) {
|
|
@@ -6634,7 +6788,7 @@ class cg extends Qa {
|
|
|
6634
6788
|
delete n.output[e];
|
|
6635
6789
|
}
|
|
6636
6790
|
measureInstanceViewportBox() {
|
|
6637
|
-
return
|
|
6791
|
+
return $();
|
|
6638
6792
|
}
|
|
6639
6793
|
build(e, n) {
|
|
6640
6794
|
Object.assign(e.output, n);
|
|
@@ -6711,19 +6865,19 @@ function pg(t) {
|
|
|
6711
6865
|
}
|
|
6712
6866
|
return e;
|
|
6713
6867
|
}
|
|
6714
|
-
const
|
|
6868
|
+
const $s = pg(), Hs = "calc(100% - env(safe-area-inset-top))", Fe = typeof window == "undefined", gg = {
|
|
6715
6869
|
ease: "easeOut",
|
|
6716
6870
|
duration: 0.2
|
|
6717
6871
|
}, yg = {
|
|
6718
6872
|
ease: "linear",
|
|
6719
6873
|
duration: 0.01
|
|
6720
|
-
}, bg = 0.6, vg = 500, He =
|
|
6874
|
+
}, bg = 0.6, vg = 500, He = Fe ? ct : ei;
|
|
6721
6875
|
function xg({
|
|
6722
6876
|
y: t,
|
|
6723
6877
|
rootId: e,
|
|
6724
6878
|
sheetRef: n
|
|
6725
6879
|
}) {
|
|
6726
|
-
const r = X(
|
|
6880
|
+
const r = X(Fe ? 0 : window.innerHeight);
|
|
6727
6881
|
function o() {
|
|
6728
6882
|
const s = document.querySelector(`#${e}`), a = document.querySelector("body");
|
|
6729
6883
|
s && (a.style.backgroundColor = "#000", s.style.overflow = "hidden", s.style.transitionTimingFunction = "cubic-bezier(0.32, 0.72, 0, 1)", s.style.transitionProperty = "transform, border-radius", s.style.transitionDuration = "0.5s", s.style.transformOrigin = "center top");
|
|
@@ -6747,8 +6901,8 @@ function xg({
|
|
|
6747
6901
|
r.current = ((h = n.current) == null ? void 0 : h.offsetHeight) || window.innerHeight, o();
|
|
6748
6902
|
}), u = t.on("change", (h) => {
|
|
6749
6903
|
if (s) {
|
|
6750
|
-
const f = Math.max(0, 1 - h / r.current), m = window.innerWidth, g = (m - 16) / m, b = nn(f, [0, 1], [0, 24]), p = nn(f, [0, 1], [1, g]), v = nn(f, [0, 1], [0, 10]),
|
|
6751
|
-
s.style.transform = `scale(${p}) translate3d(0, calc(${
|
|
6904
|
+
const f = Math.max(0, 1 - h / r.current), m = window.innerWidth, g = (m - 16) / m, b = nn(f, [0, 1], [0, 24]), p = nn(f, [0, 1], [1, g]), v = nn(f, [0, 1], [0, 10]), S = "env(safe-area-inset-top)";
|
|
6905
|
+
s.style.transform = `scale(${p}) translate3d(0, calc(${S} + ${b}px), 0)`, s.style.borderTopRightRadius = `${v}px`, s.style.borderTopLeftRadius = `${v}px`;
|
|
6752
6906
|
}
|
|
6753
6907
|
}), c = t.on("animationComplete", a), d = t.on("animationCancel", a);
|
|
6754
6908
|
return () => {
|
|
@@ -6756,8 +6910,8 @@ function xg({
|
|
|
6756
6910
|
};
|
|
6757
6911
|
}, [t, e]);
|
|
6758
6912
|
}
|
|
6759
|
-
function
|
|
6760
|
-
const n =
|
|
6913
|
+
function Sg(t, e) {
|
|
6914
|
+
const n = kg(t), r = X(!1), o = J(() => {
|
|
6761
6915
|
var i, s, a, l;
|
|
6762
6916
|
r.current ? ((l = (a = e.current) == null ? void 0 : a.onCloseEnd) == null || l.call(a), r.current = !1) : ((s = (i = e.current) == null ? void 0 : i.onOpenEnd) == null || s.call(i), r.current = !0);
|
|
6763
6917
|
}, [t, n]);
|
|
@@ -6766,10 +6920,10 @@ function wg(t, e) {
|
|
|
6766
6920
|
!n && t ? (s = (i = e.current) == null ? void 0 : i.onOpenStart) == null || s.call(i) : !t && n && ((l = (a = e.current) == null ? void 0 : a.onCloseStart) == null || l.call(a));
|
|
6767
6921
|
}, [t, n]), { handleAnimationComplete: o };
|
|
6768
6922
|
}
|
|
6769
|
-
function
|
|
6923
|
+
function wg() {
|
|
6770
6924
|
const [t, e] = Tt({
|
|
6771
|
-
height:
|
|
6772
|
-
width:
|
|
6925
|
+
height: Fe ? 0 : window.innerHeight,
|
|
6926
|
+
width: Fe ? 0 : window.innerWidth
|
|
6773
6927
|
});
|
|
6774
6928
|
return He(() => {
|
|
6775
6929
|
function n() {
|
|
@@ -6783,7 +6937,7 @@ function kg() {
|
|
|
6783
6937
|
};
|
|
6784
6938
|
}, []), t;
|
|
6785
6939
|
}
|
|
6786
|
-
function
|
|
6940
|
+
function kg(t) {
|
|
6787
6941
|
const e = X(void 0);
|
|
6788
6942
|
return ct(() => {
|
|
6789
6943
|
e.current = t;
|
|
@@ -6909,16 +7063,16 @@ const Mg = /* @__PURE__ */ new Set([
|
|
|
6909
7063
|
"reset"
|
|
6910
7064
|
]);
|
|
6911
7065
|
let Je = 0, me;
|
|
6912
|
-
function
|
|
7066
|
+
function Fg(t = {}) {
|
|
6913
7067
|
const { isDisabled: e } = t;
|
|
6914
7068
|
He(() => {
|
|
6915
7069
|
if (!e)
|
|
6916
|
-
return Je++, Je === 1 && (Dg() ? me =
|
|
7070
|
+
return Je++, Je === 1 && (Dg() ? me = Ig() : me = Lg()), () => {
|
|
6917
7071
|
Je--, Je === 0 && (me == null || me());
|
|
6918
7072
|
};
|
|
6919
7073
|
}, [e]);
|
|
6920
7074
|
}
|
|
6921
|
-
function
|
|
7075
|
+
function Lg() {
|
|
6922
7076
|
return mr(
|
|
6923
7077
|
Te(
|
|
6924
7078
|
document.documentElement,
|
|
@@ -6928,7 +7082,7 @@ function Ig() {
|
|
|
6928
7082
|
Te(document.documentElement, "overflow", "hidden")
|
|
6929
7083
|
);
|
|
6930
7084
|
}
|
|
6931
|
-
function
|
|
7085
|
+
function Ig() {
|
|
6932
7086
|
let t, e = 0;
|
|
6933
7087
|
const n = (d) => {
|
|
6934
7088
|
var f;
|
|
@@ -7018,7 +7172,7 @@ function Ys(t) {
|
|
|
7018
7172
|
function Xs(t) {
|
|
7019
7173
|
return t instanceof HTMLInputElement && !Mg.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
|
|
7020
7174
|
}
|
|
7021
|
-
const
|
|
7175
|
+
const kt = {
|
|
7022
7176
|
wrapper: {
|
|
7023
7177
|
position: "fixed",
|
|
7024
7178
|
top: 0,
|
|
@@ -7104,16 +7258,16 @@ const St = {
|
|
|
7104
7258
|
prefersReducedMotion: b = !1,
|
|
7105
7259
|
tweenConfig: p = gg,
|
|
7106
7260
|
dragVelocityThreshold: v = vg,
|
|
7107
|
-
dragCloseThreshold:
|
|
7261
|
+
dragCloseThreshold: S = bg,
|
|
7108
7262
|
...P
|
|
7109
7263
|
}, x) => {
|
|
7110
|
-
const
|
|
7264
|
+
const w = X(null), C = fr(0), { height: k } = wg(), A = Yp(), E = !!(b || A), R = {
|
|
7111
7265
|
type: "tween",
|
|
7112
7266
|
...E ? yg : p
|
|
7113
|
-
}, M = fr(
|
|
7267
|
+
}, M = fr(k), q = hn(M, (V) => {
|
|
7114
7268
|
var Q;
|
|
7115
|
-
return V + 2 >=
|
|
7116
|
-
}), at = hn(M, (V) => V + 2 >=
|
|
7269
|
+
return V + 2 >= k ? -1 : (Q = h == null ? void 0 : h.zIndex) != null ? Q : 1300;
|
|
7270
|
+
}), at = hn(M, (V) => V + 2 >= k ? "hidden" : "visible"), N = X({
|
|
7117
7271
|
onOpenStart: t,
|
|
7118
7272
|
onOpenEnd: e,
|
|
7119
7273
|
onCloseStart: r,
|
|
@@ -7127,30 +7281,30 @@ const St = {
|
|
|
7127
7281
|
onCloseEnd: o
|
|
7128
7282
|
};
|
|
7129
7283
|
});
|
|
7130
|
-
let
|
|
7131
|
-
|
|
7132
|
-
Cg(
|
|
7133
|
-
`Snap points need to be in descending order got: [${
|
|
7284
|
+
let F = u;
|
|
7285
|
+
F && (F = F.map((V) => V > 0 && V <= 1 ? Math.round(V * k) : V < 0 ? k + V : V), console.assert(
|
|
7286
|
+
Cg(F) || k === 0,
|
|
7287
|
+
`Snap points need to be in descending order got: [${F.join(", ")}]`
|
|
7134
7288
|
));
|
|
7135
|
-
const
|
|
7289
|
+
const I = Gn((V, { delta: Q }) => {
|
|
7136
7290
|
const U = M.getVelocity();
|
|
7137
7291
|
U > 0 && C.set(10), U < 0 && C.set(-10), M.set(Math.max(M.get() + Q.y, 0));
|
|
7138
|
-
}),
|
|
7292
|
+
}), z = Gn(() => {
|
|
7139
7293
|
const V = document.activeElement;
|
|
7140
|
-
if (!V || !
|
|
7141
|
-
(V.tagName === "INPUT" || V.tagName === "TEXTAREA") &&
|
|
7294
|
+
if (!V || !w.current) return;
|
|
7295
|
+
(V.tagName === "INPUT" || V.tagName === "TEXTAREA") && w.current.contains(V) && V.blur();
|
|
7142
7296
|
}), Rt = Gn((V, { velocity: Q }) => {
|
|
7143
7297
|
if (Q.y > v)
|
|
7144
7298
|
n();
|
|
7145
7299
|
else {
|
|
7146
|
-
const U =
|
|
7300
|
+
const U = w.current.getBoundingClientRect().height, wt = M.get();
|
|
7147
7301
|
let tt = 0;
|
|
7148
|
-
if (
|
|
7149
|
-
const
|
|
7150
|
-
f === "content-height" && !
|
|
7151
|
-
} else
|
|
7152
|
-
if (tt = Gs({ snapTo: tt, sheetHeight: U }),
|
|
7153
|
-
const
|
|
7302
|
+
if (F) {
|
|
7303
|
+
const he = F.map((Dn) => U - Math.min(Dn, U));
|
|
7304
|
+
f === "content-height" && !he.includes(0) && he.unshift(0), tt = Us(he, wt);
|
|
7305
|
+
} else wt / U > S && (tt = U);
|
|
7306
|
+
if (tt = Gs({ snapTo: tt, sheetHeight: U }), $s(M, tt, R), F && i) {
|
|
7307
|
+
const he = Math.abs(Math.round(F[0] - tt)), Dn = F.indexOf(Us(F, he));
|
|
7154
7308
|
i(Dn);
|
|
7155
7309
|
}
|
|
7156
7310
|
const Ot = Math.round(U);
|
|
@@ -7159,50 +7313,50 @@ const St = {
|
|
|
7159
7313
|
C.set(0);
|
|
7160
7314
|
});
|
|
7161
7315
|
ct(() => {
|
|
7162
|
-
if (!
|
|
7163
|
-
const V = l ? m :
|
|
7316
|
+
if (!F || !i) return;
|
|
7317
|
+
const V = l ? m : F.length - 1;
|
|
7164
7318
|
i(V);
|
|
7165
|
-
}, [l]),
|
|
7319
|
+
}, [l]), Wl(x, () => ({
|
|
7166
7320
|
y: M,
|
|
7167
7321
|
snapTo: (V) => {
|
|
7168
|
-
const Q =
|
|
7169
|
-
if ((
|
|
7170
|
-
const U = Q.getBoundingClientRect().height,
|
|
7171
|
-
snapTo: U -
|
|
7322
|
+
const Q = w.current;
|
|
7323
|
+
if ((F == null ? void 0 : F[V]) !== void 0 && Q) {
|
|
7324
|
+
const U = Q.getBoundingClientRect().height, wt = F[V], tt = Gs({
|
|
7325
|
+
snapTo: U - wt,
|
|
7172
7326
|
sheetHeight: U
|
|
7173
7327
|
});
|
|
7174
|
-
|
|
7328
|
+
$s(M, tt, R), i && i(V), tt >= U && n();
|
|
7175
7329
|
}
|
|
7176
7330
|
}
|
|
7177
7331
|
})), xg({
|
|
7178
7332
|
y: M,
|
|
7179
7333
|
rootId: c,
|
|
7180
|
-
sheetRef:
|
|
7181
|
-
}),
|
|
7334
|
+
sheetRef: w
|
|
7335
|
+
}), Fg({ isDisabled: a || !l });
|
|
7182
7336
|
const Vt = gt(() => g ? void 0 : {
|
|
7183
7337
|
drag: "y",
|
|
7184
7338
|
dragElastic: 0,
|
|
7185
7339
|
dragMomentum: !1,
|
|
7186
7340
|
dragPropagation: !1,
|
|
7187
|
-
onDrag:
|
|
7188
|
-
onDragStart:
|
|
7341
|
+
onDrag: I,
|
|
7342
|
+
onDragStart: z,
|
|
7189
7343
|
onDragEnd: Rt
|
|
7190
|
-
}, [g,
|
|
7344
|
+
}, [g, k]), Ke = {
|
|
7191
7345
|
y: M,
|
|
7192
|
-
sheetRef:
|
|
7346
|
+
sheetRef: w,
|
|
7193
7347
|
isOpen: l,
|
|
7194
7348
|
initialSnap: m,
|
|
7195
|
-
snapPoints:
|
|
7349
|
+
snapPoints: F,
|
|
7196
7350
|
detent: f,
|
|
7197
7351
|
indicatorRotation: C,
|
|
7198
7352
|
callbacks: N,
|
|
7199
7353
|
dragProps: Vt,
|
|
7200
|
-
windowHeight:
|
|
7354
|
+
windowHeight: k,
|
|
7201
7355
|
animationOptions: R,
|
|
7202
7356
|
reduceMotion: E,
|
|
7203
7357
|
disableDrag: g
|
|
7204
|
-
},
|
|
7205
|
-
return
|
|
7358
|
+
}, de = /* @__PURE__ */ y(ll.Provider, { value: Ke, children: /* @__PURE__ */ y(Et.div, { ...P, ref: x, style: { ...kt.wrapper, zIndex: q, visibility: at, ...h }, children: /* @__PURE__ */ y(Dd, { children: l ? /* @__PURE__ */ y(Pg, { children: ri.map(s, (V, Q) => $l(V, { key: `sheet-child-${Q}` })) }) : null }) }) });
|
|
7359
|
+
return Fe ? de : Fc(de, d != null ? d : document.body);
|
|
7206
7360
|
}
|
|
7207
7361
|
);
|
|
7208
7362
|
hl.displayName = "Sheet";
|
|
@@ -7219,7 +7373,7 @@ const fl = _(
|
|
|
7219
7373
|
detent: h,
|
|
7220
7374
|
animationOptions: f,
|
|
7221
7375
|
reduceMotion: m
|
|
7222
|
-
} = Pn(), { handleAnimationComplete: g } =
|
|
7376
|
+
} = Pn(), { handleAnimationComplete: g } = Sg(s, a), b = l ? l[0] - l[u] : 0, p = l ? l[0] : null, v = p !== null ? `min(${p}px, ${Hs})` : Hs;
|
|
7223
7377
|
return /* @__PURE__ */ y(
|
|
7224
7378
|
Et.div,
|
|
7225
7379
|
{
|
|
@@ -7227,7 +7381,7 @@ const fl = _(
|
|
|
7227
7381
|
ref: no([c, o]),
|
|
7228
7382
|
className: `react-modal-sheet-container ${n}`,
|
|
7229
7383
|
style: {
|
|
7230
|
-
...
|
|
7384
|
+
...kt.container,
|
|
7231
7385
|
...e,
|
|
7232
7386
|
...h === "full-height" && { height: v },
|
|
7233
7387
|
...h === "content-height" && { maxHeight: v },
|
|
@@ -7252,7 +7406,7 @@ const ml = _(
|
|
|
7252
7406
|
...o,
|
|
7253
7407
|
ref: no([i, l]),
|
|
7254
7408
|
className: `react-modal-sheet-content ${r}`,
|
|
7255
|
-
style: { ...
|
|
7409
|
+
style: { ...kt.content, ...e },
|
|
7256
7410
|
...c,
|
|
7257
7411
|
dragConstraints: l,
|
|
7258
7412
|
onMeasureDragConstraints: u,
|
|
@@ -7269,23 +7423,23 @@ const pl = _(({ children: t, style: e, disableDrag: n, ...r }, o) => {
|
|
|
7269
7423
|
{
|
|
7270
7424
|
...r,
|
|
7271
7425
|
ref: no([o, a]),
|
|
7272
|
-
style: { ...
|
|
7426
|
+
style: { ...kt.headerWrapper, ...e },
|
|
7273
7427
|
...u,
|
|
7274
7428
|
dragConstraints: a,
|
|
7275
7429
|
onMeasureDragConstraints: l,
|
|
7276
|
-
children: t || /* @__PURE__ */ D("div", { className: "react-modal-sheet-header", style:
|
|
7430
|
+
children: t || /* @__PURE__ */ D("div", { className: "react-modal-sheet-header", style: kt.header, children: [
|
|
7277
7431
|
/* @__PURE__ */ y(
|
|
7278
7432
|
Et.span,
|
|
7279
7433
|
{
|
|
7280
7434
|
className: "react-modal-sheet-drag-indicator",
|
|
7281
|
-
style: { ...
|
|
7435
|
+
style: { ...kt.indicator, transform: c }
|
|
7282
7436
|
}
|
|
7283
7437
|
),
|
|
7284
7438
|
/* @__PURE__ */ y(
|
|
7285
7439
|
Et.span,
|
|
7286
7440
|
{
|
|
7287
7441
|
className: "react-modal-sheet-drag-indicator",
|
|
7288
|
-
style: { ...
|
|
7442
|
+
style: { ...kt.indicator, transform: d }
|
|
7289
7443
|
}
|
|
7290
7444
|
)
|
|
7291
7445
|
] })
|
|
@@ -7301,7 +7455,7 @@ const qs = (t) => !!t.onClick || !!t.onTap, gl = _(({ style: t = {}, className:
|
|
|
7301
7455
|
...n,
|
|
7302
7456
|
ref: r,
|
|
7303
7457
|
className: `react-modal-sheet-backdrop ${e}`,
|
|
7304
|
-
style: { ...
|
|
7458
|
+
style: { ...kt.backdrop, ...t, pointerEvents: i },
|
|
7305
7459
|
initial: { opacity: 0 },
|
|
7306
7460
|
animate: { opacity: 1 },
|
|
7307
7461
|
exit: { opacity: 0 }
|
|
@@ -7331,7 +7485,7 @@ const yl = _(
|
|
|
7331
7485
|
...o,
|
|
7332
7486
|
ref: i,
|
|
7333
7487
|
className: `react-modal-sheet-scroller ${r}`,
|
|
7334
|
-
style: { ...
|
|
7488
|
+
style: { ...kt.scroller, ...n },
|
|
7335
7489
|
...c,
|
|
7336
7490
|
children: e
|
|
7337
7491
|
}
|
|
@@ -7339,7 +7493,7 @@ const yl = _(
|
|
|
7339
7493
|
}
|
|
7340
7494
|
);
|
|
7341
7495
|
yl.displayName = "SheetScroller";
|
|
7342
|
-
const
|
|
7496
|
+
const Le = Object.assign(hl, {
|
|
7343
7497
|
Container: fl,
|
|
7344
7498
|
Header: pl,
|
|
7345
7499
|
Content: ml,
|
|
@@ -7394,7 +7548,7 @@ const Ie = Object.assign(hl, {
|
|
|
7394
7548
|
defaultVariants: {
|
|
7395
7549
|
fullHeight: !1
|
|
7396
7550
|
}
|
|
7397
|
-
}), oo = xt({ rounded: 20 }),
|
|
7551
|
+
}), oo = xt({ rounded: 20 }), ue = _(
|
|
7398
7552
|
({
|
|
7399
7553
|
children: t,
|
|
7400
7554
|
snapPercent: e = { min: 0, max: null },
|
|
@@ -7410,7 +7564,7 @@ const Ie = Object.assign(hl, {
|
|
|
7410
7564
|
e && e.max && (c = [e.max * window.innerHeight, e.min * window.innerHeight]);
|
|
7411
7565
|
const d = c || (n ? [n] : void 0), h = An({ fullHeight: r });
|
|
7412
7566
|
return /* @__PURE__ */ y(oo.Provider, { value: { rounded: i, onClose: a }, children: /* @__PURE__ */ y(
|
|
7413
|
-
|
|
7567
|
+
Le,
|
|
7414
7568
|
{
|
|
7415
7569
|
ref: u,
|
|
7416
7570
|
snapPoints: d,
|
|
@@ -7424,7 +7578,7 @@ const Ie = Object.assign(hl, {
|
|
|
7424
7578
|
) });
|
|
7425
7579
|
}
|
|
7426
7580
|
);
|
|
7427
|
-
|
|
7581
|
+
ue.displayName = "BottomSheet";
|
|
7428
7582
|
const bl = _(
|
|
7429
7583
|
({ children: t, className: e, ...n }, r) => {
|
|
7430
7584
|
const o = An();
|
|
@@ -7436,11 +7590,11 @@ const vl = _(
|
|
|
7436
7590
|
({ className: t, children: e, css: n, ...r }, o) => {
|
|
7437
7591
|
const i = An.raw(), { rounded: s } = H(oo), a = K(yt(i.content, n), t);
|
|
7438
7592
|
return /* @__PURE__ */ y(
|
|
7439
|
-
|
|
7593
|
+
Le.Container,
|
|
7440
7594
|
{
|
|
7441
7595
|
style: { backgroundColor: "transparent", borderTopLeftRadius: s, borderTopRightRadius: s },
|
|
7442
7596
|
children: /* @__PURE__ */ y(
|
|
7443
|
-
|
|
7597
|
+
Le.Content,
|
|
7444
7598
|
{
|
|
7445
7599
|
ref: o,
|
|
7446
7600
|
className: a,
|
|
@@ -7461,7 +7615,7 @@ const xl = _(
|
|
|
7461
7615
|
({ className: t, children: e, opacity: n = 0.5, disableCloseOnTap: r, style: o, ...i }, s) => {
|
|
7462
7616
|
const a = An(), { onClose: l } = H(oo), u = K(a.backdrop, t);
|
|
7463
7617
|
return /* @__PURE__ */ y(
|
|
7464
|
-
|
|
7618
|
+
Le.Backdrop,
|
|
7465
7619
|
{
|
|
7466
7620
|
ref: s,
|
|
7467
7621
|
className: u,
|
|
@@ -7475,7 +7629,7 @@ const xl = _(
|
|
|
7475
7629
|
}
|
|
7476
7630
|
);
|
|
7477
7631
|
xl.displayName = "BottomSheet.Backdrop";
|
|
7478
|
-
const
|
|
7632
|
+
const Bg = () => /* @__PURE__ */ y(
|
|
7479
7633
|
"div",
|
|
7480
7634
|
{
|
|
7481
7635
|
className: yt({
|
|
@@ -7491,11 +7645,11 @@ const Fg = () => /* @__PURE__ */ y(
|
|
|
7491
7645
|
})
|
|
7492
7646
|
}
|
|
7493
7647
|
);
|
|
7494
|
-
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
|
|
7648
|
+
ue.Header = bl;
|
|
7649
|
+
ue.Content = vl;
|
|
7650
|
+
ue.Backdrop = xl;
|
|
7651
|
+
ue.Handle = Bg;
|
|
7652
|
+
ue.Scroller = Le.Scroller;
|
|
7499
7653
|
const Og = ht({
|
|
7500
7654
|
className: "navigation",
|
|
7501
7655
|
slots: si.keys(),
|
|
@@ -7537,17 +7691,17 @@ const Og = ht({
|
|
|
7537
7691
|
}
|
|
7538
7692
|
}
|
|
7539
7693
|
}
|
|
7540
|
-
}), { withRootProvider: jg, withContext:
|
|
7694
|
+
}), { withRootProvider: jg, withContext: Sl } = It(Og), Ng = jg(ii), zg = Sl(
|
|
7541
7695
|
({ icon: t, label: e, ...n }) => /* @__PURE__ */ D(ai, { ...n, children: [
|
|
7542
7696
|
t,
|
|
7543
7697
|
e
|
|
7544
7698
|
] }),
|
|
7545
7699
|
"trigger"
|
|
7546
|
-
),
|
|
7700
|
+
), Wg = Sl(li, "list"), ob = {
|
|
7547
7701
|
Root: Ng,
|
|
7548
|
-
Item:
|
|
7549
|
-
List:
|
|
7550
|
-
},
|
|
7702
|
+
Item: zg,
|
|
7703
|
+
List: Wg
|
|
7704
|
+
}, $g = At({
|
|
7551
7705
|
base: {
|
|
7552
7706
|
display: "inline-flex",
|
|
7553
7707
|
alignItems: "center",
|
|
@@ -7669,13 +7823,13 @@ const Og = ht({
|
|
|
7669
7823
|
color: "neutral",
|
|
7670
7824
|
avatar: !1
|
|
7671
7825
|
}
|
|
7672
|
-
}),
|
|
7673
|
-
const i =
|
|
7826
|
+
}), wl = _(({ imageSrc: t, text: e, onDeleteClick: n, ...r }, o) => {
|
|
7827
|
+
const i = B(Ut.div, $g), s = (a) => {
|
|
7674
7828
|
a.stopPropagation(), n && n();
|
|
7675
7829
|
};
|
|
7676
7830
|
return /* @__PURE__ */ D(i, { avatar: !!t, ref: o, ...r, children: [
|
|
7677
7831
|
t ? /* @__PURE__ */ y(
|
|
7678
|
-
|
|
7832
|
+
B.img,
|
|
7679
7833
|
{
|
|
7680
7834
|
src: t,
|
|
7681
7835
|
className: yt({ borderRadius: "full", overflow: "hidden", width: 8, height: 8 }),
|
|
@@ -7683,11 +7837,11 @@ const Og = ht({
|
|
|
7683
7837
|
}
|
|
7684
7838
|
) : null,
|
|
7685
7839
|
e,
|
|
7686
|
-
n ? /* @__PURE__ */ y(
|
|
7840
|
+
n ? /* @__PURE__ */ y(Lc, { size: 12, onClick: s, className: yt({ cursor: "pointer" }) }) : null
|
|
7687
7841
|
] });
|
|
7688
7842
|
});
|
|
7689
|
-
|
|
7690
|
-
const sb =
|
|
7843
|
+
wl.displayName = "Tag";
|
|
7844
|
+
const sb = ie(wl), kl = ht({
|
|
7691
7845
|
className: "input",
|
|
7692
7846
|
slots: ["inputContainer", "requiredStar", "description", "label", "textLengthIndicator", "adornment"],
|
|
7693
7847
|
base: {
|
|
@@ -7924,13 +8078,13 @@ const sb = se(kl), Sl = ht({
|
|
|
7924
8078
|
fontSize: b,
|
|
7925
8079
|
...p
|
|
7926
8080
|
}, v) => {
|
|
7927
|
-
const
|
|
8081
|
+
const S = kl({
|
|
7928
8082
|
variant: s,
|
|
7929
8083
|
color: a,
|
|
7930
8084
|
radius: l,
|
|
7931
8085
|
removeBorder: m,
|
|
7932
8086
|
error: g
|
|
7933
|
-
}), P = X(null), x = v || P,
|
|
8087
|
+
}), P = X(null), x = v || P, w = J(
|
|
7934
8088
|
(R) => {
|
|
7935
8089
|
if (e) return;
|
|
7936
8090
|
const { value: M } = R.target;
|
|
@@ -7939,45 +8093,45 @@ const sb = se(kl), Sl = ht({
|
|
|
7939
8093
|
[e, u, i]
|
|
7940
8094
|
), C = J(() => {
|
|
7941
8095
|
e || x.current && x.current.focus();
|
|
7942
|
-
}, [e, x]),
|
|
7943
|
-
() => /* @__PURE__ */ y("span", { className:
|
|
7944
|
-
[
|
|
8096
|
+
}, [e, x]), k = J(
|
|
8097
|
+
() => /* @__PURE__ */ y("span", { className: S.requiredStar, "aria-hidden": "true", children: "*" }),
|
|
8098
|
+
[S.requiredStar]
|
|
7945
8099
|
), A = J(
|
|
7946
|
-
({ children: R }) => /* @__PURE__ */ y("span", { className:
|
|
7947
|
-
[
|
|
8100
|
+
({ children: R }) => /* @__PURE__ */ y("span", { className: S.description, children: R }),
|
|
8101
|
+
[S.description]
|
|
7948
8102
|
), E = J(
|
|
7949
|
-
({ visible: R, children: M }) => R ? /* @__PURE__ */ D("label", { className:
|
|
8103
|
+
({ visible: R, children: M }) => R ? /* @__PURE__ */ D("label", { className: S.label, children: [
|
|
7950
8104
|
M,
|
|
7951
|
-
t && /* @__PURE__ */ y(
|
|
8105
|
+
t && /* @__PURE__ */ y(k, {})
|
|
7952
8106
|
] }) : null,
|
|
7953
|
-
[
|
|
8107
|
+
[S.label, t, k]
|
|
7954
8108
|
);
|
|
7955
8109
|
return /* @__PURE__ */ D(bi, { gap: 1, className: "group", "data-disabled": e || void 0, css: { width: "100%" }, children: [
|
|
7956
8110
|
/* @__PURE__ */ y(E, { visible: !!(n && o === "outside"), children: n }),
|
|
7957
8111
|
" ",
|
|
7958
|
-
/* @__PURE__ */ D(pn, { className: K(
|
|
7959
|
-
h && /* @__PURE__ */ y(Ht, { className:
|
|
8112
|
+
/* @__PURE__ */ D(pn, { className: K(S.inputContainer, c), onClick: C, css: d, children: [
|
|
8113
|
+
h && /* @__PURE__ */ y(Ht, { className: S.adornment, children: h }),
|
|
7960
8114
|
/* @__PURE__ */ D(xr, { gap: 1, css: { width: "100%" }, children: [
|
|
7961
8115
|
/* @__PURE__ */ y(E, { visible: !!(n && o === "inside"), children: n }),
|
|
7962
8116
|
/* @__PURE__ */ y(
|
|
7963
|
-
|
|
8117
|
+
B.input,
|
|
7964
8118
|
{
|
|
7965
8119
|
ref: x,
|
|
7966
8120
|
disabled: e,
|
|
7967
|
-
onChange:
|
|
8121
|
+
onChange: w,
|
|
7968
8122
|
style: { ...p == null ? void 0 : p.style, fontSize: `${b}px` },
|
|
7969
8123
|
...p
|
|
7970
8124
|
}
|
|
7971
8125
|
)
|
|
7972
8126
|
] }),
|
|
7973
|
-
f && /* @__PURE__ */ y(Ht, { className:
|
|
8127
|
+
f && /* @__PURE__ */ y(Ht, { className: S.adornment, children: f })
|
|
7974
8128
|
] }),
|
|
7975
8129
|
r && /* @__PURE__ */ y(A, { children: r })
|
|
7976
8130
|
] });
|
|
7977
8131
|
}
|
|
7978
8132
|
);
|
|
7979
8133
|
Tl.displayName = "Input";
|
|
7980
|
-
const ib =
|
|
8134
|
+
const ib = ie(Tl), Pl = _(
|
|
7981
8135
|
({
|
|
7982
8136
|
value: t,
|
|
7983
8137
|
required: e = !1,
|
|
@@ -7997,50 +8151,50 @@ const ib = se(Tl), Pl = _(
|
|
|
7997
8151
|
error: g,
|
|
7998
8152
|
...b
|
|
7999
8153
|
}, p) => {
|
|
8000
|
-
const [v,
|
|
8154
|
+
const [v, S] = Tt((t == null ? void 0 : t.toString().length) || 0), [P, x] = Tt(t), w = kl({
|
|
8001
8155
|
variant: c,
|
|
8002
8156
|
color: l,
|
|
8003
8157
|
radius: u,
|
|
8004
8158
|
isTextArea: !0,
|
|
8005
8159
|
removeBorder: m,
|
|
8006
8160
|
error: g
|
|
8007
|
-
}), C = X(null),
|
|
8161
|
+
}), C = X(null), k = p || C, A = J(
|
|
8008
8162
|
(N) => {
|
|
8009
8163
|
if (n) return;
|
|
8010
|
-
const { value:
|
|
8011
|
-
N.target.value =
|
|
8164
|
+
const { value: F } = N.target;
|
|
8165
|
+
N.target.value = F.slice(0, s), x(N.target.value), d == null || d(N);
|
|
8012
8166
|
},
|
|
8013
8167
|
[n, d, s, a]
|
|
8014
8168
|
), E = J(() => {
|
|
8015
|
-
n ||
|
|
8016
|
-
}, [n,
|
|
8017
|
-
() => /* @__PURE__ */ y("span", { className:
|
|
8018
|
-
[
|
|
8169
|
+
n || k.current && k.current.focus();
|
|
8170
|
+
}, [n, k]), R = J(
|
|
8171
|
+
() => /* @__PURE__ */ y("span", { className: w.requiredStar, "aria-hidden": "true", children: "*" }),
|
|
8172
|
+
[w.requiredStar]
|
|
8019
8173
|
), M = J(
|
|
8020
|
-
({ children: N }) => /* @__PURE__ */ y("span", { className:
|
|
8021
|
-
[
|
|
8174
|
+
({ children: N }) => /* @__PURE__ */ y("span", { className: w.description, children: N }),
|
|
8175
|
+
[w.description]
|
|
8022
8176
|
), q = J(
|
|
8023
|
-
({ visible: N, children:
|
|
8024
|
-
|
|
8177
|
+
({ visible: N, children: F }) => N ? /* @__PURE__ */ D("label", { className: w.label, children: [
|
|
8178
|
+
F,
|
|
8025
8179
|
e && /* @__PURE__ */ y(R, {})
|
|
8026
8180
|
] }) : null,
|
|
8027
|
-
[
|
|
8028
|
-
), at = ({ count: N, limit:
|
|
8181
|
+
[w.label, e, R]
|
|
8182
|
+
), at = ({ count: N, limit: F }) => /* @__PURE__ */ y("span", { className: w.textLengthIndicator, children: `${N}${F ? ` / ${F}` : ""}` });
|
|
8029
8183
|
return ct(() => {
|
|
8030
8184
|
const N = t == null ? void 0 : t.toString().slice(0, s);
|
|
8031
|
-
x(N),
|
|
8185
|
+
x(N), S((N == null ? void 0 : N.length) || 0);
|
|
8032
8186
|
}, [t]), /* @__PURE__ */ D(bi, { gap: 1, className: "group", "data-disabled": n || void 0, css: { width: "100%" }, children: [
|
|
8033
8187
|
/* @__PURE__ */ y(q, { visible: !!(r && i === "outside"), children: r }),
|
|
8034
8188
|
/* @__PURE__ */ D(
|
|
8035
8189
|
xr,
|
|
8036
8190
|
{
|
|
8037
8191
|
gap: 1,
|
|
8038
|
-
className: K(
|
|
8192
|
+
className: K(w.inputContainer, h),
|
|
8039
8193
|
onClick: E,
|
|
8040
8194
|
css: f,
|
|
8041
8195
|
children: [
|
|
8042
8196
|
/* @__PURE__ */ y(q, { visible: !!(r && i === "inside"), children: r }),
|
|
8043
|
-
/* @__PURE__ */ y("textarea", { ref:
|
|
8197
|
+
/* @__PURE__ */ y("textarea", { ref: k, value: P, disabled: n, onChange: A, ...b }),
|
|
8044
8198
|
a && /* @__PURE__ */ y(at, { count: v, limit: s })
|
|
8045
8199
|
]
|
|
8046
8200
|
}
|
|
@@ -8050,7 +8204,7 @@ const ib = se(Tl), Pl = _(
|
|
|
8050
8204
|
}
|
|
8051
8205
|
);
|
|
8052
8206
|
Pl.displayName = "Textarea";
|
|
8053
|
-
const ab =
|
|
8207
|
+
const ab = ie(Pl), Hg = ht({
|
|
8054
8208
|
className: "tabs",
|
|
8055
8209
|
slots: si.keys(),
|
|
8056
8210
|
base: {
|
|
@@ -8199,7 +8353,7 @@ const ab = se(Pl), Hg = ht({
|
|
|
8199
8353
|
bottomLine: !0,
|
|
8200
8354
|
shadow: !1
|
|
8201
8355
|
}
|
|
8202
|
-
}), { withRootProvider: Ug, withContext: _n } =
|
|
8356
|
+
}), { withRootProvider: Ug, withContext: _n } = It(Hg), Zs = Ug(ii), Gg = _n(li, "list"), Kg = _n(ai, "trigger"), Yg = _n(Ql, "content"), Xg = _n(tc, "indicator"), lb = Object.assign(Zs, {
|
|
8203
8357
|
Root: Zs,
|
|
8204
8358
|
List: Gg,
|
|
8205
8359
|
Trigger: Kg,
|
|
@@ -8341,28 +8495,28 @@ const Dl = ({ toastOptions: t, ...e }) => /* @__PURE__ */ y(
|
|
|
8341
8495
|
}
|
|
8342
8496
|
);
|
|
8343
8497
|
Dl.displayName = "Toast.Toaster";
|
|
8344
|
-
const
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
(n) => /* @__PURE__ */ D(
|
|
8355
|
-
/* @__PURE__ */ D(
|
|
8356
|
-
(e == null ? void 0 : e.icon) && /* @__PURE__ */ y(
|
|
8357
|
-
/* @__PURE__ */ y(
|
|
8498
|
+
const O = _((t, e) => /* @__PURE__ */ y(Ht, { ref: e, ...t }));
|
|
8499
|
+
O.displayName = "Toast";
|
|
8500
|
+
O.Root = Cl;
|
|
8501
|
+
O.Content = Al;
|
|
8502
|
+
O.Description = _l;
|
|
8503
|
+
O.Icon = Rl;
|
|
8504
|
+
O.ActionTrigger = Vl;
|
|
8505
|
+
O.Toaster = Dl;
|
|
8506
|
+
O.show = (t, e) => {
|
|
8507
|
+
ee(
|
|
8508
|
+
(n) => /* @__PURE__ */ D(O.Root, { width: e != null && e.actionLabel ? "full" : "fit", children: [
|
|
8509
|
+
/* @__PURE__ */ D(O.Content, { children: [
|
|
8510
|
+
(e == null ? void 0 : e.icon) && /* @__PURE__ */ y(O.Icon, { icon: e == null ? void 0 : e.icon }),
|
|
8511
|
+
/* @__PURE__ */ y(O.Description, { children: t })
|
|
8358
8512
|
] }),
|
|
8359
8513
|
(e == null ? void 0 : e.actionLabel) && /* @__PURE__ */ y(
|
|
8360
|
-
|
|
8514
|
+
O.ActionTrigger,
|
|
8361
8515
|
{
|
|
8362
8516
|
asLink: e == null ? void 0 : e.asLink,
|
|
8363
8517
|
onClick: () => {
|
|
8364
8518
|
var r;
|
|
8365
|
-
(r = e == null ? void 0 : e.onActionClick) == null || r.call(e), e != null && e.disableCloseOnActionClick ||
|
|
8519
|
+
(r = e == null ? void 0 : e.onActionClick) == null || r.call(e), e != null && e.disableCloseOnActionClick || ee.dismiss(n.id);
|
|
8366
8520
|
},
|
|
8367
8521
|
children: e == null ? void 0 : e.actionLabel
|
|
8368
8522
|
}
|
|
@@ -8374,22 +8528,22 @@ F.show = (t, e) => {
|
|
|
8374
8528
|
}
|
|
8375
8529
|
);
|
|
8376
8530
|
};
|
|
8377
|
-
|
|
8378
|
-
|
|
8531
|
+
O.success = (t, e) => {
|
|
8532
|
+
ee(
|
|
8379
8533
|
(n) => {
|
|
8380
8534
|
var r;
|
|
8381
|
-
return /* @__PURE__ */ D(
|
|
8382
|
-
/* @__PURE__ */ D(
|
|
8383
|
-
/* @__PURE__ */ y(
|
|
8384
|
-
/* @__PURE__ */ y(
|
|
8535
|
+
return /* @__PURE__ */ D(O.Root, { width: e != null && e.actionLabel ? "full" : "fit", children: [
|
|
8536
|
+
/* @__PURE__ */ D(O.Content, { children: [
|
|
8537
|
+
/* @__PURE__ */ y(O.Icon, { icon: (r = e == null ? void 0 : e.icon) != null ? r : /* @__PURE__ */ y(Ic, {}) }),
|
|
8538
|
+
/* @__PURE__ */ y(O.Description, { children: t })
|
|
8385
8539
|
] }),
|
|
8386
8540
|
(e == null ? void 0 : e.actionLabel) && /* @__PURE__ */ y(
|
|
8387
|
-
|
|
8541
|
+
O.ActionTrigger,
|
|
8388
8542
|
{
|
|
8389
8543
|
asLink: e == null ? void 0 : e.asLink,
|
|
8390
8544
|
onClick: () => {
|
|
8391
8545
|
var o;
|
|
8392
|
-
(o = e == null ? void 0 : e.onActionClick) == null || o.call(e), e != null && e.disableCloseOnActionClick ||
|
|
8546
|
+
(o = e == null ? void 0 : e.onActionClick) == null || o.call(e), e != null && e.disableCloseOnActionClick || ee.dismiss(n.id);
|
|
8393
8547
|
},
|
|
8394
8548
|
children: e == null ? void 0 : e.actionLabel
|
|
8395
8549
|
}
|
|
@@ -8402,22 +8556,22 @@ F.success = (t, e) => {
|
|
|
8402
8556
|
}
|
|
8403
8557
|
);
|
|
8404
8558
|
};
|
|
8405
|
-
|
|
8406
|
-
console.error("error", t),
|
|
8559
|
+
O.error = (t, e) => {
|
|
8560
|
+
console.error("error", t), ee(
|
|
8407
8561
|
(n) => {
|
|
8408
8562
|
var r;
|
|
8409
|
-
return /* @__PURE__ */ D(
|
|
8410
|
-
/* @__PURE__ */ D(
|
|
8411
|
-
/* @__PURE__ */ y(
|
|
8412
|
-
/* @__PURE__ */ y(
|
|
8563
|
+
return /* @__PURE__ */ D(O.Root, { width: e != null && e.actionLabel ? "full" : "fit", children: [
|
|
8564
|
+
/* @__PURE__ */ D(O.Content, { children: [
|
|
8565
|
+
/* @__PURE__ */ y(O.Icon, { icon: (r = e == null ? void 0 : e.icon) != null ? r : /* @__PURE__ */ y(Bc, {}) }),
|
|
8566
|
+
/* @__PURE__ */ y(O.Description, { children: t })
|
|
8413
8567
|
] }),
|
|
8414
8568
|
(e == null ? void 0 : e.actionLabel) && /* @__PURE__ */ y(
|
|
8415
|
-
|
|
8569
|
+
O.ActionTrigger,
|
|
8416
8570
|
{
|
|
8417
8571
|
asLink: e == null ? void 0 : e.asLink,
|
|
8418
8572
|
onClick: () => {
|
|
8419
8573
|
var o;
|
|
8420
|
-
(o = e == null ? void 0 : e.onActionClick) == null || o.call(e), e != null && e.disableCloseOnActionClick ||
|
|
8574
|
+
(o = e == null ? void 0 : e.onActionClick) == null || o.call(e), e != null && e.disableCloseOnActionClick || ee.dismiss(n.id);
|
|
8421
8575
|
},
|
|
8422
8576
|
children: e == null ? void 0 : e.actionLabel
|
|
8423
8577
|
}
|
|
@@ -8540,7 +8694,7 @@ const qg = ht({
|
|
|
8540
8694
|
radius: "md",
|
|
8541
8695
|
disabled: !1
|
|
8542
8696
|
}
|
|
8543
|
-
}), { withRootProvider: Zg, withContext: _t } =
|
|
8697
|
+
}), { withRootProvider: Zg, withContext: _t } = It(qg), Jg = Zg(_t(nc, "root")), Qg = _t(rc, "label"), ty = _t(({ description: t, ...e }) => /* @__PURE__ */ D(Ie, { children: [
|
|
8544
8698
|
/* @__PURE__ */ y(oc, { ...e }),
|
|
8545
8699
|
t && /* @__PURE__ */ y(El, { text: t })
|
|
8546
8700
|
] }), "trigger"), ey = _t(
|
|
@@ -8625,7 +8779,7 @@ const qg = ht({
|
|
|
8625
8779
|
}
|
|
8626
8780
|
}
|
|
8627
8781
|
}
|
|
8628
|
-
}), { withProvider: Ml, withContext: Ge } =
|
|
8782
|
+
}), { withProvider: Ml, withContext: Ge } = It(iy);
|
|
8629
8783
|
Ml(dc, "root");
|
|
8630
8784
|
const ay = Ml(hc, "root"), ly = Ge(
|
|
8631
8785
|
fc,
|
|
@@ -8739,14 +8893,14 @@ const ay = Ml(hc, "root"), ly = Ge(
|
|
|
8739
8893
|
defaultVariants: {
|
|
8740
8894
|
variant: "square"
|
|
8741
8895
|
}
|
|
8742
|
-
}), { withProvider:
|
|
8743
|
-
|
|
8744
|
-
const my =
|
|
8745
|
-
|
|
8896
|
+
}), { withProvider: Fl, withContext: Vn } = It(fy);
|
|
8897
|
+
Fl(xc, "root");
|
|
8898
|
+
const my = Fl(Sc, "root"), py = Vn(
|
|
8899
|
+
wc,
|
|
8746
8900
|
"control"
|
|
8747
8901
|
);
|
|
8748
8902
|
Vn(
|
|
8749
|
-
|
|
8903
|
+
kc,
|
|
8750
8904
|
"group"
|
|
8751
8905
|
);
|
|
8752
8906
|
const Js = Vn(
|
|
@@ -8916,9 +9070,9 @@ const by = () => /* @__PURE__ */ D("svg", { viewBox: "0 0 14 14", fill: "none",
|
|
|
8916
9070
|
}
|
|
8917
9071
|
}
|
|
8918
9072
|
}
|
|
8919
|
-
}), { withProvider:
|
|
8920
|
-
|
|
8921
|
-
const
|
|
9073
|
+
}), { withProvider: Ll, withContext: so } = It(xy);
|
|
9074
|
+
Ll(_c, "root");
|
|
9075
|
+
const Sy = Ll(Rc, "root"), wy = so(
|
|
8922
9076
|
Vc,
|
|
8923
9077
|
"control"
|
|
8924
9078
|
);
|
|
@@ -8926,11 +9080,11 @@ so(
|
|
|
8926
9080
|
Dc,
|
|
8927
9081
|
"label"
|
|
8928
9082
|
);
|
|
8929
|
-
const
|
|
9083
|
+
const ky = so(
|
|
8930
9084
|
Ec,
|
|
8931
9085
|
"thumb"
|
|
8932
|
-
), Ty = _((t, e) => /* @__PURE__ */ D(
|
|
8933
|
-
/* @__PURE__ */ y(
|
|
9086
|
+
), Ty = _((t, e) => /* @__PURE__ */ D(Sy, { ref: e, ...t, children: [
|
|
9087
|
+
/* @__PURE__ */ y(wy, { children: /* @__PURE__ */ y(ky, {}) }),
|
|
8934
9088
|
/* @__PURE__ */ y(Mc, {})
|
|
8935
9089
|
] }));
|
|
8936
9090
|
Ty.displayName = "Switch";
|
|
@@ -9011,8 +9165,8 @@ const Py = At({
|
|
|
9011
9165
|
}
|
|
9012
9166
|
}
|
|
9013
9167
|
}
|
|
9014
|
-
}),
|
|
9015
|
-
const a =
|
|
9168
|
+
}), Il = _(({ loading: t, disabled: e, children: n, color: r, onClick: o, ...i }, s) => {
|
|
9169
|
+
const a = B(Ut.button, Py);
|
|
9016
9170
|
return /* @__PURE__ */ y(
|
|
9017
9171
|
a,
|
|
9018
9172
|
{
|
|
@@ -9024,7 +9178,7 @@ const Py = At({
|
|
|
9024
9178
|
!t && !e && (o == null || o(l));
|
|
9025
9179
|
},
|
|
9026
9180
|
...i,
|
|
9027
|
-
children: t ? /* @__PURE__ */ D(
|
|
9181
|
+
children: t ? /* @__PURE__ */ D(Ie, { children: [
|
|
9028
9182
|
/* @__PURE__ */ y(
|
|
9029
9183
|
vr,
|
|
9030
9184
|
{
|
|
@@ -9038,13 +9192,13 @@ const Py = At({
|
|
|
9038
9192
|
children: /* @__PURE__ */ y(gn, { size: "md" })
|
|
9039
9193
|
}
|
|
9040
9194
|
),
|
|
9041
|
-
/* @__PURE__ */ y(
|
|
9195
|
+
/* @__PURE__ */ y(B.span, { css: { opacity: 0 }, children: n })
|
|
9042
9196
|
] }) : n
|
|
9043
9197
|
}
|
|
9044
9198
|
);
|
|
9045
9199
|
});
|
|
9046
|
-
|
|
9047
|
-
const db =
|
|
9200
|
+
Il.displayName = "Fab";
|
|
9201
|
+
const db = ie(ut(Il)), Cy = ht({
|
|
9048
9202
|
className: "list",
|
|
9049
9203
|
slots: ["item", "root"],
|
|
9050
9204
|
base: {
|
|
@@ -9103,7 +9257,7 @@ const db = se(ut(Bl)), Cy = ht({
|
|
|
9103
9257
|
size: "sm",
|
|
9104
9258
|
density: 1
|
|
9105
9259
|
}
|
|
9106
|
-
}), { withRootProvider: Ay, withContext:
|
|
9260
|
+
}), { withRootProvider: Ay, withContext: Bl } = It(Cy), Qs = Ay(Bl(B.ul, "root")), Ol = Bl(
|
|
9107
9261
|
({ startAdornment: t, endAdornment: e, label: n, subLabel: r, disabled: o, ...i }) => /* @__PURE__ */ D(Mn, { gap: 2, justify: "space-between", as: "li", ...i, disabled: o, children: [
|
|
9108
9262
|
/* @__PURE__ */ D(Mn, { children: [
|
|
9109
9263
|
t,
|
|
@@ -9195,7 +9349,7 @@ const Ry = {
|
|
|
9195
9349
|
"100%": { transform: "rotate(360deg)" }
|
|
9196
9350
|
}
|
|
9197
9351
|
};
|
|
9198
|
-
var Dy = { colors: { content: { neutral: { bold: { value: { base: "{colors.neutral.0}", _dark: "{colors.neutral.1100}" } }, default: { value: { base: "{colors.neutral.300}", _dark: "{colors.neutral.1000}" } }, subtle: { value: { base: "{colors.neutral.600}", _dark: "{colors.neutral.900}" } }, subtlest: { value: { base: "{colors.neutral.900}", _dark: "{colors.neutral.500}" } }, disabled: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.600}" } }, default_inverse: { value: { base: "{colors.neutral.1100}", _dark: "{colors.neutral.0}" } } }, neuroidPrimary: { default: { value: { base: "{colors.purple.500}", _dark: "{colors.purple.400}" } }, default_inverse: { value: { base: "{colors.purple.800}", _dark: "{colors.purple.800}" } } }, danger: { default: { value: { base: "{colors.red.600}", _dark: "{colors.red.400}" } } }, warning: { default: { value: { base: "{colors.orange.600}", _dark: "{colors.orange.400}" } } }, success: { default: { value: { base: "{colors.green.600}", _dark: "{colors.green.400}" } } }, informative: { default: { value: { base: "{colors.blue.600}", _dark: "{colors.blue.400}" } } }, zoltarinaPrimary: { default: { value: { base: "{colors.ohre.800}", _dark: "{colors.ohre.400}" } }, default_inverse: { value: { base: "{colors.ohre.1000}", _dark: "{colors.ohre.1000}" } } }, heydPrimary: { default: { value: { base: "{colors.cyan.800}", _dark: "{colors.cyan.400}" } }, default_inverse: { value: { base: "{colors.cyan.1000}", _dark: "{colors.cyan.1000}" } } }, static: { white: { bold: { value: { base: "{colors.neutral.1200}", _dark: "{colors.neutral.1200}" } }, default: { value: { base: "{colors.neutral.1050}", _dark: "{colors.neutral.1050}" } }, subtle: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.1000}" } }, subtlest: { value: { base: "{colors.neutral.900}", _dark: "{colors.neutral.900}" } }, disabled: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.800}" } } }, black: { bold: { value: { base: "{colors.neutral.0}", _dark: "{colors.neutral.0}" } }, default: { value: { base: "{colors.neutral.200}", _dark: "{colors.neutral.200}" } }, subtle: { value: { base: "{colors.neutral.400}", _dark: "{colors.neutral.400}" } }, subtlest: { value: { base: "{colors.neutral.600}", _dark: "{colors.neutral.600}" } }, disabled: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.800}" } } } }, heybeePrimary: { default: { value: { base: "{colors.yellow.800}", _dark: "{colors.yellow.500}" } }, default_inverse: { value: { base: "{colors.yellow.1000}", _dark: "{colors.yellow.1000}" } } }, neutralInverse: { bold: { value: { base: "{colors.neutral.1100}", _dark: "{colors.neutral.0}" } }, default: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.300}" } }, subtle: { value: { base: "{colors.neutral.900}", _dark: "{colors.neutral.600}" } }, subtlest: { value: { base: "{colors.neutral.500}", _dark: "{colors.neutral.900}" } }, disabled: { value: { base: "{colors.neutral.600}", _dark: "{colors.neutral.800}" } }, default_inverse: { value: { base: "{colors.neutral.0}", _dark: "{colors.neutral.1100}" } } } }, background: { neutral: { default: { value: { base: "{colors.neutral.1050}", _dark: "{colors.neutral.200}" } }, selected: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.300}" } }, disabled: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.400}" } } }, neuroidPrimary: { default: { value: { base: "{colors.purple.300}", _dark: "{colors.purple.600}" } }, selected: { value: { base: "{colors.purple.400}", _dark: "{colors.purple.700}" } } }, neuroidSecondary: { default: { value: { base: "{colors.purple.200}", _dark: "{colors.purple.300}" } }, selected: { value: { base: "{colors.purple.300}", _dark: "{colors.purple.400}" } } }, danger: { default: { value: { base: "{colors.red.300}", _dark: "{colors.red.700}" } }, selected: { value: { base: "{colors.red.400}", _dark: "{colors.red.800}" } } }, warning: { default: { value: { base: "{colors.orange.300}", _dark: "{colors.orange.700}" } }, selected: { value: { base: "{colors.orange.400}", _dark: "{colors.orange.800}" } } }, success: { default: { value: { base: "{colors.green.300}", _dark: "{colors.green.700}" } }, selected: { value: { base: "{colors.green.400}", _dark: "{colors.green.800}" } } }, informative: { default: { value: { base: "{colors.blue.300}", _dark: "{colors.blue.700}" } }, selected: { value: { base: "{colors.blue.400}", _dark: "{colors.blue.800}" } } }, zoltarinaPrimary: { default: { value: { base: "{colors.ohre.400}", _dark: "{colors.ohre.400}" } }, selected: { value: { base: "{colors.ohre.500}", _dark: "{colors.ohre.500}" } } }, zoltarinaSecondary: { default: { value: { base: "{colors.ohre.200}", _dark: "{colors.ohre.200}" } }, selected: { value: { base: "{colors.ohre.300}", _dark: "{colors.ohre.300}" } } }, heydPrimary: { default: { value: { base: "{colors.cyan.500}", _dark: "{colors.cyan.500}" } }, selected: { value: { base: "{colors.cyan.600}", _dark: "{colors.cyan.600}" } } }, heydSecondary: { default: { value: { base: "{colors.cyan.200}", _dark: "{colors.cyan.200}" } }, selected: { value: { base: "{colors.cyan.300}", _dark: "{colors.cyan.300}" } } }, static: { whiteAlpha: { bold: { value: { base: "{colors.white.700A}", _dark: "{colors.white.700A}" } }, default: { value: { base: "{colors.white.500A}", _dark: "{colors.white.500A}" } }, selected: { value: { base: "{colors.white.600A}", _dark: "{colors.white.600A}" } }, disabled: { value: { base: "{colors.white.500A}", _dark: "{colors.white.500A}" } } }, blackAlpha: { bold: { value: { base: "{colors.black.700A}", _dark: "{colors.black.700A}" } }, default: { value: { base: "{colors.black.500A}", _dark: "{colors.black.500A}" } }, selected: { value: { base: "{colors.black.600A}", _dark: "{colors.black.600A}" } }, disabled: { value: { base: "{colors.black.500A}", _dark: "{colors.black.500A}" } } } }, heybeePrimary: { default: { value: { base: "{colors.yellow.500}", _dark: "{colors.yellow.500}" } }, selected: { value: { base: "{colors.yellow.600}", _dark: "{colors.yellow.600}" } } }, neutralInverse: { default: { value: { base: "{colors.neutral.200}", _dark: "{colors.neutral.1050}" } }, selected: { value: { base: "{colors.neutral.300}", _dark: "{colors.neutral.1000}" } }, disabled: { value: { base: "{colors.neutral.400}", _dark: "{colors.neutral.1000}" } } } }, surface: { base: { value: { base: "{colors.neutral.1100}", _dark: "{colors.neutral.0}" } }, layer_1: { value: { base: "{colors.neutral.1100}", _dark: "{colors.neutral.100}" } }, layer_2: { value: { base: "{colors.neutral.1050}", _dark: "{colors.neutral.200}" } } }, shadow: { overlay: { value: { base: "{colors.black.100A}", _dark: "{colors.black.400A}" } }, raised: { value: { base: "{colors.black.400A}", _dark: "{colors.black.600A}" } } }, scrim: { default: { value: { base: "{colors.black.600A}", _dark: "{colors.black.600A}" } } }, skeleton: { default: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.100}" } }, subtle: { value: { base: "{colors.neutral.700}", _dark: "{colors.neutral.200}" } } }, border: { neutral: { default: { value: { base: "{colors.neutral.700}", _dark: "{colors.neutral.400}" } }, subtle: { value: { base: "{colors.neutral.900}", _dark: "{colors.neutral.300}" } }, disabled: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.200}" } } }, neuroidPrimary: { default: { value: { base: "{colors.purple.500}", _dark: "{colors.purple.400}" } } }, danger: { default: { value: { base: "{colors.red.500}", _dark: "{colors.red.400}" } } }, warning: { default: { value: { base: "{colors.orange.500}", _dark: "{colors.orange.400}" } } }, success: { default: { value: { base: "{colors.green.500}", _dark: "{colors.green.400}" } } }, informative: { default: { value: { base: "{colors.blue.500}", _dark: "{colors.blue.400}" } } }, zoltarinaPrimary: { default: { value: { base: "{colors.ohre.800}", _dark: "{colors.ohre.400}" } } }, heydPrimary: { default: { value: { base: "{colors.cyan.800}", _dark: "{colors.cyan.400}" } } }, heybeePrimary: { default: { value: { base: "{colors.yellow.800}", _dark: "{colors.yellow.500}" } } } } }, shadows: { raised: { value: "0px 1px 3px 0px {colors.shadow.raised}" }, overlay: { value: "0px 20px 25px -5px {colors.shadow.overlay}" } } }, Ey = { body: { md: { value: { fontFamily: "notoSans", fontWeight: "regular", fontSize: "sm", lineHeight: "lg", letterSpacing: "3xl" } }, lg: { value: { fontFamily: "notoSans", fontWeight: "regular", fontSize: "md", lineHeight: "xl", letterSpacing: "3xl" } }, sm: { value: { fontSize: "xs", fontWeight: "regular", fontFamily: "notoSans", lineHeight: "md", letterSpacing: "3xl" } } }, label: { sm: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "xs", lineHeight: "md", letterSpacing: "3xl" } }, md: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "sm", lineHeight: "lg", letterSpacing: "3xl" } } }, title: { sm: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "sm", lineHeight: "lg", letterSpacing: "2xl" } }, md: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "md", lineHeight: "xl", letterSpacing: "xl" } }, lg: { value: { fontFamily: "notoSans", fontWeight: "semibold", fontSize: "lg", lineHeight: "2xl", letterSpacing: "xl" } } }, headline: { sm: { value: { fontFamily: "inter", fontWeight: "semibold", fontSize: "xl", lineHeight: "2xl", letterSpacing: "lg" } }, md: { value: { fontFamily: "inter", fontWeight: "bold", fontSize: "2xl", lineHeight: "3xl", letterSpacing: "md" } } }, display: { md: { value: { fontFamily: "inter", fontWeight: "bold", fontSize: "3xl", lineHeight: "4xl", letterSpacing: "sm" } }, lg: { value: { fontFamily: "inter", fontWeight: "bold", fontSize: "4xl", lineHeight: "5xl", letterSpacing: "xs" } } } }, ti = { semantic: Dy, textStyles: Ey };
|
|
9352
|
+
var Dy = { colors: { content: { neutral: { bold: { value: { base: "{colors.neutral.0}", _dark: "{colors.neutral.1100}" } }, default: { value: { base: "{colors.neutral.300}", _dark: "{colors.neutral.1000}" } }, subtle: { value: { base: "{colors.neutral.600}", _dark: "{colors.neutral.900}" } }, subtlest: { value: { base: "{colors.neutral.900}", _dark: "{colors.neutral.500}" } }, disabled: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.600}" } }, default_inverse: { value: { base: "{colors.neutral.1100}", _dark: "{colors.neutral.0}" } } }, neuroidPrimary: { default: { value: { base: "{colors.purple.500}", _dark: "{colors.purple.400}" } }, default_inverse: { value: { base: "{colors.purple.800}", _dark: "{colors.purple.800}" } } }, danger: { default: { value: { base: "{colors.red.600}", _dark: "{colors.red.400}" } } }, warning: { default: { value: { base: "{colors.orange.600}", _dark: "{colors.orange.400}" } } }, success: { default: { value: { base: "{colors.green.600}", _dark: "{colors.green.400}" } } }, informative: { default: { value: { base: "{colors.blue.600}", _dark: "{colors.blue.400}" } } }, zoltarinaPrimary: { default: { value: { base: "{colors.ohre.800}", _dark: "{colors.ohre.400}" } }, default_inverse: { value: { base: "{colors.ohre.1000}", _dark: "{colors.ohre.1000}" } } }, heydPrimary: { default: { value: { base: "{colors.cyan.800}", _dark: "{colors.cyan.400}" } }, default_inverse: { value: { base: "{colors.cyan.1000}", _dark: "{colors.cyan.1000}" } } }, static: { white: { bold: { value: { base: "{colors.neutral.1200}", _dark: "{colors.neutral.1200}" } }, default: { value: { base: "{colors.neutral.1050}", _dark: "{colors.neutral.1050}" } }, subtle: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.1000}" } }, subtlest: { value: { base: "{colors.neutral.900}", _dark: "{colors.neutral.900}" } }, disabled: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.800}" } } }, black: { bold: { value: { base: "{colors.neutral.0}", _dark: "{colors.neutral.0}" } }, default: { value: { base: "{colors.neutral.200}", _dark: "{colors.neutral.200}" } }, subtle: { value: { base: "{colors.neutral.400}", _dark: "{colors.neutral.400}" } }, subtlest: { value: { base: "{colors.neutral.600}", _dark: "{colors.neutral.600}" } }, disabled: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.800}" } } } }, heybeePrimary: { default: { value: { base: "{colors.yellow.800}", _dark: "{colors.yellow.500}" } }, default_inverse: { value: { base: "{colors.yellow.1000}", _dark: "{colors.yellow.1000}" } } }, neutralInverse: { bold: { value: { base: "{colors.neutral.1100}", _dark: "{colors.neutral.0}" } }, default: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.300}" } }, subtle: { value: { base: "{colors.neutral.900}", _dark: "{colors.neutral.600}" } }, subtlest: { value: { base: "{colors.neutral.500}", _dark: "{colors.neutral.900}" } }, disabled: { value: { base: "{colors.neutral.600}", _dark: "{colors.neutral.800}" } }, default_inverse: { value: { base: "{colors.neutral.0}", _dark: "{colors.neutral.1100}" } } } }, background: { neutral: { default: { value: { base: "{colors.neutral.1050}", _dark: "{colors.neutral.200}" } }, selected: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.300}" } }, disabled: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.400}" } } }, neuroidPrimary: { default: { value: { base: "{colors.purple.300}", _dark: "{colors.purple.600}" } }, selected: { value: { base: "{colors.purple.400}", _dark: "{colors.purple.700}" } } }, neuroidSecondary: { default: { value: { base: "{colors.purple.200}", _dark: "{colors.purple.300}" } }, selected: { value: { base: "{colors.purple.300}", _dark: "{colors.purple.400}" } } }, danger: { default: { value: { base: "{colors.red.300}", _dark: "{colors.red.700}" } }, selected: { value: { base: "{colors.red.400}", _dark: "{colors.red.800}" } } }, warning: { default: { value: { base: "{colors.orange.300}", _dark: "{colors.orange.700}" } }, selected: { value: { base: "{colors.orange.400}", _dark: "{colors.orange.800}" } } }, success: { default: { value: { base: "{colors.green.300}", _dark: "{colors.green.700}" } }, selected: { value: { base: "{colors.green.400}", _dark: "{colors.green.800}" } } }, informative: { default: { value: { base: "{colors.blue.300}", _dark: "{colors.blue.700}" } }, selected: { value: { base: "{colors.blue.400}", _dark: "{colors.blue.800}" } } }, zoltarinaPrimary: { default: { value: { base: "{colors.ohre.400}", _dark: "{colors.ohre.400}" } }, selected: { value: { base: "{colors.ohre.500}", _dark: "{colors.ohre.500}" } } }, zoltarinaSecondary: { default: { value: { base: "{colors.ohre.200}", _dark: "{colors.ohre.200}" } }, selected: { value: { base: "{colors.ohre.300}", _dark: "{colors.ohre.300}" } } }, heydPrimary: { default: { value: { base: "{colors.cyan.500}", _dark: "{colors.cyan.500}" } }, selected: { value: { base: "{colors.cyan.600}", _dark: "{colors.cyan.600}" } } }, heydSecondary: { default: { value: { base: "{colors.cyan.200}", _dark: "{colors.cyan.200}" } }, selected: { value: { base: "{colors.cyan.300}", _dark: "{colors.cyan.300}" } } }, static: { whiteAlpha: { bold: { value: { base: "{colors.white.800A}", _dark: "{colors.white.800A}" } }, default: { value: { base: "{colors.white.500A}", _dark: "{colors.white.500A}" } }, selected: { value: { base: "{colors.white.600A}", _dark: "{colors.white.600A}" } }, disabled: { value: { base: "{colors.white.500A}", _dark: "{colors.white.500A}" } } }, blackAlpha: { bold: { value: { base: "{colors.black.700A}", _dark: "{colors.black.700A}" } }, default: { value: { base: "{colors.black.500A}", _dark: "{colors.black.500A}" } }, selected: { value: { base: "{colors.black.600A}", _dark: "{colors.black.600A}" } }, disabled: { value: { base: "{colors.black.500A}", _dark: "{colors.black.500A}" } } } }, heybeePrimary: { default: { value: { base: "{colors.yellow.500}", _dark: "{colors.yellow.500}" } }, selected: { value: { base: "{colors.yellow.600}", _dark: "{colors.yellow.600}" } } }, neutralInverse: { default: { value: { base: "{colors.neutral.200}", _dark: "{colors.neutral.1050}" } }, selected: { value: { base: "{colors.neutral.300}", _dark: "{colors.neutral.1000}" } }, disabled: { value: { base: "{colors.neutral.400}", _dark: "{colors.neutral.1000}" } } } }, surface: { base: { value: { base: "{colors.neutral.1100}", _dark: "{colors.neutral.0}" } }, layer_1: { value: { base: "{colors.neutral.1100}", _dark: "{colors.neutral.100}" } }, layer_2: { value: { base: "{colors.neutral.1050}", _dark: "{colors.neutral.200}" } } }, shadow: { overlay: { value: { base: "{colors.black.100A}", _dark: "{colors.black.400A}" } }, raised: { value: { base: "{colors.black.400A}", _dark: "{colors.black.600A}" } } }, scrim: { default: { value: { base: "{colors.black.600A}", _dark: "{colors.black.600A}" } } }, skeleton: { default: { value: { base: "{colors.neutral.800}", _dark: "{colors.neutral.100}" } }, subtle: { value: { base: "{colors.neutral.700}", _dark: "{colors.neutral.200}" } } }, border: { neutral: { default: { value: { base: "{colors.neutral.700}", _dark: "{colors.neutral.400}" } }, subtle: { value: { base: "{colors.neutral.900}", _dark: "{colors.neutral.300}" } }, disabled: { value: { base: "{colors.neutral.1000}", _dark: "{colors.neutral.200}" } } }, neuroidPrimary: { default: { value: { base: "{colors.purple.500}", _dark: "{colors.purple.400}" } } }, danger: { default: { value: { base: "{colors.red.500}", _dark: "{colors.red.400}" } } }, warning: { default: { value: { base: "{colors.orange.500}", _dark: "{colors.orange.400}" } } }, success: { default: { value: { base: "{colors.green.500}", _dark: "{colors.green.400}" } } }, informative: { default: { value: { base: "{colors.blue.500}", _dark: "{colors.blue.400}" } } }, zoltarinaPrimary: { default: { value: { base: "{colors.ohre.800}", _dark: "{colors.ohre.400}" } } }, heydPrimary: { default: { value: { base: "{colors.cyan.800}", _dark: "{colors.cyan.400}" } } }, heybeePrimary: { default: { value: { base: "{colors.yellow.800}", _dark: "{colors.yellow.500}" } } } } }, shadows: { raised: { value: "0px 1px 3px 0px {colors.shadow.raised}" }, overlay: { value: "0px 20px 25px -5px {colors.shadow.overlay}" } } }, Ey = { body: { md: { value: { fontFamily: "notoSans", fontWeight: "regular", fontSize: "sm", lineHeight: "lg", letterSpacing: "3xl" } }, lg: { value: { fontFamily: "notoSans", fontWeight: "regular", fontSize: "md", lineHeight: "xl", letterSpacing: "3xl" } }, sm: { value: { fontSize: "xs", fontWeight: "regular", fontFamily: "notoSans", lineHeight: "md", letterSpacing: "3xl" } } }, label: { sm: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "xs", lineHeight: "md", letterSpacing: "3xl" } }, md: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "sm", lineHeight: "lg", letterSpacing: "3xl" } } }, title: { sm: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "sm", lineHeight: "lg", letterSpacing: "2xl" } }, md: { value: { fontFamily: "notoSans", fontWeight: "medium", fontSize: "md", lineHeight: "xl", letterSpacing: "xl" } }, lg: { value: { fontFamily: "notoSans", fontWeight: "semibold", fontSize: "lg", lineHeight: "2xl", letterSpacing: "xl" } } }, headline: { sm: { value: { fontFamily: "inter", fontWeight: "semibold", fontSize: "xl", lineHeight: "2xl", letterSpacing: "lg" } }, md: { value: { fontFamily: "inter", fontWeight: "bold", fontSize: "2xl", lineHeight: "3xl", letterSpacing: "md" } } }, display: { md: { value: { fontFamily: "inter", fontWeight: "bold", fontSize: "3xl", lineHeight: "4xl", letterSpacing: "sm" } }, lg: { value: { fontFamily: "inter", fontWeight: "bold", fontSize: "4xl", lineHeight: "5xl", letterSpacing: "xs" } } }, en: { title: { main: { 22: { bold: { value: { fontFamily: "freeman", fontWeight: "regular", lineHeight: "120%", fontSize: "22px", letterSpacing: "3xl" } } }, 24: { bold: { value: { fontFamily: "freeman", fontWeight: "regular", lineHeight: "120%", fontSize: "24px", letterSpacing: "3xl" } } }, 30: { bold: { value: { fontFamily: "freeman", fontWeight: "regular", lineHeight: "120%", fontSize: "30px", letterSpacing: "2xl" } } }, 56: { bold: { value: { fontFamily: "freeman", fontWeight: "regular", lineHeight: "100%", fontSize: "56px", letterSpacing: "sm" } } } }, sub: { 16: { bold: { value: { fontFamily: "freeman", fontWeight: "regular", lineHeight: "120%", fontSize: "16px", letterSpacing: "3xl" } } }, 18: { bold: { value: { fontFamily: "freeman", fontWeight: "regular", lineHeight: "120%", fontSize: "18px", letterSpacing: "3xl" } } }, 20: { bold: { value: { fontFamily: "freeman", fontWeight: "regular", lineHeight: "120%", fontSize: "20px", letterSpacing: "3xl" } } } } }, text: { chat: { 14: { bold: { value: { fontFamily: "dmSans", fontWeight: "bold", lineHeight: "150%", fontSize: "14px", letterSpacing: "3xl" } }, regular: { value: { fontFamily: "dmSans", fontWeight: "regular", lineHeight: "150%", fontSize: "14px", letterSpacing: "3xl" } } }, 16: { bold: { value: { fontFamily: "dmSans", fontWeight: "bold", lineHeight: "150%", fontSize: "16px", letterSpacing: "3xl" } }, regular: { value: { fontFamily: "dmSans", fontWeight: "regular", lineHeight: "150%", fontSize: "16px", letterSpacing: "3xl" } } } }, body: { 14: { bold: { value: { fontFamily: "dmSans", fontWeight: "bold", lineHeight: "120%", fontSize: "14px", letterSpacing: "3xl" } }, regular: { value: { fontFamily: "dmSans", fontWeight: "regular", lineHeight: "120%", fontSize: "14px", letterSpacing: "3xl" } } }, 16: { bold: { value: { fontFamily: "dmSans", fontWeight: "bold", lineHeight: "120%", fontSize: "16px", letterSpacing: "3xl" } }, regular: { value: { fontFamily: "dmSans", fontWeight: "regular", lineHeight: "120%", fontSize: "16px", letterSpacing: "3xl" } } } } }, label: { caption: { 10: { semibold: { value: { fontFamily: "dmSans", fontWeight: "semibold", lineHeight: "120%", fontSize: "10px", letterSpacing: "3xl" } } }, 12: { semibold: { value: { fontFamily: "dmSans", fontWeight: "semibold", lineHeight: "120%", fontSize: "12px", letterSpacing: "3xl" } } }, 14: { semibold: { value: { fontFamily: "dmSans", fontWeight: "semibold", lineHeight: "120%", fontSize: "14px", letterSpacing: "3xl" } } } } } }, kr: { title: { main: { 22: { bold: { value: { fontFamily: "pretendard", fontWeight: "bold", lineHeight: "120%", fontSize: "22px", letterSpacing: "2xl" } } }, 24: { bold: { value: { fontFamily: "pretendard", fontWeight: "bold", lineHeight: "120%", fontSize: "24px", letterSpacing: "2xl" } } }, 30: { bold: { value: { fontFamily: "pretendard", fontWeight: "bold", lineHeight: "120%", fontSize: "30px", letterSpacing: "xl" } } }, 56: { bold: { value: { fontFamily: "pretendard", fontWeight: "bold", lineHeight: "100%", fontSize: "56px", letterSpacing: "sm" } } } }, sub: { 16: { bold: { value: { fontFamily: "pretendard", fontWeight: "bold", lineHeight: "120%", fontSize: "16px", letterSpacing: "2xl" } } }, 18: { bold: { value: { fontFamily: "pretendard", fontWeight: "bold", lineHeight: "120%", fontSize: "18px", letterSpacing: "2xl" } } }, 20: { bold: { value: { fontFamily: "pretendard", fontWeight: "bold", lineHeight: "120%", fontSize: "20px", letterSpacing: "2xl" } } } } }, text: { chat: { 14: { bold: { value: { fontFamily: "pretendard", fontWeight: "bold", lineHeight: "160%", fontSize: "14px", letterSpacing: "3xl" } }, regular: { value: { fontFamily: "pretendard", fontWeight: "regular", lineHeight: "160%", fontSize: "14px", letterSpacing: "3xl" } } }, 16: { bold: { value: { fontFamily: "pretendard", fontWeight: "bold", lineHeight: "160%", fontSize: "16px", letterSpacing: "2xl" } }, regular: { value: { fontFamily: "pretendard", fontWeight: "regular", lineHeight: "160%", fontSize: "16px", letterSpacing: "2xl" } } } }, body: { 14: { bold: { value: { fontFamily: "pretendard", fontWeight: "bold", lineHeight: "130%", fontSize: "14px", letterSpacing: "3xl" } }, regular: { value: { fontFamily: "pretendard", fontWeight: "regular", lineHeight: "130%", fontSize: "14px", letterSpacing: "3xl" } } }, 16: { bold: { value: { fontFamily: "pretendard", fontWeight: "bold", lineHeight: "130%", fontSize: "16px", letterSpacing: "2xl" } }, regular: { value: { fontFamily: "pretendard", fontWeight: "regular", lineHeight: "130%", fontSize: "16px", letterSpacing: "2xl" } } } } }, label: { caption: { 10: { semibold: { value: { fontFamily: "pretendard", fontWeight: "semibold", lineHeight: "120%", fontSize: "10px", letterSpacing: "3xl" } } }, 12: { semibold: { value: { fontFamily: "pretendard", fontWeight: "semibold", lineHeight: "120%", fontSize: "12px", letterSpacing: "3xl" } } }, 14: { semibold: { value: { fontFamily: "pretendard", fontWeight: "semibold", lineHeight: "120%", fontSize: "14px", letterSpacing: "3xl" } } } } } } }, ti = { semantic: Dy, textStyles: Ey };
|
|
9199
9353
|
const My = {
|
|
9200
9354
|
extend: {
|
|
9201
9355
|
collapsed: '&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',
|
|
@@ -9211,14 +9365,14 @@ const My = {
|
|
|
9211
9365
|
light: ":root &, .light &",
|
|
9212
9366
|
invalid: "&:is([aria-invalid])"
|
|
9213
9367
|
}
|
|
9214
|
-
},
|
|
9368
|
+
}, Fy = {
|
|
9215
9369
|
xs: "480px",
|
|
9216
9370
|
sm: "640px",
|
|
9217
9371
|
md: "768px",
|
|
9218
9372
|
lg: "1024px",
|
|
9219
9373
|
xl: "1280px",
|
|
9220
9374
|
"2xl": "1536px"
|
|
9221
|
-
},
|
|
9375
|
+
}, Ly = Kt.animations({
|
|
9222
9376
|
"backdrop-in": {
|
|
9223
9377
|
value: "fade-in 250ms {easings.emphasized-in}"
|
|
9224
9378
|
},
|
|
@@ -9261,7 +9415,7 @@ const My = {
|
|
|
9261
9415
|
spin: {
|
|
9262
9416
|
value: "spin 1s linear infinite"
|
|
9263
9417
|
}
|
|
9264
|
-
}),
|
|
9418
|
+
}), Iy = Kt.blurs({
|
|
9265
9419
|
sm: { value: "4px" },
|
|
9266
9420
|
base: { value: "8px" },
|
|
9267
9421
|
md: { value: "12px" },
|
|
@@ -9269,7 +9423,7 @@ const My = {
|
|
|
9269
9423
|
xl: { value: "24px" },
|
|
9270
9424
|
"2xl": { value: "40px" },
|
|
9271
9425
|
"3xl": { value: "64px" }
|
|
9272
|
-
}),
|
|
9426
|
+
}), By = {
|
|
9273
9427
|
none: { value: "none" }
|
|
9274
9428
|
}, Oy = Kt.durations({
|
|
9275
9429
|
fastest: { value: "50ms" },
|
|
@@ -9334,14 +9488,14 @@ const My = {
|
|
|
9334
9488
|
"6xl": { value: "72rem" },
|
|
9335
9489
|
"7xl": { value: "80rem" },
|
|
9336
9490
|
"8xl": { value: "90rem" }
|
|
9337
|
-
},
|
|
9491
|
+
}, zy = {
|
|
9338
9492
|
...jl,
|
|
9339
9493
|
...Ny,
|
|
9340
9494
|
full: { value: "100%" },
|
|
9341
9495
|
min: { value: "min-content" },
|
|
9342
9496
|
max: { value: "max-content" },
|
|
9343
9497
|
fit: { value: "fit-content" }
|
|
9344
|
-
},
|
|
9498
|
+
}, Wy = Kt.zIndex({
|
|
9345
9499
|
hide: {
|
|
9346
9500
|
value: -1
|
|
9347
9501
|
},
|
|
@@ -9378,7 +9532,7 @@ const My = {
|
|
|
9378
9532
|
tooltip: {
|
|
9379
9533
|
value: 1800
|
|
9380
9534
|
}
|
|
9381
|
-
}),
|
|
9535
|
+
}), $y = Kt({
|
|
9382
9536
|
// colors,
|
|
9383
9537
|
// fonts,
|
|
9384
9538
|
// fontSizes,
|
|
@@ -9386,13 +9540,13 @@ const My = {
|
|
|
9386
9540
|
// letterSpacings,
|
|
9387
9541
|
// lineHeights,
|
|
9388
9542
|
// radii,
|
|
9389
|
-
animations:
|
|
9390
|
-
blurs:
|
|
9391
|
-
borders:
|
|
9543
|
+
animations: Ly,
|
|
9544
|
+
blurs: Iy,
|
|
9545
|
+
borders: By,
|
|
9392
9546
|
durations: Oy,
|
|
9393
9547
|
easings: jy,
|
|
9394
|
-
sizes:
|
|
9395
|
-
zIndex:
|
|
9548
|
+
sizes: zy,
|
|
9549
|
+
zIndex: Wy,
|
|
9396
9550
|
...io.primitive,
|
|
9397
9551
|
spacing: {
|
|
9398
9552
|
...jl,
|
|
@@ -9404,16 +9558,16 @@ const My = {
|
|
|
9404
9558
|
globalCss: Ry,
|
|
9405
9559
|
theme: {
|
|
9406
9560
|
extend: {
|
|
9407
|
-
breakpoints:
|
|
9561
|
+
breakpoints: Fy,
|
|
9408
9562
|
keyframes: Vy,
|
|
9409
|
-
tokens:
|
|
9563
|
+
tokens: $y,
|
|
9410
9564
|
semanticTokens: ti.semantic,
|
|
9411
9565
|
textStyles: ti.textStyles
|
|
9412
9566
|
}
|
|
9413
9567
|
}
|
|
9414
9568
|
};
|
|
9415
9569
|
export {
|
|
9416
|
-
|
|
9570
|
+
ue as BottomSheet,
|
|
9417
9571
|
yi as Box,
|
|
9418
9572
|
tb as Button,
|
|
9419
9573
|
qu as Center,
|
|
@@ -9438,7 +9592,7 @@ export {
|
|
|
9438
9592
|
sb as Tag,
|
|
9439
9593
|
on as Text,
|
|
9440
9594
|
ab as TextArea,
|
|
9441
|
-
|
|
9595
|
+
O as Toast,
|
|
9442
9596
|
bi as VStack,
|
|
9443
9597
|
yb as createListCollection,
|
|
9444
9598
|
fb as preset
|