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
}
[25500] Fix | Delete
function resetSkewAndRotation(node) {
[25501] Fix | Delete
node.resetSkewAndRotation();
[25502] Fix | Delete
}
[25503] Fix | Delete
function removeLeadSnapshots(stack) {
[25504] Fix | Delete
stack.removeLeadSnapshot();
[25505] Fix | Delete
}
[25506] Fix | Delete
function mixAxisDelta(output, delta, p) {
[25507] Fix | Delete
output.translate = mixNumber(delta.translate, 0, p);
[25508] Fix | Delete
output.scale = mixNumber(delta.scale, 1, p);
[25509] Fix | Delete
output.origin = delta.origin;
[25510] Fix | Delete
output.originPoint = delta.originPoint;
[25511] Fix | Delete
}
[25512] Fix | Delete
function mixAxis(output, from, to, p) {
[25513] Fix | Delete
output.min = mixNumber(from.min, to.min, p);
[25514] Fix | Delete
output.max = mixNumber(from.max, to.max, p);
[25515] Fix | Delete
}
[25516] Fix | Delete
function mixBox(output, from, to, p) {
[25517] Fix | Delete
mixAxis(output.x, from.x, to.x, p);
[25518] Fix | Delete
mixAxis(output.y, from.y, to.y, p);
[25519] Fix | Delete
}
[25520] Fix | Delete
function hasOpacityCrossfade(node) {
[25521] Fix | Delete
return (node.animationValues && node.animationValues.opacityExit !== undefined);
[25522] Fix | Delete
}
[25523] Fix | Delete
const defaultLayoutTransition = {
[25524] Fix | Delete
duration: 0.45,
[25525] Fix | Delete
ease: [0.4, 0, 0.1, 1],
[25526] Fix | Delete
};
[25527] Fix | Delete
const userAgentContains = (string) => typeof navigator !== "undefined" &&
[25528] Fix | Delete
navigator.userAgent &&
[25529] Fix | Delete
navigator.userAgent.toLowerCase().includes(string);
[25530] Fix | Delete
/**
[25531] Fix | Delete
* Measured bounding boxes must be rounded in Safari and
[25532] Fix | Delete
* left untouched in Chrome, otherwise non-integer layouts within scaled-up elements
[25533] Fix | Delete
* can appear to jump.
[25534] Fix | Delete
*/
[25535] Fix | Delete
const roundPoint = userAgentContains("applewebkit/") && !userAgentContains("chrome/")
[25536] Fix | Delete
? Math.round
[25537] Fix | Delete
: noop_noop;
[25538] Fix | Delete
function roundAxis(axis) {
[25539] Fix | Delete
// Round to the nearest .5 pixels to support subpixel layouts
[25540] Fix | Delete
axis.min = roundPoint(axis.min);
[25541] Fix | Delete
axis.max = roundPoint(axis.max);
[25542] Fix | Delete
}
[25543] Fix | Delete
function roundBox(box) {
[25544] Fix | Delete
roundAxis(box.x);
[25545] Fix | Delete
roundAxis(box.y);
[25546] Fix | Delete
}
[25547] Fix | Delete
function shouldAnimatePositionOnly(animationType, snapshot, layout) {
[25548] Fix | Delete
return (animationType === "position" ||
[25549] Fix | Delete
(animationType === "preserve-aspect" &&
[25550] Fix | Delete
!isNear(aspectRatio(snapshot), aspectRatio(layout), 0.2)));
[25551] Fix | Delete
}
[25552] Fix | Delete
[25553] Fix | Delete
[25554] Fix | Delete
[25555] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs
[25556] Fix | Delete
[25557] Fix | Delete
[25558] Fix | Delete
[25559] Fix | Delete
const DocumentProjectionNode = createProjectionNode({
[25560] Fix | Delete
attachResizeListener: (ref, notify) => addDomEvent(ref, "resize", notify),
[25561] Fix | Delete
measureScroll: () => ({
[25562] Fix | Delete
x: document.documentElement.scrollLeft || document.body.scrollLeft,
[25563] Fix | Delete
y: document.documentElement.scrollTop || document.body.scrollTop,
[25564] Fix | Delete
}),
[25565] Fix | Delete
checkIsScrollRoot: () => true,
[25566] Fix | Delete
});
[25567] Fix | Delete
[25568] Fix | Delete
[25569] Fix | Delete
[25570] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs
[25571] Fix | Delete
[25572] Fix | Delete
[25573] Fix | Delete
[25574] Fix | Delete
const rootProjectionNode = {
[25575] Fix | Delete
current: undefined,
[25576] Fix | Delete
};
[25577] Fix | Delete
const HTMLProjectionNode = createProjectionNode({
[25578] Fix | Delete
measureScroll: (instance) => ({
[25579] Fix | Delete
x: instance.scrollLeft,
[25580] Fix | Delete
y: instance.scrollTop,
[25581] Fix | Delete
}),
[25582] Fix | Delete
defaultParent: () => {
[25583] Fix | Delete
if (!rootProjectionNode.current) {
[25584] Fix | Delete
const documentNode = new DocumentProjectionNode({});
[25585] Fix | Delete
documentNode.mount(window);
[25586] Fix | Delete
documentNode.setOptions({ layoutScroll: true });
[25587] Fix | Delete
rootProjectionNode.current = documentNode;
[25588] Fix | Delete
}
[25589] Fix | Delete
return rootProjectionNode.current;
[25590] Fix | Delete
},
[25591] Fix | Delete
resetTransform: (instance, value) => {
[25592] Fix | Delete
instance.style.transform = value !== undefined ? value : "none";
[25593] Fix | Delete
},
[25594] Fix | Delete
checkIsScrollRoot: (instance) => Boolean(window.getComputedStyle(instance).position === "fixed"),
[25595] Fix | Delete
});
[25596] Fix | Delete
[25597] Fix | Delete
[25598] Fix | Delete
[25599] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/motion/features/drag.mjs
[25600] Fix | Delete
[25601] Fix | Delete
[25602] Fix | Delete
[25603] Fix | Delete
[25604] Fix | Delete
[25605] Fix | Delete
const drag = {
[25606] Fix | Delete
pan: {
[25607] Fix | Delete
Feature: PanGesture,
[25608] Fix | Delete
},
[25609] Fix | Delete
drag: {
[25610] Fix | Delete
Feature: DragGesture,
[25611] Fix | Delete
ProjectionNode: HTMLProjectionNode,
[25612] Fix | Delete
MeasureLayout: MeasureLayout,
[25613] Fix | Delete
},
[25614] Fix | Delete
};
[25615] Fix | Delete
[25616] Fix | Delete
[25617] Fix | Delete
[25618] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs
[25619] Fix | Delete
// Does this device prefer reduced motion? Returns `null` server-side.
[25620] Fix | Delete
const prefersReducedMotion = { current: null };
[25621] Fix | Delete
const hasReducedMotionListener = { current: false };
[25622] Fix | Delete
[25623] Fix | Delete
[25624] Fix | Delete
[25625] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs
[25626] Fix | Delete
[25627] Fix | Delete
[25628] Fix | Delete
[25629] Fix | Delete
function initPrefersReducedMotion() {
[25630] Fix | Delete
hasReducedMotionListener.current = true;
[25631] Fix | Delete
if (!is_browser_isBrowser)
[25632] Fix | Delete
return;
[25633] Fix | Delete
if (window.matchMedia) {
[25634] Fix | Delete
const motionMediaQuery = window.matchMedia("(prefers-reduced-motion)");
[25635] Fix | Delete
const setReducedMotionPreferences = () => (prefersReducedMotion.current = motionMediaQuery.matches);
[25636] Fix | Delete
motionMediaQuery.addListener(setReducedMotionPreferences);
[25637] Fix | Delete
setReducedMotionPreferences();
[25638] Fix | Delete
}
[25639] Fix | Delete
else {
[25640] Fix | Delete
prefersReducedMotion.current = false;
[25641] Fix | Delete
}
[25642] Fix | Delete
}
[25643] Fix | Delete
[25644] Fix | Delete
[25645] Fix | Delete
[25646] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/utils/motion-values.mjs
[25647] Fix | Delete
[25648] Fix | Delete
[25649] Fix | Delete
[25650] Fix | Delete
[25651] Fix | Delete
[25652] Fix | Delete
function updateMotionValuesFromProps(element, next, prev) {
[25653] Fix | Delete
const { willChange } = next;
[25654] Fix | Delete
for (const key in next) {
[25655] Fix | Delete
const nextValue = next[key];
[25656] Fix | Delete
const prevValue = prev[key];
[25657] Fix | Delete
if (isMotionValue(nextValue)) {
[25658] Fix | Delete
/**
[25659] Fix | Delete
* If this is a motion value found in props or style, we want to add it
[25660] Fix | Delete
* to our visual element's motion value map.
[25661] Fix | Delete
*/
[25662] Fix | Delete
element.addValue(key, nextValue);
[25663] Fix | Delete
if (isWillChangeMotionValue(willChange)) {
[25664] Fix | Delete
willChange.add(key);
[25665] Fix | Delete
}
[25666] Fix | Delete
/**
[25667] Fix | Delete
* Check the version of the incoming motion value with this version
[25668] Fix | Delete
* and warn against mismatches.
[25669] Fix | Delete
*/
[25670] Fix | Delete
if (false) {}
[25671] Fix | Delete
}
[25672] Fix | Delete
else if (isMotionValue(prevValue)) {
[25673] Fix | Delete
/**
[25674] Fix | Delete
* If we're swapping from a motion value to a static value,
[25675] Fix | Delete
* create a new motion value from that
[25676] Fix | Delete
*/
[25677] Fix | Delete
element.addValue(key, motionValue(nextValue, { owner: element }));
[25678] Fix | Delete
if (isWillChangeMotionValue(willChange)) {
[25679] Fix | Delete
willChange.remove(key);
[25680] Fix | Delete
}
[25681] Fix | Delete
}
[25682] Fix | Delete
else if (prevValue !== nextValue) {
[25683] Fix | Delete
/**
[25684] Fix | Delete
* If this is a flat value that has changed, update the motion value
[25685] Fix | Delete
* or create one if it doesn't exist. We only want to do this if we're
[25686] Fix | Delete
* not handling the value with our animation state.
[25687] Fix | Delete
*/
[25688] Fix | Delete
if (element.hasValue(key)) {
[25689] Fix | Delete
const existingValue = element.getValue(key);
[25690] Fix | Delete
if (existingValue.liveStyle === true) {
[25691] Fix | Delete
existingValue.jump(nextValue);
[25692] Fix | Delete
}
[25693] Fix | Delete
else if (!existingValue.hasAnimated) {
[25694] Fix | Delete
existingValue.set(nextValue);
[25695] Fix | Delete
}
[25696] Fix | Delete
}
[25697] Fix | Delete
else {
[25698] Fix | Delete
const latestValue = element.getStaticValue(key);
[25699] Fix | Delete
element.addValue(key, motionValue(latestValue !== undefined ? latestValue : nextValue, { owner: element }));
[25700] Fix | Delete
}
[25701] Fix | Delete
}
[25702] Fix | Delete
}
[25703] Fix | Delete
// Handle removed values
[25704] Fix | Delete
for (const key in prev) {
[25705] Fix | Delete
if (next[key] === undefined)
[25706] Fix | Delete
element.removeValue(key);
[25707] Fix | Delete
}
[25708] Fix | Delete
return next;
[25709] Fix | Delete
}
[25710] Fix | Delete
[25711] Fix | Delete
[25712] Fix | Delete
[25713] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/store.mjs
[25714] Fix | Delete
const visualElementStore = new WeakMap();
[25715] Fix | Delete
[25716] Fix | Delete
[25717] Fix | Delete
[25718] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/dom/value-types/find.mjs
[25719] Fix | Delete
[25720] Fix | Delete
[25721] Fix | Delete
[25722] Fix | Delete
[25723] Fix | Delete
[25724] Fix | Delete
/**
[25725] Fix | Delete
* A list of all ValueTypes
[25726] Fix | Delete
*/
[25727] Fix | Delete
const valueTypes = [...dimensionValueTypes, color, complex];
[25728] Fix | Delete
/**
[25729] Fix | Delete
* Tests a value against the list of ValueTypes
[25730] Fix | Delete
*/
[25731] Fix | Delete
const findValueType = (v) => valueTypes.find(testValueType(v));
[25732] Fix | Delete
[25733] Fix | Delete
[25734] Fix | Delete
[25735] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/render/VisualElement.mjs
[25736] Fix | Delete
[25737] Fix | Delete
[25738] Fix | Delete
[25739] Fix | Delete
[25740] Fix | Delete
[25741] Fix | Delete
[25742] Fix | Delete
[25743] Fix | Delete
[25744] Fix | Delete
[25745] Fix | Delete
[25746] Fix | Delete
[25747] Fix | Delete
[25748] Fix | Delete
[25749] Fix | Delete
[25750] Fix | Delete
[25751] Fix | Delete
[25752] Fix | Delete
[25753] Fix | Delete
[25754] Fix | Delete
[25755] Fix | Delete
[25756] Fix | Delete
[25757] Fix | Delete
[25758] Fix | Delete
[25759] Fix | Delete
[25760] Fix | Delete
[25761] Fix | Delete
[25762] Fix | Delete
const featureNames = Object.keys(featureDefinitions);
[25763] Fix | Delete
const numFeatures = featureNames.length;
[25764] Fix | Delete
const propEventHandlers = [
[25765] Fix | Delete
"AnimationStart",
[25766] Fix | Delete
"AnimationComplete",
[25767] Fix | Delete
"Update",
[25768] Fix | Delete
"BeforeLayoutMeasure",
[25769] Fix | Delete
"LayoutMeasure",
[25770] Fix | Delete
"LayoutAnimationStart",
[25771] Fix | Delete
"LayoutAnimationComplete",
[25772] Fix | Delete
];
[25773] Fix | Delete
const numVariantProps = variantProps.length;
[25774] Fix | Delete
function getClosestProjectingNode(visualElement) {
[25775] Fix | Delete
if (!visualElement)
[25776] Fix | Delete
return undefined;
[25777] Fix | Delete
return visualElement.options.allowProjection !== false
[25778] Fix | Delete
? visualElement.projection
[25779] Fix | Delete
: getClosestProjectingNode(visualElement.parent);
[25780] Fix | Delete
}
[25781] Fix | Delete
/**
[25782] Fix | Delete
* A VisualElement is an imperative abstraction around UI elements such as
[25783] Fix | Delete
* HTMLElement, SVGElement, Three.Object3D etc.
[25784] Fix | Delete
*/
[25785] Fix | Delete
class VisualElement {
[25786] Fix | Delete
/**
[25787] Fix | Delete
* This method takes React props and returns found MotionValues. For example, HTML
[25788] Fix | Delete
* MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
[25789] Fix | Delete
*
[25790] Fix | Delete
* This isn't an abstract method as it needs calling in the constructor, but it is
[25791] Fix | Delete
* intended to be one.
[25792] Fix | Delete
*/
[25793] Fix | Delete
scrapeMotionValuesFromProps(_props, _prevProps, _visualElement) {
[25794] Fix | Delete
return {};
[25795] Fix | Delete
}
[25796] Fix | Delete
constructor({ parent, props, presenceContext, reducedMotionConfig, blockInitialAnimation, visualState, }, options = {}) {
[25797] Fix | Delete
this.resolveKeyframes = (keyframes,
[25798] Fix | Delete
// We use an onComplete callback here rather than a Promise as a Promise
[25799] Fix | Delete
// resolution is a microtask and we want to retain the ability to force
[25800] Fix | Delete
// the resolution of keyframes synchronously.
[25801] Fix | Delete
onComplete, name, value) => {
[25802] Fix | Delete
return new this.KeyframeResolver(keyframes, onComplete, name, value, this);
[25803] Fix | Delete
};
[25804] Fix | Delete
/**
[25805] Fix | Delete
* A reference to the current underlying Instance, e.g. a HTMLElement
[25806] Fix | Delete
* or Three.Mesh etc.
[25807] Fix | Delete
*/
[25808] Fix | Delete
this.current = null;
[25809] Fix | Delete
/**
[25810] Fix | Delete
* A set containing references to this VisualElement's children.
[25811] Fix | Delete
*/
[25812] Fix | Delete
this.children = new Set();
[25813] Fix | Delete
/**
[25814] Fix | Delete
* Determine what role this visual element should take in the variant tree.
[25815] Fix | Delete
*/
[25816] Fix | Delete
this.isVariantNode = false;
[25817] Fix | Delete
this.isControllingVariants = false;
[25818] Fix | Delete
/**
[25819] Fix | Delete
* Decides whether this VisualElement should animate in reduced motion
[25820] Fix | Delete
* mode.
[25821] Fix | Delete
*
[25822] Fix | Delete
* TODO: This is currently set on every individual VisualElement but feels
[25823] Fix | Delete
* like it could be set globally.
[25824] Fix | Delete
*/
[25825] Fix | Delete
this.shouldReduceMotion = null;
[25826] Fix | Delete
/**
[25827] Fix | Delete
* A map of all motion values attached to this visual element. Motion
[25828] Fix | Delete
* values are source of truth for any given animated value. A motion
[25829] Fix | Delete
* value might be provided externally by the component via props.
[25830] Fix | Delete
*/
[25831] Fix | Delete
this.values = new Map();
[25832] Fix | Delete
this.KeyframeResolver = KeyframeResolver;
[25833] Fix | Delete
/**
[25834] Fix | Delete
* Cleanup functions for active features (hover/tap/exit etc)
[25835] Fix | Delete
*/
[25836] Fix | Delete
this.features = {};
[25837] Fix | Delete
/**
[25838] Fix | Delete
* A map of every subscription that binds the provided or generated
[25839] Fix | Delete
* motion values onChange listeners to this visual element.
[25840] Fix | Delete
*/
[25841] Fix | Delete
this.valueSubscriptions = new Map();
[25842] Fix | Delete
/**
[25843] Fix | Delete
* A reference to the previously-provided motion values as returned
[25844] Fix | Delete
* from scrapeMotionValuesFromProps. We use the keys in here to determine
[25845] Fix | Delete
* if any motion values need to be removed after props are updated.
[25846] Fix | Delete
*/
[25847] Fix | Delete
this.prevMotionValues = {};
[25848] Fix | Delete
/**
[25849] Fix | Delete
* An object containing a SubscriptionManager for each active event.
[25850] Fix | Delete
*/
[25851] Fix | Delete
this.events = {};
[25852] Fix | Delete
/**
[25853] Fix | Delete
* An object containing an unsubscribe function for each prop event subscription.
[25854] Fix | Delete
* For example, every "Update" event can have multiple subscribers via
[25855] Fix | Delete
* VisualElement.on(), but only one of those can be defined via the onUpdate prop.
[25856] Fix | Delete
*/
[25857] Fix | Delete
this.propEventSubscriptions = {};
[25858] Fix | Delete
this.notifyUpdate = () => this.notify("Update", this.latestValues);
[25859] Fix | Delete
this.render = () => {
[25860] Fix | Delete
if (!this.current)
[25861] Fix | Delete
return;
[25862] Fix | Delete
this.triggerBuild();
[25863] Fix | Delete
this.renderInstance(this.current, this.renderState, this.props.style, this.projection);
[25864] Fix | Delete
};
[25865] Fix | Delete
this.scheduleRender = () => frame_frame.render(this.render, false, true);
[25866] Fix | Delete
const { latestValues, renderState } = visualState;
[25867] Fix | Delete
this.latestValues = latestValues;
[25868] Fix | Delete
this.baseTarget = { ...latestValues };
[25869] Fix | Delete
this.initialValues = props.initial ? { ...latestValues } : {};
[25870] Fix | Delete
this.renderState = renderState;
[25871] Fix | Delete
this.parent = parent;
[25872] Fix | Delete
this.props = props;
[25873] Fix | Delete
this.presenceContext = presenceContext;
[25874] Fix | Delete
this.depth = parent ? parent.depth + 1 : 0;
[25875] Fix | Delete
this.reducedMotionConfig = reducedMotionConfig;
[25876] Fix | Delete
this.options = options;
[25877] Fix | Delete
this.blockInitialAnimation = Boolean(blockInitialAnimation);
[25878] Fix | Delete
this.isControllingVariants = isControllingVariants(props);
[25879] Fix | Delete
this.isVariantNode = isVariantNode(props);
[25880] Fix | Delete
if (this.isVariantNode) {
[25881] Fix | Delete
this.variantChildren = new Set();
[25882] Fix | Delete
}
[25883] Fix | Delete
this.manuallyAnimateOnMount = Boolean(parent && parent.current);
[25884] Fix | Delete
/**
[25885] Fix | Delete
* Any motion values that are provided to the element when created
[25886] Fix | Delete
* aren't yet bound to the element, as this would technically be impure.
[25887] Fix | Delete
* However, we iterate through the motion values and set them to the
[25888] Fix | Delete
* initial values for this component.
[25889] Fix | Delete
*
[25890] Fix | Delete
* TODO: This is impure and we should look at changing this to run on mount.
[25891] Fix | Delete
* Doing so will break some tests but this isn't neccessarily a breaking change,
[25892] Fix | Delete
* more a reflection of the test.
[25893] Fix | Delete
*/
[25894] Fix | Delete
const { willChange, ...initialMotionValues } = this.scrapeMotionValuesFromProps(props, {}, this);
[25895] Fix | Delete
for (const key in initialMotionValues) {
[25896] Fix | Delete
const value = initialMotionValues[key];
[25897] Fix | Delete
if (latestValues[key] !== undefined && isMotionValue(value)) {
[25898] Fix | Delete
value.set(latestValues[key], false);
[25899] Fix | Delete
if (isWillChangeMotionValue(willChange)) {
[25900] Fix | Delete
willChange.add(key);
[25901] Fix | Delete
}
[25902] Fix | Delete
}
[25903] Fix | Delete
}
[25904] Fix | Delete
}
[25905] Fix | Delete
mount(instance) {
[25906] Fix | Delete
this.current = instance;
[25907] Fix | Delete
visualElementStore.set(instance, this);
[25908] Fix | Delete
if (this.projection && !this.projection.instance) {
[25909] Fix | Delete
this.projection.mount(instance);
[25910] Fix | Delete
}
[25911] Fix | Delete
if (this.parent && this.isVariantNode && !this.isControllingVariants) {
[25912] Fix | Delete
this.removeFromVariantTree = this.parent.addVariantChild(this);
[25913] Fix | Delete
}
[25914] Fix | Delete
this.values.forEach((value, key) => this.bindToMotionValue(key, value));
[25915] Fix | Delete
if (!hasReducedMotionListener.current) {
[25916] Fix | Delete
initPrefersReducedMotion();
[25917] Fix | Delete
}
[25918] Fix | Delete
this.shouldReduceMotion =
[25919] Fix | Delete
this.reducedMotionConfig === "never"
[25920] Fix | Delete
? false
[25921] Fix | Delete
: this.reducedMotionConfig === "always"
[25922] Fix | Delete
? true
[25923] Fix | Delete
: prefersReducedMotion.current;
[25924] Fix | Delete
if (false) {}
[25925] Fix | Delete
if (this.parent)
[25926] Fix | Delete
this.parent.children.add(this);
[25927] Fix | Delete
this.update(this.props, this.presenceContext);
[25928] Fix | Delete
}
[25929] Fix | Delete
unmount() {
[25930] Fix | Delete
var _a;
[25931] Fix | Delete
visualElementStore.delete(this.current);
[25932] Fix | Delete
this.projection && this.projection.unmount();
[25933] Fix | Delete
cancelFrame(this.notifyUpdate);
[25934] Fix | Delete
cancelFrame(this.render);
[25935] Fix | Delete
this.valueSubscriptions.forEach((remove) => remove());
[25936] Fix | Delete
this.removeFromVariantTree && this.removeFromVariantTree();
[25937] Fix | Delete
this.parent && this.parent.children.delete(this);
[25938] Fix | Delete
for (const key in this.events) {
[25939] Fix | Delete
this.events[key].clear();
[25940] Fix | Delete
}
[25941] Fix | Delete
for (const key in this.features) {
[25942] Fix | Delete
(_a = this.features[key]) === null || _a === void 0 ? void 0 : _a.unmount();
[25943] Fix | Delete
}
[25944] Fix | Delete
this.current = null;
[25945] Fix | Delete
}
[25946] Fix | Delete
bindToMotionValue(key, value) {
[25947] Fix | Delete
const valueIsTransform = transformProps.has(key);
[25948] Fix | Delete
const removeOnChange = value.on("change", (latestValue) => {
[25949] Fix | Delete
this.latestValues[key] = latestValue;
[25950] Fix | Delete
this.props.onUpdate && frame_frame.preRender(this.notifyUpdate);
[25951] Fix | Delete
if (valueIsTransform && this.projection) {
[25952] Fix | Delete
this.projection.isTransformDirty = true;
[25953] Fix | Delete
}
[25954] Fix | Delete
});
[25955] Fix | Delete
const removeOnRenderRequest = value.on("renderRequest", this.scheduleRender);
[25956] Fix | Delete
this.valueSubscriptions.set(key, () => {
[25957] Fix | Delete
removeOnChange();
[25958] Fix | Delete
removeOnRenderRequest();
[25959] Fix | Delete
if (value.owner)
[25960] Fix | Delete
value.stop();
[25961] Fix | Delete
});
[25962] Fix | Delete
}
[25963] Fix | Delete
sortNodePosition(other) {
[25964] Fix | Delete
/**
[25965] Fix | Delete
* If these nodes aren't even of the same type we can't compare their depth.
[25966] Fix | Delete
*/
[25967] Fix | Delete
if (!this.current ||
[25968] Fix | Delete
!this.sortInstanceNodePosition ||
[25969] Fix | Delete
this.type !== other.type) {
[25970] Fix | Delete
return 0;
[25971] Fix | Delete
}
[25972] Fix | Delete
return this.sortInstanceNodePosition(this.current, other.current);
[25973] Fix | Delete
}
[25974] Fix | Delete
loadFeatures({ children, ...renderedProps }, isStrict, preloadedFeatures, initialLayoutGroupConfig) {
[25975] Fix | Delete
let ProjectionNodeConstructor;
[25976] Fix | Delete
let MeasureLayout;
[25977] Fix | Delete
/**
[25978] Fix | Delete
* If we're in development mode, check to make sure we're not rendering a motion component
[25979] Fix | Delete
* as a child of LazyMotion, as this will break the file-size benefits of using it.
[25980] Fix | Delete
*/
[25981] Fix | Delete
if (false) {}
[25982] Fix | Delete
for (let i = 0; i < numFeatures; i++) {
[25983] Fix | Delete
const name = featureNames[i];
[25984] Fix | Delete
const { isEnabled, Feature: FeatureConstructor, ProjectionNode, MeasureLayout: MeasureLayoutComponent, } = featureDefinitions[name];
[25985] Fix | Delete
if (ProjectionNode)
[25986] Fix | Delete
ProjectionNodeConstructor = ProjectionNode;
[25987] Fix | Delete
if (isEnabled(renderedProps)) {
[25988] Fix | Delete
if (!this.features[name] && FeatureConstructor) {
[25989] Fix | Delete
this.features[name] = new FeatureConstructor(this);
[25990] Fix | Delete
}
[25991] Fix | Delete
if (MeasureLayoutComponent) {
[25992] Fix | Delete
MeasureLayout = MeasureLayoutComponent;
[25993] Fix | Delete
}
[25994] Fix | Delete
}
[25995] Fix | Delete
}
[25996] Fix | Delete
if ((this.type === "html" || this.type === "svg") &&
[25997] Fix | Delete
!this.projection &&
[25998] Fix | Delete
ProjectionNodeConstructor) {
[25999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function