Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: components.js
const callback = observerCallbacks.get(entry.target);
[18000] Fix | Delete
callback && callback(entry);
[18001] Fix | Delete
};
[18002] Fix | Delete
const fireAllObserverCallbacks = (entries) => {
[18003] Fix | Delete
entries.forEach(fireObserverCallback);
[18004] Fix | Delete
};
[18005] Fix | Delete
function initIntersectionObserver({ root, ...options }) {
[18006] Fix | Delete
const lookupRoot = root || document;
[18007] Fix | Delete
/**
[18008] Fix | Delete
* If we don't have an observer lookup map for this root, create one.
[18009] Fix | Delete
*/
[18010] Fix | Delete
if (!observers.has(lookupRoot)) {
[18011] Fix | Delete
observers.set(lookupRoot, {});
[18012] Fix | Delete
}
[18013] Fix | Delete
const rootObservers = observers.get(lookupRoot);
[18014] Fix | Delete
const key = JSON.stringify(options);
[18015] Fix | Delete
/**
[18016] Fix | Delete
* If we don't have an observer for this combination of root and settings,
[18017] Fix | Delete
* create one.
[18018] Fix | Delete
*/
[18019] Fix | Delete
if (!rootObservers[key]) {
[18020] Fix | Delete
rootObservers[key] = new IntersectionObserver(fireAllObserverCallbacks, { root, ...options });
[18021] Fix | Delete
}
[18022] Fix | Delete
return rootObservers[key];
[18023] Fix | Delete
}
[18024] Fix | Delete
function observeIntersection(element, options, callback) {
[18025] Fix | Delete
const rootInteresectionObserver = initIntersectionObserver(options);
[18026] Fix | Delete
observerCallbacks.set(element, callback);
[18027] Fix | Delete
rootInteresectionObserver.observe(element);
[18028] Fix | Delete
return () => {
[18029] Fix | Delete
observerCallbacks.delete(element);
[18030] Fix | Delete
rootInteresectionObserver.unobserve(element);
[18031] Fix | Delete
};
[18032] Fix | Delete
}
[18033] Fix | Delete
[18034] Fix | Delete
[18035] Fix | Delete
[18036] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
[18037] Fix | Delete
[18038] Fix | Delete
[18039] Fix | Delete
[18040] Fix | Delete
const thresholdNames = {
[18041] Fix | Delete
some: 0,
[18042] Fix | Delete
all: 1,
[18043] Fix | Delete
};
[18044] Fix | Delete
class InViewFeature extends Feature {
[18045] Fix | Delete
constructor() {
[18046] Fix | Delete
super(...arguments);
[18047] Fix | Delete
this.hasEnteredView = false;
[18048] Fix | Delete
this.isInView = false;
[18049] Fix | Delete
}
[18050] Fix | Delete
startObserver() {
[18051] Fix | Delete
this.unmount();
[18052] Fix | Delete
const { viewport = {} } = this.node.getProps();
[18053] Fix | Delete
const { root, margin: rootMargin, amount = "some", once } = viewport;
[18054] Fix | Delete
const options = {
[18055] Fix | Delete
root: root ? root.current : undefined,
[18056] Fix | Delete
rootMargin,
[18057] Fix | Delete
threshold: typeof amount === "number" ? amount : thresholdNames[amount],
[18058] Fix | Delete
};
[18059] Fix | Delete
const onIntersectionUpdate = (entry) => {
[18060] Fix | Delete
const { isIntersecting } = entry;
[18061] Fix | Delete
/**
[18062] Fix | Delete
* If there's been no change in the viewport state, early return.
[18063] Fix | Delete
*/
[18064] Fix | Delete
if (this.isInView === isIntersecting)
[18065] Fix | Delete
return;
[18066] Fix | Delete
this.isInView = isIntersecting;
[18067] Fix | Delete
/**
[18068] Fix | Delete
* Handle hasEnteredView. If this is only meant to run once, and
[18069] Fix | Delete
* element isn't visible, early return. Otherwise set hasEnteredView to true.
[18070] Fix | Delete
*/
[18071] Fix | Delete
if (once && !isIntersecting && this.hasEnteredView) {
[18072] Fix | Delete
return;
[18073] Fix | Delete
}
[18074] Fix | Delete
else if (isIntersecting) {
[18075] Fix | Delete
this.hasEnteredView = true;
[18076] Fix | Delete
}
[18077] Fix | Delete
if (this.node.animationState) {
[18078] Fix | Delete
this.node.animationState.setActive("whileInView", isIntersecting);
[18079] Fix | Delete
}
[18080] Fix | Delete
/**
[18081] Fix | Delete
* Use the latest committed props rather than the ones in scope
[18082] Fix | Delete
* when this observer is created
[18083] Fix | Delete
*/
[18084] Fix | Delete
const { onViewportEnter, onViewportLeave } = this.node.getProps();
[18085] Fix | Delete
const callback = isIntersecting ? onViewportEnter : onViewportLeave;
[18086] Fix | Delete
callback && callback(entry);
[18087] Fix | Delete
};
[18088] Fix | Delete
return observeIntersection(this.node.current, options, onIntersectionUpdate);
[18089] Fix | Delete
}
[18090] Fix | Delete
mount() {
[18091] Fix | Delete
this.startObserver();
[18092] Fix | Delete
}
[18093] Fix | Delete
update() {
[18094] Fix | Delete
if (typeof IntersectionObserver === "undefined")
[18095] Fix | Delete
return;
[18096] Fix | Delete
const { props, prevProps } = this.node;
[18097] Fix | Delete
const hasOptionsChanged = ["amount", "margin", "root"].some(hasViewportOptionChanged(props, prevProps));
[18098] Fix | Delete
if (hasOptionsChanged) {
[18099] Fix | Delete
this.startObserver();
[18100] Fix | Delete
}
[18101] Fix | Delete
}
[18102] Fix | Delete
unmount() { }
[18103] Fix | Delete
}
[18104] Fix | Delete
function hasViewportOptionChanged({ viewport = {} }, { viewport: prevViewport = {} } = {}) {
[18105] Fix | Delete
return (name) => viewport[name] !== prevViewport[name];
[18106] Fix | Delete
}
[18107] Fix | Delete
[18108] Fix | Delete
[18109] Fix | Delete
[18110] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/gestures.mjs
[18111] Fix | Delete
[18112] Fix | Delete
[18113] Fix | Delete
[18114] Fix | Delete
[18115] Fix | Delete
[18116] Fix | Delete
const gestureAnimations = {
[18117] Fix | Delete
inView: {
[18118] Fix | Delete
Feature: InViewFeature,
[18119] Fix | Delete
},
[18120] Fix | Delete
tap: {
[18121] Fix | Delete
Feature: PressGesture,
[18122] Fix | Delete
},
[18123] Fix | Delete
focus: {
[18124] Fix | Delete
Feature: FocusGesture,
[18125] Fix | Delete
},
[18126] Fix | Delete
hover: {
[18127] Fix | Delete
Feature: HoverGesture,
[18128] Fix | Delete
},
[18129] Fix | Delete
};
[18130] Fix | Delete
[18131] Fix | Delete
[18132] Fix | Delete
[18133] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/shallow-compare.mjs
[18134] Fix | Delete
function shallowCompare(next, prev) {
[18135] Fix | Delete
if (!Array.isArray(prev))
[18136] Fix | Delete
return false;
[18137] Fix | Delete
const prevLength = prev.length;
[18138] Fix | Delete
if (prevLength !== next.length)
[18139] Fix | Delete
return false;
[18140] Fix | Delete
for (let i = 0; i < prevLength; i++) {
[18141] Fix | Delete
if (prev[i] !== next[i])
[18142] Fix | Delete
return false;
[18143] Fix | Delete
}
[18144] Fix | Delete
return true;
[18145] Fix | Delete
}
[18146] Fix | Delete
[18147] Fix | Delete
[18148] Fix | Delete
[18149] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs
[18150] Fix | Delete
[18151] Fix | Delete
[18152] Fix | Delete
function resolveVariant(visualElement, definition, custom) {
[18153] Fix | Delete
const props = visualElement.getProps();
[18154] Fix | Delete
return resolveVariantFromProps(props, definition, custom !== undefined ? custom : props.custom, visualElement);
[18155] Fix | Delete
}
[18156] Fix | Delete
[18157] Fix | Delete
[18158] Fix | Delete
[18159] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/time-conversion.mjs
[18160] Fix | Delete
/**
[18161] Fix | Delete
* Converts seconds to milliseconds
[18162] Fix | Delete
*
[18163] Fix | Delete
* @param seconds - Time in seconds.
[18164] Fix | Delete
* @return milliseconds - Converted time in milliseconds.
[18165] Fix | Delete
*/
[18166] Fix | Delete
const secondsToMilliseconds = (seconds) => seconds * 1000;
[18167] Fix | Delete
const millisecondsToSeconds = (milliseconds) => milliseconds / 1000;
[18168] Fix | Delete
[18169] Fix | Delete
[18170] Fix | Delete
[18171] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs
[18172] Fix | Delete
[18173] Fix | Delete
[18174] Fix | Delete
const underDampedSpring = {
[18175] Fix | Delete
type: "spring",
[18176] Fix | Delete
stiffness: 500,
[18177] Fix | Delete
damping: 25,
[18178] Fix | Delete
restSpeed: 10,
[18179] Fix | Delete
};
[18180] Fix | Delete
const criticallyDampedSpring = (target) => ({
[18181] Fix | Delete
type: "spring",
[18182] Fix | Delete
stiffness: 550,
[18183] Fix | Delete
damping: target === 0 ? 2 * Math.sqrt(550) : 30,
[18184] Fix | Delete
restSpeed: 10,
[18185] Fix | Delete
});
[18186] Fix | Delete
const keyframesTransition = {
[18187] Fix | Delete
type: "keyframes",
[18188] Fix | Delete
duration: 0.8,
[18189] Fix | Delete
};
[18190] Fix | Delete
/**
[18191] Fix | Delete
* Default easing curve is a slightly shallower version of
[18192] Fix | Delete
* the default browser easing curve.
[18193] Fix | Delete
*/
[18194] Fix | Delete
const ease = {
[18195] Fix | Delete
type: "keyframes",
[18196] Fix | Delete
ease: [0.25, 0.1, 0.35, 1],
[18197] Fix | Delete
duration: 0.3,
[18198] Fix | Delete
};
[18199] Fix | Delete
const getDefaultTransition = (valueKey, { keyframes }) => {
[18200] Fix | Delete
if (keyframes.length > 2) {
[18201] Fix | Delete
return keyframesTransition;
[18202] Fix | Delete
}
[18203] Fix | Delete
else if (transformProps.has(valueKey)) {
[18204] Fix | Delete
return valueKey.startsWith("scale")
[18205] Fix | Delete
? criticallyDampedSpring(keyframes[1])
[18206] Fix | Delete
: underDampedSpring;
[18207] Fix | Delete
}
[18208] Fix | Delete
return ease;
[18209] Fix | Delete
};
[18210] Fix | Delete
[18211] Fix | Delete
[18212] Fix | Delete
[18213] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/transitions.mjs
[18214] Fix | Delete
/**
[18215] Fix | Delete
* Decide whether a transition is defined on a given Transition.
[18216] Fix | Delete
* This filters out orchestration options and returns true
[18217] Fix | Delete
* if any options are left.
[18218] Fix | Delete
*/
[18219] Fix | Delete
function isTransitionDefined({ when, delay: _delay, delayChildren, staggerChildren, staggerDirection, repeat, repeatType, repeatDelay, from, elapsed, ...transition }) {
[18220] Fix | Delete
return !!Object.keys(transition).length;
[18221] Fix | Delete
}
[18222] Fix | Delete
function getValueTransition(transition, key) {
[18223] Fix | Delete
return (transition[key] ||
[18224] Fix | Delete
transition["default"] ||
[18225] Fix | Delete
transition);
[18226] Fix | Delete
}
[18227] Fix | Delete
[18228] Fix | Delete
[18229] Fix | Delete
[18230] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/use-instant-transition-state.mjs
[18231] Fix | Delete
const instantAnimationState = {
[18232] Fix | Delete
current: false,
[18233] Fix | Delete
};
[18234] Fix | Delete
[18235] Fix | Delete
[18236] Fix | Delete
[18237] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs
[18238] Fix | Delete
const isNotNull = (value) => value !== null;
[18239] Fix | Delete
function getFinalKeyframe(keyframes, { repeat, repeatType = "loop" }, finalKeyframe) {
[18240] Fix | Delete
const resolvedKeyframes = keyframes.filter(isNotNull);
[18241] Fix | Delete
const index = repeat && repeatType !== "loop" && repeat % 2 === 1
[18242] Fix | Delete
? 0
[18243] Fix | Delete
: resolvedKeyframes.length - 1;
[18244] Fix | Delete
return !index || finalKeyframe === undefined
[18245] Fix | Delete
? resolvedKeyframes[index]
[18246] Fix | Delete
: finalKeyframe;
[18247] Fix | Delete
}
[18248] Fix | Delete
[18249] Fix | Delete
[18250] Fix | Delete
[18251] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/frameloop/sync-time.mjs
[18252] Fix | Delete
[18253] Fix | Delete
[18254] Fix | Delete
[18255] Fix | Delete
let now;
[18256] Fix | Delete
function clearTime() {
[18257] Fix | Delete
now = undefined;
[18258] Fix | Delete
}
[18259] Fix | Delete
/**
[18260] Fix | Delete
* An eventloop-synchronous alternative to performance.now().
[18261] Fix | Delete
*
[18262] Fix | Delete
* Ensures that time measurements remain consistent within a synchronous context.
[18263] Fix | Delete
* Usually calling performance.now() twice within the same synchronous context
[18264] Fix | Delete
* will return different values which isn't useful for animations when we're usually
[18265] Fix | Delete
* trying to sync animations to the same frame.
[18266] Fix | Delete
*/
[18267] Fix | Delete
const time = {
[18268] Fix | Delete
now: () => {
[18269] Fix | Delete
if (now === undefined) {
[18270] Fix | Delete
time.set(frameData.isProcessing || MotionGlobalConfig.useManualTiming
[18271] Fix | Delete
? frameData.timestamp
[18272] Fix | Delete
: performance.now());
[18273] Fix | Delete
}
[18274] Fix | Delete
return now;
[18275] Fix | Delete
},
[18276] Fix | Delete
set: (newTime) => {
[18277] Fix | Delete
now = newTime;
[18278] Fix | Delete
queueMicrotask(clearTime);
[18279] Fix | Delete
},
[18280] Fix | Delete
};
[18281] Fix | Delete
[18282] Fix | Delete
[18283] Fix | Delete
[18284] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-zero-value-string.mjs
[18285] Fix | Delete
/**
[18286] Fix | Delete
* Check if the value is a zero value string like "0px" or "0%"
[18287] Fix | Delete
*/
[18288] Fix | Delete
const isZeroValueString = (v) => /^0[^.\s]+$/u.test(v);
[18289] Fix | Delete
[18290] Fix | Delete
[18291] Fix | Delete
[18292] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/utils/is-none.mjs
[18293] Fix | Delete
[18294] Fix | Delete
[18295] Fix | Delete
function isNone(value) {
[18296] Fix | Delete
if (typeof value === "number") {
[18297] Fix | Delete
return value === 0;
[18298] Fix | Delete
}
[18299] Fix | Delete
else if (value !== null) {
[18300] Fix | Delete
return value === "none" || value === "0" || isZeroValueString(value);
[18301] Fix | Delete
}
[18302] Fix | Delete
else {
[18303] Fix | Delete
return true;
[18304] Fix | Delete
}
[18305] Fix | Delete
}
[18306] Fix | Delete
[18307] Fix | Delete
[18308] Fix | Delete
[18309] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/errors.mjs
[18310] Fix | Delete
[18311] Fix | Delete
[18312] Fix | Delete
let warning = noop_noop;
[18313] Fix | Delete
let errors_invariant = noop_noop;
[18314] Fix | Delete
if (false) {}
[18315] Fix | Delete
[18316] Fix | Delete
[18317] Fix | Delete
[18318] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-numerical-string.mjs
[18319] Fix | Delete
/**
[18320] Fix | Delete
* Check if value is a numerical string, ie a string that is purely a number eg "100" or "-100.1"
[18321] Fix | Delete
*/
[18322] Fix | Delete
const isNumericalString = (v) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(v);
[18323] Fix | Delete
[18324] Fix | Delete
[18325] Fix | Delete
[18326] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs
[18327] Fix | Delete
[18328] Fix | Delete
[18329] Fix | Delete
[18330] Fix | Delete
[18331] Fix | Delete
/**
[18332] Fix | Delete
* Parse Framer's special CSS variable format into a CSS token and a fallback.
[18333] Fix | Delete
*
[18334] Fix | Delete
* ```
[18335] Fix | Delete
* `var(--foo, #fff)` => [`--foo`, '#fff']
[18336] Fix | Delete
* ```
[18337] Fix | Delete
*
[18338] Fix | Delete
* @param current
[18339] Fix | Delete
*/
[18340] Fix | Delete
const splitCSSVariableRegex =
[18341] Fix | Delete
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
[18342] Fix | Delete
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
[18343] Fix | Delete
function parseCSSVariable(current) {
[18344] Fix | Delete
const match = splitCSSVariableRegex.exec(current);
[18345] Fix | Delete
if (!match)
[18346] Fix | Delete
return [,];
[18347] Fix | Delete
const [, token1, token2, fallback] = match;
[18348] Fix | Delete
return [`--${token1 !== null && token1 !== void 0 ? token1 : token2}`, fallback];
[18349] Fix | Delete
}
[18350] Fix | Delete
const maxDepth = 4;
[18351] Fix | Delete
function getVariableValue(current, element, depth = 1) {
[18352] Fix | Delete
errors_invariant(depth <= maxDepth, `Max CSS variable fallback depth detected in property "${current}". This may indicate a circular fallback dependency.`);
[18353] Fix | Delete
const [token, fallback] = parseCSSVariable(current);
[18354] Fix | Delete
// No CSS variable detected
[18355] Fix | Delete
if (!token)
[18356] Fix | Delete
return;
[18357] Fix | Delete
// Attempt to read this CSS variable off the element
[18358] Fix | Delete
const resolved = window.getComputedStyle(element).getPropertyValue(token);
[18359] Fix | Delete
if (resolved) {
[18360] Fix | Delete
const trimmed = resolved.trim();
[18361] Fix | Delete
return isNumericalString(trimmed) ? parseFloat(trimmed) : trimmed;
[18362] Fix | Delete
}
[18363] Fix | Delete
return isCSSVariableToken(fallback)
[18364] Fix | Delete
? getVariableValue(fallback, element, depth + 1)
[18365] Fix | Delete
: fallback;
[18366] Fix | Delete
}
[18367] Fix | Delete
[18368] Fix | Delete
[18369] Fix | Delete
[18370] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs
[18371] Fix | Delete
[18372] Fix | Delete
[18373] Fix | Delete
[18374] Fix | Delete
[18375] Fix | Delete
const positionalKeys = new Set([
[18376] Fix | Delete
"width",
[18377] Fix | Delete
"height",
[18378] Fix | Delete
"top",
[18379] Fix | Delete
"left",
[18380] Fix | Delete
"right",
[18381] Fix | Delete
"bottom",
[18382] Fix | Delete
"x",
[18383] Fix | Delete
"y",
[18384] Fix | Delete
"translateX",
[18385] Fix | Delete
"translateY",
[18386] Fix | Delete
]);
[18387] Fix | Delete
const isNumOrPxType = (v) => v === number || v === px;
[18388] Fix | Delete
const getPosFromMatrix = (matrix, pos) => parseFloat(matrix.split(", ")[pos]);
[18389] Fix | Delete
const getTranslateFromMatrix = (pos2, pos3) => (_bbox, { transform }) => {
[18390] Fix | Delete
if (transform === "none" || !transform)
[18391] Fix | Delete
return 0;
[18392] Fix | Delete
const matrix3d = transform.match(/^matrix3d\((.+)\)$/u);
[18393] Fix | Delete
if (matrix3d) {
[18394] Fix | Delete
return getPosFromMatrix(matrix3d[1], pos3);
[18395] Fix | Delete
}
[18396] Fix | Delete
else {
[18397] Fix | Delete
const matrix = transform.match(/^matrix\((.+)\)$/u);
[18398] Fix | Delete
if (matrix) {
[18399] Fix | Delete
return getPosFromMatrix(matrix[1], pos2);
[18400] Fix | Delete
}
[18401] Fix | Delete
else {
[18402] Fix | Delete
return 0;
[18403] Fix | Delete
}
[18404] Fix | Delete
}
[18405] Fix | Delete
};
[18406] Fix | Delete
const transformKeys = new Set(["x", "y", "z"]);
[18407] Fix | Delete
const nonTranslationalTransformKeys = transformPropOrder.filter((key) => !transformKeys.has(key));
[18408] Fix | Delete
function removeNonTranslationalTransform(visualElement) {
[18409] Fix | Delete
const removedTransforms = [];
[18410] Fix | Delete
nonTranslationalTransformKeys.forEach((key) => {
[18411] Fix | Delete
const value = visualElement.getValue(key);
[18412] Fix | Delete
if (value !== undefined) {
[18413] Fix | Delete
removedTransforms.push([key, value.get()]);
[18414] Fix | Delete
value.set(key.startsWith("scale") ? 1 : 0);
[18415] Fix | Delete
}
[18416] Fix | Delete
});
[18417] Fix | Delete
return removedTransforms;
[18418] Fix | Delete
}
[18419] Fix | Delete
const positionalValues = {
[18420] Fix | Delete
// Dimensions
[18421] Fix | Delete
width: ({ x }, { paddingLeft = "0", paddingRight = "0" }) => x.max - x.min - parseFloat(paddingLeft) - parseFloat(paddingRight),
[18422] Fix | Delete
height: ({ y }, { paddingTop = "0", paddingBottom = "0" }) => y.max - y.min - parseFloat(paddingTop) - parseFloat(paddingBottom),
[18423] Fix | Delete
top: (_bbox, { top }) => parseFloat(top),
[18424] Fix | Delete
left: (_bbox, { left }) => parseFloat(left),
[18425] Fix | Delete
bottom: ({ y }, { top }) => parseFloat(top) + (y.max - y.min),
[18426] Fix | Delete
right: ({ x }, { left }) => parseFloat(left) + (x.max - x.min),
[18427] Fix | Delete
// Transform
[18428] Fix | Delete
x: getTranslateFromMatrix(4, 13),
[18429] Fix | Delete
y: getTranslateFromMatrix(5, 14),
[18430] Fix | Delete
};
[18431] Fix | Delete
// Alias translate longform names
[18432] Fix | Delete
positionalValues.translateX = positionalValues.x;
[18433] Fix | Delete
positionalValues.translateY = positionalValues.y;
[18434] Fix | Delete
[18435] Fix | Delete
[18436] Fix | Delete
[18437] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/test.mjs
[18438] Fix | Delete
/**
[18439] Fix | Delete
* Tests a provided value against a ValueType
[18440] Fix | Delete
*/
[18441] Fix | Delete
const testValueType = (v) => (type) => type.test(v);
[18442] Fix | Delete
[18443] Fix | Delete
[18444] Fix | Delete
[18445] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.mjs
[18446] Fix | Delete
/**
[18447] Fix | Delete
* ValueType for "auto"
[18448] Fix | Delete
*/
[18449] Fix | Delete
const auto = {
[18450] Fix | Delete
test: (v) => v === "auto",
[18451] Fix | Delete
parse: (v) => v,
[18452] Fix | Delete
};
[18453] Fix | Delete
[18454] Fix | Delete
[18455] Fix | Delete
[18456] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.mjs
[18457] Fix | Delete
[18458] Fix | Delete
[18459] Fix | Delete
[18460] Fix | Delete
[18461] Fix | Delete
[18462] Fix | Delete
/**
[18463] Fix | Delete
* A list of value types commonly used for dimensions
[18464] Fix | Delete
*/
[18465] Fix | Delete
const dimensionValueTypes = [number, px, percent, degrees, vw, vh, auto];
[18466] Fix | Delete
/**
[18467] Fix | Delete
* Tests a dimensional value against the list of dimension ValueTypes
[18468] Fix | Delete
*/
[18469] Fix | Delete
const findDimensionValueType = (v) => dimensionValueTypes.find(testValueType(v));
[18470] Fix | Delete
[18471] Fix | Delete
[18472] Fix | Delete
[18473] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.mjs
[18474] Fix | Delete
[18475] Fix | Delete
[18476] Fix | Delete
[18477] Fix | Delete
const toResolve = new Set();
[18478] Fix | Delete
let isScheduled = false;
[18479] Fix | Delete
let anyNeedsMeasurement = false;
[18480] Fix | Delete
function measureAllKeyframes() {
[18481] Fix | Delete
if (anyNeedsMeasurement) {
[18482] Fix | Delete
const resolversToMeasure = Array.from(toResolve).filter((resolver) => resolver.needsMeasurement);
[18483] Fix | Delete
const elementsToMeasure = new Set(resolversToMeasure.map((resolver) => resolver.element));
[18484] Fix | Delete
const transformsToRestore = new Map();
[18485] Fix | Delete
/**
[18486] Fix | Delete
* Write pass
[18487] Fix | Delete
* If we're measuring elements we want to remove bounding box-changing transforms.
[18488] Fix | Delete
*/
[18489] Fix | Delete
elementsToMeasure.forEach((element) => {
[18490] Fix | Delete
const removedTransforms = removeNonTranslationalTransform(element);
[18491] Fix | Delete
if (!removedTransforms.length)
[18492] Fix | Delete
return;
[18493] Fix | Delete
transformsToRestore.set(element, removedTransforms);
[18494] Fix | Delete
element.render();
[18495] Fix | Delete
});
[18496] Fix | Delete
// Read
[18497] Fix | Delete
resolversToMeasure.forEach((resolver) => resolver.measureInitialState());
[18498] Fix | Delete
// Write
[18499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function